@burdenoff/microfe-subscriberbot 2026.624.1 → 2026.625.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/subscriberbot/components/EmptyState.js +17 -10
- package/dist/subscriberbot/components/EmptyState.js.map +1 -1
- package/dist/subscriberbot/components/InvestmentCard.js +23 -22
- package/dist/subscriberbot/components/InvestmentCard.js.map +1 -1
- package/dist/subscriberbot/components/MetricsCard.js +15 -12
- package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
- package/dist/subscriberbot/components/PageLayout.js +27 -15
- package/dist/subscriberbot/components/PageLayout.js.map +1 -1
- package/dist/subscriberbot/components/RatingDisplay.js +3 -3
- package/dist/subscriberbot/components/RatingDisplay.js.map +1 -1
- package/dist/subscriberbot/components/StatusBadge.js +25 -13
- package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
- package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
- package/dist/subscriberbot/pages/HomePage.js +67 -63
- package/dist/subscriberbot/pages/HomePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +42 -42
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminDashboard.js +42 -41
- package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +14 -14
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +24 -24
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js +11 -11
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +14 -14
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/CartManagementPage.js +41 -41
- package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/UserManagementPage.js +47 -47
- package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +44 -44
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +17 -17
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +94 -89
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +58 -58
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +51 -51
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +54 -54
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +54 -53
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +51 -51
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/HelpSupportPage.js +65 -65
- package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js +46 -45
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/SettingsPage.js +46 -46
- package/dist/subscriberbot/pages/common/SettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +24 -23
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDetailPage.js +31 -30
- package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +25 -23
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CheckoutPage.js +26 -26
- package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js +39 -38
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +36 -36
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +37 -36
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/FavoritesPage.js +16 -15
- package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +19 -17
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +21 -20
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +22 -21
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/ReviewsPage.js +29 -28
- package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +26 -25
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +46 -46
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +34 -32
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +38 -38
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js +26 -25
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +12 -11
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +25 -25
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +58 -58
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +26 -25
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js +48 -47
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +41 -40
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +44 -44
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +32 -30
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -10,29 +10,30 @@ 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
12
|
import { jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
13
|
+
import { EmphasisPanel as Y } from "@burdenoff/fe-libs/ui";
|
|
13
14
|
//#region src/subscriberbot/pages/HomePage.tsx
|
|
14
|
-
var
|
|
15
|
+
var X = {
|
|
15
16
|
customer: [
|
|
16
17
|
{
|
|
17
18
|
label: "Discover Services",
|
|
18
19
|
description: "Browse carts near you",
|
|
19
20
|
icon: /* @__PURE__ */ q(P, { className: "h-5 w-5" }),
|
|
20
21
|
path: "/customer/carts",
|
|
21
|
-
color: "bg-
|
|
22
|
+
color: "bg-status-info-bg/10 text-status-info-text"
|
|
22
23
|
},
|
|
23
24
|
{
|
|
24
25
|
label: "My Orders",
|
|
25
26
|
description: "Track your orders",
|
|
26
27
|
icon: /* @__PURE__ */ q(L, { className: "h-5 w-5" }),
|
|
27
28
|
path: "/customer/orders",
|
|
28
|
-
color: "bg-
|
|
29
|
+
color: "bg-status-success-bg/10 text-status-success-text"
|
|
29
30
|
},
|
|
30
31
|
{
|
|
31
32
|
label: "Favorites",
|
|
32
33
|
description: "Your saved carts",
|
|
33
34
|
icon: /* @__PURE__ */ q(E, { className: "h-5 w-5" }),
|
|
34
35
|
path: "/customer/favorites",
|
|
35
|
-
color: "bg-
|
|
36
|
+
color: "bg-accent-purple-subtle text-accent-purple"
|
|
36
37
|
},
|
|
37
38
|
{
|
|
38
39
|
label: "Settings",
|
|
@@ -48,28 +49,28 @@ var Y = {
|
|
|
48
49
|
description: "Manage your cart",
|
|
49
50
|
icon: /* @__PURE__ */ q(V, { className: "h-5 w-5" }),
|
|
50
51
|
path: "/owner/dashboard",
|
|
51
|
-
color: "bg-purple-
|
|
52
|
+
color: "bg-accent-purple-subtle text-accent-purple"
|
|
52
53
|
},
|
|
53
54
|
{
|
|
54
55
|
label: "Orders",
|
|
55
56
|
description: "Incoming orders",
|
|
56
57
|
icon: /* @__PURE__ */ q(L, { className: "h-5 w-5" }),
|
|
57
58
|
path: "/owner/orders",
|
|
58
|
-
color: "bg-
|
|
59
|
+
color: "bg-status-info-bg/10 text-status-info-text"
|
|
59
60
|
},
|
|
60
61
|
{
|
|
61
62
|
label: "Analytics",
|
|
62
63
|
description: "Revenue & insights",
|
|
63
64
|
icon: /* @__PURE__ */ q(v, { className: "h-5 w-5" }),
|
|
64
65
|
path: "/owner/analytics",
|
|
65
|
-
color: "bg-
|
|
66
|
+
color: "bg-status-success-bg/10 text-status-success-text"
|
|
66
67
|
},
|
|
67
68
|
{
|
|
68
69
|
label: "Staff",
|
|
69
70
|
description: "Manage workers",
|
|
70
71
|
icon: /* @__PURE__ */ q(W, { className: "h-5 w-5" }),
|
|
71
72
|
path: "/owner/staff",
|
|
72
|
-
color: "bg-
|
|
73
|
+
color: "bg-status-warning-bg/10 text-status-warning-text"
|
|
73
74
|
}
|
|
74
75
|
],
|
|
75
76
|
worker: [
|
|
@@ -78,28 +79,28 @@ var Y = {
|
|
|
78
79
|
description: "View assigned tasks",
|
|
79
80
|
icon: /* @__PURE__ */ q(x, { className: "h-5 w-5" }),
|
|
80
81
|
path: "/worker/dashboard",
|
|
81
|
-
color: "bg-
|
|
82
|
+
color: "bg-status-warning-bg/10 text-status-warning-text"
|
|
82
83
|
},
|
|
83
84
|
{
|
|
84
85
|
label: "Schedule",
|
|
85
86
|
description: "View shifts",
|
|
86
87
|
icon: /* @__PURE__ */ q(S, { className: "h-5 w-5" }),
|
|
87
88
|
path: "/worker/schedule",
|
|
88
|
-
color: "bg-
|
|
89
|
+
color: "bg-status-info-bg/10 text-status-info-text"
|
|
89
90
|
},
|
|
90
91
|
{
|
|
91
92
|
label: "Earnings",
|
|
92
93
|
description: "Track pay",
|
|
93
94
|
icon: /* @__PURE__ */ q(G, { className: "h-5 w-5" }),
|
|
94
95
|
path: "/worker/earnings",
|
|
95
|
-
color: "bg-
|
|
96
|
+
color: "bg-status-success-bg/10 text-status-success-text"
|
|
96
97
|
},
|
|
97
98
|
{
|
|
98
99
|
label: "Performance",
|
|
99
100
|
description: "Ratings & stats",
|
|
100
101
|
icon: /* @__PURE__ */ q(B, { className: "h-5 w-5" }),
|
|
101
102
|
path: "/worker/performance",
|
|
102
|
-
color: "bg-
|
|
103
|
+
color: "bg-status-warning-bg/10 text-status-warning-text"
|
|
103
104
|
}
|
|
104
105
|
],
|
|
105
106
|
investor: [
|
|
@@ -108,28 +109,28 @@ var Y = {
|
|
|
108
109
|
description: "Your investments",
|
|
109
110
|
icon: /* @__PURE__ */ q(H, { className: "h-5 w-5" }),
|
|
110
111
|
path: "/investor/dashboard",
|
|
111
|
-
color: "bg-
|
|
112
|
+
color: "bg-status-success-bg/10 text-status-success-text"
|
|
112
113
|
},
|
|
113
114
|
{
|
|
114
115
|
label: "Opportunities",
|
|
115
116
|
description: "New investments",
|
|
116
117
|
icon: /* @__PURE__ */ q(T, { className: "h-5 w-5" }),
|
|
117
118
|
path: "/investor/opportunities",
|
|
118
|
-
color: "bg-
|
|
119
|
+
color: "bg-status-info-bg/10 text-status-info-text"
|
|
119
120
|
},
|
|
120
121
|
{
|
|
121
122
|
label: "Returns",
|
|
122
123
|
description: "Earnings history",
|
|
123
124
|
icon: /* @__PURE__ */ q(O, { className: "h-5 w-5" }),
|
|
124
125
|
path: "/investor/returns",
|
|
125
|
-
color: "bg-
|
|
126
|
+
color: "bg-status-success-bg/10 text-status-success-text"
|
|
126
127
|
},
|
|
127
128
|
{
|
|
128
129
|
label: "Reports",
|
|
129
130
|
description: "Performance reports",
|
|
130
131
|
icon: /* @__PURE__ */ q(C, { className: "h-5 w-5" }),
|
|
131
132
|
path: "/investor/reports",
|
|
132
|
-
color: "bg-purple-
|
|
133
|
+
color: "bg-accent-purple-subtle text-accent-purple"
|
|
133
134
|
}
|
|
134
135
|
],
|
|
135
136
|
admin: [
|
|
@@ -138,32 +139,32 @@ var Y = {
|
|
|
138
139
|
description: "Platform overview",
|
|
139
140
|
icon: /* @__PURE__ */ q(k, { className: "h-5 w-5" }),
|
|
140
141
|
path: "/admin/dashboard",
|
|
141
|
-
color: "bg-
|
|
142
|
+
color: "bg-status-error-bg/10 text-status-error-text"
|
|
142
143
|
},
|
|
143
144
|
{
|
|
144
145
|
label: "Users",
|
|
145
146
|
description: "Manage accounts",
|
|
146
147
|
icon: /* @__PURE__ */ q(W, { className: "h-5 w-5" }),
|
|
147
148
|
path: "/admin/users",
|
|
148
|
-
color: "bg-
|
|
149
|
+
color: "bg-status-info-bg/10 text-status-info-text"
|
|
149
150
|
},
|
|
150
151
|
{
|
|
151
152
|
label: "Carts",
|
|
152
153
|
description: "Approve & manage",
|
|
153
154
|
icon: /* @__PURE__ */ q(V, { className: "h-5 w-5" }),
|
|
154
155
|
path: "/admin/carts",
|
|
155
|
-
color: "bg-purple-
|
|
156
|
+
color: "bg-accent-purple-subtle text-accent-purple"
|
|
156
157
|
},
|
|
157
158
|
{
|
|
158
159
|
label: "Analytics",
|
|
159
160
|
description: "Revenue reports",
|
|
160
161
|
icon: /* @__PURE__ */ q(v, { className: "h-5 w-5" }),
|
|
161
162
|
path: "/admin/analytics",
|
|
162
|
-
color: "bg-
|
|
163
|
+
color: "bg-status-success-bg/10 text-status-success-text"
|
|
163
164
|
}
|
|
164
165
|
]
|
|
165
166
|
};
|
|
166
|
-
function
|
|
167
|
+
function Z(e, t, n) {
|
|
167
168
|
switch (e) {
|
|
168
169
|
case "customer": return [
|
|
169
170
|
{
|
|
@@ -317,53 +318,53 @@ function X(e, t, n) {
|
|
|
317
318
|
];
|
|
318
319
|
}
|
|
319
320
|
}
|
|
320
|
-
var
|
|
321
|
+
var Q = [
|
|
321
322
|
{
|
|
322
323
|
label: "Food & Beverage",
|
|
323
324
|
icon: /* @__PURE__ */ q(b, { className: "h-6 w-6" }),
|
|
324
|
-
color: "bg-
|
|
325
|
+
color: "bg-status-warning-bg/10 text-status-warning-text"
|
|
325
326
|
},
|
|
326
327
|
{
|
|
327
328
|
label: "Personal Care & Beauty",
|
|
328
329
|
icon: /* @__PURE__ */ q(N, { className: "h-6 w-6" }),
|
|
329
|
-
color: "bg-
|
|
330
|
+
color: "bg-accent-purple-subtle text-accent-purple"
|
|
330
331
|
},
|
|
331
332
|
{
|
|
332
333
|
label: "Repair & Maintenance",
|
|
333
334
|
icon: /* @__PURE__ */ q(K, { className: "h-6 w-6" }),
|
|
334
|
-
color: "bg-
|
|
335
|
+
color: "bg-status-info-bg/10 text-status-info-text"
|
|
335
336
|
},
|
|
336
337
|
{
|
|
337
338
|
label: "Home Services",
|
|
338
339
|
icon: /* @__PURE__ */ q(D, { className: "h-6 w-6" }),
|
|
339
|
-
color: "bg-
|
|
340
|
+
color: "bg-status-success-bg/10 text-status-success-text"
|
|
340
341
|
},
|
|
341
342
|
{
|
|
342
343
|
label: "Clothing & Fashion",
|
|
343
344
|
icon: /* @__PURE__ */ q(I, { className: "h-6 w-6" }),
|
|
344
|
-
color: "bg-purple-
|
|
345
|
+
color: "bg-accent-purple-subtle text-accent-purple"
|
|
345
346
|
},
|
|
346
347
|
{
|
|
347
348
|
label: "Health & Wellness",
|
|
348
349
|
icon: /* @__PURE__ */ q(E, { className: "h-6 w-6" }),
|
|
349
|
-
color: "bg-
|
|
350
|
+
color: "bg-status-error-bg/10 text-status-error-text"
|
|
350
351
|
},
|
|
351
352
|
{
|
|
352
353
|
label: "Education & Skills",
|
|
353
354
|
icon: /* @__PURE__ */ q(w, { className: "h-6 w-6" }),
|
|
354
|
-
color: "bg-
|
|
355
|
+
color: "bg-status-warning-bg/10 text-status-warning-text"
|
|
355
356
|
},
|
|
356
357
|
{
|
|
357
358
|
label: "Retail & Merchandise",
|
|
358
359
|
icon: /* @__PURE__ */ q(M, { className: "h-6 w-6" }),
|
|
359
|
-
color: "bg-indigo-
|
|
360
|
+
color: "bg-accent-indigo-subtle text-accent-indigo"
|
|
360
361
|
},
|
|
361
362
|
{
|
|
362
363
|
label: "Grocery & Essentials",
|
|
363
364
|
icon: /* @__PURE__ */ q(R, { className: "h-6 w-6" }),
|
|
364
|
-
color: "bg-
|
|
365
|
+
color: "bg-status-success-bg/10 text-status-success-text"
|
|
365
366
|
}
|
|
366
|
-
],
|
|
367
|
+
], $ = [
|
|
367
368
|
{
|
|
368
369
|
step: 1,
|
|
369
370
|
title: "Browse Services",
|
|
@@ -388,7 +389,7 @@ var Z = [
|
|
|
388
389
|
description: "Share your experience and help others find great services.",
|
|
389
390
|
icon: /* @__PURE__ */ q(B, { className: "h-6 w-6" })
|
|
390
391
|
}
|
|
391
|
-
],
|
|
392
|
+
], ee = [
|
|
392
393
|
{
|
|
393
394
|
id: "ha-1",
|
|
394
395
|
description: "New order placed at Dosa Express",
|
|
@@ -419,7 +420,7 @@ var Z = [
|
|
|
419
420
|
time: "5 hours ago",
|
|
420
421
|
type: "order"
|
|
421
422
|
}
|
|
422
|
-
],
|
|
423
|
+
], te = [
|
|
423
424
|
{
|
|
424
425
|
label: "Service Providers",
|
|
425
426
|
value: "21+",
|
|
@@ -441,7 +442,7 @@ var Z = [
|
|
|
441
442
|
icon: /* @__PURE__ */ q(y, { className: "h-5 w-5" })
|
|
442
443
|
}
|
|
443
444
|
];
|
|
444
|
-
function
|
|
445
|
+
function ne() {
|
|
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("subscriberbot.home.greeting.worker", "Check your tasks and earnings"),
|
|
458
459
|
investor: D("subscriberbot.home.greeting.investor", "Track your investments and returns"),
|
|
459
460
|
admin: D("subscriberbot.home.greeting.admin", "Monitor and manage the platform")
|
|
460
|
-
}, I =
|
|
461
|
+
}, I = X[M] ?? X.customer, L = Z(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,10 +466,10 @@ 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-status-info-text",
|
|
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
474
|
return W ? /* @__PURE__ */ q(n, {
|
|
474
475
|
title: D("subscriberbot.common.loading", "Loading..."),
|
|
@@ -495,9 +496,11 @@ function te() {
|
|
|
495
496
|
}) : /* @__PURE__ */ J(n, {
|
|
496
497
|
title: `${D("subscriberbot.home.hello", "Hello")}, ${k}!`,
|
|
497
498
|
description: F[M],
|
|
499
|
+
titleGradient: !0,
|
|
500
|
+
aurora: !0,
|
|
498
501
|
children: [
|
|
499
|
-
U && /* @__PURE__ */ q(
|
|
500
|
-
className: "mb-6
|
|
502
|
+
U && /* @__PURE__ */ q(Y, {
|
|
503
|
+
className: "mb-6",
|
|
501
504
|
children: /* @__PURE__ */ J("div", {
|
|
502
505
|
className: "flex items-start gap-4",
|
|
503
506
|
children: [/* @__PURE__ */ q("div", {
|
|
@@ -517,7 +520,7 @@ function te() {
|
|
|
517
520
|
/* @__PURE__ */ J("button", {
|
|
518
521
|
type: "button",
|
|
519
522
|
onClick: () => v("/customer/carts"),
|
|
520
|
-
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",
|
|
523
|
+
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 min-h-11",
|
|
521
524
|
children: [/* @__PURE__ */ q(P, { className: "h-4 w-4" }), D("subscriberbot.home.exploreServices", "Explore Services")]
|
|
522
525
|
})
|
|
523
526
|
]
|
|
@@ -525,7 +528,7 @@ function te() {
|
|
|
525
528
|
})
|
|
526
529
|
}),
|
|
527
530
|
/* @__PURE__ */ q("section", {
|
|
528
|
-
className: "mb-6 rounded-xl border border-border-
|
|
531
|
+
className: "mb-6 rounded-xl border border-border-seam bg-bg-surface p-6",
|
|
529
532
|
children: /* @__PURE__ */ J("div", {
|
|
530
533
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
531
534
|
children: [/* @__PURE__ */ J("div", { children: [
|
|
@@ -557,7 +560,7 @@ function te() {
|
|
|
557
560
|
placeholder: D("subscriberbot.home.searchPlaceholder", "Search services, carts..."),
|
|
558
561
|
value: x,
|
|
559
562
|
onChange: (e) => C(e.target.value),
|
|
560
|
-
className: "w-full rounded-lg border border-border-
|
|
563
|
+
className: "w-full rounded-lg border border-border-seam 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)]"
|
|
561
564
|
})]
|
|
562
565
|
})]
|
|
563
566
|
})
|
|
@@ -588,7 +591,7 @@ function te() {
|
|
|
588
591
|
children: I.map((e) => /* @__PURE__ */ J("button", {
|
|
589
592
|
type: "button",
|
|
590
593
|
onClick: () => v(e.path),
|
|
591
|
-
className: t("flex items-start gap-3 rounded-lg border border-border-
|
|
594
|
+
className: t("flex items-start gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 text-left shadow-sm transition-all", "hover:border-accent-foreground/20 hover:shadow-md"),
|
|
592
595
|
children: [
|
|
593
596
|
/* @__PURE__ */ q("div", {
|
|
594
597
|
className: t("flex h-10 w-10 shrink-0 items-center justify-center rounded-lg", e.color),
|
|
@@ -627,13 +630,14 @@ function te() {
|
|
|
627
630
|
]
|
|
628
631
|
})]
|
|
629
632
|
}), R.length === 0 ? /* @__PURE__ */ q(a, {
|
|
633
|
+
illustration: "empty-search",
|
|
630
634
|
icon: /* @__PURE__ */ q(P, { className: "h-10 w-10" }),
|
|
631
635
|
title: D("subscriberbot.home.noCartsFound", "No carts found"),
|
|
632
636
|
description: D("subscriberbot.home.noCartsDescription", "Try adjusting your search or browse all categories"),
|
|
633
637
|
action: /* @__PURE__ */ q("button", {
|
|
634
638
|
type: "button",
|
|
635
639
|
onClick: () => C(""),
|
|
636
|
-
className: "rounded-lg border border-border-
|
|
640
|
+
className: "rounded-lg border border-border-seam px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
637
641
|
children: D("subscriberbot.home.clearSearch", "Clear Search")
|
|
638
642
|
})
|
|
639
643
|
}) : /* @__PURE__ */ q("div", {
|
|
@@ -645,7 +649,7 @@ function te() {
|
|
|
645
649
|
onKeyDown: (t) => {
|
|
646
650
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), v(`/customer/cart/${e.id}`));
|
|
647
651
|
},
|
|
648
|
-
className: "rounded-lg border border-border-
|
|
652
|
+
className: "rounded-lg border border-border-seam 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
653
|
children: [/* @__PURE__ */ J("div", {
|
|
650
654
|
className: "relative h-40 bg-bg-sunken",
|
|
651
655
|
children: [
|
|
@@ -662,7 +666,7 @@ function te() {
|
|
|
662
666
|
e.isVerified && /* @__PURE__ */ q("div", {
|
|
663
667
|
className: "absolute top-2 left-2",
|
|
664
668
|
children: /* @__PURE__ */ J("span", {
|
|
665
|
-
className: "inline-flex items-center gap-1 rounded-full bg-
|
|
669
|
+
className: "inline-flex items-center gap-1 rounded-full bg-status-info-bg/90 px-2 py-0.5 text-xs font-medium text-text-inverse backdrop-blur-sm",
|
|
666
670
|
children: [
|
|
667
671
|
/* @__PURE__ */ q(_, { className: "h-3 w-3" }),
|
|
668
672
|
" ",
|
|
@@ -673,7 +677,7 @@ function te() {
|
|
|
673
677
|
/* @__PURE__ */ q("div", {
|
|
674
678
|
className: "absolute bottom-2 right-2",
|
|
675
679
|
children: /* @__PURE__ */ J("span", {
|
|
676
|
-
className: "inline-flex items-center gap-1 rounded-full bg-
|
|
680
|
+
className: "inline-flex items-center gap-1 rounded-full bg-bg-canvas/60 px-2 py-0.5 text-xs text-text-inverse backdrop-blur-sm",
|
|
677
681
|
children: [
|
|
678
682
|
/* @__PURE__ */ q(S, { className: "h-3 w-3" }),
|
|
679
683
|
" ",
|
|
@@ -698,9 +702,9 @@ function te() {
|
|
|
698
702
|
children: e.category
|
|
699
703
|
})]
|
|
700
704
|
}), /* @__PURE__ */ J("div", {
|
|
701
|
-
className: "flex items-center gap-1 rounded bg-
|
|
702
|
-
children: [/* @__PURE__ */ q(B, { className: "h-3 w-3 fill-
|
|
703
|
-
className: "text-xs font-bold text-
|
|
705
|
+
className: "flex items-center gap-1 rounded bg-status-success-text px-1.5 py-0.5 ml-2 shrink-0",
|
|
706
|
+
children: [/* @__PURE__ */ q(B, { className: "h-3 w-3 fill-text-inverse text-text-inverse" }), /* @__PURE__ */ q("span", {
|
|
707
|
+
className: "text-xs font-bold text-text-inverse",
|
|
704
708
|
children: e.rating
|
|
705
709
|
})]
|
|
706
710
|
})]
|
|
@@ -768,7 +772,7 @@ function te() {
|
|
|
768
772
|
]
|
|
769
773
|
})]
|
|
770
774
|
}), /* @__PURE__ */ q("div", {
|
|
771
|
-
className: "rounded-lg border border-border-
|
|
775
|
+
className: "rounded-lg border border-border-seam bg-bg-surface divide-y divide-border",
|
|
772
776
|
children: V.map((e) => /* @__PURE__ */ J("div", {
|
|
773
777
|
role: "button",
|
|
774
778
|
tabIndex: 0,
|
|
@@ -817,8 +821,8 @@ function te() {
|
|
|
817
821
|
children: D("subscriberbot.home.howItWorks", "How It Works")
|
|
818
822
|
}), /* @__PURE__ */ q("div", {
|
|
819
823
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
820
|
-
children:
|
|
821
|
-
className: "relative rounded-lg border border-border-
|
|
824
|
+
children: $.map((e) => /* @__PURE__ */ J("div", {
|
|
825
|
+
className: "relative rounded-lg border border-border-seam bg-bg-surface p-5 text-center",
|
|
822
826
|
children: [
|
|
823
827
|
/* @__PURE__ */ q("div", {
|
|
824
828
|
className: "absolute -top-3 left-1/2 -translate-x-1/2",
|
|
@@ -850,10 +854,10 @@ function te() {
|
|
|
850
854
|
children: D("subscriberbot.home.browseByCategory", "Browse by Category")
|
|
851
855
|
}), /* @__PURE__ */ q("div", {
|
|
852
856
|
className: "grid grid-cols-3 gap-3 sm:grid-cols-4 lg:grid-cols-5",
|
|
853
|
-
children:
|
|
857
|
+
children: Q.map((e) => /* @__PURE__ */ J("button", {
|
|
854
858
|
type: "button",
|
|
855
859
|
onClick: () => v(`/customer/carts?category=${encodeURIComponent(e.label)}`),
|
|
856
|
-
className: "flex flex-col items-center gap-2 rounded-lg border border-border-
|
|
860
|
+
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",
|
|
857
861
|
children: [/* @__PURE__ */ q("div", {
|
|
858
862
|
className: t("flex h-12 w-12 items-center justify-center rounded-full", e.color),
|
|
859
863
|
children: e.icon
|
|
@@ -871,8 +875,8 @@ function te() {
|
|
|
871
875
|
children: D("subscriberbot.home.platformStats", "Platform Stats")
|
|
872
876
|
}), /* @__PURE__ */ q("div", {
|
|
873
877
|
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-
|
|
878
|
+
children: te.map((e) => /* @__PURE__ */ J("div", {
|
|
879
|
+
className: "flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
876
880
|
children: [/* @__PURE__ */ q("div", {
|
|
877
881
|
className: "flex h-10 w-10 items-center justify-center rounded-full bg-action-primary-bg/10 text-primary shrink-0",
|
|
878
882
|
children: e.icon
|
|
@@ -890,8 +894,8 @@ function te() {
|
|
|
890
894
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
891
895
|
children: D("subscriberbot.home.recentActivity", "Recent Activity")
|
|
892
896
|
}), /* @__PURE__ */ q("div", {
|
|
893
|
-
className: "rounded-lg border border-border-
|
|
894
|
-
children:
|
|
897
|
+
className: "rounded-lg border border-border-seam bg-bg-surface divide-y divide-border",
|
|
898
|
+
children: ee.map((e) => /* @__PURE__ */ J("div", {
|
|
895
899
|
className: "flex items-center gap-3 px-4 py-3",
|
|
896
900
|
children: [
|
|
897
901
|
/* @__PURE__ */ q("div", {
|
|
@@ -916,6 +920,6 @@ function te() {
|
|
|
916
920
|
});
|
|
917
921
|
}
|
|
918
922
|
//#endregion
|
|
919
|
-
export {
|
|
923
|
+
export { ne as HomePage };
|
|
920
924
|
|
|
921
925
|
//# sourceMappingURL=HomePage.js.map
|