import"./DsnmJJEf.js";import{c as z,f as y,a as l,b,n as p,p as F,d as I,e as r,r as i,s as M,t as N}from"./7RXv2Ffc.js";import{i as h}from"./DWNFN-wC.js";import{p as R}from"./CW62AsE0.js";import"./DO_HQ_lx.js";import{s as g}from"./DepTl4FL.js";var W=b('<span style="font-size:25pt" class="align-bottom svelte-1mc5vze"><span class="co svelte-1mc5vze"><span class="g svelte-1mc5vze">CO</span><span class="ra svelte-1mc5vze">TURN</span>IX</span></span><img src="/grain/coturnix.svg" alt="Logo de Coturnix" class="svelte-1mc5vze"/>',1),k=b('<span style="font-size:1.1em" class="svelte-1mc5vze"><span class="co svelte-1mc5vze"><span class="g svelte-1mc5vze">CO</span><span class="ra svelte-1mc5vze">TURN</span>IX</span></span>');function L(v,t){let c=R(t,"logo",3,!1);var n=z(),o=y(n);{var m=e=>{var s=W();p(),l(e,s)},d=e=>{var s=k();l(e,s)};h(o,e=>{c()?e(m):e(d,!1)})}l(v,n)}var w=b('<div class="my-5 py-2"><div class="flex justify-around text-primary p-5"><div class="flex flex-col justify-between text-center"><div class="pb-3 mb-3 border-b-4 border-primary text-4xl font-bold"> </div> <div class="text-xl">Simulations</div></div> <div class="flex-column justify-content-between text-center mx-3"><div class="pb-3 mb-3 border-b-4 border-primary text-4xl font-bold"> </div> <div class="text-xl">Simulés</div></div></div></div>');function q(v,t){F(t,!0);let c=e=>Intl.NumberFormat("fr-FR",{maximumFractionDigits:e});function n(e){let s=0,a="";return Math.abs(e)<=1e3?(a=" kWc",s=e):Math.abs(e)<=1e6?(a=" MWc",s=e/1e3):(a=" GWc",s=e/1e6),c(2).format(s)+a}var o=z(),m=y(o);{var d=e=>{var s=w(),a=r(s),f=r(a),u=r(f),C=r(u,!0);i(u),p(2),i(f);var x=M(f,2),_=r(x),j=r(_,!0);i(_),p(2),i(x),i(a),i(s),N(D=>{g(C,t.donnees.projets),g(j,D)},[()=>n(t.donnees.puissance)]),l(e,s)};h(m,e=>{t.donnees&&e(d)})}l(v,o),I()}export{L as C,q as D};
