(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 s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var l=0;l<u;++l){var c,d,m,p,f=e[l].replace(a,"%20"),v=f.indexOf(r);(v>=0?(c=f.substr(0,v),d=f.substr(v+1)):(c=f,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,s){return(i=i||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?r(o(e),function(o){var s=encodeURIComponent(t(o))+a;return n(e[o])?r(e[o],function(e){return s+encodeURIComponent(t(e))}).join(i):s+encodeURIComponent(t(e[o]))}).join(i):s?encodeURIComponent(t(s))+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}()},21891:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var r=n(57437),o=n(67880),i=n(61994),a=n(98074),s=n.n(a);let u=e=>{let{className:t}=e;return(0,r.jsx)("div",{className:(0,i.Z)(s().disclaimer,t),children:(0,r.jsx)(o.W,{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 y}});var r=n(57437),o=n(89694),i=n(33145),a=n(2265),s=n(37162),u=n(93033),l=n(72151),c=n(99193),d=n(97807),m=n(79142),p=n.n(m),f={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},h={src:"/deposits/_next/static/media/banner-7.8a2298b9.svg",height:230,width:301,blurWidth:0,blurHeight:0};let g=e=>{let{item:t,eventCategory:n,eventLabel:o,withNewMarkup:s}=e,u=(0,a.useRef)(null);(0,c.Z)({itemRef:u,eventAction:"show_steps_to_open_step_".concat(t.id),eventCategory:n,eventLabel:o,disabled:!s});let{isDragged:m,isTouched:f,onMouseDown:v,onMouseMove:_,resetState:h}=(0,d.Q)(),g=()=>{(0,l.lQ)({eventCategory:n,eventLabel:o,eventAction:"click_steps_to_open_step_".concat(t.id)})};return(0,r.jsxs)("div",{className:p().bannerCard,ref:u,onMouseDown:v,onMouseMove:_,onMouseLeave:h,onMouseUp:h,onMouseUpCapture:()=>!(m&&f)&&g(),children:[(0,r.jsxs)("span",{className:p().badge,children:["Шаг ",t.id]}),(0,r.jsx)("p",{className:p().text,children:t.text}),(0,r.jsx)(i.default,{width:300,height:208,alt:"banner"+t.id,src:t.image})]})},y=e=>{let{isSavingAccount:t,eventCategory:n,productId:i,withNewMarkup:a}=e,l=(0,o._m)("l"),c=[{id:1,image:v,text:"Выберите ".concat(t?"накопительный счёт":"вклад"," на витрине Финуслуг и нажмите \xabОткрыть онлайн\xbb")},{image:f,id:2,text:"Привяжите Госуслуги и подтвердите документы через Тинькофф ID/Alfa ID или у представителя Финуслуг"},{image:h,id:3,text:"Отправьте заявку на ".concat(t?"накопительный счет":"вклад",". Пополните вклад через личный кабинет на Финуслугах")},{image:_,id:4,text:"Управляйте ".concat(t?"накопительным счетом":"вкладом"," в личном кабинете ").concat(t?"банка":"Финуслуг")}];return(0,r.jsxs)("section",{id:s.a6,className:p().container,children:[(0,r.jsxs)("h2",{className:p().title,children:["Как открыть ",t?"счет":"вклад"," на Финуслугах"]}),(0,r.jsx)("div",{className:p().sliderContainer,children:(0,r.jsx)(u.Fp,{width:l?342:300,height:l?384:380,spaceBetween:l?40:16,sliderPerView:l?3:1,hideNavigationControl:!l,overflowVisible:!l,classSliderWrapper:p().sliderWrapper,startDelay:1e4,isDependsOnWidth:!1,children:c.map(e=>(0,r.jsx)(g,{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 e_}});var r=n(57437),o=n(89694),i=n(26225),a=n.n(i),s=n(2265),u=n(28819),l=n(69589),c=n(19612),d=n(76820),m=n(75109),p=n(78529),f=n(14441),v=n(34039),_=n(49394),h=n(21891),g=n(16161),y=n(69430),b=n(61209),x=n(43053),w=n(34698),D=n(61994),j=n(50666),N=n(82619),k=n(80342),A=n(23468),C=n(11359),S=n(65716),P=n(37162),M=n(39402),T=n(96742),I=n(34482),O=n(91220),E=n(2493),B=n(72151),F=n(40780),L=n(31219),Y=n(50487),K=n(48034),R=n(72096),U=n(96024),Q=n.n(U),Z=n(32523),V=n(35515),W=n(33145),H=n(39666),z=n(38225),G=n.n(z);let X=(0,s.memo)(e=>{let{className:t,data:n,bank:o,isArchive:i,titlePromo:a,isSmall:s,tagTheme:l="orange"}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("section",{className:(0,D.Z)(G().wrapper,{[G().wrapperArchive]:i,[G().wrapperSmall]:i||s},t),children:(0,r.jsxs)(u.t,{className:G().company,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:G().title,children:null==o?void 0:o.name}),(0,r.jsxs)("h2",{className:(0,D.Z)(G().subTitle,i&&G().subTitleArchive),children:[(0,r.jsx)(V.V,{className:(0,D.Z)(G().chip,G()[l]),label:(0,H.Y)(a)}),(0,r.jsxs)("span",{className:G().subTitleText,children:["\xab",n.title,"\xbb"]})]})]}),(null==o?void 0:o.logoMob)&&(0,r.jsx)(W.default,{className:G().logo,src:o.logoMob,alt:"",width:48,height:48})]})})})});X.displayName="Promo";let q=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=R.$k.find(e=>n===e.value))&&void 0!==t?t:R.$k[0]};var J=n(70104),$=n(36578);let ee=(e,t,n)=>{if(void 0!==n){if(+n<e)return"Минимальная сумма - ".concat((0,J.Y4)(e)," ₽");if(+n>t)return"Максимальная сумма - ".concat((0,J.Y4)(t)," ₽")}},et=(e,t,n)=>{if(void 0!==n){if(+n<e)return"Минимальный срок - ".concat((0,J.Y4)(e)," ").concat((0,$._6)(e,"день","дня","дней"));if(+n>t)return"Максимальный срок - ".concat((0,J.Y4)(t)," ").concat((0,$._6)(t,"день","дня","дней"))}};var en=n(38174),er=n(23769);let eo=(e,t,n,r)=>e.filter(e=>{var o,i;let a=null!==(o=e.amount_from)&&void 0!==o?o:n,s=null!==(i=e.amount_to)&&void 0!==i?i:r;return t>=a&&t<=s}).sort((e,t)=>e.term_from-t.term_from),ei=e=>{let t=String(e.rate).replace(".",",");return{tag:e.tag,id:e.term_from,value:e.term_from,label:"".concat((0,er.E)(e.term_from)," - ").concat(t,"%"),rate:e.rate}},ea=(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,en.j)(e.currency_id),a=Number(e.amount.from||i.from),s=Number(e.amount.to||i.to),u=eo(e.interest_rate.rates,t,a,s),l=u.map(ei),c=u.map(e=>e.term_to);return{minSum:a,maxSum:s,isFixedTerms:o,termChips:l,minTerm:Math.min(...u.map(e=>e.term_from)),maxTerm:Math.max(...c),terms:u}},es=(e,t,n)=>e<t?t:e>n?n:e,eu=(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),el=(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)=>eu(e,t)-eu(n,t))[0];return r&&ei(r)},ec=e=>{var t,n,o,i,a,c,d;let{className:m,isMobile:p,data:v,depositType:_,onChangeData:h,discount:g,company:y,extraInfo:U,isShowDepositTip:V}=e,{asPath:W}=(0,f.P)(),[H,z]=(0,s.useState)(!1),G=(0,s.useRef)(null),J=(0,s.useRef)(null),$=(0,s.useRef)(!1),[en,er]=(0,s.useState)(!1),[eo,eu]=(0,s.useState)(null),[ec,ed]=(0,s.useState)(),em=(0,K.Z)(0,0,!1),[ep,ef]=(0,s.useState)(()=>{var e,t;if((null===(e=U.algo)||void 0===e?void 0:e.id)!=="mkb-nakop")return;let{expenseChips:n,defaultExpenseChip:r}=U.algo;return null!==(t=n.find(e=>e.id===r))&&void 0!==t?t:n.at(-1)}),[ev,e_]=(0,s.useState)(()=>{var e;return(null===(e=U.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&U.algo.salaryToggleDefaultValue}),eh=(0,T.z)(v.currency_id),{events:eg,value:ey,formattedValue:eb,handleChange:ex}=(0,Y.G)({type:"float",format:"currency",unit:eh.unit,defaultValue:String(v.amount.from),maxLength:20,maxFractionalLength:2}),{events:ew,value:eD,formattedValue:ej,handleChange:eN}=(0,Y.G)({type:"int",unit:"day",maxLength:10,defaultValue:()=>{var e;return(null===(e=U.algo)||void 0===e?void 0:e.id)==="mkb-nakop"?String(U.algo.defaultTermDays):"1"}}),{isFixedTerms:ek,termChips:eA,minSum:eC,maxSum:eS,minTerm:eP,maxTerm:eM}=(0,s.useMemo)(()=>{var e;let t=ea(v,Number(ey));return(null===(e=U.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&(t.maxSum=U.algo.maxAmount,t.minSum=U.algo.minAmount),t},[v,U.algo,ey]),eT=_===l.P.isArchiveDeposit,eI=!U.algo&&ek&&ec?ec.value:eD,eO=!!v.type.saving_account,eE=(0,s.useMemo)(()=>{let e=[];return ek&&ec&&!Array.isArray(ec)&&e.push(ec),!ek&&eD&&e.push({label:ej,id:"term"}),ey&&e.push({label:eb,id:"amount"}),e},[ek,ec,eb,ey,ej,eD]),eB=(0,s.useMemo)(()=>v.interest_rate.rates.find(e=>{var t,n;let r=null!==(t=e.amount_from)&&void 0!==t?t:eC,o=null!==(n=e.amount_to)&&void 0!==n?n:eS;return+eI>=e.term_from&&(eO||+eI<=e.term_to)&&+ey>=r&&+ey<=o}),[eI,v.interest_rate.rates,eO,eS,eC,ey]),eF=(0,s.useMemo)(()=>{if(U.algo){if("mkb-nakop"===U.algo.id&&ep)return ev?ep.rateWithSalary:ep.rate}else if(eB)return eB.rate;return 0},[eB,U.algo,ev,ep]),eL=(0,s.useMemo)(()=>{var e;if(!(ek?null==ec?void 0:ec.value:eD))return;let t=v.interest_rate.rates.sort((e,t)=>{var n,r;return(null!==(n=e.amount_from)&&void 0!==n?n:eC)-(null!==(r=t.amount_from)&&void 0!==r?r:eS)}),n=null===(e=t.find(e=>(null==eB?void 0:eB.amount_from)&&e.amount_from&&e.amount_from>eB.amount_from))||void 0===e?void 0:e.amount_from;return t.find(e=>eB&&e.amount_from===n&&e.term_from===eB.term_from)},[eB,v,ek,eS,eC,ec,eD]),eY=(0,s.useMemo)(()=>eB&&eo&&eB.amount_from?{difference:eB.rate-eo.rate,minAmount:eB.amount_from}:eL&&eB&&eL.amount_from?{difference:eL.rate-eB.rate,minAmount:eL.amount_from}:void 0,[eL,eB,eo]),{urlFirst:eK,urlSecond:eR}=(0,M._)({asPath:W,productId:v.id,optionId:null==eB?void 0:eB.optionId,amount:+ey,durationValue:v.asSavingAccount?void 0:eI,firstBaseUrl:null!==(a=(0,j.env)("NEXT_PUBLIC_MOEX_AD_URI"))&&void 0!==a?a:"",secondBaseUrl:null==eB?void 0:null===(t=eB.mp)||void 0===t?void 0:t.url,passAggregatorId:!0}),eU=(null==eB?void 0:eB.optionId)?eK:eR,eQ=ee(eC,eS,ey),eZ=eQ||0===eM?void 0:et(eP,eM,eD),eV=(0,s.useCallback)(()=>{eu(null),er(!1)},[]),eW=(0,s.useCallback)(e=>{ex(null!=e?e:""),eV()},[ex,eV]),eH=(0,s.useCallback)(e=>{eN(null!=e?e:""),eV()},[eN,eV]),ez=(0,s.useCallback)(()=>{var e;p&&G.current&&(z(!0),setTimeout(()=>{G.current&&(0,F.l)(G.current,{offset:em,position:"top"})},300)),p||null===(e=J.current)||void 0===e||e.focus()},[p,em]),eG=(0,s.useCallback)(e=>{let t=eA.find(t=>t.id===e);t&&((0,B.lQ)({event:"data-event",eventAction:"click_button_".concat((0,L.b)(t.label)),eventCategory:"vklady",eventLabel:v.id}),ed(t)),eV()},[v.id,eV,eA]),eX=(0,s.useCallback)(e=>{e&&eL&&eL.amount_from?(eB&&eu(eB),ex(eL.amount_from),ek?ed(ei(eL)):eN(eL.term_from),er(!0)):e||((null==eo?void 0:eo.amount_from)&&(ex(eo.amount_from),ek?ed(ei(eo)):eN(eo.term_from),eu(null)),er(!1))},[eL,eB,ex,eN,ek,eo]);(0,s.useEffect)(()=>{var e;let t;if($.current)return;let n={amount:String(eC),period:null,...(0,O.p)(W,"#")};t=n.period?Math.round(30.4375*(+n.period||3)):(null===(e=U.algo)||void 0===e?void 0:e.id)==="mkb-nakop"?U.algo.defaultTermDays:1;let r=es(+n.amount,eC,eS);ex(r),ed(el(r,t,v.interest_rate.rates)),eN(t),$.current=!0},[W,v.interest_rate.rates,U.algo,ex,eN,eS,eC]),(0,s.useEffect)(()=>{$.current&&ed(e=>{let t=eA.find(t=>t.label===(null==e?void 0:e.label));if(t)return t;let n=eA.find(t=>t.value===(null==e?void 0:e.value));return null!=n?n:eA[0]})},[eA]),(0,s.useEffect)(()=>{$.current&&isFinite(eP)&&eN(e=>+e>eM?eM:+e<eP?eP:e)},[eN,eM,eP]),(0,s.useEffect)(()=>{h({amount:+ey,optionId:null==eB?void 0:eB.optionId,term:+eI,appUrl:eU})},[eU,eI,h,ey,null==eB?void 0:eB.optionId]);let eq=()=>{var e;return(0,r.jsx)(X,{data:{url:v.url,title:v.title},bank:{logoMob:null==y?void 0:y.logo_mob,url:null==y?void 0:y.url,name:null!==(e=null==y?void 0:y.name)&&void 0!==e?e:v.bank_name},titlePromo:eO?" Накопительный счёт":" Вклад",tagTheme:eO?"blue":"orange",archiveText:" Этот вклад уже нельзя открыть. Посмотрите свежие предложения на нашей витрине",isArchive:eT,className:eT?void 0:Q().promo})},eJ=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.R,{className:(0,D.Z)(Q().input,eQ&&Q().inputError),placeholder:"Сумма",value:ey?Number(ey):void 0,ref:J,caption:eQ,state:eQ?"error":void 0,onChange:eW,onFocus:eg.onFocus,onBlur:eg.onBlur,onKeyDown:E._,unit:eh.unit,withoutControls:!0,decimalsCount:2}),!U.algo&&(0,r.jsxs)(r.Fragment,{children:[ek&&(0,r.jsx)(b.c,{chips:eA,onChipClick:eG,value:null==ec?void 0:ec.id,activeVariant:"secondary",size:"m",className:Q().chipsForm}),!ek&&(0,r.jsx)(x.R,{placeholder:"Срок",value:eD?Number(eD):void 0,state:eZ?"error":void 0,caption:eZ,disabled:!!eQ,onChange:eH,onFocus:ew.onFocus,onBlur:ew.onBlur,onKeyDown:E._,className:(0,D.Z)(Q().input,eZ&&Q().inputError),unit:"дн",withoutControls:!0,decimals:"never",decimalsCount:0})]}),(null===(d=U.algo)||void 0===d?void 0:d.id)==="mkb-nakop"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,D.Z)(Q().input,Q().inputRange),children:(0,r.jsx)(w.O,{label:"Срок",value:Math.round(+eI/30.4375),min:1,max:36,step:1,ticks:[{value:1,label:(0,r.jsx)("span",{className:Q().legend,children:"1 мес"})},{value:36,label:(0,r.jsx)("span",{className:Q().legend,children:"36 мес"})}],onChange:e=>{eN(Math.round((null!=e?e:1)*30.4375))},unit:"мес",decimals:"never",decimalsCount:0})}),(0,r.jsx)("div",{className:Q().expenseHead,children:(0,r.jsxs)("div",{style:{display:"flex"},children:["Траты по карте в месяц",(0,r.jsx)(C.C,{iconClassName:Q().infoIcon,text:(0,r.jsx)(r.Fragment,{children:"При определении суммы операций учитываются суммы, списанные со счета карты с последнего дня предыдущего месяца по предпоследний день текущего месяца (включительно). Не учитываются операции из списка исключений по учету сумм операций по оплате товаров и услуг, с которыми можно ознакомиться в разделе \xabДокументы\xbb на сайте МКБ"})})]})}),(0,r.jsx)("div",{className:Q().expenseSub,children:"От них зависит ставка накопительного счета"}),(0,r.jsx)(b.c,{chips:U.algo.expenseChips,onChipClick:e=>{var t,n,r;ef(null!==(r=null===(t=U.algo)||void 0===t?void 0:t.expenseChips.find(t=>t.id===e))&&void 0!==r?r:null===(n=U.algo)||void 0===n?void 0:n.expenseChips[0])},value:null==ep?void 0:ep.id,activeVariant:"secondary",size:"m",className:Q().chipsForm}),(0,r.jsx)(k.Y,{className:Q().disclaimer,text:"Все счета застрахованы в АСВ"})]})]}),e$=(0,s.useMemo)(()=>(0,I.Z)(v.interest_payment),[v.interest_payment]);return(0,r.jsxs)(u.t,{className:(0,D.Z)(Q().container,m,!eT&&Q().containerFull),children:[!eT&&eq(),(0,r.jsxs)("div",{className:Q().left,ref:G,children:[eT&&(0,r.jsx)(A.M,{title:"Вклад в архиве",url:S.N9.VKLADY,text:"Его уже нельзя открыть. Но мы можем подобрать для Вас другие предложения от разных банков"}),!eT&&(0,r.jsx)(N.y,{isMobile:!!p,title:"Настройки ".concat(eO?"счета":"вклада"),pageUrl:S.N9.VKLADY,infoLink:{isShow:!0,text:"Подробнее о ".concat(eO?"счете":"вкладе"),idScrollBlock:P.p6,offPadding:!0,widthMaxContent:!0},chips:eE,isShowChips:p&&!!(null==eE?void 0:eE.length)&&!H,isExpandSettings:H,onToggleSettings:p?()=>{z(e=>!e),(0,B.lQ)({event:"data-event",eventAction:"click_button_".concat((0,L.b)("Настройки вклада")),eventCategory:"vklady",eventLabel:v.id})}:void 0,content:eJ,isSavingAccount:eO,eventCategory:"widget-vklady",withNewMarkup:!1,productId:String(v.id)})]}),(0,r.jsxs)("div",{className:Q().right,children:[eT&&eq(),(0,r.jsx)(Z.n,{rate:eF,sum:Number(ey),term:Number(eI),productId:null!==(c=null==eB?void 0:null===(n=eB.mp)||void 0===n?void 0:n.product_id)&&void 0!==c?c:v.id,tag:null==ec?void 0:ec.tag,isMobile:p,onEdit:ez,appUrl:null!=eU?eU:v.online_application.url,depositType:_,onSwitchRate:eX,isRateSwitched:en,switchRate:eY,isCapitalization:(null===(o=v.interest_capitalization)||void 0===o?void 0:o.has)===1&&0===v.partial_withdrawal.has&&(null===(i=v.refill)||void 0===i?void 0:i.has)===0||eO,refillSum:"",percentType:R.kJ[0].value,period:q(v).value,refillType:R.k5[0].value,unit:eh.unit,tags:v.tags,discount:g,isSavingAccount:eO,extraInfo:U,salaryToggle:ev,setSalaryToggle:e_,isShowDepositTip:V,paymentFrequency:e$,scrollOffset:em,withChart:!0,eventCategory:"widget-vklady",withNewMarkup:!1,totalValues:""})]})]})};var ed=n(11504),em=n.n(ed),ep=n(85605),ef=n.n(ep),ev=n(69784);let e_=e=>{var t,n,i;let{data:b,questions:x,company:w,discounts:D,aggregatorIds:j}=e,{query:N,asPath:k}=(0,f.P)(),{frameId:A}=N,C=(0,o._m)("l"),{bonuses:S,isPlusFiveBonus:P,isOldUser:M}=(0,_.Z)(D),T=void 0===b.finuslugiBonusAllowed||b.finuslugiBonusAllowed,[I,E]=(0,s.useState)(),B=(0,s.useMemo)(()=>Object.entries((0,d.i)(b)).find(e=>e[1]&&e[0]),[b]),F=(0,s.useMemo)(()=>B&&B[0],[B]),L=(0,c.p)({currentAmount:null!==(t=null==I?void 0:I.amount)&&void 0!==t?t:0,terms:null!==(n=null==I?void 0:I.term)&&void 0!==n?n:0,finuslugiBonusAllowed:T,isPlusFiveBonus:P,isOldUser:M,finuslugiBonusPromotion:b.finuslugiBonusPromotion}),Y=M?(0,m.pW)(b.finuslugiBonusPromotion):null==S?void 0:S.find(e=>"five_procent"===e.unique_key),K=L?Y:void 0,R=!M&&F===l.P.isPlatformDeposit,U=function(e){let{asPath:t,frameId:n}=e,{utm_campaign:r,utm_medium:o,utm_source:i,utm_term:a}=(0,O.p)(t,"#");return"/widget-vklady?"+ef().stringify((0,ev.Y)({frameId:n,utm_campaign:r,utm_medium:o,utm_source:i,utm_term:a}))}({frameId:A,asPath:k});return(0,p.j)(),(0,v.Z)(j),(0,r.jsxs)("main",{className:em().page,children:[(0,r.jsx)(a(),{children:(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"},"viewport")}),(0,r.jsx)(u.t,{children:(0,r.jsx)("nav",{children:(0,r.jsx)("a",{href:U,className:em().backLink,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:em().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:em().backText,children:"Назад"})]})})})}),(0,r.jsx)(ec,{discount:K,isMobile:!C,data:b,className:em().calculator,onChangeData:E,depositType:F,isPlusFiveBonus:P,isOldUser:M,company:w,extraInfo:{},isShowDepositTip:R}),(0,r.jsx)(u.t,{className:em().about,children:(0,r.jsx)(g.c,{isMobile:!C,questions:x,data:b,company:w,className:em().params,amount:null!==(i=null==I?void 0:I.amount)&&void 0!==i?i:0,optionId:null==I?void 0:I.optionId,discount:K,isPlusFiveBonus:P,isOldUser:M,extraInfo:{},withNewMarkup:!1,eventCategory:"widget-vklady"})}),R&&(0,r.jsx)(y.V,{isSavingAccount:!!b.type.saving_account,withNewMarkup:!1,eventCategory:"widget-vklady",productId:String(b.id)}),(0,r.jsx)(h.m,{className:em().disclaimer})]})}},19612:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(14862);class o{get hasKeysExistsSome(){return[...this.amountKeys,...this.termsKeys].some(e=>Object.prototype.hasOwnProperty.call(this.promotion,e))}get hasKeysExistsEvery(){return[...this.amountKeys,...this.termsKeys].every(e=>Object.prototype.hasOwnProperty.call(this.promotion,e))}get hasAmountKeys(){return this.amountKeys.some(e=>Object.prototype.hasOwnProperty.call(this.promotion,e))}get hasTermsKeys(){return this.termsKeys.some(e=>Object.prototype.hasOwnProperty.call(this.promotion,e))}checkMinMax(e,t,n){return(!!n||!!t)&&(n&&!t?e<=n:!n&&t?e>=t:e>=t&&e<=n)}getDiscountByAmount(){return this.checkMinMax(this.currentAmount,this.minAmount,this.maxAmount)}getDiscountByTerms(){return this.checkMinMax(this.terms,this.minTermInDays,this.maxTermInDays)}constructor(e,t){var n,r,o,i;this.promotion=e,this.minAmount=null!==(n=e.minAmount)&&void 0!==n?n:0,this.maxAmount=null!==(r=e.maxAmount)&&void 0!==r?r:0,this.minTermInDays=null!==(o=e.minTermInDays)&&void 0!==o?o:0,this.maxTermInDays=null!==(i=e.maxTermInDays)&&void 0!==i?i:0,this.terms=t.terms,this.currentAmount=t.currentAmount,this.amountKeys=["minAmount","maxAmount"],this.termsKeys=["minTermInDays","maxTermInDays"]}}let i=e=>{let{currentAmount:t,finuslugiBonusAllowed:n,isPlusFiveBonus:i,isOldUser:a,terms:s,finuslugiBonusPromotion:u,firstDepositPromotionAllowed:l,repeatDepositPromotionAllowed:c}=e;if(r.publicConfig.FEATURE_TOGGLE_NEW_BONUS_API_ENABLED)return!!(l&&!a||c&&a);if(!n)return!1;if(i)return!0;if(!u||!a)return!1;let d=new o(u,{terms:s,currentAmount:+t});return!d.hasAmountKeys&&!d.hasTermsKeys||(d.terms&&d.currentAmount||!d.hasKeysExistsEvery?!!(d.terms&&d.hasKeysExistsSome&&d.getDiscountByTerms())&&!!(d.currentAmount&&d.hasKeysExistsSome&&d.getDiscountByAmount()):d.getDiscountByTerms()&&d.getDiscountByAmount())}},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,s=(!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&&s,[r.P.isNonPlatformDeposit]:1!==i&&3!==a&&0===n&&s,[r.P.isLidgenDeposit]:1===i&&3!==a&&0===n&&s,[r.P.isArchiveDeposit]:1===n||!s}}},75109:function(e,t,n){"use strict";n.d(t,{D:function(){return o},pW:function(){return r},qL:function(){return i}});let r=e=>e&&{fixedBonusAmount:e.fixedBonusAmount,sum:e.maxBonusAmount,rate:e.annualPercentBonusValue,description:e.productsBonusTooltip,terms:e.productDetailBonusTooltip,link:e.helpfulLink},o=(e,t,n,o,i)=>o?i?n:void 0:e?r(t):n;function i(e,t){return!t}},34482: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 s}});var r=n(2265),o=n(7006),i=n(26876),a=n(53931);function s(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=(0,a.$1)(),u=(null==s?void 0:s["auth.gtm_customer_id"])||null,[l]=(0,r.useState)(n&&null!=e?e:[]),[c,d]=(0,r.useState)(!1),[m,p]=(0,r.useState)(!0),[f,v]=(0,r.useState)(!1),[_,h]=(0,r.useState)(t&&!!u);return(0,r.useEffect)(()=>{u&&n&&(h(!0),(0,o.M)(u).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),v(!0),d(!0))}).finally(()=>{h(!1)}))},[u,n]),{customerId:u,isOldUser:f,isPlusFiveBonus:m,isHiddenPromo:c,isDiscountsLoading:_,bonuses:l}}},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,s=(0,r.useRef)(null),[u,l]=(0,r.useState)(!1),[c,d]=(0,r.useState)(i),m=(0,r.useCallback)(e=>{let[n]=e;1===n.intersectionRatio&&!u&&(l(!0),null==a||a(),"entry"===o&&s.current&&t.current&&s.current.unobserve(t.current)),d(n.intersectionRatio>0)},[u,t,o,a]);return(0,r.useEffect)(()=>{n||!t.current||s.current||(s.current=new IntersectionObserver(m,{root:null,threshold:"entry"===o?[1]:[0]}),s.current.observe(t.current))},[n,m,u,t,o]),{isShowed:u,inView:c,resetShow:(0,r.useCallback)(()=>{l(!1),s.current&&t.current&&s.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:s,disabled:u=!1}=e,l=(0,r.useCallback)(()=>{(0,o.lQ)({event:"data-event",eventLabel:s,eventCategory:n,eventAction:a,eventValue:""})},[a,n,s]),{resetShow:c}=(0,i.S)({itemRef:t,disabled:u,mode:"entry",onShow:l});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)},[])}}},38068:function(){},98074:function(e){e.exports={disclaimer:"DepositDetailDisclaimer_disclaimer__WOd5G"}},79142:function(e){e.exports={container:"DepositDetailSteps_container__uD6OU",title:"DepositDetailSteps_title__uTNGG",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={wrapper:"Promo_wrapper__qW8nd",wrapperArchive:"Promo_wrapperArchive__kJHBY",wrapperSmall:"Promo_wrapperSmall__V_Eun",company:"Promo_company__lUdHV",title:"Promo_title__O_GjA",subTitle:"Promo_subTitle__KoZ_K",subTitleArchive:"Promo_subTitleArchive__olfD8",subTitleText:"Promo_subTitleText__eha_f",chip:"Promo_chip__6cw2y",primary:"Promo_primary__O4FH4",secondary:"Promo_secondary__yyoZY",red:"Promo_red__Fj_cA",green:"Promo_green__wijKX",orange:"Promo_orange__ggHbQ",purple:"Promo_purple__UzrJt",blue:"Promo_blue__iB_AC",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"}},43053:function(e,t,n){"use strict";n.d(t,{R:function(){return r.I}});var r=n(13607)},92668:function(e,t,n){"use strict";n.d(t,{I:function(){return s}});var r=n(59121),o=n(31091),i=n(63497),a=n(99649);function s(e,t){let{years:n=0,months:s=0,weeks:u=0,days:l=0,hours:c=0,minutes:d=0,seconds:m=0}=t,p=(0,a.Q)(e),f=s||n?(0,o.z)(p,s+12*n):p,v=l||u?(0,r.E)(f,l+7*u):f;return(0,i.L)(e,v.getTime()+1e3*(m+60*(d+60*c)))}},59121:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});var r=n(99649),o=n(63497);function i(e,t){let n=(0,r.Q)(e);return isNaN(t)?(0,o.L)(e,NaN):(t&&n.setDate(n.getDate()+t),n)}},31091:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(99649),o=n(63497);function i(e,t){let n=(0,r.Q)(e);if(isNaN(t))return(0,o.L)(e,NaN);if(!t)return n;let i=n.getDate(),a=(0,o.L)(e,n.getTime());return(a.setMonth(n.getMonth()+t+1,0),i>=a.getDate())?a:(n.setFullYear(a.getFullYear(),a.getMonth(),i),n)}},89981:function(e,t,n){"use strict";n.d(t,{u:function(){return o}});var r=n(99649);function o(e,t){let n,o;return[([e,t.start].forEach(function(e){let t=(0,r.Q)(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)}),n||new Date(NaN)),t.end].forEach(e=>{let t=(0,r.Q)(e);(!o||o>t||isNaN(+t))&&(o=t)}),o||new Date(NaN)}},78198:function(e,t,n){"use strict";n.d(t,{dP:function(){return o},jE:function(){return r}});let r=6048e5,o=864e5},63497:function(e,t,n){"use strict";function r(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}n.d(t,{L:function(){return r}})},55934:function(e,t,n){"use strict";n.d(t,{w:function(){return s}});var r=n(78198),o=n(56942),i=n(99649);function a(e){let t=(0,i.Q)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function s(e,t){let n=(0,o.b)(e),i=(0,o.b)(t);return Math.round((+n-a(n)-(+i-a(i)))/r.dP)}},69775:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(99649);function o(e,t){var n;let o=(0,r.Q)(e.start),i=(0,r.Q)(e.end),a=+o>+i,s=a?+o:+i,u=a?i:o;u.setHours(0,0,0,0),u.setMonth(0,1);let l=null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1;if(!l)return[];l<0&&(l=-l,a=!a);let c=[];for(;+u<=s;)c.push((0,r.Q)(u)),u.setFullYear(u.getFullYear()+l);return a?c.reverse():c}},85873:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(99649);function o(e){let t=(0,r.Q)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}},52603:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(99649);function o(e){let t=(0,r.Q)(e);return"Invalid Date"===String(new Date(t))?NaN:!function(e){let t=(0,r.Q)(e).getFullYear();return t%400==0||t%4==0&&t%100!=0}(t)?365:366}},56942:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(99649);function o(e){let t=(0,r.Q)(e);return t.setHours(0,0,0,0),t}},99649:function(e,t,n){"use strict";function r(e){let t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):new Date("number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?e:NaN)}n.d(t,{Q:function(){return r}})}},function(e){e.O(0,[5641,6379,2815,393,6697,4519,9900,2027,4791,5392,2273,2795,5945,1934,588,754,2238,1245,9967,5729,9681,8290,5005,2591,4471,8227,4566,779,2987,3597,5893,5899,1309,8503,1302,8138,6663,1750,1576,1659,5891,1055,4768,7509,3868,2430,2249,7146,4223,1082,9019,5501,207,830,2699,9325,3145,7517,139,2938,3767,2736,7550,1321,1088,1196,5119,2971,2117,1744],function(){return e(e.s=63185)}),_N_E=e.O()}]);