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