1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8911],{88187:(e,t,r)=>{r.r(t),r.d(t,{Collapsible:()=>C,CollapsibleContent:()=>h,CollapsibleTrigger:()=>E,Content:()=>I,Root:()=>y,Trigger:()=>R,createCollapsibleScope:()=>m});var n=r(315),o=r(53239),a=r(91968),l=r(75397),i=r(99773),c=r(9795),d=r(621),s=r(97771),p=r(67885),u=r(22413);let f="Collapsible",[b,m]=(0,l.A)(f),[g,A]=b(f),C=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:r,open:a,defaultOpen:l,disabled:c,onOpenChange:d,...p}=e,[f=!1,b]=(0,i.i)({prop:a,defaultProp:l,onChange:d});return(0,o.createElement)(g,{scope:r,disabled:c,contentId:(0,u.B)(),open:f,onOpenToggle:(0,o.useCallback)(()=>b(e=>!e),[b])},(0,o.createElement)(s.sG.div,(0,n.A)({"data-state":_(f),"data-disabled":c?"":void 0},p,{ref:t})))}),E=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:r,...l}=e,i=A("CollapsibleTrigger",r);return(0,o.createElement)(s.sG.button,(0,n.A)({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":_(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},l,{ref:t,onClick:(0,a.m)(e.onClick,i.onOpenToggle)}))}),v="CollapsibleContent",h=(0,o.forwardRef)((e,t)=>{let{forceMount:r,...a}=e,l=A(v,e.__scopeCollapsible);return(0,o.createElement)(p.C,{present:r||l.open},({present:e})=>(0,o.createElement)(w,(0,n.A)({},a,{ref:t,present:e})))}),w=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:r,present:a,children:l,...i}=e,p=A(v,r),[u,f]=(0,o.useState)(a),b=(0,o.useRef)(null),m=(0,d.s)(t,b),g=(0,o.useRef)(0),C=g.current,E=(0,o.useRef)(0),h=E.current,w=p.open||u,y=(0,o.useRef)(w),R=(0,o.useRef)();return(0,o.useEffect)(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=b.current;if(e){R.current=R.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,E.current=t.width,y.current||(e.style.transitionDuration=R.current.transitionDuration,e.style.animationName=R.current.animationName),f(a)}},[p.open,a]),(0,o.createElement)(s.sG.div,(0,n.A)({"data-state":_(p.open),"data-disabled":p.disabled?"":void 0,id:p.contentId,hidden:!w},i,{ref:m,style:{"--radix-collapsible-content-height":C?`${C}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style}}),w&&l)});function _(e){return e?"open":"closed"}let y=C,R=E,I=h},98911:(e,t,r)=>{r.d(t,{UC:()=>$,Y9:()=>F,bL:()=>q,l9:()=>K,q7:()=>z});var n=r(16880),o=r(53239),a=r(75397),l=r(70869),i=r(621),c=r(91968),d=r(99773),s=r(97771),p=r(88187),u=r(22413),f=r(72449);let b="Accordion",m=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[g,A,C]=(0,l.N)(b),[E,v]=(0,a.A)(b,[C,p.createCollapsibleScope]),h=(0,p.createCollapsibleScope)(),w=o.forwardRef((e,t)=>{let{type:r,...a}=e;return o.createElement(g.Provider,{scope:e.__scopeAccordion},"multiple"===r?o.createElement(x,(0,n.A)({},a,{ref:t})):o.createElement(k,(0,n.A)({},a,{ref:t})))});w.propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[_,y]=E(b),[R,I]=E(b,{collapsible:!1}),k=o.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:l=()=>{},collapsible:i=!1,...c}=e,[s,p]=(0,d.i)({prop:r,defaultProp:a,onChange:l});return o.createElement(_,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:p,onItemClose:o.useCallback(()=>i&&p(""),[i,p])},o.createElement(R,{scope:e.__scopeAccordion,collapsible:i},o.createElement(O,(0,n.A)({},c,{ref:t}))))}),x=o.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:l=()=>{},...i}=e,[c=[],s]=(0,d.i)({prop:r,defaultProp:a,onChange:l}),p=o.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=o.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return o.createElement(_,{scope:e.__scopeAccordion,value:c,onItemOpen:p,onItemClose:u},o.createElement(R,{scope:e.__scopeAccordion,collapsible:!0},o.createElement(O,(0,n.A)({},i,{ref:t}))))}),[D,N]=E(b),O=o.forwardRef((e,t)=>
1{let{__scopeAccordion:r,disabled:a,dir:l,orientation:d="vertical",...p}=e,u=o.useRef(null),b=(0,i.s)(u,t),C=A(r),E="ltr"===(0,f.jH)(l),v=(0,c.m)(e.onKeyDown,e=>{var t;if(!m.includes(e.key))return;let r=e.target,n=C().filter(e=>{var t;return!(null!=(t=e.ref.current)&&t.disabled)}),o=n.findIndex(e=>e.ref.current===r),a=n.length;if(-1===o)return;e.preventDefault();let l=o,i=a-1,c=()=>{(l=o+1)>i&&(l=0)},s=()=>{(l=o-1)<0&&(l=i)};switch(e.key){case"Home":l=0;break;case"End":l=i;break;case"ArrowRight":"horizontal"===d&&(E?c():s());break;case"ArrowDown":"vertical"===d&&c();break;case"ArrowLeft":"horizontal"===d&&(E?s():c());break;case"ArrowUp":"vertical"===d&&s()}null==(t=n[l%a].ref.current)||t.focus()});return o.createElement(D,{scope:r,disabled:a,direction:l,orientation:d},o.createElement(g.Slot,{scope:r},o.createElement(s.sG.div,(0,n.A)({},p,{"data-orientation":d,ref:b,onKeyDown:a?void 0:v}))))}),T="AccordionItem",[V,S]=E(T),G=o.forwardRef((e,t)=>{let{__scopeAccordion:r,value:a,...l}=e,i=N(T,r),c=y(T,r),d=h(r),s=(0,u.B)(),f=a&&c.value.includes(a)||!1,b=i.disabled||e.disabled;return o.createElement(V,{scope:r,open:f,disabled:b,triggerId:s},o.createElement(p.Root,(0,n.A)({"data-orientation":i.orientation,"data-state":U(f)},d,l,{ref:t,disabled:b,open:f,onOpenChange:e=>{e?c.onItemOpen(a):c.onItemClose(a)}})))}),H=o.forwardRef((e,t)=>{let{__scopeAccordion:r,...a}=e,l=N(b,r),i=S("AccordionHeader",r);return o.createElement(s.sG.h3,(0,n.A)({"data-orientation":l.orientation,"data-state":U(i.open),"data-disabled":i.disabled?"":void 0},a,{ref:t}))}),P="AccordionTrigger",B=o.forwardRef((e,t)=>{let{__scopeAccordion:r,...a}=e,l=N(b,r),i=S(P,r),c=I(P,r),d=h(r);return o.createElement(g.ItemSlot,{scope:r},o.createElement(p.Trigger,(0,n.A)({"aria-disabled":i.open&&!c.collapsible||void 0,"data-orientation":l.orientation,id:i.triggerId},d,a,{ref:t})))}),L=o.forwardRef((e,t)=>{let{__scopeAccordion:r,...a}=e,l=N(b,r),i=S("AccordionContent",r),c=h(r);return o.createElement(p.Content,(0,n.A)({role:"region","aria-labelledby":i.triggerId,"data-orientation":l.orientation},c,a,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function U(e){return e?"open":"closed"}let q=w,z=G,F=H,K=B,$=L}}]);
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.