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