import"../chunks/DsnmJJEf.js";import{o as U}from"../chunks/Cmzo6rMC.js";import{p as V,i as X,b as _,f as Y,t as S,a as j,d as Z,s as t,e as s,r as e,n as b,m as x}from"../chunks/7RXv2Ffc.js";import{s as F}from"../chunks/DepTl4FL.js";import{i as $}from"../chunks/DWNFN-wC.js";import{e as ee}from"../chunks/CcUma9mn.js";import{s as h}from"../chunks/jhzyai53.js";import{s as se}from"../chunks/DQi72HcR.js";import{a as te,r as y}from"../chunks/CWK6jQzJ.js";import{G as ae}from"../chunks/DO_HQ_lx.js";import{D as ne,C as I}from"../chunks/BLim2yt1.js";var re=_('<li class="list-row flex justify-between svelte-7nunj8"><a class="svelte-7nunj8"> </a> <div class="badge badge-primary svelte-7nunj8"> </div></li>'),le=_('<div class="card shadow-sm border-primary my-5 mx-auto overflow-scroll svelte-7nunj8" style="max-width:400px;max-height:300px"><div class="card-body bg-base-100 svelte-7nunj8"><ul class="list svelte-7nunj8"></ul></div></div>'),ie=_(`<div class="svelte-7nunj8"><div class="img svelte-7nunj8"><div class="mx-10 svelte-7nunj8"><h1 class="uppercase svelte-7nunj8" style="font-size:4rem;width:50%;line-height:1em">No GRAIN,<br class="svelte-7nunj8"/>No gain.</h1> <h2 class="sub svelte-7nunj8">L'outil <span class="text-primary svelte-7nunj8">gratuit</span> de faisabilité
                d'autoconsommation.</h2> <a class="mt-3 btn btn-primary svelte-7nunj8" data-testid="a-projet-nouveau">Lancer ma simulation</a> <a class="ms-3 mt-3 btn btn-primary svelte-7nunj8" href="https://coturnix.fr/communaute/debut">Créer ma communauté</a> <!></div></div></div> <div class="border-primary border-bottom border-5 svelte-7nunj8"></div> <div class="mx-10 mt-10 svelte-7nunj8"><!> <h1 class="text-4xl text-balance my-5 lh-1 text-center svelte-7nunj8">Simulez <span class="text-primary font-bold svelte-7nunj8">gratuitement</span> vos <span class="text-primary font-bold svelte-7nunj8">revenus</span> photovoltaïques.</h1> <div class="flex p-5 mt-10 max-w-96 svelte-7nunj8"><div class="w-full sm:w-1/2 sm:ms-auto svelte-7nunj8"><h2 class="text-2xl mb-5 svelte-7nunj8"><span class="text-primary fw-bold svelte-7nunj8">Faisabilité</span> et <span class="text-primary fw-bold svelte-7nunj8">optimisation</span></h2> <p class="svelte-7nunj8"><!> vous donne l'ensemble des informations économique de votre projet
                d'auto-consommation et d'auto-consommation collective pour <span class="text-primary fw-bold svelte-7nunj8">prévoir</span>, <span class="text-primary fw-bold svelte-7nunj8">choisir</span>, <span class="text-primary fw-bold svelte-7nunj8">optimiser</span> votre installation photovoltaïque et son utilisation. <br class="svelte-7nunj8"/>Partagez une énergie <span class="text-primary fw-bold svelte-7nunj8">moins cher</span>, <span class="text-primary fw-bold svelte-7nunj8">local</span> et <span class="text-primary fw-bold svelte-7nunj8">de saison</span>.</p></div></div> <div class="flex p-5 max-w-96 svelte-7nunj8"><div class="w-full sm:w-1/2 sm:text-end sm:me-auto svelte-7nunj8"><h2 class="text-2xl mb-5 mt-10 svelte-7nunj8">Reprenez <span class="text-primary font-bold svelte-7nunj8">les rênes</span>.</h2> <p class="svelte-7nunj8">Avec toutes les informations, simulez le futur de votre
                production d'énergie et reprennez le pouvoir sur votre énergie.<br class="svelte-7nunj8"/> <span class="text-primary font-bold svelte-7nunj8">Simplement</span>, <span class="text-primary font-bold svelte-7nunj8">rapidement</span> et <span class="text-primary font-bold svelte-7nunj8">gratuitement</span>.<br class="svelte-7nunj8"/></p> <a class="mt-3 btn btn-sm btn-outline btn-primary svelte-7nunj8">Je lance ma simulation</a></div></div> <div class="flex p-5 max-w-96 svelte-7nunj8"><div class="w-full sm:w-1/2 sm:ms-auto svelte-7nunj8"><h2 class="text-2xl mb-5 mt-10 svelte-7nunj8">Et <span class="text-primary font-bold svelte-7nunj8">ensuite</span> ?</h2> <p class="svelte-7nunj8">Ensuite, passez sur <!> pour créer votre communauté et partager l'énergie de vos panneaux
                photovoltaïque avec vos voisins. Au fait, <!> gère aussi les flux financiers entre les participants. <br class="svelte-7nunj8"/>Oui, <span class="text-primary font-bold svelte-7nunj8">on fait tout ça.</span>.</p> <a class="mt-10 btn btn-primary svelte-7nunj8" href="https://coturnix.fr/communaute/debut">Créer ma communauté</a></div></div></div>`,1);function oe(o,a){V(a,!0);const J=X("email");U(()=>{J.set(a.data.email)});var g=ie(),v=Y(g),u=s(v),w=s(u),z=t(s(w),4),O=t(z,4);{var P=n=>{var r=le(),l=s(r),M=s(l);ee(M,21,()=>a.data.projets,d=>d.id,(d,c)=>{var f=re(),i=s(f),K=s(i,!0);e(i);var R=t(i,2),Q=s(R);e(R),e(f),S(T=>{h(i,"href",T),F(K,x(c).nom),F(Q,`${x(c).puissance??""}kWc`)},[()=>y("/grain/projet/[pid]",{pid:x(c).id})]),j(d,f)}),e(M),e(l),e(r),j(n,r)};$(O,n=>{n(P)})}e(w),e(u),e(v);var C=t(v,4),q=s(C);ne(q,{get donnees(){return a.data.donnees}});var m=t(q,4),G=s(m),k=t(s(G),2),W=s(k);ae(W,{}),b(15),e(k),e(G),e(m);var p=t(m,2),A=s(p),B=t(s(A),4);e(A),e(p);var N=t(p,2),D=s(N),E=t(s(D),2),L=t(s(E));I(L,{});var H=t(L,2);I(H,{}),b(5),e(E),b(2),e(D),e(N),e(C),S((n,r,l)=>{se(u,`background-image: url('${n??""}')`),h(z,"href",r),h(B,"href",l)},[()=>te("/static/trace.svg"),()=>y("/grain/projet/[id]",{id:"nouveau"}),()=>y("/grain/projet/[id]",{id:"nouveau"})]),j(o,g),Z()}function ye(o,a){oe(o,{get data(){return a.data}})}export{ye as component};
