@burdenoff/microfe-kadaikodi 2026.625.1 → 2026.626.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/kadaikodi/pages/HomePage.js +19 -14
  2. package/dist/kadaikodi/pages/HomePage.js.map +1 -1
  3. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js +118 -83
  4. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
  5. package/dist/kadaikodi/pages/admin/AdminDashboard.js +75 -46
  6. package/dist/kadaikodi/pages/admin/AdminDashboard.js.map +1 -1
  7. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js +144 -128
  8. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js.map +1 -1
  9. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +255 -237
  10. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
  11. package/dist/kadaikodi/pages/admin/AdminProfilePage.js +129 -128
  12. package/dist/kadaikodi/pages/admin/AdminProfilePage.js.map +1 -1
  13. package/dist/kadaikodi/pages/admin/AdminSettingsPage.js +178 -150
  14. package/dist/kadaikodi/pages/admin/AdminSettingsPage.js.map +1 -1
  15. package/dist/kadaikodi/pages/admin/CartManagementPage.js +182 -159
  16. package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
  17. package/dist/kadaikodi/pages/admin/UserManagementPage.js +325 -303
  18. package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
  19. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +500 -469
  20. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  21. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js +534 -503
  22. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  23. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +73 -48
  24. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  25. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +103 -96
  26. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  27. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js +130 -129
  28. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  29. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +673 -670
  30. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  31. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +517 -514
  32. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
  33. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js +140 -125
  34. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
  35. package/dist/kadaikodi/pages/common/HelpSupportPage.js +302 -311
  36. package/dist/kadaikodi/pages/common/HelpSupportPage.js.map +1 -1
  37. package/dist/kadaikodi/pages/common/NotificationCenterPage.js +102 -91
  38. package/dist/kadaikodi/pages/common/NotificationCenterPage.js.map +1 -1
  39. package/dist/kadaikodi/pages/common/SettingsPage.js +766 -734
  40. package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
  41. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js +366 -356
  42. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js.map +1 -1
  43. package/dist/kadaikodi/pages/customer/CartDetailPage.js +243 -213
  44. package/dist/kadaikodi/pages/customer/CartDetailPage.js.map +1 -1
  45. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js +200 -195
  46. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js.map +1 -1
  47. package/dist/kadaikodi/pages/customer/CheckoutPage.js +95 -89
  48. package/dist/kadaikodi/pages/customer/CheckoutPage.js.map +1 -1
  49. package/dist/kadaikodi/pages/customer/CustomerDashboard.js +430 -387
  50. package/dist/kadaikodi/pages/customer/CustomerDashboard.js.map +1 -1
  51. package/dist/kadaikodi/pages/customer/CustomerProfilePage.js +488 -478
  52. package/dist/kadaikodi/pages/customer/CustomerProfilePage.js.map +1 -1
  53. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js +523 -512
  54. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
  55. package/dist/kadaikodi/pages/customer/FavoritesPage.js +83 -75
  56. package/dist/kadaikodi/pages/customer/FavoritesPage.js.map +1 -1
  57. package/dist/kadaikodi/pages/customer/OrderHistoryPage.js +116 -108
  58. package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
  59. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +67 -61
  60. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
  61. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js +90 -73
  62. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js.map +1 -1
  63. package/dist/kadaikodi/pages/customer/ReviewsPage.js +80 -72
  64. package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
  65. package/dist/kadaikodi/pages/customer/SavedAddressesPage.js +70 -53
  66. package/dist/kadaikodi/pages/customer/SavedAddressesPage.js.map +1 -1
  67. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js +289 -255
  68. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
  69. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +92 -84
  70. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  71. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js +63 -55
  72. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  73. package/dist/kadaikodi/pages/investor/InvestorDashboard.js +339 -311
  74. package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
  75. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +40 -32
  76. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  77. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js +174 -150
  78. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js.map +1 -1
  79. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js +385 -381
  80. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
  81. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +302 -273
  82. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
  83. package/dist/kadaikodi/pages/worker/WorkerDashboard.js +87 -59
  84. package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
  85. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +82 -75
  86. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
  87. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +81 -77
  88. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
  89. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +78 -71
  90. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
  91. package/package.json +2 -2
@@ -6,19 +6,20 @@ import { formatCurrency as i } from "../../utils/formatters.js";
6
6
  import { useEffect as a, useMemo as o, useState as s } from "react";
7
7
  import { Calendar as c, CalendarDays as l, CheckCircle2 as u, ChevronLeft as d, ChevronRight as f, Loader2 as p, LogIn as m, LogOut as h, MapPin as g, PlayCircle as _, Save as v, Send as y, ShoppingCart as b, Star as x, Timer as S } from "lucide-react";
8
8
  import { jsx as C, jsxs as w } from "react/jsx-runtime";
9
+ import { EmphasisPanel as T, PagePurpose as E } from "@burdenoff/fe-libs/ui";
9
10
  //#region src/kadaikodi/pages/worker/WorkerSchedulePage.tsx
10
- function T(e) {
11
+ function D(e) {
11
12
  return new Date(e).toLocaleDateString("en-US", {
12
13
  weekday: "short",
13
14
  month: "short",
14
15
  day: "numeric"
15
16
  });
16
17
  }
17
- function E(e) {
18
+ function O(e) {
18
19
  let [t, n] = e.split(":"), r = parseInt(t), i = r >= 12 ? "PM" : "AM";
19
20
  return `${r % 12 || 12}:${n} ${i}`;
20
21
  }
21
- function D(e) {
22
+ function k(e) {
22
23
  let t = /* @__PURE__ */ new Date(), n = t.getDay(), r = new Date(t);
23
24
  r.setDate(t.getDate() - n + e * 7);
24
25
  let i = new Date(r);
@@ -34,7 +35,7 @@ function D(e) {
34
35
  })
35
36
  };
36
37
  }
37
- function O(e) {
38
+ function A(e) {
38
39
  switch (e) {
39
40
  case "scheduled": return "bg-[var(--color-accent-soft)] text-text-primary";
40
41
  case "ongoing": return "bg-status-success-bg-subtle text-status-success-text";
@@ -43,7 +44,7 @@ function O(e) {
43
44
  default: return "bg-secondary text-secondary-foreground";
44
45
  }
45
46
  }
46
- function k(e) {
47
+ function j(e) {
47
48
  switch (e) {
48
49
  case "pending": return "bg-status-warning-bg-subtle text-status-warning-text";
49
50
  case "approved": return "bg-status-success-bg-subtle text-status-success-text";
@@ -51,12 +52,12 @@ function k(e) {
51
52
  default: return "bg-secondary text-secondary-foreground";
52
53
  }
53
54
  }
54
- var A = () => {
55
- let { navigateTo: A } = e(), [j, M] = s(!0), [N, P] = s("schedule"), [F, I] = s(0), [L, R] = s([]), [z, B] = s([]), [V, H] = s([]);
55
+ var M = () => {
56
+ let { navigateTo: M } = e(), [N, P] = s(!0), [F, I] = s("schedule"), [L, R] = s(0), [z, B] = s([]), [V, H] = s([]), [U, W] = s([]);
56
57
  a(() => {
57
- M(!0);
58
+ P(!0);
58
59
  let e = setTimeout(() => {
59
- R([
60
+ B([
60
61
  {
61
62
  id: "shift-001",
62
63
  date: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
@@ -104,7 +105,7 @@ var A = () => {
104
105
  status: "scheduled",
105
106
  earnings: 0
106
107
  }
107
- ]), B([
108
+ ]), H([
108
109
  {
109
110
  id: "req-001",
110
111
  date: new Date(Date.now() + 2880 * 60 * 1e3).toISOString().split("T")[0],
@@ -135,7 +136,7 @@ var A = () => {
135
136
  status: "rejected",
136
137
  requestedOn: (/* @__PURE__ */ new Date(Date.now() - 4320 * 60 * 1e3)).toISOString()
137
138
  }
138
- ]), H([
139
+ ]), W([
139
140
  {
140
141
  dayOfWeek: "Monday",
141
142
  isAvailable: !0,
@@ -178,48 +179,48 @@ var A = () => {
178
179
  preferredStartTime: "09:00",
179
180
  preferredEndTime: "18:00"
180
181
  }
181
- ]), M(!1);
182
+ ]), P(!1);
182
183
  }, 600);
183
184
  return () => clearTimeout(e);
184
- }, [F]);
185
- let U = o(() => {
186
- let e = L.filter((e) => e.status !== "cancelled"), t = e.reduce((e, t) => {
185
+ }, [L]);
186
+ let G = o(() => {
187
+ let e = z.filter((e) => e.status !== "cancelled"), t = e.reduce((e, t) => {
187
188
  let n = /* @__PURE__ */ new Date(`2024-01-01T${t.startTime}`);
188
189
  return e + ((/* @__PURE__ */ new Date(`2024-01-01T${t.endTime}`)).getTime() - n.getTime()) / (1e3 * 60 * 60);
189
- }, 0), n = e.reduce((e, t) => e + t.earnings, 0), r = L.find((e) => e.status === "scheduled");
190
+ }, 0), n = e.reduce((e, t) => e + t.earnings, 0), r = z.find((e) => e.status === "scheduled");
190
191
  return {
191
192
  hoursThisWeek: t,
192
193
  shiftsThisWeek: e.length,
193
194
  earningsThisWeek: n,
194
195
  nextShift: r
195
196
  };
196
- }, [L]), W = z.filter((e) => e.status === "pending").length, G = D(F), K = (e) => {
197
- R((t) => t.map((t) => t.id === e ? {
197
+ }, [z]), K = V.filter((e) => e.status === "pending").length, q = k(L), J = (e) => {
198
+ B((t) => t.map((t) => t.id === e ? {
198
199
  ...t,
199
200
  status: "ongoing"
200
201
  } : t)), alert("Checked in successfully");
201
- }, q = (e) => {
202
- R((t) => t.map((t) => t.id === e ? {
202
+ }, Y = (e) => {
203
+ B((t) => t.map((t) => t.id === e ? {
203
204
  ...t,
204
205
  status: "completed"
205
206
  } : t)), alert("Checked out successfully");
206
- }, J = (e) => {
207
- B((t) => t.map((t) => t.id === e ? {
207
+ }, X = (e) => {
208
+ H((t) => t.map((t) => t.id === e ? {
208
209
  ...t,
209
210
  status: "approved"
210
211
  } : t)), alert("Shift accepted");
211
- }, Y = (e) => {
212
- B((t) => t.map((t) => t.id === e ? {
212
+ }, Z = (e) => {
213
+ H((t) => t.map((t) => t.id === e ? {
213
214
  ...t,
214
215
  status: "rejected"
215
216
  } : t)), alert("Shift rejected");
216
- }, X = (e, t, n) => {
217
- H((r) => r.map((r) => r.dayOfWeek === e ? {
217
+ }, Q = (e, t, n) => {
218
+ W((r) => r.map((r) => r.dayOfWeek === e ? {
218
219
  ...r,
219
220
  [t]: n
220
221
  } : r));
221
222
  };
222
- return j ? /* @__PURE__ */ C(n, {
223
+ return N ? /* @__PURE__ */ C(n, {
223
224
  title: "Schedule",
224
225
  description: "Manage your work schedule",
225
226
  children: /* @__PURE__ */ C("div", {
@@ -232,12 +233,18 @@ var A = () => {
232
233
  })]
233
234
  })
234
235
  })
235
- }) : /* @__PURE__ */ C(n, {
236
+ }) : /* @__PURE__ */ w(n, {
236
237
  title: "Schedule",
237
238
  description: "Manage your work schedule",
238
- children: /* @__PURE__ */ w("div", {
239
+ children: [/* @__PURE__ */ C(E, {
240
+ className: "mb-6",
241
+ children: "Your shifts, hours and pay in one place. Use this page to see your upcoming shifts, request time off or swaps, and set the days and hours you're available — so your cart owner can roster you fairly and you always know when (and how much) you're working. Keep an eye on your weekly hours and next shift at the top."
242
+ }), /* @__PURE__ */ w("div", {
239
243
  className: "space-y-6",
240
- children: [/* @__PURE__ */ w("div", {
244
+ children: [/* @__PURE__ */ w(T, { children: [/* @__PURE__ */ C("h2", {
245
+ className: "mb-4 text-base font-semibold text-text-primary",
246
+ children: "This Week"
247
+ }), /* @__PURE__ */ w("div", {
241
248
  className: "grid grid-cols-2 md:grid-cols-4 gap-3",
242
249
  children: [
243
250
  /* @__PURE__ */ w("div", {
@@ -247,7 +254,7 @@ var A = () => {
247
254
  children: "Hours This Week"
248
255
  }), /* @__PURE__ */ w("p", {
249
256
  className: "text-2xl font-bold text-text-primary",
250
- children: [U.hoursThisWeek, "h"]
257
+ children: [G.hoursThisWeek, "h"]
251
258
  })]
252
259
  }),
253
260
  /* @__PURE__ */ w("div", {
@@ -257,7 +264,7 @@ var A = () => {
257
264
  children: "Shifts This Week"
258
265
  }), /* @__PURE__ */ C("p", {
259
266
  className: "text-2xl font-bold text-text-primary",
260
- children: U.shiftsThisWeek
267
+ children: G.shiftsThisWeek
261
268
  })]
262
269
  }),
263
270
  /* @__PURE__ */ w("div", {
@@ -267,7 +274,7 @@ var A = () => {
267
274
  children: "Week Earnings"
268
275
  }), /* @__PURE__ */ C("p", {
269
276
  className: "text-2xl font-bold text-text-primary",
270
- children: i(U.earningsThisWeek, { minimumFractionDigits: 0 })
277
+ children: i(G.earningsThisWeek, { minimumFractionDigits: 0 })
271
278
  })]
272
279
  }),
273
280
  /* @__PURE__ */ w("div", {
@@ -277,75 +284,75 @@ var A = () => {
277
284
  children: "Next Shift"
278
285
  }), /* @__PURE__ */ C("p", {
279
286
  className: "text-sm font-bold text-text-primary",
280
- children: U.nextShift ? `${T(U.nextShift.date)} ${E(U.nextShift.startTime)}` : "None scheduled"
287
+ children: G.nextShift ? `${D(G.nextShift.date)} ${O(G.nextShift.startTime)}` : "None scheduled"
281
288
  })]
282
289
  })
283
290
  ]
284
- }), /* @__PURE__ */ w("div", {
291
+ })] }), /* @__PURE__ */ w("div", {
285
292
  className: "rounded-lg border border-border-subtle bg-bg-surface shadow-sm overflow-hidden",
286
293
  children: [/* @__PURE__ */ w("div", {
287
294
  className: "flex border-b border-border-subtle",
288
295
  children: [
289
296
  /* @__PURE__ */ w("button", {
290
297
  type: "button",
291
- onClick: () => P("schedule"),
292
- className: t("flex-1 py-3 px-4 text-sm font-medium transition-colors flex items-center justify-center gap-2", N === "schedule" ? "border-b-2 border-border-focus text-text-primary bg-[var(--color-accent-soft)]" : "text-text-secondary hover:text-text-primary"),
298
+ onClick: () => I("schedule"),
299
+ className: t("flex-1 py-3 px-4 text-sm font-medium transition-colors flex items-center justify-center gap-2", F === "schedule" ? "border-b-2 border-border-focus text-text-primary bg-[var(--color-accent-soft)]" : "text-text-secondary hover:text-text-primary"),
293
300
  children: [/* @__PURE__ */ C(l, { className: "h-4 w-4" }), "My Schedule"]
294
301
  }),
295
302
  /* @__PURE__ */ w("button", {
296
303
  type: "button",
297
- onClick: () => P("requests"),
298
- className: t("flex-1 py-3 px-4 text-sm font-medium transition-colors flex items-center justify-center gap-2", N === "requests" ? "border-b-2 border-border-focus text-text-primary bg-[var(--color-accent-soft)]" : "text-text-secondary hover:text-text-primary"),
304
+ onClick: () => I("requests"),
305
+ className: t("flex-1 py-3 px-4 text-sm font-medium transition-colors flex items-center justify-center gap-2", F === "requests" ? "border-b-2 border-border-focus text-text-primary bg-[var(--color-accent-soft)]" : "text-text-secondary hover:text-text-primary"),
299
306
  children: [
300
307
  /* @__PURE__ */ C(y, { className: "h-4 w-4" }),
301
308
  "Shift Requests",
302
- W > 0 && /* @__PURE__ */ C("span", {
309
+ K > 0 && /* @__PURE__ */ C("span", {
303
310
  className: "ml-1 inline-flex items-center justify-center rounded-full bg-status-error-text px-1.5 py-0.5 text-[10px] font-medium text-white",
304
- children: W
311
+ children: K
305
312
  })
306
313
  ]
307
314
  }),
308
315
  /* @__PURE__ */ w("button", {
309
316
  type: "button",
310
- onClick: () => P("availability"),
311
- className: t("flex-1 py-3 px-4 text-sm font-medium transition-colors flex items-center justify-center gap-2", N === "availability" ? "border-b-2 border-border-focus text-text-primary bg-[var(--color-accent-soft)]" : "text-text-secondary hover:text-text-primary"),
317
+ onClick: () => I("availability"),
318
+ className: t("flex-1 py-3 px-4 text-sm font-medium transition-colors flex items-center justify-center gap-2", F === "availability" ? "border-b-2 border-border-focus text-text-primary bg-[var(--color-accent-soft)]" : "text-text-secondary hover:text-text-primary"),
312
319
  children: [/* @__PURE__ */ C(S, { className: "h-4 w-4" }), "Availability"]
313
320
  })
314
321
  ]
315
322
  }), /* @__PURE__ */ w("div", {
316
323
  className: "p-5",
317
324
  children: [
318
- N === "schedule" && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
325
+ F === "schedule" && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
319
326
  className: "flex items-center justify-between mb-5",
320
327
  children: [
321
328
  /* @__PURE__ */ w("button", {
322
329
  type: "button",
323
- onClick: () => I((e) => e - 1),
330
+ onClick: () => R((e) => e - 1),
324
331
  className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
325
332
  children: [/* @__PURE__ */ C(d, { className: "h-3.5 w-3.5" }), "Previous Week"]
326
333
  }),
327
334
  /* @__PURE__ */ w("h3", {
328
335
  className: "text-sm font-medium text-text-primary",
329
336
  children: [
330
- G.start,
337
+ q.start,
331
338
  " - ",
332
- G.end
339
+ q.end
333
340
  ]
334
341
  }),
335
342
  /* @__PURE__ */ w("button", {
336
343
  type: "button",
337
- onClick: () => I((e) => e + 1),
344
+ onClick: () => R((e) => e + 1),
338
345
  className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
339
346
  children: ["Next Week", /* @__PURE__ */ C(f, { className: "h-3.5 w-3.5" })]
340
347
  })
341
348
  ]
342
- }), L.length === 0 ? /* @__PURE__ */ C(r, {
349
+ }), z.length === 0 ? /* @__PURE__ */ C(r, {
343
350
  icon: /* @__PURE__ */ C(c, { className: "h-12 w-12" }),
344
351
  title: "No shifts scheduled",
345
352
  description: "No shifts scheduled for this week"
346
353
  }) : /* @__PURE__ */ C("div", {
347
354
  className: "space-y-3",
348
- children: L.map((e) => /* @__PURE__ */ w("div", {
355
+ children: z.map((e) => /* @__PURE__ */ w("div", {
349
356
  className: t("rounded-lg border p-4 transition-colors", e.status === "ongoing" ? "border-status-success-text/30 bg-status-success-bg-subtle" : "border-border-subtle hover:bg-bg-sunken/30"),
350
357
  children: [
351
358
  /* @__PURE__ */ w("div", {
@@ -354,17 +361,17 @@ var A = () => {
354
361
  className: "flex items-center gap-2 flex-wrap",
355
362
  children: [/* @__PURE__ */ C("h4", {
356
363
  className: "text-sm font-semibold text-text-primary",
357
- children: T(e.date)
364
+ children: D(e.date)
358
365
  }), /* @__PURE__ */ C("span", {
359
- className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", O(e.status)),
366
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", A(e.status)),
360
367
  children: e.status === "ongoing" ? "Ongoing" : e.status
361
368
  })]
362
369
  }), /* @__PURE__ */ w("p", {
363
370
  className: "text-xs text-text-secondary mt-1",
364
371
  children: [
365
- E(e.startTime),
372
+ O(e.startTime),
366
373
  " - ",
367
- E(e.endTime)
374
+ O(e.endTime)
368
375
  ]
369
376
  })] }), /* @__PURE__ */ w("div", {
370
377
  className: "text-right",
@@ -407,7 +414,7 @@ var A = () => {
407
414
  className: "mt-3 pt-3 border-t border-border-subtle",
408
415
  children: /* @__PURE__ */ w("button", {
409
416
  type: "button",
410
- onClick: () => K(e.id),
417
+ onClick: () => J(e.id),
411
418
  className: "inline-flex items-center gap-1.5 rounded-md bg-[var(--color-accent-soft)] px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-[var(--color-accent-soft)] transition-colors",
412
419
  children: [/* @__PURE__ */ C(m, { className: "h-3.5 w-3.5" }), "Check In"]
413
420
  })
@@ -419,7 +426,7 @@ var A = () => {
419
426
  children: [/* @__PURE__ */ C(_, { className: "h-3.5 w-3.5" }), "Shift in progress"]
420
427
  }), /* @__PURE__ */ w("button", {
421
428
  type: "button",
422
- onClick: () => q(e.id),
429
+ onClick: () => Y(e.id),
423
430
  className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
424
431
  children: [/* @__PURE__ */ C(h, { className: "h-3.5 w-3.5" }), "Check Out"]
425
432
  })]
@@ -427,29 +434,29 @@ var A = () => {
427
434
  ]
428
435
  }, e.id))
429
436
  })] }),
430
- N === "requests" && /* @__PURE__ */ C("div", { children: z.length === 0 ? /* @__PURE__ */ C(r, {
437
+ F === "requests" && /* @__PURE__ */ C("div", { children: V.length === 0 ? /* @__PURE__ */ C(r, {
431
438
  icon: /* @__PURE__ */ C(y, { className: "h-12 w-12" }),
432
439
  title: "No shift requests",
433
440
  description: "No shift requests available"
434
441
  }) : /* @__PURE__ */ C("div", {
435
442
  className: "space-y-3",
436
- children: z.map((e) => /* @__PURE__ */ w("div", {
443
+ children: V.map((e) => /* @__PURE__ */ w("div", {
437
444
  className: "rounded-lg border border-border-subtle p-4",
438
445
  children: [
439
446
  /* @__PURE__ */ w("div", {
440
447
  className: "flex items-center justify-between mb-3",
441
448
  children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("h4", {
442
449
  className: "text-sm font-semibold text-text-primary",
443
- children: T(e.date)
450
+ children: D(e.date)
444
451
  }), /* @__PURE__ */ w("p", {
445
452
  className: "text-xs text-text-secondary mt-0.5",
446
453
  children: [
447
- E(e.startTime),
454
+ O(e.startTime),
448
455
  " - ",
449
- E(e.endTime)
456
+ O(e.endTime)
450
457
  ]
451
458
  })] }), /* @__PURE__ */ C("span", {
452
- className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", k(e.status)),
459
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", j(e.status)),
453
460
  children: e.status
454
461
  })]
455
462
  }),
@@ -487,12 +494,12 @@ var A = () => {
487
494
  className: "flex gap-2",
488
495
  children: [/* @__PURE__ */ w("button", {
489
496
  type: "button",
490
- onClick: () => J(e.id),
497
+ onClick: () => X(e.id),
491
498
  className: "inline-flex items-center gap-1.5 rounded-md bg-status-success-bg-subtle px-3 py-1.5 text-xs font-medium text-status-success-text hover:bg-status-success-bg-subtle transition-colors",
492
499
  children: [/* @__PURE__ */ C(u, { className: "h-3.5 w-3.5" }), "Accept"]
493
500
  }), /* @__PURE__ */ C("button", {
494
501
  type: "button",
495
- onClick: () => Y(e.id),
502
+ onClick: () => Z(e.id),
496
503
  className: "inline-flex items-center gap-1.5 rounded-md bg-status-error-bg-subtle px-3 py-1.5 text-xs font-medium text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
497
504
  children: "Reject"
498
505
  })]
@@ -500,14 +507,14 @@ var A = () => {
500
507
  ]
501
508
  }, e.id))
502
509
  }) }),
503
- N === "availability" && /* @__PURE__ */ w("div", { children: [
510
+ F === "availability" && /* @__PURE__ */ w("div", { children: [
504
511
  /* @__PURE__ */ C("p", {
505
512
  className: "text-xs text-text-secondary mb-5",
506
513
  children: "Set your preferred working hours for each day of the week"
507
514
  }),
508
515
  /* @__PURE__ */ C("div", {
509
516
  className: "space-y-3",
510
- children: V.map((e) => /* @__PURE__ */ w("div", {
517
+ children: U.map((e) => /* @__PURE__ */ w("div", {
511
518
  className: t("flex flex-col sm:flex-row sm:items-center gap-3 p-3 rounded-lg border", e.isAvailable ? "border-border-subtle bg-bg-surface" : "border-border-subtle/50 bg-bg-sunken/30"),
512
519
  children: [/* @__PURE__ */ C("div", {
513
520
  className: "w-32 shrink-0",
@@ -516,7 +523,7 @@ var A = () => {
516
523
  children: [/* @__PURE__ */ C("input", {
517
524
  type: "checkbox",
518
525
  checked: e.isAvailable,
519
- onChange: (t) => X(e.dayOfWeek, "isAvailable", t.target.checked),
526
+ onChange: (t) => Q(e.dayOfWeek, "isAvailable", t.target.checked),
520
527
  className: "h-4 w-4 rounded border-border-subtle text-text-primary focus:ring-border-focus/40"
521
528
  }), /* @__PURE__ */ C("span", {
522
529
  className: "text-sm font-medium text-text-primary",
@@ -533,7 +540,7 @@ var A = () => {
533
540
  }), /* @__PURE__ */ C("input", {
534
541
  type: "time",
535
542
  value: e.preferredStartTime,
536
- onChange: (t) => X(e.dayOfWeek, "preferredStartTime", t.target.value),
543
+ onChange: (t) => Q(e.dayOfWeek, "preferredStartTime", t.target.value),
537
544
  className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-1.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-border-focus/40"
538
545
  })]
539
546
  }), /* @__PURE__ */ w("div", {
@@ -544,7 +551,7 @@ var A = () => {
544
551
  }), /* @__PURE__ */ C("input", {
545
552
  type: "time",
546
553
  value: e.preferredEndTime,
547
- onChange: (t) => X(e.dayOfWeek, "preferredEndTime", t.target.value),
554
+ onChange: (t) => Q(e.dayOfWeek, "preferredEndTime", t.target.value),
548
555
  className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-1.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-border-focus/40"
549
556
  })]
550
557
  })]
@@ -569,10 +576,10 @@ var A = () => {
569
576
  ]
570
577
  })]
571
578
  })]
572
- })
579
+ })]
573
580
  });
574
581
  };
575
582
  //#endregion
576
- export { A as WorkerSchedulePage };
583
+ export { M as WorkerSchedulePage };
577
584
 
578
585
  //# sourceMappingURL=WorkerSchedulePage.js.map