import{x as m,o,i as n,e,d as i,b as h,u as t,l as x,t as d,m as u,F as g,j as b,n as y,k as v,A as k}from"./app-Dtb5XozN.js";const z={class:"min-h-screen flex flex-col bg-gray-50 text-gray-900 antialiased"},V={class:"bg-white border-b border-gray-200 sticky top-0 z-50"},j={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},B={class:"flex justify-between items-center h-16"},C={class:"flex items-center space-x-4"},S={class:"text-sm text-gray-500 hidden sm:inline"},A={class:"flex-1 flex"},M={class:"hidden md:flex w-64 bg-white border-r border-gray-200 flex-col py-6 px-4"},N={class:"space-y-1"},D={class:"w-5 h-5 mr-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},L=["d"],F={class:"md:hidden bg-white border-b border-gray-200 w-full fixed top-16 z-40"},I={class:"flex overflow-x-auto px-4 py-2 space-x-4 text-sm"},P={class:"flex-1 p-6 md:p-8 mt-10 md:mt-0"},E={class:"max-w-5xl mx-auto"},H={key:0,class:"mb-6 bg-green-50 border border-green-200 text-green-700 px-4 py-3 rounded-lg text-sm"},T={key:1,class:"mb-6 bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-lg text-sm"},W="/storesight",G={__name:"DashboardLayout",setup($){const w=m().props.auth,c=m().props.flash,l=a=>W+a,f=[{name:"Dashboard",href:l("/dashboard"),icon:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"},{name:"Account Settings",href:l("/dashboard/account"),icon:"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.066 2.573c1.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.573 1.066c-.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.066-2.573c-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"}],p=a=>{const r=m().url;return a.match?r.startsWith(a.match):r===a.href};return(a,r)=>{var _;return o(),n("div",z,[e("header",V,[e("div",j,[e("div",B,[i(t(x),{href:l("/"),class:"flex items-center space-x-2"},{default:h(()=>[...r[0]||(r[0]=[e("div",{class:"w-8 h-8 rounded-lg bg-gradient-to-br from-primary via-secondary to-accent flex items-center justify-center"},[e("svg",{class:"w-5 h-5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",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),e("span",{class:"text-xl font-bold text-gray-900"},"StoreSight AI",-1)])]),_:1},8,["href"]),e("div",C,[e("span",S,d((_=t(w).user)==null?void 0:_.email),1),i(t(x),{href:l("/logout"),method:"post",as:"button",class:"text-sm text-gray-600 hover:text-red-500 transition"},{default:h(()=>[...r[1]||(r[1]=[u("Logout",-1)])]),_:1},8,["href"])])])])]),e("div",A,[e("aside",M,[e("nav",N,[(o(),n(g,null,b(f,s=>i(t(x),{key:s.name,href:s.href,class:y([[p(s)?"bg-primary/10 text-primary font-medium":"text-gray-600 hover:bg-gray-50"],"flex items-center px-3 py-2 rounded-lg transition"])},{default:h(()=>[(o(),n("svg",D,[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:s.icon},null,8,L)])),u(" "+d(s.name),1)]),_:2},1032,["href","class"])),64))])]),e("div",F,[e("div",I,[(o(),n(g,null,b(f,s=>i(t(x),{key:s.name,href:s.href,class:y([p(s)?"text-primary font-medium":"text-gray-500","whitespace-nowrap px-2 py-1"])},{default:h(()=>[u(d(s.name),1)]),_:2},1032,["href","class"])),64))])]),e("main",P,[e("div",E,[t(c).success?(o(),n("div",H,d(t(c).success),1)):v("",!0),t(c).error?(o(),n("div",T,d(t(c).error),1)):v("",!0),k(a.$slots,"default")])])])])}}};export{G as _};
