PageSourceSearch

https://ollyball.com/cdn/shop/t/26/assets/jquery.currencies.js?v=19854048739398275171790350398

js ollyball.com collected 2026-10-07 17:08:55 UTC 23,334 bytes, 2 lines download raw bytes

1/*! jquery.cookie v1.4.1 | MIT */if((function(a){typeof define=="function"&&define.amd?define(["jquery"],a):a(typeof exports=="object"?require("jquery"):jQuery)})(function(a){function b(a2){return h.raw?a2:encodeURIComponent(a2)}function c(a2){return h.raw?a2:decodeURIComponent(a2)}function d(a2){return b(h.json?JSON.stringify(a2):String(a2))}function e(a2){a2.indexOf('"')===0&&(a2=a2.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a2=decodeURIComponent(a2.replace(g," ")),h.json?JSON.parse(a2):a2}catch(b2){}}function f(b2,c2){var d2=h.raw?b2:e(b2);return a.isFunction(c2)?c2(d2):d2}var g=/\+/g,h=a.cookie=function(e2,g2,i){if(g2!==void 0&&!a.isFunction(g2)){if(i=a.extend({},h.defaults,i),typeof i.expires=="number"){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e2),"=",d(g2),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e2?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e2&&e2===q){l=f(r,g2);break}e2||(r=f(r))===void 0||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b2,c2){return a.cookie(b2)===void 0?!1:(a.cookie(b2,"",a.extend({},c2,{expires:-1})),!a.cookie(b2))}}),typeof BtCurrency=="undefined")var BtCurrency={};BtCurrency.loadedData=!1,BtCurrency.cookie={configuration:{expires:365,path:"/",domain:window.location.hostname},name:"currency",nativeName:"native_currency",write:function(currency){jQuery.cookie(this.name,currency,this.configuration)},read:function(){return jQuery.cookie(this.name)},destroy:function(){jQuery.cookie(this.name,null,this.configuration)},writeNative:function(currency){jQuery.cookie(this.nativeName,currency,this.configuration)},readNative:function(){return jQuery.cookie(this.nativeName)},destroyNative:function(){jQuery.cookie(this.nativeName,null,this.configuration)}},BtCurrency.moneyFormats={USD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} USD"},EUR:{money_format:"€{{amount}}",money_with_currency_format:"€{{amount}} EUR"},GBP:{money_format:"£{{amount}}",money_with_currency_format:"£{{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"},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:"¥{{amount}}",money_with_currency_format:"¥{{amount}} CNY"},COP:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} COP"},CRC:{money_format:"₡ {{amount_with_comma_separator}}",money_with_currency_format:"₡ {{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_with_comma_separator}} Kč",money_with_currency_format:"{{amount_with_comma_separator}} Kč"},DKK:{money_format:"{{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₵{{amount}}",money_with_currency_format:"GH₵{{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:"¥{{amount_no_decimals}}",money_with_currency_format:"¥{{amount_no_decimals}} JPY"},JEP:{money_format:"£{{amount}}",money_with_currency_format:"£{{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£{{amount}}",money_with_currency_format:"L£{{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}}",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:"ƒ{{amount}}",money_with_currency_format:"{{amount}} NAƒ"},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:"₦{{amount}}",money_with_currency_format:"₦{{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:"₱{{amount}}",money_with_currency_format:"₱{{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:"руб{{amount_with_comma_separator}}",money_with_currency_format:"руб{{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£{{amount}}",money_with_currency_format:"S£{{amount}} SYP"},ZAR:{money_format:"R {{amount}}",money_with_currency_format:"R {{amount}} ZAR"},KRW:{money_format:"₩{{amount_no_decimals}}",money_with_currency_format:"₩{{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}} ฿",money_with_currency_format:"{{amount}} ฿ 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}}₫",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}}"}},BtCurrency.formatMoney=function(cents,format,notUseShopifyfunction){if(typeof Shopify.formatMoney=="function"&&notUseShopifyfunction==null)return Shopify.formatMoney(cents,format);typeof cents=="string"&&(cents=cents.replace(".",""));var value="",placeholderRegex=/\{\{\s*(\w+)\s*\}\}/,formatString=format||"${{amount}}";function defaultOption(opt,def){return typeof opt=="undefined"?def:opt}function formatWithDelimiters(number,precision,thousands,decimal){if(precision=defaultOption(precision,2),thousands=defaultOption(thousands,","),decimal=defaultOption(decimal,"."),isNaN(number)||number==null)return 0;number=(number/100).toFixed(precision);var parts=number.split("."),dollars=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),cents2=parts[1]?decimal+parts[1]:"";return dollars+cents2}switch(formatString.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2);break;case"amount_no_decimals":value=formatWithDelimiters(cents,0);break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,".",",");break;case"amount_with_decimals_no_comma_separator":value=formatWithDelimiters(cents,2,"",".");break}return formatString.replace(placeholderRegex,value)},BtCurrency.convert=function(o,m,t){return o*this.rates[m]/this.rates[t]},BtCurrency.rates={USD:1,EUR:1.16926,GBP:1.3222,CAD:.761119,ARS:.0356352,AUD:.738651,BRL:.254338,CLP:.00152325,CNY:.150659,CYP:.397899,CZK:.0451043,DKK:.156894,EEK:.0706676,HKD:.127433,HUF:.00361256,ISK:.00936811,INR:.0145123,JMD:.0077186,JPY:.00904407,LVL:1.57329,LTL:.320236,MTL:.293496,MXN:.0519375,NZD:.679459,NOK:.124031,PLN:.268687,SGD:.732704,SKK:21.5517,SIT:175.439,ZAR:.0738248,KRW:89404e-8,SEK:.114038,CHF:1.00682,TWD:.0327553,UYU:.0316395,MYR:.247258,BSD:1,CRC:.00176387,RON:.250871,PHP:.0187052,AED:.272294,VEB:100125e-9,IDR:695175e-10,TRY:.217034,THB:.030106,TTD:.148555,ILS:.274856,SYP:.00194171,XCD:.370032,COP:347453e-9,RUB:.0158237,HRK:.15807,KZT:.00291045,TZS:439667e-9,XPT:842.45,SAR:.266667,NIO:.03165,LAK:118584e-9,OMR:2.60078,AMD:.00207065,CDF:618062e-9,KPW:.0011111,SPL:6,KES:.00992762,ZWD:.00276319,KHR:246637e-9,MVR:.0649462,GTQ:.133497,BZD:.497885,BYR:50351e-9,LYD:.729901,DZD:.00849263,BIF:560288e-9,GIP:1.3222,BOB:.144812,XOF:.00178252,STD:475536e-10,NGN:.00277025,PGK:.30758,ERN:.0666667,MWK:.00137719,CUP:.0377358,GMD:.0211902,CVE:.0106036,BTN:.0145123,XAF:.00178252,UGX:260565e-9,MAD:.105694,MNT:405757e-9,LSL:.0738248,XAG:16.0535,TOP:.438338,SHP:1.3222,RSD:.00991164,HTG:.0150217,MGA:302168e-9,MZN:.0168891,FKP:1.3222,BWP:.0964214,HNL:.0416059,PYG:1
175657e-9,JEP:1.3222,EGP:.0558945,LBP:66335e-8,ANG:.558145,WST:.385845,TVD:.738651,GYD:.00477651,GGP:1.3222,NPR:.00902785,KMF:.00237669,IRR:233048e-10,XPD:951.531,SRD:.133929,TMM:571317e-10,SZL:.0738248,MOP:.123721,BMD:1,XPF:.00979836,ETB:.0362643,JOD:1.41044,MDL:.0594929,MRO:.00280885,YER:.00398709,BAM:.597831,AWG:.558659,PEN:.304184,VEF:.100125,SLL:125571e-9,KYD:1.21951,AOA:.00399351,TND:.381838,TJS:.108976,SCR:.074035,LKR:.00629133,DJF:.00561816,GNF:110564e-9,VUV:.00892424,SDG:.0555179,IMP:1.3222,GEL:.408996,FJD:.476295,DOP:.0202121,XDR:1.40866,MUR:.0289651,MMK:711224e-9,LRD:.0066019,BBD:.5,ZMK:102063e-9,XAU:1257.35,VND:433333e-10,UAH:.0379603,TMT:.285659,IQD:839791e-9,BGN:.597831,KGS:.0146654,RWF:.00116347,BHD:2.65957,UZS:12739e-8,PKR:.00821577,MKD:.0189717,AFN:.0135873,NAD:.0738248,BDT:.0118927,AZN:.587691,SOS:.00172891,QAR:.274725,PAB:1,CUC:1,SVC:.114286,SBD:.12612,ALL:.00925979,BND:.732704,KWD:3.30428,GHS:.208309,ZMW:.102063,XBT:6523,NTD:.0337206,BYN:.50351,CNH:.150114,MRU:.0280885,STN:.0475536},BtCurrency.convertNumber=function(number,oldCurrency,newCurrency){var cents=BtCurrency.convert(number,oldCurrency,newCurrency);return BtCurrency.formatMoney(cents,"{{amount_with_decimals_no_comma_separator}}",!0)},BtCurrency.convertSilence=function(oldCurrency,newCurrency,selector,format){enableCurrencyConverter==!1||this.loadedData==!1||jQuery(selector||"span.money").each(function(){if(jQuery(this).attr("data-currency")!==newCurrency){if(jQuery(this).attr("data-currency-"+newCurrency))jQuery(this).html(jQuery(this).attr("data-currency-"+newCurrency));
1else{var cents=0,oldFormat=BtCurrency.moneyFormats[oldCurrency][format||BtCurrency.format]||"{{amount}}",newFormat=BtCurrency.moneyFormats[newCurrency][format||BtCurrency.format]||"{{amount}}";oldFormat.indexOf("amount_no_decimals")!==-1?cents=BtCurrency.convert(parseInt(jQuery(this).html().replace(/[^0-9]/g,""),10)*100,oldCurrency,newCurrency):oldCurrency==="JOD"||oldCurrency=="KWD"||oldCurrency=="BHD"?cents=BtCurrency.convert(parseInt(jQuery(this).html().replace(/[^0-9]/g,""),10)/10,oldCurrency,newCurrency):cents=BtCurrency.convert(parseInt(jQuery(this).html().replace(/[^0-9]/g,""),10),oldCurrency,newCurrency);var newFormattedAmount=BtCurrency.formatMoney(cents,newFormat);jQuery(this).html(newFormattedAmount),jQuery(this).attr("data-currency-"+newCurrency,newFormattedAmount)}jQuery(this).attr("data-currency",newCurrency)}})},BtCurrency.convertAll=function(oldCurrency,newCurrency,selector,format){enableCurrencyConverter!=!1&&(this.convertSilence(oldCurrency,newCurrency,selector,format),this.currentCurrency=newCurrency,this.cookie.write(newCurrency))},BtCurrency.switcherClass={wrap:".currency-switcher",code:".cs__code",current:".cs__current-code",active:".active"},BtCurrency.addNativeCurrencyToSwitcher=function(){if(enableCurrencyAuto){var nativeCookie=this.cookie.readNative();nativeCookie!=null&&nativeCookie!=null&&nativeCookie!="undefined"&&$(this.switcherClass.wrap+" ul").length>0&&$(this.switcherClass.code+'[data-code="'+nativeCookie+'"]').length==0&&($(".csi__code--last").length>0&&$(".csi__code--last").removeClass("csi__code--last"),$(this.switcherClass.wrap+" ul").append('<li><a href="#" class="cs__code csi__code csi__code--last" data-code="'+nativeCookie+'">'+nativeCookie+"</a></li>"))}};var currencySubmitting=!1;BtCurrency.initSwitcher=function(){var selector=this.switcherClass;this.addNativeCurrencyToSwitcher(),$(document).on("click",selector.code,function(e){if(e.preventDefault(),enableCurrencyConverter){if(!BtCurrency.loadedData)return;var newCurrency=$(this).attr("data-code");if(newCurrency==BtCurrency.currentCurrency)return;var oldCurrency=BtCurrency.currentCurrency;BtCurrency.convertAll(oldCurrency,newCurrency),BtCurrency.updateSwitcher()}else{if(currencySubmitting)return;$("#currency_form").length>0&&(currencySubmitting=!0,$("#currency_form select").val($(this).attr("data-code")),$("#currency_form").submit())}})},BtCurrency.updateSwitcher=function(){var selector=this.switcherClass,newCurrency=this.currentCurrency;$(selector.wrap).length>0&&(($(selector.code+'[data-code="'+newCurrency+'"]').length>0||enableCurrencyAuto)&&$(selector.current).text(newCurrency),$(selector.code+selector.active).removeClass(selector.active.replace(".","")),$(selector.code+'[data-code="'+newCurrency+'"]').addClass(selector.active.replace(".","")))},BtCurrency.initSwitcher(),BtCurrency.format=currencyFormat,BtCurrency.moneyFormats[shopCurrency].money_with_currency_format=currencyFormat1,BtCurrency.moneyFormats[shopCurrency].money_format=currencyFormat2,BtCurrency.currentCurrency=defaultCurrency;function initCurrencies(){(enableCurrencyConverter||useCurrencyConverterPlusEngine&&defaultCurrency!=shopCurrency)&&$.getScript("//cdn.shopify.com/s/javascripts/currencies.js",function(data,textStatus,jqxhr){if(BtCurrency.rates=Currency.rates,enableCurrencyConverter){try{cookieCurrency=BtCurrency.cookie.read()}catch(err){}if(jQuery("span.money span.money").each(function(){jQuery(this).parents("span.money").removeClass("money")}),jQuery("span.money").each(function(){jQuery(this).attr("data-currency-"+shopCurrency,jQuery(this).html())}),cookieCurrency==null||cookieCurrency==null||cookieCurrency=="undefined")new Promise(function(resolve1,reject1){if(enableCurrencyAuto)try{var indexService=Math.floor(Math.random()*Math.floor(theme.currencyServices.length));$.getJSON(theme.currencyServices[indexService]).then(function(response){var countryCode;response.countryCode!=null?countryCode=response.countryCode:countryCode=response.country,new Promise(function(resolve2,reject2){$.getJSON("/?view=currencies",function(response2){response2[countryCode]!=null&&(defaultCurrency=response2[countryCode].code.split(",")[0],BtCurrency.cookie.writeNative(defaultCurrency),BtCurrency.addNativeCurrencyToSwitcher()),resolve1()})})},function(data2,status){console.log("Request failed.  Returned status of",status)})}catch(e){reject1(e)}else resolve1()}).then(function(){if(BtCurrency.loadedData=!0,shopCurrency!==defaultCurrency)BtCurrency.convertAll(shopCurrency,defaultCurrency);else{BtCurrency.currentCurrency=defaultCurrency;try{BtCurrency.cookie.write(defaultCurrency)}catch(err){}}BtCurrency.updateSwitcher()},function(err){console.log(err)});else if(jQuery(".currency-switcher").length&&jQuery('.cs__code[data-code="'+cookieCurrency+'"]').length===0){if(BtCurrency.loadedData=!0,enableCurrencyAuto)cookieCurrency===shopCurrency?(BtCurrency.loadedData=!0,BtCurrency.currentCurrency=shopCurrency):(BtCurrency.loadedData=!0,BtCurrency.convertAll(shopCurrency,cookieCurrency));else if(shopCurrency!==defaultCurrency)BtCurrency.convertAll(shopCurrency,defaultCurrency);else{BtCurrency.currentCurrency=defaultCurrency;try{BtCurrency.cookie.write(defaultCurrency)}catch(err){}}BtCurrency.updateSwitcher()}else cookieCurrency===shopCurrency?(BtCurrency.loadedData=!0,BtCurrency.currentCurrency=shopCurrency,BtCurrency.updateSwitcher()):(BtCurrency.loadedData=!0,BtCurrency.convertAll(shopCurrency,cookieCurrency),BtCurrency.updateSwitcher())}else useCurrencyConverterPlusEngine&&defaultCurrency!=shopCurrency&&(BT.convertProgressBar(),$(document).on("ajaxCart.afterUpdateHeaderCartHtml",function(){BT.convertProgressBar()}))})}
2//# sourceMappingURL=/cdn/shop/t/26/assets/jquery.currencies.js.map?v=19854048739398275171790350398

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.