1const s=()=>({requestUrl:null,init:function(){this.setRequestUrl(),this.setModalCloseClass(),this.boundSetRequestUrl=this.setRequestUrl.bind(this),this.boundSetModalCloseClass=this.setModalCloseClass.bind(this),this.boundEmptyContent=this.emptyContent.bind(this),window.addEventListener("hashchange",this.boundSetRequestUrl),window.addEventListener("hashchange",this.boundSetModalCloseClass),this.$refs.content.addEventListener("htmx:beforeRequest",this.boundEmptyContent)},destroy:function(){window.removeEventListener("hashchange",this.boundSetRequestUrl),window.removeEventListener("hashchange",this.boundSetModalCloseClass),this.$refs.content.removeEventListener("htmx:beforeRequest",this.boundEmptyContent)},emptyContent:function(){this.$refs.content.innerHTML=""},setRequestUrl:function(){const e=new URLSearchParams(window.location.search);e.get("country")?this.requestUrl=`/current/country/${e.get("country")}`:e.get("partner")&&(this.requestUrl=`/current/partner/${e.get("partner")}`)},setModalCloseClass:function(){const e=document.querySelector(".the-current-info-modal .modal-close");e&&(new URLSearchParams(window.location.search).get("country")?e.classList.add("text-cw-white"):e.classList.remove("text-cw-white"))}});
1export{s as default}; 2//# sourceMappingURL=TheCurrentModal-DRqNsT7m.js.map
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.