{"version":3,"sources":["webpack:///./src/modules/redirect-to-integration/components/RedirectToIntegration.vue?6e18","webpack:///./src/modules/redirect-to-integration/api/redirectToIntegrationApi.ts","webpack:///./src/modules/redirect-to-integration/components/RedirectToIntegration.vue?96a0","webpack:///./src/modules/redirect-to-integration/components/RedirectToIntegration.vue?bfcd","webpack:///./src/modules/redirect-to-integration/components/RedirectToIntegration.vue","webpack:///./src/modules/redirect-to-integration/components/RedirectToIntegration.vue?e8ad"],"names":["render","_vm","this","_h","$createElement","_c","_self","_v","staticRenderFns","getIntegrations","Promise","get","response","appResponse","data","IsSuccess","integrations","Result","Error","ErrorCodes","join","api","created","integration","$route","params","undefined","$router","push","integrationToRedirect","filter","i","id","window","location","href","creatorUrl","RedirectToIntegration","components","component"],"mappings":"gJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACJ,EAAIM,GAAG,yBAC7GC,EAAkB,G,oCCItB,2BAaA,OAZiB,YAAAC,gBAAb,W,kCAAgCC,SAAO,W,yEAE/B,SAAM,OAAoBC,IAAI,yB,OAGlC,GAJMC,EACF,SACEC,EAA0CD,EAASE,KAErDD,EAAYE,UAEd,OADMC,EAA8BH,EAAYI,OACzC,CAAP,EAAOD,GAEP,MAAM,IAAIE,MAAML,EAAYM,WAAWC,KAAK,cAGtD,EAbA,GCYA,cAII,mBACI,cAAO,K,OAEP,EAAKC,IAAM,IAAI,E,EAsBvB,OA7BmD,oBAUlC,YAAAC,QAAb,W,mIAGI,OAFApB,KAAKqB,YAAcrB,KAAKsB,OAAOC,OAAOF,YAAcrB,KAAKsB,OAAOC,OAAOF,iBAAwBG,EAEvE,MAApBxB,KAAKqB,aACLrB,KAAKyB,QAAQC,KAAK,KAClB,KAGiB,GAAM1B,KAAKmB,IAAIZ,mB,OAIpC,OAJMO,EAAe,SAEfa,EAAwBb,EAAac,QAAO,SAAAC,GAAK,OAAAA,EAAEC,IAAM,EAAKT,eAAa,GAEpD,MAAzBM,GACA3B,KAAKyB,QAAQC,KAAK,KAClB,MAGJK,OAAOC,SAASC,KAAON,EAAsBO,W,aA3BhCC,EAAqB,gBALzC,eAAU,CACTC,WAAY,MAIOD,GA6BrB,EA7BA,CAAmD,QAA9B,ICjB2W,I,wBCQ5XE,EAAY,eACd,EACAvC,EACAQ,GACA,EACA,KACA,KACA,MAIa,aAAA+B,E,2CCnBf","file":"js/chunk-f2990cb4.8be94d47.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 }","import { Integration } from \"../classes/integration\";\nimport { AxiosResponse } from 'axios';\nimport AuthorizedApiClient from 'modules/auth/models/authorizedApiClient';\nimport { AppResponse } from 'modules/core/interfaces/appResponse';\n\nexport class RedirectToIntegrationApi {\n public async getIntegrations(): Promise {\n const response: AxiosResponse> =\n await AuthorizedApiClient.get('/Device/integrations');\n const appResponse: AppResponse = response.data;\n \n if (appResponse.IsSuccess) {\n const integrations: Integration[] = appResponse.Result;\n return integrations;\n } else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n } \n}","\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\nimport { RedirectToIntegrationApi } from \"../api/redirectToIntegrationApi\";\n\n@Component({\n components: {\n },\n})\n\nexport default class RedirectToIntegration extends Vue {\n public integration?: string;\n public api: RedirectToIntegrationApi;\n\n constructor() {\n super();\n\n this.api = new RedirectToIntegrationApi();\n }\n\n public async created() {\n this.integration = this.$route.params.integration ? this.$route.params.integration as string : undefined;\n\n if (this.integration == null){\n this.$router.push(\"/\");\n return;\n }\n\n const integrations = await this.api.getIntegrations();\n\n const integrationToRedirect = integrations.filter(i => i.id == this.integration)[0];\n\n if (integrationToRedirect == null) {\n this.$router.push(\"/\");\n return;\n } \n \n window.location.href = integrationToRedirect.creatorUrl;\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!./RedirectToIntegration.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!./RedirectToIntegration.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./RedirectToIntegration.vue?vue&type=template&id=334525b4\"\nimport script from \"./RedirectToIntegration.vue?vue&type=script&lang=ts\"\nexport * from \"./RedirectToIntegration.vue?vue&type=script&lang=ts\"\nimport style0 from \"./RedirectToIntegration.vue?vue&type=style&index=0&id=334525b4&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","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!./RedirectToIntegration.vue?vue&type=style&index=0&id=334525b4&prod&lang=scss\""],"sourceRoot":""}