{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/WOOMC/Frontend/src/Console.js","webpack:///./src/WOOMC/Frontend/src/CurrencyCookie.js","webpack:///./src/WOOMC/Frontend/src/Reloaded.js","webpack:///./src/WOOMC/Frontend/src/frontend.js","webpack:///./src/WOOMC/Frontend/src/Prerequisites.js","webpack:///./src/WOOMC/Frontend/src/Cookie.js","webpack:///./src/WOOMC/Frontend/src/Cache.js","webpack:///./src/WOOMC/Frontend/src/Page.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","formatMessage","msg","formatData","level","theTrace","Error","stack","split","shift","Date","toLocaleString","window","location","href","printMessage","woomc","console_log","console","debug","error","info","log","warn","Console","require","Cookie","cookieSettings","set","currency","document","cookie","expires","notAsCached","activeCookie","RELOADED_NAME","unset","isSet","some","item","trim","startsWith","Prerequisites","CurrencyCookie","Cache","jQuery","$","met","settings","woocommerce_default_customer_address","bust","search","indexOf","referrer","body","trigger","navigator","cookieEnabled","theCookie","find","row","Reloaded","history","replaceState","Page","reload","currentURL","appendTo","submit"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,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,QAAQC,cAClBnD,OAAOkD,QAAQC,aAAa,KAAM,KAAMnD,OAAOC,SAASC,OAM1D,GADuBW,EAAQ,GACZQ,cAAe,CACjC,IAAM+B,EAAOvC,EAAQ,GACrBD,EAAQL,MAAM,qBACd6C,EAAKC,eA7BLzC,EAAQJ,MAAM,mE,gBCYhBpD,EAAOD,QAAU,CAChBkG,OAhBc,WAEdxC,EAAQ,GAAcG,MAEtBiB,OAAO,SACN,CACC,OAAU,OACV,OAAU7B,MAAMkD,aAGhBC,SAASrC,SAASwB,MAClBc","file":"frontend.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 3);\n","/**\n * Browser console API.\n * @since 2.6.3\n * Copyright (c) 2020, TIV.NET INC. All Rights Reserved.\n */\n\n/**\n * @namespace woomc\n * @property {string} currentURL\n * @property {string} currency\n * @property {Object} cookieSettings\n * @property {string} cookieSettings.name\n * @property {number} cookieSettings.expires\n * @property {string} console_log\n * @property {string} settings\n * @property {string} settings.woocommerce_default_customer_address\n */\n\n/**\n * @namespace woomc_currency_selector\n * @property {string} currencySelectorDOM\n * @property {string} url.currencySelectorCSS\n * @property {string} url.currencyFlagsCSS\n */\n\nconst LABEL = \"WooCommerce-Multicurrency-Frontend\";\n\n/**\n * To activate console messages, need to set a cookie.\n * @returns {boolean}\n */\nconst isActive = () => \"object\" === typeof woomc && \"Y\" === woomc.console_log;\n\n/**\n * Format the message.\n * @param {string} msg Raw message.\n * @returns {string}\n */\nconst formatMessage = (msg) => `[${LABEL}] ${msg}`;\n\n/**\n * Format the data object attached to the message.\n * @param {string} level Severity.\n * @param {string} msg Raw message.\n * @returns {{msg: string, trace: string[], level: string, url: string, timestamp: string}}\n */\nconst formatData = (level, msg) => {\n\tlet theTrace = new Error().stack.split(\"\\n\");\n\ttheTrace.shift();\n\n\treturn {\n\t\t\"level\": level,\n\t\t// \"msg\": msg,\n\t\t\"timestamp\": new Date().toLocaleString(),\n\t\t\"url\": window.location.href,\n\t\t\"trace\": theTrace\n\t}\n};\n\n/**\n * Print the console message.\n * @param {string} msg Raw message.\n * @param {string} level Severity.\n */\nconst printMessage = (msg, level) => {\n\tif (!isActive()) {\n\t\treturn;\n\t}\n\n\tswitch (level) {\n\t\tcase \"DEBUG\":\n\t\t\tconsole.debug(formatMessage(msg), formatData(level, msg));\n\t\t\tbreak;\n\t\tcase \"ERROR\":\n\t\t\tconsole.error(formatMessage(msg), formatData(level, msg));\n\t\t\tbreak;\n\t\tcase \"INFO\":\n\t\t\tconsole.info(formatMessage(msg), formatData(level, msg));\n\t\t\tbreak;\n\t\tcase \"LOG\":\n\t\t\tconsole.log(formatMessage(msg), formatData(level, msg));\n\t\t\tbreak;\n\t\tcase \"WARN\":\n\t\t\tconsole.warn(formatMessage(msg), formatData(level, msg));\n\t\t\tbreak;\n\t\tdefault:\n\t\t// Do nothing.\n\t}\n};\n\n/**\n * Display console message.\n * @param msg The message text.\n */\nconst debug = (msg) => printMessage(msg, \"DEBUG\");\nconst error = (msg) => printMessage(msg, \"ERROR\");\nconst info = (msg) => printMessage(msg, \"INFO\");\nconst log = (msg) => printMessage(msg, \"LOG\");\nconst warn = (msg) => printMessage(msg, \"WARN\");\n\nmodule.exports = {\n\tdebug,\n\terror,\n\tinfo,\n\tlog,\n\twarn\n};\n","/*\n * Copyright (c) 2020, TIV.NET INC. All Rights Reserved.\n */\n\n/**\n * @namespace woomc\n * @property {Object} cookieSettings\n * @property {string} cookieSettings.name\n */\n\nconst MODULE = \"CurrencyCookie\";\n\nconst Console = require(\"./Console\");\nconst Cookie = require(\"./Cookie\");\n\n/**\n * Save currency in cookie.\n *\n * @param {string} currency The currency code.\n */\nconst set = (currency) => {\n\tdocument.cookie = `${woomc.cookieSettings.name}=${currency};path=/;max-age=${woomc.cookieSettings.expires};samesite=strict`;\n};\n\nconst get = () => Cookie.get(woomc.cookieSettings.name);\n\nconst notAsCached = () => {\n\n\tconst activeCookie = get();\n\n\tConsole.debug(`[${MODULE}] Cookies: active=${activeCookie}; woomc.currency=${woomc.currency}`);\n\n\tif (activeCookie !== woomc.currency) {\n\t\tConsole.debug(\"activeCookie !== woomc.currency\");\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n\n\nmodule.exports = {\n\tget,\n\tset,\n\tnotAsCached\n};\n","/*\n * Copyright (c) 2020, TIV.NET INC. All Rights Reserved.\n */\n\nconst RELOADED_NAME = \"woocommerce-multicurrency-reloaded\";\n\nconst set = () => {\n\tdocument.cookie = `${RELOADED_NAME}=1;samesite=strict`;\n};\n\nconst unset = () => {\n\tdocument.cookie = `${RELOADED_NAME}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;samesite=strict`;\n};\n\nconst isSet = () => {\n\treturn document.cookie.split(\";\").some((item) => item.trim().startsWith(`${RELOADED_NAME}=`))\n};\n\nmodule.exports = {\n\tset,\n\tunset,\n\tisSet\n};\n","/**\n * JS to handle the currency selector.\n *\n * @package WooCommerce-MultiCurrency\n *\n * @since 1.17.0\n *\n * Copyright (c) 2019, TIV.NET INC. All Rights Reserved.\n */\n/*global woomc*/\n\nconst MODULE = \"ROOT\";\n\nconst Prerequisites = require(\"./Prerequisites\");\nconst CurrencyCookie = require(\"./CurrencyCookie\");\nconst Cache = require(\"./Cache\");\nconst Console = require(\"./Console\");\n\njQuery(function ($) {\n\n\tif (!Prerequisites.met()) {\n\t\treturn;\n\t}\n\n\t/**\n\t * @namespace woomc\n\t * @property {string} currentURL\n\t * @property {string} currency\n\t * @property {Object} cookieSettings\n\t * @property {string} cookieSettings.name\n\t * @property {number} cookieSettings.expires\n\t * @property {string} console_log\n\t * @property {string} settings\n\t * @property {string} settings.woocommerce_default_customer_address\n\t */\n\n\t/**\n\t * @namespace woomc_currency_selector\n\t * @property {string} currencySelectorDOM\n\t * @property {string} url.currencySelectorCSS\n\t * @property {string} url.currencyFlagsCSS\n\t */\n\n\tConsole.debug(`[${MODULE}] Geolocation=${woomc.settings.woocommerce_default_customer_address}`);\n\tConsole.debug(`[${MODULE}] Currency: on page=${woomc.currency}, in cookie=${CurrencyCookie.get()}`);\n\n\t/**\n\t * Check if we need to reload the outdated cached page.\n\t *\n\t * @since 1.20.1\n\t */\n\tCache.bust();\n\n\t/**\n\t * Refresh fragments when URL contains \"currency=...\" and it's not repeated (referer).\n\t * Otherwise, the mini-cart keeps the old currency.\n\t *\n\t * @since 2.8.2\n\t */\n\tif (\n\t\twindow.location.search.indexOf(\"currency=\") !== -1\n\t\t&& document.referrer.indexOf(`currency=${woomc.currency}`) === -1\n\t) {\n\t\t$(document.body).trigger(\"wc_fragment_refresh\");\n\t\tConsole.debug('Currency switch in URL detected. Refreshed fragments.');\n\t}\n\n\tConsole.debug(`[${MODULE}] The End.`);\n});\n","/*\n * Copyright (c) 2020, TIV.NET INC. All Rights Reserved.\n */\n\n/**\n * @namespace woomc\n */\n\nconst Console = require(\"./Console\");\n\n/**\n * Check if prerequisites met.\n * @returns {boolean}\n */\nconst met = () => {\n\n\tif (\"undefined\" === typeof woomc) {\n\t\tConsole.error(\"Internal Error: Undefined 'woomc'.\");\n\t\t// disableCurrencySelectors();\n\t\treturn false;\n\t}\n\n\t// Browser with cookies disabled.\n\tif (!navigator.cookieEnabled) {\n\t\tConsole.error(\"Cookies disabled in the browser. Currency selector will not work.\");\n\t\t// disableCurrencySelectors();\n\t\treturn false;\n\t}\n\n\tConsole.debug(\"Frontend prerequisites met.\");\n\treturn true;\n\n};\n\n// const disableCurrencySelectors = () => {\n// \tdocument\n// \t\t.querySelectorAll(\".woocommerce-currency-selector\")\n// \t\t.forEach(selector => {\n// \t\t\tselector.disabled = true;\n// \t\t\tselector.style.opacity = \".2\";\n// \t\t})\n// \t;\n// }\n\nmodule.exports = {\n\tmet\n};\n","/**\n * Cookie handling.\n * @since 2.6.3\n * Copyright (c) 2020, TIV.NET INC. All Rights Reserved.\n */\n\n/**\n * Get a cookie value.\n * @param {string} name Name of the cookie.\n * @returns {string} The value or empty string if not found.\n */\nconst get = (name) => {\n\tconst theCookie = document.cookie\n\t\t.split('; ')\n\t\t.find(row => row.startsWith(`${name}=`));\n\n\treturn theCookie ? theCookie.split('=')[1] : \"\";\n};\n\nmodule.exports = {\n\tget\n};\n","/*\n * Copyright (c) 2020, TIV.NET INC. All Rights Reserved.\n */\n\nconst Console = require(\"./Console\");\n\n/**\n * If the body class' currency does not match the currency cookie,\n * we assume that the page is cached. We'll try to reload it.\n *\n * @since 1.20.1\n * @since 1.20.2 Check for a special cookie because not all themes have the body class filter.\n * @since 2.0.0 Do not use body class for checking. Use the woomc.currency var set by backend.\n * @since 2.6.3 Ignore browsers with cookies disabled.\n */\nconst bust = () => {\n\n\t// Browser with cookies disabled. Cannot help.\n\tif (!navigator.cookieEnabled) {\n\t\tConsole.error(\"Cookies disabled in the browser. Cache buster will not work.\");\n\t\treturn;\n\t}\n\n\t// Currency is set via URL. No additional processing is needed.\n\tif (window.location.search.indexOf(\"currency=\") > 0) {\n\t\tConsole.debug(\"Currency is set via URL. No additional processing is needed.\");\n\t\treturn;\n\t}\n\n\t/**\n\t * The `reloaded` cookie tells that the page was just reloaded.\n\t * To avoid endless loop, we check for it and do not reload.\n\t */\n\tconst Reloaded = require(\"./Reloaded\");\n\tif (Reloaded.isSet()) {\n\t\tReloaded.unset();\n\t\t// Also, we try a trick to make the browser forgetting that we reloaded using a POST.\n\t\t// Otherwise, if people try F5, browser prompts for form re-submission.\n\t\tif (window.history.replaceState) {\n\t\t\twindow.history.replaceState(null, null, window.location.href);\n\t\t}\n\t\treturn;\n\t}\n\n\tconst CurrencyCookie = require(\"./CurrencyCookie\");\n\tif (CurrencyCookie.notAsCached()) {\n\t\tconst Page = require(\"./Page\");\n\t\tConsole.debug(\"Reloading page...\");\n\t\tPage.reload();\n\t}\n};\n\nmodule.exports = {\n\tbust\n};\n","/*\n * Copyright (c) 2020, TIV.NET INC. All Rights Reserved.\n */\n\n/**\n * @namespace woomc\n * @property {string} currentURL\n */\n\n/**\n * Force reloading page from the server.\n *\n * @since 1.20.1\n * @since 1.20.2 Set also a special cookie because not all themes have the body class filter.\n */\n\nconst reload = () => {\n\n\trequire(\"./Reloaded\").set();\n\n\tjQuery(\"