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