{"version":3,"sources":["webpack:///./src/views/Admin/Reports/Index.vue?215e","webpack:///./src/views/Admin/Reports/TableMixin.js","webpack:///./src/views/Admin/Reports/IndexMixin.js","webpack:///src/views/Admin/Reports/Index.vue","webpack:///./src/views/Admin/Reports/Index.vue?0b88","webpack:///./src/views/Admin/Reports/Index.vue","webpack:///./src/views/Admin/Reports/Index.vue?aa64"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","loading","staticClass","selected","options","scopedSlots","_u","key","fn","_v","proxy","model","value","callback","$$v","expression","pageOptions","perPage","sortOptions","sortBy","sortDesc","domProps","filter","on","$event","currentPage","items","fields","sortDirection","filterOn","onFiltered","totalRows","_e","staticRenderFns","components","BFormGroup","BFormSelect","BPagination","BInputGroup","BFormInput","BInputGroupAppend","data","infoModal","id","title","content","computed","f","sortable","map","text","label","methods","filteredItems","length","info","item","index","button","JSON","stringify","$root","$emit","resetInfoModal","mounted","getOptions","watch","val","getReports","url","$http","get","then","res","finally","channel","BOverlay","BRow","BCol","BCard","BCardBody","BCardTitle","BTable","BFormSelectOption","BButton","mixins","TableMixin","IndexMixin","component"],"mappings":"gJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACA,EAAG,YAAY,CAACE,MAAM,CAAC,GAAK,qBAAqB,KAAON,EAAIO,QAAQ,QAAU,cAAc,QAAU,IAAI,KAAO,MAAM,QAAU,OAAO,CAACH,EAAG,gBAAgB,CAACI,YAAY,OAAOF,MAAM,CAAC,GAAK,mBAAmB,MAAyB,OAAjBN,EAAIS,SAAiC,QAAUT,EAAIU,SAASC,YAAYX,EAAIY,GAAG,CAAC,CAACC,IAAI,QAAQC,GAAG,WAAW,MAAO,CAACV,EAAG,uBAAuB,CAACE,MAAM,CAAC,MAAQ,OAAO,CAACN,EAAIe,GAAG,sDAAsDC,OAAM,KAAQC,MAAM,CAACC,MAAO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Content":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('b-overlay',{attrs:{\"id\":\"overlay-background\",\"show\":_vm.loading,\"variant\":\"transparent\",\"opacity\":\"1\",\"blur\":\"2px\",\"rounded\":\"sm\"}},[_c('b-form-select',{staticClass:\"mb-1\",attrs:{\"id\":\"service-api-name\",\"state\":_vm.selected === null ? false : true,\"options\":_vm.options},scopedSlots:_vm._u([{key:\"first\",fn:function(){return [_c('b-form-select-option',{attrs:{\"value\":null}},[_vm._v(\"Por favor, um arquivo de log para inspecionar!\")])]},proxy:true}]),model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}}),(_vm.selected !== null)?_c('b-card',[_c('b-card-body',[_c('b-card-title',[_vm._v(\" Logs \")])],1),_c('b-row',[_c('b-col',{staticClass:\"my-1\",attrs:{\"md\":\"3\",\"sm\":\"4\"}},[_c('b-form-group',{staticClass:\"mb-0\"},[_c('label',{staticClass:\"d-inline-block text-sm-left mr-50\"},[_vm._v(\"Por Página\")]),_c('b-form-select',{staticClass:\"w-25\",attrs:{\"id\":\"perPageSelect\",\"size\":\"sm\",\"options\":_vm.pageOptions},model:{value:(_vm.perPage),callback:function ($$v) {_vm.perPage=$$v},expression:\"perPage\"}})],1)],1),_c('b-col',{staticClass:\"my-1\",attrs:{\"md\":\"5\",\"sm\":\"8\"}},[_c('b-form-group',{staticClass:\"mb-0\",attrs:{\"label\":\"Ordenar Por\",\"label-cols-sm\":\"3\",\"label-align-sm\":\"right\",\"label-size\":\"sm\",\"label-for\":\"sortBySelect\"}},[_c('b-input-group',{attrs:{\"size\":\"sm\"}},[_c('b-form-select',{staticClass:\"w-75\",attrs:{\"id\":\"sortBySelect\",\"options\":_vm.sortOptions},scopedSlots:_vm._u([{key:\"first\",fn:function(){return [_c('option',{attrs:{\"value\":\"\"}},[_vm._v(\" -- Nenhum -- \")])]},proxy:true}],null,false,213591873),model:{value:(_vm.sortBy),callback:function ($$v) {_vm.sortBy=$$v},expression:\"sortBy\"}}),_c('b-form-select',{staticClass:\"w-25\",attrs:{\"size\":\"sm\",\"disabled\":!_vm.sortBy},model:{value:(_vm.sortDesc),callback:function ($$v) {_vm.sortDesc=$$v},expression:\"sortDesc\"}},[_c('option',{domProps:{\"value\":false}},[_vm._v(\" Asc \")]),_c('option',{domProps:{\"value\":true}},[_vm._v(\" Desc \")])])],1)],1)],1),_c('b-col',{staticClass:\"my-1\",attrs:{\"md\":\"4\"}},[_c('b-form-group',{staticClass:\"mb-0\",attrs:{\"label\":\"Buscar\",\"label-cols-sm\":\"3\",\"label-align-sm\":\"right\",\"label-size\":\"sm\",\"label-for\":\"filterInput\"}},[_c('b-input-group',{attrs:{\"size\":\"sm\"}},[_c('b-form-input',{attrs:{\"id\":\"filterInput\",\"type\":\"search\",\"placeholder\":\"Escreva o que deseja pesquisar.\"},model:{value:(_vm.filter),callback:function ($$v) {_vm.filter=$$v},expression:\"filter\"}}),_c('b-input-group-append',[_c('b-button',{attrs:{\"disabled\":!_vm.filter},on:{\"click\":function($event){_vm.filter = ''}}},[_vm._v(\" Limpar \")])],1)],1)],1)],1),_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('b-table',{attrs:{\"striped\":\"\",\"hover\":\"\",\"responsive\":\"\",\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage,\"items\":_vm.items,\"fields\":_vm.fields,\"sort-by\":_vm.sortBy,\"sort-desc\":_vm.sortDesc,\"sort-direction\":_vm.sortDirection,\"filter\":_vm.filter,\"filter-included-fields\":_vm.filterOn},on:{\"update:sortBy\":function($event){_vm.sortBy=$event},\"update:sort-by\":function($event){_vm.sortBy=$event},\"update:sortDesc\":function($event){_vm.sortDesc=$event},\"update:sort-desc\":function($event){_vm.sortDesc=$event},\"filtered\":_vm.onFiltered}},[_vm._v(\" // \")])],1),_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('b-pagination',{staticClass:\"my-0\",attrs:{\"total-rows\":_vm.totalRows,\"per-page\":_vm.perPage,\"align\":\"center\",\"size\":\"sm\"},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)],1)],1):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import {\n BFormGroup,\n BFormSelect,\n BPagination,\n BInputGroup,\n BFormInput,\n BInputGroupAppend\n} from 'bootstrap-vue'\n\nexport default {\n components: {\n BFormGroup,\n BFormSelect,\n BPagination,\n BInputGroup,\n BFormInput,\n BInputGroupAppend\n },\n data: () => ({\n items: [],\n perPage: 10,\n pageOptions: [3, 5, 10, 25, 50, 100],\n totalRows: 1,\n currentPage: 1,\n sortBy: '',\n sortDesc: false,\n sortDirection: 'asc',\n filter: null,\n filterOn: [],\n infoModal: {\n id: 'info-modal',\n title: '',\n content: ''\n }\n }),\n computed: {\n sortOptions () {\n // Create an options list from our fields\n return this.fields\n .filter(f => f.sortable)\n .map(f => ({ text: f.label, value: f.key }))\n }\n },\n methods: {\n onFiltered (filteredItems) {\n // Trigger pagination to update the number of buttons/pages due to filtering\n this.totalRows = filteredItems.length\n this.currentPage = 1\n },\n info (item, index, button) {\n this.infoModal.title = `Row index: ${index}`\n this.infoModal.content = JSON.stringify(item, null, 2)\n this.$root.$emit('bv::show::modal', this.infoModal.id, button)\n },\n resetInfoModal () {\n this.infoModal.title = ''\n this.infoModal.content = ''\n }\n }\n}\n","export default {\n data: () => ({\n loading: true,\n options: [],\n selected: null\n }),\n async mounted () {\n await this.getOptions()\n },\n watch: {\n async selected (val) {\n if (val === null) return\n\n await this.getReports(val)\n }\n },\n methods: {\n async getOptions () {\n const url = '/admin/reports/options'\n\n await this.$http.get(url)\n .then(res => {\n this.options = res.data\n })\n .finally(() => {\n this.loading = false\n })\n },\n async getReports (channel) {\n this.loading = true\n\n const url = `/admin/reports/content/${channel}`\n\n await this.$http\n .get(url)\n .then(res => {\n this.items = res.data\n })\n .finally(() => {\n this.loading = false\n this.totalRows = this.items.length\n })\n }\n }\n}\n","\n \n \n \n \n Por favor, um arquivo de log para inspecionar!\n \n \n\n \n \n \n Logs\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Limpar\n \n \n \n \n \n\n \n \n //\n \n \n\n \n \n \n \n \n \n \n\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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.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!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=d3defa62&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.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","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.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&lang=scss&\""],"sourceRoot":""}