import{r as e,j as s}from"./vendor-react-AXa6hZO5.js";import{n as t}from"./cec18ad9a-DiLjrOUd.js";import{aP as a,aQ as i}from"./index-C_tZnXTW.js";const r=e.memo(({id:a,name:i,icon:r,isSelected:n,onSelect:l,description:d,statusLabel:c,badge:x,action:o,isEnabled:m=!0,className:h})=>{const p=e.useCallback(()=>{l(a)},[a,l]),u=s.jsxs(s.Fragment,{children:[r&&s.jsx("span",{className:t("flex-shrink-0 flex items-center justify-center size-6 text-text-300",{"opacity-50":!m}),children:r}),s.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[s.jsxs("span",{className:"flex items-center gap-1.5 min-w-0",children:[s.jsx("span",{className:t("truncate",n?"font-semibold":""),children:i}),x]}),d&&s.jsx("span",{className:"font-small text-text-400 truncate",children:d})]}),c&&s.jsx("span",{className:"text-xs text-text-500 shrink-0",children:c})]}),j=t("rounded-lg text-sm transition-colors w-full",n?"bg-bg-300":"hover:bg-bg-200",m?"text-text-100":"text-text-500",h);return o?s.jsxs("div",{className:t("flex items-center gap-1 pr-3",j),children:[s.jsx("button",{type:"button","aria-current":n?"true":void 0,onClick:p,className:"flex flex-1 items-center gap-3 px-3 py-1.5 rounded-lg text-left min-w-0 cursor-pointer",children:u}),s.jsx("div",{className:"shrink-0",children:o})]}):s.jsx("button",{type:"button","aria-current":n?"true":void 0,onClick:p,className:t("flex items-center gap-3 px-3 py-1.5 text-left cursor-pointer",j),children:u})});r.displayName="CustomizeNavListItem";const n="w-[280px] min-w-[280px] xl:w-[360px] xl:min-w-[360px]",l=e.memo(({title:e,headerAction:a,tabs:i,children:r,footer:l,contentClassName:d})=>s.jsxs("div",{className:t("border-r border-border-300 flex flex-col h-full overflow-hidden",n),children:[s.jsxs("div",{className:"flex items-center justify-between gap-2 pl-6 pr-4 py-3 min-h-14",children:[s.jsx("h2",{className:"font-large-bold flex-1 min-w-0 truncate has-[input]:overflow-visible",children:e}),a]}),i&&s.jsx("div",{className:"px-4",children:i}),s.jsx("div",{className:t("flex-1 overflow-y-auto px-4",d),children:r}),l&&s.jsxs(s.Fragment,{children:[s.jsx("hr",{className:"border-t border-border-300 mx-5"}),s.jsx("div",{className:"flex-none py-3 px-3",children:l})]})]}));function d({listItemCount:e=5}){return s.jsxs("div",{className:"flex h-full animate-pulse",children:[s.jsxs("div",{className:t("border-r border-border-300",n),children:[s.jsx("div",{className:"flex items-center px-6 py-3 min-h-14",children:s.jsx("div",{className:"h-5 bg-bg-300 rounded w-24"})}),s.jsx("div",{className:"px-4 space-y-2",children:Array.from({length:e}).map((e,t)=>s.jsx(a,{width:"100%",height:40,rounded:"lg",variant:"light"},t))})]}),s.jsxs("div",{className:"flex-1 bg-bg-100",children:[s.jsx("div",{className:"px-6",children:s.jsxs("div",{className:"flex items-center gap-3 min-h-14 py-3",children:[s.jsx(a,{width:24,height:24,rounded:"md",variant:"light"}),s.jsx(a,{width:120,height:20,rounded:"md",variant:"light"})]})}),s.jsxs("div",{className:"px-6 space-y-4",children:[s.jsx(a,{width:180,height:20,rounded:"md",variant:"light"}),s.jsx(a,{width:"100%",height:60,rounded:"md",variant:"light"}),s.jsx(a,{width:"100%",height:60,rounded:"md",variant:"light"})]})]})]})}l.displayName="CustomizePageSidebar";const c=e.memo(({title:t,action:a,children:r,defaultExpanded:n=!0,forceExpanded:l=!1})=>{const[d,c]=e.useState(n),x=l||d,o=e.useId();return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between pl-2 pb-2",children:[s.jsxs("button",{type:"button",className:"flex items-center gap-1.5 cursor-pointer","aria-expanded":x,"aria-controls":o,onClick:()=>c(e=>!e),children:[s.jsx("span",{"aria-hidden":"true",className:"shrink-0 transition-transform duration-200 ease-in-out",style:{transform:x?"rotate(90deg)":"rotate(0deg)"},children:s.jsx(i,{size:12,className:"text-text-500"})}),s.jsx("span",{className:"font-small text-text-500",children:t})]}),a]}),x&&s.jsx("div",{id:o,children:r})]})});c.displayName="CollapsibleSection";export{r as C,d as L,l as a,c as b,n as c};
