@burdenoff/microfe-labsofscience 2026.624.1 → 2026.626.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/labsofscience/components/EmptyState.js +18 -11
- package/dist/labsofscience/components/EmptyState.js.map +1 -1
- package/dist/labsofscience/components/InvestmentCard.js +26 -24
- package/dist/labsofscience/components/InvestmentCard.js.map +1 -1
- package/dist/labsofscience/components/MetricsCard.js +19 -13
- package/dist/labsofscience/components/MetricsCard.js.map +1 -1
- package/dist/labsofscience/components/PageLayout.js +23 -15
- package/dist/labsofscience/components/PageLayout.js.map +1 -1
- package/dist/labsofscience/components/RatingDisplay.js +1 -1
- package/dist/labsofscience/components/RatingDisplay.js.map +1 -1
- package/dist/labsofscience/components/StatusBadge.js +34 -15
- package/dist/labsofscience/components/StatusBadge.js.map +1 -1
- package/dist/labsofscience/pages/HomePage.js +242 -223
- package/dist/labsofscience/pages/HomePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +107 -101
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminDashboard.js +118 -85
- package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js +51 -45
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js +245 -240
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminProfilePage.js +131 -129
- package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js +493 -491
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/CartManagementPage.js +163 -158
- package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/UserManagementPage.js +307 -302
- package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +89 -84
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +187 -182
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +119 -88
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +149 -144
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +151 -146
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +344 -346
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +269 -271
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +293 -287
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/common/HelpSupportPage.js +344 -345
- package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/labsofscience/pages/common/NotificationCenterPage.js +94 -87
- package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/labsofscience/pages/common/SettingsPage.js +748 -739
- package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js +400 -356
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDetailPage.js +281 -248
- package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +178 -166
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CheckoutPage.js +236 -238
- package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerDashboard.js +425 -390
- package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +522 -512
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/FavoritesPage.js +73 -66
- package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js +74 -67
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js +311 -274
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +100 -93
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/ReviewsPage.js +96 -89
- package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js +85 -78
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +135 -103
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +267 -260
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +97 -91
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorDashboard.js +346 -310
- package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +118 -111
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +75 -69
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js +434 -429
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js +364 -323
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerDashboard.js +132 -101
- package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +114 -108
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js +124 -119
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +354 -344
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -2,15 +2,16 @@ import { useLabsOfScience as e } from "../../context/LabsOfScienceContext.js";
|
|
|
2
2
|
import { cn as t } from "../../utils/cn.js";
|
|
3
3
|
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
4
|
import { EmptyState as r } from "../../components/EmptyState.js";
|
|
5
|
-
import { useInvestmentOpportunities as i, useOfferings as
|
|
6
|
-
import { formatCurrency as
|
|
7
|
-
import { useMemo as
|
|
8
|
-
import { ArrowLeft as
|
|
9
|
-
import { useParams as
|
|
10
|
-
import { Fragment as
|
|
5
|
+
import { useInvestmentOpportunities as i, useOfferings as ee, useProviders as a } from "../../hooks/useLabsOfScienceApi.js";
|
|
6
|
+
import { formatCurrency as o, formatDistance as s, formatDuration as c } from "../../utils/formatters.js";
|
|
7
|
+
import { useMemo as l, useState as u } from "react";
|
|
8
|
+
import { ArrowLeft as d, Calendar as f, CheckCircle2 as p, Clock as m, Flame as h, Home as g, Leaf as _, MapPin as v, Minus as y, Plus as b, Search as x, ShoppingCart as S, Star as C, TrendingUp as te, X as w } from "lucide-react";
|
|
9
|
+
import { useParams as T } from "react-router-dom";
|
|
10
|
+
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
11
|
+
import { EmphasisPanel as k, NextSteps as A, PagePurpose as j } from "@burdenoff/fe-libs/ui";
|
|
11
12
|
//#region src/labsofscience/pages/customer/CartDetailPage.tsx
|
|
12
|
-
function
|
|
13
|
-
let { cartId:
|
|
13
|
+
function M() {
|
|
14
|
+
let { cartId: M } = T(), { navigateTo: N } = e(), { data: P = [], isLoading: ne } = a(), { data: F = [], isLoading: re } = ee(M), { data: I = [], isLoading: ie } = i(), L = l(() => P.find((e) => e.id === M), [P, M]), R = l(() => I.find((e) => e.cartId === M), [I, M]), [z, B] = u(""), [V, H] = u(""), [U, W] = u([]), [G, K] = u(!1), [q, J] = u(null), Y = l(() => F.map((e) => ({
|
|
14
15
|
id: e.id,
|
|
15
16
|
name: e.name,
|
|
16
17
|
price: e.price,
|
|
@@ -20,24 +21,24 @@ function A() {
|
|
|
20
21
|
isVeg: !0,
|
|
21
22
|
duration: e.durationMinutes,
|
|
22
23
|
serviceType: e.serviceType
|
|
23
|
-
})), [
|
|
24
|
-
let e =
|
|
25
|
-
if (
|
|
26
|
-
let t =
|
|
24
|
+
})), [F]), X = l(() => [...new Set(Y.map((e) => e.category))], [Y]), Z = l(() => {
|
|
25
|
+
let e = Y;
|
|
26
|
+
if (V && (e = e.filter((e) => e.category === V)), z.trim()) {
|
|
27
|
+
let t = z.toLowerCase();
|
|
27
28
|
e = e.filter((e) => e.name.toLowerCase().includes(t) || e.description.toLowerCase().includes(t));
|
|
28
29
|
}
|
|
29
30
|
return e;
|
|
30
31
|
}, [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
]),
|
|
32
|
+
Y,
|
|
33
|
+
V,
|
|
34
|
+
z
|
|
35
|
+
]), ae = l(() => {
|
|
35
36
|
let e = {};
|
|
36
|
-
return
|
|
37
|
+
return Z.forEach((t) => {
|
|
37
38
|
e[t.category] || (e[t.category] = []), e[t.category].push(t);
|
|
38
39
|
}), e;
|
|
39
|
-
}, [
|
|
40
|
-
|
|
40
|
+
}, [Z]), oe = (e, t = 1, n) => {
|
|
41
|
+
W((r) => r.find((t) => t.productId === e.id) ? r.map((n) => n.productId === e.id ? {
|
|
41
42
|
...n,
|
|
42
43
|
quantity: n.quantity + t
|
|
43
44
|
} : n) : [...r, {
|
|
@@ -49,64 +50,97 @@ function A() {
|
|
|
49
50
|
specialInstructions: n
|
|
50
51
|
}]);
|
|
51
52
|
}, Q = (e, t) => {
|
|
52
|
-
|
|
53
|
+
W((n) => n.map((n) => n.productId === e ? {
|
|
53
54
|
...n,
|
|
54
55
|
quantity: Math.max(0, n.quantity + t)
|
|
55
56
|
} : n).filter((e) => e.quantity > 0));
|
|
56
57
|
}, $ = (e) => {
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
|
|
58
|
+
W((t) => t.filter((t) => t.productId !== e));
|
|
59
|
+
}, se = (e) => U.find((t) => t.productId === e)?.quantity ?? 0, ce = U.reduce((e, t) => e + t.price * t.quantity, 0), le = U.reduce((e, t) => e + t.quantity, 0), ue = (e) => {
|
|
60
|
+
J({
|
|
60
61
|
product: e,
|
|
61
62
|
quantity: 1,
|
|
62
63
|
specialInstructions: ""
|
|
63
|
-
}),
|
|
64
|
+
}), K(!0);
|
|
65
|
+
}, de = () => {
|
|
66
|
+
q && (oe(q.product, q.quantity, q.specialInstructions), K(!1), J(null), alert(`${q.product.name} added to cart`));
|
|
64
67
|
};
|
|
65
|
-
return
|
|
66
|
-
title: /* @__PURE__ */
|
|
68
|
+
return L ? /* @__PURE__ */ O(n, {
|
|
69
|
+
title: /* @__PURE__ */ O("div", {
|
|
67
70
|
className: "flex items-center gap-3",
|
|
68
71
|
children: [
|
|
69
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ D("button", {
|
|
70
73
|
type: "button",
|
|
71
|
-
onClick: () =>
|
|
74
|
+
onClick: () => N("/customer/carts"),
|
|
72
75
|
className: "rounded-md p-1 text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
|
|
73
|
-
children: /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ D(d, { className: "h-5 w-5" })
|
|
74
77
|
}),
|
|
75
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ D("span", {
|
|
76
79
|
className: "truncate",
|
|
77
|
-
children:
|
|
80
|
+
children: L.name
|
|
78
81
|
}),
|
|
79
|
-
|
|
82
|
+
L.isVerified && /* @__PURE__ */ D(p, { className: "h-5 w-5 text-status-info-text shrink-0" })
|
|
80
83
|
]
|
|
81
84
|
}),
|
|
82
|
-
description:
|
|
85
|
+
description: L.category,
|
|
83
86
|
children: [
|
|
84
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ D(j, {
|
|
88
|
+
icon: /* @__PURE__ */ D(S, { className: "h-4 w-4" }),
|
|
89
|
+
className: "mb-6",
|
|
90
|
+
children: "Browse everything this cart offers and build your order. Search the menu, filter by category, customise items and quantities, then review your order in the panel on the right and head to checkout — you can also book a direct service or explore investing in the cart."
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ D(A, {
|
|
93
|
+
storageKey: "labsofscience-cart-detail",
|
|
94
|
+
steps: [
|
|
95
|
+
{
|
|
96
|
+
id: "browse",
|
|
97
|
+
label: "Add items to your order",
|
|
98
|
+
description: "Tap Add on any menu item to start your cart.",
|
|
99
|
+
icon: /* @__PURE__ */ D(b, { className: "h-4 w-4" }),
|
|
100
|
+
onClick: () => document.getElementById("labsofscience-menu")?.scrollIntoView({ behavior: "smooth" })
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: "checkout",
|
|
104
|
+
label: "Proceed to checkout",
|
|
105
|
+
description: "Review your order and place it once you’re ready.",
|
|
106
|
+
icon: /* @__PURE__ */ D(S, { className: "h-4 w-4" }),
|
|
107
|
+
onClick: () => N("/customer/checkout")
|
|
108
|
+
},
|
|
109
|
+
...L.serviceTypes?.includes("direct_service") ? [{
|
|
110
|
+
id: "direct",
|
|
111
|
+
label: "Book a direct service",
|
|
112
|
+
description: "Have this cart come to your location.",
|
|
113
|
+
icon: /* @__PURE__ */ D(g, { className: "h-4 w-4" }),
|
|
114
|
+
onClick: () => N(`/customer/carts/${L.id}`)
|
|
115
|
+
}] : []
|
|
116
|
+
]
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ O("div", {
|
|
85
119
|
className: "relative h-48 rounded-lg bg-bg-sunken overflow-hidden",
|
|
86
|
-
children: [/* @__PURE__ */
|
|
87
|
-
src:
|
|
88
|
-
alt:
|
|
120
|
+
children: [/* @__PURE__ */ D("img", {
|
|
121
|
+
src: L.image,
|
|
122
|
+
alt: L.name,
|
|
89
123
|
className: "h-full w-full object-cover"
|
|
90
|
-
}), /* @__PURE__ */
|
|
124
|
+
}), /* @__PURE__ */ D("div", {
|
|
91
125
|
className: "absolute bottom-0 inset-x-0 bg-gradient-to-t from-black/60 to-transparent p-4",
|
|
92
|
-
children: /* @__PURE__ */
|
|
126
|
+
children: /* @__PURE__ */ O("div", {
|
|
93
127
|
className: "flex items-center gap-3",
|
|
94
|
-
children: [/* @__PURE__ */
|
|
95
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",
|
|
96
|
-
children:
|
|
97
|
-
}), /* @__PURE__ */
|
|
128
|
+
children: [/* @__PURE__ */ D("span", {
|
|
129
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", L.isOpen ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg-subtle text-status-error-text"),
|
|
130
|
+
children: L.isOpen ? "Open Now" : "Closed"
|
|
131
|
+
}), /* @__PURE__ */ O("div", {
|
|
98
132
|
className: "flex items-center gap-1 text-white text-sm",
|
|
99
133
|
children: [
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ D(C, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }),
|
|
135
|
+
/* @__PURE__ */ D("span", {
|
|
102
136
|
className: "font-medium",
|
|
103
|
-
children:
|
|
137
|
+
children: L.rating
|
|
104
138
|
}),
|
|
105
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ O("span", {
|
|
106
140
|
className: "text-white/70",
|
|
107
141
|
children: [
|
|
108
142
|
"(",
|
|
109
|
-
|
|
143
|
+
L.totalRatings,
|
|
110
144
|
")"
|
|
111
145
|
]
|
|
112
146
|
})
|
|
@@ -115,238 +149,238 @@ function A() {
|
|
|
115
149
|
})
|
|
116
150
|
})]
|
|
117
151
|
}),
|
|
118
|
-
!
|
|
119
|
-
className: "mt-4 rounded-lg border border-
|
|
120
|
-
children: /* @__PURE__ */
|
|
121
|
-
className: "text-sm text-
|
|
122
|
-
children: [/* @__PURE__ */
|
|
152
|
+
!L.isOpen && /* @__PURE__ */ D("div", {
|
|
153
|
+
className: "mt-4 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3",
|
|
154
|
+
children: /* @__PURE__ */ O("p", {
|
|
155
|
+
className: "text-sm text-status-warning-text",
|
|
156
|
+
children: [/* @__PURE__ */ D("strong", { children: "This cart is currently closed." }), " You can browse the offerings but orders are not being accepted."]
|
|
123
157
|
})
|
|
124
158
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ O("div", {
|
|
126
160
|
className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-3",
|
|
127
161
|
children: [
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
className: "rounded-lg border border-border-
|
|
162
|
+
/* @__PURE__ */ O("div", {
|
|
163
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3",
|
|
130
164
|
children: [
|
|
131
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ O("div", {
|
|
132
166
|
className: "flex items-center gap-2 text-text-secondary text-xs mb-1",
|
|
133
|
-
children: [/* @__PURE__ */
|
|
167
|
+
children: [/* @__PURE__ */ D(v, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ D("span", {
|
|
134
168
|
className: "font-medium uppercase tracking-wider",
|
|
135
169
|
children: "Location"
|
|
136
170
|
})]
|
|
137
171
|
}),
|
|
138
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ D("p", {
|
|
139
173
|
className: "text-sm text-text-primary",
|
|
140
|
-
children:
|
|
174
|
+
children: L.location.address
|
|
141
175
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ O("p", {
|
|
143
177
|
className: "text-xs text-text-secondary",
|
|
144
|
-
children: [
|
|
178
|
+
children: [s(L.distance), " away"]
|
|
145
179
|
})
|
|
146
180
|
]
|
|
147
181
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
className: "rounded-lg border border-border-
|
|
182
|
+
/* @__PURE__ */ O("div", {
|
|
183
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3",
|
|
150
184
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ O("div", {
|
|
152
186
|
className: "flex items-center gap-2 text-text-secondary text-xs mb-1",
|
|
153
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ D(m, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ D("span", {
|
|
154
188
|
className: "font-medium uppercase tracking-wider",
|
|
155
189
|
children: "Estimated Time"
|
|
156
190
|
})]
|
|
157
191
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ D("p", {
|
|
159
193
|
className: "text-sm text-text-primary",
|
|
160
|
-
children:
|
|
194
|
+
children: c(L.estimatedTime)
|
|
161
195
|
}),
|
|
162
|
-
|
|
196
|
+
L.averageOrderValue && /* @__PURE__ */ O("p", {
|
|
163
197
|
className: "text-xs text-text-secondary",
|
|
164
|
-
children: ["Avg ",
|
|
198
|
+
children: ["Avg ", o(L.averageOrderValue, { minimumFractionDigits: 0 })]
|
|
165
199
|
})
|
|
166
200
|
]
|
|
167
201
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
className: "rounded-lg border border-border-
|
|
202
|
+
/* @__PURE__ */ O("div", {
|
|
203
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3",
|
|
170
204
|
children: [
|
|
171
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ O("div", {
|
|
172
206
|
className: "flex items-center gap-2 text-text-secondary text-xs mb-1",
|
|
173
|
-
children: [/* @__PURE__ */
|
|
207
|
+
children: [/* @__PURE__ */ D(C, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ D("span", {
|
|
174
208
|
className: "font-medium uppercase tracking-wider",
|
|
175
209
|
children: "Rating"
|
|
176
210
|
})]
|
|
177
211
|
}),
|
|
178
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ O("p", {
|
|
179
213
|
className: "text-sm text-text-primary",
|
|
180
|
-
children: [
|
|
214
|
+
children: [L.rating, " / 5.0"]
|
|
181
215
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ O("p", {
|
|
183
217
|
className: "text-xs text-text-secondary",
|
|
184
|
-
children: [
|
|
218
|
+
children: [L.totalRatings, " reviews"]
|
|
185
219
|
})
|
|
186
220
|
]
|
|
187
221
|
})
|
|
188
222
|
]
|
|
189
223
|
}),
|
|
190
|
-
|
|
224
|
+
L.businessHours && Object.keys(L.businessHours).length > 0 && /* @__PURE__ */ O("section", {
|
|
191
225
|
className: "mt-6",
|
|
192
|
-
children: [/* @__PURE__ */
|
|
226
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
193
227
|
className: "text-base font-semibold text-text-primary mb-2",
|
|
194
228
|
children: "Operating Hours"
|
|
195
|
-
}), /* @__PURE__ */
|
|
196
|
-
className: "rounded-lg border border-border-
|
|
197
|
-
children: Object.entries(
|
|
198
|
-
className: "flex items-center justify-between px-4 py-2 border-b border-border-
|
|
199
|
-
children: [/* @__PURE__ */
|
|
229
|
+
}), /* @__PURE__ */ D("div", {
|
|
230
|
+
className: "rounded-lg border border-border-seam bg-bg-surface overflow-hidden",
|
|
231
|
+
children: Object.entries(L.businessHours).map(([e, t]) => /* @__PURE__ */ O("div", {
|
|
232
|
+
className: "flex items-center justify-between px-4 py-2 border-b border-border-seam last:border-b-0",
|
|
233
|
+
children: [/* @__PURE__ */ D("span", {
|
|
200
234
|
className: "text-sm font-medium text-text-primary capitalize",
|
|
201
235
|
children: e
|
|
202
|
-
}), t.isOpen ? /* @__PURE__ */
|
|
236
|
+
}), t.isOpen ? /* @__PURE__ */ O("span", {
|
|
203
237
|
className: "text-sm text-text-secondary",
|
|
204
238
|
children: [
|
|
205
239
|
t.open,
|
|
206
240
|
" - ",
|
|
207
241
|
t.close
|
|
208
242
|
]
|
|
209
|
-
}) : /* @__PURE__ */
|
|
243
|
+
}) : /* @__PURE__ */ D("span", {
|
|
210
244
|
className: "text-sm text-status-error-text",
|
|
211
245
|
children: "Closed"
|
|
212
246
|
})]
|
|
213
247
|
}, e))
|
|
214
248
|
})]
|
|
215
249
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ O("div", {
|
|
217
251
|
className: "mt-6 grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
218
|
-
children: [/* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ O("div", {
|
|
219
253
|
className: "lg:col-span-2",
|
|
220
254
|
children: [
|
|
221
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ O("div", {
|
|
222
256
|
className: "flex flex-col gap-3 sm:flex-row mb-4",
|
|
223
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ O("div", {
|
|
224
258
|
className: "relative flex-1",
|
|
225
|
-
children: [/* @__PURE__ */
|
|
259
|
+
children: [/* @__PURE__ */ D(x, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ D("input", {
|
|
226
260
|
type: "text",
|
|
227
261
|
placeholder: "Search offerings...",
|
|
228
|
-
value:
|
|
229
|
-
onChange: (e) =>
|
|
230
|
-
className: "w-full rounded-lg border border-border-
|
|
262
|
+
value: z,
|
|
263
|
+
onChange: (e) => B(e.target.value),
|
|
264
|
+
className: "w-full rounded-lg border border-border-seam bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
231
265
|
})]
|
|
232
|
-
}), /* @__PURE__ */
|
|
233
|
-
value:
|
|
234
|
-
onChange: (e) =>
|
|
235
|
-
className: "rounded-lg border border-border-
|
|
236
|
-
children: [/* @__PURE__ */
|
|
266
|
+
}), /* @__PURE__ */ O("select", {
|
|
267
|
+
value: V,
|
|
268
|
+
onChange: (e) => H(e.target.value),
|
|
269
|
+
className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
270
|
+
children: [/* @__PURE__ */ D("option", {
|
|
237
271
|
value: "",
|
|
238
272
|
children: "All Categories"
|
|
239
|
-
}),
|
|
273
|
+
}), X.map((e) => /* @__PURE__ */ D("option", {
|
|
240
274
|
value: e,
|
|
241
275
|
children: e
|
|
242
276
|
}, e))]
|
|
243
277
|
})]
|
|
244
278
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ O("h2", {
|
|
280
|
+
id: "labsofscience-menu",
|
|
246
281
|
className: "text-lg font-semibold text-text-primary mb-3",
|
|
247
282
|
children: [
|
|
248
283
|
"Menu & Services (",
|
|
249
|
-
|
|
284
|
+
Z.length,
|
|
250
285
|
")"
|
|
251
286
|
]
|
|
252
287
|
}),
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}) : /* @__PURE__ */ O("div", {
|
|
288
|
+
Z.length === 0 ? /* @__PURE__ */ D(r, {
|
|
289
|
+
illustration: z || V ? "empty-search" : "empty-data",
|
|
290
|
+
icon: /* @__PURE__ */ D(x, { className: "h-12 w-12" }),
|
|
291
|
+
title: "No offerings found",
|
|
292
|
+
description: z || V ? "Try a different search term or category filter." : "This cart has not listed any offerings yet."
|
|
293
|
+
}) : /* @__PURE__ */ D("div", {
|
|
260
294
|
className: "space-y-6",
|
|
261
|
-
children: Object.entries(
|
|
295
|
+
children: Object.entries(ae).map(([e, n]) => /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h3", {
|
|
262
296
|
className: "text-sm font-semibold text-text-primary mb-2 px-1",
|
|
263
297
|
children: e
|
|
264
|
-
}), /* @__PURE__ */
|
|
298
|
+
}), /* @__PURE__ */ D("div", {
|
|
265
299
|
className: "space-y-2",
|
|
266
300
|
children: n.map((e) => {
|
|
267
|
-
let n =
|
|
268
|
-
return /* @__PURE__ */
|
|
269
|
-
className: "flex gap-4 rounded-lg border border-border-
|
|
270
|
-
children: [/* @__PURE__ */
|
|
301
|
+
let n = se(e.id);
|
|
302
|
+
return /* @__PURE__ */ O("div", {
|
|
303
|
+
className: "flex gap-4 rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
304
|
+
children: [/* @__PURE__ */ D("div", {
|
|
271
305
|
className: "h-20 w-20 shrink-0 rounded-md bg-bg-sunken overflow-hidden",
|
|
272
|
-
children: /* @__PURE__ */
|
|
306
|
+
children: /* @__PURE__ */ D("img", {
|
|
273
307
|
src: e.image,
|
|
274
308
|
alt: e.name,
|
|
275
309
|
className: "h-full w-full object-cover"
|
|
276
310
|
})
|
|
277
|
-
}), /* @__PURE__ */
|
|
311
|
+
}), /* @__PURE__ */ O("div", {
|
|
278
312
|
className: "flex-1 min-w-0",
|
|
279
313
|
children: [
|
|
280
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ O("div", {
|
|
281
315
|
className: "flex items-start justify-between gap-2",
|
|
282
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ O("div", {
|
|
283
317
|
className: "flex items-center gap-2",
|
|
284
|
-
children: [/* @__PURE__ */
|
|
318
|
+
children: [/* @__PURE__ */ D("h4", {
|
|
285
319
|
className: "text-sm font-semibold text-text-primary",
|
|
286
320
|
children: e.name
|
|
287
|
-
}), e.isVeg && /* @__PURE__ */
|
|
288
|
-
}), /* @__PURE__ */
|
|
321
|
+
}), e.isVeg && /* @__PURE__ */ D(_, { className: "h-3.5 w-3.5 text-status-success-text" })]
|
|
322
|
+
}), /* @__PURE__ */ D("p", {
|
|
289
323
|
className: "text-xs text-text-secondary mt-0.5",
|
|
290
324
|
children: e.category
|
|
291
|
-
})] }), /* @__PURE__ */
|
|
325
|
+
})] }), /* @__PURE__ */ D("span", {
|
|
292
326
|
className: "text-sm font-bold text-text-primary whitespace-nowrap",
|
|
293
|
-
children:
|
|
327
|
+
children: o(e.price, { minimumFractionDigits: 0 })
|
|
294
328
|
})]
|
|
295
329
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ D("p", {
|
|
297
331
|
className: "mt-1 text-xs text-text-secondary line-clamp-2",
|
|
298
332
|
children: e.description
|
|
299
333
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ O("div", {
|
|
301
335
|
className: "mt-2 flex flex-wrap items-center gap-2 text-[10px] text-text-secondary",
|
|
302
336
|
children: [
|
|
303
|
-
e.duration != null && e.duration > 0 && /* @__PURE__ */
|
|
337
|
+
e.duration != null && e.duration > 0 && /* @__PURE__ */ O("span", {
|
|
304
338
|
className: "flex items-center gap-0.5",
|
|
305
|
-
children: [/* @__PURE__ */
|
|
339
|
+
children: [/* @__PURE__ */ D(m, { className: "h-3 w-3" }), c(e.duration)]
|
|
306
340
|
}),
|
|
307
|
-
e.serviceType && /* @__PURE__ */
|
|
341
|
+
e.serviceType && /* @__PURE__ */ D("span", {
|
|
308
342
|
className: "rounded bg-bg-sunken px-1.5 py-0.5 capitalize",
|
|
309
343
|
children: e.serviceType
|
|
310
344
|
}),
|
|
311
|
-
e.spiceLevel && /* @__PURE__ */
|
|
345
|
+
e.spiceLevel && /* @__PURE__ */ O("span", {
|
|
312
346
|
className: "flex items-center gap-0.5 rounded bg-bg-sunken px-1.5 py-0.5 capitalize",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
347
|
+
children: [/* @__PURE__ */ D(h, { className: "h-3 w-3" }), e.spiceLevel]
|
|
314
348
|
})
|
|
315
349
|
]
|
|
316
350
|
}),
|
|
317
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ D("div", {
|
|
318
352
|
className: "mt-2 flex justify-end",
|
|
319
|
-
children: n > 0 ? /* @__PURE__ */
|
|
353
|
+
children: n > 0 ? /* @__PURE__ */ O("div", {
|
|
320
354
|
className: "flex items-center gap-2",
|
|
321
355
|
children: [
|
|
322
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ D("button", {
|
|
323
357
|
type: "button",
|
|
324
358
|
onClick: () => Q(e.id, -1),
|
|
325
359
|
className: "flex h-7 w-7 items-center justify-center rounded-full bg-bg-sunken text-text-primary hover:bg-accent",
|
|
326
|
-
children: /* @__PURE__ */
|
|
360
|
+
children: /* @__PURE__ */ D(y, { className: "h-3.5 w-3.5" })
|
|
327
361
|
}),
|
|
328
|
-
/* @__PURE__ */
|
|
362
|
+
/* @__PURE__ */ D("span", {
|
|
329
363
|
className: "min-w-[2ch] text-center text-sm font-medium text-text-primary",
|
|
330
364
|
children: n
|
|
331
365
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ D("button", {
|
|
333
367
|
type: "button",
|
|
334
368
|
onClick: () => Q(e.id, 1),
|
|
335
369
|
className: "flex h-7 w-7 items-center justify-center rounded-full bg-foreground text-background hover:opacity-90",
|
|
336
|
-
children: /* @__PURE__ */
|
|
370
|
+
children: /* @__PURE__ */ D(b, { className: "h-3.5 w-3.5" })
|
|
337
371
|
}),
|
|
338
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ D("button", {
|
|
339
373
|
type: "button",
|
|
340
374
|
onClick: () => $(e.id),
|
|
341
375
|
className: "ml-1 flex h-7 w-7 items-center justify-center rounded-full text-status-error-text hover:bg-status-error-bg/10",
|
|
342
|
-
children: /* @__PURE__ */
|
|
376
|
+
children: /* @__PURE__ */ D(w, { className: "h-3.5 w-3.5" })
|
|
343
377
|
})
|
|
344
378
|
]
|
|
345
|
-
}) : /* @__PURE__ */
|
|
379
|
+
}) : /* @__PURE__ */ D("button", {
|
|
346
380
|
type: "button",
|
|
347
|
-
disabled: !
|
|
348
|
-
onClick: () =>
|
|
349
|
-
className: t("rounded-lg px-4 py-1.5 text-xs font-medium transition-opacity",
|
|
381
|
+
disabled: !L.isOpen,
|
|
382
|
+
onClick: () => ue(e),
|
|
383
|
+
className: t("rounded-lg px-4 py-1.5 text-xs font-medium transition-opacity", L.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
|
|
350
384
|
children: "Add"
|
|
351
385
|
})
|
|
352
386
|
})
|
|
@@ -357,146 +391,146 @@ function A() {
|
|
|
357
391
|
})] }, e))
|
|
358
392
|
})
|
|
359
393
|
]
|
|
360
|
-
}), /* @__PURE__ */
|
|
394
|
+
}), /* @__PURE__ */ O("div", {
|
|
361
395
|
className: "space-y-4",
|
|
362
396
|
children: [
|
|
363
|
-
/* @__PURE__ */ k
|
|
364
|
-
className: "
|
|
365
|
-
children: [/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ O(k, {
|
|
398
|
+
className: "p-4 lg:sticky lg:top-6",
|
|
399
|
+
children: [/* @__PURE__ */ O("h3", {
|
|
366
400
|
className: "text-base font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
367
|
-
children: [/* @__PURE__ */
|
|
368
|
-
}),
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}) : /* @__PURE__ */
|
|
401
|
+
children: [/* @__PURE__ */ D(S, { className: "h-4 w-4" }), "Your Order"]
|
|
402
|
+
}), U.length === 0 ? /* @__PURE__ */ D(r, {
|
|
403
|
+
illustration: "empty-data",
|
|
404
|
+
icon: /* @__PURE__ */ D(S, { className: "h-8 w-8" }),
|
|
405
|
+
title: "Your cart is empty",
|
|
406
|
+
description: "Add items from the menu to start your order.",
|
|
407
|
+
className: "py-6"
|
|
408
|
+
}) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("div", {
|
|
375
409
|
className: "space-y-2 max-h-64 overflow-y-auto mb-3",
|
|
376
|
-
children:
|
|
410
|
+
children: U.map((e) => /* @__PURE__ */ O("div", {
|
|
377
411
|
className: "flex items-center justify-between gap-2",
|
|
378
|
-
children: [/* @__PURE__ */
|
|
412
|
+
children: [/* @__PURE__ */ O("div", {
|
|
379
413
|
className: "flex-1 min-w-0",
|
|
380
|
-
children: [/* @__PURE__ */
|
|
414
|
+
children: [/* @__PURE__ */ D("p", {
|
|
381
415
|
className: "text-sm font-medium text-text-primary truncate",
|
|
382
416
|
children: e.name
|
|
383
|
-
}), /* @__PURE__ */
|
|
417
|
+
}), /* @__PURE__ */ O("p", {
|
|
384
418
|
className: "text-xs text-text-secondary",
|
|
385
419
|
children: [
|
|
386
|
-
|
|
420
|
+
o(e.price, { minimumFractionDigits: 0 }),
|
|
387
421
|
" x",
|
|
388
422
|
" ",
|
|
389
423
|
e.quantity
|
|
390
424
|
]
|
|
391
425
|
})]
|
|
392
|
-
}), /* @__PURE__ */
|
|
426
|
+
}), /* @__PURE__ */ O("div", {
|
|
393
427
|
className: "flex items-center gap-1",
|
|
394
428
|
children: [
|
|
395
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ D("button", {
|
|
396
430
|
type: "button",
|
|
397
431
|
onClick: () => Q(e.productId, -1),
|
|
398
432
|
className: "flex h-6 w-6 items-center justify-center rounded bg-bg-sunken text-text-primary text-xs",
|
|
399
433
|
children: "-"
|
|
400
434
|
}),
|
|
401
|
-
/* @__PURE__ */
|
|
435
|
+
/* @__PURE__ */ D("span", {
|
|
402
436
|
className: "min-w-[2ch] text-center text-xs font-medium",
|
|
403
437
|
children: e.quantity
|
|
404
438
|
}),
|
|
405
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ D("button", {
|
|
406
440
|
type: "button",
|
|
407
441
|
onClick: () => Q(e.productId, 1),
|
|
408
442
|
className: "flex h-6 w-6 items-center justify-center rounded bg-bg-sunken text-text-primary text-xs",
|
|
409
443
|
children: "+"
|
|
410
444
|
}),
|
|
411
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ D("button", {
|
|
412
446
|
type: "button",
|
|
413
447
|
onClick: () => $(e.productId),
|
|
414
448
|
className: "ml-1 text-status-error-text hover:text-status-error-text/80",
|
|
415
|
-
children: /* @__PURE__ */
|
|
449
|
+
children: /* @__PURE__ */ D(w, { className: "h-3.5 w-3.5" })
|
|
416
450
|
})
|
|
417
451
|
]
|
|
418
452
|
})]
|
|
419
453
|
}, e.id))
|
|
420
|
-
}), /* @__PURE__ */
|
|
421
|
-
className: "border-t border-border-
|
|
422
|
-
children: [/* @__PURE__ */
|
|
454
|
+
}), /* @__PURE__ */ O("div", {
|
|
455
|
+
className: "border-t border-border-seam pt-3",
|
|
456
|
+
children: [/* @__PURE__ */ O("div", {
|
|
423
457
|
className: "flex justify-between items-center mb-3",
|
|
424
|
-
children: [/* @__PURE__ */
|
|
458
|
+
children: [/* @__PURE__ */ O("span", {
|
|
425
459
|
className: "text-sm font-semibold text-text-primary",
|
|
426
|
-
children: ["Total: ",
|
|
427
|
-
}), /* @__PURE__ */
|
|
460
|
+
children: ["Total: ", o(ce, { minimumFractionDigits: 0 })]
|
|
461
|
+
}), /* @__PURE__ */ O("span", {
|
|
428
462
|
className: "text-xs text-text-secondary",
|
|
429
|
-
children: [
|
|
463
|
+
children: [le, " items"]
|
|
430
464
|
})]
|
|
431
|
-
}), /* @__PURE__ */
|
|
465
|
+
}), /* @__PURE__ */ D("button", {
|
|
432
466
|
type: "button",
|
|
433
|
-
onClick: () =>
|
|
467
|
+
onClick: () => N("/customer/checkout"),
|
|
434
468
|
className: "w-full rounded-lg bg-foreground py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
435
469
|
children: "Proceed to Checkout"
|
|
436
470
|
})]
|
|
437
471
|
})] })]
|
|
438
472
|
}),
|
|
439
|
-
|
|
440
|
-
className: "rounded-lg border border-purple
|
|
473
|
+
L.serviceTypes?.includes("direct_service") && /* @__PURE__ */ O("div", {
|
|
474
|
+
className: "rounded-lg border border-accent-purple bg-[color-mix(in_oklab,var(--color-accent-purple)_14%,transparent)] p-4",
|
|
441
475
|
children: [
|
|
442
|
-
/* @__PURE__ */
|
|
476
|
+
/* @__PURE__ */ O("h3", {
|
|
443
477
|
className: "text-sm font-semibold text-text-primary flex items-center gap-2 mb-2",
|
|
444
|
-
children: [/* @__PURE__ */
|
|
478
|
+
children: [/* @__PURE__ */ D(g, { className: "h-4 w-4 text-accent-purple" }), "Direct Service"]
|
|
445
479
|
}),
|
|
446
|
-
/* @__PURE__ */
|
|
480
|
+
/* @__PURE__ */ D("p", {
|
|
447
481
|
className: "text-xs text-text-secondary mb-3",
|
|
448
482
|
children: "Cart comes to your location!"
|
|
449
483
|
}),
|
|
450
|
-
/* @__PURE__ */
|
|
484
|
+
/* @__PURE__ */ D("button", {
|
|
451
485
|
type: "button",
|
|
452
|
-
onClick: () =>
|
|
453
|
-
className: "w-full rounded-lg bg-purple
|
|
486
|
+
onClick: () => N(`/customer/carts/${L.id}`),
|
|
487
|
+
className: "w-full rounded-lg bg-accent-purple py-2 text-xs font-medium text-white hover:bg-accent-purple transition-colors",
|
|
454
488
|
children: "Book Direct Service"
|
|
455
489
|
})
|
|
456
490
|
]
|
|
457
491
|
}),
|
|
458
|
-
|
|
459
|
-
className: "rounded-lg border border-
|
|
460
|
-
children: [/* @__PURE__ */
|
|
492
|
+
L.serviceTypes?.includes("appointment") && /* @__PURE__ */ O("div", {
|
|
493
|
+
className: "rounded-lg border border-status-info-border bg-status-info-bg-subtle p-4",
|
|
494
|
+
children: [/* @__PURE__ */ O("h3", {
|
|
461
495
|
className: "text-sm font-semibold text-text-primary flex items-center gap-2 mb-2",
|
|
462
|
-
children: [/* @__PURE__ */
|
|
463
|
-
}), /* @__PURE__ */
|
|
496
|
+
children: [/* @__PURE__ */ D(f, { className: "h-4 w-4 text-status-info-text" }), "Appointments Available"]
|
|
497
|
+
}), /* @__PURE__ */ D("p", {
|
|
464
498
|
className: "text-xs text-text-secondary",
|
|
465
499
|
children: "This service provider accepts appointments. Contact them to schedule."
|
|
466
500
|
})]
|
|
467
501
|
}),
|
|
468
|
-
|
|
469
|
-
className: "rounded-lg border border-
|
|
502
|
+
R && /* @__PURE__ */ O("div", {
|
|
503
|
+
className: "rounded-lg border border-status-success-border bg-status-success-bg-subtle p-4",
|
|
470
504
|
children: [
|
|
471
|
-
/* @__PURE__ */
|
|
505
|
+
/* @__PURE__ */ O("h3", {
|
|
472
506
|
className: "text-sm font-semibold text-text-primary flex items-center gap-2 mb-2",
|
|
473
|
-
children: [/* @__PURE__ */
|
|
507
|
+
children: [/* @__PURE__ */ D(te, { className: "h-4 w-4 text-status-success-text" }), "Investment Opportunity"]
|
|
474
508
|
}),
|
|
475
|
-
/* @__PURE__ */
|
|
509
|
+
/* @__PURE__ */ D("p", {
|
|
476
510
|
className: "text-xs text-text-secondary mb-2",
|
|
477
|
-
children:
|
|
511
|
+
children: R.description
|
|
478
512
|
}),
|
|
479
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ O("div", {
|
|
480
514
|
className: "space-y-1 text-xs text-text-secondary mb-3",
|
|
481
515
|
children: [
|
|
482
|
-
/* @__PURE__ */
|
|
483
|
-
/* @__PURE__ */
|
|
484
|
-
/* @__PURE__ */
|
|
516
|
+
/* @__PURE__ */ O("p", { children: ["Target: ", o(R.targetAmount, { minimumFractionDigits: 0 })] }),
|
|
517
|
+
/* @__PURE__ */ O("p", { children: ["Raised: ", o(R.raisedAmount, { minimumFractionDigits: 0 })] }),
|
|
518
|
+
/* @__PURE__ */ O("p", { children: [
|
|
485
519
|
"Expected Returns: ",
|
|
486
|
-
|
|
520
|
+
R.expectedReturns,
|
|
487
521
|
"%"
|
|
488
522
|
] }),
|
|
489
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ O("p", { children: [
|
|
490
524
|
"Min Investment:",
|
|
491
525
|
" ",
|
|
492
|
-
|
|
526
|
+
o(R.minimumInvestment, { minimumFractionDigits: 0 })
|
|
493
527
|
] })
|
|
494
528
|
]
|
|
495
529
|
}),
|
|
496
|
-
/* @__PURE__ */
|
|
530
|
+
/* @__PURE__ */ D("button", {
|
|
497
531
|
type: "button",
|
|
498
532
|
onClick: () => alert("Navigate to investor section to fund this business."),
|
|
499
|
-
className: "w-full rounded-lg bg-
|
|
533
|
+
className: "w-full rounded-lg bg-status-success-bg py-2 text-xs font-medium text-white hover:bg-status-success-bg transition-colors",
|
|
500
534
|
children: "Fund This Business"
|
|
501
535
|
})
|
|
502
536
|
]
|
|
@@ -504,94 +538,92 @@ function A() {
|
|
|
504
538
|
]
|
|
505
539
|
})]
|
|
506
540
|
}),
|
|
507
|
-
|
|
541
|
+
G && q && /* @__PURE__ */ D("div", {
|
|
508
542
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
509
|
-
children: /* @__PURE__ */
|
|
510
|
-
className: "w-full max-w-md max-h-[90vh] overflow-y-auto rounded-lg border border-border-
|
|
511
|
-
children: /* @__PURE__ */
|
|
543
|
+
children: /* @__PURE__ */ D("div", {
|
|
544
|
+
className: "w-full max-w-md max-h-[90vh] overflow-y-auto rounded-lg border border-border-seam bg-bg-surface",
|
|
545
|
+
children: /* @__PURE__ */ O("div", {
|
|
512
546
|
className: "p-5",
|
|
513
547
|
children: [
|
|
514
|
-
/* @__PURE__ */
|
|
548
|
+
/* @__PURE__ */ O("div", {
|
|
515
549
|
className: "flex items-center justify-between mb-4",
|
|
516
|
-
children: [/* @__PURE__ */
|
|
550
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
517
551
|
className: "text-lg font-semibold text-text-primary",
|
|
518
|
-
children:
|
|
519
|
-
}), /* @__PURE__ */
|
|
552
|
+
children: q.product.name
|
|
553
|
+
}), /* @__PURE__ */ D("button", {
|
|
520
554
|
type: "button",
|
|
521
555
|
onClick: () => {
|
|
522
|
-
|
|
556
|
+
K(!1), J(null);
|
|
523
557
|
},
|
|
524
558
|
className: "rounded-md p-1 text-text-secondary hover:text-text-primary",
|
|
525
|
-
children: /* @__PURE__ */
|
|
559
|
+
children: /* @__PURE__ */ D(w, { className: "h-5 w-5" })
|
|
526
560
|
})]
|
|
527
561
|
}),
|
|
528
|
-
/* @__PURE__ */
|
|
562
|
+
/* @__PURE__ */ D("p", {
|
|
529
563
|
className: "text-sm text-text-secondary mb-4",
|
|
530
|
-
children:
|
|
564
|
+
children: q.product.description
|
|
531
565
|
}),
|
|
532
|
-
/* @__PURE__ */
|
|
566
|
+
/* @__PURE__ */ D("p", {
|
|
533
567
|
className: "text-lg font-bold text-text-primary mb-4",
|
|
534
|
-
children:
|
|
568
|
+
children: o(q.product.price, { minimumFractionDigits: 0 })
|
|
535
569
|
}),
|
|
536
|
-
/* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ O("div", {
|
|
537
571
|
className: "mb-4",
|
|
538
|
-
children: [/* @__PURE__ */
|
|
572
|
+
children: [/* @__PURE__ */ D("label", {
|
|
539
573
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
540
574
|
children: "Quantity"
|
|
541
|
-
}), /* @__PURE__ */
|
|
575
|
+
}), /* @__PURE__ */ O("div", {
|
|
542
576
|
className: "flex items-center gap-3",
|
|
543
577
|
children: [
|
|
544
|
-
/* @__PURE__ */
|
|
578
|
+
/* @__PURE__ */ D("button", {
|
|
545
579
|
type: "button",
|
|
546
|
-
onClick: () =>
|
|
580
|
+
onClick: () => J((e) => e && {
|
|
547
581
|
...e,
|
|
548
582
|
quantity: Math.max(1, e.quantity - 1)
|
|
549
583
|
}),
|
|
550
584
|
className: "flex h-8 w-8 items-center justify-center rounded-full bg-bg-sunken text-text-primary",
|
|
551
|
-
children: /* @__PURE__ */
|
|
585
|
+
children: /* @__PURE__ */ D(y, { className: "h-4 w-4" })
|
|
552
586
|
}),
|
|
553
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ D("span", {
|
|
554
588
|
className: "min-w-[2ch] text-center font-medium text-text-primary",
|
|
555
|
-
children:
|
|
589
|
+
children: q.quantity
|
|
556
590
|
}),
|
|
557
|
-
/* @__PURE__ */
|
|
591
|
+
/* @__PURE__ */ D("button", {
|
|
558
592
|
type: "button",
|
|
559
|
-
onClick: () =>
|
|
593
|
+
onClick: () => J((e) => e && {
|
|
560
594
|
...e,
|
|
561
595
|
quantity: e.quantity + 1
|
|
562
596
|
}),
|
|
563
597
|
className: "flex h-8 w-8 items-center justify-center rounded-full bg-bg-sunken text-text-primary",
|
|
564
|
-
children: /* @__PURE__ */
|
|
598
|
+
children: /* @__PURE__ */ D(b, { className: "h-4 w-4" })
|
|
565
599
|
})
|
|
566
600
|
]
|
|
567
601
|
})]
|
|
568
602
|
}),
|
|
569
|
-
/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ O("div", {
|
|
570
604
|
className: "mb-4",
|
|
571
|
-
children: [/* @__PURE__ */
|
|
605
|
+
children: [/* @__PURE__ */ D("label", {
|
|
572
606
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
573
607
|
children: "Special Instructions"
|
|
574
|
-
}), /* @__PURE__ */
|
|
575
|
-
value:
|
|
576
|
-
onChange: (e) =>
|
|
608
|
+
}), /* @__PURE__ */ D("textarea", {
|
|
609
|
+
value: q.specialInstructions,
|
|
610
|
+
onChange: (e) => J((t) => t && {
|
|
577
611
|
...t,
|
|
578
612
|
specialInstructions: e.target.value
|
|
579
613
|
}),
|
|
580
614
|
placeholder: "Any special requests...",
|
|
581
|
-
className: "w-full rounded-lg border border-border-
|
|
615
|
+
className: "w-full rounded-lg border border-border-seam bg-bg-surface p-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
582
616
|
rows: 3
|
|
583
617
|
})]
|
|
584
618
|
}),
|
|
585
|
-
/* @__PURE__ */
|
|
619
|
+
/* @__PURE__ */ O("button", {
|
|
586
620
|
type: "button",
|
|
587
|
-
onClick:
|
|
588
|
-
G && (Z(G.product, G.quantity, G.specialInstructions), W(!1), K(null), alert(`${G.product.name} added to cart`));
|
|
589
|
-
},
|
|
621
|
+
onClick: de,
|
|
590
622
|
className: "w-full rounded-lg bg-foreground py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
591
623
|
children: [
|
|
592
624
|
"Add to Cart -",
|
|
593
625
|
" ",
|
|
594
|
-
|
|
626
|
+
o(q.product.price * q.quantity, { minimumFractionDigits: 0 })
|
|
595
627
|
]
|
|
596
628
|
})
|
|
597
629
|
]
|
|
@@ -599,15 +631,16 @@ function A() {
|
|
|
599
631
|
})
|
|
600
632
|
})
|
|
601
633
|
]
|
|
602
|
-
}) : /* @__PURE__ */
|
|
634
|
+
}) : /* @__PURE__ */ D(n, {
|
|
603
635
|
title: "Cart Not Found",
|
|
604
|
-
children: /* @__PURE__ */
|
|
605
|
-
|
|
636
|
+
children: /* @__PURE__ */ D(r, {
|
|
637
|
+
illustration: "empty-data",
|
|
638
|
+
icon: /* @__PURE__ */ D(S, { className: "h-12 w-12" }),
|
|
606
639
|
title: "Cart not found",
|
|
607
|
-
description: `No cart found with ID "${
|
|
608
|
-
action: /* @__PURE__ */
|
|
640
|
+
description: `No cart found with ID "${M}".`,
|
|
641
|
+
action: /* @__PURE__ */ D("button", {
|
|
609
642
|
type: "button",
|
|
610
|
-
onClick: () =>
|
|
643
|
+
onClick: () => N("/customer/carts"),
|
|
611
644
|
className: "rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
612
645
|
children: "Browse Carts"
|
|
613
646
|
})
|
|
@@ -615,6 +648,6 @@ function A() {
|
|
|
615
648
|
});
|
|
616
649
|
}
|
|
617
650
|
//#endregion
|
|
618
|
-
export {
|
|
651
|
+
export { M as CartDetailPage };
|
|
619
652
|
|
|
620
653
|
//# sourceMappingURL=CartDetailPage.js.map
|