@erpsquad/common 1.8.47 → 1.8.49

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 (646) hide show
  1. package/dist/_virtual/index/index.esm10.js +3 -3
  2. package/dist/_virtual/index/index.esm11.js +3 -3
  3. package/dist/_virtual/index/index.esm2.js +2 -2
  4. package/dist/_virtual/index/index.esm3.js +2 -2
  5. package/dist/_virtual/index/index.esm4.js +1 -1
  6. package/dist/_virtual/index/index.esm5.js +3 -3
  7. package/dist/_virtual/index/index.esm6.js +3 -3
  8. package/dist/_virtual/index/index.esm7.js +3 -3
  9. package/dist/_virtual/index/index.esm8.js +3 -3
  10. package/dist/_virtual/index/index.esm9.js +3 -3
  11. package/dist/_virtual/index/index10.js +1 -1
  12. package/dist/_virtual/index/index11.js +1 -1
  13. package/dist/_virtual/index/index4.js +1 -1
  14. package/dist/_virtual/index/index5.js +1 -1
  15. package/dist/_virtual/index/index6.js +1 -1
  16. package/dist/_virtual/index/index7.js +1 -1
  17. package/dist/_virtual/index/index8.js +1 -1
  18. package/dist/_virtual/index/index9.js +1 -1
  19. package/dist/components/activity-tag/activity-tag/index.esm.js +154 -0
  20. package/dist/components/activity-tag/activity-tag/index.esm.js.map +1 -0
  21. package/dist/components/activity-tag/activity-tag/index.js +15 -0
  22. package/dist/components/activity-tag/activity-tag/index.js.map +1 -0
  23. package/dist/components/activityLog/activity-log/index.esm.js +104 -0
  24. package/dist/components/activityLog/activity-log/index.esm.js.map +1 -0
  25. package/dist/components/activityLog/activity-log/index.js +14 -0
  26. package/dist/components/activityLog/activity-log/index.js.map +1 -0
  27. package/dist/components/charts/bar-chart/bar-chart/index.esm.js +86 -0
  28. package/dist/components/charts/bar-chart/bar-chart/index.esm.js.map +1 -0
  29. package/dist/components/charts/bar-chart/bar-chart/index.js +2 -0
  30. package/dist/components/charts/bar-chart/bar-chart/index.js.map +1 -0
  31. package/dist/components/charts/barChart/barChart/index.esm.js +148 -0
  32. package/dist/components/charts/barChart/barChart/index.esm.js.map +1 -0
  33. package/dist/components/charts/barChart/barChart/index.js +2 -0
  34. package/dist/components/charts/barChart/barChart/index.js.map +1 -0
  35. package/dist/components/charts/donut-chart/donut-chart/index.esm.js +86 -0
  36. package/dist/components/charts/donut-chart/donut-chart/index.esm.js.map +1 -0
  37. package/dist/components/charts/donut-chart/donut-chart/index.js +6 -0
  38. package/dist/components/charts/donut-chart/donut-chart/index.js.map +1 -0
  39. package/dist/components/charts/donut-chart/donut-chart.d.ts +1 -2
  40. package/dist/components/charts/donutChart/DonutChart/index.esm.js +97 -0
  41. package/dist/components/charts/donutChart/DonutChart/index.esm.js.map +1 -0
  42. package/dist/components/charts/donutChart/DonutChart/index.js +5 -0
  43. package/dist/components/charts/donutChart/DonutChart/index.js.map +1 -0
  44. package/dist/components/charts/index.d.ts +8 -0
  45. package/dist/components/confirm-modal/confirm-modal/index.esm.js.map +1 -1
  46. package/dist/components/confirm-modal/confirm-modal/index.js.map +1 -1
  47. package/dist/components/confirm-modal/confirm-modal.d.ts +1 -2
  48. package/dist/components/confirm-modal/index.d.ts +1 -0
  49. package/dist/components/editor/custom-editor/index.esm.js +96 -67
  50. package/dist/components/editor/custom-editor/index.esm.js.map +1 -1
  51. package/dist/components/editor/custom-editor/index.js +3 -3
  52. package/dist/components/editor/custom-editor/index.js.map +1 -1
  53. package/dist/components/editor/custom-editor.d.ts +12 -8
  54. package/dist/components/footer/footer/index.esm.js +1 -1
  55. package/dist/components/footer/footer/index.js +2 -2
  56. package/dist/components/footer/footer/index.js.map +1 -1
  57. package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
  58. package/dist/components/form-control/form-parser/form-parser/index.js +4 -4
  59. package/dist/components/form-control/form-parser/form-parser/index.js.map +1 -1
  60. package/dist/components/grid/grid-card/grid-card/index.esm.js +4 -2
  61. package/dist/components/grid/grid-card/grid-card/index.esm.js.map +1 -1
  62. package/dist/components/grid/grid-card/grid-card/index.js +10 -11
  63. package/dist/components/grid/grid-card/grid-card/index.js.map +1 -1
  64. package/dist/components/grid/grid-card/grid-card.d.ts +10 -1
  65. package/dist/components/header/redux/reducer/index.esm.js +1 -6
  66. package/dist/components/header/redux/reducer/index.esm.js.map +1 -1
  67. package/dist/components/header/redux/reducer/index.js +1 -1
  68. package/dist/components/header/redux/reducer/index.js.map +1 -1
  69. package/dist/components/index.d.ts +386 -101
  70. package/dist/components/index.esm.js +447 -254
  71. package/dist/components/index.esm.js.map +1 -1
  72. package/dist/components/index.js +1 -1
  73. package/dist/components/inventory-reports-title-bar/component/reportFilter.d.ts +3 -2
  74. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
  75. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
  76. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js.map +1 -1
  77. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +0 -2
  78. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js.map +1 -1
  79. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
  80. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js.map +1 -1
  81. package/dist/components/list/list/index.esm.js +3 -2
  82. package/dist/components/list/list/index.esm.js.map +1 -1
  83. package/dist/components/list/list/index.js +2 -2
  84. package/dist/components/list/list/index.js.map +1 -1
  85. package/dist/components/list/list.d.ts +2 -1
  86. package/dist/components/listing/listing/index.esm.js +1 -1
  87. package/dist/components/listing/listing/index.js +1 -1
  88. package/dist/components/listing/listing/index.js.map +1 -1
  89. package/dist/components/module-button/module-button/index.esm.js +3 -2
  90. package/dist/components/module-button/module-button/index.esm.js.map +1 -1
  91. package/dist/components/module-button/module-button/index.js +4 -4
  92. package/dist/components/module-button/module-button/index.js.map +1 -1
  93. package/dist/components/module-button/module-button.d.ts +10 -1
  94. package/dist/components/mulitline/multiline/index.esm.js +3 -2
  95. package/dist/components/mulitline/multiline/index.esm.js.map +1 -1
  96. package/dist/components/mulitline/multiline/index.js +9 -9
  97. package/dist/components/mulitline/multiline/index.js.map +1 -1
  98. package/dist/components/mulitline/multiline.d.ts +2 -2
  99. package/dist/components/page-navigator/page-navigator/index.esm.js +4 -3
  100. package/dist/components/page-navigator/page-navigator/index.esm.js.map +1 -1
  101. package/dist/components/page-navigator/page-navigator/index.js +5 -5
  102. package/dist/components/page-navigator/page-navigator/index.js.map +1 -1
  103. package/dist/components/page-navigator/page-navigator.d.ts +3 -3
  104. package/dist/components/parties-modal/parties-modal/index.esm.js +4 -3
  105. package/dist/components/parties-modal/parties-modal/index.esm.js.map +1 -1
  106. package/dist/components/parties-modal/parties-modal/index.js +13 -13
  107. package/dist/components/parties-modal/parties-modal/index.js.map +1 -1
  108. package/dist/components/parties-modal/parties-modal.d.ts +3 -3
  109. package/dist/components/reports-title-bar/redux/reducer/index.esm.js +0 -2
  110. package/dist/components/reports-title-bar/redux/reducer/index.esm.js.map +1 -1
  111. package/dist/components/reports-title-bar/redux/reducer/index.js +1 -1
  112. package/dist/components/reports-title-bar/redux/reducer/index.js.map +1 -1
  113. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
  114. package/dist/components/reports-title-bar/reports-title-bar/index.js +1 -1
  115. package/dist/components/reports-title-bar/reports-title-bar/index.js.map +1 -1
  116. package/dist/components/rfq-response/item-response-details/index.esm.js +40 -48
  117. package/dist/components/rfq-response/item-response-details/index.esm.js.map +1 -1
  118. package/dist/components/rfq-response/item-response-details/index.js +4 -4
  119. package/dist/components/rfq-response/item-response-details/index.js.map +1 -1
  120. package/dist/components/rfq-response/item-response-details.d.ts +2 -1
  121. package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
  122. package/dist/components/share-modal/redux/reducer/index.esm.js +0 -2
  123. package/dist/components/share-modal/redux/reducer/index.esm.js.map +1 -1
  124. package/dist/components/share-modal/redux/reducer/index.js +1 -1
  125. package/dist/components/share-modal/redux/reducer/index.js.map +1 -1
  126. package/dist/components/tab-bar-ui/tab-bar-ui/index.esm.js +4 -10
  127. package/dist/components/tab-bar-ui/tab-bar-ui/index.esm.js.map +1 -1
  128. package/dist/components/tab-bar-ui/tab-bar-ui/index.js +3 -3
  129. package/dist/components/tab-bar-ui/tab-bar-ui/index.js.map +1 -1
  130. package/dist/components/tab-bar-ui/tab-bar-ui.d.ts +3 -3
  131. package/dist/components/tabs/tabs/index.esm.js +3 -2
  132. package/dist/components/tabs/tabs/index.esm.js.map +1 -1
  133. package/dist/components/tabs/tabs/index.js +3 -3
  134. package/dist/components/tabs/tabs/index.js.map +1 -1
  135. package/dist/components/tabs/tabs.d.ts +2 -2
  136. package/dist/hooks/index.esm.js +4 -4
  137. package/dist/hooks/index.js +1 -1
  138. package/dist/hooks/use-translations/index.esm.js +4 -3
  139. package/dist/hooks/use-translations/index.esm.js.map +1 -1
  140. package/dist/hooks/use-translations/index.js +1 -1
  141. package/dist/hooks/use-translations/index.js.map +1 -1
  142. package/dist/hooks/use-translations.d.ts +2 -1
  143. package/dist/hooks/useCheckSkuAndName/index.esm.js +5 -4
  144. package/dist/hooks/useCheckSkuAndName/index.esm.js.map +1 -1
  145. package/dist/hooks/useCheckSkuAndName/index.js +1 -1
  146. package/dist/hooks/useCheckSkuAndName/index.js.map +1 -1
  147. package/dist/hooks/useCheckSkuAndName.d.ts +4 -2
  148. package/dist/index.esm.js +528 -315
  149. package/dist/index.esm.js.map +1 -1
  150. package/dist/index.js +1 -1
  151. package/dist/layout/fullScreen/fullScreen/index.esm.js +5 -3
  152. package/dist/layout/fullScreen/fullScreen/index.esm.js.map +1 -1
  153. package/dist/layout/fullScreen/fullScreen/index.js +3 -3
  154. package/dist/layout/fullScreen/fullScreen/index.js.map +1 -1
  155. package/dist/layout/fullScreen/fullScreen.d.ts +5 -1
  156. package/dist/layout/index.esm.js +4 -4
  157. package/dist/layout/index.js +1 -1
  158. package/dist/layout/sidebarScreen/sidebarScreen/index.esm.js +72 -50
  159. package/dist/layout/sidebarScreen/sidebarScreen/index.esm.js.map +1 -1
  160. package/dist/layout/sidebarScreen/sidebarScreen/index.js +4 -4
  161. package/dist/layout/sidebarScreen/sidebarScreen/index.js.map +1 -1
  162. package/dist/layout/sidebarScreen/sidebarScreen.d.ts +3 -3
  163. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
  164. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
  165. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js +95 -0
  166. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js.map +1 -0
  167. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js +3 -0
  168. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js.map +1 -0
  169. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js +10 -0
  170. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js.map +1 -0
  171. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js +2 -0
  172. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js.map +1 -0
  173. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.esm.js +10 -0
  174. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.esm.js.map +1 -0
  175. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.js +2 -0
  176. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.js.map +1 -0
  177. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js +76 -0
  178. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js.map +1 -0
  179. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js +3 -0
  180. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js.map +1 -0
  181. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.esm.js +10 -0
  182. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.esm.js.map +1 -0
  183. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.js +2 -0
  184. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.js.map +1 -0
  185. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js +91 -0
  186. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js.map +1 -0
  187. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js +3 -0
  188. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js.map +1 -0
  189. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.esm.js +11 -0
  190. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.esm.js.map +1 -0
  191. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.js +2 -0
  192. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.js.map +1 -0
  193. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js +118 -0
  194. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js.map +1 -0
  195. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js +3 -0
  196. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js.map +1 -0
  197. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.esm.js +10 -0
  198. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.esm.js.map +1 -0
  199. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.js +2 -0
  200. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.js.map +1 -0
  201. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js +128 -0
  202. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js.map +1 -0
  203. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js +3 -0
  204. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js.map +1 -0
  205. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.esm.js +10 -0
  206. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.esm.js.map +1 -0
  207. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.js +2 -0
  208. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.js.map +1 -0
  209. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.esm.js +6 -0
  210. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.esm.js.map +1 -0
  211. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.js +2 -0
  212. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.js.map +1 -0
  213. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js +73 -0
  214. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js.map +1 -0
  215. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js +3 -0
  216. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js.map +1 -0
  217. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.esm.js +10 -0
  218. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.esm.js.map +1 -0
  219. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.js +2 -0
  220. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.js.map +1 -0
  221. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.esm.js +8 -0
  222. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.esm.js.map +1 -0
  223. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.js +2 -0
  224. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.js.map +1 -0
  225. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js +95 -0
  226. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js.map +1 -0
  227. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js +3 -0
  228. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js.map +1 -0
  229. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js +10 -0
  230. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js.map +1 -0
  231. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js +2 -0
  232. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js.map +1 -0
  233. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js +3 -2
  234. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js.map +1 -1
  235. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js +1 -1
  236. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js.map +1 -1
  237. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js +201 -0
  238. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js.map +1 -0
  239. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js +3 -0
  240. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js.map +1 -0
  241. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js +11 -0
  242. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js.map +1 -0
  243. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js +2 -0
  244. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js.map +1 -0
  245. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js +125 -0
  246. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js.map +1 -0
  247. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js +4 -0
  248. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js.map +1 -0
  249. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js +10 -0
  250. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js.map +1 -0
  251. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js +2 -0
  252. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js.map +1 -0
  253. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js +170 -0
  254. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js.map +1 -0
  255. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js +3 -0
  256. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js.map +1 -0
  257. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js +11 -0
  258. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js.map +1 -0
  259. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js +2 -0
  260. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js.map +1 -0
  261. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js +120 -0
  262. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js.map +1 -0
  263. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js +3 -0
  264. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js.map +1 -0
  265. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js +11 -0
  266. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js.map +1 -0
  267. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js +2 -0
  268. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js.map +1 -0
  269. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js +92 -0
  270. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js.map +1 -0
  271. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js +3 -0
  272. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js.map +1 -0
  273. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js +10 -0
  274. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js.map +1 -0
  275. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js +2 -0
  276. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js.map +1 -0
  277. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js +196 -0
  278. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js.map +1 -0
  279. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js +2 -0
  280. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js.map +1 -0
  281. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js +11 -0
  282. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js.map +1 -0
  283. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js +2 -0
  284. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js.map +1 -0
  285. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js +76 -0
  286. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js.map +1 -0
  287. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js +3 -0
  288. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js.map +1 -0
  289. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js +10 -0
  290. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js.map +1 -0
  291. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js +2 -0
  292. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js.map +1 -0
  293. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js +231 -0
  294. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js.map +1 -0
  295. package/dist/node_modules/@mui/material/Fab/Fab/index.js +3 -0
  296. package/dist/node_modules/@mui/material/Fab/Fab/index.js.map +1 -0
  297. package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js +11 -0
  298. package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js.map +1 -0
  299. package/dist/node_modules/@mui/material/Fab/fabClasses/index.js +2 -0
  300. package/dist/node_modules/@mui/material/Fab/fabClasses/index.js.map +1 -0
  301. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js +135 -0
  302. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js.map +1 -0
  303. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js +2 -0
  304. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js.map +1 -0
  305. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js +176 -0
  306. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js.map +1 -0
  307. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js +3 -0
  308. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js.map +1 -0
  309. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js +119 -0
  310. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js.map +1 -0
  311. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js +2 -0
  312. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js.map +1 -0
  313. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js +10 -0
  314. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js.map +1 -0
  315. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js +2 -0
  316. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js.map +1 -0
  317. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js +92 -0
  318. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js.map +1 -0
  319. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js +2 -0
  320. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js.map +1 -0
  321. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js +156 -0
  322. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js.map +1 -0
  323. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js +3 -0
  324. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js.map +1 -0
  325. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js +10 -0
  326. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js.map +1 -0
  327. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js +2 -0
  328. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js.map +1 -0
  329. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js +10 -0
  330. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js.map +1 -0
  331. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js +2 -0
  332. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js.map +1 -0
  333. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js +173 -0
  334. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js.map +1 -0
  335. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js +3 -0
  336. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js.map +1 -0
  337. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js +11 -0
  338. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js.map +1 -0
  339. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js +2 -0
  340. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js.map +1 -0
  341. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js +222 -0
  342. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js.map +1 -0
  343. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js +3 -0
  344. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js.map +1 -0
  345. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js +10 -0
  346. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js.map +1 -0
  347. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js +2 -0
  348. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js.map +1 -0
  349. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js +216 -0
  350. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js.map +1 -0
  351. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js +3 -0
  352. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js.map +1 -0
  353. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js +10 -0
  354. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js.map +1 -0
  355. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js +2 -0
  356. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js.map +1 -0
  357. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js +126 -0
  358. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js.map +1 -0
  359. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js +3 -0
  360. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js.map +1 -0
  361. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.esm.js +1 -1
  362. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js +1 -1
  363. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js.map +1 -1
  364. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js +55 -0
  365. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js.map +1 -0
  366. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js +2 -0
  367. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js.map +1 -0
  368. package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.esm.js +1 -1
  369. package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.js +1 -1
  370. package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js +1 -1
  371. package/dist/node_modules/@mui/material/Popover/Popover/index.js +1 -1
  372. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js +638 -0
  373. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js.map +1 -0
  374. package/dist/node_modules/@mui/material/Rating/Rating/index.js +7 -0
  375. package/dist/node_modules/@mui/material/Rating/Rating/index.js.map +1 -0
  376. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js +11 -0
  377. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js.map +1 -0
  378. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js +2 -0
  379. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js.map +1 -0
  380. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js +105 -0
  381. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js.map +1 -0
  382. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js +3 -0
  383. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js.map +1 -0
  384. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js +10 -0
  385. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js.map +1 -0
  386. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js +2 -0
  387. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js.map +1 -0
  388. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js +1 -1
  389. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js +1 -1
  390. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js +453 -0
  391. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js.map +1 -0
  392. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js +4 -0
  393. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js.map +1 -0
  394. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js +11 -0
  395. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js.map +1 -0
  396. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js +2 -0
  397. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js.map +1 -0
  398. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js +245 -0
  399. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js.map +1 -0
  400. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js +2 -0
  401. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js.map +1 -0
  402. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js +11 -0
  403. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js.map +1 -0
  404. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js +2 -0
  405. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js.map +1 -0
  406. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js +137 -0
  407. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js.map +1 -0
  408. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js +4 -0
  409. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js.map +1 -0
  410. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js +11 -0
  411. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js.map +1 -0
  412. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js +2 -0
  413. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js.map +1 -0
  414. package/dist/node_modules/@mui/material/Step/Step/index.esm.js +169 -0
  415. package/dist/node_modules/@mui/material/Step/Step/index.esm.js.map +1 -0
  416. package/dist/node_modules/@mui/material/Step/Step/index.js +3 -0
  417. package/dist/node_modules/@mui/material/Step/Step/index.js.map +1 -0
  418. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js +10 -0
  419. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js.map +1 -0
  420. package/dist/node_modules/@mui/material/Step/StepContext/index.js +2 -0
  421. package/dist/node_modules/@mui/material/Step/StepContext/index.js.map +1 -0
  422. package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js +10 -0
  423. package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js.map +1 -0
  424. package/dist/node_modules/@mui/material/Step/stepClasses/index.js +2 -0
  425. package/dist/node_modules/@mui/material/Step/stepClasses/index.js.map +1 -0
  426. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js +132 -0
  427. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js.map +1 -0
  428. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js +3 -0
  429. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js.map +1 -0
  430. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js +11 -0
  431. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js.map +1 -0
  432. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js +2 -0
  433. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js.map +1 -0
  434. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js +136 -0
  435. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js.map +1 -0
  436. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js +3 -0
  437. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js.map +1 -0
  438. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js +10 -0
  439. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js.map +1 -0
  440. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js +2 -0
  441. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js.map +1 -0
  442. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js +152 -0
  443. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js.map +1 -0
  444. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js +2 -0
  445. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js.map +1 -0
  446. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js +10 -0
  447. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js.map +1 -0
  448. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js +2 -0
  449. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js.map +1 -0
  450. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js +161 -0
  451. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js.map +1 -0
  452. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js +2 -0
  453. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js.map +1 -0
  454. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js +11 -0
  455. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js.map +1 -0
  456. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js +2 -0
  457. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js.map +1 -0
  458. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js +239 -0
  459. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js.map +1 -0
  460. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js +3 -0
  461. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js.map +1 -0
  462. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js +11 -0
  463. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js.map +1 -0
  464. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js +2 -0
  465. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js.map +1 -0
  466. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js +155 -0
  467. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js.map +1 -0
  468. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js +3 -0
  469. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js.map +1 -0
  470. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js +10 -0
  471. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js.map +1 -0
  472. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js +2 -0
  473. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js.map +1 -0
  474. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js +10 -0
  475. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js.map +1 -0
  476. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js +2 -0
  477. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js.map +1 -0
  478. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js +82 -0
  479. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js.map +1 -0
  480. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js +3 -0
  481. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js.map +1 -0
  482. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js +538 -0
  483. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js.map +1 -0
  484. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js +2 -0
  485. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js.map +1 -0
  486. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js +443 -0
  487. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js.map +1 -0
  488. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js +3 -0
  489. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js.map +1 -0
  490. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js +179 -0
  491. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js.map +1 -0
  492. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js +3 -0
  493. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js.map +1 -0
  494. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js +11 -0
  495. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js.map +1 -0
  496. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js +2 -0
  497. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js.map +1 -0
  498. package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js +1 -1
  499. package/dist/node_modules/@mui/material/Tabs/Tabs/index.js +1 -1
  500. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js +196 -0
  501. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js.map +1 -0
  502. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js +3 -0
  503. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js.map +1 -0
  504. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js +9 -0
  505. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js.map +1 -0
  506. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js +2 -0
  507. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js.map +1 -0
  508. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js +9 -0
  509. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js.map +1 -0
  510. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js +2 -0
  511. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js.map +1 -0
  512. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js +9 -0
  513. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js.map +1 -0
  514. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js +2 -0
  515. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js.map +1 -0
  516. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js +9 -0
  517. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js.map +1 -0
  518. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js +2 -0
  519. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js.map +1 -0
  520. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js +9 -0
  521. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js.map +1 -0
  522. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js +2 -0
  523. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js.map +1 -0
  524. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js +51 -0
  525. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js.map +1 -0
  526. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js +2 -0
  527. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js.map +1 -0
  528. package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +2 -2
  529. package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
  530. package/dist/node_modules/@mui/system/colorManipulator/index.js.map +1 -1
  531. package/dist/node_modules/@mui/system/createStyled/index.esm.js +6 -6
  532. package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
  533. package/dist/node_modules/@mui/system/createStyled/index.js.map +1 -1
  534. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js +1 -1
  535. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js +2 -2
  536. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
  537. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
  538. package/dist/node_modules/d3-axis/src/axis/index.esm.js +5 -1
  539. package/dist/node_modules/d3-axis/src/axis/index.esm.js.map +1 -1
  540. package/dist/node_modules/d3-axis/src/axis/index.js +1 -1
  541. package/dist/node_modules/d3-axis/src/axis/index.js.map +1 -1
  542. package/dist/node_modules/d3-shape/src/arc/index.esm.js +134 -0
  543. package/dist/node_modules/d3-shape/src/arc/index.esm.js.map +1 -0
  544. package/dist/node_modules/d3-shape/src/arc/index.js +2 -0
  545. package/dist/node_modules/d3-shape/src/arc/index.js.map +1 -0
  546. package/dist/node_modules/d3-shape/src/descending/index.esm.js +7 -0
  547. package/dist/node_modules/d3-shape/src/descending/index.esm.js.map +1 -0
  548. package/dist/node_modules/d3-shape/src/descending/index.js +2 -0
  549. package/dist/node_modules/d3-shape/src/descending/index.js.map +1 -0
  550. package/dist/node_modules/d3-shape/src/identity/index.esm.js +7 -0
  551. package/dist/node_modules/d3-shape/src/identity/index.esm.js.map +1 -0
  552. package/dist/node_modules/d3-shape/src/identity/index.js +2 -0
  553. package/dist/node_modules/d3-shape/src/identity/index.js.map +1 -0
  554. package/dist/node_modules/d3-shape/src/math/index.esm.js +33 -0
  555. package/dist/node_modules/d3-shape/src/math/index.esm.js.map +1 -0
  556. package/dist/node_modules/d3-shape/src/math/index.js +2 -0
  557. package/dist/node_modules/d3-shape/src/math/index.js.map +1 -0
  558. package/dist/node_modules/d3-shape/src/pie/index.esm.js +56 -0
  559. package/dist/node_modules/d3-shape/src/pie/index.esm.js.map +1 -0
  560. package/dist/node_modules/d3-shape/src/pie/index.js +2 -0
  561. package/dist/node_modules/d3-shape/src/pie/index.js.map +1 -0
  562. package/dist/node_modules/prop-types/index/index.esm.js +1 -1
  563. package/dist/node_modules/prop-types/index/index.js +1 -1
  564. package/dist/redux/hooks/index.esm.js +1 -1
  565. package/dist/src/components/charts/donut-chart/donut-chart.d.ts +1 -2
  566. package/dist/src/components/charts/index.d.ts +8 -0
  567. package/dist/src/components/confirm-modal/confirm-modal.d.ts +1 -2
  568. package/dist/src/components/confirm-modal/index.d.ts +1 -0
  569. package/dist/src/components/editor/custom-editor.d.ts +12 -8
  570. package/dist/src/components/grid/grid-card/grid-card.d.ts +10 -1
  571. package/dist/src/components/index.d.ts +228 -101
  572. package/dist/src/components/inventory-reports-title-bar/component/reportFilter.d.ts +3 -2
  573. package/dist/src/components/list/list.d.ts +2 -1
  574. package/dist/src/components/module-button/module-button.d.ts +10 -1
  575. package/dist/src/components/mulitline/multiline.d.ts +2 -2
  576. package/dist/src/components/page-navigator/page-navigator.d.ts +3 -3
  577. package/dist/src/components/parties-modal/parties-modal.d.ts +3 -3
  578. package/dist/src/components/rfq-response/item-response-details.d.ts +2 -1
  579. package/dist/src/components/tab-bar-ui/tab-bar-ui.d.ts +3 -3
  580. package/dist/src/components/tabs/tabs.d.ts +2 -2
  581. package/dist/src/hooks/use-translations.d.ts +2 -1
  582. package/dist/src/hooks/useCheckSkuAndName.d.ts +4 -2
  583. package/dist/src/layout/fullScreen/fullScreen.d.ts +5 -1
  584. package/dist/src/layout/sidebarScreen/sidebarScreen.d.ts +3 -3
  585. package/dist/src/views/afterAuth/dashboard/dashboard.d.ts +2 -1
  586. package/dist/src/views/afterAuth/page-view/redux/reducer.d.ts +2 -1
  587. package/dist/src/views/form-builder/element-edit-forms/column-width.d.ts +5 -3
  588. package/dist/style.css +76 -70
  589. package/dist/utils/common/index.esm.js +1 -1
  590. package/dist/views/afterAuth/dashboard/dashboard/index.esm.js +5 -4
  591. package/dist/views/afterAuth/dashboard/dashboard/index.esm.js.map +1 -1
  592. package/dist/views/afterAuth/dashboard/dashboard/index.js +3 -3
  593. package/dist/views/afterAuth/dashboard/dashboard/index.js.map +1 -1
  594. package/dist/views/afterAuth/dashboard/dashboard.d.ts +2 -1
  595. package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js +4 -0
  596. package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js.map +1 -1
  597. package/dist/views/afterAuth/dashboard/redux/reducer/index.js +1 -1
  598. package/dist/views/afterAuth/dashboard/redux/reducer/index.js.map +1 -1
  599. package/dist/views/afterAuth/page-view/page-view/index.esm.js +4 -4
  600. package/dist/views/afterAuth/page-view/page-view/index.esm.js.map +1 -1
  601. package/dist/views/afterAuth/page-view/page-view/index.js +2 -2
  602. package/dist/views/afterAuth/page-view/page-view/index.js.map +1 -1
  603. package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js +6 -6
  604. package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js.map +1 -1
  605. package/dist/views/afterAuth/page-view/redux/reducer/index.js +1 -1
  606. package/dist/views/afterAuth/page-view/redux/reducer/index.js.map +1 -1
  607. package/dist/views/afterAuth/page-view/redux/reducer.d.ts +2 -1
  608. package/dist/views/form-builder/custom-form/index.esm.js +1 -1
  609. package/dist/views/form-builder/custom-form/index.js +5 -5
  610. package/dist/views/form-builder/custom-form/index.js.map +1 -1
  611. package/dist/views/form-builder/element-edit-forms/column-width/index.esm.js +4 -3
  612. package/dist/views/form-builder/element-edit-forms/column-width/index.esm.js.map +1 -1
  613. package/dist/views/form-builder/element-edit-forms/column-width/index.js +3 -3
  614. package/dist/views/form-builder/element-edit-forms/column-width/index.js.map +1 -1
  615. package/dist/views/form-builder/element-edit-forms/column-width.d.ts +5 -3
  616. package/dist/views/form-builder/redux/reducer/index.esm.js +2 -3
  617. package/dist/views/form-builder/redux/reducer/index.esm.js.map +1 -1
  618. package/dist/views/form-builder/redux/reducer/index.js +1 -1
  619. package/dist/views/form-builder/redux/reducer/index.js.map +1 -1
  620. package/dist/views/index.esm.js +61 -57
  621. package/dist/views/index.js +1 -1
  622. package/package.json +1 -1
  623. package/dist/components/examples/FlexibleReduxExample/index.esm.js +0 -154
  624. package/dist/components/examples/FlexibleReduxExample/index.esm.js.map +0 -1
  625. package/dist/components/examples/FlexibleReduxExample/index.js +0 -19
  626. package/dist/components/examples/FlexibleReduxExample/index.js.map +0 -1
  627. package/dist/components/footer/index.esm.js +0 -71
  628. package/dist/components/footer/index.esm.js.map +0 -1
  629. package/dist/components/footer/index.js +0 -7
  630. package/dist/components/footer/index.js.map +0 -1
  631. package/dist/components/header/header-enhanced/index.esm.js +0 -405
  632. package/dist/components/header/header-enhanced/index.esm.js.map +0 -1
  633. package/dist/components/header/header-enhanced/index.js +0 -33
  634. package/dist/components/header/header-enhanced/index.js.map +0 -1
  635. package/dist/components/header copy/index.esm.js +0 -131
  636. package/dist/components/header copy/index.esm.js.map +0 -1
  637. package/dist/components/header copy/index.js +0 -11
  638. package/dist/components/header copy/index.js.map +0 -1
  639. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +0 -400
  640. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js.map +0 -1
  641. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +0 -41
  642. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js.map +0 -1
  643. package/dist/components/share-modal/share-modal-enhanced/index.esm.js +0 -288
  644. package/dist/components/share-modal/share-modal-enhanced/index.esm.js.map +0 -1
  645. package/dist/components/share-modal/share-modal-enhanced/index.js +0 -24
  646. package/dist/components/share-modal/share-modal-enhanced/index.js.map +0 -1
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("react-router-dom");function t(){const t=n.useNavigate();/* @__PURE__ */
2
- return e.jsxs("div",{style:{display:"flex",width:"100%",backgroundColor:"lightblue",padding:".9375rem"},children:[
3
- /* @__PURE__ */e.jsx("button",{style:{backgroundColor:"lightblue",margin:"0 .9375rem",outline:"none"},onClick:()=>t(Pathname.LANDING_PAGE),children:"Home"}),
4
- /* @__PURE__ */e.jsx("button",{style:{backgroundColor:"lightblue",margin:"0 .9375rem",outline:"none"},onClick:()=>t(Pathname.DASHBOARD_QUOTES),children:"Quotes"}),
5
- /* @__PURE__ */e.jsx("button",{style:{backgroundColor:"lightblue",margin:"0 .9375rem",outline:"none"},onClick:()=>t(Pathname.DASHBOARD_DOCUMENT),children:"Document"}),
6
- /* @__PURE__ */e.jsx("button",{style:{backgroundColor:"lightblue",margin:"0 .9375rem",outline:"none"},onClick:()=>t(Pathname.DASHBOARD_USER),children:"User"})]})}exports.Footer=t,exports.default=t;
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/footer.tsx"],"sourcesContent":["import React from \"react\";\nimport { useNavigate } from \"react-router-dom\";\n\n// import { Pathname } from \"../pathname\"; // Removed - should be passed as props\n\nexport function Footer(): React.ReactElement {\n const navigate = useNavigate();\n\n return (\n <div\n style={{\n display: \"flex\",\n width: \"100%\",\n backgroundColor: \"lightblue\",\n padding: \".9375rem\",\n }}\n >\n <button\n style={{\n backgroundColor: \"lightblue\",\n margin: \"0 .9375rem\",\n outline: \"none\",\n }}\n onClick={() => navigate(Pathname.LANDING_PAGE)}\n >\n Home\n </button>\n <button\n style={{\n backgroundColor: \"lightblue\",\n margin: \"0 .9375rem\",\n outline: \"none\",\n }}\n onClick={() => navigate(Pathname.DASHBOARD_QUOTES)}\n >\n Quotes\n </button>\n <button\n style={{\n backgroundColor: \"lightblue\",\n margin: \"0 .9375rem\",\n outline: \"none\",\n }}\n onClick={() => navigate(Pathname.DASHBOARD_DOCUMENT)}\n >\n Document\n </button>\n <button\n style={{\n backgroundColor: \"lightblue\",\n margin: \"0 .9375rem\",\n outline: \"none\",\n }}\n onClick={() => navigate(Pathname.DASHBOARD_USER)}\n >\n User\n </button>\n </div>\n );\n}\n\nexport default Footer;\n"],"names":["Footer","navigate","useNavigate","jsxs","style","display","width","backgroundColor","padding","children","jsx","margin","outline","onClick","Pathname","LANDING_PAGE","DASHBOARD_QUOTES","DASHBOARD_DOCUMENT","DASHBOARD_USER"],"mappings":"qIAKO,SAASA,IACd,MAAMC,EAAWC,EAAAA;AAEjB,OACEC,EAAAA,KAAC,MAAA,CACCC,MAAO,CACLC,QAAS,OACTC,MAAO,OACPC,gBAAiB,YACjBC,QAAS,YAGXC,SAAA;eAAAC,EAAAA,IAAC,SAAA,CACCN,MAAO,CACLG,gBAAiB,YACjBI,OAAQ,aACRC,QAAS,QAEXC,QAAS,IAAMZ,EAASa,SAASC,cAClCN,SAAA;eAGDC,EAAAA,IAAC,SAAA,CACCN,MAAO,CACLG,gBAAiB,YACjBI,OAAQ,aACRC,QAAS,QAEXC,QAAS,IAAMZ,EAASa,SAASE,kBAClCP,SAAA;eAGDC,EAAAA,IAAC,SAAA,CACCN,MAAO,CACLG,gBAAiB,YACjBI,OAAQ,aACRC,QAAS,QAEXC,QAAS,IAAMZ,EAASa,SAASG,oBAClCR,SAAA;eAGDC,EAAAA,IAAC,SAAA,CACCN,MAAO,CACLG,gBAAiB,YACjBI,OAAQ,aACRC,QAAS,QAEXC,QAAS,IAAMZ,EAASa,SAASI,gBAClCT,SAAA,WAKP"}
@@ -1,405 +0,0 @@
1
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import React__default, { useState, useCallback, useEffect } from "react";
3
- import { useNavigate, useLocation, matchRoutes, Link } from "react-router-dom";
4
- import { useTranslation } from "react-i18next";
5
- import default_1$1 from "../../../node_modules/@mui/icons-material/Lock/index.esm.js";
6
- import default_1 from "../../../node_modules/@mui/icons-material/KeyboardBackspace/index.esm.js";
7
- import { Typography } from "../../typography/typography/index.esm.js";
8
- import { images } from "../../../images/index.esm.js";
9
- import { Select } from "../../select/select/index.esm.js";
10
- import modules from "../../../constants/modules/index.esm.js";
11
- import { Avatar } from "../../avatar/avatar/index.esm.js";
12
- import { useAuth } from "../../../hooks/useAuth/index.esm.js";
13
- import { ConfirmPopUp } from "../../confirm-modal/confirm-modal/index.esm.js";
14
- import { formatText } from "../../../utils/format-text/index.esm.js";
15
- import { useLanguage } from "../../../hooks/useLangauge/index.esm.js";
16
- import { ResetPasswordModal } from "../../reset-password-modal/reset-password-modal/index.esm.js";
17
- import { NotificationMenu } from "../components/notification-menu/notification-menu/index.esm.js";
18
- /* empty css */
19
- import Menu from "../../../node_modules/@mui/material/Menu/Menu/index.esm.js";
20
- import MenuItem from "../../../node_modules/@mui/material/MenuItem/MenuItem/index.esm.js";
21
- import ListItemIcon from "../../../node_modules/@mui/material/ListItemIcon/ListItemIcon/index.esm.js";
22
- import ListItemText from "../../../node_modules/@mui/material/ListItemText/ListItemText/index.esm.js";
23
- import Divider from "../../../node_modules/@mui/material/Divider/Divider/index.esm.js";
24
- import { Eye } from "../../icons/eye/index.esm.js";
25
- import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
26
- import IconButton from "../../../node_modules/@mui/material/IconButton/IconButton/index.esm.js";
27
- function HeaderEnhanced(props) {
28
- var _a, _b, _c, _d;
29
- const {
30
- isDropdownShow,
31
- // Non-Redux props
32
- languages: propLanguages = [],
33
- currentLanguage: propCurrentLanguage,
34
- languagesLoading: propLanguagesLoading = false,
35
- languageError: propLanguageError = "",
36
- onLanguageChange,
37
- onFetchLanguages,
38
- // Redux integration
39
- useRedux = false
40
- } = props;
41
- const navigate = useNavigate();
42
- const { t } = useTranslation();
43
- const location = useLocation();
44
- const { logout, user } = useAuth();
45
- let reduxLanguageState = {
46
- languages: [],
47
- currentLanguage: { label: "English", code: "en", direction: "ltr" },
48
- isLoading: false,
49
- error: "",
50
- isFallbackActive: false,
51
- isRtl: false
52
- };
53
- let dispatch = null;
54
- let reduxActions = {};
55
- if (useRedux) {
56
- try {
57
- const { useAppSelector, useAppDispatch } = require("../../redux/hooks");
58
- const { fetchLanguages } = require("../../redux/slices");
59
- const headerState = useAppSelector((store) => store.header || {});
60
- dispatch = useAppDispatch();
61
- reduxActions = { fetchLanguages };
62
- reduxLanguageState = {
63
- languages: ((_a = headerState.languagesData) == null ? void 0 : _a.data) || [],
64
- currentLanguage: headerState.currentLanguage || reduxLanguageState.currentLanguage,
65
- isLoading: ((_b = headerState.languagesData) == null ? void 0 : _b.isLoading) || false,
66
- error: ((_c = headerState.languagesData) == null ? void 0 : _c.error) || "",
67
- isFallbackActive: false,
68
- // This would need to be computed
69
- isRtl: ((_d = headerState.currentLanguage) == null ? void 0 : _d.direction) === "rtl"
70
- };
71
- } catch (error) {
72
- console.warn("Redux not available for Header, falling back to prop-based data");
73
- }
74
- }
75
- const {
76
- languages: hookLanguages,
77
- currentLanguage: hookCurrentLanguage,
78
- changeLanguage: hookChangeLanguage,
79
- isLoading: hookLanguagesLoading,
80
- error: hookLanguageError,
81
- isFallbackActive: hookIsFallbackActive,
82
- fetchLanguages: hookFetchLanguages,
83
- isRtl: hookIsRtl
84
- } = useLanguage();
85
- const languages = useRedux ? reduxLanguageState.languages : propLanguages.length > 0 ? propLanguages : hookLanguages;
86
- const currentLanguage = useRedux ? reduxLanguageState.currentLanguage : propCurrentLanguage || hookCurrentLanguage;
87
- const languagesLoading = useRedux ? reduxLanguageState.isLoading : propLanguagesLoading || hookLanguagesLoading;
88
- const languageContextError = useRedux ? reduxLanguageState.error : propLanguageError || hookLanguageError;
89
- const isFallbackActive = useRedux ? reduxLanguageState.isFallbackActive : hookIsFallbackActive;
90
- const isRtl = useRedux ? reduxLanguageState.isRtl : hookIsRtl;
91
- const { pathname } = location;
92
- const [anchorEl, setAnchorEl] = React__default.useState(null);
93
- const [logoutConfirmation, setLogoutConfirmation] = useState(false);
94
- const [selectedModule, setSelectedModule] = useState(null);
95
- const [erp_modules, setModules] = useState([]);
96
- const [localLanguageError, setLocalLanguageError] = useState(null);
97
- const [showModal, setShowModal] = useState(false);
98
- const u_data = localStorage.getItem("_u_data") || void 0;
99
- const userData = u_data ? JSON.parse(u_data) : "";
100
- const isMenuOpen = Boolean(anchorEl);
101
- const handleLogoutConfirmation = () => setLogoutConfirmation(!logoutConfirmation);
102
- const checkMatchedRoutes = useCallback(
103
- (paths) => {
104
- const shouldMatch = Array.isArray(paths) ? paths.map((path) => ({ path })) : [{ path: paths }];
105
- return Boolean(matchRoutes(shouldMatch, location));
106
- },
107
- [location]
108
- );
109
- const handleChangePasswordView = () => {
110
- setShowModal(true);
111
- };
112
- useEffect(() => {
113
- const moduleName = erp_modules.find(
114
- (module) => {
115
- var _a2;
116
- return ((_a2 = module == null ? void 0 : module.link) == null ? void 0 : _a2.toLowerCase()) === pathname.toLowerCase() || checkMatchedRoutes(module.connectedRoutes);
117
- }
118
- );
119
- if (moduleName) {
120
- setSelectedModule(moduleName);
121
- }
122
- }, [pathname, erp_modules, checkMatchedRoutes]);
123
- useEffect(() => {
124
- setModules(modules(t));
125
- }, [t]);
126
- const onChangeLang = (e) => {
127
- const lang_code = e.target.value;
128
- setLocalLanguageError(null);
129
- if (!languages || languages.length === 0) {
130
- const errorMsg = t("header.language_not_available") || "Languages not available";
131
- setLocalLanguageError(errorMsg);
132
- return;
133
- }
134
- const languageExists = languages.some((lang) => lang.code === lang_code);
135
- if (languageExists) {
136
- try {
137
- if (useRedux) ;
138
- else if (onLanguageChange) {
139
- onLanguageChange(lang_code);
140
- } else {
141
- hookChangeLanguage(lang_code);
142
- }
143
- } catch (error) {
144
- const errorMsg = error instanceof Error ? error.message : "Failed to change language";
145
- setLocalLanguageError(errorMsg);
146
- }
147
- } else {
148
- const errorMsg = t("header.language_not_found", { language: lang_code }) || `Selected language "${lang_code}" is not available`;
149
- setLocalLanguageError(errorMsg);
150
- }
151
- };
152
- const handleRetryLanguages = async () => {
153
- setLocalLanguageError(null);
154
- try {
155
- if (useRedux && dispatch && reduxActions.fetchLanguages) {
156
- await dispatch(reduxActions.fetchLanguages());
157
- } else if (onFetchLanguages) {
158
- await onFetchLanguages();
159
- } else {
160
- await hookFetchLanguages();
161
- }
162
- } catch (error) {
163
- const errorMsg = "Failed to reload languages";
164
- setLocalLanguageError(errorMsg);
165
- }
166
- };
167
- const handleProfileMenuOpen = (event) => setAnchorEl(event.currentTarget);
168
- const handleMenuClose = () => {
169
- setAnchorEl(null);
170
- };
171
- const handleChange = (event) => {
172
- const selectedLink = event.target.value;
173
- setTimeout(() => {
174
- navigate(selectedLink);
175
- }, 300);
176
- };
177
- const handleBackButton = () => {
178
- window.history.back();
179
- };
180
- const getCurrentLanguageDisplay = () => {
181
- if (!currentLanguage) return t("header.select_language") || "Select Language";
182
- if (isFallbackActive || languageContextError) {
183
- return `${currentLanguage.label}`;
184
- }
185
- return currentLanguage.label;
186
- };
187
- const createEnglishFallback = () => ({
188
- code: "en",
189
- label: "English",
190
- direction: "ltr"
191
- });
192
- const getLanguagesForDropdown = () => {
193
- if (!languages || languages.length === 0) {
194
- return [createEnglishFallback()];
195
- }
196
- const hasEnglish = languages.some((lang) => lang.code === "en");
197
- if (!hasEnglish) {
198
- return [createEnglishFallback(), ...languages];
199
- }
200
- return languages;
201
- };
202
- const renderLanguageSelector = () => {
203
- const availableLanguages = getLanguagesForDropdown();
204
- const displayValue = (currentLanguage == null ? void 0 : currentLanguage.code) || "en";
205
- if (languagesLoading) {
206
- return /* @__PURE__ */ jsx(Box, { className: "language-loading", children: /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "text.secondary", children: "Loading..." }) });
207
- }
208
- return /* @__PURE__ */ jsxs(
209
- Select,
210
- {
211
- onChange: onChangeLang,
212
- size: "small",
213
- value: displayValue,
214
- renderValue: () => getCurrentLanguageDisplay(),
215
- error: !!localLanguageError,
216
- className: isFallbackActive || languageContextError ? "language-fallback-active" : "",
217
- children: [
218
- availableLanguages.map(({ code, label }) => /* @__PURE__ */ jsx(MenuItem, { value: code, children: /* @__PURE__ */ jsx(
219
- Typography,
220
- {
221
- type: "s4",
222
- weight: "medium",
223
- color: "theme.secondary.1000",
224
- children: label
225
- }
226
- ) }, code)),
227
- languageContextError && /* @__PURE__ */ jsx(MenuItem, { onClick: handleRetryLanguages, style: { fontStyle: "italic" }, children: /* @__PURE__ */ jsxs(
228
- Typography,
229
- {
230
- type: "s4",
231
- weight: "medium",
232
- color: "theme.secondary.500",
233
- children: [
234
- "🔄 ",
235
- t("header.retry_languages") || "Retry loading languages"
236
- ]
237
- }
238
- ) })
239
- ]
240
- }
241
- );
242
- };
243
- const menuId = "primary-search-account-menu";
244
- const renderMenu = /* @__PURE__ */ jsxs(
245
- Menu,
246
- {
247
- className: "main-profile-menu",
248
- anchorEl,
249
- id: menuId,
250
- keepMounted: true,
251
- open: isMenuOpen,
252
- onClose: handleMenuClose,
253
- children: [
254
- /* @__PURE__ */ jsx(MenuItem, { className: "user-assigned", children: /* @__PURE__ */ jsx("span", { children: t("common.assigned_roles") || "Assigned roles" }) }),
255
- /* @__PURE__ */ jsxs(MenuItem, { className: "user-data-wrap", value: userData.role_id, children: [
256
- /* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Avatar, { size: 27, alt: userData.role_name }) }),
257
- /* @__PURE__ */ jsx(ListItemText, { className: "size15", children: userData.role_name }),
258
- /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "text.secondary", children: /* @__PURE__ */ jsx("img", { src: images.tickicon, alt: "Active" }) })
259
- ] }),
260
- /* @__PURE__ */ jsx(Divider, {}),
261
- /* @__PURE__ */ jsxs(
262
- MenuItem,
263
- {
264
- className: "user-assigned",
265
- onClick: () => {
266
- handleChangePasswordView();
267
- setAnchorEl(null);
268
- },
269
- children: [
270
- /* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Eye, { fontSize: "medium", width: 20, height: 20, htmlColor: "#292D32" }) }),
271
- /* @__PURE__ */ jsx(ListItemText, { className: "size15", children: t("common.change_password") })
272
- ]
273
- }
274
- ),
275
- /* @__PURE__ */ jsx(Divider, {}),
276
- /* @__PURE__ */ jsxs(
277
- MenuItem,
278
- {
279
- className: "menu-item-color",
280
- onClick: () => {
281
- handleLogoutConfirmation();
282
- setAnchorEl(null);
283
- },
284
- children: [
285
- /* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx("img", { src: images.logout, alt: "logout" }) }),
286
- /* @__PURE__ */ jsx(ListItemText, { className: "size15", children: t("common.logout") })
287
- ]
288
- }
289
- )
290
- ]
291
- }
292
- );
293
- return /* @__PURE__ */ jsxs(Fragment, { children: [
294
- /* @__PURE__ */ jsxs(Box, { className: "main-box", children: [
295
- !isDropdownShow && /* @__PURE__ */ jsx(Link, { to: user ? Pathname.DASHBOARD : Pathname.LOGIN, children: /* @__PURE__ */ jsx("img", { src: images.logo, alt: "logo" }) }),
296
- /* @__PURE__ */ jsx(Box, { className: "second-box", children: isDropdownShow && /* @__PURE__ */ jsxs(Fragment, { children: [
297
- /* @__PURE__ */ jsx(IconButton, { onClick: handleBackButton, children: /* @__PURE__ */ jsx(
298
- default_1,
299
- {
300
- className: isRtl ? "arrow-pointer_rtl" : "arrow-pointer"
301
- }
302
- ) }),
303
- /* @__PURE__ */ jsx(Box, { width: 250, children: /* @__PURE__ */ jsx(
304
- Select,
305
- {
306
- fullWidth: true,
307
- placeholder: "Placeholder",
308
- size: "small",
309
- value: (selectedModule == null ? void 0 : selectedModule.link) || "",
310
- onChange: handleChange,
311
- className: "select-box",
312
- variant: "outlined",
313
- renderValue: (value) => /* @__PURE__ */ jsx(Fragment, { children: selectedModule ? /* @__PURE__ */ jsxs(Box, { className: "selected-menu-box", children: [
314
- /* @__PURE__ */ jsx(
315
- "img",
316
- {
317
- src: selectedModule.icon,
318
- alt: selectedModule.label
319
- }
320
- ),
321
- selectedModule.label
322
- ] }) : value }),
323
- children: erp_modules.map((module, index) => /* @__PURE__ */ jsxs(
324
- MenuItem,
325
- {
326
- className: "select-box-menu-item",
327
- value: module.link,
328
- children: [
329
- /* @__PURE__ */ jsx("img", { src: module.icon, alt: module.label }),
330
- module.label
331
- ]
332
- },
333
- index
334
- ))
335
- }
336
- ) })
337
- ] }) }),
338
- /* @__PURE__ */ jsxs(Box, { className: "header-right-wrap", children: [
339
- /* @__PURE__ */ jsx(Box, { className: "language-selector-wrapper", children: renderLanguageSelector() }),
340
- /* @__PURE__ */ jsx(NotificationMenu, {}),
341
- /* @__PURE__ */ jsx(
342
- IconButton,
343
- {
344
- size: "small",
345
- "aria-label": "help",
346
- className: "p-0",
347
- children: /* @__PURE__ */ jsx("img", { src: images.question, alt: "question icon" })
348
- }
349
- ),
350
- /* @__PURE__ */ jsx("img", { src: images.vdivider, alt: "divider icon" }),
351
- localStorage.getItem("_tid") ? /* @__PURE__ */ jsxs(Box, { className: "user-profile-box", onClick: handleProfileMenuOpen, children: [
352
- /* @__PURE__ */ jsx(
353
- Avatar,
354
- {
355
- size: 32,
356
- src: (user == null ? void 0 : user.profile_image) ? `${"https://erpforce-dev.s3.eu-west-1.amazonaws.com/"}${user == null ? void 0 : user.profile_image}` : void 0,
357
- alt: formatText(user == null ? void 0 : user.full_name),
358
- className: "avatar-class"
359
- }
360
- ),
361
- /* @__PURE__ */ jsxs("div", { children: [
362
- /* @__PURE__ */ jsx(Typography, { className: "profile-name", children: user == null ? void 0 : user.full_name }),
363
- /* @__PURE__ */ jsx(Typography, { className: "user-auth", children: user == null ? void 0 : user.role_name })
364
- ] })
365
- ] }) : /* @__PURE__ */ jsx(
366
- IconButton,
367
- {
368
- size: "large",
369
- edge: "end",
370
- "aria-label": "account of current user",
371
- "aria-controls": menuId,
372
- "aria-haspopup": "true",
373
- component: Link,
374
- to: Pathname.LOGIN,
375
- color: "inherit",
376
- children: /* @__PURE__ */ jsx(default_1$1, { className: "icon-btn" })
377
- }
378
- )
379
- ] }),
380
- renderMenu
381
- ] }),
382
- /* @__PURE__ */ jsx(
383
- ConfirmPopUp,
384
- {
385
- open: logoutConfirmation,
386
- title: t("common.logout"),
387
- description: t("common.logout_confirmation") || "Are you sure, you want to logout?",
388
- onConfirm: () => logout(),
389
- onClose: handleLogoutConfirmation,
390
- fullWidth: true,
391
- maxWidth: "xs",
392
- buttonTexts: {
393
- confirm: t("common.logout"),
394
- cancel: t("common.cancel")
395
- }
396
- }
397
- ),
398
- /* @__PURE__ */ jsx(ResetPasswordModal, { showModal, setShowModal })
399
- ] });
400
- }
401
- export {
402
- HeaderEnhanced,
403
- HeaderEnhanced as default
404
- };
405
- //# sourceMappingURL=index.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../../src/components/header/header-enhanced.tsx"],"sourcesContent":["// components/header/Header.tsx - Enhanced version with optional Redux support\nimport React, { useState, useEffect, useCallback } from \"react\";\nimport { Link, matchRoutes, useLocation, useNavigate } from \"react-router-dom\";\nimport Box from \"@mui/material/Box\";\nimport { useTranslation } from \"react-i18next\";\nimport LockIcon from \"@mui/icons-material/Lock\";\nimport IconButton from \"@mui/material/IconButton\";\nimport MenuItem from \"@mui/material/MenuItem\";\nimport Menu from \"@mui/material/Menu\";\nimport KeyboardBackspaceIcon from \"@mui/icons-material/KeyboardBackspace\";\nimport ListItemText from \"@mui/material/ListItemText\";\nimport Divider from \"@mui/material/Divider\";\nimport ListItemIcon from \"@mui/material/ListItemIcon\";\n\n// import { Pathname } from \"../../pathname\"; // Removed - should be passed as props\nimport Typography from \"../typography/typography\";\nimport logo, { images } from \"../../assets/images\";\nimport Select from \"../select/select\";\nimport modules from \"../../constants/modules\"; // Removed - should be passed as props\nimport Avatar from \"../avatar/avatar\";\nimport { useAuth } from \"../../hooks/useAuth\";\nimport ConfirmPopUp from \"../confirm-modal/confirm-modal\";\nimport formatText from \"../../utils/format-text\";\nimport { useLanguage } from \"../../hooks/useLangauge\";\nimport { Eye } from \"../icons\";\nimport ResetPasswordModal from \"../reset-password-modal/reset-password-modal\";\nimport NotificationMenu from \"./components/notification-menu/notification-menu\";\nimport \"./header.scss\";\n\ninterface ILanguage {\n label: string;\n code: string;\n direction: string;\n}\n\ninterface IModule {\n label: any;\n link: string;\n sidebar: string;\n icon: string;\n permission: string;\n bg: string;\n connectedRoutes: string[];\n translationModule: string;\n}\n\n// Enhanced props interface\ninterface HeaderEnhancedProps {\n isDropdownShow?: boolean;\n \n // Language props (alternative to Redux)\n languages?: ILanguage[];\n currentLanguage?: ILanguage;\n languagesLoading?: boolean;\n languageError?: string;\n onLanguageChange?: (languageCode: string) => void;\n onFetchLanguages?: () => Promise<void>;\n \n // Redux integration (optional)\n useRedux?: boolean;\n}\n\nexport function HeaderEnhanced(props: HeaderEnhancedProps): React.ReactElement {\n const {\n isDropdownShow,\n \n // Non-Redux props\n languages: propLanguages = [],\n currentLanguage: propCurrentLanguage,\n languagesLoading: propLanguagesLoading = false,\n languageError: propLanguageError = \"\",\n onLanguageChange,\n onFetchLanguages,\n \n // Redux integration\n useRedux = false,\n } = props;\n\n const navigate = useNavigate();\n const { t } = useTranslation();\n const location = useLocation();\n const { logout, user } = useAuth();\n \n // Conditional Redux usage\n let reduxLanguageState = {\n languages: [],\n currentLanguage: { label: 'English', code: 'en', direction: 'ltr' },\n isLoading: false,\n error: '',\n isFallbackActive: false,\n isRtl: false\n };\n let dispatch: any = null;\n let reduxActions: any = {};\n \n if (useRedux) {\n try {\n // Dynamic import of Redux hooks and actions\n const { useAppSelector, useAppDispatch } = require(\"../../redux/hooks\");\n const { fetchLanguages } = require(\"../../redux/slices\");\n \n const headerState = useAppSelector((store: any) => store.header || {});\n dispatch = useAppDispatch();\n reduxActions = { fetchLanguages };\n \n reduxLanguageState = {\n languages: headerState.languagesData?.data || [],\n currentLanguage: headerState.currentLanguage || reduxLanguageState.currentLanguage,\n isLoading: headerState.languagesData?.isLoading || false,\n error: headerState.languagesData?.error || '',\n isFallbackActive: false, // This would need to be computed\n isRtl: headerState.currentLanguage?.direction === 'rtl'\n };\n } catch (error) {\n console.warn(\"Redux not available for Header, falling back to prop-based data\");\n }\n }\n\n // Use Redux data if available, otherwise use props or useLanguage hook\n const { \n languages: hookLanguages, \n currentLanguage: hookCurrentLanguage, \n changeLanguage: hookChangeLanguage, \n isLoading: hookLanguagesLoading,\n error: hookLanguageError,\n isFallbackActive: hookIsFallbackActive,\n fetchLanguages: hookFetchLanguages,\n isRtl: hookIsRtl\n } = useLanguage();\n\n // Determine which data source to use\n const languages = useRedux ? reduxLanguageState.languages : (propLanguages.length > 0 ? propLanguages : hookLanguages);\n const currentLanguage = useRedux ? reduxLanguageState.currentLanguage : (propCurrentLanguage || hookCurrentLanguage);\n const languagesLoading = useRedux ? reduxLanguageState.isLoading : (propLanguagesLoading || hookLanguagesLoading);\n const languageContextError = useRedux ? reduxLanguageState.error : (propLanguageError || hookLanguageError);\n const isFallbackActive = useRedux ? reduxLanguageState.isFallbackActive : hookIsFallbackActive;\n const isRtl = useRedux ? reduxLanguageState.isRtl : hookIsRtl;\n\n const { pathname } = location;\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n const [logoutConfirmation, setLogoutConfirmation] = useState<boolean>(false);\n const [selectedModule, setSelectedModule] = useState<IModule | null>(null);\n const [erp_modules, setModules] = useState<IModule[]>([]);\n const [localLanguageError, setLocalLanguageError] = useState<string | null>(null);\n const [showModal, setShowModal] = useState(false);\n\n const u_data = localStorage.getItem(\"_u_data\") || undefined;\n const userData = u_data ? JSON.parse(u_data) : \"\";\n const isMenuOpen = Boolean(anchorEl);\n\n const handleLogoutConfirmation = () =>\n setLogoutConfirmation(!logoutConfirmation);\n\n const checkMatchedRoutes = useCallback(\n (paths: string[] | string) => {\n const shouldMatch: { path: string }[] = Array.isArray(paths)\n ? paths.map((path: string) => ({ path }))\n : [{ path: paths }];\n\n return Boolean(matchRoutes(shouldMatch, location));\n },\n [location],\n );\n\n const handleChangePasswordView = () => {\n setShowModal(true);\n }\n\n useEffect(() => {\n const moduleName = erp_modules.find(\n (module: IModule) =>\n module?.link?.toLowerCase() === pathname.toLowerCase() || \n checkMatchedRoutes(module.connectedRoutes),\n );\n\n if (moduleName) {\n setSelectedModule(moduleName);\n }\n }, [pathname, erp_modules, checkMatchedRoutes]);\n\n useEffect(() => {\n setModules(modules(t));\n }, [t]);\n\n // Enhanced language change handler\n const onChangeLang = (e: React.ChangeEvent<HTMLSelectElement>) => {\n const lang_code = e.target.value;\n \n // Clear any previous errors\n setLocalLanguageError(null);\n \n // Validate the language exists before changing\n if (!languages || languages.length === 0) {\n const errorMsg = t('header.language_not_available') || 'Languages not available';\n setLocalLanguageError(errorMsg);\n return;\n }\n \n const languageExists = languages.some((lang: ILanguage) => lang.code === lang_code);\n \n if (languageExists) {\n try {\n if (useRedux) {\n // Use Redux action (would need to be implemented in the slice)\n // dispatch(setCurrentLanguage({ code: lang_code, ... }));\n } else if (onLanguageChange) {\n onLanguageChange(lang_code);\n } else {\n hookChangeLanguage(lang_code);\n }\n } catch (error) {\n const errorMsg = error instanceof Error ? error.message : 'Failed to change language';\n setLocalLanguageError(errorMsg);\n }\n } else {\n const errorMsg = t('header.language_not_found', { language: lang_code }) || \n `Selected language \"${lang_code}\" is not available`;\n setLocalLanguageError(errorMsg);\n }\n };\n\n // Retry language loading\n const handleRetryLanguages = async () => {\n setLocalLanguageError(null);\n try {\n if (useRedux && dispatch && reduxActions.fetchLanguages) {\n await dispatch(reduxActions.fetchLanguages());\n } else if (onFetchLanguages) {\n await onFetchLanguages();\n } else {\n await hookFetchLanguages();\n }\n } catch (error) {\n const errorMsg = 'Failed to reload languages';\n setLocalLanguageError(errorMsg);\n }\n };\n\n const handleProfileMenuOpen = (event: React.MouseEvent<HTMLElement>) =>\n setAnchorEl(event.currentTarget);\n\n const handleMenuClose = () => {\n setAnchorEl(null);\n };\n\n const handleChange = (event: any) => {\n const selectedLink = event.target.value;\n setTimeout(() => {\n navigate(selectedLink);\n }, 300);\n };\n\n const handleBackButton = () => {\n window.history.back();\n };\n\n // Get current language display value with fallback indication\n const getCurrentLanguageDisplay = (): string => {\n if (!currentLanguage) return t('header.select_language') || 'Select Language';\n \n // Show fallback indicator for better UX\n if (isFallbackActive || languageContextError) {\n return `${currentLanguage.label}`;\n }\n \n return currentLanguage.label;\n };\n\n // Create English fallback for consistent display\n const createEnglishFallback = (): ILanguage => ({\n code: 'en',\n label: 'English',\n direction: 'ltr'\n });\n\n // Get languages for dropdown - ensure English is always available\n const getLanguagesForDropdown = (): ILanguage[] => {\n if (!languages || languages.length === 0) {\n // If no languages available, show only English\n return [createEnglishFallback()];\n }\n \n // Ensure English is in the list\n const hasEnglish = languages.some(lang => lang.code === 'en');\n if (!hasEnglish) {\n return [createEnglishFallback(), ...languages];\n }\n \n return languages;\n };\n\n // Render language selector based on different states\n const renderLanguageSelector = () => {\n const availableLanguages = getLanguagesForDropdown();\n const displayValue = currentLanguage?.code || 'en'; // Default to English\n\n // Loading state\n if (languagesLoading) {\n return (\n <Box className=\"language-loading\">\n <Typography variant=\"body2\" color=\"text.secondary\">\n {'Loading...'}\n </Typography>\n </Box>\n );\n }\n\n // Always show dropdown with at least English available\n return (\n <Select\n onChange={onChangeLang}\n size=\"small\"\n value={displayValue}\n renderValue={() => getCurrentLanguageDisplay()}\n error={!!localLanguageError}\n className={isFallbackActive || languageContextError ? 'language-fallback-active' : ''}\n >\n {availableLanguages.map(({ code, label }: ILanguage) => (\n <MenuItem key={code} value={code}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.1000\"\n >\n {label}\n </Typography>\n </MenuItem>\n ))}\n \n {/* Show retry option if there's an error */}\n {languageContextError && (\n <MenuItem onClick={handleRetryLanguages} style={{ fontStyle: 'italic' }}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.500\"\n >\n 🔄 {t('header.retry_languages') || 'Retry loading languages'}\n </Typography>\n </MenuItem>\n )}\n </Select>\n );\n };\n\n const menuId = \"primary-search-account-menu\";\n const renderMenu = (\n <Menu\n className=\"main-profile-menu\"\n anchorEl={anchorEl}\n id={menuId}\n keepMounted\n open={isMenuOpen}\n onClose={handleMenuClose}\n >\n <MenuItem className=\"user-assigned\">\n <span>{t('common.assigned_roles') || 'Assigned roles'}</span>\n </MenuItem>\n <MenuItem className=\"user-data-wrap\" value={userData.role_id}>\n <ListItemIcon>\n <Avatar size={27} alt={userData.role_name} />\n </ListItemIcon>\n <ListItemText className=\"size15\">\n {userData.role_name}\n </ListItemText>\n <Typography variant=\"body2\" color=\"text.secondary\">\n <img src={images.tickicon} alt=\"Active\" />\n </Typography>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"user-assigned\"\n onClick={() => {\n handleChangePasswordView();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <Eye fontSize=\"medium\" width={20} height={20} htmlColor=\"#292D32\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.change_password\")}</ListItemText>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"menu-item-color\"\n onClick={() => {\n handleLogoutConfirmation();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <img src={images.logout} alt=\"logout\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.logout\")}</ListItemText>\n </MenuItem>\n </Menu>\n );\n\n return (\n <>\n <Box className=\"main-box\">\n {!isDropdownShow && (\n <Link to={user ? Pathname.DASHBOARD : Pathname.LOGIN}>\n <img src={images.logo} alt=\"logo\" />\n </Link>\n )}\n <Box className=\"second-box\">\n {isDropdownShow && (\n <>\n <IconButton onClick={handleBackButton}>\n <KeyboardBackspaceIcon\n className={isRtl?\"arrow-pointer_rtl\":\"arrow-pointer\"}\n />\n </IconButton>\n <Box width={250}>\n <Select\n fullWidth\n placeholder=\"Placeholder\"\n size={\"small\"}\n value={selectedModule?.link || \"\"}\n onChange={handleChange}\n className=\"select-box\"\n variant=\"outlined\"\n renderValue={(value: string) => (\n <>\n {selectedModule ? (\n <Box className=\"selected-menu-box\">\n <img\n src={selectedModule.icon}\n alt={selectedModule.label}\n />\n {selectedModule.label}\n </Box>\n ) : (\n value\n )}\n </>\n )}\n >\n {erp_modules.map((module: any, index: number) => (\n <MenuItem\n className=\"select-box-menu-item\"\n value={module.link}\n key={index}\n >\n <img src={module.icon} alt={module.label} />\n {module.label}\n </MenuItem>\n ))}\n </Select>\n </Box>\n </>\n )}\n </Box>\n <Box className=\"header-right-wrap\">\n {/* Language Selector with Enhanced Fallback Support */}\n <Box className=\"language-selector-wrapper\">\n {renderLanguageSelector()}\n </Box>\n\n <NotificationMenu/>\n <IconButton\n size=\"small\"\n aria-label=\"help\"\n className=\"p-0\"\n >\n <img src={logo.question} alt=\"question icon\" />\n </IconButton>\n <img src={logo.vdivider} alt=\"divider icon\" />\n {localStorage.getItem(\"_tid\") ? (\n <Box className=\"user-profile-box\" onClick={handleProfileMenuOpen}>\n <Avatar\n size={32}\n src={user?.profile_image ? `${import.meta.env.VITE_S3_BUCKET_URL}${user?.profile_image}` : undefined}\n alt={formatText(user?.full_name)}\n className=\"avatar-class\"\n />\n <div>\n <Typography className=\"profile-name\">\n {user?.full_name}\n </Typography>\n <Typography className=\"user-auth\">\n {user?.role_name}\n </Typography>\n </div>\n </Box>\n ) : (\n <IconButton\n size=\"large\"\n edge=\"end\"\n aria-label=\"account of current user\"\n aria-controls={menuId}\n aria-haspopup=\"true\"\n component={Link}\n to={Pathname.LOGIN}\n color=\"inherit\"\n >\n <LockIcon className=\"icon-btn\" />\n </IconButton>\n )}\n </Box>\n {renderMenu}\n </Box>\n\n {/* Logout Confirmation Dialog */}\n <ConfirmPopUp\n open={logoutConfirmation}\n title={t(\"common.logout\")}\n description={t('common.logout_confirmation') || \"Are you sure, you want to logout?\"}\n onConfirm={() => logout()}\n onClose={handleLogoutConfirmation}\n fullWidth\n maxWidth=\"xs\"\n buttonTexts={{\n confirm: t(\"common.logout\"),\n cancel: t(\"common.cancel\"),\n }}\n />\n\n <ResetPasswordModal showModal={showModal} setShowModal={setShowModal} />\n </>\n );\n}\n\nexport default HeaderEnhanced;"],"names":["React","_a","KeyboardBackspaceIcon","logo","LockIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA8DO,SAAS,eAAe,OAAgD;;AAC7E,QAAM;AAAA,IACJ;AAAA;AAAA,IAGA,WAAW,gBAAgB,CAAA;AAAA,IAC3B,iBAAiB;AAAA,IACjB,kBAAkB,uBAAuB;AAAA,IACzC,eAAe,oBAAoB;AAAA,IACnC;AAAA,IACA;AAAA;AAAA,IAGA,WAAW;AAAA,EAAA,IACT;AAEJ,QAAM,WAAW,YAAA;AACjB,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,WAAW,YAAA;AACjB,QAAM,EAAE,QAAQ,KAAA,IAAS,QAAA;AAGzB,MAAI,qBAAqB;AAAA,IACvB,WAAW,CAAA;AAAA,IACX,iBAAiB,EAAE,OAAO,WAAW,MAAM,MAAM,WAAW,MAAA;AAAA,IAC5D,WAAW;AAAA,IACX,OAAO;AAAA,IACP,kBAAkB;AAAA,IAClB,OAAO;AAAA,EAAA;AAET,MAAI,WAAgB;AACpB,MAAI,eAAoB,CAAA;AAExB,MAAI,UAAU;AACZ,QAAI;AAEF,YAAM,EAAE,gBAAgB,mBAAmB,QAAQ,mBAAmB;AACtE,YAAM,EAAE,eAAA,IAAmB,QAAQ,oBAAoB;AAEvD,YAAM,cAAc,eAAe,CAAC,UAAe,MAAM,UAAU,EAAE;AACrE,iBAAW,eAAA;AACX,qBAAe,EAAE,eAAA;AAEjB,2BAAqB;AAAA,QACnB,aAAW,iBAAY,kBAAZ,mBAA2B,SAAQ,CAA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AA,MAAA;AAAA,QACC,MAAM;AAAA,QACN,OAAO,EAAE,eAAe;AAAA,QACxB,aAAa,EAAE,4BAA4B,KAAK;AAAA,QAChD,WAAW,MAAM,OAAA;AAAA,QACjB,SAAS;AAAA,QACT,WAAS;AAAA,QACT,UAAS;AAAA,QACT,aAAa;AAAA,UACX,SAAS,EAAE,eAAe;AAAA,UAC1B,QAAQ,EAAE,eAAe;AAAA,QAAA;AAAA,MAC3B;AAAA,IAAA;AAAA,IAGF,oBAAC,oBAAA,EAAmB,WAAsB,cAA4B;AAAA,EAAA,GACxE;AAEJ;"}
@@ -1,33 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react"),l=require("react-router-dom"),s=require("react-i18next"),n=,/* empty css */r=,/* empty css */t=,/* empty css */i=,/* empty css */o=,/* empty css */u=,/* empty css */c=,/* empty css */d=,/* empty css */g=,/* empty css */m=,/* empty css */h=,/* empty css */x=,/* empty css */j=;/* empty css */;/* empty css */var f=,/* empty css */p=,/* empty css */v=,/* empty css */y=,/* empty css */L=,/* empty css */b=,/* empty css */_=,/* empty css */q=;/* empty css */function N(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var w=/* @__PURE__ */N(a);function k(N){var k,S,A,C;const{isDropdownShow:I,languages:T=[],currentLanguage:z,languagesLoading:D=!1,languageError:E="",onLanguageChange:F,onFetchLanguages:M,useRedux:R=!1}=N,B=l.useNavigate(),{t:P}=s.useTranslation(),O=l.useLocation(),{logout:W,user:$}=d.useAuth();let G={languages:[],currentLanguage:{label:"English",code:"en",direction:"ltr"},isLoading:!1,error:"",isFallbackActive:!1,isRtl:!1},H=null,V={};if(R)try{const{useAppSelector:e,useAppDispatch:a}=require("../../redux/hooks"),{fetchLanguages:l}=require("../../redux/slices"),s=e(e=>e.header||{});H=a(),V={fetchLanguages:l},G={languages:(null==(k=s.languagesData)?void 0:k.data)||[],currentLanguage:s.currentLanguage||G.currentLanguage,isLoading:(null==(S=s.languagesData)?void 0:S.isLoading)||!1,error:(null==(A=s.languagesData)?void 0:A.error)||"",isFallbackActive:!1,isRtl:"rtl"===(null==(C=s.currentLanguage)?void 0:C.direction)}}catch(Ae){}const{languages:J,currentLanguage:K,changeLanguage:U,isLoading:Q,error:X,isFallbackActive:Y,fetchLanguages:Z,isRtl:ee}=h.useLanguage(),ae=R?G.languages:T.length>0?T:J,le=R?G.currentLanguage:z||K,se=R?G.isLoading:D||Q,ne=R?G.error:E||X,re=R?G.isFallbackActive:Y,te=R?G.isRtl:ee,{pathname:ie}=O,[oe,ue]=w.default.useState(null),[ce,de]=a.useState(!1),[ge,me]=a.useState(null),[he,xe]=a.useState([]),[je,fe]=a.useState(null),[pe,ve]=a.useState(!1),ye=localStorage.getItem("_u_data")||void 0,Le=ye?JSON.parse(ye):"",be=Boolean(oe),_e=()=>de(!ce),qe=a.useCallback(e=>{const a=Array.isArray(e)?e.map(e=>({path:e})):[{path:e}];return Boolean(l.matchRoutes(a,O))},[O]);a.useEffect(()=>{const e=he.find(e=>{var a;return(null==(a=null==e?void 0:e.link)?void 0:a.toLowerCase())===ie.toLowerCase()||qe(e.connectedRoutes)});e&&me(e)},[ie,he,qe]),a.useEffect(()=>{xe(u.default(P))},[P]);const Ne=e=>{const a=e.target.value;if(fe(null),!ae||0===ae.length){const e=P("header.language_not_available")||"Languages not available";return void fe(e)}if(ae.some(e=>e.code===a))try{R||(F?F(a):U(a))}catch(Ae){const a=Ae instanceof Error?Ae.message:"Failed to change language";fe(a)}else{const e=P("header.language_not_found",{language:a})||`Selected language "${a}" is not available`;fe(e)}},we=async()=>{fe(null);try{R&&H&&V.fetchLanguages?await H(V.fetchLanguages()):M?await M():await Z()}catch(Ae){fe("Failed to reload languages")}},ke="primary-search-account-menu",Se=/* @__PURE__ */e.jsxs(f.default,{className:"main-profile-menu",anchorEl:oe,id:ke,keepMounted:!0,open:be,onClose:()=>{ue(null)},children:[
2
- /* @__PURE__ */e.jsx(p.default,{className:"user-assigned",children:/* @__PURE__ */e.jsx("span",{children:P("common.assigned_roles")||"Assigned roles"})}),
3
- /* @__PURE__ */e.jsxs(p.default,{className:"user-data-wrap",value:Le.role_id,children:[
4
- /* @__PURE__ */e.jsx(v.default,{children:/* @__PURE__ */e.jsx(c.Avatar,{size:27,alt:Le.role_name})}),
5
- /* @__PURE__ */e.jsx(y.default,{className:"size15",children:Le.role_name}),
6
- /* @__PURE__ */e.jsx(t.Typography,{variant:"body2",color:"text.secondary",children:/* @__PURE__ */e.jsx("img",{src:i.images.tickicon,alt:"Active"})})]}),
7
- /* @__PURE__ */e.jsx(L.default,{}),
8
- /* @__PURE__ */e.jsxs(p.default,{className:"user-assigned",onClick:()=>{ve(!0),ue(null)},children:[
9
- /* @__PURE__ */e.jsx(v.default,{children:/* @__PURE__ */e.jsx(b.Eye,{fontSize:"medium",width:20,height:20,htmlColor:"#292D32"})}),
10
- /* @__PURE__ */e.jsx(y.default,{className:"size15",children:P("common.change_password")})]}),
11
- /* @__PURE__ */e.jsx(L.default,{}),
12
- /* @__PURE__ */e.jsxs(p.default,{className:"menu-item-color",onClick:()=>{_e(),ue(null)},children:[
13
- /* @__PURE__ */e.jsx(v.default,{children:/* @__PURE__ */e.jsx("img",{src:i.images.logout,alt:"logout"})}),
14
- /* @__PURE__ */e.jsx(y.default,{className:"size15",children:P("common.logout")})]})]});/* @__PURE__ */
15
- return e.jsxs(e.Fragment,{children:[
16
- /* @__PURE__ */e.jsxs(_.default,{className:"main-box",children:[!I&&/* @__PURE__ */e.jsx(l.Link,{to:$?Pathname.DASHBOARD:Pathname.LOGIN,children:/* @__PURE__ */e.jsx("img",{src:i.images.logo,alt:"logo"})}),
17
- /* @__PURE__ */e.jsx(_.default,{className:"second-box",children:I&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
18
- /* @__PURE__ */e.jsx(q.default,{onClick:()=>{window.history.back()},children:/* @__PURE__ */e.jsx(r.default,{className:te?"arrow-pointer_rtl":"arrow-pointer"})}),
19
- /* @__PURE__ */e.jsx(_.default,{width:250,children:/* @__PURE__ */e.jsx(o.Select,{fullWidth:!0,placeholder:"Placeholder",size:"small",value:(null==ge?void 0:ge.link)||"",onChange:e=>{const a=e.target.value;setTimeout(()=>{B(a)},300)},className:"select-box",variant:"outlined",renderValue:a=>/* @__PURE__ */e.jsx(e.Fragment,{children:ge?/* @__PURE__ */e.jsxs(_.default,{className:"selected-menu-box",children:[
20
- /* @__PURE__ */e.jsx("img",{src:ge.icon,alt:ge.label}),ge.label]}):a}),children:he.map((a,l)=>/* @__PURE__ */e.jsxs(p.default,{className:"select-box-menu-item",value:a.link,children:[
21
- /* @__PURE__ */e.jsx("img",{src:a.icon,alt:a.label}),a.label]},l))})})]})}),
22
- /* @__PURE__ */e.jsxs(_.default,{className:"header-right-wrap",children:[
23
- /* @__PURE__ */e.jsx(_.default,{className:"language-selector-wrapper",children:(()=>{const a=ae&&0!==ae.length?ae.some(e=>"en"===e.code)?ae:[{code:"en",label:"English",direction:"ltr"},...ae]:[{code:"en",label:"English",direction:"ltr"}],l=(null==le?void 0:le.code)||"en";return se?/* @__PURE__ */e.jsx(_.default,{className:"language-loading",children:/* @__PURE__ */e.jsx(t.Typography,{variant:"body2",color:"text.secondary",children:"Loading..."})}):/* @__PURE__ */e.jsxs(o.Select,{onChange:Ne,size:"small",value:l,renderValue:()=>le?re||ne?`${le.label}`:le.label:P("header.select_language")||"Select Language",error:!!je,className:re||ne?"language-fallback-active":"",children:[a.map(({code:a,label:l})=>/* @__PURE__ */e.jsx(p.default,{value:a,children:/* @__PURE__ */e.jsx(t.Typography,{type:"s4",weight:"medium",color:"theme.secondary.1000",children:l})},a)),ne&&/* @__PURE__ */e.jsx(p.default,{onClick:we,style:{fontStyle:"italic"},children:/* @__PURE__ */e.jsxs(t.Typography,{type:"s4",weight:"medium",color:"theme.secondary.500",children:["🔄 ",P("header.retry_languages")||"Retry loading languages"]})})]})})()}),
24
- /* @__PURE__ */e.jsx(j.NotificationMenu,{}),
25
- /* @__PURE__ */e.jsx(q.default,{size:"small","aria-label":"help",className:"p-0",children:/* @__PURE__ */e.jsx("img",{src:i.images.question,alt:"question icon"})}),
26
- /* @__PURE__ */e.jsx("img",{src:i.images.vdivider,alt:"divider icon"}),localStorage.getItem("_tid")?/* @__PURE__ */e.jsxs(_.default,{className:"user-profile-box",onClick:e=>ue(e.currentTarget),children:[
27
- /* @__PURE__ */e.jsx(c.Avatar,{size:32,src:(null==$?void 0:$.profile_image)?`https://erpforce-dev.s3.eu-west-1.amazonaws.com/${null==$?void 0:$.profile_image}`:void 0,alt:m.formatText(null==$?void 0:$.full_name),className:"avatar-class"}),
28
- /* @__PURE__ */e.jsxs("div",{children:[
29
- /* @__PURE__ */e.jsx(t.Typography,{className:"profile-name",children:null==$?void 0:$.full_name}),
30
- /* @__PURE__ */e.jsx(t.Typography,{className:"user-auth",children:null==$?void 0:$.role_name})]})]}):/* @__PURE__ */e.jsx(q.default,{size:"large",edge:"end","aria-label":"account of current user","aria-controls":ke,"aria-haspopup":"true",component:l.Link,to:Pathname.LOGIN,color:"inherit",children:/* @__PURE__ */e.jsx(n.default,{className:"icon-btn"})})]}),Se]}),
31
- /* @__PURE__ */e.jsx(g.ConfirmPopUp,{open:ce,title:P("common.logout"),description:P("common.logout_confirmation")||"Are you sure, you want to logout?",onConfirm:()=>W(),onClose:_e,fullWidth:!0,maxWidth:"xs",buttonTexts:{confirm:P("common.logout"),cancel:P("common.cancel")}}),
32
- /* @__PURE__ */e.jsx(x.ResetPasswordModal,{showModal:pe,setShowModal:ve})]})}exports.HeaderEnhanced=k,exports.default=k;
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/header/header-enhanced.tsx"],"sourcesContent":["// components/header/Header.tsx - Enhanced version with optional Redux support\nimport React, { useState, useEffect, useCallback } from \"react\";\nimport { Link, matchRoutes, useLocation, useNavigate } from \"react-router-dom\";\nimport Box from \"@mui/material/Box\";\nimport { useTranslation } from \"react-i18next\";\nimport LockIcon from \"@mui/icons-material/Lock\";\nimport IconButton from \"@mui/material/IconButton\";\nimport MenuItem from \"@mui/material/MenuItem\";\nimport Menu from \"@mui/material/Menu\";\nimport KeyboardBackspaceIcon from \"@mui/icons-material/KeyboardBackspace\";\nimport ListItemText from \"@mui/material/ListItemText\";\nimport Divider from \"@mui/material/Divider\";\nimport ListItemIcon from \"@mui/material/ListItemIcon\";\n\n// import { Pathname } from \"../../pathname\"; // Removed - should be passed as props\nimport Typography from \"../typography/typography\";\nimport logo, { images } from \"../../assets/images\";\nimport Select from \"../select/select\";\nimport modules from \"../../constants/modules\"; // Removed - should be passed as props\nimport Avatar from \"../avatar/avatar\";\nimport { useAuth } from \"../../hooks/useAuth\";\nimport ConfirmPopUp from \"../confirm-modal/confirm-modal\";\nimport formatText from \"../../utils/format-text\";\nimport { useLanguage } from \"../../hooks/useLangauge\";\nimport { Eye } from \"../icons\";\nimport ResetPasswordModal from \"../reset-password-modal/reset-password-modal\";\nimport NotificationMenu from \"./components/notification-menu/notification-menu\";\nimport \"./header.scss\";\n\ninterface ILanguage {\n label: string;\n code: string;\n direction: string;\n}\n\ninterface IModule {\n label: any;\n link: string;\n sidebar: string;\n icon: string;\n permission: string;\n bg: string;\n connectedRoutes: string[];\n translationModule: string;\n}\n\n// Enhanced props interface\ninterface HeaderEnhancedProps {\n isDropdownShow?: boolean;\n \n // Language props (alternative to Redux)\n languages?: ILanguage[];\n currentLanguage?: ILanguage;\n languagesLoading?: boolean;\n languageError?: string;\n onLanguageChange?: (languageCode: string) => void;\n onFetchLanguages?: () => Promise<void>;\n \n // Redux integration (optional)\n useRedux?: boolean;\n}\n\nexport function HeaderEnhanced(props: HeaderEnhancedProps): React.ReactElement {\n const {\n isDropdownShow,\n \n // Non-Redux props\n languages: propLanguages = [],\n currentLanguage: propCurrentLanguage,\n languagesLoading: propLanguagesLoading = false,\n languageError: propLanguageError = \"\",\n onLanguageChange,\n onFetchLanguages,\n \n // Redux integration\n useRedux = false,\n } = props;\n\n const navigate = useNavigate();\n const { t } = useTranslation();\n const location = useLocation();\n const { logout, user } = useAuth();\n \n // Conditional Redux usage\n let reduxLanguageState = {\n languages: [],\n currentLanguage: { label: 'English', code: 'en', direction: 'ltr' },\n isLoading: false,\n error: '',\n isFallbackActive: false,\n isRtl: false\n };\n let dispatch: any = null;\n let reduxActions: any = {};\n \n if (useRedux) {\n try {\n // Dynamic import of Redux hooks and actions\n const { useAppSelector, useAppDispatch } = require(\"../../redux/hooks\");\n const { fetchLanguages } = require(\"../../redux/slices\");\n \n const headerState = useAppSelector((store: any) => store.header || {});\n dispatch = useAppDispatch();\n reduxActions = { fetchLanguages };\n \n reduxLanguageState = {\n languages: headerState.languagesData?.data || [],\n currentLanguage: headerState.currentLanguage || reduxLanguageState.currentLanguage,\n isLoading: headerState.languagesData?.isLoading || false,\n error: headerState.languagesData?.error || '',\n isFallbackActive: false, // This would need to be computed\n isRtl: headerState.currentLanguage?.direction === 'rtl'\n };\n } catch (error) {\n console.warn(\"Redux not available for Header, falling back to prop-based data\");\n }\n }\n\n // Use Redux data if available, otherwise use props or useLanguage hook\n const { \n languages: hookLanguages, \n currentLanguage: hookCurrentLanguage, \n changeLanguage: hookChangeLanguage, \n isLoading: hookLanguagesLoading,\n error: hookLanguageError,\n isFallbackActive: hookIsFallbackActive,\n fetchLanguages: hookFetchLanguages,\n isRtl: hookIsRtl\n } = useLanguage();\n\n // Determine which data source to use\n const languages = useRedux ? reduxLanguageState.languages : (propLanguages.length > 0 ? propLanguages : hookLanguages);\n const currentLanguage = useRedux ? reduxLanguageState.currentLanguage : (propCurrentLanguage || hookCurrentLanguage);\n const languagesLoading = useRedux ? reduxLanguageState.isLoading : (propLanguagesLoading || hookLanguagesLoading);\n const languageContextError = useRedux ? reduxLanguageState.error : (propLanguageError || hookLanguageError);\n const isFallbackActive = useRedux ? reduxLanguageState.isFallbackActive : hookIsFallbackActive;\n const isRtl = useRedux ? reduxLanguageState.isRtl : hookIsRtl;\n\n const { pathname } = location;\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n const [logoutConfirmation, setLogoutConfirmation] = useState<boolean>(false);\n const [selectedModule, setSelectedModule] = useState<IModule | null>(null);\n const [erp_modules, setModules] = useState<IModule[]>([]);\n const [localLanguageError, setLocalLanguageError] = useState<string | null>(null);\n const [showModal, setShowModal] = useState(false);\n\n const u_data = localStorage.getItem(\"_u_data\") || undefined;\n const userData = u_data ? JSON.parse(u_data) : \"\";\n const isMenuOpen = Boolean(anchorEl);\n\n const handleLogoutConfirmation = () =>\n setLogoutConfirmation(!logoutConfirmation);\n\n const checkMatchedRoutes = useCallback(\n (paths: string[] | string) => {\n const shouldMatch: { path: string }[] = Array.isArray(paths)\n ? paths.map((path: string) => ({ path }))\n : [{ path: paths }];\n\n return Boolean(matchRoutes(shouldMatch, location));\n },\n [location],\n );\n\n const handleChangePasswordView = () => {\n setShowModal(true);\n }\n\n useEffect(() => {\n const moduleName = erp_modules.find(\n (module: IModule) =>\n module?.link?.toLowerCase() === pathname.toLowerCase() || \n checkMatchedRoutes(module.connectedRoutes),\n );\n\n if (moduleName) {\n setSelectedModule(moduleName);\n }\n }, [pathname, erp_modules, checkMatchedRoutes]);\n\n useEffect(() => {\n setModules(modules(t));\n }, [t]);\n\n // Enhanced language change handler\n const onChangeLang = (e: React.ChangeEvent<HTMLSelectElement>) => {\n const lang_code = e.target.value;\n \n // Clear any previous errors\n setLocalLanguageError(null);\n \n // Validate the language exists before changing\n if (!languages || languages.length === 0) {\n const errorMsg = t('header.language_not_available') || 'Languages not available';\n setLocalLanguageError(errorMsg);\n return;\n }\n \n const languageExists = languages.some((lang: ILanguage) => lang.code === lang_code);\n \n if (languageExists) {\n try {\n if (useRedux) {\n // Use Redux action (would need to be implemented in the slice)\n // dispatch(setCurrentLanguage({ code: lang_code, ... }));\n } else if (onLanguageChange) {\n onLanguageChange(lang_code);\n } else {\n hookChangeLanguage(lang_code);\n }\n } catch (error) {\n const errorMsg = error instanceof Error ? error.message : 'Failed to change language';\n setLocalLanguageError(errorMsg);\n }\n } else {\n const errorMsg = t('header.language_not_found', { language: lang_code }) || \n `Selected language \"${lang_code}\" is not available`;\n setLocalLanguageError(errorMsg);\n }\n };\n\n // Retry language loading\n const handleRetryLanguages = async () => {\n setLocalLanguageError(null);\n try {\n if (useRedux && dispatch && reduxActions.fetchLanguages) {\n await dispatch(reduxActions.fetchLanguages());\n } else if (onFetchLanguages) {\n await onFetchLanguages();\n } else {\n await hookFetchLanguages();\n }\n } catch (error) {\n const errorMsg = 'Failed to reload languages';\n setLocalLanguageError(errorMsg);\n }\n };\n\n const handleProfileMenuOpen = (event: React.MouseEvent<HTMLElement>) =>\n setAnchorEl(event.currentTarget);\n\n const handleMenuClose = () => {\n setAnchorEl(null);\n };\n\n const handleChange = (event: any) => {\n const selectedLink = event.target.value;\n setTimeout(() => {\n navigate(selectedLink);\n }, 300);\n };\n\n const handleBackButton = () => {\n window.history.back();\n };\n\n // Get current language display value with fallback indication\n const getCurrentLanguageDisplay = (): string => {\n if (!currentLanguage) return t('header.select_language') || 'Select Language';\n \n // Show fallback indicator for better UX\n if (isFallbackActive || languageContextError) {\n return `${currentLanguage.label}`;\n }\n \n return currentLanguage.label;\n };\n\n // Create English fallback for consistent display\n const createEnglishFallback = (): ILanguage => ({\n code: 'en',\n label: 'English',\n direction: 'ltr'\n });\n\n // Get languages for dropdown - ensure English is always available\n const getLanguagesForDropdown = (): ILanguage[] => {\n if (!languages || languages.length === 0) {\n // If no languages available, show only English\n return [createEnglishFallback()];\n }\n \n // Ensure English is in the list\n const hasEnglish = languages.some(lang => lang.code === 'en');\n if (!hasEnglish) {\n return [createEnglishFallback(), ...languages];\n }\n \n return languages;\n };\n\n // Render language selector based on different states\n const renderLanguageSelector = () => {\n const availableLanguages = getLanguagesForDropdown();\n const displayValue = currentLanguage?.code || 'en'; // Default to English\n\n // Loading state\n if (languagesLoading) {\n return (\n <Box className=\"language-loading\">\n <Typography variant=\"body2\" color=\"text.secondary\">\n {'Loading...'}\n </Typography>\n </Box>\n );\n }\n\n // Always show dropdown with at least English available\n return (\n <Select\n onChange={onChangeLang}\n size=\"small\"\n value={displayValue}\n renderValue={() => getCurrentLanguageDisplay()}\n error={!!localLanguageError}\n className={isFallbackActive || languageContextError ? 'language-fallback-active' : ''}\n >\n {availableLanguages.map(({ code, label }: ILanguage) => (\n <MenuItem key={code} value={code}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.1000\"\n >\n {label}\n </Typography>\n </MenuItem>\n ))}\n \n {/* Show retry option if there's an error */}\n {languageContextError && (\n <MenuItem onClick={handleRetryLanguages} style={{ fontStyle: 'italic' }}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.500\"\n >\n 🔄 {t('header.retry_languages') || 'Retry loading languages'}\n </Typography>\n </MenuItem>\n )}\n </Select>\n );\n };\n\n const menuId = \"primary-search-account-menu\";\n const renderMenu = (\n <Menu\n className=\"main-profile-menu\"\n anchorEl={anchorEl}\n id={menuId}\n keepMounted\n open={isMenuOpen}\n onClose={handleMenuClose}\n >\n <MenuItem className=\"user-assigned\">\n <span>{t('common.assigned_roles') || 'Assigned roles'}</span>\n </MenuItem>\n <MenuItem className=\"user-data-wrap\" value={userData.role_id}>\n <ListItemIcon>\n <Avatar size={27} alt={userData.role_name} />\n </ListItemIcon>\n <ListItemText className=\"size15\">\n {userData.role_name}\n </ListItemText>\n <Typography variant=\"body2\" color=\"text.secondary\">\n <img src={images.tickicon} alt=\"Active\" />\n </Typography>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"user-assigned\"\n onClick={() => {\n handleChangePasswordView();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <Eye fontSize=\"medium\" width={20} height={20} htmlColor=\"#292D32\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.change_password\")}</ListItemText>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"menu-item-color\"\n onClick={() => {\n handleLogoutConfirmation();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <img src={images.logout} alt=\"logout\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.logout\")}</ListItemText>\n </MenuItem>\n </Menu>\n );\n\n return (\n <>\n <Box className=\"main-box\">\n {!isDropdownShow && (\n <Link to={user ? Pathname.DASHBOARD : Pathname.LOGIN}>\n <img src={images.logo} alt=\"logo\" />\n </Link>\n )}\n <Box className=\"second-box\">\n {isDropdownShow && (\n <>\n <IconButton onClick={handleBackButton}>\n <KeyboardBackspaceIcon\n className={isRtl?\"arrow-pointer_rtl\":\"arrow-pointer\"}\n />\n </IconButton>\n <Box width={250}>\n <Select\n fullWidth\n placeholder=\"Placeholder\"\n size={\"small\"}\n value={selectedModule?.link || \"\"}\n onChange={handleChange}\n className=\"select-box\"\n variant=\"outlined\"\n renderValue={(value: string) => (\n <>\n {selectedModule ? (\n <Box className=\"selected-menu-box\">\n <img\n src={selectedModule.icon}\n alt={selectedModule.label}\n />\n {selectedModule.label}\n </Box>\n ) : (\n value\n )}\n </>\n )}\n >\n {erp_modules.map((module: any, index: number) => (\n <MenuItem\n className=\"select-box-menu-item\"\n value={module.link}\n key={index}\n >\n <img src={module.icon} alt={module.label} />\n {module.label}\n </MenuItem>\n ))}\n </Select>\n </Box>\n </>\n )}\n </Box>\n <Box className=\"header-right-wrap\">\n {/* Language Selector with Enhanced Fallback Support */}\n <Box className=\"language-selector-wrapper\">\n {renderLanguageSelector()}\n </Box>\n\n <NotificationMenu/>\n <IconButton\n size=\"small\"\n aria-label=\"help\"\n className=\"p-0\"\n >\n <img src={logo.question} alt=\"question icon\" />\n </IconButton>\n <img src={logo.vdivider} alt=\"divider icon\" />\n {localStorage.getItem(\"_tid\") ? (\n <Box className=\"user-profile-box\" onClick={handleProfileMenuOpen}>\n <Avatar\n size={32}\n src={user?.profile_image ? `${import.meta.env.VITE_S3_BUCKET_URL}${user?.profile_image}` : undefined}\n alt={formatText(user?.full_name)}\n className=\"avatar-class\"\n />\n <div>\n <Typography className=\"profile-name\">\n {user?.full_name}\n </Typography>\n <Typography className=\"user-auth\">\n {user?.role_name}\n </Typography>\n </div>\n </Box>\n ) : (\n <IconButton\n size=\"large\"\n edge=\"end\"\n aria-label=\"account of current user\"\n aria-controls={menuId}\n aria-haspopup=\"true\"\n component={Link}\n to={Pathname.LOGIN}\n color=\"inherit\"\n >\n <LockIcon className=\"icon-btn\" />\n </IconButton>\n )}\n </Box>\n {renderMenu}\n </Box>\n\n {/* Logout Confirmation Dialog */}\n <ConfirmPopUp\n open={logoutConfirmation}\n title={t(\"common.logout\")}\n description={t('common.logout_confirmation') || \"Are you sure, you want to logout?\"}\n onConfirm={() => logout()}\n onClose={handleLogoutConfirmation}\n fullWidth\n maxWidth=\"xs\"\n buttonTexts={{\n confirm: t(\"common.logout\"),\n cancel: t(\"common.cancel\"),\n }}\n />\n\n <ResetPasswordModal showModal={showModal} setShowModal={setShowModal} />\n </>\n );\n}\n\nexport default HeaderEnhanced;"],"names":["HeaderEnhanced","props","isDropdownShow","languages","propLanguages","currentLanguage","propCurrentLanguage","languagesLoading","propLanguagesLoading","languageError","propLanguageError","onLanguageChange","onFetchLanguages","useRedux","navigate","useNavigate","t","useTranslation","location","useLocation","logout","user","useAuth","reduxLanguageState","label","code","direction","isLoading","error","isFallbackActive","isRtl","dispatch","reduxActions","useAppSelector","useAppDispatch","require","fetchLanguages","headerState","store","header","_a","languagesData","data","_b","_c","_d","hookLanguages","hookCurrentLanguage","changeLanguage","hookChangeLanguage","hookLanguagesLoading","hookLanguageError","hookIsFallbackActive","hookFetchLanguages","hookIsRtl","useLanguage","length","languageContextError","pathname","anchorEl","setAnchorEl","React","useState","logoutConfirmation","setLogoutConfirmation","selectedModule","setSelectedModule","erp_modules","setModules","localLanguageError","setLocalLanguageError","showModal","setShowModal","u_data","localStorage","getItem","userData","JSON","parse","isMenuOpen","Boolean","handleLogoutConfirmation","checkMatchedRoutes","useCallback","paths","shouldMatch","Array","isArray","map","path","matchRoutes","useEffect","moduleName","find","module","link","toLowerCase","connectedRoutes","modules","onChangeLang","e","lang_code","target","value","errorMsg","some","lang","Error","message","language","handleRetryLanguages","async","menuId","renderMenu","jsxs","Menu","className","id","keepMounted","open","onClose","children","MenuItem","jsx","role_id","ListItemIcon","Avatar","size","alt","role_name","ListItemText","Typography","variant","color","src","images","tickicon","Divider","onClick","Eye","fontSize","width","height","htmlColor","Fragment","Box","Link","to","Pathname","DASHBOARD","LOGIN","logo","IconButton","window","history","back","KeyboardBackspaceIcon","Select","fullWidth","placeholder","onChange","event","selectedLink","setTimeout","renderValue","icon","index","availableLanguages","displayValue","type","weight","style","fontStyle","renderLanguageSelector","NotificationMenu","question","vdivider","currentTarget","profile_image","formatText","full_name","edge","component","LockIcon","ConfirmPopUp","title","description","onConfirm","maxWidth","buttonTexts","confirm","cancel","ResetPasswordModal"],"mappings":"+jDA8DO,SAASA,EAAeC,eAC7B,MAAMC,eACJA,EAGAC,UAAWC,EAAgB,GAC3BC,gBAAiBC,EACjBC,iBAAkBC,GAAuB,EACzCC,cAAeC,EAAoB,GAAAC,iBACnCA,EAAAC,iBACAA,EAAAC,SAGAA,GAAW,GACTZ,EAEEa,EAAWC,EAAAA,eACXC,EAAEA,GAAMC,mBACRC,EAAWC,EAAAA,eACXC,OAAEA,EAAAC,KAAQA,GAASC,YAGzB,IAAIC,EAAqB,CACvBpB,UAAW,GACXE,gBAAiB,CAAEmB,MAAO,UAAWC,KAAM,KAAMC,UAAW,OAC5DC,WAAW,EACXC,MAAO,GACPC,kBAAkB,EAClBC,OAAO,GAELC,EAAgB,KAChBC,EAAoB,CAAA,EAExB,GAAInB,EACF,IAEE,MAAMoB,eAAEA,EAAAC,eAAgBA,GAAmBC,QAAQ,sBAC7CC,eAAEA,GAAmBD,QAAQ,sBAE7BE,EAAcJ,EAAgBK,GAAeA,EAAMC,QAAU,IACnER,EAAWG,IACXF,EAAe,CAAEI,kBAEjBb,EAAqB,CACnB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