/* =========================================================== -- DO NOT EDIT!!!---------------------------------------- -- THIS IS A GENERATED FILE. CHANGES WILL BE OVERWRITTEN -- =========================================================== */ /* * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file in the browser devtools. * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) * or disable the default devtool with "devtool: false". * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). */ /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "./src/scripts/core/loaded.js": /*!************************************!*\ !*** ./src/scripts/core/loaded.js ***! \************************************/ /***/ ((__unused_webpack_module, exports) => { eval("\n\nObject.defineProperty(exports, \"__esModule\", ({\n value: true\n}));\nexports.isScriptLoaded = exports.markScriptLoaded = void 0;\n\nvar markScriptLoaded = function markScriptLoaded(name) {\n window.POINTER = window.POINTER || {};\n window.POINTER.loadedScripts = window.POINTER.loadedScripts || {};\n window.POINTER.loadedScripts[name] = true;\n};\n\nexports.markScriptLoaded = markScriptLoaded;\n\nvar isScriptLoaded = function isScriptLoaded(name) {\n var _window$POINTER, _window$POINTER$loade;\n\n return (_window$POINTER = window.POINTER) === null || _window$POINTER === void 0 ? void 0 : (_window$POINTER$loade = _window$POINTER.loadedScripts) === null || _window$POINTER$loade === void 0 ? void 0 : _window$POINTER$loade[name];\n};\n\nexports.isScriptLoaded = isScriptLoaded;\n\n//# sourceURL=webpack://starter-theme/./src/scripts/core/loaded.js?"); /***/ }), /***/ "./src/scripts/sections/featured-promotion.js": /*!****************************************************!*\ !*** ./src/scripts/sections/featured-promotion.js ***! \****************************************************/ /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { eval("\n\nvar _loaded = __webpack_require__(/*! @scripts/core/loaded */ \"./src/scripts/core/loaded.js\");\n\nvar SECTION_NAME = 'featured-promotion';\n\nfunction featuredPromotion() {\n var featuredPromotionCTAs = document.querySelectorAll('[data-featured-promotion-cta]');\n var featuredPromotionSignups = document.querySelectorAll('[data-featured-promotion-signup]');\n featuredPromotionCTAs.forEach(function (featuredPromotionCTA, index) {\n featuredPromotionCTA.addEventListener('click', function () {\n featuredPromotionCTA.classList.add('hide');\n featuredPromotionSignups[index].classList.remove('hide');\n });\n });\n} // Ensure section JS only runs once\n\n\nif (!(0, _loaded.isScriptLoaded)(SECTION_NAME)) {\n document.addEventListener('DOMContentLoaded', function () {\n return featuredPromotion();\n });\n (0, _loaded.markScriptLoaded)(SECTION_NAME);\n}\n\n//# sourceURL=webpack://starter-theme/./src/scripts/sections/featured-promotion.js?"); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module can't be inlined because the eval devtool is used. /******/ var __webpack_exports__ = __webpack_require__("./src/scripts/sections/featured-promotion.js"); /******/ /******/ })() ;