PageSourceSearch

https://amadeni.ai/assets/accordion-CfIQNnZO.js

js amadeni.ai collected 2026-10-05 14:20:05 UTC 22,764 bytes, 1 lines download raw bytes

1import{dt as e,k as t,mt as n,z as r}from"./react-Ba1Nq24e.js";import{r as i}from"./case-studies-q03eILeZ.js";import{d as a,l as o,u as s}from"./index-DnuXTw21.js";var c=t(`building-2`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),l=t(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),u=t(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),d=n(e(),1),f=r(),p=Object.defineProperty,m=(e,t)=>p(e,`name`,{value:t,configurable:!0});function h(e,t){let n=d.createContext(t);n.displayName=e+`Context`;let r=m(e=>{let{children:t,...r}=e,i=d.useMemo(()=>r,Object.values(r));return(0,f.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=d.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return m(i,`useContext`),[r,i]}m(h,`createContext`);function g(e,t=[]){let n=[];function r(t,r){let i=d.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=m(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=d.useMemo(()=>o,Object.values(o));return(0,f.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=d.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return m(s,`useContext`),[o,s]}m(r,`createContext`);let i=m(()=>{let t=n.map(e=>d.createContext(e));return m(function(n){let r=n?.[e]||t;return d.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,_(i,...t)]}m(g,`createContextScope`);function _(...e){let t=e[0];if(e.length===1)return t;let n=m(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return m(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}m(_,`composeContextScopes`);var v=Object.defineProperty,y=(e,t)=>v(e,`name`,{value:t,configurable:!0});function b(e){let t=e+`CollectionProvider`,[n,r]=g(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=y(e=>{let{scope:t,children:n}=e,r=d.useRef(null),a=d.useRef(new Map).current;return(0,f.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);c.displayName=t;let l=e+`CollectionSlot`,u=s(l),p=d.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(l,n),s=a(t,i.collectionRef);return(0,f.jsx)(u,{ref:s,children:r})});p.displayName=l;let m=e+`CollectionItemSlot`,h=`data-radix-collection-item`,_=s(m),v=d.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,s=d.useRef(null),c=a(t,s),l=o(m,n);return d.useEffect(()=>(l.itemMap.set(s,{ref:s,...i}),()=>void l.itemMap.delete(s))),(0,f.jsx)(_,{[h]:``,ref:c,children:r})});v.displayName=m;function b(t){let n=o(e+`CollectionConsumer`,t);return d.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return y(b,`useCollection`),[{Provider:c,Slot:p,ItemSlot:v},b,r]}y(b,`createCollection`);var x=new WeakMap,S=class e extends Map{static{y(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],x.set(this,!0)}set(e,t){return x.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=w(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=C(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=C(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return C(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function C(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=ee(e,t);return n===-1?void 0:e[n]}y(C,`at`);function ee(e,t){let n=e.length,r=w(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}y(ee,`toSafeIndex`);function w(e){return e!==e||e===0?0:Math.trunc(e)}y(w,`toSafeInteger`);function te(e){let t=e+`CollectionProvider`,[n,r]=g(t),[i,o]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new S,setItemMap:y(()=>void 0,`setItemMap`)}),c=y(({state:e,...t})=>e?(0,f.jsx)(u,{...t,state:e}):(0,f.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=y(e=>{let t=x();return(0,f.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=t+`Init`;let u=y(e=>{let{scope:t,children:n,state:r}=e,o=d.useRef(null),[s,c]=d.useState(null),l=a(o,c),[u,p]=r;return d.useEffect(()=>{if(!s)return;let e=ie(()=>{});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s]),(0,f.jsx)(i,{scope:t,itemMap:u,setItemMap:p,collectionRef:l,collectionRefObject:o,collectionElement:s,children:n})},`CollectionProviderImpl`);u.displayName=t+`Impl`;let p=e+`CollectionSlot`,m=s(p),h=d.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(p,n),s=a(t,i.collectionRef);return(0,f.jsx)(m,{ref:s,children:r})});h.displayName=p;let _=e+`CollectionItemSlot`,v=s(_),b=d.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,s=d.useRef(null),[c,l]=d.useState(null),u=a(t,s,l),{setItemMap:p}=o(_,n),m=d.useRef(i);ne(m.current,i)||(m.current=i);let h=m.current;return d.useEffect(()=>{let e=h;return p(t=>c?t.has(c)?t.set(c,{...e,element:c}).toSorted(T):(t.set(c,{...e,element:c}),t.toSorted(T)):t),()=>{p(e=>!c||!e.has(c)?e:(e.delete(c),new S(e)))}},[c,h,p]),(0,f.jsx)(v,{"data-radix-collection-item":``,ref:u,children:r})});b.displayName=_;function x(){return d.useState(new S)}y(x,`useInitCollection`);function C(t){let{itemMap:n}=o(e+`CollectionConsumer`,t);return n}return y(C,`useCollection`),[{Provider:c,Slot:h,ItemSlot:b},{createCollectionScope:r,useCollection:C,useInitCollection:x}]}y(te,`createCollection`);function ne(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}y(ne,`shallowEqual`);function re(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}y(re,`isElementPreceding`);function T(e,t){return!e[1].element||!t[1].element?0:re(e[1].element,t[1].element)?-1:1}y(T,`sortByDocumentPosition`);function ie(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}y(ie,`getChildListObserver`);var ae=Object.defineProperty,E=(e,t)=>ae(e,`name`,{value:t,configurable:!0}),D=!!(typeof window<`u`&&window.document&&window.document.createElement);function O(e,t,{checkForDefaultPrevented:n=!0}={}){return E(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}E(O,`composeEventHandlers`);function oe(e){if(!D)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}E(oe,`getOwnerWindow`);function k(e){if(!D)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}E(k,`getOwnerDocument`);function se(e,t=!1){let{activeElement:n}=k(e);if(!n?.nodeName)return null;if(ce(n)&&n.contentDocument)return se(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=k(n).getElementById(e);if(t)return t}}return n}E(se,`getActiveElement`);function ce(e){return e.tagName===`IFRAME`}E(ce,`isFrame`);var A=globalThis?.document?d.useLayoutEffect:()=>{},le=Object.defineProperty,ue=(e,t)=>
1le(e,`name`,{value:t,configurable:!0}),de=d.useEffectEvent,fe=d.useInsertionEffect;function pe(e){if(typeof de==`function`)return de(e);let t=d.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof fe==`function`?fe(()=>{t.current=e}):A(()=>{t.current=e}),d.useMemo(()=>((...e)=>t.current?.(...e)),[])}ue(pe,`useEffectEvent`);var me=Object.defineProperty,j=(e,t)=>me(e,`name`,{value:t,configurable:!0}),he=d.useInsertionEffect||A;function M({prop:e,defaultProp:t,onChange:n=j(()=>{},`onChange`),caller:r}){let[i,a,o]=ge({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,d.useCallback(t=>{if(s){let n=N(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}j(M,`useControllableState`);function ge({defaultProp:e,onChange:t}){let[n,r]=d.useState(e),i=d.useRef(n),a=d.useRef(t);return he(()=>{a.current=t},[t]),d.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}j(ge,`useUncontrolledState`);function N(e){return typeof e==`function`}j(N,`isFunction`);var _e=Symbol(`RADIX:SYNC_STATE`);function ve(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=pe(o),u=[{...n,state:a}];r&&u.push(r);let[f,p]=d.useReducer((t,n)=>{if(n.type===_e)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),m=f.state,h=d.useRef(m);d.useEffect(()=>{h.current!==m&&(h.current=m,c||l(m))},[m,h,c]);let g=d.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return d.useEffect(()=>{c&&!Object.is(i,f.state)&&p({type:_e,state:i})},[i,f.state,c]),[g,p]}j(ve,`useControllableStateReducer`);var ye=n(i(),1),be=Object.defineProperty,xe=(e,t)=>be(e,`name`,{value:t,configurable:!0}),P=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=s(`Primitive.${t}`),r=d.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,f.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Se(e,t){e&&ye.flushSync(()=>e.dispatchEvent(t))}xe(Se,`dispatchDiscreteCustomEvent`);var Ce=Object.defineProperty,F=(e,t)=>Ce(e,`name`,{value:t,configurable:!0});function I(e,t){return d.useReducer((e,n)=>t[e][n]??e,e)}F(I,`useStateMachine`);var we=F(e=>{let{present:t,children:n}=e,r=Te(t),i=typeof n==`function`?n({present:r.isPresent}):d.Children.only(n),a=R(r.ref,Ee(i));return typeof n==`function`||r.isPresent?d.cloneElement(i,{ref:a}):null},`Presence`);function Te(e){let[t,n]=d.useState(),r=d.useRef(null),i=d.useRef(e),a=d.useRef(`none`),o=d.useRef(void 0),[s,c]=I(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return d.useEffect(()=>{s===`mounted`?(a.current=o.current??z(r.current),o.current=void 0):a.current=`none`},[s]),A(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=z(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),A(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=F(a=>{let o=z(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=F(e=>{e.target===t&&(a.current=z(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:d.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=z(t)}else r.current=null;n(e)},[])}}F(Te,`usePresence`);function L(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}F(L,`setRef`);function R(...e){let t=d.useRef(e);return t.current=e,d.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=L(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():L(n[e],null)}}},[])}F(R,`useStableComposedRefs`);function z(e){return e?.animationName||`none`}F(z,`getAnimationName`);function Ee(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}F(Ee,`getElementRef`);var De=Object.defineProperty,Oe=(e,t)=>
1De(e,`name`,{value:t,configurable:!0}),ke=d.useId||(()=>void 0),Ae=0;function B(e){let[t,n]=d.useState(ke());return A(()=>{e||n(e=>e??String(Ae++))},[e]),e||(t?`radix-${t}`:``)}Oe(B,`useId`);var je=Object.defineProperty,V=(e,t)=>je(e,`name`,{value:t,configurable:!0}),H=`Collapsible`,[Me,Ne]=g(H),[Pe,U]=Me(H),Fe=d.forwardRef(V(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=M({prop:r,defaultProp:i??!1,onChange:o,caller:H});return(0,f.jsx)(Pe,{scope:n,disabled:a,contentId:B(),open:c,onOpenToggle:d.useCallback(()=>l(e=>!e),[l]),children:(0,f.jsx)(P.div,{"data-state":W(c),"data-disabled":a?``:void 0,...s,ref:t})})},`Collapsible`)),Ie=`CollapsibleTrigger`,Le=d.forwardRef(V(function(e,t){let{__scopeCollapsible:n,...r}=e,i=U(Ie,n);return(0,f.jsx)(P.button,{type:`button`,"aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":W(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:O(e.onClick,i.onOpenToggle)})},`CollapsibleTrigger`)),Re=`CollapsibleContent`,ze=d.forwardRef(V(function(e,t){let{forceMount:n,...r}=e,i=U(Re,e.__scopeCollapsible);return(0,f.jsx)(we,{present:n||i.open,children:({present:e})=>(0,f.jsx)(Be,{...r,ref:t,present:e})})},`CollapsibleContent`)),Be=d.forwardRef(V(function(e,t){let{__scopeCollapsible:n,present:r,children:i,...o}=e,s=U(Re,n),[c,l]=d.useState(r),u=d.useRef(null),p=a(t,u),m=d.useRef(0),h=m.current,g=d.useRef(0),_=g.current,v=s.open||c,y=d.useRef(v),b=d.useRef(void 0);return d.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),A(()=>{let e=u.current;if(e){b.current=b.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,g.current=t.width,y.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),l(r)}},[s.open,r]),(0,f.jsx)(P.div,{"data-state":W(s.open),"data-disabled":s.disabled?``:void 0,id:s.contentId,hidden:!v,...o,ref:p,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...e.style},children:v&&i})},`CollapsibleContentImpl`));function W(e){return e?`open`:`closed`}V(W,`getState`);var Ve=Fe,He=Le,Ue=ze,We=Object.defineProperty,Ge=(e,t)=>We(e,`name`,{value:t,configurable:!0}),Ke=d.createContext(void 0);function qe(e){let t=d.useContext(Ke);return e||t||`ltr`}Ge(qe,`useDirection`);var Je=Object.defineProperty,G=(e,t)=>Je(e,`name`,{value:t,configurable:!0}),K=`Accordion`,Ye=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[q,Xe,Ze]=b(K),[J,Qe]=g(K,[Ze,Ne]),Y=Ne(),$e=d.forwardRef(G(function(e,t){let{type:n,...r}=e,i=r,a=r;return(0,f.jsx)(q.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,f.jsx)(at,{...a,ref:t}):(0,f.jsx)(it,{...i,ref:t})})},`Accordion`)),[et,tt]=J(K),[nt,rt]=J(K,{collapsible:!1}),it=d.forwardRef(G(function(e,t){let{value:n,defaultValue:r,onValueChange:i=G(()=>{},`onValueChange`),collapsible:a=!1,...o}=e,[s,c]=M({prop:n,defaultProp:r??``,onChange:i,caller:K});return(0,f.jsx)(et,{scope:e.__scopeAccordion,value:d.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:d.useCallback(()=>a&&c(``),[a,c]),children:(0,f.jsx)(nt,{scope:e.__scopeAccordion,collapsible:a,children:(0,f.jsx)(st,{...o,ref:t})})})},`AccordionImplSingle`)),at=d.forwardRef(G(function(e,t){let{value:n,defaultValue:r,onValueChange:i=G(()=>{},`onValueChange`),...a}=e,[o,s]=M({prop:n,defaultProp:r??[],onChange:i,caller:K}),c=d.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=d.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,f.jsx)(et,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,f.jsx)(nt,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(st,{...a,ref:t})})})},`AccordionImplMultiple`)),[ot,X]=J(K),st=d.forwardRef(G(function(e,t){let{__scopeAccordion:n,disabled:r,dir:i,orientation:o=`vertical`,...s}=e,c=d.useRef(null),l=a(c,t),u=Xe(n),p=qe(i)===`ltr`,m=O(e.onKeyDown,e=>
1{if(!Ye.includes(e.key))return;let t=e.target,n=u().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=G(()=>{a=r+1,a>s&&(a=0)},`moveNext`),l=G(()=>{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,f.jsx)(ot,{scope:n,disabled:r,direction:i,orientation:o,children:(0,f.jsx)(q.Slot,{scope:n,children:(0,f.jsx)(P.div,{...s,"data-orientation":o,ref:l,onKeyDown:r?void 0:m})})})},`AccordionImpl`)),Z=`AccordionItem`,[ct,Q]=J(Z),lt=d.forwardRef(G(function(e,t){let{__scopeAccordion:n,value:r,...i}=e,a=X(Z,n),o=tt(Z,n),s=Y(n),c=B(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,f.jsx)(ct,{scope:n,open:l,disabled:u,triggerId:c,children:(0,f.jsx)(Ve,{"data-orientation":a.orientation,"data-state":$(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})},`AccordionItem`)),ut=`AccordionHeader`,dt=d.forwardRef(G(function(e,t){let{__scopeAccordion:n,...r}=e,i=X(K,n),a=Q(ut,n);return(0,f.jsx)(P.h3,{"data-orientation":i.orientation,"data-state":$(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})},`AccordionHeader`)),ft=`AccordionTrigger`,pt=d.forwardRef(G(function(e,t){let{__scopeAccordion:n,...r}=e,i=X(K,n),a=Q(ft,n),o=rt(ft,n),s=Y(n);return(0,f.jsx)(q.ItemSlot,{scope:n,children:(0,f.jsx)(He,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})},`AccordionTrigger`)),mt=`AccordionContent`,ht=d.forwardRef(G(function(e,t){let{__scopeAccordion:n,...r}=e,i=X(K,n),a=Q(mt,n),o=Y(n);return(0,f.jsx)(Ue,{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`}G($,`getState`);var gt=$e,_t=lt,vt=dt,yt=pt,bt=ht;function xt({...e}){return(0,f.jsx)(gt,{"data-slot":`accordion`,...e})}function St({className:e,...t}){return(0,f.jsx)(_t,{"data-slot":`accordion-item`,className:o(`border-b last:border-b-0`,e),...t})}function Ct({className:e,children:t,...n}){return(0,f.jsx)(vt,{className:`flex`,children:(0,f.jsxs)(yt,{"data-slot":`accordion-trigger`,className:o(`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-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50`,e),...n,children:[t,(0,f.jsx)(u,{className:`text-muted-foreground pointer-events-none size-5 shrink-0 translate-y-0.5 transition-transform duration-200 [[data-state=open]>&]:hidden`}),(0,f.jsx)(l,{className:`text-muted-foreground pointer-events-none hidden size-5 shrink-0 translate-y-0.5 transition-transform duration-200 [[data-state=open]>&]:block`})]})})}function wt({className:e,children:t,...n}){return(0,f.jsx)(bt,{"data-slot":`accordion-content`,className:`data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm`,...n,children:(0,f.jsx)(`div`,{className:o(`pt-0 pb-4`,e),children:t})})}export{c as a,Ct as i,wt as n,St as r,xt 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.