import{r as x,j as e,$ as m}from"./app-D_lWdAF1.js";import{c as o,B as f}from"./app-logo-icon-B18IWF-o.js";import{P as u}from"./index-DKsctv8k.js";var h="Separator",i="horizontal",p=["horizontal","vertical"],l=x.forwardRef((a,t)=>{const{decorative:r,orientation:s=i,...c}=a,n=g(s)?s:i,d=r?{role:"none"}:{"aria-orientation":n==="vertical"?n:void 0,role:"separator"};return e.jsx(u.div,{"data-orientation":n,...d,...c,ref:t})});l.displayName=h;function g(a){return p.includes(a)}var j=l;function N({className:a,orientation:t="horizontal",decorative:r=!0,...s}){return e.jsx(j,{"data-slot":"separator-root",decorative:r,orientation:t,className:o("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",a),...s})}function O({title:a,description:t}){return e.jsxs("header",{children:[e.jsx("h3",{className:"mb-0.5 text-base font-medium",children:a}),t&&e.jsx("p",{className:"text-sm text-muted-foreground",children:t})]})}function v({title:a,description:t}){return e.jsxs("div",{className:"mb-8 space-y-0.5",children:[e.jsx("h2",{className:"text-xl font-semibold tracking-tight",children:a}),t&&e.jsx("p",{className:"text-sm text-muted-foreground",children:t})]})}const w=[{title:"Profile",href:"/settings/profile",icon:null},{title:"Business",href:"/settings/business",icon:null},{title:"Password",href:"/settings/password",icon:null},{title:"Appearance",href:"/settings/appearance",icon:null}];function z({children:a}){if(typeof window>"u")return null;const t=window.location.pathname;return e.jsxs("div",{className:"px-4 py-6",children:[e.jsx(v,{title:"Settings",description:"Manage your profile and account settings"}),e.jsxs("div",{className:"flex flex-col space-y-8 lg:flex-row lg:space-y-0 lg:space-x-12",children:[e.jsx("aside",{className:"w-full max-w-xl lg:w-48",children:e.jsx("nav",{className:"flex flex-col space-y-1 space-x-0",children:w.map((r,s)=>e.jsx(f,{size:"sm",variant:"ghost",asChild:!0,className:o("w-full justify-start",{"bg-muted":t===r.href}),children:e.jsx(m,{href:r.href,prefetch:!0,children:r.title})},`${r.href}-${s}`))})}),e.jsx(N,{className:"my-6 md:hidden"}),e.jsx("div",{className:"flex-1 md:max-w-2xl",children:e.jsx("section",{className:"max-w-xl space-y-12",children:a})})]})]})}export{O as H,z as S};
