{"version":3,"sources":["webpack:///./src/views/Charts/Agency/LatestOrders/attrs/methods.js","webpack:///./src/views/Charts/Agency/SalesReport/index.js","webpack:///./src/views/Charts/Agency/SalesReport/Index.vue?adff","webpack:///./src/views/Charts/Agency/TopReservedTrips/attrs/methods.js","webpack:///./src/views/Charts/Agency/Reservations/Index.vue","webpack:///./src/views/Charts/Agency/LatestOrders/index.js","webpack:///./src/views/Charts/Agency/TopReservedTrips/attrs/mounted.js","webpack:///./src/views/Charts/Agency/LatestReservations/attrs/methods.js","webpack:///./src/views/Charts/Agency/Reservations/index.js","webpack:///./src/views/Charts/Agency/Orders/Index.vue?eec4","webpack:///./src/views/Charts/Agency/SalesReport","webpack:///./src/views/Charts/Agency/TopSellingTrips/index.js","webpack:///./src/views/Dashboard","webpack:///./src/views/Charts/Agency/TopReservedTrips/Index.vue?7540","webpack:///./src/views/Dashboard/Index.vue?f2cc","webpack:///./src/views/Charts/Agency/TopSellingTrips/Index.vue","webpack:///./src/views/Charts/Agency/LatestReservations/attrs/mounted.js","webpack:///./src/views/Charts/Agency/TopSellingTrips/attrs/data.js","webpack:///./src/views/Charts/Agency/TopReservedTrips","webpack:///./src/views/Dashboard/attrs/created.js","webpack:///./src/views/Charts/Agency/Reservations/attrs/data.js","webpack:///./src/views/Charts/Agency/LatestReservations/Index.vue?bbfd","webpack:///./src/views/Dashboard/index.js","webpack:///./src/views/Dashboard/Index.vue?4783","webpack:///./src/views/Charts/Agency/Reservations/attrs/methods.js","webpack:///./src/views/Charts/Agency/Orders/Index.vue?4abb","webpack:///./src/views/Charts/Agency/LatestOrders/Index.vue","webpack:///./src/views/Charts/Agency/Reservations/Index.vue?43c1","webpack:///./src/views/Charts/Agency/Orders/attrs/methods.js","webpack:///./src/views/Charts/Agency/SalesReport/Index.vue","webpack:///./src/views/Charts/Agency/LatestReservations/index.js","webpack:///./src/views/Charts/Agency/TopSellingTrips/attrs/methods.js","webpack:///./src/views/Charts/Agency/TopReservedTrips/Index.vue","webpack:///./src/views/Charts/Agency/LatestOrders/attrs/data.js","webpack:///./src/views/Charts/Agency/Reservations/attrs/mounted.js","webpack:///./src/views/Charts/Agency/LatestReservations/attrs/data.js","webpack:///./src/views/Charts/Agency/SalesReport/attrs/methods.js","webpack:///./src/views/Charts/Agency/LatestReservations/Index.vue?6050","webpack:///./src/helpers/orderStatuses.js","webpack:///./src/views/Charts/Agency/TopReservedTrips/index.js","webpack:///./src/views/Dashboard/attrs/computed.js","webpack:///./src/views/Charts/Agency/LatestOrders/Index.vue?3eab","webpack:///./src/views/Charts/Agency/SalesReport/attrs/mounted.js","webpack:///./src/views/Dashboard/attrs/methods.js","webpack:///./src/views/Charts/Agency/TopSellingTrips/Index.vue?42f5","webpack:///./src/views/Charts/Agency/Orders/attrs/mounted.js","webpack:///./src/views/Charts/Agency/TopSellingTrips/Index.vue?637f","webpack:///./src/views/Charts/Agency/SalesReport/Index.vue?6a00","webpack:///./src/views/Charts/Agency/TopSellingTrips","webpack:///./src/views/Charts/Agency/TopSellingTrips/attrs/mounted.js","webpack:///./src/views/Charts/Agency/Reservations/Index.vue?081b","webpack:///./src/views/Charts/Agency/LatestOrders/attrs/mounted.js","webpack:///./src/views/Charts/Agency/SalesReport/attrs/data.js","webpack:///./src/views/Charts/Agency/LatestReservations/Index.vue","webpack:///./src/views/Dashboard/attrs/data.js","webpack:///./src/views/Charts/Agency/TopReservedTrips/attrs/data.js","webpack:///./src/views/Charts/Agency/Orders","webpack:///./src/views/Charts/Agency/Orders/Index.vue","webpack:///./src/views/Charts/Agency/Reservations","webpack:///./src/views/Charts/Agency/TopReservedTrips/Index.vue?99d8","webpack:///./src/views/Dashboard/Index.vue","webpack:///./src/views/Charts/Agency/Orders/attrs/data.js","webpack:///./src/views/Charts/Agency/LatestReservations","webpack:///./src/views/Charts/Agency/LatestOrders/Index.vue?d885","webpack:///./src/views/Dashboard/attrs/mounted.js","webpack:///./src/views/Charts/Agency/Orders/index.js","webpack:///./src/views/Charts/Agency/LatestOrders"],"names":["loadChart","self","this","api","getApiClient","$store","commit","get","params","futureTrips","itemsPerPage","status","then","result","data","catch","error","console","log","finally","name","methods","mounted","component","render","_vm","_h","$createElement","_c","_self","_l","post","attrs","_v","_s","title","staticClass","domProps","body","isSellingAgency","_e","staticRenderFns","role","state","user","roles","$router","push","chartData","created","computed","components","AgencyOrdersChart","TopSellingTrips","LatestOrders","LatestReservations","AgencyReservationsChart","TopReservedTrips","SalesReport","staticStyle","map","item","total","backgroundColor","label","month","maintainAspectRatio","scales","yAxes","ticks","stepSize","fields","key","orderStatuses","loadSalesData","salesData","noResults","noItems","scopedSlots","_u","fn","ref","_f","date","trip","place","reservationStatus","durationText","on","$event","preventDefault","1","2","3","4","5","6","7","8","9","10","11","isAgency","userRole","agency","cart","timestamp","eventTitle","loadPosts","posts","updatePresence","id","orders","description","includes"],"mappings":"mHAAA,uBAEe,cACXA,UAAW,WACP,IAAMC,EAAOC,KACTC,EAAMC,qBAAaH,EAAKI,QAE5BJ,EAAKI,OAAOC,OAAO,gBAEnBH,EAAII,IAAI,iBAAkB,CACtBC,OAAQ,CACJC,aAAa,EACbC,aAAc,GACdC,OAAQ,CAAC,EAAG,MAGfC,MAAK,SAAAC,GACFZ,EAAKa,KAAOD,EAAOC,KAAK,mBAE3BC,OAAM,SAAAC,GACHC,QAAQC,IAAIF,MAEfG,SAAQ,WACLlB,EAAKI,OAAOC,OAAO,qB,oCCvBnC,+CAIe,cACbc,KAAM,cACNN,kBACAO,qBACAC,uB,oCCRF,yG,oCCAA,uBAEe,cACXtB,UAAW,WACP,IAAMC,EAAOC,KACTC,EAAMC,qBAAaH,EAAKI,QAE5BJ,EAAKI,OAAOC,OAAO,gBAEnBH,EAAII,IAAI,oCACHK,MAAK,SAAAC,GACFZ,EAAKa,KAAOD,EAAOC,QAEtBC,OAAM,SAAAC,GACHC,QAAQC,IAAIF,MAEfG,SAAQ,WACLlB,EAAKI,OAAOC,OAAO,qB,oCCjBnC,oIAOIiB,EAAY,qBACd,aACA,YAC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GAAIL,EAAQ,MAAE,SAAS2D,GAAM,OAAOxD,EAAG,iBAAiB,CAAC4C,IAAIY,EAAK2B,IAAI,CAACtF,EAAIQ,GAAG,IAAIR,EAAIS,GAAGkD,EAAKuB,YAAY,KAAK/E,EAAG,SAAS,CAACI,MAAM,CAAC,MAAQ,UAAU,MAAQ,SAAS,CAACP,EAAIQ,GAAGR,EAAIS,GAAGkD,EAAKtB,WAAW,MAAK,IAAI,GAAGlC,EAAG,cAAc,CAACA,EAAG,UAAU,CAACI,MAAM,CAAC,GAAK,cAAc,MAAQ,YAAY,CAACP,EAAIQ,GAAG,gBAAgB,IAAI,IACvgBQ,EAAkB,I,kCCDtB,oIAOIlB,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,KACA,MAIa,aAAAA,E,2CClBf,OAAe,wBACX,MAAO,CACHyB,UAAW,M,kCCFnB,wGAA8L,2B,kCCA9L,yG,kCCAA,OAAe,wBACb,IAAM/C,EAAOC,KACXwC,EAAOzC,EAAKI,OAAOsC,MAAMC,KAAKF,KAEnB,cAATA,GACFzC,EAAK6C,QAAQC,KAAK,UAGhB9C,EAAKI,OAAOsC,MAAMC,KAAKC,MAAMqE,SAAS,eACxCjH,EAAK6C,QAAQC,KAAK,oBAGpB9C,EAAK2G,YACL3G,EAAK6G,mB,kCCbP,+CAIe,cACX1F,KAAM,oBACNN,kBACAO,qBACAC,uB,kCCRJ,wGAA8L","file":"js/chunk-6c7a83aa.ea7078d9.js","sourcesContent":["import getApiClient from '../../../../../plugins/api'\n\nexport default {\n loadChart: function() {\n const self = this,\n api = getApiClient(self.$store)\n\n self.$store.commit('startLoading')\n\n api.get('/agency/orders', {\n params: {\n futureTrips: false,\n itemsPerPage: 10,\n status: [3, 8]\n }\n })\n .then(result => {\n self.data = result.data['hydra:member']\n })\n .catch(error => {\n console.log(error)\n })\n .finally(() => {\n self.$store.commit('stopLoading')\n })\n }\n}\n","import data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nexport default {\n name: 'SalesReport',\n data,\n methods,\n mounted\n}\n","export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"4727515f-vue-loader-template\\\"}!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=template&id=132d25fa&\"","import getApiClient from '../../../../../plugins/api'\n\nexport default {\n loadChart: function() {\n const self = this,\n api = getApiClient(self.$store)\n\n self.$store.commit('startLoading')\n\n api.get('/agency/trips/top_reserved_chart')\n .then(result => {\n self.data = result.data\n })\n .catch(error => {\n console.log(error)\n })\n .finally(() => {\n self.$store.commit('stopLoading')\n })\n }\n}\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=4ce3b98b&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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","import data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nexport default {\n name: 'LatestOrders',\n data,\n methods,\n mounted\n}\n","export default function () {\n this.loadChart()\n}\n","import getApiClient from '../../../../../plugins/api'\n\nexport default {\n loadChart: function() {\n const self = this,\n api = getApiClient(self.$store)\n\n self.$store.commit('startLoading')\n\n api.get('/reservations', {\n params: {\n itemsPerPage: 10\n }\n })\n .then(result => {\n self.data = result.data['hydra:member']\n })\n .catch(error => {\n console.log(error)\n })\n .finally(() => {\n self.$store.commit('stopLoading')\n })\n }\n}\n","import data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nexport default {\n name: 'AgencyReservationsChart',\n data,\n methods,\n mounted\n}\n","export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"4727515f-vue-loader-template\\\"}!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=template&id=134d5d24&\"","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"","import data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nexport default {\n name: 'TopSellingTrips',\n data,\n methods,\n mounted\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"","export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"4727515f-vue-loader-template\\\"}!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=template&id=60458e5d&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.isAgency)?_c('div',[_c('CRow',_vm._l((_vm.posts),function(post){return _c('CCol',{attrs:{\"col\":\"12\"}},[_c('CCard',[_c('CCardHeader',{attrs:{\"color\":\"success\"}},[_vm._v(_vm._s(post.title))]),_c('CCardBody',[_c('div',{staticClass:\"post-content\",domProps:{\"innerHTML\":_vm._s(post.body)}})])],1)],1)}),1),_c('CRow',[_c('CCol',{attrs:{\"sm\":12,\"md\":6}},[(!_vm.isSellingAgency)?_c('AgencyReservationsChart'):_vm._e(),(_vm.isSellingAgency)?_c('AgencyOrdersChart'):_vm._e()],1),_c('CCol',{attrs:{\"sm\":12,\"md\":6}},[(_vm.isSellingAgency)?_c('TopSellingTrips'):_vm._e(),(!_vm.isSellingAgency)?_c('TopReservedTrips'):_vm._e()],1)],1),_c('CRow',[_c('CCol',{attrs:{\"sm\":12}},[(_vm.isSellingAgency)?_c('SalesReport'):_vm._e()],1)],1),_c('CRow',[_c('CCol',{attrs:{\"sm\":12}},[(_vm.isSellingAgency)?_c('LatestOrders'):_vm._e(),(!_vm.isSellingAgency)?_c('LatestReservations'):_vm._e()],1)],1)],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=5ebf8616&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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","export default function () {\n this.loadChart()\n}\n","export default function () {\n return {\n data: []\n }\n}","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"","export default function () {\n const role = this.$store.state.user.roles[0] || null\n\n if (role === 'ROLE_CUSTOMER') {\n this.$router.push('/orders')\n }\n}\n","export default function () {\n return {\n chartData: []\n }\n}","export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"4727515f-vue-loader-template\\\"}!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=template&id=7c73048c&\"","import created from './attrs/created'\nimport computed from './attrs/computed'\nimport data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nimport AgencyOrdersChart from './../Charts/Agency/Orders/Index'\nimport TopSellingTrips from './../Charts/Agency/TopSellingTrips/Index'\nimport LatestOrders from './../Charts/Agency/LatestOrders/Index'\nimport LatestReservations from './../Charts/Agency/LatestReservations/Index'\nimport AgencyReservationsChart from './../Charts/Agency/Reservations/Index'\nimport TopReservedTrips from './../Charts/Agency/TopReservedTrips/Index'\nimport SalesReport from './../Charts/Agency/SalesReport/Index'\n\nexport default {\n name: 'Dashboard',\n created,\n computed,\n data,\n methods,\n mounted,\n components: {\n AgencyOrdersChart,\n TopSellingTrips,\n LatestOrders,\n LatestReservations,\n AgencyReservationsChart,\n TopReservedTrips,\n SalesReport\n }\n}\n","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"4727515f-vue-loader-template\\\"}!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=template&id=6da1ffd8&\"","import getApiClient from '../../../../../plugins/api'\n\nexport default {\n loadChart: function() {\n const self = this,\n api = getApiClient(self.$store)\n\n self.$store.commit('startLoading')\n\n api.get('/agency/reservations/chart')\n .then(result => {\n self.chartData = result.data\n })\n .catch(error => {\n console.log(error)\n })\n .finally(() => {\n self.$store.commit('stopLoading')\n })\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CCard',[_c('CCardHeader',[_vm._v(\"Pedidos nos últimos 6 meses\")]),_c('CCardBody',[(_vm.chartData)?_c('CChartLine',{staticStyle:{\"height\":\"300px\"},attrs:{\"datasets\":[\n {\n data: _vm.chartData.map(function (item) {return item.total}),\n backgroundColor: '#5373E5',\n label: 'Vendas concretizadas',\n }\n],\"labels\":_vm.chartData.map(function (item) {return item.month}),\"options\":{\n maintainAspectRatio: false,\n scales: {\n yAxes: [{\n ticks: {\n stepSize: 1\n }\n }]\n }\n }}}):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=2dda7909&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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","export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"4727515f-vue-loader-template\\\"}!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=template&id=4ce3b98b&\"","import getApiClient from '../../../../../plugins/api'\n\nexport default {\n loadChart: function() {\n const self = this,\n api = getApiClient(self.$store)\n\n self.$store.commit('startLoading')\n\n api.get('/agency/orders/chart')\n .then(result => {\n self.chartData = result.data\n })\n .catch(error => {\n console.log(error)\n })\n .finally(() => {\n self.$store.commit('stopLoading')\n })\n }\n}\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=132d25fa&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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","import data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nexport default {\n name: 'LatestReservations',\n data,\n methods,\n mounted\n}\n","import getApiClient from '../../../../../plugins/api'\n\nexport default {\n loadChart: function() {\n const self = this,\n api = getApiClient(self.$store)\n\n self.$store.commit('startLoading')\n\n api.get('/agency/trips/top_selling_chart')\n .then(result => {\n self.data = result.data\n })\n .catch(error => {\n console.log(error)\n })\n .finally(() => {\n self.$store.commit('stopLoading')\n })\n }\n}\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=60458e5d&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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","import orderStatuses from '@/helpers/orderStatuses'\n\nexport default function () {\n return {\n data: [],\n fields: [\n {\n key: 'id',\n label: 'ID Pedido'\n },\n {\n key: 'placeName',\n label: 'Destino'\n },\n {\n key: 'status',\n label: 'Status'\n },\n {\n key: 'date',\n label: 'Data do pedido'\n },\n {\n key: 'duration',\n label: 'Data da trip'\n },\n {\n key: 'actions',\n label: 'Ações'\n }\n ],\n orderStatuses\n }\n}\n","export default function () {\n this.loadChart()\n}\n","export default function () {\n return {\n data: [],\n fields: [\n {\n key: 'id',\n label: 'ID Reserva'\n },\n {\n key: 'placeName',\n label: 'Destino'\n },\n {\n key: 'status',\n label: 'Status'\n },\n {\n key: 'date',\n label: 'Data da reserva'\n },\n {\n key: 'duration',\n label: 'Data da Trip'\n },\n {\n key: 'actions',\n label: 'Ações'\n }\n ]\n }\n}","import getApiClient from '@/plugins/api'\n\nexport default {\n loadSalesData: function () {\n const self = this,\n api = getApiClient(self.$store)\n\n self.$store.commit('startLoading')\n\n api.get('/agency/sales_report')\n .then(result => {\n self.salesData = result.data\n })\n .catch(error => {\n console.log(error)\n })\n .finally(() => {\n self.$store.commit('stopLoading')\n })\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CCard',[_c('CCardHeader',[_vm._v(\"Últimas reservas realizadas\")]),_c('CCardBody',[_c('CDataTable',{attrs:{\"striped\":\"\",\"hover\":\"\",\"items\":_vm.data,\"fields\":_vm.fields,\"id\":\"ordersTable\",\"noItemsView\":{ noResults: \"Nenhum resultado encontrado\", noItems: \"Nenhum resultado encontrado\" }},scopedSlots:_vm._u([{key:\"date\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(item.date,'DD/MM/Y HH:mm'))+\" \")])]}},{key:\"placeName\",fn:function(ref){\nvar item = ref.item;\nreturn [(item.trip.place)?_c('td',[_vm._v(\" \"+_vm._s(item.trip.place.name)+\" \")]):_c('td')]}},{key:\"status\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_vm._v(\" \"+_vm._s(item.reservationStatus.name)+\" \")])]}},{key:\"duration\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_vm._v(\" \"+_vm._s(item.trip.durationText)+\" \")])]}},{key:\"actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_c('a',{attrs:{\"href\":\"#\",\"title\":\"Detalhes da reserva\"},on:{\"click\":function($event){$event.preventDefault();return _vm.$router.push((\"/agency/reservations/\" + (item.id)))}}},[_c('CIcon',{attrs:{\"name\":\"cilInfo\"}})],1)])]}}])})],1),_c('CCardFooter',[_c('CButton',{attrs:{\"to\":\"/trips/list\",\"color\":\"success\"}},[_vm._v(\"Ver trips\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n 1: 'Processando',\n 2: 'Autorizado',\n 3: 'Pago',\n 4: 'Reembolsado',\n 5: 'Aguardando pagamento',\n 6: 'Reembolso pendente',\n 7: 'Negado',\n 8: 'Cancelado',\n 9: 'Não pago',\n 10: 'Pago parcialmente',\n 11: 'Aguardando pix'\n}\n","import data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nexport default {\n name: 'TopReservedTrips',\n data,\n methods,\n mounted\n}\n","export default {\n isAgency: function() {\n let user = this.$store.state.user\n\n if (user) {\n let userRole = user.roles[0],\n agency = user.agency\n\n return userRole === 'ROLE_AGENCY' && agency\n }\n\n return false\n },\n\n isSellingAgency: function() {\n let user = this.$store.state.user\n if (user) {\n let agency = user.agency\n\n return agency && agency.cart\n }\n\n return false\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CCard',[_c('CCardHeader',[_vm._v(\"Últimas vendas realizadas\")]),_c('CCardBody',[_c('CDataTable',{attrs:{\"striped\":\"\",\"hover\":\"\",\"items\":_vm.data,\"fields\":_vm.fields,\"id\":\"ordersTable\",\"noItemsView\":{ noResults: \"Nenhum resultado encontrado\", noItems: \"Nenhum resultado encontrado\" }},scopedSlots:_vm._u([{key:\"date\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(item.timestamp,'DD/MM/Y HH:mm'))+\" \")])]}},{key:\"placeName\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_vm._v(_vm._s(item.trip.eventTitle))])]}},{key:\"status\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_vm._v(_vm._s(_vm.orderStatuses[item.status]))])]}},{key:\"duration\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_vm._v(\" \"+_vm._s(item.trip.durationText)+\" \")])]}},{key:\"actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_c('a',{attrs:{\"href\":\"#\",\"title\":\"Detalhes do pedido\"},on:{\"click\":function($event){$event.preventDefault();return _vm.$router.push((\"/agency/orders/\" + (item.id)))}}},[_c('CIcon',{attrs:{\"name\":\"cilInfo\"}})],1)])]}}])})],1),_c('CCardFooter',[_c('CButton',{attrs:{\"to\":\"/agency/orders\",\"color\":\"success\"}},[_vm._v(\"Ver pedidos\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function () {\n this.loadSalesData()\n}\n","import getApiClient from '@/plugins/api'\n\nexport default {\n loadPosts() {\n const api = getApiClient(this.$store)\n\n api.get('posts')\n .then(result => {\n this.posts = result.data['hydra:member']\n })\n },\n\n updatePresence() {\n const api = getApiClient(this.$store)\n api.post('presence', {})\n .catch(() => {})\n }\n}\n","export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"4727515f-vue-loader-template\\\"}!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=template&id=5ebf8616&\"","export default function () {\n this.loadChart()\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CCard',[_c('CCardHeader',[_vm._v(\"Viagens futuras com mais vendas\")]),_c('CCardBody',[_c('CListGroup',_vm._l((_vm.data),function(trip){return _c('CListGroupItem',{key:trip.id},[_vm._v(\" \"+_vm._s(trip.eventTitle)+\" \"),_c('CBadge',{attrs:{\"color\":\"success\",\"shape\":\"pill\"}},[_vm._v(_vm._s(trip.total))])],1)}),1)],1),_c('CCardFooter',[_c('CButton',{attrs:{\"to\":\"/agency/orders\",\"color\":\"success\"}},[_vm._v(\"Ver pedidos\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CCard',[_c('CCardHeader',[_vm._v(\"Total de vendas\")]),_c('CCardBody',[(_vm.salesData)?_c('CRow',_vm._l((_vm.salesData),function(data){return _c('CCol',{attrs:{\"sm\":\"4\"}},[_c('CCard',[_c('CCardBody',{attrs:{\"align\":\"center\"}},[_c('h1',[_vm._v(_vm._s(data.orders))]),_c('p',[_vm._v(_vm._s(data.description))])])],1)],1)}),1):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"","export default function () {\n this.loadChart()\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CCard',[_c('CCardHeader',[_vm._v(\"Reservas nos últimos 6 meses\")]),_c('CCardBody',[(_vm.chartData)?_c('CChartLine',{staticStyle:{\"height\":\"300px\"},attrs:{\"datasets\":[\n {\n data: _vm.chartData.map(function (item) {return item.total}),\n backgroundColor: '#5373E5',\n label: 'Reservas',\n }\n],\"labels\":_vm.chartData.map(function (item) {return item.month}),\"options\":{\n maintainAspectRatio: false,\n scales: {\n yAxes: [{\n ticks: {\n stepSize: 1\n }\n }]\n }\n }}}):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function () {\n this.loadChart()\n}\n","export default function () {\n return {\n salesData: []\n }\n}\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=7c73048c&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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","export default function() {\n return {\n posts: []\n }\n}\n","export default function () {\n return {\n data: []\n }\n}","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=134d5d24&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CCard',[_c('CCardHeader',[_vm._v(\"Viagens futuras com mais resrevas\")]),_c('CCardBody',[_c('CListGroup',_vm._l((_vm.data),function(trip){return _c('CListGroupItem',{key:trip.id},[_vm._v(\" \"+_vm._s(trip.eventTitle)+\" \"),_c('CBadge',{attrs:{\"color\":\"success\",\"shape\":\"pill\"}},[_vm._v(_vm._s(trip.total))])],1)}),1)],1),_c('CCardFooter',[_c('CButton',{attrs:{\"to\":\"/trips/list\",\"color\":\"success\"}},[_vm._v(\"Ver trips\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=6da1ffd8&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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","export default function () {\n return {\n chartData: []\n }\n}","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"","export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"4727515f-vue-loader-template\\\"}!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=template&id=2dda7909&\"","export default function () {\n const self = this,\n role = self.$store.state.user.role\n\n if (role === 'Comprador') {\n self.$router.push('orders')\n }\n\n if (self.$store.state.user.roles.includes('ROLE_ADMIN')) {\n self.$router.push('highlight_report')\n }\n\n self.loadPosts()\n self.updatePresence()\n}\n","import data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nexport default {\n name: 'AgencyOrdersChart',\n data,\n methods,\n mounted\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\""],"sourceRoot":""}