const e=require(`./chunk-BcutgqC9.cjs`),t=require(`./dist-B9QvvA-B.cjs`),n=require(`./dist-C1zbYA0G.cjs`),r=require(`./dist-_OzWLRpv.cjs`),i=require(`./dist-CkjbCwvg.cjs`),a=require(`./dist-DY0ggDuW.cjs`),o=require(`./utils-8yHOSEWy.cjs`),s=require(`./dist-BOF8kEoj.cjs`),c=require(`./dist-CMa749p1.cjs`);let l=require(`react`);l=e.n(l,1);let u=require(`react/jsx-runtime`);var d=`Tabs`,[f,p]=t.a(d,[c.r]),m=c.r(),[h,g]=f(d),_=l.forwardRef((e,r)=>{let{__scopeTabs:o,value:s,onValueChange:c,defaultValue:l,orientation:f=`horizontal`,dir:p,activationMode:m=`automatic`,...g}=e,_=a.t(p),[v,y]=t.t({prop:s,onChange:c,defaultProp:l??``,caller:d});return(0,u.jsx)(h,{scope:o,baseId:i.t(),value:v,onValueChange:y,orientation:f,dir:_,activationMode:m,children:(0,u.jsx)(n.t.div,{dir:_,"data-orientation":f,...g,ref:r})})});_.displayName=d;var v=`TabsList`,y=l.forwardRef((e,t)=>{let{__scopeTabs:r,loop:i=!0,...a}=e,o=g(v,r),s=m(r);return(0,u.jsx)(c.n,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:i,children:(0,u.jsx)(n.t.div,{role:`tablist`,"aria-orientation":o.orientation,...a,ref:t})})});y.displayName=v;var b=`TabsTrigger`,x=l.forwardRef((e,r)=>{let{__scopeTabs:i,value:a,disabled:o=!1,...s}=e,l=g(b,i),d=m(i),f=w(l.baseId,a),p=T(l.baseId,a),h=a===l.value;return(0,u.jsx)(c.t,{asChild:!0,...d,focusable:!o,active:h,children:(0,u.jsx)(n.t.button,{type:`button`,role:`tab`,"aria-selected":h,"aria-controls":p,"data-state":h?`active`:`inactive`,"data-disabled":o?``:void 0,disabled:o,id:f,...s,ref:r,onMouseDown:t.r(e.onMouseDown,e=>{!o&&e.button===0&&e.ctrlKey===!1?l.onValueChange(a):e.preventDefault()}),onKeyDown:t.r(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&l.onValueChange(a)}),onFocus:t.r(e.onFocus,()=>{let e=l.activationMode!==`manual`;!h&&!o&&e&&l.onValueChange(a)})})})});x.displayName=b;var S=`TabsContent`,C=l.forwardRef((e,t)=>{let{__scopeTabs:i,value:a,forceMount:o,children:s,...c}=e,d=g(S,i),f=w(d.baseId,a),p=T(d.baseId,a),m=a===d.value,h=l.useRef(m);return l.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,u.jsx)(r.t,{present:o||m,children:({present:r})=>(0,u.jsx)(n.t.div,{"data-state":m?`active`:`inactive`,"data-orientation":d.orientation,role:`tabpanel`,"aria-labelledby":f,hidden:!r,id:p,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:h.current?`0s`:void 0},children:r&&s})})});C.displayName=S;function w(e,t){return`${e}-trigger-${t}`}function T(e,t){return`${e}-content-${t}`}var E=_,D=y,O=x,k=C,A=s.t(`inline-flex text-base rtl:[direction:rtl] uppercase font-bold justify-center whitespace-nowrap border-b-2 border-primary-gray-300 dark:border-primary-gray-650 dark:text-primary-white p-0 pb-2 mt-3 mr-6 -mb-0.5 transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-primary-blue-100 disabled:pointer-events-none disabled:opacity-50`,{variants:{color:{red:`data-[state=active]:border-accent-dark-red  dark:data-[state=active]:border-accent-red`,blue:`data-[state=active]:border-primary-blue-600 dark:data-[state=active]:border-primary-blue-300`,black:`data-[state=active]:border-primary-gray-700 dark:data-[state=active]:border-primary-gray-100`,custom:`data-[state=active]:border-custom-color-600`}},defaultVariants:{color:`red`}}),j=l.default.createContext({color:void 0}),M=l.default.forwardRef(({color:e,className:t,...n},r)=>{let i=l.default.useMemo(()=>({color:e}),[e]);return(0,u.jsx)(j.Provider,{value:i,children:(0,u.jsx)(E,{className:o.t(`rtl:[direction:rtl]`,t),...n,ref:r})})});M.displayName=E.displayName;var N=l.default.forwardRef(({className:e,...t},n)=>(0,u.jsx)(D,{...t,ref:n,className:o.t(`pl-12 rtl:[direction:rtl] inline-flex items-center border-b-2 border-primary-gray-300 mb-10 w-full dark:border-primary-gray-650`,e)}));N.displayName=D.displayName;var P=l.default.forwardRef(({className:e,...t},n)=>{let{color:r}=l.default.useContext(j);return(0,u.jsx)(O,{...t,ref:n,className:o.t(A({color:r}),e)})});P.displayName=O.displayName;var F=l.default.forwardRef(({className:e,...t},n)=>(0,u.jsx)(k,{...t,ref:n,className:o.t(`mt-2 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-1 dark:text-primary-white`,e)}));F.displayName=k.displayName,Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return M}});
//# sourceMappingURL=tabs-ntT82_Ds.cjs.map