{"version":3,"sources":["webpack:///../../../src/components/VDataTable/VSimpleTable.ts","webpack:///./src/views/backoffice/administrator/users/collectors/routesToCollect.vue?77a0","webpack:///src/views/backoffice/administrator/users/collectors/routesToCollect.vue","webpack:///./src/views/backoffice/administrator/users/collectors/routesToCollect.vue?a004","webpack:///./src/views/backoffice/administrator/users/collectors/routesToCollect.vue"],"names":["name","props","dense","fixedHeader","height","Number","String","computed","classes","this","themeClasses","methods","genWrapper","$slots","wrapper","$createElement","staticClass","style","render","h","class","_vm","_h","_c","_self","attrs","$vuetify","breakpoint","smAndDown","model","value","callback","$$v","dialog","expression","staticStyle","_v","_s","$route","meta","nameDrawer","on","$event","closeDialog","$t","$localStorage","getItem","nome_usuario","login","Date","toLocaleString","query","name_collector","params","id_collector","$printReportExtract","scopedSlots","_u","key","fn","_l","item","id","id_agente","nome_agente","nome_rota","saldo","proxy","directives","rawName","_e","pay_agents","receive_agents","total","staticRenderFns","data","mounted","routesToCollect","$store","state","showDialog","watch","val","$router","go","buildReport","routes","forEach","sum","decimalAdjustment","Math","round","num","commit","component","VAlert","VBtn","VCard","VCardText","VCol","VDialog","VIcon","VProgressCircular","VRow","VSimpleTable","VSpacer","VToolbar","VToolbarTitle"],"mappings":"4LAOe,qCAAyB,CACtCA,KADsC,iBAGtCC,MAAO,CACLC,MADK,QAELC,YAFK,QAGLC,OAAQ,CAACC,OAAQC,SAGnBC,SAAU,CACRC,QADQ,WAEN,uBACE,sBAAuBC,KADlB,MAEL,+BAAgCA,KAAF,SAAkBA,KAF3C,YAGL,6BAA8BA,KAHzB,aAIFA,KAAKC,gBAKdC,QAAS,CACPC,WADO,WAEL,OAAOH,KAAKI,OAAOC,SAAWL,KAAKM,eAAe,MAAO,CACvDC,YADuD,wBAEvDC,MAAO,CACLb,OAAQ,eAAcK,KAAD,UAEtB,CACDA,KAAKM,eAAe,QAASN,KAAKI,OANpC,aAWJK,OAjCsC,SAiChC,GACJ,OAAOC,EAAE,MAAO,CACdH,YADc,eAEdI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,CAEP,gBAFJ,WAEA,uKACA,cACA,WAEA,GACA,6BALA,SAOA,gBACA,2CACA,GATA,OAOA,EAPA,OAWA,YACA,wBAEA,YACA,YAGA,cAlBA,8CAsBI0E,YAxBJ,SAwBA,GAEM5E,KAAK6E,OAASX,EAGd,IAAN,GACQJ,WAAY,EACZC,eAAgB,GAGlBG,EAAKY,SAAQ,SAAnB,GACY1B,EAAKK,MAAQ,IACfsB,EAAIhB,gBAAkBnE,OAAOwD,EAAKK,QAEhCL,EAAKK,MAAQ,IACfsB,EAAIjB,YAAclE,OAAOwD,EAAKK,WAIlCzD,KAAK8D,WAAa9D,KAAKgF,kBAAkBD,EAAIjB,YAC7C9D,KAAK+D,eAAiB/D,KAAKgF,kBAAkBD,EAAIhB,gBACjD/D,KAAKgE,MAAQhE,KAAKgF,kBAAkBD,EAAIhB,eAAiBgB,EAAIjB,aAI/DkB,kBAAmB,SAAvB,GACM,QAASC,KAAKC,OAAOC,EAAM,OAAS,QAItCjD,YAtDJ,WAuDMlC,KAAKqE,OAAOe,OAAO,cAAc,MCvN8W,I,6LCOjZC,EAAY,eACd,EACA5E,EACAwD,GACA,EACA,KACA,KACA,MAIa,aAAAoB,EAAiB,QAiBhC,IAAkBA,EAAW,CAACC,SAAA,KAAOC,OAAA,KAAKC,QAAA,KAAMC,UAAA,OAAUC,OAAA,KAAKC,UAAA,KAAQC,QAAA,KAAMC,oBAAA,KAAkBC,OAAA,KAAKC,eAAA,KAAaC,UAAA,KAAQC,WAAA,KAASC,cAAA,U","file":"js/chunk-d4c77388.677087c9.js","sourcesContent":["import './VSimpleTable.sass'\n\nimport { convertToUnit } from '../../util/helpers'\nimport Themeable from '../../mixins/themeable'\nimport mixins from '../../util/mixins'\nimport { VNode } from 'vue'\n\nexport default mixins(Themeable).extend({\n name: 'v-simple-table',\n\n props: {\n dense: Boolean,\n fixedHeader: Boolean,\n height: [Number, String],\n },\n\n computed: {\n classes (): Record {\n return {\n 'v-data-table--dense': this.dense,\n 'v-data-table--fixed-height': !!this.height && !this.fixedHeader,\n 'v-data-table--fixed-header': this.fixedHeader,\n ...this.themeClasses,\n }\n },\n },\n\n methods: {\n genWrapper () {\n return this.$slots.wrapper || this.$createElement('div', {\n staticClass: 'v-data-table__wrapper',\n style: {\n height: convertToUnit(this.height),\n },\n }, [\n this.$createElement('table', this.$slots.default),\n ])\n },\n },\n\n render (h): VNode {\n return h('div', {\n staticClass: 'v-data-table',\n class: this.classes,\n }, [\n this.$slots.top,\n this.genWrapper(),\n this.$slots.bottom,\n ])\n },\n})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"600\",\"persistent\":\"\",\"scrollable\":\"\",\"fullscreen\":_vm.$vuetify.breakpoint.smAndDown},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',[_c('v-toolbar',{staticStyle:{\"max-height\":\"48px\"},attrs:{\"dense\":\"\",\"elevation\":\"0\"}},[_c('v-toolbar-title',[_vm._v(_vm._s(_vm.$route.meta.nameDrawer))]),_c('v-spacer'),_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.closeDialog()}}},[_c('v-icon',[_vm._v(\"mdi-close\")])],1)],1),_c('v-card-text',{staticClass:\"pa-3\",staticStyle:{\"height\":\"auto\"},attrs:{\"id\":\"print-report-extract\"}},[_c('div',[_c('div',{staticClass:\"caption d-print-block\"},[_c('div',{staticClass:\"d-none d-print-block\"},[_c('div',{staticClass:\"overline font-weight-bold\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"routesToCollect\"))+\" \")]),_c('div',[_vm._v(\" \"+_vm._s(_vm.$t(\"consultedBy\"))+\": \"+_vm._s(_vm.$localStorage.getItem(\"user_data\").nome_usuario)+\" \")]),_c('div',[_vm._v(\" \"+_vm._s(_vm.$t(\"login\"))+\": \"+_vm._s(_vm.$localStorage.getItem(\"user_data\").login)+\" \")]),_c('div',[_vm._v(\" \"+_vm._s(_vm.$t(\"dayAndTimeOfPrinting\"))+\": \"+_vm._s(new Date().toLocaleString())+\" \")])]),_c('div',[_c('div',[_vm._v(\" \"+_vm._s(_vm.$t(\"collector\"))+\": \"+_vm._s(_vm.$route.query.name_collector)+\" | Id: \"+_vm._s(_vm.$route.params.id_collector)+\" \")])])]),_c('v-card',[_c('div',{staticClass:\"py-0\"},[_c('v-row',{staticClass:\"align-center\"},[_c('v-col',{attrs:{\"cols\":\"'12\"}},[_c('v-btn',{staticClass:\"white black--text d-print-none\",attrs:{\"small\":\"\"},on:{\"click\":function($event){return _vm.$printReportExtract()}}},[_c('v-icon',{attrs:{\"small\":\"\",\"left\":\"\"}},[_vm._v(\"mdi-printer\")]),_vm._v(\" \"+_vm._s(_vm.$t(\"print\"))+\" \")],1)],1)],1)],1),_c('v-simple-table',{scopedSlots:_vm._u([{key:\"default\",fn:function(){return [_c('thead',[_c('tr',[_c('th',[_vm._v(\"Id\")]),_c('th',[_vm._v(_vm._s(_vm.$t(\"agent\")))]),_c('th',[_vm._v(_vm._s(_vm.$t(\"route\")))]),_c('th',{staticClass:\"text-right\"},[_vm._v(_vm._s(_vm.$t(\"payCollect\")))])])]),_c('tbody',_vm._l((_vm.routes),function(item){return _c('tr',{key:item.id},[_c('td',[_vm._v(_vm._s(item.id_agente))]),_c('td',[_vm._v(_vm._s(item.nome_agente))]),_c('td',[_vm._v(_vm._s(item.nome_rota))]),_c('td',{staticClass:\"text-right\",class:item.saldo < 0 ? 'red--text' : 'green--text'},[_vm._v(\" \"+_vm._s(item.saldo)+\" \")])])}),0)]},proxy:true}])}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.progress),expression:\"progress\"}],staticClass:\"text-center pa-4\"},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\"}})],1),_c('v-alert',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.alert),expression:\"alert\"}],staticClass:\"ma-4\",attrs:{\"type\":\"warning\",\"dense\":\"\",\"outlined\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"noRouteToCollect\"))+\" \")])],1)],1),_c('v-row',[(_vm.$vuetify.breakpoint.smAndUp)?_c('v-col',{attrs:{\"sm\":\"4\",\"md\":\"4\"}}):_vm._e(),_c('v-col',{attrs:{\"cols\":\"12\",\"xs\":\"12\",\"sm\":\"8\",\"md\":\"8\"}},[_c('v-card',{staticClass:\"pa-3\",attrs:{\"elevation\":\"0\"}},[_c('div',{staticClass:\"subtitle-1 pb-1\"},[_vm._v(_vm._s(_vm.$t(\"summary\")))]),_c('v-simple-table',{scopedSlots:_vm._u([{key:\"default\",fn:function(){return [_c('tbody',[_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"payable\")))]),_c('td',{staticClass:\"text-right red--text\"},[_vm._v(_vm._s(_vm.pay_agents))])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"toCollect\")))]),_c('td',{staticClass:\"text-right green--text\"},[_vm._v(\" \"+_vm._s(_vm.receive_agents)+\" \")])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"total\")))]),_c('td',{staticClass:\"text-right\",class:_vm.total < 0 ? 'red--text' : 'green--text'},[_vm._v(\" \"+_vm._s(_vm.total)+\" \")])])])]},proxy:true}])})],1)],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./routesToCollect.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!./routesToCollect.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./routesToCollect.vue?vue&type=template&id=1235ccc8&\"\nimport script from \"./routesToCollect.vue?vue&type=script&lang=js&\"\nexport * from \"./routesToCollect.vue?vue&type=script&lang=js&\"\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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSimpleTable } from 'vuetify/lib/components/VDataTable';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VAlert,VBtn,VCard,VCardText,VCol,VDialog,VIcon,VProgressCircular,VRow,VSimpleTable,VSpacer,VToolbar,VToolbarTitle})\n"],"sourceRoot":""}