{"version":3,"sources":["webpack:///./src/views/account/reports/components/ViewDriversTimingPerMonth.vue?6e00","webpack:///./src/views/account/reports/components/ViewDriversTimingPerMonth.vue","webpack:///./src/views/account/reports/components/ViewDriversTimingPerMonth.vue?0ae2"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","key","_hoisted_7","render","_ctx","_cache","$props","$setup","$data","$options","_component_PageTitle","_resolveComponent","_component_SearchInput","_component_BaseIcon","_component_FilterPanel","_component_DynamicTable","_openBlock","_createElementBlock","_Fragment","_createElementVNode","_createVNode","title","placeholder","$t","modelValue","searchValue","$event","onClick","showFilterModal","name","filters","onClose","onFetchData","onExpand","_createCommentVNode","tableData","reports","exportData","exportReports","loading","reportType","pagination","tableFields","scrollable","exportFields","id","width","buttons","edit","delete","export","onSort","clickSort","onMenuEvent","menuEvent","defineComponent","components","SearchInput","defineAsyncComponent","BaseIcon","FilterPanel","PageTitle","DynamicTable","data","this","model","type","calendarType","dataLoading","fetchDataOnExpand","dataRequested","actionName","sortable","currentSort","sort","sortName","selectedReport","methods","event","$store","dispatch","VehiclesActions","FETCH_VEHICLE_TYPES","e","console","log","field","map","el","router","push","query","$route","orderBy","watch","vehicleTypes","immediate","handler","val","length","target","queries","pageNumber","username","reportName","props","String","computed","getters","label","value","statuses","__exports__"],"mappings":"uIAEMA,EAAa,CAAEC,MAAO,mBACtBC,EAAa,CAAED,MAAO,wBACtBE,EAAa,CAAEF,MAAO,sBACtBG,EAAa,CAAEH,MAAO,4BACtBI,EAAa,CAAEJ,MAAO,UACtBK,EAAa,CAAEC,IAAK,GACpBC,EAAa,CAAEP,MAAO,QAEtB,SAAUQ,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAuBC,8BAAkB,aACzCC,EAAyBD,8BAAkB,eAC3CE,EAAsBF,8BAAkB,YACxCG,EAAyBH,8BAAkB,eAC3CI,EAA0BJ,8BAAkB,gBAElD,OAAQK,y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,EAAOhC,aAAc,KAGzBwB,OAAQ,CACNI,WAAW,EACXC,QAFM,SAEGC,GACHA,EAAIP,MAAME,UACZ7B,KAAKtB,YAAcsB,KAAKtB,YAAY6C,KAAI,SAACC,GAKvC,OAJIA,EAAG3C,KAAOqD,EAAIP,MAAME,UACtBL,EAAGf,aAAc,EACjBe,EAAGd,KAAOwB,EAAIP,MAAMjB,MAEfc,QAKf/D,YAzBK,WA0BH,IAAM4E,EAAUrC,KAAK4B,OAAOD,MAC5BU,EAAQC,WAAa,IACrBb,OAAOC,KAAK,CAAEC,MAAO,iCAAKU,GAAP,IAAgBE,SAAUvC,KAAKvC,iBAEpDmD,eA9BK,SA8BWsB,GACVA,GACFT,OAAOC,KAAK,CAAEC,MAAO,CAAEa,WAAYN,EAAIrE,UAI7C4E,MAAO,CACLjE,WAAY,CACV0B,KAAMwC,SAGVC,SAAU,CACRZ,aADQ,WAEN,OAAO/B,KAAKe,OAAO6B,QAAQ,4BACxBrB,KAAI,SAACC,GACJ,MAAO,CACL3C,GAAI2C,EAAG3C,GACPgE,MAAOrB,EAAGsB,WAIlB1E,QAVQ,WAWN,OAAO4B,KAAKe,OAAO6B,QAAQ,2CAE7BtE,cAbQ,WAcN,OAAO0B,KAAKe,OAAO6B,QAAQ,iDAE7BnE,WAhBQ,WAiBN,OAAOuB,KAAKe,OAAO6B,QAAQ,8CAE7BrE,QAnBQ,WAoBN,OAAOyB,KAAKe,OAAO6B,QAAQ,uBAE7BG,SAtBQ,WAuBN,OAAO/C,KAAKe,OAAO6B,QAAQ,+B,qBClJjC,MAAMI,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS7G,KAErD","file":"js/chunk-2d21afc6.add0c7f0.js","sourcesContent":["import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = { class: \"pt-14 pb-5 px-5\" }\nconst _hoisted_2 = { class: \"flex justify-between\" }\nconst _hoisted_3 = { class: \"flex justify-start\" }\nconst _hoisted_4 = { class: \"relative h-42 w-288 me-3\" }\nconst _hoisted_5 = { class: \"w-full\" }\nconst _hoisted_6 = { key: 0 }\nconst _hoisted_7 = { class: \"px-5\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_PageTitle = _resolveComponent(\"PageTitle\")!\n const _component_SearchInput = _resolveComponent(\"SearchInput\")!\n const _component_BaseIcon = _resolveComponent(\"BaseIcon\")!\n const _component_FilterPanel = _resolveComponent(\"FilterPanel\")!\n const _component_DynamicTable = _resolveComponent(\"DynamicTable\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_PageTitle, { title: \"reports.viewDriversTimingMonth\" })\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_SearchInput, {\n placeholder: _ctx.$t('placeholders.username'),\n modelValue: _ctx.searchValue,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.searchValue) = $event))\n }, null, 8, [\"placeholder\", \"modelValue\"])\n ]),\n _createElementVNode(\"button\", {\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.showFilterModal = true)),\n class: \"border border-inputBorder w-42 h-42\"\n }, [\n _createElementVNode(\"span\", _hoisted_5, [\n _createVNode(_component_BaseIcon, { name: \"filter\" })\n ])\n ]),\n (_ctx.showFilterModal)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createVNode(_component_FilterPanel, {\n filters: _ctx.filters,\n onClose: _cache[2] || (_cache[2] = ($event: any) => (_ctx.showFilterModal = false)),\n onFetchData: _cache[3] || (_cache[3] = ($event: any) => (_ctx.onExpand($event)))\n }, null, 8, [\"filters\"])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createVNode(_component_DynamicTable, {\n tableData: _ctx.reports,\n exportData: _ctx.exportReports,\n loading: _ctx.loading,\n reportType: _ctx.reportType,\n pagination: _ctx.pagination,\n tableFields: _ctx.tableFields,\n scrollable: true,\n exportFields: [\n { id: 'date', name: 'Created Date', width: '16%' },\n { id: 'username', name: 'Username', width: '16%' },\n { id: 'driver_full_name', name: 'Driver Full Name', width: '16%' },\n { id: 'orders_count', name: 'Orders Count', width: '14%' },\n { id: 'ready_for_pickup_average', name: 'Ready For Pickup Average', width: '18%' },\n { id: 'ready_for_pickup_max', name: 'Ready For Pickup Time Max', width: '18%' },\n { id: 'ready_for_pickup_min', name: 'Ready For Pickup Time Min', width: '18%' },\n { id: 'ready_for_pickup_total', name: 'Ready For Pickup Time Total', width: '18%' },\n { id: 'picked_up_time_average', name: 'Picked Up Time Average', width: '18%' },\n { id: 'picked_up_time_max', name: 'Picked Up Time Max', width: '18%' },\n { id: 'picked_up_time_min', name: 'Picked Up Time Min', width: '18%' },\n { id: 'picked_up_time_total', name: 'Picked Up Time Total', width: '18%' },\n { id: 'on_the_way_time_average', name: 'On The Way Time Average', width: '18%' },\n { id: 'on_the_way_time_max', name: 'On The Way Time Max', width: '18%' },\n { id: 'on_the_way_time_min', name: 'On The Way Time Min', width: '18%' },\n { id: 'on_the_way_time_total', name: 'On The Way Time Total', width: '18%' },\n { id: 'at_the_address_time_average', name: 'At The Address Time Average', width: '18%' },\n { id: 'at_the_address_time_max', name: 'At The Address Time Max', width: '18%' },\n { id: 'at_the_address_time_min', name: 'At The Address Time Min', width: '18%' },\n { id: 'at_the_address_time_total', name: 'At The Address Time Total', width: '18%' },\n { id: 'tracking_id', name: 'Tracking Id', width: '18%' }\n ],\n buttons: { edit: true, delete: true, export: true},\n onSort: _cache[4] || (_cache[4] = ($event: any) => (_ctx.clickSort($event))),\n onMenuEvent: _cache[5] || (_cache[5] = ($event: any) => (_ctx.menuEvent($event)))\n }, null, 8, [\"tableData\", \"exportData\", \"loading\", \"reportType\", \"pagination\", \"tableFields\"])\n ])\n ], 64))\n}","\nimport { defineAsyncComponent, defineComponent } from 'vue'\nimport router from '@/router'\nimport { VehiclesActions } from '@/store/modules/vehicles/actions'\n\nexport default defineComponent({\n components: {\n SearchInput: defineAsyncComponent(() => import('@/shared/components/SearchInput.vue')),\n BaseIcon: defineAsyncComponent(() => import('@/shared/components/base-icon/BaseIcon.vue')),\n FilterPanel: defineAsyncComponent(() => import('@/shared/components/filter/FilterPanel.vue')),\n PageTitle: defineAsyncComponent(() => import('@/shared/components/PageTitle.vue')),\n DynamicTable: defineAsyncComponent(() => import('@/shared/components/dynamic-table/DynamicTable.vue'))\n },\n data () {\n return {\n showFilterModal: false,\n filters: [\n { name: this.$t('filters.date'), model: 'dates', type: 'date', calendarType: 'month' },\n { name: this.$t('filters.ordersCount'), model: 'ordersCount', type: 'number' },\n {\n name: this.$t('filters.vehicleType'),\n model: 'vehicleTypeId',\n dataLoading: true,\n fetchDataOnExpand: true,\n dataRequested: false,\n actionName: 'vehicleTypes',\n type: 'radio',\n data: []\n },\n { name: this.$t('filters.trackingId'), model: 'trackingId', type: 'number' }\n ],\n tableFields: [\n { id: 'date', name: 'Created Date', width: '18%', sortable: true, currentSort: false, sort: null, sortName: 'created_at' },\n { id: 'username', name: 'Username', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'username' },\n { id: 'driver_full_name', name: 'Driver Full Name', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'driver_full_name' },\n { id: 'orders_count', name: 'Orders Count', width: '18%', sortable: true, currentSort: false, sort: null, sortName: 'orders_count' },\n { id: 'ready_for_pickup_average', name: 'Ready For Pickup Average', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'ready_for_pickup_average' },\n { id: 'ready_for_pickup_max', name: 'Ready For Pickup Time Max', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'ready_for_pickup_max' },\n { id: 'ready_for_pickup_min', name: 'Ready For Pickup Time Min', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'ready_for_pickup_min' },\n { id: 'ready_for_pickup_total', name: 'Ready For Pickup Time Total', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'ready_for_pickup_total' },\n { id: 'picked_up_time_average', name: 'Picked Up Time Average', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'picked_up_time_average' },\n { id: 'picked_up_time_max', name: 'Picked Up Time Max', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'picked_up_time_max' },\n { id: 'picked_up_time_min', name: 'Picked Up Time Min', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'picked_up_time_min' },\n { id: 'picked_up_time_total', name: 'Picked Up Time Total', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'picked_up_time_total' },\n { id: 'on_the_way_time_average', name: 'On The Way Time Average', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'on_the_way_time_average' },\n { id: 'on_the_way_time_max', name: 'On The Way Time Max', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'on_the_way_time_max' },\n { id: 'on_the_way_time_min', name: 'On The Way Time Min', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'on_the_way_time_min' },\n { id: 'on_the_way_time_total', name: 'On The Way Time Total', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'on_the_way_time_total' },\n { id: 'at_the_address_time_average', name: 'At The Address Time Average', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'at_the_address_time_average' },\n { id: 'at_the_address_time_max', name: 'At The Address Time Max', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'at_the_address_time_max' },\n { id: 'at_the_address_time_min', name: 'At The Address Time Min', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'at_the_address_time_min' },\n { id: 'at_the_address_time_total', name: 'At The Address Time Total', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'at_the_address_time_total' },\n { id: 'tracking_id', name: 'Tracking Id', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'tracking_id' }\n ],\n selectedReport: this.reportType,\n searchValue: null as any\n }\n },\n methods: {\n onExpand (event: any): void {\n if (event === 'vehicleTypes') {\n this.$store.dispatch(`vehicles/${[VehiclesActions.FETCH_VEHICLE_TYPES]}`)\n }\n },\n menuEvent (e: any): void {\n console.log(e)\n },\n clickSort (field: any): void {\n this.tableFields = this.tableFields?.map((el: any) => {\n if (el.id === field.id) {\n el.currentSort = true\n if (el.sort === null) {\n el.sort = 'asc'\n } else if (el.sort === 'asc') {\n el.sort = 'desc'\n } else if (el.sort === 'desc') {\n el.sort = null\n }\n } else {\n el.currentSort = false\n el.sort = null\n }\n return el\n })\n router.push({ query: { ...this.$route.query, orderBy: field.sortName, sort: field.sort } })\n }\n },\n watch: {\n vehicleTypes: {\n immediate: true,\n handler (val) {\n if (!val.length) return\n const target = this.filters[2]\n target.dataRequested = true\n target.data = val\n target.dataLoading = false\n }\n },\n $route: {\n immediate: true,\n handler (val: any) {\n if (val.query.orderBy) {\n this.tableFields = this.tableFields.map((el: any) => {\n if (el.id === val.query.orderBy) {\n el.currentSort = true\n el.sort = val.query.sort\n }\n return el\n })\n }\n }\n },\n searchValue () {\n const queries = this.$route.query\n queries.pageNumber = '1'\n router.push({ query: { ...queries, username: this.searchValue } })\n },\n selectedReport (val) {\n if (val) {\n router.push({ query: { reportName: val.name } })\n }\n }\n },\n props: {\n reportType: {\n type: String\n }\n },\n computed: {\n vehicleTypes (): any[] {\n return this.$store.getters['vehicles/getVehicleTypes']\n .map((el: any) => {\n return {\n id: el.id,\n label: el.value\n }\n })\n },\n reports () {\n return this.$store.getters['reports/getDriversTimingMonthlyReports']\n },\n exportReports () {\n return this.$store.getters['reports/getDriversTimingMonthlyExportReports']\n },\n pagination () {\n return this.$store.getters['reports/getDriversTimingMonthlyPagination']\n },\n loading () {\n return this.$store.getters['reports/getLoading']\n },\n statuses (): any {\n return this.$store.getters['orders/getOrderStatuses']\n }\n }\n})\n","import { render } from \"./ViewDriversTimingPerMonth.vue?vue&type=template&id=156fc093&ts=true\"\nimport script from \"./ViewDriversTimingPerMonth.vue?vue&type=script&lang=ts\"\nexport * from \"./ViewDriversTimingPerMonth.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/usr/src/app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}