@burdenoff/microfe-adaptercloud 2026.625.2 → 2026.628.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 (153) hide show
  1. package/dist/adaptercloud/AdapterCloudRoot.js +65 -121
  2. package/dist/adaptercloud/AdapterCloudRoot.js.map +1 -1
  3. package/dist/adaptercloud/AdapterCloudRoutes.js +70 -182
  4. package/dist/adaptercloud/AdapterCloudRoutes.js.map +1 -1
  5. package/dist/adaptercloud/components/DataState.js +42 -0
  6. package/dist/adaptercloud/components/DataState.js.map +1 -0
  7. package/dist/adaptercloud/components/SeverityBadge.js +12 -0
  8. package/dist/adaptercloud/components/SeverityBadge.js.map +1 -0
  9. package/dist/adaptercloud/components/StatusBadge.js +43 -44
  10. package/dist/adaptercloud/components/StatusBadge.js.map +1 -1
  11. package/dist/adaptercloud/context/AdapterCloudContext.js +22 -30
  12. package/dist/adaptercloud/context/AdapterCloudContext.js.map +1 -1
  13. package/dist/adaptercloud/hooks/useAdapterCloudApi.js +397 -194
  14. package/dist/adaptercloud/hooks/useAdapterCloudApi.js.map +1 -1
  15. package/dist/adaptercloud/index.js +1 -0
  16. package/dist/adaptercloud/pages/OverviewPage.js +334 -0
  17. package/dist/adaptercloud/pages/OverviewPage.js.map +1 -0
  18. package/dist/adaptercloud/pages/adapters/AdapterDetailPage.js +187 -0
  19. package/dist/adaptercloud/pages/adapters/AdapterDetailPage.js.map +1 -0
  20. package/dist/adaptercloud/pages/adapters/AdapterFormPage.js +278 -0
  21. package/dist/adaptercloud/pages/adapters/AdapterFormPage.js.map +1 -0
  22. package/dist/adaptercloud/pages/adapters/AdaptersListPage.js +172 -0
  23. package/dist/adaptercloud/pages/adapters/AdaptersListPage.js.map +1 -0
  24. package/dist/adaptercloud/pages/connections/ConnectionDetailPage.js +247 -0
  25. package/dist/adaptercloud/pages/connections/ConnectionDetailPage.js.map +1 -0
  26. package/dist/adaptercloud/pages/connections/ConnectionFormPage.js +271 -0
  27. package/dist/adaptercloud/pages/connections/ConnectionFormPage.js.map +1 -0
  28. package/dist/adaptercloud/pages/connections/ConnectionsListPage.js +167 -0
  29. package/dist/adaptercloud/pages/connections/ConnectionsListPage.js.map +1 -0
  30. package/dist/adaptercloud/pages/costs/CostsPage.js +169 -0
  31. package/dist/adaptercloud/pages/costs/CostsPage.js.map +1 -0
  32. package/dist/adaptercloud/pages/drift/DriftListPage.js +132 -0
  33. package/dist/adaptercloud/pages/drift/DriftListPage.js.map +1 -0
  34. package/dist/adaptercloud/pages/policies/PoliciesListPage.js +171 -0
  35. package/dist/adaptercloud/pages/policies/PoliciesListPage.js.map +1 -0
  36. package/dist/adaptercloud/pages/policies/PolicyDetailPage.js +185 -0
  37. package/dist/adaptercloud/pages/policies/PolicyDetailPage.js.map +1 -0
  38. package/dist/adaptercloud/pages/policies/PolicyFormPage.js +215 -0
  39. package/dist/adaptercloud/pages/policies/PolicyFormPage.js.map +1 -0
  40. package/dist/adaptercloud/pages/resources/ResourceDetailPage.js +207 -0
  41. package/dist/adaptercloud/pages/resources/ResourceDetailPage.js.map +1 -0
  42. package/dist/adaptercloud/pages/resources/ResourcesListPage.js +182 -0
  43. package/dist/adaptercloud/pages/resources/ResourcesListPage.js.map +1 -0
  44. package/dist/adaptercloud/pages/sync-runs/SyncRunsListPage.js +196 -0
  45. package/dist/adaptercloud/pages/sync-runs/SyncRunsListPage.js.map +1 -0
  46. package/dist/adaptercloud/pages/violations/ViolationsListPage.js +258 -0
  47. package/dist/adaptercloud/pages/violations/ViolationsListPage.js.map +1 -0
  48. package/dist/adaptercloud/store/adaptercloudStore.js +1 -7
  49. package/dist/adaptercloud/store/adaptercloudStore.js.map +1 -1
  50. package/dist/adaptercloud/utils/domain.js +105 -0
  51. package/dist/adaptercloud/utils/domain.js.map +1 -0
  52. package/dist/adaptercloud/utils/formatters.js +1 -12
  53. package/dist/adaptercloud/utils/formatters.js.map +1 -1
  54. package/dist/index.js +5 -4
  55. package/package.json +1 -1
  56. package/dist/adaptercloud/components/InvestmentCard.js +0 -98
  57. package/dist/adaptercloud/components/InvestmentCard.js.map +0 -1
  58. package/dist/adaptercloud/components/RatingDisplay.js +0 -35
  59. package/dist/adaptercloud/components/RatingDisplay.js.map +0 -1
  60. package/dist/adaptercloud/mocks/data.js +0 -1517
  61. package/dist/adaptercloud/mocks/data.js.map +0 -1
  62. package/dist/adaptercloud/mocks/users.js +0 -34
  63. package/dist/adaptercloud/mocks/users.js.map +0 -1
  64. package/dist/adaptercloud/pages/HomePage.js +0 -934
  65. package/dist/adaptercloud/pages/HomePage.js.map +0 -1
  66. package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +0 -653
  67. package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +0 -1
  68. package/dist/adaptercloud/pages/admin/AdminDashboard.js +0 -665
  69. package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +0 -1
  70. package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +0 -426
  71. package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +0 -1
  72. package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +0 -665
  73. package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +0 -1
  74. package/dist/adaptercloud/pages/admin/AdminProfilePage.js +0 -261
  75. package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +0 -1
  76. package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +0 -663
  77. package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +0 -1
  78. package/dist/adaptercloud/pages/admin/CartManagementPage.js +0 -874
  79. package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +0 -1
  80. package/dist/adaptercloud/pages/admin/UserManagementPage.js +0 -898
  81. package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +0 -1
  82. package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +0 -840
  83. package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
  84. package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +0 -714
  85. package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
  86. package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +0 -788
  87. package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
  88. package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +0 -888
  89. package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
  90. package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +0 -634
  91. package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
  92. package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +0 -907
  93. package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +0 -1
  94. package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +0 -875
  95. package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +0 -1
  96. package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +0 -827
  97. package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +0 -1
  98. package/dist/adaptercloud/pages/common/HelpSupportPage.js +0 -1329
  99. package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +0 -1
  100. package/dist/adaptercloud/pages/common/NotificationCenterPage.js +0 -671
  101. package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +0 -1
  102. package/dist/adaptercloud/pages/common/SettingsPage.js +0 -982
  103. package/dist/adaptercloud/pages/common/SettingsPage.js.map +0 -1
  104. package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +0 -596
  105. package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +0 -1
  106. package/dist/adaptercloud/pages/customer/CartDetailPage.js +0 -623
  107. package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +0 -1
  108. package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +0 -552
  109. package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +0 -1
  110. package/dist/adaptercloud/pages/customer/CheckoutPage.js +0 -534
  111. package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +0 -1
  112. package/dist/adaptercloud/pages/customer/CustomerDashboard.js +0 -525
  113. package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +0 -1
  114. package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +0 -623
  115. package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +0 -1
  116. package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +0 -629
  117. package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +0 -1
  118. package/dist/adaptercloud/pages/customer/FavoritesPage.js +0 -480
  119. package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +0 -1
  120. package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +0 -444
  121. package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +0 -1
  122. package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +0 -391
  123. package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +0 -1
  124. package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +0 -504
  125. package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +0 -1
  126. package/dist/adaptercloud/pages/customer/ReviewsPage.js +0 -609
  127. package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +0 -1
  128. package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +0 -459
  129. package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +0 -1
  130. package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +0 -851
  131. package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +0 -1
  132. package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +0 -942
  133. package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
  134. package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +0 -683
  135. package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +0 -1
  136. package/dist/adaptercloud/pages/investor/InvestorDashboard.js +0 -452
  137. package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +0 -1
  138. package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +0 -402
  139. package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +0 -1
  140. package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +0 -571
  141. package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +0 -1
  142. package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +0 -1067
  143. package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +0 -1
  144. package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +0 -526
  145. package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +0 -1
  146. package/dist/adaptercloud/pages/worker/WorkerDashboard.js +0 -659
  147. package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +0 -1
  148. package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +0 -678
  149. package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +0 -1
  150. package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +0 -689
  151. package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +0 -1
  152. package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +0 -582
  153. package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js.map +0 -1
@@ -1,689 +0,0 @@
1
- import { useAdapterCloud as e } from "../../context/AdapterCloudContext.js";
2
- import { cn as t } from "../../utils/cn.js";
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 } from "@burdenoff/fe-libs/ui";
10
- //#region src/adaptercloud/pages/worker/WorkerProfilePage.tsx
11
- var C = [
12
- {
13
- id: "personal",
14
- label: "Personal Info",
15
- icon: _
16
- },
17
- {
18
- id: "work",
19
- label: "Work Details",
20
- icon: c
21
- },
22
- {
23
- id: "address",
24
- label: "Address",
25
- icon: p
26
- },
27
- {
28
- id: "documents",
29
- label: "Documents",
30
- icon: d
31
- },
32
- {
33
- id: "achievements",
34
- label: "Achievements",
35
- icon: o
36
- },
37
- {
38
- id: "notifications",
39
- label: "Notifications",
40
- icon: s
41
- }
42
- ], w = () => {
43
- let { navigateTo: s } = e(), [c, d] = a("personal"), [p, w] = a(!1), [T, E] = a(!1), [D, O] = 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 || "",
49
- dateOfBirth: "1990-05-15",
50
- employeeId: "EMP-2024-001",
51
- designation: "Delivery Executive",
52
- department: "Operations",
53
- workLocation: "Koramangala Zone",
54
- joiningDate: "2023-01-10",
55
- employmentType: "Full Time",
56
- currentAddress: "45, 2nd Main, BTM Layout",
57
- city: "Bangalore",
58
- state: "Karnataka",
59
- pincode: "560076",
60
- permanentAddress: "",
61
- sameAsCurrent: !0,
62
- emergencyContactName: "Lakshmi Kumar",
63
- emergencyContactPhone: "+91-98765-12345",
64
- emergencyContactRelation: "Spouse",
65
- bankName: "HDFC Bank",
66
- accountNumber: "****5678",
67
- ifscCode: "HDFC0001234",
68
- panNumber: "ABCDE****F",
69
- aadharNumber: "****5678"
70
- }), [k, A] = a([
71
- {
72
- id: "orders",
73
- label: "New Order Assignments",
74
- description: "Get notified when new orders are assigned to you",
75
- enabled: !0
76
- },
77
- {
78
- id: "schedule",
79
- label: "Schedule Updates",
80
- description: "Changes to your work schedule",
81
- enabled: !0
82
- },
83
- {
84
- id: "earnings",
85
- label: "Earnings Updates",
86
- description: "Daily and weekly earnings summaries",
87
- enabled: !0
88
- },
89
- {
90
- id: "performance",
91
- label: "Performance Reviews",
92
- description: "Feedback and performance metrics",
93
- enabled: !0
94
- },
95
- {
96
- id: "announcements",
97
- label: "Company Announcements",
98
- description: "Important updates from management",
99
- enabled: !0
100
- }
101
- ]), j = (e, t) => {
102
- O((n) => ({
103
- ...n,
104
- [e]: t
105
- }));
106
- }, M = () => {
107
- E(!0), setTimeout(() => {
108
- E(!1), w(!1), alert("Profile updated successfully!");
109
- }, 1e3);
110
- }, N = (e) => {
111
- let t = e.target.files?.[0];
112
- if (t) {
113
- let e = new FileReader();
114
- e.onloadend = () => {
115
- O((t) => ({
116
- ...t,
117
- profileImage: e.result
118
- }));
119
- }, e.readAsDataURL(t);
120
- }
121
- }, P = (e) => {
122
- p && A((t) => t.map((t) => t.id === e ? {
123
- ...t,
124
- enabled: !t.enabled
125
- } : t));
126
- };
127
- return /* @__PURE__ */ b(n, {
128
- title: "My Profile",
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.",
131
- actions: /* @__PURE__ */ b("div", {
132
- className: "flex items-center gap-2",
133
- children: p ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x("button", {
134
- type: "button",
135
- onClick: () => w(!1),
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",
137
- children: [/* @__PURE__ */ b(v, { className: "h-4 w-4" }), "Cancel"]
138
- }), /* @__PURE__ */ b("button", {
139
- type: "button",
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"] })
144
- })] }) : /* @__PURE__ */ x("button", {
145
- type: "button",
146
- onClick: () => w(!0),
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",
148
- children: [/* @__PURE__ */ b(m, { className: "h-4 w-4" }), "Edit Profile"]
149
- })
150
- }),
151
- children: /* @__PURE__ */ x("div", {
152
- className: "grid lg:grid-cols-4 gap-6 max-w-6xl",
153
- children: [/* @__PURE__ */ x("div", {
154
- className: "lg:col-span-1 space-y-4",
155
- children: [/* @__PURE__ */ x(S, {
156
- className: "p-5 text-center",
157
- children: [
158
- /* @__PURE__ */ x("div", {
159
- className: "relative inline-block",
160
- children: [/* @__PURE__ */ b("div", {
161
- className: "h-20 w-20 rounded-full bg-bg-sunken overflow-hidden mx-auto",
162
- children: D.profileImage ? /* @__PURE__ */ b("img", {
163
- src: D.profileImage,
164
- alt: `${D.firstName} ${D.lastName}`,
165
- className: "h-full w-full object-cover"
166
- }) : /* @__PURE__ */ b("div", {
167
- className: "flex h-full w-full items-center justify-center text-text-secondary",
168
- children: /* @__PURE__ */ b(_, { className: "h-10 w-10" })
169
- })
170
- }), p && /* @__PURE__ */ x("label", {
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",
172
- children: [/* @__PURE__ */ b(l, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ b("input", {
173
- type: "file",
174
- accept: "image/*",
175
- onChange: N,
176
- className: "hidden"
177
- })]
178
- })]
179
- }),
180
- /* @__PURE__ */ x("h3", {
181
- className: "mt-3 text-sm font-semibold text-text-primary",
182
- children: [
183
- D.firstName,
184
- " ",
185
- D.lastName
186
- ]
187
- }),
188
- /* @__PURE__ */ b("p", {
189
- className: "text-xs text-text-secondary",
190
- children: D.designation
191
- }),
192
- /* @__PURE__ */ b("p", {
193
- className: "text-[10px] text-text-secondary mt-0.5",
194
- children: D.employeeId
195
- })
196
- ]
197
- }), /* @__PURE__ */ b("div", {
198
- className: "space-y-1",
199
- children: C.map((e) => {
200
- let n = e.icon;
201
- return /* @__PURE__ */ x("button", {
202
- type: "button",
203
- onClick: () => d(e.id),
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"),
205
- children: [/* @__PURE__ */ b(n, { className: "h-4 w-4" }), e.label]
206
- }, e.id);
207
- })
208
- })]
209
- }), /* @__PURE__ */ b("div", {
210
- className: "lg:col-span-3",
211
- children: /* @__PURE__ */ x("div", {
212
- className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
213
- children: [
214
- c === "personal" && /* @__PURE__ */ x("div", { children: [
215
- /* @__PURE__ */ b("h2", {
216
- className: "text-lg font-semibold text-text-primary mb-5",
217
- children: "Personal Information"
218
- }),
219
- /* @__PURE__ */ x("div", {
220
- className: "grid sm:grid-cols-2 gap-4",
221
- children: [
222
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
223
- className: "block text-xs font-medium text-text-secondary mb-1",
224
- children: "First Name"
225
- }), /* @__PURE__ */ b("input", {
226
- type: "text",
227
- value: D.firstName,
228
- onChange: (e) => j("firstName", e.target.value),
229
- disabled: !p,
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"
231
- })] }),
232
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
233
- className: "block text-xs font-medium text-text-secondary mb-1",
234
- children: "Last Name"
235
- }), /* @__PURE__ */ b("input", {
236
- type: "text",
237
- value: D.lastName,
238
- onChange: (e) => j("lastName", e.target.value),
239
- disabled: !p,
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"
241
- })] }),
242
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
243
- className: "block text-xs font-medium text-text-secondary mb-1",
244
- children: "Email Address"
245
- }), /* @__PURE__ */ b("input", {
246
- type: "email",
247
- value: D.email,
248
- onChange: (e) => j("email", e.target.value),
249
- disabled: !p,
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"
251
- })] }),
252
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
253
- className: "block text-xs font-medium text-text-secondary mb-1",
254
- children: "Phone Number"
255
- }), /* @__PURE__ */ b("input", {
256
- type: "text",
257
- value: D.phone,
258
- onChange: (e) => j("phone", e.target.value),
259
- disabled: !p,
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"
261
- })] }),
262
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
263
- className: "block text-xs font-medium text-text-secondary mb-1",
264
- children: "Date of Birth"
265
- }), /* @__PURE__ */ b("input", {
266
- type: "date",
267
- value: D.dateOfBirth,
268
- onChange: (e) => j("dateOfBirth", e.target.value),
269
- disabled: !p,
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"
271
- })] })
272
- ]
273
- }),
274
- /* @__PURE__ */ x("div", {
275
- className: "mt-7",
276
- children: [/* @__PURE__ */ b("h3", {
277
- className: "text-sm font-semibold text-text-primary mb-4",
278
- children: "Emergency Contact"
279
- }), /* @__PURE__ */ x("div", {
280
- className: "grid sm:grid-cols-3 gap-4",
281
- children: [
282
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
283
- className: "block text-xs font-medium text-text-secondary mb-1",
284
- children: "Contact Name"
285
- }), /* @__PURE__ */ b("input", {
286
- type: "text",
287
- value: D.emergencyContactName,
288
- onChange: (e) => j("emergencyContactName", e.target.value),
289
- disabled: !p,
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"
291
- })] }),
292
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
293
- className: "block text-xs font-medium text-text-secondary mb-1",
294
- children: "Contact Phone"
295
- }), /* @__PURE__ */ b("input", {
296
- type: "text",
297
- value: D.emergencyContactPhone,
298
- onChange: (e) => j("emergencyContactPhone", e.target.value),
299
- disabled: !p,
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"
301
- })] }),
302
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
303
- className: "block text-xs font-medium text-text-secondary mb-1",
304
- children: "Relationship"
305
- }), /* @__PURE__ */ b("input", {
306
- type: "text",
307
- value: D.emergencyContactRelation,
308
- onChange: (e) => j("emergencyContactRelation", e.target.value),
309
- disabled: !p,
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"
311
- })] })
312
- ]
313
- })]
314
- })
315
- ] }),
316
- c === "work" && /* @__PURE__ */ x("div", { children: [
317
- /* @__PURE__ */ b("h2", {
318
- className: "text-lg font-semibold text-text-primary mb-5",
319
- children: "Work Details"
320
- }),
321
- /* @__PURE__ */ x("div", {
322
- className: "grid sm:grid-cols-2 gap-4",
323
- children: [
324
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
325
- className: "block text-xs font-medium text-text-secondary mb-1",
326
- children: "Employee ID"
327
- }), /* @__PURE__ */ b("input", {
328
- type: "text",
329
- value: D.employeeId,
330
- disabled: !0,
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"
332
- })] }),
333
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
334
- className: "block text-xs font-medium text-text-secondary mb-1",
335
- children: "Designation"
336
- }), /* @__PURE__ */ b("input", {
337
- type: "text",
338
- value: D.designation,
339
- disabled: !0,
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"
341
- })] }),
342
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
343
- className: "block text-xs font-medium text-text-secondary mb-1",
344
- children: "Department"
345
- }), /* @__PURE__ */ b("input", {
346
- type: "text",
347
- value: D.department,
348
- disabled: !0,
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"
350
- })] }),
351
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
352
- className: "block text-xs font-medium text-text-secondary mb-1",
353
- children: "Work Location"
354
- }), /* @__PURE__ */ b("input", {
355
- type: "text",
356
- value: D.workLocation,
357
- disabled: !0,
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"
359
- })] }),
360
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
361
- className: "block text-xs font-medium text-text-secondary mb-1",
362
- children: "Joining Date"
363
- }), /* @__PURE__ */ b("input", {
364
- type: "date",
365
- value: D.joiningDate,
366
- disabled: !0,
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"
368
- })] }),
369
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
370
- className: "block text-xs font-medium text-text-secondary mb-1",
371
- children: "Employment Type"
372
- }), /* @__PURE__ */ b("input", {
373
- type: "text",
374
- value: D.employmentType,
375
- disabled: !0,
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"
377
- })] })
378
- ]
379
- }),
380
- /* @__PURE__ */ x("div", {
381
- className: "mt-7 grid sm:grid-cols-3 gap-4",
382
- children: [
383
- /* @__PURE__ */ x("div", {
384
- className: "rounded-lg bg-bg-sunken/50 p-4 text-center",
385
- children: [/* @__PURE__ */ b("p", {
386
- className: "text-2xl font-bold text-accent-blue",
387
- children: r.totalDeliveries
388
- }), /* @__PURE__ */ b("p", {
389
- className: "text-xs text-text-secondary",
390
- children: "Total Deliveries"
391
- })]
392
- }),
393
- /* @__PURE__ */ x("div", {
394
- className: "rounded-lg bg-bg-sunken/50 p-4 text-center",
395
- children: [/* @__PURE__ */ b("p", {
396
- className: "text-2xl font-bold text-status-success-text",
397
- children: r.averageRating
398
- }), /* @__PURE__ */ b("p", {
399
- className: "text-xs text-text-secondary",
400
- children: "Average Rating"
401
- })]
402
- }),
403
- /* @__PURE__ */ x("div", {
404
- className: "rounded-lg bg-bg-sunken/50 p-4 text-center",
405
- children: [/* @__PURE__ */ x("p", {
406
- className: "text-2xl font-bold text-accent-blue",
407
- children: [r.completionRate, "%"]
408
- }), /* @__PURE__ */ b("p", {
409
- className: "text-xs text-text-secondary",
410
- children: "On-Time Delivery"
411
- })]
412
- })
413
- ]
414
- })
415
- ] }),
416
- c === "address" && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h2", {
417
- className: "text-lg font-semibold text-text-primary mb-5",
418
- children: "Address Information"
419
- }), /* @__PURE__ */ x("div", {
420
- className: "space-y-6",
421
- children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h3", {
422
- className: "text-sm font-semibold text-text-primary mb-3",
423
- children: "Current Address"
424
- }), /* @__PURE__ */ x("div", {
425
- className: "grid sm:grid-cols-2 gap-4",
426
- children: [
427
- /* @__PURE__ */ x("div", {
428
- className: "sm:col-span-2",
429
- children: [/* @__PURE__ */ b("label", {
430
- className: "block text-xs font-medium text-text-secondary mb-1",
431
- children: "Address Line"
432
- }), /* @__PURE__ */ b("textarea", {
433
- rows: 2,
434
- value: D.currentAddress,
435
- onChange: (e) => j("currentAddress", e.target.value),
436
- disabled: !p,
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"
438
- })]
439
- }),
440
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
441
- className: "block text-xs font-medium text-text-secondary mb-1",
442
- children: "City"
443
- }), /* @__PURE__ */ b("input", {
444
- type: "text",
445
- value: D.city,
446
- onChange: (e) => j("city", e.target.value),
447
- disabled: !p,
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"
449
- })] }),
450
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
451
- className: "block text-xs font-medium text-text-secondary mb-1",
452
- children: "State"
453
- }), /* @__PURE__ */ b("input", {
454
- type: "text",
455
- value: D.state,
456
- onChange: (e) => j("state", e.target.value),
457
- disabled: !p,
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"
459
- })] }),
460
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
461
- className: "block text-xs font-medium text-text-secondary mb-1",
462
- children: "Pincode"
463
- }), /* @__PURE__ */ b("input", {
464
- type: "text",
465
- value: D.pincode,
466
- onChange: (e) => j("pincode", e.target.value),
467
- disabled: !p,
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"
469
- })] })
470
- ]
471
- })] }), /* @__PURE__ */ x("div", { children: [
472
- /* @__PURE__ */ b("h3", {
473
- className: "text-sm font-semibold text-text-primary mb-3",
474
- children: "Permanent Address"
475
- }),
476
- /* @__PURE__ */ x("label", {
477
- className: "flex items-center gap-2 mb-3 cursor-pointer",
478
- children: [/* @__PURE__ */ b("input", {
479
- type: "checkbox",
480
- checked: D.sameAsCurrent,
481
- onChange: (e) => j("sameAsCurrent", e.target.checked),
482
- disabled: !p,
483
- className: "h-4 w-4 rounded border-border-subtle text-accent-blue focus:ring-accent-blue-subtle/40"
484
- }), /* @__PURE__ */ b("span", {
485
- className: "text-xs text-text-primary",
486
- children: "Same as current address"
487
- })]
488
- }),
489
- !D.sameAsCurrent && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
490
- className: "block text-xs font-medium text-text-secondary mb-1",
491
- children: "Address Line"
492
- }), /* @__PURE__ */ b("textarea", {
493
- rows: 2,
494
- value: D.permanentAddress,
495
- onChange: (e) => j("permanentAddress", e.target.value),
496
- disabled: !p,
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"
498
- })] })
499
- ] })]
500
- })] }),
501
- c === "documents" && /* @__PURE__ */ x("div", { children: [
502
- /* @__PURE__ */ b("h2", {
503
- className: "text-lg font-semibold text-text-primary mb-5",
504
- children: "Documents & Banking"
505
- }),
506
- /* @__PURE__ */ b("div", {
507
- className: "rounded-lg bg-status-warning-bg-subtle/10 border border-status-warning-border/20 p-3 mb-5",
508
- children: /* @__PURE__ */ x("p", {
509
- className: "text-xs text-status-warning-text flex items-center gap-2",
510
- children: [/* @__PURE__ */ b(g, { className: "h-4 w-4 shrink-0" }), "Your documents and banking information are encrypted and secure."]
511
- })
512
- }),
513
- /* @__PURE__ */ x("div", {
514
- className: "grid sm:grid-cols-2 gap-4",
515
- children: [
516
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
517
- className: "block text-xs font-medium text-text-secondary mb-1",
518
- children: "PAN Number"
519
- }), /* @__PURE__ */ b("input", {
520
- type: "text",
521
- value: D.panNumber,
522
- disabled: !0,
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"
524
- })] }),
525
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
526
- className: "block text-xs font-medium text-text-secondary mb-1",
527
- children: "Aadhar Number"
528
- }), /* @__PURE__ */ b("input", {
529
- type: "text",
530
- value: D.aadharNumber,
531
- disabled: !0,
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"
533
- })] }),
534
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
535
- className: "block text-xs font-medium text-text-secondary mb-1",
536
- children: "Bank Name"
537
- }), /* @__PURE__ */ b("input", {
538
- type: "text",
539
- value: D.bankName,
540
- onChange: (e) => j("bankName", e.target.value),
541
- disabled: !p,
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"
543
- })] }),
544
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
545
- className: "block text-xs font-medium text-text-secondary mb-1",
546
- children: "Account Number"
547
- }), /* @__PURE__ */ b("input", {
548
- type: "text",
549
- value: D.accountNumber,
550
- disabled: !0,
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"
552
- })] }),
553
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
554
- className: "block text-xs font-medium text-text-secondary mb-1",
555
- children: "IFSC Code"
556
- }), /* @__PURE__ */ b("input", {
557
- type: "text",
558
- value: D.ifscCode,
559
- onChange: (e) => j("ifscCode", e.target.value),
560
- disabled: !p,
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"
562
- })] })
563
- ]
564
- })
565
- ] }),
566
- c === "achievements" && /* @__PURE__ */ x("div", { children: [
567
- /* @__PURE__ */ b("h2", {
568
- className: "text-lg font-semibold text-text-primary mb-5",
569
- children: "Achievements & Recognition"
570
- }),
571
- /* @__PURE__ */ x("div", {
572
- className: "grid sm:grid-cols-2 gap-4 mb-7",
573
- children: [/* @__PURE__ */ x("div", {
574
- className: "rounded-lg bg-status-warning-bg-subtle/5 border border-status-warning-border/20 p-5 text-center",
575
- children: [
576
- /* @__PURE__ */ b(o, { className: "h-10 w-10 text-status-warning-text mx-auto mb-2" }),
577
- /* @__PURE__ */ b("h3", {
578
- className: "text-sm font-semibold text-text-primary",
579
- children: "Employee of the Month"
580
- }),
581
- /* @__PURE__ */ b("p", {
582
- className: "text-xs text-text-secondary mt-1",
583
- children: "December 2023"
584
- })
585
- ]
586
- }), /* @__PURE__ */ x("div", {
587
- className: "rounded-lg bg-accent-blue-subtle/5 border border-accent-blue-subtle/20 p-5 text-center",
588
- children: [
589
- /* @__PURE__ */ b(u, { className: "h-10 w-10 text-accent-blue mx-auto mb-2" }),
590
- /* @__PURE__ */ b("h3", {
591
- className: "text-sm font-semibold text-text-primary",
592
- children: "Perfect Attendance"
593
- }),
594
- /* @__PURE__ */ b("p", {
595
- className: "text-xs text-text-secondary mt-1",
596
- children: "Q3 2023"
597
- })
598
- ]
599
- })]
600
- }),
601
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h3", {
602
- className: "text-sm font-semibold text-text-primary mb-4",
603
- children: "Performance Metrics"
604
- }), /* @__PURE__ */ x("div", {
605
- className: "space-y-4",
606
- children: [
607
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
608
- className: "flex justify-between items-center mb-1.5",
609
- children: [/* @__PURE__ */ b("span", {
610
- className: "text-xs text-text-secondary",
611
- children: "Delivery Success Rate"
612
- }), /* @__PURE__ */ b("span", {
613
- className: "text-xs font-medium text-text-primary",
614
- children: "98%"
615
- })]
616
- }), /* @__PURE__ */ b("div", {
617
- className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
618
- children: /* @__PURE__ */ b("div", {
619
- className: "h-full rounded-full bg-status-success-bg-subtle transition-all",
620
- style: { width: "98%" }
621
- })
622
- })] }),
623
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
624
- className: "flex justify-between items-center mb-1.5",
625
- children: [/* @__PURE__ */ b("span", {
626
- className: "text-xs text-text-secondary",
627
- children: "Customer Satisfaction"
628
- }), /* @__PURE__ */ b("span", {
629
- className: "text-xs font-medium text-text-primary",
630
- children: "95%"
631
- })]
632
- }), /* @__PURE__ */ b("div", {
633
- className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
634
- children: /* @__PURE__ */ b("div", {
635
- className: "h-full rounded-full bg-accent-blue-subtle transition-all",
636
- style: { width: "95%" }
637
- })
638
- })] }),
639
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
640
- className: "flex justify-between items-center mb-1.5",
641
- children: [/* @__PURE__ */ b("span", {
642
- className: "text-xs text-text-secondary",
643
- children: "Punctuality"
644
- }), /* @__PURE__ */ b("span", {
645
- className: "text-xs font-medium text-text-primary",
646
- children: "92%"
647
- })]
648
- }), /* @__PURE__ */ b("div", {
649
- className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
650
- children: /* @__PURE__ */ b("div", {
651
- className: "h-full rounded-full bg-accent-purple-subtle transition-all",
652
- style: { width: "92%" }
653
- })
654
- })] })
655
- ]
656
- })] })
657
- ] }),
658
- c === "notifications" && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h2", {
659
- className: "text-lg font-semibold text-text-primary mb-5",
660
- children: "Notification Preferences"
661
- }), /* @__PURE__ */ b("div", {
662
- className: "space-y-4",
663
- children: k.map((e) => /* @__PURE__ */ x("div", {
664
- className: "flex items-center justify-between p-4 rounded-lg bg-bg-sunken/50",
665
- children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h4", {
666
- className: "text-sm font-medium text-text-primary",
667
- children: e.label
668
- }), /* @__PURE__ */ b("p", {
669
- className: "text-xs text-text-secondary mt-0.5",
670
- children: e.description
671
- })] }), /* @__PURE__ */ b("button", {
672
- type: "button",
673
- onClick: () => P(e.id),
674
- disabled: !p,
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"),
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") })
677
- })]
678
- }, e.id))
679
- })] })
680
- ]
681
- })
682
- })]
683
- })
684
- });
685
- };
686
- //#endregion
687
- export { w as WorkerProfilePage };
688
-
689
- //# sourceMappingURL=WorkerProfilePage.js.map