1class FAQs extends HTMLElement{constructor(){super(),this.filter=document.getElementById("haloFAQsFilter"),this.faqsPopup=document.getElementById("halo-faqs-popup"),this.filter&&(this.filterToggle=this.filter.querySelector("[data-faqs-filter]"),this.filterDropdown=this.filter.querySelector(".faqs-filterDropdown-menu"),this.filterDropdownArrow=this.filterToggle.querySelector("[data-dropdown-arrow]"),this.filterToggle&&this.filterToggle.addEventListener("click",this.onClickFilterHandler.bind(this)),this.filterDropdown.querySelector(".text")&&this.filterDropdown.querySelectorAll(".text").forEach(filterButton=>{filterButton.addEventListener("click",this.onClickFilterButtonHandler.bind(this))})),this.querySelector(".faqs")&&this.querySelectorAll(".card-header").forEach(headerButton=>{headerButton.addEventListener("click",this.onClickHeaderButtonHandler.bind(this))}),document.body.classList.contains("template-index")||document.body.addEventListener("click",this.onBodyClickEvent.bind(this))}onClickFilterHandler(){this.filterDropdown.classList.contains("is-show")?(this.filterDropdown.classList.remove("is-show"),this.filterDropdownArrow.classList.remove("active")):(this.filterDropdown.classList.add("is-show"),this.filterDropdownArrow.classList.add("active"))}onClickFilterButtonHandler(event){var btn=event.target.closest("li");if(!btn.classList.contains("is-active")){var filterValue=btn.getAttribute("data-value"),filterText=event.target.innerText;this.filterToggle.querySelector(".text").innerText=filterText,this.filterDropdown.querySelectorAll("li").forEach(element=>{element.classList.remove("is-active")}),btn.classList.add("is-active"),filterValue!=null?this.querySelectorAll(".faqs-paragraph").forEach(element=>{var id=element.getAttribute("id");id==filterValue?(element.classList.remove("is-hidden"),element.classList.add("is-active")):(element.classList.remove("is-active"),element.classList.add("is-hidden"))}):this.querySelectorAll(".faqs-paragraph").forEach(element=>{element.classList.remove("is-hidden","is-active")}),this.filterDropdown.classList.remove("is-show"),this.filterDropdownArrow.classList.remove("active")}}onClickHeaderButtonHandler(event){const btn=event.currentTarget,content=btn.nextElementSibling;btn.classList.toggle("collapsed"),content.style.maxHeight?content.style.maxHeight=null:content.style.maxHeight=content.scrollHeight+"px"}onBodyClickEvent(event){event.target.closest("[data-faqs-filter]")==null&&this.filterDropdown.classList.contains("is-show")&&(this.filterDropdown.classList.remove("is-show"),this.filterDropdownArrow.classList.remove("active"))}}customElements.define("faqs-item",FAQs); 2//# sourceMappingURL=/cdn/shop/t/91/assets/halo-faqs.js.map?v=57547081618209347951764564498
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.