(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6625],{1410:(e,t,l)=>{"use strict";l.d(t,{V:()=>a});let a=e=>e?Array.isArray(e)?e[0]:e?String(e):null:null},3379:e=>{e.exports={title:"DepositsFilter_title__9nYDh",link:"DepositsFilter_link__H_LKQ",subTitle:"DepositsFilter_subTitle__o7Ruj",hidden:"DepositsFilter_hidden__5WYrL",wrapper_container:"DepositsFilter_wrapper_container__V7K5Z",container:"DepositsFilter_container__4vscy",fields:"DepositsFilter_fields__qtSWn",field:"DepositsFilter_field__o3q_7",buttons:"DepositsFilter_buttons__ducS6",filterButton:"DepositsFilter_filterButton__I_tSX",tags:"DepositsFilter_tags__eWar_",tag:"DepositsFilter_tag__FUNHx"}},4881:e=>{e.exports={logo:"DepositsItem_logo__OIZPS",placeholderLogo:"DepositsItem_placeholderLogo__jxqvV",detailIcon:"DepositsItem_detailIcon__R_dh0",uiPlate:"DepositsItem_uiPlate__yuM7P",detail:"DepositsItem_detail__gUqpH"}},4935:e=>{e.exports={ad:"DepositDetailAd_ad__gpBd9",image:"DepositDetailAd_image__wJypO",title:"DepositDetailAd_title__YBK4n",subTitle:"DepositDetailAd_subTitle__zAdxJ",arrow:"DepositDetailAd_arrow__GfcHq",alt:"DepositDetailAd_alt__kg6PX",app:"DepositDetailAd_app__mO9dh",fivePercent:"DepositDetailAd_fivePercent__gG5Y_"}},6546:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var a=l(18578);function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{online_application:l,archive:i,active_to:n}=e,{commercial:o,type:r}=l,s=!n||new Date(n)>=new Date;return(0===i||t)&&s?0===o&&3===r?a.T.isPlatformDeposit:1===o?a.T.isLidgenDeposit:a.T.isNonPlatformDeposit:a.T.isArchiveDeposit}},6627:(e,t,l)=>{"use strict";function a(e){return Object.fromEntries(Object.entries(e).filter(e=>void 0!==e[1]))}l.d(t,{O:()=>a})},6806:(e,t,l)=>{"use strict";l.d(t,{V:()=>a.V});var a=l(30484)},7679:e=>{e.exports={calculator:"DepositDetailOfferModal_calculator__Z3YE8",calculatorTitle:"DepositDetailOfferModal_calculatorTitle__qIg_N",detailParams:"DepositDetailOfferModal_detailParams__uXZ8y",detailParamsWrapper:"DepositDetailOfferModal_detailParamsWrapper__fvX__",depositAd:"DepositDetailOfferModal_depositAd__CyxJ7",fivePercent:"DepositDetailOfferModal_fivePercent__Na_OH"}},8244:(e,t,l)=>{"use strict";l.d(t,{S:()=>i});var a=l(12115);let i=e=>{let{banks:t,anotherDeposits:l,platformDeposits:i,newPlatformDeposits:n}=e,[o,r]=(0,a.useState)(null),[s,c]=(0,a.useState)(!1),u=(0,a.useCallback)(e=>{var a,o,s,u;let{depositItem:d,isPlatform:m,href:p}=e,_=null,v=null,h=null,f=!d.exclusive&&!m&&!d.isCommercial;m?(_=null!=(a=(n.length>0?n:i).find(e=>e.internalUrl===d.url))?a:null,h=null!=(o=t.find(e=>Number(e.bic)===Number(null==_?void 0:_.bic)))?o:null,_&&h&&(r({platform:_,another:v,bank:h,href:p,isPlatform:m,isMass:f}),c(!0))):(v=null!=(s=l.find(e=>e.url===d.url))?s:null,h=null!=(u=t.find(e=>Number(e.id)===Number(null==v?void 0:v.bank_id)))?u:null,v&&h&&(r({platform:_,another:v,bank:h,href:p,isPlatform:m,isMass:f}),c(!0)))},[n,i,t,l]),d=(0,a.useCallback)(()=>{c(!1)},[]);return(0,a.useMemo)(()=>({depositData:o,openModal:s,handleOpen:u,handleClose:d}),[o,s,u,d])}},14899:(e,t,l)=>{"use strict";l.d(t,{i:()=>a});var a=function(e){return e.nakop="nakopitelnye",e}({})},15495:e=>{e.exports={container:"DepositsList_container__9IYCd",title:"DepositsList_title__xyCoM",disclaimer:"DepositsList_disclaimer__cADCD",listItem:"DepositsList_listItem__EAsw6",listTitle:"DepositsList_listTitle__CytGx",button:"DepositsList_button__KLcyG",adFox:"DepositsList_adFox__Ukqvd",bondsInfo:"DepositsList_bondsInfo__PeE6R",bondsLink:"DepositsList_bondsLink__hBfot",adv:"DepositsList_adv__6oR83",subTitle:"DepositsList_subTitle__nPTwd",notificationBlock:"DepositsList_notificationBlock__8RMm_"}},17281:e=>{e.exports={container:"ShareActions_container__pGqY_",childContainer:"ShareActions_childContainer__OQ_ZR",actionArrow:"ShareActions_actionArrow__dCmqT",childContainerMobile:"ShareActions_childContainerMobile__0vt9_",action:"ShareActions_action__07ZKz",actionArrowIcon:"ShareActions_actionArrowIcon__QeDSJ",actionSocial:"ShareActions_actionSocial__uWxWu"}},18271:e=>{e.exports={wrapper:"DepositsAdditionalSettings_wrapper__s5qQJ",title:"DepositsAdditionalSettings_title__nrSLc",margin:"DepositsAdditionalSettings_margin__GvGUZ",checkboxList:"DepositsAdditionalSettings_checkboxList__jnXP7",checkbox:"DepositsAdditionalSettings_checkbox__9rY1E",column:"DepositsAdditionalSettings_column__QJ9pW"}},20439:(e,t,l)=>{"use strict";function a(e){if("true"===e)return!0;if("false"===e)return!1;let t=Number(e);return isNaN(t)?e:t}l.d(t,{w:()=>a})},22687:e=>{e.exports={wrapper:"Promo_wrapper__vgwxR",wrapperArchive:"Promo_wrapperArchive__3KLxe",wrapperSmall:"Promo_wrapperSmall__TKQ1G",wrapperHideShareLinks:"Promo_wrapperHideShareLinks__6_vt9",company:"Promo_company__zx2_S",companySmall:"Promo_companySmall__gHEn_",title:"Promo_title__eC3ED",subTitle:"Promo_subTitle__irHjT",subTitleArchive:"Promo_subTitleArchive__ROtWb",subTitleText:"Promo_subTitleText__jiWkv",chip:"Promo_chip__bmI_G",chipDesc:"Promo_chipDesc__Iz92I",chipMob:"Promo_chipMob___jeRS",actionsContainer:"Promo_actionsContainer__wjB_T",actionsContainerSmall:"Promo_actionsContainerSmall__VUz8S",actions:"Promo_actions__TDZMq",action:"Promo_action__AnAZl",actionArrow:"Promo_actionArrow__kHdxS",actionMobile:"Promo_actionMobile__ZEfBz",actionArrowIcon:"Promo_actionArrowIcon__ftM5n",actionSocial:"Promo_actionSocial___3l_t",link:"Promo_link__P1bNh",logo:"Promo_logo__9YwGQ",logoContainer:"Promo_logoContainer__RACcr",logoContainerArchive:"Promo_logoContainerArchive__CYoB0",disabled:"Promo_disabled__P6gN4"}},22980:(e,t,l)=>{"use strict";l.d(t,{A:()=>u});var a=l(62521),i=l.n(a),n=l(12115),o=l(15520),r=l(1396);function s(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,l){let a=t.indexOf(l);return(a>=0?t.substring(0,a):t)+l+s(e)}function u(e){let{defaultValue:t,searchSign:l="?"}=null!=e?e:{},{asPath:a,replace:i}=(0,r.T)(),u=(0,n.useMemo)(()=>(0,o.$)(a,l),[a,l]),d=(0,n.useRef)(!1),m=(0,n.useRef)(void 0);(0,n.useEffect)(()=>{d.current||(d.current=!0)},[]),(0,n.useEffect)(()=>{d.current&&JSON.stringify(m.current)!==JSON.stringify(t)&&(m.current=t,i(c(null==t?u:Object.entries(t).reduce((e,t)=>{let[l,a]=t;return null!=e[l]?e:{...e,[l]:a}},u),a,l)))},[a,t,m,u,i,l]);let p=(0,n.useCallback)(e=>{let t=e(u);s(u)!==s(t)&&i(c(t,a,l))},[a,u,i,l]);return{params:u,setParams:p}}},24981:(e,t,l)=>{"use strict";l.d(t,{R:()=>c});var a=l(13860),i=l(12115),n=l(34357),o=l(18991),r=l(49990),s=l(99248);function c(e){let{amount:t,term:l,hasError:c,isCapitalization:u,isDiscount:d,rate:m,interestPaymentPeriod:p,trackInterestPaymentPeriod:_=!1,isNewCustomer:v,disabled:h,isOldPage:f,isOldUser:b,option:g}=e,A=(0,a.qK)(),[x,y]=(0,i.useState)(),[C,k]=(0,i.useState)(),N=(0,i.useRef)(null),j=(0,n.YQ)(e=>y(t=>({...t,...e})),500);if(function(e){let{currentFilter:t,amount:l,term:a,isCapitalization:i,isDiscount:n,hasError:o,interestPaymentPeriod:r,trackInterestPaymentPeriod:s=!1,rate:c}=e;return!o&&!!l&&!!a&&!(c<=0)&&(!t||t.amount!==l||t.term.value!==a||t.capitalization!==i||s&&t.interestPaymentPeriod!==r||t.withBonus!==n||(null==t?void 0:t.rate)!==c)}({currentFilter:N.current,amount:t,term:l,hasError:c,isCapitalization:u,isDiscount:d,interestPaymentPeriod:p,trackInterestPaymentPeriod:_,rate:m})){let e={amount:null!=t?t:0,term:{type:"DAY",value:null!=l?l:0},rate:m,capitalization:u,interestPaymentPeriod:p,withBonus:d,isNewCustomer:v};N.current=e,j(e)}let D=(0,i.useMemo)(()=>!h&&x,[h,x]),{data:w,isLoading:S}=(0,s.C)(["deposit-income",x],()=>(0,o.E3)(x),{disabled:!D||h});return(0,i.useEffect)(()=>{var e,t;if(h||S||!(null==w?void 0:w.data))return;let{data:l}=w,a=(0,r._)(null==g?void 0:g.firstDepositPromotionAllowed,null==g?void 0:g.repeatDepositPromotionAllowed,b),i=!f&&a?l.bonusIncome:0;k({profit:l.income,totalProfit:l.income+(null!=(t=null==(e=N.current)?void 0:e.amount)?t:0)+i,effectiveRate:l.effectiveRate,endOfTerm:new Date(l.endOfTerm),bonusIncome:a?l.bonusIncome:0,bonusRate:null==l?void 0:l.bonusRate})},[h,f,w,S,null==g?void 0:g.firstDepositPromotionAllowed,null==g?void 0:g.repeatDepositPromotionAllowed,b]),{incomeData:C,isLoading:S||!(null==w?void 0:w.data)&&A&&!h}}},25819:(e,t,l)=>{"use strict";l.d(t,{A:()=>b});var a=l(95155),i=l(13860),n=l(2821),o=l(12115),r=l(32818),s=l(98742),c=l(92646),u=l(97390),d=l(72052),m=l(19559),p=l(40599),_=l(99822),v=l(5195),h=l(49351),f=l.n(h);function b(e){let{isDesktop:t,filter:l,isDiscount:h,containerClassName:b,filterClassName:g,filterStuckClassName:A,withHeader:x=!0,eventCategory:y="deposit_vitrina",floating:C=!1,withSort:k=!0,hasDynamicBonus:N=!1,showOnlyNonPromo:j=!1,customListFilter:D}=e,{amountData:w,currencyUnit:S,term:P,setIncreaseSort:T,handleSortTypeChange:M,setInitialSort:L,handleToggleModal:I,sortType:R,increaseSort:E,withRefill:F,withCapitalization:B,activeBanks:O,withMonthlyPercent:z,withPreferentialTermination:U,interestAccrual:Y}=l,[G,V]=(0,o.useState)(!1),[W,H]=(0,o.useState)(!1),q=(0,o.useRef)(null),Q=(0,o.useRef)(()=>null),K=(0,i.qF)("m");(0,o.useEffect)(()=>{window.removeEventListener("scroll",Q.current);let e=x?K?r.u:r.X:0;return Q.current=()=>{if(!q.current)return;let{top:t}=q.current.getBoundingClientRect();H(t<r.u-3),V(t<=e+1)},window.addEventListener("scroll",Q.current),()=>window.removeEventListener("scroll",Q.current)},[K,x]);let Z=(0,o.useCallback)(e=>{var t;e&&(u.r3.RatePlusBonus===e||u.r3.Rate===e||u.r3.Profit===e)&&(M(e),L(!1));let l=null==(t=c.s.find(t=>t.value===e))?void 0:t.label;(0,m.oA)({eventAction:"click_radiobutton",eventLabel:l?(0,p.y)(l):"",eventCategory:"".concat(y,"_popup")})},[M,L,y]),J=(0,o.useCallback)(e=>{(0,m.oA)({eventAction:"click__button__filters__".concat((0,p.y)(e.label)),eventCategory:y}),I(e.id,e.label,G)},[y,I,G]),X=(0,o.useCallback)(()=>{(0,m.oA)({eventAction:"click_button_vse-parametry",eventCategory:y}),I(null,null,G)},[y,I,G]),$=(0,o.useCallback)(()=>{(0,m.oA)({eventAction:"click_button_stavka",eventCategory:y})},[y]),ee=(0,o.useCallback)(e=>{(0,m.oA)({eventCategory:"".concat(y,"_popup"),...e?{eventAction:"page_view_sortirovat"}:{eventAction:"click_button_krestik",eventLabel:"sortirovat"}})},[y]),et=(0,o.useMemo)(()=>(0,d.N)(h||N,j,+w.value,P.value),[h,j,w.value,P.value,N]),el=(0,o.useMemo)(()=>(function(e){let{currencyUnit:t,amount:l,term:a,activeBanks:i,withCapitalization:n,withRefill:o,withMonthlyPercent:r,withPreferentialTermination:s,interestAccrual:c}=e,u=[{id:v.G.amount,label:l||"Сумма от 1".concat(t)},{id:v.G.term,label:(null==a?void 0:a.label)&&(null==a?void 0:a.value)?a.label:"Срок: Любой"}];if(null==i?void 0:i.length){let e=1===i.length?": ".concat(i[0].label):" (".concat(i.length,")");u.push({id:v.G.banks,label:"Банки".concat(e)})}return o&&u.push({id:v.G.refill,label:"С пополнением"}),n&&u.push({id:v.G.capitalization,label:"С капитализацией"}),r&&u.push({id:v.G.monthlyPercent,label:"Проценты ежемесячно"}),s&&u.push({id:v.G.preferentialTermination,label:"Льготное расторжение"}),c&&u.push({id:v.G.interestAccrual,label:_.X[c]}),u})({amount:w.formattedValue,term:P,activeBanks:O,withRefill:F,withCapitalization:B,currencyUnit:S,withMonthlyPercent:z,withPreferentialTermination:U,interestAccrual:Y}),[O,w.formattedValue,S,Y,P,B,z,U,F]),ea=(0,o.useCallback)(()=>{T(!E),L(!1),(0,m.oA)({eventAction:"click_dropdown_po-populyarnosti",eventLabel:E?"vozrastanie":"ubyvanie",eventCategory:"deposits_".concat(y)})},[E,T,L,y]),ei=(0,o.useMemo)(()=>({chips:el,onChangeIncreaseSort:ea,onChangeSortType:Z,onClickChip:J,onClickParams:X,onClickSortType:$,onToggleModal:ee,sortTypeItems:et,sortTypeValue:R,isIncreaseSort:!E,isMobile:!t,isFixed:C||G,className:(0,n.A)(f().listFilter,g,G&&A)}),[el,g,A,C,ea,Z,J,X,$,ee,E,t,G,et,R]);return(0,a.jsx)("div",{ref:q,"data-testid":"deposit-sticky-filter",className:(0,n.A)(f().filter,f().header,W&&f().filterBottom,b,G&&A,!x&&f().headless,C&&f().floating,!k&&f().hideSort),children:D?D(ei):(0,a.jsx)(s.xt,{...ei})})}},28780:(e,t,l)=>{"use strict";l.d(t,{M:()=>E});var a=l(95155),i=l(76048),n=l(53548),o=l(69142),r=l(73055),s=l(35195),c=l(89153),u=l(95382),d=l(2821),m=l(12115),p=l(94370),_=l(25844),v=l(4678),h=l(99822),f=l(68418),b=l(98742),g=l(36917),A=l(5195),x=l(88475),y=l(74015),C=l(19559),k=l(54319),N=l(40599),j=l(55921),D=l(92646),w=l(97390),S=l(72052),P=l(40474);let T=Object.freeze({[f.G.MIN_BALANCE]:"Проценты начисляются на минимальную сумму, которая находилась на счёте в течение месяца. Если вы снимали или переводили деньги, то учитывается самая маленькая сумма за период",[f.G.AVG_BALANCE]:"Проценты рассчитываются на среднее арифметическое значение средств, которые были на счёте в течение месяца. То есть учитывается баланс на разные даты и выводится усреднённая сумма",[f.G.DAILY_BALANCE]:"Проценты начисляются ежедневно на фактический остаток на счёте"});var M=l(75447),L=l.n(M);let I=e=>{let{eventLabel:t,tipIcon:l,handleTooltipClick:n}=e;return(0,a.jsx)("div",{onClick:()=>null==n?void 0:n((0,N.y)(null!=t?t:"")),children:l||(0,a.jsx)(i.KYF,{size:20})})},R=e=>{var t;let{amountInputTitle:l="Сумма",data:n,eventCategory:p="deposit_vitrina_popup",hasDynamicBonus:M=!1,inputSize:R="s",isDiscount:E,isMobile:F,partnerId:B,showCapitalization:O=!0,showInterestAccrual:z=!1,showMonthlyPercent:U=!1,showOnlyNonPromo:Y=!1,showPreferentialTermination:G=!1,showRefill:V=!0,termInputTitle:W="Срок",terms:H,tipIcon:q,withAdditional:Q,withCapitalizationTittle:K="С капитализацией",withHeader:Z=!0,withMonthlyPercentTitle:J="Проценты ежемесячно",withPartialWithdrawalTitle:X="Снятие",withPreferentialTerminationTitle:$="Льготное расторжение",withRefillTitle:ee="С пополнением",withSort:et=!0}=e,{activeBanks:el,amountData:ea,banksOptions:ei,currency:en,handleActiveBanksChange:eo,handleTermChange:er,sortType:es,currenciesOptions:ec,handleSortTypeChange:eu,setInitialSort:ed,term:em,withCapitalization:ep,handleWithCapitalizationChange:e_,withRefill:ev,handleWithRefillChange:eh,handleChangeCurrency:ef,modalActiveField:eb,filterAdditionalSettings:eg,withMonthlyPercent:eA,withPreferentialTermination:ex,withPartialWithdrawal:ey,handleWithMonthlyPercentChange:eC,handleWithPreferentialTerminationChange:ek,handleChangeAdditionalSettings:eN,handleWithPartialWithdrawalChange:ej,handleToggleModal:eD,handleLoad:ew,handleAmountChange:eS,interestAccrual:eP,handleInterestAccrualChange:eT}=n,eM=(0,m.useRef)((0,x.O)()),eL=eb&&[A.G.term,A.G.banks].includes(String(eb))&&F,eI=(0,m.useCallback)((e,t)=>{(0,C.oA)({eventCategory:p,eventLabel:e?"on":"off",eventAction:t}),!e&&eL&&setTimeout(()=>{eD()},300)},[p,eD,eL]),eR=(0,m.useCallback)((e,t)=>{(0,C.oA)({eventCategory:p,eventAction:"click_dropdown_vybor-bank",eventLabel:"".concat((0,N.y)(e.label),"_").concat(t?"on":"off")})},[p]),eE=(0,m.useCallback)(e=>{(0,C.oA)({eventCategory:p,eventAction:"click_button_pokazat",eventLabel:(null==e?void 0:e.length)?(0,N.y)(e.map(e=>e.label).join(",")):""})},[p]),eF=(0,m.useCallback)(e=>{(0,C.oA)({eventCategory:p,eventAction:"click_button_korzina",eventLabel:(null==e?void 0:e.length)?(0,N.y)(e.map(e=>e.label).join(",")):""})},[p]),eB=(0,m.useCallback)(e=>{let t=e.label;er(e),(0,C.oA)({eventCategory:p,eventAction:"click_dropdown_vybor-sroka",eventLabel:t?(0,N.y)(t):""})},[p,er]),eO=(0,m.useCallback)(e=>{if(e){let t=e.label;ef(e),(0,C.oA)({eventCategory:p,eventAction:"click_dropdown_vybor-valyuta",eventLabel:t?(0,N.y)(t):""})}},[p,ef]),ez=(0,m.useCallback)(e=>{ea.handleChange(String(null!=e?e:""),e=>{eM.current(()=>{eS(e),(0,C.oA)({eventCategory:p,eventAction:"click_summa",eventLabel:"vse-parametry",eventValue:e})})})},[ea,p,eS]),eU=(0,m.useCallback)((e,t)=>{(0,C.oA)({eventCategory:p,eventAction:"click_checkbox",eventLabel:"".concat((0,N.y)(null!=t?t:""),"_").concat(e?"on":"off")})},[p]),eY=(0,m.useCallback)(e=>{eh(e),eU(e,ee)},[eh,eU,ee]),eG=(0,m.useCallback)(e=>{e_(e),eU(e,K)},[e_,eU,K]);(0,m.useEffect)(()=>{eb===A.G.amount&&ea.events.onFocus()},[ea.events,eb]);let eV=(0,m.useRef)(null),eW=(0,j.A)(0,0,Z),eH=(0,m.useCallback)(()=>{eD(),(0,k.e)(v.nS,{offset:eW,position:"top",delay:350}),ew()},[ew,eD,eW]),eq=(0,m.useMemo)(()=>(0,S.N)(E||M,Y,+ea.value,em.value),[E,M,Y,ea.value,em.value]),eQ=(0,m.useCallback)(e=>{(0,C.oA)({eventCategory:p,eventAction:"click_tooltip",eventLabel:"".concat(e,"_on")})},[p]),eK=(0,m.useCallback)(e=>{eC(e),eU(e,J)},[eC,eU,J]),eZ=(0,m.useCallback)(e=>{ek(e),eU(e,$)},[ek,eU,$]),eJ=(0,m.useCallback)(e=>{ej(e),eU(e,X)},[ej,eU,X]),{depositFilterModal:eX}=(0,m.useMemo)(()=>(0,g.N)(B)||{},[B]),e$=eg.includes(A.G.deposits)&&(O||U||G||V);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{className:(0,g.B)((0,d.A)(L().title,!B&&L().hidden),L(),null==eX?void 0:eX.modalTitleClassName),children:"Все параметры"}),(0,a.jsxs)("div",{ref:eV,className:(0,g.B)(L().fields,L(),null==eX?void 0:eX.modalFieldsClassName),children:[(0,a.jsx)(s.Y,{value:ea.value?Number(ea.value):void 0,label:l,className:L().field,withoutControls:!0,decimalsCount:0,decimals:"never",autoFocus:eb===A.G.amount,onChange:ez,onKeyDown:e=>(0,y.K)(e,eH),size:R,dataQa:"filter-modal-amount-input",unit:null!=(t=en.unit)?t:_.bc}),(0,a.jsx)(u.l,{isOpen:eb===A.G.term,label:W,className:L().field,value:em,options:H,onChange:eB,onToggle:e=>eI(e,"click_dropdown_srok"),size:R,dataQa:"filter-modal-term-select"}),ec.length>1&&(0,a.jsx)(u.l,{label:"Валюта",className:L().field,value:en,options:ec,onChange:eO,onToggle:e=>eI(e,"click_dropdown_valyuta"),size:R,dataQa:"filter-modal-currency-select"}),eg.includes(A.G.deposits)&&ei.length>0&&(0,a.jsx)("div",{"data-qa":"filter-modal-banks-select",children:(0,a.jsx)(b.ng,{label:"Банки",className:(0,d.A)(L().field,L().oldSelect),multiple:!0,addonAfter:(0,a.jsx)("div",{className:L().oldSelectIconWrapper,children:(0,a.jsx)(i.j8g,{className:L().oldSelectIcon,size:24})}),value:el,options:ei,onChange:eo,defaultOpen:eb===A.G.banks,isMobile:F,onOpen:()=>eI(!0,"click_dropdown_bank"),onClose:()=>eI(!1,"click_dropdown_bank"),search:!0,size:{s:"small",m:"middle",l:"big"}[R],onSelectItem:eR,onAcceptSelected:eE,onClearSelected:eF})})]}),(0,a.jsxs)("div",{className:(0,g.B)(L().settings,L(),null==eX?void 0:eX.modalSettingsClassName),children:[Q&&(0,a.jsx)(P.k,{direction:"column",filterSettings:eg,onToggleAdditionalSettings:eN}),e$&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h6",{className:L().settingsTitle,children:"Дополнительно"}),V&&(0,a.jsxs)("div",{className:(0,g.B)(L().checkboxWrapper,L(),null==eX?void 0:eX.modalCheckboxWrapperClassName),children:[(0,a.jsx)(o.S,{label:ee,value:ev,onChange:eY,dataQa:"filter-modal-refill-checkbox"})," ",(0,a.jsx)(r.C,{text:"Возможность вносить денежные средства в период действия вклада.",inverted:!0,dataQa:"filter-modal-refill-hint",children:(0,a.jsx)(I,{eventLabel:ee,tipIcon:q,handleTooltipClick:eQ})})]}),O&&(0,a.jsxs)("div",{className:(0,g.B)(L().checkboxWrapper,L(),null==eX?void 0:eX.modalCheckboxWrapperClassName),children:[(0,a.jsx)(o.S,{label:K,value:ep,onChange:eG,dataQa:"filter-modal-capitalization-checkbox"})," ",(0,a.jsx)(r.C,{inverted:!0,text:"Обычно начисление процентов по вкладу происходит один раз, в конце срока действия вклада.\n\nУ вкладов с капитализацией проценты начисляются в течение срока действия вклада, например, раз в месяц, раз в год и т.п. Начисленные проценты прибавляются к вкладу и общий доход от вклада увеличивается.",dataQa:"filter-modal-capitalization-hint",className:L().hint,children:(0,a.jsx)(I,{eventLabel:K,tipIcon:q,handleTooltipClick:eQ})})]}),U&&(0,a.jsxs)("div",{className:L().checkboxWrapper,children:[(0,a.jsx)(o.S,{label:J,value:eA,onChange:eK,dataQa:"filter-modal-montly-percent-checkbox"}),(0,a.jsx)(r.C,{inverted:!0,text:"Проценты по этому вкладу буду поступать ежемесячно на ваш кошелек Финуслуг",dataQa:"filter-modal-montly-percent-hint",children:(0,a.jsx)(I,{eventLabel:"procenty_ezhemesyachno",tipIcon:q,handleTooltipClick:eQ})})]}),G&&(0,a.jsxs)("div",{className:L().checkboxWrapper,children:[(0,a.jsx)(o.S,{label:$,value:ex,onChange:eZ,dataQa:"filter-modal-preferential-termination-checkbox"}),(0,a.jsx)(r.C,{inverted:!0,text:"Возможность досрочно закрыть вклад, при этом, не потерять часть накопленных %",dataQa:"filter-modal-preferential-termination-hint",children:(0,a.jsx)(I,{eventLabel:"lgotnoe_rastorzhenie",tipIcon:q,handleTooltipClick:eQ})})]}),(0,a.jsx)("div",{className:L().checkboxWrapper,children:(0,a.jsx)(o.S,{label:X,value:ey,onChange:eJ,dataQa:"filter-modal-partial-withdrawal-checkbox"})})]}),z&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h6",{className:L().settingsTitle,children:"Начисление процентов"}),Object.keys(f.G).map(e=>(0,a.jsxs)("div",{className:L().interestAccrualRow,children:[(0,a.jsx)(c.s,{checked:e===eP,value:e,name:"interest-accrual",dataQa:"filter-modal-interest-accrual-radio-".concat(e),onChange:eT,onClick:()=>{e===eP&&eT(void 0)},children:h.X[e]}),(0,a.jsx)(r.C,{text:T[e],inverted:!0,dataQa:"filter-modal-interest-accrual-hint-".concat(e),children:(0,a.jsx)(I,{})})]},e))]}),et&&(0,a.jsxs)("div",{className:(0,g.B)(L().sortBlock,L(),null==eX?void 0:eX.modalSortBlockClassName),children:[(0,a.jsx)("h6",{className:L().settingsTitle,children:"Сортировать"}),(0,a.jsx)("div",{className:L().radioGroup,children:eq.map(e=>(0,a.jsx)("div",{className:L().radioWrapper,children:(0,a.jsx)(c.s,{onChange:()=>(e=>{var t;e&&(w.r3.RatePlusBonus===e||w.r3.Rate===e||w.r3.Profit===e)&&(eu(e),ed(!1));let l=null==(t=D.s.find(t=>t.value===e))?void 0:t.label;(0,C.oA)({eventCategory:p,eventAction:"click_radiobutton",eventLabel:l?(0,N.y)(l):""})})(e.value),checked:es===e.value,dataQa:"filter-modal-sort-radio-".concat(e.value),className:L().radio,value:e.value,label:e.label,name:"sort"})},e.value))})]})]})]})},E=e=>{let{data:t,isMobile:l,depositsLength:o,className:r,withHeader:s=!0,eventCategory:c="deposit_vitrina",drawerClassName:u,partnerId:_}=e,{isOpenModal:h,handleToggleModal:f,reset:g,handleLoad:A}=t,x=c.endsWith("_popup")?c:c+"_popup",y=(0,j.A)(0,0,s);(0,m.useEffect)(()=>{h&&(0,C.oA)({eventCategory:x,eventAction:"page_view_vse-parametry"})},[x,h]);let N=()=>{f(),(0,C.oA)({eventCategory:x,eventAction:"click_button_krestik",eventLabel:"vse-parametry"})},D=(0,a.jsxs)("div",{className:L().buttonActions,children:[(0,a.jsx)(n.$,{variant:"secondary",size:"s",className:L().button,onClick:()=>{g(),(0,C.oA)({eventCategory:x,eventAction:"click_button_sbrosit_parametry"})},iconLeft:_?void 0:(0,a.jsx)(i.kh9,{}),dataQa:"button-modal-show",children:"Сбросить параметры"}),(0,a.jsxs)(n.$,{dataQa:"button-modal-cart",size:"s",className:L().button,onClick:()=>{f(),(0,k.e)(v.nS,{offset:y,position:"top",delay:350}),A(),(0,C.oA)({eventCategory:x,eventAction:"click_button_pokazat"})},children:["Показать ",o]})]});return(0,a.jsxs)(p.Z,{children:[!l&&(0,a.jsx)(b._s,{className:L().modal,footer:D,contentClassName:(0,d.A)(L().content,u,!_&&L().thin),isOpen:h,onClose:N,children:(0,a.jsx)(R,{...e,eventCategory:x})}),l&&(0,a.jsx)(b.LV,{className:(0,d.A)(L().mobilePopup,r,!_&&L().thin),contentClassName:(0,d.A)(L().content,!_&&L().thin),isOpen:h,onClose:N,footer:D,children:(0,a.jsx)(R,{...e,eventCategory:x})})]})}},30484:(e,t,l)=>{"use strict";l.d(t,{A:()=>h,V:()=>v});var a=l(95155),i=l(76048),n=l(83745),o=l(73055),r=l(69465),s=l(40486),c=l(2821),u=l(12115),d=l(39255),m=l(89910),p=l(91999),_=l.n(p);let v=e=>{let{data:t,handleMainRate:l}=e,[p,v]=(0,u.useState)(!0),{salaryOfPerson:h,spending:f,maxRateSpending:b}=(0,d.W)(t),g=f.map((e,t,l)=>{var a,i;return{label:((e,t,l)=>{if(1===l.length)switch(!1){case"maximumSumSpending"in t:return"от ".concat((0,m.jq)(t.minimumSumSpending)," ₽");case"minimumSumSpending"in t:return"до ".concat((0,m.jq)(t.maximumSumSpending)," ₽");default:return"".concat((0,m.jq)(t.minimumSumSpending)," ₽ - ").concat((0,m.jq)(t.maximumSumSpending)," ₽")}switch(e){case 0:return"до ".concat((0,m.jq)(t.maximumSumSpending)," ₽");case l.length-1:return"от ".concat((0,m.jq)(t.minimumSumSpending)," ₽");default:return"".concat((0,m.jq)(t.minimumSumSpending)," ₽ - ").concat((0,m.jq)(t.maximumSumSpending)," ₽")}})(t,e,l),valueMin:null!=(a=e.minimumSumSpending)?a:0,valueMAx:null!=(i=e.maximumSumSpending)?i:0,bonus:e.bonusPercentageValue,hint:e.influenceEventHintText}}),A=g.map(e=>({id:e.bonus,label:e.label})),[x,y]=(0,u.useState)(b),C=(0,u.useMemo)(()=>{var e,t;return null!=(t=null==(e=g.find(e=>e.bonus===x))?void 0:e.hint)?t:""},[g,x]),k=(0,u.useCallback)(e=>{var t;y(Number(e)),l((p&&null!=(t=null==h?void 0:h.bonusPercentageValue)?t:0)+Number(e))},[l,p,null==h?void 0:h.bonusPercentageValue]),N=(0,u.useCallback)(e=>{var t;v(e),l((e&&null!=(t=null==h?void 0:h.bonusPercentageValue)?t:0)+x)},[l,null==h?void 0:h.bonusPercentageValue,x]);return(0,a.jsxs)("div",{className:_().wrapper,children:[h&&(0,a.jsxs)("div",{className:_().item,children:[(0,a.jsx)("div",{className:_().label,children:(0,a.jsxs)(r.E,{className:_().text,size:"16",children:["Траты по карте или подписка \xabПросто\xbb",(0,a.jsx)(o.C,{dataId:"salary-toggle",className:_().hint,text:h.influenceEventHintText,children:(0,a.jsx)(i.KYF,{size:24,style:{color:"var(--color-gray-800)"}})})]})}),(0,a.jsx)("div",{className:_().splitter}),(0,a.jsx)("div",{className:_().controll,children:(0,a.jsx)(s.l,{value:p,style:{color:"var(--color-purple-600)"},flipped:!0,label:"+".concat((0,m.jq)(h.bonusPercentageValue,2)," %"),onChange:N})})]}),!!g.length&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(0,c.A)(_().item,_().spending),children:[(0,a.jsxs)("div",{className:_().label,children:[(0,a.jsxs)(r.E,{className:_().text,size:"16",children:["Траты по карте в месяц",(0,a.jsx)(o.C,{className:_().hint,text:C,children:(0,a.jsx)(i.KYF,{size:24,style:{color:"#6C6D78"}})})]}),(0,a.jsx)("div",{className:_().spendingPercent,children:"+".concat((0,m.jq)(x,2)," %")})]}),(0,a.jsx)(r.E,{className:_().tip,size:"16",children:"От них зависит ставка по вкладу"})]}),(0,a.jsx)(n.C,{value:x,className:_().chips,activeVariant:"secondary",chips:A,onChipClick:k})]})]})},h=(0,u.memo)(v)},31307:(e,t,l)=>{"use strict";l.d(t,{O:()=>W});var a=l(95155),i=l(83745),n=l(95633),o=l(35195),r=l(29142),s=l(69563),c=l(2821),u=l(35138),d=l.n(u),m=l(61126),p=l(12115),_=l(41248),v=l(75439),h=l(50387),f=l(4807),b=l(41105),g=l(89264),A=l(18578),x=l(4678),y=l(72908),C=l(45378),k=l(6806),N=l(39255),j=l(73522),D=l(98591),w=l(79945),S=l(19559),P=l(54319),T=l(40599),M=l(24981),L=l(1396),I=l(72964),R=l(55921),E=l(81109),F=l(69877),B=l(40999),O=l.n(B),z=l(77346),U=l(89910),Y=l(73520),G=l(48858);let V=(e,t)=>e.term_from<=t&&t<=e.term_to?0:t<e.term_from?Math.round(e.term_from-t):Math.round(t-e.term_to),W=e=>{var t,l,u,B,W,H,q,Q;let{isMobile:K,data:Z,depositType:J,onChangeData:X,discount:$,isOldUser:ee,isPlusFiveBonus:et,company:el,extraInfo:ea,isShowDepositTip:ei,asModal:en=!1,className:eo,titleClassName:er,initialAmount:es,initialIsCapitalization:ec,initialOptionId:eu,initialPaymentFrequency:ed,initialTermInMonths:em,initialTermInDays:ep,customActions:e_,shortChipsList:ev=!1,firstDepositBonusTitle:eh=!1,pageUrl:ef="vklady",isHidePromo:eb=!1,promoClassName:eg,calculatorClassName:eA,computeClassName:ex,inputSize:ey="s",withChart:eC=!0,collapseChevronSrc:ek,tipIcon:eN,tagIcon:ej,customTagTitle:eD,hideShareLinks:ew=!1,hideExternalLinks:eS=!1,amountInputLabel:eP="",isPromoTag:eT=!0,computeHeader:eM,computeTag:eL,eventCategory:eI,amount:eR,term:eE,localCalculations:eF=!1,eventNameCard:eB,eventUrl:eO}=e,{asPath:ez,hash:eU}=(0,L.T)(),[eY,eG]=(0,p.useState)(!1),eV=(0,p.useRef)(null),eW=(0,p.useRef)(null),eH=(0,p.useRef)(null),[eq,eQ]=(0,p.useState)(!1),[eK,eZ]=(0,p.useState)(null),[eJ,eX]=(0,p.useState)(),[e$,e0]=(0,p.useState)(()=>{var e,t;if((null==(e=ea.algo)?void 0:e.id)!=="mkb-nakop")return;let{expenseChips:l,defaultExpenseChip:a}=ea.algo;return null!=(t=l.find(e=>e.id===a))?t:l.at(-1)}),[e1,e5]=(0,p.useState)(()=>{var e;return(null==(e=ea.algo)?void 0:e.id)==="mkb-nakop"&&ea.algo.salaryToggleDefaultValue}),e2=(0,R.A)(),e3=(0,D.O)(Z.currency_id),{events:e4,value:e9,formattedValue:e6,handleChange:e8}=(0,I.G)({type:"float",format:"currency",unit:e3.unit,defaultValue:String(Z.amount.from),maxLength:20,maxFractionalLength:2}),{events:e7,value:te,formattedValue:tt,handleChange:tl}=(0,I.G)({type:"int",unit:"day",maxLength:10,defaultValue:()=>{var e;return(null==(e=ea.algo)?void 0:e.id)==="mkb-nakop"?String(ea.algo.defaultTermDays):"1"}}),{floatingRate:ta}=(0,N.W)(null!=(W=Z.floatingRateInformations)?W:[]),[ti,tn]=(0,p.useState)(ta),{isFixedTerms:to,termChips:tr,minSum:ts,maxSum:tc,minTerm:tu,maxTerm:td}=(0,p.useMemo)(()=>{var e;let t=(0,G.QO)(Z,Number(e9),ti);return(null==(e=ea.algo)?void 0:e.id)==="mkb-nakop"&&(t.maxSum=ea.algo.maxAmount,t.minSum=ea.algo.minAmount),t},[Z,ea.algo,e9,ti]),tm=J===A.T.isArchiveDeposit,tp=!ea.algo&&to&&eJ?eJ.value:te,t_=!!Z.type.saving_account,tv=(0,p.useMemo)(()=>{let e=[];return to&&eJ&&!Array.isArray(eJ)&&e.push(eJ),!to&&te&&e.push({label:tt,id:"term"}),e9&&e.push({label:e6,id:"amount"}),e},[to,eJ,e6,e9,tt,te]),th=(0,p.useMemo)(()=>{var e;let t=Z.interest_rate.rates.filter(e=>{let t=0===e.amount_from||null===e.amount_from?ts:e.amount_from,l=e.amount_to&&e.amount_to>0?e.amount_to:tc,a=e.term_to>0?e.term_to:td;return+tp>=e.term_from&&(t_||+tp<=a)&&+e9>=t&&+e9<=l});return eu&&(null==eJ?void 0:eJ.optionId)&&null!=(e=t.find(e=>e.optionId===eJ.optionId))?e:t[0]},[tp,Z.interest_rate.rates,eu,t_,tc,td,ts,null==eJ?void 0:eJ.optionId,e9]),tf=(0,p.useMemo)(()=>{if(ea.algo){if("mkb-nakop"===ea.algo.id&&e$)return e1?e$.rateWithSalary:e$.rate}else if(th)return th.rate;return 0},[th,ea.algo,e1,e$]),tb=(0,p.useMemo)(()=>{var e;if(!(to?null==eJ?void 0:eJ.value:te))return;let t=Z.interest_rate.rates.sort((e,t)=>{var l,a;return(null!=(l=e.amount_from)?l:ts)-(null!=(a=t.amount_from)?a:tc)}),l=null==(e=t.find(e=>(null==th?void 0:th.amount_from)&&e.amount_from&&e.amount_from>th.amount_from))?void 0:e.amount_from;return t.find(e=>th&&e.amount_from===l&&e.term_from===th.term_from)},[th,Z,to,tc,ts,eJ,te]),tg=(0,p.useMemo)(()=>th&&eK&&th.amount_from?{difference:th.rate-eK.rate,minAmount:th.amount_from}:tb&&th&&tb.amount_from?{difference:tb.rate-th.rate,minAmount:tb.amount_from}:void 0,[tb,th,eK]),{urlFirst:tA,urlSecond:tx}=(0,j.X)({asPath:ez,productId:Z.id,optionId:null==th?void 0:th.optionId,amount:+e9,durationValue:Z.asSavingAccount?void 0:tp,firstBaseUrl:null!=(H=(0,m.env)("NEXT_PUBLIC_MOEX_AD_URI"))?H:"",secondBaseUrl:null==th||null==(t=th.mp)?void 0:t.url}),ty=(e=>{let{data:t,currentRate:l,urlFirst:a,urlSecond:i}=e;return t.online_application.commercial&&t.online_application.url?t.online_application.url:(null==l?void 0:l.optionId)?a:i})({data:Z,currentRate:th,urlFirst:tA,urlSecond:tx}),tC=((e,t,l)=>{if(void 0!==l){if(+l<e)return"Минимальная сумма - ".concat((0,U.jq)(e)," ₽");if(+l>t)return"Максимальная сумма - ".concat((0,U.jq)(t)," ₽")}})(ts,tc,e9),tk=tC||0===td?void 0:((e,t,l)=>{if(void 0!==l){if(+l<e)return"Минимальный срок - ".concat((0,U.jq)(e)," ").concat((0,Y.td)(e,"день","дня","дней"));if(+l>t)return"Максимальный срок - ".concat((0,U.jq)(t)," ").concat((0,Y.td)(t,"день","дня","дней"))}})(tu,td,te),tN=(0,p.useCallback)(e=>(0,S.oA)({eventCategory:eI,eventNameCard:eB,eventUrl:eO,eventAction:e.eventAction,eventValue:null==e?void 0:e.eventValue,eventLabel:null==e?void 0:e.eventLabel}),[eI,eB,eO]),tj=(0,p.useCallback)(()=>{eZ(null),eQ(!1)},[]),tD=(0,p.useCallback)(e=>{e8(null!=e?e:""),tj()},[e8,tj]),tw=(0,p.useCallback)(e=>{tl(null!=e?e:""),tj()},[tl,tj]),tS=(0,p.useCallback)(()=>{var e;K&&eV.current&&(eG(!0),eV.current&&(0,P.e)(eV.current,{offset:e2,position:"top",delay:300})),K||null==(e=eW.current)||e.focus(),tN({eventAction:"click_button_karandash"})},[tN,K,e2]),tP=(0,p.useCallback)(e=>{let t=tr.find(t=>t.id===e);t&&(tN({eventAction:"click_tab_nastroyki-vklada",eventLabel:(0,T.y)(t.label)}),eX(t)),tj()},[tN,tj,tr]),tT=(0,p.useCallback)(e=>{e&&tb&&tb.amount_from?(th&&eZ(th),e8(tb.amount_from),to?eX((0,G.RF)(tb,ti)):tl(tb.term_from),eQ(!0)):e||((null==eK?void 0:eK.amount_from)&&(e8(eK.amount_from),to?eX((0,G.RF)(eK,ti)):tl(eK.term_from),eZ(null)),eQ(!1))},[tb,th,e8,to,ti,tl,eK]);(0,p.useEffect)(()=>{if(d()(eH.current,eU))return;let e={amount:null!=es?es:String(ts),period:null!=em?em:null,d_period:null!=ep?ep:0,...eU},t=(0,C.i)(e,ea.algo),l=((e,t,l)=>e<t?t:e>l?l:e)(+e.amount,ts,tc);e8(l),eX(((e,t,l,a)=>{let i=l.filter(t=>e>=(t.amount_from?t.amount_from-5:0)&&e<=(t.amount_to?t.amount_to+5:1/0)),n=i.find(e=>e.optionId===a&&0===V(e,t));if(n)return(0,G.RF)(n);i.sort((e,l)=>V(e,t)-V(l,t));let o=i[0];return o&&(0,G.RF)(o)})(l,t,Z.interest_rate.rates,eu)),tl(t),eH.current=eU},[Z.interest_rate.rates,ea.algo,e8,tl,eU,es,eu,ep,em,tc,ts]),(0,p.useEffect)(()=>{eH.current&&eX(e=>{let t=tr.find(t=>eu&&(null==e?void 0:e.optionId)?t.optionId===e.optionId&&t.value===e.value:t.label===(null==e?void 0:e.label));if(t)return t;let l=tr.find(t=>t.value===(null==e?void 0:e.value));return null!=l?l:tr[0]})},[eu,tr]),(0,p.useEffect)(()=>{eH.current&&isFinite(tu)&&tl(e=>+e>td?td:+e<tu?tu:e)},[tl,td,tu]),(0,p.useEffect)(()=>{X({amount:+e9,term:+tp,optionId:null==th?void 0:th.optionId,appUrl:ty})},[ty,null==th?void 0:th.optionId,tp,X,e9]);let tM=e=>{var t,l;return(0,a.jsx)(h.E,{data:{url:Z.url,title:Z.title,id:Z.id,bic:Z.bic||(null==Z||null==(t=Z.provider)?void 0:t.bic)||""},bank:{logoMob:null==el?void 0:el.logo_mob,url:null==el?void 0:el.url,name:null!=(l=null==el?void 0:el.name)?l:Z.bank_name},pageUrl:g.UZ.VKLADY,titlePromo:t_?" Накопительный счёт":" Вклад",tagTheme:t_?"blue":"orange",title:Z.bank_name,archiveText:" Этот вклад уже нельзя открыть. Посмотрите свежие предложения на нашей витрине",isMobile:K,isArchive:tm,isSmall:e,className:(0,c.A)(eg,!tm&&O().promo),eventCategory:eI,hideShareLinks:ew,isTag:eT,isOldUser:ee})},tL=(0,p.useCallback)(()=>{tN({eventAction:"click_summa",eventValue:e9}),e4.onBlur()},[tN,e4,e9]),tI=(0,p.useCallback)(()=>{tN({eventAction:"click_tab_nastroyki-vklada",eventLabel:tt}),e7.onBlur()},[tN,e7,tt]),tR=(0,p.useCallback)(e=>{tn(e)},[]),tE=ti+tf,tF=(()=>{var e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Y,{caption:tC,className:(0,c.A)(O().input,tC&&O().inputError),decimalsCount:2,label:eP,onBlur:tL,onChange:tD,onFocus:e4.onFocus,onKeyDown:w.C,placeholder:"Сумма",ref:eW,size:ey,state:tC?"error":void 0,unit:e3.unit,value:e9?Number(e9):void 0,withoutControls:!0}),!ea.algo&&(0,a.jsxs)(a.Fragment,{children:[to&&(0,a.jsx)(i.C,{activeVariant:"secondary",chips:tr,className:O().chipsForm,onChipClick:tP,size:"m",value:null==eJ?void 0:eJ.id}),!to&&(0,a.jsx)(o.Y,{caption:tk,className:(0,c.A)(O().input,tk&&O().inputError),decimals:"never",decimalsCount:0,disabled:!!tC,onBlur:tI,onChange:tw,onFocus:e7.onFocus,onKeyDown:w.C,placeholder:"Срок",size:ey,state:tk?"error":void 0,unit:(0,s.td)(Number(te),...y.eV.DAY),value:te?Number(te):void 0,withoutControls:!0}),Z.floatingRateInformations&&(0,a.jsx)(k.V,{data:Z.floatingRateInformations,handleMainRate:tR})]}),(null==(e=ea.algo)?void 0:e.id)==="mkb-nakop"&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:(0,c.A)(O().input,O().inputRange),children:(0,a.jsx)(r.Q,{label:"Срок",max:36,min:1,step:1,value:Math.round(tp/30.4375),ticks:[{value:1,label:(0,a.jsx)("span",{className:O().legend,children:"1 мес"})},{value:36,label:(0,a.jsx)("span",{className:O().legend,children:"36 мес"})}],decimals:"never",decimalsCount:0,size:ey,unit:"мес",onChange:e=>{tl(Math.round((null!=e?e:1)*30))}})}),(0,a.jsx)("div",{className:O().expenseHead,children:(0,a.jsxs)("div",{style:{display:"flex"},children:["Траты по карте в месяц",(0,a.jsx)(b.Y,{text:(0,a.jsx)(a.Fragment,{children:"При определении суммы операций учитываются суммы, списанные со счета карты с последнего дня предыдущего месяца по предпоследний день текущего месяца (включительно). Не учитываются операции из списка исключений по учету сумм операций по оплате товаров и услуг, с которыми можно ознакомиться в разделе \xabДокументы\xbb на сайте МКБ"}),iconClassName:O().infoIcon})]})}),(0,a.jsx)("div",{className:O().expenseSub,children:"От них зависит ставка накопительного счета"}),(0,a.jsx)(i.C,{chips:ea.algo.expenseChips,activeVariant:"secondary",className:O().chipsForm,size:"m",value:null==e$?void 0:e$.id,onChipClick:e=>{var t,l,a;e0(null!=(a=null==(t=ea.algo)?void 0:t.expenseChips.find(t=>t.id===e))?a:null==(l=ea.algo)?void 0:l.expenseChips[0])}})]})]})})(),tB=(0,p.useMemo)(()=>"".concat(e9,"_").concat(tp,"_").concat(null==th?void 0:th.rate,"%_").concat((0,T.y)(Z.title),"_").concat((0,T.y)(Z.bank_name),"_").concat(Z.id),[null==th?void 0:th.rate,tp,Z.bank_name,Z.id,Z.title,e9]),tO=void 0===th&&tm,{isCapitalization:tz,paymentFrequency:tU}=(0,p.useMemo)(()=>{let e=(null==eJ?void 0:eJ.optionId)===eu;return(0,G.xy)(Z,eJ,{isCapitalization:e?ec:void 0,paymentFrequency:e?ed:void 0,preferSelectedOption:!!eu})},[Z,ec,eu,ed,eJ]),tY=J===A.T.isPlatformDeposit&&!!$,{incomeData:tG,isLoading:tV}=(0,M.R)({amount:eR,term:eE,hasError:!!tC||!!tk,isCapitalization:tz,isDiscount:tY,rate:tE,interestPaymentPeriod:tU,trackInterestPaymentPeriod:!!eu,disabled:eF,isNewCustomer:!ee});return(0,a.jsxs)(n.m,{className:(0,c.A)(O().container,!tm&&O().containerFull,eo),children:[!tm&&!eb&&tM(),(0,a.jsxs)("div",{className:O().left,ref:eV,children:[tm&&(0,a.jsx)(f.Y,{title:"Вклад в архиве",url:g.UZ.VKLADY,text:"Его уже нельзя открыть. Но мы можем подобрать для Вас другие предложения от разных банков"}),!tm&&(0,a.jsx)(_.t,{isMobile:!!K,title:"Настройки ".concat(t_?"счета":"вклада"),pageUrl:ef,infoLink:{isShow:!en,text:"Подробнее о ".concat(t_?"счете":"вкладе"),idScrollBlock:x.Hr,offPadding:!0,widthMaxContent:!0},isSavingAccount:t_,chips:tv,isShowChips:K&&!!(null==tv?void 0:tv.length)&&!eY,isExpandSettings:eY,onToggleSettings:K?()=>{eG(e=>!e),tN({eventAction:"click__button__params__nastroyki_vklada"})}:void 0,content:tF,titleClassName:er,calculatorClassName:eA,chevronSrc:ek,eventCategory:eI,productId:String(Z.id)}),!en&&!tO&&(0,a.jsx)(v.Zi,{href:null==$?void 0:$.link,isMobile:K,isPlusFiveBonus:et,isOldUser:ee,className:(0,c.A)(O().qrDesc),eventCategory:eI,bannerText:null==$?void 0:$.bannerText,eventNameCard:eB,eventUrl:eO})]}),(0,a.jsxs)("div",{className:O().right,children:[tm&&!eb&&tM(!0),!tO&&(0,a.jsx)(E.x,{rate:tE,sum:Number(e9),term:Number(tp),productId:null!=(q=null==th||null==(l=th.mp)?void 0:l.product_id)?q:Z.id,tag:null==eJ?void 0:eJ.tag,isMobile:K,onEdit:tS,appUrl:null!=ty?ty:Z.online_application.url,depositType:J,onSwitchRate:tT,isRateSwitched:eq,switchRate:tg,isCapitalization:tz,refillSum:"",percentType:F.g3[0].value,period:(0,z.R)(Z).value,refillType:F.rU[0].value,unit:e3.unit,tags:Z.tags,discount:$,isSavingAccount:t_,extraInfo:ea,salaryToggle:e1,setSalaryToggle:e5,isShowDepositTip:ei,isHideButtons:en||!!e_,paymentFrequency:(0,G.dG)(tU),customActions:e_,shortChipsList:ev,firstDepositBonusTitle:eh,scrollOffset:e2,computeClassName:ex,withChart:eC,tipIcon:eN,tagIcon:ej,customTagTitle:eD,hideExternalLinks:eS,computeHeader:eM,computeTag:eL,eventCategory:eI,totalValues:tB,integrationType:null==(u=Z.external)?void 0:u.integrationType,calculatedBonus:null==tG?void 0:tG.bonusIncome,calculatedEffectiveRate:null!=(Q=null==(B=Z.efficientRate)?void 0:B.maximumRate)?Q:null==tG?void 0:tG.effectiveRate,calculatedProfit:null==tG?void 0:tG.profit,calculatedTotalProfit:null==tG?void 0:tG.totalProfit,calculatedEndingDate:null==tG?void 0:tG.endOfTerm,isLoading:tV,eventNameCard:eB,eventUrl:eO})]}),tO&&(0,a.jsx)(v.Zi,{href:null==$?void 0:$.link,isMobile:K,isPlusFiveBonus:et,isOldUser:ee,className:(0,c.A)(O().qrDesc,O().wide),eventCategory:eI,bannerText:null==$?void 0:$.bannerText,eventNameCard:eB,eventUrl:eO})]})}},31832:(e,t,l)=>{"use strict";l.d(t,{A:()=>p});var a=l(95155),i=l(76048),n=l(43126),o=l(2821),r=l(15239),s=l(12115),c=l(19559),u=l(50350),d=l(43959),m=l.n(d);function p(e){let{logo:t,bankName:l,caption:d,eventCategory:p,depositUrl:_,bankNameR:v,isMobile:h,eventNameCard:f,eventUrl:b,onClose:g}=e,A=(0,s.useCallback)(()=>{(0,c.oA)({event:"data-event",eventCategory:p,eventAction:"click_dropdown_messenger",eventNameCard:f,eventUrl:b})},[p,f,b]),x=(0,s.useCallback)(e=>{(0,c.oA)({event:"data-event",eventCategory:p,eventAction:"click_dropdown_messenger_".concat(e.name),eventNameCard:f,eventUrl:b}),window.open(e.url,"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300")},[p,f,b]),y=h?48:56;return h?(0,a.jsx)("div",{className:(0,o.A)(m().plate,m().fullwidth),children:(0,a.jsxs)("section",{className:m().columns,children:[(0,a.jsxs)("div",{className:m().column,children:[(0,a.jsxs)("div",{className:m().row,children:[(0,a.jsx)("div",{className:m().plateIcon,children:t&&(0,a.jsx)(r.default,{width:y,height:y,src:t,alt:"logo"})}),(0,a.jsxs)("div",{className:m().plateLabel,children:[(0,a.jsx)(n.D,{type:"h3",children:l}),d&&(0,a.jsx)("span",{className:m().caption,children:d})]})]}),(0,a.jsx)(u.d5,{isMobile:h,onClickItem:A,onClickChild:x,url:_,titleActionsList:"Вклад \xab".concat(d,"\xbb от ").concat(v)})]}),(0,a.jsx)("div",{role:"close-button",className:m().column,children:(0,a.jsx)("button",{className:m().closeButton,onClick:g,children:(0,a.jsx)(i._7M,{size:24})})})]})}):(0,a.jsxs)("section",{className:m().row,children:[(0,a.jsxs)("div",{className:(0,o.A)(m().plate,m().fullwidth),children:[(0,a.jsx)("div",{className:m().plateIcon,children:t&&(0,a.jsx)(r.default,{width:56,height:56,src:t,alt:"logo"})}),(0,a.jsxs)("div",{className:m().plateLabel,children:[(0,a.jsx)(n.D,{type:"h3",children:l}),d&&(0,a.jsx)("span",{className:m().caption,children:d})]})]}),(0,a.jsx)("div",{className:m().plate,children:(0,a.jsx)(u.d5,{isMobile:h,onClickItem:A,onClickChild:x,url:_,titleActionsList:"Вклад \xab".concat(d,"\xbb от ").concat(v)})}),(0,a.jsx)("div",{className:m().plate,children:(0,a.jsx)("button",{role:"close-button",className:m().closeButton,onClick:g,children:(0,a.jsx)(i._7M,{size:24})})})]})}},32104:(e,t,l)=>{"use strict";l.d(t,{E:()=>s});var a=l(95155),i=l(2821),n=l(12115),o=l(98715),r=l.n(o);let s=(0,n.memo)(e=>{let{className:t}=e;return(0,a.jsx)("div",{className:(0,i.A)(r().skeleton,t)})});s.displayName="Skeleton"},35102:(e,t,l)=>{"use strict";l.d(t,{p:()=>i});var a=l(9785);let i=()=>{var e;let t=new Headers({"user-agent":navigator.userAgent});return{isIOS:(null==(e=(0,a.userAgent)({headers:t}).os.name)?void 0:e.toLowerCase())==="ios"}}},39006:(e,t,l)=>{"use strict";l.d(t,{A:()=>a.A});var a=l(43184)},39255:(e,t,l)=>{"use strict";l.d(t,{W:()=>i});var a=l(2748);function i(e){var t;let l=e.filter(e=>e.bankInfluenceEvent===a.wy.SALARY_OR_PENSION)[0],i=e.filter(e=>e.bankInfluenceEvent===a.wy.SPENDING).sort((e,t)=>e.minimumSumSpending-t.minimumSumSpending),n=Math.max(...i.map(e=>e.bonusPercentageValue),0),o=n+(null!=(t=null==l?void 0:l.bonusPercentageValue)?t:0);return{salaryOfPerson:l,spending:i,maxRateSpending:n,floatingRate:o}}},39915:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var a,i,n=l(12115);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let r=function(e){return n.createElement("svg",o({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=n.createElement("rect",{width:28,height:28,rx:14,fill:"#F80"})),i||(i=n.createElement("path",{d:"M13.984 4.163a5.025 5.025 0 1 0 0 10.05 5.025 5.025 0 0 0 0-10.05Zm0 7.102a2.077 2.077 0 1 1 0-4.154 2.077 2.077 0 0 1 0 4.154ZM15.758 18.21c2.012-.409 3.217-1.362 3.281-1.413a1.366 1.366 0 1 0-1.71-2.132c-.012.01-1.297.997-3.413.998-2.115-.001-3.428-.988-3.44-.998a1.366 1.366 0 0 0-1.71 2.132c.065.052 1.32 1.03 3.388 1.43l-2.882 3.012a1.366 1.366 0 1 0 1.967 1.896l2.677-2.852 2.948 2.87a1.366 1.366 0 1 0 1.93-1.933l-3.036-3.01ZM13.916 15.663c-.003 0 .003 0 0 0s.003 0 0 0Z",fill:"#fff"})))}},40179:e=>{e.exports={tooltipText:"DepositTooltipTemplate_tooltipText__1GAbd",tooltipList:"DepositTooltipTemplate_tooltipList__yuKb_",listItem:"DepositTooltipTemplate_listItem__5eytV",description:"DepositTooltipTemplate_description__mYtwD"}},40474:(e,t,l)=>{"use strict";l.d(t,{k:()=>m});var a=l(95155),i=l(69142),n=l(2821),o=l(12115),r=l(19559),s=l(40599),c=l(92646),u=l(18271),d=l.n(u);let m=(0,o.memo)(e=>{let{onToggleAdditionalSettings:t,filterSettings:l,direction:o="row"}=e;return(0,a.jsxs)("div",{className:d().wrapper,children:[(0,a.jsx)("h6",{className:(0,n.A)(d().title,{[d().margin]:"column"===o}),children:"Что искать"}),(0,a.jsx)("div",{className:(0,n.A)(d().checkboxList,{[d().column]:"column"===o}),children:c.Yp.map(e=>{let n=l.includes(e.name);return(0,a.jsx)(i.S,{label:e.label,value:n,className:d().checkbox,dataQa:"filter-modal-additional-setting-".concat(e.name),onChange:l=>{(0,r.oA)({event:"data-event",eventAction:"vklady",eventCategory:"filter_catalog",eventLabel:(0,s.y)(e.label),eventValue:l?"on":"off"}),t(e.name,!n)}},e.name)})})]})});m.displayName="DepositsAdditionalSettings"},42994:(e,t,l)=>{"use strict";l.d(t,{T:()=>v});var a=l(95155),i=l(76048),n=l(53548),o=l(42195),r=l(44548),s=l(2821),c=l(12115),u=l(41105),d=l(68313),m=l.n(d),p=function(e){return e.button="button",e.detail="detail",e.compare="compare",e.favorites="favorites",e.share="share",e.open="open",e}({});function _(){}let v=e=>{let{icon:t,href:l,target:i,title:d,titleCaption:v,advantageAmountFrom:b,advantageBonus:g,advantageAmountTo:A,advantageInterestAccrual:x,tags:y,className:C,onOpenDetailModal:k,onDetailClick:N,onButtonClick:j,onOpenClick:D,buttonText:w="Подробнее",wide:S=!1,lkUrl:P}=e,T=[b,g,A,x].filter(e=>"string"==typeof(null==e?void 0:e.name)?null==e?void 0:e.name.length:null==e?void 0:e.name),M=(0,c.useCallback)(e=>{let{children:t}=e;return(null==l?void 0:l.length)?(0,a.jsx)(o.N,{href:l||"",target:i,className:(0,s.A)(m().plate,C),children:t}):(0,a.jsx)("div",{className:(0,s.A)(m().plate,C),children:t})},[C,l,i]),L=(0,c.useCallback)(e=>{k&&(e.preventDefault(),e.stopPropagation(),k(p.detail))},[k]),I=(0,c.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return l=>{switch(t&&(l.preventDefault(),l.stopPropagation()),e){case p.detail:return null==N?void 0:N(p.detail);case p.button:return null==j?void 0:j(p.button);case p.open:return null==D?void 0:D(p.open)}}},[j,N,D]);return(0,a.jsx)(M,{children:(0,a.jsxs)("div",{className:m().body,children:[(0,a.jsxs)("div",{className:m().left,children:[(0,a.jsxs)("div",{className:m().header,children:[(0,a.jsxs)("div",{className:m().titleWrapper,children:[(0,a.jsx)("div",{className:(0,s.A)(m().logoIcon),children:t}),(0,a.jsxs)("div",{className:(0,s.A)(m().title,{[m().noneCaption]:!(null==v?void 0:v.length)}),children:[!!(null==v?void 0:v.length)&&(0,a.jsx)("button",{title:v,onClick:L,className:(0,s.A)(m().caption,{[m().clickable]:k}),children:v}),(0,a.jsx)("p",{className:m().logoTitle,title:d,children:d})]})]}),!!(null==T?void 0:T.length)&&(0,a.jsx)("div",{className:(0,s.A)(m().advantagesList,{[m().wide]:S,[m().shortList]:S&&T.length<3}),children:T.map(e=>(0,a.jsxs)("div",{className:(0,s.A)(m().advantageItem,{[m().longItem]:T.length<3}),children:[(null==e?void 0:e.tooltipText)?(0,a.jsx)(u.Y,{text:e.tooltipText,iconClassName:m().iconClassName,children:(0,a.jsx)("span",{className:m().advantageItemCaption,children:null==e?void 0:e.caption})}):(0,a.jsx)("span",{className:m().advantageItemCaption,children:null==e?void 0:e.caption}),(0,a.jsx)("div",{className:m().advantageItemTitle,children:e.name})]},e.caption))}),(0,a.jsx)(h,{isMobile:!0,handleButtonClick:I})]}),(0,a.jsx)("div",{className:m().tagsList,children:y.map(e=>{let t="left"===e.position?{iconLeft:e.icon}:{iconRight:e.icon},l=0===e.text.trim().length;return(0,a.jsx)(r.v,{className:(0,s.A)(m().tag,e.backGround&&m()[e.backGround]),label:e.text,onIconRightClick:l?_:void 0,rounded:!0,...t},e.text)})})]}),(0,a.jsx)("div",{className:m().right,children:(0,a.jsx)("div",{className:m().buttonsWrapper,children:(0,a.jsxs)("div",{className:m().block,children:[(0,a.jsx)(h,{isMobile:!1,handleButtonClick:I}),(0,a.jsxs)("div",{className:m().column,children:[(0,a.jsx)(n.$,{className:(0,s.A)(m().button,m().appButton,{[m().wide]:S}),size:"xs",onClick:()=>I(p.button,!1),children:w}),P&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f,{href:P,onClick:I}),(0,a.jsx)(f,{href:P,isMobile:!0,onClick:I})]})]})]})})})]})})},h=e=>{let{isMobile:t,handleButtonClick:l}=e;return(0,a.jsx)(n.$,{className:(0,s.A)(m().button,m().detailButton,{[m().mobile]:t,[m().desktop]:!t}),onClick:l(p.detail),iconLeft:(0,a.jsx)(i.S2Q,{}),shape:"icon",variant:"secondary",size:"xs"})},f=e=>{let{isMobile:t,href:l,onClick:i}=e;return(0,a.jsx)(n.$,{as:"a",href:l,target:"_blank",size:"xs",variant:t?"secondary":"white",className:(0,s.A)(m().openButton,t?m().mobile:m().desktop),onClick:i(p.open),children:"Оформить сейчас"})};v.displayName="Plate"},43184:(e,t,l)=>{"use strict";l.d(t,{A:()=>_});var a=l(95155),i=l(2821),n=l(15239),o=l(12115),r=l(81637),s=l(20447),c=l(19559);let u={src:"/deposits/_next/static/media/cat.931aff9a.webp",height:111,width:185,blurDataURL:"data:image/webp;base64,UklGRowAAABXRUJQVlA4WAoAAAAQAAAABwAABAAAQUxQSCkAAAAAAAAPAwmUBAAIgnKWzfw/AGL//////3YANun/////3iEAxv//////vABWUDggPAAAANABAJ0BKggABQACQDgljAJ0APRBXldAAP6EHAYd/Mzkkp/i5zk6THKB2XEX3odLsZmqSqUODrH6AkwAAA==",blurWidth:8,blurHeight:5};var d=l(51299),m=l.n(d);let p=Object.freeze({navigator:(0,r.oq)(s.q.BASE_URL,"/navigator/stat_kak_zarabatyvat_s_finuslugami_privedite_druga_i_poluchite_bonusy_dlya_vas_i_dlya_nego"),dashboard:(0,r.oq)(s.q.LK_URL,"dashboard")}),_=(0,o.memo)(function(e){let{eventCategory:t,className:l,destination:o="navigator",variant:r="primary",onClick:s}=e,d=p[o];function _(){if(s)return s("Дарим бонус за друзей");(0,c.oA)({event:"data-event",eventAction:"click_banner_promo",eventCategory:t,eventLabel:"darim_bonus_za_druzey__".concat(d)})}return(0,a.jsxs)("a",{className:(0,i.A)(m().container,l,{[m().primary]:"primary"===r,[m().secondary]:"secondary"===r}),href:d,onClick:_,onAuxClick:_,children:[(0,a.jsx)("div",{className:m().textBlock,children:(0,a.jsx)("h3",{className:m().title,children:"Дарим бонус за друзей"})}),(0,a.jsxs)("div",{className:m().imageBlock,children:[(0,a.jsx)("p",{className:m().text,children:"Поделитесь промокодом и получите 2000₽ за каждого"}),(0,a.jsx)(n.default,{unoptimized:!0,className:m().image,src:u,alt:"cat"})]})]})})},43556:(e,t,l)=>{"use strict";l.d(t,{c:()=>n});var a=l(12115),i=l(1396);let n=()=>{let{frameId:e}=(0,i.T)().query;(0,a.useEffect)(()=>{new ResizeObserver(t=>{let l=t[0].target;window.parent.postMessage({type:"resize",frameId:e,height:l.scrollHeight},"*")}).observe(document.body)},[e])}},43959:e=>{e.exports={row:"Header_row__G5E4t",columns:"Header_columns__W7W_5",column:"Header_column__LRNA6",plate:"Header_plate__Jqzjn",fullwidth:"Header_fullwidth__UTBxD",plateIcon:"Header_plateIcon__Kce8n",plateLabel:"Header_plateLabel__r_Zhi",caption:"Header_caption__mx7uf",closeButton:"Header_closeButton__S5L5m"}},44630:e=>{e.exports={action:"Action_action__NPK0s",icon:"Action_icon__Luo_o"}},45378:(e,t,l)=>{"use strict";l.d(t,{i:()=>a});let a=(e,t)=>{if(e.period){let t=Number(e.period);return isNaN(t)?91:Math.round(30.4375*t)}if(e.d_period){let t=Number(e.d_period);return isNaN(t)?91:t}return(null==t?void 0:t.id)==="mkb-nakop"?t.defaultTermDays:1}},46842:e=>{e.exports={page:"Deposits_page__nEYw7",filterContainer:"Deposits_filterContainer__zDdVw",adFox:"Deposits_adFox__7jlOm",sectionWrapper:"Deposits_sectionWrapper__6VmUe",whiteBackground:"Deposits_whiteBackground__5Oa50",filterModal:"Deposits_filterModal__eAhz6"}},47557:(e,t,l)=>{"use strict";l.d(t,{U:()=>x});var a=l(12115),i=l(19927);let n=Object.freeze({activeBanks:void 0,amount:void 0,currency:void 0,interestAccrual:void 0,sortType:void 0,term:void 0,withCapitalization:void 0,withMonthlyPercent:void 0,withPreferentialTermination:void 0,withRefill:void 0,d_period:void 0});var o=l(5195),r=l(98591),s=l(19559),c=l(40599),u=l(72964),d=l(92980),m=l(22980),p=l(92646),_=l(97390),v=l(20439);let h=e=>{var t;let l=e.amount,a=e.term,i=e.currency;return!!(null!=(t=null!=l?l:a)?t:i)};var f=l(72052),b=l(1410),g=l(64765);let A=(e,t)=>(0,a.useMemo)(()=>{var l;return null!=(l=t.find(t=>t.value===e))?l:t[0]},[t,e]),x=e=>{var t;let{tag:l,currencies:x,banks:y,defaultValues:C,isDiscount:k,hasDynamicBonus:N,eventCategory:j="deposit_vitrina",subscription:D,sortLoading:w=!1,termOptions:S=[],isTermInDays:P=!1,showOnlyNonPromo:T=!1,onChange:M}=e,{params:L,setParams:I}=(0,m.A)(),[R,E]=(0,a.useState)((k||N)&&!T?_.r3.RatePlusBonus:_.r3.Rate),[F,B]=(0,a.useState)(()=>h(L)),[O,z]=(0,a.useState)(!0),[U,Y]=(0,a.useState)(!1),[G,V]=(0,a.useState)(!1),[W,H]=(0,a.useState)(),[q,Q]=(0,a.useState)(()=>[o.G.deposits]),[K,Z]=(0,a.useState)(()=>(function(e){var t;let{activeBanks:l,...a}=e,n=null==l||Array.isArray(l)?l:[l],o=Object.entries(a).reduce((e,t)=>{let[l,a]=t;return null==a?e:Array.isArray(a)?{...e,[l]:a.map(v.w)}:{...e,[l]:(0,v.w)(a)}},{}),r=o.term?Math.round(Number(o.term)*i.L):void 0;return{...o,...n?{activeBanks:n}:null,d_period:null!=(t=o.d_period)?t:r}})(L)),{handleLoad:J,isLoading:X}=(0,d.M)(),{currenciesOptions:$,defaultCurrencyItem:ee,defaultCurrency:et}=(0,a.useMemo)(()=>(function(e,t){var l;let a=e.map(e=>({value:e.code,label:e.title,id:e.id,unit:e.unit})),i=null!=(l=a.find(e=>e.value===t))?l:a[0],n=e.find(e=>e.code===i.value);return{currenciesOptions:a,defaultCurrencyItem:i,defaultCurrency:n}})(x,C.currencyCode),[x,C.currencyCode]),el=A(C.term,p.DU),ea=et?C.amount/et.value:+C.amount,{sortType:ei=R,clientSortType:en,currency:eo=ee.value,term:er=el.value,withRefill:es=C.withRefill,withCapitalization:ec=C.withCapitalization,withPartialWithdrawal:eu=C.withPartialWithdrawal,activeBanks:ed,withMonthlyPercent:em=C.withMonthlyPercent,withPreferentialTermination:ep=C.withPreferentialTermination,interestAccrual:e_,d_period:ev=Math.round(Number(el.value)*i.L)}=K,{banksOptions:eh,activeBanks:ef,activeBanksValue:eb}=(0,a.useMemo)(()=>(function(e,t){let l=t&&!Array.isArray(t)?[t]:t,a=[...e].sort((e,t)=>{let a=null==l?void 0:l.includes(String(e.id)),i=null==l?void 0:l.includes(String(t.id));return!a&&i?1:a&&!i?-1:0}).map(e=>({value:e.id,label:e.name})),i=a.filter(e=>{let{value:t}=e;return null==l?void 0:l.some(e=>e===t)});return{activeBanksValue:l,banksOptions:a,activeBanks:i}})(y,ed),[y,ed]),eg=A(er,p.DU),eA=A(ev,S),ex=P?eA:eg,ey=((e,t,l)=>(0,a.useMemo)(()=>{var a;return null!=(a=e.find(e=>e.value===t))?a:l},[e,t,l]))($,eo,ee),eC=(0,r.O)(ey.value).unit,ek=(0,u.G)({defaultValue:0===ea?void 0:()=>String(Math.ceil(ea)),format:"currency",unit:eC,type:"int"}),eN=(0,a.useMemo)(()=>ev===p.DU[0].value&&eo===$[0].value&&!ek.value&&!es&&!ec&&!eu&&(null==eb?void 0:eb.length)===0,[ev,eo,$,ek.value,es,ec,eu,eb]),ej=(0,a.useCallback)((e,t)=>{(null==t?void 0:t.fromUser)&&B(!0),Z(t=>({...t,...e})),M&&(null==D?void 0:D[Object.keys(e)[0]])&&M({amount:Number(ek.value),term:ev,interestAccrual:e_,activeBanks:eb,...e})},[eb,ek.value,e_,M,D,ev]),eD=(0,a.useCallback)(e=>{I(t=>({...t,...e}))},[I]);(e=>{let{isDiscount:t,hasDynamicBonus:l,showOnlyNonPromo:i,defaultSortType:n,setDefaultSortType:o,handleFiltersChange:r}=e,s=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=(t||l)&&!i?_.r3.RatePlusBonus:_.r3.Rate;e===n||s.current||(s.current=!0,o(e),r({sortType:e}))},[n,i,r,t,l,o])})({isDiscount:k,hasDynamicBonus:N,showOnlyNonPromo:T,defaultSortType:R,setDefaultSortType:E,handleFiltersChange:ej}),(e=>{let{isDiscount:t,hasDynamicBonus:l,sortLoading:i,showOnlyNonPromo:n,handleFiltersChange:o}=e,r=(0,a.useRef)(!1);(0,a.useEffect)(()=>{i||r.current||(r.current=!0,o({clientSortType:(t||l)&&!n?_.r3.RatePlusBonus:_.r3.Rate}))},[o,n,t,l,i])})({isDiscount:k,hasDynamicBonus:N,showOnlyNonPromo:T,sortLoading:w,handleFiltersChange:ej}),(e=>{let{isDiscount:t,hasDynamicBonus:l=!1,amountValue:i,termValue:n,sortType:o,showOnlyNonPromo:r=!1,handleFiltersChange:s}=e,c=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(c.current)return;let e=(0,f.N)(t||l,r,+i,n);e.find(e=>e.value===o)||(c.current=!0,s({sortType:e[0].value}))},[i,r,s,t,l,o,n])})({isDiscount:k,hasDynamicBonus:N,amountValue:ek.value,termValue:ex.value,sortType:ei,showOnlyNonPromo:T,handleFiltersChange:ej}),(0,a.useEffect)(()=>{B(h(L))},[null==l?void 0:l.id,L]);let{importantDeposits:ew,handleImportantDepositsChange:eS}=function(e){let{tag:t,currenciesOptions:l,defaultValues:i,defaultSortType:n,currencies:o,currencyValue:r,onFiltersChange:c,setIncreaseSort:u,onChangeAmount:d}=e,[m,_]=(0,a.useState)(()=>{var e;return null!=(e=null==t?void 0:t.deposits.map(e=>String(e)))?e:[]}),v=(0,a.useRef)(null==t?void 0:t.url);return(0,a.useEffect)(()=>{var e,a,h,f,A,x,y,C,k;if(!t||t.url===v.current)return;if(v.current=t.url,(0,g.G)(t)){m.length&&_([]);return}(0,s.oA)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"filters__click_premium",eventLabel:""}),u(!1),_(t.deposits.map(e=>String(e)));let N=(0,b.V)(null==t||null==(e=t.filter)?void 0:e.currency),j=l.find(e=>{let{id:t,value:l}=e;return t===N||l===N})||l[0],D=o.find(e=>e.code===j.value),w=D&&(null==D?void 0:D.code)===r,S=D?i.amount/(null==D?void 0:D.value):+i.amount,P=w?S:null!=(C=null==(a=t.filter)?void 0:a.amount)?C:0;d(0===P?"":P),c({sortType:n,withCapitalization:!!(null==(h=t.filter)?void 0:h.interest_capitalization),amount:P,withRefill:!!(null==(f=t.filter)?void 0:f.refill),activeBanks:[],currency:String(j.value),term:null!=(k=null==(A=p.DU.find(e=>{var l,a,i,n;let{value:o}=e;return o===(null==(i=t.filter)||null==(a=i.term)||null==(l=a.values)?void 0:l[0])||o===Number(null==t||null==(n=t.filter)?void 0:n.term.from)}))?void 0:A.value)?k:p.DU[0].value,withMonthlyPercent:!!(null==t||null==(x=t.filter)?void 0:x.interestsMonthly),withPreferentialTermination:!!(null==t||null==(y=t.filter)?void 0:y.earlyTermination)})},[o,l,r,n,i.amount,c,m.length,t,u,d]),{importantDeposits:m,handleImportantDepositsChange:(0,a.useCallback)(e=>{_(e)},[])}}({tag:l,currenciesOptions:$,defaultValues:C,defaultSortType:R,currencies:x,currencyValue:eo,onFiltersChange:ej,setIncreaseSort:Y,onChangeAmount:ek.handleChange}),eP=(0,a.useCallback)(()=>{B(!1);let e={sortType:R,currency:String(ee.value),amount:0,term:Number(p.DU[0].value),withRefill:C.withRefill,withCapitalization:C.withCapitalization,withPartialWithdrawal:C.withPartialWithdrawal,activeBanks:void 0,withMonthlyPercent:C.withMonthlyPercent,withPreferentialTermination:C.withPreferentialTermination,interestAccrual:void 0,d_period:void 0};eD(n),ej(e),ek.handleChange(""),z(!0),Y(!1),eS([])},[ek,ee.value,R,eD,C.withCapitalization,C.withPartialWithdrawal,C.withRefill,C.withMonthlyPercent,C.withPreferentialTermination,ej,eS]),eT=((e,t,l)=>(0,a.useCallback)((a,i,n)=>{t(t=>(t||(0,s.oA)({event:"data-event",eventAction:a&&i?"filters_float__click_".concat((0,c.y)(i)):"filters".concat(n?"_float":"","__click_button_all_param"),eventCategory:"deposits_".concat(e)}),!t)),l(a)},[e,t,l]))(j,V,H),eM=(e=>(0,a.useCallback)((t,l)=>{e(e=>l?[t,...e]:1===e.length?e[0]===o.G.deposits?[o.G.bonds]:[o.G.deposits]:e.filter(e=>e!==t))},[e]))(Q),eL=(0,a.useCallback)(e=>ej(e,{fromUser:!0}),[ej]),eI=function(e){let{currencies:t,defaultValues:l,currencyValue:i,isTermInDays:n,onChangeAmount:o,onFiltersChange:r,handleUpdateUrlParams:s}=e,c=(0,a.useCallback)(e=>r({sortType:e,clientSortType:e}),[r]),u=(0,a.useCallback)(e=>{let a=t.find(t=>t.code===e.value);if((null==a?void 0:a.code)===i)return;let n=a?l.amount/(null==a?void 0:a.value):+l.amount;o(Math.ceil(n)),r({currency:e.value,amount:Math.ceil(n)}),s({currency:e.value,amount:Math.ceil(n)})},[t,i,l.amount,r,o,s]),d=(0,a.useCallback)(e=>{let{value:t}=null!=e?e:{},l=n?"d_period":"term";r({[l]:t?Number(t):0}),s({[l]:t?Number(t):0})},[n,r,s]),m=(0,a.useCallback)(e=>{let t=0===e?void 0:e;r({amount:t}),s({amount:t})},[r,s]),p=(0,a.useCallback)(e=>{r({withRefill:e}),s({withRefill:e})},[r,s]),_=(0,a.useCallback)(e=>{r({withCapitalization:e}),s({withCapitalization:e})},[r,s]),v=(0,a.useCallback)(e=>{let t=null==e?[]:e.map(e=>{let{value:t}=e;return String(t)});r({activeBanks:t}),s({activeBanks:t})},[r,s]),h=(0,a.useCallback)(e=>{r({withMonthlyPercent:e}),s({withMonthlyPercent:e})},[r,s]),f=(0,a.useCallback)(e=>{r({withPreferentialTermination:e}),s({withPreferentialTermination:e})},[r,s]),b=(0,a.useCallback)(e=>{r({withPartialWithdrawal:e}),s({withPartialWithdrawal:e})},[r,s]),g=(0,a.useCallback)(e=>{r({interestAccrual:e}),s({interestAccrual:e})},[s,r]);return(0,a.useMemo)(()=>({handleActiveBanksChange:v,handleAmountChange:m,handleChangeCurrency:u,handleSortTypeChange:c,handleTermChange:d,handleWithCapitalizationChange:_,handleWithRefillChange:p,handleWithMonthlyPercentChange:h,handleWithPreferentialTerminationChange:f,handleWithPartialWithdrawalChange:b,handleInterestAccrualChange:g}),[v,m,u,c,d,_,p,h,f,b,g])}({currencies:x,defaultValues:C,currencyValue:eo,isTermInDays:P,onChangeAmount:ek.handleChange,onFiltersChange:eL,handleUpdateUrlParams:eD});return(0,a.useMemo)(()=>{var e;return{reset:eP,filterAdditionalSettings:q,handleChangeAdditionalSettings:eM,amountData:ek,term:ex,rate:null==l||null==(e=l.filter)?void 0:e.rate,currencyUnit:eC,isOpenModal:G,setIsOpenModal:V,banksOptions:eh,activeBanks:ef,initialSort:O,setInitialSort:z,sortType:ei,clientSortType:en,increaseSort:U,setIncreaseSort:Y,handleToggleModal:eT,handleUpdateUrlParams:eD,currency:ey,currenciesOptions:$,isLoading:X,handleLoad:J,withRefill:es,withCapitalization:ec,withPartialWithdrawal:eu,modalActiveField:W,setModalActiveField:H,isEmpty:eN,importantDeposits:ew,activeBanksValue:eb,withMonthlyPercent:em,withPreferentialTermination:ep,interestAccrual:e_,shouldFilterByAllOffers:F,...eI}},[eP,null==l||null==(t=l.filter)?void 0:t.rate,q,eM,ek,ex,eC,G,eh,ef,O,ei,en,U,eT,eD,ey,$,X,J,es,ec,eu,W,eN,ew,eb,em,ep,e_,eI,F])}},48858:(e,t,l)=>{"use strict";l.d(t,{QO:()=>r,RF:()=>o,dG:()=>p,xy:()=>c});var a=l(75722),i=l(35989),n=l(44104);let o=(e,t)=>{let l=String(e.rate).replace(".",",");return{tag:e.tag,id:e.term_from,value:e.term_from,label:"".concat((0,n.D)(e.term_from)," - ").concat(l,"%"),rate:e.rate+(null!=t?t:0),optionId:e.optionId}},r=(e,t,l)=>{var a;let n=null==(a=e.interest_rate.rates)?void 0:a[0],r=(null==n?void 0:n.term_from)===(null==n?void 0:n.term_to),s=(0,i.U)(e.currency_id),c=Number(e.amount.from||s.from),u=Number(e.amount.to||s.to),d=((e,t,l,a)=>e.filter(e=>{var i;let n=null!=(i=e.amount_from)?i:l,o=e.amount_to&&e.amount_to>0?e.amount_to:a;return t>=n&&t<=o}).sort((e,t)=>e.term_from-t.term_from))(e.interest_rate.rates,t,c,u),m=d.map(e=>o(e,l)),p=d.map(e=>e.term_to);return{minSum:c,maxSum:u,isFixedTerms:r,termChips:m,minTerm:Math.min(...d.map(e=>e.term_from)),maxTerm:Math.max(...p)||3650,terms:d}},s=Object.freeze({[a.A.EveryDay]:"DAILY",[a.A.Weekly]:"WEEKLY",[a.A.OnceAMonth]:"MONTHLY",[a.A.Quarterly]:"QUARTERLY",[a.A.Semiannually]:"SEMIANNUALLY",[a.A.Annually]:"ANNUALLY",[a.A.InTheEnd]:"IN_THE_END",[a.A.SpecifiedPeriodInDays]:"SPECIFIED_PERIOD_IN_DAYS"}),c=(e,t,l)=>{var a,i,n,o;if((null==l?void 0:l.isCapitalization)!==void 0&&void 0!==l.paymentFrequency)return{isCapitalization:l.isCapitalization,paymentFrequency:s[l.paymentFrequency]};let r=(null==(a=e.interest_capitalization)?void 0:a.has)===1,c=d(e.interest_payment),u=t&&e.options?e.options.find(e=>e.id===t.optionId):void 0;if((null==l?void 0:l.preferSelectedOption)&&(null==u?void 0:u.interestPayments.length)){let e=null!=(n=u.interestPayments.find(e=>!e.accountFromCustomer&&"CAPITALISATION"===e.method))?n:u.interestPayments.find(e=>"CAPITALISATION"===e.method),t=null!=e?e:u.interestPayments[0];return{isCapitalization:!!e,paymentFrequency:null!=(o=null==(i=t.periods[0])?void 0:i.type)?o:c}}return u?u.interestPayments.reduce((e,t)=>"CAPITALISATION"===t.method?{isCapitalization:!0,paymentFrequency:c}:e,{isCapitalization:r,paymentFrequency:c}):{isCapitalization:r,paymentFrequency:c}},u=Object.freeze({daily:"DAILY",weekly:"WEEKLY",monthly:"MONTHLY",quarterly:"QUARTERLY",half_year:"SEMIANNUALLY",annually:"ANNUALLY",end:"MONTHLY",specified_period_in_days:"SPECIFIED_PERIOD_IN_DAYS"}),d=e=>Object.entries(e).reduce((e,t)=>{let[l,a]=t;return a&&(null==u?void 0:u[l])?null==u?void 0:u[l]:e},"IN_THE_END"),m=Object.freeze({DAILY:a.A.EveryDay,WEEKLY:a.A.Weekly,MONTHLY:a.A.OnceAMonth,QUARTERLY:a.A.Quarterly,SEMIANNUALLY:a.A.Semiannually,ANNUALLY:a.A.Annually,IN_THE_END:a.A.OnceAMonth,INTEREST_AHEAD:a.A.InTheEnd,SPECIFIED_PERIOD_IN_DAYS:a.A.SpecifiedPeriodInDays}),p=e=>{var t;return null!=(t=null==m?void 0:m[e])?t:a.A.InTheEnd}},49351:e=>{e.exports={filter:"DepositStickyFilter_filter__yNpUk",headless:"DepositStickyFilter_headless__yUsCC",header:"DepositStickyFilter_header__Y4EwP",filterBottom:"DepositStickyFilter_filterBottom__i25pG",floating:"DepositStickyFilter_floating__C31H2",show:"DepositStickyFilter_show__giPWV",listFilter:"DepositStickyFilter_listFilter__XSPgQ",hideSort:"DepositStickyFilter_hideSort__MCXpN"}},49990:(e,t,l)=>{"use strict";l.d(t,{K:()=>u,_:()=>c});var a=l(95155),i=l(1591),n=l(40486),o=l(81637),r=l(20447),s=l(89910);function c(e,t,l){return!!(e&&!l||t&&l)}function u(e){var t,l,u,d,m;let{extraInfo:p,hideExternalLinks:_,salaryToggle:v,firstDepositBonusTitle:h,discount:f,incomeData:b,option:g,optionsMap:A,rate:x,isOldUser:y,isNewDesign:C,isOldPage:k,onSalaryToggleChange:N,onLinkClick:j,onProfitableOptionToggleChange:D}=e,w=c(g.firstDepositPromotionAllowed,g.repeatDepositPromotionAllowed,y),{profit:S,effectiveRate:P,bonusIncome:T}=b,{currency:M}=g,L=(null==p||null==(t=p.algo)?void 0:t.id)==="mkb-nakop",I=A[g.minimumPeriod.value],R=I.length>1?I[0]:void 0,E=g.maximumRate===(null==R?void 0:R.maximumRate),F=(null!=(u=null==R?void 0:R.maximumRate)?u:0)-I[I.length-1].maximumRate,B="+".concat((0,i.CE)(F.toFixed(2))," к ставке"),O=(0,o.oq)(r.q.BASE_URL,"/navigator/nakopit-i-sohranit/stat_chto_takoe_slozhnyj_procent_po_vkladu_i_kak_ego_poschitat?ysclid=lfmam3zaig67098551%22"),z=!f||!T||!w;return[{label:"Эффективная ставка",value:"".concat((0,s.jq)(P,2),"%"),tipText:"Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка.\nДополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее.",tipLink:_?void 0:O,tipLinkLabel:"Подробнее о том, как считать сложный процент",onTipClick:j,exclude:C},{label:"Ставка",value:(0,i.CE)(x),exclude:C},{label:"Открытие дебетовой карты",value:"Да",tipText:null!=(d=null==p||null==(l=p.karta)?void 0:l.label)?d:"Открывая счет, Вы соглашаетесь на оформление дебетовой карты банка",exclude:!L},{label:"Действие счета",value:"Бессрочно",exclude:!L},{label:"Зарплата или пенсия на карту МКБ",value:(0,a.jsx)(n.l,{value:v,checked:v,onChange:N}),tipText:"Процентная ставка применяется при условии зачисления заработной платы от юридических лиц и индивидуальных предпринимателей на картсчет Клиента, открытый в Банке или суммы пенсий от Фонда пенсионного и социального страхования Российской Федерации или иных органов (учреждений) на любой счет Клиента, открытый в Банке, поступивших в течение 60 календарных дней до каждой даты начисления процентов по счету.",exclude:!L},{label:"Доход от банка",value:(0,i.up)(S,{currencyCode:M}),exclude:C&&z},{label:h?"Бонус за первый вклад":"Бонус от Финуслуг",value:(0,i.up)(T,{currencyCode:M}),tipText:null==f?void 0:f.terms,tipLink:null==f?void 0:f.link,tipLinkLabel:null==f?void 0:f.linkLabel,exclude:!f||!T||!w||k},{label:B,value:(0,a.jsx)(n.l,{value:E,checked:E,onChange:e=>{D(e?R:I[I.length-1],B)}}),tipText:"При сумме вклада от ".concat((0,i.up)(null!=(m=null==R?void 0:R.minimumAmount)?m:0,{currencyCode:M})),exclude:!R||F<=0}].filter(e=>{let{exclude:t,value:l}=e;return!t&&l})}},50350:(e,t,l)=>{"use strict";l.d(t,{d5:()=>x});var a=l(95155),i=l(2821),n=l(15239),o=l(12115),r=l(99795),s=l(97069),c=l(73665),u=l(90249),d=l.n(u),m=function(e){return e.share="share",e.arrow="arrow",e.arrowBack="arrowBack",e}({});let p={[m.share]:c.A,[m.arrow]:r.A,[m.arrowBack]:s.A},_=(0,o.memo)(e=>{let{icon:t,alt:l,iconClassName:o,className:r,onClick:s,name:c,role:u,...m}=e,_=(0,a.jsx)(n.default,{className:(0,i.A)(d().icon,o),src:p[t],alt:l}),v=(0,i.A)(d().action,r);return(0,a.jsx)("button",{role:u,className:v,onClick:()=>null==s?void 0:s(c),...m,children:_})});_.displayName="Action";var v=l(69597),h=l(39915),f=l(63663),b=l(72751),g=l(17281),A=l.n(g);let x=(0,o.memo)(e=>{let{url:t,titleActionsList:l,isMobile:n,className:r,onClickChild:s,onClickItem:c}=e,[u,d]=(0,o.useState)(!1),p=(0,o.useMemo)(()=>(e=>{let{url:t,titleActionsList:l}=e,i=[{icon:(0,a.jsx)(b.A,{}),url:"https://vk.com/share.php?url=".concat(t,"&title=").concat(l),name:"vk"},{icon:(0,a.jsx)(h.A,{}),url:"https://connect.ok.ru/offer?url=".concat(t,"&title=").concat(l),name:"Ok"},{icon:(0,a.jsx)(f.A,{}),url:"https://telegram.me/share/url?url=".concat(t,"&text=").concat(l),name:"telegram"}];return{name:"share",icon:m.share,title:"Поделиться",childList:i}})({url:t,titleActionsList:l}),[l,t]),g=(0,o.useCallback)(()=>{d(e=>!e),c()},[c]);(0,o.useEffect)(()=>{d(!1)},[n]);let x=(0,o.useCallback)(()=>{d(!1)},[]);return(0,a.jsx)("div",{className:(0,i.A)(A().container,r),children:(0,a.jsxs)(o.Fragment,{children:[p.childList&&(0,a.jsxs)(v.d,{isOpen:u,direction:"horizontal",className:(0,i.A)(A().childContainer,n&&A().childContainerMobile),children:[p.childList.map(e=>(0,a.jsx)("button",{role:"share-action",title:e.name,onClick:()=>s(e),className:(0,i.A)(A().action,A().actionSocial),children:e.icon},e.name)),n&&(0,a.jsx)(_,{role:"close-action",onClick:x,alt:"close",icon:m.arrow,name:"share",className:(0,i.A)(A().action,A().actionArrow),iconClassName:A().actionArrowIcon})]}),(0,a.jsx)(_,{role:"open-action",onClick:g,name:p.name,alt:p.name,icon:u&&!n?m.arrow:p.icon,className:(0,i.A)(A().action,u&&!n&&A().actionArrow),iconClassName:(0,i.A)(u&&!n&&A().actionArrowIcon),title:p.title})]},p.name)})});x.displayName="ShareActions"},50387:(e,t,l)=>{"use strict";l.d(t,{E:()=>J});var a=l(95155),i=l(44548),n=l(2821),o=l(15239),r=l(52619),s=l.n(r),c=l(61126),u=l(12115),d=l(703),m=l(69597),p=l(79762),_=l(99795),v=l(97069),h=l(56764),f=l(60497),b=l(73665),g=function(e){return e.addToList="addToList",e.like="like",e.share="share",e.chart="chart",e.arrow="arrow",e.arrowBack="arrowBack",e}({});let A={[g.addToList]:p.A,[g.like]:f.A,[g.share]:b.A,[g.chart]:h.A,[g.arrow]:_.A,[g.arrowBack]:v.A};var x=l(44630),y=l.n(x);let C=(0,u.memo)(e=>{let{icon:t,alt:l,iconClassName:i,className:r,href:c,onClick:u,name:d,...m}=e,p=(0,a.jsx)(o.default,{className:(0,n.A)(y().icon,i),src:A[t],alt:l}),_=(0,n.A)(y().action,r),v=()=>null==u?void 0:u(d);return c?(0,a.jsx)(s(),{className:_,href:c,onClick:v,...m,children:p}):(0,a.jsx)("button",{className:_,onClick:v,...m,children:p})});C.displayName="Action";var k=l(56616),N=l.n(k);let j=(0,u.memo)(e=>{let{list:t,isMobile:l,onClickChild:i,onClickItem:o,className:r}=e,[s,c]=(0,u.useState)(null);return(0,u.useEffect)(()=>{c(null)},[l]),(0,a.jsx)("div",{className:(0,n.A)(N().container,r),children:t.map(e=>(0,a.jsxs)(u.Fragment,{children:[e.childList&&(0,a.jsxs)(m.d,{isOpen:s===e.name,direction:"horizontal",className:(0,n.A)(N().childContainer,l&&N().childContainerMobile),children:[e.childList.map(t=>(0,a.jsx)("button",{title:t.name,onClick:()=>i(e.name,t.name),className:(0,n.A)(N().action,N().actionSocial),children:t.icon},t.name)),l&&(0,a.jsx)(C,{onClick:()=>c(null),alt:"close",icon:g.arrow,name:"share",className:(0,n.A)(N().action,N().actionArrow),iconClassName:N().actionArrowIcon})]}),(0,a.jsx)(C,{onClick:((e,t)=>()=>{t&&c(t=>e===t?null:e),o(e)})(e.name,!!e.childList),name:e.name,alt:e.name,icon:s!==e.name||l?e.icon:g.arrow,className:(0,n.A)(N().action,s===e.name&&!l&&N().actionArrow),iconClassName:(0,n.A)(s===e.name&&!l&&N().actionArrowIcon),title:e.title})]},e.name))})});j.displayName="Actions";var D=l(89698),w=l(55670),S=l(93757),P=l(19559),T=l(54319),M=l(40599),L=l(55921),I=l(34106),R=l(53548);let E={src:"/deposits/_next/static/media/warning-cat.19d38374.svg",height:329,width:348,blurWidth:0,blurHeight:0};var F=l(94370),B=l(98742),O=l(52526),z=l.n(O);let U=e=>{let{onClose:t,text:l,title:i}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)(o.default,{className:z().image,src:E,alt:"warning cat",width:347.46,height:328}),(0,a.jsx)("h5",{className:z().title,children:i}),(0,a.jsx)("p",{className:z().text,children:l}),(0,a.jsx)(R.$,{onClick:t,size:"s",className:z().button,children:"Понятно, спасибо"})]})},Y=(0,u.memo)(e=>(0,a.jsxs)(F.Z,{children:[!e.isMobile&&(0,a.jsx)(B._s,{contentClassName:z().drawer,isOpen:e.isOpen,onClose:e.onClose,children:(0,a.jsx)(U,{...e})}),e.isMobile&&(0,a.jsx)(B.LV,{className:z().mobilePopup,isOpen:e.isOpen,onClose:e.onClose,children:(0,a.jsx)(U,{...e})})]}));Y.displayName="PromoStubModal";var G=l(81637),V=l(39915),W=l(63663),H=l(72751),q=l(22687),Q=l.n(q);let K=(0,c.env)("NEXT_PUBLIC_BASE_URL"),Z={white:"primary",blue:"primary",green:"green",yellow:"primary",orange:"orange",purple:"purple",lightPurple:"purple",pink:"primary"},J=(0,u.memo)(e=>{let{className:t,data:l,bank:r,isArchive:m,pageUrl:p,titlePromo:_,title:v,scrollBlockId:h,isMobile:f,isSmall:b,tagTheme:A="orange",moreAboutLinkText:x="",eventCategory:y="",hideShareLinks:C=!1,isTag:k=!0,isOldUser:N}=e,{id:R}=l,E=(0,u.useRef)({title:"",text:""}),[F,B]=(0,u.useState)(!1),O=(0,u.useMemo)(()=>(e=>{let{dataUrl:t,pageUrl:l,title:i}=e,n=(0,G.oq)((0,c.env)("NEXT_PUBLIC_BASE_URL")||"",l,t),o=[{icon:(0,a.jsx)(H.A,{}),url:"https://vk.com/share.php?url=".concat(n,"&title=").concat(i),name:"vk"},{icon:(0,a.jsx)(V.A,{}),url:"https://connect.ok.ru/offer?url=".concat(n,"&title=").concat(i),name:"Ok"},{icon:(0,a.jsx)(W.A,{}),url:"https://telegram.me/share/url?url=".concat(n,"&text=").concat(i),name:"telegram"}];return[{name:"share",icon:g.share,title:"Поделиться",childList:o}]})({dataUrl:l.url,pageUrl:p,title:v}),[l.url,p,v]),z=(0,L.A)(),U=(0,u.useCallback)(e=>{switch(e){case"share":(0,P.oA)({eventCategory:y,eventAction:"click_share",eventLabel:String(R)});break;case"compare":E.current={title:"Скоро заработает",text:"Мы уже заканчиваем работу над разделом. Скоро вы сможете сравнивать предложения и выбирать выгодные условия по кредиту"},B(!0);break;case"like":E.current={title:"\xabИзбранное\xbb скоро заработает",text:"Мы уже доделываем этот раздел и скоро представим его вам. Вы сможете добавлять в него лучшие предложения"},B(!0)}},[y,R]),q=(0,u.useCallback)((e,t)=>{if("share"===e){var l;let e=null==(l=O.find(e=>"share"===e.name))?void 0:l.childList,a=null==e?void 0:e.find(e=>e.name===t);a&&((0,P.oA)({eventCategory:y,eventAction:"click_share_"+a.name,eventLabel:String(R)}),window.open(a.url,"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300"))}},[O,y,R]),J=(0,u.useCallback)(()=>{(0,S._)({eventCategory:p,eventAction:S.y.popup,eventActionText:"warning"}),B(!1)},[p]),X=(0,u.useCallback)(()=>h?(0,T.e)(h,{offset:z,position:"top"}):null,[h,z]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{className:(0,n.A)(Q().wrapper,{[Q().wrapperArchive]:m,[Q().wrapperSmall]:m||b,[Q().wrapperHideShareLinks]:C},t),children:[(0,a.jsxs)(d.J,{className:(0,n.A)(Q().company,b&&Q().companySmall),children:[(0,a.jsx)("div",{children:(0,a.jsxs)("h1",{className:Q().title,children:[v,(0,a.jsxs)("span",{className:(0,n.A)(Q().subTitle,m&&Q().subTitleArchive),children:[!b&&(0,a.jsx)(i.v,{className:(0,n.A)(Q().chip,Q().chipDesc),label:(0,D.n)(_),variant:Z[A]})," ",(0,a.jsxs)("span",{className:Q().subTitleText,children:["\xab",l.title,"\xbb"]})]})]})}),(null==r?void 0:r.logoMob)&&(0,a.jsx)(s(),{href:"".concat(K,"/banki/").concat(r.url,"/").concat(p),className:(0,n.A)(Q().logoContainer,(m||b)&&Q().logoContainerArchive,!r.url&&Q().disabled),target:"_self",onClick:()=>{(null==r?void 0:r.name)&&(0,P.oA)({eventCategory:"vklady",eventAction:"click_company_logo_"+(0,M.y)(r.name),eventLabel:String(R)})},children:(0,a.jsx)(o.default,{className:Q().logo,src:(0,w.z)(l.bic),alt:"логотип банка",width:48,height:48})})]}),(0,a.jsxs)(d.J,{className:(0,n.A)(Q().actionsContainer,b&&Q().actionsContainerSmall),children:[(0,a.jsxs)("div",{className:Q().actions,children:[k&&(0,a.jsx)(i.v,{className:(0,n.A)(Q().chip,(!b||f)&&Q().chipMob),label:(0,D.n)(_),variant:Z[A]}),!m&&!C&&(0,a.jsx)(j,{isMobile:f||b,list:O,onClickItem:U,onClickChild:q,isOldUser:N})]}),!m&&!!(null==x?void 0:x.length)&&(0,a.jsx)(I.e,{offPadding:!0,text:x,iconColor:"light",mainPageUrl:p,className:Q().link,onClick:X})]})]}),(0,a.jsx)(Y,{isMobile:f,onClose:J,text:E.current.text,title:E.current.title,isOpen:F})]})});J.displayName="Promo"},50769:(e,t,l)=>{"use strict";l.d(t,{U:()=>D,F:()=>j});var a=l(5195),i=l(6425),n=l(19927),o=l(75722),r=l(46828),s=l(96065),c=l(25844),u=l(97390),d=l(2748),m=l(55670),p=l(67028);let _={0:[1,2,3,4,5,6],1:[23,24],2:[8],4:[1,8,9],5:[12],10:[6]},v={INIT_MIN_TERM_DEFAULT:1,END_WORK_DAY_UTC_HOURS:13,isWorkTime(e){return!!e&&e.getUTCHours()<this.END_WORK_DAY_UTC_HOURS},isWeekend:e=>!!e&&[0,6].includes(e.getDay()),isHoliday(e){if(!e)return!1;let t=e.getMonth(),l=e.getDate();return t in _&&_[t].includes(l)}},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number(Number(e).toFixed(t))},f=e=>{let t=new Date(e);return t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t};var b=l(40683),g=l(67087),A=l(48188),x=l(89910),y=l(233),C=l(37190);function k(e){var t,l,a,i,n,o,r;let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=e.interestPayments,u=null!=(o=c.find(e=>!e.accountFromCustomer&&"CAPITALISATION"===e.method))?o:c.find(e=>"CAPITALISATION"===e.method),d=null!=(r=null==u||null==(l=u.periods)||null==(t=l[0])?void 0:t.type)?r:null==(n=c[0])||null==(i=n.periods)||null==(a=i[0])?void 0:a.type;return s?(0,C.BP)(d):(0,g.v)(null!=d?d:"")}var N=l(35891);let j=e=>{let{deposits:t,banks:l,specialDeposits:a,sortType:c,increaseSort:u}=e;return(e=>{let{deposits:t,banks:l,specialDeposits:a}=e;return t.length?t.map(e=>{var t,c,u;let{contentAttributes:d,provider:m}=e,p=null!=(c=l[d.bic])?c:l[Number(m.bic)];if(!p)return;let _=(e=>{let t=e.filter(e=>e.active);if(!t.length)return null;let l=t[0].currencies[0],a=l.rates[0];return t.reduce((e,t)=>{let i=t.currencies.reduce((e,t)=>{let l=t.rates.reduce((e,t)=>{let{maximumRate:l}=t;return l>e.maximumRate?t:e},t.rates[0]);return l.maximumRate>e.rate.maximumRate?{...t,rate:l}:e},{...l,rate:a});return i.rate.maximumRate>e.currency.rate.maximumRate?{...t,currency:i}:e},{...t[0],currency:{...l,rate:a}})})(e.attributes.options);if(!_)return;let{currency:{rate:v}}=_,h=(0,s.q6)({rate:v.maximumRate,depositSum:v.minimumAmount,isCapitalization:!1,term:(e=>{let{type:t,value:l}=e;switch(!0){case t===i.s.DAY:return l;case t===i.s.MONTH:return Math.round(l*n.L);case t===i.s.YEAR:return Math.round(365*l);default:return 0}})(v.minimumPeriod),period:r.A.Day,paymentFrequency:o.A.InTheEnd});return{name:e.name,url:d.url,id:e.id,logoMob:p.logo_mob,order:d.order,bankName:p.name,bic:String(d.bic),rateAmount:v.minimumAmount,computeData:h,currencyUnit:"₽",isArchived:!1,amount:v.minimumAmount,type:e.attributes.asSavingAccount?"savingAccount":"deposit",specialOrder:null!=(u=null==(t=a[e.id])?void 0:t.order)?u:null,term:(e=>{let{type:t,value:l}=e;switch(!0){case t===i.s.DAY:return Math.round(l/n.L);case t===i.s.MONTH:return l;case t===i.s.YEAR:return 12*l;default:return 0}})(v.minimumPeriod),isNotAmount:!0,isTermEmpty:!0,asSavingAccount:e.attributes.asSavingAccount}}).filter(Boolean):[]})({deposits:t,banks:l,specialDeposits:a}).sort((e,t)=>(0,N.A)({deposit1:e,deposit2:t,isLeadGen:!1,sortType:c,increaseSort:u}))};function D(e){let{initialPlatformDeposits:t=[],initialAnotherDeposits:l=[],initialLeadGenDeposits:i=[],filter:_,region:g,town:D,discounts:w,anotherDeposits:S,platformDeposits:P,newPlatformDeposits:T,bankTowns:M,banks:L,bounds:I,allExtraInfo:R,isPlusFiveBonus:E,isOldUser:F,anotherDepositsInCount:B=!0,getOnlyInitialData:O=!1,specialDeposits:z={},leadGenDeposits:U=[],precomputedLeadGenDeposits:Y,initialAllDepositsLength:G,initialCurrentDepositsLength:V,calculateFilterAbilities:W=!0,withSavingAccounts:H=!1,shouldFilterByAllOffers:q=!1,allOffers:Q=null,showOnlyNonPromo:K=!1}=e,{amount:Z,term:J,sortType:X,order:$,importantDeposits:ee=[],filterAdditionalSettings:et=[a.G.bonds,a.G.deposits]}=_;if(O){var el,ea;let{initialPlatformDeposits:e,initialAnotherDeposits:a,anotherDepositsInCount:n,initialLeadGenDeposits:o,initialAllDepositsLength:r,initialCurrentDepositsLength:s}={initialPlatformDeposits:t,initialAnotherDeposits:l,anotherDepositsInCount:B,initialLeadGenDeposits:i,initialAllDepositsLength:G,initialCurrentDepositsLength:V},c=e.length+(n?a.length:0);return{platform:e,another:a,leadGen:o,allLength:r||c,currentLength:s||c,boundsIsEmpty:!0,fitsForMonthlyPercentFilter:!0,fitsForPreferentialTerminationFilter:!0,fitsForCapitalization:!0,fitsForRefill:!0}}let ei=null==w?void 0:w.find(e=>"five_procent"===e.unique_key),en={..._,amount:Z?Number(Z):null,term:Number(null!=J?J:0)},eo=null==L?void 0:L.reduce((e,t)=>({...e,[Number(t.bic)]:t}),{}),er=function(e){let{bounds:t,filter:l,isValid:a}=e;if(!a)return[];let{amount:i,term:o,currency:r}=l;return t.reduce((e,t)=>{var l,a;let s=(t&&(null==(l=t.api_data)?void 0:l.product)||{}).minCouponPaymentSizePercent,c={bond:t,depositValue:null!=i?i:0,depositPeriod:o},d=(e=>{let t=Math.round(e.depositPeriod*n.L);return e?((e,t)=>{let l=e.bond&&e.bond.api_data&&e.bond.api_data.product||{},a=l.price&&l.price.base,i=l.price?l.price.total:1e3,n=Math.floor(e.depositValue/i),o=h(n*i),r=(l.eventsData&&l.eventsData.events||[]).filter(e=>"INTR"===e.type),s=r.findIndex(e=>{let l=f(e.eventDate);return l.setHours(23),l.setMinutes(59),l.setSeconds(59),l.setMilliseconds(0),t>=f(e.eventStartDate)&&t<=l}),c=0;if(s>=0){let e=r[s],l=Math.floor((t.getTime()-f(e.eventStartDate).getTime())/864e5),i=h(e.paymentSizePercent*a*l/36500);return s>=1&&(c=r.slice(0,s).reduce((e,t)=>h(e+t.paymentSize),0)),h(n*a+n*i+n*c-o)}return 0})(e,(e=>{let t=f((e=>{for(v.isWorkTime(e)||e.setDate(e.getDate()+1);v.isWeekend(e)||v.isHoliday(e);)e.setDate(e.getDate()+1);return e})(new Date));return t.setDate(t.getDate()+e),t})(t)):0})(c),m=d<=5e6?.87:.85,p=i?h((e=>{let t=e.bond&&e.bond.api_data&&e.bond.api_data.product||{},l=t.minCouponPaymentSizePercent,a=e.income,i=t.price?t.price.total:1e3,o=h(Math.floor(e.depositValue/i)*i),r=Math.round(e.depositPeriod*n.L);return a&&o&&r?h(a/o*365/r*100,1):l})({...c,income:d})*m):s,_=d*m;if(p<=0||_<=0)return e;let b=Math.round(30.4375*c.depositPeriod);return[...e,{name:t.name,url:t.url,id:t.id,logoMob:null!=(a=t.image_url)?a:"",rateAmount:p,computeData:{result:_,profit:_,rate:p,effectiveRate:p,bonus:0,bonusRate:0,termDays:b,onlyBonusFloatingRate:0},currencyUnit:null!=r?r:"₽",tag:t.tag,term:null!=o?o:0,isBound:!0,isArchived:!1,amount:null!=i?i:0,type:u.ch.Bond,specialOrder:null,bic:""}]},[])}({bounds:ee.length?I.filter(e=>ee.includes(String(e.id))):I,filter:en,isValid:et.includes(a.G.bonds)}),es=et.includes(a.G.deposits),{items:ec,...eu}=function(e){let{deposits:t,banks:l,allExtraInfo:a,filter:i,region:m,discount:p,isOldUser:_,isPlusFiveBonus:v,isValid:h,specialDeposits:f}=e;return h?t.reduce((e,t)=>{var h,g;let N=function(e){var t,l,a,i,m;let p,{deposit:_,normalizedBanks:v,filter:h,allExtraInfo:f,region:g}=e,{amount:N,term:j,currency:D,withMonthlyPercent:w=!1,withPreferentialTermination:S=!1,withCapitalization:P,withRefill:T}=h,M=D||c.bc,L=null==v?void 0:v[Number(_.bic)],I=null,R=N,E="DAY"===h.termUnit?Math.round(j):Math.round(j*n.L),F=E,B=null,O=null,z=!!_.options[0].replenishment||_.asSavingAccount,U=_.options[0].interestPayments.some(e=>"CAPITALISATION"===e.method),Y=k(_.options[0],h.isCalculatorOfferFilter),G=_.options[0].currencies[0],V=[],W=f[_.internalUrl],H=function(e){let{deposit:t,region:l,bankId:a,filter:i,currencyUnit:n}=e,o=!t.regions||!(null==l?void 0:l.region_id)||t.regions.includes(+l.region_id),r=(0,s.Ai)(i,a);return(!n||n===c.bc)&&r&&o}({deposit:_,region:g,currencyUnit:D,filter:h,bankId:String(null==L?void 0:L.id)}),q=(null==(t=_.options.find(e=>e.active))?void 0:t.rateType)===d.Y4.FLOATING;H&&_.options.filter(e=>e.active).forEach(e=>{var t;let l={};if(h.isCalculatorOfferFilter&&(l=(0,C.Rf)(e,{capitalization:P,floatingRate:h.floatingRate})),!l)return;let a=l;null==(t=e.currencies)||t.forEach(t=>{var l,i,c,u;let m=function(e,t){var l;if((null==t||null==(l=t.algo)?void 0:l.id)==="mkb-nakop"){let{algo:e}=t;return e.expenseChips.map(t=>({minimumAmount:e.minAmount,maximumAmount:e.maxAmount,minimumPeriod:{type:"DAY",value:0},maximumPeriod:{type:"DAY",value:1/0},minimumRate:t.rateWithSalary}))}return e.rates}(t,W);m.forEach(e=>V.push(e.minimumAmount));let v=null;if(_.isLadderDeposit)v=function(e){let{option:t,currencyRates:l,currentAmount:a,filterTerm:i,filterTermUnit:o}=e;if(!function(e,t,l){if(!t)return!0;let{minimum:a,maximum:i}=e.duration;if("DAY"===l)return t>=a&&t<=i;let o=Math.round(a/n.L),r=Math.round(i/n.L);return t>=o&&t<=r}(t,i,o))return null;let r=function(e,t,l){let{minimum:a,maximum:i}=e.duration,o="DAY"===l?Math.round(t):Math.round(t*n.L);return(!o||o<a)&&(o=a),i&&o>i&&(o=i),o}(t,i,o),s=Math.min(...l.map(e=>e.minimumAmount)),c=null!=a?a:s,u=l.map(e=>{var t;return{amount_from:e.minimumAmount,amount_to:e.maximumAmount,term_from:e.minimumPeriod?(0,y.i)(e.minimumPeriod):1,term_to:e.maximumPeriod?(0,y.i)(e.maximumPeriod):r,rate:null!=(t=e.maximumRate)?t:e.minimumRate}}),d=(0,A.x)({amount:c,term:r,rates:u});return d?{nextRefill:!!t.replenishment,nextPartialWithdrawal:!!t.partialWithdrawal,nextIsCapitalization:!!t.interestPayments.find(e=>"CAPITALISATION"===e.method),nextRate:d.rate,nextTag:null,nextTerm:r,nextAmount:c}:null}({option:e,currencyRates:m,currentAmount:N,filterTerm:j,filterTermUnit:null!=(l=h.termUnit)?l:"MONTH"});else{let t=(u=null!=(i=h.termUnit)?i:"MONTH",[...m].sort((e,t)=>t.minimumRate-e.minimumRate).find(e=>{let t="number"!=typeof N||e.minimumAmount&&e.minimumAmount<=N&&(!e.maximumAmount||e.maximumAmount>=N),l=e.minimumPeriod?(0,y.i)(e.minimumPeriod):0,a=e.maximumPeriod?(0,y.i)(e.maximumPeriod):1/0,i=!j||("DAY"===u?j>=l&&j<=a:j>=Math.round(l/n.L)&&j<=Math.round(a/n.L));return t&&i}));t&&(v=function(e){var t,l;let{option:a,depositRate:i,currentTerm:n,currentAmount:o}=e;return{nextRefill:!!a.replenishment,nextPartialWithdrawal:!!a.partialWithdrawal,nextIsCapitalization:!!a.interestPayments.find(e=>"CAPITALISATION"===e.method),nextRate:i.minimumRate,nextTag:null!=(l=null==(t=i.tags)?void 0:t.title)?l:null,nextTerm:function(e,t){let l=e,a=t.minimumPeriod&&(0,y.i)(t.minimumPeriod),i=t.maximumPeriod&&(0,y.i)(t.maximumPeriod);return a&&e<a&&(l=a),i&&e>i&&(l=i),l}(n,i),nextAmount:o||i.minimumAmount}}({depositRate:t,option:e,currentTerm:E,currentAmount:N}))}if(!v)return;let{nextRefill:f,nextRate:b,nextTerm:g,nextTag:C,nextAmount:D}=v,M=(0,s.Jc)({..._,options:[e]},f);if(!(0,s.cT)({computedFlags:M,currentFilters:{withCapitalization:P,withMonthlyPercent:w,withPreferentialTermination:S,withRefill:T}}))return;let L=w&&!P&&M.hasMonthlyPercent,G=!L&&(null!=(c=a.isCapitalization)?c:v.nextIsCapitalization),H=L?o.A.OnceAMonth:k(e,h.isCalculatorOfferFilter),Q=(0,s.q6)({rate:b,depositSum:D,isCapitalization:G,term:g,period:r.A.Day,dateStart:h.dateStart,paymentFrequency:H,floatingRateInformations:_.floatingRateInformations});if(!Q)return;let K=(0,x.rW)(Q.effectiveRate,2),Z=(0,x.rW)((0,s.C6)(_,Q.effectiveRate,b),2);(0,s.tq)({catalogRate:Z,effectiveRate:Q.effectiveRate,productRate:b,filterRate:h.rate,inputRate:h.inputRate,isCalculatorOfferFilter:h.isCalculatorOfferFilter})&&(null!==O&&K<O||(O=K,p=e.id,z=f,h.isCalculatorOfferFilter&&(q=e.rateType===d.Y4.FLOATING),U=G,Y=H,I=b,B=C,F=g,R=D))})});let Q=U,K=(0,s.Jc)(_,_.asSavingAccount||_.options.some(e=>e.active&&!!e.replenishment)),{finuslugiBonusAllowed:Z,finuslugiBonusPromotion:J,floatingRateInformations:X}=_,$=(0,s.q6)({rate:I,depositSum:R,isCapitalization:Q,term:F,period:r.A.Day,dateStart:h.dateStart,paymentFrequency:Y,floatingRateInformations:X}),ee=(0,s.lx)(_,$,I);if(!ee)return H?K:void 0;if(!(0,s.tq)({catalogRate:ee.effectiveRate,effectiveRate:null!=(l=null==$?void 0:$.effectiveRate)?l:ee.effectiveRate,productRate:I,filterRate:h.rate,inputRate:h.inputRate,isCalculatorOfferFilter:h.isCalculatorOfferFilter}))return K;let et={legalName:function(e){if(!e)return"";if("string"==typeof e){var t;return null==(t=JSON.parse(e)[0])?void 0:t.name}return null==e?void 0:e[0].name}(null==L?void 0:L.legal_entities),logoMob:null!=(i=null==L?void 0:L.logo_mob)?i:"",bankName:null!=(m=null==L?void 0:L.name)?m:""},el=(0,b.Dm)({options:_.options,mkbData:void 0,additionalRate:0});return{deposit:{name:_.name,url:_.internalUrl,id:_.id,bic:_.bic,exclusive:_.exclusive,isNotAmount:!N,isRefill:z,rateAmount:R,computeData:ee,currencyUnit:M,tag:B,isCapitalization:U,...h.isCalculatorOfferFilter?{paymentFrequency:Y}:{},optionId:p,term:"DAY"===h.termUnit?F:j||Math.round(F/n.L),isArchived:!!_.archive,isTermEmpty:0===j,isFixedTerm:1===el.length&&"fixed"===el[0].termType,isLadderDeposit:_.isLadderDeposit,tags:null!=(a=_.tags)?a:[],promo:_.promo,finuslugiBonusAllowed:Z,finuslugiBonusPromotion:null!=J?J:null,floatingRateInformations:null!=X?X:null,amount:Math.min(...V),type:_.asSavingAccount?u.ch.SavingAccount:u.ch.Deposit,hasDiscount:!1,currencies:G,asSavingAccount:_.asSavingAccount,isFloating:q,...et},...K}}({deposit:t,normalizedBanks:l,filter:i,allExtraInfo:a,region:m,isOldUser:_,isPlusFiveBonus:v,discount:p});return N&&(e.hasMonthlyPercent||(e.hasMonthlyPercent=N.hasMonthlyPercent),e.hasPreferentialTermination||(e.hasPreferentialTermination=N.hasPreferentialTermination),e.hasCapitalization||(e.hasCapitalization=N.hasCapitalization),e.hasRefill||(e.hasRefill=N.hasRefill),N.deposit&&e.items.push({...N.deposit,specialOrder:null!=(g=null==(h=f[t.id])?void 0:h.order)?g:null})),e},{items:[],hasMonthlyPercent:!1,hasPreferentialTermination:!1,hasCapitalization:!1,hasRefill:!1}):{items:[],hasMonthlyPercent:!1,hasPreferentialTermination:!1,hasCapitalization:!1,hasRefill:!1}}({deposits:P.filter(e=>ee.length?ee.includes(String(e.id)):!!z[e.id]||!e.archive),isOldUser:F,isPlusFiveBonus:E,discount:ei,filter:en,banks:eo,allExtraInfo:R,region:g,isValid:es,specialDeposits:z}),ed=q&&(null==Q?void 0:Q.length)?Q:S,em=(e=>{let t,l,{anotherDeposits:a,region:i,town:n,importantDeposits:o}=e;return t=(e=>{let{deposits:t,region:l,town:a}=e;return(null==l?void 0:l.id)&&((null==l?void 0:l.url)==="moskva"||(null==l?void 0:l.url)==="sankt-peterburg")?t.filter(e=>{var t,a;return e.custom_regions&&(null==(t=e.custom_regions)?void 0:t.length)<1||(null==(a=e.custom_regions)?void 0:a.some(e=>e.regionId===l.region_id))}):(null==a?void 0:a.id)?t.filter(e=>{var t,l;return e.custom_regions&&(null==(t=e.custom_regions)?void 0:t.length)<1||(null==(l=e.custom_regions)?void 0:l.some(e=>e.cities.includes(a.id)))}):t})({deposits:a,region:i,town:n}),l=o,t.filter(e=>l.length?l.includes(String(e.id)):!e.archive)})({anotherDeposits:ed,region:g,town:D,filter:en,importantDeposits:ee}),{items:ep,...e_}=(0,p.A)({deposits:em,filter:en,banks:L,bankTowns:M,cityId:null!=(el=null==D?void 0:D.id)?el:null==g?void 0:g.id,isValid:es}),ev={sortType:X,increaseSort:"desc"===$},eh=[...er,...ec].sort((e,t)=>(0,N.A)({deposit1:e,deposit2:t,isLeadGen:!1,...ev})),ef=[...ep].sort((e,t)=>(0,N.A)({deposit1:e,deposit2:t,isLeadGen:!0,...ev})),eb=null!=Y?Y:j({deposits:U,banks:eo,specialDeposits:z,...ev}),eg=function(e){let{deposits:t,banks:l,sum:a=0,term:i=0,withSavingAccounts:n,isOldUser:o,showOnlyNonPromo:r}=e;return t.filter(e=>!e.archive&&(!e.asSavingsAccount||n)).map(e=>{var t;let n=l[Number(e.bic)],{name:p,withCapitalization:_,withRefill:v,finuslugiBonusAllowed:h,floatingRateInformations:f,minimumAmount:b,minimumTermInDays:g,rate:A,bonusProfit:x,bonusRate:y,baseProfit:C,tags:k,promo:N,profitTerm:j,internalUrl:D,id:w,bic:S,asSavingsAccount:P,rateType:T,optionId:M,firstDepositPromotionAllowed:L,repeatDepositPromotionAllowed:I}=e,R=!!(!r&&e.firstDepositPromotionAllowed&&!o||e.repeatDepositPromotionAllowed&&o),{onlyBonusFloatingRate:E}=(0,s.$Q)(A,f);return{name:p,url:D,id:w,bic:S,exclusive:e.exclusive,isNotAmount:!a,isRefill:v,rateAmount:a&&i?a:b,computeData:{result:C,bonus:x,profit:C,effectiveRate:A,bonusRate:R?y:0,termDays:j>0?j:g,onlyBonusFloatingRate:E},currencyUnit:c.bc,isCapitalization:_,term:Math.round((j>0?j:g)/30),isArchived:!!e.archive,isTermEmpty:!i,tags:null!=k?k:[],promo:N,finuslugiBonusAllowed:h,amount:a,type:P?u.ch.SavingAccount:u.ch.Deposit,hasDiscount:R,asSavingAccount:P,isFloating:T===d.Y4.FLOATING,logoMob:(0,m.z)(S),bankName:null!=(t=null==n?void 0:n.name)?t:"",specialOrder:null,optionId:M,firstDepositPromotionAllowed:L,repeatDepositPromotionAllowed:I}})}({deposits:null!=T?T:[],banks:eo,sum:Number(_.amount),term:_.term,withSavingAccounts:H,isPlusFiveBonus:E,isOldUser:F,showOnlyNonPromo:K}),eA=P.length+(B?ed.length:0)+eg.length,ex=null!=(ea=null!=G?G:eA)?ea:0;return{notInitialDeposits:!0,platform:eg.length>0?eg:eh,another:ef,leadGen:eb,allLength:ex,currentLength:eh.length+(B?ef.length:0)+eg.length,boundsIsEmpty:0===er.length,...{fitsForMonthlyPercentFilter:!W||eu.hasMonthlyPercent||e_.hasMonthlyPercent,fitsForPreferentialTerminationFilter:!W||eu.hasPreferentialTermination||e_.hasPreferentialTermination,fitsForCapitalization:!W||eu.hasCapitalization||e_.hasCapitalization,fitsForRefill:!W||eu.hasRefill||e_.hasRefill}}}},51299:e=>{e.exports={container:"InviteFriendsBanner_container___vGH8",primary:"InviteFriendsBanner_primary__oemA_",secondary:"InviteFriendsBanner_secondary__NWEpQ",imageBlock:"InviteFriendsBanner_imageBlock__nx5FI",title:"InviteFriendsBanner_title___24UT",text:"InviteFriendsBanner_text__yZzBv",image:"InviteFriendsBanner_image__Wx71P"}},52526:e=>{e.exports={drawer:"PromoStubModal_drawer__5jHrh",mobilePopup:"PromoStubModal_mobilePopup__PvuVf",image:"PromoStubModal_image__H5G_m",title:"PromoStubModal_title__2vWJm",text:"PromoStubModal_text__RrSGC",button:"PromoStubModal_button__wlHv7"}},54281:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var a=l(95155),i=l(52065),n=l(91643),o=l.n(n);function r(e){let{hideBonuses:t=!1}=e;return(0,a.jsxs)("div",{className:o().container,children:[(0,a.jsx)(i.E,{className:o().header}),(0,a.jsxs)("div",{className:o().row,children:[(0,a.jsxs)("div",{className:o().column,children:[(0,a.jsx)(i.E,{className:o().settings}),!t&&(0,a.jsx)(i.E,{className:o().bonuses})]}),(0,a.jsx)("div",{className:o().column,children:(0,a.jsx)(i.E,{className:o().profit})})]}),(0,a.jsx)(i.E,{className:o().params})]})}},55275:(e,t,l)=>{"use strict";l.d(t,{A:()=>H});var a=l(95155),i=l(53548),n=l(13860),o=l(15239),r=l(61126),s=l(12115),c=l(2821),u=l(41105),d=l(82159),m=l.n(d);let p=(0,s.memo)(e=>{let{rows:t,className:l}=e;return(0,a.jsx)("ul",{className:(0,c.A)(m().table,l),children:t.map(e=>e.isComment?(0,a.jsx)("div",{className:m().descriptionText,dangerouslySetInnerHTML:{__html:String(e.value)}},e.label):(0,a.jsxs)("li",{className:m().item,children:[(0,a.jsxs)("span",{className:m().label,children:[e.label,(e.toolltip||e.description)&&(0,a.jsx)(u.Y,{text:e.toolltip||e.description,className:m().detailed})]}),(0,a.jsxs)("div",{className:m().value,children:[!e.valueDescription&&(0,a.jsx)("div",{className:m().text,title:String(e.value),dangerouslySetInnerHTML:{__html:String(e.value)}}),e.valueDescription&&(0,a.jsx)(u.Y,{text:e.valueDescription,className:m().valueTip,iconSrc:null,children:e.value}),e.attributeComment&&(0,a.jsx)("div",{className:m().attributeComment,dangerouslySetInnerHTML:{__html:e.attributeComment}})]})]},e.label))})});p.displayName="DepositDetailTable";var _=l(94370),v=l(98742),h=l(69163),f=l(19680),b=l(89910),g=l(19559),A=l(85951),x=l.n(A);let y=e=>{var t;let{data:l,useDepositCurrency:i=!1}=e,n=(0,s.useMemo)(()=>(0,h.V)(null==l?void 0:l.another,i),[null==l?void 0:l.another,i]),o=(0,s.useMemo)(()=>(0,h.z)(null==l?void 0:l.platform),[null==l?void 0:l.platform]);if(!l)return null;let{platform:r,another:c,isPlatform:u}=l,d=(0,f.R)(null!=r?r:c,null,u),m=n.length?n:o,_=!(null==(t=l.platform)?void 0:t.asSavingAccount);return(0,a.jsxs)("div",{className:x().content,children:[_&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:x().blockTitle,children:"Параметры вклада"}),(0,a.jsxs)("div",{className:x().paramsTable,children:[(0,a.jsx)("div",{className:x().tableTitle,children:(0,a.jsxs)("ul",{className:x().tableList,children:[(0,a.jsx)("li",{children:"Сумма вклада"}),m[0].rates.map(e=>(0,a.jsx)("li",{children:e.label},e.id))]})}),(0,a.jsx)("div",{className:x().tableBody,children:m.map(e=>(0,a.jsxs)("ul",{className:x().tableList,children:[(0,a.jsx)("li",{children:e.label},e.id),e.rates.map(e=>(0,a.jsx)("li",{children:(null==e?void 0:e.value)?(0,b.kr)(Number(null==e?void 0:e.value))+"%":"-"},e.id))]},e.id))})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:x().blockTitle,children:"Условия"}),(0,a.jsx)(p,{rows:d})]})]})},C=e=>{var t,l,c,u,d,m,p,f,b;let{data:A,depositSumm:C,depositTerm:k,isOpen:N,onClose:j,useDepositCurrency:D=!1,eventCategory:w}=e,S=(0,n.qF)("l"),P=(0,s.useMemo)(()=>(0,h.z)(null==A?void 0:A.platform),[null==A?void 0:A.platform]),T=w+"_popup",M=null!=(b=null==A||null==(t=A.another)?void 0:t.title)?b:"",L=null==(l=A.another)?void 0:l.internalUrl,I=(null==A?void 0:A.isPlatform)?((e,t)=>{let l=e[0],a=Math.abs(e[0]-t);for(let i=1;i<e.length;i++){let n=Math.abs(e[i]-t);n<a&&(a=n,l=e[i])}return l})(P[0].rates.map(e=>Number(e.label.split(" ")[0])),(e=>{let t=0;return t=e.includes("мес")?31:365,Number(e.split(" ")[0])*t})(k)):null,R=I&&(null==A||null==(u=A.platform)||null==(c=u.options.find(e=>{let{duration:t}=e;return I>=t.minimum&&I<=t.maximum}))?void 0:c.id),E=(null==A?void 0:A.isPlatform)?"".concat((0,r.env)("NEXT_PUBLIC_MOEX_AD_URI"),"/add-product?aggregatorId=moex-mp-new-sc&productId=").concat(null==A||null==(d=A.platform)?void 0:d.internalUrl.split("-").reverse()[0],"&optionId=").concat(R,"&amount=").concat(C,"&durationValue=").concat(I):null==A||null==(m=A.another)?void 0:m.online_application.url,F=(0,a.jsxs)("div",{className:x().buttonActions,children:[(0,a.jsx)(i.$,{as:"a",href:null==A?void 0:A.href,target:"_self",size:"s",className:x().button,variant:"secondary",onClick:()=>{(0,g.oA)({eventCategory:T,eventAction:"click_button_podrobnee-o-vklade",eventLabel:"predlozheniya-ot-bankov",eventNameCard:M,eventUrl:L}),j()},children:"Подробнее"}),!(null==A?void 0:A.isMass)&&(0,a.jsx)(i.$,{as:"a",href:E,target:"_blank",size:"s",className:x().button,onClick:()=>{(0,g.oA)({eventCategory:T,eventAction:"click_button_otkryt-vklad",eventLabel:"predlozheniya-ot-bankov",eventNameCard:M,eventUrl:L}),j()},children:(null==A?void 0:A.isPlatform)?"Открыть онлайн":"Отправить заявку"})]});(0,s.useEffect)(()=>{(0,g.oA)({eventCategory:T,eventAction:"page_view_predlozheniya-ot-bankov"})},[T]);let B=(0,s.useCallback)(()=>{(0,g.oA)({eventCategory:T,eventAction:"click_button_krestik",eventLabel:"predlozheniya-ot-bankov",eventNameCard:M,eventUrl:L}),j()},[T,M,L,j]);return(0,a.jsx)(_.Z,{children:(0,a.jsx)("div",{"data-testid":"another-deposit-detail-modal",children:S?(0,a.jsx)(v._s,{title:(0,a.jsxs)("div",{className:x().plate,children:[(0,a.jsx)("div",{className:x().plateIcon,children:(null==A?void 0:A.bank.logo_mob)&&(0,a.jsx)(o.default,{width:56,height:56,src:null==A?void 0:A.bank.logo_mob,alt:"logo"})}),(0,a.jsxs)("div",{className:x().plateLabel,children:[(0,a.jsx)("h3",{children:null==A?void 0:A.bank.name}),(0,a.jsx)("span",{className:x().caption,children:(null==A?void 0:A.isPlatform)?null==A||null==(p=A.platform)?void 0:p.name:null==A||null==(f=A.another)?void 0:f.title})]})]}),footer:F,titleAlign:"left",rowTitle:!0,className:x().drawer,contentClassName:x().container,isOpen:N,onClose:B,children:(0,a.jsx)(y,{data:A,depositSumm:C,depositTerm:k,useDepositCurrency:D,onClose:j,eventCategory:T})}):(0,a.jsx)(v.LV,{className:x().mobilePopup,footer:F,contentClassName:x().container,isOpen:N,onClose:B,children:(0,a.jsx)(y,{data:A,depositSumm:C,depositTerm:k,useDepositCurrency:D,isMobile:!0,onClose:j,eventCategory:T})})})})};var k=l(81637),N=l(18991),j=l(54281),D=l(89264),w=l(18578),S=l(20447),P=l(31307),T=l(84663),M=l(84353),L=l(10955);let I=e=>{var t,l,a,i,n,o;let{deposit:r,bank:s,oldDeposit:c}=e,u=null!=c?c:(0,L.an)(r.asSavingAccount),d=r.options[0],m=(0,L.O)(s),{rates:p,amountFrom:_,amountTo:v,termFrom:h,termTo:f}=(0,L.Aq)(r.options,null==r?void 0:r.isLadderDeposit);return{...u,...r,id:parseInt(r.id),url:r.internalUrl,title:r.name,fin_exclusive:+r.exclusive,active_to:r.activeTo,bank_id:Number(null==s?void 0:s.id),bank_name:null!=(a=null==s?void 0:s.name)?a:"",bank_url:null!=(i=null==s?void 0:s.url)?i:"",logo_mob:null!=(n=null==s?void 0:s.logo_mob)?n:"",legal_name:m,interest_rate:{...null==c?void 0:c.interest_rate,rates:p.length?p:null!=(o=null==(t=u.interest_rate)?void 0:t.rates)?o:[]},amount:{...u.amount,from:_,to:v},archive:+!!r.archive,m_updated_at:null==(l=r.updatedAt)?void 0:l.slice(0,10),term:{...u.term,from:h,to:f},partial_withdrawal:{...u.partial_withdrawal,has:(0,L.YJ)(d),text:(0,L.vA)(d)},interest_payment:{...u.interest_payment,text:"IN_THE_END"===d.interestPayments[0].periods[0].type?"В конце срока":"Ежемесячно",monthly:+("MONTHLY"===d.interestPayments[0].periods[0].type),end:+("IN_THE_END"===d.interestPayments[0].periods[0].type)},refill:{...u.refill,has:(0,L.sD)(d),text:(0,L.dl)(d)},interest_capitalization:{...u.interest_capitalization,has:(0,L.M0)(d),text:(0,L.lu)(d)},preferential_termination:{...u.preferential_termination,has:(0,L._7)(d),text:(0,L.DD)(d)},prolongation:{text:d.prolongations?"Предусмотрена":"Не предусмотрена"},external:{active:r.active}}};var R=l(40599),E=l(99248),F=l(5076),B=l(75439),O=l(31832),z=l(71547),U=l(7679),Y=l.n(U),G=l(6546);let V=e=>!!e&&"rate"in e,W=e=>{var t,l,i,o,r,u;let{data:d,isOpen:m,isPlusFiveBonus:p,extraInfo:v,questions:h,isOldUser:f=!1,initialAmount:b,initialIsCapitalization:A,initialOptionId:x,initialPaymentFrequency:y,initialTermInDays:C,initialTermInMonths:L,showcaseBaseUrl:U=M.O.VKLADY,eventCategory:W,showOnlyNonPromo:H,useExactTermInDetailsLink:q=!1,onClose:Q}=e,K=W+"_popup",{bank:Z,platform:J,another:X,isPlatform:$}=d,ee=(0,F.t)(null!=J?J:X,d.isPlatform,H),et=(0,n.qF)("l"),[el,ea]=(0,s.useState)(),ei=V(J),{termInDays:en,termInMonths:eo}=(e=>{let{deposit:t,termInDays:l,termInMonths:a,amount:i}=e;return void 0!==l?{termInMonths:void 0,termInDays:l}:V(t)?{termInMonths:void 0,termInDays:a>0&&i>0?t.profitTerm:t.minimumTermInDays}:{termInMonths:a,termInDays:void 0}})({deposit:d.platform,termInDays:C,termInMonths:L,amount:b}),{data:er,isLoading:es}=(0,E.C)([null==J?void 0:J.id,"deposit-detail"],()=>(0,N.zw)(String(null==J?void 0:J.id)),{disabled:!ei,errorRetryCount:2,onError:e=>{console.error(e),Q()}}),ec=$?ei?!es&&(null==er?void 0:er.data)?I({deposit:er.data.deposit,bank:Z}):void 0:I({deposit:J,bank:Z}):X,eu=$?J.internalUrl:X.url,ed=ec?(0,G.A)(ec):w.T.isArchiveDeposit,em=v&&v[eu]||{},ep=(0,R.y)(null!=(i=null==(t=d.platform)?void 0:t.name)?i:""),e_=String(null!=(o=null==(l=d.platform)?void 0:l.id)?o:"");(0,s.useEffect)(()=>{(0,g.oA)({eventCategory:K,eventAction:"page_view_vklady-ot-finuslug",eventNameCard:ep,eventUrl:e_})},[K,ep,e_]);let ev=(0,s.useCallback)(()=>{(0,g.oA)({eventCategory:K,eventAction:"click_button_krestik",eventNameCard:ep,eventUrl:e_}),Q()},[K,ep,e_,Q]);return(0,a.jsx)(_.Z,{children:(0,a.jsx)(z.A,{isOpen:m,onClose:ev,isMobile:!et,depositParams:el,depositUrl:eu,showcaseBaseUrl:U,eventCategory:K,useExactTermInDetailsLink:q,eventNameCard:ep,eventUrl:e_,children:ec?(0,a.jsxs)("div",{"data-testid":"platform-deposit-detail-modal",children:[(0,a.jsx)(O.A,{depositUrl:(0,k.oq)(S.q.BASE_URL,D.UZ.VKLADY,eu),bankNameR:null!=(r=null==Z?void 0:Z.name_r)?r:"",bankName:Z.name,logo:Z.logo_mob,caption:$?J.name:X.title,onClose:ev,isMobile:!et,eventCategory:K,eventNameCard:ep,eventUrl:e_}),(0,a.jsx)(B.Zi,{href:null==ee?void 0:ee.link,isMobile:!et,isPlusFiveBonus:p,isOldUser:f,className:(0,c.A)(Y().depositAd),eventCategory:K,bannerText:null==ee?void 0:ee.bannerText,eventNameCard:ep,eventUrl:e_}),(0,a.jsx)(P.O,{data:ec,isMobile:!et,discount:null!=ee?ee:void 0,company:Z,isOldUser:f,isPlusFiveBonus:p,isShowDepositTip:!1,extraInfo:em,onChangeData:ea,className:Y().calculator,titleClassName:Y().calculatorTitle,depositType:ed,asModal:!0,initialAmount:b,initialIsCapitalization:A,initialOptionId:x,initialPaymentFrequency:y,initialTermInMonths:eo,initialTermInDays:en,isHidePromo:!0,eventCategory:K,amount:null==el?void 0:el.amount,term:null==el?void 0:el.term,eventNameCard:ep,eventUrl:e_}),(0,a.jsx)(T.e,{isMobile:!et,questions:h,data:ec,company:Z,className:Y().detailParams,amount:null!=(u=null==el?void 0:el.amount)?u:0,optionId:null==el?void 0:el.optionId,discount:null!=ee?ee:void 0,isPlusFiveBonus:p,isOldUser:f,extraInfo:em,wrapperClassName:Y().detailParamsWrapper,isCollapsible:!0,asModal:!0,eventCategory:K,eventNameCard:ep,eventUrl:e_})]}):(0,a.jsx)(j.A,{hideBonuses:!0})})})};function H(e){let{data:{isPlatform:t=!1}}=e;return t?(0,a.jsx)(W,{...e}):(0,a.jsx)(C,{...e})}},56616:e=>{e.exports={container:"Actions_container__QDQi6",childContainer:"Actions_childContainer__yB_gN",actionArrow:"Actions_actionArrow__424PL",childContainerMobile:"Actions_childContainerMobile__o4Srw",action:"Actions_action__jKVRm",actionArrowIcon:"Actions_actionArrowIcon__2EJQ6",actionSocial:"Actions_actionSocial___y87Y"}},56765:e=>{e.exports={drawer:"Layout_drawer__gXHfq",compactFooter:"Layout_compactFooter__PiChi",drawerContent:"Layout_drawerContent__mcyAp",mobilePopup:"Layout_mobilePopup__7l7hy"}},57272:()=>{},60059:e=>{e.exports={plate:"Footer_plate__cHI7H",noBg:"Footer_noBg__bZPjU",button:"Footer_button__hUQ0U"}},63663:(e,t,l)=>{"use strict";l.d(t,{A:()=>c});var a,i,n,o,r=l(12115);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let c=function(e){return r.createElement("svg",s({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=r.createElement("rect",{width:28,height:28,rx:14,fill:"#20A0E1"})),i||(i=r.createElement("path",{d:"m9.477 15.023 1.66 4.598s.208.43.43.43c.223 0 3.53-3.44 3.53-3.44l3.678-7.105-9.239 4.33-.06 1.187Z",fill:"#E3E7EC"})),n||(n=r.createElement("path",{d:"m11.679 16.202-.319 3.39s-.133 1.038.905 0c1.038-1.04 2.032-1.84 2.032-1.84",fill:"#C2C2C6"})),o||(o=r.createElement("path",{d:"M9.507 15.187 6.09 14.074s-.408-.165-.277-.541c.027-.078.082-.143.245-.257.757-.527 14.012-5.292 14.012-5.292s.375-.126.596-.042a.323.323 0 0 1 .22.24c.023.098.033.2.03.301-.002.088-.013.17-.02.297-.081 1.303-2.497 11.024-2.497 11.024s-.145.569-.663.588a.948.948 0 0 1-.691-.267c-1.016-.874-4.529-3.235-5.305-3.754a.148.148 0 0 1-.064-.105c-.01-.055.049-.122.049-.122s6.116-5.437 6.279-6.008c.013-.044-.035-.066-.099-.046-.406.149-7.448 4.596-8.226 5.087a.373.373 0 0 1-.172.01Z",fill:"#fff"})))}},64765:(e,t,l)=>{"use strict";l.d(t,{G:()=>a});let a=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"},66337:(e,t,l)=>{"use strict";l.d(t,{M:()=>o});var a=l(1410),i=l(98591),n=l(15520);let o=e=>{var t,l,o,r;let{tag:s,path:c}=e,u=(0,n.$)(c),d=String(u.amount),m=String(u.period),p=String(u.term),_=u.currency?String(u.currency):void 0,v={term:0,amount:"0",currencyCode:"RUB",withRefill:!1,withCapitalization:!1,withMonthlyPercent:!1,withPreferentialTermination:!1,withPartialWithdrawal:!1},h=(0,a.V)(null==s||null==(t=s.filter)?void 0:t.currency);return(null==s?void 0:s.filter)&&(v.term=null!=(o=null==(l=s.filter.term.values)?void 0:l[0])?o:null===s.filter.term.from||isNaN(Number(s.filter.term.from))?v.term:Number(s.filter.term.from),v.currencyCode=(0,i.O)(h).code,v.withRefill=!!s.filter.refill,v.withCapitalization=1===s.filter.interest_capitalization,v.withMonthlyPercent=!!s.filter.interestsMonthly,v.withPreferentialTermination=!!s.filter.earlyTermination,v.amount=String(null!=(r=s.filter.amount)?r:v.amount),v.withPartialWithdrawal=!!s.filter.partial_withdrawal),d&&!isNaN(+d)&&(v.amount=d),m&&!isNaN(+m)&&(v.term=+m),p&&!isNaN(+p)&&(v.term=+p),_&&(0,i.O)(_).code&&(v.currencyCode=(0,i.O)(_).code),v}},67127:(e,t)=>{"use strict";function l(){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68313:e=>{e.exports={plate:"Plate_plate__S_Sp7",detailButton:"Plate_detailButton__Vlnz_",body:"Plate_body__3Kcou",left:"Plate_left__kERR7",right:"Plate_right__R7QSm",header:"Plate_header__0Jio0",tagsList:"Plate_tagsList__sNF_o",tag:"Plate_tag__CXr0H",primary:"Plate_primary__2nNLK",secondary:"Plate_secondary__rmjTR",red:"Plate_red__G9aAj",green:"Plate_green__29Hcv",orange:"Plate_orange__DGBL9",purple:"Plate_purple__0iafz",blue:"Plate_blue__4EXVf",titleWrapper:"Plate_titleWrapper__J6_mn",title:"Plate_title__5Jf3b",logoIcon:"Plate_logoIcon__VDTTF",noneCaption:"Plate_noneCaption__oA2iC",caption:"Plate_caption__oESgJ",logoTitle:"Plate_logoTitle__oY9wl",clickable:"Plate_clickable__5wv6N",advantagesList:"Plate_advantagesList__4GAWx",wide:"Plate_wide__z6fFB",shortList:"Plate_shortList__r7czJ",advantageItem:"Plate_advantageItem__jlCJf",advantageItemCaption:"Plate_advantageItemCaption__xTm6L",iconClassName:"Plate_iconClassName__cQzY0",advantageItemTitle:"Plate_advantageItemTitle__i_0Gt",longItem:"Plate_longItem__BUIxH",buttonsWrapper:"Plate_buttonsWrapper__T4ELm",block:"Plate_block__HPiKB",column:"Plate_column__0xnQ7",iconButton:"Plate_iconButton__HQSXZ",desktop:"Plate_desktop__8p8d1",mobile:"Plate_mobile__3vHcn",appButton:"Plate_appButton__gTPKF",openButton:"Plate_openButton__uyU5_"}},68418:(e,t,l)=>{"use strict";l.d(t,{G:()=>a,n:()=>i});var a=function(e){return e.MIN_BALANCE="MIN_BALANCE",e.AVG_BALANCE="AVG_BALANCE",e.DAILY_BALANCE="DAILY_BALANCE",e}({}),i=function(e){return e.SpendingRange="SPENDING_RANGE",e.ServicePackage="SERVICE_PACKAGE",e}({})},69563:(e,t,l)=>{"use strict";l.d(t,{td:()=>a});let a=(e,t,l,a)=>{let i=[t,l,a];return i[e%100>4&&e%100<20?2:[2,0,1,1,1,2][e%10<5?e%10:5]]||i[0]}},71547:(e,t,l)=>{"use strict";l.d(t,{A:()=>A});var a,i=l(95155),n=l(2821),o=l(98742),r=l(84353),s=l(53548),c=l(61126),u=l(12115),d=l(81637),m=l(19927),p=l(19559),_=l(60059),v=l.n(_);let h=null!=(a=(0,c.env)("NEXT_PUBLIC_BASE_URL"))?a:"";function f(e){let{depositUrl:t,depositParams:l,eventCategory:a,isSavingAccount:o,showcaseBaseUrl:c=r.O.VKLADY,useExactTermInDetailsLink:_=!1,eventNameCard:f,eventUrl:b}=e,{amount:g,term:A,appUrl:x}=null!=l?l:{},y=(0,u.useMemo)(()=>{if(o)return(0,d.VL)((0,d.oq)(h,r.O.SAVING_ACCOUNTS,t),{amount:g,period:A});let e=_?{d_period:A}:{period:A&&Math.round(A/m.L)};return(0,d.p2)((0,d.oq)(h,c,t),(0,d._b)({amount:g,...e}))},[g,t,o,c,A,_]);return(0,i.jsxs)("section",{className:(0,n.A)(v().plate,o&&v().noBg),children:[(0,i.jsx)(s.$,{as:"a",className:v().button,href:x,disabled:!x,onClick:function(){(0,p.oA)({eventCategory:a,eventAction:"click_button_otkryt-vklad",eventLabel:"vklady-ot-finuslug",eventNameCard:f,eventUrl:b})},size:"s",children:"Открыть онлайн"}),(0,i.jsx)(s.$,{as:"a",className:v().button,variant:"secondary",href:y,onClick:function(){(0,p.oA)({eventCategory:a,eventAction:o?"click_button_podrobnee_o_schete":"click_button_podrobnee-o-vklade",eventLabel:"vklady-ot-finuslug",eventNameCard:f,eventUrl:b})},size:"s",children:o?"Подробнее о счете":"Подробнее о вкладе"})]})}var b=l(56765),g=l.n(b);function A(e){let{children:t,isOpen:l,isMobile:a,depositParams:s,depositUrl:c,eventCategory:u,showcaseBaseUrl:d=r.O.VKLADY,isSavingAccount:m=!1,useExactTermInDetailsLink:p=!1,eventNameCard:_,eventUrl:v,onClose:h}=e;return a?(0,i.jsx)(o.LV,{isOpen:l,onClose:h,hasCloseButton:!1,className:(0,n.A)(g().mobilePopup,m&&g().compactFooter),contentClassName:g().mobilePopupContent,footer:(0,i.jsx)(f,{depositParams:s,depositUrl:c,showcaseBaseUrl:d,eventCategory:u,isSavingAccount:m,useExactTermInDetailsLink:p,eventNameCard:_,eventUrl:v}),children:t}):(0,i.jsx)(o._s,{isOpen:l,onClose:h,isCloseable:!1,className:(0,n.A)(g().drawer,m&&g().compactFooter),contentClassName:g().drawerContent,footer:(0,i.jsx)(f,{depositParams:s,depositUrl:c,showcaseBaseUrl:d,eventCategory:u,isSavingAccount:m,useExactTermInDetailsLink:p,eventNameCard:_,eventUrl:v}),children:t})}},72052:(e,t,l)=>{"use strict";l.d(t,{N:()=>n});var a=l(92646),i=l(97390);let n=(e,t,l,n)=>{let o={[i.r3.RatePlusBonus]:!e||t,[i.r3.Profit]:!l||!n};return a.s.filter(e=>!o[e.value])}},72751:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var a,i,n=l(12115);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let r=function(e){return n.createElement("svg",o({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=n.createElement("rect",{width:28,height:28,rx:14,fill:"#4A76A8"})),i||(i=n.createElement("path",{d:"M15.099 19.367a.453.453 0 0 1-.304.437c-2.578.861-6.39-1.142-8.85-5.39-.76-1.315-1.486-2.83-1.934-4.552 0-.065-.003-.126-.006-.184-.023-.454-.034-.675 1.511-.675 1.152 0 1.586-.04 1.83.151.303.238.311.835 1.046 2.313 1.495 3.012 2.835 4.188 3.085 3.59a.306.306 0 0 0 .02-.123c-.004-.418-.025-2.832-.025-3.717 0-.603-.271-.977-.575-1.277-.457-.451-.184-.937.466-.937h2.289c1.392 0 1.447.069 1.444.651h.003v4.388c.017.084.047.14.087.182a.316.316 0 0 0 .217.091c.503.02 1.31-.652 2.69-3.035.326-.564.533-1 .69-1.33.195-.412.311-.656.48-.77.212-.142.45-.141 1.265-.138h.41c1.26 0 1.508 0 1.62.28.061.151.046.32-.007.473-.438 1.269-1.564 2.87-2.468 4.154l-.383.546c-.17.244-.186.54.014.762.184.204.444.466.737.762 1.36 1.374 3.45 3.485 2.128 3.923a.753.753 0 0 1-.233.032h-2.282c-.503.035-1.04-.558-1.617-1.196-.131-.145-.264-.291-.4-.434l-.312-.292c-.664-.627-1.325-1.25-2.074-1.346a.591.591 0 0 0-.282.03c-.133.05-.206.115-.246.208l-.032.073-.002.006v2.345Z",fill:"#fff"})))}},73217:()=>{},73800:(e,t,l)=>{Promise.resolve().then(l.bind(l,87015)),Promise.resolve().then(l.bind(l,49155)),Promise.resolve().then(l.t.bind(l,41402,23)),Promise.resolve().then(l.bind(l,80491))},74015:(e,t,l)=>{"use strict";l.d(t,{K:()=>a});let a=(e,t)=>{var l,a;if("Enter"===e.key&&(null==(l=document.activeElement)?void 0:l.tagName)==="INPUT"){let e=document.getElementById(null==(a=document.activeElement)?void 0:a.id);e&&(e.blur(),t())}}},74961:(e,t,l)=>{"use strict";l.d(t,{A:()=>_});var a=l(95155),i=l(1591),n=l(99822),o=l(89910),r=l(73520),s=l(40179),c=l.n(s);let u=e=>{var t,l;let{data:i,discount:n}=e;return(0,a.jsxs)("div",{className:c().tooltipText,children:[(0,a.jsxs)("ul",{className:c().tooltipList,children:[(0,a.jsxs)("li",{className:c().listItem,children:["доход от банка:"," ",(0,a.jsxs)("span",{children:[(0,o.jq)((null==i||null==(t=i.computeData)?void 0:t.profit)||0,2)," ",i.currencyUnit]})]}),(0,a.jsxs)("li",{className:c().listItem,children:["бонус от Финуслуг:"," ",(0,a.jsxs)("span",{children:[(0,o.jq)((null==i||null==(l=i.computeData)?void 0:l.bonus)||0,2)," ",i.currencyUnit]})]})]}),(0,a.jsx)("p",{className:c().description,dangerouslySetInnerHTML:{__html:(null==n?void 0:n.terms)||""}})]})},d=e=>!e.isNotAmount&&!e.isTermEmpty,m=function(e){var t,l,a,i;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.rateType){if(n&&e.isTermEmpty&&(null==(t=e.computeData)?void 0:t.termDays))return{caption:"Срок",name:(0,r.l6)(e.computeData.termDays,["день","дня","дней"])};if(e.isTermEmpty){let t="";if(e.isLadderDeposit&&((null==(l=e.computeData)?void 0:l.termDays)||e.term)){let l=null!=(i=null==(a=e.computeData)?void 0:a.termDays)?i:Number(e.term);t="".concat(l," ").concat((0,r.td)(l,"день","дня","дней"))}else t="savingAccount"===e.type?"Бессрочно":e.term?p(e.term,e.termPeriod):"от 1 дня";return{caption:"Срок",name:t}}}},p=(e,t)=>{let l=e%12,a=Math.floor(e/12),i=t&&t.from!==t.to,n=i?["от"]:[];return a&&n.push((0,r.l6)(a,i?["года","лет","лет"]:["год","года","лет"])),l&&n.push("".concat(l," мес")),n.join(" ")};function _(e){let{data:t,useExactTerm:l}=e;return[(e=>{if(d(e)||"savingAccount"!==e.type||!e.rateType)if(d(e)){if(e.computeData&&!e.isNotAmount){let{termDays:t,bonus:l,profit:a}=e.computeData,i="Доход за ".concat((0,r.l6)(t,["день","дня","дней"]));l&&(i+=" + бонус");let n="".concat((0,o.jq)(a+l,2),"  ").concat(e.currencyUnit);return("savingAccount"===e.type||e.isFloating)&&(n="до ".concat(n)),{caption:i,name:n}}}else{var t;return{caption:"Сумма",name:(e.isNotAmount?"от ":"")+"".concat((0,o.jq)(null!=(t=e.rateAmount)?t:1)," ").concat(e.currencyUnit)}}})(t),(e=>{let t,{data:l,discountState:n,hideBonusTooltip:r}=e;if(!l.computeData)return;let s=n&&(l.computeData.bonus||l.computeData.bonusRate),c=l.isBound?"Доходность":"Ставка",d=((e,t)=>{if(!e.computeData)return"";let l=(0,o.jq)("savingAccount"===e.type&&e.rate?e.rate:e.computeData.effectiveRate,2);return t?l:(0,i.CE)(l)})(l,s);return s&&(c+=" + бонус",d+=" + ".concat((0,i.CE)((0,o.jq)(l.computeData.bonusRate,2))),t=r?void 0:(0,a.jsx)(u,{data:l,discount:n})),"savingAccount"===l.type&&(d=(null==l?void 0:l.rateType)==="FIXED"?d:"до ".concat(d)),l.isFloating&&(d="до ".concat(d)),l.isCapitalization&&"savingAccount"!==l.type&&(t=(0,a.jsx)(a.Fragment,{children:"Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка. Дополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее."})),{caption:c,name:d,tooltipText:t}})(e),m(t,l),(e=>{if(e.interestAccrual)return{caption:"Начисление процентов",name:n.X[e.interestAccrual]}})(t)]}},75439:(e,t,l)=>{"use strict";l.d(t,{Zi:()=>N});var a,i=l(95155),n=l(2821),o=l(15239),r=l(52619),s=l.n(r),c=l(12115),u=l(81637);let d={src:"/deposits/_next/static/media/advStub.63780de5.svg",height:132,width:302,blurWidth:0,blurHeight:0};function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let p=function(e){return c.createElement("svg",m({width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=c.createElement("path",{d:"M10.498 6.982 4.073 11.48l-.382-.545 6.426-4.499.642-.45-.772-.14-3.06-.553.085-.5 4.793.867-.822 4.793-.5-.09.524-3.06.133-.772-.642.45Z",fill:"#525BBB",stroke:"#525BBB",strokeWidth:.654})))},_={src:"/deposits/_next/static/media/mobileAppD.1777b32b.svg",height:132,width:539,blurWidth:0,blurHeight:0},v={src:"/deposits/_next/static/media/mobileAppM.080e4a75.svg",height:132,width:343,blurWidth:0,blurHeight:0},h={src:"/deposits/_next/static/media/risingProfits.d0a8eddb.svg",height:132,width:214,blurWidth:0,blurHeight:0},f={src:"/deposits/_next/static/media/risingProfitsM.f9c48ee1.svg",height:132,width:156,blurWidth:0,blurHeight:0};var b=l(58924),g=l(35102),A=l(19559),x=l(40599),y=l(39006),C=l(4935),k=l.n(C);let N=(0,c.memo)(e=>{let{className:t,href:l,isMobile:a,isOldUser:r,bannerText:u,eventCategory:m,eventNameCard:_,eventUrl:v}=e,{isIOS:h}=(0,c.useMemo)(g.p,[]),f=(0,c.useCallback)(e=>{(0,A.oA)({event:"data-event",eventAction:"click_banner",eventLabel:(0,x.y)(e),eventCategory:m,eventNameCard:_,eventUrl:v})},[m,_,v]);return r?h?(0,i.jsx)(y.A,{eventCategory:m,className:t,destination:"dashboard",onClick:f}):(0,i.jsx)(D,{className:t,isMobile:a,onClick:f}):l?(0,i.jsx)(s(),{href:l,className:(0,n.A)(k().ad,k().fivePercent,t),target:"_self",onClick:()=>f("Получите бонус"),children:(0,i.jsxs)("div",{children:[(0,i.jsx)("h5",{className:k().title,children:"Получите бонус"}),(0,i.jsx)("h6",{className:k().subTitle,children:u}),(0,i.jsx)(p,{className:k().arrow}),(0,i.jsx)(o.default,{className:k().image,src:d,alt:"image"})]})}):(0,i.jsx)(j,{className:t,isMobile:a,onClick:f})}),j=(0,c.memo)(e=>{let{className:t,isMobile:l,onClick:a}=e,r=(0,c.useMemo)(()=>l?(0,i.jsx)(o.default,{className:k().image,src:f,alt:"image-mobile"}):(0,i.jsx)(o.default,{className:k().image,src:h,alt:"image-desktop"}),[l]),d=(0,u.oq)(b.C1,"vklady","analitika_stavok_po_vkladam#1");return(0,i.jsxs)(s(),{href:d,className:(0,n.A)(k().ad,k().alt,t),target:"_self",onClick:()=>a("Актуальные ставки"),children:[(0,i.jsxs)("h5",{children:["Актуальные ставки по",(0,i.jsx)("br",{}),"вкладам на Финуслугах и",(0,i.jsx)("br",{}),"в банках"]}),r]})}),D=(0,c.memo)(e=>{let{className:t,isMobile:l,onClick:a}=e,r=(0,c.useMemo)(()=>l?(0,i.jsx)(o.default,{className:k().image,src:v,alt:"image-mobile"}):(0,i.jsx)(o.default,{className:k().image,src:_,alt:"image-desktop"}),[l]);return(0,i.jsxs)(s(),{href:"https://promo.finuslugi.ru/mobapp/",className:(0,n.A)(k().ad,k().alt,k().app,t),target:"_self",onClick:()=>a("Скачать приложение"),children:[(0,i.jsxs)("h5",{children:["Управляйте",(0,i.jsx)("br",{}),"финансами через",(0,i.jsx)("br",{}),"приложение Финуслуг"]}),r]})});N.displayName="DepositDetailAd",j.displayName="AlternativeAd",D.displayName="MobileAppAd"},75447:e=>{e.exports={content:"DepositFilterModal_content__Mhjaf",thin:"DepositFilterModal_thin__TwC6g",title:"DepositFilterModal_title__airXG",hidden:"DepositFilterModal_hidden__OdFD8",t2ModalTitle:"DepositFilterModal_t2ModalTitle__cYNFA",fields:"DepositFilterModal_fields__JYbkN",t2ModalFields:"DepositFilterModal_t2ModalFields__nXLyu",oldSelect:"DepositFilterModal_oldSelect__ryP0f",oldSelectIconWrapper:"DepositFilterModal_oldSelectIconWrapper__yMQnn",oldSelectIcon:"DepositFilterModal_oldSelectIcon__XwHEo",settings:"DepositFilterModal_settings__vDg5i",settingsTitle:"DepositFilterModal_settingsTitle__1hN4z",sortBlock:"DepositFilterModal_sortBlock__G51hB",t2ModalSortBlock:"DepositFilterModal_t2ModalSortBlock__hKVeO",checkboxWrapper:"DepositFilterModal_checkboxWrapper__uZXHE",hint:"DepositFilterModal_hint__4fAaK",t2ModalCheckboxWrapper:"DepositFilterModal_t2ModalCheckboxWrapper__Ih28T",radioWrapper:"DepositFilterModal_radioWrapper__uFnR5",radioGroup:"DepositFilterModal_radioGroup__GaAbC",radioTip:"DepositFilterModal_radioTip__gwy_7",buttonActions:"DepositFilterModal_buttonActions__P_bf7",button:"DepositFilterModal_button__SQhD1",mobilePopup:"DepositFilterModal_mobilePopup__TG7FM",interestAccrualRow:"DepositFilterModal_interestAccrualRow__Ewi8U"}},75542:(e,t,l)=>{"use strict";l.d(t,{f:()=>o});var a=l(35138),i=l.n(a),n=l(12115);function o(e){let{filter:t,showCapitalization:l,showMonthlyPercent:a,showPreferentialTermination:o,showRefill:r,disabled:s=!1}=e,{withCapitalization:c,withMonthlyPercent:u,withPreferentialTermination:d,withRefill:m,handleWithCapitalizationChange:p,handleWithMonthlyPercentChange:_,handleWithPreferentialTerminationChange:v,handleWithRefillChange:h}=t,f=(0,n.useMemo)(()=>({withCapitalization:c,withMonthlyPercent:u,withPreferentialTermination:d,withRefill:m}),[c,u,d,m]),b=(0,n.useRef)(f);(0,n.useEffect)(()=>{if(!s){if(!i()(b.current,f)){b.current=f;return}d&&!o&&v(!1),u&&!a&&_(!1),c&&!l&&p(!1),m&&!r&&h(!1)}},[s,f,p,_,v,h,l,a,o,r,c,u,d,m])}},77346:(e,t,l)=>{"use strict";l.d(t,{R:()=>i});var a=l(69877);let i=e=>{var t;let l="end";return e.interest_payment.end&&(l="end"),e.interest_payment.annually&&(l="12"),e.interest_payment.half_year&&(l="6"),e.interest_payment.quarterly&&(l="3"),e.interest_payment.monthly&&(l="1"),e.interest_payment.daily&&(l="daily"),null!=(t=a.JM.find(e=>l===e.value))?t:a.JM[0]}},80228:(e,t,l)=>{"use strict";l.d(t,{s:()=>r});var a=l(12115),i=l(44154),n=l(95852),o=l(51442);function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=(0,o.OR)(),s=(null==r?void 0:r["auth.gtm_customer_id"])||null,[c]=(0,a.useState)(l&&null!=e?e:[]),[u,d]=(0,a.useState)(!1),[m,p]=(0,a.useState)(!0),[_,v]=(0,a.useState)(!1),[h,f]=(0,a.useState)(t&&!!s);return(0,a.useEffect)(()=>{s&&l&&(f(!0),(0,i.P)(s).then(e=>{let{data:t}=e;(!t||(null==t?void 0:t.features))&&t&&!t.features.includes(n.Q.SHOW_ADDITIONAL_PERCENT_BONUS)&&(p(!1),v(!0),d(!0))}).finally(()=>{f(!1)}))},[s,l]),{customerId:s,isOldUser:_,isPlusFiveBonus:m,isHiddenPromo:u,isDiscountsLoading:h,bonuses:c}}},80491:(e,t,l)=>{"use strict";l.r(t),l.d(t,{Deposits:()=>eh});var a=l(95155),i=l(13860),n=l(67127),o=l.n(n),r=l(12115),s=l(18991),c=l(28625);let u=async e=>{var t;let{data:l,error:a}=await (0,c.px)("/money_data/Fk.json".concat(e?"?bic="+e:""));return a?{data:null,error:a}:{data:{banks:null!=(t=null==l?void 0:l.banks.filter(e=>Number(e.active)).map(e=>({id:e.id,name:e.name,name_p:e.name_p,name_r:e.name_r,active:e.active,logo_mob:e.logo_mob,short_description:e.short_description,url:e.url,license:e.license,legal_entities:e.legal_entities,bic:e.bic,deposit_rating:e.deposit_rating,net_profit_rating:e.net_profit_rating,ratings:e.ratings})))?t:[]},error:null}};var d=l(703),m=l(84353),p=l(14899),_=l(88475),v=l(64765),h=l(97468),f=l(43556),b=l(1396),g=l(99291),A=l(75542),x=l(80228),y=l(50769),C=l(28780),k=l(97390),N=l(66337),j=l(47557),D=l(53548),w=l(35195),S=l(95382),P=l(15239);let T={src:"/deposits/_next/static/media/filter.3bae2c9e.svg",height:24,width:24,blurWidth:0,blurHeight:0};var M=l(4678),L=l(74015),I=l(19559),R=l(54319),E=l(40599),F=l(55921),B=l(40474),O=l(3379),z=l.n(O);let U=(0,r.memo)(e=>{let{terms:t,data:l,length:i,withAdditional:n}=e,{amountData:o,handleTermChange:s,term:c,handleToggleModal:u,handleLoad:m,filterAdditionalSettings:p,handleChangeAdditionalSettings:v,handleAmountChange:h}=l,f=(0,r.useRef)((0,_.O)()),b=(0,r.useCallback)(e=>{s(e),(0,I.oA)({event:"data-event",eventCategory:"vklady",eventAction:"filter_catalog",eventLabel:"depositPeriod",eventValue:"не имеет значения"})},[s]),g=(0,F.A)(0,0,!1),A=(0,r.useCallback)(()=>{(0,R.e)(M.nS,{offset:g,position:"top"}),m()},[m,g]),x=(0,r.useCallback)(e=>{o.handleChange(String(null!=e?e:""),e=>{f.current(async()=>{(0,I.oA)({event:"data-event",eventCategory:"vklady",eventAction:"filter_catalog",eventLabel:"depositValue",eventValue:e}),await h(Number(e))})})},[o,h]),y=(0,r.useCallback)(e=>{var t;let l=null!=(t=e.currentTarget.textContent)?t:"";(0,I.oA)({event:"data-event",eventCategory:"vklady",eventAction:"click_button_".concat((0,E.y)(l))}),A()},[A]);return(0,a.jsx)("div",{className:z().wrapper_container,children:(0,a.jsxs)(d.J,{className:z().container,children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:z().fields,children:[(0,a.jsx)(w.Y,{label:"Сумма",value:o.value?Number(o.value):void 0,className:z().field,onFocus:o.events.onFocus,onBlur:o.events.onBlur,onChange:x,onKeyDown:e=>(0,L.K)(e,A),dataId:"amountData",withoutControls:!0,decimalsCount:0,decimals:"never"}),(0,a.jsx)(S.l,{className:z().field,label:"Срок",onChange:b,options:t,value:c},null==c?void 0:c.label)]}),n&&(0,a.jsx)(B.k,{filterSettings:p,onToggleAdditionalSettings:v})]}),(0,a.jsxs)("div",{className:z().buttons,children:[(0,a.jsxs)(D.$,{variant:"secondary",className:z().filterButton,onClick:()=>u(),children:[(0,a.jsx)(P.default,{unoptimized:!0,src:T,alt:""}),"Все параметры"]}),(0,a.jsxs)(D.$,{onClick:y,className:z().filterButton,children:["Показать ",i]})]})]})})});U.displayName="DepositsFilter";var Y=l(2821),G=l(50328),V=l(55275),W=l(25819),H=l(32104),q=l(98742),Q=l(73520),K=l(8244),Z=l(62521),J=l.n(Z),X=l(58416),$=l(41105),ee=l(42994),et=l(74961),el=l(31633),ea=l(6627),ei=l(78916),en=l(4881),eo=l.n(en);let er=(0,r.memo)(e=>{let{className:t,data:l,discount:i,isPlatform:n=!1,onOpenDetailModal:o,isOldUser:s}=e,{query:c}=(0,b.T)(),{frameId:u,utm_medium:d,utm_campaign:m,utm_source:p,utm_term:_,aggregator_id:v}=c,h=(0,r.useRef)(null),f=(0,r.useMemo)(()=>((e,t,l,a,i)=>a?i?l:void 0:e?(e=>e&&{fixedBonusAmount:e.fixedBonusAmount,sum:e.maxBonusAmount,rate:e.annualPercentBonusValue,description:e.productsBonusTooltip,terms:e.productDetailBonusTooltip,link:e.helpfulLink})(t):l)(s,l.finuslugiBonusPromotion,i),[s,l.finuslugiBonusPromotion,i]);(0,ei.A)({itemRef:h,eventAction:"show_in_catalog",eventCategory:"vklady",eventLabel:String(l.id)});let g=()=>((0,I.oA)({event:"data-event",eventLabel:l.id,eventCategory:"vklady",eventAction:"open_row_catalog"}),o({isPlatform:n,href:k,depositItem:l})),A=(0,r.useMemo)(()=>(0,et.A)({data:l,hideBonusTooltip:!1,discountState:f}),[l,f]),x=(0,r.useMemo)(()=>(0,el.A)({data:l,isPlatform:n,renderTip:e=>(0,a.jsx)($.Y,{className:eo().detail,iconSrc:X.A,text:e.description,iconClassName:eo().detailIcon,children:e.title})}),[l,n]);if(!A[0])return null;let y=(0,ea.O)({utm_campaign:m,utm_medium:d,utm_source:p,utm_term:_,aggregator_id:v}),C=J().stringify(y),k="/".concat(l.url,"?frameId=").concat(u,"#amount=").concat(l.rateAmount,"&period=").concat(l.term).concat(C.length>0?"&":"").concat(C);return(0,a.jsx)("div",{className:t,ref:h,onClick:()=>{(0,I.oA)({event:"data-event",eventLabel:l.id,eventCategory:"vklady",eventAction:"learn_more_catalog"})},children:(0,a.jsx)(ee.T,{type:"deposit",icon:l.logoMob?(0,a.jsx)("div",{className:eo().logo,children:(0,a.jsx)(P.default,{unoptimized:!0,width:56,height:56,src:l.logoMob,alt:"logo"})}):(0,a.jsx)("div",{className:eo().placeholderLogo}),title:l.bankName||l.name,titleCaption:l.bankName?l.name:"",href:"/widget-vklady"+k,onOpenDetailModal:g,onDetailClick:g,tags:x,target:"_self",advantageAmountFrom:A[0],advantageBonus:A[1],advantageAmountTo:A[2],className:eo().uiPlate})})});er.displayName="DepositsItem";var es=l(15495),ec=l.n(es);let eu=e=>{var t;let{banks:l,platformDeposits:i,filter:n,isDiscount:o,isOldUser:s,depositLists:c,className:u,isMobile:m,isHiddenPromo:p,questions:_,isPlusFiveBonus:v}=e,{amountData:h,term:f,isLoading:b,isEmpty:g}=n,[A,x]=(0,r.useState)(10),{depositData:y,openModal:C,handleOpen:k,handleClose:N}=(0,K.S)({banks:l,anotherDeposits:[],platformDeposits:i,newPlatformDeposits:[]}),[j,w]=(0,r.useState)(!1);(0,r.useEffect)(()=>{w("1"!==localStorage.getItem("differentIncomeNotificationClosed"))},[]),(0,r.useEffect)(()=>{b&&x(10)},[b]);let S=e=>!!e.isNotAmount||!!e.isTermEmpty||!!e.computeData,[P,T]=(0,r.useState)(c.platform.filter(e=>S(e)));return(0,r.useEffect)(()=>{T(c.platform.filter(e=>S(e)))},[c]),(0,a.jsxs)("section",{id:M.nS,className:(0,Y.A)(ec().container,u),children:[(0,a.jsxs)(d.J,{children:[(0,a.jsxs)("p",{className:ec().title,children:[(0,a.jsxs)("span",{children:["Найдено ",c.currentLength,!m&&" "+(0,Q.td)(c.currentLength,"предложение","предложения","предложений")]})," ",(0,a.jsxs)("span",{children:[" ",!g&&"из ".concat(c.allLength)," "]})]}),(0,a.jsx)(G.k,{className:ec().disclaimer,text:"Все вклады застрахованы в АСВ"})]}),(0,a.jsx)(W.A,{isDesktop:!m,filter:n,isDiscount:o,withHeader:!1}),(0,a.jsxs)(d.J,{children:[c.platform.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:ec().listTitle,children:"Онлайн вклады от Финуслуг"}),j&&(0,a.jsx)("div",{className:ec().notificationBlock,children:(0,a.jsx)(q.Eg,{caption:"",description:"Доход по вкладам с одной ставкой может отличаться из-за разницы в количестве дней вклада",isClose:!0,link:"",onClose:()=>{localStorage.setItem("differentIncomeNotificationClosed","1"),w(!1)},size:"XL",status:"info",title:""})})]}),!b&&P.slice(0,A).filter(e=>p?!e.promo:e).map(e=>(0,a.jsx)(r.Fragment,{children:(0,a.jsx)("div",{"data-qa":"platform",children:(0,a.jsx)(er,{isPlatform:!0,onOpenDetailModal:k,className:ec().listItem,isOldUser:s,data:e},e.url+e.id)})},e.url)),b&&Array.from({length:6},(e,t)=>(0,a.jsx)(H.E,{className:ec().listItem},t)),!b&&c.platform.length>A&&(0,a.jsx)(D.$,{size:"s",onClick:()=>{(0,I.oA)({event:"data-event",eventCategory:"vklady",eventAction:"show_more_products"}),x(e=>e+10)},className:ec().button,variant:"secondary",children:"Смотреть еще предложения"})]}),y&&(0,a.jsx)(V.A,{data:y,isOpen:C,isOldUser:s,depositSumm:h.value,depositTerm:null!=(t=null==f?void 0:f.label)?t:"Любой",onClose:N,questions:_,isPlusFiveBonus:v,initialAmount:Number(h.value),initialTermInMonths:Number(f.value),eventCategory:"deposits_details_widget-vklady_popup"})]})};var ed=l(5195);let em=[{value:0,label:"Любой"},{value:1,label:"1 месяц"},{value:2,label:"2 месяца"},{value:3,label:"3 месяца"},{value:4,label:"4 месяца"},{value:5,label:"5 месяцев"},{value:6,label:"6 месяцев"},{value:9,label:"9 месяцев"},{value:12,label:"1 год"},{value:18,label:"1,5 года"},{value:24,label:"2 года"},{value:36,label:"3 года"},{value:48,label:"4 года"},{value:60,label:"5 лет"}];ed.G.deposits,ed.G.bonds;var ep=l(46842),e_=l.n(ep);let ev=(0,_.O)(),eh=e=>{let{depositsControl:t,depositTag:l,currencies:n,discounts:c,bankTowns:_,initialPlatformDeposits:D,questions:w,aggregatorIds:S}=e,P=(0,i.qF)("l"),{asPath:T}=(0,b.T)(),{bonuses:M,isPlusFiveBonus:L,isOldUser:I,isHiddenPromo:R}=(0,x.s)(c),[E,F]=(0,r.useState)(L||I),[B,O]=(0,r.useState)([]),[z,Y]=(0,r.useState)([]),[G,V]=(0,r.useState)(!0);(0,r.useEffect)(()=>{(async()=>{var e;let[t,a]=await Promise.all([(0,s.t$)(),u()]);if(null==t?void 0:t.data){let e=t.data.products,a=Array.from({length:t.data.boundaryValues.totalPages-1},(e,t)=>(0,s.t$)({page:t+1})),i=[...e,...(await Promise.all(a)).flatMap(e=>{var t,l;return null!=(l=null==(t=e.data)?void 0:t.products)?l:[]})];(null==l?void 0:l.url)!==p.i.nakop&&(i=i.filter(e=>!e.asSavingAccount)),Y(i)}(null==a||null==(e=a.data)?void 0:e.banks)&&O(a.data.banks.filter(e=>Number(e.active))),V(!1)})()},[null==l?void 0:l.url]);let W=(0,r.useMemo)(()=>(0,N.M)({depositsControl:null==t?void 0:t[0],path:T,tag:l}),[T,t,l]),H=(0,j.U)({tag:l,currencies:n,banks:B,defaultValues:W,isDiscount:E}),q=(0,h.Y)(),Q=(0,r.useMemo)(()=>({initialAnotherDeposits:[],initialPlatformDeposits:D,platformDeposits:z,anotherDeposits:[],bounds:[],isPlusFiveBonus:L,isOldUser:I,filter:{amount:H.amountData.value,currency:String(H.currencyUnit),withRefill:H.withRefill,filterAdditionalSettings:H.filterAdditionalSettings,importantDeposits:H.importantDeposits,initialSort:H.initialSort,order:H.increaseSort?k.ZN.Desc:k.ZN.Asc,sortType:H.sortType,isDiscount:E,term:H.term?Number(H.term.value):void 0,withCapitalization:H.withCapitalization,activeBanks:H.activeBanks?H.activeBanks.map(e=>String(e.value)):void 0,withMonthlyPercent:H.withMonthlyPercent,withPreferentialTermination:H.withPreferentialTermination},banks:B,discounts:M,bankTowns:_,town:null,region:null,allExtraInfo:{},getOnlyInitialData:G}),[D,z,L,I,H.amountData.value,H.currencyUnit,H.withRefill,H.filterAdditionalSettings,H.importantDeposits,H.initialSort,H.increaseSort,H.sortType,H.term,H.withCapitalization,H.activeBanks,H.withMonthlyPercent,H.withPreferentialTermination,E,B,M,_,G]),[K,Z]=(0,r.useState)(()=>(0,y.U)(Q));(0,r.useEffect)(()=>{ev(()=>Z((0,y.U)(Q)))},[Q]),(0,r.useEffect)(()=>{F(K.platform.some(e=>e.hasDiscount))},[K]);let{fitsForMonthlyPercentFilter:J,fitsForPreferentialTerminationFilter:X,fitsForCapitalization:$,fitsForRefill:ee}=K;return(0,A.f)({showMonthlyPercent:J,showPreferentialTermination:X,showCapitalization:$,showRefill:ee,filter:H}),(0,f.c)(),(0,g.A)(S),(0,a.jsxs)("main",{className:e_().page,children:[(0,a.jsxs)(o(),{children:[(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"},"viewport"),(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,a.jsx)(d.J,{className:e_().filterContainer,children:(0,a.jsx)(U,{length:K.currentLength,data:H,terms:em,withAdditional:!K.boundsIsEmpty})}),(0,a.jsx)(eu,{filter:H,isDiscount:E,isOldUser:I,banks:B,platformDeposits:z,depositLists:K,adFoxConfig:q,isMobile:!P,isHiddenPromo:R,questions:w,existTag:!(0,v.G)(l),isPlusFiveBonus:L,pageUrl:m.O.VKLADY}),(0,a.jsx)(C.M,{data:H,isDiscount:E,isMobile:!P,terms:em,depositsLength:K.currentLength,withAdditional:!K.boundsIsEmpty,showMonthlyPercent:J,showPreferentialTermination:X,showCapitalization:$,showRefill:ee,partnerId:null,drawerClassName:e_().filterModal})]})}},82159:e=>{e.exports={table:"DepositDetailTable_table__rSId5",item:"DepositDetailTable_item__eASY8",label:"DepositDetailTable_label__rvBz7",value:"DepositDetailTable_value__lYQCF",valueTip:"DepositDetailTable_valueTip__DC_V_",text:"DepositDetailTable_text__FRMTv",textTip:"DepositDetailTable_textTip__bcho8",attributeComment:"DepositDetailTable_attributeComment__lGQra",detailed:"DepositDetailTable_detailed__MRWJd",descriptionText:"DepositDetailTable_descriptionText___NggJ"}},85951:e=>{e.exports={container:"DepositDetailOfferModal_container__JU8tV",mobilePopup:"DepositDetailOfferModal_mobilePopup__XhL0c",content:"DepositDetailOfferModal_content__GK6Ln",plate:"DepositDetailOfferModal_plate__PrPzh",plateIcon:"DepositDetailOfferModal_plateIcon__4mHU_",plateLabel:"DepositDetailOfferModal_plateLabel__gb0gs",caption:"DepositDetailOfferModal_caption__e_PIR",blockTitle:"DepositDetailOfferModal_blockTitle__3F9h3",paramsTable:"DepositDetailOfferModal_paramsTable__PLy4c",tableTitle:"DepositDetailOfferModal_tableTitle___Yllo",tableBody:"DepositDetailOfferModal_tableBody__oDmc1",tableList:"DepositDetailOfferModal_tableList___Cq6B",buttonActions:"DepositDetailOfferModal_buttonActions__gRShD",button:"DepositDetailOfferModal_button__u_k4J",descriptionText:"DepositDetailOfferModal_descriptionText__dE8Qq"}},89153:(e,t,l)=>{"use strict";l.d(t,{s:()=>p});var a=l(95155),i=l(12115),n=l(2821),o=l(15243),r=l(55926),s=l(73122),c=l(74763),u=l(58993);l(73217);let d=(0,u.g)("radio"),m=Object.freeze({radio:d,input:"".concat(d,"__input"),marker:"".concat(d,"__marker"),wrapper:"".concat(d,"__wrapper"),label:"".concat(d,"__label"),caption:"".concat(d,"__caption"),icon:"".concat(d,"__icon"),iconButton:"".concat(d,"__icon-button"),states:{error:"".concat(d,"--error"),disabled:"".concat(d,"--disabled"),inverted:"".concat(d,"--inverted")},sizes:{xs:"".concat(d,"--xs"),s:"".concat(d,"--s"),m:"".concat(d,"--m")},variants:{primary:"".concat(d,"--primary"),secondary:"".concat(d,"--secondary")}}),p=(0,i.forwardRef)((e,t)=>{let{value:l,variant:u="primary",checked:d=!1,state:p="default",label:_,disabled:v=!1,caption:h,className:f,style:b,icon:g,withIcon:A=!1,size:x="m",inverted:y=!1,children:C,inputRef:k,onChange:N,onIconClick:j,dataQa:D,dataId:w,...S}=e,P=(0,i.useId)(),T=C||_;return(0,a.jsxs)("label",{ref:t,htmlFor:P,"data-marker-label":"",className:(0,n.A)(f,m.radio,{[m.states.disabled]:v,[m.states.inverted]:y,[m.states.error]:"error"===p,[m.sizes[x]]:!0,[m.variants[u]]:!0}),style:b,"data-id":w,"data-qa":D,children:[(0,a.jsx)("input",{id:P,value:l,checked:d,className:m.input,type:"radio",disabled:v,onChange:e=>{null==N||N(e.target.value,e)},ref:k,...S}),(0,a.jsx)("span",{className:m.marker,children:(0,a.jsx)(s.C,{type:"radio",checked:d,inverted:y,state:p,disabled:v})}),T&&(0,a.jsxs)("span",{className:m.wrapper,children:[(0,a.jsx)("span",{className:m.label,children:T}),h&&(0,a.jsx)(r.C,{className:m.caption,withoutIcon:!0,children:h})]}),A&&(0,a.jsx)("button",{type:"button",className:(0,n.A)(m.iconButton),onClick:v?void 0:j,children:(0,a.jsx)(c.P,{className:(0,n.A)(m.icon),children:g?(0,a.jsx)(a.Fragment,{children:g}):(0,a.jsx)(o.S,{})})})]})});p.displayName="Radio"},90249:e=>{e.exports={action:"Action_action__v7BY_",icon:"Action_icon__LnjB2"}},91643:e=>{e.exports={container:"DetailModalSkeleton_container__ml95j",column:"DetailModalSkeleton_column__DMS8m",row:"DetailModalSkeleton_row__9baTj",header:"DetailModalSkeleton_header__2h855",settings:"DetailModalSkeleton_settings__axyGV",bonuses:"DetailModalSkeleton_bonuses__kclvP",profit:"DetailModalSkeleton_profit__dTSTz",params:"DetailModalSkeleton_params__3eblD"}},91999:e=>{e.exports={wrapper:"DepositFloatingRateTypeCard_wrapper__GJQK_",item:"DepositFloatingRateTypeCard_item__SEVk6",spending:"DepositFloatingRateTypeCard_spending__7kx35",label:"DepositFloatingRateTypeCard_label__bitWV",text:"DepositFloatingRateTypeCard_text__W4oqZ",splitter:"DepositFloatingRateTypeCard_splitter__Mv71D",tip:"DepositFloatingRateTypeCard_tip__VapND",hint:"DepositFloatingRateTypeCard_hint__TSTDI",spendingPercent:"DepositFloatingRateTypeCard_spendingPercent__xTmOs",chips:"DepositFloatingRateTypeCard_chips__QGw0T"}},92646:(e,t,l)=>{"use strict";l.d(t,{$U:()=>s,DU:()=>n,LK:()=>r,Vs:()=>o,Yp:()=>c,s:()=>u});var a=l(5195),i=l(97390);let n=[{value:0,label:"Любой"},{value:1,label:"1 месяц"},{value:2,label:"2 месяца"},{value:3,label:"3 месяца"},{value:4,label:"4 месяца"},{value:5,label:"5 месяцев"},{value:6,label:"6 месяцев"},{value:7,label:"7 месяцев"},{value:8,label:"8 месяцев"},{value:9,label:"9 месяцев"},{value:12,label:"1 год"},{value:18,label:"1,5 года"},{value:24,label:"2 года"},{value:36,label:"3 года"},{value:48,label:"4 года"},{value:60,label:"5 лет"},{value:120,label:"10 лет"}],o={pp:"g",ps:"foam",p2:"hody"},r={pp:"i",ps:"foam",p2:"hojj"},s={pp:"h",ps:"foam",p2:"hojk"},c=[{label:"Вклады",name:a.G.deposits},{label:"Облигации",name:a.G.bonds}],u=[{label:"По ставке с бонусом",value:i.r3.RatePlusBonus,shortLabel:"Ставка с бонусом"},{label:"По ставке",value:i.r3.Rate,shortLabel:"Ставка"},{label:"По доходу",value:i.r3.Profit,shortLabel:"Доход"}]},97468:(e,t,l)=>{"use strict";l.d(t,{Y:()=>i});var a=l(12115);let i=()=>{let[e,t]=(0,a.useState)();return(0,a.useEffect)(()=>{window&&window.Ya&&window.yaContextCb&&t({ownerId:406293,Ya:window.Ya,yaContextCb:window.yaContextCb})},[]),e}},98715:e=>{e.exports={skeleton:"Skeleton_skeleton__QIS3q",move:"Skeleton_move__TZqyh"}},99822:(e,t,l)=>{"use strict";l.d(t,{R:()=>n,X:()=>i});var a=l(68418);let i=Object.freeze({[a.G.MIN_BALANCE]:"На минимальный остаток",[a.G.AVG_BALANCE]:"На средний остаток",[a.G.DAILY_BALANCE]:"На ежедневный остаток"}),n=Object.freeze({DAILY:"Ежедневно",MONTHLY:"Ежемесячно"})}},e=>{e.O(0,[2545,4653,25,407,7376,1804,5776,5592,495,6799,8673,7466,6798,2876,5383,1366,6272,8918,2167,320,5644,87,5470,3837,6659,6917,8441,1255,7358],()=>e(e.s=73800)),_N_E=e.O()}]);