@burdenoff/microfe-atheletebridge 2026.625.1 → 2026.626.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atheletebridge/pages/HomePage.js +272 -268
- package/dist/atheletebridge/pages/HomePage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js +90 -82
- package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminDashboard.js +76 -44
- package/dist/atheletebridge/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminFinancialPage.js +63 -55
- package/dist/atheletebridge/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminOrdersPage.js +244 -237
- package/dist/atheletebridge/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminProfilePage.js +59 -57
- package/dist/atheletebridge/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminSettingsPage.js +110 -106
- package/dist/atheletebridge/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/CartManagementPage.js +166 -159
- package/dist/atheletebridge/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/UserManagementPage.js +310 -303
- package/dist/atheletebridge/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js +86 -81
- package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js +170 -166
- package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js +141 -109
- package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js +139 -134
- package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js +109 -107
- package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js +318 -318
- package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js +262 -262
- package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js +170 -162
- package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/HelpSupportPage.js +292 -298
- package/dist/atheletebridge/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/NotificationCenterPage.js +99 -91
- package/dist/atheletebridge/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/SettingsPage.js +742 -734
- package/dist/atheletebridge/pages/common/SettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/BookingDetailsPage.js +364 -356
- package/dist/atheletebridge/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CartDetailPage.js +276 -241
- package/dist/atheletebridge/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js +260 -250
- package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CheckoutPage.js +93 -89
- package/dist/atheletebridge/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CustomerDashboard.js +430 -387
- package/dist/atheletebridge/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CustomerProfilePage.js +526 -490
- package/dist/atheletebridge/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js +523 -512
- package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/FavoritesPage.js +83 -75
- package/dist/atheletebridge/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/OrderHistoryPage.js +116 -108
- package/dist/atheletebridge/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/OrderTrackingPage.js +65 -61
- package/dist/atheletebridge/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js +80 -75
- package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/ReviewsPage.js +80 -72
- package/dist/atheletebridge/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/SavedAddressesPage.js +62 -55
- package/dist/atheletebridge/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js +93 -61
- package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js +89 -84
- package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js +60 -55
- package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorDashboard.js +345 -311
- package/dist/atheletebridge/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js +37 -32
- package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js +75 -67
- package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorProfilePage.js +385 -381
- package/dist/atheletebridge/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/TaskDetailsPage.js +352 -319
- package/dist/atheletebridge/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerDashboard.js +353 -318
- package/dist/atheletebridge/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js +133 -128
- package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerProfilePage.js +81 -77
- package/dist/atheletebridge/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js +352 -344
- package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -3,42 +3,42 @@ import { cn as t } from "../utils/cn.js";
|
|
|
3
3
|
import { PageLayout as n } from "../components/PageLayout.js";
|
|
4
4
|
import { MetricsCard as r } from "../components/MetricsCard.js";
|
|
5
5
|
import { StatusBadge as i } from "../components/StatusBadge.js";
|
|
6
|
-
import { EmptyState as
|
|
7
|
-
import { useAthleteBridgeApi as
|
|
8
|
-
import { formatCurrency as
|
|
9
|
-
import { useCallback as
|
|
10
|
-
import { useI18n as
|
|
11
|
-
import { Activity as
|
|
12
|
-
import { Fragment as
|
|
13
|
-
import { EmphasisPanel as
|
|
6
|
+
import { EmptyState as ee } from "../components/EmptyState.js";
|
|
7
|
+
import { useAthleteBridgeApi as a } from "../hooks/useAthleteBridgeApi.js";
|
|
8
|
+
import { formatCurrency as o, formatDistance as s, 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, GradientText as X, PagePurpose as Z, ShowMore as Q } from "@burdenoff/fe-libs/ui";
|
|
14
14
|
//#region src/atheletebridge/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__ */
|
|
20
|
+
icon: /* @__PURE__ */ q(N, { className: "h-5 w-5" }),
|
|
21
21
|
path: "/customer/carts",
|
|
22
22
|
color: "bg-blue-500/10 text-blue-600 dark:text-blue-400"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
label: "My Orders",
|
|
26
26
|
description: "Track your orders",
|
|
27
|
-
icon: /* @__PURE__ */
|
|
27
|
+
icon: /* @__PURE__ */ q(I, { className: "h-5 w-5" }),
|
|
28
28
|
path: "/customer/orders",
|
|
29
29
|
color: "bg-green-500/10 text-green-600 dark:text-green-400"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
label: "Favorites",
|
|
33
33
|
description: "Your saved carts",
|
|
34
|
-
icon: /* @__PURE__ */
|
|
34
|
+
icon: /* @__PURE__ */ q(T, { className: "h-5 w-5" }),
|
|
35
35
|
path: "/customer/favorites",
|
|
36
36
|
color: "bg-pink-500/10 text-pink-600 dark:text-pink-400"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
label: "Settings",
|
|
40
40
|
description: "Manage preferences",
|
|
41
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
50
|
+
icon: /* @__PURE__ */ q(B, { className: "h-5 w-5" }),
|
|
51
51
|
path: "/owner/dashboard",
|
|
52
52
|
color: "bg-purple-500/10 text-purple-600 dark:text-purple-400"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
label: "Orders",
|
|
56
56
|
description: "Incoming orders",
|
|
57
|
-
icon: /* @__PURE__ */
|
|
57
|
+
icon: /* @__PURE__ */ q(I, { className: "h-5 w-5" }),
|
|
58
58
|
path: "/owner/orders",
|
|
59
59
|
color: "bg-blue-500/10 text-blue-600 dark:text-blue-400"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
label: "Analytics",
|
|
63
63
|
description: "Revenue & insights",
|
|
64
|
-
icon: /* @__PURE__ */
|
|
64
|
+
icon: /* @__PURE__ */ q(_, { className: "h-5 w-5" }),
|
|
65
65
|
path: "/owner/analytics",
|
|
66
66
|
color: "bg-emerald-500/10 text-emerald-600 dark:text-emerald-400"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
label: "Staff",
|
|
70
70
|
description: "Manage workers",
|
|
71
|
-
icon: /* @__PURE__ */
|
|
71
|
+
icon: /* @__PURE__ */ q(U, { className: "h-5 w-5" }),
|
|
72
72
|
path: "/owner/staff",
|
|
73
73
|
color: "bg-orange-500/10 text-orange-600 dark:text-orange-400"
|
|
74
74
|
}
|
|
@@ -77,28 +77,28 @@ var $ = {
|
|
|
77
77
|
{
|
|
78
78
|
label: "My Tasks",
|
|
79
79
|
description: "View assigned tasks",
|
|
80
|
-
icon: /* @__PURE__ */
|
|
80
|
+
icon: /* @__PURE__ */ q(b, { className: "h-5 w-5" }),
|
|
81
81
|
path: "/worker/dashboard",
|
|
82
82
|
color: "bg-orange-500/10 text-orange-600 dark:text-orange-400"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
label: "Schedule",
|
|
86
86
|
description: "View shifts",
|
|
87
|
-
icon: /* @__PURE__ */
|
|
87
|
+
icon: /* @__PURE__ */ q(x, { className: "h-5 w-5" }),
|
|
88
88
|
path: "/worker/schedule",
|
|
89
89
|
color: "bg-blue-500/10 text-blue-600 dark:text-blue-400"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
label: "Earnings",
|
|
93
93
|
description: "Track pay",
|
|
94
|
-
icon: /* @__PURE__ */
|
|
94
|
+
icon: /* @__PURE__ */ q(W, { className: "h-5 w-5" }),
|
|
95
95
|
path: "/worker/earnings",
|
|
96
96
|
color: "bg-green-500/10 text-green-600 dark:text-green-400"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
label: "Performance",
|
|
100
100
|
description: "Ratings & stats",
|
|
101
|
-
icon: /* @__PURE__ */
|
|
101
|
+
icon: /* @__PURE__ */ q(z, { className: "h-5 w-5" }),
|
|
102
102
|
path: "/worker/performance",
|
|
103
103
|
color: "bg-yellow-500/10 text-yellow-600 dark:text-yellow-400"
|
|
104
104
|
}
|
|
@@ -107,28 +107,28 @@ var $ = {
|
|
|
107
107
|
{
|
|
108
108
|
label: "Portfolio",
|
|
109
109
|
description: "Your investments",
|
|
110
|
-
icon: /* @__PURE__ */
|
|
110
|
+
icon: /* @__PURE__ */ q(V, { className: "h-5 w-5" }),
|
|
111
111
|
path: "/investor/dashboard",
|
|
112
112
|
color: "bg-emerald-500/10 text-emerald-600 dark:text-emerald-400"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
label: "Opportunities",
|
|
116
116
|
description: "New investments",
|
|
117
|
-
icon: /* @__PURE__ */
|
|
117
|
+
icon: /* @__PURE__ */ q(w, { className: "h-5 w-5" }),
|
|
118
118
|
path: "/investor/opportunities",
|
|
119
119
|
color: "bg-blue-500/10 text-blue-600 dark:text-blue-400"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
label: "Returns",
|
|
123
123
|
description: "Earnings history",
|
|
124
|
-
icon: /* @__PURE__ */
|
|
124
|
+
icon: /* @__PURE__ */ q(D, { className: "h-5 w-5" }),
|
|
125
125
|
path: "/investor/returns",
|
|
126
126
|
color: "bg-green-500/10 text-green-600 dark:text-green-400"
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
label: "Reports",
|
|
130
130
|
description: "Performance reports",
|
|
131
|
-
icon: /* @__PURE__ */
|
|
131
|
+
icon: /* @__PURE__ */ q(S, { className: "h-5 w-5" }),
|
|
132
132
|
path: "/investor/reports",
|
|
133
133
|
color: "bg-purple-500/10 text-purple-600 dark:text-purple-400"
|
|
134
134
|
}
|
|
@@ -137,60 +137,60 @@ var $ = {
|
|
|
137
137
|
{
|
|
138
138
|
label: "Dashboard",
|
|
139
139
|
description: "Platform overview",
|
|
140
|
-
icon: /* @__PURE__ */
|
|
140
|
+
icon: /* @__PURE__ */ q(O, { className: "h-5 w-5" }),
|
|
141
141
|
path: "/admin/dashboard",
|
|
142
142
|
color: "bg-red-500/10 text-red-600 dark:text-red-400"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
label: "Users",
|
|
146
146
|
description: "Manage accounts",
|
|
147
|
-
icon: /* @__PURE__ */
|
|
147
|
+
icon: /* @__PURE__ */ q(U, { className: "h-5 w-5" }),
|
|
148
148
|
path: "/admin/users",
|
|
149
149
|
color: "bg-blue-500/10 text-blue-600 dark:text-blue-400"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
label: "Carts",
|
|
153
153
|
description: "Approve & manage",
|
|
154
|
-
icon: /* @__PURE__ */
|
|
154
|
+
icon: /* @__PURE__ */ q(B, { className: "h-5 w-5" }),
|
|
155
155
|
path: "/admin/carts",
|
|
156
156
|
color: "bg-purple-500/10 text-purple-600 dark:text-purple-400"
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
label: "Analytics",
|
|
160
160
|
description: "Revenue reports",
|
|
161
|
-
icon: /* @__PURE__ */
|
|
161
|
+
icon: /* @__PURE__ */ q(_, { className: "h-5 w-5" }),
|
|
162
162
|
path: "/admin/analytics",
|
|
163
163
|
color: "bg-emerald-500/10 text-emerald-600 dark:text-emerald-400"
|
|
164
164
|
}
|
|
165
165
|
]
|
|
166
166
|
};
|
|
167
|
-
function
|
|
167
|
+
function te(e, t, n) {
|
|
168
168
|
switch (e) {
|
|
169
169
|
case "customer": return [
|
|
170
170
|
{
|
|
171
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
193
|
-
value:
|
|
192
|
+
icon: /* @__PURE__ */ q(D, { className: "h-5 w-5" }),
|
|
193
|
+
value: o(t.reduce((e, t) => e + t.total, 0), { minimumFractionDigits: 0 }),
|
|
194
194
|
label: "Total Spent",
|
|
195
195
|
trend: "neutral",
|
|
196
196
|
trendValue: ""
|
|
@@ -198,28 +198,28 @@ function ee(e, t, n) {
|
|
|
198
198
|
];
|
|
199
199
|
case "cart_owner": return [
|
|
200
200
|
{
|
|
201
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
209
|
-
value:
|
|
208
|
+
icon: /* @__PURE__ */ q(D, { className: "h-5 w-5" }),
|
|
209
|
+
value: o(12850, { minimumFractionDigits: 0 }),
|
|
210
210
|
label: "Today's Revenue",
|
|
211
211
|
trend: "up",
|
|
212
212
|
trendValue: "+8%"
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
239
|
-
value:
|
|
238
|
+
icon: /* @__PURE__ */ q(D, { className: "h-5 w-5" }),
|
|
239
|
+
value: o(425, { minimumFractionDigits: 0 }),
|
|
240
240
|
label: "Today's Earnings",
|
|
241
241
|
trend: "up",
|
|
242
242
|
trendValue: "+15%"
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
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,29 +258,29 @@ function ee(e, t, n) {
|
|
|
258
258
|
];
|
|
259
259
|
case "investor": return [
|
|
260
260
|
{
|
|
261
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
269
|
-
value:
|
|
268
|
+
icon: /* @__PURE__ */ q(D, { className: "h-5 w-5" }),
|
|
269
|
+
value: o(45e4, { minimumFractionDigits: 0 }),
|
|
270
270
|
label: "Total Invested",
|
|
271
271
|
trend: "up",
|
|
272
272
|
trendValue: ""
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
283
|
-
value:
|
|
282
|
+
icon: /* @__PURE__ */ q(_, { className: "h-5 w-5" }),
|
|
283
|
+
value: o(74250, { minimumFractionDigits: 0 }),
|
|
284
284
|
label: "Total Returns",
|
|
285
285
|
trend: "up",
|
|
286
286
|
trendValue: "+8.5%"
|
|
@@ -288,29 +288,29 @@ function ee(e, t, n) {
|
|
|
288
288
|
];
|
|
289
289
|
default: return [
|
|
290
290
|
{
|
|
291
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
313
|
-
value:
|
|
312
|
+
icon: /* @__PURE__ */ q(D, { className: "h-5 w-5" }),
|
|
313
|
+
value: o(n?.totalRevenue ?? 0, { minimumFractionDigits: 0 }),
|
|
314
314
|
label: "Total Revenue",
|
|
315
315
|
trend: "up",
|
|
316
316
|
trendValue: "+8.5%"
|
|
@@ -318,78 +318,78 @@ function ee(e, t, n) {
|
|
|
318
318
|
];
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
var
|
|
321
|
+
var ne = [
|
|
322
322
|
{
|
|
323
323
|
label: "Food & Beverage",
|
|
324
|
-
icon: /* @__PURE__ */
|
|
324
|
+
icon: /* @__PURE__ */ q(y, { className: "h-6 w-6" }),
|
|
325
325
|
color: "bg-orange-500/10 text-orange-600 dark:text-orange-400"
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
label: "Personal Care & Beauty",
|
|
329
|
-
icon: /* @__PURE__ */
|
|
329
|
+
icon: /* @__PURE__ */ q(M, { className: "h-6 w-6" }),
|
|
330
330
|
color: "bg-pink-500/10 text-pink-600 dark:text-pink-400"
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
333
|
label: "Repair & Maintenance",
|
|
334
|
-
icon: /* @__PURE__ */
|
|
334
|
+
icon: /* @__PURE__ */ q(G, { className: "h-6 w-6" }),
|
|
335
335
|
color: "bg-blue-500/10 text-blue-600 dark:text-blue-400"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
label: "Home Services",
|
|
339
|
-
icon: /* @__PURE__ */
|
|
339
|
+
icon: /* @__PURE__ */ q(E, { className: "h-6 w-6" }),
|
|
340
340
|
color: "bg-emerald-500/10 text-emerald-600 dark:text-emerald-400"
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
label: "Clothing & Fashion",
|
|
344
|
-
icon: /* @__PURE__ */
|
|
344
|
+
icon: /* @__PURE__ */ q(F, { className: "h-6 w-6" }),
|
|
345
345
|
color: "bg-purple-500/10 text-purple-600 dark:text-purple-400"
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
label: "Health & Wellness",
|
|
349
|
-
icon: /* @__PURE__ */
|
|
349
|
+
icon: /* @__PURE__ */ q(T, { className: "h-6 w-6" }),
|
|
350
350
|
color: "bg-red-500/10 text-red-600 dark:text-red-400"
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
label: "Education & Skills",
|
|
354
|
-
icon: /* @__PURE__ */
|
|
354
|
+
icon: /* @__PURE__ */ q(C, { className: "h-6 w-6" }),
|
|
355
355
|
color: "bg-yellow-500/10 text-yellow-600 dark:text-yellow-400"
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
label: "Retail & Merchandise",
|
|
359
|
-
icon: /* @__PURE__ */
|
|
359
|
+
icon: /* @__PURE__ */ q(j, { className: "h-6 w-6" }),
|
|
360
360
|
color: "bg-indigo-500/10 text-indigo-600 dark:text-indigo-400"
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
363
|
label: "Grocery & Essentials",
|
|
364
|
-
icon: /* @__PURE__ */
|
|
364
|
+
icon: /* @__PURE__ */ q(L, { className: "h-6 w-6" }),
|
|
365
365
|
color: "bg-green-500/10 text-green-600 dark:text-green-400"
|
|
366
366
|
}
|
|
367
|
-
],
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
390
|
+
icon: /* @__PURE__ */ q(z, { className: "h-6 w-6" })
|
|
391
391
|
}
|
|
392
|
-
],
|
|
392
|
+
], ie = [
|
|
393
393
|
{
|
|
394
394
|
id: "ha-1",
|
|
395
395
|
description: "New order placed at Dosa Express",
|
|
@@ -420,163 +420,167 @@ var te = [
|
|
|
420
420
|
time: "5 hours ago",
|
|
421
421
|
type: "order"
|
|
422
422
|
}
|
|
423
|
-
],
|
|
423
|
+
], ae = [
|
|
424
424
|
{
|
|
425
425
|
label: "Service Providers",
|
|
426
426
|
value: "21+",
|
|
427
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
442
|
+
icon: /* @__PURE__ */ q(v, { className: "h-5 w-5" })
|
|
443
443
|
}
|
|
444
444
|
];
|
|
445
|
-
function
|
|
446
|
-
let { navigateTo:
|
|
447
|
-
let n =
|
|
445
|
+
function oe() {
|
|
446
|
+
let { navigateTo: _, currentUser: v } = e(), { t: y } = f(), [b, S] = d(""), { providers: C, orders: w, dashboardStats: T } = a(), E = l((e, t) => {
|
|
447
|
+
let n = y(e);
|
|
448
448
|
return n === e ? t : n;
|
|
449
|
-
}, [
|
|
450
|
-
customer:
|
|
451
|
-
cart_owner:
|
|
452
|
-
worker:
|
|
453
|
-
investor:
|
|
454
|
-
admin:
|
|
455
|
-
},
|
|
456
|
-
customer:
|
|
457
|
-
cart_owner:
|
|
458
|
-
worker:
|
|
459
|
-
investor:
|
|
460
|
-
admin:
|
|
461
|
-
},
|
|
462
|
-
let e = (
|
|
463
|
-
if (
|
|
464
|
-
let t =
|
|
449
|
+
}, [y]), O = v?.firstName ?? v?.name ?? "there", j = v?.role ?? "customer", M = {
|
|
450
|
+
customer: E("atheletebridge.home.role.customer", "Customer"),
|
|
451
|
+
cart_owner: E("atheletebridge.home.role.cartOwner", "Cart Owner"),
|
|
452
|
+
worker: E("atheletebridge.home.role.worker", "Worker"),
|
|
453
|
+
investor: E("atheletebridge.home.role.investor", "Investor"),
|
|
454
|
+
admin: E("atheletebridge.home.role.admin", "Administrator")
|
|
455
|
+
}, P = {
|
|
456
|
+
customer: E("atheletebridge.home.greeting.customer", "Discover amazing services near you"),
|
|
457
|
+
cart_owner: E("atheletebridge.home.greeting.cartOwner", "Manage your business and grow"),
|
|
458
|
+
worker: E("atheletebridge.home.greeting.worker", "Check your tasks and earnings"),
|
|
459
|
+
investor: E("atheletebridge.home.greeting.investor", "Track your investments and returns"),
|
|
460
|
+
admin: E("atheletebridge.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
|
-
}, [
|
|
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-blue-600 dark:text-blue-400",
|
|
470
470
|
review: "text-yellow-600 dark:text-yellow-400",
|
|
471
471
|
investment: "text-green-600 dark:text-green-400",
|
|
472
472
|
cart: "text-purple-600 dark:text-purple-400"
|
|
473
|
-
},
|
|
474
|
-
return
|
|
475
|
-
title:
|
|
476
|
-
children: /* @__PURE__ */
|
|
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("atheletebridge.common.loading", "Loading..."),
|
|
476
|
+
children: /* @__PURE__ */ q("div", {
|
|
477
477
|
className: "flex h-[60vh] items-center justify-center",
|
|
478
|
-
children: /* @__PURE__ */
|
|
478
|
+
children: /* @__PURE__ */ q(k, { className: "h-8 w-8 animate-spin text-primary" })
|
|
479
479
|
})
|
|
480
|
-
}) :
|
|
481
|
-
title:
|
|
482
|
-
children: /* @__PURE__ */
|
|
480
|
+
}) : W ? /* @__PURE__ */ q(n, {
|
|
481
|
+
title: E("atheletebridge.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__ */
|
|
486
|
-
/* @__PURE__ */
|
|
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:
|
|
488
|
+
children: E("atheletebridge.common.errorLoading", "Error loading data")
|
|
489
489
|
}),
|
|
490
|
-
/* @__PURE__ */
|
|
490
|
+
/* @__PURE__ */ q("p", {
|
|
491
491
|
className: "text-text-secondary",
|
|
492
|
-
children:
|
|
492
|
+
children: E("atheletebridge.common.tryAgain", "Please try again later.")
|
|
493
493
|
})
|
|
494
494
|
]
|
|
495
495
|
})
|
|
496
|
-
}) : /* @__PURE__ */
|
|
496
|
+
}) : /* @__PURE__ */ J(n, {
|
|
497
497
|
hero: !0,
|
|
498
|
-
title: /* @__PURE__ */
|
|
499
|
-
|
|
498
|
+
title: /* @__PURE__ */ J(K, { children: [
|
|
499
|
+
E("atheletebridge.home.hello", "Hello"),
|
|
500
500
|
", ",
|
|
501
|
-
/* @__PURE__ */
|
|
501
|
+
/* @__PURE__ */ q(X, { children: O }),
|
|
502
502
|
"!"
|
|
503
503
|
] }),
|
|
504
|
-
description:
|
|
504
|
+
description: P[j],
|
|
505
505
|
children: [
|
|
506
|
-
|
|
506
|
+
/* @__PURE__ */ q(Z, {
|
|
507
|
+
className: "mb-6",
|
|
508
|
+
children: E("atheletebridge.home.purpose", "Your home base on AthleteBridge. See your key numbers at a glance, jump straight to what you do most with quick actions, and discover services, carts and categories near you. Start here, then dive into whatever you came to do.")
|
|
509
|
+
}),
|
|
510
|
+
H && /* @__PURE__ */ q("section", {
|
|
507
511
|
className: "mb-6 rounded-xl border border-border-subtle bg-gradient-to-r from-primary/5 via-primary/10 to-primary/5 p-6",
|
|
508
|
-
children: /* @__PURE__ */
|
|
512
|
+
children: /* @__PURE__ */ J("div", {
|
|
509
513
|
className: "flex items-start gap-4",
|
|
510
|
-
children: [/* @__PURE__ */
|
|
514
|
+
children: [/* @__PURE__ */ q("div", {
|
|
511
515
|
className: "flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-action-primary-bg/10",
|
|
512
|
-
children: /* @__PURE__ */
|
|
513
|
-
}), /* @__PURE__ */
|
|
516
|
+
children: /* @__PURE__ */ q(R, { className: "h-6 w-6 text-primary" })
|
|
517
|
+
}), /* @__PURE__ */ J("div", {
|
|
514
518
|
className: "flex-1",
|
|
515
519
|
children: [
|
|
516
|
-
/* @__PURE__ */
|
|
520
|
+
/* @__PURE__ */ q("h2", {
|
|
517
521
|
className: "text-lg font-semibold text-text-primary",
|
|
518
|
-
children:
|
|
522
|
+
children: E("atheletebridge.home.welcomeTitle", "Welcome to AthleteBridge!")
|
|
519
523
|
}),
|
|
520
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ q("p", {
|
|
521
525
|
className: "mt-1 text-sm text-text-secondary",
|
|
522
|
-
children:
|
|
526
|
+
children: E("atheletebridge.home.welcomeDescription", "Your local services marketplace. Start by exploring service providers near you or browse categories to find what you need.")
|
|
523
527
|
}),
|
|
524
|
-
/* @__PURE__ */
|
|
528
|
+
/* @__PURE__ */ J("button", {
|
|
525
529
|
type: "button",
|
|
526
|
-
onClick: () =>
|
|
530
|
+
onClick: () => _("/customer/carts"),
|
|
527
531
|
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",
|
|
528
|
-
children: [/* @__PURE__ */
|
|
532
|
+
children: [/* @__PURE__ */ q(N, { className: "h-4 w-4" }), E("atheletebridge.home.exploreServices", "Explore Services")]
|
|
529
533
|
})
|
|
530
534
|
]
|
|
531
535
|
})]
|
|
532
536
|
})
|
|
533
537
|
}),
|
|
534
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ q(Y, {
|
|
535
539
|
className: "mb-6",
|
|
536
|
-
children: /* @__PURE__ */
|
|
540
|
+
children: /* @__PURE__ */ J("div", {
|
|
537
541
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
538
|
-
children: [/* @__PURE__ */
|
|
539
|
-
/* @__PURE__ */
|
|
542
|
+
children: [/* @__PURE__ */ J("div", { children: [
|
|
543
|
+
/* @__PURE__ */ q("div", {
|
|
540
544
|
className: "flex items-center gap-2 mb-1",
|
|
541
|
-
children: /* @__PURE__ */
|
|
545
|
+
children: /* @__PURE__ */ J("span", {
|
|
542
546
|
className: "inline-flex items-center rounded-full bg-action-primary-bg/10 px-2.5 py-0.5 text-xs font-medium text-primary",
|
|
543
|
-
children: [/* @__PURE__ */
|
|
547
|
+
children: [/* @__PURE__ */ q(g, { className: "mr-1 h-3 w-3" }), M[j]]
|
|
544
548
|
})
|
|
545
549
|
}),
|
|
546
|
-
/* @__PURE__ */
|
|
550
|
+
/* @__PURE__ */ J("h2", {
|
|
547
551
|
className: "text-xl font-bold text-text-primary",
|
|
548
552
|
children: [
|
|
549
|
-
|
|
553
|
+
E("atheletebridge.home.good", "Good"),
|
|
550
554
|
" ",
|
|
551
|
-
(/* @__PURE__ */ new Date()).getHours() < 12 ?
|
|
555
|
+
(/* @__PURE__ */ new Date()).getHours() < 12 ? E("atheletebridge.home.time.morning", "morning") : (/* @__PURE__ */ new Date()).getHours() < 17 ? E("atheletebridge.home.time.afternoon", "afternoon") : E("atheletebridge.home.time.evening", "evening"),
|
|
552
556
|
", ",
|
|
553
|
-
|
|
557
|
+
O
|
|
554
558
|
]
|
|
555
559
|
}),
|
|
556
|
-
/* @__PURE__ */
|
|
560
|
+
/* @__PURE__ */ q("p", {
|
|
557
561
|
className: "mt-1 text-sm text-text-secondary",
|
|
558
|
-
children:
|
|
562
|
+
children: P[j]
|
|
559
563
|
})
|
|
560
|
-
] }), /* @__PURE__ */
|
|
564
|
+
] }), /* @__PURE__ */ J("div", {
|
|
561
565
|
className: "relative w-full sm:w-72",
|
|
562
|
-
children: [/* @__PURE__ */
|
|
566
|
+
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", {
|
|
563
567
|
type: "text",
|
|
564
|
-
placeholder:
|
|
565
|
-
value:
|
|
566
|
-
onChange: (e) =>
|
|
568
|
+
placeholder: E("atheletebridge.home.searchPlaceholder", "Search services, carts..."),
|
|
569
|
+
value: b,
|
|
570
|
+
onChange: (e) => S(e.target.value),
|
|
567
571
|
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)]"
|
|
568
572
|
})]
|
|
569
573
|
})]
|
|
570
574
|
})
|
|
571
575
|
}),
|
|
572
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ J("section", {
|
|
573
577
|
className: "mb-8",
|
|
574
|
-
children: [/* @__PURE__ */
|
|
578
|
+
children: [/* @__PURE__ */ q("h2", {
|
|
575
579
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
576
|
-
children:
|
|
577
|
-
}), /* @__PURE__ */
|
|
580
|
+
children: E("atheletebridge.home.quickStats", "Quick Stats")
|
|
581
|
+
}), /* @__PURE__ */ q("div", {
|
|
578
582
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
579
|
-
children:
|
|
583
|
+
children: I.map((e, t) => /* @__PURE__ */ q(r, {
|
|
580
584
|
icon: e.icon,
|
|
581
585
|
value: e.value,
|
|
582
586
|
label: e.label,
|
|
@@ -586,104 +590,104 @@ function ae() {
|
|
|
586
590
|
}, e.label))
|
|
587
591
|
})]
|
|
588
592
|
}),
|
|
589
|
-
/* @__PURE__ */
|
|
593
|
+
/* @__PURE__ */ J("section", {
|
|
590
594
|
className: "mb-8",
|
|
591
|
-
children: [/* @__PURE__ */
|
|
595
|
+
children: [/* @__PURE__ */ q("h2", {
|
|
592
596
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
593
|
-
children:
|
|
594
|
-
}), /* @__PURE__ */
|
|
597
|
+
children: E("atheletebridge.home.quickActions", "Quick Actions")
|
|
598
|
+
}), /* @__PURE__ */ q("div", {
|
|
595
599
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
596
|
-
children:
|
|
600
|
+
children: F.map((e) => /* @__PURE__ */ J("button", {
|
|
597
601
|
type: "button",
|
|
598
|
-
onClick: () =>
|
|
602
|
+
onClick: () => _(e.path),
|
|
599
603
|
className: t("flex items-start gap-3 rounded-lg border border-border-subtle bg-bg-surface p-4 text-left shadow-sm transition-all", "hover:border-accent-foreground/20 hover:shadow-md"),
|
|
600
604
|
children: [
|
|
601
|
-
/* @__PURE__ */
|
|
605
|
+
/* @__PURE__ */ q("div", {
|
|
602
606
|
className: t("flex h-10 w-10 shrink-0 items-center justify-center rounded-lg", e.color),
|
|
603
607
|
children: e.icon
|
|
604
608
|
}),
|
|
605
|
-
/* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ J("div", {
|
|
606
610
|
className: "min-w-0 flex-1",
|
|
607
|
-
children: [/* @__PURE__ */
|
|
611
|
+
children: [/* @__PURE__ */ q("p", {
|
|
608
612
|
className: "text-sm font-semibold text-text-primary",
|
|
609
613
|
children: e.label
|
|
610
|
-
}), /* @__PURE__ */
|
|
614
|
+
}), /* @__PURE__ */ q("p", {
|
|
611
615
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
612
616
|
children: e.description
|
|
613
617
|
})]
|
|
614
618
|
}),
|
|
615
|
-
/* @__PURE__ */
|
|
619
|
+
/* @__PURE__ */ q(h, { className: "h-4 w-4 text-text-secondary shrink-0 mt-1" })
|
|
616
620
|
]
|
|
617
621
|
}, e.label))
|
|
618
622
|
})]
|
|
619
623
|
}),
|
|
620
|
-
/* @__PURE__ */
|
|
624
|
+
/* @__PURE__ */ J("section", {
|
|
621
625
|
className: "mb-8",
|
|
622
|
-
children: [/* @__PURE__ */
|
|
626
|
+
children: [/* @__PURE__ */ J("div", {
|
|
623
627
|
className: "flex items-center justify-between mb-4",
|
|
624
|
-
children: [/* @__PURE__ */
|
|
628
|
+
children: [/* @__PURE__ */ q("h2", {
|
|
625
629
|
className: "text-lg font-semibold text-text-primary",
|
|
626
|
-
children:
|
|
627
|
-
}), /* @__PURE__ */
|
|
630
|
+
children: b ? E("atheletebridge.home.searchResults", "Search Results") : E("atheletebridge.home.featuredCarts", "Featured Carts")
|
|
631
|
+
}), /* @__PURE__ */ J("button", {
|
|
628
632
|
type: "button",
|
|
629
|
-
onClick: () =>
|
|
633
|
+
onClick: () => _("/customer/carts"),
|
|
630
634
|
className: "flex items-center gap-1 text-sm font-medium text-primary hover:underline",
|
|
631
635
|
children: [
|
|
632
|
-
|
|
636
|
+
E("atheletebridge.common.viewAll", "View All"),
|
|
633
637
|
" ",
|
|
634
|
-
/* @__PURE__ */
|
|
638
|
+
/* @__PURE__ */ q(h, { className: "h-3.5 w-3.5" })
|
|
635
639
|
]
|
|
636
640
|
})]
|
|
637
|
-
}),
|
|
641
|
+
}), L.length === 0 ? /* @__PURE__ */ q(ee, {
|
|
638
642
|
illustration: "empty-search",
|
|
639
|
-
title:
|
|
640
|
-
description:
|
|
641
|
-
action: /* @__PURE__ */
|
|
643
|
+
title: E("atheletebridge.home.noCartsFound", "No carts found"),
|
|
644
|
+
description: E("atheletebridge.home.noCartsDescription", "Try adjusting your search or browse all categories"),
|
|
645
|
+
action: /* @__PURE__ */ q("button", {
|
|
642
646
|
type: "button",
|
|
643
|
-
onClick: () =>
|
|
647
|
+
onClick: () => S(""),
|
|
644
648
|
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
645
|
-
children:
|
|
649
|
+
children: E("atheletebridge.home.clearSearch", "Clear Search")
|
|
646
650
|
})
|
|
647
|
-
}) : /* @__PURE__ */
|
|
651
|
+
}) : /* @__PURE__ */ q("div", {
|
|
648
652
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
649
|
-
children:
|
|
653
|
+
children: L.map((e) => /* @__PURE__ */ J("div", {
|
|
650
654
|
role: "button",
|
|
651
655
|
tabIndex: 0,
|
|
652
|
-
onClick: () =>
|
|
656
|
+
onClick: () => _(`/customer/cart/${e.id}`),
|
|
653
657
|
onKeyDown: (t) => {
|
|
654
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(),
|
|
658
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), _(`/customer/cart/${e.id}`));
|
|
655
659
|
},
|
|
656
660
|
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)]",
|
|
657
|
-
children: [/* @__PURE__ */
|
|
661
|
+
children: [/* @__PURE__ */ J("div", {
|
|
658
662
|
className: "relative h-40 bg-bg-sunken",
|
|
659
663
|
children: [
|
|
660
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ q("img", {
|
|
661
665
|
src: e.image,
|
|
662
666
|
alt: e.name,
|
|
663
667
|
className: "h-full w-full object-cover",
|
|
664
668
|
loading: "lazy"
|
|
665
669
|
}),
|
|
666
|
-
/* @__PURE__ */
|
|
670
|
+
/* @__PURE__ */ q("div", {
|
|
667
671
|
className: "absolute top-2 right-2",
|
|
668
|
-
children: /* @__PURE__ */
|
|
672
|
+
children: /* @__PURE__ */ q(i, { status: e.isOpen ? "open" : "closed" })
|
|
669
673
|
}),
|
|
670
|
-
e.isVerified && /* @__PURE__ */
|
|
674
|
+
e.isVerified && /* @__PURE__ */ q("div", {
|
|
671
675
|
className: "absolute top-2 left-2",
|
|
672
|
-
children: /* @__PURE__ */
|
|
676
|
+
children: /* @__PURE__ */ J("span", {
|
|
673
677
|
className: "inline-flex items-center gap-1 rounded-full bg-blue-500/90 px-2 py-0.5 text-xs font-medium text-white backdrop-blur-sm",
|
|
674
678
|
children: [
|
|
675
|
-
/* @__PURE__ */
|
|
679
|
+
/* @__PURE__ */ q(g, { className: "h-3 w-3" }),
|
|
676
680
|
" ",
|
|
677
|
-
|
|
681
|
+
E("atheletebridge.home.verified", "Verified")
|
|
678
682
|
]
|
|
679
683
|
})
|
|
680
684
|
}),
|
|
681
|
-
/* @__PURE__ */
|
|
685
|
+
/* @__PURE__ */ q("div", {
|
|
682
686
|
className: "absolute bottom-2 right-2",
|
|
683
|
-
children: /* @__PURE__ */
|
|
687
|
+
children: /* @__PURE__ */ J("span", {
|
|
684
688
|
className: "inline-flex items-center gap-1 rounded-full bg-black/60 px-2 py-0.5 text-xs text-white backdrop-blur-sm",
|
|
685
689
|
children: [
|
|
686
|
-
/* @__PURE__ */
|
|
690
|
+
/* @__PURE__ */ q(x, { className: "h-3 w-3" }),
|
|
687
691
|
" ",
|
|
688
692
|
e.estimatedTime,
|
|
689
693
|
" min"
|
|
@@ -691,64 +695,64 @@ function ae() {
|
|
|
691
695
|
})
|
|
692
696
|
})
|
|
693
697
|
]
|
|
694
|
-
}), /* @__PURE__ */
|
|
698
|
+
}), /* @__PURE__ */ J("div", {
|
|
695
699
|
className: "p-4",
|
|
696
700
|
children: [
|
|
697
|
-
/* @__PURE__ */
|
|
701
|
+
/* @__PURE__ */ J("div", {
|
|
698
702
|
className: "flex items-start justify-between",
|
|
699
|
-
children: [/* @__PURE__ */
|
|
703
|
+
children: [/* @__PURE__ */ J("div", {
|
|
700
704
|
className: "min-w-0 flex-1",
|
|
701
|
-
children: [/* @__PURE__ */
|
|
705
|
+
children: [/* @__PURE__ */ q("h3", {
|
|
702
706
|
className: "text-base font-semibold text-text-primary truncate",
|
|
703
707
|
children: e.name
|
|
704
|
-
}), /* @__PURE__ */
|
|
708
|
+
}), /* @__PURE__ */ q("p", {
|
|
705
709
|
className: "mt-0.5 text-sm text-text-secondary",
|
|
706
710
|
children: e.category
|
|
707
711
|
})]
|
|
708
|
-
}), /* @__PURE__ */
|
|
712
|
+
}), /* @__PURE__ */ J("div", {
|
|
709
713
|
className: "flex items-center gap-1 rounded bg-green-600 px-1.5 py-0.5 ml-2 shrink-0",
|
|
710
|
-
children: [/* @__PURE__ */
|
|
714
|
+
children: [/* @__PURE__ */ q(z, { className: "h-3 w-3 fill-white text-white" }), /* @__PURE__ */ q("span", {
|
|
711
715
|
className: "text-xs font-bold text-white",
|
|
712
716
|
children: e.rating
|
|
713
717
|
})]
|
|
714
718
|
})]
|
|
715
719
|
}),
|
|
716
|
-
/* @__PURE__ */
|
|
720
|
+
/* @__PURE__ */ J("div", {
|
|
717
721
|
className: "mt-3 flex items-center gap-4 text-xs text-text-secondary",
|
|
718
722
|
children: [
|
|
719
|
-
/* @__PURE__ */
|
|
723
|
+
/* @__PURE__ */ J("span", {
|
|
720
724
|
className: "flex items-center gap-1",
|
|
721
725
|
children: [
|
|
722
|
-
/* @__PURE__ */
|
|
726
|
+
/* @__PURE__ */ q(A, { className: "h-3 w-3" }),
|
|
723
727
|
" ",
|
|
724
|
-
|
|
728
|
+
s(e.distance)
|
|
725
729
|
]
|
|
726
730
|
}),
|
|
727
|
-
/* @__PURE__ */
|
|
731
|
+
/* @__PURE__ */ J("span", {
|
|
728
732
|
className: "flex items-center gap-1",
|
|
729
733
|
children: [
|
|
730
|
-
/* @__PURE__ */
|
|
734
|
+
/* @__PURE__ */ q(z, { className: "h-3 w-3" }),
|
|
731
735
|
" ",
|
|
732
736
|
e.totalRatings,
|
|
733
737
|
" ",
|
|
734
|
-
|
|
738
|
+
E("atheletebridge.home.reviews", "reviews")
|
|
735
739
|
]
|
|
736
740
|
}),
|
|
737
|
-
e.averageOrderValue && /* @__PURE__ */
|
|
741
|
+
e.averageOrderValue && /* @__PURE__ */ J("span", {
|
|
738
742
|
className: "flex items-center gap-1",
|
|
739
743
|
children: [
|
|
740
|
-
/* @__PURE__ */
|
|
744
|
+
/* @__PURE__ */ q(D, { className: "h-3 w-3" }),
|
|
741
745
|
" ",
|
|
742
|
-
|
|
746
|
+
E("atheletebridge.home.average", "Avg."),
|
|
743
747
|
" ",
|
|
744
|
-
|
|
748
|
+
o(e.averageOrderValue, { minimumFractionDigits: 0 })
|
|
745
749
|
]
|
|
746
750
|
})
|
|
747
751
|
]
|
|
748
752
|
}),
|
|
749
|
-
e.serviceTypes && e.serviceTypes.length > 0 && /* @__PURE__ */
|
|
753
|
+
e.serviceTypes && e.serviceTypes.length > 0 && /* @__PURE__ */ q("div", {
|
|
750
754
|
className: "mt-3 flex flex-wrap gap-1.5",
|
|
751
|
-
children: e.serviceTypes.slice(0, 3).map((e) => /* @__PURE__ */
|
|
755
|
+
children: e.serviceTypes.slice(0, 3).map((e) => /* @__PURE__ */ q("span", {
|
|
752
756
|
className: "inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs text-text-secondary",
|
|
753
757
|
children: e.replace(/_/g, " ")
|
|
754
758
|
}, e))
|
|
@@ -758,92 +762,92 @@ function ae() {
|
|
|
758
762
|
}, e.id))
|
|
759
763
|
})]
|
|
760
764
|
}),
|
|
761
|
-
|
|
765
|
+
B.length > 0 && /* @__PURE__ */ J("section", {
|
|
762
766
|
className: "mb-8",
|
|
763
|
-
children: [/* @__PURE__ */
|
|
767
|
+
children: [/* @__PURE__ */ J("div", {
|
|
764
768
|
className: "flex items-center justify-between mb-4",
|
|
765
|
-
children: [/* @__PURE__ */
|
|
769
|
+
children: [/* @__PURE__ */ q("h2", {
|
|
766
770
|
className: "text-lg font-semibold text-text-primary",
|
|
767
|
-
children:
|
|
768
|
-
}), /* @__PURE__ */
|
|
771
|
+
children: E("atheletebridge.home.recentOrders", "Recent Orders")
|
|
772
|
+
}), /* @__PURE__ */ J("button", {
|
|
769
773
|
type: "button",
|
|
770
|
-
onClick: () =>
|
|
774
|
+
onClick: () => _("/customer/orders"),
|
|
771
775
|
className: "flex items-center gap-1 text-sm font-medium text-primary hover:underline",
|
|
772
776
|
children: [
|
|
773
|
-
|
|
777
|
+
E("atheletebridge.common.viewAll", "View All"),
|
|
774
778
|
" ",
|
|
775
|
-
/* @__PURE__ */
|
|
779
|
+
/* @__PURE__ */ q(h, { className: "h-3.5 w-3.5" })
|
|
776
780
|
]
|
|
777
781
|
})]
|
|
778
|
-
}), /* @__PURE__ */
|
|
782
|
+
}), /* @__PURE__ */ q("div", {
|
|
779
783
|
className: "rounded-lg border border-border-subtle bg-bg-surface divide-y divide-border",
|
|
780
|
-
children:
|
|
784
|
+
children: B.map((e) => /* @__PURE__ */ J("div", {
|
|
781
785
|
role: "button",
|
|
782
786
|
tabIndex: 0,
|
|
783
|
-
onClick: () =>
|
|
787
|
+
onClick: () => _(`/customer/order/${e.id}`),
|
|
784
788
|
onKeyDown: (t) => {
|
|
785
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(),
|
|
789
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), _(`/customer/order/${e.id}`));
|
|
786
790
|
},
|
|
787
791
|
className: "flex items-center gap-4 px-4 py-3 hover:bg-accent/50 transition-colors cursor-pointer",
|
|
788
792
|
children: [
|
|
789
|
-
/* @__PURE__ */
|
|
793
|
+
/* @__PURE__ */ q("img", {
|
|
790
794
|
src: e.cartImage,
|
|
791
795
|
alt: e.cartName,
|
|
792
796
|
className: "h-12 w-12 rounded-lg object-cover shrink-0"
|
|
793
797
|
}),
|
|
794
|
-
/* @__PURE__ */
|
|
798
|
+
/* @__PURE__ */ J("div", {
|
|
795
799
|
className: "flex-1 min-w-0",
|
|
796
|
-
children: [/* @__PURE__ */
|
|
800
|
+
children: [/* @__PURE__ */ J("div", {
|
|
797
801
|
className: "flex items-center gap-2",
|
|
798
|
-
children: [/* @__PURE__ */
|
|
802
|
+
children: [/* @__PURE__ */ q("p", {
|
|
799
803
|
className: "text-sm font-medium text-text-primary truncate",
|
|
800
804
|
children: e.cartName
|
|
801
|
-
}), /* @__PURE__ */
|
|
802
|
-
}), /* @__PURE__ */
|
|
805
|
+
}), /* @__PURE__ */ q(i, { status: e.status })]
|
|
806
|
+
}), /* @__PURE__ */ q("p", {
|
|
803
807
|
className: "text-xs text-text-secondary mt-0.5",
|
|
804
808
|
children: e.items.map((e) => e.name).join(", ")
|
|
805
809
|
})]
|
|
806
810
|
}),
|
|
807
|
-
/* @__PURE__ */
|
|
811
|
+
/* @__PURE__ */ J("div", {
|
|
808
812
|
className: "text-right shrink-0",
|
|
809
|
-
children: [/* @__PURE__ */
|
|
813
|
+
children: [/* @__PURE__ */ q("p", {
|
|
810
814
|
className: "text-sm font-semibold text-text-primary",
|
|
811
|
-
children:
|
|
812
|
-
}), /* @__PURE__ */
|
|
815
|
+
children: o(e.total, { minimumFractionDigits: 0 })
|
|
816
|
+
}), /* @__PURE__ */ q("p", {
|
|
813
817
|
className: "text-xs text-text-secondary",
|
|
814
|
-
children:
|
|
818
|
+
children: c(e.orderDate)
|
|
815
819
|
})]
|
|
816
820
|
})
|
|
817
821
|
]
|
|
818
822
|
}, e.id))
|
|
819
823
|
})]
|
|
820
824
|
}),
|
|
821
|
-
/* @__PURE__ */
|
|
825
|
+
/* @__PURE__ */ J("section", {
|
|
822
826
|
className: "mb-8",
|
|
823
|
-
children: [/* @__PURE__ */
|
|
827
|
+
children: [/* @__PURE__ */ q("h2", {
|
|
824
828
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
825
|
-
children:
|
|
826
|
-
}), /* @__PURE__ */
|
|
829
|
+
children: E("atheletebridge.home.howItWorks", "How It Works")
|
|
830
|
+
}), /* @__PURE__ */ q("div", {
|
|
827
831
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
828
|
-
children:
|
|
832
|
+
children: re.map((e) => /* @__PURE__ */ J("div", {
|
|
829
833
|
className: "relative rounded-lg border border-border-subtle bg-bg-surface p-5 text-center",
|
|
830
834
|
children: [
|
|
831
|
-
/* @__PURE__ */
|
|
835
|
+
/* @__PURE__ */ q("div", {
|
|
832
836
|
className: "absolute -top-3 left-1/2 -translate-x-1/2",
|
|
833
|
-
children: /* @__PURE__ */
|
|
837
|
+
children: /* @__PURE__ */ q("span", {
|
|
834
838
|
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",
|
|
835
839
|
children: e.step
|
|
836
840
|
})
|
|
837
841
|
}),
|
|
838
|
-
/* @__PURE__ */
|
|
842
|
+
/* @__PURE__ */ q("div", {
|
|
839
843
|
className: "mt-2 flex justify-center text-text-secondary mb-3",
|
|
840
844
|
children: e.icon
|
|
841
845
|
}),
|
|
842
|
-
/* @__PURE__ */
|
|
846
|
+
/* @__PURE__ */ q("h3", {
|
|
843
847
|
className: "text-sm font-semibold text-text-primary",
|
|
844
848
|
children: e.title
|
|
845
849
|
}),
|
|
846
|
-
/* @__PURE__ */
|
|
850
|
+
/* @__PURE__ */ q("p", {
|
|
847
851
|
className: "mt-1 text-xs text-text-secondary",
|
|
848
852
|
children: e.description
|
|
849
853
|
})
|
|
@@ -851,71 +855,71 @@ function ae() {
|
|
|
851
855
|
}, e.step))
|
|
852
856
|
})]
|
|
853
857
|
}),
|
|
854
|
-
/* @__PURE__ */
|
|
858
|
+
/* @__PURE__ */ J("section", {
|
|
855
859
|
className: "mb-8",
|
|
856
|
-
children: [/* @__PURE__ */
|
|
860
|
+
children: [/* @__PURE__ */ q("h2", {
|
|
857
861
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
858
|
-
children:
|
|
859
|
-
}), /* @__PURE__ */
|
|
862
|
+
children: E("atheletebridge.home.browseByCategory", "Browse by Category")
|
|
863
|
+
}), /* @__PURE__ */ q("div", {
|
|
860
864
|
className: "grid grid-cols-3 gap-3 sm:grid-cols-4 lg:grid-cols-5",
|
|
861
|
-
children:
|
|
865
|
+
children: ne.map((e) => /* @__PURE__ */ J("button", {
|
|
862
866
|
type: "button",
|
|
863
|
-
onClick: () =>
|
|
867
|
+
onClick: () => _(`/customer/carts?category=${encodeURIComponent(e.label)}`),
|
|
864
868
|
className: "flex flex-col items-center gap-2 rounded-lg border border-border-subtle bg-bg-surface p-4 text-center hover:shadow-sm hover:border-accent-foreground/20 transition-all",
|
|
865
|
-
children: [/* @__PURE__ */
|
|
869
|
+
children: [/* @__PURE__ */ q("div", {
|
|
866
870
|
className: t("flex h-12 w-12 items-center justify-center rounded-full", e.color),
|
|
867
871
|
children: e.icon
|
|
868
|
-
}), /* @__PURE__ */
|
|
872
|
+
}), /* @__PURE__ */ q("span", {
|
|
869
873
|
className: "text-xs font-medium text-text-primary leading-tight",
|
|
870
874
|
children: e.label
|
|
871
875
|
})]
|
|
872
876
|
}, e.label))
|
|
873
877
|
})]
|
|
874
878
|
}),
|
|
875
|
-
/* @__PURE__ */
|
|
879
|
+
/* @__PURE__ */ J("section", {
|
|
876
880
|
className: "mb-8",
|
|
877
|
-
children: [/* @__PURE__ */
|
|
881
|
+
children: [/* @__PURE__ */ q("h2", {
|
|
878
882
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
879
|
-
children:
|
|
880
|
-
}), /* @__PURE__ */
|
|
883
|
+
children: E("atheletebridge.home.platformStats", "Platform Stats")
|
|
884
|
+
}), /* @__PURE__ */ q("div", {
|
|
881
885
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
882
|
-
children:
|
|
886
|
+
children: ae.map((e) => /* @__PURE__ */ J("div", {
|
|
883
887
|
className: "flex items-center gap-3 rounded-lg border border-border-subtle bg-bg-surface p-4",
|
|
884
|
-
children: [/* @__PURE__ */
|
|
888
|
+
children: [/* @__PURE__ */ q("div", {
|
|
885
889
|
className: "flex h-10 w-10 items-center justify-center rounded-full bg-action-primary-bg/10 text-primary shrink-0",
|
|
886
890
|
children: e.icon
|
|
887
|
-
}), /* @__PURE__ */
|
|
891
|
+
}), /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
|
|
888
892
|
className: "text-lg font-bold text-text-primary",
|
|
889
893
|
children: e.value
|
|
890
|
-
}), /* @__PURE__ */
|
|
894
|
+
}), /* @__PURE__ */ q("p", {
|
|
891
895
|
className: "text-xs text-text-secondary",
|
|
892
896
|
children: e.label
|
|
893
897
|
})] })]
|
|
894
898
|
}, e.label))
|
|
895
899
|
})]
|
|
896
900
|
}),
|
|
897
|
-
/* @__PURE__ */
|
|
901
|
+
/* @__PURE__ */ J("section", { children: [/* @__PURE__ */ q("h2", {
|
|
898
902
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
899
|
-
children:
|
|
900
|
-
}), /* @__PURE__ */
|
|
903
|
+
children: E("atheletebridge.home.recentActivity", "Recent Activity")
|
|
904
|
+
}), /* @__PURE__ */ q(Q, {
|
|
901
905
|
collapsedHeight: 180,
|
|
902
|
-
children: /* @__PURE__ */
|
|
906
|
+
children: /* @__PURE__ */ q("div", {
|
|
903
907
|
className: "rounded-card border border-border-seam bg-bg-surface divide-y divide-border",
|
|
904
|
-
children:
|
|
908
|
+
children: ie.map((e) => /* @__PURE__ */ J("div", {
|
|
905
909
|
className: "flex items-center gap-3 px-4 py-3",
|
|
906
910
|
children: [
|
|
907
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ q("div", {
|
|
908
912
|
className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-bg-sunken",
|
|
909
|
-
children: /* @__PURE__ */
|
|
913
|
+
children: /* @__PURE__ */ q(p, { className: t("h-4 w-4", V[e.type] ?? "text-text-secondary") })
|
|
910
914
|
}),
|
|
911
|
-
/* @__PURE__ */
|
|
915
|
+
/* @__PURE__ */ q("div", {
|
|
912
916
|
className: "flex-1 min-w-0",
|
|
913
|
-
children: /* @__PURE__ */
|
|
917
|
+
children: /* @__PURE__ */ q("p", {
|
|
914
918
|
className: "text-sm text-text-primary truncate",
|
|
915
919
|
children: e.description
|
|
916
920
|
})
|
|
917
921
|
}),
|
|
918
|
-
/* @__PURE__ */
|
|
922
|
+
/* @__PURE__ */ q("span", {
|
|
919
923
|
className: "text-xs text-text-secondary whitespace-nowrap",
|
|
920
924
|
children: e.time
|
|
921
925
|
})
|
|
@@ -927,6 +931,6 @@ function ae() {
|
|
|
927
931
|
});
|
|
928
932
|
}
|
|
929
933
|
//#endregion
|
|
930
|
-
export {
|
|
934
|
+
export { oe as HomePage };
|
|
931
935
|
|
|
932
936
|
//# sourceMappingURL=HomePage.js.map
|