@burdenoff/microfe-subscriberbot 2026.625.1 → 2026.626.2

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