1document.addEventListener("DOMContentLoaded",function(){Localization.init()});const Localization={popupDismissKey:"regionChangePopupDismissed",isModalExcludedPath:function(pathname){const segments=(pathname||"").toLowerCase().split("/").filter(Boolean);return segments.includes("blogs")||segments.includes("pages")},hasActiveDismissal:function(){try{return sessionStorage.getItem(this.popupDismissKey)==="true"}catch{return!1}},setDismissal:function(){try{sessionStorage.setItem(this.popupDismissKey,"true")}catch{}},checkStoreRouting:function(){const{shopUrl,marketHandle}=window.SelkirkStore||{};if(!shopUrl||!marketHandle||this.isModalExcludedPath(window.location.pathname))return;const isAsiaStore=shopUrl.includes("selkirk-asia")||shopUrl.includes("asia.selkirk.com"),isAsiaMarket=marketHandle.includes("asia-3pl-countries"),isROWMarket=marketHandle.includes("rest-of-world");if(isAsiaStore&&isROWMarket){if(this.hasActiveDismissal())return;Localization.showStorePrompt();return}if(!isAsiaStore&&isAsiaMarket){if(this.hasActiveDismissal())return;Localization.showStorePrompt()}},showStorePrompt:function(){const{shopUrl,countryName}=window.SelkirkStore||{},backdrop=document.getElementById("region-change-modal-backdrop"),modal=document.getElementById("region-change-modal"),title=document.getElementById("region-change-modal-title"),body=document.getElementById("region-change-modal-body"),stayBtn=document.getElementById("region-change-modal-stay"),continueBtn=document.getElementById("region-change-modal-continue");if(!backdrop||!modal||!stayBtn||!continueBtn){console.warn("Region change modal elements not found in DOM.");return}const isAsiaStore=shopUrl&&(shopUrl.includes("selkirk-asia")||shopUrl.includes("asia.selkirk.com")),country=countryName||"your region";isAsiaStore?(title.textContent="WELCOME TO SELKIRK ASIA",body.textContent=`It looks like you're browsing from ${country}. Selkirk Asia only ships within Asia-Pacific, so you won't be able to complete a purchase here. Please visit selkirk.com to place your order.`,stayBtn.textContent="Stay anyway",continueBtn.textContent="Go to selkirk.com"):(title.textContent="WELCOME TO SELKIRK",body.innerHTML=`It looks like you're browsing from ${country}. Switch to <strong>Selkirk Asia</strong> for faster delivery and lower shipping costs`,stayBtn.textContent="Stay on selkirk.com",continueBtn.textContent="Go to Selkirk Asia");const close=()=>{backdrop.classList.remove("is-open"),modal.classList.remove("is-open"),backdrop.setAttribute("aria-hidden","true"),backdrop.onclick=null,stayBtn.onclick=null,continueBtn.onclick=null};backdrop.classList.add("is-open"),modal.classList.add("is-open"),backdrop.setAttribute("aria-hidden","false"),backdrop.onclick=()=>{close(),this.setDismissal()},stayBtn.onclick=()=>{close(),this.setDismissal()},continueBtn.onclick=()=>{this.setDismissal()}},init:async function(){this.checkStoreRouting()}}; 2//# sourceMappingURL=/cdn/shop/t/642/assets/localization.js.map?v=30114350471571292161781209832
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.