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AQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CCrBAJ,EAAoBO,EAAKH,IACH,oBAAXI,QAA0BA,OAAOC,aAC1CC,OAAOC,eAAeP,EAASI,OAAOC,YAAa,CAAEG,MAAO,WAE7DF,OAAOC,eAAeP,EAAS,aAAc,CAAEQ,OAAO,GAAO,E,qCCA9DC,GAAE,WACsB,IAAI,IAAc,CAClC/B,MAAO,yCACPR,QAAS,iEAEjB,G","sources":["webpack://Fundraising/../Fundraising.UI.Shared/Modules/redirectModal/RedirectModal.ts","webpack://Fundraising/webpack/bootstrap","webpack://Fundraising/webpack/runtime/make namespace object","webpack://Fundraising/./ClientApp/school/index.js"],"sourcesContent":["export class RedirectModal {\r\n\r\n M2 = (window as any).M2;\r\n\r\n private _config = {\r\n isRedirect: false,\r\n message: \"\",\r\n cookieName: \"ShowRedirectPopup\"\r\n };\r\n\r\n constructor(props) {\r\n this.redirectStatus = Boolean(this.getCookieStatus(this.cookieName));\r\n this.modalMessage = props.message;\r\n if (this.redirectStatus) {\r\n this.openModal(props.title, props.message);\r\n this.deleteCookie(this.cookieName);\r\n }\r\n }\r\n get cookieName() {\r\n return this._config.cookieName;\r\n }\r\n\r\n get redirectStatus() {\r\n return this._config.isRedirect;\r\n }\r\n\r\n set redirectStatus(state) {\r\n this._config.isRedirect = state;\r\n }\r\n\r\n get modalMessage() {\r\n return this._config.message;\r\n }\r\n\r\n set modalMessage(msg) {\r\n this._config.message = msg;\r\n }\r\n\r\n openModal(modalTitle, modalMessage) {\r\n this.M2.Modal.create(\"redirect\", modalTitle, \"
\" + modalMessage + \"
\", \"modal-md\", true);\r\n }\r\n\r\n getCookieStatus(name) {\r\n const value = `; ${document.cookie}`;\r\n const parts = value.split(`; ${name}=`);\r\n if (parts.length === 2) return parts.pop().split(';').shift();\r\n }\r\n\r\n deleteCookie(name) {\r\n document.cookie = name + '=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';\r\n }\r\n\r\n // Access to post redirect method\r\n onSuccess() { }\r\n\r\n\r\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](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import \"./scss/style.scss\";\r\nimport \"./scss/avatar.scss\";\r\n\r\nimport { RedirectModal } from \"../../../Fundraising.UI.Shared/Modules/redirectModal/RedirectModal\";\r\n\r\n$(function () {\r\n const redirection = new RedirectModal({\r\n title: \"American Publishers is now Funderworks\",\r\n message: \"You have been redirected to Funderworks.com from APMags.com.\"\r\n });\r\n});"],"names":["props","M2","window","_config","isRedirect","message","cookieName","this","redirectStatus","Boolean","getCookieStatus","modalMessage","openModal","title","deleteCookie","state","msg","modalTitle","Modal","create","name","parts","document","cookie","split","length","pop","shift","onSuccess","RedirectModal","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","r","Symbol","toStringTag","Object","defineProperty","value","$"],"sourceRoot":""}