PageSourceSearch

https://4u.ge/assets/currency_controller-2vw2618f.digested.js

js 4u.ge collected 2026-10-03 01:51:21 UTC 1,506 bytes, 3 lines download raw bytes

1import{e}from"/assets/application-pevgkcf3.digested.js";import{m}from"/assets/application-q1488nwb.digested.js";class n extends e{static targets=["selector","label","symbol","input","check"];static values={currency:{type:String,default:"GEL"}};connect(){this.currencyValue=m.getCurrency(),this.updateSelector(),this.updateInput(),window.addEventListener("currency:change",this)}disconnect(){window.removeEventListener("currency:change",this)}handleEvent(r){let t=r?.detail?.currency;if(!t)return;if(t!==this.currencyValue)this.currencyValue=t,this.updateSelector(),this.updateInput()}changeCurrency(r){let t=r.detail?.value||r.detail?.currency||r.currentTarget.dataset.value||r.target.value;m.setCurrency(t)}updateSelector(){if(this.hasLabelTarget)this.labelTarget.textContent=this.currencyValue;if(this.hasSymbolTarget){let t=m.getCurrencyInfo(this.currencyValue).symbol.trim();this.symbolTarget.textContent=t,this.symbolTarget.hidden=t===this.currencyValue}let r;if(this.hasSelectorTarget)this.selectorTargets.forEach((t)=>{let c=t.dataset.value===this.currencyValue;if(t.classList.toggle("dropdown__option--selected",c),t.setAttribute("aria-pressed",String(c)),c)r=t});if(this.hasCheckTarget){let t=this.checkTarget;t.hidden=!r,r?.append(t)}}updateInput(){if(this.hasInputTarget)this.inputTarget.value=this.currencyValue;else{let r=this.element.querySelector('input[type="hidden"][name*="currency"]');if(r)r.value=this.currencyValue}}}export{n as default};
2
3//# debugId=0C5B3979B4B713AF64756E2164756E21

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.