(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1150],{20830:(t,e,n)=>{"use strict";n.d(e,{V:()=>r});var i=n(10955);let r=t=>{var e,n,r,l,a,o,u,s,m,c,d,p,f,h,v,g,A,b,y,_,R,T,D,P,x,L,N,S;let{deposit:I,bank:M,oldDeposit:E}=t,C=null!=E?E:(0,i.an)(!!(null==I||null==(e=I.attributes)?void 0:e.asSavingAccount)),F=null==(r=I.attributes)||null==(n=r.options)?void 0:n[0],O=(0,i.O)(M),{rates:k,amountFrom:U,amountTo:Y,termFrom:z,termTo:w}=(0,i.Aq)(null!=(_=null==(l=I.attributes)?void 0:l.options)?_:[],null==I||null==(a=I.attributes)?void 0:a.isLadderDeposit);return{...C,...I,id:I.id,url:null!=(R=null==I||null==(o=I.contentAttributes)?void 0:o.url)?R:"",title:I.name,active_to:I.visibleTo,active_from:I.visibleFrom,archive:+(null!=(u=I.contentAttributes)&&!!u.archive),m_updated_at:null!=(T=null==(m=I.contentAttributes)||null==(s=m.updatedAt)?void 0:s.slice(0,10))?T:"",bank_id:Number(null==M?void 0:M.id),bank_name:null!=(D=null==M?void 0:M.name)?D:"",bank_url:null!=(P=null==M?void 0:M.url)?P:"",legal_name:O,currency_id:Number(null==(f=I.attributes.options)||null==(p=f[0])||null==(d=p.currencies)||null==(c=d[0])?void 0:c.currency),online_application:(t=>{var e,n,i,r,l,a,o,u;let s=(null==(n=t.contentAttributes)||null==(e=n.integration)?void 0:e.integrationType)==="REFERAL"||(null==(r=t.contentAttributes)||null==(i=r.integration)?void 0:i.integrationType)==="INTERNAL_REFERAL";return{type:+!!s,url:null!=(u=null==(a=t.contentAttributes)||null==(l=a.integration)?void 0:l.url)?u:"",commercial:+!!s,order:null==(o=t.contentAttributes)?void 0:o.order}})(I),interest_rate:((t,e,n)=>{var i,r,l,a;return{...null==t?void 0:t.interest_rate,rates:e.length?e:null!=(l=null==(i=t.interest_rate)?void 0:i.rates)?l:[],comment:null!=(a=null==(r=n.contentAttributes)?void 0:r.ratesComment)?a:""}})(C,k,I),amount:{...C.amount,from:U,to:Y},term:{...C.term,from:z,to:w},efficientRate:I.attributes.efficientRate,partial_withdrawal:{...C.partial_withdrawal,has:(0,i.YJ)(F),text:(0,i.vA)(F)},interest_payment:((t,e)=>{var n,i,r;let l=null!=(r=null==e||null==(i=e.interestPayments)||null==(n=i[0])?void 0:n.periods)?r:[],a=l.map(t=>t.type),o=l.map(t=>(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)?e:0,"-й день"):""})(t)).join("<br/>");return{...t.interest_payment,text:o,daily:+!!a.includes("DAILY"),weekly:+!!a.includes("WEEKLY"),monthly:+!!a.includes("MONTHLY"),quarterly:+!!a.includes("QUARTERLY"),half_year:+!!a.includes("SEMIANNUALLY"),annually:+!!a.includes("ANNUALLY"),end:+!!a.includes("IN_THE_END"),specified_period_in_days:+!!a.includes("SPECIFIED_PERIOD_IN_DAYS")}})(C,F),productFeature:null==(h=I.attributes)?void 0:h.productFeature,refill:{comment:"",...C.refill,has:(0,i.sD)(F),text:(0,i.dl)(F)},interest_capitalization:{comment:"",...C.interest_capitalization,has:(0,i.M0)(F),text:(0,i.Je)(F)},preferential_termination:{...C.preferential_termination,has:(0,i._7)(F),text:(0,i.DD)(F)},type:((t,e)=>{var n,i;let r=null!=(i=null==(n=t.attributes)?void 0:n.asSavingAccount)?i:"saving_account"===t.productType;return{charitable:+("charitable"===t.productType),child:+("child"===t.productType),insurance:+("insurance"===t.productType),investment:+("investment"===t.productType),martgage:+("mortgage"===t.productType),multicurrency:+((null==e?void 0:e.currencies.length)>1),pension:+("pension"===t.productType),salary:+("salary"===t.productType),saving_account:+!!r,seasonal:+("seasonal"===t.productType)}})(I,F),prolongation:{text:(null==F?void 0:F.prolongations)?"Предусмотрена":"Не предусмотрена"},all_russia:+(null!=(v=I.contentAttributes)&&!!v.availableAllRussia),custom_regions:null!=(x=null==(g=I.attributes)?void 0:g.regionsData)?x:[],multicurrency:+((null==F?void 0:F.currencies.length)>1),finuslugiBonusPromotion:{},fin_exclusive:+!!I.attributes.exclusive,asSavingAccount:null!=(L=I.attributes.asSavingAccount)&&L,promo:!1,floatingRateInformations:I.floatingRateInformations,external:{integrationType:null==(b=I.contentAttributes)||null==(A=b.integration)?void 0:A.integrationType},options:I.attributes.options,attributesComments:null!=(N=null==F?void 0:F.attributesComments)?N:[],prolonging:null!=(S=I.attributes.prolonging)&&S,bic:(t=>t?String(t).padStart(9,"0"):"")(null==(y=I.contentAttributes)?void 0:y.bic),isLadderDeposit:I.attributes.isLadderDeposit}}},37465:(t,e,n)=>{"use strict";n.d(e,{Hn:()=>r,Ws:()=>l,Wu:()=>i,w3:()=>a});let i=t=>t&&"object"==typeof t?0===Object.keys(t).length:!t,r=t=>t&&"object"==typeof t?Object.keys(t).length>0:!!t,l=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.every(r)};function a(t,e,n){return t?e:n}},50769:(t,e,n)=>{"use strict";n.d(e,{U:()=>x});var i=n(5195),r=n(6425),l=n(19927),a=n(75722),o=n(46828),u=n(96065),s=n(25844),m=n(97390),c=n(2748),d=n(55670),p=n(67028);let f={0:[1,2,3,4,5,6],1:[23,24],2:[8],4:[1,8,9],5:[12],10:[6]},h={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 f&&f[e].includes(n)}},v=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number(Number(t).toFixed(e))},g=t=>{let e=new Date(t);return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e};var A=n(40683),b=n(67087),y=n(48188),_=n(89910),R=n(233),T=n(37190);function D(t){var e,n,i,r,l,a,o;let u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=t.interestPayments,m=null!=(a=s.find(t=>!t.accountFromCustomer&&"CAPITALISATION"===t.method))?a:s.find(t=>"CAPITALISATION"===t.method),c=null!=(o=null==m||null==(n=m.periods)||null==(e=n[0])?void 0:e.type)?o:null==(l=s[0])||null==(r=l.periods)||null==(i=r[0])?void 0:i.type;return u?(0,T.BP)(c):(0,b.v)(null!=c?c:"")}var P=n(35891);function x(t){let{initialPlatformDeposits:e=[],initialAnotherDeposits:n=[],initialLeadGenDeposits:f=[],filter:b,region:x,town:L,discounts:N,anotherDeposits:S,platformDeposits:I,newPlatformDeposits:M,bankTowns:E,banks:C,bounds:F,allExtraInfo:O,isPlusFiveBonus:k,isOldUser:U,anotherDepositsInCount:Y=!0,getOnlyInitialData:z=!1,specialDeposits:w={},leadGenDeposits:H=[],initialAllDepositsLength:W,initialCurrentDepositsLength:q,calculateFilterAbilities:j=!0,withSavingAccounts:B=!1,shouldFilterByAllOffers:G=!1,allOffers:V=null,showOnlyNonPromo:K=!1}=t,{amount:J,term:Q,sortType:X,order:Z,importantDeposits:$=[],filterAdditionalSettings:tt=[i.G.bonds,i.G.deposits]}=b;if(z){var te,tn;let{initialPlatformDeposits:t,initialAnotherDeposits:i,anotherDepositsInCount:r,initialLeadGenDeposits:l,initialAllDepositsLength:a,initialCurrentDepositsLength:o}={initialPlatformDeposits:e,initialAnotherDeposits:n,anotherDepositsInCount:Y,initialLeadGenDeposits:f,initialAllDepositsLength:W,initialCurrentDepositsLength:q},u=t.length+(r?i.length:0);return{platform:t,another:i,leadGen:l,allLength:a||u,currentLength:o||u,boundsIsEmpty:!0,fitsForMonthlyPercentFilter:!0,fitsForPreferentialTerminationFilter:!0,fitsForCapitalization:!0,fitsForRefill:!0}}let ti=null==N?void 0:N.find(t=>"five_procent"===t.unique_key),tr={...b,amount:J?Number(J):null,term:Number(null!=Q?Q:0)},tl=null==C?void 0:C.reduce((t,e)=>({...t,[Number(e.bic)]:e}),{}),ta=function(t){let{bounds:e,filter:n,isValid:i}=t;if(!i)return[];let{amount:r,term:a,currency:o}=n;return e.reduce((t,e)=>{var n,i;let u=(e&&(null==(n=e.api_data)?void 0:n.product)||{}).minCouponPaymentSizePercent,s={bond:e,depositValue:null!=r?r:0,depositPeriod:a},c=(t=>{let e=Math.round(t.depositPeriod*l.L);return t?((t,e)=>{let n=t.bond&&t.bond.api_data&&t.bond.api_data.product||{},i=n.price&&n.price.base,r=n.price?n.price.total:1e3,l=Math.floor(t.depositValue/r),a=v(l*r),o=(n.eventsData&&n.eventsData.events||[]).filter(t=>"INTR"===t.type),u=o.findIndex(t=>{let n=g(t.eventDate);return n.setHours(23),n.setMinutes(59),n.setSeconds(59),n.setMilliseconds(0),e>=g(t.eventStartDate)&&e<=n}),s=0;if(u>=0){let t=o[u],n=Math.floor((e.getTime()-g(t.eventStartDate).getTime())/864e5),r=v(t.paymentSizePercent*i*n/36500);return u>=1&&(s=o.slice(0,u).reduce((t,e)=>v(t+e.paymentSize),0)),v(l*i+l*r+l*s-a)}return 0})(t,(t=>{let e=g((t=>{for(h.isWorkTime(t)||t.setDate(t.getDate()+1);h.isWeekend(t)||h.isHoliday(t);)t.setDate(t.getDate()+1);return t})(new Date));return e.setDate(e.getDate()+t),e})(e)):0})(s),d=c<=5e6?.87:.85,p=r?v((t=>{let e=t.bond&&t.bond.api_data&&t.bond.api_data.product||{},n=e.minCouponPaymentSizePercent,i=t.income,r=e.price?e.price.total:1e3,a=v(Math.floor(t.depositValue/r)*r),o=Math.round(t.depositPeriod*l.L);return i&&a&&o?v(i/a*365/o*100,1):n})({...s,income:c})*d):u,f=c*d;if(p<=0||f<=0)return t;let A=Math.round(30.4375*s.depositPeriod);return[...t,{name:e.name,url:e.url,id:e.id,logoMob:null!=(i=e.image_url)?i:"",rateAmount:p,computeData:{result:f,profit:f,rate:p,effectiveRate:p,bonus:0,bonusRate:0,termDays:A,onlyBonusFloatingRate:0},currencyUnit:null!=o?o:"₽",tag:e.tag,term:null!=a?a:0,isBound:!0,isArchived:!1,amount:null!=r?r:0,type:m.ch.Bond,specialOrder:null,bic:""}]},[])}({bounds:$.length?F.filter(t=>$.includes(String(t.id))):F,filter:tr,isValid:tt.includes(i.G.bonds)}),to=tt.includes(i.G.deposits),{items:tu,...ts}=function(t){let{deposits:e,banks:n,allExtraInfo:i,filter:r,region:d,discount:p,isOldUser:f,isPlusFiveBonus:h,isValid:v,specialDeposits:g}=t;return v?e.reduce((t,e)=>{var v,b;let P=function(t){var e,n,i,r,d;let p,{deposit:f,normalizedBanks:h,filter:v,allExtraInfo:g,region:b}=t,{amount:P,term:x,currency:L,withMonthlyPercent:N=!1,withPreferentialTermination:S=!1,withCapitalization:I,withRefill:M}=v,E=L||s.bc,C=null==h?void 0:h[Number(f.bic)],F=null,O=P,k="DAY"===v.termUnit?Math.round(x):Math.round(x*l.L),U=k,Y=null,z=null,w=!!f.options[0].replenishment||f.asSavingAccount,H=f.options[0].interestPayments.some(t=>"CAPITALISATION"===t.method),W=D(f.options[0],v.isCalculatorOfferFilter),q=f.options[0].currencies[0],j=[],B=g[f.internalUrl],G=function(t){let{deposit:e,region:n,bankId:i,filter:r,currencyUnit:l}=t,a=!e.regions||!(null==n?void 0:n.region_id)||e.regions.includes(+n.region_id),o=(0,u.Ai)(r,i);return(!l||l===s.bc)&&o&&a}({deposit:f,region:b,currencyUnit:L,filter:v,bankId:String(null==C?void 0:C.id)}),V=(null==(e=f.options.find(t=>t.active))?void 0:e.rateType)===c.Y4.FLOATING;G&&f.options.filter(t=>t.active).forEach(t=>{var e;let n={};if(v.isCalculatorOfferFilter&&(n=(0,T.Rf)(t,{capitalization:I,floatingRate:v.floatingRate})),!n)return;let i=n;null==(e=t.currencies)||e.forEach(e=>{var n,r,s,m;let d=function(t,e){var n;if((null==e||null==(n=e.algo)?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,B);d.forEach(t=>j.push(t.minimumAmount));let h=null;if(f.isLadderDeposit)h=function(t){let{option:e,currencyRates:n,currentAmount:i,filterTerm:r,filterTermUnit:a}=t;if(!function(t,e,n){if(!e)return!0;let{minimum:i,maximum:r}=t.duration;if("DAY"===n)return e>=i&&e<=r;let a=Math.round(i/l.L),o=Math.round(r/l.L);return e>=a&&e<=o}(e,r,a))return null;let o=function(t,e,n){let{minimum:i,maximum:r}=t.duration,a="DAY"===n?Math.round(e):Math.round(e*l.L);return(!a||a<i)&&(a=i),r&&a>r&&(a=r),a}(e,r,a),u=Math.min(...n.map(t=>t.minimumAmount)),s=null!=i?i:u,m=n.map(t=>{var e;return{amount_from:t.minimumAmount,amount_to:t.maximumAmount,term_from:t.minimumPeriod?(0,R.i)(t.minimumPeriod):1,term_to:t.maximumPeriod?(0,R.i)(t.maximumPeriod):o,rate:null!=(e=t.maximumRate)?e:t.minimumRate}}),c=(0,y.x)({amount:s,term:o,rates:m});return c?{nextRefill:!!e.replenishment,nextPartialWithdrawal:!!e.partialWithdrawal,nextIsCapitalization:!!e.interestPayments.find(t=>"CAPITALISATION"===t.method),nextRate:c.rate,nextTag:null,nextTerm:o,nextAmount:s}:null}({option:t,currencyRates:d,currentAmount:P,filterTerm:x,filterTermUnit:null!=(n=v.termUnit)?n:"MONTH"});else{let e=(m=null!=(r=v.termUnit)?r:"MONTH",[...d].sort((t,e)=>e.minimumRate-t.minimumRate).find(t=>{let e="number"!=typeof P||t.minimumAmount&&t.minimumAmount<=P&&(!t.maximumAmount||t.maximumAmount>=P),n=t.minimumPeriod?(0,R.i)(t.minimumPeriod):0,i=t.maximumPeriod?(0,R.i)(t.maximumPeriod):1/0,r=!x||("DAY"===m?x>=n&&x<=i:x>=Math.round(n/l.L)&&x<=Math.round(i/l.L));return e&&r}));e&&(h=function(t){var e,n;let{option:i,depositRate:r,currentTerm:l,currentAmount:a}=t;return{nextRefill:!!i.replenishment,nextPartialWithdrawal:!!i.partialWithdrawal,nextIsCapitalization:!!i.interestPayments.find(t=>"CAPITALISATION"===t.method),nextRate:r.minimumRate,nextTag:null!=(n=null==(e=r.tags)?void 0:e.title)?n:null,nextTerm:function(t,e){let n=t,i=e.minimumPeriod&&(0,R.i)(e.minimumPeriod),r=e.maximumPeriod&&(0,R.i)(e.maximumPeriod);return i&&t<i&&(n=i),r&&t>r&&(n=r),n}(l,r),nextAmount:a||r.minimumAmount}}({depositRate:e,option:t,currentTerm:k,currentAmount:P}))}if(!h)return;let{nextRefill:g,nextRate:A,nextTerm:b,nextTag:T,nextAmount:L}=h,E=(0,u.Jc)({...f,options:[t]},g);if(!(0,u.cT)({computedFlags:E,currentFilters:{withCapitalization:I,withMonthlyPercent:N,withPreferentialTermination:S,withRefill:M}}))return;let C=N&&!I&&E.hasMonthlyPercent,q=!C&&(null!=(s=i.isCapitalization)?s:h.nextIsCapitalization),G=C?a.A.OnceAMonth:D(t,v.isCalculatorOfferFilter),K=(0,u.q6)({rate:A,depositSum:L,isCapitalization:q,term:b,period:o.A.Day,dateStart:v.dateStart,paymentFrequency:G,floatingRateInformations:f.floatingRateInformations});if(!K)return;let J=(0,_.rW)(K.effectiveRate,2),Q=(0,_.rW)((0,u.C6)(f,K.effectiveRate,A),2);(0,u.tq)({catalogRate:Q,effectiveRate:K.effectiveRate,productRate:A,filterRate:v.rate,inputRate:v.inputRate,isCalculatorOfferFilter:v.isCalculatorOfferFilter})&&(null!==z&&J<z||(z=J,p=t.id,w=g,v.isCalculatorOfferFilter&&(V=t.rateType===c.Y4.FLOATING),H=q,W=G,F=A,Y=T,U=b,O=L))})});let K=H,J=(0,u.Jc)(f,f.asSavingAccount||f.options.some(t=>t.active&&!!t.replenishment)),{finuslugiBonusAllowed:Q,finuslugiBonusPromotion:X,floatingRateInformations:Z}=f,$=(0,u.q6)({rate:F,depositSum:O,isCapitalization:K,term:U,period:o.A.Day,dateStart:v.dateStart,paymentFrequency:W,floatingRateInformations:Z}),tt=(0,u.lx)(f,$,F);if(!tt)return G?J:void 0;if(!(0,u.tq)({catalogRate:tt.effectiveRate,effectiveRate:null!=(n=null==$?void 0:$.effectiveRate)?n:tt.effectiveRate,productRate:F,filterRate:v.rate,inputRate:v.inputRate,isCalculatorOfferFilter:v.isCalculatorOfferFilter}))return J;let te={legalName:function(t){if(!t)return"";if("string"==typeof t){var e;return null==(e=JSON.parse(t)[0])?void 0:e.name}return null==t?void 0:t[0].name}(null==C?void 0:C.legal_entities),logoMob:null!=(r=null==C?void 0:C.logo_mob)?r:"",bankName:null!=(d=null==C?void 0:C.name)?d:""},tn=(0,A.Dm)({options:f.options,mkbData:void 0,additionalRate:0});return{deposit:{name:f.name,url:f.internalUrl,id:f.id,bic:f.bic,exclusive:f.exclusive,isNotAmount:!P,isRefill:w,rateAmount:O,computeData:tt,currencyUnit:E,tag:Y,isCapitalization:H,...v.isCalculatorOfferFilter?{paymentFrequency:W}:{},optionId:p,term:"DAY"===v.termUnit?U:x||Math.round(U/l.L),isArchived:!!f.archive,isTermEmpty:0===x,isFixedTerm:1===tn.length&&"fixed"===tn[0].termType,isLadderDeposit:f.isLadderDeposit,tags:null!=(i=f.tags)?i:[],promo:f.promo,finuslugiBonusAllowed:Q,finuslugiBonusPromotion:null!=X?X:null,floatingRateInformations:null!=Z?Z:null,amount:Math.min(...j),type:f.asSavingAccount?m.ch.SavingAccount:m.ch.Deposit,hasDiscount:!1,currencies:q,asSavingAccount:f.asSavingAccount,isFloating:V,...te},...J}}({deposit:e,normalizedBanks:n,filter:r,allExtraInfo:i,region:d,isOldUser:f,isPlusFiveBonus:h,discount:p});return P&&(t.hasMonthlyPercent||(t.hasMonthlyPercent=P.hasMonthlyPercent),t.hasPreferentialTermination||(t.hasPreferentialTermination=P.hasPreferentialTermination),t.hasCapitalization||(t.hasCapitalization=P.hasCapitalization),t.hasRefill||(t.hasRefill=P.hasRefill),P.deposit&&t.items.push({...P.deposit,specialOrder:null!=(b=null==(v=g[e.id])?void 0:v.order)?b:null})),t},{items:[],hasMonthlyPercent:!1,hasPreferentialTermination:!1,hasCapitalization:!1,hasRefill:!1}):{items:[],hasMonthlyPercent:!1,hasPreferentialTermination:!1,hasCapitalization:!1,hasRefill:!1}}({deposits:I.filter(t=>$.length?$.includes(String(t.id)):!!w[t.id]||!t.archive),isOldUser:U,isPlusFiveBonus:k,discount:ti,filter:tr,banks:tl,allExtraInfo:O,region:x,isValid:to,specialDeposits:w}),tm=G&&(null==V?void 0:V.length)?V:S,tc=(t=>{let e,n,{anotherDeposits:i,region:r,town:l,importantDeposits:a}=t;return e=(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.length)<1||(null==(i=t.custom_regions)?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.length)<1||(null==(n=t.custom_regions)?void 0:n.some(t=>t.cities.includes(i.id)))}):e})({deposits:i,region:r,town:l}),n=a,e.filter(t=>n.length?n.includes(String(t.id)):!t.archive)})({anotherDeposits:tm,region:x,town:L,filter:tr,importantDeposits:$}),{items:td,...tp}=(0,p.A)({deposits:tc,filter:tr,banks:C,bankTowns:E,cityId:null!=(te=null==L?void 0:L.id)?te:null==x?void 0:x.id,isValid:to}),tf={sortType:X,increaseSort:"desc"===Z},th=[...ta,...tu].sort((t,e)=>(0,P.A)({deposit1:t,deposit2:e,isLeadGen:!1,...tf})),tv=[...td].sort((t,e)=>(0,P.A)({deposit1:t,deposit2:e,isLeadGen:!0,...tf})),tg=[...(t=>{let{deposits:e,banks:n,specialDeposits:i}=t;return e.length?e.map(t=>{var e,s,m;let{contentAttributes:c,provider:d}=t,p=null!=(s=n[c.bic])?s:n[Number(d.bic)];if(!p)return;let f=(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 r=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 r.rate.maximumRate>t.currency.rate.maximumRate?{...e,currency:r}:t},{...e[0],currency:{...n,rate:i}})})(t.attributes.options);if(!f)return;let{currency:{rate:h}}=f,v=(0,u.q6)({rate:h.maximumRate,depositSum:h.minimumAmount,isCapitalization:!1,term:(t=>{let{type:e,value:n}=t;switch(!0){case e===r.s.DAY:return n;case e===r.s.MONTH:return Math.round(n*l.L);case e===r.s.YEAR:return Math.round(365*n);default:return 0}})(h.minimumPeriod),period:o.A.Day,paymentFrequency:a.A.InTheEnd});return{name:t.name,url:c.url,id:t.id,logoMob:p.logo_mob,order:c.order,bankName:p.name,bic:String(c.bic),rateAmount:h.minimumAmount,computeData:v,currencyUnit:"₽",isArchived:!1,amount:h.minimumAmount,type:t.attributes.asSavingAccount?"savingAccount":"deposit",specialOrder:null!=(m=null==(e=i[t.id])?void 0:e.order)?m:null,term:(t=>{let{type:e,value:n}=t;switch(!0){case e===r.s.DAY:return Math.round(n/l.L);case e===r.s.MONTH:return n;case e===r.s.YEAR:return 12*n;default:return 0}})(h.minimumPeriod),isNotAmount:!0,isTermEmpty:!0,asSavingAccount:t.attributes.asSavingAccount}}).filter(Boolean):[]})({deposits:H,banks:tl,specialDeposits:w})].sort((t,e)=>(0,P.A)({deposit1:t,deposit2:e,isLeadGen:!1,...tf})),tA=function(t){let{deposits:e,banks:n,sum:i=0,term:r=0,withSavingAccounts:l,isOldUser:a,showOnlyNonPromo:o}=t;return e.filter(t=>!t.archive&&(!t.asSavingsAccount||l)).map(t=>{var e;let l=n[Number(t.bic)],{name:p,withCapitalization:f,withRefill:h,finuslugiBonusAllowed:v,floatingRateInformations:g,minimumAmount:A,minimumTermInDays:b,rate:y,bonusProfit:_,bonusRate:R,baseProfit:T,tags:D,promo:P,profitTerm:x,internalUrl:L,id:N,bic:S,asSavingsAccount:I,rateType:M,optionId:E,firstDepositPromotionAllowed:C,repeatDepositPromotionAllowed:F}=t,O=!!(!o&&t.firstDepositPromotionAllowed&&!a||t.repeatDepositPromotionAllowed&&a),{onlyBonusFloatingRate:k}=(0,u.$Q)(y,g);return{name:p,url:L,id:N,bic:S,exclusive:t.exclusive,isNotAmount:!i,isRefill:h,rateAmount:i&&r?i:A,computeData:{result:T,bonus:_,profit:T,effectiveRate:y,bonusRate:O?R:0,termDays:x>0?x:b,onlyBonusFloatingRate:k},currencyUnit:s.bc,isCapitalization:f,term:Math.round((x>0?x:b)/30),isArchived:!!t.archive,isTermEmpty:!r,tags:null!=D?D:[],promo:P,finuslugiBonusAllowed:v,amount:i,type:I?m.ch.SavingAccount:m.ch.Deposit,hasDiscount:O,asSavingAccount:I,isFloating:M===c.Y4.FLOATING,logoMob:(0,d.z)(S),bankName:null!=(e=null==l?void 0:l.name)?e:"",specialOrder:null,optionId:E,firstDepositPromotionAllowed:C,repeatDepositPromotionAllowed:F}})}({deposits:null!=M?M:[],banks:tl,sum:Number(b.amount),term:b.term,withSavingAccounts:B,isPlusFiveBonus:k,isOldUser:U,showOnlyNonPromo:K}),tb=I.length+(Y?tm.length:0)+tA.length,ty=null!=(tn=null!=W?W:tb)?tn:0;return{notInitialDeposits:!0,platform:tA.length>0?tA:th,another:tv,leadGen:tg,allLength:ty,currentLength:th.length+(Y?tv.length:0)+tA.length,boundsIsEmpty:0===ta.length,...{fitsForMonthlyPercentFilter:!j||ts.hasMonthlyPercent||tp.hasMonthlyPercent,fitsForPreferentialTerminationFilter:!j||ts.hasPreferentialTermination||tp.hasPreferentialTermination,fitsForCapitalization:!j||ts.hasCapitalization||tp.hasCapitalization,fitsForRefill:!j||ts.hasRefill||tp.hasRefill}}}},75937:(t,e,n)=>{"use strict";n.d(e,{CpaParams:()=>v,default:()=>h});var i=n(95155),r=n(22191),l=n(33974),a=n(75174),o=n(12115),u=n(20447),s=n(99291),m=n(94370),c=n(88992);function d(){return null}function p(t){let{children:e,onError:n}=t;return(0,i.jsx)(c.tH,{FallbackComponent:d,onError:n,children:e})}let f="".concat(u.q.ASSETS_URL,"/mp-assets");function h(t){let{children:e,aggregatorIds:n,headerData:s,footerData:c}=t,d=(0,o.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)(v,{aggregatorIds:n}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p,{onError:d,children:s&&(0,i.jsx)(a.Y9,{data:s,showcaseUrl:u.q.BASE_URL,minioUrl:f,lkUrl:u.q.LK_URL,enableExternalLinkWarning:u.q.ENABLE_EXTERNAL_LINK_WARNING})}),e,c&&(0,i.jsx)(l.w,{data:c,showcaseUrl:u.q.BASE_URL,minioUrl:f})]}),(0,i.jsx)(m.Z,{children:(0,i.jsx)(r.S,{})})]})}function v(t){return(0,s.A)(t.aggregatorIds),null}},79655:t=>{t.exports={breadcrumbs:"Breadcrumbs_breadcrumbs__wgDQB"}},80333:(t,e,n)=>{"use strict";n.d(e,{s:()=>r});var i=n(19559);let r=(t,e,n)=>{(0,i.oA)({event:"data-event",eventLabel:t,eventCategory:e,eventAction:n})}},94586:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(81637);function r(t){let{params:e,depositUrl:n,amount:r,term:l,isBound:a,baseUrl:o,paramsType:u,isTermInDays:s}=t;if(a)return n;let m="hash"===u?(0,i.p2)("/".concat(n),(0,i._b)({amount:r,...s?{d_period:l}:{period:l}})):(0,i.VL)("/".concat(n),{amount:r,period:l}),c=e?(0,i.VL)(m,e):m;return(0,i.oq)(o,c)}},96918:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(95155),r=n(14894),l=n(2821),a=n(12115),o=n(79655),u=n.n(o);let s=(0,a.memo)(function(t){let{items:e=[],className:n,disableLastHref:o=!0,...s}=t,m=(0,a.useMemo)(()=>((t,e)=>{if(!t.length)return[];let n=[{label:"Главная",href:"/"},...t];return e&&(n[n.length-1].href=void 0),n})(e,o),[e,o]);return(0,i.jsx)(r.B,{...s,items:m,className:(0,l.A)(u().breadcrumbs,n),isMobile:!1,isFullView:!0})})}}]);