1class Currencies { 2 currentCurrency = null; 3 4 change(currency) { 5 window.location.href = '/' + window.Helpers.languages.currentLocale + '/currencies/change-to/' + currency; 6 } 7 8 getCurrencySymbol() { 9 return currencySymbol; 10 } 11 12 getUserCurrency() { 13 return userCurrency; 14 } 15 16 getCurrencyFromCookie() { 17 // Try to get currency from the new cookie structure 18 if (window.Helpers && window.Helpers.cookies) { 19 const cookieCurrency = window.Helpers.cookies.getCurrency(); 20 if (cookieCurrency) { 21 return cookieCurrency; 22 } 23 } 24 25 // Fallback to the current user currency 26 return this.getUserCurrency(); 27 } 28} 29 30export {Currencies};
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.