@burdenoff/microfe-adaptercloud 2026.624.1 → 2026.625.2

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