import{c as A}from"./button-CZmOQP7j.js";import{r as b,j as r}from"./app-BBZbvTSO.js";import{u as P,c as E,a as x}from"./index-CbDI-tXU.js";import{c as T,R as S,I as F}from"./index-Dbn6AP0q.js";import{P as L}from"./index-C1VwruLz.js";import{P as v}from"./index-13DH8-b5.js";import{u as $}from"./index-BosTFUDi.js";import{b as z}from"./Combination-9YgcTppv.js";import{c as m}from"./utils-YhN_nlHn.js";/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],te=A("List",D);var g="Tabs",[V,ae]=E(g,[T]),y=T(),[G,h]=V(g),j=b.forwardRef((e,t)=>{const{__scopeTabs:c,value:a,onValueChange:s,defaultValue:d,orientation:o="horizontal",dir:l,activationMode:f="automatic",...p}=e,i=$(l),[n,u]=P({prop:a,onChange:s,defaultProp:d??"",caller:g});return r.jsx(G,{scope:c,baseId:z(),value:n,onValueChange:u,orientation:o,dir:i,activationMode:f,children:r.jsx(v.div,{dir:i,"data-orientation":o,...p,ref:t})})});j.displayName=g;var k="TabsList",C=b.forwardRef((e,t)=>{const{__scopeTabs:c,loop:a=!0,...s}=e,d=h(k,c),o=y(c);return r.jsx(S,{asChild:!0,...o,orientation:d.orientation,dir:d.dir,loop:a,children:r.jsx(v.div,{role:"tablist","aria-orientation":d.orientation,...s,ref:t})})});C.displayName=k;var I="TabsTrigger",_=b.forwardRef((e,t)=>{const{__scopeTabs:c,value:a,disabled:s=!1,...d}=e,o=h(I,c),l=y(c),f=R(o.baseId,a),p=w(o.baseId,a),i=a===o.value;return r.jsx(F,{asChild:!0,...l,focusable:!s,active:i,children:r.jsx(v.button,{type:"button",role:"tab","aria-selected":i,"aria-controls":p,"data-state":i?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:f,...d,ref:t,onMouseDown:x(e.onMouseDown,n=>{!s&&n.button===0&&n.ctrlKey===!1?o.onValueChange(a):n.preventDefault()}),onKeyDown:x(e.onKeyDown,n=>{[" ","Enter"].includes(n.key)&&o.onValueChange(a)}),onFocus:x(e.onFocus,()=>{const n=o.activationMode!=="manual";!i&&!s&&n&&o.onValueChange(a)})})})});_.displayName=I;var M="TabsContent",N=b.forwardRef((e,t)=>{const{__scopeTabs:c,value:a,forceMount:s,children:d,...o}=e,l=h(M,c),f=R(l.baseId,a),p=w(l.baseId,a),i=a===l.value,n=b.useRef(i);return b.useEffect(()=>{const u=requestAnimationFrame(()=>n.current=!1);return()=>cancelAnimationFrame(u)},[]),r.jsx(L,{present:s||i,children:({present:u})=>r.jsx(v.div,{"data-state":i?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":f,hidden:!u,id:p,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:n.current?"0s":void 0},children:u&&d})})});N.displayName=M;function R(e,t){return`${e}-trigger-${t}`}function w(e,t){return`${e}-content-${t}`}var K=j,q=C,B=_,H=N;function oe({className:e,...t}){return r.jsx(K,{"data-slot":"tabs",className:m("flex flex-col gap-2",e),...t})}function ne({className:e,...t}){return r.jsx(q,{"data-slot":"tabs-list",className:m("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function re({className:e,...t}){return r.jsx(B,{"data-slot":"tabs-trigger",className:m("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function se({className:e,...t}){return r.jsx(H,{"data-slot":"tabs-content",className:m("flex-1 outline-none",e),...t})}export{te as L,oe as T,ne as a,re as b,se as c};
