(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))},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),_={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},p={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:_,isTouched:v,onMouseDown:p,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:p,onMouseMove:f,onMouseLeave:h,onMouseUp:h,onMouseUpCapture:()=>!(_&&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:_,id:2,text:"Привяжите Госуслуги и подтвердите документы через Тинькофф ID/Alfa ID или у представителя Финуслуг"},{image:f,id:3,text:"Отправьте заявку на ".concat(t?"накопительный счет":"вклад",". Пополните вклад через личный кабинет на Финуслугах")},{image:p,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),_=n(78529),v=n(14441),p=n(34039),f=n(49394),h=n(21891),g=n(16161),b=n(69430),x=n(54365),w=n(50666),y=n(82619),k=n(29184),D=n(23468),S=n(65716),j=n(37162),C=n(39402),N=n(96742),P=n(34482),M=n(91220),A=n(2493),T=n(72151),I=n(31219),E=n(50487),F=n(48034),L=n(72096),Z=n(96024),B=n.n(Z),O=n(32523),R=n(33145),Y=n(39666),V=n(38225),W=n.n(V);let U=(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)(W().wrapper,{[W().wrapperArchive]:a,[W().wrapperSmall]:a||s},t),children:(0,r.jsxs)(o.W2,{className:W().company,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:W().title,children:null==i?void 0:i.name}),(0,r.jsxs)("h2",{className:(0,x.Z)(W().subTitle,a&&W().subTitleArchive),children:[(0,r.jsx)(o.$,{className:W().chip,text:(0,Y.Y)(l),color:u}),(0,r.jsxs)("span",{className:W().subTitleText,children:["\xab",n.title,"\xbb"]})]})]}),(null==i?void 0:i.logoMob)&&(0,r.jsx)(R.default,{className:W().logo,src:i.logoMob,alt:"",width:48,height:48})]})})})});U.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=L.$k.find(e=>n===e.value))&&void 0!==t?t:L.$k[0]};var G=n(70104),K=n(36578);let Q=(e,t,n)=>{if(void 0!==n){if(+n<e)return"Минимальная сумма - ".concat((0,G.Y4)(e)," ₽");if(+n>t)return"Максимальная сумма - ".concat((0,G.Y4)(t)," ₽")}},z=(e,t,n)=>{if(void 0!==n){if(+n<e)return"Минимальный срок - ".concat((0,G.Y4)(e)," ").concat((0,K._6)(e,"день","дня","дней"));if(+n>t)return"Максимальный срок - ".concat((0,G.Y4)(t)," ").concat((0,K._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:_,isMobile:p,data:f,depositType:h,onChangeData:g,discount:b,company:Z,extraInfo:R,isShowDepositTip:Y}=e,{asPath:V}=(0,v.P)(),[W,G]=(0,l.useState)(!1),K=(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,F.Z)(0,0,!1),[eu,ec]=(0,l.useState)(()=>{var e,t;if((null===(e=R.algo)||void 0===e?void 0:e.id)!=="mkb-nakop")return;let{expenseChips:n,defaultExpenseChip:r}=R.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=R.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&R.algo.salaryToggleDefaultValue}),e_=(0,N.z)(f.currency_id),{events:ev,value:ep,formattedValue:ef,isFocused:eh,handleChange:eg}=(0,E.G)({type:"float",format:"currency",unit:e_.unit,defaultValue:String(f.amount.from),maxLength:20,maxFractionalLength:2}),{events:eb,value:ex,formattedValue:ew,isFocused:ey,handleChange:ek}=(0,E.G)({type:"int",unit:"day",maxLength:10,defaultValue:()=>{var e;return(null===(e=R.algo)||void 0===e?void 0:e.id)==="mkb-nakop"?String(R.algo.defaultTermDays):"1"}}),{isFixedTerms:eD,termChips:eS,minSum:ej,maxSum:eC,minTerm:eN,maxTerm:eP}=(0,l.useMemo)(()=>{var e;let t=ee(f,Number(ep));return(null===(e=R.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&(t.maxSum=R.algo.maxAmount,t.minSum=R.algo.minAmount),t},[f,R.algo,ep]),eM=h===u.P.isArchiveDeposit,eA=!R.algo&&eD&&ea?ea.value:ex,eT=!!f.type.saving_account,eI=(0,l.useMemo)(()=>{let e=[];return eD&&ea&&!Array.isArray(ea)&&e.push(ea),!eD&&ex&&e.push({label:ew,id:"term"}),ep&&e.push({label:ef,id:"amount"}),e},[eD,ea,ef,ep,ew,ex]),eE=(0,l.useMemo)(()=>f.interest_rate.rates.find(e=>{var t,n;let r=null!==(t=e.amount_from)&&void 0!==t?t:ej,o=null!==(n=e.amount_to)&&void 0!==n?n:eC;return+eA>=e.term_from&&(eT||+eA<=e.term_to)&&+ep>=r&&+ep<=o}),[eA,f.interest_rate.rates,eT,eC,ej,ep]),eF=(0,l.useMemo)(()=>{if(R.algo){if("mkb-nakop"===R.algo.id&&eu)return ed?eu.rateWithSalary:eu.rate}else if(eE)return eE.rate;return 0},[eE,R.algo,ed,eu]),eL=(0,l.useMemo)(()=>{var e;if(!(eD?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:ej)-(null!==(r=t.amount_from)&&void 0!==r?r:eC)}),n=null===(e=t.find(e=>(null==eE?void 0:eE.amount_from)&&e.amount_from&&e.amount_from>eE.amount_from))||void 0===e?void 0:e.amount_from;return t.find(e=>eE&&e.amount_from===n&&e.term_from===eE.term_from)},[eE,f,eD,eC,ej,ea,ex]),eZ=(0,l.useMemo)(()=>eE&&eo&&eE.amount_from?{difference:eE.rate-eo.rate,minAmount:eE.amount_from}:eL&&eE&&eL.amount_from?{difference:eL.rate-eE.rate,minAmount:eL.amount_from}:void 0,[eL,eE,eo]),{urlFirst:eB,urlSecond:eO}=(0,C._)({asPath:V,productId:f.id,optionId:null==eE?void 0:eE.optionId,amount:+ep,durationValue:f.asSavingAccount?void 0:eA,firstBaseUrl:null!==(c=(0,w.env)("NEXT_PUBLIC_MOEX_AD_URI"))&&void 0!==c?c:"",secondBaseUrl:null==eE?void 0:null===(t=eE.mp)||void 0===t?void 0:t.url,passAggregatorId:!0}),eR=(null==eE?void 0:eE.optionId)?eB:eO,eY=Q(ej,eC,ep),eV=eY||0===eP?void 0:z(eN,eP,ex),eW=(0,l.useCallback)(()=>{ei(null),en(!1)},[]),eU=(0,l.useCallback)(e=>{eg(e.currentTarget.value.replace(",",".")),eW()},[eg,eW]),eH=(0,l.useCallback)(e=>{eb.onChange(e),eW()},[eW,eb]),eG=(0,l.useCallback)(()=>{var e;p&&K.current&&(G(!0),setTimeout(()=>{K.current&&(0,o.ld)(K.current,{offset:es,position:"top"})},300)),p||null===(e=X.current)||void 0===e||e.focus()},[p,es]),eK=(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)),eW()},[f.id,eW]),eQ=(0,l.useCallback)(e=>{e&&eL&&eL.amount_from?(eE&&ei(eE),eg(eL.amount_from),eD?el($(eL)):ek(eL.term_from),en(!0)):e||((null==eo?void 0:eo.amount_from)&&(eg(eo.amount_from),eD?el($(eo)):ek(eo.term_from),ei(null)),en(!1))},[eL,eE,eg,ek,eD,eo]);(0,l.useEffect)(()=>{var e;let t;if(q.current)return;let n={amount:String(ej),period:null,...(0,M.p)(V,"#")};t=n.period?Math.round(30.4375*(+n.period||3)):(null===(e=R.algo)||void 0===e?void 0:e.id)==="mkb-nakop"?R.algo.defaultTermDays:1;let r=et(+n.amount,ej,eC);eg(r),el(er(r,t,f.interest_rate.rates)),ek(t),q.current=!0},[V,f.interest_rate.rates,R.algo,eg,ek,eC,ej]),(0,l.useEffect)(()=>{q.current&&el(e=>{let t=eS.find(t=>t.label===(null==e?void 0:e.label));if(t)return t;let n=eS.find(t=>t.value===(null==e?void 0:e.value));return null!=n?n:eS[0]})},[eS]),(0,l.useEffect)(()=>{q.current&&isFinite(eN)&&ek(e=>+e>eP?eP:+e<eN?eN:e)},[ek,eP,eN]),(0,l.useEffect)(()=>{g({amount:+ep,optionId:null==eE?void 0:eE.optionId,term:+eA,appUrl:eR})},[eR,eA,g,ep,null==eE?void 0:eE.optionId]);let ez=()=>{var e;return(0,r.jsx)(U,{data:{url:f.url,title:f.title},bank:{logoMob:null==Z?void 0:Z.logo_mob,url:null==Z?void 0:Z.url,name:null!==(e=null==Z?void 0:Z.name)&&void 0!==e?e:f.bank_name},titlePromo:eT?" Накопительный счёт":" Вклад",tagTheme:eT?"blue":"orange",archiveText:" Этот вклад уже нельзя открыть. Посмотрите свежие предложения на нашей витрине",isArchive:eM,className:eM?void 0:B().promo})},eX=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.lF,{className:(0,x.Z)(B().input,eY&&B().inputError),placeholder:"Сумма",value:eh?ep.replace(".",","):ef,innerRef:X,message:eY,status:eY?"error":void 0,max:20,onChange:eU,onFocus:ev.onFocus,onBlur:ev.onBlur,onKeyDown:A._}),!R.algo&&(0,r.jsxs)(r.Fragment,{children:[eD&&(0,r.jsx)(o.ev,{options:eS,onChange:eK,selected:ea,theme:"secondary",size:"medium",className:B().chipsForm}),!eD&&(0,r.jsx)(o.lF,{placeholder:"Срок",value:ey?ex:ew,status:eV?"error":void 0,message:eV,disabled:!!eY,max:20,onChange:eH,onFocus:eb.onFocus,onBlur:eb.onBlur,onKeyDown:A._,className:(0,x.Z)(B().input,eV&&B().inputError)})]}),(null===(m=R.algo)||void 0===m?void 0:m.id)==="mkb-nakop"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,x.Z)(B().input,B().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;ek(Math.round(30.4375*t))},formatValue:e=>(0,r.jsxs)("span",{className:B().legend,children:[e," мес"]})}})}),(0,r.jsx)("div",{className:B().expenseHead,children:(0,r.jsx)(o.qQ,{keyValue:"expense",iconClassName:B().infoIcon,text:(0,r.jsx)(r.Fragment,{children:"При определении суммы операций учитываются суммы, списанные со счета карты с последнего дня предыдущего месяца по предпоследний день текущего месяца (включительно). Не учитываются операции из списка исключений по учету сумм операций по оплате товаров и услуг, с которыми можно ознакомиться в разделе \xabДокументы\xbb на сайте МКБ"}),children:"Траты по карте в месяц"})}),(0,r.jsx)("div",{className:B().expenseSub,children:"От них зависит ставка накопительного счета"}),(0,r.jsx)(o.ev,{options:R.algo.expenseChips,onChange:e=>{var t;ec(null!=e?e:null===(t=R.algo)||void 0===t?void 0:t.expenseChips[0])},selected:eu,theme:"secondary",size:"medium",className:B().chipsForm}),(0,r.jsx)(k.Y,{className:B().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)(B().container,_,!eM&&B().containerFull),children:[!eM&&ez(),(0,r.jsxs)("div",{className:B().left,ref:K,children:[eM&&(0,r.jsx)(D.M,{title:"Вклад в архиве",url:S.N9.VKLADY,text:"Его уже нельзя открыть. Но мы можем подобрать для Вас другие предложения от разных банков"}),!eM&&(0,r.jsx)(y.y,{isMobile:!!p,title:"Настройки ".concat(eT?"счета":"вклада"),pageUrl:S.N9.VKLADY,infoLink:{isShow:!0,text:"Подробнее о ".concat(eT?"счете":"вкладе"),idScrollBlock:j.p6,offPadding:!0,widthMaxContent:!0},chips:eI,isShowChips:p&&!!(null==eI?void 0:eI.length)&&!W,isExpandSettings:W,onToggleSettings:p?()=>{G(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:B().right,children:[eM&&ez(),(0,r.jsx)(O.n,{rate:eF,sum:Number(ep),term:Number(eA),productId:null!==(d=null==eE?void 0:null===(n=eE.mp)||void 0===n?void 0:n.product_id)&&void 0!==d?d:f.id,tag:null==ea?void 0:ea.tag,isMobile:p,onEdit:eG,appUrl:null!=eR?eR:f.online_application.url,depositType:h,onSwitchRate:eQ,isRateSwitched:J,switchRate:eZ,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:L.kJ[0].value,period:H(f).value,refillType:L.k5[0].value,unit:e_.unit,tags:f.tags,discount:b,isSavingAccount:eT,extraInfo:R,salaryToggle:ed,setSalaryToggle:em,isShowDepositTip:Y,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:w,company:y,discounts:k,aggregatorIds:D}=e,{query:S,asPath:j}=(0,v.P)(),{frameId:C}=S,N=(0,o._m)("l"),{bonuses:P,isPlusFiveBonus:A,isOldUser:T}=(0,f.Z)(k),I=void 0===x.finuslugiBonusAllowed||x.finuslugiBonusAllowed,[E,F]=(0,l.useState)(),L=(0,l.useMemo)(()=>Object.entries((0,d.i)(x)).find(e=>e[1]&&e[0]),[x]),Z=(0,l.useMemo)(()=>L&&L[0],[L]),B=(0,c.p)({currentAmount:null!==(t=null==E?void 0:E.amount)&&void 0!==t?t:0,terms:null!==(n=null==E?void 0:E.term)&&void 0!==n?n:0,finuslugiBonusAllowed:I,isPlusFiveBonus:A,isOldUser:T,finuslugiBonusPromotion:x.finuslugiBonusPromotion}),O=T?(0,m.pW)(x.finuslugiBonusPromotion):null==P?void 0:P.find(e=>"five_procent"===e.unique_key),R=B?O:void 0,Y=!T&&Z===u.P.isPlatformDeposit,V=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:C,asPath:j});return(0,_.j)(),(0,p.Z)(D),(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:V,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:R,isMobile:!N,data:x,className:ea().calculator,onChangeData:F,depositType:Z,isPlusFiveBonus:A,isOldUser:T,company:y,extraInfo:{},isShowDepositTip:Y}),(0,r.jsx)(s.t,{className:ea().about,children:(0,r.jsx)(g.c,{isMobile:!N,questions:w,data:x,company:y,className:ea().params,amount:null!==(i=null==E?void 0:E.amount)&&void 0!==i?i:0,optionId:null==E?void 0:E.optionId,discount:R,isPlusFiveBonus:A,isOldUser:T,extraInfo:{},withNewMarkup:!1,eventCategory:"widget-vklady"})}),Y&&(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}}},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 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,_]=(0,r.useState)(!0),[v,p]=(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)&&(_(!1),p(!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,[7011,97,680,7393,2877,1302,1576,1573,7024,3558,9019,5501,207,5458,3544,9206,7129,5346,6293,666,4900,3145,6138,3921,1792,6034,9319,1196,6041,2971,2117,1744],function(){return e(e.s=63185)}),_N_E=e.O()}]);