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,SAAS,EAAC,gCAAgC,CAAC;yBACzE;wBACD,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;;;;;aAGhC;QAvFG,IAAI,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAuFL,YAAC;AAAD,CAAC;AAED,CAAC,CAAC,cAAM,WAAI,KAAK,EAAE,EAAX,CAAW,CAAC,CAAC;;;;;;;UCvHrB;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WC5BA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,GAAG;WACH;WACA;WACA,CAAC;;;;;WCPD;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;WACA;WACA;WACA;WACA;;;;;WCJA;;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://metronic/./scripts/pages/Account/Login.ts","webpack://metronic/webpack/bootstrap","webpack://metronic/webpack/runtime/chunk loaded","webpack://metronic/webpack/runtime/define property getters","webpack://metronic/webpack/runtime/global","webpack://metronic/webpack/runtime/hasOwnProperty shorthand","webpack://metronic/webpack/runtime/make namespace object","webpack://metronic/webpack/runtime/node module decorator","webpack://metronic/webpack/runtime/jsonp chunk loading","webpack://metronic/webpack/before-startup","webpack://metronic/webpack/startup","webpack://metronic/webpack/after-startup"],"sourcesContent":["import { baseWebUrl, sweetAlert, AlertType, baseAPIUrl, httpPostHandleResponse, isNullOrEmpty, initializeJqueryValidator } from \"../../utils/common\";\r\nimport http from \"../../services/httpService\";\r\nimport { Loader } from \"../../services/loaderService\";\r\n\r\nclass Contants {\r\n readonly controller: string = baseAPIUrl() ? `${baseAPIUrl()}/Authentication` : '/Authentication';\r\n readonly webUrl: string = baseWebUrl();\r\n readonly $btnLogin: string = '#kt_Login_Signin_Submit';\r\n readonly $userName: string = '#txtuserName';\r\n readonly $password: string = '#txtpassword';\r\n readonly $kt_email: string = '#kt_email';\r\n readonly $btnForgot: string = '#kt_login_forgot_submit';\r\n\r\n}\r\n\r\nclass Login {\r\n constants: Contants = new Contants();\r\n loader: Loader = new Loader();\r\n localStorageCart: any;\r\n responseDataObj: any;\r\n\r\n $btnLogin: JQuery;\r\n $userName: JQuery;\r\n $password: JQuery;\r\n\r\n $btnForgot: JQuery;\r\n $kt_email: JQuery;\r\n\r\n constructor() {\r\n this.Init();\r\n }\r\n\r\n private Init = async () => {\r\n\r\n localStorage.setItem('LastSelectedMenu', '');\r\n\r\n window.history.forward();\r\n\r\n const rules = {\r\n txtuserName: {\r\n required: true,\r\n onlySpacesNotAllowed: true\r\n },\r\n txtpassword: {\r\n required: true,\r\n onlySpacesNotAllowed: true\r\n }\r\n\r\n };\r\n\r\n initializeJqueryValidator(\"#axon_form\", rules);\r\n this.BindEvent();\r\n }\r\n\r\n private BindEvent = async () => {\r\n\r\n this.$userName = $(this.constants.$userName);\r\n this.$password = $(this.constants.$password);\r\n this.$btnLogin = $(this.constants.$btnLogin);\r\n\r\n this.$kt_email = $(this.constants.$kt_email);\r\n this.$btnForgot = $(this.constants.$btnForgot);\r\n\r\n this.$btnLogin.on('click', this.onLoginButtonClick);\r\n this.$btnForgot.on('click', this.onForgotButtonClick);\r\n\r\n $(document).on('keypress', (e)=> {\r\n if (e.which == 13) {\r\n this.$btnLogin.trigger('click');\r\n }\r\n });\r\n }\r\n\r\n private onForgotButtonClick = async () => {\r\n this.loader.showLoader();\r\n\r\n const email = {\r\n Email: this.$kt_email.val()\r\n };\r\n\r\n const response = await http.post(this.constants.controller + \"/ForgotPassword\", email);\r\n const data = httpPostHandleResponse(response);\r\n this.loader.hideLoader();\r\n }\r\n\r\n private onLoginButtonClick = async () => {\r\n if ($(\"#axon_form\").valid()) {\r\n this.loader.showLoader();\r\n\r\n const user = {\r\n UserName: this.$userName.val().toString().toLowerCase(),\r\n Password: this.$password.val(),\r\n UserRole: \"\",\r\n FullName: \"\"\r\n\r\n };\r\n\r\n const response = await http.post(this.constants.controller + \"/Authenticate\", user);\r\n const data = httpPostHandleResponse(response);\r\n if (data && !isNullOrEmpty(data.Token)) {\r\n\r\n localStorage.setItem(\"SecurityToken\", data.Token);\r\n localStorage.setItem(\"SetupTime\", new Date().getTime().toString());\r\n localStorage.setItem(\"UserData\", JSON.stringify(data.User));\r\n localStorage.setItem(\"Configuration\", JSON.stringify(data.ConfigurationObj));\r\n localStorage.setItem(\"Menu\", JSON.stringify(data.MenuObj));\r\n localStorage.setItem(\"RedirectionURL\", \"AU\");\r\n this.loader.hideLoader();\r\n window.location.href = this.constants.webUrl + \"/Admin/Dashboard/\";\r\n }\r\n else {\r\n sweetAlert(AlertType.Error,\"Invalid\",\"Invalid username and password.\")\r\n }\r\n this.loader.hideLoader();\r\n }\r\n \r\n }\r\n}\r\n\r\n$(() => new Login());","// 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\tid: moduleId,\n\t\tloaded: false,\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// Flag the module as loaded\n\tmodule.loaded = true;\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};","// 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__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\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\"js/pages/Account/Login\": 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[\"webpackChunkmetronic\"] = self[\"webpackChunkmetronic\"] || [];\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, [\"js/pages/shared\"], () => (__webpack_require__(\"./scripts/pages/Account/Login.ts\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}