1document.addEventListener("DOMContentLoaded",function(){let lastFocusedElement=null;document.addEventListener("click",function(e){if(e.target.closest(".trigger-lot_popup")){lastFocusedElement=e.target.closest(".trigger-lot_popup");const popup=document.querySelector(".lot_popup");popup&&(popup.setAttribute("tabindex","-1"),popup.focus())}e.target.closest(".btn-close")&&lastFocusedElement&&lastFocusedElement.focus()}),document.addEventListener("keydown",function(e){e.key==="Escape"&&(document.querySelectorAll(".lot_popup").forEach(el=>el.classList.add("hide")),lastFocusedElement&&lastFocusedElement.focus())});const warningText="Redirecting to a third-party website (opens in a new tab).";function isThirdParty(url){try{const linkHost=new URL(url,window.location.href).hostname;return linkHost&&linkHost!==window.location.hostname}catch{return!1}}function handleExternalLinks(){document.querySelectorAll("a").forEach(function(link){const href=link.getAttribute("href");if(!href||!isThirdParty(href))return;link.setAttribute("target","_blank");const img=link.querySelector("img");if(img){link.removeAttribute("aria-label");let alt=img.getAttribute("alt")||"";alt.includes(warningText)||img.setAttribute("alt",alt?alt+", "+warningText:warningText);return}if(link.classList.contains("et_pb_button")){if(link.removeAttribute("aria-label"),!link.querySelector(".visually-hidden")){const span=document.createElement("span");span.className="visually-hidden",span.textContent=warningText,link.appendChild(span)}return}const text=link.textContent.trim();if(!text)return;const aria=link.getAttribute("aria-label");(!aria||!aria.includes(warningText))&&link.setAttribute("aria-label",text+", "+warningText)})}setTimeout(handleExternalLinks,500),document.querySelectorAll('a[href^="mailto:"], a[href^="tel:"]').forEach(function(el){const href=el.getAttribute("href");if(!(el.hasAttribute("aria-label")||el.getAttribute("role")==="button"||el.classList.contains("button")||el.classList.contains("btn"))){if(href.startsWith("mailto:")){const email=href.replace("mailto:","").trim();el.setAttribute("aria-label","Email Address: "+email)}if(href.startsWith("tel:")){const text=el.textContent.trim();el.setAttribute("aria-label","Phone number: "+text)}}}),document.querySelectorAll("br").forEach(br=>{br.setAttribute("aria-hidden","true")}),document.querySelectorAll("button.drawer__tab").forEach(btn=>{new MutationObserver(()=>{const expanded=btn.getAttribute("aria-expanded")==="true";btn.setAttribute("aria-selected",expanded?"true":"false")}).observe(btn,{attributes:!0,attributeFilter:["aria-expanded"]})}),document.addEventListener("click",function(e){e.target.closest("a.cart-drawer-button, a.search-drawer-button, .facet-wrapper button, .icon.icon-question button, .drawer__close")&&setTimeout(()=>{document.querySelectorAll(".drawer__header button, .drawer__sticky button, .drawer__tabs li button").forEach(btn=>btn.removeAttribute("aria-expanded"))},300)}),document.querySelectorAll(".image-description-toggle").forEach(btn=>{btn.addEventListener("click",function(){const contentId=btn.getAttribute("aria-controls"),content=document.getElementById(contentId);if(!content)return;const expanded=btn.getAttribute("aria-expanded")==="true";btn.setAttribute("aria-expanded",!expanded),content.hidden=expanded})});function updateAria(){document.querySelectorAll(".magnet-element.menu__item").forEach(el=>{const parent=el.closest("details");el.setAttribute("aria-expanded",parent&&parent.open?"true":"false")}),document.querySelectorAll("summary.subdrop1").forEach(el=>{const parent=el.closest("details");el.setAttribute("aria-expanded",parent&&parent.open?"true":"false")}),document.querySelectorAll(".accordion details summary").forEach(el=>{const parent=el.closest("details");el.setAttribute("aria-expanded",parent&&parent.open?"true":"false")})}updateAria(),document.querySelectorAll("details").forEach(detail=>{detail.addEventListener("toggle",updateAria)}),document.querySelectorAll(".promo-box").forEach(box=>{const title=box.querySelector(".promo-title")?.textContent.trim()||"",btnText=box.querySelector("a .btn-text")?.textContent.trim()||"",link=box.querySelector("a");link&&link.setAttribute("aria-label",btnText+" "+title)}),document.querySelectorAll(".price--on-sale").forEach(wrapper=>{wrapper.querySelectorAll(".sr-only").forEach(el=>{el.textContent.toLowerCase().includes("regular price")&&el.remove()});const sale=wrapper.querySelector(".price__sale");if(sale){const span=document.createElement("span");span.className="sr-only",span.textContent="Regular price ",sale.prepe
1nd(span)}})}),document.addEventListener("DOMContentLoaded",function(){function removeAriaLabel(){document.querySelectorAll("video[aria-label]").forEach(function(el){el.removeAttribute("aria-label")})}removeAriaLabel(),setInterval(removeAriaLabel,500),new MutationObserver(removeAriaLabel).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["aria-label"]}),setTimeout(function(){function removeZonosButton(){document.querySelectorAll("#zonos--checkout-hidden-international-button").forEach(function(el){const text=(el.textContent||"").trim(),aria=el.getAttribute("aria-label");!text&&!aria&&el.remove()})}removeZonosButton(),new MutationObserver(function(mutations){mutations.forEach(function(){removeZonosButton()})}).observe(document.body,{childList:!0,subtree:!0})},1500)}); 2//# sourceMappingURL=/cdn/shop/t/106/assets/accessibility.js.map?v=142062914919456856171777391434
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.