(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1615],{30754:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var i=n(57437),l=n(75461),a=n(54365),o=n(2265),r=n(8289),u=n.n(r);let s=(t,e)=>{if(!t.length)return[];let n=[{label:"Главная",href:"/"},...t];return e&&(n[n.length-1].href=void 0),n};var d=(0,o.memo)(function(t){let{items:e=[],className:n,disableLastHref:r=!0,...d}=t,c=(0,o.useMemo)(()=>s(e,r),[e,r]);return(0,i.jsx)(l.Oo,{...d,items:c,className:(0,a.Z)(u().breadcrumbs,n),isMobile:!1,isFullView:!0})})},15037:function(t,e,n){"use strict";n.d(e,{CpaParams:function(){return f},default:function(){return m}});var i=n(57437),l=n(16715),a=n(52848),o=n(72857),r=n(2265),u=n(14862),s=n(34039),d=n(38050),c=n(30660);function v(){return null}function p(t){let{children:e,onError:n}=t;return(0,i.jsx)(c.SV,{FallbackComponent:v,onError:n,children:e})}let _="".concat(u.publicConfig.ASSETS_URL,"/mp-assets");function m(t){let{children:e,aggregatorIds:n,headerData:s,footerData:c}=t,v=(0,r.useCallback)((t,e)=>{console.error("Header crashed:",t),console.error("Header component stack:",e.componentStack)},[]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f,{aggregatorIds:n}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p,{onError:v,children:s&&(0,i.jsx)(o.H,{data:s,showcaseUrl:u.publicConfig.BASE_URL,minioUrl:_,lkUrl:u.publicConfig.LK_URL})}),e,c&&(0,i.jsx)(a.F,{data:c,showcaseUrl:u.publicConfig.BASE_URL,minioUrl:_})]}),(0,i.jsx)(d.h,{children:(0,i.jsx)(l.z,{})})]})}function f(t){return(0,s.Z)(t.aggregatorIds),null}},10330:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(77337);function l(t){let{params:e,depositUrl:n,amount:l,term:a,isBound:o,baseUrl:r,paramsType:u,isTermInDays:s}=t;if(o)return n;let d="hash"===u?(0,i.iU)("/".concat(n),(0,i.Oh)({amount:l,...s?{d_period:a}:{period:a}})):(0,i.jb)("/".concat(n),{amount:l,period:a}),c=e?(0,i.jb)(d,e):d;return(0,i.xn)(r,c)}},32113:function(t,e,n){"use strict";n.d(e,{B:function(){return R}});var i,l,a=n(57437),o=n(80684),r=n(33145),u=n(2265),s=n(11359),d=n(75461),c=n(5426),v=n(54365),p=n(77051),_=n.n(p);function m(){}(i=l||(l={})).button="button",i.detail="detail",i.compare="compare",i.favorites="favorites",i.share="share",i.open="open";let f=t=>{let{icon:e,href:n,target:i,title:o,titleCaption:r,advantageAmountFrom:s,advantageBonus:p,advantageAmountTo:f,advantageInterestAccrual:b,tags:y,className:x,onOpenDetailModal:N,onDetailClick:A,onButtonClick:I,onOpenClick:k,buttonText:j="Подробнее",wide:P=!1,lkUrl:L}=t,C=[s,p,f,b].filter(t=>"string"==typeof(null==t?void 0:t.name)?null==t?void 0:t.name.length:null==t?void 0:t.name),T=(0,u.useCallback)(t=>{let{children:e}=t;return(null==n?void 0:n.length)?(0,a.jsx)(d.rU,{href:n||"",target:i,className:(0,v.Z)(_().plate,x),children:e}):(0,a.jsx)("div",{className:(0,v.Z)(_().plate,x),children:e})},[x,n,i]),S=(0,u.useCallback)(t=>{N&&(t.preventDefault(),t.stopPropagation(),N(l.detail))},[N]),w=(0,u.useCallback)(function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return n=>{switch(e&&(n.preventDefault(),n.stopPropagation()),t){case l.detail:return null==A?void 0:A(l.detail);case l.button:return null==I?void 0:I(l.button);case l.open:return null==k?void 0:k(l.open)}}},[I,A,k]);return(0,a.jsx)(T,{children:(0,a.jsxs)("div",{className:_().body,children:[(0,a.jsxs)("div",{className:_().left,children:[(0,a.jsxs)("div",{className:_().header,children:[(0,a.jsxs)("div",{className:_().titleWrapper,children:[(0,a.jsx)("div",{className:(0,v.Z)(_().logoIcon),children:e}),(0,a.jsxs)("div",{className:(0,v.Z)(_().title,{[_().noneCaption]:!(null==r?void 0:r.length)}),children:[!!(null==r?void 0:r.length)&&(0,a.jsx)("button",{title:r,onClick:S,className:(0,v.Z)(_().caption,{[_().clickable]:N}),children:r}),(0,a.jsx)("p",{className:_().logoTitle,title:o,children:o})]})]}),!!(null==C?void 0:C.length)&&(0,a.jsx)("div",{className:(0,v.Z)(_().advantagesList,{[_().wide]:P,[_().shortList]:P&&C.length<3}),children:C.map(t=>(0,a.jsxs)("div",{className:(0,v.Z)(_().advantageItem,{[_().longItem]:C.length<3}),children:[(null==t?void 0:t.tooltipText)?(0,a.jsx)(c.qQ,{text:t.tooltipText,keyValue:(null==t?void 0:t.caption)+(null==t?void 0:t.name),iconClassName:_().iconClassName,children:(0,a.jsx)("span",{className:_().advantageItemCaption,children:null==t?void 0:t.caption})}):(0,a.jsx)("span",{className:_().advantageItemCaption,children:null==t?void 0:t.caption}),(0,a.jsx)("div",{className:_().advantageItemTitle,children:t.name})]},t.caption))}),(0,a.jsx)(g,{isMobile:!0,handleButtonClick:w})]}),(0,a.jsx)("div",{className:_().tagsList,children:y.map(t=>{let e="left"===t.position?{iconLeft:t.icon}:{iconRight:t.icon},n=0===t.text.trim().length;return(0,a.jsx)(d.Vp,{className:(0,v.Z)(_().tag,t.backGround&&_()[t.backGround]),label:t.text,onIconRightClick:n?m:void 0,rounded:!0,...e},t.text)})})]}),(0,a.jsx)("div",{className:_().right,children:(0,a.jsx)("div",{className:_().buttonsWrapper,children:(0,a.jsxs)("div",{className:_().block,children:[(0,a.jsx)(g,{isMobile:!1,handleButtonClick:w}),(0,a.jsxs)("div",{className:_().column,children:[(0,a.jsx)(d.zx,{className:(0,v.Z)(_().button,_().appButton,{[_().wide]:P}),size:"xs",onClick:()=>w(l.button,!1),children:j}),L&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h,{href:L,onClick:w}),(0,a.jsx)(h,{href:L,isMobile:!0,onClick:w})]})]})]})})})]})})},g=t=>{let{isMobile:e,handleButtonClick:n}=t;return(0,a.jsx)(d.zx,{className:(0,v.Z)(_().button,_().detailButton,{[_().mobile]:e,[_().desktop]:!e}),onClick:n(l.detail),iconLeft:(0,a.jsx)(o.IconFdsInfoCircleO,{}),shape:"icon",variant:"secondary",size:"xs"})},h=t=>{let{isMobile:e,href:n,onClick:i}=t;return(0,a.jsx)(d.zx,{as:"a",href:n,target:"_blank",size:"xs",variant:e?"secondary":"white",className:(0,v.Z)(_().openButton,e?_().mobile:_().desktop),onClick:i(l.open),children:"Оформить сейчас"})};f.displayName="Plate";var b=n(27023),y=n(2674),x=n(16639),N=n(13425),A=n(54328),I=n(58864),k=n(37514),j=n(14441),P=n(37328),L=n(99193),C=n(64554),T=n(94445),S=n.n(T),w=n(10330);let D=(t,e,n,i,l)=>{(0,k.L)(t,l?e:"deposits_details_vklady_popup",l?"click_name_deposit__".concat(n):i)},E=(t,e,n,i,l)=>{if(null==t?void 0:t.target){let l=t.target;if(l.classList.contains("finkit-button")||l.classList.contains("finkit-button__label")){(0,k.L)(e,n,"click__button__more__".concat(i));return}}(0,k.L)(e,n,l)},R=(0,u.memo)(t=>{var e,n,i,l,d;let{className:c,data:v,isPlatform:p=!1,onOpenDetailModal:_,baseUrl:m="/vklady",params:g,hideBonusTooltip:h=!1,events:T={},buttonText:R="Подробнее",partnerId:B=null,wide:U=!1,paramsType:O="hash",isTermInDays:M=!1,showOpenButton:Z=!1}=t,F=p?"offers":"lidgen",{eventCategory:z="deposits_vklady",clickItemAction:Y="click__card__".concat(F),showItemAction:H="show__card__".concat(F),openModalAction:V="view",clickMoreButtonAction:Q}=T,W=(0,P.z)(v,p),G=(0,C.G)({productId:v.id,optionId:v.optionId,amount:null!==(l=v.rateAmount)&&void 0!==l?l:0,durationValue:(0,I.Am)(M,null===(e=v.computeData)||void 0===e?void 0:e.termDays,null!==(d=v.term)&&void 0!==d?d:void 0),passAggregatorId:!0}),J=(0,b.p)(B),K=null==J?void 0:null===(n=J.depositsItem)||void 0===n?void 0:n.depositUrl,{partnerFacetsIds:X}=(0,y.ND)(),q=(0,u.useRef)(null);(0,L.Z)({itemRef:q,eventCategory:z,eventAction:H,eventLabel:String(v.id)});let $=t=>(D(v.id,z,F,V,t),null==_?void 0:_({isPlatform:p,href:tn,depositItem:v})),tt=(0,u.useCallback)(()=>{(0,k.L)("oformit_seychas",z,"click_button"),window.open(G,"_blank")},[z,G]),te=(0,u.useMemo)(()=>(0,x.Z)({data:v,hideBonusTooltip:h,discountState:W}),[v,W,h]),tn=(0,u.useMemo)(()=>{var t;return K?K({productId:v.id}):(0,w.Z)({params:g,depositUrl:v.url,amount:v.rateAmount,term:(0,I.Am)(M,null===(t=v.computeData)||void 0===t?void 0:t.termDays,v.term),baseUrl:m,isBound:v.isBound,paramsType:O,isTermInDays:M})},[m,K,null===(i=v.computeData)||void 0===i?void 0:i.termDays,v.id,v.isBound,v.rateAmount,v.term,v.url,M,g,O]),{query:ti}=(0,j.P)(),tl=function(t,e,n,i){if(!e)return t;let{links:l,id:a}=i,o=Object.entries(n).reduce((t,e)=>-1!==e[0].indexOf("utm")?"".concat(t,"&").concat(e[0],"=").concat(e[1]):t,"");return((null==l?void 0:l[a])?l[a]:t)+o}(tn,B,ti,{links:B&&X[B].links||{},id:v.id}),ta=(0,u.useMemo)(()=>(0,N.Z)({data:v,isPlatform:p,renderTip:t=>(0,a.jsx)(s.C,{className:S().detail,icon:(0,a.jsx)(o.IconFdsQuestionCircleO,{size:16}),text:t.description,iconClassName:S().detailIcon,iconPlacement:"right",asTrigger:"div",children:t.title}),newDesign:!0}),[v,p]),to=v.bic?(0,A.B)(v.bic):void 0;return te[0]||"savingAccount"===v.type||v.rateType?(0,a.jsx)("div",{"data-testid":"deposits-item",className:c,ref:q,onClick:t=>{E(t,v.id,z,F,Y)},children:(0,a.jsx)(f,{type:"deposit",icon:to?(0,a.jsx)("div",{className:S().logo,children:(0,a.jsx)(r.default,{unoptimized:!0,width:56,height:56,src:to,alt:"logo"})}):(0,a.jsx)("div",{className:S().placeholderLogo}),title:v.bankName||v.name,titleCaption:(0,I.Am)(v.bankName,v.name,""),href:tl,onOpenDetailModal:()=>$(!0),onDetailClick:()=>$(),onButtonClick:(0,I.Am)(Q,()=>(0,k.L)(v.id,z,null!=Q?Q:""),void 0),tags:ta,target:"_self",advantageAmountFrom:te[0],advantageBonus:te[1],advantageAmountTo:te[2],advantageInterestAccrual:te[3],buttonText:R,wide:U,lkUrl:(0,I.Am)(Z,G,void 0),onOpenClick:tt})}):null});R.displayName="DepositsItem"},65621:function(t,e,n){"use strict";n.d(e,{p:function(){return c}});var i=n(94441);let l=t=>{var e,n,i,l,a,o,r,u;let s=(null===(n=t.contentAttributes)||void 0===n?void 0:null===(e=n.integration)||void 0===e?void 0:e.integrationType)==="REFERAL"||(null===(l=t.contentAttributes)||void 0===l?void 0:null===(i=l.integration)||void 0===i?void 0:i.integrationType)==="INTERNAL_REFERAL";return{type:s?1:0,url:null!==(u=null===(o=t.contentAttributes)||void 0===o?void 0:null===(a=o.integration)||void 0===a?void 0:a.url)&&void 0!==u?u:"",commercial:s?1:0,order:null===(r=t.contentAttributes)||void 0===r?void 0:r.order}},a=(t,e,n)=>{var i,l,a,o;return{...null==t?void 0:t.interest_rate,rates:e.length?e:null!==(a=null===(i=t.interest_rate)||void 0===i?void 0:i.rates)&&void 0!==a?a:[],comment:null!==(o=null===(l=n.contentAttributes)||void 0===l?void 0:l.ratesComment)&&void 0!==o?o:""}},o=(t,e)=>{var n,i,l;let a=null!==(l=null==e?void 0:null===(i=e.interestPayments)||void 0===i?void 0:null===(n=i[0])||void 0===n?void 0:n.periods)&&void 0!==l?l:[],o=a.map(t=>t.type),u=a.map(t=>r(t)).join("<br/>");return{...t.interest_payment,text:u,daily:o.includes("DAILY")?1:0,weekly:o.includes("WEEKLY")?1:0,monthly:o.includes("MONTHLY")?1:0,quarterly:o.includes("QUARTERLY")?1:0,half_year:o.includes("SEMIANNUALLY")?1:0,annually:o.includes("ANNUALLY")?1:0,end:o.includes("IN_THE_END")?1:0,specified_period_in_days:o.includes("SPECIFIED_PERIOD_IN_DAYS")?1:0}},r=t=>{var e;return"DAILY"===t.type?"Ежедневно":"WEEKLY"===t.type?"Еженедельно":"MONTHLY"===t.type?"Ежемесячно":"QUARTERLY"===t.type?"Ежеквартально":"SEMIANNUALLY"===t.type?"Каждые пол года":"ANNUALLY"===t.type?"Ежегодно":"IN_THE_END"===t.type?"В конце срока":"SPECIFIED_PERIOD_IN_DAYS"===t.type?"Каждый ".concat(null!==(e=t.value)&&void 0!==e?e:0,"-й день"):""},u=(t,e)=>{var n,i;let l=null!==(i=null===(n=t.attributes)||void 0===n?void 0:n.asSavingAccount)&&void 0!==i?i:"saving_account"===t.productType;return{charitable:"charitable"===t.productType?1:0,child:"child"===t.productType?1:0,insurance:"insurance"===t.productType?1:0,investment:"investment"===t.productType?1:0,martgage:"mortgage"===t.productType?1:0,multicurrency:(null==e?void 0:e.currencies.length)>1?1:0,pension:"pension"===t.productType?1:0,salary:"salary"===t.productType?1:0,saving_account:l?1:0,seasonal:"seasonal"===t.productType?1:0}},s=t=>t?String(t).padStart(9,"0"):"",d=t=>t,c=t=>{var e,n,r,c,v,p,_,m,f,g,h,b,y,x,N,A,I,k,j,P,L,C,T,S,w,D,E,R;let{deposit:B,bank:U,oldDeposit:O}=t,M=null!=O?O:(0,i.MP)(!!(null==B?void 0:null===(e=B.attributes)||void 0===e?void 0:e.asSavingAccount)),Z=null===(r=B.attributes)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n[0],F=(0,i.I7)(U),{rates:z,amountFrom:Y,amountTo:H,termFrom:V,termTo:Q}=(0,i.HP)(null!==(P=null===(c=B.attributes)||void 0===c?void 0:c.options)&&void 0!==P?P:[],null==B?void 0:null===(v=B.attributes)||void 0===v?void 0:v.isLadderDeposit);return{...M,...B,id:B.id,url:null!==(L=null==B?void 0:null===(p=B.contentAttributes)||void 0===p?void 0:p.url)&&void 0!==L?L:"",title:B.name,active_to:B.visibleTo,active_from:B.visibleFrom,archive:(null===(_=B.contentAttributes)||void 0===_?void 0:_.archive)?1:0,m_updated_at:null!==(C=null===(f=B.contentAttributes)||void 0===f?void 0:null===(m=f.updatedAt)||void 0===m?void 0:m.slice(0,10))&&void 0!==C?C:"",bank_id:Number(null==U?void 0:U.id),bank_name:null!==(T=null==U?void 0:U.name)&&void 0!==T?T:"",bank_url:null!==(S=null==U?void 0:U.url)&&void 0!==S?S:"",legal_name:F,currency_id:Number(null===(y=B.attributes.options)||void 0===y?void 0:null===(b=y[0])||void 0===b?void 0:null===(h=b.currencies)||void 0===h?void 0:null===(g=h[0])||void 0===g?void 0:g.currency),online_application:l(B),interest_rate:a(M,z,B),amount:{...M.amount,from:Y,to:H},term:{...M.term,from:V,to:Q},efficientRate:B.attributes.efficientRate,partial_withdrawal:{...M.partial_withdrawal,has:(0,i.Nx)(Z),text:(0,i.UD)(Z)},interest_payment:o(M,Z),productFeature:null===(x=B.attributes)||void 0===x?void 0:x.productFeature,refill:{comment:"",...M.refill,has:(0,i.u0)(Z),text:(0,i.VV)(Z)},interest_capitalization:{comment:"",...M.interest_capitalization,has:(0,i.xV)(Z),text:(0,i.bh)(Z)},preferential_termination:{...M.preferential_termination,has:(0,i.vf)(Z),text:(0,i.f1)(Z)},type:u(B,Z),prolongation:{text:(null==Z?void 0:Z.prolongations)?"Предусмотрена":"Не предусмотрена"},all_russia:(null===(N=B.contentAttributes)||void 0===N?void 0:N.availableAllRussia)?1:0,custom_regions:null!==(w=null===(A=B.attributes)||void 0===A?void 0:A.regionsData)&&void 0!==w?w:[],multicurrency:(null==Z?void 0:Z.currencies.length)>1?1:0,finuslugiBonusPromotion:{},fin_exclusive:B.attributes.exclusive?1:0,asSavingAccount:null!==(D=B.attributes.asSavingAccount)&&void 0!==D&&D,promo:!1,floatingRateInformations:B.floatingRateInformations,external:{integrationType:null===(k=B.contentAttributes)||void 0===k?void 0:null===(I=k.integration)||void 0===I?void 0:I.integrationType},options:d(B.attributes.options),attributesComments:null!==(E=null==Z?void 0:Z.attributesComments)&&void 0!==E?E:[],prolonging:null!==(R=B.attributes.prolonging)&&void 0!==R&&R,bic:s(null===(j=B.contentAttributes)||void 0===j?void 0:j.bic),isLadderDeposit:B.attributes.isLadderDeposit}}},58864:function(t,e,n){"use strict";n.d(e,{Am:function(){return o},mA:function(){return i},oA:function(){return l},ur:function(){return a}});let i=t=>t&&"object"==typeof t?0===Object.keys(t).length:!t,l=t=>t&&"object"==typeof t?Object.keys(t).length>0:!!t,a=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.every(l)};function o(t,e,n){return t?e:n}},37514:function(t,e,n){"use strict";n.d(e,{L:function(){return l}});var i=n(72151);let l=(t,e,n)=>{(0,i.lQ)({event:"data-event",eventLabel:t,eventCategory:e,eventAction:n})}},67933:function(t,e,n){"use strict";n.d(e,{_:function(){return g},Q:function(){return h}});var i=n(2265),l=n(2674),a=n(97793),o=n(90716);let r=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,o.t9)("/api/v1/deposit-facets/filtered",{method:"POST",body:JSON.stringify({name:t}),headers:{"Content-Type":"application/json"}},{isProductTagsApi:!0},e)};var u=n(65621);async function s(t,e){let{products:n,boundaryValues:{totalPages:i}}=t,l=Array.from({length:i-1},(t,e)=>(0,a.vI)("active",{page:e+1})),o=[...n,...(await Promise.all(l)).flatMap(t=>{var e,n;return null!==(n=null===(e=t.data)||void 0===e?void 0:e.products)&&void 0!==n?n:[]})];return e?o:o.filter(t=>!t.asSavingAccount)}async function d(t){var e,n;if(!t)return null;let{data:i}=await r(t);return(null==i?void 0:i.content.length)&&null!==(n=null===(e=(await r(t)).data)||void 0===e?void 0:e.content[0])&&void 0!==n?n:null}async function c(t){if(!(null==t?void 0:t.length))return[];let e=(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=[];for(let i=0;i<t.length;i+=e)n.push(t.slice(i,i+e));return n})(t).map(t=>(0,a.Cc)(t));return(await Promise.all(e)).flatMap(t=>{var e,n;return null!==(n=null===(e=t.data)||void 0===e?void 0:e.products)&&void 0!==n?n:[]})}async function v(t,e){if(null==e?void 0:e.length)return await c(e);let n=await (0,a.vI)();return(null==n?void 0:n.data)?await s(n.data,t):[]}async function p(t){var e,n;let i=null!==(n=null===(e=(await (0,a.ID)()).data)||void 0===e?void 0:e.content)&&void 0!==n?n:[];return t?i.filter(e=>t.includes(e.id)):i}async function _(t,e,n){var i;let l=[];if(n&&!e&&(l=await (0,a.PT)(String(n))),!n&&(null==e?void 0:e.length)&&(l=await (0,a.iT)(e)),!(null==l?void 0:l.length))return[];let o=new Map;return null==t||t.forEach(t=>o.set(+t.bic,t)),null!==(i=null==l?void 0:l.map(t=>{var e;return(0,u.p)({deposit:t,bank:(null==t?void 0:null===(e=t.contentAttributes)||void 0===e?void 0:e.bic)?o.get(t.contentAttributes.bic):void 0})}))&&void 0!==i?i:[]}async function m(t){let{withPlatformDeposits:e=!0,withSavingAccounts:n=!1,withAnotherDeposits:i=!0,withLeadGenDeposits:l=!1,facetKey:o,banks:r,nonPlatformProducts:u,platformProducts:s,tagId:c}=null!=t?t:{},m=await d(o),f=[],g=[];if(s||u||c){let[t,e]=await Promise.all([i?_(r,u,c):[],l?p():[]]);f=(()=>{if(!u)return t;let e=new Map;return t.forEach(t=>{(null==t?void 0:t.id)!==void 0&&e.set(t.id,t)}),u.map(t=>e.get(t)).filter(Boolean)})(),g=e}else{var h,b;let t=i?await (0,a.X4)({oa_type:"1,2"}):{data:{deposits:null}};g=l?await p(null==m?void 0:m.productsIds):[],f=null!==(b=null==t?void 0:null===(h=t.data)||void 0===h?void 0:h.deposits)&&void 0!==b?b:[]}let y=(null==s?void 0:s.length)?s:null==m?void 0:m.depositsIds;return{platform:e?await v(n,y):[],another:f,leadGen:g}}var f=n(36639);function g(t){return!!t.isNotAmount||!!t.isTermEmpty||!!t.computeData}function h(t){let e=(0,i.useRef)(t);e.current=t;let{toggles:n}=(0,l.ND)(),{filter:a,withAnotherDeposits:o=!0,withSavingAccounts:r=!1,facetKey:u,withLeadGenDeposits:s=!1,banks:d,tagPlatformDeposits:c,tagAnotherDeposits:v,tagNewPlatformDeposits:p,skipClientFetch:_=!1,useInitialDataAsErrorFallback:h=!1}=t,b=void 0!==c||void 0!==v||void 0!==p,[y,x]=(0,i.useState)(null!=c?c:[]),[N,A]=(0,i.useState)(null!=v?v:[]),[I,k]=(0,i.useState)(null!=p?p:[]),[j,P]=(0,i.useState)([]),[L,C]=(0,i.useState)(!b),[T,S]=(0,i.useState)(!b&&!_),w=(0,i.useMemo)(()=>({...t,platformDeposits:y,anotherDeposits:N,newPlatformDeposits:I,getOnlyInitialData:L,leadGenDeposits:j}),[t,y,N,I,L,j]),[D,E]=(0,i.useState)(()=>(0,f.O)(w)),[R,B]=(0,i.useState)(D.platform.filter(t=>g(t)));return(0,i.useEffect)(()=>{E((0,f.O)(w))},[w]),(0,i.useEffect)(()=>{if(b||_){S(!1);return}let t=!0;return S(!0),m({withAnotherDeposits:o,withSavingAccounts:r,facetKey:u,withLeadGenDeposits:s,banks:d}).then(n=>{let{platform:i,another:l,leadGen:a}=n;if(!t)return;let o=(0,f.O)({...e.current,platformDeposits:i,anotherDeposits:l,newPlatformDeposits:I,getOnlyInitialData:!1,leadGenDeposits:a});x(i),A(l),P(a),E(o),B(o.platform.filter(t=>g(t))),C(!1),S(!1)}).catch(()=>{t&&h&&S(!1)}),()=>{t=!1}},[u,b,_,o,s,r,d,n,h]),(0,i.useEffect)(()=>{b&&(x(null!=c?c:[]),A(null!=v?v:[]),k(null!=p?p:[]),C(!1))},[a,b,v,p,c]),{platformDeposits:y,anotherDeposits:N,depositLists:D,advantagesDepositLists:R,isLoading:T,handleChangeAdvantagesDepositsList:(0,i.useCallback)(t=>{B(t)},[])}}},49394:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(2265),l=n(7006),a=n(26876),o=n(53931);function r(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=(0,o.$1)(),u=(null==r?void 0:r["auth.gtm_customer_id"])||null,[s]=(0,i.useState)(n&&null!=t?t:[]),[d,c]=(0,i.useState)(!1),[v,p]=(0,i.useState)(!0),[_,m]=(0,i.useState)(!1),[f,g]=(0,i.useState)(e&&!!u);return(0,i.useEffect)(()=>{u&&n&&(g(!0),(0,l.M)(u).then(t=>{let{data:e}=t;(!e||(null==e?void 0:e.features))&&e&&!e.features.includes(a.n.SHOW_ADDITIONAL_PERCENT_BONUS)&&(p(!1),m(!0),c(!0))}).finally(()=>{g(!1)}))},[u,n]),{customerId:u,isOldUser:_,isPlusFiveBonus:v,isHiddenPromo:d,isDiscountsLoading:f,bonuses:s}}},64554:function(t,e,n){"use strict";n.d(e,{G:function(){return u}});var i=n(2265),l=n(77337),a=n(87566),o=n(14862),r=n(14441);let u=t=>{let{productId:e,optionId:n,amount:u,durationValue:s,passAggregatorId:d=!1,passCombo:c=!1,toSPCS:v=!1}=t,{query:{utm_campaign:p,utm_medium:_,utm_source:m,utm_term:f,aggregator_id:g},hash:{partner_id:h}}=(0,r.P)(),b=d?g:h,y=(0,i.useMemo)(()=>({aggregatorId:null!=b?b:"moex-mp-new-sc",productId:e,optionId:n,amount:u,durationValue:s,utm_campaign:p,utm_medium:_,utm_source:m,utm_term:f}),[b,u,s,n,e,p,_,m,f]);return(0,i.useMemo)(()=>v?(0,l.jb)((0,l.xn)(o.publicConfig.LK_URL,a.Yw,String(e)),y):(0,l.jb)((0,l.xn)(o.publicConfig.LK_URL,"/add-product"),{...y,...c?{from:"combo"}:null}),[c,e,y,v])}},8289:function(t){t.exports={breadcrumbs:"Breadcrumbs_breadcrumbs__wgDQB"}},94445:function(t){t.exports={logo:"DepositsItem_logo__iStbL",placeholderLogo:"DepositsItem_placeholderLogo__UzcOO",detailIcon:"DepositsItem_detailIcon__0dtvC",detail:"DepositsItem_detail__8JOuJ"}},77051:function(t){t.exports={plate:"Plate_plate__S_Sp7",detailButton:"Plate_detailButton__Vlnz_",body:"Plate_body__3Kcou",left:"Plate_left__kERR7",right:"Plate_right__R7QSm",header:"Plate_header__0Jio0",tagsList:"Plate_tagsList__sNF_o",tag:"Plate_tag__CXr0H",primary:"Plate_primary__2nNLK",secondary:"Plate_secondary__rmjTR",red:"Plate_red__G9aAj",green:"Plate_green__29Hcv",orange:"Plate_orange__DGBL9",purple:"Plate_purple__0iafz",blue:"Plate_blue__4EXVf",titleWrapper:"Plate_titleWrapper__J6_mn",title:"Plate_title__5Jf3b",logoIcon:"Plate_logoIcon__VDTTF",noneCaption:"Plate_noneCaption__oA2iC",caption:"Plate_caption__oESgJ",logoTitle:"Plate_logoTitle__oY9wl",clickable:"Plate_clickable__5wv6N",advantagesList:"Plate_advantagesList__4GAWx",wide:"Plate_wide__z6fFB",shortList:"Plate_shortList__r7czJ",advantageItem:"Plate_advantageItem__jlCJf",advantageItemCaption:"Plate_advantageItemCaption__xTm6L",iconClassName:"Plate_iconClassName__cQzY0",advantageItemTitle:"Plate_advantageItemTitle__i_0Gt",longItem:"Plate_longItem__BUIxH",buttonsWrapper:"Plate_buttonsWrapper__T4ELm",block:"Plate_block__HPiKB",column:"Plate_column__0xnQ7",iconButton:"Plate_iconButton__HQSXZ",desktop:"Plate_desktop__8p8d1",mobile:"Plate_mobile__3vHcn",appButton:"Plate_appButton__gTPKF",openButton:"Plate_openButton__uyU5_"}}}]);