(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(61209),i=a(67880),o=a(89694),r=a(61994),s=a(33145),c=a(2265),u=a(76670),_=a(81486),d=a(92449),p=a(75873),m=a(72151),f=a(40780),v=a(31219),h=a(48034),g=a(80342),D=a(73927),C=a.n(D);let x=(0,c.memo)(e=>{let{title:t,content:a,pageUrl:D,infoLink:x,chips:b,isMobile:k,isShowChips:N,isExpandSettings:j,onToggleSettings:y,isSavingAccount:P,titleClassName:A,calculatorClassName:T,chevronSrc:w=u.Z,withNewMarkup:S,eventCategory:L,productId:I}=e,Z=(0,o.s4)(),O=e=>{(0,p.D)({eventCategory:D,eventAction:p.i.popup,eventActionText:e}),null==y||y()},R=(0,h.Z)(10),E=(0,c.useCallback)(()=>{x&&(S&&(0,m.lQ)({eventCategory:L,eventLabel:I,eventAction:"click_".concat((0,v.b)(x.text))}),(0,f.l)(x.idScrollBlock,{offset:R,position:"top"}))},[L,x,I,R,S]);return(0,l.jsxs)(i.W,{className:(0,r.Z)(C().container,T),children:[(0,l.jsxs)("button",{className:(0,r.Z)(C().title,P&&C().marginNone,A),"data-testid":"calculator-settings-button",onClick:()=>O(t),children:[t,(0,l.jsx)(s.default,{className:(0,r.Z)(C().collapseArrow,j&&C().collapseArrowOpened),src:w,alt:""})]}),(0,l.jsxs)(d.u,{className:(0,r.Z)(C().fieldsContainer,!Z&&C().initialCollapsed),isOpen:j||!k,children:[(0,l.jsx)("div",{className:C().fieldsWrapper,children:a}),(0,l.jsx)(g.Y,{className:C().disclaimer,text:"Все ".concat(P?"счета":"вклады"," застрахованы в АСВ")})]}),x&&x.isShow&&(0,l.jsx)(_.j,{offPadding:x.offPadding,widthMaxContent:x.widthMaxContent,text:x.text,iconColor:"light",mainPageUrl:D,className:C().link,onClick:E,isCustomMarkup:S}),N&&!P&&(0,l.jsx)(n.c,{className:(0,r.Z)(C().chips,!Z&&C().initialChips),chips:null!=b?b:[],value:(null!=b?b:[]).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(61994),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(66187),i=a(61994),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.z,{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(61994),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 J}});var l=a(57437);a(38068);var n=a(12736),i=a(66187),o=a(67880),r=a(61994),s=a(2265),c=a(21301),u=a(69589),_=a(14862),d=a(44579),p=a(42104),m=a(32817),f=a.n(m);function v(e){let{loading:t}=e;return(0,l.jsxs)("div",{className:(0,r.Z)(f().skeletonContainer,t&&f().visible),children:[(0,l.jsx)(p.O,{className:f().skeletonDate}),(0,l.jsx)(p.O,{className:f().skeletonProfit})]})}var h=a(37076),g=a(27648),D=a(11359),C=a(87566),x=a(23e3),b=a.n(x);function k(e){let{rowCount:t,loading:a}=e;return(0,l.jsx)("div",{className:(0,r.Z)(b().skeletonContainer,a&&b().visible),children:Array.from(Array(t).keys()).map(e=>(0,l.jsx)(p.O,{className:b().skeleton},e))})}var N=a(70104),j=a(72151),y=a(31219),P=a(90297),A=a.n(P);function T(e){var t;let{withNewMarkup:a,rate:n,effectiveRate:i,hideExternalLinks:o,profit:r,unit:c,extraInfo:u,isSavingAccount:_,salaryToggle:d,setSalaryToggle:p,discount:m,bonus:f,firstDepositBonusTitle:v,tipIcon:x,switchRate:b,onSwitchRate:P,isRateSwitched:T,eventCategory:w,productId:S,isCombo:L=!1,isLoading:I}=e,Z=(0,s.useCallback)(()=>{P&&(P(!T),(0,j.lQ)({event:"data-event",eventAction:"click_button_perekluchit_stavku",eventCategory:w,eventLabel:S}))},[P,T,w,S]),O=(0,s.useCallback)(e=>()=>{(0,j.lQ)({event:"data-event",eventAction:"click_link_".concat((0,y.b)(e)),eventCategory:w,eventLabel:S})},[w,S]),R=(0,s.useMemo)(()=>{var e;let t=[{label:"Доход от банка",value:"".concat((0,N.Y4)(r,2)," ").concat(c)}];if((null===(e=u.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&t.push({label:"Открытие дебетовой карты",value:"Да",description:_&&null!=u.karta?u.karta.label:"Открывая счет, Вы соглашаетесь на оформление дебетовой карты банка"},{label:"Действие счета",value:"Бессрочно"},{label:"Зарплата или пенсия на карту МКБ",value:(0,l.jsx)(h.Z,{checked:d,className:A().singleToggle,onChange:()=>null==p?void 0:p(!d)}),description:(0,l.jsx)(l.Fragment,{children:"Процентная ставка применяется при условии зачисления заработной платы от юридических лиц и индивидуальных предпринимателей на картсчет Клиента, открытый в Банке или суммы пенсий от Фонда пенсионного и социального страхования Российской Федерации или иных органов (учреждений) на любой счет Клиента, открытый в Банке, поступивших в течение 60 календарных дней до каждой даты начисления процентов по счету."})}),n&&t.unshift({label:"Ставка",value:"".concat((0,N.Y4)(n,2),"%")}),i&&t.unshift({label:"Эффективная ставка",value:"".concat((0,N.Y4)(i,2),"%"),description:(0,l.jsxs)(l.Fragment,{children:["Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка. Дополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее."," ",!o&&(0,l.jsx)(g.default,{className:A().tooltipLink,target:"_self",onClick:O("Подробнее о том, как считать сложный процент"),href:"".concat(C._n,"/navigator/nakopit-i-sohranit/stat_chto_takoe_slozhnyj_procent_po_vkladu_i_kak_ego_poschitat?ysclid=lfmam3zaig67098551%22"),children:"Подробнее о том, как считать сложный процент"})]})}),m&&f){let e=L?"%":" ".concat(c);t.push({label:v?"Бонус за первый вклад":"Бонус от Финуслуг",value:"".concat((0,N.Y4)(f,2)).concat(e),description:(null==m?void 0:m.terms)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{children:null==m?void 0:m.terms}),m.link&&m.linkLabel&&(0,l.jsx)("a",{href:m.link,target:"_blank",children:m.linkLabel})]}):null})}return t},[f,m,i,null===(t=u.algo)||void 0===t?void 0:t.id,u.karta,v,O,o,_,r,n,d,p,c,L]),E=!!b&&(null==b?void 0:b.difference)>0,M=E?"+".concat((0,N.Y4)(b.difference,1),"% к ставке"):null,B=(0,s.useCallback)(e=>{(0,j.lQ)({eventAction:"click_question_".concat((0,y.b)(e)),eventCategory:w,eventLabel:S})},[w,S]);return(0,l.jsxs)("ul",{className:A().values,children:[(0,l.jsx)(k,{loading:I,rowCount:R.length}),R.map(e=>(0,l.jsxs)("li",{className:A().value,children:[(0,l.jsx)("div",{children:e.label}),e.description&&(0,l.jsx)(D.C,{text:e.description,className:A().detail,onOpen:()=>a&&B(e.label),icon:x}),(0,l.jsx)("div",{className:A().valueDash}),(0,l.jsx)("div",{children:e.value})]},e.label)),E&&M&&(0,l.jsxs)("li",{className:A().value,children:[(0,l.jsx)("div",{children:M}),(0,l.jsx)(D.C,{text:"При сумме вклада от ".concat((0,N.Y4)(b.minAmount)," ₽"),className:A().detail,icon:x,onOpen:()=>a&&B(M)}),(0,l.jsx)(h.Z,{onChange:Z,checked:T,className:A().toggle})]})]})}var w=a(37162);let S=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?w.a6:w.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 L=a(2674),I=a(53931),Z=a(84948),O=a(40780),R=a(32443),E=a(50017),M=a(33145),B={src:"/deposits/_next/static/media/edit.c0611721.svg",height:16,width:16,blurWidth:0,blurHeight:0},V=a(45198),H=a(97291),Y=a(35041),F=a(56924),U=a(28734),Q=a.n(U);function W(e){let{term:t,totalProfit:a,withChart:n,isChartOpen:i,isEditable:o=!0,endingDate:r,onEditButtonClick:c,onToggleChart:u}=e,_=(0,N.Y4)(a,2).split(","),d=(0,s.useMemo)(()=>r?(0,H.f)(r):function(e){let t=new Date;return(0,H.f)(V.Z.day(t,e))}(t),[r,t]);return(0,l.jsxs)("div",{className:Q().head,children:[(0,l.jsxs)("h4",{className:Q().title,children:["Накопите к ",d]}),(0,l.jsxs)("h5",{className:Q().result,children:[(0,l.jsxs)("span",{className:Q().resultText,children:[_[0],_[1]?(0,l.jsxs)(l.Fragment,{children:[",",(0,l.jsxs)("span",{className:Q().resultTextFloat,children:[_[1]," ₽"]})]}):" ₽"]}),o&&(0,l.jsx)("button",{className:Q().resultButton,onClick:c,children:(0,l.jsx)(M.default,{className:Q().resultIcon,src:B,alt:"edit"})})]}),n&&(0,l.jsx)(Y.W,{onClick:u,className:Q().chartButton,icon:i?F.d.arrowBack:F.d.chart,alt:"chart"})]})}var z=a(56257),G=a.n(z);let K=(0,s.memo)(e=>{let{href:t,id:a,pageType:n,eventCategory:o,withNewMarkup:r,eventLabel:s}=e;return(0,l.jsx)(i.z,{as:"a",className:G().button,target:"_blank",href:t,size:"s",disabled:!t,onClick:()=>{(0,j.lQ)({event:"data-event",eventLabel:s,eventCategory:o,eventAction:r?"click_button_open_online":"open_in_bank_product",eventValue:null!=a?a:""})},children:n===u.P.isPlatformDeposit?"Открыть онлайн":"Перейти на сайт банка"})});K.displayName="MainButton";let q={highlights:null,title:null,description:null,variant:"secondary",primaryAuthProviders:["ALFA","SBER","TINKOFF","VTB","MTS","SOVCOM","PHONE"],additionalAuthProviders:[],extraAuthProviders:[],primaryTextOverride:"Открыть вклад"},J=(0,s.memo)(e=>{var t,a;let{onEdit:u,isMobile:p,rate:m,sum:f,term:h,tag:g,appUrl:D,discount:C,isRateSwitched:x,onSwitchRate:b,switchRate:k,isCapitalization:N,depositType:P,productId:A,unit:w,tags:M,isSavingAccount:B,extraInfo:V,salaryToggle:H,setSalaryToggle:Y,isShowDepositTip:F,isHideButtons:U=!1,paymentFrequency:Q,customActions:z,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,[eC,ex]=(0,s.useState)(!1),eb=new Date;eb.setDate(eb.getDate()+h);let{total:ek,bonus:eN,effectiveRate:ej,profit:ey}=(0,Z.Z)({depositSum:f,term:h,rate:m,isCapitalization:N,discount:C,period:d.Z.Day,paymentFrequency:Q}),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,L.ND)(),l=(0,s.useMemo)(()=>(0,I.$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}=S({depositType:P,isHideButtons:U,isShowDepositTip:F,isSavingAccount:B}),eR=(0,s.useCallback)(()=>{(0,j.lQ)({event:"data-event",eventAction:ec?"click_button_how_to_open":"click_button_".concat((0,y.b)(eS)),eventCategory:es,eventLabel:A}),(0,O.l)(eL,{offset:$,position:"top"})},[eL,es,eS,A,$,ec]),eE=(0,s.useCallback)(()=>{ex(e=>!e),(0,j.lQ)({event:"data-event",eventAction:"click_icon_diagramma",eventCategory:es,eventLabel:A})},[es,A]),eM=(0,s.useCallback)(()=>{u&&(u(),(0,j.lQ)({event:"data-event",eventAction:ec?"click_pencil":"click_icon_redactirovanie",eventCategory:es,eventLabel:A}))},[es,u,A,ec]),eB=(0,s.useCallback)(e=>{(0,j.lQ)({eventCategory:es,eventLabel:A,eventAction:"click_chips_".concat((0,y.b)(e))})},[es,A]),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:G().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,R.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)(i.z,{pending:!0,className:G().button,size:"s",label:"Открыть вклад",disabled:!0}),className:(0,r.Z)(G().button,G().loginWidget),serverConfig:eH?{...eH,consents:[],legalInfo:null}:void 0,config:q,scenarioParams:{targetUri:D},isSilent:!0}):(0,l.jsx)(K,{href:D,id:A,pageType:P,eventCategory:es,withNewMarkup:ec,eventLabel:eu})},[eI,ew,eH,eY,D,A,P,es,ec,eu]);return(0,l.jsxs)(o.W,{className:(0,r.Z)(G().container,eC&&G().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)(v,{loading:eD}),(0,l.jsx)(W,{term:h,totalProfit:eA,withChart:et&&!ed,isChartOpen:eC,isEditable:e_,endingDate:eg,onEditButtonClick:eM,onToggleChart:eE})]}),(0,l.jsxs)("div",{className:G().info,children:[(0,l.jsx)(E.H,{isMobile:p,className:(0,r.Z)(G().chart,eC&&G().chartVisible),sum:f,bonus:eN,profit:eP}),(0,l.jsxs)("div",{className:G().tags,children:[!J&&(null==M?void 0:M.map(e=>{let{title:t,description:a}=e;return(0,l.jsx)(c.V,{className:G().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:G().tag,...V.algo.extraTag,onTooltipOpen:eB})]}),(0,l.jsx)(T,{withNewMarkup:ec,rate:m,effectiveRate:ef||ej,hideExternalLinks:ei,profit:eP,unit:w,extraInfo:V,isSavingAccount:B,salaryToggle:H,setSalaryToggle:Y,discount:C,bonus:eT,firstDepositBonusTitle:X,tipIcon:ea,switchRate:k,onSwitchRate:b,isRateSwitched:x,eventCategory:es,productId:A,isCombo:ed,isLoading:eD}),null==z?void 0:z(h),eF(),eZ&&(0,l.jsx)(i.z,{onClick:eR,className:G().button,size:"s",variant:"secondary",children:eS}),eO&&(0,l.jsx)("h3",{className:G().disclaimer,children:"Предварительный расчет. Не является офертой"})]})]})});J.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),C=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),x={amount:t,paymentFrequency:v,dateEnd:g,dateStart:h,capitalization:d,termByYears:C,termInDays:D,averageRate:c},{profit:b,effectiveRate:k}=p(x),{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}}(x,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(89694),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}}}]);