1import{_ as G}from"./jYCkCBKU.js";import{n as O,B as U,a6 as F,aG as J,ay as K,p as a,aq as f,ap as g,M as o,s as w,y as p,v as t,x as j,z as u,aP as Z,r as _,u as Q,q as z,w as $,c as L,a4 as V,E as W,ar as M,ac as r,ao as P,ax as T,at as X,O as q,N as Y}from"./Cji3jh9V.js";import{_ as ee}from"./BfIdmV3W.js";import{u as R}from"./D_C5jqo7.js";import{u as N}from"./CTTKLrZk.js";const te={key:0,class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},se={key:1,class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},oe={key:2,class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},ne={class:"flex-1 text-sm text-gray-900"},re=O({__name:"AdminToast",setup(v){const h=_(!1),n=_("info"),m=_("");let y=null;const x=()=>{if(typeof window>"u")return;const b=sessionStorage.getItem("admin_toast");if(b){sessionStorage.removeItem("admin_toast");try{const d=JSON.parse(b);if(!d?.message||d.at&&Date.now()-d.at>3e4)return;n.value=d.type||"info",m.value=d.message,h.value=!0,y&&clearTimeout(y),y=setTimeout(()=>{h.value=!1},5e3)}catch{}}};U(()=>{x()});const C=F();return J(()=>C.fullPath,()=>{x()}),K(()=>{y&&clearTimeout(y)}),(b,d)=>(a(),f(Z,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-2 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-2 opacity-0"},{default:g(()=>[o(h)?(a(),w("div",{key:0,class:p(["fixed bottom-6 right-6 z-50 max-w-sm bg-white border rounded-xl shadow-lg p-4 flex items-start gap-3",o(n)==="success"?"border-green-200":o(n)==="error"?"border-red-200":"border-gray-200"])},[t("div",{class:p(["shrink-0 w-8 h-8 rounded-full flex items-center justify-center",o(n)==="success"?"bg-green-100 text-green-700":o(n)==="error"?"bg-red-100 text-red-700":"bg-gray-100 text-gray-700"])},[o(n)==="success"?(a(),w("svg",te,[...d[1]||(d[1]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.5",d:"M5 13l4 4L19 7"},null,-1)])])):o(n)==="error"?(a(),w("svg",se,[...d[2]||(d[2]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.5",d:"M6 18L18 6M6 6l12 12"},null,-1)])])):(a(),w("svg",oe,[...d[3]||(d[3]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)])]))],2),t("p",ne,j(o(m)),1),t("button",{type:"button",onClick:d[0]||(d[0]=H=>h.value=!1),class:"shrink-0 text-gray-400 hover:text-gray-700","aria-label":"Fermer"},[...d[4]||(d[4]=[t("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])],2)):u("",!0)]),_:1}))}}),D=30,I=(v,h)=>{const n=[];for(let m=0;m<v.length;m+=h)n.push(v.slice(m,m+h));return n},ae=()=>{const{$db:v}=Q(),h=R(),n=N("admin:pendingLeadsCount",()=>0),m=N("admin:pendingArtisansCount",()=>0),y=N("admin:unreadMessagesCount",()=>0);let x=[],C=[],b=null;return{pendingLeadsCount:n,pendingArtisansCount:m,unreadMessagesCount:y,start:()=>{if(v){if(x.length===0){const i=h.leadsActivitesScope;if(i!==null&&i.length===0)n.value=0;else if(!i||i.length===0){const c=z(L(v,"leads"),$("status","==","pending"));x.push(V(c,k=>{n.value=k.size}))}else{const c=I(i,D),k=c.map(()=>new Set),e=()=>{const s=new Set;for(const l of k)for(const A of l)s.add(A);n.value=s.size};c.forEach((s,l)=>{const A=z(L(v,"leads"),$("status","==","pending"),$("activite","in",s));x.push(V(A,B=>{const S=new Set;B.forEach(E=>S.add(E.id)),k[l]=S,e()}))})}}if(C.length===0){const i=h.leadsActivitesScope;if(i!==null&&i.length===0)m.value=0;else if(!i||i.length===0){const c=z(L(v,"artisans"),$("status","==","pending"));C.push(V(c,k=>{m.value=k.size}))}else{const c=I(i,D),k=c.map(()=>new Set),e=()=>{const s=new Set;for(const l of k)for(const A of l)s.add(A);m.value=s.size};c.forEach((s,l)=>{const A=z(L(v,"artisans"),$("status","==","pending"),$("activites","array-contains-any",s));C.push(V(A,B=>{const S=new Set;B.forEach(E=>S.add(E.id)),k[l]=S,e()}))})}}
1if(!b){const i=z(L(v,"conversations"),$("unreadByAdmin","==",!0));b=V(i,c=>{y.value=c.size})}}},stop:()=>{for(const i of x)i();for(const i of C)i();b?.(),x=[],C=[],b=null}}},ie={class:"min-h-screen bg-[#fafafa]"},le={class:"fixed inset-y-0 left-0 w-64 bg-white border-r border-gray-200"},de={class:"p-4"},ue={class:"space-y-1"},ce={key:0,class:"ml-auto inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-[11px] font-semibold text-white bg-red-600 rounded-full"},pe={key:0,class:"ml-auto inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-[11px] font-semibold text-white bg-red-600 rounded-full"},me={key:0,class:"ml-auto inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-[11px] font-semibold text-white bg-red-600 rounded-full"},ge={class:"absolute bottom-0 left-0 right-0 p-4 border-t border-gray-200"},fe={class:"flex items-center gap-3 px-3 py-2"},he={class:"w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center"},ve={class:"text-xs font-medium text-gray-600"},ye={class:"flex-1 min-w-0"},xe={class:"text-sm font-medium text-gray-900 truncate"},ke={class:"pl-64"},we={class:"h-14 bg-white border-b border-gray-200"},be={class:"h-full px-6 flex items-center justify-between"},Me={class:"text-base font-semibold text-gray-900"},Ce={class:"flex items-center gap-3"},Ae={class:"p-4"},$e={class:"w-full max-w-sm bg-white rounded-xl shadow-xl p-6"},je={class:"mt-5 flex items-center justify-end gap-2"},Be=["disabled"],Se={key:0},ze={key:1},Ne=O({__name:"admin",setup(v){const h=F(),n=R(),{pendingLeadsCount:m,pendingArtisansCount:y,unreadMessagesCount:x,start:C,stop:b}=ae();U(()=>C()),W(()=>b());const d=q(()=>(n.user?.email||"").substring(0,2).toUpperCase()),H=q(()=>{const e=h.path;return e.includes("/admin/carte")?"Carte":e.includes("/admin/leads")?"Leads":e.includes("/admin/artisans")?"Partenaires":e.includes("/admin/emails")?"Emails":e.includes("/admin/parametrage")?"Paramétrage":e.includes("/admin/admins")?"Admins":e.includes("/admin/activites")?"Activités":e.includes("/admin/export")?"Export":e.includes("/admin/prospection")?"Prospection":e.includes("/admin/api-docs")?"API Docs":e.includes("/admin/sites-internet")?"Sites internet":e.includes("/admin/analytics")?"Analytics":e.includes("/admin/messages")?"Messages":e.includes("/admin/notes")?"Notes":"Dashboard"}),i=_(!1),c=_(!1),k=async()=>{c.value=!0;try{await n.logout(),i.value=!1,await Y("/admin/login")}catch{typeof window<"u"&&window.alert("Impossible de vous déconnecter. Vérifiez votre connexion et réessayez.")}finally{c.value=!1}};return(e,s)=>{const l=G,A=re;return a(),w("div",ie,[t("aside",le,[s[21]||(s[21]=t("div",{class:"h-16 flex items-center px-6 border-b border-gray-200"},[t("div",{class:"flex items-center gap-3"},[t("img",{src:ee,alt:"HomeService",class:"h-10 w-auto"}),t("span",{class:"text-base font-semibold text-gray-900"},"HomeService")])],-1)),t("nav",de,[t("div",ue,[o(n).canAccess("carte")?(a(),f(l,{key:0,to:"/admin/carte",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/carte"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/carte")}])},{default:g(()=>[...s[3]||(s[3]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"})],-1),M(" Carte ",-1)])]),_:1},8,["class"])):u("",!0),o(n).canAccess("artisans")?(a(),f(l,{key:1,to:"/admin/artisans",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/artisans"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/artisans")}])},{default:g(()=>[s[4]||(s[4]=t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2
10 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"})],-1)),s[5]||(s[5]=t("span",{class:"flex-1"},"Partenaires",-1)),o(y)>0?(a(),w("span",ce,j(o(y)),1)):u("",!0)]),_:1},8,["class"])):u("",!0),o(n).canAccess("leads")?(a(),f(l,{key:2,to:"/admin/leads",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/leads"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/leads")}])},{default:g(()=>[s[6]||(s[6]=t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"})],-1)),s[7]||(s[7]=t("span",{class:"flex-1"},"Leads",-1)),o(m)>0?(a(),w("span",pe,j(o(m)),1)):u("",!0)]),_:1},8,["class"])):u("",!0),o(n).canAccess("messages")?(a(),f(l,{key:3,to:"/admin/messages",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/messages"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/messages")}])},{default:g(()=>[s[8]||(s[8]=t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})],-1)),s[9]||(s[9]=t("span",{class:"flex-1"},"Messages",-1)),o(x)>0?(a(),w("span",me,j(o(x)),1)):u("",!0)]),_:1},8,["class"])):u("",!0),P(l,{to:"/admin/notes",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/notes"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/notes")}])},{default:g(()=>[...s[10]||(s[10]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1),t("span",{class:"flex-1"},"Notes",-1)])]),_:1},8,["class"]),o(n).canAccess("emails")?(a(),f(l,{key:4,to:"/admin/emails",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/emails"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/emails")}])},{default:g(()=>[...s[11]||(s[11]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})],-1),M(" Emails ",-1)])]),_:1},8,["class"])):u("",!0),o(n).canAccess("parametrage")?(a(),f(l,{key:5,to:"/admin/parametrage",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/parametrage"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/parametrage")}])},{default:g(()=>[...s[12]||(s[12]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1),M(" Paramétrage ",-1)])]),_:1},8,["class"])):u("",!0),o(n).canAccess("analytics")?(a(),f(l,{key:6,to:"/admin/analytics",class:
1p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/analytics"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/analytics")}])},{default:g(()=>[...s[13]||(s[13]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})],-1),M(" Analytics ",-1)])]),_:1},8,["class"])):u("",!0),o(n).canAccess("admins")?(a(),f(l,{key:7,to:"/admin/admins",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/admins"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/admins")}])},{default:g(()=>[...s[14]||(s[14]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M12 11c0 3.517-1.009 6.799-2.753 9.571m-3.44-2.04l.054-.09A13.916 13.916 0 008 11a4 4 0 118 0c0 1.017-.07 2.019-.203 3m-2.118 6.844A21.88 21.88 0 0015.171 17m3.839 1.132c.645-2.266.99-4.659.99-7.132A8 8 0 008 4.07M3 15.364c.64-1.319 1-2.8 1-4.364 0-1.457.39-2.823 1.07-4"})],-1),M(" Admins ",-1)])]),_:1},8,["class"])):u("",!0),o(n).canAccess("activites")?(a(),f(l,{key:8,to:"/admin/activites",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/activites"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/activites")}])},{default:g(()=>[...s[15]||(s[15]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"})],-1),M(" Activités ",-1)])]),_:1},8,["class"])):u("",!0),o(n).canAccess("export")?(a(),f(l,{key:9,to:"/admin/export",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/export"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/export")}])},{default:g(()=>[...s[16]||(s[16]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1),M(" Export ",-1)])]),_:1},8,["class"])):u("",!0),o(n).canAccess("prospection")?(a(),f(l,{key:10,to:"/admin/prospection",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/prospection"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/prospection")}])},{default:g(()=>[...s[17]||(s[17]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"})],-1),M(" Prospection ",-1)])]),_:1},8,["class"])):u("",!0),o(n).canAccess("api")?(a(),f(l,{key:11,to:"/admin/api-docs",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/api-docs"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/api-docs")}])},{default:g(()=>[...s[18]||(s[18]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"})],-1),M(" API Docs ",-1)])]),_:1},8,["class"])):u("",!0),o(n).canAccess("sites-internet")?(a(),f(l,{key:12,to:"/admin/sites-internet",class:p(["group flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors",{"bg-gray-50 text-gray-900":(e._.provides[r]||e.$route).path.includes("/admin/sites-internet"),"text-gray-600 hover:text-gray-900 hover:bg-gray-50":!(e._.provides[r]||e.$route).path.includes("/admin/sites-internet")}])},{default:g(()=>[...s[19]||(s[19]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}),t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M3.6 9h16.8M3.6 15h16.8M12 3a15 15 0 010 18M12 3a15 15 0 000 18"})],-1),M(" Sites internet ",-1)])]),_:1},8,["class"])):u("",!0)])]),t("div",ge,[t("div",fe,[t("div",he,[t("span",ve,j(o(d)),1)]),t("div",ye,[t("p",xe,j(o(n).user?.email),1)]),t("button",{onClick:s[0]||(s[0]=B=>i.value=!0),class:"text-gray-400 hover:text-gray-600 transition-colors"},[...s[20]||(s[20]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})],-1)])])])])]),t("main",ke,[t("header",we,[t("div",be,[t("h1",Me,j(o(H)),1),t("div",Ce,[T(e.$slots,"actions")])])]),t("div",Ae,[T(e.$slots,"default")])]),P(A),o(i)?(a(),w("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center px-4 bg-black/40",onClick:s[2]||(s[2]=X(B=>i.value=!1,["self"]))},[t("div",$e,[s[22]||(s[22]=t("h3",{class:"text-base font-semibold text-gray-900"},"Se déconnecter ?",-1)),s[23]||(s[23]=t("p",{class:"mt-2 text-sm text-gray-600"}," Vous reviendrez à l'écran de connexion. ",-1)),t("div",je,[t("button",{type:"button",onClick:s[1]||(s[1]=B=>i.value=!1),class:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50"}," Annuler "),t("button",{type:"button",onClick:k,disabled:o(c),class:"px-4 py-2 text-sm font-medium text-white bg-gray-900 rounded-lg hover:bg-gray-800 disabled:opacity-50"},[o(c)?(a(),w("span",Se,"Déconnexionâ¦")):(a(),w("span",ze,"Se déconnecter"))],8,Be)])])])):u("",!0)])}}});
1export{Ne 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.