1if(typeof LocalizationForm!="function"){class LocalizationForm2 extends HTMLElement{constructor(){super(),this.selector=this.querySelector("[data-js-localization-form-button]"),this.content=this.querySelector("[data-js-localization-form-content]"),this._prefix=window.KT_PREFIX||"",this.selector&&(this.querySelector("[data-js-localization-form-insert-helper-content]")&&this.selector.addEventListener("click",e=>{this.classList.contains("populated")||(this.classList.add("populate"),this.populate())}),this.selector.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),document.querySelectorAll(`[data-js-localization-form-content].${this._prefix}content-opened`).forEach(elm=>{elm!=e.currentTarget.parentNode.querySelector("[data-js-localization-form-content]")&&(elm.classList.remove(`${this._prefix}content-opened`),elm.parentNode.style.zIndex=9)}),this.content.classList.contains(`${this._prefix}content-opened`)?(e.currentTarget.setAttribute("aria-expanded","false"),this.content.parentNode.style.zIndex=9,this.content.classList.remove(`${this._prefix}content-opened`,`${this._prefix}invert-x`,`${this._prefix}invert-y`),window.removeEventListener("click",this.onClickHandler)):(this.content.classList.add(`${this._prefix}content-opened`),e.currentTarget.setAttribute("aria-expanded","true"),this.content.parentNode.style.zIndex=1e3,this.content.getBoundingClientRect().y+this.content.offsetHeight+55>window.innerHeight&&this.content.classList.add(`${this._prefix}invert-y`),this.content.getBoundingClientRect().x+this.content.offsetWidth+55>window.innerWidth&&this.content.classList.add(`${this._prefix}invert-x`),this.onClickHandler=(()=>{this.content.classList.contains(`${this._prefix}content-opened`)&&(this.content.classList.remove(`${this._prefix}content-opened`,`${this._prefix}invert-x`,`${this._prefix}invert-y`),this.content.parentNode.style.zIndex=9)}).bind(this),window.addEventListener("click",this.onClickHandler))}),this.querySelector("[data-js-localization-form-button]").addEventListener("keydown",e=>{e.keyCode==window.KEYCODES.RETURN&&(this.content.classList.contains(`${this._prefix}opened-with-tab`)||(this.content.classList.add(`${this._prefix}opened-with-tab`),this.content.querySelectorAll("[data-js-localization-form-item]").forEach(elm=>{elm.setAttribute("tabindex","0")})))}))}populate(){fetch("?section_id=helper-localization-form").then(response=>response.text()).then(text=>{const results=new DOMParser().parseFromString(text,"text/html").querySelector("#shopify-section-helper-localization-form").innerHTML;this.querySelector("[data-js-localization-form-insert-helper-content]").innerHTML=results,this.content.getBoundingClientRect().y+this.content.offsetHeight+55>window.innerHeight&&this.content.classList.add(`${this._prefix}invert-y`),this.content.getBoundingClientRect().x+this.content.offsetWidth+55>window.innerWidth&&this.content.classList.add(`${this._prefix}invert-x`)}).catch(e=>{console.log(e)})}}typeof customElements.get("localization-form")>"u"&&customElements.define("localization-form",LocalizationForm2)} 2//# sourceMappingURL=/cdn/shop/t/20/assets/component-localization-form.js.map?v=37286803973612460251789478737
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.