PageSourceSearch

https://snapbooks.ai/_next/static/immutable/chunks/102px1_7yk323.js

js snapbooks.ai collected 2026-10-05 14:43:31 UTC 7,214 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,890538,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(30030),o=e.i(75830),n=e.i(820783),i=e.i(981140),l=e.i(369340),d=e.i(248425),s=e.i(934620),c=e.i(296626),u=e.i(610772),f="Collapsible",[p,m]=(0,a.createContextScope)(f),[x,h]=p(f),b=r.forwardRef((e,a)=>{let{__scopeCollapsible:o,open:n,defaultOpen:i,disabled:s,onOpenChange:c,...p}=e,[m,h]=(0,l.useControllableState)({prop:n,defaultProp:i??!1,onChange:c,caller:f});return(0,t.jsx)(x,{scope:o,disabled:s,contentId:(0,u.useId)(),open:m,onOpenToggle:r.useCallback(()=>h(e=>!e),[h]),children:(0,t.jsx)(d.Primitive.div,{"data-state":C(m),"data-disabled":s?"":void 0,...p,ref:a})})});b.displayName=f;var v="CollapsibleTrigger",w=r.forwardRef((e,r)=>{let{__scopeCollapsible:a,...o}=e,n=h(v,a);return(0,t.jsx)(d.Primitive.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":C(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...o,ref:r,onClick:(0,i.composeEventHandlers)(e.onClick,n.onOpenToggle)})});w.displayName=v;var g="CollapsibleContent",y=r.forwardRef((e,r)=>{let{forceMount:a,...o}=e,n=h(g,e.__scopeCollapsible);return(0,t.jsx)(c.Presence,{present:a||n.open,children:({present:e})=>(0,t.jsx)(j,{...o,ref:r,present:e})})});y.displayName=g;var j=r.forwardRef((e,a)=>{let{__scopeCollapsible:o,present:i,children:l,...c}=e,u=h(g,o),[f,p]=r.useState(i),m=r.useRef(null),x=(0,n.useComposedRefs)(a,m),b=r.useRef(0),v=b.current,w=r.useRef(0),y=w.current,j=u.open||f,R=r.useRef(j),A=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>R.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.useLayoutEffect)(()=>{let e=m.current;if(e){A.current=A.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();b.current=t.height,w.current=t.width,R.current||(e.style.transitionDuration=A.current.transitionDuration,e.style.animationName=A.current.animationName),p(i)}},[u.open,i]),(0,t.jsx)(d.Primitive.div,{"data-state":C(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!j,...c,ref:x,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:j&&l})});function C(e){return e?"open":"closed"}var R=e.i(586318),A="Accordion",N=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[I,k,D]=(0,o.createCollection)(A),[P,_]=(0,a.createContextScope)(A,[D,m]),S=m(),T=r.default.forwardRef((e,r)=>{let{type:a,...o}=e;return(0,t.jsx)(I.Provider,{scope:e.__scopeAccordion,children:"multiple"===a?(0,t.jsx)(B,{...o,ref:r}):(0,t.jsx)(U,{...o,ref:r})})});T.displayName=A;var[O,E]=P(A),[H,K]=P(A,{collapsible:!1}),U=r.default.forwardRef((e,a)=>{let{value:o,defaultValue:n,onValueChange:i=()=>{},collapsible:d=!1,...s}=e,[c,u]=(0,l.useControllableState)({prop:o,defaultProp:n??"",onChange:i,caller:A});return(0,t.jsx)(O,{scope:e.__scopeAccordion,value:r.default.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:r.default.useCallback(()=>d&&u(""),[d,u]),children:(0,t.jsx)(H,{scope:e.__scopeAccordion,collapsible:d,children:(0,t.jsx)(F,{...s,ref:a})})})}),B=r.default.forwardRef((e,a)=>{let{value:o,defaultValue:n,onValueChange:i=()=>{},...d}=e,[s,c]=(0,l.useControllableState)({prop:o,defaultProp:n??[],onChange:i,caller:A}),u=r.default.useCallback(e=>c((t=[])=>[...t,e]),[c]),f=r.default.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(O,{scope:e.__scopeAccordion,value:s,onItemOpen:u,onItemClose:f,children:(0,t.jsx)(H,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(F,{...d,ref:a})})})}),[L,z]=P(A),F=r.default.forwardRef((e,a)=>{let{__scopeAccordion:o,disabled:l,dir:s,orientation:c="vertical",...u}=e,f=r.default.useRef(null),p=(0,n.useComposedRefs)(f,a),m=k(o),x="ltr"===(0,R.useDirection)(s),h=(0,i.composeEventHandlers)(e.onKeyDown,e=>{if(!N.includes(e.key))return;let t=e.target,r=m().filter(e=>!e.ref.current?.disabled),a=r.findIndex(e=>e.ref.current===t),o=r.length;if(-1===a)return;e.preventDefault();let n=a,i=o-1,l=()=>{(n=a+1)>i&&(n=0)},d=()=>{(n=a-1)<0&&(n=i)};switch(e.key){case"Home":n=0;break;case"End":n=i;break;case"ArrowRight":"horizontal"===c&&(x?l():d());break;case"ArrowDown":"vertical"===c&&l();break;case"ArrowLeft":"horizontal"===c&&(x?d():l());break;case"ArrowUp":"vertical"===c&&d()}let s=n%o;r[s].ref.current?.focus()});return(0,t.jsx)(L,{scope:o,disabled:l,direction:s,orientation:c,children:(0,t.jsx)(I.Slot,{scope:o,children:(0,t.jsx)(d.Primitive.div,{...u,"data-orientation":c,ref:p,onKeyDown:l?void 0:h})})})}),$="AccordionItem",[q,M]=P($),G=r.default.forwardRef((e,r)=>{let{__scopeAccordion:a,value:o,...n}=e,i=z($,a),l=E($,a),d=S(a),s=(0,u.useId)(),c=o&&l.value.includes(o)||!1,f=i.disabled||e.disabled;return(0,t.jsx)(q,{scope:a,open:c,disabled:f,triggerId:s,children:(0,t.jsx)(b,{"data-orientation":i.orientation,"data-state":Z(c),...d,...n,ref:r,disabled:f,open:c,onOpenChange:e=>{e?l.onItemOpen(o):l.onItemClose(o)}})})});G.displayName=$;var J="AccordionHeader",Q=r.default.forwardRef((e,r)=>{let{__scopeAccordion:a,...o}=e,n=z(A,a),i=M(J,a);return(0,t.jsx)(d.Primitive.h3,{"data-orientation":n.orientation,"data-state":Z(i.open),"data-disabled":i.disabled?"":void 0,...o,ref:r})});Q.displayName=J;var V="AccordionTrigger",W=r.default.forwardRef((e,r)=>{let{__scopeAccordion:a,...o}=e,n=z(A,a),i=M(V,a),l=K(V,a),d=S(a);return(0,t.jsx)(I.ItemSlot,{scope:a,children:(0,t.jsx)(w,{"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":n.orientation,id:i.triggerId,...d,...o,ref:r})})});W.displayName=V;var X="AccordionContent",Y=r.default.forwardRef((e,r)=>{let{__scopeAccordion:a,...o}=e,n=z(A,a),i=M(X,a),l=S(a);return(0,t.jsx)(y,{role:"region","aria-labelledby":i.triggerId,"data-orientation":n.orientation,...l,...o,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function Z(e){return e?"open":"closed"}Y.displayName=X;var ee=e.i(664659),et=e.i(647163);let er=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(G,{ref:a,className:(0,et.cn)("border-b",e),...r}));er.displayName="AccordionItem";let ea=r.forwardRef(({className:e,children:r,...a},o)=>(0,t.jsx)(Q,{className:"flex",children:(0,t.jsxs)(W,{ref:o,className:(0,et.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...a,children:[r,(0,t.jsx)(ee.ChevronDown,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));ea.displayName=W.displayName;let eo=r.forwardRef(({className:e,children:r,...a},o)=>(0,t.jsx)(Y,{ref:o,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:(0,t.jsx)("div",{className:(0,et.cn)("pb-4 pt-0",e),children:r})}));
1eo.displayName=Y.displayName,e.s(["Accordion",0,T,"AccordionContent",0,eo,"AccordionItem",0,er,"AccordionTrigger",0,ea],890538)}]);

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.