@burdenoff/microfe-subscriberbot 2026.615.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/node_modules/{.bun/clsx@2.1.1/node_modules/clsx → clsx}/dist/clsx.js +1 -1
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/{.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge → tailwind-merge}/dist/bundle-mjs.js +212 -170
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/subscriberbot/components/EmptyState.js +20 -13
- package/dist/subscriberbot/components/EmptyState.js.map +1 -1
- package/dist/subscriberbot/components/InvestmentCard.js +29 -28
- package/dist/subscriberbot/components/InvestmentCard.js.map +1 -1
- package/dist/subscriberbot/components/MetricsCard.js +18 -15
- 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 +26 -14
- package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
- package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
- package/dist/subscriberbot/pages/HomePage.js +109 -105
- package/dist/subscriberbot/pages/HomePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +87 -87
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminDashboard.js +102 -101
- package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +48 -48
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +96 -96
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js +34 -34
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +40 -40
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/CartManagementPage.js +104 -104
- package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/UserManagementPage.js +99 -99
- package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +117 -117
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +34 -34
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +158 -153
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +117 -117
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +89 -89
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +109 -109
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +90 -89
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +97 -97
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/HelpSupportPage.js +138 -138
- package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js +67 -66
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/SettingsPage.js +116 -116
- package/dist/subscriberbot/pages/common/SettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +73 -72
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDetailPage.js +89 -88
- package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +68 -66
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CheckoutPage.js +80 -80
- package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js +89 -88
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +84 -84
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +92 -91
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/FavoritesPage.js +34 -33
- package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +45 -43
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +61 -60
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +59 -58
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/ReviewsPage.js +49 -48
- package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +47 -46
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +129 -129
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +90 -88
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +88 -88
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js +63 -62
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +39 -38
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +66 -66
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +154 -154
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +80 -79
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js +107 -106
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +73 -72
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +108 -108
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +71 -69
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/dist/subscriberbot/utils/cn.js +2 -2
- package/package.json +3 -3
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
|
@@ -10,36 +10,37 @@ 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",
|
|
39
40
|
description: "Manage preferences",
|
|
40
41
|
icon: /* @__PURE__ */ q(F, { className: "h-5 w-5" }),
|
|
41
42
|
path: "/settings",
|
|
42
|
-
color: "bg-
|
|
43
|
+
color: "bg-bg-sunken text-text-secondary"
|
|
43
44
|
}
|
|
44
45
|
],
|
|
45
46
|
cart_owner: [
|
|
@@ -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..."),
|
|
@@ -481,13 +482,13 @@ function te() {
|
|
|
481
482
|
children: /* @__PURE__ */ J("div", {
|
|
482
483
|
className: "flex h-[60vh] flex-col items-center justify-center gap-4",
|
|
483
484
|
children: [
|
|
484
|
-
/* @__PURE__ */ q(h, { className: "h-12 w-12 text-
|
|
485
|
+
/* @__PURE__ */ q(h, { className: "h-12 w-12 text-status-error-text" }),
|
|
485
486
|
/* @__PURE__ */ q("h2", {
|
|
486
487
|
className: "text-xl font-semibold",
|
|
487
488
|
children: D("subscriberbot.common.errorLoading", "Error loading data")
|
|
488
489
|
}),
|
|
489
490
|
/* @__PURE__ */ q("p", {
|
|
490
|
-
className: "text-
|
|
491
|
+
className: "text-text-secondary",
|
|
491
492
|
children: D("subscriberbot.common.tryAgain", "Please try again later.")
|
|
492
493
|
})
|
|
493
494
|
]
|
|
@@ -495,29 +496,31 @@ 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", {
|
|
504
|
-
className: "flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-primary/10",
|
|
507
|
+
className: "flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-action-primary-bg/10",
|
|
505
508
|
children: /* @__PURE__ */ q(z, { className: "h-6 w-6 text-primary" })
|
|
506
509
|
}), /* @__PURE__ */ J("div", {
|
|
507
510
|
className: "flex-1",
|
|
508
511
|
children: [
|
|
509
512
|
/* @__PURE__ */ q("h2", {
|
|
510
|
-
className: "text-lg font-semibold text-
|
|
513
|
+
className: "text-lg font-semibold text-text-primary",
|
|
511
514
|
children: D("subscriberbot.home.welcomeTitle", "Welcome to SubscriberBot!")
|
|
512
515
|
}),
|
|
513
516
|
/* @__PURE__ */ q("p", {
|
|
514
|
-
className: "mt-1 text-sm text-
|
|
517
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
515
518
|
children: D("subscriberbot.home.welcomeDescription", "Your local services marketplace. Start by exploring service providers near you or browse categories to find what you need.")
|
|
516
519
|
}),
|
|
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-primary px-4 py-2 text-sm font-medium text-primary-
|
|
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,19 +528,19 @@ function te() {
|
|
|
525
528
|
})
|
|
526
529
|
}),
|
|
527
530
|
/* @__PURE__ */ q("section", {
|
|
528
|
-
className: "mb-6 rounded-xl border border-border bg-
|
|
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: [
|
|
532
535
|
/* @__PURE__ */ q("div", {
|
|
533
536
|
className: "flex items-center gap-2 mb-1",
|
|
534
537
|
children: /* @__PURE__ */ J("span", {
|
|
535
|
-
className: "inline-flex items-center rounded-full bg-primary/10 px-2.5 py-0.5 text-xs font-medium text-primary",
|
|
538
|
+
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
539
|
children: [/* @__PURE__ */ q(_, { className: "mr-1 h-3 w-3" }), N[M]]
|
|
537
540
|
})
|
|
538
541
|
}),
|
|
539
542
|
/* @__PURE__ */ J("h2", {
|
|
540
|
-
className: "text-xl font-bold text-
|
|
543
|
+
className: "text-xl font-bold text-text-primary",
|
|
541
544
|
children: [
|
|
542
545
|
D("subscriberbot.home.good", "Good"),
|
|
543
546
|
" ",
|
|
@@ -547,17 +550,17 @@ function te() {
|
|
|
547
550
|
]
|
|
548
551
|
}),
|
|
549
552
|
/* @__PURE__ */ q("p", {
|
|
550
|
-
className: "mt-1 text-sm text-
|
|
553
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
551
554
|
children: F[M]
|
|
552
555
|
})
|
|
553
556
|
] }), /* @__PURE__ */ J("div", {
|
|
554
557
|
className: "relative w-full sm:w-72",
|
|
555
|
-
children: [/* @__PURE__ */ q(P, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-
|
|
558
|
+
children: [/* @__PURE__ */ q(P, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ q("input", {
|
|
556
559
|
type: "text",
|
|
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 bg-
|
|
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
|
})
|
|
@@ -565,7 +568,7 @@ function te() {
|
|
|
565
568
|
/* @__PURE__ */ J("section", {
|
|
566
569
|
className: "mb-8",
|
|
567
570
|
children: [/* @__PURE__ */ q("h2", {
|
|
568
|
-
className: "text-lg font-semibold text-
|
|
571
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
569
572
|
children: D("subscriberbot.home.quickStats", "Quick Stats")
|
|
570
573
|
}), /* @__PURE__ */ q("div", {
|
|
571
574
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
@@ -581,14 +584,14 @@ function te() {
|
|
|
581
584
|
/* @__PURE__ */ J("section", {
|
|
582
585
|
className: "mb-8",
|
|
583
586
|
children: [/* @__PURE__ */ q("h2", {
|
|
584
|
-
className: "text-lg font-semibold text-
|
|
587
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
585
588
|
children: D("subscriberbot.home.quickActions", "Quick Actions")
|
|
586
589
|
}), /* @__PURE__ */ q("div", {
|
|
587
590
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
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 bg-
|
|
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),
|
|
@@ -597,14 +600,14 @@ function te() {
|
|
|
597
600
|
/* @__PURE__ */ J("div", {
|
|
598
601
|
className: "min-w-0 flex-1",
|
|
599
602
|
children: [/* @__PURE__ */ q("p", {
|
|
600
|
-
className: "text-sm font-semibold text-
|
|
603
|
+
className: "text-sm font-semibold text-text-primary",
|
|
601
604
|
children: e.label
|
|
602
605
|
}), /* @__PURE__ */ q("p", {
|
|
603
|
-
className: "mt-0.5 text-xs text-
|
|
606
|
+
className: "mt-0.5 text-xs text-text-secondary",
|
|
604
607
|
children: e.description
|
|
605
608
|
})]
|
|
606
609
|
}),
|
|
607
|
-
/* @__PURE__ */ q(g, { className: "h-4 w-4 text-
|
|
610
|
+
/* @__PURE__ */ q(g, { className: "h-4 w-4 text-text-secondary shrink-0 mt-1" })
|
|
608
611
|
]
|
|
609
612
|
}, e.label))
|
|
610
613
|
})]
|
|
@@ -614,7 +617,7 @@ function te() {
|
|
|
614
617
|
children: [/* @__PURE__ */ J("div", {
|
|
615
618
|
className: "flex items-center justify-between mb-4",
|
|
616
619
|
children: [/* @__PURE__ */ q("h2", {
|
|
617
|
-
className: "text-lg font-semibold text-
|
|
620
|
+
className: "text-lg font-semibold text-text-primary",
|
|
618
621
|
children: x ? D("subscriberbot.home.searchResults", "Search Results") : D("subscriberbot.home.featuredCarts", "Featured Carts")
|
|
619
622
|
}), /* @__PURE__ */ J("button", {
|
|
620
623
|
type: "button",
|
|
@@ -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 px-4 py-2 text-sm font-medium text-
|
|
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,9 +649,9 @@ 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 bg-
|
|
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
|
-
className: "relative h-40 bg-
|
|
654
|
+
className: "relative h-40 bg-bg-sunken",
|
|
651
655
|
children: [
|
|
652
656
|
/* @__PURE__ */ q("img", {
|
|
653
657
|
src: e.image,
|
|
@@ -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
|
" ",
|
|
@@ -691,22 +695,22 @@ function te() {
|
|
|
691
695
|
children: [/* @__PURE__ */ J("div", {
|
|
692
696
|
className: "min-w-0 flex-1",
|
|
693
697
|
children: [/* @__PURE__ */ q("h3", {
|
|
694
|
-
className: "text-base font-semibold text-
|
|
698
|
+
className: "text-base font-semibold text-text-primary truncate",
|
|
695
699
|
children: e.name
|
|
696
700
|
}), /* @__PURE__ */ q("p", {
|
|
697
|
-
className: "mt-0.5 text-sm text-
|
|
701
|
+
className: "mt-0.5 text-sm text-text-secondary",
|
|
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
|
})]
|
|
707
711
|
}),
|
|
708
712
|
/* @__PURE__ */ J("div", {
|
|
709
|
-
className: "mt-3 flex items-center gap-4 text-xs text-
|
|
713
|
+
className: "mt-3 flex items-center gap-4 text-xs text-text-secondary",
|
|
710
714
|
children: [
|
|
711
715
|
/* @__PURE__ */ J("span", {
|
|
712
716
|
className: "flex items-center gap-1",
|
|
@@ -741,7 +745,7 @@ function te() {
|
|
|
741
745
|
e.serviceTypes && e.serviceTypes.length > 0 && /* @__PURE__ */ q("div", {
|
|
742
746
|
className: "mt-3 flex flex-wrap gap-1.5",
|
|
743
747
|
children: e.serviceTypes.slice(0, 3).map((e) => /* @__PURE__ */ q("span", {
|
|
744
|
-
className: "inline-flex items-center rounded-full bg-
|
|
748
|
+
className: "inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs text-text-secondary",
|
|
745
749
|
children: e.replace(/_/g, " ")
|
|
746
750
|
}, e))
|
|
747
751
|
})
|
|
@@ -755,7 +759,7 @@ function te() {
|
|
|
755
759
|
children: [/* @__PURE__ */ J("div", {
|
|
756
760
|
className: "flex items-center justify-between mb-4",
|
|
757
761
|
children: [/* @__PURE__ */ q("h2", {
|
|
758
|
-
className: "text-lg font-semibold text-
|
|
762
|
+
className: "text-lg font-semibold text-text-primary",
|
|
759
763
|
children: D("subscriberbot.home.recentOrders", "Recent Orders")
|
|
760
764
|
}), /* @__PURE__ */ J("button", {
|
|
761
765
|
type: "button",
|
|
@@ -768,7 +772,7 @@ function te() {
|
|
|
768
772
|
]
|
|
769
773
|
})]
|
|
770
774
|
}), /* @__PURE__ */ q("div", {
|
|
771
|
-
className: "rounded-lg border border-border bg-
|
|
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,
|
|
@@ -788,21 +792,21 @@ function te() {
|
|
|
788
792
|
children: [/* @__PURE__ */ J("div", {
|
|
789
793
|
className: "flex items-center gap-2",
|
|
790
794
|
children: [/* @__PURE__ */ q("p", {
|
|
791
|
-
className: "text-sm font-medium text-
|
|
795
|
+
className: "text-sm font-medium text-text-primary truncate",
|
|
792
796
|
children: e.cartName
|
|
793
797
|
}), /* @__PURE__ */ q(i, { status: e.status })]
|
|
794
798
|
}), /* @__PURE__ */ q("p", {
|
|
795
|
-
className: "text-xs text-
|
|
799
|
+
className: "text-xs text-text-secondary mt-0.5",
|
|
796
800
|
children: e.items.map((e) => e.name).join(", ")
|
|
797
801
|
})]
|
|
798
802
|
}),
|
|
799
803
|
/* @__PURE__ */ J("div", {
|
|
800
804
|
className: "text-right shrink-0",
|
|
801
805
|
children: [/* @__PURE__ */ q("p", {
|
|
802
|
-
className: "text-sm font-semibold text-
|
|
806
|
+
className: "text-sm font-semibold text-text-primary",
|
|
803
807
|
children: s(e.total, { minimumFractionDigits: 0 })
|
|
804
808
|
}), /* @__PURE__ */ q("p", {
|
|
805
|
-
className: "text-xs text-
|
|
809
|
+
className: "text-xs text-text-secondary",
|
|
806
810
|
children: l(e.orderDate)
|
|
807
811
|
})]
|
|
808
812
|
})
|
|
@@ -813,30 +817,30 @@ function te() {
|
|
|
813
817
|
/* @__PURE__ */ J("section", {
|
|
814
818
|
className: "mb-8",
|
|
815
819
|
children: [/* @__PURE__ */ q("h2", {
|
|
816
|
-
className: "text-lg font-semibold text-
|
|
820
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
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 bg-
|
|
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",
|
|
825
829
|
children: /* @__PURE__ */ q("span", {
|
|
826
|
-
className: "inline-flex h-6 w-6 items-center justify-center rounded-full bg-primary text-xs font-bold text-primary-
|
|
830
|
+
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
831
|
children: e.step
|
|
828
832
|
})
|
|
829
833
|
}),
|
|
830
834
|
/* @__PURE__ */ q("div", {
|
|
831
|
-
className: "mt-2 flex justify-center text-
|
|
835
|
+
className: "mt-2 flex justify-center text-text-secondary mb-3",
|
|
832
836
|
children: e.icon
|
|
833
837
|
}),
|
|
834
838
|
/* @__PURE__ */ q("h3", {
|
|
835
|
-
className: "text-sm font-semibold text-
|
|
839
|
+
className: "text-sm font-semibold text-text-primary",
|
|
836
840
|
children: e.title
|
|
837
841
|
}),
|
|
838
842
|
/* @__PURE__ */ q("p", {
|
|
839
|
-
className: "mt-1 text-xs text-
|
|
843
|
+
className: "mt-1 text-xs text-text-secondary",
|
|
840
844
|
children: e.description
|
|
841
845
|
})
|
|
842
846
|
]
|
|
@@ -846,19 +850,19 @@ function te() {
|
|
|
846
850
|
/* @__PURE__ */ J("section", {
|
|
847
851
|
className: "mb-8",
|
|
848
852
|
children: [/* @__PURE__ */ q("h2", {
|
|
849
|
-
className: "text-lg font-semibold text-
|
|
853
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
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 bg-
|
|
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
|
|
860
864
|
}), /* @__PURE__ */ q("span", {
|
|
861
|
-
className: "text-xs font-medium text-
|
|
865
|
+
className: "text-xs font-medium text-text-primary leading-tight",
|
|
862
866
|
children: e.label
|
|
863
867
|
})]
|
|
864
868
|
}, e.label))
|
|
@@ -867,46 +871,46 @@ function te() {
|
|
|
867
871
|
/* @__PURE__ */ J("section", {
|
|
868
872
|
className: "mb-8",
|
|
869
873
|
children: [/* @__PURE__ */ q("h2", {
|
|
870
|
-
className: "text-lg font-semibold text-
|
|
874
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
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 bg-
|
|
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
|
-
className: "flex h-10 w-10 items-center justify-center rounded-full bg-primary/10 text-primary shrink-0",
|
|
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
|
|
879
883
|
}), /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
|
|
880
|
-
className: "text-lg font-bold text-
|
|
884
|
+
className: "text-lg font-bold text-text-primary",
|
|
881
885
|
children: e.value
|
|
882
886
|
}), /* @__PURE__ */ q("p", {
|
|
883
|
-
className: "text-xs text-
|
|
887
|
+
className: "text-xs text-text-secondary",
|
|
884
888
|
children: e.label
|
|
885
889
|
})] })]
|
|
886
890
|
}, e.label))
|
|
887
891
|
})]
|
|
888
892
|
}),
|
|
889
893
|
/* @__PURE__ */ J("section", { children: [/* @__PURE__ */ q("h2", {
|
|
890
|
-
className: "text-lg font-semibold text-
|
|
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 bg-
|
|
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", {
|
|
898
|
-
className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-
|
|
899
|
-
children: /* @__PURE__ */ q(m, { className: t("h-4 w-4", H[e.type] ?? "text-
|
|
902
|
+
className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-bg-sunken",
|
|
903
|
+
children: /* @__PURE__ */ q(m, { className: t("h-4 w-4", H[e.type] ?? "text-text-secondary") })
|
|
900
904
|
}),
|
|
901
905
|
/* @__PURE__ */ q("div", {
|
|
902
906
|
className: "flex-1 min-w-0",
|
|
903
907
|
children: /* @__PURE__ */ q("p", {
|
|
904
|
-
className: "text-sm text-
|
|
908
|
+
className: "text-sm text-text-primary truncate",
|
|
905
909
|
children: e.description
|
|
906
910
|
})
|
|
907
911
|
}),
|
|
908
912
|
/* @__PURE__ */ q("span", {
|
|
909
|
-
className: "text-xs text-
|
|
913
|
+
className: "text-xs text-text-secondary whitespace-nowrap",
|
|
910
914
|
children: e.time
|
|
911
915
|
})
|
|
912
916
|
]
|
|
@@ -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
|