(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7945],{75347:function(){},31777:function(){},34017:function(){},59905:function(){},6164:function(t,e,n){"use strict";var r,i;n.d(e,{e:function(){return r}}),(i=r||(r={})).DAY="DAY",i.MONTH="MONTH",i.TERMLESS="TERMLESS",i.YEAR="YEAR"},31575:function(t,e,n){"use strict";n.d(e,{H:function(){return o},s:function(){return i}});var r=n(67628);let i=Object.freeze({[r._.MIN_BALANCE]:"На минимальный остаток",[r._.AVG_BALANCE]:"На средний остаток",[r._.DAILY_BALANCE]:"На ежедневный остаток"}),o=Object.freeze({DAILY:"Ежедневно",MONTHLY:"Ежемесячно"})},67628:function(t,e,n){"use strict";var r,i,o,u;n.d(e,{B:function(){return i},_:function(){return r}}),(o=r||(r={})).MIN_BALANCE="MIN_BALANCE",o.AVG_BALANCE="AVG_BALANCE",o.DAILY_BALANCE="DAILY_BALANCE",(u=i||(i={})).SpendingRange="SPENDING_RANGE",u.ServicePackage="SERVICE_PACKAGE"},2368:function(t,e,n){"use strict";n.d(e,{U:function(){return u}});var r,i,o=n(40309);(r=i||(i={})).DAILY="DAILY",r.WEEKLY="WEEKLY",r.MONTHLY="MONTHLY",r.QUARTERLY="QUARTERLY",r.SEMIANNUALLY="SEMIANNUALLY",r.ANNUALLY="ANNUALLY",r.IN_THE_END="IN_THE_END";let u=t=>"DAILY"===t?o.Z.EveryDay:"WEEKLY"===t?o.Z.Weekly:"MONTHLY"===t||"IN_THE_END"===t?o.Z.OnceAMonth:"QUARTERLY"===t?o.Z.Quarterly:"SEMIANNUALLY"===t?o.Z.Semiannually:"ANNUALLY"===t?o.Z.Annually:o.Z.InTheEnd},33600:function(t,e,n){"use strict";var r,i,o,u,a,l;n.d(e,{ER:function(){return r},kv:function(){return o},mr:function(){return i}}),(u=r||(r={})).RatePlusBonus="rate+bonus",u.Rate="rate",u.Profit="profit",(a=i||(i={})).Asc="asc",a.Desc="desc",(l=o||(o={})).Deposit="deposit",l.SavingAccount="savingAccount",l.Bond="bond"},34200:function(t,e,n){"use strict";var r,i;n.d(e,{a:function(){return r}}),(i=r||(r={})).amount="amount",i.term="term",i.currency="currency",i.banks="banks",i.refill="refill",i.capitalization="capitalization",i.bonds="bonds",i.deposits="deposits",i.premium="premium",i.monthlyPercent="monthlyPercent",i.preferentialTermination="preferentialTermination",i.interestAccrual="interestAccrual"},94441:function(t,e,n){"use strict";n.d(e,{HP:function(){return l},I7:function(){return _},MP:function(){return y},Nx:function(){return h},UD:function(){return A},VV:function(){return p},bh:function(){return m},f1:function(){return v},u0:function(){return f},vc:function(){return s},vf:function(){return d},xV:function(){return c}});var r=n(15329),i=n(84456);let o=(t,e)=>Math.min(t,e.minimumPeriod?(0,i.I)(e.minimumPeriod):0),u=(t,e)=>Math.max(t,e.maximumPeriod?(0,i.I)(e.maximumPeriod):0),a=(t,e,n)=>{var r,o,u,a,l,c;e.push({from:null,to:null,term:null,amount:null,term_from:n.minimumPeriod?(0,i.I)(n.minimumPeriod):0,term_to:n.maximumPeriod?(0,i.I)(n.maximumPeriod):0,rate:n.maximumRate,amount_from:null!==(l=n.minimumAmount)&&void 0!==l?l:null,amount_to:null!==(c=n.maximumAmount)&&void 0!==c?c:null,diff:n.topRateDelta||0,tag:{title:(null==n?void 0:null===(r=n.tags)||void 0===r?void 0:r.title)||"",description:(null==n?void 0:null===(o=n.tags)||void 0===o?void 0:o.description)||"",deeplink:(null==n?void 0:null===(u=n.tags)||void 0===u?void 0:u.deepLink)||"",url:(null==n?void 0:null===(a=n.tags)||void 0===a?void 0:a.url)||""},optionId:t.id})},l=(t,e)=>{let n=[],r=1/0,i=0,l=1/0,c=0;for(let f of t)if(null==f?void 0:f.active){if(e){var s,m,d,v;let t=null!==(d=null===(s=f.duration)||void 0===s?void 0:s.minimum)&&void 0!==d?d:0,e=null!==(v=null===(m=f.duration)||void 0===m?void 0:m.maximum)&&void 0!==v?v:0;l=Math.min(l,t),c=Math.max(c,e)}for(let t of f.currencies||[])for(let s of t.rates||[])a(f,n,s),r=Math.min(r,s.minimumAmount),i=Math.max(i,s.maximumAmount),e||(l=o(l,s),c=u(c,s))}return{rates:n,amountFrom:r,amountTo:i,termFrom:l,termTo:c}},c=t=>{var e;return(null==t?void 0:null===(e=t.interestPayments)||void 0===e?void 0:e.some(t=>(null==t?void 0:t.method)==="CAPITALISATION"))?1:0},s=t=>c(t)?"Да":"Нет",m=t=>{var e;let{hasCapitalization:n,hasCurrentAccount:r}=(null!==(e=null==t?void 0:t.interestPayments)&&void 0!==e?e:[]).reduce((t,e)=>({hasCapitalization:t.hasCapitalization||"CAPITALISATION"===e.method,hasCurrentAccount:t.hasCurrentAccount||"TO_CURRENT_BANK_CUSTOMER_ACCOUNT"===e.method}),{hasCapitalization:!1,hasCurrentAccount:!1});return n&&r?"На выбор клиента":n?"Да":"Нет"},d=t=>(null==t?void 0:t.earlyTermination)===r.Z.PreferentialRateForWholeTerm||(null==t?void 0:t.earlyTermination)===r.Z.WithoutRecalculationOfInterest?1:0,v=t=>d(t)?"Да":"Нет",f=t=>{var e,n;return(null==t?void 0:null===(n=t.replenishment)||void 0===n?void 0:null===(e=n[0])||void 0===e?void 0:e.type)?1:0},p=t=>f(t)?"Возможно":"Невозможно",h=t=>{var e,n;return(null==t?void 0:null===(n=t.partialWithdrawal)||void 0===n?void 0:null===(e=n[0])||void 0===e?void 0:e.type)?1:0},A=t=>h(t)?"Возможно":"Невозможно",_=t=>{try{var e,n;if(!t)return"";let r=t.legal_entities;if("string"==typeof r){let t=JSON.parse(r);return Array.isArray(t)&&(null===(n=t[0])||void 0===n?void 0:n.name)?t[0].name:""}if(Array.isArray(r))return(null===(e=r[0])||void 0===e?void 0:e.name)||"";return""}catch(t){return""}},y=t=>({status_custom:null,currency_id:1,fin_exclusive:0,active_to:"",archive:0,bank_id:0,bank_name:"",bank_url:"",logo_mob:"",asSavingAccount:t,interest_rate:{comment:"",rates:[]},multicurrency:0,partial_withdrawal:{comment:"",comp:"",text:"",has:0},interest_payment:{comment:"",comp:"",text:"",daily:0,weekly:0,monthly:0,quarterly:0,half_year:0,annually:0,end:0},refill:{comment:"",comp:"",text:"",has:0},interest_capitalization:{comment:"",comp:"",has:0,text:""},preferential_termination:{comment:"",comp:"",text:"",has:0},amount:{from:null,to:null},term:{from:0,to:"",ladder_rates:0},online_application:{type:3,url:"",commercial:0,commercial_desc:"",order:null},m_updated_at:null,promo:!1,type:{seasonal:0,charitable:0,saving_account:t?1:0,child:0,pension:0,salary:0,insurance:0,investment:0,multicurrency:0,martgage:0}})},16639:function(t,e,n){"use strict";n.d(e,{Z:function(){return _}});var r=n(57437),i=n(49090),o=n(31575),u=n(70104),a=n(36578),l=n(64158),c=n.n(l);let s=t=>{var e,n;let{data:i,discount:o}=t;return(0,r.jsxs)("div",{className:c().tooltipText,children:[(0,r.jsxs)("ul",{className:c().tooltipList,children:[(0,r.jsxs)("li",{className:c().listItem,children:["доход от банка:"," ",(0,r.jsxs)("span",{children:[(0,u.Y4)((null==i?void 0:null===(e=i.computeData)||void 0===e?void 0:e.profit)||0,2)," ",i.currencyUnit]})]}),(0,r.jsxs)("li",{className:c().listItem,children:["бонус от Финуслуг:"," ",(0,r.jsxs)("span",{children:[(0,u.Y4)((null==i?void 0:null===(n=i.computeData)||void 0===n?void 0:n.bonus)||0,2)," ",i.currencyUnit]})]})]}),(0,r.jsx)("p",{className:c().description,dangerouslySetInnerHTML:{__html:(null==o?void 0:o.terms)||""}})]})},m=t=>!t.isNotAmount&&!t.isTermEmpty,d=t=>{if(m(t)||"savingAccount"!==t.type||!t.rateType){if(m(t)){if(t.computeData&&!t.isNotAmount){let{termDays:e,bonus:n,profit:r}=t.computeData,i="Доход за ".concat((0,a.PY)(e,["день","дня","дней"]));n&&(i+=" + бонус");let o="".concat((0,u.Y4)(r+n,2),"  ").concat(t.currencyUnit);return("savingAccount"===t.type||t.isFloating)&&(o="до ".concat(o)),{caption:i,name:o}}}else{var e;return{caption:"Сумма",name:(t.isNotAmount?"от ":"")+"".concat((0,u.Y4)(null!==(e=t.rateAmount)&&void 0!==e?e:1)," ").concat(t.currencyUnit)}}}},v=t=>{let e;let{data:n,discountState:o,hideBonusTooltip:a}=t;if(!n.computeData)return;let l=o&&(n.computeData.bonus||n.computeData.bonusRate),c=n.isBound?"Доходность":"Ставка",m=f(n,l);return l&&(c+=" + бонус",m+=" + ".concat((0,i.og)((0,u.Y4)(n.computeData.bonusRate,2))),e=a?void 0:(0,r.jsx)(s,{data:n,discount:o})),"savingAccount"===n.type&&(m=(null==n?void 0:n.rateType)==="FIXED"?m:"до ".concat(m)),n.isFloating&&(m="до ".concat(m)),n.isCapitalization&&"savingAccount"!==n.type&&(e=(0,r.jsx)(r.Fragment,{children:"Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка. Дополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее."})),{caption:c,name:m,tooltipText:e}},f=(t,e)=>{if(!t.computeData)return"";let n=(0,u.Y4)("savingAccount"===t.type&&t.rate?t.rate:t.computeData.effectiveRate,2);return e?n:(0,i.og)(n)},p=t=>{if(!t.rateType&&t.isTermEmpty)return{caption:"Срок",name:t.isLadderDeposit&&t.term?"".concat(t.term," ").concat((0,a._6)(+t.term,"день","дня","дней")):"savingAccount"===t.type?"Бессрочно":t.term?h(t.term,t.termPeriod):"от 1 дня"}},h=(t,e)=>{let n=+t%12,r=Math.floor(+t/12),i=e&&e.from===e.to?[]:["от"];return r&&i.push((0,a.PY)(r,["года","лет","лет"])),n&&i.push("".concat(n," мес")),i.join(" ")},A=t=>{if(t.interestAccrual)return{caption:"Начисление процентов",name:o.s[t.interestAccrual]}};function _(t){let{data:e}=t;return[d(e),v(t),p(e),A(e)]}},13425:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(57437),i=n(80684),o=n(90498),u=n.n(o);function a(t){let{data:e,isPlatform:n,newDesign:o=!1,renderTip:a}=t,l=[],c=function(t){let e=[];return"savingAccount"===t.type?e.push({backGround:"blue",text:"Накопительный счёт"}):"deposit"===t.type&&e.push({backGround:"orange",text:"Вклад"}),e}(e),s=function(t){let e=[];return t.isCapitalization&&"savingAccount"!==t.type&&e.push({text:"С капитализацией ",backGround:"white"}),t.isRefill&&"savingAccount"!==t.type&&e.push({text:"С пополнением ",backGround:"white"}),e}(e),m=function(t,e,n){let o=[];return!t.exclusive&&(e?t.isCommercial&&o.push({backGround:"white",text:"Заявка через сайт банка "}):o.push({backGround:"white",text:t.isCommercial?"Заявка через сайт банка ":"Открытие в банке "})),e&&(n?o.push({backGround:"white",text:"Онлайн на Финуслугах",position:"left",icon:(0,r.jsx)(i.IconFdsFlashO,{style:{color:"var(--color-purple-500)"}})}):o.push({backGround:"purple",text:"Открытие онлайн на Финуслугах "})),o}(e,n,o),d=function(t){let e=[];return t.hasDiscount&&e.push({backGround:"white",text:"+ Бонус "}),e}(e);if(e.exclusive&&l.push({backGround:"white",text:"Эксклюзивный вклад "}),e.isBound&&l.push({backGround:"green",text:"Облигации "}),e.commercialDesc&&l.push({backGround:"white",text:e.commercialDesc+" "}),Array.isArray(e.tags)&&e.tags.forEach(t=>l.push({backGround:"white",text:" ",icon:(0,r.jsx)("div",{onClick:t=>{null==t||t.preventDefault(),null==t||t.stopPropagation()},children:a(t)})})),e.productFeature){let t=u()(e.productFeature,{allowedAttributes:{},allowedTags:[]});l.push({backGround:"white",text:t})}return[...c,...m,...d,...s,...l]}},7913:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var r=n(2368),i=n(96742),o=n(91627),u=n(44579),a=n(33600),l=n(70104),c=n(14438);function s(t,e,n){return e&&t<e?e:n&&t>n?n:t}let m=(t,e)=>t&&(!e||(0,l.zd)(t.effectiveRate,2)>=e&&(0,l.zd)(t.effectiveRate,2)<e+1);function d(t){let{deposits:e,banks:n,filter:l,bankTowns:d,cityId:v,isValid:f}=t;if(!f)return{items:[],hasMonthlyPercent:!1,hasPreferentialTermination:!1,hasCapitalization:!1,hasRefill:!1};let{term:p}=l,h=null==n?void 0:n.reduce((t,e)=>({...t,[Number(e.id)]:e}),{});return e.reduce((t,e)=>{let n=function(t){var e,n,l,d,v,f,p,h,A,_,y,b,N,g,x,T,R,D,E;let{deposit:P,normalizedBanks:L,filter:I,defaultTerm:k}=t,{amount:C,term:M,rate:Y,currency:S,withMonthlyPercent:F=!1,withPreferentialTermination:O=!1,withCapitalization:w,withRefill:z}=I,G=null==L?void 0:L[Number(P.bank_id)],B=(null===(e=P.interest_capitalization)||void 0===e?void 0:e.has)===1,U=(0,c.EP)(I,String(null==G?void 0:G.id)),Z=(0,i.z)(P.currency_id).unit,j=(!S||Z===S)&&U,{amount:H,term:V,rate:W,tag:K}=j?P.isLadderDeposit?function(t,e,n){var r;let i="number"!=typeof e||t&&(!t.amount.from||t.amount.from<=e)&&(!t.amount.to||t.amount.to>=e),u=!n||Math.round(t.term.from/o.F)<=n&&Math.round(+t.term.to/o.F)>=n;return{term:s(n,t.term.from,Number(t.term.to)),amount:null!==(r=null!=e?e:t.amount.from)&&void 0!==r?r:1,rate:i&&u?t.interest_rate.rates.reduce((t,e)=>t+e.rate,0)/t.interest_rate.rates.length:null,tag:null}}(P,C,M):function(t,e,n){var r,i,u;let a=[...t.interest_rate.rates].sort((t,e)=>e.rate-t.rate).find(t=>{let r="number"!=typeof e||t.amount_from&&t.amount_from<=e&&(!t.amount_to||t.amount_to>=e),i=!n||(!t.term_from||Math.round(t.term_from/o.F)<=Math.round(n/o.F))&&(!t.term_to||Math.round(t.term_to/o.F)>=Math.round(n/o.F));return r&&i}),l=null!==(i=null==a?void 0:a.rate)&&void 0!==i?i:null,c=null!==(u=null==a?void 0:null===(r=a.tag)||void 0===r?void 0:r.title)&&void 0!==u?u:null;return{term:s(n,null==a?void 0:a.term_from,null==a?void 0:a.term_to),amount:!e&&a?a.amount_from:e,rate:l,tag:c}}(P,C,M):{amount:null,term:0,rate:null,tag:null},Q=B&&0===P.partial_withdrawal.has&&(null===(n=P.refill)||void 0===n?void 0:n.has)===0,{nextRate:q,nextAmount:J,nextTerm:X,nextTag:$}=function(t){let{isCorrectValues:e,calculatedAmount:n,calculatedRate:r,calculatedTag:i,calculatedTerm:o,defaultTerm:u,amount:a}=t;return e?{nextRate:r,nextAmount:n,nextTerm:o,nextTag:i}:{nextRate:null,nextAmount:a,nextTerm:u,nextTag:null}}({isCorrectValues:j,calculatedRate:W,calculatedAmount:H,amount:C,calculatedTerm:V,defaultTerm:k,calculatedTag:K}),tt=Number(X),te=(0,c.ax)({rate:q,depositSum:J,effectiveRate:null===(l=P.efficientRate)||void 0===l?void 0:l.maximumRate,isCapitalization:Q,term:isNaN(tt)?0:tt,period:u.Z.Day,paymentFrequency:(0,r.U)(null!==(g=null===(h=P.options)||void 0===h?void 0:null===(p=h[0].interestPayments)||void 0===p?void 0:null===(f=p[0])||void 0===f?void 0:null===(v=f.periods)||void 0===v?void 0:null===(d=v[0])||void 0===d?void 0:d.type)&&void 0!==g?g:"")});if(!m(te,Y))return;let tn=(0,c.PF)(P,!!(null===(A=P.refill)||void 0===A?void 0:A.has));if(!(0,c.Oh)({computedFlags:tn,currentFilters:{withCapitalization:w,withMonthlyPercent:F,withPreferentialTermination:O,withRefill:z}}))return{...tn};let tr={legalName:P.legal_name,logoMob:null!==(D=P.logo_mob)&&void 0!==D?D:null==G?void 0:G.logo_mob,bankName:null!==(E=P.bank_name)&&void 0!==E?E:""},ti=!!(null==P?void 0:P.isLadderDeposit),to=Math.max(...(null!==(x=null===(b=P.options)||void 0===b?void 0:null===(y=b[0])||void 0===y?void 0:null===(_=y.currencies[0])||void 0===_?void 0:_.rates)&&void 0!==x?x:[]).map(t=>{var e,n;return null!==(n=null===(e=t.maximumPeriod)||void 0===e?void 0:e.value)&&void 0!==n?n:0}));return{deposit:{name:P.title,url:P.url,id:P.id,isCommercial:1===P.online_application.commercial,order:P.online_application.order||null,commercialDesc:P.online_application.commercial_desc,exclusive:!1,bic:P.bic,isNotAmount:!C,isRefill:!!(null===(N=P.refill)||void 0===N?void 0:N.has),rateAmount:J,custom_regions:P.custom_regions,computeData:te,currencyUnit:Z,productFeature:P.productFeature,tag:$,rate:q,isCapitalization:B,term:ti?to:Math.round(X/o.F),termPeriod:null==P?void 0:P.term,isArchived:!!P.archive,isTermEmpty:!0,isLadderDeposit:ti,amount:null!==(R=null!==(T=P.amount.from)&&void 0!==T?T:P.amount.to)&&void 0!==R?R:0,amountRange:null==P?void 0:P.amount,type:P.type.saving_account||P.asSavingAccount?a.kv.SavingAccount:a.kv.Deposit,...tr},...tn}}({deposit:e,normalizedBanks:h,filter:l,defaultTerm:p,bankTowns:d,cityId:v});return n&&(t.hasMonthlyPercent||(t.hasMonthlyPercent=n.hasMonthlyPercent),t.hasPreferentialTermination||(t.hasPreferentialTermination=n.hasPreferentialTermination),t.hasCapitalization||(t.hasCapitalization=n.hasCapitalization),t.hasRefill||(t.hasRefill=n.hasRefill),n.deposit&&t.items.push({...n.deposit,specialOrder:null})),t},{items:[],hasMonthlyPercent:!1,hasPreferentialTermination:!1,hasCapitalization:!1,hasRefill:!1})}},14438:function(t,e,n){"use strict";n.d(e,{EP:function(){return l},Oh:function(){return s},PF:function(){return c},Pp:function(){return a},ax:function(){return u}});var r=n(91586),i=n(15329),o=n(84948);function u(t){let{rate:e,depositSum:n,term:r,floatingRateInformations:i,...u}=t;if(!(e&&n))return null;let{onlyBonusFloatingRate:l}=a(e,i),c=(0,o.Z)({...u,rate:e,depositSum:n,term:r});return c&&{...c,result:c.total,termDays:r,onlyBonusFloatingRate:l}}function a(t,e){var n,i;if(!e)return{rate:t,onlyBonusFloatingRate:0};let o=null!==(i=null===(n=e.find(t=>t.bankInfluenceEvent===r.D1.SALARY_OR_PENSION))||void 0===n?void 0:n.bonusPercentageValue)&&void 0!==i?i:0,u=e.reduce((t,e)=>(e.bankInfluenceEvent===r.D1.SPENDING&&t.push(e.bonusPercentageValue),t),[]),a=u.length?Math.max(...u):0;return{rate:t+o+a,onlyBonusFloatingRate:o+a}}function l(t,e){var n;return!!(!(null===(n=t.activeBanks)||void 0===n?void 0:n.length)||e&&t.activeBanks.find(t=>e===t))}function c(t,e){var n,o,u;let a="bank_id"in t?(null===(n=t.interest_capitalization)||void 0===n?void 0:n.has)===1:(null===(o=t.options)||void 0===o?void 0:o[0].interestPayments[0].method)==="CAPITALISATION";return{hasMonthlyPercent:"bank_id"in t?1===t.interest_payment.monthly&&!a:(null===(u=t.options)||void 0===u?void 0:u[0].interestPayments[0].periods[0].type)===r.Lg.MONTH&&!a,hasPreferentialTermination:function(t){var e;if("bank_id"in t)return 1===t.preferential_termination.has;let n=null===(e=t.options)||void 0===e?void 0:e[0].earlyTermination;return n===i.Z.PreferentialRateForWholeTerm||n===i.Z.WithoutRecalculationOfInterest}(t),hasCapitalization:a,hasRefill:e}}function s(t){let{computedFlags:{hasCapitalization:e,hasMonthlyPercent:n,hasPreferentialTermination:r,hasRefill:i},currentFilters:{withCapitalization:o,withMonthlyPercent:u,withPreferentialTermination:a,withRefill:l}}=t;return!!Object.values(t.currentFilters).every(t=>!t)||!(o&&!e||u&&!n||a&&!r||l&&!i)}},91342:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(33600);function i(t){let e=t.computeData;return e?+(e.effectiveRate+e.bonusRate).toFixed(2):0}function o(t){var e,n,o,u,a,l,c,s,m,d,v,f,p,h,A,_,y,b,N,g,x,T;let{deposit1:R,deposit2:D,increaseSort:E,sortType:P,isLeadGen:L}=t,I=E?R:D,k=E?D:R,C=(null!==(e=R.specialOrder)&&void 0!==e?e:99999)-(null!==(n=D.specialOrder)&&void 0!==n?n:99999),M=Number(null!==(o=D.promo)&&void 0!==o&&o)-Number(null!==(u=R.promo)&&void 0!==u&&u)||Number(null!==(a=D.isCommercial)&&void 0!==a&&a)-Number(null!==(l=R.isCommercial)&&void 0!==l&&l)||("number"==typeof R.order?R.order:99999)-("number"==typeof D.order?D.order:99999),Y=L?M:0;switch(!0){case P===r.ER.RatePlusBonus:return C||M||i(I)-i(k)||k.amount-I.amount;case P===r.ER.Profit:return C||Y||(null!==(v=null===(c=I.computeData)||void 0===c?void 0:c.result)&&void 0!==v?v:0)-(null!==(f=null===(s=k.computeData)||void 0===s?void 0:s.result)&&void 0!==f?f:0)||(null!==(p=null===(m=I.computeData)||void 0===m?void 0:m.termDays)&&void 0!==p?p:0)-(null!==(h=null===(d=k.computeData)||void 0===d?void 0:d.termDays)&&void 0!==h?h:0);case P===r.ER.Rate:return C||Y||(null!==(N=null===(A=I.computeData)||void 0===A?void 0:A.effectiveRate)&&void 0!==N?N:0)-(null!==(g=null===(_=k.computeData)||void 0===_?void 0:_.effectiveRate)&&void 0!==g?g:0)||(null!==(x=null===(y=I.computeData)||void 0===y?void 0:y.termDays)&&void 0!==x?x:0)-(null!==(T=null===(b=k.computeData)||void 0===b?void 0:b.termDays)&&void 0!==T?T:0)||k.amount-I.amount;default:return 0}}},84456:function(t,e,n){"use strict";n.d(e,{I:function(){return i}});var r=n(91627);let i=t=>{let e=t.value;switch(t.type){case"MONTH":e=t.value*r.F;break;case"YEAR":e=365.25*t.value}return Math.round(e)}},20921:function(t,e,n){"use strict";n.d(e,{S:function(){return i}});var r=n(2265);function i(t){let{itemRef:e,disabled:n=!1,mode:i="entry",initialView:o=!1,onShow:u}=t,a=(0,r.useRef)(null),[l,c]=(0,r.useState)(!1),[s,m]=(0,r.useState)(o),d=(0,r.useCallback)(t=>{let[n]=t;1===n.intersectionRatio&&!l&&(c(!0),null==u||u(),"entry"===i&&a.current&&e.current&&a.current.unobserve(e.current)),m(n.intersectionRatio>0)},[l,e,i,u]);return(0,r.useEffect)(()=>{n||!e.current||a.current||(a.current=new IntersectionObserver(d,{root:null,threshold:"entry"===i?[1]:[0]}),a.current.observe(e.current))},[n,d,l,e,i]),{isShowed:l,inView:s,resetShow:(0,r.useCallback)(()=>{c(!1),a.current&&e.current&&a.current.observe(e.current)},[e])}}},99193:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(2265),i=n(72151),o=n(20921);function u(t){let{itemRef:e,eventCategory:n,eventAction:u,eventLabel:a,disabled:l=!1}=t,c=(0,r.useCallback)(()=>{(0,i.lQ)({event:"data-event",eventLabel:a,eventCategory:n,eventAction:u,eventValue:""})},[u,n,a]),{resetShow:s}=(0,o.S)({itemRef:e,disabled:l,mode:"entry",onShow:c});return{reset:s}}},50702:function(t,e,n){"use strict";n.d(e,{r:function(){return i}});var r=n(2265);let i=()=>{let[t,e]=(0,r.useState)(!1),n=(0,r.useRef)(null);return{isLoading:t,handleLoad:(0,r.useCallback)(()=>{n.current&&clearTimeout(n.current),e(!0),n.current=setTimeout(()=>{e(!1)},1e3)},[])}}},64158:function(t){t.exports={tooltipText:"DepositTooltipTemplate_tooltipText__1GAbd",tooltipList:"DepositTooltipTemplate_tooltipList__yuKb_",listItem:"DepositTooltipTemplate_listItem__5eytV",description:"DepositTooltipTemplate_description__mYtwD"}}}]);