@burdenoff/microfe-adaptercloud 2026.625.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/PageLayout.js +24 -17
- package/dist/adaptercloud/components/PageLayout.js.map +1 -1
- package/dist/adaptercloud/pages/HomePage.js +18 -16
- package/dist/adaptercloud/pages/HomePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +90 -82
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +70 -44
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +60 -55
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +97 -92
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +59 -57
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +118 -104
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +145 -140
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +152 -147
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +87 -81
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +179 -165
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +73 -48
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +95 -93
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +110 -107
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +293 -299
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +218 -224
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +122 -128
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +248 -244
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +96 -91
- 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 +63 -61
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +110 -108
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +221 -217
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +89 -87
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +410 -381
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +120 -118
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +86 -81
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +53 -51
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +114 -109
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +60 -58
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +87 -72
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +65 -63
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +68 -53
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +63 -61
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +86 -84
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +57 -55
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +341 -308
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +34 -32
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +48 -46
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +383 -381
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +348 -319
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +84 -59
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +73 -71
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +76 -74
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +70 -68
- 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__ */
|
|
223
|
+
children: [/* @__PURE__ */ C("span", {
|
|
220
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__ */
|
|
226
|
+
}), e.isVerified && /* @__PURE__ */ w("span", {
|
|
223
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",
|
|
224
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
284
|
+
e.serviceTypes?.includes("appointment") && /* @__PURE__ */ C("div", {
|
|
281
285
|
className: "mb-3 rounded-md bg-accent-blue-subtle/10 border border-accent-blue-subtle/20 p-2",
|
|
282
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ w("div", {
|
|
283
287
|
className: "flex items-center gap-1 text-xs text-accent-blue",
|
|
284
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
294
|
+
e.serviceTypes?.includes("direct_service") && /* @__PURE__ */ C("div", {
|
|
291
295
|
className: "mb-3 rounded-md bg-accent-purple-subtle/10 border border-accent-purple-subtle/20 p-2",
|
|
292
|
-
children: /* @__PURE__ */
|
|
296
|
+
children: /* @__PURE__ */ w("div", {
|
|
293
297
|
className: "flex items-center gap-1 text-xs text-accent-purple",
|
|
294
|
-
children: [/* @__PURE__ */
|
|
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
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,22 +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__ */
|
|
360
|
+
children: /* @__PURE__ */ C(r, {
|
|
357
361
|
illustration: "empty-search",
|
|
358
|
-
icon: /* @__PURE__ */
|
|
362
|
+
icon: /* @__PURE__ */ C(_, { className: "h-12 w-12" }),
|
|
359
363
|
title: "No carts found",
|
|
360
364
|
description: O ? `No results for"${O}". Try a different search term.` : "No carts available with these filters.",
|
|
361
|
-
action: /* @__PURE__ */
|
|
365
|
+
action: /* @__PURE__ */ C("button", {
|
|
362
366
|
type: "button",
|
|
363
367
|
onClick: $,
|
|
364
368
|
className: "rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
@@ -366,48 +370,48 @@ function D() {
|
|
|
366
370
|
})
|
|
367
371
|
})
|
|
368
372
|
}),
|
|
369
|
-
B && H && /* @__PURE__ */
|
|
373
|
+
B && H && /* @__PURE__ */ C("div", {
|
|
370
374
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
371
|
-
children: /* @__PURE__ */
|
|
375
|
+
children: /* @__PURE__ */ C("div", {
|
|
372
376
|
className: "w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-lg border border-border-subtle bg-bg-surface",
|
|
373
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ w("div", {
|
|
374
378
|
className: "p-5",
|
|
375
379
|
children: [
|
|
376
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ w("div", {
|
|
377
381
|
className: "flex items-center justify-between mb-4",
|
|
378
|
-
children: [/* @__PURE__ */
|
|
382
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
379
383
|
className: "text-lg font-semibold text-text-primary",
|
|
380
384
|
children: "Cart Information"
|
|
381
|
-
}), /* @__PURE__ */
|
|
385
|
+
}), /* @__PURE__ */ C("button", {
|
|
382
386
|
type: "button",
|
|
383
387
|
onClick: () => V(!1),
|
|
384
388
|
className: "rounded-md p-1 text-text-secondary hover:text-text-primary transition-colors",
|
|
385
|
-
children: /* @__PURE__ */
|
|
389
|
+
children: /* @__PURE__ */ C(x, { className: "h-5 w-5" })
|
|
386
390
|
})]
|
|
387
391
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ C("div", {
|
|
389
393
|
className: "h-48 rounded-lg overflow-hidden mb-4",
|
|
390
|
-
children: /* @__PURE__ */
|
|
394
|
+
children: /* @__PURE__ */ C("img", {
|
|
391
395
|
src: H.image,
|
|
392
396
|
alt: H.name,
|
|
393
397
|
className: "h-full w-full object-cover"
|
|
394
398
|
})
|
|
395
399
|
}),
|
|
396
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ C("h4", {
|
|
397
401
|
className: "text-xl font-semibold text-text-primary mb-1",
|
|
398
402
|
children: H.name
|
|
399
403
|
}),
|
|
400
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ w("div", {
|
|
401
405
|
className: "flex flex-wrap items-center gap-3 mb-4",
|
|
402
|
-
children: [/* @__PURE__ */
|
|
406
|
+
children: [/* @__PURE__ */ w("div", {
|
|
403
407
|
className: "flex items-center gap-1",
|
|
404
408
|
children: [
|
|
405
|
-
/* @__PURE__ */
|
|
406
|
-
/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ C(v, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }),
|
|
410
|
+
/* @__PURE__ */ C("span", {
|
|
407
411
|
className: "text-sm font-medium",
|
|
408
412
|
children: H.rating
|
|
409
413
|
}),
|
|
410
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ w("span", {
|
|
411
415
|
className: "text-xs text-text-secondary",
|
|
412
416
|
children: [
|
|
413
417
|
"(",
|
|
@@ -416,111 +420,111 @@ function D() {
|
|
|
416
420
|
]
|
|
417
421
|
})
|
|
418
422
|
]
|
|
419
|
-
}), /* @__PURE__ */
|
|
423
|
+
}), /* @__PURE__ */ C("span", {
|
|
420
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"),
|
|
421
425
|
children: H.isOpen ? "Open" : "Closed"
|
|
422
426
|
})]
|
|
423
427
|
}),
|
|
424
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ w("div", {
|
|
425
429
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 mb-4",
|
|
426
430
|
children: [
|
|
427
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ w("div", {
|
|
428
432
|
className: "rounded-md bg-bg-sunken p-3",
|
|
429
|
-
children: [/* @__PURE__ */
|
|
433
|
+
children: [/* @__PURE__ */ w("p", {
|
|
430
434
|
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
431
|
-
children: [/* @__PURE__ */
|
|
432
|
-
}), /* @__PURE__ */
|
|
435
|
+
children: [/* @__PURE__ */ C(g, { className: "h-3 w-3" }), " Location"]
|
|
436
|
+
}), /* @__PURE__ */ C("p", {
|
|
433
437
|
className: "mt-1 text-sm text-text-primary",
|
|
434
438
|
children: H.location.address
|
|
435
439
|
})]
|
|
436
440
|
}),
|
|
437
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ w("div", {
|
|
438
442
|
className: "rounded-md bg-bg-sunken p-3",
|
|
439
|
-
children: [/* @__PURE__ */
|
|
443
|
+
children: [/* @__PURE__ */ w("p", {
|
|
440
444
|
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
441
|
-
children: [/* @__PURE__ */
|
|
442
|
-
}), /* @__PURE__ */
|
|
445
|
+
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3" }), " Category"]
|
|
446
|
+
}), /* @__PURE__ */ C("p", {
|
|
443
447
|
className: "mt-1 text-sm text-text-primary",
|
|
444
448
|
children: H.category
|
|
445
449
|
})]
|
|
446
450
|
}),
|
|
447
|
-
H.averageOrderValue && /* @__PURE__ */
|
|
451
|
+
H.averageOrderValue && /* @__PURE__ */ w("div", {
|
|
448
452
|
className: "rounded-md bg-bg-sunken p-3",
|
|
449
|
-
children: [/* @__PURE__ */
|
|
453
|
+
children: [/* @__PURE__ */ C("p", {
|
|
450
454
|
className: "text-xs font-medium text-text-secondary",
|
|
451
455
|
children: "Average Order"
|
|
452
|
-
}), /* @__PURE__ */
|
|
456
|
+
}), /* @__PURE__ */ C("p", {
|
|
453
457
|
className: "mt-1 text-sm text-text-primary",
|
|
454
458
|
children: o(H.averageOrderValue, { minimumFractionDigits: 0 })
|
|
455
459
|
})]
|
|
456
460
|
}),
|
|
457
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ w("div", {
|
|
458
462
|
className: "rounded-md bg-bg-sunken p-3",
|
|
459
|
-
children: [/* @__PURE__ */
|
|
463
|
+
children: [/* @__PURE__ */ w("p", {
|
|
460
464
|
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
461
|
-
children: [/* @__PURE__ */
|
|
462
|
-
}), /* @__PURE__ */
|
|
465
|
+
children: [/* @__PURE__ */ C(p, { className: "h-3 w-3" }), " Estimated Time"]
|
|
466
|
+
}), /* @__PURE__ */ w("p", {
|
|
463
467
|
className: "mt-1 text-sm text-text-primary",
|
|
464
468
|
children: [H.estimatedTime, " minutes"]
|
|
465
469
|
})]
|
|
466
470
|
}),
|
|
467
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ w("div", {
|
|
468
472
|
className: "rounded-md bg-bg-sunken p-3",
|
|
469
|
-
children: [/* @__PURE__ */
|
|
473
|
+
children: [/* @__PURE__ */ C("p", {
|
|
470
474
|
className: "text-xs font-medium text-text-secondary",
|
|
471
475
|
children: "Distance"
|
|
472
|
-
}), /* @__PURE__ */
|
|
476
|
+
}), /* @__PURE__ */ C("p", {
|
|
473
477
|
className: "mt-1 text-sm text-text-primary",
|
|
474
478
|
children: s(H.distance)
|
|
475
479
|
})]
|
|
476
480
|
}),
|
|
477
|
-
H.isVerified && /* @__PURE__ */
|
|
481
|
+
H.isVerified && /* @__PURE__ */ w("div", {
|
|
478
482
|
className: "rounded-md bg-bg-sunken p-3",
|
|
479
|
-
children: [/* @__PURE__ */
|
|
483
|
+
children: [/* @__PURE__ */ w("p", {
|
|
480
484
|
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
481
|
-
children: [/* @__PURE__ */
|
|
482
|
-
}), /* @__PURE__ */
|
|
485
|
+
children: [/* @__PURE__ */ C(f, { className: "h-3 w-3" }), " Verification"]
|
|
486
|
+
}), /* @__PURE__ */ C("p", {
|
|
483
487
|
className: "mt-1 text-sm text-text-primary",
|
|
484
488
|
children: "Verified cart"
|
|
485
489
|
})]
|
|
486
490
|
})
|
|
487
491
|
]
|
|
488
492
|
}),
|
|
489
|
-
H.serviceTypes && H.serviceTypes.length > 0 && /* @__PURE__ */
|
|
493
|
+
H.serviceTypes && H.serviceTypes.length > 0 && /* @__PURE__ */ w("div", {
|
|
490
494
|
className: "mb-4",
|
|
491
|
-
children: [/* @__PURE__ */
|
|
495
|
+
children: [/* @__PURE__ */ C("p", {
|
|
492
496
|
className: "text-xs font-medium text-text-secondary mb-2",
|
|
493
497
|
children: "Service Types"
|
|
494
|
-
}), /* @__PURE__ */
|
|
498
|
+
}), /* @__PURE__ */ C("div", {
|
|
495
499
|
className: "flex flex-wrap gap-2",
|
|
496
|
-
children: H.serviceTypes.map((e) => /* @__PURE__ */
|
|
500
|
+
children: H.serviceTypes.map((e) => /* @__PURE__ */ C("span", {
|
|
497
501
|
className: "rounded-full bg-bg-sunken px-2.5 py-1 text-xs text-text-secondary capitalize",
|
|
498
502
|
children: e.replace(/_/g, " ")
|
|
499
503
|
}, e))
|
|
500
504
|
})]
|
|
501
505
|
}),
|
|
502
|
-
H.businessHours && Object.keys(H.businessHours).length > 0 && /* @__PURE__ */
|
|
506
|
+
H.businessHours && Object.keys(H.businessHours).length > 0 && /* @__PURE__ */ w("div", {
|
|
503
507
|
className: "mb-4",
|
|
504
|
-
children: [/* @__PURE__ */
|
|
508
|
+
children: [/* @__PURE__ */ C("p", {
|
|
505
509
|
className: "text-xs font-medium text-text-secondary mb-2",
|
|
506
510
|
children: "Operating Hours"
|
|
507
|
-
}), /* @__PURE__ */
|
|
511
|
+
}), /* @__PURE__ */ C("div", {
|
|
508
512
|
className: "space-y-1",
|
|
509
|
-
children: Object.entries(H.businessHours).map(([e, t]) => /* @__PURE__ */
|
|
513
|
+
children: Object.entries(H.businessHours).map(([e, t]) => /* @__PURE__ */ w("div", {
|
|
510
514
|
className: "flex justify-between text-xs",
|
|
511
|
-
children: [/* @__PURE__ */
|
|
515
|
+
children: [/* @__PURE__ */ C("span", {
|
|
512
516
|
className: "capitalize text-text-primary",
|
|
513
517
|
children: e
|
|
514
|
-
}), /* @__PURE__ */
|
|
518
|
+
}), /* @__PURE__ */ C("span", {
|
|
515
519
|
className: "text-text-secondary",
|
|
516
520
|
children: t.isOpen ? `${t.open} - ${t.close}` : "Closed"
|
|
517
521
|
})]
|
|
518
522
|
}, e))
|
|
519
523
|
})]
|
|
520
524
|
}),
|
|
521
|
-
/* @__PURE__ */
|
|
525
|
+
/* @__PURE__ */ w("div", {
|
|
522
526
|
className: "flex gap-3 mt-6",
|
|
523
|
-
children: [/* @__PURE__ */
|
|
527
|
+
children: [/* @__PURE__ */ C("button", {
|
|
524
528
|
type: "button",
|
|
525
529
|
onClick: () => {
|
|
526
530
|
V(!1), D(`/customer/carts/${H.id}`);
|
|
@@ -528,7 +532,7 @@ function D() {
|
|
|
528
532
|
disabled: !H.isOpen,
|
|
529
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"),
|
|
530
534
|
children: H.isOpen ? "View Menu" : "Currently Closed"
|
|
531
|
-
}), /* @__PURE__ */
|
|
535
|
+
}), /* @__PURE__ */ C("button", {
|
|
532
536
|
type: "button",
|
|
533
537
|
onClick: () => V(!1),
|
|
534
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",
|