1const c=new Map;function a(n){const t=n.nextElementSibling;return t instanceof HTMLElement&&t.classList.contains("panel")?t:null}function l(n,t){const e=a(t),i=t.classList.contains("active");n.querySelectorAll("h3.active").forEach(s=>{if(s!==t){s.classList.remove("active");const o=a(s);o&&(o.style.maxHeight="")}}),t.classList.toggle("active"),e&&(e.style.maxHeight=i?"":`${e.scrollHeight}px`)}function f(n){const t=n.getAttribute("data-accordion-id")??"";if(!t){console.error("[next:faq-accordion] missing data-accordion-id on",n);return}if(c.has(t))return;const e=Array.from(n.querySelectorAll(":scope > div > h3")),i={root:n,listeners:[]};for(const s of e){const o=r=>{r.preventDefault(),l(n,s)};s.addEventListener("click",o),i.listeners.push({el:s,fn:o})}c.set(t,i)}function d(){for(const[n,t]of c){for(const{el:e,fn:i}of t.listeners)e.removeEventListener("click",i);c.delete(n)}}export{d as destroy,f as initialize};
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.