import{h as F,K as V,aq as y,g as l,am as k,O as $,l as c,ai as D,P as g,ar as G,as as L,Q as p,T as K,V as m}from"./index-CQ7DJRNL.js";/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const U=F("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var T="Tabs",[q,W]=V(T,[y]),h=y(),[z,x]=q(T),C=l.forwardRef((e,a)=>{const{__scopeTabs:t,value:o,onValueChange:i,defaultValue:d,orientation:s="horizontal",dir:u,activationMode:b="automatic",...v}=e,r=k(u),[n,f]=$({prop:o,onChange:i,defaultProp:d});return c.jsx(z,{scope:t,baseId:D(),value:n,onValueChange:f,orientation:s,dir:r,activationMode:b,children:c.jsx(g.div,{dir:r,"data-orientation":s,...v,ref:a})})});C.displayName=T;var N="TabsList",I=l.forwardRef((e,a)=>{const{__scopeTabs:t,loop:o=!0,...i}=e,d=x(N,t),s=h(t);return c.jsx(G,{asChild:!0,...s,orientation:d.orientation,dir:d.dir,loop:o,children:c.jsx(g.div,{role:"tablist","aria-orientation":d.orientation,...i,ref:a})})});I.displayName=N;var R="TabsTrigger",j=l.forwardRef((e,a)=>{const{__scopeTabs:t,value:o,disabled:i=!1,...d}=e,s=x(R,t),u=h(t),b=A(s.baseId,o),v=E(s.baseId,o),r=o===s.value;return c.jsx(L,{asChild:!0,...u,focusable:!i,active:r,children:c.jsx(g.button,{type:"button",role:"tab","aria-selected":r,"aria-controls":v,"data-state":r?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:b,...d,ref:a,onMouseDown:p(e.onMouseDown,n=>{!i&&n.button===0&&n.ctrlKey===!1?s.onValueChange(o):n.preventDefault()}),onKeyDown:p(e.onKeyDown,n=>{[" ","Enter"].includes(n.key)&&s.onValueChange(o)}),onFocus:p(e.onFocus,()=>{const n=s.activationMode!=="manual";!r&&!i&&n&&s.onValueChange(o)})})})});j.displayName=R;var w="TabsContent",_=l.forwardRef((e,a)=>{const{__scopeTabs:t,value:o,forceMount:i,children:d,...s}=e,u=x(w,t),b=A(u.baseId,o),v=E(u.baseId,o),r=o===u.value,n=l.useRef(r);return l.useEffect(()=>{const f=requestAnimationFrame(()=>n.current=!1);return()=>cancelAnimationFrame(f)},[]),c.jsx(K,{present:i||r,children:({present:f})=>c.jsx(g.div,{"data-state":r?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":b,hidden:!f,id:v,tabIndex:0,...s,ref:a,style:{...e.style,animationDuration:n.current?"0s":void 0},children:f&&d})})});_.displayName=w;function A(e,a){return`${e}-trigger-${a}`}function E(e,a){return`${e}-content-${a}`}var B=C,M=I,P=j,S=_;const X=B,O=l.forwardRef(({className:e,...a},t)=>c.jsx(M,{ref:t,className:m("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...a}));O.displayName=M.displayName;const H=l.forwardRef(({className:e,...a},t)=>c.jsx(P,{ref:t,className:m("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 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...a}));H.displayName=P.displayName;const Q=l.forwardRef(({className:e,...a},t)=>c.jsx(S,{ref:t,className:m("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...a}));Q.displayName=S.displayName;export{U as C,X as T,O as a,H as b,Q as c};
