(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6368],{63185:function(e,t,n){Promise.resolve().then(n.bind(n,53417)),Promise.resolve().then(n.bind(n,69767)),Promise.resolve().then(n.t.bind(n,88003,23)),Promise.resolve().then(n.bind(n,71674))},26225:function(e,t){"use strict";function n(){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85605:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,n,r,o){n=n||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(n);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u<s;++u){var c,d,m,p,v=e[u].replace(a,"%20"),_=v.indexOf(r);(_>=0?(c=v.substr(0,_),d=v.substr(_+1)):(c=v,d=""),m=decodeURIComponent(c),p=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(i,m))?t(i[m])?i[m].push(p):i[m]=[i[m],p]:i[m]=p}return i};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,a,l){return(i=i||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?r(o(e),function(o){var l=encodeURIComponent(t(o))+a;return n(e[o])?r(e[o],function(e){return l+encodeURIComponent(t(e))}).join(i):l+encodeURIComponent(t(e[o]))}).join(i):l?encodeURIComponent(t(l))+a+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//";var o={};o.decode=o.parse=r(815),o.encode=o.stringify=r(577),e.exports=o}()},28819:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var r=n(57437),o=n(54365),i=n(41315),a=n.n(i);let l=e=>{let{children:t,className:n}=e;return(0,r.jsx)("div",{className:(0,o.Z)(a().mainContainer,n),children:t})};l.displayName="MainContainer"},21891:function(e,t,n){"use strict";n.d(t,{m:function(){return s}});var r=n(57437),o=n(35563),i=n(54365),a=n(98074),l=n.n(a);let s=e=>{let{className:t}=e;return(0,r.jsx)("div",{className:(0,i.Z)(l().disclaimer,t),children:(0,r.jsx)(o.W2,{children:"В соответствии с Федеральным законом от 20.07.2020 №211-ФЗ \xabО совершении финансовых сделок с использованием финансовой платформы\xbb на сайте www.finuslugi.ru предоставляются услуги оператора финансовой платформы, а также размещаются рекламно-информационные материалы, предоставленные партнерами ПАО Московская Биржа. Оператором платформы является ПАО Московская Биржа. Услуги, предоставляемые ПАО Московская Биржа, выступающей в качестве оператора финансовой платформы обозначены отметкой \xabОткрыть онлайн\xbb. Рекламно-информационные материалы на сайте www.finuslugi.ru размещаются ПАО Московская Биржа и ООО \xabМБ Маркетплейс\xbb. ООО \xabМБ Маркетплейс\xbb входит в Группу \xabМосковская Биржа\xbb. Группа \xabМосковская Биржа\xbb - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."})})}},69430:function(e,t,n){"use strict";n.d(t,{V:function(){return g}});var r=n(57437),o=n(5426),i=n(33145),a=n(2265),l=n(37162),s=n(72151),u=n(99193),c=n(97807),d=n(79142),m=n.n(d),p={src:"/deposits/_next/static/media/banner-2.b6d16a7d.svg",height:208,width:300,blurWidth:0,blurHeight:0},v={src:"/deposits/_next/static/media/banner-3.adc4440a.svg",height:208,width:300,blurWidth:0,blurHeight:0},_={src:"/deposits/_next/static/media/banner-6.ecb80fa6.svg",height:208,width:301,blurWidth:0,blurHeight:0},f={src:"/deposits/_next/static/media/banner-7.8a2298b9.svg",height:230,width:301,blurWidth:0,blurHeight:0};let h=e=>{let{item:t,eventCategory:n,eventLabel:o,withNewMarkup:l}=e,d=(0,a.useRef)(null);(0,u.Z)({itemRef:d,eventAction:"show_steps_to_open_step_".concat(t.id),eventCategory:n,eventLabel:o,disabled:!l});let{isDragged:p,isTouched:v,onMouseDown:_,onMouseMove:f,resetState:h}=(0,c.Q)(),g=()=>{(0,s.lQ)({eventCategory:n,eventLabel:o,eventAction:"click_steps_to_open_step_".concat(t.id)})};return(0,r.jsxs)("div",{className:m().bannerCard,ref:d,onMouseDown:_,onMouseMove:f,onMouseLeave:h,onMouseUp:h,onMouseUpCapture:()=>!(p&&v)&&g(),children:[(0,r.jsxs)("span",{className:m().badge,children:["Шаг ",t.id]}),(0,r.jsx)("p",{className:m().text,children:t.text}),(0,r.jsx)(i.default,{width:300,height:208,alt:"banner"+t.id,src:t.image})]})},g=e=>{let{isSavingAccount:t,eventCategory:n,productId:i,withNewMarkup:a}=e,s=(0,o._m)("l"),u=[{id:1,image:v,text:"Выберите ".concat(t?"накопительный счёт":"вклад"," на витрине Финуслуг и нажмите \xabОткрыть онлайн\xbb")},{image:p,id:2,text:"Привяжите Госуслуги и подтвердите документы через Тинькофф ID/Alfa ID или у представителя Финуслуг"},{image:f,id:3,text:"Отправьте заявку на ".concat(t?"накопительный счет":"вклад",". Пополните вклад через личный кабинет на Финуслугах")},{image:_,id:4,text:"Управляйте ".concat(t?"накопительным счетом":"вкладом"," в личном кабинете ").concat(t?"банка":"Финуслуг")}];return(0,r.jsxs)("section",{id:l.a6,className:m().container,children:[(0,r.jsxs)("h2",{className:m().title,children:["Как открыть ",t?"счет":"вклад"," на Финуслугах"]}),(0,r.jsx)("div",{className:m().sliderContainer,children:(0,r.jsx)(o.Fp,{width:s?342:300,height:s?384:380,spaceBetween:s?40:16,sliderPerView:s?3:1,hideNavigationControl:!s,overflowVisible:!s,classSliderWrapper:m().sliderWrapper,startDelay:1e4,isDependsOnWidth:!1,children:u.map(e=>(0,r.jsx)(h,{item:e,eventCategory:n,eventLabel:i,withNewMarkup:a},e.id))})})]})}},71674:function(e,t,n){"use strict";n.r(t),n.d(t,{DepositDetail:function(){return ec}});var r=n(57437),o=n(5426),i=n(26225),a=n.n(i),l=n(2265),s=n(28819),u=n(69589),c=n(19612),d=n(76820),m=n(75109),p=n(78529),v=n(14441),_=n(34039),f=n(49394),h=n(21891),g=n(16161),b=n(69430),x=n(54365),y=n(50666),w=n(82619),j=n(29184),k=n(23468),C=n(65716),D=n(37162),S=n(39402),N=n(96742),P=n(19945),M=n(91220),A=n(2493),T=n(72151),I=n(31219),O=n(50487),R=n(48034),F=n(72096),E=n(96024),L=n.n(E),U=n(32523),Z=n(33145),B=n(39666),Y=n(38225),V=n.n(Y);let W=(0,l.memo)(e=>{let{className:t,data:n,bank:i,isArchive:a,titlePromo:l,isSmall:s,tagTheme:u="orange"}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("section",{className:(0,x.Z)(V().wrapper,{[V().wrapperArchive]:a,[V().wrapperSmall]:a||s},t),children:(0,r.jsxs)(o.W2,{className:V().company,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:V().title,children:null==i?void 0:i.name}),(0,r.jsxs)("h2",{className:(0,x.Z)(V().subTitle,a&&V().subTitleArchive),children:[(0,r.jsx)(o.$,{className:V().chip,text:(0,B.Y)(l),color:u}),(0,r.jsxs)("span",{className:V().subTitleText,children:["\xab",n.title,"\xbb"]})]})]}),(null==i?void 0:i.logoMob)&&(0,r.jsx)(Z.default,{className:V().logo,src:i.logoMob,alt:"",width:48,height:48})]})})})});W.displayName="Promo";let H=e=>{var t;let n="end";return e.interest_payment.end&&(n="end"),e.interest_payment.annually&&(n="12"),e.interest_payment.half_year&&(n="6"),e.interest_payment.quarterly&&(n="3"),e.interest_payment.monthly&&(n="1"),e.interest_payment.daily&&(n="daily"),null!==(t=F.$k.find(e=>n===e.value))&&void 0!==t?t:F.$k[0]};var K=n(70104),G=n(36578);let Q=(e,t,n)=>{if(void 0!==n){if(+n<e)return"Минимальная сумма - ".concat((0,K.Y4)(e)," ₽");if(+n>t)return"Максимальная сумма - ".concat((0,K.Y4)(t)," ₽")}},z=(e,t,n)=>{if(void 0!==n){if(+n<e)return"Минимальный срок - ".concat((0,K.Y4)(e)," ").concat((0,G._6)(e,"день","дня","дней"));if(+n>t)return"Максимальный срок - ".concat((0,K.Y4)(t)," ").concat((0,G._6)(t,"день","дня","дней"))}};var X=n(38174),q=n(23769);let J=(e,t,n,r)=>e.filter(e=>{var o,i;let a=null!==(o=e.amount_from)&&void 0!==o?o:n,l=null!==(i=e.amount_to)&&void 0!==i?i:r;return t>=a&&t<=l}).sort((e,t)=>e.term_from-t.term_from),$=e=>{let t=String(e.rate).replace(".",",");return{tag:e.tag,id:e.term_from,value:e.term_from,label:"".concat((0,q.E)(e.term_from)," - ").concat(t,"%"),rate:e.rate}},ee=(e,t)=>{var n;let r=null===(n=e.interest_rate.rates)||void 0===n?void 0:n[0],o=(null==r?void 0:r.term_from)===(null==r?void 0:r.term_to),i=(0,X.j)(e.currency_id),a=Number(e.amount.from||i.from),l=Number(e.amount.to||i.to),s=J(e.interest_rate.rates,t,a,l),u=s.map($),c=s.map(e=>e.term_to);return{minSum:a,maxSum:l,isFixedTerms:o,termChips:u,minTerm:Math.min(...s.map(e=>e.term_from)),maxTerm:Math.max(...c),terms:s}},et=(e,t,n)=>e<t?t:e>n?n:e,en=(e,t)=>e.term_from<=t&&t<=e.term_to?0:t<e.term_from?Math.round(e.term_from-t):Math.round(t-e.term_to),er=(e,t,n)=>{let r=n.filter(t=>{var n,r;return e>=(null!==(n=t.amount_from)&&void 0!==n?n:0)&&e<=(null!==(r=t.amount_to)&&void 0!==r?r:1/0)}).sort((e,n)=>en(e,t)-en(n,t))[0];return r&&$(r)},eo=e=>{var t,n,i,a,c,d,m;let{className:p,isMobile:_,data:f,depositType:h,onChangeData:g,discount:b,company:E,extraInfo:Z,isShowDepositTip:B}=e,{asPath:Y}=(0,v.P)(),[V,K]=(0,l.useState)(!1),G=(0,l.useRef)(null),X=(0,l.useRef)(null),q=(0,l.useRef)(!1),[J,en]=(0,l.useState)(!1),[eo,ei]=(0,l.useState)(null),[ea,el]=(0,l.useState)(),es=(0,R.Z)(0,0,!1),[eu,ec]=(0,l.useState)(()=>{var e,t;if((null===(e=Z.algo)||void 0===e?void 0:e.id)!=="mkb-nakop")return;let{expenseChips:n,defaultExpenseChip:r}=Z.algo;return null!==(t=n.find(e=>e.id===r))&&void 0!==t?t:n.at(-1)}),[ed,em]=(0,l.useState)(()=>{var e;return(null===(e=Z.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&Z.algo.salaryToggleDefaultValue}),ep=(0,N.z)(f.currency_id),{events:ev,value:e_,formattedValue:ef,isFocused:eh,handleChange:eg}=(0,O.G)({type:"float",format:"currency",unit:ep.unit,defaultValue:String(f.amount.from),maxLength:20,maxFractionalLength:2}),{events:eb,value:ex,formattedValue:ey,isFocused:ew,handleChange:ej}=(0,O.G)({type:"int",unit:"day",maxLength:10,defaultValue:()=>{var e;return(null===(e=Z.algo)||void 0===e?void 0:e.id)==="mkb-nakop"?String(Z.algo.defaultTermDays):"1"}}),{isFixedTerms:ek,termChips:eC,minSum:eD,maxSum:eS,minTerm:eN,maxTerm:eP}=(0,l.useMemo)(()=>{var e;let t=ee(f,Number(e_));return(null===(e=Z.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&(t.maxSum=Z.algo.maxAmount,t.minSum=Z.algo.minAmount),t},[f,Z.algo,e_]),eM=h===u.P.isArchiveDeposit,eA=!Z.algo&&ek&&ea?ea.value:ex,eT=!!f.type.saving_account,eI=(0,l.useMemo)(()=>{let e=[];return ek&&ea&&!Array.isArray(ea)&&e.push(ea),!ek&&ex&&e.push({label:ey,id:"term"}),e_&&e.push({label:ef,id:"amount"}),e},[ek,ea,ef,e_,ey,ex]),eO=(0,l.useMemo)(()=>f.interest_rate.rates.find(e=>{var t,n;let r=null!==(t=e.amount_from)&&void 0!==t?t:eD,o=null!==(n=e.amount_to)&&void 0!==n?n:eS;return+eA>=e.term_from&&(eT||+eA<=e.term_to)&&+e_>=r&&+e_<=o}),[eA,f.interest_rate.rates,eT,eS,eD,e_]),eR=(0,l.useMemo)(()=>{if(Z.algo){if("mkb-nakop"===Z.algo.id&&eu)return ed?eu.rateWithSalary:eu.rate}else if(eO)return eO.rate;return 0},[eO,Z.algo,ed,eu]),eF=(0,l.useMemo)(()=>{var e;if(!(ek?null==ea?void 0:ea.value:ex))return;let t=f.interest_rate.rates.sort((e,t)=>{var n,r;return(null!==(n=e.amount_from)&&void 0!==n?n:eD)-(null!==(r=t.amount_from)&&void 0!==r?r:eS)}),n=null===(e=t.find(e=>(null==eO?void 0:eO.amount_from)&&e.amount_from&&e.amount_from>eO.amount_from))||void 0===e?void 0:e.amount_from;return t.find(e=>eO&&e.amount_from===n&&e.term_from===eO.term_from)},[eO,f,ek,eS,eD,ea,ex]),eE=(0,l.useMemo)(()=>eO&&eo&&eO.amount_from?{difference:eO.rate-eo.rate,minAmount:eO.amount_from}:eF&&eO&&eF.amount_from?{difference:eF.rate-eO.rate,minAmount:eF.amount_from}:void 0,[eF,eO,eo]),{urlFirst:eL,urlSecond:eU}=(0,S._)({asPath:Y,productId:f.id,optionId:null==eO?void 0:eO.optionId,amount:+e_,durationValue:f.asSavingAccount?void 0:eA,firstBaseUrl:null!==(c=(0,y.env)("NEXT_PUBLIC_MOEX_AD_URI"))&&void 0!==c?c:"",secondBaseUrl:null==eO?void 0:null===(t=eO.mp)||void 0===t?void 0:t.url,passAggregatorId:!0}),eZ=(null==eO?void 0:eO.optionId)?eL:eU,eB=Q(eD,eS,e_),eY=eB||0===eP?void 0:z(eN,eP,ex),eV=(0,l.useCallback)(()=>{ei(null),en(!1)},[]),eW=(0,l.useCallback)(e=>{eg(e.currentTarget.value.replace(",",".")),eV()},[eg,eV]),eH=(0,l.useCallback)(e=>{eb.onChange(e),eV()},[eV,eb]),eK=(0,l.useCallback)(()=>{var e;_&&G.current&&(K(!0),setTimeout(()=>{G.current&&(0,o.ld)(G.current,{offset:es,position:"top"})},300)),_||null===(e=X.current)||void 0===e||e.focus()},[_,es]),eG=(0,l.useCallback)(e=>{e&&((0,T.lQ)({event:"data-event",eventAction:"click_button_".concat((0,I.b)(e.label)),eventCategory:"vklady",eventLabel:f.id}),el(e)),eV()},[f.id,eV]),eQ=(0,l.useCallback)(e=>{e&&eF&&eF.amount_from?(eO&&ei(eO),eg(eF.amount_from),ek?el($(eF)):ej(eF.term_from),en(!0)):e||((null==eo?void 0:eo.amount_from)&&(eg(eo.amount_from),ek?el($(eo)):ej(eo.term_from),ei(null)),en(!1))},[eF,eO,eg,ej,ek,eo]);(0,l.useEffect)(()=>{var e;let t;if(q.current)return;let n={amount:String(eD),period:null,...(0,M.p)(Y,"#")};t=n.period?Math.round(30.4375*(+n.period||3)):(null===(e=Z.algo)||void 0===e?void 0:e.id)==="mkb-nakop"?Z.algo.defaultTermDays:1;let r=et(+n.amount,eD,eS);eg(r),el(er(r,t,f.interest_rate.rates)),ej(t),q.current=!0},[Y,f.interest_rate.rates,Z.algo,eg,ej,eS,eD]),(0,l.useEffect)(()=>{q.current&&el(e=>{let t=eC.find(t=>t.label===(null==e?void 0:e.label));if(t)return t;let n=eC.find(t=>t.value===(null==e?void 0:e.value));return null!=n?n:eC[0]})},[eC]),(0,l.useEffect)(()=>{q.current&&isFinite(eN)&&ej(e=>+e>eP?eP:+e<eN?eN:e)},[ej,eP,eN]),(0,l.useEffect)(()=>{g({amount:+e_,optionId:null==eO?void 0:eO.optionId,term:+eA,appUrl:eZ})},[eZ,eA,g,e_,null==eO?void 0:eO.optionId]);let ez=()=>{var e;return(0,r.jsx)(W,{data:{url:f.url,title:f.title},bank:{logoMob:null==E?void 0:E.logo_mob,url:null==E?void 0:E.url,name:null!==(e=null==E?void 0:E.name)&&void 0!==e?e:f.bank_name},titlePromo:eT?" Накопительный счёт":" Вклад",tagTheme:eT?"blue":"orange",archiveText:" Этот вклад уже нельзя открыть. Посмотрите свежие предложения на нашей витрине",isArchive:eM,className:eM?void 0:L().promo})},eX=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.lF,{className:(0,x.Z)(L().input,eB&&L().inputError),placeholder:"Сумма",value:eh?e_.replace(".",","):ef,innerRef:X,message:eB,status:eB?"error":void 0,max:20,onChange:eW,onFocus:ev.onFocus,onBlur:ev.onBlur,onKeyDown:A._}),!Z.algo&&(0,r.jsxs)(r.Fragment,{children:[ek&&(0,r.jsx)(o.ev,{options:eC,onChange:eG,selected:ea,theme:"secondary",size:"medium",className:L().chipsForm}),!ek&&(0,r.jsx)(o.lF,{placeholder:"Срок",value:ew?ex:ey,status:eY?"error":void 0,message:eY,disabled:!!eB,max:20,onChange:eH,onFocus:eb.onFocus,onBlur:eb.onBlur,onKeyDown:A._,className:(0,x.Z)(L().input,eY&&L().inputError)})]}),(null===(m=Z.algo)||void 0===m?void 0:m.id)==="mkb-nakop"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,x.Z)(L().input,L().inputRange),children:(0,r.jsx)(o.lF,{label:"Срок",value:"".concat(Math.round(+eA/30.4375)," мес"),onlyRange:!0,rangeProps:{values:[Math.round(+eA/30.4375)],min:1,max:36,step:1,legend:[1,36],onChange:e=>{let[t]=e;ej(Math.round(30.4375*t))},formatValue:e=>(0,r.jsxs)("span",{className:L().legend,children:[e," мес"]})}})}),(0,r.jsx)("div",{className:L().expenseHead,children:(0,r.jsx)(o.qQ,{keyValue:"expense",iconClassName:L().infoIcon,text:(0,r.jsx)(r.Fragment,{children:"При определении суммы операций учитываются суммы, списанные со счета карты с последнего дня предыдущего месяца по предпоследний день текущего месяца (включительно). Не учитываются операции из списка исключений по учету сумм операций по оплате товаров и услуг, с которыми можно ознакомиться в разделе \xabДокументы\xbb на сайте МКБ"}),children:"Траты по карте в месяц"})}),(0,r.jsx)("div",{className:L().expenseSub,children:"От них зависит ставка накопительного счета"}),(0,r.jsx)(o.ev,{options:Z.algo.expenseChips,onChange:e=>{var t;ec(null!=e?e:null===(t=Z.algo)||void 0===t?void 0:t.expenseChips[0])},selected:eu,theme:"secondary",size:"medium",className:L().chipsForm}),(0,r.jsx)(j.Y,{className:L().disclaimer,text:"Все счета застрахованы в АСВ"})]})]}),eq=(0,l.useMemo)(()=>(0,P.Z)(f.interest_payment),[f.interest_payment]);return(0,r.jsxs)(s.t,{className:(0,x.Z)(L().container,p,!eM&&L().containerFull),children:[!eM&&ez(),(0,r.jsxs)("div",{className:L().left,ref:G,children:[eM&&(0,r.jsx)(k.M,{title:"Вклад в архиве",url:C.N9.VKLADY,text:"Его уже нельзя открыть. Но мы можем подобрать для Вас другие предложения от разных банков"}),!eM&&(0,r.jsx)(w.y,{isMobile:!!_,title:"Настройки ".concat(eT?"счета":"вклада"),pageUrl:C.N9.VKLADY,infoLink:{isShow:!0,text:"Подробнее о ".concat(eT?"счете":"вкладе"),idScrollBlock:D.p6,offPadding:!0,widthMaxContent:!0},chips:eI,isShowChips:_&&!!(null==eI?void 0:eI.length)&&!V,isExpandSettings:V,onToggleSettings:_?()=>{K(e=>!e),(0,T.lQ)({event:"data-event",eventAction:"click_button_".concat((0,I.b)("Настройки вклада")),eventCategory:"vklady",eventLabel:f.id})}:void 0,content:eX,isSavingAccount:eT,eventCategory:"widget-vklady",withNewMarkup:!1,productId:String(f.id)})]}),(0,r.jsxs)("div",{className:L().right,children:[eM&&ez(),(0,r.jsx)(U.n,{rate:eR,sum:Number(e_),term:Number(eA),productId:null!==(d=null==eO?void 0:null===(n=eO.mp)||void 0===n?void 0:n.product_id)&&void 0!==d?d:f.id,tag:null==ea?void 0:ea.tag,isMobile:_,onEdit:eK,appUrl:null!=eZ?eZ:f.online_application.url,depositType:h,onSwitchRate:eQ,isRateSwitched:J,switchRate:eE,isCapitalization:(null===(i=f.interest_capitalization)||void 0===i?void 0:i.has)===1&&0===f.partial_withdrawal.has&&(null===(a=f.refill)||void 0===a?void 0:a.has)===0||eT,refillSum:"",percentType:F.kJ[0].value,period:H(f).value,refillType:F.k5[0].value,unit:ep.unit,tags:f.tags,discount:b,isSavingAccount:eT,extraInfo:Z,salaryToggle:ed,setSalaryToggle:em,isShowDepositTip:B,paymentFrequency:eq,scrollOffset:es,withChart:!0,eventCategory:"widget-vklady",withNewMarkup:!1,totalValues:""})]})]})};var ei=n(11504),ea=n.n(ei),el=n(85605),es=n.n(el),eu=n(69784);let ec=e=>{var t,n,i;let{data:x,questions:y,company:w,discounts:j,aggregatorIds:k}=e,{query:C,asPath:D}=(0,v.P)(),{frameId:S}=C,N=(0,o._m)("l"),{bonuses:P,isPlusFiveBonus:A,isOldUser:T}=(0,f.Z)(j),I=void 0===x.finuslugiBonusAllowed||x.finuslugiBonusAllowed,[O,R]=(0,l.useState)(),F=(0,l.useMemo)(()=>Object.entries((0,d.i)(x)).find(e=>e[1]&&e[0]),[x]),E=(0,l.useMemo)(()=>F&&F[0],[F]),L=(0,c.p)({currentAmount:null!==(t=null==O?void 0:O.amount)&&void 0!==t?t:0,terms:null!==(n=null==O?void 0:O.term)&&void 0!==n?n:0,finuslugiBonusAllowed:I,isPlusFiveBonus:A,isOldUser:T,finuslugiBonusPromotion:x.finuslugiBonusPromotion}),U=T?(0,m.pW)(x.finuslugiBonusPromotion):null==P?void 0:P.find(e=>"five_procent"===e.unique_key),Z=L?U:void 0,B=!T&&E===u.P.isPlatformDeposit,Y=function(e){let{asPath:t,frameId:n}=e,{utm_campaign:r,utm_medium:o,utm_source:i,utm_term:a}=(0,M.p)(t,"#");return"/widget-vklady?"+es().stringify((0,eu.Y)({frameId:n,utm_campaign:r,utm_medium:o,utm_source:i,utm_term:a}))}({frameId:S,asPath:D});return(0,p.j)(),(0,_.Z)(k),(0,r.jsxs)("main",{className:ea().page,children:[(0,r.jsx)(a(),{children:(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"},"viewport")}),(0,r.jsx)(s.t,{children:(0,r.jsx)("nav",{children:(0,r.jsx)("a",{href:Y,className:ea().backLink,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:ea().backIcon,children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"none",children:(0,r.jsx)("path",{fill:"currentColor",d:"M7.466 19.551A1.48 1.48 0 0 1 7 18.481c0-.401.167-.786.466-1.07l5.667-5.449L7.466 6.59A1.48 1.48 0 0 1 7 5.52c0-.401.167-.786.466-1.07.148-.142.325-.255.52-.332a1.68 1.68 0 0 1 1.232 0c.195.077.372.19.52.332l6.788 6.435c.15.141.27.31.35.494a1.45 1.45 0 0 1 0 1.168c-.08.185-.2.353-.35.494L9.74 19.55a1.6 1.6 0 0 1-.521.332 1.68 1.68 0 0 1-1.232 0 1.6 1.6 0 0 1-.52-.332"})})}),(0,r.jsx)("span",{className:ea().backText,children:"Назад"})]})})})}),(0,r.jsx)(eo,{discount:Z,isMobile:!N,data:x,className:ea().calculator,onChangeData:R,depositType:E,isPlusFiveBonus:A,isOldUser:T,company:w,extraInfo:{},isShowDepositTip:B}),(0,r.jsx)(s.t,{className:ea().about,children:(0,r.jsx)(g.c,{isMobile:!N,questions:y,data:x,company:w,className:ea().params,amount:null!==(i=null==O?void 0:O.amount)&&void 0!==i?i:0,optionId:null==O?void 0:O.optionId,discount:Z,isPlusFiveBonus:A,isOldUser:T,extraInfo:{},withNewMarkup:!1,eventCategory:"widget-vklady"})}),B&&(0,r.jsx)(b.V,{isSavingAccount:!!x.type.saving_account,withNewMarkup:!1,eventCategory:"widget-vklady",productId:String(x.id)}),(0,r.jsx)(h.m,{className:ea().disclaimer})]})}},76820:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(69589);let o=e=>{let{online_application:t,archive:n,external:o}=e,{commercial:i,type:a}=t,l=(!e.active_to||new Date(e.active_to)>=new Date)&&(!o||void 0===o.active||o.active);return{[r.P.isPlatformDeposit]:0===i&&3===a&&0===n&&l,[r.P.isNonPlatformDeposit]:1!==i&&3!==a&&0===n&&l,[r.P.isLidgenDeposit]:1===i&&3!==a&&0===n&&l,[r.P.isArchiveDeposit]:1===n||!l}}},19945:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(40309);function o(e){let{daily:t,monthly:n}=e;return 1===t?r.Z.EveryDay:1===n?r.Z.OnceAMonth:r.Z.InTheEnd}},69784:function(e,t,n){"use strict";function r(e){return Object.fromEntries(Object.entries(e).filter(e=>void 0!==e[1]))}n.d(t,{Y:function(){return r}})},78529:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var r=n(2265),o=n(14441);let i=()=>{let{frameId:e}=(0,o.P)().query;(0,r.useEffect)(()=>{new ResizeObserver(t=>{let n=t[0].target;window.parent.postMessage({type:"resize",frameId:e,height:n.scrollHeight},"*")}).observe(document.body)},[e])}},49394:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2265),o=n(7006),i=n(26876),a=n(53931);function l(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],l=(0,a.$1)(),s=(null==l?void 0:l["auth.gtm_customer_id"])||null,[u]=(0,r.useState)(n&&null!=e?e:[]),[c,d]=(0,r.useState)(!1),[m,p]=(0,r.useState)(!0),[v,_]=(0,r.useState)(!1),[f,h]=(0,r.useState)(t&&!!s);return(0,r.useEffect)(()=>{s&&n&&(h(!0),(0,o.M)(s).then(e=>{let{data:t}=e;(!t||(null==t?void 0:t.features))&&t&&!t.features.includes(i.n.SHOW_ADDITIONAL_PERCENT_BONUS)&&(p(!1),_(!0),d(!0))}).finally(()=>{h(!1)}))},[s,n]),{customerId:s,isOldUser:v,isPlusFiveBonus:m,isHiddenPromo:c,isDiscountsLoading:f,bonuses:u}}},20921:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(2265);function o(e){let{itemRef:t,disabled:n=!1,mode:o="entry",initialView:i=!1,onShow:a}=e,l=(0,r.useRef)(null),[s,u]=(0,r.useState)(!1),[c,d]=(0,r.useState)(i),m=(0,r.useCallback)(e=>{let[n]=e;1===n.intersectionRatio&&!s&&(u(!0),null==a||a(),"entry"===o&&l.current&&t.current&&l.current.unobserve(t.current)),d(n.intersectionRatio>0)},[s,t,o,a]);return(0,r.useEffect)(()=>{n||!t.current||l.current||(l.current=new IntersectionObserver(m,{root:null,threshold:"entry"===o?[1]:[0]}),l.current.observe(t.current))},[n,m,s,t,o]),{isShowed:s,inView:c,resetShow:(0,r.useCallback)(()=>{u(!1),l.current&&t.current&&l.current.observe(t.current)},[t])}}},99193:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2265),o=n(72151),i=n(20921);function a(e){let{itemRef:t,eventCategory:n,eventAction:a,eventLabel:l,disabled:s=!1}=e,u=(0,r.useCallback)(()=>{(0,o.lQ)({event:"data-event",eventLabel:l,eventCategory:n,eventAction:a,eventValue:""})},[a,n,l]),{resetShow:c}=(0,i.S)({itemRef:t,disabled:s,mode:"entry",onShow:u});return{reset:c}}},97807:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var r=n(2265);let o=()=>{let[e,t]=(0,r.useState)(!1),[n,o]=(0,r.useState)(!1),i=(0,r.useRef)({x:0,y:0});return{isDragged:e,isTouched:n,onMouseDown:(0,r.useCallback)(e=>{o(!0),i.current={x:e.screenX,y:e.screenY},i.current&&i.current.x===e.screenX&&i.current.y===e.screenY&&t(!1)},[]),onMouseMove:(0,r.useCallback)(e=>{i.current&&i.current.x===e.screenX&&i.current.y===e.screenY||(t(!0),i.current={x:e.screenX,y:e.screenY})},[]),resetState:(0,r.useCallback)(()=>{t(!1),o(!1)},[])}}},41315:function(e){e.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},98074:function(e){e.exports={disclaimer:"DepositDetailDisclaimer_disclaimer__WOd5G"}},79142:function(e){e.exports={title:"DepositDetailSteps_title__uTNGG",container:"DepositDetailSteps_container__uD6OU",sliderContainer:"DepositDetailSteps_sliderContainer__9J2T_",sliderWrapper:"DepositDetailSteps_sliderWrapper__KCsL4",bannerCard:"DepositDetailSteps_bannerCard__p0QUJ",badge:"DepositDetailSteps_badge__0I3_m",text:"DepositDetailSteps_text__PXCdW"}},11504:function(e){e.exports={page:"DepositDetail_page__6MQwd",about:"DepositDetail_about__fwGfy",promo:"DepositDetail_promo__OLnF6",calculator:"DepositDetail_calculator__pApx4",params:"DepositDetail_params__T6HPL",pickerSection:"DepositDetail_pickerSection__P4TK6",backLink:"DepositDetail_backLink__D0d3n",backIcon:"DepositDetail_backIcon__RyI9B",backText:"DepositDetail_backText__lmG3z"}},38225:function(e){e.exports={title:"Promo_title__O_GjA",wrapper:"Promo_wrapper__qW8nd",wrapperArchive:"Promo_wrapperArchive__kJHBY",wrapperSmall:"Promo_wrapperSmall__V_Eun",company:"Promo_company__lUdHV",subTitle:"Promo_subTitle__KoZ_K",subTitleArchive:"Promo_subTitleArchive__olfD8",subTitleText:"Promo_subTitleText__eha_f",chip:"Promo_chip__6cw2y",actionsContainer:"Promo_actionsContainer__aDSYd",actionsContainerSmall:"Promo_actionsContainerSmall__KhUbm",actions:"Promo_actions__iJvPh",action:"Promo_action__ZC4TW",actionArrow:"Promo_actionArrow__wDuyR",actionMobile:"Promo_actionMobile__e0ffB",actionArrowIcon:"Promo_actionArrowIcon__G_YZk",actionSocial:"Promo_actionSocial__AEeLO",link:"Promo_link__sPP8d",logo:"Promo_logo__nwapY",logoContainer:"Promo_logoContainer__vjAT5",logoContainerArchive:"Promo_logoContainerArchive__oYnSw"}}},function(e){e.O(0,[582,97,680,8460,5520,1302,1576,9019,5501,5458,207,3544,3903,5346,871,8401,3145,5234,7634,1792,9066,2462,6041,2971,2117,1744],function(){return e(e.s=63185)}),_N_E=e.O()}]);