@burdenoff/microfe-coolandlovely 2026.625.2 → 2026.628.1

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