(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7017],{82491:function(t,e,i){Promise.resolve().then(i.bind(i,53417)),Promise.resolve().then(i.bind(i,69767)),Promise.resolve().then(i.t.bind(i,88003,23)),Promise.resolve().then(i.bind(i,15037)),Promise.resolve().then(i.bind(i,39471))},39471:function(t,e,i){"use strict";i.r(e),i.d(e,{Deposits:function(){return eK}});var n,l=i(57437),o=i(35563),a=i(75461),s=i(54365),r=i(2265),d=i(52074);let u=(0,d.g)("cross-link-chips-block","sc"),c=Object.freeze({crossLinkChipsBlock:u,crossLinkSlider:`${u}__slider`,crossLinkItemList:`${u}__item-list`,crossLinkItem:`${u}__item`,hiddenCrossLinkItemLink:`${u}__item--hidden`,sliderChips:`${u}__slider-chips`,sliderChipsItem:`${u}__slider-chips-item`}),v=({labels:t,dataLayerPush:e,eventCategory:i="cross-link",...n})=>{var o;let[d,u]=(0,r.useState)(null==(o=t[0])?void 0:o.name),v=n=>{let l=t.find(t=>t.name===d);u(n),e({event:"data-event",eventCategory:i,eventAction:"click_chip_cross-link-block",eventLabel:null==l?void 0:l.name})},p=t.map(t=>({id:t.name,label:t.name})),m=(t,l)=>{e({event:"data-event",eventCategory:i,eventAction:"click_link_cross-link-block",eventLabel:t.tagName,eventValue:l,url:`${n.href}/${t.url}`})};return(0,l.jsxs)(l.Fragment,{children:[p.length>=1&&(0,l.jsx)(a.iR,{options:{slidesPerView:"auto",spaceBetween:8},className:c.crossLinkSlider,children:p.map(t=>(0,l.jsx)(a.wI,{className:c.sliderChipsItem,children:(0,l.jsx)(a.cL,{value:d,onChipClick:v,chips:[t]})},t.id))}),t.length>0&&(0,l.jsx)("ul",{className:c.crossLinkItemList,children:t.map(t=>{var e;let i=t.name!==d;return null==(e=t.tags)?void 0:e.map(e=>(0,l.jsx)("li",{className:(0,s.Z)(c.crossLinkItem,i&&c.hiddenCrossLinkItemLink),children:(0,l.jsx)(a.rU,{href:`${n.href}/${e.url}`,onClick:()=>m(e,t.name),children:e.tagName})},e.id))})})]})};v.displayName="CrossLinkChipsBlock";let p=(0,d.g)("cross-link","sc"),m=Object.freeze({crossLink:p,titleWrapper:`${p}__title-wrapper`,title:`${p}__title`,crossLinkWrapper:`${p}__wrapper`,crossLinkChipsTitle:`${p}__chips-title`}),_=({sectionTitle:t,labelsData:e=[],className:i,blockTitle:n="Виды вкладов",href:a="/vklady",dataLayerPush:r})=>(0,l.jsx)("section",{className:(0,s.Z)(m.crossLink,i),children:(0,l.jsxs)(o.W2,{children:[(0,l.jsx)("div",{className:m.titleWrapper,children:(0,l.jsx)(o.X6,{as:"h2",type:"hero",className:(0,s.Z)(m.title),children:t})}),(0,l.jsxs)("div",{className:m.crossLinkWrapper,children:[n&&(0,l.jsx)(o.X6,{as:"h3",type:"h3",className:m.crossLinkChipsTitle,children:n}),(0,l.jsx)(v,{labels:e.content,href:a,dataLayerPush:r})]})]})});_.displayName="CrossLink";let h=(0,d.g)("expert-quote","sc"),f=Object.freeze({expertQuote:h,wrapper:`${h}__wrapper`,title:`${h}__title`,card:`${h}__card`,content:`${h}__content`,aboutText:`${h}__aboutText`,about:`${h}__about`,img:`${h}__img`,name:`${h}__name`,position:`${h}__position`,text:`${h}__text`}),g=(0,r.memo)(({className:t,quote:e})=>(0,l.jsx)("section",{className:(0,s.Z)(f.wrapper,t),children:(0,l.jsxs)(o.W2,{children:[(0,l.jsx)(o.X6,{as:"h2",type:"display",weight:"bold",className:(0,s.Z)(f.title,"mb-6"),children:"Мнение эксперта"}),(0,l.jsx)("div",{className:f.card,children:(0,l.jsxs)("div",{className:f.content,children:[(0,l.jsxs)("div",{className:f.about,children:[e.expert.photo&&(0,l.jsx)("a",{href:e.expert.url,children:(0,l.jsx)("div",{className:f.img,style:{backgroundImage:`url(${e.expert.photo})`}})}),(0,l.jsxs)("div",{className:f.aboutText,children:[(0,l.jsx)("a",{href:e.expert.url,className:f.name,children:e.expert.name}),(0,l.jsx)("p",{className:f.position,dangerouslySetInnerHTML:{__html:e.expert.position}})]})]}),(0,l.jsx)("p",{className:f.text,dangerouslySetInnerHTML:{__html:e.content}})]})})]})}));g.displayName="ExpertQuote";var b=i(73514);let x=(0,d.g)("seo-text","sc"),y=Object.freeze({seoText:x,wrapper:`${x}__wrapper`,title:`${x}__title`,titleWrapper:`${x}__title-wrapper`,blockTitle:`${x}__block-title`,text:`${x}__text`,checkAll:`${x}__check-all`}),w=({blockTitle:t,content:e,sectionTitle:i,className:n})=>(0,l.jsx)("section",{className:(0,s.Z)(y.seoText,n),children:(0,l.jsxs)(o.W2,{children:[(0,l.jsx)("div",{className:y.titleWrapper,children:(0,l.jsx)(o.X6,{as:"h2",type:"hero",className:(0,s.Z)(y.title),children:i})}),(0,l.jsxs)("div",{className:y.wrapper,children:[(0,l.jsx)(o.X6,{as:"h3",type:"h3",className:(0,s.Z)(y.blockTitle),children:t}),(0,l.jsx)("div",{className:y.text,dangerouslySetInnerHTML:{__html:e||""}})]})]})});w.displayName="SeoText";var N=i(5426),T=i(27648),C=i(99376),D=i(50666),j=i(77337),k=i(90716);let L=t=>{let{region:e,town:i,tag:n}=t;return(0,k.t9)("/money_data/DepositRegion.json".concat(e?"?region="+e.url:"").concat(i?"&town="+i.url:"").concat(n?(e?"&":"?")+"tag_url="+n.url:""))},A=t=>{let{region:e}=t;return(0,k.t9)("/money_data/DepositRegion.json?region_links=1".concat(e?"&region="+e.url:""))};var I=i(72616),E=i(19312),S=i(65716),P=i(37162),M=i(14862);let R=t=>(0,k.t9)("/api/v1/deposits/combo",{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}},{isNewApi:!0});var O=i(94943),z=i(64671),U=i(6164),B=t=>{var e;let{amount:i,customerId:n,termInDays:l,termInMonths:o}=t;return{amount:i,term:{value:null!==(e=null!=l?l:o)&&void 0!==e?e:0,type:l?U.e.DAY:U.e.MONTH},...n&&{customerId:n}}};let F=(0,z.b)(),W=(t,e)=>t?{...t,totalProfit:t.totalProfit-e}:null,Y=t=>{let{amount:e,term:i,initialComboDeposits:n,customerId:l,tag:o,isTermInDays:a}=t,s=e&&i&&(null==o?void 0:o.url)!==O.z.nakop,[d,u]=(0,r.useState)(W(s?n:null,e));return(0,r.useEffect)(()=>{if(!s){u(null);return}F(async()=>{var t;u(W(null!==(t=(await R(B({amount:e,customerId:l,[a?"termInDays":"termInMonths"]:i}))).data)&&void 0!==t?t:null,e))})},[l,e,i,s,a]),{comboDeposits:d}};var Z=i(49090),$=i(80684),G=i(72151),Q=i(99193),q=i(39421),H=i.n(q),V=(0,r.memo)(function(t){let{visible:e,eventCategory:i,amount:n=0,bankName:d="",rate:u=0,onTipsApply:c}=t,[v,p]=(0,r.useState)({amount:n,bankName:d,rate:u});(0,r.useEffect)(()=>{e&&p({amount:n,bankName:d,rate:u})},[n,d,u,e]);let m=(0,r.useRef)(null);(0,Q.Z)({itemRef:m,eventCategory:i,eventAction:"view_hint",eventLabel:""});let _=(0,r.useCallback)(()=>{(0,G.lQ)({eventCategory:i,eventAction:"click_hint_button"}),c(n)},[n,i,c]);return(0,l.jsx)(o.W2,{className:(0,s.Z)(H().depositTips,e&&H().visible),"data-qa":"deposit-tips",children:(0,l.jsxs)("div",{className:H().tipContent,ref:m,children:[(0,l.jsx)($.IconFdsFlashO,{size:24,className:H().icon}),(0,l.jsxs)("div",{className:H().textContent,children:[(0,l.jsx)(o.xv,{as:"p",size:"18",weight:"medium",style:{color:"var(--color-black-500)"},dataQa:"deposit-tips-title",children:"Вы можете увеличить сумму вклада и вложить деньги более выгодно"}),(0,l.jsx)(o.xv,{as:"p",size:"14",dataQa:"deposit-tips-caption",style:{color:"var(--color-gray-800)"},children:"Нашли более выгодный вклад от банка \xab".concat(v.bankName,"\xbb под ").concat((0,Z.og)(v.rate)," с минимальной суммой от ").concat((0,Z.lb)(v.amount))})]}),(0,l.jsx)(a.zx,{className:H().mobileButton,size:"xs",variant:"secondary",appearance:"fill",iconRight:(0,l.jsx)($.IconFdsChevronRightO,{}),dataQa:"deposit-tips-show-button-mobile",onClick:_,children:"Посмотреть"}),(0,l.jsx)(a.zx,{className:H().desktopButton,size:"xs",variant:"primary",appearance:"ghost",iconRight:(0,l.jsx)($.IconFdsChevronRightO,{}),dataQa:"deposit-tips-show-button-desktop",onClick:_,children:"Посмотреть"})]})})},(t,e)=>t.visible===e.visible),X=i(80691),K=i(57044),J=i(66726),tt=i(79588),te=i(47935),ti=i(32046),tn=i(14441);let tl=Object.freeze(["moskva","sankt-peterburg"]);var to=(0,r.memo)(function(t){let{region:e,tag:i,meta:n,depositLists:o,regionUrl:a,currency:s,isOldUser:d,town:u,initialDescription:c,initialTitle:v,quote:p}=t,{asPath:m}=(0,tn.P)(),_=m.split("?")[0].split("#")[0],{minDepositAmount:h,minTermPeriod:f,highPrice:g,inRegion:b,h1:x,description:y,title:w}=n,N=(0,ti.L)(i),T=(null==o?void 0:o.notInitialDeposits)?w:v,C=(null==o?void 0:o.notInitialDeposits)?y:c;return(0,r.useEffect)(()=>{document.title=T;let t=document.querySelector("link[rel=canonical]"),e=document.querySelector('meta[name="description"]');e&&e.setAttribute("content",C),t&&(t.href="".concat(M.m.BASE_URL).concat(_))},[T,_,C]),(0,l.jsxs)(l.Fragment,{children:[N&&e&&tl.includes(e.url)&&(0,l.jsx)(tt.Z,{minDepositAmount:h,minTermPeriod:f,regionName:e.name_p,maxRate:g,regionUrl:e.url}),(0,l.jsx)(X.g,{regionUrl:a,tag:i}),i&&te.E.includes(null==i?void 0:i.url)&&(0,l.jsx)(K.M,{textList:i.text,regionId:null==e?void 0:e.region_id,townId:null==u?void 0:u.id}),(0,l.jsx)(J.Q,{filterCurrency:s,currentLength:o.currentLength,isHiddenPromo:d,description:C,h1:x,inRegion:b,platform:o.platform,another:o.another,regionUrl:a,tagUrl:!N&&i?i.url:"",quote:p})]})});let ta=t=>{let{isDefault:e,tag:i,h1:n,inRegion:l,basePath:o="/vklady"}=t,a=[{label:"Вклады",href:o}];if(!e&&l){var s;a.push({label:null!==(s=null==i?void 0:i.tag_name)&&void 0!==s?s:n,href:(0,j.xn)(o,"/teg_".concat(null==i?void 0:i.url))})}return a};var ts=i(21652),tr=i.n(ts);let td=t=>{if(t.clientSortType)return{amount:Number(t.amountData.value),term:Number(t.term.value),activeBanks:t.activeBanksValue,sortType:t.clientSortType,withCapitalization:t.withCapitalization,withMonthlyPercent:t.withMonthlyPercent,withPreferentialTermination:t.withPreferentialTermination,withPartialWithdrawal:t.withPartialWithdrawal,withRefill:t.withRefill}},tu=(t,e)=>tr()(t,e);var tc=i(98160);let tv=t=>t.length?[tc.vw[0],...t.map(t=>({value:t.durationOfDays,label:t.termLabel}))]:tc.vw,tp=t=>{let{isDepositsLoading:e,isCustomerLoading:i,isPlatformDepositsLoading:n,hasFilters:l,isClient:o,platformLoadingDisabled:a}=t;return e&&o||i||a&&(n||!l&&o)};var tm=i(33600),t_=i(36639);let th=(t,e,i)=>t?e:i?String(i):void 0,tf=(t,e,i,n)=>t||!e?i?Number(i):void 0:n;var tg=i(71931),tb=i(91627);let tx=Object.freeze({[tm.ER.Profit]:"PROFIT",[tm.ER.Rate]:"RATE",[tm.ER.RatePlusBonus]:"CUMULATIVE_RATE"}),ty=t=>{if(t)return{type:"DAY",value:M.m.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED?Number(t):Math.round(Number(t)*tb.F)}};var tw=i(81849);let tN=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,k.t9)("/api/v1/quotes?quoteUrl=".concat(t,"&published=true"),null,{isMpScApi:!0},e)},tT=t=>{if(!Array.isArray(t)||0===t.length)return null;let e=Math.floor(Math.random()*t.length);return t[e]},tC=async t=>{var e,i;let{tag:n,region:l,town:o}=t,a=["vklady"];n&&a.push("teg_".concat(n)),l&&a.push("reg_".concat(l)),o&&a.push(o);let s=a.join("/"),r=tT(null!==(i=null===(e=(await tN(s)).data)||void 0===e?void 0:e.content)&&void 0!==i?i:[]);return r?{...r,content:r.content}:null};var tD=i(89911);let tj=t=>{var e;let{tagUrl:i,regionUrl:n,townUrl:l,initialQuote:o}=t,{data:a,isLoading:s}=(0,tD.d)(["quote",i,n,l],()=>tC({tag:i,region:n,town:l}),{fallbackData:o,revalidateOnFocus:!1});return{quote:null!==(e=null!=a?a:o)&&void 0!==e?e:null,isLoading:s}},tk=async function(t){var e;let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new URLSearchParams({url:t}).toString();return null!==(e=(await (0,k.t9)("/api/v2/seo-texts/by-url?".concat(n),null,{isMpScApi:!0},i)).data)&&void 0!==e?e:[]},tL=async t=>{var e,i;let{url:n}=t;return null!==(i=null===(e=(await tk(n)).find(t=>"SEO Текст"===t.type.name))||void 0===e?void 0:e.content[0])&&void 0!==i?i:null},tA=t=>{let{url:e,initialSeoText:i}=t,{data:n,isLoading:l}=(0,tD.d)(["seoText",e],()=>tL({url:e}),{fallbackData:i,revalidateOnFocus:!1});return{seoText:null!=n?n:null,isLoading:l}};var tI=i(97793),tE=i(69393),tS=i(53931),tP=i(36578);let tM=t=>{let{displayDuration:{years:e,months:i,days:n}}=t,l=[];return e&&l.push((0,tP.PY)(e,tE.Nu.YEAR)),i&&l.push((0,tP.PY)(i,tE.Nu.MONTH)),n&&l.push((0,tP.PY)(n,tE.Nu.DAY)),{...t,termLabel:l.join(" ")}};var tR=i(58580);let tO=(t,e)=>t?(0,k.t9)((0,j.jb)("/api/v3/product-tags/".concat(t),{limit:e}),null,{isMpScApi:!0}):{data:null,error:null},tz=(t,e,i)=>{if(!t)return{data:null,error:null};let n=(()=>{let n="/api/v1/deposit-tags/".concat(t,"/texts"),l=[];return e&&l.push("region=".concat(e)),i&&l.push("town=".concat(i)),l.length>0&&(n+="?".concat(l.join("&"))),n})();return(0,k.t9)(n,null,{isMpScApi:!0})},tU=t=>null!=t?t:null,tB=t=>null!=t?t:"",tF=t=>null==t?void 0:t.map(t=>({title:t.title||"",content:[{type:"html",data:{html:t.content}}],regions:t.regions,...t.displayInMicrodata&&{displayInMicrodata:t.displayInMicrodata}})),tW=t=>{var e,i,n,l,o,a,s;return(null===(e=t.facet)||void 0===e?void 0:e.filterUsage)?[]:[...null!==(o=null===(i=t.facet)||void 0===i?void 0:i.productsIds)&&void 0!==o?o:[],...null!==(a=null===(n=t.facet)||void 0===n?void 0:n.depositsIds)&&void 0!==a?a:[],...null!==(s=null===(l=t.facet)||void 0===l?void 0:l.legacyProductsIds)&&void 0!==s?s:[]]},tY=t=>{var e,i,n,l,o,a,s,r,d,u,c,v,p,m,_,h,f,g,b,x,y;return t?{id:tB(t.id),url:tB(t.url),title:tB(t.individualTitle),subtitle:tB(t.individualSubtitle),description:tB(t.individualDescription),individualDescription:tB(t.individualDescription),name:tB(t.internalName),tag_name:tB(t.tagName),text:tF(null!==(f=t.textList)&&void 0!==f?f:[]),calc_amount:tU(null===(e=t.facet)||void 0===e?void 0:e.depositAmount),calc_term:tU(null===(i=t.facet)||void 0===i?void 0:i.depositTerm),calc_currency_id:tU(null===(n=t.facet)||void 0===n?void 0:n.currency),filter:{term:{from:String(null!==(g=null===(l=t.facet)||void 0===l?void 0:l.depositTerm)&&void 0!==g?g:0),to:null},amount:tU(null===(o=t.facet)||void 0===o?void 0:o.depositAmount),currency:null!==(b=null===(a=t.facet)||void 0===a?void 0:a.currency)&&void 0!==b?b:"RUB",type:tB(null===(s=t.facet)||void 0===s?void 0:s.type),partial_withdrawal:(null===(r=t.facet)||void 0===r?void 0:r.partialWithdrawal)?1:0,online_application:0,finuslugi_application:0,commercial:(null===(d=t.facet)||void 0===d?void 0:d.commercialPlacement)?1:0,refill:(null===(u=t.facet)||void 0===u?void 0:u.replenishment)?1:0,interest_capitalization:(null===(c=t.facet)||void 0===c?void 0:c.capitalization)?1:0,earlyTermination:!!(null===(v=t.facet)||void 0===v?void 0:v.earlyTermination),interestsMonthly:!!(null===(p=t.facet)||void 0===p?void 0:p.interestsMonthly),displayNonPlatform:!!(null===(m=t.facet)||void 0===m?void 0:m.displayNonPlatform),rate:tU(null===(_=t.facet)||void 0===_?void 0:_.depositRate)},disable_filter:(null===(h=t.facet)||void 0===h?void 0:h.filterUsage)?0:1,position:null!==(x=t.sortNumber)&&void 0!==x?x:0,deposits:tW(t),default:t.useByDefault?1:0,region_page:{is_show:null!==(y=t.isPublishedTagAndArea)&&void 0!==y&&y,town_titles:[],town_content:[],region_titles:[],region_content:[],town_subtitles:[],read_more_title:"",region_subtitles:[],best_offers_title:"",town_descriptions:[],region_descriptions:[],reviews_block_title:"",search_region_title:""},region_title:tB(t.individualTitle),faq_title:"",bank_region_page:{all_russia_titles:[],region_titles:[],town_titles:[],all_russia_descriptions:[],region_descriptions:[],town_descriptions:[],reviews_block_title:"",best_offers_title:"",search_region_title:"",read_more_title:"",all_russia_content:[],region_content:[],town_content:[],similar_services_title:""},stats:tU(t.stats)}:null},tZ=async t=>{let{tagUrl:e,depositTags:i,setTag:n,toggles:l,limit:o,shouldFetchTexts:a=!0,regionId:s,townId:r}=t,d=await t$({tagUrl:e,depositTags:i,toggles:l,limit:o,shouldFetchTexts:a,regionId:s,townId:r});if(n&&d){var u,c;n(d),null===(c=window)||void 0===c||null===(u=c.scrollTo)||void 0===u||u.call(c,0,0)}return d},t$=async t=>{var e,i,n,l,o,a,s,r;let{tagUrl:d,depositTags:u,limit:c,shouldFetchTexts:v,regionId:p,townId:m}=t,_=null==u?void 0:null===(e=u.find(t=>{let{url:e}=t;return e===d}))||void 0===e?void 0:e.id,h=null==u?void 0:null===(i=u.find(t=>{let{name:e}=t;return"DEFAULT"===e}))||void 0===i?void 0:i.id,f=null!=_?_:h,g=await tO(f,c),b=v?await tz(f,p,m):void 0;return tY({...null==g?void 0:g.data,textList:[...null!==(a=null==b?void 0:null===(n=b.data)||void 0===n?void 0:n.textList)&&void 0!==a?a:[],...null!==(s=null==b?void 0:null===(l=b.data)||void 0===l?void 0:l.regionContent)&&void 0!==s?s:[],...null!==(r=null==b?void 0:null===(o=b.data)||void 0===o?void 0:o.townContent)&&void 0!==r?r:[]]})};var tG=i(93053),tQ=i(58864),tq=i(47492),tH=i(65621);function tV(t){let{tagId:e,banksByBic:i,...n}=t,{data:l,isLoading:o}=(0,tD.d)(["non-platform-deposits-by-tag",e],()=>(0,tI.PT)(e),n);return(0,r.useMemo)(()=>({nonPlatformDeposits:(null!=l?l:[]).map(t=>{var e;return(0,tH.p)({deposit:t,bank:(null==t?void 0:null===(e=t.contentAttributes)||void 0===e?void 0:e.bic)?i[t.contentAttributes.bic]:void 0})}),isLoading:o}),[i,l,o])}async function tX(){let t=await (0,tI.vI)();if(!t.data)return[];let{boundaryValues:{totalPages:e},products:i}=t.data,n=Array.from({length:e-1},(t,e)=>(0,tI.vI)("active",{page:e+1}));return[...i,...(await Promise.all(n)).flatMap(t=>{var e,i;return null!==(i=null===(e=t.data)||void 0===e?void 0:e.products)&&void 0!==i?i:[]})]}var tK=i(86935);let tJ=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,k.t9)("/api/v1/banks/filtered".concat(t?"?tagId=".concat(t):""),null,{isSeoApi:!0},e)};var t0=i(81237),t1=i(92317),t2=i(36204),t6=i(57977),t4=i(68026);let t9={setItem:(t,e)=>{try{window.localStorage.setItem(t,e)}catch(t){return console.error(t),!1}return!0},getItemRaw:t=>{try{return window.localStorage.getItem(t)}catch(t){return console.error(t),null}},getItem:t=>{let e=t9.getItemRaw(t);if(e&&"undefined"!==e)try{return JSON.parse(e)}catch(e){console.warn("invalid object in localStorage by key: ".concat(t))}return null},removeItem:t=>{try{window.localStorage.removeItem(t)}catch(t){console.error(t)}}},t7=t=>{let{baseUrl:e,regionUrl:i="",tagUrl:n="",townUrl:l="",params:o,separator:a="?"}=t,s=(0,j.xn)(e,n,i?"reg_"+i:"",l===i?"":l);return o?s+a+o:s},t3=t=>{try{let e=t9.getItem("user_region"),i=t9.getItem("user_town"),n=e&&!t.includes(e.url),l=i&&!t.includes(i.url)&&i.url!==(null==e?void 0:e.url);if(e&&(n||l))return{regionUrl:e.url,townUrl:null==i?void 0:i.url};if(e&&t.includes(e.url)&&1===Number(t9.getItemRaw("all_russia_selected")))return null}catch(t){console.log(t)}},t5=(t,e)=>{let i=t.split("#")[0].split("?")[0].split("/"),n=i.findIndex(t=>t.includes("reg_")),l=n>-1?i[n]:null,o=n>-1?i[n+1]:null,a=l?e.find(t=>{let{url:e}=t;return e===l.slice(4)}):null,s=a&&o?a.towns.find(t=>{let{url:e}=t;return e===o}):null;return{region:a,town:s}},t8=t=>{let{pageName:e,regions:i,initialValues:n,isRegionPageEnabled:l=!0}=t,[o,a]=(0,r.useState)(!0),{asPath:s,replace:d}=(0,tn.P)(),u=(0,r.useMemo)(()=>{var t;return null==s?void 0:null===(t=s.split("?")[0])||void 0===t?void 0:t.split("#")[0].split("/").slice(1)},[s]),c=(0,r.useMemo)(()=>u.find(t=>t.includes("teg_")),[u]),{region:v,town:p,handleSetRegion:m,handleSetTown:_}=(0,t4.k)(),h=(0,r.useCallback)(async function(){let{regionUrl:t,townUrl:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((!l||"teg_premium"===c)&&t)return;let n=s.indexOf("?"),o=s.indexOf("#"),a=n<o||o<0?"?":"#",r=t7({baseUrl:"/"+e,regionUrl:t,tagUrl:c,townUrl:i,params:s.split(a)[1],separator:a});r!==s&&d(r)},[s,c,e,l]);return(0,r.useEffect)(()=>{a(!1)},[]),(0,r.useEffect)(()=>{if(!s.length)return;let t=t3(s);if(void 0!==t){t&&h(t);return}if(1===Number(t9.getItemRaw("all_russia_selected"))&&!(null==v?void 0:v.url.length)&&!(null==p?void 0:p.url.length)&&s.includes("reg_")){h();return}if(!(null==v?void 0:v.url.length)&&!(null==p?void 0:p.url.length)&&s.includes("reg_")){let{region:t,town:e}=t5(s,i);t&&m(t),e&&_(e);return}},[s,h,null==v?void 0:v.url,null==p?void 0:p.url,i,m,_]),(0,r.useMemo)(()=>({region:l&&(v||o&&(null==n?void 0:n.region))||null,town:l&&(p||o&&(null==n?void 0:n.town))||null,handleSetRegion:m,handleSetTown:_}),[v,p,m,_,o,n])};var et=i(10102),ee=i(48034),ei=i(76002),en=i(94195),el=i(90862),eo=i(7206),ea=i(84213),es=i(56949),er=i(28819),ed=i(26523),eu=i(14761),ec=i(32113),ev=i(33145),ep=i(57291),em=i(95819),e_=i(40482),eh=i.n(e_),ef={src:"/deposits/_next/static/media/finuslugi.c398cf70.svg",height:8,width:12,blurWidth:0,blurHeight:0},eg=(0,r.memo)(function(t){let{isSavingAccount:e,isOldUser:i}=t,n=(0,ee.Z)(),o=(0,r.useCallback)(()=>(0,N.ld)(P.Yf,{offset:n,position:"top"}),[n]);return(0,l.jsxs)("div",{className:eh().additionalTips,"data-qa":"additional-tips",children:[!i&&!e&&(0,l.jsx)(em.T,{dataQa:"additional_tips-how_to_open-button",onClick:o,children:(0,l.jsx)(a.Vp,{className:eh().tag,iconLeft:(0,l.jsx)(ev.default,{src:ef,alt:"",unoptimized:!0,width:12}),label:"Как открыть вклад",variant:"secondary"})}),(0,l.jsx)(a.Vp,{dataQa:"additional_tips-asv-text",className:eh().tag,iconLeft:(0,l.jsx)(ev.default,{src:ep.Z,unoptimized:!0,width:12,alt:""}),label:"".concat(e?"Счета":"Вклады"," застрахованы в АСВ")})]})}),eb=i(85665),ex=i(72798),ey=i.n(ex);function ew(t){let{title:e,caption:i,icon:n,dataQa:a,onCloseClick:s}=t;return(0,l.jsxs)("div",{className:ey().notification,"data-qa":a,children:[n,(0,l.jsxs)("div",{className:ey().textBlock,children:[(0,l.jsx)(o.xv,{size:"18",weight:"medium",className:ey().title,children:e}),(0,l.jsx)(o.xv,{size:"14",weight:"regular",className:ey().caption,children:i})]}),(0,l.jsx)($.IconFdsCloseO,{size:"24",className:ey().closeIcon,onClick:s})]})}var eN=i(2470),eT=i.n(eN);let eC="opening-notification-closed",eD="profit-notification-closed";function ej(t){let{disableProfitNotification:e,disableNotifications:i}=t,[n,o]=(0,r.useState)(()=>!t9.getItem(eC)),[a,s]=(0,r.useState)(()=>!e&&!t9.getItem(eD)),d=(0,r.useCallback)(()=>{o(!1),t9.setItem(eC,"true")},[]),u=(0,r.useCallback)(()=>{s(!1),t9.setItem(eD,"true")},[]);return(n||a)&&!i?(0,l.jsxs)("div",{className:eT().notifications,children:[n&&(0,l.jsx)(ew,{title:"100% онлайн",caption:"Открытие без\xa0посещения банка",icon:(0,l.jsx)($.IconFdsHeartO,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-opening-notification",onCloseClick:d}),a&&(0,l.jsx)(ew,{title:"Доход по вкладам с одной ставкой может отличаться",caption:"Причина — разница в количестве дней вклада",icon:(0,l.jsx)($.IconFdsInfoCircleO,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-profit-notification",onCloseClick:u})]}):null}let ek=(t,e)=>(!!t.isNotAmount||!!t.isTermEmpty||!!t.computeData)&&(!e||!t.promo);var eL=i(72955),eA=i(41506),eI=i(26573),eE=i(70104),eS=i(82180),eP=i.n(eS),eM=i(13889),eR=i.n(eM);let eO=t=>{let{deposit:e,bank:i}=t,{amount:n,rate:o,bankName:a,bonusRate:s}=e,r=[{label:"Сумма",value:"".concat((0,N.Y4)(n,2)," ₽"),id:1},{label:"Ставка",value:"".concat((0,N.Y4)(o,2)).concat(s?" + "+(0,N.Y4)(s,2):"","%"),id:2}];return(0,l.jsxs)("div",{className:eR().cardItem,children:[(0,l.jsxs)("div",{className:eR().cardHeader,children:[(0,l.jsx)("div",{className:eR().logo,children:(null==i?void 0:i.logo_mob)&&(0,l.jsx)(ev.default,{width:17,height:17,alt:a,src:null==i?void 0:i.logo_mob})}),(0,l.jsx)("div",{className:eR().title,children:a})]}),(0,l.jsx)("div",{className:eR().cardContentWrapper,children:r.map(t=>(0,l.jsxs)("div",{className:eR().cardContent,children:[(0,l.jsx)("div",{className:eR().label,children:t.label}),(0,l.jsx)("div",{className:eR().value,children:t.value})]},t.id))})]})},ez=t=>{let{pageUrl:e,banks:i,comboDeposits:n,amount:o,term:a,isTermInDays:s}=t,{totalProfit:d,averageRate:u,deposits:c}=n,v=(0,r.useRef)(null),p="deposits_".concat(e),m=n.deposits.map(t=>{let{id:e,amount:i,rate:n}=t;return"".concat(e,"_").concat(i,"_").concat(n)}).join("_");(0,Q.Z)({itemRef:v,eventCategory:p,eventLabel:m,eventAction:"view_card_combo"});let _=[{label:"Средняя ставка",value:"".concat((0,eE.Y4)(u,2),"%"),id:1},{label:"Общий доход",value:"".concat((0,eE.Y4)(d,2)," ₽"),id:2}],h=(0,r.useCallback)(t=>{var e;return null!==(e=i.find(e=>e.bic===(0,eI.g)(t.bic)))&&void 0!==e?e:null},[i]),f=(0,r.useMemo)(()=>(0,j.jb)("/".concat(e,"/combo"),{amount:o,[s?"d_period":"term"]:a}),[o,s,e,a]);return(0,l.jsxs)(T.default,{ref:v,className:eP().card,href:f,children:[(0,l.jsx)("span",{className:eP().tip,children:"Комбо"}),(0,l.jsxs)("div",{className:eP().infoWrapper,children:[(0,l.jsx)("div",{className:eP().title,children:"Два вклада выгоднее"}),(0,l.jsx)("div",{className:eP().infoContent,children:_.map(t=>(0,l.jsxs)("div",{className:eP().info,children:[(0,l.jsx)("div",{className:eP().label,children:t.label}),(0,l.jsx)("div",{className:eP().value,children:t.value})]},t.id))})]}),(0,l.jsx)("div",{className:eP().comboCardWrapper,children:c.map((t,e)=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eO,{bank:h(t),deposit:t},t.id),!e&&(0,l.jsx)("span",{className:eP().plus})]}))}),(0,l.jsx)(N.zx,{className:eP().button,size:"xs",stretch:!0,onClick:()=>{(0,G.lQ)({eventLabel:m,eventCategory:"deposits_".concat(e),eventAction:"click_card_combo"})},children:"Подробнее"})]})};var eU=i(25765),eB=i(59829),eF=i(91304),eW=i.n(eF);let eY=(0,eL.c)(4,eW().skeleton),eZ=t=>{var e;let{banks:i,anotherDeposits:n,platformDeposits:d,filter:u,isOldUser:c,depositLists:v,className:p,bannerUrl:m,isHiddenPromo:_,existTag:h,isPlusFiveBonus:f,extraInfo:g,questions:b,pageUrl:x,comboDeposits:y,isSavingAccounts:w,showDepositGuide:T,adFoxConfig:C,showAdFoxBanner:D,isPlatformLoading:j,isNonPlatformLoading:k,showPlatformDeposits:L,newPlatformDeposits:A,disableNotifications:I,displayNonPlatform:E=!0,isTermInDays:S}=t,R=(0,a.s4)(),O=(0,a._m)("l"),{amountData:z,term:U,handleToggleModal:B}=u,[F,W]=(0,r.useState)(10),[Y,Z]=(0,r.useState)(10),{depositData:$,openModal:Q,handleOpen:q,handleClose:H}=(0,eA.j)({banks:i,anotherDeposits:n,platformDeposits:d,newPlatformDeposits:A});(0,r.useEffect)(()=>{window.postMessage({key:"depositListLoaded",value:!0},M.m.BASE_URL)},[]);let V=(0,ee.Z)(),X=(0,r.useCallback)(()=>{(0,N.ld)(P.Mb,{offset:V-48,position:"top"})},[V]);(0,r.useEffect)(()=>{j&&W(10),k&&Z(10)},[k,j]);let[K,J]=(0,r.useState)(v.platform.filter(t=>ek(t,_)));(0,r.useEffect)(()=>{J(v.platform.filter(t=>ek(t,_)))},[v,_]);let tt="deposits_details_".concat(x,"_popup"),te=y&&y.deposits.length>1,ti=L?v.currentLength>0:v.another.length>0,tn=v.another.length>0,tl=v.platform.length>0,to=h?L&&(tl||j):L,ta=h?!!E&&(tn||k):!!E,ts=!h&&(!tl&&!j||!L),tr=!h&&!tn&&!k,td=v.platform.length>F&&!j,tu=v.another.length>Y&&!k,tv=!!u.amountData.value&&!!u.term.value,tp=(0,tQ.ur)(R,!O,M.m.FEATURE_TOGGLE_DEPOSIT_FILTER_NEW_DESIGN_ENABLED),tm=(0,r.useMemo)(()=>(0,l.jsx)(er.t,{children:(0,l.jsx)(eB.Z,{id:P.uz,qrBannerUrl:m,existTag:h,pageUrl:x,newMobileAd:!0})}),[m,h,x]),t_=(0,r.useCallback)(()=>w?null:T?(0,l.jsx)(eb.Z,{pageUrl:x}):tm,[tm,w,x,T]),th=(0,r.useCallback)(()=>c&&!w?null:tm,[tm,c,w]),tf=(0,r.useCallback)(()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ed.p,{onChangeParams:B,dataQa:"not-found"}),D&&ti&&(0,l.jsx)(es.Z,{className:eW().adFox,params:tc.e$,config:C})]}),[C,B,ti,D]),tg=(0,r.useCallback)(()=>(0,l.jsxs)(o.W2,{children:[(0,l.jsx)(ed.p,{onChangeParams:B,dataQa:"not-found"}),t_(),th()]}),[B,th,t_]);return(0,l.jsxs)("section",{id:P.TM,className:(0,s.Z)(eW().container,p),children:[(0,l.jsxs)(eu.X,{switchWhen:ts&&tr,switchTo:tg,transitionTime:200,children:[to&&(0,l.jsxs)(o.W2,{children:[(0,l.jsx)(o.xv,{as:"h2",className:eW().title,children:w?"Накопительные счета онлайн на Финуслугах":"Вклады онлайн от Финуслуг"}),(0,l.jsxs)(eu.X,{switchWhen:ts,switchTo:tf,transitionTime:200,children:[tp?(0,l.jsx)(eg,{isSavingAccount:w,isOldUser:c}):(0,l.jsx)(ej,{disableProfitNotification:w,disableNotifications:I}),(0,l.jsxs)(eu.X,{switchWhen:j,switchTo:eY,transitionTime:200,children:[te&&(0,l.jsx)(ez,{pageUrl:x,banks:i,comboDeposits:y,amount:+z.value,term:+U.value,isTermInDays:S}),K.slice(0,F).map((t,e)=>(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("div",{"data-qa":"platform",children:M.m.FEATURE_TOGGLE_DEPOSIT_CARD_NEW_DESIGN_ENABLED?(0,l.jsx)(eU.B,{isPlatform:!0,onOpenDetailModal:q,className:(0,s.Z)(eW().listItem,t.promo&&"click_kartochka_promo_neavtorizovannaya_zona"||"click_kartochka_obychnaya_neavtorizovannaya_zona"),data:t,isTermInDays:!0,baseUrl:"/".concat(x),isFullFilter:tv},t.url+t.id):(0,l.jsx)(ec.B,{isPlatform:!0,onOpenDetailModal:q,className:(0,s.Z)(eW().listItem,t.promo&&"click_kartochka_promo_neavtorizovannaya_zona"||"click_kartochka_obychnaya_neavtorizovannaya_zona"),isOldUser:c,data:t,wide:!0,isTermInDays:!0,baseUrl:"/".concat(x)},t.url+t.id)}),D&&e+1===Math.min(3,K.length)&&(0,l.jsx)(es.Z,{className:eW().adFox,params:tc.QA,config:C})]},t.url)),(0,l.jsxs)(o.X2,{className:(0,s.Z)(eW().buttonsRow,eW().spaced),children:[td&&(0,l.jsx)(a.zx,{size:"s",onClick:()=>{(0,G.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__offers"}),W(t=>t+10)},className:eW().button,variant:"secondary",dataQa:"show-more-platform-button",children:"Еще предложения от Финуслуг"}),tn&&(0,l.jsx)(a.zx,{size:"s",variant:"white",onClick:X,dataQa:"show-nonplatform-deposits-button",children:"Предложения от банков"})]})]})]})]}),t_(),ta&&(0,l.jsxs)(o.W2,{className:eW().anotherList,children:[(0,l.jsx)(o.xv,{as:"h2",id:P.Mb,className:eW().title,children:"Предложения от банков"}),(0,l.jsx)(eu.X,{switchWhen:tr,switchTo:tf,children:(0,l.jsxs)(eu.X,{transitionTime:200,switchWhen:k,switchTo:eY,children:[v.another.slice(0,Y).map((t,e)=>(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("div",{"data-qa":"nonplatform",children:M.m.FEATURE_TOGGLE_DEPOSIT_CARD_NEW_DESIGN_ENABLED?(0,l.jsx)(eU.B,{onOpenDetailModal:q,className:eW().listItem,data:t,isPlatform:!1,isTermInDays:S,baseUrl:"/".concat(x),isFullFilter:tv}):(0,l.jsx)(ec.B,{onOpenDetailModal:q,className:eW().listItem,data:t,wide:!0,isPlatform:!1,isTermInDays:S,baseUrl:"/".concat(x)})}),D&&e+1===Math.min(3,v.another.length)&&(0,l.jsx)(es.Z,{className:eW().adFox,params:tc.Eu,config:C})]},t.url)),tu&&(0,l.jsx)(a.zx,{size:"s",onClick:()=>{(0,G.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__lidgen"}),Z(t=>t+10)},className:(0,s.Z)(eW().button,eW().spaced),variant:"secondary",dataQa:"show-more-nonplatform-button",children:"Еще предложения"})]})})]}),th()]}),$&&(0,l.jsx)(ea.Z,{data:$,isOldUser:c,isOpen:Q,onClose:H,extraInfo:g,isPlusFiveBonus:f,questions:b,depositSumm:z.value,showcaseBaseUrl:x,depositTerm:null!==(e=null==U?void 0:U.label)&&void 0!==e?e:"Любой",initialAmount:Number(z.value),initialTermInMonths:Number(U.value),eventCategory:tt})]})};var e$=i(25813),eG=i.n(e$),eQ=i(18674);let eq=t=>{let{mounted:e,isSavingAccounts:i,isOldSavingAccountsLoading:n,isCustomerLoading:l,isTermsLoading:o,isPlatformDepositsLoading:a,hasFilters:s,isNonPlatformEnabled:r,isNonPlatformDepositsLoading:d}=t;return!e||(i?!n&&!l:!(o||l||a||!s)&&!(r&&d))};var eH=i(70087);let eV=null!==(n=(0,D.env)("NEXT_PUBLIC_BASE_URL"))&&void 0!==n?n:"*",eX=t=>(0,l.jsx)(T.default,{...t}),eK=t=>{var e,i,n,s,d,u,c;let{stores:v,depositTags:p,depositTag:m,currencies:h,discounts:f,bounds:x,bankTowns:y,depositRegion:T,depositRegionLinks:D,defaultRegion:k,defaultTown:R,depositsTitle:O,depositsDescription:z,depositsSubtitle:U,initialAnotherDeposits:B,initialPlatformDeposits:F,allExtraInfo:W,banks:Z,banksCount:$,initialTopBanks:Q,questions:q,supportData:H,journalData:X,isPlatformShowcase:K,initialCurrentDepositsLength:J,initialAllDepositsLength:tt,initialComboDeposits:te,initialQuote:tl,crossLinkLabels:ts,initialSeoText:tr,showOnlyNonPromo:tc=!1}=t,tb=(0,a.s4)(),tN=(0,N._m)("l"),{asPath:tT,push:tC}=(0,tn.P)(),tk=(0,C.usePathname)(),tL=(0,ee.Z)(12,24),tE=(0,r.useMemo)(()=>tc?tR.a.VKLADY_OLD:tR.a.VKLADY,[tc]);(0,ei.f)({eventCategory:"deposits_".concat(tT),eventLabel:""});let{regions:tP,town_duplicates:tO}=(0,et.f)(!1,{region:k,town:R}),{isOldUser:tz,customerId:tU,isLoading:tB}=(0,tK.jt)(),tF=(0,t6.a)(S.tE),tW=(0,t2.K)({bannersTitle:[S.N9.DEPOSITS_ADVANTAGES,S.N9.VKLADY,S.N9.VKLADY_TAGS],queryParams:tF,stores:v}),[tY,t$]=(0,r.useState)(!tz),[tH,t4]=(0,r.useState)(m),[t9,t7]=(0,r.useState)(),{town:t3,region:t5,handleSetTown:ea,handleSetRegion:es}=t8({pageName:tE,regions:tP,initialValues:{region:k,town:R},isRegionPageEnabled:null==tH?void 0:null===(e=tH.region_page)||void 0===e?void 0:e.is_show}),{topBanks:er}=function(t){let{tagId:e,initialTopBanks:i,...n}=null!=t?t:{},{data:l,isLoading:o}=(0,tD.d)(["topBanks",e],()=>tJ(e),{...n});return(0,r.useMemo)(()=>{var t,e;return{isLoading:o,topBanks:l?null!==(e=null===(t=l.data)||void 0===t?void 0:t.banks)&&void 0!==e?e:[]:i}},[o,l,i])}({tagId:null!==(d=null==tH?void 0:tH.id)&&void 0!==d?d:"",initialTopBanks:Q}),ed=(null==tH?void 0:tH.url)==="nakopitelnye",{terms:eu,isLoading:ec}=function(t){var e,i;let n=(0,r.useMemo)(()=>(0,tS.$1)(),[]),l=null!==(i=null==n?void 0:n["auth.gtm_customer_id"])&&void 0!==i?i:void 0,{data:o,isLoading:a}=(0,tD.d)(["deposit-terms",l],()=>(0,tI.rl)(l),t);return(0,r.useMemo)(()=>{var t,e,i;return{isLoading:a,terms:null!==(i=null==o?void 0:null===(e=o.data)||void 0===e?void 0:null===(t=e.terms)||void 0===t?void 0:t.map(tM))&&void 0!==i?i:[]}},[null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.terms,a])}({disabled:!M.m.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED||ed,ssrLoader:!0}),ev=(0,r.useMemo)(()=>tv(eu),[eu]),{isLoading:ep,products:em,productsWithIncreasedAmount:e_,productHint:eh}=function(t){var e,i,n;let l=M.m.FEATURE_TOGGLE_NEW_BONUS_API_ENABLED,{filters:o,showOnlyNonPromo:a=!1,disabled:s}=t,{isOldUser:d,isLoading:u}=(0,tK.jt)(),{data:c,isLoading:v}=(0,tD.d)(["deposits",o],()=>(0,tI.qB)({...o,isNewCustomer:!d},l),{disabled:s||u||(0,tQ.mA)(o)});return(0,r.useMemo)(()=>{var t,e,i,n,l,o,s,r,d;let p=null!==(n=null==c?void 0:null===(t=c.data)||void 0===t?void 0:t.products)&&void 0!==n?n:[],m=null!==(l=null==c?void 0:null===(e=c.data)||void 0===e?void 0:e.productsWithIncreasedAmount)&&void 0!==l?l:[];return a&&(p=(null!==(r=null==c?void 0:null===(o=c.data)||void 0===o?void 0:o.products)&&void 0!==r?r:[]).filter(t=>!t.promo),m=(null!==(d=null==c?void 0:null===(s=c.data)||void 0===s?void 0:s.productsWithIncreasedAmount)&&void 0!==d?d:[]).filter(t=>!t.promo)),{products:p,productsWithIncreasedAmount:m,productHint:null==c?void 0:null===(i=c.data)||void 0===i?void 0:i.productHint,isLoading:v||u}},[u,v,null==c?void 0:null===(e=c.data)||void 0===e?void 0:e.productHint,null==c?void 0:null===(i=c.data)||void 0===i?void 0:i.products,null==c?void 0:null===(n=c.data)||void 0===n?void 0:n.productsWithIncreasedAmount,a])}({filters:t9,showOnlyNonPromo:tc,disabled:ed||ec}),[ef,eg]=(0,r.useState)(!1),eb=ef?e_:em,ex=(0,r.useMemo)(()=>Z.reduce((t,e)=>({...t,[Number(e.bic)]:e}),{}),[Z]),{nonPlatformDeposits:ey,isLoading:ew}=tV({tagId:String(null!==(u=null==tH?void 0:tH.id)&&void 0!==u?u:""),banksByBic:ex,disabled:!(null==tH?void 0:tH.id)||!(null===(i=tH.filter)||void 0===i?void 0:i.displayNonPlatform)||K}),eN=(0,r.useMemo)(()=>{var t;return null===(t=p.find(t=>"all_offers"===t.url))||void 0===t?void 0:t.id},[p]),{nonPlatformDeposits:eT}=tV({tagId:String(null!=eN?eN:""),banksByBic:ex,disabled:!eN}),{oldSavingAccounts:eC,isLoading:eD}=function(t){let{data:e,isLoading:i}=(0,tD.d)("old-saving-accounts",()=>tX(),t);return(0,r.useMemo)(()=>({oldSavingAccounts:null!=e?e:[],isLoading:i}),[e,i])}({disabled:!ed}),ej=(0,r.useMemo)(()=>(0,eQ.j)({path:tT,tag:tH}),[tT,tH]),ek=(0,r.useCallback)(async t=>{await tZ({tagUrl:t,depositTags:p,setTag:t4,regionId:null==t5?void 0:t5.region_id,townId:null==t3?void 0:t3.id}),tC((0,tq.C)("deposits",{id:"",name:"",url:t},t5,t3,void 0,tE)||"/vklady")},[tC,t5,t3,tE,p]),eL=function(t){let{banks:e,isNewCustomer:i,setFilters:n}=t,l=(0,r.useMemo)(()=>e.reduce((t,e)=>({...t,[String(e.id)]:e.bic}),{}),[e]);return(0,tg.y1)(t=>{let{amount:e,term:o,sortType:a,withCapitalization:s,withMonthlyPercent:r,withPreferentialTermination:d,withRefill:u,activeBanks:c,withPartialWithdrawal:v}=t;n({amount:e>0?e:void 0,sort:tx[a],term:ty(o),withCapitalization:s||void 0,withMonthlyPayments:r||void 0,withPreferentialTermination:d||void 0,withPartialWithdrawal:v||void 0,withRefill:u||void 0,isNewCustomer:i,providerBICs:null==c?void 0:c.map(t=>l[t])})},500)}({banks:Z,isNewCustomer:!tz,setFilters:t7}),eA=M.m.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED&&!ed,[eI,eE]=(0,r.useState)(!1),eS=(0,eH.L)({tag:tH,currencies:h,banks:Z,defaultValues:ej,isDiscount:tY,hasDynamicBonus:eI,sortLoading:(0,tQ.ur)(!ed,tB),termOptions:ev,isTermInDays:eA}),eP=eS.shouldFilterByAllOffers&&(null==eT?void 0:eT.length)?eT:ey,eM=(0,r.useRef)(void 0);(0,r.useEffect)(()=>{if(ed||!eS.clientSortType)return;let t=td(eS);t&&!tu(t,eM.current)&&(eM.current=t,eL(t),eg(!1))},[eS,eL,ed]);let eR=(0,r.useCallback)(t=>{if(Number(eS.amountData.value)!==t){if(eS.handleAmountChange(t),eS.amountData.handleChange(t),eM.current){let e={...eM.current,amount:t};if(eM.current=e,M.m.FEATURE_TOGGLE_DEPOSIT_FILTER_NEW_DESIGN_ENABLED){eL(e),eL.flush(),(0,N.ld)(P.TM,{offset:tL,position:"top",delay:200});return}}eg(!0)}},[eS,eL,tL]),eO=(0,t0.I)(),[ez,eU]=(0,r.useState)(T),[eB,eF]=(0,r.useState)(D);(0,r.useEffect)(()=>{L({region:t5,town:t3,tag:tH}).then(t=>{t.data&&!t.data.message&&eU(t.data)}),A({region:t5}).then(t=>{var e;(null===(e=t.data)||void 0===e?void 0:e.region_links)&&eF(t.data.region_links)}),tH&&tZ({tagUrl:null==tH?void 0:tH.url,depositTags:p,setTag:t4,regionId:null==t5?void 0:t5.region_id,townId:null==t3?void 0:t3.id})},[null==t5?void 0:t5.url,null==t5?void 0:t5.region_id,null==t3?void 0:t3.url,null==tH?void 0:tH.url]);let eW=(0,r.useCallback)((t,e)=>{N.A7.setItem("user_region",t?JSON.stringify(t):""),N.A7.setItem("user_town",e?JSON.stringify(e):""),es(t),ea(e||null)},[es,ea]),eY=function(t){var e;let{filter:i,filters:n,isDiscount:l,isTermInDays:o,withSavingAccounts:a,allOffers:s,newPlatformDeposits:d,platformDeposits:u,isPlusFiveBonus:c,isOldUser:v,anotherDeposits:p,bounds:m,banks:_,bankTowns:h,town:f,region:g,discounts:b,initialAnotherDeposits:x,initialPlatformDeposits:y,allExtraInfo:w,anotherDepositsInCount:N,getOnlyInitialData:T,specialDeposits:C,initialLeadGenDeposits:D,leadGenDeposits:j,initialAllDepositsLength:k,initialCurrentDepositsLength:L,calculateFilterAbilities:A}=t,I=th(!!a,i.amountData.value,null==n?void 0:n.amount),E=(0,r.useMemo)(()=>{var t;return{newPlatformDeposits:d,platformDeposits:u,isPlusFiveBonus:c,isOldUser:v,anotherDeposits:p,bounds:m,banks:_,bankTowns:h,town:f,region:g,discounts:b,initialAnotherDeposits:x,initialPlatformDeposits:y,allExtraInfo:w,anotherDepositsInCount:N,getOnlyInitialData:T,specialDeposits:C,initialLeadGenDeposits:D,leadGenDeposits:j,initialAllDepositsLength:k,initialCurrentDepositsLength:L,calculateFilterAbilities:A,allOffers:s,withSavingAccounts:a,shouldFilterByAllOffers:i.shouldFilterByAllOffers,filter:{amount:I,rate:i.rate,currency:String(i.currencyUnit),withRefill:i.withRefill,filterAdditionalSettings:i.filterAdditionalSettings,importantDeposits:i.importantDeposits,initialSort:i.initialSort,order:i.increaseSort?tm.mr.Desc:tm.mr.Asc,sortType:i.sortType,isDiscount:l,term:tf(!!a,o,i.term.value,null==n?void 0:null===(t=n.term)||void 0===t?void 0:t.value),termUnit:!a&&o?"DAY":"MONTH",withCapitalization:i.withCapitalization,activeBanks:i.activeBanks?i.activeBanks.map(t=>String(t.value)):void 0,withMonthlyPercent:i.withMonthlyPercent,withPreferentialTermination:i.withPreferentialTermination}}},[I,i.rate,i.currencyUnit,i.withRefill,i.filterAdditionalSettings,i.importantDeposits,i.initialSort,i.increaseSort,i.sortType,i.term.value,i.withCapitalization,i.activeBanks,i.withMonthlyPercent,i.withPreferentialTermination,i.shouldFilterByAllOffers,l,null==n?void 0:null===(e=n.term)||void 0===e?void 0:e.value,o,d,u,c,v,p,m,_,h,f,g,b,x,y,w,N,T,C,D,j,k,L,A,a,s]);return(0,r.useMemo)(()=>(0,t_.O)(E),[E])}({initialAnotherDeposits:B,initialPlatformDeposits:F,platformDeposits:eC,anotherDeposits:ey,newPlatformDeposits:eb,bounds:x,isPlusFiveBonus:!tz,isOldUser:tz,filter:eS,isTermInDays:eA,filters:t9,banks:Z,discounts:f,bankTowns:y,town:t3,region:t5,allExtraInfo:W,getOnlyInitialData:!tb,initialAllDepositsLength:tt,initialCurrentDepositsLength:J,calculateFilterAbilities:ed,withSavingAccounts:ed,isDiscount:tY,allOffers:eT});(0,r.useEffect)(()=>{t$(ed?eY.platform.some(t=>t.hasDiscount):!tz),eE(!!eY.platform.find(t=>t.computeData&&t.computeData.bonusRate>0))},[eY,ed,tz]);let{quote:e$}=tj({tagUrl:null==tH?void 0:tH.url,regionUrl:null==t5?void 0:t5.url,townUrl:null==t3?void 0:t3.url,initialQuote:tl}),{seoText:eK}=tA({url:null!=tk?tk:"",initialSeoText:tr}),eJ=1===eS.currency.id||ed,e0=eJ?eY.currentLength:eY.another.length,e1=(0,r.useMemo)(()=>ez?(0,en.Y)({data:eY.another,platformDepositLists:eY.platform,tags:p,regionLinks:eB,dataRegion:ez,regions:tP,banks:Z,topBanks:er,tag:tH,region:t5,town:t3,townDuplicates:tO,setTag:ek,setRegion:eW,currencies:h,showOnlyNonPromo:tc,basePath:tE}):[],[ez,eY.another,eY.platform,p,eB,tP,Z,er,tH,t5,t3,tO,ek,eW,h,tc,tE]),e2=(0,r.useMemo)(()=>(0,ti.L)(tH),[tH]),e6=(0,r.useMemo)(()=>{if(!(null==t5?void 0:t5.url))return"";let t=76!==t5.id&&77!==t5.id&&(null==t3?void 0:t3.url)?null==t3?void 0:t3.url:"";return(0,j.xn)("/reg_".concat(t5.url),t)},[null==t5?void 0:t5.url,null==t5?void 0:t5.id,null==t3?void 0:t3.url]),e4=(0,r.useMemo)(()=>(null==ts?void 0:ts.content)?{content:null==ts?void 0:ts.content.map(t=>({...t,tags:t.tags.map(t=>({...t,url:"".concat(t.url).concat(e6)}))}))}:{content:[]},[ts,e6]),{fitsForMonthlyPercentFilter:e9,fitsForPreferentialTerminationFilter:e7,fitsForCapitalization:e3,fitsForRefill:e5}=eY;(0,t1.z)({disabled:!0,showMonthlyPercent:e9,showPreferentialTermination:e7,showCapitalization:e3,showRefill:e5,filter:eS});let{comboDeposits:e8}=Y({amount:+eS.amountData.value,term:+eS.term.value,initialComboDeposits:te,tag:tH,customerId:tU,isTermInDays:eA}),it=(0,tQ.ur)(!tz,!ed),ie=!!eO,ii=tp({isDepositsLoading:eD,isCustomerLoading:tB,isPlatformDepositsLoading:ep,hasFilters:!!t9,isClient:tb,platformLoadingDisabled:!ed}),il=function(t){let{isMetaReady:e,banksCount:i,tag:n,region:l,town:o,depositLists:a,visibleCurrentLength:s}=t,d=(0,r.useMemo)(()=>{var t,e,l,o,a,s,r,d,u,c,v,p,m;return(null==n?void 0:n.stats)?({banksCount:new Set([...null!==(d=null==(t=n.stats)?void 0:null===(e=t.platform)||void 0===e?void 0:e.banksIds)&&void 0!==d?d:[],...null!==(u=null==t?void 0:null===(l=t.nonPlatform)||void 0===l?void 0:l.banksIds)&&void 0!==u?u:[]]).size,bet:Math.max(null!==(c=null==t?void 0:null===(o=t.platform)||void 0===o?void 0:o.bet)&&void 0!==c?c:0,null!==(v=null==t?void 0:null===(a=t.nonPlatform)||void 0===a?void 0:a.bet)&&void 0!==v?v:0),depositsCount:(null!==(p=null==t?void 0:null===(s=t.platform)||void 0===s?void 0:s.prop)&&void 0!==p?p:0)+(null!==(m=null==t?void 0:null===(r=t.nonPlatform)||void 0===r?void 0:r.prop)&&void 0!==m?m:0)}).banksCount:i},[null==n?void 0:n.stats,i]),u=(0,r.useMemo)(()=>(0,tw.x)({tag:n,region:l,town:o,depositLists:a,banksCount:d,depositsCount:s}),[d,a,l,n,o,s]),[c,v]=(0,r.useState)(u);return(0,r.useEffect)(()=>{e&&v(u)},[e,u]),c}({isMetaReady:eq({mounted:tb,isSavingAccounts:ed,isTermsLoading:ec,isCustomerLoading:tB,isPlatformDepositsLoading:ep,hasFilters:!!t9,isNonPlatformEnabled:!!(null==tH?void 0:tH.id)&&!!(null===(n=tH.filter)||void 0===n?void 0:n.displayNonPlatform)&&!K,isNonPlatformDepositsLoading:ew,isOldSavingAccountsLoading:eD}),banksCount:$,tag:tH,region:t5,town:t3,depositLists:eY,visibleCurrentLength:e0}),{subtitle:io,h1:ia,inRegion:is}=il,ir=(0,r.useMemo)(()=>ta({isDefault:e2,tag:tH,h1:ia,inRegion:is,basePath:"/".concat(tE)}),[is,e2,tH,ia,tE]),id=(0,tG.W)({tagName:null==tH?void 0:tH.faq_title,inRegion:is}),iu=(null==eY?void 0:eY.notInitialDeposits)?io:U;return(0,l.jsxs)("main",{className:eG().page,children:[(0,l.jsx)(to,{region:t5,town:t3,tag:tH,meta:il,depositLists:eY,regionUrl:e6,currency:eS.currency.value,isOldUser:tz,initialDescription:z,initialTitle:O,quote:e$}),(0,l.jsx)(o.W2,{className:eG().mainContainer,fluid:!0,children:(0,l.jsx)(o.W2,{children:(0,l.jsx)(eo.v,{tag:tH,setTag:ek,h1:ia,region:t5,town:t3,subtitle:null!=iu?iu:"",length:tb?e0:J,data:eS,terms:ev,isTermsLoading:ec,withAdditional:!eY.boundsIsEmpty,isMobile:!tN,partnerId:null,isDiscount:tY,breadcrumbsPath:ir,showDepositGuide:it,isSavingAccounts:ed,showAdFoxBanner:ie,isTermInDays:eA,productHint:eh,isLoading:ep,hasDynamicBonus:eI,onTipsApply:eR,disableLastHref:e2&&!is})})}),!M.m.FEATURE_TOGGLE_DEPOSIT_FILTER_NEW_DESIGN_ENABLED&&(0,l.jsx)(V,{visible:(0,tQ.ur)(eh,!ep),amount:null==eh?void 0:eh.minimumAmount,rate:null==eh?void 0:eh.fullRate,bankName:null==eh?void 0:eh.bankDisplayName,eventCategory:"deposits_".concat(tT),onTipsApply:eR}),(0,l.jsx)(eZ,{filter:eS,isDiscount:tY,isOldUser:tz,banks:Z,platformDeposits:eC,anotherDeposits:eP,depositLists:eY,adFoxConfig:eO,isMobile:!tN,bannerUrl:e2?tW[S.N9.VKLADY]:null!==(c=tW[S.N9.VKLADY_TAGS])&&void 0!==c?c:tW[S.N9.VKLADY],isHiddenPromo:tz,existTag:!e2,town:t3,region:t5,extraInfo:W,isPlusFiveBonus:!tz,questions:q,pageUrl:tE,currentDepositsLength:tb?eY.currentLength:J,allDepositsLength:tb?eY.allLength:tt,comboDeposits:e8,isSavingAccounts:ed,showDepositGuide:it,showAdFoxBanner:ie,isPlatformLoading:ii,isNonPlatformLoading:tb&&ew,showPlatformDeposits:eJ,newPlatformDeposits:null!=eb?eb:[],disableNotifications:(0,tQ.oA)(eh),displayNonPlatform:null==tH?void 0:null===(s=tH.filter)||void 0===s?void 0:s.displayNonPlatform,isTermInDays:eA}),e$&&!t3&&!t5&&(0,l.jsx)(g,{className:eG().quote,quote:e$}),(0,l.jsx)(I.V,{journalData:X,className:eG().grayBackground}),(0,l.jsx)(E.y,{supportData:H,className:eG().grayBackground}),eK&&(0,l.jsx)(w,{content:null==eK?void 0:eK.content,dataLayerPush:G.lQ,sectionTitle:"",blockTitle:null==eK?void 0:eK.title}),e4&&(0,l.jsx)(_,{labelsData:e4,sectionTitle:"Вклады, которые могут вас заинтересовать",href:"/".concat(tE),blockTitle:"",dataLayerPush:G.lQ}),(0,l.jsx)(b.C,{sectionTitle:id,Link:eX,dataLayerPush:G.lQ,questions:e1,eventCategory:"deposits_support_block",href:(0,j.xn)(eV,"help"),checkAllText:tN?"Читать все вопросы про вклады":"Все вопросы про вклады",tagTitle:"h3"}),(0,l.jsx)(el.s,{data:eS,isDiscount:tY,isMobile:!tN,terms:ev,depositsLength:e0,withAdditional:!eY.boundsIsEmpty,partnerId:null,showMonthlyPercent:e9,showPreferentialTermination:e7,showCapitalization:e3,showRefill:e5,hasDynamicBonus:eI,withCapitalizationTittle:"Капитализация",withRefillTitle:"Пополнение"})]})}},18674:function(t,e,i){"use strict";i.d(e,{j:function(){return a}});var n=i(76391),l=i(96742),o=i(91220);let a=t=>{var e,i,a,s;let{tag:r,path:d}=t,u=(0,o.p)(d),c=String(u.amount),v=String(u.period),p=String(u.term),m=u.currency?String(u.currency):void 0,_={term:0,amount:"0",currencyCode:"RUB",withRefill:!1,withCapitalization:!1,withMonthlyPercent:!1,withPreferentialTermination:!1,withPartialWithdrawal:!1},h=(0,n.O)(null==r?void 0:null===(e=r.filter)||void 0===e?void 0:e.currency);return(null==r?void 0:r.filter)&&(_.term=null!==(a=null===(i=r.filter.term.values)||void 0===i?void 0:i[0])&&void 0!==a?a:null===r.filter.term.from||isNaN(Number(r.filter.term.from))?_.term:Number(r.filter.term.from),_.currencyCode=(0,l.z)(h).code,_.withRefill=!!r.filter.refill,_.withCapitalization=1===r.filter.interest_capitalization,_.withMonthlyPercent=!!r.filter.interestsMonthly,_.withPreferentialTermination=!!r.filter.earlyTermination,_.amount=String(null!==(s=r.filter.amount)&&void 0!==s?s:_.amount),_.withPartialWithdrawal=!!r.filter.partial_withdrawal),c&&!isNaN(+c)&&(_.amount=c),v&&!isNaN(+v)&&(_.term=+v),p&&!isNaN(+p)&&(_.term=+p),m&&(0,l.z)(m).code&&(_.currencyCode=(0,l.z)(m).code),_}},26573:function(t,e,i){"use strict";function n(t){return t.startsWith("0")?t.replace("0",""):t}i.d(e,{g:function(){return n}})},94943:function(t,e,i){"use strict";var n,l;i.d(e,{z:function(){return l}}),(n||(n={})).HTML="html",(l||(l={})).nakop="nakopitelnye"},65621:function(t,e,i){"use strict";i.d(e,{p:function(){return c}});var n=i(94441);let l=t=>{var e,i,n,l,o,a,s,r;let d=(null===(i=t.contentAttributes)||void 0===i?void 0:null===(e=i.integration)||void 0===e?void 0:e.integrationType)==="REFERAL"||(null===(l=t.contentAttributes)||void 0===l?void 0:null===(n=l.integration)||void 0===n?void 0:n.integrationType)==="INTERNAL_REFERAL";return{type:d?1:0,url:null!==(r=null===(a=t.contentAttributes)||void 0===a?void 0:null===(o=a.integration)||void 0===o?void 0:o.url)&&void 0!==r?r:"",commercial:d?1:0,order:null===(s=t.contentAttributes)||void 0===s?void 0:s.order}},o=(t,e,i)=>{var n,l,o,a;return{...null==t?void 0:t.interest_rate,rates:e.length?e:null!==(o=null===(n=t.interest_rate)||void 0===n?void 0:n.rates)&&void 0!==o?o:[],comment:null!==(a=null===(l=i.contentAttributes)||void 0===l?void 0:l.ratesComment)&&void 0!==a?a:""}},a=(t,e)=>{var i,n,l;let o=null!==(l=null==e?void 0:null===(n=e.interestPayments)||void 0===n?void 0:null===(i=n[0])||void 0===i?void 0:i.periods)&&void 0!==l?l:[],a=o.map(t=>t.type),r=o.map(t=>s(t)).join("<br/>");return{...t.interest_payment,text:r,daily:a.includes("DAILY")?1:0,weekly:a.includes("WEEKLY")?1:0,monthly:a.includes("MONTHLY")?1:0,quarterly:a.includes("QUARTERLY")?1:0,half_year:a.includes("SEMIANNUALLY")?1:0,annually:a.includes("ANNUALLY")?1:0,end:a.includes("IN_THE_END")?1:0,specified_period_in_days:a.includes("SPECIFIED_PERIOD_IN_DAYS")?1:0}},s=t=>{var e;return"DAILY"===t.type?"Ежедневно":"WEEKLY"===t.type?"Еженедельно":"MONTHLY"===t.type?"Ежемесячно":"QUARTERLY"===t.type?"Ежеквартально":"SEMIANNUALLY"===t.type?"Каждые пол года":"ANNUALLY"===t.type?"Ежегодно":"IN_THE_END"===t.type?"В конце срока":"SPECIFIED_PERIOD_IN_DAYS"===t.type?"Каждый ".concat(null!==(e=t.value)&&void 0!==e?e:0,"-й день"):""},r=(t,e)=>{var i,n;let l=null!==(n=null===(i=t.attributes)||void 0===i?void 0:i.asSavingAccount)&&void 0!==n?n:"saving_account"===t.productType;return{charitable:"charitable"===t.productType?1:0,child:"child"===t.productType?1:0,insurance:"insurance"===t.productType?1:0,investment:"investment"===t.productType?1:0,martgage:"mortgage"===t.productType?1:0,multicurrency:(null==e?void 0:e.currencies.length)>1?1:0,pension:"pension"===t.productType?1:0,salary:"salary"===t.productType?1:0,saving_account:l?1:0,seasonal:"seasonal"===t.productType?1:0}},d=t=>t?String(t).padStart(9,"0"):"",u=t=>t,c=t=>{var e,i,s,c,v,p,m,_,h,f,g,b,x,y,w,N,T,C,D,j,k,L,A,I,E,S,P,M;let{deposit:R,bank:O,oldDeposit:z}=t,U=null!=z?z:(0,n.MP)(!!(null==R?void 0:null===(e=R.attributes)||void 0===e?void 0:e.asSavingAccount)),B=null===(s=R.attributes)||void 0===s?void 0:null===(i=s.options)||void 0===i?void 0:i[0],F=(0,n.I7)(O),{rates:W,amountFrom:Y,amountTo:Z,termFrom:$,termTo:G}=(0,n.HP)(null!==(j=null===(c=R.attributes)||void 0===c?void 0:c.options)&&void 0!==j?j:[],null==R?void 0:null===(v=R.attributes)||void 0===v?void 0:v.isLadderDeposit);return{...U,...R,id:R.id,url:null!==(k=null==R?void 0:null===(p=R.contentAttributes)||void 0===p?void 0:p.url)&&void 0!==k?k:"",title:R.name,active_to:R.visibleTo,active_from:R.visibleFrom,archive:(null===(m=R.contentAttributes)||void 0===m?void 0:m.archive)?1:0,m_updated_at:null!==(L=null===(h=R.contentAttributes)||void 0===h?void 0:null===(_=h.updatedAt)||void 0===_?void 0:_.slice(0,10))&&void 0!==L?L:"",bank_id:Number(null==O?void 0:O.id),bank_name:null!==(A=null==O?void 0:O.name)&&void 0!==A?A:"",bank_url:null!==(I=null==O?void 0:O.url)&&void 0!==I?I:"",legal_name:F,currency_id:Number(null===(x=R.attributes.options)||void 0===x?void 0:null===(b=x[0])||void 0===b?void 0:null===(g=b.currencies)||void 0===g?void 0:null===(f=g[0])||void 0===f?void 0:f.currency),online_application:l(R),interest_rate:o(U,W,R),amount:{...U.amount,from:Y,to:Z},term:{...U.term,from:$,to:G},efficientRate:R.attributes.efficientRate,partial_withdrawal:{...U.partial_withdrawal,has:(0,n.Nx)(B),text:(0,n.UD)(B)},interest_payment:a(U,B),productFeature:null===(y=R.attributes)||void 0===y?void 0:y.productFeature,refill:{comment:"",...U.refill,has:(0,n.u0)(B),text:(0,n.VV)(B)},interest_capitalization:{comment:"",...U.interest_capitalization,has:(0,n.xV)(B),text:(0,n.bh)(B)},preferential_termination:{...U.preferential_termination,has:(0,n.vf)(B),text:(0,n.f1)(B)},type:r(R,B),prolongation:{text:(null==B?void 0:B.prolongations)?"Предусмотрена":"Не предусмотрена"},all_russia:(null===(w=R.contentAttributes)||void 0===w?void 0:w.availableAllRussia)?1:0,custom_regions:null!==(E=null===(N=R.attributes)||void 0===N?void 0:N.regionsData)&&void 0!==E?E:[],multicurrency:(null==B?void 0:B.currencies.length)>1?1:0,finuslugiBonusPromotion:{},fin_exclusive:R.attributes.exclusive?1:0,asSavingAccount:null!==(S=R.attributes.asSavingAccount)&&void 0!==S&&S,promo:!1,floatingRateInformations:R.floatingRateInformations,external:{integrationType:null===(C=R.contentAttributes)||void 0===C?void 0:null===(T=C.integration)||void 0===T?void 0:T.integrationType},options:u(R.attributes.options),attributesComments:null!==(P=null==B?void 0:B.attributesComments)&&void 0!==P?P:[],prolonging:null!==(M=R.attributes.prolonging)&&void 0!==M&&M,bic:d(null===(D=R.contentAttributes)||void 0===D?void 0:D.bic),isLadderDeposit:R.attributes.isLadderDeposit}}},81237:function(t,e,i){"use strict";i.d(e,{I:function(){return l}});var n=i(2265);let l=()=>{let[t,e]=(0,n.useState)();return(0,n.useEffect)(()=>{window&&window.Ya&&window.yaContextCb&&e({ownerId:406293,Ya:window.Ya,yaContextCb:window.yaContextCb})},[]),t}},92317:function(t,e,i){"use strict";i.d(e,{z:function(){return a}});var n=i(21652),l=i.n(n),o=i(2265);function a(t){let{filter:e,showCapitalization:i,showMonthlyPercent:n,showPreferentialTermination:a,showRefill:s,disabled:r=!1}=t,{withCapitalization:d,withMonthlyPercent:u,withPreferentialTermination:c,withRefill:v,handleWithCapitalizationChange:p,handleWithMonthlyPercentChange:m,handleWithPreferentialTerminationChange:_,handleWithRefillChange:h}=e,f=(0,o.useMemo)(()=>({withCapitalization:d,withMonthlyPercent:u,withPreferentialTermination:c,withRefill:v}),[d,u,c,v]),g=(0,o.useRef)(f);(0,o.useEffect)(()=>{if(!r){if(!l()(g.current,f)){g.current=f;return}c&&!a&&_(!1),u&&!n&&m(!1),d&&!i&&p(!1),v&&!s&&h(!1)}},[r,f,p,m,_,h,i,n,a,s,d,u,c,v])}},10102:function(t,e,i){"use strict";i.d(e,{f:function(){return a}});var n=i(2265),l=i(90716);let o=t=>{let{isShort:e}=t;return(0,l.t9)("/money_data/Root.json".concat(e?"?short=1":""))},a=(t,e)=>{let[i,l]=(0,n.useState)({regions:[],town_duplicates:[],region:(null==e?void 0:e.region)||null,town:(null==e?void 0:e.town)||null});return(0,n.useEffect)(()=>{t||(async()=>{let t=await o({isShort:!0});t.data&&l(t.data)})()},[t]),i}},76002:function(t,e,i){"use strict";i.d(e,{f:function(){return o}});var n=i(2265),l=i(72151);function o(t){let{eventCategory:e,eventLabel:i}=t;(0,n.useEffect)(()=>{(0,l.lQ)({event:"data-event",eventAction:"view",eventCategory:e,eventLabel:i})},[])}},25813:function(t){t.exports={filterContainer:"Deposits_filterContainer__UXpE1",sectionWrapper:"Deposits_sectionWrapper__TsXhU",advantages:"Deposits_advantages__7ZAjI",whiteBackground:"Deposits_whiteBackground__k1J2j",grayBackground:"Deposits_grayBackground__8ndmz",mainContainer:"Deposits_mainContainer__ZB24g",quote:"Deposits_quote__0vrSB"}},82180:function(t){t.exports={card:"ComboDepositCard_card__aiaKf",tip:"ComboDepositCard_tip__IU9lJ",title:"ComboDepositCard_title__KLHdM",label:"ComboDepositCard_label__LrZCj",value:"ComboDepositCard_value__cjk6D",infoWrapper:"ComboDepositCard_infoWrapper__YaEeW",infoContent:"ComboDepositCard_infoContent__ZQFSD",comboCardWrapper:"ComboDepositCard_comboCardWrapper__A8Lz7",plus:"ComboDepositCard_plus__rgvBd",button:"ComboDepositCard_button__qvCEQ"}},13889:function(t){t.exports={cardItem:"ComboDepositCardItem_cardItem__WsyyC",cardHeader:"ComboDepositCardItem_cardHeader__swLc6",logo:"ComboDepositCardItem_logo__9wciA",title:"ComboDepositCardItem_title__e5liT",cardContentWrapper:"ComboDepositCardItem_cardContentWrapper__XdG_8",cardContent:"ComboDepositCardItem_cardContent__ecMz4",label:"ComboDepositCardItem_label__vTsOM",value:"ComboDepositCardItem_value__aaZ_V"}},39421:function(t){t.exports={depositTips:"DepositTips_depositTips__wEcXA",visible:"DepositTips_visible__4FTAe",tipContent:"DepositTips_tipContent__4aovv",textContent:"DepositTips_textContent__VVZ76",mobileButton:"DepositTips_mobileButton__aFLlH",desktopButton:"DepositTips_desktopButton__tCqbb",icon:"DepositTips_icon__dAhjP"}},91304:function(t){t.exports={listTitle:"DepositsList_listTitle__j8kD5",container:"DepositsList_container__JdzB6",title:"DepositsList_title__7dAwJ",disclaimer:"DepositsList_disclaimer__XpcXF",listItem:"DepositsList_listItem__z4ODF",skeleton:"DepositsList_skeleton__JEeth",spaced:"DepositsList_spaced__Qz9G8",button:"DepositsList_button__Y4Un_",buttonsRow:"DepositsList_buttonsRow__S01KD",adFox:"DepositsList_adFox__UUPeB",subTitle:"DepositsList_subTitle__oD6TQ",anotherList:"DepositsList_anotherList__xXYKd"}},40482:function(t){t.exports={additionalTips:"AdditionalTipsList_additionalTips__z_e1N",tag:"AdditionalTipsList_tag__OjzTl"}},72798:function(t){t.exports={notification:"Notification_notification__9eoLP",textBlock:"Notification_textBlock__L95fL",title:"Notification_title__3pGiN",caption:"Notification_caption__vEbpd",closeIcon:"Notification_closeIcon__UTaKl"}},2470:function(t){t.exports={notifications:"Notifications_notifications__JTggi"}}},function(t){t.O(0,[1771,3219,6233,779,1488,1142,1302,1201,5256,1160,7389,6746,2273,8138,393,6697,1448,5055,4766,1573,7024,3558,2106,4223,1082,1750,680,2987,5893,2731,4536,3477,4336,440,1273,2925,6281,5501,207,5458,3544,3646,6670,5346,6293,666,4900,3145,2188,2938,8665,2541,3963,8914,4923,9442,1196,1281,885,7023,3952,9407,6639,5406,8565,7206,9387,2971,2117,1744],function(){return t(t.s=82491)}),_N_E=t.O()}]);