1import{r,j as e}from"./react-vendor-CS5KQH4z.js";import{s as w,u as Se,o as _e,p as Ce,ad as ke,ae as De,g as Ee,S as Le,B as u,C as t,D as Ae,A as Ue,F as Oe,G as Fe,H as Ie,L as $e,I as Te,W as Pe,t as z,af as Re,ag as ze}from"./index-BLypBI79.js";import{n as Me}from"./newsletter.service-_KenvWkp.js";import{t as We}from"./taxonomie.service-CNX7AwcI.js";import{m as B,b5 as Ge,D as C,ab as Ve,t as He,b6 as M,F as qe,r as Ze,$ as Je,O as Ke,b7 as Qe,E as Xe,j as Ye,b8 as es,V as ss,b9 as as,l as ls,Z as rs,s as ts,ba as is,bb as ns,bc as cs,bd as os,be as ds,W as ms,bf as xs,d as gs,q as hs}from"./ui-vendor-DHNdotUn.js";import{a as ps,L as N}from"./router-vendor-z0xy9EC6.js";import"./query-vendor-D2Qiy2Hc.js";import"./supabase-vendor-Bpw_79gH.js";import"./radix-vendor-DbGz7Psx.js";import"./charts-vendor-CFO84u2G.js";async function us(a){const{data:i,error:n}=await w.functions.invoke("send-transactional-email",{body:a});if(n)throw console.error("Failed to send transactional email:",n),n;return i}async function Z(a,i){const{data:n,error:c}=await w.schema("ecosysteme").from(a).select(` 2 id, 3 nom, 4 url, 5 description, 6 logo_url, 7 echelles_territoriales!inner ( 8 nom, 9 slug 10 ) 11 `).in("echelles_territoriales.slug",i).order("nom");if(c)throw console.error(`Erreur fetch ${a} par échelles:`,c),c;return(n??[]).map(d=>{const m=d.echelles_territoriales;return{id:d.id,nom:d.nom,url:d.url,description:d.description,echelle_nom:m.nom,echelle_slug:m.slug,logo_url:d.logo_url}})}const W=a=>Z("annuaires",a),G=a=>Z("demonstrateurs",a);async function J(a,i){const{data:n,error:c}=await w.schema("ecosysteme").from(a).select("id, nom, url, description, type, localisation, logo_url").eq("type",i).order("nom");if(c)throw console.error(`Erreur fetch ${a} type=${i}:`,c),c;return n??[]}const V=a=>J("evenements",a),H=a=>J("incubateurs_fablabs",a);async function bs(){const{data:a,error:i}=await w.schema("ecosysteme").from("livres_blancs").select("id, nom, entreprise, url, description, annee, logo_url").order("annee",{ascending:!1,nullsFirst:!1});if(i)throw console.error("Erreur fetch livres_blancs:",i),i;return a??[]}const js=Re({email:ze().email("Email invalide")}),Ds=()=>{const{t:a}=Se("pages"),{lang:i}=ps(),n=i&&_e(i)?i:Ce,c=s=>`/${n}${s}`,[d,m]=r.useState(!1),[S,b]=r.useState(!1),[j,y]=r.useState(!1),[h,_]=r.useState([]),[v,K]=r.useState([]),[k,Q]=r.useState(!0),[D,X]=r.useState([]),[E,Y]=r.useState([]),[L,ee]=r.useState(!0),[A,se]=r.useState([]),[U,ae]=r.useState([]),[O,le]=r.useState(!0),[F,re]=r.useState([]),[I,te]=r.useState([]),[$,ie]=r.useState(!0),[T,ne]=r.useState([]),[ce,oe]=r.useState(!0),[P,de]=r.useState([]);r.useEffect(()=>{(async()=>{try{const[l,o,g,ye,ve,Ne,fe,Be,we]=await Promise.all([W(["france","monde"]),W(["europe"]),G(["france","region"]),G(["europe"]),V("Salon"),V("Concours"),H("Incubateur"),H("FabLab"),bs()]);_(l),K(o),X(g),Y(ye),se(ve),ae(Ne),re(fe),te(Be),ne(we)}catch(l){console.error("Erreur chargement ecosysteme:",l)}finally{Q(!1),ee(!1),le(!1),ie(!1),oe(!1)}})()},[]),r.useEffect(()=>{We.getSousCategoriesWithCount().then(({data:s})=>{s&&de(s)})},[]);const{register:me,handleSubmit:xe,formState:{errors:ge,isSubmitting:R},reset:he}=ke({resolver:De(js)}),pe=async s=>{try{const l="https://clrnhmzrcbrrixknbfvf.supabase.co/storage/v1/object/public/livre-blanc-pdfs/livre-blanc-ecosysteme-agtech-2026.pdf",o=document.createElement("a");o.href=l,o.download="livre-blanc-ecosysteme-agtech-2026.pdf",document.body.appendChild(o),o.click(),document.body.removeChild(o),j&&await Me.subscribe(s.email,void 0,n,"livre_blanc"),await us({emailType:"livre_blanc_download",data:{email:s.email,pdfUrl:l}}),b(!0),z.success(a("livreBlanc.modal.downloadStart")),setTimeout(()=>{he(),y(!1),m(!1),b(!1)},3e3)}catch{z.error(a("livreBlanc.modal.error"))}},ue=[{id:"agritech",title:a("livreBlanc.sections.agritech")},{id:"freins",title:a("livreBlanc.sections.freins")},{id:"panorama",title:a("livreBlanc.sections.panorama")},{id:"ecosysteme",title:a("livreBlanc.sections.ecosysteme")}],be={LayoutDashboard:M,Users:hs,Lightbulb:gs,ShoppingCart:xs,Heart:ms,Plane:ds,Gauge:os,Satellite:cs,Smartphone:ns,Radio:is,Building:ts,Zap:rs,Building2:ls,Server:as,MapPin:ss,Wifi:es,Bot:Ye,Eye:Xe,Calculator:Qe,GraduationCap:Ke,Database:Je,Briefcase:Ze},je=s=>{if(!s)return null;const l=s.replace("lucide:","").split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join("");return be[l]??null},p=Ee("livreBlanc");
11return e.jsxs(e.Fragment,{children:[e.jsx(Le,{title:p.title,description:p.description,keywords:p.keywords,path:p.path,type:p.type}),e.jsxs("div",{className:"flex-1",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary/10 via-primary/5 to-transparent py-20",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs(B.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-4xl mx-auto text-center",children:[e.jsx("div",{className:"flex justify-center mb-6",children:e.jsx("div",{className:"bg-primary/10 p-6 rounded-full",children:e.jsx(Ge,{className:"w-16 h-16 text-primary"})})}),e.jsx("h1",{className:"text-5xl font-bold mb-6",children:a("livreBlanc.hero.title")}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:a("livreBlanc.hero.subtitle")}),e.jsxs(u,{size:"lg",onClick:()=>m(!0),children:[e.jsx(C,{className:"w-5 h-5 mr-2"}),a("livreBlanc.hero.downloadButton")]})]})})}),e.jsx("section",{className:"py-16 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-6xl mx-auto flex flex-col lg:flex-row gap-10",children:[e.jsx("aside",{className:"w-full lg:w-64 xl:w-72 flex-shrink-0 order-1 lg:order-2 self-start lg:self-stretch",children:e.jsx("div",{className:"sticky top-24",children:e.jsxs(t,{className:"p-6 rounded-2xl border-2 border-gray-100 shadow-lg",children:[e.jsx("h3",{className:"text-sm font-bold text-gray-900 mb-4 uppercase tracking-wider",children:a("livreBlanc.toc.title")}),e.jsx("nav",{className:"space-y-1",children:ue.map((s,l)=>e.jsxs("a",{href:`#${s.id}`,className:"flex items-center gap-3 text-sm text-gray-700 font-medium hover:text-primary transition-colors py-1.5",children:[e.jsx("span",{className:"text-xs font-bold text-gray-400 w-4 shrink-0",children:l+1}),s.title]},s.id))})]})})}),e.jsxs("div",{className:"flex-1 min-w-0 order-2 lg:order-1 space-y-16",children:[e.jsxs(f,{id:"agritech",title:a("livreBlanc.sections.agritech"),children:[e.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:a("livreBlanc.content.agritech.p1")}),e.jsx("p",{className:"text-gray-700 leading-relaxed mb-6 font-semibold",children:a("livreBlanc.content.agritech.p2")}),e.jsx("div",{className:"space-y-4 mb-8",children:a("livreBlanc.content.agritech.fonctions",{returnObjects:!0}).map((s,l)=>e.jsxs(t,{className:"p-6",children:[e.jsx("h4",{className:"font-bold text-lg mb-1 text-primary",children:s.title}),e.jsxs("p",{className:"text-sm text-gray-500 italic mb-2",children:["[",s.subtitle,"]"]}),e.jsx("p",{className:"text-gray-700",children:s.description})]},l))}),e.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-lg p-6 mb-6",children:[e.jsx("h4",{className:"font-bold text-lg mb-3",children:a("livreBlanc.content.agritech.terminologie.noteTitle")}),e.jsx("p",{className:"text-gray-700 leading-relaxed mb-3",children:a("livreBlanc.content.agritech.terminologie.p1")}),e.jsx("p",{className:"text-gray-700 leading-relaxed mb-3",children:a("livreBlanc.content.agritech.terminologie.p2")}),e.jsx("ul",{className:"list-disc pl-6 space-y-2 mb-3",children:a("livreBlanc.content.agritech.terminologie.raisons",{returnObjects:!0}).map((s,l)=>e.jsx("li",{className:"text-gray-700",children:s},l))}),e.jsx("p",{className:"text-gray-700 leading-relaxed mb-3",children:a("livreBlanc.content.agritech.terminologie.p3")}),e.jsx("p",{className:"text-gray-700 leading-relaxed",children:a("livreBlanc.content.agritech.terminologie.p4")})]}),e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6",children:[e.jsx("h4",{className:"font-bold text-lg mb-3",children:a("livreBlanc.content.agritech.allerPlusLoin.title")}),e.jsx("ul",{className:"space-y-2",children:a("livreBlanc.content.agritech.allerPlusLoin.links",{returnObjects:!0}).map((s,l)=>e.jsxs("li",{children:[s.url?e.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-semibold",children:s.title}):e.jsx("span",{className:"font-semibold",children:s.title}),s.description&&e.jsx("p",{className:"text-gray-600 text-sm mt-1",children:s.description})]},l))})]})]}),e.jsxs(f,{id:"freins",title:a("livreBlanc.sections.freins"),children:[e.jsx("p",{className:"text-gray-700 leading-relaxed mb-6",children:a("livreBlanc.content.freins.p1")}),e.jsx("div",{className:"space-y-4 mb-8",children:a("livreBlanc.content.freins.items",{returnObjects:!0}).map((s,l)=>e.jsxs(t,{className:"p-6 border-l-4 border-primary/30",children:[e.jsx("h4",{className:"font-bold text-lg mb-1 text-primary",children:s.title}),e.jsx("p",{className:"text-gray-500 text-sm italic mb-3",children:s.description}),s.bullets&&s.bullets.length>0&&e.jsx("ul",{className:"space-y-1.5",children:s.bullets.map((o,g)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700 text-sm",children:[e.jsx("span",{className:"text-primary font-bold mt-0.5 flex-shrink-0",children:"â¢"}),e.jsx("span",{children:o})]},g))})]},l))}),e.jsxs("div",{className:"space-y-4 mb-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-primary",children:a("livreBlanc.content.freins.adoption.title")}),e.jsx("p",{className:"text-gray-700 leading-relaxed",children:a("livreBlanc.content.freins.adoption.p1")}),e.jsx("p",{className:"text-gray-700 leading-relaxed",children:a("livreBlanc.content.freins.adoption.p2")}),e.jsx("p",{className:"text-gray-700 leading-relaxed",children:a("livreBlanc.content.freins.adoption.p3")}),e.jsx("p",{className:"text-gray-700 leading-relaxed",children:a("livreBlanc.content.freins.adoption.p4")}),e.jsx("p",{className:"text-gray-700 leading-relaxed",children:a("livreBlanc.content.freins.adoption.p5")})]}),e.jsxs(t,{className:"p-8 rounded-2xl border-2 border-blue-100 shadow-lg",children:[e.jsxs("h3",{className:"text-xl font-bold mb-2 text-blue-600 flex items-center gap-3",children:[e.jsx("div",{className:"w-7 h-7 bg-blue-600 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx("svg",{className:"w-4 h-4 text-white",f
11ill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})})}),a("livreBlanc.content.freins.bibliographie.title")]}),e.jsx("p",{className:"text-gray-500 text-sm mb-6",children:a("livreBlanc.content.freins.adoption.title")}),e.jsx("div",{className:"space-y-4",children:a("livreBlanc.content.freins.bibliographie.items",{returnObjects:!0}).map((s,l)=>{const o=[{border:"border-indigo-500",bg:"from-indigo-50",badge:"bg-indigo-600",link:"text-indigo-600 hover:text-indigo-800"},{border:"border-blue-500",bg:"from-blue-50",badge:"bg-blue-600",link:"text-blue-600 hover:text-blue-800"},{border:"border-green-500",bg:"from-green-50",badge:"bg-green-600",link:"text-green-600 hover:text-green-800"},{border:"border-amber-500",bg:"from-amber-50",badge:"bg-amber-600",link:"text-amber-600 hover:text-amber-800"},{border:"border-rose-500",bg:"from-rose-50",badge:"bg-rose-600",link:"text-rose-600 hover:text-rose-800"}],g=o[l%o.length];return e.jsxs(B.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:l*.05},className:`flex gap-4 p-4 bg-gradient-to-r ${g.bg} to-transparent rounded-lg border-l-4 ${g.border}`,children:[e.jsx("div",{className:`shrink-0 w-14 h-14 ${g.badge} rounded-lg flex items-center justify-center text-white font-bold text-xs shadow-md`,children:s.year}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("p",{className:"text-gray-800 text-sm mb-1",children:[e.jsx("strong",{children:s.authors})," â ",s.title]}),s.journal&&e.jsx("p",{className:"text-xs text-gray-500 italic mb-1",children:s.journal}),s.url&&e.jsxs("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:`inline-flex items-center gap-1 text-xs font-medium hover:underline transition-colors ${g.link}`,children:[e.jsx(Ve,{className:"w-3 h-3"}),"Consulter"]})]})]},l)})})]})]}),e.jsxs(f,{id:"panorama",title:a("livreBlanc.content.panorama.title"),children:[e.jsx("p",{className:"text-gray-700 leading-relaxed mb-6",children:a("livreBlanc.content.panorama.p1")}),e.jsxs(t,{className:"p-6 bg-primary/5 border-primary/20",children:[e.jsx("p",{className:"text-center text-lg mb-4",children:e.jsx("strong",{children:a("livreBlanc.panorama.cta")})}),e.jsx("div",{className:"flex justify-center",children:e.jsx(u,{asChild:!0,size:"lg",children:e.jsxs(N,{to:c("/outils"),children:[a("livreBlanc.panorama.button"),e.jsx(He,{className:"w-5 h-5 ml-2"})]})})})]}),P.length>0?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mt-8",children:P.map(s=>{const l=je(s.icone);return e.jsx(N,{to:c(`/outils?sous_categorie=${s.id}`),className:"block group h-full",children:e.jsxs(t,{className:"p-4 text-center h-full min-h-[120px] flex flex-col items-center justify-center hover:shadow-lg hover:border-primary/40 hover:-translate-y-0.5 transition-all cursor-pointer",children:[e.jsx("div",{className:"flex justify-center mb-2",children:e.jsx("div",{className:"w-9 h-9 rounded-lg bg-primary/10 flex items-center justify-center group-hover:bg-primary/20 transition-colors",children:l?e.jsx(l,{className:"w-5 h-5 text-primary"}):e.jsx(M,{className:"w-5 h-5 text-primary opacity-40"})})}),e.jsx("p",{className:"font-semibold text-sm leading-tight mb-1 group-hover:text-primary transition-colors",children:s.nom}),s.nombre_outils>0&&e.jsxs("p",{className:"text-xs text-gray-400",children:[s.nombre_outils," outil",s.nombre_outils>1?"s":""]})]})},s.id)})}):e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mt-8",children:Array.from({length:8}).map((s,l)=>e.jsx(t,{className:"p-4 h-[120px] animate-pulse bg-gray-100"},l))})]}),e.jsxs(f,{id:"ecosysteme",title:a("livreBlanc.sections.ecosysteme"),children:[e.jsx("p",{className:"text-gray-700 leading-relaxed mb-8",children:a("livreBlanc.content.ecosysteme.p1")}),e.jsxs("div",{className:"mb-12",children:[e.jsx("h3",{className:"text-2xl font-bold mb-4 text-primary",children:a("livreBlanc.ecosystem.annuaires")}),e.jsx("h4",{className:"text-xl font-semibold mb-4 mt-6",children:a("livreBlanc.ecosystem.annuairesOnline")}),k?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:Array.from({length:8}).map((s,l)=>e.jsx(t,{className:"p-4 h-20 animate-pulse bg-gray-100"},l))}):h.length>0?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:h.map(s=>e.jsx(x,{name:s.nom,url:s.url,badge:s.echelle_nom,logoUrl:s.logo_url},s.id))}):e.jsx("p",{className:"text-gray-500 text-sm italic",children:a("livreBlanc.ecosystem.empty.annuaire")}),e.jsx("h4",{className:"text-xl font-semibold mb-4 mt-8",children:a("livreBlanc.ecosystem.annuairesEU")}),k?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:Array.from({length:4}).map((s,l)=>e.jsx(t,{className:"p-4 h-20 animate-pulse bg-gray-100"},l))}):v.length>0?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:v.map(s=>e.jsx(x,{name:s.nom,url:s.url,badge:s.echelle_nom,logoUrl:s.logo_url},s.id))}):e.jsx("p",{className:"text-gray-500 text-sm italic",children:a("livreBlanc.ecosystem.empty.annuaire")})]}),e.jsxs("div",{className:"mb-12",children:[e.jsx("h3",{className:"text-2xl font-bold mb-4 text-primary",children:a("livreBlanc.ecosystem.demonstrateurs")}),e.jsx("p",{className:"text-gray-600 mb-6",children:a("livreBlanc.ecosystem.demonstrateursDesc")}),e.jsx("h4",{className:"text-xl font-semibold mb-4",children:a("livreBlanc.ecosystem.demonstrateursFR")}),L?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:Array.from({length:6}).map((s,l)=>e.jsx(t,{className:"p-4 h-20 animate-pulse bg-gray-100"},l))}):D.length>0?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:D.map(s=>e.jsx(x,{name:s.nom,url:s.url,badge:s.echelle_nom,logoUrl:s.logo_url},s.id))}):e.jsx("p",{className:"text-gray-500 text-sm italic",children:a("livreBlanc.ecosystem.empty.demonstrateur")}),e.jsx("h4",{className:"text-xl font-semibold mb-4 mt-8",children:a("livreBlanc.ecosystem.demonstrateursEU")}),L?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:Array.from({length:4}).map((s,l)=>e.jsx(t,{className:"p-4 h-20 animate-pulse bg-gray-100"},l))}):E.length>0?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:E.map(s=>e.jsx(x,{name:s.nom,url:s.url,badge:s.echelle_nom,logoUrl:s.logo_url},s.id))}):e.jsx("p",{className:"text-gray-500 text-sm italic",children:a("livreBlanc.ecosystem.empty.demonstrateur")})]}),e.jsxs("div",{className:"mb-12",children:[e.jsx("h3",{className:"text-2xl font-bold mb-4 text-primary",children:a("livreBlanc.ecosystem.events")}),e.jsx("p",{className:"text-gray-600 mb-6",children:a("livreBlanc.ecosystem.eventsDesc")}),O?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:Array.from({length:6}).map((s,l)=>e.jsx(t,{className:"p-4 h-20 animate-pulse bg-gray-100"},l))}):A.length>0?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:A.map(s=>e.jsx(x,{name:s.nom,url:s.url,location:s.localisation??void 0,logoUrl:s.logo_url},s.id))}):e.jsx("p",{className:"text-gray-500 text-sm italic",children:a("livreBlanc.ecosystem.empty.evenement")})]}),e.jsxs("div",{className:"mb-12",children:[e.jsx("h3",{className:"text-2xl font-bold mb-4 text-primary",children:a("livreBlanc.ecosystem.concours")}),e.jsx("p",{className:"text-gray-600 mb-6",children:a("livreBlanc.ecosystem.concoursDesc")}),O?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:Array.from({length:4}).map((s,l)=>e.jsx(t,{className:"p-4 h-20 animate-pulse bg-gray-100"},l))}):U.length>0?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:U.map(s=>e.jsx(x,{name:s.nom,url:s.url,logoUrl:s.logo_url},s.id))}):e.jsx("p",{className:"text-gray-500 text-sm italic",children:a("livreBlanc.ecosystem.empty.concours")})]}),e.jsxs("div",{className:"mb-12",children:[e.jsx("h3",{className:"text-2xl font-bold mb-4 text-primary",children:a("livreBlanc.ecosystem.incubateurs")}),e.jsx("p",{className:"text-gray-600 mb-6",children:a("livreBlanc.ecosystem.incubateursDesc")}),$?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:Array.from({length:6}).map((s,l)=>e.jsx(t,{className:"p-4 h-20 animate-pulse bg-gray-100"},l))}):F.length>0?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:F.map(s=>e.jsx(x,{name:s.nom,url:s.url,location:s.localisation??void 0,logoUrl:s.logo_url},s.id))}):e.jsx("p",{className:"text-gray-500 text-sm italic",children:a("livreBlanc.ecosystem.empty.incubateur")})]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h3",{className:"text-2xl font-bold mb-4 text-primary",children:a("livreBlanc.ecosystem.fablabs")}),e.jsx("p",{className:"text-gray-600 mb-6",children:a("livreBlanc.ecosystem.fablabsDesc")}),$?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:Array.from({length:2}).map((s,l)=>e.jsx(t,{className:"p-4 h-20 animate-pulse bg-gray-100"},l))}):I.length>0?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:I.map(s=>e.jsx(x,{name:s.nom,url:s.url,location:s.localisation??void 0,logoUrl:s.logo_url},s.id))}):e.jsx("p",{className:"text-gray-500 text-sm italic",children:a("livreBlanc.ecosystem.empty.fablab")})]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h3",{className:"text-2xl font-bold mb-4 text-primary",children:a("livreBlanc.ecosystem.livresBlancs")}),e.jsx("p",{className:"text-gray-600 mb-6",children:a("livreBlanc.ecosystem.livresBlancsDesc")}),ce?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:Array.from({length:3}).map((s,l)=>e.jsx(t,{className:"p-4 h-20 animate-pulse bg-gray-100"},l))}):T.length>0?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:T.map(s=>e.jsx(x,{name:s.nom,url:s.url,badge:s.annee?.toString(),location:s.entreprise,logoUrl:s.logo_url},s.id))}):e.jsx("p",{className:"text-gray-500 text-sm italic",children:a("livreBlanc.ecosystem.empty.livreBlanc")})]}),e.jsx(t,{className:"p-6 bg-blue-50 border-blue-200 mt-8",children:e.jsxs("p",{className:"text-gray-700 text-sm",children:[e.jsx("strong",{children:"Note :"})," ",a("livreBlanc.ecosystem.note")]})})]})]})]})})}),e.jsx("section",{className:"py-16 bg-primary text-white",children:e.jsx("div",{className:"container mx-auto px-4 text-center",children:e.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:a("livreBlanc.ctaDownload.title")}),e.jsx("p",{className:"text-xl mb-8 opacity-90",children:a("livreBlanc.ctaDownload.subtitle")}),e.jsxs(u,{size:"lg",variant:"secondary",onClick:()=>m(!0),children:[e.jsx(C,{className:"w-5 h-5 mr-2"}),a("livreBlanc.ctaDownload.button")]})]})})})]}),e.jsx(Ae,{open:d,onOpenChange:m,children:e.jsxs(Ue,{className:"sm:max-w-md",children:[e.jsxs(Oe,{children:[e.jsx(Fe,{children:a("livreBlanc.modal.title")}),e.jsx(Ie,{children:a("livreBlanc.modal.description")})]}),S?e.jsxs("div",{className:"text-center py-8",children:[e.jsx(qe,{className:"w-16 h-16 text-green-600 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:a("livreBlanc.modal.successTitle")}),e.jsx("p",{className:"text-gray-600",children:a("livreBlanc.modal.successDesc")})]}):e.jsxs("form",{onSubmit:xe(pe),className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx($e,{htmlFor:"email",children:a("livreBlanc.modal.email")}),e.jsx(Te,{id:"email",type:"email",placeholder:a("livreBlanc.modal.emailPlaceholder"),...me("email"),className:"mt-1"}),ge.email&&e.jsx("p",{className:"text-sm text-red-600 mt-1",children:a("livreBlanc.modal.emailError")})]}),e.jsxs("div",{className:"flex items-start space-x-2",children:[e.jsx("input",{id:"newsletter",type:"checkbox",checked:j,onChange:s=>
11y(s.target.checked),className:"mt-0.5 h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"}),e.jsx("label",{htmlFor:"newsletter",className:"text-sm text-gray-600 leading-none",children:a("livreBlanc.modal.newsletter")})]}),e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[e.jsx("p",{className:"text-sm text-gray-700 mb-2",children:e.jsx("strong",{children:a("livreBlanc.modal.noAccount")})}),e.jsx("p",{className:"text-sm text-gray-600 mb-3",children:a("livreBlanc.modal.noAccountDesc")}),e.jsx(u,{asChild:!0,variant:"outline",size:"sm",className:"w-full",children:e.jsx(N,{to:c("/register"),children:a("livreBlanc.modal.createAccount")})})]}),e.jsx(u,{type:"submit",className:"w-full",disabled:R,children:R?a("livreBlanc.modal.submitting"):e.jsxs(e.Fragment,{children:[e.jsx(C,{className:"w-4 h-4 mr-2"}),a("livreBlanc.modal.submit")]})}),e.jsxs("p",{className:"text-xs text-gray-500 text-center",children:[a("livreBlanc.modal.privacy")," ",e.jsx(N,{to:c("/privacy"),className:"text-primary hover:underline",children:a("livreBlanc.modal.privacyLink")}),"."]})]})]})})]})},f=({id:a,title:i,children:n})=>e.jsx(B.div,{id:a,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"scroll-mt-20",children:e.jsxs(t,{className:"p-8",children:[e.jsx("h2",{className:"text-3xl font-bold mb-6 text-primary border-b pb-4",children:i}),n]})}),q=["bg-blue-100 text-blue-700","bg-green-100 text-green-700","bg-purple-100 text-purple-700","bg-amber-100 text-amber-700","bg-rose-100 text-rose-700","bg-cyan-100 text-cyan-700","bg-indigo-100 text-indigo-700","bg-emerald-100 text-emerald-700"],x=({name:a,url:i,badge:n,location:c,logoUrl:d})=>{const[m,S]=r.useState(!1),b=a.slice(0,2).toUpperCase(),j=a.split("").reduce((_,v)=>_+v.charCodeAt(0),0)%q.length,y=q[j],h=d??null;return e.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"block",children:e.jsxs(t,{className:"p-4 hover:shadow-lg transition-shadow h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"w-9 h-9 rounded overflow-hidden flex-shrink-0 bg-white border border-gray-100 flex items-center justify-center",children:h&&!m?e.jsx("img",{src:h,alt:a,className:"w-full h-full object-contain p-0.5",onError:()=>S(!0)}):e.jsx("div",{className:`w-full h-full font-bold text-xs flex items-center justify-center ${y}`,children:b})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-semibold text-sm truncate",children:a}),c&&e.jsx("p",{className:"text-xs text-gray-500 truncate",children:c})]})]}),n&&e.jsx(Pe,{variant:"secondary",className:"text-xs",children:n})]})})};export{Ds as LivreBlanc}; 12//# sourceMappingURL=LivreBlanc-CaLixB8q.js.map
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.