(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,20690))},93810:function(e){e.exports=function(){}},92388:function(e,t,i){"use strict";i.d(t,{$:function(){return r}});var n=i(57437),a=i(35563),l=i(54365),o=i(73727),s=i.n(o);function r(e){return(0,n.jsx)(a.xv,{...e,className:(0,l.Z)(s().caption,e.className)})}},20690:function(e,t,i){"use strict";i.r(t),i.d(t,{Deposits:function(){return tZ}});var n,a=i(57437),l=i(35563),o=i(75461),s=i(54365),r=i(2265),c=i(52074);let d=(0,c.g)("cross-link-chips-block","sc"),u=Object.freeze({crossLinkChipsBlock:d,crossLinkSlider:`${d}__slider`,crossLinkItemList:`${d}__item-list`,crossLinkItem:`${d}__item`,hiddenCrossLinkItemLink:`${d}__item--hidden`,sliderChips:`${d}__slider-chips`,sliderChipsItem:`${d}__slider-chips-item`}),m=({labels:e,dataLayerPush:t,eventCategory:i="cross-link",...n})=>{var l;let[c,d]=(0,r.useState)(null==(l=e[0])?void 0:l.name),m=n=>{let a=e.find(e=>e.name===c);d(n),t({event:"data-event",eventCategory:i,eventAction:"click_chip_cross-link-block",eventLabel:null==a?void 0:a.name})},p=e.map(e=>({id:e.name,label:e.name})),v=(e,a)=>{t({event:"data-event",eventCategory:i,eventAction:"click_link_cross-link-block",eventLabel:e.tagName,eventValue:a,url:`${n.href}/${e.url}`})};return(0,a.jsxs)(a.Fragment,{children:[p.length>=1&&(0,a.jsx)(o.iR,{options:{slidesPerView:"auto",spaceBetween:8},className:u.crossLinkSlider,children:p.map(e=>(0,a.jsx)(o.wI,{className:u.sliderChipsItem,children:(0,a.jsx)(o.cL,{value:c,onChipClick:m,chips:[e]})},e.id))}),e.length>0&&(0,a.jsx)("ul",{className:u.crossLinkItemList,children:e.map(e=>{var t;let i=e.name!==c;return null==(t=e.tags)?void 0:t.map(t=>(0,a.jsx)("li",{className:(0,s.Z)(u.crossLinkItem,i&&u.hiddenCrossLinkItemLink),children:(0,a.jsx)(o.rU,{href:`${n.href}/${t.url}`,onClick:()=>v(t,e.name),children:t.tagName})},t.id))})})]})};m.displayName="CrossLinkChipsBlock";let p=(0,c.g)("cross-link","sc"),v=Object.freeze({crossLink:p,titleWrapper:`${p}__title-wrapper`,title:`${p}__title`,crossLinkWrapper:`${p}__wrapper`,crossLinkChipsTitle:`${p}__chips-title`}),_=({sectionTitle:e,labelsData:t=[],className:i,blockTitle:n="Виды вкладов",href:o="/vklady",dataLayerPush:r})=>(0,a.jsx)("section",{className:(0,s.Z)(v.crossLink,i),children:(0,a.jsxs)(l.W2,{children:[(0,a.jsx)("div",{className:v.titleWrapper,children:(0,a.jsx)(l.X6,{as:"h2",type:"hero",className:(0,s.Z)(v.title),children:e})}),(0,a.jsxs)("div",{className:v.crossLinkWrapper,children:[n&&(0,a.jsx)(l.X6,{as:"h3",type:"h3",className:v.crossLinkChipsTitle,children:n}),(0,a.jsx)(m,{labels:t.content,href:o,dataLayerPush:r})]})]})});_.displayName="CrossLink";let h=(0,c.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,a.jsx)("section",{className:(0,s.Z)(f.wrapper,e),children:(0,a.jsxs)(l.W2,{children:[(0,a.jsx)(l.X6,{as:"h2",type:"display",weight:"bold",className:(0,s.Z)(f.title,"mb-6"),children:"Мнение эксперта"}),(0,a.jsx)("div",{className:f.card,children:(0,a.jsxs)("div",{className:f.content,children:[(0,a.jsxs)("div",{className:f.about,children:[t.expert.photo&&(0,a.jsx)("a",{href:t.expert.url,children:(0,a.jsx)("div",{className:f.img,style:{backgroundImage:`url(${t.expert.photo})`}})}),(0,a.jsxs)("div",{className:f.aboutText,children:[(0,a.jsx)("a",{href:t.expert.url,className:f.name,children:t.expert.name}),(0,a.jsx)("p",{className:f.position,dangerouslySetInnerHTML:{__html:t.expert.position}})]})]}),(0,a.jsx)("p",{className:f.text,dangerouslySetInnerHTML:{__html:t.content}})]})})]})}));g.displayName="ExpertQuote";var x=i(59226);let b=(0,c.g)("seo-text","sc"),y=Object.freeze({seoText:b,wrapper:`${b}__wrapper`,title:`${b}__title`,titleWrapper:`${b}__title-wrapper`,blockTitle:`${b}__block-title`,text:`${b}__text`,checkAll:`${b}__check-all`}),j=({blockTitle:e,content:t,sectionTitle:i,className:n})=>(0,a.jsx)("section",{className:(0,s.Z)(y.seoText,n),children:(0,a.jsxs)(l.W2,{children:[(0,a.jsx)("div",{className:y.titleWrapper,children:(0,a.jsx)(l.X6,{as:"h2",type:"hero",className:(0,s.Z)(y.title),children:i})}),(0,a.jsxs)("div",{className:y.wrapper,children:[(0,a.jsx)(l.X6,{as:"h3",type:"h3",className:(0,s.Z)(y.blockTitle),children:e}),(0,a.jsx)("div",{className:y.text,dangerouslySetInnerHTML:{__html:t||""}})]})]})});j.displayName="SeoText";var k=i(5426),C=i(27648),N=i(99376),w=i(50666),D=i(77337),T=i(90716);let L=e=>{let{region:t,town:i,tag:n}=e;return(0,T.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,T.t9)("/money_data/DepositRegion.json?region_links=1".concat(t?"&region="+t.url:""))};var A=i(21528),S=i(19312),M=i(65716),P=i(14862);let B=e=>(0,T.t9)("/api/v1/deposits/combo",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0});var E=i(94943),z=i(64671),O=i(6164),R=e=>{var t;let{amount:i,customerId:n,termInDays:a,termInMonths:l}=e;return{amount:i,term:{value:null!==(t=null!=a?a:l)&&void 0!==t?t:0,type:a?O.e.DAY:O.e.MONTH},...n&&{customerId:n}}};let U=(0,z.b)(),$=(e,t)=>e?{...e,totalProfit:e.totalProfit-t}:null,F=e=>{let{amount:t,term:i,initialComboDeposits:n,customerId:a,tag:l,isTermInDays:o}=e,s=t&&i&&(null==l?void 0:l.url)!==E.z.nakop,[c,d]=(0,r.useState)($(s?n:null,t));return(0,r.useEffect)(()=>{if(!s){d(null);return}U(async()=>{var e;d($(null!==(e=(await B(R({amount:t,customerId:a,[o?"termInDays":"termInMonths"]:i}))).data)&&void 0!==e?e:null,t))})},[a,t,i,s,o]),{comboDeposits:c}};var W=i(49090),Q=i(80684),Z=i(72151),q=i(99193),G=i(39421),Y=i.n(G),V=(0,r.memo)(function(e){let{visible:t,eventCategory:i,amount:n=0,bankName:c="",rate:d=0,onTipsApply:u}=e,[m,p]=(0,r.useState)({amount:n,bankName:c,rate:d});(0,r.useEffect)(()=>{t&&p({amount:n,bankName:c,rate:d})},[n,c,d,t]);let v=(0,r.useRef)(null);(0,q.Z)({itemRef:v,eventCategory:i,eventAction:"view_hint",eventLabel:""});let _=(0,r.useCallback)(()=>{(0,Z.lQ)({eventCategory:i,eventAction:"click_hint_button"}),u(n)},[n,i,u]);return(0,a.jsx)(l.W2,{className:(0,s.Z)(Y().depositTips,t&&Y().visible),"data-qa":"deposit-tips",children:(0,a.jsxs)("div",{className:Y().tipContent,ref:v,children:[(0,a.jsx)(Q.IconFdsFlashO,{size:24,className:Y().icon}),(0,a.jsxs)("div",{className:Y().textContent,children:[(0,a.jsx)(l.xv,{as:"p",size:"18",weight:"medium",style:{color:"var(--color-black-500)"},dataQa:"deposit-tips-title",children:"Вы можете увеличить сумму вклада и вложить деньги более выгодно"}),(0,a.jsx)(l.xv,{as:"p",size:"14",dataQa:"deposit-tips-caption",style:{color:"var(--color-gray-800)"},children:"Нашли более выгодный вклад от банка \xab".concat(m.bankName,"\xbb под ").concat((0,W.og)(m.rate)," с минимальной суммой от ").concat((0,W.lb)(m.amount))})]}),(0,a.jsx)(o.zx,{className:Y().mobileButton,size:"xs",variant:"secondary",appearance:"fill",iconRight:(0,a.jsx)(Q.IconFdsChevronRightO,{}),dataQa:"deposit-tips-show-button-mobile",onClick:_,children:"Посмотреть"}),(0,a.jsx)(o.zx,{className:Y().desktopButton,size:"xs",variant:"primary",appearance:"ghost",iconRight:(0,a.jsx)(Q.IconFdsChevronRightO,{}),dataQa:"deposit-tips-show-button-desktop",onClick:_,children:"Посмотреть"})]})})},(e,t)=>e.visible===t.visible),H=i(80691),X=i(57044),K=i(66726),J=i(79588),ee=i(47935),et=i(32046),ei=i(14441);let en=Object.freeze(["moskva","sankt-peterburg"]);var ea=(0,r.memo)(function(e){let{region:t,tag:i,meta:n,depositLists:l,regionUrl:o,currency:s,isOldUser:c,town:d,initialDescription:u,initialTitle:m,quote:p}=e,{asPath:v}=(0,ei.P)(),_=v.split("?")[0].split("#")[0],{minDepositAmount:h,minTermPeriod:f,highPrice:g,inRegion:x,h1:b,description:y,title:j}=n,k=(0,et.L)(i),C=(null==l?void 0:l.notInitialDeposits)?j:m,N=(null==l?void 0:l.notInitialDeposits)?y:u;return(0,r.useEffect)(()=>{document.title=C;let e=document.querySelector("link[rel=canonical]"),t=document.querySelector('meta[name="description"]');t&&t.setAttribute("content",N),e&&(e.href="".concat(P.m.BASE_URL).concat(_))},[C,_,N]),(0,a.jsxs)(a.Fragment,{children:[k&&t&&en.includes(t.url)&&(0,a.jsx)(J.Z,{minDepositAmount:h,minTermPeriod:f,regionName:t.name_p,maxRate:g,regionUrl:t.url}),(0,a.jsx)(H.g,{regionUrl:o,tag:i,inRegion:x}),i&&ee.E.includes(null==i?void 0:i.url)&&(0,a.jsx)(X.M,{textList:i.text,regionId:null==t?void 0:t.region_id,townId:null==d?void 0:d.id}),(0,a.jsx)(K.Q,{filterCurrency:s,currentLength:l.currentLength,isHiddenPromo:c,description:N,h1:b,inRegion:x,platform:l.platform,another:l.another,regionUrl:o,tagUrl:!k&&i?i.url:"",quote:p})]})});let el=e=>{let{isDefault:t,tag:i,h1:n,inRegion:a,regionUrl:l,basePath:o="/vklady"}=e,s=[{label:"Вклады",href:o}];if(!t&&!a){var r;s.push({label:null!==(r=null==i?void 0:i.tag_name)&&void 0!==r?r:n,href:(0,D.xn)(o,"/teg_".concat(null==i?void 0:i.url))})}return a&&s.push({label:t?"Вклады".concat(a):a.trimStart().replace(/^./,"В"),href:(0,D.xn)(o,t?"":"/teg_".concat(null==i?void 0:i.url),l)}),s};var eo=i(21652),es=i.n(eo);let er=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)=>es()(e,t);var ed=i(98160);let eu=e=>e.length?[ed.vw[0],...e.map(e=>({value:e.durationOfDays,label:e.termLabel}))]:ed.vw,em=e=>{let{isDepositsLoading:t,isCustomerLoading:i,isPlatformDepositsLoading:n,hasFilters:a,isClient:l,platformLoadingDisabled:o}=e;return t&&l||i||o&&(n||!a&&l)};var ep=i(33600),ev=i(36639);let e_=(e,t,i)=>e?t:i?String(i):void 0,eh=(e,t,i)=>e?t?Number(t):void 0:i;var ef=i(71931),eg=i(91627);let ex=Object.freeze({[ep.ER.Profit]:"PROFIT",[ep.ER.Rate]:"RATE",[ep.ER.RatePlusBonus]:"CUMULATIVE_RATE"}),eb=e=>{if(e)return{type:"DAY",value:P.m.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED?Number(e):Math.round(Number(e)*eg.F)}},ey=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,T.t9)("/api/v1/quotes?quoteUrl=".concat(e,"&published=true"),null,{isMpScApi:!0},t)},ej=e=>{if(!Array.isArray(e)||0===e.length)return null;let t=Math.floor(Math.random()*e.length);return e[t]},ek=async e=>{var t,i;let{tag:n,region:a,town:l}=e,o=["vklady"];n&&o.push("teg_".concat(n)),a&&o.push("reg_".concat(a)),l&&o.push(l);let s=o.join("/"),r=ej(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 eN=e=>{var t;let{tagUrl:i,regionUrl:n,townUrl:a,initialQuote:l}=e,{data:o,isLoading:s}=(0,eC.d)(["quote",i,n,a],()=>ek({tag:i,region:n,town:a}),{fallbackData:l,revalidateOnFocus:!1});return{quote:null!==(t=null!=o?o:l)&&void 0!==t?t:null,isLoading:s}},ew=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,T.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 ew(n)).find(e=>"SEO Текст"===e.type.name))||void 0===t?void 0:t.content[0])&&void 0!==i?i:null},eT=e=>{let{url:t,initialSeoText:i}=e,{data:n,isLoading:a}=(0,eC.d)(["seoText",t],()=>eD({url:t}),{fallbackData:i,revalidateOnFocus:!1});return{seoText:null!=n?n:null,isLoading:a}};var eL=i(97793),eI=i(69393),eA=i(53931),eS=i(36578);let eM=e=>{let{displayDuration:{years:t,months:i,days:n}}=e,a=[];return t&&a.push((0,eS.PY)(t,eI.Nu.YEAR)),i&&a.push((0,eS.PY)(i,eI.Nu.MONTH)),n&&a.push((0,eS.PY)(n,eI.Nu.DAY)),{...e,termLabel:a.join(" ")}};var eP=i(58580);let eB=(e,t)=>e?(0,T.t9)((0,D.jb)("/api/v3/product-tags/".concat(e),{limit:t}),null,{isMpScApi:!0}):{data:null,error:null},eE=(e,t)=>{if(!e)return{data:null,error:null};let i="/api/v1/deposit-tags/".concat(e,"/texts"),n=t?"".concat(i,"?region=").concat(t):i;return(0,T.t9)(n,null,{isMpScApi:!0})},ez=e=>null!=e?e:null,eO=e=>null!=e?e:"",eR=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}})),eU=e=>{var t,i,n,a,l,o,s;return(null===(t=e.facet)||void 0===t?void 0:t.filterUsage)?[]:[...null!==(l=null===(i=e.facet)||void 0===i?void 0:i.productsIds)&&void 0!==l?l:[],...null!==(o=null===(n=e.facet)||void 0===n?void 0:n.depositsIds)&&void 0!==o?o:[],...null!==(s=null===(a=e.facet)||void 0===a?void 0:a.legacyProductsIds)&&void 0!==s?s:[]]},e$=e=>{var t,i,n,a,l,o,s,r,c,d,u,m,p,v,_,h,f,g,x,b;return e?{id:eO(e.id),url:eO(e.url),title:eO(e.individualTitle),subtitle:eO(e.individualSubtitle),description:eO(e.individualDescription),individualDescription:eO(e.individualDescription),name:eO(e.internalName),tag_name:eO(e.tagName),text:eR(null!==(f=e.textList)&&void 0!==f?f:[]),calc_amount:ez(null===(t=e.facet)||void 0===t?void 0:t.depositAmount),calc_term:ez(null===(i=e.facet)||void 0===i?void 0:i.depositTerm),calc_currency_id:ez(null===(n=e.facet)||void 0===n?void 0:n.currency),filter:{term:{from:String(null!==(g=null===(a=e.facet)||void 0===a?void 0:a.depositTerm)&&void 0!==g?g:0),to:null},amount:ez(null===(l=e.facet)||void 0===l?void 0:l.depositAmount),currency:null!==(x=null===(o=e.facet)||void 0===o?void 0:o.currency)&&void 0!==x?x:"RUB",type:eO(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===(c=e.facet)||void 0===c?void 0:c.commercialPlacement)?1:0,refill:(null===(d=e.facet)||void 0===d?void 0:d.replenishment)?1:0,interest_capitalization:(null===(u=e.facet)||void 0===u?void 0:u.capitalization)?1:0,earlyTermination:!!(null===(m=e.facet)||void 0===m?void 0:m.earlyTermination),interestsMonthly:!!(null===(p=e.facet)||void 0===p?void 0:p.interestsMonthly),displayNonPlatform:!!(null===(v=e.facet)||void 0===v?void 0:v.displayNonPlatform),rate:ez(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!==(b=e.sortNumber)&&void 0!==b?b:0,deposits:eU(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:eO(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:ez(e.stats)}:null},eF=async e=>{let{tagUrl:t,depositTags:i,setTag:n,toggles:a,limit:l,shouldFetchTexts:o=!0,regionId:s}=e,r=await eW({tagUrl:t,depositTags:i,toggles:a,limit:l,shouldFetchTexts:o,regionId:s});if(n&&r){var c,d;n(r),null===(d=window)||void 0===d||null===(c=d.scrollTo)||void 0===c||c.call(d,0,0)}return r},eW=async e=>{var t,i,n,a,l,o,s,r;let{tagUrl:c,depositTags:d,limit:u,shouldFetchTexts:m,regionId:p}=e,v=null==d?void 0:null===(t=d.find(e=>{let{url:t}=e;return t===c}))||void 0===t?void 0:t.id,_=null==d?void 0:null===(i=d.find(e=>{let{name:t}=e;return"DEFAULT"===t}))||void 0===i?void 0:i.id,h=null!=v?v:_,f=await eB(h,u),g=m?await eE(h,p):void 0;return e$({...null==f?void 0:f.data,textList:[...null!==(o=null==g?void 0:null===(n=g.data)||void 0===n?void 0:n.textList)&&void 0!==o?o:[],...null!==(s=null==g?void 0:null===(a=g.data)||void 0===a?void 0:a.regionContent)&&void 0!==s?s:[],...null!==(r=null==g?void 0:null===(l=g.data)||void 0===l?void 0:l.townContent)&&void 0!==r?r:[]]})};var eQ=i(93053),eZ=i(50023),eq=i(58864),eG=i(47492),eY=i(43522),eV=i(65621);function eH(e){let{tagId:t,banksByBic:i,...n}=e,{data:a,isLoading:l}=(0,eC.d)(["non-platform-deposits-by-tag",t],()=>(0,eL.PT)(t),n);return(0,r.useMemo)(()=>({nonPlatformDeposits:(null!=a?a:[]).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:l}),[i,a,l])}async function eX(){let e=await (0,eL.vI)();if(!e.data)return[];let{boundaryValues:{totalPages:t},products:i}=e.data,n=Array.from({length:t-1},(e,t)=>(0,eL.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:[]})]}let eK=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,T.t9)("/api/v1/banks/filtered".concat(e?"?tagId=".concat(e):""),null,{isSeoApi:!0},t)};var eJ=i(81237),e0=i(92317),e1=i(36204),e2=i(57977),e6=i(68026);let e3={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=e3.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:a="",params:l,separator:o="?"}=e,s=(0,D.xn)(t,n,i?"reg_"+i:"",a===i?"":a);return l?s+o+l:s},e4=e=>{try{let t=e3.getItem("user_region"),i=e3.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(e3.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_")),a=n>-1?i[n]:null,l=n>-1?i[n+1]:null,o=a?t.find(e=>{let{url:t}=e;return t===a.slice(4)}):null,s=o&&l?o.towns.find(e=>{let{url:t}=e;return t===l}):null;return{region:o,town:s}},e9=e=>{let{pageName:t,regions:i,initialValues:n}=e,[a,l]=(0,r.useState)(!0),{asPath:o,replace:s}=(0,ei.P)(),c=(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]),d=(0,r.useMemo)(()=>c.find(e=>e.includes("teg_")),[c]),{region:u,town:m,handleSetRegion:p,handleSetTown:v}=(0,e6.k)(),_=(0,r.useCallback)(async function(){let{regionUrl:e,townUrl:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("teg_premium"===d&&e)return;let n=o.indexOf("?"),a=o.indexOf("#"),l=n<a||a<0?"?":"#",r=e7({baseUrl:"/"+t,regionUrl:e,tagUrl:d,townUrl:i,params:o.split(l)[1],separator:l});r!==o&&s(r)},[o,d,t]);return(0,r.useEffect)(()=>{l(!1)},[]),(0,r.useEffect)(()=>{if(!o.length)return;let e=e4(o);if(void 0!==e){e&&_(e);return}if(1===Number(e3.getItemRaw("all_russia_selected"))&&!(null==u?void 0:u.url.length)&&!(null==m?void 0:m.url.length)&&o.includes("reg_")){_();return}if(!(null==u?void 0:u.url.length)&&!(null==m?void 0:m.url.length)&&o.includes("reg_")){let{region:e,town:t}=e5(o,i);e&&p(e),t&&v(t);return}},[o,_,u,m,i,p,v]),(0,r.useMemo)(()=>({region:u||a&&(null==n?void 0:n.region)||null,town:m||a&&(null==n?void 0:n.town)||null,handleSetRegion:p,handleSetTown:v}),[u,m,p,v,a,n])};var e8=i(10102),te=i(76002),tt=i(94195),ti=i(90862),tn=i(72620),ta=i(84213),tl=i(56949),to=i(28819),ts=i(26523),tr=i(14761),tc=i(37162),td=i(32113),tu=i(85665),tm=i(72798),tp=i.n(tm);function tv(e){let{title:t,caption:i,icon:n,dataQa:o,onCloseClick:s}=e;return(0,a.jsxs)("div",{className:tp().notification,"data-qa":o,children:[n,(0,a.jsxs)("div",{className:tp().textBlock,children:[(0,a.jsx)(l.xv,{size:"18",weight:"medium",className:tp().title,children:t}),(0,a.jsx)(l.xv,{size:"14",weight:"regular",className:tp().caption,children:i})]}),(0,a.jsx)(Q.IconFdsCloseO,{size:"24",className:tp().closeIcon,onClick:s})]})}var t_=i(2470),th=i.n(t_);let tf="opening-notification-closed",tg="profit-notification-closed";function tx(e){let{disableProfitNotification:t,disableNotifications:i}=e,[n,l]=(0,r.useState)(()=>!e3.getItem(tf)),[o,s]=(0,r.useState)(()=>!t&&!e3.getItem(tg)),c=(0,r.useCallback)(()=>{l(!1),e3.setItem(tf,"true")},[]),d=(0,r.useCallback)(()=>{s(!1),e3.setItem(tg,"true")},[]);return(n||o)&&!i?(0,a.jsxs)("div",{className:th().notifications,children:[n&&(0,a.jsx)(tv,{title:"100% онлайн",caption:"Открытие без\xa0посещения банка",icon:(0,a.jsx)(Q.IconFdsHeartO,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-opening-notification",onCloseClick:c}),o&&(0,a.jsx)(tv,{title:"Доход по вкладам с одной ставкой может отличаться",caption:"Причина — разница в количестве дней вклада",icon:(0,a.jsx)(Q.IconFdsInfoCircleO,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-profit-notification",onCloseClick:d})]}):null}let tb=(e,t)=>(!!e.isNotAmount||!!e.isTermEmpty||!!e.computeData)&&(!t||!e.promo);var ty=i(72955),tj=i(41506),tk=i(48034),tC=i(26573),tN=i(70104),tw=i(82180),tD=i.n(tw),tT=i(33145),tL=i(13889),tI=i.n(tL);let tA=e=>{let{deposit:t,bank:i}=e,{amount:n,rate:l,bankName:o,bonusRate:s}=t,r=[{label:"Сумма",value:"".concat((0,k.Y4)(n,2)," ₽"),id:1},{label:"Ставка",value:"".concat((0,k.Y4)(l,2)).concat(s?" + "+(0,k.Y4)(s,2):"","%"),id:2}];return(0,a.jsxs)("div",{className:tI().cardItem,children:[(0,a.jsxs)("div",{className:tI().cardHeader,children:[(0,a.jsx)("div",{className:tI().logo,children:(null==i?void 0:i.logo_mob)&&(0,a.jsx)(tT.default,{width:17,height:17,alt:o,src:null==i?void 0:i.logo_mob})}),(0,a.jsx)("div",{className:tI().title,children:o})]}),(0,a.jsx)("div",{className:tI().cardContentWrapper,children:r.map(e=>(0,a.jsxs)("div",{className:tI().cardContent,children:[(0,a.jsx)("div",{className:tI().label,children:e.label}),(0,a.jsx)("div",{className:tI().value,children:e.value})]},e.id))})]})},tS=e=>{let{pageUrl:t,banks:i,comboDeposits:n,amount:l,term:o,isTermInDays:s}=e,{totalProfit:c,averageRate:d,deposits:u}=n,m=(0,r.useRef)(null),p="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:m,eventCategory:p,eventLabel:v,eventAction:"view_card_combo"});let _=[{label:"Средняя ставка",value:"".concat((0,tN.Y4)(d,2),"%"),id:1},{label:"Общий доход",value:"".concat((0,tN.Y4)(c,2)," ₽"),id:2}],h=(0,r.useCallback)(e=>{var t;return null!==(t=i.find(t=>t.bic===(0,tC.g)(e.bic)))&&void 0!==t?t:null},[i]),f=(0,r.useMemo)(()=>(0,D.jb)("/".concat(t,"/combo"),{amount:l,[s?"d_period":"term"]:o}),[l,s,t,o]);return(0,a.jsxs)(C.default,{ref:m,className:tD().card,href:f,children:[(0,a.jsx)("span",{className:tD().tip,children:"Комбо"}),(0,a.jsxs)("div",{className:tD().infoWrapper,children:[(0,a.jsx)("div",{className:tD().title,children:"Два вклада выгоднее"}),(0,a.jsx)("div",{className:tD().infoContent,children:_.map(e=>(0,a.jsxs)("div",{className:tD().info,children:[(0,a.jsx)("div",{className:tD().label,children:e.label}),(0,a.jsx)("div",{className:tD().value,children:e.value})]},e.id))})]}),(0,a.jsx)("div",{className:tD().comboCardWrapper,children:u.map((e,t)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tA,{bank:h(e),deposit:e},e.id),!t&&(0,a.jsx)("span",{className:tD().plus})]}))}),(0,a.jsx)(k.zx,{className:tD().button,size:"xs",stretch:!0,onClick:()=>{(0,Z.lQ)({eventLabel:v,eventCategory:"deposits_".concat(t),eventAction:"click_card_combo"})},children:"Подробнее"})]})};var tM=i(25765),tP=i(59829),tB=i(91304),tE=i.n(tB);let tz=(0,ty.c)(4,tE().skeleton),tO=e=>{var t;let{banks:i,anotherDeposits:n,platformDeposits:c,filter:d,isOldUser:u,depositLists:m,discount:p,className:v,bannerUrl:_,isHiddenPromo:h,existTag:f,isPlusFiveBonus:g,extraInfo:x,questions:b,pageUrl:y,comboDeposits:j,isSavingAccounts:C,showDepositGuide:N,adFoxConfig:w,showAdFoxBanner:D,isPlatformLoading:T,isNonPlatformLoading:L,showPlatformDeposits:I,newPlatformDeposits:A,disableNotifications:S,displayNonPlatform:M=!0,isTermInDays:B}=e,{amountData:E,term:z,handleToggleModal:O}=d,[R,U]=(0,r.useState)(10),[$,F]=(0,r.useState)(10),{depositData:W,openModal:Q,handleOpen:q,handleClose:G}=(0,tj.j)({banks:i,anotherDeposits:n,platformDeposits:c,newPlatformDeposits:A});(0,r.useEffect)(()=>{window.postMessage({key:"depositListLoaded",value:!0},P.m.BASE_URL)},[]);let Y=(0,tk.Z)(),V=(0,r.useCallback)(()=>{(0,k.ld)(tc.Mb,{offset:Y-48,position:"top"})},[Y]);(0,r.useEffect)(()=>{T&&U(10),L&&F(10)},[L,T]);let[H,X]=(0,r.useState)(m.platform.filter(e=>tb(e,h)));(0,r.useEffect)(()=>{X(m.platform.filter(e=>tb(e,h)))},[m,h]);let K="deposits_details_".concat(y,"_popup"),J=j&&j.deposits.length>1,ee=I?m.currentLength>0:m.another.length>0,et=m.another.length>0,ei=m.platform.length>0,en=f?I&&(ei||T):I,ea=f?!!M&&(et||L):!!M,el=!f&&(!ei&&!T||!I),eo=!f&&!et&&!L,es=m.platform.length>R&&!T,er=m.another.length>$&&!L,ec=!!d.amountData.value&&!!d.term.value,eu=(0,r.useMemo)(()=>(0,a.jsx)(to.t,{children:(0,a.jsx)(tP.Z,{id:tc.uz,qrBannerUrl:_,existTag:f,pageUrl:y,newMobileAd:!0})}),[_,f,y]),em=(0,r.useCallback)(()=>C?null:N?(0,a.jsx)(tu.Z,{pageUrl:y}):eu,[eu,C,y,N]),ep=(0,r.useCallback)(()=>u&&!C?null:eu,[eu,u,C]),ev=(0,r.useCallback)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ts.p,{onChangeParams:O,dataQa:"not-found"}),D&&ee&&(0,a.jsx)(tl.Z,{className:tE().adFox,params:ed.e$,config:w})]}),[w,O,ee,D]),e_=(0,r.useCallback)(()=>(0,a.jsxs)(l.W2,{children:[(0,a.jsx)(ts.p,{onChangeParams:O,dataQa:"not-found"}),em(),ep()]}),[O,ep,em]);return(0,a.jsxs)("section",{id:tc.TM,className:(0,s.Z)(tE().container,v),children:[(0,a.jsxs)(tr.X,{switchWhen:el&&eo,switchTo:e_,transitionTime:200,children:[en&&(0,a.jsxs)(l.W2,{children:[(0,a.jsx)(l.xv,{as:"h2",className:tE().title,children:C?"Накопительные счета онлайн на Финуслугах":"Вклады онлайн от Финуслуг"}),(0,a.jsxs)(tr.X,{switchWhen:el,switchTo:ev,transitionTime:200,children:[(0,a.jsx)(tx,{disableProfitNotification:C,disableNotifications:S}),(0,a.jsxs)(tr.X,{switchWhen:T,switchTo:tz,transitionTime:200,children:[J&&(0,a.jsx)(tS,{pageUrl:y,banks:i,comboDeposits:j,amount:+E.value,term:+z.value,isTermInDays:B}),H.slice(0,R).map((e,t)=>(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{"data-qa":"platform",children:P.m.FEATURE_TOGGLE_DEPOSIT_CARD_NEW_DESIGN_ENABLED?(0,a.jsx)(tM.B,{isPlatform:!0,onOpenDetailModal:q,className:(0,s.Z)(tE().listItem,e.promo&&"click_kartochka_promo_neavtorizovannaya_zona"||"click_kartochka_obychnaya_neavtorizovannaya_zona"),isOldUser:u,discount:p,data:e,isTermInDays:!0,baseUrl:"/".concat(y),isFullFilter:ec},e.url+e.id):(0,a.jsx)(td.B,{isPlatform:!0,onOpenDetailModal:q,className:(0,s.Z)(tE().listItem,e.promo&&"click_kartochka_promo_neavtorizovannaya_zona"||"click_kartochka_obychnaya_neavtorizovannaya_zona"),isOldUser:u,discount:p,data:e,wide:!0,isTermInDays:!0,baseUrl:"/".concat(y)},e.url+e.id)}),D&&t+1===Math.min(3,H.length)&&(0,a.jsx)(tl.Z,{className:tE().adFox,params:ed.QA,config:w})]},e.url)),(0,a.jsxs)(l.X2,{className:(0,s.Z)(tE().buttonsRow,tE().spaced),children:[es&&(0,a.jsx)(o.zx,{size:"s",onClick:()=>{(0,Z.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__offers"}),U(e=>e+10)},className:tE().button,variant:"secondary",dataQa:"show-more-platform-button",children:"Еще предложения от Финуслуг"}),et&&(0,a.jsx)(o.zx,{size:"s",variant:"white",onClick:V,dataQa:"show-nonplatform-deposits-button",children:"Предложения от банков"})]})]})]})]}),em(),ea&&(0,a.jsxs)(l.W2,{className:tE().anotherList,children:[(0,a.jsx)(l.xv,{as:"h2",id:tc.Mb,className:tE().title,children:"Предложения от банков"}),(0,a.jsx)(tr.X,{switchWhen:eo,switchTo:ev,children:(0,a.jsxs)(tr.X,{transitionTime:200,switchWhen:L,switchTo:tz,children:[m.another.slice(0,$).map((e,t)=>(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{"data-qa":"nonplatform",children:P.m.FEATURE_TOGGLE_DEPOSIT_CARD_NEW_DESIGN_ENABLED?(0,a.jsx)(tM.B,{isOldUser:!0,onOpenDetailModal:q,className:tE().listItem,data:e,baseUrl:"/".concat(y),isFullFilter:ec}):(0,a.jsx)(td.B,{onOpenDetailModal:q,className:tE().listItem,data:e,wide:!0,baseUrl:"/".concat(y)})}),D&&t+1===Math.min(3,m.another.length)&&(0,a.jsx)(tl.Z,{className:tE().adFox,params:ed.Eu,config:w})]},e.url)),er&&(0,a.jsx)(o.zx,{size:"s",onClick:()=>{(0,Z.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__lidgen"}),F(e=>e+10)},className:(0,s.Z)(tE().button,tE().spaced),variant:"secondary",dataQa:"show-more-nonplatform-button",children:"Еще предложения"})]})})]}),ep()]}),W&&(0,a.jsx)(ta.Z,{data:W,discount:p,isOldUser:u,isOpen:Q,onClose:G,extraInfo:x,isPlusFiveBonus:g,questions:b,depositSumm:E.value,showcaseBaseUrl:y,depositTerm:null!==(t=null==z?void 0:z.label)&&void 0!==t?t:"Любой",initialAmount:Number(E.value),initialTermInMonths:Number(z.value),eventCategory:K})]})};var tR=i(25813),tU=i.n(tR),t$=i(18674),tF=i(70087);let tW=null!==(n=(0,w.env)("NEXT_PUBLIC_BASE_URL"))&&void 0!==n?n:"*",tQ=e=>(0,a.jsx)(C.default,{...e}),tZ=e=>{var t,i,n,s,c;let{stores:d,depositTags:u,depositTag:m,currencies:p,discounts:v,bounds:h,bankTowns:f,depositRegion:b,depositRegionLinks:y,defaultRegion:C,defaultTown:w,depositsTitle:T,depositsDescription:B,depositsSubtitle:E,initialAnotherDeposits:z,initialPlatformDeposits:O,allExtraInfo:R,banks:U,initialTopBanks:$,questions:W,supportData:Q,journalData:q,isPlatformShowcase:G,initialCurrentDepositsLength:Y,initialAllDepositsLength:H,initialComboDeposits:X,initialQuote:K,crossLinkLabels:J,initialSeoText:ee,showOnlyNonPromo:en=!1}=e,eo=(0,o.s4)(),es=(0,k._m)("l"),{asPath:ed,push:eg}=(0,ei.P)(),ey=(0,N.usePathname)(),ej=(0,r.useMemo)(()=>en?eP.a.VKLADY_OLD:eP.a.VKLADY,[en]);(0,te.f)({eventCategory:"deposits_".concat(ed),eventLabel:""});let{regions:ek,town_duplicates:ew}=(0,e8.f)(!1,{region:C,town:w}),{town:eD,region:eI,handleSetTown:eS,handleSetRegion:eB}=e9({pageName:ej,regions:ek,initialValues:{region:C,town:w}}),{isOldUser:eE,customerId:ez,isLoading:eO}=(0,eY.O)({disabled:!eo}),eR=(0,e2.a)(M.tE),eU=(0,e1.K)({bannersTitle:[M.N9.DEPOSITS_ADVANTAGES,M.N9.VKLADY,M.N9.VKLADY_TAGS],queryParams:eR,stores:d}),[e$,eW]=(0,r.useState)(!eE),[eV,e6]=(0,r.useState)(m),[e3,e7]=(0,r.useState)(),{topBanks:e4}=function(e){let{tagId:t,initialTopBanks:i,...n}=null!=e?e:{},{data:a,isLoading:l}=(0,eC.d)(["topBanks",t],()=>eK(t),{...n});return(0,r.useMemo)(()=>{var e,t;return{isLoading:l,topBanks:a?null!==(t=null===(e=a.data)||void 0===e?void 0:e.banks)&&void 0!==t?t:[]:i}},[l,a,i])}({tagId:null!==(n=null==eV?void 0:eV.id)&&void 0!==n?n:"",initialTopBanks:$}),e5=(null==eV?void 0:eV.url)==="nakopitelnye",{terms:ta,isLoading:tl}=function(e){var t,i;let n=(0,r.useMemo)(()=>(0,eA.$1)(),[]),a=null!==(i=null==n?void 0:n["auth.gtm_customer_id"])&&void 0!==i?i:void 0,{data:l,isLoading:o}=(0,eC.d)(["deposit-terms",a],()=>(0,eL.rl)(a),e);return(0,r.useMemo)(()=>{var e,t,i;return{isLoading:o,terms:null!==(i=null==l?void 0:null===(t=l.data)||void 0===t?void 0:null===(e=t.terms)||void 0===e?void 0:e.map(eM))&&void 0!==i?i:[]}},[null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.terms,o])}({disabled:!P.m.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED||e5,ssrLoader:!0}),to=(0,r.useMemo)(()=>eu(ta),[ta]),{isLoading:ts,products:tr,productsWithIncreasedAmount:tc,productHint:td}=function(e){let{filters:t,showOnlyNonPromo:i=!1,...n}=e,{disabled:a=!1}=n,{isOldUser:l,isLoading:o}=(0,eY.O)(n),{data:s,isLoading:c}=(0,eC.d)(["deposits",t],()=>(0,eL.qB)({...t,isNewCustomer:!l}),{...n,disabled:a||o||(0,eq.mA)(t)}),{data:d}=null!=s?s:{},{products:u=[],productsWithIncreasedAmount:m=[],productHint:p}=null!=d?d:{};return(0,r.useMemo)(()=>{let e=u,t=m;return i&&(e=u.filter(e=>!e.promo),t=m.filter(e=>!e.promo)),{products:e,productsWithIncreasedAmount:t,productHint:p,isLoading:c||o}},[o,c,p,u,m,i])}({filters:e3,showOnlyNonPromo:en,disabled:e5||tl}),[tu,tm]=(0,r.useState)(!1),tp=tu?tc:tr,tv=(0,r.useMemo)(()=>U.reduce((e,t)=>({...e,[Number(t.bic)]:t}),{}),[U]),{nonPlatformDeposits:t_,isLoading:th}=eH({tagId:String(null!==(s=null==eV?void 0:eV.id)&&void 0!==s?s:""),banksByBic:tv,disabled:!(null==eV?void 0:eV.id)||!(null===(t=eV.filter)||void 0===t?void 0:t.displayNonPlatform)||G}),tf=(0,r.useMemo)(()=>{var e;return null===(e=u.find(e=>"all_offers"===e.url))||void 0===e?void 0:e.id},[u]),{nonPlatformDeposits:tg}=eH({tagId:String(null!=tf?tf:""),banksByBic:tv,disabled:!tf}),{oldSavingAccounts:tx,isLoading:tb}=function(e){let{data:t,isLoading:i}=(0,eC.d)("old-saving-accounts",()=>eX(),e);return(0,r.useMemo)(()=>({oldSavingAccounts:null!=t?t:[],isLoading:i}),[t,i])}({disabled:!e5}),ty=(0,r.useMemo)(()=>(0,t$.j)({path:ed,tag:eV}),[ed,eV]),tj=(0,r.useCallback)(e=>{eg((0,eG.C)("deposits",{id:"",name:"",url:e},eI,eD,void 0,ej)||"/vklady"),eF({tagUrl:e,depositTags:u,setTag:e6,regionId:null==eI?void 0:eI.region_id})},[eg,eI,eD,ej,u]),tk=function(e){let{banks:t,isNewCustomer:i,setFilters:n}=e,a=(0,r.useMemo)(()=>t.reduce((e,t)=>({...e,[String(t.id)]:t.bic}),{}),[t]);return(0,ef.y1)(e=>{let{amount:t,term:l,sortType:o,withCapitalization:s,withMonthlyPercent:r,withPreferentialTermination:c,withRefill:d,activeBanks:u,withPartialWithdrawal:m}=e;n({amount:t>0?t:void 0,sort:ex[o],term:eb(l),withCapitalization:s||void 0,withMonthlyPayments:r||void 0,withPreferentialTermination:c||void 0,withPartialWithdrawal:m||void 0,withRefill:d||void 0,isNewCustomer:i,providerBICs:null==u?void 0:u.map(e=>a[e])})},500)}({banks:U,isNewCustomer:!eE,setFilters:e7}),tC=P.m.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED&&!e5,tN=(0,tF.L)({tag:eV,currencies:p,banks:U,defaultValues:ty,isDiscount:e$,sortLoading:(0,eq.ur)(!e5,eO),termOptions:to,isTermInDays:tC}),tw=tN.shouldFilterByAllOffers&&(null==tg?void 0:tg.length)?tg:t_,tD=(0,r.useRef)(void 0);(0,r.useEffect)(()=>{if(e5||!tN.clientSortType)return;let e=er(tN);e&&!ec(e,tD.current)&&(tD.current=e,tk(e),tm(!1))},[tN,tk,e5]);let tT=(0,r.useCallback)(e=>{Number(tN.amountData.value)!==e&&(tN.handleAmountChange(e),tN.amountData.handleChange(e),tm(!0),tD.current&&(tD.current={...tD.current,amount:e}))},[tN]),tL=(0,eJ.I)(),[tI,tA]=(0,r.useState)(b),[tS,tM]=(0,r.useState)(y);(0,r.useEffect)(()=>{L({region:eI,town:eD,tag:eV}).then(e=>{e.data&&!e.data.message&&tA(e.data)}),I({region:eI}).then(e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.region_links)&&tM(e.data.region_links)}),eV&&eF({tagUrl:null==eV?void 0:eV.url,depositTags:u,setTag:e6,regionId:null==eI?void 0:eI.region_id})},[null==eI?void 0:eI.url,null==eI?void 0:eI.region_id,null==eD?void 0:eD.url,null==eV?void 0:eV.url]);let tP=(0,r.useCallback)((e,t)=>{k.A7.setItem("user_region",e?JSON.stringify(e):""),k.A7.setItem("user_town",t?JSON.stringify(t):""),eB(e),eS(t||null)},[eB,eS]),tB=function(e){var t;let{filter:i,isDiscount:n,filters:a,withSavingAccounts:l,...o}=e,s=e_(!!l,i.amountData.value,null==a?void 0:a.amount),c=(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?ep.mr.Desc:ep.mr.Asc,sortType:i.sortType,isDiscount:n,term:eh(!!l,i.term.value,null==a?void 0:null===(e=a.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==a?void 0:null===(t=a.term)||void 0===t?void 0:t.value,l]);return(0,r.useMemo)(()=>(0,ev.O)(c),[c])}({initialAnotherDeposits:z,initialPlatformDeposits:O,platformDeposits:tx,anotherDeposits:t_,newPlatformDeposits:tp,bounds:h,isPlusFiveBonus:!eE,isOldUser:eE,filter:tN,filters:e3,banks:U,discounts:v,bankTowns:f,town:eD,region:eI,allExtraInfo:R,getOnlyInitialData:!eo,initialAllDepositsLength:H,initialCurrentDepositsLength:Y,calculateFilterAbilities:e5,withSavingAccounts:e5,isDiscount:e$,allOffers:tg});(0,r.useEffect)(()=>{eW(e5?tB.platform.some(e=>e.hasDiscount):!eE)},[tB,e5,eE]);let{quote:tE}=eN({tagUrl:null==eV?void 0:eV.url,regionUrl:null==eI?void 0:eI.url,townUrl:null==eD?void 0:eD.url,initialQuote:K}),{seoText:tz}=eT({url:null!=ey?ey:"",initialSeoText:ee}),tR=1===tN.currency.id||e5,tZ=tR?tB.currentLength:tB.another.length,tq=(0,r.useMemo)(()=>tI?(0,tt.Y)({data:tB.another,platformDepositLists:tB.platform,tags:u,regionLinks:tS,dataRegion:tI,regions:ek,banks:U,topBanks:e4,tag:eV,region:eI,town:eD,townDuplicates:ew,setTag:tj,setRegion:tP,currencies:p,showOnlyNonPromo:en,basePath:ej}):[],[tI,tB.another,tB.platform,u,tS,ek,U,e4,eV,eI,eD,ew,tj,tP,p,en,ej]),tG=null==v?void 0:v.find(e=>"five_procent"===e.unique_key),tY=(0,eZ.x)({tag:eV,region:eI,town:eD,depositLists:tB,depositsCount:tZ}),{subtitle:tV,h1:tH,inRegion:tX}=tY,tK=(null==tB?void 0:tB.notInitialDeposits)?tV:E,tJ=(0,r.useMemo)(()=>(0,et.L)(eV),[eV]),t0=(0,r.useMemo)(()=>{if(!(null==eI?void 0:eI.url))return"";let e=76!==eI.id&&77!==eI.id&&(null==eD?void 0:eD.url)?null==eD?void 0:eD.url:"";return(0,D.xn)("/reg_".concat(eI.url),e)},[null==eI?void 0:eI.url,null==eI?void 0:eI.id,null==eD?void 0:eD.url]),t1=(0,r.useMemo)(()=>(null==J?void 0:J.content)?{content:null==J?void 0:J.content.map(e=>({...e,tags:e.tags.map(e=>({...e,url:"".concat(e.url).concat(t0)}))}))}:{content:[]},[J,t0]),t2=(0,r.useMemo)(()=>el({isDefault:tJ,tag:eV,h1:tH,inRegion:tX,regionUrl:t0,basePath:"/".concat(ej)}),[tX,t0,tJ,eV,tH,ej]),t6=(0,eQ.W)({tagName:null==eV?void 0:eV.faq_title,inRegion:tX}),{fitsForMonthlyPercentFilter:t3,fitsForPreferentialTerminationFilter:t7,fitsForCapitalization:t4,fitsForRefill:t5}=tB;(0,e0.z)({disabled:!0,showMonthlyPercent:t3,showPreferentialTermination:t7,showCapitalization:t4,showRefill:t5,filter:tN});let{comboDeposits:t9}=F({amount:+tN.amountData.value,term:+tN.term.value,initialComboDeposits:X,tag:eV,customerId:ez,isTermInDays:tC}),t8=(0,eq.ur)(!eE,!e5),ie=!!tL,it=em({isDepositsLoading:tb,isCustomerLoading:eO,isPlatformDepositsLoading:ts,hasFilters:!!e3,isClient:eo,platformLoadingDisabled:!e5});return(0,a.jsxs)("main",{className:tU().page,children:[(0,a.jsx)(ea,{region:eI,town:eD,tag:eV,meta:tY,depositLists:tB,regionUrl:t0,currency:tN.currency.value,isOldUser:eE,initialDescription:B,initialTitle:T,quote:tE}),(0,a.jsx)(l.W2,{className:tU().mainContainer,fluid:!0,children:(0,a.jsx)(l.W2,{children:(0,a.jsx)(tn.v,{tag:eV,setTag:tj,h1:tH,region:eI,town:eD,subtitle:null!=tK?tK:"",length:eo?tZ:Y,data:tN,terms:to,isTermsLoading:tl,withAdditional:!tB.boundsIsEmpty,isMobile:!es,partnerId:null,isDiscount:e$,breadcrumbsPath:t2,showDepositGuide:t8,isSavingAccounts:e5,showAdFoxBanner:ie,isTermInDays:tC})})}),(0,a.jsx)(V,{visible:(0,eq.ur)(td,!ts),amount:null==td?void 0:td.minimumAmount,rate:null==td?void 0:td.fullRate,bankName:null==td?void 0:td.bankDisplayName,eventCategory:"deposits_".concat(ed),onTipsApply:tT}),(0,a.jsx)(tO,{filter:tN,isDiscount:e$,isOldUser:eE,banks:U,platformDeposits:tx,anotherDeposits:tw,depositLists:tB,adFoxConfig:tL,discount:tG,isMobile:!es,bannerUrl:tJ?eU[M.N9.VKLADY]:null!==(c=eU[M.N9.VKLADY_TAGS])&&void 0!==c?c:eU[M.N9.VKLADY],isHiddenPromo:eE,existTag:!tJ,town:eD,region:eI,extraInfo:R,isPlusFiveBonus:!eE,questions:W,pageUrl:ej,currentDepositsLength:eo?tB.currentLength:Y,allDepositsLength:eo?tB.allLength:H,comboDeposits:t9,isSavingAccounts:e5,showDepositGuide:t8,showAdFoxBanner:ie,isPlatformLoading:it,isNonPlatformLoading:eo&&th,showPlatformDeposits:tR,newPlatformDeposits:null!=tp?tp:[],disableNotifications:(0,eq.oA)(td),displayNonPlatform:null==eV?void 0:null===(i=eV.filter)||void 0===i?void 0:i.displayNonPlatform,isTermInDays:tC}),tE&&(0,a.jsx)(g,{className:tU().quote,quote:tE}),(0,a.jsx)(A.V,{journalData:q,className:tU().grayBackground}),(0,a.jsx)(S.y,{supportData:Q,className:tU().grayBackground}),tz&&(0,a.jsx)(j,{content:null==tz?void 0:tz.content,dataLayerPush:Z.lQ,sectionTitle:"",blockTitle:null==tz?void 0:tz.title}),t1&&(0,a.jsx)(_,{labelsData:t1,sectionTitle:"Вклады, которые могут вас заинтересовать",href:"/".concat(ej),blockTitle:"",dataLayerPush:Z.lQ}),(0,a.jsx)(x.C,{sectionTitle:t6,Link:tQ,dataLayerPush:Z.lQ,questions:tq,eventCategory:"deposits_support_block",href:(0,D.xn)(tW,"help"),checkAllText:es?"Читать все вопросы про вклады":"Все вопросы про вклады",tagTitle:"h3"}),(0,a.jsx)(ti.s,{data:tN,isDiscount:e$,isMobile:!es,terms:to,depositsLength:tZ,withAdditional:!tB.boundsIsEmpty,partnerId:null,showMonthlyPercent:t3,showPreferentialTermination:t7,showCapitalization:t4,showRefill:t5,withCapitalizationTittle:"Капитализация",withRefillTitle:"Пополнение"})]})}},25765:function(e,t,i){"use strict";i.d(t,{B:function(){return W}});var n=i(57437),a=i(80684),l=i(35563),o=i(75461),s=i(2265),r=i(49090),c=i(54365),d=i(93810),u=i.n(d),m=i(33145),p=i(27648),v=i(92388),_=i(69393),h=i(12606),f=i(54328),g=i(29827),x=i.n(g);function b(e){let{children:t,...i}=e,a=(0,s.useCallback)(e=>{e.stopPropagation(),e.preventDefault()},[]);return(0,n.jsx)("div",{onClick:a,...i,children:t})}function y(e){let{bic:t,bankName:i,name:a,className:o}=e;return(0,n.jsxs)("div",{className:(0,c.Z)(x().header,o),children:[t?(0,n.jsx)(m.default,{unoptimized:!0,src:(0,f.B)(t),alt:null!=i?i:"Логотип банка",className:x().logo,width:30,height:30,"data-qa":"bank-logo"}):(0,n.jsx)("div",{className:x().logoPlaceholder}),(0,n.jsxs)("div",{className:x().nameWrapper,children:[(0,n.jsx)(l.xv,{className:(0,c.Z)(x().text,x().bankName),weight:"medium",dataQa:"bank-name",children:i}),(0,n.jsx)(v.$,{className:(0,c.Z)(x().text,x().name),dataQa:"deposit-name",children:a})]})]})}function j(e){let{rate:t,bonusRate:i,rateTip:s,isFloatingRate:d}=e,u=i?"Ставка\xa0+\xa0бонус\xa0Финуслуг":"Ставка";return(0,n.jsxs)(b,{className:x().columnValue,children:[t&&(0,n.jsxs)(l.xv,{size:"16",weight:"medium",dataQa:"rate",children:[d?"до ":"",(0,r.og)(t.toFixed(2)),i?"\xa0+\xa0".concat((0,r.og)(i.toFixed(2))):""]}),s?(0,n.jsx)(o.kW,{className:x().hint,text:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:s}}),dataQa:"rate-hint",children:(0,n.jsxs)(v.$,{className:(0,c.Z)(x().aligned,x().caption),dataQa:"rate-caption",children:[u,(0,n.jsx)(a.IconFdsQuestionCircleO,{className:"ml-1"})]})}):(0,n.jsx)(v.$,{className:(0,c.Z)(x().aligned,x().caption),dataQa:"rate-caption",children:u})]})}function k(e){let{profit:t,profitTerm:i,bonusProfit:o,minAmount:s,fixedAmount:d}=e;if(!t&&!s&&!d)return null;if(t){let e=i?"за ".concat(i.value,"\xa0").concat((0,l._6)(i.value,..._.mB[i.type])):"";return(0,n.jsxs)(b,{className:x().columnValue,children:[(0,n.jsxs)(l.xv,{size:"16",weight:"medium",className:(0,c.Z)(x().aligned,x().green),dataQa:"amount",children:[(0,n.jsx)(a.IconFdsArrowUpBigO,{}),"\xa0",(0,r.lb)(t+(null!=o?o:0))]}),(0,n.jsxs)(v.$,{className:x().caption,dataQa:"amount-caption",children:["Доход ",o?"с бонусом":""," ",e]})]})}let u=d?(0,r.lb)(d):"от ".concat((0,r.lb)(null!=s?s:0));return(0,n.jsxs)(b,{className:x().columnValue,children:[(0,n.jsx)(l.xv,{size:"16",weight:"medium",dataQa:"amount",children:u}),(0,n.jsx)(v.$,{className:x().caption,dataQa:"amount-caption",children:"Сумма"})]})}function C(e){let{minTerm:t,className:i,isMobile:a}=e;if(!t)return null;let{termString:o}=(0,h.K)(t,{form:"genitive",prefix:"от"});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(b,{className:(0,c.Z)(x().termValue,x().margined,i),children:[(0,n.jsx)(v.$,{className:x().termCaption,dataQa:"term-caption",children:"Срок"}),(0,n.jsx)(l.xv,{weight:"medium",className:x().termTitle,dataQa:"term",children:o})]}),a&&(0,n.jsx)(l.iz,{className:(0,c.Z)(x().divider,i)})]})}function N(e){let{onButtonClick:t,onInfoClick:i,className:l}=e;return(0,n.jsxs)("div",{className:(0,c.Z)(x().buttons,l),children:[(0,n.jsx)(o.zx,{stretch:!0,size:"s",onClick:t,dataQa:"detail-button",children:"Подробнее"}),(0,n.jsx)(b,{children:(0,n.jsx)(o.zx,{size:"s",appearance:"outline",shape:"icon",iconLeft:(0,n.jsx)(a.IconFdsInfoCircleO,{}),onClick:i,dataQa:"info-button"})})]})}var w=(0,s.memo)(function(e){let{tags:t,href:i,className:a,dataQa:s,onCardClick:r}=e,d=[!!e.profit||!!e.minAmount||!!e.fixedAmount,!!e.rate,!!e.minTerm].filter(Boolean).length;return(0,n.jsx)(p.default,{href:null!=i?i:"",style:{textDecoration:"none",color:"inherit"},"data-qa":s,children:(0,n.jsxs)(l.Zb,{className:(0,c.Z)(x().depositCard,a),onClick:r,children:[(0,n.jsx)(y,{...e,className:x().mobile}),(0,n.jsxs)("div",{className:x().content,children:[(0,n.jsxs)("div",{className:(0,c.Z)(x().row,2===d&&x()["cols-2"]),children:[(0,n.jsx)(y,{...e,className:x().desktop}),(0,n.jsx)(j,{...e}),(0,n.jsx)(k,{...e}),(0,n.jsx)(C,{...e,className:x().tablet}),(0,n.jsx)(N,{...e,className:x().desktop})]}),(0,n.jsx)(l.iz,{className:x().divider}),(0,n.jsx)(C,{...e,className:x()["mobile-tablet"],isMobile:!0})]}),t&&(0,n.jsx)("div",{className:x().tags,children:t.map(e=>{let t="left"===e.position?{iconLeft:e.icon}:{iconRight:e.icon},i=0===e.text.trim().length;return(0,n.jsx)(o.Vp,{className:(0,c.Z)(x().tag,e.backGround&&x()[e.backGround]),label:e.text,onIconRightClick:i?u():void 0,rounded:!0,dataQa:"tag",...t},e.text)})}),(0,n.jsx)(N,{...e,className:x().mobile})]})})}),D=i(10330),T=i(6164),L=i(33600);let I=(e,t,i)=>{if(t){if(i){var n;return{profit:null===(n=e.computeData)||void 0===n?void 0:n.profit,minAmount:e.rateAmount,fixedAmount:0}}return{profit:0,minAmount:0,fixedAmount:e.rateAmount}}return e.isNotAmount?{profit:0,minAmount:e.rateAmount,fixedAmount:0}:{profit:0,minAmount:0,fixedAmount:0}},A=(e,t,i)=>{var n,a;let l={value:i?0:null!==(a=null===(n=e.computeData)||void 0===n?void 0:n.termDays)&&void 0!==a?a:0,type:i?T.e.TERMLESS:T.e.DAY};return t?{profitTerm:l,minTerm:null}:e.isTermEmpty?{profitTerm:null,minTerm:l}:{profitTerm:null,minTerm:null}},S=(e,t,i)=>{if(t){var n,a,l;return(null===(n=e.computeData)||void 0===n?void 0:n.profit)&&e.computeData.bonus?"• доход от банка: ".concat((0,r.lb)(e.computeData.profit),"\n• бонус от Финуслуг: ").concat((0,r.lb)(e.computeData.bonus),"\n\n").concat(null!==(l=null==i?void 0:i.terms)&&void 0!==l?l:""):null!==(a=null==i?void 0:i.terms)&&void 0!==a?a:""}return e.isCapitalization&&e.type!==L.kv.SavingAccount?"Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка.\nДополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее.":null};var M=i(13425),P=i(75109),B=i(58864),E=i(37514),z=i(99193),O=i(37500),R=i.n(O);let U=(e,t,i)=>{(0,E.L)(e,t,"click_name_deposit__".concat(i))},$=(e,t,i)=>{(0,E.L)(e,t,i)},F=e=>{var t,i,r,c;let{baseUrl:d="/vklady",className:u,data:m,events:p={},isPlatform:v=!1,isTermInDays:_=!1,params:h,paramsType:f="hash",isOldUser:g,discount:x,isFullFilter:b,onOpenDetailModal:y}=e,j=v?"offers":"lidgen",{clickItemAction:k="click__card__".concat(j),clickMoreButtonAction:C,eventCategory:N="deposits_vklady",showItemAction:T="show__card__".concat(j)}=p,O=(0,s.useRef)(null);(0,z.Z)({eventAction:T,eventCategory:N,eventLabel:String(m.id),itemRef:O});let F=(0,s.useMemo)(()=>{var e;return(0,D.Z)({amount:m.rateAmount,baseUrl:d,depositUrl:m.url,isBound:m.isBound,isTermInDays:_,params:h,paramsType:f,term:(0,B.Am)(_,null===(e=m.computeData)||void 0===e?void 0:e.termDays,m.term)})},[d,null===(t=m.computeData)||void 0===t?void 0:t.termDays,m.isBound,m.rateAmount,m.term,m.url,_,h,f]),W=(0,s.useMemo)(()=>(0,P.D)(g,m.finuslugiBonusPromotion,x),[g,m.finuslugiBonusPromotion,x]),Q=(0,s.useCallback)(()=>{$(m.id,N,k)},[k,m.id,N]),Z=(0,s.useCallback)(()=>(U(m.id,N,j),null==y?void 0:y({isPlatform:v,href:F,depositItem:m})),[m,N,F,v,y,j]),q=(0,s.useCallback)(()=>(0,E.L)(m.id,N,null!=C?C:""),[C,m.id,N]),G=(0,s.useMemo)(()=>(0,M.Z)({data:m,isPlatform:v,renderTip:e=>(0,n.jsx)(o.u,{text:e.description,style:{whiteSpace:"pre-wrap"},dataQa:"tag-tip",children:(0,n.jsxs)(l.xv,{className:R().detail,children:[e.title,(0,n.jsx)(a.IconFdsQuestionCircleO,{size:16})]})}),newDesign:!0}),[m,v]),Y=!!m.asSavingAccount||m.type===L.kv.SavingAccount,V=(0,s.useMemo)(()=>I(m,b,v),[m,b,v]),H=(0,s.useMemo)(()=>A(m,b,Y),[m,b,Y]),X=(0,s.useMemo)(()=>S(m,v,W),[m,v,W]);return(0,n.jsx)("div",{"data-testid":"deposits-item",className:u,ref:O,children:(0,n.jsx)(w,{bankName:m.bankName,bic:m.bic,bonusProfit:null===(i=m.computeData)||void 0===i?void 0:i.bonus,bonusRate:null===(r=m.computeData)||void 0===r?void 0:r.bonusRate,className:u,dataQa:"deposits-item",href:F,id:m.id,isFloatingRate:"MAX"===m.rateType||Y,name:m.name,rate:null===(c=m.computeData)||void 0===c?void 0:c.effectiveRate,rateTip:X,tags:G,...V,...H,onButtonClick:q,onInfoClick:Z,onCardClick:Q})})};F.displayName="DepositsItem";var W=(0,s.memo)(F)},57044:function(e,t,i){"use strict";i.d(t,{M:function(){return r}});var n=i(57437),a=i(2265),l=i(90498),o=i.n(l);function s(e){return o()(e,{allowedTags:[],allowedAttributes:{}})}let r=e=>{let{textList:t,regionId:i,townId:l}=e,o=(0,a.useMemo)(()=>{if(!t)return"";let e=Array.isArray(t)&&t.length>0&&"content"in t[0]?t.filter(e=>{var t;let n=null!==(t=e.regions)&&void 0!==t?t:[];return i&&l?n.some(e=>{var t,n;return 0===e.regionId||e.regionId===i&&((null===(t=e.cities)||void 0===t?void 0:t.length)===0||(null===(n=e.cities)||void 0===n?void 0:n.some(e=>e===l)))}):i&&!l?n.some(e=>e.regionId===i):!i&&!l&&0===n.length}):t;if(!e.length)return"";let n=e.filter(e=>!!e.displayInMicrodata).map(e=>{if("content"in e){var t;return{"@type":"Question",name:e.title,acceptedAnswer:{"@type":"Answer",text:Array.isArray(t=e.content)?t.map(e=>{var t;return(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.html)||""}).map(s).filter(Boolean).join(" "):""}}}return"question"in e&&"answer"in e?{"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:s(e.answer)}}:null}).filter(Boolean);return n.length?JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:n}):""},[t,i,l]);return o?(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:o}}):null}},18674:function(e,t,i){"use strict";i.d(t,{j:function(){return o}});var n=i(76391),a=i(96742),l=i(91220);let o=e=>{var t,i,o,s;let{tag:r,path:c}=e,d=(0,l.p)(c),u=String(d.amount),m=String(d.period),p=String(d.term),v=d.currency?String(d.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,a.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),m&&!isNaN(+m)&&(_.term=+m),p&&!isNaN(+p)&&(_.term=+p),v&&(0,a.z)(v).code&&(_.currencyCode=(0,a.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,a;i.d(t,{z:function(){return a}}),(n||(n={})).HTML="html",(a||(a={})).nakop="nakopitelnye"},81237:function(e,t,i){"use strict";i.d(t,{I:function(){return a}});var n=i(2265);let a=()=>{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),a=i.n(n),l=i(2265);function o(e){let{filter:t,showCapitalization:i,showMonthlyPercent:n,showPreferentialTermination:o,showRefill:s,disabled:r=!1}=e,{withCapitalization:c,withMonthlyPercent:d,withPreferentialTermination:u,withRefill:m,handleWithCapitalizationChange:p,handleWithMonthlyPercentChange:v,handleWithPreferentialTerminationChange:_,handleWithRefillChange:h}=t,f=(0,l.useMemo)(()=>({withCapitalization:c,withMonthlyPercent:d,withPreferentialTermination:u,withRefill:m}),[c,d,u,m]),g=(0,l.useRef)(f);(0,l.useEffect)(()=>{if(!r){if(!a()(g.current,f)){g.current=f;return}u&&!o&&_(!1),d&&!n&&v(!1),c&&!i&&p(!1),m&&!s&&h(!1)}},[r,f,p,v,_,h,i,n,o,s,c,d,u,m])}},10102:function(e,t,i){"use strict";i.d(t,{f:function(){return o}});var n=i(2265),a=i(90716);let l=e=>{let{isShort:t}=e;return(0,a.t9)("/money_data/Root.json".concat(t?"?short=1":""))},o=(e,t)=>{let[i,a]=(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 l({isShort:!0});e.data&&a(e.data)})()},[e]),i}},76002:function(e,t,i){"use strict";i.d(t,{f:function(){return l}});var n=i(2265),a=i(72151);function l(e){let{eventCategory:t,eventLabel:i}=e;(0,n.useEffect)(()=>{(0,a.lQ)({event:"data-event",eventAction:"view",eventCategory:t,eventLabel:i})},[])}},29827:function(e){e.exports={depositCard:"DepositCard_depositCard__BSk6a",header:"DepositCard_header__M8Gz5",nameWrapper:"DepositCard_nameWrapper__nrzkX",logo:"DepositCard_logo__u8YGh",logoPlaceholder:"DepositCard_logoPlaceholder__cs5Kl",text:"DepositCard_text__C4cvk",bankName:"DepositCard_bankName__Trjsx",name:"DepositCard_name__Yy7_2",content:"DepositCard_content__61z5G",row:"DepositCard_row__e7_Oe","cols-2":"DepositCard_cols-2__oE7wD",divider:"DepositCard_divider__UPE0W",columnValue:"DepositCard_columnValue__WqSFy",termValue:"DepositCard_termValue__1jktz",margined:"DepositCard_margined__ONtRE",termTitle:"DepositCard_termTitle__baOgb",termCaption:"DepositCard_termCaption__6YAU1",caption:"DepositCard_caption__xsq1B",buttons:"DepositCard_buttons__uOQdR",tags:"DepositCard_tags__k2ffG",tag:"DepositCard_tag__kGJab",red:"DepositCard_red__pqGB1",green:"DepositCard_green__C_yJ5",orange:"DepositCard_orange__6bvpI",purple:"DepositCard_purple__HYuGL",blue:"DepositCard_blue__gS0cj",hint:"DepositCard_hint__medrL",desktop:"DepositCard_desktop__u2ZgC",tablet:"DepositCard_tablet__BQYl1","mobile-tablet":"DepositCard_mobile-tablet__1_Zxz",mobile:"DepositCard_mobile__eIDxe",aligned:"DepositCard_aligned__vBy0J"}},73727:function(e){e.exports={caption:"TextCaption_caption__TOL53"}},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"}},37500:function(e){e.exports={detailIcon:"DepositsItem_detailIcon__PzEOA",detail:"DepositsItem_detail__eDvqi"}},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"}},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"}},59226:function(e,t,i){"use strict";i.d(t,{C:function(){return x}});var n=i(57437),a=i(2265),l=i(35563),o=i(75461),s=i(54365),r=i(31620),c=i(10855),d=i(52074);let u=(0,d.g)("faq-block","sc"),m=Object.freeze({faqBlock:u,titleWrapper:`${u}__title-wrapper`,title:`${u}__title`,accordionWrapper:`${u}__accordion-wrapper`,accordionItems:`${u}__accordion-items`,accordionItemGray:`${u}__accordion-item--gray`,accordionItemContent:`${u}__accordion-item-content`,accordionActiveItemContent:`${u}__accordion-item-content--active`,states:{primary:`${u}--primary`,secondary:`${u}--secondary`,gray:`${u}--gray`}}),p=e=>{e.data.forEach((t,i)=>{"header"===t.type&&(e.headerBlocksCount++,3===e.headerBlocksCount&&("banner"===e.data[i-1].type&&(e.banner=e.data.splice(i-1,1)),"banner"===e.data[i+1].type&&(e.banner=e.data.splice(i+1,1))),e.banner&&4===e.headerBlocksCount&&e.data.splice(i,0,e.banner[0]))})},v=(0,d.g)("faq-content-block","sc"),_=Object.freeze({contentBlocks:`${v}__content-blocks`,blockLink:`${v}__block-link`,keynoteWrapper:`${v}__keynote-wrapper`,keynote:`${v}__keynote`,annotation:`${v}__annotation`,contentTableWrapper:`${v}__content-table-wrapper`}),h=({className:e,data:t})=>{if(!Array.isArray(t))return null;let i=(()=>{let e=[],i=1,a={data:t,headerBlocksCount:0,banner:[]};p(a),p(a);let l={},o=e=>{var t,i,n,a;let o=(null==(t=e.data)?void 0:t.text)??(null==(i=e.data)?void 0:i.url)??(null==(n=e.data)?void 0:n.html)??(null!=(a=e.data)&&a.year?String(e.data.year):"");return l[e.type]=(l[e.type]??0)+1,`${e.type}-${String(o).slice(0,80)}-${l[e.type]}`};return t.forEach(t=>{let a=o(t);switch(t.type){case"header":e.push((0,n.jsx)("h2",{id:`content_header_${i}`,role:"header",children:t.data.text||""},a)),i++;break;case"sub_header":e.push((0,n.jsx)("h3",{role:"sub-header",children:t.data.text||""},a));break;case"paragraph":e.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"paragraph"},a));break;case"link":e.push((0,n.jsx)("div",{className:_.blockLink,children:(0,n.jsx)("a",{target:"_blank",href:t.data.url||"",role:"link",rel:"noreferrer",children:t.data.text||""})},a));break;case"dossier":e.push((0,n.jsxs)("div",{children:[(0,n.jsx)("span",{role:"dossier-year",children:t.data.year||""}),(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"dossier-text"})]},a));break;case"html":e.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.html||""},role:"html"},a));break;case"annotation":e.push((0,n.jsx)("div",{className:_.annotation,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"annotation"},a));break;case"company-annotation":e.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"company-annotation"},a));break;case"keynote":e.push((0,n.jsx)("div",{className:_.keynoteWrapper,children:(0,n.jsx)("p",{className:_.keynote,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"keynote"})},a));break;case"image":e.push((0,n.jsx)("img",{src:t.data.url||"",alt:"image"},a))}}),e})();return(0,n.jsx)("div",{className:(0,s.Z)(_.contentBlocks,e),role:"blocks",children:i})},f=({question:e,eventCategory:t,dataLayerPush:i,...a})=>(0,n.jsx)(o.Qd,{...a,title:e.question,children:(0,n.jsx)("div",{className:(0,s.Z)(m.accordionItemContent,{[m.accordionActiveItemContent]:a.isActive}),onClick:e=>{e.target instanceof HTMLAnchorElement&&i({event:"data-event",eventCategory:t,eventAction:"click_link",eventLabel:e.target.href})},children:"string"==typeof e.answer?(0,n.jsx)(h,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})}),g=e=>{setTimeout(()=>{let{top:t}=e.getBoundingClientRect();t<80&&e.scrollIntoView({behavior:"smooth",block:"start"})},300)},x=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:i=[],href:d,checkAllText:u,Link:p,className:v,eventCategory:_="cb-faq",multiple:h=!1,variant:x="secondary",dataLayerPush:b,tagTitle:y})=>{let j=h?i.map(e=>e.question):[],[k,C]=(0,a.useState)(j),N="gray"===x;return(0,n.jsx)("section",{className:(0,s.Z)(m.faqBlock,m.states[x],v),children:(0,n.jsxs)(l.W2,{children:[!t&&(0,n.jsx)("div",{className:m.titleWrapper,children:(0,n.jsx)(l.X6,{as:"h2",type:"display",className:m.title,children:e})}),(0,n.jsxs)("div",{className:m.accordionWrapper,children:[t&&(0,n.jsx)(l.X6,{as:"h3",type:"h1",style:{paddingBottom:"12px"},className:(0,s.Z)(m.title,`${m.title}--inner`),children:t}),(0,n.jsx)("div",{className:m.accordionItems,children:(0,n.jsx)(o.UQ,{activeIndex:k,variant:N?"primary":"secondary",withoutOutline:N,onTabToggle:e=>{let t=(null==e?void 0:e.length)>(null==k?void 0:k.length),i=e.filter(e=>!k.includes(e))[0]||k.filter(t=>!e.includes(t))[0];b({event:"data-event",eventCategory:_,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,r.t)(String(i))}),C(e);let n=`[data-accordion-index="${i}"]`,a=document.querySelector(n);a&&g(a)},multiple:h,children:i.map(e=>{let t=`faq-${e.question}`;return(0,n.jsx)(f,{id:t,question:e,dataLayerPush:b,eventCategory:_,className:N?m.accordionItemGray:void 0,tagTitle:y},t)})})}),d&&u&&(0,n.jsx)(c.C,{href:d,event:{event:"data-event",eventCategory:_,eventAction:"сlick_link_answer-link",eventLabel:d},dataLayerPush:b,...null!=p?{Link:p}:{},iconGrayBackground:!0,children:u||"Читать все вопросы"})]})]})})}}},function(e){e.O(0,[7011,6748,7393,4003,97,1302,2877,8945,1448,1576,1573,7024,3558,680,7538,5501,207,5458,3544,9206,7129,5346,6293,666,4900,3145,1648,6138,3921,1792,3963,8914,4923,9319,1196,6041,885,7023,1066,1884,5406,2234,2971,2117,1744],function(){return e(e.s=82491)}),_N_E=e.O()}]);