PageSourceSearch

https://outcast-clothing.us/cdn/shop/t/225/assets/currency-selecto…?v=26666963016643678611790312955

js outcast-clothing.us collected 2026-10-02 14:54:13 UTC 2,801 bytes, 1 lines download raw bytes

1var c=o=>{throw TypeError(o)};var u=(o,l,e)=>l.has(o)||c("Cannot "+e);var r=(o,l,e)=>(u(o,l,"read from private field"),e?e.call(o):l.get(o)),d=(o,l,e)=>l.has(o)?c("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(o):l.set(o,e),a=(o,l,e,t)=>(u(o,l,"write to private field"),t?t.call(o,e):l.set(o,e),e);var i;class h extends HTMLElement{constructor(){super();d(this,i);a(this,i,{form:".js-form-localization",countryCode:".js-country-code",toggle:".js-currency-toggle",panel:".js-currency-panel",chevron:".js-currency-chevron",option:".js-country-option"}),this.formEl=null,this.countryCodeEl=null,this.toggleEl=null,this.panelEl=null,this.chevronEl=null,this.optionEls=null,this.boundToggle=null,this.boundOutsideClick=null,this.boundKeydown=null,this.boundOptionHandlers=[],this.formEl=this.querySelector(r(this,i).form),this.countryCodeEl=this.querySelector(r(this,i).countryCode),this.toggleEl=this.querySelector(r(this,i).toggle),this.panelEl=this.querySelector(r(this,i).panel),this.chevronEl=this.querySelector(r(this,i).chevron),this.optionEls=this.querySelectorAll(r(this,i).option)}connectedCallback(){var e=this;e.toggleEl&&(e.boundToggle=function(t){t.stopPropagation(),e.toggleOpen()},e.toggleEl.addEventListener("click",e.boundToggle)),e.optionEls&&e.optionEls.forEach(function(t){var n=function(s){s.preventDefault(),e.selectCountry(t)};t.addEventListener("click",n),e.boundOptionHandlers.push({el:t,handler:n})}),e.boundOutsideClick=function(t){e.contains(t.target)||e.close()},document.addEventListener("click",e.boundOutsideClick),e.boundKeydown=function(t){t.key==="Escape"&&e.close()},document.addEventListener("keydown",e.boundKeydown)}disconnectedCallback(){var e=this;e.toggleEl&&e.boundToggle&&e.toggleEl.removeEventListener("click",e.boundToggle),e.boundOptionHandlers.forEach(function(t){t.el.removeEventListener("click",t.handler)}),e.boundOptionHandlers=[],e.boundOutsideClick&&document.removeEventListener("click",e.boundOutsideClick),e.boundKeydown&&document.removeEventListener("keydown",e.boundKeydown)}toggleOpen(){var n;var e=this,t=((n=e.toggleEl)==null?void 0:n.getAttribute("aria-expanded"))==="true";t?e.close():e.open()}open(){var t,n,s;var e=this;(t=e.panelEl)==null||t.classList.remove("hidden"),(n=e.toggleEl)==null||n.setAttribute("aria-expanded","true"),(s=e.chevronEl)==null||s.classList.add("rotate-180")}close(){var t,n,s;var e=this;(t=e.panelEl)==null||t.classList.add("hidden"),(n=e.toggleEl)==null||n.setAttribute("aria-expanded","false"),(s=e.chevronEl)==null||s.classList.remove("rotate-180")}selectCountry(e){var t=this,n=e.dataset.value||"";!t.countryCodeEl||!t.formEl||!n||(t.countryCodeEl.value=n,t.formEl.submit())}}i=new WeakMap;customElements.get("currency-selector")||customElements.define("currency-selector",h);

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.