{"version":3,"sources":["webpack:///./src/screens/private-template-content/detailed-relationship-tree/index.vue","webpack:///./src/screens/private-template-content/detailed-relationship-tree/scripts.js","webpack:///./src/screens/private-template-content/detailed-relationship-tree/scripts.js?446e","webpack:///./src/screens/private-template-content/detailed-relationship-tree/index.vue?ad25","webpack:///./src/screens/private-template-content/detailed-relationship-tree/index.vue?31d3"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","class","showMoreInfo","isMobile","attrs","_t","managerDetailedRelationshipTreeNode","model","value","callback","$$v","expression","_e","managerNewIndividualConsultation","managerConfirmCreateNewTree","clearSelectedTree","staticStyle","on","$event","redirectToRelationshipTree","slot","_v","_s","isNewRelationshipTree","preventDefault","isLoading","getterSelectedRelationshipTree","Object","keys","length","name","isValidCpfOrCnpj","type","identifierCpfOrCnpj","cpfOrCnpj","explosions","toString","createdAt","returnDate","updatedAt","createdBy","updatedBy","initializeRelationshipTree","isDesktop","managerMessageOperation","notificationMessage","actionButtons","title","description","isLoadingExplosion","isLoadingDownload","setTypeOfMessageNotification","newIndividualConsultation","staticRenderFns","components","AvatarInformationsDrawer","InputField","DetailedRelationshipTreeNode","NewIndividualConsultation","ConfirmCreateNewTree","RelationshipTreeStructure","MessageNotification","data","clientType","ClientType","action","setToDefault","computed","mapGetters","$route","params","id","created","$eventBus","$on","mounted","setInfoSelectedTree","beforeDestroy","SET_SELECTED_RELATIONSHIP_TREE","$off","methods","mapActions","mapMutations","$router","push","getRelationshipTreeById","idTree","idClient","getterAccount","client","actionGetRelationshipTreeById","then","DocumentType","rootDocumentType","cnpj","rootDocument","catch","sendToast","text","date","finallyDate","moment","Date","format","finallyHour","node","SET_SELECTED_RELATIONSHIP_TREE_NODE","treeName","document","userName","actionAddRelationshipTree","error","response","updatedResponse","prototype","hasOwnProperty","call","loading","code","status","setTimeout","component"],"mappings":"mKAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAA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b,KAAO,OAChCpC,KAAKiD,oBAAoBE,MAAQ,sBACjCnD,KAAKiD,oBAAoBG,YAAc,wHAEvC,MACF,IAAK,mBACHpD,KAAKiD,oBAAoBb,KAAO,QAChCpC,KAAKiD,oBAAoBE,MAAQ,0BACjCnD,KAAKiD,oBAAoBG,YAAc,+DAEvC,MACF,IAAK,qBACHpD,KAAKiD,oBAAoBb,KAAO,QAChCpC,KAAKiD,oBAAoBE,MAAQ,uBACjCnD,KAAKiD,oBAAoBG,YAAc,gDACvCpD,KAAKiD,oBAAoBC,cAAgB,CACvC,CAAEhB,KAAM,SAAUE,KAAM,iBAAkBiC,OAAQ,IAAMrE,KAAKsE,iBAG/D,MACF,IAAK,iBACHtE,KAAKiD,oBAAoBb,KAAO,QAChCpC,KAAKiD,oBAAoBE,MAAQ,kCACjCnD,KAAKiD,oBAAoBG,YAAc,6GAEvC,MACF,IAAK,gBACHpD,KAAKiD,oBAAoBb,KAAO,QAChCpC,KAAKiD,oBAAoBE,MAAQ,+CACjCnD,KAAKiD,oBAAoBG,YAAc,+GAEvC,MACF,QACEpD,KAAKiD,oBAAoBb,KAAO,QAChCpC,KAAKiD,oBAAoBE,MAAQ,+CACjCnD,KAAKiD,oBAAoBG,YAAc,mFAI7CwE,WAAW,KACT5H,KAAKgD,yBAA0B,EAC/BhD,KAAKqD,oBAAsBrD,KAAKgD,4BAItC7B,oBACEnB,KAAKsC,UAAYtC,KAAKkC,KAAOlC,KAAKqC,oBAAsB,GACxDrC,KAAKmC,iBAAmBnC,KAAKU,oCAAsCV,KAAK6B,UAAY7B,KAAKM,cAAe,MCpOkM,I,wBCQ5SuH,EAAY,eACd,EACA/H,EACA2D,GACA,EACA,KACA,KACA,MAIa,aAAAoE,E,2CCnBf,W","file":"js/chunk-53d53db4.2951a22f.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"listing-page\",class:{ 'infoIsOpened': _vm.showMoreInfo && _vm.isMobile },attrs:{\"id\":\"container-detailed-relationship-tree\"}},[_vm._t(\"default\"),(_vm.managerDetailedRelationshipTreeNode)?_c('detailed-relationship-tree-node',{model:{value:(_vm.managerDetailedRelationshipTreeNode),callback:function ($$v) {_vm.managerDetailedRelationshipTreeNode=$$v},expression:\"managerDetailedRelationshipTreeNode\"}}):_vm._e(),(_vm.managerNewIndividualConsultation)?_c('new-individual-consultation',{model:{value:(_vm.managerNewIndividualConsultation),callback:function ($$v) {_vm.managerNewIndividualConsultation=$$v},expression:\"managerNewIndividualConsultation\"}}):_vm._e(),(_vm.managerConfirmCreateNewTree)?_c('confirm-create-new-tree',{attrs:{\"clear-selected-tree\":_vm.clearSelectedTree},model:{value:(_vm.managerConfirmCreateNewTree),callback:function ($$v) {_vm.managerConfirmCreateNewTree=$$v},expression:\"managerConfirmCreateNewTree\"}}):_vm._e(),_c('avatar-informations-drawer',{attrs:{\"minimizable\":\"\"}},[_c('button',{staticClass:\"generic-button primary-green\",staticStyle:{\"color\":\"black\"},attrs:{\"slot\":\"action-main-button\"},on:{\"click\":function($event){return _vm.redirectToRelationshipTree()}},slot:\"action-main-button\"},[_vm._v(\"\\n Minhas Árvores\\n \")]),_c('section',{staticClass:\"wrapper-content-avatar-informations-drawer\",attrs:{\"slot\":\"content\"},slot:\"content\"},[(_vm.isMobile)?_c('div',{staticClass:\"container-main-title-drawer\"},[_c('h2',[_vm._v(_vm._s(_vm.isNewRelationshipTree ? 'Adicionar Árvore' : 'Editar Árvore'))]),_c('p',[_vm._v(\"\\n Análise seu histórico, veja o caminho percorrido até o momento na árvore selecionada ou inicie novos caminhos!\\n \")])]):_vm._e(),_c('section',{staticClass:\"main-title-drawer\"},[(_vm.isNewRelationshipTree)?_c('h3',[_vm._v(\"\\n Insira os dados abaixo e clique no botão \\\"Iniciar...\\\" para criar uma nova árvore de relacionamento\\n \")]):_c('h3',[_vm._v(\"\\n Informações da árvore de relacionamento selecionada:\\n \")]),(_vm.isMobile)?_c('button',{staticClass:\"btn-collapse\",on:{\"click\":function($event){_vm.showMoreInfo = !_vm.showMoreInfo}}}):_vm._e()]),_c('section',{staticClass:\"container-drawer-fields\"},[_c('form',{staticClass:\"generic-form\",attrs:{\"novalidate\":\"\"},on:{\"submit\":function($event){$event.preventDefault();}}},[_c('input-field',{attrs:{\"light\":\"\",\"title\":\"Nome da árvore\",\"is-loading\":!_vm.isNewRelationshipTree && _vm.isLoading,\"disable\":!_vm.isNewRelationshipTree || (_vm.isNewRelationshipTree && (_vm.getterSelectedRelationshipTree && Object.keys(_vm.getterSelectedRelationshipTree).length > 0))},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}}),_c('input-field',{attrs:{\"light\":\"\",\"type\":\"cpfOrCnpj\",\"is-loading\":!_vm.isNewRelationshipTree && _vm.isLoading,\"title\":!_vm.isNewRelationshipTree ? 'Iniciado por' : 'CPF/CNPJ',\"disable\":!_vm.isNewRelationshipTree || (_vm.isNewRelationshipTree && (_vm.getterSelectedRelationshipTree && Object.keys(_vm.getterSelectedRelationshipTree).length > 0))},on:{\"valid\":(value) => _vm.isValidCpfOrCnpj = value,\"identifier\":(type) => _vm.identifierCpfOrCnpj = type},model:{value:(_vm.cpfOrCnpj),callback:function ($$v) {_vm.cpfOrCnpj=$$v},expression:\"cpfOrCnpj\"}}),_c('input-field',{attrs:{\"value\":_vm.getterSelectedRelationshipTree.explosions ? _vm.getterSelectedRelationshipTree.explosions.toString() : '0',\"light\":\"\",\"title\":\"Quantidade de explosões\",\"disable\":\"\"}}),(!_vm.isNewRelationshipTree)?_c('input-field',{attrs:{\"value\":_vm.getterSelectedRelationshipTree.createdAt ? _vm.returnDate(_vm.getterSelectedRelationshipTree.createdAt) : '',\"light\":\"\",\"title\":\"Data de criação da árvore\",\"disable\":!_vm.isNewRelationshipTree}}):_vm._e(),(!_vm.isNewRelationshipTree)?_c('input-field',{attrs:{\"value\":_vm.getterSelectedRelationshipTree.updatedAt ? _vm.returnDate(_vm.getterSelectedRelationshipTree.updatedAt) : '',\"light\":\"\",\"title\":\"Data da última atualização\",\"disable\":!_vm.isNewRelationshipTree}}):_vm._e(),(!_vm.isNewRelationshipTree)?_c('input-field',{attrs:{\"value\":_vm.getterSelectedRelationshipTree.createdBy || '',\"light\":\"\",\"title\":\"Criado por\",\"disable\":!_vm.isNewRelationshipTree}}):_vm._e(),(!_vm.isNewRelationshipTree)?_c('input-field',{attrs:{\"value\":_vm.getterSelectedRelationshipTree.updatedBy || '',\"light\":\"\",\"title\":\"Última atualização realizada por\",\"disable\":!_vm.isNewRelationshipTree}}):_vm._e(),_c('button',{staticClass:\"generic-button secondary-purple-light btn-add-tree\",class:{ 'loading': _vm.isLoading },attrs:{\"type\":\"submit\",\"disabled\":(_vm.cpfOrCnpj === '' || !_vm.isValidCpfOrCnpj)},on:{\"click\":function($event){return _vm.initializeRelationshipTree()}}},[_vm._v(\"\\n Adicionar árvore\\n \")])],1)])])]),_c('div',{staticClass:\"container-content-page\"},[(_vm.isDesktop)?_c('header',{staticClass:\"private-main-title\"},[_c('h1',[_vm._v(_vm._s(_vm.isNewRelationshipTree ? 'Adicionar Árvore' : 'Editar Árvore'))])]):_vm._e(),_c('section',{staticClass:\"wrapper-content-listing-page\"},[(_vm.managerMessageOperation)?_c('message-notification',{attrs:{\"hide-back-button\":\"\",\"action-buttons\":_vm.notificationMessage.actionButtons,\"title\":_vm.notificationMessage.title,\"type\":_vm.notificationMessage.type,\"description\":_vm.notificationMessage.description},model:{value:(_vm.managerMessageOperation),callback:function ($$v) {_vm.managerMessageOperation=$$v},expression:\"managerMessageOperation\"}}):_vm._e(),_c('relationship-tree-structure',{class:{ 'disabled': _vm.isLoadingExplosion || _vm.isLoadingDownload },attrs:{\"explosion-response\":_vm.setTypeOfMessageNotification,\"individual-consultation\":_vm.newIndividualConsultation,\"is-loading\":_vm.isLoading},on:{\"download-on-progress\":(value) => _vm.isLoadingDownload = value}}),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.isLoadingExplosion || _vm.isLoadingDownload)?_c('section',{staticClass:\"message-in-operation\"},[_c('span',[_vm._v(_vm._s(_vm.isLoadingDownload ? 'Download em andamento, aguarde...' : 'Explosão em andamento, aguarde...'))])]):_vm._e()])],1)])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapActions, mapGetters, mapMutations } from 'vuex'\nimport * as cnpj from '@fnando/cnpj'\nimport moment from 'moment'\nimport * as DocumentType from '@/helper/DocumentType'\nimport ClientType from '@/helper/ClientType'\n\nimport {\n InputField,\n DetailedRelationshipTreeNode,\n NewIndividualConsultation,\n ConfirmCreateNewTree,\n RelationshipTreeStructure,\n AvatarInformationsDrawer,\n MessageNotification\n} from '@/components'\n\nexport default {\n components: {\n AvatarInformationsDrawer,\n InputField,\n DetailedRelationshipTreeNode,\n NewIndividualConsultation,\n ConfirmCreateNewTree,\n RelationshipTreeStructure,\n MessageNotification\n },\n data () {\n return {\n cpfOrCnpj: '',\n name: '',\n isValidCpfOrCnpj: false,\n identifierCpfOrCnpj: '',\n managerDetailedRelationshipTreeNode: false,\n managerNewIndividualConsultation: false,\n managerConfirmCreateNewTree: false,\n isLoading: false,\n showMoreInfo: false,\n clientType: ClientType,\n managerMessageOperation: false,\n notificationMessage: {\n actionButtons: [\n { name: 'Finalizar', type: 'primary-green', action: () => this.setToDefault() }\n ],\n type: 'info',\n title: 'Fique atento as notificações!',\n description: 'As notificações sobre a operação serão exibidas no canto inferior direito.'\n },\n isLoadingExplosion: false,\n isLoadingDownload: false\n }\n },\n computed: {\n ...mapGetters([\n 'getterAccount',\n 'getterSelectedRelationshipTree'\n ]),\n isNewRelationshipTree () {\n return this.$route.params && (this.$route.params.id && this.$route.params.id === 'new')\n }\n },\n created () {\n this.$eventBus.$on('OpenDetailedRelationshipTreeNode', (value) => {\n this.managerDetailedRelationshipTreeNode = value\n })\n },\n mounted () {\n this.setInfoSelectedTree()\n },\n beforeDestroy () {\n this.SET_SELECTED_RELATIONSHIP_TREE()\n\n this.$eventBus.$off('OpenDetailedRelationshipTreeNode')\n },\n methods: {\n ...mapActions([\n 'actionAddRelationshipTree',\n 'actionGetRelationshipTreeById'\n ]),\n ...mapMutations([\n 'SET_SELECTED_RELATIONSHIP_TREE',\n 'SET_SELECTED_RELATIONSHIP_TREE_NODE'\n ]),\n redirectToRelationshipTree () {\n this.$router.push({ name: 'ListRelationshipTree' })\n },\n setInfoSelectedTree () {\n if (!this.isNewRelationshipTree) {\n this.getRelationshipTreeById()\n } else {\n this.SET_SELECTED_RELATIONSHIP_TREE()\n }\n },\n getRelationshipTreeById () {\n const params = {\n idTree: this.getterSelectedRelationshipTree.id || this.$route.params.id,\n idClient: this.getterAccount.client.idClient\n }\n\n this.isLoading = true\n\n this.actionGetRelationshipTreeById(params)\n .then(() => {\n this.isLoading = false\n\n this.cpfOrCnpj = DocumentType.LEGAL_PERSON === this.getterSelectedRelationshipTree.rootDocumentType ? cnpj.format(this.getterSelectedRelationshipTree.rootDocument) : this.getterSelectedRelationshipTree.rootDocument\n this.name = this.getterSelectedRelationshipTree.name\n })\n .catch(() => {\n this.isLoading = false\n\n this.sendToast({\n text: 'Ocorreu um erro ao buscar os dados da teia, tente novamente mais tarde!',\n type: 'danger'\n })\n })\n },\n returnDate (date) {\n const finallyDate = moment(new Date(date)).format('DD/MM/YYYY')\n const finallyHour = moment(new Date(date)).format('HH:mm:ss')\n\n return `${finallyDate} às ${finallyHour}`\n },\n setToDefault () {\n this.managerMessageOperation = false\n },\n newIndividualConsultation (node) {\n this.managerNewIndividualConsultation = true\n\n this.SET_SELECTED_RELATIONSHIP_TREE_NODE(node)\n },\n initializeRelationshipTree () {\n if (this.getterSelectedRelationshipTree && Object.keys(this.getterSelectedRelationshipTree).length === 0) {\n const params = {\n treeName: this.name,\n document: this.cpfOrCnpj,\n idClient: this.getterAccount.client.idClient,\n userName: this.getterAccount.userName\n }\n\n this.isLoading = true\n\n this.actionAddRelationshipTree(params)\n .then(() => {\n this.isLoading = false\n })\n .catch((error) => {\n this.isLoading = false\n\n this.setTypeOfMessageNotification({ type: 'error', ...error })\n })\n } else {\n this.managerConfirmCreateNewTree = true\n }\n },\n setTypeOfMessageNotification (response) {\n const updatedResponse = Object.prototype.hasOwnProperty.call(response, 'response') ? response.response : response\n\n this.isLoadingExplosion = response.loading\n\n if (updatedResponse && updatedResponse.data && updatedResponse.type) {\n if (updatedResponse.type === 'success') {\n this.notificationMessage.type = 'success'\n this.notificationMessage.title = 'Explosão realizada com sucesso!'\n this.notificationMessage.description = 'Agora você pode verificar quais são os associados deste nó.'\n this.notificationMessage.actionButtons = [\n { name: 'Fechar', type: 'primary-green', action: () => this.setToDefault() }\n ]\n }\n\n if (updatedResponse.type === 'error') {\n this.notificationMessage.type = 'error'\n this.notificationMessage.title = 'Ops, ocorreu um erro ao realizar a operação!'\n this.notificationMessage.description = 'Ocorreu um erro inesperado ao realizar esta operação, tente novamente mais tarde!'\n this.notificationMessage.actionButtons = [\n { name: 'Fechar', type: 'primary-purple', action: () => this.setToDefault() }\n ]\n }\n\n if (updatedResponse.data.code && (updatedResponse.status && (updatedResponse.status > 299))) {\n switch (updatedResponse.data.code) {\n case 'no_plans':\n this.notificationMessage.type = 'info'\n this.notificationMessage.title = 'Plano indisponível!'\n this.notificationMessage.description = 'Você não possui um plano ou todos os planos estão inavitos, entre em contato com o comercial para contratar um plano.'\n\n break\n case 'unknown_document':\n this.notificationMessage.type = 'error'\n this.notificationMessage.title = 'Documento desconhecido!'\n this.notificationMessage.description = 'O documento informado é desconhecido, tente outro documento!'\n\n break\n case 'insufficient_limit':\n this.notificationMessage.type = 'error'\n this.notificationMessage.title = 'Limite insuficiente!'\n this.notificationMessage.description = 'Entre em contato com nossa equipe de suporte.'\n this.notificationMessage.actionButtons = [\n { name: 'Fechar', type: 'primary-purple', action: () => this.setToDefault() }\n ]\n\n break\n case 'body_incorrect':\n this.notificationMessage.type = 'error'\n this.notificationMessage.title = 'Entre em contato com o suporte!'\n this.notificationMessage.description = 'Algumas informações estão faltando para finalizar esta operação, entre em contato com a equipe de suporte.'\n\n break\n case 'tree_disabled':\n this.notificationMessage.type = 'error'\n this.notificationMessage.title = 'Entre em contato com nossa equipe comercial!'\n this.notificationMessage.description = 'Árvore de relacionamentos não habilitada. Entre em contato com nossa equipe para solicitar o uso do produto.'\n\n break\n default:\n this.notificationMessage.type = 'error'\n this.notificationMessage.title = 'Ops, ocorreu um erro ao realizar a operação!'\n this.notificationMessage.description = 'Ocorreu um erro desconhecido ao realizar esta operação, verifique com o suporte!'\n }\n }\n\n setTimeout(() => {\n this.managerMessageOperation = true\n this.isLoadingExplosion = !this.managerMessageOperation\n })\n }\n },\n clearSelectedTree () {\n this.cpfOrCnpj = this.name = this.identifierCpfOrCnpj = ''\n this.isValidCpfOrCnpj = this.managerDetailedRelationshipTreeNode = this.isLoading = this.showMoreInfo = false\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=0cecc29e&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=0cecc29e&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=0cecc29e&prod&lang=scss\""],"sourceRoot":""}