@burdenoff/microfe-kadaikodi 2026.626.2 → 2026.704.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/kadaikodi/hooks/useKadaikodiApi.js +260 -105
  2. package/dist/kadaikodi/hooks/useKadaikodiApi.js.map +1 -1
  3. package/dist/kadaikodi/pages/HomePage.js +4 -4
  4. package/dist/kadaikodi/pages/HomePage.js.map +1 -1
  5. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js +341 -461
  6. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
  7. package/dist/kadaikodi/pages/admin/AdminDashboard.js +115 -399
  8. package/dist/kadaikodi/pages/admin/AdminDashboard.js.map +1 -1
  9. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js +140 -283
  10. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js.map +1 -1
  11. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +282 -453
  12. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
  13. package/dist/kadaikodi/pages/admin/AdminProfilePage.js +115 -242
  14. package/dist/kadaikodi/pages/admin/AdminProfilePage.js.map +1 -1
  15. package/dist/kadaikodi/pages/admin/AdminSettingsPage.js +2 -2
  16. package/dist/kadaikodi/pages/admin/AdminSettingsPage.js.map +1 -1
  17. package/dist/kadaikodi/pages/admin/CartManagementPage.js +279 -333
  18. package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
  19. package/dist/kadaikodi/pages/admin/UserManagementPage.js +299 -372
  20. package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
  21. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +503 -627
  22. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  23. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js +339 -282
  24. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  25. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +329 -432
  26. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  27. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +374 -384
  28. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  29. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js +249 -208
  30. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  31. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +276 -279
  32. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  33. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +229 -447
  34. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
  35. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js +171 -627
  36. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
  37. package/dist/kadaikodi/pages/common/HelpSupportPage.js +331 -415
  38. package/dist/kadaikodi/pages/common/HelpSupportPage.js.map +1 -1
  39. package/dist/kadaikodi/pages/common/NotificationCenterPage.js +18 -670
  40. package/dist/kadaikodi/pages/common/NotificationCenterPage.js.map +1 -1
  41. package/dist/kadaikodi/pages/common/SettingsPage.js +34 -46
  42. package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
  43. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js +193 -447
  44. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js.map +1 -1
  45. package/dist/kadaikodi/pages/customer/CartDetailPage.js +6 -6
  46. package/dist/kadaikodi/pages/customer/CartDetailPage.js.map +1 -1
  47. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js +2 -2
  48. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js.map +1 -1
  49. package/dist/kadaikodi/pages/customer/CheckoutPage.js +4 -2
  50. package/dist/kadaikodi/pages/customer/CheckoutPage.js.map +1 -1
  51. package/dist/kadaikodi/pages/customer/CustomerDashboard.js +191 -369
  52. package/dist/kadaikodi/pages/customer/CustomerDashboard.js.map +1 -1
  53. package/dist/kadaikodi/pages/customer/CustomerProfilePage.js +233 -389
  54. package/dist/kadaikodi/pages/customer/CustomerProfilePage.js.map +1 -1
  55. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js +255 -215
  56. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
  57. package/dist/kadaikodi/pages/customer/FavoritesPage.js +141 -178
  58. package/dist/kadaikodi/pages/customer/FavoritesPage.js.map +1 -1
  59. package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
  60. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +155 -161
  61. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
  62. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js +76 -118
  63. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js.map +1 -1
  64. package/dist/kadaikodi/pages/customer/ReviewsPage.js +14 -140
  65. package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
  66. package/dist/kadaikodi/pages/customer/SavedAddressesPage.js +135 -213
  67. package/dist/kadaikodi/pages/customer/SavedAddressesPage.js.map +1 -1
  68. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js +272 -774
  69. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
  70. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +258 -523
  71. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  72. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js +112 -600
  73. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  74. package/dist/kadaikodi/pages/investor/InvestorDashboard.js +128 -295
  75. package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
  76. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +205 -291
  77. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  78. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js +159 -500
  79. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js.map +1 -1
  80. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js +426 -514
  81. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
  82. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +231 -225
  83. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
  84. package/dist/kadaikodi/pages/worker/WorkerDashboard.js +197 -301
  85. package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
  86. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +247 -399
  87. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
  88. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +294 -327
  89. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
  90. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +179 -397
  91. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
  92. package/package.json +1 -1
  93. package/dist/kadaikodi/mocks/data.js +0 -1517
  94. package/dist/kadaikodi/mocks/data.js.map +0 -1
  95. package/dist/kadaikodi/mocks/users.js +0 -34
  96. package/dist/kadaikodi/mocks/users.js.map +0 -1
@@ -3,38 +3,37 @@ import { cn as t } from "../../utils/cn.js";
3
3
  import { PageLayout as n } from "../../components/PageLayout.js";
4
4
  import { StatusBadge as r } from "../../components/StatusBadge.js";
5
5
  import { EmptyState as i } from "../../components/EmptyState.js";
6
- import { formatCurrency as a, formatDate as o } from "../../utils/formatters.js";
7
- import { getOrderById as s } from "../../mocks/data.js";
8
- import { useMemo as c, useState as l } from "react";
9
- import { ArrowLeft as u, CheckCircle2 as d, ChefHat as f, Circle as p, Clock as m, MapPin as h, MessageCircle as g, Package as _, Phone as v, ShoppingBag as y, Star as b, Truck as x, XCircle as S } from "lucide-react";
10
- import { useParams as C } from "react-router-dom";
11
- import { jsx as w, jsxs as T } from "react/jsx-runtime";
12
- import { GlassCard as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
6
+ import { useOrder as a } from "../../hooks/useKadaikodiApi.js";
7
+ import { formatCurrency as o, formatDate as s } from "../../utils/formatters.js";
8
+ import { ArrowLeft as c, CheckCircle2 as l, ChefHat as u, Circle as d, Clock as f, MapPin as p, MessageCircle as m, Package as h, Phone as g, ShoppingBag as _, Star as v, Truck as y, XCircle as b } from "lucide-react";
9
+ import { useParams as x } from "react-router-dom";
10
+ import { jsx as S, jsxs as C } from "react/jsx-runtime";
11
+ import { GlassCard as w, PagePurpose as T } from "@burdenoff/fe-libs/ui";
13
12
  //#region src/kadaikodi/pages/customer/OrderTrackingPage.tsx
14
- var O = {
15
- pending: m,
16
- confirmed: d,
17
- preparing: f,
18
- ready: _,
19
- picked_up: _,
20
- out_for_delivery: x,
21
- delivered: d,
22
- cancelled: S
23
- }, k = [
13
+ var E = {
14
+ pending: f,
15
+ confirmed: l,
16
+ preparing: u,
17
+ ready: h,
18
+ picked_up: h,
19
+ out_for_delivery: y,
20
+ delivered: l,
21
+ cancelled: b
22
+ }, D = [
24
23
  "pending",
25
24
  "confirmed",
26
25
  "preparing",
27
26
  "ready",
28
27
  "out_for_delivery",
29
28
  "delivered"
30
- ], A = {
29
+ ], O = {
31
30
  pending: "Order Placed",
32
31
  confirmed: "Confirmed",
33
32
  preparing: "Preparing",
34
33
  ready: "Ready",
35
34
  out_for_delivery: "Out for Delivery",
36
35
  delivered: "Delivered"
37
- }, j = {
36
+ }, k = {
38
37
  pending: "Your order has been received",
39
38
  confirmed: "Cart has accepted your order",
40
39
  preparing: "Your food is being prepared",
@@ -42,137 +41,132 @@ var O = {
42
41
  out_for_delivery: "Your order is on the way",
43
42
  delivered: "Order has been delivered"
44
43
  };
45
- function M() {
46
- let { orderId: f } = C(), { navigateTo: _ } = e(), [x, M] = l(!0);
47
- c(() => {
48
- let e = setTimeout(() => M(!1), 800);
49
- return () => clearTimeout(e);
50
- }, []);
51
- let N = c(() => f ? s(f) : void 0, [f]);
52
- if (x) return /* @__PURE__ */ w(n, {
44
+ function A() {
45
+ let { orderId: u } = x(), { navigateTo: h } = e(), { data: y, isLoading: A } = a(u);
46
+ if (A) return /* @__PURE__ */ S(n, {
53
47
  title: "Track Order",
54
- children: /* @__PURE__ */ T("div", {
48
+ children: /* @__PURE__ */ C("div", {
55
49
  className: "flex flex-col items-center justify-center py-16 text-center",
56
- children: [/* @__PURE__ */ w("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-foreground mx-auto mb-4" }), /* @__PURE__ */ w("p", {
50
+ children: [/* @__PURE__ */ S("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-foreground mx-auto mb-4" }), /* @__PURE__ */ S("p", {
57
51
  className: "text-sm text-text-secondary",
58
52
  children: "Loading order details..."
59
53
  })]
60
54
  })
61
55
  });
62
- if (!N) return /* @__PURE__ */ w(n, {
56
+ if (!y) return /* @__PURE__ */ S(n, {
63
57
  title: "Order Not Found",
64
- children: /* @__PURE__ */ w(i, {
65
- icon: /* @__PURE__ */ w(y, { className: "h-12 w-12" }),
58
+ children: /* @__PURE__ */ S(i, {
59
+ icon: /* @__PURE__ */ S(_, { className: "h-12 w-12" }),
66
60
  title: "Order not found",
67
61
  description: "The order you're looking for doesn't exist.",
68
- action: /* @__PURE__ */ w("button", {
62
+ action: /* @__PURE__ */ S("button", {
69
63
  type: "button",
70
- onClick: () => _("/customer/orders"),
64
+ onClick: () => h("/customer/orders"),
71
65
  className: "rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
72
66
  children: "View All Orders"
73
67
  })
74
68
  })
75
69
  });
76
- let P = k.indexOf(N.status), F = N.status === "cancelled", I = N.status === "delivered", L = (e) => k.indexOf(e) <= P, R = (e) => e === N.status;
77
- return /* @__PURE__ */ T(n, {
78
- title: /* @__PURE__ */ T("div", {
70
+ let j = D.indexOf(y.status), M = y.status === "cancelled", N = y.status === "delivered", P = (e) => D.indexOf(e) <= j, F = (e) => e === y.status;
71
+ return /* @__PURE__ */ C(n, {
72
+ title: /* @__PURE__ */ C("div", {
79
73
  className: "flex items-center gap-3",
80
- children: [/* @__PURE__ */ w("button", {
74
+ children: [/* @__PURE__ */ S("button", {
81
75
  type: "button",
82
- onClick: () => _("/customer/orders"),
76
+ onClick: () => h("/customer/orders"),
83
77
  className: "rounded-md p-1 text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
84
- children: /* @__PURE__ */ w(u, { className: "h-5 w-5" })
85
- }), /* @__PURE__ */ w("span", { children: "Track Order" })]
78
+ children: /* @__PURE__ */ S(c, { className: "h-5 w-5" })
79
+ }), /* @__PURE__ */ S("span", { children: "Track Order" })]
86
80
  }),
87
- actions: /* @__PURE__ */ w(r, { status: N.status }),
88
- children: [/* @__PURE__ */ w(D, {
81
+ actions: /* @__PURE__ */ S(r, { status: y.status }),
82
+ children: [/* @__PURE__ */ S(T, {
89
83
  className: "mb-6",
90
84
  children: "Follow your order in real time — see exactly where it is from kitchen to doorstep, who's delivering it, and reach out for help if anything looks off. The live status updates as your order moves through each stage."
91
- }), /* @__PURE__ */ T("div", {
85
+ }), /* @__PURE__ */ C("div", {
92
86
  className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
93
- children: [/* @__PURE__ */ T("div", {
87
+ children: [/* @__PURE__ */ C("div", {
94
88
  className: "lg:col-span-2 space-y-6",
95
89
  children: [
96
- /* @__PURE__ */ T(E, {
90
+ /* @__PURE__ */ C(w, {
97
91
  treatment: "glass",
98
92
  glow: !0,
99
93
  className: "p-5",
100
- children: [/* @__PURE__ */ T("div", {
94
+ children: [/* @__PURE__ */ C("div", {
101
95
  className: "flex flex-col sm:flex-row sm:justify-between sm:items-start gap-3",
102
- children: [/* @__PURE__ */ T("div", {
96
+ children: [/* @__PURE__ */ C("div", {
103
97
  className: "flex-1",
104
98
  children: [
105
- /* @__PURE__ */ T("h2", {
99
+ /* @__PURE__ */ C("h2", {
106
100
  className: "text-lg font-semibold text-text-primary",
107
- children: ["Order #", N.id]
101
+ children: ["Order #", y.id]
108
102
  }),
109
- /* @__PURE__ */ w("p", {
103
+ /* @__PURE__ */ S("p", {
110
104
  className: "text-sm text-text-secondary",
111
- children: N.cartName
105
+ children: y.cartName
112
106
  }),
113
- /* @__PURE__ */ w("p", {
107
+ /* @__PURE__ */ S("p", {
114
108
  className: "text-xs text-text-secondary mt-0.5",
115
- children: o(N.orderDate)
109
+ children: s(y.orderDate)
116
110
  })
117
111
  ]
118
- }), /* @__PURE__ */ T("div", {
112
+ }), /* @__PURE__ */ C("div", {
119
113
  className: "text-left sm:text-right",
120
- children: [/* @__PURE__ */ w("p", {
114
+ children: [/* @__PURE__ */ S("p", {
121
115
  className: "text-xl font-bold text-text-primary",
122
- children: a(N.total, { minimumFractionDigits: 0 })
123
- }), /* @__PURE__ */ w("p", {
116
+ children: o(y.total, { minimumFractionDigits: 0 })
117
+ }), /* @__PURE__ */ S("p", {
124
118
  className: "text-xs text-text-secondary uppercase",
125
- children: N.paymentMethod
119
+ children: y.paymentMethod
126
120
  })]
127
121
  })]
128
- }), F ? /* @__PURE__ */ T("div", {
122
+ }), M ? /* @__PURE__ */ C("div", {
129
123
  className: "mt-4 flex items-start gap-3 rounded-lg bg-status-error-bg/10 p-4 border border-status-error-border/20",
130
- children: [/* @__PURE__ */ w(S, { className: "h-5 w-5 text-status-error-text mt-0.5 shrink-0" }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
124
+ children: [/* @__PURE__ */ S(b, { className: "h-5 w-5 text-status-error-text mt-0.5 shrink-0" }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
131
125
  className: "font-medium text-status-error-text",
132
126
  children: "Order Cancelled"
133
- }), N.cancellationReason && /* @__PURE__ */ w("p", {
127
+ }), y.cancellationReason && /* @__PURE__ */ S("p", {
134
128
  className: "text-sm text-status-error-text/80 mt-0.5",
135
- children: N.cancellationReason
129
+ children: y.cancellationReason
136
130
  })] })]
137
- }) : /* @__PURE__ */ T("div", {
138
- className: t("mt-4 flex items-start gap-3 rounded-lg p-4 border", I ? "bg-status-success-bg-subtle border-status-success-text/20" : "bg-[var(--color-accent-soft)] border-border-focus/20"),
139
- children: [I ? /* @__PURE__ */ w(d, { className: "h-5 w-5 text-status-success-text mt-0.5 shrink-0" }) : /* @__PURE__ */ w(m, { className: "h-5 w-5 text-text-primary mt-0.5 shrink-0" }), /* @__PURE__ */ w("p", {
140
- className: t("text-sm font-medium", I ? "text-status-success-text" : "text-text-primary"),
141
- children: I ? `Delivered at ${o(N.actualDeliveryTime)}` : N.estimatedDeliveryTime ? `Estimated delivery by ${o(N.estimatedDeliveryTime)}` : "Estimated delivery time: TBD"
131
+ }) : /* @__PURE__ */ C("div", {
132
+ className: t("mt-4 flex items-start gap-3 rounded-lg p-4 border", N ? "bg-status-success-bg-subtle border-status-success-text/20" : "bg-[var(--color-accent-soft)] border-border-focus/20"),
133
+ children: [N ? /* @__PURE__ */ S(l, { className: "h-5 w-5 text-status-success-text mt-0.5 shrink-0" }) : /* @__PURE__ */ S(f, { className: "h-5 w-5 text-text-primary mt-0.5 shrink-0" }), /* @__PURE__ */ S("p", {
134
+ className: t("text-sm font-medium", N ? "text-status-success-text" : "text-text-primary"),
135
+ children: N ? `Delivered at ${s(y.actualDeliveryTime)}` : y.estimatedDeliveryTime ? `Estimated delivery by ${s(y.estimatedDeliveryTime)}` : "Estimated delivery time: TBD"
142
136
  })]
143
137
  })]
144
138
  }),
145
- !F && /* @__PURE__ */ T("div", {
139
+ !M && /* @__PURE__ */ C("div", {
146
140
  className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
147
- children: [/* @__PURE__ */ w("h3", {
141
+ children: [/* @__PURE__ */ S("h3", {
148
142
  className: "text-base font-semibold text-text-primary mb-5",
149
143
  children: "Order Status"
150
- }), /* @__PURE__ */ w("div", {
144
+ }), /* @__PURE__ */ S("div", {
151
145
  className: "relative space-y-0",
152
- children: k.map((e, n) => {
153
- let r = L(e), i = R(e), a = n === k.length - 1, o = O[e] ?? p;
154
- return /* @__PURE__ */ T("div", {
146
+ children: D.map((e, n) => {
147
+ let r = P(e), i = F(e), a = n === D.length - 1, o = E[e] ?? d;
148
+ return /* @__PURE__ */ C("div", {
155
149
  className: "flex items-start relative",
156
150
  children: [
157
- !a && /* @__PURE__ */ w("div", { className: t("absolute left-5 top-10 w-0.5 h-8 z-0", r ? "bg-status-success-text" : "bg-border") }),
158
- /* @__PURE__ */ w("div", {
151
+ !a && /* @__PURE__ */ S("div", { className: t("absolute left-5 top-10 w-0.5 h-8 z-0", r ? "bg-status-success-text" : "bg-border") }),
152
+ /* @__PURE__ */ S("div", {
159
153
  className: t("relative z-10 flex h-10 w-10 shrink-0 items-center justify-center rounded-full", r ? "bg-status-success-bg-subtle border-2 border-status-success-text text-status-success-text" : "bg-bg-sunken border-2 border-border-subtle text-text-secondary", i && "ring-4 ring-status-success-text/20"),
160
- children: /* @__PURE__ */ w(o, { className: "h-4 w-4" })
154
+ children: /* @__PURE__ */ S(o, { className: "h-4 w-4" })
161
155
  }),
162
- /* @__PURE__ */ T("div", {
156
+ /* @__PURE__ */ C("div", {
163
157
  className: "ml-4 flex-1 pb-8",
164
158
  children: [
165
- /* @__PURE__ */ w("h4", {
159
+ /* @__PURE__ */ S("h4", {
166
160
  className: t("text-sm font-semibold", r ? "text-text-primary" : "text-text-secondary"),
167
- children: A[e]
161
+ children: O[e]
168
162
  }),
169
- /* @__PURE__ */ w("p", {
163
+ /* @__PURE__ */ S("p", {
170
164
  className: t("text-xs", r ? "text-text-secondary" : "text-text-secondary/50"),
171
- children: j[e]
165
+ children: k[e]
172
166
  }),
173
- i && N.assignedWorker && /* @__PURE__ */ T("div", {
167
+ i && y.assignedWorker && /* @__PURE__ */ C("div", {
174
168
  className: "mt-1.5 text-xs text-text-primary",
175
- children: [/* @__PURE__ */ T("p", { children: ["Driver: ", N.assignedWorker.name] }), /* @__PURE__ */ T("p", { children: ["Contact: ", N.assignedWorker.phone] })]
169
+ children: [/* @__PURE__ */ C("p", { children: ["Driver: ", y.assignedWorker.name] }), /* @__PURE__ */ C("p", { children: ["Contact: ", y.assignedWorker.phone] })]
176
170
  })
177
171
  ]
178
172
  })
@@ -181,204 +175,204 @@ function M() {
181
175
  })
182
176
  })]
183
177
  }),
184
- /* @__PURE__ */ T("div", {
178
+ /* @__PURE__ */ C("div", {
185
179
  className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
186
180
  children: [
187
- /* @__PURE__ */ w("h3", {
181
+ /* @__PURE__ */ S("h3", {
188
182
  className: "text-base font-semibold text-text-primary mb-3",
189
183
  children: "Order Items"
190
184
  }),
191
- /* @__PURE__ */ w("div", {
185
+ /* @__PURE__ */ S("div", {
192
186
  className: "space-y-2",
193
- children: N.items.map((e, t) => /* @__PURE__ */ T("div", {
187
+ children: y.items.map((e, t) => /* @__PURE__ */ C("div", {
194
188
  className: "flex justify-between items-start pb-2 border-b border-border-subtle last:border-b-0",
195
- children: [/* @__PURE__ */ T("div", {
189
+ children: [/* @__PURE__ */ C("div", {
196
190
  className: "flex-1 pr-2",
197
191
  children: [
198
- /* @__PURE__ */ w("p", {
192
+ /* @__PURE__ */ S("p", {
199
193
  className: "text-sm font-medium text-text-primary",
200
194
  children: e.name
201
195
  }),
202
- e.customizations && e.customizations.length > 0 && /* @__PURE__ */ w("p", {
196
+ e.customizations && e.customizations.length > 0 && /* @__PURE__ */ S("p", {
203
197
  className: "text-xs text-text-secondary",
204
198
  children: e.customizations.join(", ")
205
199
  }),
206
- /* @__PURE__ */ T("p", {
200
+ /* @__PURE__ */ C("p", {
207
201
  className: "text-xs text-text-secondary",
208
202
  children: [
209
- a(e.price, { minimumFractionDigits: 0 }),
203
+ o(e.price, { minimumFractionDigits: 0 }),
210
204
  " x ",
211
205
  e.quantity
212
206
  ]
213
207
  })
214
208
  ]
215
- }), /* @__PURE__ */ w("p", {
209
+ }), /* @__PURE__ */ S("p", {
216
210
  className: "text-sm font-medium text-text-primary",
217
- children: a(e.price * e.quantity, { minimumFractionDigits: 0 })
211
+ children: o(e.price * e.quantity, { minimumFractionDigits: 0 })
218
212
  })]
219
213
  }, t))
220
214
  }),
221
- /* @__PURE__ */ T("div", {
215
+ /* @__PURE__ */ C("div", {
222
216
  className: "mt-4 pt-4 border-t border-border-subtle space-y-2 text-sm",
223
217
  children: [
224
- /* @__PURE__ */ T("div", {
218
+ /* @__PURE__ */ C("div", {
225
219
  className: "flex justify-between text-text-secondary",
226
- children: [/* @__PURE__ */ w("span", { children: "Subtotal" }), /* @__PURE__ */ w("span", { children: a(N.subtotal, { minimumFractionDigits: 0 }) })]
220
+ children: [/* @__PURE__ */ S("span", { children: "Subtotal" }), /* @__PURE__ */ S("span", { children: o(y.subtotal, { minimumFractionDigits: 0 }) })]
227
221
  }),
228
- /* @__PURE__ */ T("div", {
222
+ /* @__PURE__ */ C("div", {
229
223
  className: "flex justify-between text-text-secondary",
230
- children: [/* @__PURE__ */ w("span", { children: "Delivery Fee" }), /* @__PURE__ */ w("span", { children: N.deliveryFee === 0 ? "FREE" : a(N.deliveryFee, { minimumFractionDigits: 0 }) })]
224
+ children: [/* @__PURE__ */ S("span", { children: "Delivery Fee" }), /* @__PURE__ */ S("span", { children: y.deliveryFee === 0 ? "FREE" : o(y.deliveryFee, { minimumFractionDigits: 0 }) })]
231
225
  }),
232
- /* @__PURE__ */ T("div", {
226
+ /* @__PURE__ */ C("div", {
233
227
  className: "flex justify-between text-text-secondary",
234
- children: [/* @__PURE__ */ w("span", { children: "Tax" }), /* @__PURE__ */ w("span", { children: a(N.taxes, { minimumFractionDigits: 0 }) })]
228
+ children: [/* @__PURE__ */ S("span", { children: "Tax" }), /* @__PURE__ */ S("span", { children: o(y.taxes, { minimumFractionDigits: 0 }) })]
235
229
  }),
236
- N.discount && N.discount > 0 && /* @__PURE__ */ T("div", {
230
+ y.discount && y.discount > 0 && /* @__PURE__ */ C("div", {
237
231
  className: "flex justify-between text-status-success-text",
238
- children: [/* @__PURE__ */ w("span", { children: "Discount" }), /* @__PURE__ */ T("span", { children: ["-", a(N.discount, { minimumFractionDigits: 0 })] })]
232
+ children: [/* @__PURE__ */ S("span", { children: "Discount" }), /* @__PURE__ */ C("span", { children: ["-", o(y.discount, { minimumFractionDigits: 0 })] })]
239
233
  }),
240
- /* @__PURE__ */ T("div", {
234
+ /* @__PURE__ */ C("div", {
241
235
  className: "flex justify-between font-semibold pt-2 border-t border-border-subtle text-text-primary",
242
- children: [/* @__PURE__ */ w("span", { children: "Total" }), /* @__PURE__ */ w("span", { children: a(N.total, { minimumFractionDigits: 0 }) })]
236
+ children: [/* @__PURE__ */ S("span", { children: "Total" }), /* @__PURE__ */ S("span", { children: o(y.total, { minimumFractionDigits: 0 }) })]
243
237
  })
244
238
  ]
245
239
  })
246
240
  ]
247
241
  })
248
242
  ]
249
- }), /* @__PURE__ */ T("div", {
243
+ }), /* @__PURE__ */ C("div", {
250
244
  className: "lg:col-span-1 space-y-6",
251
245
  children: [
252
- /* @__PURE__ */ T("div", {
246
+ /* @__PURE__ */ C("div", {
253
247
  className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
254
- children: [/* @__PURE__ */ w("h3", {
248
+ children: [/* @__PURE__ */ S("h3", {
255
249
  className: "text-base font-semibold text-text-primary mb-3",
256
250
  children: "Delivery Details"
257
- }), /* @__PURE__ */ T("div", {
251
+ }), /* @__PURE__ */ C("div", {
258
252
  className: "space-y-3",
259
253
  children: [
260
- /* @__PURE__ */ T("div", {
254
+ /* @__PURE__ */ C("div", {
261
255
  className: "flex items-start gap-2",
262
- children: [/* @__PURE__ */ w(h, { className: "mt-0.5 h-4 w-4 shrink-0 text-text-secondary" }), /* @__PURE__ */ T("div", { children: [
263
- /* @__PURE__ */ w("p", {
256
+ children: [/* @__PURE__ */ S(p, { className: "mt-0.5 h-4 w-4 shrink-0 text-text-secondary" }), /* @__PURE__ */ C("div", { children: [
257
+ /* @__PURE__ */ S("p", {
264
258
  className: "text-xs text-text-secondary",
265
259
  children: "Delivery Address"
266
260
  }),
267
- /* @__PURE__ */ w("p", {
261
+ /* @__PURE__ */ S("p", {
268
262
  className: "text-sm font-medium text-text-primary",
269
- children: N.deliveryAddress.street
263
+ children: y.deliveryAddress.street
270
264
  }),
271
- /* @__PURE__ */ w("p", {
265
+ /* @__PURE__ */ S("p", {
272
266
  className: "text-sm text-text-secondary",
273
- children: N.deliveryAddress.area
267
+ children: y.deliveryAddress.area
274
268
  }),
275
- /* @__PURE__ */ T("p", {
269
+ /* @__PURE__ */ C("p", {
276
270
  className: "text-sm text-text-secondary",
277
271
  children: [
278
- N.deliveryAddress.city,
272
+ y.deliveryAddress.city,
279
273
  ", ",
280
- N.deliveryAddress.pincode
274
+ y.deliveryAddress.pincode
281
275
  ]
282
276
  }),
283
- N.deliveryAddress.landmark && /* @__PURE__ */ T("p", {
277
+ y.deliveryAddress.landmark && /* @__PURE__ */ C("p", {
284
278
  className: "text-xs text-text-secondary mt-0.5",
285
- children: ["Landmark: ", N.deliveryAddress.landmark]
279
+ children: ["Landmark: ", y.deliveryAddress.landmark]
286
280
  })
287
281
  ] })]
288
282
  }),
289
- N.customerNotes && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
283
+ y.customerNotes && /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
290
284
  className: "text-xs text-text-secondary",
291
285
  children: "Customer Notes"
292
- }), /* @__PURE__ */ w("p", {
286
+ }), /* @__PURE__ */ S("p", {
293
287
  className: "text-sm text-text-primary",
294
- children: N.customerNotes
288
+ children: y.customerNotes
295
289
  })] }),
296
- /* @__PURE__ */ T("div", { children: [
297
- /* @__PURE__ */ w("p", {
290
+ /* @__PURE__ */ C("div", { children: [
291
+ /* @__PURE__ */ S("p", {
298
292
  className: "text-xs text-text-secondary",
299
293
  children: "Payment Method"
300
294
  }),
301
- /* @__PURE__ */ w("p", {
295
+ /* @__PURE__ */ S("p", {
302
296
  className: "text-sm font-medium text-text-primary capitalize",
303
- children: N.paymentMethod
297
+ children: y.paymentMethod
304
298
  }),
305
- /* @__PURE__ */ w("p", {
299
+ /* @__PURE__ */ S("p", {
306
300
  className: "text-xs text-text-secondary",
307
- children: N.paymentStatus === "completed" ? "Paid" : "Payment Pending"
301
+ children: y.paymentStatus === "completed" ? "Paid" : "Payment Pending"
308
302
  })
309
303
  ] })
310
304
  ]
311
305
  })]
312
306
  }),
313
- N.assignedWorker && /* @__PURE__ */ T("div", {
307
+ y.assignedWorker && /* @__PURE__ */ C("div", {
314
308
  className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
315
- children: [/* @__PURE__ */ w("h3", {
309
+ children: [/* @__PURE__ */ S("h3", {
316
310
  className: "text-base font-semibold text-text-primary mb-3",
317
311
  children: "Delivery Partner"
318
- }), /* @__PURE__ */ T("div", {
312
+ }), /* @__PURE__ */ C("div", {
319
313
  className: "space-y-3",
320
- children: [/* @__PURE__ */ T("div", {
314
+ children: [/* @__PURE__ */ C("div", {
321
315
  className: "flex items-center gap-3",
322
316
  children: [
323
- /* @__PURE__ */ w("div", {
317
+ /* @__PURE__ */ S("div", {
324
318
  className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
325
- children: /* @__PURE__ */ w("span", {
319
+ children: /* @__PURE__ */ S("span", {
326
320
  className: "text-sm font-semibold",
327
- children: N.assignedWorker.name.charAt(0)
321
+ children: y.assignedWorker.name.charAt(0)
328
322
  })
329
323
  }),
330
- /* @__PURE__ */ T("div", {
324
+ /* @__PURE__ */ C("div", {
331
325
  className: "flex-1 min-w-0",
332
- children: [/* @__PURE__ */ w("p", {
326
+ children: [/* @__PURE__ */ S("p", {
333
327
  className: "text-sm font-medium text-text-primary",
334
- children: N.assignedWorker.name
335
- }), /* @__PURE__ */ T("div", {
328
+ children: y.assignedWorker.name
329
+ }), /* @__PURE__ */ C("div", {
336
330
  className: "flex items-center gap-1.5 mt-0.5",
337
- children: [/* @__PURE__ */ w(b, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ T("span", {
331
+ children: [/* @__PURE__ */ S(v, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ C("span", {
338
332
  className: "text-xs text-text-secondary",
339
- children: [N.assignedWorker.rating, "/5"]
333
+ children: [y.assignedWorker.rating, "/5"]
340
334
  })]
341
335
  })]
342
336
  }),
343
- /* @__PURE__ */ w("a", {
344
- href: `tel:${N.assignedWorker.phone}`,
337
+ /* @__PURE__ */ S("a", {
338
+ href: `tel:${y.assignedWorker.phone}`,
345
339
  className: "flex h-9 w-9 items-center justify-center rounded-full bg-bg-sunken text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
346
- children: /* @__PURE__ */ w(v, { className: "h-4 w-4" })
340
+ children: /* @__PURE__ */ S(g, { className: "h-4 w-4" })
347
341
  })
348
342
  ]
349
- }), /* @__PURE__ */ T("button", {
343
+ }), /* @__PURE__ */ C("button", {
350
344
  type: "button",
351
- onClick: () => window.location.href = `tel:${N.assignedWorker.phone}`,
345
+ onClick: () => window.location.href = `tel:${y.assignedWorker.phone}`,
352
346
  className: "w-full flex items-center justify-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
353
- children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Call Driver"]
347
+ children: [/* @__PURE__ */ S(g, { className: "h-4 w-4" }), "Call Driver"]
354
348
  })]
355
349
  })]
356
350
  }),
357
- /* @__PURE__ */ T("div", {
351
+ /* @__PURE__ */ C("div", {
358
352
  className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
359
- children: [/* @__PURE__ */ w("h3", {
353
+ children: [/* @__PURE__ */ S("h3", {
360
354
  className: "text-base font-semibold text-text-primary mb-3",
361
355
  children: "Need Help?"
362
- }), /* @__PURE__ */ T("div", {
356
+ }), /* @__PURE__ */ C("div", {
363
357
  className: "space-y-2",
364
358
  children: [
365
- /* @__PURE__ */ T("button", {
359
+ /* @__PURE__ */ C("button", {
366
360
  type: "button",
367
361
  onClick: () => alert("Chat support coming soon!"),
368
362
  className: "w-full flex items-center justify-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
369
- children: [/* @__PURE__ */ w(g, { className: "h-4 w-4" }), "Chat Support"]
363
+ children: [/* @__PURE__ */ S(m, { className: "h-4 w-4" }), "Chat Support"]
370
364
  }),
371
- /* @__PURE__ */ T("button", {
365
+ /* @__PURE__ */ C("button", {
372
366
  type: "button",
373
367
  onClick: () => window.location.href = "tel:7012270561",
374
368
  className: "w-full flex items-center justify-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
375
- children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Call Support"]
369
+ children: [/* @__PURE__ */ S(g, { className: "h-4 w-4" }), "Call Support"]
376
370
  }),
377
- I && !N.rating && /* @__PURE__ */ T("button", {
371
+ N && !y.rating && /* @__PURE__ */ C("button", {
378
372
  type: "button",
379
- onClick: () => _(`/customer/orders/${N.id}/rate`),
373
+ onClick: () => h(`/customer/orders/${y.id}/rate`),
380
374
  className: "w-full flex items-center justify-center gap-2 rounded-lg bg-foreground px-3 py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
381
- children: [/* @__PURE__ */ w(b, { className: "h-4 w-4" }), "Rate Order"]
375
+ children: [/* @__PURE__ */ S(v, { className: "h-4 w-4" }), "Rate Order"]
382
376
  })
383
377
  ]
384
378
  })]
@@ -389,6 +383,6 @@ function M() {
389
383
  });
390
384
  }
391
385
  //#endregion
392
- export { M as OrderTrackingPage };
386
+ export { A as OrderTrackingPage };
393
387
 
394
388
  //# sourceMappingURL=OrderTrackingPage.js.map