1import{j as r}from"./query-DmstuUoN.js";import{a as c}from"./vendor-CHI41uxr.js";import{as as F,b as m,at as L}from"./index-CT7kTiav.js";import{Q as V,e as k,c as G,d as K,g as p,U as y,V as B,X as O,h as x,P as q}from"./ui-WgsiDFN4.js";var z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H=z.reduce((e,a)=>{const t=F(`Primitive.${a}`),o=c.forwardRef((n,l)=>{const{asChild:s,...u}=n,f=s?t:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(f,{...u,ref:l})});return o.displayName=`Primitive.${a}`,{...e,[a]:o}},{}),Q="Label",N=c.forwardRef((e,a)=>r.jsx(H.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));N.displayName=Q;var w=N;const U=L("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),X=c.forwardRef(({className:e,...a},t)=>r.jsx(w,{ref:t,className:m(U(),e),...a}));X.displayName=w.displayName;var g="Tabs",[J]=G(g,[y]),h=y(),[W,T]=J(g),C=c.forwardRef((e,a)=>{const{__scopeTabs:t,value:o,onValueChange:n,defaultValue:l,orientation:s="horizontal",dir:u,activationMode:f="automatic",...v}=e,d=V(u),[i,b]=k({prop:o,onChange:n,defaultProp:l??"",caller:g});return r.jsx(W,{scope:t,baseId:K(),value:i,onValueChange:b,orientation:s,dir:d,activationMode:f,children:r.jsx(p.div,{dir:d,"data-orientation":s,...v,ref:a})})});C.displayName=g;var R="TabsList",j=c.forwardRef((e,a)=>{const{__scopeTabs:t,loop:o=!0,...n}=e,l=T(R,t),s=h(t);return r.jsx(B,{asChild:!0,...s,orientation:l.orientation,dir:l.dir,loop:o,children:r.jsx(p.div,{role:"tablist","aria-orientation":l.orientation,...n,ref:a})})});j.displayName=R;var I="TabsTrigger",P=c.forwardRef((e,a)=>{const{__scopeTabs:t,value:o,disabled:n=!1,...l}=e,s=T(I,t),u=h(t),f=E(s.baseId,o),v=M(s.baseId,o),d=o===s.value;return r.jsx(O,{asChild:!0,...u,focusable:!n,active:d,children:r.jsx(p.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":v,"data-state":d?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:f,...l,ref:a,onMouseDown:x(e.onMouseDown,i=>{!n&&i.button===0&&i.ctrlKey===!1?s.onValueChange(o):i.preventDefault()}),onKeyDown:x(e.onKeyDown,i=>{[" ","Enter"].includes(i.key)&&s.onValueChange(o)}),onFocus:x(e.onFocus,()=>{const i=s.activationMode!=="manual";!d&&!n&&i&&s.onValueChange(o)})})})});P.displayName=I;var S="TabsContent",A=c.forwardRef((e,a)=>{const{__scopeTabs:t,value:o,forceMount:n,children:l,...s}=e,u=T(S,t),f=E(u.baseId,o),v=M(u.baseId,o),d=o===u.value,i=c.useRef(d);return c.useEffect(()=>{const b=requestAnimationFrame(()=>i.current=!1);return()=>cancelAnimationFrame(b)},[]),r.jsx(q,{present:n||d,children:({present:b})=>r.jsx(p.div,{"data-state":d?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":f,hidden:!b,id:v,tabIndex:0,...s,ref:a,style:{...e.style,animationDuration:i.current?"0s":void 0},children:b&&l})})});A.displayName=S;function E(e,a){return`${e}-trigger-${a}`}function M(e,a){return`${e}-content-${a}`}var Y=C,_=j,$=P,D=A;const ne=Y,Z=c.forwardRef(({className:e,...a},t)=>r.jsx(_,{ref:t,className:m("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...a}));Z.displayName=_.displayName;const ee=c.forwardRef(({className:e,...a},t)=>r.jsx($,{ref:t,className:m("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 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",e),...a}));ee.displayName=$.displayName;const ae=c.forwardRef(({className:e,...a},t)=>r.jsx(D,{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}));ae.displayName=D.displayName;export{X as L,ne as T,Z as a,ee as b,ae as c};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.