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