1magbox.currencyConversion=function(){function e(r){a.write(r)}function o(e){e!=c.baseCurrency&&magbox.cache.$currency_prices.each(function(r){$this=$(this),currencyPrice=Currency.convert(this.getAttribute("data-price"),c.baseCurrency,e);var n=Shopify.formatMoney(currencyPrice,c.currencyFormats[e].money_with_currency_format);$this.html("(approx "+n+")")})}var c={currencyFormats:{USD:{money_format:"$",money_with_currency_format:"${{amount}} USD"},EUR:{money_format:"€",money_with_currency_format:"€{{amount}} EUR"},GBP:{money_format:"£",money_with_currency_format:"£{{amount}} GBP"},CAD:{money_format:"$",money_with_currency_format:"${{amount}} CAD"}},baseCurrency:"GBP",onComplete:null},a={configuration:{expires:60,domain:window.location.hostname},name:"magbox_cc",write:function(r){magbox.cookies.set(this.name,r,this.configuration)},read:function(){var r="",n=magbox.cookies.get(this.name);return void 0!==n&&(r=n),r},destroy:function(){magbox.cookies.remove(this.name,this.configuration)}};return{showCurrencyPrices:function(r){if(magbox.hasOwnProperty("cookies")){r=r||{};jQuery.extend(c,r),r.useCurrency&&e(r.useCurrency);var n=a.read();""!=n?o(n):$.getJSON("https://api.ipgeolocation.io/ipgeo?fields=currency",function(r){n=c.currencyFormats.hasOwnProperty(r.currency.code)?r.currency.code:c.baseCurrency,e(n),o(n)})}},getConfig:function(){return c},clearCurrency:function(){a.destroy()}}}(),magbox.initCurrencyConversions=function(){var r=magbox.currencyConversion.getConfig(),n={};Shopify.queryParams.hasOwnProperty("mbcurrency")&&("reset"==Shopify.queryParams.mbcurrency?magbox.currencyConversion.clearCurrency():r.currencyFormats.hasOwnProperty(Shopify.queryParams.mbcurrency)&&(n.useCurrency=Shopify.queryParams.mbcurrency)),magbox.isBot()||magbox.currencyConversion.showCurrencyPrices(n)},$(magbox.initCurrencyConversions);
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.