@burdenoff/microfe-kadaikodi 2026.704.4 → 2026.710.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 (341) hide show
  1. package/dist/generated/global-operations.d.ts +2 -0
  2. package/dist/generated/global-operations.d.ts.map +1 -0
  3. package/dist/generated/global-types.d.ts +23527 -0
  4. package/dist/generated/global-types.d.ts.map +1 -0
  5. package/dist/generated/wspace-operations.d.ts +2 -0
  6. package/dist/generated/wspace-operations.d.ts.map +1 -0
  7. package/dist/generated/wspace-types.d.ts +57851 -0
  8. package/dist/generated/wspace-types.d.ts.map +1 -0
  9. package/dist/index.d.ts +7 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +2 -1
  12. package/dist/kadaikodi/KadaikodiRoot.d.ts +5 -0
  13. package/dist/kadaikodi/KadaikodiRoot.d.ts.map +1 -0
  14. package/dist/kadaikodi/KadaikodiRoutes.d.ts +4 -0
  15. package/dist/kadaikodi/KadaikodiRoutes.d.ts.map +1 -0
  16. package/dist/kadaikodi/KadaikodiRoutes.js +30 -26
  17. package/dist/kadaikodi/KadaikodiRoutes.js.map +1 -1
  18. package/dist/kadaikodi/components/CartCard.d.ts +18 -0
  19. package/dist/kadaikodi/components/CartCard.d.ts.map +1 -0
  20. package/dist/kadaikodi/components/EmptyState.d.ts +17 -0
  21. package/dist/kadaikodi/components/EmptyState.d.ts.map +1 -0
  22. package/dist/kadaikodi/components/InvestmentCard.d.ts +18 -0
  23. package/dist/kadaikodi/components/InvestmentCard.d.ts.map +1 -0
  24. package/dist/kadaikodi/components/MetricsCard.d.ts +16 -0
  25. package/dist/kadaikodi/components/MetricsCard.d.ts.map +1 -0
  26. package/dist/kadaikodi/components/OrderCard.d.ts +18 -0
  27. package/dist/kadaikodi/components/OrderCard.d.ts.map +1 -0
  28. package/dist/kadaikodi/components/PageLayout.d.ts +12 -0
  29. package/dist/kadaikodi/components/PageLayout.d.ts.map +1 -0
  30. package/dist/kadaikodi/components/RatingDisplay.d.ts +12 -0
  31. package/dist/kadaikodi/components/RatingDisplay.d.ts.map +1 -0
  32. package/dist/kadaikodi/components/StatusBadge.d.ts +9 -0
  33. package/dist/kadaikodi/components/StatusBadge.d.ts.map +1 -0
  34. package/dist/kadaikodi/components/index.d.ts +13 -0
  35. package/dist/kadaikodi/components/index.d.ts.map +1 -0
  36. package/dist/kadaikodi/components/viz/AllocationBar.d.ts +21 -0
  37. package/dist/kadaikodi/components/viz/AllocationBar.d.ts.map +1 -0
  38. package/dist/kadaikodi/components/viz/AllocationBar.js +68 -0
  39. package/dist/kadaikodi/components/viz/AllocationBar.js.map +1 -0
  40. package/dist/kadaikodi/components/viz/AreaChart.d.ts +18 -0
  41. package/dist/kadaikodi/components/viz/AreaChart.d.ts.map +1 -0
  42. package/dist/kadaikodi/components/viz/AreaChart.js +102 -0
  43. package/dist/kadaikodi/components/viz/AreaChart.js.map +1 -0
  44. package/dist/kadaikodi/components/viz/AvatarStack.d.ts +13 -0
  45. package/dist/kadaikodi/components/viz/AvatarStack.d.ts.map +1 -0
  46. package/dist/kadaikodi/components/viz/AvatarStack.js +36 -0
  47. package/dist/kadaikodi/components/viz/AvatarStack.js.map +1 -0
  48. package/dist/kadaikodi/components/viz/BarChart.d.ts +17 -0
  49. package/dist/kadaikodi/components/viz/BarChart.d.ts.map +1 -0
  50. package/dist/kadaikodi/components/viz/BarChart.js +83 -0
  51. package/dist/kadaikodi/components/viz/BarChart.js.map +1 -0
  52. package/dist/kadaikodi/components/viz/CertificateCard.d.ts +14 -0
  53. package/dist/kadaikodi/components/viz/CertificateCard.d.ts.map +1 -0
  54. package/dist/kadaikodi/components/viz/CertificateCard.js +4 -0
  55. package/dist/kadaikodi/components/viz/DonutChart.d.ts +20 -0
  56. package/dist/kadaikodi/components/viz/DonutChart.d.ts.map +1 -0
  57. package/dist/kadaikodi/components/viz/DonutChart.js +109 -0
  58. package/dist/kadaikodi/components/viz/DonutChart.js.map +1 -0
  59. package/dist/kadaikodi/components/viz/HBarFunnel.d.ts +17 -0
  60. package/dist/kadaikodi/components/viz/HBarFunnel.d.ts.map +1 -0
  61. package/dist/kadaikodi/components/viz/HBarFunnel.js +54 -0
  62. package/dist/kadaikodi/components/viz/HBarFunnel.js.map +1 -0
  63. package/dist/kadaikodi/components/viz/Heatmap.d.ts +26 -0
  64. package/dist/kadaikodi/components/viz/Heatmap.d.ts.map +1 -0
  65. package/dist/kadaikodi/components/viz/Heatmap.js +3 -0
  66. package/dist/kadaikodi/components/viz/KanbanBoard.d.ts +17 -0
  67. package/dist/kadaikodi/components/viz/KanbanBoard.d.ts.map +1 -0
  68. package/dist/kadaikodi/components/viz/KanbanBoard.js +50 -0
  69. package/dist/kadaikodi/components/viz/KanbanBoard.js.map +1 -0
  70. package/dist/kadaikodi/components/viz/LineChart.d.ts +20 -0
  71. package/dist/kadaikodi/components/viz/LineChart.d.ts.map +1 -0
  72. package/dist/kadaikodi/components/viz/LineChart.js +4 -0
  73. package/dist/kadaikodi/components/viz/OrgTree.d.ts +14 -0
  74. package/dist/kadaikodi/components/viz/OrgTree.d.ts.map +1 -0
  75. package/dist/kadaikodi/components/viz/OrgTree.js +2 -0
  76. package/dist/kadaikodi/components/viz/PathSteps.d.ts +17 -0
  77. package/dist/kadaikodi/components/viz/PathSteps.d.ts.map +1 -0
  78. package/dist/kadaikodi/components/viz/PathSteps.js +3 -0
  79. package/dist/kadaikodi/components/viz/ProgressRing.d.ts +20 -0
  80. package/dist/kadaikodi/components/viz/ProgressRing.d.ts.map +1 -0
  81. package/dist/kadaikodi/components/viz/ProgressRing.js +68 -0
  82. package/dist/kadaikodi/components/viz/ProgressRing.js.map +1 -0
  83. package/dist/kadaikodi/components/viz/RatingStars.d.ts +14 -0
  84. package/dist/kadaikodi/components/viz/RatingStars.d.ts.map +1 -0
  85. package/dist/kadaikodi/components/viz/RatingStars.js +51 -0
  86. package/dist/kadaikodi/components/viz/RatingStars.js.map +1 -0
  87. package/dist/kadaikodi/components/viz/SegmentedTabs.d.ts +26 -0
  88. package/dist/kadaikodi/components/viz/SegmentedTabs.d.ts.map +1 -0
  89. package/dist/kadaikodi/components/viz/SegmentedTabs.js +69 -0
  90. package/dist/kadaikodi/components/viz/SegmentedTabs.js.map +1 -0
  91. package/dist/kadaikodi/components/viz/SkillBar.d.ts +17 -0
  92. package/dist/kadaikodi/components/viz/SkillBar.d.ts.map +1 -0
  93. package/dist/kadaikodi/components/viz/SkillBar.js +3 -0
  94. package/dist/kadaikodi/components/viz/Sparkline.d.ts +16 -0
  95. package/dist/kadaikodi/components/viz/Sparkline.d.ts.map +1 -0
  96. package/dist/kadaikodi/components/viz/Sparkline.js +74 -0
  97. package/dist/kadaikodi/components/viz/Sparkline.js.map +1 -0
  98. package/dist/kadaikodi/components/viz/StatCard.d.ts +22 -0
  99. package/dist/kadaikodi/components/viz/StatCard.d.ts.map +1 -0
  100. package/dist/kadaikodi/components/viz/StatCard.js +60 -0
  101. package/dist/kadaikodi/components/viz/StatCard.js.map +1 -0
  102. package/dist/kadaikodi/components/viz/StepProgress.d.ts +17 -0
  103. package/dist/kadaikodi/components/viz/StepProgress.d.ts.map +1 -0
  104. package/dist/kadaikodi/components/viz/StepProgress.js +64 -0
  105. package/dist/kadaikodi/components/viz/StepProgress.js.map +1 -0
  106. package/dist/kadaikodi/components/viz/Timeline.d.ts +21 -0
  107. package/dist/kadaikodi/components/viz/Timeline.d.ts.map +1 -0
  108. package/dist/kadaikodi/components/viz/Timeline.js +66 -0
  109. package/dist/kadaikodi/components/viz/Timeline.js.map +1 -0
  110. package/dist/kadaikodi/components/viz/index.d.ts +35 -0
  111. package/dist/kadaikodi/components/viz/index.d.ts.map +1 -0
  112. package/dist/kadaikodi/components/viz/index.js +23 -0
  113. package/dist/kadaikodi/components/viz/lib/Avatar.d.ts +15 -0
  114. package/dist/kadaikodi/components/viz/lib/Avatar.d.ts.map +1 -0
  115. package/dist/kadaikodi/components/viz/lib/Avatar.js +30 -0
  116. package/dist/kadaikodi/components/viz/lib/Avatar.js.map +1 -0
  117. package/dist/kadaikodi/components/viz/lib/CartesianFrame.d.ts +44 -0
  118. package/dist/kadaikodi/components/viz/lib/CartesianFrame.d.ts.map +1 -0
  119. package/dist/kadaikodi/components/viz/lib/CartesianFrame.js +119 -0
  120. package/dist/kadaikodi/components/viz/lib/CartesianFrame.js.map +1 -0
  121. package/dist/kadaikodi/components/viz/lib/ResponsiveSvg.d.ts +27 -0
  122. package/dist/kadaikodi/components/viz/lib/ResponsiveSvg.d.ts.map +1 -0
  123. package/dist/kadaikodi/components/viz/lib/ResponsiveSvg.js +35 -0
  124. package/dist/kadaikodi/components/viz/lib/ResponsiveSvg.js.map +1 -0
  125. package/dist/kadaikodi/components/viz/lib/format.d.ts +10 -0
  126. package/dist/kadaikodi/components/viz/lib/format.d.ts.map +1 -0
  127. package/dist/kadaikodi/components/viz/lib/format.js +21 -0
  128. package/dist/kadaikodi/components/viz/lib/format.js.map +1 -0
  129. package/dist/kadaikodi/components/viz/lib/geometry.d.ts +41 -0
  130. package/dist/kadaikodi/components/viz/lib/geometry.d.ts.map +1 -0
  131. package/dist/kadaikodi/components/viz/lib/geometry.js +61 -0
  132. package/dist/kadaikodi/components/viz/lib/geometry.js.map +1 -0
  133. package/dist/kadaikodi/components/viz/lib/hooks.d.ts +18 -0
  134. package/dist/kadaikodi/components/viz/lib/hooks.d.ts.map +1 -0
  135. package/dist/kadaikodi/components/viz/lib/hooks.js +39 -0
  136. package/dist/kadaikodi/components/viz/lib/hooks.js.map +1 -0
  137. package/dist/kadaikodi/components/viz/lib/palette.d.ts +31 -0
  138. package/dist/kadaikodi/components/viz/lib/palette.d.ts.map +1 -0
  139. package/dist/kadaikodi/components/viz/lib/palette.js +27 -0
  140. package/dist/kadaikodi/components/viz/lib/palette.js.map +1 -0
  141. package/dist/kadaikodi/components/viz/lib/types.d.ts +27 -0
  142. package/dist/kadaikodi/components/viz/lib/types.d.ts.map +1 -0
  143. package/dist/kadaikodi/context/KadaikodiContext.d.ts +16 -0
  144. package/dist/kadaikodi/context/KadaikodiContext.d.ts.map +1 -0
  145. package/dist/kadaikodi/context/index.d.ts +6 -0
  146. package/dist/kadaikodi/context/index.d.ts.map +1 -0
  147. package/dist/kadaikodi/hooks/index.d.ts +2 -0
  148. package/dist/kadaikodi/hooks/index.d.ts.map +1 -0
  149. package/dist/kadaikodi/hooks/useKadaikodiApi.d.ts +169 -0
  150. package/dist/kadaikodi/hooks/useKadaikodiApi.d.ts.map +1 -0
  151. package/dist/kadaikodi/hooks/useKadaikodiApi.js +18 -10
  152. package/dist/kadaikodi/hooks/useKadaikodiApi.js.map +1 -1
  153. package/dist/kadaikodi/index.d.ts +11 -0
  154. package/dist/kadaikodi/index.d.ts.map +1 -0
  155. package/dist/kadaikodi/pages/HomePage.d.ts +14 -0
  156. package/dist/kadaikodi/pages/HomePage.d.ts.map +1 -0
  157. package/dist/kadaikodi/pages/HomePage.js +373 -631
  158. package/dist/kadaikodi/pages/HomePage.js.map +1 -1
  159. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.d.ts +13 -0
  160. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.d.ts.map +1 -0
  161. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js +304 -169
  162. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
  163. package/dist/kadaikodi/pages/admin/AdminDashboard.d.ts +13 -0
  164. package/dist/kadaikodi/pages/admin/AdminDashboard.d.ts.map +1 -0
  165. package/dist/kadaikodi/pages/admin/AdminDashboard.js +255 -271
  166. package/dist/kadaikodi/pages/admin/AdminDashboard.js.map +1 -1
  167. package/dist/kadaikodi/pages/admin/AdminFinancialPage.d.ts +12 -0
  168. package/dist/kadaikodi/pages/admin/AdminFinancialPage.d.ts.map +1 -0
  169. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js +185 -125
  170. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js.map +1 -1
  171. package/dist/kadaikodi/pages/admin/AdminOrdersPage.d.ts +11 -0
  172. package/dist/kadaikodi/pages/admin/AdminOrdersPage.d.ts.map +1 -0
  173. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +141 -102
  174. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
  175. package/dist/kadaikodi/pages/admin/AdminProfilePage.d.ts +11 -0
  176. package/dist/kadaikodi/pages/admin/AdminProfilePage.d.ts.map +1 -0
  177. package/dist/kadaikodi/pages/admin/AdminSettingsPage.d.ts +10 -0
  178. package/dist/kadaikodi/pages/admin/AdminSettingsPage.d.ts.map +1 -0
  179. package/dist/kadaikodi/pages/admin/CartManagementPage.d.ts +13 -0
  180. package/dist/kadaikodi/pages/admin/CartManagementPage.d.ts.map +1 -0
  181. package/dist/kadaikodi/pages/admin/CartManagementPage.js +558 -718
  182. package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
  183. package/dist/kadaikodi/pages/admin/UserManagementPage.d.ts +10 -0
  184. package/dist/kadaikodi/pages/admin/UserManagementPage.d.ts.map +1 -0
  185. package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
  186. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.d.ts +13 -0
  187. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.d.ts.map +1 -0
  188. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +142 -55
  189. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  190. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.d.ts +11 -0
  191. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.d.ts.map +1 -0
  192. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.d.ts +12 -0
  193. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.d.ts.map +1 -0
  194. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +129 -164
  195. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  196. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.d.ts +12 -0
  197. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.d.ts.map +1 -0
  198. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.d.ts +11 -0
  199. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.d.ts.map +1 -0
  200. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.d.ts +11 -0
  201. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.d.ts.map +1 -0
  202. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +379 -361
  203. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  204. package/dist/kadaikodi/pages/cart-owner/InvestmentListingPage.d.ts +2 -0
  205. package/dist/kadaikodi/pages/cart-owner/InvestmentListingPage.d.ts.map +1 -0
  206. package/dist/kadaikodi/pages/cart-owner/InvestmentListingPage.js +266 -166
  207. package/dist/kadaikodi/pages/cart-owner/InvestmentListingPage.js.map +1 -1
  208. package/dist/kadaikodi/pages/cart-owner/MerchantOnboardingPage.d.ts +2 -0
  209. package/dist/kadaikodi/pages/cart-owner/MerchantOnboardingPage.d.ts.map +1 -0
  210. package/dist/kadaikodi/pages/cart-owner/MerchantOnboardingPage.js +373 -0
  211. package/dist/kadaikodi/pages/cart-owner/MerchantOnboardingPage.js.map +1 -0
  212. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.d.ts +10 -0
  213. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.d.ts.map +1 -0
  214. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +288 -161
  215. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
  216. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.d.ts +12 -0
  217. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.d.ts.map +1 -0
  218. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js +180 -181
  219. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
  220. package/dist/kadaikodi/pages/common/HelpSupportPage.d.ts +11 -0
  221. package/dist/kadaikodi/pages/common/HelpSupportPage.d.ts.map +1 -0
  222. package/dist/kadaikodi/pages/common/HelpSupportPage.js.map +1 -1
  223. package/dist/kadaikodi/pages/common/NotificationCenterPage.d.ts +10 -0
  224. package/dist/kadaikodi/pages/common/NotificationCenterPage.d.ts.map +1 -0
  225. package/dist/kadaikodi/pages/common/SettingsPage.d.ts +19 -0
  226. package/dist/kadaikodi/pages/common/SettingsPage.d.ts.map +1 -0
  227. package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
  228. package/dist/kadaikodi/pages/customer/BookingDetailsPage.d.ts +12 -0
  229. package/dist/kadaikodi/pages/customer/BookingDetailsPage.d.ts.map +1 -0
  230. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js +17 -34
  231. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js.map +1 -1
  232. package/dist/kadaikodi/pages/customer/CartDetailPage.d.ts +13 -0
  233. package/dist/kadaikodi/pages/customer/CartDetailPage.d.ts.map +1 -0
  234. package/dist/kadaikodi/pages/customer/CartDetailPage.js +405 -248
  235. package/dist/kadaikodi/pages/customer/CartDetailPage.js.map +1 -1
  236. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.d.ts +11 -0
  237. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.d.ts.map +1 -0
  238. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js +258 -232
  239. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js.map +1 -1
  240. package/dist/kadaikodi/pages/customer/CheckoutPage.d.ts +9 -0
  241. package/dist/kadaikodi/pages/customer/CheckoutPage.d.ts.map +1 -0
  242. package/dist/kadaikodi/pages/customer/CheckoutPage.js +254 -205
  243. package/dist/kadaikodi/pages/customer/CheckoutPage.js.map +1 -1
  244. package/dist/kadaikodi/pages/customer/CustomerDashboard.d.ts +10 -0
  245. package/dist/kadaikodi/pages/customer/CustomerDashboard.d.ts.map +1 -0
  246. package/dist/kadaikodi/pages/customer/CustomerProfilePage.d.ts +10 -0
  247. package/dist/kadaikodi/pages/customer/CustomerProfilePage.d.ts.map +1 -0
  248. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.d.ts +12 -0
  249. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.d.ts.map +1 -0
  250. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js +270 -230
  251. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
  252. package/dist/kadaikodi/pages/customer/FavoritesPage.d.ts +11 -0
  253. package/dist/kadaikodi/pages/customer/FavoritesPage.d.ts.map +1 -0
  254. package/dist/kadaikodi/pages/customer/FavoritesPage.js +149 -412
  255. package/dist/kadaikodi/pages/customer/FavoritesPage.js.map +1 -1
  256. package/dist/kadaikodi/pages/customer/OrderHistoryPage.d.ts +9 -0
  257. package/dist/kadaikodi/pages/customer/OrderHistoryPage.d.ts.map +1 -0
  258. package/dist/kadaikodi/pages/customer/OrderHistoryPage.js +173 -134
  259. package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
  260. package/dist/kadaikodi/pages/customer/OrderTrackingPage.d.ts +9 -0
  261. package/dist/kadaikodi/pages/customer/OrderTrackingPage.d.ts.map +1 -0
  262. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +176 -175
  263. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
  264. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.d.ts +11 -0
  265. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.d.ts.map +1 -0
  266. package/dist/kadaikodi/pages/customer/ReviewsPage.d.ts +12 -0
  267. package/dist/kadaikodi/pages/customer/ReviewsPage.d.ts.map +1 -0
  268. package/dist/kadaikodi/pages/customer/ReviewsPage.js +295 -438
  269. package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
  270. package/dist/kadaikodi/pages/customer/SavedAddressesPage.d.ts +10 -0
  271. package/dist/kadaikodi/pages/customer/SavedAddressesPage.d.ts.map +1 -0
  272. package/dist/kadaikodi/pages/customer/shared.d.ts +41 -0
  273. package/dist/kadaikodi/pages/customer/shared.d.ts.map +1 -0
  274. package/dist/kadaikodi/pages/customer/shared.js +181 -0
  275. package/dist/kadaikodi/pages/customer/shared.js.map +1 -0
  276. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.d.ts +13 -0
  277. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.d.ts.map +1 -0
  278. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js +438 -311
  279. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
  280. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.d.ts +10 -0
  281. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.d.ts.map +1 -0
  282. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +320 -293
  283. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  284. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.d.ts +11 -0
  285. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.d.ts.map +1 -0
  286. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js +159 -91
  287. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  288. package/dist/kadaikodi/pages/investor/InvestorDashboard.d.ts +10 -0
  289. package/dist/kadaikodi/pages/investor/InvestorDashboard.d.ts.map +1 -0
  290. package/dist/kadaikodi/pages/investor/InvestorDashboard.js +137 -107
  291. package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
  292. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.d.ts +10 -0
  293. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.d.ts.map +1 -0
  294. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +157 -135
  295. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  296. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.d.ts +11 -0
  297. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.d.ts.map +1 -0
  298. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js +280 -206
  299. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js.map +1 -1
  300. package/dist/kadaikodi/pages/investor/InvestorProfilePage.d.ts +20 -0
  301. package/dist/kadaikodi/pages/investor/InvestorProfilePage.d.ts.map +1 -0
  302. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
  303. package/dist/kadaikodi/pages/worker/TaskDetailsPage.d.ts +18 -0
  304. package/dist/kadaikodi/pages/worker/TaskDetailsPage.d.ts.map +1 -0
  305. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +424 -448
  306. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
  307. package/dist/kadaikodi/pages/worker/WorkerDashboard.d.ts +14 -0
  308. package/dist/kadaikodi/pages/worker/WorkerDashboard.d.ts.map +1 -0
  309. package/dist/kadaikodi/pages/worker/WorkerDashboard.js +328 -445
  310. package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
  311. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.d.ts +18 -0
  312. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.d.ts.map +1 -0
  313. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +141 -164
  314. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
  315. package/dist/kadaikodi/pages/worker/WorkerProfilePage.d.ts +18 -0
  316. package/dist/kadaikodi/pages/worker/WorkerProfilePage.d.ts.map +1 -0
  317. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +300 -296
  318. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
  319. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.d.ts +16 -0
  320. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.d.ts.map +1 -0
  321. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +284 -309
  322. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
  323. package/dist/kadaikodi/store/index.d.ts +6 -0
  324. package/dist/kadaikodi/store/index.d.ts.map +1 -0
  325. package/dist/kadaikodi/store/kadaikodiStore.d.ts +60 -0
  326. package/dist/kadaikodi/store/kadaikodiStore.d.ts.map +1 -0
  327. package/dist/kadaikodi/types/index.d.ts +464 -0
  328. package/dist/kadaikodi/types/index.d.ts.map +1 -0
  329. package/dist/kadaikodi/utils/cn.d.ts +4 -0
  330. package/dist/kadaikodi/utils/cn.d.ts.map +1 -0
  331. package/dist/kadaikodi/utils/formatters.d.ts +78 -0
  332. package/dist/kadaikodi/utils/formatters.d.ts.map +1 -0
  333. package/dist/kadaikodi/utils/index.d.ts +8 -0
  334. package/dist/kadaikodi/utils/index.d.ts.map +1 -0
  335. package/dist/kadaikodi/utils/navigation.d.ts +20 -0
  336. package/dist/kadaikodi/utils/navigation.d.ts.map +1 -0
  337. package/dist/services/createSandboxAssistantTransport.d.ts +43 -0
  338. package/dist/services/createSandboxAssistantTransport.d.ts.map +1 -0
  339. package/dist/services/createSandboxAssistantTransport.js +15 -0
  340. package/dist/services/createSandboxAssistantTransport.js.map +1 -0
  341. package/package.json +5 -1
@@ -3,49 +3,52 @@ import { cn as t } from "../../utils/cn.js";
3
3
  import { PageLayout as n } from "../../components/PageLayout.js";
4
4
  import { EmptyState as r } from "../../components/EmptyState.js";
5
5
  import { useProviderWorkers as i, useProviders as a, useUpdateProviderWorker as o, useWorkerStats as s } from "../../hooks/useKadaikodiApi.js";
6
- import { useEffect as c, useMemo as l, useState as u } from "react";
7
- import { Award as d, Bell as f, Briefcase as p, CreditCard as m, Loader2 as h, Lock as g, MapPin as _, Pencil as v, Save as y, Shield as b, User as x, X as S } from "lucide-react";
8
- import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
9
- import { EmphasisPanel as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
6
+ import { ProgressRing as c } from "../../components/viz/ProgressRing.js";
7
+ import { RatingStars as l } from "../../components/viz/RatingStars.js";
8
+ import "../../components/viz/index.js";
9
+ import { useEffect as u, useMemo as d, useState as f } from "react";
10
+ import { Award as p, Bell as m, Briefcase as h, CreditCard as g, Loader2 as _, Lock as v, MapPin as y, Pencil as b, Save as x, Shield as S, User as C, X as w } from "lucide-react";
11
+ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
12
+ import { EmphasisPanel as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
10
13
  //#region src/kadaikodi/pages/worker/WorkerProfilePage.tsx
11
- var O = [
14
+ var A = [
12
15
  {
13
16
  id: "personal",
14
17
  label: "Personal Info",
15
- icon: x
18
+ icon: C
16
19
  },
17
20
  {
18
21
  id: "work",
19
22
  label: "Work Details",
20
- icon: p
23
+ icon: h
21
24
  },
22
25
  {
23
26
  id: "address",
24
27
  label: "Address",
25
- icon: _
28
+ icon: y
26
29
  },
27
30
  {
28
31
  id: "documents",
29
32
  label: "Documents",
30
- icon: m
33
+ icon: g
31
34
  },
32
35
  {
33
36
  id: "achievements",
34
37
  label: "Achievements",
35
- icon: d
38
+ icon: p
36
39
  },
37
40
  {
38
41
  id: "notifications",
39
42
  label: "Notifications",
40
- icon: f
43
+ icon: m
41
44
  }
42
- ], k = () => {
43
- let { navigateTo: f, currentUser: p } = e(), { data: m } = s(p?.id ?? ""), { data: _ = [] } = a(), { data: k = [] } = i(l(() => _.find((e) => e.ownerId === p?.id) ?? _[0], [_, p?.id])?.id), A = l(() => k.find((e) => e.workerId === p?.id) ?? k[0], [k, p?.id]), j = o(), [M, N] = u("personal"), [P, F] = u(!1), [I, L] = u(null), [R, z] = u({
44
- firstName: p?.firstName ?? p?.name?.split(" ")[0] ?? "",
45
- lastName: p?.lastName ?? p?.name?.split(" ").slice(1).join(" ") ?? "",
46
- email: p?.email ?? "",
47
- phone: p?.phone ?? "",
48
- profileImage: p?.avatar ?? p?.profilePicture ?? "",
45
+ ], j = () => {
46
+ let { navigateTo: m, currentUser: h } = e(), { data: g } = s(h?.id ?? ""), { data: y = [] } = a(), { data: j = [] } = i(d(() => y.find((e) => e.ownerId === h?.id) ?? y[0], [y, h?.id])?.id), M = d(() => j.find((e) => e.workerId === h?.id) ?? j[0], [j, h?.id]), N = o(), [P, F] = f("personal"), [I, L] = f(!1), [R, z] = f(null), [B, V] = f({
47
+ firstName: h?.firstName ?? h?.name?.split(" ")[0] ?? "",
48
+ lastName: h?.lastName ?? h?.name?.split(" ").slice(1).join(" ") ?? "",
49
+ email: h?.email ?? "",
50
+ phone: h?.phone ?? "",
51
+ profileImage: h?.avatar ?? h?.profilePicture ?? "",
49
52
  dateOfBirth: "",
50
53
  employeeId: "",
51
54
  designation: "",
@@ -67,7 +70,7 @@ var O = [
67
70
  ifscCode: "",
68
71
  panNumber: "",
69
72
  aadharNumber: ""
70
- }), [B, V] = u([
73
+ }), [H, U] = f([
71
74
  {
72
75
  id: "orders",
73
76
  label: "New Order Assignments",
@@ -99,15 +102,15 @@ var O = [
99
102
  enabled: !0
100
103
  }
101
104
  ]);
102
- c(() => {
103
- let e = A?.metadata ?? {}, t = e.profile ?? {};
104
- if (z((e) => ({
105
+ u(() => {
106
+ let e = M?.metadata ?? {}, t = e.profile ?? {};
107
+ if (V((e) => ({
105
108
  ...e,
106
- firstName: p?.firstName ?? p?.name?.split(" ")[0] ?? e.firstName,
107
- lastName: p?.lastName ?? p?.name?.split(" ").slice(1).join(" ") ?? e.lastName,
108
- email: p?.email ?? e.email,
109
- phone: p?.phone ?? e.phone,
110
- profileImage: p?.avatar ?? p?.profilePicture ?? e.profileImage,
109
+ firstName: h?.firstName ?? h?.name?.split(" ")[0] ?? e.firstName,
110
+ lastName: h?.lastName ?? h?.name?.split(" ").slice(1).join(" ") ?? e.lastName,
111
+ email: h?.email ?? e.email,
112
+ phone: h?.phone ?? e.phone,
113
+ profileImage: h?.avatar ?? h?.profilePicture ?? e.profileImage,
111
114
  dateOfBirth: t.dateOfBirth ?? "",
112
115
  designation: t.designation ?? "",
113
116
  department: t.department ?? "",
@@ -126,361 +129,361 @@ var O = [
126
129
  ifscCode: t.ifscCode ?? ""
127
130
  })), e.notificationPrefs) {
128
131
  let t = e.notificationPrefs;
129
- V((e) => e.map((e) => e.id in t ? {
132
+ U((e) => e.map((e) => e.id in t ? {
130
133
  ...e,
131
134
  enabled: !!t[e.id]
132
135
  } : e));
133
136
  }
134
- }, [A, p]);
135
- let H = (e, t) => {
136
- z((n) => ({
137
+ }, [M, h]);
138
+ let W = (e, t) => {
139
+ V((n) => ({
137
140
  ...n,
138
141
  [e]: t
139
142
  }));
140
- }, U = () => {
141
- if (L(null), !A) {
142
- L("We couldn't find your worker record yet, so profile changes can't be saved. Please try again once your cart owner has added you as a worker.");
143
+ }, G = () => {
144
+ if (z(null), !M) {
145
+ z("We couldn't find your worker record yet, so profile changes can't be saved. Please try again once your cart owner has added you as a worker.");
143
146
  return;
144
147
  }
145
148
  let e = {
146
149
  profile: {
147
- dateOfBirth: R.dateOfBirth,
148
- designation: R.designation,
149
- department: R.department,
150
- workLocation: R.workLocation,
151
- employmentType: R.employmentType,
152
- currentAddress: R.currentAddress,
153
- city: R.city,
154
- state: R.state,
155
- pincode: R.pincode,
156
- permanentAddress: R.permanentAddress,
157
- sameAsCurrent: R.sameAsCurrent,
158
- emergencyContactName: R.emergencyContactName,
159
- emergencyContactPhone: R.emergencyContactPhone,
160
- emergencyContactRelation: R.emergencyContactRelation,
161
- bankName: R.bankName,
162
- ifscCode: R.ifscCode
150
+ dateOfBirth: B.dateOfBirth,
151
+ designation: B.designation,
152
+ department: B.department,
153
+ workLocation: B.workLocation,
154
+ employmentType: B.employmentType,
155
+ currentAddress: B.currentAddress,
156
+ city: B.city,
157
+ state: B.state,
158
+ pincode: B.pincode,
159
+ permanentAddress: B.permanentAddress,
160
+ sameAsCurrent: B.sameAsCurrent,
161
+ emergencyContactName: B.emergencyContactName,
162
+ emergencyContactPhone: B.emergencyContactPhone,
163
+ emergencyContactRelation: B.emergencyContactRelation,
164
+ bankName: B.bankName,
165
+ ifscCode: B.ifscCode
163
166
  },
164
- notificationPrefs: B.reduce((e, t) => (e[t.id] = t.enabled, e), {})
167
+ notificationPrefs: H.reduce((e, t) => (e[t.id] = t.enabled, e), {})
165
168
  };
166
- j.mutate({
167
- id: A.id,
169
+ N.mutate({
170
+ id: M.id,
168
171
  metadata: e
169
172
  }, {
170
- onSuccess: () => F(!1),
171
- onError: (e) => L(e instanceof Error ? e.message : "Failed to save profile.")
173
+ onSuccess: () => L(!1),
174
+ onError: (e) => z(e instanceof Error ? e.message : "Failed to save profile.")
172
175
  });
173
- }, W = j.isPending, G = (e) => {
174
- P && V((t) => t.map((t) => t.id === e ? {
176
+ }, K = N.isPending, q = (e) => {
177
+ I && U((t) => t.map((t) => t.id === e ? {
175
178
  ...t,
176
179
  enabled: !t.enabled
177
180
  } : t));
178
181
  };
179
- return /* @__PURE__ */ T(n, {
182
+ return /* @__PURE__ */ D(n, {
180
183
  title: "My Profile",
181
184
  description: "Manage your profile information",
182
- actions: /* @__PURE__ */ w("div", {
185
+ actions: /* @__PURE__ */ E("div", {
183
186
  className: "flex items-center gap-2",
184
- children: P ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ T("button", {
187
+ children: I ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("button", {
185
188
  type: "button",
186
- onClick: () => F(!1),
189
+ onClick: () => L(!1),
187
190
  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",
188
- children: [/* @__PURE__ */ w(S, { className: "h-4 w-4" }), "Cancel"]
189
- }), /* @__PURE__ */ w("button", {
191
+ children: [/* @__PURE__ */ E(w, { className: "h-4 w-4" }), "Cancel"]
192
+ }), /* @__PURE__ */ E("button", {
190
193
  type: "button",
191
- onClick: U,
192
- disabled: W,
194
+ onClick: G,
195
+ disabled: K,
193
196
  className: "inline-flex items-center gap-2 rounded-md bg-[var(--color-accent-soft)] px-3 py-2 text-sm font-medium text-text-primary hover:bg-[var(--color-accent-soft)] transition-colors disabled:opacity-50",
194
- children: W ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(h, { className: "h-4 w-4 animate-spin" }), "Saving..."] }) : /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(y, { className: "h-4 w-4" }), "Save Changes"] })
195
- })] }) : /* @__PURE__ */ T("button", {
197
+ children: K ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(_, { className: "h-4 w-4 animate-spin" }), "Saving..."] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(x, { className: "h-4 w-4" }), "Save Changes"] })
198
+ })] }) : /* @__PURE__ */ D("button", {
196
199
  type: "button",
197
- onClick: () => F(!0),
200
+ onClick: () => L(!0),
198
201
  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",
199
- children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Edit Profile"]
202
+ children: [/* @__PURE__ */ E(b, { className: "h-4 w-4" }), "Edit Profile"]
200
203
  })
201
204
  }),
202
- children: [/* @__PURE__ */ w(D, {
205
+ children: [/* @__PURE__ */ E(k, {
203
206
  className: "mb-6 max-w-6xl",
204
207
  children: "Your worker profile — the details Kadaikodi and your cart owner rely on. Use this page to keep your personal info, emergency contact, work details and address up to date, and to see your performance stats. Accurate details mean smoother shift assignments, faster payouts and fewer mix-ups. Use Edit Profile to make changes."
205
- }), /* @__PURE__ */ T("div", {
208
+ }), /* @__PURE__ */ D("div", {
206
209
  className: "grid lg:grid-cols-4 gap-6 max-w-6xl",
207
- children: [/* @__PURE__ */ T("div", {
210
+ children: [/* @__PURE__ */ D("div", {
208
211
  className: "lg:col-span-1 space-y-4",
209
- children: [/* @__PURE__ */ T(E, {
212
+ children: [/* @__PURE__ */ D(O, {
210
213
  className: "p-5 text-center",
211
214
  children: [
212
- /* @__PURE__ */ T("div", {
215
+ /* @__PURE__ */ D("div", {
213
216
  className: "relative inline-block",
214
- children: [/* @__PURE__ */ w("div", {
217
+ children: [/* @__PURE__ */ E("div", {
215
218
  className: "h-20 w-20 rounded-full bg-bg-sunken overflow-hidden mx-auto",
216
- children: R.profileImage ? /* @__PURE__ */ w("img", {
217
- src: R.profileImage,
218
- alt: `${R.firstName} ${R.lastName}`,
219
+ children: B.profileImage ? /* @__PURE__ */ E("img", {
220
+ src: B.profileImage,
221
+ alt: `${B.firstName} ${B.lastName}`,
219
222
  className: "h-full w-full object-cover"
220
- }) : /* @__PURE__ */ w("div", {
223
+ }) : /* @__PURE__ */ E("div", {
221
224
  className: "flex h-full w-full items-center justify-center text-text-secondary",
222
- children: /* @__PURE__ */ w(x, { className: "h-10 w-10" })
225
+ children: /* @__PURE__ */ E(C, { className: "h-10 w-10" })
223
226
  })
224
- }), /* @__PURE__ */ w("button", {
227
+ }), /* @__PURE__ */ E("button", {
225
228
  type: "button",
226
- onClick: () => f("/auth/security"),
229
+ onClick: () => m("/auth/security"),
227
230
  title: "Your photo and login details are managed in Account Security",
228
231
  className: "absolute bottom-0 right-0 flex h-7 w-7 items-center justify-center rounded-full bg-[var(--color-accent-soft)] text-text-primary cursor-pointer hover:bg-[var(--color-accent-soft)] transition-colors",
229
- children: /* @__PURE__ */ w(g, { className: "h-3.5 w-3.5" })
232
+ children: /* @__PURE__ */ E(v, { className: "h-3.5 w-3.5" })
230
233
  })]
231
234
  }),
232
- /* @__PURE__ */ w("h3", {
235
+ /* @__PURE__ */ E("h3", {
233
236
  className: "mt-3 text-sm font-semibold text-text-primary",
234
- children: R.firstName || R.lastName ? `${R.firstName} ${R.lastName}`.trim() : "Your profile"
237
+ children: B.firstName || B.lastName ? `${B.firstName} ${B.lastName}`.trim() : "Your profile"
235
238
  }),
236
- R.designation && /* @__PURE__ */ w("p", {
239
+ B.designation && /* @__PURE__ */ E("p", {
237
240
  className: "text-xs text-text-secondary",
238
- children: R.designation
241
+ children: B.designation
239
242
  }),
240
- R.employeeId && /* @__PURE__ */ w("p", {
243
+ B.employeeId && /* @__PURE__ */ E("p", {
241
244
  className: "text-[10px] text-text-secondary mt-0.5",
242
- children: R.employeeId
245
+ children: B.employeeId
243
246
  })
244
247
  ]
245
- }), /* @__PURE__ */ w("div", {
248
+ }), /* @__PURE__ */ E("div", {
246
249
  className: "space-y-1",
247
- children: O.map((e) => {
250
+ children: A.map((e) => {
248
251
  let n = e.icon;
249
- return /* @__PURE__ */ T("button", {
252
+ return /* @__PURE__ */ D("button", {
250
253
  type: "button",
251
- onClick: () => N(e.id),
252
- className: t("w-full flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-medium transition-colors", M === e.id ? "bg-[var(--color-accent-soft)] text-text-primary" : "bg-bg-surface text-text-primary hover:bg-bg-sunken"),
253
- children: [/* @__PURE__ */ w(n, { className: "h-4 w-4" }), e.label]
254
+ onClick: () => F(e.id),
255
+ className: t("w-full flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-medium transition-colors", P === e.id ? "bg-[var(--color-accent-soft)] text-text-primary" : "bg-bg-surface text-text-primary hover:bg-bg-sunken"),
256
+ children: [/* @__PURE__ */ E(n, { className: "h-4 w-4" }), e.label]
254
257
  }, e.id);
255
258
  })
256
259
  })]
257
- }), /* @__PURE__ */ T("div", {
260
+ }), /* @__PURE__ */ D("div", {
258
261
  className: "lg:col-span-3",
259
- children: [I && /* @__PURE__ */ w("div", {
262
+ children: [R && /* @__PURE__ */ E("div", {
260
263
  className: "mb-4 rounded-lg border border-status-error-text/20 bg-status-error-bg-subtle p-3",
261
- children: /* @__PURE__ */ w("p", {
264
+ children: /* @__PURE__ */ E("p", {
262
265
  className: "text-xs text-status-error-text",
263
- children: I
266
+ children: R
264
267
  })
265
- }), /* @__PURE__ */ T("div", {
268
+ }), /* @__PURE__ */ D("div", {
266
269
  className: "rounded-lg border border-border-subtle bg-bg-surface p-6 shadow-sm",
267
270
  children: [
268
- M === "personal" && /* @__PURE__ */ T("div", { children: [
269
- /* @__PURE__ */ T("div", {
271
+ P === "personal" && /* @__PURE__ */ D("div", { children: [
272
+ /* @__PURE__ */ D("div", {
270
273
  className: "flex flex-wrap items-center justify-between gap-2 mb-5",
271
- children: [/* @__PURE__ */ w("h2", {
274
+ children: [/* @__PURE__ */ E("h2", {
272
275
  className: "text-lg font-semibold text-text-primary",
273
276
  children: "Personal Information"
274
- }), /* @__PURE__ */ T("button", {
277
+ }), /* @__PURE__ */ D("button", {
275
278
  type: "button",
276
- onClick: () => f("/auth/security"),
279
+ onClick: () => m("/auth/security"),
277
280
  className: "inline-flex items-center gap-1.5 rounded-md bg-bg-sunken px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
278
- children: [/* @__PURE__ */ w(g, { className: "h-3.5 w-3.5" }), "Manage in Account Security"]
281
+ children: [/* @__PURE__ */ E(v, { className: "h-3.5 w-3.5" }), "Manage in Account Security"]
279
282
  })]
280
283
  }),
281
- /* @__PURE__ */ w("p", {
284
+ /* @__PURE__ */ E("p", {
282
285
  className: "text-xs text-text-secondary mb-4",
283
286
  children: "Your name, email, phone and photo are part of your login identity and are managed in Account Security. The details below on this page are your work profile."
284
287
  }),
285
- /* @__PURE__ */ T("div", {
288
+ /* @__PURE__ */ D("div", {
286
289
  className: "grid sm:grid-cols-2 gap-4",
287
290
  children: [
288
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
291
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
289
292
  className: "block text-xs font-medium text-text-secondary mb-1",
290
293
  children: "First Name"
291
- }), /* @__PURE__ */ w("input", {
294
+ }), /* @__PURE__ */ E("input", {
292
295
  type: "text",
293
- value: R.firstName,
296
+ value: B.firstName,
294
297
  readOnly: !0,
295
298
  disabled: !0,
296
299
  className: "w-full rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
297
300
  })] }),
298
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
301
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
299
302
  className: "block text-xs font-medium text-text-secondary mb-1",
300
303
  children: "Last Name"
301
- }), /* @__PURE__ */ w("input", {
304
+ }), /* @__PURE__ */ E("input", {
302
305
  type: "text",
303
- value: R.lastName,
306
+ value: B.lastName,
304
307
  readOnly: !0,
305
308
  disabled: !0,
306
309
  className: "w-full rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
307
310
  })] }),
308
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
311
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
309
312
  className: "block text-xs font-medium text-text-secondary mb-1",
310
313
  children: "Email Address"
311
- }), /* @__PURE__ */ w("input", {
314
+ }), /* @__PURE__ */ E("input", {
312
315
  type: "email",
313
- value: R.email,
316
+ value: B.email,
314
317
  readOnly: !0,
315
318
  disabled: !0,
316
319
  className: "w-full rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
317
320
  })] }),
318
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
321
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
319
322
  className: "block text-xs font-medium text-text-secondary mb-1",
320
323
  children: "Phone Number"
321
- }), /* @__PURE__ */ w("input", {
324
+ }), /* @__PURE__ */ E("input", {
322
325
  type: "text",
323
- value: R.phone,
326
+ value: B.phone,
324
327
  readOnly: !0,
325
328
  disabled: !0,
326
329
  className: "w-full rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
327
330
  })] }),
328
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
331
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
329
332
  className: "block text-xs font-medium text-text-secondary mb-1",
330
333
  children: "Date of Birth"
331
- }), /* @__PURE__ */ w("input", {
334
+ }), /* @__PURE__ */ E("input", {
332
335
  type: "date",
333
- value: R.dateOfBirth,
334
- onChange: (e) => H("dateOfBirth", e.target.value),
335
- disabled: !P,
336
+ value: B.dateOfBirth,
337
+ onChange: (e) => W("dateOfBirth", e.target.value),
338
+ disabled: !I,
336
339
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
337
340
  })] })
338
341
  ]
339
342
  }),
340
- /* @__PURE__ */ T("div", {
343
+ /* @__PURE__ */ D("div", {
341
344
  className: "mt-7",
342
- children: [/* @__PURE__ */ w("h3", {
345
+ children: [/* @__PURE__ */ E("h3", {
343
346
  className: "text-sm font-semibold text-text-primary mb-4",
344
347
  children: "Emergency Contact"
345
- }), /* @__PURE__ */ T("div", {
348
+ }), /* @__PURE__ */ D("div", {
346
349
  className: "grid sm:grid-cols-3 gap-4",
347
350
  children: [
348
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
351
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
349
352
  className: "block text-xs font-medium text-text-secondary mb-1",
350
353
  children: "Contact Name"
351
- }), /* @__PURE__ */ w("input", {
354
+ }), /* @__PURE__ */ E("input", {
352
355
  type: "text",
353
- value: R.emergencyContactName,
354
- onChange: (e) => H("emergencyContactName", e.target.value),
355
- disabled: !P,
356
+ value: B.emergencyContactName,
357
+ onChange: (e) => W("emergencyContactName", e.target.value),
358
+ disabled: !I,
356
359
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
357
360
  })] }),
358
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
361
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
359
362
  className: "block text-xs font-medium text-text-secondary mb-1",
360
363
  children: "Contact Phone"
361
- }), /* @__PURE__ */ w("input", {
364
+ }), /* @__PURE__ */ E("input", {
362
365
  type: "text",
363
- value: R.emergencyContactPhone,
364
- onChange: (e) => H("emergencyContactPhone", e.target.value),
365
- disabled: !P,
366
+ value: B.emergencyContactPhone,
367
+ onChange: (e) => W("emergencyContactPhone", e.target.value),
368
+ disabled: !I,
366
369
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
367
370
  })] }),
368
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
371
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
369
372
  className: "block text-xs font-medium text-text-secondary mb-1",
370
373
  children: "Relationship"
371
- }), /* @__PURE__ */ w("input", {
374
+ }), /* @__PURE__ */ E("input", {
372
375
  type: "text",
373
- value: R.emergencyContactRelation,
374
- onChange: (e) => H("emergencyContactRelation", e.target.value),
375
- disabled: !P,
376
+ value: B.emergencyContactRelation,
377
+ onChange: (e) => W("emergencyContactRelation", e.target.value),
378
+ disabled: !I,
376
379
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
377
380
  })] })
378
381
  ]
379
382
  })]
380
383
  })
381
384
  ] }),
382
- M === "work" && /* @__PURE__ */ T("div", { children: [
383
- /* @__PURE__ */ w("h2", {
385
+ P === "work" && /* @__PURE__ */ D("div", { children: [
386
+ /* @__PURE__ */ E("h2", {
384
387
  className: "text-lg font-semibold text-text-primary mb-5",
385
388
  children: "Work Details"
386
389
  }),
387
- /* @__PURE__ */ T("div", {
390
+ /* @__PURE__ */ D("div", {
388
391
  className: "grid sm:grid-cols-2 gap-4",
389
392
  children: [
390
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
393
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
391
394
  className: "block text-xs font-medium text-text-secondary mb-1",
392
395
  children: "Employee ID"
393
- }), /* @__PURE__ */ w("input", {
396
+ }), /* @__PURE__ */ E("input", {
394
397
  type: "text",
395
- value: R.employeeId,
398
+ value: B.employeeId,
396
399
  disabled: !0,
397
400
  placeholder: "Assigned by Kadaikodi",
398
401
  className: "w-full rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary cursor-not-allowed"
399
402
  })] }),
400
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
403
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
401
404
  className: "block text-xs font-medium text-text-secondary mb-1",
402
405
  children: "Designation"
403
- }), /* @__PURE__ */ w("input", {
406
+ }), /* @__PURE__ */ E("input", {
404
407
  type: "text",
405
- value: R.designation,
406
- onChange: (e) => H("designation", e.target.value),
407
- disabled: !P,
408
+ value: B.designation,
409
+ onChange: (e) => W("designation", e.target.value),
410
+ disabled: !I,
408
411
  placeholder: "e.g. Delivery Executive",
409
412
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
410
413
  })] }),
411
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
414
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
412
415
  className: "block text-xs font-medium text-text-secondary mb-1",
413
416
  children: "Department"
414
- }), /* @__PURE__ */ w("input", {
417
+ }), /* @__PURE__ */ E("input", {
415
418
  type: "text",
416
- value: R.department,
417
- onChange: (e) => H("department", e.target.value),
418
- disabled: !P,
419
+ value: B.department,
420
+ onChange: (e) => W("department", e.target.value),
421
+ disabled: !I,
419
422
  placeholder: "e.g. Operations",
420
423
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
421
424
  })] }),
422
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
425
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
423
426
  className: "block text-xs font-medium text-text-secondary mb-1",
424
427
  children: "Work Location"
425
- }), /* @__PURE__ */ w("input", {
428
+ }), /* @__PURE__ */ E("input", {
426
429
  type: "text",
427
- value: R.workLocation,
428
- onChange: (e) => H("workLocation", e.target.value),
429
- disabled: !P,
430
+ value: B.workLocation,
431
+ onChange: (e) => W("workLocation", e.target.value),
432
+ disabled: !I,
430
433
  placeholder: "Your primary work area",
431
434
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
432
435
  })] }),
433
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
436
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
434
437
  className: "block text-xs font-medium text-text-secondary mb-1",
435
438
  children: "Joining Date"
436
- }), /* @__PURE__ */ w("input", {
439
+ }), /* @__PURE__ */ E("input", {
437
440
  type: "date",
438
- value: R.joiningDate,
441
+ value: B.joiningDate,
439
442
  disabled: !0,
440
443
  className: "w-full rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-primary cursor-not-allowed"
441
444
  })] }),
442
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
445
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
443
446
  className: "block text-xs font-medium text-text-secondary mb-1",
444
447
  children: "Employment Type"
445
- }), /* @__PURE__ */ w("input", {
448
+ }), /* @__PURE__ */ E("input", {
446
449
  type: "text",
447
- value: R.employmentType,
448
- onChange: (e) => H("employmentType", e.target.value),
449
- disabled: !P,
450
+ value: B.employmentType,
451
+ onChange: (e) => W("employmentType", e.target.value),
452
+ disabled: !I,
450
453
  placeholder: "e.g. Full Time",
451
454
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
452
455
  })] })
453
456
  ]
454
457
  }),
455
- /* @__PURE__ */ T("div", {
458
+ /* @__PURE__ */ D("div", {
456
459
  className: "mt-7 grid sm:grid-cols-3 gap-4",
457
460
  children: [
458
- /* @__PURE__ */ T("div", {
461
+ /* @__PURE__ */ D("div", {
459
462
  className: "rounded-lg bg-bg-sunken/50 p-4 text-center",
460
- children: [/* @__PURE__ */ w("p", {
463
+ children: [/* @__PURE__ */ E("p", {
461
464
  className: "text-2xl font-bold text-text-primary",
462
- children: m?.totalDeliveries ?? 0
463
- }), /* @__PURE__ */ w("p", {
465
+ children: g?.totalDeliveries ?? 0
466
+ }), /* @__PURE__ */ E("p", {
464
467
  className: "text-xs text-text-secondary",
465
468
  children: "Total Deliveries"
466
469
  })]
467
470
  }),
468
- /* @__PURE__ */ T("div", {
471
+ /* @__PURE__ */ D("div", {
469
472
  className: "rounded-lg bg-bg-sunken/50 p-4 text-center",
470
- children: [/* @__PURE__ */ w("p", {
473
+ children: [/* @__PURE__ */ E("p", {
471
474
  className: "text-2xl font-bold text-status-success-text",
472
- children: m?.averageRating ?? 0
473
- }), /* @__PURE__ */ w("p", {
475
+ children: g?.averageRating ?? 0
476
+ }), /* @__PURE__ */ E("p", {
474
477
  className: "text-xs text-text-secondary",
475
478
  children: "Average Rating"
476
479
  })]
477
480
  }),
478
- /* @__PURE__ */ T("div", {
481
+ /* @__PURE__ */ D("div", {
479
482
  className: "rounded-lg bg-bg-sunken/50 p-4 text-center",
480
- children: [/* @__PURE__ */ T("p", {
483
+ children: [/* @__PURE__ */ D("p", {
481
484
  className: "text-2xl font-bold text-text-primary",
482
- children: [m?.completionRate ?? 0, "%"]
483
- }), /* @__PURE__ */ w("p", {
485
+ children: [g?.completionRate ?? 0, "%"]
486
+ }), /* @__PURE__ */ E("p", {
484
487
  className: "text-xs text-text-secondary",
485
488
  children: "On-Time Delivery"
486
489
  })]
@@ -488,229 +491,230 @@ var O = [
488
491
  ]
489
492
  })
490
493
  ] }),
491
- M === "address" && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h2", {
494
+ P === "address" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
492
495
  className: "text-lg font-semibold text-text-primary mb-5",
493
496
  children: "Address Information"
494
- }), /* @__PURE__ */ T("div", {
497
+ }), /* @__PURE__ */ D("div", {
495
498
  className: "space-y-6",
496
- children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h3", {
499
+ children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h3", {
497
500
  className: "text-sm font-semibold text-text-primary mb-3",
498
501
  children: "Current Address"
499
- }), /* @__PURE__ */ T("div", {
502
+ }), /* @__PURE__ */ D("div", {
500
503
  className: "grid sm:grid-cols-2 gap-4",
501
504
  children: [
502
- /* @__PURE__ */ T("div", {
505
+ /* @__PURE__ */ D("div", {
503
506
  className: "sm:col-span-2",
504
- children: [/* @__PURE__ */ w("label", {
507
+ children: [/* @__PURE__ */ E("label", {
505
508
  className: "block text-xs font-medium text-text-secondary mb-1",
506
509
  children: "Address Line"
507
- }), /* @__PURE__ */ w("textarea", {
510
+ }), /* @__PURE__ */ E("textarea", {
508
511
  rows: 2,
509
- value: R.currentAddress,
510
- onChange: (e) => H("currentAddress", e.target.value),
511
- disabled: !P,
512
+ value: B.currentAddress,
513
+ onChange: (e) => W("currentAddress", e.target.value),
514
+ disabled: !I,
512
515
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40 resize-none"
513
516
  })]
514
517
  }),
515
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
518
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
516
519
  className: "block text-xs font-medium text-text-secondary mb-1",
517
520
  children: "City"
518
- }), /* @__PURE__ */ w("input", {
521
+ }), /* @__PURE__ */ E("input", {
519
522
  type: "text",
520
- value: R.city,
521
- onChange: (e) => H("city", e.target.value),
522
- disabled: !P,
523
+ value: B.city,
524
+ onChange: (e) => W("city", e.target.value),
525
+ disabled: !I,
523
526
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
524
527
  })] }),
525
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
528
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
526
529
  className: "block text-xs font-medium text-text-secondary mb-1",
527
530
  children: "State"
528
- }), /* @__PURE__ */ w("input", {
531
+ }), /* @__PURE__ */ E("input", {
529
532
  type: "text",
530
- value: R.state,
531
- onChange: (e) => H("state", e.target.value),
532
- disabled: !P,
533
+ value: B.state,
534
+ onChange: (e) => W("state", e.target.value),
535
+ disabled: !I,
533
536
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
534
537
  })] }),
535
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
538
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
536
539
  className: "block text-xs font-medium text-text-secondary mb-1",
537
540
  children: "Pincode"
538
- }), /* @__PURE__ */ w("input", {
541
+ }), /* @__PURE__ */ E("input", {
539
542
  type: "text",
540
- value: R.pincode,
541
- onChange: (e) => H("pincode", e.target.value),
542
- disabled: !P,
543
+ value: B.pincode,
544
+ onChange: (e) => W("pincode", e.target.value),
545
+ disabled: !I,
543
546
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
544
547
  })] })
545
548
  ]
546
- })] }), /* @__PURE__ */ T("div", { children: [
547
- /* @__PURE__ */ w("h3", {
549
+ })] }), /* @__PURE__ */ D("div", { children: [
550
+ /* @__PURE__ */ E("h3", {
548
551
  className: "text-sm font-semibold text-text-primary mb-3",
549
552
  children: "Permanent Address"
550
553
  }),
551
- /* @__PURE__ */ T("label", {
554
+ /* @__PURE__ */ D("label", {
552
555
  className: "flex items-center gap-2 mb-3 cursor-pointer",
553
- children: [/* @__PURE__ */ w("input", {
556
+ children: [/* @__PURE__ */ E("input", {
554
557
  type: "checkbox",
555
- checked: R.sameAsCurrent,
556
- onChange: (e) => H("sameAsCurrent", e.target.checked),
557
- disabled: !P,
558
+ checked: B.sameAsCurrent,
559
+ onChange: (e) => W("sameAsCurrent", e.target.checked),
560
+ disabled: !I,
558
561
  className: "h-4 w-4 rounded border-border-subtle text-text-primary focus:ring-border-focus/40"
559
- }), /* @__PURE__ */ w("span", {
562
+ }), /* @__PURE__ */ E("span", {
560
563
  className: "text-xs text-text-primary",
561
564
  children: "Same as current address"
562
565
  })]
563
566
  }),
564
- !R.sameAsCurrent && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
567
+ !B.sameAsCurrent && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
565
568
  className: "block text-xs font-medium text-text-secondary mb-1",
566
569
  children: "Address Line"
567
- }), /* @__PURE__ */ w("textarea", {
570
+ }), /* @__PURE__ */ E("textarea", {
568
571
  rows: 2,
569
- value: R.permanentAddress,
570
- onChange: (e) => H("permanentAddress", e.target.value),
571
- disabled: !P,
572
+ value: B.permanentAddress,
573
+ onChange: (e) => W("permanentAddress", e.target.value),
574
+ disabled: !I,
572
575
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40 resize-none"
573
576
  })] })
574
577
  ] })]
575
578
  })] }),
576
- M === "documents" && /* @__PURE__ */ T("div", { children: [
577
- /* @__PURE__ */ w("h2", {
579
+ P === "documents" && /* @__PURE__ */ D("div", { children: [
580
+ /* @__PURE__ */ E("h2", {
578
581
  className: "text-lg font-semibold text-text-primary mb-5",
579
582
  children: "Documents & Banking"
580
583
  }),
581
- /* @__PURE__ */ w("div", {
584
+ /* @__PURE__ */ E("div", {
582
585
  className: "rounded-lg bg-status-warning-bg-subtle border border-status-warning-text/20 p-3 mb-5",
583
- children: /* @__PURE__ */ T("p", {
586
+ children: /* @__PURE__ */ D("p", {
584
587
  className: "text-xs text-status-warning-text flex items-center gap-2",
585
- children: [/* @__PURE__ */ w(b, { className: "h-4 w-4 shrink-0" }), "Your documents and banking information are encrypted and secure."]
588
+ children: [/* @__PURE__ */ E(S, { className: "h-4 w-4 shrink-0" }), "Your documents and banking information are encrypted and secure."]
586
589
  })
587
590
  }),
588
- /* @__PURE__ */ T("div", {
591
+ /* @__PURE__ */ D("div", {
589
592
  className: "grid sm:grid-cols-2 gap-4",
590
593
  children: [
591
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
594
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
592
595
  className: "block text-xs font-medium text-text-secondary mb-1",
593
596
  children: "PAN Number"
594
- }), /* @__PURE__ */ w("input", {
597
+ }), /* @__PURE__ */ E("input", {
595
598
  type: "text",
596
- value: R.panNumber,
599
+ value: B.panNumber,
597
600
  disabled: !0,
598
601
  placeholder: "Not on file",
599
602
  className: "w-full rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary cursor-not-allowed"
600
603
  })] }),
601
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
604
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
602
605
  className: "block text-xs font-medium text-text-secondary mb-1",
603
606
  children: "Aadhar Number"
604
- }), /* @__PURE__ */ w("input", {
607
+ }), /* @__PURE__ */ E("input", {
605
608
  type: "text",
606
- value: R.aadharNumber,
609
+ value: B.aadharNumber,
607
610
  disabled: !0,
608
611
  placeholder: "Not on file",
609
612
  className: "w-full rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary cursor-not-allowed"
610
613
  })] }),
611
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
614
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
612
615
  className: "block text-xs font-medium text-text-secondary mb-1",
613
616
  children: "Bank Name"
614
- }), /* @__PURE__ */ w("input", {
617
+ }), /* @__PURE__ */ E("input", {
615
618
  type: "text",
616
- value: R.bankName,
617
- onChange: (e) => H("bankName", e.target.value),
618
- disabled: !P,
619
+ value: B.bankName,
620
+ onChange: (e) => W("bankName", e.target.value),
621
+ disabled: !I,
619
622
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
620
623
  })] }),
621
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
624
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
622
625
  className: "block text-xs font-medium text-text-secondary mb-1",
623
626
  children: "Account Number"
624
- }), /* @__PURE__ */ w("input", {
627
+ }), /* @__PURE__ */ E("input", {
625
628
  type: "text",
626
- value: R.accountNumber,
629
+ value: B.accountNumber,
627
630
  disabled: !0,
628
631
  placeholder: "Not on file",
629
632
  className: "w-full rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary cursor-not-allowed"
630
633
  })] }),
631
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
634
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
632
635
  className: "block text-xs font-medium text-text-secondary mb-1",
633
636
  children: "IFSC Code"
634
- }), /* @__PURE__ */ w("input", {
637
+ }), /* @__PURE__ */ E("input", {
635
638
  type: "text",
636
- value: R.ifscCode,
637
- onChange: (e) => H("ifscCode", e.target.value),
638
- disabled: !P,
639
+ value: B.ifscCode,
640
+ onChange: (e) => W("ifscCode", e.target.value),
641
+ disabled: !I,
639
642
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-border-focus/40"
640
643
  })] })
641
644
  ]
642
645
  })
643
646
  ] }),
644
- M === "achievements" && /* @__PURE__ */ T("div", { children: [
645
- /* @__PURE__ */ w("h2", {
647
+ P === "achievements" && /* @__PURE__ */ D("div", { children: [
648
+ /* @__PURE__ */ E("h2", {
646
649
  className: "text-lg font-semibold text-text-primary mb-5",
647
650
  children: "Achievements & Recognition"
648
651
  }),
649
- /* @__PURE__ */ T("div", {
652
+ /* @__PURE__ */ D("div", {
650
653
  className: "mb-7",
651
- children: [/* @__PURE__ */ w("h3", {
654
+ children: [/* @__PURE__ */ E("h3", {
652
655
  className: "text-sm font-semibold text-text-primary mb-4",
653
656
  children: "Performance Metrics"
654
- }), /* @__PURE__ */ T("div", {
655
- className: "space-y-4",
656
- children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("div", {
657
- className: "flex justify-between items-center mb-1.5",
658
- children: [/* @__PURE__ */ w("span", {
659
- className: "text-xs text-text-secondary",
657
+ }), /* @__PURE__ */ D("div", {
658
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
659
+ children: [/* @__PURE__ */ D("div", {
660
+ className: "flex flex-col items-center rounded-lg border border-border-subtle bg-bg-surface p-5 text-center shadow-sm",
661
+ children: [/* @__PURE__ */ E(c, {
662
+ value: g?.completionRate ?? 0,
663
+ max: 100,
664
+ label: `${g?.completionRate ?? 0}%`,
665
+ caption: "on-time",
666
+ size: 116
667
+ }), /* @__PURE__ */ E("p", {
668
+ className: "mt-3 text-xs text-text-secondary",
660
669
  children: "On-Time Completion Rate"
661
- }), /* @__PURE__ */ T("span", {
662
- className: "text-xs font-medium text-text-primary",
663
- children: [m?.completionRate ?? 0, "%"]
664
- })]
665
- }), /* @__PURE__ */ w("div", {
666
- className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
667
- children: /* @__PURE__ */ w("div", {
668
- className: "h-full rounded-full bg-status-success-text transition-all",
669
- style: { width: `${m?.completionRate ?? 0}%` }
670
- })
671
- })] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("div", {
672
- className: "flex justify-between items-center mb-1.5",
673
- children: [/* @__PURE__ */ w("span", {
674
- className: "text-xs text-text-secondary",
675
- children: "Average Customer Rating"
676
- }), /* @__PURE__ */ T("span", {
677
- className: "text-xs font-medium text-text-primary",
678
- children: [m?.averageRating ?? 0, "/5"]
679
670
  })]
680
- }), /* @__PURE__ */ w("div", {
681
- className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
682
- children: /* @__PURE__ */ w("div", {
683
- className: "h-full rounded-full bg-action-primary-bg transition-all",
684
- style: { width: `${(m?.averageRating ?? 0) / 5 * 100}%` }
685
- })
686
- })] })]
671
+ }), /* @__PURE__ */ D("div", {
672
+ className: "flex flex-col items-center justify-center rounded-lg border border-border-subtle bg-bg-surface p-5 text-center shadow-sm",
673
+ children: [
674
+ /* @__PURE__ */ E("p", {
675
+ className: "text-4xl font-bold text-text-primary tabular-nums",
676
+ children: (g?.averageRating ?? 0).toFixed(1)
677
+ }),
678
+ /* @__PURE__ */ E("div", {
679
+ className: "mt-2",
680
+ children: /* @__PURE__ */ E(l, {
681
+ value: g?.averageRating ?? 0,
682
+ size: 20
683
+ })
684
+ }),
685
+ /* @__PURE__ */ E("p", {
686
+ className: "mt-3 text-xs text-text-secondary",
687
+ children: "Average Customer Rating"
688
+ })
689
+ ]
690
+ })]
687
691
  })]
688
692
  }),
689
- /* @__PURE__ */ w(r, {
690
- icon: /* @__PURE__ */ w(d, { className: "h-12 w-12" }),
693
+ /* @__PURE__ */ E(r, {
694
+ icon: /* @__PURE__ */ E(p, { className: "h-12 w-12" }),
691
695
  title: "No badges yet",
692
696
  description: "Earn recognition as you complete deliveries and hit milestones. Achievement badges are coming soon."
693
697
  })
694
698
  ] }),
695
- M === "notifications" && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h2", {
699
+ P === "notifications" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
696
700
  className: "text-lg font-semibold text-text-primary mb-5",
697
701
  children: "Notification Preferences"
698
- }), /* @__PURE__ */ w("div", {
702
+ }), /* @__PURE__ */ E("div", {
699
703
  className: "space-y-4",
700
- children: B.map((e) => /* @__PURE__ */ T("div", {
704
+ children: H.map((e) => /* @__PURE__ */ D("div", {
701
705
  className: "flex items-center justify-between p-4 rounded-lg bg-bg-sunken/50",
702
- children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h4", {
706
+ children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h4", {
703
707
  className: "text-sm font-medium text-text-primary",
704
708
  children: e.label
705
- }), /* @__PURE__ */ w("p", {
709
+ }), /* @__PURE__ */ E("p", {
706
710
  className: "text-xs text-text-secondary mt-0.5",
707
711
  children: e.description
708
- })] }), /* @__PURE__ */ w("button", {
712
+ })] }), /* @__PURE__ */ E("button", {
709
713
  type: "button",
710
- onClick: () => G(e.id),
711
- disabled: !P,
712
- className: t("relative inline-flex h-6 w-11 items-center rounded-full transition-colors", e.enabled ? "bg-action-primary-bg" : "bg-muted-foreground/30", !P && "opacity-60 cursor-not-allowed"),
713
- children: /* @__PURE__ */ w("span", { className: t("inline-block h-4 w-4 rounded-full bg-white transition-transform", e.enabled ? "translate-x-6" : "translate-x-1") })
714
+ onClick: () => q(e.id),
715
+ disabled: !I,
716
+ className: t("relative inline-flex h-6 w-11 items-center rounded-full transition-colors", e.enabled ? "bg-action-primary-bg" : "bg-muted-foreground/30", !I && "opacity-60 cursor-not-allowed"),
717
+ children: /* @__PURE__ */ E("span", { className: t("inline-block h-4 w-4 rounded-full bg-white transition-transform", e.enabled ? "translate-x-6" : "translate-x-1") })
714
718
  })]
715
719
  }, e.id))
716
720
  })] })
@@ -721,6 +725,6 @@ var O = [
721
725
  });
722
726
  };
723
727
  //#endregion
724
- export { k as WorkerProfilePage };
728
+ export { j as WorkerProfilePage };
725
729
 
726
730
  //# sourceMappingURL=WorkerProfilePage.js.map