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BO,OAAE3D,EAAW,CAAC,GAAG,MAAM,IAAOoD,EAAoB,QAChGuD,EAAsBvD,EAAoBO,EAAEgD,E","sources":["webpack://fieldservice-clientapp/webpack/runtime/chunk loaded","webpack://fieldservice-clientapp/./ClientApp/common/behaviors/alerts-attribute.ts","webpack://fieldservice-clientapp/./ClientApp/common/behaviors/clickable-attribute.ts","webpack://fieldservice-clientapp/./ClientApp/common/behaviors/form-attribute.ts","webpack://fieldservice-clientapp/./ClientApp/common/behaviors/initialize-behaviors.ts","webpack://fieldservice-clientapp/./ClientApp/core-app.ts","webpack://fieldservice-clientapp/webpack/bootstrap","webpack://fieldservice-clientapp/webpack/runtime/compat get default export","webpack://fieldservice-clientapp/webpack/runtime/define property getters","webpack://fieldservice-clientapp/webpack/runtime/global","webpack://fieldservice-clientapp/webpack/runtime/hasOwnProperty shorthand","webpack://fieldservice-clientapp/webpack/runtime/make namespace object","webpack://fieldservice-clientapp/webpack/runtime/runtimeId","webpack://fieldservice-clientapp/webpack/runtime/jsonp chunk loading","webpack://fieldservice-clientapp/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (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, fn, priority] = deferred[i];\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((key) => (__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};","import {Toast} from \"bootstrap\";\r\n\r\nexport function enableAlerts() {\r\n \r\n try \r\n {\r\n const toasts = document.querySelectorAll('.toast');\r\n\r\n if (toasts.length === 0)\r\n return;\r\n\r\n [].slice.call(toasts).map((el: Element) => new Toast(el).show());\r\n\r\n } catch (ex) {\r\n console.error(ex);\r\n }\r\n\r\n console.log(\"[app-behaviors] Installed toasts behavior\");\r\n}\r\n\r\n","\r\nexport function enableClickable(reset = false) {\r\n\r\n console.log(\"[app-behaviors] Installing clickable behavior (data-onclick)\");\r\n\r\n if (reset) $(\"[data-onclick]\").off(\"click\");\r\n\r\n $(\"[data-onclick]\").on(\"click\",\r\n e => {\r\n\r\n // Ignore if click is on a link\r\n if (e.currentTarget != e.target && $(e.target).is(\"a, a *, input\"))\r\n return;\r\n\r\n const $tgt = $(e.currentTarget);\r\n\r\n // Check for data link\r\n const url = $tgt.attr(\"data-onclick\");\r\n\r\n if (url !== undefined) {\r\n\r\n // Click to toggle checkbox\r\n if (url === \"togglecheck\") {\r\n e.preventDefault();\r\n\r\n $tgt.find(\":checkbox\").click();\r\n\r\n return;\r\n }\r\n // Click to set val or txt\r\n else if (url === \"update\") {\r\n\r\n e.preventDefault();\r\n\r\n const valtgt = $tgt.attr('data-val-target');\r\n\r\n if (valtgt !== undefined) {\r\n $(valtgt).val($tgt.attr('data-val') || $tgt.text());\r\n }\r\n\r\n const txttgt = $tgt.attr('data-txt-target');\r\n\r\n if (txttgt !== undefined) {\r\n $(txttgt).text($tgt.attr('data-txt') || $tgt.text());\r\n }\r\n\r\n return;\r\n }\r\n\r\n window.location.href = url;\r\n e.stopPropagation();\r\n }\r\n });\r\n}\r\n","export function enableFormAttributes() {\r\n try \r\n { \r\n $(\"form[data-disable-onsubmit]\").on(\"submit\", function(event:JQuery.Event) {\r\n console.log(`[form-attribute] submit called`, this);\r\n\r\n let selector = $(this).attr('data-disable-onsubmit');\r\n if (!selector) { selector = \"[type='submit']\";} \r\n\r\n const controls = $(selector);\r\n\r\n console.log(`[form-attribute] disabling controls on submit`);\r\n controls.prop('disabled', true);\r\n \r\n // Dependent on this custom event sent from customized jquery-validation because\r\n // the whole invalid-form event in jquery-validation is gobbled up by unobtrustive.. irony \r\n document.addEventListener('form-invalid', function (customEvent) {\r\n console.log(\"form-validation prevented submit, reenabling controls\");\r\n controls.prop('disabled', false);\r\n }); \r\n });\r\n\r\n } catch (ex) {\r\n console.error(ex);\r\n }\r\n\r\n console.log(\"[app-behaviors] Installed form-attributes behavior (data-disable-onsubmit='.mybutton')\");\r\n}","import { enableClickable } from './clickable-attribute';\r\nimport { enableFormAttributes } from './form-attribute';\r\nimport { enableAlerts } from './alerts-attribute';\r\n\r\nexport function initializeBehaviors(){\r\n if (window.pageBehaviors)\r\n { \r\n if (window.pageBehaviors.useClickable === true) {\r\n enableClickable();\r\n } \r\n if (window.pageBehaviors.useFormAttributes == true){\r\n enableFormAttributes();\r\n }\r\n if (window.pageBehaviors.useAlerts == true) {\r\n enableAlerts();\r\n }\r\n }\r\n else{\r\n // Default behaviors \r\n enableClickable();\r\n }\r\n\r\n}","import '@/common/styles/main.scss';\r\nimport { initializeBehaviors } from \"@/common/behaviors/initialize-behaviors\";\r\nimport flatpickr from 'flatpickr';\r\nimport dbg from './common/utils/diagnostics';\r\nimport type { SentryContext } from \"@/common/types\";\r\n\r\nconsole.log(\"[app-startup] core-app loaded \");\r\n\r\ndeclare global {\r\n interface Window {\r\n [index: string | number]: any;\r\n qaContext: SentryContext;\r\n }\r\n}\r\n\r\nwindow.flatpickr = flatpickr;\r\nwindow.bootstrap = require('bootstrap');\r\n\r\n$(()=>{\r\n \r\n console.log(\"[app-startup] core-app initializing 🚀 \");\r\n \r\n //********************************\r\n\t// Initialize Diagnostic Context\r\n\t//********************************\r\n if (typeof window.qaContext != \"undefined\"){\r\n dbg.initializeContext(window.qaContext);\r\n }\r\n\r\n //********************************\r\n\t// Validate core libraries\r\n\t//********************************\r\n const deps = [\"$\", \"jQuery\", \"bootstrap\", \"flatpickr\"];\r\n\r\n deps.forEach(dep =>{\r\n if (typeof window[dep] === \"undefined\") {\r\n console.error(`jserror:${dep}-missing`);\r\n }\r\n });\r\n\r\n // Initialize common utilities based on\r\n // the window.pageBehaviors variable.\r\n initializeBehaviors();\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].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 = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (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 = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// 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};","__webpack_require__.j = 608;","// 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\t608: 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 = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\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((id) => (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[\"webpackChunkfieldservice_clientapp\"] = self[\"webpackChunkfieldservice_clientapp\"] || [];\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, [76,121], () => (__webpack_require__(1286)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","toasts","document","querySelectorAll","length","slice","call","map","el","Toast","show","ex","console","error","log","_bootstrap","require","reset","arguments","undefined","$","off","on","e","currentTarget","target","is","$tgt","url","attr","preventDefault","find","click","valtgt","val","text","txttgt","window","location","href","stopPropagation","event","this","selector","controls","prop","addEventListener","customEvent","pageBehaviors","useClickable","enableClickable","useFormAttributes","enableFormAttributes","useAlerts","enableAlerts","_clickableAttribute","_formAttribute","_alertsAttribute","_initializeBehaviors","_flatpickr","_interopRequireDefault","_diagnostics","flatpickr","bootstrap","qaContext","dbg","initializeContext","forEach","dep","initializeBehaviors","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","g","globalThis","Function","obj","prototype","hasOwnProperty","Symbol","toStringTag","value","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","self","bind","push","__webpack_exports__"],"sourceRoot":""}