marketplacepos 2.2.4 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,8 +16,8 @@
16
16
  <script>
17
17
  (function () { var w = window; var ic = w.Intercom; if (typeof ic === "function") { ic('reattach_activator'); ic('update', w.intercomSettings); } else { var d = document; var i = function () { i.c(arguments); }; i.q = []; i.c = function (args) { i.q.push(args); }; w.Intercom = i; var l = function () { var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://widget.intercom.io/widget/xv1oomgl'; var x = d.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); }; if (w.attachEvent) { w.attachEvent('onload', l); } else { w.addEventListener('load', l, false); } } })();
18
18
  </script>
19
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.2.4/Marketplace/styles.css"></head>
19
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.2.5/Marketplace/styles.css"></head>
20
20
  <body>
21
21
  <app-root></app-root>
22
- <script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.2.4/Marketplace/runtime.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.2.4/Marketplace/polyfills.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.2.4/Marketplace/scripts.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.2.4/Marketplace/vendor.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.2.4/Marketplace/main.js" type="module"></script></body>
22
+ <script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.2.5/Marketplace/runtime.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.2.5/Marketplace/polyfills.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.2.5/Marketplace/scripts.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.2.5/Marketplace/vendor.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.2.5/Marketplace/main.js" type="module"></script></body>
23
23
  </html>
@@ -245,7 +245,7 @@
245
245
  /******/
246
246
  /******/ /* webpack/runtime/publicPath */
247
247
  /******/ (() => {
248
- /******/ __webpack_require__.p = "https://cdn.jsdelivr.net/npm/marketplacepos@2.2.4/Marketplace/";
248
+ /******/ __webpack_require__.p = "https://cdn.jsdelivr.net/npm/marketplacepos@2.2.5/Marketplace/";
249
249
  /******/ })();
250
250
  /******/
251
251
  /******/ /* webpack/runtime/jsonp chunk loading */
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","mappings":";;;;UAAA;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;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,sDAAsD;WACtD,sCAAsC,iEAAiE;WACvG;WACA;WACA;WACA;WACA;WACA;;;;;WCzBA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,EAAE;WACF;;;;;WCRA;WACA;WACA;WACA;WACA;;;;;WCJA;WACA;WACA;WACA;WACA;;;;;WCJA;;;;;WCAA;WACA;WACA;WACA;WACA,uBAAuB,4BAA4B;WACnD;WACA;WACA;WACA,iBAAiB,oBAAoB;WACrC;WACA,mGAAmG,YAAY;WAC/G;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,mEAAmE,iCAAiC;WACpG;WACA;WACA;WACA;;;;;WCzCA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;WACA;WACA;WACA;WACA;;;;;WCJA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WCZA;;;;;WCAA;;;;;WCAA;;WAEA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;WACA,iCAAiC;;WAEjC;WACA;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM;WACN;WACA;WACA;;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","sources":["webpack/bootstrap","webpack/runtime/chunk loaded","webpack/runtime/compat get default export","webpack/runtime/create fake namespace object","webpack/runtime/define property getters","webpack/runtime/ensure chunk","webpack/runtime/get javascript chunk filename","webpack/runtime/get mini-css chunk filename","webpack/runtime/hasOwnProperty shorthand","webpack/runtime/load script","webpack/runtime/make namespace object","webpack/runtime/node module decorator","webpack/runtime/trusted types policy","webpack/runtime/trusted types script url","webpack/runtime/publicPath","webpack/runtime/jsonp chunk loading","webpack/before-startup","webpack/startup","webpack/after-startup"],"sourcesContent":["// 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};","// 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};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\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__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","var inProgress = {};\nvar dataWebpackPrefix = \"pos-marketplace:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\t\tscript.type = \"module\";\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = __webpack_require__.tu(url);\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// 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};","var policy;\n__webpack_require__.tt = () => {\n\t// Create Trusted Type policy if Trusted Types are available and the policy doesn't exist yet.\n\tif (policy === undefined) {\n\t\tpolicy = {\n\t\t\tcreateScriptURL: (url) => (url)\n\t\t};\n\t\tif (typeof trustedTypes !== \"undefined\" && trustedTypes.createPolicy) {\n\t\t\tpolicy = trustedTypes.createPolicy(\"angular#bundler\", policy);\n\t\t}\n\t}\n\treturn policy;\n};","__webpack_require__.tu = (url) => (__webpack_require__.tt().createScriptURL(url));","__webpack_require__.p = \"https://cdn.jsdelivr.net/npm/marketplacepos@2.2.4/Marketplace/\";","// 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\"runtime\": 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(\"runtime\" != chunkId) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\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[\"webpackChunkpos_marketplace\"] = self[\"webpackChunkpos_marketplace\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","",""],"names":[],"sourceRoot":"webpack:///"}
1
+ {"version":3,"file":"runtime.js","mappings":";;;;UAAA;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;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,sDAAsD;WACtD,sCAAsC,iEAAiE;WACvG;WACA;WACA;WACA;WACA;WACA;;;;;WCzBA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,EAAE;WACF;;;;;WCRA;WACA;WACA;WACA;WACA;;;;;WCJA;WACA;WACA;WACA;WACA;;;;;WCJA;;;;;WCAA;WACA;WACA;WACA;WACA,uBAAuB,4BAA4B;WACnD;WACA;WACA;WACA,iBAAiB,oBAAoB;WACrC;WACA,mGAAmG,YAAY;WAC/G;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,mEAAmE,iCAAiC;WACpG;WACA;WACA;WACA;;;;;WCzCA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;WACA;WACA;WACA;WACA;;;;;WCJA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WCZA;;;;;WCAA;;;;;WCAA;;WAEA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;WACA,iCAAiC;;WAEjC;WACA;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM;WACN;WACA;WACA;;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","sources":["webpack/bootstrap","webpack/runtime/chunk loaded","webpack/runtime/compat get default export","webpack/runtime/create fake namespace object","webpack/runtime/define property getters","webpack/runtime/ensure chunk","webpack/runtime/get javascript chunk filename","webpack/runtime/get mini-css chunk filename","webpack/runtime/hasOwnProperty shorthand","webpack/runtime/load script","webpack/runtime/make namespace object","webpack/runtime/node module decorator","webpack/runtime/trusted types policy","webpack/runtime/trusted types script url","webpack/runtime/publicPath","webpack/runtime/jsonp chunk loading","webpack/before-startup","webpack/startup","webpack/after-startup"],"sourcesContent":["// 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};","// 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};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\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__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","var inProgress = {};\nvar dataWebpackPrefix = \"pos-marketplace:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\t\tscript.type = \"module\";\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = __webpack_require__.tu(url);\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// 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};","var policy;\n__webpack_require__.tt = () => {\n\t// Create Trusted Type policy if Trusted Types are available and the policy doesn't exist yet.\n\tif (policy === undefined) {\n\t\tpolicy = {\n\t\t\tcreateScriptURL: (url) => (url)\n\t\t};\n\t\tif (typeof trustedTypes !== \"undefined\" && trustedTypes.createPolicy) {\n\t\t\tpolicy = trustedTypes.createPolicy(\"angular#bundler\", policy);\n\t\t}\n\t}\n\treturn policy;\n};","__webpack_require__.tu = (url) => (__webpack_require__.tt().createScriptURL(url));","__webpack_require__.p = \"https://cdn.jsdelivr.net/npm/marketplacepos@2.2.5/Marketplace/\";","// 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\"runtime\": 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(\"runtime\" != chunkId) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\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[\"webpackChunkpos_marketplace\"] = self[\"webpackChunkpos_marketplace\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","",""],"names":[],"sourceRoot":"webpack:///"}
@@ -155,9 +155,14 @@ class LoginComponent {
155
155
  var data = JSON.parse(window.localStorage.getItem('user'));
156
156
  let now = new Date();
157
157
  if (data != null) {
158
- let expired = new Date(data.Token.expiredAt);
159
- if (expired > now) {
160
- this._router.navigate(['menu']);
158
+ if (data.expiredAt != undefined) {
159
+ window.localStorage.removeItem("user");
160
+ }
161
+ else {
162
+ let expired = new Date(data.Token.expiredAt);
163
+ if (expired > now) {
164
+ this._router.navigate(['menu']);
165
+ }
161
166
  }
162
167
  }
163
168
  }
@@ -310,7 +315,7 @@ LoginComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__[
310
315
  _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
311
316
  _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](47, "br");
312
317
  _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](48, "a", 34);
313
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](49, "Version 2.2.4");
318
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](49, "Version 2.2.5");
314
319
  _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
315
320
  _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](50, "footer", 35)(51, "div", 25)(52, "div", 36)(53, "p", 31);
316
321
  _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](54, "Powered by : ");
@@ -319,7 +324,7 @@ LoginComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__[
319
324
  _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](56, "img", 33);
320
325
  _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
321
326
  _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](57, "div", 37)(58, "a", 34);
322
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](59, "Version 2.2.4");
327
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](59, "Version 2.2.5");
323
328
  _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
324
329
  } if (rf & 2) {
325
330
  const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](18);
@@ -1 +1 @@
1
- {"version":3,"file":"src_app_login_login_module_ts.js","mappings":";;;;;;;;;;;;;;;;;;AACuD;AAEJ;AACyC;AAChC;;;AAE5D,MAAM,MAAM,GAAW;IACrB,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,4DAAc,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,uBAAuB,EAAC,EAAE;IAChF,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,qGAAyB,EAAE,IAAI,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,EAAC;IACjF,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,qEAAe,EAAE,IAAI,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,EAAC;CACxE,CAAC;AAMK,MAAM,kBAAkB;;oFAAlB,kBAAkB;+GAAlB,kBAAkB;mHAHnB,kEAAqB,CAAC,MAAM,CAAC,EAC7B,yDAAY;mIAEX,kBAAkB,oFAFnB,yDAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IEKV,oEAAkC;IAC9B,+EACJ;IAAA,4DAAI;;;IACJ,oEAAiC;IAC/B,gGACJ;IAAA,4DAAI;;;IANJ,0EAAoF;IAClF,8GAEI;IACJ,8GAEE;IACN,4DAAM;;;;IANE,0DAA4B;IAA5B,qFAA4B;IAG5B,0DAA2B;IAA3B,oFAA2B;;;IAU/B,oEAAoC;IAChC,iFACJ;IAAA,4DAAI;;;IAHN,0EAA0F;IACxF,8GAEI;IACR,4DAAM;;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EAA2B;QAAC,8EAAiB;QAAA,4DAAS;;QALlF,2DAAQ;QAAR,yEAAQ;QAGP,0DAAS;QAAT,0EAAS","sources":["./src/app/login/login-routing.module.ts","./src/app/login/login.component.ts","./src/app/login/login.component.html","./src/app/login/login.module.ts","./src/app/login/shopee-authorized/shopee-authorized.component.ts","./src/app/login/shopee-authorized/shopee-authorized.component.html","./src/app/login/tiktok/tiktok.component.ts","./src/app/login/tiktok/tiktok.component.html"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\n\r\nimport { LoginComponent } from './login.component';\r\nimport { ShopeeAuthorizedComponent } from './shopee-authorized/shopee-authorized.component';\r\nimport { TiktokComponent } from './tiktok/tiktok.component';\r\n\r\nconst routes: Routes = [\r\n { path: '', component: LoginComponent, data: { title: 'Dealpos x Marketplace'} },\r\n { path: 'shopee', component: ShopeeAuthorizedComponent, data: {title: 'Success'}},\r\n { path: 'tiktok', component: TiktokComponent, data: {title: 'Success'}}\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class LoginRoutingModule { }\r\n","import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { HttpService } from '../services/http.service';\r\nimport { CheckbrowserService } from '../services/checkbrowser.service';\r\nimport { TokenDecodeService } from '../services/token-decode.service';\r\n\r\nimport { ToastrService } from 'ngx-toastr';\r\ndeclare var window;\r\n@Component({\r\n selector: 'app-login',\r\n templateUrl: './login.component.html',\r\n styleUrls: ['./login.component.scss']\r\n})\r\nexport class LoginComponent implements OnInit {\r\n @ViewChild(\"domainAutoFocus\") domainElementRef: ElementRef;\r\n @ViewChild(\"passAutoFocus\") passElementRef: ElementRef;\r\n\r\n login = {\r\n Host : '',\r\n Username : '',\r\n Password : ''\r\n };\r\n \r\n\r\n //For eye toggle icon : https://stackoverflow.com/questions/46815831/how-to-create-login-in-ionic-2-with-show-hide-password\r\n passwordType : string = 'password';\r\n passwordIcon : string = 'eye-off';\r\n\r\n browser : string;\r\n\r\n constructor(private http: HttpService,\r\n private _router: Router,\r\n private elementRef: ElementRef, \r\n private toastr: ToastrService,\r\n private checkBrowser: CheckbrowserService,\r\n private konversi :TokenDecodeService\r\n ) { \r\n this.getCookies();\r\n var data = JSON.parse(window.localStorage.getItem('user'));\r\n let now = new Date(); \r\n if(data != null){\r\n let expired = new Date(data.Token.expiredAt);\r\n if(expired > now){\r\n this._router.navigate(['menu']);\r\n }\r\n }\r\n }\r\n\r\n\r\n\r\n ngOnInit(): void {\r\n //change background color to light blue\r\n this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor = '#dfeffc';\r\n\r\n this.browser = this.checkBrowser.getBrowserName();\r\n\r\n }\r\n\r\n \r\n\r\n ngOnDestroy(): void {\r\n //Called once, before the instance is destroyed.\r\n //Add 'implements OnDestroy' to the class.\r\n this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor = 'white';\r\n }\r\n\r\n \r\n getCookies() {\r\n let Authorization = localStorage.getItem(\"Authorization\");\r\n if(Authorization != null)\r\n {\r\n let model = JSON.parse(Authorization);\r\n this.login.Host = model.Host;\r\n this.login.Username = model.Username;\r\n }\r\n }\r\n\r\n setAutoFocusDomain() {\r\n this.domainElementRef.nativeElement.focus();\r\n }\r\n\r\n setAutoFocusPass() {\r\n this.passElementRef.nativeElement.focus();\r\n }\r\n\r\n DoLogin(): void {\r\n //Implement redirect to /menu\r\n this.http.post<any>('/api/token/Login',this.login).subscribe(result=>{\r\n if(result.Token.access_token != null)\r\n {\r\n window.localStorage.removeItem(\"user\");\r\n window.localStorage.setItem('user', JSON.stringify(result));\r\n\r\n let msg = \"This user is lack of these following roles :\";\r\n let SellCreateRole = true;\r\n let SellEditorRole = true;\r\n let deliveryRole = true;\r\n let paymentRole = true;\r\n let m = this.konversi.GetNamePOS();\r\n if(m.Sell != \"True\")\r\n {\r\n SellCreateRole = false;\r\n msg = `${msg} <br/> Sell Create`\r\n }\r\n\r\n if(m.SellEditor != \"True\")\r\n {\r\n SellEditorRole = false;\r\n msg = `${msg} <br/> Sell Editor`\r\n }\r\n\r\n if(m.DelC != \"True\")\r\n {\r\n deliveryRole = false;\r\n msg = `${msg} <br/> Delivery Create`\r\n }\r\n\r\n if(m.PayC != \"True\")\r\n {\r\n paymentRole = false;\r\n msg = `${msg} <br/> Payment Create`\r\n }\r\n\r\n if(!SellCreateRole || !SellEditorRole || !deliveryRole || !paymentRole)\r\n {\r\n this.toastr.warning(msg, \"Warning!\",{enableHtml:true});\r\n }\r\n\r\n\r\n\r\n window.localStorage.removeItem(\"Intercom\");\r\n window.localStorage.setItem('Intercom', JSON.stringify(result.IntercomWidget));\r\n\r\n\r\n \r\n\r\n window.localStorage.removeItem(\"Authorization\");\r\n let temp = {\r\n Host : this.login.Host,\r\n Username : this.login.Username\r\n }\r\n window.localStorage.setItem('Authorization',JSON.stringify(temp));\r\n\r\n \r\n if(result.Channel.length < 1)\r\n {\r\n this._router.navigate(['menu/channel']);\r\n }else\r\n {\r\n this._router.navigate(['menu']);\r\n }\r\n \r\n }\r\n \r\n })\r\n }\r\n\r\n redirectForgetPass(){\r\n window.open(this.makeForgotPassLink(),\"_blank\");\r\n }\r\n\r\n makeForgotPassLink() {\r\n var link = this.login.Host;\r\n if (link[(link.length-1)] == '/' ) {\r\n link = link.slice(0,-1);\r\n }\r\n if (!link.includes('https://')){\r\n link = 'https://' + link;\r\n } \r\n\r\n return link + \"/ForgotPassword\";\r\n }\r\n\r\n //Function: hideShowPassword() will toggle the password visibility with the eye icon\r\n hideShowPassword() {\r\n this.passwordType = this.passwordType === 'text' ? 'password' : 'text';\r\n this.passwordIcon = this.passwordIcon === 'eye-off' ? 'eye' : 'eye-off';\r\n }\r\n\r\n \r\n \r\n}\r\n","<div class=\"container \">\r\n <div class=\"row mt-md-0 align-self-center\">\t\r\n <div class=\" col-12 col-md-7 text-center\">\r\n <h1 class=\"big-display robotoslab d-none d-sm-block\">DealPOS Omnichannel</h1>\r\n <img src=\"https://res.cloudinary.com/pos/image/upload/v1657855612/Apps/Login/Omnichannel.png\" alt=\"integration-image\" class=\"img-fluid\">\r\n </div>\r\n <div class=\"col-12 col-md-5 order-first order-md-last mt-12\">\r\n <h1 class=\"big-display text-center my-5 py-5 robotoslab d-block d-sm-none\">DealPOS x Marketplace</h1>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <div class=\"card-title\">\r\n <h2 class=\"ms-2 fw-normal font-xl robotoslab\">Sign in</h2>\r\n </div>\r\n <form class=\"mt-10\"> \r\n <div class=\"form-label-group\">\r\n <input #domainAutoFocus type=\"text\" required [(ngModel)]=\"login.Host\" name=\"Host\" id=\"inputHost\" class=\"form-control text-start\"\r\n placeholder=\"POS Domain (xyz.dealpos.com)\" pattern=\"(https:\\/\\/)?\\w+.dealpos(.com|.net|.co.id)(\\/)?\" #domain=\"ngModel\">\r\n <label for=\"inputHost\" class=\"text-start\">POS Domain (xyz.dealpos.com)</label>\r\n </div>\r\n <div class=\"text-danger\" *ngIf=\"domain.invalid && (domain.dirty || domain.touched)\">\r\n <p *ngIf=\"domain.errors.required\">\r\n Domain is required\r\n </p>\r\n <p *ngIf=\"domain.errors.pattern\">\r\n Please enter a valid dealpos domain\r\n </p>\r\n </div>\r\n <div class=\"form-label-group\">\r\n <input type=\"text\" [(ngModel)]=\"login.Username\" name=\"Username\" id=\"inputUsername\" class=\"form-control text-start\"\r\n placeholder=\"Username\" required #username=\"ngModel\">\r\n <label for=\"inputUsername\" class=\"text-start\">Username</label>\r\n </div>\r\n <div class=\"text-danger\" *ngIf=\"username.invalid && (username.dirty || username.touched)\">\r\n <p *ngIf=\"username.errors.required\">\r\n Username is required\r\n </p>\r\n </div>\r\n <div class=\"form-label-group mb-5 mb-sm-2\">\r\n <input #passAutoFocus [type]=\"passwordType\" [(ngModel)]=\"login.Password\" name=\"Password\" id=\"inputPassword\" class=\"form-control text-start\"\r\n placeholder=\"Password\" required #password=\"ngModel\">\r\n <label for=\"inputPassword\" class=\"text-start\">Password</label>\r\n <i *ngIf=\"login.Password != '' && browser != 'edge'\" [ngClass]=\"{'fa-eye': (passwordIcon == 'eye-off') , 'fa-eye-slash' : (passwordIcon == 'eye') }\" class=\"passwordIcon fas fa-lg\" (click)='hideShowPassword()'></i>\r\n </div>\r\n <div class=\"text-danger\" *ngIf=\"password.invalid && (password.dirty || password.touched)\">\r\n <p *ngIf=\"password.errors.required\">\r\n Password is required\r\n </p>\r\n </div>\r\n <div class=\"row justify-content-between align-items-center\">\r\n <div class=\"col-12 col-lg-auto order-first order-lg-last\">\r\n <a href=\"\" (click)=\"redirectForgetPass()\" *ngIf=\"domain.valid\">Forgot Password?</a>\r\n </div>\r\n <div class=\"col-12 col-lg-5 order-last order-lg-last text-end\">\r\n <button class=\"btn btn-lg btn-primary btn-block font125rem robotoslab w-100\" data-cy=\"login\" type=\"submit\" (click)=\"DoLogin()\">Log in</button>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-12 d-block d-md-none text-center\">\r\n <p class=\"pt-1rem me-3\">Powered by : </p>\r\n <a target=\"_blank\" href=\"https://www.dealpos.com\"><img src=\"https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png\" alt=\"dealpos-logo\" class=\"img-fluid\"></a>\r\n <br/>\r\n <a class=\"pt-1rem font-italic\" target=\"_blank\" href=\"https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete\">Version 2.2.4</a>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n<footer class=\"mx-5 pb-5 mb-5 d-none d-md-block\">\r\n <div class=\"row justify-content-between align-items-center\">\r\n <div class=\"col-auto d-inline-flex\">\r\n <p class=\"pt-1rem me-3\">Powered by : </p>\r\n <a target=\"_blank\" href=\"https://www.dealpos.com\"><img src=\"https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png\" alt=\"dealpos-logo\" class=\"img-fluid\"></a>\r\n </div>\r\n <div class=\"col-auto\">\r\n <a class=\"pt-1rem font-italic\" target=\"_blank\" href=\"https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete\">Version 2.2.4</a>\r\n </div>\r\n </div>\r\n</footer>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { LoginRoutingModule } from './login-routing.module';\r\nimport { LoginComponent } from './login.component';\r\nimport { ShopeeAuthorizedComponent } from './shopee-authorized/shopee-authorized.component';\r\nimport { TiktokComponent } from './tiktok/tiktok.component';\r\n\r\n\r\n@NgModule({\r\n declarations: [LoginComponent, ShopeeAuthorizedComponent, TiktokComponent],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n LoginRoutingModule\r\n ],\r\n providers: []\r\n})\r\nexport class LoginModule { }\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute,Router } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { HttpService } from '../../services/http.service';\r\n@Component({\r\n selector: 'shopee-authorized',\r\n templateUrl: './shopee-authorized.component.html',\r\n styleUrls: ['./shopee-authorized.component.scss']\r\n})\r\nexport class ShopeeAuthorizedComponent implements OnInit {\r\n\r\n data$: Observable<any>;\r\n shopID : String;\r\n code: string;\r\n constructor(private route: ActivatedRoute, private http: HttpService,private service: Router) { }\r\n\r\n ngOnInit(): void {\r\n\r\n this.route.queryParams.subscribe( params => {\r\n this.shopID = params['shop_id'],\r\n this.code = params['code']\r\n })\r\n }\r\n\r\n addShopee()\r\n {\r\n let form = {\r\n ShopID : Number(this.shopID),\r\n Code : this.code\r\n }\r\n const Api = '/api/ChannelAdd/ShopeeV2';\r\n this.http.post<any>(Api,form).subscribe(result => {\r\n this.service.navigate([\"/menu/channel\"]);\r\n })\r\n }\r\n\r\n}\r\n","<div class=\"container\">\r\n <div class=\"row d-flex justify-content-center\">\r\n <div class=\"col-md-4\">\r\n <div class=\"card\">\r\n <div class=\"card-header text-center\">\r\n <i class=\"far fa-check-circle text-success\" style=\"font-size: 115px;\"></i>\r\n <div class=\"h3 fw-bold\">Success !</div>\r\n </div>\r\n <div class=\"card-body text-center\">\r\n <div>You have successfully authorized </div>\r\n <div>DEALPOS to manage your Shopee</div>\r\n <div>\r\n Your shopID is <span class=\"text-shopee fw-bold\" >{{this.shopID}}</span>\r\n </div>\r\n <button type=\"button\" class=\"btn btn-success mt-5\" (click)=\"addShopee()\"><i class=\"fas fa-undo\"></i> Add to my Channel</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div> ","import { Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { HttpService } from 'src/app/services/http.service';\r\n\r\n@Component({\r\n selector: 'app-tiktok',\r\n templateUrl: './tiktok.component.html',\r\n styleUrls: ['./tiktok.component.scss']\r\n})\r\nexport class TiktokComponent implements OnInit {\r\n code :string;\r\n state:string;\r\n\r\n constructor(private route: ActivatedRoute, private http: HttpService,private service: Router) { }\r\n\r\n ngOnInit(): void {\r\n \r\n this.route.queryParams.subscribe( params => {\r\n this.code = params['code'],\r\n this.state = params['state']\r\n })\r\n }\r\n\r\n addChannelTiktok()\r\n {\r\n let form = {\r\n Code : this.code\r\n }\r\n this.http.post<any>( '/api/ChannelAdd/AddTiktok',form).subscribe(result => {\r\n this.service.navigate([\"/menu/channel\"]);\r\n })\r\n }\r\n\r\n}\r\n","<div class=\"container\">\r\n <div class=\"row d-flex justify-content-center\">\r\n <div class=\"col-md-4\">\r\n <div class=\"card\">\r\n <div class=\"card-header text-center\">\r\n <i class=\"far fa-check-circle text-success\" style=\"font-size: 115px;\"></i>\r\n <div class=\"h3 fw-bold\">Success !</div>\r\n </div>\r\n <div class=\"card-body text-center\">\r\n <div>You have successfully authorized </div>\r\n <div>DEALPOS to manage your Tiktok</div>\r\n <div>\r\n Your Code is <span class=\"text-shopee fw-bold\" >{{code}}</span>\r\n </div>\r\n <div>\r\n Your State is <span class=\"text-shopee fw-bold\" >{{state}}</span>\r\n </div>\r\n <button type=\"button\" class=\"btn btn-success mt-5\" (click)=\"addChannelTiktok()\"><i class=\"fas fa-undo\"></i> Add to my Channel</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div> "],"names":[],"sourceRoot":"webpack:///"}
1
+ {"version":3,"file":"src_app_login_login_module_ts.js","mappings":";;;;;;;;;;;;;;;;;;AACuD;AAEJ;AACyC;AAChC;;;AAE5D,MAAM,MAAM,GAAW;IACrB,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,4DAAc,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,uBAAuB,EAAC,EAAE;IAChF,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,qGAAyB,EAAE,IAAI,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,EAAC;IACjF,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,qEAAe,EAAE,IAAI,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,EAAC;CACxE,CAAC;AAMK,MAAM,kBAAkB;;oFAAlB,kBAAkB;+GAAlB,kBAAkB;mHAHnB,kEAAqB,CAAC,MAAM,CAAC,EAC7B,yDAAY;mIAEX,kBAAkB,oFAFnB,yDAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IEKV,oEAAkC;IAC9B,+EACJ;IAAA,4DAAI;;;IACJ,oEAAiC;IAC/B,gGACJ;IAAA,4DAAI;;;IANJ,0EAAoF;IAClF,8GAEI;IACJ,8GAEE;IACN,4DAAM;;;;IANE,0DAA4B;IAA5B,qFAA4B;IAG5B,0DAA2B;IAA3B,oFAA2B;;;IAU/B,oEAAoC;IAChC,iFACJ;IAAA,4DAAI;;;IAHN,0EAA0F;IACxF,8GAEI;IACR,4DAAM;;;;IAHE,0DAA8B;IAA9B,qFAA8B;;;;;IAQlC,wEAAiN;IAA7B,wRAAS,oFAAkB,KAAC;IAAC,4DAAI;;;IAAhK,0MAA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,sBAAkB,IAAC;QAAC,oEAA2B;QAAC,8EAAiB;QAAA,4DAAS;;QALlF,2DAAQ;QAAR,yEAAQ;QAGP,0DAAS;QAAT,0EAAS","sources":["./src/app/login/login-routing.module.ts","./src/app/login/login.component.ts","./src/app/login/login.component.html","./src/app/login/login.module.ts","./src/app/login/shopee-authorized/shopee-authorized.component.ts","./src/app/login/shopee-authorized/shopee-authorized.component.html","./src/app/login/tiktok/tiktok.component.ts","./src/app/login/tiktok/tiktok.component.html"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\n\r\nimport { LoginComponent } from './login.component';\r\nimport { ShopeeAuthorizedComponent } from './shopee-authorized/shopee-authorized.component';\r\nimport { TiktokComponent } from './tiktok/tiktok.component';\r\n\r\nconst routes: Routes = [\r\n { path: '', component: LoginComponent, data: { title: 'Dealpos x Marketplace'} },\r\n { path: 'shopee', component: ShopeeAuthorizedComponent, data: {title: 'Success'}},\r\n { path: 'tiktok', component: TiktokComponent, data: {title: 'Success'}}\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class LoginRoutingModule { }\r\n","import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { HttpService } from '../services/http.service';\r\nimport { CheckbrowserService } from '../services/checkbrowser.service';\r\nimport { TokenDecodeService } from '../services/token-decode.service';\r\n\r\nimport { ToastrService } from 'ngx-toastr';\r\ndeclare var window;\r\n@Component({\r\n selector: 'app-login',\r\n templateUrl: './login.component.html',\r\n styleUrls: ['./login.component.scss']\r\n})\r\nexport class LoginComponent implements OnInit {\r\n @ViewChild(\"domainAutoFocus\") domainElementRef: ElementRef;\r\n @ViewChild(\"passAutoFocus\") passElementRef: ElementRef;\r\n\r\n login = {\r\n Host : '',\r\n Username : '',\r\n Password : ''\r\n };\r\n \r\n\r\n //For eye toggle icon : https://stackoverflow.com/questions/46815831/how-to-create-login-in-ionic-2-with-show-hide-password\r\n passwordType : string = 'password';\r\n passwordIcon : string = 'eye-off';\r\n\r\n browser : string;\r\n\r\n constructor(private http: HttpService,\r\n private _router: Router,\r\n private elementRef: ElementRef, \r\n private toastr: ToastrService,\r\n private checkBrowser: CheckbrowserService,\r\n private konversi :TokenDecodeService\r\n ) { \r\n this.getCookies();\r\n var data = JSON.parse(window.localStorage.getItem('user'));\r\n let now = new Date(); \r\n if(data != null){\r\n if(data.expiredAt != undefined)\r\n {\r\n window.localStorage.removeItem(\"user\");\r\n }else{\r\n let expired = new Date(data.Token.expiredAt);\r\n if(expired > now){\r\n this._router.navigate(['menu']);\r\n }\r\n }\r\n \r\n }\r\n }\r\n\r\n\r\n\r\n ngOnInit(): void {\r\n //change background color to light blue\r\n this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor = '#dfeffc';\r\n\r\n this.browser = this.checkBrowser.getBrowserName();\r\n\r\n }\r\n\r\n \r\n\r\n ngOnDestroy(): void {\r\n //Called once, before the instance is destroyed.\r\n //Add 'implements OnDestroy' to the class.\r\n this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor = 'white';\r\n }\r\n\r\n \r\n getCookies() {\r\n let Authorization = localStorage.getItem(\"Authorization\");\r\n if(Authorization != null)\r\n {\r\n let model = JSON.parse(Authorization);\r\n this.login.Host = model.Host;\r\n this.login.Username = model.Username;\r\n }\r\n }\r\n\r\n setAutoFocusDomain() {\r\n this.domainElementRef.nativeElement.focus();\r\n }\r\n\r\n setAutoFocusPass() {\r\n this.passElementRef.nativeElement.focus();\r\n }\r\n\r\n DoLogin(): void {\r\n //Implement redirect to /menu\r\n this.http.post<any>('/api/token/Login',this.login).subscribe(result=>{\r\n if(result.Token.access_token != null)\r\n {\r\n window.localStorage.removeItem(\"user\");\r\n window.localStorage.setItem('user', JSON.stringify(result));\r\n\r\n let msg = \"This user is lack of these following roles :\";\r\n let SellCreateRole = true;\r\n let SellEditorRole = true;\r\n let deliveryRole = true;\r\n let paymentRole = true;\r\n let m = this.konversi.GetNamePOS();\r\n if(m.Sell != \"True\")\r\n {\r\n SellCreateRole = false;\r\n msg = `${msg} <br/> Sell Create`\r\n }\r\n\r\n if(m.SellEditor != \"True\")\r\n {\r\n SellEditorRole = false;\r\n msg = `${msg} <br/> Sell Editor`\r\n }\r\n\r\n if(m.DelC != \"True\")\r\n {\r\n deliveryRole = false;\r\n msg = `${msg} <br/> Delivery Create`\r\n }\r\n\r\n if(m.PayC != \"True\")\r\n {\r\n paymentRole = false;\r\n msg = `${msg} <br/> Payment Create`\r\n }\r\n\r\n if(!SellCreateRole || !SellEditorRole || !deliveryRole || !paymentRole)\r\n {\r\n this.toastr.warning(msg, \"Warning!\",{enableHtml:true});\r\n }\r\n\r\n\r\n\r\n window.localStorage.removeItem(\"Intercom\");\r\n window.localStorage.setItem('Intercom', JSON.stringify(result.IntercomWidget));\r\n\r\n\r\n \r\n\r\n window.localStorage.removeItem(\"Authorization\");\r\n let temp = {\r\n Host : this.login.Host,\r\n Username : this.login.Username\r\n }\r\n window.localStorage.setItem('Authorization',JSON.stringify(temp));\r\n\r\n \r\n if(result.Channel.length < 1)\r\n {\r\n this._router.navigate(['menu/channel']);\r\n }else\r\n {\r\n this._router.navigate(['menu']);\r\n }\r\n \r\n }\r\n \r\n })\r\n }\r\n\r\n redirectForgetPass(){\r\n window.open(this.makeForgotPassLink(),\"_blank\");\r\n }\r\n\r\n makeForgotPassLink() {\r\n var link = this.login.Host;\r\n if (link[(link.length-1)] == '/' ) {\r\n link = link.slice(0,-1);\r\n }\r\n if (!link.includes('https://')){\r\n link = 'https://' + link;\r\n } \r\n\r\n return link + \"/ForgotPassword\";\r\n }\r\n\r\n //Function: hideShowPassword() will toggle the password visibility with the eye icon\r\n hideShowPassword() {\r\n this.passwordType = this.passwordType === 'text' ? 'password' : 'text';\r\n this.passwordIcon = this.passwordIcon === 'eye-off' ? 'eye' : 'eye-off';\r\n }\r\n\r\n \r\n \r\n}\r\n","<div class=\"container \">\r\n <div class=\"row mt-md-0 align-self-center\">\t\r\n <div class=\" col-12 col-md-7 text-center\">\r\n <h1 class=\"big-display robotoslab d-none d-sm-block\">DealPOS Omnichannel</h1>\r\n <img src=\"https://res.cloudinary.com/pos/image/upload/v1657855612/Apps/Login/Omnichannel.png\" alt=\"integration-image\" class=\"img-fluid\">\r\n </div>\r\n <div class=\"col-12 col-md-5 order-first order-md-last mt-12\">\r\n <h1 class=\"big-display text-center my-5 py-5 robotoslab d-block d-sm-none\">DealPOS x Marketplace</h1>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <div class=\"card-title\">\r\n <h2 class=\"ms-2 fw-normal font-xl robotoslab\">Sign in</h2>\r\n </div>\r\n <form class=\"mt-10\"> \r\n <div class=\"form-label-group\">\r\n <input #domainAutoFocus type=\"text\" required [(ngModel)]=\"login.Host\" name=\"Host\" id=\"inputHost\" class=\"form-control text-start\"\r\n placeholder=\"POS Domain (xyz.dealpos.com)\" pattern=\"(https:\\/\\/)?\\w+.dealpos(.com|.net|.co.id)(\\/)?\" #domain=\"ngModel\">\r\n <label for=\"inputHost\" class=\"text-start\">POS Domain (xyz.dealpos.com)</label>\r\n </div>\r\n <div class=\"text-danger\" *ngIf=\"domain.invalid && (domain.dirty || domain.touched)\">\r\n <p *ngIf=\"domain.errors.required\">\r\n Domain is required\r\n </p>\r\n <p *ngIf=\"domain.errors.pattern\">\r\n Please enter a valid dealpos domain\r\n </p>\r\n </div>\r\n <div class=\"form-label-group\">\r\n <input type=\"text\" [(ngModel)]=\"login.Username\" name=\"Username\" id=\"inputUsername\" class=\"form-control text-start\"\r\n placeholder=\"Username\" required #username=\"ngModel\">\r\n <label for=\"inputUsername\" class=\"text-start\">Username</label>\r\n </div>\r\n <div class=\"text-danger\" *ngIf=\"username.invalid && (username.dirty || username.touched)\">\r\n <p *ngIf=\"username.errors.required\">\r\n Username is required\r\n </p>\r\n </div>\r\n <div class=\"form-label-group mb-5 mb-sm-2\">\r\n <input #passAutoFocus [type]=\"passwordType\" [(ngModel)]=\"login.Password\" name=\"Password\" id=\"inputPassword\" class=\"form-control text-start\"\r\n placeholder=\"Password\" required #password=\"ngModel\">\r\n <label for=\"inputPassword\" class=\"text-start\">Password</label>\r\n <i *ngIf=\"login.Password != '' && browser != 'edge'\" [ngClass]=\"{'fa-eye': (passwordIcon == 'eye-off') , 'fa-eye-slash' : (passwordIcon == 'eye') }\" class=\"passwordIcon fas fa-lg\" (click)='hideShowPassword()'></i>\r\n </div>\r\n <div class=\"text-danger\" *ngIf=\"password.invalid && (password.dirty || password.touched)\">\r\n <p *ngIf=\"password.errors.required\">\r\n Password is required\r\n </p>\r\n </div>\r\n <div class=\"row justify-content-between align-items-center\">\r\n <div class=\"col-12 col-lg-auto order-first order-lg-last\">\r\n <a href=\"\" (click)=\"redirectForgetPass()\" *ngIf=\"domain.valid\">Forgot Password?</a>\r\n </div>\r\n <div class=\"col-12 col-lg-5 order-last order-lg-last text-end\">\r\n <button class=\"btn btn-lg btn-primary btn-block font125rem robotoslab w-100\" data-cy=\"login\" type=\"submit\" (click)=\"DoLogin()\">Log in</button>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-12 d-block d-md-none text-center\">\r\n <p class=\"pt-1rem me-3\">Powered by : </p>\r\n <a target=\"_blank\" href=\"https://www.dealpos.com\"><img src=\"https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png\" alt=\"dealpos-logo\" class=\"img-fluid\"></a>\r\n <br/>\r\n <a class=\"pt-1rem font-italic\" target=\"_blank\" href=\"https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete\">Version 2.2.5</a>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n<footer class=\"mx-5 pb-5 mb-5 d-none d-md-block\">\r\n <div class=\"row justify-content-between align-items-center\">\r\n <div class=\"col-auto d-inline-flex\">\r\n <p class=\"pt-1rem me-3\">Powered by : </p>\r\n <a target=\"_blank\" href=\"https://www.dealpos.com\"><img src=\"https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png\" alt=\"dealpos-logo\" class=\"img-fluid\"></a>\r\n </div>\r\n <div class=\"col-auto\">\r\n <a class=\"pt-1rem font-italic\" target=\"_blank\" href=\"https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete\">Version 2.2.5</a>\r\n </div>\r\n </div>\r\n</footer>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { LoginRoutingModule } from './login-routing.module';\r\nimport { LoginComponent } from './login.component';\r\nimport { ShopeeAuthorizedComponent } from './shopee-authorized/shopee-authorized.component';\r\nimport { TiktokComponent } from './tiktok/tiktok.component';\r\n\r\n\r\n@NgModule({\r\n declarations: [LoginComponent, ShopeeAuthorizedComponent, TiktokComponent],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n LoginRoutingModule\r\n ],\r\n providers: []\r\n})\r\nexport class LoginModule { }\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute,Router } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { HttpService } from '../../services/http.service';\r\n@Component({\r\n selector: 'shopee-authorized',\r\n templateUrl: './shopee-authorized.component.html',\r\n styleUrls: ['./shopee-authorized.component.scss']\r\n})\r\nexport class ShopeeAuthorizedComponent implements OnInit {\r\n\r\n data$: Observable<any>;\r\n shopID : String;\r\n code: string;\r\n constructor(private route: ActivatedRoute, private http: HttpService,private service: Router) { }\r\n\r\n ngOnInit(): void {\r\n\r\n this.route.queryParams.subscribe( params => {\r\n this.shopID = params['shop_id'],\r\n this.code = params['code']\r\n })\r\n }\r\n\r\n addShopee()\r\n {\r\n let form = {\r\n ShopID : Number(this.shopID),\r\n Code : this.code\r\n }\r\n const Api = '/api/ChannelAdd/ShopeeV2';\r\n this.http.post<any>(Api,form).subscribe(result => {\r\n this.service.navigate([\"/menu/channel\"]);\r\n })\r\n }\r\n\r\n}\r\n","<div class=\"container\">\r\n <div class=\"row d-flex justify-content-center\">\r\n <div class=\"col-md-4\">\r\n <div class=\"card\">\r\n <div class=\"card-header text-center\">\r\n <i class=\"far fa-check-circle text-success\" style=\"font-size: 115px;\"></i>\r\n <div class=\"h3 fw-bold\">Success !</div>\r\n </div>\r\n <div class=\"card-body text-center\">\r\n <div>You have successfully authorized </div>\r\n <div>DEALPOS to manage your Shopee</div>\r\n <div>\r\n Your shopID is <span class=\"text-shopee fw-bold\" >{{this.shopID}}</span>\r\n </div>\r\n <button type=\"button\" class=\"btn btn-success mt-5\" (click)=\"addShopee()\"><i class=\"fas fa-undo\"></i> Add to my Channel</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div> ","import { Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { HttpService } from 'src/app/services/http.service';\r\n\r\n@Component({\r\n selector: 'app-tiktok',\r\n templateUrl: './tiktok.component.html',\r\n styleUrls: ['./tiktok.component.scss']\r\n})\r\nexport class TiktokComponent implements OnInit {\r\n code :string;\r\n state:string;\r\n\r\n constructor(private route: ActivatedRoute, private http: HttpService,private service: Router) { }\r\n\r\n ngOnInit(): void {\r\n \r\n this.route.queryParams.subscribe( params => {\r\n this.code = params['code'],\r\n this.state = params['state']\r\n })\r\n }\r\n\r\n addChannelTiktok()\r\n {\r\n let form = {\r\n Code : this.code\r\n }\r\n this.http.post<any>( '/api/ChannelAdd/AddTiktok',form).subscribe(result => {\r\n this.service.navigate([\"/menu/channel\"]);\r\n })\r\n }\r\n\r\n}\r\n","<div class=\"container\">\r\n <div class=\"row d-flex justify-content-center\">\r\n <div class=\"col-md-4\">\r\n <div class=\"card\">\r\n <div class=\"card-header text-center\">\r\n <i class=\"far fa-check-circle text-success\" style=\"font-size: 115px;\"></i>\r\n <div class=\"h3 fw-bold\">Success !</div>\r\n </div>\r\n <div class=\"card-body text-center\">\r\n <div>You have successfully authorized </div>\r\n <div>DEALPOS to manage your Tiktok</div>\r\n <div>\r\n Your Code is <span class=\"text-shopee fw-bold\" >{{code}}</span>\r\n </div>\r\n <div>\r\n Your State is <span class=\"text-shopee fw-bold\" >{{state}}</span>\r\n </div>\r\n <button type=\"button\" class=\"btn btn-success mt-5\" (click)=\"addChannelTiktok()\"><i class=\"fas fa-undo\"></i> Add to my Channel</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div> "],"names":[],"sourceRoot":"webpack:///"}
@@ -5738,18 +5738,23 @@ class MenuComponent {
5738
5738
  CheckExpired() {
5739
5739
  let user = JSON.parse(window.localStorage.getItem('user'));
5740
5740
  if (user) {
5741
- let ListChannel = user.Channel;
5742
- if (ListChannel.length > 0) {
5743
- for (let c of ListChannel) {
5744
- if (c.ExpiredTime != null && c.TypeID == 0) {
5745
- let expiry = new Date(c.ExpiredTime);
5746
- let today = new Date();
5747
- var Difference_In_Time = expiry.getTime() - today.getTime();
5748
- // To calculate the no. of days between two dates
5749
- this.Difference_In_Days = Math.round(Difference_In_Time / (1000 * 3600 * 24));
5750
- if (this.Difference_In_Days <= 10) {
5751
- this.IsExpired = true;
5752
- this.ShopID = c.ShopID;
5741
+ if (user.expiredAt != undefined) {
5742
+ this.LogOut();
5743
+ }
5744
+ else {
5745
+ let ListChannel = user.Channel;
5746
+ if (ListChannel.length > 0) {
5747
+ for (let c of ListChannel) {
5748
+ if (c.ExpiredTime != null && c.TypeID == 0) {
5749
+ let expiry = new Date(c.ExpiredTime);
5750
+ let today = new Date();
5751
+ var Difference_In_Time = expiry.getTime() - today.getTime();
5752
+ // To calculate the no. of days between two dates
5753
+ this.Difference_In_Days = Math.round(Difference_In_Time / (1000 * 3600 * 24));
5754
+ if (this.Difference_In_Days <= 10) {
5755
+ this.IsExpired = true;
5756
+ this.ShopID = c.ShopID;
5757
+ }
5753
5758
  }
5754
5759
  }
5755
5760
  }
@@ -12198,7 +12203,7 @@ function ModalVariantComponent_ng_container_20_ng_container_1_Template(rf, ctx)
12198
12203
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td", 4);
12199
12204
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
12200
12205
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
12201
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td", 9)(7, "p", 10);
12206
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td", 8)(7, "p", 9);
12202
12207
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Product Not in Channel!");
12203
12208
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
12204
12209
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
@@ -12230,21 +12235,21 @@ function ModalVariantComponent_ng_container_20_ng_template_2_tr_0_td_2_Template(
12230
12235
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", v_r1 == null ? null : v_r1.Code, "");
12231
12236
  } }
12232
12237
  function ModalVariantComponent_ng_container_20_ng_template_2_tr_0_img_13_Template(rf, ctx) { if (rf & 1) {
12233
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 17);
12238
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 16);
12234
12239
  } }
12235
12240
  function ModalVariantComponent_ng_container_20_ng_template_2_tr_0_img_14_Template(rf, ctx) { if (rf & 1) {
12236
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 18);
12241
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 17);
12237
12242
  } }
12238
12243
  function ModalVariantComponent_ng_container_20_ng_template_2_tr_0_img_15_Template(rf, ctx) { if (rf & 1) {
12239
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 19);
12244
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 18);
12240
12245
  } }
12241
12246
  function ModalVariantComponent_ng_container_20_ng_template_2_tr_0_img_16_Template(rf, ctx) { if (rf & 1) {
12242
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 20);
12247
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 19);
12243
12248
  } }
12244
12249
  function ModalVariantComponent_ng_container_20_ng_template_2_tr_0_Template(rf, ctx) { if (rf & 1) {
12245
12250
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
12246
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_td_1_Template, 2, 2, "td", 11);
12247
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_td_2_Template, 2, 2, "td", 11);
12251
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_td_1_Template, 2, 2, "td", 10);
12252
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_td_2_Template, 2, 2, "td", 10);
12248
12253
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td", 4);
12249
12254
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
12250
12255
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](5, "number");
@@ -12256,11 +12261,11 @@ function ModalVariantComponent_ng_container_20_ng_template_2_tr_0_Template(rf, c
12256
12261
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td", 4);
12257
12262
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
12258
12263
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
12259
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td", 4)(12, "a", 12);
12260
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_img_13_Template, 1, 0, "img", 13);
12261
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_img_14_Template, 1, 0, "img", 14);
12262
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_img_15_Template, 1, 0, "img", 15);
12263
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_img_16_Template, 1, 0, "img", 16);
12264
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td", 4)(12, "a", 11);
12265
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_img_13_Template, 1, 0, "img", 12);
12266
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_img_14_Template, 1, 0, "img", 13);
12267
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_img_15_Template, 1, 0, "img", 14);
12268
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_img_16_Template, 1, 0, "img", 15);
12264
12269
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
12265
12270
  } if (rf & 2) {
12266
12271
  const y_r7 = ctx.$implicit;
@@ -12288,15 +12293,15 @@ function ModalVariantComponent_ng_container_20_ng_template_2_tr_0_Template(rf, c
12288
12293
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", y_r7.TypeID == 6);
12289
12294
  } }
12290
12295
  function ModalVariantComponent_ng_container_20_ng_template_2_Template(rf, ctx) { if (rf & 1) {
12291
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_Template, 17, 15, "tr", 6);
12296
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ModalVariantComponent_ng_container_20_ng_template_2_tr_0_Template, 17, 15, "tr", 5);
12292
12297
  } if (rf & 2) {
12293
12298
  const v_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
12294
12299
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", v_r1 == null ? null : v_r1.Channel);
12295
12300
  } }
12296
12301
  function ModalVariantComponent_ng_container_20_Template(rf, ctx) { if (rf & 1) {
12297
12302
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
12298
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ModalVariantComponent_ng_container_20_ng_container_1_Template, 9, 2, "ng-container", 7);
12299
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ModalVariantComponent_ng_container_20_ng_template_2_Template, 1, 1, "ng-template", null, 8, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
12303
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ModalVariantComponent_ng_container_20_ng_container_1_Template, 9, 2, "ng-container", 6);
12304
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ModalVariantComponent_ng_container_20_ng_template_2_Template, 1, 1, "ng-template", null, 7, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
12300
12305
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
12301
12306
  } if (rf & 2) {
12302
12307
  const v_r1 = ctx.$implicit;
@@ -12314,7 +12319,7 @@ class ModalVariantComponent {
12314
12319
  }
12315
12320
  }
12316
12321
  ModalVariantComponent.ɵfac = function ModalVariantComponent_Factory(t) { return new (t || ModalVariantComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__.MAT_DIALOG_DATA)); };
12317
- ModalVariantComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ModalVariantComponent, selectors: [["app-modal-variant"]], decls: 21, vars: 2, consts: [["mat-dialog-title", "", 1, "pt-2", "pb-3", "text-center"], [1, "py-5", "mt-4", "mx-0"], [1, "table"], [1, "thead-light"], [1, "text-center"], [1, "text-start"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["printChannelModal", ""], ["colspan", "3", 1, "text-center"], [1, "my-auto"], ["class", "text-center", 4, "ngIf"], ["target", "_blank", 3, "href", "title"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png", 4, "ngIf"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png", 4, "ngIf"], ["src", "https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp", 4, "ngIf"], ["src", "https://res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png", 4, "ngIf"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png"], ["src", "https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp"], ["src", "https://res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png"]], template: function ModalVariantComponent_Template(rf, ctx) { if (rf & 1) {
12322
+ ModalVariantComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ModalVariantComponent, selectors: [["app-modal-variant"]], decls: 21, vars: 2, consts: [["mat-dialog-title", "", 1, "pt-2", "pb-3", "text-center"], [1, "py-5", "mt-4", "mx-0"], [1, "table"], [1, "thead-light"], [1, "text-center"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["printChannelModal", ""], ["colspan", "3", 1, "text-center"], [1, "my-auto"], ["class", "text-center", 4, "ngIf"], ["target", "_blank", 3, "href", "title"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png", 4, "ngIf"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png", 4, "ngIf"], ["src", "https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp", 4, "ngIf"], ["src", "https://res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png", 4, "ngIf"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png"], ["src", "https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp"], ["src", "https://res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png"]], template: function ModalVariantComponent_Template(rf, ctx) { if (rf & 1) {
12318
12323
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h1", 0);
12319
12324
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
12320
12325
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
@@ -12331,14 +12336,14 @@ ModalVariantComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODU
12331
12336
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 4);
12332
12337
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "PRICE");
12333
12338
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
12334
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th", 5);
12339
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th", 4);
12335
12340
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "NAME");
12336
12341
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
12337
12342
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "th", 4);
12338
12343
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "CHANNEL");
12339
12344
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
12340
12345
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "tbody");
12341
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, ModalVariantComponent_ng_container_20_Template, 4, 2, "ng-container", 6);
12346
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, ModalVariantComponent_ng_container_20_Template, 4, 2, "ng-container", 5);
12342
12347
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
12343
12348
  } if (rf & 2) {
12344
12349
  _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);