vendor: 4,300 bytes, line 1
1import{C as e,a as t}from"./Footer-B11IMWOZ.js";import{C as n,E as r,F as i,T as a,c as o,g as s,j as c,k as l,l as u,m as d,p as f,x as p,y as m}from"./index-CucKgqFa.js";var h=i(c(),1),g=l(),_=`Collapsible`,[v,y]=n(_),[b,x]=v(_),S=h.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:s,...c}=e,[l,u]=f({prop:r,defaultProp:i??!1,onChange:s,caller:_});return(0,g.jsx)(b,{scope:n,disabled:a,contentId:o(),open:l,onOpenToggle:h.useCallback(()=>u(e=>!e),[u]),children:(0,g.jsx)(m.div,{"data-state":D(l),"data-disabled":a?``:void 0,...c,ref:t})})});S.displayName=_;var C=`CollapsibleTrigger`,w=h.forwardRef((e,t)=>{let{__scopeCollapsible:n,...i}=e,a=x(C,n);return(0,g.jsx)(m.button,{type:`button`,"aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":D(a.open),"data-disabled":a.disabled?``:void 0,disabled:a.disabled,...i,ref:t,onClick:r(e.onClick,a.onOpenToggle)})});w.displayName=C;var T=`CollapsibleContent`,E=h.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=x(T,e.__scopeCollapsible);return(0,g.jsx)(d,{present:n||i.open,children:({present:e})=>(0,g.jsx)(ee,{...r,ref:t,present:e})})});E.displayName=T;var ee=h.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,c=x(T,n),[l,u]=h.useState(r),d=h.useRef(null),f=a(t,d),p=h.useRef(0),_=p.current,v=h.useRef(0),y=v.current,b=c.open||l,S=h.useRef(b),C=h.useRef(void 0);return h.useEffect(()=>{let e=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(e)},[]),s(()=>{let e=d.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();p.current=t.height,v.current=t.width,S.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),u(r)}},[c.open,r]),(0,g.jsx)(m.div,{"data-state":D(c.open),"data-disabled":c.disabled?``:void 0,id:c.contentId,hidden:!b,...o,ref:f,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:b&&i})});function D(e){return e?`open`:`closed`}var te=S,ne=w,re=E,O=`Accordion`,k=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[A,ie,ae]=p(O),[j,oe]=n(O,[ae,y]),M=y(),N=h.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,g.jsx)(A.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,g.jsx)(ue,{...a,ref:t}):(0,g.jsx)(le,{...i,ref:t})})});N.displayName=O;var[P,se]=j(O),[F,ce]=j(O,{collapsible:!1}),le=h.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=f({prop:n,defaultProp:r??``,onChange:i,caller:O});return(0,g.jsx)(P,{scope:e.__scopeAccordion,value:h.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:h.useCallback(()=>a&&c(``),[a,c]),children:(0,g.jsx)(F,{scope:e.__scopeAccordion,collapsible:a,children:(0,g.jsx)(R,{...o,ref:t})})})}),ue=h.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=f({prop:n,defaultProp:r??[],onChange:i,caller:O}),c=h.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=h.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,g.jsx)(P,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,g.jsx)(F,{scope:e.__scopeAccordion,collapsible:!0,children:(0,g.jsx)(R,{...a,ref:t})})})}),[I,L]=j(O),R=h.forwardRef((e,n)=>{let{__scopeAccordion:i,disabled:o,dir:s,orientation:c=`vertical`,...l}=e,u=h.useRef(null),d=a(u,n),f=ie(i),p=t(s)===`ltr`,_=r(e.onKeyDown,e=>{if(!k.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,o=i-1,s=()=>{a=r+1,a>o&&(a=0)},l=()=>{a=r-1,a<0&&(a=o)};switch(e.key){case`Home`:a=0;break;case`End`:a=o;break;case`ArrowRight`:c===`horizontal`&&(p?s():l());break;case`ArrowDown`:c===`vertical`&&s();break;case`ArrowLeft`:c===`horizontal`&&(p?l():s());break;case`ArrowUp`:c===`vertical`&&l()}n[a%i].ref.current?.focus()});return(0,g.jsx)(I,{scope:i,disabled:o,direction:s,orientation:c,children:(0,g.jsx)(A.Slot,{scope:i,children:(0,g.jsx)(m.div,{...l,"data-orientation":c,ref:d,onKeyDown:o?void 0:_})})})}),z=`AccordionItem`,[de,B]=j(z),V=h.forwardRef((e,t)=>
1{let{__scopeAccordion:n,value:r,...i}=e,a=L(z,n),s=se(z,n),c=M(n),l=o(),u=r&&s.value.includes(r)||!1,d=a.disabled||e.disabled;return(0,g.jsx)(de,{scope:n,open:u,disabled:d,triggerId:l,children:(0,g.jsx)(te,{"data-orientation":a.orientation,"data-state":J(u),...c,...i,ref:t,disabled:d,open:u,onOpenChange:e=>{e?s.onItemOpen(r):s.onItemClose(r)}})})});V.displayName=z;var H=`AccordionHeader`,U=h.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=L(O,n),a=B(H,n);return(0,g.jsx)(m.h3,{"data-orientation":i.orientation,"data-state":J(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})});U.displayName=H;var W=`AccordionTrigger`,G=h.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=L(O,n),a=B(W,n),o=ce(W,n),s=M(n);return(0,g.jsx)(A.ItemSlot,{scope:n,children:(0,g.jsx)(ne,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});G.displayName=W;var K=`AccordionContent`,q=h.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=L(O,n),a=B(K,n),o=M(n);return(0,g.jsx)(re,{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}})});q.displayName=K;function J(e){return e?`open`:`closed`}var fe=N,pe=V,me=U,Y=G,X=q,he=fe,Z=h.forwardRef(({className:e,...t},n)=>(0,g.jsx)(pe,{ref:n,className:u(`border-b`,e),...t}));Z.displayName=`AccordionItem`;var Q=h.forwardRef(({className:t,children:n,...r},i)=>(0,g.jsx)(me,{className:`flex`,children:(0,g.jsxs)(Y,{ref:i,className:u(`flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180`,t),...r,children:[n,(0,g.jsx)(e,{className:`h-4 w-4 shrink-0 transition-transform duration-200`})]})}));Q.displayName=Y.displayName;var $=h.forwardRef(({className:e,children:t,...n},r)=>(0,g.jsx)(X,{ref:r,className:`overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`,...n,children:(0,g.jsx)(`div`,{className:u(`pb-4 pt-0`,e),children:t})}));$.displayName=X.displayName;export{Q as i,$ as n,Z as r,he as t};
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.