@burdenoff/microfe-subscriberbot 2026.624.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 (104) hide show
  1. package/dist/subscriberbot/components/EmptyState.js +17 -10
  2. package/dist/subscriberbot/components/EmptyState.js.map +1 -1
  3. package/dist/subscriberbot/components/InvestmentCard.js +23 -22
  4. package/dist/subscriberbot/components/InvestmentCard.js.map +1 -1
  5. package/dist/subscriberbot/components/MetricsCard.js +15 -12
  6. package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
  7. package/dist/subscriberbot/components/PageLayout.js +27 -15
  8. package/dist/subscriberbot/components/PageLayout.js.map +1 -1
  9. package/dist/subscriberbot/components/RatingDisplay.js +3 -3
  10. package/dist/subscriberbot/components/RatingDisplay.js.map +1 -1
  11. package/dist/subscriberbot/components/StatusBadge.js +25 -13
  12. package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
  13. package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
  14. package/dist/subscriberbot/pages/HomePage.js +72 -63
  15. package/dist/subscriberbot/pages/HomePage.js.map +1 -1
  16. package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +106 -100
  17. package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +1 -1
  18. package/dist/subscriberbot/pages/admin/AdminDashboard.js +125 -85
  19. package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +1 -1
  20. package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +51 -45
  21. package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +1 -1
  22. package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +246 -241
  23. package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +1 -1
  24. package/dist/subscriberbot/pages/admin/AdminProfilePage.js +131 -129
  25. package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +1 -1
  26. package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +247 -242
  27. package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +1 -1
  28. package/dist/subscriberbot/pages/admin/CartManagementPage.js +307 -302
  29. package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +1 -1
  30. package/dist/subscriberbot/pages/admin/UserManagementPage.js +308 -303
  31. package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +1 -1
  32. package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +89 -84
  33. package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  34. package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +269 -264
  35. package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  36. package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +269 -227
  37. package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  38. package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +191 -186
  39. package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  40. package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +168 -166
  41. package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  42. package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +344 -347
  43. package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  44. package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +270 -272
  45. package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +1 -1
  46. package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +294 -289
  47. package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +1 -1
  48. package/dist/subscriberbot/pages/common/HelpSupportPage.js +156 -158
  49. package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +1 -1
  50. package/dist/subscriberbot/pages/common/NotificationCenterPage.js +94 -87
  51. package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +1 -1
  52. package/dist/subscriberbot/pages/common/SettingsPage.js +749 -740
  53. package/dist/subscriberbot/pages/common/SettingsPage.js.map +1 -1
  54. package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +357 -324
  55. package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +1 -1
  56. package/dist/subscriberbot/pages/customer/CartDetailPage.js +281 -247
  57. package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +1 -1
  58. package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +106 -98
  59. package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +1 -1
  60. package/dist/subscriberbot/pages/customer/CheckoutPage.js +235 -238
  61. package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +1 -1
  62. package/dist/subscriberbot/pages/customer/CustomerDashboard.js +426 -390
  63. package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +1 -1
  64. package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +488 -479
  65. package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +1 -1
  66. package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +522 -512
  67. package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +1 -1
  68. package/dist/subscriberbot/pages/customer/FavoritesPage.js +73 -66
  69. package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +1 -1
  70. package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +75 -67
  71. package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +1 -1
  72. package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +82 -76
  73. package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +1 -1
  74. package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +100 -93
  75. package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +1 -1
  76. package/dist/subscriberbot/pages/customer/ReviewsPage.js +97 -90
  77. package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +1 -1
  78. package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +86 -79
  79. package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +1 -1
  80. package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +330 -293
  81. package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +1 -1
  82. package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +269 -261
  83. package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  84. package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +97 -91
  85. package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  86. package/dist/subscriberbot/pages/investor/InvestorDashboard.js +354 -322
  87. package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +1 -1
  88. package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +118 -111
  89. package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  90. package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +75 -69
  91. package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +1 -1
  92. package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +435 -430
  93. package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +1 -1
  94. package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +328 -289
  95. package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +1 -1
  96. package/dist/subscriberbot/pages/worker/WorkerDashboard.js +135 -103
  97. package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +1 -1
  98. package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +120 -114
  99. package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +1 -1
  100. package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +125 -120
  101. package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +1 -1
  102. package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +354 -344
  103. package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +1 -1
  104. package/package.json +3 -3
@@ -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/subscriberbot/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,29 +35,29 @@ function D(e) {
34
35
  })
35
36
  };
36
37
  }
37
- function O(e) {
38
+ function A(e) {
38
39
  switch (e) {
39
- case "scheduled": return "bg-blue-500/20 text-blue-600 dark:text-blue-400";
40
- case "ongoing": return "bg-green-500/20 text-green-600 dark:text-green-400";
40
+ case "scheduled": return "bg-status-info-bg/20 text-status-info-text";
41
+ case "ongoing": return "bg-status-success-bg/20 text-status-success-text";
41
42
  case "completed": return "bg-secondary text-secondary-foreground";
42
- case "cancelled": return "bg-red-500/20 text-red-600 dark:text-red-400";
43
+ case "cancelled": return "bg-status-error-bg/20 text-status-error-text";
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
- case "pending": return "bg-yellow-500/20 text-yellow-600 dark:text-yellow-400";
49
- case "approved": return "bg-green-500/20 text-green-600 dark:text-green-400";
50
- case "rejected": return "bg-red-500/20 text-red-600 dark:text-red-400";
49
+ case "pending": return "bg-status-warning-bg/20 text-status-warning-text";
50
+ case "approved": return "bg-status-success-bg/20 text-status-success-text";
51
+ case "rejected": return "bg-status-error-bg/20 text-status-error-text";
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", {
@@ -237,342 +238,351 @@ var A = () => {
237
238
  description: "Manage your work schedule",
238
239
  children: /* @__PURE__ */ w("div", {
239
240
  className: "space-y-6",
240
- children: [/* @__PURE__ */ w("div", {
241
- className: "grid grid-cols-2 md:grid-cols-4 gap-3",
242
- children: [
243
- /* @__PURE__ */ w("div", {
244
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
245
- children: [/* @__PURE__ */ C("p", {
246
- className: "text-xs text-text-secondary",
247
- children: "Hours This Week"
248
- }), /* @__PURE__ */ w("p", {
249
- className: "text-2xl font-bold text-text-primary",
250
- children: [U.hoursThisWeek, "h"]
251
- })]
252
- }),
253
- /* @__PURE__ */ w("div", {
254
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
255
- children: [/* @__PURE__ */ C("p", {
256
- className: "text-xs text-text-secondary",
257
- children: "Shifts This Week"
258
- }), /* @__PURE__ */ C("p", {
259
- className: "text-2xl font-bold text-text-primary",
260
- children: U.shiftsThisWeek
261
- })]
262
- }),
263
- /* @__PURE__ */ w("div", {
264
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
265
- children: [/* @__PURE__ */ C("p", {
266
- className: "text-xs text-text-secondary",
267
- children: "Week Earnings"
268
- }), /* @__PURE__ */ C("p", {
269
- className: "text-2xl font-bold text-text-primary",
270
- children: i(U.earningsThisWeek, { minimumFractionDigits: 0 })
271
- })]
272
- }),
273
- /* @__PURE__ */ w("div", {
274
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
275
- children: [/* @__PURE__ */ C("p", {
276
- className: "text-xs text-text-secondary",
277
- children: "Next Shift"
278
- }), /* @__PURE__ */ C("p", {
279
- className: "text-sm font-bold text-text-primary",
280
- children: U.nextShift ? `${T(U.nextShift.date)} ${E(U.nextShift.startTime)}` : "None scheduled"
281
- })]
282
- })
283
- ]
284
- }), /* @__PURE__ */ w("div", {
285
- className: "rounded-lg border border-border-subtle bg-bg-surface shadow-sm overflow-hidden",
286
- children: [/* @__PURE__ */ w("div", {
287
- className: "flex border-b border-border-subtle",
241
+ children: [
242
+ /* @__PURE__ */ C(E, {
243
+ icon: /* @__PURE__ */ C(l, { className: "h-4 w-4" }),
244
+ children: "Plan your work week. See your upcoming shifts, the hours and earnings you're on track for, and when your next shift starts. Switch between your schedule and time-off requests to stay organised — and make sure you're never caught off guard by a shift you forgot."
245
+ }),
246
+ /* @__PURE__ */ w(T, {
247
+ className: "grid grid-cols-2 md:grid-cols-4 gap-3",
288
248
  children: [
289
- /* @__PURE__ */ w("button", {
290
- 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-blue-500 text-blue-600 dark:text-blue-400 bg-blue-500/5" : "text-text-secondary hover:text-text-primary"),
293
- children: [/* @__PURE__ */ C(l, { className: "h-4 w-4" }), "My Schedule"]
249
+ /* @__PURE__ */ w("div", {
250
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
251
+ children: [/* @__PURE__ */ C("p", {
252
+ className: "text-xs text-text-secondary",
253
+ children: "Hours This Week"
254
+ }), /* @__PURE__ */ w("p", {
255
+ className: "text-2xl font-bold text-text-primary",
256
+ children: [G.hoursThisWeek, "h"]
257
+ })]
294
258
  }),
295
- /* @__PURE__ */ w("button", {
296
- 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-blue-500 text-blue-600 dark:text-blue-400 bg-blue-500/5" : "text-text-secondary hover:text-text-primary"),
299
- children: [
300
- /* @__PURE__ */ C(y, { className: "h-4 w-4" }),
301
- "Shift Requests",
302
- W > 0 && /* @__PURE__ */ C("span", {
303
- className: "ml-1 inline-flex items-center justify-center rounded-full bg-red-500 px-1.5 py-0.5 text-[10px] font-medium text-white",
304
- children: W
305
- })
306
- ]
259
+ /* @__PURE__ */ w("div", {
260
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
261
+ children: [/* @__PURE__ */ C("p", {
262
+ className: "text-xs text-text-secondary",
263
+ children: "Shifts This Week"
264
+ }), /* @__PURE__ */ C("p", {
265
+ className: "text-2xl font-bold text-text-primary",
266
+ children: G.shiftsThisWeek
267
+ })]
268
+ }),
269
+ /* @__PURE__ */ w("div", {
270
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
271
+ children: [/* @__PURE__ */ C("p", {
272
+ className: "text-xs text-text-secondary",
273
+ children: "Week Earnings"
274
+ }), /* @__PURE__ */ C("p", {
275
+ className: "text-2xl font-bold text-text-primary",
276
+ children: i(G.earningsThisWeek, { minimumFractionDigits: 0 })
277
+ })]
307
278
  }),
308
- /* @__PURE__ */ w("button", {
309
- 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-blue-500 text-blue-600 dark:text-blue-400 bg-blue-500/5" : "text-text-secondary hover:text-text-primary"),
312
- children: [/* @__PURE__ */ C(S, { className: "h-4 w-4" }), "Availability"]
279
+ /* @__PURE__ */ w("div", {
280
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
281
+ children: [/* @__PURE__ */ C("p", {
282
+ className: "text-xs text-text-secondary",
283
+ children: "Next Shift"
284
+ }), /* @__PURE__ */ C("p", {
285
+ className: "text-sm font-bold text-text-primary",
286
+ children: G.nextShift ? `${D(G.nextShift.date)} ${O(G.nextShift.startTime)}` : "None scheduled"
287
+ })]
313
288
  })
314
289
  ]
315
- }), /* @__PURE__ */ w("div", {
316
- className: "p-5",
317
- children: [
318
- N === "schedule" && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
319
- className: "flex items-center justify-between mb-5",
320
- children: [
321
- /* @__PURE__ */ w("button", {
322
- type: "button",
323
- onClick: () => I((e) => e - 1),
324
- 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
- children: [/* @__PURE__ */ C(d, { className: "h-3.5 w-3.5" }), "Previous Week"]
326
- }),
327
- /* @__PURE__ */ w("h3", {
328
- className: "text-sm font-medium text-text-primary",
329
- children: [
330
- G.start,
331
- " - ",
332
- G.end
333
- ]
334
- }),
335
- /* @__PURE__ */ w("button", {
336
- type: "button",
337
- onClick: () => I((e) => e + 1),
338
- 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
- children: ["Next Week", /* @__PURE__ */ C(f, { className: "h-3.5 w-3.5" })]
340
- })
341
- ]
342
- }), L.length === 0 ? /* @__PURE__ */ C(r, {
343
- icon: /* @__PURE__ */ C(c, { className: "h-12 w-12" }),
344
- title: "No shifts scheduled",
345
- description: "No shifts scheduled for this week"
346
- }) : /* @__PURE__ */ C("div", {
347
- className: "space-y-3",
348
- children: L.map((e) => /* @__PURE__ */ w("div", {
349
- className: t("rounded-lg border p-4 transition-colors", e.status === "ongoing" ? "border-green-500/30 bg-green-500/5" : "border-border-subtle hover:bg-bg-sunken/30"),
290
+ }),
291
+ /* @__PURE__ */ w("div", {
292
+ className: "rounded-lg border border-border-seam bg-bg-surface shadow-sm overflow-hidden",
293
+ children: [/* @__PURE__ */ w("div", {
294
+ className: "flex border-b border-border-seam",
295
+ children: [
296
+ /* @__PURE__ */ w("button", {
297
+ type: "button",
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-status-info-border text-status-info-text bg-status-info-bg/5" : "text-text-secondary hover:text-text-primary"),
300
+ children: [/* @__PURE__ */ C(l, { className: "h-4 w-4" }), "My Schedule"]
301
+ }),
302
+ /* @__PURE__ */ w("button", {
303
+ type: "button",
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-status-info-border text-status-info-text bg-status-info-bg/5" : "text-text-secondary hover:text-text-primary"),
350
306
  children: [
351
- /* @__PURE__ */ w("div", {
352
- className: "flex items-center justify-between mb-3",
353
- children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
354
- className: "flex items-center gap-2 flex-wrap",
355
- children: [/* @__PURE__ */ C("h4", {
356
- className: "text-sm font-semibold text-text-primary",
357
- children: T(e.date)
358
- }), /* @__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)),
360
- children: e.status === "ongoing" ? "Ongoing" : e.status
361
- })]
362
- }), /* @__PURE__ */ w("p", {
363
- className: "text-xs text-text-secondary mt-1",
364
- children: [
365
- E(e.startTime),
366
- " - ",
367
- E(e.endTime)
368
- ]
369
- })] }), /* @__PURE__ */ w("div", {
370
- className: "text-right",
371
- children: [/* @__PURE__ */ C("p", {
372
- className: "text-lg font-bold text-text-primary",
373
- children: i(e.earnings, { minimumFractionDigits: 0 })
374
- }), e.rating != null && /* @__PURE__ */ w("p", {
375
- className: "text-xs text-text-secondary flex items-center gap-1 justify-end",
376
- children: [/* @__PURE__ */ C(x, { className: "h-3 w-3 fill-yellow-400 text-yellow-400" }), e.rating]
377
- })]
378
- })]
379
- }),
380
- /* @__PURE__ */ w("div", {
381
- className: "grid grid-cols-1 md:grid-cols-3 gap-3 text-sm",
382
- children: [
383
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
384
- className: "text-xs text-text-secondary",
385
- children: "Cart"
386
- }), /* @__PURE__ */ w("p", {
387
- className: "text-xs font-medium text-text-primary flex items-center gap-1",
388
- children: [/* @__PURE__ */ C(b, { className: "h-3 w-3 text-text-secondary" }), e.cartName]
389
- })] }),
390
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
391
- className: "text-xs text-text-secondary",
392
- children: "Location"
393
- }), /* @__PURE__ */ w("p", {
394
- className: "text-xs font-medium text-text-primary flex items-center gap-1",
395
- children: [/* @__PURE__ */ C(g, { className: "h-3 w-3 text-text-secondary" }), e.location]
396
- })] }),
397
- e.tasksCompleted != null && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
398
- className: "text-xs text-text-secondary",
399
- children: "Tasks Completed"
400
- }), /* @__PURE__ */ w("p", {
401
- className: "text-xs font-medium text-text-primary flex items-center gap-1",
402
- children: [/* @__PURE__ */ C(u, { className: "h-3 w-3 text-text-secondary" }), e.tasksCompleted]
403
- })] })
404
- ]
405
- }),
406
- e.status === "scheduled" && /* @__PURE__ */ C("div", {
407
- className: "mt-3 pt-3 border-t border-border-subtle",
408
- children: /* @__PURE__ */ w("button", {
409
- type: "button",
410
- onClick: () => K(e.id),
411
- className: "inline-flex items-center gap-1.5 rounded-md bg-blue-500/10 px-3 py-1.5 text-xs font-medium text-blue-600 dark:text-blue-400 hover:bg-blue-500/20 transition-colors",
412
- children: [/* @__PURE__ */ C(m, { className: "h-3.5 w-3.5" }), "Check In"]
413
- })
414
- }),
415
- e.status === "ongoing" && /* @__PURE__ */ w("div", {
416
- className: "mt-3 pt-3 border-t border-green-500/20 flex items-center justify-between",
417
- children: [/* @__PURE__ */ w("span", {
418
- className: "text-xs font-medium text-green-600 dark:text-green-400 flex items-center gap-1",
419
- children: [/* @__PURE__ */ C(_, { className: "h-3.5 w-3.5" }), "Shift in progress"]
420
- }), /* @__PURE__ */ w("button", {
421
- type: "button",
422
- onClick: () => q(e.id),
423
- 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
- children: [/* @__PURE__ */ C(h, { className: "h-3.5 w-3.5" }), "Check Out"]
425
- })]
307
+ /* @__PURE__ */ C(y, { className: "h-4 w-4" }),
308
+ "Shift Requests",
309
+ K > 0 && /* @__PURE__ */ C("span", {
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-text-inverse",
311
+ children: K
426
312
  })
427
313
  ]
428
- }, e.id))
429
- })] }),
430
- N === "requests" && /* @__PURE__ */ C("div", { children: z.length === 0 ? /* @__PURE__ */ C(r, {
431
- icon: /* @__PURE__ */ C(y, { className: "h-12 w-12" }),
432
- title: "No shift requests",
433
- description: "No shift requests available"
434
- }) : /* @__PURE__ */ C("div", {
435
- className: "space-y-3",
436
- children: z.map((e) => /* @__PURE__ */ w("div", {
437
- className: "rounded-lg border border-border-subtle p-4",
314
+ }),
315
+ /* @__PURE__ */ w("button", {
316
+ type: "button",
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-status-info-border text-status-info-text bg-status-info-bg/5" : "text-text-secondary hover:text-text-primary"),
319
+ children: [/* @__PURE__ */ C(S, { className: "h-4 w-4" }), "Availability"]
320
+ })
321
+ ]
322
+ }), /* @__PURE__ */ w("div", {
323
+ className: "p-5",
324
+ children: [
325
+ F === "schedule" && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
326
+ className: "flex items-center justify-between mb-5",
438
327
  children: [
439
- /* @__PURE__ */ w("div", {
440
- className: "flex items-center justify-between mb-3",
441
- children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("h4", {
442
- className: "text-sm font-semibold text-text-primary",
443
- children: T(e.date)
444
- }), /* @__PURE__ */ w("p", {
445
- className: "text-xs text-text-secondary mt-0.5",
446
- children: [
447
- E(e.startTime),
448
- " - ",
449
- E(e.endTime)
450
- ]
451
- })] }), /* @__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)),
453
- children: e.status
454
- })]
328
+ /* @__PURE__ */ w("button", {
329
+ type: "button",
330
+ onClick: () => R((e) => e - 1),
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",
332
+ children: [/* @__PURE__ */ C(d, { className: "h-3.5 w-3.5" }), "Previous Week"]
455
333
  }),
456
- /* @__PURE__ */ w("div", {
457
- className: "grid grid-cols-1 md:grid-cols-2 gap-3 text-sm mb-3",
458
- children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
459
- className: "text-xs text-text-secondary",
460
- children: "Cart"
461
- }), /* @__PURE__ */ C("p", {
462
- className: "text-xs font-medium text-text-primary",
463
- children: e.cartName
464
- })] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
465
- className: "text-xs text-text-secondary",
466
- children: "Location"
467
- }), /* @__PURE__ */ C("p", {
468
- className: "text-xs font-medium text-text-primary",
469
- children: e.location
470
- })] })]
471
- }),
472
- /* @__PURE__ */ w("p", {
473
- className: "text-[10px] text-text-secondary mb-3",
334
+ /* @__PURE__ */ w("h3", {
335
+ className: "text-sm font-medium text-text-primary",
474
336
  children: [
475
- "Requested",
476
- " ",
477
- new Date(e.requestedOn).toLocaleString("en-IN", {
478
- day: "numeric",
479
- month: "short",
480
- hour: "2-digit",
481
- minute: "2-digit",
482
- hour12: !0
483
- })
337
+ q.start,
338
+ " - ",
339
+ q.end
484
340
  ]
485
341
  }),
486
- e.status === "pending" && /* @__PURE__ */ w("div", {
487
- className: "flex gap-2",
488
- children: [/* @__PURE__ */ w("button", {
489
- type: "button",
490
- onClick: () => J(e.id),
491
- className: "inline-flex items-center gap-1.5 rounded-md bg-green-500/10 px-3 py-1.5 text-xs font-medium text-green-600 dark:text-green-400 hover:bg-green-500/20 transition-colors",
492
- children: [/* @__PURE__ */ C(u, { className: "h-3.5 w-3.5" }), "Accept"]
493
- }), /* @__PURE__ */ C("button", {
494
- type: "button",
495
- onClick: () => Y(e.id),
496
- className: "inline-flex items-center gap-1.5 rounded-md bg-red-500/10 px-3 py-1.5 text-xs font-medium text-red-600 dark:text-red-400 hover:bg-red-500/20 transition-colors",
497
- children: "Reject"
498
- })]
342
+ /* @__PURE__ */ w("button", {
343
+ type: "button",
344
+ onClick: () => R((e) => e + 1),
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",
346
+ children: ["Next Week", /* @__PURE__ */ C(f, { className: "h-3.5 w-3.5" })]
499
347
  })
500
348
  ]
501
- }, e.id))
502
- }) }),
503
- N === "availability" && /* @__PURE__ */ w("div", { children: [
504
- /* @__PURE__ */ C("p", {
505
- className: "text-xs text-text-secondary mb-5",
506
- children: "Set your preferred working hours for each day of the week"
507
- }),
508
- /* @__PURE__ */ C("div", {
349
+ }), z.length === 0 ? /* @__PURE__ */ C(r, {
350
+ illustration: "empty-data",
351
+ icon: /* @__PURE__ */ C(c, { className: "h-12 w-12" }),
352
+ title: "No shifts scheduled",
353
+ description: "No shifts scheduled for this week"
354
+ }) : /* @__PURE__ */ C("div", {
509
355
  className: "space-y-3",
510
- children: V.map((e) => /* @__PURE__ */ w("div", {
511
- 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
- children: [/* @__PURE__ */ C("div", {
513
- className: "w-32 shrink-0",
514
- children: /* @__PURE__ */ w("label", {
515
- className: "flex items-center gap-2 cursor-pointer",
516
- children: [/* @__PURE__ */ C("input", {
517
- type: "checkbox",
518
- checked: e.isAvailable,
519
- onChange: (t) => X(e.dayOfWeek, "isAvailable", t.target.checked),
520
- className: "h-4 w-4 rounded border-border-subtle text-blue-600 focus:ring-blue-500/40"
521
- }), /* @__PURE__ */ C("span", {
522
- className: "text-sm font-medium text-text-primary",
523
- children: e.dayOfWeek
356
+ children: z.map((e) => /* @__PURE__ */ w("div", {
357
+ className: t("rounded-lg border p-4 transition-colors", e.status === "ongoing" ? "border-status-success-border/30 bg-status-success-bg/5" : "border-border-seam hover:bg-bg-sunken/30"),
358
+ children: [
359
+ /* @__PURE__ */ w("div", {
360
+ className: "flex items-center justify-between mb-3",
361
+ children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
362
+ className: "flex items-center gap-2 flex-wrap",
363
+ children: [/* @__PURE__ */ C("h4", {
364
+ className: "text-sm font-semibold text-text-primary",
365
+ children: D(e.date)
366
+ }), /* @__PURE__ */ C("span", {
367
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", A(e.status)),
368
+ children: e.status === "ongoing" ? "Ongoing" : e.status
369
+ })]
370
+ }), /* @__PURE__ */ w("p", {
371
+ className: "text-xs text-text-secondary mt-1",
372
+ children: [
373
+ O(e.startTime),
374
+ " - ",
375
+ O(e.endTime)
376
+ ]
377
+ })] }), /* @__PURE__ */ w("div", {
378
+ className: "text-right",
379
+ children: [/* @__PURE__ */ C("p", {
380
+ className: "text-lg font-bold text-text-primary",
381
+ children: i(e.earnings, { minimumFractionDigits: 0 })
382
+ }), e.rating != null && /* @__PURE__ */ w("p", {
383
+ className: "text-xs text-text-secondary flex items-center gap-1 justify-end",
384
+ children: [/* @__PURE__ */ C(x, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.rating]
385
+ })]
386
+ })]
387
+ }),
388
+ /* @__PURE__ */ w("div", {
389
+ className: "grid grid-cols-1 md:grid-cols-3 gap-3 text-sm",
390
+ children: [
391
+ /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
392
+ className: "text-xs text-text-secondary",
393
+ children: "Cart"
394
+ }), /* @__PURE__ */ w("p", {
395
+ className: "text-xs font-medium text-text-primary flex items-center gap-1",
396
+ children: [/* @__PURE__ */ C(b, { className: "h-3 w-3 text-text-secondary" }), e.cartName]
397
+ })] }),
398
+ /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
399
+ className: "text-xs text-text-secondary",
400
+ children: "Location"
401
+ }), /* @__PURE__ */ w("p", {
402
+ className: "text-xs font-medium text-text-primary flex items-center gap-1",
403
+ children: [/* @__PURE__ */ C(g, { className: "h-3 w-3 text-text-secondary" }), e.location]
404
+ })] }),
405
+ e.tasksCompleted != null && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
406
+ className: "text-xs text-text-secondary",
407
+ children: "Tasks Completed"
408
+ }), /* @__PURE__ */ w("p", {
409
+ className: "text-xs font-medium text-text-primary flex items-center gap-1",
410
+ children: [/* @__PURE__ */ C(u, { className: "h-3 w-3 text-text-secondary" }), e.tasksCompleted]
411
+ })] })
412
+ ]
413
+ }),
414
+ e.status === "scheduled" && /* @__PURE__ */ C("div", {
415
+ className: "mt-3 pt-3 border-t border-border-seam",
416
+ children: /* @__PURE__ */ w("button", {
417
+ type: "button",
418
+ onClick: () => J(e.id),
419
+ className: "inline-flex items-center gap-1.5 rounded-md bg-status-info-bg/10 px-3 py-1.5 text-xs font-medium text-status-info-text hover:bg-status-info-bg/20 transition-colors",
420
+ children: [/* @__PURE__ */ C(m, { className: "h-3.5 w-3.5" }), "Check In"]
421
+ })
422
+ }),
423
+ e.status === "ongoing" && /* @__PURE__ */ w("div", {
424
+ className: "mt-3 pt-3 border-t border-status-success-border/20 flex items-center justify-between",
425
+ children: [/* @__PURE__ */ w("span", {
426
+ className: "text-xs font-medium text-status-success-text flex items-center gap-1",
427
+ children: [/* @__PURE__ */ C(_, { className: "h-3.5 w-3.5" }), "Shift in progress"]
428
+ }), /* @__PURE__ */ w("button", {
429
+ type: "button",
430
+ onClick: () => Y(e.id),
431
+ 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",
432
+ children: [/* @__PURE__ */ C(h, { className: "h-3.5 w-3.5" }), "Check Out"]
524
433
  })]
525
434
  })
526
- }), e.isAvailable ? /* @__PURE__ */ w("div", {
527
- className: "flex flex-col sm:flex-row gap-3 flex-1",
528
- children: [/* @__PURE__ */ w("div", {
529
- className: "flex items-center gap-2",
530
- children: [/* @__PURE__ */ C("span", {
531
- className: "text-xs text-text-secondary w-10",
532
- children: "From"
533
- }), /* @__PURE__ */ C("input", {
534
- type: "time",
535
- value: e.preferredStartTime,
536
- onChange: (t) => X(e.dayOfWeek, "preferredStartTime", t.target.value),
537
- 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-blue-500/40"
435
+ ]
436
+ }, e.id))
437
+ })] }),
438
+ F === "requests" && /* @__PURE__ */ C("div", { children: V.length === 0 ? /* @__PURE__ */ C(r, {
439
+ illustration: "empty-data",
440
+ icon: /* @__PURE__ */ C(y, { className: "h-12 w-12" }),
441
+ title: "No shift requests",
442
+ description: "No shift requests available"
443
+ }) : /* @__PURE__ */ C("div", {
444
+ className: "space-y-3",
445
+ children: V.map((e) => /* @__PURE__ */ w("div", {
446
+ className: "rounded-lg border border-border-seam p-4",
447
+ children: [
448
+ /* @__PURE__ */ w("div", {
449
+ className: "flex items-center justify-between mb-3",
450
+ children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("h4", {
451
+ className: "text-sm font-semibold text-text-primary",
452
+ children: D(e.date)
453
+ }), /* @__PURE__ */ w("p", {
454
+ className: "text-xs text-text-secondary mt-0.5",
455
+ children: [
456
+ O(e.startTime),
457
+ " - ",
458
+ O(e.endTime)
459
+ ]
460
+ })] }), /* @__PURE__ */ C("span", {
461
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", j(e.status)),
462
+ children: e.status
538
463
  })]
539
- }), /* @__PURE__ */ w("div", {
540
- className: "flex items-center gap-2",
541
- children: [/* @__PURE__ */ C("span", {
542
- className: "text-xs text-text-secondary w-10",
543
- children: "To"
544
- }), /* @__PURE__ */ C("input", {
545
- type: "time",
546
- value: e.preferredEndTime,
547
- onChange: (t) => X(e.dayOfWeek, "preferredEndTime", t.target.value),
548
- 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-blue-500/40"
464
+ }),
465
+ /* @__PURE__ */ w("div", {
466
+ className: "grid grid-cols-1 md:grid-cols-2 gap-3 text-sm mb-3",
467
+ children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
468
+ className: "text-xs text-text-secondary",
469
+ children: "Cart"
470
+ }), /* @__PURE__ */ C("p", {
471
+ className: "text-xs font-medium text-text-primary",
472
+ children: e.cartName
473
+ })] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
474
+ className: "text-xs text-text-secondary",
475
+ children: "Location"
476
+ }), /* @__PURE__ */ C("p", {
477
+ className: "text-xs font-medium text-text-primary",
478
+ children: e.location
479
+ })] })]
480
+ }),
481
+ /* @__PURE__ */ w("p", {
482
+ className: "text-[10px] text-text-secondary mb-3",
483
+ children: [
484
+ "Requested",
485
+ " ",
486
+ new Date(e.requestedOn).toLocaleString("en-IN", {
487
+ day: "numeric",
488
+ month: "short",
489
+ hour: "2-digit",
490
+ minute: "2-digit",
491
+ hour12: !0
492
+ })
493
+ ]
494
+ }),
495
+ e.status === "pending" && /* @__PURE__ */ w("div", {
496
+ className: "flex gap-2",
497
+ children: [/* @__PURE__ */ w("button", {
498
+ type: "button",
499
+ onClick: () => X(e.id),
500
+ className: "inline-flex items-center gap-1.5 rounded-md bg-status-success-bg/10 px-3 py-1.5 text-xs font-medium text-status-success-text hover:bg-status-success-bg/20 transition-colors",
501
+ children: [/* @__PURE__ */ C(u, { className: "h-3.5 w-3.5" }), "Accept"]
502
+ }), /* @__PURE__ */ C("button", {
503
+ type: "button",
504
+ onClick: () => Z(e.id),
505
+ className: "inline-flex items-center gap-1.5 rounded-md bg-status-error-bg/10 px-3 py-1.5 text-xs font-medium text-status-error-text hover:bg-status-error-bg/20 transition-colors",
506
+ children: "Reject"
549
507
  })]
508
+ })
509
+ ]
510
+ }, e.id))
511
+ }) }),
512
+ F === "availability" && /* @__PURE__ */ w("div", { children: [
513
+ /* @__PURE__ */ C("p", {
514
+ className: "text-xs text-text-secondary mb-5",
515
+ children: "Set your preferred working hours for each day of the week"
516
+ }),
517
+ /* @__PURE__ */ C("div", {
518
+ className: "space-y-3",
519
+ children: U.map((e) => /* @__PURE__ */ w("div", {
520
+ className: t("flex flex-col sm:flex-row sm:items-center gap-3 p-3 rounded-lg border", e.isAvailable ? "border-border-seam bg-bg-surface" : "border-border-seam/50 bg-bg-sunken/30"),
521
+ children: [/* @__PURE__ */ C("div", {
522
+ className: "w-32 shrink-0",
523
+ children: /* @__PURE__ */ w("label", {
524
+ className: "flex items-center gap-2 cursor-pointer",
525
+ children: [/* @__PURE__ */ C("input", {
526
+ type: "checkbox",
527
+ checked: e.isAvailable,
528
+ onChange: (t) => Q(e.dayOfWeek, "isAvailable", t.target.checked),
529
+ className: "h-4 w-4 rounded border-border-seam text-status-info-text focus:ring-status-info-border/40"
530
+ }), /* @__PURE__ */ C("span", {
531
+ className: "text-sm font-medium text-text-primary",
532
+ children: e.dayOfWeek
533
+ })]
534
+ })
535
+ }), e.isAvailable ? /* @__PURE__ */ w("div", {
536
+ className: "flex flex-col sm:flex-row gap-3 flex-1",
537
+ children: [/* @__PURE__ */ w("div", {
538
+ className: "flex items-center gap-2",
539
+ children: [/* @__PURE__ */ C("span", {
540
+ className: "text-xs text-text-secondary w-10",
541
+ children: "From"
542
+ }), /* @__PURE__ */ C("input", {
543
+ type: "time",
544
+ value: e.preferredStartTime,
545
+ onChange: (t) => Q(e.dayOfWeek, "preferredStartTime", t.target.value),
546
+ className: "rounded-md border border-border-seam bg-bg-surface px-3 py-1.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
547
+ })]
548
+ }), /* @__PURE__ */ w("div", {
549
+ className: "flex items-center gap-2",
550
+ children: [/* @__PURE__ */ C("span", {
551
+ className: "text-xs text-text-secondary w-10",
552
+ children: "To"
553
+ }), /* @__PURE__ */ C("input", {
554
+ type: "time",
555
+ value: e.preferredEndTime,
556
+ onChange: (t) => Q(e.dayOfWeek, "preferredEndTime", t.target.value),
557
+ className: "rounded-md border border-border-seam bg-bg-surface px-3 py-1.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
558
+ })]
559
+ })]
560
+ }) : /* @__PURE__ */ C("span", {
561
+ className: "text-xs text-text-secondary",
562
+ children: "Not available"
550
563
  })]
551
- }) : /* @__PURE__ */ C("span", {
552
- className: "text-xs text-text-secondary",
553
- children: "Not available"
554
- })]
555
- }, e.dayOfWeek))
556
- }),
557
- /* @__PURE__ */ C("div", {
558
- className: "mt-5",
559
- children: /* @__PURE__ */ w("button", {
560
- type: "button",
561
- onClick: () => {
562
- alert("Availability updated successfully");
563
- },
564
- className: "inline-flex items-center gap-2 rounded-md bg-blue-500/10 px-4 py-2 text-sm font-medium text-blue-600 dark:text-blue-400 hover:bg-blue-500/20 transition-colors",
565
- children: [/* @__PURE__ */ C(v, { className: "h-4 w-4" }), "Save Availability"]
564
+ }, e.dayOfWeek))
565
+ }),
566
+ /* @__PURE__ */ C("div", {
567
+ className: "mt-5",
568
+ children: /* @__PURE__ */ w("button", {
569
+ type: "button",
570
+ onClick: () => {
571
+ alert("Availability updated successfully");
572
+ },
573
+ className: "inline-flex items-center gap-2 rounded-md bg-status-info-bg/10 px-4 py-2 text-sm font-medium text-status-info-text hover:bg-status-info-bg/20 transition-colors",
574
+ children: [/* @__PURE__ */ C(v, { className: "h-4 w-4" }), "Save Availability"]
575
+ })
566
576
  })
567
- })
568
- ] })
569
- ]
570
- })]
571
- })]
577
+ ] })
578
+ ]
579
+ })]
580
+ })
581
+ ]
572
582
  })
573
583
  });
574
584
  };
575
585
  //#endregion
576
- export { A as WorkerSchedulePage };
586
+ export { M as WorkerSchedulePage };
577
587
 
578
588
  //# sourceMappingURL=WorkerSchedulePage.js.map