import{d as p,h as o,o as a,j as t,b as u,k as r,G as w,c as f,g as d,F as $,p as v,u as n,r as b,a as k,w as h,S as N,l as S,n as B}from"./app-Cb9hmj6k.js";import{_ as C}from"./AppLogoIcon.vue_vue_type_script_setup_true_lang-DKWl2XLX.js";import{_ as V}from"./Separator.vue_vue_type_script_setup_true_lang-BOE17VcD.js";const j={class:"mb-0.5 text-base font-medium"},z={key:0,class:"text-sm text-muted-foreground"},J=p({__name:"HeadingSmall",props:{title:{},description:{}},setup(_){return(e,l)=>(a(),o("header",null,[t("h3",j,r(e.title),1),e.description?(a(),o("p",z,r(e.description),1)):u("",!0)]))}}),L={class:"mb-8 space-y-0.5"},F={class:"text-xl font-semibold tracking-tight"},H={key:0,class:"text-sm text-muted-foreground"},I=p({__name:"Heading",props:{title:{},description:{}},setup(_){return(e,l)=>(a(),o("div",L,[t("h2",F,r(e.title),1),e.description?(a(),o("p",H,r(e.description),1)):u("",!0)]))}}),D={class:"px-4 py-6"},E={class:"flex flex-col space-y-8 lg:flex-row lg:space-x-12"},G={class:"w-full max-w-xl lg:w-48"},P={class:"flex flex-col space-y-1"},R={class:"flex-1 md:max-w-2xl"},T={class:"max-w-xl space-y-12"},K=p({__name:"Layout",setup(_){var m;const e=w(),l=f(()=>{var s,c;return((c=(s=e.props.auth)==null?void 0:s.user)==null?void 0:c.role)||""}),g=[{title:"Профиль",href:"/settings/profile"},{title:"Пароль",href:"/settings/password"},{title:"Оформление",href:"/settings/appearance"},{title:"Регионы",href:"/settings/cities",roles:["admin"]},{title:"Типы заявок",href:"/settings/types",roles:["admin"]},{title:"Приоритеты",href:"/settings/priorities",roles:["admin"]},{title:"Объекты",href:"/settings/objects",roles:["admin"]},{title:"Типы систем",href:"/settings/types-systems",roles:["admin"]}],x=f(()=>g.filter(s=>!s.roles||s.roles.includes(l.value))),y=(m=e.props.ziggy)!=null&&m.location?new URL(e.props.ziggy.location).pathname:"";return(s,c)=>(a(),o("div",D,[d(I,{title:"Настройки",description:"Управляйте своим профилем и настройками учетной записи"}),t("div",E,[t("aside",G,[t("nav",P,[(a(!0),o($,null,v(x.value,i=>(a(),k(n(C),{key:i.href,variant:"ghost",class:B(["w-full justify-start",{"bg-muted":n(y)===i.href}]),"as-child":""},{default:h(()=>[d(n(N),{href:i.href},{default:h(()=>[S(r(i.title),1)]),_:2},1032,["href"])]),_:2},1032,["class"]))),128))])]),d(n(V),{class:"my-6 md:hidden"}),t("div",R,[t("section",T,[b(s.$slots,"default")])])])]))}});export{K as _,J as a};
