1if(typeof ToggleTab!="function"){class ToggleTab2 extends HTMLElement{constructor(){super(),this.titleEl=this.querySelector("[data-js-title]"),this.contentEl=this.querySelector("[data-js-content]"),this.titleEl.innerHTML=`${this.titleEl.innerHTML}${this.hasAttribute("data-togglepack-alternate")?KROWN.settings.symbols.toggle_pack_alternate:KROWN.settings.symbols.toggle_pack}`,this.titleEl.addEventListener("click",this.onClickHandler.bind(this)),this.titleEl.addEventListener("keydown",e=>{e.keyCode==window.KEYCODES.RETURN&&this.onClickHandler()})}onClickHandler(){this.classList.contains("opened")?(this.classList.remove("opened"),this.titleEl.setAttribute("aria-expanded","false"),this.slideUp(this.contentEl,200)):(this.classList.add("opened"),this.titleEl.setAttribute("aria-expanded","true"),this.slideDown(this.contentEl,200),setTimeout(()=>{this.contentEl.querySelector("css-slider")?.resetSlider()},200))}slideUp(target,duration){target.style.transitionProperty="height, margin, padding",target.style.transitionDuration=duration+"ms",target.style.boxSizing="border-box",target.style.height=target.offsetHeight+"px",target.offsetHeight,target.style.overflow="hidden",target.style.height=0,target.style.paddingTop=0,target.style.paddingBottom=0,target.style.marginTop=0,target.style.marginBottom=0,setTimeout(()=>{target.style.display="none",target.style.removeProperty("height"),target.style.removeProperty("padding-top"),target.style.removeProperty("padding-bottom"),target.style.removeProperty("margin-top"),target.style.removeProperty("margin-bottom"),target.style.removeProperty("overflow"),target.style.removeProperty("transition-duration"),target.style.removeProperty("transition-property")},duration)}slideDown(target,duration){target.style.removeProperty("display");var display=window.getComputedStyle(target).display;display==="none"&&(display="block"),target.style.display=display;var height=target.offsetHeight;target.style.overflow="hidden",target.style.height=0,target.style.paddingTop=0,target.style.paddingBottom=0,target.style.marginTop=0,target.style.marginBottom=0,target.offsetHeight,target.style.boxSizing="border-box",target.style.transitionProperty="height, margin, padding",target.style.transitionDuration=duration+"ms",target.style.height=height+"px",target.style.removeProperty("padding-top"),target.style.removeProperty("padding-bottom"),target.style.removeProperty("margin-top"),target.style.removeProperty("margin-bottom"),setTimeout(()=>{target.style.removeProperty("height"),target.style.removeProperty("overflow"),target.style.removeProperty("transition-duration"),target.style.removeProperty("transition-property")},duration)}}typeof customElements.get("toggle-tab")>"u"&&customElements.define("toggle-tab",ToggleTab2)}if(typeof ToggleGroup!="function"){class ToggleGroup2 extends HTMLElement{constructor(){super(),this.querySelectorAll("toggle-tab").forEach(allToggle=>{allToggle.querySelector("[data-js-title]").addEventListener("click",()=>{this.querySelectorAll("toggle-tab.opened").forEach(openedToggle=>{allToggle!==openedToggle&&openedToggle.onClickHandler()})})})}}typeof customElements.get("toggle-group")>"u"&&customElements.define("toggle-group",ToggleGroup2)} 2//# sourceMappingURL=/cdn/shop/t/104/assets/component-toggle.js.map?v=73494009530425977721745337696
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.