{"version":3,"sources":["webpack:///app-logon.js","webpack:///webpack/bootstrap e2b77e54b3ee061d9e21","webpack:///./Scripts/Quantumart/AppLogon.js","webpack:///./Scripts/Quantumart/BackendLogin.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","134","window","Quantumart","QP8","34","__webpack_exports__","options","storageKey","BackendLogin","_useSavedCustomerCode","removeCustomerCode","useSavedCustomerCode","this","jQuery","document","ready","proxy","_initialize","length","value","localStorage","getItem","val","submit","click","_loginClick","setItem","removeItem"],"mappings":"CAAS,SAAUA,GCIjB,QAASC,GAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,MAAOC,GAAiBD,GAAUE,OAGnC,IAAIC,GAASF,EAAiBD,IAC7BI,EAAGJ,EACHK,GAAG,EACHH,WAUD,OANAJ,GAAQE,GAAUM,KAAKH,EAAOD,QAASC,EAAQA,EAAOD,QAASH,GAG/DI,EAAOE,GAAI,EAGJF,EAAOD,QAvBf,GAAID,KA4BJF,GAAoBQ,EAAIT,EAGxBC,EAAoBS,EAAIP,EAGxBF,EAAoBU,EAAI,SAASP,EAASQ,EAAMC,GAC3CZ,EAAoBa,EAAEV,EAASQ,IAClCG,OAAOC,eAAeZ,EAASQ,GAC9BK,cAAc,EACdC,YAAY,EACZC,IAAKN,KAMRZ,EAAoBmB,EAAI,SAASf,GAChC,GAAIQ,GAASR,GAAUA,EAAOgB,WAC7B,WAAwB,MAAOhB,GAAgB,SAC/C,WAA8B,MAAOA,GAEtC,OADAJ,GAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASQ,EAAQC,GAAY,MAAOR,QAAOS,UAAUC,eAAejB,KAAKc,EAAQC,IAGzGtB,EAAoByB,EAAI,GAGjBzB,EAAoBA,EAAoB0B,EAAI,ODM/CC,IACA,SAAUvB,EAAQD,EAASH,GAEjC,YEpEA4B,QAAOC,WAAaD,OAAOC,eAC3BD,OAAOC,WAAWC,IAAMF,OAAOC,WAAWC,QAE1C,EAAQ,KF4EFC,GACA,SAAU3B,EAAQ4B,EAAqBhC,GAE7C,YGpFA,8GACE,WAAYiC,GAUZ,KAAAC,WAAaC,EAAaD,WAC1B,KAAAE,uBAAwB,EA4BxB,KAAAC,mBAAqBF,EAAaE,mBAtC5BJ,GACEA,EAAQK,uBACVC,KAAKH,sBAAwBH,EAAQK,sBAIzCE,OAAOC,UAAUC,MAAMF,OAAOG,MAAMJ,KAAKK,YAAaL,OAiC1D,MA3BE,aAAAK,YAAA,WACE,GAAIL,KAAKH,sBAAuB,CAG9B,GAFiBI,OAAO,8BAA8BK,OAAS,EAG7DN,KAAKF,yBACA,CACL,GAAMS,GAAQC,aAAaC,QAAQT,KAAKL,WACiB,KAA/BM,OAAO,aAAaK,SAGxCC,GACFN,OAAO,iBAAiBS,IAAIH,GAC5BN,OAAO,QAAQU,UAEfV,OAAO,UAAUW,MAAMX,OAAOG,MAAMJ,KAAKa,YAAab,WAOhE,YAAAa,YAAA,WACEL,aAAaM,QAAQd,KAAKL,WAAYM,OAAO,iBAAiBS,QAIlE,IAEAd,GAAaD,WAAa,2CAC1BC,EAAaE,mBAAqB,WAChCU,aAAaO,WAAWnB,EAAaD,aAIvCL,WAAWC,IAAIK,aAAeA","file":"app-logon.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \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, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\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/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 134);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ 134:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// @ts-nocheck\n/* global require */\nwindow.Quantumart = window.Quantumart || {};\nwindow.Quantumart.QP8 = window.Quantumart.QP8 || {};\n__webpack_require__(34);\n\n\n/***/ }),\n\n/***/ 34:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BackendLogin\", function() { return BackendLogin; });\nvar BackendLogin = /** @class */ (function () {\n function BackendLogin(options) {\n this.storageKey = BackendLogin.storageKey;\n this._useSavedCustomerCode = false;\n this.removeCustomerCode = BackendLogin.removeCustomerCode;\n if (options) {\n if (options.useSavedCustomerCode) {\n this._useSavedCustomerCode = options.useSavedCustomerCode;\n }\n }\n jQuery(document).ready(jQuery.proxy(this._initialize, this));\n }\n BackendLogin.prototype._initialize = function () {\n if (this._useSavedCustomerCode) {\n var notValid = jQuery('.validation-summary-errors').length > 0;\n if (notValid) {\n this.removeCustomerCode();\n }\n else {\n var value = localStorage.getItem(this.storageKey);\n var isIntegratedLogin = jQuery('#UserName').length === 0;\n if (isIntegratedLogin) {\n if (value) {\n jQuery('#CustomerCode').val(value);\n jQuery('form').submit();\n }\n else {\n jQuery('#Login').click(jQuery.proxy(this._loginClick, this));\n }\n }\n }\n }\n };\n BackendLogin.prototype._loginClick = function () {\n localStorage.setItem(this.storageKey, jQuery('#CustomerCode').val());\n };\n return BackendLogin;\n}());\n\nBackendLogin.storageKey = 'Quantumart.QP8.BackendLogin.CustomerCode';\nBackendLogin.removeCustomerCode = function () {\n localStorage.removeItem(BackendLogin.storageKey);\n};\nQuantumart.QP8.BackendLogin = BackendLogin;\n\n\n/***/ })\n\n/******/ });\n\n\n// WEBPACK FOOTER //\n// app-logon.js"," \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, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\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 \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 134);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap e2b77e54b3ee061d9e21","// @ts-nocheck\n/* global require */\nwindow.Quantumart = window.Quantumart || {};\nwindow.Quantumart.QP8 = window.Quantumart.QP8 || {};\n\nrequire('./BackendLogin.js');\n\n\n\n// WEBPACK FOOTER //\n// ./Scripts/Quantumart/AppLogon.js","export class BackendLogin {\n constructor(options) {\n if (options) {\n if (options.useSavedCustomerCode) {\n this._useSavedCustomerCode = options.useSavedCustomerCode;\n }\n }\n\n jQuery(document).ready(jQuery.proxy(this._initialize, this));\n }\n\n storageKey = BackendLogin.storageKey;\n _useSavedCustomerCode = false;\n\n _initialize() {\n if (this._useSavedCustomerCode) {\n const notValid = jQuery('.validation-summary-errors').length > 0;\n\n if (notValid) {\n this.removeCustomerCode();\n } else {\n const value = localStorage.getItem(this.storageKey);\n const isIntegratedLogin = jQuery('#UserName').length === 0;\n\n if (isIntegratedLogin) {\n if (value) {\n jQuery('#CustomerCode').val(value);\n jQuery('form').submit();\n } else {\n jQuery('#Login').click(jQuery.proxy(this._loginClick, this));\n }\n }\n }\n }\n }\n\n _loginClick() {\n localStorage.setItem(this.storageKey, jQuery('#CustomerCode').val());\n }\n\n removeCustomerCode = BackendLogin.removeCustomerCode;\n}\n\nBackendLogin.storageKey = 'Quantumart.QP8.BackendLogin.CustomerCode';\nBackendLogin.removeCustomerCode = function () {\n localStorage.removeItem(BackendLogin.storageKey);\n};\n\n\nQuantumart.QP8.BackendLogin = BackendLogin;\n\n\n\n// WEBPACK FOOTER //\n// ./Scripts/Quantumart/BackendLogin.js"],"sourceRoot":""}