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