import"../chunks/DsnmJJEf.js";import{p as O,i as Q,b as x,m as w,a as b,d as R,s as e,e as s,aE as S,n as U,r as t,v as V,t as P,aF as W}from"../chunks/7RXv2Ffc.js";import{s as h}from"../chunks/DepTl4FL.js";import{i as I}from"../chunks/DWNFN-wC.js";import{e as E,i as M}from"../chunks/CcUma9mn.js";import{r as X}from"../chunks/jhzyai53.js";import{a as Y}from"../chunks/BSKiv01k.js";import{a as Z,s as tt}from"../chunks/BMWcY1_o.js";var st=x('<tr><td class="svelte-17010ws"></td><td class="svelte-17010ws"> </td><td class="svelte-17010ws"> </td><td class="svelte-17010ws"> </td></tr>'),et=x('<div class="my-3"><table class="table table-zebra inline-block banque w-auto svelte-17010ws"><thead><tr><th class="svelte-17010ws">Année</th><th class="svelte-17010ws">Capital restant dû</th><th class="svelte-17010ws">Principal</th><th class="svelte-17010ws">Intérêts</th></tr></thead><tbody></tbody></table></div>'),at=x('<tr><td class="svelte-17010ws"></td><td class="svelte-17010ws"> </td><td class="svelte-17010ws"> </td><td class="svelte-17010ws"><!></td></tr>'),rt=x('<div class="my-3"><table class="table table-zebra inline-block w-auto svelte-17010ws"><thead><tr><th class="svelte-17010ws">Mois</th><th class="svelte-17010ws">Capital restant dû</th><th class="svelte-17010ws">Principal</th><th class="svelte-17010ws">Intérêts</th></tr></thead><tbody></tbody></table></div>'),lt=x('<div class="p-10" style="min-height: calc(100vh - 180px);"><h1 class="my-8 text-4xl font-bold">Tous <span class="text-primary">les recoins</span> de votre emprunt.</h1> <div class="flex gap-1 mt-10"><input class="checkbox checkbox-sm checkbox-primary" type="checkbox" role="switch" id="annuel"/> <label class="form-check-label" for="annuel">Présentation annuelle</label></div> <!></div>');function ut(T,j){O(j,!0);const c=()=>tt(H,"$banque",B),[B,D]=Z(),G=Q("simulation").banque;let f=S(!0);const H=G.resultat;var y=lt(),k=e(s(y),2),z=s(k);X(z),U(2),t(k);var J=e(k,2);{var K=a=>{var l=et(),m=s(l),u=e(s(m));E(u,5,()=>c().remboursementAnnuel,M,(g,F,r)=>{var o=st(),_=s(o);_.textContent=r;var n=e(_),q=s(n,!0);t(n);var v=e(n),C=s(v,!0);t(v);var p=e(v),A=s(p,!0);t(p),t(o),P(($,d,i)=>{h(q,$),h(C,d),h(A,i)},[()=>c().crdAnnuel[r].toFixed(0),()=>w(F).toFixed(0),()=>c().interetsAnnuels[r].toFixed(0)]),b(g,o)}),t(u),t(m),t(l),b(a,l)},L=a=>{var l=rt(),m=s(l),u=e(s(m));E(u,5,()=>c().remboursement,M,(g,F,r)=>{var o=at(),_=s(o);_.textContent=r;var n=e(_),q=s(n,!0);t(n);var v=e(n),C=s(v,!0);t(v);var p=e(v),A=s(p);{var $=d=>{var i=W();P(N=>h(i,N),[()=>c().interets[r].toFixed(0)]),b(d,i)};I(A,d=>{r>0&&d($)})}t(p),t(o),P((d,i)=>{h(q,d),h(C,i)},[()=>c().crd[r].toFixed(0),()=>w(F).toFixed(0)]),b(g,o)}),t(u),t(m),t(l),b(a,l)};I(J,a=>{w(f)?a(K):a(L,!1)})}t(y),Y(z,()=>w(f),a=>V(f,a)),b(T,y),R(),D()}export{ut as component};
