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WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEhDA;UACA;UACA;UACA;UACA","sources":["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/./ClientApp/common/styles/main.scss?d5f2","webpack://fieldservice-clientapp/webpack/bootstrap","webpack://fieldservice-clientapp/webpack/runtime/chunk loaded","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/jsonp chunk loading","webpack://fieldservice-clientapp/webpack/before-startup","webpack://fieldservice-clientapp/webpack/startup","webpack://fieldservice-clientapp/webpack/after-startup"],"sourcesContent":["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","// extracted by mini-css-extract-plugin\nexport {};","// 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","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};","// 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};","// 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\t\"core-app\": 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, [\"common\",\"vendor\"], () => (__webpack_require__(\"./ClientApp/core-app.ts\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["_bootstrap","require","enableAlerts","toasts","document","querySelectorAll","length","slice","call","map","el","Toast","show","ex","console","error","log","enableClickable","reset","arguments","undefined","$","off","on","e","currentTarget","target","is","$tgt","url","attr","preventDefault","find","click","valtgt","val","text","txttgt","window","location","href","stopPropagation","enableFormAttributes","event","selector","controls","prop","addEventListener","customEvent","_clickableAttribute","_formAttribute","_alertsAttribute","initializeBehaviors","pageBehaviors","useClickable","useFormAttributes","useAlerts","_initializeBehaviors","_flatpickr","_interopRequireDefault","_diagnostics","flatpickr","bootstrap","qaContext","dbg","initializeContext","deps","forEach","dep"],"sourceRoot":""}