{"version":3,"sources":["webpack:///./src/pages/login/Login.vue?aaeb","webpack:///./src/pages/login/Login.vue","webpack:///./src/pages/login/Login.vue?e936","webpack:///./src/pages/login/Login.vue?52af","webpack:///./src/pages/login/Login.vue?d478","webpack:///./src/pages/login/Login.vue?d9ab","webpack:///./src/pages/login/Login.vue?2186"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_e","_v","staticRenderFns","authModule","namespace","Login","Vue","constructor","redirectUrl","showErrorMessage","watchRoute","route","query","has","watchUser","user","email","$router","push","__decorate","Action","State","Watch","immediate","deep","Component","components","GoogleLogin","SvgIcon","Message","component","___CSS_LOADER_API_IMPORT___","exports","module","i","content","__esModule","default","locals","add"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,uEAAuE,CAAEN,EAAoB,iBAAEI,EAAG,UAAU,CAACE,YAAY,6BAA6BC,MAAM,CAAC,KAAO,QAAQ,cAAa,EAAM,MAAQ,yCAAyCP,EAAIQ,KAAKJ,EAAG,MAAM,CAACE,YAAY,+MAA+M,CAACF,EAAG,MAAM,CAACE,YAAY,uDAAuD,CAACF,EAAG,WAAW,CAACE,YAAY,OAAOC,MAAM,CAAC,KAAO,uBAAuB,KAAO,aAAaH,EAAG,OAAO,CAACE,YAAY,wBAAwB,CAACN,EAAIS,GAAG,gBAAgB,GAAGL,EAAG,KAAK,CAACE,YAAY,+IAA+I,CAACN,EAAIS,GAAG,sCAAsCL,EAAG,IAAI,CAACE,YAAY,qDAAqD,CAACN,EAAIS,GAAG,6DAA6DL,EAAG,iBAAiB,IAAI,IAC5rCM,EAAkB,G,oFCgEtB,MAAMC,EAAaC,eAAU,QAS7B,IAAqBC,EAArB,cAAmCC,OAAnCC,c,oBAOE,KAAAC,YAA6B,KAC7B,KAAAC,kBAAmB,EAGnBC,WAAWC,GACT,MAAM,MAAEC,GAAUD,EACdE,iBAAID,EAAO,cACbnB,KAAKgB,kBAAmB,EACxBhB,KAAKe,YAAcI,EAAM,aAM7BE,UAAUC,IACC,OAAJA,QAAI,IAAJA,OAAI,EAAJA,EAAMC,QACXvB,KAAKwB,QAAQC,KAAKzB,KAAKe,aAAe,OAtBHW,gBAApChB,EAAWiB,OAAO,mBAAiB,qCAIVD,gBAAzBhB,EAAWkB,MAAM,SAAO,2BAMzBF,gBADCG,eAAM,SAAU,CAAEC,WAAW,KAAO,+BAWrCJ,gBADCG,eAAM,OAAQ,CAAEC,WAAW,EAAMC,MAAM,KAAO,8BApB5BnB,EAAK,gBAPzBoB,eAAU,CACTC,WAAY,CACVC,mBACAC,qBACAC,yBAGiBxB,WC1EsyB,I,wBCQvzByB,EAAY,eACd,EACAvC,EACAW,GACA,EACA,KACA,WACA,MAIa,aAAA4B,E,8BClBf,IAAIC,EAA8B,EAAQ,QAC1CC,EAAUD,GAA4B,GAEtCC,EAAQd,KAAK,CAACe,EAAOC,EAAI,gMAAiM,KAE1ND,EAAOD,QAAUA,G,kCCNjB,W,qBCGA,IAAIG,EAAU,EAAQ,QACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOC,EAAIC,EAAS,MAC7DA,EAAQG,SAAQL,EAAOD,QAAUG,EAAQG,QAE5C,IAAIC,EAAM,EAAQ,QAAwHF,QAC7HE,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa","file":"js/chunk-4fddc32a.fecbddb2.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"flex flex-col justify-center items-center h-screen bg-grey-light-30\"},[(_vm.showErrorMessage)?_c('message',{staticClass:\"w-116 max-w-screen-md mb-8\",attrs:{\"type\":\"error\",\"show-close\":false,\"title\":\"Session expired. Please login again\"}}):_vm._e(),_c('div',{staticClass:\"\\n max-w-3xl\\n font-sans\\n rounded\\n shadow-lg\\n pt-10\\n pb-12\\n px-12\\n flex flex-col\\n justify-center\\n items-center\\n text-center\\n sh\\n \"},[_c('div',{staticClass:\"w-full text-center flex justify-center items-center\"},[_c('svg-icon',{staticClass:\"mr-3\",attrs:{\"name\":\"IconBrankasLogoBlack\",\"size\":\"h-6 w-6\"}}),_c('span',{staticClass:\"inline-flex text-2xl\"},[_vm._v(\" Brankas \")])],1),_c('h2',{staticClass:\"\\n font-bold\\n text-2xl\\n w-full\\n text-mono-black\\n max-w-xs\\n text-center\\n mt-6\\n \"},[_vm._v(\" Sign in to the Admin Dashboard \")]),_c('p',{staticClass:\"mb-10 mt-4 text-base max-w-md text-mono-grey-dark\"},[_vm._v(\" Sign in with your Brankas Google account to continue. \")]),_c('google-login')],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { has } from \"lodash\";\nimport { Vue, Watch } from \"vue-property-decorator\";\nimport Component from \"vue-class-component\";\nimport { namespace } from \"vuex-class\";\nimport { SvgIcon, Message } from \"@brankas/web-ui\";\nimport { Route } from \"vue-router\";\nimport { GoogleLogin } from \"@/components\";\nimport { GoogleUser, UserProfile } from \"@/types\";\n\nconst authModule = namespace(\"auth\");\n\n@Component({\n components: {\n GoogleLogin,\n SvgIcon,\n Message,\n },\n})\nexport default class Login extends Vue {\n @authModule.Action(\"updateAuthInfo\") updateAuthInfo!: (\n googleUser: GoogleUser\n ) => void;\n\n @authModule.State(\"user\") user!: UserProfile;\n\n redirectUrl: string | null = null;\n showErrorMessage = false;\n\n @Watch(\"$route\", { immediate: true })\n watchRoute(route: Route) {\n const { query } = route;\n if (has(query, \"redirect\")) {\n this.showErrorMessage = true;\n this.redirectUrl = query[\"redirect\"] as string;\n }\n }\n\n // to detect if login success\n @Watch(\"user\", { immediate: true, deep: true })\n watchUser(user: UserProfile) {\n if (!user?.email) return;\n this.$router.push(this.redirectUrl || \"/\");\n }\n}\n","import mod from \"-!../../../../../cache-deps/virtual-store/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../cache-deps/virtual-store/thread-loader@2.1.3_webpack@4.46.0/node_modules/thread-loader/dist/cjs.js!../../../../../cache-deps/virtual-store/babel-loader@8.3.0_233723f55376fb7a01a2470553e60506/node_modules/babel-loader/lib/index.js!../../../../../cache-deps/virtual-store/ts-loader@6.2.2_typescript@4.4.4/node_modules/ts-loader/index.js??ref--14-3!../../../../../cache-deps/virtual-store/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../cache-deps/virtual-store/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../cache-deps/virtual-store/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../cache-deps/virtual-store/thread-loader@2.1.3_webpack@4.46.0/node_modules/thread-loader/dist/cjs.js!../../../../../cache-deps/virtual-store/babel-loader@8.3.0_233723f55376fb7a01a2470553e60506/node_modules/babel-loader/lib/index.js!../../../../../cache-deps/virtual-store/ts-loader@6.2.2_typescript@4.4.4/node_modules/ts-loader/index.js??ref--14-3!../../../../../cache-deps/virtual-store/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../cache-deps/virtual-store/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Login.vue?vue&type=template&id=3920fcf6&scoped=true&\"\nimport script from \"./Login.vue?vue&type=script&lang=ts&\"\nexport * from \"./Login.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Login.vue?vue&type=style&index=0&id=3920fcf6&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../cache-deps/virtual-store/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3920fcf6\",\n null\n \n)\n\nexport default component.exports","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../cache-deps/virtual-store/css-loader@3.6.0_webpack@4.46.0/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"a[data-v-3920fcf6]{margin-right:.75rem;margin-left:1.25rem;display:inline-flex;width:auto;align-items:center;padding-left:.75rem;padding-right:.75rem;padding-top:.5rem;padding-bottom:.5rem}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","export * from \"-!../../../../../cache-deps/virtual-store/vue-style-loader@4.1.3/node_modules/vue-style-loader/index.js??ref--6-oneOf-1-0!../../../../../cache-deps/virtual-store/css-loader@3.6.0_webpack@4.46.0/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../cache-deps/virtual-store/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../cache-deps/virtual-store/postcss-loader@3.0.0/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../../cache-deps/virtual-store/postcss-loader@3.0.0/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../cache-deps/virtual-store/cache-loader@4.1.0_webpack@4.46.0/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../cache-deps/virtual-store/vue-loader@15.9.8_679359cdb69c218f2f8f476b2ba08796/node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=style&index=0&id=3920fcf6&scoped=true&lang=css&\"","// style-loader: Adds some css to the DOM by adding a