{"version":3,"sources":["webpack:///./src/app/certificado-digital/CertificadoView.vue?795b","webpack:///./src/app/certificado-digital/shared/components/colunas/index.js","webpack:///src/app/certificado-digital/CertificadoView.vue","webpack:///./src/app/certificado-digital/CertificadoView.vue?a8ec","webpack:///./src/app/certificado-digital/CertificadoView.vue","webpack:///./node_modules/core-js/modules/es.array.find.js","webpack:///./src/app/certificado-digital/CertificadoView.vue?3bb6","webpack:///./src/app/certificado-digital/shared/services/api.js","webpack:///./node_modules/core-js/modules/es.array.map.js","webpack:///./node_modules/core-js/modules/es.json.stringify.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","attrs","botoesOption","visualizacao","filtrosRapidos","filtros","scopedSlots","_u","key","fn","props","column","field","row","situacao","directives","name","rawName","modifiers","staticStyle","_v","_s","formattedRow","_e","staticClass","on","$event","openModalVincularEmpresasCertificado","openModalEmpresasVinculadas","slot","filtroAtual","filtroBy","baixarEmExcel","staticRenderFns","label","editable","evento","type","components","CertificadosList","EmpresasVinculadas","Cadeado","data","novo","editar","remover","acaoClass","placeholderBusca","colunas","valor","id","mounted","created","methods","evt","api","then","window","catch","aplicarFiltroQuery","carregar","pagina","tamanhoPagina","value","params","linhas","reject","resolve","Vue","title","html","icon","width","showCancelButton","confirmButtonText","cancelButtonText","customClass","popup","confirmButton","cancelButton","buttonsStyling","component","variant","$","$find","find","addToUnscopables","arrayMethodUsesToLength","FIND","SKIPS_HOLES","USES_TO_LENGTH","Array","target","proto","forced","callbackfn","arguments","length","undefined","PREFIX","getFormDataBody","file","body","formData","FormData","append","fileName","JSON","stringify","salvarCertificado","certificado","arquivo","axios","post","alterarCertificado","put","cadastrarEmpresaPorCertificado","get","removerCertificado","ids","isArray","delete","getPaginado","page","pageSize","getCertificado","getCertificadosResumidos","filtro","getCertificadosResumidosValidos","getEmpresasPorCertificado","getEmpresasParaVinculo","getCertificadoVencido","alterarResponsavelLegal","empresaId","responsavelLegal","deletarExcel","url","nomeArquivo","$map","map","arrayMethodHasSpeciesSupport","HAS_SPECIES_SUPPORT","getBuiltIn","fails","$stringify","re","low","hi","fix","match","offset","string","prev","charAt","next","test","charCodeAt","toString","FORCED","stat","it","replacer","space","result","apply","replace"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,oBAAoB,CAACE,IAAI,mBAAmBC,MAAM,CAAC,gBAAgBP,EAAIQ,aAAa,sBAAsBR,EAAIS,aAAa,kBAAkBT,EAAIU,eAAe,QAAUV,EAAIW,SAASC,YAAYZ,EAAIa,GAAG,CAAC,CAACC,IAAI,SAASC,GAAG,SAAST,GACrV,IAAIU,EAAQV,EAAIU,MAChB,MAAO,CAAyB,eAAvBA,EAAMC,OAAOC,MAAwBd,EAAG,OAAO,CAAyB,wBAAvBY,EAAMG,IAAIC,SAAoChB,EAAG,UAAU,CAACiB,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,oBAAoBC,UAAU,CAAC,OAAQ,KAAQC,YAAY,CAAC,mBAAmB,UAAU,MAAQ,WAAWlB,MAAM,CAAC,MAAQ,+GAA+G,CAACP,EAAI0B,GAAG,4BAAqD,iBAAvBV,EAAMG,IAAIC,SAA6BhB,EAAG,UAAU,CAACiB,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,oBAAoBC,UAAU,CAAC,OAAQ,KAAQjB,MAAM,CAAC,MAAQ,qJAAqJ,QAAU,kBAAkB,CAACP,EAAI0B,GAAG,0BAA0BtB,EAAG,OAAO,CAACJ,EAAI0B,GAAG,IAAI1B,EAAI2B,GAAGX,EAAMY,aAAaZ,EAAMC,OAAOC,QAAQ,QAAQ,GAAGlB,EAAI6B,QAAQ,CAACf,IAAI,QAAQC,GAAG,SAAST,GAC74B,IAAIU,EAAQV,EAAIU,MAChB,MAAO,CAACZ,EAAG,OAAO,CAAC0B,YAAY,cAAc,CAAC1B,EAAG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() {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',[_c('certificados-list',{ref:\"certificadosList\",attrs:{\"botoes-opcoes\":_vm.botoesOption,\"visualizacao-opcoes\":_vm.visualizacao,\"filtros-rapidos\":_vm.filtrosRapidos,\"filtros\":_vm.filtros},scopedSlots:_vm._u([{key:\"custom\",fn:function(ref){\nvar props = ref.props;\nreturn [(props.column.field === 'vencimento')?_c('span',[(props.row.situacao === 'CertificadoRevogado')?_c('b-badge',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticStyle:{\"background-color\":\"#c8a8e3\",\"color\":\"#64249c\"},attrs:{\"title\":\"O certificado encontra-se revogado. Faça a troca para continuar tendo acesso as funcionalidades do sistema\"}},[_vm._v(\" Certificado Revogado \")]):( props.row.situacao === 'CpfDiferente')?_c('b-badge',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],attrs:{\"title\":\"O CPF do responsável contido no certificado digital é diferente do CPF do responsável pela empresa nas bases de dados da Receita Federal do Brasil\",\"variant\":\"light-warning\"}},[_vm._v(\" Cadastro CPF sócio \")]):_c('span',[_vm._v(\" \"+_vm._s(props.formattedRow[props.column.field])+\" \")])],1):_vm._e()]}},{key:\"acoes\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('span',{staticClass:\"acoes-grid\"},[_c('b-btn',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"btn rounded-pill building-circle-exclamation p-0\",staticStyle:{\"margin-right\":\"0.6rem\",\"margin-left\":\"0.6rem\"},attrs:{\"id\":(\"botao-cadastro\" + (props.row.id)),\"variant\":\"none\",\"disabled\":props.row.situacao == 'CertificadoVencido' || props.row.situacao == 'CertificadoRevogado' ? true : false,\"title\":props.row.situacao == 'CertificadoVencido' || props.row.situacao == 'CertificadoRevogado' ? '' : 'Importar empresas vinculadas ao certificado'},on:{\"click\":function($event){return _vm.openModalVincularEmpresasCertificado(props.row)}}},[_c('font-awesome-icon',{staticClass:\"fa-light building-circle-exclamation text-primary\",attrs:{\"icon\":\"fa-building-circle-exclamation\"}})],1)],1),_c('cadeado',{attrs:{\"row\":props.row},on:{\"open-vinculo\":_vm.openModalEmpresasVinculadas}})]}}])},[_c('template',{slot:\"botoes-adicionais\"},[_c('b-btn',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"btn btn-outline-primary mr-1\",attrs:{\"variant\":\"none\",\"title\":\"O download será feito conforme os filtros atualmente selecionados\",\"size\":\"sm\",\"filtro\":_vm.filtroAtual.filtroBy},on:{\"click\":_vm.baixarEmExcel}},[_c('font-awesome-icon',{attrs:{\"icon\":\"fa-solid fa-file-export\"}}),_vm._v(\" Exportar \")],1)],1)],2),_c('template',{slot:\"conteudo\"},[_c('b-row',[_c('b-col',[_c('fieldset',{staticClass:\"font-weight-bold text-muted small\"},[_vm._v(\" Selecione as Permissões que deseja para este usuário \")])])],1),_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('hr',{staticClass:\"mx-0 mt-0 mb-2\",staticStyle:{\"border-top\":\"1px solid #a3a4a66b !important\"}})])],1)],1),_c('empresas-vinculadas',{ref:\"empresas-vinculadas\"})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default [{\r\n label: 'Razão social', field: 'nome', editable: true, evento: null,\r\n},\r\n{ label: 'Procuração', field: 'porProcuracao' },\r\n{ label: 'Status', field: 'status' },\r\n{ label: 'Vencimento', field: 'vencimento', type: 'custom' }] // type: cutom\r\n","\r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\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!./CertificadoView.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!./CertificadoView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CertificadoView.vue?vue&type=template&id=573bd34c&\"\nimport script from \"./CertificadoView.vue?vue&type=script&lang=js&\"\nexport * from \"./CertificadoView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CertificadoView.vue?vue&type=style&index=0&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","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\nvar USES_TO_LENGTH = arrayMethodUsesToLength(FIND);\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CertificadoView.vue?vue&type=style&index=0&lang=scss&\"","import axios from '@axios'\r\n\r\nconst PREFIX = '/certificados-digitais'\r\nconst getFormDataBody = (file, body) => {\r\n const formData = new window.FormData()\r\n if (file && file.file) {\r\n formData.append('file', file.file, file.fileName || file.name)\r\n }\r\n // eslint-disable-next-line no-param-reassign\r\n body.file = null\r\n formData.append('body', JSON.stringify(body))\r\n\r\n return formData\r\n}\r\n\r\nexport default {\r\n\r\n salvarCertificado(certificado) {\r\n if (certificado.arquivo && certificado.arquivo.file) {\r\n const body = getFormDataBody(certificado.arquivo, certificado)\r\n return axios.post(`${PREFIX}`, body)\r\n }\r\n return axios.post(`${PREFIX}`, certificado)\r\n },\r\n\r\n alterarCertificado(id, certificado) {\r\n if (certificado.arquivo && certificado.arquivo.file) {\r\n const body = getFormDataBody(certificado.arquivo, certificado)\r\n return axios.put(`${PREFIX}/${id}`, body)\r\n }\r\n return axios.put(`${PREFIX}/${id}`, certificado)\r\n },\r\n\r\n cadastrarEmpresaPorCertificado(id) {\r\n return axios.get(`${PREFIX}/${id}/cadastrarEmpresas`)\r\n },\r\n\r\n removerCertificado(ids) {\r\n if ((Array.isArray(ids) && ids.length > 1)) {\r\n return axios.delete(`${PREFIX}/lote?valores=[${ids}]`)\r\n }\r\n return axios.delete(`${PREFIX}/${ids}`)\r\n },\r\n\r\n getPaginado(page, pageSize, filtros) {\r\n return axios.post(`${PREFIX}/paged?pagina=${page}&tamanhoPagina=${pageSize}`, filtros)\r\n },\r\n\r\n getCertificado(id) {\r\n return axios.get(`${PREFIX}/${id}`)\r\n },\r\n\r\n getCertificadosResumidos(filtro) {\r\n return axios.post(`${PREFIX}/resumidos`, filtro)\r\n },\r\n\r\n getCertificadosResumidosValidos(filtro) {\r\n return axios.post(`${PREFIX}/resumidos/validos`, filtro)\r\n },\r\n\r\n getEmpresasPorCertificado(id, filtro) {\r\n return axios.post(`${PREFIX}/${id || 0}/empresas?`, filtro)\r\n },\r\n\r\n getEmpresasParaVinculo() {\r\n return axios.get(`${PREFIX}/empresas`)\r\n },\r\n\r\n getCertificadoVencido() {\r\n return axios.get(`${PREFIX}/certificado-vencido`)\r\n },\r\n\r\n alterarResponsavelLegal(empresaId, responsavelLegal) {\r\n return axios.put(`${PREFIX}/reponsavel-legal?empresaId=${empresaId}&responsavelLegal=${responsavelLegal}`)\r\n },\r\n baixarEmExcel(filtros) {\r\n return axios.post(`${PREFIX}/baixa-excel`, filtros)\r\n },\r\n\r\n deletarExcel(url, nomeArquivo) {\r\n axios.post(`${PREFIX}/deletar-excel?url=${url}&nomeArquivo=${nomeArquivo}`)\r\n },\r\n}\r\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n// FF49- issue\nvar USES_TO_LENGTH = arrayMethodUsesToLength('map');\n\n// `Array.prototype.map` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar fails = require('../internals/fails');\n\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar re = /[\\uD800-\\uDFFF]/g;\nvar low = /^[\\uD800-\\uDBFF]$/;\nvar hi = /^[\\uDC00-\\uDFFF]$/;\n\nvar fix = function (match, offset, string) {\n var prev = string.charAt(offset - 1);\n var next = string.charAt(offset + 1);\n if ((low.test(match) && !hi.test(next)) || (hi.test(match) && !low.test(prev))) {\n return '\\\\u' + match.charCodeAt(0).toString(16);\n } return match;\n};\n\nvar FORCED = fails(function () {\n return $stringify('\\uDF06\\uD834') !== '\"\\\\udf06\\\\ud834\"'\n || $stringify('\\uDEAD') !== '\"\\\\udead\"';\n});\n\nif ($stringify) {\n // https://github.com/tc39/proposal-well-formed-stringify\n $({ target: 'JSON', stat: true, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars\n stringify: function stringify(it, replacer, space) {\n var result = $stringify.apply(null, arguments);\n return typeof result == 'string' ? result.replace(re, fix) : result;\n }\n });\n}\n"],"sourceRoot":""}