(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9188],{36:(e,t,i)=>{"use strict";i.d(t,{k:()=>a});var l=i(12115),n=i(19559);function a(e){let{eventCategory:t,eventLabel:i}=e;(0,l.useEffect)(()=>{(0,n.oA)({event:"data-event",eventAction:"view",eventCategory:t,eventLabel:i})},[])}},1150:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let l=i(95155),n=i(12115),a=i(24437);function s(e){return{default:e&&"default"in e?e.default:e}}i(36552);let r={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},o=function(e){let t={...r,...e},i=(0,n.lazy)(()=>t.loader().then(s)),o=t.loading;function u(e){let s=o?(0,l.jsx)(o,{isLoading:!0,pastDelay:!0,error:null}):null,r=!t.ssr||!!t.loading,u=r?n.Suspense:n.Fragment,d=t.ssr?(0,l.jsxs)(l.Fragment,{children:[null,(0,l.jsx)(i,{...e})]}):(0,l.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,l.jsx)(i,{...e})});return(0,l.jsx)(u,{...r?{fallback:s}:{},children:d})}return u.displayName="LoadableComponent",u}},8186:e=>{e.exports=function(){}},14060:(e,t,i)=>{"use strict";i.d(t,{Q:()=>o});var l=i(95155),n=i(12115),a=i(95644),s=i.n(a);function r(e){return s()(e,{allowedTags:[],allowedAttributes:{}})}let o=e=>{let{textList:t,regionId:i,townId:a}=e,s=(0,n.useMemo)(()=>{if(!t)return"";let e=Array.isArray(t)&&t.length>0&&"content"in t[0]?function(e,t,i){return e.filter(e=>{var l;let n=null!=(l=e.regions)?l:[];return t&&i?n.some(e=>{var l,n;return 0===e.regionId||e.regionId===t&&((null==(l=e.cities)?void 0:l.length)===0||(null==(n=e.cities)?void 0:n.some(e=>e===i)))}):t&&!i?n.some(e=>e.regionId===t):!t&&!i&&0===n.length})}(t,i,a):t;if(!e.length)return"";let l=e.filter(e=>!!e.displayInMicrodata).map(e=>"content"in e?{"@type":"Question",name:e.title,acceptedAnswer:{"@type":"Answer",text:function(e){return Array.isArray(e)?e.map(e=>{var t;return(null==e||null==(t=e.data)?void 0:t.html)||""}).map(r).filter(Boolean).join(" "):""}(e.content)}}:"question"in e&&"answer"in e?{"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:r(e.answer)}}:null).filter(Boolean);return l.length?JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:l}):""},[t,i,a]);return s?(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:s}}):null}},14686:e=>{e.exports={filterContainer:"Deposits_filterContainer__UXpE1",sectionWrapper:"Deposits_sectionWrapper__TsXhU",advantages:"Deposits_advantages__7ZAjI",whiteBackground:"Deposits_whiteBackground__k1J2j",grayBackground:"Deposits_grayBackground__8ndmz",mainContainer:"Deposits_mainContainer__ZB24g",quote:"Deposits_quote__0vrSB"}},14899:(e,t,i)=>{"use strict";i.d(t,{i:()=>l});var l=function(e){return e.nakop="nakopitelnye",e}({})},20481: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"}},24260:()=>{},24437:(e,t,i)=>{"use strict";function l(e){let{reason:t,children:i}=e;return i}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return l}}),i(24553)},26497:e=>{e.exports={detailIcon:"DepositsItem_detailIcon__PzEOA",detail:"DepositsItem_detail__eDvqi"}},27532:()=>{},29448:(e,t,i)=>{"use strict";i.d(t,{f:()=>u});var l=i(95155),n=i(2821),a=i(58993);i(27532);let s=(0,a.g)("row"),r=(e,t,i)=>`${s}--gutter-${e}-${t}-${i}`,o=Object.freeze({row:s,state:{reverse:`${s}--reverse`,gutter:(e,t="xs")=>Array.isArray(e)?[r(t,e[0],"h"),r(t,e[1],"v")].join(" "):r(t,e,"h")}});function u({as:e,className:t="",reverse:i=!1,gutters:a={},children:s,...r}){let u=Object.entries(a).map(([e,t])=>o.state.gutter(t,e)).join(" ");return(0,l.jsx)(e||"div",{...r,className:(0,n.A)(o.row,t,u,{[o.state.reverse]:i}),children:s})}u.displayName="Row"},31102:(e,t,i)=>{"use strict";i.d(t,{e:()=>a});var l=i(12115),n=i(28625);let a=(e,t)=>{let[i,a]=(0,l.useState)({regions:[],town_duplicates:[],region:(null==t?void 0:t.region)||null,town:(null==t?void 0:t.town)||null});return(0,l.useEffect)(()=>{e||(async()=>{let e=await (e=>{let{isShort:t}=e;return(0,n.px)("/money_data/Root.json".concat(t?"?short=1":""))})({isShort:!0});e.data&&a(e.data)})()},[e]),i}},31623:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Deposits:()=>tL});var l,n=i(95155),a=i(95633),s=i(13860);i(24260);var r=i(43126),o=i(2821),u=i(12115),d=i(83745),c=i(42195),m=i(29375),p=i(1611);let _=(0,p.g)("cross-link-chips-block","sc"),v=Object.freeze({crossLinkChipsBlock:_,crossLinkSlider:`${_}__slider`,crossLinkItemList:`${_}__item-list`,crossLinkItem:`${_}__item`,hiddenCrossLinkItemLink:`${_}__item--hidden`,sliderChips:`${_}__slider-chips`,sliderChipsItem:`${_}__slider-chips-item`}),h=({labels:e,dataLayerPush:t,eventCategory:i="cross-link",...l})=>{var a;let[s,r]=(0,u.useState)(null==(a=e[0])?void 0:a.name),p=l=>{let n=e.find(e=>e.name===s);r(l),t({event:"data-event",eventCategory:i,eventAction:"click_chip_cross-link-block",eventLabel:null==n?void 0:n.name})},_=e.map(e=>({id:e.name,label:e.name}));return(0,n.jsxs)(n.Fragment,{children:[_.length>=1&&(0,n.jsx)(m.A,{options:{slidesPerView:"auto",spaceBetween:8},className:v.crossLinkSlider,children:_.map(e=>(0,n.jsx)(m.D,{className:v.sliderChipsItem,children:(0,n.jsx)(d.C,{value:s,onChipClick:p,chips:[e]})},e.id))}),e.length>0&&(0,n.jsx)("ul",{className:v.crossLinkItemList,children:e.map(e=>{var a;let r=e.name!==s;return null==(a=e.tags)?void 0:a.map(a=>(0,n.jsx)("li",{className:(0,o.A)(v.crossLinkItem,r&&v.hiddenCrossLinkItemLink),children:(0,n.jsx)(c.N,{href:`${l.href}/${a.url}`,onClick:()=>((e,n)=>{t({event:"data-event",eventCategory:i,eventAction:"click_link_cross-link-block",eventLabel:e.tagName,eventValue:n,url:`${l.href}/${e.url}`})})(a,e.name),children:a.tagName})},a.id))})})]})};h.displayName="CrossLinkChipsBlock";let f=(0,p.g)("cross-link","sc"),g=Object.freeze({crossLink:f,titleWrapper:`${f}__title-wrapper`,title:`${f}__title`,crossLinkWrapper:`${f}__wrapper`,crossLinkChipsTitle:`${f}__chips-title`}),x=({sectionTitle:e,labelsData:t=[],className:i,blockTitle:l="Виды вкладов",href:s="/vklady",dataLayerPush:u})=>(0,n.jsx)("section",{className:(0,o.A)(g.crossLink,i),children:(0,n.jsxs)(a.m,{children:[(0,n.jsx)("div",{className:g.titleWrapper,children:(0,n.jsx)(r.D,{as:"h2",type:"hero",className:(0,o.A)(g.title),children:e})}),(0,n.jsxs)("div",{className:g.crossLinkWrapper,children:[l&&(0,n.jsx)(r.D,{as:"h3",type:"h3",className:g.crossLinkChipsTitle,children:l}),(0,n.jsx)(h,{labels:t.content,href:s,dataLayerPush:u})]})]})});x.displayName="CrossLink",i(78410);let b=(0,p.g)("expert-quote","sc"),y=Object.freeze({expertQuote:b,wrapper:`${b}__wrapper`,title:`${b}__title`,card:`${b}__card`,content:`${b}__content`,aboutText:`${b}__aboutText`,about:`${b}__about`,img:`${b}__img`,name:`${b}__name`,position:`${b}__position`,text:`${b}__text`}),w=(0,u.memo)(({className:e,quote:t})=>t?(0,n.jsx)("section",{className:(0,o.A)(y.wrapper,e),children:(0,n.jsxs)(a.m,{children:[(0,n.jsx)(r.D,{as:"h2",type:"display",weight:"bold",className:(0,o.A)(y.title,"mb-6"),children:"Мнение эксперта"}),(0,n.jsx)("div",{className:y.card,children:(0,n.jsxs)("div",{className:y.content,children:[(0,n.jsxs)("div",{className:y.about,children:[t.expert.photo&&(0,n.jsx)("a",{href:t.expert.url,children:(0,n.jsx)("div",{className:y.img,style:{backgroundImage:`url(${t.expert.photo})`}})}),(0,n.jsxs)("div",{className:y.aboutText,children:[(0,n.jsx)("a",{href:t.expert.url,className:y.name,children:t.expert.name}),(0,n.jsx)("p",{className:y.position,dangerouslySetInnerHTML:{__html:t.expert.position}})]})]}),(0,n.jsx)("p",{className:y.text,dangerouslySetInnerHTML:{__html:t.content}})]})})]})}):null);w.displayName="ExpertQuote";var j=i(23781);i(84112);let C=(0,p.g)("seo-text","sc"),D=Object.freeze({seoText:C,wrapper:`${C}__wrapper`,title:`${C}__title`,titleWrapper:`${C}__title-wrapper`,blockTitle:`${C}__block-title`,text:`${C}__text`,checkAll:`${C}__check-all`}),N=({blockTitle:e,content:t,sectionTitle:i,className:l})=>(0,n.jsx)("section",{className:(0,o.A)(D.seoText,l),children:(0,n.jsxs)(a.m,{children:[i&&(0,n.jsx)("div",{className:D.titleWrapper,children:(0,n.jsx)(r.D,{as:"h2",type:"hero",className:(0,o.A)(D.title),children:i})}),(0,n.jsxs)("div",{className:D.wrapper,children:[(0,n.jsx)(r.D,{as:"h2",type:"h3",className:(0,o.A)(D.blockTitle),children:e}),(0,n.jsx)("div",{className:D.text,dangerouslySetInnerHTML:{__html:t||""}})]})]})});N.displayName="SeoText";var k=i(52619),A=i.n(k),T=i(20063),L=i(61126),P=i(81637),S=i(28625),I=i(48948),M=i(93018),O=i(89264),U=i(4678),E=i(14899),R=i(88475),z=i(6425);let B=(0,R.O)(),F=(e,t)=>e?{...e,totalProfit:e.totalProfit-t}:null;var $=i(33748),q=i(20447),W=i(14060),Q=i(30672),Y=i(48380),V=i(64765),H=i(1396);let G=Object.freeze(["moskva","sankt-peterburg"]),K=(0,u.memo)(function(e){let{region:t,tag:i,meta:l,depositLists:a,regionUrl:s,currency:r,isOldUser:o,town:d,initialDescription:c,initialTitle:m,quote:p,isMetaReady:_}=e,{asPath:v}=(0,H.T)(),h=v.split("?")[0].split("#")[0],{minDepositAmount:f,minTermPeriod:g,highPrice:x,inRegion:b,h1:y,description:w,title:j}=l,C=(0,V.G)(i),D=(null==a?void 0:a.notInitialDeposits)&&_?j:m,N=(null==a?void 0:a.notInitialDeposits)&&_?w:c;return(0,u.useEffect)(()=>{document.title=D;let e=document.querySelector("link[rel=canonical]"),t=document.querySelector('meta[name="description"]');t&&t.setAttribute("content",N),e&&(e.href="".concat(q.q.BASE_URL).concat(h))},[D,h,N]),(0,n.jsxs)(n.Fragment,{children:[C&&t&&G.includes(t.url)&&(0,n.jsx)(Y.A,{minDepositAmount:f,minTermPeriod:g,regionName:t.name_p,maxRate:x,regionUrl:t.url}),(0,n.jsx)($.g,{regionUrl:s,tag:i}),!!(null==i?void 0:i.text.length)&&(0,n.jsx)(W.Q,{textList:i.text,regionId:null==t?void 0:t.region_id,townId:null==d?void 0:d.id}),(0,n.jsx)(Q.w,{filterCurrency:r,currentLength:a.currentLength,isHiddenPromo:o,description:N,h1:y,inRegion:b,platform:a.platform,another:a.another,regionUrl:s,tagUrl:!C&&i?i.url:"",quote:p})]})});var J=i(35138),Z=i.n(J),X=i(92646),ee=i(97390),et=i(50769),ei=i(34357);let el=Object.freeze({[ee.r3.Profit]:"PROFIT",[ee.r3.Rate]:"RATE",[ee.r3.RatePlusBonus]:"CUMULATIVE_RATE"});var en=i(55202);let ea=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,S.px)("/api/v1/quotes?quoteUrl=".concat(e,"&published=true"),null,{isMpScApi:!0},t)},es=async e=>{var t,i;let{tag:l,region:n,town:a}=e,s=["vklady"];l&&s.push("teg_".concat(l)),n&&s.push("reg_".concat(n)),a&&s.push(a);let r=s.join("/"),o=(e=>{if(!Array.isArray(e)||0===e.length)return null;let t=Math.floor(Math.random()*e.length);return e[t]})(null!=(i=null==(t=(await ea(r)).data)?void 0:t.content)?i:[]);return o?{...o,content:o.content}:null};var er=i(99248);let eo=async function(e){var t;let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=new URLSearchParams({url:e}).toString();return null!=(t=(await (0,S.px)("/api/v2/seo-texts/by-url?".concat(l),null,{isMpScApi:!0},i)).data)?t:[]},eu=async e=>{var t,i;let{url:l}=e;return null!=(i=null==(t=(await eo(l)).find(e=>"SEO Текст"===e.type.name))?void 0:t.content[0])?i:null};var ed=i(18991),ec=i(72908),em=i(51442),ep=i(73520);let e_=[{displayDuration:{years:0,months:7,days:0},maxRate:0,durationOfDays:213},{displayDuration:{years:0,months:8,days:0},maxRate:0,durationOfDays:243}],ev=e=>{let{displayDuration:{years:t,months:i,days:l}}=e,n=[];return t&&n.push((0,ep.l6)(t,ec.j3.YEAR)),i&&n.push((0,ep.l6)(i,ec.j3.MONTH)),l&&n.push((0,ep.l6)(l,ec.j3.DAY)),{...e,termLabel:n.join(" ")}};var eh=i(84353);let ef=e=>null!=e?e:null,eg=e=>null!=e?e:"",ex=async e=>{let{tagUrl:t,depositTags:i,setTag:l,toggles:n,limit:a,shouldFetchTexts:s=!0,regionId:r,townId:o}=e,u=await eb({tagUrl:t,depositTags:i,toggles:n,limit:a,shouldFetchTexts:s,regionId:r,townId:o});if(l&&u){var d,c;l(u),null==(c=window)||null==(d=c.scrollTo)||d.call(c,0,0)}return u},eb=async e=>{var t,i,l,n,a,s,r,o;let{tagUrl:u,depositTags:d,limit:c,shouldFetchTexts:m,regionId:p,townId:_}=e,v=null==d||null==(t=d.find(e=>{let{url:t}=e;return t===u}))?void 0:t.id,h=null==d||null==(i=d.find(e=>{let{name:t}=e;return"DEFAULT"===t}))?void 0:i.id,f=null!=v?v:h,g=await ((e,t)=>e?(0,S.px)((0,P.VL)("/api/v3/product-tags/".concat(e),{limit:t}),null,{isMpScApi:!0}):{data:null,error:null})(f,c),x=m?await ((e,t,i)=>{if(!e)return{data:null,error:null};let l=(()=>{let l="/api/v1/deposit-tags/".concat(e,"/texts"),n=[];return t&&n.push("region=".concat(t)),i&&n.push("town=".concat(i)),n.length>0&&(l+="?".concat(n.join("&"))),l})();return(0,S.px)(l,null,{isMpScApi:!0})})(f,p,_):void 0;return(e=>{var t,i,l,n,a,s,r,o,u,d,c,m,p,_,v,h,f,g,x,b,y;return e?{id:eg(e.id),url:eg(e.url),title:eg(e.individualTitle),subtitle:eg(e.individualSubtitle),description:eg(e.individualDescription),individualDescription:eg(e.individualDescription),name:eg(e.internalName),tag_name:eg(e.tagName),text:(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}})))(null!=(f=e.textList)?f:[]),calc_amount:ef(null==(t=e.facet)?void 0:t.depositAmount),calc_term:ef(null==(i=e.facet)?void 0:i.depositTerm),calc_currency_id:ef(null==(l=e.facet)?void 0:l.currency),filter:{term:{from:String(null!=(g=null==(n=e.facet)?void 0:n.depositTerm)?g:0),to:null},amount:ef(null==(a=e.facet)?void 0:a.depositAmount),currency:null!=(x=null==(s=e.facet)?void 0:s.currency)?x:"RUB",type:eg(null==(r=e.facet)?void 0:r.type),partial_withdrawal:+(null!=(o=e.facet)&&!!o.partialWithdrawal),online_application:0,finuslugi_application:0,commercial:+(null!=(u=e.facet)&&!!u.commercialPlacement),refill:+(null!=(d=e.facet)&&!!d.replenishment),interest_capitalization:+(null!=(c=e.facet)&&!!c.capitalization),earlyTermination:!!(null==(m=e.facet)?void 0:m.earlyTermination),interestsMonthly:!!(null==(p=e.facet)?void 0:p.interestsMonthly),displayNonPlatform:!!(null==(_=e.facet)?void 0:_.displayNonPlatform),rate:ef(null==(v=e.facet)?void 0:v.depositRate)},disable_filter:+(null==(h=e.facet)||!h.filterUsage),position:null!=(b=e.sortNumber)?b:0,deposits:(e=>{var t,i,l,n,a,s,r;return(null==(t=e.facet)?void 0:t.filterUsage)?[]:[...null!=(a=null==(i=e.facet)?void 0:i.productsIds)?a:[],...null!=(s=null==(l=e.facet)?void 0:l.depositsIds)?s:[],...null!=(r=null==(n=e.facet)?void 0:n.legacyProductsIds)?r:[]]})(e),default:+!!e.useByDefault,region_page:{is_show:null!=(y=e.isPublishedTagAndArea)&&y,town_titles:[],town_content:[],region_titles:[],region_content:[],town_subtitles:[],read_more_title:"",region_subtitles:[],best_offers_title:"",town_descriptions:[],region_descriptions:[],reviews_block_title:"",search_region_title:""},region_title:eg(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:ef(e.stats)}:null})({...null==g?void 0:g.data,textList:[...null!=(s=null==x||null==(l=x.data)?void 0:l.textList)?s:[],...null!=(r=null==x||null==(n=x.data)?void 0:n.regionContent)?r:[],...null!=(o=null==x||null==(a=x.data)?void 0:a.townContent)?o:[]]})};var ey=i(73167),ew=i(73698),ej=i(37465),eC=i(19559),eD=i(54319),eN=i(8561),ek=i(35896),eA=i(20830);function eT(e){let{tagId:t,banksByBic:i,...l}=e,{data:n,isLoading:a}=(0,er.C)(["non-platform-deposits-by-tag",t],()=>(0,ed.a_)(t),l);return(0,u.useMemo)(()=>({nonPlatformDeposits:(null!=n?n:[]).map(e=>{var t;return(0,eA.V)({deposit:e,bank:(null==e||null==(t=e.contentAttributes)?void 0:t.bic)?i[e.contentAttributes.bic]:void 0})}),isLoading:a}),[i,n,a])}async function eL(){let e=await (0,ed.t$)();if(!e.data)return[];let{boundaryValues:{totalPages:t},products:i}=e.data,l=Array.from({length:t-1},(e,t)=>(0,ed.t$)({page:t+1}));return[...i,...(await Promise.all(l)).flatMap(e=>{var t,i;return null!=(i=null==(t=e.data)?void 0:t.products)?i:[]})]}var eP=i(21447);let eS=e=>{let{tagUrl:t,regionUrl:i,townUrl:l}=e,n=null==t?void 0:t.replace(/^teg_/,""),a=null==i?void 0:i.replace(/^reg_/,"");return(0,P.VL)("/api/v1/cross-links/tags/".concat(encodeURIComponent(n&&"DEFAULT"!==n?n:"vse_vkladi")),{productType:"DEPOSIT",regionUrl:""===a?void 0:a,townUrl:""===l?void 0:l})};var eI=i(97468),eM=i(75542),eO=i(1590),eU=i(47364),eE=i(76072),eR=i(31102),ez=i(55921),eB=i(36),eF=i(21019),e$=i(30210),eq=i(53548),eW=i(29448),eQ=i(69465),eY=i(67909),eV=i(55275),eH=i(21497),eG=i(703),eK=i(89726),eJ=i(72956),eZ=i(44548),eX=i(15239),e0=i(67042),e1=i(53772),e5=i(46518),e2=i.n(e5);let e4={src:"/deposits/_next/static/media/finuslugi.c398cf70.svg",height:8,width:12,blurWidth:0,blurHeight:0},e6=(0,u.memo)(function(e){let{isSavingAccount:t,isOldUser:i}=e,l=(0,ez.A)(),a=(0,u.useCallback)(()=>(0,eD.e)(U.se,{offset:l,position:"top"}),[l]);return(0,n.jsxs)("div",{className:e2().additionalTips,"data-qa":"additional-tips",children:[!i&&!t&&(0,n.jsx)(e1.N,{dataQa:"additional_tips-how_to_open-button",onClick:a,children:(0,n.jsx)(eZ.v,{className:e2().tag,iconLeft:(0,n.jsx)(eX.default,{src:e4,alt:"",unoptimized:!0,width:12}),label:"Как открыть вклад",variant:"secondary"})}),(0,n.jsx)(eZ.v,{dataQa:"additional_tips-asv-text",className:e2().tag,iconLeft:(0,n.jsx)(eX.default,{src:e0.A,unoptimized:!0,width:12,alt:""}),label:"".concat(t?"Счета":"Вклады"," застрахованы в АСВ")})]})});var e3=i(47701),e8=i(76048),e7=i(53414),e9=i.n(e7);function te(e){let{title:t,caption:i,icon:l,dataQa:a,onCloseClick:s}=e;return(0,n.jsxs)("div",{className:e9().notification,"data-qa":a,children:[l,(0,n.jsxs)("div",{className:e9().textBlock,children:[(0,n.jsx)(eQ.E,{size:"18",weight:"medium",className:e9().title,children:t}),(0,n.jsx)(eQ.E,{size:"14",weight:"regular",className:e9().caption,children:i})]}),(0,n.jsx)(e8._7M,{size:"24",className:e9().closeIcon,onClick:s})]})}var tt=i(46186),ti=i.n(tt);let tl="opening-notification-closed",tn="profit-notification-closed";function ta(e){let{disableProfitNotification:t,disableNotifications:i}=e,[l,a]=(0,u.useState)(()=>!eN.A.getItem(tl)),[s,r]=(0,u.useState)(()=>!t&&!eN.A.getItem(tn)),o=(0,u.useCallback)(()=>{a(!1),eN.A.setItem(tl,"true")},[]),d=(0,u.useCallback)(()=>{r(!1),eN.A.setItem(tn,"true")},[]);return(l||s)&&!i?(0,n.jsxs)("div",{className:ti().notifications,children:[l&&(0,n.jsx)(te,{title:"100% онлайн",caption:"Открытие без\xa0посещения банка",icon:(0,n.jsx)(e8.irT,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-opening-notification",onCloseClick:o}),s&&(0,n.jsx)(te,{title:"Доход по вкладам с одной ставкой может отличаться",caption:"Причина — разница в количестве дней вклада",icon:(0,n.jsx)(e8.S2Q,{style:{color:"var(--color-purple-500)"},size:"20",boxSize:24}),dataQa:"deposits-profit-notification",onCloseClick:d})]}):null}let ts=(e,t)=>(!!e.isNotAmount||!!e.isTermEmpty||!!e.computeData)&&(!t||!e.promo);var tr=i(5858),to=i(8244),tu=i(58016),td=i(89910),tc=i(78916),tm=i(20481),tp=i.n(tm),t_=i(81326),tv=i.n(t_);let th=e=>{let{deposit:t,bank:i}=e,{amount:l,rate:a,bankName:s,bonusRate:r}=t,o=[{label:"Сумма",value:"".concat((0,td.jq)(l,2)," ₽"),id:1},{label:"Ставка",value:"".concat((0,td.jq)(a,2)).concat(r?" + "+(0,td.jq)(r,2):"","%"),id:2}];return(0,n.jsxs)("div",{className:tv().cardItem,children:[(0,n.jsxs)("div",{className:tv().cardHeader,children:[(0,n.jsx)("div",{className:tv().logo,children:(null==i?void 0:i.logo_mob)&&(0,n.jsx)(eX.default,{width:17,height:17,alt:s,src:null==i?void 0:i.logo_mob})}),(0,n.jsx)("div",{className:tv().title,children:s})]}),(0,n.jsx)("div",{className:tv().cardContentWrapper,children:o.map(e=>(0,n.jsxs)("div",{className:tv().cardContent,children:[(0,n.jsx)("div",{className:tv().label,children:e.label}),(0,n.jsx)("div",{className:tv().value,children:e.value})]},e.id))})]})},tf=e=>{let{pageUrl:t,banks:i,comboDeposits:l,amount:a,term:s,isTermInDays:r}=e,{totalProfit:o,averageRate:d,deposits:c}=l,m=(0,u.useRef)(null),p="deposits_".concat(t),_=l.deposits.map(e=>{let{id:t,amount:i,rate:l}=e;return"".concat(t,"_").concat(i,"_").concat(l)}).join("_");(0,tc.A)({itemRef:m,eventCategory:p,eventLabel:_,eventAction:"view_card_combo"});let v=[{label:"Средняя ставка",value:"".concat((0,td.jq)(d,2),"%"),id:1},{label:"Общий доход",value:"".concat((0,td.jq)(o,2)," ₽"),id:2}],h=(0,u.useCallback)(e=>{var t;return null!=(t=i.find(t=>t.bic===(0,tu.R)(e.bic)))?t:null},[i]),f=(0,u.useMemo)(()=>(0,P.VL)("/".concat(t,"/combo"),{amount:a,[r?"d_period":"term"]:s}),[a,r,t,s]);return(0,n.jsxs)(A(),{ref:m,className:tp().card,href:f,children:[(0,n.jsx)("span",{className:tp().tip,children:"Комбо"}),(0,n.jsxs)("div",{className:tp().infoWrapper,children:[(0,n.jsx)("div",{className:tp().title,children:"Два вклада выгоднее"}),(0,n.jsx)("div",{className:tp().infoContent,children:v.map(e=>(0,n.jsxs)("div",{className:tp().info,children:[(0,n.jsx)("div",{className:tp().label,children:e.label}),(0,n.jsx)("div",{className:tp().value,children:e.value})]},e.id))})]}),(0,n.jsx)("div",{className:tp().comboCardWrapper,children:c.map((e,t)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(th,{bank:h(e),deposit:e},e.id),!t&&(0,n.jsx)("span",{className:tp().plus})]}))}),(0,n.jsx)(eq.$,{className:tp().button,size:"xs",stretch:!0,onClick:()=>{(0,eC.oA)({eventLabel:_,eventCategory:"deposits_".concat(t),eventAction:"click_card_combo"})},children:"Подробнее"})]})};var tg=i(91762),tx=i(40723),tb=i.n(tx);let ty=(0,eY.default)(()=>i.e(5742).then(i.bind(i,15742)),{loadableGenerated:{webpack:()=>[15742]},ssr:!1}),tw=(0,tr.z)(4,tb().skeleton),tj=e=>{var t;let{banks:i,anotherDeposits:l,platformDeposits:r,filter:d,isOldUser:c,depositLists:m,className:p,bannerUrl:_,isHiddenPromo:v,existTag:h,isPlusFiveBonus:f,extraInfo:g,questions:x,pageUrl:b,comboDeposits:y,isSavingAccounts:w,showDepositGuide:j,adFoxConfig:C,showAdFoxBanner:D,isPlatformLoading:N,isNonPlatformLoading:k,showPlatformDeposits:A,newPlatformDeposits:T,disableNotifications:L,displayNonPlatform:P=!0,isTermInDays:S,showOnlyNonPromo:I}=e,M=(0,s.qK)(),O=(0,s.qF)("l"),{amountData:E,term:R,handleToggleModal:z}=d,[B,F]=(0,u.useState)(10),[$,W]=(0,u.useState)(10),{depositData:Q,openModal:Y,handleOpen:V,handleClose:H}=(0,to.S)({banks:i,anotherDeposits:l,platformDeposits:r,newPlatformDeposits:T});(0,u.useEffect)(()=>{window.postMessage({key:"depositListLoaded",value:!0},q.q.BASE_URL)},[]);let G=(0,ez.A)(),K=(0,u.useCallback)(()=>{(0,eD.e)(U.v6,{offset:G-48,position:"top"})},[G]);(0,u.useEffect)(()=>{N&&F(10),k&&W(10)},[k,N]);let[J,Z]=(0,u.useState)(m.platform.filter(e=>ts(e,v)));(0,u.useEffect)(()=>{Z(m.platform.filter(e=>ts(e,v)))},[m,v]);let ee="deposits_details_".concat(b,"_popup"),et=y&&y.deposits.length>1,ei=m.another.length>0,el=m.platform.length>0,en=h?A&&(el||N):A,ea=h?!!P&&(ei||k):!!P,es=!h&&(!el&&!N||!A),er=!h&&!ei&&!k,eo=m.platform.length>B&&!N,eu=m.another.length>$&&!k,ed=!!d.amountData.value&&!!d.term.value,ec=(0,ej.Ws)(M,!O),em=(0,u.useMemo)(()=>(0,n.jsx)(eG.J,{children:(0,n.jsx)(ty,{id:U.Af,qrBannerUrl:_,existTag:h,pageUrl:b,newMobileAd:!0})}),[_,h,b]),ep=(0,u.useCallback)(()=>w?null:j?(0,n.jsx)(e3.A,{pageUrl:b}):em,[em,w,b,j]),e_=(0,u.useCallback)(()=>c&&!w?null:em,[em,c,w]),ev=(0,u.useCallback)(()=>(0,n.jsx)(eK.r,{onChangeParams:z,dataQa:"not-found"}),[z]),eh=(0,u.useCallback)(()=>(0,n.jsxs)(a.m,{children:[(0,n.jsx)(eK.r,{onChangeParams:z,dataQa:"not-found"}),ep(),e_()]}),[z,e_,ep]);return(0,n.jsxs)("section",{id:U.nS,className:(0,o.A)(tb().container,p),children:[(0,n.jsxs)(eJ.w,{switchWhen:es&&er,switchTo:eh,transitionTime:200,children:[en&&(0,n.jsxs)(a.m,{children:[(0,n.jsx)(eQ.E,{as:"h2",className:tb().title,children:w?"Накопительные счета онлайн на Финуслугах":"Вклады онлайн от Финуслуг"}),(0,n.jsxs)(eJ.w,{switchWhen:es,switchTo:ev,transitionTime:200,children:[ec?(0,n.jsx)(e6,{isSavingAccount:w,isOldUser:c}):(0,n.jsx)(ta,{disableProfitNotification:w,disableNotifications:L}),(0,n.jsxs)(eJ.w,{switchWhen:N,switchTo:tw,transitionTime:200,children:[et&&(0,n.jsx)(tf,{pageUrl:b,banks:i,comboDeposits:y,amount:+E.value,term:+R.value,isTermInDays:S}),J.slice(0,B).map((e,t)=>(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)("div",{"data-qa":"platform",children:(0,n.jsx)(tg.x,{isPlatform:!0,onOpenDetailModal:V,className:(0,o.A)(tb().listItem,e.promo&&"click_kartochka_promo_neavtorizovannaya_zona"||"click_kartochka_obychnaya_neavtorizovannaya_zona"),data:e,isTermInDays:!0,baseUrl:"/".concat(b),isFullFilter:ed,showOnlyNonPromo:I},e.url+e.id)}),D&&t+1===Math.min(3,J.length)&&(0,n.jsx)(eH.$,{className:tb().adFox,params:X.LK,config:C})]},e.url)),(0,n.jsxs)(eW.f,{className:(0,o.A)(tb().buttonsRow,tb().spaced),children:[eo&&(0,n.jsx)(eq.$,{size:"s",onClick:()=>{(0,eC.oA)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__offers"}),F(e=>e+10)},className:tb().button,variant:"secondary",dataQa:"show-more-platform-button",children:"Еще предложения от Финуслуг"}),ei&&(0,n.jsx)(eq.$,{size:"s",variant:"white",onClick:K,dataQa:"show-nonplatform-deposits-button",children:"Предложения от банков"})]})]})]})]}),ep(),ea&&(0,n.jsxs)(a.m,{className:tb().anotherList,children:[(0,n.jsx)(eQ.E,{as:"h2",id:U.v6,className:tb().title,children:"Предложения от банков"}),(0,n.jsx)(eJ.w,{switchWhen:er,switchTo:ev,children:(0,n.jsxs)(eJ.w,{transitionTime:200,switchWhen:k,switchTo:tw,children:[m.another.slice(0,$).map((e,t)=>(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)("div",{"data-qa":"nonplatform",children:(0,n.jsx)(tg.x,{onOpenDetailModal:V,className:tb().listItem,data:e,isPlatform:!1,isTermInDays:S,baseUrl:"/".concat(b),isFullFilter:ed,showOnlyNonPromo:I})}),D&&t+1===Math.min(3,m.another.length)&&(0,n.jsx)(eH.$,{className:tb().adFox,params:X.$U,config:C})]},e.url)),eu&&(0,n.jsx)(eq.$,{size:"s",onClick:()=>{(0,eC.oA)({event:"data-event",eventCategory:"deposits_vklady",eventAction:"click_smotret_esche_predlozheniya__lidgen"}),W(e=>e+10)},className:(0,o.A)(tb().button,tb().spaced),variant:"secondary",dataQa:"show-more-nonplatform-button",children:"Еще предложения"})]})})]}),e_()]}),Q&&(0,n.jsx)(eV.A,{data:Q,isOldUser:c,isOpen:Y,onClose:H,extraInfo:g,isPlusFiveBonus:f,questions:x,depositSumm:E.value,showcaseBaseUrl:b,depositTerm:null!=(t=null==R?void 0:R.label)?t:"Любой",initialAmount:Number(E.value),initialTermInMonths:Number(R.value),eventCategory:ee,showOnlyNonPromo:I})]})};var tC=i(14686),tD=i.n(tC),tN=i(66337),tk=i(47557);let tA=null!=(l=(0,L.env)("NEXT_PUBLIC_BASE_URL"))?l:"*",tT=e=>(0,n.jsx)(A(),{...e}),tL=e=>{var t,i,l,r,o;let{stores:d,depositTags:c,depositTag:m,currencies:p,discounts:_,bounds:v,depositRegion:h,depositRegionLinks:f,defaultRegion:g,defaultTown:b,depositsTitle:y,depositsDescription:C,depositsSubtitle:D,initialAnotherDeposits:k,initialPlatformDeposits:A,allExtraInfo:L,banks:R,banksCount:$,initialShowcaseCrossLinks:q,questions:W,supportData:Q,journalData:Y,isPlatformShowcase:G,initialCurrentDepositsLength:J,initialAllDepositsLength:ea,initialComboDeposits:eo,initialQuote:ec,crossLinkLabels:ep,initialSeoText:ef,showOnlyNonPromo:eg=!1,requestedWithQueryFilters:eb}=e,eA=(0,s.qK)(),eq=(0,s.qF)("l"),{asPath:eW,push:eQ}=(0,H.T)(),eY=(0,T.usePathname)(),eV=(0,ez.A)(12,24),eH=(0,u.useMemo)(()=>eg?eh.O.VKLADY_OLD:eh.O.VKLADY,[eg]);(0,eB.k)({eventCategory:"deposits_".concat(eW),eventLabel:""});let{regions:eG,town_duplicates:eK}=(0,eR.e)(!1,{region:g,town:b}),{isOldUser:eJ,customerId:eZ,isLoading:eX}=(0,eP.Li)(),e0=(0,eU.I)(O.Js),e1=(0,eO.I)({bannersTitle:[O.UZ.DEPOSITS_ADVANTAGES,O.UZ.VKLADY,O.UZ.VKLADY_TAGS],queryParams:e0,stores:d}),[e5,e2]=(0,u.useState)(!eJ),[e4,e6]=(0,u.useState)(m),[e3,e8]=(0,u.useState)(),{town:e7,region:e9,handleSetTown:te,handleSetRegion:tt}=(e=>{let{pageName:t,regions:i,initialValues:l,isRegionPageEnabled:n=!0}=e,[a,s]=(0,u.useState)(!0),{asPath:r,replace:o}=(0,H.T)(),d=(0,u.useMemo)(()=>{var e;return null==r||null==(e=r.split("?")[0])?void 0:e.split("#")[0].split("/").slice(1)},[r]),c=(0,u.useMemo)(()=>d.find(e=>e.includes("teg_")),[d]),{region:m,town:p,handleSetRegion:_,handleSetTown:v}=(0,eE.N)(),h=(0,u.useCallback)(async function(){let{regionUrl:e,townUrl:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((!n||"teg_premium"===c)&&e)return;let l=r.indexOf("?"),a=r.indexOf("#"),s=l<a||a<0?"?":"#",u=(e=>{let{baseUrl:t,regionUrl:i="",tagUrl:l="",townUrl:n="",params:a,separator:s="?"}=e,r=(0,P.oq)(t,l,i?"reg_"+i:"",n===i?"":n);return a?r+s+a:r})({baseUrl:"/"+t,regionUrl:e,tagUrl:c,townUrl:i,params:r.split(s)[1],separator:s});u!==r&&o(u)},[r,c,t,n]);return(0,u.useEffect)(()=>{s(!1)},[]),(0,u.useEffect)(()=>{if(!r.length)return;let e=(e=>{try{let t=eN.A.getItem("user_region"),i=eN.A.getItem("user_town"),l=t&&!e.includes(t.url),n=i&&!e.includes(i.url)&&i.url!==(null==t?void 0:t.url);if(t&&(l||n))return{regionUrl:t.url,townUrl:null==i?void 0:i.url};if(t&&e.includes(t.url)&&1===Number(eN.A.getItemRaw("all_russia_selected")))return null}catch(e){console.log(e)}})(r);if(void 0!==e){e&&h(e);return}if(1===Number(eN.A.getItemRaw("all_russia_selected"))&&!(null==m?void 0:m.url.length)&&!(null==p?void 0:p.url.length)&&r.includes("reg_"))return void h();if(!(null==m?void 0:m.url.length)&&!(null==p?void 0:p.url.length)&&r.includes("reg_")){let{region:e,town:t}=((e,t)=>{let i=e.split("#")[0].split("?")[0].split("/"),l=i.findIndex(e=>e.includes("reg_")),n=l>-1?i[l]:null,a=l>-1?i[l+1]:null,s=n?t.find(e=>{let{url:t}=e;return t===n.slice(4)}):null,r=s&&a?s.towns.find(e=>{let{url:t}=e;return t===a}):null;return{region:s,town:r}})(r,i);e&&_(e),t&&v(t);return}},[r,h,null==m?void 0:m.url,null==p?void 0:p.url,i,_,v]),(0,u.useMemo)(()=>({region:n&&(m||a&&(null==l?void 0:l.region))||null,town:n&&(p||a&&(null==l?void 0:l.town))||null,handleSetRegion:_,handleSetTown:v}),[m,p,_,v,a,l])})({pageName:eH,regions:eG,initialValues:{region:g,town:b},isRegionPageEnabled:null==e4||null==(t=e4.region_page)?void 0:t.is_show}),{bankCrossLinks:ti}=(e=>{var t;let{tagUrl:i,regionUrl:l,townUrl:n,initialShowcaseCrossLinks:a}=e,s={tagUrl:i,regionUrl:l,townUrl:n},r=eS(s),o=r===a.requestUrl?a.data:void 0,{data:u,isLoading:d}=(0,er.C)(["showcaseCrossLinks",r],async()=>(await (0,S.px)(eS(s),null,{isMpScApi:!0})).data,{fallbackData:o,keepPreviousData:!1});return{bankCrossLinks:null!=(t=null==u?void 0:u.banks)?t:null,isLoading:d}})({...(e=>{var t,i,l,n,a;let{pathname:s,search:r}=(0,P.vx)(e),o=s.split("/"),u=new URLSearchParams(r),d=o.findIndex(e=>e.startsWith("reg_")),c=-1===d?void 0:o[d],m=-1===d?void 0:o[d+1];return{tagUrl:null!=(l=null!=(i=null==(t=o.find(e=>e.startsWith("teg_")))?void 0:t.slice(4))?i:u.get("tag"))?l:void 0,regionUrl:null!=(a=null!=(n=null==c?void 0:c.slice(4))?n:u.get("region"))?a:void 0,townUrl:m||u.get("town")||void 0}})(eW),initialShowcaseCrossLinks:q}),tl=(null==e4?void 0:e4.url)==="nakopitelnye",{terms:tn,isLoading:ta}=function(e){var t,i;let l=(0,u.useMemo)(()=>(0,em.OR)(),[]),n=null!=(i=null==l?void 0:l["auth.gtm_customer_id"])?i:void 0,{data:a,isLoading:s}=(0,er.C)(["deposit-terms",n],()=>(0,ed.Sl)(n),e),r=(0,u.useMemo)(()=>{var e,t=null==a||null==(e=a.data)?void 0:e.terms;let i=new Map;return null==t||t.forEach(e=>i.set(e.durationOfDays,ev(e))),e_.forEach(e=>i.set(e.durationOfDays,ev(e))),Array.from(i.values()).sort((e,t)=>e.durationOfDays-t.durationOfDays)},[null==a||null==(t=a.data)?void 0:t.terms]);return(0,u.useMemo)(()=>({isLoading:s,terms:r}),[s,r])}({disabled:tl,ssrLoader:!0}),ts=(0,u.useMemo)(()=>(e=>e.length?[X.DU[0],...e.map(e=>({value:e.durationOfDays,label:e.termLabel}))]:X.DU)(tn),[tn]),{isLoading:tr,products:to,productsWithIncreasedAmount:tu,productHint:td}=function(e){var t,i,l;let{filters:n,showOnlyNonPromo:a=!1,disabled:s}=e,{isOldUser:r,isLoading:o}=(0,eP.Li)(),{data:d,isLoading:c}=(0,er.C)(["deposits",n],()=>(0,ed.dd)({...n,isNewCustomer:!r}),{disabled:s||o||(0,ej.Wu)(n)});return(0,u.useMemo)(()=>{var e,t,i,l,n,s,r,u,m;let p=null!=(l=null==d||null==(e=d.data)?void 0:e.products)?l:[],_=null!=(n=null==d||null==(t=d.data)?void 0:t.productsWithIncreasedAmount)?n:[];return a&&(p=(null!=(u=null==d||null==(s=d.data)?void 0:s.products)?u:[]).filter(e=>!e.promo),_=(null!=(m=null==d||null==(r=d.data)?void 0:r.productsWithIncreasedAmount)?m:[]).filter(e=>!e.promo)),{products:p,productsWithIncreasedAmount:_,productHint:null==d||null==(i=d.data)?void 0:i.productHint,isLoading:c||o}},[o,c,null==d||null==(t=d.data)?void 0:t.productHint,null==d||null==(i=d.data)?void 0:i.products,null==d||null==(l=d.data)?void 0:l.productsWithIncreasedAmount,a])}({filters:e3,showOnlyNonPromo:eg,disabled:tl||ta}),[tc,tm]=(0,u.useState)(!1),tp=tc?tu:to,t_=(0,u.useMemo)(()=>R.reduce((e,t)=>({...e,[Number(t.bic)]:t}),{}),[R]),{nonPlatformDeposits:tv,isLoading:th}=eT({tagId:String(null!=(r=null==e4?void 0:e4.id)?r:""),banksByBic:t_,disabled:!(null==e4?void 0:e4.id)||!(null==(i=e4.filter)?void 0:i.displayNonPlatform)||G}),tf=(0,u.useMemo)(()=>{var e;return null==(e=c.find(e=>"all_offers"===e.url))?void 0:e.id},[c]),{nonPlatformDeposits:tg}=eT({tagId:String(null!=tf?tf:""),banksByBic:t_,disabled:!tf}),{oldSavingAccounts:tx,isLoading:tb}=function(e){let{data:t,isLoading:i}=(0,er.C)("old-saving-accounts",()=>eL(),e);return(0,u.useMemo)(()=>({oldSavingAccounts:null!=t?t:[],isLoading:i}),[t,i])}({disabled:!tl}),ty=(0,u.useMemo)(()=>(0,tN.M)({path:eW,tag:e4}),[eW,e4]),tw=(0,u.useCallback)(async e=>{await ex({tagUrl:e,depositTags:c,setTag:e6,regionId:null==e9?void 0:e9.region_id,townId:null==e7?void 0:e7.id}),eQ((0,ek.E)("deposits",{id:"",name:"",url:e},e9,e7,void 0,eH)||"/vklady")},[eQ,e9,e7,eH,c]),tC=function(e){let{banks:t,isNewCustomer:i,setFilters:l}=e,n=(0,u.useMemo)(()=>t.reduce((e,t)=>({...e,[String(t.id)]:t.bic}),{}),[t]);return(0,ei.YQ)(e=>{let{amount:t,term:a,sortType:s,withCapitalization:r,withMonthlyPercent:o,withPreferentialTermination:u,withRefill:d,activeBanks:c,withPartialWithdrawal:m}=e;l({amount:t>0?t:void 0,sort:el[s],term:(e=>{if(e)return{type:"DAY",value:Number(e)}})(a),withCapitalization:r||void 0,withMonthlyPayments:o||void 0,withPreferentialTermination:u||void 0,withPartialWithdrawal:m||void 0,withRefill:d||void 0,isNewCustomer:i,providerBICs:null==c?void 0:c.map(e=>n[e])})},500)}({banks:R,isNewCustomer:!eJ,setFilters:e8}),tL=!tl,[tP,tS]=(0,u.useState)(!1),tI=(0,tk.U)({tag:e4,currencies:p,banks:R,defaultValues:ty,isDiscount:e5,hasDynamicBonus:tP,sortLoading:(0,ej.Ws)(!tl,eX),termOptions:ts,isTermInDays:tL,showOnlyNonPromo:eg}),tM=tI.shouldFilterByAllOffers&&(null==tg?void 0:tg.length)?tg:tv,tO=(0,u.useRef)(void 0);(0,u.useEffect)(()=>{if(tl||!tI.clientSortType)return;let e=(e=>{if(e.clientSortType)return{amount:Number(e.amountData.value),term:Number(e.term.value),activeBanks:e.activeBanksValue,sortType:e.clientSortType,withCapitalization:e.withCapitalization,withMonthlyPercent:e.withMonthlyPercent,withPreferentialTermination:e.withPreferentialTermination,withPartialWithdrawal:e.withPartialWithdrawal,withRefill:e.withRefill}})(tI);if(e){let t;t=tO.current,Z()(e,t)||(tO.current=e,tC(e),tm(!1))}},[tI,tC,tl]);let tU=(0,u.useCallback)(e=>{if(Number(tI.amountData.value)!==e){if(tI.handleAmountChange(e),tI.amountData.handleChange(e),tO.current){let t={...tO.current,amount:e};tO.current=t,tC(t),tC.flush(),(0,eD.e)(U.nS,{offset:eV,position:"top",delay:200});return}tm(!0)}},[tI,tC,eV]),tE=(0,eI.Y)(),[tR,tz]=(0,u.useState)(h),[tB,tF]=(0,u.useState)(f);(0,u.useEffect)(()=>{(e=>{let{region:t,town:i,tag:l}=e;return(0,S.px)("/money_data/DepositRegion.json".concat(t?"?region="+t.url:"").concat(i?"&town="+i.url:"").concat(l?(t?"&":"?")+"tag_url="+l.url:""))})({region:e9,town:e7,tag:e4}).then(e=>{e.data&&!e.data.message&&tz(e.data)}),(e=>{let{region:t}=e;return(0,S.px)("/money_data/DepositRegion.json?region_links=1".concat(t?"&region="+t.url:""))})({region:e9}).then(e=>{var t;(null==(t=e.data)?void 0:t.region_links)&&tF(e.data.region_links)}),e4&&ex({tagUrl:null==e4?void 0:e4.url,depositTags:c,setTag:e6,regionId:null==e9?void 0:e9.region_id,townId:null==e7?void 0:e7.id})},[null==e9?void 0:e9.url,null==e9?void 0:e9.region_id,null==e7?void 0:e7.url,null==e4?void 0:e4.url]);let t$=(0,u.useCallback)((e,t)=>{eN.A.setItem("user_region",e?JSON.stringify(e):""),eN.A.setItem("user_town",t?JSON.stringify(t):""),tt(e),te(t||null)},[tt,te]),tq=function(e){var t,i,l,n;let{filter:a,filters:s,isDiscount:r,isTermInDays:o,withSavingAccounts:d,allOffers:c,newPlatformDeposits:m,platformDeposits:p,isPlusFiveBonus:_,isOldUser:v,anotherDeposits:h,bounds:f,banks:g,bankTowns:x,town:b,region:y,discounts:w,initialAnotherDeposits:j,initialPlatformDeposits:C,allExtraInfo:D,anotherDepositsInCount:N,getOnlyInitialData:k,specialDeposits:A,initialLeadGenDeposits:T,leadGenDeposits:L,initialAllDepositsLength:P,initialCurrentDepositsLength:S,calculateFilterAbilities:I,showOnlyNonPromo:M}=e,O=(i=!!d,l=a.amountData.value,n=null==s?void 0:s.amount,i?l:n?String(n):void 0),U=(0,u.useMemo)(()=>{var e,t,i,l;return{newPlatformDeposits:m,platformDeposits:p,isPlusFiveBonus:_,isOldUser:v,anotherDeposits:h,bounds:f,banks:g,bankTowns:x,town:b,region:y,discounts:w,initialAnotherDeposits:j,initialPlatformDeposits:C,allExtraInfo:D,anotherDepositsInCount:N,getOnlyInitialData:k,specialDeposits:A,initialLeadGenDeposits:T,leadGenDeposits:L,initialAllDepositsLength:P,initialCurrentDepositsLength:S,calculateFilterAbilities:I,allOffers:c,withSavingAccounts:d,shouldFilterByAllOffers:a.shouldFilterByAllOffers,filter:{amount:O,rate:a.rate,currency:String(a.currencyUnit),currencyCode:String(a.currency.value),withRefill:a.withRefill,filterAdditionalSettings:a.filterAdditionalSettings,importantDeposits:a.importantDeposits,initialSort:a.initialSort,order:a.increaseSort?ee.ZN.Desc:ee.ZN.Asc,sortType:a.sortType,isDiscount:r,term:(t=!!d,i=a.term.value,l=null==s||null==(e=s.term)?void 0:e.value,t||!o?i?Number(i):void 0:l),termUnit:!d&&o?"DAY":"MONTH",withCapitalization:a.withCapitalization,activeBanks:a.activeBanks?a.activeBanks.map(e=>String(e.value)):void 0,withMonthlyPercent:a.withMonthlyPercent,withPreferentialTermination:a.withPreferentialTermination},showOnlyNonPromo:M}},[O,a.rate,a.currencyUnit,a.currency.value,a.withRefill,a.filterAdditionalSettings,a.importantDeposits,a.initialSort,a.increaseSort,a.sortType,a.term.value,a.withCapitalization,a.activeBanks,a.withMonthlyPercent,a.withPreferentialTermination,a.shouldFilterByAllOffers,r,null==s||null==(t=s.term)?void 0:t.value,o,m,p,_,v,h,f,g,x,b,y,w,j,C,D,N,k,A,T,L,P,S,I,d,c,M]);return(0,u.useMemo)(()=>(0,et.U)(U),[U])}({initialAnotherDeposits:k,initialPlatformDeposits:A,platformDeposits:tx,anotherDeposits:tv,newPlatformDeposits:tp,bounds:v,isPlusFiveBonus:!eJ,isOldUser:eJ,filter:tI,isTermInDays:tL,filters:e3,banks:R,discounts:_,bankTowns:null,town:e7,region:e9,allExtraInfo:L,getOnlyInitialData:!eA,initialAllDepositsLength:ea,initialCurrentDepositsLength:J,calculateFilterAbilities:tl,withSavingAccounts:tl,isDiscount:e5,allOffers:tg,showOnlyNonPromo:eg});(0,u.useEffect)(()=>{e2(tl?tq.platform.some(e=>e.hasDiscount):!eJ),tS(!!tq.platform.find(e=>e.computeData&&e.computeData.bonusRate>0))},[tq,tl,eJ]);let{quote:tW}=(e=>{var t;let{tagUrl:i,regionUrl:l,townUrl:n,initialQuote:a}=e,{data:s,isLoading:r}=(0,er.C)(["quote",i,l,n],()=>es({tag:i,region:l,town:n}),{fallbackData:a,revalidateOnFocus:!1});return{quote:null!=(t=null!=s?s:a)?t:null,isLoading:r}})({tagUrl:null==e4?void 0:e4.url,regionUrl:null==e9?void 0:e9.url,townUrl:null==e7?void 0:e7.url,initialQuote:ec}),{seoText:tQ}=(e=>{let{url:t,initialSeoText:i}=e,{data:l,isLoading:n}=(0,er.C)(["seoText",t],()=>eu({url:t}),{fallbackData:i,revalidateOnFocus:!1});return{seoText:null!=l?l:null,isLoading:n}})({url:null!=eY?eY:"",initialSeoText:ef}),tY=1===tI.currency.id||tl,tV=tY?tq.currentLength:tq.another.length,tH=(0,u.useMemo)(()=>tR?(0,ey.d)({data:tq.another,platformDepositLists:tq.platform,regionLinks:tB,dataRegion:tR,regions:eG,banks:R,bankCrossLinks:ti,tag:e4,region:e9,town:e7,townDuplicates:eK,setRegion:t$,currencies:p,showOnlyNonPromo:eg,basePath:eH}):[],[tR,tq.another,tq.platform,tB,eG,R,ti,e4,e9,e7,eK,t$,p,eg,eH]),tG=(0,u.useMemo)(()=>(0,V.G)(e4),[e4]),tK=(0,u.useMemo)(()=>{if(!(null==e9?void 0:e9.url))return"";let e=76!==e9.id&&77!==e9.id&&(null==e7?void 0:e7.url)?null==e7?void 0:e7.url:"";return(0,P.oq)("/reg_".concat(e9.url),e)},[null==e9?void 0:e9.url,null==e9?void 0:e9.id,null==e7?void 0:e7.url]),tJ=(0,u.useMemo)(()=>(null==ep?void 0:ep.content)?{content:null==ep?void 0:ep.content.map(e=>({...e,tags:e.tags.map(e=>({...e,url:"".concat(e.url).concat(tK)}))}))}:{content:[]},[ep,tK]),{fitsForMonthlyPercentFilter:tZ,fitsForPreferentialTerminationFilter:tX,fitsForCapitalization:t0,fitsForRefill:t1}=tq;(0,eM.f)({disabled:!0,showMonthlyPercent:tZ,showPreferentialTermination:tX,showCapitalization:t0,showRefill:t1,filter:tI});let{comboDeposits:t5}=(e=>{let{amount:t,term:i,initialComboDeposits:l,customerId:n,tag:a,isTermInDays:s}=e,r=t&&i&&(null==a?void 0:a.url)!==E.i.nakop,[o,d]=(0,u.useState)(F(r?l:null,t));return(0,u.useEffect)(()=>{if(!r)return void d(null);B(async()=>{var e;let l;d(F(null!=(e=(await (l=(e=>{var t;let{amount:i,customerId:l,termInDays:n,termInMonths:a}=e;return{amount:i,term:{value:null!=(t=null!=n?n:a)?t:0,type:n?z.s.DAY:z.s.MONTH},...l&&{customerId:l}}})({amount:t,customerId:n,[s?"termInDays":"termInMonths"]:i}),(0,S.px)("/api/v1/deposits/combo",{method:"POST",body:JSON.stringify(l),headers:{"Content-Type":"application/json"}},{isNewApi:!0}))).data)?e:null,t))})},[n,t,i,r,s]),{comboDeposits:o}})({amount:+tI.amountData.value,term:+tI.term.value,initialComboDeposits:eo,tag:e4,customerId:eZ,isTermInDays:tL}),t2=(0,ej.Ws)(!eJ,!tl),t4=!!tE,t6=(e=>{let{isDepositsLoading:t,isCustomerLoading:i,isPlatformDepositsLoading:l,hasFilters:n,mounted:a,platformLoadingDisabled:s,requestedWithQueryFilters:r}=e;return a?t&&a||i||s&&(l||!n&&a):r})({isDepositsLoading:tb,isCustomerLoading:eX,isPlatformDepositsLoading:tr,hasFilters:!!e3,mounted:eA,platformLoadingDisabled:!tl,requestedWithQueryFilters:eb}),t3=(e=>{let{isSavingAccounts:t,isOldSavingAccountsLoading:i,isCustomerLoading:l,isTermsLoading:n,isPlatformDepositsLoading:a,hasFilters:s}=e;return t?!i&&!l:!(n||l||a||!s)})({isSavingAccounts:tl,isTermsLoading:ta,isCustomerLoading:eX,isPlatformDepositsLoading:tr,hasFilters:!!e3,isOldSavingAccountsLoading:tb}),t8=function(e){let{isMetaReady:t,banksCount:i,tag:l,region:n,town:a,depositLists:s,visibleCurrentLength:r}=e,o=(0,u.useMemo)(()=>(null==l?void 0:l.stats)?function(e){var t,i,l,n,a,s,r,o,u,d,c,m;let p=new Set([...null!=(r=null==e||null==(t=e.platform)?void 0:t.banksIds)?r:[],...null!=(o=null==e||null==(i=e.nonPlatform)?void 0:i.banksIds)?o:[]]).size;return{banksCount:p,bet:Math.max(null!=(u=null==e||null==(l=e.platform)?void 0:l.bet)?u:0,null!=(d=null==e||null==(n=e.nonPlatform)?void 0:n.bet)?d:0),depositsCount:(null!=(c=null==e||null==(a=e.platform)?void 0:a.prop)?c:0)+(null!=(m=null==e||null==(s=e.nonPlatform)?void 0:s.prop)?m:0)}}(l.stats).banksCount:i,[null==l?void 0:l.stats,i]),d=(0,u.useMemo)(()=>(0,en.I)({tag:l,region:n,town:a,depositLists:s,banksCount:o,depositsCount:r}),[o,s,n,l,a,r]),[c,m]=(0,u.useState)(d);return(0,u.useEffect)(()=>{t&&m(d)},[t,d]),c}({isMetaReady:t3,banksCount:$,tag:e4,region:e9,town:e7,depositLists:tq,visibleCurrentLength:tV}),{subtitle:t7,h1:t9,inRegion:ie}=t8,it=(0,u.useMemo)(()=>(e=>{let{isDefault:t,tag:i,h1:l,inRegion:n,basePath:a="/vklady"}=e,s=[{label:"Вклады",href:a}];if(!t&&n){var r;s.push({label:null!=(r=null==i?void 0:i.tag_name)?r:l,href:(0,P.oq)(a,"/teg_".concat(null==i?void 0:i.url))})}return s})({isDefault:tG,tag:e4,h1:t9,inRegion:ie,basePath:"/".concat(eH)}),[ie,tG,e4,t9,eH]),ii=(0,ew.z)({tagName:null==e4?void 0:e4.faq_title,inRegion:ie}),il=(null==tq?void 0:tq.notInitialDeposits)&&t3?t7:D;return(0,n.jsxs)("main",{className:tD().page,children:[(0,n.jsx)(K,{region:e9,town:e7,tag:e4,meta:t8,isMetaReady:t3,depositLists:tq,regionUrl:tK,currency:tI.currency.value,isOldUser:eJ,initialDescription:C,initialTitle:y,quote:tW}),(0,n.jsx)(a.m,{className:tD().mainContainer,fluid:!0,children:(0,n.jsx)(a.m,{children:(0,n.jsx)(e$.Y,{tag:e4,setTag:tw,h1:t9,region:e9,town:e7,subtitle:null!=il?il:"",length:eA?tV:J,data:tI,terms:ts,isTermsLoading:ta,withAdditional:!tq.boundsIsEmpty,isMobile:!eq,partnerId:null,isDiscount:e5,breadcrumbsPath:it,showDepositGuide:t2,isSavingAccounts:tl,showAdFoxBanner:t4,isTermInDays:tL,productHint:td,isLoading:tr,hasDynamicBonus:tP,onTipsApply:tU,disableLastHref:tG&&!ie,adFoxConfig:tE,showOnlyNonPromo:eg})})}),(0,n.jsx)(tj,{filter:tI,isDiscount:e5,isOldUser:eJ,banks:R,platformDeposits:tx,anotherDeposits:tM,depositLists:tq,adFoxConfig:tE,isMobile:!eq,bannerUrl:tG?e1[O.UZ.VKLADY]:null!=(o=e1[O.UZ.VKLADY_TAGS])?o:e1[O.UZ.VKLADY],isHiddenPromo:eJ,existTag:!tG,town:e7,region:e9,extraInfo:L,isPlusFiveBonus:!eJ,questions:W,pageUrl:eH,currentDepositsLength:eA?tq.currentLength:J,allDepositsLength:eA?tq.allLength:ea,comboDeposits:t5,isSavingAccounts:tl,showDepositGuide:t2,showAdFoxBanner:t4,isPlatformLoading:t6,isNonPlatformLoading:eA&&th,showPlatformDeposits:tY,newPlatformDeposits:null!=tp?tp:[],disableNotifications:(0,ej.Hn)(td),displayNonPlatform:null==e4||null==(l=e4.filter)?void 0:l.displayNonPlatform,isTermInDays:tL,showOnlyNonPromo:eg}),tW&&!e7&&!e9&&(0,n.jsx)(w,{className:tD().quote,quote:tW}),(0,n.jsx)(I.k,{journalData:Y,className:tD().grayBackground}),(0,n.jsx)(M.w,{supportData:Q,className:tD().grayBackground}),tQ&&(0,n.jsx)(N,{content:null==tQ?void 0:tQ.content,dataLayerPush:eC.oA,sectionTitle:"",blockTitle:null==tQ?void 0:tQ.title}),tJ&&(0,n.jsx)(x,{labelsData:tJ,sectionTitle:"Вклады, которые могут вас заинтересовать",href:"/".concat(eH),blockTitle:"",dataLayerPush:eC.oA}),(0,n.jsx)(j.Y,{sectionTitle:ii,Link:tT,dataLayerPush:eC.oA,questions:tH,eventCategory:"deposits_support_block",href:(0,P.oq)(tA,"help"),checkAllText:eq?"Читать все вопросы про вклады":"Все вопросы про вклады",tagTitle:"h3"}),(0,n.jsx)(eF.M,{data:tI,isDiscount:e5,isMobile:!eq,terms:ts,depositsLength:tV,withAdditional:!tq.boundsIsEmpty,partnerId:null,showMonthlyPercent:tZ,showPreferentialTermination:tX,showCapitalization:t0,showRefill:t1,hasDynamicBonus:tP,withCapitalizationTittle:"Капитализация",withRefillTitle:"Пополнение",showOnlyNonPromo:eg})]})}},34724:(e,t,i)=>{"use strict";i.d(t,{a:()=>o});var l=i(95155),n=i(69465),a=i(2821),s=i(49663),r=i.n(s);function o(e){return(0,l.jsx)(n.E,{...e,className:(0,a.A)(r().caption,e.className)})}},36552:(e,t,i)=>{"use strict";function l(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return l}}),i(95155),i(47650),i(8567),i(77278)},38907:(e,t,i)=>{"use strict";i.d(t,{c:()=>n});var l=i(1591);let n=e=>{let{profit:t,bonusProfit:i,terms:n,isPlatform:a,isCapitalization:s,isSavingAccount:r}=e;if(!a)return s&&!r?"Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка.\nДополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее.":null;if(!n)return;if(!t||!i)return n;let o=(0,l.up)(t),u=(0,l.up)(i);return"• доход от банка: ".concat(o,"\n• бонус от Финуслуг: ").concat(u,"\n\n").concat(n)}},40723:e=>{e.exports={container:"DepositsList_container__JdzB6",title:"DepositsList_title__7dAwJ",disclaimer:"DepositsList_disclaimer__XpcXF",listItem:"DepositsList_listItem__z4ODF",skeleton:"DepositsList_skeleton__JEeth",listTitle:"DepositsList_listTitle__j8kD5",spaced:"DepositsList_spaced__Qz9G8",button:"DepositsList_button__Y4Un_",buttonsRow:"DepositsList_buttonsRow__S01KD",adFox:"DepositsList_adFox__UUPeB",subTitle:"DepositsList_subTitle__oD6TQ",anotherList:"DepositsList_anotherList__xXYKd"}},44427:(e,t,i)=>{Promise.resolve().then(i.bind(i,87015)),Promise.resolve().then(i.bind(i,49155)),Promise.resolve().then(i.t.bind(i,41402,23)),Promise.resolve().then(i.bind(i,75937)),Promise.resolve().then(i.bind(i,31623))},46186:e=>{e.exports={notifications:"Notifications_notifications__JTggi"}},46518:e=>{e.exports={additionalTips:"AdditionalTipsList_additionalTips__z_e1N",tag:"AdditionalTipsList_tag__OjzTl"}},49663:e=>{e.exports={caption:"TextCaption_caption__TOL53"}},53414:e=>{e.exports={notification:"Notification_notification__9eoLP",textBlock:"Notification_textBlock__L95fL",title:"Notification_title__3pGiN",caption:"Notification_caption__vEbpd",closeIcon:"Notification_closeIcon__UTaKl"}},58016:(e,t,i)=>{"use strict";function l(e){return e.startsWith("0")?e.replace("0",""):e}i.d(t,{R:()=>l})},64419:e=>{e.exports={depositCard:"DepositCard_depositCard__BSk6a",tag:"DepositCard_tag__kGJab",white:"DepositCard_white__DvXfN",header:"DepositCard_header__M8Gz5",nameWrapper:"DepositCard_nameWrapper__nrzkX",logo:"DepositCard_logo__u8YGh",logoPlaceholder:"DepositCard_logoPlaceholder__cs5Kl",text:"DepositCard_text__C4cvk",bankName:"DepositCard_bankName__Trjsx",name:"DepositCard_name__Yy7_2",content:"DepositCard_content__61z5G",row:"DepositCard_row__e7_Oe","cols-2":"DepositCard_cols-2__oE7wD",divider:"DepositCard_divider__UPE0W",columnValue:"DepositCard_columnValue__WqSFy",termValue:"DepositCard_termValue__1jktz",margined:"DepositCard_margined__ONtRE",termTitle:"DepositCard_termTitle__baOgb",termCaption:"DepositCard_termCaption__6YAU1",label:"DepositCard_label__3LcRI",caption:"DepositCard_caption__xsq1B",buttons:"DepositCard_buttons__uOQdR",tags:"DepositCard_tags__k2ffG",red:"DepositCard_red__pqGB1",green:"DepositCard_green__C_yJ5",orange:"DepositCard_orange__6bvpI",purple:"DepositCard_purple__HYuGL",blue:"DepositCard_blue__gS0cj",hint:"DepositCard_hint__medrL",desktop:"DepositCard_desktop__u2ZgC",tablet:"DepositCard_tablet__BQYl1","mobile-tablet":"DepositCard_mobile-tablet__1_Zxz",mobile:"DepositCard_mobile__eIDxe",aligned:"DepositCard_aligned__vBy0J"}},66337:(e,t,i)=>{"use strict";i.d(t,{M:()=>s});var l=i(1410),n=i(98591),a=i(15520);let s=e=>{var t,i,s,r;let{tag:o,path:u}=e,d=(0,a.$)(u),c=String(d.amount),m=String(d.period),p=String(d.term),_=d.currency?String(d.currency):void 0,v={term:0,amount:"0",currencyCode:"RUB",withRefill:!1,withCapitalization:!1,withMonthlyPercent:!1,withPreferentialTermination:!1,withPartialWithdrawal:!1},h=(0,l.V)(null==o||null==(t=o.filter)?void 0:t.currency);return(null==o?void 0:o.filter)&&(v.term=null!=(s=null==(i=o.filter.term.values)?void 0:i[0])?s:null===o.filter.term.from||isNaN(Number(o.filter.term.from))?v.term:Number(o.filter.term.from),v.currencyCode=(0,n.O)(h).code,v.withRefill=!!o.filter.refill,v.withCapitalization=1===o.filter.interest_capitalization,v.withMonthlyPercent=!!o.filter.interestsMonthly,v.withPreferentialTermination=!!o.filter.earlyTermination,v.amount=String(null!=(r=o.filter.amount)?r:v.amount),v.withPartialWithdrawal=!!o.filter.partial_withdrawal),c&&!isNaN(+c)&&(v.amount=c),m&&!isNaN(+m)&&(v.term=+m),p&&!isNaN(+p)&&(v.term=+p),_&&(0,n.O)(_).code&&(v.currencyCode=(0,n.O)(_).code),v}},67909:(e,t,i)=>{"use strict";i.d(t,{default:()=>n.a});var l=i(86278),n=i.n(l)},75542:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});var l=i(35138),n=i.n(l),a=i(12115);function s(e){let{filter:t,showCapitalization:i,showMonthlyPercent:l,showPreferentialTermination:s,showRefill:r,disabled:o=!1}=e,{withCapitalization:u,withMonthlyPercent:d,withPreferentialTermination:c,withRefill:m,handleWithCapitalizationChange:p,handleWithMonthlyPercentChange:_,handleWithPreferentialTerminationChange:v,handleWithRefillChange:h}=t,f=(0,a.useMemo)(()=>({withCapitalization:u,withMonthlyPercent:d,withPreferentialTermination:c,withRefill:m}),[u,d,c,m]),g=(0,a.useRef)(f);(0,a.useEffect)(()=>{if(!o){if(!n()(g.current,f)){g.current=f;return}c&&!s&&v(!1),d&&!l&&_(!1),u&&!i&&p(!1),m&&!r&&h(!1)}},[o,f,p,_,v,h,i,l,s,r,u,d,c,m])}},78410:()=>{},81326: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"}},84112:()=>{},86278:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let l=i(28140)._(i(1150));function n(e,t){var i;let n={};"function"==typeof e&&(n.loader=e);let a={...n,...t};return(0,l.default)({...a,modules:null==(i=a.loadableGenerated)?void 0:i.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91762:(e,t,i)=>{"use strict";i.d(t,{x:()=>Q});var l=i(95155),n=i(76048),a=i(69465),s=i(47913),r=i(12115),o=i(1591),u=i(53548),d=i(91482),c=i(36631),m=i(73055),p=i(44548),_=i(69563),v=i(2821),h=i(8186),f=i.n(h),g=i(15239),x=i(34724),b=i(72908),y=i(66869),w=i(55670),j=i(64419),C=i.n(j);let D={$:"USD","€":"EUR","\xa5":"JPY","₣":"CHF","\xa3":"GBP","₽":"RUB"};function N(e){let{children:t,...i}=e,n=(0,r.useCallback)(e=>{e.target instanceof HTMLElement&&"a"===e.target.tagName.toLowerCase()||e.preventDefault()},[]);return(0,l.jsx)("div",{onClick:n,...i,children:t})}function k(e){let{bic:t,bankName:i,name:n,className:s}=e;return(0,l.jsxs)("div",{className:(0,v.A)(C().header,s),children:[t?(0,l.jsx)(g.default,{unoptimized:!0,src:(0,w.z)(t),alt:null!=i?i:"Логотип банка",className:C().logo,width:30,height:30,"data-qa":"bank-logo"}):(0,l.jsx)("div",{className:C().logoPlaceholder}),(0,l.jsxs)("div",{className:C().nameWrapper,children:[(0,l.jsx)(a.E,{className:(0,v.A)(C().text,C().bankName),weight:"medium",dataQa:"bank-name",children:i}),(0,l.jsx)(x.a,{className:(0,v.A)(C().text,C().name),dataQa:"deposit-name",children:n})]})]})}function A(e){let{rate:t,bonusRate:i,rateTip:s,isFloatingRate:r,rateLink:u,rateLinkLabel:d}=e,c=i?"Ставка\xa0+\xa0бонус\xa0Финуслуг":"Ставка";return(0,l.jsxs)("div",{className:C().columnValue,children:[t&&(0,l.jsxs)(a.E,{weight:"medium",dataQa:"rate",className:C().label,children:[r?"до ":"",(0,o.CE)(t.toFixed(2)),i?"\xa0+\xa0".concat((0,o.CE)(i.toFixed(2))):""]}),s?(0,l.jsxs)(N,{children:[(0,l.jsx)(m.C,{className:C().hint,text:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:s}}),dataQa:"rate-hint",footer:u&&d&&(0,l.jsx)("a",{href:u,target:"_blank",children:d}),children:(0,l.jsxs)(x.a,{className:(0,v.A)(C().aligned,C().caption),dataQa:"rate-caption",children:[c,(0,l.jsx)(n.KYF,{className:"ml-1"})]})})," "]}):(0,l.jsx)(x.a,{className:(0,v.A)(C().aligned,C().caption),dataQa:"rate-caption",children:c})]})}function T(e){let{profit:t,profitTerm:i,bonusProfit:s,currencyUnit:r,minAmount:u,fixedAmount:d}=e,c=r?D[r]:void 0,m=c?{currencyCode:c}:void 0;if(!t&&!u&&!d)return null;if(t){let e=i?"за ".concat(i.value,"\xa0").concat((0,_.td)(i.value,...b.eV[i.type])):"";return(0,l.jsxs)("div",{className:C().columnValue,children:[(0,l.jsxs)(a.E,{weight:"medium",className:(0,v.A)(C().aligned,C().green,C().label),dataQa:"amount",children:[(0,l.jsx)(n.QAy,{}),"\xa0",(0,o.up)(t+(null!=s?s:0),m)]}),(0,l.jsxs)(x.a,{className:C().caption,dataQa:"amount-caption",children:["Доход ",s?"с бонусом":""," ",e]})]})}let p=d?(0,o.up)(d,m):"от ".concat((0,o.up)(null!=u?u:0,m));return(0,l.jsxs)("div",{className:C().columnValue,children:[(0,l.jsx)(a.E,{weight:"medium",dataQa:"amount",className:C().label,children:p}),(0,l.jsx)(x.a,{className:C().caption,dataQa:"amount-caption",children:"Сумма"})]})}function L(e){let{minTerm:t,className:i,isMobile:n,isFixedTerm:s}=e;if(!t)return null;let{termString:r}=(0,y.c)(t,{form:s?"nominative":"genitive",prefix:s?void 0:"от",isLadderDeposit:e.isLadderDeposit});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:(0,v.A)(C().termValue,C().margined,i),children:[(0,l.jsx)(x.a,{className:C().termCaption,dataQa:"term-caption",children:"Срок"}),(0,l.jsx)(a.E,{weight:"medium",className:C().termTitle,dataQa:"term",children:r})]}),n&&(0,l.jsx)(c.c,{className:(0,v.A)(C().divider,i)})]})}function P(e){let{onButtonClick:t,onInfoClick:i,className:a}=e;return(0,l.jsxs)("div",{className:(0,v.A)(C().buttons,a),children:[(0,l.jsx)(u.$,{stretch:!0,size:"s",onClick:t,dataQa:"detail-button",children:"Подробнее"}),(0,l.jsx)(N,{children:(0,l.jsx)(u.$,{size:"s",appearance:"outline",shape:"icon",iconLeft:(0,l.jsx)(n.S2Q,{}),onClick:i,dataQa:"info-button"})})]})}let S=(0,r.memo)(function(e){let{tags:t,href:i,className:n,dataQa:a,onCardClick:s}=e,r=[!!e.profit||!!e.minAmount||!!e.fixedAmount,!!e.rate,!!e.minTerm].filter(Boolean).length;return(0,l.jsxs)(d.Z,{className:(0,v.A)(C().depositCard,n),onClick:s,dataQa:a,as:"a",href:null!=i?i:"",children:[(0,l.jsx)(k,{...e,className:C().mobile}),(0,l.jsxs)("div",{className:C().content,children:[(0,l.jsxs)("div",{className:(0,v.A)(C().row,2===r&&C()["cols-2"]),children:[(0,l.jsx)(k,{...e,className:C().desktop}),(0,l.jsx)(A,{...e}),(0,l.jsx)(T,{...e}),(0,l.jsx)(L,{...e,className:C().tablet}),(0,l.jsx)(P,{...e,className:C().desktop})]}),(0,l.jsx)(c.c,{className:C().divider}),(0,l.jsx)(L,{...e,className:C()["mobile-tablet"],isMobile:!0})]}),t&&(0,l.jsx)("div",{className:C().tags,children:t.map(e=>{let t="left"===e.position?{iconLeft:e.icon}:{iconRight:e.icon},i=0===e.text.trim().length;return(0,l.jsx)(p.v,{className:(0,v.A)(C().tag,e.backGround&&C()[e.backGround]),label:e.text,onIconRightClick:i?f():void 0,rounded:!0,dataQa:"tag",...t},e.text)})}),(0,l.jsx)(P,{...e,className:C().mobile})]})});var I=i(94586),M=i(6425),O=i(97390),U=i(38907),E=i(31633),R=i(37465),z=i(80333),B=i(5076),F=i(78916),$=i(26497),q=i.n($);let W=e=>{var t,i,o,u,d,c;let{baseUrl:m="/vklady",className:p,data:_,events:v={},isPlatform:h=!1,isTermInDays:f=!1,params:g,paramsType:x="hash",isFullFilter:b,showOnlyNonPromo:y=!1,useDepositCurrency:w=!1,onOpenDetailModal:j}=e,C=h?"offers":"lidgen",{clickItemAction:D="click__card__".concat(C),clickMoreButtonAction:N,eventCategory:k="deposits_vklady",showItemAction:A="show__card__".concat(C)}=v,T=(0,r.useRef)(null),L=(0,B.t)(_,h,y);(0,F.A)({eventAction:A,eventCategory:k,eventLabel:String(_.id),itemRef:T});let P=(0,r.useMemo)(()=>{var e,t;return(0,I.A)({amount:null!=(t=_.rateAmount)?t:_.amount,baseUrl:m,depositUrl:_.url,isBound:_.isBound,isTermInDays:f,params:g,paramsType:x,term:(0,R.w3)(f,null==(e=_.computeData)?void 0:e.termDays,_.term)})},[m,_.amount,null==(t=_.computeData)?void 0:t.termDays,_.isBound,_.rateAmount,_.term,_.url,f,g,x]),$=(0,r.useCallback)(()=>{var e;e=_.id,(0,z.s)(e,k,D)},[D,_.id,k]),W=(0,r.useCallback)(()=>{var e;return e=_.id,(0,z.s)(e,k,"click_name_deposit__".concat(C)),null==j?void 0:j({isPlatform:h,href:P,depositItem:_})},[_,k,P,h,j,C]),Q=(0,r.useCallback)(()=>(0,z.s)(_.id,k,null!=N?N:""),[N,_.id,k]),Y=(0,r.useMemo)(()=>(0,E.A)({data:_,isPlatform:h,renderTip:e=>(0,l.jsx)(s.m,{text:e.description,style:{whiteSpace:"pre-wrap"},dataQa:"tag-tip",hideWhenOutOfBounds:!0,children:(0,l.jsxs)(a.E,{className:q().detail,children:[e.title,(0,l.jsx)(n.KYF,{size:16})]})}),newDesign:!0}),[_,h]),V=!!_.asSavingAccount||_.type===O.ch.SavingAccount,H=(0,r.useMemo)(()=>((e,t,i)=>{if(t){if(i){var l;return{profit:null==(l=e.computeData)?void 0:l.profit,minAmount:e.rateAmount,fixedAmount:0}}return{profit:0,minAmount:0,fixedAmount:e.rateAmount}}return e.isNotAmount?{profit:0,minAmount:e.rateAmount,fixedAmount:0}:{profit:0,minAmount:0,fixedAmount:0}})(_,b,h),[_,b,h]),G=(0,r.useMemo)(()=>((e,t,i)=>{var l,n;if(i)return((e,t)=>{if(t){var i,l;return{profitTerm:{value:null!=(l=null==(i=e.computeData)?void 0:i.termDays)?l:0,type:M.s.DAY},minTerm:null,isFixedTerm:!1}}return e.isTermEmpty?{profitTerm:null,minTerm:{value:0,type:M.s.TERMLESS},isFixedTerm:!1}:{profitTerm:null,minTerm:null,isFixedTerm:!1}})(e,t);if(e.isLadderDeposit)return(e=>{var t,i;return{profitTerm:null,minTerm:{value:null!=(i=null==(t=e.computeData)?void 0:t.termDays)?i:e.term?Number(e.term):0,type:M.s.DAY},isFixedTerm:!0}})(e);if(e.isFixedTerm)return(e=>{var t,i;return{profitTerm:null,minTerm:{value:null!=(i=null==(t=e.computeData)?void 0:t.termDays)?i:0,type:M.s.DAY},isFixedTerm:!0}})(e);let a={value:null!=(n=null==(l=e.computeData)?void 0:l.termDays)?n:0,type:M.s.DAY};return t?{profitTerm:a,minTerm:null,isFixedTerm:!1}:e.isTermEmpty?{profitTerm:null,minTerm:a,isFixedTerm:!1}:{profitTerm:null,minTerm:null,isFixedTerm:!1}})(_,b,V),[_,b,V]),K=(0,r.useMemo)(()=>{var e,t,i;return(0,U.c)({profit:null==(e=_.computeData)?void 0:e.profit,bonusProfit:null==(t=_.computeData)?void 0:t.bonus,terms:null==L?void 0:L.terms,isPlatform:h,isCapitalization:null!=(i=_.isCapitalization)&&i,isSavingAccount:_.type===O.ch.SavingAccount})},[null==(i=_.computeData)?void 0:i.bonus,null==(o=_.computeData)?void 0:o.profit,_.isCapitalization,_.type,null==L?void 0:L.terms,h]);return(0,l.jsx)("div",{"data-testid":"deposits-item",className:p,ref:T,children:(0,l.jsx)(S,{bankName:_.bankName,bic:_.bic,bonusProfit:null==(u=_.computeData)?void 0:u.bonus,bonusRate:null==(d=_.computeData)?void 0:d.bonusRate,className:p,currencyUnit:w?_.currencyUnit:void 0,dataQa:"deposits-item",href:P,id:_.id,isFloatingRate:"MAX"===_.rateType||V||_.isFloating,name:_.name,rate:null==(c=_.computeData)?void 0:c.effectiveRate,rateTip:K,rateLink:null==L?void 0:L.link,rateLinkLabel:null==L?void 0:L.linkLabel,isLadderDeposit:_.isLadderDeposit,tags:Y,...H,...G,onButtonClick:Q,onInfoClick:W,onCardClick:$})})};W.displayName="DepositsItem";let Q=(0,r.memo)(W)},97468:(e,t,i)=>{"use strict";i.d(t,{Y:()=>n});var l=i(12115);let n=()=>{let[e,t]=(0,l.useState)();return(0,l.useEffect)(()=>{window&&window.Ya&&window.yaContextCb&&t({ownerId:406293,Ya:window.Ya,yaContextCb:window.yaContextCb})},[]),e}}},e=>{e.O(0,[2545,4653,3177,25,6373,6850,5239,5854,495,6799,3116,635,1521,3151,2876,5383,4353,6272,8918,235,5644,5737,4568,846,1884,3837,6659,5303,1150,7206,8441,1255,7358],()=>e(e.s=44427)),_N_E=e.O()}]);