@erpsquad/common 1.8.41 → 1.8.42

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 (1064) 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 +4 -2
  4. package/dist/_virtual/index/index.esm2.js.map +1 -1
  5. package/dist/_virtual/index/index.esm3.js +2 -4
  6. package/dist/_virtual/index/index.esm3.js.map +1 -1
  7. package/dist/_virtual/index/index.esm4.js +1 -1
  8. package/dist/_virtual/index/index.esm5.js +3 -3
  9. package/dist/_virtual/index/index.esm6.js +3 -3
  10. package/dist/_virtual/index/index.esm7.js +3 -3
  11. package/dist/_virtual/index/index.esm8.js +3 -3
  12. package/dist/_virtual/index/index.esm9.js +3 -3
  13. package/dist/_virtual/index/index10.js +1 -1
  14. package/dist/_virtual/index/index11.js +1 -1
  15. package/dist/_virtual/index/index2.js +1 -1
  16. package/dist/_virtual/index/index3.js +1 -1
  17. package/dist/_virtual/index/index4.js +1 -1
  18. package/dist/_virtual/index/index5.js +1 -1
  19. package/dist/_virtual/index/index6.js +1 -1
  20. package/dist/_virtual/index/index7.js +1 -1
  21. package/dist/_virtual/index/index8.js +1 -1
  22. package/dist/_virtual/index/index9.js +1 -1
  23. package/dist/components/action-bar/action-bar/index.esm.js +2 -2
  24. package/dist/components/action-bar/action-bar/index.js +11 -11
  25. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
  26. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js.map +1 -1
  27. package/dist/components/approval-wrapper/approval-wrapper/index.js +4 -4
  28. package/dist/components/approval-wrapper/approval-wrapper/index.js.map +1 -1
  29. package/dist/components/change-user-password-modal/change-user-password-modal/index.esm.js +2 -2
  30. package/dist/components/change-user-password-modal/change-user-password-modal/index.js +3 -3
  31. package/dist/components/charts/line-chart/area-lineChart/index.esm.js +2 -2
  32. package/dist/components/charts/line-chart/area-lineChart/index.esm.js.map +1 -1
  33. package/dist/components/charts/line-chart/area-lineChart/index.js.map +1 -1
  34. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js +107 -1
  35. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js.map +1 -1
  36. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js +7 -4
  37. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js.map +1 -1
  38. package/dist/components/examples/FlexibleReduxExample/index.esm.js +154 -0
  39. package/dist/components/examples/FlexibleReduxExample/index.esm.js.map +1 -0
  40. package/dist/components/examples/FlexibleReduxExample/index.js +19 -0
  41. package/dist/components/examples/FlexibleReduxExample/index.js.map +1 -0
  42. package/dist/components/filter/filter/index.esm.js +2 -2
  43. package/dist/components/filter/filter/index.js +7 -7
  44. package/dist/components/footer/index.esm.js +71 -0
  45. package/dist/components/footer/index.esm.js.map +1 -0
  46. package/dist/components/footer/index.js +7 -0
  47. package/dist/components/footer/index.js.map +1 -0
  48. package/dist/components/form-control/form-builder/element-controller/index.esm.js +96 -0
  49. package/dist/components/form-control/form-builder/element-controller/index.esm.js.map +1 -0
  50. package/dist/components/form-control/form-builder/element-controller/index.js +7 -0
  51. package/dist/components/form-control/form-builder/element-controller/index.js.map +1 -0
  52. package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
  53. package/dist/components/form-control/form-builder/form-builder-element/table/index.js +4 -4
  54. package/dist/components/form-control/form-builder/form-builder-element/table/index.js.map +1 -1
  55. package/dist/components/form-control/form-parser/data/index.esm.js +80 -0
  56. package/dist/components/form-control/form-parser/data/index.esm.js.map +1 -0
  57. package/dist/components/form-control/form-parser/data/index.js +2 -0
  58. package/dist/components/form-control/form-parser/data/index.js.map +1 -0
  59. package/dist/components/grid/custom-grid-card/custom-grid-card/index.esm.js +1 -1
  60. package/dist/components/grid/custom-grid-card/custom-grid-card/index.js +4 -4
  61. package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
  62. package/dist/components/header/components/notification-menu/notification-menu/index.js +28 -28
  63. package/dist/components/header/header/index.esm.js +1 -1
  64. package/dist/components/header/header/index.js +11 -11
  65. package/dist/components/header/header-enhanced/index.esm.js +405 -0
  66. package/dist/components/header/header-enhanced/index.esm.js.map +1 -0
  67. package/dist/components/header/header-enhanced/index.js +33 -0
  68. package/dist/components/header/header-enhanced/index.js.map +1 -0
  69. package/dist/components/header/redux/reducer/index.esm.js +6 -1
  70. package/dist/components/header/redux/reducer/index.esm.js.map +1 -1
  71. package/dist/components/header/redux/reducer/index.js +1 -1
  72. package/dist/components/header/redux/reducer/index.js.map +1 -1
  73. package/dist/components/header copy/index.esm.js +131 -0
  74. package/dist/components/header copy/index.esm.js.map +1 -0
  75. package/dist/components/header copy/index.js +11 -0
  76. package/dist/components/header copy/index.js.map +1 -0
  77. package/dist/components/icons/coupon/index.esm.js +29 -0
  78. package/dist/components/icons/coupon/index.esm.js.map +1 -0
  79. package/dist/components/icons/coupon/index.js +7 -0
  80. package/dist/components/icons/coupon/index.js.map +1 -0
  81. package/dist/components/icons/settings-fallback/index.esm.js +1 -1
  82. package/dist/components/icons/settings-fallback/index.js +2 -2
  83. package/dist/components/icons/settings-fallback/index.js.map +1 -1
  84. package/dist/components/icons/sort-arrow-icon/index.esm.js +4 -4
  85. package/dist/components/icons/sort-arrow-icon/index.esm.js.map +1 -1
  86. package/dist/components/icons/sort-arrow-icon/index.js +1 -1
  87. package/dist/components/icons/sort-arrow-icon/index.js.map +1 -1
  88. package/dist/components/index.d.ts +112 -277
  89. package/dist/components/index.esm.js +444 -603
  90. package/dist/components/index.esm.js.map +1 -1
  91. package/dist/components/index.js +1 -1
  92. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +400 -0
  93. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js.map +1 -0
  94. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +41 -0
  95. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js.map +1 -0
  96. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +2 -0
  97. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js.map +1 -1
  98. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
  99. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js.map +1 -1
  100. package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.esm.js.map +1 -1
  101. package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.js.map +1 -1
  102. package/dist/components/listing/listing/index.esm.js +5 -5
  103. package/dist/components/listing/listing/index.esm.js.map +1 -1
  104. package/dist/components/listing/listing/index.js +5 -5
  105. package/dist/components/listing/listing/index.js.map +1 -1
  106. package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
  107. package/dist/components/material-editable-table/material-editable-table/index.js +2 -2
  108. package/dist/components/material-table/material-table/index.esm.js +4 -3
  109. package/dist/components/material-table/material-table/index.esm.js.map +1 -1
  110. package/dist/components/material-table/material-table/index.js +5 -5
  111. package/dist/components/material-table/material-table/index.js.map +1 -1
  112. package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
  113. package/dist/components/parties-modal/parties-modal/index.js +13 -13
  114. package/dist/components/parties-modal/parties-modal/index.js.map +1 -1
  115. package/dist/components/protected-route/index.esm.js +20 -0
  116. package/dist/components/protected-route/index.esm.js.map +1 -1
  117. package/dist/components/protected-route/index.js +2 -2
  118. package/dist/components/protected-route/index.js.map +1 -1
  119. package/dist/components/reports-title-bar/redux/reducer/index.esm.js +2 -0
  120. package/dist/components/reports-title-bar/redux/reducer/index.esm.js.map +1 -1
  121. package/dist/components/reports-title-bar/redux/reducer/index.js +1 -1
  122. package/dist/components/reports-title-bar/redux/reducer/index.js.map +1 -1
  123. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
  124. package/dist/components/reports-title-bar/reports-title-bar/index.js +8 -8
  125. package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
  126. package/dist/components/rfq-response/item-response-details/index.js +1 -1
  127. package/dist/components/rfq-response/item-response-details/index.js.map +1 -1
  128. package/dist/components/schedule-report/schedule-report/index.esm.js +2 -2
  129. package/dist/components/schedule-report/schedule-report/index.js +5 -5
  130. package/dist/components/schedule-report/schedule-report/index.js.map +1 -1
  131. package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
  132. package/dist/components/share-modal/redux/reducer/index.esm.js +2 -0
  133. package/dist/components/share-modal/redux/reducer/index.esm.js.map +1 -1
  134. package/dist/components/share-modal/redux/reducer/index.js +1 -1
  135. package/dist/components/share-modal/redux/reducer/index.js.map +1 -1
  136. package/dist/components/share-modal/share-modal-enhanced/index.esm.js +287 -0
  137. package/dist/components/share-modal/share-modal-enhanced/index.esm.js.map +1 -0
  138. package/dist/components/share-modal/share-modal-enhanced/index.js +24 -0
  139. package/dist/components/share-modal/share-modal-enhanced/index.js.map +1 -0
  140. package/dist/components/sidebar/sidebar/index.esm.js +2 -2
  141. package/dist/components/sidebar/sidebar/index.js +9 -9
  142. package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
  143. package/dist/components/upload-excel/upload-excel/index.js +5 -5
  144. package/dist/constants/index.d.ts +15 -15
  145. package/dist/constants/index.esm.js +104 -10
  146. package/dist/constants/index.esm.js.map +1 -1
  147. package/dist/constants/index.js +1 -1
  148. package/dist/constants/pathnames/pathname.manufacturing/index.esm.js +6 -0
  149. package/dist/constants/pathnames/pathname.manufacturing/index.esm.js.map +1 -1
  150. package/dist/constants/pathnames/pathname.manufacturing/index.js +1 -1
  151. package/dist/constants/pathnames/pathname.manufacturing/index.js.map +1 -1
  152. package/dist/constants/pathnames/pathname.rental/index.esm.js +12 -1
  153. package/dist/constants/pathnames/pathname.rental/index.esm.js.map +1 -1
  154. package/dist/constants/pathnames/pathname.rental/index.js +1 -1
  155. package/dist/constants/pathnames/pathname.rental/index.js.map +1 -1
  156. package/dist/contexts/AuthContext/index.esm.js +1 -1
  157. package/dist/contexts/AuthContext/index.esm.js.map +1 -1
  158. package/dist/contexts/AuthContext/index.js +1 -1
  159. package/dist/contexts/AuthContext/index.js.map +1 -1
  160. package/dist/contexts/index.d.ts +5 -16
  161. package/dist/contexts/index.esm.js +2 -2
  162. package/dist/contexts/index.js +1 -1
  163. package/dist/hooks/apiHelper/index.esm.js +1 -1
  164. package/dist/hooks/apiHelper/index.esm.js.map +1 -1
  165. package/dist/hooks/apiHelper/index.js +1 -1
  166. package/dist/hooks/apiHelper/index.js.map +1 -1
  167. package/dist/hooks/index.d.ts +16 -26
  168. package/dist/hooks/index.esm.js +25 -18
  169. package/dist/hooks/index.esm.js.map +1 -1
  170. package/dist/hooks/index.js +1 -1
  171. package/dist/hooks/use-material-calculations/index.esm.js +0 -8
  172. package/dist/hooks/use-material-calculations/index.esm.js.map +1 -1
  173. package/dist/hooks/use-material-calculations/index.js +1 -1
  174. package/dist/hooks/use-material-calculations/index.js.map +1 -1
  175. package/dist/hooks/useDataFetcher/index.esm.js +3 -2
  176. package/dist/hooks/useDataFetcher/index.esm.js.map +1 -1
  177. package/dist/hooks/useDataFetcher/index.js +1 -1
  178. package/dist/hooks/useDataFetcher/index.js.map +1 -1
  179. package/dist/hooks/useLanguageFallback/index.esm.js +0 -5
  180. package/dist/hooks/useLanguageFallback/index.esm.js.map +1 -1
  181. package/dist/hooks/useLanguageFallback/index.js +1 -1
  182. package/dist/hooks/useLanguageFallback/index.js.map +1 -1
  183. package/dist/hooks/useLocationFilter/index.esm.js +0 -5
  184. package/dist/hooks/useLocationFilter/index.esm.js.map +1 -1
  185. package/dist/hooks/useLocationFilter/index.js +1 -1
  186. package/dist/hooks/useLocationFilter/index.js.map +1 -1
  187. package/dist/hooks/useReduxIntegration/index.esm.js +39 -0
  188. package/dist/hooks/useReduxIntegration/index.esm.js.map +1 -0
  189. package/dist/hooks/useReduxIntegration/index.js +2 -0
  190. package/dist/hooks/useReduxIntegration/index.js.map +1 -0
  191. package/dist/icons/index.d.ts +177 -94
  192. package/dist/icons/index.esm.js +80 -76
  193. package/dist/icons/index.esm.js.map +1 -1
  194. package/dist/icons/index.js +1 -1
  195. package/dist/index.esm.js +640 -747
  196. package/dist/index.esm.js.map +1 -1
  197. package/dist/index.js +1 -1
  198. package/dist/layout/index.d.ts +2 -3
  199. package/dist/layout/index.esm.js +1 -1
  200. package/dist/layout/index.js +1 -1
  201. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
  202. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
  203. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
  204. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
  205. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js +2 -3
  206. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js.map +1 -1
  207. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js +1 -1
  208. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js.map +1 -1
  209. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.esm.js +1 -1
  210. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js +1 -1
  211. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js.map +1 -1
  212. package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.esm.js +1 -1
  213. package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.js +1 -1
  214. package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js +1 -1
  215. package/dist/node_modules/@mui/material/Popover/Popover/index.js +1 -1
  216. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js +1 -1
  217. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js +1 -1
  218. package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js +1 -1
  219. package/dist/node_modules/@mui/material/Tabs/Tabs/index.js +1 -1
  220. package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +2 -2
  221. package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
  222. package/dist/node_modules/@mui/system/colorManipulator/index.js.map +1 -1
  223. package/dist/node_modules/@mui/system/createStyled/index.esm.js +6 -6
  224. package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
  225. package/dist/node_modules/@mui/system/createStyled/index.js.map +1 -1
  226. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.esm.js +1 -1
  227. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.js +1 -1
  228. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js +1 -1
  229. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js +2 -2
  230. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
  231. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
  232. package/dist/node_modules/d3-axis/src/axis/index.esm.js +1 -5
  233. package/dist/node_modules/d3-axis/src/axis/index.esm.js.map +1 -1
  234. package/dist/node_modules/d3-axis/src/axis/index.js +1 -1
  235. package/dist/node_modules/d3-axis/src/axis/index.js.map +1 -1
  236. package/dist/node_modules/notistack/notistack.esm/index.esm.js +0 -3
  237. package/dist/node_modules/notistack/notistack.esm/index.esm.js.map +1 -1
  238. package/dist/node_modules/notistack/notistack.esm/index.js +1 -1
  239. package/dist/node_modules/notistack/notistack.esm/index.js.map +1 -1
  240. package/dist/node_modules/prop-types/checkPropTypes/index.esm.js +49 -56
  241. package/dist/node_modules/prop-types/checkPropTypes/index.esm.js.map +1 -1
  242. package/dist/node_modules/prop-types/checkPropTypes/index.js +1 -1
  243. package/dist/node_modules/prop-types/checkPropTypes/index.js.map +1 -1
  244. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js +2 -2
  245. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js.map +1 -1
  246. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js +1 -1
  247. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js.map +1 -1
  248. package/dist/redux/hooks/index.esm.js +1 -1
  249. package/dist/redux/index.d.ts +8 -13
  250. package/dist/redux/index.esm.js +14 -30
  251. package/dist/redux/index.esm.js.map +1 -1
  252. package/dist/redux/index.js +1 -1
  253. package/dist/redux/slices/inventoryReportsTitleBarSlice/index.esm.js +0 -6
  254. package/dist/redux/slices/inventoryReportsTitleBarSlice/index.esm.js.map +1 -1
  255. package/dist/redux/slices/inventoryReportsTitleBarSlice/index.js +1 -1
  256. package/dist/redux/slices/inventoryReportsTitleBarSlice/index.js.map +1 -1
  257. package/dist/redux/slices/reportsTitleBarSlice/index.esm.js +1 -7
  258. package/dist/redux/slices/reportsTitleBarSlice/index.esm.js.map +1 -1
  259. package/dist/redux/slices/reportsTitleBarSlice/index.js +1 -1
  260. package/dist/redux/slices/reportsTitleBarSlice/index.js.map +1 -1
  261. package/dist/redux/slices/shareSlice/index.esm.js +1 -3
  262. package/dist/redux/slices/shareSlice/index.esm.js.map +1 -1
  263. package/dist/redux/slices/shareSlice/index.js +1 -1
  264. package/dist/redux/slices/shareSlice/index.js.map +1 -1
  265. package/dist/src/@types/index.d.ts +5 -0
  266. package/dist/src/assets/common-component/index.d.ts +1 -0
  267. package/dist/src/assets/dynamic-svg-icon/index.d.ts +2 -0
  268. package/dist/src/assets/index.d.ts +5 -0
  269. package/dist/src/assets/view-modal/index.d.ts +12 -0
  270. package/dist/src/components/Dashboard/index.d.ts +4 -0
  271. package/dist/src/components/accordion/index.d.ts +2 -0
  272. package/dist/src/components/action-bar/index.d.ts +2 -0
  273. package/dist/src/components/activity-tag/index.d.ts +2 -0
  274. package/dist/src/components/activityArea/index.d.ts +2 -0
  275. package/dist/src/components/activityLog/index.d.ts +2 -0
  276. package/dist/src/components/alert/index.d.ts +2 -0
  277. package/dist/src/components/appbar/index.d.ts +2 -0
  278. package/dist/src/components/approval-wrapper/index.d.ts +2 -0
  279. package/dist/src/components/avatar/index.d.ts +2 -0
  280. package/dist/src/components/board/index.d.ts +4 -0
  281. package/dist/src/components/bread-crumb/index.d.ts +2 -0
  282. package/dist/src/components/button/index.d.ts +2 -0
  283. package/dist/src/components/calculation-summary/components/index.d.ts +10 -0
  284. package/dist/src/components/calculation-summary/index.d.ts +3 -0
  285. package/dist/src/components/calendar/index.d.ts +2 -0
  286. package/dist/src/components/card-wrapper/index.d.ts +2 -0
  287. package/dist/src/components/change-user-password-modal/index.d.ts +2 -0
  288. package/dist/src/components/charts/bar-chart/index.d.ts +2 -0
  289. package/dist/src/components/charts/barChart/index.d.ts +2 -0
  290. package/dist/src/components/charts/barLineChart/index.d.ts +2 -0
  291. package/dist/src/components/charts/donut-chart/index.d.ts +2 -0
  292. package/dist/src/components/charts/donutChart/index.d.ts +2 -0
  293. package/dist/src/components/charts/groupBarChart/index.d.ts +2 -0
  294. package/dist/src/components/charts/index.d.ts +12 -0
  295. package/dist/src/components/charts/line-chart/area-lineChart.d.ts +2 -2
  296. package/dist/src/components/charts/line-chart/index.d.ts +6 -0
  297. package/dist/src/components/charts/multiLineChart/index.d.ts +2 -0
  298. package/dist/src/components/checkbox/index.d.ts +2 -0
  299. package/dist/src/components/chip/index.d.ts +2 -0
  300. package/dist/src/components/chip-generator/index.d.ts +2 -0
  301. package/dist/src/components/color-picker-input/index.d.ts +2 -0
  302. package/dist/src/components/confirm-modal/index.d.ts +3 -0
  303. package/dist/src/components/country-select/index.d.ts +2 -0
  304. package/dist/src/components/custom-snackbar/index.d.ts +2 -0
  305. package/dist/src/components/custom-toggle-switch/index.d.ts +2 -0
  306. package/dist/src/components/date-picker/index.d.ts +2 -0
  307. package/dist/src/components/date-range-picker/index.d.ts +2 -0
  308. package/dist/src/components/date-time-picker/index.d.ts +2 -0
  309. package/dist/src/components/dropdown-button/index.d.ts +2 -0
  310. package/dist/src/components/dynamic-layout-wrapper/index.d.ts +2 -0
  311. package/dist/src/components/editor/index.d.ts +2 -0
  312. package/dist/src/components/entity-view-wrapper/index.d.ts +2 -0
  313. package/dist/src/components/examples/index.d.ts +2 -0
  314. package/dist/src/components/expandable-summary-wrapper/index.d.ts +2 -0
  315. package/dist/src/components/fallback/index.d.ts +2 -0
  316. package/dist/src/components/filter/components/index.d.ts +16 -0
  317. package/dist/src/components/filter/index.d.ts +4 -0
  318. package/dist/src/components/footer/index.d.ts +2 -0
  319. package/dist/src/components/form-control/form-builder/form-builder-element/index.d.ts +25 -5
  320. package/dist/src/components/form-control/form-builder/form-builder-element/location-add-modal/index.d.ts +2 -0
  321. package/dist/src/components/form-control/form-builder/index.d.ts +3 -0
  322. package/dist/src/components/form-control/form-parser/index.d.ts +8 -0
  323. package/dist/src/components/form-control/index.d.ts +2 -2
  324. package/dist/src/components/form-header/index.d.ts +2 -0
  325. package/dist/src/components/gantt/index.d.ts +2 -0
  326. package/dist/src/components/grid/custom-grid-card/index.d.ts +2 -0
  327. package/dist/src/components/grid/grid-card/index.d.ts +2 -0
  328. package/dist/src/components/grid/grid-wrapper/index.d.ts +2 -0
  329. package/dist/src/components/grid/index.d.ts +3 -0
  330. package/dist/src/components/grid-fallback/index.d.ts +2 -0
  331. package/dist/src/components/header/components/index.d.ts +1 -0
  332. package/dist/src/components/header/components/notification-menu/index.d.ts +2 -0
  333. package/dist/src/components/header/index.d.ts +6 -0
  334. package/dist/src/components/header/redux/index.d.ts +5 -0
  335. package/dist/src/components/header-card/index.d.ts +2 -0
  336. package/dist/src/components/hr-line/index.d.ts +2 -0
  337. package/dist/src/components/icons/index.d.ts +163 -80
  338. package/dist/src/components/icons/sort-arrow-icon.d.ts +2 -2
  339. package/dist/src/components/index.d.ts +106 -123
  340. package/dist/src/components/info-card/index.d.ts +2 -0
  341. package/dist/src/components/inventory-reports-title-bar/component/index.d.ts +2 -0
  342. package/dist/src/components/inventory-reports-title-bar/index.d.ts +5 -0
  343. package/dist/src/components/inventory-reports-title-bar/redux/index.d.ts +5 -0
  344. package/dist/src/components/inventory-reports-title-bar/report-buttons/index.d.ts +2 -0
  345. package/dist/src/components/label-value/index.d.ts +2 -0
  346. package/dist/src/components/list/index.d.ts +2 -0
  347. package/dist/src/components/listing/index.d.ts +2 -2
  348. package/dist/src/components/loaders/index.d.ts +5 -1
  349. package/dist/src/components/material-editable-table/components/index.d.ts +8 -0
  350. package/dist/src/components/material-editable-table/index.d.ts +4 -0
  351. package/dist/src/components/material-table/components/index.d.ts +8 -0
  352. package/dist/src/components/material-table/index.d.ts +4 -0
  353. package/dist/src/components/material-table/material-table.d.ts +1 -1
  354. package/dist/src/components/menu/index.d.ts +2 -0
  355. package/dist/src/components/modal/index.d.ts +2 -0
  356. package/dist/src/components/module-button/index.d.ts +2 -0
  357. package/dist/src/components/mulitline/index.d.ts +2 -0
  358. package/dist/src/components/multi-select/index.d.ts +2 -0
  359. package/dist/src/components/page-navigator/components/index.d.ts +10 -0
  360. package/dist/src/components/page-navigator/index.d.ts +3 -0
  361. package/dist/src/components/pagination/index.d.ts +2 -0
  362. package/dist/src/components/parties-modal/index.d.ts +4 -0
  363. package/dist/src/components/parties-modal/utils/index.d.ts +1 -0
  364. package/dist/src/components/phone-input/index.d.ts +2 -0
  365. package/dist/src/components/providers/index.d.ts +2 -1
  366. package/dist/src/components/quick-approval-modal/index.d.ts +2 -0
  367. package/dist/src/components/radio/index.d.ts +2 -0
  368. package/dist/src/components/reports/dynamic-report/index.d.ts +3 -0
  369. package/dist/src/components/reports/index.d.ts +1 -0
  370. package/dist/src/components/reports-title-bar/index.d.ts +4 -0
  371. package/dist/src/components/reports-title-bar/redux/index.d.ts +5 -0
  372. package/dist/src/components/reports-title-bar/report-buttons/index.d.ts +2 -0
  373. package/dist/src/components/reset-password-modal/index.d.ts +2 -0
  374. package/dist/src/components/rfq-response/index.d.ts +2 -0
  375. package/dist/src/components/save-filter-modal/index.d.ts +2 -0
  376. package/dist/src/components/schedule-report/index.d.ts +6 -0
  377. package/dist/src/components/schedule-report/utils/index.d.ts +3 -0
  378. package/dist/src/components/search-bar/index.d.ts +2 -0
  379. package/dist/src/components/select/controller/index.d.ts +4 -0
  380. package/dist/src/components/select/index.d.ts +5 -0
  381. package/dist/src/components/share-modal/index.d.ts +5 -0
  382. package/dist/src/components/share-modal/redux/index.d.ts +5 -0
  383. package/dist/src/components/sidebar/index.d.ts +2 -0
  384. package/dist/src/components/snackbar/index.d.ts +2 -0
  385. package/dist/src/components/sub-header-doc/index.d.ts +2 -0
  386. package/dist/src/components/switches/index.d.ts +2 -0
  387. package/dist/src/components/tab-bar-ui/index.d.ts +2 -0
  388. package/dist/src/components/tabs/index.d.ts +2 -0
  389. package/dist/src/components/text-area/index.d.ts +2 -0
  390. package/dist/src/components/text-field/index.d.ts +2 -0
  391. package/dist/src/components/time-picker/index.d.ts +2 -0
  392. package/dist/src/components/time-range-picker/index.d.ts +2 -0
  393. package/dist/src/components/title-dropdown-button/index.d.ts +2 -0
  394. package/dist/src/components/toast/index.d.ts +2 -0
  395. package/dist/src/components/toggle/index.d.ts +2 -0
  396. package/dist/src/components/toggle-switch/index.d.ts +2 -0
  397. package/dist/src/components/tooltip/index.d.ts +2 -0
  398. package/dist/src/components/typography/index.d.ts +2 -0
  399. package/dist/src/components/upload/index.d.ts +4 -0
  400. package/dist/src/components/upload-excel/index.d.ts +4 -0
  401. package/dist/src/components/upload-media/index.d.ts +2 -0
  402. package/dist/src/components/user-dropdown/index.d.ts +2 -0
  403. package/dist/src/components/value-field/index.d.ts +2 -0
  404. package/dist/src/components/view-modal/index.d.ts +2 -0
  405. package/dist/src/constants/index.d.ts +5 -3
  406. package/dist/src/constants/lang/index.d.ts +6 -0
  407. package/dist/src/constants/pathnames/index.d.ts +13 -554
  408. package/dist/src/contexts/index.d.ts +5 -5
  409. package/dist/src/hooks/apiHelper.d.ts +1 -1
  410. package/dist/src/hooks/index.d.ts +15 -13
  411. package/dist/src/hooks/useDataFetcher.d.ts +2 -2
  412. package/dist/src/layout/fullScreen/index.d.ts +2 -0
  413. package/dist/src/layout/index.d.ts +2 -2
  414. package/dist/src/layout/sidebarScreen/index.d.ts +2 -0
  415. package/dist/src/redux/index.d.ts +5 -6
  416. package/dist/src/redux/slices/index.d.ts +8 -10
  417. package/dist/src/styles/index.d.ts +1 -2
  418. package/dist/src/theme/index.d.ts +7 -3
  419. package/dist/src/theme/types/index.d.ts +1 -0
  420. package/dist/src/utils/index.d.ts +12 -10
  421. package/dist/src/views/afterAuth/dashboard/index.d.ts +3 -0
  422. package/dist/src/views/afterAuth/dashboard/redux/index.d.ts +5 -0
  423. package/dist/src/views/afterAuth/index.d.ts +2 -0
  424. package/dist/src/views/afterAuth/page-view/index.d.ts +4 -0
  425. package/dist/src/views/afterAuth/page-view/redux/index.d.ts +5 -0
  426. package/dist/src/views/afterAuth/page-view/utils/index.d.ts +2 -0
  427. package/dist/src/views/beforeAuth/change-password/index.d.ts +1 -0
  428. package/dist/src/views/beforeAuth/components/activity-tag-data/index.d.ts +1 -0
  429. package/dist/src/views/beforeAuth/components/calendar-data/index.d.ts +1 -0
  430. package/dist/src/views/beforeAuth/components/drive-dashboard-data/index.d.ts +1 -0
  431. package/dist/src/views/beforeAuth/components/gantt-data/index.d.ts +2 -0
  432. package/dist/src/views/beforeAuth/components/grid-data/index.d.ts +2 -0
  433. package/dist/src/views/beforeAuth/components/index.d.ts +13 -2
  434. package/dist/src/views/beforeAuth/components/kanbann-content/index.d.ts +1 -0
  435. package/dist/src/views/beforeAuth/components/list-content/index.d.ts +2 -0
  436. package/dist/src/views/beforeAuth/components/multiline-data/index.d.ts +1 -0
  437. package/dist/src/views/beforeAuth/components/share-modal-data/index.d.ts +1 -0
  438. package/dist/src/views/beforeAuth/components/shared-pages-data/index.d.ts +1 -0
  439. package/dist/src/views/beforeAuth/components/tabs-data/index.d.ts +1 -0
  440. package/dist/src/views/beforeAuth/components/user-dashboard-data/index.d.ts +1 -0
  441. package/dist/src/views/beforeAuth/components/user-dropdown-data/index.d.ts +1 -0
  442. package/dist/src/views/beforeAuth/forgot-password/index.d.ts +1 -0
  443. package/dist/src/views/beforeAuth/index.d.ts +6 -0
  444. package/dist/src/views/beforeAuth/landing/index.d.ts +2 -0
  445. package/dist/src/views/beforeAuth/reset-password/index.d.ts +1 -0
  446. package/dist/src/views/form-builder/element-edit-forms/index.d.ts +7 -0
  447. package/dist/src/views/form-builder/index.d.ts +7 -31
  448. package/dist/src/views/form-builder/redux/index.d.ts +5 -0
  449. package/dist/src/views/form-builder/utils/index.d.ts +1 -2
  450. package/dist/src/views/index.d.ts +7 -2
  451. package/dist/src/views/template-editor/add-template/index.d.ts +1 -0
  452. package/dist/src/views/template-editor/company-selection-modal/index.d.ts +1 -0
  453. package/dist/src/views/template-editor/components/controllers/index.d.ts +18 -0
  454. package/dist/src/views/template-editor/components/index.d.ts +7 -9
  455. package/dist/src/views/template-editor/edit-section-modal/index.d.ts +1 -0
  456. package/dist/src/views/template-editor/index.d.ts +10 -10
  457. package/dist/src/views/template-editor/template-modal/index.d.ts +3 -1
  458. package/dist/src/views/template-editor/template-name-modal/index.d.ts +1 -0
  459. package/dist/src/views/template-editor/types/index.d.ts +1 -1
  460. package/dist/src/views/template-editor/utils/index.d.ts +3 -3
  461. package/dist/style.css +70 -90
  462. package/dist/styles/index.esm.js +4 -89
  463. package/dist/styles/index.esm.js.map +1 -1
  464. package/dist/styles/index.js +1 -1
  465. package/dist/styles/themes/index/index.esm.js +78 -0
  466. package/dist/styles/themes/index/index.esm.js.map +1 -0
  467. package/dist/styles/themes/index/index.js +2 -0
  468. package/dist/styles/themes/index/index.js.map +1 -0
  469. package/dist/theme/index.d.ts +7 -5
  470. package/dist/theme/index.esm.js +12 -5
  471. package/dist/theme/index.esm.js.map +1 -1
  472. package/dist/theme/index.js +1 -1
  473. package/dist/theme/theme-impl/index.esm.js +1 -1
  474. package/dist/theme/typography/index.esm.js +113 -0
  475. package/dist/theme/typography/index.esm.js.map +1 -0
  476. package/dist/theme/typography/index.js +2 -0
  477. package/dist/theme/typography/index.js.map +1 -0
  478. package/dist/utils/dateFormat/index.esm.js +7 -0
  479. package/dist/utils/dateFormat/index.esm.js.map +1 -1
  480. package/dist/utils/dateFormat/index.js +1 -1
  481. package/dist/utils/dateFormat/index.js.map +1 -1
  482. package/dist/utils/i18n/index.esm.js +37 -0
  483. package/dist/utils/i18n/index.esm.js.map +1 -0
  484. package/dist/utils/i18n/index.js +2 -0
  485. package/dist/utils/i18n/index.js.map +1 -0
  486. package/dist/utils/index.d.ts +34 -35
  487. package/dist/utils/index.esm.js +18 -73
  488. package/dist/utils/index.esm.js.map +1 -1
  489. package/dist/utils/index.js +1 -1
  490. package/dist/utils/metaComponent/index.esm.js +27 -0
  491. package/dist/utils/metaComponent/index.esm.js.map +1 -0
  492. package/dist/utils/metaComponent/index.js +6 -0
  493. package/dist/utils/metaComponent/index.js.map +1 -0
  494. package/dist/views/404/index.esm.js +31 -0
  495. package/dist/views/404/index.esm.js.map +1 -0
  496. package/dist/views/404/index.js +6 -0
  497. package/dist/views/404/index.js.map +1 -0
  498. package/dist/views/afterAuth/dashboard/dashboard/index.esm.js +76 -0
  499. package/dist/views/afterAuth/dashboard/dashboard/index.esm.js.map +1 -0
  500. package/dist/views/afterAuth/dashboard/dashboard/index.js +8 -0
  501. package/dist/views/afterAuth/dashboard/dashboard/index.js.map +1 -0
  502. package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js +0 -6
  503. package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js.map +1 -1
  504. package/dist/views/afterAuth/dashboard/redux/reducer/index.js +1 -1
  505. package/dist/views/afterAuth/dashboard/redux/reducer/index.js.map +1 -1
  506. package/dist/views/afterAuth/page-view/page-view/index.esm.js +100 -0
  507. package/dist/views/afterAuth/page-view/page-view/index.esm.js.map +1 -0
  508. package/dist/views/afterAuth/page-view/page-view/index.js +6 -0
  509. package/dist/views/afterAuth/page-view/page-view/index.js.map +1 -0
  510. package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js +13 -0
  511. package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js.map +1 -0
  512. package/dist/views/afterAuth/page-view/redux/actionCreator/index.js +2 -0
  513. package/dist/views/afterAuth/page-view/redux/actionCreator/index.js.map +1 -0
  514. package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js +63 -0
  515. package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js.map +1 -0
  516. package/dist/views/afterAuth/page-view/redux/reducer/index.js +2 -0
  517. package/dist/views/afterAuth/page-view/redux/reducer/index.js.map +1 -0
  518. package/dist/views/afterAuth/page-view/redux/state/index.esm.js +31 -0
  519. package/dist/views/afterAuth/page-view/redux/state/index.esm.js.map +1 -0
  520. package/dist/views/afterAuth/page-view/redux/state/index.js +2 -0
  521. package/dist/views/afterAuth/page-view/redux/state/index.js.map +1 -0
  522. package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js +137 -0
  523. package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js.map +1 -0
  524. package/dist/views/afterAuth/page-view/utils/default-data/index.js +2 -0
  525. package/dist/views/afterAuth/page-view/utils/default-data/index.js.map +1 -0
  526. package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js +137 -0
  527. package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js.map +1 -0
  528. package/dist/views/afterAuth/page-view/utils/local-data/index.js +2 -0
  529. package/dist/views/afterAuth/page-view/utils/local-data/index.js.map +1 -0
  530. package/dist/views/beforeAuth/change-password/change-password/index.esm.js +182 -0
  531. package/dist/views/beforeAuth/change-password/change-password/index.esm.js.map +1 -0
  532. package/dist/views/beforeAuth/change-password/change-password/index.js +17 -0
  533. package/dist/views/beforeAuth/change-password/change-password/index.js.map +1 -0
  534. package/dist/views/beforeAuth/forgot-password/forgot-password/index.esm.js +177 -0
  535. package/dist/views/beforeAuth/forgot-password/forgot-password/index.esm.js.map +1 -0
  536. package/dist/views/beforeAuth/forgot-password/forgot-password/index.js +16 -0
  537. package/dist/views/beforeAuth/forgot-password/forgot-password/index.js.map +1 -0
  538. package/dist/views/beforeAuth/landing/landing/index.esm.js +35 -0
  539. package/dist/views/beforeAuth/landing/landing/index.esm.js.map +1 -0
  540. package/dist/views/beforeAuth/landing/landing/index.js +8 -0
  541. package/dist/views/beforeAuth/landing/landing/index.js.map +1 -0
  542. package/dist/views/beforeAuth/login/index/index.esm.js +209 -0
  543. package/dist/views/beforeAuth/login/index/index.esm.js.map +1 -0
  544. package/dist/views/beforeAuth/login/index/index.js +20 -0
  545. package/dist/views/beforeAuth/login/index/index.js.map +1 -0
  546. package/dist/views/beforeAuth/reset-password/reset-password/index.esm.js +34 -0
  547. package/dist/views/beforeAuth/reset-password/reset-password/index.esm.js.map +1 -0
  548. package/dist/views/beforeAuth/reset-password/reset-password/index.js +2 -0
  549. package/dist/views/beforeAuth/reset-password/reset-password/index.js.map +1 -0
  550. package/dist/views/form-builder/custom-form/index.esm.js +2 -2
  551. package/dist/views/form-builder/custom-form/index.js +10 -10
  552. package/dist/views/form-builder/element-edit-forms/select/index.esm.js +1 -1
  553. package/dist/views/form-builder/element-edit-forms/select/index.js +8 -8
  554. package/dist/views/form-builder/redux/actionCreator/index.esm.js +1 -1
  555. package/dist/views/form-builder/redux/reducer/index.esm.js +6 -1
  556. package/dist/views/form-builder/redux/reducer/index.esm.js.map +1 -1
  557. package/dist/views/form-builder/redux/reducer/index.js +1 -1
  558. package/dist/views/form-builder/redux/reducer/index.js.map +1 -1
  559. package/dist/views/index.esm.js +139 -65
  560. package/dist/views/index.esm.js.map +1 -1
  561. package/dist/views/index.js +1 -1
  562. package/dist/views/privateRoute/index.esm.js +14 -0
  563. package/dist/views/privateRoute/index.esm.js.map +1 -0
  564. package/dist/views/privateRoute/index.js +2 -0
  565. package/dist/views/privateRoute/index.js.map +1 -0
  566. package/dist/views/template-editor/components/EditorHeader/index.esm.js +1 -1
  567. package/dist/views/template-editor/components/EditorHeader/index.js +3 -3
  568. package/dist/views/template-editor/components/EditorSection/index.esm.js +1 -1
  569. package/dist/views/template-editor/components/EditorSection/index.js +3 -3
  570. package/dist/views/template-editor/components/SectionFormatPanel/index.esm.js +1 -1
  571. package/dist/views/template-editor/components/SectionFormatPanel/index.js +3 -3
  572. package/dist/views/template-editor/components/controllers/TableControls/index.esm.js +1 -1
  573. package/dist/views/template-editor/components/controllers/TableControls/index.js +56 -56
  574. package/dist/views/template-editor/templates/index.esm.js +1 -1
  575. package/dist/views/template-editor/templates/index.js +3 -3
  576. package/dist/views/template-editor/templates/index.js.map +1 -1
  577. package/dist/views/template-editor/utils/default-data/index.esm.js +33 -0
  578. package/dist/views/template-editor/utils/default-data/index.esm.js.map +1 -0
  579. package/dist/views/template-editor/utils/default-data/index.js +2 -0
  580. package/dist/views/template-editor/utils/default-data/index.js.map +1 -0
  581. package/package.json +2 -2
  582. package/src/styles/index.ts +1 -146
  583. package/dist/_virtual/ArrowBack/index.esm.js +0 -5
  584. package/dist/_virtual/ArrowBack/index.esm.js.map +0 -1
  585. package/dist/_virtual/ArrowBack/index.js +0 -2
  586. package/dist/_virtual/ArrowBack/index.js.map +0 -1
  587. package/dist/_virtual/ArrowForward/index.esm.js +0 -5
  588. package/dist/_virtual/ArrowForward/index.esm.js.map +0 -1
  589. package/dist/_virtual/ArrowForward/index.js +0 -2
  590. package/dist/_virtual/ArrowForward/index.js.map +0 -1
  591. package/dist/_virtual/IndeterminateCheckBox/index.esm.js +0 -5
  592. package/dist/_virtual/IndeterminateCheckBox/index.esm.js.map +0 -1
  593. package/dist/_virtual/IndeterminateCheckBox/index.js +0 -2
  594. package/dist/_virtual/IndeterminateCheckBox/index.js.map +0 -1
  595. package/dist/_virtual/NorthEast/index.esm.js +0 -5
  596. package/dist/_virtual/NorthEast/index.esm.js.map +0 -1
  597. package/dist/_virtual/NorthEast/index.js +0 -2
  598. package/dist/_virtual/NorthEast/index.js.map +0 -1
  599. package/dist/_virtual/Visibility/index.esm.js +0 -5
  600. package/dist/_virtual/Visibility/index.esm.js.map +0 -1
  601. package/dist/_virtual/Visibility/index.js +0 -2
  602. package/dist/_virtual/Visibility/index.js.map +0 -1
  603. package/dist/components/activity-tag/activity-tag/index.esm.js +0 -154
  604. package/dist/components/activity-tag/activity-tag/index.esm.js.map +0 -1
  605. package/dist/components/activity-tag/activity-tag/index.js +0 -15
  606. package/dist/components/activity-tag/activity-tag/index.js.map +0 -1
  607. package/dist/components/activityLog/activity-log/index.esm.js +0 -104
  608. package/dist/components/activityLog/activity-log/index.esm.js.map +0 -1
  609. package/dist/components/activityLog/activity-log/index.js +0 -14
  610. package/dist/components/activityLog/activity-log/index.js.map +0 -1
  611. package/dist/components/button/button.scss/index.esm.js +0 -2
  612. package/dist/components/button/button.scss/index.esm.js.map +0 -1
  613. package/dist/components/button/button.scss/index.js +0 -2
  614. package/dist/components/button/button.scss/index.js.map +0 -1
  615. package/dist/components/charts/bar-chart/bar-chart/index.esm.js +0 -85
  616. package/dist/components/charts/bar-chart/bar-chart/index.esm.js.map +0 -1
  617. package/dist/components/charts/bar-chart/bar-chart/index.js +0 -2
  618. package/dist/components/charts/bar-chart/bar-chart/index.js.map +0 -1
  619. package/dist/components/charts/barChart/barChart/index.esm.js +0 -147
  620. package/dist/components/charts/barChart/barChart/index.esm.js.map +0 -1
  621. package/dist/components/charts/barChart/barChart/index.js +0 -2
  622. package/dist/components/charts/barChart/barChart/index.js.map +0 -1
  623. package/dist/components/charts/donut-chart/donut-chart/index.esm.js +0 -85
  624. package/dist/components/charts/donut-chart/donut-chart/index.esm.js.map +0 -1
  625. package/dist/components/charts/donut-chart/donut-chart/index.js +0 -6
  626. package/dist/components/charts/donut-chart/donut-chart/index.js.map +0 -1
  627. package/dist/components/charts/donutChart/DonutChart/index.esm.js +0 -96
  628. package/dist/components/charts/donutChart/DonutChart/index.esm.js.map +0 -1
  629. package/dist/components/charts/donutChart/DonutChart/index.js +0 -5
  630. package/dist/components/charts/donutChart/DonutChart/index.js.map +0 -1
  631. package/dist/components/charts/line-chart/area-line-chart/index.esm.js +0 -40
  632. package/dist/components/charts/line-chart/area-line-chart/index.esm.js.map +0 -1
  633. package/dist/components/charts/line-chart/area-line-chart/index.js +0 -2
  634. package/dist/components/charts/line-chart/area-line-chart/index.js.map +0 -1
  635. package/dist/components/grid/grid-card/grid-card.scss/index.esm.js +0 -2
  636. package/dist/components/grid/grid-card/grid-card.scss/index.esm.js.map +0 -1
  637. package/dist/components/grid/grid-card/grid-card.scss/index.js +0 -2
  638. package/dist/components/grid/grid-card/grid-card.scss/index.js.map +0 -1
  639. package/dist/components/list/list.scss/index.esm.js +0 -2
  640. package/dist/components/list/list.scss/index.esm.js.map +0 -1
  641. package/dist/components/list/list.scss/index.js +0 -2
  642. package/dist/components/list/list.scss/index.js.map +0 -1
  643. package/dist/node_modules/@mui/icons-material/ArrowBack/index.esm.js +0 -18
  644. package/dist/node_modules/@mui/icons-material/ArrowBack/index.esm.js.map +0 -1
  645. package/dist/node_modules/@mui/icons-material/ArrowBack/index.js +0 -2
  646. package/dist/node_modules/@mui/icons-material/ArrowBack/index.js.map +0 -1
  647. package/dist/node_modules/@mui/icons-material/ArrowForward/index.esm.js +0 -18
  648. package/dist/node_modules/@mui/icons-material/ArrowForward/index.esm.js.map +0 -1
  649. package/dist/node_modules/@mui/icons-material/ArrowForward/index.js +0 -2
  650. package/dist/node_modules/@mui/icons-material/ArrowForward/index.js.map +0 -1
  651. package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js +0 -18
  652. package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js.map +0 -1
  653. package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.js +0 -2
  654. package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.js.map +0 -1
  655. package/dist/node_modules/@mui/icons-material/NorthEast/index.esm.js +0 -18
  656. package/dist/node_modules/@mui/icons-material/NorthEast/index.esm.js.map +0 -1
  657. package/dist/node_modules/@mui/icons-material/NorthEast/index.js +0 -2
  658. package/dist/node_modules/@mui/icons-material/NorthEast/index.js.map +0 -1
  659. package/dist/node_modules/@mui/icons-material/Visibility/index.esm.js +0 -18
  660. package/dist/node_modules/@mui/icons-material/Visibility/index.esm.js.map +0 -1
  661. package/dist/node_modules/@mui/icons-material/Visibility/index.js +0 -2
  662. package/dist/node_modules/@mui/icons-material/Visibility/index.js.map +0 -1
  663. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js +0 -95
  664. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js.map +0 -1
  665. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js +0 -3
  666. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js.map +0 -1
  667. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js +0 -10
  668. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js.map +0 -1
  669. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js +0 -2
  670. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js.map +0 -1
  671. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.esm.js +0 -10
  672. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.esm.js.map +0 -1
  673. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.js +0 -2
  674. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.js.map +0 -1
  675. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js +0 -76
  676. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js.map +0 -1
  677. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js +0 -3
  678. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js.map +0 -1
  679. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.esm.js +0 -10
  680. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.esm.js.map +0 -1
  681. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.js +0 -2
  682. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.js.map +0 -1
  683. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js +0 -91
  684. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js.map +0 -1
  685. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js +0 -3
  686. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js.map +0 -1
  687. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.esm.js +0 -11
  688. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.esm.js.map +0 -1
  689. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.js +0 -2
  690. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.js.map +0 -1
  691. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js +0 -118
  692. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js.map +0 -1
  693. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js +0 -3
  694. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js.map +0 -1
  695. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.esm.js +0 -10
  696. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.esm.js.map +0 -1
  697. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.js +0 -2
  698. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.js.map +0 -1
  699. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js +0 -128
  700. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js.map +0 -1
  701. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js +0 -3
  702. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js.map +0 -1
  703. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.esm.js +0 -10
  704. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.esm.js.map +0 -1
  705. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.js +0 -2
  706. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.js.map +0 -1
  707. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.esm.js +0 -6
  708. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.esm.js.map +0 -1
  709. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.js +0 -2
  710. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.js.map +0 -1
  711. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js +0 -73
  712. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js.map +0 -1
  713. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js +0 -3
  714. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js.map +0 -1
  715. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.esm.js +0 -10
  716. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.esm.js.map +0 -1
  717. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.js +0 -2
  718. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.js.map +0 -1
  719. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.esm.js +0 -8
  720. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.esm.js.map +0 -1
  721. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.js +0 -2
  722. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.js.map +0 -1
  723. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js +0 -95
  724. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js.map +0 -1
  725. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js +0 -3
  726. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js.map +0 -1
  727. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js +0 -10
  728. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js.map +0 -1
  729. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js +0 -2
  730. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js.map +0 -1
  731. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js +0 -201
  732. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js.map +0 -1
  733. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js +0 -3
  734. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js.map +0 -1
  735. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js +0 -11
  736. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js.map +0 -1
  737. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js +0 -2
  738. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js.map +0 -1
  739. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js +0 -125
  740. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js.map +0 -1
  741. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js +0 -4
  742. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js.map +0 -1
  743. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js +0 -10
  744. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js.map +0 -1
  745. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js +0 -2
  746. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js.map +0 -1
  747. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js +0 -170
  748. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js.map +0 -1
  749. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js +0 -3
  750. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js.map +0 -1
  751. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js +0 -11
  752. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js.map +0 -1
  753. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js +0 -2
  754. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js.map +0 -1
  755. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js +0 -120
  756. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js.map +0 -1
  757. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js +0 -3
  758. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js.map +0 -1
  759. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js +0 -11
  760. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js.map +0 -1
  761. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js +0 -2
  762. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js.map +0 -1
  763. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js +0 -92
  764. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js.map +0 -1
  765. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js +0 -3
  766. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js.map +0 -1
  767. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js +0 -10
  768. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js.map +0 -1
  769. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js +0 -2
  770. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js.map +0 -1
  771. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js +0 -196
  772. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js.map +0 -1
  773. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js +0 -2
  774. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js.map +0 -1
  775. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js +0 -11
  776. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js.map +0 -1
  777. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js +0 -2
  778. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js.map +0 -1
  779. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js +0 -76
  780. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js.map +0 -1
  781. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js +0 -3
  782. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js.map +0 -1
  783. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js +0 -10
  784. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js.map +0 -1
  785. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js +0 -2
  786. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js.map +0 -1
  787. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js +0 -231
  788. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js.map +0 -1
  789. package/dist/node_modules/@mui/material/Fab/Fab/index.js +0 -3
  790. package/dist/node_modules/@mui/material/Fab/Fab/index.js.map +0 -1
  791. package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js +0 -11
  792. package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js.map +0 -1
  793. package/dist/node_modules/@mui/material/Fab/fabClasses/index.js +0 -2
  794. package/dist/node_modules/@mui/material/Fab/fabClasses/index.js.map +0 -1
  795. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js +0 -135
  796. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js.map +0 -1
  797. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js +0 -2
  798. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js.map +0 -1
  799. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js +0 -176
  800. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js.map +0 -1
  801. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js +0 -3
  802. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js.map +0 -1
  803. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js +0 -119
  804. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js.map +0 -1
  805. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js +0 -2
  806. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js.map +0 -1
  807. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js +0 -10
  808. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js.map +0 -1
  809. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js +0 -2
  810. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js.map +0 -1
  811. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js +0 -92
  812. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js.map +0 -1
  813. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js +0 -2
  814. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js.map +0 -1
  815. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js +0 -156
  816. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js.map +0 -1
  817. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js +0 -3
  818. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js.map +0 -1
  819. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js +0 -10
  820. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js.map +0 -1
  821. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js +0 -2
  822. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js.map +0 -1
  823. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js +0 -10
  824. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js.map +0 -1
  825. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js +0 -2
  826. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js.map +0 -1
  827. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js +0 -173
  828. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js.map +0 -1
  829. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js +0 -3
  830. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js.map +0 -1
  831. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js +0 -11
  832. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js.map +0 -1
  833. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js +0 -2
  834. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js.map +0 -1
  835. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js +0 -222
  836. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js.map +0 -1
  837. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js +0 -3
  838. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js.map +0 -1
  839. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js +0 -10
  840. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js.map +0 -1
  841. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js +0 -2
  842. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js.map +0 -1
  843. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js +0 -216
  844. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js.map +0 -1
  845. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js +0 -3
  846. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js.map +0 -1
  847. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js +0 -10
  848. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js.map +0 -1
  849. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js +0 -2
  850. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js.map +0 -1
  851. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js +0 -126
  852. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js.map +0 -1
  853. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js +0 -3
  854. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js.map +0 -1
  855. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js +0 -55
  856. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js.map +0 -1
  857. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js +0 -2
  858. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js.map +0 -1
  859. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js +0 -638
  860. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js.map +0 -1
  861. package/dist/node_modules/@mui/material/Rating/Rating/index.js +0 -7
  862. package/dist/node_modules/@mui/material/Rating/Rating/index.js.map +0 -1
  863. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js +0 -11
  864. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js.map +0 -1
  865. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js +0 -2
  866. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js.map +0 -1
  867. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js +0 -105
  868. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js.map +0 -1
  869. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js +0 -3
  870. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js.map +0 -1
  871. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js +0 -10
  872. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js.map +0 -1
  873. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js +0 -2
  874. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js.map +0 -1
  875. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js +0 -453
  876. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js.map +0 -1
  877. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js +0 -4
  878. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js.map +0 -1
  879. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js +0 -11
  880. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js.map +0 -1
  881. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js +0 -2
  882. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js.map +0 -1
  883. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js +0 -245
  884. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js.map +0 -1
  885. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js +0 -2
  886. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js.map +0 -1
  887. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js +0 -11
  888. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js.map +0 -1
  889. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js +0 -2
  890. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js.map +0 -1
  891. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js +0 -137
  892. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js.map +0 -1
  893. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js +0 -4
  894. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js.map +0 -1
  895. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js +0 -11
  896. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js.map +0 -1
  897. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js +0 -2
  898. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js.map +0 -1
  899. package/dist/node_modules/@mui/material/Step/Step/index.esm.js +0 -169
  900. package/dist/node_modules/@mui/material/Step/Step/index.esm.js.map +0 -1
  901. package/dist/node_modules/@mui/material/Step/Step/index.js +0 -3
  902. package/dist/node_modules/@mui/material/Step/Step/index.js.map +0 -1
  903. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js +0 -10
  904. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js.map +0 -1
  905. package/dist/node_modules/@mui/material/Step/StepContext/index.js +0 -2
  906. package/dist/node_modules/@mui/material/Step/StepContext/index.js.map +0 -1
  907. package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js +0 -10
  908. package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js.map +0 -1
  909. package/dist/node_modules/@mui/material/Step/stepClasses/index.js +0 -2
  910. package/dist/node_modules/@mui/material/Step/stepClasses/index.js.map +0 -1
  911. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js +0 -132
  912. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js.map +0 -1
  913. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js +0 -3
  914. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js.map +0 -1
  915. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js +0 -11
  916. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js.map +0 -1
  917. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js +0 -2
  918. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js.map +0 -1
  919. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js +0 -136
  920. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js.map +0 -1
  921. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js +0 -3
  922. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js.map +0 -1
  923. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js +0 -10
  924. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js.map +0 -1
  925. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js +0 -2
  926. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js.map +0 -1
  927. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js +0 -152
  928. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js.map +0 -1
  929. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js +0 -2
  930. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js.map +0 -1
  931. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js +0 -10
  932. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js.map +0 -1
  933. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js +0 -2
  934. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js.map +0 -1
  935. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js +0 -161
  936. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js.map +0 -1
  937. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js +0 -2
  938. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js.map +0 -1
  939. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js +0 -11
  940. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js.map +0 -1
  941. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js +0 -2
  942. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js.map +0 -1
  943. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js +0 -239
  944. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js.map +0 -1
  945. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js +0 -3
  946. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js.map +0 -1
  947. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js +0 -11
  948. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js.map +0 -1
  949. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js +0 -2
  950. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js.map +0 -1
  951. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js +0 -155
  952. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js.map +0 -1
  953. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js +0 -3
  954. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js.map +0 -1
  955. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js +0 -10
  956. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js.map +0 -1
  957. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js +0 -2
  958. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js.map +0 -1
  959. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js +0 -10
  960. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js.map +0 -1
  961. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js +0 -2
  962. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js.map +0 -1
  963. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js +0 -82
  964. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js.map +0 -1
  965. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js +0 -3
  966. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js.map +0 -1
  967. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js +0 -538
  968. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js.map +0 -1
  969. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js +0 -2
  970. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js.map +0 -1
  971. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js +0 -443
  972. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js.map +0 -1
  973. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js +0 -3
  974. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js.map +0 -1
  975. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js +0 -179
  976. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js.map +0 -1
  977. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js +0 -3
  978. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js.map +0 -1
  979. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js +0 -11
  980. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js.map +0 -1
  981. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js +0 -2
  982. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js.map +0 -1
  983. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js +0 -196
  984. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js.map +0 -1
  985. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js +0 -3
  986. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js.map +0 -1
  987. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js +0 -9
  988. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js.map +0 -1
  989. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js +0 -2
  990. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js.map +0 -1
  991. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js +0 -9
  992. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js.map +0 -1
  993. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js +0 -2
  994. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js.map +0 -1
  995. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js +0 -9
  996. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js.map +0 -1
  997. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js +0 -2
  998. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js.map +0 -1
  999. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js +0 -9
  1000. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js.map +0 -1
  1001. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js +0 -2
  1002. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js.map +0 -1
  1003. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js +0 -9
  1004. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js.map +0 -1
  1005. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js +0 -2
  1006. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js.map +0 -1
  1007. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js +0 -51
  1008. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js.map +0 -1
  1009. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js +0 -2
  1010. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js.map +0 -1
  1011. package/dist/node_modules/d3-shape/src/arc/index.esm.js +0 -134
  1012. package/dist/node_modules/d3-shape/src/arc/index.esm.js.map +0 -1
  1013. package/dist/node_modules/d3-shape/src/arc/index.js +0 -2
  1014. package/dist/node_modules/d3-shape/src/arc/index.js.map +0 -1
  1015. package/dist/node_modules/d3-shape/src/descending/index.esm.js +0 -7
  1016. package/dist/node_modules/d3-shape/src/descending/index.esm.js.map +0 -1
  1017. package/dist/node_modules/d3-shape/src/descending/index.js +0 -2
  1018. package/dist/node_modules/d3-shape/src/descending/index.js.map +0 -1
  1019. package/dist/node_modules/d3-shape/src/identity/index.esm.js +0 -7
  1020. package/dist/node_modules/d3-shape/src/identity/index.esm.js.map +0 -1
  1021. package/dist/node_modules/d3-shape/src/identity/index.js +0 -2
  1022. package/dist/node_modules/d3-shape/src/identity/index.js.map +0 -1
  1023. package/dist/node_modules/d3-shape/src/math/index.esm.js +0 -33
  1024. package/dist/node_modules/d3-shape/src/math/index.esm.js.map +0 -1
  1025. package/dist/node_modules/d3-shape/src/math/index.js +0 -2
  1026. package/dist/node_modules/d3-shape/src/math/index.js.map +0 -1
  1027. package/dist/node_modules/d3-shape/src/pie/index.esm.js +0 -56
  1028. package/dist/node_modules/d3-shape/src/pie/index.esm.js.map +0 -1
  1029. package/dist/node_modules/d3-shape/src/pie/index.js +0 -2
  1030. package/dist/node_modules/d3-shape/src/pie/index.js.map +0 -1
  1031. package/dist/src/views/afterAuth/accounting.d.ts +0 -4
  1032. package/dist/src/views/afterAuth/crm.d.ts +0 -4
  1033. package/dist/src/views/afterAuth/document.d.ts +0 -4
  1034. package/dist/src/views/afterAuth/hrms.d.ts +0 -4
  1035. package/dist/src/views/afterAuth/inventory.d.ts +0 -4
  1036. package/dist/src/views/afterAuth/manufacturing.d.ts +0 -4
  1037. package/dist/src/views/afterAuth/office.d.ts +0 -4
  1038. package/dist/src/views/afterAuth/procurement.d.ts +0 -4
  1039. package/dist/src/views/afterAuth/project.d.ts +0 -4
  1040. package/dist/src/views/afterAuth/purchase.d.ts +0 -4
  1041. package/dist/src/views/afterAuth/quotes.d.ts +0 -4
  1042. package/dist/src/views/afterAuth/rental.d.ts +0 -4
  1043. package/dist/src/views/afterAuth/user.d.ts +0 -4
  1044. package/dist/src/views/beforeAuth/components/user-profile-data/user-profile-data.d.ts +0 -9
  1045. package/dist/styles/sass/_mixins.scss/index.esm.js +0 -2
  1046. package/dist/styles/sass/_mixins.scss/index.esm.js.map +0 -1
  1047. package/dist/styles/sass/_mixins.scss/index.js +0 -2
  1048. package/dist/styles/sass/_mixins.scss/index.js.map +0 -1
  1049. package/dist/styles/sass/_variables.scss/index.esm.js +0 -2
  1050. package/dist/styles/sass/_variables.scss/index.esm.js.map +0 -1
  1051. package/dist/styles/sass/_variables.scss/index.js +0 -2
  1052. package/dist/styles/sass/_variables.scss/index.js.map +0 -1
  1053. package/dist/views/beforeAuth/components/index/index.esm.js +0 -1144
  1054. package/dist/views/beforeAuth/components/index/index.esm.js.map +0 -1
  1055. package/dist/views/beforeAuth/components/index/index.js +0 -206
  1056. package/dist/views/beforeAuth/components/index/index.js.map +0 -1
  1057. package/dist/views/beforeAuth/login/index.scss/index.esm.js +0 -2
  1058. package/dist/views/beforeAuth/login/index.scss/index.esm.js.map +0 -1
  1059. package/dist/views/beforeAuth/login/index.scss/index.js +0 -2
  1060. package/dist/views/beforeAuth/login/index.scss/index.js.map +0 -1
  1061. package/dist/views/form-builder/index/index.esm.js +0 -32
  1062. package/dist/views/form-builder/index/index.esm.js.map +0 -1
  1063. package/dist/views/form-builder/index/index.js +0 -2
  1064. package/dist/views/form-builder/index/index.js.map +0 -1
@@ -1,38 +1,38 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),a=require("../../../../../api-client/api.system-feature/api/index.js"),r=require("../../../../../utils/common/index.js"),n=require("../../../../../utils/format-text/index.js"),i=require("../../../../typography/typography/index.js"),o=require("../../../../../images/index.js"),s=require("../../../../../utils/route-utils/index.js"),d=require("../../../../../constants/pathnames/pathname.accounting/index.js"),l=require("../../../../../constants/pathnames/pathname.rental/index.js"),u=require("../../../../../constants/pathnames/pathname.inventory/index.js"),c=require("../../../../../constants/pathnames/pathname.manufacturing/index.js"),m=require("../../../../../constants/pathnames/pathname.procurement/index.js"),h=require("../../../../../constants/pathnames/pathname.crm/index.js"),g=require("react-router-dom"),x=require("../../../../button/button/index.js"),p=require("../../../../../node_modules/notistack/notistack.esm/index.js"),f=require("../../../../../node_modules/@mui/material/Box/Box/index.js"),j=require("../../../../../node_modules/@mui/material/IconButton/IconButton/index.js"),y=require("../../../../../node_modules/@mui/material/Badge/Badge/index.js"),_=require("../../../../../node_modules/@mui/material/Menu/Menu/index.js"),E=require("../../../../../node_modules/@mui/material/CircularProgress/CircularProgress/index.js"),R=require("../../../../icons/tick/index.js"),S=require("../../../../../node_modules/@mui/material/Skeleton/Skeleton/index.js"),b=require("../../../../../node_modules/@mui/material/Alert/Alert/index.js"),I=require("../../../../../node_modules/@mui/material/MenuItem/MenuItem/index.js"),P=require("../../../../../node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.js"),v=require("../../../../../node_modules/@mui/material/Avatar/Avatar/index.js"),W=require("../../../../../node_modules/@mui/material/ListItemText/ListItemText/index.js"),C=require("../../../../../node_modules/@mui/icons-material/esm/Person/index.js"),w=require("../../../../../node_modules/@mui/icons-material/esm/CheckCircle/index.js"),T=require("../../../../../node_modules/@mui/icons-material/esm/Warning/index.js"),A=require("../../../../../node_modules/@mui/icons-material/esm/Email/index.js"),k=require("../../../../../node_modules/@mui/icons-material/esm/Assignment/index.js"),q=require("../../../../../node_modules/@mui/icons-material/esm/AccountBalance/index.js"),N=require("../../../../icons/notification/index.js");const M={rbac:o.images.user,document:o.images.document,"accounts-and-finance":o.images.accounting,inventory:o.images.inventory,manufacturing:o.images.manufacturing,sales:o.images.crm,rental:o.images.rental,user:o.images.user,purchase:o.images.procurement,hrms:o.images.hrms},V={rbac:"#F3E5F5",document:"#FFF8E1","accounts-and-finance":"#E8F5E8",inventory:"#E3F2FD",manufacturing:"#FFF3E0",sales:"#F3E5F5",rental:"#E8F5E8",user:"#F3E5F5",purchase:"#FCE4EC",hrms:"#fcfcfc"};exports.default=()=>{const[o,F]=t.useState(null),[G,D]=t.useState([]),[O,B]=t.useState(!1),[z,L]=t.useState(!1),[H,U]=t.useState(null),[$,Y]=t.useState(0),[X,J]=t.useState(!1),[K,Q]=t.useState({skip:0,limit:10,totalCount:0,hasMore:!0}),Z=g.useNavigate(),ee=t.useRef(null),te=t.useRef(!1),ae=Boolean(o),re=t=>{const a={"accounts-and-finance":/* @__PURE__ */e.jsx(q.default,{color:"primary"}),user:/* @__PURE__ */e.jsx(C.default,{color:"action"}),approval:/* @__PURE__ */e.jsx(k.default,{color:"warning"})};return{id:t.id,type:t.action||t.notification_type||"info",title:n.default(t.title),message:t.message,timestamp:(e=>{const t=new Date(e),a=/* @__PURE__ */new Date-t,r=Math.floor(a/6e4),n=Math.floor(a/36e5),i=Math.floor(a/864e5);return r<1?"Just now":r<60?`${r} minute${r>1?"s":""} ago`:n<24?`${n} hour${n>1?"s":""} ago`:i<7?`${i} day${i>1?"s":""} ago`:t.toLocaleDateString()})(t.created_at),read:"read"===t.status,avatar:(e=>{if(!e)return null;const t=e.first_name||"",a=e.last_name||"";return t||a?(t.charAt(0)+a.charAt(0)).toUpperCase():null})(t.performed_user),performedByName:(r=t.performed_user,r&&`${r.first_name||""} ${r.last_name||""}`.trim()||null),module:t.module,subModule:t.sub_module,subModuleId:t.sub_module_id,status:t.status,icon:a[t.module]||a[t.action]||/* @__PURE__ */e.jsx(C.default,{color:"action"})};var r},ne=t.useCallback(async(e=!1)=>{if(!e||!te.current){e?(te.current=!0,L(!0)):(B(!0),Q(e=>({...e,skip:0,hasMore:!0}))),U(null);try{const t=e?K.skip:0,n=await a.getV1Notification({skip:t,limit:K.limit,...r.getToken()});if(!n.success||!n.data)throw Y(0),new Error(n.message||"Failed to load notifications");{const a=n.data.notifications.map(re);D(e?e=>[...e,...a]:a);const r=t+n.data.notifications.length,i=r<n.data.pagination.totalCount;if(Q(e=>({...e,skip:r,totalCount:n.data.pagination.totalCount,hasMore:i})),!e){const e=n.data.pagination.unreadCount;Y(e)}}}catch(t){U("Failed to load notifications")}finally{B(!1),L(!1),e&&(te.current=!1)}}},[K.limit,K.skip]),ie=t.useCallback(e=>{const{scrollTop:t,scrollHeight:a,clientHeight:r}=e.target;t+r>=a-50&&!te.current&&!O&&K.hasMore&&ne(!0)},[ne,O,K.hasMore]),oe=()=>{F(null)},se=t=>{if(t.icon)return t.icon;switch(t.type){case"approval":/* @__PURE__ */
2
- return e.jsx(k.default,{color:"warning"});case"user":default:/* @__PURE__ */
3
- return e.jsx(C.default,{color:"action"});case"message":/* @__PURE__ */
4
- return e.jsx(A.default,{color:"primary"});case"warning":/* @__PURE__ */
5
- return e.jsx(T.default,{color:"warning"});case"success":/* @__PURE__ */
6
- return e.jsx(w.default,{color:"success"})}},de=t.useCallback(async()=>{if(!X){if(J(!0),!$)return p.enqueueSnackbar("No unread notifications!"),void J(!1);try{await a.getV1NotificationMarkAllAsRead({...r.getToken()}),D(e=>e.map(e=>({...e,read:!0,status:"read"}))),Y(0)}catch(e){const t=r.getErrorMessage(e.message);p.enqueueSnackbar(t,{variant:"error"})}finally{J(!1)}}},[X,$]);return t.useEffect(()=>{ae||setTimeout(()=>{D([])},500)},[ae]),/* @__PURE__ */e.jsxs(f.default,{children:[
7
- /* @__PURE__ */e.jsx(j.default,{"aria-label":"notifications","aria-controls":ae?"notification-menu":void 0,"aria-haspopup":"true","aria-expanded":ae?"true":void 0,onClick:e=>{F(e.currentTarget),0===G.length&&ne()},children:/* @__PURE__ */e.jsx(y.default,{badgeContent:$,color:"error",children:/* @__PURE__ */e.jsx(N.Notification,{fontSize:"medium"})})}),
8
- /* @__PURE__ */e.jsxs(_.default,{id:"notification-menu",anchorEl:o,open:ae,onClose:oe,ref:ee,slotProps:{paper:{sx:{overflow:"visible",minWidth:400,maxWidth:450,maxHeight:520,"&:before":{content:'""',display:"block",position:"absolute",top:0,right:"50%",width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) translateX(50%) rotate(45deg)",zIndex:0,border:"1px solid",borderColor:({palette:e})=>e.grey[300]}}}},sx:{"& .MuiList-root":{borderRadius:"8px",maxHeight:520,overflowY:"auto",padding:0}},transformOrigin:{horizontal:"center",vertical:"top"},anchorOrigin:{horizontal:"center",vertical:"bottom"},onScroll:ie,children:[
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),a=require("../../../../../api-client/api.system-feature/api/index.js"),r=require("../../../../../utils/common/index.js"),n=require("../../../../../utils/format-text/index.js"),i=require("../../../../typography/typography/index.js"),o=require("../../../../../images/index.js"),s=require("../../../../../utils/route-utils/index.js"),d=require("../../../../../constants/pathnames/pathname.accounting/index.js"),l=require("../../../../../constants/pathnames/pathname.rental/index.js"),u=require("../../../../../constants/pathnames/pathname.inventory/index.js"),c=require("../../../../../constants/pathnames/pathname.manufacturing/index.js"),m=require("../../../../../constants/pathnames/pathname.procurement/index.js"),h=require("../../../../../constants/pathnames/pathname.crm/index.js"),g=require("react-router-dom"),x=require("../../../../button/button/index.js"),p=require("../../../../../node_modules/notistack/notistack.esm/index.js"),f=require("../../../../../node_modules/@mui/material/Box/Box/index.js"),j=require("../../../../../node_modules/@mui/material/IconButton/IconButton/index.js"),y=require("../../../../../node_modules/@mui/material/Badge/Badge/index.js"),_=require("../../../../icons/notification/index.js"),E=require("../../../../../node_modules/@mui/material/Menu/Menu/index.js"),R=require("../../../../../node_modules/@mui/material/CircularProgress/CircularProgress/index.js"),S=require("../../../../icons/tick/index.js"),b=require("../../../../../node_modules/@mui/material/Skeleton/Skeleton/index.js"),I=require("../../../../../node_modules/@mui/material/Alert/Alert/index.js"),P=require("../../../../../node_modules/@mui/material/MenuItem/MenuItem/index.js"),v=require("../../../../../node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.js"),W=require("../../../../../node_modules/@mui/material/Avatar/Avatar/index.js"),C=require("../../../../../node_modules/@mui/material/ListItemText/ListItemText/index.js"),w=require("../../../../../node_modules/@mui/icons-material/esm/Person/index.js"),T=require("../../../../../node_modules/@mui/icons-material/esm/CheckCircle/index.js"),A=require("../../../../../node_modules/@mui/icons-material/esm/Warning/index.js"),k=require("../../../../../node_modules/@mui/icons-material/esm/Email/index.js"),q=require("../../../../../node_modules/@mui/icons-material/esm/Assignment/index.js"),N=require("../../../../../node_modules/@mui/icons-material/esm/AccountBalance/index.js");const M={rbac:o.images.user,document:o.images.document,"accounts-and-finance":o.images.accounting,inventory:o.images.inventory,manufacturing:o.images.manufacturing,sales:o.images.crm,rental:o.images.rental,user:o.images.user,purchase:o.images.procurement,hrms:o.images.hrms},V={rbac:"#F3E5F5",document:"#FFF8E1","accounts-and-finance":"#E8F5E8",inventory:"#E3F2FD",manufacturing:"#FFF3E0",sales:"#F3E5F5",rental:"#E8F5E8",user:"#F3E5F5",purchase:"#FCE4EC",hrms:"#fcfcfc"};exports.default=()=>{const[o,F]=t.useState(null),[G,D]=t.useState([]),[O,B]=t.useState(!1),[z,L]=t.useState(!1),[H,U]=t.useState(null),[$,Y]=t.useState(0),[X,J]=t.useState(!1),[K,Q]=t.useState({skip:0,limit:10,totalCount:0,hasMore:!0}),Z=g.useNavigate(),ee=t.useRef(null),te=t.useRef(!1),ae=Boolean(o),re=t=>{const a={"accounts-and-finance":/* @__PURE__ */e.jsx(N.default,{color:"primary"}),user:/* @__PURE__ */e.jsx(w.default,{color:"action"}),approval:/* @__PURE__ */e.jsx(q.default,{color:"warning"})};return{id:t.id,type:t.action||t.notification_type||"info",title:n.default(t.title),message:t.message,timestamp:(e=>{const t=new Date(e),a=/* @__PURE__ */new Date-t,r=Math.floor(a/6e4),n=Math.floor(a/36e5),i=Math.floor(a/864e5);return r<1?"Just now":r<60?`${r} minute${r>1?"s":""} ago`:n<24?`${n} hour${n>1?"s":""} ago`:i<7?`${i} day${i>1?"s":""} ago`:t.toLocaleDateString()})(t.created_at),read:"read"===t.status,avatar:(e=>{if(!e)return null;const t=e.first_name||"",a=e.last_name||"";return t||a?(t.charAt(0)+a.charAt(0)).toUpperCase():null})(t.performed_user),performedByName:(r=t.performed_user,r&&`${r.first_name||""} ${r.last_name||""}`.trim()||null),module:t.module,subModule:t.sub_module,subModuleId:t.sub_module_id,status:t.status,icon:a[t.module]||a[t.action]||/* @__PURE__ */e.jsx(w.default,{color:"action"})};var r},ne=t.useCallback(async(e=!1)=>{if(!e||!te.current){e?(te.current=!0,L(!0)):(B(!0),Q(e=>({...e,skip:0,hasMore:!0}))),U(null);try{const t=e?K.skip:0,n=await a.getV1Notification({skip:t,limit:K.limit,...r.getToken()});if(!n.success||!n.data)throw Y(0),new Error(n.message||"Failed to load notifications");{const a=n.data.notifications.map(re);D(e?e=>[...e,...a]:a);const r=t+n.data.notifications.length,i=r<n.data.pagination.totalCount;if(Q(e=>({...e,skip:r,totalCount:n.data.pagination.totalCount,hasMore:i})),!e){const e=n.data.pagination.unreadCount;Y(e)}}}catch(t){U("Failed to load notifications")}finally{B(!1),L(!1),e&&(te.current=!1)}}},[K.limit,K.skip]),ie=t.useCallback(e=>{const{scrollTop:t,scrollHeight:a,clientHeight:r}=e.target;t+r>=a-50&&!te.current&&!O&&K.hasMore&&ne(!0)},[ne,O,K.hasMore]),oe=()=>{F(null)},se=t=>{if(t.icon)return t.icon;switch(t.type){case"approval":/* @__PURE__ */
2
+ return e.jsx(q.default,{color:"warning"});case"user":default:/* @__PURE__ */
3
+ return e.jsx(w.default,{color:"action"});case"message":/* @__PURE__ */
4
+ return e.jsx(k.default,{color:"primary"});case"warning":/* @__PURE__ */
5
+ return e.jsx(A.default,{color:"warning"});case"success":/* @__PURE__ */
6
+ return e.jsx(T.default,{color:"success"})}},de=t.useCallback(async()=>{if(!X){if(J(!0),!$)return p.enqueueSnackbar("No unread notifications!"),void J(!1);try{await a.getV1NotificationMarkAllAsRead({...r.getToken()}),D(e=>e.map(e=>({...e,read:!0,status:"read"}))),Y(0)}catch(e){const t=r.getErrorMessage(e.message);p.enqueueSnackbar(t,{variant:"error"})}finally{J(!1)}}},[X,$]);return t.useEffect(()=>{ae||setTimeout(()=>{D([])},500)},[ae]),/* @__PURE__ */e.jsxs(f.default,{children:[
7
+ /* @__PURE__ */e.jsx(j.default,{"aria-label":"notifications","aria-controls":ae?"notification-menu":void 0,"aria-haspopup":"true","aria-expanded":ae?"true":void 0,onClick:e=>{F(e.currentTarget),0===G.length&&ne()},children:/* @__PURE__ */e.jsx(y.default,{badgeContent:$,color:"error",children:/* @__PURE__ */e.jsx(_.Notification,{fontSize:"medium"})})}),
8
+ /* @__PURE__ */e.jsxs(E.default,{id:"notification-menu",anchorEl:o,open:ae,onClose:oe,ref:ee,slotProps:{paper:{sx:{overflow:"visible",minWidth:400,maxWidth:450,maxHeight:520,"&:before":{content:'""',display:"block",position:"absolute",top:0,right:"50%",width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) translateX(50%) rotate(45deg)",zIndex:0,border:"1px solid",borderColor:({palette:e})=>e.grey[300]}}}},sx:{"& .MuiList-root":{borderRadius:"8px",maxHeight:520,overflowY:"auto",padding:0}},transformOrigin:{horizontal:"center",vertical:"top"},anchorOrigin:{horizontal:"center",vertical:"bottom"},onScroll:ie,children:[
9
9
  /* @__PURE__ */e.jsxs(f.default,{sx:{px:2,py:1,borderBottom:"1px solid #e0e0e0",backgroundColor:"#fafafa"},children:[
10
10
  /* @__PURE__ */e.jsx(i.Typography,{type:"h5",weight:"bold",color:"grey.1000",children:"Notifications"}),$>0&&/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",justifyContent:"space-between",width:"100%",alignItems:"center"},children:[
11
11
  /* @__PURE__ */e.jsxs(i.Typography,{type:"s4",color:"grey.800",children:["You have ",$," unread notification",$>1?"s":""]}),
12
- /* @__PURE__ */e.jsx(x.default,{variant:"text",startIcon:X?/* @__PURE__ */e.jsx(E.default,{size:15,color:"inherit"}):/* @__PURE__ */e.jsx(R.Tick,{sx:{fontSize:"0.75rem !important"},color:"grey.900"}),sx:{p:0},onClick:de,disabled:$<=0||X,children:/* @__PURE__ */e.jsx(i.Typography,{type:"s4",color:"grey.900",children:"Mark all as read"})})]})]}),O&&0===G.length&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
12
+ /* @__PURE__ */e.jsx(x.default,{variant:"text",startIcon:X?/* @__PURE__ */e.jsx(R.default,{size:15,color:"inherit"}):/* @__PURE__ */e.jsx(S.Tick,{sx:{fontSize:"0.75rem !important"},color:"grey.900"}),sx:{p:0},onClick:de,disabled:$<=0||X,children:/* @__PURE__ */e.jsx(i.Typography,{type:"s4",color:"grey.900",children:"Mark all as read"})})]})]}),O&&0===G.length&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
13
13
  /* @__PURE__ */e.jsx(f.default,{sx:{display:"flex",flexDirection:"column",gap:1,justifyContent:"center",minWidth:400,p:1,m:1,backgroundColor:"grey.200",borderRadius:"8px"},children:/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",gap:1},children:[
14
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:40,height:40}),
14
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:40,height:40}),
15
15
  /* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",flexDirection:"column",gap:.5},children:[
16
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:360,height:25}),
17
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:150,height:11}),
18
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:360,height:11}),
19
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:360,height:11})]})]})}),
16
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:25}),
17
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:150,height:11}),
18
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:11}),
19
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:11})]})]})}),
20
20
  /* @__PURE__ */e.jsx(f.default,{sx:{display:"flex",flexDirection:"column",gap:1,justifyContent:"center",minWidth:400,p:1,m:1,backgroundColor:"grey.200",borderRadius:"8px"},children:/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",gap:1},children:[
21
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:40,height:40}),
21
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:40,height:40}),
22
22
  /* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",flexDirection:"column",gap:.5},children:[
23
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:360,height:25}),
24
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:150,height:11}),
25
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:360,height:11}),
26
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:360,height:11})]})]})}),
23
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:25}),
24
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:150,height:11}),
25
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:11}),
26
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:11})]})]})}),
27
27
  /* @__PURE__ */e.jsx(f.default,{sx:{display:"flex",flexDirection:"column",gap:1,justifyContent:"center",minWidth:400,p:1,m:1,backgroundColor:"grey.200",borderRadius:"8px"},children:/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",gap:1},children:[
28
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:40,height:40}),
28
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:40,height:40}),
29
29
  /* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",flexDirection:"column",gap:.5},children:[
30
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:360,height:25}),
31
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:150,height:11}),
32
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:360,height:11}),
33
- /* @__PURE__ */e.jsx(S.default,{variant:"rounded",width:360,height:11})]})]})})]}),H&&/* @__PURE__ */e.jsx(f.default,{sx:{p:2},children:/* @__PURE__ */e.jsx(b.default,{severity:"error",children:H})}),!O&&!H&&G.length>0&&/* @__PURE__ */e.jsxs(f.default,{sx:{maxHeight:420,overflowY:"auto",p:1},onScroll:ie,children:[G.map(t=>/* @__PURE__ */e.jsx("div",{children:/* @__PURE__ */e.jsxs(I.default,{onClick:()=>(async e=>{const t=G.find(t=>t.id===e);if(!t)return;oe(),"pending"===t.status&&await a.patchV1NotificationMarkAsReadId({id:e,...r.getToken()}),D(t=>t.map(t=>t.id===e?{...t,read:!0}:t)),Y(e=>Math.max(0,e-1));const i=(e=>{var t;const{moduleName:a="",moduleId:r="",notificationData:i={}}=e,o={sales_invoice:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_SALES_INVOICES),r.toString()),asset_transfers:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_ASSET_TRANSFER),r.toString()),budgets:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_BUDGET),r.toString()),cash_expense:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_CASH_EXPENSE),r.toString()),credit_notes:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_CREDIT_NOTE),r.toString()),debit_notes:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_DEBIT_NOTE),r.toString()),expense_reimbursement:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_EXPENSE_REIMBURSEMENT),r.toString()),journal_entries:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_JOURNAL_ENTRY),r.toString()),payment_entries:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_PAYMENT_ENTRY),r.toString()),purchase_invoice:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_PURCHASE_INVOICE),r.toString()),stock_transfer:()=>s.generateRouteWithId(u.PathnameGenerator(u.PathnameInventory.VIEW_STOCK_TRANSFER),r.toString()),bills_of_materials:()=>s.generateRouteWithId(c.PathnameGenerator(c.PathnameManufacturing.VIEW_BILL_OF_MATERIAL),r.toString()),purchase_agreement:()=>s.generateRouteWithId(m.PathnameGenerator(m.PathnamePurchase.VIEW_PURCHASE_AGREEMENT),r.toString()),purchase_orders:()=>{var e;return s.generateRouteWithId(1==(null==(e=null==i?void 0:i.data)?void 0:e.is_rental)?l.ROUTES.VIEW:m.PathnameGenerator(m.PathnamePurchase.VIEW_PURCHASE_ORDER),r.toString())},purchase_request:()=>s.generateRouteWithId(m.PathnameGenerator(m.PathnamePurchase.VIEW_PURCHASE_ORDER),r.toString()),vra:()=>s.generateRouteWithId(m.PathnameGenerator(m.PathnamePurchase.VIEW_VENDOR_RETURNS),r.toString()),sales_customer_returns:()=>s.generateRouteWithId(h.PathnameGenerator(h.PathnameCrm.VIEW_CUSTOMER_RETURNS),r.toString()),sales_order:()=>s.generateRouteWithId(h.PathnameGenerator(h.PathnameCrm.VIEW_SALES_ORDER),r.toString()),rental_order:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_RENTAL_ORDER),r.toString()),replacement_order:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_RENTAL_ORDER),r.toString()),rental_agreement:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_AGREEMENT),r.toString()),cross_hire_order:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_CROSS_HIRE_ORDER),r.toString()),cross_hire_request:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_CROSS_HIRE_REQUEST),r.toString())};return(null==(t=o[n.convertToUnderscore(a)])?void 0:t.call(o))||"/dashboard"})({moduleName:t.subModule,moduleId:t.subModuleId,notificationData:t});setTimeout(()=>{Z(i)},300)})(t.id),sx:({palette:e})=>({py:1,px:1,backgroundColor:t.read?"transparent":e.theme.grey[200],border:`1px solid ${e.grey[200]}`,marginBottom:"4px !important","&:hover":{backgroundColor:e.theme.grey[200]},alignItems:"flex-start",minHeight:"auto"}),children:[
34
- /* @__PURE__ */e.jsx(P.default,{sx:{minWidth:48,mt:0},children:(null==M?void 0:M[t.module])?/* @__PURE__ */e.jsx(v.default,{sx:{width:40,height:40,fontSize:"0.875rem",bgcolor:V[t.module]||"primary.main",color:"white",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)","& img":{width:"28px",height:"28px",objectFit:"contain"}},src:null==M?void 0:M[t.module]}):/* @__PURE__ */e.jsx(e.Fragment,{children:t.avatar?/* @__PURE__ */e.jsx(v.default,{sx:{width:40,height:40,fontSize:"0.875rem",bgcolor:"primary.main",color:"white",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},children:t.avatar}):/* @__PURE__ */e.jsx(v.default,{sx:{width:36,height:36,bgcolor:"grey.100",color:"grey.600",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},children:se(t)})})}),
35
- /* @__PURE__ */e.jsx(W.default,{sx:{margin:0,pr:1},primary:/* @__PURE__ */e.jsxs(f.default,{sx:{mb:.5},children:[
30
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:25}),
31
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:150,height:11}),
32
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:11}),
33
+ /* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:11})]})]})})]}),H&&/* @__PURE__ */e.jsx(f.default,{sx:{p:2},children:/* @__PURE__ */e.jsx(I.default,{severity:"error",children:H})}),!O&&!H&&G.length>0&&/* @__PURE__ */e.jsxs(f.default,{sx:{maxHeight:420,overflowY:"auto",p:1},onScroll:ie,children:[G.map(t=>/* @__PURE__ */e.jsx("div",{children:/* @__PURE__ */e.jsxs(P.default,{onClick:()=>(async e=>{const t=G.find(t=>t.id===e);if(!t)return;oe(),"pending"===t.status&&await a.patchV1NotificationMarkAsReadId({id:e,...r.getToken()}),D(t=>t.map(t=>t.id===e?{...t,read:!0}:t)),Y(e=>Math.max(0,e-1));const i=(e=>{var t;const{moduleName:a="",moduleId:r="",notificationData:i={}}=e,o={sales_invoice:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_SALES_INVOICES),r.toString()),asset_transfers:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_ASSET_TRANSFER),r.toString()),budgets:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_BUDGET),r.toString()),cash_expense:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_CASH_EXPENSE),r.toString()),credit_notes:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_CREDIT_NOTE),r.toString()),debit_notes:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_DEBIT_NOTE),r.toString()),expense_reimbursement:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_EXPENSE_REIMBURSEMENT),r.toString()),journal_entries:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_JOURNAL_ENTRY),r.toString()),payment_entries:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_PAYMENT_ENTRY),r.toString()),purchase_invoice:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_PURCHASE_INVOICE),r.toString()),stock_transfer:()=>s.generateRouteWithId(u.PathnameGenerator(u.PathnameInventory.VIEW_STOCK_TRANSFER),r.toString()),bills_of_materials:()=>s.generateRouteWithId(c.PathnameGenerator(c.PathnameManufacturing.VIEW_BILL_OF_MATERIAL),r.toString()),purchase_agreement:()=>s.generateRouteWithId(m.PathnameGenerator(m.PathnamePurchase.VIEW_PURCHASE_AGREEMENT),r.toString()),purchase_orders:()=>{var e;return s.generateRouteWithId(1==(null==(e=null==i?void 0:i.data)?void 0:e.is_rental)?l.ROUTES.VIEW:m.PathnameGenerator(m.PathnamePurchase.VIEW_PURCHASE_ORDER),r.toString())},purchase_request:()=>s.generateRouteWithId(m.PathnameGenerator(m.PathnamePurchase.VIEW_PURCHASE_ORDER),r.toString()),vra:()=>s.generateRouteWithId(m.PathnameGenerator(m.PathnamePurchase.VIEW_VENDOR_RETURNS),r.toString()),sales_customer_returns:()=>s.generateRouteWithId(h.PathnameGenerator(h.PathnameCrm.VIEW_CUSTOMER_RETURNS),r.toString()),sales_order:()=>s.generateRouteWithId(h.PathnameGenerator(h.PathnameCrm.VIEW_SALES_ORDER),r.toString()),rental_order:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_RENTAL_ORDER),r.toString()),replacement_order:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_RENTAL_ORDER),r.toString()),rental_agreement:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_AGREEMENT),r.toString()),cross_hire_order:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_CROSS_HIRE_ORDER),r.toString()),cross_hire_request:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_CROSS_HIRE_REQUEST),r.toString())};return(null==(t=o[n.convertToUnderscore(a)])?void 0:t.call(o))||"/dashboard"})({moduleName:t.subModule,moduleId:t.subModuleId,notificationData:t});setTimeout(()=>{Z(i)},300)})(t.id),sx:({palette:e})=>({py:1,px:1,backgroundColor:t.read?"transparent":e.theme.grey[200],border:`1px solid ${e.grey[200]}`,marginBottom:"4px !important","&:hover":{backgroundColor:e.theme.grey[200]},alignItems:"flex-start",minHeight:"auto"}),children:[
34
+ /* @__PURE__ */e.jsx(v.default,{sx:{minWidth:48,mt:0},children:(null==M?void 0:M[t.module])?/* @__PURE__ */e.jsx(W.default,{sx:{width:40,height:40,fontSize:"0.875rem",bgcolor:V[t.module]||"primary.main",color:"white",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)","& img":{width:"28px",height:"28px",objectFit:"contain"}},src:null==M?void 0:M[t.module]}):/* @__PURE__ */e.jsx(e.Fragment,{children:t.avatar?/* @__PURE__ */e.jsx(W.default,{sx:{width:40,height:40,fontSize:"0.875rem",bgcolor:"primary.main",color:"white",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},children:t.avatar}):/* @__PURE__ */e.jsx(W.default,{sx:{width:36,height:36,bgcolor:"grey.100",color:"grey.600",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},children:se(t)})})}),
35
+ /* @__PURE__ */e.jsx(C.default,{sx:{margin:0,pr:1},primary:/* @__PURE__ */e.jsxs(f.default,{sx:{mb:.5},children:[
36
36
  /* @__PURE__ */e.jsx(i.Typography,{type:"s3",weight:"bold",color:"grey.1000",children:t.title}),t.performedByName&&/* @__PURE__ */e.jsxs(i.Typography,{type:"s5",color:"grey.500",sx:{fontSize:"0.7rem !important",fontStyle:"italic",display:"block"},children:["by ",t.performedByName]})]}),secondary:/* @__PURE__ */e.jsxs(f.default,{children:[
37
37
  /* @__PURE__ */e.jsx(i.Typography,{type:"s4",color:"grey.800",sx:{mb:1,lineHeight:1.4},children:t.message}),
38
38
  /* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",alignItems:"center",gap:.5},children:[t.module&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
@@ -41,8 +41,8 @@ return e.jsx(w.default,{color:"success"})}},de=t.useCallback(async()=>{if(!X){if
41
41
  /* @__PURE__ */e.jsx(i.Typography,{type:"s5",sx:{fontSize:"0.65rem !important",color:"primary",textTransform:"capitalize"},children:n.formatLabel(t.subModule)}),
42
42
  /* @__PURE__ */e.jsx(f.default,{sx:{height:5,width:5,borderRadius:"100%",backgroundColor:"primary.main"}})]}),
43
43
  /* @__PURE__ */e.jsx(i.Typography,{type:"s5",color:"primary",sx:{fontSize:"0.65rem !important"},children:t.timestamp})]})]})}),!t.read&&/* @__PURE__ */e.jsx(f.default,{sx:{width:10,height:10,borderRadius:"50%",backgroundColor:"primary.main",flexShrink:0,mt:.5}})]})},t.id)),z&&/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",justifyContent:"center",py:2.5,px:3},children:[
44
- /* @__PURE__ */e.jsx(E.default,{size:20}),
44
+ /* @__PURE__ */e.jsx(R.default,{size:20}),
45
45
  /* @__PURE__ */e.jsx(i.Typography,{variant:"body2",sx:{ml:1.5,color:"text.secondary"},children:"Loading more..."})]}),!K.hasMore&&G.length>0&&/* @__PURE__ */e.jsx(f.default,{sx:{textAlign:"center",py:1.5,px:2},children:/* @__PURE__ */e.jsx(i.Typography,{type:"s3",color:"grey.800",textAlign:"center",children:"No more notifications"})})]}),!O&&!H&&0===G.length&&/* @__PURE__ */e.jsxs(f.default,{sx:{p:4,textAlign:"center"},children:[
46
- /* @__PURE__ */e.jsx(N.Notification,{sx:{fontSize:56,color:"text.secondary",mb:2}}),
46
+ /* @__PURE__ */e.jsx(_.Notification,{sx:{fontSize:56,color:"text.secondary",mb:2}}),
47
47
  /* @__PURE__ */e.jsx(i.Typography,{type:"s1",color:"grey.800",sx:{mb:1},textAlign:"center",children:"No notifications yet"})]})]})]})};
48
48
  //# sourceMappingURL=index.js.map
@@ -22,9 +22,9 @@ import MenuItem from "../../../node_modules/@mui/material/MenuItem/MenuItem/inde
22
22
  import ListItemIcon from "../../../node_modules/@mui/material/ListItemIcon/ListItemIcon/index.esm.js";
23
23
  import ListItemText from "../../../node_modules/@mui/material/ListItemText/ListItemText/index.esm.js";
24
24
  import Divider from "../../../node_modules/@mui/material/Divider/Divider/index.esm.js";
25
+ import { Eye } from "../../icons/eye/index.esm.js";
25
26
  import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
26
27
  import IconButton from "../../../node_modules/@mui/material/IconButton/IconButton/index.esm.js";
27
- import { Eye } from "../../icons/eye/index.esm.js";
28
28
  function Header(props) {
29
29
  const navigate = useNavigate();
30
30
  const { t } = useTranslation();
@@ -1,4 +1,4 @@
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 */i=,/* empty css */o=,/* empty css */t=,/* empty css */u=,/* empty css */d=,/* empty css */c=,/* empty css */m=,/* empty css */g=,/* empty css */h=;/* empty css */;/* empty css */var x=,/* empty css */j=,/* empty css */f=,/* empty css */p=,/* empty css */v=,/* empty css */y=,/* empty css */_=,/* empty css */b=,/* empty css */q=,/* empty css */N=,/* empty css */w=;/* empty css */function L(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var k=/* @__PURE__ */L(a);function S(L){const S=l.useNavigate(),{t:C}=s.useTranslation(),I=l.useLocation(),{logout:A,user:T}=m.useAuth(),{languages:z,currentLanguage:M,changeLanguage:B,isLoading:D,error:F,isFallbackActive:E,fetchLanguages:O,isRtl:P}=x.useLanguage(),{pathname:R}=I,[W,$]=k.default.useState(null),[G,H]=a.useState(!1),[V,J]=a.useState(null),[K,Q]=a.useState(!1),U=localStorage.getItem("_u_data")||void 0,X=U?JSON.parse(U):"",Y=Boolean(W),Z=()=>H(!G),ee=a.useCallback(e=>{const a=Array.isArray(e)?e.map(e=>({path:e})):[{path:e}];return Boolean(l.matchRoutes(a,I))},[I]),ae=a.useMemo(()=>d.default(C),[C]),le=a.useMemo(()=>ae.find(e=>{var a;return(null==(a=null==e?void 0:e.link)?void 0:a.toLowerCase())===R.toLowerCase()||ee(e.connectedRoutes)})||null,[ae,R,ee]),se=e=>{const a=e.target.value;if(J(null),!z||0===z.length){const e=C("header.language_not_available")||"Languages not available";return void J(e)}if(z.some(e=>e.code===a))try{B(a)}catch(l){const e=l instanceof Error?l.message:"Failed to change language";J(e)}else{const e=C("header.language_not_found",{language:a})||`Selected language "${a}" is not available`;J(e)}},ne=async()=>{J(null);try{await O()}catch(e){J("Failed to reload languages")}},re="primary-search-account-menu",ie=/* @__PURE__ */e.jsxs(p.default,{className:"main-profile-menu",anchorEl:W,id:re,keepMounted:!0,open:Y,onClose:()=>{$(null)},children:[
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 */i=,/* empty css */o=,/* empty css */t=,/* empty css */u=,/* empty css */d=,/* empty css */c=,/* empty css */m=,/* empty css */g=,/* empty css */h=;/* empty css */;/* empty css */var x=,/* empty css */j=,/* empty css */f=,/* empty css */p=,/* empty css */v=,/* empty css */y=,/* empty css */_=,/* empty css */b=,/* empty css */q=,/* empty css */N=,/* empty css */w=;/* empty css */function L(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var k=/* @__PURE__ */L(a);function S(L){const S=l.useNavigate(),{t:C}=s.useTranslation(),I=l.useLocation(),{logout:A,user:T}=m.useAuth(),{languages:z,currentLanguage:M,changeLanguage:B,isLoading:D,error:F,isFallbackActive:E,fetchLanguages:O,isRtl:P}=x.useLanguage(),{pathname:R}=I,[W,$]=k.default.useState(null),[G,H]=a.useState(!1),[V,J]=a.useState(null),[K,Q]=a.useState(!1),U=localStorage.getItem("_u_data")||void 0,X=U?JSON.parse(U):"",Y=Boolean(W),Z=()=>H(!G),ee=a.useCallback(e=>{const a=Array.isArray(e)?e.map(e=>({path:e})):[{path:e}];return Boolean(l.matchRoutes(a,I))},[I]),ae=a.useMemo(()=>d.default(C),[C]),le=a.useMemo(()=>ae.find(e=>{var a;return(null==(a=null==e?void 0:e.link)?void 0:a.toLowerCase())===R.toLowerCase()||ee(e.connectedRoutes)})||null,[ae,R,ee]),se=e=>{const a=e.target.value;if(J(null),!z||0===z.length){const e=C("header.language_not_available")||"Languages not available";return void J(e)}if(z.some(e=>e.code===a))try{B(a)}catch(l){const e=l instanceof Error?l.message:"Failed to change language";J(e)}else{const e=C("header.language_not_found",{language:a})||`Selected language "${a}" is not available`;J(e)}},ne=async()=>{J(null);try{await O()}catch(e){J("Failed to reload languages")}},re="primary-search-account-menu",ie=/* @__PURE__ */e.jsxs(p.default,{className:"main-profile-menu",anchorEl:W,id:re,keepMounted:!0,open:Y,onClose:()=>{$(null)},children:[
2
2
  /* @__PURE__ */e.jsx(v.default,{className:"user-assigned",children:/* @__PURE__ */e.jsx("span",{children:C("common.assigned_roles")||"Assigned roles"})}),
3
3
  /* @__PURE__ */e.jsxs(v.default,{className:"user-data-wrap",value:X.role_id,children:[
4
4
  /* @__PURE__ */e.jsx(y.default,{children:/* @__PURE__ */e.jsx(c.Avatar,{size:27,alt:X.role_name})}),
@@ -6,28 +6,28 @@
6
6
  /* @__PURE__ */e.jsx(o.Typography,{variant:"body2",color:"text.secondary",children:/* @__PURE__ */e.jsx("img",{src:t.images.tickicon,alt:"Active"})})]}),
7
7
  /* @__PURE__ */e.jsx(b.default,{}),
8
8
  /* @__PURE__ */e.jsxs(v.default,{className:"user-assigned",onClick:()=>{Q(!0),$(null)},children:[
9
- /* @__PURE__ */e.jsx(y.default,{children:/* @__PURE__ */e.jsx(w.Eye,{fontSize:"medium",width:20,height:20,htmlColor:"#292D32"})}),
9
+ /* @__PURE__ */e.jsx(y.default,{children:/* @__PURE__ */e.jsx(q.Eye,{fontSize:"medium",width:20,height:20,htmlColor:"#292D32"})}),
10
10
  /* @__PURE__ */e.jsx(_.default,{className:"size15",children:C("common.change_password")})]}),
11
11
  /* @__PURE__ */e.jsx(b.default,{}),
12
12
  /* @__PURE__ */e.jsxs(v.default,{className:"menu-item-color",onClick:()=>{Z(),$(null)},children:[
13
13
  /* @__PURE__ */e.jsx(y.default,{children:/* @__PURE__ */e.jsx("img",{src:t.images.logout,alt:"logout"})}),
14
14
  /* @__PURE__ */e.jsx(_.default,{className:"size15",children:C("common.logout")})]})]});/* @__PURE__ */
15
15
  return e.jsxs(e.Fragment,{children:[
16
- /* @__PURE__ */e.jsxs(q.default,{className:"main-box",children:[!L.isDropdownShow&&/* @__PURE__ */e.jsx(l.Link,{to:T?i.Pathname.DASHBOARD:i.Pathname.LOGIN,children:/* @__PURE__ */e.jsx("img",{src:t.images.logo,alt:"logo"})}),
17
- /* @__PURE__ */e.jsx(q.default,{className:"second-box",children:L.isDropdownShow&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
18
- /* @__PURE__ */e.jsx(N.default,{onClick:()=>{window.history.back()},children:/* @__PURE__ */e.jsx(r.default,{className:P?"arrow-pointer_rtl":"arrow-pointer"})}),
19
- /* @__PURE__ */e.jsx(q.default,{width:250,children:/* @__PURE__ */e.jsx(u.default,{fullWidth:!0,placeholder:"Placeholder",size:"small",value:(null==le?void 0:le.link)||"",onChange:e=>{const a=e.target.value;setTimeout(()=>{S(a)},300)},className:"select-box",variant:"outlined",renderValue:a=>/* @__PURE__ */e.jsx(e.Fragment,{children:le?/* @__PURE__ */e.jsxs(q.default,{className:"selected-menu-box",children:[
16
+ /* @__PURE__ */e.jsxs(N.default,{className:"main-box",children:[!L.isDropdownShow&&/* @__PURE__ */e.jsx(l.Link,{to:T?i.Pathname.DASHBOARD:i.Pathname.LOGIN,children:/* @__PURE__ */e.jsx("img",{src:t.images.logo,alt:"logo"})}),
17
+ /* @__PURE__ */e.jsx(N.default,{className:"second-box",children:L.isDropdownShow&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
18
+ /* @__PURE__ */e.jsx(w.default,{onClick:()=>{window.history.back()},children:/* @__PURE__ */e.jsx(r.default,{className:P?"arrow-pointer_rtl":"arrow-pointer"})}),
19
+ /* @__PURE__ */e.jsx(N.default,{width:250,children:/* @__PURE__ */e.jsx(u.default,{fullWidth:!0,placeholder:"Placeholder",size:"small",value:(null==le?void 0:le.link)||"",onChange:e=>{const a=e.target.value;setTimeout(()=>{S(a)},300)},className:"select-box",variant:"outlined",renderValue:a=>/* @__PURE__ */e.jsx(e.Fragment,{children:le?/* @__PURE__ */e.jsxs(N.default,{className:"selected-menu-box",children:[
20
20
  /* @__PURE__ */e.jsx("img",{src:le.icon,alt:le.label}),le.label]}):a}),children:ae.map((a,l)=>/* @__PURE__ */e.jsxs(v.default,{className:"select-box-menu-item",value:a.link,children:[
21
21
  /* @__PURE__ */e.jsx("img",{src:a.icon,alt:a.label}),a.label]},l))})})]})}),
22
- /* @__PURE__ */e.jsxs(q.default,{className:"header-right-wrap",children:[
23
- /* @__PURE__ */e.jsx(q.default,{className:"language-selector-wrapper",children:(()=>{const a=z&&0!==z.length?z.some(e=>"en"===e.code)?z:[{code:"en",label:"English",direction:"ltr"},...z]:[{code:"en",label:"English",direction:"ltr"}],l=(null==M?void 0:M.code)||"en";return D?/* @__PURE__ */e.jsx(q.default,{className:"language-loading",children:/* @__PURE__ */e.jsx(o.Typography,{variant:"body2",color:"text.secondary",children:"Loading..."})}):/* @__PURE__ */e.jsxs(u.default,{onChange:se,size:"small",value:l,renderValue:()=>M?E||F?`${M.label}`:M.label:C("header.select_language")||"Select Language",error:!!V,className:E||F?"language-fallback-active":"",children:[a.map(({code:a,label:l})=>/* @__PURE__ */e.jsx(v.default,{value:a,children:/* @__PURE__ */e.jsx(o.Typography,{type:"s4",weight:"medium",color:"theme.secondary.1000",children:l})},a)),F&&/* @__PURE__ */e.jsx(v.default,{onClick:ne,style:{fontStyle:"italic"},children:/* @__PURE__ */e.jsxs(o.Typography,{type:"s4",weight:"medium",color:"theme.secondary.500",children:["🔄 ",C("header.retry_languages")||"Retry loading languages"]})})]})})()}),
22
+ /* @__PURE__ */e.jsxs(N.default,{className:"header-right-wrap",children:[
23
+ /* @__PURE__ */e.jsx(N.default,{className:"language-selector-wrapper",children:(()=>{const a=z&&0!==z.length?z.some(e=>"en"===e.code)?z:[{code:"en",label:"English",direction:"ltr"},...z]:[{code:"en",label:"English",direction:"ltr"}],l=(null==M?void 0:M.code)||"en";return D?/* @__PURE__ */e.jsx(N.default,{className:"language-loading",children:/* @__PURE__ */e.jsx(o.Typography,{variant:"body2",color:"text.secondary",children:"Loading..."})}):/* @__PURE__ */e.jsxs(u.default,{onChange:se,size:"small",value:l,renderValue:()=>M?E||F?`${M.label}`:M.label:C("header.select_language")||"Select Language",error:!!V,className:E||F?"language-fallback-active":"",children:[a.map(({code:a,label:l})=>/* @__PURE__ */e.jsx(v.default,{value:a,children:/* @__PURE__ */e.jsx(o.Typography,{type:"s4",weight:"medium",color:"theme.secondary.1000",children:l})},a)),F&&/* @__PURE__ */e.jsx(v.default,{onClick:ne,style:{fontStyle:"italic"},children:/* @__PURE__ */e.jsxs(o.Typography,{type:"s4",weight:"medium",color:"theme.secondary.500",children:["🔄 ",C("header.retry_languages")||"Retry loading languages"]})})]})})()}),
24
24
  /* @__PURE__ */e.jsx(f.default,{}),
25
- /* @__PURE__ */e.jsx(N.default,{size:"small","aria-label":"help",className:"p-0",children:/* @__PURE__ */e.jsx("img",{src:t.images.question,alt:"question icon"})}),
26
- /* @__PURE__ */e.jsx("img",{src:t.images.vdivider,alt:"divider icon"}),localStorage.getItem("_tid")?/* @__PURE__ */e.jsxs(q.default,{className:"user-profile-box",onClick:e=>$(e.currentTarget),children:[
25
+ /* @__PURE__ */e.jsx(w.default,{size:"small","aria-label":"help",className:"p-0",children:/* @__PURE__ */e.jsx("img",{src:t.images.question,alt:"question icon"})}),
26
+ /* @__PURE__ */e.jsx("img",{src:t.images.vdivider,alt:"divider icon"}),localStorage.getItem("_tid")?/* @__PURE__ */e.jsxs(N.default,{className:"user-profile-box",onClick:e=>$(e.currentTarget),children:[
27
27
  /* @__PURE__ */e.jsx(c.Avatar,{size:32,src:(null==T?void 0:T.profile_image)?`https://erpforce-dev.s3.eu-west-1.amazonaws.com/${null==T?void 0:T.profile_image}`:void 0,alt:h.default(null==T?void 0:T.full_name),className:"avatar-class"}),
28
28
  /* @__PURE__ */e.jsxs("div",{children:[
29
29
  /* @__PURE__ */e.jsx(o.Typography,{className:"profile-name",children:null==T?void 0:T.full_name}),
30
- /* @__PURE__ */e.jsx(o.Typography,{className:"user-auth",children:null==T?void 0:T.role_name})]})]}):/* @__PURE__ */e.jsx(N.default,{size:"large",edge:"end","aria-label":"account of current user","aria-controls":re,"aria-haspopup":"true",component:l.Link,to:i.Pathname.LOGIN,color:"inherit",children:/* @__PURE__ */e.jsx(n.default,{className:"icon-btn"})})]}),ie]}),
30
+ /* @__PURE__ */e.jsx(o.Typography,{className:"user-auth",children:null==T?void 0:T.role_name})]})]}):/* @__PURE__ */e.jsx(w.default,{size:"large",edge:"end","aria-label":"account of current user","aria-controls":re,"aria-haspopup":"true",component:l.Link,to:i.Pathname.LOGIN,color:"inherit",children:/* @__PURE__ */e.jsx(n.default,{className:"icon-btn"})})]}),ie]}),
31
31
  /* @__PURE__ */e.jsx(g.default,{open:G,title:C("common.logout"),description:C("common.logout_confirmation")||"Are you sure, you want to logout?",onConfirm:()=>A(),onClose:Z,fullWidth:!0,maxWidth:"xs",buttonTexts:{confirm:C("common.logout"),cancel:C("common.cancel")}}),
32
32
  /* @__PURE__ */e.jsx(j.default,{showModal:K,setShowModal:Q})]})}exports.Header=S,exports.default=S;
33
33
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,405 @@
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