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