{"version":3,"sources":["webpack:///./src/components/disconnected-inactivity-alert/index.vue?5a27","webpack:///./src/components/first-access/first-access-informations/index.vue?a1f0","webpack:///./src/components/first-access/first-access-offer/index.vue","webpack:///./src/components/first-access/first-access-offer/scripts.js","webpack:///./src/components/first-access/first-access-offer/scripts.js?1348","webpack:///./src/components/first-access/first-access-offer/index.vue?5ddd","webpack:///./src/components/first-access/first-access-informations/index.vue","webpack:///./src/components/first-access/first-access-informations/scripts.js","webpack:///./src/components/first-access/first-access-informations/scripts.js?d52b","webpack:///./src/components/first-access/first-access-informations/index.vue?7e43","webpack:///./src/components/first-access/first-access-structure/index.vue?b8f1","webpack:///./src/components/disconnected-inactivity-alert/index.vue","webpack:///./src/components/disconnected-inactivity-alert/scripts.js","webpack:///./src/components/disconnected-inactivity-alert/scripts.js?55bf","webpack:///./src/components/disconnected-inactivity-alert/index.vue?2562","webpack:///./src/components/first-access/first-access-structure/index.vue","webpack:///./src/components/first-access/first-access-structure/scripts.js","webpack:///./src/components/first-access/first-access-structure/scripts.js?8446","webpack:///./src/components/first-access/first-access-structure/index.vue?d6d7"],"names":["render","_vm","this","_c","_self","_setupProxy","attrs","value","staticClass","slot","_v","_s","getterAccount","userName","on","$emit","_e","staticRenderFns","props","required","type","Boolean","default","components","FirstAccessStructure","computed","mapGetters","component","split","SvgLoader","isLoading","imgName","title","subtitle","isCountdown","countdown","name","$event","getTokenRecaptcha","String","expiredCountAction","Function","Loading","data","timer","token","requisitionAttempts","mounted","countdownTimer","beforeDestroy","clearInterval","methods","mapActions","mapMutations","reconnect","$recaptcha","then","login","catch","setTypeOfMessageNotification","params","reCaptchaToken","email","getterLoginParams","password","actionSignIn","getUserData","error","parseJwt","base64Url","base64","replace","JSON","parse","window","atob","parsedToken","access_token","Object","prototype","hasOwnProperty","call","actionGetUserData","usi","response","$router","push","query","$route","sendToast","text","defaultMessageError","notificationMessage","description","actionButtons","action","setManagerOperation","updatedResponse","code","setTimeout","managerMessageOperation","CLEAR_ACCOUN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IG,MAAMC,YAAY,OAAOF,EAAG,UAAU,CAACK,YAAY,oCAAoC,CAACL,EAAG,UAAU,CAACK,YAAY,0BAA0B,CAACL,EAAG,UAAU,CAACK,YAAY,wBAAwB,CAACP,EAAIwG,GAAG,YAAY,GAAGxG,EAAIwG,GAAG,YAAY,MAE5SxF,EAAkB,GCFP,GACbmB,KAAM,wBCDwS,I,wBCQ5ST,EAAY,eACd,EACA3B,EACAiB,GACA,EACA,KACA,KACA,MAIa,OAAAU,E","file":"js/app~f598cb42.9b6dd7e9.js","sourcesContent":["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!./index.vue?vue&type=style&index=0&id=7b7a895f&prod&lang=scss\"","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!./index.vue?vue&type=style&index=0&id=513bd7c7&prod&lang=scss\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.value)?_c('first-access-structure',{attrs:{\"id\":\"first-access-offer\"}},[_c('div',{staticClass:\"container-content\",attrs:{\"slot\":\"content\"},slot:\"content\"},[_c('h1',[_c('strong',[_vm._v(\"Olá,\")]),_vm._v(\" \"+_vm._s(_vm.getterAccount.userName)+\".\")]),_c('h4',[_vm._v(\"Conheça o Plano Pós-pago\")]),_c('p',[_vm._v(\"\\n Como forma de agradecer sua preferencia, gostaríamos de te convidar para o nosso plano pós-pago, feito para os clientes que mais confiamos. Nele você não precisa se preocupar com crédito, basta fazer suas consultas durante o mês normalmente, e no final pagar a sua fatura.\\n \")]),_c('h2',[_vm._v(\"+ Comodidade \"),_c('br'),_vm._v(\"e melhores condições\")])]),_c('div',{staticClass:\"action-buttons\",attrs:{\"slot\":\"buttons\"},slot:\"buttons\"},[_c('button',{staticClass:\"generic-button secondary-purple-light active\",on:{\"click\":() => _vm.$emit('input', false)}},[_vm._v(\"\\n Continuar no pré-pago\\n \")]),_c('button',{staticClass:\"generic-button secondary-purple-light\",on:{\"click\":() => _vm.$emit('input', false)}},[_vm._v(\"\\n Trocar para o pós-pago\\n \")])])]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapGetters } from 'vuex'\nimport FirstAccessStructure from '../first-access-structure/index.vue'\n\nexport default {\n props: {\n value: {\n required: true,\n type: Boolean,\n default: false\n }\n },\n components: {\n FirstAccessStructure\n },\n computed: {\n ...mapGetters([\n 'getterAccount'\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/babel-loader/lib/index.js!../../../../node_modules/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"; 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/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=0e276179&lang=html\"\nimport script from \"./scripts.js?vue&type=script&lang=js&external\"\nexport * from \"./scripts.js?vue&type=script&lang=js&external\"\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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.value)?_c('first-access-structure',{attrs:{\"id\":\"first-access-informations\"}},[_c('div',{staticClass:\"container-content\",attrs:{\"slot\":\"content\"},slot:\"content\"},[_c('h1',[_c('strong',[_vm._v(\"Olá,\")]),_vm._v(\" \"+_vm._s(_vm.getterAccount.userName.split(' ')[0])+\".\")]),_c('h4',[_vm._v(\"Seja bem vindo(a) ao Data Engine.\")]),_c('p',[_vm._v(\"\\n Uma plataforma completa e segura para que você possa, consultar e validar dados cadastrais!\\n \")]),_c('h3',[_vm._v(\"Aqui você poderá:\")]),_c('ul',{staticClass:\"list-possible-actions\"},[_c('li',[_c('svg-loader',{attrs:{\"src\":\"img/icon-internal-choose-package.svg\",\"color\":\"#fff\"}}),_vm._v(\"\\n\\n Consultar CPF/CNPJ\\n \")],1),_c('li',[_c('svg-loader',{attrs:{\"src\":\"img/icon-list-queries.svg\",\"color\":\"#fff\"}}),_vm._v(\"\\n\\n Ver suas consultas antigas\\n \")],1),_c('li',[_c('svg-loader',{attrs:{\"src\":\"img/icon-extract-and-notes.svg\",\"color\":\"#fff\"}}),_vm._v(\"\\n\\n Acompanhar seu extrato\\n \")],1)])]),_c('div',{staticClass:\"action-buttons\",attrs:{\"slot\":\"buttons\"},slot:\"buttons\"},[_c('button',{staticClass:\"generic-button secondary-purple-light\",on:{\"click\":() => _vm.$emit('input', false)}},[_vm._v(\"\\n Vamos começar!\\n \")])])]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapGetters } from 'vuex'\nimport SvgLoader from '../../svg-loader/index.vue'\nimport FirstAccessStructure from '../first-access-structure/index.vue'\n\nexport default {\n props: {\n value: {\n required: true,\n type: Boolean,\n default: false\n }\n },\n components: {\n SvgLoader,\n FirstAccessStructure\n },\n computed: {\n ...mapGetters([\n 'getterAccount'\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/babel-loader/lib/index.js!../../../../node_modules/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"; 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/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=513bd7c7&lang=html\"\nimport script from \"./scripts.js?vue&type=script&lang=js&external\"\nexport * from \"./scripts.js?vue&type=script&lang=js&external\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=513bd7c7&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!./index.vue?vue&type=style&index=0&id=3d052d68&prod&lang=scss\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"container-disconnected-inactivity-alert\"},[(!_vm.isLoading)?_c('section',{staticClass:\"disconnected-inactivity-alert\"},[_c('img',{attrs:{\"src\":`img/${_vm.imgName}.svg`,\"alt\":_vm.imgName}}),_c('h2',[_vm._v(_vm._s(_vm.title))]),_c('h3',[_vm._v(_vm._s(_vm.subtitle))]),(_vm.isCountdown)?_c('p',[_vm._v(\"\\n Você será desconectado em: \"+_vm._s(_vm.countdown)+\" segundos\\n \")]):_c('div',{staticClass:\"action-buttons\"},[_c('div',{on:{\"click\":() => _vm.$emit('input', false)}},[_c('router-link',{staticClass:\"generic-button secondary-purple-light active\",attrs:{\"to\":{ name: 'SignIn' }}},[_vm._v(\"\\n Continuar desconectado\\n \")])],1),_c('div',[_c('button',{staticClass:\"generic-button primary-green\",on:{\"click\":function($event){return _vm.getTokenRecaptcha()}}},[_vm._v(\"\\n Quero me reconectar\\n \")])])])]):_c('loading',{attrs:{\"light\":\"\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapActions, mapGetters, mapMutations } from 'vuex'\nimport Loading from '../loading/index.vue'\n\n\nexport default {\n props: {\n imgName: {\n required: true,\n type: String\n },\n title: {\n required: true,\n type: String\n },\n subtitle: {\n required: true,\n type: String\n },\n isCountdown: {\n required: false,\n type: Boolean,\n default: false\n },\n expiredCountAction: {\n required: false,\n type: Function\n }\n },\n components: {\n Loading\n },\n data () {\n return {\n countdown: 10,\n timer: 0,\n token: '',\n requisitionAttempts: 0,\n isLoading: false\n }\n },\n mounted () {\n this.countdownTimer()\n },\n beforeDestroy () {\n clearInterval(this.timer)\n },\n computed: {\n ...mapGetters([\n 'getterAccount',\n 'getterLoginParams'\n ])\n },\n methods: {\n ...mapActions([\n 'actionSignIn',\n 'actionGetUserData'\n ]),\n ...mapMutations([\n 'CLEAR_ACCOUNT_STORE'\n ]),\n reconnect () {\n this.getTokenRecaptcha()\n },\n getTokenRecaptcha () {\n this.isLoading = true\n\n this.$recaptcha('payment')\n .then((token) => {\n this.login(token)\n })\n .catch(() => {\n this.setTypeOfMessageNotification('error')\n })\n },\n login (token) {\n if (this.requisitionAttempts === 0) {\n this.requisitionAttempts += 1\n\n const params = {\n reCaptchaToken: token,\n email: this.getterLoginParams.email,\n password: this.getterLoginParams.password\n }\n\n this.actionSignIn(params)\n .then(() => {\n this.getUserData()\n })\n .catch((error) => {\n this.setTypeOfMessageNotification('error', error)\n })\n }\n },\n parseJwt (token) {\n const base64Url = token.split('.')[1]\n const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/')\n\n return JSON.parse(window.atob(base64))\n },\n getUserData () {\n const parsedToken = this.parseJwt(this.getterAccount.access_token)\n\n if (Object.prototype.hasOwnProperty.call(parsedToken, 'usi')) {\n this.actionGetUserData(parsedToken.usi)\n .then(() => {\n this.setTypeOfMessageNotification('success')\n })\n .catch(() => {\n this.setTypeOfMessageNotification('error')\n })\n } else {\n this.setTypeOfMessageNotification('error', 'O identificador do usuário não foi encontrado!')\n }\n },\n setTypeOfMessageNotification (type, response) {\n if (type === 'success') {\n this.$router.push({ name: 'ListQueries', query: this.$route.query })\n\n this.sendToast({\n text: 'Login efetuado com sucesso, seja bem-vindo!',\n type: 'success'\n })\n }\n\n if (type === 'error') {\n const defaultMessageError = 'Ocorreu um erro inesperado ao efetuar o login, tente novamente mais tarde!'\n\n this.notificationMessage.type = 'error'\n this.notificationMessage.title = 'Ops, ocorreu um erro ao efetuar o login'\n this.notificationMessage.description = typeof response === 'string' ? response : defaultMessageError\n this.notificationMessage.actionButtons = [\n { name: 'Fechar', type: 'primary-green', action: () => this.setManagerOperation() }\n ]\n\n if (response) {\n const updatedResponse = Object.prototype.hasOwnProperty.call(response, 'response') ? response.response : response\n\n if (updatedResponse.data && updatedResponse.data.code) {\n switch (updatedResponse.data.code) {\n case 'invalid_credentials':\n this.notificationMessage.type = 'info'\n this.notificationMessage.title = 'E-mail e/ou senha incorretos'\n this.notificationMessage.description = 'O endereço de email e/ou a senha estão incorretos'\n break\n default:\n this.notificationMessage.description = defaultMessageError\n }\n }\n }\n\n setTimeout(() => {\n this.requisitionAttempts = 0\n this.managerMessageOperation = true\n this.isLoading = !this.managerMessageOperation\n })\n\n this.CLEAR_ACCOUNT_STORE()\n }\n },\n setToDefault () {\n this.email = this.password = ''\n this.isValidEmail = false\n },\n setManagerOperation () {\n this.managerMessageOperation = false\n },\n countdownTimer () {\n if (this.isCountdown) {\n this.timer = setInterval(() => {\n this.countdown -= 1\n\n if (this.countdown <= 0) {\n clearInterval(this.timer)\n\n this.expiredCountAction(true)\n }\n }, 1000)\n }\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/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"; 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/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=7b7a895f\"\nimport script from \"./scripts.js?vue&type=script&lang=js&external\"\nexport * from \"./scripts.js?vue&type=script&lang=js&external\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=7b7a895f&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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"container-first-access-structure\"},[_c('section',{staticClass:\"first-access-structure\"},[_c('section',{staticClass:\"first-access-content\"},[_vm._t(\"content\")],2),_vm._t(\"buttons\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n name: 'FirstAccessStructure'\n}\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/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"; 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/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3d052d68&lang=html\"\nimport script from \"./scripts.js?vue&type=script&lang=js&external\"\nexport * from \"./scripts.js?vue&type=script&lang=js&external\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=3d052d68&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"],"sourceRoot":""}