1import{b as l,g as u}from"./main-c2763d16.js";import"./preload-helper-a4192956.js";function f(n){const d=l(n,!0);d.trigger.forEach(e=>{e.addEventListener("click",s);const t=document.getElementById(e.getAttribute("aria-controls"));u.set(t,{height:0})}),d.tab.forEach(e=>e.addEventListener("click",c));let i=n.querySelector('.tab-button[aria-expanded="true"]'),o=n.querySelector('.trigger[aria-expanded="true"]');function s(e){const t=e.target,a=document.getElementById(t.getAttribute("aria-controls"));o&&document.getElementById(o.getAttribute("aria-controls"));const r=t.getAttribute("aria-expanded")==="true";t.setAttribute("aria-expanded",!r),a.setAttribute("aria-hidden",r),r?u.to(a,{height:0,duration:.5}):(u.to(a,{height:"auto",duration:.5}),setTimeout(()=>{window.lenis.scrollTo(t,{offset:window.lenisOffset})},550)),o=t}function c(e){const t=e.target;if(t.getAttribute("aria-expanded")!=="false")return;const a=document.getElementById(t.getAttribute("aria-controls"));if(i!==null){const r=document.getElementById(i.getAttribute("aria-controls"));i.setAttribute("aria-expanded","false"),r.setAttribute("aria-hidden","true")}t.setAttribute("aria-expanded","true"),a.setAttribute("aria-hidden","false"),i=t}}export{f as default};
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.