vendor: 4,973 bytes, line 1
1import{c as xe,r as l,j as c,v as Ce,w as k,x as f,y as j,z as V,A as _,D as B,E as z,I as ve,J as be,K as L,N as ge}from"./index-BCW6nnV8.js";import{S as he}from"./CategoryGrid-zyq-zENP.js";const Ae=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ye=xe("chevron-down",Ae);function W(e){const t=Re(e),o=l.forwardRef((n,r)=>{const{children:s,...a}=n,i=l.Children.toArray(s),p=i.find(Ne);if(p){const u=p.props.children,x=i.map(C=>C===p?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:C);return c.jsx(t,{...a,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,x):null})}return c.jsx(t,{...a,ref:r,children:s})});return o.displayName=`${e}.Slot`,o}function Re(e){const t=l.forwardRef((o,n)=>{const{children:r,...s}=o;if(l.isValidElement(r)){const a=_e(r),i=we(s,r.props);return r.type!==l.Fragment&&(i.ref=n?Ce(n,a):a),l.cloneElement(r,i)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ie=Symbol("radix.slottable");function Ne(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ie}function we(e,t){const o={...t};for(const n in t){const r=e[n],s=t[n];/^on[A-Z]/.test(n)?r&&s?o[n]=(...i)=>{const p=s(...i);return r(...i),p}:r&&(o[n]=r):n==="style"?o[n]={...r,...s}:n==="className"&&(o[n]=[r,s].filter(Boolean).join(" "))}return{...e,...o}}function _e(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function je(e){const t=e+"CollectionProvider",[o,n]=k(t),[r,s]=o(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:m,children:g}=v,d=f.useRef(null),b=f.useRef(new Map).current;return c.jsx(r,{scope:m,itemMap:b,collectionRef:d,children:g})};a.displayName=t;const i=e+"CollectionSlot",p=W(i),u=f.forwardRef((v,m)=>{const{scope:g,children:d}=v,b=s(i,g),h=j(m,b.collectionRef);return c.jsx(p,{ref:h,children:d})});u.displayName=i;const x=e+"CollectionItemSlot",C="data-radix-collection-item",R=W(x),y=f.forwardRef((v,m)=>{const{scope:g,children:d,...b}=v,h=f.useRef(null),w=j(m,h),I=s(x,g);return f.useEffect(()=>(I.itemMap.set(h,{ref:h,...b}),()=>{I.itemMap.delete(h)})),c.jsx(R,{[C]:"",ref:w,children:d})});y.displayName=x;function N(v){const m=s(e+"CollectionConsumer",v);return f.useCallback(()=>{const d=m.collectionRef.current;if(!d)return[];const b=Array.from(d.querySelectorAll(`[${C}]`));return Array.from(m.itemMap.values()).sort((I,T)=>b.indexOf(I.ref.current)-b.indexOf(T.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:a,Slot:u,ItemSlot:y},N,n]}var P="Collapsible",[Ee,Q]=k(P),[Pe,$]=Ee(P),U=l.forwardRef((e,t)=>{const{__scopeCollapsible:o,open:n,defaultOpen:r,disabled:s,onOpenChange:a,...i}=e,[p,u]=V({prop:n,defaultProp:r??!1,onChange:a,caller:P});return c.jsx(Pe,{scope:o,disabled:s,contentId:B(),open:p,onOpenToggle:l.useCallback(()=>u(x=>!x),[u]),children:c.jsx(_.div,{"data-state":F(p),"data-disabled":s?"":void 0,...i,ref:t})})});U.displayName=P;var J="CollapsibleTrigger",Y=l.forwardRef((e,t)=>{const{__scopeCollapsible:o,...n}=e,r=$(J,o);return c.jsx(_.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":F(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:t,onClick:z(e.onClick,r.onOpenToggle)})});Y.displayName=J;var H="CollapsibleContent",Z=l.forwardRef((e,t)=>{const{forceMount:o,...n}=e,r=$(H,e.__scopeCollapsible);return c.jsx(ve,{present:o||r.open,children:({present:s})=>c.jsx(Se,{...n,ref:t,present:s})})});Z.displayName=H;var Se=l.forwardRef((e,t)=>{const{__scopeCollapsible:o,present:n,children:r,...s}=e,a=$(H,o),[i,p]=l.useState(n),u=l.useRef(null),x=j(t,u),C=l.useRef(0),R=C.current,y=l.useRef(0),N=y.current,v=a.open||i,m=l.useRef(v),g=l.useRef(void 0);return l.useEffect(()=>{const d=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(d)},[]),be(()=>{const d=u.current;if(d){g.current=g.current||{transitionDuration:d.style.transitionDuration,animationName:d.style.animationName},d.style.transitionDuration="0s",d.style.animationName="none";const b=d.getBoundingClientRect();C.current=b.height,y.current=b.width,m.current||(d.style.transitionDuration=g.current.transitionDuration,d.style.animationName=g.current.animationName),p(n)}},[a.open,n]),c.jsx(_.div,{"data-state":F(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...s,ref:x,style:{"--radix-collapsible-content-height":R?`${R}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:v&&r})});function F(e){return e?"open":"closed"}var Oe=U,Te=Y,Me=Z,De=l.createContext(void 0);function ke(e){const t=l.useContext(De);return e||t||"ltr"}var A="Accordion",Ve=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[q,Le,$e]=je(A),[S]=k(A,[$e,Q]),G=Q(),X=f.forwardRef((e,t)=>
1{const{type:o,...n}=e,r=n,s=n;return c.jsx(q.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?c.jsx(Ge,{...s,ref:t}):c.jsx(qe,{...r,ref:t})})});X.displayName=A;var[ee,He]=S(A),[oe,Fe]=S(A,{collapsible:!1}),qe=f.forwardRef((e,t)=>{const{value:o,defaultValue:n,onValueChange:r=()=>{},collapsible:s=!1,...a}=e,[i,p]=V({prop:o,defaultProp:n??"",onChange:r,caller:A});return c.jsx(ee,{scope:e.__scopeAccordion,value:f.useMemo(()=>i?[i]:[],[i]),onItemOpen:p,onItemClose:f.useCallback(()=>s&&p(""),[s,p]),children:c.jsx(oe,{scope:e.__scopeAccordion,collapsible:s,children:c.jsx(te,{...a,ref:t})})})}),Ge=f.forwardRef((e,t)=>{const{value:o,defaultValue:n,onValueChange:r=()=>{},...s}=e,[a,i]=V({prop:o,defaultProp:n??[],onChange:r,caller:A}),p=f.useCallback(x=>i((C=[])=>[...C,x]),[i]),u=f.useCallback(x=>i((C=[])=>C.filter(R=>R!==x)),[i]);return c.jsx(ee,{scope:e.__scopeAccordion,value:a,onItemOpen:p,onItemClose:u,children:c.jsx(oe,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(te,{...s,ref:t})})})}),[Ke,O]=S(A),te=f.forwardRef((e,t)=>{const{__scopeAccordion:o,disabled:n,dir:r,orientation:s="vertical",...a}=e,i=f.useRef(null),p=j(i,t),u=Le(o),C=ke(r)==="ltr",R=z(e.onKeyDown,y=>{if(!Ve.includes(y.key))return;const N=y.target,v=u().filter(M=>!M.ref.current?.disabled),m=v.findIndex(M=>M.ref.current===N),g=v.length;if(m===-1)return;y.preventDefault();let d=m;const b=0,h=g-1,w=()=>{d=m+1,d>h&&(d=b)},I=()=>{d=m-1,d<b&&(d=h)};switch(y.key){case"Home":d=b;break;case"End":d=h;break;case"ArrowRight":s==="horizontal"&&(C?w():I());break;case"ArrowDown":s==="vertical"&&w();break;case"ArrowLeft":s==="horizontal"&&(C?I():w());break;case"ArrowUp":s==="vertical"&&I();break}const T=d%g;v[T].ref.current?.focus()});return c.jsx(Ke,{scope:o,disabled:n,direction:r,orientation:s,children:c.jsx(q.Slot,{scope:o,children:c.jsx(_.div,{...a,"data-orientation":s,ref:p,onKeyDown:n?void 0:R})})})}),E="AccordionItem",[We,K]=S(E),ne=f.forwardRef((e,t)=>{const{__scopeAccordion:o,value:n,...r}=e,s=O(E,o),a=He(E,o),i=G(o),p=B(),u=n&&a.value.includes(n)||!1,x=s.disabled||e.disabled;return c.jsx(We,{scope:o,open:u,disabled:x,triggerId:p,children:c.jsx(Oe,{"data-orientation":s.orientation,"data-state":le(u),...i,...r,ref:t,disabled:x,open:u,onOpenChange:C=>{C?a.onItemOpen(n):a.onItemClose(n)}})})});ne.displayName=E;var re="AccordionHeader",se=f.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=O(A,o),s=K(re,o);return c.jsx(_.h3,{"data-orientation":r.orientation,"data-state":le(s.open),"data-disabled":s.disabled?"":void 0,...n,ref:t})});se.displayName=re;var D="AccordionTrigger",ce=f.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=O(A,o),s=K(D,o),a=Fe(D,o),i=G(o);return c.jsx(q.ItemSlot,{scope:o,children:c.jsx(Te,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...i,...n,ref:t})})});ce.displayName=D;var ae="AccordionContent",ie=f.forwardRef((e,t)=>{const{__scopeAccordion:o,...n}=e,r=O(A,o),s=K(ae,o),a=G(o);return c.jsx(Me,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});ie.displayName=ae;function le(e){return e?"open":"closed"}var Be=X,ze=ne,Qe=se,de=ce,pe=ie;const Ue=Be,ue=l.forwardRef(({className:e,...t},o)=>c.jsx(ze,{ref:o,className:L("border-b",e),...t}));ue.displayName="AccordionItem";const fe=l.forwardRef(({className:e,children:t,...o},n)=>c.jsx(Qe,{className:"flex",children:c.jsxs(de,{ref:n,className:L("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),...o,children:[t,c.jsx(ye,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));fe.displayName=de.displayName;const me=l.forwardRef(({className:e,children:t,...o},n)=>c.jsx(pe,{ref:n,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:c.jsx("div",{className:L("pb-4 pt-0",e),children:t})}));me.displayName=pe.displayName;function Ze(){return c.jsx("section",{className:"bg-surface/50 border-y border-border",children:c.jsxs("div",{className:"mx-auto max-w-3xl px-4 md:px-6 py-16 md:py-24",children:[c.jsx(he,{eyebrow:"Got Questions?",title:"Frequently Asked"}),c.jsx(Ue,{type:"single",collapsible:!0,className:"mt-10 space-y-3",children:ge.map((e,t)=>c.jsxs(ue,{value:`item-${t}`,className:"rounded-xl border border-border bg-background px-5 !border-b",children:[c.jsx(fe,{className:"text-left font-display text-base font-bold uppercase tracking-wide hover:no-underline hover:text-brand",children:e.q}),c.jsx(me,{className:"text-sm text-muted-foreground leading-relaxed",children:e.a})]},t))})]})})}export{Ze as F};
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.