@burdenoff/microfe-coolandlovely 2026.625.1 → 2026.625.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/coolandlovely/pages/HomePage.js +263 -258
  2. package/dist/coolandlovely/pages/HomePage.js.map +1 -1
  3. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +67 -61
  4. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -1
  5. package/dist/coolandlovely/pages/admin/AdminDashboard.js +79 -45
  6. package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -1
  7. package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +39 -33
  8. package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -1
  9. package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +227 -222
  10. package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -1
  11. package/dist/coolandlovely/pages/admin/AdminProfilePage.js +65 -60
  12. package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +1 -1
  13. package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +235 -230
  14. package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +1 -1
  15. package/dist/coolandlovely/pages/admin/CartManagementPage.js +268 -263
  16. package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -1
  17. package/dist/coolandlovely/pages/admin/UserManagementPage.js +268 -263
  18. package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -1
  19. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +92 -84
  20. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  21. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +257 -252
  22. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  23. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +587 -548
  24. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  25. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +171 -166
  26. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  27. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +219 -211
  28. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  29. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +671 -670
  30. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  31. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +515 -514
  32. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -1
  33. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +244 -246
  34. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -1
  35. package/dist/coolandlovely/pages/common/HelpSupportPage.js +96 -96
  36. package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -1
  37. package/dist/coolandlovely/pages/common/NotificationCenterPage.js +50 -44
  38. package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +1 -1
  39. package/dist/coolandlovely/pages/common/SettingsPage.js +745 -736
  40. package/dist/coolandlovely/pages/common/SettingsPage.js.map +1 -1
  41. package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +394 -357
  42. package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +1 -1
  43. package/dist/coolandlovely/pages/customer/CartDetailPage.js +179 -176
  44. package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -1
  45. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +215 -204
  46. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -1
  47. package/dist/coolandlovely/pages/customer/CheckoutPage.js +212 -215
  48. package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -1
  49. package/dist/coolandlovely/pages/customer/CustomerDashboard.js +438 -396
  50. package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +1 -1
  51. package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +525 -488
  52. package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +1 -1
  53. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +522 -513
  54. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +1 -1
  55. package/dist/coolandlovely/pages/customer/FavoritesPage.js +86 -76
  56. package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -1
  57. package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +118 -109
  58. package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +1 -1
  59. package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +312 -275
  60. package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +1 -1
  61. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +82 -76
  62. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -1
  63. package/dist/coolandlovely/pages/customer/ReviewsPage.js +83 -73
  64. package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -1
  65. package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +61 -55
  66. package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -1
  67. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +293 -255
  68. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -1
  69. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +238 -232
  70. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  71. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +61 -55
  72. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  73. package/dist/coolandlovely/pages/investor/InvestorDashboard.js +356 -320
  74. package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -1
  75. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +107 -101
  76. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  77. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +170 -137
  78. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -1
  79. package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +386 -381
  80. package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -1
  81. package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +359 -322
  82. package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -1
  83. package/dist/coolandlovely/pages/worker/WorkerDashboard.js +574 -537
  84. package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -1
  85. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +81 -76
  86. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -1
  87. package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +82 -77
  88. package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -1
  89. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +78 -73
  90. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +1 -1
  91. package/package.json +3 -3
@@ -5,40 +5,40 @@ import { MetricsCard as r } from "../components/MetricsCard.js";
5
5
  import { StatusBadge as i } from "../components/StatusBadge.js";
6
6
  import { EmptyState as a } from "../components/EmptyState.js";
7
7
  import { useCoolAndLovelyApi as o } from "../hooks/useCoolAndLovelyApi.js";
8
- import { formatCurrency as s, formatDistance as c, formatRelativeTime as l } from "../utils/formatters.js";
9
- import { useCallback as u, useMemo as d, useState as f } from "react";
10
- import { useI18n as p } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
11
- import { Activity as m, AlertCircle as h, ArrowRight as g, BadgeCheck as _, BarChart3 as v, CheckCircle2 as y, ChefHat as b, ClipboardList as x, Clock as S, FileText as C, GraduationCap as w, HandCoins as T, Heart as E, Home as D, IndianRupee as O, LayoutDashboard as k, Loader2 as A, MapPin as j, Package as M, Scissors as N, Search as P, Settings as F, Shirt as I, ShoppingBag as L, ShoppingCart as R, Sparkles as z, Star as B, Store as V, TrendingUp as H, Truck as U, Users as W, Wallet as G, Wrench as K } from "lucide-react";
12
- import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
13
- import { EmphasisPanel as X, GlassCard as Z, GradientText as Q } from "@burdenoff/fe-libs/ui";
8
+ import { formatCurrency as s, formatDistance as ee, formatRelativeTime as c } from "../utils/formatters.js";
9
+ import { useCallback as l, useMemo as u, useState as d } from "react";
10
+ import { useI18n as f } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
11
+ import { Activity as p, AlertCircle as m, ArrowRight as h, BadgeCheck as g, BarChart3 as _, CheckCircle2 as v, ChefHat as y, ClipboardList as b, Clock as x, FileText as S, GraduationCap as C, HandCoins as w, Heart as T, Home as E, IndianRupee as D, LayoutDashboard as O, Loader2 as k, MapPin as A, Package as j, Scissors as M, Search as N, Settings as P, Shirt as F, ShoppingBag as I, ShoppingCart as L, Sparkles as R, Star as z, Store as B, TrendingUp as V, Truck as H, Users as U, Wallet as W, Wrench as G } from "lucide-react";
12
+ import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
13
+ import { EmphasisPanel as Y, GlassCard as X, GradientText as Z, PagePurpose as Q } from "@burdenoff/fe-libs/ui";
14
14
  //#region src/coolandlovely/pages/HomePage.tsx
15
15
  var $ = {
16
16
  customer: [
17
17
  {
18
18
  label: "Discover Services",
19
19
  description: "Browse carts near you",
20
- icon: /* @__PURE__ */ J(P, { className: "h-5 w-5" }),
20
+ icon: /* @__PURE__ */ q(N, { className: "h-5 w-5" }),
21
21
  path: "/customer/carts",
22
22
  color: "bg-accent-blue-subtle/10 text-accent-blue"
23
23
  },
24
24
  {
25
25
  label: "My Orders",
26
26
  description: "Track your orders",
27
- icon: /* @__PURE__ */ J(L, { className: "h-5 w-5" }),
27
+ icon: /* @__PURE__ */ q(I, { className: "h-5 w-5" }),
28
28
  path: "/customer/orders",
29
29
  color: "bg-status-success-bg-subtle/10 text-status-success-text"
30
30
  },
31
31
  {
32
32
  label: "Favorites",
33
33
  description: "Your saved carts",
34
- icon: /* @__PURE__ */ J(E, { className: "h-5 w-5" }),
34
+ icon: /* @__PURE__ */ q(T, { className: "h-5 w-5" }),
35
35
  path: "/customer/favorites",
36
36
  color: "bg-accent-pink-subtle/10 text-accent-pink"
37
37
  },
38
38
  {
39
39
  label: "Settings",
40
40
  description: "Manage preferences",
41
- icon: /* @__PURE__ */ J(F, { className: "h-5 w-5" }),
41
+ icon: /* @__PURE__ */ q(P, { className: "h-5 w-5" }),
42
42
  path: "/settings",
43
43
  color: "bg-bg-sunken text-text-secondary"
44
44
  }
@@ -47,28 +47,28 @@ var $ = {
47
47
  {
48
48
  label: "My Cart",
49
49
  description: "Manage your cart",
50
- icon: /* @__PURE__ */ J(V, { className: "h-5 w-5" }),
50
+ icon: /* @__PURE__ */ q(B, { className: "h-5 w-5" }),
51
51
  path: "/owner/dashboard",
52
52
  color: "bg-accent-purple-subtle/10 text-accent-purple"
53
53
  },
54
54
  {
55
55
  label: "Orders",
56
56
  description: "Incoming orders",
57
- icon: /* @__PURE__ */ J(L, { className: "h-5 w-5" }),
57
+ icon: /* @__PURE__ */ q(I, { className: "h-5 w-5" }),
58
58
  path: "/owner/orders",
59
59
  color: "bg-accent-blue-subtle/10 text-accent-blue"
60
60
  },
61
61
  {
62
62
  label: "Analytics",
63
63
  description: "Revenue & insights",
64
- icon: /* @__PURE__ */ J(v, { className: "h-5 w-5" }),
64
+ icon: /* @__PURE__ */ q(_, { className: "h-5 w-5" }),
65
65
  path: "/owner/analytics",
66
66
  color: "bg-status-success-bg-subtle/10 text-status-success-text"
67
67
  },
68
68
  {
69
69
  label: "Staff",
70
70
  description: "Manage workers",
71
- icon: /* @__PURE__ */ J(W, { className: "h-5 w-5" }),
71
+ icon: /* @__PURE__ */ q(U, { className: "h-5 w-5" }),
72
72
  path: "/owner/staff",
73
73
  color: "bg-accent-orange-subtle/10 text-accent-orange"
74
74
  }
@@ -77,28 +77,28 @@ var $ = {
77
77
  {
78
78
  label: "My Tasks",
79
79
  description: "View assigned tasks",
80
- icon: /* @__PURE__ */ J(x, { className: "h-5 w-5" }),
80
+ icon: /* @__PURE__ */ q(b, { className: "h-5 w-5" }),
81
81
  path: "/worker/dashboard",
82
82
  color: "bg-accent-orange-subtle/10 text-accent-orange"
83
83
  },
84
84
  {
85
85
  label: "Schedule",
86
86
  description: "View shifts",
87
- icon: /* @__PURE__ */ J(S, { className: "h-5 w-5" }),
87
+ icon: /* @__PURE__ */ q(x, { className: "h-5 w-5" }),
88
88
  path: "/worker/schedule",
89
89
  color: "bg-accent-blue-subtle/10 text-accent-blue"
90
90
  },
91
91
  {
92
92
  label: "Earnings",
93
93
  description: "Track pay",
94
- icon: /* @__PURE__ */ J(G, { className: "h-5 w-5" }),
94
+ icon: /* @__PURE__ */ q(W, { className: "h-5 w-5" }),
95
95
  path: "/worker/earnings",
96
96
  color: "bg-status-success-bg-subtle/10 text-status-success-text"
97
97
  },
98
98
  {
99
99
  label: "Performance",
100
100
  description: "Ratings & stats",
101
- icon: /* @__PURE__ */ J(B, { className: "h-5 w-5" }),
101
+ icon: /* @__PURE__ */ q(z, { className: "h-5 w-5" }),
102
102
  path: "/worker/performance",
103
103
  color: "bg-status-warning-bg-subtle/10 text-status-warning-text"
104
104
  }
@@ -107,28 +107,28 @@ var $ = {
107
107
  {
108
108
  label: "Portfolio",
109
109
  description: "Your investments",
110
- icon: /* @__PURE__ */ J(H, { className: "h-5 w-5" }),
110
+ icon: /* @__PURE__ */ q(V, { className: "h-5 w-5" }),
111
111
  path: "/investor/dashboard",
112
112
  color: "bg-status-success-bg-subtle/10 text-status-success-text"
113
113
  },
114
114
  {
115
115
  label: "Opportunities",
116
116
  description: "New investments",
117
- icon: /* @__PURE__ */ J(T, { className: "h-5 w-5" }),
117
+ icon: /* @__PURE__ */ q(w, { className: "h-5 w-5" }),
118
118
  path: "/investor/opportunities",
119
119
  color: "bg-accent-blue-subtle/10 text-accent-blue"
120
120
  },
121
121
  {
122
122
  label: "Returns",
123
123
  description: "Earnings history",
124
- icon: /* @__PURE__ */ J(O, { className: "h-5 w-5" }),
124
+ icon: /* @__PURE__ */ q(D, { className: "h-5 w-5" }),
125
125
  path: "/investor/returns",
126
126
  color: "bg-status-success-bg-subtle/10 text-status-success-text"
127
127
  },
128
128
  {
129
129
  label: "Reports",
130
130
  description: "Performance reports",
131
- icon: /* @__PURE__ */ J(C, { className: "h-5 w-5" }),
131
+ icon: /* @__PURE__ */ q(S, { className: "h-5 w-5" }),
132
132
  path: "/investor/reports",
133
133
  color: "bg-accent-purple-subtle/10 text-accent-purple"
134
134
  }
@@ -137,59 +137,59 @@ var $ = {
137
137
  {
138
138
  label: "Dashboard",
139
139
  description: "Platform overview",
140
- icon: /* @__PURE__ */ J(k, { className: "h-5 w-5" }),
140
+ icon: /* @__PURE__ */ q(O, { className: "h-5 w-5" }),
141
141
  path: "/admin/dashboard",
142
142
  color: "bg-status-error-bg-subtle/10 text-status-error-text"
143
143
  },
144
144
  {
145
145
  label: "Users",
146
146
  description: "Manage accounts",
147
- icon: /* @__PURE__ */ J(W, { className: "h-5 w-5" }),
147
+ icon: /* @__PURE__ */ q(U, { className: "h-5 w-5" }),
148
148
  path: "/admin/users",
149
149
  color: "bg-accent-blue-subtle/10 text-accent-blue"
150
150
  },
151
151
  {
152
152
  label: "Carts",
153
153
  description: "Approve & manage",
154
- icon: /* @__PURE__ */ J(V, { className: "h-5 w-5" }),
154
+ icon: /* @__PURE__ */ q(B, { className: "h-5 w-5" }),
155
155
  path: "/admin/carts",
156
156
  color: "bg-accent-purple-subtle/10 text-accent-purple"
157
157
  },
158
158
  {
159
159
  label: "Analytics",
160
160
  description: "Revenue reports",
161
- icon: /* @__PURE__ */ J(v, { className: "h-5 w-5" }),
161
+ icon: /* @__PURE__ */ q(_, { className: "h-5 w-5" }),
162
162
  path: "/admin/analytics",
163
163
  color: "bg-status-success-bg-subtle/10 text-status-success-text"
164
164
  }
165
165
  ]
166
166
  };
167
- function ee(e, t, n) {
167
+ function te(e, t, n) {
168
168
  switch (e) {
169
169
  case "customer": return [
170
170
  {
171
- icon: /* @__PURE__ */ J(L, { className: "h-5 w-5" }),
171
+ icon: /* @__PURE__ */ q(I, { className: "h-5 w-5" }),
172
172
  value: t.length.toString(),
173
173
  label: "Total Orders",
174
174
  trend: "up",
175
175
  trendValue: "+2 this week"
176
176
  },
177
177
  {
178
- icon: /* @__PURE__ */ J(V, { className: "h-5 w-5" }),
178
+ icon: /* @__PURE__ */ q(B, { className: "h-5 w-5" }),
179
179
  value: (n?.activeProviders ?? 0).toString(),
180
180
  label: "Nearby Providers",
181
181
  trend: "up",
182
182
  trendValue: "+3"
183
183
  },
184
184
  {
185
- icon: /* @__PURE__ */ J(B, { className: "h-5 w-5" }),
185
+ icon: /* @__PURE__ */ q(z, { className: "h-5 w-5" }),
186
186
  value: (n?.avgRating ?? 0).toFixed(1),
187
187
  label: "Avg. Rating",
188
188
  trend: "up",
189
189
  trendValue: "+0.1"
190
190
  },
191
191
  {
192
- icon: /* @__PURE__ */ J(O, { className: "h-5 w-5" }),
192
+ icon: /* @__PURE__ */ q(D, { className: "h-5 w-5" }),
193
193
  value: s(t.reduce((e, t) => e + t.total, 0), { minimumFractionDigits: 0 }),
194
194
  label: "Total Spent",
195
195
  trend: "neutral",
@@ -198,28 +198,28 @@ function ee(e, t, n) {
198
198
  ];
199
199
  case "cart_owner": return [
200
200
  {
201
- icon: /* @__PURE__ */ J(L, { className: "h-5 w-5" }),
201
+ icon: /* @__PURE__ */ q(I, { className: "h-5 w-5" }),
202
202
  value: "48",
203
203
  label: "Orders Today",
204
204
  trend: "up",
205
205
  trendValue: "+12%"
206
206
  },
207
207
  {
208
- icon: /* @__PURE__ */ J(O, { className: "h-5 w-5" }),
208
+ icon: /* @__PURE__ */ q(D, { className: "h-5 w-5" }),
209
209
  value: s(12850, { minimumFractionDigits: 0 }),
210
210
  label: "Today's Revenue",
211
211
  trend: "up",
212
212
  trendValue: "+8%"
213
213
  },
214
214
  {
215
- icon: /* @__PURE__ */ J(B, { className: "h-5 w-5" }),
215
+ icon: /* @__PURE__ */ q(z, { className: "h-5 w-5" }),
216
216
  value: "4.6",
217
217
  label: "Cart Rating",
218
218
  trend: "up",
219
219
  trendValue: "+0.2"
220
220
  },
221
221
  {
222
- icon: /* @__PURE__ */ J(W, { className: "h-5 w-5" }),
222
+ icon: /* @__PURE__ */ q(U, { className: "h-5 w-5" }),
223
223
  value: "5",
224
224
  label: "Active Staff",
225
225
  trend: "neutral",
@@ -228,28 +228,28 @@ function ee(e, t, n) {
228
228
  ];
229
229
  case "worker": return [
230
230
  {
231
- icon: /* @__PURE__ */ J(x, { className: "h-5 w-5" }),
231
+ icon: /* @__PURE__ */ q(b, { className: "h-5 w-5" }),
232
232
  value: "5",
233
233
  label: "Tasks Today",
234
234
  trend: "up",
235
235
  trendValue: "+2"
236
236
  },
237
237
  {
238
- icon: /* @__PURE__ */ J(O, { className: "h-5 w-5" }),
238
+ icon: /* @__PURE__ */ q(D, { className: "h-5 w-5" }),
239
239
  value: s(425, { minimumFractionDigits: 0 }),
240
240
  label: "Today's Earnings",
241
241
  trend: "up",
242
242
  trendValue: "+15%"
243
243
  },
244
244
  {
245
- icon: /* @__PURE__ */ J(B, { className: "h-5 w-5" }),
245
+ icon: /* @__PURE__ */ q(z, { className: "h-5 w-5" }),
246
246
  value: "4.7",
247
247
  label: "Rating",
248
248
  trend: "up",
249
249
  trendValue: "+0.1"
250
250
  },
251
251
  {
252
- icon: /* @__PURE__ */ J(y, { className: "h-5 w-5" }),
252
+ icon: /* @__PURE__ */ q(v, { className: "h-5 w-5" }),
253
253
  value: "96.8%",
254
254
  label: "Completion Rate",
255
255
  trend: "up",
@@ -258,28 +258,28 @@ function ee(e, t, n) {
258
258
  ];
259
259
  case "investor": return [
260
260
  {
261
- icon: /* @__PURE__ */ J(H, { className: "h-5 w-5" }),
261
+ icon: /* @__PURE__ */ q(V, { className: "h-5 w-5" }),
262
262
  value: "3",
263
263
  label: "Active Investments",
264
264
  trend: "up",
265
265
  trendValue: "+1"
266
266
  },
267
267
  {
268
- icon: /* @__PURE__ */ J(O, { className: "h-5 w-5" }),
268
+ icon: /* @__PURE__ */ q(D, { className: "h-5 w-5" }),
269
269
  value: s(45e4, { minimumFractionDigits: 0 }),
270
270
  label: "Total Invested",
271
271
  trend: "up",
272
272
  trendValue: ""
273
273
  },
274
274
  {
275
- icon: /* @__PURE__ */ J(T, { className: "h-5 w-5" }),
275
+ icon: /* @__PURE__ */ q(w, { className: "h-5 w-5" }),
276
276
  value: "16.5%",
277
277
  label: "Avg. Returns",
278
278
  trend: "up",
279
279
  trendValue: "+2.1%"
280
280
  },
281
281
  {
282
- icon: /* @__PURE__ */ J(v, { className: "h-5 w-5" }),
282
+ icon: /* @__PURE__ */ q(_, { className: "h-5 w-5" }),
283
283
  value: s(74250, { minimumFractionDigits: 0 }),
284
284
  label: "Total Returns",
285
285
  trend: "up",
@@ -288,28 +288,28 @@ function ee(e, t, n) {
288
288
  ];
289
289
  default: return [
290
290
  {
291
- icon: /* @__PURE__ */ J(W, { className: "h-5 w-5" }),
291
+ icon: /* @__PURE__ */ q(U, { className: "h-5 w-5" }),
292
292
  value: (n?.activeCustomers ?? 0).toLocaleString("en-IN"),
293
293
  label: "Active Customers",
294
294
  trend: "up",
295
295
  trendValue: "+50"
296
296
  },
297
297
  {
298
- icon: /* @__PURE__ */ J(V, { className: "h-5 w-5" }),
298
+ icon: /* @__PURE__ */ q(B, { className: "h-5 w-5" }),
299
299
  value: (n?.activeProviders ?? 0).toString(),
300
300
  label: "Service Providers",
301
301
  trend: "up",
302
302
  trendValue: "+3"
303
303
  },
304
304
  {
305
- icon: /* @__PURE__ */ J(L, { className: "h-5 w-5" }),
305
+ icon: /* @__PURE__ */ q(I, { className: "h-5 w-5" }),
306
306
  value: (n?.totalOrders ?? 0).toLocaleString("en-IN"),
307
307
  label: "Total Orders",
308
308
  trend: "up",
309
309
  trendValue: "+12%"
310
310
  },
311
311
  {
312
- icon: /* @__PURE__ */ J(O, { className: "h-5 w-5" }),
312
+ icon: /* @__PURE__ */ q(D, { className: "h-5 w-5" }),
313
313
  value: s(n?.totalRevenue ?? 0, { minimumFractionDigits: 0 }),
314
314
  label: "Total Revenue",
315
315
  trend: "up",
@@ -318,78 +318,78 @@ function ee(e, t, n) {
318
318
  ];
319
319
  }
320
320
  }
321
- var te = [
321
+ var ne = [
322
322
  {
323
323
  label: "Food & Beverage",
324
- icon: /* @__PURE__ */ J(b, { className: "h-6 w-6" }),
324
+ icon: /* @__PURE__ */ q(y, { className: "h-6 w-6" }),
325
325
  color: "bg-accent-orange-subtle/10 text-accent-orange"
326
326
  },
327
327
  {
328
328
  label: "Personal Care & Beauty",
329
- icon: /* @__PURE__ */ J(N, { className: "h-6 w-6" }),
329
+ icon: /* @__PURE__ */ q(M, { className: "h-6 w-6" }),
330
330
  color: "bg-accent-pink-subtle/10 text-accent-pink"
331
331
  },
332
332
  {
333
333
  label: "Repair & Maintenance",
334
- icon: /* @__PURE__ */ J(K, { className: "h-6 w-6" }),
334
+ icon: /* @__PURE__ */ q(G, { className: "h-6 w-6" }),
335
335
  color: "bg-accent-blue-subtle/10 text-accent-blue"
336
336
  },
337
337
  {
338
338
  label: "Home Services",
339
- icon: /* @__PURE__ */ J(D, { className: "h-6 w-6" }),
339
+ icon: /* @__PURE__ */ q(E, { className: "h-6 w-6" }),
340
340
  color: "bg-status-success-bg-subtle/10 text-status-success-text"
341
341
  },
342
342
  {
343
343
  label: "Clothing & Fashion",
344
- icon: /* @__PURE__ */ J(I, { className: "h-6 w-6" }),
344
+ icon: /* @__PURE__ */ q(F, { className: "h-6 w-6" }),
345
345
  color: "bg-accent-purple-subtle/10 text-accent-purple"
346
346
  },
347
347
  {
348
348
  label: "Health & Wellness",
349
- icon: /* @__PURE__ */ J(E, { className: "h-6 w-6" }),
349
+ icon: /* @__PURE__ */ q(T, { className: "h-6 w-6" }),
350
350
  color: "bg-status-error-bg-subtle/10 text-status-error-text"
351
351
  },
352
352
  {
353
353
  label: "Education & Skills",
354
- icon: /* @__PURE__ */ J(w, { className: "h-6 w-6" }),
354
+ icon: /* @__PURE__ */ q(C, { className: "h-6 w-6" }),
355
355
  color: "bg-status-warning-bg-subtle/10 text-status-warning-text"
356
356
  },
357
357
  {
358
358
  label: "Retail & Merchandise",
359
- icon: /* @__PURE__ */ J(M, { className: "h-6 w-6" }),
359
+ icon: /* @__PURE__ */ q(j, { className: "h-6 w-6" }),
360
360
  color: "bg-accent-indigo-subtle/10 text-accent-indigo"
361
361
  },
362
362
  {
363
363
  label: "Grocery & Essentials",
364
- icon: /* @__PURE__ */ J(R, { className: "h-6 w-6" }),
364
+ icon: /* @__PURE__ */ q(L, { className: "h-6 w-6" }),
365
365
  color: "bg-status-success-bg-subtle/10 text-status-success-text"
366
366
  }
367
- ], ne = [
367
+ ], re = [
368
368
  {
369
369
  step: 1,
370
370
  title: "Browse Services",
371
371
  description: "Discover local service providers and carts near you.",
372
- icon: /* @__PURE__ */ J(P, { className: "h-6 w-6" })
372
+ icon: /* @__PURE__ */ q(N, { className: "h-6 w-6" })
373
373
  },
374
374
  {
375
375
  step: 2,
376
376
  title: "Place an Order",
377
377
  description: "Select items or services and place your order seamlessly.",
378
- icon: /* @__PURE__ */ J(L, { className: "h-6 w-6" })
378
+ icon: /* @__PURE__ */ q(I, { className: "h-6 w-6" })
379
379
  },
380
380
  {
381
381
  step: 3,
382
382
  title: "Track in Real-time",
383
383
  description: "Get live updates on your order from confirmation to delivery.",
384
- icon: /* @__PURE__ */ J(U, { className: "h-6 w-6" })
384
+ icon: /* @__PURE__ */ q(H, { className: "h-6 w-6" })
385
385
  },
386
386
  {
387
387
  step: 4,
388
388
  title: "Rate & Review",
389
389
  description: "Share your experience and help others find great services.",
390
- icon: /* @__PURE__ */ J(B, { className: "h-6 w-6" })
390
+ icon: /* @__PURE__ */ q(z, { className: "h-6 w-6" })
391
391
  }
392
- ], re = [
392
+ ], ie = [
393
393
  {
394
394
  id: "ha-1",
395
395
  description: "New order placed at Dosa Express",
@@ -420,165 +420,170 @@ var te = [
420
420
  time: "5 hours ago",
421
421
  type: "order"
422
422
  }
423
- ], ie = [
423
+ ], ae = [
424
424
  {
425
425
  label: "Service Providers",
426
426
  value: "21+",
427
- icon: /* @__PURE__ */ J(V, { className: "h-5 w-5" })
427
+ icon: /* @__PURE__ */ q(B, { className: "h-5 w-5" })
428
428
  },
429
429
  {
430
430
  label: "Categories",
431
431
  value: "9",
432
- icon: /* @__PURE__ */ J(M, { className: "h-5 w-5" })
432
+ icon: /* @__PURE__ */ q(j, { className: "h-5 w-5" })
433
433
  },
434
434
  {
435
435
  label: "Happy Customers",
436
436
  value: "534+",
437
- icon: /* @__PURE__ */ J(W, { className: "h-5 w-5" })
437
+ icon: /* @__PURE__ */ q(U, { className: "h-5 w-5" })
438
438
  },
439
439
  {
440
440
  label: "Orders Completed",
441
441
  value: "1,247+",
442
- icon: /* @__PURE__ */ J(y, { className: "h-5 w-5" })
442
+ icon: /* @__PURE__ */ q(v, { className: "h-5 w-5" })
443
443
  }
444
444
  ];
445
- function ae() {
446
- let { navigateTo: v, currentUser: y } = e(), { t: b } = p(), [x, C] = f(""), { providers: w, orders: T, dashboardStats: E } = o(), D = u((e, t) => {
447
- let n = b(e);
445
+ function oe() {
446
+ let { navigateTo: _, currentUser: v } = e(), { t: y } = f(), [b, S] = d(""), { providers: C, orders: w, dashboardStats: T } = o(), E = l((e, t) => {
447
+ let n = y(e);
448
448
  return n === e ? t : n;
449
- }, [b]), k = y?.firstName ?? y?.name ?? "there", M = y?.role ?? "customer", N = {
450
- customer: D("coolandlovely.home.role.customer", "Customer"),
451
- cart_owner: D("coolandlovely.home.role.cartOwner", "Cart Owner"),
452
- worker: D("coolandlovely.home.role.worker", "Worker"),
453
- investor: D("coolandlovely.home.role.investor", "Investor"),
454
- admin: D("coolandlovely.home.role.admin", "Administrator")
455
- }, F = {
456
- customer: D("coolandlovely.home.greeting.customer", "Discover amazing services near you"),
457
- cart_owner: D("coolandlovely.home.greeting.cartOwner", "Manage your business and grow"),
458
- worker: D("coolandlovely.home.greeting.worker", "Check your tasks and earnings"),
459
- investor: D("coolandlovely.home.greeting.investor", "Track your investments and returns"),
460
- admin: D("coolandlovely.home.greeting.admin", "Monitor and manage the platform")
461
- }, I = $[M] ?? $.customer, L = ee(M, T.data ?? [], E.data), R = d(() => {
462
- let e = (w.data ?? []).filter((e) => e.isOpen);
463
- if (x) {
464
- let t = x.toLowerCase();
449
+ }, [y]), O = v?.firstName ?? v?.name ?? "there", j = v?.role ?? "customer", M = {
450
+ customer: E("coolandlovely.home.role.customer", "Customer"),
451
+ cart_owner: E("coolandlovely.home.role.cartOwner", "Cart Owner"),
452
+ worker: E("coolandlovely.home.role.worker", "Worker"),
453
+ investor: E("coolandlovely.home.role.investor", "Investor"),
454
+ admin: E("coolandlovely.home.role.admin", "Administrator")
455
+ }, P = {
456
+ customer: E("coolandlovely.home.greeting.customer", "Discover amazing services near you"),
457
+ cart_owner: E("coolandlovely.home.greeting.cartOwner", "Manage your business and grow"),
458
+ worker: E("coolandlovely.home.greeting.worker", "Check your tasks and earnings"),
459
+ investor: E("coolandlovely.home.greeting.investor", "Track your investments and returns"),
460
+ admin: E("coolandlovely.home.greeting.admin", "Monitor and manage the platform")
461
+ }, F = $[j] ?? $.customer, I = te(j, w.data ?? [], T.data), L = u(() => {
462
+ let e = (C.data ?? []).filter((e) => e.isOpen);
463
+ if (b) {
464
+ let t = b.toLowerCase();
465
465
  e = e.filter((e) => e.name.toLowerCase().includes(t) || e.category.toLowerCase().includes(t));
466
466
  }
467
467
  return e.sort((e, t) => t.rating - e.rating).slice(0, 6);
468
- }, [w.data, x]), V = d(() => [...T.data ?? []].sort((e, t) => new Date(t.orderDate).getTime() - new Date(e.orderDate).getTime()).slice(0, 3), [T.data]), H = {
468
+ }, [C.data, b]), B = u(() => [...w.data ?? []].sort((e, t) => new Date(t.orderDate).getTime() - new Date(e.orderDate).getTime()).slice(0, 3), [w.data]), V = {
469
469
  order: "text-accent-blue",
470
470
  review: "text-status-warning-text",
471
471
  investment: "text-status-success-text",
472
472
  cart: "text-accent-purple"
473
- }, U = (T.data ?? []).length === 0 && !T.isLoading, W = w.isLoading || T.isLoading || E.isLoading, G = w.isError || T.isError || E.isError;
474
- return W ? /* @__PURE__ */ J(n, {
475
- title: D("coolandlovely.common.loading", "Loading..."),
476
- children: /* @__PURE__ */ J("div", {
473
+ }, H = (w.data ?? []).length === 0 && !w.isLoading, U = C.isLoading || w.isLoading || T.isLoading, W = C.isError || w.isError || T.isError;
474
+ return U ? /* @__PURE__ */ q(n, {
475
+ title: E("coolandlovely.common.loading", "Loading..."),
476
+ children: /* @__PURE__ */ q("div", {
477
477
  className: "flex h-[60vh] items-center justify-center",
478
- children: /* @__PURE__ */ J(A, { className: "h-8 w-8 animate-spin text-primary" })
478
+ children: /* @__PURE__ */ q(k, { className: "h-8 w-8 animate-spin text-primary" })
479
479
  })
480
- }) : G ? /* @__PURE__ */ J(n, {
481
- title: D("coolandlovely.common.error", "Error"),
482
- children: /* @__PURE__ */ Y("div", {
480
+ }) : W ? /* @__PURE__ */ q(n, {
481
+ title: E("coolandlovely.common.error", "Error"),
482
+ children: /* @__PURE__ */ J("div", {
483
483
  className: "flex h-[60vh] flex-col items-center justify-center gap-4",
484
484
  children: [
485
- /* @__PURE__ */ J(h, { className: "h-12 w-12 text-status-error-text" }),
486
- /* @__PURE__ */ J("h2", {
485
+ /* @__PURE__ */ q(m, { className: "h-12 w-12 text-status-error-text" }),
486
+ /* @__PURE__ */ q("h2", {
487
487
  className: "text-xl font-semibold",
488
- children: D("coolandlovely.common.errorLoading", "Error loading data")
488
+ children: E("coolandlovely.common.errorLoading", "Error loading data")
489
489
  }),
490
- /* @__PURE__ */ J("p", {
490
+ /* @__PURE__ */ q("p", {
491
491
  className: "text-text-secondary",
492
- children: D("coolandlovely.common.tryAgain", "Please try again later.")
492
+ children: E("coolandlovely.common.tryAgain", "Please try again later.")
493
493
  })
494
494
  ]
495
495
  })
496
- }) : /* @__PURE__ */ Y(n, {
496
+ }) : /* @__PURE__ */ J(n, {
497
497
  hero: !0,
498
- title: /* @__PURE__ */ Y(q, { children: [
499
- D("coolandlovely.home.hello", "Hello"),
498
+ title: /* @__PURE__ */ J(K, { children: [
499
+ E("coolandlovely.home.hello", "Hello"),
500
500
  ",",
501
501
  " ",
502
- /* @__PURE__ */ J(Q, { children: k }),
502
+ /* @__PURE__ */ q(Z, { children: O }),
503
503
  "!"
504
504
  ] }),
505
- description: F[M],
505
+ description: P[j],
506
506
  children: [
507
- U && /* @__PURE__ */ J(X, {
507
+ /* @__PURE__ */ q(Q, {
508
+ className: "mb-6",
509
+ icon: /* @__PURE__ */ q(R, { className: "h-4 w-4" }),
510
+ children: E("coolandlovely.home.purpose", "Your starting point on CoolAndLovely. Search nearby carts and services, jump into the actions that matter for your role, and pick up recent orders and recommendations — everything you need to get going is one tap away from here.")
511
+ }),
512
+ H && /* @__PURE__ */ q(Y, {
508
513
  className: "mb-6 p-6",
509
- children: /* @__PURE__ */ Y("div", {
514
+ children: /* @__PURE__ */ J("div", {
510
515
  className: "flex items-start gap-4",
511
- children: [/* @__PURE__ */ J("div", {
516
+ children: [/* @__PURE__ */ q("div", {
512
517
  className: "flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-action-primary-bg/10",
513
- children: /* @__PURE__ */ J(z, { className: "h-6 w-6 text-primary" })
514
- }), /* @__PURE__ */ Y("div", {
518
+ children: /* @__PURE__ */ q(R, { className: "h-6 w-6 text-primary" })
519
+ }), /* @__PURE__ */ J("div", {
515
520
  className: "flex-1",
516
521
  children: [
517
- /* @__PURE__ */ J("h2", {
522
+ /* @__PURE__ */ q("h2", {
518
523
  className: "text-lg font-semibold text-text-primary",
519
- children: D("coolandlovely.home.welcomeTitle", "Welcome to CoolAndLovely!")
524
+ children: E("coolandlovely.home.welcomeTitle", "Welcome to CoolAndLovely!")
520
525
  }),
521
- /* @__PURE__ */ J("p", {
526
+ /* @__PURE__ */ q("p", {
522
527
  className: "mt-1 text-sm text-text-secondary",
523
- children: D("coolandlovely.home.welcomeDescription", "Your local services marketplace. Start by exploring service providers near you or browse categories to find what you need.")
528
+ children: E("coolandlovely.home.welcomeDescription", "Your local services marketplace. Start by exploring service providers near you or browse categories to find what you need.")
524
529
  }),
525
- /* @__PURE__ */ Y("button", {
530
+ /* @__PURE__ */ J("button", {
526
531
  type: "button",
527
- onClick: () => v("/customer/carts"),
532
+ onClick: () => _("/customer/carts"),
528
533
  className: "mt-3 inline-flex items-center gap-1.5 rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
529
- children: [/* @__PURE__ */ J(P, { className: "h-4 w-4" }), D("coolandlovely.home.exploreServices", "Explore Services")]
534
+ children: [/* @__PURE__ */ q(N, { className: "h-4 w-4" }), E("coolandlovely.home.exploreServices", "Explore Services")]
530
535
  })
531
536
  ]
532
537
  })]
533
538
  })
534
539
  }),
535
- /* @__PURE__ */ J(Z, {
540
+ /* @__PURE__ */ q(X, {
536
541
  treatment: "glass",
537
542
  className: "mb-6 p-6",
538
- children: /* @__PURE__ */ Y("div", {
543
+ children: /* @__PURE__ */ J("div", {
539
544
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
540
- children: [/* @__PURE__ */ Y("div", { children: [
541
- /* @__PURE__ */ J("div", {
545
+ children: [/* @__PURE__ */ J("div", { children: [
546
+ /* @__PURE__ */ q("div", {
542
547
  className: "flex items-center gap-2 mb-1",
543
- children: /* @__PURE__ */ Y("span", {
548
+ children: /* @__PURE__ */ J("span", {
544
549
  className: "inline-flex items-center rounded-full bg-action-primary-bg/10 px-2.5 py-0.5 text-xs font-medium text-primary",
545
- children: [/* @__PURE__ */ J(_, { className: "mr-1 h-3 w-3" }), N[M]]
550
+ children: [/* @__PURE__ */ q(g, { className: "mr-1 h-3 w-3" }), M[j]]
546
551
  })
547
552
  }),
548
- /* @__PURE__ */ Y("h2", {
553
+ /* @__PURE__ */ J("h2", {
549
554
  className: "text-xl font-bold text-text-primary",
550
555
  children: [
551
- D("coolandlovely.home.good", "Good"),
556
+ E("coolandlovely.home.good", "Good"),
552
557
  " ",
553
- (/* @__PURE__ */ new Date()).getHours() < 12 ? D("coolandlovely.home.time.morning", "morning") : (/* @__PURE__ */ new Date()).getHours() < 17 ? D("coolandlovely.home.time.afternoon", "afternoon") : D("coolandlovely.home.time.evening", "evening"),
558
+ (/* @__PURE__ */ new Date()).getHours() < 12 ? E("coolandlovely.home.time.morning", "morning") : (/* @__PURE__ */ new Date()).getHours() < 17 ? E("coolandlovely.home.time.afternoon", "afternoon") : E("coolandlovely.home.time.evening", "evening"),
554
559
  ", ",
555
- k
560
+ O
556
561
  ]
557
562
  }),
558
- /* @__PURE__ */ J("p", {
563
+ /* @__PURE__ */ q("p", {
559
564
  className: "mt-1 text-sm text-text-secondary",
560
- children: F[M]
565
+ children: P[j]
561
566
  })
562
- ] }), /* @__PURE__ */ Y("div", {
567
+ ] }), /* @__PURE__ */ J("div", {
563
568
  className: "relative w-full sm:w-72",
564
- children: [/* @__PURE__ */ J(P, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ J("input", {
569
+ children: [/* @__PURE__ */ q(N, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ q("input", {
565
570
  type: "text",
566
- placeholder: D("coolandlovely.home.searchPlaceholder", "Search services, carts..."),
567
- value: x,
568
- onChange: (e) => C(e.target.value),
571
+ placeholder: E("coolandlovely.home.searchPlaceholder", "Search services, carts..."),
572
+ value: b,
573
+ onChange: (e) => S(e.target.value),
569
574
  className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2.5 pl-10 pr-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
570
575
  })]
571
576
  })]
572
577
  })
573
578
  }),
574
- /* @__PURE__ */ Y("section", {
579
+ /* @__PURE__ */ J("section", {
575
580
  className: "mb-8",
576
- children: [/* @__PURE__ */ J("h2", {
581
+ children: [/* @__PURE__ */ q("h2", {
577
582
  className: "text-lg font-semibold text-text-primary mb-4",
578
- children: D("coolandlovely.home.quickStats", "Quick Stats")
579
- }), /* @__PURE__ */ J("div", {
583
+ children: E("coolandlovely.home.quickStats", "Quick Stats")
584
+ }), /* @__PURE__ */ q("div", {
580
585
  className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
581
- children: L.map((e, t) => /* @__PURE__ */ J(r, {
586
+ children: I.map((e, t) => /* @__PURE__ */ q(r, {
582
587
  featured: t === 0,
583
588
  icon: e.icon,
584
589
  value: e.value,
@@ -588,104 +593,104 @@ function ae() {
588
593
  }, e.label))
589
594
  })]
590
595
  }),
591
- /* @__PURE__ */ Y("section", {
596
+ /* @__PURE__ */ J("section", {
592
597
  className: "mb-8",
593
- children: [/* @__PURE__ */ J("h2", {
598
+ children: [/* @__PURE__ */ q("h2", {
594
599
  className: "text-lg font-semibold text-text-primary mb-4",
595
- children: D("coolandlovely.home.quickActions", "Quick Actions")
596
- }), /* @__PURE__ */ J("div", {
600
+ children: E("coolandlovely.home.quickActions", "Quick Actions")
601
+ }), /* @__PURE__ */ q("div", {
597
602
  className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
598
- children: I.map((e) => /* @__PURE__ */ Y("button", {
603
+ children: F.map((e) => /* @__PURE__ */ J("button", {
599
604
  type: "button",
600
- onClick: () => v(e.path),
605
+ onClick: () => _(e.path),
601
606
  className: t("flex items-start gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 text-left transition-all bg-gloss-card shadow-pop", "hover:border-accent-foreground/20 hover:shadow-md"),
602
607
  children: [
603
- /* @__PURE__ */ J("div", {
608
+ /* @__PURE__ */ q("div", {
604
609
  className: t("flex h-10 w-10 shrink-0 items-center justify-center rounded-lg", e.color),
605
610
  children: e.icon
606
611
  }),
607
- /* @__PURE__ */ Y("div", {
612
+ /* @__PURE__ */ J("div", {
608
613
  className: "min-w-0 flex-1",
609
- children: [/* @__PURE__ */ J("p", {
614
+ children: [/* @__PURE__ */ q("p", {
610
615
  className: "text-sm font-semibold text-text-primary",
611
616
  children: e.label
612
- }), /* @__PURE__ */ J("p", {
617
+ }), /* @__PURE__ */ q("p", {
613
618
  className: "mt-0.5 text-xs text-text-secondary",
614
619
  children: e.description
615
620
  })]
616
621
  }),
617
- /* @__PURE__ */ J(g, { className: "h-4 w-4 text-text-secondary shrink-0 mt-1" })
622
+ /* @__PURE__ */ q(h, { className: "h-4 w-4 text-text-secondary shrink-0 mt-1" })
618
623
  ]
619
624
  }, e.label))
620
625
  })]
621
626
  }),
622
- /* @__PURE__ */ Y("section", {
627
+ /* @__PURE__ */ J("section", {
623
628
  className: "mb-8",
624
- children: [/* @__PURE__ */ Y("div", {
629
+ children: [/* @__PURE__ */ J("div", {
625
630
  className: "flex items-center justify-between mb-4",
626
- children: [/* @__PURE__ */ J("h2", {
631
+ children: [/* @__PURE__ */ q("h2", {
627
632
  className: "text-lg font-semibold text-text-primary",
628
- children: x ? D("coolandlovely.home.searchResults", "Search Results") : D("coolandlovely.home.featuredCarts", "Featured Carts")
629
- }), /* @__PURE__ */ Y("button", {
633
+ children: b ? E("coolandlovely.home.searchResults", "Search Results") : E("coolandlovely.home.featuredCarts", "Featured Carts")
634
+ }), /* @__PURE__ */ J("button", {
630
635
  type: "button",
631
- onClick: () => v("/customer/carts"),
636
+ onClick: () => _("/customer/carts"),
632
637
  className: "flex items-center gap-1 text-sm font-medium text-primary hover:underline",
633
638
  children: [
634
- D("coolandlovely.common.viewAll", "View All"),
639
+ E("coolandlovely.common.viewAll", "View All"),
635
640
  " ",
636
- /* @__PURE__ */ J(g, { className: "h-3.5 w-3.5" })
641
+ /* @__PURE__ */ q(h, { className: "h-3.5 w-3.5" })
637
642
  ]
638
643
  })]
639
- }), R.length === 0 ? /* @__PURE__ */ J(a, {
640
- icon: /* @__PURE__ */ J(P, { className: "h-10 w-10" }),
641
- title: D("coolandlovely.home.noCartsFound", "No carts found"),
642
- description: D("coolandlovely.home.noCartsDescription", "Try adjusting your search or browse all categories"),
643
- action: /* @__PURE__ */ J("button", {
644
+ }), L.length === 0 ? /* @__PURE__ */ q(a, {
645
+ icon: /* @__PURE__ */ q(N, { className: "h-10 w-10" }),
646
+ title: E("coolandlovely.home.noCartsFound", "No carts found"),
647
+ description: E("coolandlovely.home.noCartsDescription", "Try adjusting your search or browse all categories"),
648
+ action: /* @__PURE__ */ q("button", {
644
649
  type: "button",
645
- onClick: () => C(""),
650
+ onClick: () => S(""),
646
651
  className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
647
- children: D("coolandlovely.home.clearSearch", "Clear Search")
652
+ children: E("coolandlovely.home.clearSearch", "Clear Search")
648
653
  })
649
- }) : /* @__PURE__ */ J("div", {
654
+ }) : /* @__PURE__ */ q("div", {
650
655
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
651
- children: R.map((e) => /* @__PURE__ */ Y("div", {
656
+ children: L.map((e) => /* @__PURE__ */ J("div", {
652
657
  role: "button",
653
658
  tabIndex: 0,
654
- onClick: () => v(`/customer/cart/${e.id}`),
659
+ onClick: () => _(`/customer/cart/${e.id}`),
655
660
  onKeyDown: (t) => {
656
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), v(`/customer/cart/${e.id}`));
661
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), _(`/customer/cart/${e.id}`));
657
662
  },
658
663
  className: "rounded-lg border border-border-subtle bg-bg-surface shadow-sm overflow-hidden transition-all hover:shadow-md hover:border-accent-foreground/20 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
659
- children: [/* @__PURE__ */ Y("div", {
664
+ children: [/* @__PURE__ */ J("div", {
660
665
  className: "relative h-40 bg-bg-sunken",
661
666
  children: [
662
- /* @__PURE__ */ J("img", {
667
+ /* @__PURE__ */ q("img", {
663
668
  src: e.image,
664
669
  alt: e.name,
665
670
  className: "h-full w-full object-cover",
666
671
  loading: "lazy"
667
672
  }),
668
- /* @__PURE__ */ J("div", {
673
+ /* @__PURE__ */ q("div", {
669
674
  className: "absolute top-2 right-2",
670
- children: /* @__PURE__ */ J(i, { status: e.isOpen ? "open" : "closed" })
675
+ children: /* @__PURE__ */ q(i, { status: e.isOpen ? "open" : "closed" })
671
676
  }),
672
- e.isVerified && /* @__PURE__ */ J("div", {
677
+ e.isVerified && /* @__PURE__ */ q("div", {
673
678
  className: "absolute top-2 left-2",
674
- children: /* @__PURE__ */ Y("span", {
679
+ children: /* @__PURE__ */ J("span", {
675
680
  className: "inline-flex items-center gap-1 rounded-full bg-accent-blue-subtle/90 px-2 py-0.5 text-xs font-medium text-white backdrop-blur-sm",
676
681
  children: [
677
- /* @__PURE__ */ J(_, { className: "h-3 w-3" }),
682
+ /* @__PURE__ */ q(g, { className: "h-3 w-3" }),
678
683
  " ",
679
- D("coolandlovely.home.verified", "Verified")
684
+ E("coolandlovely.home.verified", "Verified")
680
685
  ]
681
686
  })
682
687
  }),
683
- /* @__PURE__ */ J("div", {
688
+ /* @__PURE__ */ q("div", {
684
689
  className: "absolute bottom-2 right-2",
685
- children: /* @__PURE__ */ Y("span", {
690
+ children: /* @__PURE__ */ J("span", {
686
691
  className: "inline-flex items-center gap-1 rounded-full bg-black/60 px-2 py-0.5 text-xs text-white backdrop-blur-sm",
687
692
  children: [
688
- /* @__PURE__ */ J(S, { className: "h-3 w-3" }),
693
+ /* @__PURE__ */ q(x, { className: "h-3 w-3" }),
689
694
  " ",
690
695
  e.estimatedTime,
691
696
  " min"
@@ -693,64 +698,64 @@ function ae() {
693
698
  })
694
699
  })
695
700
  ]
696
- }), /* @__PURE__ */ Y("div", {
701
+ }), /* @__PURE__ */ J("div", {
697
702
  className: "p-4",
698
703
  children: [
699
- /* @__PURE__ */ Y("div", {
704
+ /* @__PURE__ */ J("div", {
700
705
  className: "flex items-start justify-between",
701
- children: [/* @__PURE__ */ Y("div", {
706
+ children: [/* @__PURE__ */ J("div", {
702
707
  className: "min-w-0 flex-1",
703
- children: [/* @__PURE__ */ J("h3", {
708
+ children: [/* @__PURE__ */ q("h3", {
704
709
  className: "text-base font-semibold text-text-primary truncate",
705
710
  children: e.name
706
- }), /* @__PURE__ */ J("p", {
711
+ }), /* @__PURE__ */ q("p", {
707
712
  className: "mt-0.5 text-sm text-text-secondary",
708
713
  children: e.category
709
714
  })]
710
- }), /* @__PURE__ */ Y("div", {
715
+ }), /* @__PURE__ */ J("div", {
711
716
  className: "flex items-center gap-1 rounded bg-status-success-bg-subtle px-1.5 py-0.5 ml-2 shrink-0",
712
- children: [/* @__PURE__ */ J(B, { className: "h-3 w-3 fill-white text-white" }), /* @__PURE__ */ J("span", {
717
+ children: [/* @__PURE__ */ q(z, { className: "h-3 w-3 fill-white text-white" }), /* @__PURE__ */ q("span", {
713
718
  className: "text-xs font-bold text-white",
714
719
  children: e.rating
715
720
  })]
716
721
  })]
717
722
  }),
718
- /* @__PURE__ */ Y("div", {
723
+ /* @__PURE__ */ J("div", {
719
724
  className: "mt-3 flex items-center gap-4 text-xs text-text-secondary",
720
725
  children: [
721
- /* @__PURE__ */ Y("span", {
726
+ /* @__PURE__ */ J("span", {
722
727
  className: "flex items-center gap-1",
723
728
  children: [
724
- /* @__PURE__ */ J(j, { className: "h-3 w-3" }),
729
+ /* @__PURE__ */ q(A, { className: "h-3 w-3" }),
725
730
  " ",
726
- c(e.distance)
731
+ ee(e.distance)
727
732
  ]
728
733
  }),
729
- /* @__PURE__ */ Y("span", {
734
+ /* @__PURE__ */ J("span", {
730
735
  className: "flex items-center gap-1",
731
736
  children: [
732
- /* @__PURE__ */ J(B, { className: "h-3 w-3" }),
737
+ /* @__PURE__ */ q(z, { className: "h-3 w-3" }),
733
738
  " ",
734
739
  e.totalRatings,
735
740
  " ",
736
- D("coolandlovely.home.reviews", "reviews")
741
+ E("coolandlovely.home.reviews", "reviews")
737
742
  ]
738
743
  }),
739
- e.averageOrderValue && /* @__PURE__ */ Y("span", {
744
+ e.averageOrderValue && /* @__PURE__ */ J("span", {
740
745
  className: "flex items-center gap-1",
741
746
  children: [
742
- /* @__PURE__ */ J(O, { className: "h-3 w-3" }),
747
+ /* @__PURE__ */ q(D, { className: "h-3 w-3" }),
743
748
  " ",
744
- D("coolandlovely.home.average", "Avg."),
749
+ E("coolandlovely.home.average", "Avg."),
745
750
  " ",
746
751
  s(e.averageOrderValue, { minimumFractionDigits: 0 })
747
752
  ]
748
753
  })
749
754
  ]
750
755
  }),
751
- e.serviceTypes && e.serviceTypes.length > 0 && /* @__PURE__ */ J("div", {
756
+ e.serviceTypes && e.serviceTypes.length > 0 && /* @__PURE__ */ q("div", {
752
757
  className: "mt-3 flex flex-wrap gap-1.5",
753
- children: e.serviceTypes.slice(0, 3).map((e) => /* @__PURE__ */ J("span", {
758
+ children: e.serviceTypes.slice(0, 3).map((e) => /* @__PURE__ */ q("span", {
754
759
  className: "inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs text-text-secondary",
755
760
  children: e.replace(/_/g, " ")
756
761
  }, e))
@@ -760,92 +765,92 @@ function ae() {
760
765
  }, e.id))
761
766
  })]
762
767
  }),
763
- V.length > 0 && /* @__PURE__ */ Y("section", {
768
+ B.length > 0 && /* @__PURE__ */ J("section", {
764
769
  className: "mb-8",
765
- children: [/* @__PURE__ */ Y("div", {
770
+ children: [/* @__PURE__ */ J("div", {
766
771
  className: "flex items-center justify-between mb-4",
767
- children: [/* @__PURE__ */ J("h2", {
772
+ children: [/* @__PURE__ */ q("h2", {
768
773
  className: "text-lg font-semibold text-text-primary",
769
- children: D("coolandlovely.home.recentOrders", "Recent Orders")
770
- }), /* @__PURE__ */ Y("button", {
774
+ children: E("coolandlovely.home.recentOrders", "Recent Orders")
775
+ }), /* @__PURE__ */ J("button", {
771
776
  type: "button",
772
- onClick: () => v("/customer/orders"),
777
+ onClick: () => _("/customer/orders"),
773
778
  className: "flex items-center gap-1 text-sm font-medium text-primary hover:underline",
774
779
  children: [
775
- D("coolandlovely.common.viewAll", "View All"),
780
+ E("coolandlovely.common.viewAll", "View All"),
776
781
  " ",
777
- /* @__PURE__ */ J(g, { className: "h-3.5 w-3.5" })
782
+ /* @__PURE__ */ q(h, { className: "h-3.5 w-3.5" })
778
783
  ]
779
784
  })]
780
- }), /* @__PURE__ */ J("div", {
785
+ }), /* @__PURE__ */ q("div", {
781
786
  className: "rounded-lg border border-border-subtle bg-bg-surface divide-y divide-border",
782
- children: V.map((e) => /* @__PURE__ */ Y("div", {
787
+ children: B.map((e) => /* @__PURE__ */ J("div", {
783
788
  role: "button",
784
789
  tabIndex: 0,
785
- onClick: () => v(`/customer/order/${e.id}`),
790
+ onClick: () => _(`/customer/order/${e.id}`),
786
791
  onKeyDown: (t) => {
787
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), v(`/customer/order/${e.id}`));
792
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), _(`/customer/order/${e.id}`));
788
793
  },
789
794
  className: "flex items-center gap-4 px-4 py-3 hover:bg-accent/50 transition-colors cursor-pointer",
790
795
  children: [
791
- /* @__PURE__ */ J("img", {
796
+ /* @__PURE__ */ q("img", {
792
797
  src: e.cartImage,
793
798
  alt: e.cartName,
794
799
  className: "h-12 w-12 rounded-lg object-cover shrink-0"
795
800
  }),
796
- /* @__PURE__ */ Y("div", {
801
+ /* @__PURE__ */ J("div", {
797
802
  className: "flex-1 min-w-0",
798
- children: [/* @__PURE__ */ Y("div", {
803
+ children: [/* @__PURE__ */ J("div", {
799
804
  className: "flex items-center gap-2",
800
- children: [/* @__PURE__ */ J("p", {
805
+ children: [/* @__PURE__ */ q("p", {
801
806
  className: "text-sm font-medium text-text-primary truncate",
802
807
  children: e.cartName
803
- }), /* @__PURE__ */ J(i, { status: e.status })]
804
- }), /* @__PURE__ */ J("p", {
808
+ }), /* @__PURE__ */ q(i, { status: e.status })]
809
+ }), /* @__PURE__ */ q("p", {
805
810
  className: "text-xs text-text-secondary mt-0.5",
806
811
  children: e.items.map((e) => e.name).join(", ")
807
812
  })]
808
813
  }),
809
- /* @__PURE__ */ Y("div", {
814
+ /* @__PURE__ */ J("div", {
810
815
  className: "text-right shrink-0",
811
- children: [/* @__PURE__ */ J("p", {
816
+ children: [/* @__PURE__ */ q("p", {
812
817
  className: "text-sm font-semibold text-text-primary",
813
818
  children: s(e.total, { minimumFractionDigits: 0 })
814
- }), /* @__PURE__ */ J("p", {
819
+ }), /* @__PURE__ */ q("p", {
815
820
  className: "text-xs text-text-secondary",
816
- children: l(e.orderDate)
821
+ children: c(e.orderDate)
817
822
  })]
818
823
  })
819
824
  ]
820
825
  }, e.id))
821
826
  })]
822
827
  }),
823
- /* @__PURE__ */ Y("section", {
828
+ /* @__PURE__ */ J("section", {
824
829
  className: "mb-8",
825
- children: [/* @__PURE__ */ J("h2", {
830
+ children: [/* @__PURE__ */ q("h2", {
826
831
  className: "text-lg font-semibold text-text-primary mb-4",
827
- children: D("coolandlovely.home.howItWorks", "How It Works")
828
- }), /* @__PURE__ */ J("div", {
832
+ children: E("coolandlovely.home.howItWorks", "How It Works")
833
+ }), /* @__PURE__ */ q("div", {
829
834
  className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
830
- children: ne.map((e) => /* @__PURE__ */ Y("div", {
835
+ children: re.map((e) => /* @__PURE__ */ J("div", {
831
836
  className: "relative rounded-lg border border-border-seam bg-bg-surface p-5 text-center bg-gloss-card shadow-pop",
832
837
  children: [
833
- /* @__PURE__ */ J("div", {
838
+ /* @__PURE__ */ q("div", {
834
839
  className: "absolute -top-3 left-1/2 -translate-x-1/2",
835
- children: /* @__PURE__ */ J("span", {
840
+ children: /* @__PURE__ */ q("span", {
836
841
  className: "inline-flex h-6 w-6 items-center justify-center rounded-full bg-action-primary-bg text-xs font-bold text-action-primary-text",
837
842
  children: e.step
838
843
  })
839
844
  }),
840
- /* @__PURE__ */ J("div", {
845
+ /* @__PURE__ */ q("div", {
841
846
  className: "mt-2 flex justify-center text-text-secondary mb-3",
842
847
  children: e.icon
843
848
  }),
844
- /* @__PURE__ */ J("h3", {
849
+ /* @__PURE__ */ q("h3", {
845
850
  className: "text-sm font-semibold text-text-primary",
846
851
  children: e.title
847
852
  }),
848
- /* @__PURE__ */ J("p", {
853
+ /* @__PURE__ */ q("p", {
849
854
  className: "mt-1 text-xs text-text-secondary",
850
855
  children: e.description
851
856
  })
@@ -853,69 +858,69 @@ function ae() {
853
858
  }, e.step))
854
859
  })]
855
860
  }),
856
- /* @__PURE__ */ Y("section", {
861
+ /* @__PURE__ */ J("section", {
857
862
  className: "mb-8",
858
- children: [/* @__PURE__ */ J("h2", {
863
+ children: [/* @__PURE__ */ q("h2", {
859
864
  className: "text-lg font-semibold text-text-primary mb-4",
860
- children: D("coolandlovely.home.browseByCategory", "Browse by Category")
861
- }), /* @__PURE__ */ J("div", {
865
+ children: E("coolandlovely.home.browseByCategory", "Browse by Category")
866
+ }), /* @__PURE__ */ q("div", {
862
867
  className: "grid grid-cols-3 gap-3 sm:grid-cols-4 lg:grid-cols-5",
863
- children: te.map((e) => /* @__PURE__ */ Y("button", {
868
+ children: ne.map((e) => /* @__PURE__ */ J("button", {
864
869
  type: "button",
865
- onClick: () => v(`/customer/carts?category=${encodeURIComponent(e.label)}`),
870
+ onClick: () => _(`/customer/carts?category=${encodeURIComponent(e.label)}`),
866
871
  className: "flex flex-col items-center gap-2 rounded-lg border border-border-seam bg-bg-surface p-4 text-center hover:shadow-sm hover:border-accent-foreground/20 transition-all bg-gloss-card shadow-pop",
867
- children: [/* @__PURE__ */ J("div", {
872
+ children: [/* @__PURE__ */ q("div", {
868
873
  className: t("flex h-12 w-12 items-center justify-center rounded-full", e.color),
869
874
  children: e.icon
870
- }), /* @__PURE__ */ J("span", {
875
+ }), /* @__PURE__ */ q("span", {
871
876
  className: "text-xs font-medium text-text-primary leading-tight",
872
877
  children: e.label
873
878
  })]
874
879
  }, e.label))
875
880
  })]
876
881
  }),
877
- /* @__PURE__ */ Y("section", {
882
+ /* @__PURE__ */ J("section", {
878
883
  className: "mb-8",
879
- children: [/* @__PURE__ */ J("h2", {
884
+ children: [/* @__PURE__ */ q("h2", {
880
885
  className: "text-lg font-semibold text-text-primary mb-4",
881
- children: D("coolandlovely.home.platformStats", "Platform Stats")
882
- }), /* @__PURE__ */ J("div", {
886
+ children: E("coolandlovely.home.platformStats", "Platform Stats")
887
+ }), /* @__PURE__ */ q("div", {
883
888
  className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
884
- children: ie.map((e) => /* @__PURE__ */ Y("div", {
889
+ children: ae.map((e) => /* @__PURE__ */ J("div", {
885
890
  className: "flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
886
- children: [/* @__PURE__ */ J("div", {
891
+ children: [/* @__PURE__ */ q("div", {
887
892
  className: "flex h-10 w-10 items-center justify-center rounded-full bg-action-primary-bg/10 text-primary shrink-0",
888
893
  children: e.icon
889
- }), /* @__PURE__ */ Y("div", { children: [/* @__PURE__ */ J("p", {
894
+ }), /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
890
895
  className: "text-lg font-bold text-text-primary",
891
896
  children: e.value
892
- }), /* @__PURE__ */ J("p", {
897
+ }), /* @__PURE__ */ q("p", {
893
898
  className: "text-xs text-text-secondary",
894
899
  children: e.label
895
900
  })] })]
896
901
  }, e.label))
897
902
  })]
898
903
  }),
899
- /* @__PURE__ */ Y("section", { children: [/* @__PURE__ */ J("h2", {
904
+ /* @__PURE__ */ J("section", { children: [/* @__PURE__ */ q("h2", {
900
905
  className: "text-lg font-semibold text-text-primary mb-4",
901
- children: D("coolandlovely.home.recentActivity", "Recent Activity")
902
- }), /* @__PURE__ */ J("div", {
906
+ children: E("coolandlovely.home.recentActivity", "Recent Activity")
907
+ }), /* @__PURE__ */ q("div", {
903
908
  className: "rounded-lg border border-border-subtle bg-bg-surface divide-y divide-border",
904
- children: re.map((e) => /* @__PURE__ */ Y("div", {
909
+ children: ie.map((e) => /* @__PURE__ */ J("div", {
905
910
  className: "flex items-center gap-3 px-4 py-3",
906
911
  children: [
907
- /* @__PURE__ */ J("div", {
912
+ /* @__PURE__ */ q("div", {
908
913
  className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-bg-sunken",
909
- children: /* @__PURE__ */ J(m, { className: t("h-4 w-4", H[e.type] ?? "text-text-secondary") })
914
+ children: /* @__PURE__ */ q(p, { className: t("h-4 w-4", V[e.type] ?? "text-text-secondary") })
910
915
  }),
911
- /* @__PURE__ */ J("div", {
916
+ /* @__PURE__ */ q("div", {
912
917
  className: "flex-1 min-w-0",
913
- children: /* @__PURE__ */ J("p", {
918
+ children: /* @__PURE__ */ q("p", {
914
919
  className: "text-sm text-text-primary truncate",
915
920
  children: e.description
916
921
  })
917
922
  }),
918
- /* @__PURE__ */ J("span", {
923
+ /* @__PURE__ */ q("span", {
919
924
  className: "text-xs text-text-secondary whitespace-nowrap",
920
925
  children: e.time
921
926
  })
@@ -926,6 +931,6 @@ function ae() {
926
931
  });
927
932
  }
928
933
  //#endregion
929
- export { ae as HomePage };
934
+ export { oe as HomePage };
930
935
 
931
936
  //# sourceMappingURL=HomePage.js.map