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