@burdenoff/microfe-adaptercloud 2026.614.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/adaptercloud/AdapterCloudRoot.js +177 -0
- package/dist/adaptercloud/AdapterCloudRoot.js.map +1 -0
- package/dist/adaptercloud/AdapterCloudRoutes.js +215 -0
- package/dist/adaptercloud/AdapterCloudRoutes.js.map +1 -0
- package/dist/adaptercloud/components/EmptyState.js +28 -0
- package/dist/adaptercloud/components/EmptyState.js.map +1 -0
- package/dist/adaptercloud/components/InvestmentCard.js +96 -0
- package/dist/adaptercloud/components/InvestmentCard.js.map +1 -0
- package/dist/adaptercloud/components/MetricsCard.js +46 -0
- package/dist/adaptercloud/components/MetricsCard.js.map +1 -0
- package/dist/adaptercloud/components/PageLayout.js +26 -0
- package/dist/adaptercloud/components/PageLayout.js.map +1 -0
- package/dist/adaptercloud/components/RatingDisplay.js +35 -0
- package/dist/adaptercloud/components/RatingDisplay.js.map +1 -0
- package/dist/adaptercloud/components/StatusBadge.js +45 -0
- package/dist/adaptercloud/components/StatusBadge.js.map +1 -0
- package/dist/adaptercloud/context/AdapterCloudContext.js +93 -0
- package/dist/adaptercloud/context/AdapterCloudContext.js.map +1 -0
- package/dist/adaptercloud/context/index.js +1 -0
- package/dist/adaptercloud/hooks/useAdapterCloudApi.js +223 -0
- package/dist/adaptercloud/hooks/useAdapterCloudApi.js.map +1 -0
- package/dist/adaptercloud/index.js +7 -0
- package/dist/adaptercloud/mocks/data.js +1517 -0
- package/dist/adaptercloud/mocks/data.js.map +1 -0
- package/dist/adaptercloud/mocks/users.js +34 -0
- package/dist/adaptercloud/mocks/users.js.map +1 -0
- package/dist/adaptercloud/pages/HomePage.js +921 -0
- package/dist/adaptercloud/pages/HomePage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +645 -0
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +639 -0
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +421 -0
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +660 -0
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +259 -0
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +649 -0
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +869 -0
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +893 -0
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +834 -0
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +700 -0
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +760 -0
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +886 -0
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +631 -0
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +913 -0
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +881 -0
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +833 -0
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +1325 -0
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -0
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +665 -0
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +1 -0
- package/dist/adaptercloud/pages/common/SettingsPage.js +964 -0
- package/dist/adaptercloud/pages/common/SettingsPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +593 -0
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +620 -0
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +547 -0
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +532 -0
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +496 -0
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +621 -0
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +623 -0
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +477 -0
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +438 -0
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +388 -0
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +488 -0
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +606 -0
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +443 -0
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +849 -0
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +939 -0
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +681 -0
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +419 -0
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +399 -0
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +569 -0
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +1065 -0
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +496 -0
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -0
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +634 -0
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +675 -0
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -0
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +687 -0
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +578 -0
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js.map +1 -0
- package/dist/adaptercloud/store/adaptercloudStore.js +38 -0
- package/dist/adaptercloud/store/adaptercloudStore.js.map +1 -0
- package/dist/adaptercloud/store/index.js +1 -0
- package/dist/adaptercloud/utils/cn.js +10 -0
- package/dist/adaptercloud/utils/cn.js.map +1 -0
- package/dist/adaptercloud/utils/formatters.js +51 -0
- package/dist/adaptercloud/utils/formatters.js.map +1 -0
- package/dist/adaptercloud/utils/navigation.js +9 -0
- package/dist/adaptercloud/utils/navigation.js.map +1 -0
- package/dist/index.js +7 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/package.json +106 -0
|
@@ -0,0 +1,623 @@
|
|
|
1
|
+
import { useAdapterCloud as e } from "../../context/AdapterCloudContext.js";
|
|
2
|
+
import { cn as t } from "../../utils/cn.js";
|
|
3
|
+
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
+
import { EmptyState as r } from "../../components/EmptyState.js";
|
|
5
|
+
import { formatCurrency as i } from "../../utils/formatters.js";
|
|
6
|
+
import { getCartById as a } from "../../mocks/data.js";
|
|
7
|
+
import { useMemo as o, useState as s } from "react";
|
|
8
|
+
import { AlertCircle as c, ArrowLeft as l, ArrowRight as u, Calendar as d, CheckCircle2 as f, Clock as p, CreditCard as m, Home as h, Loader2 as g, MapPin as _, Navigation as v, Phone as y, Smartphone as b, Wallet as x } from "lucide-react";
|
|
9
|
+
import { useParams as S } from "react-router-dom";
|
|
10
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
11
|
+
//#region src/adaptercloud/pages/customer/DirectServiceBookingPage.tsx
|
|
12
|
+
var E = [
|
|
13
|
+
"location",
|
|
14
|
+
"details",
|
|
15
|
+
"payment",
|
|
16
|
+
"confirmation"
|
|
17
|
+
], D = {
|
|
18
|
+
location: "Location",
|
|
19
|
+
details: "Details",
|
|
20
|
+
payment: "Payment",
|
|
21
|
+
confirmation: "Confirmation"
|
|
22
|
+
};
|
|
23
|
+
function O() {
|
|
24
|
+
let e = [], t = new Date((/* @__PURE__ */ new Date()).getTime() + 30 * 6e4);
|
|
25
|
+
for (let n = 0; n < 8; n++) {
|
|
26
|
+
let r = new Date(t.getTime() + n * 30 * 6e4), i = r.toTimeString().slice(0, 5), a = r.toLocaleTimeString([], {
|
|
27
|
+
hour: "2-digit",
|
|
28
|
+
minute: "2-digit"
|
|
29
|
+
});
|
|
30
|
+
e.push({
|
|
31
|
+
value: i,
|
|
32
|
+
label: a
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return e;
|
|
36
|
+
}
|
|
37
|
+
function k() {
|
|
38
|
+
let { cartId: k } = S(), { navigateTo: A } = e(), j = o(() => k ? a(k) : void 0, [k]), [M, N] = s("location"), [P, F] = s(!1), [I, L] = s({
|
|
39
|
+
address: "",
|
|
40
|
+
landmark: "",
|
|
41
|
+
instructions: "",
|
|
42
|
+
phoneNumber: ""
|
|
43
|
+
}), [R, z] = s({
|
|
44
|
+
preferredTime: "",
|
|
45
|
+
specialInstructions: "",
|
|
46
|
+
isUrgent: !1
|
|
47
|
+
}), [B, V] = s("upi"), [H, U] = s(null);
|
|
48
|
+
if (!j) return /* @__PURE__ */ w(n, {
|
|
49
|
+
title: "Cart Not Found",
|
|
50
|
+
children: /* @__PURE__ */ w(r, {
|
|
51
|
+
icon: /* @__PURE__ */ w(h, { className: "h-12 w-12" }),
|
|
52
|
+
title: "Service not available",
|
|
53
|
+
description: "Direct service is not available for this cart.",
|
|
54
|
+
action: /* @__PURE__ */ w("button", {
|
|
55
|
+
type: "button",
|
|
56
|
+
onClick: () => A("/customer/carts"),
|
|
57
|
+
className: "rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
58
|
+
children: "Browse Carts"
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
});
|
|
62
|
+
let W = O(), G = E.indexOf(M), K = () => {
|
|
63
|
+
if (!navigator.geolocation) {
|
|
64
|
+
alert("Geolocation is not supported by this browser.");
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
navigator.geolocation.getCurrentPosition(() => {
|
|
68
|
+
L((e) => ({
|
|
69
|
+
...e,
|
|
70
|
+
address: e.address || "Current location detected"
|
|
71
|
+
})), alert("Location detected successfully!");
|
|
72
|
+
}, () => {
|
|
73
|
+
alert("Failed to get your location. Please enter address manually.");
|
|
74
|
+
});
|
|
75
|
+
}, q = () => I.address.trim() ? I.phoneNumber.trim() ? !0 : (alert("Please enter your phone number."), !1) : (alert("Please enter your address."), !1), J = () => R.preferredTime ? !0 : (alert("Please select a preferred time slot."), !1), Y = () => {
|
|
76
|
+
M === "location" && q() ? N("details") : M === "details" && J() ? N("payment") : M === "payment" && Z();
|
|
77
|
+
}, X = () => {
|
|
78
|
+
M === "details" ? N("location") : M === "payment" && N("details");
|
|
79
|
+
}, Z = () => {
|
|
80
|
+
F(!0), setTimeout(() => {
|
|
81
|
+
U({
|
|
82
|
+
bookingId: `BK-${Date.now()}`,
|
|
83
|
+
transactionId: `TXN-${Date.now()}`,
|
|
84
|
+
estimatedArrival: new Date(Date.now() + 30 * 6e4).toISOString()
|
|
85
|
+
}), N("confirmation"), F(!1);
|
|
86
|
+
}, 1500);
|
|
87
|
+
};
|
|
88
|
+
return /* @__PURE__ */ T(n, {
|
|
89
|
+
title: /* @__PURE__ */ T("div", {
|
|
90
|
+
className: "flex items-center gap-3",
|
|
91
|
+
children: [/* @__PURE__ */ w("button", {
|
|
92
|
+
type: "button",
|
|
93
|
+
onClick: () => A(`/customer/carts/${j.id}`),
|
|
94
|
+
className: "rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",
|
|
95
|
+
children: /* @__PURE__ */ w(l, { className: "h-5 w-5" })
|
|
96
|
+
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("span", { children: "Book Direct Service" }), /* @__PURE__ */ w("p", {
|
|
97
|
+
className: "text-xs font-normal text-muted-foreground",
|
|
98
|
+
children: j.name
|
|
99
|
+
})] })]
|
|
100
|
+
}),
|
|
101
|
+
children: [/* @__PURE__ */ w("div", {
|
|
102
|
+
className: "flex items-center justify-between mb-6 px-2",
|
|
103
|
+
children: E.map((e, n) => {
|
|
104
|
+
let r = n < G, i = e === M;
|
|
105
|
+
return /* @__PURE__ */ T("div", {
|
|
106
|
+
className: "flex items-center",
|
|
107
|
+
children: [/* @__PURE__ */ T("div", {
|
|
108
|
+
className: "flex flex-col items-center",
|
|
109
|
+
children: [/* @__PURE__ */ w("div", {
|
|
110
|
+
className: t("flex h-8 w-8 items-center justify-center rounded-full text-xs font-medium", r ? "bg-green-500/20 text-green-600 dark:text-green-400" : i ? "bg-foreground text-background" : "bg-muted text-muted-foreground"),
|
|
111
|
+
children: r ? /* @__PURE__ */ w(f, { className: "h-4 w-4" }) : n + 1
|
|
112
|
+
}), /* @__PURE__ */ w("span", {
|
|
113
|
+
className: t("mt-1 text-[10px]", i ? "font-medium text-foreground" : "text-muted-foreground"),
|
|
114
|
+
children: D[e]
|
|
115
|
+
})]
|
|
116
|
+
}), n < E.length - 1 && /* @__PURE__ */ w("div", { className: t("mx-2 h-0.5 w-8 sm:w-16", r ? "bg-green-500/30" : "bg-border") })]
|
|
117
|
+
}, e);
|
|
118
|
+
})
|
|
119
|
+
}), /* @__PURE__ */ T("div", {
|
|
120
|
+
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
121
|
+
children: [/* @__PURE__ */ T("div", {
|
|
122
|
+
className: "lg:col-span-2",
|
|
123
|
+
children: [
|
|
124
|
+
M === "location" && /* @__PURE__ */ T("div", {
|
|
125
|
+
className: "rounded-lg border border-border bg-card p-5",
|
|
126
|
+
children: [
|
|
127
|
+
/* @__PURE__ */ T("h2", {
|
|
128
|
+
className: "text-base font-semibold text-foreground mb-1 flex items-center gap-2",
|
|
129
|
+
children: [/* @__PURE__ */ w(_, { className: "h-4 w-4" }), "Service Location"]
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ w("p", {
|
|
132
|
+
className: "text-xs text-muted-foreground mb-5",
|
|
133
|
+
children: "Where should the cart come?"
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ T("div", {
|
|
136
|
+
className: "space-y-4",
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("label", {
|
|
139
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
140
|
+
children: ["Your Address ", /* @__PURE__ */ w("span", {
|
|
141
|
+
className: "text-red-500",
|
|
142
|
+
children: "*"
|
|
143
|
+
})]
|
|
144
|
+
}), /* @__PURE__ */ T("div", {
|
|
145
|
+
className: "flex gap-2",
|
|
146
|
+
children: [/* @__PURE__ */ w("input", {
|
|
147
|
+
type: "text",
|
|
148
|
+
placeholder: "Enter your full address",
|
|
149
|
+
value: I.address,
|
|
150
|
+
onChange: (e) => L((t) => ({
|
|
151
|
+
...t,
|
|
152
|
+
address: e.target.value
|
|
153
|
+
})),
|
|
154
|
+
className: "flex-1 rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
|
|
155
|
+
}), /* @__PURE__ */ T("button", {
|
|
156
|
+
type: "button",
|
|
157
|
+
onClick: K,
|
|
158
|
+
className: "flex items-center gap-1.5 rounded-lg border border-border px-3 py-2 text-xs font-medium text-foreground hover:bg-accent transition-colors whitespace-nowrap",
|
|
159
|
+
children: [/* @__PURE__ */ w(v, { className: "h-3.5 w-3.5" }), "Use Current Location"]
|
|
160
|
+
})]
|
|
161
|
+
})] }),
|
|
162
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
163
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
164
|
+
children: "Nearby Landmark"
|
|
165
|
+
}), /* @__PURE__ */ w("input", {
|
|
166
|
+
type: "text",
|
|
167
|
+
placeholder: "e.g., Near Metro Station, Opposite Mall",
|
|
168
|
+
value: I.landmark,
|
|
169
|
+
onChange: (e) => L((t) => ({
|
|
170
|
+
...t,
|
|
171
|
+
landmark: e.target.value
|
|
172
|
+
})),
|
|
173
|
+
className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
|
|
174
|
+
})] }),
|
|
175
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
176
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
177
|
+
children: "Instructions for Cart Owner"
|
|
178
|
+
}), /* @__PURE__ */ w("textarea", {
|
|
179
|
+
rows: 3,
|
|
180
|
+
placeholder: "Any specific instructions to help us find you...",
|
|
181
|
+
value: I.instructions,
|
|
182
|
+
onChange: (e) => L((t) => ({
|
|
183
|
+
...t,
|
|
184
|
+
instructions: e.target.value
|
|
185
|
+
})),
|
|
186
|
+
className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring resize-none"
|
|
187
|
+
})] }),
|
|
188
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("label", {
|
|
189
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
190
|
+
children: ["Phone Number ", /* @__PURE__ */ w("span", {
|
|
191
|
+
className: "text-red-500",
|
|
192
|
+
children: "*"
|
|
193
|
+
})]
|
|
194
|
+
}), /* @__PURE__ */ T("div", {
|
|
195
|
+
className: "relative",
|
|
196
|
+
children: [/* @__PURE__ */ w(y, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ w("input", {
|
|
197
|
+
type: "tel",
|
|
198
|
+
placeholder: "Enter your phone number",
|
|
199
|
+
value: I.phoneNumber,
|
|
200
|
+
onChange: (e) => L((t) => ({
|
|
201
|
+
...t,
|
|
202
|
+
phoneNumber: e.target.value
|
|
203
|
+
})),
|
|
204
|
+
className: "w-full rounded-lg border border-border bg-card py-2 pl-9 pr-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
|
|
205
|
+
})]
|
|
206
|
+
})] })
|
|
207
|
+
]
|
|
208
|
+
})
|
|
209
|
+
]
|
|
210
|
+
}),
|
|
211
|
+
M === "details" && /* @__PURE__ */ T("div", {
|
|
212
|
+
className: "rounded-lg border border-border bg-card p-5",
|
|
213
|
+
children: [
|
|
214
|
+
/* @__PURE__ */ T("h2", {
|
|
215
|
+
className: "text-base font-semibold text-foreground mb-1 flex items-center gap-2",
|
|
216
|
+
children: [/* @__PURE__ */ w(d, { className: "h-4 w-4" }), "Booking Details"]
|
|
217
|
+
}),
|
|
218
|
+
/* @__PURE__ */ w("p", {
|
|
219
|
+
className: "text-xs text-muted-foreground mb-5",
|
|
220
|
+
children: "Choose your preferred timing"
|
|
221
|
+
}),
|
|
222
|
+
/* @__PURE__ */ T("div", {
|
|
223
|
+
className: "space-y-4",
|
|
224
|
+
children: [
|
|
225
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("label", {
|
|
226
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
227
|
+
children: ["Preferred Time Slot ", /* @__PURE__ */ w("span", {
|
|
228
|
+
className: "text-red-500",
|
|
229
|
+
children: "*"
|
|
230
|
+
})]
|
|
231
|
+
}), /* @__PURE__ */ w("div", {
|
|
232
|
+
className: "grid grid-cols-4 gap-2",
|
|
233
|
+
children: W.map((e) => /* @__PURE__ */ w("button", {
|
|
234
|
+
type: "button",
|
|
235
|
+
onClick: () => z((t) => ({
|
|
236
|
+
...t,
|
|
237
|
+
preferredTime: e.value
|
|
238
|
+
})),
|
|
239
|
+
className: t("rounded-lg border py-2 px-2 text-xs font-medium transition-colors", R.preferredTime === e.value ? "border-foreground bg-accent text-foreground" : "border-border text-muted-foreground hover:bg-accent hover:text-foreground"),
|
|
240
|
+
children: e.label
|
|
241
|
+
}, e.value))
|
|
242
|
+
})] }),
|
|
243
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
244
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
245
|
+
children: "Special Instructions"
|
|
246
|
+
}), /* @__PURE__ */ w("textarea", {
|
|
247
|
+
rows: 3,
|
|
248
|
+
placeholder: "Any special requests or dietary preferences...",
|
|
249
|
+
value: R.specialInstructions,
|
|
250
|
+
onChange: (e) => z((t) => ({
|
|
251
|
+
...t,
|
|
252
|
+
specialInstructions: e.target.value
|
|
253
|
+
})),
|
|
254
|
+
className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring resize-none"
|
|
255
|
+
})] }),
|
|
256
|
+
/* @__PURE__ */ T("label", {
|
|
257
|
+
className: "flex items-center gap-2 cursor-pointer",
|
|
258
|
+
children: [/* @__PURE__ */ w("input", {
|
|
259
|
+
type: "checkbox",
|
|
260
|
+
checked: R.isUrgent,
|
|
261
|
+
onChange: (e) => z((t) => ({
|
|
262
|
+
...t,
|
|
263
|
+
isUrgent: e.target.checked
|
|
264
|
+
})),
|
|
265
|
+
className: "h-4 w-4 rounded border-border"
|
|
266
|
+
}), /* @__PURE__ */ w("span", {
|
|
267
|
+
className: "text-sm text-muted-foreground",
|
|
268
|
+
children: "This is urgent (additional charges may apply)"
|
|
269
|
+
})]
|
|
270
|
+
})
|
|
271
|
+
]
|
|
272
|
+
})
|
|
273
|
+
]
|
|
274
|
+
}),
|
|
275
|
+
M === "payment" && /* @__PURE__ */ T("div", {
|
|
276
|
+
className: "rounded-lg border border-border bg-card p-5",
|
|
277
|
+
children: [
|
|
278
|
+
/* @__PURE__ */ T("h2", {
|
|
279
|
+
className: "text-base font-semibold text-foreground mb-1 flex items-center gap-2",
|
|
280
|
+
children: [/* @__PURE__ */ w(m, { className: "h-4 w-4" }), "Advance Payment"]
|
|
281
|
+
}),
|
|
282
|
+
/* @__PURE__ */ w("p", {
|
|
283
|
+
className: "text-xs text-muted-foreground mb-5",
|
|
284
|
+
children: "Select your payment method"
|
|
285
|
+
}),
|
|
286
|
+
/* @__PURE__ */ T("div", {
|
|
287
|
+
className: "space-y-4",
|
|
288
|
+
children: [
|
|
289
|
+
/* @__PURE__ */ T("div", {
|
|
290
|
+
className: "flex items-start gap-2 rounded-lg border border-blue-500/20 bg-blue-500/5 p-3",
|
|
291
|
+
children: [/* @__PURE__ */ w(c, { className: "h-4 w-4 text-blue-600 dark:text-blue-400 shrink-0 mt-0.5" }), /* @__PURE__ */ T("p", {
|
|
292
|
+
className: "text-xs text-blue-700 dark:text-blue-300",
|
|
293
|
+
children: [
|
|
294
|
+
"You need to pay ",
|
|
295
|
+
i(100, { minimumFractionDigits: 0 }),
|
|
296
|
+
" ",
|
|
297
|
+
"in advance to confirm your booking. Pay the remaining when the cart arrives."
|
|
298
|
+
]
|
|
299
|
+
})]
|
|
300
|
+
}),
|
|
301
|
+
/* @__PURE__ */ w("div", {
|
|
302
|
+
className: "grid grid-cols-1 sm:grid-cols-3 gap-3",
|
|
303
|
+
children: [
|
|
304
|
+
{
|
|
305
|
+
value: "upi",
|
|
306
|
+
label: "UPI",
|
|
307
|
+
sub: "Instant payment",
|
|
308
|
+
Icon: b
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
value: "card",
|
|
312
|
+
label: "Card",
|
|
313
|
+
sub: "Secure payment",
|
|
314
|
+
Icon: m
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
value: "wallet",
|
|
318
|
+
label: "Wallet",
|
|
319
|
+
sub: "Quick payment",
|
|
320
|
+
Icon: x
|
|
321
|
+
}
|
|
322
|
+
].map(({ value: e, label: n, sub: r, Icon: i }) => /* @__PURE__ */ T("button", {
|
|
323
|
+
type: "button",
|
|
324
|
+
onClick: () => V(e),
|
|
325
|
+
className: t("rounded-lg border p-3 text-center transition-colors", B === e ? "border-foreground bg-accent" : "border-border hover:bg-accent"),
|
|
326
|
+
children: [
|
|
327
|
+
/* @__PURE__ */ w(i, { className: "mx-auto h-5 w-5 text-muted-foreground mb-1" }),
|
|
328
|
+
/* @__PURE__ */ w("p", {
|
|
329
|
+
className: "text-sm font-medium text-foreground",
|
|
330
|
+
children: n
|
|
331
|
+
}),
|
|
332
|
+
/* @__PURE__ */ w("p", {
|
|
333
|
+
className: "text-[10px] text-muted-foreground",
|
|
334
|
+
children: r
|
|
335
|
+
})
|
|
336
|
+
]
|
|
337
|
+
}, e))
|
|
338
|
+
}),
|
|
339
|
+
/* @__PURE__ */ T("div", {
|
|
340
|
+
className: "rounded-lg bg-muted p-4",
|
|
341
|
+
children: [/* @__PURE__ */ w("h3", {
|
|
342
|
+
className: "text-sm font-medium text-foreground mb-2",
|
|
343
|
+
children: "Payment Summary"
|
|
344
|
+
}), /* @__PURE__ */ T("div", {
|
|
345
|
+
className: "space-y-2 text-sm",
|
|
346
|
+
children: [
|
|
347
|
+
/* @__PURE__ */ T("div", {
|
|
348
|
+
className: "flex justify-between",
|
|
349
|
+
children: [/* @__PURE__ */ w("span", {
|
|
350
|
+
className: "text-muted-foreground",
|
|
351
|
+
children: "Advance Payment:"
|
|
352
|
+
}), /* @__PURE__ */ w("span", {
|
|
353
|
+
className: "text-foreground",
|
|
354
|
+
children: i(100, { minimumFractionDigits: 0 })
|
|
355
|
+
})]
|
|
356
|
+
}),
|
|
357
|
+
/* @__PURE__ */ T("div", {
|
|
358
|
+
className: "flex justify-between",
|
|
359
|
+
children: [/* @__PURE__ */ w("span", {
|
|
360
|
+
className: "text-muted-foreground",
|
|
361
|
+
children: "Service Fee:"
|
|
362
|
+
}), /* @__PURE__ */ w("span", {
|
|
363
|
+
className: "text-foreground",
|
|
364
|
+
children: i(50, { minimumFractionDigits: 0 })
|
|
365
|
+
})]
|
|
366
|
+
}),
|
|
367
|
+
/* @__PURE__ */ T("div", {
|
|
368
|
+
className: "flex justify-between text-muted-foreground",
|
|
369
|
+
children: [/* @__PURE__ */ w("span", { children: "Balance Payment (at arrival):" }), /* @__PURE__ */ w("span", { children: i(50, { minimumFractionDigits: 0 }) })]
|
|
370
|
+
}),
|
|
371
|
+
/* @__PURE__ */ T("div", {
|
|
372
|
+
className: "flex justify-between border-t border-border pt-2 font-semibold",
|
|
373
|
+
children: [/* @__PURE__ */ w("span", {
|
|
374
|
+
className: "text-foreground",
|
|
375
|
+
children: "Total Amount:"
|
|
376
|
+
}), /* @__PURE__ */ w("span", {
|
|
377
|
+
className: "text-foreground",
|
|
378
|
+
children: i(150, { minimumFractionDigits: 0 })
|
|
379
|
+
})]
|
|
380
|
+
})
|
|
381
|
+
]
|
|
382
|
+
})]
|
|
383
|
+
})
|
|
384
|
+
]
|
|
385
|
+
})
|
|
386
|
+
]
|
|
387
|
+
}),
|
|
388
|
+
M === "confirmation" && H && /* @__PURE__ */ T("div", {
|
|
389
|
+
className: "rounded-lg border border-border bg-card p-5",
|
|
390
|
+
children: [
|
|
391
|
+
/* @__PURE__ */ T("div", {
|
|
392
|
+
className: "text-center mb-6",
|
|
393
|
+
children: [
|
|
394
|
+
/* @__PURE__ */ w("div", {
|
|
395
|
+
className: "mx-auto mb-3 flex h-14 w-14 items-center justify-center rounded-full bg-green-500/10",
|
|
396
|
+
children: /* @__PURE__ */ w(f, { className: "h-7 w-7 text-green-600 dark:text-green-400" })
|
|
397
|
+
}),
|
|
398
|
+
/* @__PURE__ */ w("h2", {
|
|
399
|
+
className: "text-lg font-semibold text-foreground mb-1",
|
|
400
|
+
children: "Booking Confirmed!"
|
|
401
|
+
}),
|
|
402
|
+
/* @__PURE__ */ w("p", {
|
|
403
|
+
className: "text-sm text-muted-foreground",
|
|
404
|
+
children: "Your direct service booking has been confirmed and payment processed."
|
|
405
|
+
})
|
|
406
|
+
]
|
|
407
|
+
}),
|
|
408
|
+
/* @__PURE__ */ T("div", {
|
|
409
|
+
className: "rounded-lg bg-muted p-4 mb-4",
|
|
410
|
+
children: [/* @__PURE__ */ w("h3", {
|
|
411
|
+
className: "text-sm font-medium text-foreground mb-3",
|
|
412
|
+
children: "Booking Details"
|
|
413
|
+
}), /* @__PURE__ */ T("div", {
|
|
414
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-3 text-sm",
|
|
415
|
+
children: [
|
|
416
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("span", {
|
|
417
|
+
className: "text-xs text-muted-foreground",
|
|
418
|
+
children: "Booking ID"
|
|
419
|
+
}), /* @__PURE__ */ w("p", {
|
|
420
|
+
className: "font-mono text-xs text-foreground",
|
|
421
|
+
children: H.bookingId
|
|
422
|
+
})] }),
|
|
423
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("span", {
|
|
424
|
+
className: "text-xs text-muted-foreground",
|
|
425
|
+
children: "Est. Arrival"
|
|
426
|
+
}), /* @__PURE__ */ w("p", {
|
|
427
|
+
className: "text-foreground",
|
|
428
|
+
children: new Date(H.estimatedArrival).toLocaleTimeString([], {
|
|
429
|
+
hour: "2-digit",
|
|
430
|
+
minute: "2-digit"
|
|
431
|
+
})
|
|
432
|
+
})] }),
|
|
433
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("span", {
|
|
434
|
+
className: "text-xs text-muted-foreground",
|
|
435
|
+
children: "Location"
|
|
436
|
+
}), /* @__PURE__ */ w("p", {
|
|
437
|
+
className: "text-foreground truncate",
|
|
438
|
+
children: I.address
|
|
439
|
+
})] }),
|
|
440
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("span", {
|
|
441
|
+
className: "text-xs text-muted-foreground",
|
|
442
|
+
children: "Phone"
|
|
443
|
+
}), /* @__PURE__ */ w("p", {
|
|
444
|
+
className: "text-foreground",
|
|
445
|
+
children: I.phoneNumber
|
|
446
|
+
})] })
|
|
447
|
+
]
|
|
448
|
+
})]
|
|
449
|
+
}),
|
|
450
|
+
/* @__PURE__ */ T("div", {
|
|
451
|
+
className: "rounded-lg border border-green-500/20 bg-green-500/5 p-4 mb-4",
|
|
452
|
+
children: [/* @__PURE__ */ T("h3", {
|
|
453
|
+
className: "text-sm font-medium text-green-600 dark:text-green-400 mb-2 flex items-center gap-2",
|
|
454
|
+
children: [/* @__PURE__ */ w(f, { className: "h-4 w-4" }), "Payment Processed"]
|
|
455
|
+
}), /* @__PURE__ */ T("div", {
|
|
456
|
+
className: "grid grid-cols-2 gap-3 text-sm",
|
|
457
|
+
children: [
|
|
458
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("span", {
|
|
459
|
+
className: "text-xs text-muted-foreground",
|
|
460
|
+
children: "Transaction ID"
|
|
461
|
+
}), /* @__PURE__ */ w("p", {
|
|
462
|
+
className: "font-mono text-xs text-foreground",
|
|
463
|
+
children: H.transactionId
|
|
464
|
+
})] }),
|
|
465
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("span", {
|
|
466
|
+
className: "text-xs text-muted-foreground",
|
|
467
|
+
children: "Advance Paid"
|
|
468
|
+
}), /* @__PURE__ */ w("p", {
|
|
469
|
+
className: "font-medium text-foreground",
|
|
470
|
+
children: i(100, { minimumFractionDigits: 0 })
|
|
471
|
+
})] }),
|
|
472
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("span", {
|
|
473
|
+
className: "text-xs text-muted-foreground",
|
|
474
|
+
children: "Method"
|
|
475
|
+
}), /* @__PURE__ */ w("p", {
|
|
476
|
+
className: "capitalize text-foreground",
|
|
477
|
+
children: B
|
|
478
|
+
})] }),
|
|
479
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("span", {
|
|
480
|
+
className: "text-xs text-muted-foreground",
|
|
481
|
+
children: "Status"
|
|
482
|
+
}), /* @__PURE__ */ w("p", {
|
|
483
|
+
className: "font-medium text-green-600 dark:text-green-400",
|
|
484
|
+
children: "Paid"
|
|
485
|
+
})] })
|
|
486
|
+
]
|
|
487
|
+
})]
|
|
488
|
+
}),
|
|
489
|
+
/* @__PURE__ */ T("div", {
|
|
490
|
+
className: "rounded-lg border border-blue-500/20 bg-blue-500/5 p-4 mb-6",
|
|
491
|
+
children: [/* @__PURE__ */ w("h3", {
|
|
492
|
+
className: "text-sm font-medium text-blue-600 dark:text-blue-400 mb-2",
|
|
493
|
+
children: "Next Steps"
|
|
494
|
+
}), /* @__PURE__ */ T("div", {
|
|
495
|
+
className: "space-y-2 text-xs text-blue-700 dark:text-blue-300",
|
|
496
|
+
children: [
|
|
497
|
+
/* @__PURE__ */ T("div", {
|
|
498
|
+
className: "flex items-start gap-2",
|
|
499
|
+
children: [/* @__PURE__ */ w(f, { className: "h-3.5 w-3.5 text-green-600 mt-0.5 shrink-0" }), /* @__PURE__ */ T("span", { children: [
|
|
500
|
+
"Payment confirmed -",
|
|
501
|
+
" ",
|
|
502
|
+
i(100, { minimumFractionDigits: 0 }),
|
|
503
|
+
" paid"
|
|
504
|
+
] })]
|
|
505
|
+
}),
|
|
506
|
+
/* @__PURE__ */ T("div", {
|
|
507
|
+
className: "flex items-start gap-2",
|
|
508
|
+
children: [/* @__PURE__ */ w(p, { className: "h-3.5 w-3.5 mt-0.5 shrink-0" }), /* @__PURE__ */ T("span", { children: [
|
|
509
|
+
"Cart will arrive around",
|
|
510
|
+
" ",
|
|
511
|
+
new Date(H.estimatedArrival).toLocaleTimeString([], {
|
|
512
|
+
hour: "2-digit",
|
|
513
|
+
minute: "2-digit"
|
|
514
|
+
})
|
|
515
|
+
] })]
|
|
516
|
+
}),
|
|
517
|
+
/* @__PURE__ */ T("div", {
|
|
518
|
+
className: "flex items-start gap-2",
|
|
519
|
+
children: [/* @__PURE__ */ w(m, { className: "h-3.5 w-3.5 mt-0.5 shrink-0" }), /* @__PURE__ */ T("span", { children: [
|
|
520
|
+
"Pay remaining ",
|
|
521
|
+
i(50, { minimumFractionDigits: 0 }),
|
|
522
|
+
" ",
|
|
523
|
+
"when cart arrives"
|
|
524
|
+
] })]
|
|
525
|
+
})
|
|
526
|
+
]
|
|
527
|
+
})]
|
|
528
|
+
}),
|
|
529
|
+
/* @__PURE__ */ T("div", {
|
|
530
|
+
className: "flex gap-3",
|
|
531
|
+
children: [/* @__PURE__ */ w("button", {
|
|
532
|
+
type: "button",
|
|
533
|
+
onClick: () => A(`/customer/bookings/${H.bookingId}`),
|
|
534
|
+
className: "flex-1 rounded-lg bg-foreground px-4 py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
535
|
+
children: "View Booking"
|
|
536
|
+
}), /* @__PURE__ */ w("button", {
|
|
537
|
+
type: "button",
|
|
538
|
+
onClick: () => A("/customer/carts"),
|
|
539
|
+
className: "flex-1 rounded-lg border border-border px-4 py-2.5 text-sm font-medium text-foreground hover:bg-accent transition-colors",
|
|
540
|
+
children: "Browse More"
|
|
541
|
+
})]
|
|
542
|
+
})
|
|
543
|
+
]
|
|
544
|
+
}),
|
|
545
|
+
M !== "confirmation" && /* @__PURE__ */ T("div", {
|
|
546
|
+
className: "flex justify-between mt-5",
|
|
547
|
+
children: [/* @__PURE__ */ T("button", {
|
|
548
|
+
type: "button",
|
|
549
|
+
onClick: X,
|
|
550
|
+
disabled: M === "location",
|
|
551
|
+
className: t("flex items-center gap-2 rounded-lg border border-border px-4 py-2.5 text-sm font-medium text-foreground transition-colors", M === "location" ? "opacity-40 cursor-not-allowed" : "hover:bg-accent"),
|
|
552
|
+
children: [/* @__PURE__ */ w(l, { className: "h-4 w-4" }), "Previous"]
|
|
553
|
+
}), /* @__PURE__ */ w("button", {
|
|
554
|
+
type: "button",
|
|
555
|
+
onClick: Y,
|
|
556
|
+
disabled: P,
|
|
557
|
+
className: t("flex items-center gap-2 rounded-lg bg-foreground px-4 py-2.5 text-sm font-medium text-background transition-opacity", P ? "opacity-60 cursor-not-allowed" : "hover:opacity-90"),
|
|
558
|
+
children: P ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(g, { className: "h-4 w-4 animate-spin" }), M === "payment" ? "Processing Payment..." : "Processing..."] }) : /* @__PURE__ */ T(C, { children: [M === "payment" ? "Confirm & Pay" : "Next", /* @__PURE__ */ w(u, { className: "h-4 w-4" })] })
|
|
559
|
+
})]
|
|
560
|
+
})
|
|
561
|
+
]
|
|
562
|
+
}), /* @__PURE__ */ w("div", {
|
|
563
|
+
className: "lg:col-span-1",
|
|
564
|
+
children: /* @__PURE__ */ T("div", {
|
|
565
|
+
className: "sticky top-6 rounded-lg border border-border bg-card p-5",
|
|
566
|
+
children: [
|
|
567
|
+
/* @__PURE__ */ w("h3", {
|
|
568
|
+
className: "text-base font-semibold text-foreground mb-4",
|
|
569
|
+
children: "Service Summary"
|
|
570
|
+
}),
|
|
571
|
+
/* @__PURE__ */ T("div", {
|
|
572
|
+
className: "flex items-center gap-3 mb-4",
|
|
573
|
+
children: [/* @__PURE__ */ w("img", {
|
|
574
|
+
src: j.image,
|
|
575
|
+
alt: j.name,
|
|
576
|
+
className: "h-12 w-12 rounded-lg object-cover"
|
|
577
|
+
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
578
|
+
className: "text-sm font-medium text-foreground",
|
|
579
|
+
children: j.name
|
|
580
|
+
}), /* @__PURE__ */ w("p", {
|
|
581
|
+
className: "text-xs text-muted-foreground",
|
|
582
|
+
children: j.category
|
|
583
|
+
})] })]
|
|
584
|
+
}),
|
|
585
|
+
/* @__PURE__ */ T("div", {
|
|
586
|
+
className: "space-y-2 text-sm border-t border-border pt-3",
|
|
587
|
+
children: [/* @__PURE__ */ T("div", {
|
|
588
|
+
className: "flex justify-between",
|
|
589
|
+
children: [/* @__PURE__ */ w("span", {
|
|
590
|
+
className: "text-muted-foreground",
|
|
591
|
+
children: "Service Fee:"
|
|
592
|
+
}), /* @__PURE__ */ w("span", {
|
|
593
|
+
className: "text-foreground",
|
|
594
|
+
children: i(50, { minimumFractionDigits: 0 })
|
|
595
|
+
})]
|
|
596
|
+
}), /* @__PURE__ */ T("div", {
|
|
597
|
+
className: "flex justify-between",
|
|
598
|
+
children: [/* @__PURE__ */ w("span", {
|
|
599
|
+
className: "text-muted-foreground",
|
|
600
|
+
children: "Advance Payment:"
|
|
601
|
+
}), /* @__PURE__ */ w("span", {
|
|
602
|
+
className: "font-medium text-foreground",
|
|
603
|
+
children: i(100, { minimumFractionDigits: 0 })
|
|
604
|
+
})]
|
|
605
|
+
})]
|
|
606
|
+
}),
|
|
607
|
+
/* @__PURE__ */ T("div", {
|
|
608
|
+
className: "flex items-center gap-2 mt-3 pt-3 border-t border-border text-green-600 dark:text-green-400",
|
|
609
|
+
children: [/* @__PURE__ */ w(f, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ w("span", {
|
|
610
|
+
className: "text-xs",
|
|
611
|
+
children: "Pay remaining amount at cart"
|
|
612
|
+
})]
|
|
613
|
+
})
|
|
614
|
+
]
|
|
615
|
+
})
|
|
616
|
+
})]
|
|
617
|
+
})]
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
//#endregion
|
|
621
|
+
export { k as DirectServiceBookingPage };
|
|
622
|
+
|
|
623
|
+
//# sourceMappingURL=DirectServiceBookingPage.js.map
|