{"version":3,"sources":["webpack:///./src/views/account/reports/components/VIewOrdersTiming.vue?6786","webpack:///./src/views/account/reports/components/VIewOrdersTiming.vue","webpack:///./src/views/account/reports/components/VIewOrdersTiming.vue?c0f7"],"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","onNavigateToLink","onRedirectToOrder","defineComponent","components","SearchInput","defineAsyncComponent","BaseIcon","FilterPanel","PageTitle","DynamicTable","data","sortable","currentSort","sort","sortName","type","this","model","calendarType","dataLoading","fetchDataOnExpand","dataRequested","actionName","selectedReport","methods","event","$store","dispatch","VehiclesActions","FETCH_VEHICLE_TYPES","e","console","log","field","map","el","router","push","query","$route","orderBy","item","path","order_id","watch","vehicleTypes","immediate","handler","val","length","target","queries","pageNumber","username","reportName","props","String","computed","getters","label","value","__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,gBA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SAACC,GACJ,MAAO,CACL7C,GAAI6C,EAAG7C,GACPqE,MAAOxB,EAAGyB,WAIlB/E,QAVQ,WAWN,OAAOmC,KAAKU,OAAOgC,QAAQ,mCAE7B3E,cAbQ,WAcN,OAAOiC,KAAKU,OAAOgC,QAAQ,yCAE7BxE,WAhBQ,WAiBN,OAAO8B,KAAKU,OAAOgC,QAAQ,sCAE7B1E,QAnBQ,WAoBN,OAAOgC,KAAKU,OAAOgC,QAAQ,0B,qBCtJjC,MAAMG,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASjH,KAErD","file":"js/chunk-2d0e5738.cf688b4e.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.viewOrdersTiming\" })\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: 'order_id', name: 'Order', width: '18%' },\n { id: 'order_created_at', name: 'Created At', width: '18%' },\n { id: 'username', name: 'Username', width: '18%' },\n { id: 'driver_full_name', name: 'Driver Full Name', width: '18%' },\n { id: 'preparing_status_datetime', name: 'Preparing Status Datetime', width: '18%' },\n { id: 'preparing_time', name: 'Preparing Time', width: '18%' },\n { id: 'assigned_status_datetime', name: 'Assigned Status Datetime', width: '18%' },\n { id: 'assigned_time', name: 'Assigned Time', width: '18%' },\n { id: 'ready_for_pickup_status_datetime', name: 'Ready For Pickup Status Datetime', width: '18%' },\n { id: 'ready_for_pickup_time', name: 'Ready For Pickup Time', width: '18%' },\n { id: 'picked_up_status_datetime', name: 'Picked Up Status Datetime', width: '18%' },\n { id: 'picked_up_time', name: 'Picked Up Time', width: '18%' },\n { id: 'on_the_way_status_datetime', name: 'On The Way Status Datetime', width: '18%' },\n { id: 'on_the_way_time', name: 'On The Way Time', width: '18%' },\n { id: 'at_the_address_status_datetime', name: 'At The Address Status Datetime', width: '18%' },\n { id: 'at_the_address_time', name: 'At The Address Time', width: '18%' },\n { id: 'delivered_status_datetime', name: 'Delivered Status Datetime', width: '18%' },\n { id: 'canceled_status_datetime', name: 'Canceled Status Datetime', width: '18%' },\n { id: 'canceled_time', name: 'Canceled Time', width: '18%' },\n { id: 'returned_status_datetime', name: 'Returned Status Datetime', width: '18%' },\n { id: 'returned_time', name: 'Returned Time', width: '18%' },\n { id: 'zone_name', name: 'Zone' },\n { id: 'tracking_id', name: 'Tracking Id' }\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 onNavigateToLink: _cache[6] || (_cache[6] = ($event: any) => (_ctx.onRedirectToOrder($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 tableFields: [\n { id: 'order_id', name: 'Order', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'order_id', type: 'link' },\n { id: 'order_created_at', name: 'Created At', 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: 'preparing_status_datetime', name: 'Preparing Status Datetime', width: '18%', sortable: true, currentSort: false, sort: null, sortName: 'preparing_status_datetime' },\n { id: 'preparing_time', name: 'Preparing Time', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'preparing_time' },\n { id: 'assigned_status_datetime', name: 'Assigned Status Datetime', width: '18%', sortable: true, currentSort: false, sort: null, sortName: 'assigned_status_datetime' },\n { id: 'assigned_time', name: 'Assigned Time', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'assigned_time' },\n { id: 'ready_for_pickup_status_datetime', name: 'Ready For Pickup Status Datetime', width: '18%', sortable: true, currentSort: false, sort: null, sortName: 'ready_for_pickup_status_datetime' },\n { id: 'ready_for_pickup_time', name: 'Ready For Pickup Time', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'ready_for_pickup_time' },\n { id: 'picked_up_status_datetime', name: 'Picked Up Status Datetime', width: '18%', sortable: true, currentSort: false, sort: null, sortName: 'picked_up_status_datetime' },\n { id: 'picked_up_time', name: 'Picked Up Time', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'picked_up_time' },\n { id: 'on_the_way_status_datetime', name: 'On The Way Status Datetime', width: '18%', sortable: true, currentSort: false, sort: null, sortName: 'on_the_way_status_datetime' },\n { id: 'on_the_way_time', name: 'On The Way Time', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'on_the_way_time' },\n { id: 'at_the_address_status_datetime', name: 'At The Address Status Datetime', width: '18%', sortable: true, currentSort: false, sort: null, sortName: 'at_the_address_status_datetime' },\n { id: 'at_the_address_time', name: 'At The Address Time', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'at_the_address_time' },\n { id: 'delivered_status_datetime', name: 'Delivered Status Datetime', width: '18%', sortable: true, currentSort: false, sort: null, sortName: 'delivered_status_datetime' },\n { id: 'canceled_status_datetime', name: 'Canceled Status Datetime', width: '18%', sortable: true, currentSort: false, sort: null, sortName: 'canceled_status_datetime' },\n { id: 'canceled_time', name: 'Canceled Time', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'canceled_time' },\n { id: 'returned_status_datetime', name: 'Returned Status Datetime', width: '18%', sortable: true, currentSort: false, sort: null, sortName: 'returned_status_datetime' },\n { id: 'returned_time', name: 'Returned Time', width: '18%', sortable: false, currentSort: false, sort: null, sortName: 'returned_time' },\n { id: 'zone_name', name: 'Zone', width: '15%', sortable: false, currentSort: false, sort: null, sortName: '' },\n { name: this.$t('filters.erpNextMerchant'), id: 'erpnext_merchant' },\n { id: 'tracking_id', name: 'Tracking Id', width: '15%', sortable: false, currentSort: false, sort: null, sortName: '' }\n ],\n filters: [\n { name: this.$t('filters.orderId'), model: 'orderId', type: 'text' },\n { name: this.$t('filters.createdAt'), model: 'createdAt', type: 'date', calendarType: 'range' },\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 { name: this.$t('filters.erpNextMerchant'), model: 'erpNextMerchant', type: 'text' }\n ],\n searchValue: null as any,\n selectedReport: this.reportType\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 onRedirectToOrder (item: any): void {\n router.push({ path: '/orders/all', query: { id: item.order_id } })\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/getOrdersTimingReports']\n },\n exportReports () {\n return this.$store.getters['reports/getOrdersTimingExportReports']\n },\n pagination () {\n return this.$store.getters['reports/getOrdersTimingPagination']\n },\n loading () {\n return this.$store.getters['reports/getLoading']\n }\n }\n})\n","import { render } from \"./VIewOrdersTiming.vue?vue&type=template&id=5a4f4a22&ts=true\"\nimport script from \"./VIewOrdersTiming.vue?vue&type=script&lang=ts\"\nexport * from \"./VIewOrdersTiming.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":""}