1(()=>{if(window.dynamicSizeGuideTablesInit)return;window.dynamicSizeGuideTablesInit=!0;const MODAL_SELECTOR='basic-modal[id*="PopupModal-dynamic-size-guide"]',promoteHeadings=modal=>{modal.querySelectorAll(".rte .table-heading").forEach(node=>{/^H[1-6]$/.test(node.tagName)||node.hasAttribute("role")||(node.setAttribute("role","heading"),node.setAttribute("aria-level","3"))})},tableLabel=(table,modal)=>{let node=table.previousElementSibling;for(;node;){const headingSelector="h1, h2, h3, h4, h5, h6, .table-heading",heading=node.matches(headingSelector)?node:node.querySelector(headingSelector);if(heading)return heading.textContent.trim();node=node.previousElementSibling}return modal.querySelector(".drawer__body h2")?.textContent.trim()||"Size guide"},updateTables=modal=>{modal.querySelectorAll(".rte table").forEach(table=>{table.scrollWidth>table.clientWidth?(table.setAttribute("tabindex","0"),table.setAttribute("role","region"),table.setAttribute("aria-label",tableLabel(table,modal))):(table.removeAttribute("tabindex"),table.removeAttribute("role"),table.removeAttribute("aria-label"))})};document.addEventListener("modal:handleAfterShow",event=>{const modal=event.target.closest?.(MODAL_SELECTOR);modal&&(promoteHeadings(modal),updateTables(modal))}),document.querySelectorAll(MODAL_SELECTOR).forEach(promoteHeadings);let resizeTimer;window.addEventListener("resize",()=>{clearTimeout(resizeTimer),resizeTimer=setTimeout(()=>{document.querySelectorAll(`${MODAL_SELECTOR}[open]`).forEach(updateTables)},150)})})(); 2//# sourceMappingURL=/cdn/shop/t/1072/assets/dynamic-size-guide.js.map?v=17309474000014335331789034706
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.