@burdenoff/microfe-coolandlovely 2026.625.1 → 2026.625.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/coolandlovely/pages/HomePage.js +263 -258
- package/dist/coolandlovely/pages/HomePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +67 -61
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminDashboard.js +79 -45
- package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +39 -33
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +227 -222
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js +65 -60
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +235 -230
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/CartManagementPage.js +268 -263
- package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/UserManagementPage.js +268 -263
- package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +92 -84
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +257 -252
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +587 -548
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +171 -166
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +219 -211
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +671 -670
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +515 -514
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +244 -246
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/HelpSupportPage.js +96 -96
- package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js +50 -44
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/SettingsPage.js +745 -736
- package/dist/coolandlovely/pages/common/SettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +394 -357
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDetailPage.js +179 -176
- package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +215 -204
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CheckoutPage.js +212 -215
- package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js +438 -396
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +525 -488
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +522 -513
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/FavoritesPage.js +86 -76
- package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +118 -109
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +312 -275
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +82 -76
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/ReviewsPage.js +83 -73
- package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +61 -55
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +293 -255
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +238 -232
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +61 -55
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js +356 -320
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +107 -101
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +170 -137
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +386 -381
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +359 -322
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js +574 -537
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +81 -76
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +82 -77
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +78 -73
- package/dist/coolandlovely/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/coolandlovely/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,446 @@ 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, {
|
|
195
|
-
|
|
196
|
+
illustration: "empty-search",
|
|
196
197
|
title: "Booking not found",
|
|
197
|
-
description: `No booking found with ID"${
|
|
198
|
+
description: `No booking found with ID"${O}".`,
|
|
198
199
|
action: /* @__PURE__ */ C("button", {
|
|
199
200
|
type: "button",
|
|
200
|
-
onClick: () =>
|
|
201
|
+
onClick: () => A("/customer/dashboard"),
|
|
201
202
|
className: "rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
202
203
|
children: "Go to Dashboard"
|
|
203
204
|
})
|
|
204
205
|
})
|
|
205
206
|
});
|
|
206
|
-
let
|
|
207
|
+
let F = N.status === "cancelled", I = N.status === "completed", L = !F && !I, R = () => {
|
|
208
|
+
P("Support team will contact you shortly.");
|
|
209
|
+
}, z = () => {
|
|
210
|
+
P("Thank you! Rating feature coming soon.");
|
|
211
|
+
};
|
|
207
212
|
return /* @__PURE__ */ w(n, {
|
|
208
213
|
title: /* @__PURE__ */ w("div", {
|
|
209
214
|
className: "flex items-center gap-3",
|
|
210
215
|
children: [/* @__PURE__ */ C("button", {
|
|
211
216
|
type: "button",
|
|
212
|
-
onClick: () =>
|
|
217
|
+
onClick: () => A("/customer/dashboard"),
|
|
213
218
|
className: "rounded-md p-1 text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
|
|
214
219
|
children: /* @__PURE__ */ C(u, { className: "h-5 w-5" })
|
|
215
|
-
}), /* @__PURE__ */ w("span", { children: ["Booking #",
|
|
220
|
+
}), /* @__PURE__ */ w("span", { children: ["Booking #", N.id] })]
|
|
216
221
|
}),
|
|
217
|
-
actions: /* @__PURE__ */ C(r, { status:
|
|
218
|
-
children: [
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
className: "
|
|
222
|
-
children:
|
|
223
|
-
})
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
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
|
-
|
|
222
|
+
actions: /* @__PURE__ */ C(r, { status: N.status }),
|
|
223
|
+
children: [
|
|
224
|
+
/* @__PURE__ */ C(D, {
|
|
225
|
+
className: "mb-6",
|
|
226
|
+
icon: /* @__PURE__ */ C(f, { className: "h-4 w-4" }),
|
|
227
|
+
children: "Everything about this service booking in one view: what you booked, who is providing it, when it is scheduled, where it stands right now, and the full cost. Reach support, rate the service when it is done, or check the cart details — all from here."
|
|
228
|
+
}),
|
|
229
|
+
/* @__PURE__ */ C(E, {
|
|
230
|
+
className: "mb-6",
|
|
231
|
+
storageKey: "coolandlovely-booking-details",
|
|
232
|
+
steps: [
|
|
233
|
+
{
|
|
234
|
+
id: "support",
|
|
235
|
+
label: "Contact support",
|
|
236
|
+
description: "Have a question about this booking? Reach the support team.",
|
|
237
|
+
icon: /* @__PURE__ */ C(g, { className: "h-4 w-4" }),
|
|
238
|
+
onClick: R
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
id: "rate",
|
|
242
|
+
label: "Rate the service",
|
|
243
|
+
description: "Share your experience once the service is completed.",
|
|
244
|
+
icon: /* @__PURE__ */ C(b, { className: "h-4 w-4" }),
|
|
245
|
+
onClick: z,
|
|
246
|
+
done: !I
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
id: "rebook",
|
|
250
|
+
label: "Book this provider again",
|
|
251
|
+
description: "Liked the service? Book the same provider for another time.",
|
|
252
|
+
icon: /* @__PURE__ */ C(f, { className: "h-4 w-4" }),
|
|
253
|
+
onClick: () => A("/customer/carts")
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
}),
|
|
257
|
+
j && /* @__PURE__ */ w("div", {
|
|
258
|
+
className: "mb-4 rounded-lg border border-status-success-border/30 bg-status-success-bg-subtle/10 p-3 flex items-center gap-2",
|
|
259
|
+
children: [/* @__PURE__ */ C(p, { className: "h-4 w-4 text-status-success-text shrink-0" }), /* @__PURE__ */ C("p", {
|
|
260
|
+
className: "text-sm text-status-success-text",
|
|
261
|
+
children: j
|
|
262
|
+
})]
|
|
263
|
+
}),
|
|
264
|
+
/* @__PURE__ */ w("div", {
|
|
265
|
+
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
266
|
+
children: [/* @__PURE__ */ w("div", {
|
|
267
|
+
className: "lg:col-span-2 space-y-6",
|
|
268
|
+
children: [
|
|
269
|
+
/* @__PURE__ */ w("div", {
|
|
270
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
271
|
+
children: [
|
|
272
|
+
/* @__PURE__ */ C("h2", {
|
|
273
|
+
className: "text-lg font-semibold text-text-primary",
|
|
274
|
+
children: N.serviceName
|
|
275
|
+
}),
|
|
276
|
+
/* @__PURE__ */ C("p", {
|
|
277
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
278
|
+
children: N.serviceDescription
|
|
279
|
+
}),
|
|
280
|
+
/* @__PURE__ */ w("div", {
|
|
281
|
+
className: "mt-4 flex flex-wrap gap-4 text-sm text-text-secondary",
|
|
282
|
+
children: [
|
|
283
|
+
/* @__PURE__ */ w("div", {
|
|
284
|
+
className: "flex items-center gap-1.5",
|
|
285
|
+
children: [/* @__PURE__ */ C(d, { className: "h-4 w-4" }), /* @__PURE__ */ C("span", { children: N.scheduledDate })]
|
|
286
|
+
}),
|
|
287
|
+
/* @__PURE__ */ w("div", {
|
|
288
|
+
className: "flex items-center gap-1.5",
|
|
289
|
+
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), /* @__PURE__ */ C("span", { children: N.scheduledTime })]
|
|
290
|
+
}),
|
|
291
|
+
/* @__PURE__ */ w("div", {
|
|
292
|
+
className: "flex items-center gap-1.5",
|
|
293
|
+
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), /* @__PURE__ */ w("span", { children: [N.duration, " min"] })]
|
|
294
|
+
})
|
|
295
|
+
]
|
|
296
|
+
}),
|
|
297
|
+
N.notes && /* @__PURE__ */ w("div", {
|
|
298
|
+
className: "mt-4 rounded-md bg-bg-sunken p-3",
|
|
299
|
+
children: [/* @__PURE__ */ C("p", {
|
|
300
|
+
className: "text-xs text-text-secondary mb-1",
|
|
301
|
+
children: "Notes"
|
|
302
|
+
}), /* @__PURE__ */ C("p", {
|
|
303
|
+
className: "text-sm text-text-primary",
|
|
304
|
+
children: N.notes
|
|
274
305
|
})]
|
|
275
|
-
}),
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
})]
|
|
279
|
-
})
|
|
280
|
-
]
|
|
281
|
-
}),
|
|
282
|
-
/* @__PURE__ */ w("div", {
|
|
283
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
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-status-warning-text text-status-warning-text" }), /* @__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-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
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",
|
|
306
|
+
}),
|
|
307
|
+
N.cancellationReason && /* @__PURE__ */ w("div", {
|
|
308
|
+
className: "mt-4 rounded-md bg-status-error-bg-subtle/5 border border-status-error-border/20 p-3",
|
|
340
309
|
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-status-success-bg-subtle/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"
|
|
310
|
+
className: "flex items-center gap-2 mb-1",
|
|
311
|
+
children: [/* @__PURE__ */ C(l, { className: "h-3.5 w-3.5 text-status-error-text" }), /* @__PURE__ */ C("p", {
|
|
312
|
+
className: "text-xs font-medium text-status-error-text",
|
|
313
|
+
children: "Cancellation Reason"
|
|
354
314
|
})]
|
|
315
|
+
}), /* @__PURE__ */ C("p", {
|
|
316
|
+
className: "text-sm text-text-primary",
|
|
317
|
+
children: N.cancellationReason
|
|
355
318
|
})]
|
|
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-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
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",
|
|
319
|
+
})
|
|
320
|
+
]
|
|
321
|
+
}),
|
|
322
|
+
/* @__PURE__ */ w("div", {
|
|
323
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
324
|
+
children: [
|
|
325
|
+
/* @__PURE__ */ C("h2", {
|
|
326
|
+
className: "text-base font-semibold text-text-primary mb-4",
|
|
327
|
+
children: "Service Provider"
|
|
328
|
+
}),
|
|
329
|
+
/* @__PURE__ */ w("div", {
|
|
330
|
+
className: "flex items-center gap-4",
|
|
397
331
|
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
|
|
332
|
+
/* @__PURE__ */ C("div", {
|
|
333
|
+
className: "flex h-12 w-12 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
|
|
334
|
+
children: /* @__PURE__ */ C(y, { className: "h-6 w-6" })
|
|
405
335
|
}),
|
|
406
336
|
/* @__PURE__ */ w("div", {
|
|
407
|
-
className: "flex
|
|
337
|
+
className: "flex-1 min-w-0",
|
|
408
338
|
children: [
|
|
409
|
-
/* @__PURE__ */ C(
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
children: A.provider.rating
|
|
339
|
+
/* @__PURE__ */ C("p", {
|
|
340
|
+
className: "text-sm font-semibold text-text-primary",
|
|
341
|
+
children: N.provider.name
|
|
413
342
|
}),
|
|
414
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ C("p", {
|
|
415
344
|
className: "text-xs text-text-secondary",
|
|
416
|
-
children:
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
345
|
+
children: N.provider.category
|
|
346
|
+
}),
|
|
347
|
+
/* @__PURE__ */ w("div", {
|
|
348
|
+
className: "flex items-center gap-1 mt-1",
|
|
349
|
+
children: [/* @__PURE__ */ C(b, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ C("span", {
|
|
350
|
+
className: "text-xs font-medium text-text-primary",
|
|
351
|
+
children: N.provider.rating
|
|
352
|
+
})]
|
|
421
353
|
})
|
|
422
354
|
]
|
|
355
|
+
}),
|
|
356
|
+
/* @__PURE__ */ C("a", {
|
|
357
|
+
href: `tel:${N.provider.phone}`,
|
|
358
|
+
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",
|
|
359
|
+
children: /* @__PURE__ */ C(v, { className: "h-4 w-4" })
|
|
423
360
|
})
|
|
424
361
|
]
|
|
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-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
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
362
|
}),
|
|
467
|
-
|
|
468
|
-
className: "text-
|
|
469
|
-
children: [
|
|
363
|
+
/* @__PURE__ */ w("div", {
|
|
364
|
+
className: "mt-3 flex items-center gap-2 text-sm text-text-secondary",
|
|
365
|
+
children: [/* @__PURE__ */ C(v, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ C("span", { children: N.provider.phone })]
|
|
470
366
|
})
|
|
471
|
-
]
|
|
472
|
-
})
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
367
|
+
]
|
|
368
|
+
}),
|
|
369
|
+
/* @__PURE__ */ w(T, {
|
|
370
|
+
className: "p-6",
|
|
371
|
+
children: [/* @__PURE__ */ C("h2", {
|
|
372
|
+
className: "text-base font-semibold text-text-primary mb-5",
|
|
373
|
+
children: "Booking Timeline"
|
|
374
|
+
}), /* @__PURE__ */ C("div", {
|
|
375
|
+
className: "relative",
|
|
376
|
+
children: N.timeline.map((e, n) => {
|
|
377
|
+
let r = n === N.timeline.length - 1, i = e.status === "cancelled", a = i ? x : e.completed ? p : m;
|
|
378
|
+
return /* @__PURE__ */ w("div", {
|
|
379
|
+
className: "flex gap-4",
|
|
380
|
+
children: [/* @__PURE__ */ w("div", {
|
|
381
|
+
className: "flex flex-col items-center",
|
|
382
|
+
children: [/* @__PURE__ */ C("div", {
|
|
383
|
+
className: t("flex h-8 w-8 shrink-0 items-center justify-center rounded-full", i ? "bg-status-error-bg-subtle/10 text-status-error-text" : e.completed ? "bg-status-success-bg-subtle/10 text-status-success-text" : "bg-bg-sunken text-text-secondary"),
|
|
384
|
+
children: /* @__PURE__ */ C(a, { className: "h-4 w-4" })
|
|
385
|
+
}), !r && /* @__PURE__ */ C("div", { className: t("w-0.5 flex-1 my-1", e.completed ? "bg-status-success-bg-subtle/30" : "bg-border") })]
|
|
386
|
+
}), /* @__PURE__ */ w("div", {
|
|
387
|
+
className: t("pb-6", r && "pb-0"),
|
|
388
|
+
children: [/* @__PURE__ */ C("p", {
|
|
389
|
+
className: "text-sm font-medium text-text-primary",
|
|
390
|
+
children: e.label
|
|
391
|
+
}), /* @__PURE__ */ C("p", {
|
|
392
|
+
className: "mt-0.5 text-xs text-text-secondary",
|
|
393
|
+
children: e.timestamp ? o(e.timestamp) : "Pending"
|
|
394
|
+
})]
|
|
395
|
+
})]
|
|
396
|
+
}, `${e.status}-${n}`);
|
|
397
|
+
})
|
|
398
|
+
})]
|
|
399
|
+
}),
|
|
400
|
+
/* @__PURE__ */ w("div", {
|
|
401
|
+
className: "flex flex-col sm:flex-row gap-3",
|
|
402
|
+
children: [/* @__PURE__ */ w("button", {
|
|
403
|
+
type: "button",
|
|
404
|
+
onClick: R,
|
|
405
|
+
className: "flex-1 flex items-center justify-center gap-2 rounded-lg border border-border-subtle px-4 py-3 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
406
|
+
children: [/* @__PURE__ */ C(g, { className: "h-4 w-4" }), "Contact Support"]
|
|
407
|
+
}), I && /* @__PURE__ */ w("button", {
|
|
408
|
+
type: "button",
|
|
409
|
+
onClick: z,
|
|
410
|
+
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",
|
|
411
|
+
children: [/* @__PURE__ */ C(b, { className: "h-4 w-4" }), "Rate Service"]
|
|
412
|
+
})]
|
|
413
|
+
})
|
|
414
|
+
]
|
|
415
|
+
}), /* @__PURE__ */ w("div", {
|
|
416
|
+
className: "space-y-6",
|
|
417
|
+
children: [
|
|
418
|
+
/* @__PURE__ */ w("div", {
|
|
419
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
481
420
|
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
|
-
})]
|
|
421
|
+
/* @__PURE__ */ C("h3", {
|
|
422
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
423
|
+
children: "Cart Information"
|
|
501
424
|
}),
|
|
502
425
|
/* @__PURE__ */ w("div", {
|
|
503
|
-
className: "flex
|
|
504
|
-
children: [/* @__PURE__ */ C("
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
426
|
+
className: "flex items-center gap-3 mb-4",
|
|
427
|
+
children: [/* @__PURE__ */ C("img", {
|
|
428
|
+
src: N.provider.image,
|
|
429
|
+
alt: N.provider.name,
|
|
430
|
+
className: "h-14 w-14 rounded-lg object-cover"
|
|
431
|
+
}), /* @__PURE__ */ w("div", {
|
|
432
|
+
className: "min-w-0",
|
|
433
|
+
children: [
|
|
434
|
+
/* @__PURE__ */ C("p", {
|
|
435
|
+
className: "text-sm font-semibold text-text-primary",
|
|
436
|
+
children: N.provider.name
|
|
437
|
+
}),
|
|
438
|
+
/* @__PURE__ */ C("p", {
|
|
439
|
+
className: "text-xs text-text-secondary",
|
|
440
|
+
children: N.provider.category
|
|
441
|
+
}),
|
|
442
|
+
/* @__PURE__ */ w("div", {
|
|
443
|
+
className: "flex items-center gap-1 mt-0.5",
|
|
444
|
+
children: [
|
|
445
|
+
/* @__PURE__ */ C(b, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }),
|
|
446
|
+
/* @__PURE__ */ C("span", {
|
|
447
|
+
className: "text-xs font-medium text-text-primary",
|
|
448
|
+
children: N.provider.rating
|
|
449
|
+
}),
|
|
450
|
+
/* @__PURE__ */ w("span", {
|
|
451
|
+
className: "text-xs text-text-secondary",
|
|
452
|
+
children: [
|
|
453
|
+
"(",
|
|
454
|
+
N.provider.reviewCount,
|
|
455
|
+
")"
|
|
456
|
+
]
|
|
457
|
+
})
|
|
458
|
+
]
|
|
459
|
+
})
|
|
460
|
+
]
|
|
510
461
|
})]
|
|
511
462
|
}),
|
|
512
|
-
|
|
513
|
-
className: "
|
|
514
|
-
children:
|
|
515
|
-
className: "
|
|
516
|
-
children: "
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
})
|
|
463
|
+
/* @__PURE__ */ C("div", {
|
|
464
|
+
className: "space-y-2 text-sm mb-4",
|
|
465
|
+
children: /* @__PURE__ */ w("div", {
|
|
466
|
+
className: "flex items-start gap-2",
|
|
467
|
+
children: [/* @__PURE__ */ C(_, { className: "h-4 w-4 text-text-secondary shrink-0 mt-0.5" }), /* @__PURE__ */ C("span", {
|
|
468
|
+
className: "text-text-secondary",
|
|
469
|
+
children: N.provider.location
|
|
470
|
+
})]
|
|
471
|
+
})
|
|
521
472
|
}),
|
|
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
|
-
})]
|
|
473
|
+
/* @__PURE__ */ C("button", {
|
|
474
|
+
type: "button",
|
|
475
|
+
onClick: () => A(`/customer/carts/${N.provider.id}`),
|
|
476
|
+
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",
|
|
477
|
+
children: "View Cart Menu"
|
|
531
478
|
})
|
|
532
479
|
]
|
|
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", {
|
|
480
|
+
}),
|
|
481
|
+
/* @__PURE__ */ w("div", {
|
|
482
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
483
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
484
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
485
|
+
children: "Service Location"
|
|
486
|
+
}), /* @__PURE__ */ w("div", {
|
|
487
|
+
className: "flex items-start gap-3",
|
|
488
|
+
children: [/* @__PURE__ */ C(_, { className: "mt-0.5 h-5 w-5 shrink-0 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [
|
|
489
|
+
/* @__PURE__ */ C("p", {
|
|
559
490
|
className: "text-sm text-text-primary",
|
|
491
|
+
children: N.location.street
|
|
492
|
+
}),
|
|
493
|
+
/* @__PURE__ */ w("p", {
|
|
494
|
+
className: "text-sm text-text-secondary",
|
|
560
495
|
children: [
|
|
561
|
-
|
|
562
|
-
"
|
|
563
|
-
|
|
496
|
+
N.location.area,
|
|
497
|
+
", ",
|
|
498
|
+
N.location.city,
|
|
499
|
+
" - ",
|
|
500
|
+
N.location.pincode
|
|
564
501
|
]
|
|
565
|
-
})
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
502
|
+
}),
|
|
503
|
+
N.location.landmark && /* @__PURE__ */ w("p", {
|
|
504
|
+
className: "text-xs text-text-secondary mt-1",
|
|
505
|
+
children: ["Landmark: ", N.location.landmark]
|
|
506
|
+
})
|
|
507
|
+
] })]
|
|
508
|
+
})]
|
|
509
|
+
}),
|
|
510
|
+
/* @__PURE__ */ w("div", {
|
|
511
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
512
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
513
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
514
|
+
children: "Price Breakdown"
|
|
515
|
+
}), /* @__PURE__ */ w("div", {
|
|
516
|
+
className: "space-y-2.5 text-sm",
|
|
517
|
+
children: [
|
|
518
|
+
/* @__PURE__ */ w("div", {
|
|
519
|
+
className: "flex justify-between",
|
|
520
|
+
children: [/* @__PURE__ */ C("span", {
|
|
521
|
+
className: "text-text-secondary",
|
|
522
|
+
children: "Service Charge"
|
|
523
|
+
}), /* @__PURE__ */ C("span", {
|
|
524
|
+
className: "text-text-primary",
|
|
525
|
+
children: a(N.pricing.serviceCharge, { minimumFractionDigits: 0 })
|
|
526
|
+
})]
|
|
527
|
+
}),
|
|
528
|
+
/* @__PURE__ */ w("div", {
|
|
529
|
+
className: "flex justify-between",
|
|
530
|
+
children: [/* @__PURE__ */ C("span", {
|
|
531
|
+
className: "text-text-secondary",
|
|
532
|
+
children: "Convenience Fee"
|
|
533
|
+
}), /* @__PURE__ */ C("span", {
|
|
534
|
+
className: "text-text-primary",
|
|
535
|
+
children: a(N.pricing.convenienceFee, { minimumFractionDigits: 0 })
|
|
536
|
+
})]
|
|
537
|
+
}),
|
|
538
|
+
/* @__PURE__ */ w("div", {
|
|
539
|
+
className: "flex justify-between",
|
|
540
|
+
children: [/* @__PURE__ */ C("span", {
|
|
541
|
+
className: "text-text-secondary",
|
|
542
|
+
children: "Tax"
|
|
543
|
+
}), /* @__PURE__ */ C("span", {
|
|
544
|
+
className: "text-text-primary",
|
|
545
|
+
children: a(N.pricing.tax, { minimumFractionDigits: 0 })
|
|
546
|
+
})]
|
|
547
|
+
}),
|
|
548
|
+
N.pricing.discount > 0 && /* @__PURE__ */ w("div", {
|
|
549
|
+
className: "flex justify-between",
|
|
550
|
+
children: [/* @__PURE__ */ C("span", {
|
|
551
|
+
className: "text-status-success-text",
|
|
552
|
+
children: "Discount"
|
|
553
|
+
}), /* @__PURE__ */ w("span", {
|
|
554
|
+
className: "text-status-success-text",
|
|
555
|
+
children: ["-", a(N.pricing.discount, { minimumFractionDigits: 0 })]
|
|
556
|
+
})]
|
|
557
|
+
}),
|
|
558
|
+
/* @__PURE__ */ w("div", {
|
|
559
|
+
className: "flex justify-between border-t border-border-subtle pt-2.5",
|
|
560
|
+
children: [/* @__PURE__ */ C("span", {
|
|
561
|
+
className: "font-semibold text-text-primary",
|
|
562
|
+
children: "Total"
|
|
563
|
+
}), /* @__PURE__ */ C("span", {
|
|
564
|
+
className: "font-bold text-text-primary",
|
|
565
|
+
children: a(N.pricing.total, { minimumFractionDigits: 0 })
|
|
566
|
+
})]
|
|
567
|
+
})
|
|
568
|
+
]
|
|
569
|
+
})]
|
|
570
|
+
}),
|
|
571
|
+
/* @__PURE__ */ w("div", {
|
|
572
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
573
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
574
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
575
|
+
children: "Booking Info"
|
|
576
|
+
}), /* @__PURE__ */ w("div", {
|
|
577
|
+
className: "space-y-3",
|
|
578
|
+
children: [
|
|
579
|
+
/* @__PURE__ */ w("div", {
|
|
580
|
+
className: "flex items-center gap-2",
|
|
581
|
+
children: [/* @__PURE__ */ C(f, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
582
|
+
className: "text-xs text-text-secondary",
|
|
583
|
+
children: "Booked On"
|
|
584
|
+
}), /* @__PURE__ */ C("p", {
|
|
585
|
+
className: "text-sm text-text-primary",
|
|
586
|
+
children: o(N.createdAt)
|
|
587
|
+
})] })]
|
|
588
|
+
}),
|
|
589
|
+
/* @__PURE__ */ w("div", {
|
|
590
|
+
className: "flex items-center gap-2",
|
|
591
|
+
children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
592
|
+
className: "text-xs text-text-secondary",
|
|
593
|
+
children: "Scheduled"
|
|
594
|
+
}), /* @__PURE__ */ w("p", {
|
|
595
|
+
className: "text-sm text-text-primary",
|
|
596
|
+
children: [
|
|
597
|
+
N.scheduledDate,
|
|
598
|
+
" at ",
|
|
599
|
+
N.scheduledTime
|
|
600
|
+
]
|
|
601
|
+
})] })]
|
|
602
|
+
}),
|
|
603
|
+
/* @__PURE__ */ w("div", {
|
|
604
|
+
className: "flex items-center gap-2",
|
|
605
|
+
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
606
|
+
className: "text-xs text-text-secondary",
|
|
607
|
+
children: "Duration"
|
|
608
|
+
}), /* @__PURE__ */ w("p", {
|
|
609
|
+
className: "text-sm text-text-primary",
|
|
610
|
+
children: [N.duration, " minutes"]
|
|
611
|
+
})] })]
|
|
612
|
+
})
|
|
613
|
+
]
|
|
614
|
+
})]
|
|
615
|
+
}),
|
|
616
|
+
L && /* @__PURE__ */ w("button", {
|
|
617
|
+
type: "button",
|
|
618
|
+
className: "w-full inline-flex items-center justify-center gap-2 rounded-lg border border-status-error-border/30 bg-status-error-bg-subtle/5 px-4 py-3 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle/10 transition-colors",
|
|
619
|
+
children: [/* @__PURE__ */ C(x, { className: "h-4 w-4" }), "Cancel Booking"]
|
|
620
|
+
})
|
|
621
|
+
]
|
|
622
|
+
})]
|
|
623
|
+
})
|
|
624
|
+
]
|
|
588
625
|
});
|
|
589
626
|
}
|
|
590
627
|
//#endregion
|
|
591
|
-
export {
|
|
628
|
+
export { A as BookingDetailsPage };
|
|
592
629
|
|
|
593
630
|
//# sourceMappingURL=BookingDetailsPage.js.map
|