(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7017],{82491:function(e,t,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,49612))},49612:function(e,t,i){"use strict";i.r(t),i.d(t,{Deposits:function(){return tH}});var n,l=i(57437),a=i(35563),o=i(75461),s=i(54365),r=i(2265),d=i(52074);let c=(0,d.g)("cross-link-chips-block","sc"),u=Object.freeze({crossLinkChipsBlock:c,crossLinkSlider:`${c}__slider`,crossLinkItemList:`${c}__item-list`,crossLinkItem:`${c}__item`,hiddenCrossLinkItemLink:`${c}__item--hidden`,sliderChips:`${c}__slider-chips`,sliderChipsItem:`${c}__slider-chips-item`}),p=({labels:e,dataLayerPush:t,eventCategory:i="cross-link",...n})=>{var a;let[d,c]=(0,r.useState)(null==(a=e[0])?void 0:a.name),p=n=>{let l=e.find(e=>e.name===d);c(n),t({event:"data-event",eventCategory:i,eventAction:"click_chip_cross-link-block",eventLabel:null==l?void 0:l.name})},m=e.map(e=>({id:e.name,label:e.name})),v=(e,l)=>{t({event:"data-event",eventCategory:i,eventAction:"click_link_cross-link-block",eventLabel:e.tagName,eventValue:l,url:`${n.href}/${e.url}`})};return(0,l.jsxs)(l.Fragment,{children:[m.length>=1&&(0,l.jsx)(o.iR,{options:{slidesPerView:"auto",spaceBetween:8},className:u.crossLinkSlider,children:m.map(e=>(0,l.jsx)(o.wI,{className:u.sliderChipsItem,children:(0,l.jsx)(o.cL,{value:d,onChipClick:p,chips:[e]})},e.id))}),e.length>0&&(0,l.jsx)("ul",{className:u.crossLinkItemList,children:e.map(e=>{var t;let i=e.name!==d;return null==(t=e.tags)?void 0:t.map(t=>(0,l.jsx)("li",{className:(0,s.Z)(u.crossLinkItem,i&&u.hiddenCrossLinkItemLink),children:(0,l.jsx)(o.rU,{href:`${n.href}/${t.url}`,onClick:()=>v(t,e.name),children:t.tagName})},t.id))})})]})};p.displayName="CrossLinkChipsBlock";let m=(0,d.g)("cross-link","sc"),v=Object.freeze({crossLink:m,titleWrapper:`${m}__title-wrapper`,title:`${m}__title`,crossLinkWrapper:`${m}__wrapper`,crossLinkChipsTitle:`${m}__chips-title`}),_=({sectionTitle:e,labelsData:t=[],className:i,blockTitle:n="Виды вкладов",href:o="/vklady",dataLayerPush:r})=>(0,l.jsx)("section",{className:(0,s.Z)(v.crossLink,i),children:(0,l.jsxs)(a.W2,{children:[(0,l.jsx)("div",{className:v.titleWrapper,children:(0,l.jsx)(a.X6,{as:"h2",type:"hero",className:(0,s.Z)(v.title),children:e})}),(0,l.jsxs)("div",{className:v.crossLinkWrapper,children:[n&&(0,l.jsx)(a.X6,{as:"h3",type:"h3",className:v.crossLinkChipsTitle,children:n}),(0,l.jsx)(p,{labels:t.content,href:o,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:e,quote:t})=>(0,l.jsx)("section",{className:(0,s.Z)(f.wrapper,e),children:(0,l.jsxs)(a.W2,{children:[(0,l.jsx)(a.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:[t.expert.photo&&(0,l.jsx)("a",{href:t.expert.url,children:(0,l.jsx)("div",{className:f.img,style:{backgroundImage:`url(${t.expert.photo})`}})}),(0,l.jsxs)("div",{className:f.aboutText,children:[(0,l.jsx)("a",{href:t.expert.url,className:f.name,children:t.expert.name}),(0,l.jsx)("p",{className:f.position,dangerouslySetInnerHTML:{__html:t.expert.position}})]})]}),(0,l.jsx)("p",{className:f.text,dangerouslySetInnerHTML:{__html:t.content}})]})})]})}));g.displayName="ExpertQuote";var b=i(59226);let x=(0,d.g)("seo-text","sc"),w=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`}),y=({blockTitle:e,content:t,sectionTitle:i,className:n})=>(0,l.jsx)("section",{className:(0,s.Z)(w.seoText,n),children:(0,l.jsxs)(a.W2,{children:[(0,l.jsx)("div",{className:w.titleWrapper,children:(0,l.jsx)(a.X6,{as:"h2",type:"hero",className:(0,s.Z)(w.title),children:i})}),(0,l.jsxs)("div",{className:w.wrapper,children:[(0,l.jsx)(a.X6,{as:"h3",type:"h3",className:(0,s.Z)(w.blockTitle),children:e}),(0,l.jsx)("div",{className:w.text,dangerouslySetInnerHTML:{__html:t||""}})]})]})});y.displayName="SeoText";var N=i(5426),j=i(27648),C=i(99376),T=i(50666),k=i(77337),D=i(90716);let L=e=>{let{region:t,town:i,tag:n}=e;return(0,D.t9)("/money_data/DepositRegion.json".concat(t?"?region="+t.url:"").concat(i?"&town="+i.url:"").concat(n?(t?"&":"?")+"tag_url="+n.url:""))},I=e=>{let{region:t}=e;return(0,D.t9)("/money_data/DepositRegion.json?region_links=1".concat(t?"&region="+t.url:""))};var E=i(72616),A=i(19312),S=i(65716),P=i(37162),M=i(14862);let R=e=>(0,D.t9)("/api/v1/deposits/combo",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0});var z=i(94943),O=i(64671),B=i(6164),U=e=>{var t;let{amount:i,customerId:n,termInDays:l,termInMonths:a}=e;return{amount:i,term:{value:null!==(t=null!=l?l:a)&&void 0!==t?t:0,type:l?B.e.DAY:B.e.MONTH},...n&&{customerId:n}}};let F=(0,O.b)(),W=(e,t)=>e?{...e,totalProfit:e.totalProfit-t}:null,Z=e=>{let{amount:t,term:i,initialComboDeposits:n,customerId:l,tag:a,isTermInDays:o}=e,s=t&&i&&(null==a?void 0:a.url)!==z.z.nakop,[d,c]=(0,r.useState)(W(s?n:null,t));return(0,r.useEffect)(()=>{if(!s){c(null);return}F(async()=>{var e;c(W(null!==(e=(await R(U({amount:t,customerId:l,[o?"termInDays":"termInMonths"]:i}))).data)&&void 0!==e?e:null,t))})},[l,t,i,s,o]),{comboDeposits:d}};var $=i(49090),G=i(80684),Q=i(72151),q=i(99193),Y=i(39421),V=i.n(Y),X=(0,r.memo)(function(e){let{visible:t,eventCategory:i,amount:n=0,bankName:d="",rate:c=0,onTipsApply:u}=e,[p,m]=(0,r.useState)({amount:n,bankName:d,rate:c});(0,r.useEffect)(()=>{t&&m({amount:n,bankName:d,rate:c})},[n,d,c,t]);let v=(0,r.useRef)(null);(0,q.Z)({itemRef:v,eventCategory:i,eventAction:"view_hint",eventLabel:""});let _=(0,r.useCallback)(()=>{(0,Q.lQ)({eventCategory:i,eventAction:"click_hint_button"}),u(n)},[n,i,u]);return(0,l.jsx)(a.W2,{className:(0,s.Z)(V().depositTips,t&&V().visible),"data-qa":"deposit-tips",children:(0,l.jsxs)("div",{className:V().tipContent,ref:v,children:[(0,l.jsx)(G.IconFdsFlashO,{size:24,className:V().icon}),(0,l.jsxs)("div",{className:V().textContent,children:[(0,l.jsx)(a.xv,{as:"p",size:"18",weight:"medium",style:{color:"var(--color-black-500)"},dataQa:"deposit-tips-title",children:"Вы можете увеличить сумму вклада и вложить деньги более выгодно"}),(0,l.jsx)(a.xv,{as:"p",size:"14",dataQa:"deposit-tips-caption",style:{color:"var(--color-gray-800)"},children:"Нашли более выгодный вклад от банка \xab".concat(p.bankName,"\xbb под ").concat((0,$.og)(p.rate)," с минимальной суммой от ").concat((0,$.lb)(p.amount))})]}),(0,l.jsx)(o.zx,{className:V().mobileButton,size:"xs",variant:"secondary",appearance:"fill",iconRight:(0,l.jsx)(G.IconFdsChevronRightO,{}),dataQa:"deposit-tips-show-button-mobile",onClick:_,children:"Посмотреть"}),(0,l.jsx)(o.zx,{className:V().desktopButton,size:"xs",variant:"primary",appearance:"ghost",iconRight:(0,l.jsx)(G.IconFdsChevronRightO,{}),dataQa:"deposit-tips-show-button-desktop",onClick:_,children:"Посмотреть"})]})})},(e,t)=>e.visible===t.visible),H=i(80691),K=i(57044),J=i(66726),ee=i(79588),et=i(47935),ei=i(32046),en=i(14441);let el=Object.freeze(["moskva","sankt-peterburg"]);var ea=(0,r.memo)(function(e){let{region:t,tag:i,meta:n,depositLists:a,regionUrl:o,currency:s,isOldUser:d,town:c,initialDescription:u,initialTitle:p,quote:m}=e,{asPath:v}=(0,en.P)(),_=v.split("?")[0].split("#")[0],{minDepositAmount:h,minTermPeriod:f,highPrice:g,inRegion:b,h1:x,description:w,title:y}=n,N=(0,ei.L)(i),j=(null==a?void 0:a.notInitialDeposits)?y:p,C=(null==a?void 0:a.notInitialDeposits)?w:u;return(0,r.useEffect)(()=>{document.title=j;let e=document.querySelector("link[rel=canonical]"),t=document.querySelector('meta[name="description"]');t&&t.setAttribute("content",C),e&&(e.href="".concat(M.m.BASE_URL).concat(_))},[j,_,C]),(0,l.jsxs)(l.Fragment,{children:[N&&t&&el.includes(t.url)&&(0,l.jsx)(ee.Z,{minDepositAmount:h,minTermPeriod:f,regionName:t.name_p,maxRate:g,regionUrl:t.url}),(0,l.jsx)(H.g,{regionUrl:o,tag:i}),i&&et.E.includes(null==i?void 0:i.url)&&(0,l.jsx)(K.M,{textList:i.text,regionId:null==t?void 0:t.region_id,townId:null==c?void 0:c.id}),(0,l.jsx)(J.Q,{filterCurrency:s,currentLength:a.currentLength,isHiddenPromo:d,description:C,h1:x,inRegion:b,platform:a.platform,another:a.another,regionUrl:o,tagUrl:!N&&i?i.url:"",quote:m})]})});let eo=e=>{let{isDefault:t,tag:i,h1:n,inRegion:l,basePath:a="/vklady"}=e,o=[{label:"Вклады",href:a}];if(!t&&l){var s;o.push({label:null!==(s=null==i?void 0:i.tag_name)&&void 0!==s?s:n,href:(0,k.xn)(a,"/teg_".concat(null==i?void 0:i.url))})}return o};var es=i(21652),er=i.n(es);let ed=e=>{if(e.clientSortType)return{amount:Number(e.amountData.value),term:Number(e.term.value),activeBanks:e.activeBanksValue,sortType:e.clientSortType,withCapitalization:e.withCapitalization,withMonthlyPercent:e.withMonthlyPercent,withPreferentialTermination:e.withPreferentialTermination,withPartialWithdrawal:e.withPartialWithdrawal,withRefill:e.withRefill}},ec=(e,t)=>er()(e,t);var eu=i(98160);let ep=e=>e.length?[eu.vw[0],...e.map(e=>({value:e.durationOfDays,label:e.termLabel}))]:eu.vw,em=e=>{let{isDepositsLoading:t,isCustomerLoading:i,isPlatformDepositsLoading:n,hasFilters:l,isClient:a,platformLoadingDisabled:o}=e;return t&&a||i||o&&(n||!l&&a)};var ev=i(33600),e_=i(36639);let eh=(e,t,i)=>e?t:i?String(i):void 0,ef=(e,t,i)=>e?t?Number(t):void 0:i;var eg=i(71931),eb=i(91627);let ex=Object.freeze({[ev.ER.Profit]:"PROFIT",[ev.ER.Rate]:"RATE",[ev.ER.RatePlusBonus]:"CUMULATIVE_RATE"}),ew=e=>{if(e)return{type:"DAY",value:M.m.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED?Number(e):Math.round(Number(e)*eb.F)}},ey=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,D.t9)("/api/v1/quotes?quoteUrl=".concat(e,"&published=true"),null,{isMpScApi:!0},t)},eN=e=>{if(!Array.isArray(e)||0===e.length)return null;let t=Math.floor(Math.random()*e.length);return e[t]},ej=async e=>{var t,i;let{tag:n,region:l,town:a}=e,o=["vklady"];n&&o.push("teg_".concat(n)),l&&o.push("reg_".concat(l)),a&&o.push(a);let s=o.join("/"),r=eN(null!==(i=null===(t=(await ey(s)).data)||void 0===t?void 0:t.content)&&void 0!==i?i:[]);return r?{...r,content:r.content}:null};var eC=i(89911);let eT=e=>{var t;let{tagUrl:i,regionUrl:n,townUrl:l,initialQuote:a}=e,{data:o,isLoading:s}=(0,eC.d)(["quote",i,n,l],()=>ej({tag:i,region:n,town:l}),{fallbackData:a,revalidateOnFocus:!1});return{quote:null!==(t=null!=o?o:a)&&void 0!==t?t:null,isLoading:s}},ek=async function(e){var t;let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new URLSearchParams({url:e}).toString();return null!==(t=(await (0,D.t9)("/api/v2/seo-texts/by-url?".concat(n),null,{isMpScApi:!0},i)).data)&&void 0!==t?t:[]},eD=async e=>{var t,i;let{url:n}=e;return null!==(i=null===(t=(await ek(n)).find(e=>"SEO Текст"===e.type.name))||void 0===t?void 0:t.content[0])&&void 0!==i?i:null},eL=e=>{let{url:t,initialSeoText:i}=e,{data:n,isLoading:l}=(0,eC.d)(["seoText",t],()=>eD({url:t}),{fallbackData:i,revalidateOnFocus:!1});return{seoText:null!=n?n:null,isLoading:l}};var eI=i(97793),eE=i(69393),eA=i(53931),eS=i(36578);let eP=e=>{let{displayDuration:{years:t,months:i,days:n}}=e,l=[];return t&&l.push((0,eS.PY)(t,eE.Nu.YEAR)),i&&l.push((0,eS.PY)(i,eE.Nu.MONTH)),n&&l.push((0,eS.PY)(n,eE.Nu.DAY)),{...e,termLabel:l.join(" ")}};var eM=i(58580);let eR=(e,t)=>e?(0,D.t9)((0,k.jb)("/api/v3/product-tags/".concat(e),{limit:t}),null,{isMpScApi:!0}):{data:null,error:null},ez=(e,t,i)=>{if(!e)return{data:null,error:null};let n=(()=>{let n="/api/v1/deposit-tags/".concat(e,"/texts"),l=[];return t&&l.push("region=".concat(t)),i&&l.push("town=".concat(i)),l.length>0&&(n+="?".concat(l.join("&"))),n})();return(0,D.t9)(n,null,{isMpScApi:!0})},eO=e=>null!=e?e:null,eB=e=>null!=e?e:"",eU=e=>null==e?void 0:e.map(e=>({title:e.title||"",content:[{type:"html",data:{html:e.content}}],regions:e.regions,...e.displayInMicrodata&&{displayInMicrodata:e.displayInMicrodata}})),eF=e=>{var t,i,n,l,a,o,s;return(null===(t=e.facet)||void 0===t?void 0:t.filterUsage)?[]:[...null!==(a=null===(i=e.facet)||void 0===i?void 0:i.productsIds)&&void 0!==a?a:[],...null!==(o=null===(n=e.facet)||void 0===n?void 0:n.depositsIds)&&void 0!==o?o:[],...null!==(s=null===(l=e.facet)||void 0===l?void 0:l.legacyProductsIds)&&void 0!==s?s:[]]},eW=e=>{var t,i,n,l,a,o,s,r,d,c,u,p,m,v,_,h,f,g,b,x;return e?{id:eB(e.id),url:eB(e.url),title:eB(e.individualTitle),subtitle:eB(e.individualSubtitle),description:eB(e.individualDescription),individualDescription:eB(e.individualDescription),name:eB(e.internalName),tag_name:eB(e.tagName),text:eU(null!==(f=e.textList)&&void 0!==f?f:[]),calc_amount:eO(null===(t=e.facet)||void 0===t?void 0:t.depositAmount),calc_term:eO(null===(i=e.facet)||void 0===i?void 0:i.depositTerm),calc_currency_id:eO(null===(n=e.facet)||void 0===n?void 0:n.currency),filter:{term:{from:String(null!==(g=null===(l=e.facet)||void 0===l?void 0:l.depositTerm)&&void 0!==g?g:0),to:null},amount:eO(null===(a=e.facet)||void 0===a?void 0:a.depositAmount),currency:null!==(b=null===(o=e.facet)||void 0===o?void 0:o.currency)&&void 0!==b?b:"RUB",type:eB(null===(s=e.facet)||void 0===s?void 0:s.type),partial_withdrawal:(null===(r=e.facet)||void 0===r?void 0:r.partialWithdrawal)?1:0,online_application:0,finuslugi_application:0,commercial:(null===(d=e.facet)||void 0===d?void 0:d.commercialPlacement)?1:0,refill:(null===(c=e.facet)||void 0===c?void 0:c.replenishment)?1:0,interest_capitalization:(null===(u=e.facet)||void 0===u?void 0:u.capitalization)?1:0,earlyTermination:!!(null===(p=e.facet)||void 0===p?void 0:p.earlyTermination),interestsMonthly:!!(null===(m=e.facet)||void 0===m?void 0:m.interestsMonthly),displayNonPlatform:!!(null===(v=e.facet)||void 0===v?void 0:v.displayNonPlatform),rate:eO(null===(_=e.facet)||void 0===_?void 0:_.depositRate)},disable_filter:(null===(h=e.facet)||void 0===h?void 0:h.filterUsage)?0:1,position:null!==(x=e.sortNumber)&&void 0!==x?x:0,deposits:eF(e),default:e.useByDefault?1:0,region_page:{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:eB(e.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:eO(e.stats)}:null},eZ=async e=>{let{tagUrl:t,depositTags:i,setTag:n,toggles:l,limit:a,shouldFetchTexts:o=!0,regionId:s,townId:r}=e,d=await e$({tagUrl:t,depositTags:i,toggles:l,limit:a,shouldFetchTexts:o,regionId:s,townId:r});if(n&&d){var c,u;n(d),null===(u=window)||void 0===u||null===(c=u.scrollTo)||void 0===c||c.call(u,0,0)}return d},e$=async e=>{var t,i,n,l,a,o,s,r;let{tagUrl:d,depositTags:c,limit:u,shouldFetchTexts:p,regionId:m,townId:v}=e,_=null==c?void 0:null===(t=c.find(e=>{let{url:t}=e;return t===d}))||void 0===t?void 0:t.id,h=null==c?void 0:null===(i=c.find(e=>{let{name:t}=e;return"DEFAULT"===t}))||void 0===i?void 0:i.id,f=null!=_?_:h,g=await eR(f,u),b=p?await ez(f,m,v):void 0;return eW({...null==g?void 0:g.data,textList:[...null!==(o=null==b?void 0:null===(n=b.data)||void 0===n?void 0:n.textList)&&void 0!==o?o:[],...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===(a=b.data)||void 0===a?void 0:a.townContent)&&void 0!==r?r:[]]})};var eG=i(93053),eQ=i(81849),eq=i(58864),eY=i(47492),eV=i(65621);function eX(e){let{tagId:t,banksByBic:i,...n}=e,{data:l,isLoading:a}=(0,eC.d)(["non-platform-deposits-by-tag",t],()=>(0,eI.PT)(t),n);return(0,r.useMemo)(()=>({nonPlatformDeposits:(null!=l?l:[]).map(e=>{var t;return(0,eV.p)({deposit:e,bank:(null==e?void 0:null===(t=e.contentAttributes)||void 0===t?void 0:t.bic)?i[e.contentAttributes.bic]:void 0})}),isLoading:a}),[i,l,a])}async function eH(){let e=await (0,eI.vI)();if(!e.data)return[];let{boundaryValues:{totalPages:t},products:i}=e.data,n=Array.from({length:t-1},(e,t)=>(0,eI.vI)("active",{page:t+1}));return[...i,...(await Promise.all(n)).flatMap(e=>{var t,i;return null!==(i=null===(t=e.data)||void 0===t?void 0:t.products)&&void 0!==i?i:[]})]}var eK=i(86935);let eJ=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,D.t9)("/api/v1/banks/filtered".concat(e?"?tagId=".concat(e):""),null,{isSeoApi:!0},t)};var e0=i(81237),e1=i(92317),e2=i(36204),e6=i(57977),e4=i(68026);let e9={setItem:(e,t)=>{try{window.localStorage.setItem(e,t)}catch(e){return console.error(e),!1}return!0},getItemRaw:e=>{try{return window.localStorage.getItem(e)}catch(e){return console.error(e),null}},getItem:e=>{let t=e9.getItemRaw(e);if(t&&"undefined"!==t)try{return JSON.parse(t)}catch(t){console.warn("invalid object in localStorage by key: ".concat(e))}return null},removeItem:e=>{try{window.localStorage.removeItem(e)}catch(e){console.error(e)}}},e7=e=>{let{baseUrl:t,regionUrl:i="",tagUrl:n="",townUrl:l="",params:a,separator:o="?"}=e,s=(0,k.xn)(t,n,i?"reg_"+i:"",l===i?"":l);return a?s+o+a:s},e3=e=>{try{let t=e9.getItem("user_region"),i=e9.getItem("user_town");if(t&&!e.includes(t.url))return{regionUrl:t.url,townUrl:null==i?void 0:i.url};if(t&&e.includes(t.url)&&1===Number(e9.getItemRaw("all_russia_selected")))return null}catch(e){console.log(e)}},e5=(e,t)=>{let i=e.split("#")[0].split("?")[0].split("/"),n=i.findIndex(e=>e.includes("reg_")),l=n>-1?i[n]:null,a=n>-1?i[n+1]:null,o=l?t.find(e=>{let{url:t}=e;return t===l.slice(4)}):null,s=o&&a?o.towns.find(e=>{let{url:t}=e;return t===a}):null;return{region:o,town:s}},e8=e=>{let{pageName:t,regions:i,initialValues:n}=e,[l,a]=(0,r.useState)(!0),{asPath:o,replace:s}=(0,en.P)(),d=(0,r.useMemo)(()=>{var e;return null==o?void 0:null===(e=o.split("?")[0])||void 0===e?void 0:e.split("#")[0].split("/").slice(1)},[o]),c=(0,r.useMemo)(()=>d.find(e=>e.includes("teg_")),[d]),{region:u,town:p,handleSetRegion:m,handleSetTown:v}=(0,e4.k)(),_=(0,r.useCallback)(async function(){let{regionUrl:e,townUrl:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("teg_premium"===c&&e)return;let n=o.indexOf("?"),l=o.indexOf("#"),a=n<l||l<0?"?":"#",r=e7({baseUrl:"/"+t,regionUrl:e,tagUrl:c,townUrl:i,params:o.split(a)[1],separator:a});r!==o&&s(r)},[o,c,t]);return(0,r.useEffect)(()=>{a(!1)},[]),(0,r.useEffect)(()=>{if(!o.length)return;let e=e3(o);if(void 0!==e){e&&_(e);return}if(1===Number(e9.getItemRaw("all_russia_selected"))&&!(null==u?void 0:u.url.length)&&!(null==p?void 0:p.url.length)&&o.includes("reg_")){_();return}if(!(null==u?void 0:u.url.length)&&!(null==p?void 0:p.url.length)&&o.includes("reg_")){let{region:e,town:t}=e5(o,i);e&&m(e),t&&v(t);return}},[o,_,u,p,i,m,v]),(0,r.useMemo)(()=>({region:u||l&&(null==n?void 0:n.region)||null,town:p||l&&(null==n?void 0:n.town)||null,handleSetRegion:m,handleSetTown:v}),[u,p,m,v,l,n])};var te=i(10102),tt=i(48034),ti=i(76002),tn=i(94195),tl=i(90862),ta=i(7206),to=i(84213),ts=i(56949),tr=i(28819),td=i(26523),tc=i(14761),tu=i(32113),tp=i(33145),tm=i(57291),tv=i(95819),t_=i(40482),th=i.n(t_),tf={src:"/deposits/_next/static/media/finuslugi.c398cf70.svg",height:8,width:12,blurWidth:0,blurHeight:0},tg=(0,r.memo)(function(e){let{isSavingAccount:t,isOldUser:i}=e,n=(0,tt.Z)(),a=(0,r.useCallback)(()=>(0,N.ld)(P.Yf,{offset:n,position:"top"}),[n]);return(0,l.jsxs)("div",{className:th().additionalTips,"data-qa":"additional-tips",children:[!i&&!t&&(0,l.jsx)(tv.T,{dataQa:"additional_tips-how_to_open-button",onClick:a,children:(0,l.jsx)(o.Vp,{className:th().tag,iconLeft:(0,l.jsx)(tp.default,{src:tf,alt:"",unoptimized:!0,width:12}),label:"Как открыть вклад",variant:"secondary"})}),(0,l.jsx)(o.Vp,{dataQa:"additional_tips-asv-text",className:th().tag,iconLeft:(0,l.jsx)(tp.default,{src:tm.Z,unoptimized:!0,width:12,alt:""}),label:"".concat(t?"Счета":"Вклады"," застрахованы в АСВ")})]})}),tb=i(85665),tx=i(72798),tw=i.n(tx);function ty(e){let{title:t,caption:i,icon:n,dataQa:o,onCloseClick:s}=e;return(0,l.jsxs)("div",{className:tw().notification,"data-qa":o,children:[n,(0,l.jsxs)("div",{className:tw().textBlock,children:[(0,l.jsx)(a.xv,{size:"18",weight:"medium",className:tw().title,children:t}),(0,l.jsx)(a.xv,{size:"14",weight:"regular",className:tw().caption,children:i})]}),(0,l.jsx)(G.IconFdsCloseO,{size:"24",className:tw().closeIcon,onClick:s})]})}var tN=i(2470),tj=i.n(tN);let tC="opening-notification-closed",tT="profit-notification-closed";function tk(e){let{disableProfitNotification:t,disableNotifications:i}=e,[n,a]=(0,r.useState)(()=>!e9.getItem(tC)),[o,s]=(0,r.useState)(()=>!t&&!e9.getItem(tT)),d=(0,r.useCallback)(()=>{a(!1),e9.setItem(tC,"true")},[]),c=(0,r.useCallback)(()=>{s(!1),e9.setItem(tT,"true")},[]);return(n||o)&&!i?(0,l.jsxs)("div",{className:tj().notifications,children:[n&&(0,l.jsx)(ty,{title:"100% онлайн",caption:"Открытие без\xa0посещения банка",icon:(0,l.jsx)(G.IconFdsHeartO,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-opening-notification",onCloseClick:d}),o&&(0,l.jsx)(ty,{title:"Доход по вкладам с одной ставкой может отличаться",caption:"Причина — разница в количестве дней вклада",icon:(0,l.jsx)(G.IconFdsInfoCircleO,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-profit-notification",onCloseClick:c})]}):null}let tD=(e,t)=>(!!e.isNotAmount||!!e.isTermEmpty||!!e.computeData)&&(!t||!e.promo);var tL=i(72955),tI=i(41506),tE=i(26573),tA=i(70104),tS=i(82180),tP=i.n(tS),tM=i(13889),tR=i.n(tM);let tz=e=>{let{deposit:t,bank:i}=e,{amount:n,rate:a,bankName:o,bonusRate:s}=t,r=[{label:"Сумма",value:"".concat((0,N.Y4)(n,2)," ₽"),id:1},{label:"Ставка",value:"".concat((0,N.Y4)(a,2)).concat(s?" + "+(0,N.Y4)(s,2):"","%"),id:2}];return(0,l.jsxs)("div",{className:tR().cardItem,children:[(0,l.jsxs)("div",{className:tR().cardHeader,children:[(0,l.jsx)("div",{className:tR().logo,children:(null==i?void 0:i.logo_mob)&&(0,l.jsx)(tp.default,{width:17,height:17,alt:o,src:null==i?void 0:i.logo_mob})}),(0,l.jsx)("div",{className:tR().title,children:o})]}),(0,l.jsx)("div",{className:tR().cardContentWrapper,children:r.map(e=>(0,l.jsxs)("div",{className:tR().cardContent,children:[(0,l.jsx)("div",{className:tR().label,children:e.label}),(0,l.jsx)("div",{className:tR().value,children:e.value})]},e.id))})]})},tO=e=>{let{pageUrl:t,banks:i,comboDeposits:n,amount:a,term:o,isTermInDays:s}=e,{totalProfit:d,averageRate:c,deposits:u}=n,p=(0,r.useRef)(null),m="deposits_".concat(t),v=n.deposits.map(e=>{let{id:t,amount:i,rate:n}=e;return"".concat(t,"_").concat(i,"_").concat(n)}).join("_");(0,q.Z)({itemRef:p,eventCategory:m,eventLabel:v,eventAction:"view_card_combo"});let _=[{label:"Средняя ставка",value:"".concat((0,tA.Y4)(c,2),"%"),id:1},{label:"Общий доход",value:"".concat((0,tA.Y4)(d,2)," ₽"),id:2}],h=(0,r.useCallback)(e=>{var t;return null!==(t=i.find(t=>t.bic===(0,tE.g)(e.bic)))&&void 0!==t?t:null},[i]),f=(0,r.useMemo)(()=>(0,k.jb)("/".concat(t,"/combo"),{amount:a,[s?"d_period":"term"]:o}),[a,s,t,o]);return(0,l.jsxs)(j.default,{ref:p,className:tP().card,href:f,children:[(0,l.jsx)("span",{className:tP().tip,children:"Комбо"}),(0,l.jsxs)("div",{className:tP().infoWrapper,children:[(0,l.jsx)("div",{className:tP().title,children:"Два вклада выгоднее"}),(0,l.jsx)("div",{className:tP().infoContent,children:_.map(e=>(0,l.jsxs)("div",{className:tP().info,children:[(0,l.jsx)("div",{className:tP().label,children:e.label}),(0,l.jsx)("div",{className:tP().value,children:e.value})]},e.id))})]}),(0,l.jsx)("div",{className:tP().comboCardWrapper,children:u.map((e,t)=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(tz,{bank:h(e),deposit:e},e.id),!t&&(0,l.jsx)("span",{className:tP().plus})]}))}),(0,l.jsx)(N.zx,{className:tP().button,size:"xs",stretch:!0,onClick:()=>{(0,Q.lQ)({eventLabel:v,eventCategory:"deposits_".concat(t),eventAction:"click_card_combo"})},children:"Подробнее"})]})};var tB=i(25765),tU=i(59829),tF=i(91304),tW=i.n(tF);let tZ=(0,tL.c)(4,tW().skeleton),t$=e=>{var t;let{banks:i,anotherDeposits:n,platformDeposits:d,filter:c,isOldUser:u,depositLists:p,className:m,bannerUrl:v,isHiddenPromo:_,existTag:h,isPlusFiveBonus:f,extraInfo:g,questions:b,pageUrl:x,comboDeposits:w,isSavingAccounts:y,showDepositGuide:j,adFoxConfig:C,showAdFoxBanner:T,isPlatformLoading:k,isNonPlatformLoading:D,showPlatformDeposits:L,newPlatformDeposits:I,disableNotifications:E,displayNonPlatform:A=!0,isTermInDays:S}=e,R=(0,o.s4)(),z=(0,o._m)("l"),{amountData:O,term:B,handleToggleModal:U}=c,[F,W]=(0,r.useState)(10),[Z,$]=(0,r.useState)(10),{depositData:G,openModal:q,handleOpen:Y,handleClose:V}=(0,tI.j)({banks:i,anotherDeposits:n,platformDeposits:d,newPlatformDeposits:I});(0,r.useEffect)(()=>{window.postMessage({key:"depositListLoaded",value:!0},M.m.BASE_URL)},[]);let X=(0,tt.Z)(),H=(0,r.useCallback)(()=>{(0,N.ld)(P.Mb,{offset:X-48,position:"top"})},[X]);(0,r.useEffect)(()=>{k&&W(10),D&&$(10)},[D,k]);let[K,J]=(0,r.useState)(p.platform.filter(e=>tD(e,_)));(0,r.useEffect)(()=>{J(p.platform.filter(e=>tD(e,_)))},[p,_]);let ee="deposits_details_".concat(x,"_popup"),et=w&&w.deposits.length>1,ei=L?p.currentLength>0:p.another.length>0,en=p.another.length>0,el=p.platform.length>0,ea=h?L&&(el||k):L,eo=h?!!A&&(en||D):!!A,es=!h&&(!el&&!k||!L),er=!h&&!en&&!D,ed=p.platform.length>F&&!k,ec=p.another.length>Z&&!D,ep=!!c.amountData.value&&!!c.term.value,em=(0,eq.ur)(R,!z,M.m.FEATURE_TOGGLE_DEPOSIT_FILTER_NEW_DESIGN_ENABLED),ev=(0,r.useMemo)(()=>(0,l.jsx)(tr.t,{children:(0,l.jsx)(tU.Z,{id:P.uz,qrBannerUrl:v,existTag:h,pageUrl:x,newMobileAd:!0})}),[v,h,x]),e_=(0,r.useCallback)(()=>y?null:j?(0,l.jsx)(tb.Z,{pageUrl:x}):ev,[ev,y,x,j]),eh=(0,r.useCallback)(()=>u&&!y?null:ev,[ev,u,y]),ef=(0,r.useCallback)(()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(td.p,{onChangeParams:U,dataQa:"not-found"}),T&&ei&&(0,l.jsx)(ts.Z,{className:tW().adFox,params:eu.e$,config:C})]}),[C,U,ei,T]),eg=(0,r.useCallback)(()=>(0,l.jsxs)(a.W2,{children:[(0,l.jsx)(td.p,{onChangeParams:U,dataQa:"not-found"}),e_(),eh()]}),[U,eh,e_]);return(0,l.jsxs)("section",{id:P.TM,className:(0,s.Z)(tW().container,m),children:[(0,l.jsxs)(tc.X,{switchWhen:es&&er,switchTo:eg,transitionTime:200,children:[ea&&(0,l.jsxs)(a.W2,{children:[(0,l.jsx)(a.xv,{as:"h2",className:tW().title,children:y?"Накопительные счета онлайн на Финуслугах":"Вклады онлайн от Финуслуг"}),(0,l.jsxs)(tc.X,{switchWhen:es,switchTo:ef,transitionTime:200,children:[em?(0,l.jsx)(tg,{isSavingAccount:y,isOldUser:u}):(0,l.jsx)(tk,{disableProfitNotification:y,disableNotifications:E}),(0,l.jsxs)(tc.X,{switchWhen:k,switchTo:tZ,transitionTime:200,children:[et&&(0,l.jsx)(tO,{pageUrl:x,banks:i,comboDeposits:w,amount:+O.value,term:+B.value,isTermInDays:S}),K.slice(0,F).map((e,t)=>(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)(tB.B,{isPlatform:!0,onOpenDetailModal:Y,className:(0,s.Z)(tW().listItem,e.promo&&"click_kartochka_promo_neavtorizovannaya_zona"||"click_kartochka_obychnaya_neavtorizovannaya_zona"),data:e,isTermInDays:!0,baseUrl:"/".concat(x),isFullFilter:ep},e.url+e.id):(0,l.jsx)(tu.B,{isPlatform:!0,onOpenDetailModal:Y,className:(0,s.Z)(tW().listItem,e.promo&&"click_kartochka_promo_neavtorizovannaya_zona"||"click_kartochka_obychnaya_neavtorizovannaya_zona"),isOldUser:u,data:e,wide:!0,isTermInDays:!0,baseUrl:"/".concat(x)},e.url+e.id)}),T&&t+1===Math.min(3,K.length)&&(0,l.jsx)(ts.Z,{className:tW().adFox,params:eu.QA,config:C})]},e.url)),(0,l.jsxs)(a.X2,{className:(0,s.Z)(tW().buttonsRow,tW().spaced),children:[ed&&(0,l.jsx)(o.zx,{size:"s",onClick:()=>{(0,Q.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__offers"}),W(e=>e+10)},className:tW().button,variant:"secondary",dataQa:"show-more-platform-button",children:"Еще предложения от Финуслуг"}),en&&(0,l.jsx)(o.zx,{size:"s",variant:"white",onClick:H,dataQa:"show-nonplatform-deposits-button",children:"Предложения от банков"})]})]})]})]}),e_(),eo&&(0,l.jsxs)(a.W2,{className:tW().anotherList,children:[(0,l.jsx)(a.xv,{as:"h2",id:P.Mb,className:tW().title,children:"Предложения от банков"}),(0,l.jsx)(tc.X,{switchWhen:er,switchTo:ef,children:(0,l.jsxs)(tc.X,{transitionTime:200,switchWhen:D,switchTo:tZ,children:[p.another.slice(0,Z).map((e,t)=>(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)(tB.B,{onOpenDetailModal:Y,className:tW().listItem,data:e,baseUrl:"/".concat(x),isFullFilter:ep}):(0,l.jsx)(tu.B,{onOpenDetailModal:Y,className:tW().listItem,data:e,wide:!0,baseUrl:"/".concat(x)})}),T&&t+1===Math.min(3,p.another.length)&&(0,l.jsx)(ts.Z,{className:tW().adFox,params:eu.Eu,config:C})]},e.url)),ec&&(0,l.jsx)(o.zx,{size:"s",onClick:()=>{(0,Q.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__lidgen"}),$(e=>e+10)},className:(0,s.Z)(tW().button,tW().spaced),variant:"secondary",dataQa:"show-more-nonplatform-button",children:"Еще предложения"})]})})]}),eh()]}),G&&(0,l.jsx)(to.Z,{data:G,isOldUser:u,isOpen:q,onClose:V,extraInfo:g,isPlusFiveBonus:f,questions:b,depositSumm:O.value,showcaseBaseUrl:x,depositTerm:null!==(t=null==B?void 0:B.label)&&void 0!==t?t:"Любой",initialAmount:Number(O.value),initialTermInMonths:Number(B.value),eventCategory:ee})]})};var tG=i(25813),tQ=i.n(tG),tq=i(18674),tY=i(70087);let tV=null!==(n=(0,T.env)("NEXT_PUBLIC_BASE_URL"))&&void 0!==n?n:"*",tX=e=>(0,l.jsx)(j.default,{...e}),tH=e=>{var t,i,n,s,d;let{stores:c,depositTags:u,depositTag:p,currencies:m,discounts:v,bounds:h,bankTowns:f,depositRegion:x,depositRegionLinks:w,defaultRegion:j,defaultTown:T,depositsTitle:D,depositsDescription:R,depositsSubtitle:z,initialAnotherDeposits:O,initialPlatformDeposits:B,allExtraInfo:U,banks:F,banksCount:W,initialTopBanks:$,questions:G,supportData:q,journalData:Y,isPlatformShowcase:V,initialCurrentDepositsLength:H,initialAllDepositsLength:K,initialComboDeposits:J,initialQuote:ee,crossLinkLabels:et,initialSeoText:el,showOnlyNonPromo:es=!1}=e,er=(0,o.s4)(),eu=(0,N._m)("l"),{asPath:eb,push:ey}=(0,en.P)(),eN=(0,C.usePathname)(),ej=(0,tt.Z)(12,24),ek=(0,r.useMemo)(()=>es?eM.a.VKLADY_OLD:eM.a.VKLADY,[es]);(0,ti.f)({eventCategory:"deposits_".concat(eb),eventLabel:""});let{regions:eD,town_duplicates:eE}=(0,te.f)(!1,{region:j,town:T}),{town:eS,region:eR,handleSetTown:ez,handleSetRegion:eO}=e8({pageName:ek,regions:eD,initialValues:{region:j,town:T}}),{isOldUser:eB,customerId:eU,isLoading:eF}=(0,eK.jt)(),eW=(0,e6.a)(S.tE),e$=(0,e2.K)({bannersTitle:[S.N9.DEPOSITS_ADVANTAGES,S.N9.VKLADY,S.N9.VKLADY_TAGS],queryParams:eW,stores:c}),[eV,e4]=(0,r.useState)(!eB),[e9,e7]=(0,r.useState)(p),[e3,e5]=(0,r.useState)(),{topBanks:to}=function(e){let{tagId:t,initialTopBanks:i,...n}=null!=e?e:{},{data:l,isLoading:a}=(0,eC.d)(["topBanks",t],()=>eJ(t),{...n});return(0,r.useMemo)(()=>{var e,t;return{isLoading:a,topBanks:l?null!==(t=null===(e=l.data)||void 0===e?void 0:e.banks)&&void 0!==t?t:[]:i}},[a,l,i])}({tagId:null!==(n=null==e9?void 0:e9.id)&&void 0!==n?n:"",initialTopBanks:$}),ts=(null==e9?void 0:e9.url)==="nakopitelnye",{terms:tr,isLoading:td}=function(e){var t,i;let n=(0,r.useMemo)(()=>(0,eA.$1)(),[]),l=null!==(i=null==n?void 0:n["auth.gtm_customer_id"])&&void 0!==i?i:void 0,{data:a,isLoading:o}=(0,eC.d)(["deposit-terms",l],()=>(0,eI.rl)(l),e);return(0,r.useMemo)(()=>{var e,t,i;return{isLoading:o,terms:null!==(i=null==a?void 0:null===(t=a.data)||void 0===t?void 0:null===(e=t.terms)||void 0===e?void 0:e.map(eP))&&void 0!==i?i:[]}},[null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.terms,o])}({disabled:!M.m.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED||ts,ssrLoader:!0}),tc=(0,r.useMemo)(()=>ep(tr),[tr]),{isLoading:tu,products:tp,productsWithIncreasedAmount:tm,productHint:tv}=function(e){let t=M.m.FEATURE_TOGGLE_NEW_BONUS_API_ENABLED,{filters:i,showOnlyNonPromo:n=!1,...l}=e,{disabled:a=!1}=l,{isOldUser:o,isLoading:s}=(0,eK.jt)(),{data:d,isLoading:c}=(0,eC.d)(["deposits",i],()=>(0,eI.qB)({...i,isNewCustomer:!o},t),{...l,disabled:a||s||(0,eq.mA)(i)}),{data:u}=null!=d?d:{},{products:p=[],productsWithIncreasedAmount:m=[],productHint:v}=null!=u?u:{};return(0,r.useMemo)(()=>{let e=p,t=m;return n&&(e=p.filter(e=>!e.promo),t=m.filter(e=>!e.promo)),{products:e,productsWithIncreasedAmount:t,productHint:v,isLoading:c||s}},[s,c,v,p,m,n])}({filters:e3,showOnlyNonPromo:es,disabled:ts||td}),[t_,th]=(0,r.useState)(!1),tf=t_?tm:tp,tg=(0,r.useMemo)(()=>F.reduce((e,t)=>({...e,[Number(t.bic)]:t}),{}),[F]),{nonPlatformDeposits:tb,isLoading:tx}=eX({tagId:String(null!==(s=null==e9?void 0:e9.id)&&void 0!==s?s:""),banksByBic:tg,disabled:!(null==e9?void 0:e9.id)||!(null===(t=e9.filter)||void 0===t?void 0:t.displayNonPlatform)||V}),tw=(0,r.useMemo)(()=>{var e;return null===(e=u.find(e=>"all_offers"===e.url))||void 0===e?void 0:e.id},[u]),{nonPlatformDeposits:ty}=eX({tagId:String(null!=tw?tw:""),banksByBic:tg,disabled:!tw}),{oldSavingAccounts:tN,isLoading:tj}=function(e){let{data:t,isLoading:i}=(0,eC.d)("old-saving-accounts",()=>eH(),e);return(0,r.useMemo)(()=>({oldSavingAccounts:null!=t?t:[],isLoading:i}),[t,i])}({disabled:!ts}),tC=(0,r.useMemo)(()=>(0,tq.j)({path:eb,tag:e9}),[eb,e9]),tT=(0,r.useCallback)(e=>{ey((0,eY.C)("deposits",{id:"",name:"",url:e},eR,eS,void 0,ek)||"/vklady"),eZ({tagUrl:e,depositTags:u,setTag:e7,regionId:null==eR?void 0:eR.region_id,townId:null==eS?void 0:eS.id})},[ey,eR,eS,ek,u]),tk=function(e){let{banks:t,isNewCustomer:i,setFilters:n}=e,l=(0,r.useMemo)(()=>t.reduce((e,t)=>({...e,[String(t.id)]:t.bic}),{}),[t]);return(0,eg.y1)(e=>{let{amount:t,term:a,sortType:o,withCapitalization:s,withMonthlyPercent:r,withPreferentialTermination:d,withRefill:c,activeBanks:u,withPartialWithdrawal:p}=e;n({amount:t>0?t:void 0,sort:ex[o],term:ew(a),withCapitalization:s||void 0,withMonthlyPayments:r||void 0,withPreferentialTermination:d||void 0,withPartialWithdrawal:p||void 0,withRefill:c||void 0,isNewCustomer:i,providerBICs:null==u?void 0:u.map(e=>l[e])})},500)}({banks:F,isNewCustomer:!eB,setFilters:e5}),tD=M.m.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED&&!ts,tL=(0,tY.L)({tag:e9,currencies:m,banks:F,defaultValues:tC,isDiscount:eV,sortLoading:(0,eq.ur)(!ts,eF),termOptions:tc,isTermInDays:tD}),tI=tL.shouldFilterByAllOffers&&(null==ty?void 0:ty.length)?ty:tb,tE=(0,r.useRef)(void 0);(0,r.useEffect)(()=>{if(ts||!tL.clientSortType)return;let e=ed(tL);e&&!ec(e,tE.current)&&(tE.current=e,tk(e),th(!1))},[tL,tk,ts]);let tA=(0,r.useCallback)(e=>{if(Number(tL.amountData.value)!==e){if(tL.handleAmountChange(e),tL.amountData.handleChange(e),tE.current){let t={...tE.current,amount:e};if(tE.current=t,M.m.FEATURE_TOGGLE_DEPOSIT_FILTER_NEW_DESIGN_ENABLED){tk(t),tk.flush(),(0,N.ld)(P.TM,{offset:ej,position:"top",delay:200});return}}th(!0)}},[tL,tk,ej]),tS=(0,e0.I)(),[tP,tM]=(0,r.useState)(x),[tR,tz]=(0,r.useState)(w);(0,r.useEffect)(()=>{L({region:eR,town:eS,tag:e9}).then(e=>{e.data&&!e.data.message&&tM(e.data)}),I({region:eR}).then(e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.region_links)&&tz(e.data.region_links)}),e9&&eZ({tagUrl:null==e9?void 0:e9.url,depositTags:u,setTag:e7,regionId:null==eR?void 0:eR.region_id,townId:null==eS?void 0:eS.id})},[null==eR?void 0:eR.url,null==eR?void 0:eR.region_id,null==eS?void 0:eS.url,null==e9?void 0:e9.url]);let tO=(0,r.useCallback)((e,t)=>{N.A7.setItem("user_region",e?JSON.stringify(e):""),N.A7.setItem("user_town",t?JSON.stringify(t):""),eO(e),ez(t||null)},[eO,ez]),tB=function(e){var t;let{filter:i,isDiscount:n,filters:l,withSavingAccounts:a,...o}=e,s=eh(!!a,i.amountData.value,null==l?void 0:l.amount),d=(0,r.useMemo)(()=>{var e;return{...o,shouldFilterByAllOffers:i.shouldFilterByAllOffers,filter:{amount:s,rate:i.rate,currency:String(i.currencyUnit),withRefill:i.withRefill,filterAdditionalSettings:i.filterAdditionalSettings,importantDeposits:i.importantDeposits,initialSort:i.initialSort,order:i.increaseSort?ev.mr.Desc:ev.mr.Asc,sortType:i.sortType,isDiscount:n,term:ef(!!a,i.term.value,null==l?void 0:null===(e=l.term)||void 0===e?void 0:e.value),withCapitalization:i.withCapitalization,activeBanks:i.activeBanks?i.activeBanks.map(e=>String(e.value)):void 0,withMonthlyPercent:i.withMonthlyPercent,withPreferentialTermination:i.withPreferentialTermination}}},[o,s,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,n,null==l?void 0:null===(t=l.term)||void 0===t?void 0:t.value,a]);return(0,r.useMemo)(()=>(0,e_.O)(d),[d])}({initialAnotherDeposits:O,initialPlatformDeposits:B,platformDeposits:tN,anotherDeposits:tb,newPlatformDeposits:tf,bounds:h,isPlusFiveBonus:!eB,isOldUser:eB,filter:tL,filters:e3,banks:F,discounts:v,bankTowns:f,town:eS,region:eR,allExtraInfo:U,getOnlyInitialData:!er,initialAllDepositsLength:K,initialCurrentDepositsLength:H,calculateFilterAbilities:ts,withSavingAccounts:ts,isDiscount:eV,allOffers:ty});(0,r.useEffect)(()=>{e4(ts?tB.platform.some(e=>e.hasDiscount):!eB)},[tB,ts,eB]);let{quote:tU}=eT({tagUrl:null==e9?void 0:e9.url,regionUrl:null==eR?void 0:eR.url,townUrl:null==eS?void 0:eS.url,initialQuote:ee}),{seoText:tF}=eL({url:null!=eN?eN:"",initialSeoText:el}),tW=1===tL.currency.id||ts,tZ=tW?tB.currentLength:tB.another.length,tG=(0,r.useMemo)(()=>tP?(0,tn.Y)({data:tB.another,platformDepositLists:tB.platform,tags:u,regionLinks:tR,dataRegion:tP,regions:eD,banks:F,topBanks:to,tag:e9,region:eR,town:eS,townDuplicates:eE,setTag:tT,setRegion:tO,currencies:m,showOnlyNonPromo:es,basePath:ek}):[],[tP,tB.another,tB.platform,u,tR,eD,F,to,e9,eR,eS,eE,tT,tO,m,es,ek]),tH=(0,eQ.x)({tag:e9,region:eR,town:eS,depositLists:tB,banksCount:W,depositsCount:tZ}),{subtitle:tK,h1:tJ,inRegion:t0}=tH,t1=(null==tB?void 0:tB.notInitialDeposits)?tK:z,t2=(0,r.useMemo)(()=>(0,ei.L)(e9),[e9]),t6=(0,r.useMemo)(()=>{if(!(null==eR?void 0:eR.url))return"";let e=76!==eR.id&&77!==eR.id&&(null==eS?void 0:eS.url)?null==eS?void 0:eS.url:"";return(0,k.xn)("/reg_".concat(eR.url),e)},[null==eR?void 0:eR.url,null==eR?void 0:eR.id,null==eS?void 0:eS.url]),t4=(0,r.useMemo)(()=>(null==et?void 0:et.content)?{content:null==et?void 0:et.content.map(e=>({...e,tags:e.tags.map(e=>({...e,url:"".concat(e.url).concat(t6)}))}))}:{content:[]},[et,t6]),t9=(0,r.useMemo)(()=>eo({isDefault:t2,tag:e9,h1:tJ,inRegion:t0,basePath:"/".concat(ek)}),[t0,t2,e9,tJ,ek]),t7=(0,eG.W)({tagName:null==e9?void 0:e9.faq_title,inRegion:t0}),{fitsForMonthlyPercentFilter:t3,fitsForPreferentialTerminationFilter:t5,fitsForCapitalization:t8,fitsForRefill:ie}=tB;(0,e1.z)({disabled:!0,showMonthlyPercent:t3,showPreferentialTermination:t5,showCapitalization:t8,showRefill:ie,filter:tL});let{comboDeposits:it}=Z({amount:+tL.amountData.value,term:+tL.term.value,initialComboDeposits:J,tag:e9,customerId:eU,isTermInDays:tD}),ii=(0,eq.ur)(!eB,!ts),il=!!tS,ia=em({isDepositsLoading:tj,isCustomerLoading:eF,isPlatformDepositsLoading:tu,hasFilters:!!e3,isClient:er,platformLoadingDisabled:!ts});return(0,l.jsxs)("main",{className:tQ().page,children:[(0,l.jsx)(ea,{region:eR,town:eS,tag:e9,meta:tH,depositLists:tB,regionUrl:t6,currency:tL.currency.value,isOldUser:eB,initialDescription:R,initialTitle:D,quote:tU}),(0,l.jsx)(a.W2,{className:tQ().mainContainer,fluid:!0,children:(0,l.jsx)(a.W2,{children:(0,l.jsx)(ta.v,{tag:e9,setTag:tT,h1:tJ,region:eR,town:eS,subtitle:null!=t1?t1:"",length:er?tZ:H,data:tL,terms:tc,isTermsLoading:td,withAdditional:!tB.boundsIsEmpty,isMobile:!eu,partnerId:null,isDiscount:eV,breadcrumbsPath:t9,showDepositGuide:ii,isSavingAccounts:ts,showAdFoxBanner:il,isTermInDays:tD,productHint:tv,isLoading:tu,onTipsApply:tA})})}),!M.m.FEATURE_TOGGLE_DEPOSIT_FILTER_NEW_DESIGN_ENABLED&&(0,l.jsx)(X,{visible:(0,eq.ur)(tv,!tu),amount:null==tv?void 0:tv.minimumAmount,rate:null==tv?void 0:tv.fullRate,bankName:null==tv?void 0:tv.bankDisplayName,eventCategory:"deposits_".concat(eb),onTipsApply:tA}),(0,l.jsx)(t$,{filter:tL,isDiscount:eV,isOldUser:eB,banks:F,platformDeposits:tN,anotherDeposits:tI,depositLists:tB,adFoxConfig:tS,isMobile:!eu,bannerUrl:t2?e$[S.N9.VKLADY]:null!==(d=e$[S.N9.VKLADY_TAGS])&&void 0!==d?d:e$[S.N9.VKLADY],isHiddenPromo:eB,existTag:!t2,town:eS,region:eR,extraInfo:U,isPlusFiveBonus:!eB,questions:G,pageUrl:ek,currentDepositsLength:er?tB.currentLength:H,allDepositsLength:er?tB.allLength:K,comboDeposits:it,isSavingAccounts:ts,showDepositGuide:ii,showAdFoxBanner:il,isPlatformLoading:ia,isNonPlatformLoading:er&&tx,showPlatformDeposits:tW,newPlatformDeposits:null!=tf?tf:[],disableNotifications:(0,eq.oA)(tv),displayNonPlatform:null==e9?void 0:null===(i=e9.filter)||void 0===i?void 0:i.displayNonPlatform,isTermInDays:tD}),tU&&!eS&&!eR&&(0,l.jsx)(g,{className:tQ().quote,quote:tU}),(0,l.jsx)(E.V,{journalData:Y,className:tQ().grayBackground}),(0,l.jsx)(A.y,{supportData:q,className:tQ().grayBackground}),tF&&(0,l.jsx)(y,{content:null==tF?void 0:tF.content,dataLayerPush:Q.lQ,sectionTitle:"",blockTitle:null==tF?void 0:tF.title}),t4&&(0,l.jsx)(_,{labelsData:t4,sectionTitle:"Вклады, которые могут вас заинтересовать",href:"/".concat(ek),blockTitle:"",dataLayerPush:Q.lQ}),(0,l.jsx)(b.C,{sectionTitle:t7,Link:tX,dataLayerPush:Q.lQ,questions:tG,eventCategory:"deposits_support_block",href:(0,k.xn)(tV,"help"),checkAllText:eu?"Читать все вопросы про вклады":"Все вопросы про вклады",tagTitle:"h3"}),(0,l.jsx)(tl.s,{data:tL,isDiscount:eV,isMobile:!eu,terms:tc,depositsLength:tZ,withAdditional:!tB.boundsIsEmpty,partnerId:null,showMonthlyPercent:t3,showPreferentialTermination:t5,showCapitalization:t8,showRefill:ie,withCapitalizationTittle:"Капитализация",withRefillTitle:"Пополнение"})]})}},18674:function(e,t,i){"use strict";i.d(t,{j:function(){return o}});var n=i(76391),l=i(96742),a=i(91220);let o=e=>{var t,i,o,s;let{tag:r,path:d}=e,c=(0,a.p)(d),u=String(c.amount),p=String(c.period),m=String(c.term),v=c.currency?String(c.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===(t=r.filter)||void 0===t?void 0:t.currency);return(null==r?void 0:r.filter)&&(_.term=null!==(o=null===(i=r.filter.term.values)||void 0===i?void 0:i[0])&&void 0!==o?o: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),u&&!isNaN(+u)&&(_.amount=u),p&&!isNaN(+p)&&(_.term=+p),m&&!isNaN(+m)&&(_.term=+m),v&&(0,l.z)(v).code&&(_.currencyCode=(0,l.z)(v).code),_}},26573:function(e,t,i){"use strict";function n(e){return e.startsWith("0")?e.replace("0",""):e}i.d(t,{g:function(){return n}})},94943:function(e,t,i){"use strict";var n,l;i.d(t,{z:function(){return l}}),(n||(n={})).HTML="html",(l||(l={})).nakop="nakopitelnye"},81237:function(e,t,i){"use strict";i.d(t,{I:function(){return l}});var n=i(2265);let l=()=>{let[e,t]=(0,n.useState)();return(0,n.useEffect)(()=>{window&&window.Ya&&window.yaContextCb&&t({ownerId:406293,Ya:window.Ya,yaContextCb:window.yaContextCb})},[]),e}},92317:function(e,t,i){"use strict";i.d(t,{z:function(){return o}});var n=i(21652),l=i.n(n),a=i(2265);function o(e){let{filter:t,showCapitalization:i,showMonthlyPercent:n,showPreferentialTermination:o,showRefill:s,disabled:r=!1}=e,{withCapitalization:d,withMonthlyPercent:c,withPreferentialTermination:u,withRefill:p,handleWithCapitalizationChange:m,handleWithMonthlyPercentChange:v,handleWithPreferentialTerminationChange:_,handleWithRefillChange:h}=t,f=(0,a.useMemo)(()=>({withCapitalization:d,withMonthlyPercent:c,withPreferentialTermination:u,withRefill:p}),[d,c,u,p]),g=(0,a.useRef)(f);(0,a.useEffect)(()=>{if(!r){if(!l()(g.current,f)){g.current=f;return}u&&!o&&_(!1),c&&!n&&v(!1),d&&!i&&m(!1),p&&!s&&h(!1)}},[r,f,m,v,_,h,i,n,o,s,d,c,u,p])}},10102:function(e,t,i){"use strict";i.d(t,{f:function(){return o}});var n=i(2265),l=i(90716);let a=e=>{let{isShort:t}=e;return(0,l.t9)("/money_data/Root.json".concat(t?"?short=1":""))},o=(e,t)=>{let[i,l]=(0,n.useState)({regions:[],town_duplicates:[],region:(null==t?void 0:t.region)||null,town:(null==t?void 0:t.town)||null});return(0,n.useEffect)(()=>{e||(async()=>{let e=await a({isShort:!0});e.data&&l(e.data)})()},[e]),i}},76002:function(e,t,i){"use strict";i.d(t,{f:function(){return a}});var n=i(2265),l=i(72151);function a(e){let{eventCategory:t,eventLabel:i}=e;(0,n.useEffect)(()=>{(0,l.lQ)({event:"data-event",eventAction:"view",eventCategory:t,eventLabel:i})},[])}},25813:function(e){e.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(e){e.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(e){e.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(e){e.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(e){e.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(e){e.exports={additionalTips:"AdditionalTipsList_additionalTips__z_e1N",tag:"AdditionalTipsList_tag__OjzTl"}},72798:function(e){e.exports={notification:"Notification_notification__9eoLP",textBlock:"Notification_textBlock__L95fL",title:"Notification_title__3pGiN",caption:"Notification_caption__vEbpd",closeIcon:"Notification_closeIcon__UTaKl"}},2470:function(e){e.exports={notifications:"Notifications_notifications__JTggi"}}},function(e){e.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,1648,2938,8665,2541,3963,8914,4923,9442,1196,1281,885,7023,1066,1884,5406,4538,7206,4579,2971,2117,1744],function(){return e(e.s=82491)}),_N_E=e.O()}]);