(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1884],{30754:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var i=n(57437),o=n(75461),r=n(54365),l=n(2265),a=n(8289),s=n.n(a);let u=(t,e)=>{if(!t.length)return[];let n=[{label:"Главная",href:"/"},...t];return e&&(n[n.length-1].href=void 0),n};var d=(0,l.memo)(function(t){let{items:e=[],className:n,disableLastHref:a=!0,...d}=t,c=(0,l.useMemo)(()=>u(e,a),[e,a]);return(0,i.jsx)(o.Oo,{...d,items:c,className:(0,r.Z)(s().breadcrumbs,n),isMobile:!1,isFullView:!0})})},15037:function(t,e,n){"use strict";n.d(e,{CpaParams:function(){return _},default:function(){return h}});var i=n(57437),o=n(16715),r=n(52848),l=n(22711),a=n(2265),s=n(14862),u=n(34039),d=n(38050),c=n(30660);function m(){return null}function v(t){let{children:e,onError:n}=t;return(0,i.jsx)(c.SV,{FallbackComponent:m,onError:n,children:e})}let p="".concat(s.m.ASSETS_URL,"/mp-assets");function h(t){let{children:e,aggregatorIds:n,headerData:u,footerData:c}=t,m=(0,a.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)(_,{aggregatorIds:n}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{onError:m,children:u&&(0,i.jsx)(l.H,{data:u,showcaseUrl:s.m.BASE_URL,minioUrl:p,lkUrl:s.m.LK_URL})}),e,c&&(0,i.jsx)(r.F,{data:c,showcaseUrl:s.m.BASE_URL,minioUrl:p})]}),(0,i.jsx)(d.h,{children:(0,i.jsx)(o.z,{})})]})}function _(t){return(0,u.Z)(t.aggregatorIds),null}},10330:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(77337);function o(t){let{params:e,depositUrl:n,amount:o,term:r,isBound:l,baseUrl:a,paramsType:s,isTermInDays:u}=t;if(l)return n;let d="hash"===s?(0,i.iU)("/".concat(n),(0,i.Oh)({amount:o,...u?{d_period:r}:{period:r}})):(0,i.jb)("/".concat(n),{amount:o,period:r}),c=e?(0,i.jb)(d,e):d;return(0,i.xn)(a,c)}},32113:function(t,e,n){"use strict";n.d(e,{B:function(){return M}});var i,o,r=n(57437),l=n(80684),a=n(33145),s=n(2265),u=n(11359),d=n(75461),c=n(5426),m=n(54365),v=n(77051),p=n.n(v);function h(){}(i=o||(o={})).button="button",i.detail="detail",i.compare="compare",i.favorites="favorites",i.share="share",i.open="open";let _=t=>{let{icon:e,href:n,target:i,title:l,titleCaption:a,advantageAmountFrom:u,advantageBonus:v,advantageAmountTo:_,advantageInterestAccrual:b,tags:y,className:A,onOpenDetailModal:x,onDetailClick:P,onButtonClick:N,onOpenClick:T,buttonText:I="Подробнее",wide:D=!1,lkUrl:k}=t,L=[u,v,_,b].filter(t=>"string"==typeof(null==t?void 0:t.name)?null==t?void 0:t.name.length:null==t?void 0:t.name),E=(0,s.useCallback)(t=>{let{children:e}=t;return(null==n?void 0:n.length)?(0,r.jsx)(d.rU,{href:n||"",target:i,className:(0,m.Z)(p().plate,A),children:e}):(0,r.jsx)("div",{className:(0,m.Z)(p().plate,A),children:e})},[A,n,i]),R=(0,s.useCallback)(t=>{x&&(t.preventDefault(),t.stopPropagation(),x(o.detail))},[x]),C=(0,s.useCallback)(function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return n=>{switch(e&&(n.preventDefault(),n.stopPropagation()),t){case o.detail:return null==P?void 0:P(o.detail);case o.button:return null==N?void 0:N(o.button);case o.open:return null==T?void 0:T(o.open)}}},[N,P,T]);return(0,r.jsx)(E,{children:(0,r.jsxs)("div",{className:p().body,children:[(0,r.jsxs)("div",{className:p().left,children:[(0,r.jsxs)("div",{className:p().header,children:[(0,r.jsxs)("div",{className:p().titleWrapper,children:[(0,r.jsx)("div",{className:(0,m.Z)(p().logoIcon),children:e}),(0,r.jsxs)("div",{className:(0,m.Z)(p().title,{[p().noneCaption]:!(null==a?void 0:a.length)}),children:[!!(null==a?void 0:a.length)&&(0,r.jsx)("button",{title:a,onClick:R,className:(0,m.Z)(p().caption,{[p().clickable]:x}),children:a}),(0,r.jsx)("p",{className:p().logoTitle,title:l,children:l})]})]}),!!(null==L?void 0:L.length)&&(0,r.jsx)("div",{className:(0,m.Z)(p().advantagesList,{[p().wide]:D,[p().shortList]:D&&L.length<3}),children:L.map(t=>(0,r.jsxs)("div",{className:(0,m.Z)(p().advantageItem,{[p().longItem]:L.length<3}),children:[(null==t?void 0:t.tooltipText)?(0,r.jsx)(c.qQ,{text:t.tooltipText,keyValue:(null==t?void 0:t.caption)+(null==t?void 0:t.name),iconClassName:p().iconClassName,children:(0,r.jsx)("span",{className:p().advantageItemCaption,children:null==t?void 0:t.caption})}):(0,r.jsx)("span",{className:p().advantageItemCaption,children:null==t?void 0:t.caption}),(0,r.jsx)("div",{className:p().advantageItemTitle,children:t.name})]},t.caption))}),(0,r.jsx)(g,{isMobile:!0,handleButtonClick:C})]}),(0,r.jsx)("div",{className:p().tagsList,children:y.map(t=>{let e="left"===t.position?{iconLeft:t.icon}:{iconRight:t.icon},n=0===t.text.trim().length;return(0,r.jsx)(d.Vp,{className:(0,m.Z)(p().tag,t.backGround&&p()[t.backGround]),label:t.text,onIconRightClick:n?h:void 0,rounded:!0,...e},t.text)})})]}),(0,r.jsx)("div",{className:p().right,children:(0,r.jsx)("div",{className:p().buttonsWrapper,children:(0,r.jsxs)("div",{className:p().block,children:[(0,r.jsx)(g,{isMobile:!1,handleButtonClick:C}),(0,r.jsxs)("div",{className:p().column,children:[(0,r.jsx)(d.zx,{className:(0,m.Z)(p().button,p().appButton,{[p().wide]:D}),size:"xs",onClick:()=>C(o.button,!1),children:I}),k&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f,{href:k,onClick:C}),(0,r.jsx)(f,{href:k,isMobile:!0,onClick:C})]})]})]})})})]})})},g=t=>{let{isMobile:e,handleButtonClick:n}=t;return(0,r.jsx)(d.zx,{className:(0,m.Z)(p().button,p().detailButton,{[p().mobile]:e,[p().desktop]:!e}),onClick:n(o.detail),iconLeft:(0,r.jsx)(l.IconFdsInfoCircleO,{}),shape:"icon",variant:"secondary",size:"xs"})},f=t=>{let{isMobile:e,href:n,onClick:i}=t;return(0,r.jsx)(d.zx,{as:"a",href:n,target:"_blank",size:"xs",variant:e?"secondary":"white",className:(0,m.Z)(p().openButton,e?p().mobile:p().desktop),onClick:i(o.open),children:"Оформить сейчас"})};_.displayName="Plate";var b=n(27023),y=n(2674),A=n(16639),x=n(13425),P=n(54328),N=n(58864),T=n(37514),I=n(14441),D=n(37328),k=n(99193),L=n(64554),E=n(94445),R=n.n(E),C=n(10330);let S=(t,e,n,i,o)=>{(0,T.L)(t,o?e:"deposits_details_vklady_popup",o?"click_name_deposit__".concat(n):i)},j=(t,e,n,i,o)=>{if(null==t?void 0:t.target){let o=t.target;if(o.classList.contains("finkit-button")||o.classList.contains("finkit-button__label")){(0,T.L)(e,n,"click__button__more__".concat(i));return}}(0,T.L)(e,n,o)},M=(0,s.memo)(t=>{var e,n,i,o,d;let{className:c,data:m,isPlatform:v=!1,onOpenDetailModal:p,baseUrl:h="/vklady",params:g,hideBonusTooltip:f=!1,events:E={},buttonText:M="Подробнее",partnerId:F=null,wide:B=!1,paramsType:O="hash",isTermInDays:U=!1,showOpenButton:w=!1}=t,z=v?"offers":"lidgen",{eventCategory:Z="deposits_vklady",clickItemAction:K="click__card__".concat(z),showItemAction:Y="show__card__".concat(z),openModalAction:H="view",clickMoreButtonAction:W}=E,G=(0,D.z)(m,v),V=(0,L.G)({productId:m.id,optionId:m.optionId,amount:null!==(o=m.rateAmount)&&void 0!==o?o:0,durationValue:(0,N.Am)(U,null===(e=m.computeData)||void 0===e?void 0:e.termDays,null!==(d=m.term)&&void 0!==d?d:void 0),passAggregatorId:!0}),Q=(0,b.p)(F),J=null==Q?void 0:null===(n=Q.depositsItem)||void 0===n?void 0:n.depositUrl,{partnerFacetsIds:q}=(0,y.ND)(),X=(0,s.useRef)(null);(0,k.Z)({itemRef:X,eventCategory:Z,eventAction:Y,eventLabel:String(m.id)});let $=t=>(S(m.id,Z,z,H,t),null==p?void 0:p({isPlatform:v,href:tn,depositItem:m})),tt=(0,s.useCallback)(()=>{(0,T.L)("oformit_seychas",Z,"click_button"),window.open(V,"_blank")},[Z,V]),te=(0,s.useMemo)(()=>(0,A.Z)({data:m,hideBonusTooltip:f,discountState:G}),[m,G,f]),tn=(0,s.useMemo)(()=>{var t;return J?J({productId:m.id}):(0,C.Z)({params:g,depositUrl:m.url,amount:m.rateAmount,term:(0,N.Am)(U,null===(t=m.computeData)||void 0===t?void 0:t.termDays,m.term),baseUrl:h,isBound:m.isBound,paramsType:O,isTermInDays:U})},[h,J,null===(i=m.computeData)||void 0===i?void 0:i.termDays,m.id,m.isBound,m.rateAmount,m.term,m.url,U,g,O]),{query:ti}=(0,I.P)(),to=function(t,e,n,i){if(!e)return t;let{links:o,id:r}=i,l=Object.entries(n).reduce((t,e)=>-1!==e[0].indexOf("utm")?"".concat(t,"&").concat(e[0],"=").concat(e[1]):t,"");return((null==o?void 0:o[r])?o[r]:t)+l}(tn,F,ti,{links:F&&q[F].links||{},id:m.id}),tr=(0,s.useMemo)(()=>(0,x.Z)({data:m,isPlatform:v,renderTip:t=>(0,r.jsx)(u.C,{className:R().detail,icon:(0,r.jsx)(l.IconFdsQuestionCircleO,{size:16}),text:t.description,iconClassName:R().detailIcon,iconPlacement:"right",asTrigger:"div",children:t.title}),newDesign:!0}),[m,v]),tl=m.bic?(0,P.B)(m.bic):void 0;return te[0]||"savingAccount"===m.type||m.rateType?(0,r.jsx)("div",{"data-testid":"deposits-item",className:c,ref:X,onClick:t=>{j(t,m.id,Z,z,K)},children:(0,r.jsx)(_,{type:"deposit",icon:tl?(0,r.jsx)("div",{className:R().logo,children:(0,r.jsx)(a.default,{unoptimized:!0,width:56,height:56,src:tl,alt:"logo"})}):(0,r.jsx)("div",{className:R().placeholderLogo}),title:m.bankName||m.name,titleCaption:(0,N.Am)(m.bankName,m.name,""),href:to,onOpenDetailModal:()=>$(!0),onDetailClick:()=>$(),onButtonClick:(0,N.Am)(W,()=>(0,T.L)(m.id,Z,null!=W?W:""),void 0),tags:tr,target:"_self",advantageAmountFrom:te[0],advantageBonus:te[1],advantageAmountTo:te[2],advantageInterestAccrual:te[3],buttonText:M,wide:B,lkUrl:(0,N.Am)(w,V,void 0),onOpenClick:tt})}):null});M.displayName="DepositsItem"},19612:function(t,e,n){"use strict";n.d(e,{p:function(){return r}});var i=n(14862);class o{get hasKeysExistsSome(){return[...this.amountKeys,...this.termsKeys].some(t=>Object.prototype.hasOwnProperty.call(this.promotion,t))}get hasKeysExistsEvery(){return[...this.amountKeys,...this.termsKeys].every(t=>Object.prototype.hasOwnProperty.call(this.promotion,t))}get hasAmountKeys(){return this.amountKeys.some(t=>Object.prototype.hasOwnProperty.call(this.promotion,t))}get hasTermsKeys(){return this.termsKeys.some(t=>Object.prototype.hasOwnProperty.call(this.promotion,t))}checkMinMax(t,e,n){return(!!n||!!e)&&(n&&!e?t<=n:!n&&e?t>=e:t>=e&&t<=n)}getDiscountByAmount(){return this.checkMinMax(this.currentAmount,this.minAmount,this.maxAmount)}getDiscountByTerms(){return this.checkMinMax(this.terms,this.minTermInDays,this.maxTermInDays)}constructor(t,e){var n,i,o,r;this.promotion=t,this.minAmount=null!==(n=t.minAmount)&&void 0!==n?n:0,this.maxAmount=null!==(i=t.maxAmount)&&void 0!==i?i:0,this.minTermInDays=null!==(o=t.minTermInDays)&&void 0!==o?o:0,this.maxTermInDays=null!==(r=t.maxTermInDays)&&void 0!==r?r:0,this.terms=e.terms,this.currentAmount=e.currentAmount,this.amountKeys=["minAmount","maxAmount"],this.termsKeys=["minTermInDays","maxTermInDays"]}}let r=t=>{let{currentAmount:e,finuslugiBonusAllowed:n,isPlusFiveBonus:r,isOldUser:l,terms:a,finuslugiBonusPromotion:s,firstDepositPromotionAllowed:u,repeatDepositPromotionAllowed:d}=t;if(i.m.FEATURE_TOGGLE_NEW_BONUS_API_ENABLED)return!!(u&&!l||d&&l);if(!n)return!1;if(r)return!0;if(!s||!l)return!1;let c=new o(s,{terms:a,currentAmount:+e});return!c.hasAmountKeys&&!c.hasTermsKeys||(c.terms&&c.currentAmount||!c.hasKeysExistsEvery?!!(c.terms&&c.hasKeysExistsSome&&c.getDiscountByTerms())&&!!(c.currentAmount&&c.hasKeysExistsSome&&c.getDiscountByAmount()):c.getDiscountByTerms()&&c.getDiscountByAmount())}},65621:function(t,e,n){"use strict";n.d(e,{p:function(){return d}});var i=n(94441);let o=t=>{var e,n,i,o,r,l,a,s;let u=(null===(n=t.contentAttributes)||void 0===n?void 0:null===(e=n.integration)||void 0===e?void 0:e.integrationType)==="REFERAL"||(null===(o=t.contentAttributes)||void 0===o?void 0:null===(i=o.integration)||void 0===i?void 0:i.integrationType)==="INTERNAL_REFERAL";return{type:u?1:0,url:null!==(s=null===(l=t.contentAttributes)||void 0===l?void 0:null===(r=l.integration)||void 0===r?void 0:r.url)&&void 0!==s?s:"",commercial:u?1:0,order:null===(a=t.contentAttributes)||void 0===a?void 0:a.order}},r=(t,e,n)=>{var i,o,r,l;return{...null==t?void 0:t.interest_rate,rates:e.length?e:null!==(r=null===(i=t.interest_rate)||void 0===i?void 0:i.rates)&&void 0!==r?r:[],comment:null!==(l=null===(o=n.contentAttributes)||void 0===o?void 0:o.ratesComment)&&void 0!==l?l:""}},l=(t,e)=>{var n,i,o;let r=null!==(o=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!==o?o:[],l=r.map(t=>t.type),s=r.map(t=>a(t)).join("<br/>");return{...t.interest_payment,text:s,daily:l.includes("DAILY")?1:0,weekly:l.includes("WEEKLY")?1:0,monthly:l.includes("MONTHLY")?1:0,quarterly:l.includes("QUARTERLY")?1:0,half_year:l.includes("SEMIANNUALLY")?1:0,annually:l.includes("ANNUALLY")?1:0,end:l.includes("IN_THE_END")?1:0,specified_period_in_days:l.includes("SPECIFIED_PERIOD_IN_DAYS")?1:0}},a=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,"-й день"):""},s=(t,e)=>{var n,i;let o=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:o?1:0,seasonal:"seasonal"===t.productType?1:0}},u=t=>t?String(t).padStart(9,"0"):"",d=t=>{var e,n,a,d,c,m,v,p,h,_,g,f,b,y,A,x,P,N,T,I,D,k,L,E,R,C,S,j;let{deposit:M,bank:F,oldDeposit:B}=t,O=null!=B?B:(0,i.MP)(!!(null==M?void 0:null===(e=M.attributes)||void 0===e?void 0:e.asSavingAccount)),U=null===(a=M.attributes)||void 0===a?void 0:null===(n=a.options)||void 0===n?void 0:n[0],w=(0,i.I7)(F),{rates:z,amountFrom:Z,amountTo:K,termFrom:Y,termTo:H}=(0,i.HP)(null!==(I=null===(d=M.attributes)||void 0===d?void 0:d.options)&&void 0!==I?I:[],null==M?void 0:null===(c=M.attributes)||void 0===c?void 0:c.isLadderDeposit);return{...O,...M,id:M.id,url:null!==(D=null==M?void 0:null===(m=M.contentAttributes)||void 0===m?void 0:m.url)&&void 0!==D?D:"",title:M.name,active_to:M.visibleTo,active_from:M.visibleFrom,archive:(null===(v=M.contentAttributes)||void 0===v?void 0:v.archive)?1:0,m_updated_at:null!==(k=null===(h=M.contentAttributes)||void 0===h?void 0:null===(p=h.updatedAt)||void 0===p?void 0:p.slice(0,10))&&void 0!==k?k:"",bank_id:Number(null==F?void 0:F.id),bank_name:null!==(L=null==F?void 0:F.name)&&void 0!==L?L:"",bank_url:null!==(E=null==F?void 0:F.url)&&void 0!==E?E:"",legal_name:w,currency_id:Number(null===(b=M.attributes.options)||void 0===b?void 0:null===(f=b[0])||void 0===f?void 0:null===(g=f.currencies)||void 0===g?void 0:null===(_=g[0])||void 0===_?void 0:_.currency),online_application:o(M),interest_rate:r(O,z,M),amount:{...O.amount,from:Z,to:K},term:{...O.term,from:Y,to:H},efficientRate:M.attributes.efficientRate,partial_withdrawal:{...O.partial_withdrawal,has:(0,i.Nx)(U),text:(0,i.UD)(U)},interest_payment:l(O,U),productFeature:null===(y=M.attributes)||void 0===y?void 0:y.productFeature,refill:{comment:"",...O.refill,has:(0,i.u0)(U),text:(0,i.VV)(U)},interest_capitalization:{comment:"",...O.interest_capitalization,has:(0,i.xV)(U),text:(0,i.bh)(U)},preferential_termination:{...O.preferential_termination,has:(0,i.vf)(U),text:(0,i.f1)(U)},type:s(M,U),prolongation:{text:(null==U?void 0:U.prolongations)?"Предусмотрена":"Не предусмотрена"},all_russia:(null===(A=M.contentAttributes)||void 0===A?void 0:A.availableAllRussia)?1:0,custom_regions:null!==(R=null===(x=M.attributes)||void 0===x?void 0:x.regionsData)&&void 0!==R?R:[],multicurrency:(null==U?void 0:U.currencies.length)>1?1:0,finuslugiBonusPromotion:{},fin_exclusive:M.attributes.exclusive?1:0,asSavingAccount:null!==(C=M.attributes.asSavingAccount)&&void 0!==C&&C,promo:!1,floatingRateInformations:M.floatingRateInformations,external:{integrationType:null===(N=M.contentAttributes)||void 0===N?void 0:null===(P=N.integration)||void 0===P?void 0:P.integrationType},options:M.attributes.options,attributesComments:null!==(S=null==U?void 0:U.attributesComments)&&void 0!==S?S:[],prolonging:null!==(j=M.attributes.prolonging)&&void 0!==j&&j,bic:u(null===(T=M.contentAttributes)||void 0===T?void 0:T.bic),isLadderDeposit:M.attributes.isLadderDeposit}}},36639:function(t,e,n){"use strict";n.d(e,{O:function(){return F}});var i=n(34200),o=n(6164),r=n(91627),l=n(40309),a=n(44579),s=n(14438);let u=t=>{let{type:e,value:n}=t;switch(!0){case e===o.e.DAY:return Math.round(n/r.F);case e===o.e.MONTH:return n;case e===o.e.YEAR:return 12*n;default:return 0}},d=t=>{let{type:e,value:n}=t;switch(!0){case e===o.e.DAY:return n;case e===o.e.MONTH:return Math.round(n*r.F);case e===o.e.YEAR:return Math.round(365*n);default:return 0}},c=t=>{let e=t.filter(t=>t.active);if(!e.length)return null;let n=e[0].currencies[0],i=n.rates[0];return e.reduce((t,e)=>{let o=e.currencies.reduce((t,e)=>{let n=e.rates.reduce((t,e)=>{let{maximumRate:n}=e;return n>t.maximumRate?e:t},e.rates[0]);return n.maximumRate>t.rate.maximumRate?{...e,rate:n}:t},{...n,rate:i});return o.rate.maximumRate>t.currency.rate.maximumRate?{...e,currency:o}:t},{...e[0],currency:{...n,rate:i}})},m=t=>{let{deposits:e,banks:n,specialDeposits:i}=t;return e.length?e.map(t=>{var e,o,r;let{contentAttributes:m,provider:v}=t,p=null!==(o=n[m.bic])&&void 0!==o?o:n[Number(v.bic)];if(!p)return;let h=c(t.attributes.options);if(!h)return;let{currency:{rate:_}}=h,g=(0,s.ax)({rate:_.maximumRate,depositSum:_.minimumAmount,isCapitalization:!1,term:d(_.minimumPeriod),period:a.Z.Day,paymentFrequency:l.Z.InTheEnd});return{name:t.name,url:m.url,id:t.id,logoMob:p.logo_mob,order:m.order,bankName:p.name,bic:String(m.bic),rateAmount:_.minimumAmount,computeData:g,currencyUnit:"₽",isArchived:!1,amount:_.minimumAmount,type:t.attributes.asSavingAccount?"savingAccount":"deposit",specialOrder:null!==(r=null===(e=i[t.id])||void 0===e?void 0:e.order)&&void 0!==r?r:null,term:u(_.minimumPeriod),isNotAmount:!0,isTermEmpty:!0,asSavingAccount:t.attributes.asSavingAccount}}).filter(Boolean):[]};var v=n(59687),p=n(14862),h=n(33600),_=n(91586),g=n(54328),f=n(7913);let b={0:[1,2,3,4,5,6],1:[23,24],2:[8],4:[1,8,9],5:[12],10:[6]},y={INIT_MIN_TERM_DEFAULT:1,END_WORK_DAY_UTC_HOURS:13,isWorkTime(t){return!!t&&t.getUTCHours()<this.END_WORK_DAY_UTC_HOURS},isWeekend:t=>!!t&&[0,6].includes(t.getDay()),isHoliday(t){if(!t)return!1;let e=t.getMonth(),n=t.getDate();return e in b&&b[e].includes(n)}},A=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number(Number(t).toFixed(e))},x=t=>{let e=t.bond&&t.bond.api_data&&t.bond.api_data.product||{},n=e.minCouponPaymentSizePercent,i=t.income,o=e.price?e.price.total:1e3,l=A(Math.floor(t.depositValue/o)*o),a=Math.round(t.depositPeriod*r.F);return i&&l&&a?A(i/l*365/a*100,1):n},P=t=>{let e=new Date(t);return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e},N=t=>{for(y.isWorkTime(t)||t.setDate(t.getDate()+1);y.isWeekend(t)||y.isHoliday(t);)t.setDate(t.getDate()+1);return t},T=(t,e)=>{let n=t.bond&&t.bond.api_data&&t.bond.api_data.product||{},i=n.price&&n.price.base,o=n.price?n.price.total:1e3,r=Math.floor(t.depositValue/o),l=A(r*o),a=(n.eventsData&&n.eventsData.events||[]).filter(t=>"INTR"===t.type),s=a.findIndex(t=>{let n=P(t.eventDate);return n.setHours(23),n.setMinutes(59),n.setSeconds(59),n.setMilliseconds(0),e>=P(t.eventStartDate)&&e<=n}),u=0;if(s>=0){let t=a[s],n=Math.floor((e.getTime()-P(t.eventStartDate).getTime())/864e5),o=A(t.paymentSizePercent*i*n/36500);return s>=1&&(u=a.slice(0,s).reduce((t,e)=>A(t+e.paymentSize),0)),A(r*i+r*o+r*u-l)}return 0},I=t=>{let e=P(N(new Date));return e.setDate(e.getDate()+t),e},D=t=>{let e=Math.round(t.depositPeriod*r.F);return t?T(t,I(e)):0};var k=n(19612),L=n(75109),E=n(84456);let R=t=>{let{deposits:e,region:n,town:i}=t;return(null==n?void 0:n.id)&&((null==n?void 0:n.url)==="moskva"||(null==n?void 0:n.url)==="sankt-peterburg")?e.filter(t=>{var e,i;return t.custom_regions&&(null===(e=t.custom_regions)||void 0===e?void 0:e.length)<1||(null===(i=t.custom_regions)||void 0===i?void 0:i.some(t=>t.regionId===n.region_id))}):(null==i?void 0:i.id)?e.filter(t=>{var e,n;return t.custom_regions&&(null===(e=t.custom_regions)||void 0===e?void 0:e.length)<1||(null===(n=t.custom_regions)||void 0===n?void 0:n.some(t=>t.cities.includes(i.id)))}):e},C=t=>{let{anotherDeposits:e,region:n,town:i,filter:o,importantDeposits:r}=t,l=R({deposits:e,region:n,town:i});return S((()=>{let t=o.rate;return t?l.filter(e=>e.interest_rate.rates.some(e=>{let n=e.rate;return n>=t&&n<t+1})):l})(),r)},S=(t,e)=>t.filter(t=>e.length?e.includes(String(t.id)):!t.archive);var j=n(91342);let M=(t,e,n)=>t.filter(t=>e.length?e.includes(String(t.id)):!!n[t.id]||!t.archive);function F(t){var e,n;let{initialPlatformDeposits:o=[],initialAnotherDeposits:u=[],initialLeadGenDeposits:d=[],filter:c,region:b,town:y,discounts:P,anotherDeposits:N,platformDeposits:T,newPlatformDeposits:I,bankTowns:R,banks:S,bounds:F,allExtraInfo:B,isPlusFiveBonus:O,isOldUser:U,anotherDepositsInCount:w=!0,getOnlyInitialData:z=!1,specialDeposits:Z={},leadGenDeposits:K=[],initialAllDepositsLength:Y,initialCurrentDepositsLength:H,calculateFilterAbilities:W=!0,withSavingAccounts:G=!1,shouldFilterByAllOffers:V=!1,allOffers:Q=null}=t,{amount:J,term:q,sortType:X,order:$,importantDeposits:tt=[],filterAdditionalSettings:te=[i.a.bonds,i.a.deposits]}=c;if(z)return function(t){let{initialPlatformDeposits:e,initialAnotherDeposits:n,anotherDepositsInCount:i,initialLeadGenDeposits:o,initialAllDepositsLength:r,initialCurrentDepositsLength:l}=t,a=e.length+(i?n.length:0);return{platform:e,another:n,leadGen:o,allLength:r||a,currentLength:l||a,boundsIsEmpty:!0,fitsForMonthlyPercentFilter:!0,fitsForPreferentialTerminationFilter:!0,fitsForCapitalization:!0,fitsForRefill:!0}}({initialPlatformDeposits:o,initialAnotherDeposits:u,anotherDepositsInCount:w,initialLeadGenDeposits:d,initialAllDepositsLength:Y,initialCurrentDepositsLength:H});let tn=null==P?void 0:P.find(t=>"five_procent"===t.unique_key),ti={...c,amount:J?Number(J):null,term:Number(null!=q?q:0)},to=null==S?void 0:S.reduce((t,e)=>({...t,[Number(e.bic)]:e}),{}),tr=function(t){let{bounds:e,filter:n,isValid:i}=t;if(!i)return[];let{amount:o,term:r,currency:l}=n;return e.reduce((t,e)=>{var n,i;let a=(e&&(null===(n=e.api_data)||void 0===n?void 0:n.product)||{}).minCouponPaymentSizePercent,s={bond:e,depositValue:null!=o?o:0,depositPeriod:r},u=D(s),d=u<=5e6?.87:.85,c=o?A(x({...s,income:u})*d):a,m=u*d;if(c<=0||m<=0)return t;let v=Math.round(30.4375*s.depositPeriod);return[...t,{name:e.name,url:e.url,id:e.id,logoMob:null!==(i=e.image_url)&&void 0!==i?i:"",rateAmount:c,computeData:{result:m,profit:m,rate:c,effectiveRate:c,bonus:0,bonusRate:0,termDays:v,onlyBonusFloatingRate:0},currencyUnit:null!=l?l:"₽",tag:e.tag,term:null!=r?r:0,isBound:!0,isArchived:!1,amount:null!=o?o:0,type:h.kv.Bond,specialOrder:null,bic:""}]},[])}({bounds:tt.length?F.filter(t=>tt.includes(String(t.id))):F,filter:ti,isValid:te.includes(i.a.bonds)}),tl=te.includes(i.a.deposits),{items:ta,...ts}=function(t){let{deposits:e,banks:n,allExtraInfo:i,filter:o,region:u,discount:d,isOldUser:c,isPlusFiveBonus:m,isValid:v,specialDeposits:g}=t;return v?e.reduce((t,e)=>{var v,f;let b=function(t){var e,n,i;let{deposit:o,normalizedBanks:u,filter:d,allExtraInfo:c,region:m,isOldUser:v,isPlusFiveBonus:g,discount:f}=t,{amount:b,term:y,currency:A,withMonthlyPercent:x=!1,withPreferentialTermination:P=!1,withCapitalization:N,withRefill:T}=d,I=null==u?void 0:u[Number(o.bic)],D=null,R=b,C=Math.round(y*r.F),S=null,j=!!o.options[0].replenishment||o.asSavingAccount,M=!!o.options[0].partialWithdrawal,F="CAPITALISATION"===o.options[0].interestPayments[0].method,B=o.options[0].currencies[0],O=[],U=c[o.internalUrl],w=function(t){let{deposit:e,region:n,bankId:i,filter:o,currencyUnit:r}=t,l=!e.regions||!(null==n?void 0:n.region_id)||e.regions.includes(+n.region_id),a=(0,s.EP)(o,i);return(!r||"₽"===r)&&a&&l}({deposit:o,region:m,currencyUnit:A,filter:d,bankId:String(null==I?void 0:I.id)}),z=!1;if(w){let t=o.options.filter(t=>t.active);z=t[0].rateType===_.e4.FLOATING,t.forEach(t=>{var e;null===(e=t.currencies)||void 0===e||e.forEach(e=>{let n=function(t,e){var n;if((null==e?void 0:null===(n=e.algo)||void 0===n?void 0:n.id)==="mkb-nakop"){let{algo:t}=e;return t.expenseChips.map(e=>({minimumAmount:t.minAmount,maximumAmount:t.maxAmount,minimumPeriod:{type:"DAY",value:0},maximumPeriod:{type:"DAY",value:1/0},minimumRate:e.rateWithSalary}))}return t.rates}(e,U);n.forEach(t=>O.push(t.minimumAmount));let i=[...n].sort((t,e)=>e.minimumRate-t.minimumRate).find(t=>{let e="number"!=typeof b||t.minimumAmount&&t.minimumAmount<=b&&(!t.maximumAmount||t.maximumAmount>=b),n=!y||(!t.minimumPeriod||Math.round((0,E.I)(t.minimumPeriod)/r.F)<=y)&&(!t.maximumPeriod||Math.round((0,E.I)(t.maximumPeriod)/r.F)>=y);return e&&n});if(!i||i.minimumRate<Number(D))return;let{nextRefill:o,nextPartialWithdrawal:l,nextIsCapitalization:a,nextRate:s,nextTerm:u,nextTag:d,nextAmount:c}=function(t){var e,n;let{option:i,depositRate:o,currentTerm:r,currentAmount:l}=t;return{nextRefill:!!i.replenishment,nextPartialWithdrawal:!!i.partialWithdrawal,nextIsCapitalization:!!i.interestPayments.find(t=>!t.accountFromCustomer&&"CAPITALISATION"===t.method),nextRate:o.minimumRate,nextTag:null!==(n=null===(e=o.tags)||void 0===e?void 0:e.title)&&void 0!==n?n:null,nextTerm:function(t,e){let n=t,i=e.minimumPeriod&&(0,E.I)(e.minimumPeriod),o=e.maximumPeriod&&(0,E.I)(e.maximumPeriod);return i&&t<i&&(n=i),o&&t>o&&(n=o),n}(r,o),nextAmount:l||o.minimumAmount}}({depositRate:i,option:t,currentTerm:C,currentAmount:R});j=o,M=l,F=a,D=s,S=d,C=u,R=c})})}let Z=!j&&!M&&F,{finuslugiBonusAllowed:K,finuslugiBonusPromotion:Y,floatingRateInformations:H,firstDepositPromotionAllowed:W,repeatDepositPromotionAllowed:G}=o,V=p.m.FEATURE_TOGGLE_NEW_BONUS_API_ENABLED,Q=!!(W&&!v||G&&v),J=(0,k.p)({currentAmount:null!=b?b:0,finuslugiBonusAllowed:K,finuslugiBonusPromotion:Y,isPlusFiveBonus:g,isOldUser:v,terms:Math.round(y*r.F)}),q=V?Q?f:void 0:J?v?(0,L.pW)(Y):f:void 0,X=(0,s.ax)({rate:D,depositSum:R,isCapitalization:Z,discount:q,term:C,period:a.Z.Day,paymentFrequency:function(t){var e,n,i,o,r;let a=null===(r=t.options)||void 0===r?void 0:null===(o=r[0].interestPayments)||void 0===o?void 0:null===(i=o[0])||void 0===i?void 0:null===(n=i.periods)||void 0===n?void 0:null===(e=n[0])||void 0===e?void 0:e.type;return"MONTHLY"===a?l.Z.OnceAMonth:"DAILY"===a?l.Z.EveryDay:l.Z.InTheEnd}(o),floatingRateInformations:H});if(!X)return;let $=(0,s.PF)(o,j);if(!(0,s.Oh)({computedFlags:$,currentFilters:{withCapitalization:N,withMonthlyPercent:x,withPreferentialTermination:P,withRefill:T}}))return{...$};let tt={legalName:function(t){if(!t)return"";if("string"==typeof t){var e;return null===(e=JSON.parse(t)[0])||void 0===e?void 0:e.name}return null==t?void 0:t[0].name}(null==I?void 0:I.legal_entities),logoMob:null!==(n=null==I?void 0:I.logo_mob)&&void 0!==n?n:"",bankName:null!==(i=null==I?void 0:I.name)&&void 0!==i?i:""};return{deposit:{name:o.name,url:o.internalUrl,id:o.id,bic:o.bic,exclusive:o.exclusive,isNotAmount:!b,isRefill:j,rateAmount:R,computeData:X,currencyUnit:A,tag:S,isCapitalization:F,term:y||Math.round(C/r.F),isArchived:!!o.archive,isTermEmpty:0===y,tags:null!==(e=o.tags)&&void 0!==e?e:[],promo:o.promo,finuslugiBonusAllowed:K,finuslugiBonusPromotion:null!=Y?Y:null,floatingRateInformations:null!=H?H:null,amount:Math.min(...O),type:o.asSavingAccount?h.kv.SavingAccount:h.kv.Deposit,hasDiscount:J,currencies:B,asSavingAccount:o.asSavingAccount,isFloating:z,...tt},...$}}({deposit:e,normalizedBanks:n,filter:o,allExtraInfo:i,region:u,isOldUser:c,isPlusFiveBonus:m,discount:d});return b&&(t.hasMonthlyPercent||(t.hasMonthlyPercent=b.hasMonthlyPercent),t.hasPreferentialTermination||(t.hasPreferentialTermination=b.hasPreferentialTermination),t.hasCapitalization||(t.hasCapitalization=b.hasCapitalization),t.hasRefill||(t.hasRefill=b.hasRefill),b.deposit&&t.items.push({...b.deposit,specialOrder:null!==(f=null===(v=g[e.id])||void 0===v?void 0:v.order)&&void 0!==f?f:null})),t},{items:[],hasMonthlyPercent:!1,hasPreferentialTermination:!1,hasCapitalization:!1,hasRefill:!1}):{items:[],hasMonthlyPercent:!1,hasPreferentialTermination:!1,hasCapitalization:!1,hasRefill:!1}}({deposits:M(T,tt,Z),isOldUser:U,isPlusFiveBonus:O,discount:tn,filter:ti,banks:to,allExtraInfo:B,region:b,isValid:tl,specialDeposits:Z}),tu=V&&(null==Q?void 0:Q.length)?Q:N,td=C({anotherDeposits:tu,region:b,town:y,filter:ti,importantDeposits:tt}),{items:tc,...tm}=(0,f.Z)({deposits:td,filter:ti,banks:S,bankTowns:R,cityId:null!==(e=null==y?void 0:y.id)&&void 0!==e?e:null==b?void 0:b.id,isValid:tl}),tv={sortType:X,increaseSort:"desc"===$},tp=[...tr,...ta].sort((t,e)=>(0,j.Z)({deposit1:t,deposit2:e,isLeadGen:!1,...tv})),th=[...tc].sort((t,e)=>(0,j.Z)({deposit1:t,deposit2:e,isLeadGen:!0,...tv})),t_=[...m({deposits:K,banks:to,specialDeposits:Z})].sort((t,e)=>(0,j.Z)({deposit1:t,deposit2:e,isLeadGen:!1,...tv})),tg=function(t){let{deposits:e,banks:n,sum:i=0,term:o=0,withSavingAccounts:r,isPlusFiveBonus:l,isOldUser:a}=t;return e.filter(t=>!t.archive&&(!t.asSavingsAccount||r)).map(t=>{var e;let r=n[Number(t.bic)],{name:u,withCapitalization:d,withRefill:c,finuslugiBonusAllowed:m,floatingRateInformations:f,minimumAmount:b,minimumTermInDays:y,rate:A,bonusProfit:x,bonusRate:P,baseProfit:N,tags:T,promo:I,profitTerm:D,internalUrl:k,id:L,bic:E,asSavingsAccount:R,rateType:C,optionId:S,firstDepositPromotionAllowed:j,repeatDepositPromotionAllowed:M}=t,F=p.m.FEATURE_TOGGLE_NEW_BONUS_API_ENABLED,B=!!(t.firstDepositPromotionAllowed&&!a||t.repeatDepositPromotionAllowed&&a),{onlyBonusFloatingRate:O}=(0,s.Pp)(A,f);return{name:u,url:k,id:L,bic:E,exclusive:t.exclusive,isNotAmount:!i,isRefill:c,rateAmount:i&&o?i:b,computeData:{result:N,bonus:x,profit:N,effectiveRate:A,bonusRate:P,termDays:D>0?D:y,onlyBonusFloatingRate:O},currencyUnit:v.rO,isCapitalization:d,term:Math.round((D>0?D:y)/30),isArchived:!!t.archive,isTermEmpty:!o,tags:null!=T?T:[],promo:I,finuslugiBonusAllowed:m,amount:i,type:R?h.kv.SavingAccount:h.kv.Deposit,hasDiscount:F?B:m&&l,asSavingAccount:R,isFloating:C===_.e4.FLOATING,logoMob:(0,g.B)(E),bankName:null!==(e=null==r?void 0:r.name)&&void 0!==e?e:"",specialOrder:null,optionId:S,firstDepositPromotionAllowed:j,repeatDepositPromotionAllowed:M}})}({deposits:null!=I?I:[],banks:to,sum:Number(c.amount),term:c.term,withSavingAccounts:G,isPlusFiveBonus:O,isOldUser:U}),tf=T.length+(w?tu.length:0)+tg.length,tb=null!==(n=null!=Y?Y:tf)&&void 0!==n?n:0;return{notInitialDeposits:!0,platform:tg.length>0?tg:tp,another:th,leadGen:t_,allLength:tb,currentLength:tp.length+(w?th.length:0)+tg.length,boundsIsEmpty:0===tr.length,fitsForMonthlyPercentFilter:!W||ts.hasMonthlyPercent||tm.hasMonthlyPercent,fitsForPreferentialTerminationFilter:!W||ts.hasPreferentialTermination||tm.hasPreferentialTermination,fitsForCapitalization:!W||ts.hasCapitalization||tm.hasCapitalization,fitsForRefill:!W||ts.hasRefill||tm.hasRefill}}},75109:function(t,e,n){"use strict";n.d(e,{D:function(){return o},pW:function(){return i},qL:function(){return r}});let i=t=>t&&{fixedBonusAmount:t.fixedBonusAmount,sum:t.maxBonusAmount,rate:t.annualPercentBonusValue,description:t.productsBonusTooltip,terms:t.productDetailBonusTooltip,link:t.helpfulLink},o=(t,e,n,o,r)=>o?r?n:void 0:t?i(e):n;function r(t,e){return!e}},58864:function(t,e,n){"use strict";n.d(e,{Am:function(){return l},mA:function(){return i},oA:function(){return o},ur:function(){return r}});let i=t=>t&&"object"==typeof t?0===Object.keys(t).length:!t,o=t=>t&&"object"==typeof t?Object.keys(t).length>0:!!t,r=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.every(o)};function l(t,e,n){return t?e:n}},37514:function(t,e,n){"use strict";n.d(e,{L:function(){return o}});var i=n(72151);let o=(t,e,n)=>{(0,i.lQ)({event:"data-event",eventLabel:t,eventCategory:e,eventAction:n})}},64554:function(t,e,n){"use strict";n.d(e,{G:function(){return s}});var i=n(2265),o=n(77337),r=n(87566),l=n(14862),a=n(14441);let s=t=>{let{productId:e,optionId:n,amount:s,durationValue:u,passAggregatorId:d=!1,passCombo:c=!1,toSPCS:m=!1}=t,{query:{utm_campaign:v,utm_medium:p,utm_source:h,utm_term:_,aggregator_id:g},hash:{partner_id:f}}=(0,a.P)(),b=d?g:f,y=(0,i.useMemo)(()=>({aggregatorId:null!=b?b:"moex-mp-new-sc",productId:e,optionId:n,amount:s,durationValue:u,utm_campaign:v,utm_medium:p,utm_source:h,utm_term:_}),[b,s,u,n,e,v,p,h,_]);return(0,i.useMemo)(()=>m?(0,o.jb)((0,o.xn)(l.m.LK_URL,r.Yw,String(e)),y):(0,o.jb)((0,o.xn)(l.m.LK_URL,"/add-product"),{...y,...c?{from:"combo"}:null}),[c,e,y,m])}},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_"}}}]);