{"version":3,"sources":["webpack:///./src/models/nfse/Pessoa.js","webpack:///./src/views/DenunciaFiscal.vue?841a","webpack:///./src/views/DenunciaFiscal.vue?001d","webpack:///./src/models/nfse/Denuncia.js","webpack:///./src/services/nfse/denuncia.service.js","webpack:///src/views/DenunciaFiscal.vue","webpack:///./src/views/DenunciaFiscal.vue?ef86","webpack:///./src/views/DenunciaFiscal.vue?1bc8","webpack:///./src/Utils/util.js","webpack:///./src/services/nfse/dns.cliente.service.js"],"names":["Pessoa","this","id","idCliente","idUsuario","tipo","documento","nome","nomeFantasia","tipoLogradouro","logradouro","numero","complemento","bairro","cep","municipioCodigoIbge","municipioNome","estadoCodigoIbge","estadoNome","estadoSigla","paisCodigoIbge","paisNome","inscEstadual","inscMunic","email","site","telefone","celular","rg","dataHora","version","dataVigenciaInicial","dataVigenciaFinal","idFichaRespostaPai","idFluxoInstanciaAtividade","detail","idContribuinte","idContribuintePai","render","_vm","_h","$createElement","_c","_self","staticClass","_v","_s","labelPagina","attrs","on","$event","preventDefault","onSubmit","tiposDenuncia","model","value","callback","$$v","selectedTipoDenuncia","expression","key","labelTomador","tiposPessoa","selectedTipoDenunciante","denuncia","$set","directives","name","rawName","validationErrors","_e","labelPrestador","selectedTipoDenunciado","searchContribuintePorCpfCnpj","pessoaTomador","enderecoDenunciadoFormat","categorias","selectedCategoria","domProps","target","composing","salvo","loading","login","staticRenderFns","Denuncia","API_URL","DenunciaService","LoginService","currentUser","subscribe","data","headers","token","filtro","axios","get","post","JSON","stringify","denunciaId","cpfCnpj","then","response","elements","delete","chave","anoAtual","chaveValidacao","cpfCnpjPrestador","selectedMunicipio","mounted","d","Date","getFullYear","setTimeout","created","limparDados","$route","query","methods","$router","push","validateForm","cpfCnpjDenunciante","nomeDenunciante","cpfCnpjDenunciado","assunto","descricao","numeroNfseRps","Object","keys","length","salvar","idBolCategoria","idBolTipo","idBolSituacao","nomeDenunciado","enderecoDenunciado","isManifestacao","idBolManifestacao","validarDocumento","processando","idContribuinteDenunciado","limparDadosTomador","preencherDadosTomador","preencherContrTomador","contribuinte","idPessoa","nomeGeral","idLocalidadeMunicipio","idBairro","idLogradouro","numeroLogradouro","complementoLogradouro","contatos","validar","console","log","$root","$emit","show","computed","component","Util","re","test","replace","validado","validarCNPJ","validarCPF","cnpj","tamanho","numeros","substring","digitos","soma","pos","i","charAt","resultado","strCPF","Soma","Resto","parseInt","DnsClenteService","dns"],"mappings":"mIAAMA,EACJ,aAAc,uBACZC,KAAKC,GAAK,GACVD,KAAKE,UAAY,GACjBF,KAAKG,UAAY,GACjBH,KAAKI,KAAO,GACZJ,KAAKK,UAAY,GACjBL,KAAKM,KAAO,GACZN,KAAKO,aAAe,GACpBP,KAAKQ,eAAiB,GACtBR,KAAKS,WAAa,GAClBT,KAAKU,OAAS,GACdV,KAAKW,YAAc,GACnBX,KAAKY,OAAS,GACdZ,KAAKa,IAAM,GACXb,KAAKc,oBAAsB,GAC3Bd,KAAKe,cAAgB,GACrBf,KAAKgB,iBAAmB,GACxBhB,KAAKiB,WAAa,GAClBjB,KAAKkB,YAAc,GACnBlB,KAAKmB,eAAiB,GACtBnB,KAAKoB,SAAW,GAChBpB,KAAKqB,aAAe,GACpBrB,KAAKsB,UAAY,GACjBtB,KAAKuB,MAAQ,GACbvB,KAAKwB,KAAO,GACZxB,KAAKyB,SAAW,GAChBzB,KAAK0B,QAAU,GACf1B,KAAK2B,GAAK,GACV3B,KAAK4B,SAAW,GAChB5B,KAAK6B,QAAU,GACf7B,KAAK8B,oBAAsB,GAC3B9B,KAAK+B,kBAAoB,GACzB/B,KAAKgC,mBAAqB,GAC1BhC,KAAKiC,0BAA4B,GAEjCjC,KAAKkC,OAAS,GAGdlC,KAAKmC,eAAiB,KACtBnC,KAAKoC,kBAAoB,MAIdrC,U,kCC5Cf,yBAA0e,EAAG,G,gECA7e,IAAIsC,EAAS,WAAa,IAAIC,EAAItC,KAASuC,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG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K,iCAMvBE,GACT,IAAKA,EAAQ,OAAO,EACpB,IAAIC,EACAC,EAEJ,GADAD,EAAO,EACO,eAAVD,EAAyB,OAAO,EAEpC,IAAK,IAAIH,EAAI,EAAGA,GAAK,EAAGA,IACtBI,GAAcE,SAASH,EAAOP,UAAUI,EAAI,EAAGA,KAAO,GAAKA,GAI7D,GAHAK,EAAgB,GAAPD,EAAa,GAET,IAATC,GAAwB,IAATA,IAAaA,EAAQ,GACpCA,GAASC,SAASH,EAAOP,UAAU,EAAG,KAAM,OAAO,EAGvD,IADAQ,EAAO,EACFJ,EAAI,EAAGA,GAAK,GAAIA,IACnBI,GAAcE,SAASH,EAAOP,UAAUI,EAAI,EAAGA,KAAO,GAAKA,GAI7D,OAHAK,EAAgB,GAAPD,EAAa,GAET,IAATC,GAAwB,IAATA,IAAaA,EAAQ,GACpCA,GAASC,SAASH,EAAOP,UAAU,GAAI,S,KAMhC,WAAIV,G,mFCtGb9E,EAAyC,kBAEzCmG,E,WACF,aAAc,uB,mDAGVC,GAGA,OAFA7B,QAAQC,IAAI,QACZD,QAAQC,IAAIxE,GACLS,IAAMC,IAAIV,EAAQoG,EAAK,CAAC9F,QAAS3F,KAAK2F,c,KAKtC,WAAI6F","file":"js/denuncia.fiscal.f5fc85f7.js","sourcesContent":["class Pessoa {\r\n  constructor() {\r\n    this.id = ''\r\n    this.idCliente = ''\r\n    this.idUsuario = ''\r\n    this.tipo = ''\r\n    this.documento = ''\r\n    this.nome = ''\r\n    this.nomeFantasia = ''\r\n    this.tipoLogradouro = ''\r\n    this.logradouro = ''\r\n    this.numero = ''\r\n    this.complemento = ''\r\n    this.bairro = ''\r\n    this.cep = ''\r\n    this.municipioCodigoIbge = ''\r\n    this.municipioNome = ''\r\n    this.estadoCodigoIbge = ''\r\n    this.estadoNome = ''\r\n    this.estadoSigla = ''\r\n    this.paisCodigoIbge = ''\r\n    this.paisNome = ''\r\n    this.inscEstadual = ''\r\n    this.inscMunic = ''\r\n    this.email = ''\r\n    this.site = ''\r\n    this.telefone = ''\r\n    this.celular = ''\r\n    this.rg = ''\r\n    this.dataHora = ''\r\n    this.version = ''\r\n    this.dataVigenciaInicial = ''\r\n    this.dataVigenciaFinal = ''\r\n    this.idFichaRespostaPai = ''\r\n    this.idFluxoInstanciaAtividade = ''\r\n\r\n    this.detail = ''\r\n    \r\n    // Joins...\r\n    this.idContribuinte = null\r\n    this.idContribuintePai = null\r\n  }\r\n}\r\n\r\nexport default Pessoa\r\n","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DenunciaFiscal.vue?vue&type=style&index=0&id=0bd3ae4b&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DenunciaFiscal.vue?vue&type=style&index=0&id=0bd3ae4b&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-fluid autenticacao\"},[_c('div',[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col col-xs-2\"},[_c('h5',{staticClass:\"panel-title\"},[_vm._v(_vm._s(_vm.labelPagina))])])])]),_c('div',{staticClass:\"card-body\",attrs:{\"id\":\"topo\"}},[_c('form',{attrs:{\"name\":\"form\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit($event)}}},[_c('div',{staticClass:\"form-title-links\"},[_c('span',{staticClass:\"form-title\"},[_vm._v(\"Realize uma \"+_vm._s(_vm.labelPagina)+\" relacionada à Prestação de Serviços.\")])]),_c('Panel',{attrs:{\"header\":'Tipo ' + _vm.labelPagina}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"tpDenuncia\",\"options\":_vm.tiposDenuncia,\"optionLabel\":\"name\",\"placeholder\":'Selecione um Tipo de ' + _vm.labelPagina},model:{value:(_vm.selectedTipoDenuncia),callback:function ($$v) {_vm.selectedTipoDenuncia=$$v},expression:\"selectedTipoDenuncia\"}})],1)])])]),(_vm.selectedTipoDenuncia && _vm.selectedTipoDenuncia.key === 'I')?_c('Panel',{attrs:{\"header\":_vm.labelTomador}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"tpDenunciante\"}},[_vm._v(\"Tipo *:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"tpDenunciante\",\"options\":_vm.tiposPessoa,\"optionLabel\":\"name\",\"placeholder\":\"Selecione um Tipo de Denunciante\"},model:{value:(_vm.selectedTipoDenunciante),callback:function ($$v) {_vm.selectedTipoDenunciante=$$v},expression:\"selectedTipoDenunciante\"}})],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"cpfCnpjDenunciante\"}},[_vm._v(_vm._s(this.selectedTipoDenunciante && this.selectedTipoDenunciante.key == \"J\" ? \"CNPJ:\" : \"CPF:\")+\" *:\")]),_c('span',{staticClass:\"p-fluid\"},[[_c('div',{staticClass:\"p-inputgroup\"},[(_vm.selectedTipoDenunciante && _vm.selectedTipoDenunciante.key == 'J')?[_c('InputMask',{key:\"J\",attrs:{\"id\":\"cpfCnpjDenunciante\",\"mask\":\"99.999.999/9999-99\",\"placeholder\":\"CNPJ\"},model:{value:(_vm.denuncia.cpfCnpjDenunciante),callback:function ($$v) {_vm.$set(_vm.denuncia, \"cpfCnpjDenunciante\", $$v)},expression:\"denuncia.cpfCnpjDenunciante\"}})]:[_c('InputMask',{key:\"F\",attrs:{\"id\":\"cpfCnpjDenunciante\",\"mask\":\"999.999.999-99\",\"placeholder\":\"CPF\"},model:{value:(_vm.denuncia.cpfCnpjDenunciante),callback:function ($$v) {_vm.$set(_vm.denuncia, \"cpfCnpjDenunciante\", $$v)},expression:\"denuncia.cpfCnpjDenunciante\"}})]],2)]],2),_c('small',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.validationErrors.cpfCnpjDenunciante),expression:\"validationErrors.cpfCnpjDenunciante\"}],staticClass:\"p-error\"},[_vm._v(_vm._s(this.selectedTipoDenunciante &&\n                  this.selectedTipoDenunciante.key == \"J\" ? \"CNPJ\" : \"CPF\")+\" \"+_vm._s(_vm.labelTomador)+\" é Obrigatório.\")])]),_c('div',{staticClass:\"col-md-6 mb-2\"},[_c('label',{attrs:{\"for\":\"nomeDenunciante\"}},[_vm._v(\"Nome *:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"id\":\"nomeDenunciante\",\"maxlength\":\"80\"},model:{value:(_vm.denuncia.nomeDenunciante),callback:function ($$v) {_vm.$set(_vm.denuncia, \"nomeDenunciante\", $$v)},expression:\"denuncia.nomeDenunciante\"}})],1),_c('small',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.validationErrors.nomeDenunciante),expression:\"validationErrors.nomeDenunciante\"}],staticClass:\"p-error\"},[_vm._v(\"Nome \"+_vm._s(_vm.labelTomador)+\" é\\n                  Obrigatório.\")])])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-10 mb-2\"},[_c('label',[_vm._v(\"E-mail:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"type\":\"text\",\"maxlength\":\"100\"},model:{value:(_vm.denuncia.emailDenunciante),callback:function ($$v) {_vm.$set(_vm.denuncia, \"emailDenunciante\", $$v)},expression:\"denuncia.emailDenunciante\"}})],1)])])]):_vm._e(),_c('Panel',{attrs:{\"header\":_vm.labelPrestador}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"tpDenunciado\"}},[_vm._v(\"Tipo *:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"tpDenunciado\",\"options\":_vm.tiposPessoa,\"optionLabel\":\"name\",\"placeholder\":\"Selecione um Tipo de Denunciado\"},model:{value:(_vm.selectedTipoDenunciado),callback:function ($$v) {_vm.selectedTipoDenunciado=$$v},expression:\"selectedTipoDenunciado\"}})],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"cpfCnpjDenunciado\"}},[_vm._v(_vm._s(this.selectedTipoDenunciado && this.selectedTipoDenunciado.key == \"J\" ? \"CNPJ:\" : \"CPF:\")+\" *:\")]),_c('span',{staticClass:\"p-fluid\"},[[_c('div',{staticClass:\"p-inputgroup\"},[(_vm.selectedTipoDenunciado && _vm.selectedTipoDenunciado.key == 'J')?[_c('InputMask',{key:\"J\",attrs:{\"id\":\"cpfCnpjDenunciado\",\"mask\":\"99.999.999/9999-99\",\"placeholder\":\"CNPJ\"},on:{\"blur\":function($event){return _vm.searchContribuintePorCpfCnpj()}},model:{value:(_vm.denuncia.cpfCnpjDenunciado),callback:function ($$v) {_vm.$set(_vm.denuncia, \"cpfCnpjDenunciado\", $$v)},expression:\"denuncia.cpfCnpjDenunciado\"}})]:[_c('InputMask',{key:\"F\",attrs:{\"id\":\"cpfCnpjDenunciado\",\"mask\":\"999.999.999-99\",\"placeholder\":\"CPF\"},on:{\"blur\":function($event){return _vm.searchContribuintePorCpfCnpj()}},model:{value:(_vm.denuncia.cpfCnpjDenunciado),callback:function ($$v) {_vm.$set(_vm.denuncia, \"cpfCnpjDenunciado\", $$v)},expression:\"denuncia.cpfCnpjDenunciado\"}})],_c('Button',{staticClass:\"p-button\",attrs:{\"type\":\"button\",\"icon\":\"pi pi-search\",\"title\":\"Pesquisar Contribuinte\"},on:{\"click\":function($event){return _vm.searchContribuintePorCpfCnpj()}}})],2)]],2),_c('small',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.validationErrors.cpfCnpjDenunciado),expression:\"validationErrors.cpfCnpjDenunciado\"}],staticClass:\"p-error\"},[_vm._v(_vm._s(this.selectedTipoDenunciado &&\n                  this.selectedTipoDenunciado.key == \"J\" ? \"CNPJ\" : \"CPF\")+\" \"+_vm._s(_vm.labelPrestador)+\" é Obrigatório.\")])]),_c('div',{staticClass:\"col-md-6 mb-2\"},[_c('label',{attrs:{\"for\":\"nomeDenunciado\"}},[_vm._v(\"Nome *:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"id\":\"nomeDenunciado\",\"maxlength\":\"80\"},model:{value:(_vm.pessoaTomador.nome),callback:function ($$v) {_vm.$set(_vm.pessoaTomador, \"nome\", $$v)},expression:\"pessoaTomador.nome\"}})],1)])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-10 mb-2\"},[_c('label',{attrs:{\"for\":\"enderecoDenunciado\"}},[_vm._v(\"Endereço *:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"id\":\"enderecoDenunciado\",\"maxlength\":\"120\"},model:{value:(_vm.enderecoDenunciadoFormat),callback:function ($$v) {_vm.enderecoDenunciadoFormat=$$v},expression:\"enderecoDenunciadoFormat\"}})],1)])])]),_c('Panel',{attrs:{\"header\":'Dados ' + _vm.labelPagina}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"categoria\"}},[_vm._v(\"Categoria *:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"categoria\",\"options\":_vm.categorias,\"optionLabel\":\"name\",\"placeholder\":\"Selecione uma Categoria\"},model:{value:(_vm.selectedCategoria),callback:function ($$v) {_vm.selectedCategoria=$$v},expression:\"selectedCategoria\"}})],1)]),(_vm.selectedCategoria && _vm.selectedCategoria.key === 'N')?_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"numeroNfseRps\"}},[_vm._v(\"Número Nfse/RPS *:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"id\":\"numeroNfseRps\",\"type\":\"number\"},model:{value:(_vm.denuncia.numeroNfseRps),callback:function ($$v) {_vm.$set(_vm.denuncia, \"numeroNfseRps\", $$v)},expression:\"denuncia.numeroNfseRps\"}})],1),_c('small',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.validationErrors.numeroNfseRps),expression:\"validationErrors.numeroNfseRps\"}],staticClass:\"p-error\"},[_vm._v(\"Número Nfse/RPS é Obrigatório.\")])]):_vm._e()]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-10 mb-2\"},[_c('label',{attrs:{\"for\":\"assunto\"}},[_vm._v(\"Assunto *:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"id\":\"assunto\",\"maxlength\":\"150\"},model:{value:(_vm.denuncia.assunto),callback:function ($$v) {_vm.$set(_vm.denuncia, \"assunto\", $$v)},expression:\"denuncia.assunto\"}})],1),_c('small',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.validationErrors.assunto),expression:\"validationErrors.assunto\"}],staticClass:\"p-error\"},[_vm._v(\"Assunto da \"+_vm._s(_vm.labelPagina)+\" é\\n                  Obrigatório.\")])])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-10 mb-2\"},[_c('label',{attrs:{\"for\":\"descricao\"}},[_vm._v(\"Descrição *:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.denuncia.descricao),expression:\"denuncia.descricao\"}],attrs:{\"id\":\"descricao\",\"name\":\"descricao\",\"rows\":\"5\"},domProps:{\"value\":(_vm.denuncia.descricao)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.denuncia, \"descricao\", $event.target.value)}}})]),_c('small',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.validationErrors.descricao),expression:\"validationErrors.descricao\"}],staticClass:\"p-error\"},[_vm._v(\"Descrição da \"+_vm._s(_vm.labelPagina)+\" é\\n                  Obrigatória.\")])])])]),_c('hr'),[(!_vm.salvo)?_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"label\":\"Gravar\",\"title\":\"Gravar\",\"type\":\"submit\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading}}):_vm._e(),_c('Button',{staticClass:\"p-button-primary mr-2\",attrs:{\"label\":\"Login\",\"title\":\"Login\",\"type\":\"button\",\"icon\":\"pi pi-arrow-left\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.login()}}})],_c('br')],2)])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","class Denuncia {\r\n  constructor() {\r\n    \r\n  }\r\n}\r\n\r\nexport default Denuncia\r\n","import axios from 'axios';\r\nimport LoginService from '../acesso/login.service'\r\n\r\nconst API_URL = process.env.VUE_APP_BASE_URL + '/api/denunciaFiscal/';\r\n\r\nclass DenunciaService {\r\n    constructor() {\r\n        LoginService.currentUser.subscribe(data => {\r\n            this.headers = {\r\n                'Content-Type': 'application/json',\r\n                'authorization': 'Bearer ' + (data ? data.token : '')\r\n            };\r\n        });\r\n    }\r\n\r\n    findAllByFiltro(idCliente, filtro) {\r\n        return axios.get(API_URL + 'all?idCliente=' + idCliente + '&filtro=' + filtro, { headers: this.headers });\r\n    }\r\n\r\n    save(denuncia) {\r\n        return axios.post(API_URL, JSON.stringify(denuncia),\r\n            { headers: this.headers });\r\n    }\r\n\r\n    get(denunciaId) {\r\n        return axios.get(API_URL + denunciaId, { headers: this.headers });\r\n    }\r\n\r\n    findAllByTipoCpfCnpjDenunciaFis(idCliente, cpfCnpj) {\r\n        return axios.get(API_URL + 'filterContrDenunciado?idCliente=' + idCliente + '&cpfCnpj=' + cpfCnpj, { headers: this.headers }).then(response => (this.data = response.data.elements));\r\n    }\r\n\r\n    remove(denunciaId) {\r\n        return axios.delete(API_URL + denunciaId, { headers: this.headers });\r\n    }\r\n\r\n    //Manifestação\r\n    findDadosManifestacao(idCliente, cpfCnpj, chave) {\r\n        return axios.get(API_URL + 'dadosManifestacao?idCliente=' + idCliente + '&cpfCnpj=' + cpfCnpj + '&chave=' + chave, { headers: this.headers });\r\n    }\r\n\r\n}\r\n\r\nexport default new DenunciaService();","<template>\r\n  <div class=\"container-fluid autenticacao\">\r\n    <div>\r\n      <div class=\"card\">\r\n        <div class=\"card-header\">\r\n          <div class=\"row\">\r\n            <div class=\"col col-xs-2\">\r\n              <h5 class=\"panel-title\">{{ labelPagina }}</h5>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div id=\"topo\" class=\"card-body\">\r\n          <form name=\"form\" @submit.prevent=\"onSubmit\">\r\n            <div class=\"form-title-links\">\r\n              <span class=\"form-title\">Realize uma {{ labelPagina }} relacionada à Prestação de Serviços.</span>\r\n            </div>\r\n\r\n            <Panel :header=\"'Tipo ' + labelPagina\">\r\n              <div class=\"row\">\r\n                <div class=\"col-md-2 mb-2\">\r\n                  <span class=\"p-fluid\">\r\n                    <Dropdown id=\"tpDenuncia\" v-model=\"selectedTipoDenuncia\" :options=\"tiposDenuncia\" optionLabel=\"name\"\r\n                      :placeholder=\"'Selecione um Tipo de ' + labelPagina\" />\r\n                  </span>\r\n                </div>\r\n              </div>\r\n            </Panel>\r\n            <Panel :header=\"labelTomador\" v-if=\"selectedTipoDenuncia && selectedTipoDenuncia.key === 'I'\">\r\n              <div class=\"row\">\r\n                <div class=\"col-md-2 mb-2\">\r\n                  <label for=\"tpDenunciante\">Tipo *:</label>\r\n                  <span class=\"p-fluid\">\r\n                    <Dropdown id=\"tpDenunciante\" v-model=\"selectedTipoDenunciante\" :options=\"tiposPessoa\"\r\n                      optionLabel=\"name\" placeholder=\"Selecione um Tipo de Denunciante\" />\r\n                  </span>\r\n                </div>\r\n                <div class=\"col-md-2 mb-2\">\r\n                  <label for=\"cpfCnpjDenunciante\">{{\r\n                    this.selectedTipoDenunciante && this.selectedTipoDenunciante.key == \"J\" ? \"CNPJ:\" : \"CPF:\"\r\n                  }} *:</label>\r\n                  <span class=\"p-fluid\">\r\n                    <template>\r\n                      <div class=\"p-inputgroup\">\r\n                        <template v-if=\"selectedTipoDenunciante && selectedTipoDenunciante.key == 'J'\">\r\n                          <InputMask v-model=\"denuncia.cpfCnpjDenunciante\" key=\"J\" id=\"cpfCnpjDenunciante\"\r\n                            mask=\"99.999.999/9999-99\" placeholder=\"CNPJ\" />\r\n                        </template>\r\n                        <template v-else>\r\n                          <InputMask v-model=\"denuncia.cpfCnpjDenunciante\" key=\"F\" id=\"cpfCnpjDenunciante\"\r\n                            mask=\"999.999.999-99\" placeholder=\"CPF\" />\r\n                        </template>\r\n                      </div>\r\n                    </template>\r\n                  </span>\r\n                  <small v-show=\"validationErrors.cpfCnpjDenunciante\" class=\"p-error\">{{ this.selectedTipoDenunciante &&\r\n                    this.selectedTipoDenunciante.key == \"J\" ? \"CNPJ\" : \"CPF\" }} {{ labelTomador }} é Obrigatório.</small>\r\n                </div>\r\n                <div class=\"col-md-6 mb-2\">\r\n                  <label for=\"nomeDenunciante\">Nome *:</label>\r\n                  <span class=\"p-fluid\">\r\n                    <InputText v-model=\"denuncia.nomeDenunciante\" id=\"nomeDenunciante\" maxlength=\"80\" />\r\n                  </span>\r\n                  <small v-show=\"validationErrors.nomeDenunciante\" class=\"p-error\">Nome {{ labelTomador }} é\r\n                    Obrigatório.</small>\r\n                </div>\r\n              </div>\r\n              <div class=\"row\">\r\n                <div class=\"col-md-10 mb-2\">\r\n                  <label>E-mail:</label>\r\n                  <span class=\"p-fluid\">\r\n                    <InputText v-model=\"denuncia.emailDenunciante\" type=\"text\" maxlength=\"100\" />\r\n                  </span>\r\n                </div>\r\n              </div>\r\n            </Panel>\r\n            <Panel :header=\"labelPrestador\">\r\n              <div class=\"row\">\r\n                <div class=\"col-md-2 mb-2\">\r\n                  <label for=\"tpDenunciado\">Tipo *:</label>\r\n                  <span class=\"p-fluid\">\r\n                    <Dropdown id=\"tpDenunciado\" v-model=\"selectedTipoDenunciado\" :options=\"tiposPessoa\" optionLabel=\"name\"\r\n                      placeholder=\"Selecione um Tipo de Denunciado\" />\r\n                  </span>\r\n                </div>\r\n                <div class=\"col-md-2 mb-2\">\r\n                  <label for=\"cpfCnpjDenunciado\">{{\r\n                    this.selectedTipoDenunciado && this.selectedTipoDenunciado.key == \"J\" ? \"CNPJ:\" : \"CPF:\"\r\n                  }} *:</label>\r\n                  <span class=\"p-fluid\">\r\n                    <template>\r\n                      <div class=\"p-inputgroup\">\r\n                        <template v-if=\"selectedTipoDenunciado && selectedTipoDenunciado.key == 'J'\">\r\n                          <InputMask @blur=\"searchContribuintePorCpfCnpj()\" v-model=\"denuncia.cpfCnpjDenunciado\" key=\"J\" id=\"cpfCnpjDenunciado\"\r\n                            mask=\"99.999.999/9999-99\" placeholder=\"CNPJ\" />\r\n                        </template>\r\n                        <template v-else>\r\n                          <InputMask @blur=\"searchContribuintePorCpfCnpj()\" v-model=\"denuncia.cpfCnpjDenunciado\" key=\"F\" id=\"cpfCnpjDenunciado\" mask=\"999.999.999-99\"\r\n                            placeholder=\"CPF\" />\r\n                        </template>\r\n                        <Button @click=\"searchContribuintePorCpfCnpj()\" type=\"button\" icon=\"pi pi-search\" class=\"p-button\"\r\n                        title=\"Pesquisar Contribuinte\" />\r\n                      </div>\r\n                    </template>\r\n                  </span>\r\n                  <small v-show=\"validationErrors.cpfCnpjDenunciado\" class=\"p-error\">{{ this.selectedTipoDenunciado &&\r\n                    this.selectedTipoDenunciado.key == \"J\" ? \"CNPJ\" : \"CPF\" }} {{ labelPrestador }} é Obrigatório.</small>\r\n                </div>\r\n                <div class=\"col-md-6 mb-2\">\r\n                  <label for=\"nomeDenunciado\">Nome *:</label>\r\n                  <span class=\"p-fluid\">\r\n                    <InputText v-model=\"pessoaTomador.nome\" id=\"nomeDenunciado\" maxlength=\"80\" />\r\n                  </span>\r\n                </div>\r\n              </div>\r\n              <div class=\"row\">\r\n                <div class=\"col-md-10 mb-2\">\r\n                  <label for=\"enderecoDenunciado\">Endereço *:</label>\r\n                  <span class=\"p-fluid\">\r\n                    <InputText v-model=\"enderecoDenunciadoFormat\" id=\"enderecoDenunciado\" maxlength=\"120\" />\r\n                  </span>\r\n                </div>\r\n              </div>\r\n            </Panel>\r\n            <Panel :header=\"'Dados ' + labelPagina\">\r\n              <div class=\"row\">\r\n                <div class=\"col-md-2 mb-2\">\r\n                  <label for=\"categoria\">Categoria *:</label>\r\n                  <span class=\"p-fluid\">\r\n                    <Dropdown id=\"categoria\" v-model=\"selectedCategoria\" :options=\"categorias\" optionLabel=\"name\"\r\n                      placeholder=\"Selecione uma Categoria\" />\r\n                  </span>\r\n                </div>\r\n                <div class=\"col-md-2 mb-2\" v-if=\"selectedCategoria && selectedCategoria.key === 'N'\">\r\n                  <label for=\"numeroNfseRps\">Número Nfse/RPS *:</label>\r\n                  <span class=\"p-fluid\">\r\n                    <InputText v-model=\"denuncia.numeroNfseRps\" id=\"numeroNfseRps\" type=\"number\" />\r\n                  </span>\r\n                  <small v-show=\"validationErrors.numeroNfseRps\" class=\"p-error\">Número Nfse/RPS é Obrigatório.</small>\r\n                </div>\r\n              </div>\r\n              <div class=\"row\">\r\n                <div class=\"col-md-10 mb-2\">\r\n                  <label for=\"assunto\">Assunto *:</label>\r\n                  <span class=\"p-fluid\">\r\n                    <InputText v-model=\"denuncia.assunto\" id=\"assunto\" maxlength=\"150\" />\r\n                  </span>\r\n                  <small v-show=\"validationErrors.assunto\" class=\"p-error\">Assunto da {{ labelPagina }} é\r\n                    Obrigatório.</small>\r\n                </div>\r\n              </div>\r\n              <div class=\"row\">\r\n                <div class=\"col-md-10 mb-2\">\r\n                  <label for=\"descricao\">Descrição *:</label>\r\n                  <span class=\"p-fluid\">\r\n                    <textarea id=\"descricao\" name=\"descricao\" v-model=\"denuncia.descricao\" rows=\"5\" />\r\n                  </span>\r\n                  <small v-show=\"validationErrors.descricao\" class=\"p-error\">Descrição da {{ labelPagina }} é\r\n                    Obrigatória.</small>\r\n                </div>\r\n              </div>\r\n            </Panel>\r\n            <hr />\r\n            <template>\r\n              <Button label=\"Gravar\" title=\"Gravar\" type=\"submit\" class=\"p-button-primary mr-2 p-button-success\"\r\n                icon=\"pi pi-check\" :disabled=\"loading\" v-if=\"!salvo\">\r\n              </Button>\r\n\r\n              <Button label=\"Login\" title=\"Login\" type=\"button\" class=\"p-button-primary mr-2\" icon=\"pi pi-arrow-left\"\r\n                :disabled=\"loading\" @click=\"login()\"></Button>\r\n\r\n            </template>\r\n\r\n            <br />\r\n            <!-- <div class=\"copyright\">© {{ this.anoAtual }} - GPI - Gestão Pública Integrada</div> -->\r\n          </form>\r\n        </div>\r\n\r\n      </div>\r\n    </div>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport Denuncia from \"../models/nfse/Denuncia\";\r\nimport DenunciaService from \"../services/nfse/denuncia.service\";\r\nimport DnsClienteService from \"../services/nfse/dns.cliente.service\";\r\nimport Util from \"../Utils/util\";\r\nimport Pessoa from \"../models/nfse/Pessoa\";\r\n\r\nexport default {\r\n  data() {\r\n    return {\r\n      anoAtual: null,\r\n      salvo: false,\r\n      loading: false,\r\n      selectedTipoDenuncia: null,\r\n      selectedTipoDenunciante: null,\r\n      selectedTipoDenunciado: null,\r\n      selectedCategoria: null,\r\n      tiposDenuncia: [\r\n        { name: \"Anônima\", key: \"A\" },\r\n        { name: \"Identificada\", key: \"I\" }\r\n      ],\r\n      tiposPessoa: [\r\n        { name: \"Pessoa Jurídica\", key: \"J\" },\r\n        { name: \"Pessoa Física\", key: \"F\" }\r\n      ],\r\n      categorias: [\r\n        { name: \"Denúncia Livre\", key: \"L\" },\r\n        { name: \"Relacionada a um Número de Nfse ou RPS\", key: \"N\" }\r\n      ],\r\n      chaveValidacao: null,\r\n      cpfCnpjPrestador: null,\r\n      denuncia: new Denuncia(),\r\n      pessoaTomador: new Pessoa(),\r\n      validationErrors: {},\r\n      selectedMunicipio: null,\r\n      enderecoDenunciadoFormat: null\r\n    };\r\n  },\r\n\r\n  mounted() {\r\n    this.selectedTipoDenuncia = this.tiposDenuncia[0];\r\n    this.selectedTipoDenunciante = this.tiposPessoa[0];\r\n    this.selectedTipoDenunciado = this.tiposPessoa[0];\r\n    this.selectedCategoria = this.categorias[0];\r\n    var d = new Date();\r\n    this.anoAtual = d.getFullYear();\r\n    setTimeout(async () => {\r\n      this.processando(true);\r\n      let host = window.location.hostname;\r\n      this.dnsCliente = await DnsClienteService.get(host);\r\n      if (\r\n        this.dnsCliente &&\r\n        this.dnsCliente.data &&\r\n        this.dnsCliente.data.idCliente\r\n      ) {\r\n        this.idCliente = this.dnsCliente.data.idCliente;\r\n      }\r\n      if (this.chaveValidacao && this.cpfCnpjPrestador) {\r\n        DenunciaService.findDadosManifestacao(this.idCliente, this.cpfCnpjPrestador, this.chaveValidacao).then(\r\n          data => {\r\n            const manifestacao = data.data;\r\n\r\n            if (data.data) {\r\n              this.selectedTipoDenuncia = this.tiposDenuncia.filter(\r\n                tipo => tipo.key == \"I\"\r\n              )[0];\r\n\r\n              this.selectedTipoDenunciante = this.tiposPessoa.filter(\r\n                tipo => tipo.key == manifestacao.tomadorTipo\r\n              )[0];\r\n              this.denuncia.nomeDenunciante = manifestacao.tomadorNome;\r\n              this.denuncia.cpfCnpjDenunciante = manifestacao.tomadorDocumento;\r\n              this.denuncia.emailDenunciante = manifestacao.tomadorEmail;\r\n\r\n              this.selectedTipoDenunciado = this.tiposPessoa.filter(\r\n                tipo => tipo.key == manifestacao.prestadorTipo\r\n              )[0];\r\n              this.denuncia.nomeDenunciado = manifestacao.prestadorNome;\r\n              this.denuncia.cpfCnpjDenunciado = manifestacao.prestadorDocumento;\r\n              this.denuncia.enderecoDenunciado = manifestacao.prestadorEndereco;\r\n\r\n              this.selectedCategoria = this.categorias.filter(\r\n                tipo => tipo.key == \"N\"\r\n              )[0];\r\n              this.denuncia.numeroNfseRps = manifestacao.numeroNfe;\r\n            }\r\n          },\r\n          error => {\r\n            let errorMessage = \"Houve um problema ao buscar dados para Manifestação! Preencha manualmente.\";\r\n            if (error.response) {\r\n              errorMessage = error.response.data[0];\r\n            }\r\n            this.$toast.add({\r\n              severity: \"error\",\r\n              summary: errorMessage\r\n            });\r\n          }\r\n\r\n        );\r\n      }\r\n\r\n      this.processando(false);\r\n    }, 250);\r\n  },\r\n\r\n  created() {\r\n    this.limparDados();\r\n    this.chaveValidacao = this.$route.query.chave;\r\n    this.cpfCnpjPrestador = this.$route.query.cpfCnpj;\r\n  },\r\n\r\n  methods: {\r\n    limparDados() {\r\n      this.denuncia = new Denuncia();\r\n      this.chaveValidacao = null;\r\n      this.cpfCnpjPrestador = null;\r\n    },\r\n\r\n    login() {\r\n      this.$router.push(\"/login\");\r\n    },\r\n    validateForm() {\r\n      if (this.selectedTipoDenuncia && this.selectedTipoDenuncia.key === 'I') {\r\n        if (!this.denuncia.cpfCnpjDenunciante)\r\n          this.validationErrors['cpfCnpjDenunciante'] = true;\r\n        else\r\n          delete this.validationErrors['cpfCnpjDenunciante'];\r\n\r\n        if (!this.denuncia.nomeDenunciante)\r\n          this.validationErrors['nomeDenunciante'] = true;\r\n        else\r\n          delete this.validationErrors['nomeDenunciante'];\r\n\r\n        if (!this.denuncia.nomeDenunciante)\r\n          this.validationErrors['nomeDenunciante'] = true;\r\n        else\r\n          delete this.validationErrors['nomeDenunciante'];\r\n      }\r\n      if (!this.denuncia.cpfCnpjDenunciado)\r\n        this.validationErrors['cpfCnpjDenunciado'] = true;\r\n      else\r\n        delete this.validationErrors['cpfCnpjDenunciado'];\r\n\r\n      if (!this.denuncia.assunto)\r\n        this.validationErrors['assunto'] = true;\r\n      else\r\n        delete this.validationErrors['assunto'];\r\n\r\n      if (!this.denuncia.descricao)\r\n        this.validationErrors['descricao'] = true;\r\n      else\r\n        delete this.validationErrors['descricao'];\r\n\r\n      if (this.selectedCategoria && this.selectedCategoria.key === 'N' && !this.denuncia.numeroNfseRps)\r\n        this.validationErrors['numeroNfseRps'] = true;\r\n      else\r\n        delete this.validationErrors['numeroNfseRps'];\r\n\r\n\r\n      return !Object.keys(this.validationErrors).length;\r\n    },\r\n    onSubmit() {\r\n      this.loading = true;\r\n\r\n      if (this.validateForm()) {\r\n        this.salvar();\r\n      }\r\n\r\n      this.loading = false;\r\n    },\r\n    salvar() {\r\n      this.denuncia.idCliente = this.idCliente;\r\n      this.denuncia.idBolCategoria = this.selectedCategoria.key;\r\n      this.denuncia.idBolTipo = this.selectedTipoDenuncia.key;\r\n      this.denuncia.idBolSituacao = 'A';\r\n      this.denuncia.nomeDenunciado = this.pessoaTomador.nome;\r\n      this.denuncia.enderecoDenunciado = this.enderecoDenunciadoFormat;\r\n\r\n      if (this.isManifestacao) {\r\n        this.denuncia.idBolManifestacao = 'S';\r\n      }\r\n\r\n      DenunciaService.save(this.denuncia).then(\r\n        data => {\r\n          console.log(data);\r\n          this.$toast.add({\r\n            severity: \"success\",\r\n            summary: this.labelPagina + \" registrada com sucesso!\"\r\n          });\r\n          this.salvo = true;\r\n        },\r\n        error => {\r\n          let errorMessage = \"Houve um problema ao salvar a \" + this.labelPagina + \"!\";\r\n          if (error.response) {\r\n            errorMessage = error.response.data;\r\n          }\r\n          this.$toast.add({\r\n            severity: \"error\",\r\n            summary: errorMessage\r\n          });\r\n        }\r\n      );\r\n    },\r\n    searchContribuintePorCpfCnpj() {\r\n      const documento = this.denuncia.cpfCnpjDenunciado;\r\n      if (documento !== \"\" && this.validarDocumento()) {\r\n        this.processando(true);\r\n        DenunciaService.findAllByTipoCpfCnpjDenunciaFis(this.idCliente, documento)\r\n          .then((data) => {\r\n            console.log(data);\r\n\r\n            if (data.length) {\r\n              this.contribuintes = data;\r\n\r\n              // Se encontrar mais de um cadastro, exibe dialog para selecionar.\r\n              // Se não, já preenche os dados com o contribuinte encontrado.\r\n              if (data.length > 1) {\r\n                this.showSelecaoContribuinte = true;\r\n              } else {\r\n                this.preencherDadosTomador(this.contribuintes[0]);\r\n              }\r\n            } else {\r\n              if (this.denuncia.idContribuinteDenunciado) {\r\n                this.limparDadosTomador();\r\n                this.denuncia.cpfCnpjDenunciado = documento;\r\n              }\r\n            }\r\n          },\r\n            (error) => {\r\n              if (error.response.data) {\r\n                this.denuncia.cpfCnpjDenunciado = null;\r\n                this.$root.$emit(\"alert:warn\", error.response.data);\r\n              } else {\r\n                this.$root.$emit(\"alert:warn\", \"não foi possível consultar o cadastro!\");\r\n              }\r\n            })\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      } else {\r\n        if (this.denuncia.idContribuinteDenunciado) {\r\n          this.limparDadosTomador();\r\n          this.denuncia.cpfCnpjDenunciado = documento;\r\n        }\r\n      }\r\n    },\r\n    preencherDadosTomador(contribuinte) {\r\n      // this.hideSelecaoContribuinte();\r\n\r\n      // this.tipoCadastroContribuinte =\r\n      //   contribuinte.idContribuinteTipo && contribuinte.idContribuinteTipo.id\r\n      //     ? contribuinte.idContribuinteTipo.id\r\n      //     : \"\";\r\n\r\n      this.pessoaTomador.id =\r\n        contribuinte.idPessoa && contribuinte.idPessoa.id\r\n          ? contribuinte.idPessoa.id\r\n          : null;\r\n      this.preencherContrTomador(contribuinte);\r\n      this.denuncia.cpfCnpjDenunciado =\r\n        contribuinte.idPessoa.numeroDocumentoJuridico;\r\n      this.pessoaTomador.nome = contribuinte.idPessoa.nomeGeral;\r\n      this.pessoaTomador.cep = contribuinte.cep;\r\n      this.selectedMunicipio = contribuinte.idLocalidadeMunicipio;\r\n      this.pessoaTomador.bairro = contribuinte.idBairro\r\n        ? contribuinte.idBairro.nomeBairro\r\n        : \"\";\r\n      this.pessoaTomador.tipoLogradouro =\r\n        contribuinte.idLogradouro && contribuinte.idLogradouro.idCepTipoLogra\r\n          ? contribuinte.idLogradouro.idCepTipoLogra.nomeTipoLogra\r\n          : \"\";\r\n      this.pessoaTomador.logradouro = contribuinte.idLogradouro\r\n        ? contribuinte.idLogradouro.nomeLogradouro\r\n        : \"\";\r\n      this.pessoaTomador.numero = contribuinte.numeroLogradouro;\r\n      this.pessoaTomador.complemento = contribuinte.complementoLogradouro;\r\n\r\n      this.pessoaTomador.email = contribuinte.contatos.email;\r\n      this.pessoaTomador.site = contribuinte.contatos.site;\r\n      this.pessoaTomador.telefone = contribuinte.contatos.telefone;\r\n      this.pessoaTomador.celular = contribuinte.contatos.celular;\r\n\r\n      // if (\r\n      //   this.pessoaTomador.idContribuinte &&\r\n      //   contribuinte.idContribuinteTipo.id ==\r\n      //   this.currentUser.configuracao.idContrTipoEconomico\r\n      // ) {\r\n      //   this.$root.$emit(\r\n      //     \"alert:warn\",\r\n      //     \"O contribuinte informado é do Tipo Econômico. Os dados não podem ser alterados.\"\r\n      //   );\r\n      // }\r\n      this.enderecoDenunciadoFormat = `${this.pessoaTomador.tipoLogradouro || \"\"} ${this.pessoaTomador.logradouro || \"\"}, ${this.pessoaTomador.numero || \"\"}${this.pessoaTomador.complemento ? \" - \" + this.pessoaTomador.complemento : \"\"}, ${this.pessoaTomador.bairro || \"\"}, ${(this.selectedMunicipio && this.selectedMunicipio.nomeMunicipio) || \"\"} - ${this.pessoaTomador.cep || \"\"}`;\r\n\r\n    },\r\n    preencherContrTomador(contribuinte) {\r\n      // if (\r\n      //   contribuinte.idContribuinteTipo &&\r\n      //   contribuinte.idContribuinteTipo.id ==\r\n      //   this.currentUser.configuracao.idContrTipoEconomico\r\n      // ) {\r\n        this.pessoaTomador.idContribuinte = contribuinte.id;\r\n      // }\r\n    },\r\n    validarDocumento() {\r\n      var validar = false;\r\n      validar = Util.validarCPFCNPJ(this.denuncia.cpfCnpjDenunciado);\r\n\r\n      if (!validar) {\r\n        console.log(validar);\r\n        this.$root.$emit(\"alert:error\", \"CPF/CNPJ \" + this.denuncia.cpfCnpjDenunciado + \" inválido!\");\r\n        this.denuncia.cpfCnpjDenunciado = null;\r\n      }\r\n      return validar;\r\n    },\r\n    processando(show) {\r\n      if (show) {\r\n        this.loading = true;\r\n        this.$root.$emit(\"loading:show\");\r\n      } else {\r\n        this.loading = false;\r\n        this.$root.$emit(\"loading:hide\");\r\n      }\r\n    }\r\n  },\r\n\r\n  computed: {\r\n    isManifestacao() {\r\n      return this.chaveValidacao && this.cpfCnpjPrestador;\r\n    },\r\n\r\n    labelPagina() {\r\n      return this.isManifestacao ? \"Manifestação\" : \"Denúncia Fiscal\";\r\n    },\r\n\r\n    labelTomador() {\r\n      return this.isManifestacao ? 'Tomador' : 'Denunciante';\r\n    },\r\n\r\n    labelPrestador() {\r\n      return this.isManifestacao ? 'Prestador' : 'Denunciado';\r\n    }\r\n  }\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.form-title {\r\n  margin-bottom: 20px;\r\n  font-size: 19px;\r\n  font-weight: 400 !important;\r\n}\r\n\r\n\r\na {\r\n  cursor: pointer;\r\n}\r\n\r\ntextarea {\r\n  width: 100%;\r\n  border-radius: 12px;\r\n}\r\n\r\n.copyright {\r\n  text-align: center;\r\n  margin: 10px auto 30px 0;\r\n  padding: 10px;\r\n  font-size: 13px;\r\n}</style>","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/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DenunciaFiscal.vue?vue&type=script&lang=js&\"; 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/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DenunciaFiscal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DenunciaFiscal.vue?vue&type=template&id=0bd3ae4b&scoped=true&\"\nimport script from \"./DenunciaFiscal.vue?vue&type=script&lang=js&\"\nexport * from \"./DenunciaFiscal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./DenunciaFiscal.vue?vue&type=style&index=0&id=0bd3ae4b&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  \"0bd3ae4b\",\n  null\n  \n)\n\nexport default component.exports","class Util {\r\n  constructor() {}\r\n\r\n  //Validar se um email é válido\r\n  validarEmail (email) {\r\n    // eslint-disable-next-line\r\n    var re = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n    return re.test(email);\r\n  }\r\n\r\n  // validar CPF ou CNPJ\r\n  validarCPFCNPJ(cpfCnpj) {\r\n    if (!cpfCnpj) return false;\r\n    cpfCnpj = cpfCnpj.replace(/[^\\d]+/g, \"\");\r\n    var validado = false;\r\n\r\n    if (cpfCnpj.length == 14) {\r\n      validado = this.validarCNPJ(cpfCnpj);\r\n    }\r\n    else if (cpfCnpj.length == 11) {\r\n      validado = this.validarCPF(cpfCnpj);\r\n    }\r\n\r\n    return validado;\r\n  }\r\n\r\n  // Validação de CNPJ\r\n  validarCNPJ(cnpj) {\r\n    if (!cnpj) return false;\r\n    cnpj = cnpj.replace(/[^\\d]+/g, \"\");\r\n    \r\n    if (cnpj == \"\") return false;\r\n\r\n    if (cnpj.length != 14) return false;\r\n\r\n    // Elimina CNPJs invalidos conhecidos\r\n    if (\r\n      cnpj == \"00000000000000\" ||\r\n      cnpj == \"11111111111111\" ||\r\n      cnpj == \"22222222222222\" ||\r\n      cnpj == \"33333333333333\" ||\r\n      cnpj == \"44444444444444\" ||\r\n      cnpj == \"55555555555555\" ||\r\n      cnpj == \"66666666666666\" ||\r\n      cnpj == \"77777777777777\" ||\r\n      cnpj == \"88888888888888\" ||\r\n      cnpj == \"99999999999999\"\r\n    )\r\n      return false;\r\n\r\n    // Valida DVs\r\n    var tamanho = cnpj.length - 2;\r\n    var numeros = cnpj.substring(0, tamanho);\r\n    var digitos = cnpj.substring(tamanho);\r\n    var soma = 0;\r\n    var pos = tamanho - 7;\r\n    for (var i = tamanho; i >= 1; i--) {\r\n      soma += numeros.charAt(tamanho - i) * pos--;\r\n      if (pos < 2) pos = 9;\r\n    }\r\n    var resultado = soma % 11 < 2 ? 0 : 11 - (soma % 11);\r\n    if (resultado != digitos.charAt(0)) return false;\r\n\r\n    tamanho = tamanho + 1;\r\n    numeros = cnpj.substring(0, tamanho);\r\n    soma = 0;\r\n    pos = tamanho - 7;\r\n    for (i = tamanho; i >= 1; i--) {\r\n      soma += numeros.charAt(tamanho - i) * pos--;\r\n      if (pos < 2) pos = 9;\r\n    }\r\n    resultado = soma % 11 < 2 ? 0 : 11 - (soma % 11);\r\n    if (resultado != digitos.charAt(1)) return false;\r\n\r\n    return true;\r\n  }\r\n\r\n  // Validar CPF\r\n  validarCPF(strCPF) {\r\n    if (!strCPF) return false;\r\n    var Soma;\r\n    var Resto;\r\n    Soma = 0;\r\n    if (strCPF == \"00000000000\") return false;\r\n\r\n    for (var i = 1; i <= 9; i++)\r\n      Soma = Soma + parseInt(strCPF.substring(i - 1, i)) * (11 - i);\r\n    Resto = (Soma * 10) % 11;\r\n\r\n    if (Resto == 10 || Resto == 11) Resto = 0;\r\n    if (Resto != parseInt(strCPF.substring(9, 10))) return false;\r\n\r\n    Soma = 0;\r\n    for (i = 1; i <= 10; i++)\r\n      Soma = Soma + parseInt(strCPF.substring(i - 1, i)) * (12 - i);\r\n    Resto = (Soma * 10) % 11;\r\n\r\n    if (Resto == 10 || Resto == 11) Resto = 0;\r\n    if (Resto != parseInt(strCPF.substring(10, 11))) return false;\r\n    return true;\r\n  }\r\n\r\n}\r\n\r\nexport default new Util();\r\n","import axios from 'axios';\r\n\r\nconst API_URL = process.env.VUE_APP_BASE_URL + '/api/dnspublic/';\r\n\r\nclass DnsClenteService {\r\n    constructor() {\r\n    }\r\n\r\n    get(dns) {\r\n        console.log('Here');\r\n        console.log(API_URL);\r\n        return axios.get(API_URL+dns, {headers: this.headers});\r\n    }\r\n\r\n}\r\n\r\nexport default new DnsClenteService();"],"sourceRoot":""}