1import{u as y,b as w}from"./CUlpS4Qp.js";import{u as k,g as D,h as M,d as e,t as r,e as _,v as c,C as m,D as B,c as E,j as I,r as b,k as f,o as x}from"./BA4CTP4D.js";import V from"./Ctc9UPIl.js";import"./EN1EDk15.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"0b0f7a20ca3496bd222dc7af2632ed4819a90c43"};var t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="108d34f7-7a72-4167-8041-eb0bbf8dde24",o._sentryDebugIdIdentifier="sentry-dbid-108d34f7-7a72-4167-8041-eb0bbf8dde24")}catch{}})();const C={class:"mb-6 flex flex-col gap-5"},S={class:"flex flex-col gap-5 lg:flex-row lg:gap-6"},T={class:"flex flex-1 flex-col gap-2"},A={for:"loan-amount",class:"h-5 text-sm font-medium leading-5 text-slate-700"},N={class:"relative"},z=["placeholder"],P={class:"flex flex-1 flex-col gap-2"},R={for:"apr",class:"h-5 text-sm font-medium leading-5 text-slate-700"},U={class:"relative"},$=["placeholder"],j={class:"flex flex-col gap-2"},q={class:"flex h-5 items-center justify-between"},F={class:"text-sm font-medium text-slate-700"},L={class:"text-sm font-semibold text-slate-900"},Y={class:"flex h-11 items-center"},G={key:0,class:"mt-1 flex flex-col items-end text-right"},H={class:"text-xs text-sky-800 sm:text-sm"},J={class:"mt-1 text-xl font-bold text-sky-900 sm:text-2xl"},X={__name:"MonthlyPaymentCalculatorBlock",props:{content:{type:null,required:!0},contentModifiers:{}},emits:["update:content"],setup(o){const t=k(o,"content",{type:null,required:!0}),s=b(),a=b(12),n=b(),p=y().useTFunction(),g=f(()=>t.value.monthDuration?p(t.value.monthDuration,{duration:a.value}):a.value?.toString()||""),h=f(()=>{if(!s.value||s.value<=0||a.value<=0||!n.value||n.value<0)return;const u=n.value/100/12,l=a.value;if(n.value===0)return Math.round(s.value/l*100)/100;const d=s.value*(u*Math.pow(1+u,l))/(Math.pow(1+u,l)-1);return Math.round(d*100)/100}),v=f(()=>{if(h.value)return p(t.value.result.format??"",{amount:h.value.toFixed(2)})});return(u,l)=>{const d=w;return x(),D(V,{"icon-name":"mdi:information-variant",title:t.value.title,"bg-color":t.value.backgroundColor},{default:M(()=>[e("div",C,[e("div",S,[e("div",T,[e("label",A,r(t.value.loanAmount.label),1),e("div",N,[_(d,{name:"tdesign:money",class:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",size:20}),c(e("input",{id:"loan-amount","onUpdate:modelValue":l[0]||(l[0]=i=>s.value=i),type:"number",min:"0",placeholder:t.value.loanAmount.placeholder,class:"h-11 w-full rounded-lg border border-slate-300 pl-10 pr-3 text-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-500"},null,8,z),[[m,s.value,void 0,{number:!0}]])])]),e("div",P,[e("label",R,r(t.value.apr.label),1),e("div",U,[_(d,{name:"ic:baseline-percentage",class:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",size:20}),c(e("input",{id:"apr","onUpdate:modelValue":l[1]||(l[1]=i=>n.value=i),type:"number",step:"0.01",min:"0",placeholder:t.value.apr.placeholder,class:"h-11 w-full rounded-lg border border-slate-300 pl-10 pr-3 text-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-500"},null,8,$),[[m,n.value,void 0,{number:!0}]])])])]),e("div",j,[e("div",q,[e("label",F,r(t.value.loanDuration.label),1),e("span",L,r(g.value),1)]),e("div",Y,[c(e("input",{id:"loan-duration","onUpdate:modelValue":l[2]||(l[2]=i=>a.value=i),type:"range",min:"1",max:"36",step:"1",class:"h-1.5 w-full cursor-pointer appearance-none rounded-lg border-transparent [&::-webkit-slider-thumb]:h-5 [&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-white [&::-webkit-slider-thumb]:bg-blue-500 [&::-webkit-slider-thumb]:shadow-md [&::-webkit-slider-thumb]:transition [&::-webkit-slider-thumb]:[-webkit-appearance:none] [&::-webkit-slider-thumb]:hover:scale-110",style:B({background:`linear-gradient(to right, #3b82f6 ${(a.value-1)/35*100}%, #e2e8f0 ${(a.value-1)/35*100}%)`})},null,4),[[m,a.value,void 0,{number:!0}]])])])]),v.value?(x(),E("div",G,[e("p",H,r(t.value.result.label),1),e("p",J,r(v.value),1)])):I("",!0)]),_:1},8,["title","bg-color"])}}};export{X as default};
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.