@burdenoff/microfe-subscriberbot 2026.626.1 → 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 (141) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/subscriberbot/SubscriberBotRoot.js +61 -133
  3. package/dist/subscriberbot/SubscriberBotRoot.js.map +1 -1
  4. package/dist/subscriberbot/SubscriberBotRoutes.js +56 -187
  5. package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
  6. package/dist/subscriberbot/components/StateViews.js +49 -0
  7. package/dist/subscriberbot/components/StateViews.js.map +1 -0
  8. package/dist/subscriberbot/components/StatusBadge.js +45 -47
  9. package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
  10. package/dist/subscriberbot/context/SubscriberBotContext.js +22 -30
  11. package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
  12. package/dist/subscriberbot/hooks/useSubscriberBotApi.js +342 -195
  13. package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
  14. package/dist/subscriberbot/index.js +1 -1
  15. package/dist/subscriberbot/pages/DashboardPage.js +269 -0
  16. package/dist/subscriberbot/pages/DashboardPage.js.map +1 -0
  17. package/dist/subscriberbot/pages/InboxPage.js +186 -0
  18. package/dist/subscriberbot/pages/InboxPage.js.map +1 -0
  19. package/dist/subscriberbot/pages/InvoicesPage.js +211 -0
  20. package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -0
  21. package/dist/subscriberbot/pages/WorkflowsPage.js +236 -0
  22. package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -0
  23. package/dist/subscriberbot/pages/agents/AgentDetailPage.js +160 -0
  24. package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -0
  25. package/dist/subscriberbot/pages/agents/AgentNewPage.js +140 -0
  26. package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -0
  27. package/dist/subscriberbot/pages/agents/AgentsListPage.js +178 -0
  28. package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -0
  29. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +179 -0
  30. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -0
  31. package/dist/subscriberbot/pages/providers/ProviderNewPage.js +185 -0
  32. package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -0
  33. package/dist/subscriberbot/pages/providers/ProvidersListPage.js +254 -0
  34. package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -0
  35. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +306 -0
  36. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -0
  37. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +253 -0
  38. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -0
  39. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +248 -0
  40. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -0
  41. package/dist/subscriberbot/utils/formatters.js +50 -32
  42. package/dist/subscriberbot/utils/formatters.js.map +1 -1
  43. package/package.json +1 -1
  44. package/dist/subscriberbot/components/InvestmentCard.js +0 -97
  45. package/dist/subscriberbot/components/InvestmentCard.js.map +0 -1
  46. package/dist/subscriberbot/components/RatingDisplay.js +0 -35
  47. package/dist/subscriberbot/components/RatingDisplay.js.map +0 -1
  48. package/dist/subscriberbot/mocks/data.js +0 -1517
  49. package/dist/subscriberbot/mocks/data.js.map +0 -1
  50. package/dist/subscriberbot/mocks/users.js +0 -34
  51. package/dist/subscriberbot/mocks/users.js.map +0 -1
  52. package/dist/subscriberbot/pages/HomePage.js +0 -930
  53. package/dist/subscriberbot/pages/HomePage.js.map +0 -1
  54. package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +0 -651
  55. package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +0 -1
  56. package/dist/subscriberbot/pages/admin/AdminDashboard.js +0 -679
  57. package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +0 -1
  58. package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +0 -427
  59. package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +0 -1
  60. package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +0 -665
  61. package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +0 -1
  62. package/dist/subscriberbot/pages/admin/AdminProfilePage.js +0 -261
  63. package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +0 -1
  64. package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +0 -654
  65. package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +0 -1
  66. package/dist/subscriberbot/pages/admin/CartManagementPage.js +0 -874
  67. package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +0 -1
  68. package/dist/subscriberbot/pages/admin/UserManagementPage.js +0 -898
  69. package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +0 -1
  70. package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +0 -839
  71. package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
  72. package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +0 -705
  73. package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
  74. package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +0 -802
  75. package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
  76. package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +0 -891
  77. package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
  78. package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +0 -633
  79. package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
  80. package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +0 -910
  81. package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +0 -1
  82. package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +0 -879
  83. package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +0 -1
  84. package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +0 -838
  85. package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +0 -1
  86. package/dist/subscriberbot/pages/common/HelpSupportPage.js +0 -1323
  87. package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +0 -1
  88. package/dist/subscriberbot/pages/common/NotificationCenterPage.js +0 -672
  89. package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +0 -1
  90. package/dist/subscriberbot/pages/common/SettingsPage.js +0 -973
  91. package/dist/subscriberbot/pages/common/SettingsPage.js.map +0 -1
  92. package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +0 -626
  93. package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +0 -1
  94. package/dist/subscriberbot/pages/customer/CartDetailPage.js +0 -654
  95. package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +0 -1
  96. package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +0 -555
  97. package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +0 -1
  98. package/dist/subscriberbot/pages/customer/CheckoutPage.js +0 -529
  99. package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +0 -1
  100. package/dist/subscriberbot/pages/customer/CustomerDashboard.js +0 -532
  101. package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +0 -1
  102. package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +0 -630
  103. package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +0 -1
  104. package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +0 -633
  105. package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +0 -1
  106. package/dist/subscriberbot/pages/customer/FavoritesPage.js +0 -484
  107. package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +0 -1
  108. package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +0 -446
  109. package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +0 -1
  110. package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +0 -394
  111. package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +0 -1
  112. package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +0 -495
  113. package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +0 -1
  114. package/dist/subscriberbot/pages/customer/ReviewsPage.js +0 -613
  115. package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +0 -1
  116. package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +0 -450
  117. package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +0 -1
  118. package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +0 -886
  119. package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +0 -1
  120. package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +0 -947
  121. package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
  122. package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +0 -687
  123. package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +0 -1
  124. package/dist/subscriberbot/pages/investor/InvestorDashboard.js +0 -451
  125. package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +0 -1
  126. package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +0 -406
  127. package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +0 -1
  128. package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +0 -575
  129. package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +0 -1
  130. package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +0 -1070
  131. package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +0 -1
  132. package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +0 -535
  133. package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +0 -1
  134. package/dist/subscriberbot/pages/worker/WorkerDashboard.js +0 -666
  135. package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +0 -1
  136. package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +0 -681
  137. package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +0 -1
  138. package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +0 -692
  139. package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +0 -1
  140. package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +0 -588
  141. package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +0 -1
@@ -1,692 +0,0 @@
1
- import { useSubscriberBot as e } from "../../context/SubscriberBotContext.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/subscriberbot/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/10 px-3 py-2 text-sm font-medium text-status-info-text hover:bg-status-info-bg/20 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",
153
- children: "Your worker profile — personal details, designation and the info your cart owner relies on to assign you work. Keep your contact details, availability and skills up to date so you get matched to the right shifts and orders. A complete, accurate profile means fewer mix-ups and more earning opportunities."
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/20 text-status-info-text cursor-pointer hover:bg-status-info-bg/30 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/10 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/40"
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/40"
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/40"
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/40"
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/40"
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/40"
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/40"
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/40"
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/40 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/40"
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/40"
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/40"
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/40"
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/40 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/10 border border-status-warning-border/20 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/40"
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/40"
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/5 border border-status-warning-border/20 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/5 border border-status-info-border/20 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-text 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-text 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-text" : "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-bg-surface 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