1class CustomCoordinationModalDialog extends HTMLElement{constructor(){super(),this.querySelector('[id^="ModalClose-"]').addEventListener("click",this.hide.bind(this,!1)),this.addEventListener("keyup",event=>{event.code.toUpperCase()==="ESCAPE"&&this.hide()}),this.classList.contains("media-modal")?this.addEventListener("pointerup",event=>{event.pointerType==="mouse"&&!event.target.closest("deferred-media, product-model")&&this.hide()}):this.addEventListener("click",event=>{event.target===this&&this.hide()})}connectedCallback(){this.moved||(this.moved=!0)}show(opener){this.openedBy=opener;const popup=this.querySelector(".template-popup");document.body.classList.add("custom-overflow-hidden"),this.setAttribute("open",""),popup&&popup.loadContent(),trapFocus(this,this.querySelector('[role="dialog"]'));const btnPosition=(100-this.querySelector('[role="dialog"]').clientHeight/this.clientHeight*100)/2;this.querySelector(".c-quick-view-modal__toggle").style.top="calc("+btnPosition+"% - 4.2rem)",this.querySelector(".c-quick-view-modal__toggle").classList.remove("hidden");const dialog=this.querySelector('[role="dialog"]'),dialogMaxHeight=dialog.clientHeight,dialogInnerHeight=60+dialog.querySelector(".product__info-header").clientHeight+16+156+66,description=dialog.querySelector(".product__description"),descriptionAllowHeight=dialogMaxHeight-dialogInnerHeight,descriptionAllowLine=Math.floor(descriptionAllowHeight/(13*1.6));window.matchMedia("(max-width: 749px)").matches?description.style["-webkit-line-clamp"]=descriptionAllowLine:description.removeAttribute("style")}hide(){document.body.classList.remove("custom-overflow-hidden"),document.body.dispatchEvent(new CustomEvent("modalClosed")),this.removeAttribute("open"),removeTrapFocus(this.openedBy);const description=this.querySelector('[role="dialog"] .product__description');description.hasAttribute("style")&&description.removeAttribute("style")}}customElements.define("c-quick-view-modal",CustomCoordinationModalDialog); 2//# sourceMappingURL=/cdn/shop/t/81/assets/custom-coordination.js.map?v=26562706841990534631689043682
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.