@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.
Files changed (63) hide show
  1. package/dist/kadaikodi/hooks/useKadaikodiApi.js +209 -105
  2. package/dist/kadaikodi/hooks/useKadaikodiApi.js.map +1 -1
  3. package/dist/kadaikodi/pages/HomePage.js +4 -4
  4. package/dist/kadaikodi/pages/HomePage.js.map +1 -1
  5. package/dist/kadaikodi/pages/admin/AdminDashboard.js +1 -1
  6. package/dist/kadaikodi/pages/admin/AdminDashboard.js.map +1 -1
  7. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +1 -1
  8. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
  9. package/dist/kadaikodi/pages/admin/CartManagementPage.js +279 -333
  10. package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
  11. package/dist/kadaikodi/pages/admin/UserManagementPage.js +299 -372
  12. package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
  13. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +214 -214
  14. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  15. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +226 -230
  16. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  17. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +255 -256
  18. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  19. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +275 -278
  20. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  21. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +228 -446
  22. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
  23. package/dist/kadaikodi/pages/common/NotificationCenterPage.js +1 -1
  24. package/dist/kadaikodi/pages/common/NotificationCenterPage.js.map +1 -1
  25. package/dist/kadaikodi/pages/common/SettingsPage.js +34 -46
  26. package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
  27. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js +193 -447
  28. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js.map +1 -1
  29. package/dist/kadaikodi/pages/customer/CartDetailPage.js +6 -6
  30. package/dist/kadaikodi/pages/customer/CartDetailPage.js.map +1 -1
  31. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js +2 -2
  32. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js.map +1 -1
  33. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js +255 -215
  34. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
  35. package/dist/kadaikodi/pages/customer/FavoritesPage.js +141 -178
  36. package/dist/kadaikodi/pages/customer/FavoritesPage.js.map +1 -1
  37. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +155 -161
  38. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
  39. package/dist/kadaikodi/pages/customer/ReviewsPage.js +14 -140
  40. package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
  41. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +304 -458
  42. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  43. package/dist/kadaikodi/pages/investor/InvestorDashboard.js +1 -1
  44. package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
  45. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +2 -2
  46. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  47. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js +361 -361
  48. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
  49. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +226 -220
  50. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
  51. package/dist/kadaikodi/pages/worker/WorkerDashboard.js +15 -15
  52. package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
  53. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +2 -2
  54. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
  55. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +252 -253
  56. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
  57. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +3 -3
  58. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
  59. package/package.json +1 -1
  60. package/dist/kadaikodi/mocks/data.js +0 -1517
  61. package/dist/kadaikodi/mocks/data.js.map +0 -1
  62. package/dist/kadaikodi/mocks/users.js +0 -34
  63. 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 { mockWorkerStats as r } from "../../mocks/data.js";
5
- import { mockWorker as i } from "../../mocks/users.js";
6
- import { useState as a } from "react";
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
- 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";
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 w = [
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: c
19
+ icon: s
21
20
  },
22
21
  {
23
22
  id: "address",
24
23
  label: "Address",
25
- icon: p
24
+ icon: f
26
25
  },
27
26
  {
28
27
  id: "documents",
29
28
  label: "Documents",
30
- icon: d
29
+ icon: u
31
30
  },
32
31
  {
33
32
  id: "achievements",
34
33
  label: "Achievements",
35
- icon: o
34
+ icon: a
36
35
  },
37
36
  {
38
37
  id: "notifications",
39
38
  label: "Notifications",
40
- icon: s
39
+ icon: o
41
40
  }
42
- ], T = () => {
43
- let { navigateTo: s } = e(), [c, d] = a("personal"), [p, T] = a(!1), [E, D] = a(!1), [O, k] = a({
44
- firstName: i.firstName || "Suresh",
45
- lastName: i.lastName || "Kumar",
46
- email: i.email || "suresh.worker@example.com",
47
- phone: i.phone || "+91-87654-32109",
48
- profileImage: i.profilePicture || "",
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
- }), [A, j] = a([
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
- ]), M = (e, t) => {
102
- k((n) => ({
100
+ ]), N = (e, t) => {
101
+ A((n) => ({
103
102
  ...n,
104
103
  [e]: t
105
104
  }));
106
- }, N = () => {
107
- D(!0), setTimeout(() => {
108
- D(!1), T(!1), alert("Profile updated successfully!");
105
+ }, P = () => {
106
+ O(!0), setTimeout(() => {
107
+ O(!1), E(!1), alert("Profile updated successfully!");
109
108
  }, 1e3);
110
- }, P = (e) => {
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
- k((t) => ({
114
+ A((t) => ({
116
115
  ...t,
117
116
  profileImage: e.result
118
117
  }));
119
118
  }, e.readAsDataURL(t);
120
119
  }
121
- }, F = (e) => {
122
- p && j((t) => t.map((t) => t.id === e ? {
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__ */ x(n, {
126
+ return /* @__PURE__ */ b(n, {
128
127
  title: "My Profile",
129
128
  description: "Manage your profile information",
130
- actions: /* @__PURE__ */ b("div", {
129
+ actions: /* @__PURE__ */ y("div", {
131
130
  className: "flex items-center gap-2",
132
- children: p ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x("button", {
131
+ children: T ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b("button", {
133
132
  type: "button",
134
- onClick: () => T(!1),
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__ */ b(v, { className: "h-4 w-4" }), "Cancel"]
137
- }), /* @__PURE__ */ b("button", {
135
+ children: [/* @__PURE__ */ y(_, { className: "h-4 w-4" }), "Cancel"]
136
+ }), /* @__PURE__ */ y("button", {
138
137
  type: "button",
139
- onClick: N,
140
- disabled: E,
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: 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"] })
143
- })] }) : /* @__PURE__ */ x("button", {
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: () => T(!0),
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__ */ b(m, { className: "h-4 w-4" }), "Edit Profile"]
146
+ children: [/* @__PURE__ */ y(p, { className: "h-4 w-4" }), "Edit Profile"]
148
147
  })
149
148
  }),
150
- children: [/* @__PURE__ */ b(C, {
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__ */ x("div", {
152
+ }), /* @__PURE__ */ b("div", {
154
153
  className: "grid lg:grid-cols-4 gap-6 max-w-6xl",
155
- children: [/* @__PURE__ */ x("div", {
154
+ children: [/* @__PURE__ */ b("div", {
156
155
  className: "lg:col-span-1 space-y-4",
157
- children: [/* @__PURE__ */ x(S, {
156
+ children: [/* @__PURE__ */ b(x, {
158
157
  className: "p-5 text-center",
159
158
  children: [
160
- /* @__PURE__ */ x("div", {
159
+ /* @__PURE__ */ b("div", {
161
160
  className: "relative inline-block",
162
- children: [/* @__PURE__ */ b("div", {
161
+ children: [/* @__PURE__ */ y("div", {
163
162
  className: "h-20 w-20 rounded-full bg-bg-sunken overflow-hidden mx-auto",
164
- children: O.profileImage ? /* @__PURE__ */ b("img", {
165
- src: O.profileImage,
166
- alt: `${O.firstName} ${O.lastName}`,
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__ */ b("div", {
167
+ }) : /* @__PURE__ */ y("div", {
169
168
  className: "flex h-full w-full items-center justify-center text-text-secondary",
170
- children: /* @__PURE__ */ b(_, { className: "h-10 w-10" })
169
+ children: /* @__PURE__ */ y(g, { className: "h-10 w-10" })
171
170
  })
172
- }), p && /* @__PURE__ */ x("label", {
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__ */ b(l, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ b("input", {
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: P,
176
+ onChange: F,
178
177
  className: "hidden"
179
178
  })]
180
179
  })]
181
180
  }),
182
- /* @__PURE__ */ x("h3", {
181
+ /* @__PURE__ */ b("h3", {
183
182
  className: "mt-3 text-sm font-semibold text-text-primary",
184
183
  children: [
185
- O.firstName,
184
+ k.firstName,
186
185
  " ",
187
- O.lastName
186
+ k.lastName
188
187
  ]
189
188
  }),
190
- /* @__PURE__ */ b("p", {
189
+ /* @__PURE__ */ y("p", {
191
190
  className: "text-xs text-text-secondary",
192
- children: O.designation
191
+ children: k.designation
193
192
  }),
194
- /* @__PURE__ */ b("p", {
193
+ /* @__PURE__ */ y("p", {
195
194
  className: "text-[10px] text-text-secondary mt-0.5",
196
- children: O.employeeId
195
+ children: k.employeeId
197
196
  })
198
197
  ]
199
- }), /* @__PURE__ */ b("div", {
198
+ }), /* @__PURE__ */ y("div", {
200
199
  className: "space-y-1",
201
- children: w.map((e) => {
200
+ children: C.map((e) => {
202
201
  let n = e.icon;
203
- return /* @__PURE__ */ x("button", {
202
+ return /* @__PURE__ */ b("button", {
204
203
  type: "button",
205
- onClick: () => d(e.id),
206
- 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-[var(--color-accent-soft)] text-text-primary" : "bg-bg-surface text-text-primary hover:bg-bg-sunken"),
207
- children: [/* @__PURE__ */ b(n, { className: "h-4 w-4" }), e.label]
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__ */ b("div", {
210
+ }), /* @__PURE__ */ y("div", {
212
211
  className: "lg:col-span-3",
213
- children: /* @__PURE__ */ x("div", {
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
- c === "personal" && /* @__PURE__ */ x("div", { children: [
217
- /* @__PURE__ */ b("h2", {
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__ */ x("div", {
220
+ /* @__PURE__ */ b("div", {
222
221
  className: "grid sm:grid-cols-2 gap-4",
223
222
  children: [
224
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
226
+ }), /* @__PURE__ */ y("input", {
228
227
  type: "text",
229
- value: O.firstName,
230
- onChange: (e) => M("firstName", e.target.value),
231
- disabled: !p,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
236
+ }), /* @__PURE__ */ y("input", {
238
237
  type: "text",
239
- value: O.lastName,
240
- onChange: (e) => M("lastName", e.target.value),
241
- disabled: !p,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
246
+ }), /* @__PURE__ */ y("input", {
248
247
  type: "email",
249
- value: O.email,
250
- onChange: (e) => M("email", e.target.value),
251
- disabled: !p,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
256
+ }), /* @__PURE__ */ y("input", {
258
257
  type: "text",
259
- value: O.phone,
260
- onChange: (e) => M("phone", e.target.value),
261
- disabled: !p,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
266
+ }), /* @__PURE__ */ y("input", {
268
267
  type: "date",
269
- value: O.dateOfBirth,
270
- onChange: (e) => M("dateOfBirth", e.target.value),
271
- disabled: !p,
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__ */ x("div", {
275
+ /* @__PURE__ */ b("div", {
277
276
  className: "mt-7",
278
- children: [/* @__PURE__ */ b("h3", {
277
+ children: [/* @__PURE__ */ y("h3", {
279
278
  className: "text-sm font-semibold text-text-primary mb-4",
280
279
  children: "Emergency Contact"
281
- }), /* @__PURE__ */ x("div", {
280
+ }), /* @__PURE__ */ b("div", {
282
281
  className: "grid sm:grid-cols-3 gap-4",
283
282
  children: [
284
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
286
+ }), /* @__PURE__ */ y("input", {
288
287
  type: "text",
289
- value: O.emergencyContactName,
290
- onChange: (e) => M("emergencyContactName", e.target.value),
291
- disabled: !p,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
296
+ }), /* @__PURE__ */ y("input", {
298
297
  type: "text",
299
- value: O.emergencyContactPhone,
300
- onChange: (e) => M("emergencyContactPhone", e.target.value),
301
- disabled: !p,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
306
+ }), /* @__PURE__ */ y("input", {
308
307
  type: "text",
309
- value: O.emergencyContactRelation,
310
- onChange: (e) => M("emergencyContactRelation", e.target.value),
311
- disabled: !p,
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
- c === "work" && /* @__PURE__ */ x("div", { children: [
319
- /* @__PURE__ */ b("h2", {
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__ */ x("div", {
322
+ /* @__PURE__ */ b("div", {
324
323
  className: "grid sm:grid-cols-2 gap-4",
325
324
  children: [
326
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
328
+ }), /* @__PURE__ */ y("input", {
330
329
  type: "text",
331
- value: O.employeeId,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
337
+ }), /* @__PURE__ */ y("input", {
339
338
  type: "text",
340
- value: O.designation,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
346
+ }), /* @__PURE__ */ y("input", {
348
347
  type: "text",
349
- value: O.department,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
355
+ }), /* @__PURE__ */ y("input", {
357
356
  type: "text",
358
- value: O.workLocation,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
364
+ }), /* @__PURE__ */ y("input", {
366
365
  type: "date",
367
- value: O.joiningDate,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
373
+ }), /* @__PURE__ */ y("input", {
375
374
  type: "text",
376
- value: O.employmentType,
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__ */ x("div", {
381
+ /* @__PURE__ */ b("div", {
383
382
  className: "mt-7 grid sm:grid-cols-3 gap-4",
384
383
  children: [
385
- /* @__PURE__ */ x("div", {
384
+ /* @__PURE__ */ b("div", {
386
385
  className: "rounded-lg bg-bg-sunken/50 p-4 text-center",
387
- children: [/* @__PURE__ */ b("p", {
386
+ children: [/* @__PURE__ */ y("p", {
388
387
  className: "text-2xl font-bold text-text-primary",
389
- children: r.totalDeliveries
390
- }), /* @__PURE__ */ b("p", {
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__ */ x("div", {
394
+ /* @__PURE__ */ b("div", {
396
395
  className: "rounded-lg bg-bg-sunken/50 p-4 text-center",
397
- children: [/* @__PURE__ */ b("p", {
396
+ children: [/* @__PURE__ */ y("p", {
398
397
  className: "text-2xl font-bold text-status-success-text",
399
- children: r.averageRating
400
- }), /* @__PURE__ */ b("p", {
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__ */ x("div", {
404
+ /* @__PURE__ */ b("div", {
406
405
  className: "rounded-lg bg-bg-sunken/50 p-4 text-center",
407
- children: [/* @__PURE__ */ x("p", {
406
+ children: [/* @__PURE__ */ b("p", {
408
407
  className: "text-2xl font-bold text-text-primary",
409
- children: [r.completionRate, "%"]
410
- }), /* @__PURE__ */ b("p", {
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
- c === "address" && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h2", {
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__ */ x("div", {
420
+ }), /* @__PURE__ */ b("div", {
422
421
  className: "space-y-6",
423
- children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h3", {
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__ */ x("div", {
425
+ }), /* @__PURE__ */ b("div", {
427
426
  className: "grid sm:grid-cols-2 gap-4",
428
427
  children: [
429
- /* @__PURE__ */ x("div", {
428
+ /* @__PURE__ */ b("div", {
430
429
  className: "sm:col-span-2",
431
- children: [/* @__PURE__ */ b("label", {
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__ */ b("textarea", {
433
+ }), /* @__PURE__ */ y("textarea", {
435
434
  rows: 2,
436
- value: O.currentAddress,
437
- onChange: (e) => M("currentAddress", e.target.value),
438
- disabled: !p,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
444
+ }), /* @__PURE__ */ y("input", {
446
445
  type: "text",
447
- value: O.city,
448
- onChange: (e) => M("city", e.target.value),
449
- disabled: !p,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
454
+ }), /* @__PURE__ */ y("input", {
456
455
  type: "text",
457
- value: O.state,
458
- onChange: (e) => M("state", e.target.value),
459
- disabled: !p,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
464
+ }), /* @__PURE__ */ y("input", {
466
465
  type: "text",
467
- value: O.pincode,
468
- onChange: (e) => M("pincode", e.target.value),
469
- disabled: !p,
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__ */ x("div", { children: [
474
- /* @__PURE__ */ b("h3", {
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__ */ x("label", {
477
+ /* @__PURE__ */ b("label", {
479
478
  className: "flex items-center gap-2 mb-3 cursor-pointer",
480
- children: [/* @__PURE__ */ b("input", {
479
+ children: [/* @__PURE__ */ y("input", {
481
480
  type: "checkbox",
482
- checked: O.sameAsCurrent,
483
- onChange: (e) => M("sameAsCurrent", e.target.checked),
484
- disabled: !p,
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__ */ b("span", {
485
+ }), /* @__PURE__ */ y("span", {
487
486
  className: "text-xs text-text-primary",
488
487
  children: "Same as current address"
489
488
  })]
490
489
  }),
491
- !O.sameAsCurrent && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("textarea", {
493
+ }), /* @__PURE__ */ y("textarea", {
495
494
  rows: 2,
496
- value: O.permanentAddress,
497
- onChange: (e) => M("permanentAddress", e.target.value),
498
- disabled: !p,
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
- c === "documents" && /* @__PURE__ */ x("div", { children: [
504
- /* @__PURE__ */ b("h2", {
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__ */ b("div", {
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__ */ x("p", {
509
+ children: /* @__PURE__ */ b("p", {
511
510
  className: "text-xs text-status-warning-text flex items-center gap-2",
512
- children: [/* @__PURE__ */ b(g, { className: "h-4 w-4 shrink-0" }), "Your documents and banking information are encrypted and secure."]
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__ */ x("div", {
514
+ /* @__PURE__ */ b("div", {
516
515
  className: "grid sm:grid-cols-2 gap-4",
517
516
  children: [
518
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
520
+ }), /* @__PURE__ */ y("input", {
522
521
  type: "text",
523
- value: O.panNumber,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
529
+ }), /* @__PURE__ */ y("input", {
531
530
  type: "text",
532
- value: O.aadharNumber,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
538
+ }), /* @__PURE__ */ y("input", {
540
539
  type: "text",
541
- value: O.bankName,
542
- onChange: (e) => M("bankName", e.target.value),
543
- disabled: !p,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
548
+ }), /* @__PURE__ */ y("input", {
550
549
  type: "text",
551
- value: O.accountNumber,
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__ */ x("div", { children: [/* @__PURE__ */ b("label", {
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__ */ b("input", {
557
+ }), /* @__PURE__ */ y("input", {
559
558
  type: "text",
560
- value: O.ifscCode,
561
- onChange: (e) => M("ifscCode", e.target.value),
562
- disabled: !p,
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
- c === "achievements" && /* @__PURE__ */ x("div", { children: [
569
- /* @__PURE__ */ b("h2", {
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__ */ x("div", {
572
+ /* @__PURE__ */ b("div", {
574
573
  className: "grid sm:grid-cols-2 gap-4 mb-7",
575
- children: [/* @__PURE__ */ x("div", {
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__ */ b(o, { className: "h-10 w-10 text-status-warning-text mx-auto mb-2" }),
579
- /* @__PURE__ */ b("h3", {
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__ */ b("p", {
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__ */ x("div", {
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__ */ b(u, { className: "h-10 w-10 text-text-primary mx-auto mb-2" }),
592
- /* @__PURE__ */ b("h3", {
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__ */ b("p", {
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__ */ x("div", { children: [/* @__PURE__ */ b("h3", {
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__ */ x("div", {
605
+ }), /* @__PURE__ */ b("div", {
607
606
  className: "space-y-4",
608
607
  children: [
609
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
608
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
610
609
  className: "flex justify-between items-center mb-1.5",
611
- children: [/* @__PURE__ */ b("span", {
610
+ children: [/* @__PURE__ */ y("span", {
612
611
  className: "text-xs text-text-secondary",
613
612
  children: "Delivery Success Rate"
614
- }), /* @__PURE__ */ b("span", {
613
+ }), /* @__PURE__ */ y("span", {
615
614
  className: "text-xs font-medium text-text-primary",
616
615
  children: "98%"
617
616
  })]
618
- }), /* @__PURE__ */ b("div", {
617
+ }), /* @__PURE__ */ y("div", {
619
618
  className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
620
- children: /* @__PURE__ */ b("div", {
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__ */ x("div", { children: [/* @__PURE__ */ x("div", {
624
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
626
625
  className: "flex justify-between items-center mb-1.5",
627
- children: [/* @__PURE__ */ b("span", {
626
+ children: [/* @__PURE__ */ y("span", {
628
627
  className: "text-xs text-text-secondary",
629
628
  children: "Customer Satisfaction"
630
- }), /* @__PURE__ */ b("span", {
629
+ }), /* @__PURE__ */ y("span", {
631
630
  className: "text-xs font-medium text-text-primary",
632
631
  children: "95%"
633
632
  })]
634
- }), /* @__PURE__ */ b("div", {
633
+ }), /* @__PURE__ */ y("div", {
635
634
  className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
636
- children: /* @__PURE__ */ b("div", {
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__ */ x("div", { children: [/* @__PURE__ */ x("div", {
640
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
642
641
  className: "flex justify-between items-center mb-1.5",
643
- children: [/* @__PURE__ */ b("span", {
642
+ children: [/* @__PURE__ */ y("span", {
644
643
  className: "text-xs text-text-secondary",
645
644
  children: "Punctuality"
646
- }), /* @__PURE__ */ b("span", {
645
+ }), /* @__PURE__ */ y("span", {
647
646
  className: "text-xs font-medium text-text-primary",
648
647
  children: "92%"
649
648
  })]
650
- }), /* @__PURE__ */ b("div", {
649
+ }), /* @__PURE__ */ y("div", {
651
650
  className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
652
- children: /* @__PURE__ */ b("div", {
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
- c === "notifications" && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h2", {
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__ */ b("div", {
662
+ }), /* @__PURE__ */ y("div", {
664
663
  className: "space-y-4",
665
- children: A.map((e) => /* @__PURE__ */ x("div", {
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__ */ x("div", { children: [/* @__PURE__ */ b("h4", {
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__ */ b("p", {
669
+ }), /* @__PURE__ */ y("p", {
671
670
  className: "text-xs text-text-secondary mt-0.5",
672
671
  children: e.description
673
- })] }), /* @__PURE__ */ b("button", {
672
+ })] }), /* @__PURE__ */ y("button", {
674
673
  type: "button",
675
- onClick: () => F(e.id),
676
- disabled: !p,
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", !p && "opacity-60 cursor-not-allowed"),
678
- 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") })
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 { T as WorkerProfilePage };
688
+ export { w as WorkerProfilePage };
690
689
 
691
690
  //# sourceMappingURL=WorkerProfilePage.js.map