1class s extends HTMLElement{constructor(){super()}connectedCallback(){this.setProperties(),this.init()}disconnectedCallback(){this.cleanup()}setProperties(){this.companyName=this.dataset.companyName,this.companyId=this.dataset.companyId,this.lang=this.dataset.lang,this.currency=this.dataset.currency,this.locallyUrl=this.dataset.locallyUrl,this.scriptId="lcly-script-0"}init(){const t={company_name:this.companyName,company_id:this.companyId,inline:"1",lang:this.lang,currency:this.currency},c=new URLSearchParams(t),e=`${this.locallyUrl}?${c.toString()}`;this.loadScript(e)}loadScript(t){this.cleanup();const c=document.createElement("script");c.id=this.scriptId,c.src=t,c.async=!0,c.onerror=e=>{console.error("Error loading Locally map script:",e),console.error("Failed URL:",t)},document.head.appendChild(c)}cleanup(){const t=document.getElementById(this.scriptId);t&&t.remove()}}const n=()=>{customElements.get("locally-map")||customElements.define("locally-map",s)};export{n as default};
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.