import{c as e}from"./security-CTzQb9Ko.js";import{$i as t,Qi as n}from"./bundle-mjs-lcbR1pPJ.js";import{_ as r}from"./dist-C0UdmnhX.js";var i=e(t(),1),a=e(n(),1),o=i.createContext(void 0),s=()=>{let e=i.useContext(o);if(!e)throw Error(`Tabs components must be used within a Tabs`);return e},c=({defaultValue:e,value:t,onValueChange:n,children:s,className:c})=>{let[l,u]=i.useState(e||``),d=t!==void 0,f={value:(d?t:l)||``,onValueChange:e=>{d||u(e),n?.(e)}};return(0,a.jsx)(o.Provider,{value:f,children:(0,a.jsx)(`div`,{className:r(`w-full`,c),children:s})})},l=i.forwardRef(({className:e,...t},n)=>(0,a.jsx)(`div`,{ref:n,className:r(`inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground`,e),...t}));l.displayName=`TabsList`;var u=i.forwardRef(({className:e,value:t,children:n,...i},o)=>{let{value:c,onValueChange:l}=s(),u=c===t;return(0,a.jsx)(`button`,{ref:o,type:`button`,role:`tab`,"aria-selected":u,className:r(`inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50`,u?`bg-background text-foreground shadow-sm`:`text-muted-foreground hover:bg-background/50 hover:text-foreground`,e),onClick:()=>l(t),...i,children:n})});u.displayName=`TabsTrigger`;var d=i.forwardRef(({className:e,value:t,children:n,...i},o)=>{let{value:c}=s();return c===t?(0,a.jsx)(`div`,{ref:o,role:`tabpanel`,className:r(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,e),...i,children:n}):null});d.displayName=`TabsContent`;export{u as i,d as n,l as r,c as t};