{"version":3,"sources":["webpack:///./src/views/pages/AppRedirectOtherPlatform.vue?f92e","webpack:///../../../src/components/VContent/VContent.ts","webpack:///./src/shared/helpers/redirectToReactApp.js","webpack:///./src/views/pages/AppRedirectOtherPlatform.vue?1370","webpack:///src/views/pages/AppRedirectOtherPlatform.vue","webpack:///./src/views/pages/AppRedirectOtherPlatform.vue?b3d8","webpack:///./src/views/pages/AppRedirectOtherPlatform.vue"],"names":["VMain","extend","name","created","deprecate","this","render","h","node","options","call","data","staticClass","children","tag","redirectToMainPlatform","routerToPath","appProps","appUrl","openSameWindow","token","localStorage","getItem","user","lang","signedNda","expires","vueApp","parsedUser","JSON","parse","localData","mustRenewPassword","objectJson","stringify","objectJsonToBase64","Buffer","from","toString","clear","window","location","href","process","open","redirectVuePlatform","appBankerProps","bankerAppUrl","redirectManagerPlatform","appManagerProps","managerAppUrl","redirectPartnerPlatform","appPartnerProps","partnerAppUrl","redirectInvestorPlatform","appInvestorProps","investorAppUrl","_vm","_h","$createElement","_c","_self","VApp","VContent","VProgressCircular","attrs","_v","_s","$t","staticRenderFns","userType","UserTypeEnum","methods","handleRedirectToReact","setTimeout","component"],"mappings":"kHAAA,W,kCCGA,4BAKeA,cAAMC,OAAO,CAC1BC,KAAM,SAENC,QAH0B,WAIxBC,eAAU,YAAa,SAAUC,OAGnCC,OAP0B,SAOlBC,GAEN,IAAMC,EAAOR,OAAMS,QAAQH,OAAOI,KAAKL,KAAME,GAK7C,OAHAC,EAAKG,KAAMC,aAAe,aAC1BJ,EAAKK,SAAU,GAAIF,KAAMC,aAAe,mBAEjCL,EAAEC,EAAKM,IAAKN,EAAKG,KAAMH,EAAKK,c,gRCnBvC,SAASE,EACPC,EACAC,EACAC,GAEA,IADAC,IACA,yDACMC,EAAQC,aAAaC,QAAQ,SAC7BC,EAAOF,aAAaC,QAAQ,QAC5BE,EAAOH,aAAaC,QAAQ,QAC5BG,EAAYJ,aAAaC,QAAQ,cACjCI,EAAUL,aAAaC,QAAQ,WAC/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sB,CAAC6C,EAAIS,GAAGT,EAAIU,GAAGV,EAAIW,GAAG,mBAAmBR,EAAG,IAAI,CAAChD,YAAY,yBAAyB,CAAC6C,EAAIS,GAAG,IAAIT,EAAIU,GAAGV,EAAIW,GAAG,4BAA4B,UAAU,QAAQ,IAC3gBC,EAAkB,G,gDCyBP,GACfnE,gCACAS,KAFA,WAGA,OACA2D,cACAC,sBAGApE,QARA,WAQA,oKACA0B,8CADA,OACA,WADA,OAEA,0BAFA,8CAIA2C,SACAC,sBADA,WACA,WAEAC,uBAEA,wCAMA,qCAMA7B,kCACAxB,sBANA8B,kCANAH,oCAaA,QC7DiX,I,wBCQ7W2B,EAAY,eACd,EACArE,EACA+D,GACA,EACA,KACA,WACA,MAIa,aAAAM,E","file":"js/chunk-3e448d55.84d9594b.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppRedirectOtherPlatform.vue?vue&type=style&index=0&id=76174932&prod&scoped=true&lang=css&\"","// Types\nimport { VNode } from 'vue'\n\n// Extensions\nimport VMain from '../VMain/VMain'\nimport { deprecate } from '../../util/console'\n\n/* @vue/component */\nexport default VMain.extend({\n name: 'v-main',\n\n created () {\n deprecate('v-content', 'v-main', this)\n },\n\n render (h): VNode {\n // Add the legacy class names\n const node = VMain.options.render.call(this, h)\n\n node.data!.staticClass += ' v-content'\n node.children![0]!.data!.staticClass += ' v-content__wrap'\n\n return h(node.tag, node.data, node.children)\n },\n})\n","import { UserTypeEnum } from \"../enums/UserType\";\n\n// get localStorage items + send to main platform\nfunction redirectToMainPlatform(\n routerToPath,\n appProps,\n appUrl,\n openSameWindow = true\n) {\n const token = localStorage.getItem(\"token\");\n const user = localStorage.getItem(\"user\");\n const lang = localStorage.getItem(\"lang\");\n const signedNda = localStorage.getItem(\"signed_nda\");\n const expires = localStorage.getItem(\"expires\");\n const vueApp = true;\n\n // parsed\n let parsedUser = JSON.parse(user);\n\n let localData = {\n token,\n lang,\n signedNda,\n expires,\n vueApp,\n routerToPath,\n appProps: {},\n };\n\n // CASO PRECISE PASSAR ALGUMA PROP PARA APLICAÇÃO REACT, SÓ PREENCHER ESSE OBJETO\n if (appProps) {\n localData.appProps = { ...appProps };\n }\n\n if (parsedUser.mustRenewPassword) {\n localData.routerToPath = \"/auth/changePassword\";\n }\n\n const objectJson = JSON.stringify(localData);\n const objectJsonToBase64 = Buffer.from(objectJson).toString(\"base64\");\n\n if (parsedUser.mustRenewPassword) {\n localStorage.clear();\n window.location.href = `${process.env.VUE_APP_REACT_AUTH_PLATFORM_BASE_URL}appHandler?form_data=${objectJsonToBase64}`;\n return;\n }\n\n if (openSameWindow) {\n localStorage.clear();\n window.location.href = `${appUrl}appHandler?form_data=${objectJsonToBase64}`;\n } else {\n window.open(\n `${appUrl}appHandler?form_data=${objectJsonToBase64}`,\n \"_blank\"\n );\n }\n}\n\n// banker - react\nexport function redirectVuePlatform(routerToPath, appBankerProps) {\n const bankerAppUrl = process.env.VUE_APP_REACT_PLATFORM_BASE_URL;\n\n redirectToMainPlatform(routerToPath, appBankerProps, bankerAppUrl);\n}\n\n// manager - react\nexport function redirectManagerPlatform(routerToPath, appManagerProps) {\n const managerAppUrl = process.env.VUE_APP_REACT_MANAGER_PLATFORM_BASE_URL;\n\n redirectToMainPlatform(routerToPath, appManagerProps, managerAppUrl);\n}\n\n// partner - react\nexport function redirectPartnerPlatform(routerToPath, appPartnerProps) {\n const partnerAppUrl = process.env.VUE_APP_REACT_PARTNER_PLATFORM_BASE_URL;\n\n redirectToMainPlatform(routerToPath, appPartnerProps, partnerAppUrl);\n}\n\n// investor - react\nexport function redirectInvestorPlatform(routerToPath, appInvestorProps) {\n const investorAppUrl = process.env.VUE_APP_REACT_INVESTOR_PLATFORM_BASE_URL;\n\n redirectToMainPlatform(routerToPath, appInvestorProps, investorAppUrl, false);\n}\n","import { VApp } from 'vuetify/lib/components/VApp';\nimport { VContent } from 'vuetify/lib/components/VContent';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(VApp,[_c(VContent,[_c('div',{staticClass:\"page-container\"},[_c('div',{staticClass:\"page-content\"},[_c(VProgressCircular,{attrs:{\"indeterminate\":\"\",\"size\":\"100\",\"color\":\"#fff\"}}),_c('div',{staticClass:\"page-content-container\"},[_c('h2',{staticClass:\"page-content-title\"},[_vm._v(_vm._s(_vm.$t(\"please_wait\")))]),_c('p',{staticClass:\"page-content-subtitle\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"redirect_other_platform\"))+\" \")])])],1)])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n \n {{ $t(\"please_wait\") }}\n \n {{ $t(\"redirect_other_platform\") }}\n \n \n \n \n \n \n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppRedirectOtherPlatform.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppRedirectOtherPlatform.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AppRedirectOtherPlatform.vue?vue&type=template&id=76174932&scoped=true&\"\nimport script from \"./AppRedirectOtherPlatform.vue?vue&type=script&lang=js&\"\nexport * from \"./AppRedirectOtherPlatform.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AppRedirectOtherPlatform.vue?vue&type=style&index=0&id=76174932&prod&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 \"76174932\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
\n {{ $t(\"redirect_other_platform\") }}\n