@burdenoff/microfe-labsofscience 2026.626.2 → 2026.629.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.
Files changed (172) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/labsofscience/LabsOfScienceRoot.js +68 -124
  3. package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
  4. package/dist/labsofscience/LabsOfScienceRoutes.js +61 -185
  5. package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
  6. package/dist/labsofscience/components/QueryStates.js +40 -0
  7. package/dist/labsofscience/components/QueryStates.js.map +1 -0
  8. package/dist/labsofscience/components/StatusBadge.js +40 -23
  9. package/dist/labsofscience/components/StatusBadge.js.map +1 -1
  10. package/dist/labsofscience/context/LabsOfScienceContext.js +22 -30
  11. package/dist/labsofscience/context/LabsOfScienceContext.js.map +1 -1
  12. package/dist/labsofscience/hooks/useLabsOfScienceApi.js +500 -172
  13. package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
  14. package/dist/labsofscience/pages/OverviewPage.js +195 -0
  15. package/dist/labsofscience/pages/OverviewPage.js.map +1 -0
  16. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +162 -0
  17. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -0
  18. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js +137 -0
  19. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js.map +1 -0
  20. package/dist/labsofscience/pages/datasets/DatasetsListPage.js +155 -0
  21. package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -0
  22. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +220 -0
  23. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -0
  24. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js +170 -0
  25. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js.map +1 -0
  26. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +134 -0
  27. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -0
  28. package/dist/labsofscience/pages/experiments/RunDialogs.js +180 -0
  29. package/dist/labsofscience/pages/experiments/RunDialogs.js.map +1 -0
  30. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +130 -0
  31. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js.map +1 -0
  32. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js +132 -0
  33. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js.map +1 -0
  34. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +126 -0
  35. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -0
  36. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js +89 -0
  37. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js.map +1 -0
  38. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js +138 -0
  39. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js.map +1 -0
  40. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js +211 -0
  41. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js.map +1 -0
  42. package/dist/labsofscience/pages/inventory/InventoryListPage.js +178 -0
  43. package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -0
  44. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js +118 -0
  45. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js.map +1 -0
  46. package/dist/labsofscience/pages/notebook/NotebookListPage.js +144 -0
  47. package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -0
  48. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js +146 -0
  49. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js.map +1 -0
  50. package/dist/labsofscience/pages/pipelines/PipelinesPage.js +212 -0
  51. package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -0
  52. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js +109 -0
  53. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js.map +1 -0
  54. package/dist/labsofscience/pages/projects/ProjectDetailPage.js +174 -0
  55. package/dist/labsofscience/pages/projects/ProjectDetailPage.js.map +1 -0
  56. package/dist/labsofscience/pages/projects/ProjectFormDialog.js +169 -0
  57. package/dist/labsofscience/pages/projects/ProjectFormDialog.js.map +1 -0
  58. package/dist/labsofscience/pages/projects/ProjectsListPage.js +141 -0
  59. package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -0
  60. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +133 -0
  61. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -0
  62. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js +151 -0
  63. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js.map +1 -0
  64. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +140 -0
  65. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -0
  66. package/dist/labsofscience/pages/shared/DetailComponents.js +64 -0
  67. package/dist/labsofscience/pages/shared/DetailComponents.js.map +1 -0
  68. package/dist/labsofscience/pages/shared/tags.js +16 -0
  69. package/dist/labsofscience/pages/shared/tags.js.map +1 -0
  70. package/dist/labsofscience/store/labsofscienceStore.js +6 -11
  71. package/dist/labsofscience/store/labsofscienceStore.js.map +1 -1
  72. package/dist/labsofscience/utils/formatters.js +28 -13
  73. package/dist/labsofscience/utils/formatters.js.map +1 -1
  74. package/package.json +1 -1
  75. package/dist/labsofscience/components/InvestmentCard.js +0 -98
  76. package/dist/labsofscience/components/InvestmentCard.js.map +0 -1
  77. package/dist/labsofscience/components/RatingDisplay.js +0 -35
  78. package/dist/labsofscience/components/RatingDisplay.js.map +0 -1
  79. package/dist/labsofscience/mocks/data.js +0 -1517
  80. package/dist/labsofscience/mocks/data.js.map +0 -1
  81. package/dist/labsofscience/mocks/users.js +0 -34
  82. package/dist/labsofscience/mocks/users.js.map +0 -1
  83. package/dist/labsofscience/pages/HomePage.js +0 -940
  84. package/dist/labsofscience/pages/HomePage.js.map +0 -1
  85. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +0 -651
  86. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +0 -1
  87. package/dist/labsofscience/pages/admin/AdminDashboard.js +0 -672
  88. package/dist/labsofscience/pages/admin/AdminDashboard.js.map +0 -1
  89. package/dist/labsofscience/pages/admin/AdminFinancialPage.js +0 -427
  90. package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +0 -1
  91. package/dist/labsofscience/pages/admin/AdminOrdersPage.js +0 -665
  92. package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +0 -1
  93. package/dist/labsofscience/pages/admin/AdminProfilePage.js +0 -261
  94. package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +0 -1
  95. package/dist/labsofscience/pages/admin/AdminSettingsPage.js +0 -651
  96. package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +0 -1
  97. package/dist/labsofscience/pages/admin/CartManagementPage.js +0 -874
  98. package/dist/labsofscience/pages/admin/CartManagementPage.js.map +0 -1
  99. package/dist/labsofscience/pages/admin/UserManagementPage.js +0 -898
  100. package/dist/labsofscience/pages/admin/UserManagementPage.js.map +0 -1
  101. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +0 -839
  102. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
  103. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +0 -705
  104. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
  105. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +0 -791
  106. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
  107. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +0 -891
  108. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
  109. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +0 -636
  110. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
  111. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +0 -911
  112. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +0 -1
  113. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +0 -879
  114. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +0 -1
  115. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +0 -839
  116. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +0 -1
  117. package/dist/labsofscience/pages/common/HelpSupportPage.js +0 -1324
  118. package/dist/labsofscience/pages/common/HelpSupportPage.js.map +0 -1
  119. package/dist/labsofscience/pages/common/NotificationCenterPage.js +0 -672
  120. package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +0 -1
  121. package/dist/labsofscience/pages/common/SettingsPage.js +0 -973
  122. package/dist/labsofscience/pages/common/SettingsPage.js.map +0 -1
  123. package/dist/labsofscience/pages/customer/BookingDetailsPage.js +0 -637
  124. package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +0 -1
  125. package/dist/labsofscience/pages/customer/CartDetailPage.js +0 -653
  126. package/dist/labsofscience/pages/customer/CartDetailPage.js.map +0 -1
  127. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +0 -559
  128. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +0 -1
  129. package/dist/labsofscience/pages/customer/CheckoutPage.js +0 -530
  130. package/dist/labsofscience/pages/customer/CheckoutPage.js.map +0 -1
  131. package/dist/labsofscience/pages/customer/CustomerDashboard.js +0 -531
  132. package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +0 -1
  133. package/dist/labsofscience/pages/customer/CustomerProfilePage.js +0 -658
  134. package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +0 -1
  135. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +0 -633
  136. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +0 -1
  137. package/dist/labsofscience/pages/customer/FavoritesPage.js +0 -484
  138. package/dist/labsofscience/pages/customer/FavoritesPage.js.map +0 -1
  139. package/dist/labsofscience/pages/customer/OrderHistoryPage.js +0 -445
  140. package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +0 -1
  141. package/dist/labsofscience/pages/customer/OrderTrackingPage.js +0 -425
  142. package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +0 -1
  143. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +0 -495
  144. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +0 -1
  145. package/dist/labsofscience/pages/customer/ReviewsPage.js +0 -613
  146. package/dist/labsofscience/pages/customer/ReviewsPage.js.map +0 -1
  147. package/dist/labsofscience/pages/customer/SavedAddressesPage.js +0 -450
  148. package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +0 -1
  149. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +0 -881
  150. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +0 -1
  151. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +0 -946
  152. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
  153. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +0 -687
  154. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +0 -1
  155. package/dist/labsofscience/pages/investor/InvestorDashboard.js +0 -455
  156. package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +0 -1
  157. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +0 -406
  158. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +0 -1
  159. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +0 -575
  160. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +0 -1
  161. package/dist/labsofscience/pages/investor/InvestorProfilePage.js +0 -1070
  162. package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +0 -1
  163. package/dist/labsofscience/pages/worker/TaskDetailsPage.js +0 -537
  164. package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +0 -1
  165. package/dist/labsofscience/pages/worker/WorkerDashboard.js +0 -665
  166. package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +0 -1
  167. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +0 -681
  168. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +0 -1
  169. package/dist/labsofscience/pages/worker/WorkerProfilePage.js +0 -692
  170. package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +0 -1
  171. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +0 -588
  172. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +0 -1
@@ -1,637 +0,0 @@
1
- import { useLabsOfScience as e } from "../../context/LabsOfScienceContext.js";
2
- import { cn as t } from "../../utils/cn.js";
3
- import { PageLayout as n } from "../../components/PageLayout.js";
4
- import { StatusBadge as r } from "../../components/StatusBadge.js";
5
- import { EmptyState as i } from "../../components/EmptyState.js";
6
- import { formatCurrency as a, formatDate as o } from "../../utils/formatters.js";
7
- import { useMemo as s, useState as c } from "react";
8
- import { AlertTriangle as l, ArrowLeft as u, Calendar as d, CalendarCheck as f, CheckCircle2 as p, Circle as m, Clock as h, Headphones as g, MapPin as _, Phone as v, ShoppingBag as y, Star as b, XCircle as x } from "lucide-react";
9
- import { useParams as S } from "react-router-dom";
10
- import { jsx as C, jsxs as w } from "react/jsx-runtime";
11
- import { EmphasisPanel as T, NextSteps as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
12
- //#region src/labsofscience/pages/customer/BookingDetailsPage.tsx
13
- var O = [
14
- {
15
- id: "BK-001",
16
- serviceName: "Men's Haircut + Beard Trim",
17
- serviceDescription: "Professional haircut and beard grooming service at your doorstep",
18
- provider: {
19
- id: "SERV-001",
20
- name: "Quick Cuts Salon",
21
- phone: "+91-9876543210",
22
- rating: 4.6,
23
- reviewCount: 248,
24
- category: "Personal Care & Beauty",
25
- image: "https://images.unsplash.com/photo-1562322140-8baeececf3df?w=400",
26
- location: "Indiranagar, Bangalore"
27
- },
28
- scheduledDate: "2024-01-20",
29
- scheduledTime: "10:00 AM",
30
- duration: 50,
31
- status: "confirmed",
32
- location: {
33
- street: "123 Main Street",
34
- area: "Koramangala",
35
- city: "Bangalore",
36
- pincode: "560034",
37
- landmark: "Near Metro Station"
38
- },
39
- pricing: {
40
- serviceCharge: 450,
41
- convenienceFee: 30,
42
- tax: 48,
43
- discount: 50,
44
- total: 478
45
- },
46
- createdAt: "2024-01-16T14:30:00Z",
47
- notes: "Please bring your own equipment",
48
- timeline: [
49
- {
50
- status: "booked",
51
- label: "Booking Placed",
52
- timestamp: "2024-01-16T14:30:00Z",
53
- completed: !0
54
- },
55
- {
56
- status: "confirmed",
57
- label: "Booking Confirmed",
58
- timestamp: "2024-01-16T14:35:00Z",
59
- completed: !0
60
- },
61
- {
62
- status: "in_progress",
63
- label: "Service Started",
64
- timestamp: null,
65
- completed: !1
66
- },
67
- {
68
- status: "completed",
69
- label: "Service Completed",
70
- timestamp: null,
71
- completed: !1
72
- }
73
- ]
74
- },
75
- {
76
- id: "BK-002",
77
- serviceName: "Deep House Cleaning",
78
- serviceDescription: "Complete house cleaning service including kitchen, bathrooms, and living areas",
79
- provider: {
80
- id: "SERV-005",
81
- name: "Spotless Cleaning Services",
82
- phone: "+91-9876543215",
83
- rating: 4.8,
84
- reviewCount: 312,
85
- category: "Home Services",
86
- image: "https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=400",
87
- location: "Whitefield, Bangalore"
88
- },
89
- scheduledDate: "2024-01-18",
90
- scheduledTime: "09:00 AM",
91
- duration: 180,
92
- status: "completed",
93
- location: {
94
- street: "456 Park Avenue",
95
- area: "Indiranagar",
96
- city: "Bangalore",
97
- pincode: "560038"
98
- },
99
- pricing: {
100
- serviceCharge: 1500,
101
- convenienceFee: 50,
102
- tax: 155,
103
- discount: 0,
104
- total: 1705
105
- },
106
- createdAt: "2024-01-15T10:00:00Z",
107
- timeline: [
108
- {
109
- status: "booked",
110
- label: "Booking Placed",
111
- timestamp: "2024-01-15T10:00:00Z",
112
- completed: !0
113
- },
114
- {
115
- status: "confirmed",
116
- label: "Booking Confirmed",
117
- timestamp: "2024-01-15T10:05:00Z",
118
- completed: !0
119
- },
120
- {
121
- status: "in_progress",
122
- label: "Service Started",
123
- timestamp: "2024-01-18T09:10:00Z",
124
- completed: !0
125
- },
126
- {
127
- status: "completed",
128
- label: "Service Completed",
129
- timestamp: "2024-01-18T12:15:00Z",
130
- completed: !0
131
- }
132
- ]
133
- },
134
- {
135
- id: "BK-003",
136
- serviceName: "Facial Treatment",
137
- serviceDescription: "Deep cleansing facial with natural ingredients for glowing skin",
138
- provider: {
139
- id: "SERV-002",
140
- name: "Glow Beauty Services",
141
- phone: "+91-9876543212",
142
- rating: 4.7,
143
- reviewCount: 180,
144
- category: "Personal Care & Beauty",
145
- image: "https://images.unsplash.com/photo-1560066984-138dadb4c035?w=400",
146
- location: "HSR Layout, Bangalore"
147
- },
148
- scheduledDate: "2024-01-22",
149
- scheduledTime: "02:00 PM",
150
- duration: 60,
151
- status: "cancelled",
152
- location: {
153
- street: "789 Lake View",
154
- area: "HSR Layout",
155
- city: "Bangalore",
156
- pincode: "560102"
157
- },
158
- pricing: {
159
- serviceCharge: 800,
160
- convenienceFee: 30,
161
- tax: 83,
162
- discount: 0,
163
- total: 913
164
- },
165
- createdAt: "2024-01-17T16:00:00Z",
166
- cancellationReason: "Schedule conflict - need to reschedule",
167
- timeline: [
168
- {
169
- status: "booked",
170
- label: "Booking Placed",
171
- timestamp: "2024-01-17T16:00:00Z",
172
- completed: !0
173
- },
174
- {
175
- status: "confirmed",
176
- label: "Booking Confirmed",
177
- timestamp: "2024-01-17T16:10:00Z",
178
- completed: !0
179
- },
180
- {
181
- status: "cancelled",
182
- label: "Booking Cancelled",
183
- timestamp: "2024-01-18T09:00:00Z",
184
- completed: !0
185
- }
186
- ]
187
- }
188
- ], k = (e) => O.find((t) => t.id === e);
189
- function A() {
190
- let { bookingId: O } = S(), { navigateTo: A } = e(), [j, M] = c(null), N = s(() => O ? k(O) : void 0, [O]), P = (e) => {
191
- M(e), setTimeout(() => M(null), 3e3);
192
- };
193
- if (!N) return /* @__PURE__ */ C(n, {
194
- title: "Booking Not Found",
195
- children: /* @__PURE__ */ C(i, {
196
- illustration: "empty-data",
197
- icon: /* @__PURE__ */ C(f, { className: "h-12 w-12" }),
198
- title: "Booking not found",
199
- description: `No booking found with ID "${O}".`,
200
- action: /* @__PURE__ */ C("button", {
201
- type: "button",
202
- onClick: () => A("/customer/dashboard"),
203
- className: "rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
204
- children: "Go to Dashboard"
205
- })
206
- })
207
- });
208
- let F = N.status === "cancelled", I = N.status === "completed", L = !F && !I, R = () => {
209
- P("Support team will contact you shortly.");
210
- }, z = () => {
211
- P("Thank you! Rating feature coming soon.");
212
- };
213
- return /* @__PURE__ */ w(n, {
214
- title: /* @__PURE__ */ w("div", {
215
- className: "flex items-center gap-3",
216
- children: [/* @__PURE__ */ C("button", {
217
- type: "button",
218
- onClick: () => A("/customer/dashboard"),
219
- className: "rounded-md p-1 text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
220
- children: /* @__PURE__ */ C(u, { className: "h-5 w-5" })
221
- }), /* @__PURE__ */ w("span", { children: ["Booking #", N.id] })]
222
- }),
223
- actions: /* @__PURE__ */ C(r, { status: N.status }),
224
- children: [
225
- j && /* @__PURE__ */ w("div", {
226
- className: "mb-4 rounded-lg border border-status-success-border bg-status-success-bg-subtle p-3 flex items-center gap-2",
227
- children: [/* @__PURE__ */ C(p, { className: "h-4 w-4 text-status-success-text shrink-0" }), /* @__PURE__ */ C("p", {
228
- className: "text-sm text-status-success-text",
229
- children: j
230
- })]
231
- }),
232
- /* @__PURE__ */ C(D, {
233
- icon: /* @__PURE__ */ C(f, { className: "h-4 w-4" }),
234
- className: "mb-6",
235
- children: "Everything about a service you booked, in one place. Confirm the date, time and location, watch its status move from confirmed to completed, see the full price breakdown, and reach the provider or support if anything needs to change."
236
- }),
237
- /* @__PURE__ */ C(E, {
238
- storageKey: "labsofscience-booking-details",
239
- steps: [
240
- {
241
- id: "call-provider",
242
- label: "Contact the provider",
243
- description: `Call ${N.provider.name} about your booking.`,
244
- icon: /* @__PURE__ */ C(v, { className: "h-4 w-4" }),
245
- onClick: () => {
246
- window.location.href = `tel:${N.provider.phone}`;
247
- }
248
- },
249
- {
250
- id: "support",
251
- label: "Get help with this booking",
252
- description: "Reach support to reschedule or ask a question.",
253
- icon: /* @__PURE__ */ C(g, { className: "h-4 w-4" }),
254
- onClick: R
255
- },
256
- ...I ? [{
257
- id: "rate",
258
- label: "Rate the service",
259
- description: "Tell others how this service went.",
260
- icon: /* @__PURE__ */ C(b, { className: "h-4 w-4" }),
261
- onClick: z
262
- }] : [{
263
- id: "view-cart",
264
- label: "Browse this cart’s menu",
265
- description: "See what else this provider offers.",
266
- icon: /* @__PURE__ */ C(y, { className: "h-4 w-4" }),
267
- onClick: () => A(`/customer/carts/${N.provider.id}`)
268
- }]
269
- ]
270
- }),
271
- /* @__PURE__ */ w("div", {
272
- className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
273
- children: [/* @__PURE__ */ w("div", {
274
- className: "lg:col-span-2 space-y-6",
275
- children: [
276
- /* @__PURE__ */ w(T, {
277
- className: "p-6",
278
- children: [
279
- /* @__PURE__ */ C("h2", {
280
- className: "text-lg font-semibold text-text-primary",
281
- children: N.serviceName
282
- }),
283
- /* @__PURE__ */ C("p", {
284
- className: "mt-1 text-sm text-text-secondary",
285
- children: N.serviceDescription
286
- }),
287
- /* @__PURE__ */ w("div", {
288
- className: "mt-4 flex flex-wrap gap-4 text-sm text-text-secondary",
289
- children: [
290
- /* @__PURE__ */ w("div", {
291
- className: "flex items-center gap-1.5",
292
- children: [/* @__PURE__ */ C(d, { className: "h-4 w-4" }), /* @__PURE__ */ C("span", { children: N.scheduledDate })]
293
- }),
294
- /* @__PURE__ */ w("div", {
295
- className: "flex items-center gap-1.5",
296
- children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), /* @__PURE__ */ C("span", { children: N.scheduledTime })]
297
- }),
298
- /* @__PURE__ */ w("div", {
299
- className: "flex items-center gap-1.5",
300
- children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), /* @__PURE__ */ w("span", { children: [N.duration, " min"] })]
301
- })
302
- ]
303
- }),
304
- N.notes && /* @__PURE__ */ w("div", {
305
- className: "mt-4 rounded-md bg-bg-sunken p-3",
306
- children: [/* @__PURE__ */ C("p", {
307
- className: "text-xs text-text-secondary mb-1",
308
- children: "Notes"
309
- }), /* @__PURE__ */ C("p", {
310
- className: "text-sm text-text-primary",
311
- children: N.notes
312
- })]
313
- }),
314
- N.cancellationReason && /* @__PURE__ */ w("div", {
315
- className: "mt-4 rounded-md bg-status-error-bg-subtle border border-status-error-border p-3",
316
- children: [/* @__PURE__ */ w("div", {
317
- className: "flex items-center gap-2 mb-1",
318
- children: [/* @__PURE__ */ C(l, { className: "h-3.5 w-3.5 text-status-error-text" }), /* @__PURE__ */ C("p", {
319
- className: "text-xs font-medium text-status-error-text",
320
- children: "Cancellation Reason"
321
- })]
322
- }), /* @__PURE__ */ C("p", {
323
- className: "text-sm text-text-primary",
324
- children: N.cancellationReason
325
- })]
326
- })
327
- ]
328
- }),
329
- /* @__PURE__ */ w("div", {
330
- className: "rounded-lg border border-border-seam bg-bg-surface p-6",
331
- children: [
332
- /* @__PURE__ */ C("h2", {
333
- className: "text-base font-semibold text-text-primary mb-4",
334
- children: "Service Provider"
335
- }),
336
- /* @__PURE__ */ w("div", {
337
- className: "flex items-center gap-4",
338
- children: [
339
- /* @__PURE__ */ C("div", {
340
- className: "flex h-12 w-12 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
341
- children: /* @__PURE__ */ C(y, { className: "h-6 w-6" })
342
- }),
343
- /* @__PURE__ */ w("div", {
344
- className: "flex-1 min-w-0",
345
- children: [
346
- /* @__PURE__ */ C("p", {
347
- className: "text-sm font-semibold text-text-primary",
348
- children: N.provider.name
349
- }),
350
- /* @__PURE__ */ C("p", {
351
- className: "text-xs text-text-secondary",
352
- children: N.provider.category
353
- }),
354
- /* @__PURE__ */ w("div", {
355
- className: "flex items-center gap-1 mt-1",
356
- children: [/* @__PURE__ */ C(b, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ C("span", {
357
- className: "text-xs font-medium text-text-primary",
358
- children: N.provider.rating
359
- })]
360
- })
361
- ]
362
- }),
363
- /* @__PURE__ */ C("a", {
364
- href: `tel:${N.provider.phone}`,
365
- className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
366
- children: /* @__PURE__ */ C(v, { className: "h-4 w-4" })
367
- })
368
- ]
369
- }),
370
- /* @__PURE__ */ w("div", {
371
- className: "mt-3 flex items-center gap-2 text-sm text-text-secondary",
372
- children: [/* @__PURE__ */ C(v, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ C("span", { children: N.provider.phone })]
373
- })
374
- ]
375
- }),
376
- /* @__PURE__ */ w("div", {
377
- className: "rounded-lg border border-border-seam bg-bg-surface p-6",
378
- children: [/* @__PURE__ */ C("h2", {
379
- className: "text-base font-semibold text-text-primary mb-5",
380
- children: "Booking Timeline"
381
- }), /* @__PURE__ */ C("div", {
382
- className: "relative",
383
- children: N.timeline.map((e, n) => {
384
- let r = n === N.timeline.length - 1, i = e.status === "cancelled", a = i ? x : e.completed ? p : m;
385
- return /* @__PURE__ */ w("div", {
386
- className: "flex gap-4",
387
- children: [/* @__PURE__ */ w("div", {
388
- className: "flex flex-col items-center",
389
- children: [/* @__PURE__ */ C("div", {
390
- className: t("flex h-8 w-8 shrink-0 items-center justify-center rounded-full", i ? "bg-status-error-bg-subtle text-status-error-text" : e.completed ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-secondary"),
391
- children: /* @__PURE__ */ C(a, { className: "h-4 w-4" })
392
- }), !r && /* @__PURE__ */ C("div", { className: t("w-0.5 flex-1 my-1", e.completed ? "bg-status-success-bg-subtle" : "bg-border") })]
393
- }), /* @__PURE__ */ w("div", {
394
- className: t("pb-6", r && "pb-0"),
395
- children: [/* @__PURE__ */ C("p", {
396
- className: "text-sm font-medium text-text-primary",
397
- children: e.label
398
- }), /* @__PURE__ */ C("p", {
399
- className: "mt-0.5 text-xs text-text-secondary",
400
- children: e.timestamp ? o(e.timestamp) : "Pending"
401
- })]
402
- })]
403
- }, `${e.status}-${n}`);
404
- })
405
- })]
406
- }),
407
- /* @__PURE__ */ w("div", {
408
- className: "flex flex-col sm:flex-row gap-3",
409
- children: [/* @__PURE__ */ w("button", {
410
- type: "button",
411
- onClick: R,
412
- className: "flex-1 flex items-center justify-center gap-2 rounded-lg border border-border-seam px-4 py-3 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
413
- children: [/* @__PURE__ */ C(g, { className: "h-4 w-4" }), "Contact Support"]
414
- }), I && /* @__PURE__ */ w("button", {
415
- type: "button",
416
- onClick: z,
417
- className: "flex-1 flex items-center justify-center gap-2 rounded-lg bg-foreground px-4 py-3 text-sm font-medium text-background hover:opacity-90 transition-opacity",
418
- children: [/* @__PURE__ */ C(b, { className: "h-4 w-4" }), "Rate Service"]
419
- })]
420
- })
421
- ]
422
- }), /* @__PURE__ */ w("div", {
423
- className: "space-y-6",
424
- children: [
425
- /* @__PURE__ */ w("div", {
426
- className: "rounded-lg border border-border-seam bg-bg-surface p-5",
427
- children: [
428
- /* @__PURE__ */ C("h3", {
429
- className: "text-base font-semibold text-text-primary mb-3",
430
- children: "Cart Information"
431
- }),
432
- /* @__PURE__ */ w("div", {
433
- className: "flex items-center gap-3 mb-4",
434
- children: [/* @__PURE__ */ C("img", {
435
- src: N.provider.image,
436
- alt: N.provider.name,
437
- className: "h-14 w-14 rounded-lg object-cover"
438
- }), /* @__PURE__ */ w("div", {
439
- className: "min-w-0",
440
- children: [
441
- /* @__PURE__ */ C("p", {
442
- className: "text-sm font-semibold text-text-primary",
443
- children: N.provider.name
444
- }),
445
- /* @__PURE__ */ C("p", {
446
- className: "text-xs text-text-secondary",
447
- children: N.provider.category
448
- }),
449
- /* @__PURE__ */ w("div", {
450
- className: "flex items-center gap-1 mt-0.5",
451
- children: [
452
- /* @__PURE__ */ C(b, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }),
453
- /* @__PURE__ */ C("span", {
454
- className: "text-xs font-medium text-text-primary",
455
- children: N.provider.rating
456
- }),
457
- /* @__PURE__ */ w("span", {
458
- className: "text-xs text-text-secondary",
459
- children: [
460
- "(",
461
- N.provider.reviewCount,
462
- ")"
463
- ]
464
- })
465
- ]
466
- })
467
- ]
468
- })]
469
- }),
470
- /* @__PURE__ */ C("div", {
471
- className: "space-y-2 text-sm mb-4",
472
- children: /* @__PURE__ */ w("div", {
473
- className: "flex items-start gap-2",
474
- children: [/* @__PURE__ */ C(_, { className: "h-4 w-4 text-text-secondary shrink-0 mt-0.5" }), /* @__PURE__ */ C("span", {
475
- className: "text-text-secondary",
476
- children: N.provider.location
477
- })]
478
- })
479
- }),
480
- /* @__PURE__ */ C("button", {
481
- type: "button",
482
- onClick: () => A(`/customer/carts/${N.provider.id}`),
483
- className: "w-full rounded-lg border border-border-seam px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
484
- children: "View Cart Menu"
485
- })
486
- ]
487
- }),
488
- /* @__PURE__ */ w("div", {
489
- className: "rounded-lg border border-border-seam bg-bg-surface p-5",
490
- children: [/* @__PURE__ */ C("h3", {
491
- className: "text-base font-semibold text-text-primary mb-3",
492
- children: "Service Location"
493
- }), /* @__PURE__ */ w("div", {
494
- className: "flex items-start gap-3",
495
- children: [/* @__PURE__ */ C(_, { className: "mt-0.5 h-5 w-5 shrink-0 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [
496
- /* @__PURE__ */ C("p", {
497
- className: "text-sm text-text-primary",
498
- children: N.location.street
499
- }),
500
- /* @__PURE__ */ w("p", {
501
- className: "text-sm text-text-secondary",
502
- children: [
503
- N.location.area,
504
- ", ",
505
- N.location.city,
506
- " - ",
507
- N.location.pincode
508
- ]
509
- }),
510
- N.location.landmark && /* @__PURE__ */ w("p", {
511
- className: "text-xs text-text-secondary mt-1",
512
- children: ["Landmark: ", N.location.landmark]
513
- })
514
- ] })]
515
- })]
516
- }),
517
- /* @__PURE__ */ w("div", {
518
- className: "rounded-lg border border-border-seam bg-bg-surface p-5",
519
- children: [/* @__PURE__ */ C("h3", {
520
- className: "text-base font-semibold text-text-primary mb-3",
521
- children: "Price Breakdown"
522
- }), /* @__PURE__ */ w("div", {
523
- className: "space-y-2.5 text-sm",
524
- children: [
525
- /* @__PURE__ */ w("div", {
526
- className: "flex justify-between",
527
- children: [/* @__PURE__ */ C("span", {
528
- className: "text-text-secondary",
529
- children: "Service Charge"
530
- }), /* @__PURE__ */ C("span", {
531
- className: "text-text-primary",
532
- children: a(N.pricing.serviceCharge, { minimumFractionDigits: 0 })
533
- })]
534
- }),
535
- /* @__PURE__ */ w("div", {
536
- className: "flex justify-between",
537
- children: [/* @__PURE__ */ C("span", {
538
- className: "text-text-secondary",
539
- children: "Convenience Fee"
540
- }), /* @__PURE__ */ C("span", {
541
- className: "text-text-primary",
542
- children: a(N.pricing.convenienceFee, { minimumFractionDigits: 0 })
543
- })]
544
- }),
545
- /* @__PURE__ */ w("div", {
546
- className: "flex justify-between",
547
- children: [/* @__PURE__ */ C("span", {
548
- className: "text-text-secondary",
549
- children: "Tax"
550
- }), /* @__PURE__ */ C("span", {
551
- className: "text-text-primary",
552
- children: a(N.pricing.tax, { minimumFractionDigits: 0 })
553
- })]
554
- }),
555
- N.pricing.discount > 0 && /* @__PURE__ */ w("div", {
556
- className: "flex justify-between",
557
- children: [/* @__PURE__ */ C("span", {
558
- className: "text-status-success-text",
559
- children: "Discount"
560
- }), /* @__PURE__ */ w("span", {
561
- className: "text-status-success-text",
562
- children: ["-", a(N.pricing.discount, { minimumFractionDigits: 0 })]
563
- })]
564
- }),
565
- /* @__PURE__ */ w("div", {
566
- className: "flex justify-between border-t border-border-seam pt-2.5",
567
- children: [/* @__PURE__ */ C("span", {
568
- className: "font-semibold text-text-primary",
569
- children: "Total"
570
- }), /* @__PURE__ */ C("span", {
571
- className: "font-bold text-text-primary",
572
- children: a(N.pricing.total, { minimumFractionDigits: 0 })
573
- })]
574
- })
575
- ]
576
- })]
577
- }),
578
- /* @__PURE__ */ w("div", {
579
- className: "rounded-lg border border-border-seam bg-bg-surface p-5",
580
- children: [/* @__PURE__ */ C("h3", {
581
- className: "text-base font-semibold text-text-primary mb-3",
582
- children: "Booking Info"
583
- }), /* @__PURE__ */ w("div", {
584
- className: "space-y-3",
585
- children: [
586
- /* @__PURE__ */ w("div", {
587
- className: "flex items-center gap-2",
588
- children: [/* @__PURE__ */ C(f, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
589
- className: "text-xs text-text-secondary",
590
- children: "Booked On"
591
- }), /* @__PURE__ */ C("p", {
592
- className: "text-sm text-text-primary",
593
- children: o(N.createdAt)
594
- })] })]
595
- }),
596
- /* @__PURE__ */ w("div", {
597
- className: "flex items-center gap-2",
598
- children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
599
- className: "text-xs text-text-secondary",
600
- children: "Scheduled"
601
- }), /* @__PURE__ */ w("p", {
602
- className: "text-sm text-text-primary",
603
- children: [
604
- N.scheduledDate,
605
- " at ",
606
- N.scheduledTime
607
- ]
608
- })] })]
609
- }),
610
- /* @__PURE__ */ w("div", {
611
- className: "flex items-center gap-2",
612
- children: [/* @__PURE__ */ C(h, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
613
- className: "text-xs text-text-secondary",
614
- children: "Duration"
615
- }), /* @__PURE__ */ w("p", {
616
- className: "text-sm text-text-primary",
617
- children: [N.duration, " minutes"]
618
- })] })]
619
- })
620
- ]
621
- })]
622
- }),
623
- L && /* @__PURE__ */ w("button", {
624
- type: "button",
625
- className: "w-full inline-flex items-center justify-center gap-2 rounded-lg border border-status-error-border bg-status-error-bg-subtle px-4 py-3 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
626
- children: [/* @__PURE__ */ C(x, { className: "h-4 w-4" }), "Cancel Booking"]
627
- })
628
- ]
629
- })]
630
- })
631
- ]
632
- });
633
- }
634
- //#endregion
635
- export { A as BookingDetailsPage };
636
-
637
- //# sourceMappingURL=BookingDetailsPage.js.map