(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3837],{4807:(e,t,a)=>{"use strict";a.d(t,{Y:()=>d});var l=a(95155),i=a(53548),n=a(2821),o=a(61126),s=a(12115),r=a(703),c=a(93757),u=a(94588),_=a.n(u);let d=(0,s.memo)(e=>{let{className:t,url:a,text:s,title:u}=e;return(0,l.jsxs)(r.J,{className:(0,n.A)(_().container,t),children:[(0,l.jsx)("h3",{className:_().title,dangerouslySetInnerHTML:{__html:u}}),(0,l.jsx)("h4",{className:_().text,dangerouslySetInnerHTML:{__html:s}}),(0,l.jsx)(i.$,{as:"a",variant:"purple",href:"/".concat(a),onClick:()=>{(0,c._)({eventCategory:a,eventAction:c.y.button,eventActionText:"Подобрать предложение",url:"".concat((0,o.env)("NEXT_PUBLIC_BASE_URL"),"/").concat(a)})},className:_().button,children:"Подобрать предложения"})]})});d.displayName="ArchivePromo"},5153:e=>{e.exports={skeletonContainer:"ProfitSkeleton_skeletonContainer__33exZ",visible:"ProfitSkeleton_visible__StSgI",skeleton:"ProfitSkeleton_skeleton___lU6r"}},5551:e=>{e.exports={skeletonContainer:"HeaderSkeleton_skeletonContainer___dhhJ",visible:"HeaderSkeleton_visible__arkXP",skeletonProfit:"HeaderSkeleton_skeletonProfit__PGN7g",skeletonDate:"HeaderSkeleton_skeletonDate__QrnJO"}},37071:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var l=a(15319),i=a(46828);let n={[i.A.Day]:(e,t)=>(0,l.W)(e,{days:t}),[i.A.Month]:(e,t)=>(0,l.W)(e,{months:t}),[i.A.Year]:(e,t)=>(0,l.W)(e,{years:t})}},40999: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"}},41248:(e,t,a)=>{"use strict";a.d(t,{t:()=>b});var l=a(95155),i=a(83745),n=a(95633),o=a(13860),s=a(2821),r=a(15239),c=a(12115),u=a(99795),_=a(34106),d=a(69597),p=a(93757),m=a(19559),h=a(54319),v=a(40599),g=a(55921),D=a(50328),x=a(54653),C=a.n(x);let b=(0,c.memo)(e=>{let{title:t,content:a,pageUrl:x,infoLink:b,chips:f,isMobile:A,isShowChips:k,isExpandSettings:j,onToggleSettings:y,isSavingAccount:N,titleClassName:T,calculatorClassName:w,chevronSrc:P=u.A,withNewMarkup:S,eventCategory:L,productId:I}=e,O=(0,o.qK)(),R=(0,g.A)(10),M=(0,c.useCallback)(()=>{b&&(S&&(0,m.oA)({eventCategory:L,eventLabel:I,eventAction:"click_".concat((0,v.y)(b.text))}),(0,h.e)(b.idScrollBlock,{offset:R,position:"top"}))},[L,b,I,R,S]);return(0,l.jsxs)(n.m,{className:(0,s.A)(C().container,w),children:[(0,l.jsxs)("button",{className:(0,s.A)(C().title,N&&C().marginNone,T),"data-testid":"calculator-settings-button",onClick:()=>{(0,p._)({eventCategory:x,eventAction:p.y.popup,eventActionText:t}),null==y||y()},children:[t,(0,l.jsx)(r.default,{className:(0,s.A)(C().collapseArrow,j&&C().collapseArrowOpened),src:P,alt:""})]}),(0,l.jsxs)(d.d,{className:(0,s.A)(C().fieldsContainer,!O&&C().initialCollapsed),isOpen:j||!A,children:[(0,l.jsx)("div",{className:C().fieldsWrapper,children:a}),(0,l.jsx)(D.k,{className:C().disclaimer,text:"Все ".concat(N?"счета":"вклады"," застрахованы в АСВ")})]}),b&&b.isShow&&(0,l.jsx)(_.e,{offPadding:b.offPadding,widthMaxContent:b.widthMaxContent,text:b.text,iconColor:"light",mainPageUrl:x,className:C().link,onClick:M,isCustomMarkup:S}),k&&!N&&(0,l.jsx)(i.C,{className:(0,s.A)(C().chips,!O&&C().initialChips),chips:null!=f?f:[],value:(null!=f?f:[]).map(e=>{let{id:t}=e;return t}),multiple:!0,activeVariant:"secondary",size:"m"})]})});b.displayName="Calculator"},44104:(e,t,a)=>{"use strict";a.d(t,{D:()=>n});var l=a(19927),i=a(73520);let n=e=>(e=>{let t=Math.floor(e/12),a=e%12,l=[];return t&&l.push((0,i.l6)(t,["год","года","лет"])),a&&l.push("".concat(a," мес")),l.join(" ")||"0 мес"})(Math.round(e/l.L))},50328:(e,t,a)=>{"use strict";a.d(t,{k:()=>u});var l=a(95155),i=a(2821),n=a(15239),o=a(12115),s=a(67042),r=a(69387),c=a.n(r);let u=(0,o.memo)(e=>{let{text:t,className:a,hideIcon:o=!1}=e;return(0,l.jsxs)("p",{className:(0,i.A)(c().disclaimer,a),children:[!o&&(0,l.jsx)(n.default,{className:c().iconASV,src:s.A,alt:"Иконка АСВ"}),t]})});u.displayName="DepositDisclaimer"},54653: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"}},57681: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"}},58416:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l={src:"/deposits/_next/static/media/detailed.37f1b990.svg",height:16,width:16,blurWidth:0,blurHeight:0}},62041:e=>{e.exports={values:"ValueList_values__mGunQ",value:"ValueList_value__RRvlg",valueDash:"ValueList_valueDash__mwitD",detail:"ValueList_detail__6tgWx",toggle:"ValueList_toggle__tin7w"}},64296:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var l=a(69868),i=a(74088),n=a(15319),o=a(61521),s=a(98382),r=a(61243),c=a(75722),u=a(46828),_=a(37071);function d(e){let{nPerYear:t,amount:a,rate:l,termInDays:i}=e,n=a*Math.pow(1+l/t,i/365*t)-a;return{profit:n,effectiveRate:n/a/i*36500}}function p(e){let{capitalization:t,paymentFrequency:a,termByYears:l,amount:i,averageRate:n,termInDays:o}=e;if(t){let e=n/100;if(a===c.A.EveryDay){let t=l.reduce((t,a)=>t*Math.pow(1+e/a.daysInYear,a.daysInInterval),i)-i,a=t/i/o*36500;return{profit:t,effectiveRate:a}}if(a===c.A.Weekly)return d({nPerYear:52,termInDays:o,amount:i,rate:e});if(a===c.A.OnceAMonth||a===c.A.InTheEnd)return d({nPerYear:12,termInDays:o,amount:i,rate:e});if(a===c.A.Quarterly)return d({nPerYear:4,termInDays:o,amount:i,rate:e});if(a===c.A.Semiannually)return d({nPerYear:2,termInDays:o,amount:i,rate:e});if(a===c.A.Annually)return d({nPerYear:1,termInDays:o,amount:i,rate:e})}return{profit:l.reduce((e,t)=>e+n/100*i/t.daysInYear*t.daysInInterval,0),effectiveRate:n}}function m(e){let{depositSum:t,term:a,rate:c,isCapitalization:d=!1,discount:m,period:h,paymentFrequency:v,dateStart:g=new Date}=e,D=_.A[h](g,a),x=h===u.A.Day?a:(0,s.m)(D,g),C=function(e,t,a){let c=(0,l.z)({start:e,end:t});return c.reduce((l,u,_)=>{let d=0===_?e:u,p=_===c.length-1?t:(0,i.q)((0,n.W)(d,{days:a}),{start:d,end:(0,n.W)((0,o.Q)(u),{days:1})}),m=(0,s.m)(p,d);return 0===m?l:[...l,{daysInYear:(0,r.S)(u),daysInInterval:m}]},[])}(g,D,x),b={amount:t,paymentFrequency:v,dateEnd:D,dateStart:g,capitalization:d,termByYears:C,termInDays:x,averageRate:c},{profit:f,effectiveRate:A}=p(b),{bonus:k,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 i=t.sum/l;return{bonus:t.sum,bonusRate:a*i}}(b,m);return{total:t+f+k,bonus:k,profit:f,effectiveRate:A,bonusRate:j,endOfTerm:D}}},67042:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l={src:"/deposits/_next/static/media/ASV-square.38b9e507.svg",height:24,width:24,blurWidth:0,blurHeight:0}},69387:e=>{e.exports={disclaimer:"DepositDisclaimer_disclaimer__pgXpL",iconASV:"DepositDisclaimer_iconASV__Ai2QW"}},69877:(e,t,a)=>{"use strict";a.d(t,{JM:()=>i,g3:()=>l,rU:()=>n});let l=[{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"}],n=[{label:"Не предусмотрено",value:"0"},{label:"Раз в месяц",value:"1"},{label:"Раз в 2 месяца",value:"2"},{label:"Раз в квартал",value:"3"},{label:"Раз в 4 месяца",value:"4"},{label:"Раз в полгода",value:"6"},{label:"Раз в год",value:"12"}]},73522:(e,t,a)=>{"use strict";a.d(t,{X:()=>i});var l=a(15520);function i(e){let{asPath:t,firstBaseUrl:a,productId:i,optionId:o,amount:s,durationValue:r,secondBaseUrl:c,passAggregatorId:u=!1,passCombo:_=!1}=e,{utm_campaign:d,utm_medium:p,utm_source:m,utm_term:h,aggregator_id:v}=(0,l.$)(t,"#"),{partner_id:g}=(0,l.$)(t,"?"),D=u?v:g,x=n(new URL("/add-product",a),{aggregatorId:null!=D?D:"moex-mp-new-sc",productId:i,optionId:o,amount:s,durationValue:r,utm_campaign:d,utm_medium:p,utm_source:m,utm_term:h,..._?{from:"combo"}:null}).toString(),C=c&&n(new URL(c),{amount:s,durationValue:r,utm_campaign:d,utm_medium:p,utm_source:m,utm_term:h,..._?{from:"combo"}:null}).toString();return{urlFirst:x,urlSecond:C}}function n(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}},76507: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"}},79945:(e,t,a)=>{"use strict";a.d(t,{C:()=>l});let l=e=>{"Enter"===e.key&&e.currentTarget.blur()}},81109:(e,t,a)=>{"use strict";a.d(t,{x:()=>X});var l=a(95155);a(57272);var i=a(62876),n=a(53548),o=a(95633),s=a(2821),r=a(12115),c=a(92068),u=a(18578),_=a(20447),d=a(46828),p=a(52065),m=a(5551),h=a.n(m);function v(e){let{loading:t}=e;return(0,l.jsxs)("div",{className:(0,s.A)(h().skeletonContainer,t&&h().visible),children:[(0,l.jsx)(p.E,{className:h().skeletonDate}),(0,l.jsx)(p.E,{className:h().skeletonProfit})]})}var g=a(40486),D=a(52619),x=a.n(D),C=a(41105),b=a(58924),f=a(5153),A=a.n(f);function k(e){let{rowCount:t,loading:a}=e;return(0,l.jsx)("div",{className:(0,s.A)(A().skeletonContainer,a&&A().visible),children:Array.from(Array(t).keys()).map(e=>(0,l.jsx)(p.E,{className:A().skeleton},e))})}var j=a(89910),y=a(19559),N=a(40599),T=a(62041),w=a.n(T);function P(e){var t;let{withNewMarkup:a,rate:i,effectiveRate:n,hideExternalLinks:o,profit:s,unit:c,extraInfo:u,isSavingAccount:_,salaryToggle:d,setSalaryToggle:p,discount:m,bonus:h,firstDepositBonusTitle:v,tipIcon:D,switchRate:f,onSwitchRate:A,isRateSwitched:T,eventCategory:P,productId:S,isCombo:L=!1,isLoading:I}=e,O=(0,r.useCallback)(()=>{A&&(A(!T),(0,y.oA)({event:"data-event",eventAction:"click_button_perekluchit_stavku",eventCategory:P,eventLabel:S}))},[A,T,P,S]),R=(0,r.useCallback)(e=>()=>{(0,y.oA)({event:"data-event",eventAction:"click_link_".concat((0,N.y)(e)),eventCategory:P,eventLabel:S})},[P,S]),M=(0,r.useMemo)(()=>{var e;let t=[{label:"Доход от банка",value:"".concat((0,j.jq)(s,2)," ").concat(c)}];if((null==(e=u.algo)?void 0:e.id)==="mkb-nakop"&&t.push({label:"Открытие дебетовой карты",value:"Да",description:_&&null!=u.karta?u.karta.label:"Открывая счет, Вы соглашаетесь на оформление дебетовой карты банка"},{label:"Действие счета",value:"Бессрочно"},{label:"Зарплата или пенсия на карту МКБ",value:(0,l.jsx)(g.l,{checked:d,className:w().singleToggle,onChange:()=>null==p?void 0:p(!d)}),description:(0,l.jsx)(l.Fragment,{children:"Процентная ставка применяется при условии зачисления заработной платы от юридических лиц и индивидуальных предпринимателей на картсчет Клиента, открытый в Банке или суммы пенсий от Фонда пенсионного и социального страхования Российской Федерации или иных органов (учреждений) на любой счет Клиента, открытый в Банке, поступивших в течение 60 календарных дней до каждой даты начисления процентов по счету."})}),i&&t.unshift({label:"Ставка",value:"".concat((0,j.jq)(i,2),"%")}),n&&t.unshift({label:"Эффективная ставка",value:"".concat((0,j.jq)(n,2),"%"),description:(0,l.jsxs)(l.Fragment,{children:["Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка. Дополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее."," ",!o&&(0,l.jsx)(x(),{className:w().tooltipLink,target:"_self",onClick:R("Подробнее о том, как считать сложный процент"),href:"".concat(b.C1,"/navigator/nakopit-i-sohranit/stat_chto_takoe_slozhnyj_procent_po_vkladu_i_kak_ego_poschitat?ysclid=lfmam3zaig67098551%22"),children:"Подробнее о том, как считать сложный процент"})]})}),m&&h){let e=L?"%":" ".concat(c);t.push({label:v?"Бонус за первый вклад":"Бонус от Финуслуг",value:"".concat((0,j.jq)(h,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},[h,m,n,null==(t=u.algo)?void 0:t.id,u.karta,v,R,o,_,s,i,d,p,c,L]),H=!!f&&(null==f?void 0:f.difference)>0,E=H?"+".concat((0,j.jq)(f.difference,1),"% к ставке"):null,V=(0,r.useCallback)(e=>{(0,y.oA)({eventAction:"click_question_".concat((0,N.y)(e)),eventCategory:P,eventLabel:S})},[P,S]);return(0,l.jsxs)("ul",{className:w().values,children:[(0,l.jsx)(k,{loading:I,rowCount:M.length}),M.map(e=>(0,l.jsxs)("li",{className:w().value,children:[(0,l.jsx)("div",{children:e.label}),e.description&&(0,l.jsx)(C.Y,{text:e.description,className:w().detail,onOpen:()=>a&&V(e.label),icon:D}),(0,l.jsx)("div",{className:w().valueDash}),(0,l.jsx)("div",{children:e.value})]},e.label)),H&&E&&(0,l.jsxs)("li",{className:w().value,children:[(0,l.jsx)("div",{children:E}),(0,l.jsx)(C.Y,{text:"При сумме вклада от ".concat((0,j.jq)(f.minAmount)," ₽"),className:w().detail,icon:D,onOpen:()=>a&&V(E)}),(0,l.jsx)(g.l,{onChange:O,checked:T,className:w().toggle})]})]})}var S=a(4678),L=a(51442),I=a(64296),O=a(54319),R=a(1067),M=a(99248),H=a(99778),E=a(15239);let V={src:"/deposits/_next/static/media/edit.c0611721.svg",height:16,width:16,blurWidth:0,blurHeight:0};var B=a(37071),F=a(75241),q=a(91406),U=a(1421),Y=a(57681),W=a.n(Y);function Q(e){let{term:t,totalProfit:a,withChart:i,isChartOpen:n,isEditable:o=!0,endingDate:s,onEditButtonClick:c,onToggleChart:u}=e,_=(0,j.jq)(a,2).split(","),d=(0,r.useMemo)(()=>s?(0,F.s)(s):function(e){let t=new Date;return(0,F.s)(B.A.day(t,e))}(t),[s,t]);return(0,l.jsxs)("div",{className:W().head,children:[(0,l.jsxs)("h4",{className:W().title,children:["Накопите к ",d]}),(0,l.jsxs)("h5",{className:W().result,children:[(0,l.jsxs)("span",{className:W().resultText,children:[_[0],_[1]?(0,l.jsxs)(l.Fragment,{children:[",",(0,l.jsxs)("span",{className:W().resultTextFloat,children:[_[1]," ₽"]})]}):" ₽"]}),o&&(0,l.jsx)("button",{className:W().resultButton,onClick:c,children:(0,l.jsx)(E.default,{className:W().resultIcon,src:V,alt:"edit"})})]}),i&&(0,l.jsx)(q.O,{onClick:u,className:W().chartButton,icon:n?U.Q.arrowBack:U.Q.chart,alt:"chart"})]})}var K=a(88885),z=a.n(K);let J=(0,r.memo)(e=>{let{href:t,id:a,pageType:i,eventCategory:o,withNewMarkup:s,eventLabel:r}=e;return(0,l.jsx)(n.$,{as:"a",className:z().button,target:"_blank",href:t,size:"s",disabled:!t,onClick:()=>{(0,y.oA)({event:"data-event",eventLabel:r,eventCategory:o,eventAction:s?"click_button_open_online":"open_in_bank_product",eventValue:null!=a?a:""})},children:i===u.T.isPlatformDeposit?"Открыть онлайн":"Перейти на сайт банка"})});J.displayName="MainButton";let G={highlights:null,title:null,description:null,variant:"secondary",primaryAuthProviders:["ALFA","SBER","TINKOFF","VTB","MTS","SOVCOM","PHONE"],additionalAuthProviders:[],extraAuthProviders:[],primaryTextOverride:"Открыть вклад"},X=(0,r.memo)(e=>{var t,a;let{onEdit:p,isMobile:m,rate:h,sum:g,term:D,tag:x,appUrl:C,discount:b,isRateSwitched:f,onSwitchRate:A,switchRate:k,isCapitalization:j,depositType:T,productId:w,unit:E,tags:V,isSavingAccount:B,extraInfo:F,salaryToggle:q,setSalaryToggle:U,isShowDepositTip:Y,isHideButtons:W=!1,paymentFrequency:K,customActions:X,shortChipsList:$=!1,firstDepositBonusTitle:Z=!1,scrollOffset:ee,computeClassName:et,withChart:ea,tipIcon:el,tagIcon:ei,customTagTitle:en,hideExternalLinks:eo=!1,computeHeader:es,computeTag:er,eventCategory:ec,withNewMarkup:eu,totalValues:e_,isEditable:ed=!0,isCombo:ep=!1,calculatedProfit:em,calculatedTotalProfit:eh,calculatedEffectiveRate:ev,calculatedBonus:eg,integrationType:eD,calculatedEndingDate:ex,isLoading:eC=!1}=e,[eb,ef]=(0,r.useState)(!1),eA=new Date;eA.setDate(eA.getDate()+D);let{total:ek,bonus:ej,effectiveRate:ey,profit:eN}=(0,I.A)({depositSum:g,term:D,rate:h,isCapitalization:j,discount:b,period:d.A.Day,paymentFrequency:K}),eT=em||eN,ew=eh||ek,eP=eg||ej,eS=function(e){let{integrationType:t}=e,a=(0,r.useMemo)(()=>(0,L.OR)(),[]),l=(null==a?void 0:a["auth.gtm_customer_id"])||null;return"INTERNAL_REFERAL"===t&&!l}({integrationType:eD}),{helpButtonLabel:eL,blockId:eI,isShowMainButton:eO,isShowHelpButton:eR,isOfferText:eM}=(e=>{let{depositType:t,isHideButtons:a,isShowDepositTip:l,isSavingAccount:i}=e,n=t===u.T.isPlatformDeposit?"Как открыть вклад":"Где открыть вклад",o=t===u.T.isPlatformDeposit?"Как открыть накопительный счет":"Где открыть накопительный счет";return{helpButtonLabel:i?o:n,blockId:t===u.T.isPlatformDeposit?S.I7:S.ov,isShowMainButton:!a&&t===u.T.isPlatformDeposit||t===u.T.isLidgenDeposit,isShowHelpButton:t!==u.T.isArchiveDeposit&&l&&!a,isOfferText:t===u.T.isPlatformDeposit||t===u.T.isLidgenDeposit}})({depositType:T,isHideButtons:W,isShowDepositTip:Y,isSavingAccount:B}),eH=(0,r.useCallback)(()=>{(0,y.oA)({event:"data-event",eventAction:eu?"click_button_how_to_open":"click_button_".concat((0,N.y)(eL)),eventCategory:ec,eventLabel:w}),(0,O.e)(eI,{offset:ee,position:"top"})},[eI,ec,eL,w,ee,eu]),eE=(0,r.useCallback)(()=>{ef(e=>!e),(0,y.oA)({event:"data-event",eventAction:"click_icon_diagramma",eventCategory:ec,eventLabel:w})},[ec,w]),eV=(0,r.useCallback)(()=>{p&&(p(),(0,y.oA)({event:"data-event",eventAction:eu?"click_pencil":"click_icon_redactirovanie",eventCategory:ec,eventLabel:w}))},[ec,p,w,eu]),eB=(0,r.useCallback)(e=>{(0,y.oA)({eventCategory:ec,eventLabel:w,eventAction:"click_chips_".concat((0,N.y)(e))})},[ec,w]),eF=(0,r.useCallback)(()=>{var e;return x&&x.title?null!=(e=null==er?void 0:er(x))?e:(0,l.jsx)(c.v,{className:z().tag,text:null!=en?en:x.title,tooltipText:x.description,tipIcon:ei,onTooltipOpen:e=>eu&&eB(e)}):null},[er,en,eB,x,ei,eu]),{widgetConfig:eq,isWidgetDataLoading:eU}=function(e){let{disabled:t}=null!=e?e:{},{data:a,isLoading:l}=(0,M.C)("login-widget",()=>(0,R.g)(_.q.LK_API),{disabled:t});return{widgetConfig:a,isWidgetDataLoading:l}}({disabled:!eS}),eY=(0,r.useCallback)(()=>{if(eO)return eS&&(eq||eU)?(0,l.jsx)(i.S,{entryPointId:"deposit-detail",baseUrl:_.q.LK_URL,s3AssetsUrl:_.q.ASSETS_URL,skeleton:(0,l.jsx)(n.$,{pending:!0,className:z().button,size:"s",label:"Открыть вклад",disabled:!0}),className:(0,s.A)(z().button,z().loginWidget),serverConfig:eq?{...eq,consents:[],legalInfo:null}:void 0,config:G,scenarioParams:{targetUri:C},isSilent:!0}):(0,l.jsx)(J,{href:C,id:w,pageType:T,eventCategory:ec,withNewMarkup:eu,eventLabel:e_})},[eO,eS,eq,eU,C,w,T,ec,eu,e_]);return(0,l.jsxs)(o.m,{className:(0,s.A)(z().container,eb&&z().containerChart,et),children:[null!=(a=null==es?void 0:es(ew,eV))?a:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v,{loading:eC}),(0,l.jsx)(Q,{term:D,totalProfit:ew,withChart:ea&&!ep,isChartOpen:eb,isEditable:ed,endingDate:ex,onEditButtonClick:eV,onToggleChart:eE})]}),(0,l.jsxs)("div",{className:z().info,children:[(0,l.jsx)(H.i,{isMobile:m,className:(0,s.A)(z().chart,eb&&z().chartVisible),sum:g,bonus:ej,profit:eT}),(0,l.jsxs)("div",{className:z().tags,children:[!$&&(null==V?void 0:V.map(e=>{let{title:t,description:a}=e;return(0,l.jsx)(c.v,{className:z().tag,text:t,tooltipText:a,theme:"pink",onTooltipOpen:eB},t)})),eF(),!$&&(null==(t=F.algo)?void 0:t.id)==="mkb-nakop"&&F.algo.extraTag&&(0,l.jsx)(c.v,{className:z().tag,...F.algo.extraTag,onTooltipOpen:eB})]}),(0,l.jsx)(P,{withNewMarkup:eu,rate:h,effectiveRate:ev||ey,hideExternalLinks:eo,profit:eT,unit:E,extraInfo:F,isSavingAccount:B,salaryToggle:q,setSalaryToggle:U,discount:b,bonus:eP,firstDepositBonusTitle:Z,tipIcon:el,switchRate:k,onSwitchRate:A,isRateSwitched:f,eventCategory:ec,productId:w,isCombo:ep,isLoading:eC}),null==X?void 0:X(D),eY(),eR&&(0,l.jsx)(n.$,{onClick:eH,className:z().button,size:"s",variant:"secondary",children:eL}),eM&&(0,l.jsx)("h3",{className:z().disclaimer,children:"Предварительный расчет. Не является офертой"})]})]})});X.displayName="DepositDetailCompute"},88885: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"}},89698:(e,t,a)=>{"use strict";a.d(t,{n:()=>l});let l=e=>e.length?e[0].toUpperCase()+e.slice(1):""},92068:(e,t,a)=>{"use strict";a.d(t,{v:()=>c});var l=a(95155),i=a(2821),n=a(58416),o=a(41105),s=a(76507),r=a.n(s);let c=e=>{let{className:t,text:a,tooltipText:s,theme:c="primary",tipIcon:u,onTooltipOpen:_}=e;return(0,l.jsx)("div",{className:(0,i.A)(r().tag,{[r().tagPrimary]:"primary"===c,[r().tagSecondary]:"secondary"===c,[r().tagPink]:"pink"===c,[r().tagYellow]:"yellow"===c},t),children:s&&(0,l.jsx)(o.Y,{className:r().detail,iconSrc:n.A,text:s,iconClassName:r().detailIcon,icon:u,onOpen:()=>null==_?void 0:_(a),children:(0,l.jsx)("span",{className:r().text,children:a})})})}},94588:e=>{e.exports={container:"ArchivePromo_container__5L_r6",title:"ArchivePromo_title__TJIJ7",text:"ArchivePromo_text__nMo9K",button:"ArchivePromo_button__f_l5V"}},99248:(e,t,a)=>{"use strict";a.d(t,{C:()=>o});var l=a(13860),i=a(12115),n=a(46799);function o(e,t,a){let{disabled:o=!1,separateLoaders:s=!1,ssrLoader:r=!1,...c}=null!=a?a:{},u=(0,l.qK)(),_=(0,n.Ay)(o?null:e,t,{revalidateOnFocus:!1,...c}),{isLoading:d,isValidating:p}=_,m=d||!!r&&!u&&!o,h=m||p;return(0,i.useMemo)(()=>({..._,isLoading:s?m:h,isValidating:s?p:h}),[h,m,p,s,_])}}}]);