1import{r as a,j as e,L as x}from"./react-vendor-CFATMFaB.js";import{m as n,i as p,_ as f,a$ as g}from"./index-Ck6oKXjY.js";function j({faqs:o,className:c,disableAnimationOnChange:i=!1}){const[m,l]=a.useState(null),[u,d]=a.useState(!0);return a.useEffect(()=>{if(!i)return;l(null),d(!1);const r=requestAnimationFrame(()=>d(!0));return()=>cancelAnimationFrame(r)},[o,i]),e.jsx("div",{className:c,children:o.map((r,s)=>{const t=m===s;return e.jsxs("div",{className:"border-t border-border last:border-b",children:[e.jsxs("button",{className:n("w-full flex items-start gap-5 py-5 text-left group transition-colors",t?"text-foreground":"text-foreground/70 hover:text-foreground"),onClick:()=>l(t?null:s),"aria-expanded":t,children:[e.jsx("span",{className:"shrink-0 text-xs font-mono font-semibold tracking-widest mt-0.5 transition-colors",style:{color:t?"hsl(var(--signal))":"hsl(var(--muted-foreground-subtle))"},children:String(s+1).padStart(2,"0")}),e.jsx("span",{className:"flex-1 text-sm md:text-base font-medium leading-snug break-keep pr-4",children:r.q}),e.jsx("span",{className:n("shrink-0 mt-0.5 transition-all duration-200",t?"text-signal rotate-0":"text-muted-subtle rotate-0"),children:t?e.jsx(p,{className:"w-4 h-4"}):e.jsx(f,{className:"w-4 h-4"})})]}),e.jsx("div",{className:n("grid",u?"transition-all duration-300 ease-in-out":"transition-none",t?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:e.jsxs("div",{className:"overflow-hidden",children:[e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed pl-12 break-keep",children:r.a}),r.action&&t&&e.jsxs(x,{to:r.action.to,className:"ml-12 mt-3 inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-xs font-semibold text-foreground transition-colors hover:border-foreground hover:bg-muted",children:[r.action.label,e.jsx(g,{className:"h-3.5 w-3.5"})]}),e.jsx("div",{className:"pb-5"})]})})]},s)})})}export{j 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.