{"version":3,"sources":["webpack:///./src/components/common/loading/loading.vue?91b3","webpack:///./src/components/common/loading/loading.ts","webpack:///./src/components/common/loading/loading.ts?d597","webpack:///./src/components/common/loading/loading.vue","webpack:///./src/components/login/login.vue?1b6b","webpack:///./src/components/login/login.ts","webpack:///./src/components/login/login.ts?e021","webpack:///./src/components/login/login.vue?072b","webpack:///./src/components/login/login.vue?ead6","webpack:///./node_modules/rxjs/_esm5/internal/operators/finalize.js","webpack:///./src/assets/images/ms-symbollockup_signin_light.svg"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","class","color","style","width","size","height","staticRenderFns","default","component","attrs","on","$event","preventDefault","login","loading","$store","dispatch","getUser","getters","$router","push","then","catch","res","pipe","tap","user","roleName","toLowerCase","catchError","of","finalize","subscribe","components","AuthTemplate","Loading","AppLogo","callback","source","lift","FinallyOperator","prototype","call","subscriber","FinallySubscriber","_super","destination","_this","add","module","exports"],"mappings":"kHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,MAAM,CAACE,YAAY,eAAeC,MAAMP,EAAIQ,MAAMC,MAAM,CAAGC,MAAOV,EAAIW,KAAO,KAAMC,OAAQZ,EAAIW,KAAO,WAC/OE,EAAkB,G,wECGD,EAArB,qIAAqC,cAEnC,gBADC,eAAK,CAAEC,QAAS,Y,4BAIjB,gBADC,eAAK,CAAEA,QAAS,M,2BAJE,EAAO,gBAD3B,QACoB,WCJuY,I,YCOxZC,EAAY,eACd,EACAhB,EACAc,GACA,EACA,KACA,KACA,MAIa,OAAAE,E,6EClBf,IAAIhB,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,gBAAgB,CAACA,EAAG,OAAO,CAAC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ACA,MAIa,aAAAE,E,2CCnBf,W,kCCAA,0EAIO,SAASuB,EAASM,GACrB,OAAO,SAAUC,GAAU,OAAOA,EAAOC,KAAK,IAAIC,EAAgBH,KAEtE,IAAIG,EAAiC,WACjC,SAASA,EAAgBH,GACrB3C,KAAK2C,SAAWA,EAKpB,OAHAG,EAAgBC,UAAUC,KAAO,SAAUC,EAAYL,GACnD,OAAOA,EAAON,UAAU,IAAIY,EAAkBD,EAAYjD,KAAK2C,YAE5DG,EAPyB,GAShCI,EAAmC,SAAUC,GAE7C,SAASD,EAAkBE,EAAaT,GACpC,IAAIU,EAAQF,EAAOH,KAAKhD,KAAMoD,IAAgBpD,KAE9C,OADAqD,EAAMC,IAAI,IAAI,OAAaX,IACpBU,EAEX,OANA,OAAkBH,EAAmBC,GAM9BD,EAP2B,CAQpC,S,qBCxBFK,EAAOC,QAAU,IAA0B","file":"js/chunk-24eae070.c6b6c90f.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"loading-wrapper\"},[_c('div',{staticClass:\"loading-item\",class:_vm.color,style:({ width: _vm.size + 'px', height: _vm.size + 'px' })})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from \"vue\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\n@Component\r\nexport default class Loading extends Vue {\r\n @Prop({ default: \"purple\" })\r\n public readonly color!: string;\r\n\r\n @Prop({ default: 20 })\r\n public readonly size!: number;\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/eslint-loader/index.js??ref--13-0!./loading.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/eslint-loader/index.js??ref--13-0!./loading.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./loading.vue?vue&type=template&id=0b0d2312&\"\nimport script from \"./loading.ts?vue&type=script&lang=js&\"\nexport * from \"./loading.ts?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('auth-template',[_c('form',{attrs:{\"id\":\"login\",\"method\":\"post\"}},[_c('div',{staticClass:\"form-group text-center\"},[(_vm.loading)?_c('div',[_c('loading',{attrs:{\"color\":\"purple\"}})],1):_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('button',{attrs:{\"id\":\"login-button\"}},[_c('img',{attrs:{\"src\":require('@/assets/images/ms-symbollockup_signin_light.svg'),\"height\":\"41px\"},on:{\"click\":function($event){$event.preventDefault();return _vm.login($event)}}})])])])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from \"vue\";\r\nimport AuthTemplate from \"@/templates/auth/auth.template.vue\";\r\nimport { Component } from \"vue-property-decorator\";\r\nimport { catchError, finalize, tap } from \"rxjs/operators\";\r\nimport Loading from \"@/components/common/loading/loading.vue\";\r\nimport { of } from \"rxjs\";\r\nimport AppLogo from \"../common/app-logo.vue\";\r\n\r\n@Component({\r\n components: {\r\n AuthTemplate,\r\n Loading,\r\n AppLogo,\r\n },\r\n})\r\nexport default class Login extends Vue {\r\n public loading = false;\r\n public mounted(): void {\r\n this.$store.dispatch(\"AuthStore/handleRedirectCallback\");\r\n this.getUser();\r\n if (this.$store.getters[\"AuthStore/getAccount\"]) {\r\n this.$router.push(\"/\");\r\n }\r\n console.log(process.env.VUE_APP_LOGIN_URL);\r\n }\r\n\r\n public login(): void {\r\n this.loading = true;\r\n this.$store\r\n .dispatch(\"AuthStore/login\")\r\n .then(() => {\r\n this.loading = false;\r\n this.getUser();\r\n })\r\n .catch(() => {\r\n this.loading = false;\r\n });\r\n }\r\n\r\n public getUser(): void {\r\n this.loading = true;\r\n this.$store.dispatch(\"AuthStore/getUser\").then((res) => {\r\n res\r\n .pipe(\r\n tap((user: any) => {\r\n if (user && user.user && user.user.roleName) {\r\n this.$router.push(`/${user.user.roleName.toLowerCase()}`);\r\n }\r\n // this.loading = false;\r\n }),\r\n catchError(() => {\r\n // this.loading = false;\r\n return of(null);\r\n }),\r\n finalize(() => {\r\n this.loading = false;\r\n })\r\n )\r\n .subscribe();\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/eslint-loader/index.js??ref--13-0!./login.ts?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/eslint-loader/index.js??ref--13-0!./login.ts?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./login.vue?vue&type=template&id=96f3fd1c&scoped=true&\"\nimport script from \"./login.ts?vue&type=script&lang=js&\"\nexport * from \"./login.ts?vue&type=script&lang=js&\"\nimport style0 from \"./login.vue?vue&type=style&index=0&id=96f3fd1c&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"96f3fd1c\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=style&index=0&id=96f3fd1c&scoped=true&lang=css&\"","/** PURE_IMPORTS_START tslib,_Subscriber,_Subscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nexport function finalize(callback) {\n return function (source) { return source.lift(new FinallyOperator(callback)); };\n}\nvar FinallyOperator = /*@__PURE__*/ (function () {\n function FinallyOperator(callback) {\n this.callback = callback;\n }\n FinallyOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new FinallySubscriber(subscriber, this.callback));\n };\n return FinallyOperator;\n}());\nvar FinallySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(FinallySubscriber, _super);\n function FinallySubscriber(destination, callback) {\n var _this = _super.call(this, destination) || this;\n _this.add(new Subscription(callback));\n return _this;\n }\n return FinallySubscriber;\n}(Subscriber));\n//# sourceMappingURL=finalize.js.map\n","module.exports = __webpack_public_path__ + \"img/ms-symbollockup_signin_light.ad23a60a.svg\";"],"sourceRoot":""}