import{r as s,I as A,j as i,J as h,av as I,T as L,X as $,W as O,M as S,az as D,c as g}from"./index-oE_2MbI2.js";const B=({size:n=24,color:e="currentColor",...t})=>s.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},s.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));B.displayName="ArrowsRight";const z=({size:n=24,color:e="currentColor",...t})=>s.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},s.createElement("path",{d:"M10 17.659V20a2 2 0 1 0 4 0v-2.341M12 2v1m-9 9H2m3.5-6.5-.6-.6m13.6.6.6-.6M22 12h-1m-3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"}));z.displayName="Lightbulb02";var f="Collapsible",[F,J]=$(f),[W,v]=F(f),T=s.forwardRef((n,e)=>{const{__scopeCollapsible:t,open:o,defaultOpen:a,disabled:c,onOpenChange:l,...m}=n,[p,d]=A({prop:o,defaultProp:a??!1,onChange:l,caller:f});return i.jsx(W,{scope:t,disabled:c,contentId:I(),open:p,onOpenToggle:s.useCallback(()=>d(b=>!b),[d]),children:i.jsx(h.div,{"data-state":E(p),"data-disabled":c?"":void 0,...m,ref:e})})});T.displayName=f;var _="CollapsibleTrigger",x=s.forwardRef((n,e)=>{const{__scopeCollapsible:t,...o}=n,a=v(_,t);return i.jsx(h.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":E(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...o,ref:e,onClick:L(n.onClick,a.onOpenToggle)})});x.displayName=_;var R="CollapsibleContent",y=s.forwardRef((n,e)=>{const{forceMount:t,...o}=n,a=v(R,n.__scopeCollapsible);return i.jsx(O,{present:t||a.open,children:({present:c})=>i.jsx(G,{...o,ref:e,present:c})})});y.displayName=R;var G=s.forwardRef((n,e)=>{const{__scopeCollapsible:t,present:o,children:a,...c}=n,l=v(R,t),[m,p]=s.useState(o),d=s.useRef(null),b=S(e,d),N=s.useRef(0),j=N.current,w=s.useRef(0),P=w.current,C=l.open||m,k=s.useRef(C),u=s.useRef(void 0);return s.useEffect(()=>{const r=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(r)},[]),D(()=>{const r=d.current;if(r){u.current=u.current||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const M=r.getBoundingClientRect();N.current=M.height,w.current=M.width,k.current||(r.style.transitionDuration=u.current.transitionDuration,r.style.animationName=u.current.animationName),p(o)}},[l.open,o]),i.jsx(h.div,{"data-state":E(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!C,...c,ref:b,style:{"--radix-collapsible-content-height":j?`${j}px`:void 0,"--radix-collapsible-content-width":P?`${P}px`:void 0,...n.style},children:C&&a})});function E(n){return n?"open":"closed"}var H=T,V=x,X=y;function Z(n){const e=g.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=i.jsx(H,{"data-slot":"collapsible",...t}),e[2]=t,e[3]=o):o=e[3],o}function K(n){const e=g.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=i.jsx(x,{"data-slot":"collapsible-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function Q(n){const e=g.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=i.jsx(y,{"data-slot":"collapsible-content",...t}),e[2]=t,e[3]=o):o=e[3],o}export{Z as C,H as R,V as T,z as a,K as b,Q as c,X as d,J as e,B as i};
