@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
@@ -2,53 +2,26 @@ 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
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";
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";
5
+ import { useOrders as i, useProviders as a } from "../../hooks/useKadaikodiApi.js";
6
+ import { formatCurrency as o } from "../../utils/formatters.js";
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";
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
- function O() {
13
+ function C() {
14
14
  let e = (/* @__PURE__ */ new Date()).getHours();
15
15
  return e < 12 ? "Good morning" : e < 17 ? "Good afternoon" : "Good evening";
16
16
  }
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);
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) => {
19
+ let n = E(e);
20
20
  return n === e ? t : n;
21
- }, [j]), B = A?.firstName ?? A?.name ?? "Customer", V = [
22
- {
23
- id: "1",
24
- type: "suggestion",
25
- title: "New Cart Nearby",
26
- description: "Healthy Bowls cart just opened 0.2km from your location. They specialize in acai bowls and smoothies.",
27
- confidence: 92,
28
- action: "Explore Cart"
29
- },
30
- {
31
- id: "2",
32
- type: "opportunity",
33
- title: "Special Offer Available",
34
- description: "Your favorite Dosa Express is offering 20% off on orders above ₹300. Valid until tonight.",
35
- confidence: 95,
36
- action: "Order Now"
37
- },
38
- {
39
- id: "3",
40
- type: "trend",
41
- title: "Peak Hours Alert",
42
- description: "Order now to avoid lunch rush. Delivery times typically increase by 15-20 minutes after 12 PM.",
43
- confidence: 88,
44
- action: "View Carts"
45
- }
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),
49
- favoriteCount: 6,
50
- avgRating: 4.5
51
- }, G = (e) => {
21
+ }, [E]), N = T?.firstName ?? T?.name ?? "Customer", P = D.slice(0, 3), F = k.slice(0, 3), I = {
22
+ totalOrders: D.length,
23
+ totalSpent: D.reduce((e, t) => e + t.total, 0)
24
+ }, L = (e) => {
52
25
  switch (e) {
53
26
  case "delivered": return "bg-status-success-bg-subtle text-status-success-text";
54
27
  case "preparing": return "bg-status-warning-bg-subtle text-status-warning-text";
@@ -57,42 +30,28 @@ function k() {
57
30
  case "cancelled": return "bg-status-error-bg-subtle text-status-error-text";
58
31
  default: return "bg-bg-sunken text-text-secondary";
59
32
  }
60
- }, K = (e) => {
61
- switch (e) {
62
- case "suggestion": return /* @__PURE__ */ C(m, { className: "h-4 w-4" });
63
- case "opportunity": return /* @__PURE__ */ C(b, { className: "h-4 w-4" });
64
- case "trend": return /* @__PURE__ */ C(S, { className: "h-4 w-4" });
65
- default: return /* @__PURE__ */ C(m, { className: "h-4 w-4" });
66
- }
67
- }, q = (e) => {
68
- switch (e) {
69
- case "suggestion": return "bg-[var(--color-accent-soft)] text-text-primary border-border-focus/20";
70
- case "opportunity": return "bg-status-success-bg-subtle text-status-success-text border-status-success-text/20";
71
- case "trend": return "bg-status-warning-bg-subtle text-status-warning-text border-status-warning-text/20";
72
- default: return "bg-bg-sunken text-text-secondary border-border-subtle";
73
- }
74
33
  };
75
- return R ? /* @__PURE__ */ C(n, {
76
- title: z("kadaikodi.customerDashboard.title", "Dashboard"),
77
- children: /* @__PURE__ */ C("div", {
34
+ return j ? /* @__PURE__ */ v(n, {
35
+ title: M("kadaikodi.customerDashboard.title", "Dashboard"),
36
+ children: /* @__PURE__ */ v("div", {
78
37
  className: "flex items-center justify-center py-20",
79
- children: /* @__PURE__ */ w("div", {
38
+ children: /* @__PURE__ */ y("div", {
80
39
  className: "text-center",
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", {
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", {
82
41
  className: "text-sm text-text-secondary",
83
- children: z("kadaikodi.customerDashboard.loading", "Loading your dashboard...")
42
+ children: M("kadaikodi.customerDashboard.loading", "Loading your dashboard...")
84
43
  })]
85
44
  })
86
45
  })
87
- }) : /* @__PURE__ */ w(n, {
88
- title: z("kadaikodi.customerDashboard.welcomeBack", "Welcome Back!"),
89
- description: `${O()}, ${B}`,
46
+ }) : /* @__PURE__ */ y(n, {
47
+ title: M("kadaikodi.customerDashboard.welcomeBack", "Welcome Back!"),
48
+ description: `${C()}, ${N}`,
90
49
  children: [
91
- /* @__PURE__ */ C(D, {
50
+ /* @__PURE__ */ v(S, {
92
51
  className: "mb-6",
93
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."
94
53
  }),
95
- /* @__PURE__ */ C(E, {
54
+ /* @__PURE__ */ v(x, {
96
55
  storageKey: "kadaikodi-customer-dashboard",
97
56
  className: "mb-6",
98
57
  steps: [
@@ -100,440 +59,303 @@ function k() {
100
59
  id: "discover",
101
60
  label: "Discover carts near you",
102
61
  description: "Browse open mobile carts in your area and view their menus.",
103
- onClick: () => k("/customer/carts")
62
+ onClick: () => w("/customer/carts")
104
63
  },
105
64
  {
106
65
  id: "address",
107
66
  label: "Set your delivery address",
108
67
  description: "Save your home or work address for faster checkout.",
109
- onClick: () => k("/customer/addresses")
68
+ onClick: () => w("/customer/addresses")
110
69
  },
111
70
  {
112
71
  id: "payment",
113
72
  label: "Add a payment method",
114
73
  description: "Securely store a card or UPI so ordering is one tap.",
115
- onClick: () => k("/customer/payment-methods")
74
+ onClick: () => w("/customer/payment-methods")
116
75
  }
117
76
  ]
118
77
  }),
119
- W && /* @__PURE__ */ w(T, {
78
+ I && /* @__PURE__ */ y(b, {
120
79
  className: "mb-8",
121
- children: [/* @__PURE__ */ C("h2", {
80
+ children: [/* @__PURE__ */ v("h2", {
122
81
  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",
131
- children: [/* @__PURE__ */ C("div", {
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",
147
- children: [/* @__PURE__ */ C("div", {
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",
163
- children: [/* @__PURE__ */ C("div", {
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
- })] })]
173
- })
174
- }),
175
- /* @__PURE__ */ C("div", {
176
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
177
- children: /* @__PURE__ */ w("div", {
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
- })
82
+ children: M("kadaikodi.customerDashboard.yourActivity", "Your Activity")
83
+ }), /* @__PURE__ */ y("div", {
84
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
85
+ children: [/* @__PURE__ */ v("div", {
86
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
87
+ children: /* @__PURE__ */ y("div", {
88
+ className: "flex items-center gap-3",
89
+ children: [/* @__PURE__ */ v("div", {
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", {
93
+ className: "text-2xl font-bold text-text-primary",
94
+ children: I.totalOrders
95
+ }), /* @__PURE__ */ v("p", {
96
+ className: "text-xs text-text-secondary",
97
+ children: M("kadaikodi.customerDashboard.totalOrders", "Total Orders")
98
+ })] })]
190
99
  })
191
- ]
100
+ }), /* @__PURE__ */ v("div", {
101
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
102
+ children: /* @__PURE__ */ y("div", {
103
+ className: "flex items-center gap-3",
104
+ children: [/* @__PURE__ */ v("div", {
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", {
108
+ className: "text-2xl font-bold text-text-primary",
109
+ children: o(I.totalSpent, { minimumFractionDigits: 0 })
110
+ }), /* @__PURE__ */ v("p", {
111
+ className: "text-xs text-text-secondary",
112
+ children: M("kadaikodi.customerDashboard.totalSpent", "Total Spent")
113
+ })] })]
114
+ })
115
+ })]
192
116
  })]
193
117
  }),
194
- /* @__PURE__ */ w("div", {
118
+ /* @__PURE__ */ y("div", {
195
119
  className: "mt-8 grid grid-cols-1 gap-8 lg:grid-cols-3",
196
- children: [/* @__PURE__ */ w("div", {
120
+ children: [/* @__PURE__ */ y("div", {
197
121
  className: "lg:col-span-2 space-y-8",
198
122
  children: [
199
- /* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
123
+ /* @__PURE__ */ y("section", { children: [/* @__PURE__ */ v("h2", {
200
124
  className: "text-lg font-semibold text-text-primary mb-4",
201
- children: z("kadaikodi.customerDashboard.quickActions", "Quick Actions")
202
- }), /* @__PURE__ */ w("div", {
125
+ children: M("kadaikodi.customerDashboard.quickActions", "Quick Actions")
126
+ }), /* @__PURE__ */ y("div", {
203
127
  className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
204
128
  children: [
205
- /* @__PURE__ */ w("button", {
129
+ /* @__PURE__ */ y("button", {
206
130
  type: "button",
207
- onClick: () => k("/customer/carts"),
131
+ onClick: () => w("/customer/carts"),
208
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"),
209
- children: [/* @__PURE__ */ C("div", {
133
+ children: [/* @__PURE__ */ v("div", {
210
134
  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", {
135
+ children: /* @__PURE__ */ v(h, { className: "h-5 w-5 text-text-primary" })
136
+ }), /* @__PURE__ */ y("div", {
213
137
  className: "min-w-0",
214
- children: [/* @__PURE__ */ C("p", {
138
+ children: [/* @__PURE__ */ v("p", {
215
139
  className: "text-sm font-semibold text-text-primary",
216
- children: z("kadaikodi.customerDashboard.discoverCarts", "Discover Carts")
217
- }), /* @__PURE__ */ C("p", {
140
+ children: M("kadaikodi.customerDashboard.discoverCarts", "Discover Carts")
141
+ }), /* @__PURE__ */ v("p", {
218
142
  className: "text-xs text-text-secondary",
219
- children: z("kadaikodi.customerDashboard.findNearbyCarts", "Find nearby carts")
143
+ children: M("kadaikodi.customerDashboard.findNearbyCarts", "Find nearby carts")
220
144
  })]
221
145
  })]
222
146
  }),
223
- /* @__PURE__ */ w("button", {
147
+ /* @__PURE__ */ y("button", {
224
148
  type: "button",
225
- onClick: () => k("/customer/orders"),
149
+ onClick: () => w("/customer/orders"),
226
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"),
227
- children: [/* @__PURE__ */ C("div", {
151
+ children: [/* @__PURE__ */ v("div", {
228
152
  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", {
153
+ children: /* @__PURE__ */ v(u, { className: "h-5 w-5 text-status-success-text" })
154
+ }), /* @__PURE__ */ y("div", {
231
155
  className: "min-w-0",
232
- children: [/* @__PURE__ */ C("p", {
156
+ children: [/* @__PURE__ */ v("p", {
233
157
  className: "text-sm font-semibold text-text-primary",
234
- children: z("kadaikodi.customerDashboard.orderHistory", "Order History")
235
- }), /* @__PURE__ */ C("p", {
158
+ children: M("kadaikodi.customerDashboard.orderHistory", "Order History")
159
+ }), /* @__PURE__ */ v("p", {
236
160
  className: "text-xs text-text-secondary",
237
- children: z("kadaikodi.customerDashboard.viewPastOrders", "View past orders")
161
+ children: M("kadaikodi.customerDashboard.viewPastOrders", "View past orders")
238
162
  })]
239
163
  })]
240
164
  }),
241
- /* @__PURE__ */ w("button", {
165
+ /* @__PURE__ */ y("button", {
242
166
  type: "button",
243
- onClick: () => k("/customer/favorites"),
167
+ onClick: () => w("/customer/favorites"),
244
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"),
245
- children: [/* @__PURE__ */ C("div", {
169
+ children: [/* @__PURE__ */ v("div", {
246
170
  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", {
171
+ children: /* @__PURE__ */ v(f, { className: "h-5 w-5 text-status-error-text" })
172
+ }), /* @__PURE__ */ y("div", {
249
173
  className: "min-w-0",
250
- children: [/* @__PURE__ */ C("p", {
174
+ children: [/* @__PURE__ */ v("p", {
251
175
  className: "text-sm font-semibold text-text-primary",
252
- children: z("kadaikodi.customerDashboard.favorites", "Favorites")
253
- }), /* @__PURE__ */ C("p", {
176
+ children: M("kadaikodi.customerDashboard.favorites", "Favorites")
177
+ }), /* @__PURE__ */ v("p", {
254
178
  className: "text-xs text-text-secondary",
255
- children: z("kadaikodi.customerDashboard.savedCarts", "Saved carts")
179
+ children: M("kadaikodi.customerDashboard.savedCarts", "Saved carts")
256
180
  })]
257
181
  })]
258
182
  })
259
183
  ]
260
184
  })] }),
261
- /* @__PURE__ */ w("section", { children: [/* @__PURE__ */ w("div", {
185
+ /* @__PURE__ */ y("section", { children: [/* @__PURE__ */ y("div", {
262
186
  className: "flex items-center justify-between mb-4",
263
- children: [/* @__PURE__ */ C("h2", {
187
+ children: [/* @__PURE__ */ v("h2", {
264
188
  className: "text-lg font-semibold text-text-primary",
265
- children: z("kadaikodi.customerDashboard.recentOrders", "Recent Orders")
266
- }), /* @__PURE__ */ w("button", {
189
+ children: M("kadaikodi.customerDashboard.recentOrders", "Recent Orders")
190
+ }), /* @__PURE__ */ y("button", {
267
191
  type: "button",
268
- onClick: () => k("/customer/orders"),
192
+ onClick: () => w("/customer/orders"),
269
193
  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" })]
194
+ children: [M("kadaikodi.common.viewAll", "View All"), /* @__PURE__ */ v(l, { className: "h-4 w-4" })]
271
195
  })]
272
- }), H.length > 0 ? /* @__PURE__ */ C("div", {
196
+ }), P.length > 0 ? /* @__PURE__ */ v("div", {
273
197
  className: "space-y-3",
274
- children: H.map((e) => /* @__PURE__ */ C("div", {
198
+ children: P.map((e) => /* @__PURE__ */ v("div", {
275
199
  className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
276
- children: /* @__PURE__ */ w("div", {
200
+ children: /* @__PURE__ */ y("div", {
277
201
  className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
278
- children: [/* @__PURE__ */ w("div", {
202
+ children: [/* @__PURE__ */ y("div", {
279
203
  className: "flex-1 min-w-0",
280
204
  children: [
281
- /* @__PURE__ */ w("div", {
205
+ /* @__PURE__ */ y("div", {
282
206
  className: "flex flex-wrap items-center gap-2 mb-1",
283
- children: [/* @__PURE__ */ C("h3", {
207
+ children: [/* @__PURE__ */ v("h3", {
284
208
  className: "text-sm font-semibold text-text-primary",
285
209
  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)),
210
+ }), /* @__PURE__ */ v("span", {
211
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize", L(e.status)),
288
212
  children: e.status.replace(/_/g, " ")
289
213
  })]
290
214
  }),
291
- /* @__PURE__ */ C("p", {
215
+ /* @__PURE__ */ v("p", {
292
216
  className: "text-xs text-text-secondary mb-2 leading-relaxed",
293
217
  children: e.items.map((e) => `${e.name} (${e.quantity})`).join(", ")
294
218
  }),
295
- /* @__PURE__ */ w("div", {
219
+ /* @__PURE__ */ y("div", {
296
220
  className: "flex flex-wrap items-center gap-3 text-xs text-text-secondary",
297
221
  children: [
298
- /* @__PURE__ */ C("span", {
222
+ /* @__PURE__ */ v("span", {
299
223
  className: "font-medium text-text-primary",
300
- children: s(e.total, { minimumFractionDigits: 0 })
224
+ children: o(e.total, { minimumFractionDigits: 0 })
301
225
  }),
302
- /* @__PURE__ */ C("span", { children: new Date(e.orderDate).toLocaleDateString() }),
303
- e.rating && /* @__PURE__ */ w("span", {
226
+ /* @__PURE__ */ v("span", { children: new Date(e.orderDate).toLocaleDateString() }),
227
+ e.rating && /* @__PURE__ */ y("span", {
304
228
  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]
229
+ children: [/* @__PURE__ */ v(g, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.rating]
306
230
  })
307
231
  ]
308
232
  })
309
233
  ]
310
- }), /* @__PURE__ */ C("button", {
234
+ }), /* @__PURE__ */ v("button", {
311
235
  type: "button",
312
- onClick: () => k(`/customer/orders/${e.id}`),
236
+ onClick: () => w(`/customer/orders/${e.id}`),
313
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",
314
- children: z("kadaikodi.customerDashboard.viewDetails", "View Details")
238
+ children: M("kadaikodi.customerDashboard.viewDetails", "View Details")
315
239
  })]
316
240
  })
317
241
  }, e.id))
318
- }) : /* @__PURE__ */ C(r, {
242
+ }) : /* @__PURE__ */ v(r, {
319
243
  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", {
244
+ title: M("kadaikodi.customerDashboard.noRecentOrders", "No recent orders"),
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", {
323
247
  type: "button",
324
- onClick: () => k("/customer/carts"),
248
+ onClick: () => w("/customer/carts"),
325
249
  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")
250
+ children: M("kadaikodi.customerDashboard.discoverCarts", "Discover Carts")
327
251
  })
328
252
  })] }),
329
- /* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
253
+ /* @__PURE__ */ y("section", { children: [/* @__PURE__ */ v("h2", {
330
254
  className: "text-lg font-semibold text-text-primary mb-4",
331
- children: z("kadaikodi.customerDashboard.recommendedForYou", "Recommended for You")
332
- }), /* @__PURE__ */ C("div", {
255
+ children: M("kadaikodi.customerDashboard.recommendedForYou", "Recommended for You")
256
+ }), F.length > 0 ? /* @__PURE__ */ v("div", {
333
257
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
334
- children: U.map((e) => /* @__PURE__ */ w("div", {
258
+ children: F.map((e) => /* @__PURE__ */ v("div", {
335
259
  className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden shadow-sm hover:shadow-md transition-shadow",
336
- children: [/* @__PURE__ */ w("div", {
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", {
260
+ children: /* @__PURE__ */ y("div", {
350
261
  className: "p-4",
351
262
  children: [
352
- /* @__PURE__ */ w("div", {
263
+ /* @__PURE__ */ y("div", {
353
264
  className: "flex items-start justify-between mb-2",
354
- children: [/* @__PURE__ */ w("div", {
265
+ children: [/* @__PURE__ */ y("div", {
355
266
  className: "min-w-0 flex-1",
356
- children: [/* @__PURE__ */ C("h3", {
267
+ children: [/* @__PURE__ */ v("h3", {
357
268
  className: "text-sm font-semibold text-text-primary",
358
269
  children: e.name
359
- }), /* @__PURE__ */ C("p", {
270
+ }), /* @__PURE__ */ v("p", {
360
271
  className: "text-xs text-text-secondary",
361
272
  children: e.category
362
273
  })]
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
- })]
274
+ }), /* @__PURE__ */ v("div", {
275
+ className: "flex items-center gap-2",
276
+ children: /* @__PURE__ */ v("span", {
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
+ children: e.isOpen ? M("kadaikodi.customerDashboard.open", "Open") : M("kadaikodi.customerDashboard.closed", "Closed")
279
+ })
369
280
  })]
370
281
  }),
371
- /* @__PURE__ */ w("div", {
282
+ /* @__PURE__ */ y("div", {
372
283
  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", {
284
+ children: [e.totalRatings > 0 && /* @__PURE__ */ y("span", {
381
285
  className: "flex items-center gap-1",
382
286
  children: [
383
- /* @__PURE__ */ C(d, { className: "h-3 w-3" }),
384
- e.estimatedTime,
385
- " mins"
287
+ /* @__PURE__ */ v(g, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }),
288
+ /* @__PURE__ */ v("span", {
289
+ className: "font-medium text-text-primary",
290
+ children: e.rating.toFixed(1)
291
+ }),
292
+ /* @__PURE__ */ y("span", { children: [
293
+ "(",
294
+ e.totalRatings,
295
+ ")"
296
+ ] })
386
297
  ]
298
+ }), e.location.address && /* @__PURE__ */ y("span", {
299
+ className: "flex items-center gap-1 truncate",
300
+ children: [/* @__PURE__ */ v(p, { className: "h-3 w-3 shrink-0" }), /* @__PURE__ */ v("span", {
301
+ className: "truncate",
302
+ children: e.location.address
303
+ })]
387
304
  })]
388
305
  }),
389
- /* @__PURE__ */ C("button", {
306
+ /* @__PURE__ */ v("button", {
390
307
  type: "button",
391
308
  disabled: !e.isOpen,
392
- onClick: () => e.isOpen && k(`/customer/carts/${e.id}`),
309
+ onClick: () => e.isOpen && w(`/customer/carts/${e.id}`),
393
310
  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")
311
+ children: e.isOpen ? M("kadaikodi.customerDashboard.viewMenu", "View Menu") : M("kadaikodi.customerDashboard.currentlyClosed", "Currently Closed")
395
312
  })
396
313
  ]
397
- })]
314
+ })
398
315
  }, e.id))
316
+ }) : /* @__PURE__ */ v(r, {
317
+ illustration: "empty-data",
318
+ title: M("kadaikodi.customerDashboard.noCarts", "No carts available yet"),
319
+ description: M("kadaikodi.customerDashboard.noCartsDesc", "Carts will appear here as vendors join the platform. Check back soon.")
399
320
  })] })
400
321
  ]
401
- }), /* @__PURE__ */ w("div", {
322
+ }), /* @__PURE__ */ v("div", {
402
323
  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",
420
- children: [
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
434
- }),
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
440
- })
441
- ]
442
- })]
443
- })
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")
452
- }), /* @__PURE__ */ w("div", {
453
- className: "space-y-2",
454
- children: [
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")]
460
- }),
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")]
466
- }),
467
- /* @__PURE__ */ w("button", {
468
- type: "button",
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")]
472
- })
473
- ]
474
- })]
475
- }),
476
- /* @__PURE__ */ w("div", {
477
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
324
+ children: /* @__PURE__ */ y("div", {
325
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
326
+ children: [/* @__PURE__ */ v("h3", {
327
+ className: "text-base font-semibold text-text-primary mb-3",
328
+ children: M("kadaikodi.customerDashboard.quickLinks", "Quick Links")
329
+ }), /* @__PURE__ */ y("div", {
330
+ className: "space-y-2",
478
331
  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", {
486
- className: "flex-1 min-w-0",
487
- children: [
488
- /* @__PURE__ */ C("p", {
489
- className: "text-sm font-medium text-text-primary",
490
- children: "Koramangala"
491
- }),
492
- /* @__PURE__ */ C("p", {
493
- className: "text-xs text-text-secondary",
494
- children: "80 Feet Road, 6th Block"
495
- }),
496
- /* @__PURE__ */ C("p", {
497
- className: "text-xs text-text-secondary",
498
- children: "Bangalore, Karnataka"
499
- })
500
- ]
501
- })]
502
- }),
503
- /* @__PURE__ */ C("button", {
332
+ /* @__PURE__ */ y("button", {
504
333
  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")
508
- })
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",
513
- children: [
514
- /* @__PURE__ */ C("h3", {
515
- className: "text-base font-semibold text-text-primary mb-2",
516
- children: z("kadaikodi.customerDashboard.specialOffers", "Special Offers")
334
+ onClick: () => w("/customer/profile"),
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")]
517
337
  }),
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")
338
+ /* @__PURE__ */ y("button", {
339
+ type: "button",
340
+ onClick: () => w("/customer/addresses"),
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")]
521
343
  }),
522
- /* @__PURE__ */ C("button", {
344
+ /* @__PURE__ */ y("button", {
523
345
  type: "button",
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")
346
+ onClick: () => w("/customer/payment-methods"),
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")]
527
349
  })
528
350
  ]
529
- })
530
- ]
351
+ })]
352
+ })
531
353
  })]
532
354
  })
533
355
  ]
534
356
  });
535
357
  }
536
358
  //#endregion
537
- export { k as CustomerDashboard };
359
+ export { w as CustomerDashboard };
538
360
 
539
361
  //# sourceMappingURL=CustomerDashboard.js.map