(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),a=i(35563),o=i(75461),s=i(54365),r=i(2265),c=i(52074);let d=(0,c.g)("cross-link-chips-block","sc"),u=Object.freeze({crossLinkChipsBlock:d,crossLinkSlider:`${d}__slider`,crossLinkItemList:`${d}__item-list`,crossLinkItem:`${d}__item`,sliderChips:`${d}__slider-chips`,sliderChipsItem:`${d}__slider-chips-item`}),p=({labels:e,dataLayerPush:t,eventCategory:i="cross-link",...n})=>{var a,s;let[c,d]=(0,r.useState)(null==(a=e[0])?void 0:a.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)(o.iR,{options:{slidesPerView:"auto",spaceBetween:8},className:u.crossLinkSlider,children:m.map(e=>(0,l.jsx)(o.wI,{className:u.sliderChipsItem,children:(0,l.jsx)(o.cL,{value: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)(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:r})=>(0,l.jsx)("section",{className:(0,s.Z)(v.crossLink,i),children:(0,l.jsxs)(a.W2,{children:[(0,l.jsx)("div",{className:v.titleWrapper,children:(0,l.jsx)(a.X6,{as:"h2",type:"hero",className:(0,s.Z)(v.title),children:e})}),(0,l.jsxs)("div",{className:v.crossLinkWrapper,children:[(0,l.jsx)(a.X6,{as:"h3",type:"h3",className:v.crossLinkChipsTitle,children:n}),(0,l.jsx)(p,{labels:t.content,href:o,dataLayerPush:r})]})]})});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)(a.W2,{children:[(0,l.jsx)(a.X6,{as:"h2",type:"display",weight:"bold",className:(0,s.Z)(f.title,"mb-6"),children:"Мнение эксперта"}),(0,l.jsx)("div",{className:f.card,children:(0,l.jsxs)("div",{className:f.content,children:[(0,l.jsxs)("div",{className:f.about,children:[t.expert.photo&&(0,l.jsx)("a",{href:t.expert.url,children:(0,l.jsx)("div",{className:f.img,style:{backgroundImage:`url(${t.expert.photo})`}})}),(0,l.jsxs)("div",{className:f.aboutText,children:[(0,l.jsx)("a",{href:t.expert.url,className:f.name,children:t.expert.name}),(0,l.jsx)("p",{className:f.position,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)(a.W2,{children:[(0,l.jsx)("div",{className:w.titleWrapper,children:(0,l.jsx)(a.X6,{as:"h2",type:"hero",className:(0,s.Z)(w.title),children:i})}),(0,l.jsxs)("div",{className:w.wrapper,children:[(0,l.jsx)(a.X6,{as:"h3",type:"h3",className:(0,s.Z)(w.blockTitle),children:e}),(0,l.jsx)("div",{className:w.text,dangerouslySetInnerHTML:{__html:t||""}})]})]})});y.displayName="SeoText";var j=i(5426),C=i(21652),k=i.n(C),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:a}=e,o=t&&i&&(null==a?void 0:a.url)!==B.z.nakop,[s,c]=(0,r.useState)(W(o?n:null,t));return(0,r.useEffect)(()=>{if(!o){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,o]),{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)(a.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)(a.xv,{as:"p",size:"18",weight:"medium",style:{color:"var(--color-black-500)"},dataQa:"deposit-tips-title",children:"Вы можете увеличить сумму вклада и вложить деньги более выгодно"}),(0,l.jsx)(a.xv,{as:"p",size:"14",dataQa:"deposit-tips-caption",style:{color:"var(--color-gray-800)"},children:"Нашли более выгодный вклад от банка \xab".concat(p.bankName,"\xbb под ").concat((0,$.og)(p.rate)," с минимальной суммой от ").concat((0,$.lb)(p.amount))})]}),(0,l.jsx)(o.zx,{className: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)(o.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 ea=(0,r.memo)(function(e){let{region:t,tag:i,meta:n,depositLists:a,regionUrl:o,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==a?void 0:a.notInitialDeposits)?x:p,j=(null==a?void 0:a.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",j),e&&(e.href="".concat(K.m.BASE_URL).concat(m))},[y,m,j]),(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:o,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:a.currentLength,isHiddenPromo:c,description:j,h1:g,inRegion:f,platform:a.platform,another:a.another,regionUrl:o,tagUrl:!w&&i?i.url:""})]})});let eo=(e,t)=>!!t&&"DEFAULT"===e,es=e=>{let{isDepositsLoading:t,isCustomerLoading:i,isPlatformDepositsLoading:n,hasFilters:l,isClient:a,platformLoadingDisabled:o}=e;return t&&a||i||o&&(n||!l&&a)};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,a,o,s;return(null===(t=e.facet)||void 0===t?void 0:t.filterUsage)?[]:[...null!==(a=null===(i=e.facet)||void 0===i?void 0:i.productsIds)&&void 0!==a?a:[],...null!==(o=null===(n=e.facet)||void 0===n?void 0:n.depositsIds)&&void 0!==o?o:[],...null!==(s=null===(l=e.facet)||void 0===l?void 0:l.legacyProductsIds)&&void 0!==s?s:[]]},ey=e=>{var t,i,n,l,a,o,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===(a=e.facet)||void 0===a?void 0:a.depositAmount),currency:null!==(g=null===(o=e.facet)||void 0===o?void 0:o.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},ej=async e=>{let{tagUrl:t,depositTags:i,setTag:n,toggles:l,limit:a,shouldFetchTexts:o=!0}=e,s=await eC({tagUrl:t,depositTags:i,toggles:l,limit:a,shouldFetchTexts:o});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},eC=async e=>{var t,i,n,l,a,o,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!==(o=null==f?void 0:null===(n=f.data)||void 0===n?void 0:n.textList)&&void 0!==o?o:[],...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===(a=f.data)||void 0===a?void 0:a.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:a}=e,o=["vklady"];n&&o.push("teg_".concat(n)),l&&o.push("reg_".concat(l)),a&&o.push(a);let s=o.join("/"),r=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:a}=(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:a}),[i,l,a])}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:a,separator:o="?"}=e,s=(0,T.xn)(t,n,i?"reg_"+i:"",l===i?"":l);return a?s+o+a: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,a=n>-1?i[n+1]:null,o=l?t.find(e=>{let{url:t}=e;return t===l.slice(4)}):null,s=o&&a?o.towns.find(e=>{let{url:t}=e;return t===a}):null;return{region:o,town:s}},eH=e=>{let{pageName:t,regions:i,initialValues:n}=e,[l,a]=(0,r.useState)(!0),{asPath:o,replace:s}=(0,en.P)(),c=(0,r.useMemo)(()=>{var e;return null==o?void 0:null===(e=o.split("?")[0])||void 0===e?void 0:e.split("#")[0].split("/").slice(1)},[o]),d=(0,r.useMemo)(()=>c.find(e=>e.includes("teg_")),[c]),{region:u,town: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=o.indexOf("?"),l=o.indexOf("#"),a=n<l||l<0?"?":"#",r=eV({baseUrl:"/"+t,regionUrl:e,tagUrl:d,townUrl:i,params:o.split(a)[1],separator:a});r!==o&&s(r)},[o,d,t]);return(0,r.useEffect)(()=>{a(!1)},[]),(0,r.useEffect)(()=>{if(!o.length)return;let e=eY(o);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)&&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}=eX(o,i);e&&m(e),t&&v(t);return}},[o,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:o,onCloseClick:s}=e;return(0,l.jsxs)("div",{className:e8().notification,"data-qa":o,children:[n,(0,l.jsxs)("div",{className:e8().textBlock,children:[(0,l.jsx)(a.xv,{size:"18",weight:"medium",className:e8().title,children:t}),(0,l.jsx)(a.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 ta(e){let{disableProfitNotification:t,disableNotifications:i}=e,[n,a]=(0,r.useState)(()=>!eq.getItem(tn)),[o,s]=(0,r.useState)(()=>!t&&!eq.getItem(tl)),c=(0,r.useCallback)(()=>{a(!1),eq.setItem(tn,"true")},[]),d=(0,r.useCallback)(()=>{s(!1),eq.setItem(tl,"true")},[]);return(n||o)&&!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}),o&&(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 to=(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:a,bankName:o,bonusRate:s}=t,r=[{label:"Сумма",value:"".concat((0,j.Y4)(n,2)," ₽"),id:1},{label:"Ставка",value:"".concat((0,j.Y4)(a,2)).concat(s?" + "+(0,j.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:o,src:null==i?void 0:i.logo_mob})}),(0,l.jsx)("div",{className:tg().title,children:o})]}),(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:a,term:o}=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(a,"&term=").concat(o),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)(j.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),tj=i(91304),tC=i.n(tj);let tk=(0,tr.c)(4,tC().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:C,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,j.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=>to(e,_)));(0,r.useEffect)(()=>{H(p.platform.filter(e=>to(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,ea=p.another.length>E&&!L,eo=(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)(()=>C?null:k?(0,l.jsx)(e5.Z,{pageUrl:w}):eo,[eo,C,w,k]),er=(0,r.useCallback)(()=>u&&!C?null:eo,[eo,u,C]),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)(j.nh,{className:tC().adFox,params:ts.e$,config:N})]}),[N,z,ee,D]),ed=(0,r.useCallback)(()=>(0,l.jsxs)(a.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)(tC().container,v),children:[(0,l.jsxs)(e9.X,{switchWhen:ei&&en,switchTo:ed,transitionTime:200,children:[(0,l.jsxs)(a.W2,{children:[(0,l.jsx)(a.xv,{as:"h2",className:tC().title,children:C?"Накопительные счета онлайн на Финуслугах":"Вклады онлайн от Финуслуг"}),(0,l.jsxs)(e9.X,{switchWhen:ei,switchTo:ec,transitionTime:200,children:[(0,l.jsx)(ta,{disableProfitNotification:C,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)(tC().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)(j.nh,{className:tC().adFox,params:ts.e$,config:N})]},e.url)),(0,l.jsxs)(a.X2,{className:(0,s.Z)(tC().buttonsRow,tC().spaced),children:[el&&(0,l.jsx)(o.zx,{size:"s",onClick:()=>{(0,Z.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__offers"}),R(e=>e+10)},className:tC().button,variant:"secondary",dataQa:"show-more-platform-button",children:"Еще предложения от Финуслуг"}),et&&(0,l.jsx)(o.zx,{size:"s",variant:"white",onClick:Y,dataQa:"show-nonplatform-deposits-button",children:"Предложения от банков"})]})]})]})]}),es(),(0,l.jsxs)(a.W2,{className:tC().anotherList,children:[(0,l.jsx)(a.xv,{as:"h2",id:e6.Mb,className:tC().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:tC().listItem,data:e,wide:!0})}),D&&t+1===Math.min(3,p.another.length)&&(0,l.jsx)(j.nh,{className:tC().adFox,params:ts.e$,config:N})]},e.url)),ea&&(0,l.jsx)(o.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)(tC().button,tC().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(28996);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:C,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,o.s4)(),ee=(0,j._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:C}),[eg,eb]=(0,r.useState)(H),[ex,ew]=(0,r.useState)(J),{town:ey,region:eC,handleSetTown:eD,handleSetRegion:eT}=eH({pageName:eh.a.VKLADY,regions:e_,initialValues:{region:w,town:C}}),{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:a}=(0,eR.d)(["topBanks",t],()=>eU(t),{...n});return(0,r.useMemo)(()=>{var e,t;return{isLoading:a,topBanks:l?null!==(t=null===(e=l.data)||void 0===e?void 0:e.banks)&&void 0!==t?t:[]:i}},[a,l,i])}({tagId:null!==(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:a}=(0,eM.O)(i),{data:o,isLoading:s}=(0,eR.d)(["deposits",t],()=>(0,ez.qB)({...t,isNewCustomer:!l}),{...i,disabled:n||a||(0,eS.mA)(t)}),{data:c}=null!=o?o:{},{products:d=[],productsWithIncreasedAmount:u=[],productHint:p}=null!=c?c:{};return(0,r.useMemo)(()=>({products:d,productsWithIncreasedAmount:u,productHint:p,isLoading:s||a}),[a,s,p,d,u])}({filters:e7,disabled:e5}),[ti,tn]=(0,r.useState)(!1),tl=ti?te:e8,ta=(0,r.useRef)(!1),to=(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(!ta.current){ta.current=!0;return}eL({tag:null==e2?void 0:e2.url,region:null==eC?void 0:eC.url,town:null==ey?void 0:ey.url}).then(e=>eb(e))},[null==eC?void 0:eC.url,null==e2?void 0:e2.url,null==ey?void 0:ey.url]),(0,r.useEffect)(()=>{if(!to.current){to.current=!0;return}eA({region:null==eC?void 0:eC.id}).then(e=>ew(e||null))},[null==eC?void 0:eC.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},eC,ey)||"/vklady"),ej({tagUrl:e,depositTags:d,setTag:e4})},[el,eC,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:a,sortType:o,withCapitalization:s,withMonthlyPercent:r,withPreferentialTermination:c,withRefill:d,activeBanks:u,withPartialWithdrawal:p}=e,m=a?{type:"DAY",value:Math.round(Number(a)*em.F)}:void 0;n({amount:t>0?t:void 0,sort:ev[o],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=(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,tb.current)||(tb.current=e,tf(e),tn(!1))},[tg,tf,e5]);let tx=(0,r.useCallback)(e=>{Number(tg.amountData.value)!==e&&(tg.handleAmountChange(e),tg.amountData.handleChange(e),tn(!0),tb.current&&(tb.current={...tb.current,amount:e}))},[tg]),tw=(0,eW.I)(),[ty,tj]=(0,r.useState)(f),[tC,tk]=(0,r.useState)(x);(0,r.useEffect)(()=>{I({region:eC,town:ey,tag:e2}).then(e=>{e.data&&!e.data.message&&tj(e.data)}),A({region:eC}).then(e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.region_links)&&tk(e.data.region_links)})},[null==eC?void 0:eC.url,null==ey?void 0:ey.url,null==e2?void 0:e2.url]);let tD=(0,r.useCallback)((e,t)=>{j.A7.setItem("user_region",e?JSON.stringify(e):""),j.A7.setItem("user_town",t?JSON.stringify(t):""),eT(e),eD(t||null)},[eT,eD]),tP=function(e){var t;let{filter:i,isDiscount:n,filters:l,withSavingAccounts:a,...o}=e,s=ed(!!a,i.amountData.value,null==l?void 0:l.amount),c=(0,r.useMemo)(()=>{var e;return{...o,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(!!a,i.term.value,null==l?void 0:null===(e=l.term)||void 0===e?void 0:e.value),withCapitalization:i.withCapitalization,activeBanks:i.activeBanks?i.activeBanks.map(e=>String(e.value)):void 0,withMonthlyPercent:i.withMonthlyPercent,withPreferentialTermination:i.withPreferentialTermination}}},[o,s,i.currencyUnit,i.withRefill,i.filterAdditionalSettings,i.importantDeposits,i.initialSort,i.increaseSort,i.sortType,i.term.value,i.withCapitalization,i.activeBanks,i.withMonthlyPercent,i.withPreferentialTermination,i.shouldFilterByAllOffers,n,null==l?void 0:null===(t=l.term)||void 0===t?void 0:t.value,a]);return(0,r.useMemo)(()=>(0,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:eC,allExtraInfo:R,getOnlyInitialData:!G,initialAllDepositsLength:V,initialCurrentDepositsLength:q,calculateFilterAbilities:e5,withSavingAccounts:e5,isDiscount:eY,allOffers:tp});(0,r.useEffect)(()=>{eX(e5?tP.platform.some(e=>e.hasDiscount):!eI)},[tP,e5,eI]);let tM=1===tg.currency.id||e5,tz=tM?tP.currentLength:tP.another.length,tB=(0,r.useMemo)(()=>ty?(0,eG.Y)({data:tP.another,platformDepositLists:tP.platform,tags:d,regionLinks:tC,dataRegion:ty,regions:e_,banks:E,topBanks:e6,tag:e2,region:eC,town:ey,townDuplicates:ef,setTag:t_,setRegion:tD,currencies:p}):[],[tC,d,tP,ty,e_,E,e6,e2,eC,ey,ef,t_,tD,p]),tR=null==m?void 0:m.find(e=>"five_procent"===e.unique_key),tE=(0,eN.x)({tag:e2,region:eC,town:ey,depositLists:tP,depositsCount:tz}),{subtitle:tO,h1:tU,inRegion:tW}=tE,tF=(null==tP?void 0:tP.notInitialDeposits)?tO:L,t$=(0,r.useMemo)(()=>(0,ei.L)(e2),[e2]),tQ=(0,r.useMemo)(()=>{if(!(null==eC?void 0:eC.url))return"";let e=76!==eC.id&&77!==eC.id&&(null==ey?void 0:ey.url)?null==ey?void 0:ey.url:"";return(0,T.xn)("/reg_".concat(eC.url),e)},[null==eC?void 0:eC.url,null==eC?void 0:eC.id,null==ey?void 0:ey.url]),tZ=(0,r.useMemo)(()=>{let e=[{label:"Вклады",href:"/vklady"}];return t$||e.push({label:(null==e2?void 0:e2.tag_name)||tU,href:(0,T.xn)("/vklady","/teg_".concat(null==e2?void 0:e2.url))}),tW&&e.push({label:t$?"Вклады".concat(tW):tW.trimStart().replace(/^./,"В"),href:(0,T.xn)("/vklady",t$?"":"/teg_".concat(null==e2?void 0:e2.url),tQ)}),e},[tW,tQ,t$,null==e2?void 0:e2.url,tU,null==e2?void 0:e2.tag_name]),tq=(0,ek.W)({tagName:null==e2?void 0:e2.faq_title,inRegion:tW}),{fitsForMonthlyPercentFilter:tV,fitsForPreferentialTerminationFilter:tY,fitsForCapitalization:tX,fitsForRefill:tH}=tP;(0,eF.z)({disabled:!0,showMonthlyPercent:tV,showPreferentialTermination:tY,showCapitalization:tX,showRefill:tH,filter:tg});let{comboDeposits:tK}=F({amount:+tg.amountData.value,term:+tg.term.value,initialComboDeposits:Y,tag:e2,customerId:eB}),tJ=(0,eS.ur)(!eI,!e5),tG=(0,r.useMemo)(()=>eo(null==e2?void 0:e2.url,tw),[tw,null==e2?void 0:e2.url]),t0=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)(ea,{region:eC,town:ey,tag:e2,meta:tE,depositLists:tP,regionUrl:tQ,currency:tg.currency.value,isOldUser:eI,initialDescription:D,initialTitle:N}),(0,l.jsx)(a.W2,{className:tT().mainContainer,fluid:!0,children:(0,l.jsx)(a.W2,{children:(0,l.jsx)(e1.v,{tag:e2,setTag:t_,h1:tU,region:eC,town:ey,subtitle:null!=tF?tF:"",length:G?tz:q,data:tg,terms:ts.vw,withAdditional:!tP.boundsIsEmpty,isMobile:!ee,partnerId:null,isDiscount:eY,breadcrumbsPath:tZ,showDepositGuide:tJ,isSavingAccounts:e5,showAdFoxBanner:tG})})}),(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:tx}),(0,l.jsx)(tN,{filter:tg,isDiscount:eY,isOldUser:eI,banks:E,platformDeposits:tm,anotherDeposits:tc,depositLists:tP,adFoxConfig:tw,discount:tR,isMobile:!ee,bannerUrl:t$?eV[M.N9.VKLADY]:null!==(s=eV[M.N9.VKLADY_TAGS])&&void 0!==s?s:eV[M.N9.VKLADY],isHiddenPromo:eI,existTag:!t$,town:ey,region:eC,extraInfo:R,isPlusFiveBonus:!eI,questions:U,pageUrl:eh.a.VKLADY,currentDepositsLength:G?tP.currentLength:q,allDepositsLength:G?tP.allLength:V,comboDeposits:tK,isSavingAccounts:e5,showDepositGuide:tJ,showAdFoxBanner:tG,isPlatformLoading:t0,isNonPlatformLoading:G&&td,showPlatformDeposits:tM,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:tq,Link:tS,dataLayerPush:Z.lQ,questions:tB,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:tz,withAdditional:!tP.boundsIsEmpty,partnerId:null,showMonthlyPercent:tV,showPreferentialTermination:tY,showCapitalization:tX,showRefill:tH,withCapitalizationTittle:"Капитализация",withRefillTitle:"Пополнение"})]})}},57044:function(e,t,i){"use strict";i.d(t,{M:function(){return r}});var n=i(57437),l=i(2265),a=i(90498),o=i.n(a);function s(e){return o()(e,{allowedTags:[],allowedAttributes:{}})}let r=e=>{let{textList:t,regionId:i,townId:a}=e,o=(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&&a?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===a)))}):i&&!a?n.some(e=>e.regionId===i):!i&&!a&&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,a]);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),l=i(96742),a=i(91220);let o=e=>{var t,i,o,s;let{tag:r,path:c}=e,d=(0,a.p)(c),u=String(d.amount),p=String(d.period),m=String(d.term),v={term:0,amount:"0",currencyCode:"RUB",withRefill:!1,withCapitalization:!1,withMonthlyPercent:!1,withPreferentialTermination:!1,withPartialWithdrawal:!1},h=(0,n.O)(null==r?void 0:null===(t=r.filter)||void 0===t?void 0:t.currency);return(null==r?void 0:r.filter)&&(v.term=null!==(o=null===(i=r.filter.term.values)||void 0===i?void 0:i[0])&&void 0!==o?o:null===r.filter.term.from||isNaN(Number(r.filter.term.from))?v.term:Number(r.filter.term.from),v.currencyCode=(0,l.z)(h).code,v.withRefill=!!r.filter.refill,v.withCapitalization=1===r.filter.interest_capitalization,v.withMonthlyPercent=!!r.filter.interestsMonthly,v.withPreferentialTermination=!!r.filter.earlyTermination,v.amount=String(null!==(s=r.filter.amount)&&void 0!==s?s:v.amount),v.withPartialWithdrawal=!!r.filter.partial_withdrawal),u&&!isNaN(+u)&&(v.amount=u),p&&!isNaN(+p)&&(v.term=+p),m&&!isNaN(+m)&&(v.term=+m),v}},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 a}});var n=i(2265);function l(e){let{key:t,disabled:i,callback:l}=e;a({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 a(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 o}});var n=i(21652),l=i.n(n),a=i(2265);function o(e){let{filter:t,showCapitalization:i,showMonthlyPercent:n,showPreferentialTermination:o,showRefill:s,disabled:r=!1}=e,{withCapitalization:c,withMonthlyPercent:d,withPreferentialTermination:u,withRefill:p,handleWithCapitalizationChange:m,handleWithMonthlyPercentChange:v,handleWithPreferentialTerminationChange:h,handleWithRefillChange:_}=t,f=(0,a.useMemo)(()=>({withCapitalization:c,withMonthlyPercent:d,withPreferentialTermination:u,withRefill:p}),[c,d,u,p]),g=(0,a.useRef)(f);(0,a.useEffect)(()=>{if(!r){if(!l()(g.current,f)){g.current=f;return}u&&!o&&h(!1),d&&!n&&v(!1),c&&!i&&m(!1),p&&!s&&_(!1)}},[r,f,m,v,h,_,i,n,o,s,c,d,u,p])}},10102:function(e,t,i){"use strict";i.d(t,{f:function(){return o}});var n=i(2265),l=i(90716);let a=e=>{let{isShort:t}=e;return(0,l.t9)("/money_data/Root.json".concat(t?"?short=1":""))},o=(e,t)=>{let[i,l]=(0,n.useState)({regions:[],town_duplicates:[],region:(null==t?void 0:t.region)||null,town:(null==t?void 0:t.town)||null});return(0,n.useEffect)(()=>{e||(async()=>{let e=await a({isShort:!0});e.data&&l(e.data)})()},[e]),i}},76002:function(e,t,i){"use strict";i.d(t,{f:function(){return a}});var n=i(2265),l=i(72151);function a(e){let{eventCategory:t,eventLabel:i}=e;(0,n.useEffect)(()=>{(0,l.lQ)({event:"data-event",eventAction:"view",eventCategory:t,eventLabel:i})},[])}},25813:function(e){e.exports={filterContainer:"Deposits_filterContainer__UXpE1",sectionWrapper:"Deposits_sectionWrapper__TsXhU",advantages:"Deposits_advantages__7ZAjI",whiteBackground:"Deposits_whiteBackground__k1J2j",grayBackground:"Deposits_grayBackground__8ndmz",mainContainer:"Deposits_mainContainer__ZB24g"}},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,8233,9203,6570,2971,2117,1744],function(){return e(e.s=82491)}),_N_E=e.O()}]);