@burdenoff/microfe-kadaikodi 2026.625.1 → 2026.626.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 (91) hide show
  1. package/dist/kadaikodi/pages/HomePage.js +19 -14
  2. package/dist/kadaikodi/pages/HomePage.js.map +1 -1
  3. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js +118 -83
  4. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
  5. package/dist/kadaikodi/pages/admin/AdminDashboard.js +75 -46
  6. package/dist/kadaikodi/pages/admin/AdminDashboard.js.map +1 -1
  7. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js +144 -128
  8. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js.map +1 -1
  9. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +255 -237
  10. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
  11. package/dist/kadaikodi/pages/admin/AdminProfilePage.js +129 -128
  12. package/dist/kadaikodi/pages/admin/AdminProfilePage.js.map +1 -1
  13. package/dist/kadaikodi/pages/admin/AdminSettingsPage.js +178 -150
  14. package/dist/kadaikodi/pages/admin/AdminSettingsPage.js.map +1 -1
  15. package/dist/kadaikodi/pages/admin/CartManagementPage.js +182 -159
  16. package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
  17. package/dist/kadaikodi/pages/admin/UserManagementPage.js +325 -303
  18. package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
  19. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +500 -469
  20. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  21. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js +534 -503
  22. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  23. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +73 -48
  24. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  25. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +103 -96
  26. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  27. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js +130 -129
  28. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  29. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +673 -670
  30. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  31. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +517 -514
  32. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
  33. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js +140 -125
  34. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
  35. package/dist/kadaikodi/pages/common/HelpSupportPage.js +302 -311
  36. package/dist/kadaikodi/pages/common/HelpSupportPage.js.map +1 -1
  37. package/dist/kadaikodi/pages/common/NotificationCenterPage.js +102 -91
  38. package/dist/kadaikodi/pages/common/NotificationCenterPage.js.map +1 -1
  39. package/dist/kadaikodi/pages/common/SettingsPage.js +766 -734
  40. package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
  41. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js +366 -356
  42. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js.map +1 -1
  43. package/dist/kadaikodi/pages/customer/CartDetailPage.js +243 -213
  44. package/dist/kadaikodi/pages/customer/CartDetailPage.js.map +1 -1
  45. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js +200 -195
  46. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js.map +1 -1
  47. package/dist/kadaikodi/pages/customer/CheckoutPage.js +95 -89
  48. package/dist/kadaikodi/pages/customer/CheckoutPage.js.map +1 -1
  49. package/dist/kadaikodi/pages/customer/CustomerDashboard.js +430 -387
  50. package/dist/kadaikodi/pages/customer/CustomerDashboard.js.map +1 -1
  51. package/dist/kadaikodi/pages/customer/CustomerProfilePage.js +488 -478
  52. package/dist/kadaikodi/pages/customer/CustomerProfilePage.js.map +1 -1
  53. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js +523 -512
  54. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
  55. package/dist/kadaikodi/pages/customer/FavoritesPage.js +83 -75
  56. package/dist/kadaikodi/pages/customer/FavoritesPage.js.map +1 -1
  57. package/dist/kadaikodi/pages/customer/OrderHistoryPage.js +116 -108
  58. package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
  59. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +67 -61
  60. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
  61. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js +90 -73
  62. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js.map +1 -1
  63. package/dist/kadaikodi/pages/customer/ReviewsPage.js +80 -72
  64. package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
  65. package/dist/kadaikodi/pages/customer/SavedAddressesPage.js +70 -53
  66. package/dist/kadaikodi/pages/customer/SavedAddressesPage.js.map +1 -1
  67. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js +289 -255
  68. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
  69. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +92 -84
  70. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  71. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js +63 -55
  72. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  73. package/dist/kadaikodi/pages/investor/InvestorDashboard.js +339 -311
  74. package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
  75. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +40 -32
  76. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  77. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js +174 -150
  78. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js.map +1 -1
  79. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js +385 -381
  80. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
  81. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +302 -273
  82. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
  83. package/dist/kadaikodi/pages/worker/WorkerDashboard.js +87 -59
  84. package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
  85. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +82 -75
  86. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
  87. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +81 -77
  88. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
  89. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +78 -71
  90. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
  91. package/package.json +2 -2
@@ -1,22 +1,24 @@
1
1
  import { useKadaikodi as e } from "../../context/KadaikodiContext.js";
2
2
  import { cn as t } from "../../utils/cn.js";
3
3
  import { PageLayout as n } from "../../components/PageLayout.js";
4
- import { useDashboardStats as r, useOrders as i, useProviders as a } from "../../hooks/useKadaikodiApi.js";
5
- import { formatCurrency as o } from "../../utils/formatters.js";
6
- import { useCallback as s } from "react";
7
- import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
- import { ArrowRight as l, Clock as u, CreditCard as d, Heart as f, Lightbulb as p, MapPin as m, Navigation as h, Package as g, Search as _, ShoppingBag as v, Star as y, TrendingUp as b, User as x, Zap as S } from "lucide-react";
4
+ import { EmptyState as r } from "../../components/EmptyState.js";
5
+ import { useDashboardStats as i, useOrders as a, useProviders as o } from "../../hooks/useKadaikodiApi.js";
6
+ import { formatCurrency as s } from "../../utils/formatters.js";
7
+ import { useCallback as c } from "react";
8
+ import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
+ import { ArrowRight as u, Clock as d, CreditCard as f, Heart as p, Lightbulb as m, MapPin as h, Navigation as g, Package as _, Search as v, Star as y, TrendingUp as b, User as x, Zap as S } from "lucide-react";
9
10
  import { jsx as C, jsxs as w } from "react/jsx-runtime";
11
+ import { EmphasisPanel as T, NextSteps as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
10
12
  //#region src/kadaikodi/pages/customer/CustomerDashboard.tsx
11
- function T() {
13
+ function O() {
12
14
  let e = (/* @__PURE__ */ new Date()).getHours();
13
15
  return e < 12 ? "Good morning" : e < 17 ? "Good afternoon" : "Good evening";
14
16
  }
15
- function E() {
16
- let { navigateTo: E, currentUser: D } = e(), { t: O } = c(), { data: k = [], isLoading: A } = i({ customerId: D?.id }), { data: j = [], isLoading: M } = a(), { data: N, isLoading: P } = r(), F = A || M || P, I = s((e, t) => {
17
- let n = O(e);
17
+ function k() {
18
+ let { navigateTo: k, currentUser: A } = e(), { t: j } = l(), { data: M = [], isLoading: N } = a({ customerId: A?.id }), { data: P = [], isLoading: F } = o(), { data: I, isLoading: L } = i(), R = N || F || L, z = c((e, t) => {
19
+ let n = j(e);
18
20
  return n === e ? t : n;
19
- }, [O]), L = D?.firstName ?? D?.name ?? "Customer", R = [
21
+ }, [j]), B = A?.firstName ?? A?.name ?? "Customer", V = [
20
22
  {
21
23
  id: "1",
22
24
  type: "suggestion",
@@ -41,12 +43,12 @@ function E() {
41
43
  confidence: 88,
42
44
  action: "View Carts"
43
45
  }
44
- ], z = k.slice(0, 3), B = j.slice(0, 3), V = {
45
- totalOrders: k.length,
46
- totalSpent: k.reduce((e, t) => e + t.total, 0),
46
+ ], H = M.slice(0, 3), U = P.slice(0, 3), W = {
47
+ totalOrders: M.length,
48
+ totalSpent: M.reduce((e, t) => e + t.total, 0),
47
49
  favoriteCount: 6,
48
50
  avgRating: 4.5
49
- }, H = (e) => {
51
+ }, G = (e) => {
50
52
  switch (e) {
51
53
  case "delivered": return "bg-status-success-bg-subtle text-status-success-text";
52
54
  case "preparing": return "bg-status-warning-bg-subtle text-status-warning-text";
@@ -55,14 +57,14 @@ function E() {
55
57
  case "cancelled": return "bg-status-error-bg-subtle text-status-error-text";
56
58
  default: return "bg-bg-sunken text-text-secondary";
57
59
  }
58
- }, U = (e) => {
60
+ }, K = (e) => {
59
61
  switch (e) {
60
- case "suggestion": return /* @__PURE__ */ C(p, { className: "h-4 w-4" });
62
+ case "suggestion": return /* @__PURE__ */ C(m, { className: "h-4 w-4" });
61
63
  case "opportunity": return /* @__PURE__ */ C(b, { className: "h-4 w-4" });
62
64
  case "trend": return /* @__PURE__ */ C(S, { className: "h-4 w-4" });
63
- default: return /* @__PURE__ */ C(p, { className: "h-4 w-4" });
65
+ default: return /* @__PURE__ */ C(m, { className: "h-4 w-4" });
64
66
  }
65
- }, W = (e) => {
67
+ }, q = (e) => {
66
68
  switch (e) {
67
69
  case "suggestion": return "bg-[var(--color-accent-soft)] text-text-primary border-border-focus/20";
68
70
  case "opportunity": return "bg-status-success-bg-subtle text-status-success-text border-status-success-text/20";
@@ -70,427 +72,468 @@ function E() {
70
72
  default: return "bg-bg-sunken text-text-secondary border-border-subtle";
71
73
  }
72
74
  };
73
- return F ? /* @__PURE__ */ C(n, {
74
- title: I("kadaikodi.customerDashboard.title", "Dashboard"),
75
+ return R ? /* @__PURE__ */ C(n, {
76
+ title: z("kadaikodi.customerDashboard.title", "Dashboard"),
75
77
  children: /* @__PURE__ */ C("div", {
76
78
  className: "flex items-center justify-center py-20",
77
79
  children: /* @__PURE__ */ w("div", {
78
80
  className: "text-center",
79
81
  children: [/* @__PURE__ */ C("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-foreground" }), /* @__PURE__ */ C("p", {
80
82
  className: "text-sm text-text-secondary",
81
- children: I("kadaikodi.customerDashboard.loading", "Loading your dashboard...")
83
+ children: z("kadaikodi.customerDashboard.loading", "Loading your dashboard...")
82
84
  })]
83
85
  })
84
86
  })
85
87
  }) : /* @__PURE__ */ w(n, {
86
- title: I("kadaikodi.customerDashboard.welcomeBack", "Welcome Back!"),
87
- description: `${T()}, ${L}`,
88
- children: [V && /* @__PURE__ */ w("div", {
89
- className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
90
- children: [
91
- /* @__PURE__ */ C("div", {
92
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
93
- children: /* @__PURE__ */ w("div", {
94
- className: "flex items-center gap-3",
95
- children: [/* @__PURE__ */ C("div", {
96
- className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
97
- children: /* @__PURE__ */ C(g, { className: "h-5 w-5 text-text-secondary" })
98
- }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
99
- className: "text-2xl font-bold text-text-primary",
100
- children: V.totalOrders
101
- }), /* @__PURE__ */ C("p", {
102
- className: "text-xs text-text-secondary",
103
- children: I("kadaikodi.customerDashboard.totalOrders", "Total Orders")
104
- })] })]
105
- })
106
- }),
107
- /* @__PURE__ */ C("div", {
108
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
109
- children: /* @__PURE__ */ w("div", {
110
- className: "flex items-center gap-3",
111
- children: [/* @__PURE__ */ C("div", {
112
- className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
113
- children: /* @__PURE__ */ C(d, { className: "h-5 w-5 text-text-secondary" })
114
- }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
115
- className: "text-2xl font-bold text-text-primary",
116
- children: o(V.totalSpent, { minimumFractionDigits: 0 })
117
- }), /* @__PURE__ */ C("p", {
118
- className: "text-xs text-text-secondary",
119
- children: I("kadaikodi.customerDashboard.totalSpent", "Total Spent")
120
- })] })]
121
- })
122
- }),
123
- /* @__PURE__ */ C("div", {
124
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
125
- children: /* @__PURE__ */ w("div", {
126
- className: "flex items-center gap-3",
127
- children: [/* @__PURE__ */ C("div", {
128
- className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
129
- children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-text-secondary" })
130
- }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
131
- className: "text-2xl font-bold text-text-primary",
132
- children: V.favoriteCount
133
- }), /* @__PURE__ */ C("p", {
134
- className: "text-xs text-text-secondary",
135
- children: I("kadaikodi.customerDashboard.favoriteCarts", "Favorite Carts")
136
- })] })]
137
- })
138
- }),
139
- /* @__PURE__ */ C("div", {
140
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
141
- children: /* @__PURE__ */ w("div", {
142
- className: "flex items-center gap-3",
143
- children: [/* @__PURE__ */ C("div", {
144
- className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
145
- children: /* @__PURE__ */ C(y, { className: "h-5 w-5 text-text-secondary" })
146
- }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
147
- className: "text-2xl font-bold text-text-primary",
148
- children: V.avgRating.toFixed(1)
149
- }), /* @__PURE__ */ C("p", {
150
- className: "text-xs text-text-secondary",
151
- children: I("kadaikodi.customerDashboard.avgRatingGiven", "Avg Rating Given")
152
- })] })]
153
- })
154
- })
155
- ]
156
- }), /* @__PURE__ */ w("div", {
157
- className: "mt-8 grid grid-cols-1 gap-8 lg:grid-cols-3",
158
- children: [/* @__PURE__ */ w("div", {
159
- className: "lg:col-span-2 space-y-8",
160
- children: [
161
- /* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
162
- className: "text-lg font-semibold text-text-primary mb-4",
163
- children: I("kadaikodi.customerDashboard.quickActions", "Quick Actions")
164
- }), /* @__PURE__ */ w("div", {
165
- className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
166
- children: [
167
- /* @__PURE__ */ w("button", {
168
- type: "button",
169
- onClick: () => E("/customer/carts"),
170
- 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"),
88
+ title: z("kadaikodi.customerDashboard.welcomeBack", "Welcome Back!"),
89
+ description: `${O()}, ${B}`,
90
+ children: [
91
+ /* @__PURE__ */ C(D, {
92
+ className: "mb-6",
93
+ 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."
94
+ }),
95
+ /* @__PURE__ */ C(E, {
96
+ storageKey: "kadaikodi-customer-dashboard",
97
+ className: "mb-6",
98
+ steps: [
99
+ {
100
+ id: "discover",
101
+ label: "Discover carts near you",
102
+ description: "Browse open mobile carts in your area and view their menus.",
103
+ onClick: () => k("/customer/carts")
104
+ },
105
+ {
106
+ id: "address",
107
+ label: "Set your delivery address",
108
+ description: "Save your home or work address for faster checkout.",
109
+ onClick: () => k("/customer/addresses")
110
+ },
111
+ {
112
+ id: "payment",
113
+ label: "Add a payment method",
114
+ description: "Securely store a card or UPI so ordering is one tap.",
115
+ onClick: () => k("/customer/payment-methods")
116
+ }
117
+ ]
118
+ }),
119
+ W && /* @__PURE__ */ w(T, {
120
+ className: "mb-8",
121
+ children: [/* @__PURE__ */ C("h2", {
122
+ className: "mb-4 text-lg font-semibold text-text-primary",
123
+ children: z("kadaikodi.customerDashboard.yourActivity", "Your Activity")
124
+ }), /* @__PURE__ */ w("div", {
125
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
126
+ children: [
127
+ /* @__PURE__ */ C("div", {
128
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
129
+ children: /* @__PURE__ */ w("div", {
130
+ className: "flex items-center gap-3",
171
131
  children: [/* @__PURE__ */ C("div", {
172
- className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-[var(--color-accent-soft)]",
173
- children: /* @__PURE__ */ C(_, { className: "h-5 w-5 text-text-primary" })
174
- }), /* @__PURE__ */ w("div", {
175
- className: "min-w-0",
176
- children: [/* @__PURE__ */ C("p", {
177
- className: "text-sm font-semibold text-text-primary",
178
- children: I("kadaikodi.customerDashboard.discoverCarts", "Discover Carts")
179
- }), /* @__PURE__ */ C("p", {
180
- className: "text-xs text-text-secondary",
181
- children: I("kadaikodi.customerDashboard.findNearbyCarts", "Find nearby carts")
182
- })]
183
- })]
184
- }),
185
- /* @__PURE__ */ w("button", {
186
- type: "button",
187
- onClick: () => E("/customer/orders"),
188
- 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"),
132
+ className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
133
+ children: /* @__PURE__ */ C(_, { className: "h-5 w-5 text-text-secondary" })
134
+ }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
135
+ className: "text-2xl font-bold text-text-primary",
136
+ children: W.totalOrders
137
+ }), /* @__PURE__ */ C("p", {
138
+ className: "text-xs text-text-secondary",
139
+ children: z("kadaikodi.customerDashboard.totalOrders", "Total Orders")
140
+ })] })]
141
+ })
142
+ }),
143
+ /* @__PURE__ */ C("div", {
144
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
145
+ children: /* @__PURE__ */ w("div", {
146
+ className: "flex items-center gap-3",
189
147
  children: [/* @__PURE__ */ C("div", {
190
- className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-success-bg-subtle",
191
- children: /* @__PURE__ */ C(u, { className: "h-5 w-5 text-status-success-text" })
192
- }), /* @__PURE__ */ w("div", {
193
- className: "min-w-0",
194
- children: [/* @__PURE__ */ C("p", {
195
- className: "text-sm font-semibold text-text-primary",
196
- children: I("kadaikodi.customerDashboard.orderHistory", "Order History")
197
- }), /* @__PURE__ */ C("p", {
198
- className: "text-xs text-text-secondary",
199
- children: I("kadaikodi.customerDashboard.viewPastOrders", "View past orders")
200
- })]
201
- })]
202
- }),
203
- /* @__PURE__ */ w("button", {
204
- type: "button",
205
- onClick: () => E("/customer/favorites"),
206
- 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"),
148
+ className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
149
+ children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-text-secondary" })
150
+ }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
151
+ className: "text-2xl font-bold text-text-primary",
152
+ children: s(W.totalSpent, { minimumFractionDigits: 0 })
153
+ }), /* @__PURE__ */ C("p", {
154
+ className: "text-xs text-text-secondary",
155
+ children: z("kadaikodi.customerDashboard.totalSpent", "Total Spent")
156
+ })] })]
157
+ })
158
+ }),
159
+ /* @__PURE__ */ C("div", {
160
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
161
+ children: /* @__PURE__ */ w("div", {
162
+ className: "flex items-center gap-3",
207
163
  children: [/* @__PURE__ */ C("div", {
208
- className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-error-bg-subtle",
209
- children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-status-error-text" })
210
- }), /* @__PURE__ */ w("div", {
211
- className: "min-w-0",
212
- children: [/* @__PURE__ */ C("p", {
213
- className: "text-sm font-semibold text-text-primary",
214
- children: I("kadaikodi.customerDashboard.favorites", "Favorites")
215
- }), /* @__PURE__ */ C("p", {
216
- className: "text-xs text-text-secondary",
217
- children: I("kadaikodi.customerDashboard.savedCarts", "Saved carts")
218
- })]
219
- })]
164
+ className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
165
+ children: /* @__PURE__ */ C(p, { className: "h-5 w-5 text-text-secondary" })
166
+ }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
167
+ className: "text-2xl font-bold text-text-primary",
168
+ children: W.favoriteCount
169
+ }), /* @__PURE__ */ C("p", {
170
+ className: "text-xs text-text-secondary",
171
+ children: z("kadaikodi.customerDashboard.favoriteCarts", "Favorite Carts")
172
+ })] })]
220
173
  })
221
- ]
222
- })] }),
223
- /* @__PURE__ */ w("section", { children: [/* @__PURE__ */ w("div", {
224
- className: "flex items-center justify-between mb-4",
225
- children: [/* @__PURE__ */ C("h2", {
226
- className: "text-lg font-semibold text-text-primary",
227
- children: I("kadaikodi.customerDashboard.recentOrders", "Recent Orders")
228
- }), /* @__PURE__ */ w("button", {
229
- type: "button",
230
- onClick: () => E("/customer/orders"),
231
- className: "flex items-center gap-1 text-sm font-medium text-text-secondary hover:text-text-primary transition-colors",
232
- children: [I("kadaikodi.common.viewAll", "View All"), /* @__PURE__ */ C(l, { className: "h-4 w-4" })]
233
- })]
234
- }), z.length > 0 ? /* @__PURE__ */ C("div", {
235
- className: "space-y-3",
236
- children: z.map((e) => /* @__PURE__ */ C("div", {
174
+ }),
175
+ /* @__PURE__ */ C("div", {
237
176
  className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
238
177
  children: /* @__PURE__ */ w("div", {
239
- className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
178
+ className: "flex items-center gap-3",
179
+ children: [/* @__PURE__ */ C("div", {
180
+ className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
181
+ children: /* @__PURE__ */ C(y, { className: "h-5 w-5 text-text-secondary" })
182
+ }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
183
+ className: "text-2xl font-bold text-text-primary",
184
+ children: W.avgRating.toFixed(1)
185
+ }), /* @__PURE__ */ C("p", {
186
+ className: "text-xs text-text-secondary",
187
+ children: z("kadaikodi.customerDashboard.avgRatingGiven", "Avg Rating Given")
188
+ })] })]
189
+ })
190
+ })
191
+ ]
192
+ })]
193
+ }),
194
+ /* @__PURE__ */ w("div", {
195
+ className: "mt-8 grid grid-cols-1 gap-8 lg:grid-cols-3",
196
+ children: [/* @__PURE__ */ w("div", {
197
+ className: "lg:col-span-2 space-y-8",
198
+ children: [
199
+ /* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
200
+ className: "text-lg font-semibold text-text-primary mb-4",
201
+ children: z("kadaikodi.customerDashboard.quickActions", "Quick Actions")
202
+ }), /* @__PURE__ */ w("div", {
203
+ className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
204
+ children: [
205
+ /* @__PURE__ */ w("button", {
206
+ type: "button",
207
+ onClick: () => k("/customer/carts"),
208
+ 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"),
209
+ children: [/* @__PURE__ */ C("div", {
210
+ className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-[var(--color-accent-soft)]",
211
+ children: /* @__PURE__ */ C(v, { className: "h-5 w-5 text-text-primary" })
212
+ }), /* @__PURE__ */ w("div", {
213
+ className: "min-w-0",
214
+ children: [/* @__PURE__ */ C("p", {
215
+ className: "text-sm font-semibold text-text-primary",
216
+ children: z("kadaikodi.customerDashboard.discoverCarts", "Discover Carts")
217
+ }), /* @__PURE__ */ C("p", {
218
+ className: "text-xs text-text-secondary",
219
+ children: z("kadaikodi.customerDashboard.findNearbyCarts", "Find nearby carts")
220
+ })]
221
+ })]
222
+ }),
223
+ /* @__PURE__ */ w("button", {
224
+ type: "button",
225
+ onClick: () => k("/customer/orders"),
226
+ 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"),
227
+ children: [/* @__PURE__ */ C("div", {
228
+ className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-success-bg-subtle",
229
+ children: /* @__PURE__ */ C(d, { className: "h-5 w-5 text-status-success-text" })
230
+ }), /* @__PURE__ */ w("div", {
231
+ className: "min-w-0",
232
+ children: [/* @__PURE__ */ C("p", {
233
+ className: "text-sm font-semibold text-text-primary",
234
+ children: z("kadaikodi.customerDashboard.orderHistory", "Order History")
235
+ }), /* @__PURE__ */ C("p", {
236
+ className: "text-xs text-text-secondary",
237
+ children: z("kadaikodi.customerDashboard.viewPastOrders", "View past orders")
238
+ })]
239
+ })]
240
+ }),
241
+ /* @__PURE__ */ w("button", {
242
+ type: "button",
243
+ onClick: () => k("/customer/favorites"),
244
+ 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"),
245
+ children: [/* @__PURE__ */ C("div", {
246
+ className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-error-bg-subtle",
247
+ children: /* @__PURE__ */ C(p, { className: "h-5 w-5 text-status-error-text" })
248
+ }), /* @__PURE__ */ w("div", {
249
+ className: "min-w-0",
250
+ children: [/* @__PURE__ */ C("p", {
251
+ className: "text-sm font-semibold text-text-primary",
252
+ children: z("kadaikodi.customerDashboard.favorites", "Favorites")
253
+ }), /* @__PURE__ */ C("p", {
254
+ className: "text-xs text-text-secondary",
255
+ children: z("kadaikodi.customerDashboard.savedCarts", "Saved carts")
256
+ })]
257
+ })]
258
+ })
259
+ ]
260
+ })] }),
261
+ /* @__PURE__ */ w("section", { children: [/* @__PURE__ */ w("div", {
262
+ className: "flex items-center justify-between mb-4",
263
+ children: [/* @__PURE__ */ C("h2", {
264
+ className: "text-lg font-semibold text-text-primary",
265
+ children: z("kadaikodi.customerDashboard.recentOrders", "Recent Orders")
266
+ }), /* @__PURE__ */ w("button", {
267
+ type: "button",
268
+ onClick: () => k("/customer/orders"),
269
+ className: "flex items-center gap-1 text-sm font-medium text-text-secondary hover:text-text-primary transition-colors",
270
+ children: [z("kadaikodi.common.viewAll", "View All"), /* @__PURE__ */ C(u, { className: "h-4 w-4" })]
271
+ })]
272
+ }), H.length > 0 ? /* @__PURE__ */ C("div", {
273
+ className: "space-y-3",
274
+ children: H.map((e) => /* @__PURE__ */ C("div", {
275
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
276
+ children: /* @__PURE__ */ w("div", {
277
+ className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
278
+ children: [/* @__PURE__ */ w("div", {
279
+ className: "flex-1 min-w-0",
280
+ children: [
281
+ /* @__PURE__ */ w("div", {
282
+ className: "flex flex-wrap items-center gap-2 mb-1",
283
+ children: [/* @__PURE__ */ C("h3", {
284
+ className: "text-sm font-semibold text-text-primary",
285
+ children: e.cartName
286
+ }), /* @__PURE__ */ C("span", {
287
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize", G(e.status)),
288
+ children: e.status.replace(/_/g, " ")
289
+ })]
290
+ }),
291
+ /* @__PURE__ */ C("p", {
292
+ className: "text-xs text-text-secondary mb-2 leading-relaxed",
293
+ children: e.items.map((e) => `${e.name} (${e.quantity})`).join(", ")
294
+ }),
295
+ /* @__PURE__ */ w("div", {
296
+ className: "flex flex-wrap items-center gap-3 text-xs text-text-secondary",
297
+ children: [
298
+ /* @__PURE__ */ C("span", {
299
+ className: "font-medium text-text-primary",
300
+ children: s(e.total, { minimumFractionDigits: 0 })
301
+ }),
302
+ /* @__PURE__ */ C("span", { children: new Date(e.orderDate).toLocaleDateString() }),
303
+ e.rating && /* @__PURE__ */ w("span", {
304
+ className: "flex items-center gap-1",
305
+ children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.rating]
306
+ })
307
+ ]
308
+ })
309
+ ]
310
+ }), /* @__PURE__ */ C("button", {
311
+ type: "button",
312
+ onClick: () => k(`/customer/orders/${e.id}`),
313
+ className: "rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
314
+ children: z("kadaikodi.customerDashboard.viewDetails", "View Details")
315
+ })]
316
+ })
317
+ }, e.id))
318
+ }) : /* @__PURE__ */ C(r, {
319
+ illustration: "empty-data",
320
+ title: z("kadaikodi.customerDashboard.noRecentOrders", "No recent orders"),
321
+ description: z("kadaikodi.customerDashboard.noRecentOrdersDesc", "Your orders will show up here once you place one. Discover a cart to get started."),
322
+ action: /* @__PURE__ */ C("button", {
323
+ type: "button",
324
+ onClick: () => k("/customer/carts"),
325
+ className: "rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
326
+ children: z("kadaikodi.customerDashboard.discoverCarts", "Discover Carts")
327
+ })
328
+ })] }),
329
+ /* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
330
+ className: "text-lg font-semibold text-text-primary mb-4",
331
+ children: z("kadaikodi.customerDashboard.recommendedForYou", "Recommended for You")
332
+ }), /* @__PURE__ */ C("div", {
333
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
334
+ children: U.map((e) => /* @__PURE__ */ w("div", {
335
+ className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden shadow-sm hover:shadow-md transition-shadow",
240
336
  children: [/* @__PURE__ */ w("div", {
241
- className: "flex-1 min-w-0",
337
+ className: "relative h-40",
338
+ children: [/* @__PURE__ */ C("img", {
339
+ src: e.image,
340
+ alt: e.name,
341
+ className: "h-full w-full object-cover"
342
+ }), /* @__PURE__ */ C("div", {
343
+ className: "absolute top-2 right-2",
344
+ children: /* @__PURE__ */ C("span", {
345
+ 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"),
346
+ children: e.isOpen ? z("kadaikodi.customerDashboard.open", "Open") : z("kadaikodi.customerDashboard.closed", "Closed")
347
+ })
348
+ })]
349
+ }), /* @__PURE__ */ w("div", {
350
+ className: "p-4",
242
351
  children: [
243
352
  /* @__PURE__ */ w("div", {
244
- className: "flex flex-wrap items-center gap-2 mb-1",
245
- children: [/* @__PURE__ */ C("h3", {
246
- className: "text-sm font-semibold text-text-primary",
247
- children: e.cartName
248
- }), /* @__PURE__ */ C("span", {
249
- className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize", H(e.status)),
250
- children: e.status.replace(/_/g, " ")
353
+ className: "flex items-start justify-between mb-2",
354
+ children: [/* @__PURE__ */ w("div", {
355
+ className: "min-w-0 flex-1",
356
+ children: [/* @__PURE__ */ C("h3", {
357
+ className: "text-sm font-semibold text-text-primary",
358
+ children: e.name
359
+ }), /* @__PURE__ */ C("p", {
360
+ className: "text-xs text-text-secondary",
361
+ children: e.category
362
+ })]
363
+ }), /* @__PURE__ */ w("div", {
364
+ className: "flex items-center gap-1 text-xs",
365
+ children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ C("span", {
366
+ className: "font-medium text-text-primary",
367
+ children: e.rating
368
+ })]
251
369
  })]
252
370
  }),
253
- /* @__PURE__ */ C("p", {
254
- className: "text-xs text-text-secondary mb-2 leading-relaxed",
255
- children: e.items.map((e) => `${e.name} (${e.quantity})`).join(", ")
256
- }),
257
371
  /* @__PURE__ */ w("div", {
258
- className: "flex flex-wrap items-center gap-3 text-xs text-text-secondary",
372
+ className: "flex items-center gap-3 text-xs text-text-secondary mb-3",
373
+ children: [/* @__PURE__ */ w("span", {
374
+ className: "flex items-center gap-1",
375
+ children: [
376
+ /* @__PURE__ */ C(h, { className: "h-3 w-3" }),
377
+ e.distance,
378
+ "km away"
379
+ ]
380
+ }), /* @__PURE__ */ w("span", {
381
+ className: "flex items-center gap-1",
382
+ children: [
383
+ /* @__PURE__ */ C(d, { className: "h-3 w-3" }),
384
+ e.estimatedTime,
385
+ " mins"
386
+ ]
387
+ })]
388
+ }),
389
+ /* @__PURE__ */ C("button", {
390
+ type: "button",
391
+ disabled: !e.isOpen,
392
+ onClick: () => e.isOpen && k(`/customer/carts/${e.id}`),
393
+ className: t("w-full rounded-lg py-2 text-sm font-medium transition-opacity", e.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
394
+ children: e.isOpen ? z("kadaikodi.customerDashboard.viewMenu", "View Menu") : z("kadaikodi.customerDashboard.currentlyClosed", "Currently Closed")
395
+ })
396
+ ]
397
+ })]
398
+ }, e.id))
399
+ })] })
400
+ ]
401
+ }), /* @__PURE__ */ w("div", {
402
+ className: "space-y-6",
403
+ children: [
404
+ /* @__PURE__ */ w("div", {
405
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
406
+ children: [/* @__PURE__ */ C("h3", {
407
+ className: "text-base font-semibold text-text-primary mb-4",
408
+ children: z("kadaikodi.customerDashboard.personalizedRecommendations", "Personalized Recommendations")
409
+ }), /* @__PURE__ */ C("div", {
410
+ className: "space-y-3",
411
+ children: V.map((e) => /* @__PURE__ */ C("div", {
412
+ className: t("rounded-lg border p-3", q(e.type)),
413
+ children: /* @__PURE__ */ w("div", {
414
+ className: "flex items-start gap-2",
415
+ children: [/* @__PURE__ */ C("div", {
416
+ className: "mt-0.5 shrink-0",
417
+ children: K(e.type)
418
+ }), /* @__PURE__ */ w("div", {
419
+ className: "flex-1 min-w-0",
259
420
  children: [
260
- /* @__PURE__ */ C("span", {
261
- className: "font-medium text-text-primary",
262
- children: o(e.total, { minimumFractionDigits: 0 })
421
+ /* @__PURE__ */ w("div", {
422
+ className: "flex items-center justify-between gap-2",
423
+ children: [/* @__PURE__ */ C("p", {
424
+ className: "text-xs font-semibold",
425
+ children: e.title
426
+ }), /* @__PURE__ */ w("span", {
427
+ className: "text-[10px] opacity-70",
428
+ children: [e.confidence, "%"]
429
+ })]
430
+ }),
431
+ /* @__PURE__ */ C("p", {
432
+ className: "mt-1 text-xs opacity-80 leading-relaxed",
433
+ children: e.description
263
434
  }),
264
- /* @__PURE__ */ C("span", { children: new Date(e.orderDate).toLocaleDateString() }),
265
- e.rating && /* @__PURE__ */ w("span", {
266
- className: "flex items-center gap-1",
267
- children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.rating]
435
+ /* @__PURE__ */ C("button", {
436
+ type: "button",
437
+ onClick: () => k("/customer/carts"),
438
+ className: "mt-2 text-[10px] font-semibold underline underline-offset-2",
439
+ children: e.action
268
440
  })
269
441
  ]
270
- })
271
- ]
272
- }), /* @__PURE__ */ C("button", {
273
- type: "button",
274
- onClick: () => E(`/customer/orders/${e.id}`),
275
- className: "rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
276
- children: I("kadaikodi.customerDashboard.viewDetails", "View Details")
277
- })]
278
- })
279
- }, e.id))
280
- }) : /* @__PURE__ */ w("div", {
281
- className: "rounded-lg border border-border-subtle bg-bg-surface p-8 text-center",
282
- children: [/* @__PURE__ */ C(v, { className: "mx-auto h-10 w-10 text-text-secondary/50" }), /* @__PURE__ */ C("p", {
283
- className: "mt-3 text-sm text-text-secondary",
284
- children: I("kadaikodi.customerDashboard.noRecentOrders", "No recent orders")
285
- })]
286
- })] }),
287
- /* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
288
- className: "text-lg font-semibold text-text-primary mb-4",
289
- children: I("kadaikodi.customerDashboard.recommendedForYou", "Recommended for You")
290
- }), /* @__PURE__ */ C("div", {
291
- className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
292
- children: B.map((e) => /* @__PURE__ */ w("div", {
293
- className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden shadow-sm hover:shadow-md transition-shadow",
294
- children: [/* @__PURE__ */ w("div", {
295
- className: "relative h-40",
296
- children: [/* @__PURE__ */ C("img", {
297
- src: e.image,
298
- alt: e.name,
299
- className: "h-full w-full object-cover"
300
- }), /* @__PURE__ */ C("div", {
301
- className: "absolute top-2 right-2",
302
- children: /* @__PURE__ */ C("span", {
303
- 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"),
304
- children: e.isOpen ? I("kadaikodi.customerDashboard.open", "Open") : I("kadaikodi.customerDashboard.closed", "Closed")
442
+ })]
305
443
  })
306
- })]
444
+ }, e.id))
445
+ })]
446
+ }),
447
+ /* @__PURE__ */ w("div", {
448
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
449
+ children: [/* @__PURE__ */ C("h3", {
450
+ className: "text-base font-semibold text-text-primary mb-3",
451
+ children: z("kadaikodi.customerDashboard.quickLinks", "Quick Links")
307
452
  }), /* @__PURE__ */ w("div", {
308
- className: "p-4",
453
+ className: "space-y-2",
309
454
  children: [
310
- /* @__PURE__ */ w("div", {
311
- className: "flex items-start justify-between mb-2",
312
- children: [/* @__PURE__ */ w("div", {
313
- className: "min-w-0 flex-1",
314
- children: [/* @__PURE__ */ C("h3", {
315
- className: "text-sm font-semibold text-text-primary",
316
- children: e.name
317
- }), /* @__PURE__ */ C("p", {
318
- className: "text-xs text-text-secondary",
319
- children: e.category
320
- })]
321
- }), /* @__PURE__ */ w("div", {
322
- className: "flex items-center gap-1 text-xs",
323
- children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ C("span", {
324
- className: "font-medium text-text-primary",
325
- children: e.rating
326
- })]
327
- })]
455
+ /* @__PURE__ */ w("button", {
456
+ type: "button",
457
+ onClick: () => k("/customer/profile"),
458
+ 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",
459
+ children: [/* @__PURE__ */ C(x, { className: "h-4 w-4 text-text-secondary" }), z("kadaikodi.customerDashboard.profileSettings", "Profile Settings")]
328
460
  }),
329
- /* @__PURE__ */ w("div", {
330
- className: "flex items-center gap-3 text-xs text-text-secondary mb-3",
331
- children: [/* @__PURE__ */ w("span", {
332
- className: "flex items-center gap-1",
333
- children: [
334
- /* @__PURE__ */ C(m, { className: "h-3 w-3" }),
335
- e.distance,
336
- "km away"
337
- ]
338
- }), /* @__PURE__ */ w("span", {
339
- className: "flex items-center gap-1",
340
- children: [
341
- /* @__PURE__ */ C(u, { className: "h-3 w-3" }),
342
- e.estimatedTime,
343
- " mins"
344
- ]
345
- })]
461
+ /* @__PURE__ */ w("button", {
462
+ type: "button",
463
+ onClick: () => k("/customer/addresses"),
464
+ 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",
465
+ children: [/* @__PURE__ */ C(h, { className: "h-4 w-4 text-text-secondary" }), z("kadaikodi.customerDashboard.savedAddresses", "Saved Addresses")]
346
466
  }),
347
- /* @__PURE__ */ C("button", {
467
+ /* @__PURE__ */ w("button", {
348
468
  type: "button",
349
- disabled: !e.isOpen,
350
- onClick: () => e.isOpen && E(`/customer/carts/${e.id}`),
351
- className: t("w-full rounded-lg py-2 text-sm font-medium transition-opacity", e.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
352
- children: e.isOpen ? I("kadaikodi.customerDashboard.viewMenu", "View Menu") : I("kadaikodi.customerDashboard.currentlyClosed", "Currently Closed")
469
+ onClick: () => k("/customer/payment-methods"),
470
+ 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",
471
+ children: [/* @__PURE__ */ C(f, { className: "h-4 w-4 text-text-secondary" }), z("kadaikodi.customerDashboard.paymentMethods", "Payment Methods")]
353
472
  })
354
473
  ]
355
474
  })]
356
- }, e.id))
357
- })] })
358
- ]
359
- }), /* @__PURE__ */ w("div", {
360
- className: "space-y-6",
361
- children: [
362
- /* @__PURE__ */ w("div", {
363
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
364
- children: [/* @__PURE__ */ C("h3", {
365
- className: "text-base font-semibold text-text-primary mb-4",
366
- children: I("kadaikodi.customerDashboard.personalizedRecommendations", "Personalized Recommendations")
367
- }), /* @__PURE__ */ C("div", {
368
- className: "space-y-3",
369
- children: R.map((e) => /* @__PURE__ */ C("div", {
370
- className: t("rounded-lg border p-3", W(e.type)),
371
- children: /* @__PURE__ */ w("div", {
372
- className: "flex items-start gap-2",
373
- children: [/* @__PURE__ */ C("div", {
374
- className: "mt-0.5 shrink-0",
375
- children: U(e.type)
376
- }), /* @__PURE__ */ w("div", {
475
+ }),
476
+ /* @__PURE__ */ w("div", {
477
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
478
+ children: [
479
+ /* @__PURE__ */ C("h3", {
480
+ className: "text-base font-semibold text-text-primary mb-3",
481
+ children: z("kadaikodi.customerDashboard.currentLocation", "Current Location")
482
+ }),
483
+ /* @__PURE__ */ w("div", {
484
+ className: "flex items-start gap-3",
485
+ children: [/* @__PURE__ */ C(g, { className: "h-4 w-4 text-text-primary mt-0.5 shrink-0" }), /* @__PURE__ */ w("div", {
377
486
  className: "flex-1 min-w-0",
378
487
  children: [
379
- /* @__PURE__ */ w("div", {
380
- className: "flex items-center justify-between gap-2",
381
- children: [/* @__PURE__ */ C("p", {
382
- className: "text-xs font-semibold",
383
- children: e.title
384
- }), /* @__PURE__ */ w("span", {
385
- className: "text-[10px] opacity-70",
386
- children: [e.confidence, "%"]
387
- })]
488
+ /* @__PURE__ */ C("p", {
489
+ className: "text-sm font-medium text-text-primary",
490
+ children: "Koramangala"
388
491
  }),
389
492
  /* @__PURE__ */ C("p", {
390
- className: "mt-1 text-xs opacity-80 leading-relaxed",
391
- children: e.description
493
+ className: "text-xs text-text-secondary",
494
+ children: "80 Feet Road, 6th Block"
392
495
  }),
393
- /* @__PURE__ */ C("button", {
394
- type: "button",
395
- onClick: () => E("/customer/carts"),
396
- className: "mt-2 text-[10px] font-semibold underline underline-offset-2",
397
- children: e.action
496
+ /* @__PURE__ */ C("p", {
497
+ className: "text-xs text-text-secondary",
498
+ children: "Bangalore, Karnataka"
398
499
  })
399
500
  ]
400
501
  })]
502
+ }),
503
+ /* @__PURE__ */ C("button", {
504
+ type: "button",
505
+ onClick: () => k("/customer/addresses"),
506
+ className: "mt-3 w-full rounded-lg border border-border-subtle px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
507
+ children: z("kadaikodi.customerDashboard.updateLocation", "Update Location")
401
508
  })
402
- }, e.id))
403
- })]
404
- }),
405
- /* @__PURE__ */ w("div", {
406
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
407
- children: [/* @__PURE__ */ C("h3", {
408
- className: "text-base font-semibold text-text-primary mb-3",
409
- children: I("kadaikodi.customerDashboard.quickLinks", "Quick Links")
410
- }), /* @__PURE__ */ w("div", {
411
- className: "space-y-2",
509
+ ]
510
+ }),
511
+ /* @__PURE__ */ w("div", {
512
+ className: "rounded-lg bg-gradient-to-r from-action-primary-bg/10 to-accent-purple/10 border border-border-focus/20 p-5",
412
513
  children: [
413
- /* @__PURE__ */ w("button", {
414
- type: "button",
415
- onClick: () => E("/customer/profile"),
416
- 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",
417
- children: [/* @__PURE__ */ C(x, { className: "h-4 w-4 text-text-secondary" }), I("kadaikodi.customerDashboard.profileSettings", "Profile Settings")]
514
+ /* @__PURE__ */ C("h3", {
515
+ className: "text-base font-semibold text-text-primary mb-2",
516
+ children: z("kadaikodi.customerDashboard.specialOffers", "Special Offers")
418
517
  }),
419
- /* @__PURE__ */ w("button", {
420
- type: "button",
421
- onClick: () => E("/customer/addresses"),
422
- 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",
423
- children: [/* @__PURE__ */ C(m, { className: "h-4 w-4 text-text-secondary" }), I("kadaikodi.customerDashboard.savedAddresses", "Saved Addresses")]
518
+ /* @__PURE__ */ C("p", {
519
+ className: "text-xs text-text-secondary mb-3 leading-relaxed",
520
+ children: z("kadaikodi.customerDashboard.specialOffersDescription", "Get 25% off on your next order from featured carts")
424
521
  }),
425
- /* @__PURE__ */ w("button", {
522
+ /* @__PURE__ */ C("button", {
426
523
  type: "button",
427
- onClick: () => E("/customer/payment-methods"),
428
- 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",
429
- children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-text-secondary" }), I("kadaikodi.customerDashboard.paymentMethods", "Payment Methods")]
524
+ onClick: () => k("/customer/carts"),
525
+ className: "w-full rounded-lg bg-foreground px-3 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
526
+ children: z("kadaikodi.customerDashboard.viewOffers", "View Offers")
430
527
  })
431
528
  ]
432
- })]
433
- }),
434
- /* @__PURE__ */ w("div", {
435
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
436
- children: [
437
- /* @__PURE__ */ C("h3", {
438
- className: "text-base font-semibold text-text-primary mb-3",
439
- children: I("kadaikodi.customerDashboard.currentLocation", "Current Location")
440
- }),
441
- /* @__PURE__ */ w("div", {
442
- className: "flex items-start gap-3",
443
- children: [/* @__PURE__ */ C(h, { className: "h-4 w-4 text-text-primary mt-0.5 shrink-0" }), /* @__PURE__ */ w("div", {
444
- className: "flex-1 min-w-0",
445
- children: [
446
- /* @__PURE__ */ C("p", {
447
- className: "text-sm font-medium text-text-primary",
448
- children: "Koramangala"
449
- }),
450
- /* @__PURE__ */ C("p", {
451
- className: "text-xs text-text-secondary",
452
- children: "80 Feet Road, 6th Block"
453
- }),
454
- /* @__PURE__ */ C("p", {
455
- className: "text-xs text-text-secondary",
456
- children: "Bangalore, Karnataka"
457
- })
458
- ]
459
- })]
460
- }),
461
- /* @__PURE__ */ C("button", {
462
- type: "button",
463
- onClick: () => E("/customer/addresses"),
464
- className: "mt-3 w-full rounded-lg border border-border-subtle px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
465
- children: I("kadaikodi.customerDashboard.updateLocation", "Update Location")
466
- })
467
- ]
468
- }),
469
- /* @__PURE__ */ w("div", {
470
- className: "rounded-lg bg-gradient-to-r from-action-primary-bg/10 to-accent-purple/10 border border-border-focus/20 p-5",
471
- children: [
472
- /* @__PURE__ */ C("h3", {
473
- className: "text-base font-semibold text-text-primary mb-2",
474
- children: I("kadaikodi.customerDashboard.specialOffers", "Special Offers")
475
- }),
476
- /* @__PURE__ */ C("p", {
477
- className: "text-xs text-text-secondary mb-3 leading-relaxed",
478
- children: I("kadaikodi.customerDashboard.specialOffersDescription", "Get 25% off on your next order from featured carts")
479
- }),
480
- /* @__PURE__ */ C("button", {
481
- type: "button",
482
- onClick: () => E("/customer/carts"),
483
- className: "w-full rounded-lg bg-foreground px-3 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
484
- children: I("kadaikodi.customerDashboard.viewOffers", "View Offers")
485
- })
486
- ]
487
- })
488
- ]
489
- })]
490
- })]
529
+ })
530
+ ]
531
+ })]
532
+ })
533
+ ]
491
534
  });
492
535
  }
493
536
  //#endregion
494
- export { E as CustomerDashboard };
537
+ export { k as CustomerDashboard };
495
538
 
496
539
  //# sourceMappingURL=CustomerDashboard.js.map