1import{r as n,R as y,u as I,j as o,L as N}from"./app-D7bY3VIr.js";import S from"./ApplicationLogo-CByfrvp1.js";import b from"./Dropdown-CCJeegzQ.js";import{u as B}from"./useTranslation-tvhqZ2qh.js";import"./transition-DG5evRMa.js";function F({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const H=n.forwardRef(F);function _({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"}))}const W=n.forwardRef(_);function Z({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"}))}const A=n.forwardRef(Z);function P({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const T=n.forwardRef(P);function V({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const U=n.forwardRef(V);function D({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.
1125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const J=n.forwardRef(D);function q({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m-3-2.818.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Q=n.forwardRef(q);function K({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"}))}const Y=n.forwardRef(K);function z({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))}const G=n.forwardRef(z);function X({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.348 14.652a3.75 3.75 0 0 1 0-5.304m5.304 0a3.75 3.75 0 0 1 0 5.304m-7.425 2.121a6.75 6.75 0 0 1 0-9.546m9.546 0a6.75 6.75 0 0 1 0 9.546M5.106 18.894c-3.808-3.807-3.808-9.98 0-13.788m13.788 0c3.808 3.807 3.808 9.98 0 13.788M12 12h.008v.008H12V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const ee=n.forwardRef(X);function te({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6Z"}))}const re=n.forwardRef(te);function ne({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 6v.75m0 3v.75m0 3v.75m0 3V18m-9-5.25h5.25M7.5 15h3M3.375 5.25c-.621 0-1.125.504-1.125 1.125v3.026a2.999 2.999 0 0 1 0 5.198v3.026c0 .621.504 1.125 1.125 1.125h17.25c.621 0 1.125-.504 1.125-1.125v-3.026a2.999 2.999 0 0 1 0-5.198V6.375c0-.621-.504-1.125-1.125-1.125H3.375Z"}))}const ae=n.forwardRef(ne);function oe({title:t,titleId:e,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?n.createElement("title",{id:e},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19.128a9.38 9.38 0 0 0 2.625.372 9.337 9.337 0 0 0 4.121-.952 4.125 4.125 0 0 0-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 0 1 8.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0 1 11.964-3.07M12 6.375a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0Zm8.25 2.25a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"}))}const se=n.forwardRef(oe),M=t=>{let e;const r=new Set,a=(m,c)=>{const h=typeof m=="function"?m(e):m;if(!Object.is(h,e)){const j=e;e=c??(typeof h!="object"||h===null)?h:Object.assign({},e,h),r.forEach(p=>p(e,j))}},s=()=>e,u={setState:a,getState:s,getInitialState:()=>f,subscribe:m=>(r.add(m),()=>r.delete(m))},f=e=t(a,s,u);return u},ie=(t=>t?M(t):M),le=t=>t;function ce(t,e=le){const r=y.useSyncExternalStore(t.subscribe,y.useCallback(()=>e(t.getState()),[t,e]),y.useCallback(()=>e(t.getInitialState()),[t,e]));return y.useDebugValue(r),r}const O=t=>{const e=ie(t),r=a=>ce(e,a);return Object.assign(r,e),r},de=(t=>t?O(t):O);function ue(t,e){let r;try{r=t()}catch{return}return{getItem:s=>{var i;const x=f=>f===null?null:JSON.parse(f,void 0),u=(i=r.getItem(s))!=null?i:null;return u instanceof Promise?u.then(x):x(u)},setItem:(s,i)=>r.setItem(s,JSON.stringify(i,void 0)),removeItem:s=>r.removeItem(s)}}const C=t=>e=>{try{const r=t(e);return r instanceof Promise?r:{then(a){return C(a)(r)},catch(a){return this}}}catch(r){return{then(a){return this},catch(a){return C(a)(r)}}}},me=(t,e)=>(r,a,s)=>{let i={storage:ue(()=>localStorage),partialize:l=>l,version:0,merge:(l,w)=>({...w,...l}),...e},x=!1,u=0;const f=new Set,m=new Set;let c=i.storage;if(!c)return t((...l)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...l)},a,s);const h=()=>{const l=i.partialize({...a()});return c.setItem(i.name,{state:l,version:i.version})},j=s.setState;s.setState=(l,w)=>(j(l,w),h());const p=t((...l)=>(r(...l),h()),a,s);s.getInitialState=()=>p;let v;const R=()=>{var l,w;if(!c)return;const E=++u;x=!1,f.forEach(d=>{var g;return d((g=a())!=null?g:p)});const k=((w=i.onRehydrateStorage)==null?void 0:w.call(i,(l=a())!=null?l:p))||void 0;return C(c.getItem.bind(c))(i.name).then(d=>{if(d)if(typeof d.version=="number"&&d.version!==i.version){if(i.migrate){const g=i.migrate(d.state,d.version);return g instanceof Promise?g.then(L=>[!0,L]):[!0,g]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,d.state];return[!1,void 0]}).then(d=>{var g;if(E!==u)return;const[L,$]=d;if(v=i.merge($,(g=a())!=null?g:p),r(v,!0),L)return h()}).then(()=>{E===u&&(k?.(v,void 0),v=a(),x=!0,m.forEach(d=>d(v)))}).catch(d=>{E===u&&k?.(void 0,d)})};return s.persist={setOptions:l=>{i={...i,...l},l.storage&&(c=l.storage)},clearStorage:()=>{c?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>R(),hasHydrated:()=>x,onHydrate:l=>(f.add(l),()=>{f.delete(l)}),onFinishHydration:l=>(m.add(l),()=>{m.delete(l)})},i.skipHydration||R(),v||p},he=me,fe=de(he(t=>({sidebarOpen:!1,sidebarCollapsed:!1,setSidebarOpen:e=>t({sidebarOpen:e}),setSidebarCollapsed:e=>t({sidebarCollapsed:e}),toggleSidebar:()=>t(e=>({sidebarOpen:!e.sidebarOpen}
1)),toggleSidebarCollapsed:()=>t(e=>({sidebarCollapsed:!e.sidebarCollapsed}))}),{name:"admin-sidebar-storage"}));function be({children:t}){const e=I().props.auth.user,{t:r}=B(),{sidebarOpen:a,sidebarCollapsed:s,setSidebarOpen:i,toggleSidebarCollapsed:x}=fe(),u=[{name:"Tableau de bord",href:route("admin.dashboard"),icon:Y,active:route().current("admin.dashboard")},{name:"Utilisateurs",href:route("admin.users.index"),icon:se,active:route().current("admin.users.*")},{name:"Catégories",href:route("admin.categories.index"),icon:re,active:route().current("admin.categories.*")},{name:"Tarifs",href:route("admin.pricing.index"),icon:Q,active:route().current("admin.pricing.*")},{name:"Promotions",href:route("admin.promotions.index"),icon:ae,active:route().current("admin.promotions.*")},{name:"Partenaires",href:route("admin.partners.index"),icon:W,active:route().current("admin.partners.*")},{name:"Avis",href:route("admin.reviews.index"),icon:A,active:route().current("admin.reviews.*")},{name:"FAQ",href:route("admin.faqs.index"),icon:G,active:route().current("admin.faqs.*")},{name:"Ãtat du système",href:route("admin.system-status.index"),icon:ee,active:route().current("admin.system-status.*")},{name:"Paramètres",href:route("admin.settings.index"),icon:J,active:route().current("admin.settings.*")}],f=s?"w-20":"w-64",m=s?U:T;return o.jsxs("div",{className:"flex h-screen bg-gray-50 overflow-hidden",children:[o.jsx("aside",{className:`fixed inset-y-0 left-0 z-50 ${f} bg-black/95 backdrop-blur-sm text-white transition-all duration-300 ease-in-out ${a?"translate-x-0":"-translate-x-full lg:translate-x-0"}`,children:o.jsxs("div",{className:"flex h-screen flex-col",children:[o.jsx("div",{className:`flex h-16 items-center justify-center border-b border-white/10 shrink-0 transition-all ${s?"px-3":"px-6"}`,children:s?o.jsx(N,{href:"/",className:"flex items-center justify-center",children:o.jsx(S,{className:"h-8 w-8 fill-white"})}):o.jsxs(N,{href:"/",className:"flex items-center space-x-3",children:[o.jsx(S,{className:"h-8 w-8 fill-white"}),o.jsx("div",{className:"flex flex-col",children:o.jsxs("span",{className:"text-lg font-bold text-white",children:["ARYK ",o.jsx("span",{className:"text-xs text-gray-400",children:r("common.footer.hosting")})]})})]})}),o.jsx("nav",{className:`flex-1 space-y-1 overflow-y-auto transition-all ${s?"px-2 py-4":"px-3 py-4"}`,children:u.map(c=>{const h=c.active,j=c.icon;return o.jsxs(N,{href:c.href,className:`group flex items-center rounded-lg text-sm font-medium transition-all ${s?"justify-center px-3 py-3":"space-x-3 px-4 py-3"} ${h?"bg-indigo-600 text-white shadow-lg":"text-gray-300 hover:bg-white/5 hover:text-white"}`,title:s?c.name:"",children:[o.jsx(j,{className:`${h?"text-white":"text-gray-400 group-hover:text-white"} ${s?"h-6 w-6":"h-5 w-5"}`}),!s&&o.jsx("span",{children:c.name})]},c.name)})}),o.jsx("div",{className:`border-t border-white/10 shrink-0 transition-all ${s?"p-2":"p-4"}`,children:s?o.jsx("div",{className:"flex items-center justify-center",children:o.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-indigo-600",children:o.jsx("span",{className:"text-sm font-semibold text-white",children:e.first_name?.[0]||"U"})})}):o.jsxs("div",{className:"flex items-center space-x-3 rounded-lg px-4 py-3 hover:bg-white/5 transition-colors",children:[o.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-indigo-600",children:o.jsx("span",{className:"text-sm font-semibold text-white",children:e.first_name?.[0]||"U"})}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("p",{className:"truncate text-sm font-medium text-white",children:[e.first_name," ",e.last_name]}),o.jsx("p",{className:"truncate text-xs text-gray-400",children:e.email})]})]})})]})}),a&&o.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 backdrop-blur-sm lg:hidden",onClick:()=>i(!1)}),o.jsxs("div",{className:`flex flex-1 flex-col overflow-hidden w-full transition-all duration-300 ${s?"lg:ml-20":"lg:ml-64"}`,children:[o.jsxs("header",{className:"flex h-16 items-center justify-between border-b border-gray-200 bg-white px-4 shadow-sm",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("button",{onClick:()=>i(!0),className:"rounded-md p-2 text-gray-600 hover:bg-gray-100 transition-colors lg:hidden",children:o.jsx(H,{className:"h-6 w-6"})}),o.jsx("button",{type:"button",onClick:c=>{c.preventDefault(),c.stopPropagation(),x()},className:"hidden lg:flex rounded-md p-2 text-gray-600 hover:bg-gray-100 transition-colors",title:s?"Agrandir":"Réduire",children:o.jsx(m,{className:"h-5 w-5"})})]}),o.jsx("div",{className:"ml-auto flex items-center space-x-4",children:o.jsxs(b,{children:[o.jsx(b.Trigger,{children:o.jsxs("button",{className:"flex items-center space-x-3 rounded-lg px-3 py-2 text-sm font-medium text-gray-700 hover:bg-gray-100 transition-colors",children:[o.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-indigo-600 text-white",children:o.jsx("span",{className:"text-xs font-semibold",children:e.first_name?.[0]||"U"})}),o.jsxs("span",{className:"hidden md:block",children:[e.first_name," ",e.last_name]}),o.jsx("svg",{className:"h-4 w-4 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),o.jsxs(b.Content,{align:"right",width:"48",children:[o.jsx(b.Link,{href:route("dashboard"),
1children:"Dashboard utilisateur"}),o.jsx(b.Link,{href:route("profile.edit"),children:r("common.profile")}),o.jsx(b.Link,{href:route("logout"),method:"post",as:"button",children:r("common.log_out")})]})]})})]}),o.jsx("main",{className:"flex-1 overflow-y-auto bg-gray-50 p-6",children:t})]})]})}export{be 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.