{"version":3,"sources":["webpack:///./src/modules/redirect-from-mobile/components/RedirectFromMobile.vue?90ab","webpack:///./src/modules/redirect-from-mobile/components/RedirectFromMobile.vue?0cdc","webpack:///./src/modules/redirect-from-mobile/components/RedirectFromMobile.vue?7789","webpack:///./src/modules/redirect-from-mobile/components/RedirectFromMobile.vue","webpack:///./node_modules/vuex-class/lib/bindings.js","webpack:///./src/modules/redirect-from-mobile/components/RedirectFromMobile.vue?b6f7"],"names":["render","_vm","this","_h","$createElement","_c","_self","_v","staticRenderFns","created","path","$route","query","undefined","$router","push","token","loginBaseOnMobileToken","success","setTimeout","RedirectFromMobile","components","component","State","createBindingHelper","Action","Mutation","bindTo","mapFn","makeDecorator","map","namespace","componentOptions","key","_a","mapObject","helper","a","b","proto","extractNamespace","type","options","n","length"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACJ,EAAIM,GAAG,yBAC7GC,EAAkB,G,oCCetB,cAOI,a,OACI,cAAO,KA6Bf,OArCgD,oBAW/B,YAAAC,QAAb,W,iIAGI,OAFAP,KAAKQ,KAAOR,KAAKS,OAAOC,MAAMF,KAAOR,KAAKS,OAAOC,MAAMF,UAAiBG,EAEvD,MAAbX,KAAKQ,MACLR,KAAKY,QAAQC,KAAK,KAClB,MAGJb,KAAKc,MAAQd,KAAKS,OAAOC,MAAMI,MAAQd,KAAKS,OAAOC,MAAMI,WAAkBH,EAEzD,MAAdX,KAAKc,OACLd,KAAKY,QAAQC,KAAK,KAClB,KAGY,GAAMb,KAAKe,uBAAuB,CAC9CD,MAAOd,KAAKc,U,OAGhB,OAJME,EAAU,SAIZA,GACAC,YAAW,WAAM,SAAKL,QAAQC,KAAK,EAAKL,KAAO,EAAKA,KAAO,OAAM,K,MAEjER,KAAKY,QAAQC,KAAK,KAClB,aA7BR,gBADC,eAAO,gC,6CAJSK,EAAkB,gBAJtC,eAAU,CACTC,WAAY,MAGOD,GAqCrB,EArCA,CAAgD,QAA3B,IChBwW,I,wBCQzXE,EAAY,eACd,EACAtB,EACAQ,GACA,EACA,KACA,KACA,MAIa,aAAAc,E,+KCjBJC,EAAQC,EAAoB,WAAY,QAExCC,GADSD,EAAoB,WAAY,QAChCA,EAAoB,UAAW,SACxCE,EAAWF,EAAoB,UAAW,QA0BrD,SAASA,EAAoBG,EAAQC,GACjC,SAASC,EAAcC,EAAKC,GACxB,OAAO,8BAAgB,SAAUC,EAAkBC,GAC1CD,EAAiBL,KAClBK,EAAiBL,GAAU,IAE/B,IAIIO,EAJAC,GAAaD,EAAK,GAAIA,EAAGD,GAAOH,EAAKI,GACzCF,EAAiBL,GAAQM,QAAqBpB,IAAdkB,EAC1BH,EAAMG,EAAWI,GAAWF,GAC5BL,EAAMO,GAAWF,MAI/B,SAASG,EAAOC,EAAGC,GACf,GAAiB,kBAANA,EAAgB,CACvB,IAAIL,EAAMK,EACNC,EAAQF,EACZ,OAAOR,EAAcI,OAAKpB,EAAnBgB,CAA8BU,EAAON,GAEhD,IAAIF,EAAYS,EAAiBF,GAC7BG,EAAOJ,EACX,OAAOR,EAAcY,EAAMV,GAE/B,OAAOK,EAEX,SAASI,EAAiBE,GACtB,IAAIC,EAAID,GAAWA,EAAQX,UAC3B,GAAiB,kBAANY,EAGX,MAAwB,MAApBA,EAAEA,EAAEC,OAAS,GACND,EAAI,IAERA,I,kCChEX,W","file":"js/chunk-576f9c7a.6d8fbc3f.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(\"\\n loading...\\n\")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\nimport { LoginBaseOnMobileToken } from '@/modules/auth/interfaces/loginBaseOnMobileToken';\nimport { Component, Vue } from 'vue-property-decorator';\nimport { Action } from 'vuex-class';\n\n@Component({\n components: {\n },\n})\nexport default class RedirectFromMobile extends Vue {\n public path?: string;\n public token?: string;\n\n @Action('auth/loginBaseOnMobileToken')\n private loginBaseOnMobileToken!: (request: LoginBaseOnMobileToken) => Promise;\n\n constructor() {\n super();\n }\n\n public async created() {\n this.path = this.$route.query.path ? this.$route.query.path as string : undefined;\n\n if (this.path == null){\n this.$router.push(\"/\");\n return;\n }\n\n this.token = this.$route.query.token ? this.$route.query.token as string : undefined;\n\n if (this.token == null){\n this.$router.push(\"/\");\n return;\n }\n\n const success = await this.loginBaseOnMobileToken({\n token: this.token\n });\n\n if (success) { \n setTimeout(() => this.$router.push(this.path ? this.path : \"/\"), 3000);\n }else {\n this.$router.push(\"/\");\n return;\n }\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RedirectFromMobile.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RedirectFromMobile.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./RedirectFromMobile.vue?vue&type=template&id=3b57542a\"\nimport script from \"./RedirectFromMobile.vue?vue&type=script&lang=ts\"\nexport * from \"./RedirectFromMobile.vue?vue&type=script&lang=ts\"\nimport style0 from \"./RedirectFromMobile.vue?vue&type=style&index=0&id=3b57542a&prod&lang=scss\"\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","import { createDecorator } from 'vue-class-component';\nimport { mapState, mapGetters, mapActions, mapMutations } from 'vuex';\nexport var State = createBindingHelper('computed', mapState);\nexport var Getter = createBindingHelper('computed', mapGetters);\nexport var Action = createBindingHelper('methods', mapActions);\nexport var Mutation = createBindingHelper('methods', mapMutations);\nexport function namespace(namespace, helper) {\n function createNamespacedHelper(helper) {\n function namespacedHelper(a, b) {\n if (typeof b === 'string') {\n var key = b;\n var proto = a;\n return helper(key, { namespace: namespace })(proto, key);\n }\n var type = a;\n var options = merge(b || {}, { namespace: namespace });\n return helper(type, options);\n }\n return namespacedHelper;\n }\n if (helper) {\n console.warn('[vuex-class] passing the 2nd argument to `namespace` function is deprecated. pass only namespace string instead.');\n return createNamespacedHelper(helper);\n }\n return {\n State: createNamespacedHelper(State),\n Getter: createNamespacedHelper(Getter),\n Mutation: createNamespacedHelper(Mutation),\n Action: createNamespacedHelper(Action)\n };\n}\nfunction createBindingHelper(bindTo, mapFn) {\n function makeDecorator(map, namespace) {\n return createDecorator(function (componentOptions, key) {\n if (!componentOptions[bindTo]) {\n componentOptions[bindTo] = {};\n }\n var mapObject = (_a = {}, _a[key] = map, _a);\n componentOptions[bindTo][key] = namespace !== undefined\n ? mapFn(namespace, mapObject)[key]\n : mapFn(mapObject)[key];\n var _a;\n });\n }\n function helper(a, b) {\n if (typeof b === 'string') {\n var key = b;\n var proto = a;\n return makeDecorator(key, undefined)(proto, key);\n }\n var namespace = extractNamespace(b);\n var type = a;\n return makeDecorator(type, namespace);\n }\n return helper;\n}\nfunction extractNamespace(options) {\n var n = options && options.namespace;\n if (typeof n !== 'string') {\n return undefined;\n }\n if (n[n.length - 1] !== '/') {\n return n + '/';\n }\n return n;\n}\nfunction merge(a, b) {\n var res = {};\n [a, b].forEach(function (obj) {\n Object.keys(obj).forEach(function (key) {\n res[key] = obj[key];\n });\n });\n return res;\n}\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RedirectFromMobile.vue?vue&type=style&index=0&id=3b57542a&prod&lang=scss\""],"sourceRoot":""}