{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./Components/popup/assets/scripts/popupcontent.js","webpack:///./Components/popup/assets/scripts/modules/ModulePopupContent.js","webpack:///./Components/popup/assets/scripts/modules/Module.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","ModulePopupContent","Module","require","PopupContent","window","Modules","constructor","el","super","init","that","this","setTimeout","initPopup","modalOverlay","document","querySelector","modalBox","siteIndex","$","find","focusableEls","mouseDown","makeArray","each","attr","removeAttribute","addEventListener","e","target","setCookies","closeDialog","currentTarget","blur","keyup","keyCode","shiftKey","activeElement","lastFocusableEl","lastFocusableLink","preventDefault","firstFocusableEl","focus","style","overflow","classList","add","setAttribute","removeAttr","parentElement","removeChild","sesCookieName","dom","$el","cookie","foCookieName","cookieDate","Date","setMonth","getMonth","toGMTString","body","html","site","w"],"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,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,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M,SAAS8B,aAAa,eAAe,GAC1CpC,KAAKG,aAAaiC,aAAa,eAAe,GAE9C5B,EAAEK,KAAKb,KAAKO,WAAW,SAAUlD,EAAGuC,GAChCY,EAAEZ,GAAIyC,WAAW,eAGrB7B,EAAEK,KAAKb,KAAKU,cAAc,SAAUrD,EAAGuC,GACnCY,EAAEZ,GAAIkB,KAAK,YAAa,MAG5BV,SAASC,cAAc,QAAQ2B,MAAMC,SAAW,UAChD7B,SAASC,cAAc,QAAQ2B,MAAMC,SAAW,UAEhDhC,WAAW,KACPD,KAAKG,aAAamC,cAAcC,YAAYvC,KAAKG,eAClD,MAIPgB,aACI,IAAIqB,EAAgBhC,EAAER,KAAKyC,IAAIC,KAAK5B,KAAK,oBACrC0B,IACApC,SAASuC,OAASH,EAAgB,iBAEtC,IAAII,EAAepC,EAAER,KAAKyC,IAAIC,KAAK5B,KAAK,oBACxC,GAAI8B,EAAc,CACd,IAAIC,EAAa,IAAIC,KACrBD,EAAWE,SAASF,EAAWG,WAAa,GAC5C5C,SAASuC,OAASC,EAAe,kBAAoBC,EAAWI,cAAgB,e,+BCzH5F,+CAAe,MAAM3D,EACjBK,YAAYC,GACRI,KAAKyC,IAAM,CACP7C,GAAIA,EACJ8C,IAAK9C,EACLsD,KAAM9C,SAASC,cAAc,QAC7B8C,KAAM/C,SAASC,cAAc,QAC7B+C,KAAMhD,SAASC,cAAc,SAC7BgD,EAAG5D","file":"components.popupcontent.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 = 16);\n","let ModulePopupContent = {\r\n Module: require(\"./modules/Module\"),\r\n PopupContent: require(\"./modules/ModulePopupContent\")\r\n};\r\nwindow.Modules = { ...window.Modules, ...ModulePopupContent};","import Module from \"./Module\";\r\n\r\nexport default class ModulePopupContent extends Module {\r\n\r\n constructor(el) {\r\n super(el);\r\n }\r\n\r\n init() {\r\n var that = this;\r\n\r\n setTimeout(function () {\r\n that.initPopup();\r\n }, 1750);\r\n }\r\n\r\n initPopup() {\r\n this.modalOverlay = document.querySelector(\".popupcontent\");\r\n this.modalBox = document.querySelector(\".popup__container\");\r\n\r\n this.siteIndex = $('#site').find('a, area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex=\"0\"]');\r\n this.focusableEls = $(this.modalBox).find('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex=\"0\"]');\r\n\r\n var that = this;\r\n var mouseDown = false;\r\n\r\n this.siteIndex = $.makeArray(this.siteIndex);\r\n\r\n $.each(this.siteIndex, function (i, el) {\r\n $(el).attr('tabindex', -1);\r\n });\r\n\r\n this.modalOverlay.removeAttribute(\"aria-hidden\");\r\n this.modalBox.removeAttribute('aria-hidden');\r\n\r\n this.focusableEls = $.makeArray(this.focusableEls);\r\n\r\n $.each(this.focusableEls, function (i, el) {\r\n $(el).attr('tabindex', i + 1);\r\n });\r\n\r\n this.modalOverlay.addEventListener(\"click\", (e) => {\r\n if(e.target == this.modalOverlay || e.target == this.modalBox.querySelector(\".popup__close-btn\")){\r\n that.setCookies();\r\n that.closeDialog();\r\n }\r\n });\r\n \r\n this.modalBox.querySelector(\".popup__close-btn\").addEventListener(\"mousedown\", (e) => {\r\n mouseDown = true;\r\n });\r\n\r\n this.modalBox.querySelector(\".popup__close-btn\").addEventListener(\"mouseup\", (e) => {\r\n mouseDown = false;\r\n });\r\n\r\n this.modalBox.querySelector(\".popup__close-btn\").addEventListener(\"focus\", (e) => {\r\n if (mouseDown) {\r\n e.currentTarget.blur();\r\n }\r\n });\r\n\r\n $(document).keyup(function (e) {\r\n if (e.keyCode === 27) {\r\n that.closeDialog();\r\n }\r\n\r\n if (!e.shiftKey && e.keyCode === 9) {\r\n if (document.activeElement === this.lastFocusableEl || document.activeElement === this.lastFocusableLink) {\r\n e.preventDefault();\r\n this.firstFocusableEl.focus();\r\n }\r\n }\r\n \r\n if (e.shiftKey && e.keyCode === 9) {\r\n if (document.activeElement === this.firstFocusableEl) {\r\n e.preventDefault();\r\n this.lastFocusableLink.focus();\r\n }\r\n }\r\n });\r\n\r\n document.querySelector(\"html\").style.overflow = \"hidden\";\r\n document.querySelector(\"body\").style.overflow = \"hidden\";\r\n \r\n this.modalOverlay.classList.add(\"fade-in\");\r\n \r\n }\r\n\r\n closeDialog() {\r\n this.modalOverlay.classList.add(\"fade-out\");\r\n\r\n this.modalBox.setAttribute(\"aria-hidden\", true);\r\n this.modalOverlay.setAttribute(\"aria-hidden\", true);\r\n\r\n $.each(this.siteIndex, function (i, el) {\r\n $(el).removeAttr('tabindex');\r\n });\r\n\r\n $.each(this.focusableEls, function (i, el) {\r\n $(el).attr('tabindex', -1);\r\n });\r\n\r\n document.querySelector(\"html\").style.overflow = \"visible\";\r\n document.querySelector(\"body\").style.overflow = \"visible\"; \r\n\r\n setTimeout(() => {\r\n this.modalOverlay.parentElement.removeChild(this.modalOverlay);\r\n }, 1750);\r\n\r\n }\r\n\r\n setCookies() {\r\n var sesCookieName = $(this.dom.$el).attr('data-content-sid');\r\n if (sesCookieName) {\r\n document.cookie = sesCookieName + '=true; path=/';\r\n }\r\n var foCookieName = $(this.dom.$el).attr('data-content-fid');\r\n if (foCookieName) {\r\n var cookieDate = new Date();\r\n cookieDate.setMonth(cookieDate.getMonth() + 1);\r\n document.cookie = foCookieName + '=true; expires=' + cookieDate.toGMTString() + '; path=/';\r\n }\r\n }\r\n\r\n}","export default class Module {\r\n constructor(el) {\r\n this.dom = {\r\n el: el,\r\n $el: el,\r\n body: document.querySelector(\"body\"),\r\n html: document.querySelector(\"html\"),\r\n site: document.querySelector(\"#site\"),\r\n w: window\r\n };\r\n }\r\n}"],"sourceRoot":""}