@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
|
@@ -71,7 +71,7 @@ function D() {
|
|
|
71
71
|
children: /* @__PURE__ */ T("div", {
|
|
72
72
|
className: "flex h-[60vh] flex-col items-center justify-center gap-4",
|
|
73
73
|
children: [
|
|
74
|
-
/* @__PURE__ */ w(u, { className: "h-12 w-12 text-
|
|
74
|
+
/* @__PURE__ */ w(u, { className: "h-12 w-12 text-status-error-text" }),
|
|
75
75
|
/* @__PURE__ */ w("h2", {
|
|
76
76
|
className: "text-xl font-semibold",
|
|
77
77
|
children: "Error loading service providers"
|
|
@@ -79,7 +79,7 @@ function D() {
|
|
|
79
79
|
/* @__PURE__ */ w("button", {
|
|
80
80
|
type: "button",
|
|
81
81
|
onClick: () => window.location.reload(),
|
|
82
|
-
className: "rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-
|
|
82
|
+
className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text",
|
|
83
83
|
children: "Retry"
|
|
84
84
|
})
|
|
85
85
|
]
|
|
@@ -87,26 +87,27 @@ function D() {
|
|
|
87
87
|
}) : /* @__PURE__ */ T(n, {
|
|
88
88
|
title: "Discover Carts",
|
|
89
89
|
description: "Find services and shops near you",
|
|
90
|
+
titleGradient: !0,
|
|
90
91
|
actions: /* @__PURE__ */ T("span", {
|
|
91
|
-
className: "text-sm text-
|
|
92
|
+
className: "text-sm text-text-secondary",
|
|
92
93
|
children: [Y.length, " carts found"]
|
|
93
94
|
}),
|
|
94
95
|
children: [
|
|
95
96
|
/* @__PURE__ */ T("div", {
|
|
96
97
|
className: "relative",
|
|
97
98
|
children: [
|
|
98
|
-
/* @__PURE__ */ w(v, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-
|
|
99
|
+
/* @__PURE__ */ w(v, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }),
|
|
99
100
|
/* @__PURE__ */ w("input", {
|
|
100
101
|
type: "text",
|
|
101
102
|
placeholder: "Search carts, services, or items...",
|
|
102
103
|
value: O,
|
|
103
104
|
onChange: (e) => k(e.target.value),
|
|
104
|
-
className: t("w-full rounded-lg border border-border bg-
|
|
105
|
+
className: t("w-full rounded-lg border border-border-seam bg-bg-surface py-2.5 pl-10 pr-10 text-sm text-text-primary", "placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]")
|
|
105
106
|
}),
|
|
106
107
|
O && /* @__PURE__ */ w("button", {
|
|
107
108
|
type: "button",
|
|
108
109
|
onClick: () => k(""),
|
|
109
|
-
className: "absolute right-3 top-1/2 -translate-y-1/2 text-
|
|
110
|
+
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
110
111
|
children: /* @__PURE__ */ w(S, { className: "h-4 w-4" })
|
|
111
112
|
})
|
|
112
113
|
]
|
|
@@ -116,7 +117,7 @@ function D() {
|
|
|
116
117
|
children: J.map((e) => /* @__PURE__ */ w("button", {
|
|
117
118
|
type: "button",
|
|
118
119
|
onClick: () => j(e),
|
|
119
|
-
className: t("rounded-full px-3 py-1.5 text-xs font-medium transition-colors", A === e ? "bg-foreground text-background" : "bg-
|
|
120
|
+
className: t("rounded-full px-3 py-1.5 text-xs font-medium transition-colors", A === e ? "bg-foreground text-background" : "bg-bg-sunken text-text-secondary hover:bg-accent hover:text-text-primary"),
|
|
120
121
|
children: e
|
|
121
122
|
}, e))
|
|
122
123
|
}),
|
|
@@ -126,7 +127,7 @@ function D() {
|
|
|
126
127
|
/* @__PURE__ */ T("select", {
|
|
127
128
|
value: M,
|
|
128
129
|
onChange: (e) => N(e.target.value),
|
|
129
|
-
className: "rounded-lg border border-border bg-
|
|
130
|
+
className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
130
131
|
children: [
|
|
131
132
|
/* @__PURE__ */ w("option", {
|
|
132
133
|
value: "",
|
|
@@ -149,7 +150,7 @@ function D() {
|
|
|
149
150
|
/* @__PURE__ */ T("select", {
|
|
150
151
|
value: P,
|
|
151
152
|
onChange: (e) => F(e.target.value),
|
|
152
|
-
className: "rounded-lg border border-border bg-
|
|
153
|
+
className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
153
154
|
children: [
|
|
154
155
|
/* @__PURE__ */ w("option", {
|
|
155
156
|
value: "",
|
|
@@ -172,7 +173,7 @@ function D() {
|
|
|
172
173
|
/* @__PURE__ */ T("select", {
|
|
173
174
|
value: I,
|
|
174
175
|
onChange: (e) => L(e.target.value),
|
|
175
|
-
className: "rounded-lg border border-border bg-
|
|
176
|
+
className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
176
177
|
children: [
|
|
177
178
|
/* @__PURE__ */ w("option", {
|
|
178
179
|
value: "rating",
|
|
@@ -195,7 +196,7 @@ function D() {
|
|
|
195
196
|
Q && /* @__PURE__ */ w("button", {
|
|
196
197
|
type: "button",
|
|
197
198
|
onClick: $,
|
|
198
|
-
className: "rounded-lg border border-border px-3 py-2 text-xs font-medium text-
|
|
199
|
+
className: "rounded-lg border border-border-seam px-3 py-2 text-xs font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
199
200
|
children: "Clear All Filters"
|
|
200
201
|
})
|
|
201
202
|
]
|
|
@@ -205,9 +206,9 @@ function D() {
|
|
|
205
206
|
children: X.map((e) => {
|
|
206
207
|
let n = q.find((t) => t.cartId === e.id);
|
|
207
208
|
return /* @__PURE__ */ T("div", {
|
|
208
|
-
className: "rounded-lg border border-border bg-
|
|
209
|
+
className: "rounded-lg border border-border-seam bg-bg-surface shadow-sm overflow-hidden hover:shadow-md transition-shadow flex flex-col",
|
|
209
210
|
children: [/* @__PURE__ */ T("div", {
|
|
210
|
-
className: "relative h-40 bg-
|
|
211
|
+
className: "relative h-40 bg-bg-sunken",
|
|
211
212
|
children: [
|
|
212
213
|
/* @__PURE__ */ w("img", {
|
|
213
214
|
src: e.image,
|
|
@@ -217,17 +218,17 @@ function D() {
|
|
|
217
218
|
/* @__PURE__ */ T("div", {
|
|
218
219
|
className: "absolute top-2 left-2 flex gap-1.5",
|
|
219
220
|
children: [/* @__PURE__ */ w("span", {
|
|
220
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium backdrop-blur-sm", e.isOpen ? "bg-
|
|
221
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium backdrop-blur-sm", e.isOpen ? "bg-status-success-bg/20 text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
221
222
|
children: e.isOpen ? "Open" : "Closed"
|
|
222
223
|
}), e.isVerified && /* @__PURE__ */ T("span", {
|
|
223
|
-
className: "inline-flex items-center gap-0.5 rounded-full bg-
|
|
224
|
+
className: "inline-flex items-center gap-0.5 rounded-full bg-status-info-bg/20 px-2 py-0.5 text-xs font-medium text-status-info-text backdrop-blur-sm",
|
|
224
225
|
children: [/* @__PURE__ */ w(f, { className: "h-3 w-3" }), "Verified"]
|
|
225
226
|
})]
|
|
226
227
|
}),
|
|
227
228
|
/* @__PURE__ */ w("div", {
|
|
228
229
|
className: "absolute top-2 right-2",
|
|
229
230
|
children: /* @__PURE__ */ T("span", {
|
|
230
|
-
className: "rounded-full bg-
|
|
231
|
+
className: "rounded-full bg-bg-canvas/50 px-2 py-0.5 text-xs text-text-inverse backdrop-blur-sm",
|
|
231
232
|
children: [e.estimatedTime, " min"]
|
|
232
233
|
})
|
|
233
234
|
})
|
|
@@ -238,18 +239,18 @@ function D() {
|
|
|
238
239
|
/* @__PURE__ */ T("div", {
|
|
239
240
|
className: "flex items-start justify-between gap-2 mb-1",
|
|
240
241
|
children: [/* @__PURE__ */ w("h3", {
|
|
241
|
-
className: "text-sm font-semibold text-
|
|
242
|
+
className: "text-sm font-semibold text-text-primary truncate flex-1",
|
|
242
243
|
children: e.name
|
|
243
244
|
}), /* @__PURE__ */ T("div", {
|
|
244
245
|
className: "flex items-center gap-1 shrink-0",
|
|
245
246
|
children: [
|
|
246
|
-
/* @__PURE__ */ w(y, { className: "h-3.5 w-3.5 fill-
|
|
247
|
+
/* @__PURE__ */ w(y, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }),
|
|
247
248
|
/* @__PURE__ */ w("span", {
|
|
248
|
-
className: "text-xs font-medium text-
|
|
249
|
+
className: "text-xs font-medium text-text-primary",
|
|
249
250
|
children: e.rating
|
|
250
251
|
}),
|
|
251
252
|
/* @__PURE__ */ T("span", {
|
|
252
|
-
className: "text-xs text-
|
|
253
|
+
className: "text-xs text-text-secondary",
|
|
253
254
|
children: [
|
|
254
255
|
"(",
|
|
255
256
|
e.totalRatings,
|
|
@@ -260,27 +261,27 @@ function D() {
|
|
|
260
261
|
})]
|
|
261
262
|
}),
|
|
262
263
|
/* @__PURE__ */ w("p", {
|
|
263
|
-
className: "text-xs text-
|
|
264
|
+
className: "text-xs text-text-secondary mb-2",
|
|
264
265
|
children: e.category
|
|
265
266
|
}),
|
|
266
267
|
/* @__PURE__ */ w("div", {
|
|
267
|
-
className: "flex items-center gap-3 text-xs text-
|
|
268
|
+
className: "flex items-center gap-3 text-xs text-text-secondary mb-2",
|
|
268
269
|
children: /* @__PURE__ */ T("span", {
|
|
269
270
|
className: "flex items-center gap-1",
|
|
270
271
|
children: [/* @__PURE__ */ w(_, { className: "h-3 w-3" }), e.location?.address?.split(",")[0] || "Unknown"]
|
|
271
272
|
})
|
|
272
273
|
}),
|
|
273
274
|
/* @__PURE__ */ T("div", {
|
|
274
|
-
className: "flex items-center gap-3 text-xs text-
|
|
275
|
+
className: "flex items-center gap-3 text-xs text-text-secondary mb-3",
|
|
275
276
|
children: [e.averageOrderValue && /* @__PURE__ */ T("span", { children: ["Avg ", o(e.averageOrderValue, { minimumFractionDigits: 0 })] }), /* @__PURE__ */ T("span", {
|
|
276
277
|
className: "flex items-center gap-1",
|
|
277
278
|
children: [/* @__PURE__ */ w(_, { className: "h-3 w-3" }), s(e.distance)]
|
|
278
279
|
})]
|
|
279
280
|
}),
|
|
280
281
|
e.serviceTypes?.includes("appointment") && /* @__PURE__ */ w("div", {
|
|
281
|
-
className: "mb-3 rounded-md bg-
|
|
282
|
+
className: "mb-3 rounded-md bg-status-info-bg/10 border border-status-info-border/20 p-2",
|
|
282
283
|
children: /* @__PURE__ */ T("div", {
|
|
283
|
-
className: "flex items-center gap-1 text-xs text-
|
|
284
|
+
className: "flex items-center gap-1 text-xs text-status-info-text",
|
|
284
285
|
children: [/* @__PURE__ */ w(d, { className: "h-3 w-3" }), /* @__PURE__ */ w("span", {
|
|
285
286
|
className: "font-medium",
|
|
286
287
|
children: "Appointment available"
|
|
@@ -288,9 +289,9 @@ function D() {
|
|
|
288
289
|
})
|
|
289
290
|
}),
|
|
290
291
|
e.serviceTypes?.includes("direct_service") && /* @__PURE__ */ w("div", {
|
|
291
|
-
className: "mb-3 rounded-md bg-purple-
|
|
292
|
+
className: "mb-3 rounded-md bg-accent-purple-subtle border border-accent-purple/20 p-2",
|
|
292
293
|
children: /* @__PURE__ */ T("div", {
|
|
293
|
-
className: "flex items-center gap-1 text-xs text-
|
|
294
|
+
className: "flex items-center gap-1 text-xs text-accent-purple",
|
|
294
295
|
children: [/* @__PURE__ */ w(m, { className: "h-3 w-3" }), /* @__PURE__ */ w("span", {
|
|
295
296
|
className: "font-medium",
|
|
296
297
|
children: "Direct Service Available"
|
|
@@ -300,7 +301,7 @@ function D() {
|
|
|
300
301
|
e.serviceTypes && e.serviceTypes.length > 0 && /* @__PURE__ */ w("div", {
|
|
301
302
|
className: "flex flex-wrap gap-1 mb-3",
|
|
302
303
|
children: e.serviceTypes.slice(0, 3).map((e) => /* @__PURE__ */ w("span", {
|
|
303
|
-
className: "rounded-full bg-
|
|
304
|
+
className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] text-text-secondary",
|
|
304
305
|
children: e.replace(/_/g, " ")
|
|
305
306
|
}, e))
|
|
306
307
|
}),
|
|
@@ -311,20 +312,20 @@ function D() {
|
|
|
311
312
|
type: "button",
|
|
312
313
|
onClick: () => D(`/customer/cart/${e.id}`),
|
|
313
314
|
disabled: !e.isOpen,
|
|
314
|
-
className: t("flex-1 rounded-lg py-2 text-xs font-medium transition-opacity", e.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-
|
|
315
|
+
className: t("flex-1 rounded-lg py-2 text-xs font-medium transition-opacity", e.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
|
|
315
316
|
children: e.isOpen ? "View Services" : "Closed"
|
|
316
317
|
}),
|
|
317
318
|
e.serviceTypes?.includes("direct_service") && /* @__PURE__ */ w("button", {
|
|
318
319
|
type: "button",
|
|
319
320
|
onClick: () => D(`/customer/cart/${e.id}`),
|
|
320
|
-
className: "rounded-lg border border-border px-2 py-2 text-xs text-
|
|
321
|
+
className: "rounded-lg border border-border-seam px-2 py-2 text-xs text-text-primary hover:bg-accent transition-colors",
|
|
321
322
|
title: "Book Direct Service",
|
|
322
323
|
children: /* @__PURE__ */ w(m, { className: "h-3.5 w-3.5" })
|
|
323
324
|
}),
|
|
324
325
|
n && /* @__PURE__ */ w("button", {
|
|
325
326
|
type: "button",
|
|
326
327
|
onClick: () => alert("Investment opportunity available! View in Investor section."),
|
|
327
|
-
className: "rounded-lg border border-
|
|
328
|
+
className: "rounded-lg border border-status-success-border/30 bg-status-success-bg/10 px-2 py-2 text-xs text-status-success-text hover:bg-status-success-bg/20 transition-colors",
|
|
328
329
|
title: "Investment Opportunity",
|
|
329
330
|
children: /* @__PURE__ */ w(x, { className: "h-3.5 w-3.5" })
|
|
330
331
|
}),
|
|
@@ -333,7 +334,7 @@ function D() {
|
|
|
333
334
|
onClick: () => {
|
|
334
335
|
U(e), V(!0);
|
|
335
336
|
},
|
|
336
|
-
className: "rounded-lg border border-border px-2 py-2 text-xs text-
|
|
337
|
+
className: "rounded-lg border border-border-seam px-2 py-2 text-xs text-text-primary hover:bg-accent transition-colors",
|
|
337
338
|
title: "Cart Info",
|
|
338
339
|
children: /* @__PURE__ */ w(h, { className: "h-3.5 w-3.5" })
|
|
339
340
|
})
|
|
@@ -348,12 +349,13 @@ function D() {
|
|
|
348
349
|
children: /* @__PURE__ */ w("button", {
|
|
349
350
|
type: "button",
|
|
350
351
|
onClick: () => z((e) => e + 9),
|
|
351
|
-
className: "rounded-lg border border-border px-6 py-2.5 text-sm font-medium text-
|
|
352
|
+
className: "rounded-lg border border-border-seam px-6 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
352
353
|
children: "Load More Carts"
|
|
353
354
|
})
|
|
354
355
|
})] }) : /* @__PURE__ */ w("div", {
|
|
355
356
|
className: "mt-6",
|
|
356
357
|
children: /* @__PURE__ */ w(r, {
|
|
358
|
+
illustration: "empty-search",
|
|
357
359
|
icon: /* @__PURE__ */ w(v, { className: "h-12 w-12" }),
|
|
358
360
|
title: "No carts found",
|
|
359
361
|
description: O ? `No results for "${O}". Try a different search term.` : "No carts available with these filters.",
|
|
@@ -366,21 +368,21 @@ function D() {
|
|
|
366
368
|
})
|
|
367
369
|
}),
|
|
368
370
|
B && H && /* @__PURE__ */ w("div", {
|
|
369
|
-
className: "fixed inset-0 z-50 flex items-center justify-center bg-
|
|
371
|
+
className: "fixed inset-0 z-50 flex items-center justify-center bg-bg-canvas/50 p-4",
|
|
370
372
|
children: /* @__PURE__ */ w("div", {
|
|
371
|
-
className: "w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-lg border border-border bg-
|
|
373
|
+
className: "w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-lg border border-border-seam bg-bg-surface",
|
|
372
374
|
children: /* @__PURE__ */ T("div", {
|
|
373
375
|
className: "p-5",
|
|
374
376
|
children: [
|
|
375
377
|
/* @__PURE__ */ T("div", {
|
|
376
378
|
className: "flex items-center justify-between mb-4",
|
|
377
379
|
children: [/* @__PURE__ */ w("h3", {
|
|
378
|
-
className: "text-lg font-semibold text-
|
|
380
|
+
className: "text-lg font-semibold text-text-primary",
|
|
379
381
|
children: "Cart Information"
|
|
380
382
|
}), /* @__PURE__ */ w("button", {
|
|
381
383
|
type: "button",
|
|
382
384
|
onClick: () => V(!1),
|
|
383
|
-
className: "rounded-md p-1 text-
|
|
385
|
+
className: "rounded-md p-1 text-text-secondary hover:text-text-primary transition-colors",
|
|
384
386
|
children: /* @__PURE__ */ w(S, { className: "h-5 w-5" })
|
|
385
387
|
})]
|
|
386
388
|
}),
|
|
@@ -393,7 +395,7 @@ function D() {
|
|
|
393
395
|
})
|
|
394
396
|
}),
|
|
395
397
|
/* @__PURE__ */ w("h4", {
|
|
396
|
-
className: "text-xl font-semibold text-
|
|
398
|
+
className: "text-xl font-semibold text-text-primary mb-1",
|
|
397
399
|
children: H.name
|
|
398
400
|
}),
|
|
399
401
|
/* @__PURE__ */ T("div", {
|
|
@@ -401,13 +403,13 @@ function D() {
|
|
|
401
403
|
children: [/* @__PURE__ */ T("div", {
|
|
402
404
|
className: "flex items-center gap-1",
|
|
403
405
|
children: [
|
|
404
|
-
/* @__PURE__ */ w(y, { className: "h-3.5 w-3.5 fill-
|
|
406
|
+
/* @__PURE__ */ w(y, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }),
|
|
405
407
|
/* @__PURE__ */ w("span", {
|
|
406
408
|
className: "text-sm font-medium",
|
|
407
409
|
children: H.rating
|
|
408
410
|
}),
|
|
409
411
|
/* @__PURE__ */ T("span", {
|
|
410
|
-
className: "text-xs text-
|
|
412
|
+
className: "text-xs text-text-secondary",
|
|
411
413
|
children: [
|
|
412
414
|
"(",
|
|
413
415
|
H.totalRatings,
|
|
@@ -416,7 +418,7 @@ function D() {
|
|
|
416
418
|
})
|
|
417
419
|
]
|
|
418
420
|
}), /* @__PURE__ */ w("span", {
|
|
419
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", H.isOpen ? "bg-
|
|
421
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", H.isOpen ? "bg-status-success-bg/20 text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
420
422
|
children: H.isOpen ? "Open" : "Closed"
|
|
421
423
|
})]
|
|
422
424
|
}),
|
|
@@ -424,62 +426,62 @@ function D() {
|
|
|
424
426
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 mb-4",
|
|
425
427
|
children: [
|
|
426
428
|
/* @__PURE__ */ T("div", {
|
|
427
|
-
className: "rounded-md bg-
|
|
429
|
+
className: "rounded-md bg-bg-sunken p-3",
|
|
428
430
|
children: [/* @__PURE__ */ T("p", {
|
|
429
|
-
className: "text-xs font-medium text-
|
|
431
|
+
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
430
432
|
children: [/* @__PURE__ */ w(_, { className: "h-3 w-3" }), " Location"]
|
|
431
433
|
}), /* @__PURE__ */ w("p", {
|
|
432
|
-
className: "mt-1 text-sm text-
|
|
434
|
+
className: "mt-1 text-sm text-text-primary",
|
|
433
435
|
children: H.location.address
|
|
434
436
|
})]
|
|
435
437
|
}),
|
|
436
438
|
/* @__PURE__ */ T("div", {
|
|
437
|
-
className: "rounded-md bg-
|
|
439
|
+
className: "rounded-md bg-bg-sunken p-3",
|
|
438
440
|
children: [/* @__PURE__ */ T("p", {
|
|
439
|
-
className: "text-xs font-medium text-
|
|
441
|
+
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
440
442
|
children: [/* @__PURE__ */ w(b, { className: "h-3 w-3" }), " Category"]
|
|
441
443
|
}), /* @__PURE__ */ w("p", {
|
|
442
|
-
className: "mt-1 text-sm text-
|
|
444
|
+
className: "mt-1 text-sm text-text-primary",
|
|
443
445
|
children: H.category
|
|
444
446
|
})]
|
|
445
447
|
}),
|
|
446
448
|
H.averageOrderValue && /* @__PURE__ */ T("div", {
|
|
447
|
-
className: "rounded-md bg-
|
|
449
|
+
className: "rounded-md bg-bg-sunken p-3",
|
|
448
450
|
children: [/* @__PURE__ */ w("p", {
|
|
449
|
-
className: "text-xs font-medium text-
|
|
451
|
+
className: "text-xs font-medium text-text-secondary",
|
|
450
452
|
children: "Average Order"
|
|
451
453
|
}), /* @__PURE__ */ w("p", {
|
|
452
|
-
className: "mt-1 text-sm text-
|
|
454
|
+
className: "mt-1 text-sm text-text-primary",
|
|
453
455
|
children: o(H.averageOrderValue, { minimumFractionDigits: 0 })
|
|
454
456
|
})]
|
|
455
457
|
}),
|
|
456
458
|
/* @__PURE__ */ T("div", {
|
|
457
|
-
className: "rounded-md bg-
|
|
459
|
+
className: "rounded-md bg-bg-sunken p-3",
|
|
458
460
|
children: [/* @__PURE__ */ T("p", {
|
|
459
|
-
className: "text-xs font-medium text-
|
|
461
|
+
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
460
462
|
children: [/* @__PURE__ */ w(p, { className: "h-3 w-3" }), " Estimated Time"]
|
|
461
463
|
}), /* @__PURE__ */ T("p", {
|
|
462
|
-
className: "mt-1 text-sm text-
|
|
464
|
+
className: "mt-1 text-sm text-text-primary",
|
|
463
465
|
children: [H.estimatedTime, " minutes"]
|
|
464
466
|
})]
|
|
465
467
|
}),
|
|
466
468
|
/* @__PURE__ */ T("div", {
|
|
467
|
-
className: "rounded-md bg-
|
|
469
|
+
className: "rounded-md bg-bg-sunken p-3",
|
|
468
470
|
children: [/* @__PURE__ */ w("p", {
|
|
469
|
-
className: "text-xs font-medium text-
|
|
471
|
+
className: "text-xs font-medium text-text-secondary",
|
|
470
472
|
children: "Distance"
|
|
471
473
|
}), /* @__PURE__ */ w("p", {
|
|
472
|
-
className: "mt-1 text-sm text-
|
|
474
|
+
className: "mt-1 text-sm text-text-primary",
|
|
473
475
|
children: s(H.distance)
|
|
474
476
|
})]
|
|
475
477
|
}),
|
|
476
478
|
H.isVerified && /* @__PURE__ */ T("div", {
|
|
477
|
-
className: "rounded-md bg-
|
|
479
|
+
className: "rounded-md bg-bg-sunken p-3",
|
|
478
480
|
children: [/* @__PURE__ */ T("p", {
|
|
479
|
-
className: "text-xs font-medium text-
|
|
481
|
+
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
480
482
|
children: [/* @__PURE__ */ w(f, { className: "h-3 w-3" }), " Verification"]
|
|
481
483
|
}), /* @__PURE__ */ w("p", {
|
|
482
|
-
className: "mt-1 text-sm text-
|
|
484
|
+
className: "mt-1 text-sm text-text-primary",
|
|
483
485
|
children: "Verified cart"
|
|
484
486
|
})]
|
|
485
487
|
})
|
|
@@ -488,12 +490,12 @@ function D() {
|
|
|
488
490
|
H.serviceTypes && H.serviceTypes.length > 0 && /* @__PURE__ */ T("div", {
|
|
489
491
|
className: "mb-4",
|
|
490
492
|
children: [/* @__PURE__ */ w("p", {
|
|
491
|
-
className: "text-xs font-medium text-
|
|
493
|
+
className: "text-xs font-medium text-text-secondary mb-2",
|
|
492
494
|
children: "Service Types"
|
|
493
495
|
}), /* @__PURE__ */ w("div", {
|
|
494
496
|
className: "flex flex-wrap gap-2",
|
|
495
497
|
children: H.serviceTypes.map((e) => /* @__PURE__ */ w("span", {
|
|
496
|
-
className: "rounded-full bg-
|
|
498
|
+
className: "rounded-full bg-bg-sunken px-2.5 py-1 text-xs text-text-secondary capitalize",
|
|
497
499
|
children: e.replace(/_/g, " ")
|
|
498
500
|
}, e))
|
|
499
501
|
})]
|
|
@@ -501,17 +503,17 @@ function D() {
|
|
|
501
503
|
H.businessHours && Object.keys(H.businessHours).length > 0 && /* @__PURE__ */ T("div", {
|
|
502
504
|
className: "mb-4",
|
|
503
505
|
children: [/* @__PURE__ */ w("p", {
|
|
504
|
-
className: "text-xs font-medium text-
|
|
506
|
+
className: "text-xs font-medium text-text-secondary mb-2",
|
|
505
507
|
children: "Operating Hours"
|
|
506
508
|
}), /* @__PURE__ */ w("div", {
|
|
507
509
|
className: "space-y-1",
|
|
508
510
|
children: Object.entries(H.businessHours).map(([e, t]) => /* @__PURE__ */ T("div", {
|
|
509
511
|
className: "flex justify-between text-xs",
|
|
510
512
|
children: [/* @__PURE__ */ w("span", {
|
|
511
|
-
className: "capitalize text-
|
|
513
|
+
className: "capitalize text-text-primary",
|
|
512
514
|
children: e
|
|
513
515
|
}), /* @__PURE__ */ w("span", {
|
|
514
|
-
className: "text-
|
|
516
|
+
className: "text-text-secondary",
|
|
515
517
|
children: t.isOpen ? `${t.open} - ${t.close}` : "Closed"
|
|
516
518
|
})]
|
|
517
519
|
}, e))
|
|
@@ -525,12 +527,12 @@ function D() {
|
|
|
525
527
|
V(!1), D(`/customer/carts/${H.id}`);
|
|
526
528
|
},
|
|
527
529
|
disabled: !H.isOpen,
|
|
528
|
-
className: t("flex-1 rounded-lg py-2.5 text-sm font-medium transition-opacity", H.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-
|
|
530
|
+
className: t("flex-1 rounded-lg py-2.5 text-sm font-medium transition-opacity", H.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
|
|
529
531
|
children: H.isOpen ? "View Menu" : "Currently Closed"
|
|
530
532
|
}), /* @__PURE__ */ w("button", {
|
|
531
533
|
type: "button",
|
|
532
534
|
onClick: () => V(!1),
|
|
533
|
-
className: "rounded-lg border border-border px-4 py-2.5 text-sm font-medium text-
|
|
535
|
+
className: "rounded-lg border border-border-seam px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
534
536
|
children: "Close"
|
|
535
537
|
})]
|
|
536
538
|
})
|