@burdenoff/microfe-adaptercloud 2026.624.1 → 2026.625.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adaptercloud/components/EmptyState.js +17 -21
- package/dist/adaptercloud/components/EmptyState.js.map +1 -1
- package/dist/adaptercloud/components/InvestmentCard.js +25 -23
- package/dist/adaptercloud/components/InvestmentCard.js.map +1 -1
- package/dist/adaptercloud/components/MetricsCard.js +18 -12
- package/dist/adaptercloud/components/MetricsCard.js.map +1 -1
- package/dist/adaptercloud/components/PageLayout.js +45 -19
- package/dist/adaptercloud/components/PageLayout.js.map +1 -1
- package/dist/adaptercloud/components/RatingDisplay.js +3 -3
- package/dist/adaptercloud/components/RatingDisplay.js.map +1 -1
- package/dist/adaptercloud/components/StatusBadge.js +36 -16
- package/dist/adaptercloud/components/StatusBadge.js.map +1 -1
- package/dist/adaptercloud/pages/HomePage.js +244 -231
- package/dist/adaptercloud/pages/HomePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +121 -113
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +102 -76
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +70 -65
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +108 -103
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +61 -59
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +119 -105
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +165 -160
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +174 -169
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +103 -97
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +186 -172
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +109 -81
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +111 -109
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +127 -124
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +310 -316
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +251 -257
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +142 -148
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +287 -283
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +120 -114
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/SettingsPage.js +754 -736
- package/dist/adaptercloud/pages/common/SettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +83 -80
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +120 -117
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +231 -226
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +97 -95
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +418 -389
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +134 -132
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +108 -102
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +62 -59
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +117 -111
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +71 -68
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +97 -81
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +83 -80
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +82 -66
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +93 -91
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +100 -97
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +83 -81
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +344 -311
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +43 -40
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +59 -57
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +394 -392
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +354 -324
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +122 -97
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +107 -104
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +109 -107
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +94 -90
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -5,8 +5,9 @@ import { EmptyState as r } from "../../components/EmptyState.js";
|
|
|
5
5
|
import { useInvestmentOpportunities as i, useProviders as a } from "../../hooks/useAdapterCloudApi.js";
|
|
6
6
|
import { formatCurrency as o, formatDistance as s } from "../../utils/formatters.js";
|
|
7
7
|
import { useMemo as c, useState as l } from "react";
|
|
8
|
-
import { AlertCircle as u, Calendar as d, CheckCircle2 as f, Clock as p, Home as m, Info as
|
|
9
|
-
import { Fragment as
|
|
8
|
+
import { AlertCircle as u, Calendar as d, CheckCircle2 as f, Clock as p, Home as m, Info as ee, Loader2 as h, MapPin as g, Search as _, Star as v, Tag as y, TrendingUp as b, X as x } from "lucide-react";
|
|
9
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
10
|
+
import { EmphasisPanel as T } from "@burdenoff/fe-libs/ui";
|
|
10
11
|
//#region src/adaptercloud/pages/customer/CartDiscoveryPage.tsx
|
|
11
12
|
var E = "All";
|
|
12
13
|
function D() {
|
|
@@ -58,25 +59,25 @@ function D() {
|
|
|
58
59
|
]), X = Y.slice(0, R), Z = R < Y.length, Q = A !== E || M !== "" || P !== "" || O.trim() !== "", $ = () => {
|
|
59
60
|
k(""), j(E), N(""), F(""), L("rating"), z(9);
|
|
60
61
|
};
|
|
61
|
-
return G ? /* @__PURE__ */
|
|
62
|
+
return G ? /* @__PURE__ */ C(n, {
|
|
62
63
|
title: "Discover Carts",
|
|
63
64
|
description: "Finding services and shops near you...",
|
|
64
|
-
children: /* @__PURE__ */
|
|
65
|
+
children: /* @__PURE__ */ C("div", {
|
|
65
66
|
className: "flex h-[60vh] items-center justify-center",
|
|
66
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ C(h, { className: "h-8 w-8 animate-spin text-primary" })
|
|
67
68
|
})
|
|
68
|
-
}) : K ? /* @__PURE__ */
|
|
69
|
+
}) : K ? /* @__PURE__ */ C(n, {
|
|
69
70
|
title: "Discover Carts",
|
|
70
71
|
description: "Error loading carts",
|
|
71
|
-
children: /* @__PURE__ */
|
|
72
|
+
children: /* @__PURE__ */ w("div", {
|
|
72
73
|
className: "flex h-[60vh] flex-col items-center justify-center gap-4",
|
|
73
74
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ C(u, { className: "h-12 w-12 text-status-error-text" }),
|
|
76
|
+
/* @__PURE__ */ C("h2", {
|
|
76
77
|
className: "text-xl font-semibold",
|
|
77
78
|
children: "Error loading service providers"
|
|
78
79
|
}),
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ C("button", {
|
|
80
81
|
type: "button",
|
|
81
82
|
onClick: () => window.location.reload(),
|
|
82
83
|
className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text",
|
|
@@ -84,171 +85,174 @@ function D() {
|
|
|
84
85
|
})
|
|
85
86
|
]
|
|
86
87
|
})
|
|
87
|
-
}) : /* @__PURE__ */
|
|
88
|
+
}) : /* @__PURE__ */ w(n, {
|
|
88
89
|
title: "Discover Carts",
|
|
89
90
|
description: "Find services and shops near you",
|
|
90
|
-
|
|
91
|
+
purpose: "Browse the carts (local shops and service providers) operating near you. Search by name, filter by category and rating, and open any cart to see its offerings and place an order or booking.",
|
|
92
|
+
actions: /* @__PURE__ */ w("span", {
|
|
91
93
|
className: "text-sm text-text-secondary",
|
|
92
94
|
children: [Y.length, " carts found"]
|
|
93
95
|
}),
|
|
94
96
|
children: [
|
|
95
|
-
/* @__PURE__ */ T
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
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-bg-sunken text-text-secondary hover:bg-accent hover:text-text-primary"),
|
|
120
|
-
children: e
|
|
121
|
-
}, e))
|
|
122
|
-
}),
|
|
123
|
-
/* @__PURE__ */ T("div", {
|
|
124
|
-
className: "mt-4 flex flex-wrap items-center gap-3",
|
|
125
|
-
children: [
|
|
126
|
-
/* @__PURE__ */ T("select", {
|
|
127
|
-
value: M,
|
|
128
|
-
onChange: (e) => N(e.target.value),
|
|
129
|
-
className: "rounded-lg border border-border-subtle 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
|
-
children: [
|
|
131
|
-
/* @__PURE__ */ w("option", {
|
|
132
|
-
value: "",
|
|
133
|
-
children: "Any Rating"
|
|
134
|
-
}),
|
|
135
|
-
/* @__PURE__ */ w("option", {
|
|
136
|
-
value: "4.5",
|
|
137
|
-
children: "4.5+ Stars"
|
|
138
|
-
}),
|
|
139
|
-
/* @__PURE__ */ w("option", {
|
|
140
|
-
value: "4.0",
|
|
141
|
-
children: "4.0+ Stars"
|
|
142
|
-
}),
|
|
143
|
-
/* @__PURE__ */ w("option", {
|
|
144
|
-
value: "3.5",
|
|
145
|
-
children: "3.5+ Stars"
|
|
146
|
-
})
|
|
147
|
-
]
|
|
148
|
-
}),
|
|
149
|
-
/* @__PURE__ */ T("select", {
|
|
150
|
-
value: P,
|
|
151
|
-
onChange: (e) => F(e.target.value),
|
|
152
|
-
className: "rounded-lg border border-border-subtle 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
|
-
children: [
|
|
154
|
-
/* @__PURE__ */ w("option", {
|
|
155
|
-
value: "",
|
|
156
|
-
children: "Any Price"
|
|
157
|
-
}),
|
|
158
|
-
/* @__PURE__ */ w("option", {
|
|
159
|
-
value: "low",
|
|
160
|
-
children: "Under ₹300"
|
|
161
|
-
}),
|
|
162
|
-
/* @__PURE__ */ w("option", {
|
|
163
|
-
value: "medium",
|
|
164
|
-
children: "₹300 - ₹800"
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ w("option", {
|
|
167
|
-
value: "high",
|
|
168
|
-
children: "₹800+"
|
|
169
|
-
})
|
|
170
|
-
]
|
|
171
|
-
}),
|
|
172
|
-
/* @__PURE__ */ T("select", {
|
|
173
|
-
value: I,
|
|
174
|
-
onChange: (e) => L(e.target.value),
|
|
175
|
-
className: "rounded-lg border border-border-subtle 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
|
-
children: [
|
|
177
|
-
/* @__PURE__ */ w("option", {
|
|
178
|
-
value: "rating",
|
|
179
|
-
children: "Highest Rated"
|
|
180
|
-
}),
|
|
181
|
-
/* @__PURE__ */ w("option", {
|
|
182
|
-
value: "popularity",
|
|
183
|
-
children: "Most Popular"
|
|
184
|
-
}),
|
|
185
|
-
/* @__PURE__ */ w("option", {
|
|
186
|
-
value: "distance",
|
|
187
|
-
children: "Nearest"
|
|
188
|
-
}),
|
|
189
|
-
/* @__PURE__ */ w("option", {
|
|
190
|
-
value: "newest",
|
|
191
|
-
children: "Newest"
|
|
192
|
-
})
|
|
193
|
-
]
|
|
194
|
-
}),
|
|
195
|
-
Q && /* @__PURE__ */ w("button", {
|
|
97
|
+
/* @__PURE__ */ w(T, { children: [
|
|
98
|
+
/* @__PURE__ */ w("div", {
|
|
99
|
+
className: "relative",
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ C(_, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }),
|
|
102
|
+
/* @__PURE__ */ C("input", {
|
|
103
|
+
type: "text",
|
|
104
|
+
placeholder: "Search carts, services, or items...",
|
|
105
|
+
value: O,
|
|
106
|
+
onChange: (e) => k(e.target.value),
|
|
107
|
+
className: t("w-full rounded-lg border border-border-subtle 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)]")
|
|
108
|
+
}),
|
|
109
|
+
O && /* @__PURE__ */ C("button", {
|
|
110
|
+
type: "button",
|
|
111
|
+
onClick: () => k(""),
|
|
112
|
+
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
113
|
+
children: /* @__PURE__ */ C(x, { className: "h-4 w-4" })
|
|
114
|
+
})
|
|
115
|
+
]
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ C("div", {
|
|
118
|
+
className: "mt-4 flex flex-wrap gap-2",
|
|
119
|
+
children: J.map((e) => /* @__PURE__ */ C("button", {
|
|
196
120
|
type: "button",
|
|
197
|
-
onClick:
|
|
198
|
-
className: "rounded-
|
|
199
|
-
children:
|
|
200
|
-
})
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
121
|
+
onClick: () => j(e),
|
|
122
|
+
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"),
|
|
123
|
+
children: e
|
|
124
|
+
}, e))
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ w("div", {
|
|
127
|
+
className: "mt-4 flex flex-wrap items-center gap-3",
|
|
128
|
+
children: [
|
|
129
|
+
/* @__PURE__ */ w("select", {
|
|
130
|
+
value: M,
|
|
131
|
+
onChange: (e) => N(e.target.value),
|
|
132
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
133
|
+
children: [
|
|
134
|
+
/* @__PURE__ */ C("option", {
|
|
135
|
+
value: "",
|
|
136
|
+
children: "Any Rating"
|
|
137
|
+
}),
|
|
138
|
+
/* @__PURE__ */ C("option", {
|
|
139
|
+
value: "4.5",
|
|
140
|
+
children: "4.5+ Stars"
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ C("option", {
|
|
143
|
+
value: "4.0",
|
|
144
|
+
children: "4.0+ Stars"
|
|
145
|
+
}),
|
|
146
|
+
/* @__PURE__ */ C("option", {
|
|
147
|
+
value: "3.5",
|
|
148
|
+
children: "3.5+ Stars"
|
|
149
|
+
})
|
|
150
|
+
]
|
|
151
|
+
}),
|
|
152
|
+
/* @__PURE__ */ w("select", {
|
|
153
|
+
value: P,
|
|
154
|
+
onChange: (e) => F(e.target.value),
|
|
155
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
156
|
+
children: [
|
|
157
|
+
/* @__PURE__ */ C("option", {
|
|
158
|
+
value: "",
|
|
159
|
+
children: "Any Price"
|
|
160
|
+
}),
|
|
161
|
+
/* @__PURE__ */ C("option", {
|
|
162
|
+
value: "low",
|
|
163
|
+
children: "Under ₹300"
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ C("option", {
|
|
166
|
+
value: "medium",
|
|
167
|
+
children: "₹300 - ₹800"
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ C("option", {
|
|
170
|
+
value: "high",
|
|
171
|
+
children: "₹800+"
|
|
172
|
+
})
|
|
173
|
+
]
|
|
174
|
+
}),
|
|
175
|
+
/* @__PURE__ */ w("select", {
|
|
176
|
+
value: I,
|
|
177
|
+
onChange: (e) => L(e.target.value),
|
|
178
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
179
|
+
children: [
|
|
180
|
+
/* @__PURE__ */ C("option", {
|
|
181
|
+
value: "rating",
|
|
182
|
+
children: "Highest Rated"
|
|
183
|
+
}),
|
|
184
|
+
/* @__PURE__ */ C("option", {
|
|
185
|
+
value: "popularity",
|
|
186
|
+
children: "Most Popular"
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ C("option", {
|
|
189
|
+
value: "distance",
|
|
190
|
+
children: "Nearest"
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ C("option", {
|
|
193
|
+
value: "newest",
|
|
194
|
+
children: "Newest"
|
|
195
|
+
})
|
|
196
|
+
]
|
|
197
|
+
}),
|
|
198
|
+
Q && /* @__PURE__ */ C("button", {
|
|
199
|
+
type: "button",
|
|
200
|
+
onClick: $,
|
|
201
|
+
className: "rounded-lg border border-border-subtle px-3 py-2 text-xs font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
202
|
+
children: "Clear All Filters"
|
|
203
|
+
})
|
|
204
|
+
]
|
|
205
|
+
})
|
|
206
|
+
] }),
|
|
207
|
+
X.length > 0 ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
|
|
204
208
|
className: "mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
205
209
|
children: X.map((e) => {
|
|
206
210
|
let n = q.find((t) => t.cartId === e.id);
|
|
207
|
-
return /* @__PURE__ */
|
|
211
|
+
return /* @__PURE__ */ w("div", {
|
|
208
212
|
className: "rounded-lg border border-border-subtle bg-bg-surface shadow-sm overflow-hidden hover:shadow-md transition-shadow flex flex-col",
|
|
209
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ w("div", {
|
|
210
214
|
className: "relative h-40 bg-bg-sunken",
|
|
211
215
|
children: [
|
|
212
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ C("img", {
|
|
213
217
|
src: e.image,
|
|
214
218
|
alt: e.name,
|
|
215
219
|
className: "h-full w-full object-cover"
|
|
216
220
|
}),
|
|
217
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ w("div", {
|
|
218
222
|
className: "absolute top-2 left-2 flex gap-1.5",
|
|
219
|
-
children: [/* @__PURE__ */
|
|
220
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium backdrop-blur-sm", e.isOpen ? "bg-
|
|
223
|
+
children: [/* @__PURE__ */ C("span", {
|
|
224
|
+
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-subtle/20 text-status-success-text" : "bg-status-error-bg-subtle/20 text-status-error-text"),
|
|
221
225
|
children: e.isOpen ? "Open" : "Closed"
|
|
222
|
-
}), e.isVerified && /* @__PURE__ */
|
|
223
|
-
className: "inline-flex items-center gap-0.5 rounded-full bg-blue-
|
|
224
|
-
children: [/* @__PURE__ */
|
|
226
|
+
}), e.isVerified && /* @__PURE__ */ w("span", {
|
|
227
|
+
className: "inline-flex items-center gap-0.5 rounded-full bg-accent-blue-subtle/20 px-2 py-0.5 text-xs font-medium text-accent-blue backdrop-blur-sm",
|
|
228
|
+
children: [/* @__PURE__ */ C(f, { className: "h-3 w-3" }), "Verified"]
|
|
225
229
|
})]
|
|
226
230
|
}),
|
|
227
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ C("div", {
|
|
228
232
|
className: "absolute top-2 right-2",
|
|
229
|
-
children: /* @__PURE__ */
|
|
233
|
+
children: /* @__PURE__ */ w("span", {
|
|
230
234
|
className: "rounded-full bg-black/50 px-2 py-0.5 text-xs text-white backdrop-blur-sm",
|
|
231
235
|
children: [e.estimatedTime, " min"]
|
|
232
236
|
})
|
|
233
237
|
})
|
|
234
238
|
]
|
|
235
|
-
}), /* @__PURE__ */
|
|
239
|
+
}), /* @__PURE__ */ w("div", {
|
|
236
240
|
className: "flex flex-col flex-1 p-4",
|
|
237
241
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ w("div", {
|
|
239
243
|
className: "flex items-start justify-between gap-2 mb-1",
|
|
240
|
-
children: [/* @__PURE__ */
|
|
244
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
241
245
|
className: "text-sm font-semibold text-text-primary truncate flex-1",
|
|
242
246
|
children: e.name
|
|
243
|
-
}), /* @__PURE__ */
|
|
247
|
+
}), /* @__PURE__ */ w("div", {
|
|
244
248
|
className: "flex items-center gap-1 shrink-0",
|
|
245
249
|
children: [
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ C(v, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }),
|
|
251
|
+
/* @__PURE__ */ C("span", {
|
|
248
252
|
className: "text-xs font-medium text-text-primary",
|
|
249
253
|
children: e.rating
|
|
250
254
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ w("span", {
|
|
252
256
|
className: "text-xs text-text-secondary",
|
|
253
257
|
children: [
|
|
254
258
|
"(",
|
|
@@ -259,83 +263,83 @@ function D() {
|
|
|
259
263
|
]
|
|
260
264
|
})]
|
|
261
265
|
}),
|
|
262
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ C("p", {
|
|
263
267
|
className: "text-xs text-text-secondary mb-2",
|
|
264
268
|
children: e.category
|
|
265
269
|
}),
|
|
266
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ C("div", {
|
|
267
271
|
className: "flex items-center gap-3 text-xs text-text-secondary mb-2",
|
|
268
|
-
children: /* @__PURE__ */
|
|
272
|
+
children: /* @__PURE__ */ w("span", {
|
|
269
273
|
className: "flex items-center gap-1",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
274
|
+
children: [/* @__PURE__ */ C(g, { className: "h-3 w-3" }), e.location?.address?.split(",")[0] || "Unknown"]
|
|
271
275
|
})
|
|
272
276
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ w("div", {
|
|
274
278
|
className: "flex items-center gap-3 text-xs text-text-secondary mb-3",
|
|
275
|
-
children: [e.averageOrderValue && /* @__PURE__ */
|
|
279
|
+
children: [e.averageOrderValue && /* @__PURE__ */ w("span", { children: ["Avg ", o(e.averageOrderValue, { minimumFractionDigits: 0 })] }), /* @__PURE__ */ w("span", {
|
|
276
280
|
className: "flex items-center gap-1",
|
|
277
|
-
children: [/* @__PURE__ */
|
|
281
|
+
children: [/* @__PURE__ */ C(g, { className: "h-3 w-3" }), s(e.distance)]
|
|
278
282
|
})]
|
|
279
283
|
}),
|
|
280
|
-
e.serviceTypes?.includes("appointment") && /* @__PURE__ */
|
|
281
|
-
className: "mb-3 rounded-md bg-blue-
|
|
282
|
-
children: /* @__PURE__ */
|
|
283
|
-
className: "flex items-center gap-1 text-xs text-
|
|
284
|
-
children: [/* @__PURE__ */
|
|
284
|
+
e.serviceTypes?.includes("appointment") && /* @__PURE__ */ C("div", {
|
|
285
|
+
className: "mb-3 rounded-md bg-accent-blue-subtle/10 border border-accent-blue-subtle/20 p-2",
|
|
286
|
+
children: /* @__PURE__ */ w("div", {
|
|
287
|
+
className: "flex items-center gap-1 text-xs text-accent-blue",
|
|
288
|
+
children: [/* @__PURE__ */ C(d, { className: "h-3 w-3" }), /* @__PURE__ */ C("span", {
|
|
285
289
|
className: "font-medium",
|
|
286
290
|
children: "Appointment available"
|
|
287
291
|
})]
|
|
288
292
|
})
|
|
289
293
|
}),
|
|
290
|
-
e.serviceTypes?.includes("direct_service") && /* @__PURE__ */
|
|
291
|
-
className: "mb-3 rounded-md bg-purple-
|
|
292
|
-
children: /* @__PURE__ */
|
|
293
|
-
className: "flex items-center gap-1 text-xs text-
|
|
294
|
-
children: [/* @__PURE__ */
|
|
294
|
+
e.serviceTypes?.includes("direct_service") && /* @__PURE__ */ C("div", {
|
|
295
|
+
className: "mb-3 rounded-md bg-accent-purple-subtle/10 border border-accent-purple-subtle/20 p-2",
|
|
296
|
+
children: /* @__PURE__ */ w("div", {
|
|
297
|
+
className: "flex items-center gap-1 text-xs text-accent-purple",
|
|
298
|
+
children: [/* @__PURE__ */ C(m, { className: "h-3 w-3" }), /* @__PURE__ */ C("span", {
|
|
295
299
|
className: "font-medium",
|
|
296
300
|
children: "Direct Service Available"
|
|
297
301
|
})]
|
|
298
302
|
})
|
|
299
303
|
}),
|
|
300
|
-
e.serviceTypes && e.serviceTypes.length > 0 && /* @__PURE__ */
|
|
304
|
+
e.serviceTypes && e.serviceTypes.length > 0 && /* @__PURE__ */ C("div", {
|
|
301
305
|
className: "flex flex-wrap gap-1 mb-3",
|
|
302
|
-
children: e.serviceTypes.slice(0, 3).map((e) => /* @__PURE__ */
|
|
306
|
+
children: e.serviceTypes.slice(0, 3).map((e) => /* @__PURE__ */ C("span", {
|
|
303
307
|
className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] text-text-secondary",
|
|
304
308
|
children: e.replace(/_/g, " ")
|
|
305
309
|
}, e))
|
|
306
310
|
}),
|
|
307
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ w("div", {
|
|
308
312
|
className: "mt-auto flex gap-2",
|
|
309
313
|
children: [
|
|
310
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ C("button", {
|
|
311
315
|
type: "button",
|
|
312
316
|
onClick: () => D(`/customer/cart/${e.id}`),
|
|
313
317
|
disabled: !e.isOpen,
|
|
314
318
|
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
319
|
children: e.isOpen ? "View Services" : "Closed"
|
|
316
320
|
}),
|
|
317
|
-
e.serviceTypes?.includes("direct_service") && /* @__PURE__ */
|
|
321
|
+
e.serviceTypes?.includes("direct_service") && /* @__PURE__ */ C("button", {
|
|
318
322
|
type: "button",
|
|
319
323
|
onClick: () => D(`/customer/cart/${e.id}`),
|
|
320
324
|
className: "rounded-lg border border-border-subtle px-2 py-2 text-xs text-text-primary hover:bg-accent transition-colors",
|
|
321
325
|
title: "Book Direct Service",
|
|
322
|
-
children: /* @__PURE__ */
|
|
326
|
+
children: /* @__PURE__ */ C(m, { className: "h-3.5 w-3.5" })
|
|
323
327
|
}),
|
|
324
|
-
n && /* @__PURE__ */
|
|
328
|
+
n && /* @__PURE__ */ C("button", {
|
|
325
329
|
type: "button",
|
|
326
330
|
onClick: () => alert("Investment opportunity available! View in Investor section."),
|
|
327
|
-
className: "rounded-lg border border-
|
|
331
|
+
className: "rounded-lg border border-status-success-border/30 bg-status-success-bg-subtle/10 px-2 py-2 text-xs text-status-success-text hover:bg-status-success-bg-subtle/20 transition-colors",
|
|
328
332
|
title: "Investment Opportunity",
|
|
329
|
-
children: /* @__PURE__ */
|
|
333
|
+
children: /* @__PURE__ */ C(b, { className: "h-3.5 w-3.5" })
|
|
330
334
|
}),
|
|
331
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ C("button", {
|
|
332
336
|
type: "button",
|
|
333
337
|
onClick: () => {
|
|
334
338
|
U(e), V(!0);
|
|
335
339
|
},
|
|
336
340
|
className: "rounded-lg border border-border-subtle px-2 py-2 text-xs text-text-primary hover:bg-accent transition-colors",
|
|
337
341
|
title: "Cart Info",
|
|
338
|
-
children: /* @__PURE__ */
|
|
342
|
+
children: /* @__PURE__ */ C(ee, { className: "h-3.5 w-3.5" })
|
|
339
343
|
})
|
|
340
344
|
]
|
|
341
345
|
})
|
|
@@ -343,21 +347,22 @@ function D() {
|
|
|
343
347
|
})]
|
|
344
348
|
}, e.id);
|
|
345
349
|
})
|
|
346
|
-
}), Z && /* @__PURE__ */
|
|
350
|
+
}), Z && /* @__PURE__ */ C("div", {
|
|
347
351
|
className: "mt-8 text-center",
|
|
348
|
-
children: /* @__PURE__ */
|
|
352
|
+
children: /* @__PURE__ */ C("button", {
|
|
349
353
|
type: "button",
|
|
350
354
|
onClick: () => z((e) => e + 9),
|
|
351
355
|
className: "rounded-lg border border-border-subtle px-6 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
352
356
|
children: "Load More Carts"
|
|
353
357
|
})
|
|
354
|
-
})] }) : /* @__PURE__ */
|
|
358
|
+
})] }) : /* @__PURE__ */ C("div", {
|
|
355
359
|
className: "mt-6",
|
|
356
|
-
children: /* @__PURE__ */
|
|
357
|
-
|
|
360
|
+
children: /* @__PURE__ */ C(r, {
|
|
361
|
+
illustration: "empty-search",
|
|
362
|
+
icon: /* @__PURE__ */ C(_, { className: "h-12 w-12" }),
|
|
358
363
|
title: "No carts found",
|
|
359
|
-
description: O ? `No results for
|
|
360
|
-
action: /* @__PURE__ */
|
|
364
|
+
description: O ? `No results for"${O}". Try a different search term.` : "No carts available with these filters.",
|
|
365
|
+
action: /* @__PURE__ */ C("button", {
|
|
361
366
|
type: "button",
|
|
362
367
|
onClick: $,
|
|
363
368
|
className: "rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
@@ -365,48 +370,48 @@ function D() {
|
|
|
365
370
|
})
|
|
366
371
|
})
|
|
367
372
|
}),
|
|
368
|
-
B && H && /* @__PURE__ */
|
|
373
|
+
B && H && /* @__PURE__ */ C("div", {
|
|
369
374
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
370
|
-
children: /* @__PURE__ */
|
|
375
|
+
children: /* @__PURE__ */ C("div", {
|
|
371
376
|
className: "w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-lg border border-border-subtle bg-bg-surface",
|
|
372
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ w("div", {
|
|
373
378
|
className: "p-5",
|
|
374
379
|
children: [
|
|
375
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ w("div", {
|
|
376
381
|
className: "flex items-center justify-between mb-4",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
382
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
378
383
|
className: "text-lg font-semibold text-text-primary",
|
|
379
384
|
children: "Cart Information"
|
|
380
|
-
}), /* @__PURE__ */
|
|
385
|
+
}), /* @__PURE__ */ C("button", {
|
|
381
386
|
type: "button",
|
|
382
387
|
onClick: () => V(!1),
|
|
383
388
|
className: "rounded-md p-1 text-text-secondary hover:text-text-primary transition-colors",
|
|
384
|
-
children: /* @__PURE__ */
|
|
389
|
+
children: /* @__PURE__ */ C(x, { className: "h-5 w-5" })
|
|
385
390
|
})]
|
|
386
391
|
}),
|
|
387
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ C("div", {
|
|
388
393
|
className: "h-48 rounded-lg overflow-hidden mb-4",
|
|
389
|
-
children: /* @__PURE__ */
|
|
394
|
+
children: /* @__PURE__ */ C("img", {
|
|
390
395
|
src: H.image,
|
|
391
396
|
alt: H.name,
|
|
392
397
|
className: "h-full w-full object-cover"
|
|
393
398
|
})
|
|
394
399
|
}),
|
|
395
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ C("h4", {
|
|
396
401
|
className: "text-xl font-semibold text-text-primary mb-1",
|
|
397
402
|
children: H.name
|
|
398
403
|
}),
|
|
399
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ w("div", {
|
|
400
405
|
className: "flex flex-wrap items-center gap-3 mb-4",
|
|
401
|
-
children: [/* @__PURE__ */
|
|
406
|
+
children: [/* @__PURE__ */ w("div", {
|
|
402
407
|
className: "flex items-center gap-1",
|
|
403
408
|
children: [
|
|
404
|
-
/* @__PURE__ */
|
|
405
|
-
/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ C(v, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }),
|
|
410
|
+
/* @__PURE__ */ C("span", {
|
|
406
411
|
className: "text-sm font-medium",
|
|
407
412
|
children: H.rating
|
|
408
413
|
}),
|
|
409
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ w("span", {
|
|
410
415
|
className: "text-xs text-text-secondary",
|
|
411
416
|
children: [
|
|
412
417
|
"(",
|
|
@@ -415,111 +420,111 @@ function D() {
|
|
|
415
420
|
]
|
|
416
421
|
})
|
|
417
422
|
]
|
|
418
|
-
}), /* @__PURE__ */
|
|
419
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", H.isOpen ? "bg-
|
|
423
|
+
}), /* @__PURE__ */ C("span", {
|
|
424
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", H.isOpen ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-status-error-bg-subtle/20 text-status-error-text"),
|
|
420
425
|
children: H.isOpen ? "Open" : "Closed"
|
|
421
426
|
})]
|
|
422
427
|
}),
|
|
423
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ w("div", {
|
|
424
429
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 mb-4",
|
|
425
430
|
children: [
|
|
426
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ w("div", {
|
|
427
432
|
className: "rounded-md bg-bg-sunken p-3",
|
|
428
|
-
children: [/* @__PURE__ */
|
|
433
|
+
children: [/* @__PURE__ */ w("p", {
|
|
429
434
|
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
430
|
-
children: [/* @__PURE__ */
|
|
431
|
-
}), /* @__PURE__ */
|
|
435
|
+
children: [/* @__PURE__ */ C(g, { className: "h-3 w-3" }), " Location"]
|
|
436
|
+
}), /* @__PURE__ */ C("p", {
|
|
432
437
|
className: "mt-1 text-sm text-text-primary",
|
|
433
438
|
children: H.location.address
|
|
434
439
|
})]
|
|
435
440
|
}),
|
|
436
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ w("div", {
|
|
437
442
|
className: "rounded-md bg-bg-sunken p-3",
|
|
438
|
-
children: [/* @__PURE__ */
|
|
443
|
+
children: [/* @__PURE__ */ w("p", {
|
|
439
444
|
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
440
|
-
children: [/* @__PURE__ */
|
|
441
|
-
}), /* @__PURE__ */
|
|
445
|
+
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3" }), " Category"]
|
|
446
|
+
}), /* @__PURE__ */ C("p", {
|
|
442
447
|
className: "mt-1 text-sm text-text-primary",
|
|
443
448
|
children: H.category
|
|
444
449
|
})]
|
|
445
450
|
}),
|
|
446
|
-
H.averageOrderValue && /* @__PURE__ */
|
|
451
|
+
H.averageOrderValue && /* @__PURE__ */ w("div", {
|
|
447
452
|
className: "rounded-md bg-bg-sunken p-3",
|
|
448
|
-
children: [/* @__PURE__ */
|
|
453
|
+
children: [/* @__PURE__ */ C("p", {
|
|
449
454
|
className: "text-xs font-medium text-text-secondary",
|
|
450
455
|
children: "Average Order"
|
|
451
|
-
}), /* @__PURE__ */
|
|
456
|
+
}), /* @__PURE__ */ C("p", {
|
|
452
457
|
className: "mt-1 text-sm text-text-primary",
|
|
453
458
|
children: o(H.averageOrderValue, { minimumFractionDigits: 0 })
|
|
454
459
|
})]
|
|
455
460
|
}),
|
|
456
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ w("div", {
|
|
457
462
|
className: "rounded-md bg-bg-sunken p-3",
|
|
458
|
-
children: [/* @__PURE__ */
|
|
463
|
+
children: [/* @__PURE__ */ w("p", {
|
|
459
464
|
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
460
|
-
children: [/* @__PURE__ */
|
|
461
|
-
}), /* @__PURE__ */
|
|
465
|
+
children: [/* @__PURE__ */ C(p, { className: "h-3 w-3" }), " Estimated Time"]
|
|
466
|
+
}), /* @__PURE__ */ w("p", {
|
|
462
467
|
className: "mt-1 text-sm text-text-primary",
|
|
463
468
|
children: [H.estimatedTime, " minutes"]
|
|
464
469
|
})]
|
|
465
470
|
}),
|
|
466
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ w("div", {
|
|
467
472
|
className: "rounded-md bg-bg-sunken p-3",
|
|
468
|
-
children: [/* @__PURE__ */
|
|
473
|
+
children: [/* @__PURE__ */ C("p", {
|
|
469
474
|
className: "text-xs font-medium text-text-secondary",
|
|
470
475
|
children: "Distance"
|
|
471
|
-
}), /* @__PURE__ */
|
|
476
|
+
}), /* @__PURE__ */ C("p", {
|
|
472
477
|
className: "mt-1 text-sm text-text-primary",
|
|
473
478
|
children: s(H.distance)
|
|
474
479
|
})]
|
|
475
480
|
}),
|
|
476
|
-
H.isVerified && /* @__PURE__ */
|
|
481
|
+
H.isVerified && /* @__PURE__ */ w("div", {
|
|
477
482
|
className: "rounded-md bg-bg-sunken p-3",
|
|
478
|
-
children: [/* @__PURE__ */
|
|
483
|
+
children: [/* @__PURE__ */ w("p", {
|
|
479
484
|
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
480
|
-
children: [/* @__PURE__ */
|
|
481
|
-
}), /* @__PURE__ */
|
|
485
|
+
children: [/* @__PURE__ */ C(f, { className: "h-3 w-3" }), " Verification"]
|
|
486
|
+
}), /* @__PURE__ */ C("p", {
|
|
482
487
|
className: "mt-1 text-sm text-text-primary",
|
|
483
488
|
children: "Verified cart"
|
|
484
489
|
})]
|
|
485
490
|
})
|
|
486
491
|
]
|
|
487
492
|
}),
|
|
488
|
-
H.serviceTypes && H.serviceTypes.length > 0 && /* @__PURE__ */
|
|
493
|
+
H.serviceTypes && H.serviceTypes.length > 0 && /* @__PURE__ */ w("div", {
|
|
489
494
|
className: "mb-4",
|
|
490
|
-
children: [/* @__PURE__ */
|
|
495
|
+
children: [/* @__PURE__ */ C("p", {
|
|
491
496
|
className: "text-xs font-medium text-text-secondary mb-2",
|
|
492
497
|
children: "Service Types"
|
|
493
|
-
}), /* @__PURE__ */
|
|
498
|
+
}), /* @__PURE__ */ C("div", {
|
|
494
499
|
className: "flex flex-wrap gap-2",
|
|
495
|
-
children: H.serviceTypes.map((e) => /* @__PURE__ */
|
|
500
|
+
children: H.serviceTypes.map((e) => /* @__PURE__ */ C("span", {
|
|
496
501
|
className: "rounded-full bg-bg-sunken px-2.5 py-1 text-xs text-text-secondary capitalize",
|
|
497
502
|
children: e.replace(/_/g, " ")
|
|
498
503
|
}, e))
|
|
499
504
|
})]
|
|
500
505
|
}),
|
|
501
|
-
H.businessHours && Object.keys(H.businessHours).length > 0 && /* @__PURE__ */
|
|
506
|
+
H.businessHours && Object.keys(H.businessHours).length > 0 && /* @__PURE__ */ w("div", {
|
|
502
507
|
className: "mb-4",
|
|
503
|
-
children: [/* @__PURE__ */
|
|
508
|
+
children: [/* @__PURE__ */ C("p", {
|
|
504
509
|
className: "text-xs font-medium text-text-secondary mb-2",
|
|
505
510
|
children: "Operating Hours"
|
|
506
|
-
}), /* @__PURE__ */
|
|
511
|
+
}), /* @__PURE__ */ C("div", {
|
|
507
512
|
className: "space-y-1",
|
|
508
|
-
children: Object.entries(H.businessHours).map(([e, t]) => /* @__PURE__ */
|
|
513
|
+
children: Object.entries(H.businessHours).map(([e, t]) => /* @__PURE__ */ w("div", {
|
|
509
514
|
className: "flex justify-between text-xs",
|
|
510
|
-
children: [/* @__PURE__ */
|
|
515
|
+
children: [/* @__PURE__ */ C("span", {
|
|
511
516
|
className: "capitalize text-text-primary",
|
|
512
517
|
children: e
|
|
513
|
-
}), /* @__PURE__ */
|
|
518
|
+
}), /* @__PURE__ */ C("span", {
|
|
514
519
|
className: "text-text-secondary",
|
|
515
520
|
children: t.isOpen ? `${t.open} - ${t.close}` : "Closed"
|
|
516
521
|
})]
|
|
517
522
|
}, e))
|
|
518
523
|
})]
|
|
519
524
|
}),
|
|
520
|
-
/* @__PURE__ */
|
|
525
|
+
/* @__PURE__ */ w("div", {
|
|
521
526
|
className: "flex gap-3 mt-6",
|
|
522
|
-
children: [/* @__PURE__ */
|
|
527
|
+
children: [/* @__PURE__ */ C("button", {
|
|
523
528
|
type: "button",
|
|
524
529
|
onClick: () => {
|
|
525
530
|
V(!1), D(`/customer/carts/${H.id}`);
|
|
@@ -527,7 +532,7 @@ function D() {
|
|
|
527
532
|
disabled: !H.isOpen,
|
|
528
533
|
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
534
|
children: H.isOpen ? "View Menu" : "Currently Closed"
|
|
530
|
-
}), /* @__PURE__ */
|
|
535
|
+
}), /* @__PURE__ */ C("button", {
|
|
531
536
|
type: "button",
|
|
532
537
|
onClick: () => V(!1),
|
|
533
538
|
className: "rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|