@erpsquad/common 1.8.98 → 1.8.100

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 (1141) 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.esm4.js +1 -1
  4. package/dist/_virtual/index/index.esm5.js +3 -3
  5. package/dist/_virtual/index/index.esm6.js +3 -3
  6. package/dist/_virtual/index/index.esm7.js +3 -3
  7. package/dist/_virtual/index/index.esm8.js +3 -3
  8. package/dist/_virtual/index/index.esm9.js +3 -3
  9. package/dist/_virtual/index/index10.js +1 -1
  10. package/dist/_virtual/index/index11.js +1 -1
  11. package/dist/_virtual/index/index4.js +1 -1
  12. package/dist/_virtual/index/index5.js +1 -1
  13. package/dist/_virtual/index/index6.js +1 -1
  14. package/dist/_virtual/index/index7.js +1 -1
  15. package/dist/_virtual/index/index8.js +1 -1
  16. package/dist/_virtual/index/index9.js +1 -1
  17. package/dist/api-client/api.hrms/api/index.esm.js +12 -1
  18. package/dist/api-client/api.hrms/api/index.esm.js.map +1 -1
  19. package/dist/api-client/api.hrms/api/index.js +1 -1
  20. package/dist/api-client/api.hrms/api/index.js.map +1 -1
  21. package/dist/api-client/api.inventory/api/index.esm.js +30 -95
  22. package/dist/api-client/api.inventory/api/index.esm.js.map +1 -1
  23. package/dist/api-client/api.inventory/api/index.js +1 -1
  24. package/dist/api-client/api.inventory/api/index.js.map +1 -1
  25. package/dist/api-client/api.inventory/api-types.d.ts +425 -930
  26. package/dist/api-client/api.inventory/api.d.ts +10 -14
  27. package/dist/api-client/api.rbac/api/index.esm2.js +0 -218
  28. package/dist/api-client/api.rbac/api/index.esm2.js.map +1 -1
  29. package/dist/api-client/api.rbac/api/index2.js +1 -1
  30. package/dist/api-client/api.rbac/api/index2.js.map +1 -1
  31. package/dist/components/action-bar/action-bar/index.esm.js +1 -2
  32. package/dist/components/action-bar/action-bar/index.esm.js.map +1 -1
  33. package/dist/components/action-bar/action-bar/index.js +5 -5
  34. package/dist/components/action-bar/action-bar/index.js.map +1 -1
  35. package/dist/components/editor/custom-editor/index.esm.js +3 -1
  36. package/dist/components/editor/custom-editor/index.esm.js.map +1 -1
  37. package/dist/components/editor/custom-editor/index.js +2 -2
  38. package/dist/components/editor/custom-editor/index.js.map +1 -1
  39. package/dist/components/filter/components/delete-group/index.esm.js +0 -1
  40. package/dist/components/filter/components/delete-group/index.esm.js.map +1 -1
  41. package/dist/components/filter/components/delete-group/index.js +1 -1
  42. package/dist/components/filter/components/delete-group/index.js.map +1 -1
  43. package/dist/components/filter/filter/index.esm.js +1 -2
  44. package/dist/components/filter/filter/index.esm.js.map +1 -1
  45. package/dist/components/filter/filter/index.js +12 -12
  46. package/dist/components/filter/filter/index.js.map +1 -1
  47. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js +5 -3
  48. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js.map +1 -1
  49. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js +6 -6
  50. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js.map +1 -1
  51. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select.d.ts +1 -0
  52. package/dist/components/header/header/index.esm.js +3 -1
  53. package/dist/components/header/header/index.esm.js.map +1 -1
  54. package/dist/components/header/header/index.js +21 -21
  55. package/dist/components/header/header/index.js.map +1 -1
  56. package/dist/components/header/redux/actionCreator/index.esm.js +2 -1
  57. package/dist/components/header/redux/actionCreator/index.esm.js.map +1 -1
  58. package/dist/components/header/redux/actionCreator/index.js +1 -1
  59. package/dist/components/header/redux/actionCreator/index.js.map +1 -1
  60. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -2
  61. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js.map +1 -1
  62. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.js +1 -1
  63. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.js.map +1 -1
  64. package/dist/components/material-table/components/inline-edit-fields/index.esm.js.map +1 -1
  65. package/dist/components/material-table/components/inline-edit-fields/index.js.map +1 -1
  66. package/dist/components/providers/ERPUIProvider/index.esm.js +15 -1
  67. package/dist/components/providers/ERPUIProvider/index.esm.js.map +1 -1
  68. package/dist/components/providers/ERPUIProvider/index.js +1 -1
  69. package/dist/components/providers/ERPUIProvider/index.js.map +1 -1
  70. package/dist/components/providers/ERPUIProvider.d.ts +2 -0
  71. package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -2
  72. package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js.map +1 -1
  73. package/dist/components/reports-title-bar/redux/actionCreator/index.js +1 -1
  74. package/dist/components/reports-title-bar/redux/actionCreator/index.js.map +1 -1
  75. package/dist/components/share-modal/redux/actionCreator/index.esm.js +2 -1
  76. package/dist/components/share-modal/redux/actionCreator/index.esm.js.map +1 -1
  77. package/dist/components/share-modal/redux/actionCreator/index.js +1 -1
  78. package/dist/components/share-modal/redux/actionCreator/index.js.map +1 -1
  79. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js +1 -1
  80. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js.map +1 -1
  81. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js +1 -1
  82. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js.map +1 -1
  83. package/dist/components/upload/upload/index.esm.js +3 -2
  84. package/dist/components/upload/upload/index.esm.js.map +1 -1
  85. package/dist/components/upload/upload/index.js +29 -29
  86. package/dist/components/upload/upload/index.js.map +1 -1
  87. package/dist/constants/defaultColumns/index.esm.js +1 -1
  88. package/dist/constants/defaultColumns/index.esm.js.map +1 -1
  89. package/dist/constants/defaultColumns/index.js +1 -1
  90. package/dist/constants/defaultColumns/index.js.map +1 -1
  91. package/dist/contexts/AuthContext/index.esm.js +4 -3
  92. package/dist/contexts/AuthContext/index.esm.js.map +1 -1
  93. package/dist/contexts/AuthContext/index.js +2 -2
  94. package/dist/contexts/AuthContext/index.js.map +1 -1
  95. package/dist/contexts/languageContext/index.esm.js +2 -1
  96. package/dist/contexts/languageContext/index.esm.js.map +1 -1
  97. package/dist/contexts/languageContext/index.js +2 -2
  98. package/dist/contexts/languageContext/index.js.map +1 -1
  99. package/dist/hooks/use-material-calculations/index.esm.js +1 -2
  100. package/dist/hooks/use-material-calculations/index.esm.js.map +1 -1
  101. package/dist/hooks/use-material-calculations/index.js +1 -1
  102. package/dist/hooks/use-material-calculations/index.js.map +1 -1
  103. package/dist/hooks/useLangauge/index.esm.js +1 -2
  104. package/dist/hooks/useLangauge/index.esm.js.map +1 -1
  105. package/dist/hooks/useLangauge/index.js +1 -1
  106. package/dist/hooks/useLangauge/index.js.map +1 -1
  107. package/dist/index.esm.js +9 -1
  108. package/dist/index.esm.js.map +1 -1
  109. package/dist/index.js +1 -1
  110. package/dist/node_modules/@hookform/resolvers/yup/dist/yup/index.esm.js +14 -15
  111. package/dist/node_modules/@hookform/resolvers/yup/dist/yup/index.esm.js.map +1 -1
  112. package/dist/node_modules/@hookform/resolvers/yup/dist/yup/index.js +1 -1
  113. package/dist/node_modules/@hookform/resolvers/yup/dist/yup/index.js.map +1 -1
  114. package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize/index.esm.js +2 -3
  115. package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize/index.esm.js.map +1 -1
  116. package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize/index.js +1 -1
  117. package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize/index.js.map +1 -1
  118. package/dist/node_modules/@mui/lab/TabContext/TabContext/index.esm.js +2 -3
  119. package/dist/node_modules/@mui/lab/TabContext/TabContext/index.esm.js.map +1 -1
  120. package/dist/node_modules/@mui/lab/TabContext/TabContext/index.js +2 -2
  121. package/dist/node_modules/@mui/lab/TabContext/TabContext/index.js.map +1 -1
  122. package/dist/node_modules/@mui/lab/TabList/TabList/index.esm.js +1 -2
  123. package/dist/node_modules/@mui/lab/TabList/TabList/index.esm.js.map +1 -1
  124. package/dist/node_modules/@mui/lab/TabList/TabList/index.js +1 -1
  125. package/dist/node_modules/@mui/lab/TabList/TabList/index.js.map +1 -1
  126. package/dist/node_modules/@mui/lab/TabPanel/TabPanel/index.esm.js +1 -2
  127. package/dist/node_modules/@mui/lab/TabPanel/TabPanel/index.esm.js.map +1 -1
  128. package/dist/node_modules/@mui/lab/TabPanel/TabPanel/index.js +2 -2
  129. package/dist/node_modules/@mui/lab/TabPanel/TabPanel/index.js.map +1 -1
  130. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js +1 -2
  131. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js.map +1 -1
  132. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js +2 -2
  133. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js.map +1 -1
  134. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js +1 -2
  135. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js.map +1 -1
  136. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js +1 -1
  137. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js.map +1 -1
  138. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js +1 -2
  139. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js.map +1 -1
  140. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js +2 -2
  141. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js.map +1 -1
  142. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js +1 -2
  143. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js.map +1 -1
  144. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js +1 -1
  145. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js.map +1 -1
  146. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js +1 -2
  147. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js.map +1 -1
  148. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js +2 -2
  149. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js.map +1 -1
  150. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js +1 -2
  151. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js.map +1 -1
  152. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js +2 -2
  153. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js.map +1 -1
  154. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js +1 -2
  155. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js.map +1 -1
  156. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js +2 -2
  157. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js.map +1 -1
  158. package/dist/node_modules/@mui/material/Accordion/Accordion/index.esm.js +1 -2
  159. package/dist/node_modules/@mui/material/Accordion/Accordion/index.esm.js.map +1 -1
  160. package/dist/node_modules/@mui/material/Accordion/Accordion/index.js +2 -2
  161. package/dist/node_modules/@mui/material/Accordion/Accordion/index.js.map +1 -1
  162. package/dist/node_modules/@mui/material/Accordion/AccordionContext/index.esm.js +1 -2
  163. package/dist/node_modules/@mui/material/Accordion/AccordionContext/index.esm.js.map +1 -1
  164. package/dist/node_modules/@mui/material/Accordion/AccordionContext/index.js +1 -1
  165. package/dist/node_modules/@mui/material/Accordion/AccordionContext/index.js.map +1 -1
  166. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js +1 -2
  167. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js.map +1 -1
  168. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js +1 -1
  169. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js.map +1 -1
  170. package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails/index.esm.js +1 -2
  171. package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails/index.esm.js.map +1 -1
  172. package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails/index.js +2 -2
  173. package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails/index.js.map +1 -1
  174. package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary/index.esm.js +1 -2
  175. package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary/index.esm.js.map +1 -1
  176. package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary/index.js +2 -2
  177. package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary/index.js.map +1 -1
  178. package/dist/node_modules/@mui/material/Alert/Alert/index.esm.js +1 -2
  179. package/dist/node_modules/@mui/material/Alert/Alert/index.esm.js.map +1 -1
  180. package/dist/node_modules/@mui/material/Alert/Alert/index.js +1 -1
  181. package/dist/node_modules/@mui/material/Alert/Alert/index.js.map +1 -1
  182. package/dist/node_modules/@mui/material/AlertTitle/AlertTitle/index.esm.js +1 -2
  183. package/dist/node_modules/@mui/material/AlertTitle/AlertTitle/index.esm.js.map +1 -1
  184. package/dist/node_modules/@mui/material/AlertTitle/AlertTitle/index.js +1 -1
  185. package/dist/node_modules/@mui/material/AlertTitle/AlertTitle/index.js.map +1 -1
  186. package/dist/node_modules/@mui/material/AppBar/AppBar/index.esm.js +1 -2
  187. package/dist/node_modules/@mui/material/AppBar/AppBar/index.esm.js.map +1 -1
  188. package/dist/node_modules/@mui/material/AppBar/AppBar/index.js +1 -1
  189. package/dist/node_modules/@mui/material/AppBar/AppBar/index.js.map +1 -1
  190. package/dist/node_modules/@mui/material/Autocomplete/Autocomplete/index.esm.js +1 -2
  191. package/dist/node_modules/@mui/material/Autocomplete/Autocomplete/index.esm.js.map +1 -1
  192. package/dist/node_modules/@mui/material/Autocomplete/Autocomplete/index.js +1 -1
  193. package/dist/node_modules/@mui/material/Autocomplete/Autocomplete/index.js.map +1 -1
  194. package/dist/node_modules/@mui/material/Avatar/Avatar/index.esm.js +1 -2
  195. package/dist/node_modules/@mui/material/Avatar/Avatar/index.esm.js.map +1 -1
  196. package/dist/node_modules/@mui/material/Avatar/Avatar/index.js +1 -1
  197. package/dist/node_modules/@mui/material/Avatar/Avatar/index.js.map +1 -1
  198. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js +2 -3
  199. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js.map +1 -1
  200. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js +2 -2
  201. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js.map +1 -1
  202. package/dist/node_modules/@mui/material/Backdrop/Backdrop/index.esm.js +1 -2
  203. package/dist/node_modules/@mui/material/Backdrop/Backdrop/index.esm.js.map +1 -1
  204. package/dist/node_modules/@mui/material/Backdrop/Backdrop/index.js +1 -1
  205. package/dist/node_modules/@mui/material/Backdrop/Backdrop/index.js.map +1 -1
  206. package/dist/node_modules/@mui/material/Badge/Badge/index.esm.js +1 -2
  207. package/dist/node_modules/@mui/material/Badge/Badge/index.esm.js.map +1 -1
  208. package/dist/node_modules/@mui/material/Badge/Badge/index.js +1 -1
  209. package/dist/node_modules/@mui/material/Badge/Badge/index.js.map +1 -1
  210. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js +2 -3
  211. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js.map +1 -1
  212. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js +3 -3
  213. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js.map +1 -1
  214. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js +1 -2
  215. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js.map +1 -1
  216. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js +2 -2
  217. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js.map +1 -1
  218. package/dist/node_modules/@mui/material/Box/Box/index.esm.js +1 -2
  219. package/dist/node_modules/@mui/material/Box/Box/index.esm.js.map +1 -1
  220. package/dist/node_modules/@mui/material/Box/Box/index.js +1 -1
  221. package/dist/node_modules/@mui/material/Box/Box/index.js.map +1 -1
  222. package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed/index.esm.js +1 -2
  223. package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed/index.esm.js.map +1 -1
  224. package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed/index.js +2 -2
  225. package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed/index.js.map +1 -1
  226. package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs/index.esm.js +3 -4
  227. package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs/index.esm.js.map +1 -1
  228. package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs/index.js +2 -2
  229. package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs/index.js.map +1 -1
  230. package/dist/node_modules/@mui/material/Button/Button/index.esm.js +1 -2
  231. package/dist/node_modules/@mui/material/Button/Button/index.esm.js.map +1 -1
  232. package/dist/node_modules/@mui/material/Button/Button/index.js +1 -1
  233. package/dist/node_modules/@mui/material/Button/Button/index.js.map +1 -1
  234. package/dist/node_modules/@mui/material/ButtonBase/ButtonBase/index.esm.js +2 -3
  235. package/dist/node_modules/@mui/material/ButtonBase/ButtonBase/index.esm.js.map +1 -1
  236. package/dist/node_modules/@mui/material/ButtonBase/ButtonBase/index.js +3 -3
  237. package/dist/node_modules/@mui/material/ButtonBase/ButtonBase/index.js.map +1 -1
  238. package/dist/node_modules/@mui/material/ButtonBase/Ripple/index.esm.js +1 -2
  239. package/dist/node_modules/@mui/material/ButtonBase/Ripple/index.esm.js.map +1 -1
  240. package/dist/node_modules/@mui/material/ButtonBase/Ripple/index.js +1 -1
  241. package/dist/node_modules/@mui/material/ButtonBase/Ripple/index.js.map +1 -1
  242. package/dist/node_modules/@mui/material/ButtonBase/TouchRipple/index.esm.js +1 -2
  243. package/dist/node_modules/@mui/material/ButtonBase/TouchRipple/index.esm.js.map +1 -1
  244. package/dist/node_modules/@mui/material/ButtonBase/TouchRipple/index.js +1 -1
  245. package/dist/node_modules/@mui/material/ButtonBase/TouchRipple/index.js.map +1 -1
  246. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup/index.esm.js +1 -2
  247. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup/index.esm.js.map +1 -1
  248. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup/index.js +1 -1
  249. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup/index.js.map +1 -1
  250. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext/index.esm.js +1 -2
  251. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext/index.esm.js.map +1 -1
  252. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext/index.js +1 -1
  253. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext/index.js.map +1 -1
  254. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupContext/index.esm.js +1 -2
  255. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupContext/index.esm.js.map +1 -1
  256. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupContext/index.js +1 -1
  257. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupContext/index.js.map +1 -1
  258. package/dist/node_modules/@mui/material/Card/Card/index.esm.js +1 -2
  259. package/dist/node_modules/@mui/material/Card/Card/index.esm.js.map +1 -1
  260. package/dist/node_modules/@mui/material/Card/Card/index.js +1 -1
  261. package/dist/node_modules/@mui/material/Card/Card/index.js.map +1 -1
  262. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js +1 -2
  263. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js.map +1 -1
  264. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js +2 -2
  265. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js.map +1 -1
  266. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js +1 -2
  267. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js.map +1 -1
  268. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js +2 -2
  269. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js.map +1 -1
  270. package/dist/node_modules/@mui/material/CardContent/CardContent/index.esm.js +1 -2
  271. package/dist/node_modules/@mui/material/CardContent/CardContent/index.esm.js.map +1 -1
  272. package/dist/node_modules/@mui/material/CardContent/CardContent/index.js +1 -1
  273. package/dist/node_modules/@mui/material/CardContent/CardContent/index.js.map +1 -1
  274. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js +1 -2
  275. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js.map +1 -1
  276. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js +1 -1
  277. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js.map +1 -1
  278. package/dist/node_modules/@mui/material/CardMedia/CardMedia/index.esm.js +1 -2
  279. package/dist/node_modules/@mui/material/CardMedia/CardMedia/index.esm.js.map +1 -1
  280. package/dist/node_modules/@mui/material/CardMedia/CardMedia/index.js +2 -2
  281. package/dist/node_modules/@mui/material/CardMedia/CardMedia/index.js.map +1 -1
  282. package/dist/node_modules/@mui/material/Checkbox/Checkbox/index.esm.js +1 -2
  283. package/dist/node_modules/@mui/material/Checkbox/Checkbox/index.esm.js.map +1 -1
  284. package/dist/node_modules/@mui/material/Checkbox/Checkbox/index.js +1 -1
  285. package/dist/node_modules/@mui/material/Checkbox/Checkbox/index.js.map +1 -1
  286. package/dist/node_modules/@mui/material/Chip/Chip/index.esm.js +2 -3
  287. package/dist/node_modules/@mui/material/Chip/Chip/index.esm.js.map +1 -1
  288. package/dist/node_modules/@mui/material/Chip/Chip/index.js +1 -1
  289. package/dist/node_modules/@mui/material/Chip/Chip/index.js.map +1 -1
  290. package/dist/node_modules/@mui/material/CircularProgress/CircularProgress/index.esm.js +1 -2
  291. package/dist/node_modules/@mui/material/CircularProgress/CircularProgress/index.esm.js.map +1 -1
  292. package/dist/node_modules/@mui/material/CircularProgress/CircularProgress/index.js +6 -6
  293. package/dist/node_modules/@mui/material/CircularProgress/CircularProgress/index.js.map +1 -1
  294. package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener/index.esm.js +2 -3
  295. package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener/index.esm.js.map +1 -1
  296. package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener/index.js +1 -1
  297. package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener/index.js.map +1 -1
  298. package/dist/node_modules/@mui/material/Collapse/Collapse/index.esm.js +1 -2
  299. package/dist/node_modules/@mui/material/Collapse/Collapse/index.esm.js.map +1 -1
  300. package/dist/node_modules/@mui/material/Collapse/Collapse/index.js +1 -1
  301. package/dist/node_modules/@mui/material/Collapse/Collapse/index.js.map +1 -1
  302. package/dist/node_modules/@mui/material/Container/Container/index.esm.js +1 -2
  303. package/dist/node_modules/@mui/material/Container/Container/index.esm.js.map +1 -1
  304. package/dist/node_modules/@mui/material/Container/Container/index.js +1 -1
  305. package/dist/node_modules/@mui/material/Container/Container/index.js.map +1 -1
  306. package/dist/node_modules/@mui/material/CssBaseline/CssBaseline/index.esm.js +1 -2
  307. package/dist/node_modules/@mui/material/CssBaseline/CssBaseline/index.esm.js.map +1 -1
  308. package/dist/node_modules/@mui/material/CssBaseline/CssBaseline/index.js +2 -2
  309. package/dist/node_modules/@mui/material/CssBaseline/CssBaseline/index.js.map +1 -1
  310. package/dist/node_modules/@mui/material/Dialog/Dialog/index.esm.js +1 -2
  311. package/dist/node_modules/@mui/material/Dialog/Dialog/index.esm.js.map +1 -1
  312. package/dist/node_modules/@mui/material/Dialog/Dialog/index.js +1 -1
  313. package/dist/node_modules/@mui/material/Dialog/Dialog/index.js.map +1 -1
  314. package/dist/node_modules/@mui/material/Dialog/DialogContext/index.esm.js +1 -2
  315. package/dist/node_modules/@mui/material/Dialog/DialogContext/index.esm.js.map +1 -1
  316. package/dist/node_modules/@mui/material/Dialog/DialogContext/index.js +1 -1
  317. package/dist/node_modules/@mui/material/Dialog/DialogContext/index.js.map +1 -1
  318. package/dist/node_modules/@mui/material/DialogActions/DialogActions/index.esm.js +1 -2
  319. package/dist/node_modules/@mui/material/DialogActions/DialogActions/index.esm.js.map +1 -1
  320. package/dist/node_modules/@mui/material/DialogActions/DialogActions/index.js +1 -1
  321. package/dist/node_modules/@mui/material/DialogActions/DialogActions/index.js.map +1 -1
  322. package/dist/node_modules/@mui/material/DialogContent/DialogContent/index.esm.js +1 -2
  323. package/dist/node_modules/@mui/material/DialogContent/DialogContent/index.esm.js.map +1 -1
  324. package/dist/node_modules/@mui/material/DialogContent/DialogContent/index.js +2 -2
  325. package/dist/node_modules/@mui/material/DialogContent/DialogContent/index.js.map +1 -1
  326. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js +1 -2
  327. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js.map +1 -1
  328. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js +1 -1
  329. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js.map +1 -1
  330. package/dist/node_modules/@mui/material/DialogTitle/DialogTitle/index.esm.js +1 -2
  331. package/dist/node_modules/@mui/material/DialogTitle/DialogTitle/index.esm.js.map +1 -1
  332. package/dist/node_modules/@mui/material/DialogTitle/DialogTitle/index.js +1 -1
  333. package/dist/node_modules/@mui/material/DialogTitle/DialogTitle/index.js.map +1 -1
  334. package/dist/node_modules/@mui/material/Divider/Divider/index.esm.js +1 -2
  335. package/dist/node_modules/@mui/material/Divider/Divider/index.esm.js.map +1 -1
  336. package/dist/node_modules/@mui/material/Divider/Divider/index.js +1 -1
  337. package/dist/node_modules/@mui/material/Divider/Divider/index.js.map +1 -1
  338. package/dist/node_modules/@mui/material/Drawer/Drawer/index.esm.js +1 -2
  339. package/dist/node_modules/@mui/material/Drawer/Drawer/index.esm.js.map +1 -1
  340. package/dist/node_modules/@mui/material/Drawer/Drawer/index.js +1 -1
  341. package/dist/node_modules/@mui/material/Drawer/Drawer/index.js.map +1 -1
  342. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js +1 -2
  343. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js.map +1 -1
  344. package/dist/node_modules/@mui/material/Fab/Fab/index.js +2 -2
  345. package/dist/node_modules/@mui/material/Fab/Fab/index.js.map +1 -1
  346. package/dist/node_modules/@mui/material/Fade/Fade/index.esm.js +1 -2
  347. package/dist/node_modules/@mui/material/Fade/Fade/index.esm.js.map +1 -1
  348. package/dist/node_modules/@mui/material/Fade/Fade/index.js +1 -1
  349. package/dist/node_modules/@mui/material/Fade/Fade/index.js.map +1 -1
  350. package/dist/node_modules/@mui/material/FilledInput/FilledInput/index.esm.js +1 -2
  351. package/dist/node_modules/@mui/material/FilledInput/FilledInput/index.esm.js.map +1 -1
  352. package/dist/node_modules/@mui/material/FilledInput/FilledInput/index.js +1 -1
  353. package/dist/node_modules/@mui/material/FilledInput/FilledInput/index.js.map +1 -1
  354. package/dist/node_modules/@mui/material/FormControl/FormControl/index.esm.js +2 -3
  355. package/dist/node_modules/@mui/material/FormControl/FormControl/index.esm.js.map +1 -1
  356. package/dist/node_modules/@mui/material/FormControl/FormControl/index.js +2 -2
  357. package/dist/node_modules/@mui/material/FormControl/FormControl/index.js.map +1 -1
  358. package/dist/node_modules/@mui/material/FormControl/FormControlContext/index.esm.js +1 -2
  359. package/dist/node_modules/@mui/material/FormControl/FormControlContext/index.esm.js.map +1 -1
  360. package/dist/node_modules/@mui/material/FormControl/FormControlContext/index.js +1 -1
  361. package/dist/node_modules/@mui/material/FormControl/FormControlContext/index.js.map +1 -1
  362. package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel/index.esm.js +1 -2
  363. package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel/index.esm.js.map +1 -1
  364. package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel/index.js +1 -1
  365. package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel/index.js.map +1 -1
  366. package/dist/node_modules/@mui/material/FormGroup/FormGroup/index.esm.js +1 -2
  367. package/dist/node_modules/@mui/material/FormGroup/FormGroup/index.esm.js.map +1 -1
  368. package/dist/node_modules/@mui/material/FormGroup/FormGroup/index.js +1 -1
  369. package/dist/node_modules/@mui/material/FormGroup/FormGroup/index.js.map +1 -1
  370. package/dist/node_modules/@mui/material/FormHelperText/FormHelperText/index.esm.js +1 -2
  371. package/dist/node_modules/@mui/material/FormHelperText/FormHelperText/index.esm.js.map +1 -1
  372. package/dist/node_modules/@mui/material/FormHelperText/FormHelperText/index.js +2 -2
  373. package/dist/node_modules/@mui/material/FormHelperText/FormHelperText/index.js.map +1 -1
  374. package/dist/node_modules/@mui/material/FormLabel/FormLabel/index.esm.js +1 -2
  375. package/dist/node_modules/@mui/material/FormLabel/FormLabel/index.esm.js.map +1 -1
  376. package/dist/node_modules/@mui/material/FormLabel/FormLabel/index.js +1 -1
  377. package/dist/node_modules/@mui/material/FormLabel/FormLabel/index.js.map +1 -1
  378. package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles/index.esm.js +1 -2
  379. package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles/index.esm.js.map +1 -1
  380. package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles/index.js +2 -2
  381. package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles/index.js.map +1 -1
  382. package/dist/node_modules/@mui/material/Grid/Grid/index.esm.js +2 -3
  383. package/dist/node_modules/@mui/material/Grid/Grid/index.esm.js.map +1 -1
  384. package/dist/node_modules/@mui/material/Grid/Grid/index.js +2 -2
  385. package/dist/node_modules/@mui/material/Grid/Grid/index.js.map +1 -1
  386. package/dist/node_modules/@mui/material/Grid/GridContext/index.esm.js +1 -2
  387. package/dist/node_modules/@mui/material/Grid/GridContext/index.esm.js.map +1 -1
  388. package/dist/node_modules/@mui/material/Grid/GridContext/index.js +1 -1
  389. package/dist/node_modules/@mui/material/Grid/GridContext/index.js.map +1 -1
  390. package/dist/node_modules/@mui/material/Grow/Grow/index.esm.js +1 -2
  391. package/dist/node_modules/@mui/material/Grow/Grow/index.esm.js.map +1 -1
  392. package/dist/node_modules/@mui/material/Grow/Grow/index.js +2 -2
  393. package/dist/node_modules/@mui/material/Grow/Grow/index.js.map +1 -1
  394. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js +1 -2
  395. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js.map +1 -1
  396. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js +1 -1
  397. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js.map +1 -1
  398. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js +2 -3
  399. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js.map +1 -1
  400. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js +2 -2
  401. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js.map +1 -1
  402. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js +3 -4
  403. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js.map +1 -1
  404. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js +1 -1
  405. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js.map +1 -1
  406. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js +2 -3
  407. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js.map +1 -1
  408. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js +1 -1
  409. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js.map +1 -1
  410. package/dist/node_modules/@mui/material/Icon/Icon/index.esm.js +1 -2
  411. package/dist/node_modules/@mui/material/Icon/Icon/index.esm.js.map +1 -1
  412. package/dist/node_modules/@mui/material/Icon/Icon/index.js +2 -2
  413. package/dist/node_modules/@mui/material/Icon/Icon/index.js.map +1 -1
  414. package/dist/node_modules/@mui/material/IconButton/IconButton/index.esm.js +1 -2
  415. package/dist/node_modules/@mui/material/IconButton/IconButton/index.esm.js.map +1 -1
  416. package/dist/node_modules/@mui/material/IconButton/IconButton/index.js +1 -1
  417. package/dist/node_modules/@mui/material/IconButton/IconButton/index.js.map +1 -1
  418. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js +2 -3
  419. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js.map +1 -1
  420. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js +2 -2
  421. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js.map +1 -1
  422. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js +1 -2
  423. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js.map +1 -1
  424. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js +1 -1
  425. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js.map +1 -1
  426. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js +2 -3
  427. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js.map +1 -1
  428. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js +2 -2
  429. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js.map +1 -1
  430. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js +1 -2
  431. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js.map +1 -1
  432. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js +1 -1
  433. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js.map +1 -1
  434. package/dist/node_modules/@mui/material/Input/Input/index.esm.js +1 -2
  435. package/dist/node_modules/@mui/material/Input/Input/index.esm.js.map +1 -1
  436. package/dist/node_modules/@mui/material/Input/Input/index.js +2 -2
  437. package/dist/node_modules/@mui/material/Input/Input/index.js.map +1 -1
  438. package/dist/node_modules/@mui/material/InputAdornment/InputAdornment/index.esm.js +2 -3
  439. package/dist/node_modules/@mui/material/InputAdornment/InputAdornment/index.esm.js.map +1 -1
  440. package/dist/node_modules/@mui/material/InputAdornment/InputAdornment/index.js +2 -2
  441. package/dist/node_modules/@mui/material/InputAdornment/InputAdornment/index.js.map +1 -1
  442. package/dist/node_modules/@mui/material/InputBase/InputBase/index.esm.js +5 -6
  443. package/dist/node_modules/@mui/material/InputBase/InputBase/index.esm.js.map +1 -1
  444. package/dist/node_modules/@mui/material/InputBase/InputBase/index.js +1 -1
  445. package/dist/node_modules/@mui/material/InputBase/InputBase/index.js.map +1 -1
  446. package/dist/node_modules/@mui/material/InputLabel/InputLabel/index.esm.js +1 -2
  447. package/dist/node_modules/@mui/material/InputLabel/InputLabel/index.esm.js.map +1 -1
  448. package/dist/node_modules/@mui/material/InputLabel/InputLabel/index.js +1 -1
  449. package/dist/node_modules/@mui/material/InputLabel/InputLabel/index.js.map +1 -1
  450. package/dist/node_modules/@mui/material/LinearProgress/LinearProgress/index.esm.js +3 -4
  451. package/dist/node_modules/@mui/material/LinearProgress/LinearProgress/index.esm.js.map +1 -1
  452. package/dist/node_modules/@mui/material/LinearProgress/LinearProgress/index.js +5 -5
  453. package/dist/node_modules/@mui/material/LinearProgress/LinearProgress/index.js.map +1 -1
  454. package/dist/node_modules/@mui/material/Link/Link/index.esm.js +1 -2
  455. package/dist/node_modules/@mui/material/Link/Link/index.esm.js.map +1 -1
  456. package/dist/node_modules/@mui/material/Link/Link/index.js +1 -1
  457. package/dist/node_modules/@mui/material/Link/Link/index.js.map +1 -1
  458. package/dist/node_modules/@mui/material/List/List/index.esm.js +1 -2
  459. package/dist/node_modules/@mui/material/List/List/index.esm.js.map +1 -1
  460. package/dist/node_modules/@mui/material/List/List/index.js +2 -2
  461. package/dist/node_modules/@mui/material/List/List/index.js.map +1 -1
  462. package/dist/node_modules/@mui/material/List/ListContext/index.esm.js +1 -2
  463. package/dist/node_modules/@mui/material/List/ListContext/index.esm.js.map +1 -1
  464. package/dist/node_modules/@mui/material/List/ListContext/index.js +1 -1
  465. package/dist/node_modules/@mui/material/List/ListContext/index.js.map +1 -1
  466. package/dist/node_modules/@mui/material/ListItem/ListItem/index.esm.js +2 -3
  467. package/dist/node_modules/@mui/material/ListItem/ListItem/index.esm.js.map +1 -1
  468. package/dist/node_modules/@mui/material/ListItem/ListItem/index.js +1 -1
  469. package/dist/node_modules/@mui/material/ListItem/ListItem/index.js.map +1 -1
  470. package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.esm.js +1 -2
  471. package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.esm.js.map +1 -1
  472. package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.js +1 -1
  473. package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.js.map +1 -1
  474. package/dist/node_modules/@mui/material/ListItemButton/ListItemButton/index.esm.js +2 -3
  475. package/dist/node_modules/@mui/material/ListItemButton/ListItemButton/index.esm.js.map +1 -1
  476. package/dist/node_modules/@mui/material/ListItemButton/ListItemButton/index.js +2 -2
  477. package/dist/node_modules/@mui/material/ListItemButton/ListItemButton/index.js.map +1 -1
  478. package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon/index.esm.js +1 -2
  479. package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon/index.esm.js.map +1 -1
  480. package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon/index.js +2 -2
  481. package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon/index.js.map +1 -1
  482. package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction/index.esm.js +1 -2
  483. package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction/index.esm.js.map +1 -1
  484. package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction/index.js +2 -2
  485. package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction/index.js.map +1 -1
  486. package/dist/node_modules/@mui/material/ListItemText/ListItemText/index.esm.js +1 -2
  487. package/dist/node_modules/@mui/material/ListItemText/ListItemText/index.esm.js.map +1 -1
  488. package/dist/node_modules/@mui/material/ListItemText/ListItemText/index.js +1 -1
  489. package/dist/node_modules/@mui/material/ListItemText/ListItemText/index.js.map +1 -1
  490. package/dist/node_modules/@mui/material/ListSubheader/ListSubheader/index.esm.js +1 -2
  491. package/dist/node_modules/@mui/material/ListSubheader/ListSubheader/index.esm.js.map +1 -1
  492. package/dist/node_modules/@mui/material/ListSubheader/ListSubheader/index.js +2 -2
  493. package/dist/node_modules/@mui/material/ListSubheader/ListSubheader/index.js.map +1 -1
  494. package/dist/node_modules/@mui/material/Menu/Menu/index.esm.js +2 -3
  495. package/dist/node_modules/@mui/material/Menu/Menu/index.esm.js.map +1 -1
  496. package/dist/node_modules/@mui/material/Menu/Menu/index.js +2 -2
  497. package/dist/node_modules/@mui/material/Menu/Menu/index.js.map +1 -1
  498. package/dist/node_modules/@mui/material/MenuItem/MenuItem/index.esm.js +2 -3
  499. package/dist/node_modules/@mui/material/MenuItem/MenuItem/index.esm.js.map +1 -1
  500. package/dist/node_modules/@mui/material/MenuItem/MenuItem/index.js +1 -1
  501. package/dist/node_modules/@mui/material/MenuItem/MenuItem/index.js.map +1 -1
  502. package/dist/node_modules/@mui/material/MenuList/MenuList/index.esm.js +2 -3
  503. package/dist/node_modules/@mui/material/MenuList/MenuList/index.esm.js.map +1 -1
  504. package/dist/node_modules/@mui/material/MenuList/MenuList/index.js +2 -2
  505. package/dist/node_modules/@mui/material/MenuList/MenuList/index.js.map +1 -1
  506. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js +1 -2
  507. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js.map +1 -1
  508. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js +1 -1
  509. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js.map +1 -1
  510. package/dist/node_modules/@mui/material/Modal/Modal/index.esm.js +1 -2
  511. package/dist/node_modules/@mui/material/Modal/Modal/index.esm.js.map +1 -1
  512. package/dist/node_modules/@mui/material/Modal/Modal/index.js +1 -1
  513. package/dist/node_modules/@mui/material/Modal/Modal/index.js.map +1 -1
  514. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js +1 -2
  515. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js.map +1 -1
  516. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js +2 -2
  517. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js.map +1 -1
  518. package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput/index.esm.js +1 -2
  519. package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput/index.esm.js.map +1 -1
  520. package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput/index.js +1 -1
  521. package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput/index.js.map +1 -1
  522. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js +2 -3
  523. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js.map +1 -1
  524. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js +1 -1
  525. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js.map +1 -1
  526. package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline/index.esm.js +1 -2
  527. package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline/index.esm.js.map +1 -1
  528. package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline/index.js +1 -1
  529. package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline/index.js.map +1 -1
  530. package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput/index.esm.js +1 -2
  531. package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput/index.esm.js.map +1 -1
  532. package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput/index.js +2 -2
  533. package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput/index.js.map +1 -1
  534. package/dist/node_modules/@mui/material/Pagination/Pagination/index.esm.js +1 -2
  535. package/dist/node_modules/@mui/material/Pagination/Pagination/index.esm.js.map +1 -1
  536. package/dist/node_modules/@mui/material/Pagination/Pagination/index.js +1 -1
  537. package/dist/node_modules/@mui/material/Pagination/Pagination/index.js.map +1 -1
  538. package/dist/node_modules/@mui/material/PaginationItem/PaginationItem/index.esm.js +1 -2
  539. package/dist/node_modules/@mui/material/PaginationItem/PaginationItem/index.esm.js.map +1 -1
  540. package/dist/node_modules/@mui/material/PaginationItem/PaginationItem/index.js +1 -1
  541. package/dist/node_modules/@mui/material/PaginationItem/PaginationItem/index.js.map +1 -1
  542. package/dist/node_modules/@mui/material/Paper/Paper/index.esm.js +2 -3
  543. package/dist/node_modules/@mui/material/Paper/Paper/index.esm.js.map +1 -1
  544. package/dist/node_modules/@mui/material/Paper/Paper/index.js +1 -1
  545. package/dist/node_modules/@mui/material/Paper/Paper/index.js.map +1 -1
  546. package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js +6 -7
  547. package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js.map +1 -1
  548. package/dist/node_modules/@mui/material/Popover/Popover/index.js +2 -2
  549. package/dist/node_modules/@mui/material/Popover/Popover/index.js.map +1 -1
  550. package/dist/node_modules/@mui/material/Popper/BasePopper/index.esm.js +4 -5
  551. package/dist/node_modules/@mui/material/Popper/BasePopper/index.esm.js.map +1 -1
  552. package/dist/node_modules/@mui/material/Popper/BasePopper/index.js +3 -3
  553. package/dist/node_modules/@mui/material/Popper/BasePopper/index.js.map +1 -1
  554. package/dist/node_modules/@mui/material/Popper/Popper/index.esm.js +1 -2
  555. package/dist/node_modules/@mui/material/Popper/Popper/index.esm.js.map +1 -1
  556. package/dist/node_modules/@mui/material/Popper/Popper/index.js +1 -1
  557. package/dist/node_modules/@mui/material/Popper/Popper/index.js.map +1 -1
  558. package/dist/node_modules/@mui/material/Portal/Portal/index.esm.js +2 -3
  559. package/dist/node_modules/@mui/material/Portal/Portal/index.esm.js.map +1 -1
  560. package/dist/node_modules/@mui/material/Portal/Portal/index.js +4 -4
  561. package/dist/node_modules/@mui/material/Portal/Portal/index.js.map +1 -1
  562. package/dist/node_modules/@mui/material/Radio/Radio/index.esm.js +1 -2
  563. package/dist/node_modules/@mui/material/Radio/Radio/index.esm.js.map +1 -1
  564. package/dist/node_modules/@mui/material/Radio/Radio/index.js +1 -1
  565. package/dist/node_modules/@mui/material/Radio/Radio/index.js.map +1 -1
  566. package/dist/node_modules/@mui/material/Radio/RadioButtonIcon/index.esm.js +1 -2
  567. package/dist/node_modules/@mui/material/Radio/RadioButtonIcon/index.esm.js.map +1 -1
  568. package/dist/node_modules/@mui/material/Radio/RadioButtonIcon/index.js +2 -2
  569. package/dist/node_modules/@mui/material/Radio/RadioButtonIcon/index.js.map +1 -1
  570. package/dist/node_modules/@mui/material/RadioGroup/RadioGroup/index.esm.js +1 -2
  571. package/dist/node_modules/@mui/material/RadioGroup/RadioGroup/index.esm.js.map +1 -1
  572. package/dist/node_modules/@mui/material/RadioGroup/RadioGroup/index.js +2 -2
  573. package/dist/node_modules/@mui/material/RadioGroup/RadioGroup/index.js.map +1 -1
  574. package/dist/node_modules/@mui/material/RadioGroup/RadioGroupContext/index.esm.js +1 -2
  575. package/dist/node_modules/@mui/material/RadioGroup/RadioGroupContext/index.esm.js.map +1 -1
  576. package/dist/node_modules/@mui/material/RadioGroup/RadioGroupContext/index.js +1 -1
  577. package/dist/node_modules/@mui/material/RadioGroup/RadioGroupContext/index.js.map +1 -1
  578. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js +3 -4
  579. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js.map +1 -1
  580. package/dist/node_modules/@mui/material/Rating/Rating/index.js +6 -6
  581. package/dist/node_modules/@mui/material/Rating/Rating/index.js.map +1 -1
  582. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js +1 -2
  583. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js.map +1 -1
  584. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js +2 -2
  585. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js.map +1 -1
  586. package/dist/node_modules/@mui/material/Select/Select/index.esm.js +1 -2
  587. package/dist/node_modules/@mui/material/Select/Select/index.esm.js.map +1 -1
  588. package/dist/node_modules/@mui/material/Select/Select/index.js +1 -1
  589. package/dist/node_modules/@mui/material/Select/Select/index.js.map +1 -1
  590. package/dist/node_modules/@mui/material/Select/SelectInput/index.esm.js +4 -5
  591. package/dist/node_modules/@mui/material/Select/SelectInput/index.esm.js.map +1 -1
  592. package/dist/node_modules/@mui/material/Select/SelectInput/index.js +2 -2
  593. package/dist/node_modules/@mui/material/Select/SelectInput/index.js.map +1 -1
  594. package/dist/node_modules/@mui/material/Skeleton/Skeleton/index.esm.js +1 -2
  595. package/dist/node_modules/@mui/material/Skeleton/Skeleton/index.esm.js.map +1 -1
  596. package/dist/node_modules/@mui/material/Skeleton/Skeleton/index.js +1 -1
  597. package/dist/node_modules/@mui/material/Skeleton/Skeleton/index.js.map +1 -1
  598. package/dist/node_modules/@mui/material/Slide/Slide/index.esm.js +2 -3
  599. package/dist/node_modules/@mui/material/Slide/Slide/index.esm.js.map +1 -1
  600. package/dist/node_modules/@mui/material/Slide/Slide/index.js +1 -1
  601. package/dist/node_modules/@mui/material/Slide/Slide/index.js.map +1 -1
  602. package/dist/node_modules/@mui/material/Slider/Slider/index.esm.js +1 -2
  603. package/dist/node_modules/@mui/material/Slider/Slider/index.esm.js.map +1 -1
  604. package/dist/node_modules/@mui/material/Slider/Slider/index.js +1 -1
  605. package/dist/node_modules/@mui/material/Slider/Slider/index.js.map +1 -1
  606. package/dist/node_modules/@mui/material/Slider/SliderValueLabel/index.esm.js +1 -2
  607. package/dist/node_modules/@mui/material/Slider/SliderValueLabel/index.esm.js.map +1 -1
  608. package/dist/node_modules/@mui/material/Slider/SliderValueLabel/index.js +1 -1
  609. package/dist/node_modules/@mui/material/Slider/SliderValueLabel/index.js.map +1 -1
  610. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js +1 -2
  611. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js.map +1 -1
  612. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js +1 -1
  613. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js.map +1 -1
  614. package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent/index.esm.js +1 -2
  615. package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent/index.esm.js.map +1 -1
  616. package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent/index.js +1 -1
  617. package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent/index.js.map +1 -1
  618. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js +2 -3
  619. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js.map +1 -1
  620. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js +3 -3
  621. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js.map +1 -1
  622. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js +1 -2
  623. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js.map +1 -1
  624. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js +1 -1
  625. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js.map +1 -1
  626. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js +1 -2
  627. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js.map +1 -1
  628. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js +2 -2
  629. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js.map +1 -1
  630. package/dist/node_modules/@mui/material/Stack/Stack/index.esm.js +1 -2
  631. package/dist/node_modules/@mui/material/Stack/Stack/index.esm.js.map +1 -1
  632. package/dist/node_modules/@mui/material/Stack/Stack/index.js +1 -1
  633. package/dist/node_modules/@mui/material/Stack/Stack/index.js.map +1 -1
  634. package/dist/node_modules/@mui/material/Step/Step/index.esm.js +1 -2
  635. package/dist/node_modules/@mui/material/Step/Step/index.esm.js.map +1 -1
  636. package/dist/node_modules/@mui/material/Step/Step/index.js +1 -1
  637. package/dist/node_modules/@mui/material/Step/Step/index.js.map +1 -1
  638. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js +1 -2
  639. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js.map +1 -1
  640. package/dist/node_modules/@mui/material/Step/StepContext/index.js +1 -1
  641. package/dist/node_modules/@mui/material/Step/StepContext/index.js.map +1 -1
  642. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js +1 -2
  643. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js.map +1 -1
  644. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js +1 -1
  645. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js.map +1 -1
  646. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js +1 -2
  647. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js.map +1 -1
  648. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js +1 -1
  649. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js.map +1 -1
  650. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js +2 -3
  651. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js.map +1 -1
  652. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js +1 -1
  653. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js.map +1 -1
  654. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js +1 -2
  655. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js.map +1 -1
  656. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js +1 -1
  657. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js.map +1 -1
  658. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js +1 -2
  659. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js.map +1 -1
  660. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js +2 -2
  661. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js.map +1 -1
  662. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js +1 -2
  663. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js.map +1 -1
  664. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js +2 -2
  665. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js.map +1 -1
  666. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js +1 -2
  667. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js.map +1 -1
  668. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js +1 -1
  669. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js.map +1 -1
  670. package/dist/node_modules/@mui/material/SvgIcon/SvgIcon/index.esm.js +1 -2
  671. package/dist/node_modules/@mui/material/SvgIcon/SvgIcon/index.esm.js.map +1 -1
  672. package/dist/node_modules/@mui/material/SvgIcon/SvgIcon/index.js +2 -2
  673. package/dist/node_modules/@mui/material/SvgIcon/SvgIcon/index.js.map +1 -1
  674. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js +1 -2
  675. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js.map +1 -1
  676. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js +2 -2
  677. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js.map +1 -1
  678. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js +1 -2
  679. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js.map +1 -1
  680. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js +1 -1
  681. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js.map +1 -1
  682. package/dist/node_modules/@mui/material/Switch/Switch/index.esm.js +1 -2
  683. package/dist/node_modules/@mui/material/Switch/Switch/index.esm.js.map +1 -1
  684. package/dist/node_modules/@mui/material/Switch/Switch/index.js +2 -2
  685. package/dist/node_modules/@mui/material/Switch/Switch/index.js.map +1 -1
  686. package/dist/node_modules/@mui/material/Tab/Tab/index.esm.js +1 -2
  687. package/dist/node_modules/@mui/material/Tab/Tab/index.esm.js.map +1 -1
  688. package/dist/node_modules/@mui/material/Tab/Tab/index.js +1 -1
  689. package/dist/node_modules/@mui/material/Tab/Tab/index.js.map +1 -1
  690. package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton/index.esm.js +1 -2
  691. package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton/index.esm.js.map +1 -1
  692. package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton/index.js +2 -2
  693. package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton/index.js.map +1 -1
  694. package/dist/node_modules/@mui/material/Table/Table/index.esm.js +1 -2
  695. package/dist/node_modules/@mui/material/Table/Table/index.esm.js.map +1 -1
  696. package/dist/node_modules/@mui/material/Table/Table/index.js +2 -2
  697. package/dist/node_modules/@mui/material/Table/Table/index.js.map +1 -1
  698. package/dist/node_modules/@mui/material/Table/TableContext/index.esm.js +1 -2
  699. package/dist/node_modules/@mui/material/Table/TableContext/index.esm.js.map +1 -1
  700. package/dist/node_modules/@mui/material/Table/TableContext/index.js +1 -1
  701. package/dist/node_modules/@mui/material/Table/TableContext/index.js.map +1 -1
  702. package/dist/node_modules/@mui/material/Table/Tablelvl2Context/index.esm.js +1 -2
  703. package/dist/node_modules/@mui/material/Table/Tablelvl2Context/index.esm.js.map +1 -1
  704. package/dist/node_modules/@mui/material/Table/Tablelvl2Context/index.js +1 -1
  705. package/dist/node_modules/@mui/material/Table/Tablelvl2Context/index.js.map +1 -1
  706. package/dist/node_modules/@mui/material/TableBody/TableBody/index.esm.js +1 -2
  707. package/dist/node_modules/@mui/material/TableBody/TableBody/index.esm.js.map +1 -1
  708. package/dist/node_modules/@mui/material/TableBody/TableBody/index.js +1 -1
  709. package/dist/node_modules/@mui/material/TableBody/TableBody/index.js.map +1 -1
  710. package/dist/node_modules/@mui/material/TableCell/TableCell/index.esm.js +1 -2
  711. package/dist/node_modules/@mui/material/TableCell/TableCell/index.esm.js.map +1 -1
  712. package/dist/node_modules/@mui/material/TableCell/TableCell/index.js +1 -1
  713. package/dist/node_modules/@mui/material/TableCell/TableCell/index.js.map +1 -1
  714. package/dist/node_modules/@mui/material/TableContainer/TableContainer/index.esm.js +1 -2
  715. package/dist/node_modules/@mui/material/TableContainer/TableContainer/index.esm.js.map +1 -1
  716. package/dist/node_modules/@mui/material/TableContainer/TableContainer/index.js +2 -2
  717. package/dist/node_modules/@mui/material/TableContainer/TableContainer/index.js.map +1 -1
  718. package/dist/node_modules/@mui/material/TableFooter/TableFooter/index.esm.js +1 -2
  719. package/dist/node_modules/@mui/material/TableFooter/TableFooter/index.esm.js.map +1 -1
  720. package/dist/node_modules/@mui/material/TableFooter/TableFooter/index.js +1 -1
  721. package/dist/node_modules/@mui/material/TableFooter/TableFooter/index.js.map +1 -1
  722. package/dist/node_modules/@mui/material/TableHead/TableHead/index.esm.js +1 -2
  723. package/dist/node_modules/@mui/material/TableHead/TableHead/index.esm.js.map +1 -1
  724. package/dist/node_modules/@mui/material/TableHead/TableHead/index.js +1 -1
  725. package/dist/node_modules/@mui/material/TableHead/TableHead/index.js.map +1 -1
  726. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js +1 -2
  727. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js.map +1 -1
  728. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js +2 -2
  729. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js.map +1 -1
  730. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js +1 -2
  731. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js.map +1 -1
  732. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js +2 -2
  733. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js.map +1 -1
  734. package/dist/node_modules/@mui/material/TableRow/TableRow/index.esm.js +1 -2
  735. package/dist/node_modules/@mui/material/TableRow/TableRow/index.esm.js.map +1 -1
  736. package/dist/node_modules/@mui/material/TableRow/TableRow/index.js +1 -1
  737. package/dist/node_modules/@mui/material/TableRow/TableRow/index.js.map +1 -1
  738. package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel/index.esm.js +1 -2
  739. package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel/index.esm.js.map +1 -1
  740. package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel/index.js +1 -1
  741. package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel/index.js.map +1 -1
  742. package/dist/node_modules/@mui/material/Tabs/ScrollbarSize/index.esm.js +1 -2
  743. package/dist/node_modules/@mui/material/Tabs/ScrollbarSize/index.esm.js.map +1 -1
  744. package/dist/node_modules/@mui/material/Tabs/ScrollbarSize/index.js +1 -1
  745. package/dist/node_modules/@mui/material/Tabs/ScrollbarSize/index.js.map +1 -1
  746. package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js +6 -7
  747. package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js.map +1 -1
  748. package/dist/node_modules/@mui/material/Tabs/Tabs/index.js +2 -2
  749. package/dist/node_modules/@mui/material/Tabs/Tabs/index.js.map +1 -1
  750. package/dist/node_modules/@mui/material/TextField/TextField/index.esm.js +2 -3
  751. package/dist/node_modules/@mui/material/TextField/TextField/index.esm.js.map +1 -1
  752. package/dist/node_modules/@mui/material/TextField/TextField/index.js +2 -2
  753. package/dist/node_modules/@mui/material/TextField/TextField/index.js.map +1 -1
  754. package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize/index.esm.js +1 -2
  755. package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize/index.esm.js.map +1 -1
  756. package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize/index.js +1 -1
  757. package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize/index.js.map +1 -1
  758. package/dist/node_modules/@mui/material/ToggleButton/ToggleButton/index.esm.js +1 -2
  759. package/dist/node_modules/@mui/material/ToggleButton/ToggleButton/index.esm.js.map +1 -1
  760. package/dist/node_modules/@mui/material/ToggleButton/ToggleButton/index.js +1 -1
  761. package/dist/node_modules/@mui/material/ToggleButton/ToggleButton/index.js.map +1 -1
  762. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup/index.esm.js +2 -3
  763. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup/index.esm.js.map +1 -1
  764. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup/index.js +2 -2
  765. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup/index.js.map +1 -1
  766. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext/index.esm.js +1 -2
  767. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext/index.esm.js.map +1 -1
  768. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext/index.js +1 -1
  769. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext/index.js.map +1 -1
  770. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext/index.esm.js +1 -2
  771. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext/index.esm.js.map +1 -1
  772. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext/index.js +1 -1
  773. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext/index.js.map +1 -1
  774. package/dist/node_modules/@mui/material/Toolbar/Toolbar/index.esm.js +1 -2
  775. package/dist/node_modules/@mui/material/Toolbar/Toolbar/index.esm.js.map +1 -1
  776. package/dist/node_modules/@mui/material/Toolbar/Toolbar/index.js +2 -2
  777. package/dist/node_modules/@mui/material/Toolbar/Toolbar/index.js.map +1 -1
  778. package/dist/node_modules/@mui/material/Tooltip/Tooltip/index.esm.js +4 -5
  779. package/dist/node_modules/@mui/material/Tooltip/Tooltip/index.esm.js.map +1 -1
  780. package/dist/node_modules/@mui/material/Tooltip/Tooltip/index.js +2 -2
  781. package/dist/node_modules/@mui/material/Tooltip/Tooltip/index.js.map +1 -1
  782. package/dist/node_modules/@mui/material/Typography/Typography/index.esm.js +1 -2
  783. package/dist/node_modules/@mui/material/Typography/Typography/index.esm.js.map +1 -1
  784. package/dist/node_modules/@mui/material/Typography/Typography/index.js +2 -2
  785. package/dist/node_modules/@mui/material/Typography/Typography/index.js.map +1 -1
  786. package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap/index.esm.js +3 -4
  787. package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap/index.esm.js.map +1 -1
  788. package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap/index.js +2 -2
  789. package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap/index.js.map +1 -1
  790. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js +1 -2
  791. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js.map +1 -1
  792. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js +1 -1
  793. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js.map +1 -1
  794. package/dist/node_modules/@mui/material/internal/SwitchBase/index.esm.js +1 -2
  795. package/dist/node_modules/@mui/material/internal/SwitchBase/index.esm.js.map +1 -1
  796. package/dist/node_modules/@mui/material/internal/SwitchBase/index.js +2 -2
  797. package/dist/node_modules/@mui/material/internal/SwitchBase/index.js.map +1 -1
  798. package/dist/node_modules/@mui/material/styles/ThemeProvider/index.esm.js +1 -2
  799. package/dist/node_modules/@mui/material/styles/ThemeProvider/index.esm.js.map +1 -1
  800. package/dist/node_modules/@mui/material/styles/ThemeProvider/index.js +1 -1
  801. package/dist/node_modules/@mui/material/styles/ThemeProvider/index.js.map +1 -1
  802. package/dist/node_modules/@mui/material/styles/createPalette/index.esm.js +4 -5
  803. package/dist/node_modules/@mui/material/styles/createPalette/index.esm.js.map +1 -1
  804. package/dist/node_modules/@mui/material/styles/createPalette/index.js +1 -1
  805. package/dist/node_modules/@mui/material/styles/createPalette/index.js.map +1 -1
  806. package/dist/node_modules/@mui/material/styles/createTheme/index.esm.js +3 -4
  807. package/dist/node_modules/@mui/material/styles/createTheme/index.esm.js.map +1 -1
  808. package/dist/node_modules/@mui/material/styles/createTheme/index.js +1 -1
  809. package/dist/node_modules/@mui/material/styles/createTheme/index.js.map +1 -1
  810. package/dist/node_modules/@mui/material/styles/createTransitions/index.esm.js +1 -2
  811. package/dist/node_modules/@mui/material/styles/createTransitions/index.esm.js.map +1 -1
  812. package/dist/node_modules/@mui/material/styles/createTransitions/index.js +1 -1
  813. package/dist/node_modules/@mui/material/styles/createTransitions/index.js.map +1 -1
  814. package/dist/node_modules/@mui/material/styles/createTypography/index.esm.js +1 -2
  815. package/dist/node_modules/@mui/material/styles/createTypography/index.esm.js.map +1 -1
  816. package/dist/node_modules/@mui/material/styles/createTypography/index.js +1 -1
  817. package/dist/node_modules/@mui/material/styles/createTypography/index.js.map +1 -1
  818. package/dist/node_modules/@mui/material/styles/useTheme/index.esm.js +1 -2
  819. package/dist/node_modules/@mui/material/styles/useTheme/index.esm.js.map +1 -1
  820. package/dist/node_modules/@mui/material/styles/useTheme/index.js +1 -1
  821. package/dist/node_modules/@mui/material/styles/useTheme/index.js.map +1 -1
  822. package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete/index.esm.js +5 -6
  823. package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete/index.esm.js.map +1 -1
  824. package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete/index.js +1 -1
  825. package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete/index.js.map +1 -1
  826. package/dist/node_modules/@mui/material/utils/createSvgIcon/index.esm.js +1 -2
  827. package/dist/node_modules/@mui/material/utils/createSvgIcon/index.esm.js.map +1 -1
  828. package/dist/node_modules/@mui/material/utils/createSvgIcon/index.js +2 -2
  829. package/dist/node_modules/@mui/material/utils/createSvgIcon/index.js.map +1 -1
  830. package/dist/node_modules/@mui/material/utils/index/index.esm.js +1 -2
  831. package/dist/node_modules/@mui/material/utils/index/index.esm.js.map +1 -1
  832. package/dist/node_modules/@mui/material/utils/index/index.js +1 -1
  833. package/dist/node_modules/@mui/material/utils/index/index.js.map +1 -1
  834. package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider/index.esm.js +5 -6
  835. package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider/index.esm.js.map +1 -1
  836. package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider/index.js +2 -2
  837. package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider/index.js.map +1 -1
  838. package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext/index.esm.js +1 -2
  839. package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext/index.esm.js.map +1 -1
  840. package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext/index.js +1 -1
  841. package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext/index.js.map +1 -1
  842. package/dist/node_modules/@mui/private-theming/useTheme/useTheme/index.esm.js +1 -2
  843. package/dist/node_modules/@mui/private-theming/useTheme/useTheme/index.esm.js.map +1 -1
  844. package/dist/node_modules/@mui/private-theming/useTheme/useTheme/index.js +1 -1
  845. package/dist/node_modules/@mui/private-theming/useTheme/useTheme/index.js.map +1 -1
  846. package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles/index.esm.js +1 -2
  847. package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles/index.esm.js.map +1 -1
  848. package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles/index.js +1 -1
  849. package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles/index.js.map +1 -1
  850. package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider/index.esm.js +1 -2
  851. package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider/index.esm.js.map +1 -1
  852. package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider/index.js +1 -1
  853. package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider/index.js.map +1 -1
  854. package/dist/node_modules/@mui/styled-engine/index/index.esm.js +8 -2
  855. package/dist/node_modules/@mui/styled-engine/index/index.esm.js.map +1 -1
  856. package/dist/node_modules/@mui/styled-engine/index/index.js +1 -1
  857. package/dist/node_modules/@mui/styled-engine/index/index.js.map +1 -1
  858. package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +10 -11
  859. package/dist/node_modules/@mui/system/colorManipulator/index.esm.js.map +1 -1
  860. package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
  861. package/dist/node_modules/@mui/system/colorManipulator/index.js.map +1 -1
  862. package/dist/node_modules/@mui/system/createStyled/index.esm.js +8 -9
  863. package/dist/node_modules/@mui/system/createStyled/index.esm.js.map +1 -1
  864. package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
  865. package/dist/node_modules/@mui/system/createStyled/index.js.map +1 -1
  866. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.esm.js +1 -2
  867. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.esm.js.map +1 -1
  868. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.js +2 -2
  869. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.js.map +1 -1
  870. package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider/index.esm.js +1 -2
  871. package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider/index.esm.js.map +1 -1
  872. package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider/index.js +2 -2
  873. package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider/index.js.map +1 -1
  874. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles/index.esm.js +1 -2
  875. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles/index.esm.js.map +1 -1
  876. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles/index.js +1 -1
  877. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles/index.js.map +1 -1
  878. package/dist/node_modules/@mui/system/esm/RtlProvider/index/index.esm.js +1 -2
  879. package/dist/node_modules/@mui/system/esm/RtlProvider/index/index.esm.js.map +1 -1
  880. package/dist/node_modules/@mui/system/esm/RtlProvider/index/index.js +1 -1
  881. package/dist/node_modules/@mui/system/esm/RtlProvider/index/index.js.map +1 -1
  882. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js +1 -2
  883. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js.map +1 -1
  884. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js +2 -2
  885. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js.map +1 -1
  886. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider/index.esm.js +4 -5
  887. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider/index.esm.js.map +1 -1
  888. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider/index.js +2 -2
  889. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider/index.js.map +1 -1
  890. package/dist/node_modules/@mui/system/esm/borders/index.esm.js +1 -2
  891. package/dist/node_modules/@mui/system/esm/borders/index.esm.js.map +1 -1
  892. package/dist/node_modules/@mui/system/esm/borders/index.js +1 -1
  893. package/dist/node_modules/@mui/system/esm/borders/index.js.map +1 -1
  894. package/dist/node_modules/@mui/system/esm/breakpoints/index.esm.js.map +1 -1
  895. package/dist/node_modules/@mui/system/esm/breakpoints/index.js.map +1 -1
  896. package/dist/node_modules/@mui/system/esm/colorManipulator/index.esm.js +3 -4
  897. package/dist/node_modules/@mui/system/esm/colorManipulator/index.esm.js.map +1 -1
  898. package/dist/node_modules/@mui/system/esm/colorManipulator/index.js +1 -1
  899. package/dist/node_modules/@mui/system/esm/colorManipulator/index.js.map +1 -1
  900. package/dist/node_modules/@mui/system/esm/compose/index.esm.js +1 -2
  901. package/dist/node_modules/@mui/system/esm/compose/index.esm.js.map +1 -1
  902. package/dist/node_modules/@mui/system/esm/compose/index.js +1 -1
  903. package/dist/node_modules/@mui/system/esm/compose/index.js.map +1 -1
  904. package/dist/node_modules/@mui/system/esm/createStyled/index.esm.js +2 -3
  905. package/dist/node_modules/@mui/system/esm/createStyled/index.esm.js.map +1 -1
  906. package/dist/node_modules/@mui/system/esm/createStyled/index.js +1 -1
  907. package/dist/node_modules/@mui/system/esm/createStyled/index.js.map +1 -1
  908. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing/index.esm.js +1 -2
  909. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing/index.esm.js.map +1 -1
  910. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing/index.js +1 -1
  911. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing/index.js.map +1 -1
  912. package/dist/node_modules/@mui/system/esm/cssGrid/index.esm.js +3 -4
  913. package/dist/node_modules/@mui/system/esm/cssGrid/index.esm.js.map +1 -1
  914. package/dist/node_modules/@mui/system/esm/cssGrid/index.js +1 -1
  915. package/dist/node_modules/@mui/system/esm/cssGrid/index.js.map +1 -1
  916. package/dist/node_modules/@mui/system/esm/responsivePropType/index.esm.js +1 -2
  917. package/dist/node_modules/@mui/system/esm/responsivePropType/index.esm.js.map +1 -1
  918. package/dist/node_modules/@mui/system/esm/responsivePropType/index.js +1 -1
  919. package/dist/node_modules/@mui/system/esm/responsivePropType/index.js.map +1 -1
  920. package/dist/node_modules/@mui/system/esm/spacing/index.esm.js +6 -7
  921. package/dist/node_modules/@mui/system/esm/spacing/index.esm.js.map +1 -1
  922. package/dist/node_modules/@mui/system/esm/spacing/index.js +1 -1
  923. package/dist/node_modules/@mui/system/esm/spacing/index.js.map +1 -1
  924. package/dist/node_modules/@mui/system/esm/style/index.esm.js +1 -2
  925. package/dist/node_modules/@mui/system/esm/style/index.esm.js.map +1 -1
  926. package/dist/node_modules/@mui/system/esm/style/index.js +1 -1
  927. package/dist/node_modules/@mui/system/esm/style/index.js.map +1 -1
  928. package/dist/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.esm.js +2 -3
  929. package/dist/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.esm.js.map +1 -1
  930. package/dist/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.js +1 -1
  931. package/dist/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.js.map +1 -1
  932. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
  933. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
  934. package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType/index.esm.js +1 -2
  935. package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType/index.esm.js.map +1 -1
  936. package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType/index.js +1 -1
  937. package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType/index.js.map +1 -1
  938. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize/index.esm.js +1 -2
  939. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize/index.esm.js.map +1 -1
  940. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize/index.js +1 -1
  941. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize/index.js.map +1 -1
  942. package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes/index.esm.js +1 -2
  943. package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes/index.esm.js.map +1 -1
  944. package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes/index.js +1 -1
  945. package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes/index.js.map +1 -1
  946. package/dist/node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType/index.esm.js +1 -2
  947. package/dist/node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType/index.esm.js.map +1 -1
  948. package/dist/node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType/index.js +1 -1
  949. package/dist/node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType/index.js.map +1 -1
  950. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp/index.esm.js +1 -2
  951. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp/index.esm.js.map +1 -1
  952. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp/index.js +1 -1
  953. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp/index.js.map +1 -1
  954. package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType/index.esm.js +1 -2
  955. package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType/index.esm.js.map +1 -1
  956. package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType/index.js +1 -1
  957. package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType/index.js.map +1 -1
  958. package/dist/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory/index.esm.js +1 -2
  959. package/dist/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory/index.esm.js.map +1 -1
  960. package/dist/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory/index.js +1 -1
  961. package/dist/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory/index.js.map +1 -1
  962. package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp/index.esm.js +1 -2
  963. package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp/index.esm.js.map +1 -1
  964. package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp/index.js +1 -1
  965. package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp/index.js.map +1 -1
  966. package/dist/node_modules/@mui/utils/esm/useControlled/useControlled/index.esm.js +1 -2
  967. package/dist/node_modules/@mui/utils/esm/useControlled/useControlled/index.esm.js.map +1 -1
  968. package/dist/node_modules/@mui/utils/esm/useControlled/useControlled/index.js +1 -1
  969. package/dist/node_modules/@mui/utils/esm/useControlled/useControlled/index.js.map +1 -1
  970. package/dist/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar/index.esm.js +1 -2
  971. package/dist/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar/index.esm.js.map +1 -1
  972. package/dist/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar/index.js +1 -1
  973. package/dist/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar/index.js.map +1 -1
  974. package/dist/node_modules/@mui/x-date-pickers/DateField/DateField/index.esm.js +1 -2
  975. package/dist/node_modules/@mui/x-date-pickers/DateField/DateField/index.esm.js.map +1 -1
  976. package/dist/node_modules/@mui/x-date-pickers/DateField/DateField/index.js +2 -2
  977. package/dist/node_modules/@mui/x-date-pickers/DateField/DateField/index.js.map +1 -1
  978. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePicker/index.esm.js +1 -2
  979. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePicker/index.esm.js.map +1 -1
  980. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePicker/index.js +1 -1
  981. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePicker/index.js.map +1 -1
  982. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar/index.esm.js +1 -2
  983. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar/index.esm.js.map +1 -1
  984. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar/index.js +1 -1
  985. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar/index.js.map +1 -1
  986. package/dist/node_modules/@mui/x-date-pickers/DateTimeField/DateTimeField/index.esm.js +1 -2
  987. package/dist/node_modules/@mui/x-date-pickers/DateTimeField/DateTimeField/index.esm.js.map +1 -1
  988. package/dist/node_modules/@mui/x-date-pickers/DateTimeField/DateTimeField/index.js +2 -2
  989. package/dist/node_modules/@mui/x-date-pickers/DateTimeField/DateTimeField/index.js.map +1 -1
  990. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker/index.esm.js +1 -2
  991. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker/index.esm.js.map +1 -1
  992. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker/index.js +1 -1
  993. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker/index.js.map +1 -1
  994. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs/index.esm.js +1 -2
  995. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs/index.esm.js.map +1 -1
  996. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs/index.js +1 -1
  997. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs/index.js.map +1 -1
  998. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar/index.esm.js +1 -2
  999. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar/index.esm.js.map +1 -1
  1000. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar/index.js +1 -1
  1001. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar/index.js.map +1 -1
  1002. package/dist/node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock/index.esm.js +1 -2
  1003. package/dist/node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock/index.esm.js.map +1 -1
  1004. package/dist/node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock/index.js +1 -1
  1005. package/dist/node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock/index.js.map +1 -1
  1006. package/dist/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider/index.esm.js +2 -3
  1007. package/dist/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider/index.esm.js.map +1 -1
  1008. package/dist/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider/index.js +2 -2
  1009. package/dist/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider/index.js.map +1 -1
  1010. package/dist/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar/index.esm.js +1 -2
  1011. package/dist/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar/index.esm.js.map +1 -1
  1012. package/dist/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar/index.js +1 -1
  1013. package/dist/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar/index.js.map +1 -1
  1014. package/dist/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock/index.esm.js +1 -2
  1015. package/dist/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock/index.esm.js.map +1 -1
  1016. package/dist/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock/index.js +1 -1
  1017. package/dist/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock/index.js.map +1 -1
  1018. package/dist/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar/index.esm.js +1 -2
  1019. package/dist/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar/index.esm.js.map +1 -1
  1020. package/dist/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar/index.js +4 -4
  1021. package/dist/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar/index.js.map +1 -1
  1022. package/dist/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader/index.esm.js +1 -2
  1023. package/dist/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader/index.esm.js.map +1 -1
  1024. package/dist/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader/index.js +1 -1
  1025. package/dist/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader/index.js.map +1 -1
  1026. package/dist/node_modules/@mui/x-date-pickers/PickersDay/PickersDay/index.esm.js +4 -5
  1027. package/dist/node_modules/@mui/x-date-pickers/PickersDay/PickersDay/index.esm.js.map +1 -1
  1028. package/dist/node_modules/@mui/x-date-pickers/PickersDay/PickersDay/index.js +1 -1
  1029. package/dist/node_modules/@mui/x-date-pickers/PickersDay/PickersDay/index.js.map +1 -1
  1030. package/dist/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout/index.esm.js +1 -2
  1031. package/dist/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout/index.esm.js.map +1 -1
  1032. package/dist/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout/index.js +1 -1
  1033. package/dist/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout/index.js.map +1 -1
  1034. package/dist/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts/index.esm.js +1 -2
  1035. package/dist/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts/index.esm.js.map +1 -1
  1036. package/dist/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts/index.js +2 -2
  1037. package/dist/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts/index.js.map +1 -1
  1038. package/dist/node_modules/@mui/x-date-pickers/TimeClock/TimeClock/index.esm.js +1 -2
  1039. package/dist/node_modules/@mui/x-date-pickers/TimeClock/TimeClock/index.esm.js.map +1 -1
  1040. package/dist/node_modules/@mui/x-date-pickers/TimeClock/TimeClock/index.js +2 -2
  1041. package/dist/node_modules/@mui/x-date-pickers/TimeClock/TimeClock/index.js.map +1 -1
  1042. package/dist/node_modules/@mui/x-date-pickers/TimeField/TimeField/index.esm.js +1 -2
  1043. package/dist/node_modules/@mui/x-date-pickers/TimeField/TimeField/index.esm.js.map +1 -1
  1044. package/dist/node_modules/@mui/x-date-pickers/TimeField/TimeField/index.js +1 -1
  1045. package/dist/node_modules/@mui/x-date-pickers/TimeField/TimeField/index.js.map +1 -1
  1046. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePicker/index.esm.js +1 -2
  1047. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePicker/index.esm.js.map +1 -1
  1048. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePicker/index.js +1 -1
  1049. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePicker/index.js.map +1 -1
  1050. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar/index.esm.js +1 -2
  1051. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar/index.esm.js.map +1 -1
  1052. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar/index.js +2 -2
  1053. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar/index.js.map +1 -1
  1054. package/dist/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar/index.esm.js +1 -2
  1055. package/dist/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar/index.esm.js.map +1 -1
  1056. package/dist/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar/index.js +2 -2
  1057. package/dist/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar/index.js.map +1 -1
  1058. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils/index.esm.js +3 -4
  1059. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils/index.esm.js.map +1 -1
  1060. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils/index.js +1 -1
  1061. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils/index.js.map +1 -1
  1062. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker/index.esm.js +1 -2
  1063. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker/index.esm.js.map +1 -1
  1064. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker/index.js +1 -1
  1065. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker/index.js.map +1 -1
  1066. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue/index.esm.js +1 -2
  1067. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue/index.esm.js.map +1 -1
  1068. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue/index.js +1 -1
  1069. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue/index.js.map +1 -1
  1070. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useViews/index.esm.js +1 -2
  1071. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useViews/index.esm.js.map +1 -1
  1072. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useViews/index.js +1 -1
  1073. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useViews/index.js.map +1 -1
  1074. package/dist/node_modules/@mui/x-date-pickers/internals/utils/warning/index.esm.js.map +1 -1
  1075. package/dist/node_modules/@react-querybuilder/material/dist/react-querybuilder_material/index.esm.js.map +1 -1
  1076. package/dist/node_modules/@react-querybuilder/material/dist/react-querybuilder_material/index.js.map +1 -1
  1077. package/dist/node_modules/@tanstack/table-core/build/lib/index/index.esm.js +20 -11
  1078. package/dist/node_modules/@tanstack/table-core/build/lib/index/index.esm.js.map +1 -1
  1079. package/dist/node_modules/@tanstack/table-core/build/lib/index/index.js +1 -1
  1080. package/dist/node_modules/@tanstack/table-core/build/lib/index/index.js.map +1 -1
  1081. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index/index.esm.js +6 -7
  1082. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index/index.esm.js.map +1 -1
  1083. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index/index.js +1 -1
  1084. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index/index.js.map +1 -1
  1085. package/dist/node_modules/notistack/notistack.esm/index.esm.js +2 -3
  1086. package/dist/node_modules/notistack/notistack.esm/index.esm.js.map +1 -1
  1087. package/dist/node_modules/notistack/notistack.esm/index.js +1 -1
  1088. package/dist/node_modules/notistack/notistack.esm/index.js.map +1 -1
  1089. package/dist/node_modules/prop-types/checkPropTypes/index.esm.js +3 -4
  1090. package/dist/node_modules/prop-types/checkPropTypes/index.esm.js.map +1 -1
  1091. package/dist/node_modules/prop-types/checkPropTypes/index.js +1 -1
  1092. package/dist/node_modules/prop-types/checkPropTypes/index.js.map +1 -1
  1093. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js +5 -6
  1094. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js.map +1 -1
  1095. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js +1 -1
  1096. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js.map +1 -1
  1097. package/dist/node_modules/prop-types/index/index.esm.js +1 -2
  1098. package/dist/node_modules/prop-types/index/index.esm.js.map +1 -1
  1099. package/dist/node_modules/prop-types/index/index.js +1 -1
  1100. package/dist/node_modules/prop-types/index/index.js.map +1 -1
  1101. package/dist/src/api-client/api.inventory/api.d.ts +10 -14
  1102. package/dist/src/components/form-control/form-builder/form-builder-element/dynamic-select.d.ts +1 -0
  1103. package/dist/src/components/providers/ERPUIProvider.d.ts +2 -0
  1104. package/dist/src/utils/api-config.d.ts +24 -0
  1105. package/dist/src/utils/api.d.ts +9 -18
  1106. package/dist/src/utils/index.d.ts +1 -0
  1107. package/dist/style.css +71 -71
  1108. package/dist/utils/api/index.esm.js +41 -41
  1109. package/dist/utils/api/index.esm.js.map +1 -1
  1110. package/dist/utils/api/index.js +1 -1
  1111. package/dist/utils/api/index.js.map +1 -1
  1112. package/dist/utils/api-config/index.esm.js +56 -0
  1113. package/dist/utils/api-config/index.esm.js.map +1 -0
  1114. package/dist/utils/api-config/index.js +2 -0
  1115. package/dist/utils/api-config/index.js.map +1 -0
  1116. package/dist/utils/api-config.d.ts +24 -0
  1117. package/dist/utils/api.d.ts +9 -18
  1118. package/dist/utils/common/index.esm.js +12 -8
  1119. package/dist/utils/common/index.esm.js.map +1 -1
  1120. package/dist/utils/common/index.js +1 -1
  1121. package/dist/utils/common/index.js.map +1 -1
  1122. package/dist/utils/common-utility/index.esm.js +7 -13
  1123. package/dist/utils/common-utility/index.esm.js.map +1 -1
  1124. package/dist/utils/common-utility/index.js +5 -5
  1125. package/dist/utils/common-utility/index.js.map +1 -1
  1126. package/dist/utils/index.esm.js +9 -1
  1127. package/dist/utils/index.esm.js.map +1 -1
  1128. package/dist/utils/index.js +1 -1
  1129. package/dist/views/form-builder/redux/actionCreator/index.esm.js +1 -2
  1130. package/dist/views/form-builder/redux/actionCreator/index.esm.js.map +1 -1
  1131. package/dist/views/form-builder/redux/actionCreator/index.js +1 -1
  1132. package/dist/views/form-builder/redux/actionCreator/index.js.map +1 -1
  1133. package/dist/views/template-editor/components/EditorSidebar/index.esm.js +4 -3
  1134. package/dist/views/template-editor/components/EditorSidebar/index.esm.js.map +1 -1
  1135. package/dist/views/template-editor/components/EditorSidebar/index.js +14 -14
  1136. package/dist/views/template-editor/components/EditorSidebar/index.js.map +1 -1
  1137. package/dist/views/template-editor/templates/index.esm.js +0 -2
  1138. package/dist/views/template-editor/templates/index.esm.js.map +1 -1
  1139. package/dist/views/template-editor/templates/index.js +5 -5
  1140. package/dist/views/template-editor/templates/index.js.map +1 -1
  1141. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../src/components/form-control/form-builder/form-builder-element/dynamic-select.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { Controller, useFormContext, useWatch, Control } from 'react-hook-form';\nimport { dynamicSelectAdd } from './select-configuration';\nimport {\n Box,\n CircularProgress,\n Divider,\n IconButton,\n InputAdornment,\n MenuItem,\n MenuItemProps,\n OutlinedInput,\n} from '@mui/material';\nimport PropTypes from 'prop-types';\nimport { debounce } from 'lodash';\nimport { sortBy } from \"lodash\";\nimport { useTranslation } from \"react-i18next\";\nimport { Add, Close } from '@mui/icons-material';\n\nimport Select from '../../../select/select';\nimport ChipOrPlaceholder from './chip-or-placeholder';\nimport Checkbox from '../../../checkbox/checkbox';\nimport Typography from '../../../typography/typography';\nimport Chip from '../../../chip/chip';\nimport { MoreIcon } from '../../../icons';\nimport { fetchApi } from '../../../../utils/api';\nimport './element.scss';\nimport { useLanguage } from '@/hooks';\n\n// Types\ninterface IOption {\n id: string | number;\n value: string | number;\n label: string | React.ReactNode;\n disabled?: boolean;\n isGroup?: boolean;\n options?: IOption[];\n searchLabel?: string;\n}\n\n\n\ninterface IMenuItemsProps extends MenuItemProps {\n options: IOption[];\n multiple: boolean;\n placeholder: string;\n with_checkboxes: boolean;\n values: string | string[];\n field: IDynamicSearchSelectProps;\n disabledIds: (string | number)[];\n onChange: (value: string | string[]) => void;\n handleChange?: (value: string | string[]) => void;\n hasParent: boolean;\n t: (key: string) => string;\n // onFooterClick?: () => void;\n}\n\ninterface IDynamicSearchSelectProps {\n name: string;\n placeholder: string;\n label: string;\n size?: 'small' | 'medium';\n options: IOption[];\n formControl: Control<any>;\n defaultValue?: string | string[];\n fieldArrayName: string;\n id?: string;\n required?: boolean;\n is_multiselect?: boolean;\n position?: number;\n formType?: string;\n typeOfField?: string;\n disabled?: boolean;\n onChipRemove?: (value: string) => void;\n enable_footer?: boolean;\n footer_action?: string;\n onFooterClick?: () => void;\n is_loading?: boolean;\n selectedLabel?: string;\n isInternal?: boolean;\n disabledIds?: (string | number)[];\n getSelectedData?: (data: IOption | IOption[] | null, name: string) => void;\n attributes?: string[];\n handleChange?: (value: string | string[]) => void;\n hasParent?: boolean;\n sortOrder?: string;\n apiType?: string;\n handleOptions?: (value: any) => void;\n filterKey?: string;\n customeFilter?: Record<string, any>;\n refresh?: boolean;\n addType?: string;\n}\n\ninterface IPaginationState {\n page: number;\n hasMore: boolean;\n isLoadingMore: boolean;\n total: number;\n}\n\n// Helper function to generate menu items\nconst generateMenuItems = ({\n options,\n multiple,\n placeholder,\n with_checkboxes,\n values,\n // field,\n disabledIds,\n onChange,\n handleChange,\n hasParent,\n t,\n // onFooterClick\n}: IMenuItemsProps): React.ReactElement[] => {\n const itemDisabled = (id: string | number) => disabledIds?.includes(id);\n const items: React.ReactElement[] = [];\n\n if (!multiple) {\n items.push(\n <MenuItem disabled value='' key=\"placeholder\" sx={{ opacity: `0 !important`, height: `0 !important`, p: `0 !important`, m: `0 !important` }}>\n <Typography type='s3' color='theme.secondary.1000'>\n <em>{t(placeholder)}</em>\n </Typography>\n </MenuItem>\n );\n }\n const selectedValues = (Array.isArray(values) && values?.length > 0) ? values?.filter((value) => value) : values;\n\n const handleParentChange = (parentValue: string, childOptions: IOption[]) => {\n const childValues = childOptions.map((child) => child.value);\n const valueArray = Array.isArray(selectedValues) ? selectedValues : [selectedValues];\n\n const isParentSelected = valueArray.includes(parentValue);\n const updatedValues = isParentSelected\n ? valueArray.filter((value) => value !== parentValue && !childValues.includes(value))\n : [...new Set([...valueArray, parentValue, ...childValues])];\n\n onChange(updatedValues);\n handleChange?.(updatedValues);\n };\n\n const isAllOptionsSelected = (parentValue: string, childOptions: IOption[]) => {\n const childValues = childOptions.map((child) => child.value);\n const valueArray = Array.isArray(selectedValues) ? selectedValues : [selectedValues];\n return childValues.every((childValue) => valueArray.includes(childValue));\n };\n\n const isSomeOptionsSelected = (childOptions: IOption[]) => {\n const childValues = childOptions.map((child) => child.value);\n const valueArray = Array.isArray(selectedValues) ? selectedValues : [selectedValues];\n return childValues.some((childValue) => valueArray.includes(childValue));\n };\n\n if (Array.isArray(options) && options.length > 0) {\n options.forEach((option) => {\n items.push(\n <MenuItem\n value={option.value}\n key={option.value}\n disabled={Boolean(option.disabled) || itemDisabled(option.id || option.value)}\n className={option.isGroup ? 'select--MenuItemHeader' : ''}\n >\n <Box sx={{ display: 'flex', gap: 1 }}>\n {multiple && with_checkboxes && (\n <Checkbox\n checked={\n hasParent\n ? isAllOptionsSelected(option.value, option.options || [])\n : Boolean(Array.isArray(selectedValues) ? selectedValues.includes(option.value) : selectedValues == option.value)\n }\n indeterminate={\n hasParent && isSomeOptionsSelected(option.options || [])\n }\n onChange={() => hasParent ? handleParentChange(option.value, option.options || []) : handleChange?.(option.value)}\n />\n )}\n <Typography\n type='s3'\n color='theme.secondary.1000'\n onClick={() => handleChange?.(option.value)}\n >\n {option.label}\n </Typography>\n </Box>\n </MenuItem>\n );\n\n if (option.isGroup && Array.isArray(option.options)) {\n option.options.forEach((opt) => {\n items.push(\n <MenuItem\n value={opt.value}\n disabled={Boolean(opt.disabled) || itemDisabled(opt.id || opt.value)}\n sx={{ pl: 5 }}\n key={`${option.value}-${opt.value}`}\n >\n <Box sx={{ display: 'flex', gap: 1 }}>\n {multiple && with_checkboxes && (\n <Checkbox\n checked={Boolean(Array.isArray(values) && values.includes(opt.value))}\n />\n )}\n <Typography\n type='s3'\n color='theme.secondary.1000'\n onClick={() => handleChange?.(String(opt.value))}\n >\n {opt.label == \"Payment Entries\" ? \"Payment and Collection Entries\" : opt.label || opt.value}\n </Typography>\n </Box>\n </MenuItem>\n );\n });\n }\n });\n }\n\n // if (field.enable_footer) {\n\n // }\n\n if (!items.length || (items.length == 1 && !multiple)) {\n items.push(\n <MenuItem disabled key=\"no-data\">\n No data available\n </MenuItem>\n );\n }\n\n return items;\n};\n\n// Selected items component\nconst SelectedItems: React.FC<{\n data: (string | number)[];\n options: IOption[];\n}> = ({ data, options }) => {\n const displayTitle = data.map(\n (selectedItem) =>\n options?.find((option) => option.value == selectedItem)?.label || ''\n );\n const filteredDisplayTitle = displayTitle.filter(Boolean);\n\n return (\n <Typography\n type='s4'\n color='inherit'\n sx={{ display: 'flex', gap: 1, alignItems: 'center', mt: 0.5 }}\n >\n {filteredDisplayTitle.slice(0, 4).join(', ')}\n {data.length > 4 && (\n <Chip variant='outlined' type='normal' label={<MoreIcon />} />\n )}\n </Typography>\n );\n};\n\nconst Loading = () => (\n <Typography fontStyle='italic' color='inherit' type='s3'>Loading...</Typography>\n)\n\nconst DynamicSearchSelect: React.FC<IDynamicSearchSelectProps> = React.memo((props) => {\n const watchedValue = useWatch({\n control: props.formControl,\n name: `${props.fieldArrayName}.${props.name}`\n });\n\n const formContext = useFormContext();\n const { setValue } = formContext || {};\n const { t } = useTranslation();\n const { isRtl } = useLanguage();\n const selectRef = useRef<HTMLDivElement>(null);\n\n // State management\n const [options, setOptions] = useState<IOption[]>([]);\n const [selectedValue, setSelectedValue] = useState<any>(null);\n const [selectedOptions, setSelectedOptions] = useState<IOption[]>([]);\n const [loading, setLoading] = useState<boolean>(false);\n const [open, setOpen] = useState<boolean>(false);\n const [isAlreadyLoaded, setIsAlreadyLoaded] = useState<boolean>(false);\n const [prevFilter, setPrevFilter] = useState<any>(null);\n const [initialLoading, setInitialLoading] = useState<boolean>(false);\n const [searchQuery, setSearchQuery] = useState<string>(\"\");\n const [searchInitiate, setSearchInitiate] = useState<boolean>(false);\n const [addConfig, setAddConfig] = useState<any>(null);\n\n // Modal states\n const [isModalOpen, setIsModalOpen] = useState<boolean>(false);\n const [isAddLoading, setIsAddLoading] = useState<boolean>(false);\n\n\n // Pagination state\n const [pagination, setPagination] = useState<IPaginationState>({\n page: 1,\n hasMore: true,\n isLoadingMore: false,\n total: 0\n });\n\n // Props destructuring with defaults\n const {\n handleOptions,\n isInternal = false,\n disabledIds = [],\n getSelectedData,\n attributes = [],\n filterKey = 'id',\n customeFilter = {},\n refresh,\n handleChange,\n hasParent = false,\n sortOrder = 'id:-1',\n apiType,\n addType\n } = props;\n\n const limit = 25;\n\n // Memoized values\n const isInternalOptions = useMemo(() => {\n return isInternal || !apiType;\n }, [isInternal, apiType]);\n //eslint-disable-next-line\n const cf = useMemo(() => customeFilter, [JSON.stringify(customeFilter)]);\n\n // Local search function\n const searchOptionsLocally = useCallback((searchTerm: string, value: any): IOption[] => {\n if (!searchTerm) return props.options || [];\n\n const lowercasedSearchTerm = searchTerm.toLowerCase();\n\n const filteredOptions = hasParent\n ? props.options?.reduce((acc: IOption[], opt) => {\n const searchedOptions = opt.options?.filter((item) => {\n const label = React.isValidElement(item.label) ? item.searchLabel : String(item.label);\n return label?.toLowerCase().includes(lowercasedSearchTerm);\n });\n\n if (searchedOptions?.length) {\n acc.push({ ...opt, options: searchedOptions });\n }\n\n return acc;\n }, []) || []\n : props.options?.filter((opt) => {\n const label = React.isValidElement(opt.label) ? opt.searchLabel : String(opt.label);\n return label?.toLowerCase().includes(lowercasedSearchTerm);\n }) || [];\n //eslint-disable-next-line\n return sortBySelectedValues(filteredOptions, value);\n //eslint-disable-next-line\n }, [props.options, hasParent]);\n\n // Get unique options\n const getUniqueOptions = useCallback((data: IOption[]): IOption[] => {\n const uniqueOptions = [\n ...new Map(data?.map(item => [item.value, item])).values()\n ];\n return uniqueOptions;\n }, []);\n\n // Sort by selected values\n const sortBySelectedValues = useCallback((arrayToSort: IOption[], value: any): IOption[] => {\n const selectedValues = Array.isArray(value) ? value : [value];\n const sortedValue = sortBy(arrayToSort, (item) => {\n const index = selectedValues.indexOf(item.id || item.value);\n return index == -1 ? Infinity : index;\n });\n return sortedValue;\n }, []);\n\n // Filtered options with pagination support\n const filteredOptions = useMemo(() => {\n if (isInternalOptions) {\n return searchOptionsLocally(searchQuery, watchedValue);\n }\n return sortBySelectedValues(getUniqueOptions([...options, ...selectedOptions]), watchedValue);\n //eslint-disable-next-line\n }, [options, selectedOptions, isInternalOptions, props.options, watchedValue, searchQuery, searchOptionsLocally, sortBySelectedValues, getUniqueOptions]);\n\n // API Functions\n const fetchOptions = useCallback(async (searchTerm = '', flt = cf, page = 1, append = false) => {\n if (!apiType) return [];\n\n setLoading(true);\n if (page > 1) {\n setPagination(prev => ({ ...prev, isLoadingMore: true }));\n }\n\n try {\n const { data = [], pagination = {} } = await fetchApi({\n apiKey: apiType,\n filters: {\n limit,\n skip: (page - 1) * limit,\n search: searchTerm,\n filters: flt,\n select: attributes,\n order: sortOrder\n }\n });\n\n if (data && Array.isArray(data)) {\n const newOptions = append ? [...options, ...data] : data;\n updateOptions(newOptions, append);\n handleSelectedValue(data);\n // Update pagination\n setPagination(prev => ({\n ...prev,\n page,\n hasMore: pagination?.totalCount > (page * limit),\n total: pagination?.totalCount,\n isLoadingMore: false\n }));\n }\n\n return data || [];\n } catch (error) {\n console.error('Error fetching options:', error);\n setPagination(prev => ({ ...prev, isLoadingMore: false }));\n return [];\n } finally {\n setLoading(false);\n }\n //eslint-disable-next-line\n }, [apiType, options, attributes, sortOrder, limit, cf]);\n\n // Handle scroll pagination\n const handleScroll = useCallback((event: React.UIEvent<HTMLDivElement>) => {\n const { scrollTop, scrollHeight, clientHeight } = event.currentTarget;\n const isBottom = scrollHeight - scrollTop <= clientHeight + 10;\n\n if (isBottom && pagination.hasMore && !pagination.isLoadingMore && !isInternalOptions) {\n const nextPage = pagination.page + 1;\n fetchOptions(searchQuery, cf, nextPage, true);\n }\n }, [pagination.hasMore, pagination.isLoadingMore, pagination.page, isInternalOptions, searchQuery, cf, fetchOptions]);\n\n // Update options\n const updateOptions = useCallback((newOptions: IOption[], append = false) => {\n const oldOptions = append ? options : selectedOptions;\n const uniqueOptions = getUniqueOptions([...oldOptions, ...newOptions]);\n setOptions(uniqueOptions);\n }, [options, selectedOptions, getUniqueOptions]);\n\n // Handle selected value\n const handleSelectedValue = useCallback(async (updateOptions: IOption[]) => {\n const filterValue = props.is_multiselect ? watchedValue : [watchedValue];\n const isInOptions = updateOptions?.filter((item) =>\n Array.isArray(filterValue) ? filterValue.includes(item.id || item.value) : (item[filterKey] || item.value || item.id) == filterValue\n );\n\n if (Array.isArray(isInOptions) && isInOptions.length > 0) {\n getSelectedData?.(props.is_multiselect ? isInOptions : isInOptions[0], props.name);\n return true;\n }\n return false;\n //eslint-disable-next-line\n }, [props.is_multiselect, props.name, watchedValue, filterKey, getSelectedData, filteredOptions]);\n\n // Fetch options by ID\n const fetchIdOptions = useCallback(async () => {\n if (open) return;\n if (await handleSelectedValue(filteredOptions)) return;\n\n const condition = props.is_multiselect ?\n Array.isArray(watchedValue) && watchedValue.length > 0 :\n Boolean(watchedValue);\n\n if (condition) {\n setInitialLoading(true);\n const response = await fetchOptions('', { ...cf, '&id.in': watchedValue }, 1, false);\n setInitialLoading(false);\n\n if (response.length == 0 && setValue && !isInternalOptions) {\n // setValue(`${props.fieldArrayName}.${props.name}`, props.is_multiselect ? [] : null);\n }\n }\n //eslint-disable-next-line\n }, [open, watchedValue, JSON.stringify(cf)]);\n\n // Initial fetch\n const initialFetch = useCallback(async () => {\n const condition = JSON.stringify(cf) !== JSON.stringify(prevFilter);\n\n if (condition) {\n setPrevFilter(cf);\n setOptions([]);\n setIsAlreadyLoaded(false);\n setPagination({\n page: 1,\n hasMore: true,\n isLoadingMore: false,\n total: 0\n });\n }\n\n if (!isInternalOptions && !isAlreadyLoaded) {\n await fetchOptions(searchQuery, cf, 1, false);\n setIsAlreadyLoaded(true);\n }\n //eslint-disable-next-line react-hooks/exhaustive-deps\n }, [cf, isInternalOptions, isAlreadyLoaded]);\n\n // Debounced search\n const debouncedSearch = useMemo(\n () => debounce(async (searchTerm: string) => {\n if (loading) return;\n\n if (!searchTerm && !isInternalOptions && searchInitiate) {\n setPagination({\n page: 1,\n hasMore: true,\n isLoadingMore: false,\n total: 0\n });\n await fetchOptions('', cf, 1, false);\n }\n if (searchTerm.length > 1 && !isInternalOptions) {\n setPagination({\n page: 1,\n hasMore: true,\n isLoadingMore: false,\n total: 0\n });\n await fetchOptions(searchTerm, cf, 1, false);\n }\n }, 700),\n //eslint-disable-next-line\n [isInternalOptions, searchInitiate, cf]\n );\n\n // Reset value function\n const resetValue = useCallback((field: any) => {\n field.onChange(props.is_multiselect ? [] : null);\n if (getSelectedData) {\n getSelectedData(null, props.name);\n }\n }, [props.is_multiselect, props.name, getSelectedData]);\n\n // Handle close\n const handleClose = useCallback(() => {\n setOpen(false);\n if (searchQuery.length > 0) {\n setIsAlreadyLoaded(false);\n }\n setSearchInitiate(false);\n setSearchQuery('');\n }, [searchQuery]);\n\n const handleModalOpen = useCallback(() => {\n setIsModalOpen(true);\n }, []);\n\n\n\n // Handle modal save\n const handleModalSave = useCallback(async (payload: any) => {\n if (!addConfig || !addConfig.api) {\n console.error('Add configuration is not properly set');\n return;\n }\n\n setIsAddLoading(true);\n try {\n const result = await addConfig.api(payload);\n setIsAddLoading(false);\n setIsModalOpen(false);\n if (!isInternalOptions) {\n setPagination({\n page: 1,\n hasMore: true,\n isLoadingMore: false,\n total: 0\n });\n setIsAlreadyLoaded(false);\n await fetchOptions('', cf, 1, false);\n }\n if (result && result.data) {\n const newValue = props.is_multiselect\n ? [...(watchedValue || []), result.data.id]\n : result.data.id;\n\n if (setValue) {\n setValue(`${props.fieldArrayName}.${props.name}`, newValue);\n }\n }\n } catch (error) {\n console.log(\"error\", error);\n setIsAddLoading(false);\n }\n\n\n }, [addConfig, isInternalOptions, fetchOptions, cf, props.is_multiselect, props.fieldArrayName, props.name, watchedValue, setValue]);\n\n // Effects\n useEffect(() => {\n if (handleOptions) {\n handleOptions(selectedValue);\n }\n }, [handleOptions, selectedValue]);\n\n useEffect(() => {\n if (open) {\n initialFetch();\n }\n }, [open, initialFetch]);\n\n useEffect(() => {\n fetchIdOptions();\n }, [fetchIdOptions]);\n\n useEffect(() => {\n if (refresh) {\n setPagination({\n page: 1,\n hasMore: true,\n isLoadingMore: false,\n total: 0\n });\n fetchOptions('', cf, 1, false);\n }\n }, [refresh, fetchOptions, cf]);\n\n useEffect(() => {\n if (open) {\n debouncedSearch(searchQuery);\n }\n return () => debouncedSearch.cancel();\n }, [searchQuery, open, debouncedSearch]);\n\n useEffect(() => {\n if (watchedValue && !open) {\n const selectedData = options?.filter((item) =>\n props.is_multiselect ?\n Array.isArray(watchedValue) && watchedValue.includes(item.id || item.value) :\n (item.id || item.value) == watchedValue\n );\n setSelectedOptions(selectedData || []);\n }\n }, [watchedValue, options, props.is_multiselect, open]);\n\n const removeUndefined = useCallback((selectOptions: any[]) => {\n return Array.isArray(selectOptions) ? selectOptions.filter(Boolean) : [];\n }, []);\n\n useEffect(() => {\n const config = dynamicSelectAdd(addType);\n setAddConfig(config);\n }, [addType])\n\n\n return (\n <Controller\n control={props.formControl}\n name={`${props.fieldArrayName}.${props.name}`}\n render={({ field, fieldState }) => (\n <>\n {props.placeholder == 'Select Currency' && setSelectedValue(field.value)}\n <Select\n {...field}\n ref={selectRef}\n open={open}\n onOpen={() => setOpen(true)}\n onClose={handleClose}\n fullWidth\n dataPosition={props.position}\n dataName={`${props.fieldArrayName}.${props.name}`}\n placeholder={props.placeholder}\n label={props.label}\n defaultValue={props.defaultValue || (props.is_multiselect ? [] : '')}\n searchValue={searchQuery}\n required={props.formType == 'builder' ? false : props.required}\n size={props.size || 'small'}\n multiple={props.is_multiselect || false}\n disabled={props.disabled}\n sx={(props.is_multiselect && field?.value?.length) ? { \"& .MuiSelect-select\": { padding: '5.5px !important' } } : {}}\n variant='outlined'\n value={\n initialLoading\n ? (props.is_multiselect ? [] : '')\n : (field.value?.id || field.value || (props.is_multiselect ? [] : ''))\n }\n className={\n props.is_multiselect && removeUndefined(field.value)?.length\n ? 'MultiSelect filter-select'\n : ''\n }\n MenuProps={{\n PaperProps: {\n onScroll: handleScroll,\n style: { maxHeight: 300 }\n }\n }}\n\n renderValue={(selected: any) => {\n if (Array.isArray(selected)) {\n return (\n <ChipOrPlaceholder\n selectedLabel={props.selectedLabel}\n data={removeUndefined(selected)}\n placeholder={(loading || props.is_loading) ? <Loading /> : `${t('common.search')} ${props.label}`}\n onDelete={props.onChipRemove}\n disabled={props.disabled}\n chipProps={{\n sx: {\n background: '#ebf9f2',\n border: 0,\n // borderRadius: '15px',\n '& .MuiTypography-body1': {\n color: '#289b64',\n fontWeight: \"500\",\n }\n }\n }}\n />\n );\n } else {\n const selectedOption = filteredOptions.find(\n (option) => (option.value?.id || option.value) == selected\n );\n return (loading || props.is_loading) ? <Loading /> : selectedOption?.label ||\n (typeof props.label == 'string' ?\n `${t('common.search')} ${props.label}` :\n props.placeholder);\n }\n }}\n searchPlaceholder={`${t('common.search')} ${props.label}`}\n handleSearch={(text: string) => {\n setSearchQuery(text);\n setSearchInitiate(true);\n }}\n error={Boolean(fieldState.error?.message)}\n helperText={fieldState.error?.message || ''}\n onBlur={field.onBlur}\n input={\n <OutlinedInput\n label=''\n endAdornment={\n <InputAdornment position='end'>\n {(loading || props.is_loading) ? (\n <CircularProgress\n size={20}\n sx={{ mr: 3, color: \"#4AC08C\" }}\n />\n ) : (\n !props.disabled &&\n (props.is_multiselect ?\n (Array.isArray(field.value) && field.value.length > 0) :\n Boolean(field.value)) && (\n <IconButton\n aria-label='clear selection'\n onClick={() => resetValue(field)}\n edge='end'\n sx={isRtl ? { ml: 2.5 } : { mr: 1.5 }}\n size='small'\n >\n <Close sx={{ fontSize: '1rem' }} />\n </IconButton>\n )\n )}\n </InputAdornment>\n }\n />\n }\n >\n {generateMenuItems({\n options: filteredOptions,\n multiple: Boolean(props.is_multiselect),\n placeholder: props.placeholder,\n values: field.value,\n with_checkboxes: true,\n field: props,\n disabledIds,\n onChange: field.onChange,\n handleChange,\n hasParent,\n t,\n // onFooterClick: () => {\n // if (props?.onFooterClick) {\n // props?.onFooterClick();\n // } else {\n // handleModalOpen();\n // }\n // }\n })}\n {props?.enable_footer &&\n <Box key=\"footer\" sx={{ position: 'sticky', bottom: 0, background: '#fff', zIndex: 1 }}>\n <Divider flexItem sx={{ mt: '0.25rem !important', mb: '0.25rem !important' }} />\n <MenuItem sx={{ gap: 1 }} onClick={\n () => {\n if (props?.onFooterClick) {\n props?.onFooterClick();\n } else {\n handleModalOpen();\n }\n }\n\n }>\n <Add fontSize='small' />\n <Typography type='s4' color='theme.secondary.1000'>\n Create New {props.label}\n </Typography>\n </MenuItem>\n </Box>}\n {pagination.isLoadingMore && (\n <MenuItem disabled>\n <Box sx={{ display: 'flex', justifyContent: 'center', width: '100%' }}>\n <CircularProgress size={20} />\n </Box>\n </MenuItem>\n )}\n </Select>\n\n {/* Modal for adding new items */}\n {addConfig && addConfig.component && (\n <>\n {React.createElement(addConfig.component, {\n isOpen: isModalOpen,\n setIsOpen: setIsModalOpen,\n isLoading: isAddLoading,\n onSave: handleModalSave,\n modalProps: {\n maxWidth: 'md',\n fullWidth: true\n },\n ...props?.modalComponentProps\n })}\n </>\n )}\n\n {props.is_multiselect && Array.isArray(field.value) && (\n <SelectedItems\n data={field.value}\n options={filteredOptions}\n />\n )}\n </>\n )}\n />\n );\n});\n\nDynamicSearchSelect.propTypes = {\n name: PropTypes.string.isRequired,\n placeholder: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n size: PropTypes.string,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n value: PropTypes.any\n })\n ).isRequired,\n formControl: PropTypes.object.isRequired,\n defaultValue: PropTypes.any,\n fieldArrayName: PropTypes.string.isRequired,\n id: PropTypes.string,\n required: PropTypes.bool,\n is_multiselect: PropTypes.bool,\n position: PropTypes.number,\n formType: PropTypes.string,\n typeOfField: PropTypes.string,\n disabled: PropTypes.bool,\n onChipRemove: PropTypes.func,\n enable_footer: PropTypes.bool,\n footer_action: PropTypes.string,\n onFooterClick: PropTypes.func,\n is_loading: PropTypes.bool,\n selectedLabel: PropTypes.string,\n isInternal: PropTypes.bool,\n disabledIds: PropTypes.array,\n getSelectedData: PropTypes.func,\n attributes: PropTypes.array,\n handleChange: PropTypes.func,\n hasParent: PropTypes.bool,\n sortOrder: PropTypes.string,\n apiType: PropTypes.string,\n handleOptions: PropTypes.func,\n filterKey: PropTypes.string,\n customeFilter: PropTypes.object,\n refresh: PropTypes.bool,\n addType: PropTypes.string,\n modalComponentProps: PropTypes.object\n};\n\nexport default DynamicSearchSelect;"],"names":["generateMenuItems","options","multiple","placeholder","with_checkboxes","values","disabledIds","onChange","handleChange","hasParent","t","itemDisabled","id","includes","items","push","jsx","MenuItem","disabled","value","sx","opacity","height","p","m","children","Typography","type","color","selectedValues","Array","isArray","length","filter","isAllOptionsSelected","parentValue","childOptions","childValues","map","child","valueArray","every","childValue","isSomeOptionsSelected","some","forEach","option","Boolean","className","isGroup","jsxs","Box","display","gap","Checkbox","checked","indeterminate","updatedValues","Set","handleParentChange","onClick","label","opt","pl","String","SelectedItems","data","filteredDisplayTitle","selectedItem","_a","find","alignItems","mt","slice","join","Chip","variant","MoreIcon","Loading","fontStyle","DynamicSearchSelect","React","memo","props","watchedValue","useWatch","control","formControl","name","fieldArrayName","formContext","useFormContext","setValue","useTranslation","isRtl","useLanguage","selectRef","useRef","setOptions","useState","selectedValue","setSelectedValue","selectedOptions","setSelectedOptions","loading","setLoading","open","setOpen","isAlreadyLoaded","setIsAlreadyLoaded","prevFilter","setPrevFilter","initialLoading","setInitialLoading","searchQuery","setSearchQuery","searchInitiate","setSearchInitiate","addConfig","setAddConfig","isModalOpen","setIsModalOpen","isAddLoading","setIsAddLoading","pagination","setPagination","page","hasMore","isLoadingMore","total","handleOptions","isInternal","getSelectedData","attributes","filterKey","customeFilter","refresh","sortOrder","apiType","addType","isInternalOptions","useMemo","cf","JSON","stringify","searchOptionsLocally","useCallback","searchTerm","lowercasedSearchTerm","toLowerCase","filteredOptions","reduce","acc","searchedOptions","item","isValidElement","searchLabel","_b","sortBySelectedValues","getUniqueOptions","Map","arrayToSort","sortBy","index","indexOf","Infinity","fetchOptions","async","flt","append","prev","fetchApi","apiKey","filters","limit","skip","search","select","order","newOptions","updateOptions","handleSelectedValue","totalCount","error","handleScroll","event","scrollTop","scrollHeight","clientHeight","currentTarget","nextPage","uniqueOptions","filterValue","is_multiselect","isInOptions","fetchIdOptions","initialFetch","debouncedSearch","debounce","resetValue","field","handleClose","handleModalOpen","handleModalSave","payload","api","result","newValue","useEffect","cancel","selectedData","removeUndefined","selectOptions","config","dynamicSelectAdd","Controller","render","fieldState","Fragment","Select","ref","onOpen","onClose","fullWidth","dataPosition","position","dataName","defaultValue","searchValue","required","formType","size","padding","_c","MenuProps","PaperProps","onScroll","style","maxHeight","renderValue","selected","ChipOrPlaceholder","selectedLabel","is_loading","onDelete","onChipRemove","chipProps","background","border","fontWeight","selectedOption","searchPlaceholder","handleSearch","text","_d","message","helperText","_e","onBlur","input","OutlinedInput","endAdornment","InputAdornment","CircularProgress","mr","IconButton","edge","ml","Close","fontSize","enable_footer","bottom","zIndex","Divider","flexItem","mb","onFooterClick","Add","justifyContent","width","component","createElement","isOpen","setIsOpen","isLoading","onSave","modalProps","maxWidth","modalComponentProps","propTypes","PropTypes","string","isRequired","arrayOf","shape","oneOfType","node","any","object","bool","number","typeOfField","func","footer_action","array"],"mappings":"mkDAsGA,MAAMA,EAAoB,EACtBC,UACAC,WACAC,cACAC,kBACAC,SAEAC,cACAC,WACAC,eACAC,YACAC,QAGA,MAAMC,EAAgBC,GAAwB,MAAAN,OAAA,EAAAA,EAAaO,SAASD,GAC9DE,EAA8B,GAE/BZ,GACDY,EAAMC;eACFC,EAAAA,IAACC,EAAAA,QAAA,CAASC,UAAQ,EAACC,MAAM,GAAqBC,GAAI,CAAEC,QAAS,eAAgBC,OAAQ,eAAgBC,EAAG,eAAgBC,EAAG,gBACvHC,wBAAAT,EAAAA,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AAA,QAAUO,IACxBhN,eAAgByM,EAAAA,QAAUC,OAAOC,WACjCxR,GAAIsR,EAAAA,QAAUC,OACd9D,SAAU6D,EAAAA,QAAUS,KACpB1G,eAAgBiG,EAAAA,QAAUS,KAC1B1E,SAAUiE,EAAAA,QAAUU,OACpBtE,SAAU4D,EAAAA,QAAUC,OACpBU,YAAaX,EAAAA,QAAUC,OACvBjR,SAAUgR,EAAAA,QAAUS,KACpBtD,aAAc6C,EAAAA,QAAUY,KACxBhC,cAAeoB,EAAAA,QAAUS,KACzBI,cAAeb,EAAAA,QAAUC,OACzBf,cAAec,EAAAA,QAAUY,KACzB3D,WAAY+C,EAAAA,QAAUS,KACtBzD,cAAegD,EAAAA,QAAUC,OACzBhK,WAAY+J,EAAAA,QAAUS,KACtBrS,YAAa4R,EAAAA,QAAUc,MACvB5K,gBAAiB8J,EAAAA,QAAUY,KAC3BzK,WAAY6J,EAAAA,QAAUc,MACtBxS,aAAc0R,EAAAA,QAAUY,KACxBrS,UAAWyR,EAAAA,QAAUS,KACrBlK,UAAWyJ,EAAAA,QAAUC,OACrBzJ,QAASwJ,EAAAA,QAAUC,OACnBjK,cAAegK,EAAAA,QAAUY,KACzBxK,UAAW4J,EAAAA,QAAUC,OACrB5J,cAAe2J,EAAAA,QAAUQ,OACzBlK,QAAS0J,EAAAA,QAAUS,KACnBhK,QAASuJ,EAAAA,QAAUC,OACnBH,oBAAqBE,EAAAA,QAAUQ"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/components/form-control/form-builder/form-builder-element/dynamic-select.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { Controller, useFormContext, useWatch, Control } from 'react-hook-form';\nimport { dynamicSelectAdd } from './select-configuration';\nimport {\n Box,\n CircularProgress,\n Divider,\n IconButton,\n InputAdornment,\n MenuItem,\n MenuItemProps,\n OutlinedInput,\n} from '@mui/material';\nimport PropTypes from 'prop-types';\nimport { debounce } from 'lodash';\nimport { sortBy } from \"lodash\";\nimport { useTranslation } from \"react-i18next\";\nimport { Add, Close } from '@mui/icons-material';\n\nimport Select from '../../../select/select';\nimport ChipOrPlaceholder from './chip-or-placeholder';\nimport Checkbox from '../../../checkbox/checkbox';\nimport Typography from '../../../typography/typography';\nimport Chip from '../../../chip/chip';\nimport { MoreIcon } from '../../../icons';\nimport { fetchApi } from '../../../../utils/api';\nimport './element.scss';\nimport { useLanguage } from '@/hooks';\n\n// Types\ninterface IOption {\n id: string | number;\n value: string | number;\n label: string | React.ReactNode;\n disabled?: boolean;\n isGroup?: boolean;\n options?: IOption[];\n searchLabel?: string;\n}\n\n\n\ninterface IMenuItemsProps extends MenuItemProps {\n options: IOption[];\n multiple: boolean;\n placeholder: string;\n with_checkboxes: boolean;\n values: string | string[];\n field: IDynamicSearchSelectProps;\n disabledIds: (string | number)[];\n onChange: (value: string | string[]) => void;\n handleChange?: (value: string | string[]) => void;\n hasParent: boolean;\n t: (key: string) => string;\n // onFooterClick?: () => void;\n}\n\ninterface IDynamicSearchSelectProps {\n name: string;\n placeholder: string;\n label: string;\n size?: 'small' | 'medium';\n options: IOption[];\n formControl: Control<any>;\n defaultValue?: string | string[];\n fieldArrayName: string;\n id?: string;\n required?: boolean;\n is_multiselect?: boolean;\n position?: number;\n formType?: string;\n typeOfField?: string;\n disabled?: boolean;\n onChipRemove?: (value: string) => void;\n enable_footer?: boolean;\n footer_action?: string;\n onFooterClick?: () => void;\n is_loading?: boolean;\n selectedLabel?: string;\n isInternal?: boolean;\n disabledIds?: (string | number)[];\n getSelectedData?: (data: IOption | IOption[] | null, name: string) => void;\n attributes?: string[];\n handleChange?: (value: string | string[]) => void;\n hasParent?: boolean;\n sortOrder?: string;\n apiType?: string;\n handleOptions?: (value: any) => void;\n filterKey?: string;\n customeFilter?: Record<string, any>;\n refresh?: boolean;\n addType?: string;\n showCancelButton?: boolean;\n}\n\ninterface IPaginationState {\n page: number;\n hasMore: boolean;\n isLoadingMore: boolean;\n total: number;\n}\n\n// Helper function to generate menu items\nconst generateMenuItems = ({\n options,\n multiple,\n placeholder,\n with_checkboxes,\n values,\n // field,\n disabledIds,\n onChange,\n handleChange,\n hasParent,\n t,\n // onFooterClick\n}: IMenuItemsProps): React.ReactElement[] => {\n const itemDisabled = (id: string | number) => disabledIds?.includes(id);\n const items: React.ReactElement[] = [];\n\n if (!multiple) {\n items.push(\n <MenuItem disabled value='' key=\"placeholder\" sx={{ opacity: `0 !important`, height: `0 !important`, p: `0 !important`, m: `0 !important` }}>\n <Typography type='s3' color='theme.secondary.1000'>\n <em>{t(placeholder)}</em>\n </Typography>\n </MenuItem>\n );\n }\n const selectedValues = (Array.isArray(values) && values?.length > 0) ? values?.filter((value) => value) : values;\n\n const handleParentChange = (parentValue: string, childOptions: IOption[]) => {\n const childValues = childOptions.map((child) => child.value);\n const valueArray = Array.isArray(selectedValues) ? selectedValues : [selectedValues];\n\n const isParentSelected = valueArray.includes(parentValue);\n const updatedValues = isParentSelected\n ? valueArray.filter((value) => value !== parentValue && !childValues.includes(value))\n : [...new Set([...valueArray, parentValue, ...childValues])];\n\n onChange(updatedValues);\n handleChange?.(updatedValues);\n };\n\n const isAllOptionsSelected = (parentValue: string, childOptions: IOption[]) => {\n const childValues = childOptions.map((child) => child.value);\n const valueArray = Array.isArray(selectedValues) ? selectedValues : [selectedValues];\n return childValues.every((childValue) => valueArray.includes(childValue));\n };\n\n const isSomeOptionsSelected = (childOptions: IOption[]) => {\n const childValues = childOptions.map((child) => child.value);\n const valueArray = Array.isArray(selectedValues) ? selectedValues : [selectedValues];\n return childValues.some((childValue) => valueArray.includes(childValue));\n };\n\n if (Array.isArray(options) && options.length > 0) {\n options.forEach((option) => {\n items.push(\n <MenuItem\n value={option.value}\n key={option.value}\n disabled={Boolean(option.disabled) || itemDisabled(option.id || option.value)}\n className={option.isGroup ? 'select--MenuItemHeader' : ''}\n >\n <Box sx={{ display: 'flex', gap: 1 }}>\n {multiple && with_checkboxes && (\n <Checkbox\n checked={\n hasParent\n ? isAllOptionsSelected(option.value, option.options || [])\n : Boolean(Array.isArray(selectedValues) ? selectedValues.includes(option.value) : selectedValues == option.value)\n }\n indeterminate={\n hasParent && isSomeOptionsSelected(option.options || [])\n }\n onChange={() => hasParent ? handleParentChange(option.value, option.options || []) : handleChange?.(option.value)}\n />\n )}\n <Typography\n type='s3'\n color='theme.secondary.1000'\n onClick={() => handleChange?.(option.value)}\n >\n {option.label}\n </Typography>\n </Box>\n </MenuItem>\n );\n\n if (option.isGroup && Array.isArray(option.options)) {\n option.options.forEach((opt) => {\n items.push(\n <MenuItem\n value={opt.value}\n disabled={Boolean(opt.disabled) || itemDisabled(opt.id || opt.value)}\n sx={{ pl: 5 }}\n key={`${option.value}-${opt.value}`}\n >\n <Box sx={{ display: 'flex', gap: 1 }}>\n {multiple && with_checkboxes && (\n <Checkbox\n checked={Boolean(Array.isArray(values) && values.includes(opt.value))}\n />\n )}\n <Typography\n type='s3'\n color='theme.secondary.1000'\n onClick={() => handleChange?.(String(opt.value))}\n >\n {opt.label == \"Payment Entries\" ? \"Payment and Collection Entries\" : opt.label || opt.value}\n </Typography>\n </Box>\n </MenuItem>\n );\n });\n }\n });\n }\n\n // if (field.enable_footer) {\n\n // }\n\n if (!items.length || (items.length == 1 && !multiple)) {\n items.push(\n <MenuItem disabled key=\"no-data\">\n No data available\n </MenuItem>\n );\n }\n\n return items;\n};\n\n// Selected items component\nconst SelectedItems: React.FC<{\n data: (string | number)[];\n options: IOption[];\n}> = ({ data, options }) => {\n const displayTitle = data.map(\n (selectedItem) =>\n options?.find((option) => option.value == selectedItem)?.label || ''\n );\n const filteredDisplayTitle = displayTitle.filter(Boolean);\n\n return (\n <Typography\n type='s4'\n color='inherit'\n sx={{ display: 'flex', gap: 1, alignItems: 'center', mt: 0.5 }}\n >\n {filteredDisplayTitle.slice(0, 4).join(', ')}\n {data.length > 4 && (\n <Chip variant='outlined' type='normal' label={<MoreIcon />} />\n )}\n </Typography>\n );\n};\n\nconst Loading = () => (\n <Typography fontStyle='italic' color='inherit' type='s3'>Loading...</Typography>\n)\n\nconst DynamicSearchSelect: React.FC<IDynamicSearchSelectProps> = React.memo((props) => {\n const watchedValue = useWatch({\n control: props.formControl,\n name: `${props.fieldArrayName}.${props.name}`\n });\n\n const formContext = useFormContext();\n const { setValue } = formContext || {};\n const { t } = useTranslation();\n const { isRtl } = useLanguage();\n const selectRef = useRef<HTMLDivElement>(null);\n\n // State management\n const [options, setOptions] = useState<IOption[]>([]);\n const [selectedValue, setSelectedValue] = useState<any>(null);\n const [selectedOptions, setSelectedOptions] = useState<IOption[]>([]);\n const [loading, setLoading] = useState<boolean>(false);\n const [open, setOpen] = useState<boolean>(false);\n const [isAlreadyLoaded, setIsAlreadyLoaded] = useState<boolean>(false);\n const [prevFilter, setPrevFilter] = useState<any>(null);\n const [initialLoading, setInitialLoading] = useState<boolean>(false);\n const [searchQuery, setSearchQuery] = useState<string>(\"\");\n const [searchInitiate, setSearchInitiate] = useState<boolean>(false);\n const [addConfig, setAddConfig] = useState<any>(null);\n\n // Modal states\n const [isModalOpen, setIsModalOpen] = useState<boolean>(false);\n const [isAddLoading, setIsAddLoading] = useState<boolean>(false);\n\n\n // Pagination state\n const [pagination, setPagination] = useState<IPaginationState>({\n page: 1,\n hasMore: true,\n isLoadingMore: false,\n total: 0\n });\n\n // Props destructuring with defaults\n const {\n handleOptions,\n isInternal = false,\n disabledIds = [],\n getSelectedData,\n attributes = [],\n filterKey = 'id',\n customeFilter = {},\n refresh,\n handleChange,\n hasParent = false,\n sortOrder = 'id:-1',\n apiType,\n addType,\n showCancelButton = true\n } = props;\n\n const limit = 25;\n\n // Memoized values\n const isInternalOptions = useMemo(() => {\n return isInternal || !apiType;\n }, [isInternal, apiType]);\n //eslint-disable-next-line\n const cf = useMemo(() => customeFilter, [JSON.stringify(customeFilter)]);\n\n // Local search function\n const searchOptionsLocally = useCallback((searchTerm: string, value: any): IOption[] => {\n if (!searchTerm) return props.options || [];\n\n const lowercasedSearchTerm = searchTerm.toLowerCase();\n\n const filteredOptions = hasParent\n ? props.options?.reduce((acc: IOption[], opt) => {\n const searchedOptions = opt.options?.filter((item) => {\n const label = React.isValidElement(item.label) ? item.searchLabel : String(item.label);\n return label?.toLowerCase().includes(lowercasedSearchTerm);\n });\n\n if (searchedOptions?.length) {\n acc.push({ ...opt, options: searchedOptions });\n }\n\n return acc;\n }, []) || []\n : props.options?.filter((opt) => {\n const label = React.isValidElement(opt.label) ? opt.searchLabel : String(opt.label);\n return label?.toLowerCase().includes(lowercasedSearchTerm);\n }) || [];\n //eslint-disable-next-line\n return sortBySelectedValues(filteredOptions, value);\n //eslint-disable-next-line\n }, [props.options, hasParent]);\n\n // Get unique options\n const getUniqueOptions = useCallback((data: IOption[]): IOption[] => {\n const uniqueOptions = [\n ...new Map(data?.map(item => [item.value, item])).values()\n ];\n return uniqueOptions;\n }, []);\n\n // Sort by selected values\n const sortBySelectedValues = useCallback((arrayToSort: IOption[], value: any): IOption[] => {\n const selectedValues = Array.isArray(value) ? value : [value];\n const sortedValue = sortBy(arrayToSort, (item) => {\n const index = selectedValues.indexOf(item.id || item.value);\n return index == -1 ? Infinity : index;\n });\n return sortedValue;\n }, []);\n\n // Filtered options with pagination support\n const filteredOptions = useMemo(() => {\n if (isInternalOptions) {\n return searchOptionsLocally(searchQuery, watchedValue);\n }\n return sortBySelectedValues(getUniqueOptions([...options, ...selectedOptions]), watchedValue);\n //eslint-disable-next-line\n }, [options, selectedOptions, isInternalOptions, props.options, watchedValue, searchQuery, searchOptionsLocally, sortBySelectedValues, getUniqueOptions]);\n\n // API Functions\n const fetchOptions = useCallback(async (searchTerm = '', flt = cf, page = 1, append = false) => {\n if (!apiType) return [];\n\n setLoading(true);\n if (page > 1) {\n setPagination(prev => ({ ...prev, isLoadingMore: true }));\n }\n\n try {\n const { data = [], pagination = {} } = await fetchApi({\n apiKey: apiType,\n filters: {\n limit,\n skip: (page - 1) * limit,\n search: searchTerm,\n filters: flt,\n select: attributes,\n order: sortOrder\n }\n });\n\n if (data && Array.isArray(data)) {\n const newOptions = append ? [...options, ...data] : data;\n updateOptions(newOptions, append);\n handleSelectedValue(data);\n // Update pagination\n setPagination(prev => ({\n ...prev,\n page,\n hasMore: pagination?.totalCount > (page * limit),\n total: pagination?.totalCount,\n isLoadingMore: false\n }));\n }\n\n return data || [];\n } catch (error) {\n console.error('Error fetching options:', error);\n setPagination(prev => ({ ...prev, isLoadingMore: false }));\n return [];\n } finally {\n setLoading(false);\n }\n //eslint-disable-next-line\n }, [apiType, options, attributes, sortOrder, limit, cf]);\n\n // Handle scroll pagination\n const handleScroll = useCallback((event: React.UIEvent<HTMLDivElement>) => {\n const { scrollTop, scrollHeight, clientHeight } = event.currentTarget;\n const isBottom = scrollHeight - scrollTop <= clientHeight + 10;\n\n if (isBottom && pagination.hasMore && !pagination.isLoadingMore && !isInternalOptions) {\n const nextPage = pagination.page + 1;\n fetchOptions(searchQuery, cf, nextPage, true);\n }\n }, [pagination.hasMore, pagination.isLoadingMore, pagination.page, isInternalOptions, searchQuery, cf, fetchOptions]);\n\n // Update options\n const updateOptions = useCallback((newOptions: IOption[], append = false) => {\n const oldOptions = append ? options : selectedOptions;\n const uniqueOptions = getUniqueOptions([...oldOptions, ...newOptions]);\n setOptions(uniqueOptions);\n }, [options, selectedOptions, getUniqueOptions]);\n\n // Handle selected value\n const handleSelectedValue = useCallback(async (updateOptions: IOption[]) => {\n const filterValue = props.is_multiselect ? watchedValue : [watchedValue];\n const isInOptions = updateOptions?.filter((item) =>\n Array.isArray(filterValue) ? filterValue.includes(item.id || item.value) : (item[filterKey] || item.value || item.id) == filterValue\n );\n\n if (Array.isArray(isInOptions) && isInOptions.length > 0) {\n getSelectedData?.(props.is_multiselect ? isInOptions : isInOptions[0], props.name);\n return true;\n }\n return false;\n //eslint-disable-next-line\n }, [props.is_multiselect, props.name, watchedValue, filterKey, getSelectedData, filteredOptions]);\n\n // Fetch options by ID\n const fetchIdOptions = useCallback(async () => {\n if (open) return;\n if (await handleSelectedValue(filteredOptions)) return;\n\n const condition = props.is_multiselect ?\n Array.isArray(watchedValue) && watchedValue.length > 0 :\n Boolean(watchedValue);\n\n if (condition) {\n setInitialLoading(true);\n const response = await fetchOptions('', { ...cf, '&id.in': watchedValue }, 1, false);\n setInitialLoading(false);\n\n if (response.length == 0 && setValue && !isInternalOptions) {\n // setValue(`${props.fieldArrayName}.${props.name}`, props.is_multiselect ? [] : null);\n }\n }\n //eslint-disable-next-line\n }, [open, watchedValue, JSON.stringify(cf)]);\n\n // Initial fetch\n const initialFetch = useCallback(async () => {\n const condition = JSON.stringify(cf) !== JSON.stringify(prevFilter);\n\n if (condition) {\n setPrevFilter(cf);\n setOptions([]);\n setIsAlreadyLoaded(false);\n setPagination({\n page: 1,\n hasMore: true,\n isLoadingMore: false,\n total: 0\n });\n }\n\n if (!isInternalOptions && !isAlreadyLoaded) {\n await fetchOptions(searchQuery, cf, 1, false);\n setIsAlreadyLoaded(true);\n }\n //eslint-disable-next-line react-hooks/exhaustive-deps\n }, [cf, isInternalOptions, isAlreadyLoaded]);\n\n // Debounced search\n const debouncedSearch = useMemo(\n () => debounce(async (searchTerm: string) => {\n if (loading) return;\n\n if (!searchTerm && !isInternalOptions && searchInitiate) {\n setPagination({\n page: 1,\n hasMore: true,\n isLoadingMore: false,\n total: 0\n });\n await fetchOptions('', cf, 1, false);\n }\n if (searchTerm.length > 1 && !isInternalOptions) {\n setPagination({\n page: 1,\n hasMore: true,\n isLoadingMore: false,\n total: 0\n });\n await fetchOptions(searchTerm, cf, 1, false);\n }\n }, 700),\n //eslint-disable-next-line\n [isInternalOptions, searchInitiate, cf]\n );\n\n // Reset value function\n const resetValue = useCallback((field: any) => {\n field.onChange(props.is_multiselect ? [] : null);\n if (getSelectedData) {\n getSelectedData(null, props.name);\n }\n }, [props.is_multiselect, props.name, getSelectedData]);\n\n // Handle close\n const handleClose = useCallback(() => {\n setOpen(false);\n if (searchQuery.length > 0) {\n setIsAlreadyLoaded(false);\n }\n setSearchInitiate(false);\n setSearchQuery('');\n }, [searchQuery]);\n\n const handleModalOpen = useCallback(() => {\n setIsModalOpen(true);\n }, []);\n\n\n\n // Handle modal save\n const handleModalSave = useCallback(async (payload: any) => {\n if (!addConfig || !addConfig.api) {\n console.error('Add configuration is not properly set');\n return;\n }\n\n setIsAddLoading(true);\n try {\n const result = await addConfig.api(payload);\n setIsAddLoading(false);\n setIsModalOpen(false);\n if (!isInternalOptions) {\n setPagination({\n page: 1,\n hasMore: true,\n isLoadingMore: false,\n total: 0\n });\n setIsAlreadyLoaded(false);\n await fetchOptions('', cf, 1, false);\n }\n if (result && result.data) {\n const newValue = props.is_multiselect\n ? [...(watchedValue || []), result.data.id]\n : result.data.id;\n\n if (setValue) {\n setValue(`${props.fieldArrayName}.${props.name}`, newValue);\n }\n }\n } catch (error) {\n console.log(\"error\", error);\n setIsAddLoading(false);\n }\n\n\n }, [addConfig, isInternalOptions, fetchOptions, cf, props.is_multiselect, props.fieldArrayName, props.name, watchedValue, setValue]);\n\n // Effects\n useEffect(() => {\n if (handleOptions) {\n handleOptions(selectedValue);\n }\n }, [handleOptions, selectedValue]);\n\n useEffect(() => {\n if (open) {\n initialFetch();\n }\n }, [open, initialFetch]);\n\n useEffect(() => {\n fetchIdOptions();\n }, [fetchIdOptions]);\n\n useEffect(() => {\n if (refresh) {\n setPagination({\n page: 1,\n hasMore: true,\n isLoadingMore: false,\n total: 0\n });\n fetchOptions('', cf, 1, false);\n }\n }, [refresh, fetchOptions, cf]);\n\n useEffect(() => {\n if (open) {\n debouncedSearch(searchQuery);\n }\n return () => debouncedSearch.cancel();\n }, [searchQuery, open, debouncedSearch]);\n\n useEffect(() => {\n if (watchedValue && !open) {\n const selectedData = options?.filter((item) =>\n props.is_multiselect ?\n Array.isArray(watchedValue) && watchedValue.includes(item.id || item.value) :\n (item.id || item.value) == watchedValue\n );\n setSelectedOptions(selectedData || []);\n }\n }, [watchedValue, options, props.is_multiselect, open]);\n\n const removeUndefined = useCallback((selectOptions: any[]) => {\n return Array.isArray(selectOptions) ? selectOptions.filter(Boolean) : [];\n }, []);\n\n useEffect(() => {\n const config = dynamicSelectAdd(addType);\n setAddConfig(config);\n }, [addType])\n\n\n return (\n <Controller\n control={props.formControl}\n name={`${props.fieldArrayName}.${props.name}`}\n render={({ field, fieldState }) => (\n <>\n {props.placeholder == 'Select Currency' && setSelectedValue(field.value)}\n <Select\n {...field}\n ref={selectRef}\n open={open}\n onOpen={() => setOpen(true)}\n onClose={handleClose}\n fullWidth\n dataPosition={props.position}\n dataName={`${props.fieldArrayName}.${props.name}`}\n placeholder={props.placeholder}\n label={props.label}\n defaultValue={props.defaultValue || (props.is_multiselect ? [] : '')}\n searchValue={searchQuery}\n required={props.formType == 'builder' ? false : props.required}\n size={props.size || 'small'}\n multiple={props.is_multiselect || false}\n disabled={props.disabled}\n sx={(props.is_multiselect && field?.value?.length) ? { \"& .MuiSelect-select\": { padding: '5.5px !important' } } : {}}\n variant='outlined'\n value={\n initialLoading\n ? (props.is_multiselect ? [] : '')\n : (field.value?.id || field.value || (props.is_multiselect ? [] : ''))\n }\n className={\n props.is_multiselect && removeUndefined(field.value)?.length\n ? 'MultiSelect filter-select'\n : ''\n }\n MenuProps={{\n PaperProps: {\n onScroll: handleScroll,\n style: { maxHeight: 300 }\n }\n }}\n\n renderValue={(selected: any) => {\n if (Array.isArray(selected)) {\n return (\n <ChipOrPlaceholder\n selectedLabel={props.selectedLabel}\n data={removeUndefined(selected)}\n placeholder={(loading || props.is_loading) ? <Loading /> : `${t('common.search')} ${props.label}`}\n onDelete={props.onChipRemove}\n disabled={props.disabled}\n chipProps={{\n sx: {\n background: '#ebf9f2',\n border: 0,\n // borderRadius: '15px',\n '& .MuiTypography-body1': {\n color: '#289b64',\n fontWeight: \"500\",\n }\n }\n }}\n />\n );\n } else {\n const selectedOption = filteredOptions.find(\n (option) => (option.value?.id || option.value) == selected\n );\n return (loading || props.is_loading) ? <Loading /> : selectedOption?.label ||\n (typeof props.label == 'string' ?\n `${t('common.search')} ${props.label}` :\n props.placeholder);\n }\n }}\n searchPlaceholder={`${t('common.search')} ${props.label}`}\n handleSearch={(text: string) => {\n setSearchQuery(text);\n setSearchInitiate(true);\n }}\n error={Boolean(fieldState.error?.message)}\n helperText={fieldState.error?.message || ''}\n onBlur={field.onBlur}\n input={\n <OutlinedInput\n label=''\n endAdornment={\n <InputAdornment position='end'>\n {(loading || props.is_loading) ? (\n <CircularProgress\n size={20}\n sx={{ mr: 3, color: \"#4AC08C\" }}\n />\n ) : (\n !props.disabled &&\n (props.is_multiselect ?\n (Array.isArray(field.value) && field.value.length > 0) :\n Boolean(field.value)) && showCancelButton && (\n <IconButton\n aria-label='clear selection'\n onClick={() => resetValue(field)}\n edge='end'\n sx={isRtl ? { ml: 2.5 } : { mr: 1.5 }}\n size='small'\n >\n <Close sx={{ fontSize: '1rem' }} />\n </IconButton>\n )\n )}\n </InputAdornment>\n }\n />\n }\n >\n {generateMenuItems({\n options: filteredOptions,\n multiple: Boolean(props.is_multiselect),\n placeholder: props.placeholder,\n values: field.value,\n with_checkboxes: true,\n field: props,\n disabledIds,\n onChange: field.onChange,\n handleChange,\n hasParent,\n t,\n // onFooterClick: () => {\n // if (props?.onFooterClick) {\n // props?.onFooterClick();\n // } else {\n // handleModalOpen();\n // }\n // }\n })}\n {props?.enable_footer &&\n <Box key=\"footer\" sx={{ position: 'sticky', bottom: 0, background: '#fff', zIndex: 1 }}>\n <Divider flexItem sx={{ mt: '0.25rem !important', mb: '0.25rem !important' }} />\n <MenuItem sx={{ gap: 1 }} onClick={\n () => {\n if (props?.onFooterClick) {\n props?.onFooterClick();\n } else {\n handleModalOpen();\n }\n }\n\n }>\n <Add fontSize='small' />\n <Typography type='s4' color='theme.secondary.1000'>\n Create New {props.label}\n </Typography>\n </MenuItem>\n </Box>}\n {pagination.isLoadingMore && (\n <MenuItem disabled>\n <Box sx={{ display: 'flex', justifyContent: 'center', width: '100%' }}>\n <CircularProgress size={20} />\n </Box>\n </MenuItem>\n )}\n </Select>\n\n {/* Modal for adding new items */}\n {addConfig && addConfig.component && (\n <>\n {React.createElement(addConfig.component, {\n isOpen: isModalOpen,\n setIsOpen: setIsModalOpen,\n isLoading: isAddLoading,\n onSave: handleModalSave,\n modalProps: {\n maxWidth: 'md',\n fullWidth: true\n },\n ...props?.modalComponentProps\n })}\n </>\n )}\n\n {props.is_multiselect && Array.isArray(field.value) && (\n <SelectedItems\n data={field.value}\n options={filteredOptions}\n />\n )}\n </>\n )}\n />\n );\n});\n\nDynamicSearchSelect.propTypes = {\n name: PropTypes.string.isRequired,\n placeholder: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n size: PropTypes.string,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n value: PropTypes.any\n })\n ).isRequired,\n formControl: PropTypes.object.isRequired,\n defaultValue: PropTypes.any,\n fieldArrayName: PropTypes.string.isRequired,\n id: PropTypes.string,\n required: PropTypes.bool,\n is_multiselect: PropTypes.bool,\n position: PropTypes.number,\n formType: PropTypes.string,\n typeOfField: PropTypes.string,\n disabled: PropTypes.bool,\n onChipRemove: PropTypes.func,\n enable_footer: PropTypes.bool,\n footer_action: PropTypes.string,\n onFooterClick: PropTypes.func,\n is_loading: PropTypes.bool,\n selectedLabel: PropTypes.string,\n isInternal: PropTypes.bool,\n disabledIds: PropTypes.array,\n getSelectedData: PropTypes.func,\n attributes: PropTypes.array,\n handleChange: PropTypes.func,\n hasParent: PropTypes.bool,\n sortOrder: PropTypes.string,\n apiType: PropTypes.string,\n handleOptions: PropTypes.func,\n filterKey: PropTypes.string,\n customeFilter: PropTypes.object,\n refresh: PropTypes.bool,\n addType: PropTypes.string,\n modalComponentProps: PropTypes.object,\n showCancelButton: PropTypes.bool\n};\n\nexport default DynamicSearchSelect;"],"names":["generateMenuItems","options","multiple","placeholder","with_checkboxes","values","disabledIds","onChange","handleChange","hasParent","t","itemDisabled","id","includes","items","push","jsx","MenuItem","disabled","value","sx","opacity","height","p","m","children","Typography","type","color","selectedValues","Array","isArray","length","filter","isAllOptionsSelected","parentValue","childOptions","childValues","map","child","valueArray","every","childValue","isSomeOptionsSelected","some","forEach","option","Boolean","className","isGroup","jsxs","Box","display","gap","Checkbox","checked","indeterminate","updatedValues","Set","handleParentChange","onClick","label","opt","pl","String","SelectedItems","data","filteredDisplayTitle","selectedItem","_a","find","alignItems","mt","slice","join","Chip","variant","MoreIcon","Loading","fontStyle","DynamicSearchSelect","React","memo","props","watchedValue","useWatch","control","formControl","name","fieldArrayName","formContext","useFormContext","setValue","useTranslation","isRtl","useLanguage","selectRef","useRef","setOptions","useState","selectedValue","setSelectedValue","selectedOptions","setSelectedOptions","loading","setLoading","open","setOpen","isAlreadyLoaded","setIsAlreadyLoaded","prevFilter","setPrevFilter","initialLoading","setInitialLoading","searchQuery","setSearchQuery","searchInitiate","setSearchInitiate","addConfig","setAddConfig","isModalOpen","setIsModalOpen","isAddLoading","setIsAddLoading","pagination","setPagination","page","hasMore","isLoadingMore","total","handleOptions","isInternal","getSelectedData","attributes","filterKey","customeFilter","refresh","sortOrder","apiType","addType","showCancelButton","isInternalOptions","useMemo","cf","JSON","stringify","searchOptionsLocally","useCallback","searchTerm","lowercasedSearchTerm","toLowerCase","filteredOptions","reduce","acc","searchedOptions","item","isValidElement","searchLabel","_b","sortBySelectedValues","getUniqueOptions","Map","arrayToSort","sortBy","index","indexOf","Infinity","fetchOptions","async","flt","append","prev","fetchApi","apiKey","filters","limit","skip","search","select","order","newOptions","updateOptions","handleSelectedValue","totalCount","error","handleScroll","event","scrollTop","scrollHeight","clientHeight","currentTarget","nextPage","uniqueOptions","filterValue","is_multiselect","isInOptions","fetchIdOptions","initialFetch","debouncedSearch","debounce","resetValue","field","handleClose","handleModalOpen","handleModalSave","payload","api","result","newValue","useEffect","cancel","selectedData","removeUndefined","selectOptions","config","dynamicSelectAdd","Controller","render","fieldState","Fragment","Select","ref","onOpen","onClose","fullWidth","dataPosition","position","dataName","defaultValue","searchValue","required","formType","size","padding","_c","MenuProps","PaperProps","onScroll","style","maxHeight","renderValue","selected","ChipOrPlaceholder","selectedLabel","is_loading","onDelete","onChipRemove","chipProps","background","border","fontWeight","selectedOption","searchPlaceholder","handleSearch","text","_d","message","helperText","_e","onBlur","input","OutlinedInput","endAdornment","InputAdornment","CircularProgress","mr","IconButton","edge","ml","Close","fontSize","enable_footer","bottom","zIndex","Divider","flexItem","mb","onFooterClick","Add","justifyContent","width","component","createElement","isOpen","setIsOpen","isLoading","onSave","modalProps","maxWidth","modalComponentProps","propTypes","PropTypes","string","isRequired","arrayOf","shape","oneOfType","node","any","object","bool","number","typeOfField","func","footer_action","array"],"mappings":"mkDAuGA,MAAMA,EAAoB,EACtBC,UACAC,WACAC,cACAC,kBACAC,SAEAC,cACAC,WACAC,eACAC,YACAC,QAGA,MAAMC,EAAgBC,GAAwB,MAAAN,OAAA,EAAAA,EAAaO,SAASD,GAC9DE,EAA8B,GAE/BZ,GACDY,EAAMC;eACFC,EAAAA,IAACC,EAAAA,QAAA,CAASC,UAAQ,EAACC,MAAM,GAAqBC,GAAI,CAAEC,QAAS,eAAgBC,OAAQ,eAAgBC,EAAG,eAAgBC,EAAG,gBACvHC,wBAAAT,EAAAA,IAACU,EAAAA,WAAA,CAAWC,KAAK,KAAKC,MAAM,uBACxBH,0BAAAT,IAAC,KAAA,CAAIS,SAAAf,EAAEP,QAFiB,gBAOxC,MAAM0B,EAAkBC,MAAMC,QAAQ1B,KAAW,MAAAA,OAAA,EAAAA,EAAQ2B,QAAS,EAAK,MAAA3B,OAAA,EAAAA,EAAQ4B,OAAQd,GAAUA,GAASd,EAepG6B,EAAuB,CAACC,EAAqBC,KAC/C,MAAMC,EAAcD,EAAaE,IAAKC,GAAUA,EAAMpB,OAChDqB,EAAaV,MAAMC,QAAQF,GAAkBA,EAAiB,CAACA,GACrE,OAAOQ,EAAYI,MAAOC,GAAeF,EAAW3B,SAAS6B,KAG3DC,EAAyBP,IAC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tBzD,cAAegD,EAAAA,QAAUC,OACzBjK,WAAYgK,EAAAA,QAAUS,KACtBtS,YAAa6R,EAAAA,QAAUc,MACvB7K,gBAAiB+J,EAAAA,QAAUY,KAC3B1K,WAAY8J,EAAAA,QAAUc,MACtBzS,aAAc2R,EAAAA,QAAUY,KACxBtS,UAAW0R,EAAAA,QAAUS,KACrBnK,UAAW0J,EAAAA,QAAUC,OACrB1J,QAASyJ,EAAAA,QAAUC,OACnBlK,cAAeiK,EAAAA,QAAUY,KACzBzK,UAAW6J,EAAAA,QAAUC,OACrB7J,cAAe4J,EAAAA,QAAUQ,OACzBnK,QAAS2J,EAAAA,QAAUS,KACnBjK,QAASwJ,EAAAA,QAAUC,OACnBH,oBAAqBE,EAAAA,QAAUQ,OAC/B/J,iBAAkBuJ,EAAAA,QAAUS"}
@@ -45,6 +45,7 @@ interface IDynamicSearchSelectProps {
45
45
  customeFilter?: Record<string, any>;
46
46
  refresh?: boolean;
47
47
  addType?: string;
48
+ showCancelButton?: boolean;
48
49
  }
49
50
  declare const DynamicSearchSelect: React.FC<IDynamicSearchSelectProps>;
50
51
  export default DynamicSearchSelect;
@@ -25,11 +25,13 @@ import Divider from "../../../node_modules/@mui/material/Divider/Divider/index.e
25
25
  import { Eye } from "../../icons/eye/index.esm.js";
26
26
  import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
27
27
  import IconButton from "../../../node_modules/@mui/material/IconButton/IconButton/index.esm.js";
28
+ import { getApiConfig } from "../../../utils/api-config/index.esm.js";
28
29
  function Header(props) {
29
30
  const navigate = useNavigate();
30
31
  const { t } = useTranslation();
31
32
  const location = useLocation();
32
33
  const { logout, user } = useAuth();
34
+ const config = getApiConfig();
33
35
  const {
34
36
  languages,
35
37
  currentLanguage,
@@ -287,7 +289,7 @@ function Header(props) {
287
289
  Avatar,
288
290
  {
289
291
  size: 32,
290
- 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,
292
+ src: (user == null ? void 0 : user.profile_image) ? `${config == null ? void 0 : config.s3BucketUrl}${user == null ? void 0 : user.profile_image}` : void 0,
291
293
  alt: formatText(user == null ? void 0 : user.full_name),
292
294
  className: "avatar-class"
293
295
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../../src/components/header/header.tsx"],"sourcesContent":["// components/header/Header.tsx - Complete updated version with English fallback\nimport React, { useState, useCallback, useMemo } from \"react\";\nimport { Link, matchRoutes, useLocation, useNavigate } from \"react-router-dom\";\nimport Box from \"@mui/material/Box\";\nimport { useTranslation } from \"react-i18next\";\nimport LockIcon from \"@mui/icons-material/Lock\";\nimport IconButton from \"@mui/material/IconButton\";\nimport MenuItem from \"@mui/material/MenuItem\";\nimport Menu from \"@mui/material/Menu\";\nimport KeyboardBackspaceIcon from \"@mui/icons-material/KeyboardBackspace\";\nimport ListItemText from \"@mui/material/ListItemText\";\nimport Divider from \"@mui/material/Divider\";\nimport ListItemIcon from \"@mui/material/ListItemIcon\";\n\n\nimport { Pathname } from \"../../constants/pathnames/pathname\"; // Removed - should be passed as props\nimport Typography from \"../typography/typography\";\nimport logo, { images } from \"../../assets/images\";\nimport Select from \"../select/select\";\nimport modules from \"../../constants/modules\"; // Removed - should be passed as props\nimport Avatar from \"../avatar/avatar\";\nimport { useAuth } from \"../../hooks/useAuth\";\nimport ConfirmPopUp from \"../confirm-modal/confirm-modal\";\nimport formatText from \"../../utils/format-text\";\nimport \"./header.scss\";\nimport { useLanguage } from \"../../hooks/useLangauge\";\nimport { Eye } from \"../icons\";\nimport ResetPasswordModal from \"../reset-password-modal/reset-password-modal\";\nimport NotificationMenu from \"./components/notification-menu/notification-menu\";\n\ninterface ILanguage {\n label: string;\n code: string;\n direction: string;\n}\n\ninterface IModule {\n label: any;\n link: string;\n sidebar: string;\n icon: string;\n permission: string;\n bg: string;\n connectedRoutes: string[];\n translationModule: string;\n}\n\n\nexport function Header(props: any): React.ReactElement {\n const navigate = useNavigate();\n const { t } = useTranslation();\n const location = useLocation();\n const { logout, user } = useAuth();\n \n const { \n languages, \n currentLanguage, \n changeLanguage, \n isLoading: languagesLoading,\n error: languageContextError,\n isFallbackActive,\n fetchLanguages,\n isRtl\n } = useLanguage();\n \n const { pathname } = location;\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n const [logoutConfirmation, setLogoutConfirmation] = useState<boolean>(false);\n const [localLanguageError, setLocalLanguageError] = useState<string | null>(null);\n const [showModal, setShowModal] = useState(false);\n\n const u_data = localStorage.getItem(\"_u_data\") || undefined;\n const userData = u_data ? JSON.parse(u_data) : \"\";\n const isMenuOpen = Boolean(anchorEl);\n\n const handleLogoutConfirmation = () =>\n setLogoutConfirmation(!logoutConfirmation);\n\n const checkMatchedRoutes = useCallback(\n (paths: string[] | string) => {\n const shouldMatch: { path: string }[] = Array.isArray(paths)\n ? paths.map((path: string) => ({ path }))\n : [{ path: paths }];\n\n return Boolean(matchRoutes(shouldMatch, location));\n },\n [location],\n );\n\n const erp_modules = useMemo<IModule[]>(() => modules(t), [t]);\n\n const selectedModule = useMemo<IModule | null>(() => {\n return (\n erp_modules.find(\n (module: IModule) =>\n module?.link?.toLowerCase() === pathname.toLowerCase() ||\n checkMatchedRoutes(module.connectedRoutes),\n ) || null\n );\n }, [erp_modules, pathname, checkMatchedRoutes]);\n\n const handleChangePasswordView = () => {\n setShowModal(true);\n }\n\n // Enhanced language change handler with validation and error handling\n const onChangeLang = (e: React.ChangeEvent<HTMLSelectElement>) => {\n const lang_code = e.target.value;\n \n // Clear any previous errors\n setLocalLanguageError(null);\n \n // Validate the language exists before changing\n if (!languages || languages.length === 0) {\n const errorMsg = t('header.language_not_available') || 'Languages not available';\n setLocalLanguageError(errorMsg);\n return;\n }\n \n const languageExists = languages.some((lang: ILanguage) => lang.code === lang_code);\n \n if (languageExists) {\n try {\n changeLanguage(lang_code);\n } catch (error) {\n const errorMsg = error instanceof Error ? error.message : 'Failed to change language';\n setLocalLanguageError(errorMsg);\n }\n } else {\n const errorMsg = t('header.language_not_found', { language: lang_code }) || \n `Selected language \"${lang_code}\" is not available`;\n setLocalLanguageError(errorMsg);\n }\n };\n\n // Retry language loading\n const handleRetryLanguages = async () => {\n setLocalLanguageError(null);\n try {\n await fetchLanguages();\n } catch (error) {\n const errorMsg = 'Failed to reload languages';\n setLocalLanguageError(errorMsg);\n }\n };\n\n\n const handleProfileMenuOpen = (event: React.MouseEvent<HTMLElement>) =>\n setAnchorEl(event.currentTarget);\n\n const handleMenuClose = () => {\n setAnchorEl(null);\n };\n\n const handleChange = (event: any) => {\n const selectedLink = event.target.value;\n setTimeout(() => {\n navigate(selectedLink);\n }, 300);\n };\n\n const handleBackButton = () => {\n window.history.back();\n };\n\n // Get current language display value with fallback indication\n const getCurrentLanguageDisplay = (): string => {\n if (!currentLanguage) return t('header.select_language') || 'Select Language';\n \n // Show fallback indicator for better UX\n if (isFallbackActive || languageContextError) {\n return `${currentLanguage.label}`;\n }\n \n return currentLanguage.label;\n };\n\n // Create English fallback for consistent display\n const createEnglishFallback = (): ILanguage => ({\n code: 'en',\n label: 'English',\n direction: 'ltr'\n });\n\n // Get languages for dropdown - ensure English is always available\n const getLanguagesForDropdown = (): ILanguage[] => {\n if (!languages || languages.length === 0) {\n // If no languages available, show only English\n return [createEnglishFallback()];\n }\n \n // Ensure English is in the list\n const hasEnglish = languages.some(lang => lang.code === 'en');\n if (!hasEnglish) {\n return [createEnglishFallback(), ...languages];\n }\n \n return languages;\n };\n\n // Render language selector based on different states\n const renderLanguageSelector = () => {\n const availableLanguages = getLanguagesForDropdown();\n const displayValue = currentLanguage?.code || 'en'; // Default to English\n\n // Loading state\n if (languagesLoading) {\n return (\n <Box className=\"language-loading\">\n <Typography variant=\"body2\" color=\"text.secondary\">\n {'Loading...'}\n </Typography>\n </Box>\n );\n }\n\n // Always show dropdown with at least English available\n return (\n <Select\n onChange={onChangeLang}\n size=\"small\"\n value={displayValue}\n renderValue={() => getCurrentLanguageDisplay()}\n error={!!localLanguageError}\n className={isFallbackActive || languageContextError ? 'language-fallback-active' : ''}\n \n >\n {availableLanguages.map(({ code, label }: ILanguage) => (\n <MenuItem key={code} value={code}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.1000\"\n \n >\n {label}\n {/* Show fallback indicator in dropdown */}\n {/* {(isFallbackActive || languageContextError) && code === 'en' && \n ` (${t('header.fallback') || 'Fallback'})`\n } */}\n </Typography>\n </MenuItem>\n ))}\n \n {/* Show retry option if there's an error */}\n {languageContextError && (\n <MenuItem onClick={handleRetryLanguages} style={{ fontStyle: 'italic' }}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.500\"\n >\n 🔄 {t('header.retry_languages') || 'Retry loading languages'}\n </Typography>\n </MenuItem>\n )}\n </Select>\n );\n };\n\n const menuId = \"primary-search-account-menu\";\n const renderMenu = (\n <Menu\n className=\"main-profile-menu\"\n anchorEl={anchorEl}\n id={menuId}\n keepMounted\n open={isMenuOpen}\n onClose={handleMenuClose}\n >\n <MenuItem className=\"user-assigned\">\n <span>{t('common.assigned_roles') || 'Assigned roles'}</span>\n </MenuItem>\n <MenuItem className=\"user-data-wrap\" value={userData.role_id}>\n <ListItemIcon>\n <Avatar size={27} alt={userData.role_name} />\n </ListItemIcon>\n <ListItemText className=\"size15\">\n {userData.role_name}\n </ListItemText>\n <Typography variant=\"body2\" color=\"text.secondary\">\n <img src={images.tickicon} alt=\"Active\" />\n </Typography>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"user-assigned\"\n onClick={() => {\n handleChangePasswordView();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <Eye fontSize=\"medium\" width={20} height={20} htmlColor=\"#292D32\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.change_password\")}</ListItemText>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"menu-item-color\"\n onClick={() => {\n handleLogoutConfirmation();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <img src={images.logout} alt=\"logout\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.logout\")}</ListItemText>\n </MenuItem>\n </Menu>\n );\n\n return (\n <>\n <Box className=\"main-box\">\n {!props.isDropdownShow && (\n <Link to={user ? Pathname.DASHBOARD : Pathname.LOGIN}>\n <img src={images.logo} alt=\"logo\" />\n </Link>\n )}\n <Box className=\"second-box\">\n {props.isDropdownShow && (\n <>\n <IconButton onClick={handleBackButton}>\n <KeyboardBackspaceIcon\n className={isRtl?\"arrow-pointer_rtl\":\"arrow-pointer\"}\n />\n </IconButton>\n <Box width={250}>\n <Select\n fullWidth\n placeholder=\"Placeholder\"\n size={\"small\"}\n value={selectedModule?.link || \"\"}\n onChange={handleChange}\n className=\"select-box\"\n variant=\"outlined\"\n renderValue={(value: string) => (\n <>\n {selectedModule ? (\n <Box className=\"selected-menu-box\">\n <img\n src={selectedModule.icon}\n alt={selectedModule.label}\n />\n {selectedModule.label}\n </Box>\n ) : (\n value\n )}\n </>\n )}\n >\n {erp_modules.map((module: any, index: number) => (\n <MenuItem\n className=\"select-box-menu-item\"\n value={module.link}\n key={index}\n >\n <img src={module.icon} alt={module.label} />\n {module.label}\n </MenuItem>\n ))}\n </Select>\n </Box>\n </>\n )}\n </Box>\n <Box className=\"header-right-wrap\">\n {/* Language Selector with Enhanced Fallback Support */}\n <Box className=\"language-selector-wrapper\">\n {renderLanguageSelector()}\n </Box>\n\n {/* <IconButton\n size=\"small\"\n aria-label=\"notification bell\"\n className=\"p-0\"\n >\n <img src={logo.notification} alt=\"notification icon\" />\n </IconButton> */}\n <NotificationMenu/>\n <IconButton\n size=\"small\"\n aria-label=\"help\"\n className=\"p-0\"\n >\n <img src={logo.question} alt=\"question icon\" />\n </IconButton>\n <img src={logo.vdivider} alt=\"divider icon\" />\n {localStorage.getItem(\"_tid\") ? (\n <Box className=\"user-profile-box\" onClick={handleProfileMenuOpen}>\n <Avatar\n size={32}\n src={user?.profile_image ? `${import.meta.env.VITE_S3_BUCKET_URL}${user?.profile_image}` : undefined}\n alt={formatText(user?.full_name)}\n className=\"avatar-class\"\n />\n <div>\n <Typography className=\"profile-name\">\n {user?.full_name}\n </Typography>\n <Typography className=\"user-auth\">\n {user?.role_name}\n </Typography>\n </div>\n </Box>\n ) : (\n <IconButton\n size=\"large\"\n edge=\"end\"\n aria-label=\"account of current user\"\n aria-controls={menuId}\n aria-haspopup=\"true\"\n component={Link}\n to={Pathname.LOGIN}\n color=\"inherit\"\n >\n <LockIcon className=\"icon-btn\" />\n </IconButton>\n )}\n </Box>\n {renderMenu}\n </Box>\n\n {/* Logout Confirmation Dialog */}\n <ConfirmPopUp\n open={logoutConfirmation}\n title={t(\"common.logout\")}\n description={t('common.logout_confirmation') || \"Are you sure, you want to logout?\"}\n onConfirm={() => logout()}\n onClose={handleLogoutConfirmation}\n fullWidth\n maxWidth=\"xs\"\n buttonTexts={{\n confirm: t(\"common.logout\"),\n cancel: t(\"common.cancel\"),\n }}\n />\n\n <ResetPasswordModal showModal={showModal} setShowModal = {setShowModal} />\n \n </>\n );\n}\n\nexport default Header;"],"names":["React","KeyboardBackspaceIcon","logo","LockIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDO,SAAS,OAAO,OAAgC;AACrD,QAAM,WAAW,YAAA;AACjB,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,WAAW,YAAA;AACjB,QAAM,EAAE,QAAQ,KAAA,IAAS,QAAA;AAEzB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE,YAAA;AAEJ,QAAM,EAAE,aAAa;AACrB,QAAM,CAAC,UAAU,WAAW,IAAIA,eAAM,SAA6B,IAAI;AACvE,QAAM,CAAC,oBAAoB,qBAAqB,IAAI,SAAkB,KAAK;AAC3E,QAAM,CAAC,oBAAoB,qBAAq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AAAA,QACT,WAAS;AAAA,QACT,UAAS;AAAA,QACT,aAAa;AAAA,UACX,SAAS,EAAE,eAAe;AAAA,UAC1B,QAAQ,EAAE,eAAe;AAAA,QAAA;AAAA,MAC3B;AAAA,IAAA;AAAA,IAGF,oBAAC,oBAAA,EAAmB,WAAsB,cAA8B;AAAA,EAAA,GAE1E;AAEJ;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../src/components/header/header.tsx"],"sourcesContent":["// components/header/Header.tsx - Complete updated version with English fallback\nimport React, { useState, useCallback, useMemo } from \"react\";\nimport { Link, matchRoutes, useLocation, useNavigate } from \"react-router-dom\";\nimport Box from \"@mui/material/Box\";\nimport { useTranslation } from \"react-i18next\";\nimport LockIcon from \"@mui/icons-material/Lock\";\nimport IconButton from \"@mui/material/IconButton\";\nimport MenuItem from \"@mui/material/MenuItem\";\nimport Menu from \"@mui/material/Menu\";\nimport KeyboardBackspaceIcon from \"@mui/icons-material/KeyboardBackspace\";\nimport ListItemText from \"@mui/material/ListItemText\";\nimport Divider from \"@mui/material/Divider\";\nimport ListItemIcon from \"@mui/material/ListItemIcon\";\n\n\nimport { Pathname } from \"../../constants/pathnames/pathname\"; // Removed - should be passed as props\nimport Typography from \"../typography/typography\";\nimport logo, { images } from \"../../assets/images\";\nimport Select from \"../select/select\";\nimport modules from \"../../constants/modules\"; // Removed - should be passed as props\nimport Avatar from \"../avatar/avatar\";\nimport { useAuth } from \"../../hooks/useAuth\";\nimport ConfirmPopUp from \"../confirm-modal/confirm-modal\";\nimport formatText from \"../../utils/format-text\";\nimport \"./header.scss\";\nimport { useLanguage } from \"../../hooks/useLangauge\";\nimport { Eye } from \"../icons\";\nimport ResetPasswordModal from \"../reset-password-modal/reset-password-modal\";\nimport NotificationMenu from \"./components/notification-menu/notification-menu\";\nimport { getApiConfig } from \"@/utils\";\n\ninterface ILanguage {\n label: string;\n code: string;\n direction: string;\n}\n\ninterface IModule {\n label: any;\n link: string;\n sidebar: string;\n icon: string;\n permission: string;\n bg: string;\n connectedRoutes: string[];\n translationModule: string;\n}\n\n\nexport function Header(props: any): React.ReactElement {\n const navigate = useNavigate();\n const { t } = useTranslation();\n const location = useLocation();\n const { logout, user } = useAuth();\n const config = getApiConfig();\n\n const {\n languages,\n currentLanguage,\n changeLanguage,\n isLoading: languagesLoading,\n error: languageContextError,\n isFallbackActive,\n fetchLanguages,\n isRtl\n } = useLanguage();\n\n const { pathname } = location;\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n const [logoutConfirmation, setLogoutConfirmation] = useState<boolean>(false);\n const [localLanguageError, setLocalLanguageError] = useState<string | null>(null);\n const [showModal, setShowModal] = useState(false);\n\n const u_data = localStorage.getItem(\"_u_data\") || undefined;\n const userData = u_data ? JSON.parse(u_data) : \"\";\n const isMenuOpen = Boolean(anchorEl);\n\n const handleLogoutConfirmation = () =>\n setLogoutConfirmation(!logoutConfirmation);\n\n const checkMatchedRoutes = useCallback(\n (paths: string[] | string) => {\n const shouldMatch: { path: string }[] = Array.isArray(paths)\n ? paths.map((path: string) => ({ path }))\n : [{ path: paths }];\n\n return Boolean(matchRoutes(shouldMatch, location));\n },\n [location],\n );\n\n const erp_modules = useMemo<IModule[]>(() => modules(t), [t]);\n\n const selectedModule = useMemo<IModule | null>(() => {\n return (\n erp_modules.find(\n (module: IModule) =>\n module?.link?.toLowerCase() === pathname.toLowerCase() ||\n checkMatchedRoutes(module.connectedRoutes),\n ) || null\n );\n }, [erp_modules, pathname, checkMatchedRoutes]);\n\n const handleChangePasswordView = () => {\n setShowModal(true);\n }\n\n // Enhanced language change handler with validation and error handling\n const onChangeLang = (e: React.ChangeEvent<HTMLSelectElement>) => {\n const lang_code = e.target.value;\n\n // Clear any previous errors\n setLocalLanguageError(null);\n\n // Validate the language exists before changing\n if (!languages || languages.length === 0) {\n const errorMsg = t('header.language_not_available') || 'Languages not available';\n setLocalLanguageError(errorMsg);\n return;\n }\n\n const languageExists = languages.some((lang: ILanguage) => lang.code === lang_code);\n\n if (languageExists) {\n try {\n changeLanguage(lang_code);\n } catch (error) {\n const errorMsg = error instanceof Error ? error.message : 'Failed to change language';\n setLocalLanguageError(errorMsg);\n }\n } else {\n const errorMsg = t('header.language_not_found', { language: lang_code }) ||\n `Selected language \"${lang_code}\" is not available`;\n setLocalLanguageError(errorMsg);\n }\n };\n\n // Retry language loading\n const handleRetryLanguages = async () => {\n setLocalLanguageError(null);\n try {\n await fetchLanguages();\n } catch (error) {\n const errorMsg = 'Failed to reload languages';\n setLocalLanguageError(errorMsg);\n }\n };\n\n\n const handleProfileMenuOpen = (event: React.MouseEvent<HTMLElement>) =>\n setAnchorEl(event.currentTarget);\n\n const handleMenuClose = () => {\n setAnchorEl(null);\n };\n\n const handleChange = (event: any) => {\n const selectedLink = event.target.value;\n setTimeout(() => {\n navigate(selectedLink);\n }, 300);\n };\n\n const handleBackButton = () => {\n window.history.back();\n };\n\n // Get current language display value with fallback indication\n const getCurrentLanguageDisplay = (): string => {\n if (!currentLanguage) return t('header.select_language') || 'Select Language';\n\n // Show fallback indicator for better UX\n if (isFallbackActive || languageContextError) {\n return `${currentLanguage.label}`;\n }\n\n return currentLanguage.label;\n };\n\n // Create English fallback for consistent display\n const createEnglishFallback = (): ILanguage => ({\n code: 'en',\n label: 'English',\n direction: 'ltr'\n });\n\n // Get languages for dropdown - ensure English is always available\n const getLanguagesForDropdown = (): ILanguage[] => {\n if (!languages || languages.length === 0) {\n // If no languages available, show only English\n return [createEnglishFallback()];\n }\n\n // Ensure English is in the list\n const hasEnglish = languages.some(lang => lang.code === 'en');\n if (!hasEnglish) {\n return [createEnglishFallback(), ...languages];\n }\n\n return languages;\n };\n\n // Render language selector based on different states\n const renderLanguageSelector = () => {\n const availableLanguages = getLanguagesForDropdown();\n const displayValue = currentLanguage?.code || 'en'; // Default to English\n\n // Loading state\n if (languagesLoading) {\n return (\n <Box className=\"language-loading\">\n <Typography variant=\"body2\" color=\"text.secondary\">\n {'Loading...'}\n </Typography>\n </Box>\n );\n }\n\n // Always show dropdown with at least English available\n return (\n <Select\n onChange={onChangeLang}\n size=\"small\"\n value={displayValue}\n renderValue={() => getCurrentLanguageDisplay()}\n error={!!localLanguageError}\n className={isFallbackActive || languageContextError ? 'language-fallback-active' : ''}\n\n >\n {availableLanguages.map(({ code, label }: ILanguage) => (\n <MenuItem key={code} value={code}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.1000\"\n\n >\n {label}\n {/* Show fallback indicator in dropdown */}\n {/* {(isFallbackActive || languageContextError) && code === 'en' && \n ` (${t('header.fallback') || 'Fallback'})`\n } */}\n </Typography>\n </MenuItem>\n ))}\n\n {/* Show retry option if there's an error */}\n {languageContextError && (\n <MenuItem onClick={handleRetryLanguages} style={{ fontStyle: 'italic' }}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.500\"\n >\n 🔄 {t('header.retry_languages') || 'Retry loading languages'}\n </Typography>\n </MenuItem>\n )}\n </Select>\n );\n };\n\n const menuId = \"primary-search-account-menu\";\n const renderMenu = (\n <Menu\n className=\"main-profile-menu\"\n anchorEl={anchorEl}\n id={menuId}\n keepMounted\n open={isMenuOpen}\n onClose={handleMenuClose}\n >\n <MenuItem className=\"user-assigned\">\n <span>{t('common.assigned_roles') || 'Assigned roles'}</span>\n </MenuItem>\n <MenuItem className=\"user-data-wrap\" value={userData.role_id}>\n <ListItemIcon>\n <Avatar size={27} alt={userData.role_name} />\n </ListItemIcon>\n <ListItemText className=\"size15\">\n {userData.role_name}\n </ListItemText>\n <Typography variant=\"body2\" color=\"text.secondary\">\n <img src={images.tickicon} alt=\"Active\" />\n </Typography>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"user-assigned\"\n onClick={() => {\n handleChangePasswordView();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <Eye fontSize=\"medium\" width={20} height={20} htmlColor=\"#292D32\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.change_password\")}</ListItemText>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"menu-item-color\"\n onClick={() => {\n handleLogoutConfirmation();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <img src={images.logout} alt=\"logout\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.logout\")}</ListItemText>\n </MenuItem>\n </Menu>\n );\n\n return (\n <>\n <Box className=\"main-box\">\n {!props.isDropdownShow && (\n <Link to={user ? Pathname.DASHBOARD : Pathname.LOGIN}>\n <img src={images.logo} alt=\"logo\" />\n </Link>\n )}\n <Box className=\"second-box\">\n {props.isDropdownShow && (\n <>\n <IconButton onClick={handleBackButton}>\n <KeyboardBackspaceIcon\n className={isRtl ? \"arrow-pointer_rtl\" : \"arrow-pointer\"}\n />\n </IconButton>\n <Box width={250}>\n <Select\n fullWidth\n placeholder=\"Placeholder\"\n size={\"small\"}\n value={selectedModule?.link || \"\"}\n onChange={handleChange}\n className=\"select-box\"\n variant=\"outlined\"\n renderValue={(value: string) => (\n <>\n {selectedModule ? (\n <Box className=\"selected-menu-box\">\n <img\n src={selectedModule.icon}\n alt={selectedModule.label}\n />\n {selectedModule.label}\n </Box>\n ) : (\n value\n )}\n </>\n )}\n >\n {erp_modules.map((module: any, index: number) => (\n <MenuItem\n className=\"select-box-menu-item\"\n value={module.link}\n key={index}\n >\n <img src={module.icon} alt={module.label} />\n {module.label}\n </MenuItem>\n ))}\n </Select>\n </Box>\n </>\n )}\n </Box>\n <Box className=\"header-right-wrap\">\n {/* Language Selector with Enhanced Fallback Support */}\n <Box className=\"language-selector-wrapper\">\n {renderLanguageSelector()}\n </Box>\n\n {/* <IconButton\n size=\"small\"\n aria-label=\"notification bell\"\n className=\"p-0\"\n >\n <img src={logo.notification} alt=\"notification icon\" />\n </IconButton> */}\n <NotificationMenu />\n <IconButton\n size=\"small\"\n aria-label=\"help\"\n className=\"p-0\"\n >\n <img src={logo.question} alt=\"question icon\" />\n </IconButton>\n <img src={logo.vdivider} alt=\"divider icon\" />\n {localStorage.getItem(\"_tid\") ? (\n <Box className=\"user-profile-box\" onClick={handleProfileMenuOpen}>\n <Avatar\n size={32}\n src={user?.profile_image ? `${config?.s3BucketUrl}${user?.profile_image}` : undefined}\n alt={formatText(user?.full_name)}\n className=\"avatar-class\"\n />\n <div>\n <Typography className=\"profile-name\">\n {user?.full_name}\n </Typography>\n <Typography className=\"user-auth\">\n {user?.role_name}\n </Typography>\n </div>\n </Box>\n ) : (\n <IconButton\n size=\"large\"\n edge=\"end\"\n aria-label=\"account of current user\"\n aria-controls={menuId}\n aria-haspopup=\"true\"\n component={Link}\n to={Pathname.LOGIN}\n color=\"inherit\"\n >\n <LockIcon className=\"icon-btn\" />\n </IconButton>\n )}\n </Box>\n {renderMenu}\n </Box>\n\n {/* Logout Confirmation Dialog */}\n <ConfirmPopUp\n open={logoutConfirmation}\n title={t(\"common.logout\")}\n description={t('common.logout_confirmation') || \"Are you sure, you want to logout?\"}\n onConfirm={() => logout()}\n onClose={handleLogoutConfirmation}\n fullWidth\n maxWidth=\"xs\"\n buttonTexts={{\n confirm: t(\"common.logout\"),\n cancel: t(\"common.cancel\"),\n }}\n />\n\n <ResetPasswordModal showModal={showModal} setShowModal={setShowModal} />\n\n </>\n );\n}\n\nexport default Header;"],"names":["React","KeyboardBackspaceIcon","logo","LockIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDO,SAAS,OAAO,OAAgC;AACrD,QAAM,WAAW,YAAA;AACjB,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,WAAW,YAAA;AACjB,QAAM,EAAE,QAAQ,KAAA,IAAS,QAAA;AACzB,QAAM,SAAS,aAAA;AAEf,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE,YAAA;AAEJ,QAAM,EAAE,aAAa;AACrB,QAAM,CAAC,UAAU,WAAW,IAAIA,eAAM,SAA6B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AAAA,MAAA;AAAA,QACC,MAAM;AAAA,QACN,OAAO,EAAE,eAAe;AAAA,QACxB,aAAa,EAAE,4BAA4B,KAAK;AAAA,QAChD,WAAW,MAAM,OAAA;AAAA,QACjB,SAAS;AAAA,QACT,WAAS;AAAA,QACT,UAAS;AAAA,QACT,aAAa;AAAA,UACX,SAAS,EAAE,eAAe;AAAA,UAC1B,QAAQ,EAAE,eAAe;AAAA,QAAA;AAAA,MAC3B;AAAA,IAAA;AAAA,IAGF,oBAAC,oBAAA,EAAmB,WAAsB,aAAA,CAA4B;AAAA,EAAA,GAExE;AAEJ;"}
@@ -1,33 +1,33 @@
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 */o=,/* empty css */i=,/* 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:T,user:A}=m.useAuth(),{languages:M,currentLanguage:z,changeLanguage:B,isLoading:D,error:P,isFallbackActive:F,fetchLanguages:R,isRtl:E}=x.useLanguage(),{pathname:O}=I,[W,$]=k.default.useState(null),[G,H]=a.useState(!1),[V,J]=a.useState(null),[K,U]=a.useState(!1),Q=localStorage.getItem("_u_data")||void 0,X=Q?JSON.parse(Q):"",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())===O.toLowerCase()||ee(e.connectedRoutes)})||null,[ae,O,ee]),se=e=>{const a=e.target.value;if(J(null),!M||0===M.length){const e=C("header.language_not_available")||"Languages not available";return void J(e)}if(M.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 R()}catch(e){J("Failed to reload languages")}},re="primary-search-account-menu",oe=/* @__PURE__ */e.jsxs(p.default,{className:"main-profile-menu",anchorEl:W,id:re,keepMounted:!0,open:Y,onClose:()=>{$(null)},children:[
2
- /* @__PURE__ */e.jsx(v.default,{className:"user-assigned",children:/* @__PURE__ */e.jsx("span",{children:C("common.assigned_roles")||"Assigned roles"})}),
3
- /* @__PURE__ */e.jsxs(v.default,{className:"user-data-wrap",value:X.role_id,children:[
4
- /* @__PURE__ */e.jsx(y.default,{children:/* @__PURE__ */e.jsx(c.Avatar,{size:27,alt:X.role_name})}),
5
- /* @__PURE__ */e.jsx(_.default,{className:"size15",children:X.role_name}),
6
- /* @__PURE__ */e.jsx(i.Typography,{variant:"body2",color:"text.secondary",children:/* @__PURE__ */e.jsx("img",{src:t.images.tickicon,alt:"Active"})})]}),
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 */i=,/* empty css */r=,/* 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 */k=;/* empty css */function L(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var S=/* @__PURE__ */L(a);function C(L){const C=l.useNavigate(),{t:I}=s.useTranslation(),A=l.useLocation(),{logout:T,user:M}=m.useAuth(),z=k.getApiConfig(),{languages:B,currentLanguage:D,changeLanguage:P,isLoading:F,error:R,isFallbackActive:E,fetchLanguages:O,isRtl:$}=x.useLanguage(),{pathname:W}=A,[G,H]=S.default.useState(null),[U,V]=a.useState(!1),[J,K]=a.useState(null),[Q,X]=a.useState(!1),Y=localStorage.getItem("_u_data")||void 0,Z=Y?JSON.parse(Y):"",ee=Boolean(G),ae=()=>V(!U),le=a.useCallback(e=>{const a=Array.isArray(e)?e.map(e=>({path:e})):[{path:e}];return Boolean(l.matchRoutes(a,A))},[A]),se=a.useMemo(()=>d.default(I),[I]),ne=a.useMemo(()=>se.find(e=>{var a;return(null==(a=null==e?void 0:e.link)?void 0:a.toLowerCase())===W.toLowerCase()||le(e.connectedRoutes)})||null,[se,W,le]),ie=e=>{const a=e.target.value;if(K(null),!B||0===B.length){const e=I("header.language_not_available")||"Languages not available";return void K(e)}if(B.some(e=>e.code===a))try{P(a)}catch(l){const e=l instanceof Error?l.message:"Failed to change language";K(e)}else{const e=I("header.language_not_found",{language:a})||`Selected language "${a}" is not available`;K(e)}},re=async()=>{K(null);try{await O()}catch(e){K("Failed to reload languages")}},oe="primary-search-account-menu",te=/* @__PURE__ */e.jsxs(p.default,{className:"main-profile-menu",anchorEl:G,id:oe,keepMounted:!0,open:ee,onClose:()=>{H(null)},children:[
2
+ /* @__PURE__ */e.jsx(v.default,{className:"user-assigned",children:/* @__PURE__ */e.jsx("span",{children:I("common.assigned_roles")||"Assigned roles"})}),
3
+ /* @__PURE__ */e.jsxs(v.default,{className:"user-data-wrap",value:Z.role_id,children:[
4
+ /* @__PURE__ */e.jsx(y.default,{children:/* @__PURE__ */e.jsx(c.Avatar,{size:27,alt:Z.role_name})}),
5
+ /* @__PURE__ */e.jsx(_.default,{className:"size15",children:Z.role_name}),
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
- /* @__PURE__ */e.jsxs(v.default,{className:"user-assigned",onClick:()=>{U(!0),$(null)},children:[
8
+ /* @__PURE__ */e.jsxs(v.default,{className:"user-assigned",onClick:()=>{X(!0),H(null)},children:[
9
9
  /* @__PURE__ */e.jsx(y.default,{children:/* @__PURE__ */e.jsx(q.Eye,{fontSize:"medium",width:20,height:20,htmlColor:"#292D32"})}),
10
- /* @__PURE__ */e.jsx(_.default,{className:"size15",children:C("common.change_password")})]}),
10
+ /* @__PURE__ */e.jsx(_.default,{className:"size15",children:I("common.change_password")})]}),
11
11
  /* @__PURE__ */e.jsx(b.default,{}),
12
- /* @__PURE__ */e.jsxs(v.default,{className:"menu-item-color",onClick:()=>{Z(),$(null)},children:[
12
+ /* @__PURE__ */e.jsxs(v.default,{className:"menu-item-color",onClick:()=>{ae(),H(null)},children:[
13
13
  /* @__PURE__ */e.jsx(y.default,{children:/* @__PURE__ */e.jsx("img",{src:t.images.logout,alt:"logout"})}),
14
- /* @__PURE__ */e.jsx(_.default,{className:"size15",children:C("common.logout")})]})]});/* @__PURE__ */
14
+ /* @__PURE__ */e.jsx(_.default,{className:"size15",children:I("common.logout")})]})]});/* @__PURE__ */
15
15
  return e.jsxs(e.Fragment,{children:[
16
- /* @__PURE__ */e.jsxs(N.default,{className:"main-box",children:[!L.isDropdownShow&&/* @__PURE__ */e.jsx(l.Link,{to:A?o.Pathname.DASHBOARD:o.Pathname.LOGIN,children:/* @__PURE__ */e.jsx("img",{src:t.images.logo,alt:"logo"})}),
16
+ /* @__PURE__ */e.jsxs(N.default,{className:"main-box",children:[!L.isDropdownShow&&/* @__PURE__ */e.jsx(l.Link,{to:M?r.Pathname.DASHBOARD:r.Pathname.LOGIN,children:/* @__PURE__ */e.jsx("img",{src:t.images.logo,alt:"logo"})}),
17
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:E?"arrow-pointer_rtl":"arrow-pointer"})}),
19
- /* @__PURE__ */e.jsx(N.default,{width:250,children:/* @__PURE__ */e.jsx(u.Select,{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
- /* @__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:[
18
+ /* @__PURE__ */e.jsx(w.default,{onClick:()=>{window.history.back()},children:/* @__PURE__ */e.jsx(i.default,{className:$?"arrow-pointer_rtl":"arrow-pointer"})}),
19
+ /* @__PURE__ */e.jsx(N.default,{width:250,children:/* @__PURE__ */e.jsx(u.Select,{fullWidth:!0,placeholder:"Placeholder",size:"small",value:(null==ne?void 0:ne.link)||"",onChange:e=>{const a=e.target.value;setTimeout(()=>{C(a)},300)},className:"select-box",variant:"outlined",renderValue:a=>/* @__PURE__ */e.jsx(e.Fragment,{children:ne?/* @__PURE__ */e.jsxs(N.default,{className:"selected-menu-box",children:[
20
+ /* @__PURE__ */e.jsx("img",{src:ne.icon,alt:ne.label}),ne.label]}):a}),children:se.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
22
  /* @__PURE__ */e.jsxs(N.default,{className:"header-right-wrap",children:[
23
- /* @__PURE__ */e.jsx(N.default,{className:"language-selector-wrapper",children:(()=>{const a=M&&0!==M.length?M.some(e=>"en"===e.code)?M:[{code:"en",label:"English",direction:"ltr"},...M]:[{code:"en",label:"English",direction:"ltr"}],l=(null==z?void 0:z.code)||"en";return D?/* @__PURE__ */e.jsx(N.default,{className:"language-loading",children:/* @__PURE__ */e.jsx(i.Typography,{variant:"body2",color:"text.secondary",children:"Loading..."})}):/* @__PURE__ */e.jsxs(u.Select,{onChange:se,size:"small",value:l,renderValue:()=>z?F||P?`${z.label}`:z.label:C("header.select_language")||"Select Language",error:!!V,className:F||P?"language-fallback-active":"",children:[a.map(({code:a,label:l})=>/* @__PURE__ */e.jsx(v.default,{value:a,children:/* @__PURE__ */e.jsx(i.Typography,{type:"s4",weight:"medium",color:"theme.secondary.1000",children:l})},a)),P&&/* @__PURE__ */e.jsx(v.default,{onClick:ne,style:{fontStyle:"italic"},children:/* @__PURE__ */e.jsxs(i.Typography,{type:"s4",weight:"medium",color:"theme.secondary.500",children:["🔄 ",C("header.retry_languages")||"Retry loading languages"]})})]})})()}),
23
+ /* @__PURE__ */e.jsx(N.default,{className:"language-selector-wrapper",children:(()=>{const a=B&&0!==B.length?B.some(e=>"en"===e.code)?B:[{code:"en",label:"English",direction:"ltr"},...B]:[{code:"en",label:"English",direction:"ltr"}],l=(null==D?void 0:D.code)||"en";return F?/* @__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.Select,{onChange:ie,size:"small",value:l,renderValue:()=>D?E||R?`${D.label}`:D.label:I("header.select_language")||"Select Language",error:!!J,className:E||R?"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)),R&&/* @__PURE__ */e.jsx(v.default,{onClick:re,style:{fontStyle:"italic"},children:/* @__PURE__ */e.jsxs(o.Typography,{type:"s4",weight:"medium",color:"theme.secondary.500",children:["🔄 ",I("header.retry_languages")||"Retry loading languages"]})})]})})()}),
24
24
  /* @__PURE__ */e.jsx(f.NotificationMenu,{}),
25
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
- /* @__PURE__ */e.jsx(c.Avatar,{size:32,src:(null==A?void 0:A.profile_image)?`https://erpforce-dev.s3.eu-west-1.amazonaws.com/${null==A?void 0:A.profile_image}`:void 0,alt:h.formatText(null==A?void 0:A.full_name),className:"avatar-class"}),
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=>H(e.currentTarget),children:[
27
+ /* @__PURE__ */e.jsx(c.Avatar,{size:32,src:(null==M?void 0:M.profile_image)?`${null==z?void 0:z.s3BucketUrl}${null==M?void 0:M.profile_image}`:void 0,alt:h.formatText(null==M?void 0:M.full_name),className:"avatar-class"}),
28
28
  /* @__PURE__ */e.jsxs("div",{children:[
29
- /* @__PURE__ */e.jsx(i.Typography,{className:"profile-name",children:null==A?void 0:A.full_name}),
30
- /* @__PURE__ */e.jsx(i.Typography,{className:"user-auth",children:null==A?void 0:A.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:o.Pathname.LOGIN,color:"inherit",children:/* @__PURE__ */e.jsx(n.default,{className:"icon-btn"})})]}),oe]}),
31
- /* @__PURE__ */e.jsx(g.ConfirmPopUp,{open:G,title:C("common.logout"),description:C("common.logout_confirmation")||"Are you sure, you want to logout?",onConfirm:()=>T(),onClose:Z,fullWidth:!0,maxWidth:"xs",buttonTexts:{confirm:C("common.logout"),cancel:C("common.cancel")}}),
32
- /* @__PURE__ */e.jsx(j.ResetPasswordModal,{showModal:K,setShowModal:U})]})}exports.Header=S,exports.default=S;
29
+ /* @__PURE__ */e.jsx(o.Typography,{className:"profile-name",children:null==M?void 0:M.full_name}),
30
+ /* @__PURE__ */e.jsx(o.Typography,{className:"user-auth",children:null==M?void 0:M.role_name})]})]}):/* @__PURE__ */e.jsx(w.default,{size:"large",edge:"end","aria-label":"account of current user","aria-controls":oe,"aria-haspopup":"true",component:l.Link,to:r.Pathname.LOGIN,color:"inherit",children:/* @__PURE__ */e.jsx(n.default,{className:"icon-btn"})})]}),te]}),
31
+ /* @__PURE__ */e.jsx(g.ConfirmPopUp,{open:U,title:I("common.logout"),description:I("common.logout_confirmation")||"Are you sure, you want to logout?",onConfirm:()=>T(),onClose:ae,fullWidth:!0,maxWidth:"xs",buttonTexts:{confirm:I("common.logout"),cancel:I("common.cancel")}}),
32
+ /* @__PURE__ */e.jsx(j.ResetPasswordModal,{showModal:Q,setShowModal:X})]})}exports.Header=C,exports.default=C;
33
33
  //# sourceMappingURL=index.js.map