(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4610,8315],{3608:(e,t,a)=>{"use strict";a.d(t,{z:()=>l});var n=a(12115),i=a(29132);function l(){let e=(0,i.q)("l"),[t,a]=(0,n.useState)(null),[l,s]=(0,n.useState)(e);l!==e&&(s(e),a(e?null:null!=t&&t));let o=null!=t?t:!e,r=(0,n.useCallback)(()=>a(!o),[o]);return{isCollapsed:o,isDefault:null===t,toggle:r}}},8561:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});let n={setItem:(e,t)=>{try{window.localStorage.setItem(e,t)}catch(e){return console.error(e),!1}return!0},getItemRaw:e=>{try{return window.localStorage.getItem(e)}catch(e){return console.error(e),null}},getItem:e=>{let t=n.getItemRaw(e);if(t&&"undefined"!==t)try{return JSON.parse(t)}catch(t){console.warn("invalid object in localStorage by key: ".concat(e))}return null},removeItem:e=>{try{window.localStorage.removeItem(e)}catch(e){console.error(e)}}}},16534:e=>{e.exports={page:"DepositCalculator_page__w7k1A",headingText:"DepositCalculator_headingText__AxXM6",title:"DepositCalculator_title__ABexT",calculatorContainer:"DepositCalculator_calculatorContainer__3j8_0",subtitle:"DepositCalculator_subtitle__L4J7S",opened:"DepositCalculator_opened__9oYeb",icon:"DepositCalculator_icon__yazp_",banner:"DepositCalculator_banner__IubMu"}},20439:(e,t,a)=>{"use strict";function n(e){if("true"===e)return!0;if("false"===e)return!1;let t=Number(e);return isNaN(t)?e:t}a.d(t,{w:()=>n})},22980:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(62521),i=a.n(n),l=a(12115),s=a(15520),o=a(1396);function r(e){if(null==e)return"";let t=Object.fromEntries(Object.entries(e).filter(e=>void 0!==e[1]));return i().stringify(t)}function c(e,t,a){let n=t.indexOf(a);return(n>=0?t.substring(0,n):t)+a+r(e)}function u(e){let{defaultValue:t,searchSign:a="?"}=null!=e?e:{},{asPath:n,replace:i}=(0,o.T)(),u=(0,l.useMemo)(()=>(0,s.$)(n,a),[n,a]),M=(0,l.useRef)(!1),d=(0,l.useRef)(void 0);(0,l.useEffect)(()=>{M.current||(M.current=!0)},[]),(0,l.useEffect)(()=>{M.current&&JSON.stringify(d.current)!==JSON.stringify(t)&&(d.current=t,i(c(null==t?u:Object.entries(t).reduce((e,t)=>{let[a,n]=t;return null!=e[a]?e:{...e,[a]:n}},u),n,a)))},[n,t,d,u,i,a]);let D=(0,l.useCallback)(e=>{let t=e(u);r(u)!==r(t)&&i(c(t,n,a))},[n,u,i,a]);return{params:u,setParams:D}}},25188:e=>{e.exports={container:"FloatingRateFields_container__luKnK",header:"FloatingRateFields_header___f5YE",label:"FloatingRateFields_label__uDTLX",labelContainer:"FloatingRateFields_labelContainer__asJeb",dataContainer:"FloatingRateFields_dataContainer__PNuQs",dataRow:"FloatingRateFields_dataRow__WlJGv",deleteButton:"FloatingRateFields_deleteButton__Z26HR",rateLabel:"FloatingRateFields_rateLabel__uMDJ4",hasError:"FloatingRateFields_hasError__RqJvA",buttonLabelContainer:"FloatingRateFields_buttonLabelContainer__8yT0D",button:"FloatingRateFields_button__cbZVJ",fieldGroup:"FloatingRateFields_fieldGroup__Yqsa5",message:"FloatingRateFields_message__Rq1qI"}},26497:e=>{e.exports={detailIcon:"DepositsItem_detailIcon__PzEOA",detail:"DepositsItem_detail__eDvqi"}},32104:(e,t,a)=>{"use strict";a.d(t,{E:()=>r});var n=a(95155),i=a(2821),l=a(12115),s=a(98715),o=a.n(s);let r=(0,l.memo)(e=>{let{className:t}=e;return(0,n.jsx)("div",{className:(0,i.A)(o().skeleton,t)})});r.displayName="Skeleton"},32777:e=>{e.exports={container:"DepositCalculator_container__OVf6X",title:"DepositCalculator_title__aEfEC",profitRow:"DepositCalculator_profitRow__2Bnma",profitLabelRow:"DepositCalculator_profitLabelRow__WZCw0",profitLabel:"DepositCalculator_profitLabel__pom8i",profitUnit:"DepositCalculator_profitUnit__j5pqq",profitPercent:"DepositCalculator_profitPercent__rZ4RI",tip:"DepositCalculator_tip__D0_oP",tipIcon:"DepositCalculator_tipIcon__Jq0Uq",divider:"DepositCalculator_divider__JIAq0",labelContainer:"DepositCalculator_labelContainer__N0fII",label:"DepositCalculator_label__Q83Ut",value:"DepositCalculator_value__z16eC",effectiveRateTip:"DepositCalculator_effectiveRateTip__EdGoK",showDepositsButton:"DepositCalculator_showDepositsButton__MAHIg"}},34724:(e,t,a)=>{"use strict";a.d(t,{a:()=>r});var n=a(95155),i=a(69465),l=a(2821),s=a(49663),o=a.n(s);function r(e){return(0,n.jsx)(i.E,{...e,className:(0,l.A)(o().caption,e.className)})}},35896:(e,t,a)=>{"use strict";a.d(t,{E:()=>s});var n=a(50705),i=a(84353),l=a(64765);let s=function(e,t,a,s,o){var r;let c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:i.O.VKLADY;(null==t?void 0:t.url)!=="premium"&&(null==t||null==(r=t.region_page)?void 0:r.is_show)||(a=null,s=null);let u=null!=o?o:"/".concat(c);return u+=t&&!(0,l.G)(t)?"/teg_"+t.url:"",a&&(!t||!(0,l.G)(t)||t.region_page)&&(u+="/reg_"+a.url),s&&a&&!n.M.includes(a.url)&&(!t||!(0,l.G)(t)||t.region_page)&&(u+="/"+s.url),u}},38745:(e,t,a)=>{"use strict";a.d(t,{B:()=>r});var n=a(95155),i=a(52619),l=a.n(i),s=a(51003),o=a.n(s);let r=e=>{let{data:t}=e;return(0,n.jsx)("ul",{className:o().choice,children:t.map(e=>(0,n.jsx)("li",{className:o().choiceOption,children:(0,n.jsx)(l(),{href:(e=>/^https?:\/\//i.test(e)||e.startsWith("/")?e:"/".concat(e))(e.url),onClick:(e=>t=>{e.disableLink&&(t.preventDefault(),t.stopPropagation()),e.onClick&&e.onClick()})(e),prefetch:!1,children:e.name})},e.id))})}},38907:(e,t,a)=>{"use strict";a.d(t,{c:()=>i});var n=a(1591);let i=e=>{let{profit:t,bonusProfit:a,terms:i,isPlatform:l,isCapitalization:s,isSavingAccount:o}=e;if(!l)return s&&!o?"Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка.\nДополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее.":null;if(!i)return;if(!t||!a)return i;let r=(0,n.up)(t),c=(0,n.up)(a);return"• доход от банка: ".concat(r,"\n• бонус от Финуслуг: ").concat(c,"\n\n").concat(i)}},46586:(e,t,a)=>{"use strict";a.d(t,{default:()=>tr});var n,i=a(95155),l=a(76048),s=a(43126),o=a(69465),r=a(2821),c=a(12115),u=a(96918),M=a(43184),d=a(68749),D=a(703),N=a(19559),j=a(40599),T=a(29132),p=a(1396),m=a(3608),x=a(53548),w=a(83745),_=a(35195),g=a(51912),h=a(40486),L=a(20753),A=a(41105);let y=e=>({event:"data-event",eventCategory:e,eventValue:""}),C=(e,t,a)=>({...y(a),eventAction:"input__form__".concat(e),eventLabel:String(t)}),k=(e,t)=>({...y(t),eventAction:"click__tooltip__form",eventLabel:e}),O=(e,t,a)=>({...y(a),eventAction:"click__toggle__form__".concat(t?"(on)":"(off)"),eventLabel:e}),v=(e,t,a)=>({...y(e),eventAction:"click__button__form__".concat(t),eventLabel:a||""});var f=a(54319),z=a(55921),b=a(88346),E=a(98382),I=a(28638),S=a(92429),Y=a(75722),Q=a(46828),U=a(37071),R=a(20439),F=a(22980),B=a(73520);let W={amount:function(e,t,a){return!a||a<e?"Минимальное значение 1000 ".concat(b.p9):a>t?"Максимальное значение 999 999 999".concat(b.p9):void 0},term:function(e,t,a,n){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return!n||n<e?i?"Минимум ".concat(e," ").concat((0,B.td)(e,...b.Ge[a])):"Минимальное значение ".concat(e," ").concat((0,B.td)(e,...b.Ge[a])):n>t?i?"Максимум ".concat(t," ").concat((0,B.td)(t,...b.Ge[a])):"Максимальное значение ".concat(t," ").concat((0,B.td)(t,...b.Ge[a])):void 0},floatingRateStartDay:function(e,t,a){return!a||a<e?"Минимальное значение ".concat(e," день"):a>t?"Максимальное значение ".concat(t," день"):void 0},rate:function(e,t,a){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!a||a<e||a>t)return n?"Диапазон ".concat(e,"% - ").concat(t,"%"):"Ставка должна быть в диапазоне от ".concat(e,"% до ").concat(t,"%")},existedStartDay:function(e,t,a){if(!a)return;let n=e.findIndex(e=>e.startDay===a);if(n>=0&&n!==t)return"Нельзя задать один и тот же день"}};var P=a(84353);let G=b.Tr,q=new Date,J=b.md,V=U.A[J](q,G),H=(0,E.m)(V,q),Z=P.O.DEPOSIT_CALCULATOR,K={amount:b.PQ,dateStart:q,dateEnd:V,period:J,term:G,termInDays:H,pageUrl:Z,paymentFrequency:b.y3,rate:b.L5,floatingRate:!1,floatingRateData:[],capitalization:!1},X=(0,c.createContext)(void 0),$=(0,c.createContext)(void 0),ee=[Y.A.EveryDay,Y.A.OnceAMonth,Y.A.InTheEnd],et=["amount","term","period","paymentFrequency","rate","floatingRate","capitalization"];function ea(e,t){return"boolean"==typeof e?e:t}function en(e){var t,a,n,l,s,o,r,u;let{children:M,pageUrl:d,deferOfferFiltering:D=!1}=e,{params:T,setParams:p}=(0,F.A)(),m=et.some(e=>{let t=T[e];return!(null==t||0===t.length||Array.isArray(t))&&("amount"===e||"term"===e||"rate"===e?Number.isFinite(Number(t)):"period"===e?Object.values(Q.A).includes(t):"paymentFrequency"===e?ee.includes(t):"true"===t||"false"===t)}),x=Object.entries(T).reduce((e,t)=>{let[a,n]=t;return null==n||0===n.length?e:Array.isArray(n)?{...e,[a]:n.map(R.w)}:{...e,[a]:(0,R.w)(n)}},{}),w=(r=null!=(t=x.period)?t:K.period,Object.values(Q.A).includes(r)?r:K.period),_=(u=null!=(a=x.paymentFrequency)?a:K.paymentFrequency,ee.includes(u)?u:K.paymentFrequency),g=ea(x.floatingRate,K.floatingRate),h=ea(x.capitalization,K.capitalization),[L,A]=(0,c.useState)(null!=(n=x.amount)?n:K.amount),[y,C]=(0,c.useState)(K.dateStart),[k,O]=(0,c.useState)(w),[f,z]=(0,c.useState)(null!=(l=x.term)?l:K.term),[Y,B]=(0,c.useState)(_),[P,G]=(0,c.useState)(null!=(s=x.rate)?s:K.rate),[q,J]=(0,c.useState)(g),[V,H]=(0,c.useState)(g?[{startDay:1,rate:null!=(o=x.rate)?o:K.rate}]:K.floatingRateData),[Z,en]=(0,c.useState)(h),ei=(0,c.useMemo)(()=>U.A[k](y,f),[y,k,f]),el=(0,c.useMemo)(()=>(0,E.m)(ei,y),[ei,y]),es=function(e){let{amount:t,term:a,period:n,rate:i,floatingRate:l,floatingRateData:s,termInDays:o}=e;return!![t,a,i,o].every(Number.isFinite)&&void 0===W.amount(b.Ke,b.wU,t)&&void 0===W.rate(b.MK,b.Mp,i)&&void 0===W.term(1,b.tq[n],n,a)&&(!l||s.every((e,t)=>Number.isFinite(e.startDay)&&Number.isFinite(e.rate)&&void 0===W.floatingRateStartDay(1,o-1,e.startDay)&&void 0===W.existedStartDay(s,t,e.startDay)&&void 0===W.rate(b.MK,b.Mp,e.rate)))}({amount:L,term:f,period:k,rate:P,floatingRate:q,floatingRateData:V,termInDays:el}),[eo,er]=(0,c.useState)(m),[ec,eu]=(0,c.useState)(!D),eM=(0,c.useMemo)(()=>({amount:L,dateStart:y,dateEnd:ei,period:k,term:f,termInDays:el,paymentFrequency:Y,rate:P,floatingRate:q,floatingRateData:V,capitalization:Z,pageUrl:d}),[L,Z,ei,y,q,V,d,Y,k,P,f,el]),[ed,eD]=(0,c.useState)(()=>es?eM:{...K,pageUrl:d});(0,c.useEffect)(()=>{es&&(eD({...eM}),eo&&eu(!0))},[eM,eo,es]);let eN=(0,c.useCallback)(()=>{er(!0)},[]),ej=(0,c.useCallback)(e=>{p(t=>({...t,...e}))},[p]),eT=(0,c.useCallback)(e=>{e!==L&&(eN(),A(null!=e?e:0))},[L,eN]),ep=(0,c.useCallback)(e=>{!e||(0,I.r)(e,y)||(eN(),C(e))},[y,eN]),em=(0,c.useCallback)(e=>{e!==f&&(eN(),z(null!=e?e:0))},[eN,f]),ex=(0,c.useCallback)(e=>{if(e!==k){eN();let t=b.ci[e];O(e),z(t)}},[eN,k]),ew=(0,c.useCallback)(e=>{e!==Y&&(eN(),B(e))},[eN,Y]),e_=(0,c.useCallback)(e=>{e!==P&&(eN(),G(null!=e?e:0))},[eN,P]),eg=(0,c.useCallback)(e=>{eN(),J(e)},[eN]),eh=(0,c.useCallback)(e=>{eN(),H(e)},[eN]),eL=(0,c.useCallback)(e=>{eN(),en(e)},[eN]),eA=(0,c.useCallback)(()=>{eN();let e=V.reduce((e,t,a,n)=>"".concat(e,"floatingrate").concat(a+1,"_").concat(t.startDay,"_").concat(t.rate).concat(n.length-1!==a?"__":""),""),t=["".concat((0,S.GP)(y,"dd.MM.yyyy")),"".concat(L),"".concat(f,"_").concat(k),"".concat(P),"".concat(Y),"floatingrate".concat(q?"(on)":"(off)"),"capitalization".concat(Z?"(on)":"(off)"),"".concat(e)].join("__");(0,N.oA)({...v(d,(0,j.y)("Рассчитать"),t)}),ej({amount:L,period:k,term:f,paymentFrequency:Y,rate:P,floatingRate:q,capitalization:Z})},[L,Z,y,q,V,ej,eN,d,Y,k,P,f]),ey=(0,c.useMemo)(()=>({amount:L,dateStart:y,dateEnd:ei,period:k,term:f,termInDays:el,paymentFrequency:Y,rate:P,floatingRate:q,floatingRateData:V,capitalization:Z,isValid:es,isOfferFilterApplied:ec,pageUrl:d,onChangeAmount:eT,onChangeDateStart:ep,onChangePeriod:ex,onChangeTerm:em,onChangePaymentFrequency:ew,onChangeRate:e_,onChangeFloatingRate:eg,onChangeFloatingRateData:eh,onChangeCapitalization:eL,onRecalculate:eA}),[L,Z,ei,y,q,V,eT,eL,ep,eg,eh,ew,ex,e_,em,eA,es,ec,d,Y,k,P,f,el]);return(0,i.jsx)(X.Provider,{value:ey,children:(0,i.jsx)($.Provider,{value:ed,children:M})})}function ei(){let e=(0,c.useContext)($);if(!e)throw Error("Out of context");return e}function el(){let e=(0,c.useContext)(X);if(!e)throw Error("Out of context");return e}let es=e=>e<10?"0"+e:e.toString();var eo=a(89910),er=a(78916),ec=a(55275),eu=a(89726),eM=a(32104),ed=a(19927),eD=a(91762),eN=a(54226),ej=a(90244),eT=a(8244),ep=a(76989),em=a.n(ep);let ex="#list",ew="Смотреть еще предложения";function e_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q.A.Month;return"".concat(e," ").concat((0,B.td)(e,...b.Ge[t]))}function eg(e){var t,a,n;let{pageUrl:l,questions:s,onChangeIsDiscount:o,isBankDepositCalculator:r=!1}=e,{anotherDeposits:u,platformDeposits:M,advantagesDepositLists:d,depositLists:p,isOldUser:m,isHiddenPromo:w,isLoading:_,banks:g,isPlusFiveBonus:h,onChangeAdvantagesDepositsList:L}=(0,eN.VQ)(),{amount:A,period:y,termInDays:C}=ei(),{isOfferFilterApplied:k}=el(),{depositData:O,openModal:v,handleOpen:b,handleClose:E}=(0,eT.S)({banks:g,anotherDeposits:u,platformDeposits:M,newPlatformDeposits:[]}),[I,S]=(0,c.useState)(),Y=(0,c.useCallback)(e=>{if(!(e.isPlatform?M.some(t=>t.internalUrl===e.depositItem.url):u.some(t=>t.url===e.depositItem.url)))return void window.location.assign(e.href);S(e.depositItem),b(e)},[u,b,M]),U=(0,T.q)("l"),R=(0,c.useMemo)(()=>p.another.filter(e=>!w||!e.promo),[p.another,w]),F=(0,c.useMemo)(()=>d.filter(e=>!w||!e.promo),[d,w]),W=F.length+(r?R.length:0),{isLoading:P,renderedAdvantagesDepositsCount:G,showMore:q}=(0,ej.A)({pageOffset:10,paginationItemsCount:W,advantagesDepositLists:d,depositLists:p,onChangeAdvantagesDepositsList:L,onChangeIsDiscount:o}),J=Math.max(0,G-F.length),V=W>0,H=P||_&&!V,Z=!H&&!_&&!V,K=(0,z.A)(100,10),X=(0,c.useMemo)(()=>Math.round(C/ed.L),[C]),$=y===Q.A.Day,ee=r&&!k,et=ee?I:void 0,ea=null!=(n=null!=(a=null==et?void 0:et.rateAmount)?a:null==et?void 0:et.amount)?n:A,en=null==et||null==(t=et.computeData)?void 0:t.termDays,es=null!=en?en:$?C:void 0,eo=void 0===en?X:Math.round(en/ed.L),er=void 0===en?e_(X):e_(en,Q.A.Day);function ep(e,t){var a;let n=$||ee&&(null==(a=e.computeData)?void 0:a.termDays)!==void 0;return(0,i.jsx)(eD.x,{isPlatform:t,onOpenDetailModal:Y,className:em().listItem,data:e,events:{eventCategory:l},isTermInDays:n,isFullFilter:!0,useDepositCurrency:r},e.url+e.id)}let eg="deposits_details_".concat(l,"_popup");return(0,i.jsx)("section",{id:ex,className:em().container,children:Z?(0,i.jsx)(eu.r,{onChangeParams:function(){(0,f.e)(eX,{offset:K,position:"top"})},dataQa:"calculator-not-found"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(D.J,{children:(0,i.jsxs)("p",{className:em().title,children:[(0,i.jsxs)("span",{children:["Найдено ",p.currentLength,U&&" "+(0,B.td)(p.currentLength,"предложение","предложения","предложений")]}),p.allLength>0&&(0,i.jsxs)("span",{className:em().countLabel,children:[" из ",p.allLength]})]})}),(0,i.jsxs)(D.J,{children:[(0,i.jsxs)("div",{className:em().content,children:[!H&&F.slice(0,G).map(e=>(0,i.jsx)(c.Fragment,{children:(0,i.jsx)("div",{"data-qa":"platform",children:ep(e,!0)})},e.url)),!H&&r&&R.slice(0,J).map(e=>(0,i.jsx)(c.Fragment,{children:(0,i.jsx)("div",{"data-qa":"nonplatform",children:ep(e,!1)})},e.url)),!H&&W>G&&(0,i.jsx)(x.Button,{size:"s",onClick:function(){(0,N.oA)({event:"data-event",eventCategory:l,eventAction:"click__button__other__offers",eventLabel:(0,j.y)(ew)}),q()},className:em().button,variant:"secondary",children:ew}),H&&Array.from({length:4},(e,t)=>(0,i.jsx)(eM.E,{className:em().listItem},t))]}),O&&(0,i.jsx)(ec.A,{data:O,isOldUser:m,isOpen:v,onClose:E,isPlusFiveBonus:h,questions:s,depositTerm:er,depositSumm:String(ea),initialAmount:ea,initialIsCapitalization:null==I?void 0:I.isCapitalization,initialOptionId:null==I?void 0:I.optionId,initialPaymentFrequency:null==I?void 0:I.paymentFrequency,initialTermInDays:es,initialTermInMonths:eo,useExactTermInDetailsLink:void 0!==en,useDepositCurrency:r,eventCategory:eg})]})]})})}var eh=a(56235),eL=a.n(eh);function eA(e){let{profit:t}=e,{amount:a}=ei(),n=a+t,l=Math.min(97,Math.max(Math.round(100*a/n),3));return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:eL().chartContainer,children:[(0,i.jsx)("div",{className:(0,r.A)(eL().element,eL().deposit),style:{width:"".concat(l,"%")},"data-testid":"calculator-amount-chart"}),(0,i.jsx)("div",{className:(0,r.A)(eL().element,eL().profit),style:{width:"".concat(100-l,"%")},"data-testid":"calculator-profit-chart"})]}),(0,i.jsxs)("div",{className:eL().descriptionContainer,children:[(0,i.jsxs)("div",{className:eL().decriptionRow,children:[(0,i.jsx)("div",{className:(0,r.A)(eL().descriptionMark,eL().deposit)}),(0,i.jsx)("p",{className:eL().descriptionLabel,children:"Сумма вклада"}),(0,i.jsxs)("p",{className:eL().descriptionValue,children:[(0,eo.jq)(a,1)," ",b.p9]})]}),(0,i.jsxs)("div",{className:eL().decriptionRow,children:[(0,i.jsx)("div",{className:(0,r.A)(eL().descriptionMark,eL().profit)}),(0,i.jsx)("p",{className:eL().descriptionLabel,children:"Доход"}),(0,i.jsxs)("p",{className:eL().descriptionValue,children:[(0,eo.jq)(t,1)," ",b.p9]})]})]})]})}var ey=a(32777),eC=a.n(ey),ek=a(64296);function eO(e){let{amount:t,rate:a,paymentFrequency:n,capitalization:i,termInDays:l,floatingRate:s,floatingRateData:o,dateEnd:r,dateStart:u,period:M,term:d}=ei(),D=(0,c.useMemo)(()=>[...o].sort((e,t)=>{var a,n;return(null!=(a=e.startDay)?a:0)-(null!=(n=t.startDay)?n:0)}),[o]),N=(0,c.useMemo)(()=>s?D.reduce((e,t,a,n)=>{var i;let{startDay:s,rate:o}=t;return s&&o?e+o*((a===n.length-1?l+1:null!=(i=n[a+1].startDay)?i:0)-s):e},0)/l:a,[s,a,D,l]),j=null!=e?e:n,{profit:T,effectiveRate:p}=(0,c.useMemo)(()=>(0,ek.A)({depositSum:t,term:d,rate:N,period:M,paymentFrequency:j,dateStart:u,isCapitalization:i}),[t,N,j,i,u,M,d]),m=100*T/t;return{profit:T,profitPercent:m,effectiveRate:p,dateEnd:r}}let ev="#result",ef="Показать предложения",ez="Прирост капитала",eb="Эффективная ставка";function eE(e){let{pageUrl:t}=e,{profit:a,profitPercent:n,effectiveRate:s,dateEnd:o}=eO(),{amount:r}=ei(),u=(0,z.A)(),M=(0,c.useRef)(null);(0,er.A)({itemRef:M,eventCategory:t,eventAction:"show__offer__calculate",eventLabel:"".concat((0,S.GP)(o,"dd.MM.yyyy"),"__").concat(r,"__").concat(s,"__").concat(a.toFixed())});let d=(0,c.useMemo)(()=>({event:"data-event",eventAction:"click__tooltip__offer__calculate",eventCategory:t}),[t]),D=(0,c.useCallback)(()=>{(0,N.oA)({...d,eventLabel:(0,j.y)((0,j.y)(ez)),eventValue:""})},[d]),T=(0,c.useCallback)(()=>{(0,N.oA)({...d,eventLabel:(0,j.y)(eb),eventValue:""})},[d]);return(0,i.jsxs)("section",{id:ev,className:eC().container,ref:M,children:[(0,i.jsx)("h2",{className:eC().title,children:"Ваш доход"}),(0,i.jsxs)("div",{className:eC().profitRow,children:[(0,i.jsxs)("div",{className:eC().profitLabelRow,children:[(0,i.jsx)("p",{className:eC().profitLabel,children:(0,eo.jq)(a,1)}),(0,i.jsx)("p",{className:eC().profitUnit,children:b.p9})]}),(0,i.jsxs)("div",{className:eC().profitPercent,children:[(0,i.jsxs)("p",{children:["+",(0,eo.jq)(n,1),"%"]}),(0,i.jsx)(A.Y,{className:eC().tip,text:ez,onOpen:D,icon:(0,i.jsx)(l.KYF,{className:eC().tipIcon})})]})]}),(0,i.jsx)(eA,{profit:a}),(0,i.jsx)("hr",{className:eC().divider}),(0,i.jsxs)("div",{className:eC().labelContainer,children:[(0,i.jsx)("p",{className:eC().label,children:eb}),(0,i.jsx)(A.Y,{className:eC().effectiveRateTip,text:"Реальная доходность по вкладам с учетом капитализации процентов за весь период",onOpen:T}),(0,i.jsxs)("p",{className:eC().value,children:[(0,eo.jq)(s,2),"%"]})]}),(0,i.jsxs)("div",{className:eC().labelContainer,children:[(0,i.jsx)("p",{className:eC().label,children:"Дата окончания"}),(0,i.jsx)("p",{className:eC().value,children:((e,t)=>{if(!e)return"";let a=new Date(e).getDate(),n=new Date(e).getMonth()+1,i=new Date(e).getFullYear(),l=t?"":"".concat(es(a),".").concat(es(n),".").concat(i);return((null==t?void 0:t.hasDay)&&(l="".concat(es(a))),(null==t?void 0:t.hasMonth)&&(l="".concat(l.length?l+".":"").concat(es(n))),null==t?void 0:t.hasYear)?"".concat(l.length?l+".":"").concat(i):l})(o)})]}),(0,i.jsx)(x.Button,{onClick:function(){(0,N.oA)({event:"data-event",eventAction:"click__button__offer__calculate",eventCategory:t,eventLabel:(0,j.y)((0,j.y)(ef)),eventValue:""}),(0,f.e)(ex,{offset:u,position:"top"})},className:eC().showDepositsButton,children:ef})]})}function eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}let eS=function(e){return c.createElement("svg",eI({width:25,height:25,viewBox:"0 0 25 25",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=c.createElement("path",{d:"M8.229 1.246a.962.962 0 0 0-.561.909.91.91 0 0 0 .32.725c.308.278.106.266 4.262.266s3.954.012 4.262-.266a.91.91 0 0 0 .32-.725.962.962 0 0 0-.561-.909c-.159-.074-.354-.078-4.021-.078s-3.862.004-4.021.078M2.227 4.849c-.367.171-.561.479-.559.889.001.294.1.528.31.731.25.244.425.281 1.317.281h.78l.026.427c.015.235.148 3.352.296 6.927.186 4.464.288 6.585.328 6.771.263 1.225 1.215 2.21 2.483 2.569.256.073.534.077 5.042.077 5.264 0 4.909.016 5.56-.258.78-.328 1.558-1.146 1.836-1.93.171-.479.183-.674.456-7.229.149-3.575.282-6.692.297-6.927l.026-.427h.78c.892 0 1.067-.037 1.317-.281a.965.965 0 0 0 .31-.731c.002-.41-.192-.718-.559-.889l-.21-.098H2.438l-.211.098m16.122 1.994c.034.054-.027 1.839-.235 6.821-.262 6.294-.286 6.764-.365 6.976a1.43 1.43 0 0 1-.957.856c-.139.036-1.338.046-4.646.037l-4.458-.012-.238-.117a1.513 1.513 0 0 1-.697-.761c-.08-.212-.104-.66-.357-6.718-.149-3.57-.271-6.622-.271-6.783 0-.172.021-.313.05-.342.039-.039 1.427-.048 6.089-.04 5.69.01 6.042.015 6.085.083M9.532 9.598a.992.992 0 0 0-.654.739c-.071.331-.061 7.373.01 7.649.24.922 1.474 1.016 1.878.142.087-.189.088-.226.1-3.815.009-2.503-.001-3.708-.033-3.892-.086-.501-.429-.828-.906-.863a1.034 1.034 0 0 0-.395.04m4.833-.017c-.373.12-.627.425-.698.84-.032.184-.042 1.389-.033 3.892.012 3.589.013 3.626.1 3.815.404.874 1.638.78 1.878-.142.072-.279.081-7.318.009-7.652a1.056 1.056 0 0 0-.489-.661c-.194-.107-.577-.153-.767-.092",fillRule:"evenodd"})))};var eY=a(25188),eQ=a.n(eY);let eU="Плавающая ставка",eR="Ставка",eF="Добавить день или ставку";function eB(){let{floatingRate:e,floatingRateData:t,rate:a,termInDays:n,onChangeFloatingRateData:s,onChangeFloatingRate:o,pageUrl:u}=el(),M=(0,T.q)("xl"),d=(0,c.useRef)(!1);function D(){let e=t.length>=1?Math.max(...t.map(e=>{var t;return null!=(t=e.startDay)?t:0})):0;s([...t,{rate:a,startDay:e+1}]),(0,N.oA)({...v(u,(0,j.y)(eF))})}n<=1&&e&&(o(!1),d.current=!0),n>1&&d.current&&(d.current=!1,o(!0));let p=(0,c.useCallback)(e=>{(0,N.oA)({...C((0,j.y)("День с которого действует ставка"),Number(e),u)})},[u]),m=(0,c.useCallback)(e=>{(0,N.oA)({...C((0,j.y)(eR),Number(e),u)})},[u]),w=(0,c.useCallback)(()=>{(0,N.oA)({...k((0,j.y)(eU),u)})},[u]);return(0,i.jsxs)("div",{className:eQ().container,children:[(0,i.jsxs)("div",{className:eQ().header,children:[(0,i.jsxs)("div",{className:eQ().labelContainer,children:[(0,i.jsx)("p",{className:eQ().label,children:eU}),(0,i.jsx)(A.Y,{onOpen:w,text:(0,i.jsx)(eW,{})})]}),(0,i.jsx)(h.l,{value:e,onChange:function(e){o(e),(0,N.oA)({...O((0,j.y)(eU),e,u)}),e&&0===t.length&&D()},disabled:n<=1,"data-testid":"calculator-floating-rate-toggle"})]}),e&&(0,i.jsxs)("div",{className:eQ().dataContainer,children:[t.map((e,a,l)=>{let o=W.floatingRateStartDay(1,n-1,e.startDay),c=W.rate(b.MK,b.Mp,e.rate,!0),d=W.existedStartDay(l,a,e.startDay),D=o||d;return(0,i.jsxs)("div",{className:(0,r.A)(eQ().dataRow,D||c?eQ().hasError:void 0),children:[!M&&(0,i.jsxs)("h3",{className:eQ().rateLabel,children:["Ставка ",a+1]}),(0,i.jsxs)("div",{className:(0,r.A)(eQ().fieldGroup,D?eQ().hasError:void 0),children:[(0,i.jsx)(_.Y,{value:e.startDay,label:"День, с которого действует ставка",onChange:e=>(function(e,a){let n=[...t],i={...n[e],startDay:a};n.splice(e,1,i),s(n)})(a,e),onBlur:()=>p(e.startDay),withoutControls:!0,state:D?"error":void 0,disabled:0===a,decimalsCount:0,decimals:"never",variant:M?"primary":"secondary"}),D&&(0,i.jsx)("p",{className:eQ().message,children:null!=o?o:d})]}),(0,i.jsxs)("div",{className:(0,r.A)(eQ().fieldGroup,c?eQ().hasError:void 0),children:[(0,i.jsx)(_.Y,{value:e.rate,label:eR,rightLabel:"%",onChange:e=>(function(e,a){let n=[...t],i={...n[e],rate:a};n.splice(e,1,i),s(n)})(a,e),onBlur:()=>m(e.rate),withoutControls:!0,state:c?"error":void 0,decimalsCount:2,variant:M?"primary":"secondary"}),c&&(0,i.jsx)("p",{className:eQ().message,children:c})]}),(0,i.jsx)(x.Button,{className:eQ().deleteButton,onClick:()=>(function(e){let a=[...t],[{startDay:n,rate:i}]=a.splice(e,1);0===e&&(a[0].startDay=1),s(a),(0,N.oA)({...y(u),eventLabel:"".concat(n,"_").concat(i),eventAction:"click__icon__delete__form"})})(a),disabled:1===l.length,iconLeft:(0,i.jsx)(eS,{}),appearance:"ghost",shape:"icon",size:"s","data-testid":"calculator-floating-rate-delete-button"})]},a)}),(0,i.jsx)(x.Button,{onClick:D,disabled:t.length>=5,className:eQ().button,iconLeft:(0,i.jsx)(l.A9R,{}),appearance:"ghost",children:eF})]})]})}function eW(){return(0,i.jsxs)(i.Fragment,{children:["Фиксированная — не меняется в течение всего периода вклада.",(0,i.jsx)("br",{}),"Плавающая — может меняться и зависит от срока"]})}var eP=a(82220),eG=a.n(eP);let eq="Сумма вклада",eJ="Срок",eV="Период",eH="Ставка",eZ="Капитализация",eK="Периодичность выплат",eX="#calculator-form";function e$(){var e,t;let{amount:a,dateStart:n,term:l,period:s,paymentFrequency:o,rate:r,capitalization:u,isValid:M,onChangeDateStart:d,onChangeAmount:D,onChangeTerm:p,onChangePeriod:m,onChangePaymentFrequency:y,onChangeRate:v,onChangeCapitalization:E,onRecalculate:I,pageUrl:S}=el(),Y=(0,T.q)("l"),Q=null!=(e=b._p.find(e=>{let{value:t}=e;return t===s}))?e:b._p[0],U=null!=(t=b.H5.find(e=>{let{value:t}=e;return t===o}))?t:b.H5[0],R=(0,c.useCallback)(e=>{var t;let a=null!=(t=b.SR[s].find(t=>{let{id:a}=t;return e===a}))?t:b.SR[s][0];(0,N.oA)({...C((0,j.y)(a.label),a.id,S)}),p(Number(e))},[p,S,s]),F=W.amount(b.Ke,b.wU,a),B=W.term(1,b.tq[s],s,l,!Y),P=W.rate(b.MK,b.Mp,r),G=(0,z.A)(100,10);function q(){(0,f.e)(ev,{offset:G,position:"top",delay:100})}function J(e){"Enter"===e.key&&M&&(e.currentTarget.blur(),I(),q())}let V=(0,c.useCallback)(()=>{(0,N.oA)({...C((0,j.y)(eq),a,S)})},[a,S]),H=(0,c.useCallback)(()=>{(0,N.oA)({...C((0,j.y)(eJ),l,S)})},[l,S]),Z=(0,c.useCallback)(()=>{(0,N.oA)({...C((0,j.y)(eV),(0,j.y)(Q.label),S)})},[Q,S]),K=(0,c.useCallback)(()=>{(0,N.oA)({...C((0,j.y)(eH),r,S)})},[r,S]),X=(0,c.useCallback)(()=>{(0,N.oA)({...k((0,j.y)(eZ),S)})},[S]),$=(0,c.useCallback)(e=>{(0,N.oA)({...O((0,j.y)(eZ),e,S)}),E(e)},[E,S]),ee=(0,c.useCallback)(()=>{(0,N.oA)({...C((0,j.y)(eK),U.label,S)})},[S,U]);return(0,i.jsxs)("section",{id:eX,className:eG().container,children:[(0,i.jsx)("h2",{className:eG().title,children:"Укажите параметры"}),(0,i.jsxs)("div",{className:eG().row,children:[(0,i.jsxs)("div",{className:eG().fieldGroup,children:[(0,i.jsx)(_.Y,{label:eq,onKeyDown:J,value:a,onChange:D,withoutControls:!0,onBlur:V,unit:b.p9,state:F?"error":void 0,decimalsCount:0,decimals:"never"}),F&&(0,i.jsx)("p",{className:eG().message,children:F})]}),(0,i.jsx)(L.l,{value:n,onChange:d})]}),(0,i.jsxs)("div",{className:eG().period,children:[(0,i.jsxs)("div",{className:eG().periodRow,children:[(0,i.jsxs)("div",{className:eG().fieldGroup,children:[(0,i.jsx)(_.Y,{label:eJ,onKeyDown:J,value:l,onChange:p,onBlur:H,withoutControls:!0,state:B?"error":void 0,decimalsCount:0,decimals:"never"}),B&&(0,i.jsx)("p",{className:eG().message,children:B})]}),(0,i.jsx)(g.l,{options:b._p,label:eV,onChange:function(e){let t=null==e?void 0:e.value;void 0!==t&&t!==s&&m(t)},onBlur:Z,value:Q,size:"m"})]}),(0,i.jsx)("div",{className:eG().periodChips,children:(0,i.jsx)(w.C,{chips:b.SR[s],value:l,onChipClick:R})})]}),(0,i.jsx)(g.l,{value:U,options:b.H5,onChange:function(e){let t=null==e?void 0:e.value;void 0!==t&&t!==o&&y(t)},onBlur:ee,size:"m",label:eK}),(0,i.jsxs)("div",{className:eG().fieldGroup,children:[(0,i.jsx)(_.Y,{label:eH,onKeyDown:J,value:r,onChange:v,onBlur:K,withoutControls:!0,unit:"%",state:P?"error":void 0,decimalsCount:2}),P&&(0,i.jsx)("p",{className:eG().message,children:P})]}),(0,i.jsx)(eB,{}),(0,i.jsxs)("div",{className:eG().capitalizationRow,children:[(0,i.jsxs)("div",{className:eG().capitalizationLabelContainer,children:[(0,i.jsx)("p",{className:eG().capitalizationLabel,children:"Капитализация"}),(0,i.jsx)(A.Y,{text:"Капитализация — начисленные проценты добавляются к телу вклада. Сумма вклада растет c каждой выплатой",onOpen:X})]}),(0,i.jsx)(h.l,{value:u,onChange:$,"data-testid":"calculator-capitalization-toggle"})]}),(0,i.jsx)(x.Button,{variant:"secondary",className:eG().calculateButton,disabled:!M,onClick:function(){I(),q()},children:"Рассчитать"})]})}var e0=a(97390),e5=a(8561),e1=a(80228),e4=a(9499),e2=a(52619),e3=a.n(e2),e9=a(61126),e6=a(93018),e8=a(69093),e7=a(35896),te=a(90596),tt=a(38745),ta=a(64765);let tn=e=>(0,i.jsx)(e3(),{...e});function ti(e){var t,a,n,l;let{supportData:s,pageUrl:o,faqData:r,tags:u,region:M,town:d}=e,D=(0,T.q)("l"),j=(0,c.useMemo)(()=>(null==r?void 0:r.faqs)?(e=>{let{data:t=[],tags:a,tag:n,region:l=null,town:s=null}=e;return[...t.map(e=>({question:e.question,text:(0,i.jsx)(te.x,{data:[{type:"html",data:{html:e.answer}}]}),answer:(0,i.jsx)(te.x,{data:[{type:"html",data:{html:e.answer}}]})})),(e=>{let{tags:t,region:a,town:n}=e,l=(e=>{let{tags:t,region:a,town:n}=e;return t.filter(e=>{let{display_in_links_block:t}=e;return"1"===t}).sort((e,t)=>Number(e.position)-Number(t.position)).map(e=>({id:e.id,name:(0,ta.G)(e)?"Все вклады":e.name,url:(0,e7.E)("deposits",e,a,n),disableLink:!1}))})({tags:t.length&&t||[],region:a,town:n});return{question:"Виды вкладов",answer:(0,i.jsx)(tt.B,{data:l})}})({tags:a,tag:n,region:l,town:s})].filter(Boolean)})({data:r.faqs,tags:u,region:M,town:d}):[],[null==r?void 0:r.faqs,M,u,d]),p=(null==(n=r.readAllText)?void 0:n.text)?null==(l=r.readAllText)?void 0:l.text:D?"Читать все вопросы про вклады":"Все вопросы про вклады",m=(null==(t=r.readAllText)?void 0:t.link)?null==(a=r.readAllText)?void 0:a.link:"".concat((0,e9.env)("NEXT_PUBLIC_BASE_URL"),"/help");return(0,i.jsxs)("section",{children:[(0,i.jsx)(e8.V,{isSavingAccount:!1,eventCategory:o,productId:"",withNewMarkup:!0}),(0,i.jsx)(e6.w,{supportData:s}),(0,i.jsx)(e4.Y,{sectionTitle:"",Link:tn,dataLayerPush:N.oA,questions:j,eventCategory:"deposit_calculator_support_block",href:m,checkAllText:p})]})}function tl(e){let{discounts:t,banks:a,initialAnotherDeposits:n,initialPlatformDeposits:l,platformProducts:s,nonPlatformProducts:o,tagPlatformDeposits:r,tagAnotherDeposits:u,initialAllDepositsLength:M,initialCurrentDepositsLength:d,bounds:D,pageUrl:N,questions:j,supportData:T,faqData:p,depositTags:m,allExtraInfo:x}=e,{amount:w,term:_,period:g,termInDays:h,dateStart:L,rate:A,floatingRate:y,capitalization:C}=ei(),{isOfferFilterApplied:k}=el(),{effectiveRate:O}=eO(Y.A.OnceAMonth),{bonuses:v,isHiddenPromo:f,isPlusFiveBonus:z,isOldUser:b}=(0,e1.s)(t),[E,I]=(0,c.useState)(z||b),S=(0,c.useCallback)(e=>{I(e)},[]),Q=e5.A.getItem("user_region"),U=e5.A.getItem("user_town");return(0,i.jsxs)(eN.$V,{banks:a,isCalculatorOfferFilter:!0,useInitialDataAsErrorFallback:!0,deferOfferFiltering:!!e.bank&&!k,isBankDepositCalculator:!!e.bank,initialAnotherDeposits:n,initialPlatformDeposits:l,platformProducts:s,nonPlatformProducts:o,tagPlatformDeposits:r,tagAnotherDeposits:u,initialAllDepositsLength:M,initialCurrentDepositsLength:d,allExtraInfo:x,bounds:D,discounts:v,isDiscount:E,isHiddenPromo:f,isOldUser:b,isPlusFiveBonus:z,amount:w,term:_,period:g,termInDays:h,dateStart:L,rate:O,inputRate:A,floatingRate:y,withCapitalization:C,withRefill:!1,increaseSort:!1,initialSort:!0,sortType:e0.r3.RatePlusBonus,partnerId:null,children:[(0,i.jsx)(eg,{pageUrl:N,questions:j,onChangeIsDiscount:S,isBankDepositCalculator:!!e.bank}),(0,i.jsx)(ti,{supportData:T,pageUrl:N,faqData:p,tags:m,region:Q,town:U})]})}var ts=a(16534),to=a.n(ts);function tr(e){let{depositsTitle:t,depositsDescription:a,pageUrl:n,h1:x,subtitle:w,bank:_,jsonLd:g}=e,{asPath:h,push:L}=(0,p.T)(),A=(0,T.q)("l"),{isCollapsed:y,toggle:C}=(0,m.z)(),k=!y,O=(0,c.useMemo)(()=>_?[{label:"Вклады",href:"/vklady"},{label:"Банки",href:"/banki"},{label:_.name,href:"/banki/".concat(_.url)},{label:"Калькулятор вкладов"}]:[{label:"Калькулятор вкладов"}],[_]),v=(0,c.useCallback)((e,t)=>{var a;let i=(null==e||null==(a=e.currentTarget)?void 0:a.textContent)?(0,j.y)(e.currentTarget.textContent):"glavnaya";(0,N.oA)({event:"data-event",eventAction:"click_link_".concat(i),eventCategory:n}),t&&L(t)},[n,L]);return(0,i.jsxs)("main",{className:to().page,children:[(0,i.jsx)(d.I,{title:t,description:a,path:h}),g,(0,i.jsxs)(D.J,{children:[(0,i.jsx)(u.A,{onClick:v,isMobile:!A,items:O}),(0,i.jsxs)("div",{className:to().headingText,children:[(0,i.jsxs)(s.D,{type:"h1",className:to().title,onClick:()=>{A||C()},children:[x,(0,i.jsx)(l.j8g,{className:(0,r.A)(to().icon,k&&to().opened)})]}),(0,i.jsx)(o.E,{className:(0,r.A)(to().subtitle,k&&to().opened),size:"14",children:w})]})]}),(0,i.jsxs)(en,{pageUrl:n,deferOfferFiltering:!!_,children:[(0,i.jsx)("div",{className:to().row,children:(0,i.jsx)(D.J,{children:(0,i.jsxs)("div",{className:to().calculatorContainer,children:[(0,i.jsx)(e$,{}),(0,i.jsxs)("div",{children:[(0,i.jsx)(eE,{pageUrl:n}),(0,i.jsx)(M.A,{className:to().banner,eventCategory:n})]})]})})}),(0,i.jsx)(tl,{...e})]})]})}},49663:e=>{e.exports={caption:"TextCaption_caption__TOL53"}},50705:(e,t,a)=>{"use strict";a.d(t,{M:()=>i,h:()=>n});let n=["moskva","sankt-peterburg"],i=[...n,"sevastopol"]},51003:e=>{e.exports={container:"DepositsFaqList_container__Be72_",choice:"DepositsFaqList_choice__WMUIE",choiceOption:"DepositsFaqList_choiceOption__lc67z"}},54226:(e,t,a)=>{"use strict";a.d(t,{$V:()=>N,VG:()=>D,VQ:()=>j});var n=a(95155),i=a(12115),l=a(46828),s=a(5195),o=a(68850),r=a(88346),c=a(97390);let u=(0,i.createContext)(void 0),M={},d=[];function D(e){return!!e.isNotAmount||!!e.isTermEmpty||!!e.computeData}function N(e){let{children:t,banks:a,initialAnotherDeposits:D,initialPlatformDeposits:N,isCalculatorOfferFilter:j=!1,useInitialDataAsErrorFallback:T=!1,deferOfferFiltering:p=!1,isBankDepositCalculator:m=!1,platformProducts:x,nonPlatformProducts:w,tagPlatformDeposits:_,tagAnotherDeposits:g,initialAllDepositsLength:h,initialCurrentDepositsLength:L,allExtraInfo:A,bounds:y,discounts:C,amount:k,period:O,term:v,termInDays:f,dateStart:z,rate:b,inputRate:E,paymentFrequency:I,floatingRate:S,isDiscount:Y,isHiddenPromo:Q,isPlusFiveBonus:U,isOldUser:R,increaseSort:F,sortType:B,initialSort:W,withRefill:P,withCapitalization:G,activeBanks:q,partnerId:J,specialDeposits:V,facetKey:H,withLeadGenDeposits:Z,withAnotherDeposits:K}=e,X=null!=A?A:M,$=void 0!==g||void 0!==w,ee=(0,i.useMemo)(()=>{var e;return m&&(x||w)?[...null!=(e=null==x?void 0:x.map(String))?e:[],...null!=w?w:[]]:d},[m,w,x]),et=(0,i.useMemo)(()=>{let e=O===l.A.Day?{term:null!=f?f:v,termUnit:"DAY"}:O===l.A.Month?{term:v,termUnit:"MONTH"}:{term:12*v,termUnit:"MONTH"};return{amount:String(k),dateStart:z,isCalculatorOfferFilter:j,currency:r.p9,withRefill:P,filterAdditionalSettings:[s.G.deposits],importantDeposits:ee,initialSort:W,order:F?c.ZN.Desc:c.ZN.Asc,sortType:B,isDiscount:Y,rate:b,inputRate:E,paymentFrequency:I,floatingRate:S,...e,withCapitalization:G,activeBanks:q}},[k,q,z,S,ee,E,F,W,Y,j,I,O,b,B,v,f,G,P]),ea=(0,i.useMemo)(()=>{let e=m&&{platformProducts:x,nonPlatformProducts:w,tagPlatformDeposits:_,tagAnotherDeposits:g,initialAllDepositsLength:h,initialCurrentDepositsLength:L};return{initialAnotherDeposits:D,initialPlatformDeposits:N,bounds:y,isPlusFiveBonus:U,isOldUser:R,filter:et,banks:a,allExtraInfo:m?X:M,anotherDepositsInCount:m,discounts:C,specialDeposits:V,facetKey:H,withLeadGenDeposits:Z,withAnotherDeposits:m&&(null!=K?K:$),useInitialDataAsErrorFallback:T,deferOfferFiltering:p,...e}},[X,a,y,C,H,et,h,D,L,N,m,$,R,U,w,x,V,g,_,T,p,K,Z]),{platformDeposits:en,anotherDeposits:ei,depositLists:el,advantagesDepositLists:es,isLoading:eo,handleChangeAdvantagesDepositsList:er}=(0,o.p)(ea),ec=(0,i.useMemo)(()=>({platformDeposits:en,anotherDeposits:ei,depositLists:el,advantagesDepositLists:es,isHiddenPromo:Q,isOldUser:R,discounts:C,banks:a,isPlusFiveBonus:U,onChangeAdvantagesDepositsList:er,partnerId:J,isLoading:eo}),[es,ei,a,el,C,er,Q,eo,R,U,J,en]);return(0,n.jsx)(u.Provider,{value:ec,children:t})}function j(){let e=(0,i.useContext)(u);if(!e)throw Error("Out of context");return e}},56235:e=>{e.exports={chartContainer:"ProfitChart_chartContainer__yFUuB",element:"ProfitChart_element__lr9Yj",deposit:"ProfitChart_deposit__I5C8G",profit:"ProfitChart_profit__ZDnh2",descriptionContainer:"ProfitChart_descriptionContainer__9JbHu",decriptionRow:"ProfitChart_decriptionRow__DyF9u",descriptionMark:"ProfitChart_descriptionMark__ws9zL",descriptionLabel:"ProfitChart_descriptionLabel__xYa9T",descriptionValue:"ProfitChart_descriptionValue__9KJ9h"}},57990:(e,t,a)=>{Promise.resolve().then(a.bind(a,87015)),Promise.resolve().then(a.bind(a,49155)),Promise.resolve().then(a.t.bind(a,41402,23)),Promise.resolve().then(a.bind(a,75937)),Promise.resolve().then(a.bind(a,46586))},61095:(e,t,a)=>{"use strict";a.d(t,{I:()=>i});var n=a(12115);let i=()=>{let[e,t]=(0,n.useState)(!1),[a,i]=(0,n.useState)(!1),l=(0,n.useRef)({x:0,y:0}),s=(0,n.useCallback)(e=>{i(!0),l.current={x:e.screenX,y:e.screenY},l.current&&l.current.x===e.screenX&&l.current.y===e.screenY&&t(!1)},[]);return{isDragged:e,isTouched:a,onMouseDown:s,onMouseMove:(0,n.useCallback)(e=>{l.current&&l.current.x===e.screenX&&l.current.y===e.screenY||(t(!0),l.current={x:e.screenX,y:e.screenY})},[]),resetState:(0,n.useCallback)(()=>{t(!1),i(!1)},[])}}},64419:e=>{e.exports={depositCard:"DepositCard_depositCard__BSk6a",tag:"DepositCard_tag__kGJab",white:"DepositCard_white__DvXfN",header:"DepositCard_header__M8Gz5",nameWrapper:"DepositCard_nameWrapper__nrzkX",logo:"DepositCard_logo__u8YGh",logoPlaceholder:"DepositCard_logoPlaceholder__cs5Kl",text:"DepositCard_text__C4cvk",bankName:"DepositCard_bankName__Trjsx",name:"DepositCard_name__Yy7_2",content:"DepositCard_content__61z5G",row:"DepositCard_row__e7_Oe","cols-2":"DepositCard_cols-2__oE7wD",divider:"DepositCard_divider__UPE0W",columnValue:"DepositCard_columnValue__WqSFy",termValue:"DepositCard_termValue__1jktz",margined:"DepositCard_margined__ONtRE",termTitle:"DepositCard_termTitle__baOgb",termCaption:"DepositCard_termCaption__6YAU1",label:"DepositCard_label__3LcRI",caption:"DepositCard_caption__xsq1B",buttons:"DepositCard_buttons__uOQdR",tags:"DepositCard_tags__k2ffG",red:"DepositCard_red__pqGB1",green:"DepositCard_green__C_yJ5",orange:"DepositCard_orange__6bvpI",purple:"DepositCard_purple__HYuGL",blue:"DepositCard_blue__gS0cj",hint:"DepositCard_hint__medrL",desktop:"DepositCard_desktop__u2ZgC",tablet:"DepositCard_tablet__BQYl1","mobile-tablet":"DepositCard_mobile-tablet__1_Zxz",mobile:"DepositCard_mobile__eIDxe",aligned:"DepositCard_aligned__vBy0J"}},64765:(e,t,a)=>{"use strict";a.d(t,{G:()=>n});let n=e=>!e||(null==e?void 0:e.id)==="DEFAULT"||(null==e?void 0:e.id)==="vse_vkladi"||(null==e?void 0:e.url)==="DEFAULT"||(null==e?void 0:e.url)==="vse_vkladi"},66869:(e,t,a)=>{"use strict";a.d(t,{c:()=>r});var n=a(6425),i=a(19927),l=a(72908),s=a(73520);let o=Object.freeze({nominative:l.j3,"nominative-short":l.eV,"genitive-short":l.bG,genitive:l.GI}),r=(e,t)=>{let{type:a,value:l}=e,{prefix:r,form:c="genitive-short",isLadderDeposit:u=!1}=null!=t?t:{};if(a===n.s.TERMLESS)return{totalMonths:0,termString:"Бессрочно",totalDays:0};let M=a===n.s.DAY?l:a===n.s.MONTH?Math.round(l*i.L):a===n.s.YEAR?Math.round(365*l):30,d=Math.floor(M/365),D=Math.max(Math.round(M%365/i.L),d>0||M<30?0:1),N=[r],j=o[c];return u?N.push((0,s.l6)(M,j.DAY)):(d&&N.push((0,s.l6)(d,j.YEAR)),D&&N.push((0,s.l6)(D,j.MONTH)),d||D||N.push((0,s.l6)(M,j.DAY))),{termString:N.filter(Boolean).join(" "),totalMonths:Math.max(1,Math.round(M/i.L)),totalDays:M}}},68749:(e,t,a)=>{"use strict";a.d(t,{I:()=>l});var n=a(95155),i=a(61126);let l=(0,a(12115).memo)(e=>{let{title:t,description:a,productId:l,path:s,noIndex:o}=e,r=s;s.includes("?")&&(s=s.split("?")[0]),(0===s.indexOf("/debetovye_karty")||0===s.indexOf("/vklady")||0===s.indexOf("/depozitnyj-kalkulyator")||0===s.indexOf("/banki"))&&(r=s.split("&")[0]);let c=(0,i.env)("NEXT_PUBLIC_BASE_URL");return(0,n.jsxs)("head",{children:[(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"},"viewport"),(0,n.jsx)("link",{rel:"icon",href:"".concat(c,"/icons/favicon/favicon-32x32.png")},"icon"),t&&(0,n.jsx)("title",{children:t},"title"),a&&(0,n.jsx)("meta",{name:"description",content:a},"description"),l&&(0,n.jsx)("script",{dangerouslySetInnerHTML:{__html:"dataLayer = [{'view_product_id': '".concat(l,"'}];")}},"viewProduct"),o&&(0,n.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,n.jsx)("meta",{property:"og:url",content:"".concat(c).concat(s||"")},"og:url"),(0,n.jsx)("meta",{property:"og:title",content:t},"og:title"),(0,n.jsx)("meta",{property:"og:description",content:a},"og:description"),(0,n.jsx)("meta",{property:"og:site_name",content:"Финуслуги"},"og:site_name"),(0,n.jsx)("meta",{property:"og:image",content:"".concat(c,"/icons/favicon/favicon-32x32.png")},"og:image"),(0,n.jsx)("meta",{property:"og:type",content:"website"},"og:type"),(0,n.jsx)("link",{rel:"canonical",href:"".concat(c).concat(r)},"canonical"),(0,n.jsx)("link",{rel:"preload",href:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i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OTk1DQoJcy0wLjY5NDAwMDIsMi41NTgxMDE3LTIuMTgwOTk5OCwyLjU1ODEwMTdWMzguMDQwNjk5eiBNMTA5LjY5MDAwMjQsMzEuNjQwMTk5Nw0KCWMtMi4yMzc5OTksMC0zLjU0MDAwMDksMS41NDM1MDA5LTMuNTQwMDAwOSwzLjgwODU5OTVjMCwyLjI2NDk5OTQsMS4zMDIwMDIsMy44NjY4MDIyLDMuNTQwMDAwOSwzLjg2NjgwMjINCglzMy41NDAwMDA5LTEuNjAwNDAyOCwzLjU0MDAwMDktMy44NjY4MDIyYzAtMi4yNjY0OTg2LTEuMzAyMDAyLTMuODEzOTk5Mi0zLjU0MDAwMDktMy44MTM5OTkyVjMxLjY0MDE5OTd6IE0xMTkuODYyOTk5LDM5LjEzMTE5ODkNCgloMS40MTYwMDA0bDEuNTg1OTk4NS0yLjg4ODk5OTlsMS43MDAwMDQ2LDIuODg4OTk5OWgxLjQxMDk5NTVsLTIuMjY2OTk4My0zLjgyODg5OTRsMi4xMjQwMDA1LTMuNDgzMDk5aC0xLjQxNjAwMDQNCglsLTEuNDkxOTk2OCwyLjYwNTUwMTJsLTEuNTE0OTk5NC0yLjYwNTUwMTJIMTIwbDIuMDMzOTk2NiwzLjQ0MUwxMTkuODYyOTk5LDM5LjEzMTE5ODl6Ii8+DQo8L3N2Zz4NCg==",as:"image",type:"image/svg+xml"},"logoPreload")]})});l.displayName="HeadMeta"},68850:(e,t,a)=>{"use strict";a.d(t,{V:()=>u,p:()=>M});var n=a(12115),i=a(99315),l=a(83419),s=a(50769),o=a(97390),r=a(5195);let c={initialSort:!0,sortType:o.r3.RatePlusBonus,isDiscount:!1,order:o.ZN.Asc,currency:"",withRefill:!1,withCapitalization:!1,term:0,isCalculatorOfferFilter:!0,useProductAmountForBonus:!0,filterAdditionalSettings:[r.G.deposits]};function u(e){return!!e.isNotAmount||!!e.isTermEmpty||!!e.computeData}function M(e){let t=(0,n.useRef)(e),{toggles:a}=(0,i.zn)(),{filter:o,withAnotherDeposits:r=!0,withSavingAccounts:M=!1,facetKey:d,withLeadGenDeposits:D=!1,banks:N,tagPlatformDeposits:j,tagAnotherDeposits:T,tagNewPlatformDeposits:p,skipClientFetch:m=!1,useInitialDataAsErrorFallback:x=!1,deferOfferFiltering:w=!1}=e,_=(0,n.useMemo)(()=>w?{...c,importantDeposits:o.importantDeposits,activeBanks:o.activeBanks}:o,[w,o]);t.current={...e,filter:_};let g=void 0!==j||void 0!==T||void 0!==p,[h,L]=(0,n.useState)(null!=j?j:[]),[A,y]=(0,n.useState)(null!=T?T:[]),[C,k]=(0,n.useState)(null!=p?p:[]),[O,v]=(0,n.useState)([]),[f,z]=(0,n.useState)(w||!g),[b,E]=(0,n.useState)(!g&&!m),I=(0,n.useMemo)(()=>({...e,filter:_,platformDeposits:h,anotherDeposits:A,newPlatformDeposits:C,getOnlyInitialData:f,leadGenDeposits:O}),[e,_,h,A,C,f,O]),[S,Y]=(0,n.useState)(()=>(0,s.U)(I)),[Q,U]=(0,n.useState)(S.platform.filter(e=>u(e)));return(0,n.useEffect)(()=>{Y((0,s.U)(I))},[I]),(0,n.useEffect)(()=>{if(g||m)return void E(!1);let e=!0;return E(!0),(0,l.d)({withAnotherDeposits:r,withSavingAccounts:M,facetKey:d,withLeadGenDeposits:D,banks:N}).then(a=>{let{platform:n,another:i,leadGen:l}=a;if(!e)return;let o=(0,s.U)({...t.current,platformDeposits:n,anotherDeposits:i,newPlatformDeposits:C,getOnlyInitialData:!1,leadGenDeposits:l});L(n),y(i),v(l),Y(o),U(o.platform.filter(e=>u(e))),z(!1),E(!1)}).catch(()=>{e&&x&&E(!1)}),()=>{e=!1}},[d,g,m,r,D,M,N,a,x]),(0,n.useEffect)(()=>{g&&(L(null!=j?j:[]),y(null!=T?T:[]),k(null!=p?p:[]),z(!1))},[g,T,p,j]),{platformDeposits:h,anotherDeposits:A,depositLists:S,advantagesDepositLists:Q,isLoading:b,handleChangeAdvantagesDepositsList:(0,n.useCallback)(e=>{U(e)},[])}}},69093:(e,t,a)=>{"use strict";a.d(t,{V:()=>x});var n=a(95155),i=a(15239),l=a(12115),s=a(4678),o=a(98742),r=a(19559),c=a(29132),u=a(78916),M=a(61095),d=a(77281),D=a.n(d);let N={src:"/deposits/_next/static/media/banner-2.b6d16a7d.svg",height:208,width:300,blurWidth:0,blurHeight:0},j={src:"/deposits/_next/static/media/banner-3.adc4440a.svg",height:208,width:300,blurWidth:0,blurHeight:0},T={src:"/deposits/_next/static/media/banner-6.ecb80fa6.svg",height:208,width:301,blurWidth:0,blurHeight:0},p={src:"/deposits/_next/static/media/banner-7.8a2298b9.svg",height:230,width:301,blurWidth:0,blurHeight:0},m=e=>{let{item:t,eventCategory:a,eventLabel:s,withNewMarkup:o}=e,c=(0,l.useRef)(null);(0,u.A)({itemRef:c,eventAction:"show_steps_to_open_step_".concat(t.id),eventCategory:a,eventLabel:s,disabled:!o});let{isDragged:d,isTouched:N,onMouseDown:j,onMouseMove:T,resetState:p}=(0,M.I)();return(0,n.jsxs)("div",{className:D().bannerCard,ref:c,onMouseDown:j,onMouseMove:T,onMouseLeave:p,onMouseUp:p,onMouseUpCapture:()=>!(d&&N)&&void(0,r.oA)({eventCategory:a,eventLabel:s,eventAction:"click_steps_to_open_step_".concat(t.id)}),children:[(0,n.jsxs)("span",{className:D().badge,children:["Шаг ",t.id]}),(0,n.jsx)("p",{className:D().text,children:t.text}),(0,n.jsx)(i.default,{width:300,height:208,alt:"banner"+t.id,src:t.image})]})},x=e=>{let{isSavingAccount:t,eventCategory:a,productId:i,withNewMarkup:l}=e,r=(0,c.q)("l"),u=[{id:1,image:j,text:"Выберите ".concat(t?"накопительный счёт":"вклад"," на витрине Финуслуг и нажмите \xabОткрыть онлайн\xbb")},{image:N,id:2,text:"Привяжите Госуслуги и подтвердите документы через Тинькофф ID/Alfa ID или у представителя Финуслуг"},{image:p,id:3,text:"Отправьте заявку на ".concat(t?"накопительный счет":"вклад",". Пополните вклад через личный кабинет на Финуслугах")},{image:T,id:4,text:"Управляйте ".concat(t?"накопительным счетом":"вкладом"," в личном кабинете ").concat(t?"банка":"Финуслуг")}];return(0,n.jsxs)("section",{id:s.I7,className:D().container,children:[(0,n.jsxs)("h2",{className:D().title,children:["Как открыть ",t?"счет":"вклад"," на Финуслугах"]}),(0,n.jsx)("div",{className:D().sliderContainer,children:(0,n.jsx)(o.Ey,{width:r?342:300,height:r?384:380,spaceBetween:r?40:16,sliderPerView:r?3:1,hideNavigationControl:!r,overflowVisible:!r,classSliderWrapper:D().sliderWrapper,startDelay:1e4,isDependsOnWidth:!1,children:u.map(e=>(0,n.jsx)(m,{item:e,eventCategory:a,eventLabel:i,withNewMarkup:l},e.id))})})]})}},74357:e=>{e.exports={notFound:"OffersNotFound_notFound__itCCB",icon:"OffersNotFound_icon__PCljK",text:"OffersNotFound_text__13ylR",button:"OffersNotFound_button__Dl1Ah"}},76989:e=>{e.exports={container:"DepositList_container__SnVES",content:"DepositList_content__6I5Gn",title:"DepositList_title__oU_hN",button:"DepositList_button__hYNY5",countLabel:"DepositList_countLabel__dlCNr"}},77281:e=>{e.exports={container:"DepositDetailSteps_container__uD6OU",title:"DepositDetailSteps_title__uTNGG",sliderContainer:"DepositDetailSteps_sliderContainer__9J2T_",sliderWrapper:"DepositDetailSteps_sliderWrapper__KCsL4",bannerCard:"DepositDetailSteps_bannerCard__p0QUJ",badge:"DepositDetailSteps_badge__0I3_m",text:"DepositDetailSteps_text__PXCdW"}},80228:(e,t,a)=>{"use strict";a.d(t,{s:()=>o});var n=a(12115),i=a(44154),l=a(95852),s=a(51442);function o(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=(0,s.OR)(),r=(null==o?void 0:o["auth.gtm_customer_id"])||null,[c]=(0,n.useState)(a&&null!=e?e:[]),[u,M]=(0,n.useState)(!1),[d,D]=(0,n.useState)(!0),[N,j]=(0,n.useState)(!1),[T,p]=(0,n.useState)(t&&!!r);return(0,n.useEffect)(()=>{r&&a&&(p(!0),(0,i.P)(r).then(e=>{let{data:t}=e;(!t||(null==t?void 0:t.features))&&t&&!t.features.includes(l.Q.SHOW_ADDITIONAL_PERCENT_BONUS)&&(D(!1),j(!0),M(!0))}).finally(()=>{p(!1)}))},[r,a]),{customerId:r,isOldUser:N,isPlusFiveBonus:d,isHiddenPromo:u,isDiscountsLoading:T,bonuses:c}}},82220:e=>{e.exports={container:"DepositCalculator_container__RFlV8",title:"DepositCalculator_title__4NVmh",row:"DepositCalculator_row__NQF6t",period:"DepositCalculator_period__enjB2",periodRow:"DepositCalculator_periodRow__gv_kR",periodChips:"DepositCalculator_periodChips__ofm9w",input:"DepositCalculator_input__wtbnz",fieldGroup:"DepositCalculator_fieldGroup__KRbMY",message:"DepositCalculator_message__sj_Te",capitalizationRow:"DepositCalculator_capitalizationRow__YjiBW",capitalizationLabel:"DepositCalculator_capitalizationLabel__L6u1w",capitalizationLabelContainer:"DepositCalculator_capitalizationLabelContainer__zT9_r",calculateButton:"DepositCalculator_calculateButton__3V57i"}},89726:(e,t,a)=>{"use strict";a.d(t,{r:()=>u});var n=a(95155),i=a(53548),l=a(15239);let s={src:"/deposits/_next/static/media/search.b3dc20e8.svg",height:192,width:212,blurWidth:0,blurHeight:0};var o=a(703),r=a(74357),c=a.n(r);let u=e=>{let{dataQa:t,onChangeParams:a}=e;return(0,n.jsx)(o.J,{children:(0,n.jsxs)("div",{className:c().notFound,"data-qa":t,children:[(0,n.jsx)(l.default,{className:c().icon,src:s,alt:"Иллюстрация — нет найденных предложений",unoptimized:!0}),(0,n.jsx)("p",{className:c().text,children:"К сожалению, мы не нашли предложений с такими параметрами"}),(0,n.jsx)(i.Button,{variant:"secondary",className:c().button,onClick:a,children:"Изменить параметры"})]})})}},90244:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(12115),i=a(54226),l=a(92980);function s(e){let{advantagesDepositLists:t,pageOffset:a,paginationItemsCount:s,depositLists:o,isCombinedList:r=!1,onChangeAdvantagesDepositsList:c,onChangeIsDiscount:u}=e,[M,d]=(0,n.useState)(()=>{let e=null!=s?s:t.length;return a?Math.min(e,a):e}),{isLoading:D}=(0,l.M)(),N=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=o.platform.filter(e=>(0,i.VG)(e)),t=o.leadGen.filter(e=>(0,i.VG)(e)),n=r?[...e,...t]:e;c(n);let l=null!=s?s:n.length;d(a?Math.min(a,l):l);let M=n.some(e=>e.hasDiscount);N.current!==M&&(N.current=M,u(M))},[o,r,c,u,a,s]),{isLoading:D,renderedAdvantagesDepositsCount:M,showMore:(0,n.useCallback)(()=>{d(e=>e+a)},[a])}}},90596:(e,t,a)=>{"use strict";a.d(t,{x:()=>M});var n=a(95155),i=a(2821),l=a(15239);let s=["finuslugi.ru","inguru.dev","moex.com"],o=e=>e?e=e.replace(/href="(.*?)"/gi,(e,t)=>"".concat(e).concat((e=>e.includes("//")&&!s.find(t=>e&&e.indexOf(t)>=0))(t)?' rel="nofollow"':"")):"";var r=a(98127),c=a.n(r);let u=e=>{e.data.forEach((t,a)=>{"header"==t.type&&(e.headerBlocksCount++,3==e.headerBlocksCount&&("banner"==e.data[a-1].type&&(e.banner=e.data.splice(a-1,1)),"banner"==e.data[a+1].type&&(e.banner=e.data.splice(a+1,1))),e.banner&&4==e.headerBlocksCount&&e.data.splice(a,0,e.banner[0]))})},M=e=>{let{className:t,data:a}=e;if(!Array.isArray(a))return null;let s=(()=>{let e=[],t=1,i={data:a,headerBlocksCount:0,banner:[]};return u(i),u(i),a.forEach((a,i)=>{switch(a.type){case"header":e.push((0,n.jsx)("h2",{id:"content_header_".concat(t),role:"header",children:a.data.text||""},i)),t++;break;case"sub_header":e.push((0,n.jsx)("h3",{role:"sub-header",children:a.data.text||""},i));break;case"paragraph":e.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:a.data.text||""},role:"paragraph"},i));break;case"link":e.push((0,n.jsx)("div",{className:c().blockLink,children:(0,n.jsx)("a",{target:"_blank",href:a.data.url||"",role:"link",children:a.data.text||""})},i));break;case"dossier":e.push((0,n.jsxs)("div",{className:c().dossierDateItem,children:[(0,n.jsx)("span",{className:c().date,role:"dossier-year",children:a.data.year||""}),(0,n.jsx)("div",{className:c().text,dangerouslySetInnerHTML:{__html:a.data.text||""},role:"dossier-text"})]},i));break;case"html":e.push((0,n.jsx)("div",{className:c().htmlBlock,dangerouslySetInnerHTML:{__html:o(a.data.html||"")},role:"html"},i));break;case"annotation":e.push((0,n.jsx)("div",{className:c().annotation,dangerouslySetInnerHTML:{__html:o(a.data.text||"")},role:"annotation"},i));break;case"company-annotation":e.push((0,n.jsx)("div",{className:c().companyAnnotation,dangerouslySetInnerHTML:{__html:a.data.text||""},role:"company-annotation"},i));break;case"keynote":e.push((0,n.jsx)("div",{className:c().keynoteWrapper,children:(0,n.jsx)("p",{className:c().keynote,dangerouslySetInnerHTML:{__html:a.data.text||""},role:"keynote"})},i));break;case"image":e.push((0,n.jsx)(l.default,{src:a.data.url||"",alt:"image",fill:!0},i));break;case"table":e.push((0,n.jsxs)("div",{className:c().contentTableWrapper,children:[a.data.title?(0,n.jsx)("h4",{role:"table-title",children:a.data.title}):"",(0,n.jsx)("div",{className:c().contentTableContent,dangerouslySetInnerHTML:{__html:o(a.data.html||"")},role:"table-content"})]},i))}}),e})();return(0,n.jsx)("div",{className:(0,i.A)(c().contentBlocks,t),role:"blocks",children:s})}},91762:(e,t,a)=>{"use strict";a.d(t,{x:()=>V});var n=a(95155),i=a(76048),l=a(69465),s=a(47913),o=a(12115),r=a(1591),c=a(53548),u=a(91482),M=a(36631),d=a(73055),D=a(44548),N=a(69563),j=a(2821),T=a(8186),p=a.n(T),m=a(15239),x=a(34724),w=a(72908),_=a(66869),g=a(55670),h=a(47759),L=a(64419),A=a.n(L);let y={$:"USD","€":"EUR","\xa5":"JPY","₣":"CHF","\xa3":"GBP","₽":"RUB"};function C(e){let{children:t,onClick:a,...i}=e,l=(0,o.useCallback)(e=>{e.target instanceof HTMLElement&&"a"===e.target.tagName.toLowerCase()||(e.preventDefault(),null==a||a(e))},[a]);return(0,n.jsx)("div",{onClick:l,...i,children:t})}function k(e){let{bic:t,bankName:a,name:i,className:s}=e;return(0,n.jsxs)("div",{className:(0,j.A)(A().header,s),children:[t?(0,n.jsx)(m.default,{unoptimized:!0,src:(0,g.z)(t),alt:null!=a?a:"Логотип банка",className:A().logo,width:30,height:30,"data-qa":"bank-logo"}):(0,n.jsx)("div",{className:A().logoPlaceholder}),(0,n.jsxs)("div",{className:A().nameWrapper,children:[(0,n.jsx)(l.E,{className:(0,j.A)(A().text,A().bankName),weight:"medium",dataQa:"bank-name",children:a}),(0,n.jsx)(x.a,{className:(0,j.A)(A().text,A().name),dataQa:"deposit-name",children:i})]})]})}function O(e){let{rate:t,bonusRate:a,rateTip:s,isFloatingRate:o,rateLink:c,rateLinkLabel:u,onTipClick:M}=e,D=a?"Ставка\xa0+\xa0бонус\xa0Финуслуг":"Ставка";return(0,n.jsxs)("div",{className:A().columnValue,children:[t&&(0,n.jsxs)(l.E,{weight:"medium",dataQa:"rate",className:A().label,children:[o?"до ":"",(0,r.CE)(t.toFixed(2)),a?"\xa0+\xa0".concat((0,r.CE)(a.toFixed(2))):""]}),s?(0,n.jsxs)(C,{onClick:M,children:[(0,n.jsx)(d.C,{className:A().hint,text:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:s}}),dataQa:"rate-hint",footer:c&&u&&(0,n.jsx)("a",{href:c,target:"_blank",children:u}),children:(0,n.jsxs)(x.a,{className:(0,j.A)(A().aligned,A().caption),dataQa:"rate-caption",children:[D,(0,n.jsx)(i.KYF,{className:"ml-1"})]})})," "]}):(0,n.jsx)(x.a,{className:(0,j.A)(A().aligned,A().caption),dataQa:"rate-caption",children:D})]})}function v(e){let{profit:t,profitTerm:a,bonusProfit:s,currencyUnit:o,minAmount:c,fixedAmount:u}=e,M=o?y[o]:void 0,d=M?{currencyCode:M}:void 0;if(!t&&!c&&!u)return null;if(t){let e=a?"за ".concat(a.value,"\xa0").concat((0,N.td)(a.value,...w.eV[a.type])):"";return(0,n.jsxs)("div",{className:A().columnValue,children:[(0,n.jsxs)(l.E,{weight:"medium",className:(0,j.A)(A().aligned,A().green,A().label),dataQa:"amount",children:[(0,n.jsx)(i.QAy,{}),"\xa0",(0,r.up)(t+(null!=s?s:0),d)]}),(0,n.jsxs)(x.a,{className:A().caption,dataQa:"amount-caption",children:["Доход ",s?"с бонусом":""," ",e]})]})}let D=u?(0,r.up)(u,d):"от ".concat((0,r.up)(null!=c?c:0,d));return(0,n.jsxs)("div",{className:A().columnValue,children:[(0,n.jsx)(l.E,{weight:"medium",dataQa:"amount",className:A().label,children:D}),(0,n.jsx)(x.a,{className:A().caption,dataQa:"amount-caption",children:"Сумма"})]})}function f(e){let{minTerm:t,className:a,isMobile:i,isFixedTerm:s}=e;if(!t)return null;let{termString:o}=(0,_.c)(t,{form:s?"nominative":"genitive",prefix:s?void 0:"от",isLadderDeposit:e.isLadderDeposit});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:(0,j.A)(A().termValue,A().margined,a),children:[(0,n.jsx)(x.a,{className:A().termCaption,dataQa:"term-caption",children:"Срок"}),(0,n.jsx)(l.E,{weight:"medium",className:A().termTitle,dataQa:"term",children:o})]}),i&&(0,n.jsx)(M.c,{className:(0,j.A)(A().divider,a)})]})}function z(e){let{onButtonClick:t,onInfoClick:a,className:l}=e;return(0,n.jsxs)("div",{className:(0,j.A)(A().buttons,l),children:[(0,n.jsx)(c.Button,{stretch:!0,size:"s",onClick:t,dataQa:"detail-button",children:"Подробнее"}),(0,n.jsx)(C,{children:(0,n.jsx)(c.Button,{size:"s",appearance:"outline",shape:"icon",iconLeft:(0,n.jsx)(i.S2Q,{}),onClick:a,dataQa:"info-button"})})]})}let b=(0,o.memo)(function(e){let{tags:t,href:a,className:i,dataQa:l,onCardClick:s}=e,o=[!!e.profit||!!e.minAmount||!!e.fixedAmount,!!e.rate,!!e.minTerm].filter(Boolean).length;return(0,n.jsxs)(u.Z,{className:(0,j.A)(A().depositCard,i),onClick:s,dataQa:l,as:"a",href:null!=a?a:"",children:[(0,n.jsx)(k,{...e,className:A().mobile}),(0,n.jsxs)("div",{className:A().content,children:[(0,n.jsxs)("div",{className:(0,j.A)(A().row,2===o&&A()["cols-2"]),children:[(0,n.jsx)(k,{...e,className:A().desktop}),(0,n.jsx)(O,{...e}),(0,n.jsx)(v,{...e}),(0,n.jsx)(f,{...e,className:A().tablet}),(0,n.jsx)(z,{...e,className:A().desktop})]}),(0,n.jsx)(M.c,{className:A().divider}),(0,n.jsx)(f,{...e,className:A()["mobile-tablet"],isMobile:!0})]}),t&&(0,n.jsx)("div",{className:A().tags,children:(0,h.W)(t,e=>e.text).map(e=>{let{key:t,item:a}=e,i="left"===a.position?{iconLeft:a.icon}:{iconRight:a.icon},l=0===a.text.trim().length;return(0,n.jsx)(D.v,{className:(0,j.A)(A().tag,a.backGround&&A()[a.backGround]),label:a.text,onIconRightClick:l?p():void 0,rounded:!0,dataQa:"tag",...i},t)})}),(0,n.jsx)(z,{...e,className:A().mobile})]})});var E=a(94586),I=a(6425),S=a(97390),Y=a(38907),Q=a(31633),U=a(37465),R=a(19559),F=a(80333),B=a(40599),W=a(5076),P=a(78916),G=a(26497),q=a.n(G);let J=e=>{var t,a,r,c,u,M;let{baseUrl:d="/vklady",className:D,data:N,events:j={},isPlatform:T=!1,isTermInDays:p=!1,params:m,paramsType:x="hash",isFullFilter:w,showOnlyNonPromo:_=!1,useDepositCurrency:g=!1,onOpenDetailModal:h}=e,L=T?"offers":"lidgen",{clickMoreButtonAction:A,eventCategory:y="deposit_vitrina",showItemAction:C="show__card__".concat(L)}=j,k=(0,o.useRef)(null),O=(0,W.t)(N,T,_);(0,P.A)({eventAction:C,eventCategory:y,eventLabel:String(N.id),itemRef:k});let v=(0,o.useMemo)(()=>{var e,t;return(0,E.A)({amount:null!=(t=N.rateAmount)?t:N.amount,baseUrl:d,depositUrl:N.url,isBound:N.isBound,isTermInDays:p,params:m,paramsType:x,term:(0,U.w3)(p,null==(e=N.computeData)?void 0:e.termDays,N.term)})},[d,N.amount,null==(t=N.computeData)?void 0:t.termDays,N.isBound,N.rateAmount,N.term,N.url,p,m,x]),f=(0,o.useCallback)(()=>{var e,t;e=N.id,t=N.name,(0,R.oA)({event:"data-event",eventCategory:y,eventAction:"click_button_card",eventLabel:"offers"===L?"vklady-ot-finuslug":"predlozheniya-ot-bankov",eventNameCard:(0,B.y)(t),eventUrl:String(e)})},[N.id,N.name,y,L]),z=(0,o.useCallback)(()=>{var e,t;return e=N.id,t=N.name,(0,R.oA)({event:"data-event",eventCategory:y,eventAction:"click_button_card_offer",eventLabel:"offers"===L?"vklady-ot-finuslug":"predlozheniya-ot-bankov",eventNameCard:(0,B.y)(t),eventUrl:String(e)}),null==h?void 0:h({isPlatform:T,href:v,depositItem:N})},[N,y,v,T,h,L]),G=(0,o.useCallback)(()=>{var e,t;e=N.id,t=N.name,(0,R.oA)({eventCategory:y,eventAction:"click_tooltip",eventLabel:"stavka-bonus-finuslug_on",eventNameCard:(0,B.y)(t),eventUrl:String(e)})},[N.id,N.name,y]),J=(0,o.useCallback)(()=>(0,F.s)(N.id,y,null!=A?A:""),[A,N.id,y]),V=(0,o.useMemo)(()=>(0,Q.A)({data:N,isPlatform:T,renderTip:e=>(0,n.jsx)(s.m,{text:e.description,style:{whiteSpace:"pre-wrap"},dataQa:"tag-tip",hideWhenOutOfBounds:!0,children:(0,n.jsxs)(l.E,{className:q().detail,children:[e.title,(0,n.jsx)(i.KYF,{size:16})]})}),newDesign:!0}),[N,T]),H=!!N.asSavingAccount||N.type===S.ch.SavingAccount,Z=(0,o.useMemo)(()=>((e,t,a)=>{if(t){if(a){var n;return{profit:null==(n=e.computeData)?void 0:n.profit,minAmount:e.rateAmount,fixedAmount:0}}return{profit:0,minAmount:0,fixedAmount:e.rateAmount}}return e.isNotAmount?{profit:0,minAmount:e.rateAmount,fixedAmount:0}:{profit:0,minAmount:0,fixedAmount:0}})(N,w,T),[N,w,T]),K=(0,o.useMemo)(()=>((e,t,a)=>{var n,i;if(a)return((e,t)=>{if(t){var a,n;return{profitTerm:{value:null!=(n=null==(a=e.computeData)?void 0:a.termDays)?n:0,type:I.s.DAY},minTerm:null,isFixedTerm:!1}}return e.isTermEmpty?{profitTerm:null,minTerm:{value:0,type:I.s.TERMLESS},isFixedTerm:!1}:{profitTerm:null,minTerm:null,isFixedTerm:!1}})(e,t);if(e.isLadderDeposit)return(e=>{var t,a;return{profitTerm:null,minTerm:{value:null!=(a=null==(t=e.computeData)?void 0:t.termDays)?a:e.term?Number(e.term):0,type:I.s.DAY},isFixedTerm:!0}})(e);if(e.isFixedTerm)return(e=>{var t,a;return{profitTerm:null,minTerm:{value:null!=(a=null==(t=e.computeData)?void 0:t.termDays)?a:0,type:I.s.DAY},isFixedTerm:!0}})(e);let l={value:null!=(i=null==(n=e.computeData)?void 0:n.termDays)?i:0,type:I.s.DAY};return t?{profitTerm:l,minTerm:null,isFixedTerm:!1}:e.isTermEmpty?{profitTerm:null,minTerm:l,isFixedTerm:!1}:{profitTerm:null,minTerm:null,isFixedTerm:!1}})(N,w,H),[N,w,H]),X=(0,o.useMemo)(()=>{var e,t,a;return(0,Y.c)({profit:null==(e=N.computeData)?void 0:e.profit,bonusProfit:null==(t=N.computeData)?void 0:t.bonus,terms:null==O?void 0:O.terms,isPlatform:T,isCapitalization:null!=(a=N.isCapitalization)&&a,isSavingAccount:N.type===S.ch.SavingAccount})},[null==(a=N.computeData)?void 0:a.bonus,null==(r=N.computeData)?void 0:r.profit,N.isCapitalization,N.type,null==O?void 0:O.terms,T]);return(0,n.jsx)("div",{"data-testid":"deposits-item",className:D,ref:k,children:(0,n.jsx)(b,{bankName:N.bankName,bic:N.bic,bonusProfit:null==(c=N.computeData)?void 0:c.bonus,bonusRate:null==(u=N.computeData)?void 0:u.bonusRate,className:D,currencyUnit:g?N.currencyUnit:void 0,dataQa:"deposits-item",href:v,id:N.id,isFloatingRate:"MAX"===N.rateType||H||N.isFloating,name:N.name,rate:null==(M=N.computeData)?void 0:M.effectiveRate,rateTip:X,rateLink:null==O?void 0:O.link,rateLinkLabel:null==O?void 0:O.linkLabel,isLadderDeposit:N.isLadderDeposit,tags:V,...Z,...K,onButtonClick:J,onInfoClick:z,onCardClick:f,onTipClick:G})})};J.displayName="DepositsItem";let V=(0,o.memo)(J)},93018:(e,t,a)=>{"use strict";a.d(t,{w:()=>s});var n=a(95155),i=a(55948),l=a(20447);function s(e){let{supportData:t,className:a}=e;return t?(0,n.jsx)(i.E,{...t,s3Assets:l.q.ASSETS_URL,className:a}):null}},98127:e=>{e.exports={contentBlocks:"FaqContentBlock_contentBlocks__mnwTn",annotation:"FaqContentBlock_annotation__Wf7Rs",contentTableWrapper:"FaqContentBlock_contentTableWrapper__kfDxm",keynoteWrapper:"FaqContentBlock_keynoteWrapper__rLeWD",keynote:"FaqContentBlock_keynote__fOgm2",blockLink:"FaqContentBlock_blockLink__TQvJY"}},98715:e=>{e.exports={skeleton:"Skeleton_skeleton__QIS3q",move:"Skeleton_move__TZqyh"}}},e=>{e.O(0,[2316,4563,2545,4653,7455,1126,7406,7491,9941,2692,6799,8174,9069,6619,7213,2876,8444,1366,6272,8768,7566,5644,9007,4172,3660,566,3837,2849,2020,8790,9485,2322,8441,1255,7358],()=>e(e.s=57990)),_N_E=e.O()}]);