(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,22240)),Promise.resolve().then(i.bind(i,50749))},50749:function(e,t,i){"use strict";i.r(t),i.d(t,{Deposits:function(){return t$}});var n,a=i(57437),l=i(35563),o=i(75461),r=i(54365),s=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`,sliderChips:`${d}__slider-chips`,sliderChipsItem:`${d}__slider-chips-item`}),p=({labels:e,dataLayerPush:t,eventCategory:i="cross-link",...n})=>{var l,r;let[c,d]=(0,s.useState)(null==(l=e[0])?void 0:l.name),p=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})},m=e.map(e=>({id:e.name,label:e.name})),v=e.find(e=>e.name===c),h=(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:[m.length>=1&&(0,a.jsx)(o.iR,{options:{slidesPerView:"auto",spaceBetween:8},className:u.crossLinkSlider,children:m.map(e=>(0,a.jsx)(o.wI,{className:u.sliderChipsItem,children:(0,a.jsx)(o.cL,{value:c,onChipClick:p,chips:[e]})},e.id))}),v&&(0,a.jsx)("ul",{className:u.crossLinkItemList,children:null==(r=v.tags)?void 0:r.map(e=>(0,a.jsx)("li",{className:u.crossLinkItem,children:(0,a.jsx)(o.rU,{href:`${n.href}/${e.url}`,onClick:()=>h(e,v.name),children:e.tagName})},e.id))})]})};p.displayName="CrossLinkChipsBlock";let m=(0,c.g)("cross-link","sc"),v=Object.freeze({crossLink:m,titleWrapper:`${m}__title-wrapper`,title:`${m}__title`,crossLinkWrapper:`${m}__wrapper`,crossLinkChipsTitle:`${m}__chips-title`}),h=({sectionTitle:e,labelsData:t=[],className:i,blockTitle:n="Виды вкладов",href:o="/vklady",dataLayerPush:s})=>(0,a.jsx)("section",{className:(0,r.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,r.Z)(v.title),children:e})}),(0,a.jsxs)("div",{className:v.crossLinkWrapper,children:[(0,a.jsx)(l.X6,{as:"h3",type:"h3",className:v.crossLinkChipsTitle,children:n}),(0,a.jsx)(p,{labels:t.content,href:o,dataLayerPush:s})]})]})});h.displayName="CrossLink";let _=(0,c.g)("expert-quote","sc"),f=Object.freeze({expertQuote:_,wrapper:`${_}__wrapper`,title:`${_}__title`,card:`${_}__card`,content:`${_}__content`,aboutText:`${_}__aboutText`,about:`${_}__about`,img:`${_}__img`,name:`${_}__name`,position:`${_}__position`,text:`${_}__text`}),g=(0,s.memo)(({className:e,quote:t})=>(0,a.jsx)("section",{className:(0,r.Z)(f.wrapper,e),children:(0,a.jsxs)(l.W2,{children:[(0,a.jsx)(l.X6,{as:"h2",type:"display",weight:"bold",className:(0,r.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,children: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`}),w=({blockTitle:e,content:t,sectionTitle:i,className:n})=>(0,a.jsx)("section",{className:(0,r.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,r.Z)(y.title),children:i})}),(0,a.jsxs)("div",{className:y.wrapper,children:[(0,a.jsx)(l.X6,{as:"h3",type:"h3",className:(0,r.Z)(y.blockTitle),children:e}),(0,a.jsx)("div",{className:y.text,dangerouslySetInnerHTML:{__html:t||""}})]})]})});w.displayName="SeoText";var k=i(5426),j=i(21652),C=i.n(j),N=i(27648),L=i(50666),T=i(77337),D=i(90716);let I=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:""))},A=e=>{let{region:t}=e;return(0,D.t9)("/money_data/DepositRegion.json?region_links=1".concat(t?"&region="+t.url:""))};var S=i(21528),P=i(65100),M=i(65716),B=i(14862);let z=e=>(0,D.t9)("/api/v1/deposits/combo",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0});var E=i(94943),$=i(64671),R=i(6164),O=(e,t,i)=>({amount:e,term:{value:t,type:R.e.MONTH},...i&&{customerId:i}});let W=(0,$.b)(),U=(e,t)=>e?{...e,totalProfit:e.totalProfit-t}:null,F=e=>{let{amount:t,term:i,initialComboDeposits:n,customerId:a,tag:l}=e,o=t&&i&&(null==l?void 0:l.url)!==E.z.nakop,[r,c]=(0,s.useState)(U(o?n:null,t));return(0,s.useEffect)(()=>{if(!o){c(null);return}W(async()=>{var e;c(U(null!==(e=(await z(O(t,i,a))).data)&&void 0!==e?e:null,t))})},[a,t,i,o]),{comboDeposits:r}};var q=i(49090),Z=i(80684),Q=i(72151),Y=i(99193),H=i(39421),X=i.n(H),V=(0,s.memo)(function(e){let{visible:t,eventCategory:i,amount:n=0,bankName:c="",rate:d=0,onTipsApply:u}=e,[p,m]=(0,s.useState)({amount:n,bankName:c,rate:d});(0,s.useEffect)(()=>{t&&m({amount:n,bankName:c,rate:d})},[n,c,d,t]);let v=(0,s.useRef)(null);(0,Y.Z)({itemRef:v,eventCategory:i,eventAction:"view_hint",eventLabel:""});let h=(0,s.useCallback)(()=>{(0,Q.lQ)({eventCategory:i,eventAction:"click_hint_button"}),u(n)},[n,i,u]);return(0,a.jsx)(l.W2,{className:(0,r.Z)(X().depositTips,t&&X().visible),"data-qa":"deposit-tips",children:(0,a.jsxs)("div",{className:X().tipContent,ref:v,children:[(0,a.jsx)(Z.IconFdsFlashO,{size:24,className:X().icon}),(0,a.jsxs)("div",{className:X().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(p.bankName,"\xbb под ").concat((0,q.og)(p.rate)," с минимальной суммой от ").concat((0,q.lb)(p.amount))})]}),(0,a.jsx)(o.zx,{className:X().mobileButton,size:"xs",variant:"secondary",appearance:"fill",iconRight:(0,a.jsx)(Z.IconFdsChevronRightO,{}),dataQa:"deposit-tips-show-button-mobile",onClick:h,children:"Посмотреть"}),(0,a.jsx)(o.zx,{className:X().desktopButton,size:"xs",variant:"primary",appearance:"ghost",iconRight:(0,a.jsx)(Z.IconFdsChevronRightO,{}),dataQa:"deposit-tips-show-button-desktop",onClick:h,children:"Посмотреть"})]})})},(e,t)=>e.visible===t.visible),K=i(80691),G=i(57044),J=i(66726),ee=i(79588),et=i(47935),ei=i(32046),en=i(14441);let ea=Object.freeze(["moskva","sankt-peterburg"]);var el=(0,s.memo)(function(e){let{region:t,tag:i,meta:n,depositLists:l,regionUrl:o,currency:r,isOldUser:c,town:d,initialDescription:u,initialTitle:p,quote:m}=e,{asPath:v}=(0,en.P)(),{minDepositAmount:h,minTermPeriod:_,highPrice:f,inRegion:g,h1:x,description:b,title:y}=n,w=(0,ei.L)(i),k=(null==l?void 0:l.notInitialDeposits)?y:p,j=(null==l?void 0:l.notInitialDeposits)?b:u;return(0,s.useEffect)(()=>{document.title=k;let e=document.querySelector("link[rel=canonical]"),t=document.querySelector('meta[name="description"]');t&&t.setAttribute("content",j),e&&(e.href="".concat(B.m.BASE_URL).concat(v))},[k,v,j]),(0,a.jsxs)(a.Fragment,{children:[w&&t&&ea.includes(t.url)&&(0,a.jsx)(ee.Z,{minDepositAmount:h,minTermPeriod:_,regionName:t.name_p,maxRate:f,regionUrl:t.url}),(0,a.jsx)(K.g,{regionUrl:o,tag:i,inRegion:g}),i&&et.E.includes(null==i?void 0:i.url)&&(0,a.jsx)(G.M,{textList:i.text,regionId:null==t?void 0:t.region_id,townId:null==d?void 0:d.id}),(0,a.jsx)(J.Q,{filterCurrency:r,currentLength:l.currentLength,isHiddenPromo:c,description:j,h1:x,inRegion:g,platform:l.platform,another:l.another,regionUrl:o,tagUrl:!w&&i?i.url:"",quote:m})]})}),eo=i(98160);let er=e=>e.length?[eo.vw[0],...e.map(e=>({value:e.durationOfMonths,label:e.termLabel,days:e.durationOfDays}))]:eo.vw,es=e=>{let{isDepositsLoading:t,isCustomerLoading:i,isPlatformDepositsLoading:n,hasFilters:a,isClient:l,platformLoadingDisabled:o}=e;return t&&l||i||o&&(n||!a&&l)};var ec=i(33600),ed=i(35291);let eu=(e,t,i)=>e?t:i?String(i):void 0,ep=(e,t,i)=>e?t?Number(t):void 0:i;var em=i(71931),ev=i(91627);let eh=Object.freeze({[ec.ER.Profit]:"PROFIT",[ec.ER.Rate]:"RATE",[ec.ER.RatePlusBonus]:"CUMULATIVE_RATE"});var e_=i(97793),ef=i(69393),eg=i(53931),ex=i(36578),eb=i(89911);let ey=e=>{let{displayDuration:{years:t,months:i,days:n}}=e,a=[];return t&&a.push((0,ex.PY)(t,ef.Nu.YEAR)),i&&a.push((0,ex.PY)(i,ef.Nu.MONTH)),n&&a.push((0,ex.PY)(n,ef.Nu.DAY)),{...e,termLabel:a.join(" "),durationOfMonths:Math.round(e.durationOfDays/ev.F)}};var ew=i(58580);let ek=(e,t)=>e?(0,D.t9)((0,T.jb)("/api/v3/product-tags/".concat(e),{limit:t}),null,{isMpScApi:!0}):{data:null,error:null},ej=e=>e?(0,D.t9)("/api/v1/deposit-tags/".concat(e,"/texts"),null,{isMpScApi:!0}):{data:null,error:null},eC=e=>null!=e?e:null,eN=e=>null!=e?e:"",eL=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}})),eT=e=>{var t,i,n,a,l,o,r;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!==(r=null===(a=e.facet)||void 0===a?void 0:a.legacyProductsIds)&&void 0!==r?r:[]]},eD=e=>{var t,i,n,a,l,o,r,s,c,d,u,p,m,v,h,_,f,g,x;return e?{id:eN(e.id),url:eN(e.url),title:eN(e.individualTitle),subtitle:eN(e.individualSubtitle),description:eN(e.individualDescription),individualDescription:eN(e.individualDescription),name:eN(e.internalName),tag_name:eN(e.tagName),text:eL(null!==(_=e.textList)&&void 0!==_?_:[]),calc_amount:eC(null===(t=e.facet)||void 0===t?void 0:t.depositAmount),calc_term:eC(null===(i=e.facet)||void 0===i?void 0:i.depositTerm),calc_currency_id:eC(null===(n=e.facet)||void 0===n?void 0:n.currency),filter:{term:{from:String(null!==(f=null===(a=e.facet)||void 0===a?void 0:a.depositTerm)&&void 0!==f?f:0),to:null},amount:eC(null===(l=e.facet)||void 0===l?void 0:l.depositAmount),currency:null!==(g=null===(o=e.facet)||void 0===o?void 0:o.currency)&&void 0!==g?g:"RUB",type:eN(null===(r=e.facet)||void 0===r?void 0:r.type),partial_withdrawal:(null===(s=e.facet)||void 0===s?void 0:s.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===(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)},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:eT(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:eN(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:eC(e.stats)}:null},eI=async e=>{let{tagUrl:t,depositTags:i,setTag:n,toggles:a,limit:l,shouldFetchTexts:o=!0}=e,r=await eA({tagUrl:t,depositTags:i,toggles:a,limit:l,shouldFetchTexts:o});if(n&&r){var s,c;n(r),null===(c=window)||void 0===c||null===(s=c.scrollTo)||void 0===s||s.call(c,0,0)}return r},eA=async e=>{var t,i,n,a,l,o,r,s;let{tagUrl:c,depositTags:d,limit:u,shouldFetchTexts:p}=e,m=null==d?void 0:null===(t=d.find(e=>{let{url:t}=e;return t===c}))||void 0===t?void 0:t.id,v=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!=m?m:v,_=await ek(h,u),f=p?await ej(h):void 0;return eD({...null==_?void 0:_.data,textList:[...null!==(o=null==f?void 0:null===(n=f.data)||void 0===n?void 0:n.textList)&&void 0!==o?o:[],...null!==(r=null==f?void 0:null===(a=f.data)||void 0===a?void 0:a.regionContent)&&void 0!==r?r:[],...null!==(s=null==f?void 0:null===(l=f.data)||void 0===l?void 0:l.townContent)&&void 0!==s?s:[]]})};var eS=i(93053),eP=i(50023);let eM=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)},eB=e=>{if(!Array.isArray(e)||0===e.length)return null;let t=Math.floor(Math.random()*e.length);return e[t]},ez=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 r=o.join("/"),s=eB(null!==(i=null===(t=(await eM(r)).data)||void 0===t?void 0:t.content)&&void 0!==i?i:[]);return s?{...s,content:s.content}:null},eE=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,D.t9)("/api/v1/seo-texts/search?regionId=".concat(e),null,{isMpScApi:!0},t)},e$=async e=>{let{region:t}=e,i=t&&(await eE(t)).data;return Array.isArray(i)&&i[0]||null};var eR=i(58864),eO=i(47492),eW=i(43522),eU=i(65621);function eF(e){let{tagId:t,banksByBic:i,...n}=e,{data:a,isLoading:l}=(0,eb.d)(["non-platform-deposits-by-tag",t],()=>(0,e_.PT)(t),n);return(0,s.useMemo)(()=>({nonPlatformDeposits:(null!=a?a:[]).map(e=>{var t;return(0,eU.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 eq(){let e=await (0,e_.vI)();if(!e.data)return[];let{boundaryValues:{totalPages:t},products:i}=e.data,n=Array.from({length:t-1},(e,t)=>(0,e_.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 eZ=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 eQ=i(81237),eY=i(92317),eH=i(36204),eX=i(57977),eV=i(68026);let eK={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=eK.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)}}},eG=e=>{let{baseUrl:t,regionUrl:i="",tagUrl:n="",townUrl:a="",params:l,separator:o="?"}=e,r=(0,T.xn)(t,n,i?"reg_"+i:"",a===i?"":a);return l?r+o+l:r},eJ=e=>{try{let t=eK.getItem("user_region"),i=eK.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(eK.getItemRaw("all_russia_selected")))return null}catch(e){console.log(e)}},e0=(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,r=o&&l?o.towns.find(e=>{let{url:t}=e;return t===l}):null;return{region:o,town:r}},e1=e=>{let{pageName:t,regions:i,initialValues:n}=e,[a,l]=(0,s.useState)(!0),{asPath:o,replace:r}=(0,en.P)(),c=(0,s.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,s.useMemo)(()=>c.find(e=>e.includes("teg_")),[c]),{region:u,town:p,handleSetRegion:m,handleSetTown:v}=(0,eV.k)(),h=(0,s.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?"?":"#",s=eG({baseUrl:"/"+t,regionUrl:e,tagUrl:d,townUrl:i,params:o.split(l)[1],separator:l});s!==o&&r(s)},[o,d,t]);return(0,s.useEffect)(()=>{l(!1)},[]),(0,s.useEffect)(()=>{if(!o.length)return;let e=eJ(o);if(void 0!==e){e&&h(e);return}if(1===Number(eK.getItemRaw("all_russia_selected"))&&!(null==u?void 0:u.url.length)&&!(null==p?void 0:p.url.length)&&o.includes("reg_")){h();return}if(!(null==u?void 0:u.url.length)&&!(null==p?void 0:p.url.length)&&o.includes("reg_")){let{region:e,town:t}=e0(o,i);e&&m(e),t&&v(t);return}},[o,h,u,p,i,m,v]),(0,s.useMemo)(()=>({region:u||a&&(null==n?void 0:n.region)||null,town:p||a&&(null==n?void 0:n.town)||null,handleSetRegion:m,handleSetTown:v}),[u,p,m,v,a,n])};var e2=i(10102),e4=i(76002),e6=i(40529),e9=i(90862),e5=i(72620),e7=i(84213),e3=i(56949),e8=i(28819),te=i(26523),tt=i(14761),ti=i(37162),tn=i(85665),ta=i(72798),tl=i.n(ta);function to(e){let{title:t,caption:i,icon:n,dataQa:o,onCloseClick:r}=e;return(0,a.jsxs)("div",{className:tl().notification,"data-qa":o,children:[n,(0,a.jsxs)("div",{className:tl().textBlock,children:[(0,a.jsx)(l.xv,{size:"18",weight:"medium",className:tl().title,children:t}),(0,a.jsx)(l.xv,{size:"14",weight:"regular",className:tl().caption,children:i})]}),(0,a.jsx)(Z.IconFdsCloseO,{size:"24",className:tl().closeIcon,onClick:r})]})}var tr=i(2470),ts=i.n(tr);let tc="opening-notification-closed",td="profit-notification-closed";function tu(e){let{disableProfitNotification:t,disableNotifications:i}=e,[n,l]=(0,s.useState)(()=>!eK.getItem(tc)),[o,r]=(0,s.useState)(()=>!t&&!eK.getItem(td)),c=(0,s.useCallback)(()=>{l(!1),eK.setItem(tc,"true")},[]),d=(0,s.useCallback)(()=>{r(!1),eK.setItem(td,"true")},[]);return(n||o)&&!i?(0,a.jsxs)("div",{className:ts().notifications,children:[n&&(0,a.jsx)(to,{title:"100% онлайн",caption:"Открытие без\xa0посещения банка",icon:(0,a.jsx)(Z.IconFdsHeartO,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-opening-notification",onCloseClick:c}),o&&(0,a.jsx)(to,{title:"Доход по вкладам с одной ставкой может отличаться",caption:"Причина — разница в количестве дней вклада",icon:(0,a.jsx)(Z.IconFdsInfoCircleO,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-profit-notification",onCloseClick:d})]}):null}let tp=(e,t)=>(!!e.isNotAmount||!!e.isTermEmpty||!!e.computeData)&&(!t||!e.promo);var tm=i(72955),tv=i(29914),th=i(41506),t_=i(48034),tf=i(26573),tg=i(70104),tx=i(82180),tb=i.n(tx),ty=i(33145),tw=i(13889),tk=i.n(tw);let tj=e=>{let{deposit:t,bank:i}=e,{amount:n,rate:l,bankName:o,bonusRate:r}=t,s=[{label:"Сумма",value:"".concat((0,k.Y4)(n,2)," ₽"),id:1},{label:"Ставка",value:"".concat((0,k.Y4)(l,2)).concat(r?" + "+(0,k.Y4)(r,2):"","%"),id:2}];return(0,a.jsxs)("div",{className:tk().cardItem,children:[(0,a.jsxs)("div",{className:tk().cardHeader,children:[(0,a.jsx)("div",{className:tk().logo,children:(null==i?void 0:i.logo_mob)&&(0,a.jsx)(ty.default,{width:17,height:17,alt:o,src:null==i?void 0:i.logo_mob})}),(0,a.jsx)("div",{className:tk().title,children:o})]}),(0,a.jsx)("div",{className:tk().cardContentWrapper,children:s.map(e=>(0,a.jsxs)("div",{className:tk().cardContent,children:[(0,a.jsx)("div",{className:tk().label,children:e.label}),(0,a.jsx)("div",{className:tk().value,children:e.value})]},e.id))})]})},tC=e=>{let{pageUrl:t,banks:i,comboDeposits:n,amount:l,term:o}=e,{totalProfit:r,averageRate:c,deposits:d}=n,u=(0,s.useRef)(null),p=n.deposits.map(e=>{let{id:t,amount:i,rate:n}=e;return"".concat(t,"_").concat(i,"_").concat(n)}).join("_");(0,Y.Z)({itemRef:u,eventCategory:"deposits_".concat(t),eventLabel:p,eventAction:"view_card_combo"});let m=[{label:"Средняя ставка",value:"".concat((0,tg.Y4)(c,2),"%"),id:1},{label:"Общий доход",value:"".concat((0,tg.Y4)(r,2)," ₽"),id:2}],v=(0,s.useCallback)(e=>{var t;return null!==(t=i.find(t=>t.bic===(0,tf.g)(e.bic)))&&void 0!==t?t:null},[i]);return(0,a.jsxs)(N.default,{ref:u,className:tb().card,href:"/vklady/combo?amount=".concat(l,"&term=").concat(o),children:[(0,a.jsx)("span",{className:tb().tip,children:"Комбо"}),(0,a.jsxs)("div",{className:tb().infoWrapper,children:[(0,a.jsx)("div",{className:tb().title,children:"Два вклада выгоднее"}),(0,a.jsx)("div",{className:tb().infoContent,children:m.map(e=>(0,a.jsxs)("div",{className:tb().info,children:[(0,a.jsx)("div",{className:tb().label,children:e.label}),(0,a.jsx)("div",{className:tb().value,children:e.value})]},e.id))})]}),(0,a.jsx)("div",{className:tb().comboCardWrapper,children:d.map((e,t)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tj,{bank:v(e),deposit:e},e.id),!t&&(0,a.jsx)("span",{className:tb().plus})]}))}),(0,a.jsx)(k.zx,{className:tb().button,size:"xs",stretch:!0,onClick:()=>{(0,Q.lQ)({eventLabel:p,eventCategory:"deposits_".concat(t),eventAction:"click_card_combo"})},children:"Подробнее"})]})};var tN=i(80925),tL=i(59829),tT=i(91304),tD=i.n(tT);let tI=(0,tm.c)(4,tD().skeleton),tA=e=>{var t;let{banks:i,anotherDeposits:n,platformDeposits:c,filter:d,isOldUser:u,depositLists:p,discount:m,className:v,bannerUrl:h,isHiddenPromo:_,existTag:f,isPlusFiveBonus:g,extraInfo:x,questions:b,pageUrl:y,comboDeposits:w,isSavingAccounts:j,showDepositGuide:C,adFoxConfig:N,showAdFoxBanner:L,isPlatformLoading:T,isNonPlatformLoading:D,showPlatformDeposits:I,newPlatformDeposits:A,disableNotifications:S,displayNonPlatform:P=!0}=e,{amountData:M,term:z,handleToggleModal:E}=d,[$,R]=(0,s.useState)(10),[O,W]=(0,s.useState)(10),{depositData:U,openModal:F,handleOpen:q,handleClose:Z}=(0,th.j)({banks:i,anotherDeposits:n,platformDeposits:c,newPlatformDeposits:A}),[Y,H]=(0,s.useState)(!1);(0,tv.i)({key:"makeDepositBehavior",callback:H}),(0,s.useEffect)(()=>{window.postMessage({key:"depositListLoaded",value:!0},B.m.BASE_URL)},[]);let X=(0,t_.Z)(),V=(0,s.useCallback)(()=>{(0,k.ld)(ti.Mb,{offset:X-48,position:"top"})},[X]);(0,s.useEffect)(()=>{T&&R(10),D&&W(10)},[D,T]);let[K,G]=(0,s.useState)(p.platform.filter(e=>tp(e,_)));(0,s.useEffect)(()=>{G(p.platform.filter(e=>tp(e,_)))},[p,_]);let J="deposits_details_".concat(y,"_popup"),ee=w&&w.deposits.length>1,et=I?p.currentLength>0:p.another.length>0,ei=p.another.length>0,en=!(p.platform.length>0)&&!T||!I,ea=!ei&&!D,el=p.platform.length>$&&!T,er=p.another.length>O&&!D,es=(0,s.useMemo)(()=>(0,a.jsx)(e8.t,{children:(0,a.jsx)(tL.Z,{id:ti.uz,qrBannerUrl:h,existTag:f,pageUrl:y,newMobileAd:!0})}),[h,f,y]),ec=(0,s.useCallback)(()=>j?null:C?(0,a.jsx)(tn.Z,{pageUrl:y}):es,[es,j,y,C]),ed=(0,s.useCallback)(()=>u&&!j?null:es,[es,u,j]),eu=(0,s.useCallback)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(te.p,{onChangeParams:E,dataQa:"not-found"}),L&&et&&(0,a.jsx)(e3.Z,{className:tD().adFox,params:eo.e$,config:N})]}),[N,E,et,L]),ep=(0,s.useCallback)(()=>(0,a.jsxs)(l.W2,{children:[(0,a.jsx)(te.p,{onChangeParams:E,dataQa:"not-found"}),ec(),ed()]}),[E,ed,ec]);return(0,a.jsxs)("section",{id:ti.TM,className:(0,r.Z)(tD().container,v),children:[(0,a.jsxs)(tt.X,{switchWhen:en&&ea,switchTo:ep,transitionTime:200,children:[(0,a.jsxs)(l.W2,{children:[(0,a.jsx)(l.xv,{as:"h2",className:tD().title,children:j?"Накопительные счета онлайн на Финуслугах":"Вклады онлайн от Финуслуг"}),(0,a.jsxs)(tt.X,{switchWhen:en,switchTo:eu,transitionTime:200,children:[(0,a.jsx)(tu,{disableProfitNotification:j,disableNotifications:S}),(0,a.jsxs)(tt.X,{switchWhen:T,switchTo:tI,transitionTime:200,children:[ee&&(0,a.jsx)(tC,{pageUrl:y,banks:i,comboDeposits:w,amount:+M.value,term:+z.value}),K.slice(0,$).map((e,t)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsxs)("div",{"data-qa":"platform",children:[e.promo,(0,a.jsx)(tN.B,{isPlatform:!0,onOpenDetailModal:q,className:(0,r.Z)(tD().listItem,e.promo&&"click_kartochka_promo_neavtorizovannaya_zona"||"click_kartochka_obychnaya_neavtorizovannaya_zona"),isOldUser:u,discount:m,data:e,wide:!0,isTermInDays:!0,showOpenButton:Y},e.url+e.id)]}),L&&t+1===Math.min(3,K.length)&&(0,a.jsx)(e3.Z,{className:tD().adFox,params:eo.QA,config:N})]},e.url)),(0,a.jsxs)(l.X2,{className:(0,r.Z)(tD().buttonsRow,tD().spaced),children:[el&&(0,a.jsx)(o.zx,{size:"s",onClick:()=>{(0,Q.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__offers"}),R(e=>e+10)},className:tD().button,variant:"secondary",dataQa:"show-more-platform-button",children:"Еще предложения от Финуслуг"}),ei&&(0,a.jsx)(o.zx,{size:"s",variant:"white",onClick:V,dataQa:"show-nonplatform-deposits-button",children:"Предложения от банков"})]})]})]})]}),ec(),P&&(0,a.jsxs)(l.W2,{className:tD().anotherList,children:[(0,a.jsx)(l.xv,{as:"h2",id:ti.Mb,className:tD().title,children:"Предложения от банков"}),(0,a.jsx)(tt.X,{switchWhen:ea,switchTo:eu,children:(0,a.jsxs)(tt.X,{transitionTime:200,switchWhen:D,switchTo:tI,children:[p.another.slice(0,O).map((e,t)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("div",{"data-qa":"nonplatform",children:(0,a.jsx)(tN.B,{onOpenDetailModal:q,className:tD().listItem,data:e,wide:!0})}),L&&t+1===Math.min(3,p.another.length)&&(0,a.jsx)(e3.Z,{className:tD().adFox,params:eo.Eu,config:N})]},e.url)),er&&(0,a.jsx)(o.zx,{size:"s",onClick:()=>{(0,Q.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__lidgen"}),W(e=>e+10)},className:(0,r.Z)(tD().button,tD().spaced),variant:"secondary",dataQa:"show-more-nonplatform-button",children:"Еще предложения"})]})})]}),ed()]}),U&&(0,a.jsx)(e7.Z,{data:U,discount:m,isOldUser:u,isOpen:F,onClose:Z,extraInfo:x,isPlusFiveBonus:g,questions:b,depositSumm:M.value,depositTerm:null!==(t=null==z?void 0:z.label)&&void 0!==t?t:"Любой",initialAmount:Number(M.value),initialTermInMonths:Number(z.value),eventCategory:J})]})};var tS=i(25813),tP=i.n(tS),tM=i(18674),tB=i(33714);let tz=null!==(n=(0,L.env)("NEXT_PUBLIC_BASE_URL"))&&void 0!==n?n:"*",tE=e=>(0,a.jsx)(N.default,{...e}),t$=e=>{var t,i,n,r,c;let{stores:d,depositTags:u,depositTag:p,currencies:m,discounts:v,bounds:_,bankTowns:f,depositRegion:b,depositRegionLinks:y,defaultRegion:j,defaultTown:N,depositsTitle:L,depositsDescription:D,depositsSubtitle:z,initialAnotherDeposits:E,initialPlatformDeposits:$,allExtraInfo:R,banks:O,initialTopBanks:W,questions:U,supportData:q,journalData:Z,isPlatformShowcase:Y,initialCurrentDepositsLength:H,initialAllDepositsLength:X,initialComboDeposits:K,initialQuote:G,crossLinkLabels:J,initialSeoText:ee}=e,et=(0,o.s4)(),ea=(0,k._m)("l"),{asPath:eo,push:ef}=(0,en.P)();(0,e4.f)({eventCategory:"deposits_".concat(eo),eventLabel:""});let{regions:ex,town_duplicates:ek}=(0,e2.f)(!1,{region:j,town:N}),[ej,eC]=(0,s.useState)(G),[eN,eL]=(0,s.useState)(ee),{town:eT,region:eD,handleSetTown:eA,handleSetRegion:eM}=e1({pageName:ew.a.VKLADY,regions:ex,initialValues:{region:j,town:N}}),{isOldUser:eB,customerId:eE,isLoading:eU}=(0,eW.O)({disabled:!et}),eV=(0,eX.a)(M.tE),eK=(0,eH.K)({bannersTitle:[M.N9.DEPOSITS_ADVANTAGES,M.N9.VKLADY,M.N9.VKLADY_TAGS],queryParams:eV,stores:d}),[eG,eJ]=(0,s.useState)(!eB),[e0,e7]=(0,s.useState)(p),[e3,e8]=(0,s.useState)(),{topBanks:te}=function(e){let{tagId:t,initialTopBanks:i,...n}=null!=e?e:{},{data:a,isLoading:l}=(0,eb.d)(["topBanks",t],()=>eZ(t),{...n});return(0,s.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==e0?void 0:e0.id)&&void 0!==n?n:"",initialTopBanks:W}),tt=(null==e0?void 0:e0.url)==="nakopitelnye",{terms:ti,isLoading:tn}=function(e){var t,i;let n=(0,s.useMemo)(()=>(0,eg.$1)(),[]),a=null!==(i=null==n?void 0:n["auth.gtm_customer_id"])&&void 0!==i?i:void 0,{data:l,isLoading:o}=(0,eb.d)(["deposit-terms",a],()=>(0,e_.rl)(a),e);return(0,s.useMemo)(()=>{var e,t;return{isLoading:o,terms:null!==(t=null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.terms.map(ey))&&void 0!==t?t:[]}},[null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.terms,o])}({disabled:!B.m.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED||tt,ssrLoader:!0}),ta=(0,s.useMemo)(()=>er(ti),[ti]),{isLoading:tl,products:to,productsWithIncreasedAmount:tr,productHint:ts}=function(e){let{filters:t,...i}=e,{disabled:n=!1}=i,{isOldUser:a,isLoading:l}=(0,eW.O)(i),{data:o,isLoading:r}=(0,eb.d)(["deposits",t],()=>(0,e_.qB)({...t,isNewCustomer:!a}),{...i,disabled:n||l||(0,eR.mA)(t)}),{data:c}=null!=o?o:{},{products:d=[],productsWithIncreasedAmount:u=[],productHint:p}=null!=c?c:{};return(0,s.useMemo)(()=>({products:d,productsWithIncreasedAmount:u,productHint:p,isLoading:r||l}),[l,r,p,d,u])}({filters:e3,disabled:tt||tn}),[tc,td]=(0,s.useState)(!1),tu=tc?tr:to,tp=(0,s.useRef)(!1),tm=(0,s.useRef)(!1),tv=(0,s.useMemo)(()=>O.reduce((e,t)=>({...e,[Number(t.bic)]:t}),{}),[O]),{nonPlatformDeposits:th,isLoading:t_}=eF({tagId:String(null!==(r=null==e0?void 0:e0.id)&&void 0!==r?r:""),banksByBic:tv,disabled:!(null==e0?void 0:e0.id)||!(null===(t=e0.filter)||void 0===t?void 0:t.displayNonPlatform)||Y}),tf=(0,s.useMemo)(()=>{var e;return null===(e=u.find(e=>"all_offers"===e.url))||void 0===e?void 0:e.id},[u]),{nonPlatformDeposits:tg}=eF({tagId:String(null!=tf?tf:""),banksByBic:tv,disabled:!tf}),{oldSavingAccounts:tx,isLoading:tb}=function(e){let{data:t,isLoading:i}=(0,eb.d)("old-saving-accounts",()=>eq(),e);return(0,s.useMemo)(()=>({oldSavingAccounts:null!=t?t:[],isLoading:i}),[t,i])}({disabled:!tt});(0,s.useEffect)(()=>{if(!tp.current){tp.current=!0;return}ez({tag:null==e0?void 0:e0.url,region:null==eD?void 0:eD.url,town:null==eT?void 0:eT.url}).then(e=>eC(e))},[null==eD?void 0:eD.url,null==e0?void 0:e0.url,null==eT?void 0:eT.url]),(0,s.useEffect)(()=>{if(!tm.current){tm.current=!0;return}e$({region:null==eD?void 0:eD.id}).then(e=>eL(e||null))},[null==eD?void 0:eD.id]);let ty=(0,s.useMemo)(()=>(0,tM.j)({path:eo,tag:e0}),[eo,e0]),tw=(0,s.useCallback)(e=>{ef((0,eO.C)("deposits",{id:"",name:"",url:e},eD,eT)||"/vklady"),eI({tagUrl:e,depositTags:u,setTag:e7})},[ef,eD,eT,u]),tk=function(e){let{banks:t,isNewCustomer:i,setFilters:n}=e,a=(0,s.useMemo)(()=>t.reduce((e,t)=>({...e,[String(t.id)]:t.bic}),{}),[t]);return(0,em.y1)(e=>{let{amount:t,term:l,sortType:o,withCapitalization:r,withMonthlyPercent:s,withPreferentialTermination:c,withRefill:d,activeBanks:u,withPartialWithdrawal:p}=e,m=l?{type:"DAY",value:Math.round(Number(l)*ev.F)}:void 0;n({amount:t>0?t:void 0,sort:eh[o],term:m,withCapitalization:r||void 0,withMonthlyPayments:s||void 0,withPreferentialTermination:c||void 0,withPartialWithdrawal:p||void 0,withRefill:d||void 0,isNewCustomer:i,providerBICs:null==u?void 0:u.map(e=>a[e])})},500)}({banks:O,isNewCustomer:!eB,setFilters:e8}),tj=(0,tB.L)({tag:e0,currencies:m,banks:O,defaultValues:ty,isDiscount:eG,sortLoading:(0,eR.ur)(!tt,eU)}),tC=tj.shouldFilterByAllOffers&&(null==tg?void 0:tg.length)?tg:th,tN=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(tt||!tj.clientSortType)return;let e={amount:Number(tj.amountData.value),term:tj.term.value,activeBanks:tj.activeBanksValue,sortType:tj.clientSortType,withCapitalization:tj.withCapitalization,withMonthlyPercent:tj.withMonthlyPercent,withPreferentialTermination:tj.withPreferentialTermination,withPartialWithdrawal:tj.withPartialWithdrawal,withRefill:tj.withRefill};C()(e,tN.current)||(tN.current=e,tk(e),td(!1))},[tj,tk,tt]);let tL=(0,s.useCallback)(e=>{Number(tj.amountData.value)!==e&&(tj.handleAmountChange(e),tj.amountData.handleChange(e),td(!0),tN.current&&(tN.current={...tN.current,amount:e}))},[tj]),tT=(0,eQ.I)(),[tD,tI]=(0,s.useState)(b),[tS,t$]=(0,s.useState)(y);(0,s.useEffect)(()=>{I({region:eD,town:eT,tag:e0}).then(e=>{e.data&&!e.data.message&&tI(e.data)}),A({region:eD}).then(e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.region_links)&&t$(e.data.region_links)})},[null==eD?void 0:eD.url,null==eT?void 0:eT.url,null==e0?void 0:e0.url]);let tR=(0,s.useCallback)((e,t)=>{k.A7.setItem("user_region",e?JSON.stringify(e):""),k.A7.setItem("user_town",t?JSON.stringify(t):""),eM(e),eA(t||null)},[eM,eA]),tO=function(e){var t;let{filter:i,isDiscount:n,filters:a,withSavingAccounts:l,...o}=e,r=eu(!!l,i.amountData.value,null==a?void 0:a.amount),c=(0,s.useMemo)(()=>{var e;return{...o,shouldFilterByAllOffers:i.shouldFilterByAllOffers,filter:{amount:r,currency:String(i.currencyUnit),withRefill:i.withRefill,filterAdditionalSettings:i.filterAdditionalSettings,importantDeposits:i.importantDeposits,initialSort:i.initialSort,order:i.increaseSort?ec.mr.Desc:ec.mr.Asc,sortType:i.sortType,isDiscount:n,term:ep(!!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,r,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,s.useMemo)(()=>(0,ed.O)(c),[c])}({initialAnotherDeposits:E,initialPlatformDeposits:$,platformDeposits:tx,anotherDeposits:th,newPlatformDeposits:tu,bounds:_,isPlusFiveBonus:!eB,isOldUser:eB,filter:tj,filters:e3,banks:O,discounts:v,bankTowns:f,town:eT,region:eD,allExtraInfo:R,getOnlyInitialData:!et,initialAllDepositsLength:X,initialCurrentDepositsLength:H,calculateFilterAbilities:tt,withSavingAccounts:tt,isDiscount:eG,allOffers:tg});(0,s.useEffect)(()=>{eJ(tt?tO.platform.some(e=>e.hasDiscount):!eB)},[tO,tt,eB]);let tW=1===tj.currency.id||tt,tU=tW?tO.currentLength:tO.another.length,tF=(0,s.useMemo)(()=>tD?(0,e6.Y)({data:tO.another,platformDepositLists:tO.platform,tags:u,regionLinks:tS,dataRegion:tD,regions:ex,banks:O,topBanks:te,tag:e0,region:eD,town:eT,townDuplicates:ek,setTag:tw,setRegion:tR,currencies:m}):[],[tS,u,tO,tD,ex,O,te,e0,eD,eT,ek,tw,tR,m]),tq=null==v?void 0:v.find(e=>"five_procent"===e.unique_key),tZ=(0,eP.x)({tag:e0,region:eD,town:eT,depositLists:tO,depositsCount:tU}),{subtitle:tQ,h1:tY,inRegion:tH}=tZ,tX=(null==tO?void 0:tO.notInitialDeposits)?tQ:z,tV=(0,s.useMemo)(()=>(0,ei.L)(e0),[e0]),tK=(0,s.useMemo)(()=>{if(!(null==eD?void 0:eD.url))return"";let e=76!==eD.id&&77!==eD.id&&(null==eT?void 0:eT.url)?null==eT?void 0:eT.url:"";return(0,T.xn)("/reg_".concat(eD.url),e)},[null==eD?void 0:eD.url,null==eD?void 0:eD.id,null==eT?void 0:eT.url]),tG=(0,s.useMemo)(()=>{let e=[{label:"Вклады",href:"/vklady"}];return tV||e.push({label:(null==e0?void 0:e0.tag_name)||tY,href:(0,T.xn)("/vklady","/teg_".concat(null==e0?void 0:e0.url))}),tH&&e.push({label:tV?"Вклады".concat(tH):tH.trimStart().replace(/^./,"В"),href:(0,T.xn)("/vklady",tV?"":"/teg_".concat(null==e0?void 0:e0.url),tK)}),e},[tH,tK,tV,null==e0?void 0:e0.url,tY,null==e0?void 0:e0.tag_name]),tJ=(0,eS.W)({tagName:null==e0?void 0:e0.faq_title,inRegion:tH}),{fitsForMonthlyPercentFilter:t0,fitsForPreferentialTerminationFilter:t1,fitsForCapitalization:t2,fitsForRefill:t4}=tO;(0,eY.z)({disabled:!0,showMonthlyPercent:t0,showPreferentialTermination:t1,showCapitalization:t2,showRefill:t4,filter:tj});let{comboDeposits:t6}=F({amount:+tj.amountData.value,term:+tj.term.value,initialComboDeposits:K,tag:e0,customerId:eE}),t9=(0,eR.ur)(!eB,!tt),t5=!!tT,t7=es({isDepositsLoading:tb,isCustomerLoading:eU,isPlatformDepositsLoading:tl,hasFilters:!!e3,isClient:et,platformLoadingDisabled:!tt});return(0,a.jsxs)("main",{className:tP().page,children:[(0,a.jsx)(el,{region:eD,town:eT,tag:e0,meta:tZ,depositLists:tO,regionUrl:tK,currency:tj.currency.value,isOldUser:eB,initialDescription:D,initialTitle:L,quote:ej}),(0,a.jsx)(l.W2,{className:tP().mainContainer,fluid:!0,children:(0,a.jsx)(l.W2,{children:(0,a.jsx)(e5.v,{tag:e0,setTag:tw,h1:tY,region:eD,town:eT,subtitle:null!=tX?tX:"",length:et?tU:H,data:tj,terms:ta,isTermsLoading:tn,withAdditional:!tO.boundsIsEmpty,isMobile:!ea,partnerId:null,isDiscount:eG,breadcrumbsPath:tG,showDepositGuide:t9,isSavingAccounts:tt,showAdFoxBanner:t5})})}),(0,a.jsx)(V,{visible:(0,eR.ur)(ts,!tl),amount:null==ts?void 0:ts.minimumAmount,rate:null==ts?void 0:ts.fullRate,bankName:null==ts?void 0:ts.bankDisplayName,eventCategory:"deposits_".concat(eo),onTipsApply:tL}),(0,a.jsx)(tA,{filter:tj,isDiscount:eG,isOldUser:eB,banks:O,platformDeposits:tx,anotherDeposits:tC,depositLists:tO,adFoxConfig:tT,discount:tq,isMobile:!ea,bannerUrl:tV?eK[M.N9.VKLADY]:null!==(c=eK[M.N9.VKLADY_TAGS])&&void 0!==c?c:eK[M.N9.VKLADY],isHiddenPromo:eB,existTag:!tV,town:eT,region:eD,extraInfo:R,isPlusFiveBonus:!eB,questions:U,pageUrl:ew.a.VKLADY,currentDepositsLength:et?tO.currentLength:H,allDepositsLength:et?tO.allLength:X,comboDeposits:t6,isSavingAccounts:tt,showDepositGuide:t9,showAdFoxBanner:t5,isPlatformLoading:t7,isNonPlatformLoading:et&&t_,showPlatformDeposits:tW,newPlatformDeposits:null!=tu?tu:[],disableNotifications:(0,eR.oA)(ts),displayNonPlatform:null==e0?void 0:null===(i=e0.filter)||void 0===i?void 0:i.displayNonPlatform}),ej&&(0,a.jsx)(g,{quote:ej}),(0,a.jsx)(S.V,{journalData:Z,className:tP().grayBackground}),(0,a.jsx)(P.y,{supportData:q,className:tP().grayBackground}),eN&&(0,a.jsx)(w,{content:null==eN?void 0:eN.content,dataLayerPush:Q.lQ,sectionTitle:"",blockTitle:null==eN?void 0:eN.title}),J&&(0,a.jsx)(h,{labelsData:J,sectionTitle:"Вклады, которые могут вас заинтересовать",blockTitle:"",dataLayerPush:Q.lQ}),(0,a.jsx)(x.C,{sectionTitle:tJ,Link:tE,dataLayerPush:Q.lQ,questions:tF,eventCategory:"deposits_support_block",href:(0,T.xn)(tz,"help"),checkAllText:ea?"Читать все вопросы про вклады":"Все вопросы про вклады"}),(0,a.jsx)(e9.s,{data:tj,isDiscount:eG,isMobile:!ea,terms:ta,depositsLength:tU,withAdditional:!tO.boundsIsEmpty,partnerId:null,showMonthlyPercent:t0,showPreferentialTermination:t1,showCapitalization:t2,showRefill:t4,withCapitalizationTittle:"Капитализация",withRefillTitle:"Пополнение"})]})}},57044:function(e,t,i){"use strict";i.d(t,{M:function(){return s}});var n=i(57437),a=i(2265),l=i(90498),o=i.n(l);function r(e){return o()(e,{allowedTags:[],allowedAttributes:{}})}let s=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(r).filter(Boolean).join(" "):""}}}return"question"in e&&"answer"in e?{"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:r(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,r;let{tag:s,path:c}=e,d=(0,l.p)(c),u=String(d.amount),p=String(d.period),m=String(d.term),v=d.currency?String(d.currency):void 0,h={term:0,amount:"0",currencyCode:"RUB",withRefill:!1,withCapitalization:!1,withMonthlyPercent:!1,withPreferentialTermination:!1,withPartialWithdrawal:!1},_=(0,n.O)(null==s?void 0:null===(t=s.filter)||void 0===t?void 0:t.currency);return(null==s?void 0:s.filter)&&(h.term=null!==(o=null===(i=s.filter.term.values)||void 0===i?void 0:i[0])&&void 0!==o?o:null===s.filter.term.from||isNaN(Number(s.filter.term.from))?h.term:Number(s.filter.term.from),h.currencyCode=(0,a.z)(_).code,h.withRefill=!!s.filter.refill,h.withCapitalization=1===s.filter.interest_capitalization,h.withMonthlyPercent=!!s.filter.interestsMonthly,h.withPreferentialTermination=!!s.filter.earlyTermination,h.amount=String(null!==(r=s.filter.amount)&&void 0!==r?r:h.amount),h.withPartialWithdrawal=!!s.filter.partial_withdrawal),u&&!isNaN(+u)&&(h.amount=u),p&&!isNaN(+p)&&(h.term=+p),m&&!isNaN(+m)&&(h.term=+m),v&&(0,a.z)(v).code&&(h.currencyCode=(0,a.z)(v).code),h}},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"},29914:function(e,t,i){"use strict";i.d(t,{i:function(){return a},O:function(){return l}});var n=i(2265);function a(e){let{key:t,disabled:i,callback:a}=e;l({event:"message",disabled:i,listener:(0,n.useCallback)(e=>{let i=e.data;(null==i?void 0:i.key)===t&&a((null==i?void 0:i.value)==="VariantB")},[a,t])})}function l(e){let{event:t,disabled:i=!1,listener:a}=e;(0,n.useEffect)(()=>{if(!i)return window.addEventListener(t,a),()=>window.removeEventListener(t,a)},[i,t,a])}},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:r,disabled:s=!1}=e,{withCapitalization:c,withMonthlyPercent:d,withPreferentialTermination:u,withRefill:p,handleWithCapitalizationChange:m,handleWithMonthlyPercentChange:v,handleWithPreferentialTerminationChange:h,handleWithRefillChange:_}=t,f=(0,l.useMemo)(()=>({withCapitalization:c,withMonthlyPercent:d,withPreferentialTermination:u,withRefill:p}),[c,d,u,p]),g=(0,l.useRef)(f);(0,l.useEffect)(()=>{if(!s){if(!a()(g.current,f)){g.current=f;return}u&&!o&&h(!1),d&&!n&&v(!1),c&&!i&&m(!1),p&&!r&&_(!1)}},[s,f,m,v,h,_,i,n,o,r,c,d,u,p])}},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})},[])}},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"}},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"}},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 g}});var n=i(57437),a=i(35563),l=i(75461),o=i(54365),r=i(2265),s=i(31620),c=i(10855),d=i(52074);let u=(0,d.g)("faq-block","sc"),p=Object.freeze({faqBlock:u,titleWrapper:`${u}__title-wrapper`,title:`${u}__title`,accordionWrapper:`${u}__accordion-wrapper`,accordionItems:`${u}__accordion-items`,accordion:`${u}__accordion`,accordionItem:`${u}__accordion-item`,accordionItemContent:`${u}__accordion-item-content`,accordionActiveItemContent:`${u}__accordion-item-content--active`,accordionItemText:`${u}__accordion-item-text`,states:{primary:`${u}--primary`,secondary:`${u}--secondary`}}),m=(0,d.g)("faq-content-block","sc"),v=Object.freeze({contentBlocks:`${m}__content-blocks`,blockLink:`${m}__block-link`,keynoteWrapper:`${m}__keynote-wrapper`,keynote:`${m}__keynote`,annotation:`${m}__annotation`,contentTableWrapper:`${m}__content-table-wrapper`}),h=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]))})},_=({className:e,data:t})=>{if(!Array.isArray(t))return null;let i=(()=>{let e=[],i=1,a={data:t,headerBlocksCount:0,banner:[]};h(a),h(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:v.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:v.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:v.keynoteWrapper,children:(0,n.jsx)("p",{className:v.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,o.Z)(v.contentBlocks,e),role:"blocks",children:i})},f=({question:e,eventCategory:t,dataLayerPush:i,...a})=>(0,n.jsx)(l.Qd,{...a,title:e.question,outline:!1,className:(0,o.Z)(p.accordionItem),children:(0,n.jsx)("div",{className:(0,o.Z)(p.accordionItemContent,{[p.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)(_,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})}),g=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:i=[],href:d,checkAllText:u,Link:m,className:v,eventCategory:h="cb-faq",multiple:_=!1,variant:g="secondary",dataLayerPush:x})=>{let b=_?i.map(e=>e.question):[],[y,w]=(0,r.useState)(b);return(0,n.jsx)("section",{className:(0,o.Z)(p.faqBlock,p.states[g],v),children:(0,n.jsxs)(a.W2,{children:[!t&&(0,n.jsx)("div",{className:p.titleWrapper,children:(0,n.jsx)(a.X6,{as:"h2",type:"display",className:p.title,children:e})}),(0,n.jsxs)("div",{className:p.accordionWrapper,children:[t&&(0,n.jsx)(a.X6,{as:"h3",type:"h1",className:(0,o.Z)(p.title,`${p.title}--inner`),children:t}),(0,n.jsx)("div",{className:p.accordionItems,children:(0,n.jsx)(l.UQ,{className:p.accordion,activeIndex:y,onTabToggle:e=>{let t=(null==e?void 0:e.length)>(null==y?void 0:y.length),i=e.filter(e=>!y.includes(e))[0]||y.filter(t=>!e.includes(t))[0];w(e),x({event:"data-event",eventCategory:h,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,s.t)(String(i))})},multiple:_,children:i.map(e=>(0,n.jsx)(f,{id:`${e.question}-${e.answer}`,question:e,dataLayerPush:x,eventCategory:h},`${e.question}-${e.answer}`))})}),d&&u&&(0,n.jsx)(c.C,{href:d,event:{event:"data-event",eventCategory:h,eventAction:"сlick_link_answer-link",eventLabel:d},dataLayerPush:x,...null!=m?{Link:m}:{},iconGrayBackground:!0,children:u||"Читать все вопросы"})]})]})})}}},function(e){e.O(0,[1771,582,6748,8460,97,1302,5520,8945,1448,1576,680,5501,5458,207,3544,3903,5346,871,8401,3145,5234,5065,7634,8852,1792,9066,3963,7015,998,2462,6041,6149,5939,338,3656,7965,579,2971,2117,1744],function(){return e(e.s=82491)}),_N_E=e.O()}]);