Files
soorya-carpet/public/build/assets/layout-B-QAbSfv.js
admin 9c703306ec
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
chore: build
2025-10-27 21:32:05 +05:45

2 lines
2.9 KiB
JavaScript

import{r as m,j as t,L as f}from"./app-Ajql0Lt4.js";import{c,q as x,B as p}from"./createLucideIcon-B_iAwCmA.js";import{P as g}from"./index-em-EQZzp.js";import{e as j}from"./index-BPJbFReo.js";import{e as N}from"./app-layout-BTSySP9M.js";import{b as v}from"./index-D6lErTwd.js";var w="Separator",l="horizontal",y=["horizontal","vertical"],d=m.forwardRef((e,o)=>{const{decorative:a,orientation:n=l,...u}=e,i=b(n)?n:l,h=a?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return t.jsx(g.div,{"data-orientation":i,...h,...u,ref:o})});d.displayName=w;function b(e){return y.includes(e)}var P=d;function O({className:e,orientation:o="horizontal",decorative:a=!0,...n}){return t.jsx(P,{"data-slot":"separator-root",decorative:a,orientation:o,className:c("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function H({title:e,description:o}){return t.jsxs("header",{children:[t.jsx("h3",{className:"mb-0.5 text-base font-medium",children:e}),o&&t.jsx("p",{className:"text-sm text-muted-foreground",children:o})]})}function S({title:e,description:o}){return t.jsxs("div",{className:"mb-8 space-y-0.5",children:[t.jsx("h2",{className:"text-xl font-semibold tracking-tight",children:e}),o&&t.jsx("p",{className:"text-sm text-muted-foreground",children:o})]})}const r=e=>({url:r.url(e),method:"get"});r.definition={methods:["get","head"],url:"/settings/appearance"};r.url=e=>r.definition.url+x(e);r.get=e=>({url:r.url(e),method:"get"});r.head=e=>({url:r.url(e),method:"head"});const s=e=>({action:r.url(e),method:"get"});s.get=e=>({action:r.url(e),method:"get"});s.head=e=>({action:r.url({[e?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...e?.query??e?.mergeQuery??{}}}),method:"get"});r.form=s;Object.assign(r,r);const A=[{title:"Profile",href:N(),icon:null},{title:"Password",href:j(),icon:null},{title:"Two-Factor Auth",href:v(),icon:null},{title:"Appearance",href:r(),icon:null}];function L({children:e}){if(typeof window>"u")return null;const o=window.location.pathname;return t.jsxs("div",{className:"px-4 py-6",children:[t.jsx(S,{title:"Settings",description:"Manage your profile and account settings"}),t.jsxs("div",{className:"flex flex-col lg:flex-row lg:space-x-12",children:[t.jsx("aside",{className:"w-full max-w-xl lg:w-48",children:t.jsx("nav",{className:"flex flex-col space-y-1 space-x-0",children:A.map((a,n)=>t.jsx(p,{size:"sm",variant:"ghost",asChild:!0,className:c("w-full justify-start",{"bg-muted":o===(typeof a.href=="string"?a.href:a.href.url)}),children:t.jsxs(f,{href:a.href,children:[a.icon&&t.jsx(a.icon,{className:"h-4 w-4"}),a.title]})},`${typeof a.href=="string"?a.href:a.href.url}-${n}`))})}),t.jsx(O,{className:"my-6 lg:hidden"}),t.jsx("div",{className:"flex-1 md:max-w-2xl",children:t.jsx("section",{className:"max-w-xl space-y-12",children:e})})]})]})}export{H,L as S,r as e};