@burdenoff/microfe-labsofscience 2026.626.2 → 2026.628.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,839 +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 { EmptyState as r } from "../../components/EmptyState.js";
5
- import { useMemo as i, useState as a } from "react";
6
- import { AlertCircle as o, CheckCircle2 as s, Clock as c, Edit2 as l, Mail as u, Phone as d, Search as f, Star as p, Trash2 as m, UserPlus as h, Users as g, X as _ } from "lucide-react";
7
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
8
- import { EmphasisPanel as b, PagePurpose as x } from "@burdenoff/fe-libs/ui";
9
- //#region src/labsofscience/pages/cart-owner/StaffManagementPage.tsx
10
- var S = [
11
- {
12
- id: "staff-001",
13
- firstName: "Ravi",
14
- lastName: "Kumar",
15
- email: "ravi@dosaexpress.in",
16
- phone: "+91-9876543210",
17
- role: "delivery",
18
- status: "active",
19
- dateJoined: "2023-06-15",
20
- lastActive: "2024-01-16T10:00:00Z",
21
- hourlyRate: 200,
22
- hoursWorked: 160,
23
- totalEarnings: 32e3,
24
- performance: {
25
- rating: 4.8,
26
- tasksCompleted: 245,
27
- customerRating: 4.7,
28
- punctuality: 95
29
- },
30
- currentShift: "09:00 - 17:00",
31
- shiftsThisWeek: 5
32
- },
33
- {
34
- id: "staff-002",
35
- firstName: "Suresh",
36
- lastName: "Worker",
37
- email: "suresh@dosaexpress.in",
38
- phone: "+91-9876543211",
39
- role: "chef",
40
- status: "active",
41
- dateJoined: "2023-08-20",
42
- lastActive: "2024-01-16T09:30:00Z",
43
- hourlyRate: 250,
44
- hoursWorked: 148,
45
- totalEarnings: 37e3,
46
- performance: {
47
- rating: 4.6,
48
- tasksCompleted: 312,
49
- customerRating: 4.5,
50
- punctuality: 90
51
- },
52
- currentShift: "10:00 - 18:00",
53
- shiftsThisWeek: 4
54
- },
55
- {
56
- id: "staff-003",
57
- firstName: "Amit",
58
- lastName: "Sharma",
59
- email: "amit@dosaexpress.in",
60
- phone: "+91-9876543212",
61
- role: "delivery",
62
- status: "on-leave",
63
- dateJoined: "2023-10-01",
64
- hourlyRate: 180,
65
- hoursWorked: 120,
66
- totalEarnings: 21600,
67
- performance: {
68
- rating: 4.4,
69
- tasksCompleted: 178,
70
- customerRating: 4.3,
71
- punctuality: 85
72
- },
73
- shiftsThisWeek: 0
74
- },
75
- {
76
- id: "staff-004",
77
- firstName: "Priya",
78
- lastName: "Helper",
79
- email: "priya@dosaexpress.in",
80
- phone: "+91-9876543213",
81
- role: "server",
82
- status: "inactive",
83
- dateJoined: "2024-01-05",
84
- hourlyRate: 150,
85
- hoursWorked: 40,
86
- totalEarnings: 6e3,
87
- performance: {
88
- rating: 4.7,
89
- tasksCompleted: 56,
90
- customerRating: 4.8,
91
- punctuality: 98
92
- },
93
- shiftsThisWeek: 0
94
- },
95
- {
96
- id: "staff-005",
97
- firstName: "Kiran",
98
- lastName: "B.",
99
- email: "kiran@dosaexpress.in",
100
- phone: "+91-9876543214",
101
- role: "cashier",
102
- status: "active",
103
- dateJoined: "2023-12-10",
104
- lastActive: "2024-01-16T11:00:00Z",
105
- hourlyRate: 175,
106
- hoursWorked: 80,
107
- totalEarnings: 14e3,
108
- performance: {
109
- rating: 4.3,
110
- tasksCompleted: 134,
111
- customerRating: 4.2,
112
- punctuality: 88
113
- },
114
- currentShift: "11:00 - 19:00",
115
- shiftsThisWeek: 5
116
- },
117
- {
118
- id: "staff-006",
119
- firstName: "Meera",
120
- lastName: "Devi",
121
- email: "meera@dosaexpress.in",
122
- phone: "+91-9876543215",
123
- role: "manager",
124
- status: "active",
125
- dateJoined: "2023-04-01",
126
- lastActive: "2024-01-16T08:00:00Z",
127
- hourlyRate: 350,
128
- hoursWorked: 168,
129
- totalEarnings: 58800,
130
- performance: {
131
- rating: 4.9,
132
- tasksCompleted: 420,
133
- customerRating: 4.9,
134
- punctuality: 99
135
- },
136
- currentShift: "08:00 - 16:00",
137
- shiftsThisWeek: 6
138
- }
139
- ], C = {
140
- active: {
141
- label: "Active",
142
- color: "text-status-success-text",
143
- dot: "bg-status-success-bg"
144
- },
145
- inactive: {
146
- label: "Inactive",
147
- color: "text-text-secondary",
148
- dot: "bg-muted-foreground"
149
- },
150
- "on-leave": {
151
- label: "On Leave",
152
- color: "text-status-warning-text",
153
- dot: "bg-status-warning-bg"
154
- },
155
- terminated: {
156
- label: "Terminated",
157
- color: "text-status-error-text",
158
- dot: "bg-status-error-bg"
159
- }
160
- }, w = {
161
- manager: {
162
- label: "Manager",
163
- color: "bg-[color-mix(in_oklab,var(--color-accent-purple)_14%,transparent)] text-accent-purple"
164
- },
165
- chef: {
166
- label: "Chef",
167
- color: "bg-status-warning-bg-subtle text-status-warning-text"
168
- },
169
- server: {
170
- label: "Server",
171
- color: "bg-status-info-bg-subtle text-status-info-text"
172
- },
173
- delivery: {
174
- label: "Delivery",
175
- color: "bg-status-success-bg-subtle text-status-success-text"
176
- },
177
- cashier: {
178
- label: "Cashier",
179
- color: "bg-status-info-bg-subtle text-status-info-text"
180
- }
181
- }, T = {
182
- email: "",
183
- firstName: "",
184
- lastName: "",
185
- phone: "",
186
- role: "server",
187
- hourlyRate: 150
188
- }, E = () => {
189
- let { navigateTo: E } = e(), [D, O] = a(S), [k, A] = a(""), [j, M] = a(""), [N, P] = a(""), [F, I] = a("name"), [L, R] = a(!1), [z, B] = a(!1), [V, H] = a(null), [U, W] = a(T), [G, K] = a({
190
- firstName: "",
191
- lastName: "",
192
- email: "",
193
- phone: "",
194
- role: "server",
195
- hourlyRate: 150,
196
- status: "active"
197
- }), [q, J] = a(null), Y = (e, t) => {
198
- J({
199
- text: e,
200
- type: t
201
- }), setTimeout(() => J(null), 3e3);
202
- }, X = D.filter((e) => e.status === "active").length, Z = D.filter((e) => e.status === "on-leave").length, Q = D.length > 0 ? (D.reduce((e, t) => e + t.performance.rating, 0) / D.length).toFixed(1) : "0";
203
- D.reduce((e, t) => e + t.totalEarnings, 0);
204
- let $ = i(() => {
205
- let e = [...D];
206
- if (k) {
207
- let t = k.toLowerCase();
208
- e = e.filter((e) => `${e.firstName} ${e.lastName}`.toLowerCase().includes(t) || e.email.toLowerCase().includes(t) || e.phone.includes(t));
209
- }
210
- switch (j && (e = e.filter((e) => e.role === j)), N && (e = e.filter((e) => e.status === N)), F) {
211
- case "name":
212
- e.sort((e, t) => `${e.firstName} ${e.lastName}`.localeCompare(`${t.firstName} ${t.lastName}`));
213
- break;
214
- case "rating":
215
- e.sort((e, t) => t.performance.rating - e.performance.rating);
216
- break;
217
- case "hours":
218
- e.sort((e, t) => t.hoursWorked - e.hoursWorked);
219
- break;
220
- case "joined":
221
- e.sort((e, t) => new Date(t.dateJoined).getTime() - new Date(e.dateJoined).getTime());
222
- break;
223
- }
224
- return e;
225
- }, [
226
- D,
227
- k,
228
- j,
229
- N,
230
- F
231
- ]), ee = () => {
232
- if (!U.email || !U.firstName || !U.lastName) {
233
- Y("Please fill in all required fields", "error");
234
- return;
235
- }
236
- let e = {
237
- id: `staff-${Date.now()}`,
238
- ...U,
239
- status: "active",
240
- dateJoined: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
241
- hoursWorked: 0,
242
- totalEarnings: 0,
243
- performance: {
244
- rating: 0,
245
- tasksCompleted: 0,
246
- customerRating: 0,
247
- punctuality: 0
248
- },
249
- shiftsThisWeek: 0
250
- };
251
- O((t) => [...t, e]), R(!1), W(T), Y("Staff member invited successfully", "success");
252
- }, te = (e) => {
253
- H(e), K({
254
- firstName: e.firstName,
255
- lastName: e.lastName,
256
- email: e.email,
257
- phone: e.phone,
258
- role: e.role,
259
- hourlyRate: e.hourlyRate,
260
- status: e.status
261
- }), B(!0);
262
- }, ne = () => {
263
- V && (O((e) => e.map((e) => e.id === V.id ? {
264
- ...e,
265
- ...G
266
- } : e)), B(!1), Y("Staff member updated successfully", "success"));
267
- }, re = (e) => {
268
- O((t) => t.map((t) => {
269
- if (t.id === e) {
270
- let e = t.status === "active" ? "inactive" : "active";
271
- return {
272
- ...t,
273
- status: e
274
- };
275
- }
276
- return t;
277
- })), Y("Staff status updated", "success");
278
- }, ie = (e) => {
279
- confirm("Are you sure you want to remove this staff member?") && (O((t) => t.filter((t) => t.id !== e)), Y("Staff member removed", "success"));
280
- };
281
- return /* @__PURE__ */ y(n, {
282
- title: "Staff Management",
283
- description: "Manage your workers, delivery partners, and shifts",
284
- actions: /* @__PURE__ */ y("button", {
285
- type: "button",
286
- onClick: () => {
287
- W(T), R(!0);
288
- },
289
- className: "inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
290
- children: [/* @__PURE__ */ v(h, { className: "h-4 w-4" }), "Invite Staff"]
291
- }),
292
- children: [
293
- /* @__PURE__ */ y("div", {
294
- className: "space-y-4",
295
- children: [
296
- q && /* @__PURE__ */ y("div", {
297
- className: t("flex items-center gap-2 rounded-lg border p-3", q.type === "success" ? "border-status-success-border bg-status-success-bg-subtle" : "border-status-error-border bg-status-error-bg-subtle"),
298
- children: [q.type === "success" ? /* @__PURE__ */ v(s, { className: "h-4 w-4 text-status-success-text" }) : /* @__PURE__ */ v(o, { className: "h-4 w-4 text-status-error-text" }), /* @__PURE__ */ v("span", {
299
- className: t("text-sm font-medium", q.type === "success" ? "text-status-success-text" : "text-status-error-text"),
300
- children: q.text
301
- })]
302
- }),
303
- /* @__PURE__ */ v(x, {
304
- icon: /* @__PURE__ */ v(g, { className: "h-4 w-4" }),
305
- children: "Build and manage the team behind your cart. Invite chefs, servers, delivery partners and managers, set their pay, track who's active or on leave, and review each member's rating and punctuality — a well-staffed cart keeps orders moving during the rush."
306
- }),
307
- /* @__PURE__ */ y(b, {
308
- className: "grid grid-cols-2 sm:grid-cols-4 gap-3",
309
- children: [
310
- /* @__PURE__ */ y("div", {
311
- className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
312
- children: [/* @__PURE__ */ v("p", {
313
- className: "text-2xl font-bold text-text-primary",
314
- children: D.length
315
- }), /* @__PURE__ */ v("p", {
316
- className: "text-xs text-text-secondary",
317
- children: "Total Staff"
318
- })]
319
- }),
320
- /* @__PURE__ */ y("div", {
321
- className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
322
- children: [/* @__PURE__ */ v("p", {
323
- className: "text-2xl font-bold text-status-success-text",
324
- children: X
325
- }), /* @__PURE__ */ v("p", {
326
- className: "text-xs text-text-secondary",
327
- children: "Active Now"
328
- })]
329
- }),
330
- /* @__PURE__ */ y("div", {
331
- className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
332
- children: [/* @__PURE__ */ v("p", {
333
- className: "text-2xl font-bold text-status-warning-text",
334
- children: Z
335
- }), /* @__PURE__ */ v("p", {
336
- className: "text-xs text-text-secondary",
337
- children: "On Leave"
338
- })]
339
- }),
340
- /* @__PURE__ */ y("div", {
341
- className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
342
- children: [/* @__PURE__ */ v("p", {
343
- className: "text-2xl font-bold text-text-primary",
344
- children: Q
345
- }), /* @__PURE__ */ v("p", {
346
- className: "text-xs text-text-secondary",
347
- children: "Avg. Rating"
348
- })]
349
- })
350
- ]
351
- }),
352
- /* @__PURE__ */ v("div", {
353
- className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
354
- children: /* @__PURE__ */ y("div", {
355
- className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",
356
- children: [
357
- /* @__PURE__ */ y("div", {
358
- className: "relative",
359
- children: [/* @__PURE__ */ v(f, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ v("input", {
360
- type: "text",
361
- placeholder: "Search staff...",
362
- value: k,
363
- onChange: (e) => A(e.target.value),
364
- className: "w-full rounded-md border border-border-seam bg-bg-surface pl-10 pr-4 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
365
- })]
366
- }),
367
- /* @__PURE__ */ y("select", {
368
- value: j,
369
- onChange: (e) => M(e.target.value),
370
- className: "rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
371
- children: [/* @__PURE__ */ v("option", {
372
- value: "",
373
- children: "All Roles"
374
- }), Object.entries(w).map(([e, t]) => /* @__PURE__ */ v("option", {
375
- value: e,
376
- children: t.label
377
- }, e))]
378
- }),
379
- /* @__PURE__ */ y("select", {
380
- value: N,
381
- onChange: (e) => P(e.target.value),
382
- className: "rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
383
- children: [/* @__PURE__ */ v("option", {
384
- value: "",
385
- children: "All Status"
386
- }), Object.entries(C).map(([e, t]) => /* @__PURE__ */ v("option", {
387
- value: e,
388
- children: t.label
389
- }, e))]
390
- }),
391
- /* @__PURE__ */ y("select", {
392
- value: F,
393
- onChange: (e) => I(e.target.value),
394
- className: "rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
395
- children: [
396
- /* @__PURE__ */ v("option", {
397
- value: "name",
398
- children: "Name A-Z"
399
- }),
400
- /* @__PURE__ */ v("option", {
401
- value: "rating",
402
- children: "Rating: High to Low"
403
- }),
404
- /* @__PURE__ */ v("option", {
405
- value: "hours",
406
- children: "Hours: Most Worked"
407
- }),
408
- /* @__PURE__ */ v("option", {
409
- value: "joined",
410
- children: "Recently Joined"
411
- })
412
- ]
413
- })
414
- ]
415
- })
416
- }),
417
- $.length === 0 ? /* @__PURE__ */ v(r, {
418
- illustration: k || j || N ? "empty-search" : "empty-people",
419
- icon: /* @__PURE__ */ v(g, { className: "h-12 w-12" }),
420
- title: "No staff members found",
421
- description: k || j || N ? "Try adjusting your filters." : "Invite your first team member to get started.",
422
- action: /* @__PURE__ */ y("button", {
423
- type: "button",
424
- onClick: () => {
425
- W(T), R(!0);
426
- },
427
- className: "inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80",
428
- children: [/* @__PURE__ */ v(h, { className: "h-4 w-4" }), "Invite Staff"]
429
- })
430
- }) : /* @__PURE__ */ v("div", {
431
- className: "rounded-lg border border-border-seam bg-bg-surface shadow-sm divide-y divide-border",
432
- children: $.map((e) => {
433
- let n = C[e.status], r = w[e.role];
434
- return /* @__PURE__ */ y("div", {
435
- className: "p-4 sm:p-5 hover:bg-bg-sunken/30 transition-colors",
436
- children: [/* @__PURE__ */ y("div", {
437
- className: "flex flex-col sm:flex-row sm:items-center gap-4",
438
- children: [/* @__PURE__ */ y("div", {
439
- className: "flex items-center gap-4 flex-1 min-w-0",
440
- children: [/* @__PURE__ */ y("div", {
441
- className: "relative shrink-0",
442
- children: [/* @__PURE__ */ v("div", {
443
- className: "flex h-12 w-12 items-center justify-center rounded-full bg-bg-sunken text-sm font-semibold text-text-primary",
444
- children: `${e.firstName[0]}${e.lastName[0]}`
445
- }), /* @__PURE__ */ v("span", { className: t("absolute -bottom-0.5 -right-0.5 h-3.5 w-3.5 rounded-full border-2 border-card", n.dot) })]
446
- }), /* @__PURE__ */ y("div", {
447
- className: "flex-1 min-w-0",
448
- children: [/* @__PURE__ */ y("div", {
449
- className: "flex items-center gap-2 flex-wrap",
450
- children: [
451
- /* @__PURE__ */ y("p", {
452
- className: "text-sm font-medium text-text-primary",
453
- children: [
454
- e.firstName,
455
- " ",
456
- e.lastName
457
- ]
458
- }),
459
- /* @__PURE__ */ v("span", {
460
- className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium", r.color),
461
- children: r.label
462
- }),
463
- /* @__PURE__ */ v("span", {
464
- className: t("text-xs", n.color),
465
- children: n.label
466
- })
467
- ]
468
- }), /* @__PURE__ */ y("div", {
469
- className: "flex items-center gap-3 mt-1 text-xs text-text-secondary flex-wrap",
470
- children: [/* @__PURE__ */ y("span", {
471
- className: "flex items-center gap-1",
472
- children: [/* @__PURE__ */ v(u, { className: "h-3 w-3" }), e.email]
473
- }), /* @__PURE__ */ y("span", {
474
- className: "flex items-center gap-1",
475
- children: [/* @__PURE__ */ v(d, { className: "h-3 w-3" }), e.phone]
476
- })]
477
- })]
478
- })]
479
- }), /* @__PURE__ */ y("div", {
480
- className: "flex items-center gap-4 sm:gap-6",
481
- children: [/* @__PURE__ */ y("div", {
482
- className: "hidden md:flex items-center gap-4 text-xs",
483
- children: [
484
- /* @__PURE__ */ y("div", {
485
- className: "text-center",
486
- children: [/* @__PURE__ */ y("p", {
487
- className: "font-bold text-text-primary flex items-center gap-0.5 justify-center",
488
- children: [/* @__PURE__ */ v(p, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.performance.rating]
489
- }), /* @__PURE__ */ v("p", {
490
- className: "text-text-secondary",
491
- children: "Rating"
492
- })]
493
- }),
494
- /* @__PURE__ */ y("div", {
495
- className: "text-center",
496
- children: [/* @__PURE__ */ v("p", {
497
- className: "font-bold text-text-primary",
498
- children: e.performance.tasksCompleted
499
- }), /* @__PURE__ */ v("p", {
500
- className: "text-text-secondary",
501
- children: "Tasks"
502
- })]
503
- }),
504
- /* @__PURE__ */ y("div", {
505
- className: "text-center",
506
- children: [/* @__PURE__ */ y("p", {
507
- className: "font-bold text-text-primary",
508
- children: [e.performance.punctuality, "%"]
509
- }), /* @__PURE__ */ v("p", {
510
- className: "text-text-secondary",
511
- children: "On Time"
512
- })]
513
- }),
514
- e.currentShift && /* @__PURE__ */ y("div", {
515
- className: "text-center",
516
- children: [/* @__PURE__ */ y("p", {
517
- className: "font-bold text-text-primary flex items-center gap-0.5 justify-center",
518
- children: [/* @__PURE__ */ v(c, { className: "h-3 w-3 text-text-secondary" }), e.currentShift]
519
- }), /* @__PURE__ */ v("p", {
520
- className: "text-text-secondary",
521
- children: "Shift"
522
- })]
523
- })
524
- ]
525
- }), /* @__PURE__ */ y("div", {
526
- className: "flex items-center gap-1",
527
- children: [
528
- /* @__PURE__ */ v("button", {
529
- type: "button",
530
- onClick: () => re(e.id),
531
- className: t("h-6 w-11 rounded-full transition-colors relative", e.status === "active" ? "bg-status-success-bg" : "bg-muted-foreground/30"),
532
- title: e.status === "active" ? "Deactivate" : "Activate",
533
- children: /* @__PURE__ */ v("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", e.status === "active" ? "translate-x-5" : "translate-x-0.5") })
534
- }),
535
- /* @__PURE__ */ v("button", {
536
- type: "button",
537
- onClick: () => te(e),
538
- className: "rounded p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-text-primary transition-colors",
539
- title: "Edit",
540
- children: /* @__PURE__ */ v(l, { className: "h-4 w-4" })
541
- }),
542
- /* @__PURE__ */ v("button", {
543
- type: "button",
544
- onClick: () => ie(e.id),
545
- className: "rounded p-1.5 text-text-secondary hover:bg-status-error-bg-subtle hover:text-status-error-text transition-colors",
546
- title: "Remove",
547
- children: /* @__PURE__ */ v(m, { className: "h-4 w-4" })
548
- })
549
- ]
550
- })]
551
- })]
552
- }), /* @__PURE__ */ y("div", {
553
- className: "md:hidden flex items-center gap-4 mt-3 text-xs text-text-secondary",
554
- children: [
555
- /* @__PURE__ */ y("span", {
556
- className: "flex items-center gap-0.5",
557
- children: [/* @__PURE__ */ v(p, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.performance.rating]
558
- }),
559
- /* @__PURE__ */ y("span", { children: [e.performance.tasksCompleted, " tasks"] }),
560
- /* @__PURE__ */ y("span", { children: [e.performance.punctuality, "% on time"] }),
561
- e.currentShift && /* @__PURE__ */ y("span", {
562
- className: "flex items-center gap-0.5",
563
- children: [/* @__PURE__ */ v(c, { className: "h-3 w-3" }), e.currentShift]
564
- }),
565
- /* @__PURE__ */ y("span", { children: [e.shiftsThisWeek, " shifts/wk"] })
566
- ]
567
- })]
568
- }, e.id);
569
- })
570
- })
571
- ]
572
- }),
573
- L && /* @__PURE__ */ v("div", {
574
- className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
575
- children: /* @__PURE__ */ v("div", {
576
- className: "w-full max-w-lg rounded-lg border border-border-seam bg-bg-surface shadow-xl",
577
- children: /* @__PURE__ */ y("div", {
578
- className: "p-6",
579
- children: [
580
- /* @__PURE__ */ y("div", {
581
- className: "flex items-center justify-between mb-4",
582
- children: [/* @__PURE__ */ v("h3", {
583
- className: "text-lg font-semibold text-text-primary",
584
- children: "Invite Staff Member"
585
- }), /* @__PURE__ */ v("button", {
586
- type: "button",
587
- onClick: () => R(!1),
588
- className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
589
- children: /* @__PURE__ */ v(_, { className: "h-5 w-5" })
590
- })]
591
- }),
592
- /* @__PURE__ */ y("div", {
593
- className: "space-y-4",
594
- children: [
595
- /* @__PURE__ */ y("div", {
596
- className: "grid grid-cols-2 gap-4",
597
- children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
598
- className: "block text-sm font-medium text-text-primary mb-1",
599
- children: "First Name *"
600
- }), /* @__PURE__ */ v("input", {
601
- type: "text",
602
- value: U.firstName,
603
- onChange: (e) => W((t) => ({
604
- ...t,
605
- firstName: e.target.value
606
- })),
607
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
608
- })] }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
609
- className: "block text-sm font-medium text-text-primary mb-1",
610
- children: "Last Name *"
611
- }), /* @__PURE__ */ v("input", {
612
- type: "text",
613
- value: U.lastName,
614
- onChange: (e) => W((t) => ({
615
- ...t,
616
- lastName: e.target.value
617
- })),
618
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
619
- })] })]
620
- }),
621
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
622
- className: "block text-sm font-medium text-text-primary mb-1",
623
- children: "Email *"
624
- }), /* @__PURE__ */ v("input", {
625
- type: "email",
626
- value: U.email,
627
- onChange: (e) => W((t) => ({
628
- ...t,
629
- email: e.target.value
630
- })),
631
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
632
- })] }),
633
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
634
- className: "block text-sm font-medium text-text-primary mb-1",
635
- children: "Phone"
636
- }), /* @__PURE__ */ v("input", {
637
- type: "tel",
638
- value: U.phone,
639
- onChange: (e) => W((t) => ({
640
- ...t,
641
- phone: e.target.value
642
- })),
643
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
644
- })] }),
645
- /* @__PURE__ */ y("div", {
646
- className: "grid grid-cols-2 gap-4",
647
- children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
648
- className: "block text-sm font-medium text-text-primary mb-1",
649
- children: "Role"
650
- }), /* @__PURE__ */ v("select", {
651
- value: U.role,
652
- onChange: (e) => W((t) => ({
653
- ...t,
654
- role: e.target.value
655
- })),
656
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
657
- children: Object.entries(w).map(([e, t]) => /* @__PURE__ */ v("option", {
658
- value: e,
659
- children: t.label
660
- }, e))
661
- })] }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
662
- className: "block text-sm font-medium text-text-primary mb-1",
663
- children: "Hourly Rate (₹)"
664
- }), /* @__PURE__ */ v("input", {
665
- type: "number",
666
- value: U.hourlyRate,
667
- onChange: (e) => W((t) => ({
668
- ...t,
669
- hourlyRate: parseInt(e.target.value) || 0
670
- })),
671
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
672
- })] })]
673
- })
674
- ]
675
- }),
676
- /* @__PURE__ */ y("div", {
677
- className: "flex gap-3 mt-6",
678
- children: [/* @__PURE__ */ v("button", {
679
- type: "button",
680
- onClick: () => R(!1),
681
- className: "flex-1 rounded-md border border-border-seam px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
682
- children: "Cancel"
683
- }), /* @__PURE__ */ v("button", {
684
- type: "button",
685
- onClick: ee,
686
- className: "flex-1 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80",
687
- children: "Send Invite"
688
- })]
689
- })
690
- ]
691
- })
692
- })
693
- }),
694
- z && V && /* @__PURE__ */ v("div", {
695
- className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
696
- children: /* @__PURE__ */ v("div", {
697
- className: "w-full max-w-lg rounded-lg border border-border-seam bg-bg-surface shadow-xl",
698
- children: /* @__PURE__ */ y("div", {
699
- className: "p-6",
700
- children: [
701
- /* @__PURE__ */ y("div", {
702
- className: "flex items-center justify-between mb-4",
703
- children: [/* @__PURE__ */ v("h3", {
704
- className: "text-lg font-semibold text-text-primary",
705
- children: "Edit Staff Member"
706
- }), /* @__PURE__ */ v("button", {
707
- type: "button",
708
- onClick: () => B(!1),
709
- className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
710
- children: /* @__PURE__ */ v(_, { className: "h-5 w-5" })
711
- })]
712
- }),
713
- /* @__PURE__ */ y("div", {
714
- className: "space-y-4",
715
- children: [
716
- /* @__PURE__ */ y("div", {
717
- className: "grid grid-cols-2 gap-4",
718
- children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
719
- className: "block text-sm font-medium text-text-primary mb-1",
720
- children: "First Name"
721
- }), /* @__PURE__ */ v("input", {
722
- type: "text",
723
- value: G.firstName,
724
- onChange: (e) => K((t) => ({
725
- ...t,
726
- firstName: e.target.value
727
- })),
728
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
729
- })] }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
730
- className: "block text-sm font-medium text-text-primary mb-1",
731
- children: "Last Name"
732
- }), /* @__PURE__ */ v("input", {
733
- type: "text",
734
- value: G.lastName,
735
- onChange: (e) => K((t) => ({
736
- ...t,
737
- lastName: e.target.value
738
- })),
739
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
740
- })] })]
741
- }),
742
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
743
- className: "block text-sm font-medium text-text-primary mb-1",
744
- children: "Email"
745
- }), /* @__PURE__ */ v("input", {
746
- type: "email",
747
- value: G.email,
748
- onChange: (e) => K((t) => ({
749
- ...t,
750
- email: e.target.value
751
- })),
752
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
753
- })] }),
754
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
755
- className: "block text-sm font-medium text-text-primary mb-1",
756
- children: "Phone"
757
- }), /* @__PURE__ */ v("input", {
758
- type: "tel",
759
- value: G.phone,
760
- onChange: (e) => K((t) => ({
761
- ...t,
762
- phone: e.target.value
763
- })),
764
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
765
- })] }),
766
- /* @__PURE__ */ y("div", {
767
- className: "grid grid-cols-3 gap-4",
768
- children: [
769
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
770
- className: "block text-sm font-medium text-text-primary mb-1",
771
- children: "Role"
772
- }), /* @__PURE__ */ v("select", {
773
- value: G.role,
774
- onChange: (e) => K((t) => ({
775
- ...t,
776
- role: e.target.value
777
- })),
778
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
779
- children: Object.entries(w).map(([e, t]) => /* @__PURE__ */ v("option", {
780
- value: e,
781
- children: t.label
782
- }, e))
783
- })] }),
784
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
785
- className: "block text-sm font-medium text-text-primary mb-1",
786
- children: "Rate (₹/hr)"
787
- }), /* @__PURE__ */ v("input", {
788
- type: "number",
789
- value: G.hourlyRate,
790
- onChange: (e) => K((t) => ({
791
- ...t,
792
- hourlyRate: parseInt(e.target.value) || 0
793
- })),
794
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
795
- })] }),
796
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
797
- className: "block text-sm font-medium text-text-primary mb-1",
798
- children: "Status"
799
- }), /* @__PURE__ */ v("select", {
800
- value: G.status,
801
- onChange: (e) => K((t) => ({
802
- ...t,
803
- status: e.target.value
804
- })),
805
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
806
- children: Object.entries(C).map(([e, t]) => /* @__PURE__ */ v("option", {
807
- value: e,
808
- children: t.label
809
- }, e))
810
- })] })
811
- ]
812
- })
813
- ]
814
- }),
815
- /* @__PURE__ */ y("div", {
816
- className: "flex gap-3 mt-6",
817
- children: [/* @__PURE__ */ v("button", {
818
- type: "button",
819
- onClick: () => B(!1),
820
- className: "flex-1 rounded-md border border-border-seam px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
821
- children: "Cancel"
822
- }), /* @__PURE__ */ v("button", {
823
- type: "button",
824
- onClick: ne,
825
- className: "flex-1 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80",
826
- children: "Save Changes"
827
- })]
828
- })
829
- ]
830
- })
831
- })
832
- })
833
- ]
834
- });
835
- };
836
- //#endregion
837
- export { E as StaffManagementPage };
838
-
839
- //# sourceMappingURL=StaffManagementPage.js.map