(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5119],{82619:function(e,t,a){"use strict";a.d(t,{y:function(){return x}});var l=a(57437),n=a(35563),i=a(75461),o=a(54365),r=a(33145),s=a(2265),c=a(76670),u=a(81486),_=a(92449),d=a(75873),p=a(72151),m=a(40780),f=a(31219),v=a(48034),h=a(80342),g=a(73927),D=a.n(g);let x=(0,s.memo)(e=>{let{title:t,content:a,pageUrl:g,infoLink:x,chips:C,isMobile:b,isShowChips:k,isExpandSettings:N,onToggleSettings:j,isSavingAccount:y,titleClassName:P,calculatorClassName:A,chevronSrc:T=c.Z,withNewMarkup:w,eventCategory:S,productId:L}=e,I=(0,i.s4)(),Z=e=>{(0,d.D)({eventCategory:g,eventAction:d.i.popup,eventActionText:e}),null==j||j()},O=(0,v.Z)(10),R=(0,s.useCallback)(()=>{x&&(w&&(0,p.lQ)({eventCategory:S,eventLabel:L,eventAction:"click_".concat((0,f.b)(x.text))}),(0,m.l)(x.idScrollBlock,{offset:O,position:"top"}))},[S,x,L,O,w]);return(0,l.jsxs)(n.W2,{className:(0,o.Z)(D().container,A),children:[(0,l.jsxs)("button",{className:(0,o.Z)(D().title,y&&D().marginNone,P),"data-testid":"calculator-settings-button",onClick:()=>Z(t),children:[t,(0,l.jsx)(r.default,{className:(0,o.Z)(D().collapseArrow,N&&D().collapseArrowOpened),src:T,alt:""})]}),(0,l.jsxs)(_.u,{className:(0,o.Z)(D().fieldsContainer,!I&&D().initialCollapsed),isOpen:N||!b,children:[(0,l.jsx)("div",{className:D().fieldsWrapper,children:a}),(0,l.jsx)(h.Y,{className:D().disclaimer,text:"Все ".concat(y?"счета":"вклады"," застрахованы в АСВ")})]}),x&&x.isShow&&(0,l.jsx)(u.j,{offPadding:x.offPadding,widthMaxContent:x.widthMaxContent,text:x.text,iconColor:"light",mainPageUrl:g,className:D().link,onClick:R,isCustomMarkup:w}),k&&!y&&(0,l.jsx)(i.cL,{className:(0,o.Z)(D().chips,!I&&D().initialChips),chips:null!=C?C:[],value:(null!=C?C:[]).map(e=>{let{id:t}=e;return t}),multiple:!0,activeVariant:"secondary",size:"m"})]})});x.displayName="Calculator"},80342:function(e,t,a){"use strict";a.d(t,{Y:function(){return u}});var l=a(57437),n=a(54365),i=a(33145),o=a(2265),r=a(57291),s=a(82042),c=a.n(s);let u=(0,o.memo)(e=>{let{text:t,className:a,hideIcon:o=!1}=e;return(0,l.jsxs)("p",{className:(0,n.Z)(c().disclaimer,a),children:[!o&&(0,l.jsx)(i.default,{className:c().iconASV,src:r.Z,alt:"Иконка АСВ"}),t]})});u.displayName="DepositDisclaimer"},23468:function(e,t,a){"use strict";a.d(t,{M:function(){return d}});var l=a(57437),n=a(75461),i=a(54365),o=a(50666),r=a(2265),s=a(28819),c=a(75873),u=a(33176),_=a.n(u);let d=(0,r.memo)(e=>{let{className:t,url:a,text:r,title:u}=e;return(0,l.jsxs)(s.t,{className:(0,i.Z)(_().container,t),children:[(0,l.jsx)("h3",{className:_().title,dangerouslySetInnerHTML:{__html:u}}),(0,l.jsx)("h4",{className:_().text,dangerouslySetInnerHTML:{__html:r}}),(0,l.jsx)(n.zx,{as:"a",variant:"purple",href:"/".concat(a),onClick:()=>{(0,c.D)({eventCategory:a,eventAction:c.i.button,eventActionText:"Подобрать предложение",url:"".concat((0,o.env)("NEXT_PUBLIC_BASE_URL"),"/").concat(a)})},className:_().button,children:"Подобрать предложения"})]})});d.displayName="ArchivePromo"},21301:function(e,t,a){"use strict";a.d(t,{V:function(){return c}});var l=a(57437),n=a(54365),i=a(44587),o=a(11359),r=a(281),s=a.n(r);let c=e=>{let{className:t,text:a,tooltipText:r,theme:c="primary",tipIcon:u,onTooltipOpen:_}=e;return(0,l.jsx)("div",{className:(0,n.Z)(s().tag,{[s().tagPrimary]:"primary"===c,[s().tagSecondary]:"secondary"===c,[s().tagPink]:"pink"===c,[s().tagYellow]:"yellow"===c},t),children:r&&(0,l.jsx)(o.C,{className:s().detail,iconSrc:i.Z,text:r,iconClassName:s().detailIcon,icon:u,onOpen:()=>null==_?void 0:_(a),children:(0,l.jsx)("span",{className:s().text,children:a})})})}},72096:function(e,t,a){"use strict";a.d(t,{$k:function(){return n},k5:function(){return i},kJ:function(){return l}});let l=[{label:"Добавлять ко вкладу (капитализация)",value:"add"},{label:"Выплачивать",value:"dont_add"}],n=[{label:"В конце срока",value:"end"},{label:"Ежедневно",value:"daily"},{label:"Раз в месяц",value:"1"},{label:"Раз в квартал",value:"3"},{label:"Раз в полгода",value:"6"},{label:"Раз в год",value:"12"}],i=[{label:"Не предусмотрено",value:"0"},{label:"Раз в месяц",value:"1"},{label:"Раз в 2 месяца",value:"2"},{label:"Раз в квартал",value:"3"},{label:"Раз в 4 месяца",value:"4"},{label:"Раз в полгода",value:"6"},{label:"Раз в год",value:"12"}]},32523:function(e,t,a){"use strict";a.d(t,{n:function(){return K}});var l=a(57437);a(38068);var n=a(92254),i=a(35563),o=a(75461),r=a(54365),s=a(2265),c=a(21301),u=a(69589),_=a(14862),d=a(44579),p=a(32817),m=a.n(p);function f(e){let{loading:t}=e;return(0,l.jsxs)("div",{className:(0,r.Z)(m().skeletonContainer,t&&m().visible),children:[(0,l.jsx)(i.Od,{className:m().skeletonDate}),(0,l.jsx)(i.Od,{className:m().skeletonProfit})]})}var v=a(27648),h=a(11359),g=a(87566),D=a(23e3),x=a.n(D);function C(e){let{rowCount:t,loading:a}=e;return(0,l.jsx)("div",{className:(0,r.Z)(x().skeletonContainer,a&&x().visible),children:Array.from(Array(t).keys()).map(e=>(0,l.jsx)(i.Od,{className:x().skeleton},e))})}var b=a(70104),k=a(72151),N=a(31219),j=a(90297),y=a.n(j);function P(e){var t;let{withNewMarkup:a,rate:n,effectiveRate:i,hideExternalLinks:r,profit:c,unit:u,extraInfo:_,isSavingAccount:d,salaryToggle:p,setSalaryToggle:m,discount:f,bonus:D,firstDepositBonusTitle:x,tipIcon:j,switchRate:P,onSwitchRate:A,isRateSwitched:T,eventCategory:w,productId:S,isCombo:L=!1,isLoading:I}=e,Z=(0,s.useCallback)(()=>{A&&(A(!T),(0,k.lQ)({event:"data-event",eventAction:"click_button_perekluchit_stavku",eventCategory:w,eventLabel:S}))},[A,T,w,S]),O=(0,s.useCallback)(e=>()=>{(0,k.lQ)({event:"data-event",eventAction:"click_link_".concat((0,N.b)(e)),eventCategory:w,eventLabel:S})},[w,S]),R=(0,s.useMemo)(()=>{var e;let t=[{label:"Доход от банка",value:"".concat((0,b.Y4)(c,2)," ").concat(u)}];if((null===(e=_.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&t.push({label:"Открытие дебетовой карты",value:"Да",description:d&&null!=_.karta?_.karta.label:"Открывая счет, Вы соглашаетесь на оформление дебетовой карты банка"},{label:"Действие счета",value:"Бессрочно"},{label:"Зарплата или пенсия на карту МКБ",value:(0,l.jsx)(o.ZD,{checked:p,className:y().singleToggle,onChange:()=>null==m?void 0:m(!p)}),description:(0,l.jsx)(l.Fragment,{children:"Процентная ставка применяется при условии зачисления заработной платы от юридических лиц и индивидуальных предпринимателей на картсчет Клиента, открытый в Банке или суммы пенсий от Фонда пенсионного и социального страхования Российской Федерации или иных органов (учреждений) на любой счет Клиента, открытый в Банке, поступивших в течение 60 календарных дней до каждой даты начисления процентов по счету."})}),n&&t.unshift({label:"Ставка",value:"".concat((0,b.Y4)(n,2),"%")}),i&&t.unshift({label:"Эффективная ставка",value:"".concat((0,b.Y4)(i,2),"%"),description:(0,l.jsxs)(l.Fragment,{children:["Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка. Дополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее."," ",!r&&(0,l.jsx)(v.default,{className:y().tooltipLink,target:"_self",onClick:O("Подробнее о том, как считать сложный процент"),href:"".concat(g._n,"/navigator/nakopit-i-sohranit/stat_chto_takoe_slozhnyj_procent_po_vkladu_i_kak_ego_poschitat?ysclid=lfmam3zaig67098551%22"),children:"Подробнее о том, как считать сложный процент"})]})}),f&&D){let e=L?"%":" ".concat(u);t.push({label:x?"Бонус за первый вклад":"Бонус от Финуслуг",value:"".concat((0,b.Y4)(D,2)).concat(e),description:(null==f?void 0:f.terms)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{children:null==f?void 0:f.terms}),f.link&&f.linkLabel&&(0,l.jsx)("a",{href:f.link,target:"_blank",children:f.linkLabel})]}):null})}return t},[D,f,i,null===(t=_.algo)||void 0===t?void 0:t.id,_.karta,x,O,r,d,c,n,p,m,u,L]),E=!!P&&(null==P?void 0:P.difference)>0,M=E?"+".concat((0,b.Y4)(P.difference,1),"% к ставке"):null,B=(0,s.useCallback)(e=>{(0,k.lQ)({eventAction:"click_question_".concat((0,N.b)(e)),eventCategory:w,eventLabel:S})},[w,S]);return(0,l.jsxs)("ul",{className:y().values,children:[(0,l.jsx)(C,{loading:I,rowCount:R.length}),R.map(e=>(0,l.jsxs)("li",{className:y().value,children:[(0,l.jsx)("div",{children:e.label}),e.description&&(0,l.jsx)(h.C,{text:e.description,className:y().detail,onOpen:()=>a&&B(e.label),icon:j}),(0,l.jsx)("div",{className:y().valueDash}),(0,l.jsx)("div",{children:e.value})]},e.label)),E&&M&&(0,l.jsxs)("li",{className:y().value,children:[(0,l.jsx)("div",{children:M}),(0,l.jsx)(h.C,{text:"При сумме вклада от ".concat((0,b.Y4)(P.minAmount)," ₽"),className:y().detail,icon:j,onOpen:()=>a&&B(M)}),(0,l.jsx)(o.ZD,{onChange:Z,checked:T,className:y().toggle})]})]})}var A=a(37162);let T=e=>{let{depositType:t,isHideButtons:a,isShowDepositTip:l,isSavingAccount:n}=e,i=t===u.P.isPlatformDeposit?"Как открыть вклад":"Где открыть вклад",o=t===u.P.isPlatformDeposit?"Как открыть накопительный счет":"Где открыть накопительный счет";return{helpButtonLabel:n?o:i,blockId:t===u.P.isPlatformDeposit?A.a6:A.VT,isShowMainButton:!a&&t===u.P.isPlatformDeposit||t===u.P.isLidgenDeposit,isShowHelpButton:t!==u.P.isArchiveDeposit&&l&&!a,isOfferText:t===u.P.isPlatformDeposit||t===u.P.isLidgenDeposit}};var w=a(2674),S=a(53931),L=a(84948),I=a(40780),Z=a(32443),O=a(50017),R=a(33145),E={src:"/deposits/_next/static/media/edit.c0611721.svg",height:16,width:16,blurWidth:0,blurHeight:0},M=a(45198),B=a(97291),V=a(35041),H=a(56924),Y=a(28734),F=a.n(Y);function U(e){let{term:t,totalProfit:a,withChart:n,isChartOpen:i,isEditable:o=!0,endingDate:r,onEditButtonClick:c,onToggleChart:u}=e,_=(0,b.Y4)(a,2).split(","),d=(0,s.useMemo)(()=>r?(0,B.f)(r):function(e){let t=new Date;return(0,B.f)(M.Z.day(t,e))}(t),[r,t]);return(0,l.jsxs)("div",{className:F().head,children:[(0,l.jsxs)("h4",{className:F().title,children:["Накопите к ",d]}),(0,l.jsxs)("h5",{className:F().result,children:[(0,l.jsxs)("span",{className:F().resultText,children:[_[0],_[1]?(0,l.jsxs)(l.Fragment,{children:[",",(0,l.jsxs)("span",{className:F().resultTextFloat,children:[_[1]," ₽"]})]}):" ₽"]}),o&&(0,l.jsx)("button",{className:F().resultButton,onClick:c,children:(0,l.jsx)(R.default,{className:F().resultIcon,src:E,alt:"edit"})})]}),n&&(0,l.jsx)(V.W,{onClick:u,className:F().chartButton,icon:i?H.d.arrowBack:H.d.chart,alt:"chart"})]})}var Q=a(56257),W=a.n(Q);let z=(0,s.memo)(e=>{let{href:t,id:a,pageType:n,eventCategory:i,withNewMarkup:r,eventLabel:s}=e;return(0,l.jsx)(o.zx,{as:"a",className:W().button,target:"_blank",href:t,size:"s",disabled:!t,onClick:()=>{(0,k.lQ)({event:"data-event",eventLabel:s,eventCategory:i,eventAction:r?"click_button_open_online":"open_in_bank_product",eventValue:null!=a?a:""})},children:n===u.P.isPlatformDeposit?"Открыть онлайн":"Перейти на сайт банка"})});z.displayName="MainButton";let G={highlights:null,title:null,description:null,variant:"secondary",primaryAuthProviders:["ALFA","SBER","TINKOFF","VTB","MTS","SOVCOM","PHONE"],additionalAuthProviders:[],extraAuthProviders:[],primaryTextOverride:"Открыть вклад"},K=(0,s.memo)(e=>{var t,a;let{onEdit:u,isMobile:p,rate:m,sum:v,term:h,tag:g,appUrl:D,discount:x,isRateSwitched:C,onSwitchRate:b,switchRate:j,isCapitalization:y,depositType:A,productId:R,unit:E,tags:M,isSavingAccount:B,extraInfo:V,salaryToggle:H,setSalaryToggle:Y,isShowDepositTip:F,isHideButtons:Q=!1,paymentFrequency:K,customActions:q,shortChipsList:J=!1,firstDepositBonusTitle:X=!1,scrollOffset:$,computeClassName:ee,withChart:et,tipIcon:ea,tagIcon:el,customTagTitle:en,hideExternalLinks:ei=!1,computeHeader:eo,computeTag:er,eventCategory:es,withNewMarkup:ec,totalValues:eu,isEditable:e_=!0,isCombo:ed=!1,calculatedProfit:ep,calculatedTotalProfit:em,calculatedEffectiveRate:ef,calculatedBonus:ev,integrationType:eh,calculatedEndingDate:eg,isLoading:eD=!1}=e,[ex,eC]=(0,s.useState)(!1),eb=new Date;eb.setDate(eb.getDate()+h);let{total:ek,bonus:eN,effectiveRate:ej,profit:ey}=(0,L.Z)({depositSum:v,term:h,rate:m,isCapitalization:y,discount:x,period:d.Z.Day,paymentFrequency:K}),eP=ep||ey,eA=em||ek,eT=ev||eN,ew=function(e){let{integrationType:t}=e,{toggles:{FEATURE_TOGGLE_INTERNAL_REFERAL_LOGIN_ENABLED:a}}=(0,w.ND)(),l=(0,s.useMemo)(()=>(0,S.$1)(),[]),n=(null==l?void 0:l["auth.gtm_customer_id"])||null;return a&&"INTERNAL_REFERAL"===t&&!n}({integrationType:eh}),{helpButtonLabel:eS,blockId:eL,isShowMainButton:eI,isShowHelpButton:eZ,isOfferText:eO}=T({depositType:A,isHideButtons:Q,isShowDepositTip:F,isSavingAccount:B}),eR=(0,s.useCallback)(()=>{(0,k.lQ)({event:"data-event",eventAction:ec?"click_button_how_to_open":"click_button_".concat((0,N.b)(eS)),eventCategory:es,eventLabel:R}),(0,I.l)(eL,{offset:$,position:"top"})},[eL,es,eS,R,$,ec]),eE=(0,s.useCallback)(()=>{eC(e=>!e),(0,k.lQ)({event:"data-event",eventAction:"click_icon_diagramma",eventCategory:es,eventLabel:R})},[es,R]),eM=(0,s.useCallback)(()=>{u&&(u(),(0,k.lQ)({event:"data-event",eventAction:ec?"click_pencil":"click_icon_redactirovanie",eventCategory:es,eventLabel:R}))},[es,u,R,ec]),eB=(0,s.useCallback)(e=>{(0,k.lQ)({eventCategory:es,eventLabel:R,eventAction:"click_chips_".concat((0,N.b)(e))})},[es,R]),eV=(0,s.useCallback)(()=>{var e;return g&&g.title?null!==(e=null==er?void 0:er(g))&&void 0!==e?e:(0,l.jsx)(c.V,{className:W().tag,text:null!=en?en:g.title,tooltipText:g.description,tipIcon:el,onTooltipOpen:e=>ec&&eB(e)}):null},[er,en,eB,g,el,ec]),{widgetConfig:eH,isWidgetDataLoading:eY}=(0,Z.B)({disabled:!ew}),eF=(0,s.useCallback)(()=>{if(eI)return ew&&(eH||eY)?(0,l.jsx)(n.U,{entryPointId:"deposit-detail",baseUrl:_.publicConfig.LK_URL,s3AssetsUrl:_.publicConfig.ASSETS_URL,skeleton:(0,l.jsx)(o.zx,{pending:!0,className:W().button,size:"s",label:"Открыть вклад",disabled:!0}),className:(0,r.Z)(W().button,W().loginWidget),serverConfig:eH?{...eH,consents:[],legalInfo:null}:void 0,config:G,scenarioParams:{targetUri:D},isSilent:!0}):(0,l.jsx)(z,{href:D,id:R,pageType:A,eventCategory:es,withNewMarkup:ec,eventLabel:eu})},[eI,ew,eH,eY,D,R,A,es,ec,eu]);return(0,l.jsxs)(i.W2,{className:(0,r.Z)(W().container,ex&&W().containerChart,ee),children:[null!==(a=null==eo?void 0:eo(eA,eM))&&void 0!==a?a:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f,{loading:eD}),(0,l.jsx)(U,{term:h,totalProfit:eA,withChart:et&&!ed,isChartOpen:ex,isEditable:e_,endingDate:eg,onEditButtonClick:eM,onToggleChart:eE})]}),(0,l.jsxs)("div",{className:W().info,children:[(0,l.jsx)(O.H,{isMobile:p,className:(0,r.Z)(W().chart,ex&&W().chartVisible),sum:v,bonus:eN,profit:eP}),(0,l.jsxs)("div",{className:W().tags,children:[!J&&(null==M?void 0:M.map(e=>{let{title:t,description:a}=e;return(0,l.jsx)(c.V,{className:W().tag,text:t,tooltipText:a,theme:"pink",onTooltipOpen:eB},t)})),eV(),!J&&(null===(t=V.algo)||void 0===t?void 0:t.id)==="mkb-nakop"&&V.algo.extraTag&&(0,l.jsx)(c.V,{className:W().tag,...V.algo.extraTag,onTooltipOpen:eB})]}),(0,l.jsx)(P,{withNewMarkup:ec,rate:m,effectiveRate:ef||ej,hideExternalLinks:ei,profit:eP,unit:E,extraInfo:V,isSavingAccount:B,salaryToggle:H,setSalaryToggle:Y,discount:x,bonus:eT,firstDepositBonusTitle:X,tipIcon:ea,switchRate:j,onSwitchRate:b,isRateSwitched:C,eventCategory:es,productId:R,isCombo:ed,isLoading:eD}),null==q?void 0:q(h),eF(),eZ&&(0,l.jsx)(o.zx,{onClick:eR,className:W().button,size:"s",variant:"secondary",children:eS}),eO&&(0,l.jsx)("h3",{className:W().disclaimer,children:"Предварительный расчет. Не является офертой"})]})]})});K.displayName="DepositDetailCompute"},75217:function(e,t,a){"use strict";var l=a(2265);t.default=(0,l.createContext)(void 0)},60341:function(e,t,a){"use strict";a.d(t,{default:function(){return o}});var l=a(57437),n=a(2265),i=a(75217);function o(e){let{children:t,siteConfig:a}=e,[o]=(0,n.useState)(a);return(0,l.jsx)(i.default.Provider,{value:o,children:t})}},2674:function(e,t,a){"use strict";a.d(t,{ZP:function(){return s.default},ND:function(){return r}}),(l=n||(n={})).Beeline="beeline",l.T2="t2",l.Megafon="megafon",n.Beeline,n.T2,n.Megafon,n.T2,n.Beeline,n.Megafon,n.T2,n.Beeline,n.Megafon;var l,n,i=a(2265),o=a(75217);function r(){let e=(0,i.useContext)(o.default);if(!e)throw Error("Site config was used out of context");return e}var s=a(60341)},45198:function(e,t,a){"use strict";var l=a(92668),n=a(44579);let i={[n.Z.Day]:(e,t)=>(0,l.I)(e,{days:t}),[n.Z.Month]:(e,t)=>(0,l.I)(e,{months:t}),[n.Z.Year]:(e,t)=>(0,l.I)(e,{years:t})};t.Z=i},84948:function(e,t,a){"use strict";a.d(t,{Z:function(){return m}});var l=a(69775),n=a(89981),i=a(92668),o=a(85873),r=a(55934),s=a(52603),c=a(40309),u=a(44579),_=a(45198);function d(e){let{nPerYear:t,amount:a,rate:l,termInDays:n}=e,i=a*Math.pow(1+l/t,n/365*t)-a;return{profit:i,effectiveRate:i/a/n*36500}}function p(e){let{capitalization:t,paymentFrequency:a,termByYears:l,amount:n,averageRate:i,termInDays:o}=e;if(t){let e=i/100;if(a===c.Z.EveryDay){let t=l.reduce((t,a)=>t*Math.pow(1+e/a.daysInYear,a.daysInInterval),n)-n,a=t/n/o*36500;return{profit:t,effectiveRate:a}}if(a===c.Z.Weekly)return d({nPerYear:52,termInDays:o,amount:n,rate:e});if(a===c.Z.OnceAMonth||a===c.Z.InTheEnd)return d({nPerYear:12,termInDays:o,amount:n,rate:e});if(a===c.Z.Quarterly)return d({nPerYear:4,termInDays:o,amount:n,rate:e});if(a===c.Z.Semiannually)return d({nPerYear:2,termInDays:o,amount:n,rate:e});if(a===c.Z.Annually)return d({nPerYear:1,termInDays:o,amount:n,rate:e})}return{profit:l.reduce((e,t)=>e+i/100*n/t.daysInYear*t.daysInInterval,0),effectiveRate:i}}function m(e){let{depositSum:t,term:a,rate:c,isCapitalization:d=!1,discount:m,period:f,paymentFrequency:v,dateStart:h=new Date}=e,g=_.Z[f](h,a),D=f===u.Z.Day?a:(0,r.w)(g,h),x=function(e,t,a){let c=(0,l.k)({start:e,end:t});return c.reduce((l,u,_)=>{let d=0===_?e:u,p=_===c.length-1?t:(0,n.u)((0,i.I)(d,{days:a}),{start:d,end:(0,i.I)((0,o.w)(u),{days:1})}),m=(0,r.w)(p,d);return 0===m?l:[...l,{daysInYear:(0,s.y)(u),daysInInterval:m}]},[])}(h,g,D),C={amount:t,paymentFrequency:v,dateEnd:g,dateStart:h,capitalization:d,termByYears:x,termInDays:D,averageRate:c},{profit:b,effectiveRate:k}=p(C),{bonus:N,bonusRate:j}=function(e,t){if(!t||!t.rate)return{bonus:0,bonusRate:0};let a=t.rate;if("fixedBonusAmount"in t&&t.fixedBonusAmount)return{bonus:t.fixedBonusAmount,bonusRate:a};if(!t.sum)return{bonus:0,bonusRate:0};let{profit:l}=p({...e,averageRate:a,capitalization:!1});if(l<t.sum)return{bonus:l,bonusRate:a};let n=t.sum/l;return{bonus:t.sum,bonusRate:a*n}}(C,m);return{total:t+b+N,bonus:N,profit:b,effectiveRate:k,bonusRate:j,endOfTerm:g}}},39402:function(e,t,a){"use strict";a.d(t,{_:function(){return n}});var l=a(91220);function n(e){let{asPath:t,firstBaseUrl:a,productId:n,optionId:o,amount:r,durationValue:s,secondBaseUrl:c,passAggregatorId:u=!1,passCombo:_=!1}=e,{utm_campaign:d,utm_medium:p,utm_source:m,utm_term:f,aggregator_id:v}=(0,l.p)(t,"#"),{partner_id:h}=(0,l.p)(t,"?"),g=u?v:h;return{urlFirst:i(new URL("/add-product",a),{aggregatorId:null!=g?g:"moex-mp-new-sc",productId:n,optionId:o,amount:r,durationValue:s,utm_campaign:d,utm_medium:p,utm_source:m,utm_term:f,..._?{from:"combo"}:null}).toString(),urlSecond:c&&i(new URL(c),{amount:r,durationValue:s,utm_campaign:d,utm_medium:p,utm_source:m,utm_term:f,..._?{from:"combo"}:null}).toString()}}function i(e,t){let a=new URL(e);return Object.entries(t).forEach(e=>{let[t,l]=e;if(null!=l){if(Array.isArray(l))return l.forEach(e=>a.searchParams.append(t,String(e)));a.searchParams.set(t,String(l))}}),a}},39666:function(e,t,a){"use strict";a.d(t,{Y:function(){return l}});let l=e=>e.length?e[0].toUpperCase()+e.slice(1):""},23769:function(e,t,a){"use strict";a.d(t,{E:function(){return o}});var l=a(91627),n=a(36578);let i=e=>{let t=Math.floor(e/12),a=e%12,l=[];return t&&l.push((0,n.PY)(t,["год","года","лет"])),a&&l.push("".concat(a," мес")),l.join(" ")||"0 мес"},o=e=>i(Math.round(e/l.F))},2493:function(e,t,a){"use strict";a.d(t,{_:function(){return l}});let l=e=>{"Enter"===e.key&&e.currentTarget.blur()}},89911:function(e,t,a){"use strict";a.d(t,{d:function(){return o}});var l=a(75461),n=a(2265),i=a(2938);function o(e,t,a){let{disabled:o=!1,separateLoaders:r=!1,ssrLoader:s=!1,...c}=null!=a?a:{},u=(0,l.s4)(),_=(0,i.ZP)(o?null:e,t,{revalidateOnFocus:!1,...c}),{isLoading:d,isValidating:p}=_,m=d||!!s&&!u&&!o,f=m||p;return(0,n.useMemo)(()=>({..._,isLoading:r?m:f,isValidating:r?p:f}),[f,m,p,r,_])}},32443:function(e,t,a){"use strict";a.d(t,{B:function(){return o}});var l=a(67356),n=a(14862),i=a(89911);function o(e){let{disabled:t}=null!=e?e:{},{data:a,isLoading:o}=(0,i.d)("login-widget",()=>(0,l.g)(n.publicConfig.LK_API),{disabled:t});return{widgetConfig:a,isWidgetDataLoading:o}}},73927:function(e){e.exports={container:"Calculator_container__vQuJ0",title:"Calculator_title__aC5Ud",marginNone:"Calculator_marginNone__Hjy2l",collapseArrow:"Calculator_collapseArrow__Fm8Vk",collapseArrowOpened:"Calculator_collapseArrowOpened__Fbqar",fieldsContainer:"Calculator_fieldsContainer__5Rp05",initialCollapsed:"Calculator_initialCollapsed__GdleE",typeDescription:"Calculator_typeDescription__WHZqi",link:"Calculator_link__vCq4i",chips:"Calculator_chips__iGG5T",initialChips:"Calculator_initialChips__oiuSI",disclaimer:"Calculator_disclaimer__gr2ty"}},82042:function(e){e.exports={disclaimer:"DepositDisclaimer_disclaimer__pgXpL",iconASV:"DepositDisclaimer_iconASV__Ai2QW"}},33176:function(e){e.exports={container:"ArchivePromo_container__5L_r6",title:"ArchivePromo_title__TJIJ7",text:"ArchivePromo_text__nMo9K",button:"ArchivePromo_button__f_l5V"}},281:function(e){e.exports={tag:"Tag_tag__F7OOH",tagPrimary:"Tag_tagPrimary__avetL",tagSecondary:"Tag_tagSecondary__RMaKP",tagPink:"Tag_tagPink__YGm7U",tagYellow:"Tag_tagYellow__wh7Mz",text:"Tag_text__nOOMV",detail:"Tag_detail__xPW1b",detailIcon:"Tag_detailIcon__LNOTP"}},96024:function(e){e.exports={calculator:"DepositDetailCalculator_calculator__uCc_u",fieldsContainer:"DepositDetailCalculator_fieldsContainer__3ISJQ",input:"DepositDetailCalculator_input__lPHyT",inputError:"DepositDetailCalculator_inputError__9cOsR",inputRange:"DepositDetailCalculator_inputRange__eJR5n",chips:"DepositDetailCalculator_chips__mCKtS",legend:"DepositDetailCalculator_legend__GHEvN",chipsForm:"DepositDetailCalculator_chipsForm__UbRs_",collapseArrow:"DepositDetailCalculator_collapseArrow__zmlRp",collapseArrowOpened:"DepositDetailCalculator_collapseArrowOpened__DhduM",collapseArrowTitle:"DepositDetailCalculator_collapseArrowTitle__0v1_i",disclaimer:"DepositDetailCalculator_disclaimer___flSu",additionalButton:"DepositDetailCalculator_additionalButton__ViyCi",additionalContainer:"DepositDetailCalculator_additionalContainer__8sYDD",container:"DepositDetailCalculator_container__AXiy6",containerFull:"DepositDetailCalculator_containerFull__QUh5a",promo:"DepositDetailCalculator_promo__KDFX3",left:"DepositDetailCalculator_left__V9V0j",right:"DepositDetailCalculator_right__U4ABf",qrDesc:"DepositDetailCalculator_qrDesc__Fixg5",wide:"DepositDetailCalculator_wide__ItjPd",fivePercent:"DepositDetailCalculator_fivePercent__OgP8O",typeDescription:"DepositDetailCalculator_typeDescription__Nynxc",infoIcon:"DepositDetailCalculator_infoIcon__17O3e",expenseHead:"DepositDetailCalculator_expenseHead___7xlC",expenseSub:"DepositDetailCalculator_expenseSub__pnhPg"}},56257:function(e){e.exports={container:"DepositDetailCompute_container__wgV0n",containerChart:"DepositDetailCompute_containerChart__QUao0",info:"DepositDetailCompute_info___pqT7",tags:"DepositDetailCompute_tags__Le8d7",tag:"DepositDetailCompute_tag__DV451",button:"DepositDetailCompute_button__qK6jL",loginWidget:"DepositDetailCompute_loginWidget__3hRgV",detailIcon:"DepositDetailCompute_detailIcon__8lmnN",chart:"DepositDetailCompute_chart__S_HP1",chartVisible:"DepositDetailCompute_chartVisible__STX_r",tooltipLink:"DepositDetailCompute_tooltipLink__4gESn",buttonIcon:"DepositDetailCompute_buttonIcon__Zi3GE",disclaimer:"DepositDetailCompute_disclaimer__ZofBY",singleToggle:"DepositDetailCompute_singleToggle__tFiQ1"}},28734:function(e){e.exports={head:"Header_head__lMUs0",title:"Header_title__r4Wa_",result:"Header_result__SKeZv",resultText:"Header_resultText__UbYRQ",resultTextFloat:"Header_resultTextFloat__D5t0r",resultButton:"Header_resultButton__jXHD7",resultIcon:"Header_resultIcon__dJ1wD",chartButton:"Header_chartButton__AmKiY"}},32817:function(e){e.exports={skeletonContainer:"HeaderSkeleton_skeletonContainer___dhhJ",visible:"HeaderSkeleton_visible__arkXP",skeletonProfit:"HeaderSkeleton_skeletonProfit__PGN7g",skeletonDate:"HeaderSkeleton_skeletonDate__QrnJO"}},23e3:function(e){e.exports={skeletonContainer:"ProfitSkeleton_skeletonContainer__33exZ",visible:"ProfitSkeleton_visible__StSgI",skeleton:"ProfitSkeleton_skeleton___lU6r"}},90297:function(e){e.exports={values:"ValueList_values__mGunQ",value:"ValueList_value__RRvlg",valueDash:"ValueList_valueDash__mwitD",detail:"ValueList_detail__6tgWx",toggle:"ValueList_toggle__tin7w"}},57291:function(e,t){"use strict";t.Z={src:"/deposits/_next/static/media/ASV-square.38b9e507.svg",height:24,width:24,blurWidth:0,blurHeight:0}},44587:function(e,t){"use strict";t.Z={src:"/deposits/_next/static/media/detailed.37f1b990.svg",height:16,width:16,blurWidth:0,blurHeight:0}}}]);