@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.
- package/dist/subscriberbot/components/EmptyState.js +17 -10
- package/dist/subscriberbot/components/EmptyState.js.map +1 -1
- package/dist/subscriberbot/components/InvestmentCard.js +23 -22
- package/dist/subscriberbot/components/InvestmentCard.js.map +1 -1
- package/dist/subscriberbot/components/MetricsCard.js +15 -12
- package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
- package/dist/subscriberbot/components/PageLayout.js +27 -15
- package/dist/subscriberbot/components/PageLayout.js.map +1 -1
- package/dist/subscriberbot/components/RatingDisplay.js +3 -3
- package/dist/subscriberbot/components/RatingDisplay.js.map +1 -1
- package/dist/subscriberbot/components/StatusBadge.js +25 -13
- package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
- package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
- package/dist/subscriberbot/pages/HomePage.js +72 -63
- package/dist/subscriberbot/pages/HomePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +106 -100
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminDashboard.js +125 -85
- package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +51 -45
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +246 -241
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js +131 -129
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +247 -242
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/CartManagementPage.js +307 -302
- package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/UserManagementPage.js +308 -303
- package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +89 -84
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +269 -264
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +269 -227
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +191 -186
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +168 -166
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +344 -347
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +270 -272
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +294 -289
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/HelpSupportPage.js +156 -158
- package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js +94 -87
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/SettingsPage.js +749 -740
- package/dist/subscriberbot/pages/common/SettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +357 -324
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDetailPage.js +281 -247
- package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +106 -98
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CheckoutPage.js +235 -238
- package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js +426 -390
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +488 -479
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +522 -512
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/FavoritesPage.js +73 -66
- package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +75 -67
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +82 -76
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +100 -93
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/ReviewsPage.js +97 -90
- package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +86 -79
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +330 -293
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +269 -261
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +97 -91
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js +354 -322
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +118 -111
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +75 -69
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +435 -430
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +328 -289
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js +135 -103
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +120 -114
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +125 -120
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +354 -344
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -6,8 +6,9 @@ import { mockWorker as i } from "../../mocks/users.js";
|
|
|
6
6
|
import { useState as a } from "react";
|
|
7
7
|
import { Award as o, Bell as s, Briefcase as c, Camera as l, Clock as u, CreditCard as d, Loader2 as f, MapPin as p, Pencil as m, Save as h, Shield as g, User as _, X as v } from "lucide-react";
|
|
8
8
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
9
|
+
import { EmphasisPanel as S, PagePurpose as C } from "@burdenoff/fe-libs/ui";
|
|
9
10
|
//#region src/subscriberbot/pages/worker/WorkerProfilePage.tsx
|
|
10
|
-
var
|
|
11
|
+
var w = [
|
|
11
12
|
{
|
|
12
13
|
id: "personal",
|
|
13
14
|
label: "Personal Info",
|
|
@@ -38,8 +39,8 @@ var S = [
|
|
|
38
39
|
label: "Notifications",
|
|
39
40
|
icon: s
|
|
40
41
|
}
|
|
41
|
-
],
|
|
42
|
-
let { navigateTo: s } = e(), [c, d] = a("personal"), [p,
|
|
42
|
+
], T = () => {
|
|
43
|
+
let { navigateTo: s } = e(), [c, d] = a("personal"), [p, T] = a(!1), [E, D] = a(!1), [O, k] = a({
|
|
43
44
|
firstName: i.firstName || "Suresh",
|
|
44
45
|
lastName: i.lastName || "Kumar",
|
|
45
46
|
email: i.email || "suresh.worker@example.com",
|
|
@@ -66,7 +67,7 @@ var S = [
|
|
|
66
67
|
ifscCode: "HDFC0001234",
|
|
67
68
|
panNumber: "ABCDE****F",
|
|
68
69
|
aadharNumber: "****5678"
|
|
69
|
-
}), [
|
|
70
|
+
}), [A, j] = a([
|
|
70
71
|
{
|
|
71
72
|
id: "orders",
|
|
72
73
|
label: "New Order Assignments",
|
|
@@ -97,80 +98,84 @@ var S = [
|
|
|
97
98
|
description: "Important updates from management",
|
|
98
99
|
enabled: !0
|
|
99
100
|
}
|
|
100
|
-
]),
|
|
101
|
-
|
|
101
|
+
]), M = (e, t) => {
|
|
102
|
+
k((n) => ({
|
|
102
103
|
...n,
|
|
103
104
|
[e]: t
|
|
104
105
|
}));
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
}, N = () => {
|
|
107
|
+
D(!0), setTimeout(() => {
|
|
108
|
+
D(!1), T(!1), alert("Profile updated successfully!");
|
|
108
109
|
}, 1e3);
|
|
109
|
-
},
|
|
110
|
+
}, P = (e) => {
|
|
110
111
|
let t = e.target.files?.[0];
|
|
111
112
|
if (t) {
|
|
112
113
|
let e = new FileReader();
|
|
113
114
|
e.onloadend = () => {
|
|
114
|
-
|
|
115
|
+
k((t) => ({
|
|
115
116
|
...t,
|
|
116
117
|
profileImage: e.result
|
|
117
118
|
}));
|
|
118
119
|
}, e.readAsDataURL(t);
|
|
119
120
|
}
|
|
120
|
-
},
|
|
121
|
-
p &&
|
|
121
|
+
}, F = (e) => {
|
|
122
|
+
p && j((t) => t.map((t) => t.id === e ? {
|
|
122
123
|
...t,
|
|
123
124
|
enabled: !t.enabled
|
|
124
125
|
} : t));
|
|
125
126
|
};
|
|
126
|
-
return /* @__PURE__ */
|
|
127
|
+
return /* @__PURE__ */ x(n, {
|
|
127
128
|
title: "My Profile",
|
|
128
129
|
description: "Manage your profile information",
|
|
129
130
|
actions: /* @__PURE__ */ b("div", {
|
|
130
131
|
className: "flex items-center gap-2",
|
|
131
132
|
children: p ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x("button", {
|
|
132
133
|
type: "button",
|
|
133
|
-
onClick: () =>
|
|
134
|
+
onClick: () => T(!1),
|
|
134
135
|
className: "inline-flex items-center gap-2 rounded-md bg-accent px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
|
|
135
136
|
children: [/* @__PURE__ */ b(v, { className: "h-4 w-4" }), "Cancel"]
|
|
136
137
|
}), /* @__PURE__ */ b("button", {
|
|
137
138
|
type: "button",
|
|
138
|
-
onClick:
|
|
139
|
-
disabled:
|
|
140
|
-
className: "inline-flex items-center gap-2 rounded-md bg-
|
|
141
|
-
children:
|
|
139
|
+
onClick: N,
|
|
140
|
+
disabled: E,
|
|
141
|
+
className: "inline-flex items-center gap-2 rounded-md bg-status-info-bg/10 px-3 py-2 text-sm font-medium text-status-info-text hover:bg-status-info-bg/20 transition-colors disabled:opacity-50",
|
|
142
|
+
children: E ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(f, { className: "h-4 w-4 animate-spin" }), "Saving..."] }) : /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(h, { className: "h-4 w-4" }), "Save Changes"] })
|
|
142
143
|
})] }) : /* @__PURE__ */ x("button", {
|
|
143
144
|
type: "button",
|
|
144
|
-
onClick: () =>
|
|
145
|
+
onClick: () => T(!0),
|
|
145
146
|
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",
|
|
146
147
|
children: [/* @__PURE__ */ b(m, { className: "h-4 w-4" }), "Edit Profile"]
|
|
147
148
|
})
|
|
148
149
|
}),
|
|
149
|
-
children: /* @__PURE__ */
|
|
150
|
+
children: [/* @__PURE__ */ b(C, {
|
|
151
|
+
icon: /* @__PURE__ */ b(_, { className: "h-4 w-4" }),
|
|
152
|
+
className: "mb-6",
|
|
153
|
+
children: "Your worker profile — personal details, designation and the info your cart owner relies on to assign you work. Keep your contact details, availability and skills up to date so you get matched to the right shifts and orders. A complete, accurate profile means fewer mix-ups and more earning opportunities."
|
|
154
|
+
}), /* @__PURE__ */ x("div", {
|
|
150
155
|
className: "grid lg:grid-cols-4 gap-6 max-w-6xl",
|
|
151
156
|
children: [/* @__PURE__ */ x("div", {
|
|
152
157
|
className: "lg:col-span-1 space-y-4",
|
|
153
|
-
children: [/* @__PURE__ */ x(
|
|
154
|
-
className: "
|
|
158
|
+
children: [/* @__PURE__ */ x(S, {
|
|
159
|
+
className: "p-5 text-center",
|
|
155
160
|
children: [
|
|
156
161
|
/* @__PURE__ */ x("div", {
|
|
157
162
|
className: "relative inline-block",
|
|
158
163
|
children: [/* @__PURE__ */ b("div", {
|
|
159
164
|
className: "h-20 w-20 rounded-full bg-bg-sunken overflow-hidden mx-auto",
|
|
160
|
-
children:
|
|
161
|
-
src:
|
|
162
|
-
alt: `${
|
|
165
|
+
children: O.profileImage ? /* @__PURE__ */ b("img", {
|
|
166
|
+
src: O.profileImage,
|
|
167
|
+
alt: `${O.firstName} ${O.lastName}`,
|
|
163
168
|
className: "h-full w-full object-cover"
|
|
164
169
|
}) : /* @__PURE__ */ b("div", {
|
|
165
170
|
className: "flex h-full w-full items-center justify-center text-text-secondary",
|
|
166
171
|
children: /* @__PURE__ */ b(_, { className: "h-10 w-10" })
|
|
167
172
|
})
|
|
168
173
|
}), p && /* @__PURE__ */ x("label", {
|
|
169
|
-
className: "absolute bottom-0 right-0 flex h-7 w-7 items-center justify-center rounded-full bg-
|
|
174
|
+
className: "absolute bottom-0 right-0 flex h-7 w-7 items-center justify-center rounded-full bg-status-info-bg/20 text-status-info-text cursor-pointer hover:bg-status-info-bg/30 transition-colors",
|
|
170
175
|
children: [/* @__PURE__ */ b(l, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ b("input", {
|
|
171
176
|
type: "file",
|
|
172
177
|
accept: "image/*",
|
|
173
|
-
onChange:
|
|
178
|
+
onChange: P,
|
|
174
179
|
className: "hidden"
|
|
175
180
|
})]
|
|
176
181
|
})]
|
|
@@ -178,28 +183,28 @@ var S = [
|
|
|
178
183
|
/* @__PURE__ */ x("h3", {
|
|
179
184
|
className: "mt-3 text-sm font-semibold text-text-primary",
|
|
180
185
|
children: [
|
|
181
|
-
|
|
186
|
+
O.firstName,
|
|
182
187
|
" ",
|
|
183
|
-
|
|
188
|
+
O.lastName
|
|
184
189
|
]
|
|
185
190
|
}),
|
|
186
191
|
/* @__PURE__ */ b("p", {
|
|
187
192
|
className: "text-xs text-text-secondary",
|
|
188
|
-
children:
|
|
193
|
+
children: O.designation
|
|
189
194
|
}),
|
|
190
195
|
/* @__PURE__ */ b("p", {
|
|
191
196
|
className: "text-[10px] text-text-secondary mt-0.5",
|
|
192
|
-
children:
|
|
197
|
+
children: O.employeeId
|
|
193
198
|
})
|
|
194
199
|
]
|
|
195
200
|
}), /* @__PURE__ */ b("div", {
|
|
196
201
|
className: "space-y-1",
|
|
197
|
-
children:
|
|
202
|
+
children: w.map((e) => {
|
|
198
203
|
let n = e.icon;
|
|
199
204
|
return /* @__PURE__ */ x("button", {
|
|
200
205
|
type: "button",
|
|
201
206
|
onClick: () => d(e.id),
|
|
202
|
-
className: t("w-full flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-medium transition-colors", c === e.id ? "bg-
|
|
207
|
+
className: t("w-full flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-medium transition-colors", c === e.id ? "bg-status-info-bg/10 text-status-info-text" : "bg-bg-surface text-text-primary hover:bg-bg-sunken"),
|
|
203
208
|
children: [/* @__PURE__ */ b(n, { className: "h-4 w-4" }), e.label]
|
|
204
209
|
}, e.id);
|
|
205
210
|
})
|
|
@@ -207,7 +212,7 @@ var S = [
|
|
|
207
212
|
}), /* @__PURE__ */ b("div", {
|
|
208
213
|
className: "lg:col-span-3",
|
|
209
214
|
children: /* @__PURE__ */ x("div", {
|
|
210
|
-
className: "rounded-lg border border-border-
|
|
215
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 shadow-sm",
|
|
211
216
|
children: [
|
|
212
217
|
c === "personal" && /* @__PURE__ */ x("div", { children: [
|
|
213
218
|
/* @__PURE__ */ b("h2", {
|
|
@@ -222,50 +227,50 @@ var S = [
|
|
|
222
227
|
children: "First Name"
|
|
223
228
|
}), /* @__PURE__ */ b("input", {
|
|
224
229
|
type: "text",
|
|
225
|
-
value:
|
|
226
|
-
onChange: (e) =>
|
|
230
|
+
value: O.firstName,
|
|
231
|
+
onChange: (e) => M("firstName", e.target.value),
|
|
227
232
|
disabled: !p,
|
|
228
|
-
className: "w-full rounded-md border border-border-
|
|
233
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
229
234
|
})] }),
|
|
230
235
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
231
236
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
232
237
|
children: "Last Name"
|
|
233
238
|
}), /* @__PURE__ */ b("input", {
|
|
234
239
|
type: "text",
|
|
235
|
-
value:
|
|
236
|
-
onChange: (e) =>
|
|
240
|
+
value: O.lastName,
|
|
241
|
+
onChange: (e) => M("lastName", e.target.value),
|
|
237
242
|
disabled: !p,
|
|
238
|
-
className: "w-full rounded-md border border-border-
|
|
243
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
239
244
|
})] }),
|
|
240
245
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
241
246
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
242
247
|
children: "Email Address"
|
|
243
248
|
}), /* @__PURE__ */ b("input", {
|
|
244
249
|
type: "email",
|
|
245
|
-
value:
|
|
246
|
-
onChange: (e) =>
|
|
250
|
+
value: O.email,
|
|
251
|
+
onChange: (e) => M("email", e.target.value),
|
|
247
252
|
disabled: !p,
|
|
248
|
-
className: "w-full rounded-md border border-border-
|
|
253
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
249
254
|
})] }),
|
|
250
255
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
251
256
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
252
257
|
children: "Phone Number"
|
|
253
258
|
}), /* @__PURE__ */ b("input", {
|
|
254
259
|
type: "text",
|
|
255
|
-
value:
|
|
256
|
-
onChange: (e) =>
|
|
260
|
+
value: O.phone,
|
|
261
|
+
onChange: (e) => M("phone", e.target.value),
|
|
257
262
|
disabled: !p,
|
|
258
|
-
className: "w-full rounded-md border border-border-
|
|
263
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
259
264
|
})] }),
|
|
260
265
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
261
266
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
262
267
|
children: "Date of Birth"
|
|
263
268
|
}), /* @__PURE__ */ b("input", {
|
|
264
269
|
type: "date",
|
|
265
|
-
value:
|
|
266
|
-
onChange: (e) =>
|
|
270
|
+
value: O.dateOfBirth,
|
|
271
|
+
onChange: (e) => M("dateOfBirth", e.target.value),
|
|
267
272
|
disabled: !p,
|
|
268
|
-
className: "w-full rounded-md border border-border-
|
|
273
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
269
274
|
})] })
|
|
270
275
|
]
|
|
271
276
|
}),
|
|
@@ -282,30 +287,30 @@ var S = [
|
|
|
282
287
|
children: "Contact Name"
|
|
283
288
|
}), /* @__PURE__ */ b("input", {
|
|
284
289
|
type: "text",
|
|
285
|
-
value:
|
|
286
|
-
onChange: (e) =>
|
|
290
|
+
value: O.emergencyContactName,
|
|
291
|
+
onChange: (e) => M("emergencyContactName", e.target.value),
|
|
287
292
|
disabled: !p,
|
|
288
|
-
className: "w-full rounded-md border border-border-
|
|
293
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
289
294
|
})] }),
|
|
290
295
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
291
296
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
292
297
|
children: "Contact Phone"
|
|
293
298
|
}), /* @__PURE__ */ b("input", {
|
|
294
299
|
type: "text",
|
|
295
|
-
value:
|
|
296
|
-
onChange: (e) =>
|
|
300
|
+
value: O.emergencyContactPhone,
|
|
301
|
+
onChange: (e) => M("emergencyContactPhone", e.target.value),
|
|
297
302
|
disabled: !p,
|
|
298
|
-
className: "w-full rounded-md border border-border-
|
|
303
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
299
304
|
})] }),
|
|
300
305
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
301
306
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
302
307
|
children: "Relationship"
|
|
303
308
|
}), /* @__PURE__ */ b("input", {
|
|
304
309
|
type: "text",
|
|
305
|
-
value:
|
|
306
|
-
onChange: (e) =>
|
|
310
|
+
value: O.emergencyContactRelation,
|
|
311
|
+
onChange: (e) => M("emergencyContactRelation", e.target.value),
|
|
307
312
|
disabled: !p,
|
|
308
|
-
className: "w-full rounded-md border border-border-
|
|
313
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
309
314
|
})] })
|
|
310
315
|
]
|
|
311
316
|
})]
|
|
@@ -324,54 +329,54 @@ var S = [
|
|
|
324
329
|
children: "Employee ID"
|
|
325
330
|
}), /* @__PURE__ */ b("input", {
|
|
326
331
|
type: "text",
|
|
327
|
-
value:
|
|
332
|
+
value: O.employeeId,
|
|
328
333
|
disabled: !0,
|
|
329
|
-
className: "w-full rounded-md border border-border-
|
|
334
|
+
className: "w-full rounded-md border border-border-seam bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
|
|
330
335
|
})] }),
|
|
331
336
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
332
337
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
333
338
|
children: "Designation"
|
|
334
339
|
}), /* @__PURE__ */ b("input", {
|
|
335
340
|
type: "text",
|
|
336
|
-
value:
|
|
341
|
+
value: O.designation,
|
|
337
342
|
disabled: !0,
|
|
338
|
-
className: "w-full rounded-md border border-border-
|
|
343
|
+
className: "w-full rounded-md border border-border-seam bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
|
|
339
344
|
})] }),
|
|
340
345
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
341
346
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
342
347
|
children: "Department"
|
|
343
348
|
}), /* @__PURE__ */ b("input", {
|
|
344
349
|
type: "text",
|
|
345
|
-
value:
|
|
350
|
+
value: O.department,
|
|
346
351
|
disabled: !0,
|
|
347
|
-
className: "w-full rounded-md border border-border-
|
|
352
|
+
className: "w-full rounded-md border border-border-seam bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
|
|
348
353
|
})] }),
|
|
349
354
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
350
355
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
351
356
|
children: "Work Location"
|
|
352
357
|
}), /* @__PURE__ */ b("input", {
|
|
353
358
|
type: "text",
|
|
354
|
-
value:
|
|
359
|
+
value: O.workLocation,
|
|
355
360
|
disabled: !0,
|
|
356
|
-
className: "w-full rounded-md border border-border-
|
|
361
|
+
className: "w-full rounded-md border border-border-seam bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
|
|
357
362
|
})] }),
|
|
358
363
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
359
364
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
360
365
|
children: "Joining Date"
|
|
361
366
|
}), /* @__PURE__ */ b("input", {
|
|
362
367
|
type: "date",
|
|
363
|
-
value:
|
|
368
|
+
value: O.joiningDate,
|
|
364
369
|
disabled: !0,
|
|
365
|
-
className: "w-full rounded-md border border-border-
|
|
370
|
+
className: "w-full rounded-md border border-border-seam bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
|
|
366
371
|
})] }),
|
|
367
372
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
368
373
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
369
374
|
children: "Employment Type"
|
|
370
375
|
}), /* @__PURE__ */ b("input", {
|
|
371
376
|
type: "text",
|
|
372
|
-
value:
|
|
377
|
+
value: O.employmentType,
|
|
373
378
|
disabled: !0,
|
|
374
|
-
className: "w-full rounded-md border border-border-
|
|
379
|
+
className: "w-full rounded-md border border-border-seam bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
|
|
375
380
|
})] })
|
|
376
381
|
]
|
|
377
382
|
}),
|
|
@@ -381,7 +386,7 @@ var S = [
|
|
|
381
386
|
/* @__PURE__ */ x("div", {
|
|
382
387
|
className: "rounded-lg bg-bg-sunken/50 p-4 text-center",
|
|
383
388
|
children: [/* @__PURE__ */ b("p", {
|
|
384
|
-
className: "text-2xl font-bold text-
|
|
389
|
+
className: "text-2xl font-bold text-status-info-text",
|
|
385
390
|
children: r.totalDeliveries
|
|
386
391
|
}), /* @__PURE__ */ b("p", {
|
|
387
392
|
className: "text-xs text-text-secondary",
|
|
@@ -391,7 +396,7 @@ var S = [
|
|
|
391
396
|
/* @__PURE__ */ x("div", {
|
|
392
397
|
className: "rounded-lg bg-bg-sunken/50 p-4 text-center",
|
|
393
398
|
children: [/* @__PURE__ */ b("p", {
|
|
394
|
-
className: "text-2xl font-bold text-
|
|
399
|
+
className: "text-2xl font-bold text-status-success-text",
|
|
395
400
|
children: r.averageRating
|
|
396
401
|
}), /* @__PURE__ */ b("p", {
|
|
397
402
|
className: "text-xs text-text-secondary",
|
|
@@ -401,7 +406,7 @@ var S = [
|
|
|
401
406
|
/* @__PURE__ */ x("div", {
|
|
402
407
|
className: "rounded-lg bg-bg-sunken/50 p-4 text-center",
|
|
403
408
|
children: [/* @__PURE__ */ x("p", {
|
|
404
|
-
className: "text-2xl font-bold text-
|
|
409
|
+
className: "text-2xl font-bold text-status-info-text",
|
|
405
410
|
children: [r.completionRate, "%"]
|
|
406
411
|
}), /* @__PURE__ */ b("p", {
|
|
407
412
|
className: "text-xs text-text-secondary",
|
|
@@ -429,10 +434,10 @@ var S = [
|
|
|
429
434
|
children: "Address Line"
|
|
430
435
|
}), /* @__PURE__ */ b("textarea", {
|
|
431
436
|
rows: 2,
|
|
432
|
-
value:
|
|
433
|
-
onChange: (e) =>
|
|
437
|
+
value: O.currentAddress,
|
|
438
|
+
onChange: (e) => M("currentAddress", e.target.value),
|
|
434
439
|
disabled: !p,
|
|
435
|
-
className: "w-full rounded-md border border-border-
|
|
440
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40 resize-none"
|
|
436
441
|
})]
|
|
437
442
|
}),
|
|
438
443
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
@@ -440,30 +445,30 @@ var S = [
|
|
|
440
445
|
children: "City"
|
|
441
446
|
}), /* @__PURE__ */ b("input", {
|
|
442
447
|
type: "text",
|
|
443
|
-
value:
|
|
444
|
-
onChange: (e) =>
|
|
448
|
+
value: O.city,
|
|
449
|
+
onChange: (e) => M("city", e.target.value),
|
|
445
450
|
disabled: !p,
|
|
446
|
-
className: "w-full rounded-md border border-border-
|
|
451
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
447
452
|
})] }),
|
|
448
453
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
449
454
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
450
455
|
children: "State"
|
|
451
456
|
}), /* @__PURE__ */ b("input", {
|
|
452
457
|
type: "text",
|
|
453
|
-
value:
|
|
454
|
-
onChange: (e) =>
|
|
458
|
+
value: O.state,
|
|
459
|
+
onChange: (e) => M("state", e.target.value),
|
|
455
460
|
disabled: !p,
|
|
456
|
-
className: "w-full rounded-md border border-border-
|
|
461
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
457
462
|
})] }),
|
|
458
463
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
459
464
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
460
465
|
children: "Pincode"
|
|
461
466
|
}), /* @__PURE__ */ b("input", {
|
|
462
467
|
type: "text",
|
|
463
|
-
value:
|
|
464
|
-
onChange: (e) =>
|
|
468
|
+
value: O.pincode,
|
|
469
|
+
onChange: (e) => M("pincode", e.target.value),
|
|
465
470
|
disabled: !p,
|
|
466
|
-
className: "w-full rounded-md border border-border-
|
|
471
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
467
472
|
})] })
|
|
468
473
|
]
|
|
469
474
|
})] }), /* @__PURE__ */ x("div", { children: [
|
|
@@ -475,24 +480,24 @@ var S = [
|
|
|
475
480
|
className: "flex items-center gap-2 mb-3 cursor-pointer",
|
|
476
481
|
children: [/* @__PURE__ */ b("input", {
|
|
477
482
|
type: "checkbox",
|
|
478
|
-
checked:
|
|
479
|
-
onChange: (e) =>
|
|
483
|
+
checked: O.sameAsCurrent,
|
|
484
|
+
onChange: (e) => M("sameAsCurrent", e.target.checked),
|
|
480
485
|
disabled: !p,
|
|
481
|
-
className: "h-4 w-4 rounded border-border-
|
|
486
|
+
className: "h-4 w-4 rounded border-border-seam text-status-info-text focus:ring-status-info-border/40"
|
|
482
487
|
}), /* @__PURE__ */ b("span", {
|
|
483
488
|
className: "text-xs text-text-primary",
|
|
484
489
|
children: "Same as current address"
|
|
485
490
|
})]
|
|
486
491
|
}),
|
|
487
|
-
!
|
|
492
|
+
!O.sameAsCurrent && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
488
493
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
489
494
|
children: "Address Line"
|
|
490
495
|
}), /* @__PURE__ */ b("textarea", {
|
|
491
496
|
rows: 2,
|
|
492
|
-
value:
|
|
493
|
-
onChange: (e) =>
|
|
497
|
+
value: O.permanentAddress,
|
|
498
|
+
onChange: (e) => M("permanentAddress", e.target.value),
|
|
494
499
|
disabled: !p,
|
|
495
|
-
className: "w-full rounded-md border border-border-
|
|
500
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40 resize-none"
|
|
496
501
|
})] })
|
|
497
502
|
] })]
|
|
498
503
|
})] }),
|
|
@@ -502,9 +507,9 @@ var S = [
|
|
|
502
507
|
children: "Documents & Banking"
|
|
503
508
|
}),
|
|
504
509
|
/* @__PURE__ */ b("div", {
|
|
505
|
-
className: "rounded-lg bg-
|
|
510
|
+
className: "rounded-lg bg-status-warning-bg/10 border border-status-warning-border/20 p-3 mb-5",
|
|
506
511
|
children: /* @__PURE__ */ x("p", {
|
|
507
|
-
className: "text-xs text-
|
|
512
|
+
className: "text-xs text-status-warning-text flex items-center gap-2",
|
|
508
513
|
children: [/* @__PURE__ */ b(g, { className: "h-4 w-4 shrink-0" }), "Your documents and banking information are encrypted and secure."]
|
|
509
514
|
})
|
|
510
515
|
}),
|
|
@@ -516,47 +521,47 @@ var S = [
|
|
|
516
521
|
children: "PAN Number"
|
|
517
522
|
}), /* @__PURE__ */ b("input", {
|
|
518
523
|
type: "text",
|
|
519
|
-
value:
|
|
524
|
+
value: O.panNumber,
|
|
520
525
|
disabled: !0,
|
|
521
|
-
className: "w-full rounded-md border border-border-
|
|
526
|
+
className: "w-full rounded-md border border-border-seam bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
|
|
522
527
|
})] }),
|
|
523
528
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
524
529
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
525
530
|
children: "Aadhar Number"
|
|
526
531
|
}), /* @__PURE__ */ b("input", {
|
|
527
532
|
type: "text",
|
|
528
|
-
value:
|
|
533
|
+
value: O.aadharNumber,
|
|
529
534
|
disabled: !0,
|
|
530
|
-
className: "w-full rounded-md border border-border-
|
|
535
|
+
className: "w-full rounded-md border border-border-seam bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
|
|
531
536
|
})] }),
|
|
532
537
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
533
538
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
534
539
|
children: "Bank Name"
|
|
535
540
|
}), /* @__PURE__ */ b("input", {
|
|
536
541
|
type: "text",
|
|
537
|
-
value:
|
|
538
|
-
onChange: (e) =>
|
|
542
|
+
value: O.bankName,
|
|
543
|
+
onChange: (e) => M("bankName", e.target.value),
|
|
539
544
|
disabled: !p,
|
|
540
|
-
className: "w-full rounded-md border border-border-
|
|
545
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
541
546
|
})] }),
|
|
542
547
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
543
548
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
544
549
|
children: "Account Number"
|
|
545
550
|
}), /* @__PURE__ */ b("input", {
|
|
546
551
|
type: "text",
|
|
547
|
-
value:
|
|
552
|
+
value: O.accountNumber,
|
|
548
553
|
disabled: !0,
|
|
549
|
-
className: "w-full rounded-md border border-border-
|
|
554
|
+
className: "w-full rounded-md border border-border-seam bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
|
|
550
555
|
})] }),
|
|
551
556
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
552
557
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
553
558
|
children: "IFSC Code"
|
|
554
559
|
}), /* @__PURE__ */ b("input", {
|
|
555
560
|
type: "text",
|
|
556
|
-
value:
|
|
557
|
-
onChange: (e) =>
|
|
561
|
+
value: O.ifscCode,
|
|
562
|
+
onChange: (e) => M("ifscCode", e.target.value),
|
|
558
563
|
disabled: !p,
|
|
559
|
-
className: "w-full rounded-md border border-border-
|
|
564
|
+
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-status-info-border/40"
|
|
560
565
|
})] })
|
|
561
566
|
]
|
|
562
567
|
})
|
|
@@ -569,9 +574,9 @@ var S = [
|
|
|
569
574
|
/* @__PURE__ */ x("div", {
|
|
570
575
|
className: "grid sm:grid-cols-2 gap-4 mb-7",
|
|
571
576
|
children: [/* @__PURE__ */ x("div", {
|
|
572
|
-
className: "rounded-lg bg-
|
|
577
|
+
className: "rounded-lg bg-status-warning-bg/5 border border-status-warning-border/20 p-5 text-center",
|
|
573
578
|
children: [
|
|
574
|
-
/* @__PURE__ */ b(o, { className: "h-10 w-10 text-
|
|
579
|
+
/* @__PURE__ */ b(o, { className: "h-10 w-10 text-status-warning-text mx-auto mb-2" }),
|
|
575
580
|
/* @__PURE__ */ b("h3", {
|
|
576
581
|
className: "text-sm font-semibold text-text-primary",
|
|
577
582
|
children: "Employee of the Month"
|
|
@@ -582,9 +587,9 @@ var S = [
|
|
|
582
587
|
})
|
|
583
588
|
]
|
|
584
589
|
}), /* @__PURE__ */ x("div", {
|
|
585
|
-
className: "rounded-lg bg-
|
|
590
|
+
className: "rounded-lg bg-status-info-bg/5 border border-status-info-border/20 p-5 text-center",
|
|
586
591
|
children: [
|
|
587
|
-
/* @__PURE__ */ b(u, { className: "h-10 w-10 text-
|
|
592
|
+
/* @__PURE__ */ b(u, { className: "h-10 w-10 text-status-info-text mx-auto mb-2" }),
|
|
588
593
|
/* @__PURE__ */ b("h3", {
|
|
589
594
|
className: "text-sm font-semibold text-text-primary",
|
|
590
595
|
children: "Perfect Attendance"
|
|
@@ -614,7 +619,7 @@ var S = [
|
|
|
614
619
|
}), /* @__PURE__ */ b("div", {
|
|
615
620
|
className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
|
|
616
621
|
children: /* @__PURE__ */ b("div", {
|
|
617
|
-
className: "h-full rounded-full bg-
|
|
622
|
+
className: "h-full rounded-full bg-status-success-text transition-all",
|
|
618
623
|
style: { width: "98%" }
|
|
619
624
|
})
|
|
620
625
|
})] }),
|
|
@@ -630,7 +635,7 @@ var S = [
|
|
|
630
635
|
}), /* @__PURE__ */ b("div", {
|
|
631
636
|
className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
|
|
632
637
|
children: /* @__PURE__ */ b("div", {
|
|
633
|
-
className: "h-full rounded-full bg-
|
|
638
|
+
className: "h-full rounded-full bg-status-info-text transition-all",
|
|
634
639
|
style: { width: "95%" }
|
|
635
640
|
})
|
|
636
641
|
})] }),
|
|
@@ -646,7 +651,7 @@ var S = [
|
|
|
646
651
|
}), /* @__PURE__ */ b("div", {
|
|
647
652
|
className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
|
|
648
653
|
children: /* @__PURE__ */ b("div", {
|
|
649
|
-
className: "h-full rounded-full bg-purple
|
|
654
|
+
className: "h-full rounded-full bg-accent-purple transition-all",
|
|
650
655
|
style: { width: "92%" }
|
|
651
656
|
})
|
|
652
657
|
})] })
|
|
@@ -658,7 +663,7 @@ var S = [
|
|
|
658
663
|
children: "Notification Preferences"
|
|
659
664
|
}), /* @__PURE__ */ b("div", {
|
|
660
665
|
className: "space-y-4",
|
|
661
|
-
children:
|
|
666
|
+
children: A.map((e) => /* @__PURE__ */ x("div", {
|
|
662
667
|
className: "flex items-center justify-between p-4 rounded-lg bg-bg-sunken/50",
|
|
663
668
|
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h4", {
|
|
664
669
|
className: "text-sm font-medium text-text-primary",
|
|
@@ -668,20 +673,20 @@ var S = [
|
|
|
668
673
|
children: e.description
|
|
669
674
|
})] }), /* @__PURE__ */ b("button", {
|
|
670
675
|
type: "button",
|
|
671
|
-
onClick: () =>
|
|
676
|
+
onClick: () => F(e.id),
|
|
672
677
|
disabled: !p,
|
|
673
|
-
className: t("relative inline-flex h-6 w-11 items-center rounded-full transition-colors", e.enabled ? "bg-
|
|
674
|
-
children: /* @__PURE__ */ b("span", { className: t("inline-block h-4 w-4 rounded-full bg-
|
|
678
|
+
className: t("relative inline-flex h-6 w-11 items-center rounded-full transition-colors", e.enabled ? "bg-status-info-text" : "bg-muted-foreground/30", !p && "opacity-60 cursor-not-allowed"),
|
|
679
|
+
children: /* @__PURE__ */ b("span", { className: t("inline-block h-4 w-4 rounded-full bg-bg-surface transition-transform", e.enabled ? "translate-x-6" : "translate-x-1") })
|
|
675
680
|
})]
|
|
676
681
|
}, e.id))
|
|
677
682
|
})] })
|
|
678
683
|
]
|
|
679
684
|
})
|
|
680
685
|
})]
|
|
681
|
-
})
|
|
686
|
+
})]
|
|
682
687
|
});
|
|
683
688
|
};
|
|
684
689
|
//#endregion
|
|
685
|
-
export {
|
|
690
|
+
export { T as WorkerProfilePage };
|
|
686
691
|
|
|
687
692
|
//# sourceMappingURL=WorkerProfilePage.js.map
|