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