1var __IMPORT_META_ENV={};var __PROCESS_ENV={NODE_ENV:"production"}; 2import{a as W}from"/chunks/chunk-LB5JTLPI.js";import{a as S,b as Y,c as _,e as J,g as Q}from"/chunks/chunk-V4DMSE27.js";import{m as X}from"/chunks/chunk-5WFXDMX7.js";import{b as q}from"/chunks/chunk-NB3D5TSC.js";import"/chunks/chunk-DP67E3KD.js";import"/chunks/chunk-64B44DNV.js";import{a as L}from"/chunks/chunk-A6NSEO7N.js";import"/chunks/chunk-QK5GDHFF.js";import{a as P}from"/chunks/chunk-5LKAQM72.js";import"/chunks/chunk-YQIDYBH5.js";import{Bp as G,Jj as $,Ju as E,Ml as O,Nk as F,Pl as U,Pt as H,VB as B,Wm as T,Xw as K,Zl as M,hf as z,lf as j,mE as V,zj as A}from"/chunks/chunk-5XO7YT7G.js";import"/chunks/chunk-Q5GT4ESH.js";import"/chunks/chunk-CL4HBHDB.js";import"/chunks/chunk-PE5MZRD7.js";import{a as R}from"/chunks/chunk-2F2XG2RD.js";import"/chunks/chunk-QLZURSYN.js";import"/chunks/chunk-WCEWIOOT.js";import{d as C}from"/chunks/chunk-43M3N6VY.js";var g=C(R());var I=C(R());var o=C(L());function oe(t,n){let l={path:"/",name:"Racine",children:[],pages:[]},a=new Map;a.set("/",l);let r=[...t].sort();for(let s of r){if(s==="/")continue;let u=s.split("/").filter(Boolean),p=l,m="";for(let d of u){if(m+="/"+d,!a.has(m)){let c={path:m,name:d,children:[],pages:[]};a.set(m,c),p.children.push(c)}p=a.get(m)}}for(let s of n){if(s.type==="type-folder")continue;let u=s.folder||"/";(a.get(u)||l).pages.push(s)}return l}function re(t,n){let l=n.find(r=>r.type==="header"&&(r.linkedFolderIds.includes(t)||r.linkedFolderIds.length===0&&r.linkedPageIds.length===0)),a=n.find(r=>r.type==="footer"&&(r.linkedFolderIds.includes(t)||r.linkedFolderIds.length===0&&r.linkedPageIds.length===0));return{header:l,footer:a}}function Z({onSelectPage:t,onCreatePage:n,onCreateFolder:l}){let a=Y(),r=S(d=>d.pages),s=S(d=>d.currentFolder),u=S(d=>d.setCurrentFolder),p=J(),m=(0,I.useMemo)(()=>oe(a,r),[a,r]);return(0,o.jsxs)("div",{className:"space-y-1",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,o.jsx)("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wide",children:"Arborescence"}),(0,o.jsxs)("div",{className:"flex gap-1",children:[(0,o.jsx)("button",{onClick:()=>l(s),title:"Nouveau dossier",className:"p-1 rounded hover:bg-accent/50 text-muted-foreground hover:text-foreground transition-colors",children:(0,o.jsx)(M,{className:"w-3.5 h-3.5"})}),(0,o.jsx)("button",{onClick:()=>n(s),title:"Nouvelle page",className:"p-1 rounded hover:bg-accent/50 text-muted-foreground hover:text-foreground transition-colors",children:(0,o.jsx)(E,{className:"w-3.5 h-3.5"})})]})]}),(0,o.jsx)(ee,{node:m,depth:0,currentFolder:s,setCurrentFolder:u,onSelectPage:t,onCreatePage:n,onCreateFolder:l,templates:p})]})}function ee({node:t,depth:n,currentFolder:l,setCurrentFolder:a,onSelectPage:r,onCreatePage:s,onCreateFolder:u,templates:p}){let[m,d]=(0,I.useState)(n===0),[c,N]=(0,I.useState)(!1),y=l===t.path,k=t.children.length>0||t.pages.length>0,{header:f,footer:x}=re(t.path,p),h=f!=null||x!=null;return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:`group flex items-center gap-1 py-1 px-1.5 rounded-lg cursor-pointer transition-colors ${y?"bg-brand/10 text-brand":"hover:bg-accent/50"}`,style:{paddingLeft:n*12+6},onClick:()=>{a(t.path),d(!m)},children:[k?m?(0,o.jsx)(z,{className:"w-3 h-3 shrink-0 text-muted-foreground"}):(0,o.jsx)(j,{className:"w-3 h-3 shrink-0 text-muted-foreground"}):(0,o.jsx)("span",{className:"w-3"}),m?(0,o.jsx)(O,{className:"w-3.5 h-3.5 shrink-0 text-amber-500"}):(0,o.jsx)(M,{className:"w-3.5 h-3.5 shrink-0 text-amber-500/70"}),(0,o.jsx)("span",{className:"text-xs truncate flex-1",children:t.name}),(0,o.jsx)("span",{className:"text-[9px] text-muted-foreground",children:t.pages.length}),h&&(0,o.jsx)("span",{className:"opacity-0 group-hover:opacity-100 transition-opacity",title:[f&&`H: ${f.name}`,x&&`F: ${x.name}`].filter(Boolean).join(" \xB7 "),children:(0,o.jsx)(H,{className:"w-2.5 h-2.5 text-brand/60"})}),(0,o.jsxs)("div",{className:"relative opacity-0 group-hover:opacity-100 transition-opacity",children:[(0,o.jsx)("button",{onClick:b=>{b.stopPropagation(),N(!c)},className:"p-0.5 rounded hover:bg-accent",children:(0,o.jsx)(A,{className:"w-3 h-3 text-muted-foreground"})}),c&&(0,o.jsxs)("div",{className:"absolute right-0 top-5 z-50 bg-card border border-border rounded-lg shadow-lg py-1 min-w-36",onClick:b=>b.stopPropagation(),onMouseLeave:()=>N(!1),children:[(0,o.jsxs)("button",{onClick:()=>{s(t.path),N(!1)},className:"flex items-center gap-2 w-full px-3 py-1.5 text-[11px] hover:bg-accent/50 transition-colors",children:[(0,o.jsx)(F,{className:"w-3 h-3"})," Nouvelle page"]}),(0,o.jsxs)("button",{onClick:()=>{u(t.path),N(!1)},className:"flex items-center gap-2 w-full px-3 py-1.5 text-[11px] hover:bg-accent/50 transition-colors",children:[(0,o.jsx)(M,{className:"w-3 h-3"})," Nouveau dossier"]})]})]})]}),m&&h&&(0,o.jsxs)("div",{className:"flex flex-wrap gap-1 mt-0.5 mb-1",style:{paddingLeft:n*12+26},children:[f&&(0,o.jsxs)("span",{className:"inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[9px] font-medium bg-sky-500/10 text-sky-600 dark:text-sky-400 border border-sky-500/20",children:["\u2191 ",f.name]}),x&&(0,o.jsxs)("span",{className:"inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[9px] font-medium bg-violet-500/10 text-violet-600 dar
2k:text-violet-400 border border-violet-500/20",children:["\u2193 ",x.name]})]}),m&&(0,o.jsxs)(o.Fragment,{children:[t.children.map(b=>(0,o.jsx)(ee,{node:b,depth:n+1,currentFolder:l,setCurrentFolder:a,onSelectPage:r,onCreatePage:s,onCreateFolder:u,templates:p},b.path)),t.pages.map(b=>(0,o.jsx)(ae,{page:b,depth:n+1,onSelect:r},b.id))]})]})}function ae({page:t,depth:n,onSelect:l}){let a=t.status==="st-draft",r=t.status==="st-published";return(0,o.jsxs)("button",{onClick:()=>l(t),className:"group flex items-center gap-1.5 w-full py-1 px-1.5 rounded-lg hover:bg-accent/50 transition-colors",style:{paddingLeft:n*12+18},children:[(0,o.jsx)(F,{className:"w-3 h-3 text-blue-400 shrink-0"}),(0,o.jsx)("span",{className:"text-xs truncate flex-1 text-left",children:t.name||"Sans titre"}),r&&(0,o.jsx)(T,{className:"w-2.5 h-2.5 text-green-500"}),a&&(0,o.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-gray-400"})]})}var e=C(L());function se({onEditPage:t}){let n=q(),{pages:l,currentFolder:a,search:r,setSearch:s,createPage:u,deletePage:p,updatePage:m}=S(),d=_(a),c=Q(),[N,y]=(0,g.useState)(!1),[k,f]=(0,g.useState)(!1),[x,h]=(0,g.useState)("/"),b=(0,g.useMemo)(()=>{if(!r)return d;let i=r.toLowerCase();return d.filter(w=>w.name.toLowerCase().includes(i)||w.slug.toLowerCase().includes(i))},[d,r]),D=`/${c}/`,v=async i=>{await n({message:`Supprimer "${i.name}" ?`,confirmLabel:"Supprimer",danger:!0})&&(await p(i.id),P.success("Page supprim\xE9e"))},te=async i=>{let w=i.status==="st-published"?"st-draft":"st-published";await m(i.id,{status:w}),P.success(w==="st-published"?"Page publi\xE9e":"Brouillon")};return(0,e.jsxs)("div",{className:"flex flex-col lg:flex-row gap-4 min-h-0 flex-1",children:[(0,e.jsx)("div",{className:"lg:w-56 xl:w-64 shrink-0 bg-card rounded-xl border border-border/50 p-3 overflow-y-auto",style:{maxHeight:"calc(100vh - 230px)"},children:(0,e.jsx)(Z,{onSelectPage:t,onCreatePage:i=>{h(i),y(!0)},onCreateFolder:i=>{h(i),f(!0)}})}),(0,e.jsxs)("div",{className:"flex-1 min-w-0 space-y-3",children:[(0,e.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-2",children:[(0,e.jsxs)("div",{className:"flex-1 relative w-full sm:w-auto",children:[(0,e.jsx)(K,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground"}),(0,e.jsx)("input",{type:"text",value:r,onChange:i=>s(i.target.value),placeholder:"Rechercher...",className:"w-full pl-9 pr-3 py-2 text-xs rounded-lg border border-border bg-background outline-none focus:ring-2 focus:ring-brand/50"})]}),(0,e.jsxs)("div",{className:"flex gap-1.5",children:[(0,e.jsxs)("button",{onClick:()=>{h(a),f(!0)},className:"flex items-center gap-1 px-2.5 py-2 rounded-lg border border-border text-[11px] hover:bg-accent/50 transition-colors",children:[(0,e.jsx)(U,{className:"w-3 h-3"})," Dossier"]}),(0,e.jsxs)("button",{onClick:()=>{h(a),y(!0)},className:"flex items-center gap-1 px-3 py-2 rounded-lg bg-gradient-to-r from-brand to-brand-accent text-white text-[11px] font-medium hover:opacity-90",children:[(0,e.jsx)(E,{className:"w-3 h-3"})," Page"]})]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1 text-[10px] text-muted-foreground",children:[(0,e.jsxs)("span",{className:"font-mono",children:[D,a==="/"?"":a.slice(1)]}),(0,e.jsx)("span",{className:"text-muted-foreground/40",children:"\xB7"}),(0,e.jsxs)("span",{children:[b.length," page(s)"]})]}),b.length===0?(0,e.jsxs)("div",{className:"flex flex-col items-center py-12 gap-3",children:[(0,e.jsx)(F,{className:"w-10 h-10 text-muted-foreground/20"}),(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:"Aucune page dans ce dossier"}),(0,e.jsx)("button",{onClick:()=>{h(a),y(!0)},className:"text-[11px] text-brand hover:underline",children:"Cr\xE9er une page"})]}):(0,e.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2.5",children:b.sort((i,w)=>i.order-w.order).map(i=>(0,e.jsx)(le,{page:i,baseUrl:D,onEdit:()=>t(i),onDelete:()=>v(i),onToggle:()=>te(i)},i.id))})]}),N&&(0,e.jsx)(ie,{folder:x,spaceSlug:c,nextOrder:d.filter(i=>i.folder===x).length,onCreate:async i=>{await u(i),y(!1),P.success("Page cr\xE9\xE9e")},onClose:()=>y(!1)}
2),k&&(0,e.jsx)(de,{parentFolder:x,onCreate:async i=>{await u(i),f(!1),P.success("Dossier cr\xE9\xE9")},onClose:()=>f(!1)})]})}function ne({url:t,onClose:n}){let l=(0,g.useRef)(null);return(0,g.useEffect)(()=>{setTimeout(()=>{l.current?.select()},50)},[]),(0,e.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:n,children:(0,e.jsxs)("div",{className:"bg-card border border-border rounded-xl p-5 w-full max-w-md shadow-2xl mx-4",onClick:r=>r.stopPropagation(),children:[(0,e.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,e.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[(0,e.jsx)(T,{className:"w-4 h-4 text-green-500"}),"Lien public de la page"]}),(0,e.jsx)("button",{onClick:n,className:"p-1 rounded hover:bg-accent transition-colors",children:(0,e.jsx)(V,{className:"w-4 h-4 text-muted-foreground"})})]}),(0,e.jsxs)("div",{className:"flex gap-2 mb-3",children:[(0,e.jsx)("input",{ref:l,readOnly:!0,value:t,className:"flex-1 text-xs font-mono bg-muted border border-border rounded-lg px-3 py-2 text-foreground focus:outline-none focus:ring-1 focus:ring-brand select-all",onClick:r=>r.target.select()}),(0,e.jsx)("button",{onClick:()=>{l.current&&(l.current.select(),document.execCommand("copy"),P.success("Lien copi\xE9 !"))},className:"px-3 py-2 bg-brand text-white text-xs rounded-lg hover:bg-brand/80 transition-colors font-medium shrink-0",children:"Copier"})]}),(0,e.jsx)("p",{className:"text-[10px] text-muted-foreground",children:"Cliquez sur le lien ci-dessous pour ouvrir la page dans ce navigateur :"}),(0,e.jsx)("a",{href:t,className:"text-[11px] text-brand hover:underline break-all mt-1 block",children:t})]})})}function le({page:t,baseUrl:n,onEdit:l,onDelete:a,onToggle:r}){let s=t.status==="st-published",[u,p]=(0,g.useState)(!1),d=`${W()}${n}${t.slug}`;return(0,e.jsxs)(e.Fragment,{children:[u&&(0,e.jsx)(ne,{url:d,onClose:()=>p(!1)}),(0,e.jsxs)("div",{className:"group bg-card rounded-xl border border-border/50 p-3 hover:border-border transition-colors cursor-pointer",onClick:l,children:[(0,e.jsxs)("div",{className:"h-20 rounded-lg mb-2 overflow-hidden border border-border/20 bg-accent/10 relative",children:[t.imageUrl?(0,e.jsx)("img",{src:t.imageUrl,alt:"",className:"w-full h-full object-cover"}):t.htmlContent?(0,e.jsx)("iframe",{srcDoc:`<!DOCTYPE html><html><head><meta charset="utf-8"><style>*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,system-ui,sans-serif;overflow:hidden}</style></head><body>${t.htmlContent}</body></html>`,className:"border-0 pointer-events-none absolute inset-0",style:{width:"300%",height:"400%",transformOrigin:"top left",transform:"scale(0.333)"},sandbox:"allow-same-origin",title:t.name}):(0,e.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,e.jsx)(F,{className:"w-6 h-6 text-muted-foreground/20"})}),(0,e.jsx)("span",{className:`absolute top-1.5 left-1.5 px-1.5 py-0.5 rounded-full text-[9px] font-semibold backdrop-blur-sm ${s?"bg-green-500/80 text-white":"bg-black/40 text-white/70"}`,children:s?"\u25CF live":"\u25CB draft"}),s&&(0,e.jsxs)("div",{className:"absolute top-1.5 right-1.5 flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",onClick:c=>c.stopPropagation(),children:[(0,e.jsx)("button",{onClick:c=>{c.stopPropagation(),p(!0)},title:"Voir / copier le lien public",className:"p-1 rounded-md bg-black/50 hover:bg-black/70 text-white backdrop-blur-sm transition-colors flex items-center",children:(0,e.jsx)($,{className:"w-3 h-3"})}),(0,e.jsx)("button",{onClick:c=>{c.stopPropagation(),p(!0)},title:"Copier le lien",className:"p-1 rounded-md bg-black/50 hover:bg-black/70 text-white backdrop-blur-sm transition-colors",children:(0,e.jsx)(G,{className:"w-3 h-3"})})]})]}),(0,e.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,e.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,e.jsx)("p",{className:"text-sm font-semibold truncate",children:t.name||"Sans titre"}),s?(0,e.jsxs)("button",{onClick:c=>{c.stopPropagation(),p(!0)},className:"flex items-center gap-1 text-[10px] text-brand/70 hover:text-brand font-mono truncate max-w-full mt-0.5 transition-colors group/link",title:d,children:[(0,e.jsxs)("span",{className:"truncate",children:[n,t.slug]}),(0,e.jsx)($,{className:"w-2.5 h-2.5 shrink-0 opacity-0 group-hover/link:opacity-100 transition-opacity"})]}):(0,e.jsxs)("p",{className:"text-[10px] text-muted-foreground font-mono truncate mt-0.5",children:[n,t.slug]}),t.meta&&(0,e.jsx)("p",{className:"text-[10px] text-muted-foreground
2/60 truncate mt-0.5",children:t.meta})]}),(0,e.jsxs)("div",{className:"flex gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity shrink-0",onClick:c=>c.stopPropagation(),children:[(0,e.jsx)("button",{onClick:r,title:s?"D\xE9publier":"Publier",className:`p-1 rounded ${s?"text-green-500":"text-muted-foreground"} hover:bg-accent transition-colors`,children:(0,e.jsx)(T,{className:"w-3 h-3"})}),(0,e.jsx)("button",{onClick:a,className:"p-1 rounded hover:bg-red-500/10 transition-colors",children:(0,e.jsx)(B,{className:"w-3 h-3 text-red-400"})})]})]})]})]})}function ie({folder:t,spaceSlug:n,nextOrder:l,onCreate:a,onClose:r}){let[s,u]=(0,g.useState)(""),[p,m]=(0,g.useState)(""),[d,c]=(0,g.useState)(""),[N,y]=(0,g.useState)(!1),k=(0,g.useRef)(null);(0,g.useEffect)(()=>{k.current?.focus()},[]);let f=s.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),x=N?p:f,h=X.has(x),b=`/${n}/`;return(0,e.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)"},onClick:r,onKeyDown:v=>{v.key==="Enter"&&s&&!h&&a({name:s,slug:x,folder:t,type:"type-page",meta:d,order:l}),v.key==="Escape"&&r()},children:(0,e.jsxs)("div",{className:"bg-card rounded-2xl border border-border w-full max-w-md p-5 space-y-4 shadow-2xl",onClick:v=>v.stopPropagation(),children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-sm font-semibold",children:"Nouvelle page"}),(0,e.jsxs)("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:["Dans ",(0,e.jsx)("span",{className:"font-mono",children:t})]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-[10px] font-medium text-muted-foreground mb-1 block",children:"Titre de la page *"}),(0,e.jsx)("input",{ref:k,type:"text",value:s,onChange:v=>u(v.target.value),placeholder:"Ex: Accueil, \xC0 propos, Contact\u2026",className:"w-full px-3 py-2 text-sm rounded-lg border border-border bg-background outline-none focus:ring-2 focus:ring-brand/50"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-[10px] font-medium text-muted-foreground mb-1 block",children:"URL (slug)"}),(0,e.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-2 rounded-lg border border-border bg-background focus-within:ring-2 focus-within:ring-brand/50",children:[(0,e.jsx)("span",{className:"text-[10px] text-muted-foreground/60 font-mono shrink-0",children:b}),(0,e.jsx)("input",{type:"text",value:N?p:f,onChange:v=>{m(v.target.value),y(!0)},placeholder:f||"slug-url",className:"flex-1 text-xs font-mono bg-transparent outline-none"})]}),h&&(0,e.jsx)("p",{className:"text-[10px] text-red-400 mt-1",children:"\u26A0 Ce slug est r\xE9serv\xE9 par le syst\xE8me"})]}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("label",{className:"text-[10px] font-medium text-muted-foreground mb-1 block",children:["Meta description ",(0,e.jsx)("span",{className:"font-normal opacity-60",children:"(SEO Google \u2014 optionnel)"})]}),(0,e.jsx)("textarea",{value:d,onChange:v=>c(v.target.value),rows:2,placeholder:"D\xE9crivez la page en 1-2 phrases pour Google\u2026",className:"w-full px-3 py-2 text-xs rounded-lg border border-border bg-background outline-none focus:ring-2 focus:ring-brand/50 resize-none"}),(0,e.jsxs)("p",{className:`text-[9px] mt-0.5 ${d.length>160?"text-red-400":"text-muted-foreground/50"}`,children:[d.length,"/160 caract\xE8res recommand\xE9s"]})]}),(0,e.jsxs)("div",{className:"flex gap-2 justify-end pt-1",children:[(0,e.jsx)("button",{onClick:r,className:"px-3 py-1.5 text-[11px] rounded-lg border border-border hover:bg-accent/50 transition-colors",children:"Annuler"}),(0,e.jsx)("button",{onClick:()=>a({name:s,slug:x,folder:t,type:"type-page",meta:d,order:l}),disabled:!s||h,className:"px-4 py-1.5 text-[11px] rounded-lg bg-gradient-to-r from-brand to-brand-accent text-white hover:opacity-90 disabled:opacity-50 font-medium transition-opacity",children:"Cr\xE9er la page \u2192"})]})]})})}function de({parentFolder:t,onCreate:n,onClose:l}){let[a,r]=(0,g.useState)(""),s=a.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-");return(0,e.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)"},onClick:l,children:(0,e.jsxs)("div",{className:"bg-card rounded-2xl border border-border w-full max-w-sm p-5 space-y-4 shadow-2xl",onClick:u=>u.stopPropagation(),children:[(0,e.jsx)("h3",{className:"text-sm font-semibold",children:"Nouveau dossier"}),(0,e.jsxs)("p",{className:"text-[10px] text-muted-foreground",children:["Dans : ",(0,e.jsx)("span",{className:"font-mono",children:t})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-[10px] text-muted-foreground mb-1 block",children:"Nom du dossier"}),(0,e.jsx)("input",{type:"text",value:a,onChange:u=>r(u.target.value),className:"w-full px-3 py-2 text-sm rounded-lg border border-border bg-background outline-none focus:ring-2 focus:ring-brand/50"})]}),(0,e.jsxs)("div",{className:"flex gap-2 justify-end",children:[(0,e.jsx)("button",{onClick:l,className:"px-3 py-1.5 text-[11px] rounded-lg border border-border hover:bg-accent/50",children:"Annuler"}),(0,e.jsx)("button",{onClick:()=>n({name:a,slug:s,folder:t,type:"type-folder"}),disabled:!a,className:"px-3 py-1.5 text-[11px] rounded-lg bg-brand text-white hover:opacity-90 disabled:opacity-50",children:"Cr\xE9er"})]})]})})}export{se as default};
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.