{"version":3,"sources":["webpack:///./src/views/account/orders/components/Order.vue?5384","webpack:///./src/views/account/orders/components/Order.vue","webpack:///./src/views/account/orders/components/Order.vue?9c43","webpack:///./src/views/account/orders/components/Order.vue?1072"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","key","_hoisted_7","_hoisted_8","style","_hoisted_9","_createElementVNode","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_52","_hoisted_53","_hoisted_54","_hoisted_55","_hoisted_56","_hoisted_57","render","_ctx","_cache","$props","$setup","$data","$options","_component_BaseIcon","_resolveComponent","_openBlock","_createElementBlock","_normalizeClass","order","delayTime","onClick","$event","toggleCollapse","show","_toDisplayString","orderId","_createTextVNode","orderStatus","value","innerHTML","timeLabel","isPrimeOrder","_createBlock","name","_createCommentVNode","moment","createdAt","format","$t","darkStore","userAddress","driver","_createVNode","createDriverFullName","driverInfo","vehicleInfo","vehicleType","erpnextMerchant","_withDirectives","_vShow","estimateTime","traveledDistance","Number","toFixed","copyTrackingLink","editOrder","id","defineComponent","props","type","Object","required","data","timeCalculation","methods","this","orderStringId","statusName","$emit","getOrderStatusTime","status","Array","isArray","orderStatusTime","statusObject","filter","s","length","setOrderStatusTimeLabel","includes","now","statusTime","duration","diff","days","parseInt","asDays","hours","asHours","minutes","asMinutes","baseUrl","window","location","origin","routeInfo","$router","resolve","trackingLink","href","toast","useToast","navigator","clipboard","writeText","then","success","catch","err","console","error","components","BaseIcon","beforeUnmount","clearInterval","created","setInterval","watch","handler","deep","computed","priority","__exports__"],"mappings":"+KAEMA,EAAa,CAAEC,MAAO,0FACtBC,EAAa,CAAED,MAAO,0BACtBE,EAAa,CAAC,aACdC,EAAa,CAAEH,MAAO,qBACtBI,EAAa,CAAEJ,MAAO,qCACtBK,EAAa,CACjBC,IAAK,EACLN,MAAO,kCAEHO,EAAa,CAAEP,MAAO,iBACtBQ,EAAa,CACjBR,MAAO,8DACPS,MAAO,CAAC,oBAAoB,MAAM,uBAAuB,QAErDC,EAA0BC,gCAAoB,MAAO,KAAM,CAClDA,gCAAoB,MAAO,CAAEX,MAAO,uGAAyG,CAC3IW,gCAAoB,OAAQ,CAAEX,MAAO,sCAElD,GACEY,EAAc,CAAEZ,MAAO,mDACvBa,EAAc,CAAEb,MAAO,qBACvBc,EAAc,CAAEd,MAAO,4CACvBe,EAAc,CAAEf,MAAO,uEACvBgB,EAA2BL,gCAAoB,MAAO,CAAEX,MAAO,UAAY,CAClEW,gCAAoB,MAAO,CAAEX,MAAO,sGAAwG,CAC1IW,gCAAoB,OAAQ,CAAEX,MAAO,6CAElD,GACEiB,EAAc,CAAEjB,MAAO,mDACvBkB,EAAc,CAAElB,MAAO,qBACvBmB,EAAc,CAAEnB,MAAO,gBACvBoB,EAA2BT,gCAAoB,KAAM,KAAM,MAAO,GAClEU,EAAc,CAClBf,IAAK,EACLN,MAAO,sBAEHsB,EAAc,CAAEtB,MAAO,mFACvBuB,EAAc,CAAEvB,MAAO,QACvBwB,EAAc,CAAExB,MAAO,0BACvByB,EAAc,CAAEzB,MAAO,qBACvB0B,EAAc,CAAE1B,MAAO,kCACvB2B,EAAc,CAAE3B,MAAO,uBACvB4B,EAAc,CAAE5B,MAAO,yBACvB6B,EAAc,CAClBvB,IAAK,EACLN,MAAO,gBAEH8B,EAAc,CAAExB,IAAK,GACrByB,EAAc,CAAE/B,MA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BAEFiE,EAAe,GAAH,OAAMP,EAAN,YAAiBI,EAAUI,KAA3B,eAAsClC,KAAK/C,MAAMO,SAC7D2E,EAAQC,kBAEdC,UAAUC,UAAUC,UAAUN,GAC3BO,MAAK,WACJL,EAAMM,QAAQ,cAEfC,OAAM,SAAAC,GACLC,QAAQC,MAAM,mBAAoBF,QAI1CG,WAAY,CACVC,wBAEFC,cAlF6B,WAmF3BC,cAAcjD,KAAKF,kBAErBoD,QArF6B,WAqFtB,WACLlD,KAAKa,0BACLb,KAAKF,gBAAkBqD,aAAY,kBAAM,EAAKtC,4BAA2B,MAE3EuC,MAAO,CACLnG,MAAO,CACLoG,QADK,WAEHrD,KAAKa,2BAEPyC,MAAM,IAGVC,SAAU,CACRzF,aADQ,WACI,QACV,2BAAOkC,KAAK/C,aAAZ,aAAO,EAAYuG,gBAAnB,a,oCCnGN,MAAMC,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAASpH,MAErD,iB,kCCTf,W","file":"js/chunk-4f8cb1a8.7443b46e.js","sourcesContent":["import { toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createElementBlock as _createElementBlock, vShow as _vShow, withDirectives as _withDirectives } from \"vue\"\n\nconst _hoisted_1 = { class: \"flex justify-between items-center text-start text-sm w-full pe-5 relative truncate ...\" }\nconst _hoisted_2 = { class: \"text-xs text-menuColor\" }\nconst _hoisted_3 = [\"innerHTML\"]\nconst _hoisted_4 = { class: \"flex items-center\" }\nconst _hoisted_5 = { class: \"ms-1 me-1 text-xs text-right w-51\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"px-665 pt-5 pb-665 border-line\"\n}\nconst _hoisted_7 = { class: \"ms-2.5 ps-2.5\" }\nconst _hoisted_8 = {\n class: \"flex justify-start border-s-2 border-dashed border-darkText\",\n style: {\"-moz-margin-start\":\"1px\",\"-webkit-margin-start\":\"1px\"}\n}\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"div\", null, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex justify-center items-center order-pointer w-5 h-5 rounded-full bg-lightRed relative -start-665\" }, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"w-2 h-2 rounded-full bg-white\" })\n ])\n], -1)\nconst _hoisted_10 = { class: \"w-14 text-sm text-start font-bold text-darkText\" }\nconst _hoisted_11 = { class: \"text-start mb-1.5\" }\nconst _hoisted_12 = { class: \"text-sm mb-2 text-darkText font-semibold\" }\nconst _hoisted_13 = { class: \"flex justify-start border-s-2 border-dashed last:border-transparent\" }\nconst _hoisted_14 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"pt-0.5\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex justify-center items-center order-pointer w-5 h-2.5 rounded-full bg-white relative -start-665\" }, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"w-2.5 h-2.5 rounded-full bg-darkText\" })\n ])\n], -1)\nconst _hoisted_15 = { class: \"w-14 text-sm text-start font-bold text-darkText\" }\nconst _hoisted_16 = { class: \"text-start mb-1.5\" }\nconst _hoisted_17 = { class: \"text-sm mb-3\" }\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"hr\", null, null, -1)\nconst _hoisted_19 = {\n key: 0,\n class: \"ms-2.5 ps-2.5 pt-4\"\n}\nconst _hoisted_20 = { class: \"flex relative justify-start border-s-2 border-dashed border-transparent -ms-2.5\" }\nconst _hoisted_21 = { class: \"pe-4\" }\nconst _hoisted_22 = { class: \"w-18 text-sm font-bold\" }\nconst _hoisted_23 = { class: \"relative -top-0.5\" }\nconst _hoisted_24 = { class: \"ms-2.5 font-bold text-darkText\" }\nconst _hoisted_25 = { class: \"text-start mb-1.125\" }\nconst _hoisted_26 = { class: \"text-sm text-darkText\" }\nconst _hoisted_27 = {\n key: 0,\n class: \"text-sm mb-3\"\n}\nconst _hoisted_28 = { key: 1 }\nconst _hoisted_29 = { class: \"flex justify-start gap-4 items-center pt-3 px-3\" }\nconst _hoisted_30 = { class: \"font-bold text-darkText\" }\nconst _hoisted_31 = { class: \"px-2 py-1 text-xs rounded-md border bg-green-100 border-green-200 text-green-600\" }\nconst _hoisted_32 = { class: \"ms-2.5 ps-2.5 pt-4\" }\nconst _hoisted_33 = { class: \"w-22 text-sm font-bold text-darkText\" }\nconst _hoisted_34 = { class: \"relative -top-0.5\" }\nconst _hoisted_35 = { class: \"ms-2.5 font-bold text-darkText\" }\nconst _hoisted_36 = { class: \"text-start mb-1.125\" }\nconst _hoisted_37 = { class: \"flex justify-between w-48 mt-2 mb-3.5 -ms-1.5\" }\nconst _hoisted_38 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"w-2/6 mx-1.5 h-3px bg-orange border-s\" }, null, -1)\nconst _hoisted_39 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"w-2/6 mx-1.5 h-3px bg-orange border-s\" }, null, -1)\nconst _hoisted_40 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"w-2/6 mx-1.5 h-3px border-s bg-backgroundGray\" }, null, -1)\nconst _hoisted_41 = [\n _hoisted_38,\n _hoisted_39,\n _hoisted_40\n]\nconst _hoisted_42 = {\n key: 0,\n class: \"flex flex-col justify-start border-s-2 border-dashed border-transparent -ms-2.5 mx-4\"\n}\nconst _hoisted_43 = { class: \"pe-4 flex\" }\nconst _hoisted_44 = { class: \"w-22 text-sm font-bold text-darkText\" }\nconst _hoisted_45 = { class: \"relative -top-0.5\" }\nconst _hoisted_46 = { class: \"ms-2.5 font-bold text-darkText\" }\nconst _hoisted_47 = { class: \"text-start mb-1.125\" }\nconst _hoisted_48 = { class: \"text-sm ms-7.5\" }\nconst _hoisted_49 = {\n key: 0,\n class: \"flex justify-start border-s-2 border-dashed border-transparent -ms-2.5\"\n}\nconst _hoisted_50 = { class: \"pe-4 mx-5\" }\nconst _hoisted_51 = { class: \"w-22 text-sm font-bold text-darkText\" }\nconst _hoisted_52 = { class: \"ms-2.5 font-bold text-darkText\" }\nconst _hoisted_53 = { class: \"text-start mb-1.125\" }\nconst _hoisted_54 = { class: \"text-sm mb-3\" }\nconst _hoisted_55 = { class: \"flex justify-between mt-3\" }\nconst _hoisted_56 = { class: \"flex\" }\nconst _hoisted_57 = { class: \"px-2 py-2 me-2\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_BaseIcon = _resolveComponent(\"BaseIcon\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"bg-white rounded-md shadow mb-2 mx-2\", _ctx.order.delayTime ? 'shadow-redShadow' : 'shadow-ordersShadow'])\n }, [\n _createElementVNode(\"div\", {\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.toggleCollapse())),\n class: _normalizeClass([{ 'border-sidebarBg': _ctx.show, 'shadow-ordersShadow': _ctx.show }, \"ps-3 pe-5 py-3 cursor-pointer transition duration-300 flex items-center justify-start order-details-top rounded-md border hover:shadow-ordersShadow border-transparent\"])\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"p\", {\n class: _normalizeClass([_ctx.show ? 'text-lightRed' : 'text-darkText', \"font-bold pb-1.5\"])\n }, _toDisplayString(_ctx.order.orderId), 3),\n _createElementVNode(\"p\", _hoisted_2, [\n _createTextVNode(_toDisplayString(_ctx.order.orderStatus.value) + \" \", 1),\n _createElementVNode(\"span\", {\n class: \"px-3\",\n innerHTML: _ctx.timeLabel\n }, null, 8, _hoisted_3)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n (_ctx.isPrimeOrder)\n ? (_openBlock(), _createBlock(_component_BaseIcon, {\n key: 0,\n name: \"prime-order\",\n style: {\"stroke\":\"none\"},\n class: \"mr-2\"\n }))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"p\", _hoisted_5, _toDisplayString(_ctx.moment(_ctx.order.createdAt).format('hh:mm A')), 1),\n (_ctx.show)\n ? (_openBlock(), _createBlock(_component_BaseIcon, {\n key: 1,\n class: \"absolute end-0\",\n style: {\"width\":\"14px\"},\n name: \"arrowup\"\n }))\n : _createCommentVNode(\"\", true),\n (!_ctx.show)\n ? (_openBlock(), _createBlock(_component_BaseIcon, {\n key: 2,\n class: \"absolute end-0\",\n style: {\"width\":\"14px\"},\n name: \"arrowdown\"\n }))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 2),\n (_ctx.show)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"p\", _hoisted_10, _toDisplayString(_ctx.$t('orders.from')), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"p\", _hoisted_12, _toDisplayString(_ctx.order.darkStore.name), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"p\", _hoisted_15, _toDisplayString(_ctx.$t('orders.to')), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"p\", _hoisted_17, _toDisplayString(_ctx.order.userAddress), 1)\n ])\n ])\n ]),\n _hoisted_18,\n (_ctx.order.driver)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_19, [\n _createElementVNode(\"div\", _hoisted_20, [\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"p\", _hoisted_22, [\n _createElementVNode(\"span\", _hoisted_23, [\n _createVNode(_component_BaseIcon, { name: \"truck\" })\n ]),\n _createElementVNode(\"span\", _hoisted_24, _toDisplayString(_ctx.$t('orders.driver')), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_25, [\n _createElementVNode(\"p\", _hoisted_26, _toDisplayString(_ctx.createDriverFullName(_ctx.order.driver.driverInfo)), 1),\n (_ctx.order.driver.vehicleInfo)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_27, \"By \" + _toDisplayString(_ctx.order.driver.vehicleInfo.vehicleType.value), 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.order.driver)\n ? (_openBlock(), _createElementBlock(\"hr\", _hoisted_28))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_29, [\n _createElementVNode(\"span\", _hoisted_30, _toDisplayString(_ctx.$t('orderCreateModal.erpnextMerchant')), 1),\n _createElementVNode(\"span\", _hoisted_31, _toDisplayString(_ctx.order.erpnextMerchant), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_32, [\n _createElementVNode(\"div\", {\n class: _normalizeClass({'flex justify-between' : _ctx.order.orderStatus.name === 'delivered'})\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"flex justify-start border-s-2 border-dashed border-transparent -ms-2.5\", {'flex-col': _ctx.order.orderStatus.name === 'delivered'}])\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"pe-4\", {'flex': _ctx.order.orderStatus.name === 'delivered'}])\n }, [\n _createElementVNode(\"p\", _hoisted_33, [\n _createElementVNode(\"span\", _hoisted_34, [\n _createVNode(_component_BaseIcon, { name: \"clock\" })\n ]),\n _createElementVNode(\"span\", _hoisted_35, _toDisplayString(_ctx.$t('orders.duration')), 1)\n ])\n ], 2),\n _createElementVNode(\"div\", _hoisted_36, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_37, _hoisted_41, 512), [\n [_vShow, false]\n ]),\n _createElementVNode(\"p\", {\n class: _normalizeClass([\"text-sm\", {'ms-7.5': _ctx.order.orderStatus.name === 'delivered'}])\n }, _toDisplayString(_ctx.order.estimateTime === 1 ? `${_ctx.order.estimateTime} ${_ctx.$t('orders.minuteRide')}` : `${_ctx.order.estimateTime} ${_ctx.$t('orders.minutesRide')}`), 3)\n ])\n ], 2),\n (_ctx.order.orderStatus.name === 'delivered')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_42, [\n _createElementVNode(\"div\", _hoisted_43, [\n _createElementVNode(\"p\", _hoisted_44, [\n _createElementVNode(\"span\", _hoisted_45, [\n _createVNode(_component_BaseIcon, { name: \"mappindark\" })\n ]),\n _createElementVNode(\"span\", _hoisted_46, _toDisplayString(_ctx.$t('orders.travelDistance')), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_47, [\n _createElementVNode(\"p\", _hoisted_48, _toDisplayString(_ctx.order.traveledDistance >= 1000 ? `${Number(_ctx.order.traveledDistance/1000).toFixed(2)} km` : `${_ctx.order.traveledDistance} m`), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ], 2),\n (_ctx.order.delayTime)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_49, [\n _createElementVNode(\"div\", _hoisted_50, [\n _createElementVNode(\"p\", _hoisted_51, [\n _createElementVNode(\"span\", _hoisted_52, _toDisplayString(_ctx.$t('orders.delay')), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_53, [\n _createElementVNode(\"p\", _hoisted_54, _toDisplayString(`${_ctx.order.delayTime} ${_ctx.$t('orders.minutes')}`), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_55, [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"button\", {\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.copyTrackingLink())),\n class: \"px-2 py-2 me-2\"\n }, _toDisplayString(_ctx.$t('buttons.copyTrackingLink')), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_56, [\n _createElementVNode(\"button\", _hoisted_57, _toDisplayString(_ctx.$t('buttons.call')), 1),\n _createElementVNode(\"button\", {\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.editOrder(_ctx.order.id, _ctx.order.orderId, _ctx.order.orderStatus.name))),\n class: \"primary px-2 py-2\"\n }, _toDisplayString(_ctx.$t('buttons.modifyOrder')), 1)\n ])\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ], 2))\n}","\nimport { defineComponent } from 'vue'\nimport BaseIcon from '@/shared/components/base-icon/BaseIcon.vue'\nimport { OrdersListInterface } from '@/shared/interfaces/orders-list.interface'\nimport moment from 'moment'\nimport { useToast } from 'vue-toastification'\n\nexport default defineComponent({\n name: 'Order',\n props: {\n order: {\n type: Object as () => OrdersListInterface,\n required: true\n }\n },\n data () {\n return {\n show: false,\n moment,\n timeLabel: '',\n timeCalculation: null\n }\n },\n methods: {\n toggleCollapse (): void {\n this.show = !this.show\n },\n editOrder (orderId: number, orderStringId: string, statusName: string): void {\n this.$emit('editOrder', { orderId, orderStringId, statusName })\n },\n getOrderStatusTime () {\n const status = this.order.orderStatus.name as string\n if (Array.isArray(this.order.orderStatusTime)) {\n const statusObject = this.order.orderStatusTime.filter((s) => s.status === status)\n if (statusObject.length && statusObject[0].value !== null) {\n return statusObject[0].value\n }\n }\n return this.order.createdAt\n },\n setOrderStatusTimeLabel () {\n const status = this.order.orderStatus.name as string\n if (['canceled', 'returned', 'delivered'].includes(status)) {\n this.timeLabel = moment(this.getOrderStatusTime()).format('hh:mm A')\n return false\n }\n const now = moment()\n const statusTime = this.getOrderStatusTime()\n const duration = moment.duration(now.diff(statusTime)) as any\n const days = parseInt(duration.asDays())\n // duration in hours\n const hours = parseInt(duration.asHours()) % 24\n // duration in minutes\n const minutes = parseInt(duration.asMinutes()) % 60\n this.timeLabel = moment(statusTime).format('hh:mm A') + ' ('\n if (days > 0) {\n this.timeLabel += days + 'd '\n }\n if (hours > 0) {\n this.timeLabel += hours + 'h '\n }\n if (minutes > 0) {\n this.timeLabel += minutes + 'min'\n }\n this.timeLabel += ')'\n if (!days && !hours && !minutes) {\n this.timeLabel = moment(statusTime).format('hh:mm A') + ' (now)'\n }\n },\n copyTrackingLink () {\n const baseUrl = `${window.location.origin}`\n const routeInfo = this.$router.resolve({\n name: 'OrderTracker'\n })\n const trackingLink = `${baseUrl}/${routeInfo.href}?id=${this.order.orderId}`\n const toast = useToast()\n // Use the Clipboard API to copy the link\n navigator.clipboard.writeText(trackingLink)\n .then(() => {\n toast.success('copied!')\n })\n .catch(err => {\n console.error('Failed to copy: ', err)\n })\n }\n },\n components: {\n BaseIcon\n },\n beforeUnmount () {\n clearInterval(this.timeCalculation as any)\n },\n created () {\n this.setOrderStatusTimeLabel()\n this.timeCalculation = setInterval(() => this.setOrderStatusTimeLabel(), 60000) as any\n },\n watch: {\n order: {\n handler () {\n this.setOrderStatusTimeLabel()\n },\n deep: true\n }\n },\n computed: {\n isPrimeOrder () {\n return this.order?.priority ?? false\n }\n }\n})\n","import { render } from \"./Order.vue?vue&type=template&id=ff4fdec6&ts=true\"\nimport script from \"./Order.vue?vue&type=script&lang=ts\"\nexport * from \"./Order.vue?vue&type=script&lang=ts\"\n\nimport \"./Order.vue?vue&type=style&index=0&id=ff4fdec6&lang=scss\"\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__","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!./Order.vue?vue&type=style&index=0&id=ff4fdec6&lang=scss\""],"sourceRoot":""}