1document.addEventListener("click",function(e){if(e.target.closest(".popop-wrapper-event")){let thisTargetValue=e.target.closest(".popop-wrapper-event").getAttribute("data-popop-event"),contentContainer=document.querySelector(".popop-content-container"),bodyWrapper=document.querySelector("html");contentContainer&&(bodyWrapper.classList.add("overflow-hidden"),contentContainer.setAttribute("data-popop-event-target",thisTargetValue),contentContainer.style.display="flex")}if(e.target.closest(".popop_close")){let contentContainer=e.target.closest(".popop-content-container"),bodyWrapper=document.querySelector("html");contentContainer&&(bodyWrapper.classList.remove("overflow-hidden"),contentContainer.style.display="none")}}),document.addEventListener("click",function(e){if(e.target.closest('a[href="#loyalty-signup-popop"]')){e.preventDefault(),document.documentElement.classList.add("overflow-hidden");const popup=document.querySelector('[data-popop="loyalty-signup-popop"]');popup&&(popup.style.display="flex")}}),document.addEventListener("click",function(e){if(e.target.closest(".js-opt-out-pop")){e.preventDefault(),document.documentElement.classList.add("overflow-hidden");const Opt_popup=document.querySelector('[data-popop="Opt-out-confirmed"]');Opt_popup&&(Opt_popup.style.display="flex")}}),document.addEventListener("click",function(e){if(e.target.closest(".js-pop-close")){document.documentElement.classList.remove("overflow-hidden"),document.querySelectorAll(".js-block-event").forEach(el=>{el.classList.remove("active_block")});const popup=e.target.closest(".js-block-popop");popup&&(popup.style.display="none")}else if(e.target.closest(".js-block-event:not(.active_block)")){const block=e.target.closest(".js-block-event:not(.active_block)");if(!block)return;document.documentElement.classList.add("overflow-hidden");const popLink=block.getAttribute("data-pop");block.classList.add("active_block");const popup=document.querySelector(`.js-block-popop[data-pop-target="${popLink}"]`);popup&&(popup.style.display="flex")}else e.target.classList.contains("js-block-popop")&&(document.documentElement.classList.remove("overflow-hidden"),e.target.style.display="none",document.querySelectorAll(".js-block-event").forEach(el=>{el.classList.remove("active_block")}))}),document.addEventListener("click",function(e){const joinBtn=e.target.closest(".join-hawkstone-loyalty-popop");if(joinBtn){e.preventDefault();const parentContainer=joinBtn.closest(".popop-content-container");parentContainer&&(parentContainer.style.display="none");const loyaltyPopup=document.querySelector('[data-popop="loyalty-signup-popop"]');loyaltyPopup&&(loyaltyPopup.style.display="flex")}if(e.target.closest(".custom-popop_close, .clospop")){e.preventDefault(),document.documentElement.classList.remove("overflow-hidden");const loyaltyPopup=document.querySelector('[data-popop="loyalty-signup-popop"]');loyaltyPopup&&(loyaltyPopup.style.display="none")}if(e.target.closest(".js-custom-popop_close, .js-clospop")){e.preventDefault(),document.documentElement.classList.remove("overflow-hidden");const opt_loyaltyPopup=document.querySelector('[data-popop="Opt-out-confirmed"]'),opt_loyaltyPopupCheckbox=document.querySelector("#opt-out-loyal .styled-checkbox"),opt_loyaltyPopupbutton=document.querySelector(".opt-del-button");opt_loyaltyPopup&&(opt_loyaltyPopup.style.display="none"),opt_loyaltyPopupCheckbox.checked&&(opt_loyaltyPopupCheckbox.checked=!1,opt_loyaltyPopupbutton.setAttribute("disabled","disabled"),opt_loyaltyPopupbutton.classList.remove("opt_btn-confirmed"))}}),document.addEventListener("click",function(e){const btn=e.target.closest(".benefit_btn");if(!btn)return;const btnID=btn.getAttribute("data-link");(btn.parentElement?Array.from(btn.parentElement.children):[]).forEach(sib=>{sib!==btn&&sib.classList.remove("active")}),btn.classList.add("active");const grid=btn.closest(".custom-benefits-grid");if(!grid)return;const gridItems=Array.from(grid.querySelectorAll(".custom-benefits-grid-item"));gridItems.forEach(item=>{item.style.display="none"}),gridItems.forEach(item=>{(item.getAttribute("data-target-1")===btnID||item.getAttribute("data-target-2")===btnID||item.getAttribute("data-target-3")===btnID)&&(item.style.display="block")})}),document.addEventListener("click",function(e){e.target.closest(".popup-button-non-login")&&(document.querySelectorAll(".warning-message").forEach(msg=>{msg.style.opacity=0,msg.style.display="block";let opacity=0;const fadeIn=setInterval(()=>{opacity+=.1,opacity>=1&&(opacity=1,clearInterval(fadeIn)),msg.style.opacity=opacity},30);setTimeout(()=>{let fadeOpacity=1;const fadeOut=setInterval(()=>{fadeOpacity-=.05,fadeOpacity<=0&&(fadeOpacity=0,clearInterval(fadeOut),msg.style.display="none"),msg.style.opacity=fadeOpacity},30)},5e3)}),setTimeout(()=>{window.location.href="/account/login"},3e3))}),document.addEventListener("change",function(e){const checkbox=e.target.closest("#loyalty-enroll .styled-checkbox");if(!checkbox)return;const customBtn=document.querySelectorAll(".custom-pop-button"),warningMsg=document.querySelectorAll(".warning-message");
1checkbox.checked?(customBtn.forEach(btn=>btn.removeAttribute("disabled")),warningMsg.forEach(msg=>msg.style.display="none")):(customBtn.forEach(btn=>btn.setAttribute("disabled","disabled")),warningMsg.forEach(msg=>msg.style.display="block"))}),document.addEventListener("change",function(e){const checkbox=e.target.closest("#opt-out-loyal .styled-checkbox");if(!checkbox)return;const OptcustomBtn=document.querySelectorAll(".opt-del-button");checkbox.checked?OptcustomBtn.forEach(btn=>{btn.removeAttribute("disabled"),btn.classList.add("opt_btn-confirmed")}):OptcustomBtn.forEach(btn=>{btn.setAttribute("disabled","disabled"),btn.classList.remove("opt_btn-confirmed")})}),document.addEventListener("click",function(e){const tabBtn=e.target.closest(".rune-tabs-event");if(tabBtn){const tabID=tabBtn.getAttribute("data-tab");(tabBtn.parentElement?Array.from(tabBtn.parentElement.children):[]).forEach(sib=>{sib!==tabBtn&&sib.classList.remove("selected")}),tabBtn.classList.add("selected");const container=tabBtn.closest(".rune-all-box");if(!container)return;Array.from(container.querySelectorAll(".rune-tabs-content")).forEac
1h(content=>{content.style.display="none",content.getAttribute("data-tab-content")===tabID&&(content.style.display="block")})}e.target.closest(".login__button")&&(e.preventDefault(),window.location.href="/account/login")}),document.addEventListener("click",function(e){const btn=e.target.closest(".js-event-copy-value");if(!btn)return;const textToCopy=btn.dataset.copy||btn.textContent.trim();if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(textToCopy).then(()=>showCopiedMsg(btn)).catch(err=>console.error("Clipboard error:",err));else{const tempTextarea=document.createElement("textarea");tempTextarea.value=textToCopy,document.body.appendChild(tempTextarea),tempTextarea.select(),document.execCommand("copy"),document.body.removeChild(tempTextarea),showCopiedMsg(btn)}function showCopiedMsg(el){const existingMsg=el.querySelector(".copy-message");existingMsg&&existingMsg.remove();const msg=document.createElement("span");msg.className="copy-message",msg.textContent="Copied!",Object.assign(msg.style,{position:"absolute",background:"#000",color:"#fff",padding:"3px 8px",borderRadius:"4px",fontSize:"12px",to
1p:"-25px",left:"50%",transform:"translateX(-50%)",opacity:"0",transition:"opacity 0.3s ease, top 0.3s ease",whiteSpace:"nowrap",zIndex:9999,pointerEvents:"none"}),el.appendChild(msg),requestAnimationFrame(()=>{msg.style.opacity="1",msg.style.top="-35px"}),setTimeout(()=>{msg.style.opacity="0",msg.style.top="-25px",setTimeout(()=>{msg.remove()},400)},1500)}}); 2//# sourceMappingURL=/cdn/shop/t/223/assets/custom-event.js.map?v=18702029446499411951769597728
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.