import{o as e}from"./chunk-CFjPhJqf.js";import{a as t,o as n,t as r}from"./compiler-runtime-Cs91PcD2.js";import{l as i,s as a,u as o}from"./button-CmLxDlCv.js";import{a as s,c,d as l,f as u,l as d,o as f,s as p}from"./dist-CSynDsuh.js";var m=o(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),h=o(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),g=e(t(),1),_=n(),v=`Collapsible`,[y,b]=l(v),[x,S]=y(v),C=g.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...c}=e,[l,d]=p({prop:r,defaultProp:i??!1,onChange:o,caller:v});return(0,_.jsx)(x,{scope:n,disabled:a,contentId:s(),open:l,onOpenToggle:g.useCallback(()=>d(e=>!e),[d]),children:(0,_.jsx)(u.div,{"data-state":k(l),"data-disabled":a?``:void 0,...c,ref:t})})});C.displayName=v;var w=`CollapsibleTrigger`,T=g.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=S(w,n);return(0,_.jsx)(u.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":k(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:d(e.onClick,i.onOpenToggle)})});T.displayName=w;var E=`CollapsibleContent`,D=g.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=S(E,e.__scopeCollapsible);return(0,_.jsx)(f,{present:n||i.open,children:({present:e})=>(0,_.jsx)(O,{...r,ref:t,present:e})})});D.displayName=E;var O=g.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,s=S(E,n),[l,d]=g.useState(r),f=g.useRef(null),p=a(t,f),m=g.useRef(0),h=m.current,v=g.useRef(0),y=v.current,b=s.open||l,x=g.useRef(b),C=g.useRef(void 0);return g.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),c(()=>{let e=f.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();m.current=t.height,v.current=t.width,x.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),d(r)}},[s.open,r]),(0,_.jsx)(u.div,{"data-state":k(s.open),"data-disabled":s.disabled?``:void 0,id:s.contentId,hidden:!b,...o,ref:p,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:b&&i})});function k(e){return e?`open`:`closed`}var A=C,j=T,M=D,N=r();function P(e){let t=(0,N.c)(12),n,r,a,o;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4]):({className:n,type:o,ref:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o);let s;t[5]===n?s=t[6]:(s=i(`h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[5]=n,t[6]=s);let c;return t[7]!==r||t[8]!==a||t[9]!==s||t[10]!==o?(c=(0,_.jsx)(`input`,{type:o,ref:a,"data-slot":`input`,className:s,...r}),t[7]=r,t[8]=a,t[9]=s,t[10]=o,t[11]=c):c=t[11],c}function F(e){let t=(0,N.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,_.jsx)(A,{"data-slot":`collapsible`,...n}),t[2]=n,t[3]=r),r}function I(e){let t=(0,N.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,_.jsx)(j,{"data-slot":`collapsible-trigger`,...n}),t[2]=n,t[3]=r),r}function L(e){let t=(0,N.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,_.jsx)(M,{"data-slot":`collapsible-content`,...n}),t[2]=n,t[3]=r),r}export{h as a,P as i,L as n,m as o,I as r,F as t};