{"version":3,"sources":["webpack:///./src/views/account/lts-dashboard/TripPlayback.vue?a4a7","webpack:///./src/views/account/lts-dashboard/TripPlayback.vue","webpack:///./src/views/account/lts-dashboard/TripPlayback.vue?7ab9","webpack:///./src/views/account/lts-dashboard/TripPlayback.vue?9450","webpack:///./src/views/account/lts-dashboard/TripPlayback.vue?0d88"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","openontop","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","key","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","render","_ctx","_cache","$props","$setup","$data","$options","_component_vue_next_select","_resolveComponent","_component_Datepicker","_component_BaseIcon","_component_Popper","_component_OrdersGhost","_component_OrderCard","_component_Pagination","_component_LTSMap","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","$t","_createVNode","searchable","options","driverOptions","onInput","$event","handleSearch","onSelected","onSelect","placeholder","orderOptions","disabled","driver","handleSearchOrder","onSelectOrder","_normalizeClass","showCalendar","dateChange","dateRange","inline","modelValue","format","previewFormat","range","multiCalendars","_withCtx","internalModelValue","selectDate","formatDate","tabindex","onClick","_","arrow","hover","placement","content","default","name","getLocationData","length","orderLoading","_createCommentVNode","ordersData","Array","isArray","moment","this","_Fragment","_renderList","item","_createBlock","orderId","order","pagination","totalItems","current","pageNumber","total","basicPagination","pageSize","onPageChanged","locations","stopPoints","summary","orders","style","defineComponent","components","OrderCard","defineAsyncComponent","Pagination","LTSMap","VueNextSelect","BaseIcon","Popper","OrdersGhost","data","orderItem","estimated_trip_duration","is_to_deliver_first","trip_details_to_darkstore_inward","destination_longitude","id","driver_id","user_address","destination_latitude","order_status_id","vehicle_type","value","total_delayed_time","trip_details_from_darkstore_outward","end_address","end_location","lat","lng","start_address","start_location","travel_distance","travel_duration","waypoints_order","overview_polyline","points","entire_polyline_route","total_travel_duration","order_id","created_at","customer_code","order_status","order_bin_info","324234","42","priority","total_delivery_time","is_manual","order_status_time","status","order_total","order_bin_number","zone","polygon","zone_id","customer_phone_number","dark_store","darkstore_setting","max_threshold_waiting_time","email_address","delivered_orders_distance_weight","score_divisor","darkstore_id","waiting_time_at_the_darkstore_weight","max_distance_from_dark_store","stop_auto_assignment","stop_auto_clock_out","max_orders_assigned","interval_time","delivered_orders_count_weight","interval_weight","close_time","latitude","longitude","open_time","customer_address_details","address_flat","address_floor","address_phone","address_building","address_district","address_nickname","address_address_line1","address_neighbourhood","address_nearest_landmark","total_early_delivery_time","driver_info","username","last_name","user_phone_number","first_name","is_busy","debounce","event","$store","dispatch","DriverActions","FETCH_DRIVERS_AUTOCOMPLETE","search","target","getOrdersAutocomplete","mounted","methods","getOrders","params","reset","driverId","createdAt_from","undefined","createdAt_to","OrderActions","FETCH_ORDERS","targetOrder","ordersDataAutocomplete","find","el","dateRangeFrom","dateRangeTo","assignedTime","lastStatusTime","Date","toast","useToast","warning","e","query","FETCH_ORDERS_AUTOCOMPLETE","FETCH_TRIP_LOCATIONS","date","computed","tripLocations","getters","tripLocationsLoading","drivers","reverse","stops","watch","map","userName","__exports__"],"mappings":"uIAGMA,EAAa,CAAEC,MAAO,sDACtBC,EAAa,CAAED,MAAO,gCACtBE,EAAa,CAAEF,MAAO,qCACtBG,EAAa,CAAEH,MAAO,iEACtBI,EAAa,CACjBJ,MAAO,iBACPK,UAAW,SAEPC,EAAa,CAAEN,MAAO,yBACtBO,EAAa,CAAEP,MAAO,sBACtBQ,EAAa,CAAC,WACdC,EAAa,CAAC,YACdC,EAAc,CAAEV,MAAO,WACvBW,EAAc,CAAC,YACfC,EAAc,CAAEZ,MAAO,WACvBa,EAAc,CAClBC,IAAK,EACLd,MAAO,kBAEHe,EAAc,CAClBD,IAAK,EACLd,MAAO,mEAEHgB,EAAc,CAClBF,IAAK,EACLd,MAAO,gCAEHiB,EAAc,CAAEH,IAAK,GACrBI,EAAc,CAAElB,MAAO,+BACvBmB,EAAc,CAAEnB,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AE7BE,QAPQ,WAQN,OAAOzJ,KAAKkH,OAAOqC,QAAQ,mCAE7BlB,uBAVQ,WAWN,OAAOrI,KAAKkH,OAAOqC,QAAQ,iCAE7B3J,WAbQ,WAcN,IAAMsB,EAASlB,KAAKkH,OAAOqC,QAAQ,oBACnC,OAAOrI,EAAOwI,WAEhBnJ,WAjBQ,WAkBN,OAAOP,KAAKkH,OAAOqC,QAAQ,yBAE7BxI,UApBQ,WAoBC,QACP,2BAAOf,KAAKsJ,qBAAZ,aAAO,EAAoBvI,iBAA3B,QAAwC,IAE1CC,WAvBQ,WAuBE,QACR,2BAAOhB,KAAKsJ,qBAAZ,aAAO,EAAoBK,aAA3B,QAAoC,IAEtC1I,QA1BQ,WA0BD,QACL,2BAAOjB,KAAKsJ,qBAAZ,aAAO,EAAoBrI,eAA3B,QAAsC,OAG1C2I,MAAO,CACLH,QADK,SACIA,GACPzJ,KAAK3C,cAAgBoM,EAAQI,KAAI,SAAC/L,GAChC,MAAO,CAAEyB,KAAMzB,EAAOgM,SAAU1H,GAAItE,EAAOgK,cAG/CO,uBANK,SAMmBnH,GACtBlB,KAAKpC,aAAesD,EAAOwI,UAAUG,KAAI,SAACvJ,GACxC,MAAO,CACL8B,GAAI9B,EAAMD,QACVd,KAAMe,EAAMD,aAIlBK,WAdK,WAeHV,KAAK2H,gB,2CCjWX,MAAMoC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASlO,GAAQ,CAAC,YAAY,qBAE1E,gB,2DCVf,W,yDCAA","file":"js/chunk-10731c5c.0710d8f6.js","sourcesContent":["import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-b366e584\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"flex flex-1 gap-4 lts-container scrollable-content\" }\nconst _hoisted_2 = { class: \"w-620 text-left form-wrapper\" }\nconst _hoisted_3 = { class: \"text-black font-bold text-lg mb-6\" }\nconst _hoisted_4 = { class: \"flex justify-between items-center rounded-lg shadow p-2 gap-2\" }\nconst _hoisted_5 = {\n class: \"dp__action_row\",\n openontop: \"false\"\n}\nconst _hoisted_6 = { class: \"dp__selection_preview\" }\nconst _hoisted_7 = { class: \"dp__action_buttons\" }\nconst _hoisted_8 = [\"onClick\"]\nconst _hoisted_9 = [\"disabled\"]\nconst _hoisted_10 = { class: \"text-xs\" }\nconst _hoisted_11 = [\"disabled\"]\nconst _hoisted_12 = { class: \"text-xs\" }\nconst _hoisted_13 = {\n key: 0,\n class: \"mt-6 px-1 py-2\"\n}\nconst _hoisted_14 = {\n key: 1,\n class: \"mt-6 flex flex-col gap-4 px-1 py-2 overflow-y-scroll order-list\"\n}\nconst _hoisted_15 = {\n key: 0,\n class: \"mb-3 font-bold text-gray-800\"\n}\nconst _hoisted_16 = { key: 2 }\nconst _hoisted_17 = { class: \"font-bold text-center pt-20\" }\nconst _hoisted_18 = { class: \"w-full rounded map-container\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_vue_next_select = _resolveComponent(\"vue-next-select\")!\n const _component_Datepicker = _resolveComponent(\"Datepicker\")!\n const _component_BaseIcon = _resolveComponent(\"BaseIcon\")!\n const _component_Popper = _resolveComponent(\"Popper\")!\n const _component_OrdersGhost = _resolveComponent(\"OrdersGhost\")!\n const _component_OrderCard = _resolveComponent(\"OrderCard\")!\n const _component_Pagination = _resolveComponent(\"Pagination\")!\n const _component_LTSMap = _resolveComponent(\"LTSMap\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, _toDisplayString(_ctx.$t('lts.playback')), 1),\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_vue_next_select, {\n searchable: \"\",\n options: _ctx.driverOptions,\n onInput: _cache[0] || (_cache[0] = ($event: any) => (_ctx.handleSearch($event))),\n onSelected: _cache[1] || (_cache[1] = ($event: any) => (_ctx.onSelect($event))),\n \"label-by\": \"name\",\n \"value-by\": \"id\",\n placeholder: _ctx.$t('lts.searchADriver'),\n \"close-on-select\": \"\",\n \"clear-on-select\": \"\"\n }, null, 8, [\"options\", \"placeholder\"]),\n _createVNode(_component_vue_next_select, {\n searchable: \"\",\n options: _ctx.orderOptions,\n \"label-by\": \"name\",\n \"value-by\": \"id\",\n \"close-on-select\": \"\",\n \"clear-on-select\": \"\",\n placeholder: _ctx.$t('lts.searchAnOrder'),\n disabled: _ctx.driver == null,\n onInput: _cache[2] || (_cache[2] = ($event: any) => (_ctx.handleSearchOrder($event))),\n onSelected: _cache[3] || (_cache[3] = ($event: any) => (_ctx.onSelectOrder($event)))\n }, null, 8, [\"options\", \"placeholder\", \"disabled\"]),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"absolute top-20 z-20\", !_ctx.showCalendar && 'hidden'])\n }, [\n _createVNode(_component_Datepicker, {\n \"onUpdate:modelValue\": [\n _cache[5] || (_cache[5] = ($event: any) => (_ctx.dateChange($event))),\n _cache[6] || (_cache[6] = ($event: any) => ((_ctx.dateRange) = $event))\n ],\n inline: \"\",\n modelValue: _ctx.dateRange,\n format: 'dd.MM.yyyy HH:mm - dd.MM.yyyy HH:mm',\n previewFormat: 'dd.MM.yyyy HH:mm - dd.MM.yyyy HH:mm',\n range: \"\",\n multiCalendars: \"\",\n class: \"w-full\"\n }, {\n \"action-row\": _withCtx(({ internalModelValue, selectDate }) => [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString(_ctx.formatDate(internalModelValue)), 1),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"span\", {\n class: \"dp__action dp__select\",\n tabindex: \"0\",\n \"data-test\": \"select-button\",\n onClick: selectDate\n }, \"Select\", 8, _hoisted_8),\n _createElementVNode(\"span\", {\n class: \"dp__action dp__close\",\n tabindex: \"0\",\n \"data-test\": \"close-button\",\n onClick: _cache[4] || (_cache[4] = ($event: any) => (_ctx.showCalendar = false))\n }, \"Close\")\n ])\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\", \"format\", \"previewFormat\"])\n ], 2),\n _createVNode(_component_Popper, {\n arrow: \"\",\n hover: \"\",\n placement: \"auto\"\n }, {\n content: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_10, _toDisplayString(_ctx.dateRange ? _ctx.formatDate(_ctx.dateRange) : _ctx.$t('lts.selectDateRange')), 1)\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"button\", {\n onClick: _cache[7] || (_cache[7] = ($event: any) => (_ctx.showCalendar = true)),\n class: \"border border-menuColor w-10 flex-shrink-0 h-10 text-menuColor cursor-pointer rounded-full\",\n disabled: _ctx.driver == null\n }, [\n _createVNode(_component_BaseIcon, { name: \"time\" })\n ], 8, _hoisted_9)\n ]),\n _: 1\n }),\n _createVNode(_component_Popper, {\n arrow: \"\",\n hover: \"\",\n placement: \"auto\"\n }, {\n content: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_12, _toDisplayString(_ctx.$t('search')), 1)\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"button\", {\n onClick: _cache[8] || (_cache[8] = \n//@ts-ignore\n(...args) => (_ctx.getLocationData && _ctx.getLocationData(...args))),\n disabled: !_ctx.dateRange || _ctx.dateRange.length < 2 || !_ctx.driver,\n class: \"disabled:cursor-not-allowed cursor-pointer border border-menuColor w-10 flex-shrink-0 h-10 text-menuColor rounded-full\"\n }, [\n _createVNode(_component_BaseIcon, { name: \"find\" })\n ], 8, _hoisted_11)\n ]),\n _: 1\n })\n ]),\n (_ctx.orderLoading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [\n _createVNode(_component_OrdersGhost)\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.ordersData?.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n (Array.isArray(_ctx.ordersData) && Array.isArray(_ctx.dateRange) && _ctx.dateRange.length >= 2)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_15, _toDisplayString(_ctx.$t('lts.order_found_for_date_range', [_ctx.ordersData?.length, _ctx.moment(this.dateRange[0]).format('DD-MM-YYYY HH:mm'), _ctx.moment(_ctx.dateRange[1]).format('DD-MM-YYYY HH:mm')])), 1))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.ordersData, (item) => {\n return (_openBlock(), _createBlock(_component_OrderCard, {\n key: item.orderId,\n order: item\n }, null, 8, [\"order\"]))\n }), 128))\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_16, [\n _createElementVNode(\"p\", _hoisted_17, _toDisplayString(_ctx.$t('lts.no_orders')), 1)\n ])),\n (_ctx.pagination && _ctx.pagination.totalItems)\n ? (_openBlock(), _createBlock(_component_Pagination, {\n key: 3,\n current: _ctx.pageNumber,\n total: _ctx.pagination.totalItems,\n \"page-range\": 2,\n basicPagination: true,\n \"per-page\": _ctx.pagination.pageSize,\n onPageChanged: _cache[9] || (_cache[9] = ($event: any) => (_ctx.pageNumber = $event)),\n \"text-before-input\": _ctx.$t('lts.goto_page')\n }, null, 8, [\"current\", \"total\", \"per-page\", \"text-before-input\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_18, [\n _createVNode(_component_LTSMap, {\n locations: _ctx.locations,\n stopPoints: _ctx.stopPoints,\n summary: _ctx.summary,\n orders: _ctx.ordersData,\n class: \"w-100\",\n style: {\"height\":\"77%\"}\n }, null, 8, [\"locations\", \"stopPoints\", \"summary\", \"orders\"])\n ])\n ]))\n}","\nimport moment from 'moment'\nimport { defineAsyncComponent, defineComponent } from 'vue'\nimport VueNextSelect from 'vue-next-select'\nimport BaseIcon from '@/shared/components/base-icon/BaseIcon.vue'\nimport { Driver } from '@/shared/interfaces/driver.interface'\nimport { DriverActions } from '@/store/modules/drivers/actions'\nimport { OrderActions } from '@/store/modules/orders/actions'\nimport { PaginationInterface } from '@/shared/interfaces/pagination.interface'\nimport { Order } from '@/shared/interfaces/order.interface'\nimport { useToast } from 'vue-toastification'\nimport { debounce } from 'lodash'\n\nexport default defineComponent({\n name: 'TripPlayback',\n components: {\n // DriverCard: defineAsyncComponent(() => import('@/views/account/lts-dashboard/components/DriverCard.vue')),\n OrderCard: defineAsyncComponent(() => import('@/views/account/lts-dashboard/components/OrderCard.vue')),\n Pagination: defineAsyncComponent(() => import('@/shared/components/Pagination.vue')),\n LTSMap: defineAsyncComponent(() => import('@/views/account/lts-dashboard/components/LTSMap.vue')),\n VueNextSelect,\n BaseIcon,\n Popper: defineAsyncComponent(() => import('vue3-popper')),\n OrdersGhost: defineAsyncComponent(() => import('@/shared/components/ghosts/OrdersGhost.vue'))\n },\n data (): any {\n return {\n moment,\n driver: null as any,\n order: null as any,\n driverOptions: [] as any[],\n orderOptions: [] as any[],\n pageNumber: 1,\n orderItem: {\n estimated_trip_duration: 0,\n is_to_deliver_first: true,\n trip_details_to_darkstore_inward: null,\n destination_longitude: 44.31901931762696,\n id: 4169,\n driver_id: 122,\n user_address: 'address-Personal',\n destination_latitude: 33.33483091095936,\n order_status_id: 5,\n vehicle_type: {\n value: 'Motor',\n id: 2,\n name: 'motor'\n },\n total_delayed_time: null,\n trip_details_from_darkstore_outward: {\n end_address: '88M9+VP3, Baghdad, Iraq',\n end_location: {\n lat: 33.3350218,\n lng: 44.3190055\n },\n start_address: '88M9+VP3, Baghdad, Iraq',\n start_location: {\n lat: 33.3350218,\n lng: 44.3190055\n },\n travel_distance: 0,\n travel_duration: 0,\n waypoints_order: [\n 0,\n 1\n ],\n overview_polyline: {\n points: '{vmjEy`omG'\n },\n entire_polyline_route: 'yeljE{bwmG`A~@S^}@rAiAxB_@lAUfAk@xAaBxDs@nBoBlFmAfDm@vAq@`BhB@`@DPFFDXTj@R^jACbDSfQIjKOxMOnLKpLEdFKrEEbA_@hB{@vDDhNEbJMfLS@EjAE|E?dME|EaLQcGEkACc@d@RnDcGf@@h@F`CFdBNxEDlBN|EDhB',\n total_travel_duration: 0\n },\n order_id: 'SO-23-BJ-QMQF-00425-3434',\n created_at: '2023-10-24T13:46:21',\n customer_code: '1111',\n order_status: {\n value: 'On The Way',\n id: 5,\n name: 'on_the_way'\n },\n order_bin_info: [\n {\n 324234: 123\n },\n {\n 42: 123\n }\n ],\n priority: false,\n total_delivery_time: null,\n is_manual: null,\n order_status_time: [\n {\n status: 'preparing',\n value: '2023-10-24 13:46:21'\n },\n {\n status: 'ready_for_pick_up',\n value: '2023-10-24 13:46:52'\n },\n {\n status: 'assigned',\n value: '2023-10-24 13:48:19'\n },\n {\n status: 'picked_up',\n value: '2023-10-24 13:49:08'\n },\n {\n status: 'on_the_way',\n value: '2023-10-24 13:52:04'\n },\n {\n status: 'at_the_address',\n value: null\n },\n {\n status: 'canceled',\n value: null\n },\n {\n status: 'returned',\n value: null\n },\n {\n status: 'delivered',\n value: null\n }\n ],\n order_total: '36',\n order_bin_number: '123456',\n zone: {\n polygon: [\n [\n 33.3172337746665,\n 44.34736885174562\n ],\n [\n 33.3185965151513,\n 44.33724083050539\n ],\n [\n 33.31956476518039,\n 44.33797039135744\n ],\n [\n 33.320030955802665,\n 44.32891525372316\n ],\n [\n 33.30618761830319,\n 44.32809986218263\n ],\n [\n 33.304466013345674,\n 44.34243358715822\n ],\n [\n 33.304107341368294,\n 44.34513725384523\n ]\n ],\n id: 6,\n name: 'al amerat'\n },\n zone_id: 6,\n customer_phone_number: '+4232423423',\n dark_store: {\n darkstore_setting: [\n {\n max_threshold_waiting_time: 60,\n email_address: 'voltagehigh7@gmail.com',\n delivered_orders_distance_weight: 1,\n score_divisor: {\n name: 'multiplication',\n value: 1\n },\n darkstore_id: 10,\n waiting_time_at_the_darkstore_weight: 0.5,\n max_distance_from_dark_store: 2000,\n stop_auto_assignment: false,\n stop_auto_clock_out: false,\n max_orders_assigned: 3,\n interval_time: 600,\n delivered_orders_count_weight: 1,\n interval_weight: 1.5,\n id: 10\n }\n ],\n name: 'DSBGK002-Al-Bejia - TG',\n close_time: '20:32:03',\n latitude: 33.32716369628906,\n longitude: 44.36030960083008,\n id: 10,\n open_time: '20:32:03'\n },\n customer_address_details: {\n address_flat: '',\n address_floor: '',\n address_phone: '',\n address_building: '',\n address_district: '',\n address_nickname: '',\n address_address_line1: '',\n address_neighbourhood: '',\n address_nearest_landmark: ''\n },\n total_early_delivery_time: null,\n driver: {\n driver_info: {\n username: 'aromaniiBE',\n last_name: 'andr',\n user_phone_number: '0745 786 5756',\n first_name: 'alex',\n id: 219\n },\n is_busy: 1,\n id: 122\n }\n },\n dateRange: null as any,\n showCalendar: false,\n orderLoading: false,\n handleSearch: debounce((event: any) => {\n this.$store.dispatch(`drivers/${DriverActions.FETCH_DRIVERS_AUTOCOMPLETE}`,\n {\n pageNumber: 1,\n pageSize: 1000, // we need to get all the data\n search: event.target.value\n }\n )\n }, 1000),\n handleSearchOrder: debounce((event: any) => {\n this.getOrdersAutocomplete(event.target.value)\n }, 1000)\n }\n },\n mounted () {\n this.$store.dispatch(`drivers/${DriverActions.FETCH_DRIVERS_AUTOCOMPLETE}`,\n {\n pageNumber: 1,\n pageSize: 1000,\n search: ''\n }\n )\n },\n methods: {\n async getOrders () {\n const params = {\n pageNumber: this.pageNumber ? this.pageNumber : 1,\n pageSize: 1000, // we need to get all the data\n reset: true,\n driverId: this.driver ? this.driver.id : null,\n createdAt_from: this.dateRange.length > 0 ? this.dateRange[0] : undefined,\n createdAt_to: this.dateRange.length > 0 ? this.dateRange[1] : undefined\n }\n this.orderLoading = true\n await this.$store.dispatch(`orders/${OrderActions.FETCH_ORDERS}`, params)\n this.orderLoading = false\n },\n onSelect (data: any): void {\n this.driver = data\n this.order = null\n this.getOrdersAutocomplete()\n },\n onSelectOrder (data: any): void {\n this.order = data\n const targetOrder = this.ordersDataAutocomplete.find((el: Order) => el.orderId === data.id)\n if (!targetOrder.dateRangeFrom || !targetOrder.dateRangeTo) {\n const toast = useToast()\n toast.warning(\"Selected order doesn't have valid date range. Please select a date range on the calendar\")\n } else {\n const assignedTime = targetOrder.dateRangeFrom\n const lastStatusTime = targetOrder.dateRangeTo\n // const assignedTime = order.orderStatusTime.find((el: any) => el.status === 'assigned').value\n // const lastStatusName = order.orderStatus.name\n // const lastStatusTime = order.orderStatusTime.find((el: any) => (el.status === 'returned' && el.value) ||\n // (el.status === 'delivered' && el.value) || (el.status === 'canceled' && el.value) || null\n // )\n // console.log('lastStatusTime', lastStatusTime)\n\n this.dateRange = [assignedTime && new Date(assignedTime), lastStatusTime && new Date(lastStatusTime)]\n }\n },\n dateChange (e: any) {\n this.showCalendar = false\n },\n getOrdersAutocomplete (query = null): void {\n const params = {\n pageNumber: this.pageNumber ? this.pageNumber : 1,\n pageSize: 1000, // we need to get all the data\n driverId: this.driver?.id,\n search: query\n }\n this.$store.dispatch(`orders/${OrderActions.FETCH_ORDERS_AUTOCOMPLETE}`, params)\n },\n getLocationData () {\n this.getOrders()\n this.$store.dispatch(`drivers/${DriverActions.FETCH_TRIP_LOCATIONS}`,\n {\n driverId: this.driver.id,\n dateRange: this.dateRange\n }\n )\n },\n formatDate (date: any) {\n if (Array.isArray(date)) {\n switch (date.length) {\n case 1: return moment(date[0]).format('DD-MM-YYYY HH:mm')\n case 2: return moment(date[0]).format('DD-MM-YYYY HH:mm') + ' - ' + moment(date[1]).format('DD-MM-YYYY HH:mm')\n default: return ''\n }\n }\n return ''\n }\n },\n computed: {\n tripLocations (): any {\n return this.$store.getters['drivers/getTripLocations']\n },\n tripLocationsLoading (): any {\n return this.$store.getters['drivers/getTripLocationsLoading']\n },\n drivers (): Driver[] {\n return this.$store.getters['drivers/getDriversAutocomplete']\n },\n ordersDataAutocomplete () {\n return this.$store.getters['orders/getOrdersAutocomplete']\n },\n ordersData () {\n const orders = this.$store.getters['orders/getOrders']\n return orders.reverse()\n },\n pagination (): PaginationInterface {\n return this.$store.getters['orders/getPagination']\n },\n locations () {\n return this.tripLocations?.locations ?? []\n },\n stopPoints () {\n return this.tripLocations?.stops ?? []\n },\n summary () {\n return this.tripLocations?.summary ?? null\n }\n },\n watch: {\n drivers (drivers: any[]) {\n this.driverOptions = drivers.map((driver: any) => {\n return { name: driver.userName, id: driver.driverId }\n })\n },\n ordersDataAutocomplete (orders: any[]) {\n this.orderOptions = orders.reverse().map((order: any) => {\n return {\n id: order.orderId,\n name: order.orderId\n }\n })\n },\n pageNumber () {\n this.getOrders()\n }\n }\n})\n","import { render } from \"./TripPlayback.vue?vue&type=template&id=b366e584&scoped=true&ts=true\"\nimport script from \"./TripPlayback.vue?vue&type=script&lang=ts\"\nexport * from \"./TripPlayback.vue?vue&type=script&lang=ts\"\n\nimport \"./TripPlayback.vue?vue&type=style&index=0&id=b366e584&scoped=true&lang=scss\"\nimport \"./TripPlayback.vue?vue&type=style&index=1&id=b366e584&lang=scss\"\n\nimport exportComponent from \"/usr/src/app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b366e584\"]])\n\nexport default __exports__","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./TripPlayback.vue?vue&type=style&index=1&id=b366e584&lang=scss\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./TripPlayback.vue?vue&type=style&index=0&id=b366e584&scoped=true&lang=scss\""],"sourceRoot":""}