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