import{r as b,c8 as k,j as l,jL as L,c6 as v,c9 as I,cb as N,c5 as D,jM as G,cc as V,ca as $,c7 as h,m as u,v as C,w as B,t as g,n as T,Z as K,L as z}from"./index-6o6UQuBv.js";var x="Tabs",[X]=k(x,[I]),w=I(),[q,y]=X(x),S=b.forwardRef((t,n)=>{const{__scopeTabs:r,value:e,onValueChange:i,defaultValue:c,orientation:a="horizontal",dir:d,activationMode:f="automatic",...m}=t,s=N(d),[o,p]=D({prop:e,onChange:i,defaultProp:c??"",caller:x});return l.jsx(q,{scope:r,baseId:G(),value:o,onValueChange:p,orientation:a,dir:s,activationMode:f,children:l.jsx(v.div,{dir:s,"data-orientation":a,...m,ref:n})})});S.displayName=x;var j="TabsList",M=b.forwardRef((t,n)=>{const{__scopeTabs:r,loop:e=!0,...i}=t,c=y(j,r),a=w(r);return l.jsx(V,{asChild:!0,...a,orientation:c.orientation,dir:c.dir,loop:e,children:l.jsx(v.div,{role:"tablist","aria-orientation":c.orientation,...i,ref:n})})});M.displayName=j;var R="TabsTrigger",_=b.forwardRef((t,n)=>{const{__scopeTabs:r,value:e,disabled:i=!1,...c}=t,a=y(R,r),d=w(r),f=E(a.baseId,e),m=P(a.baseId,e),s=e===a.value;return l.jsx($,{asChild:!0,...d,focusable:!i,active:s,children:l.jsx(v.button,{type:"button",role:"tab","aria-selected":s,"aria-controls":m,"data-state":s?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f,...c,ref:n,onMouseDown:h(t.onMouseDown,o=>{!i&&o.button===0&&o.ctrlKey===!1?a.onValueChange(e):o.preventDefault()}),onKeyDown:h(t.onKeyDown,o=>{[" ","Enter"].includes(o.key)&&a.onValueChange(e)}),onFocus:h(t.onFocus,()=>{const o=a.activationMode!=="manual";!s&&!i&&o&&a.onValueChange(e)})})})});_.displayName=R;var A="TabsContent",F=b.forwardRef((t,n)=>{const{__scopeTabs:r,value:e,forceMount:i,children:c,...a}=t,d=y(A,r),f=E(d.baseId,e),m=P(d.baseId,e),s=e===d.value,o=b.useRef(s);return b.useEffect(()=>{const p=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(p)},[]),l.jsx(L,{present:i||s,children:({present:p})=>l.jsx(v.div,{"data-state":s?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":f,hidden:!p,id:m,tabIndex:0,...a,ref:n,style:{...t.style,animationDuration:o.current?"0s":void 0},children:p&&c})})});F.displayName=A;function E(t,n){return`${t}-trigger-${n}`}function P(t,n){return`${t}-content-${n}`}var H=S,O=M,Q=_,nt=F;const Z=u.form.withConfig({componentId:"sc-ad89ba4-0"})(["display:flex;flex-direction:column;"]),J=u(K).withConfig({componentId:"sc-ad89ba4-1"})(["margin:40px 0 0;"]),U=u.div.withConfig({componentId:"sc-ad89ba4-2"})(["display:flex;gap:12px;justify-content:center;margin:30px 0 0;"]),W=u(z).withConfig({componentId:"sc-ad89ba4-3"})(["",";text-decoration:underline;text-underline-offset:2px;color:",";","{",";}"],T(12),({$isDarkGrayColor:t})=>t?g.darkGray:g.black,C.SM,T(14)),Y=u(H).withConfig({componentId:"sc-ad89ba4-4"})(["display:flex;flex-direction:column;gap:10px;"]),tt=u(O).withConfig({componentId:"sc-ad89ba4-5"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;border-bottom:1px solid white;","{width:100%;margin-bottom:20px;}"],C.SM),et=u(Q).withConfig({componentId:"sc-ad89ba4-6"})(["flex:1;",";position:relative;padding:16px;&::before{content:'';position:absolute;left:0;bottom:0;width:100%;height:4px;background-color:",";}&::after{content:'';position:absolute;left:0;bottom:0;width:100%;height:4px;background-color:",";transform:scaleX(0);transition:transform 0.3s ease-in-out;}&[data-state='active']::after{transform:scaleX(1);}","{padding:20px;}"],B,g.gray,g.primary,C.SM),at=u.span.withConfig({componentId:"sc-ad89ba4-7"})(["display:flex;align-items:center;gap:8px;",";"],T(16)),it={Form:Z,LinkContainer:U,StyledLink:W,SubmitButton:J,TabsRoot:Y,TabsList:tt,TabsTrigger:et,TabText:at};export{nt as C,it as F};