(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6771],{10414:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});let a=30.416},24508:function(e,t,n){"use strict";n.d(t,{$k:function(){return i},k5:function(){return l},kJ:function(){return a}});let a=[{label:"Добавлять ко вкладу (капитализация)",value:"add"},{label:"Выплачивать",value:"dont_add"}],i=[{label:"В конце срока",value:"end"},{label:"Ежедневно",value:"daily"},{label:"Раз в месяц",value:"1"},{label:"Раз в квартал",value:"3"},{label:"Раз в полгода",value:"6"},{label:"Раз в год",value:"12"}],l=[{label:"Не предусмотрено",value:"0"},{label:"Раз в месяц",value:"1"},{label:"Раз в 2 месяца",value:"2"},{label:"Раз в квартал",value:"3"},{label:"Раз в 4 месяца",value:"4"},{label:"Раз в полгода",value:"6"},{label:"Раз в год",value:"12"}]},22567:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var a=n(24508);let i=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=a.$k.find(e=>n===e.value))&&void 0!==t?t:a.$k[0]}},92488:function(e,t,n){"use strict";n.d(t,{n:function(){return M}});var a=n(57437),i=n(7301),l=n(34734),s=n(2265),o={src:"/deposits/_next/static/media/detailed.37f1b990.svg",height:16,width:16,blurWidth:0,blurHeight:0},r=n(55004),u=n(85816),c=n.n(u);let d=e=>{let{className:t,text:n,tooltipText:i,theme:s="primary",tipIcon:u,onTooltipOpen:d}=e;return(0,a.jsx)("div",{className:(0,l.Z)(c().tag,{[c().tagPrimary]:"primary"===s,[c().tagSecondary]:"secondary"===s,[c().tagPink]:"pink"===s,[c().tagYellow]:"yellow"===s},t),children:i&&(0,a.jsx)(r.C,{className:c().detail,iconSrc:o,text:i,iconClassName:c().detailIcon,icon:u,onOpen:()=>null==d?void 0:d(n),children:(0,a.jsx)("span",{className:c().text,children:n})})})};var m=n(90926),_=n(72255),h=n(24760),p=n(8792),v=n(14073),g=n(15774),f=n(16243),y=n(93880),b=n(1012),x=n.n(b);function D(e){var t;let{withNewMarkup:n,rate:l,effectiveRate:o,hideExternalLinks:u,profit:c,unit:d,extraInfo:m,isSavingAccount:_,salaryToggle:h,setSalaryToggle:b,discount:D,bonus:k,firstDepositBonusTitle:j,tipIcon:T,switchRate:C,onSwitchRate:w,isRateSwitched:N,eventCategory:A,productId:I,isCombo:P=!1}=e,L=(0,s.useCallback)(()=>{w&&(w(!N),(0,f.lQ)({event:"data-event",eventAction:"click_button_perekluchit_stavku",eventCategory:A,eventLabel:I}))},[w,N,A,I]),S=(0,s.useCallback)(e=>()=>{(0,f.lQ)({event:"data-event",eventAction:"click_link_".concat((0,y.b)(e)),eventCategory:A,eventLabel:I})},[A,I]),O=(0,s.useMemo)(()=>{var e;let t=[{label:"Доход от банка",value:"".concat((0,g.Y4)(c,2)," ").concat(d)}];if((null===(e=m.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&t.push({label:"Открытие дебетовой карты",value:"Да",description:_&&null!=m.karta?m.karta.label:"Открывая счет, Вы соглашаетесь на оформление дебетовой карты банка"},{label:"Действие счета",value:"Бессрочно"},{label:"Зарплата или пенсия на карту МКБ",value:(0,a.jsx)(i.jw,{checked:h,className:x().singleToggle,onChange:()=>null==b?void 0:b(!h)}),description:(0,a.jsx)(a.Fragment,{children:"Процентная ставка применяется при условии зачисления заработной платы от юридических лиц и индивидуальных предпринимателей на картсчет Клиента, открытый в Банке или суммы пенсий от Фонда пенсионного и социального страхования Российской Федерации или иных органов (учреждений) на любой счет Клиента, открытый в Банке, поступивших в течение 60 календарных дней до каждой даты начисления процентов по счету."})}),l&&t.unshift({label:"Ставка",value:"".concat((0,g.Y4)(l,2),"%")}),o&&t.unshift({label:"Эффективная ставка",value:"".concat((0,g.Y4)(o,2),"%"),description:(0,a.jsxs)(a.Fragment,{children:["Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка. Дополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее."," ",!u&&(0,a.jsx)(p.default,{className:x().tooltipLink,target:"_self",onClick:S("Подробнее о том, как считать сложный процент"),href:"".concat(v._n,"/navigator/nakopit-i-sohranit/stat_chto_takoe_slozhnyj_procent_po_vkladu_i_kak_ego_poschitat?ysclid=lfmam3zaig67098551%22"),children:"Подробнее о том, как считать сложный процент"})]})}),D&&k){let e=P?"%":" ".concat(d);t.push({label:j?"Бонус за первый вклад":"Бонус от Финуслуг",value:"".concat((0,g.Y4)(k,2)).concat(e),description:null==D?void 0:D.description})}return t},[k,D,o,null===(t=m.algo)||void 0===t?void 0:t.id,m.karta,j,S,u,_,c,l,h,b,d,P]),B=!!C&&(null==C?void 0:C.difference)>0,Z=B?"+".concat((0,g.Y4)(C.difference,1),"% к ставке"):null,K=(0,s.useCallback)(e=>{(0,f.lQ)({eventAction:"click_question_".concat((0,y.b)(e)),eventCategory:A,eventLabel:I})},[A,I]);return(0,a.jsxs)("ul",{className:x().values,children:[O.map(e=>(0,a.jsxs)("li",{className:x().value,children:[(0,a.jsx)("div",{children:e.label}),e.description&&(0,a.jsx)(r.C,{text:e.description,className:x().detail,onOpen:()=>n&&K(e.label),icon:T}),(0,a.jsx)("div",{className:x().valueDash}),(0,a.jsx)("div",{children:e.value})]},e.label)),B&&Z&&(0,a.jsxs)("li",{className:x().value,children:[(0,a.jsx)("div",{children:Z}),(0,a.jsx)(r.C,{text:"При сумме вклада от ".concat((0,g.Y4)(C.minAmount)," ₽"),className:x().detail,icon:T,onOpen:()=>n&&K(Z)}),(0,a.jsx)(i.jw,{onChange:L,checked:N,className:x().toggle,size:"small"})]})]})}var k=n(56504),j=n(54183),T=n(20703),C={src:"/deposits/_next/static/media/edit.c0611721.svg",height:16,width:16,blurWidth:0,blurHeight:0},w=n(82694),N=n(62984),A=n(78386),I=n(95236),P=n(78840),L=n.n(P);function S(e){let{term:t,totalProfit:n,withChart:i,isChartOpen:l,isEditable:s=!0,onEditButtonClick:o,onToggleChart:r}=e,u=(0,g.Y4)(n,2).split(",");return(0,a.jsxs)("div",{className:L().head,children:[(0,a.jsxs)("h4",{className:L().title,children:["Накопите к ",function(e){let t=new Date;return(0,N.f)(w.Z.day(t,e))}(t)]}),(0,a.jsxs)("h5",{className:L().result,children:[(0,a.jsxs)("span",{className:L().resultText,children:[u[0],u[1]?(0,a.jsxs)(a.Fragment,{children:[",",(0,a.jsxs)("span",{className:L().resultTextFloat,children:[u[1]," ₽"]})]}):" ₽"]}),s&&(0,a.jsx)("button",{className:L().resultButton,onClick:o,children:(0,a.jsx)(T.default,{className:L().resultIcon,src:C,alt:"edit"})})]}),i&&(0,a.jsx)(A.W,{onClick:r,className:L().chartButton,icon:l?I.d.arrowBack:I.d.chart,alt:"chart"})]})}var O=n(54375),B=n.n(O);let Z=(e,t,n,a)=>{let i=e===m.P.isPlatformDeposit?"Как открыть вклад":"Где открыть вклад",l=e===m.P.isPlatformDeposit?"Как открыть накопительный счет":"Где открыть накопительный счет";return{helpButtonLabel:a?l:i,blockId:e===m.P.isPlatformDeposit?_.a6:_.VT,isShowMainButton:!t&&e===m.P.isPlatformDeposit||e===m.P.isLidgenDeposit,isShowHelpButton:e!==m.P.isArchiveDeposit&&n&&!t,isOfferText:e===m.P.isPlatformDeposit||e===m.P.isLidgenDeposit}},K=(0,s.memo)(e=>{let{href:t,id:n,pageType:l,eventCategory:s,withNewMarkup:o,eventLabel:r}=e;return(0,a.jsx)(i.zx,{as:"a",className:B().button,target:"_blank",href:t,size:"s",disabled:!t,onClick:()=>{(0,f.lQ)({event:"data-event",eventLabel:r,eventCategory:s,eventAction:o?"click_button_open_online":"open_in_bank_product",eventValue:null!=n?n:""})},children:l===m.P.isPlatformDeposit?"Открыть онлайн":"Перейти на сайт банка"})});K.displayName="MainButton";let M=(0,s.memo)(e=>{var t,n;let{onEdit:o,isMobile:r,rate:u,sum:c,term:_,tag:p,appUrl:v,discount:g,isRateSwitched:b,onSwitchRate:x,switchRate:T,isCapitalization:C,depositType:w,productId:N,unit:A,tags:I,isSavingAccount:P,extraInfo:L,salaryToggle:O,setSalaryToggle:M,isShowDepositTip:E,isHideButtons:Y=!1,paymentFrequency:R,customActions:H,shortChipsList:V=!1,firstDepositBonusTitle:Q=!1,scrollOffset:F,computeClassName:z,withChart:U,tipIcon:W,tagIcon:q,customTagTitle:G,hideExternalLinks:$=!1,computeHeader:J,computeTag:X,eventCategory:ee,withNewMarkup:et,totalValues:en,isEditable:ea=!0,isCombo:ei=!1,calculatedProfit:el,calculatedTotalProfit:es,calculatedEffectiveRate:eo,calculatedBonus:er}=e,[eu,ec]=(0,s.useState)(!1),ed=new Date;ed.setDate(ed.getDate()+_);let{total:em,bonus:e_,effectiveRate:eh,profit:ep}=(0,k.Z)({depositSum:c,term:_,rate:u,isCapitalization:C,discount:w===m.P.isPlatformDeposit?g:null,period:h.Z.Day,paymentFrequency:R}),ev=el||ep,eg=es||em,ef=er||e_,{helpButtonLabel:ey,blockId:eb,isShowMainButton:ex,isShowHelpButton:eD,isOfferText:ek}=Z(w,Y,E,P),ej=(0,s.useCallback)(()=>{ec(e=>!e),(0,f.lQ)({event:"data-event",eventAction:"click_icon_diagramma",eventCategory:ee,eventLabel:N})},[ee,N]),eT=(0,s.useCallback)(()=>{o&&(o(),(0,f.lQ)({event:"data-event",eventAction:et?"click_pencil":"click_icon_redactirovanie",eventCategory:ee,eventLabel:N}))},[ee,o,N,et]),eC=(0,s.useCallback)(e=>{(0,f.lQ)({eventCategory:ee,eventLabel:N,eventAction:"click_chips_".concat((0,y.b)(e))})},[ee,N]),ew=(0,s.useCallback)(()=>{var e;return p&&p.title?null!==(e=null==X?void 0:X(p))&&void 0!==e?e:(0,a.jsx)(d,{className:B().tag,text:null!=G?G:p.title,tooltipText:p.description,tipIcon:q,onTooltipOpen:e=>et&&eC(e)}):null},[X,G,eC,p,q,et]);return(0,a.jsxs)(i.W2,{className:(0,l.Z)(B().container,eu&&B().containerChart,z),children:[null!==(n=null==J?void 0:J(eg,eT))&&void 0!==n?n:(0,a.jsx)(S,{term:_,totalProfit:eg,withChart:U&&!ei,isChartOpen:eu,isEditable:ea,onEditButtonClick:eT,onToggleChart:ej}),(0,a.jsxs)("div",{className:B().info,children:[(0,a.jsx)(j.H,{isMobile:r,className:(0,l.Z)(B().chart,eu&&B().chartVisible),sum:c,bonus:e_,profit:ev}),(0,a.jsxs)("div",{className:B().tags,children:[!V&&(null==I?void 0:I.map(e=>{let{title:t,description:n}=e;return(0,a.jsx)(d,{className:B().tag,text:t,tooltipText:n,theme:"pink",onTooltipOpen:eC},t)})),ew(),!V&&(null===(t=L.algo)||void 0===t?void 0:t.id)==="mkb-nakop"&&L.algo.extraTag&&(0,a.jsx)(d,{className:B().tag,...L.algo.extraTag,onTooltipOpen:eC})]}),(0,a.jsx)(D,{withNewMarkup:et,rate:u,effectiveRate:eo||eh,hideExternalLinks:$,profit:ev,unit:A,extraInfo:L,isSavingAccount:P,salaryToggle:O,setSalaryToggle:M,discount:g,bonus:ef,firstDepositBonusTitle:Q,tipIcon:W,switchRate:T,onSwitchRate:x,isRateSwitched:b,eventCategory:ee,productId:N,isCombo:ei}),null==H?void 0:H(_),ex&&(0,a.jsx)(K,{href:v,id:N,pageType:w,eventCategory:ee,withNewMarkup:et,eventLabel:en}),eD&&(0,a.jsx)(i.zx,{onClick:()=>{(0,f.lQ)({event:"data-event",eventAction:et?"click_button_how_to_open":"click_button_".concat((0,y.b)(ey)),eventCategory:ee,eventLabel:N}),(0,i.ld)(eb,{offset:F,position:"top"})},className:B().button,size:"s",variant:"secondary",children:ey}),ek&&(0,a.jsx)("h3",{className:B().disclaimer,children:"Предварительный расчет. Не является офертой"})]})]})});M.displayName="DepositDetailCompute"},58263:function(e,t,n){"use strict";n.r(t);var a=n(2265);t.default=(0,a.createContext)(void 0)},27406:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var a=n(57437),i=n(2265),l=n(58263);function s(e){let{children:t,siteConfig:n}=e,[s]=(0,i.useState)(n);return(0,a.jsx)(l.default.Provider,{value:s,children:t})}},82694:function(e,t,n){"use strict";var a=n(83595),i=n(24760);let l={[i.Z.Day]:(e,t)=>(0,a.I)(e,{days:t}),[i.Z.Month]:(e,t)=>(0,a.I)(e,{months:t}),[i.Z.Year]:(e,t)=>(0,a.I)(e,{years:t})};t.Z=l},56504:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var a=n(44377),i=n(72697),l=n(83595),s=n(43807),o=n(19852),r=n(8592),u=n(10414),c=n(66653),d=n(24760),m=n(82694);function _(e){let{capitalization:t,paymentFrequency:n,dateStart:a,termByYears:i,amount:l,averageRate:s,termInDays:o}=e;if(t){let e=s/100;if(n===c.Z.OnceAMonth){let t=o/u.F,n=l*Math.pow(1+e/12,t)-l,a=n/l/t*1200;return{profit:n,effectiveRate:a}}if(n===c.Z.EveryDay){let t=i.reduce((t,n)=>t*Math.pow(1+e/n.daysInYear,n.daysInInterval),l)-l,n=t/l/o*(0,r.y)(a)*100;return{profit:t,effectiveRate:n}}}return{profit:i.reduce((e,t)=>e+s/100*l/t.daysInYear*t.daysInInterval,0),effectiveRate:s}}function h(e){let{depositSum:t,term:n,rate:u,isCapitalization:c=!1,discount:h,period:p,paymentFrequency:v,dateStart:g=new Date}=e,f=m.Z[p](g,n),y=p===d.Z.Day?n:(0,o.w)(f,g),b=function(e,t,n){let u=(0,a.k)({start:e,end:t});return u.reduce((a,c,d)=>{let m=0===d?e:c,_=d===u.length-1?t:(0,i.u)((0,l.I)(m,{days:n}),{start:m,end:(0,l.I)((0,s.w)(c),{days:1})}),h=(0,o.w)(_,m);return 0===h?a:[...a,{daysInYear:(0,r.y)(c),daysInInterval:h}]},[])}(g,f,y),x={amount:t,paymentFrequency:v,dateEnd:f,dateStart:g,capitalization:c,termByYears:b,termInDays:y,averageRate:u},{profit:D,effectiveRate:k}=_(x),{bonus:j,bonusRate:T}=function(e,t){if(!t)return{bonus:0,bonusRate:0};let n=t.rate;if("fixedBonusAmount"in t&&t.fixedBonusAmount)return{bonus:t.fixedBonusAmount,bonusRate:n};let{profit:a}=_({...e,averageRate:n,capitalization:!1});if(a<t.sum)return{bonus:a,bonusRate:n};let i=t.sum/a;return{bonus:t.sum,bonusRate:n*i}}(x,h);return{total:t+D+j,bonus:j,profit:D,effectiveRate:k,bonusRate:T}}},46749:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});class a{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,a,i,l;this.promotion=e,this.minAmount=null!==(n=e.minAmount)&&void 0!==n?n:0,this.maxAmount=null!==(a=e.maxAmount)&&void 0!==a?a:0,this.minTermInDays=null!==(i=e.minTermInDays)&&void 0!==i?i:0,this.maxTermInDays=null!==(l=e.maxTermInDays)&&void 0!==l?l: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:l,terms:s,finuslugiBonusPromotion:o}=e;if(!n)return!1;if(i)return!0;if(!o||!l)return!1;let r=new a(o,{terms:s,currentAmount:+t});return!r.hasAmountKeys&&!r.hasTermsKeys||(r.terms&&r.currentAmount||!r.hasKeysExistsEvery?!!(r.terms&&r.hasKeysExistsSome&&r.getDiscountByTerms())&&!!(r.currentAmount&&r.hasKeysExistsSome&&r.getDiscountByAmount()):r.getDiscountByTerms()&&r.getDiscountByAmount())}},45706:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var a=n(508);function i(e){let{asPath:t,firstBaseUrl:n,productId:i,optionId:s,amount:o,durationValue:r,secondBaseUrl:u,passAggregatorId:c=!1,passCombo:d=!1}=e,{utm_campaign:m,utm_medium:_,utm_source:h,utm_term:p,aggregator_id:v}=(0,a.p)(t,"#"),{partner_id:g}=(0,a.p)(t,"?"),f=c?v:g;return{urlFirst:l(new URL("/add-product",n),{aggregatorId:null!=f?f:"moex-mp-new-sc",productId:i,optionId:s,amount:o,durationValue:r,utm_campaign:m,utm_medium:_,utm_source:h,utm_term:p,...d?{from:"combo"}:null}).toString(),urlSecond:u&&l(new URL(u),{amount:o,durationValue:r,utm_campaign:m,utm_medium:_,utm_source:h,utm_term:p,...d?{from:"combo"}:null}).toString()}}function l(e,t){let n=new URL(e);return Object.entries(t).forEach(e=>{let[t,a]=e;if(null!=a){if(Array.isArray(a))return a.forEach(e=>n.searchParams.append(t,String(e)));n.searchParams.set(t,String(a))}}),n}},8776:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(66653);function i(e){let{daily:t,monthly:n}=e;return 1===t?a.Z.EveryDay:1===n?a.Z.OnceAMonth:a.Z.InTheEnd}},85816: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"}},54375: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",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"}},78840: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"}},1012:function(e){e.exports={values:"ValueList_values__mGunQ",value:"ValueList_value__RRvlg",valueDash:"ValueList_valueDash__mwitD",detail:"ValueList_detail__6tgWx",toggle:"ValueList_toggle__tin7w"}}}]);