1class Collapsible extends HTMLElement{static formAssociated=!0;constructor(){super()}connectedCallback(){this.transitionDuration=this.getAttribute("transition-duration")||300,this.content=this.querySelector("collapsible-content"),this.label=this.querySelector("collapsible-label"),this.isOpen()&&(this.content.style.position="static",this.style.height="auto",requestAnimationFrame(()=>{this.setHeight()})),this.label.addEventListener("click",e=>{this.toggle()})}isOpen(){return this.hasAttribute("open")}setInitialHeight(){const labelHeight=this.label.getBoundingClientRect().height;this.style.height=labelHeight+"px"}setHeight(){const contentHeight=this.content.getBoundingClientRect().height,labelHeight=this.label.getBoundingClientRect().height;this.style.height=contentHeight+labelHeight+"px"}open(){this.setAttribute("open",!0),this.setInitialHeight(),this.setHeight(),setTimeout(()=>{this.content.style.position="static",this.style.height="auto",this.dispatchEvent(new CustomEvent("collapsible:opened")),window.isFlutterInAppWebViewReady&&window.flutter_inappwebview&&window.flutter_inappwebview.callHandler("StikkyHeight",document.body.scrollHeight)},this.transitionDuration)}close(){this.removeAttribute("open"),this.setHeight(),window.requestAnimationFrame(()=>{this.content.style.position="",this.setInitialHeight(),this.dispatchEvent(new CustomEvent("collapsible:closed")),window.isFlutterInAppWebViewReady&&window.flutter_inappwebview&&window.flutter_inappwebview.callHandler("StikkyHeight",document.body.scrollHeight)})}toggle(){this.isOpen()?this.close():this.open()}}customElements.define("collapsible-outer",Collapsible),customElements.define("collapsible-content",class extends HTMLElement{}),customElements.define("collapsible-label",class extends HTMLElement{}); 2//# sourceMappingURL=/cdn/shop/t/676/assets/collapsible-component.js.map?v=33480513915374150611736938647
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.