1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="103f6db8-15b0-53f5-81bd-d28ddbae44c3")}catch(e){}}(); 3import{r as e}from"./rolldown-runtime-hePW80VL.js";import{nt as t,z as n}from"./vendor-D375vbI8.js";import{o as r}from"./button-nT-bFkYS.js";import{t as i}from"./utils-Fe1e1EtZ.js";import{a,i as o,o as s,r as c,s as l,t as u}from"./dist-BIaT_ZAB.js";import{t as d}from"./dist-BF3GN5Xh.js";import{t as f}from"./chevron-down-BqXOnhwt.js";import{n as p,t as m}from"./dist-B8DVAGHv.js";var h=e(t(),1),g=n(),_=Object.defineProperty,v=(e,t)=>_(e,`name`,{value:t,configurable:!0}),y=`Collapsible`,[b,x]=s(y),[S,C]=b(y),w=h.forwardRef(v(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:s,...l}=e,[u,f]=c({prop:r,defaultProp:i??!1,onChange:s,caller:y});return(0,g.jsx)(S,{scope:n,disabled:a,contentId:o(),open:u,onOpenToggle:h.useCallback(()=>f(e=>!e),[f]),children:(0,g.jsx)(d.div,{"data-state":k(u),"data-disabled":a?``:void 0,...l,ref:t})})},`Collapsible`)),T=`CollapsibleTrigger`,E=h.forwardRef(v(function(e,t){let{__scopeCollapsible:n,...r}=e,i=C(T,n);return(0,g.jsx)(d.button,{type:`button`,"aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":k(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:l(e.onClick,i.onOpenToggle)})},`CollapsibleTrigger`)),D=`CollapsibleContent`,O=h.forwardRef(v(function(e,t){let{forceMount:n,...r}=e,i=C(D,e.__scopeCollapsible);return(0,g.jsx)(u,{present:n||i.open,children:({present:e})=>(0,g.jsx)(ee,{...r,ref:t,present:e})})},`CollapsibleContent`)),ee=h.forwardRef(v(function(e,t){let{__scopeCollapsible:n,present:i,children:o,...s}=e,c=C(D,n),[l,u]=h.useState(i),f=h.useRef(null),p=r(t,f),m=h.useRef(0),_=m.current,v=h.useRef(0),y=v.current,b=c.open||l,x=h.useRef(b),S=h.useRef(void 0);return h.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),a(()=>{let e=f.current;if(e){S.current=S.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=S.current.transitionDuration,e.style.animationName=S.current.animationName),u(i)}},[c.open,i]),(0,g.jsx)(d.div,{"data-state":k(c.open),"data-disabled":c.disabled?``:void 0,id:c.contentId,hidden:!b,...s,ref:p,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:b&&o})},`CollapsibleContentImpl`));function k(e){return e?`open`:`closed`}v(k,`getState`);var A=w,te=E,j=O,M=Object.defineProperty,N=(e,t)=>M(e,`name`,{value:t,configurable:!0}),P=`Accordion`,F=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[I,ne,re]=p(P),[L,ie]=s(P,[re,x]),R=x(),z=h.forwardRef(N(function(e,t){let{type:n,...r}=e,i=r,a=r;return(0,g.jsx)(I.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,g.jsx)(G,{...a,ref:t}):(0,g.jsx)(W,{...i,ref:t})})},`Accordion`)),[B,V]=L(P),[H,U]=L(P,{collapsible:!1}),W=h.forwardRef(N(function(e,t){let{value:n,defaultValue:r,onValueChange:i=N(()=>{},`onValueChange`),collapsible:a=!1,...o}=e,[s,l]=c({prop:n,defaultProp:r??``,onChange:i,caller:P});return(0,g.jsx)(B,{scope:e.__scopeAccordion,value:h.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:h.useCallback(()=>a&&l(``),[a,l]),children:(0,g.jsx)(H,{scope:e.__scopeAccordion,collapsible:a,children:(0,g.jsx)(J,{...o,ref:t})})})},`AccordionImplSingle`)),G=h.forwardRef(N(function(e,t){let{value:n,defaultValue:r,onValueChange:i=N(()=>{},`onValueChange`),...a}=e,[o,s]=c({prop:n,defaultProp:r??[],onChange:i,caller:P}),l=h.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=h.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,g.jsx)(B,{scope:e.__scopeAccordion,value:o,onItemOpen:l,onItemClose:u,children:(0,g.jsx)(H,{scope:e.__scopeAccordion,collapsible:!0,children:(0,g.jsx)(J,{...a,ref:t})})})},`AccordionImplMultiple`)),[K,q]=L(P),J=h.forwardRef(N(function(e,t){let{__scopeAccordion:n,disabled:i,dir:a,orientation:o=`vertical`,...s}=e,c=h.useRef(null),u=r(c,t),f=ne(n),p=m(a)===`ltr`,_=l(e.onKeyDown,e=>
3{if(!F.includes(e.key))return;let t=e.target,n=f().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let a=r,s=i-1,c=N(()=>{a=r+1,a>s&&(a=0)},`moveNext`),l=N(()=>{a=r-1,a<0&&(a=s)},`movePrev`);switch(e.key){case`Home`:a=0;break;case`End`:a=s;break;case`ArrowRight`:o===`horizontal`&&(p?c():l());break;case`ArrowDown`:o===`vertical`&&c();break;case`ArrowLeft`:o===`horizontal`&&(p?l():c());break;case`ArrowUp`:o===`vertical`&&l()}n[a%i].ref.current?.focus()});return(0,g.jsx)(K,{scope:n,disabled:i,direction:a,orientation:o,children:(0,g.jsx)(I.Slot,{scope:n,children:(0,g.jsx)(d.div,{...s,"data-orientation":o,ref:u,onKeyDown:i?void 0:_})})})},`AccordionImpl`)),Y=`AccordionItem`,[X,Z]=L(Y),ae=h.forwardRef(N(function(e,t){let{__scopeAccordion:n,value:r,...i}=e,a=q(Y,n),s=V(Y,n),c=R(n),l=o(),u=r&&s.value.includes(r)||!1,d=a.disabled||e.disabled;return(0,g.jsx)(X,{scope:n,open:u,disabled:d,triggerId:l,children:(0,g.jsx)(A,{"data-orientation":a.orientation,"data-state":$(u),...c,...i,ref:t,disabled:d,open:u,onOpenChange:e=>{e?s.onItemOpen(r):s.onItemClose(r)}})})},`AccordionItem`)),oe=`AccordionHeader`,se=h.forwardRef(N(function(e,t){let{__scopeAccordion:n,...r}=e,i=q(P,n),a=Z(oe,n);return(0,g.jsx)(d.h3,{"data-orientation":i.orientation,"data-state":$(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})},`AccordionHeader`)),Q=`AccordionTrigger`,ce=h.forwardRef(N(function(e,t){let{__scopeAccordion:n,...r}=e,i=q(P,n),a=Z(Q,n),o=U(Q,n),s=R(n);return(0,g.jsx)(I.ItemSlot,{scope:n,children:(0,g.jsx)(te,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})},`AccordionTrigger`)),le=`AccordionContent`,ue=h.forwardRef(N(function(e,t){let{__scopeAccordion:n,...r}=e,i=q(P,n),a=Z(le,n),o=R(n);return(0,g.jsx)(j,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})},`AccordionContent`));function $(e){return e?`open`:`closed`}N($,`getState`);var de=z,fe=ae,pe=se,me=ce,he=ue;function ge({...e}){return(0,g.jsx)(de,{"data-slot":`accordion`,...e})}function _e({className:e,...t}){return(0,g.jsx)(fe,{"data-slot":`accordion-item`,className:i(`border-b last:border-b-0`,e),...t})}function ve({className:e,children:t,...n}){return(0,g.jsx)(pe,{className:`flex`,children:(0,g.jsxs)(me,{"data-slot":`accordion-trigger`,className:i(`focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-colors outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180`,e),...n,children:[t,(0,g.jsx)(f,{className:`text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200`})]})})}function ye({className:e,children:t,...n}){return(0,g.jsx)(he,{"data-slot":`accordion-content`,className:`data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm`,...n,children:(0,g.jsx)(`div`,{className:i(`pt-0 pb-4`,e),children:t})})}export{ve as i,ye as n,_e as r,ge as t}; 4//# debugId=103f6db8-15b0-53f5-81bd-d28ddbae44c3
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.