PageSourceSearch

https://www.mogo.ee/_nuxt/COrWYrS22.js

js mogo.ee collected 2026-10-01 15:21:29 UTC 18,581 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`07e8b23`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:web20-front":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`1dfee319-cdd2-48e0-9168-d745fac971d3`,e._sentryDebugIdIdentifier=`sentry-dbid-1dfee319-cdd2-48e0-9168-d745fac971d3`)}catch{}})();import{Lt as e,gn as t}from"./KApEwNia.js";import{A as n,Ct as r,D as i,F as a,Ft as o,I as s,Lt as c,O as l,Ot as u,Qt as d,R as f,Tn as p,Ut as m,Xt as h,bn as g,j as _,k as v,lt as y,mt as b,on as x,ot as S,q as C,x as w}from"./_GBHlJZO.js";import{n as T}from"./Ckg72f8W.js";import{t as E}from"./DyJ8I2H2.js";import{H as D}from"./D06hY3Pf.js";import{P as O,g as k,i as A}from"#entry";import{t as j}from"./CmXBbMf12.js";import{n as M}from"./vJQxiv8A2.js";import{n as N}from"./CcBSbrPr2.js";import{n as P}from"./CUWjQshb2.js";import{n as F}from"./Bf2vlj5E.js";import{n as I}from"./C0gl30Pt.js";import{t as L}from"./BfaK9sEm.js";import{n as R}from"./Bfin4Hlf2.js";import{t as z}from"./m4BIbH9h.js";import{t as ee}from"./bZTGlGsk.js";import{t as te}from"./R7sMsiz1.js";import{i as B,n as V,t as H}from"./Bn24Jk43.js";o(),C(),x();var ne={key:0,class:`flex flex-col items-center gap-2`},re={key:1,class:`text-ds2-body text-ds2-text-primary`,role:`alert`},ie=[`innerHTML`],U={key:1,class:`overflow-x-auto`},W={class:`w-full text-left text-ds2-caption text-ds2-text-primary`},G={class:`border-b border-ds2-border-subtle p-2`},K=[`innerHTML`],ae=Object.assign(f({name:`BrandProductDocumentsV2`,__name:`BrandProductDocumentsV2`,props:{productId:{},hasDocuments:{type:Boolean},amount:{},term:{}},setup(e){let{t:r}=T(),{$apiClient:o,$country:f}=t(),{installments:h,loading:g,exampleRendered:x}=te(),{primary:S}=ee(),C=m(!1),D=m(!1),O=m(!1),k=i(()=>e.hasDocuments),j=i(()=>f.isInList([E.AM,E.MD])),N=i(()=>!!x.value&&f.isInList([E.LV,E.EE])),P=m([]),R=m(!1),z=m(!1),B=m(0),V=i(()=>P.value.map((e,t)=>({value:t,label:e.title})));async function H(){C.value=!0,R.value=!0,z.value=!1;try{P.value=await o.GET(`/products/{product}/documents`,{params:{path:{product:e.productId},query:{loan_amount:e.amount,term:e.term}}}),B.value=0}catch{z.value=!0}finally{R.value=!1}}let ae=i(()=>S.value?.code===`AMD`?0:2),q=i(()=>h.value.map(e=>({date:e.date,cells:[e.principal,e.interest,e.service_fee,e.total].map(e=>A(e.toFixed(ae.value)))}))),oe=i(()=>[r(`repayment_schedule.payment_date`),...[`repayment_schedule.principal_amount`,`repayment_schedule.interest_amount`,`repayment_schedule.service_fee`,`repayment_schedule.monthly_payment`].map(e=>`${r(e)}${S.value?.symbol?`, ${S.value.symbol}`:``}`)]);return(e,t)=>{let i=M,o=L,m=I,h=F;return d(k)||d(j)||d(N)||d(f).isMD()?(y(),_(`div`,ne,[d(j)?(y(),v(i,{key:0,as:`button`,size:`sm`,icon:null,onClick:t[0]||=e=>D.value=!0},{default:u(()=>[a(p(d(r)(`calculator.repayment_schedule`)),1)]),_:1})):n(``,!0),d(k)?(y(),v(i,{key:1,as:`button`,size:`sm`,icon:null,onClick:t[1]||=e=>H()},{default:u(()=>[a(p(d(r)(`calculator.standardinformation`)),1)]),_:1})):n(``,!0),d(f).isMD()?(y(),v(i,{key:2,href:`/consimtamint-client.pdf`,target:`_blank`,rel:`noopener noreferrer`,size:`sm`,icon:null},{default:u(()=>[a(p(d(r)(`calculator.credit__history_consent`)),1)]),_:1})):n(``,!0),d(N)?(y(),v(i,{key:3,as:`button`,size:`sm`,icon:null,onClick:t[2]||=e=>O.value=!0},{default:u(()=>[a(p(d(r)(`calculator.calculation_example`)),1)]),_:1})):n(``,!0),s(h,{modelValue:d(C),"onUpdate:modelValue":t[4]||=e=>c(C)?C.value=e:null,size:`wide`,title:d(r)(`calculator.standardinformation`),"close-label":d(r)(`common.close`)},{default:u(()=>[d(R)?(y(),v(o,{key:0,"aria-label":d(r)(`common.please_wait`)},null,8,[`aria-label`])):d(z)?(y(),_(`p`,re,p(d(r)(`common.error.message`)),1)):(y(),_(w,{key:2},[d(V).length>1?(y(),v(m,{key:0,modelValue:d(B),"onUpdate:modelValue":t[3]||=e=>c(B)?B.value=e:null,tabs:d(V),size:`xs`,class:`mb-4`},null,8,[`modelValue`,`tabs`])):n(``,!0),l(`div`,{class:`ds2-prose text-ds2-body text-ds2-text-primary`,innerHTML:d(P)[d(B)]?.content}
1,null,8,ie)],64))]),_:1},8,[`modelValue`,`title`,`close-label`]),s(h,{modelValue:d(D),"onUpdate:modelValue":t[5]||=e=>c(D)?D.value=e:null,size:`wide`,title:d(r)(`calculator.repayment_schedule`),"close-label":d(r)(`common.close`)},{default:u(()=>[d(g)?(y(),v(o,{key:0,"aria-label":d(r)(`common.please_wait`)},null,8,[`aria-label`])):(y(),_(`div`,U,[l(`table`,W,[l(`thead`,null,[l(`tr`,null,[(y(!0),_(w,null,b(d(oe),e=>(y(),_(`th`,{key:e,class:`border-b border-ds2-border-subtle p-2 text-ds2-caption-medium`},p(e),1))),128))])]),l(`tbody`,null,[(y(!0),_(w,null,b(d(q),e=>(y(),_(`tr`,{key:e.date},[l(`td`,G,p(e.date),1),(y(!0),_(w,null,b(e.cells,(e,t)=>(y(),_(`td`,{key:t,class:`border-b border-ds2-border-subtle p-2`},p(e),1))),128))]))),128))])])]))]),_:1},8,[`modelValue`,`title`,`close-label`]),s(h,{modelValue:d(O),"onUpdate:modelValue":t[6]||=e=>c(O)?O.value=e:null,size:`wide`,title:d(r)(`calculator.example.title`),"close-label":d(r)(`common.close`)},{default:u(()=>[d(g)?(y(),v(o,{key:0,"aria-label":d(r)(`common.please_wait`)},null,8,[`aria-label`])):(y(),_(`div`,{key:1,class:`ds2-prose text-ds2-body text-ds2-text-primary`,innerHTML:d(x)},null,8,K))]),_:1},8,[`modelValue`,`title`,`close-label`])])):n(``,!0)}}}),{__name:`BrandProductDocumentsV2`});function q(e,t){let n=String(A(Math.round(e))??0),r=t??ee().primary.value?.code??``;return r?`${n} ${r}`:n}C(),o(),x();var oe={class:`grid sm:grid-cols-2`},se={class:`flex flex-col gap-4 p-6`},ce={class:`flex flex-col gap-1`},le={class:`text-ds2-body-lg-medium text-ds2-text-primary`},ue={class:`text-ds2-body text-ds2-text-secondary`},de={class:`flex items-center justify-between gap-2`},fe={class:`text-ds2-body-medium text-ds2-text-primary`},pe={class:`grid grid-cols-2 gap-4`},me={class:`flex flex-col gap-1 border-t border-ds2-border-subtle pt-4`},he={class:`text-ds2-caption text-ds2-text-secondary`},ge={"data-testid":`refinancing-total`,class:`text-ds2-body-medium text-ds2-text-primary`},_e={class:`flex flex-col gap-6 p-6 sm:border-l sm:border-ds2-border-subtle`},ve={class:`text-ds2-body-lg-medium text-ds2-text-primary`},ye={class:`flex flex-col gap-4`},be={class:`flex flex-col gap-2`},xe={class:`flex items-center justify-between`},Se={class:`text-ds2-body text-ds2-text-secondary`},Ce={class:`text-ds2-subtitle-medium text-ds2-text-primary`},we={class:`flex flex-col gap-2`},Te={class:`flex items-center justify-between`},Ee={class:`text-ds2-body text-ds2-text-secondary`},De={class:`text-ds2-subtitle-medium text-ds2-text-primary`},Oe=[`inert`],ke={class:`flex flex-col gap-2 pb-2`},Ae={class:`flex items-center justify-between`},je={class:`text-ds2-body text-ds2-text-secondary`},Me={class:`text-ds2-subtitle-medium text-ds2-text-primary`},Ne={"data-testid":`refinancing-extra-money-available`,class:`text-ds2-button-sm text-ds2-text-secondary`},Pe={class:`flex flex-col gap-2 py-1`},Fe={class:`flex items-start justify-between gap-2 border-b border-dashed border-ds2-border-subtle pb-2 text-ds2-text-secondary`},Ie={class:`flex flex-col gap-1`},Le={class:`text-ds2-caption`},Re={class:`text-ds2-body-sm`},ze={"data-testid":`refinancing-new-loan-amount`,class:`text-ds2-caption`},Be={class:`flex items-center justify-between gap-2 border-b border-dashed border-ds2-border-subtle pb-2`},Ve={class:`text-ds2-caption text-ds2-text-secondary`},He={"data-testid":`refinancing-current-payments`,class:`text-ds2-caption text-ds2-text-secondary`},Ue={class:`flex items-center justify-between gap-2 border-b border-dashed border-ds2-border-subtle pb-2`},We={class:`text-ds2-caption text-ds2-text-secondary`},Ge={"data-testid":`refinancing-savings`,class:`text-ds2-caption text-ds2-text-secondary`},Ke={class:`flex items-center justify-between gap-2.5`},qe={class:`text-ds2-caption-medium text-ds2-text-primary`},Je=[`innerHTML`],Ye={key:1,class:`text-center text-ds2-body-lg-medium text-ds2-text-primary`},J=500,Xe=100,Y=Object.assign(f({name:`BrandRefinancingCalculatorV2`,__name:`BrandRefinancingCalculatorV2`,props:{product:{},isGlass:{type:Boolean,default:!1}},setup(o){let{$country:f}=t(),{t:h}=T(),{primary:x}=ee(),C=O(),{fetchCalculation:E,monthlyPaymentFrom:k,loading:A,productCalculatorQueryParams:F,loanAmount:I,term:L,installmentNotice:z,updateSettingsFromQuery:ne}=te(),re=()=>
1({monthlyPayment:0,remainingAmount:0,remainingTerm:0}),ie=e=>Number(e)||0,U=i(()=>o.product.calculator_settings),W=m([re()]),G=m(H(U.value,U.value.default_amount)),K=m(V(U.value,G.value,U.value.default_term)),Y=m(J),X=m(!1),Z=i(()=>Math.floor((U.value.max_amount-G.value)/Xe)*Xe),Ze=i(()=>Z.value>=J),Qe=i(()=>X.value||Ze.value),Q=i(()=>G.value+(X.value?Y.value:0)),$e=i(()=>B(U.value.amount_dependent_term_rules,Q.value,{min:U.value.min_term,max:U.value.max_term,value:U.value.default_term})),et=i(()=>$e.value.minTerm??U.value.min_term),tt=i(()=>$e.value.maxTerm??U.value.max_term),nt=i(()=>et.value===tt.value||!!U.value.amount_dependent_term_rules.length&&!!$e.value.termOptions.length);r(Q,()=>{K.value=V(U.value,Q.value,K.value)});let rt=i(()=>W.value.reduce((e,t)=>e+ie(t.remainingAmount),0)),it=i(()=>W.value.reduce((e,t)=>e+ie(t.monthlyPayment),0));r(rt,e=>{if(!e)return;let t=Math.ceil(e/U.value.step_amount)*U.value.step_amount;G.value=Math.min(Math.max(t,U.value.min_amount),U.value.max_amount)}),r(Z,e=>{X.value&&(e<J?dt():Y.value>e&&(Y.value=e))});let $=i(()=>k.value),at=i(()=>rt.value>0&&G.value>=rt.value),ot=i(()=>$.value===void 0||!at.value?void 0:Math.max(0,it.value-$.value)),st=i(()=>$.value===void 0?`—`:q($.value)),ct=i(()=>ot.value===void 0?`—`:q(ot.value));function lt(){W.value.push(re())}function ut(e){W.value.splice(e,1)}function dt(){Qe.value&&(X.value=!X.value,Y.value=J)}async function ft(){try{await E({productId:o.product.product_id,customAmount:Q.value,customTerm:K.value})}catch{}}S(()=>{ne(),I.value>=U.value.min_amount&&I.value<=U.value.max_amount&&(G.value=I.value),L.value>=et.value&&L.value<=tt.value&&(K.value=L.value),K.value=V(U.value,Q.value,K.value),ft()}),D([Q,K],()=>{ft()},{debounce:400});function pt(){I.value=Q.value,L.value=K.value,e(C({name:`product-${o.product.product_page_id}-form-step`,query:F.value}))}return(e,t)=>{let r=M,i=R,m=j,S=P,C=N,T=ae;return y(),_(`div`,{"data-testid":`v2-refinancing-calculator`,class:g([`w-full sm:shadow-[0_4px_16px_0_rgba(0,0,0,0.1)]`,o.isGlass?`bg-white/85 backdrop-blur-[23px] sm:rounded-2xl [&_.bg-ds2-input]:bg-transparent`:`bg-ds2-surface sm:rounded-[20px]`])},[l(`div`,oe,[l(`div`,se,[l(`div`,ce,[l(`h2`,le,p(d(h)(`refinancing_calculator.existing_loans.title`)),1),l(`p`,ue,p(d(h)(`refinancing_calculator.existing_loans.description`)),1)]),(y(!0),_(w,null,b(d(W),(e,t)=>(y(),_(`div`,{key:t,class:g([`flex flex-col gap-4`,{"border-t border-ds2-border-subtle pt-4":t}])},[l(`div`,de,[l(`p`,fe,p(d(h)(`refinancing_calculator.loan_number`,{number:t+1})),1),t?(y(),v(r,{key:0,"data-testid":`refinancing-remove-loan`,as:`button`,size:`sm`,icon:null,onClick:e=>ut(t)},{default:u(()=>[a(p(d(h)(`refinancing_calculator.remove_loan`)),1)]),_:1},8,[`onClick`])):n(``,!0)]),l(`div`,pe,[s(i,{modelValue:e.monthlyPayment,"onUpdate:modelValue":t=>e.monthlyPayment=t,"data-testid":`refinancing-loan-monthly-payment`,type:`number`,label:d(h)(`refinancing_calculator.loan_monthly_payment`)},{leading:u(()=>[a(p(d(x)?.symbol),1)]),_:1},8,[`modelValue`,`onUpdate:modelValue`,`label`]),s(i,{modelValue:e.remainingAmount,"onUpdate:modelValue":t=>e.remainingAmount=t,"data-testid":`refinancing-loan-remaining-amount`,type:`number`,label:d(h)(`refinancing_calculator.loan_remaining_amount`)},{leading:u(()=>[a(p(d(x)?.symbol),1)]),_:1},8,[`modelValue`,`onUpdate:modelValue`,`label`])]),s(i,{modelValue:e.remainingTerm,"onUpdate:modelValue":t=>e.remainingTerm=t,"data-testid":`refinancing-loan-remaining-term`,type:`number`,label:d(h)(`refinancing_calculator.loan_remaining_term`)},null,8,[`modelValue`,`onUpdate:modelValue`,`label`])],2))),128)),l(`div`,me,[l(`p`,he,p(d(h)(`refinancing_calculator.total_to_refinance`)),1),l(`p`,ge,p((`formatV2Amount`in e?e.formatV2Amount:d(q))(d(rt))),1)]),l(`button`,{"data-testid":`refinancing-add-loan`,type:`button`,class:`flex cursor-pointer items-center justify-center rounded-ds2-input border border-dashed border-ds2-border px-4 py-3 text-ds2-link text-ds2-actions-brand hover:text-ds2-actions-brand-hover`,onClick:t[0]||=e=>lt()},[s(m,{name:`lucide:circle-plus`,class:`mr-2 size-6 shrink-0`}),a(` `+p(d(h)(`refinancing_calculator.add_loan`)),1)])]),l(`div`,_e,[l(`h2`,ve,p(d(h)(`refinancing_calculator.estimate.title`)),1),l(`div`,ye,[l(`div`,be,[l(`div`,xe,[l(`span`,Se,p(d(h)(`refinancing_calculator.amount`)),1),l(`span`,Ce,p((`formatV2Amount`in e?e.formatV2Amount:d(q))(d(G))),1)]),s(S,{modelValue:d(G),"onUpdate:modelValue":t[1]||=e=>c(G)?G.value=e:null,min:d(U).min_amount,max:d(U).max_amount,step:d(U).step_amount,"min-label":(`formatV2Amount`in e?e.formatV2Amount:d(q))(d(U).min_amount,``),"max-label":(`formatV2Amount`in e?e.formatV2Amount:d(q))(d(U).max_amount,``),"aria-label":d(h)(`refinancing_calculator.amount`)},null,8,[`modelValue`,`min`,`max`,`step`,`min-label`,`max-label`,`aria-label`])]),l(`div`,we,[l(`div`,Te,[l(`span`,Ee,p(d(h)(`refinancing_calculator.term`)),1),l(`span`,De,p(d(K))+` `+p(d(h)(`calculator.months`)),1)]),d(nt)?n(``,!0):(y(),v(S,{key:0,modelValue:d(K),"onUpdate:modelValue":t[2]||=e=>c(K)?K.value=e:null,min:d(et),max:d(tt),step:d(U).step_term,"min-label":String(d(et)),"max-label":String(d(tt)),"aria-label":d(h)(`refinancing_calculator.term`)},null,8,[`modelValue`,`min`,`max`,`step`,`min-label`,`max-label`,`aria-label`]))]),l(`div`,null,[l(`div`,{class:g([`overflow-hidden transition-[max-height] duration-300`,d(X)?`max-h-48`:`max-h-0`]),inert:!d(X)},[l(`div`,ke,[l(`div`,Ae,[l(`span`,je,p(d(h)(`refinancing_calculator.extra_money`)),1),l(`span`,Me,p((`formatV2Amount`in e?e.formatV2Amount:d(q))(d(Y))),1)]),d(Z)>J?(y(),v(S,{key:0,modelValue:d(Y),"onUpdate:modelValue":t[3]||=e=>c(Y)?Y.value=e:null,min:J,max:d(Z),step:Xe,"min-label":(`formatV2Amount`in e?e.formatV2Amount:d(q))(J,``),"max-label":(`formatV2Amount`in e?e.formatV2Amount:d(q))(d(Z),``),"aria-label":d(h)(`refinancing_calculator.extra_money`)},null,8,[`modelValue`,`max`,`min-label`,`max-label`,`aria-label`])):n(``,!0),l(`p`,Ne,p(d(h)(`refinancing_calculator.extra_money_available`,{amount:(`formatV2Amount`in e?e.formatV2Amount:d(q))(d(Z))})),1)])],10,Oe),s(r,{"data-testid":`refinancing-extra-money-toggle`,as:`button`,size:`md`,icon:d(X)?`lucide:circle-minus`:`lucide:circle-plus`,"icon-position":`left`,disabled:!d(Qe),onClick:t[4]||=e=>dt()},{default:u(()=>[a(p(d(X)?d(h)(`refinancing_calculator.remove_extra_money`):d(h)(`refinancing_calculator.add_extra_money`)),1)]),_:1},8,[`icon`,`disabled`])])]),l(`div`,Pe,[l(`div`,Fe,[l(`span`,Ie,[l(`span`,Le,p(d(h)(`refinancing_calculator.new_loan_amount`)),1),l(`span`,Re,p(d(h)(`refinancing_calculator.new_loan_amount_hint`)),1
1)]),l(`span`,ze,p((`formatV2Amount`in e?e.formatV2Amount:d(q))(d(Q))),1)]),l(`div`,Be,[l(`span`,Ve,p(d(h)(`refinancing_calculator.current_payments`)),1),l(`span`,He,p((`formatV2Amount`in e?e.formatV2Amount:d(q))(d(it))),1)]),l(`div`,Ue,[l(`span`,We,p(d(h)(`refinancing_calculator.savings`)),1),l(`span`,Ge,p(d(ct)),1)]),l(`div`,Ke,[l(`span`,qe,p(d(h)(`refinancing_calculator.new_monthly_payment`)),1),l(`span`,{"data-testid":`refinancing-new-payment`,class:g([`text-ds2-subtitle-medium text-ds2-text-primary transition-opacity`,{"opacity-40":d(A)}])},p(d(st)),3)])]),s(C,{"data-testid":`refinancing-apply`,size:`md`,class:`w-full`,onClick:pt},{default:u(()=>[a(p(d(h)(`refinancing_calculator.cta`)),1)]),_:1})])]),l(`div`,{class:g([`flex flex-col items-center gap-2 border-t border-ds2-border-subtle px-4 py-4 sm:px-6`,o.isGlass?`sm:rounded-b-2xl`:`bg-ds2-surface sm:rounded-b-[20px]`])},[d(z)?(y(),_(`div`,{key:0,class:`ds2-prose w-full text-center text-ds2-caption text-ds2-text-secondary`,innerHTML:d(z)},null,8,Je)):n(``,!0),s(T,{"product-id":o.product.product_id,"has-documents":o.product.has_documents,amount:d(Q),term:d(K)},null,8,[`product-id`,`has-documents`,`amount`,`term`]),d(f).isLV()?(y(),_(`p`,Ye,p(d(h)(`calculator.borrowing_warning`)),1)):n(``,!0)],2)],2)}}}),{__name:`BrandRefinancingCalculatorV2`});C(),o();function X(n){let a=i(()=>h(n)),{$country:o}=t(),s=O(),{requestUpsell:c}=z(),{fetchCalculation:l,monthlyPaymentFrom:u,loading:d,productCalculatorQueryParams:f,loanAmount:p,term:g,updateSettingsFromQuery:_,installmentNotice:v}=te(),y=m(0),b=i(()=>a.value[y.value]),x=i(()=>b.value.calculator_settings),C=m(b.value?H(x.value,x.value.default_amount):0),w=i(()=>B(x.value.amount_dependent_term_rules,C.value,{min:x.value.min_term,max:x.value.max_term,value:x.value.default_term})),T=i(()=>w.value.minTerm??x.value.min_term),E=i(()=>w.value.maxTerm??x.value.max_term),A=m(b.value?V(x.value,C.value,x.value.default_term):0),j=i(()=>T.value===E.value||!!x.value.amount_dependent_term_rules.length&&!!w.value.termOptions.length),M=i(()=>b.value.service_type===k.UPSELL),N=i(()=>b.value.service_type===k.CREDIT_LINE||M.value);r([C,y],()=>{A.value=V(x.value,C.value,A.value)});function P(e,t){let n=a.value[e];n&&(y.value=e,C.value=H(n.calculator_settings,n.calculator_settings.default_amount),A.value=n.calculator_settings.default_term,(t?.currentTarget)?.scrollIntoView({behavior:`smooth`,inline:`nearest`,block:`nearest`}))}async function F(){if(!(!b.value||M.value))try{await l({productId:b.value.product_id,customAmount:C.value,customTerm:A.value})}catch{}}S(()=>{b.value&&(_(),p.value>=x.value.min_amount&&p.value<=x.value.max_amount&&(C.value=p.value),g.value>=x.value.min_term&&g.value<=x.value.max_term&&(A.value=g.value),A.value=V(x.value,C.value,A.value),F())}),D([C,A,y],()=>{F()},{debounce:400});let I=i(()=>o.isLT()&&!!v.value),L=i(()=>u.value===void 0?`—`:q(u.value));function R(){p.value=C.value,g.value=A.value,e(s({name:`product-${b.value.product_page_id}-form-step`,query:f.value}))}function ee(){c(),e(s(`customer-portal-login`))}return{activeIndex:y,activeProduct:b,amount:C,term:A,termMin:T,termMax:E,isTermFixed:j,hideTerm:N,isUpsell:M,loading:d,installmentNotice:v,isLtLegalVariant:I,monthlyPaymentText:L,selectProduct:P,handleApplyClick:R,handleUpsellLoginClick:ee}}export{ae as i,Y as n,q as r,X as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.