PageSourceSearch

https://www.cacheeconcept.com/cdn/shop/t/13/assets/translation-lab…?v=172853799559128308401656324499

js cacheeconcept.com collected 2026-10-08 04:32:51 UTC 27,133 bytes, 2 lines download raw bytes

1"use strict";Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(this==null)throw TypeError('"this" is null or not defined');var t=Object(this),o=t.length>>>0;if(typeof e!="function")throw TypeError("predicate must be a function");for(var n=arguments[1],r=0;r<o;){var a=t[r];if(e.call(n,a,r,t))return a;r++}},configurable:!0,writable:!0}),(function(m){var a={USD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} USD"},EUR:{money_format:"&euro;{{amount}}",money_with_currency_format:"&euro;{{amount}} EUR"},GBP:{money_format:"&pound;{{amount}}",money_with_currency_format:"&pound;{{amount}} GBP"},CAD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} CAD"},ALL:{money_format:"Lek {{amount}}",money_with_currency_format:"Lek {{amount}} ALL"},DZD:{money_format:"DA {{amount}}",money_with_currency_format:"DA {{amount}} DZD"},AOA:{money_format:"Kz{{amount}}",money_with_currency_format:"Kz{{amount}} AOA"},ARS:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} ARS"},AMD:{money_format:"{{amount}} AMD",money_with_currency_format:"{{amount}} AMD"},AWG:{money_format:"Afl{{amount}}",money_with_currency_format:"Afl{{amount}} AWG"},AUD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} AUD"},BBD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} Bds"},AZN:{money_format:"m.{{amount}}",money_with_currency_format:"m.{{amount}} AZN"},BDT:{money_format:"Tk {{amount}}",money_with_currency_format:"Tk {{amount}} BDT"},BSD:{money_format:"BS${{amount}}",money_with_currency_format:"BS${{amount}} BSD"},BHD:{money_format:"{{amount}}0 BD",money_with_currency_format:"{{amount}}0 BHD"},BYR:{money_format:"Br {{amount}}",money_with_currency_format:"Br {{amount}} BYR"},BIF:{money_format:"FBu {{amount}}",money_with_currency_format:"FBu {{amount}} BIF"},BZD:{money_format:"BZ${{amount}}",money_with_currency_format:"BZ${{amount}} BZD"},BTN:{money_format:"Nu {{amount}}",money_with_currency_format:"Nu {{amount}} BTN"},BAM:{money_format:"KM {{amount_with_comma_separator}}",money_with_currency_format:"KM {{amount_with_comma_separator}} BAM"},BRL:{money_format:"R$ {{amount_with_comma_separator}}",money_with_currency_format:"R$ {{amount_with_comma_separator}} BRL"},BOB:{money_format:"Bs{{amount_with_comma_separator}}",money_with_currency_format:"Bs{{amount_with_comma_separator}} BOB"},BWP:{money_format:"P{{amount}}",money_with_currency_format:"P{{amount}} BWP"},BND:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} BND"},BGN:{money_format:"{{amount}} \u043B\u0432",money_with_currency_format:"{{amount}} \u043B\u0432 BGN"},MMK:{money_format:"K{{amount}}",money_with_currency_format:"K{{amount}} MMK"},KHR:{money_format:"KHR{{amount}}",money_with_currency_format:"KHR{{amount}}"},KYD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} KYD"},XAF:{money_format:"FCFA{{amount}}",money_with_currency_format:"FCFA{{amount}} XAF"},CLP:{money_format:"${{amount_no_decimals}}",money_with_currency_format:"${{amount_no_decimals}} CLP"},CNY:{money_format:"&#165;{{amount}}",money_with_currency_format:"&#165;{{amount}} CNY"},COP:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} COP"},CRC:{money_format:"&#8353; {{amount_with_comma_separator}}",money_with_currency_format:"&#8353; {{amount_with_comma_separator}} CRC"},HRK:{money_format:"{{amount_with_comma_separator}} kn",money_with_currency_format:"{{amount_with_comma_separator}} kn HRK"},CZK:{money_format:"{{amount}} K&#269;",money_with_currency_format:"{{amount}} K&#269;"},DKK:{money_format:"kr.{{amount_with_comma_separator}}",money_with_currency_format:"kr.{{amount_with_comma_separator}}"},DOP:{money_format:"RD$ {{amount}}",money_with_currency_format:"RD$ {{amount}}"},XCD:{money_format:"${{amount}}",money_with_currency_format:"EC${{amount}}"},EGP:{money_format:"LE {{amount}}",money_with_currency_format:"LE {{amount}} EGP"},ETB:{money_format:"Br{{amount}}",money_with_currency_format:"Br{{amount}} ETB"},XPF:{money_format:"{{amount_no_decimals_with_comma_separator}} XPF",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} XPF"},FJD:{money_format:"${{amount}}",money_with_currency_format:"FJ${{amount}}"},GMD:{money_format:"D {{amount}}",money_with_currency_format:"D {{amount}} GMD"},GHS:{money_format:"GH&#8373;{{amount}}",money_with_currency_format:"GH&#8373;{{amount}}"},GTQ:{money_format:"Q{{amount}}",money_with_currency_format:"{{amount}} GTQ"},GYD:{money_format:"G${{amount}}",money_with_currency_format:"${{amount}} GYD"},GEL:{money_format:"{{amount}} GEL",money_with_currency_format:"{{amount}} GEL"},HNL:{money_format:"L {{amount}}",money_with_currency_format:"L {{amount}} HNL"},HKD:{money_format:"${{amount}}",money_with_currency_format:"HK${{amount}}"},HUF:{money_format:"{{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} Ft"},ISK:{money_format:"{{amount_no_decimals}} kr",money_with_currency_format:"{{amount_no_decimals}} kr ISK"},INR:{money_format:"Rs. {{amount}}",money_with_currency_format:"Rs. {{amount}}"},IDR:{money_format:"{{amount_with_comma_separator}}",money_with_currency_format:"Rp {{amount_with_comma_separator}}"},ILS:{money_format:"{{amount}} NIS",money_with_currency_format:"{{amount}} NIS"},JMD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} JMD"},JPY:{money_format:"&#165;{{amount_no_decimals}}",money_with_currency_format:"&#165;{{amount_no_decimals}} JPY"},JEP:{money_format:"&pound;{{amount}}",money_with_currency_format:"&pound;{{amount}} JEP"},JOD:{money_format:"{{amount}}0 JD",money_with_currency_format:"{{amount}}0 JOD"},KZT:{money_format:"{{amount}} KZT",money_with_currency_format:"{{amount}} KZT"},KES:{money_format:"KSh{{amount}}",money_with_currency_format:"KSh{{amount}}"},KWD:{money_format:"{{amount}}0 KD",money_with_currency_format:"{{amount}}0 KWD"},KGS:{money_format:"\u043B\u0432{{amount}}",money_with_currency_format:"\u043B\u0432{{amount}}"},LVL:{money_format:"Ls {{amount}}",money_with_currency_format:"Ls {{amount}} LVL"},LBP:{money_format:"L&pound;{{amount}}",money_with_currency_format:"L&pound;{{amount}} LBP"},LTL:{money_format:"{{amount}} Lt",money_with_currency_format:"{{amount}} Lt"},MGA:{money_format:"Ar {{amount}}",money_with_currency_format:"Ar {{amount}} MGA"},MKD:{money_format:"\u0434\u0435\u043D {{amount}}",money_with_currency_format:"\u0434\u0435\u043D {{amount}} MKD"},MOP:{money_format:"MOP${{amount}}",money_with_currency_format:"MOP${{amount}}"},MVR:{money_format:"Rf{{amount}}",money_with_currency_format:"Rf{{amount}} MRf"},MXN:{money_format:"$ {{amount}}",money_with_currency_format:"$ {{amount}} MXN"},MYR:{money_format:"RM{{amount}} MYR",money_with_currency_format:"RM{{amount}} MYR"},MUR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} MUR"},MDL:{money_format:"{{amount}} MDL",money_with_currency_format:"{{amount}} MDL"},MAD:{money_format:"{{amount}} dh",money_with_currency_format:"Dh {{amount}} MAD"},MNT:{money_format:"{{amount_no_decimals}} &#8366",money_with_currency_format:"{{amount_no_decimals}} MNT"},MZN:{money_format:"{{amount}} Mt",money_with_currency_format:"Mt {{amount}} MZN"},NAD:{money_format:"N${{amount}}",money_with_currency_format:"N${{amount}} NAD"},NPR:{money_format:"Rs{{amount}}",money_with_currency_format:"Rs{{amount}} NPR"},ANG:{money_format:"&fnof;{{amount}}",money_with_currency_format:"{{amount}} NA&fnof;"},NZD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} NZD"},NIO:{money_format:"C${{amount}}",money_with_currency_format:"C${{amount}} NIO"},NGN:{money_format:"&#8358;{{amount}}",money_with_currency_format:"&#8358;{{amount}} NGN"},NOK:{money_format:"kr {{amount_with_comma_separator}}",money_with_currency_format:"kr {{amount_with_comma_separator}} NOK"},OMR:{money_format:"{{amount_with_comma_separator}} OMR",money_with_currency_format:"{{amount_with_comma_separator}} OMR"},PKR:{money_format:"Rs.{{amount}}",money_with_currency_format:"Rs.{{amount}} PKR"},PGK:{money_format:"K {{amount}}",money_with_currency_format:"K {{amount}} PGK"},PYG:{money_format:"Gs. {{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"Gs. {{amount_no_decimals_with_comma_separator}} PYG"},PEN:{money_format:"S/. {{amount}}",money_with_currency_format:"S/. {{amount}} PEN"},PHP:{money_format:"&#8369;{{amount}}",money_with_currency_format:"&#8369;{{amount}} PHP"},PLN:{money_format:"{{amount_with_comma_separator}} zl",money_with_currency_format:"{{amount_with_comma_separator}} zl PLN"},QAR:{money_format:"QAR {{amount_with_comma_separator}}",money_with_currency_format:"QAR {{amount_with_comma_separator}}"},RON:{money_format:"{{amount_with_comma_separator}} lei",money_with_currency_format:"{{amount_with_comma_separator}} lei RON"},RUB:{money_format:"&#1088;&#1091;&#1073;{{amount_with_comma_separator}}",money_with_currency_format:"&#1088;&#1091;&#1073;{{amount_with_comma_separator}} RUB"},RWF:{money_format:"{{amount_no_decimals}} RF",money_with_currency_format:"{{amount_no_decimals}} RWF"},WST:{money_format:"WS$ {{amount}}",money_with_currency_format:"WS$ {{amount}} WST"},SAR:{money_format:"{{amount}} SR",money_with_currency_format:"{{amount}} SAR"},STD:{money_format:"Db {{amount}}",money_with_currency_format:"Db {{amount}} STD"},RSD:{money_format:"{{amount}} RSD",money_with_currency_format:"{{amount}} RSD"},SCR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} SCR"},SGD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} SGD"},SYP:{money_format:"S&pound;{{amount}}",money_with_currency_format:"S&pound;{{amount}} SYP"},ZAR:{money_format:"R {{amount}}",money_with_currency_format:"R {{amount}} ZAR"},KRW:{money_format:"&#8361;{{amount_no_decimals}}",money_with_currency_format:"&#8361;{{amount_no_decimals}} KRW"},LKR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} LKR"},SEK:{money_format:"{{amount_no_decimals}} kr",money_with_currency_format:"{{amount_no_decimals}} kr SEK"},CHF:{money_format:"SFr. {{amount}}",money_with_currency_format:"SFr. {{amount}} CHF"},TWD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} TWD"},THB:{money_format:"{{amount}} &#xe3f;",money_with_currency_format:"{{amount}} &#xe3f; THB"},TZS:{money_format:"{{amount}} TZS",money_with_currency_format:"{{amount}} TZS"},TTD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} TTD"},TND:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} DT"},TRY:{money_format:"{{amount}}TL",money_with_currency_format:"{{amount}}TL"},UGX:{money_format:"Ush {{amount_no_decimals}}",money_with_currency_format:"Ush {{amount_no_decimals}} UGX"},UAH:{money_format:"\u20B4{{amount}}",money_with_currency_format:"\u20B4{{amount}} UAH"},AED:{money_format:"Dhs. {{amount}}",money_with_currency_format:"Dhs. {{amount}} AED"},UYU:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} UYU"},VUV:{money_format:"${{amount}}",money_with_currency_format:"${{amount}}VT"},VEF:{money_format:"Bs. {{amount_with_comma_separator}}",money_with_currency_format:"Bs. {{amount_with_comma_separator}} VEF"},VND:{money_format:"{{amount_no_decimals_with_comma_separator}}&#8363;",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} VND"},XBT:{money_format:"{{amount_no_decimals}} BTC",money_with_currency_format:"{{amount_no_decimals}} BTC"},XOF:{money_format:"CFA{{amount}}",money_with_currency_format:"CFA{{amount}} XOF"},ZMW:{money_format:"K{{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"ZMW{{amount_no_decimals_with_comma_separator}}"}};function s(e2,t2){return typeof e2=="undefined"?t2:e2}function c(e2,t2){switch(t2){case"amount":return o(e2,2);case"amount_no_decimals":return o(e2,0);case"amount_with_comma_separator":return o(e2,2,".",",");case"amount_no_decimals_with_comma_separator":return o(e2,0,".",",");default:return""}}function o(e2,t2,o2,n,r){if(isNaN(e2)||e2==null)return"";var a2=s(t2,2),m2=s(o2," "),c2=s(n,"."),u=e2/100;r&&r>0&&(u=Math.round(u/r)*r);var i=u.toFixed(a2),_=i.split("."),f2=_[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+m2),y2=_[1]?c2+_[1]:"";return"".concat(f2).concat(y2)}function f(e2,t2){var o2="",n=/\{\{\s*(\w+)\s*\}\}/,r=t2||"${{amount}}",a2=r.match(n);if(a2&&a2.length>=2){var m2=a2[1];o2=c(e2,m2)}return r.replace(n,o2)}function y(e2,t2,o2){if(m.Currency&&m.Currency.convert instanceof Function)return m.Currency.convert(e2,t2,o2);var n=m.Currency&&m.Currency.rates?m.Currency.rates:{},r=n[t2],a2=n[o2];return!r||!a2?e2:e2*n[t2]/n[o2]}function l(e2,t2,o2){var n=e2.innerText,r=n.match(/[0-9., ]+/);if(!r||r.length===0)return NaN;var a2=r[0].trim(),m2=a2.split("."),c2=a2.split(","),u=m2.length>1&&(m2[1].length==1||m2[1].length==2),i=c2.length>1&&(c2[1].length==1||c2[1].length==2);return!u&&!i?parseInt(a2.replace(/[^0-9]/g,""),10)*100:u||i?parseInt(a2.replace(/[^0-9]/g,""),10):t2.indexOf("amount_no_decimals")!==-1?parseInt(a2.replace(/[^0-9]/g,""),10)*100:o2==="JOD"||o2==="KWD"||o2==="BHD"?parseInt(a2.replace(/[^0-9]/g,""),10)/10:parseInt(a2.replace(/[^0-9]/g,""),10)}function d(e2,t2,o2){var n=a[e2],r=n&&n[t2]||"{{amount}} ".concat(e2);return o2&&o2.indexOf("amount_no_decimals")>-1&&r.indexOf("custom_")===-1?r.replace(/{{(([^}][^}]?|[^}]}?)*)}}/,"{{amount_no_decimals}}"):r}function e(i,e2,_,t2){_&&document.querySelectorAll(t2||"span.money").forEach(function(e3){var t3=d(i,h.format),o2=d(_,h.format),n=l(e3,t3,i);if(!isNaN(n)){if(!e3.getAttribute("data-base-currency"))e3.setAttribute("data-base-currency",i),e3.setAttribute("data-base-amount",n.toString());else{var r=e3.getAttribute("data-base-amount");r&&(n=parseFloat(r))}if(e3.getAttribute("data-currency")!==_){var a2="data-currency-".concat(_),m2=e3.getAttribute(a2);if(m2)e3.innerHTML=m2;else{var c2=y(n,i,_),u=f(c2,o2);e3.innerHTML=u,e3.setAttribute(a2,u)}e3.setAttribute("data-currency",_)}}})}var t={name:"translation-lab-currency",write:function(e2){m.localStorage.setItem(this.name,e2)},read:function(){return m.localStorage.getItem(this.name)},destroy:function(){m.localStorage.removeItem(this.name)}},h={cookie:t,format:"money_with_currency_format",themeMoneyFormat:"",themeMoneyWithCurrencyFormat:"",convertAll:e};typeof m.TranslationLab=="undefined"&&(m.TranslationLab={}),typeof m.TranslationLab.Currency=="undefined"&&(m.TranslationLab.Currency=h)})(window),(function(g){var L="https://shopify-script-tags.s3.eu-west-1.amazonaws.com/tlab-svg-flags/[country-code].svg";function u(e,t2,o2,n2){if(!e||!t2)return null;var r2=e.iso_code.toLowerCase(),a=t2.toLowerCase();if(a===r2)return null;var m=g.location.pathname,c=g.location.search||"",u2=new RegExp("^/".concat(a),"ig"),i2=m.replace(u2,"");return n2?"https://".concat(e.domain).concat(i2).concat(c):e.root_url==="/"?"https://".concat(o2).concat(i2).concat(c):"https://".concat(o2).concat(e.root_url).concat(i2).concat(c)}function S(t2,e,o2){if(!t2||!e)return{languageCode:"",currencies:[{code:o2}]};var n2=t2.split("-")[0],r2=e.find(function(e2){return e2.languageCode===t2||e2.languageCode===n2}),a={languageCode:t2,currencies:[{code:o2}]};return r2!=null?r2:a}function C(e,t2,o2,n2){if(!t2)return null;var r2=S(t2,e,n2);if(!o2)return r2.currencies[0];var a=r2.currencies.find(function(e2){return e2.code===o2});return a||r2.currencies[0]}function i(a){var n2=!1,m=document.getElementById(a.containerId);if(!m)return null;var r2=m.querySelector(a.dropdownSelector),e=m.querySelector(a.optionsListSelector);if(!r2)return null;var c=r2.getElementsByTagName("span")[0],u2=r2.getElementsByTagName("img")[0];r2.addEventListener("click",y2,!1),document.addEventListener("click",
1s,!1),e&&e.children&&Array.prototype.forEach.call(e.children,function(e2){e2.addEventListener("click",function(){return t2(e2)})});var i2=void 0,_2=a.itemList.find(function(e2){return a.selectedItem&&e2.iso_code.toLowerCase()===a.selectedItem.toLowerCase()});function t2(e2){d();var t3=e2.dataset.value;if(t3){var o3=a.itemList.find(function(e3){return e3.iso_code.toLowerCase()===t3.toLowerCase()});if(o3){i2=_2,_2=o3;var n3=e2.getElementsByTagName("span")[0],r3=e2.getElementsByTagName("img")[0];n3?c.textContent=n3.textContent:a.generateLabel instanceof Function&&(c.textContent=a.generateLabel(o3)),u2&&r3&&(u2.src=r3.src),a.onItemSelect instanceof Function&&a.onItemSelect(o3,m)}}}function o2(){i2&&(a.generateLabel instanceof Function&&(c.textContent=a.generateLabel(i2)),u2&&(u2.src=i2.flag),_2=i2,i2=void 0)}function f2(){return _2}function y2(e2){e2.preventDefault(),n2?d():l()}function s(e2){if(!(!n2||e2.target===r2)){for(var t3=e2.composedPath(),o3=0;o3<t3.length;o3++)if(t3[o3]===r2)return;d()}}function l(){n2=!0,r2.classList.add("open"),e.classList.add("open")}function d(){n2=!1,r2.classList.remove("open"),e.classList.remove("open")}return{selectItem:t2,resetSelection:o2,getSelectedItem:f2,container:m}}function D(e,t2,o2){var n2=!1,r2=document.getElementById(e.currencySwitcherId);if(!r2)return null;var a=r2.querySelector(e.dropdownSelector),m=r2.querySelector(e.optionsListSelector);if(!a)return null;a.addEventListener("click",s,!1),document.addEventListener("click",l,!1);var c=void 0,u2=o2.find(function(e2){return e2.code.toLowerCase()===t2.toLowerCase()});function i2(e2){h(),e2&&(c=u2,u2=e2,_2(e2))}function _2(n3){document.querySelectorAll(".tl-select.tl-currency-select").forEach(function(e2){var t3=e2.getElementsByTagName("span")[0],o3=e2.getElementsByTagName("img")[0];t3.textContent=n3.code,o3&&(o3.src=L.replace("[country-code]",n3.code.slice(0,2).toLowerCase()))})}function f2(){c&&(_2(c),u2=c)}function y2(){return u2}function s(e2){e2.preventDefault(),n2?h():d()}function l(e2){if(!(!n2||e2.target===a)){for(var t3=e2.composedPath(),o3=0;o3<t3.length;o3++)if(t3[o3]===a)return;h()}}function d(){n2=!0,a.classList.add("open"),m.classList.add("open")}function h(){n2=!1,a.classList.remove("open"),m.classList.remove("open")}return{selectItem:i2,resetSelection:f2,getCurrentSelection:y2,openDropdown:d,closeDropdown:h}}function _(o2,t2,e,n2){var u2=!1,r2=".tl-selections",a=".tl-close-btn",m=".tl-dropdown, .tl-overlay",c="body > .tl-overlay",i2="active",_2=o2.querySelector(r2);if(!_2)return;_2.addEventListener("click",s);var f2=document.querySelectorAll(a);f2&&f2.length>0&&f2.forEach(function(e2){e2.addEventListener("click",d)});var y2=document.getElementById(t2.submitButtonId);y2&&y2.addEventListener("click",w),t2.isModal?v():h(function(){d(),e instanceof Function&&e()});function s(e2){e2.preventDefault(),u2?d():l()}function l(){var e2=t2.isModal?document.querySelector(c):o2.querySelector(m);e2&&e2.classList.add(i2),u2=!0}function d(){var e2=t2.isModal?document.querySelector(c):o2.querySelector(m);e2!=null&&e2.classList.remove(i2),u2=!1}function h(a2){var m2="tl-wrapper",c2="tl-switcher";document.addEventListener("click",function(e2){if(u2&&!(!e2||!e2.target)){var t3=e2.target;if(!(t3.className&&typeof t3.className=="string"&&t3.className.includes(m2))){for(var o3=e2.composedPath(),n3=0;n3<o3.length;n3++){var r3=o3[n3];if(r3.className&&typeof r3.className=="string"&&r3.className.includes(m2)||r3.className&&typeof r3.className=="string"&&r3.className.includes(c2))return}a2()}}})}function w(){d(),n2 instanceof Function&&n2()}function v(){var e2=document.querySelector(c);if(!e2){var t3=o2.querySelector(m);t3&&(t3.remove(),document.body.appendChild(t3))}}return{openDropdown:l,closeDropdown:d}}function f(m,c){var e={containerId:m.languageSwitcherId,dropdownSelector:m.dropdownSelector,optionsListSelector:m.optionsListSelector,itemList:m.languageList,selectedItem:m.currentLocale,generateLabel:function(e2){return m.labelType==="language-name"?e2.endonym_name:e2.display_code},onItemSelect:function(e2,t3){if(e2)if(c)c(e2);else if(localStorage.setItem("translation-lab-lang",e2.iso_code),m.useInternationalDomains){var o2=u(e2,m.currentLocale,m.shopDomain,m.useInternationalDomains);o2&&g.location.assign(o2)}else{var n2=t3.querySelector("form");if(!n2)return;var r2=t3.querySelector('input[name="language_code"]');if(!r2)return;var a2=r2;a2.value=e2.iso_code,n2.submit()}}},a=i(e);if(!a)return;function t2(){var t3=a==null?void 0:a.getSelectedItem();if(!(!t3||t3.iso_code===m.currentLocale)){var e2=m.languageList.find(function(e3){return e3.iso_code.toLowerCase()===t3.iso_code.toLowerCase()});if(e2)if(localStorage.setItem("translation-lab-lang",t3.iso_code),m.useInternationalDomains){var o2=u(e2,m.currentLocale,m.shopDomain,m.useInternationalDomains);o2&&g.location.assign(o2)}else{var n2=a==null?void 0:a.container.querySelector("form"),r2=a==null?void 0:a.container.querySelector('input[name="language_code"]');r2.value=e2.iso_code,n2&&n2.submit()}}}return{resetSelection:a.resetSelection,acceptLanguageChange:t2}}function y(c,m){var u2=c.languageList.find(function(e2){return e2.iso_code.toLowerCase()===c.currentLocale.toLowerCase()});if(!u2)return;var n2=u2,i2=c.langCurrencies,e=S(u2.iso_code,i2,c.shopCurrencyCode),r2=f2(u2),t2=!0,_2=D(c,r2,e.currencies);if(!_2)return;a(u2),w(),p(o2);function o2(){t2&&v(u2.iso_code,f2(u2))}function f2(e2){var t3,o3,n3,r3=(n3=(o3=(t3=g.TranslationLab)===null||t3===void 0?void 0:t3.Currency)===null||o3===void 0?void 0:o3.cookie)===null||n3===void 0?void 0:n3.read(),a2=C(i2,e2.iso_code,r3,c.shopCurrencyCode),m2=a2?a2.code:c.shopCurrencyCode;return m2}function a(e2){n2=e2;var t3=S(e2.iso_code,i2,c.shopCurrencyCode),o3=document.getElementById(c.currencyOptionsId);if(o3){var a2=o3;
1a2.innerHTML="",t3.currencies.forEach(function(e3){var t4=document.createElement("li");if(t4.classList.add("tl-option"),c.showFlags){var o4=document.createElement("img");o4.src=L.replace("[country-code]",e3.code.slice(0,2).toLowerCase()),o4.classList.add("tl-flag"),t4.appendChild(o4)}var n3=document.createElement("span");n3.classList.add("tl-label"),n3.innerText=e3.code,t4.appendChild(n3),t4.addEventListener("click",r3),a2.appendChild(t4);function r3(){_2&&(_2.selectItem(e3),m?m(e3):y2(u2.iso_code,e3.code))}}),d(e2.iso_code,f2(e2))}}function y2(e2,t3){d(e2,t3),h(e2,t3)}function s(){if(_2){var e2=_2.getCurrentSelection();y2(n2.iso_code,e2.code)}}function l(){n2=u2,_2==null||_2.resetSelection()}function d(e2,t3){if(_2){var o3=C(i2,e2,t3,c.shopCurrencyCode);o3&&_2.selectItem(o3)}}function h(e2,t3){var o3=C(i2,e2,t3,c.shopCurrencyCode);o3&&(r2=o3.code,g.TranslationLab.Currency.cookie.write(r2),w())}function w(){var e2=new CustomEvent("tlab_currency_change",{detail:{currencyCode:r2}});document.dispatchEvent(e2),document.querySelectorAll(".tl-selection.tl-currency").forEach(function(e3){var t3=e3.getElementsByTagName("span")[0],o3=e3.getElementsByTagName("img")[0];t3.innerText=r2,o3&&(o3.src=L.replace("[country-code]",r2.slice(0,2).toLowerCase().toLowerCase()))})}function v(e2,t3){var o3=C(i2,e2,t3,c.shopCurrencyCode);o3&&g.TranslationLab.Currency.convertAll(c.shopCurrencyCode,r2,o3.code,c.currencyFormatClass)}function p(o3){document.addEventListener("readystatechange",function(){document.querySelectorAll("select").forEach(function(e3){e3.addEventListener("change",function(){o3(),setTimeout(o3)})})});var e2=document.querySelector("body"),t3={attributes:!0,childList:!0,subtree:!0},n3=function(e3,t4){o3()},r3=new MutationObserver(n3);r3.observe(e2,t3)}return{resetSelection:l,updateCurrencyList:a,acceptCurrencyChange:s}}function t(o2){var e=document.querySelectorAll(".tl-desktop-container, .tl-mobile-container, .tl-wrapper");e.forEach(function(e2){var t3=_(e2,o2,c,m)});var t2=y(o2,r2),n2=f(o2,a);function r2(e2){}function a(e2){e2&&(t2==null||t2.updateCurrencyList(e2))}function m(){t2==null||t2.acceptCurrencyChange(),n2==null||n2.acceptLanguageChange()}function c(){t2==null||t2.resetSelection(),n2==null||n2.resetSelection()}}function o(o2){var e=document.querySelectorAll(".tl-desktop-container, .tl-mobile-container, .tl-wrapper");e.forEach(function(e2){var t3=_(e2,o2,m,c)});var t2={containerId:o2.currencySwitcherId,dropdownSelector:o2.dropdownSelector,optionsListSelector:o2.optionsListSelector,itemList:o2.availableCountries,selectedItem:o2.currentCountry,generateLabel:function(e2){return e2.name},onItemSelect:function(e2,t3){if(e2){var o3=t3.querySelector("form");if(o3){var n3=t3.querySelector('input[name="country_code"]');if(n3){var r3=n3;r3.value=e2.iso_code,o3.submit()}}}}},n2=i(t2),r2={containerId:o2.languageSwitcherId,dropdownSelector:o2.dropdownSelector,optionsListSelector:o2.optionsListSelector,itemList:o2.languageList,selectedItem:o2.currentLocale,generateLabel:function(e2){return o2.labelType==="language-name"?e2.endonym_name:e2.display_code},onItemSelect:function(e2,t3){if(e2){var o3=t3.querySelector("form");if(o3){var n3=t3.querySelector('input[name="language_code"]');if(n3){localStorage.setItem("translation-lab-lang",e2.iso_code);var r3=n3;r3.value=e2.iso_code,o3.submit()}}}}},a=i(r2);function m(){}function c(){}}function n(e){var t2={containerId:e.currencySwitcherId,dropdownSelector:e.dropdownSelector,optionsListSelector:e.optionsListSelector,itemList:e.availableCountries,selectedItem:e.currentCountry,generateLabel:function(e2){return e2.name},onItemSelect:function(e2,t3){if(e2){var o3=t3.querySelector("form");if(o3){var n2=t3.querySelector('input[name="country_code"], input[name="currency_code"]');if(n2){var r2=n2;r2.value=e2.iso_code,o3.submit()}}}}},o2=i(t2)}function r(o2){var e=document.querySelectorAll(".tl-desktop-container, .tl-mobile-container, .tl-wrapper");e.forEach(function(e2){var t3=_(e2,o2,m,c)});var t2={containerId:o2.currencySwitcherId,dropdownSelector:o2.dropdownSelector,optionsListSelector:o2.optionsListSelector,itemList:o2.availableCountries,selectedItem:o2.currentCountry,generateLabel:function(e2){return e2.name},onItemSelect:function(e2,t3){if(e2){var o3=t3.querySelector("form");if(o3){var n3=t3.querySelector('input[name="country_code"]');if(n3){var r3=n3;r3.value=e2.iso_code,o3.submit()}}}}},n2=i(t2),r2={containerId:o2.languageSwitcherId,dropdownSelector:o2.dropdownSelector,optionsListSelector:o2.optionsListSelector,itemList:o2.languageList,selectedItem:o2.currentLocale,generateLabel:function(e2){return o2.labelType==="language-name"?e2.endonym_name:e2.display_code},onItemSelect:function(e2,t3){if(e2){var o3=t3.querySelector("form");if(o3){var n3=t3.querySelector('input[name="language_code"]');if(n3){localStorage.setItem("translation-lab-lang",e2.iso_code);var r3=n3;r3.value=e2.iso_code,o3.submit()}}}}},a=i(r2);function m(){}function c(){}}typeof g.TranslationLab=="undefined"&&(g.TranslationLab={}),typeof g.TranslationLab.AdvancedSwitcher=="undefined"&&(g.TranslationLab.AdvancedSwitcher={configure:function(e){switch(e.switcherMode){case"language_switcher":return f(e);case"currency_switcher":return y(e);case"language_and_currency_switcher":return t(e);case"region_country_and_language_switcher":return o(e);case"region_country_switcher":return n(e);case"region_currency_and_language_switcher":return r(e)}}})})(window);
2//# sourceMappingURL=/cdn/shop/t/13/assets/translation-lab-switcher.js.map?v=172853799559128308401656324499

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.