PageSourceSearch

https://depz.ai/assets/index-Bxk6r6Un.js

js depz.ai collected 2026-10-05 14:38:53 UTC 2,231 bytes, 1 lines download raw bytes

vendor: 2,231 bytes, line 1
1import{r as n,m as I,j as c,n as v,o as O,p as S,q as D,s as M}from"./index-CDujw3Ls.js";import{P as L}from"./index-CXmJk5CC.js";import{u as k}from"./index-BUsQSWca.js";var f="Collapsible",[F,z]=S(f),[q,g]=F(f),T=n.forwardRef((e,s)=>{const{__scopeCollapsible:r,open:a,defaultOpen:t,disabled:l,onOpenChange:i,...C}=e,[p,d]=I({prop:a,defaultProp:t??!1,onChange:i,caller:f});return c.jsx(q,{scope:r,disabled:l,contentId:k(),open:p,onOpenToggle:n.useCallback(()=>d(b=>!b),[d]),children:c.jsx(v.div,{"data-state":R(p),"data-disabled":l?"":void 0,...C,ref:s})})});T.displayName=f;var j="CollapsibleTrigger",w=n.forwardRef((e,s)=>{const{__scopeCollapsible:r,...a}=e,t=g(j,r);return c.jsx(v.button,{type:"button","aria-controls":t.contentId,"aria-expanded":t.open||!1,"data-state":R(t.open),"data-disabled":t.disabled?"":void 0,disabled:t.disabled,...a,ref:s,onClick:O(e.onClick,t.onOpenToggle)})});w.displayName=j;var x="CollapsibleContent",A=n.forwardRef((e,s)=>{const{forceMount:r,...a}=e,t=g(x,e.__scopeCollapsible);return c.jsx(L,{present:r||t.open,children:({present:l})=>c.jsx(B,{...a,ref:s,present:l})})});A.displayName=x;var B=n.forwardRef((e,s)=>{const{__scopeCollapsible:r,present:a,children:t,...l}=e,i=g(x,r),[C,p]=n.useState(a),d=n.useRef(null),b=D(s,d),h=n.useRef(0),y=h.current,P=n.useRef(0),N=P.current,m=i.open||C,E=n.useRef(m),u=n.useRef(void 0);return n.useEffect(()=>{const o=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(o)},[]),M(()=>{const o=d.current;if(o){u.current=u.current||{transitionDuration:o.style.transitionDuration,animationName:o.style.animationName},o.style.transitionDuration="0s",o.style.animationName="none";const _=o.getBoundingClientRect();h.current=_.height,P.current=_.width,E.current||(o.style.transitionDuration=u.current.transitionDuration,o.style.animationName=u.current.animationName),p(a)}},[i.open,a]),c.jsx(v.div,{"data-state":R(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!m,...l,ref:b,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:m&&t})});function R(e){return e?"open":"closed"}var J=T,K=w,Q=A;export{w as C,J as R,K as T,A as a,Q as b,z 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.