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C,EAAO,ECAtGzC,EAAoBmB,EAAI,I,WCKxB,IAAIyB,EAAkB,CACrB,IAAK,GAaN5C,EAAoBS,EAAEU,EAAI,SAAS0B,GAAW,OAAoC,IAA7BD,EAAgBC,EAAgB,EAGrF,IAAIC,EAAuB,SAASC,EAA4BC,GAC/D,IAKI/C,EAAU4C,EALVlC,EAAWqC,EAAK,GAChBC,EAAcD,EAAK,GACnBE,EAAUF,EAAK,GAGIhC,EAAI,EAC3B,GAAGL,EAASwC,MAAK,SAASC,GAAM,OAA+B,IAAxBR,EAAgBQ,EAAW,IAAI,CACrE,IAAInD,KAAYgD,EACZjD,EAAoB+B,EAAEkB,EAAahD,KACrCD,EAAoBQ,EAAEP,GAAYgD,EAAYhD,IAGhD,GAAGiD,EAAS,IAAIxC,EAASwC,EAAQlD,EAClC,CAEA,IADG+C,GAA4BA,EAA2BC,GACrDhC,EAAIL,EAASM,OAAQD,IACzB6B,EAAUlC,EAASK,GAChBhB,EAAoB+B,EAAEa,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAO7C,EAAoBS,EAAEC,EAC9B,EAEI2C,EAAqBC,KAA2B,qBAAIA,KAA2B,sBAAK,GACxFD,EAAmBE,QAAQT,EAAqBU,KAAK,KAAM,IAC3DH,EAAmBI,KAAOX,EAAqBU,KAAK,KAAMH,EAAmBI,KAAKD,KAAKH,G,IC/CvF,IAAIK,EAAsB1D,EAAoBS,OAAEN,EAAW,CAAC,MAAM,WAAa,OAAOH,EAAoB,KAAO,IACjH0D,EAAsB1D,EAAoBS,EAAEiD,E","sources":["webpack://frontend/webpack/runtime/chunk loaded","webpack://frontend/./src/utils/flash-message.js","webpack://frontend/./src/auth.js","webpack://frontend/webpack/bootstrap","webpack://frontend/webpack/runtime/compat get default export","webpack://frontend/webpack/runtime/define property getters","webpack://frontend/webpack/runtime/global","webpack://frontend/webpack/runtime/hasOwnProperty shorthand","webpack://frontend/webpack/runtime/runtimeId","webpack://frontend/webpack/runtime/jsonp chunk loading","webpack://frontend/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","/* eslint-disable vars-on-top, complexity */\nimport $ from 'jquery';\n\nimport { Modal } from './modal';\nimport { setLocation } from './helpers';\nimport { getDomElement, getDomElements, getValue, hideElement } from './dom';\n\nfunction getFooterButtons(message, redirectURL, requirePrompt) {\n const okButton =\n '';\n\n // Simply display a message\n if (message && !redirectURL && !requirePrompt) {\n return okButton;\n // Display a message with a required redirect\n } else if (message && redirectURL && !requirePrompt) {\n return '';\n // Display a message with a required redirect\n } else if (message && redirectURL && requirePrompt) {\n return (\n '' +\n ''\n );\n }\n\n return okButton;\n}\n\n/* eslint-disable */\nfunction processMessages() {\n getDomElement('#hdnMessage').map(messageEl => {\n const message = messageEl.value;\n const redirectURL = getDomElement('#hdnRedirectUrl').map(getValue).option('');\n const requirePrompt = getDomElement('#hdnRedirectPrompt').map(getValue).option('');\n const footerButtons = getFooterButtons(message, redirectURL, requirePrompt);\n const hideClose = getDomElement('#hdnHideClose').map(getValue).option('');\n const okOnly = getDomElement('#hdnOkOnly').map(getValue).option('');\n const customCancelText = getDomElement('#hdnCustomCancelText').map(getValue).option('');\n const customCancelAction = getDomElement('#hdnCustomCancelAction').map(getValue).option('');\n\n document.body.addEventListener('click', ({ target }) => {\n const isRedirect = target.getAttribute('data-action') === 'redirect';\n\n if (isRedirect && target.classList.contains('primary-button')) {\n setLocation(redirectURL);\n }\n\n if (isRedirect && target.classList.contains('modal-cancel-button') && customCancelAction) {\n setLocation(customCancelAction);\n }\n });\n\n message && showMessage(message, footerButtons);\n\n if (okOnly.toLowerCase() === 'y') {\n getDomElements('#message-modal [data-micromodal-close]').map(hideElement);\n }\n\n if (hideClose.toLowerCase() === 'y') {\n getDomElement('#message-modal .modal-close-button').map(hideElement);\n }\n\n if (customCancelText && customCancelAction) {\n getDomElement('#message-modal .modal-cancel-button').map(cancelBtn => {\n cancelBtn.removeAttribute('data-micromodal-close');\n cancelBtn.textContent = customCancelText;\n cancelBtn.setAttribute('data-action', 'redirect');\n });\n }\n });\n}\n/* eslint-enable */\n\nfunction showMessage(message, footerButtons) {\n var modal = Object.create(Modal);\n\n modal.init({\n body: $(`
${message}
`).html(),\n footer: footerButtons,\n modalType: 'message',\n title: 'Information'\n });\n}\n\nexport { processMessages, showMessage };\n","/* eslint-disable import/no-unassigned-import */\nimport 'core-js/stable/array/from';\nimport 'core-js/stable/object/assign';\nimport 'core-js/modules/es.symbol.iterator';\nimport $ from 'jquery';\nimport MicroModal from 'micromodal';\nimport { Spinner } from 'spin.js';\n\nimport 'unfetch/polyfill';\nimport { Modal } from './utils/modal';\nimport { processMessages } from './utils/flash-message';\nimport { setupHelp } from './help/admin-help';\nimport { getDomElement } from './utils/dom';\nimport { cookieNotice } from './utils/cookie';\n\nwindow.$ = $;\nwindow.jQuery = $;\nwindow.MicroModal = MicroModal;\nwindow.Modal = Modal;\nwindow.Spinner = Spinner;\n\ndocument.addEventListener('DOMContentLoaded', () => {\n // eslint-disable-next-line array-callback-return\n getDomElement('.js-activate-cookie-modal').map(el => {\n el.addEventListener('click', window.ptiCookie);\n });\n\n if (window.cookieValues === null) {\n cookieNotice();\n }\n\n processMessages();\n setupHelp();\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","__webpack_require__.j = 933;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t933: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkfrontend\"] = self[\"webpackChunkfrontend\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [121], function() { return __webpack_require__(4064); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","processMessages","getDomElement","map","messageEl","message","value","redirectURL","getValue","option","requirePrompt","footerButtons","okButton","getFooterButtons","hideClose","okOnly","customCancelText","customCancelAction","document","body","addEventListener","_ref","target","isRedirect","getAttribute","classList","contains","setLocation","Object","create","Modal","init","$","concat","html","footer","modalType","title","showMessage","toLowerCase","getDomElements","hideElement","cancelBtn","removeAttribute","textContent","setAttribute","window","jQuery","MicroModal","Spinner","el","ptiCookie","cookieValues","cookieNotice","setupHelp","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","call","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","keys","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","g","globalThis","this","Function","e","obj","prop","prototype","hasOwnProperty","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""}