PageSourceSearch

https://snify.app/assets/index-DritIr6U.js

js snify.app collected 2026-10-02 00:26:05 UTC 2,173 bytes, 1 lines download raw bytes

vendor: 2,173 bytes, line 1
1import{r as n,aE as A,j as c,a1 as v,a0 as O,aH as S,aI as D,aP as M,b3 as L,aJ as k}from"./index-BJ_cpA-m.js";var f="Collapsible",[F,$]=k(f),[B,g]=F(f),I=n.forwardRef((e,s)=>{const{__scopeCollapsible:r,open:o,defaultOpen:t,disabled:l,onOpenChange:i,...C}=e,[p,d]=A({prop:o,defaultProp:t??!1,onChange:i,caller:f});return c.jsx(B,{scope:r,disabled:l,contentId:O(),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})})});I.displayName=f;var T="CollapsibleTrigger",j=n.forwardRef((e,s)=>{const{__scopeCollapsible:r,...o}=e,t=g(T,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,...o,ref:s,onClick:S(e.onClick,t.onOpenToggle)})});j.displayName=T;var x="CollapsibleContent",w=n.forwardRef((e,s)=>{const{forceMount:r,...o}=e,t=g(x,e.__scopeCollapsible);return c.jsx(D,{present:r||t.open,children:({present:l})=>c.jsx(G,{...o,ref:s,present:l})})});w.displayName=x;var G=n.forwardRef((e,s)=>{const{__scopeCollapsible:r,present:o,children:t,...l}=e,i=g(x,r),[C,p]=n.useState(o),d=n.useRef(null),b=M(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 a=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(a)},[]),L(()=>{const a=d.current;if(a){u.current=u.current||{transitionDuration:a.style.transitionDuration,animationName:a.style.animationName},a.style.transitionDuration="0s",a.style.animationName="none";const _=a.getBoundingClientRect();h.current=_.height,P.current=_.width,E.current||(a.style.transitionDuration=u.current.transitionDuration,a.style.animationName=u.current.animationName),p(o)}},[i.open,o]),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 q=I,J=j,z=w;export{j as C,q as R,J as T,w as a,z as b,$ 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.