{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/views/Common/JavaScriptLoader.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","viewEvent","evt","window","loadJS","Launchpad","jsLoadList","forEach","x","url","callback","script","document","createElement","type","async","defer","readyState","onreadystatechange","onload","src","body","append","loadScript","console","log","gtmtrigger","innerHTML","id","className","getElementsByTagName","prepend","deferJs","addEventListener","setTimeout","deferJsTimer","deferJsType"],"mappings":"aACA,IAAAA,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,IACAG,EAAAH,EACAI,GAAA,EACAH,YAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,IAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,GAA0CK,YAAA,EAAAC,IAAAL,KAK1CZ,EAAAkB,EAAA,SAAAhB,GACA,oBAAAiB,eAAAC,aACAN,OAAAC,eAAAb,EAAAiB,OAAAC,aAAwDC,MAAA,WAExDP,OAAAC,eAAAb,EAAA,cAAiDmB,OAAA,KAQjDrB,EAAAsB,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAArB,EAAAqB,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,iBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAAX,OAAAY,OAAA,MAGA,GAFA1B,EAAAkB,EAAAO,GACAX,OAAAC,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GA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,GAErCiC,WAAW,WACVV,QAAQC,IAAI,2BACZxB,KACEE,OAAOE,UAAU8B,cAjErBX,QAAQC,IAAI,wBACZtB,OAAOE,UAAU8B,aAAehC,OAAOE,UAAU8B,cAAgB,KAmCjEhC,OAAOC,QAAS,EAsChBQ,SAASqB,iBAAiB,mBAH1B,WACCT,QAAQC,IAAI,qCAIbtB,OAAOgB,OAAS,WACfK,QAAQC,IAAI,0BAGTtB,OAAOE,UAAU2B,SACiB,qBAAjC7B,OAAOE,UAAU+B,aACpBZ,QAAQC,IAAI,2CACZb,SAASqB,iBAAiB,mBAAoBD,IACH,WAAjC7B,OAAOE,UAAU+B,YAC3BjC,OAAOgB,OAAS,WACfK,QAAQC,IAAI,iCACZO,MAGDR,QAAQC,IAAI,kCACZO,KAEDR,QAAQC,IAAI,wBAEZxB","file":"JavaScriptLoader.min.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 = 510);\n","/* eslint-disable no-console */\r\n//https://javascript.info/script-async-defer\r\n//https://javascript.info/onload-ondomcontentloaded\r\nconsole.log('jsScriptLoader start');\r\nwindow.Launchpad.deferJsTimer = window.Launchpad.deferJsTimer || 2750; // defaults to 2750\r\n\r\nfunction loadScript(url, callback) {\r\n\tlet script = document.createElement('script');\r\n\tscript.type = 'text/javascript';\r\n\tscript.async = false;\r\n\tscript.defer = true;\r\n\tif (script.readyState) { // only required for IE <9\r\n\t\tscript.onreadystatechange = () => {\r\n\t\t\tif (script.readyState === 'loaded' || script.readyState === 'complete') {\r\n\t\t\t\tscript.onreadystatechange = null;\r\n\t\t\t\tcallback();\r\n\t\t\t}\r\n\t\t};\r\n\t} else { //Others\r\n\t\tscript.onload = () => {\r\n\t\t\tif (callback) {\r\n\t\t\t\tcallback();\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tscript.src = url;\r\n\tdocument.body.append(script);\r\n}\r\n\r\nfunction loadStyle(href) {\r\n\tlet link = document.createElement('link');\r\n\tlink.href = href;\r\n\tlink.type = 'text/css';\r\n\tlink.rel = 'stylesheet';\r\n\tlink.media = 'screen,print';\r\n\tdocument.getElementsByTagName('head')[0].appendChild(link);\r\n}\r\n\r\nwindow.loadJS = true;\r\nfunction viewEvent(evt) {\r\n\tif (window.loadJS) {\r\n\t\twindow.loadJS = false;\r\n\t\twindow.Launchpad.jsLoadList.forEach((x) => {\r\n\t\t\tloadScript(x.url, x.callback);\r\n\t\t});\r\n\r\n\t\tconsole.log('jsScriptLoader JS Loaded');\r\n\r\n\t\tlet gtmtrigger = document.createElement('div');\r\n\t\tgtmtrigger.innerHTML = ' ';\r\n\t\tgtmtrigger.id = 'gtmloadtrigger';\r\n\t\tgtmtrigger.className = 'gtmloadtrigger';\r\n\t\tdocument.getElementsByTagName('body')[0].prepend(gtmtrigger);\r\n\t}\r\n}\r\n\r\nfunction deferJs() {\r\n\tconsole.log('jsScriptLoader loadscript_event');\r\n\tdocument.addEventListener('mousedown', viewEvent);\r\n\tdocument.addEventListener('mousemove', viewEvent);\r\n\tdocument.addEventListener('touchstart', viewEvent);\r\n\tdocument.addEventListener('scroll', viewEvent);\r\n\tdocument.addEventListener('keydown', viewEvent);\r\n\r\n\tsetTimeout(() => {\r\n\t\tconsole.log('jsScriptLoader timed js');\r\n\t\tviewEvent();\r\n\t}, window.Launchpad.deferJsTimer);\r\n\t// 2.5 seconds is the period in which google includes its JS for page speed\r\n\t// increase to 2750 to ensure defer\r\n}\r\n\r\n\r\nfunction ready() {\r\n\tconsole.log('jsScriptLoader DOMContentLoaded');\r\n}\r\ndocument.addEventListener('DOMContentLoaded', ready);\t\t\r\n\r\nwindow.onload = () => { // can also use window.addEventListener('load', (event) => {\r\n\tconsole.log('jsScriptLoader onload');\r\n};\r\n\r\nif (window.Launchpad.deferJs) {\t\r\n\tif (window.Launchpad.deferJsType === 'DOMContentLoaded') {\t\r\n\t\tconsole.log('jsScriptLoader DeferJs DOMContentLoaded');\t\r\n\t\tdocument.addEventListener('DOMContentLoaded', deferJs);\t\t\r\n\t} else if (window.Launchpad.deferJsType === 'onload') {\r\n\t\twindow.onload = () => { // can also use window.addEventListener('load', (event) => {\r\n\t\t\tconsole.log('jsScriptLoader DeferJs onload');\r\n\t\t\tdeferJs();\r\n\t\t};\r\n\t} else {\r\n\t\tconsole.log('jsScriptLoader DeferJs default');\r\n\t\tdeferJs();\r\n\t}\r\n\tconsole.log('jsScriptLoader done');\r\n} else {\r\n\tviewEvent();\r\n}"],"sourceRoot":""}