(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7116],{49560:function(e,t,i){"use strict";i.d(t,{Z:function(){return g}});var n=i(57437),l=i(7301),a=i(34734),o=i(2265),s=i(56862),r=i(3522),c=i(61366),d=i(12694),u=i(16243),_=i(93880),p=i(60364),m=i(72434),v=i(27187),h=i.n(v);function g(e){let{isDesktop:t,filter:i,isDiscount:v,containerClassName:g,filterClassName:f,filterStuckClassName:b,withHeader:x=!0,eventCategory:A="vklady",withNewMarkup:C=!1,floating:k=!1,withSort:w=!0,customListFilter:j}=e,{amountData:y,currencyUnit:N,term:D,setIncreaseSort:T,handleSortTypeChange:S,setInitialSort:E,handleToggleModal:L,sortType:F,increaseSort:R,withRefill:B,withCapitalization:M,activeBanks:O,withMonthlyPercent:I,withPreferentialTermination:P,interestAccrual:z}=i,[U,Q]=(0,o.useState)(!1),[W,G]=(0,o.useState)(!1),V=(0,o.useRef)(null),Y=(0,o.useRef)(()=>null),Z=(0,l._m)("m");(0,o.useEffect)(()=>{window.removeEventListener("scroll",Y.current);let e=x?Z?s.M:s.w:0;return Y.current=()=>{if(!V.current)return;let{top:t}=V.current.getBoundingClientRect();G(t<s.M-3),Q(t<=e+1)},window.addEventListener("scroll",Y.current),()=>window.removeEventListener("scroll",Y.current)},[Z,x]);let H=(0,o.useCallback)(e=>{var t;e&&(c.ER.RatePlusBonus===e||c.ER.Rate===e||c.ER.Profit===e)&&(S(e),E(!1));let i=null===(t=r.$m.find(t=>t.value===e))||void 0===t?void 0:t.label;(0,u.lQ)({event:"data-event",eventAction:i?"filters_float__click_button_".concat((0,_.b)(i)):"",eventCategory:"deposits_".concat(A)})},[S,E,A]),q=(0,o.useCallback)(e=>{C&&(0,u.lQ)({event:"data-event",eventAction:"click__button__filters__".concat((0,_.b)(e.label)),eventCategory:A}),L(e.id,e.label,U)},[A,L,C,U]),K=(0,o.useCallback)(()=>{C&&(0,u.lQ)({event:"data-event",eventAction:"click__button__filters__vse_parametry",eventLabel:"",eventCategory:A}),L(null,null,U)},[A,L,C,U]),X=(0,o.useCallback)(e=>{let t=e.currentTarget.textContent,i=t?(0,_.b)(t):"stavka";(0,u.lQ)({event:"data-event",eventAction:C?"click__button__filters__".concat(i):"click_button_".concat(i),eventCategory:A})},[A,C]),J=(0,o.useMemo)(()=>(0,d.Q)(v,+y.value),[v,y.value]),$=(0,o.useMemo)(()=>(function(e){let{currencyUnit:t,amount:i,term:n,activeBanks:l,withCapitalization:a,withRefill:o,withMonthlyPercent:s,withPreferentialTermination:r,interestAccrual:c}=e,d=[{id:m.a.amount,label:i||"Сумма от 1".concat(t)},{id:m.a.term,label:(null==n?void 0:n.label)&&(null==n?void 0:n.value)?n.label:"Срок: Любой"}];if(null==l?void 0:l.length){let e=1===l.length?": ".concat(l[0].label):" (".concat(l.length,")");d.push({id:m.a.banks,label:"Банки".concat(e)})}return o&&d.push({id:m.a.refill,label:"С пополнением"}),a&&d.push({id:m.a.capitalization,label:"С капитализацией"}),s&&d.push({id:m.a.monthlyPercent,label:"Проценты ежемесячно"}),r&&d.push({id:m.a.preferentialTermination,label:"Льготное расторжение"}),c&&d.push({id:m.a.interestAccrual,label:p.s[c]}),d})({amount:y.formattedValue,term:D,activeBanks:O,withRefill:B,withCapitalization:M,currencyUnit:N,withMonthlyPercent:I,withPreferentialTermination:P,interestAccrual:z}),[O,y.formattedValue,N,z,D,M,I,P,B]),ee=(0,o.useCallback)(()=>{T(!R),E(!1),(0,u.lQ)({event:"data-event",eventAction:"filters_float__click_stavka_".concat(R?"direct":"reverse"),eventCategory:"deposits_".concat(A)})},[R,T,E,A]),et=(0,o.useMemo)(()=>({chips:$,onChangeIncreaseSort:ee,onChangeSortType:H,onClickChip:q,onClickParams:K,onClickSortType:X,sortTypeItems:J,sortTypeValue:F,isIncreaseSort:!R,isMobile:!t,isFixed:k||U,className:(0,a.Z)(h().listFilter,f,U&&b),isNewSortRadios:!0}),[$,f,b,k,ee,H,q,K,X,R,t,U,J,F]);return(0,n.jsx)("div",{ref:V,"data-testid":"deposit-sticky-filter",className:(0,a.Z)(h().filter,h().header,W&&h().filterBottom,g,U&&b,!x&&h().headless,k&&h().floating,!w&&h().hideSort),children:j?j(et):(0,n.jsx)(l.p,{...et})})}},51799:function(e,t,i){"use strict";i.d(t,{p:function(){return d}});var n=i(57437),l=i(7301),a=i(20703),o={src:"/deposits/_next/static/media/search.b3dc20e8.svg",height:192,width:212,blurWidth:0,blurHeight:0},s=i(74059),r=i(15656),c=i.n(r);let d=e=>{let{onChangeParams:t}=e;return(0,n.jsx)(s.t,{children:(0,n.jsxs)("div",{className:c().notFound,children:[(0,n.jsx)(a.default,{className:c().icon,src:o,alt:"Иллюстрация — нет найденных предложений",unoptimized:!0}),(0,n.jsx)("p",{className:c().text,children:"К сожалению, мы не нашли предложений с такими параметрами"}),(0,n.jsx)(l.zx,{variant:"secondary",className:c().button,onClick:t,children:"Изменить параметры"})]})})}},3522:function(e,t,i){"use strict";i.d(t,{$m:function(){return r},PT:function(){return s},e$:function(){return o},vw:function(){return a}});var n=i(72434),l=i(61366);let a=[{value:0,label:"Любой"},{value:1,label:"1 месяц"},{value:2,label:"2 месяца"},{value:3,label:"3 месяца"},{value:4,label:"4 месяца"},{value:5,label:"5 месяцев"},{value:6,label:"6 месяцев"},{value:9,label:"9 месяцев"},{value:12,label:"1 год"},{value:18,label:"1,5 года"},{value:24,label:"2 года"},{value:36,label:"3 года"},{value:48,label:"4 года"},{value:60,label:"5 лет"}],o={pp:"g",ps:"foam",p2:"hody"},s=[{label:"Вклады",name:n.a.deposits},{label:"Облигации",name:n.a.bonds}],r=[{label:"По ставке с бонусом",value:l.ER.RatePlusBonus,shortLabel:"Ставка с бонусом"},{label:"По ставке",value:l.ER.Rate,shortLabel:"Ставка"},{label:"По доходу",value:l.ER.Profit,shortLabel:"Доход"}]},87449:function(e,t,i){"use strict";i.r(t),i.d(t,{Deposits:function(){return tC},FilterVariant:function(){return o}});var n,l,a,o,s,r=i(57437),c=i(32833),d=i(34734),u=i(61810),_=i(2265),p=i(63919);let m=(0,p.g)("cross-link-chips-block","sc"),v=Object.freeze({crossLinkChipsBlock:m,crossLinkSlider:`${m}__slider`,crossLinkItemList:`${m}__item-list`,crossLinkItem:`${m}__item`,sliderChips:`${m}__slider-chips`,sliderChipsItem:`${m}__slider-chips-item`}),h=({labels:e,dataLayerPush:t,eventCategory:i="cross-link",...n})=>{var l,a;let[o,s]=(0,_.useState)(null==(l=e[0])?void 0:l.name),c=n=>{let l=e.find(e=>e.name===o);s(n),t({event:"data-event",eventCategory:i,eventAction:"click_chip_cross-link-block",eventLabel:null==l?void 0:l.name})},d=e.map(e=>({id:e.name,label:e.name})),p=e.find(e=>e.name===o),m=(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,r.jsxs)(r.Fragment,{children:[d.length>=1&&(0,r.jsx)(u.iR,{options:{slidesPerView:"auto",spaceBetween:8},className:v.crossLinkSlider,children:d.map(e=>(0,r.jsx)(u.wI,{className:v.sliderChipsItem,children:(0,r.jsx)(u.cL,{value:o,onChipClick:c,chips:[e]})},e.id))}),p&&(0,r.jsx)("ul",{className:v.crossLinkItemList,children:null==(a=p.tags)?void 0:a.map(e=>(0,r.jsx)("li",{className:v.crossLinkItem,children:(0,r.jsx)(u.rU,{href:`${n.href}/${e.url}`,onClick:()=>m(e,p.name),children:e.tagName})},e.id))})]})};h.displayName="CrossLinkChipsBlock";let g=(0,p.g)("cross-link","sc"),f=Object.freeze({crossLink:g,titleWrapper:`${g}__title-wrapper`,title:`${g}__title`,crossLinkWrapper:`${g}__wrapper`,crossLinkChipsTitle:`${g}__chips-title`}),b=({sectionTitle:e,labelsData:t=[],className:i,blockTitle:n="Виды вкладов",href:l="/vklady",dataLayerPush:a})=>(0,r.jsx)("section",{className:(0,d.Z)(f.crossLink,i),children:(0,r.jsxs)(c.W2,{children:[(0,r.jsx)("div",{className:f.titleWrapper,children:(0,r.jsx)(c.X6,{as:"h2",type:"hero",className:(0,d.Z)(f.title),children:e})}),(0,r.jsxs)("div",{className:f.crossLinkWrapper,children:[(0,r.jsx)(c.X6,{as:"h3",type:"h3",className:f.crossLinkChipsTitle,children:n}),(0,r.jsx)(h,{labels:t.content,href:l,dataLayerPush:a})]})]})});b.displayName="CrossLink";let x=(0,p.g)("expert-quote","sc"),A=Object.freeze({expertQuote:x,wrapper:`${x}__wrapper`,title:`${x}__title`,card:`${x}__card`,content:`${x}__content`,aboutText:`${x}__aboutText`,about:`${x}__about`,img:`${x}__img`,name:`${x}__name`,position:`${x}__position`,text:`${x}__text`}),C=(0,_.memo)(({className:e,quote:t})=>(0,r.jsx)("section",{className:(0,d.Z)(A.wrapper,e),children:(0,r.jsxs)(c.W2,{children:[(0,r.jsx)(c.X6,{as:"h2",type:"display",weight:"bold",className:(0,d.Z)(A.title,"mb-6"),children:"Мнение эксперта"}),(0,r.jsx)("div",{className:A.card,children:(0,r.jsxs)("div",{className:A.content,children:[(0,r.jsxs)("div",{className:A.about,children:[t.expert.photo&&(0,r.jsx)("a",{href:t.expert.url,children:(0,r.jsx)("div",{className:A.img,style:{backgroundImage:`url(${t.expert.photo})`}})}),(0,r.jsxs)("div",{className:A.aboutText,children:[(0,r.jsx)("a",{href:t.expert.url,className:A.name,children:t.expert.name}),(0,r.jsx)("p",{className:A.position,children:t.expert.position})]})]}),(0,r.jsx)("p",{className:A.text,dangerouslySetInnerHTML:{__html:t.content}})]})})]})}));C.displayName="ExpertQuote";var k=i(32543);let w=(0,p.g)("seo-text","sc"),j=Object.freeze({seoText:w,wrapper:`${w}__wrapper`,title:`${w}__title`,titleWrapper:`${w}__title-wrapper`,blockTitle:`${w}__block-title`,text:`${w}__text`,checkAll:`${w}__check-all`}),y=({blockTitle:e,content:t,sectionTitle:i,className:n})=>(0,r.jsx)("section",{className:(0,d.Z)(j.seoText,n),children:(0,r.jsxs)(c.W2,{children:[(0,r.jsx)("div",{className:j.titleWrapper,children:(0,r.jsx)(c.X6,{as:"h2",type:"hero",className:(0,d.Z)(j.title),children:i})}),(0,r.jsxs)("div",{className:j.wrapper,children:[(0,r.jsx)(c.X6,{as:"h3",type:"h3",className:(0,d.Z)(j.blockTitle),children:e}),(0,r.jsx)("div",{className:j.text,dangerouslySetInnerHTML:{__html:t||""}})]})]})});y.displayName="SeoText";var N=i(7301),D=i(8792),T=i(20564),S=i(24866),E=i(26719);let L=e=>{let{region:t,town:i,tag:n}=e;return(0,E.t)("/money_data/DepositRegion.json".concat(t?"?region="+t.url:"").concat(i?"&town="+i.url:"").concat(n?(t?"&":"?")+"tag_url="+n.url:""))},F=e=>{let{region:t}=e;return(0,E.t)("/money_data/DepositRegion.json?region_links=1".concat(t?"&region="+t.url:""))};var R=i(57534),B=i(11118),M=i(34426);let O=e=>(0,E.t)("/api/v1/deposits/combo",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0});(l||(l={})).HTML="html",(a||(a={})).nakop="nakopitelnye";var I=i(30936),P=i(96326),z=(e,t,i)=>({amount:e,term:{value:t,type:P.e.MONTH},...i&&{customerId:i}});let U=(0,I.b)(),Q=(e,t)=>e?{...e,totalProfit:e.totalProfit-t}:null,W=e=>{let{amount:t,term:i,initialComboDeposits:n,toggle:l,customerId:o,tag:s}=e,r=l&&t&&i&&(null==s?void 0:s.url)!==a.nakop,[c,d]=(0,_.useState)(Q(r?n:null,t));return(0,_.useEffect)(()=>{if(!r){d(null);return}U(async()=>{var e;d(Q(null!==(e=(await O(z(t,i,o))).data)&&void 0!==e?e:null,t))})},[o,t,i,r]),{comboDeposits:c}},G=(e,t)=>!!t&&"DEFAULT"===e;var V=i(36467),Y=i(48899),Z=i(6454);let H=e=>(0,E.t)("/money_data/Deposits.json?url=".concat((null==e?void 0:e.length)?e:"DEFAULT")),q=e=>(0,E.t)("/api/v1/tags/".concat(e),null,{isNewApi:!0}),K=e=>(0,E.t)("/api/v1/product-tags/".concat(e),null,{isMpScApi:!0}),X=(e,t)=>e?(0,E.t)((0,S.jb)("/api/v3/product-tags/".concat(e),{limit:t}),null,{isMpScApi:!0}):{data:null,error:null},J=e=>e?(0,E.t)("/api/v1/deposit-tags/".concat(e,"/texts"),null,{isMpScApi:!0}):{data:null,error:null},$=e=>null!=e?e:null,ee=e=>null!=e?e:"",et=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}})),ei=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:[]]},en=e=>{var t,i,n,l,a,o,s,r,c,d,u,_,p,m,v,h,g;return e?{id:ee(e.id),url:ee(e.url),title:ee(e.individualTitle),subtitle:ee(e.individualSubtitle),description:ee(e.individualDescription),individualDescription:ee(e.individualDescription),name:ee(e.internalName),tag_name:ee(e.tagName),text:et(null!==(m=e.textList)&&void 0!==m?m:[]),calc_amount:$(null===(t=e.facet)||void 0===t?void 0:t.depositAmount),calc_term:$(null===(i=e.facet)||void 0===i?void 0:i.depositTerm),calc_currency_id:$(null===(n=e.facet)||void 0===n?void 0:n.currency),filter:{term:{from:String(null!==(v=null===(l=e.facet)||void 0===l?void 0:l.depositTerm)&&void 0!==v?v:0),to:null},amount:$(null===(a=e.facet)||void 0===a?void 0:a.depositAmount),currency:null!==(h=null===(o=e.facet)||void 0===o?void 0:o.currency)&&void 0!==h?h:"RUB",type:ee(null===(s=e.facet)||void 0===s?void 0:s.type),partial_withdrawal:0,online_application:0,finuslugi_application:0,commercial:(null===(r=e.facet)||void 0===r?void 0:r.commercialPlacement)?1:0,refill:(null===(c=e.facet)||void 0===c?void 0:c.replenishment)?1:0,interest_capitalization:(null===(d=e.facet)||void 0===d?void 0:d.capitalization)?1:0,earlyTermination:!!(null===(u=e.facet)||void 0===u?void 0:u.earlyTermination),interestsMonthly:!!(null===(_=e.facet)||void 0===_?void 0:_.interestsMonthly)},disable_filter:(null===(p=e.facet)||void 0===p?void 0:p.filterUsage)?0:1,position:null!==(g=e.sortNumber)&&void 0!==g?g:0,deposits:ei(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:ee(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:$(e.stats)}:null},el=e=>null==e?void 0:e.map(e=>({title:e.title,content:[{type:"html",data:{html:e.content}}]})),ea=e=>{var t;return e?{id:e.id,url:e.url,title:e.individualTitle,subtitle:e.subtitle,description:e.individualDescription,individualDescription:e.individualDescription,name:e.internalName,tag_name:e.tagName,text:el(e.textList),calc_amount:e.depositAmount,calc_term:e.depositTerm,calc_currency_id:e.currency,filter:{term:{from:String(e.depositTerm),to:null},amount:e.depositAmount,currency:[Number(e.currency)],type:e.depositType,partial_withdrawal:"true"===e.partialWithdrawal?1:0,refill:"true"===e.replenishment?1:0,online_application:e.fillingApplicationOnline?1:0,finuslugi_application:e.applyOnFinuslugi?1:0,commercial:e.commercialPlacement?1:0,interest_capitalization:0},disable_filter:e.filterUsage?0:1,position:e.sortNumber,deposits:e.depositsIds,default:e.useByDefault?1:0,region_page:{town_titles:[e.townTitle],town_content:el(e.townContent),region_titles:[e.regionTitle],region_content:el(e.regionContent),town_subtitles:[e.townSubtitle],read_more_title:e.readMoreTitle,region_subtitles:[e.regionSubtitle],best_offers_title:e.bestOffersTitle,town_descriptions:[e.townDescription],region_descriptions:[e.regionDescription],reviews_block_title:e.reviewsBlockTitle,search_region_title:e.searchRegionTitle},region_title:e.regionTitle,faq_title:e.faqTitle,bank_region_page:{all_russia_titles:[],region_titles:[e.regionTitle],town_titles:[e.townTitle],all_russia_descriptions:[],region_descriptions:[e.regionDescription],town_descriptions:[e.townDescription],reviews_block_title:e.reviewsBlockTitle,best_offers_title:e.bestOffersTitle,search_region_title:e.searchRegionTitle,read_more_title:e.readMoreTitle,all_russia_content:[],region_content:el(e.regionContent),town_content:el(e.townContent),similar_services_title:""},stats:null!==(t=e.stats)&&void 0!==t?t:null}:null},eo=async e=>{let{tagUrl:t,depositTags:i,setTag:n,toggles:l,limit:a,shouldFetchTexts:o=!0}=e,s=await es({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},es=async e=>{var t,i,n,l,a,o,s,r;let{tagUrl:c,depositTags:d,toggles:u,limit:_,shouldFetchTexts:p}=e,m=null==d?void 0:d.find(e=>{let{url:t,isNew:i}=e;return t===c&&i}),v=null==d?void 0:null===(t=d.find(e=>{let{url:t}=e;return t===c}))||void 0===t?void 0:t.id,h=null==d?void 0:null===(i=d.find(e=>{let{name:t}=e;return"DEFAULT"===t}))||void 0===i?void 0:i.id,g=null!=v?v:h;if(null==u?void 0:u.FEATURE_TOGGLE_NEW_DEPOSITS){let e=await X(g,_),t=p?await J(g):void 0;return en({...null==e?void 0:e.data,textList:[...null!==(o=null==t?void 0:null===(n=t.data)||void 0===n?void 0:n.textList)&&void 0!==o?o:[],...null!==(s=null==t?void 0:null===(l=t.data)||void 0===l?void 0:l.regionContent)&&void 0!==s?s:[],...null!==(r=null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.townContent)&&void 0!==r?r:[]]})}if(null==u?void 0:u.FEATURE_TOGGLE_NEW_DEPOSIT_TAGS){let e=await K(g);return en(null==e?void 0:e.data)}if(m){let e=await q(m.id);return ea(Array.isArray(null==e?void 0:e.data)?e.data[0]:null==e?void 0:e.data)||null}let f=await H(c);return Array.isArray(null==f?void 0:f.data)?f.data[0]:(null==f?void 0:f.data)||null};var er=i(40230),ec=i(18182);let ed=e=>(0,E.t)("/api/v1/quotes?quoteUrl=".concat(e,"&published=true"),null,{isMpScApi:!0}),eu=e=>{if(!Array.isArray(e)||0===e.length)return null;let t=Math.floor(Math.random()*e.length);return e[t]},e_=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=eu(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},ep=e=>(0,E.t)("/api/v1/seo-texts/search?regionId=".concat(e),null,{isSeoApi:!0}),em=async e=>{let{region:t}=e,i=t&&(await ep(t)).data;return Array.isArray(i)&&i[0]||null};var ev=i(44967),eh=i(16243),eg=i(41590);let ef=()=>{let[e,t]=(0,_.useState)();return(0,_.useEffect)(()=>{window&&window.Ya&&window.yaContextCb&&t({ownerId:406293,Ya:window.Ya,yaContextCb:window.yaContextCb})},[]),e};var eb=i(13107),ex=i(93574),eA=i.n(ex),eC=i(74435),ek=i(74758),ew=i(9499),ej=i(10913);let ey={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=ey.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)}}},eN=e=>{let{baseUrl:t,regionUrl:i="",tagUrl:n="",townUrl:l="",params:a,separator:o="?"}=e,s=(0,S.xn)(t,n,i?"reg_"+i:"",l===i?"":l);return a?s+o+a:s},eD=e=>{try{let t=ey.getItem("user_region"),i=ey.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(ey.getItemRaw("all_russia_selected")))return null}catch(e){console.log(e)}},eT=(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}},eS=e=>{let{pageName:t,regions:i,initialValues:n}=e,[l,a]=(0,_.useState)(!0),{asPath:o,replace:s}=(0,eb.P)(),r=(0,_.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]),c=(0,_.useMemo)(()=>r.find(e=>e.includes("teg_")),[r]),{region:d,town:u,handleSetRegion:p,handleSetTown:m}=(0,ej.k)(),v=(0,_.useCallback)(async function(){let{regionUrl:e,townUrl:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("teg_premium"===c&&e)return;let n=o.indexOf("?"),l=o.indexOf("#"),a=n<l||l<0?"?":"#",r=eN({baseUrl:"/"+t,regionUrl:e,tagUrl:c,townUrl:i,params:o.split(a)[1],separator:a});r!==o&&s(r)},[o,c,t]);return(0,_.useEffect)(()=>{a(!1)},[]),(0,_.useEffect)(()=>{if(!o.length)return;let e=eD(o);if(void 0!==e){e&&v(e);return}if(1===Number(ey.getItemRaw("all_russia_selected"))&&!(null==d?void 0:d.url.length)&&!(null==u?void 0:u.url.length)&&o.includes("reg_")){v();return}if(!(null==d?void 0:d.url.length)&&!(null==u?void 0:u.url.length)&&o.includes("reg_")){let{region:e,town:t}=eT(o,i);e&&p(e),t&&m(t);return}},[o,v,d,u,i,p,m]),(0,_.useMemo)(()=>({region:d||l&&(null==n?void 0:n.region)||null,town:u||l&&(null==n?void 0:n.town)||null,handleSetRegion:p,handleSetTown:m}),[d,u,p,m,l,n])};var eE=i(97388),eL=i(84038),eF=i(99566),eR=i(98227),eB=i(13269),eM=i(13012),eO=i(74059),eI=i(51799),eP=i(18862),ez=i(14073),eU=i(72255),eQ=i(15640),eW=i(26094),eG=i(84511),eV=i.n(eG);function eY(e){let{title:t,caption:i,icon:n,dataQa:l,onCloseClick:a}=e;return(0,r.jsxs)("div",{className:eV().notification,"data-qa":l,children:[n,(0,r.jsxs)("div",{className:eV().textBlock,children:[(0,r.jsx)(c.xv,{size:"18",weight:"medium",className:eV().title,children:t}),(0,r.jsx)(c.xv,{size:"14",weight:"regular",className:eV().caption,children:i})]}),(0,r.jsx)(eW.IconFdsCloseO,{size:"24",className:eV().closeIcon,onClick:a})]})}var eZ=i(66884),eH=i.n(eZ);let eq="opening-notification-closed",eK="profit-notification-closed";function eX(e){let{disableProfitNotification:t}=e,[i,n]=(0,_.useState)(()=>!ey.getItem(eq)),[l,a]=(0,_.useState)(()=>!t&&!ey.getItem(eK)),o=(0,_.useCallback)(()=>{n(!1),ey.setItem(eq,"true")},[]),s=(0,_.useCallback)(()=>{a(!1),ey.setItem(eK,"true")},[]);return i||l?(0,r.jsxs)("div",{className:eH().notifications,children:[i&&(0,r.jsx)(eY,{title:"100% онлайн",caption:"Открытие без\xa0посещения банка",icon:(0,r.jsx)(eW.IconFdsHeartO,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-opening-notification",onCloseClick:o}),l&&(0,r.jsx)(eY,{title:"Доход по вкладам с одной ставкой может отличаться",caption:"Причина — разница в количестве дней вклада",icon:(0,r.jsx)(eW.IconFdsInfoCircleO,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-profit-notification",onCloseClick:s})]}):null}var eJ=i(3522),e$=i(30491),e0=i(11370),e1=i(53599),e2=i(15774),e4=i(64502),e3=i(90746),e6=i.n(e3),e7=i(20703),e5=i(83947),e8=i.n(e5);let e9=e=>{let{deposit:t,bank:i}=e,{amount:n,rate:l,bankName:a,bonusRate:o}=t,s=[{label:"Сумма",value:"".concat((0,N.Y4)(n,2)," ₽"),id:1},{label:"Ставка",value:"".concat((0,N.Y4)(l,2)).concat(o?" + "+(0,N.Y4)(o,2):"","%"),id:2}];return(0,r.jsxs)("div",{className:e8().cardItem,children:[(0,r.jsxs)("div",{className:e8().cardHeader,children:[(0,r.jsx)("div",{className:e8().logo,children:(null==i?void 0:i.logo_mob)&&(0,r.jsx)(e7.default,{width:17,height:17,alt:a,src:null==i?void 0:i.logo_mob})}),(0,r.jsx)("div",{className:e8().title,children:a})]}),(0,r.jsx)("div",{className:e8().cardContentWrapper,children:s.map(e=>(0,r.jsxs)("div",{className:e8().cardContent,children:[(0,r.jsx)("div",{className:e8().label,children:e.label}),(0,r.jsx)("div",{className:e8().value,children:e.value})]},e.id))})]})},te=e=>{let{pageUrl:t,banks:i,comboDeposits:n,amount:l,term:a}=e,{totalProfit:o,averageRate:s,deposits:c}=n,d=(0,_.useRef)(null),u=n.deposits.map(e=>{let{id:t,amount:i,rate:n}=e;return"".concat(t,"_").concat(i,"_").concat(n)}).join("_");(0,e4.Z)({itemRef:d,eventCategory:"deposits_".concat(t),eventLabel:u,eventAction:"view_card_combo"});let p=[{label:"Средняя ставка",value:"".concat((0,e2.Y4)(s,2),"%"),id:1},{label:"Общий доход",value:"".concat((0,e2.Y4)(o,2)," ₽"),id:2}],m=(0,_.useCallback)(e=>{var t;return null!==(t=i.find(t=>t.bic===(0,e1.g)(e.bic)))&&void 0!==t?t:null},[i]);return(0,r.jsxs)(D.default,{ref:d,className:e6().card,href:"/vklady/combo?amount=".concat(l,"&term=").concat(a),children:[(0,r.jsx)("span",{className:e6().tip,children:"Комбо"}),(0,r.jsxs)("div",{className:e6().infoWrapper,children:[(0,r.jsx)("div",{className:e6().title,children:"Два вклада выгоднее"}),(0,r.jsx)("div",{className:e6().infoContent,children:p.map(e=>(0,r.jsxs)("div",{className:e6().info,children:[(0,r.jsx)("div",{className:e6().label,children:e.label}),(0,r.jsx)("div",{className:e6().value,children:e.value})]},e.id))})]}),(0,r.jsx)("div",{className:e6().comboCardWrapper,children:c.map((e,t)=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e9,{bank:m(e),deposit:e},e.id),!t&&(0,r.jsx)("span",{className:e6().plus})]}))}),(0,r.jsx)(N.zx,{className:e6().button,size:"xs",stretch:!0,onClick:()=>{(0,eh.lQ)({eventLabel:u,eventCategory:"deposits_".concat(t),eventAction:"click_card_combo"})},children:"Подробнее"})]})};var tt=i(21062),ti=i(39860),tn=i(73175),tl=i.n(tn);let ta=e=>{var t,i;let{banks:n,anotherDeposits:l,platformDeposits:a,filter:o,isOldUser:s,depositLists:u,discount:p,className:m,bannerUrl:v,isHiddenPromo:h,existTag:g,isPlusFiveBonus:f,extraInfo:b,questions:x,pageUrl:A,comboDeposits:C,isDiscountsLoading:k,isSavingAccounts:w,showDepositGuide:j,adFoxConfig:y,showAdFoxBanner:S}=e,{amountData:E,term:L,isLoading:F,handleToggleModal:R}=o,[B,M]=(0,_.useState)(10),[O,I]=(0,_.useState)(10),{depositData:P,openModal:z,handleOpen:U,handleClose:Q}=(0,e$.j)({banks:n,anotherDeposits:l,platformDeposits:a}),W=k||F,[G,V]=(0,_.useState)(!0),[Y,Z]=(0,_.useState)(!0),H=null!==(t=(0,T.OB)("NEXT_PUBLIC_BASE_URL"))&&void 0!==t?t:"*",q=e=>{let t=e.data;t&&t.key&&"popupBehavior"===t.key&&V("VariantA"===t.value)},K=(0,_.useCallback)(e=>{var t;let{key:i,value:n}=null!==(t=e.data)&&void 0!==t?t:{};i&&n&&"depositGuideBehavior"===i&&Z("VariantA"===n)},[]);(0,_.useEffect)(()=>(window.addEventListener("message",q),window.addEventListener("message",K),window.postMessage({key:"depositListLoaded",value:!0},H),()=>{window.removeEventListener("message",q),window.removeEventListener("message",K)}),[K,H]);let X=(0,e0.Z)(),J=(0,_.useCallback)(()=>{(0,N.ld)(eU.Mb,{offset:X-48,position:"top"})},[X]);(0,_.useEffect)(()=>{W&&(M(10),I(10))},[W]);let $=e=>!!e.isNotAmount||!!e.isTermEmpty||!!e.computeData,[ee,et]=(0,_.useState)(u.platform.filter(e=>$(e)));(0,_.useEffect)(()=>{et(u.platform.filter(e=>$(e)))},[u]);let ei=C&&C.deposits.length>1,en="deposits_details_".concat(A,"_popup"),el=u.currentLength>0,ea=u.another.length>0,eo=u.platform.length>0,es=(0,_.useMemo)(()=>(0,r.jsx)(eO.t,{children:(0,r.jsx)(ti.Z,{id:eU.uz,qrBannerUrl:v,existTag:g,pageUrl:A,newMobileAd:!0})}),[v,g,A]),er=(0,_.useCallback)(()=>w?null:j&&Y?(0,r.jsx)(eQ.Z,{pageUrl:A}):es,[es,Y,w,A,j]),ec=(0,_.useCallback)(()=>s&&!w?null:j&&!Y?(0,r.jsx)(eQ.Z,{pageUrl:A}):es,[es,Y,s,w,A,j]);return(0,r.jsxs)("section",{id:eU.TM,className:(0,d.Z)(tl().container,m),children:[!el&&(0,r.jsx)(eI.p,{onChangeParams:R}),(0,r.jsxs)(c.W2,{children:[u.platform.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.xv,{as:"h2",className:tl().title,children:w?"Накопительные счета онлайн на Финуслугах":"Вклады онлайн от Финуслуг"}),(0,r.jsx)(eX,{disableProfitNotification:w})]}):S&&el&&(0,r.jsx)(N.nh,{className:tl().adFox,params:eJ.e$,config:y}),!W&&ei&&(0,r.jsx)(te,{pageUrl:A,banks:n,comboDeposits:C,amount:+E.value,term:+L.value}),!W&&ee.slice(0,B).filter(e=>h?!e.promo:e).map((e,t)=>(0,r.jsxs)(_.Fragment,{children:[(0,r.jsx)("div",{"data-qa":"platform",children:(0,r.jsx)(tt.B,{isPopupAVariant:G,isPlatform:!0,onOpenDetailModal:U,className:tl().listItem,isOldUser:s,discount:p,data:e,wide:!0},e.url+e.id)}),S&&t+1===Math.min(3,ee.length)&&(0,r.jsx)(N.nh,{className:tl().adFox,params:eJ.e$,config:y})]},e.url)),el&&W&&Array.from({length:6},(e,t)=>(0,r.jsx)(eP.O,{className:tl().listItem},t)),eo&&(0,r.jsxs)(c.X2,{className:(0,d.Z)(tl().buttonsRow,tl().spaced),children:[!W&&u.platform.length>B&&(0,r.jsx)(N.zx,{size:"s",onClick:()=>{(0,eh.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__offers"}),M(e=>e+10)},className:tl().button,variant:"secondary",children:"Еще предложения от Финуслуг"}),ea&&(0,r.jsx)(N.zx,{size:"s",variant:"white",onClick:J,children:"Предложения от банков"})]})]}),er(),(0,r.jsxs)(c.W2,{className:tl().anotherList,children:[u.another.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.xv,{as:"h2",id:eU.Mb,className:tl().title,children:"Предложения от банков"}),!W&&u.another.slice(0,O).map((e,t)=>(0,r.jsxs)(_.Fragment,{children:[(0,r.jsx)("div",{"data-qa":"nonplatform",children:(0,r.jsx)(tt.B,{isPopupAVariant:G,onOpenDetailModal:U,className:tl().listItem,data:e,wide:!0})}),S&&t+1===Math.min(3,u.another.length)&&(0,r.jsx)(N.nh,{className:tl().adFox,params:eJ.e$,config:y})]},e.url)),W&&Array.from({length:6},(e,t)=>(0,r.jsx)(eP.O,{className:tl().listItem},t))]}):S&&el&&(0,r.jsx)(N.nh,{className:tl().adFox,params:eJ.e$,config:y}),!W&&u.another.length>O&&(0,r.jsx)(N.zx,{size:"s",onClick:()=>{(0,eh.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__lidgen"}),I(e=>e+10)},className:(0,d.Z)(tl().button,tl().spaced),variant:"secondary",children:"Еще предложения"})]}),ec(),(0,r.jsx)(c.W2,{children:!!u.another.length&&u.another.length<=O&&(0,r.jsxs)("p",{className:tl().bondsInfo,children:["Предложения по вкладам закончились."," ",(0,r.jsx)(D.default,{className:tl().bondsLink,href:"".concat(ez._n,"/invest/bonds"),children:"Посмотрим облигации?"})]})}),P&&(0,r.jsx)(eM.Z,{data:P,discount:p,isOldUser:s,isOpen:z,onClose:Q,extraInfo:b,isPlusFiveBonus:f,questions:x,depositSumm:E.value,depositTerm:null!==(i=null==L?void 0:L.label)&&void 0!==i?i:"Любой",initialAmount:Number(E.value),initialTermInMonths:Number(L.value),eventCategory:en})]})};var to=i(34065),ts=i(19057),tr=i(63621);let tc=Object.freeze(["DEFAULT","vse_vkladi","pod_vysokiy_procent","nakopitelnye","top_20_luchshih","s_popolneniem","dlya_pensionerov","valytnye","na_3_mesyaca_pod_vysokiy_procent","v_dollarah","srochnye","s-ezhemesyachnoj-kapitalizaciej","do_vostrebovaniya","so_snyatiem","na_1_mesyac","kratkosrochnye","v_yuan","na_6_mesyacev"]);var td=i(55051),tu=i.n(td),t_=i(61366),tp=i(25123),tm=i(92192),tv=i(508);let th=e=>{var t,i,n,l;let{isVariantB:a,tag:o,path:s}=e,r=(0,tv.p)(s),c=String(r.amount),d=String(r.period),u=String(r.term),_={term:0,amount:"0",currencyCode:"RUB",withRefill:!1,withCapitalization:!1,withMonthlyPercent:!1,withPreferentialTermination:!1},p=(0,tp.O)(null==o?void 0:null===(t=o.filter)||void 0===t?void 0:t.currency);return(null==o?void 0:o.filter)&&(_.term=null!==(n=null===(i=o.filter.term.values)||void 0===i?void 0:i[0])&&void 0!==n?n:null===o.filter.term.from||isNaN(Number(o.filter.term.from))?_.term:Number(o.filter.term.from),_.currencyCode=(0,tm.z)(p).code,_.withRefill=!!o.filter.refill,_.withCapitalization=1===o.filter.interest_capitalization,_.withMonthlyPercent=!!o.filter.interestsMonthly,_.withPreferentialTermination=!!o.filter.earlyTermination,_.amount=String(null!==(l=o.filter.amount)&&void 0!==l?l:_.amount)),a&&(_.term=0,_.amount=""),c&&!isNaN(+c)&&(_.amount=c),d&&!isNaN(+d)&&(_.term=+d),u&&!isNaN(+u)&&(_.term=+u),_};var tg=i(84381);(n=o||(o={})).VariantA="VariantA",n.VariantB="VariantB";let tf=null!==(s=(0,T.OB)("NEXT_PUBLIC_BASE_URL"))&&void 0!==s?s:"*",tb=(0,I.b)(),tx=Object.freeze(["moskva","sankt-peterburg"]),tA=e=>(0,r.jsx)(D.default,{...e}),tC=e=>{var t;let{stores:i,depositTags:n,depositTag:l,currencies:o,discounts:s,bounds:d,bankTowns:u,depositRegion:p,depositRegionLinks:m,defaultRegion:v,defaultTown:h,depositsTitle:g,depositsDescription:f,depositsSubtitle:x,initialAnotherDeposits:A,initialPlatformDeposits:w,allExtraInfo:j,banks:D,questions:T,supportBlockSrc:E,journalBlockSrc:O,isPlatformShowcase:I,initialCurrentDepositsLength:P,initialAllDepositsLength:z,initialComboDeposits:U,initialQuote:Q,crossLinkLabels:H,initialSeoText:q}=e,{toggles:K}=(0,V.ND)(),X=(0,N._m)("l"),{asPath:J,push:$}=(0,eb.P)(),{regions:ee,town_duplicates:et}=(0,eE.f)(!1,{region:v,town:h}),[ei,en]=(0,_.useState)(Q),[el,ea]=(0,_.useState)(q),{town:es,region:ed,handleSetTown:eu,handleSetRegion:ep}=eS({pageName:Y.a.VKLADY,regions:ee,initialValues:{region:v,town:h}}),{bonuses:ex,isHiddenPromo:ej,isPlusFiveBonus:ey,isOldUser:eN,isDiscountsLoading:eD,customerId:eT}=(0,eC.Z)(s,!0),eM=(0,ew.a)(M.tE),eO=(0,ek.K)({bannersTitle:[M.N9.DEPOSITS_ADVANTAGES,M.N9.VKLADY,M.N9.VKLADY_TAGS],queryParams:eM,stores:i}),[eI,eP]=(0,_.useState)(ey||eN),[ez,eU]=(0,_.useState)(!0),[eQ,eW]=(0,_.useState)(l),[eG,eV]=(0,_.useState)([]),[eY,eZ]=(0,_.useState)([]),[eH,eq]=(0,_.useState)(!0),eK=(0,_.useRef)(!1),eX=(0,_.useRef)(!1),[e$,e0]=(0,_.useState)();(0,_.useEffect)(()=>{K.FEATURE_TOGGLE_NEW_DEPOSITS&&eo({tagUrl:"all_offers",depositTags:n,setTag:e0,toggles:K,shouldFetchTexts:!1})},[n,K]),(0,_.useEffect)(()=>{if(e$&&K.FEATURE_TOGGLE_NEW_DEPOSITS){var e,t,i;(0,Z.O)({withAnotherDeposits:!I,banks:D,tagId:e$.id,platformProducts:null!==(i=null==e$?void 0:null===(t=e$.stats)||void 0===t?void 0:null===(e=t.platform)||void 0===e?void 0:e.productIds)&&void 0!==i?i:[],toggles:K}).then(e=>{let{platform:t,another:i}=e;eV(t),eZ(i),eq(!1),eU(!1)})}},[I,D,e$,K]),(0,_.useEffect)(()=>{K.FEATURE_TOGGLE_NEW_DEPOSITS||(0,Z.O)({withSavingAccounts:(null==eQ?void 0:eQ.url)===a.nakop,withAnotherDeposits:!I,toggles:K}).then(e=>{let{platform:t,another:i}=e;eV(t),eZ(i),eq(!1),eU(!1)})},[I,null==eQ?void 0:eQ.url,K]),(0,_.useEffect)(()=>{if(!eK.current){eK.current=!0;return}e_({tag:null==eQ?void 0:eQ.url,region:null==ed?void 0:ed.url,town:null==es?void 0:es.url}).then(e=>en(e))},[null==ed?void 0:ed.url,null==eQ?void 0:eQ.url,null==es?void 0:es.url]),(0,_.useEffect)(()=>{if(!eX.current){eX.current=!0;return}em({region:null==ed?void 0:ed.id}).then(e=>ea(e||null))},[null==ed?void 0:ed.id]);let[e1,e2]=(0,_.useState)("VariantA"),e4=e=>{let t=e.data;(null==t?void 0:t.key)&&"filterBehavior"===t.key&&e2(t.value)};(0,_.useEffect)(()=>(window.addEventListener("message",e4),()=>window.removeEventListener("message",e4)),[]);let e3=(0,_.useMemo)(()=>th({isVariantB:"VariantB"===e1,path:J,tag:eQ}),[J,eQ,e1]),e6=(0,_.useCallback)(e=>{$((0,eg.C)("deposits",{id:"",name:"",url:e},ed,es)||"/vklady"),eo({tagUrl:e,depositTags:n,setTag:eW,toggles:K})},[$,ed,es,n,K]),e7=(0,tg.L)({tag:eQ,currencies:o,banks:D,defaultValues:e3,isDiscount:eI,filterType:e1}),e5=ef(),[e8,e9]=(0,_.useState)(p),[te,tt]=(0,_.useState)(m);(0,_.useEffect)(()=>{L({region:ed,town:es,tag:eQ}).then(e=>{e.data&&!e.data.message&&e9(e.data)}),F({region:ed}).then(e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.region_links)&&tt(e.data.region_links)})},[null==ed?void 0:ed.url,null==es?void 0:es.url,null==eQ?void 0:eQ.url]);let ti=(0,_.useCallback)((e,t)=>{N.A7.setItem("user_region",e?JSON.stringify(e):""),N.A7.setItem("user_town",t?JSON.stringify(t):""),ep(e),eu(t||null)},[ep,eu]),tn=(0,_.useMemo)(()=>({initialAnotherDeposits:A,initialPlatformDeposits:w,platformDeposits:eG,anotherDeposits:eY,bounds:d,isPlusFiveBonus:ey,isOldUser:eN,filter:{amount:e7.amountData.value,currency:String(e7.currencyUnit),withRefill:e7.withRefill,filterAdditionalSettings:e7.filterAdditionalSettings,importantDeposits:e7.importantDeposits,initialSort:e7.initialSort,order:e7.increaseSort?t_.mr.Desc:t_.mr.Asc,sortType:e7.sortType,isDiscount:eI,term:e7.term?Number(e7.term.value):void 0,withCapitalization:e7.withCapitalization,activeBanks:e7.activeBanks?e7.activeBanks.map(e=>String(e.value)):void 0,withMonthlyPercent:e7.withMonthlyPercent,withPreferentialTermination:e7.withPreferentialTermination},banks:D,discounts:ex,bankTowns:u,town:es,region:ed,allExtraInfo:j,getOnlyInitialData:eH,initialAllDepositsLength:z,initialCurrentDepositsLength:P}),[A,w,eG,eY,d,ey,eN,e7.amountData.value,e7.currencyUnit,e7.withRefill,e7.filterAdditionalSettings,e7.importantDeposits,e7.initialSort,e7.increaseSort,e7.sortType,e7.term,e7.withCapitalization,e7.activeBanks,e7.withMonthlyPercent,e7.withPreferentialTermination,eI,D,ex,u,es,ed,j,eH,z,P]),[tl,td]=(0,_.useState)(()=>(0,eL.O)(tn));(0,_.useEffect)(()=>{eP(tl.platform.some(e=>e.hasDiscount))},[tl]);let tp=(0,_.useMemo)(()=>e8?(0,eF.Y)({data:tl.another,platformDepositLists:tl.platform,tags:n,regionLinks:te,dataRegion:e8,regions:ee,banks:D,tag:eQ,region:ed,town:es,townDuplicates:et,setTag:e6,setRegion:ti,currencies:o,toggles:K}):[],[te,n,tl,e8,ee,D,eQ,ed,es,et,e6,ti,o,K]),tm=null==ex?void 0:ex.find(e=>"five_procent"===e.unique_key);(0,_.useEffect)(()=>{tb(()=>td((0,eL.O)(tn)))},[tn]);let{title:tv,description:tC,subtitle:tk,h1:tw,inRegion:tj,highPrice:ty,minDepositAmount:tN,minTermPeriod:tD}=(0,ec.x)({tag:eQ,region:ed,town:es,depositLists:tl}),tT=(null==tl?void 0:tl.notInitialDeposits)?tv:g,tS=(null==tl?void 0:tl.notInitialDeposits)?tC:f,tE=(null==tl?void 0:tl.notInitialDeposits)?tk:x,tL=(0,_.useMemo)(()=>(0,ev.L)(eQ),[eQ]),tF=(0,_.useMemo)(()=>{if(!(null==ed?void 0:ed.url))return"";let e=76!==ed.id&&77!==ed.id&&(null==es?void 0:es.url)?null==es?void 0:es.url:"";return(0,S.xn)("/reg_".concat(ed.url),e)},[null==ed?void 0:ed.url,null==ed?void 0:ed.id,null==es?void 0:es.url]),tR=(0,_.useMemo)(()=>{var e;let t=[{label:"Вклады ".concat(tj),href:"/vklady".concat(tF)}];return tL||t.push({label:"".concat(null!==(e=null==eQ?void 0:eQ.tag_name)&&void 0!==e?e:tw).concat(tj),href:(0,S.xn)("/vklady","/teg_".concat(null==eQ?void 0:eQ.url),tF)}),t},[tj,tF,tL,null==eQ?void 0:eQ.tag_name,null==eQ?void 0:eQ.url,tw]),tB=(0,er.W)({tagName:null==eQ?void 0:eQ.faq_title,inRegion:tj}),{fitsForMonthlyPercentFilter:tM,fitsForPreferentialTerminationFilter:tO,fitsForCapitalization:tI,fitsForRefill:tP}=tl;!function(e){let{filter:t,showCapitalization:i,showMonthlyPercent:n,showPreferentialTermination:l,showRefill:a}=e,{withCapitalization:o,withMonthlyPercent:s,withPreferentialTermination:r,withRefill:c,handleWithCapitalizationChange:d,handleWithMonthlyPercentChange:u,handleWithPreferentialTerminationChange:p,handleWithRefillChange:m}=t,v=(0,_.useMemo)(()=>({withCapitalization:o,withMonthlyPercent:s,withPreferentialTermination:r,withRefill:c}),[o,s,r,c]),h=(0,_.useRef)(v);(0,_.useEffect)(()=>{if(!eA()(h.current,v)){h.current=v;return}r&&!l&&p(!1),s&&!n&&u(!1),o&&!i&&d(!1),c&&!a&&m(!1)},[v,d,u,p,m,i,n,l,a,o,s,r,c])}({showMonthlyPercent:tM,showPreferentialTermination:tO,showCapitalization:tI,showRefill:tP,filter:e7});let{comboDeposits:tz}=W({amount:+e7.amountData.value,term:+e7.term.value,initialComboDeposits:U,toggle:K.FEATURE_TOGGLE_COMBO_PRODUCT_ENABLED,tag:eQ,customerId:eT});(0,_.useEffect)(()=>{(0,eh.lQ)({eventCategory:"deposits_".concat(J),eventAction:"view",eventLabel:"",eventValue:""})},[]),(0,_.useEffect)(()=>{document.title=tT},[tT]);let tU=X?"Читать все вопросы про вклады":"Все вопросы про вклады",tQ=(null==eQ?void 0:eQ.url)==="nakopitelnye",tW=K.FEATURE_TOGGLE_DISPLAY_DEPOSIT_GUIDE&&!eN&&!tQ,tG=(0,_.useMemo)(()=>G(null==eQ?void 0:eQ.url,e5),[e5,null==eQ?void 0:eQ.url]);return(0,r.jsxs)("main",{className:tu().page,children:[tL&&ed&&tx.includes(ed.url)&&(0,r.jsx)(tr.Z,{minDepositAmount:tN,minTermPeriod:tD,regionName:ed.name_p,maxRate:ty,regionUrl:ed.url}),(0,r.jsx)(R.g,{regionUrl:tF,tag:eQ,inRegion:tj}),eQ&&tc.includes(null==eQ?void 0:eQ.url)&&(0,r.jsx)(to.M,{textList:eQ.text,regionId:null==ed?void 0:ed.region_id,townId:null==es?void 0:es.id}),(0,r.jsx)(c.W2,{className:tu().mainContainer,fluid:!0,children:(0,r.jsx)(c.W2,{children:(0,r.jsx)(eB.v,{tag:eQ,setTag:e6,h1:tw,region:ed,town:es,subtitle:null!=tE?tE:"",length:eH?P:tl.currentLength,data:e7,terms:eJ.vw,withAdditional:!tl.boundsIsEmpty,isMobile:!X,partnerId:null,isDiscount:eI,breadcrumbsPath:tR,showDepositGuide:tW,isSavingAccounts:tQ,showAdFoxBanner:tG})})}),(0,r.jsx)(ta,{filter:e7,isDiscount:eI,isOldUser:eN,banks:D,platformDeposits:eG,anotherDeposits:eY,depositLists:tl,adFoxConfig:e5,discount:tm,isMobile:!X,bannerUrl:tL?eO[M.N9.VKLADY]:null!==(t=eO[M.N9.VKLADY_TAGS])&&void 0!==t?t:eO[M.N9.VKLADY],isHiddenPromo:ej,existTag:!tL,town:es,region:ed,extraInfo:j,isPlusFiveBonus:ey,isDiscountsLoading:eD||ez,questions:T,pageUrl:Y.a.VKLADY,currentDepositsLength:eH?P:tl.currentLength,allDepositsLength:eH?z:tl.allLength,comboDeposits:tz,isSavingAccounts:tQ,showDepositGuide:tW,showAdFoxBanner:tG}),ei&&(0,r.jsx)(C,{quote:ei}),(0,r.jsx)(ts.Q,{filterCurrency:e7.currency.value,currentLength:tl.currentLength,isHiddenPromo:ej,description:tS,h1:tw,inRegion:tj,platform:tl.platform,another:tl.another,regionUrl:tF,tagUrl:!tL&&eQ?eQ.url:""}),(0,r.jsx)(B.Z,{commonBlockSrc:O}),(0,r.jsx)(B.Z,{commonBlockSrc:E}),K.FEATURE_TOGGLE_NEW_FAQ_BLOCK&&el&&(0,r.jsx)(y,{content:null==el?void 0:el.content,dataLayerPush:eh.lQ,sectionTitle:"Seo Text",blockTitle:null==el?void 0:el.title}),K.FEATURE_TOGGLE_NEW_FAQ_BLOCK&&H&&(0,r.jsx)(b,{labelsData:H,sectionTitle:"Блок перелинковки",dataLayerPush:eh.lQ}),K.FEATURE_TOGGLE_NEW_FAQ_BLOCK?(0,r.jsx)(k.C,{sectionTitle:tB,Link:tA,dataLayerPush:eh.lQ,questions:tp,eventCategory:"deposits_support_block",href:(0,S.xn)(tf,"help"),checkAllText:tU}):(0,r.jsx)(N.Bp,{sectionTitle:tB,faqBlockTitle:"",Link:tA,dataLayerPush:eh.lQ,questions:tp,eventCategory:"deposits_support_block",href:(0,S.xn)(tf,"help"),checkAllText:tU}),(0,r.jsx)(eR.s,{data:e7,isDiscount:eI,isMobile:!X,terms:eJ.vw,depositsLength:tl.currentLength,withAdditional:!tl.boundsIsEmpty,partnerId:null,showMonthlyPercent:tM,showPreferentialTermination:tO,showCapitalization:tI,showRefill:tP,withCapitalizationTittle:"Капитализация",withRefillTitle:"Пополнение"})]})}},98227:function(e,t,i){"use strict";i.d(t,{s:function(){return F}});var n=i(57437),l=i(26094),a=i(61810),o=i(7301),s=i(34734),r=i(2265),c=i(36816),d=i(55004),u=i(72255),_=i(60364),p=i(3821),m=i(11124),v=i(72434),h=i(30936),g=i(17155),f=i(16243),b=i(93880),x=i(11370),A=i(3522),C=i(61366),k=i(12694),w=i(96182),j=i.n(w);let y=(0,r.memo)(e=>{let{onToggleAdditionalSettings:t,filterSettings:i,direction:l="row"}=e;return(0,n.jsxs)("div",{className:j().wrapper,children:[(0,n.jsx)("h6",{className:(0,s.Z)(j().title,{[j().margin]:"column"===l}),children:"Что искать"}),(0,n.jsx)("div",{className:(0,s.Z)(j().checkboxList,{[j().column]:"column"===l}),children:A.PT.map(e=>{let l=i.includes(e.name);return(0,n.jsx)(o.iM,{label:e.label,checked:l,onChange:i=>{(0,f.lQ)({event:"data-event",eventAction:"vklady",eventCategory:"filter_catalog",eventLabel:(0,b.b)(e.label),eventValue:i?"on":"off"}),t(e.name,!l)}},e.name)})})]})});y.displayName="DepositsAdditionalSettings";let N=Object.freeze({[p._.MIN_BALANCE]:"Проценты начисляются на минимальную сумму, которая находилась на счёте в течение месяца. Если вы снимали или переводили деньги, то учитывается самая маленькая сумма за период",[p._.AVG_BALANCE]:"Проценты рассчитываются на среднее арифметическое значение средств, которые были на счёте в течение месяца. То есть учитывается баланс на разные даты и выводится усреднённая сумма",[p._.DAILY_BALANCE]:"Проценты начисляются ежедневно на фактический остаток на счёте"});var D=i(45007),T=i.n(D);function S(e){return e?"ON":"OFF"}function E(e){let{withCapitalization:t,withRefill:i,amountData:n,sortType:l,activeBanksValue:a,term:o,currency:s}=e,r=a?a.join("_"):"";return[n.value.length?n.value:0,(0,b.b)(o.label),(0,b.b)(s.label),"[".concat(r,"]"),"replenish(".concat(S(i),")"),"capitalization(".concat(S(t),")"),"order(".concat(l===C.ER.Rate?"RATE":l===C.ER.Profit?"INCOME":"BONUS",")")].join("__")}let L=e=>{let{terms:t,data:i,isDiscount:l,isMobile:c,withAdditional:w,withHeader:j=!0,eventCategory:D="vklady",withNewMarkup:S=!1,inputSize:E="small",tipIcon:L,amountInputTitle:F="Сумма",termInputTitle:R="Срок",partnerId:B,showMonthlyPercent:M=!1,showPreferentialTermination:O=!1,showCapitalization:I=!0,showRefill:P=!0,withCapitalizationTittle:z="С капитализацией",withRefillTitle:U="С пополнением",withSort:Q=!0,showInterestAccrual:W=!1}=e,{activeBanks:G,amountData:V,banksOptions:Y,currency:Z,handleActiveBanksChange:H,handleTermChange:q,sortType:K,currenciesOptions:X,handleSortTypeChange:J,setInitialSort:$,term:ee,withCapitalization:et,handleWithCapitalizationChange:ei,withRefill:en,handleWithRefillChange:el,handleChangeCurrency:ea,modalActiveField:eo,filterAdditionalSettings:es,withMonthlyPercent:er,withPreferentialTermination:ec,handleWithMonthlyPercentChange:ed,handleWithPreferentialTerminationChange:eu,handleChangeAdditionalSettings:e_,handleToggleModal:ep,handleLoad:em,handleAmountChange:ev,interestAccrual:eh,handleInterestAccrualChange:eg}=i,ef=(0,r.useRef)((0,h.b)()),eb=eo&&[v.a.term,v.a.banks].includes(String(eo))&&c,ex=(0,r.useCallback)(()=>{eb&&setTimeout(()=>{ep()},300)},[ep,eb]),eA=(0,r.useCallback)(e=>{var t;let i=null==e?void 0:null===(t=e[0])||void 0===t?void 0:t.label;q(null==e?void 0:e[0]),(0,f.lQ)({event:"data-event",eventCategory:"deposits__".concat(D,"__popup_all_params"),eventAction:"click_term",eventLabel:i?(0,b.b)(i):""})},[D,q]),eC=(0,r.useCallback)(e=>{if(null==e?void 0:e[0]){let t=e[0].label;ea(e[0]),(0,f.lQ)({event:"data-event",eventCategory:"deposits__".concat(D,"__popup_all_params"),eventAction:"click_currency",eventLabel:t?(0,b.b)(t):""})}},[D,ea]),ek=e=>{var t;e&&(C.ER.RatePlusBonus===e||C.ER.Rate===e||C.ER.Profit===e)&&(J(e),$(!1));let i=null===(t=A.$m.find(t=>t.value===e))||void 0===t?void 0:t.label;(0,f.lQ)({event:"data-event",eventCategory:"deposits__".concat(D,"__popup_all_params"),eventAction:i?"click_sort_".concat((0,b.b)(i)):""})},ew=(0,r.useCallback)(e=>{V.handleChange(e.currentTarget.value,e=>{ef.current(()=>{ev(Number(e)),(0,f.lQ)({event:"data-event",eventCategory:"deposits__".concat(D,"__popup_all_params"),eventAction:"input_form__amount",eventLabel:e})})})},[V,D,ev]),ej=(0,r.useCallback)(e=>{let t=null==e?void 0:e.map(e=>e.label).join(",");H(e),(0,f.lQ)({event:"data-event",eventCategory:"deposits__".concat(D,"__popup_all_params"),eventAction:"click_bank",eventLabel:t?(0,b.b)(t):""})},[D,H]),ey=(0,r.useCallback)(()=>{el(!en),(0,f.lQ)({event:"data-event",eventCategory:"deposits__".concat(D,"__popup_all_params"),eventAction:"click_".concat(en?"off":"on","_").concat((0,b.b)(U))})},[D,el,en,U]),eN=(0,r.useCallback)(()=>{ei(!et),(0,f.lQ)({event:"data-event",eventCategory:"deposits__".concat(D,"__popup_all_params"),eventAction:"click_".concat(et?"off":"on","_").concat((0,b.b)(z))})},[D,ei,et,z]);(0,r.useEffect)(()=>{eo===v.a.amount&&V.events.onFocus()},[V.events,eo]);let eD=(0,r.useRef)(null),eT=(0,x.Z)(0,0,j),eS=(0,r.useCallback)(()=>{ep(),(0,o.ld)(u.TM,{offset:eT,position:"top",delay:350}),em()},[em,ep,eT]),eE=(0,r.useMemo)(()=>(0,k.Q)(l,+V.value),[l,V.value]),eL=(0,r.useCallback)(e=>{if(S){(0,f.lQ)({eventAction:"click__tooltip__filter__catalog",eventCategory:D,eventLabel:e});return}(0,f.lQ)({event:"data-event",eventCategory:"deposits__".concat(D,"__popup_all_params"),eventAction:"click_mark_question_".concat(e)})},[D,S]),eF=(0,r.useCallback)(e=>{ed(e.target.checked),(0,f.lQ)({event:"data-event",eventCategory:"deposits__".concat(D,"__popup_all_params"),eventAction:"click_".concat(e.target.checked?"on":"off","_procenty_ezhemesyachno")})},[D,ed]),eR=(0,r.useCallback)(e=>{eu(e.target.checked),(0,f.lQ)({event:"data-event",eventCategory:"deposits__".concat(D,"__popup_all_params"),eventAction:"click_".concat(e.target.checked?"on":"off","_lgotnoe_rastorzhenie")})},[D,eu]),{depositFilterModal:eB}=(0,r.useMemo)(()=>(0,m.p)(B)||{},[B]),eM=es.includes(v.a.deposits)&&(I||M||O||P),eO=e=>{e===eh&&eg(void 0)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:(0,m.Q)((0,s.Z)(T().title,!B&&T().hidden),T(),null==eB?void 0:eB.modalTitleClassName),children:"Все параметры"}),(0,n.jsxs)("div",{ref:eD,className:(0,m.Q)(T().fields,T(),null==eB?void 0:eB.modalFieldsClassName),children:[(0,n.jsx)(o.lF,{id:"amountDataModal",value:V.isFocused?V.value:V.formattedValue,label:F,className:T().field,...V.events,autoFocus:eo===v.a.amount,onChange:ew,onKeyDown:e=>(0,g.u)(e,eS),size:E,inputMode:"numeric"}),(0,n.jsx)(o.HU,{defaultOpen:eo===v.a.term,label:R,className:T().field,value:ee?[ee]:ee,options:t,onChange:eA,isMobile:c,onClose:ex,size:E}),X.length>1&&(0,n.jsx)(o.HU,{label:"Валюта",className:T().field,value:[Z],options:X,onChange:eC,isMobile:c,onClose:ex,size:E}),es.includes(v.a.deposits)&&Y.length>0&&(0,n.jsx)(o.HU,{label:"Банки",className:T().field,multiple:!0,value:G,options:Y,onChange:ej,defaultOpen:eo===v.a.banks,isMobile:c,onClose:ex,search:!0,size:E})]}),(0,n.jsxs)("div",{className:(0,m.Q)(T().settings,T(),null==eB?void 0:eB.modalSettingsClassName),children:[w&&(0,n.jsx)(y,{direction:"column",filterSettings:es,onToggleAdditionalSettings:e_}),eM&&(0,n.jsxs)("div",{children:[(0,n.jsx)("h6",{className:T().settingsTitle,children:"Дополнительно"}),P&&(0,n.jsxs)("div",{className:(0,m.Q)(T().checkboxWrapper,T(),null==eB?void 0:eB.modalCheckboxWrapperClassName),children:[(0,n.jsx)(o.iM,{label:U,checked:en,onChange:ey})," ",(0,n.jsx)(d.C,{text:"Возможность вносить денежные средства в период действия вклада.",onOpen:()=>eL((0,b.b)(U)),icon:L})]}),I&&(0,n.jsxs)("div",{className:(0,m.Q)(T().checkboxWrapper,T(),null==eB?void 0:eB.modalCheckboxWrapperClassName),children:[(0,n.jsx)(o.iM,{label:z,checked:et,onChange:eN})," ",(0,n.jsx)(d.C,{text:"Обычно начисление процентов по вкладу происходит один раз, в конце срока действия вклада.\n</br> У вкладов с капитализацией проценты начисляются в течение срока действия вклада, например, раз в месяц, раз в год и т.п. Начисленные проценты прибавляются к вкладу и общий доход от вклада увеличивается.",onOpen:()=>eL((0,b.b)(z)),icon:L})]}),M&&(0,n.jsxs)("div",{className:T().checkboxWrapper,children:[(0,n.jsx)(o.iM,{label:"Проценты ежемесячно",checked:er,onChange:eF}),(0,n.jsx)(d.C,{text:"Проценты по этому вкладу буду поступать ежемесячно на ваш кошелек Финуслуг",onOpen:()=>eL("procenty_ezhemesyachno")})]}),O&&(0,n.jsxs)("div",{className:T().checkboxWrapper,children:[(0,n.jsx)(o.iM,{label:"Льготное расторжение",checked:ec,onChange:eR}),(0,n.jsx)(d.C,{text:"Возможность досрочно закрыть вклад, при этом, не потерять часть накопленных %",onOpen:()=>eL("lgotnoe_rastorzhenie")})]})]}),W&&(0,n.jsxs)("div",{children:[(0,n.jsx)("h6",{className:T().settingsTitle,children:"Начисление процентов"}),Object.keys(p._).map(e=>(0,n.jsxs)("div",{className:T().interestAccrualRow,children:[(0,n.jsx)(a.Y8,{checked:e===eh,value:e,name:"interest-accrual",onChange:eg,onClick:()=>eO(e),children:_.s[e]}),(0,n.jsx)(d.C,{text:N[e]})]},e))]}),Q&&(0,n.jsxs)("div",{className:(0,m.Q)(T().sortBlock,T(),null==eB?void 0:eB.modalSortBlockClassName),children:[(0,n.jsx)("h6",{className:T().settingsTitle,children:"Сортировать"}),(0,n.jsx)("div",{className:T().radioGroup,children:eE.map(e=>(0,n.jsx)("div",{className:T().radioWrapper,children:(0,n.jsx)(o.UN,{onChange:()=>ek(e.value),checked:K===e.value,className:T().radio,value:e.value,label:e.label})},e.value))})]})]})]})},F=e=>{let{data:t,isMobile:i,depositsLength:a,className:r,withHeader:d=!0,withNewMarkup:_=!1,eventCategory:p="vklady",drawerClassName:m,partnerId:v}=e,{isOpenModal:h,handleToggleModal:g,reset:b,handleLoad:A}=t,C=(0,x.Z)(0,0,d),k=(0,n.jsxs)("div",{className:T().buttonActions,children:[(0,n.jsx)(o.zx,{variant:"secondary",size:"s",className:T().button,onClick:()=>{if(b(),_){let e=E(t);(0,f.lQ)({event:"data-event",eventAction:"click_button_filter_catalog_sbrosit_parametry",eventCategory:p,eventLabel:e});return}(0,f.lQ)({event:"data-event",eventCategory:"deposits__".concat(p,"__popup_all_params"),eventAction:"click_button_sbrosit_parametry"})},iconLeft:v?void 0:(0,n.jsx)(l.IconFdsGarbageBinO,{}),children:"Сбросить параметры"}),(0,n.jsxs)(o.zx,{size:"s",className:T().button,onClick:()=>{if(_){let e=E(t);(0,f.lQ)({event:"data-event",eventAction:"click_button_filter_catalog_pokazat",eventCategory:p,eventLabel:e});return}g(),(0,o.ld)(u.TM,{offset:C,position:"top",delay:350}),A(),(0,f.lQ)({event:"data-event",eventCategory:"deposits__".concat(p,"__popup_all_params"),eventAction:"click_button_pokazat"})},children:["Показать ",a]})]});return(0,n.jsxs)(c.h,{children:[!i&&(0,n.jsx)(o.dy,{className:T().modal,footer:k,contentClassName:(0,s.Z)(T().content,m,!v&&T().thin),isOpen:h,onClose:t.handleToggleModal,children:(0,n.jsx)(L,{...e})}),i&&(0,n.jsx)(o.jr,{className:(0,s.Z)(T().mobilePopup,r,!v&&T().thin),contentClassName:(0,s.Z)(T().content,!v&&T().thin),isOpen:h,onClose:t.handleToggleModal,footer:k,children:(0,n.jsx)(L,{...e})})]})}},13269:function(e,t,i){"use strict";i.d(t,{v:function(){return Q}});var n=i(57437),l=i(26094),a=i(32833),o=i(61810),s=i(7301),r=i(34734),c=i(20703),d=i(2265),u={src:"/deposits/_next/static/media/defaultBg.ac284e87.png",height:483,width:700,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAw0lEQVR42mMAgbL0PiYQnRQ3X3xdW+ORAxOXOtZP/683ddIncbCCzc4MYAUVgTXTTkzp+D8ps3L31Nn/A7smflcFK/i//j9Tq0+n5L789JcnyjP+91o6vd446VlQW88faYZXCam8aWv/s70O8Vh0rrzi/93te36+XNj3//Hx410MDMc5GP5nlDCfqmjjOKYocu+EX8j/x0cO/ro+s/P/tZK8HAYYOOQTwLuIge3KPj3l/2fbqn/vc3P6f4aZIYKBgYEBAHrlVvp6odVEAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6},_=i(43421),p=i(76558),m=i(49560),v=i(72255),h=i(3522),g=i(11124),f=i(30936),b=i(17155),x=i(16243),A=i(93880),C=i(7949),k=i(11370),w=i(10913),j=i(41890),y=i.n(j);let N=e=>e.splice(1,e.length-1).join(" ").trim(),D=e=>{let t=e.split("."),i=t.length>1&&t.every(e=>e),n=i?t[0]:e,l=i?N(t):"";return{isLong:i,firstText:n,secondText:l}},T=(0,d.memo)(e=>{let{className:t,subtitle:i=""}=e,{isLong:a,secondText:o,firstText:s}=D(i),[c,u]=(0,d.useState)(!1);return i?(0,n.jsxs)("div",{className:y().accordion,children:[(0,n.jsx)("div",{className:(0,r.Z)(y().accordionTitle,a&&y().pointer),onClick:()=>a&&u(!c),children:(0,n.jsxs)("div",{className:y().title,children:[(0,n.jsx)("p",{className:y().mobile,children:s}),(0,n.jsx)("p",{className:y().desktop,children:i}),(0,n.jsx)("span",{className:y().iconWrapper,children:a&&(0,n.jsx)(l.IconFdsChevronDownO,{style:{color:"#6C6D78"},size:24,className:(0,r.Z)(y().icon,c&&y().expanded)})})]})}),(0,n.jsx)("div",{className:(0,r.Z)(y().subTitle,!c&&y().hidden,t),children:o})]}):null});T.displayName="RegionSubtitle";var S=i(94123),E=i.n(S);let L=(0,d.memo)(e=>{let{region:t,town:i,subtitle:l="",title:a,mainPageUrl:o,tagUrl:s,hasNewBanner:c,className:d}=e,{town:u,region:_,handleToggleModal:p}=(0,w.k)(),m=e=>{(0,x.lQ)({event:"data-event",eventAction:e,eventCategory:o})};return(0,n.jsxs)("div",{className:(0,r.Z)(E().titleWrapper,{[E().newTitle]:c}),children:[(0,n.jsxs)("h1",{"data-testid":"title_data_for_qa",className:(0,r.Z)(E().title,d),children:[a," ","premium"!==s&&((null==u?void 0:u.name_p)||(null==i?void 0:i.name_p)||(null==_?void 0:_.name_p)||(null==t?void 0:t.name_p))&&(0,n.jsxs)(n.Fragment,{children:["в"," ",(0,n.jsx)("button",{onClick:()=>{p(!0),m("show_pop_up_city_modal")},className:E().link,children:(null==u?void 0:u.name_p)||(null==i?void 0:i.name_p)||(null==_?void 0:_.name_p)||(null==t?void 0:t.name_p)})]})]}),!c&&(0,n.jsx)(T,{subtitle:l,tagUrl:s})]})});L.displayName="RegionTitle";var F=i(48899),R=i(32279),B=i.n(R);let M=e=>{let{title:t,subtitle:i,region:l,town:a,tag:o,titleClassName:s,headingTextClassName:c}=e;return(0,n.jsx)("div",{className:(0,r.Z)(B().pageHeading),children:(0,n.jsx)("div",{className:(0,r.Z)(B().headingText,c),children:(0,n.jsx)(L,{region:l,town:a,title:t,tagUrl:null==o?void 0:o.url,subtitle:i,mainPageUrl:F.a.VKLADY,className:s})})})};var O={src:"/deposits/_next/static/media/saving-accounts-bg.d0deb89f.png",height:612,width:886,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAxklEQVR42mMAgZ68QiYQ3V6UbRHqYNo9q2mvfP/0/6Z9k36KMpytW8+4fSIDWMHK7p6lbdEe/+39amYsWPbfr633sxoDCBxsmsIBoneHJ7ccb074vyS6ZvnCGf8dpnW+UGB4VVjLdT26TuzV/Rce38+eOv77/s3/x0xN7y4p3Gh+pOuUCMOTlRvBuh88fb3rzvP3/5/s3fdvLwPDt41JVXr/J+5kZ2B48Z8RpGDT/K0KDVWTjvf4Rv7frqRz4Hh2Ofv/tHxmAElEWou9CVyNAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6},I=i(94067),P=i.n(I);let z=e=>{let{eventCategory:t,withNewMarkup:i,text:n,amount:l,term:a}=e;(0,x.lQ)({event:"data-event",eventCategory:i?t:"deposits_".concat(t),eventAction:i?"click__button__form__".concat(n):"filters__click_button_show",eventLabel:i?"".concat(l,"__").concat((0,A.b)(a)):""})},U=e=>({heading:e?"Подберите счет":"Подберите вклад",disclaimer:e?"Счета застрахованы в АСВ":"Вклады застрахованы в АСВ"}),Q=(0,d.memo)(e=>{let{terms:t,tag:i,region:w,town:j,data:y,length:N,h1:D,subtitle:T,className:S,eventCategory:E="vklady",withHeader:L=!0,withNewMarkup:F=!1,amountInputTitle:R="Сумма",termInputTitle:B="Срок",inputSize:I="m",hideBanner:Q=!1,partnerId:W,countButtonLabel:G,isDiscount:V,breadcrumbsPath:Y,showDepositGuide:Z,isSavingAccounts:H,withSort:q=!0,isNewSavingAccounts:K=!1,adFoxConfig:X,showAdFoxBanner:J=!1}=e,{amountData:$,handleTermChange:ee,term:et,handleToggleModal:ei,handleLoad:en,handleAmountChange:el}=y,ea=$.value.length?$.value:0,eo=(0,d.useRef)((0,f.b)()),es=(0,d.useRef)(null),er=(0,o._m)("l"),{inView:ec}=(0,C.S)({itemRef:es,mode:"visibility",initialView:!0,disabled:!!W}),ed=(0,d.useCallback)(e=>{let t=null==e?void 0:e.label;ee(e),(0,x.lQ)({event:"data-event",eventCategory:"deposits_".concat(E),eventAction:"filters__click_period",eventLabel:t?(0,A.b)(t):""})},[E,ee]),eu=(0,k.Z)(0,0,L),e_=(0,d.useCallback)(()=>{(0,x.lQ)({eventCategory:"deposits_".concat(E),eventAction:"click_link",eventLabel:"kak_otkryt_vklad"}),(0,s.ld)(v.Yf,{offset:eu-80,position:"top"})},[E,eu]),ep=(0,d.useCallback)(()=>{(0,s.ld)(v.TM,{offset:eu,position:"top"}),en()},[en,eu]),em=(0,d.useCallback)(e=>{$.handleChange(e,e=>{eo.current(()=>{el(Number(e)),(0,x.lQ)({event:"data-event",eventCategory:"deposits_".concat(E),eventAction:"filters__input_amount",eventLabel:e})})})},[$,E,el]),ev=(0,d.useCallback)(e=>{var t;let i=(0,A.b)(null!==(t=e.currentTarget.textContent)&&void 0!==t?t:"");z({eventCategory:E,withNewMarkup:F,term:et.label,text:i,amount:ea}),ep()},[ea,E,ep,et.label,F]),eh=(0,d.useCallback)(()=>{F&&(0,x.lQ)({event:"data-event",eventAction:"click__button__form__vse_parametry",eventLabel:"".concat(ea,"__").concat((0,A.b)(et.label)),eventCategory:E}),ei()},[ea,E,ei,et.label,F]),{depositFilter:eg}=(0,d.useMemo)(()=>(0,g.p)(W)||{},[W]),{heading:ef,disclaimer:eb}=(0,d.useMemo)(()=>U(H),[H]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:S,ref:es,children:[(0,n.jsxs)("span",{className:P().row,children:[(0,n.jsxs)("div",{className:P().headingBlock,children:[Y&&(0,n.jsx)(_.Z,{items:Y,isMobile:!er}),D&&(0,n.jsx)(M,{title:D,subtitle:T,region:w,town:j,tag:i,titleClassName:(0,g.Q)("",P(),null==eg?void 0:eg.depositTitleHeadingClassName),hideBanner:Q,headingTextClassName:(0,g.Q)("",P(),null==eg?void 0:eg.depositPageHeadingHeadingTextClassName)}),!W&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:(0,r.Z)(P().acbBlock,P().mobile),children:[Z&&(0,n.jsx)(o.zx,{variant:er?"white":"purple",appearance:er?"fill":"ghost",onClick:e_,iconRight:(0,n.jsx)(l.IconFdsArrowDownRightSmallO,{style:{color:er?"var(--color-red-500)":"var(--color-purple-600)"}}),size:"xs",children:H?"Как открыть счет":"Как открыть вклад"}),(0,n.jsx)(p.Y,{className:(0,r.Z)(P().disclaimer,P().desktop),text:eb})]}),(0,n.jsx)("div",{className:(0,r.Z)(P().heading,P().headingAppearance,P().desktop),children:ef})]})]}),!Q&&D&&(0,n.jsx)(c.default,{src:K?O:u,alt:"фоновое изображение",className:P().bannerDefaultImage,unoptimized:!0,priority:!0,loading:"eager"})]}),(0,n.jsxs)("div",{className:(0,g.Q)(P().wrapper_container,P(),null==eg?void 0:eg.controllerClassWrapper),children:[!W&&(0,n.jsx)(a.X6,{type:"h2",className:(0,r.Z)(P().heading,P().mobile),children:ef}),(0,n.jsxs)("div",{className:(0,g.Q)(P().container,P(),null==eg?void 0:eg.controllerClassName),children:[(0,n.jsxs)("div",{className:P().gridItem,children:[(0,n.jsx)(o.MA,{id:"amountData",label:R,value:$.isFocused?$.value:$.formattedValue,className:(0,g.Q)(P().field,P(),null==eg?void 0:eg.fieldClassName),...$.events,onChange:em,onKeyDown:e=>(0,b.u)(e,ep),size:I}),(0,n.jsx)(o.Ph,{className:(0,g.Q)(P().field,P(),null==eg?void 0:eg.fieldClassName),label:B,onChange:ed,options:t,value:et,size:I},null==et?void 0:et.label)]}),(0,n.jsxs)("div",{className:P().gridItem,children:[(0,n.jsx)(o.zx,{size:"m",variant:"secondary",onClick:eh,iconLeft:W?void 0:(0,n.jsx)(l.IconFilter,{}),children:"Все параметры"}),(0,n.jsx)(o.zx,{onClick:ev,size:"m",children:null!=G?G:"Показать ".concat(N)}),!W&&(0,n.jsx)(p.Y,{className:(0,r.Z)(P().disclaimer,P().mobile),text:eb})]})]})]}),J&&(0,n.jsx)(s.nh,{params:h.e$,config:X,className:P().adFox})]}),!ec&&!W&&(0,n.jsx)(m.Z,{isDiscount:V,filter:y,isDesktop:er,containerClassName:P().filter,filterStuckClassName:P().filterBottom,floating:!0,withSort:q})]})});Q.displayName="DepositsFilter"},39860:function(e,t,i){"use strict";i.d(t,{Z:function(){return N}});var n=i(57437),l=i(32833),a=i(61810),o=i(7301),s=i(34734),r=i(20703),c=i(8792),d=i(2265),u={src:"/deposits/_next/static/media/app-qr.cccd9ede.svg",height:256,width:256,blurWidth:0,blurHeight:0},_={src:"/deposits/_next/static/media/app-qr-tag.03b2a155.svg",height:256,width:256,blurWidth:0,blurHeight:0},p={src:"/deposits/_next/static/media/apps.5ef11a39.png",height:132,width:210,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAsElEQVR4nAGlAFr/Aebv/wAAAQAX597kXwj47/sFHirK4OP9mhMPAaozKueBAe32/wADAwAc3NXgkf3q5fo2RzuE2Nz6ChcX/+vQ2ABKAejo8wH7/gP/BQgDOgYHBvrj6/UWCAj6HxYJC8vK1f9rAdfe+AAAAP8RDg8IMA////e47vZCE/rfVEAjJIHj+wfUAfz//wDz9wA8qKWpiywqI7wnLTS69e32JQgNBs32+P0LbB9RzwJmaFIAAAAASUVORK5CYII=",blurWidth:8,blurHeight:5},m=i(36360),v=i(45250),h=i(16243),g=i(40871),f=i(64502),b={src:"/deposits/_next/static/media/books.ac4a18dc.png",height:540,width:621,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAYAAAA1WQxeAAAAx0lEQVR42mMgCCpa2kSi8qp8faPyJrgFZZ60D0jZ6eMV0+hnG+HC4J4kyGBR0s31mIGBhaFi2iSGtI7/DH75/w3dEp6v0rV3YQiv4mL4nBbKzMDAwHDQOXPBWp2Y/4sZvH5OZlD9dpGBwQluzbF9Kxfe3Tj5/7sVzb/fbuz6fnNGxf/7DAxxcAWfNvSeeXNs6f+X59b+v39yzf+186f+b9d23cCwtIWJAQReretxfbm6Le3Thpais725NQwMDBEM7oH6sQwM3AB8s0/cJvuq2wAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:7},x={src:"/deposits/_next/static/media/mobile-ad.03b9666b.png",height:144,width:226,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAsElEQVR4nAGlAFr/Acjc1TMQCApRJxsg79LY1g8I7fRfDxINAOT2+Q7Exs6ZAc7i2x0VBQtjFRMT++fo6EALCgswDw8P9d7c3Qhra25VAf/39joABwWl8/T4/N/e3gMZGxoEFBQUCb3EwddFPUBBAfr19hvIzsxM/Pv8KgwNDlYlJCP3/f3+FqqrqosjIiKBAQAAABoAAAC5oqKjD1RUVAAFBQT/4ODgDCUlJU0AAADGnHpFgtQFU3UAAAAASUVORK5CYII=",blurWidth:8,blurHeight:5},A={src:"/deposits/_next/static/media/mobile-services.fe0f5113.png",height:42,width:174,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAYAAABllJ3tAAAATUlEQVR4nAFCAL3/AcbU/rkCAP/jOCwDZNuWnLT//PsDJm5pSevo7ID79PQXAcvY/rb9/P/kOCwDZtqUmrf/+/oDJ3FsRunn6oL68fMXFx8obeMcrXcAAAAASUVORK5CYII=",blurWidth:8,blurHeight:2},C={src:"/deposits/_next/static/media/mobile-services-small.aef90a96.png",height:159,width:159,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAqElEQVR42mMAgf//vzBC6P/sT7fvqnpx8LAViP90/0Fmhv///4EkweD/z/c6l/Mr/t+ZOXc2AxIAKWI+d/Nf3a1n/yM+nTvh9u3dB4s3T54VfH7xwgCq4L/4vnP/H5+4+m8FiP/3/3+7O9fuHHn/7GUSw53H/xihpqj///9fDMT+/ege8////w1AbmIAgTPXEe749g3MxgRvPvxj+vAZIfnr128mBmIAAJwYYgeM0VvNAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},k=i(95762),w=i.n(k);function j(e){let{isIOS:t}=e,i=(0,a._m)("m");return(0,n.jsxs)("div",{className:(0,s.Z)(w().baseCourseBanner,t&&w().iosVariant),children:[(0,n.jsx)(r.default,{className:w().bannerImage,src:b,unoptimized:!0,alt:"course"}),(0,n.jsxs)("div",{className:w().bannerContent,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(l.xv,{className:w().title,weight:"medium",children:"Пройдите базовый курс по вкладам"}),i&&(0,n.jsxs)("div",{children:[" ",(0,n.jsx)(l.xv,{size:"14",children:"Научитесь эффективно использовать банковские вклады для увеличения капитала"})]})]}),(0,n.jsx)(a.zx,{onClick:()=>{window.open("https://school.moex.com/courses/kurs-po-vkladam?utm_source=finuslugi&utm_medium=inner_traffic&utm_campaign=sv:no_service%7Cpr:no_product%7Ccp:stranica-vklady-banner%7Cdt:29102025","_blank")},className:w().button,variant:"primary",size:"xs",children:"Подробнее"})]})]})}function y(e){let{QrImage:t,href:i,QrLink:o}=e,s=(0,a._m)("m"),c=(0,a._m)("l");return(0,n.jsxs)(o,{href:null!=i?i:"",className:w().mobileAd,children:[s&&(0,n.jsx)(t,{height:106}),(0,n.jsxs)("div",{className:w().textColumn,children:[(0,n.jsxs)(l.xv,{size:s?"24":"18",weight:"medium",children:["Управляйте финансами",(0,n.jsx)("br",{}),"через приложение Финуслуг"]}),(0,n.jsx)(l.xv,{size:"16",className:w().link,children:"Подробнее"})]}),c&&(0,n.jsx)(r.default,{src:x,unoptimized:!0,alt:"ad"}),(0,n.jsx)(r.default,{src:s?A:C,unoptimized:!0,alt:"services",className:s?void 0:w().services})]})}var N=(0,d.memo)(function(e){let{pageUrl:t="vklady",qrBannerUrl:i,existTag:l,id:s,newMobileAd:b=!1}=e,x=(0,d.useRef)(null),A=(0,g.S)(),{isIOS:C}=(0,d.useMemo)(v.g,[]),k=(0,d.useCallback)(e=>(0,n.jsx)(r.default,{src:l?_:u,unoptimized:!0,alt:"qr",...e}),[l]),N=(0,d.useCallback)(e=>(0,n.jsx)(r.default,{src:p,unoptimized:!0,alt:"qr",...e}),[]),D=(0,d.useCallback)(e=>(0,n.jsx)(c.default,{...e,href:e.href,target:"_self"}),[]),T=C?"bonus":"qr_ad";(0,f.Z)({itemRef:x,eventAction:"show_banner_".concat(T),eventCategory:"deposits_".concat(t),eventLabel:""});let S=(0,d.useCallback)(()=>C?(0,n.jsx)(m.Z,{eventCategory:t,destination:"dashboard",variant:"secondary"}):b?(0,n.jsx)(y,{href:i,QrImage:k,QrLink:D}):(0,n.jsx)(o.KF,{className:w().adv,QrImage:k,BgImage:N,href:i,Link:D}),[N,D,k,C,b,t,i]);return A?null:(0,n.jsx)("div",{id:s,ref:x,onClick:()=>{C||(0,h.lQ)({event:"data-event",eventAction:"click_".concat(T),eventCategory:"deposits_".concat(t)})},children:(0,n.jsxs)(a.iR,{pagination:!0,wrapperClass:w().slider,options:{spaceBetween:16,loop:!0,autoplay:{delay:1e4,disableOnInteraction:!1,pauseOnMouseEnter:!0}},breakpoints:{s:{slidesPerView:1,spaceBetween:16}},children:[(0,n.jsx)(a.wI,{children:S()}),(0,n.jsx)(a.wI,{children:(0,n.jsx)(j,{isIOS:C})})]})})})},15640:function(e,t,i){"use strict";i.d(t,{Z:function(){return O}});var n=i(57437),l=i(32833),a=i(61810),o=i(7301),s=i(34734),r=i(2265),c=i(76558),d=i(72255),u=i(26094),_=i(84213),p=i.n(_);function m(e){let{step:t,title:i,isActive:a}=e;return(0,n.jsxs)("button",{"data-qa":"deposit-guide-step-".concat(t),className:(0,s.Z)(p().card,{[p().active]:a}),children:[(0,n.jsxs)("div",{className:p().top,children:[(0,n.jsx)("div",{className:p().step,children:t}),(0,n.jsx)(l.xv,{className:p().title,children:i})]}),(0,n.jsxs)("div",{className:p().bottom,children:[(0,n.jsx)(l.xv,{size:"16",className:p().bottomText,children:"Подробнее"}),(0,n.jsx)("div",{className:p().chevronWrapper,children:(0,n.jsx)(u.IconFdsChevronDownO,{size:24,className:p().chevron})})]})]})}var v=i(20703),h=i(45250),g={src:"/deposits/_next/static/media/mobile.f1c245e1.png",height:538,width:546,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA70lEQVR42mNABsdOntY6cersvuMHdh/av3tbI1jwxN2rOo9fv0j48/+/09mDx9Y/vXrz/91rV/+vWb1uE1jBufs3LF6+fb3o45dPSx8/fvL325evv+4/ePS/sqY5FKzg/6+fAf///38JlHxx+/adP/+AnMs3rn0FSkmAFdy8dl1zwYL53QcOHrpy7979/58+ff6/ZcuW1SA5oFpmEG0BxO8ePHgI0vzr48eP/1et3v366vWPB2/d+Q6xZv68Bb4rVqz6v237jv8bNmz6v3LV3vtnzz8Lhntv+tSpQpWV1ZnZ2bmd+QXltYeO3meFyQEA8HCTm7+zeNkAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},f={src:"/deposits/_next/static/media/phone.7743eabd.png",height:260,width:260,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA9UlEQVR42hXKXStDYQDA8efenTQfwvdxoSb5CKSY11CLorhBWW5IuzIuiCtlaZqLhZza2UnrFJvzuvNsc86Z5/nL7/onAKFSmdFqMK21XtGwCIwDw4AQWsUjwAywDiyj1HbYdsrdXn/jPwkg2/Nqz22zZCSaHB1//7ZwQaP5eQ5MCCDXqpcc43HnZxDrGyXld2g1ToF5rdSqAL3U/yXvv5vFIHLduOtSr9qV60rwAMwJDVOgt4K7K9OPHOyne+lZzUMvSo6BSQEMyddq0b48I/myMU4OHJXGm8BsGqcZAYiPvYUxq5Av13bXwtbbyxGQlUFnFBB/Q+jTC64p4i4AAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},b={src:"/deposits/_next/static/media/pig.3b6aa3fd.png",height:170,width:175,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA4ElEQVR42mMAgT/Zlowg+tX/OyxfDqeYgNhfWmOYIJIGDGDJ/wzOgl/8GVQ/7fKo+s+wixkk9tHbnpHh/4JpLGAFU3vi/p88eP7/gplrfkaGrmGAgTc3L4JVv717uebz5dN/fpWXv/7pE/jns6J2NVjBvZAksIK/x3ev/1JT9eGnkfutPzbu719oaG1kgIGXB5ICv07vaPgfkfjtr671p5daRv+va+sXgCX//7/C+WBe5LHzDTapPxN8Yt9aOHRd1jbNOOadKAxRcF6R6ZAsA++D9QnGDP9i2RiQwCP3aEYAIldiPxYeokQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},x={src:"/deposits/_next/static/media/services.7a963dd0.png",height:70,width:348,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAYAAABllJ3tAAAATUlEQVR4nAFCAL3/Aezr8f8LCwqrzsnBs+z47S4cICDZHhos0xQA/Hr/6+tOAfrq6/8ABQezttP/ri4R3vwO7O0T5Sktzi7//nT/7+9Ou0YlYc8uhmQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:2},A=i(27639),C=i.n(A);let k=e=>{let{isSavingAccounts:t,onNextSlide:i,onShowClick:l}=e;return(0,n.jsxs)("div",{className:(0,s.Z)(C().buttons),children:[(0,n.jsx)(a.zx,{variant:"white",size:"s",onClick:l,dataQa:"deposit-guide-disclaimer-show-deposits-button",children:t?"Выбрать счет":"Выбрать вклад"}),(0,n.jsx)(a.zx,{variant:"purple",size:"s",onClick:i,iconRight:(0,n.jsx)(u.IconFdsArrowRightO,{}),dataQa:"deposit-guide-disclaimer-next-button",children:"Далее"})]})},w=e=>{let{isSavingAccounts:t,onDownloadAppClick:i,onShowClick:l}=e,{isIOS:o}=(0,r.useMemo)(h.g,[]);return(0,n.jsxs)("div",{className:(0,s.Z)(C().buttons,C().column),children:[(0,n.jsx)(a.zx,{variant:"white",size:"s",onClick:l,dataQa:"deposit-guide-disclaimer-show-deposits-button",children:t?"Выбрать счет":"Выбрать вклад"}),!o&&(0,n.jsx)(a.zx,{variant:"primary",size:"s",onClick:i,dataQa:"deposit-guide-disclaimer-download-button",children:"Скачать приложение Финуслуг"})]})},j=e=>(0,n.jsxs)("div",{className:C().content,children:[e.isDesktop&&(0,n.jsx)(v.default,{src:f,alt:"баннер",width:130,unoptimized:!0}),(0,n.jsxs)("div",{className:C().information,children:[(0,n.jsx)("ul",{className:C().list,children:e.isSavingAccounts?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("li",{children:"Сравните предложения от разных банков. Каждый счет застрахован Агентством страхования вкладов на 1,4 млн ₽"}),(0,n.jsx)("li",{children:"Выберите один или несколько счетов и откройте онлайн"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("li",{children:"Настройте параметры вклада: сумму, срок, с пополнением, снятием, капитализацией процентов и др."}),(0,n.jsx)("li",{children:"Сравните предложения от разных банков. Каждый вклад застрахован Агентством страхования вкладов на 1,4 млн ₽"}),(0,n.jsx)("li",{children:"Выберите один или несколько вкладов и откройте онлайн"})]})}),(0,n.jsx)(k,{...e})]})]}),y=e=>(0,n.jsxs)("div",{className:C().content,children:[(0,n.jsx)(v.default,{src:x,alt:"баннер",width:348,unoptimized:!0}),(0,n.jsxs)("div",{className:C().information,children:[(0,n.jsxs)("ul",{className:C().list,children:[(0,n.jsx)("li",{children:"Войдите на Финуслуги с помощью аккаунта Госуслуг. Данные для оформления вкладов будут заполняться автоматически"}),(0,n.jsx)("li",{children:"Подтвердите личность с помощью Т-ID или Альфа-ID, или на встрече с представителем Финуслуг. Эти данные необходимы для совершения финансовых сделок"}),(0,n.jsx)("li",{className:C().noMark,children:"Мы обязаны требовать эти данные по закону для заключения финансовых сделок"})]}),(0,n.jsx)(k,{...e})]})]}),N=e=>(0,n.jsxs)("div",{className:C().content,children:[(0,n.jsx)(v.default,{src:b,alt:"баннер",width:e.isDesktop?175:103,unoptimized:!0}),(0,n.jsxs)("div",{className:C().information,children:[(0,n.jsx)("ul",{className:C().list,children:e.isSavingAccounts?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("li",{children:"Проверьте параметры счета"}),(0,n.jsx)("li",{children:"Отправьте заявку и пополните счет без комиссии: по СБП за несколько минут или по реквизитам в течение 3 дней (обычно не более часа)"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("li",{children:"Проверьте параметры вклада и добавьте промокод, если он подходит для этого депозита"}),(0,n.jsx)("li",{children:"Отправьте заявку и пополните вклад без комиссии: по СБП за несколько минут или по реквизитам в течение 3 дней (обычно не более часа)"})]})}),(0,n.jsx)(k,{...e})]})]}),D=e=>{let{isDesktop:t,isSavingAccounts:i,onDownloadAppClick:l,onShowClick:a}=e;return(0,n.jsxs)("div",{className:C().content,children:[(0,n.jsx)(v.default,{src:g,alt:"баннер",width:t?275:124,unoptimized:!0}),(0,n.jsxs)("div",{className:C().information,children:[t&&!i&&(0,n.jsx)("b",{children:"После открытия вклада мы пришлем вам уведомление"}),(0,n.jsx)("ul",{className:C().list,children:i?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("li",{children:"После открытия счета и первичного пополнения через Финуслуги все операции со счетом следует выполнять через личный кабинет банка."})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("li",{children:"Вклад появится в вашем личном кабинете. Управляйте им онлайн: например: пополните или закройте досрочно"}),(0,n.jsx)("li",{children:"После закрытия вклада деньги придут на ваш Кошелек Финуслуг. Их можно вывести на свою карту без комиссии или открыть новый вклад"})]})}),(0,n.jsx)(w,{onDownloadAppClick:l,onShowClick:a,isSavingAccounts:i})]})]})};function T(e){let{activeSlide:t,isSavingAccounts:i,onNextSlide:l,onShowClick:o,onDownloadAppClick:r}=e,c=(0,a._m)("l");return(0,n.jsx)("div",{"data-qa":"deposit-guide-disclaimer-".concat(t),className:(0,s.Z)(C().description,{[C().hidden]:0===t}),children:(()=>{switch(t){case 1:return(0,n.jsx)(j,{onNextSlide:l,onShowClick:o,isDesktop:c,isSavingAccounts:i});case 2:return(0,n.jsx)(y,{onNextSlide:l,onShowClick:o,isDesktop:c,isSavingAccounts:i});case 3:return(0,n.jsx)(N,{onNextSlide:l,onShowClick:o,isDesktop:c,isSavingAccounts:i});case 4:return(0,n.jsx)(D,{isDesktop:c,onDownloadAppClick:r,onShowClick:o,isSavingAccounts:i});default:return(0,n.jsx)(n.Fragment,{})}})()})}var S=i(16243),E=i(11370),L=i(21245),F=i.n(L);let R=Object.freeze([{id:1,title:"Выберите вклад"},{id:2,title:"Зарегистрируйтесь"},{id:3,title:"Оформите вклад"},{id:4,title:"Управляйте онлайн"}]),B=Object.freeze([{id:1,title:"Выберите счет"},{id:2,title:"Зарегистрируйтесь"},{id:3,title:"Оформите счет"},{id:4,title:"Управляйте счетом\nчерез банк"}]),M=(e,t)=>e?24:t?0:40;function O(e){let{pageUrl:t,isSavingAccounts:i=!1}=e,u=(0,a._m)("xl"),_=(0,a._m)("m"),[p,v]=(0,r.useState)(0),[h,g]=(0,r.useState)(),[f,b]=(0,r.useState)({slidesOffsetBefore:24,slidesOffsetAfter:24}),x=(0,E.Z)(),A=(0,r.useCallback)(e=>{if(!h||(v(e===p?0:e),setTimeout(()=>{h.slideTo(e-1,500)},0),_))return;let t=e===R.length,i=M(e===R[0].id,t);b({slidesOffsetAfter:t?24:0,slidesOffsetBefore:i})},[p,_,h]);(0,r.useEffect)(()=>{h&&!_&&(null==h||h.updateSlides())},[p,_,h]);let C=(0,r.useCallback)(e=>{(0,S.lQ)({eventCategory:"deposits_".concat(t),eventAction:"click_tile",eventLabel:e.toString()}),A(e)},[A,t]),k=(0,r.useCallback)(()=>{(0,S.lQ)({eventCategory:"deposits_".concat(t),eventAction:"click_button",eventLabel:"dalee"}),A(p+1)},[p,A,t]),w=(0,r.useCallback)(()=>{(0,S.lQ)({eventCategory:"deposits_".concat(t),eventAction:"click_button",eventLabel:"vybrat_vklad"}),(0,o.ld)(d.TM,{offset:x,position:"top"})},[t,x]),j=(0,r.useCallback)(()=>{(0,S.lQ)({eventCategory:"deposits_".concat(t),eventAction:"click_button",eventLabel:"skachat_prilozhenie_finuslug"}),(0,o.ld)(d.uz,{offset:x-140-80,position:"top"})},[t,x]);return(0,n.jsx)(l.W2,{as:"section",className:(0,s.Z)(F().container,{[F().small]:!u}),"data-qa":"deposit-guide",children:(0,n.jsxs)("div",{className:F().block,id:d.Yf,children:[(0,n.jsxs)("div",{className:F().header,children:[(0,n.jsx)(l.xv,{weight:"bold",className:F().title,children:i?"Как открыть счет на Финуслугах":"Как открыть вклад на Финуслугах"}),(0,n.jsx)(c.Y,{text:i?"Счета застрахованы в АСВ":"Вклады застрахованы в АСВ",className:F().disclaimer})]}),(0,n.jsx)(a.iR,{options:{spaceBetween:24,slidesPerView:"auto",slidesPerGroup:1,slidesOffsetBefore:f.slidesOffsetBefore,slidesOffsetAfter:f.slidesOffsetAfter,onSwiper:g},wrapperClass:(0,s.Z)(F().sliderWrapper,{[F().closed]:0===p}),children:(i?B:R).map(e=>{let t=p===e.id;return(0,n.jsx)(a.wI,{className:(0,s.Z)(F().slide,{[F().active]:t&&!_}),onClick:()=>C(e.id),children:(0,n.jsx)(m,{step:e.id,title:e.title,isActive:t})},e.id)})}),(0,n.jsx)(T,{activeSlide:p,onNextSlide:k,onShowClick:w,onDownloadAppClick:j,isSavingAccounts:i})]})})}},19057:function(e,t,i){"use strict";i.d(t,{Q:function(){return c}});var n=i(57437),l=i(2265),a=i(24866),o=i(14073),s=i(92192);let r=e=>!!e.isNotAmount||!!e.isTermEmpty||!!e.computeData,c=e=>{var t;let{filterCurrency:i,isHiddenPromo:c,description:d,h1:u,inRegion:_,platform:p,another:m,currentLength:v,regionUrl:h,tagUrl:g}=e,f=p.filter(e=>r(e)).slice(0,10).filter(e=>c?!e.promo:e),b=m.filter(e=>r(e)).slice(0,10).filter(e=>c?!e.promo:e),x=(0,l.useMemo)(()=>[...f,...b],[f,b]),A=[...x].sort((e,t)=>(t.currencies&&t.currencies.maximumBalance||0)-(e.currencies&&e.currencies.maximumBalance||0)),C=A[0]&&A[0].currencies,k=null===(t=[...x].sort((e,t)=>{var i,n;return((null===(i=e.currencies)||void 0===i?void 0:i.minimumBalance)||0)-((null===(n=t.currencies)||void 0===n?void 0:n.minimumBalance)||0)})[0])||void 0===t?void 0:t.currencies,w=(0,l.useMemo)(()=>{let e=(0,s.z)(i).code;return JSON.stringify({"@context":"https://schema.org","@type":"Product",name:"".concat(u).concat(_),description:null!=d?d:"",url:(0,a.xn)(o._n,"vklady",g?"teg_".concat(g):"",h),offers:{"@type":"AggregateOffer",lowPrice:"".concat(k?k.minimumBalance:0),highPrice:"".concat(C?C.maximumBalance:0),priceCurrency:e,offerCount:"".concat(v)},isRelatedTo:x.map(t=>{var i,n,l,s;let r=(null===(i=t.currencies)||void 0===i?void 0:i.rates)||[],c=[...r].sort((e,t)=>e.minimumRate-t.minimumRate),d=c.length?c[0].minimumRate:r.length&&r[0].minimumRate;return{"@type":"InvestmentOrDeposit",name:"".concat(t.bankName,". ").concat(t.asSavingAccount?"Накопительный счёт":"Вклад"," \xab").concat(t.name,"\xbb"),url:(0,a.xn)(o._n,"vklady",t.url),amount:{"@type":"MonetaryAmount",currency:(null===(n=t.currencies)||void 0===n?void 0:n.currency)||e,value:"".concat((null===(l=t.currencies)||void 0===l?void 0:l.minimumBalance)||(null===(s=t.amountRange)||void 0===s?void 0:s.from))},annualPercentageRate:"".concat(d,"%"),serviceType:"Банковский ".concat(t.asSavingAccount?"накопительный счёт":"вклад")}})})},[i,d,u,_,v,k,C,x,h,g]);return(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:w}})}},63621:function(e,t,i){"use strict";i.d(t,{Z:function(){return d}});var n=i(57437),l=i(2265),a=i(24866),o=i(10414),s=i(14073),r=i(15774),c=i(55961),d=(0,l.memo)(function(e){let{minDepositAmount:t,minTermPeriod:i,maxRate:l,regionName:d,regionUrl:u}=e,_=(0,a.xn)(s._n,"vklady","reg_".concat(u)),p=i<o.F,m=p?i:Math.round(i/o.F),v=JSON.stringify({"@context":"https://schema.org","@type":"QAPage",mainEntity:{"@type":"Question",name:"Какие условия по вкладам в ".concat(d,"?"),answerCount:1,acceptedAnswer:{"@type":"Answer",text:"⭐ Максимальная ставка ".concat(l,"% ⭐ Минимальный срок ").concat(p?(0,c.PY)(m,["день","дня","дней"]):(0,c.PY)(m,["месяц","месяца","месяцев"])," ⭐ Минимальная сумма вклада ").concat((0,r.Y4)(t)," ₽"),url:_}}});return(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:v}})})},12694:function(e,t,i){"use strict";i.d(t,{Q:function(){return a}});var n=i(3522),l=i(61366);let a=(e,t)=>{let i={[l.ER.RatePlusBonus]:!e,profit:!t};return n.$m.filter(e=>!i[e.value])}},84381:function(e,t,i){"use strict";i.d(t,{L:function(){return C}});var n=i(2265),l=i(87449),a=i(72434),o=i(92192),s=i(16243),r=i(93880),c=i(23845),d=i(2962),u=i(35391),_=i(3522),p=i(61366),m=i(39441),v=i(12694),h=i(25123),g=i(44967);let f=e=>(0,n.useMemo)(()=>{var t;return null!==(t=_.vw.find(t=>t.value===e))&&void 0!==t?t:_.vw[0]},[e]),b=(e,t,i)=>(0,n.useMemo)(()=>{var n;return null!==(n=e.find(e=>e.value===t))&&void 0!==n?n:i},[e,t,i]),x=e=>(0,n.useCallback)((t,i)=>{e(e=>i?[t,...e]:1===e.length?e[0]===a.a.deposits?[a.a.bonds]:[a.a.deposits]:e.filter(e=>e!==t))},[e]),A=(e,t,i)=>(0,n.useCallback)((n,l,a)=>{t(t=>(t||(0,s.lQ)({event:"data-event",eventAction:n&&l?"filters_float__click_".concat((0,r.b)(l)):"filters".concat(a?"_float":"","__click_button_all_param"),eventCategory:"deposits_".concat(e)}),!t)),i(n)},[e,t,i]),C=e=>{let{tag:t,currencies:i,banks:r,defaultValues:C,isDiscount:k,eventCategory:w="vklady",filterType:j=l.FilterVariant.VariantA,subscription:y,onChange:N}=e,D=(0,n.useRef)(!1),[T,S]=(0,n.useState)(k?p.ER.RatePlusBonus:p.ER.Rate),{params:E,setParams:L}=(0,u.Z)(),[F,R]=(0,n.useState)(!0),[B,M]=(0,n.useState)(!1),[O,I]=(0,n.useState)(!1),[P,z]=(0,n.useState)(),[U,Q]=(0,n.useState)(()=>[a.a.deposits]),[W,G]=(0,n.useState)(()=>(function(e){let{activeBanks:t,...i}=e,n=null==t||Array.isArray(t)?t:[t];return{...Object.entries(i).reduce((e,t)=>{let[i,n]=t;return null==n?e:Array.isArray(n)?{...e,[i]:n.map(m.w)}:{...e,[i]:(0,m.w)(n)}},{}),...n?{activeBanks:n}:null}})(E)),{handleLoad:V,isLoading:Y}=(0,d.r)(),{currenciesOptions:Z,defaultCurrencyItem:H,defaultCurrency:q}=(0,n.useMemo)(()=>(function(e,t){var i;let n=e.map(e=>({value:e.code,label:e.title,id:e.id})),l=null!==(i=n.find(e=>e.value===t))&&void 0!==i?i:n[0],a=e.find(e=>e.code===l.value);return{currenciesOptions:n,defaultCurrencyItem:l,defaultCurrency:a}})(i,C.currencyCode),[i,C.currencyCode]),K=f(C.term),X=q?+C.amount/+q.value:+C.amount,{sortType:J=T,currency:$=H.value,term:ee=K.value,withRefill:et=C.withRefill,withCapitalization:ei=C.withCapitalization,activeBanks:en,withMonthlyPercent:el=C.withMonthlyPercent,withPreferentialTermination:ea=C.withPreferentialTermination,interestAccrual:eo}=W,{banksOptions:es,activeBanks:er,activeBanksValue:ec}=(0,n.useMemo)(()=>(function(e,t){let i=t&&!Array.isArray(t)?[t]:t,n=[...e].sort((e,t)=>{let n=null==i?void 0:i.includes(String(e.id)),l=null==i?void 0:i.includes(String(t.id));return!n&&l?1:n&&!l?-1:0}).map(e=>({value:e.id,label:e.name})),l=n.filter(e=>{let{value:t}=e;return null==i?void 0:i.some(e=>e===t)});return{activeBanksValue:i,banksOptions:n,activeBanks:l}})(r,en),[r,en]),ed=f(ee),eu=b(Z,$,H),e_=(0,o.z)(eu.value).unit,ep=(0,c.G)({defaultValue:0===X?void 0:()=>String(Math.ceil(X)),format:"currency",unit:e_,type:"int"}),em=ee===_.vw[0].value&&$===Z[0].value&&!ep.value&&!et&&!ei&&(null==ec?void 0:ec.length)===0,ev=(0,n.useCallback)(e=>{G(t=>({...t,...e})),N&&(null==y?void 0:y[Object.keys(e)[0]])&&N({amount:Number(ep.value),term:ee,interestAccrual:eo,activeBanks:ec,...e})},[ec,ep.value,eo,N,y,ee]),eh=(0,n.useCallback)(e=>{L(t=>({...t,...e}))},[L]);(0,n.useEffect)(()=>{let e=k?p.ER.RatePlusBonus:p.ER.Rate;S(e),ev({sortType:e})},[ev,k]),(0,n.useEffect)(()=>{D.current?V():D.current=!0},[V,ep.value,ee,e_,J,B,et,ei,er,U]),(0,n.useEffect)(()=>{let e=(0,v.Q)(k,+ep.value);e.find(e=>e.value===J)||ev({sortType:e[0].value})},[ep.value,ev,k,J]);let{importantDeposits:eg,handleImportantDepositsChange:ef}=function(e){let{tag:t,currenciesOptions:i,defaultValues:l,defaultSortType:a,currencies:o,currencyValue:r,onFiltersChange:c,setIncreaseSort:d,onChangeAmount:u}=e,[p,m]=(0,n.useState)(()=>{var e;return null!==(e=null==t?void 0:t.deposits.map(e=>String(e)))&&void 0!==e?e:[]}),v=(0,n.useRef)(null==t?void 0:t.url);return(0,n.useEffect)(()=>{var e,n,f,b,x,A,C,k,w;if(!t||t.url===v.current)return;if(v.current=t.url,(0,g.L)(t)){p.length&&m([]);return}(0,s.lQ)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"filters__click_premium",eventLabel:""}),d(!1),m(t.deposits.map(e=>String(e)));let j=(0,h.O)(null==t?void 0:null===(e=t.filter)||void 0===e?void 0:e.currency),y=i.find(e=>{let{id:t,value:i}=e;return t===j||i===j})||i[0],N=o.find(e=>e.code===y.value),D=N&&(null==N?void 0:N.code)===r,T=N?+l.amount/+(null==N?void 0:N.value):+l.amount,S=D?T:null!==(k=null===(n=t.filter)||void 0===n?void 0:n.amount)&&void 0!==k?k:0;u(0===S?"":S),c({sortType:a,withCapitalization:!!(null===(f=t.filter)||void 0===f?void 0:f.interest_capitalization),amount:S,withRefill:!!(null===(b=t.filter)||void 0===b?void 0:b.refill),activeBanks:[],currency:String(y.value),term:null!==(w=null===(x=_.vw.find(e=>{var i,n,l,a;let{value:o}=e;return o===(null===(l=t.filter)||void 0===l?void 0:null===(n=l.term)||void 0===n?void 0:null===(i=n.values)||void 0===i?void 0:i[0])||o===Number(null==t?void 0:null===(a=t.filter)||void 0===a?void 0:a.term.from)}))||void 0===x?void 0:x.value)&&void 0!==w?w:_.vw[0].value,withMonthlyPercent:!!(null==t?void 0:null===(A=t.filter)||void 0===A?void 0:A.interestsMonthly),withPreferentialTermination:!!(null==t?void 0:null===(C=t.filter)||void 0===C?void 0:C.earlyTermination)})},[o,i,r,a,l.amount,c,p.length,t,d,u]),{importantDeposits:p,handleImportantDepositsChange:(0,n.useCallback)(e=>{m(e)},[])}}({tag:t,currenciesOptions:Z,defaultValues:C,defaultSortType:T,currencies:i,currencyValue:$,onFiltersChange:ev,setIncreaseSort:M,onChangeAmount:ep.handleChange});(0,n.useEffect)(()=>{E.amount||E.term||j!==l.FilterVariant.VariantB||(ep.handleChange(""),ev({amount:0,term:0}))},[j]);let eb=(0,n.useCallback)(()=>{let e={sortType:T,currency:String(H.value),amount:0,term:Number(_.vw[0].value),withRefill:C.withRefill,withCapitalization:C.withCapitalization,activeBanks:void 0,withMonthlyPercent:C.withMonthlyPercent,withPreferentialTermination:C.withPreferentialTermination};eh(e),ev(e),ep.handleChange(""),R(!0),M(!1),ef([])},[ep,H.value,T,eh,C.withCapitalization,C.withRefill,C.withMonthlyPercent,C.withPreferentialTermination,ev,ef]),ex=A(w,I,z),eA=x(Q),eC=function(e){let{currencies:t,defaultValues:i,currencyValue:l,onChangeAmount:a,onFiltersChange:o,handleUpdateUrlParams:s}=e,r=(0,n.useCallback)(e=>o({sortType:e}),[o]),c=(0,n.useCallback)(e=>{let n=t.find(t=>t.code===e.value);if((null==n?void 0:n.code)===l)return;let r=n?+i.amount/+(null==n?void 0:n.value):+i.amount;a(Math.ceil(r)),o({currency:e.value,amount:Math.ceil(r)}),s({currency:e.value,amount:Math.ceil(r)})},[t,l,i.amount,o,a,s]),d=(0,n.useCallback)(e=>{let{value:t}=null!=e?e:{};o({term:t?Number(t):0}),s({term:t?Number(t):0})},[o,s]),u=(0,n.useCallback)(e=>{let t=0===e?void 0:e;o({amount:t}),s({amount:t})},[o,s]),_=(0,n.useCallback)(e=>{o({withRefill:e}),s({withRefill:e})},[o,s]),p=(0,n.useCallback)(e=>{o({withCapitalization:e}),s({withCapitalization:e})},[o,s]),m=(0,n.useCallback)(e=>{let t=null==e?[]:e.map(e=>{let{value:t}=e;return String(t)});o({activeBanks:t}),s({activeBanks:t})},[o,s]);return{handleActiveBanksChange:m,handleAmountChange:u,handleChangeCurrency:c,handleSortTypeChange:r,handleTermChange:d,handleWithCapitalizationChange:p,handleWithRefillChange:_,handleWithMonthlyPercentChange:(0,n.useCallback)(e=>{o({withMonthlyPercent:e}),s({withMonthlyPercent:e})},[o,s]),handleWithPreferentialTerminationChange:(0,n.useCallback)(e=>{o({withPreferentialTermination:e}),s({withPreferentialTermination:e})},[o,s]),handleInterestAccrualChange:(0,n.useCallback)(e=>{o({interestAccrual:e}),s({interestAccrual:e})},[s,o])}}({currencies:i,defaultValues:C,currencyValue:$,onChangeAmount:ep.handleChange,onFiltersChange:ev,handleUpdateUrlParams:eh});return(0,n.useMemo)(()=>({reset:eb,filterAdditionalSettings:U,handleChangeAdditionalSettings:eA,amountData:ep,term:ed,currencyUnit:e_,isOpenModal:O,setIsOpenModal:I,banksOptions:es,activeBanks:er,initialSort:F,setInitialSort:R,sortType:J,increaseSort:B,setIncreaseSort:M,handleToggleModal:ex,handleUpdateUrlParams:eh,currency:eu,currenciesOptions:Z,isLoading:Y,handleLoad:V,withRefill:et,withCapitalization:ei,modalActiveField:P,setModalActiveField:z,isEmpty:em,importantDeposits:eg,activeBanksValue:ec,withMonthlyPercent:el,withPreferentialTermination:ea,interestAccrual:eo,...eC}),[eb,U,eA,ep,ed,e_,O,es,er,F,J,B,ex,eh,eu,Z,Y,V,et,ei,P,em,eg,ec,el,ea,eo,eC])}},53599:function(e,t,i){"use strict";function n(e){return e.startsWith("0")?e.replace("0",""):e}i.d(t,{g:function(){return n}})},10913:function(e,t,i){"use strict";i.d(t,{Z:function(){return u},k:function(){return _}});var n=i(57437),l=i(18818),a=i(7301),o=i(20564),s=i(2265);let r=(0,s.createContext)(void 0);function c(){}let d={region:a.A7.getItem("user_region"),town:a.A7.getItem("user_town"),handleToggleModal:c,handleSetRegion:c,handleSetTown:c};function u(e){let{children:t}=e,[i,c]=(0,s.useState)(()=>a.A7.getItem("user_region")),[u,_]=(0,s.useState)(()=>a.A7.getItem("user_town")),[p,m]=(0,s.useState)(d),v=(0,l.ar)(),h=!!(0,o.OB)("NEXT_PUBLIC_REACT_HEADER"),g=(0,s.useCallback)(e=>{h?v.handleToggleModal(!0):window.Alpine.store("citySelect").handleToggleModal(e)},[h,v]),f=(0,s.useCallback)(e=>{p.handleSetRegion(e),c(e)},[p]),b=(0,s.useCallback)(e=>{p.handleSetTown(e),_(e)},[p]);(0,s.useEffect)(()=>{function e(e){c(e.detail.region),_(e.detail.town)}return document.addEventListener("onRegionChange",e),()=>document.removeEventListener("onRegionChange",e)},[]),(0,s.useEffect)(()=>{m(d),void 0!==d.region&&c(d.region),void 0!==d.town&&_(d.town)},[]);let x=(0,s.useMemo)(()=>({region:i,town:u,handleToggleModal:g,handleSetRegion:f,handleSetTown:b}),[f,b,g,i,u]);return(0,n.jsx)(r.Provider,{value:x,children:t})}function _(){let e=(0,s.useContext)(r);if(!e)throw Error("Out of context");return e}},63027:function(e,t,i){"use strict";i.d(t,{r:function(){return l}});let n=(e,t)=>null==e?0===t?null:t:0===t?e:Math.min(e,t),l=e=>{let t=null,i=null,l=null,a=0,o=0,s=0;return e.forEach(e=>{var r,c,d,u,_;let p=(null==e?void 0:null===(r=e.computeData)||void 0===r?void 0:r.effectiveRate)||0,m=(null==e?void 0:null===(c=e.termPeriod)||void 0===c?void 0:c.from)||0,v=(null==e?void 0:null===(d=e.termPeriod)||void 0===d?void 0:d.to)||0,h=(null==e?void 0:null===(u=e.amountRange)||void 0===u?void 0:u.from)||0,g=(null==e?void 0:null===(_=e.amountRange)||void 0===_?void 0:_.to)||0;t=n(t,p),i=n(i,m),l=n(l,h),a=Math.max(a,p),o=Math.max(o,v),s=Math.max(s,g)}),{low:null!=t?t:0,minTermPeriod:null!=i?i:0,minDepositAmount:null!=l?l:0,high:a,maxTermPeriod:o,maxDepositAmount:s}}},30936:function(e,t,i){"use strict";i.d(t,{b:function(){return n}});let n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,t=null;return i=>{t&&clearInterval(t),t=setTimeout(i,e)}}},25123:function(e,t,i){"use strict";i.d(t,{O:function(){return n}});let n=e=>e?Array.isArray(e)?e[0]:e?String(e):null:null},99566:function(e,t,i){"use strict";i.d(t,{Y:function(){return M}});var n,l=i(57437),a=i(20564),o=i(24866),s=i(14073);let r=(e,t)=>{t=null===t?1:t;let i=null===e?0:e.length;if(!i||t<1)return[];t=t>i?i:t;let n=new Date().getDate(),l=e=>{let t=1e4*Math.sin(e++);return t-Math.floor(t)},a=-1,o=i-1,s=[...e];for(;++a<t;){let e=a+Math.floor(l(n)*(o-a+1)),t=s[e];s[e]=s[a],s[a]=t}return s.slice(0,t)},c=(e,t)=>r(e.filter(e=>t.some(t=>String(t.fk_id||t.mfo_id)===e.id)).filter(e=>s.HA.includes(e.url)),10),d=e=>["а","е","ё","и","о","у","ы","э","ю","я"].indexOf(e)>=0,u=e=>e&&e.length?"в"!==e[0].toLowerCase()&&"ф"!==e[0].toLowerCase()||d(e[1])?"в":"во":"";var _=i(63027);let p=e=>e?"string"==typeof e?e:e.length?e[0]:null:null,m=(e,t)=>t?e?"reg_"+t.url+(t.towns.length>1?"/"+e.url:""):"reg_"+t.url:"",v=function(e){var t,i,n;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,d=e;a&&(d=(d=(d=(d=d.replace(/{(bank|mfo)}/gim,a.name)).replace(/{(bank|mfo)_r}/gim,a.name_r)).replace(/{(bank|mfo)_p}/gim,a.name_p)).replace(/{(bank|mfo)_link}/gim,a.url)),o&&(d=d.replace(/{tag_name}/gim,o.tag_name.toLowerCase())),o&&!s&&(d=(d=d.replace(/в {place_p}/gim,"во всей России")).replace(/{place}/gim,"России"));let u=p(null==o?void 0:null===(t=o.filter)||void 0===t?void 0:t.currency),m=null!==(n=null==r?void 0:null===(i=r.find(e=>{let{id:t,code:i}=e;return t===u||i===u}))||void 0===i?void 0:i.value.toString())&&void 0!==n?n:"0",{low:v,high:h,minTermPeriod:g,maxTermPeriod:f}=(0,_.r)(l);return(d=(d=(d=(d=(d=(d=(d=(d=d.replace(/{euro_rate}/g,"".concat(m," ₽"))).replace(/{yuan_rate}/g,"".concat(m," ₽"))).replace(/{banks_count}/g,(null==c?void 0:c.length.toString())||"0")).replace(/{banks}/g,(null==c?void 0:c.length.toString())||"0")).replace(/{deposits_count}/g,(null==l?void 0:l.length.toString())||"0")).replace(/{min_deposits_rate}/g,"".concat(v,"%").replace(".",","))).replace(/{max_deposits_rate}/g,"".concat(h,"%").replace(".",","))).replace(/{min_deposits_days}/g,g.toString()||"0")).replace(/{max_deposits_days}/g,f.toString()||"0")},h=e=>{let t,i,n,{text:l="",banks:a,data:o=[],currencies:s,region:r,town:c,townDuplicates:d,company:u,tag:_}=e,p=v(l,o,u,_,r,s,a),h=new Date().getFullYear();if(p=p.replace(/{year}/g,String(h)),!r)return p;let g=c?c.name:r.name,f=c?c.name_r:r.name_r,b=c?c.name_p:r.name_p,x=c?c.name:r.name,A=c?c.name_r:r.name_r,C=c?c.name_p:r.name_p,k=r.name,w=r.name_r,j=r.name_p,y=!1;return c&&d&&(y=d.indexOf(c.id)>=0),c?y?(t=c.name+" ("+r.name+")",i=c.name_r+" ("+r.name+")",n=c.name_p+" ("+r.name+")"):(t=c.name,i=c.name_r,n=c.name_p):(t=r.name,i=r.name_r,n=r.name_p),p=(p=(p=(p=(p=(p=(p=(p=(p=(p=(p=(p=(p=p.replace(/{place}/g,g)).replace(/{place_r}/g,f)).replace(/{place_p}/g,b)).replace(/{town}/g,x)).replace(/{town_r}/g,A)).replace(/{town_p}/g,C)).replace(/{region}/g,k)).replace(/{region_r}/g,w)).replace(/{region_p}/g,j)).replace(/{town_dub}/g,t)).replace(/{town_dub_r}/g,i)).replace(/{town_dub_p}/g,n)).replace(/{place_link}/g,m(c,r))},g=e=>{let{content:t,region:i,town:n,townDuplicates:l,company:a,tag:o,currencies:s,banks:r,data:c}=e;return t&&t.content&&t.content.forEach(e=>{if(e.data){let t={region:i,town:n,townDuplicates:l,company:a,tag:o,currencies:s,banks:r,data:c};e.data.html&&(e.data.html=h({text:e.data.html,...t})),e.data.text&&(e.data.text=h({text:e.data.text,...t}))}}),t};var f=i(41590),b=i(12043),x=i(58692),A=i(2265),C=i(72273),k=i.n(C),w=i(20703),j=i(15774);let y=e=>1===e?"дня":e>=2&&e<=4?"дня":"дней",N=e=>{let{id:t,bankName:i,computeData:n,name:a,logoMob:o,termPeriod:s,amountRange:r}=e,c=(null==n?void 0:n.effectiveRate)||"",d="",u="";return r&&(r.from&&(d+="От ".concat((0,j.Y4)(null==r?void 0:r.from)," ₽")),r.to&&(d+=" - ".concat((0,j.Y4)(null==r?void 0:r.to)," ₽"))),s?(s.from&&(u+="От ".concat(s.from," ").concat(y(s.from))),s.to&&(u+=" - ".concat(s.to," ").concat(y(s.to)))):u="От 1 дня",(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:(0,l.jsxs)("div",{className:k().logoWrapper,children:[(0,l.jsx)("div",{className:k().logo,children:(0,l.jsx)(w.default,{unoptimized:!0,className:k().image,alt:i||a,src:o,width:28,height:28})}),(0,l.jsx)("span",{children:i||a})]})}),(0,l.jsx)("td",{children:(0,l.jsxs)("span",{children:[c,"%"]})}),(0,l.jsx)("td",{children:(0,l.jsx)("span",{children:u})}),(0,l.jsx)("td",{children:(0,l.jsx)("span",{children:d})})]},t)},D=["Наименование банка","Cтавка","Срок","Сумма вклада"],T=(0,A.memo)(e=>{let{deposits:t}=e;return(0,l.jsx)("div",{className:k().depositTable,children:(0,l.jsx)("div",{className:k().container,children:(0,l.jsxs)("table",{children:[(0,l.jsx)("thead",{children:(0,l.jsx)("tr",{children:D.map(e=>(0,l.jsx)("th",{children:(0,l.jsx)("span",{children:e})},e))})}),(0,l.jsx)("tbody",{children:(null==t?void 0:t.length)>0&&t.map(N)})]})})})});T.displayName="DepositTable";let S=(e,t,i,n,l,a,o)=>e&&o&&o.region_page&&(t||o.region_page.region_content&&o.region_page.region_content.length)&&(!t||o.region_page.town_content&&o.region_page.town_content.length)?(t?o.region_page.town_content:o.region_page.region_content).map(s=>{var r,c,d;return{title:h({text:s.title,region:e,town:t,townDuplicates:i,currencies:n,banks:l,data:a,tag:o}),text:h({text:null==s?void 0:null===(d=s.content)||void 0===d?void 0:null===(c=d[0])||void 0===c?void 0:null===(r=c.data)||void 0===r?void 0:r.html,region:e,town:t,townDuplicates:i,currencies:n,banks:l,data:a,tag:o})}}):[];var E=i(44967);let L=e=>({content:[{type:"html",data:{html:e}}]}),F=Object.freeze(["pod_vysokiy_procent","nakopitelnye","vygodnie","online","srochnye","kratkosrochnye"]),R=(e,t)=>"deposits"===e&&(!!(!t||(0,E.L)(t))||F.includes(t.url.toLowerCase())),B=null!==(n=(0,a.OB)("NEXT_PUBLIC_BASE_URL"))&&void 0!==n?n:"",M=e=>{let{data:t=[],platformDepositLists:i=[],tags:n,dataRegion:l,regions:a,banks:o,regionLinks:s,tag:r,region:d=null,town:u=null,townDuplicates:_=[],setTag:p=()=>null,setRegion:m=()=>null,currencies:v,dataType:h="deposits",allExtraInfo:g,toggles:f,banksData:b,isSavingAccounts:x=!1}=e,A="deposits"===h?"Вклады":"Дебетовые карты",C=(0,E.L)(r),k=c(o,(null==l?void 0:l.deposit_interest_rates)||[]),w=R(h,r)&&O({data:t,isDefault:C,tag:r,town:u,region:d,townDuplicates:_,toggles:f,isSavingAccounts:x}),j=I({tag:r,region:d,town:u,townDuplicates:_,currencies:v,banksRegion:k,data:t,allExtraInfo:g,toggles:f});if(g)return j.filter(Boolean);let y=P({tag:r,town:u,dataRegion:l,region:d,townDuplicates:_,currencies:v,data:t,banksRegion:k,toggles:f}),N=z({region:d,town:u,townDuplicates:_,currencies:v,banksRegion:k,data:t,tag:r,toggles:f}),D=U({town:u,region:d,dataType:h,tag:r,isDefault:C,itemsStr:A,toggles:f}),T=V({data:i}),S=G({tags:n,tag:r,dataType:h,region:d,town:u,setTag:p,toggles:f});return[w,...j,...y,...N,D,T,S,H({banks:o,banksRegion:k,tag:r,isDefault:C,itemsStr:A,region:d,town:u,dataType:h,toggles:f}),q({tag:r,regions:a,regionLinks:s,setRegion:m,itemsStr:A,toggles:f}),X({banksData:b,dataType:h})].filter(Boolean)},O=e=>{var t;let{data:i,isDefault:n,tag:a,town:o,region:s,townDuplicates:r,toggles:c,isSavingAccounts:d}=e,_=!n&&a?null==a?void 0:null===(t=a.tag_name)||void 0===t?void 0:t.toLowerCase():"",p=o?o.name:null==s?void 0:s.name,m=o?o.name_p:null==s?void 0:s.name_p,v=s||o?u(p)+" "+m:"",g=[...i].sort((e,t)=>{var i,n,l,a;return(null!==(l=null===(i=t.computeData)||void 0===i?void 0:i.effectiveRate)&&void 0!==l?l:0)-(null!==(a=null===(n=e.computeData)||void 0===n?void 0:n.effectiveRate)&&void 0!==a?a:0)});return K({title:h({text:d?"Рейтинг вкладов и счетов ".concat(v," в {year} году"):"Рейтинг вкладов ".concat(_," ").concat(v," в {year} году"),region:s,town:o,townDuplicates:r}),content:(0,l.jsx)(T,{deposits:g.slice(0,10)}),isNewFaqBlock:!!(null==c?void 0:c.FEATURE_TOGGLE_NEW_FAQ_BLOCK)})},I=e=>{let{tag:t,region:i,town:n,townDuplicates:a,currencies:o,banksRegion:s,data:r,allExtraInfo:c,toggles:d}=e;return(null==t?void 0:t.text)&&Array.isArray(t.text)?Array.isArray(c)?c.map(e=>K({title:h({text:e.title,region:i,town:n,townDuplicates:a}),content:(0,l.jsx)(b.r,{data:[{type:"html",data:{html:e.text}}]}),isNewFaqBlock:!!(null==d?void 0:d.FEATURE_TOGGLE_NEW_FAQ_BLOCK)})):t.text.filter(e=>{var t,l;return(null===(t=e.regions)||void 0===t?void 0:t.length)===0&&!n&&!i||(null===(l=e.regions)||void 0===l?void 0:l.some(e=>{var t,l;return 0===e.regionId||e.regionId===(null==i?void 0:i.region_id)&&((null===(t=e.cities)||void 0===t?void 0:t.length)===0||(null===(l=e.cities)||void 0===l?void 0:l.some(e=>e===(null==n?void 0:n.id))))}))}).map(e=>{var c;return K({title:h({text:e.title,region:i,town:n,townDuplicates:a}),content:(0,l.jsx)(b.r,{data:(null===(c=g({content:e,region:i,town:n,townDuplicates:a,tag:t,currencies:o,banks:s,data:r}))||void 0===c?void 0:c.content)||[]}),isNewFaqBlock:!!(null==d?void 0:d.FEATURE_TOGGLE_NEW_FAQ_BLOCK)})}):[]},P=e=>{var t,i,n,a,o,s;let{tag:r,town:c,dataRegion:d,region:u,townDuplicates:_,currencies:p,data:m,banksRegion:v,toggles:f}=e;if(!(null==r?void 0:r.region_page))return[];let x=e=>h({text:e,region:u,town:c,townDuplicates:_,currencies:p,banks:v,data:m,tag:r}),A=e=>{var t,i;return(0,l.jsx)(b.r,{data:null!==(i=null===(t=g({content:e,region:u,town:c,townDuplicates:_,tag:r,currencies:p,banks:v,data:m}))||void 0===t?void 0:t.content)&&void 0!==i?i:[]})};if(c&&(null===(t=r.region_page.special_town_content)||void 0===t?void 0:t.length)){let e=r.region_page.special_town_content.filter(e=>"object"==typeof e&&null!==e&&"town_id"in e&&"number"==typeof e.town_id&&e.town_id===c.id).flatMap(e=>{var t;return null!==(t=e.town_content)&&void 0!==t?t:[]});if(e.length)return e.map(e=>K({title:x(e.title),content:A(e),isNewFaqBlock:!!(null==f?void 0:f.FEATURE_TOGGLE_NEW_FAQ_BLOCK)}))}if(u&&(null===(i=r.region_page.special_region_content)||void 0===i?void 0:i.length)){let e=r.region_page.special_region_content.filter(e=>"object"==typeof e&&null!==e&&"region_id"in e&&"number"==typeof e.region_id&&e.region_id===u.id).flatMap(e=>{var t;return null!==(t=e.region_content)&&void 0!==t?t:[]});if(e.length)return e.map(e=>K({title:x(e.title),content:A(e),isNewFaqBlock:!!(null==f?void 0:f.FEATURE_TOGGLE_NEW_FAQ_BLOCK)}))}return(null==d?void 0:null===(n=d.text_data)||void 0===n?void 0:n.title)&&(null==d?void 0:null===(a=d.text_data)||void 0===a?void 0:a.text)?[K({title:d.text_data.title,content:(0,l.jsx)(b.r,{data:null!==(s=null===(o=g({content:L(d.text_data.text),region:u,town:c,townDuplicates:_,tag:r,currencies:p,data:m,banks:v}))||void 0===o?void 0:o.content)&&void 0!==s?s:[]}),isNewFaqBlock:!!(null==f?void 0:f.FEATURE_TOGGLE_NEW_FAQ_BLOCK)})]:[]},z=e=>{let{region:t,town:i,townDuplicates:n,currencies:a,banksRegion:o,data:s,tag:r,toggles:c}=e,d=S(t,i,n,a,o,s,r);return d&&d.length?d.map(e=>K({title:e.title,content:(0,l.jsx)(b.r,{data:[{type:"html",data:{html:e.text}}]}),isNewFaqBlock:!!(null==c?void 0:c.FEATURE_TOGGLE_NEW_FAQ_BLOCK)})):[]},U=e=>{let{town:t,region:i,dataType:n,tag:a,isDefault:o,itemsStr:s,toggles:r}=e;if(!(!t&&i&&i.towns.length>1))return;let c=i.towns.map(e=>({id:e.id,name:e.name,url:(0,f.C)(n,a,i,e)}));return K({title:"".concat(a&&!o?a.name:s," в городах ").concat(i.name_r),content:(0,l.jsx)(x.a,{data:c}),isNewFaqBlock:!!(null==r?void 0:r.FEATURE_TOGGLE_NEW_FAQ_BLOCK)})},Q=e=>{let{tags:t,tag:i,dataType:n,region:l,town:a,setTag:o}=e;return[...t.filter(e=>{let{url:t,display_in_links_block:n}=e;return t!==(null==i?void 0:i.url)&&"1"===n})].sort((e,t)=>Number(e.position)-Number(t.position)).map(e=>({id:e.id,name:(0,E.L)(e)?"Все вклады":e.name,url:(0,f.C)(n,e,l,a),onClick:()=>o(e.url),disableLink:!0}))},W=e=>{let{tags:t,tag:i,dataType:n,region:l,town:a,setTag:o}=e;return[...t.filter(e=>{let{id:t,display_in_links_block:n}=e;return t!==(null==i?void 0:i.id)&&"1"===n})].sort((e,t)=>Number(e.position)-Number(t.position)).map(e=>{var t;return{id:e.id,name:null!==(t=e.name_in_links_block)&&void 0!==t?t:e.name,url:(0,f.C)(n,e,l,a),onClick:()=>o(e.url),disableLink:!0}})},G=e=>{let{tags:t,tag:i,dataType:n,region:a,town:o,setTag:s,toggles:r}=e,c=t.length&&t||[],d=(null==r?void 0:r.FEATURE_TOGGLE_NEW_DEPOSIT_TAGS)?Q({tags:c,tag:i,dataType:n,region:a,town:o,setTag:s}):W({tags:c,tag:i,dataType:n,region:a,town:o,setTag:s});if("deposits"===n){var u;let e={id:"depozitnyj-kalkulyator",name:"Калькулятор вкладов",url:"/depozitnyj-kalkulyator",disableLink:!1};d=(null===(u=d[0])||void 0===u?void 0:u.name)==="Все вклады"?[d[0],e,...d.slice(1)]:[e,...d]}return K({title:"deposits"===n?"Виды вкладов":"Виды дебетовых карт",content:(0,l.jsx)(x.a,{data:d}),isNewFaqBlock:!!(null==r?void 0:r.FEATURE_TOGGLE_NEW_FAQ_BLOCK)})},V=e=>{let{data:t}=e;if(!(t.length<=0))return{title:"Как открыть вклад через Финуслуги",text:(0,l.jsx)(b.r,{data:[{type:"html",data:{html:"<ol>\n      <li>\n        <strong>Выберите вклад</strong><br>\n        Перейдите в раздел \xabВклады\xbb, укажите сумму и срок — система подберёт подходящие предложения. Нажмите \xabПодробнее\xbb, затем \xabОткрыть вклад\xbb.\n      </li>\n      <li>\n        <strong>Авторизуйтесь через Госуслуги</strong><br>\n        Войдите через подтверждённый профиль, заполните анкету и подтвердите статус налогового резидента.\n      </li>\n      <li>\n        <strong>Пройдите идентификацию</strong><br>\n        Онлайн (через T-ID или Альфа-ID) или с помощью курьера от Финуслуг. После прохождения идентификации выбранный вклад появится в вашем личном кабинете.\n      </li>\n      <li>\n        <strong>Подтвердите вклад и отправьте заявку</strong><br>\n        Проверьте условия, при наличии — введите промокод, затем нажмите \xabПодтвердить\xbb. Заявка уйдёт в банк.\n      </li>\n      <li>\n        <strong>Переведите деньги и получите подтверждение</strong><br>\n        Пополните вклад через СБП, по банковским реквизитам или из Кошелька. После зачисления средств вы получите SMS-уведомление, а статус вклада обновится в личном кабинете.\n      </li>\n    </ol>"}}]})}},Y=e=>{let{town:t,region:i,company:n}=e,l=t?t.name_p:null==i?void 0:i.name_p,a=t?t.name:null==i?void 0:i.name,o=i&&n.has_region_text?u(a)+" "+l:"";return"".concat(n.name," ").concat(o)},Z=e=>{let{tag:t,isDefault:i,company:n,dataType:l,region:a,town:s}=e,r=t&&!i&&t.bank_region_page;return(0,o.xn)(B,"banki",n.url,"vklady",r?"teg_".concat(t.url):"",n.has_region_text?(0,f.C)(l,void 0,a,s,""):"")},H=e=>{var t;let{banks:i,banksRegion:n,itemsStr:a}=e;if(0===i.length||0===n.length)return;let o=n.map(t=>({id:t.id,name:Y({...e,company:t}),url:Z({...e,company:t})})),s=(0,l.jsx)(x.a,{data:o});return K({title:"".concat(a," от банков"),content:s,isNewFaqBlock:!!(null===(t=e.toggles)||void 0===t?void 0:t.FEATURE_TOGGLE_NEW_FAQ_BLOCK)})},q=e=>{let{tag:t,regions:i,regionLinks:n,setRegion:a,itemsStr:o,toggles:s}=e;if((null==t?void 0:t.url)==="premium")return;let r=n.map(e=>{let{id:t,name:n,url:l}=e,o=i.find(e=>e.towns.some(e=>e.id===+t)),s=null==o?void 0:o.towns.find(e=>e.id===+t);return{id:t,name:n,url:l,onClick:()=>{var e,t;o&&s&&a(o,s),null===(t=window)||void 0===t||null===(e=t.scrollTo)||void 0===e||e.call(t,{top:0,left:0,behavior:"smooth"})},disableLink:!0}}),c=(0,l.jsx)(x.a,{data:r});return K({title:"".concat(o," в других регионах"),content:c,isNewFaqBlock:!!(null==s?void 0:s.FEATURE_TOGGLE_NEW_FAQ_BLOCK)})},K=e=>{let{title:t,content:i,isNewFaqBlock:n}=e;return n?{title:t,content:i}:{title:t,text:i}},X=e=>{let{banksData:t,dataType:i}=e;if("debitCards"===i&&t){let e=t.map(e=>{let{id:t,name:i,url:n}=e;return{id:t,name:i,url:n}});return{title:"Дебетовые карты в банках",text:(0,l.jsx)(x.a,{data:e})}}}},40230:function(e,t,i){"use strict";i.d(t,{W:function(){return l}});var n=i(7197);let l=e=>{let{tagName:t,inRegion:i}=e,l=(null==t?void 0:t.trim())||"Частые вопросы";return(0,n.c)(l,{"#REG#":i})}},18182:function(e,t,i){"use strict";i.d(t,{x:function(){return u}});var n=i(63027),l=i(92192);let a=()=>{let e=new Date,t=String(e.getDate()).padStart(2,"0"),i=String(e.getMonth()+1).padStart(2,"0"),n=e.getFullYear().toString();return"".concat(t,".").concat(i,".").concat(n)},o=e=>{let t={};return e.forEach(e=>{e.bankName&&(t[e.bankName]=!0)}),t};var s=i(7197),r=i(44967),c=i(15774),d=i(55961);let u=e=>{var t,i;let{tag:u,town:p,region:m,depositLists:v,depositsCount:h,banksCount:g,bet:f}=e,b=u&&!(0,r.L)(u)?u.name:"Вклады",x=(null==u?void 0:u.url)!=="premium"&&((null==p?void 0:p.name_p)||(null==m?void 0:m.name_p))?" в ".concat((null==p?void 0:p.name_p)||(null==m?void 0:m.name_p)):"",A=(0,l.z)(null==u?void 0:null===(i=u.filter)||void 0===i?void 0:null===(t=i.currency)||void 0===t?void 0:t[0]),C=[...v.platform,...v.another],{low:k,high:w,minTermPeriod:j,maxTermPeriod:y,minDepositAmount:N,maxDepositAmount:D}=(0,n.r)(C),T=null!=f?f:w,S=null!=g?g:Object.keys(o(C)).length,E=null!=h?h:v.currentLength,L={"#H1#":b.toLowerCase(),"#H1-BIG#":b,"#REG#":x,"#H1-RP#":"вклада","#H1-VP#":"вклад","#H1-DP#":"вкладу","#REG-IM#":" ".concat((null==p?void 0:p.name)||(null==m?void 0:m.name)||""),"#REG-RP#":" ".concat((null==p?void 0:p.name_r)||(null==m?void 0:m.name_r)||""),"#PROP#":"".concat(E),"#PROP-FULL#":"".concat((0,d.PY)(E,["предложение","предложения","предложений"])),"#BEcurrencyT#":"".concat((0,c.ZM)(T),"%"),"#COMP#":"".concat(S),"#DATE#":"".concat(new Date().getFullYear()),"#DATE-TD#":a(),"#FULL-DATE#":a(),"#BET#":"".concat((0,c.Y4)(T,2),"%"),"#LENGTH#":"".concat((0,c.Y4)(j)),"{year}":"".concat(new Date().getFullYear()),"{currency}":"".concat(null==u?void 0:u.tag_name.toLowerCase()),"{banks_count}":"".concat(S),"{banks_number}":"".concat(S),"{banks}":"".concat(S),"{deposits_count}":"".concat(E),"{min_deposits_rate}":"".concat((0,c.Y4)(k,2),"%"),"{max_deposits_rate}":"".concat((0,c.Y4)(T,2),"%"),"{min_deposits_days}":"".concat(j),"{max_deposits_days}":"".concat(y),"{min_deposit_amount}":"".concat(N," ").concat(A.unit),"{max_deposit_amount}":"".concat(D," ").concat(A.unit),"#DEPOSIT-PROP-FULL#":"".concat((0,d.PY)(E,["вклад","вклада","вкладов"]))},F=(0,s.c)((null==u?void 0:u.individualDescription)||(null==u?void 0:u.description)||"Вклады в банках России. Найдите выгодные предложения для вкладов от #COMP# банков России в #DATE# году среди #PROP-FULL# по вкладам на Финуслуги.ру",L).trim().replace(/\s{2,}/g," ").replace(/ ([.,!?])/g,"$1");return{title:(0,s.c)((x?null==u?void 0:u.region_title:null==u?void 0:u.title)||"",L),description:(0,s.c)(F,L),subtitle:(0,s.c)((null==u?void 0:u.subtitle)||"",L),h1:b,inRegion:x,lowPrice:k,highPrice:T,minTermPeriod:j,minDepositAmount:N,noIndex:_.includes(String(u?u.id:""))}},_=Object.freeze(["investicionnye","multivalyutnye","na_10_let","na_15_let","na_20_let","na_4_goda","na_5_let","na_6_let","na_obrazovanie","na_puteshestvie"])},17155:function(e,t,i){"use strict";i.d(t,{u:function(){return n}});let n=(e,t)=>{var i,n;if("Enter"===e.key&&(null===(i=document.activeElement)||void 0===i?void 0:i.tagName)==="INPUT"){let e=document.getElementById(null===(n=document.activeElement)||void 0===n?void 0:n.id);e&&(e.blur(),t())}}},7197:function(e,t,i){"use strict";i.d(t,{c:function(){return n}});let n=(e,t)=>{let i=e;return Object.keys(t).forEach(e=>{i=i.replace(new RegExp(e),t[e])}),i}},74758:function(e,t,i){"use strict";i.d(t,{K:function(){return o}});var n=i(7301),l=i(2265);let a=()=>{let[e,t]=(0,l.useState)(null);return(0,l.useEffect)(()=>{document.referrer.length&&t(document.referrer)},[]),e};function o(e){let{bannersTitle:t,queryParams:i,stores:o}=e,s=(0,n._m)("l"),r=a(),c=(0,l.useMemo)(()=>{let e=r?[...i,"referer=".concat(r)]:i;return e.length?"?".concat(e.join("&")):""},[r,i]);return(0,l.useMemo)(()=>t.reduce((e,t)=>{let i=null==o?void 0:o.find(e=>e.title===t);if(i){let n=s?i.url_desktop:i.url_mobile;e[t]=n?n+c:""}return e},{}),[t,o,s,c])}},40871:function(e,t,i){"use strict";i.d(t,{S:function(){return a}});var n=i(21822),l=i(9499);let a=()=>{let[e]=(0,l.a)(["aggregator_id"]),t=e?e.split("=")[1]:null,i=(0,n.$1)(),a=null==i?void 0:i["auth.gtm_customer_id"],o=(null==i?void 0:i.cpa_click)||'{ "payload": [] }',s={payload:[]};try{s=JSON.parse(o)}catch(e){console.error("cpa_click cookie parsing error")}let r=(s.payload||[]).pop()||{aggregator_id:"",create_date:""},c=new Date(new Date().getTime()-36e5),d=new Date(r.create_date)>c,u="agents"===r.aggregator_id&&d;return("agents"===t||u)&&!a}},9499:function(e,t,i){"use strict";i.d(t,{a:function(){return a}});var n=i(2265),l=i(13107);function a(e){let{asPath:t,query:i}=(0,l.P)();return(0,n.useMemo)(()=>{if(t.includes("#")){let i=t.split("?")[1];return i?i.split("&").filter(t=>e.includes(t.split("=")[0])):[]}return e.reduce((e,t)=>i[t]?[...e,"".concat(t,"=").concat(i[t])]:e,[])},[t,i,e])}},97388:function(e,t,i){"use strict";i.d(t,{f:function(){return o}});var n=i(2265),l=i(26719);let a=e=>{let{isShort:t}=e;return(0,l.t)("/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}},27187:function(e){e.exports={filter:"DepositStickyFilter_filter__yNpUk",headless:"DepositStickyFilter_headless__yUsCC",header:"DepositStickyFilter_header__Y4EwP",filterBottom:"DepositStickyFilter_filterBottom__i25pG",floating:"DepositStickyFilter_floating__C31H2",show:"DepositStickyFilter_show__giPWV",listFilter:"DepositStickyFilter_listFilter__XSPgQ",hideSort:"DepositStickyFilter_hideSort__MCXpN"}},15656:function(e){e.exports={notFound:"OffersNotFound_notFound__itCCB",icon:"OffersNotFound_icon__PCljK",text:"OffersNotFound_text__13ylR",button:"OffersNotFound_button__Dl1Ah"}},41890:function(e){e.exports={link:"RegionSubtitle_link__2qOpF",subTitle:"RegionSubtitle_subTitle__yjtXq",hidden:"RegionSubtitle_hidden__1xcDk",accordionTitle:"RegionSubtitle_accordionTitle__yERyO",pointer:"RegionSubtitle_pointer__Z4F2Y",title:"RegionSubtitle_title__5PM81",mobile:"RegionSubtitle_mobile__FWf17",desktop:"RegionSubtitle_desktop__Y_R2s",accordion:"RegionSubtitle_accordion__7PYNe",icon:"RegionSubtitle_icon__y5kTO",expanded:"RegionSubtitle_expanded__Tkvy6",iconWrapper:"RegionSubtitle_iconWrapper__TJ7p3"}},94123:function(e){e.exports={title:"RegionTitle_title__ouhKs",link:"RegionTitle_link__r_rJV",titleWrapper:"RegionTitle_titleWrapper__yuBaG",newTitle:"RegionTitle_newTitle__SeVuV"}},55051:function(e){e.exports={filterContainer:"Deposits_filterContainer__UXpE1",sectionWrapper:"Deposits_sectionWrapper__TsXhU",advantages:"Deposits_advantages__7ZAjI",whiteBackground:"Deposits_whiteBackground__k1J2j",mainContainer:"Deposits_mainContainer__ZB24g"}},90746: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"}},83947: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"}},45007:function(e){e.exports={content:"DepositFilterModal_content__Mhjaf",thin:"DepositFilterModal_thin__TwC6g",title:"DepositFilterModal_title__airXG",hidden:"DepositFilterModal_hidden__OdFD8",t2ModalTitle:"DepositFilterModal_t2ModalTitle__cYNFA",fields:"DepositFilterModal_fields__JYbkN",t2ModalFields:"DepositFilterModal_t2ModalFields__nXLyu",field:"DepositFilterModal_field__SJ8y5",settings:"DepositFilterModal_settings__vDg5i",settingsTitle:"DepositFilterModal_settingsTitle__1hN4z",sortBlock:"DepositFilterModal_sortBlock__G51hB",t2ModalSortBlock:"DepositFilterModal_t2ModalSortBlock__hKVeO",checkboxWrapper:"DepositFilterModal_checkboxWrapper__uZXHE",t2ModalCheckboxWrapper:"DepositFilterModal_t2ModalCheckboxWrapper__Ih28T",radioWrapper:"DepositFilterModal_radioWrapper__uFnR5",radioGroup:"DepositFilterModal_radioGroup__GaAbC",radioTip:"DepositFilterModal_radioTip__gwy_7",buttonActions:"DepositFilterModal_buttonActions__P_bf7",button:"DepositFilterModal_button__SQhD1",mobilePopup:"DepositFilterModal_mobilePopup__TG7FM",interestAccrualRow:"DepositFilterModal_interestAccrualRow__Ewi8U"}},72273:function(e){e.exports={depositTable:"DepositTable_depositTable__h1UuU",title:"DepositTable_title__cu31M",container:"DepositTable_container__db_LT",logoWrapper:"DepositTable_logoWrapper__YygK_",logo:"DepositTable_logo__kPwBG"}},96182:function(e){e.exports={wrapper:"DepositsAdditionalSettings_wrapper__s5qQJ",title:"DepositsAdditionalSettings_title__nrSLc",margin:"DepositsAdditionalSettings_margin__GvGUZ",checkboxList:"DepositsAdditionalSettings_checkboxList__jnXP7",column:"DepositsAdditionalSettings_column__QJ9pW"}},94067:function(e){e.exports={title:"DepositsFilter_title__LqIUw",beelineDepositTitleHeadingClassName:"DepositsFilter_beelineDepositTitleHeadingClassName__ZM9kq",beelineDepositPageHeadingTextClassName:"DepositsFilter_beelineDepositPageHeadingTextClassName__9ck8q",link:"DepositsFilter_link__KGNNY",subTitle:"DepositsFilter_subTitle__CYDBq",hidden:"DepositsFilter_hidden__MkVv7",wrapper_container:"DepositsFilter_wrapper_container__8uqVx",beelineWrapper:"DepositsFilter_beelineWrapper__X227Y",t2Wrapper:"DepositsFilter_t2Wrapper__eJSFt",container:"DepositsFilter_container__rerMx",buttons:"DepositsFilter_buttons__D5dHw",gridItem:"DepositsFilter_gridItem__jXTWY",t2Controller:"DepositsFilter_t2Controller__APwOF",beelineController:"DepositsFilter_beelineController__SRHTV",field:"DepositsFilter_field__L90bX",t2Field:"DepositsFilter_t2Field__Kis2a",tags:"DepositsFilter_tags__sgqF_",tag:"DepositsFilter_tag__UXokT",heading:"DepositsFilter_heading__6ypN_",desktop:"DepositsFilter_desktop__1qmEL",mobile:"DepositsFilter_mobile__7WYjn",acbBlock:"DepositsFilter_acbBlock__zYuJ9",bannerDefaultImage:"DepositsFilter_bannerDefaultImage__bD2be",headingBlock:"DepositsFilter_headingBlock__cKilC",disclaimer:"DepositsFilter_disclaimer__KKph9",row:"DepositsFilter_row__60Fbu",adFox:"DepositsFilter_adFox__q6bCh",headingAppearance:"DepositsFilter_headingAppearance__X9hLQ"}},73175:function(e){e.exports={listTitle:"DepositsList_listTitle__j8kD5",container:"DepositsList_container__JdzB6",title:"DepositsList_title__7dAwJ",disclaimer:"DepositsList_disclaimer__XpcXF",listItem:"DepositsList_listItem__z4ODF",spaced:"DepositsList_spaced__Qz9G8",button:"DepositsList_button__Y4Un_",buttonsRow:"DepositsList_buttonsRow__S01KD",adFox:"DepositsList_adFox__UUPeB",bondsInfo:"DepositsList_bondsInfo__4Nz4Q",bondsLink:"DepositsList_bondsLink__SIlxS",subTitle:"DepositsList_subTitle__oD6TQ",anotherList:"DepositsList_anotherList__xXYKd"}},95762:function(e){e.exports={adv:"Banner_adv__wRlYY",slider:"Banner_slider__t80FC",mobileAd:"Banner_mobileAd__q_c6O",baseCourseBanner:"Banner_baseCourseBanner___RKJW",title:"Banner_title__vHOWH",iosVariant:"Banner_iosVariant__AsN8O",bannerImage:"Banner_bannerImage__nZwi0",bannerContent:"Banner_bannerContent__Vb0f7",button:"Banner_button__3NgfL",textColumn:"Banner_textColumn__Jyfjh",link:"Banner_link__okSqT",services:"Banner_services__ceGH4"}},84213:function(e){e.exports={card:"Card_card__r1BPx",active:"Card_active__AiWjI",top:"Card_top___5IGN",step:"Card_step__BOlVj",title:"Card_title__WVhSf",bottom:"Card_bottom__sI7dJ",bottomText:"Card_bottomText__5CaM4",chevronWrapper:"Card_chevronWrapper__1ICW3",chevron:"Card_chevron__K1jRo"}},21245:function(e){e.exports={container:"DepositGuide_container__Uxjn6",small:"DepositGuide_small__M9mSj",block:"DepositGuide_block__oObVg",header:"DepositGuide_header__g_RR_",title:"DepositGuide_title__F2wjv",disclaimer:"DepositGuide_disclaimer__4qEc3",sliderWrapper:"DepositGuide_sliderWrapper__HqThx",closed:"DepositGuide_closed__mMzDV",slide:"DepositGuide_slide__BUoSS",active:"DepositGuide_active__LXU7c"}},27639:function(e){e.exports={description:"Description_description__hRZ_a",hidden:"Description_hidden__w87j8",content:"Description_content__5vBP4",show:"Description_show__GcWRD",information:"Description_information__aV0Q_",list:"Description_list__HMP02",noMark:"Description_noMark__3_6qY",buttons:"Description_buttons__LsjJ2",column:"Description_column__rDpxQ"}},84511:function(e){e.exports={notification:"Notification_notification__9eoLP",textBlock:"Notification_textBlock__L95fL",title:"Notification_title__3pGiN",caption:"Notification_caption__vEbpd",closeIcon:"Notification_closeIcon__UTaKl"}},66884:function(e){e.exports={notifications:"Notifications_notifications__JTggi"}},32279:function(e){e.exports={pageHeading:"DepositsPageHeading_pageHeading__SbE3A",hideBanner:"DepositsPageHeading_hideBanner__B3eMO",alignCenter:"DepositsPageHeading_alignCenter__FYQy6",headingText:"DepositsPageHeading_headingText__gXw0I",adFox:"DepositsPageHeading_adFox__kBHiL",bannerDefaultImage:"DepositsPageHeading_bannerDefaultImage__q5v5U"}}}]);