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