(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7017],{82491:function(e,t,i){Promise.resolve().then(i.bind(i,53417)),Promise.resolve().then(i.bind(i,69767)),Promise.resolve().then(i.t.bind(i,88003,23)),Promise.resolve().then(i.bind(i,15037)),Promise.resolve().then(i.bind(i,98877))},93810:function(e){e.exports=function(){}},92388:function(e,t,i){"use strict";i.d(t,{$:function(){return r}});var n=i(57437),l=i(35563),a=i(54365),o=i(73727),s=i.n(o);function r(e){return(0,n.jsx)(l.xv,{...e,className:(0,a.Z)(s().caption,e.className)})}},98877:function(e,t,i){"use strict";i.r(t),i.d(t,{Deposits:function(){return tJ}});var n,l=i(57437),a=i(35563),o=i(75461),s=i(54365),r=i(2265),d=i(52074);let u=(0,d.g)("cross-link-chips-block","sc"),c=Object.freeze({crossLinkChipsBlock:u,crossLinkSlider:`${u}__slider`,crossLinkItemList:`${u}__item-list`,crossLinkItem:`${u}__item`,hiddenCrossLinkItemLink:`${u}__item--hidden`,sliderChips:`${u}__slider-chips`,sliderChipsItem:`${u}__slider-chips-item`}),m=({labels:e,dataLayerPush:t,eventCategory:i="cross-link",...n})=>{var a;let[d,u]=(0,r.useState)(null==(a=e[0])?void 0:a.name),m=n=>{let l=e.find(e=>e.name===d);u(n),t({event:"data-event",eventCategory:i,eventAction:"click_chip_cross-link-block",eventLabel:null==l?void 0:l.name})},p=e.map(e=>({id:e.name,label:e.name})),v=(e,l)=>{t({event:"data-event",eventCategory:i,eventAction:"click_link_cross-link-block",eventLabel:e.tagName,eventValue:l,url:`${n.href}/${e.url}`})};return(0,l.jsxs)(l.Fragment,{children:[p.length>=1&&(0,l.jsx)(o.iR,{options:{slidesPerView:"auto",spaceBetween:8},className:c.crossLinkSlider,children:p.map(e=>(0,l.jsx)(o.wI,{className:c.sliderChipsItem,children:(0,l.jsx)(o.cL,{value:d,onChipClick:m,chips:[e]})},e.id))}),e.length>0&&(0,l.jsx)("ul",{className:c.crossLinkItemList,children:e.map(e=>{var t;let i=e.name!==d;return null==(t=e.tags)?void 0:t.map(t=>(0,l.jsx)("li",{className:(0,s.Z)(c.crossLinkItem,i&&c.hiddenCrossLinkItemLink),children:(0,l.jsx)(o.rU,{href:`${n.href}/${t.url}`,onClick:()=>v(t,e.name),children:t.tagName})},t.id))})})]})};m.displayName="CrossLinkChipsBlock";let p=(0,d.g)("cross-link","sc"),v=Object.freeze({crossLink:p,titleWrapper:`${p}__title-wrapper`,title:`${p}__title`,crossLinkWrapper:`${p}__wrapper`,crossLinkChipsTitle:`${p}__chips-title`}),_=({sectionTitle:e,labelsData:t=[],className:i,blockTitle:n="Виды вкладов",href:o="/vklady",dataLayerPush:r})=>(0,l.jsx)("section",{className:(0,s.Z)(v.crossLink,i),children:(0,l.jsxs)(a.W2,{children:[(0,l.jsx)("div",{className:v.titleWrapper,children:(0,l.jsx)(a.X6,{as:"h2",type:"hero",className:(0,s.Z)(v.title),children:e})}),(0,l.jsxs)("div",{className:v.crossLinkWrapper,children:[n&&(0,l.jsx)(a.X6,{as:"h3",type:"h3",className:v.crossLinkChipsTitle,children:n}),(0,l.jsx)(m,{labels:t.content,href:o,dataLayerPush:r})]})]})});_.displayName="CrossLink";let h=(0,d.g)("expert-quote","sc"),f=Object.freeze({expertQuote:h,wrapper:`${h}__wrapper`,title:`${h}__title`,card:`${h}__card`,content:`${h}__content`,aboutText:`${h}__aboutText`,about:`${h}__about`,img:`${h}__img`,name:`${h}__name`,position:`${h}__position`,text:`${h}__text`}),g=(0,r.memo)(({className:e,quote:t})=>t?(0,l.jsx)("section",{className:(0,s.Z)(f.wrapper,e),children:(0,l.jsxs)(a.W2,{children:[(0,l.jsx)(a.X6,{as:"h2",type:"display",weight:"bold",className:(0,s.Z)(f.title,"mb-6"),children:"Мнение эксперта"}),(0,l.jsx)("div",{className:f.card,children:(0,l.jsxs)("div",{className:f.content,children:[(0,l.jsxs)("div",{className:f.about,children:[t.expert.photo&&(0,l.jsx)("a",{href:t.expert.url,children:(0,l.jsx)("div",{className:f.img,style:{backgroundImage:`url(${t.expert.photo})`}})}),(0,l.jsxs)("div",{className:f.aboutText,children:[(0,l.jsx)("a",{href:t.expert.url,className:f.name,children:t.expert.name}),(0,l.jsx)("p",{className:f.position,dangerouslySetInnerHTML:{__html:t.expert.position}})]})]}),(0,l.jsx)("p",{className:f.text,dangerouslySetInnerHTML:{__html:t.content}})]})})]})}):null);g.displayName="ExpertQuote";var b=i(73514);let x=(0,d.g)("seo-text","sc"),y=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`}),N=({blockTitle:e,content:t,sectionTitle:i,className:n})=>(0,l.jsx)("section",{className:(0,s.Z)(y.seoText,n),children:(0,l.jsxs)(a.W2,{children:[(0,l.jsx)("div",{className:y.titleWrapper,children:(0,l.jsx)(a.X6,{as:"h2",type:"hero",className:(0,s.Z)(y.title),children:i})}),(0,l.jsxs)("div",{className:y.wrapper,children:[(0,l.jsx)(a.X6,{as:"h3",type:"h3",className:(0,s.Z)(y.blockTitle),children:e}),(0,l.jsx)("div",{className:y.text,dangerouslySetInnerHTML:{__html:t||""}})]})]})});N.displayName="SeoText";var D=i(27648),C=i(99376),w=i(50666),T=i(77337),j=i(90716);let k=e=>{let{region:t,town:i,tag:n}=e;return(0,j.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,j.t9)("/money_data/DepositRegion.json?region_links=1".concat(t?"&region="+t.url:""))};var L=i(72616),I=i(19312),E=i(65716),S=i(37162),P=i(14862);let M=e=>(0,j.t9)("/api/v1/deposits/combo",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0});var R=i(94943),O=i(64671),z=i(6164),B=e=>{var t;let{amount:i,customerId:n,termInDays:l,termInMonths:a}=e;return{amount:i,term:{value:null!==(t=null!=l?l:a)&&void 0!==t?t:0,type:l?z.e.DAY:z.e.MONTH},...n&&{customerId:n}}};let F=(0,O.b)(),U=(e,t)=>e?{...e,totalProfit:e.totalProfit-t}:null,W=e=>{let{amount:t,term:i,initialComboDeposits:n,customerId:l,tag:a,isTermInDays:o}=e,s=t&&i&&(null==a?void 0:a.url)!==R.z.nakop,[d,u]=(0,r.useState)(U(s?n:null,t));return(0,r.useEffect)(()=>{if(!s){u(null);return}F(async()=>{var e;u(U(null!==(e=(await M(B({amount:t,customerId:l,[o?"termInDays":"termInMonths"]:i}))).data)&&void 0!==e?e:null,t))})},[l,t,i,s,o]),{comboDeposits:d}};var Q=i(49090),Y=i(80684),Z=i(72151),G=i(99193),$=i(39421),q=i.n($),V=(0,r.memo)(function(e){let{visible:t,eventCategory:i,amount:n=0,bankName:d="",rate:u=0,onTipsApply:c}=e,[m,p]=(0,r.useState)({amount:n,bankName:d,rate:u});(0,r.useEffect)(()=>{t&&p({amount:n,bankName:d,rate:u})},[n,d,u,t]);let v=(0,r.useRef)(null);(0,G.Z)({itemRef:v,eventCategory:i,eventAction:"view_hint",eventLabel:""});let _=(0,r.useCallback)(()=>{(0,Z.lQ)({eventCategory:i,eventAction:"click_hint_button"}),c(n)},[n,i,c]);return(0,l.jsx)(a.W2,{className:(0,s.Z)(q().depositTips,t&&q().visible),"data-qa":"deposit-tips",children:(0,l.jsxs)("div",{className:q().tipContent,ref:v,children:[(0,l.jsx)(Y.IconFdsFlashO,{size:24,className:q().icon}),(0,l.jsxs)("div",{className:q().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(m.bankName,"\xbb под ").concat((0,Q.og)(m.rate)," с минимальной суммой от ").concat((0,Q.lb)(m.amount))})]}),(0,l.jsx)(o.zx,{className:q().mobileButton,size:"xs",variant:"secondary",appearance:"fill",iconRight:(0,l.jsx)(Y.IconFdsChevronRightO,{}),dataQa:"deposit-tips-show-button-mobile",onClick:_,children:"Посмотреть"}),(0,l.jsx)(o.zx,{className:q().desktopButton,size:"xs",variant:"primary",appearance:"ghost",iconRight:(0,l.jsx)(Y.IconFdsChevronRightO,{}),dataQa:"deposit-tips-show-button-desktop",onClick:_,children:"Посмотреть"})]})})},(e,t)=>e.visible===t.visible),H=i(80691),X=i(57044),K=i(66726),J=i(79588),ee=i(32046),et=i(14441);let ei=Object.freeze(["moskva","sankt-peterburg"]);var en=(0,r.memo)(function(e){let{region:t,tag:i,meta:n,depositLists:a,regionUrl:o,currency:s,isOldUser:d,town:u,initialDescription:c,initialTitle:m,quote:p,isMetaReady:v}=e,{asPath:_}=(0,et.P)(),h=_.split("?")[0].split("#")[0],{minDepositAmount:f,minTermPeriod:g,highPrice:b,inRegion:x,h1:y,description:N,title:D}=n,C=(0,ee.L)(i),w=(null==a?void 0:a.notInitialDeposits)&&v?D:m,T=(null==a?void 0:a.notInitialDeposits)&&v?N:c;return(0,r.useEffect)(()=>{document.title=w;let e=document.querySelector("link[rel=canonical]"),t=document.querySelector('meta[name="description"]');t&&t.setAttribute("content",T),e&&(e.href="".concat(P.publicConfig.BASE_URL).concat(h))},[w,h,T]),(0,l.jsxs)(l.Fragment,{children:[C&&t&&ei.includes(t.url)&&(0,l.jsx)(J.Z,{minDepositAmount:f,minTermPeriod:g,regionName:t.name_p,maxRate:b,regionUrl:t.url}),(0,l.jsx)(H.g,{regionUrl:o,tag:i}),!!(null==i?void 0:i.text.length)&&(0,l.jsx)(X.M,{textList:i.text,regionId:null==t?void 0:t.region_id,townId:null==u?void 0:u.id}),(0,l.jsx)(K.Q,{filterCurrency:s,currentLength:a.currentLength,isHiddenPromo:d,description:T,h1:y,inRegion:x,platform:a.platform,another:a.another,regionUrl:o,tagUrl:!C&&i?i.url:"",quote:p})]})});let el=e=>{let{isDefault:t,tag:i,h1:n,inRegion:l,basePath:a="/vklady"}=e,o=[{label:"Вклады",href:a}];if(!t&&l){var s;o.push({label:null!==(s=null==i?void 0:i.tag_name)&&void 0!==s?s:n,href:(0,T.xn)(a,"/teg_".concat(null==i?void 0:i.url))})}return o};var ea=i(21652),eo=i.n(ea);let es=e=>{if(e.clientSortType)return{amount:Number(e.amountData.value),term:Number(e.term.value),activeBanks:e.activeBanksValue,sortType:e.clientSortType,withCapitalization:e.withCapitalization,withMonthlyPercent:e.withMonthlyPercent,withPreferentialTermination:e.withPreferentialTermination,withPartialWithdrawal:e.withPartialWithdrawal,withRefill:e.withRefill}},er=(e,t)=>eo()(e,t);var ed=i(98160);let eu=e=>e.length?[ed.vw[0],...e.map(e=>({value:e.durationOfDays,label:e.termLabel}))]:ed.vw,ec=e=>{let{isDepositsLoading:t,isCustomerLoading:i,isPlatformDepositsLoading:n,hasFilters:l,mounted:a,platformLoadingDisabled:o,requestedWithQueryFilters:s}=e;return a?t&&a||i||o&&(n||!l&&a):s};var em=i(33600),ep=i(36639);let ev=(e,t,i)=>e?t:i?String(i):void 0,e_=(e,t,i,n)=>e||!t?i?Number(i):void 0:n;var eh=i(71931),ef=i(91627);let eg=Object.freeze({[em.ER.Profit]:"PROFIT",[em.ER.Rate]:"RATE",[em.ER.RatePlusBonus]:"CUMULATIVE_RATE"}),eb=e=>{if(e)return{type:"DAY",value:P.publicConfig.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED?Number(e):Math.round(Number(e)*ef.F)}};var ex=i(81849);let ey=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,j.t9)("/api/v1/quotes?quoteUrl=".concat(e,"&published=true"),null,{isMpScApi:!0},t)},eN=e=>{if(!Array.isArray(e)||0===e.length)return null;let t=Math.floor(Math.random()*e.length);return e[t]},eD=async e=>{var t,i;let{tag:n,region:l,town:a}=e,o=["vklady"];n&&o.push("teg_".concat(n)),l&&o.push("reg_".concat(l)),a&&o.push(a);let s=o.join("/"),r=eN(null!==(i=null===(t=(await ey(s)).data)||void 0===t?void 0:t.content)&&void 0!==i?i:[]);return r?{...r,content:r.content}:null};var eC=i(89911);let ew=e=>{var t;let{tagUrl:i,regionUrl:n,townUrl:l,initialQuote:a}=e,{data:o,isLoading:s}=(0,eC.d)(["quote",i,n,l],()=>eD({tag:i,region:n,town:l}),{fallbackData:a,revalidateOnFocus:!1});return{quote:null!==(t=null!=o?o:a)&&void 0!==t?t:null,isLoading:s}},eT=async function(e){var t;let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new URLSearchParams({url:e}).toString();return null!==(t=(await (0,j.t9)("/api/v2/seo-texts/by-url?".concat(n),null,{isMpScApi:!0},i)).data)&&void 0!==t?t:[]},ej=async e=>{var t,i;let{url:n}=e;return null!==(i=null===(t=(await eT(n)).find(e=>"SEO Текст"===e.type.name))||void 0===t?void 0:t.content[0])&&void 0!==i?i:null},ek=e=>{let{url:t,initialSeoText:i}=e,{data:n,isLoading:l}=(0,eC.d)(["seoText",t],()=>ej({url:t}),{fallbackData:i,revalidateOnFocus:!1});return{seoText:null!=n?n:null,isLoading:l}};var eA=i(97793),eL=i(69393),eI=i(53931),eE=i(36578);let eS=[{displayDuration:{years:0,months:7,days:0},maxRate:0,durationOfDays:213},{displayDuration:{years:0,months:8,days:0},maxRate:0,durationOfDays:243}],eP=e=>{let{displayDuration:{years:t,months:i,days:n}}=e,l=[];return t&&l.push((0,eE.PY)(t,eL.Nu.YEAR)),i&&l.push((0,eE.PY)(i,eL.Nu.MONTH)),n&&l.push((0,eE.PY)(n,eL.Nu.DAY)),{...e,termLabel:l.join(" ")}},eM=e=>{let t=new Map;return null==e||e.forEach(e=>t.set(e.durationOfDays,eP(e))),eS.forEach(e=>t.set(e.durationOfDays,eP(e))),Array.from(t.values()).sort((e,t)=>e.durationOfDays-t.durationOfDays)};var eR=i(58580);let eO=(e,t)=>e?(0,j.t9)((0,T.jb)("/api/v3/product-tags/".concat(e),{limit:t}),null,{isMpScApi:!0}):{data:null,error:null},ez=(e,t,i)=>{if(!e)return{data:null,error:null};let n=(()=>{let n="/api/v1/deposit-tags/".concat(e,"/texts"),l=[];return t&&l.push("region=".concat(t)),i&&l.push("town=".concat(i)),l.length>0&&(n+="?".concat(l.join("&"))),n})();return(0,j.t9)(n,null,{isMpScApi:!0})},eB=e=>null!=e?e:null,eF=e=>null!=e?e:"",eU=e=>null==e?void 0:e.map(e=>({title:e.title||"",content:[{type:"html",data:{html:e.content}}],regions:e.regions,...e.displayInMicrodata&&{displayInMicrodata:e.displayInMicrodata}})),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:[]]},eQ=e=>{var t,i,n,l,a,o,s,r,d,u,c,m,p,v,_,h,f,g,b,x,y;return e?{id:eF(e.id),url:eF(e.url),title:eF(e.individualTitle),subtitle:eF(e.individualSubtitle),description:eF(e.individualDescription),individualDescription:eF(e.individualDescription),name:eF(e.internalName),tag_name:eF(e.tagName),text:eU(null!==(f=e.textList)&&void 0!==f?f:[]),calc_amount:eB(null===(t=e.facet)||void 0===t?void 0:t.depositAmount),calc_term:eB(null===(i=e.facet)||void 0===i?void 0:i.depositTerm),calc_currency_id:eB(null===(n=e.facet)||void 0===n?void 0:n.currency),filter:{term:{from:String(null!==(g=null===(l=e.facet)||void 0===l?void 0:l.depositTerm)&&void 0!==g?g:0),to:null},amount:eB(null===(a=e.facet)||void 0===a?void 0:a.depositAmount),currency:null!==(b=null===(o=e.facet)||void 0===o?void 0:o.currency)&&void 0!==b?b:"RUB",type:eF(null===(s=e.facet)||void 0===s?void 0:s.type),partial_withdrawal:(null===(r=e.facet)||void 0===r?void 0:r.partialWithdrawal)?1:0,online_application:0,finuslugi_application:0,commercial:(null===(d=e.facet)||void 0===d?void 0:d.commercialPlacement)?1:0,refill:(null===(u=e.facet)||void 0===u?void 0:u.replenishment)?1:0,interest_capitalization:(null===(c=e.facet)||void 0===c?void 0:c.capitalization)?1:0,earlyTermination:!!(null===(m=e.facet)||void 0===m?void 0:m.earlyTermination),interestsMonthly:!!(null===(p=e.facet)||void 0===p?void 0:p.interestsMonthly),displayNonPlatform:!!(null===(v=e.facet)||void 0===v?void 0:v.displayNonPlatform),rate:eB(null===(_=e.facet)||void 0===_?void 0:_.depositRate)},disable_filter:(null===(h=e.facet)||void 0===h?void 0:h.filterUsage)?0:1,position:null!==(x=e.sortNumber)&&void 0!==x?x:0,deposits:eW(e),default:e.useByDefault?1:0,region_page:{is_show:null!==(y=e.isPublishedTagAndArea)&&void 0!==y&&y,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:eF(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:eB(e.stats)}:null},eY=async e=>{let{tagUrl:t,depositTags:i,setTag:n,toggles:l,limit:a,shouldFetchTexts:o=!0,regionId:s,townId:r}=e,d=await eZ({tagUrl:t,depositTags:i,toggles:l,limit:a,shouldFetchTexts:o,regionId:s,townId:r});if(n&&d){var u,c;n(d),null===(c=window)||void 0===c||null===(u=c.scrollTo)||void 0===u||u.call(c,0,0)}return d},eZ=async e=>{var t,i,n,l,a,o,s,r;let{tagUrl:d,depositTags:u,limit:c,shouldFetchTexts:m,regionId:p,townId:v}=e,_=null==u?void 0:null===(t=u.find(e=>{let{url:t}=e;return t===d}))||void 0===t?void 0:t.id,h=null==u?void 0:null===(i=u.find(e=>{let{name:t}=e;return"DEFAULT"===t}))||void 0===i?void 0:i.id,f=null!=_?_:h,g=await eO(f,c),b=m?await ez(f,p,v):void 0;return eQ({...null==g?void 0:g.data,textList:[...null!==(o=null==b?void 0:null===(n=b.data)||void 0===n?void 0:n.textList)&&void 0!==o?o:[],...null!==(s=null==b?void 0:null===(l=b.data)||void 0===l?void 0:l.regionContent)&&void 0!==s?s:[],...null!==(r=null==b?void 0:null===(a=b.data)||void 0===a?void 0:a.townContent)&&void 0!==r?r:[]]})};var eG=i(93053),e$=i(58864),eq=i(40780),eV=i(65868),eH=i(47492),eX=i(65621);function eK(e){let{tagId:t,banksByBic:i,...n}=e,{data:l,isLoading:a}=(0,eC.d)(["non-platform-deposits-by-tag",t],()=>(0,eA.PT)(t),n);return(0,r.useMemo)(()=>({nonPlatformDeposits:(null!=l?l:[]).map(e=>{var t;return(0,eX.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 eJ(){let e=await (0,eA.vI)();if(!e.data)return[];let{boundaryValues:{totalPages:t},products:i}=e.data,n=Array.from({length:t-1},(e,t)=>(0,eA.vI)("active",{page:t+1}));return[...i,...(await Promise.all(n)).flatMap(e=>{var t,i;return null!==(i=null===(t=e.data)||void 0===t?void 0:t.products)&&void 0!==i?i:[]})]}var e0=i(86935);let e1=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,j.t9)("/api/v1/banks/filtered".concat(e?"?tagId=".concat(e):""),null,{isSeoApi:!0},t)};var e2=i(81237),e9=i(92317),e6=i(36204),e3=i(57977),e7=i(68026);let e4=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},e8=e=>{try{let t=eV.A.getItem("user_region"),i=eV.A.getItem("user_town"),n=t&&!e.includes(t.url),l=i&&!e.includes(i.url)&&i.url!==(null==t?void 0:t.url);if(t&&(n||l))return{regionUrl:t.url,townUrl:null==i?void 0:i.url};if(t&&e.includes(t.url)&&1===Number(eV.A.getItemRaw("all_russia_selected")))return null}catch(e){console.log(e)}},e5=(e,t)=>{let i=e.split("#")[0].split("?")[0].split("/"),n=i.findIndex(e=>e.includes("reg_")),l=n>-1?i[n]:null,a=n>-1?i[n+1]:null,o=l?t.find(e=>{let{url:t}=e;return t===l.slice(4)}):null,s=o&&a?o.towns.find(e=>{let{url:t}=e;return t===a}):null;return{region:o,town:s}},te=e=>{let{pageName:t,regions:i,initialValues:n,isRegionPageEnabled:l=!0}=e,[a,o]=(0,r.useState)(!0),{asPath:s,replace:d}=(0,et.P)(),u=(0,r.useMemo)(()=>{var e;return null==s?void 0:null===(e=s.split("?")[0])||void 0===e?void 0:e.split("#")[0].split("/").slice(1)},[s]),c=(0,r.useMemo)(()=>u.find(e=>e.includes("teg_")),[u]),{region:m,town:p,handleSetRegion:v,handleSetTown:_}=(0,e7.k)(),h=(0,r.useCallback)(async function(){let{regionUrl:e,townUrl:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((!l||"teg_premium"===c)&&e)return;let n=s.indexOf("?"),a=s.indexOf("#"),o=n<a||a<0?"?":"#",r=e4({baseUrl:"/"+t,regionUrl:e,tagUrl:c,townUrl:i,params:s.split(o)[1],separator:o});r!==s&&d(r)},[s,c,t,l]);return(0,r.useEffect)(()=>{o(!1)},[]),(0,r.useEffect)(()=>{if(!s.length)return;let e=e8(s);if(void 0!==e){e&&h(e);return}if(1===Number(eV.A.getItemRaw("all_russia_selected"))&&!(null==m?void 0:m.url.length)&&!(null==p?void 0:p.url.length)&&s.includes("reg_")){h();return}if(!(null==m?void 0:m.url.length)&&!(null==p?void 0:p.url.length)&&s.includes("reg_")){let{region:e,town:t}=e5(s,i);e&&v(e),t&&_(t);return}},[s,h,null==m?void 0:m.url,null==p?void 0:p.url,i,v,_]),(0,r.useMemo)(()=>({region:l&&(m||a&&(null==n?void 0:n.region))||null,town:l&&(p||a&&(null==n?void 0:n.town))||null,handleSetRegion:v,handleSetTown:_}),[m,p,v,_,a,n])};var tt=i(10102),ti=i(48034),tn=i(76002),tl=i(94195),ta=i(90862),to=i(7206),ts=i(84213),tr=i(56949),td=i(28819),tu=i(26523),tc=i(14761),tm=i(83802),tp=i(33145),tv=i(57291),t_=i(95819),th=i(40482),tf=i.n(th),tg={src:"/deposits/_next/static/media/finuslugi.c398cf70.svg",height:8,width:12,blurWidth:0,blurHeight:0},tb=(0,r.memo)(function(e){let{isSavingAccount:t,isOldUser:i}=e,n=(0,ti.Z)(),a=(0,r.useCallback)(()=>(0,eq.l)(S.Yf,{offset:n,position:"top"}),[n]);return(0,l.jsxs)("div",{className:tf().additionalTips,"data-qa":"additional-tips",children:[!i&&!t&&(0,l.jsx)(t_.T,{dataQa:"additional_tips-how_to_open-button",onClick:a,children:(0,l.jsx)(o.Vp,{className:tf().tag,iconLeft:(0,l.jsx)(tp.default,{src:tg,alt:"",unoptimized:!0,width:12}),label:"Как открыть вклад",variant:"secondary"})}),(0,l.jsx)(o.Vp,{dataQa:"additional_tips-asv-text",className:tf().tag,iconLeft:(0,l.jsx)(tp.default,{src:tv.Z,unoptimized:!0,width:12,alt:""}),label:"".concat(t?"Счета":"Вклады"," застрахованы в АСВ")})]})}),tx=i(85665),ty=i(72798),tN=i.n(ty);function tD(e){let{title:t,caption:i,icon:n,dataQa:o,onCloseClick:s}=e;return(0,l.jsxs)("div",{className:tN().notification,"data-qa":o,children:[n,(0,l.jsxs)("div",{className:tN().textBlock,children:[(0,l.jsx)(a.xv,{size:"18",weight:"medium",className:tN().title,children:t}),(0,l.jsx)(a.xv,{size:"14",weight:"regular",className:tN().caption,children:i})]}),(0,l.jsx)(Y.IconFdsCloseO,{size:"24",className:tN().closeIcon,onClick:s})]})}var tC=i(2470),tw=i.n(tC);let tT="opening-notification-closed",tj="profit-notification-closed";function tk(e){let{disableProfitNotification:t,disableNotifications:i}=e,[n,a]=(0,r.useState)(()=>!eV.A.getItem(tT)),[o,s]=(0,r.useState)(()=>!t&&!eV.A.getItem(tj)),d=(0,r.useCallback)(()=>{a(!1),eV.A.setItem(tT,"true")},[]),u=(0,r.useCallback)(()=>{s(!1),eV.A.setItem(tj,"true")},[]);return(n||o)&&!i?(0,l.jsxs)("div",{className:tw().notifications,children:[n&&(0,l.jsx)(tD,{title:"100% онлайн",caption:"Открытие без\xa0посещения банка",icon:(0,l.jsx)(Y.IconFdsHeartO,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-opening-notification",onCloseClick:d}),o&&(0,l.jsx)(tD,{title:"Доход по вкладам с одной ставкой может отличаться",caption:"Причина — разница в количестве дней вклада",icon:(0,l.jsx)(Y.IconFdsInfoCircleO,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-profit-notification",onCloseClick:u})]}):null}let tA=(e,t)=>(!!e.isNotAmount||!!e.isTermEmpty||!!e.computeData)&&(!t||!e.promo);var tL=i(72955),tI=i(41506),tE=i(26573),tS=i(70104),tP=i(82180),tM=i.n(tP),tR=i(13889),tO=i.n(tR);let tz=e=>{let{deposit:t,bank:i}=e,{amount:n,rate:a,bankName:o,bonusRate:s}=t,r=[{label:"Сумма",value:"".concat((0,tS.Y4)(n,2)," ₽"),id:1},{label:"Ставка",value:"".concat((0,tS.Y4)(a,2)).concat(s?" + "+(0,tS.Y4)(s,2):"","%"),id:2}];return(0,l.jsxs)("div",{className:tO().cardItem,children:[(0,l.jsxs)("div",{className:tO().cardHeader,children:[(0,l.jsx)("div",{className:tO().logo,children:(null==i?void 0:i.logo_mob)&&(0,l.jsx)(tp.default,{width:17,height:17,alt:o,src:null==i?void 0:i.logo_mob})}),(0,l.jsx)("div",{className:tO().title,children:o})]}),(0,l.jsx)("div",{className:tO().cardContentWrapper,children:r.map(e=>(0,l.jsxs)("div",{className:tO().cardContent,children:[(0,l.jsx)("div",{className:tO().label,children:e.label}),(0,l.jsx)("div",{className:tO().value,children:e.value})]},e.id))})]})},tB=e=>{let{pageUrl:t,banks:i,comboDeposits:n,amount:a,term:s,isTermInDays:d}=e,{totalProfit:u,averageRate:c,deposits:m}=n,p=(0,r.useRef)(null),v="deposits_".concat(t),_=n.deposits.map(e=>{let{id:t,amount:i,rate:n}=e;return"".concat(t,"_").concat(i,"_").concat(n)}).join("_");(0,G.Z)({itemRef:p,eventCategory:v,eventLabel:_,eventAction:"view_card_combo"});let h=[{label:"Средняя ставка",value:"".concat((0,tS.Y4)(c,2),"%"),id:1},{label:"Общий доход",value:"".concat((0,tS.Y4)(u,2)," ₽"),id:2}],f=(0,r.useCallback)(e=>{var t;return null!==(t=i.find(t=>t.bic===(0,tE.g)(e.bic)))&&void 0!==t?t:null},[i]),g=(0,r.useMemo)(()=>(0,T.jb)("/".concat(t,"/combo"),{amount:a,[d?"d_period":"term"]:s}),[a,d,t,s]);return(0,l.jsxs)(D.default,{ref:p,className:tM().card,href:g,children:[(0,l.jsx)("span",{className:tM().tip,children:"Комбо"}),(0,l.jsxs)("div",{className:tM().infoWrapper,children:[(0,l.jsx)("div",{className:tM().title,children:"Два вклада выгоднее"}),(0,l.jsx)("div",{className:tM().infoContent,children:h.map(e=>(0,l.jsxs)("div",{className:tM().info,children:[(0,l.jsx)("div",{className:tM().label,children:e.label}),(0,l.jsx)("div",{className:tM().value,children:e.value})]},e.id))})]}),(0,l.jsx)("div",{className:tM().comboCardWrapper,children:m.map((e,t)=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(tz,{bank:f(e),deposit:e},e.id),!t&&(0,l.jsx)("span",{className:tM().plus})]}))}),(0,l.jsx)(o.zx,{className:tM().button,size:"xs",stretch:!0,onClick:()=>{(0,Z.lQ)({eventLabel:_,eventCategory:"deposits_".concat(t),eventAction:"click_card_combo"})},children:"Подробнее"})]})};var tF=i(25765),tU=i(59829),tW=i(91304),tQ=i.n(tW);let tY=(0,tL.c)(4,tQ().skeleton),tZ=e=>{var t;let{banks:i,anotherDeposits:n,platformDeposits:d,filter:u,isOldUser:c,depositLists:m,className:p,bannerUrl:v,isHiddenPromo:_,existTag:h,isPlusFiveBonus:f,extraInfo:g,questions:b,pageUrl:x,comboDeposits:y,isSavingAccounts:N,showDepositGuide:D,adFoxConfig:C,showAdFoxBanner:w,isPlatformLoading:T,isNonPlatformLoading:j,showPlatformDeposits:k,newPlatformDeposits:A,disableNotifications:L,displayNonPlatform:I=!0,isTermInDays:E,showOnlyNonPromo:M}=e,R=(0,o.s4)(),O=(0,o._m)("l"),{amountData:z,term:B,handleToggleModal:F}=u,[U,W]=(0,r.useState)(10),[Q,Y]=(0,r.useState)(10),{depositData:G,openModal:$,handleOpen:q,handleClose:V}=(0,tI.j)({banks:i,anotherDeposits:n,platformDeposits:d,newPlatformDeposits:A});(0,r.useEffect)(()=>{window.postMessage({key:"depositListLoaded",value:!0},P.publicConfig.BASE_URL)},[]);let H=(0,ti.Z)(),X=(0,r.useCallback)(()=>{(0,eq.l)(S.Mb,{offset:H-48,position:"top"})},[H]);(0,r.useEffect)(()=>{T&&W(10),j&&Y(10)},[j,T]);let[K,J]=(0,r.useState)(m.platform.filter(e=>tA(e,_)));(0,r.useEffect)(()=>{J(m.platform.filter(e=>tA(e,_)))},[m,_]);let ee="deposits_details_".concat(x,"_popup"),et=y&&y.deposits.length>1,ei=m.another.length>0,en=m.platform.length>0,el=h?k&&(en||T):k,ea=h?!!I&&(ei||j):!!I,eo=!h&&(!en&&!T||!k),es=!h&&!ei&&!j,er=m.platform.length>U&&!T,eu=m.another.length>Q&&!j,ec=!!u.amountData.value&&!!u.term.value,em=(0,e$.ur)(R,!O,P.publicConfig.FEATURE_TOGGLE_DEPOSIT_FILTER_NEW_DESIGN_ENABLED),ep=(0,r.useMemo)(()=>(0,l.jsx)(td.t,{children:(0,l.jsx)(tU.Z,{id:S.uz,qrBannerUrl:v,existTag:h,pageUrl:x,newMobileAd:!0})}),[v,h,x]),ev=(0,r.useCallback)(()=>N?null:D?(0,l.jsx)(tx.Z,{pageUrl:x}):ep,[ep,N,x,D]),e_=(0,r.useCallback)(()=>c&&!N?null:ep,[ep,c,N]),eh=(0,r.useCallback)(()=>(0,l.jsx)(tu.p,{onChangeParams:F,dataQa:"not-found"}),[F]),ef=(0,r.useCallback)(()=>(0,l.jsxs)(a.W2,{children:[(0,l.jsx)(tu.p,{onChangeParams:F,dataQa:"not-found"}),ev(),e_()]}),[F,e_,ev]);return(0,l.jsxs)("section",{id:S.TM,className:(0,s.Z)(tQ().container,p),children:[(0,l.jsxs)(tc.X,{switchWhen:eo&&es,switchTo:ef,transitionTime:200,children:[el&&(0,l.jsxs)(a.W2,{children:[(0,l.jsx)(a.xv,{as:"h2",className:tQ().title,children:N?"Накопительные счета онлайн на Финуслугах":"Вклады онлайн от Финуслуг"}),(0,l.jsxs)(tc.X,{switchWhen:eo,switchTo:eh,transitionTime:200,children:[em?(0,l.jsx)(tb,{isSavingAccount:N,isOldUser:c}):(0,l.jsx)(tk,{disableProfitNotification:N,disableNotifications:L}),(0,l.jsxs)(tc.X,{switchWhen:T,switchTo:tY,transitionTime:200,children:[et&&(0,l.jsx)(tB,{pageUrl:x,banks:i,comboDeposits:y,amount:+z.value,term:+B.value,isTermInDays:E}),K.slice(0,U).map((e,t)=>(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("div",{"data-qa":"platform",children:P.publicConfig.FEATURE_TOGGLE_DEPOSIT_CARD_NEW_DESIGN_ENABLED?(0,l.jsx)(tF.B,{isPlatform:!0,onOpenDetailModal:q,className:(0,s.Z)(tQ().listItem,e.promo&&"click_kartochka_promo_neavtorizovannaya_zona"||"click_kartochka_obychnaya_neavtorizovannaya_zona"),data:e,isTermInDays:!0,baseUrl:"/".concat(x),isFullFilter:ec,showOnlyNonPromo:M},e.url+e.id):(0,l.jsx)(tm.B,{isPlatform:!0,onOpenDetailModal:q,className:(0,s.Z)(tQ().listItem,e.promo&&"click_kartochka_promo_neavtorizovannaya_zona"||"click_kartochka_obychnaya_neavtorizovannaya_zona"),isOldUser:c,data:e,wide:!0,isTermInDays:!0,baseUrl:"/".concat(x)},e.url+e.id)}),w&&t+1===Math.min(3,K.length)&&(0,l.jsx)(tr.Z,{className:tQ().adFox,params:ed.QA,config:C})]},e.url)),(0,l.jsxs)(a.X2,{className:(0,s.Z)(tQ().buttonsRow,tQ().spaced),children:[er&&(0,l.jsx)(o.zx,{size:"s",onClick:()=>{(0,Z.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__offers"}),W(e=>e+10)},className:tQ().button,variant:"secondary",dataQa:"show-more-platform-button",children:"Еще предложения от Финуслуг"}),ei&&(0,l.jsx)(o.zx,{size:"s",variant:"white",onClick:X,dataQa:"show-nonplatform-deposits-button",children:"Предложения от банков"})]})]})]})]}),ev(),ea&&(0,l.jsxs)(a.W2,{className:tQ().anotherList,children:[(0,l.jsx)(a.xv,{as:"h2",id:S.Mb,className:tQ().title,children:"Предложения от банков"}),(0,l.jsx)(tc.X,{switchWhen:es,switchTo:eh,children:(0,l.jsxs)(tc.X,{transitionTime:200,switchWhen:j,switchTo:tY,children:[m.another.slice(0,Q).map((e,t)=>(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("div",{"data-qa":"nonplatform",children:P.publicConfig.FEATURE_TOGGLE_DEPOSIT_CARD_NEW_DESIGN_ENABLED?(0,l.jsx)(tF.B,{onOpenDetailModal:q,className:tQ().listItem,data:e,isPlatform:!1,isTermInDays:E,baseUrl:"/".concat(x),isFullFilter:ec,showOnlyNonPromo:M}):(0,l.jsx)(tm.B,{onOpenDetailModal:q,className:tQ().listItem,data:e,wide:!0,isPlatform:!1,isTermInDays:E,baseUrl:"/".concat(x)})}),w&&t+1===Math.min(3,m.another.length)&&(0,l.jsx)(tr.Z,{className:tQ().adFox,params:ed.Eu,config:C})]},e.url)),eu&&(0,l.jsx)(o.zx,{size:"s",onClick:()=>{(0,Z.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__lidgen"}),Y(e=>e+10)},className:(0,s.Z)(tQ().button,tQ().spaced),variant:"secondary",dataQa:"show-more-nonplatform-button",children:"Еще предложения"})]})})]}),e_()]}),G&&(0,l.jsx)(ts.Z,{data:G,isOldUser:c,isOpen:$,onClose:V,extraInfo:g,isPlusFiveBonus:f,questions:b,depositSumm:z.value,showcaseBaseUrl:x,depositTerm:null!==(t=null==B?void 0:B.label)&&void 0!==t?t:"Любой",initialAmount:Number(z.value),initialTermInMonths:Number(B.value),eventCategory:ee,showOnlyNonPromo:M})]})};var tG=i(25813),t$=i.n(tG),tq=i(18674);let tV=e=>{let{isSavingAccounts:t,isOldSavingAccountsLoading:i,isCustomerLoading:n,isTermsLoading:l,isPlatformDepositsLoading:a,hasFilters:o}=e;return t?!i&&!n:!(l||n||a||!o)};var tH=i(47279);let tX=null!==(n=(0,w.env)("NEXT_PUBLIC_BASE_URL"))&&void 0!==n?n:"*",tK=e=>(0,l.jsx)(D.default,{...e}),tJ=e=>{var t,i,n,s,d,u;let{stores:c,depositTags:m,depositTag:p,currencies:v,discounts:h,bounds:f,depositRegion:x,depositRegionLinks:y,defaultRegion:D,defaultTown:w,depositsTitle:j,depositsDescription:M,depositsSubtitle:R,initialAnotherDeposits:O,initialPlatformDeposits:z,allExtraInfo:B,banks:F,banksCount:U,initialTopBanks:Q,questions:Y,supportData:G,journalData:$,isPlatformShowcase:q,initialCurrentDepositsLength:H,initialAllDepositsLength:X,initialComboDeposits:K,initialQuote:J,crossLinkLabels:ei,initialSeoText:ea,showOnlyNonPromo:eo=!1,requestedWithQueryFilters:ed}=e,ef=(0,o.s4)(),ey=(0,o._m)("l"),{asPath:eN,push:eD}=(0,et.P)(),eT=(0,C.usePathname)(),ej=(0,ti.Z)(12,24),eL=(0,r.useMemo)(()=>eo?eR.a.VKLADY_OLD:eR.a.VKLADY,[eo]);(0,tn.f)({eventCategory:"deposits_".concat(eN),eventLabel:""});let{regions:eE,town_duplicates:eS}=(0,tt.f)(!1,{region:D,town:w}),{isOldUser:eP,customerId:eO,isLoading:ez}=(0,e0.jt)(),eB=(0,e3.a)(E.tE),eF=(0,e6.K)({bannersTitle:[E.N9.DEPOSITS_ADVANTAGES,E.N9.VKLADY,E.N9.VKLADY_TAGS],queryParams:eB,stores:c}),[eU,eW]=(0,r.useState)(!eP),[eQ,eZ]=(0,r.useState)(p),[eX,e7]=(0,r.useState)(),{town:e4,region:e8,handleSetTown:e5,handleSetRegion:ts}=te({pageName:eL,regions:eE,initialValues:{region:D,town:w},isRegionPageEnabled:null==eQ?void 0:null===(t=eQ.region_page)||void 0===t?void 0:t.is_show}),{topBanks:tr}=function(e){let{tagId:t,initialTopBanks:i,...n}=null!=e?e:{},{data:l,isLoading:a}=(0,eC.d)(["topBanks",t],()=>e1(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!==(s=null==eQ?void 0:eQ.id)&&void 0!==s?s:"",initialTopBanks:Q}),td=(null==eQ?void 0:eQ.url)==="nakopitelnye",{terms:tu,isLoading:tc}=function(e){var t,i;let n=(0,r.useMemo)(()=>(0,eI.$1)(),[]),l=null!==(i=null==n?void 0:n["auth.gtm_customer_id"])&&void 0!==i?i:void 0,{data:a,isLoading:o}=(0,eC.d)(["deposit-terms",l],()=>(0,eA.rl)(l),e),s=(0,r.useMemo)(()=>{var e;return eM(null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.terms)},[null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.terms]);return(0,r.useMemo)(()=>({isLoading:o,terms:s}),[o,s])}({disabled:!P.publicConfig.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED||td,ssrLoader:!0}),tm=(0,r.useMemo)(()=>eu(tu),[tu]),{isLoading:tp,products:tv,productsWithIncreasedAmount:t_,productHint:th}=function(e){var t,i,n;let l=P.publicConfig.FEATURE_TOGGLE_NEW_BONUS_API_ENABLED,{filters:a,showOnlyNonPromo:o=!1,disabled:s}=e,{isOldUser:d,isLoading:u}=(0,e0.jt)(),{data:c,isLoading:m}=(0,eC.d)(["deposits",a],()=>(0,eA.qB)({...a,isNewCustomer:!d},l),{disabled:s||u||(0,e$.mA)(a)});return(0,r.useMemo)(()=>{var e,t,i,n,l,a,s,r,d;let p=null!==(n=null==c?void 0:null===(e=c.data)||void 0===e?void 0:e.products)&&void 0!==n?n:[],v=null!==(l=null==c?void 0:null===(t=c.data)||void 0===t?void 0:t.productsWithIncreasedAmount)&&void 0!==l?l:[];return o&&(p=(null!==(r=null==c?void 0:null===(a=c.data)||void 0===a?void 0:a.products)&&void 0!==r?r:[]).filter(e=>!e.promo),v=(null!==(d=null==c?void 0:null===(s=c.data)||void 0===s?void 0:s.productsWithIncreasedAmount)&&void 0!==d?d:[]).filter(e=>!e.promo)),{products:p,productsWithIncreasedAmount:v,productHint:null==c?void 0:null===(i=c.data)||void 0===i?void 0:i.productHint,isLoading:m||u}},[u,m,null==c?void 0:null===(t=c.data)||void 0===t?void 0:t.productHint,null==c?void 0:null===(i=c.data)||void 0===i?void 0:i.products,null==c?void 0:null===(n=c.data)||void 0===n?void 0:n.productsWithIncreasedAmount,o])}({filters:eX,showOnlyNonPromo:eo,disabled:td||tc}),[tf,tg]=(0,r.useState)(!1),tb=tf?t_:tv,tx=(0,r.useMemo)(()=>F.reduce((e,t)=>({...e,[Number(t.bic)]:t}),{}),[F]),{nonPlatformDeposits:ty,isLoading:tN}=eK({tagId:String(null!==(d=null==eQ?void 0:eQ.id)&&void 0!==d?d:""),banksByBic:tx,disabled:!(null==eQ?void 0:eQ.id)||!(null===(i=eQ.filter)||void 0===i?void 0:i.displayNonPlatform)||q}),tD=(0,r.useMemo)(()=>{var e;return null===(e=m.find(e=>"all_offers"===e.url))||void 0===e?void 0:e.id},[m]),{nonPlatformDeposits:tC}=eK({tagId:String(null!=tD?tD:""),banksByBic:tx,disabled:!tD}),{oldSavingAccounts:tw,isLoading:tT}=function(e){let{data:t,isLoading:i}=(0,eC.d)("old-saving-accounts",()=>eJ(),e);return(0,r.useMemo)(()=>({oldSavingAccounts:null!=t?t:[],isLoading:i}),[t,i])}({disabled:!td}),tj=(0,r.useMemo)(()=>(0,tq.j)({path:eN,tag:eQ}),[eN,eQ]),tk=(0,r.useCallback)(async e=>{await eY({tagUrl:e,depositTags:m,setTag:eZ,regionId:null==e8?void 0:e8.region_id,townId:null==e4?void 0:e4.id}),eD((0,eH.C)("deposits",{id:"",name:"",url:e},e8,e4,void 0,eL)||"/vklady")},[eD,e8,e4,eL,m]),tA=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,eh.y1)(e=>{let{amount:t,term:a,sortType:o,withCapitalization:s,withMonthlyPercent:r,withPreferentialTermination:d,withRefill:u,activeBanks:c,withPartialWithdrawal:m}=e;n({amount:t>0?t:void 0,sort:eg[o],term:eb(a),withCapitalization:s||void 0,withMonthlyPayments:r||void 0,withPreferentialTermination:d||void 0,withPartialWithdrawal:m||void 0,withRefill:u||void 0,isNewCustomer:i,providerBICs:null==c?void 0:c.map(e=>l[e])})},500)}({banks:F,isNewCustomer:!eP,setFilters:e7}),tL=P.publicConfig.FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED&&!td,[tI,tE]=(0,r.useState)(!1),tS=(0,tH.L)({tag:eQ,currencies:v,banks:F,defaultValues:tj,isDiscount:eU,hasDynamicBonus:tI,sortLoading:(0,e$.ur)(!td,ez),termOptions:tm,isTermInDays:tL}),tP=tS.shouldFilterByAllOffers&&(null==tC?void 0:tC.length)?tC:ty,tM=(0,r.useRef)(void 0);(0,r.useEffect)(()=>{if(td||!tS.clientSortType)return;let e=es(tS);e&&!er(e,tM.current)&&(tM.current=e,tA(e),tg(!1))},[tS,tA,td]);let tR=(0,r.useCallback)(e=>{if(Number(tS.amountData.value)!==e){if(tS.handleAmountChange(e),tS.amountData.handleChange(e),tM.current){let t={...tM.current,amount:e};if(tM.current=t,P.publicConfig.FEATURE_TOGGLE_DEPOSIT_FILTER_NEW_DESIGN_ENABLED){tA(t),tA.flush(),(0,eq.l)(S.TM,{offset:ej,position:"top",delay:200});return}}tg(!0)}},[tS,tA,ej]),tO=(0,e2.I)(),[tz,tB]=(0,r.useState)(x),[tF,tU]=(0,r.useState)(y);(0,r.useEffect)(()=>{k({region:e8,town:e4,tag:eQ}).then(e=>{e.data&&!e.data.message&&tB(e.data)}),A({region:e8}).then(e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.region_links)&&tU(e.data.region_links)}),eQ&&eY({tagUrl:null==eQ?void 0:eQ.url,depositTags:m,setTag:eZ,regionId:null==e8?void 0:e8.region_id,townId:null==e4?void 0:e4.id})},[null==e8?void 0:e8.url,null==e8?void 0:e8.region_id,null==e4?void 0:e4.url,null==eQ?void 0:eQ.url]);let tW=(0,r.useCallback)((e,t)=>{eV.A.setItem("user_region",e?JSON.stringify(e):""),eV.A.setItem("user_town",t?JSON.stringify(t):""),ts(e),e5(t||null)},[ts,e5]),tQ=function(e){var t;let{filter:i,filters:n,isDiscount:l,isTermInDays:a,withSavingAccounts:o,allOffers:s,newPlatformDeposits:d,platformDeposits:u,isPlusFiveBonus:c,isOldUser:m,anotherDeposits:p,bounds:v,banks:_,bankTowns:h,town:f,region:g,discounts:b,initialAnotherDeposits:x,initialPlatformDeposits:y,allExtraInfo:N,anotherDepositsInCount:D,getOnlyInitialData:C,specialDeposits:w,initialLeadGenDeposits:T,leadGenDeposits:j,initialAllDepositsLength:k,initialCurrentDepositsLength:A,calculateFilterAbilities:L,showOnlyNonPromo:I}=e,E=ev(!!o,i.amountData.value,null==n?void 0:n.amount),S=(0,r.useMemo)(()=>{var e;return{newPlatformDeposits:d,platformDeposits:u,isPlusFiveBonus:c,isOldUser:m,anotherDeposits:p,bounds:v,banks:_,bankTowns:h,town:f,region:g,discounts:b,initialAnotherDeposits:x,initialPlatformDeposits:y,allExtraInfo:N,anotherDepositsInCount:D,getOnlyInitialData:C,specialDeposits:w,initialLeadGenDeposits:T,leadGenDeposits:j,initialAllDepositsLength:k,initialCurrentDepositsLength:A,calculateFilterAbilities:L,allOffers:s,withSavingAccounts:o,shouldFilterByAllOffers:i.shouldFilterByAllOffers,filter:{amount:E,rate:i.rate,currency:String(i.currencyUnit),withRefill:i.withRefill,filterAdditionalSettings:i.filterAdditionalSettings,importantDeposits:i.importantDeposits,initialSort:i.initialSort,order:i.increaseSort?em.mr.Desc:em.mr.Asc,sortType:i.sortType,isDiscount:l,term:e_(!!o,a,i.term.value,null==n?void 0:null===(e=n.term)||void 0===e?void 0:e.value),termUnit:!o&&a?"DAY":"MONTH",withCapitalization:i.withCapitalization,activeBanks:i.activeBanks?i.activeBanks.map(e=>String(e.value)):void 0,withMonthlyPercent:i.withMonthlyPercent,withPreferentialTermination:i.withPreferentialTermination},showOnlyNonPromo:I}},[E,i.rate,i.currencyUnit,i.withRefill,i.filterAdditionalSettings,i.importantDeposits,i.initialSort,i.increaseSort,i.sortType,i.term.value,i.withCapitalization,i.activeBanks,i.withMonthlyPercent,i.withPreferentialTermination,i.shouldFilterByAllOffers,l,null==n?void 0:null===(t=n.term)||void 0===t?void 0:t.value,a,d,u,c,m,p,v,_,h,f,g,b,x,y,N,D,C,w,T,j,k,A,L,o,s,I]);return(0,r.useMemo)(()=>(0,ep.O)(S),[S])}({initialAnotherDeposits:O,initialPlatformDeposits:z,platformDeposits:tw,anotherDeposits:ty,newPlatformDeposits:tb,bounds:f,isPlusFiveBonus:!eP,isOldUser:eP,filter:tS,isTermInDays:tL,filters:eX,banks:F,discounts:h,bankTowns:null,town:e4,region:e8,allExtraInfo:B,getOnlyInitialData:!ef,initialAllDepositsLength:X,initialCurrentDepositsLength:H,calculateFilterAbilities:td,withSavingAccounts:td,isDiscount:eU,allOffers:tC,showOnlyNonPromo:eo});(0,r.useEffect)(()=>{eW(td?tQ.platform.some(e=>e.hasDiscount):!eP),tE(!!tQ.platform.find(e=>e.computeData&&e.computeData.bonusRate>0))},[tQ,td,eP]);let{quote:tY}=ew({tagUrl:null==eQ?void 0:eQ.url,regionUrl:null==e8?void 0:e8.url,townUrl:null==e4?void 0:e4.url,initialQuote:J}),{seoText:tG}=ek({url:null!=eT?eT:"",initialSeoText:ea}),tJ=1===tS.currency.id||td,t0=tJ?tQ.currentLength:tQ.another.length,t1=(0,r.useMemo)(()=>tz?(0,tl.Y)({data:tQ.another,platformDepositLists:tQ.platform,tags:m,regionLinks:tF,dataRegion:tz,regions:eE,banks:F,topBanks:tr,tag:eQ,region:e8,town:e4,townDuplicates:eS,setTag:tk,setRegion:tW,currencies:v,showOnlyNonPromo:eo,basePath:eL}):[],[tz,tQ.another,tQ.platform,m,tF,eE,F,tr,eQ,e8,e4,eS,tk,tW,v,eo,eL]),t2=(0,r.useMemo)(()=>(0,ee.L)(eQ),[eQ]),t9=(0,r.useMemo)(()=>{if(!(null==e8?void 0:e8.url))return"";let e=76!==e8.id&&77!==e8.id&&(null==e4?void 0:e4.url)?null==e4?void 0:e4.url:"";return(0,T.xn)("/reg_".concat(e8.url),e)},[null==e8?void 0:e8.url,null==e8?void 0:e8.id,null==e4?void 0:e4.url]),t6=(0,r.useMemo)(()=>(null==ei?void 0:ei.content)?{content:null==ei?void 0:ei.content.map(e=>({...e,tags:e.tags.map(e=>({...e,url:"".concat(e.url).concat(t9)}))}))}:{content:[]},[ei,t9]),{fitsForMonthlyPercentFilter:t3,fitsForPreferentialTerminationFilter:t7,fitsForCapitalization:t4,fitsForRefill:t8}=tQ;(0,e9.z)({disabled:!0,showMonthlyPercent:t3,showPreferentialTermination:t7,showCapitalization:t4,showRefill:t8,filter:tS});let{comboDeposits:t5}=W({amount:+tS.amountData.value,term:+tS.term.value,initialComboDeposits:K,tag:eQ,customerId:eO,isTermInDays:tL}),ie=(0,e$.ur)(!eP,!td),it=!!tO,ii=ec({isDepositsLoading:tT,isCustomerLoading:ez,isPlatformDepositsLoading:tp,hasFilters:!!eX,mounted:ef,platformLoadingDisabled:!td,requestedWithQueryFilters:ed}),il=tV({isSavingAccounts:td,isTermsLoading:tc,isCustomerLoading:ez,isPlatformDepositsLoading:tp,hasFilters:!!eX,isOldSavingAccountsLoading:tT}),ia=function(e){let{isMetaReady:t,banksCount:i,tag:n,region:l,town:a,depositLists:o,visibleCurrentLength:s}=e,d=(0,r.useMemo)(()=>{var e,t,l,a,o,s,r,d,u,c,m,p,v;return(null==n?void 0:n.stats)?({banksCount:new Set([...null!==(d=null==(e=n.stats)?void 0:null===(t=e.platform)||void 0===t?void 0:t.banksIds)&&void 0!==d?d:[],...null!==(u=null==e?void 0:null===(l=e.nonPlatform)||void 0===l?void 0:l.banksIds)&&void 0!==u?u:[]]).size,bet:Math.max(null!==(c=null==e?void 0:null===(a=e.platform)||void 0===a?void 0:a.bet)&&void 0!==c?c:0,null!==(m=null==e?void 0:null===(o=e.nonPlatform)||void 0===o?void 0:o.bet)&&void 0!==m?m:0),depositsCount:(null!==(p=null==e?void 0:null===(s=e.platform)||void 0===s?void 0:s.prop)&&void 0!==p?p:0)+(null!==(v=null==e?void 0:null===(r=e.nonPlatform)||void 0===r?void 0:r.prop)&&void 0!==v?v:0)}).banksCount:i},[null==n?void 0:n.stats,i]),u=(0,r.useMemo)(()=>(0,ex.x)({tag:n,region:l,town:a,depositLists:o,banksCount:d,depositsCount:s}),[d,o,l,n,a,s]),[c,m]=(0,r.useState)(u);return(0,r.useEffect)(()=>{t&&m(u)},[t,u]),c}({isMetaReady:il,banksCount:U,tag:eQ,region:e8,town:e4,depositLists:tQ,visibleCurrentLength:t0}),{subtitle:io,h1:is,inRegion:ir}=ia,id=(0,r.useMemo)(()=>el({isDefault:t2,tag:eQ,h1:is,inRegion:ir,basePath:"/".concat(eL)}),[ir,t2,eQ,is,eL]),iu=(0,eG.W)({tagName:null==eQ?void 0:eQ.faq_title,inRegion:ir}),ic=(null==tQ?void 0:tQ.notInitialDeposits)&&il?io:R;return(0,l.jsxs)("main",{className:t$().page,children:[(0,l.jsx)(en,{region:e8,town:e4,tag:eQ,meta:ia,isMetaReady:il,depositLists:tQ,regionUrl:t9,currency:tS.currency.value,isOldUser:eP,initialDescription:M,initialTitle:j,quote:tY}),(0,l.jsx)(a.W2,{className:t$().mainContainer,fluid:!0,children:(0,l.jsx)(a.W2,{children:(0,l.jsx)(to.v,{tag:eQ,setTag:tk,h1:is,region:e8,town:e4,subtitle:null!=ic?ic:"",length:ef?t0:H,data:tS,terms:tm,isTermsLoading:tc,withAdditional:!tQ.boundsIsEmpty,isMobile:!ey,partnerId:null,isDiscount:eU,breadcrumbsPath:id,showDepositGuide:ie,isSavingAccounts:td,showAdFoxBanner:it,isTermInDays:tL,productHint:th,isLoading:tp,hasDynamicBonus:tI,onTipsApply:tR,disableLastHref:t2&&!ir,adFoxConfig:tO})})}),!P.publicConfig.FEATURE_TOGGLE_DEPOSIT_FILTER_NEW_DESIGN_ENABLED&&(0,l.jsx)(V,{visible:(0,e$.ur)(th,!tp),amount:null==th?void 0:th.minimumAmount,rate:null==th?void 0:th.fullRate,bankName:null==th?void 0:th.bankDisplayName,eventCategory:"deposits_".concat(eN),onTipsApply:tR}),(0,l.jsx)(tZ,{filter:tS,isDiscount:eU,isOldUser:eP,banks:F,platformDeposits:tw,anotherDeposits:tP,depositLists:tQ,adFoxConfig:tO,isMobile:!ey,bannerUrl:t2?eF[E.N9.VKLADY]:null!==(u=eF[E.N9.VKLADY_TAGS])&&void 0!==u?u:eF[E.N9.VKLADY],isHiddenPromo:eP,existTag:!t2,town:e4,region:e8,extraInfo:B,isPlusFiveBonus:!eP,questions:Y,pageUrl:eL,currentDepositsLength:ef?tQ.currentLength:H,allDepositsLength:ef?tQ.allLength:X,comboDeposits:t5,isSavingAccounts:td,showDepositGuide:ie,showAdFoxBanner:it,isPlatformLoading:ii,isNonPlatformLoading:ef&&tN,showPlatformDeposits:tJ,newPlatformDeposits:null!=tb?tb:[],disableNotifications:(0,e$.oA)(th),displayNonPlatform:null==eQ?void 0:null===(n=eQ.filter)||void 0===n?void 0:n.displayNonPlatform,isTermInDays:tL,showOnlyNonPromo:eo}),tY&&!e4&&!e8&&(0,l.jsx)(g,{className:t$().quote,quote:tY}),(0,l.jsx)(L.V,{journalData:$,className:t$().grayBackground}),(0,l.jsx)(I.y,{supportData:G,className:t$().grayBackground}),tG&&(0,l.jsx)(N,{content:null==tG?void 0:tG.content,dataLayerPush:Z.lQ,sectionTitle:"",blockTitle:null==tG?void 0:tG.title}),t6&&(0,l.jsx)(_,{labelsData:t6,sectionTitle:"Вклады, которые могут вас заинтересовать",href:"/".concat(eL),blockTitle:"",dataLayerPush:Z.lQ}),(0,l.jsx)(b.C,{sectionTitle:iu,Link:tK,dataLayerPush:Z.lQ,questions:t1,eventCategory:"deposits_support_block",href:(0,T.xn)(tX,"help"),checkAllText:ey?"Читать все вопросы про вклады":"Все вопросы про вклады",tagTitle:"h3"}),(0,l.jsx)(ta.s,{data:tS,isDiscount:eU,isMobile:!ey,terms:tm,depositsLength:t0,withAdditional:!tQ.boundsIsEmpty,partnerId:null,showMonthlyPercent:t3,showPreferentialTermination:t7,showCapitalization:t4,showRefill:t8,hasDynamicBonus:tI,withCapitalizationTittle:"Капитализация",withRefillTitle:"Пополнение"})]})}},25765:function(e,t,i){"use strict";i.d(t,{B:function(){return G}});var n=i(57437),l=i(80684),a=i(35563),o=i(75461),s=i(2265),r=i(49090),d=i(54365),u=i(93810),c=i.n(u),m=i(33145),p=i(92388),v=i(69393),_=i(12606),h=i(54328),f=i(29827),g=i.n(f);let b={$:"USD","€":"EUR","\xa5":"JPY","₣":"CHF","\xa3":"GBP","₽":"RUB"};function x(e){let{children:t,...i}=e,l=(0,s.useCallback)(e=>{e.target instanceof HTMLElement&&"a"===e.target.tagName.toLowerCase()||e.preventDefault()},[]);return(0,n.jsx)("div",{onClick:l,...i,children:t})}function y(e){let{bic:t,bankName:i,name:l,className:o}=e;return(0,n.jsxs)("div",{className:(0,d.Z)(g().header,o),children:[t?(0,n.jsx)(m.default,{unoptimized:!0,src:(0,h.B)(t),alt:null!=i?i:"Логотип банка",className:g().logo,width:30,height:30,"data-qa":"bank-logo"}):(0,n.jsx)("div",{className:g().logoPlaceholder}),(0,n.jsxs)("div",{className:g().nameWrapper,children:[(0,n.jsx)(a.xv,{className:(0,d.Z)(g().text,g().bankName),weight:"medium",dataQa:"bank-name",children:i}),(0,n.jsx)(p.$,{className:(0,d.Z)(g().text,g().name),dataQa:"deposit-name",children:l})]})]})}function N(e){let{rate:t,bonusRate:i,rateTip:s,isFloatingRate:u,rateLink:c,rateLinkLabel:m}=e,v=i?"Ставка\xa0+\xa0бонус\xa0Финуслуг":"Ставка";return(0,n.jsxs)("div",{className:g().columnValue,children:[t&&(0,n.jsxs)(a.xv,{weight:"medium",dataQa:"rate",className:g().label,children:[u?"до ":"",(0,r.og)(t.toFixed(2)),i?"\xa0+\xa0".concat((0,r.og)(i.toFixed(2))):""]}),s?(0,n.jsxs)(x,{children:[(0,n.jsx)(o.kW,{className:g().hint,text:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:s}}),dataQa:"rate-hint",footer:c&&m&&(0,n.jsx)("a",{href:c,target:"_blank",children:m}),children:(0,n.jsxs)(p.$,{className:(0,d.Z)(g().aligned,g().caption),dataQa:"rate-caption",children:[v,(0,n.jsx)(l.IconFdsQuestionCircleO,{className:"ml-1"})]})})," "]}):(0,n.jsx)(p.$,{className:(0,d.Z)(g().aligned,g().caption),dataQa:"rate-caption",children:v})]})}function D(e){let{profit:t,profitTerm:i,bonusProfit:o,currencyUnit:s,minAmount:u,fixedAmount:c}=e,m=s?b[s]:void 0,_=m?{currencyCode:m}:void 0;if(!t&&!u&&!c)return null;if(t){let e=i?"за ".concat(i.value,"\xa0").concat((0,a._6)(i.value,...v.mB[i.type])):"";return(0,n.jsxs)("div",{className:g().columnValue,children:[(0,n.jsxs)(a.xv,{weight:"medium",className:(0,d.Z)(g().aligned,g().green,g().label),dataQa:"amount",children:[(0,n.jsx)(l.IconFdsArrowUpBigO,{}),"\xa0",(0,r.lb)(t+(null!=o?o:0),_)]}),(0,n.jsxs)(p.$,{className:g().caption,dataQa:"amount-caption",children:["Доход ",o?"с бонусом":""," ",e]})]})}let h=c?(0,r.lb)(c,_):"от ".concat((0,r.lb)(null!=u?u:0,_));return(0,n.jsxs)("div",{className:g().columnValue,children:[(0,n.jsx)(a.xv,{weight:"medium",dataQa:"amount",className:g().label,children:h}),(0,n.jsx)(p.$,{className:g().caption,dataQa:"amount-caption",children:"Сумма"})]})}function C(e){let{minTerm:t,className:i,isMobile:l,isFixedTerm:o}=e;if(!t)return null;let{termString:s}=(0,_.K)(t,{form:o?"nominative":"genitive",prefix:o?void 0:"от",isLadderDeposit:e.isLadderDeposit});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:(0,d.Z)(g().termValue,g().margined,i),children:[(0,n.jsx)(p.$,{className:g().termCaption,dataQa:"term-caption",children:"Срок"}),(0,n.jsx)(a.xv,{weight:"medium",className:g().termTitle,dataQa:"term",children:s})]}),l&&(0,n.jsx)(a.iz,{className:(0,d.Z)(g().divider,i)})]})}function w(e){let{onButtonClick:t,onInfoClick:i,className:a}=e;return(0,n.jsxs)("div",{className:(0,d.Z)(g().buttons,a),children:[(0,n.jsx)(o.zx,{stretch:!0,size:"s",onClick:t,dataQa:"detail-button",children:"Подробнее"}),(0,n.jsx)(x,{children:(0,n.jsx)(o.zx,{size:"s",appearance:"outline",shape:"icon",iconLeft:(0,n.jsx)(l.IconFdsInfoCircleO,{}),onClick:i,dataQa:"info-button"})})]})}var T=(0,s.memo)(function(e){let{tags:t,href:i,className:l,dataQa:s,onCardClick:r}=e,u=[!!e.profit||!!e.minAmount||!!e.fixedAmount,!!e.rate,!!e.minTerm].filter(Boolean).length;return(0,n.jsxs)(a.Zb,{className:(0,d.Z)(g().depositCard,l),onClick:r,dataQa:s,as:"a",href:null!=i?i:"",children:[(0,n.jsx)(y,{...e,className:g().mobile}),(0,n.jsxs)("div",{className:g().content,children:[(0,n.jsxs)("div",{className:(0,d.Z)(g().row,2===u&&g()["cols-2"]),children:[(0,n.jsx)(y,{...e,className:g().desktop}),(0,n.jsx)(N,{...e}),(0,n.jsx)(D,{...e}),(0,n.jsx)(C,{...e,className:g().tablet}),(0,n.jsx)(w,{...e,className:g().desktop})]}),(0,n.jsx)(a.iz,{className:g().divider}),(0,n.jsx)(C,{...e,className:g()["mobile-tablet"],isMobile:!0})]}),t&&(0,n.jsx)("div",{className:g().tags,children:t.map(e=>{let t="left"===e.position?{iconLeft:e.icon}:{iconRight:e.icon},i=0===e.text.trim().length;return(0,n.jsx)(o.Vp,{className:(0,d.Z)(g().tag,e.backGround&&g()[e.backGround]),label:e.text,onIconRightClick:i?c():void 0,rounded:!0,dataQa:"tag",...t},e.text)})}),(0,n.jsx)(w,{...e,className:g().mobile})]})}),j=i(10330),k=i(6164);let A=(e,t,i)=>{if(t){if(i){var n;return{profit:null===(n=e.computeData)||void 0===n?void 0:n.profit,minAmount:e.rateAmount,fixedAmount:0}}return{profit:0,minAmount:0,fixedAmount:e.rateAmount}}return e.isNotAmount?{profit:0,minAmount:e.rateAmount,fixedAmount:0}:{profit:0,minAmount:0,fixedAmount:0}},L=(e,t)=>{if(t){var i,n;return{profitTerm:{value:null!==(n=null===(i=e.computeData)||void 0===i?void 0:i.termDays)&&void 0!==n?n:0,type:k.e.DAY},minTerm:null,isFixedTerm:!1}}return e.isTermEmpty?{profitTerm:null,minTerm:{value:0,type:k.e.TERMLESS},isFixedTerm:!1}:{profitTerm:null,minTerm:null,isFixedTerm:!1}},I=e=>{var t,i;return{profitTerm:null,minTerm:{value:null!==(i=null===(t=e.computeData)||void 0===t?void 0:t.termDays)&&void 0!==i?i:e.term?Number(e.term):0,type:k.e.DAY},isFixedTerm:!0}},E=e=>{var t,i;return{profitTerm:null,minTerm:{value:null!==(i=null===(t=e.computeData)||void 0===t?void 0:t.termDays)&&void 0!==i?i:0,type:k.e.DAY},isFixedTerm:!0}},S=(e,t,i)=>{var n,l;if(i)return L(e,t);if(e.isLadderDeposit)return I(e);if(e.isFixedTerm)return E(e);let a={value:null!==(l=null===(n=e.computeData)||void 0===n?void 0:n.termDays)&&void 0!==l?l:0,type:k.e.DAY};return t?{profitTerm:a,minTerm:null,isFixedTerm:!1}:e.isTermEmpty?{profitTerm:null,minTerm:a,isFixedTerm:!1}:{profitTerm:null,minTerm:null,isFixedTerm:!1}};var P=i(33600),M=i(98532),R=i(13425),O=i(58864),z=i(37514),B=i(37328),F=i(99193),U=i(37500),W=i.n(U);let Q=(e,t,i)=>{(0,z.L)(e,t,"click_name_deposit__".concat(i))},Y=(e,t,i)=>{(0,z.L)(e,t,i)},Z=e=>{var t,i,r,d,u,c;let{baseUrl:m="/vklady",className:p,data:v,events:_={},isPlatform:h=!1,isTermInDays:f=!1,params:g,paramsType:b="hash",isFullFilter:x,showOnlyNonPromo:y=!1,useDepositCurrency:N=!1,onOpenDetailModal:D}=e,C=h?"offers":"lidgen",{clickItemAction:w="click__card__".concat(C),clickMoreButtonAction:k,eventCategory:L="deposits_vklady",showItemAction:I="show__card__".concat(C)}=_,E=(0,s.useRef)(null),U=(0,B.z)(v,h,y);(0,F.Z)({eventAction:I,eventCategory:L,eventLabel:String(v.id),itemRef:E});let Z=(0,s.useMemo)(()=>{var e,t;return(0,j.Z)({amount:null!==(t=v.rateAmount)&&void 0!==t?t:v.amount,baseUrl:m,depositUrl:v.url,isBound:v.isBound,isTermInDays:f,params:g,paramsType:b,term:(0,O.Am)(f,null===(e=v.computeData)||void 0===e?void 0:e.termDays,v.term)})},[m,v.amount,null===(t=v.computeData)||void 0===t?void 0:t.termDays,v.isBound,v.rateAmount,v.term,v.url,f,g,b]),G=(0,s.useCallback)(()=>{Y(v.id,L,w)},[w,v.id,L]),$=(0,s.useCallback)(()=>(Q(v.id,L,C),null==D?void 0:D({isPlatform:h,href:Z,depositItem:v})),[v,L,Z,h,D,C]),q=(0,s.useCallback)(()=>(0,z.L)(v.id,L,null!=k?k:""),[k,v.id,L]),V=(0,s.useMemo)(()=>(0,R.Z)({data:v,isPlatform:h,renderTip:e=>(0,n.jsx)(o.u,{text:e.description,style:{whiteSpace:"pre-wrap"},dataQa:"tag-tip",hideWhenOutOfBounds:!0,children:(0,n.jsxs)(a.xv,{className:W().detail,children:[e.title,(0,n.jsx)(l.IconFdsQuestionCircleO,{size:16})]})}),newDesign:!0}),[v,h]),H=!!v.asSavingAccount||v.type===P.kv.SavingAccount,X=(0,s.useMemo)(()=>A(v,x,h),[v,x,h]),K=(0,s.useMemo)(()=>S(v,x,H),[v,x,H]),J=(0,s.useMemo)(()=>{var e,t,i;return(0,M.b)({profit:null===(e=v.computeData)||void 0===e?void 0:e.profit,bonusProfit:null===(t=v.computeData)||void 0===t?void 0:t.bonus,terms:null==U?void 0:U.terms,isPlatform:h,isCapitalization:null!==(i=v.isCapitalization)&&void 0!==i&&i,isSavingAccount:v.type===P.kv.SavingAccount})},[null===(i=v.computeData)||void 0===i?void 0:i.bonus,null===(r=v.computeData)||void 0===r?void 0:r.profit,v.isCapitalization,v.type,null==U?void 0:U.terms,h]);return(0,n.jsx)("div",{"data-testid":"deposits-item",className:p,ref:E,children:(0,n.jsx)(T,{bankName:v.bankName,bic:v.bic,bonusProfit:null===(d=v.computeData)||void 0===d?void 0:d.bonus,bonusRate:null===(u=v.computeData)||void 0===u?void 0:u.bonusRate,className:p,currencyUnit:N?v.currencyUnit:void 0,dataQa:"deposits-item",href:Z,id:v.id,isFloatingRate:"MAX"===v.rateType||H||v.isFloating,name:v.name,rate:null===(c=v.computeData)||void 0===c?void 0:c.effectiveRate,rateTip:J,rateLink:null==U?void 0:U.link,rateLinkLabel:null==U?void 0:U.linkLabel,isLadderDeposit:v.isLadderDeposit,tags:V,...X,...K,onButtonClick:q,onInfoClick:$,onCardClick:G})})};Z.displayName="DepositsItem";var G=(0,s.memo)(Z)},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:d}=e,u=(0,a.p)(d),c=String(u.amount),m=String(u.period),p=String(u.term),v=u.currency?String(u.currency):void 0,_={term:0,amount:"0",currencyCode:"RUB",withRefill:!1,withCapitalization:!1,withMonthlyPercent:!1,withPreferentialTermination:!1,withPartialWithdrawal:!1},h=(0,n.O)(null==r?void 0:null===(t=r.filter)||void 0===t?void 0:t.currency);return(null==r?void 0:r.filter)&&(_.term=null!==(o=null===(i=r.filter.term.values)||void 0===i?void 0:i[0])&&void 0!==o?o:null===r.filter.term.from||isNaN(Number(r.filter.term.from))?_.term:Number(r.filter.term.from),_.currencyCode=(0,l.z)(h).code,_.withRefill=!!r.filter.refill,_.withCapitalization=1===r.filter.interest_capitalization,_.withMonthlyPercent=!!r.filter.interestsMonthly,_.withPreferentialTermination=!!r.filter.earlyTermination,_.amount=String(null!==(s=r.filter.amount)&&void 0!==s?s:_.amount),_.withPartialWithdrawal=!!r.filter.partial_withdrawal),c&&!isNaN(+c)&&(_.amount=c),m&&!isNaN(+m)&&(_.term=+m),p&&!isNaN(+p)&&(_.term=+p),v&&(0,l.z)(v).code&&(_.currencyCode=(0,l.z)(v).code),_}},26573:function(e,t,i){"use strict";function n(e){return e.startsWith("0")?e.replace("0",""):e}i.d(t,{g:function(){return n}})},94943:function(e,t,i){"use strict";var n,l;i.d(t,{z:function(){return l}}),(n||(n={})).HTML="html",(l||(l={})).nakop="nakopitelnye"},98532:function(e,t,i){"use strict";i.d(t,{b:function(){return l}});var n=i(49090);let l=e=>{let{profit:t,bonusProfit:i,terms:l,isPlatform:a,isCapitalization:o,isSavingAccount:s}=e;if(!a)return o&&!s?"Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка.\nДополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее.":null;if(!l)return;if(!t||!i)return l;let r=(0,n.lb)(t),d=(0,n.lb)(i);return"• доход от банка: ".concat(r,"\n• бонус от Финуслуг: ").concat(d,"\n\n").concat(l)}},65621:function(e,t,i){"use strict";i.d(t,{p:function(){return c}});var n=i(94441);let l=e=>{var t,i,n,l,a,o,s,r;let d=(null===(i=e.contentAttributes)||void 0===i?void 0:null===(t=i.integration)||void 0===t?void 0:t.integrationType)==="REFERAL"||(null===(l=e.contentAttributes)||void 0===l?void 0:null===(n=l.integration)||void 0===n?void 0:n.integrationType)==="INTERNAL_REFERAL";return{type:d?1:0,url:null!==(r=null===(o=e.contentAttributes)||void 0===o?void 0:null===(a=o.integration)||void 0===a?void 0:a.url)&&void 0!==r?r:"",commercial:d?1:0,order:null===(s=e.contentAttributes)||void 0===s?void 0:s.order}},a=(e,t,i)=>{var n,l,a,o;return{...null==e?void 0:e.interest_rate,rates:t.length?t:null!==(a=null===(n=e.interest_rate)||void 0===n?void 0:n.rates)&&void 0!==a?a:[],comment:null!==(o=null===(l=i.contentAttributes)||void 0===l?void 0:l.ratesComment)&&void 0!==o?o:""}},o=(e,t)=>{var i,n,l;let a=null!==(l=null==t?void 0:null===(n=t.interestPayments)||void 0===n?void 0:null===(i=n[0])||void 0===i?void 0:i.periods)&&void 0!==l?l:[],o=a.map(e=>e.type),r=a.map(e=>s(e)).join("<br/>");return{...e.interest_payment,text:r,daily:o.includes("DAILY")?1:0,weekly:o.includes("WEEKLY")?1:0,monthly:o.includes("MONTHLY")?1:0,quarterly:o.includes("QUARTERLY")?1:0,half_year:o.includes("SEMIANNUALLY")?1:0,annually:o.includes("ANNUALLY")?1:0,end:o.includes("IN_THE_END")?1:0,specified_period_in_days:o.includes("SPECIFIED_PERIOD_IN_DAYS")?1:0}},s=e=>{var t;return"DAILY"===e.type?"Ежедневно":"WEEKLY"===e.type?"Еженедельно":"MONTHLY"===e.type?"Ежемесячно":"QUARTERLY"===e.type?"Ежеквартально":"SEMIANNUALLY"===e.type?"Каждые пол года":"ANNUALLY"===e.type?"Ежегодно":"IN_THE_END"===e.type?"В конце срока":"SPECIFIED_PERIOD_IN_DAYS"===e.type?"Каждый ".concat(null!==(t=e.value)&&void 0!==t?t:0,"-й день"):""},r=(e,t)=>{var i,n;let l=null!==(n=null===(i=e.attributes)||void 0===i?void 0:i.asSavingAccount)&&void 0!==n?n:"saving_account"===e.productType;return{charitable:"charitable"===e.productType?1:0,child:"child"===e.productType?1:0,insurance:"insurance"===e.productType?1:0,investment:"investment"===e.productType?1:0,martgage:"mortgage"===e.productType?1:0,multicurrency:(null==t?void 0:t.currencies.length)>1?1:0,pension:"pension"===e.productType?1:0,salary:"salary"===e.productType?1:0,saving_account:l?1:0,seasonal:"seasonal"===e.productType?1:0}},d=e=>e?String(e).padStart(9,"0"):"",u=e=>e,c=e=>{var t,i,s,c,m,p,v,_,h,f,g,b,x,y,N,D,C,w,T,j,k,A,L,I,E,S,P,M;let{deposit:R,bank:O,oldDeposit:z}=e,B=null!=z?z:(0,n.MP)(!!(null==R?void 0:null===(t=R.attributes)||void 0===t?void 0:t.asSavingAccount)),F=null===(s=R.attributes)||void 0===s?void 0:null===(i=s.options)||void 0===i?void 0:i[0],U=(0,n.I7)(O),{rates:W,amountFrom:Q,amountTo:Y,termFrom:Z,termTo:G}=(0,n.HP)(null!==(j=null===(c=R.attributes)||void 0===c?void 0:c.options)&&void 0!==j?j:[],null==R?void 0:null===(m=R.attributes)||void 0===m?void 0:m.isLadderDeposit);return{...B,...R,id:R.id,url:null!==(k=null==R?void 0:null===(p=R.contentAttributes)||void 0===p?void 0:p.url)&&void 0!==k?k:"",title:R.name,active_to:R.visibleTo,active_from:R.visibleFrom,archive:(null===(v=R.contentAttributes)||void 0===v?void 0:v.archive)?1:0,m_updated_at:null!==(A=null===(h=R.contentAttributes)||void 0===h?void 0:null===(_=h.updatedAt)||void 0===_?void 0:_.slice(0,10))&&void 0!==A?A:"",bank_id:Number(null==O?void 0:O.id),bank_name:null!==(L=null==O?void 0:O.name)&&void 0!==L?L:"",bank_url:null!==(I=null==O?void 0:O.url)&&void 0!==I?I:"",legal_name:U,currency_id:Number(null===(x=R.attributes.options)||void 0===x?void 0:null===(b=x[0])||void 0===b?void 0:null===(g=b.currencies)||void 0===g?void 0:null===(f=g[0])||void 0===f?void 0:f.currency),online_application:l(R),interest_rate:a(B,W,R),amount:{...B.amount,from:Q,to:Y},term:{...B.term,from:Z,to:G},efficientRate:R.attributes.efficientRate,partial_withdrawal:{...B.partial_withdrawal,has:(0,n.Nx)(F),text:(0,n.UD)(F)},interest_payment:o(B,F),productFeature:null===(y=R.attributes)||void 0===y?void 0:y.productFeature,refill:{comment:"",...B.refill,has:(0,n.u0)(F),text:(0,n.VV)(F)},interest_capitalization:{comment:"",...B.interest_capitalization,has:(0,n.xV)(F),text:(0,n.bh)(F)},preferential_termination:{...B.preferential_termination,has:(0,n.vf)(F),text:(0,n.f1)(F)},type:r(R,F),prolongation:{text:(null==F?void 0:F.prolongations)?"Предусмотрена":"Не предусмотрена"},all_russia:(null===(N=R.contentAttributes)||void 0===N?void 0:N.availableAllRussia)?1:0,custom_regions:null!==(E=null===(D=R.attributes)||void 0===D?void 0:D.regionsData)&&void 0!==E?E:[],multicurrency:(null==F?void 0:F.currencies.length)>1?1:0,finuslugiBonusPromotion:{},fin_exclusive:R.attributes.exclusive?1:0,asSavingAccount:null!==(S=R.attributes.asSavingAccount)&&void 0!==S&&S,promo:!1,floatingRateInformations:R.floatingRateInformations,external:{integrationType:null===(w=R.contentAttributes)||void 0===w?void 0:null===(C=w.integration)||void 0===C?void 0:C.integrationType},options:u(R.attributes.options),attributesComments:null!==(P=null==F?void 0:F.attributesComments)&&void 0!==P?P:[],prolonging:null!==(M=R.attributes.prolonging)&&void 0!==M&&M,bic:d(null===(T=R.contentAttributes)||void 0===T?void 0:T.bic),isLadderDeposit:R.attributes.isLadderDeposit}}},81237:function(e,t,i){"use strict";i.d(t,{I:function(){return l}});var n=i(2265);let l=()=>{let[e,t]=(0,n.useState)();return(0,n.useEffect)(()=>{window&&window.Ya&&window.yaContextCb&&t({ownerId:406293,Ya:window.Ya,yaContextCb:window.yaContextCb})},[]),e}},92317:function(e,t,i){"use strict";i.d(t,{z:function(){return o}});var n=i(21652),l=i.n(n),a=i(2265);function o(e){let{filter:t,showCapitalization:i,showMonthlyPercent:n,showPreferentialTermination:o,showRefill:s,disabled:r=!1}=e,{withCapitalization:d,withMonthlyPercent:u,withPreferentialTermination:c,withRefill:m,handleWithCapitalizationChange:p,handleWithMonthlyPercentChange:v,handleWithPreferentialTerminationChange:_,handleWithRefillChange:h}=t,f=(0,a.useMemo)(()=>({withCapitalization:d,withMonthlyPercent:u,withPreferentialTermination:c,withRefill:m}),[d,u,c,m]),g=(0,a.useRef)(f);(0,a.useEffect)(()=>{if(!r){if(!l()(g.current,f)){g.current=f;return}c&&!o&&_(!1),u&&!n&&v(!1),d&&!i&&p(!1),m&&!s&&h(!1)}},[r,f,p,v,_,h,i,n,o,s,d,u,c,m])}},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})},[])}},29827:function(e){e.exports={depositCard:"DepositCard_depositCard__BSk6a",tag:"DepositCard_tag__kGJab",white:"DepositCard_white__DvXfN",header:"DepositCard_header__M8Gz5",nameWrapper:"DepositCard_nameWrapper__nrzkX",logo:"DepositCard_logo__u8YGh",logoPlaceholder:"DepositCard_logoPlaceholder__cs5Kl",text:"DepositCard_text__C4cvk",bankName:"DepositCard_bankName__Trjsx",name:"DepositCard_name__Yy7_2",content:"DepositCard_content__61z5G",row:"DepositCard_row__e7_Oe","cols-2":"DepositCard_cols-2__oE7wD",divider:"DepositCard_divider__UPE0W",columnValue:"DepositCard_columnValue__WqSFy",termValue:"DepositCard_termValue__1jktz",margined:"DepositCard_margined__ONtRE",termTitle:"DepositCard_termTitle__baOgb",termCaption:"DepositCard_termCaption__6YAU1",label:"DepositCard_label__3LcRI",caption:"DepositCard_caption__xsq1B",buttons:"DepositCard_buttons__uOQdR",tags:"DepositCard_tags__k2ffG",red:"DepositCard_red__pqGB1",green:"DepositCard_green__C_yJ5",orange:"DepositCard_orange__6bvpI",purple:"DepositCard_purple__HYuGL",blue:"DepositCard_blue__gS0cj",hint:"DepositCard_hint__medrL",desktop:"DepositCard_desktop__u2ZgC",tablet:"DepositCard_tablet__BQYl1","mobile-tablet":"DepositCard_mobile-tablet__1_Zxz",mobile:"DepositCard_mobile__eIDxe",aligned:"DepositCard_aligned__vBy0J"}},73727:function(e){e.exports={caption:"TextCaption_caption__TOL53"}},25813:function(e){e.exports={filterContainer:"Deposits_filterContainer__UXpE1",sectionWrapper:"Deposits_sectionWrapper__TsXhU",advantages:"Deposits_advantages__7ZAjI",whiteBackground:"Deposits_whiteBackground__k1J2j",grayBackground:"Deposits_grayBackground__8ndmz",mainContainer:"Deposits_mainContainer__ZB24g",quote:"Deposits_quote__0vrSB"}},82180:function(e){e.exports={card:"ComboDepositCard_card__aiaKf",tip:"ComboDepositCard_tip__IU9lJ",title:"ComboDepositCard_title__KLHdM",label:"ComboDepositCard_label__LrZCj",value:"ComboDepositCard_value__cjk6D",infoWrapper:"ComboDepositCard_infoWrapper__YaEeW",infoContent:"ComboDepositCard_infoContent__ZQFSD",comboCardWrapper:"ComboDepositCard_comboCardWrapper__A8Lz7",plus:"ComboDepositCard_plus__rgvBd",button:"ComboDepositCard_button__qvCEQ"}},13889:function(e){e.exports={cardItem:"ComboDepositCardItem_cardItem__WsyyC",cardHeader:"ComboDepositCardItem_cardHeader__swLc6",logo:"ComboDepositCardItem_logo__9wciA",title:"ComboDepositCardItem_title__e5liT",cardContentWrapper:"ComboDepositCardItem_cardContentWrapper__XdG_8",cardContent:"ComboDepositCardItem_cardContent__ecMz4",label:"ComboDepositCardItem_label__vTsOM",value:"ComboDepositCardItem_value__aaZ_V"}},39421:function(e){e.exports={depositTips:"DepositTips_depositTips__wEcXA",visible:"DepositTips_visible__4FTAe",tipContent:"DepositTips_tipContent__4aovv",textContent:"DepositTips_textContent__VVZ76",mobileButton:"DepositTips_mobileButton__aFLlH",desktopButton:"DepositTips_desktopButton__tCqbb",icon:"DepositTips_icon__dAhjP"}},37500:function(e){e.exports={detailIcon:"DepositsItem_detailIcon__PzEOA",detail:"DepositsItem_detail__eDvqi"}},91304:function(e){e.exports={container:"DepositsList_container__JdzB6",title:"DepositsList_title__7dAwJ",disclaimer:"DepositsList_disclaimer__XpcXF",listItem:"DepositsList_listItem__z4ODF",skeleton:"DepositsList_skeleton__JEeth",listTitle:"DepositsList_listTitle__j8kD5",spaced:"DepositsList_spaced__Qz9G8",button:"DepositsList_button__Y4Un_",buttonsRow:"DepositsList_buttonsRow__S01KD",adFox:"DepositsList_adFox__UUPeB",subTitle:"DepositsList_subTitle__oD6TQ",anotherList:"DepositsList_anotherList__xXYKd"}},40482:function(e){e.exports={additionalTips:"AdditionalTipsList_additionalTips__z_e1N",tag:"AdditionalTipsList_tag__OjzTl"}},72798:function(e){e.exports={notification:"Notification_notification__9eoLP",textBlock:"Notification_textBlock__L95fL",title:"Notification_title__3pGiN",caption:"Notification_caption__vEbpd",closeIcon:"Notification_closeIcon__UTaKl"}},2470:function(e){e.exports={notifications:"Notifications_notifications__JTggi"}}},function(e){e.O(0,[1771,2795,3219,1934,6927,5005,2591,8975,4355,1967,779,1488,1142,1302,1201,5256,3982,7389,6746,2273,8138,393,6697,1448,6663,1576,2264,7024,1390,2106,4223,1082,1750,821,2987,5893,9395,3477,4336,440,1273,2925,6281,5501,207,3544,3646,8889,4601,666,1948,3145,2286,2938,8290,7255,3963,6189,1228,1088,1196,5119,885,7023,9652,9407,6639,1689,5583,7206,8239,2971,2117,1744],function(){return e(e.s=82491)}),_N_E=e.O()}]);