1!function(i,t){"function"==typeof define&&define.amd?define(["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),i.Accordion=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;class n{constructor(i){this.el=i,this.summary=i.querySelector("summary"),this.content=i.querySelector(".accordion-content"),this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.summary.addEventListener("click",i=>this.onClick(i)),this.duration=window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:400}onClick(i){i&&i.preventDefault(),this.startAnimation()}startAnimation(){var i=new Event("accordion.start-animation");this.el.dispatchEvent(i),this.el.style.overflow="hidden",this.isClosing||!this.el.open?this.open():(this.isExpanding||this.el.open)&&this.shrink()}shrink(){this.isClosing=!0,this.el.classList.add("closing");var i=this.el.offsetHeight+"px",t=getComputedStyle(this.el);t=this.summary.offsetHeight+parseFloat(t.paddingBottom||0)+"px";this.animation&&this.animation.cancel(),this.el.animate?(this.animation=this.el.animate({height:[i,t]},{duration:this.duration,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!1),this.animation.oncancel=()=>this.isClosing=!1):this.onAnimationFinish(!1)}open(){this.el.style.height=this.el.offsetHeight+"px",this.el.open=!0,window.requestAnimationFrame(()=>this.expand())}expand(){this.isExpanding=!0,this.el.classList.add("opening");var i=this.el.offsetHeight+"px",t=getComputedStyle(this.el);t=this.summary.offsetHeight+parseFloat(t.paddingBottom||0)+this.content.offsetHeight+"px";this.animation&&this.animation.cancel(),this.el.animate?(this.animation=this.el.animate({height:[i,t]},{duration:this.duration,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!0),this.animation.oncancel=()=>this.isExpanding=!1):this.onAnimationFinish(!0)}onAnimationFinish(i){this.el.open=i,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.el.style.height=this.el.style.overflow="",this.el.classList.remove("opening","closing");let t=null;t=i?(this.content.focus(),this.el.getBoundingClientRect().top>=window.themeVars.headerHeight||this.el.scrollIntoView(),new Event("accordion.open")):new Event("accordion.close"),this.el.dispatchEvent(t)}}document.querySelectorAll(".faq-section").forEach(i=>{i=i.querySelectorAll(".faq-question");let e=[];i.forEach(i=>{let t=new n(i,()=>{t.el.open&&e.filter(i=>i!==t&&i.el.open).forEach(i=>i.startAnimation())});i.addEventListener("accordion.start-open",()=>{t.el.open&&e.filter(i=>i!==t&&i.el.open).forEach(i=>i.startAnimation())}),e.push(t)})}),i.default=n}); 2//# sourceURL=https://24970030.fs1.hubspotusercontent-eu1.net/hubfs/24970030/hub_generated/template_assets/1/278480881870/1790775907227/template_Accordion.js
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.