vendor: 3,665 bytes, lines 1-88
1/******/ (function(modules) { // webpackBootstrap 2/******/ // The module cache 3/******/ var installedModules = {}; 4/******/ 5/******/ // The require function 6/******/ function __webpack_require__(moduleId) { 7/******/ 8/******/ // Check if module is in cache 9/******/ if(installedModules[moduleId]) { 10/******/ return installedModules[moduleId].exports; 11/******/ } 12/******/ // Create a new module (and put it into the cache) 13/******/ var module = installedModules[moduleId] = { 14/******/ i: moduleId, 15/******/ l: false, 16/******/ exports: {} 17/******/ }; 18/******/ 19/******/ // Execute the module function 20/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21/******/ 22/******/ // Flag the module as loaded 23/******/ module.l = true; 24/******/ 25/******/ // Return the exports of the module 26/******/ return module.exports; 27/******/ } 28/******/ 29/******/ 30/******/ // expose the modules object (__webpack_modules__) 31/******/ __webpack_require__.m = modules; 32/******/ 33/******/ // expose the module cache 34/******/ __webpack_require__.c = installedModules; 35/******/ 36/******/ // define getter function for harmony exports 37/******/ __webpack_require__.d = function(exports, name, getter) { 38/******/ if(!__webpack_require__.o(exports, name)) { 39/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40/******/ } 41/******/ }; 42/******/ 43/******/ // define __esModule on exports 44/******/ __webpack_require__.r = function(exports) { 45/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47/******/ } 48/******/ Object.defineProperty(exports, '__esModule', { value: true }); 49/******/ }; 50/******/ 51/******/ // create a fake namespace object 52/******/ // mode & 1: value is a module id, require it 53/******/ // mode & 2: merge all properties of value into the ns 54/******/ // mode & 4: return value when already ns object 55/******/ // mode & 8|1: behave like require 56/******/ __webpack_require__.t = function(value, mode) { 57/******/ if(mode & 1) value = __webpack_require__(value); 58/******/ if(mode & 8) return value; 59/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60/******/ var ns = Object.create(null); 61/******/ __webpack_require__.r(ns); 62/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64/******/ return ns; 65/******/ }; 66/******/ 67/******/ // getDefaultExport function for compatibility with non-harmony modules 68/******/ __webpack_require__.n = function(module) { 69/******/ var getter = module && module.__esModule ? 70/******/ function getDefault() { return module['default']; } : 71/******/ function getModuleExports() { return module; }; 72/******/ __webpack_require__.d(getter, 'a', getter); 73/******/ return getter; 74/******/ }; 75/******/ 76/******/ // Object.prototype.hasOwnProperty.call 77/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78/******/ 79/******/ // __webpack_public_path__ 80/******/ __webpack_require__.p = ""; 81/******/ 82/******/ 83/******/ // Load entry module and return exports 84/******/ return __webpack_require__(__webpack_require__.s = "./cartridges/app_wynns_skin/cartridge/client/default/js/tealconsent.js"); 85/******/ }) 86/************************************************************************/ 87/******/ ({ 88
89/***/ "../sfra/cartridges/app_storefront_base/cartridge/client/default/js/util.js": 90/*!**********************************************************************************!*\ 91 !*** ../sfra/cartridges/app_storefront_base/cartridge/client/default/js/util.js ***! 92 \**********************************************************************************/ 93/*! no static exports found */ 94/***/ (function(module, exports, __webpack_require__) { 95 96"use strict"; 97eval("\n\nmodule.exports = function (include) {\n if (typeof include === 'function') {\n include();\n } else if (typeof include === 'object') {\n Object.keys(include).forEach(function (key) {\n if (typeof include[key] === 'function') {\n include[key]();\n }\n });\n }\n};\n\n\n//# sourceURL=webpack:///../sfra/cartridges/app_storefront_base/cartridge/client/default/js/util.js?"); 98 99/***/ }), 100
101/***/ "./cartridges/app_wynns_skin/cartridge/client/default/js/tealconsent.js": 102/*!******************************************************************************!*\ 103 !*** ./cartridges/app_wynns_skin/cartridge/client/default/js/tealconsent.js ***! 104 \******************************************************************************/ 105/*! no static exports found */ 106/***/ (function(module, exports, __webpack_require__) { 107 108"use strict"; 109eval("\n\nvar processInclude = __webpack_require__(/*! base/util */ \"../sfra/cartridges/app_storefront_base/cartridge/client/default/js/util.js\");\n\n$(window).on(\"load\", function () {\n processInclude(__webpack_require__(/*! ./tealconsent/tealconsent */ \"./cartridges/app_wynns_skin/cartridge/client/default/js/tealconsent/tealconsent.js\"));\n});\n\n\n//# sourceURL=webpack:///./cartridges/app_wynns_skin/cartridge/client/default/js/tealconsent.js?"); 110 111/***/ }), 112
113/***/ "./cartridges/app_wynns_skin/cartridge/client/default/js/tealconsent/tealconsent.js": 114/*!******************************************************************************************!*\ 115 !*** ./cartridges/app_wynns_skin/cartridge/client/default/js/tealconsent/tealconsent.js ***! 116 \******************************************************************************************/ 117/*! no static exports found */ 118/***/ (function(module, exports, __webpack_require__) { 119 120"use strict"; 121eval("\n\nfunction isConsentCookieAvailable() {\n return !$.isEmptyObject(utag.gdpr.getCookieValues());\n}\n\nfunction hideElem(elem) {\n if (elem) {\n elem.addClass('d-none');\n }\n}\n\nfunction showElem(elem) {\n if (elem) {\n elem.removeClass('d-none');\n }\n}\n\nfunction addElem(elem) {\n if (elem) {\n elem.addClass('cookie-overlay');\n }\n}\n\nfunction removeElem(elem) {\n if (elem) {\n \telem.removeClass('cookie-overlay');\n }\n}\n\nfunction hideFooterBanner() {\n hideElem($('.cookie-banner-footer'));\n removeElem($('footer .container, .overlay'));\n}\n\nfunction showFooterBanner() {\n showElem($('.cookie-banner-footer'));\n addElem($('footer .container, .overlay'));\n}\n\nfunction isAgeGateAvailable() {\n return $('#age-gate-section').length > 0;\n}\n\nfunction getConsentMgrData() {\n var cookieData = utag.loader.RC('CONSENTMGR');\n var dataObj = {};\n if (!$.isEmptyObject(cookieData)) {\n cookieData.split('|').forEach(function (elem) {\n var arr = elem.split(':');\n if (arr[0] != 'ts' && arr[0] != 'consent') {\n dataObj[arr[0]] = (arr[1] == 1);\n }\n });\n }\n return dataObj;\n}\n\nfunction isPreferencePage() {\n return $('.container-tealium-wrapper').length > 0;\n}\n\nfunction isAgeGate1() {\n return $('#age-gate-section .cookie-consent-wrapper').length > 0;\n}\n\nfunction setCheckBoxesWithCookieData(cookieData) {\n if (!$.isEmptyObject(cookieData)){\n for( var i=1; i <=4; i++){\n $('#c' + i).prop('checked', cookieData[\"c\"+i] == 1);\n }\n }\n}\n\nfunction initialize() {\n hideElem($('.no-click-overlay'));\n setCheckBoxesWithCookieData(utag.gdpr.getCookieValues());\n}\n\nmodule.exports = function () {\n initialize();\n var isInEditMode = $('.cookie-banner-footer').data('edit-mode');\n if (isPreferencePage()) {\n if (!isConsentCookieAvailable()) {\n hideFooterBanner();\n $('.no-click-overlay').removeClass('d-none');\n }\n } else {\n if (!isConsentCookieAvailable() && isInEditMode !== true) {\n $('.cookie-consent-wrapper').addClass('no-tealium');\n showFooterBanner();\n }\n }\n \n $('.btn-accept-cookies').on('click', function () {\n $('.custom-control-input').each(function (index, elem) {\n elem.checked = true;\n })\n utag.loader.SC(\"CONSENTMGR\", \"ts:\" + (new Date()).getTime() + \"|consent:true|c1:1|c2:1|c3:1|c4:1\");\n $('.cookie-banner-footer').fadeOut();\n hideFooterBanner();\n });\n \n $('.btn-save-cookies').on('click', function () {\n var check = isPreferencePage() ? $('.container-tealium-wrapper input[id].custom-control-input') :\n (isAgeGate1() ? $('#age-gate-section input[id].custom-control-input') : $('.cookie-banner-footer input[id].custom-control-input'));\n if (check.length > 0) {\n var array = [];\n \n for (var i = 0; i < check.length; i++) {\n var id = check[i].id;\n var flg = check[i].checked;\n flg = flg ? 1 : 0;\n array.push(id + ':' + flg);\n }\n var newArray = array.toString().replace(/,/g, '|');\n utag.loader.SC(\"CONSENTMGR\", \"ts:\" + (new Date()).getTime() + \"|consent:true|\" + newArray);\n\n if ($('#save-cookie').length > 0) {\n if (document.referrer) {\n window.location.href = document.referrer.replace('tweAGShow=1', '');\n } else {\n history.go(-1);\n return false;\n }\n window.location.href = document.referrer.replace('tweAGShow=1', '');\n } else {\n $('.cookie-banner-footer').fadeOut();\n hideFooterBanner();\n }\n }\n });\n \n $('.btn-preference').on('click', function () {\n $(this).addClass('d-none');\n $('.btn-save-cookies').removeClass('d-none');\n $('.manage-preference').removeClass('d-none');\n });\n\n $('.cc-manage-preference').on('click', function (e) {\n var checkbox = $(this).parent().find('.custom-control-input');\n var isDisabled = checkbox.prop('disabled');\n if (!isDisabled) {\n checkbox.prop('checked', !checkbox.prop('checked'));\n }\n });\n};\n\n\n//# sourceURL=webpack:///./cartridges/app_wynns_skin/cartridge/client/default/js/tealconsent/tealconsent.js?"
vendor: 26 bytes, lines 121-125
121); 122 123/***/ }) 124 125/******/ });
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.