import { g as getContext, o as attr_style, b as attr, h as ensure_array_like, e as escape_html, p as pop, a as push, j as stringify } from "../../../chunks/index.js";
import { r as resolve, a as asset } from "../../../chunks/index3.js";
import { G as Grain } from "../../../chunks/Grain.js";
import { D as Donnees, C as Coturnix } from "../../../chunks/Donnees.js";
function GrainMain($$payload, $$props) {
  push();
  let { data } = $$props;
  getContext("email");
  $$payload.out.push(`<div class="svelte-7nunj8"><div class="img svelte-7nunj8"${attr_style(`background-image: url('${stringify(asset("/static/trace.svg"))}')`)}><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"${attr("href", resolve("/grain/projet/[id]", { id: "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> `);
  {
    $$payload.out.push("<!--[-->");
    const each_array = ensure_array_like(data.projets);
    $$payload.out.push(`<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"><!--[-->`);
    for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
      let p = each_array[$$index];
      $$payload.out.push(`<li class="list-row flex justify-between svelte-7nunj8"><a${attr("href", resolve("/grain/projet/[pid]", { pid: p.id }))} class="svelte-7nunj8">${escape_html(p.nom)}</a> <div class="badge badge-primary svelte-7nunj8">${escape_html(p.puissance)}kWc</div></li>`);
    }
    $$payload.out.push(`<!--]--></ul></div></div>`);
  }
  $$payload.out.push(`<!--]--></div></div></div> <div class="border-primary border-bottom border-5 svelte-7nunj8"></div> <div class="mx-10 mt-10 svelte-7nunj8">`);
  Donnees($$payload, { donnees: data.donnees });
  $$payload.out.push(`<!----> <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">`);
  Grain($$payload, {});
  $$payload.out.push(`<!----> 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"${attr("href", resolve("/grain/projet/[id]", { id: "nouveau" }))}>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 `);
  Coturnix($$payload, {});
  $$payload.out.push(`<!----> pour créer votre communauté et partager l'énergie de vos panneaux
                photovoltaïque avec vos voisins. Au fait, `);
  Coturnix($$payload, {});
  $$payload.out.push(`<!----> 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>`);
  pop();
}
function _page($$payload, $$props) {
  const { data } = $$props;
  GrainMain($$payload, { data });
}
export {
  _page as default
};
