@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
|
@@ -8,8 +8,9 @@ import { useMemo as s, useState as c } from "react";
|
|
|
8
8
|
import { AlertTriangle as l, ArrowLeft as u, Calendar as d, CalendarCheck as f, CheckCircle2 as p, Circle as m, Clock as h, Headphones as g, MapPin as _, Phone as v, ShoppingBag as y, Star as b, XCircle as x } from "lucide-react";
|
|
9
9
|
import { useParams as S } from "react-router-dom";
|
|
10
10
|
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
11
|
+
import { EmphasisPanel as T, NextSteps as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
|
|
11
12
|
//#region src/labsofscience/pages/customer/BookingDetailsPage.tsx
|
|
12
|
-
var
|
|
13
|
+
var O = [
|
|
13
14
|
{
|
|
14
15
|
id: "BK-001",
|
|
15
16
|
serviceName: "Men's Haircut + Beard Trim",
|
|
@@ -184,410 +185,453 @@ var T = [
|
|
|
184
185
|
}
|
|
185
186
|
]
|
|
186
187
|
}
|
|
187
|
-
],
|
|
188
|
-
function
|
|
189
|
-
let { bookingId:
|
|
190
|
-
|
|
188
|
+
], k = (e) => O.find((t) => t.id === e);
|
|
189
|
+
function A() {
|
|
190
|
+
let { bookingId: O } = S(), { navigateTo: A } = e(), [j, M] = c(null), N = s(() => O ? k(O) : void 0, [O]), P = (e) => {
|
|
191
|
+
M(e), setTimeout(() => M(null), 3e3);
|
|
191
192
|
};
|
|
192
|
-
if (!
|
|
193
|
+
if (!N) return /* @__PURE__ */ C(n, {
|
|
193
194
|
title: "Booking Not Found",
|
|
194
195
|
children: /* @__PURE__ */ C(i, {
|
|
196
|
+
illustration: "empty-data",
|
|
195
197
|
icon: /* @__PURE__ */ C(f, { className: "h-12 w-12" }),
|
|
196
198
|
title: "Booking not found",
|
|
197
|
-
description: `No booking found with ID "${
|
|
199
|
+
description: `No booking found with ID "${O}".`,
|
|
198
200
|
action: /* @__PURE__ */ C("button", {
|
|
199
201
|
type: "button",
|
|
200
|
-
onClick: () =>
|
|
202
|
+
onClick: () => A("/customer/dashboard"),
|
|
201
203
|
className: "rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
202
204
|
children: "Go to Dashboard"
|
|
203
205
|
})
|
|
204
206
|
})
|
|
205
207
|
});
|
|
206
|
-
let
|
|
208
|
+
let F = N.status === "cancelled", I = N.status === "completed", L = !F && !I, R = () => {
|
|
209
|
+
P("Support team will contact you shortly.");
|
|
210
|
+
}, z = () => {
|
|
211
|
+
P("Thank you! Rating feature coming soon.");
|
|
212
|
+
};
|
|
207
213
|
return /* @__PURE__ */ w(n, {
|
|
208
214
|
title: /* @__PURE__ */ w("div", {
|
|
209
215
|
className: "flex items-center gap-3",
|
|
210
216
|
children: [/* @__PURE__ */ C("button", {
|
|
211
217
|
type: "button",
|
|
212
|
-
onClick: () =>
|
|
218
|
+
onClick: () => A("/customer/dashboard"),
|
|
213
219
|
className: "rounded-md p-1 text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
|
|
214
220
|
children: /* @__PURE__ */ C(u, { className: "h-5 w-5" })
|
|
215
|
-
}), /* @__PURE__ */ w("span", { children: ["Booking #",
|
|
221
|
+
}), /* @__PURE__ */ w("span", { children: ["Booking #", N.id] })]
|
|
216
222
|
}),
|
|
217
|
-
actions: /* @__PURE__ */ C(r, { status:
|
|
218
|
-
children: [
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
className: "
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
className: "
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
223
|
+
actions: /* @__PURE__ */ C(r, { status: N.status }),
|
|
224
|
+
children: [
|
|
225
|
+
j && /* @__PURE__ */ w("div", {
|
|
226
|
+
className: "mb-4 rounded-lg border border-status-success-border bg-status-success-bg-subtle p-3 flex items-center gap-2",
|
|
227
|
+
children: [/* @__PURE__ */ C(p, { className: "h-4 w-4 text-status-success-text shrink-0" }), /* @__PURE__ */ C("p", {
|
|
228
|
+
className: "text-sm text-status-success-text",
|
|
229
|
+
children: j
|
|
230
|
+
})]
|
|
231
|
+
}),
|
|
232
|
+
/* @__PURE__ */ C(D, {
|
|
233
|
+
icon: /* @__PURE__ */ C(f, { className: "h-4 w-4" }),
|
|
234
|
+
className: "mb-6",
|
|
235
|
+
children: "Everything about a service you booked, in one place. Confirm the date, time and location, watch its status move from confirmed to completed, see the full price breakdown, and reach the provider or support if anything needs to change."
|
|
236
|
+
}),
|
|
237
|
+
/* @__PURE__ */ C(E, {
|
|
238
|
+
storageKey: "labsofscience-booking-details",
|
|
239
|
+
steps: [
|
|
240
|
+
{
|
|
241
|
+
id: "call-provider",
|
|
242
|
+
label: "Contact the provider",
|
|
243
|
+
description: `Call ${N.provider.name} about your booking.`,
|
|
244
|
+
icon: /* @__PURE__ */ C(v, { className: "h-4 w-4" }),
|
|
245
|
+
onClick: () => {
|
|
246
|
+
window.location.href = `tel:${N.provider.phone}`;
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
id: "support",
|
|
251
|
+
label: "Get help with this booking",
|
|
252
|
+
description: "Reach support to reschedule or ask a question.",
|
|
253
|
+
icon: /* @__PURE__ */ C(g, { className: "h-4 w-4" }),
|
|
254
|
+
onClick: R
|
|
255
|
+
},
|
|
256
|
+
...I ? [{
|
|
257
|
+
id: "rate",
|
|
258
|
+
label: "Rate the service",
|
|
259
|
+
description: "Tell others how this service went.",
|
|
260
|
+
icon: /* @__PURE__ */ C(b, { className: "h-4 w-4" }),
|
|
261
|
+
onClick: z
|
|
262
|
+
}] : [{
|
|
263
|
+
id: "view-cart",
|
|
264
|
+
label: "Browse this cart’s menu",
|
|
265
|
+
description: "See what else this provider offers.",
|
|
266
|
+
icon: /* @__PURE__ */ C(y, { className: "h-4 w-4" }),
|
|
267
|
+
onClick: () => A(`/customer/carts/${N.provider.id}`)
|
|
268
|
+
}]
|
|
269
|
+
]
|
|
270
|
+
}),
|
|
271
|
+
/* @__PURE__ */ w("div", {
|
|
272
|
+
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
273
|
+
children: [/* @__PURE__ */ w("div", {
|
|
274
|
+
className: "lg:col-span-2 space-y-6",
|
|
275
|
+
children: [
|
|
276
|
+
/* @__PURE__ */ w(T, {
|
|
277
|
+
className: "p-6",
|
|
278
|
+
children: [
|
|
279
|
+
/* @__PURE__ */ C("h2", {
|
|
280
|
+
className: "text-lg font-semibold text-text-primary",
|
|
281
|
+
children: N.serviceName
|
|
282
|
+
}),
|
|
283
|
+
/* @__PURE__ */ C("p", {
|
|
284
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
285
|
+
children: N.serviceDescription
|
|
286
|
+
}),
|
|
287
|
+
/* @__PURE__ */ w("div", {
|
|
288
|
+
className: "mt-4 flex flex-wrap gap-4 text-sm text-text-secondary",
|
|
289
|
+
children: [
|
|
290
|
+
/* @__PURE__ */ w("div", {
|
|
291
|
+
className: "flex items-center gap-1.5",
|
|
292
|
+
children: [/* @__PURE__ */ C(d, { className: "h-4 w-4" }), /* @__PURE__ */ C("span", { children: N.scheduledDate })]
|
|
293
|
+
}),
|
|
294
|
+
/* @__PURE__ */ w("div", {
|
|
295
|
+
className: "flex items-center gap-1.5",
|
|
296
|
+
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), /* @__PURE__ */ C("span", { children: N.scheduledTime })]
|
|
297
|
+
}),
|
|
298
|
+
/* @__PURE__ */ w("div", {
|
|
299
|
+
className: "flex items-center gap-1.5",
|
|
300
|
+
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), /* @__PURE__ */ w("span", { children: [N.duration, " min"] })]
|
|
301
|
+
})
|
|
302
|
+
]
|
|
303
|
+
}),
|
|
304
|
+
N.notes && /* @__PURE__ */ w("div", {
|
|
305
|
+
className: "mt-4 rounded-md bg-bg-sunken p-3",
|
|
306
|
+
children: [/* @__PURE__ */ C("p", {
|
|
307
|
+
className: "text-xs text-text-secondary mb-1",
|
|
308
|
+
children: "Notes"
|
|
309
|
+
}), /* @__PURE__ */ C("p", {
|
|
310
|
+
className: "text-sm text-text-primary",
|
|
311
|
+
children: N.notes
|
|
274
312
|
})]
|
|
275
|
-
}),
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
})]
|
|
279
|
-
})
|
|
280
|
-
]
|
|
281
|
-
}),
|
|
282
|
-
/* @__PURE__ */ w("div", {
|
|
283
|
-
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
284
|
-
children: [
|
|
285
|
-
/* @__PURE__ */ C("h2", {
|
|
286
|
-
className: "text-base font-semibold text-text-primary mb-4",
|
|
287
|
-
children: "Service Provider"
|
|
288
|
-
}),
|
|
289
|
-
/* @__PURE__ */ w("div", {
|
|
290
|
-
className: "flex items-center gap-4",
|
|
291
|
-
children: [
|
|
292
|
-
/* @__PURE__ */ C("div", {
|
|
293
|
-
className: "flex h-12 w-12 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
|
|
294
|
-
children: /* @__PURE__ */ C(y, { className: "h-6 w-6" })
|
|
295
|
-
}),
|
|
296
|
-
/* @__PURE__ */ w("div", {
|
|
297
|
-
className: "flex-1 min-w-0",
|
|
298
|
-
children: [
|
|
299
|
-
/* @__PURE__ */ C("p", {
|
|
300
|
-
className: "text-sm font-semibold text-text-primary",
|
|
301
|
-
children: A.provider.name
|
|
302
|
-
}),
|
|
303
|
-
/* @__PURE__ */ C("p", {
|
|
304
|
-
className: "text-xs text-text-secondary",
|
|
305
|
-
children: A.provider.category
|
|
306
|
-
}),
|
|
307
|
-
/* @__PURE__ */ w("div", {
|
|
308
|
-
className: "flex items-center gap-1 mt-1",
|
|
309
|
-
children: [/* @__PURE__ */ C(b, { className: "h-3 w-3 fill-yellow-400 text-yellow-400" }), /* @__PURE__ */ C("span", {
|
|
310
|
-
className: "text-xs font-medium text-text-primary",
|
|
311
|
-
children: A.provider.rating
|
|
312
|
-
})]
|
|
313
|
-
})
|
|
314
|
-
]
|
|
315
|
-
}),
|
|
316
|
-
/* @__PURE__ */ C("a", {
|
|
317
|
-
href: `tel:${A.provider.phone}`,
|
|
318
|
-
className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
|
|
319
|
-
children: /* @__PURE__ */ C(v, { className: "h-4 w-4" })
|
|
320
|
-
})
|
|
321
|
-
]
|
|
322
|
-
}),
|
|
323
|
-
/* @__PURE__ */ w("div", {
|
|
324
|
-
className: "mt-3 flex items-center gap-2 text-sm text-text-secondary",
|
|
325
|
-
children: [/* @__PURE__ */ C(v, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ C("span", { children: A.provider.phone })]
|
|
326
|
-
})
|
|
327
|
-
]
|
|
328
|
-
}),
|
|
329
|
-
/* @__PURE__ */ w("div", {
|
|
330
|
-
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
331
|
-
children: [/* @__PURE__ */ C("h2", {
|
|
332
|
-
className: "text-base font-semibold text-text-primary mb-5",
|
|
333
|
-
children: "Booking Timeline"
|
|
334
|
-
}), /* @__PURE__ */ C("div", {
|
|
335
|
-
className: "relative",
|
|
336
|
-
children: A.timeline.map((e, n) => {
|
|
337
|
-
let r = n === A.timeline.length - 1, i = e.status === "cancelled", a = i ? x : e.completed ? p : m;
|
|
338
|
-
return /* @__PURE__ */ w("div", {
|
|
339
|
-
className: "flex gap-4",
|
|
313
|
+
}),
|
|
314
|
+
N.cancellationReason && /* @__PURE__ */ w("div", {
|
|
315
|
+
className: "mt-4 rounded-md bg-status-error-bg-subtle border border-status-error-border p-3",
|
|
340
316
|
children: [/* @__PURE__ */ w("div", {
|
|
341
|
-
className: "flex
|
|
342
|
-
children: [/* @__PURE__ */ C("
|
|
343
|
-
className:
|
|
344
|
-
children:
|
|
345
|
-
}), !r && /* @__PURE__ */ C("div", { className: t("w-0.5 flex-1 my-1", e.completed ? "bg-green-500/30" : "bg-border") })]
|
|
346
|
-
}), /* @__PURE__ */ w("div", {
|
|
347
|
-
className: t("pb-6", r && "pb-0"),
|
|
348
|
-
children: [/* @__PURE__ */ C("p", {
|
|
349
|
-
className: "text-sm font-medium text-text-primary",
|
|
350
|
-
children: e.label
|
|
351
|
-
}), /* @__PURE__ */ C("p", {
|
|
352
|
-
className: "mt-0.5 text-xs text-text-secondary",
|
|
353
|
-
children: e.timestamp ? o(e.timestamp) : "Pending"
|
|
317
|
+
className: "flex items-center gap-2 mb-1",
|
|
318
|
+
children: [/* @__PURE__ */ C(l, { className: "h-3.5 w-3.5 text-status-error-text" }), /* @__PURE__ */ C("p", {
|
|
319
|
+
className: "text-xs font-medium text-status-error-text",
|
|
320
|
+
children: "Cancellation Reason"
|
|
354
321
|
})]
|
|
322
|
+
}), /* @__PURE__ */ C("p", {
|
|
323
|
+
className: "text-sm text-text-primary",
|
|
324
|
+
children: N.cancellationReason
|
|
355
325
|
})]
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
})
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
children: [/* @__PURE__ */ C(g, { className: "h-4 w-4" }), "Contact Support"]
|
|
369
|
-
}), N && /* @__PURE__ */ w("button", {
|
|
370
|
-
type: "button",
|
|
371
|
-
onClick: () => {
|
|
372
|
-
j("Thank you! Rating feature coming soon.");
|
|
373
|
-
},
|
|
374
|
-
className: "flex-1 flex items-center justify-center gap-2 rounded-lg bg-foreground px-4 py-3 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
375
|
-
children: [/* @__PURE__ */ C(b, { className: "h-4 w-4" }), "Rate Service"]
|
|
376
|
-
})]
|
|
377
|
-
})
|
|
378
|
-
]
|
|
379
|
-
}), /* @__PURE__ */ w("div", {
|
|
380
|
-
className: "space-y-6",
|
|
381
|
-
children: [
|
|
382
|
-
/* @__PURE__ */ w("div", {
|
|
383
|
-
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
384
|
-
children: [
|
|
385
|
-
/* @__PURE__ */ C("h3", {
|
|
386
|
-
className: "text-base font-semibold text-text-primary mb-3",
|
|
387
|
-
children: "Cart Information"
|
|
388
|
-
}),
|
|
389
|
-
/* @__PURE__ */ w("div", {
|
|
390
|
-
className: "flex items-center gap-3 mb-4",
|
|
391
|
-
children: [/* @__PURE__ */ C("img", {
|
|
392
|
-
src: A.provider.image,
|
|
393
|
-
alt: A.provider.name,
|
|
394
|
-
className: "h-14 w-14 rounded-lg object-cover"
|
|
395
|
-
}), /* @__PURE__ */ w("div", {
|
|
396
|
-
className: "min-w-0",
|
|
326
|
+
})
|
|
327
|
+
]
|
|
328
|
+
}),
|
|
329
|
+
/* @__PURE__ */ w("div", {
|
|
330
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6",
|
|
331
|
+
children: [
|
|
332
|
+
/* @__PURE__ */ C("h2", {
|
|
333
|
+
className: "text-base font-semibold text-text-primary mb-4",
|
|
334
|
+
children: "Service Provider"
|
|
335
|
+
}),
|
|
336
|
+
/* @__PURE__ */ w("div", {
|
|
337
|
+
className: "flex items-center gap-4",
|
|
397
338
|
children: [
|
|
398
|
-
/* @__PURE__ */ C("
|
|
399
|
-
className: "
|
|
400
|
-
children:
|
|
401
|
-
}),
|
|
402
|
-
/* @__PURE__ */ C("p", {
|
|
403
|
-
className: "text-xs text-text-secondary",
|
|
404
|
-
children: A.provider.category
|
|
339
|
+
/* @__PURE__ */ C("div", {
|
|
340
|
+
className: "flex h-12 w-12 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
|
|
341
|
+
children: /* @__PURE__ */ C(y, { className: "h-6 w-6" })
|
|
405
342
|
}),
|
|
406
343
|
/* @__PURE__ */ w("div", {
|
|
407
|
-
className: "flex
|
|
344
|
+
className: "flex-1 min-w-0",
|
|
408
345
|
children: [
|
|
409
|
-
/* @__PURE__ */ C(
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
children: A.provider.rating
|
|
346
|
+
/* @__PURE__ */ C("p", {
|
|
347
|
+
className: "text-sm font-semibold text-text-primary",
|
|
348
|
+
children: N.provider.name
|
|
413
349
|
}),
|
|
414
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ C("p", {
|
|
415
351
|
className: "text-xs text-text-secondary",
|
|
416
|
-
children:
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
352
|
+
children: N.provider.category
|
|
353
|
+
}),
|
|
354
|
+
/* @__PURE__ */ w("div", {
|
|
355
|
+
className: "flex items-center gap-1 mt-1",
|
|
356
|
+
children: [/* @__PURE__ */ C(b, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ C("span", {
|
|
357
|
+
className: "text-xs font-medium text-text-primary",
|
|
358
|
+
children: N.provider.rating
|
|
359
|
+
})]
|
|
421
360
|
})
|
|
422
361
|
]
|
|
362
|
+
}),
|
|
363
|
+
/* @__PURE__ */ C("a", {
|
|
364
|
+
href: `tel:${N.provider.phone}`,
|
|
365
|
+
className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
|
|
366
|
+
children: /* @__PURE__ */ C(v, { className: "h-4 w-4" })
|
|
423
367
|
})
|
|
424
368
|
]
|
|
425
|
-
})]
|
|
426
|
-
}),
|
|
427
|
-
/* @__PURE__ */ C("div", {
|
|
428
|
-
className: "space-y-2 text-sm mb-4",
|
|
429
|
-
children: /* @__PURE__ */ w("div", {
|
|
430
|
-
className: "flex items-start gap-2",
|
|
431
|
-
children: [/* @__PURE__ */ C(_, { className: "h-4 w-4 text-text-secondary shrink-0 mt-0.5" }), /* @__PURE__ */ C("span", {
|
|
432
|
-
className: "text-text-secondary",
|
|
433
|
-
children: A.provider.location
|
|
434
|
-
})]
|
|
435
|
-
})
|
|
436
|
-
}),
|
|
437
|
-
/* @__PURE__ */ C("button", {
|
|
438
|
-
type: "button",
|
|
439
|
-
onClick: () => D(`/customer/carts/${A.provider.id}`),
|
|
440
|
-
className: "w-full rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
441
|
-
children: "View Cart Menu"
|
|
442
|
-
})
|
|
443
|
-
]
|
|
444
|
-
}),
|
|
445
|
-
/* @__PURE__ */ w("div", {
|
|
446
|
-
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
447
|
-
children: [/* @__PURE__ */ C("h3", {
|
|
448
|
-
className: "text-base font-semibold text-text-primary mb-3",
|
|
449
|
-
children: "Service Location"
|
|
450
|
-
}), /* @__PURE__ */ w("div", {
|
|
451
|
-
className: "flex items-start gap-3",
|
|
452
|
-
children: [/* @__PURE__ */ C(_, { className: "mt-0.5 h-5 w-5 shrink-0 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [
|
|
453
|
-
/* @__PURE__ */ C("p", {
|
|
454
|
-
className: "text-sm text-text-primary",
|
|
455
|
-
children: A.location.street
|
|
456
|
-
}),
|
|
457
|
-
/* @__PURE__ */ w("p", {
|
|
458
|
-
className: "text-sm text-text-secondary",
|
|
459
|
-
children: [
|
|
460
|
-
A.location.area,
|
|
461
|
-
", ",
|
|
462
|
-
A.location.city,
|
|
463
|
-
" - ",
|
|
464
|
-
A.location.pincode
|
|
465
|
-
]
|
|
466
369
|
}),
|
|
467
|
-
|
|
468
|
-
className: "text-
|
|
469
|
-
children: [
|
|
370
|
+
/* @__PURE__ */ w("div", {
|
|
371
|
+
className: "mt-3 flex items-center gap-2 text-sm text-text-secondary",
|
|
372
|
+
children: [/* @__PURE__ */ C(v, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ C("span", { children: N.provider.phone })]
|
|
470
373
|
})
|
|
471
|
-
]
|
|
472
|
-
})
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
374
|
+
]
|
|
375
|
+
}),
|
|
376
|
+
/* @__PURE__ */ w("div", {
|
|
377
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6",
|
|
378
|
+
children: [/* @__PURE__ */ C("h2", {
|
|
379
|
+
className: "text-base font-semibold text-text-primary mb-5",
|
|
380
|
+
children: "Booking Timeline"
|
|
381
|
+
}), /* @__PURE__ */ C("div", {
|
|
382
|
+
className: "relative",
|
|
383
|
+
children: N.timeline.map((e, n) => {
|
|
384
|
+
let r = n === N.timeline.length - 1, i = e.status === "cancelled", a = i ? x : e.completed ? p : m;
|
|
385
|
+
return /* @__PURE__ */ w("div", {
|
|
386
|
+
className: "flex gap-4",
|
|
387
|
+
children: [/* @__PURE__ */ w("div", {
|
|
388
|
+
className: "flex flex-col items-center",
|
|
389
|
+
children: [/* @__PURE__ */ C("div", {
|
|
390
|
+
className: t("flex h-8 w-8 shrink-0 items-center justify-center rounded-full", i ? "bg-status-error-bg-subtle text-status-error-text" : e.completed ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-secondary"),
|
|
391
|
+
children: /* @__PURE__ */ C(a, { className: "h-4 w-4" })
|
|
392
|
+
}), !r && /* @__PURE__ */ C("div", { className: t("w-0.5 flex-1 my-1", e.completed ? "bg-status-success-bg-subtle" : "bg-border") })]
|
|
393
|
+
}), /* @__PURE__ */ w("div", {
|
|
394
|
+
className: t("pb-6", r && "pb-0"),
|
|
395
|
+
children: [/* @__PURE__ */ C("p", {
|
|
396
|
+
className: "text-sm font-medium text-text-primary",
|
|
397
|
+
children: e.label
|
|
398
|
+
}), /* @__PURE__ */ C("p", {
|
|
399
|
+
className: "mt-0.5 text-xs text-text-secondary",
|
|
400
|
+
children: e.timestamp ? o(e.timestamp) : "Pending"
|
|
401
|
+
})]
|
|
402
|
+
})]
|
|
403
|
+
}, `${e.status}-${n}`);
|
|
404
|
+
})
|
|
405
|
+
})]
|
|
406
|
+
}),
|
|
407
|
+
/* @__PURE__ */ w("div", {
|
|
408
|
+
className: "flex flex-col sm:flex-row gap-3",
|
|
409
|
+
children: [/* @__PURE__ */ w("button", {
|
|
410
|
+
type: "button",
|
|
411
|
+
onClick: R,
|
|
412
|
+
className: "flex-1 flex items-center justify-center gap-2 rounded-lg border border-border-seam px-4 py-3 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
413
|
+
children: [/* @__PURE__ */ C(g, { className: "h-4 w-4" }), "Contact Support"]
|
|
414
|
+
}), I && /* @__PURE__ */ w("button", {
|
|
415
|
+
type: "button",
|
|
416
|
+
onClick: z,
|
|
417
|
+
className: "flex-1 flex items-center justify-center gap-2 rounded-lg bg-foreground px-4 py-3 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
418
|
+
children: [/* @__PURE__ */ C(b, { className: "h-4 w-4" }), "Rate Service"]
|
|
419
|
+
})]
|
|
420
|
+
})
|
|
421
|
+
]
|
|
422
|
+
}), /* @__PURE__ */ w("div", {
|
|
423
|
+
className: "space-y-6",
|
|
424
|
+
children: [
|
|
425
|
+
/* @__PURE__ */ w("div", {
|
|
426
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
481
427
|
children: [
|
|
482
|
-
/* @__PURE__ */
|
|
483
|
-
className: "
|
|
484
|
-
children:
|
|
485
|
-
className: "text-text-secondary",
|
|
486
|
-
children: "Service Charge"
|
|
487
|
-
}), /* @__PURE__ */ C("span", {
|
|
488
|
-
className: "text-text-primary",
|
|
489
|
-
children: a(A.pricing.serviceCharge, { minimumFractionDigits: 0 })
|
|
490
|
-
})]
|
|
491
|
-
}),
|
|
492
|
-
/* @__PURE__ */ w("div", {
|
|
493
|
-
className: "flex justify-between",
|
|
494
|
-
children: [/* @__PURE__ */ C("span", {
|
|
495
|
-
className: "text-text-secondary",
|
|
496
|
-
children: "Convenience Fee"
|
|
497
|
-
}), /* @__PURE__ */ C("span", {
|
|
498
|
-
className: "text-text-primary",
|
|
499
|
-
children: a(A.pricing.convenienceFee, { minimumFractionDigits: 0 })
|
|
500
|
-
})]
|
|
428
|
+
/* @__PURE__ */ C("h3", {
|
|
429
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
430
|
+
children: "Cart Information"
|
|
501
431
|
}),
|
|
502
432
|
/* @__PURE__ */ w("div", {
|
|
503
|
-
className: "flex
|
|
504
|
-
children: [/* @__PURE__ */ C("
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
433
|
+
className: "flex items-center gap-3 mb-4",
|
|
434
|
+
children: [/* @__PURE__ */ C("img", {
|
|
435
|
+
src: N.provider.image,
|
|
436
|
+
alt: N.provider.name,
|
|
437
|
+
className: "h-14 w-14 rounded-lg object-cover"
|
|
438
|
+
}), /* @__PURE__ */ w("div", {
|
|
439
|
+
className: "min-w-0",
|
|
440
|
+
children: [
|
|
441
|
+
/* @__PURE__ */ C("p", {
|
|
442
|
+
className: "text-sm font-semibold text-text-primary",
|
|
443
|
+
children: N.provider.name
|
|
444
|
+
}),
|
|
445
|
+
/* @__PURE__ */ C("p", {
|
|
446
|
+
className: "text-xs text-text-secondary",
|
|
447
|
+
children: N.provider.category
|
|
448
|
+
}),
|
|
449
|
+
/* @__PURE__ */ w("div", {
|
|
450
|
+
className: "flex items-center gap-1 mt-0.5",
|
|
451
|
+
children: [
|
|
452
|
+
/* @__PURE__ */ C(b, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }),
|
|
453
|
+
/* @__PURE__ */ C("span", {
|
|
454
|
+
className: "text-xs font-medium text-text-primary",
|
|
455
|
+
children: N.provider.rating
|
|
456
|
+
}),
|
|
457
|
+
/* @__PURE__ */ w("span", {
|
|
458
|
+
className: "text-xs text-text-secondary",
|
|
459
|
+
children: [
|
|
460
|
+
"(",
|
|
461
|
+
N.provider.reviewCount,
|
|
462
|
+
")"
|
|
463
|
+
]
|
|
464
|
+
})
|
|
465
|
+
]
|
|
466
|
+
})
|
|
467
|
+
]
|
|
510
468
|
})]
|
|
511
469
|
}),
|
|
512
|
-
|
|
513
|
-
className: "
|
|
514
|
-
children:
|
|
515
|
-
className: "
|
|
516
|
-
children: "
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
})
|
|
470
|
+
/* @__PURE__ */ C("div", {
|
|
471
|
+
className: "space-y-2 text-sm mb-4",
|
|
472
|
+
children: /* @__PURE__ */ w("div", {
|
|
473
|
+
className: "flex items-start gap-2",
|
|
474
|
+
children: [/* @__PURE__ */ C(_, { className: "h-4 w-4 text-text-secondary shrink-0 mt-0.5" }), /* @__PURE__ */ C("span", {
|
|
475
|
+
className: "text-text-secondary",
|
|
476
|
+
children: N.provider.location
|
|
477
|
+
})]
|
|
478
|
+
})
|
|
521
479
|
}),
|
|
522
|
-
/* @__PURE__ */
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}), /* @__PURE__ */ C("span", {
|
|
528
|
-
className: "font-bold text-text-primary",
|
|
529
|
-
children: a(A.pricing.total, { minimumFractionDigits: 0 })
|
|
530
|
-
})]
|
|
480
|
+
/* @__PURE__ */ C("button", {
|
|
481
|
+
type: "button",
|
|
482
|
+
onClick: () => A(`/customer/carts/${N.provider.id}`),
|
|
483
|
+
className: "w-full rounded-lg border border-border-seam px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
484
|
+
children: "View Cart Menu"
|
|
531
485
|
})
|
|
532
486
|
]
|
|
533
|
-
})
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
/* @__PURE__ */ w("div", {
|
|
544
|
-
className: "flex items-center gap-2",
|
|
545
|
-
children: [/* @__PURE__ */ C(f, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
546
|
-
className: "text-xs text-text-secondary",
|
|
547
|
-
children: "Booked On"
|
|
548
|
-
}), /* @__PURE__ */ C("p", {
|
|
549
|
-
className: "text-sm text-text-primary",
|
|
550
|
-
children: o(A.createdAt)
|
|
551
|
-
})] })]
|
|
552
|
-
}),
|
|
553
|
-
/* @__PURE__ */ w("div", {
|
|
554
|
-
className: "flex items-center gap-2",
|
|
555
|
-
children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
556
|
-
className: "text-xs text-text-secondary",
|
|
557
|
-
children: "Scheduled"
|
|
558
|
-
}), /* @__PURE__ */ w("p", {
|
|
487
|
+
}),
|
|
488
|
+
/* @__PURE__ */ w("div", {
|
|
489
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
490
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
491
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
492
|
+
children: "Service Location"
|
|
493
|
+
}), /* @__PURE__ */ w("div", {
|
|
494
|
+
className: "flex items-start gap-3",
|
|
495
|
+
children: [/* @__PURE__ */ C(_, { className: "mt-0.5 h-5 w-5 shrink-0 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [
|
|
496
|
+
/* @__PURE__ */ C("p", {
|
|
559
497
|
className: "text-sm text-text-primary",
|
|
498
|
+
children: N.location.street
|
|
499
|
+
}),
|
|
500
|
+
/* @__PURE__ */ w("p", {
|
|
501
|
+
className: "text-sm text-text-secondary",
|
|
560
502
|
children: [
|
|
561
|
-
|
|
562
|
-
"
|
|
563
|
-
|
|
503
|
+
N.location.area,
|
|
504
|
+
", ",
|
|
505
|
+
N.location.city,
|
|
506
|
+
" - ",
|
|
507
|
+
N.location.pincode
|
|
564
508
|
]
|
|
565
|
-
})
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
509
|
+
}),
|
|
510
|
+
N.location.landmark && /* @__PURE__ */ w("p", {
|
|
511
|
+
className: "text-xs text-text-secondary mt-1",
|
|
512
|
+
children: ["Landmark: ", N.location.landmark]
|
|
513
|
+
})
|
|
514
|
+
] })]
|
|
515
|
+
})]
|
|
516
|
+
}),
|
|
517
|
+
/* @__PURE__ */ w("div", {
|
|
518
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
519
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
520
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
521
|
+
children: "Price Breakdown"
|
|
522
|
+
}), /* @__PURE__ */ w("div", {
|
|
523
|
+
className: "space-y-2.5 text-sm",
|
|
524
|
+
children: [
|
|
525
|
+
/* @__PURE__ */ w("div", {
|
|
526
|
+
className: "flex justify-between",
|
|
527
|
+
children: [/* @__PURE__ */ C("span", {
|
|
528
|
+
className: "text-text-secondary",
|
|
529
|
+
children: "Service Charge"
|
|
530
|
+
}), /* @__PURE__ */ C("span", {
|
|
531
|
+
className: "text-text-primary",
|
|
532
|
+
children: a(N.pricing.serviceCharge, { minimumFractionDigits: 0 })
|
|
533
|
+
})]
|
|
534
|
+
}),
|
|
535
|
+
/* @__PURE__ */ w("div", {
|
|
536
|
+
className: "flex justify-between",
|
|
537
|
+
children: [/* @__PURE__ */ C("span", {
|
|
538
|
+
className: "text-text-secondary",
|
|
539
|
+
children: "Convenience Fee"
|
|
540
|
+
}), /* @__PURE__ */ C("span", {
|
|
541
|
+
className: "text-text-primary",
|
|
542
|
+
children: a(N.pricing.convenienceFee, { minimumFractionDigits: 0 })
|
|
543
|
+
})]
|
|
544
|
+
}),
|
|
545
|
+
/* @__PURE__ */ w("div", {
|
|
546
|
+
className: "flex justify-between",
|
|
547
|
+
children: [/* @__PURE__ */ C("span", {
|
|
548
|
+
className: "text-text-secondary",
|
|
549
|
+
children: "Tax"
|
|
550
|
+
}), /* @__PURE__ */ C("span", {
|
|
551
|
+
className: "text-text-primary",
|
|
552
|
+
children: a(N.pricing.tax, { minimumFractionDigits: 0 })
|
|
553
|
+
})]
|
|
554
|
+
}),
|
|
555
|
+
N.pricing.discount > 0 && /* @__PURE__ */ w("div", {
|
|
556
|
+
className: "flex justify-between",
|
|
557
|
+
children: [/* @__PURE__ */ C("span", {
|
|
558
|
+
className: "text-status-success-text",
|
|
559
|
+
children: "Discount"
|
|
560
|
+
}), /* @__PURE__ */ w("span", {
|
|
561
|
+
className: "text-status-success-text",
|
|
562
|
+
children: ["-", a(N.pricing.discount, { minimumFractionDigits: 0 })]
|
|
563
|
+
})]
|
|
564
|
+
}),
|
|
565
|
+
/* @__PURE__ */ w("div", {
|
|
566
|
+
className: "flex justify-between border-t border-border-seam pt-2.5",
|
|
567
|
+
children: [/* @__PURE__ */ C("span", {
|
|
568
|
+
className: "font-semibold text-text-primary",
|
|
569
|
+
children: "Total"
|
|
570
|
+
}), /* @__PURE__ */ C("span", {
|
|
571
|
+
className: "font-bold text-text-primary",
|
|
572
|
+
children: a(N.pricing.total, { minimumFractionDigits: 0 })
|
|
573
|
+
})]
|
|
574
|
+
})
|
|
575
|
+
]
|
|
576
|
+
})]
|
|
577
|
+
}),
|
|
578
|
+
/* @__PURE__ */ w("div", {
|
|
579
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
580
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
581
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
582
|
+
children: "Booking Info"
|
|
583
|
+
}), /* @__PURE__ */ w("div", {
|
|
584
|
+
className: "space-y-3",
|
|
585
|
+
children: [
|
|
586
|
+
/* @__PURE__ */ w("div", {
|
|
587
|
+
className: "flex items-center gap-2",
|
|
588
|
+
children: [/* @__PURE__ */ C(f, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
589
|
+
className: "text-xs text-text-secondary",
|
|
590
|
+
children: "Booked On"
|
|
591
|
+
}), /* @__PURE__ */ C("p", {
|
|
592
|
+
className: "text-sm text-text-primary",
|
|
593
|
+
children: o(N.createdAt)
|
|
594
|
+
})] })]
|
|
595
|
+
}),
|
|
596
|
+
/* @__PURE__ */ w("div", {
|
|
597
|
+
className: "flex items-center gap-2",
|
|
598
|
+
children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
599
|
+
className: "text-xs text-text-secondary",
|
|
600
|
+
children: "Scheduled"
|
|
601
|
+
}), /* @__PURE__ */ w("p", {
|
|
602
|
+
className: "text-sm text-text-primary",
|
|
603
|
+
children: [
|
|
604
|
+
N.scheduledDate,
|
|
605
|
+
" at ",
|
|
606
|
+
N.scheduledTime
|
|
607
|
+
]
|
|
608
|
+
})] })]
|
|
609
|
+
}),
|
|
610
|
+
/* @__PURE__ */ w("div", {
|
|
611
|
+
className: "flex items-center gap-2",
|
|
612
|
+
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
613
|
+
className: "text-xs text-text-secondary",
|
|
614
|
+
children: "Duration"
|
|
615
|
+
}), /* @__PURE__ */ w("p", {
|
|
616
|
+
className: "text-sm text-text-primary",
|
|
617
|
+
children: [N.duration, " minutes"]
|
|
618
|
+
})] })]
|
|
619
|
+
})
|
|
620
|
+
]
|
|
621
|
+
})]
|
|
622
|
+
}),
|
|
623
|
+
L && /* @__PURE__ */ w("button", {
|
|
624
|
+
type: "button",
|
|
625
|
+
className: "w-full inline-flex items-center justify-center gap-2 rounded-lg border border-status-error-border bg-status-error-bg-subtle px-4 py-3 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
|
|
626
|
+
children: [/* @__PURE__ */ C(x, { className: "h-4 w-4" }), "Cancel Booking"]
|
|
627
|
+
})
|
|
628
|
+
]
|
|
629
|
+
})]
|
|
630
|
+
})
|
|
631
|
+
]
|
|
588
632
|
});
|
|
589
633
|
}
|
|
590
634
|
//#endregion
|
|
591
|
-
export {
|
|
635
|
+
export { A as BookingDetailsPage };
|
|
592
636
|
|
|
593
637
|
//# sourceMappingURL=BookingDetailsPage.js.map
|