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