@burdenoff/microfe-kadaikodi 2026.802.1 → 2026.830.1

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 (58) hide show
  1. package/dist/kadaikodi/KadaikodiRoot.d.ts.map +1 -1
  2. package/dist/kadaikodi/KadaikodiRoot.js +69 -72
  3. package/dist/kadaikodi/KadaikodiRoot.js.map +1 -1
  4. package/dist/kadaikodi/components/InvestmentCard.d.ts.map +1 -1
  5. package/dist/kadaikodi/components/InvestmentCard.js +58 -54
  6. package/dist/kadaikodi/components/InvestmentCard.js.map +1 -1
  7. package/dist/kadaikodi/components/OrderCard.d.ts.map +1 -1
  8. package/dist/kadaikodi/components/StatusBadge.d.ts.map +1 -1
  9. package/dist/kadaikodi/components/StatusBadge.js +25 -14
  10. package/dist/kadaikodi/components/StatusBadge.js.map +1 -1
  11. package/dist/kadaikodi/hooks/useKadaikodiApi.d.ts +24 -0
  12. package/dist/kadaikodi/hooks/useKadaikodiApi.d.ts.map +1 -1
  13. package/dist/kadaikodi/hooks/useKadaikodiApi.js +177 -132
  14. package/dist/kadaikodi/hooks/useKadaikodiApi.js.map +1 -1
  15. package/dist/kadaikodi/pages/HomePage.d.ts.map +1 -1
  16. package/dist/kadaikodi/pages/HomePage.js +284 -282
  17. package/dist/kadaikodi/pages/HomePage.js.map +1 -1
  18. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.d.ts +7 -2
  19. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.d.ts.map +1 -1
  20. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js +319 -228
  21. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
  22. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +1 -1
  23. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
  24. package/dist/kadaikodi/pages/admin/CartManagementPage.d.ts +10 -4
  25. package/dist/kadaikodi/pages/admin/CartManagementPage.d.ts.map +1 -1
  26. package/dist/kadaikodi/pages/admin/CartManagementPage.js +320 -279
  27. package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
  28. package/dist/kadaikodi/pages/cart-owner/MerchantOnboardingPage.d.ts.map +1 -1
  29. package/dist/kadaikodi/pages/cart-owner/MerchantOnboardingPage.js +365 -292
  30. package/dist/kadaikodi/pages/cart-owner/MerchantOnboardingPage.js.map +1 -1
  31. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.d.ts +7 -2
  32. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.d.ts.map +1 -1
  33. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js +300 -158
  34. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
  35. package/dist/kadaikodi/pages/common/SettingsPage.js +286 -286
  36. package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
  37. package/dist/kadaikodi/pages/customer/CartDetailPage.d.ts.map +1 -1
  38. package/dist/kadaikodi/pages/customer/CartDetailPage.js +3 -3
  39. package/dist/kadaikodi/pages/customer/CartDetailPage.js.map +1 -1
  40. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.d.ts +13 -3
  41. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.d.ts.map +1 -1
  42. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js +270 -220
  43. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js.map +1 -1
  44. package/dist/kadaikodi/pages/customer/CustomerDashboard.js +97 -97
  45. package/dist/kadaikodi/pages/customer/OrderTrackingPage.d.ts.map +1 -1
  46. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +1 -1
  47. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
  48. package/dist/kadaikodi/pages/worker/TaskDetailsPage.d.ts +5 -3
  49. package/dist/kadaikodi/pages/worker/TaskDetailsPage.d.ts.map +1 -1
  50. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +286 -199
  51. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
  52. package/dist/kadaikodi/types/index.d.ts +46 -2
  53. package/dist/kadaikodi/types/index.d.ts.map +1 -1
  54. package/dist/shared/hooks/useTr.d.ts +2 -0
  55. package/dist/shared/hooks/useTr.d.ts.map +1 -0
  56. package/dist/shared/hooks/useTr.js +14 -0
  57. package/dist/shared/hooks/useTr.js.map +1 -0
  58. package/package.json +2 -2
@@ -5,9 +5,9 @@ import { EmptyState as r } from "../../components/EmptyState.js";
5
5
  import { useOrders as i, useProviders as a } from "../../hooks/useKadaikodiApi.js";
6
6
  import { formatCurrency as o } from "../../utils/formatters.js";
7
7
  import { useCallback as s } from "react";
8
- import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
- import { ArrowRight as l, Clock as u, CreditCard as d, Heart as f, MapPin as p, Package as m, Search as h, Star as g, User as _ } from "lucide-react";
10
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
8
+ import { ArrowRight as c, Clock as l, CreditCard as u, Heart as d, MapPin as f, Package as p, Search as m, Star as h, User as g } from "lucide-react";
9
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
10
+ import { useI18n as y } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
11
11
  import { EmphasisPanel as b, NextSteps as x, PagePurpose as S } from "@burdenoff/fe-libs/ui";
12
12
  //#region src/kadaikodi/pages/customer/CustomerDashboard.tsx
13
13
  function C() {
@@ -15,7 +15,7 @@ function C() {
15
15
  return e < 12 ? "Good morning" : e < 17 ? "Good afternoon" : "Good evening";
16
16
  }
17
17
  function w() {
18
- let { navigateTo: w, currentUser: T } = e(), { t: E } = c(), { data: D = [], isLoading: O } = i({ customerId: T?.id }), { data: k = [], isLoading: A } = a(), j = O || A, M = s((e, t) => {
18
+ let { navigateTo: w, currentUser: T } = e(), { t: E } = y(), { data: D = [], isLoading: O } = i({ customerId: T?.id }), { data: k = [], isLoading: A } = a(), j = O || A, M = s((e, t) => {
19
19
  let n = E(e);
20
20
  return n === e ? t : n;
21
21
  }, [E]), N = T?.firstName ?? T?.name ?? "Customer", P = D.slice(0, 3), F = k.slice(0, 3), I = {
@@ -31,27 +31,27 @@ function w() {
31
31
  default: return "bg-bg-sunken text-text-secondary";
32
32
  }
33
33
  };
34
- return j ? /* @__PURE__ */ v(n, {
34
+ return j ? /* @__PURE__ */ _(n, {
35
35
  title: M("kadaikodi.customerDashboard.title", "Dashboard"),
36
- children: /* @__PURE__ */ v("div", {
36
+ children: /* @__PURE__ */ _("div", {
37
37
  className: "flex items-center justify-center py-20",
38
- children: /* @__PURE__ */ y("div", {
38
+ children: /* @__PURE__ */ v("div", {
39
39
  className: "text-center",
40
- children: [/* @__PURE__ */ v("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-foreground" }), /* @__PURE__ */ v("p", {
40
+ children: [/* @__PURE__ */ _("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-foreground" }), /* @__PURE__ */ _("p", {
41
41
  className: "text-sm text-text-secondary",
42
42
  children: M("kadaikodi.customerDashboard.loading", "Loading your dashboard...")
43
43
  })]
44
44
  })
45
45
  })
46
- }) : /* @__PURE__ */ y(n, {
46
+ }) : /* @__PURE__ */ v(n, {
47
47
  title: M("kadaikodi.customerDashboard.welcomeBack", "Welcome Back!"),
48
48
  description: `${C()}, ${N}`,
49
49
  children: [
50
- /* @__PURE__ */ v(S, {
50
+ /* @__PURE__ */ _(S, {
51
51
  className: "mb-6",
52
52
  children: "Your home base on Kadaikodi — discover mobile food carts near you, reorder favourites in a tap, and keep an eye on your orders and spending. Start by exploring nearby carts or revisiting a recent order below."
53
53
  }),
54
- /* @__PURE__ */ v(x, {
54
+ /* @__PURE__ */ _(x, {
55
55
  storageKey: "kadaikodi-customer-dashboard",
56
56
  className: "mb-6",
57
57
  steps: [
@@ -75,39 +75,39 @@ function w() {
75
75
  }
76
76
  ]
77
77
  }),
78
- I && /* @__PURE__ */ y(b, {
78
+ I && /* @__PURE__ */ v(b, {
79
79
  className: "mb-8",
80
- children: [/* @__PURE__ */ v("h2", {
80
+ children: [/* @__PURE__ */ _("h2", {
81
81
  className: "mb-4 text-lg font-semibold text-text-primary",
82
82
  children: M("kadaikodi.customerDashboard.yourActivity", "Your Activity")
83
- }), /* @__PURE__ */ y("div", {
83
+ }), /* @__PURE__ */ v("div", {
84
84
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
85
- children: [/* @__PURE__ */ v("div", {
85
+ children: [/* @__PURE__ */ _("div", {
86
86
  className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
87
- children: /* @__PURE__ */ y("div", {
87
+ children: /* @__PURE__ */ v("div", {
88
88
  className: "flex items-center gap-3",
89
- children: [/* @__PURE__ */ v("div", {
89
+ children: [/* @__PURE__ */ _("div", {
90
90
  className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
91
- children: /* @__PURE__ */ v(m, { className: "h-5 w-5 text-text-secondary" })
92
- }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
91
+ children: /* @__PURE__ */ _(p, { className: "h-5 w-5 text-text-secondary" })
92
+ }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
93
93
  className: "text-2xl font-bold text-text-primary",
94
94
  children: I.totalOrders
95
- }), /* @__PURE__ */ v("p", {
95
+ }), /* @__PURE__ */ _("p", {
96
96
  className: "text-xs text-text-secondary",
97
97
  children: M("kadaikodi.customerDashboard.totalOrders", "Total Orders")
98
98
  })] })]
99
99
  })
100
- }), /* @__PURE__ */ v("div", {
100
+ }), /* @__PURE__ */ _("div", {
101
101
  className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
102
- children: /* @__PURE__ */ y("div", {
102
+ children: /* @__PURE__ */ v("div", {
103
103
  className: "flex items-center gap-3",
104
- children: [/* @__PURE__ */ v("div", {
104
+ children: [/* @__PURE__ */ _("div", {
105
105
  className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
106
- children: /* @__PURE__ */ v(d, { className: "h-5 w-5 text-text-secondary" })
107
- }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
106
+ children: /* @__PURE__ */ _(u, { className: "h-5 w-5 text-text-secondary" })
107
+ }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
108
108
  className: "text-2xl font-bold text-text-primary",
109
109
  children: o(I.totalSpent, { minimumFractionDigits: 0 })
110
- }), /* @__PURE__ */ v("p", {
110
+ }), /* @__PURE__ */ _("p", {
111
111
  className: "text-xs text-text-secondary",
112
112
  children: M("kadaikodi.customerDashboard.totalSpent", "Total Spent")
113
113
  })] })]
@@ -115,66 +115,66 @@ function w() {
115
115
  })]
116
116
  })]
117
117
  }),
118
- /* @__PURE__ */ y("div", {
118
+ /* @__PURE__ */ v("div", {
119
119
  className: "mt-8 grid grid-cols-1 gap-8 lg:grid-cols-3",
120
- children: [/* @__PURE__ */ y("div", {
120
+ children: [/* @__PURE__ */ v("div", {
121
121
  className: "lg:col-span-2 space-y-8",
122
122
  children: [
123
- /* @__PURE__ */ y("section", { children: [/* @__PURE__ */ v("h2", {
123
+ /* @__PURE__ */ v("section", { children: [/* @__PURE__ */ _("h2", {
124
124
  className: "text-lg font-semibold text-text-primary mb-4",
125
125
  children: M("kadaikodi.customerDashboard.quickActions", "Quick Actions")
126
- }), /* @__PURE__ */ y("div", {
126
+ }), /* @__PURE__ */ v("div", {
127
127
  className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
128
128
  children: [
129
- /* @__PURE__ */ y("button", {
129
+ /* @__PURE__ */ v("button", {
130
130
  type: "button",
131
131
  onClick: () => w("/customer/discover"),
132
132
  className: t("flex items-center gap-3 rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm transition-colors text-left", "hover:bg-accent hover:shadow-md"),
133
- children: [/* @__PURE__ */ v("div", {
133
+ children: [/* @__PURE__ */ _("div", {
134
134
  className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-[var(--color-accent-soft)]",
135
- children: /* @__PURE__ */ v(h, { className: "h-5 w-5 text-text-primary" })
136
- }), /* @__PURE__ */ y("div", {
135
+ children: /* @__PURE__ */ _(m, { className: "h-5 w-5 text-text-primary" })
136
+ }), /* @__PURE__ */ v("div", {
137
137
  className: "min-w-0",
138
- children: [/* @__PURE__ */ v("p", {
138
+ children: [/* @__PURE__ */ _("p", {
139
139
  className: "text-sm font-semibold text-text-primary",
140
140
  children: M("kadaikodi.customerDashboard.discoverCarts", "Discover Carts")
141
- }), /* @__PURE__ */ v("p", {
141
+ }), /* @__PURE__ */ _("p", {
142
142
  className: "text-xs text-text-secondary",
143
143
  children: M("kadaikodi.customerDashboard.findNearbyCarts", "Find nearby carts")
144
144
  })]
145
145
  })]
146
146
  }),
147
- /* @__PURE__ */ y("button", {
147
+ /* @__PURE__ */ v("button", {
148
148
  type: "button",
149
149
  onClick: () => w("/customer/orders"),
150
150
  className: t("flex items-center gap-3 rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm transition-colors text-left", "hover:bg-accent hover:shadow-md"),
151
- children: [/* @__PURE__ */ v("div", {
151
+ children: [/* @__PURE__ */ _("div", {
152
152
  className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-success-bg-subtle",
153
- children: /* @__PURE__ */ v(u, { className: "h-5 w-5 text-status-success-text" })
154
- }), /* @__PURE__ */ y("div", {
153
+ children: /* @__PURE__ */ _(l, { className: "h-5 w-5 text-status-success-text" })
154
+ }), /* @__PURE__ */ v("div", {
155
155
  className: "min-w-0",
156
- children: [/* @__PURE__ */ v("p", {
156
+ children: [/* @__PURE__ */ _("p", {
157
157
  className: "text-sm font-semibold text-text-primary",
158
158
  children: M("kadaikodi.customerDashboard.orderHistory", "Order History")
159
- }), /* @__PURE__ */ v("p", {
159
+ }), /* @__PURE__ */ _("p", {
160
160
  className: "text-xs text-text-secondary",
161
161
  children: M("kadaikodi.customerDashboard.viewPastOrders", "View past orders")
162
162
  })]
163
163
  })]
164
164
  }),
165
- /* @__PURE__ */ y("button", {
165
+ /* @__PURE__ */ v("button", {
166
166
  type: "button",
167
167
  onClick: () => w("/customer/favorites"),
168
168
  className: t("flex items-center gap-3 rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm transition-colors text-left", "hover:bg-accent hover:shadow-md"),
169
- children: [/* @__PURE__ */ v("div", {
169
+ children: [/* @__PURE__ */ _("div", {
170
170
  className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-error-bg-subtle",
171
- children: /* @__PURE__ */ v(f, { className: "h-5 w-5 text-status-error-text" })
172
- }), /* @__PURE__ */ y("div", {
171
+ children: /* @__PURE__ */ _(d, { className: "h-5 w-5 text-status-error-text" })
172
+ }), /* @__PURE__ */ v("div", {
173
173
  className: "min-w-0",
174
- children: [/* @__PURE__ */ v("p", {
174
+ children: [/* @__PURE__ */ _("p", {
175
175
  className: "text-sm font-semibold text-text-primary",
176
176
  children: M("kadaikodi.customerDashboard.favorites", "Favorites")
177
- }), /* @__PURE__ */ v("p", {
177
+ }), /* @__PURE__ */ _("p", {
178
178
  className: "text-xs text-text-secondary",
179
179
  children: M("kadaikodi.customerDashboard.savedCarts", "Saved carts")
180
180
  })]
@@ -182,56 +182,56 @@ function w() {
182
182
  })
183
183
  ]
184
184
  })] }),
185
- /* @__PURE__ */ y("section", { children: [/* @__PURE__ */ y("div", {
185
+ /* @__PURE__ */ v("section", { children: [/* @__PURE__ */ v("div", {
186
186
  className: "flex items-center justify-between mb-4",
187
- children: [/* @__PURE__ */ v("h2", {
187
+ children: [/* @__PURE__ */ _("h2", {
188
188
  className: "text-lg font-semibold text-text-primary",
189
189
  children: M("kadaikodi.customerDashboard.recentOrders", "Recent Orders")
190
- }), /* @__PURE__ */ y("button", {
190
+ }), /* @__PURE__ */ v("button", {
191
191
  type: "button",
192
192
  onClick: () => w("/customer/orders"),
193
193
  className: "flex items-center gap-1 text-sm font-medium text-text-secondary hover:text-text-primary transition-colors",
194
- children: [M("kadaikodi.common.viewAll", "View All"), /* @__PURE__ */ v(l, { className: "h-4 w-4" })]
194
+ children: [M("kadaikodi.common.viewAll", "View All"), /* @__PURE__ */ _(c, { className: "h-4 w-4" })]
195
195
  })]
196
- }), P.length > 0 ? /* @__PURE__ */ v("div", {
196
+ }), P.length > 0 ? /* @__PURE__ */ _("div", {
197
197
  className: "space-y-3",
198
- children: P.map((e) => /* @__PURE__ */ v("div", {
198
+ children: P.map((e) => /* @__PURE__ */ _("div", {
199
199
  className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
200
- children: /* @__PURE__ */ y("div", {
200
+ children: /* @__PURE__ */ v("div", {
201
201
  className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
202
- children: [/* @__PURE__ */ y("div", {
202
+ children: [/* @__PURE__ */ v("div", {
203
203
  className: "flex-1 min-w-0",
204
204
  children: [
205
- /* @__PURE__ */ y("div", {
205
+ /* @__PURE__ */ v("div", {
206
206
  className: "flex flex-wrap items-center gap-2 mb-1",
207
- children: [/* @__PURE__ */ v("h3", {
207
+ children: [/* @__PURE__ */ _("h3", {
208
208
  className: "text-sm font-semibold text-text-primary",
209
209
  children: e.cartName
210
- }), /* @__PURE__ */ v("span", {
210
+ }), /* @__PURE__ */ _("span", {
211
211
  className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize", L(e.status)),
212
212
  children: e.status.replace(/_/g, " ")
213
213
  })]
214
214
  }),
215
- /* @__PURE__ */ v("p", {
215
+ /* @__PURE__ */ _("p", {
216
216
  className: "text-xs text-text-secondary mb-2 leading-relaxed",
217
217
  children: e.items.map((e) => `${e.name} (${e.quantity})`).join(", ")
218
218
  }),
219
- /* @__PURE__ */ y("div", {
219
+ /* @__PURE__ */ v("div", {
220
220
  className: "flex flex-wrap items-center gap-3 text-xs text-text-secondary",
221
221
  children: [
222
- /* @__PURE__ */ v("span", {
222
+ /* @__PURE__ */ _("span", {
223
223
  className: "font-medium text-text-primary",
224
224
  children: o(e.total, { minimumFractionDigits: 0 })
225
225
  }),
226
- /* @__PURE__ */ v("span", { children: new Date(e.orderDate).toLocaleDateString() }),
227
- e.rating && /* @__PURE__ */ y("span", {
226
+ /* @__PURE__ */ _("span", { children: new Date(e.orderDate).toLocaleDateString() }),
227
+ e.rating && /* @__PURE__ */ v("span", {
228
228
  className: "flex items-center gap-1",
229
- children: [/* @__PURE__ */ v(g, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.rating]
229
+ children: [/* @__PURE__ */ _(h, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.rating]
230
230
  })
231
231
  ]
232
232
  })
233
233
  ]
234
- }), /* @__PURE__ */ v("button", {
234
+ }), /* @__PURE__ */ _("button", {
235
235
  type: "button",
236
236
  onClick: () => w(`/customer/orders/${e.id}/track`),
237
237
  className: "rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
@@ -239,71 +239,71 @@ function w() {
239
239
  })]
240
240
  })
241
241
  }, e.id))
242
- }) : /* @__PURE__ */ v(r, {
242
+ }) : /* @__PURE__ */ _(r, {
243
243
  illustration: "empty-data",
244
244
  title: M("kadaikodi.customerDashboard.noRecentOrders", "No recent orders"),
245
245
  description: M("kadaikodi.customerDashboard.noRecentOrdersDesc", "Your orders will show up here once you place one. Discover a cart to get started."),
246
- action: /* @__PURE__ */ v("button", {
246
+ action: /* @__PURE__ */ _("button", {
247
247
  type: "button",
248
248
  onClick: () => w("/customer/discover"),
249
249
  className: "rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
250
250
  children: M("kadaikodi.customerDashboard.discoverCarts", "Discover Carts")
251
251
  })
252
252
  })] }),
253
- /* @__PURE__ */ y("section", { children: [/* @__PURE__ */ v("h2", {
253
+ /* @__PURE__ */ v("section", { children: [/* @__PURE__ */ _("h2", {
254
254
  className: "text-lg font-semibold text-text-primary mb-4",
255
255
  children: M("kadaikodi.customerDashboard.recommendedForYou", "Recommended for You")
256
- }), F.length > 0 ? /* @__PURE__ */ v("div", {
256
+ }), F.length > 0 ? /* @__PURE__ */ _("div", {
257
257
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
258
- children: F.map((e) => /* @__PURE__ */ v("div", {
258
+ children: F.map((e) => /* @__PURE__ */ _("div", {
259
259
  className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden shadow-sm hover:shadow-md transition-shadow",
260
- children: /* @__PURE__ */ y("div", {
260
+ children: /* @__PURE__ */ v("div", {
261
261
  className: "p-4",
262
262
  children: [
263
- /* @__PURE__ */ y("div", {
263
+ /* @__PURE__ */ v("div", {
264
264
  className: "flex items-start justify-between mb-2",
265
- children: [/* @__PURE__ */ y("div", {
265
+ children: [/* @__PURE__ */ v("div", {
266
266
  className: "min-w-0 flex-1",
267
- children: [/* @__PURE__ */ v("h3", {
267
+ children: [/* @__PURE__ */ _("h3", {
268
268
  className: "text-sm font-semibold text-text-primary",
269
269
  children: e.name
270
- }), /* @__PURE__ */ v("p", {
270
+ }), /* @__PURE__ */ _("p", {
271
271
  className: "text-xs text-text-secondary",
272
272
  children: e.category
273
273
  })]
274
- }), /* @__PURE__ */ v("div", {
274
+ }), /* @__PURE__ */ _("div", {
275
275
  className: "flex items-center gap-2",
276
- children: /* @__PURE__ */ v("span", {
276
+ children: /* @__PURE__ */ _("span", {
277
277
  className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", e.isOpen ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg-subtle text-status-error-text"),
278
278
  children: e.isOpen ? M("kadaikodi.customerDashboard.open", "Open") : M("kadaikodi.customerDashboard.closed", "Closed")
279
279
  })
280
280
  })]
281
281
  }),
282
- /* @__PURE__ */ y("div", {
282
+ /* @__PURE__ */ v("div", {
283
283
  className: "flex items-center gap-3 text-xs text-text-secondary mb-3",
284
- children: [e.totalRatings > 0 && /* @__PURE__ */ y("span", {
284
+ children: [e.totalRatings > 0 && /* @__PURE__ */ v("span", {
285
285
  className: "flex items-center gap-1",
286
286
  children: [
287
- /* @__PURE__ */ v(g, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }),
288
- /* @__PURE__ */ v("span", {
287
+ /* @__PURE__ */ _(h, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }),
288
+ /* @__PURE__ */ _("span", {
289
289
  className: "font-medium text-text-primary",
290
290
  children: (e.rating ?? 0).toFixed(1)
291
291
  }),
292
- /* @__PURE__ */ y("span", { children: [
292
+ /* @__PURE__ */ v("span", { children: [
293
293
  "(",
294
294
  e.totalRatings,
295
295
  ")"
296
296
  ] })
297
297
  ]
298
- }), e.location.address && /* @__PURE__ */ y("span", {
298
+ }), e.location.address && /* @__PURE__ */ v("span", {
299
299
  className: "flex items-center gap-1 truncate",
300
- children: [/* @__PURE__ */ v(p, { className: "h-3 w-3 shrink-0" }), /* @__PURE__ */ v("span", {
300
+ children: [/* @__PURE__ */ _(f, { className: "h-3 w-3 shrink-0" }), /* @__PURE__ */ _("span", {
301
301
  className: "truncate",
302
302
  children: e.location.address
303
303
  })]
304
304
  })]
305
305
  }),
306
- /* @__PURE__ */ v("button", {
306
+ /* @__PURE__ */ _("button", {
307
307
  type: "button",
308
308
  disabled: !e.isOpen,
309
309
  onClick: () => e.isOpen && w(`/customer/cart/${e.id}`),
@@ -313,39 +313,39 @@ function w() {
313
313
  ]
314
314
  })
315
315
  }, e.id))
316
- }) : /* @__PURE__ */ v(r, {
316
+ }) : /* @__PURE__ */ _(r, {
317
317
  illustration: "empty-data",
318
318
  title: M("kadaikodi.customerDashboard.noCarts", "No carts available yet"),
319
319
  description: M("kadaikodi.customerDashboard.noCartsDesc", "Carts will appear here as vendors join the platform. Check back soon.")
320
320
  })] })
321
321
  ]
322
- }), /* @__PURE__ */ v("div", {
322
+ }), /* @__PURE__ */ _("div", {
323
323
  className: "space-y-6",
324
- children: /* @__PURE__ */ y("div", {
324
+ children: /* @__PURE__ */ v("div", {
325
325
  className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
326
- children: [/* @__PURE__ */ v("h3", {
326
+ children: [/* @__PURE__ */ _("h3", {
327
327
  className: "text-base font-semibold text-text-primary mb-3",
328
328
  children: M("kadaikodi.customerDashboard.quickLinks", "Quick Links")
329
- }), /* @__PURE__ */ y("div", {
329
+ }), /* @__PURE__ */ v("div", {
330
330
  className: "space-y-2",
331
331
  children: [
332
- /* @__PURE__ */ y("button", {
332
+ /* @__PURE__ */ v("button", {
333
333
  type: "button",
334
334
  onClick: () => w("/customer/profile"),
335
335
  className: "flex w-full items-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary hover:bg-accent transition-colors text-left",
336
- children: [/* @__PURE__ */ v(_, { className: "h-4 w-4 text-text-secondary" }), M("kadaikodi.customerDashboard.profileSettings", "Profile Settings")]
336
+ children: [/* @__PURE__ */ _(g, { className: "h-4 w-4 text-text-secondary" }), M("kadaikodi.customerDashboard.profileSettings", "Profile Settings")]
337
337
  }),
338
- /* @__PURE__ */ y("button", {
338
+ /* @__PURE__ */ v("button", {
339
339
  type: "button",
340
340
  onClick: () => w("/customer/addresses"),
341
341
  className: "flex w-full items-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary hover:bg-accent transition-colors text-left",
342
- children: [/* @__PURE__ */ v(p, { className: "h-4 w-4 text-text-secondary" }), M("kadaikodi.customerDashboard.savedAddresses", "Saved Addresses")]
342
+ children: [/* @__PURE__ */ _(f, { className: "h-4 w-4 text-text-secondary" }), M("kadaikodi.customerDashboard.savedAddresses", "Saved Addresses")]
343
343
  }),
344
- /* @__PURE__ */ y("button", {
344
+ /* @__PURE__ */ v("button", {
345
345
  type: "button",
346
346
  onClick: () => w("/customer/payment-methods"),
347
347
  className: "flex w-full items-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary hover:bg-accent transition-colors text-left",
348
- children: [/* @__PURE__ */ v(d, { className: "h-4 w-4 text-text-secondary" }), M("kadaikodi.customerDashboard.paymentMethods", "Payment Methods")]
348
+ children: [/* @__PURE__ */ _(u, { className: "h-4 w-4 text-text-secondary" }), M("kadaikodi.customerDashboard.paymentMethods", "Payment Methods")]
349
349
  })
350
350
  ]
351
351
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"OrderTrackingPage.d.ts","sourceRoot":"","sources":["../../../../src/kadaikodi/pages/customer/OrderTrackingPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA2DH,wBAAgB,iBAAiB,gCAgjBhC"}
1
+ {"version":3,"file":"OrderTrackingPage.d.ts","sourceRoot":"","sources":["../../../../src/kadaikodi/pages/customer/OrderTrackingPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA2DH,wBAAgB,iBAAiB,gCAwjBhC"}
@@ -372,7 +372,7 @@ function j() {
372
372
  }),
373
373
  /* @__PURE__ */ w("p", {
374
374
  className: "text-xs text-text-secondary",
375
- children: P.paymentStatus === "completed" ? "Paid" : "Payment Pending"
375
+ children: P.paymentStatus === "paid" ? "Paid" : P.paymentStatus === "refunded" ? "Refunded" : P.paymentStatus === "failed" ? "Payment Failed" : P.paymentStatus === "processing" ? "Payment Processing" : "Payment Pending"
376
376
  })
377
377
  ] })
378
378
  ]