@erpsquad/common 1.8.4 → 1.8.6

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 (1094) hide show
  1. package/README.md +22 -0
  2. package/dist/_virtual/index/index.esm10.js +4 -2
  3. package/dist/_virtual/index/index.esm10.js.map +1 -1
  4. package/dist/_virtual/index/index.esm11.js +3 -3
  5. package/dist/_virtual/index/index.esm2.js +3 -3
  6. package/dist/_virtual/index/index.esm3.js +2 -4
  7. package/dist/_virtual/index/index.esm3.js.map +1 -1
  8. package/dist/_virtual/index/index.esm4.js +3 -3
  9. package/dist/_virtual/index/index.esm5.js +3 -3
  10. package/dist/_virtual/index/index.esm6.js +3 -3
  11. package/dist/_virtual/index/index.esm7.js +3 -3
  12. package/dist/_virtual/index/index.esm8.js +3 -3
  13. package/dist/_virtual/index/index.esm9.js +3 -3
  14. package/dist/_virtual/index/index10.js +1 -1
  15. package/dist/_virtual/index/index11.js +1 -1
  16. package/dist/_virtual/index/index2.js +1 -1
  17. package/dist/_virtual/index/index3.js +1 -1
  18. package/dist/_virtual/index/index4.js +1 -1
  19. package/dist/_virtual/index/index5.js +1 -1
  20. package/dist/_virtual/index/index6.js +1 -1
  21. package/dist/_virtual/index/index7.js +1 -1
  22. package/dist/_virtual/index/index8.js +1 -1
  23. package/dist/_virtual/index/index9.js +1 -1
  24. package/dist/components/action-bar/action-bar/index.esm.js +1 -1
  25. package/dist/components/action-bar/action-bar/index.esm.js.map +1 -1
  26. package/dist/components/action-bar/action-bar/index.js +1 -1
  27. package/dist/components/action-bar/action-bar/index.js.map +1 -1
  28. package/dist/components/editor/custom-editor/index.esm.js +1 -1
  29. package/dist/components/editor/custom-editor/index.esm.js.map +1 -1
  30. package/dist/components/editor/custom-editor/index.js +1 -1
  31. package/dist/components/editor/custom-editor/index.js.map +1 -1
  32. package/dist/components/filter/filter/index.esm.js +1 -1
  33. package/dist/components/filter/filter/index.esm.js.map +1 -1
  34. package/dist/components/filter/filter/index.js +1 -1
  35. package/dist/components/filter/filter/index.js.map +1 -1
  36. package/dist/components/header/header/index.esm.js +1 -1
  37. package/dist/components/header/header/index.esm.js.map +1 -1
  38. package/dist/components/header/header/index.js +1 -1
  39. package/dist/components/header/header/index.js.map +1 -1
  40. package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
  41. package/dist/components/header/redux/actionCreator/index.esm.js.map +1 -1
  42. package/dist/components/header/redux/actionCreator/index.js +1 -1
  43. package/dist/components/header/redux/actionCreator/index.js.map +1 -1
  44. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  45. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js.map +1 -1
  46. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.js +1 -1
  47. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.js.map +1 -1
  48. package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  49. package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js.map +1 -1
  50. package/dist/components/reports-title-bar/redux/actionCreator/index.js +1 -1
  51. package/dist/components/reports-title-bar/redux/actionCreator/index.js.map +1 -1
  52. package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
  53. package/dist/components/share-modal/redux/actionCreator/index.esm.js.map +1 -1
  54. package/dist/components/share-modal/redux/actionCreator/index.js +1 -1
  55. package/dist/components/share-modal/redux/actionCreator/index.js.map +1 -1
  56. package/dist/components/upload/upload/index.esm.js +2 -2
  57. package/dist/components/upload/upload/index.esm.js.map +1 -1
  58. package/dist/components/upload/upload/index.js +2 -2
  59. package/dist/components/upload/upload/index.js.map +1 -1
  60. package/dist/contexts/AuthContext/index.esm.js +2 -2
  61. package/dist/contexts/AuthContext/index.esm.js.map +1 -1
  62. package/dist/contexts/AuthContext/index.js +1 -1
  63. package/dist/contexts/AuthContext/index.js.map +1 -1
  64. package/dist/contexts/languageContext/index.esm.js +1 -1
  65. package/dist/contexts/languageContext/index.esm.js.map +1 -1
  66. package/dist/contexts/languageContext/index.js +1 -1
  67. package/dist/contexts/languageContext/index.js.map +1 -1
  68. package/dist/contexts/page-context/index.esm.js +1 -4
  69. package/dist/contexts/page-context/index.esm.js.map +1 -1
  70. package/dist/contexts/page-context/index.js +1 -1
  71. package/dist/contexts/page-context/index.js.map +1 -1
  72. package/dist/hooks/use-material-calculations/index.esm.js +2 -1
  73. package/dist/hooks/use-material-calculations/index.esm.js.map +1 -1
  74. package/dist/hooks/use-material-calculations/index.js +1 -1
  75. package/dist/hooks/use-material-calculations/index.js.map +1 -1
  76. package/dist/hooks/useLangauge/index.esm.js +2 -1
  77. package/dist/hooks/useLangauge/index.esm.js.map +1 -1
  78. package/dist/hooks/useLangauge/index.js +1 -1
  79. package/dist/hooks/useLangauge/index.js.map +1 -1
  80. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
  81. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
  82. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js.map +1 -1
  83. package/dist/node_modules/@hookform/resolvers/yup/dist/yup/index.esm.js +15 -14
  84. package/dist/node_modules/@hookform/resolvers/yup/dist/yup/index.esm.js.map +1 -1
  85. package/dist/node_modules/@hookform/resolvers/yup/dist/yup/index.js +1 -1
  86. package/dist/node_modules/@hookform/resolvers/yup/dist/yup/index.js.map +1 -1
  87. package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize/index.esm.js +3 -2
  88. package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize/index.esm.js.map +1 -1
  89. package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize/index.js +1 -1
  90. package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize/index.js.map +1 -1
  91. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
  92. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
  93. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js.map +1 -1
  94. package/dist/node_modules/@mui/lab/TabContext/TabContext/index.esm.js +3 -2
  95. package/dist/node_modules/@mui/lab/TabContext/TabContext/index.esm.js.map +1 -1
  96. package/dist/node_modules/@mui/lab/TabContext/TabContext/index.js +2 -2
  97. package/dist/node_modules/@mui/lab/TabContext/TabContext/index.js.map +1 -1
  98. package/dist/node_modules/@mui/lab/TabList/TabList/index.esm.js +2 -1
  99. package/dist/node_modules/@mui/lab/TabList/TabList/index.esm.js.map +1 -1
  100. package/dist/node_modules/@mui/lab/TabList/TabList/index.js +1 -1
  101. package/dist/node_modules/@mui/lab/TabList/TabList/index.js.map +1 -1
  102. package/dist/node_modules/@mui/lab/TabPanel/TabPanel/index.esm.js +2 -1
  103. package/dist/node_modules/@mui/lab/TabPanel/TabPanel/index.esm.js.map +1 -1
  104. package/dist/node_modules/@mui/lab/TabPanel/TabPanel/index.js +2 -2
  105. package/dist/node_modules/@mui/lab/TabPanel/TabPanel/index.js.map +1 -1
  106. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js +2 -1
  107. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js.map +1 -1
  108. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js +2 -2
  109. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js.map +1 -1
  110. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js +2 -1
  111. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js.map +1 -1
  112. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js +1 -1
  113. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js.map +1 -1
  114. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js +2 -1
  115. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js.map +1 -1
  116. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js +2 -2
  117. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js.map +1 -1
  118. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js +2 -1
  119. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js.map +1 -1
  120. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js +1 -1
  121. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js.map +1 -1
  122. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js +2 -1
  123. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js.map +1 -1
  124. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js +2 -2
  125. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js.map +1 -1
  126. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js +2 -1
  127. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js.map +1 -1
  128. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js +2 -2
  129. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js.map +1 -1
  130. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js +2 -1
  131. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js.map +1 -1
  132. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js +2 -2
  133. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js.map +1 -1
  134. package/dist/node_modules/@mui/material/Accordion/Accordion/index.esm.js +2 -1
  135. package/dist/node_modules/@mui/material/Accordion/Accordion/index.esm.js.map +1 -1
  136. package/dist/node_modules/@mui/material/Accordion/Accordion/index.js +2 -2
  137. package/dist/node_modules/@mui/material/Accordion/Accordion/index.js.map +1 -1
  138. package/dist/node_modules/@mui/material/Accordion/AccordionContext/index.esm.js +2 -1
  139. package/dist/node_modules/@mui/material/Accordion/AccordionContext/index.esm.js.map +1 -1
  140. package/dist/node_modules/@mui/material/Accordion/AccordionContext/index.js +1 -1
  141. package/dist/node_modules/@mui/material/Accordion/AccordionContext/index.js.map +1 -1
  142. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js +2 -1
  143. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js.map +1 -1
  144. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js +1 -1
  145. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js.map +1 -1
  146. package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails/index.esm.js +2 -1
  147. package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails/index.esm.js.map +1 -1
  148. package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails/index.js +2 -2
  149. package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails/index.js.map +1 -1
  150. package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary/index.esm.js +2 -1
  151. package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary/index.esm.js.map +1 -1
  152. package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary/index.js +2 -2
  153. package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary/index.js.map +1 -1
  154. package/dist/node_modules/@mui/material/Alert/Alert/index.esm.js +2 -1
  155. package/dist/node_modules/@mui/material/Alert/Alert/index.esm.js.map +1 -1
  156. package/dist/node_modules/@mui/material/Alert/Alert/index.js +1 -1
  157. package/dist/node_modules/@mui/material/Alert/Alert/index.js.map +1 -1
  158. package/dist/node_modules/@mui/material/AlertTitle/AlertTitle/index.esm.js +2 -1
  159. package/dist/node_modules/@mui/material/AlertTitle/AlertTitle/index.esm.js.map +1 -1
  160. package/dist/node_modules/@mui/material/AlertTitle/AlertTitle/index.js +1 -1
  161. package/dist/node_modules/@mui/material/AlertTitle/AlertTitle/index.js.map +1 -1
  162. package/dist/node_modules/@mui/material/AppBar/AppBar/index.esm.js +2 -1
  163. package/dist/node_modules/@mui/material/AppBar/AppBar/index.esm.js.map +1 -1
  164. package/dist/node_modules/@mui/material/AppBar/AppBar/index.js +1 -1
  165. package/dist/node_modules/@mui/material/AppBar/AppBar/index.js.map +1 -1
  166. package/dist/node_modules/@mui/material/Autocomplete/Autocomplete/index.esm.js +2 -1
  167. package/dist/node_modules/@mui/material/Autocomplete/Autocomplete/index.esm.js.map +1 -1
  168. package/dist/node_modules/@mui/material/Autocomplete/Autocomplete/index.js +1 -1
  169. package/dist/node_modules/@mui/material/Autocomplete/Autocomplete/index.js.map +1 -1
  170. package/dist/node_modules/@mui/material/Avatar/Avatar/index.esm.js +2 -1
  171. package/dist/node_modules/@mui/material/Avatar/Avatar/index.esm.js.map +1 -1
  172. package/dist/node_modules/@mui/material/Avatar/Avatar/index.js +1 -1
  173. package/dist/node_modules/@mui/material/Avatar/Avatar/index.js.map +1 -1
  174. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js +3 -2
  175. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js.map +1 -1
  176. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js +2 -2
  177. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js.map +1 -1
  178. package/dist/node_modules/@mui/material/Backdrop/Backdrop/index.esm.js +2 -1
  179. package/dist/node_modules/@mui/material/Backdrop/Backdrop/index.esm.js.map +1 -1
  180. package/dist/node_modules/@mui/material/Backdrop/Backdrop/index.js +1 -1
  181. package/dist/node_modules/@mui/material/Backdrop/Backdrop/index.js.map +1 -1
  182. package/dist/node_modules/@mui/material/Badge/Badge/index.esm.js +2 -1
  183. package/dist/node_modules/@mui/material/Badge/Badge/index.esm.js.map +1 -1
  184. package/dist/node_modules/@mui/material/Badge/Badge/index.js +1 -1
  185. package/dist/node_modules/@mui/material/Badge/Badge/index.js.map +1 -1
  186. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js +3 -2
  187. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js.map +1 -1
  188. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js +3 -3
  189. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js.map +1 -1
  190. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js +2 -1
  191. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js.map +1 -1
  192. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js +2 -2
  193. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js.map +1 -1
  194. package/dist/node_modules/@mui/material/Box/Box/index.esm.js +2 -1
  195. package/dist/node_modules/@mui/material/Box/Box/index.esm.js.map +1 -1
  196. package/dist/node_modules/@mui/material/Box/Box/index.js +1 -1
  197. package/dist/node_modules/@mui/material/Box/Box/index.js.map +1 -1
  198. package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed/index.esm.js +2 -1
  199. package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed/index.esm.js.map +1 -1
  200. package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed/index.js +2 -2
  201. package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed/index.js.map +1 -1
  202. package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs/index.esm.js +4 -3
  203. package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs/index.esm.js.map +1 -1
  204. package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs/index.js +2 -2
  205. package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs/index.js.map +1 -1
  206. package/dist/node_modules/@mui/material/Button/Button/index.esm.js +2 -1
  207. package/dist/node_modules/@mui/material/Button/Button/index.esm.js.map +1 -1
  208. package/dist/node_modules/@mui/material/Button/Button/index.js +1 -1
  209. package/dist/node_modules/@mui/material/Button/Button/index.js.map +1 -1
  210. package/dist/node_modules/@mui/material/ButtonBase/ButtonBase/index.esm.js +3 -2
  211. package/dist/node_modules/@mui/material/ButtonBase/ButtonBase/index.esm.js.map +1 -1
  212. package/dist/node_modules/@mui/material/ButtonBase/ButtonBase/index.js +3 -3
  213. package/dist/node_modules/@mui/material/ButtonBase/ButtonBase/index.js.map +1 -1
  214. package/dist/node_modules/@mui/material/ButtonBase/Ripple/index.esm.js +2 -1
  215. package/dist/node_modules/@mui/material/ButtonBase/Ripple/index.esm.js.map +1 -1
  216. package/dist/node_modules/@mui/material/ButtonBase/Ripple/index.js +1 -1
  217. package/dist/node_modules/@mui/material/ButtonBase/Ripple/index.js.map +1 -1
  218. package/dist/node_modules/@mui/material/ButtonBase/TouchRipple/index.esm.js +2 -1
  219. package/dist/node_modules/@mui/material/ButtonBase/TouchRipple/index.esm.js.map +1 -1
  220. package/dist/node_modules/@mui/material/ButtonBase/TouchRipple/index.js +1 -1
  221. package/dist/node_modules/@mui/material/ButtonBase/TouchRipple/index.js.map +1 -1
  222. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup/index.esm.js +2 -1
  223. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup/index.esm.js.map +1 -1
  224. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup/index.js +1 -1
  225. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup/index.js.map +1 -1
  226. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext/index.esm.js +2 -1
  227. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext/index.esm.js.map +1 -1
  228. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext/index.js +1 -1
  229. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext/index.js.map +1 -1
  230. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupContext/index.esm.js +2 -1
  231. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupContext/index.esm.js.map +1 -1
  232. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupContext/index.js +1 -1
  233. package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupContext/index.js.map +1 -1
  234. package/dist/node_modules/@mui/material/Card/Card/index.esm.js +2 -1
  235. package/dist/node_modules/@mui/material/Card/Card/index.esm.js.map +1 -1
  236. package/dist/node_modules/@mui/material/Card/Card/index.js +1 -1
  237. package/dist/node_modules/@mui/material/Card/Card/index.js.map +1 -1
  238. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js +2 -1
  239. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js.map +1 -1
  240. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js +2 -2
  241. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js.map +1 -1
  242. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js +2 -1
  243. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js.map +1 -1
  244. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js +2 -2
  245. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js.map +1 -1
  246. package/dist/node_modules/@mui/material/CardContent/CardContent/index.esm.js +2 -1
  247. package/dist/node_modules/@mui/material/CardContent/CardContent/index.esm.js.map +1 -1
  248. package/dist/node_modules/@mui/material/CardContent/CardContent/index.js +1 -1
  249. package/dist/node_modules/@mui/material/CardContent/CardContent/index.js.map +1 -1
  250. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js +2 -1
  251. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js.map +1 -1
  252. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js +1 -1
  253. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js.map +1 -1
  254. package/dist/node_modules/@mui/material/CardMedia/CardMedia/index.esm.js +2 -1
  255. package/dist/node_modules/@mui/material/CardMedia/CardMedia/index.esm.js.map +1 -1
  256. package/dist/node_modules/@mui/material/CardMedia/CardMedia/index.js +2 -2
  257. package/dist/node_modules/@mui/material/CardMedia/CardMedia/index.js.map +1 -1
  258. package/dist/node_modules/@mui/material/Checkbox/Checkbox/index.esm.js +2 -1
  259. package/dist/node_modules/@mui/material/Checkbox/Checkbox/index.esm.js.map +1 -1
  260. package/dist/node_modules/@mui/material/Checkbox/Checkbox/index.js +1 -1
  261. package/dist/node_modules/@mui/material/Checkbox/Checkbox/index.js.map +1 -1
  262. package/dist/node_modules/@mui/material/Chip/Chip/index.esm.js +3 -2
  263. package/dist/node_modules/@mui/material/Chip/Chip/index.esm.js.map +1 -1
  264. package/dist/node_modules/@mui/material/Chip/Chip/index.js +1 -1
  265. package/dist/node_modules/@mui/material/Chip/Chip/index.js.map +1 -1
  266. package/dist/node_modules/@mui/material/CircularProgress/CircularProgress/index.esm.js +2 -1
  267. package/dist/node_modules/@mui/material/CircularProgress/CircularProgress/index.esm.js.map +1 -1
  268. package/dist/node_modules/@mui/material/CircularProgress/CircularProgress/index.js +6 -6
  269. package/dist/node_modules/@mui/material/CircularProgress/CircularProgress/index.js.map +1 -1
  270. package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener/index.esm.js +3 -2
  271. package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener/index.esm.js.map +1 -1
  272. package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener/index.js +1 -1
  273. package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener/index.js.map +1 -1
  274. package/dist/node_modules/@mui/material/Collapse/Collapse/index.esm.js +2 -1
  275. package/dist/node_modules/@mui/material/Collapse/Collapse/index.esm.js.map +1 -1
  276. package/dist/node_modules/@mui/material/Collapse/Collapse/index.js +1 -1
  277. package/dist/node_modules/@mui/material/Collapse/Collapse/index.js.map +1 -1
  278. package/dist/node_modules/@mui/material/Container/Container/index.esm.js +2 -1
  279. package/dist/node_modules/@mui/material/Container/Container/index.esm.js.map +1 -1
  280. package/dist/node_modules/@mui/material/Container/Container/index.js +1 -1
  281. package/dist/node_modules/@mui/material/Container/Container/index.js.map +1 -1
  282. package/dist/node_modules/@mui/material/CssBaseline/CssBaseline/index.esm.js +2 -1
  283. package/dist/node_modules/@mui/material/CssBaseline/CssBaseline/index.esm.js.map +1 -1
  284. package/dist/node_modules/@mui/material/CssBaseline/CssBaseline/index.js +2 -2
  285. package/dist/node_modules/@mui/material/CssBaseline/CssBaseline/index.js.map +1 -1
  286. package/dist/node_modules/@mui/material/Dialog/Dialog/index.esm.js +2 -1
  287. package/dist/node_modules/@mui/material/Dialog/Dialog/index.esm.js.map +1 -1
  288. package/dist/node_modules/@mui/material/Dialog/Dialog/index.js +1 -1
  289. package/dist/node_modules/@mui/material/Dialog/Dialog/index.js.map +1 -1
  290. package/dist/node_modules/@mui/material/Dialog/DialogContext/index.esm.js +2 -1
  291. package/dist/node_modules/@mui/material/Dialog/DialogContext/index.esm.js.map +1 -1
  292. package/dist/node_modules/@mui/material/Dialog/DialogContext/index.js +1 -1
  293. package/dist/node_modules/@mui/material/Dialog/DialogContext/index.js.map +1 -1
  294. package/dist/node_modules/@mui/material/DialogActions/DialogActions/index.esm.js +2 -1
  295. package/dist/node_modules/@mui/material/DialogActions/DialogActions/index.esm.js.map +1 -1
  296. package/dist/node_modules/@mui/material/DialogActions/DialogActions/index.js +1 -1
  297. package/dist/node_modules/@mui/material/DialogActions/DialogActions/index.js.map +1 -1
  298. package/dist/node_modules/@mui/material/DialogContent/DialogContent/index.esm.js +2 -1
  299. package/dist/node_modules/@mui/material/DialogContent/DialogContent/index.esm.js.map +1 -1
  300. package/dist/node_modules/@mui/material/DialogContent/DialogContent/index.js +2 -2
  301. package/dist/node_modules/@mui/material/DialogContent/DialogContent/index.js.map +1 -1
  302. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js +2 -1
  303. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js.map +1 -1
  304. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js +1 -1
  305. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js.map +1 -1
  306. package/dist/node_modules/@mui/material/DialogTitle/DialogTitle/index.esm.js +2 -1
  307. package/dist/node_modules/@mui/material/DialogTitle/DialogTitle/index.esm.js.map +1 -1
  308. package/dist/node_modules/@mui/material/DialogTitle/DialogTitle/index.js +1 -1
  309. package/dist/node_modules/@mui/material/DialogTitle/DialogTitle/index.js.map +1 -1
  310. package/dist/node_modules/@mui/material/Divider/Divider/index.esm.js +2 -1
  311. package/dist/node_modules/@mui/material/Divider/Divider/index.esm.js.map +1 -1
  312. package/dist/node_modules/@mui/material/Divider/Divider/index.js +1 -1
  313. package/dist/node_modules/@mui/material/Divider/Divider/index.js.map +1 -1
  314. package/dist/node_modules/@mui/material/Drawer/Drawer/index.esm.js +2 -1
  315. package/dist/node_modules/@mui/material/Drawer/Drawer/index.esm.js.map +1 -1
  316. package/dist/node_modules/@mui/material/Drawer/Drawer/index.js +1 -1
  317. package/dist/node_modules/@mui/material/Drawer/Drawer/index.js.map +1 -1
  318. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js +2 -1
  319. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js.map +1 -1
  320. package/dist/node_modules/@mui/material/Fab/Fab/index.js +2 -2
  321. package/dist/node_modules/@mui/material/Fab/Fab/index.js.map +1 -1
  322. package/dist/node_modules/@mui/material/Fade/Fade/index.esm.js +2 -1
  323. package/dist/node_modules/@mui/material/Fade/Fade/index.esm.js.map +1 -1
  324. package/dist/node_modules/@mui/material/Fade/Fade/index.js +1 -1
  325. package/dist/node_modules/@mui/material/Fade/Fade/index.js.map +1 -1
  326. package/dist/node_modules/@mui/material/FilledInput/FilledInput/index.esm.js +2 -1
  327. package/dist/node_modules/@mui/material/FilledInput/FilledInput/index.esm.js.map +1 -1
  328. package/dist/node_modules/@mui/material/FilledInput/FilledInput/index.js +1 -1
  329. package/dist/node_modules/@mui/material/FilledInput/FilledInput/index.js.map +1 -1
  330. package/dist/node_modules/@mui/material/FormControl/FormControl/index.esm.js +3 -2
  331. package/dist/node_modules/@mui/material/FormControl/FormControl/index.esm.js.map +1 -1
  332. package/dist/node_modules/@mui/material/FormControl/FormControl/index.js +2 -2
  333. package/dist/node_modules/@mui/material/FormControl/FormControl/index.js.map +1 -1
  334. package/dist/node_modules/@mui/material/FormControl/FormControlContext/index.esm.js +2 -1
  335. package/dist/node_modules/@mui/material/FormControl/FormControlContext/index.esm.js.map +1 -1
  336. package/dist/node_modules/@mui/material/FormControl/FormControlContext/index.js +1 -1
  337. package/dist/node_modules/@mui/material/FormControl/FormControlContext/index.js.map +1 -1
  338. package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel/index.esm.js +2 -1
  339. package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel/index.esm.js.map +1 -1
  340. package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel/index.js +1 -1
  341. package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel/index.js.map +1 -1
  342. package/dist/node_modules/@mui/material/FormGroup/FormGroup/index.esm.js +2 -1
  343. package/dist/node_modules/@mui/material/FormGroup/FormGroup/index.esm.js.map +1 -1
  344. package/dist/node_modules/@mui/material/FormGroup/FormGroup/index.js +1 -1
  345. package/dist/node_modules/@mui/material/FormGroup/FormGroup/index.js.map +1 -1
  346. package/dist/node_modules/@mui/material/FormHelperText/FormHelperText/index.esm.js +2 -1
  347. package/dist/node_modules/@mui/material/FormHelperText/FormHelperText/index.esm.js.map +1 -1
  348. package/dist/node_modules/@mui/material/FormHelperText/FormHelperText/index.js +2 -2
  349. package/dist/node_modules/@mui/material/FormHelperText/FormHelperText/index.js.map +1 -1
  350. package/dist/node_modules/@mui/material/FormLabel/FormLabel/index.esm.js +2 -1
  351. package/dist/node_modules/@mui/material/FormLabel/FormLabel/index.esm.js.map +1 -1
  352. package/dist/node_modules/@mui/material/FormLabel/FormLabel/index.js +1 -1
  353. package/dist/node_modules/@mui/material/FormLabel/FormLabel/index.js.map +1 -1
  354. package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles/index.esm.js +2 -1
  355. package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles/index.esm.js.map +1 -1
  356. package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles/index.js +2 -2
  357. package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles/index.js.map +1 -1
  358. package/dist/node_modules/@mui/material/Grid/Grid/index.esm.js +3 -2
  359. package/dist/node_modules/@mui/material/Grid/Grid/index.esm.js.map +1 -1
  360. package/dist/node_modules/@mui/material/Grid/Grid/index.js +2 -2
  361. package/dist/node_modules/@mui/material/Grid/Grid/index.js.map +1 -1
  362. package/dist/node_modules/@mui/material/Grid/GridContext/index.esm.js +2 -1
  363. package/dist/node_modules/@mui/material/Grid/GridContext/index.esm.js.map +1 -1
  364. package/dist/node_modules/@mui/material/Grid/GridContext/index.js +1 -1
  365. package/dist/node_modules/@mui/material/Grid/GridContext/index.js.map +1 -1
  366. package/dist/node_modules/@mui/material/Grow/Grow/index.esm.js +2 -1
  367. package/dist/node_modules/@mui/material/Grow/Grow/index.esm.js.map +1 -1
  368. package/dist/node_modules/@mui/material/Grow/Grow/index.js +2 -2
  369. package/dist/node_modules/@mui/material/Grow/Grow/index.js.map +1 -1
  370. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js +2 -1
  371. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js.map +1 -1
  372. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js +1 -1
  373. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js.map +1 -1
  374. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js +3 -2
  375. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js.map +1 -1
  376. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js +2 -2
  377. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js.map +1 -1
  378. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js +4 -3
  379. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js.map +1 -1
  380. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js +1 -1
  381. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js.map +1 -1
  382. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js +3 -2
  383. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js.map +1 -1
  384. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js +1 -1
  385. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js.map +1 -1
  386. package/dist/node_modules/@mui/material/Icon/Icon/index.esm.js +2 -1
  387. package/dist/node_modules/@mui/material/Icon/Icon/index.esm.js.map +1 -1
  388. package/dist/node_modules/@mui/material/Icon/Icon/index.js +2 -2
  389. package/dist/node_modules/@mui/material/Icon/Icon/index.js.map +1 -1
  390. package/dist/node_modules/@mui/material/IconButton/IconButton/index.esm.js +2 -1
  391. package/dist/node_modules/@mui/material/IconButton/IconButton/index.esm.js.map +1 -1
  392. package/dist/node_modules/@mui/material/IconButton/IconButton/index.js +1 -1
  393. package/dist/node_modules/@mui/material/IconButton/IconButton/index.js.map +1 -1
  394. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js +3 -2
  395. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js.map +1 -1
  396. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js +2 -2
  397. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js.map +1 -1
  398. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js +2 -1
  399. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js.map +1 -1
  400. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js +1 -1
  401. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js.map +1 -1
  402. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js +3 -2
  403. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js.map +1 -1
  404. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js +2 -2
  405. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js.map +1 -1
  406. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js +2 -1
  407. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js.map +1 -1
  408. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js +1 -1
  409. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js.map +1 -1
  410. package/dist/node_modules/@mui/material/Input/Input/index.esm.js +2 -1
  411. package/dist/node_modules/@mui/material/Input/Input/index.esm.js.map +1 -1
  412. package/dist/node_modules/@mui/material/Input/Input/index.js +2 -2
  413. package/dist/node_modules/@mui/material/Input/Input/index.js.map +1 -1
  414. package/dist/node_modules/@mui/material/InputAdornment/InputAdornment/index.esm.js +3 -2
  415. package/dist/node_modules/@mui/material/InputAdornment/InputAdornment/index.esm.js.map +1 -1
  416. package/dist/node_modules/@mui/material/InputAdornment/InputAdornment/index.js +2 -2
  417. package/dist/node_modules/@mui/material/InputAdornment/InputAdornment/index.js.map +1 -1
  418. package/dist/node_modules/@mui/material/InputBase/InputBase/index.esm.js +6 -5
  419. package/dist/node_modules/@mui/material/InputBase/InputBase/index.esm.js.map +1 -1
  420. package/dist/node_modules/@mui/material/InputBase/InputBase/index.js +1 -1
  421. package/dist/node_modules/@mui/material/InputBase/InputBase/index.js.map +1 -1
  422. package/dist/node_modules/@mui/material/InputLabel/InputLabel/index.esm.js +2 -1
  423. package/dist/node_modules/@mui/material/InputLabel/InputLabel/index.esm.js.map +1 -1
  424. package/dist/node_modules/@mui/material/InputLabel/InputLabel/index.js +1 -1
  425. package/dist/node_modules/@mui/material/InputLabel/InputLabel/index.js.map +1 -1
  426. package/dist/node_modules/@mui/material/LinearProgress/LinearProgress/index.esm.js +4 -3
  427. package/dist/node_modules/@mui/material/LinearProgress/LinearProgress/index.esm.js.map +1 -1
  428. package/dist/node_modules/@mui/material/LinearProgress/LinearProgress/index.js +5 -5
  429. package/dist/node_modules/@mui/material/LinearProgress/LinearProgress/index.js.map +1 -1
  430. package/dist/node_modules/@mui/material/Link/Link/index.esm.js +2 -1
  431. package/dist/node_modules/@mui/material/Link/Link/index.esm.js.map +1 -1
  432. package/dist/node_modules/@mui/material/Link/Link/index.js +1 -1
  433. package/dist/node_modules/@mui/material/Link/Link/index.js.map +1 -1
  434. package/dist/node_modules/@mui/material/List/List/index.esm.js +2 -1
  435. package/dist/node_modules/@mui/material/List/List/index.esm.js.map +1 -1
  436. package/dist/node_modules/@mui/material/List/List/index.js +2 -2
  437. package/dist/node_modules/@mui/material/List/List/index.js.map +1 -1
  438. package/dist/node_modules/@mui/material/List/ListContext/index.esm.js +2 -1
  439. package/dist/node_modules/@mui/material/List/ListContext/index.esm.js.map +1 -1
  440. package/dist/node_modules/@mui/material/List/ListContext/index.js +1 -1
  441. package/dist/node_modules/@mui/material/List/ListContext/index.js.map +1 -1
  442. package/dist/node_modules/@mui/material/ListItem/ListItem/index.esm.js +3 -2
  443. package/dist/node_modules/@mui/material/ListItem/ListItem/index.esm.js.map +1 -1
  444. package/dist/node_modules/@mui/material/ListItem/ListItem/index.js +1 -1
  445. package/dist/node_modules/@mui/material/ListItem/ListItem/index.js.map +1 -1
  446. package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.esm.js +2 -1
  447. package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.esm.js.map +1 -1
  448. package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.js +1 -1
  449. package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.js.map +1 -1
  450. package/dist/node_modules/@mui/material/ListItemButton/ListItemButton/index.esm.js +3 -2
  451. package/dist/node_modules/@mui/material/ListItemButton/ListItemButton/index.esm.js.map +1 -1
  452. package/dist/node_modules/@mui/material/ListItemButton/ListItemButton/index.js +2 -2
  453. package/dist/node_modules/@mui/material/ListItemButton/ListItemButton/index.js.map +1 -1
  454. package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon/index.esm.js +2 -1
  455. package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon/index.esm.js.map +1 -1
  456. package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon/index.js +2 -2
  457. package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon/index.js.map +1 -1
  458. package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction/index.esm.js +2 -1
  459. package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction/index.esm.js.map +1 -1
  460. package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction/index.js +2 -2
  461. package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction/index.js.map +1 -1
  462. package/dist/node_modules/@mui/material/ListItemText/ListItemText/index.esm.js +2 -1
  463. package/dist/node_modules/@mui/material/ListItemText/ListItemText/index.esm.js.map +1 -1
  464. package/dist/node_modules/@mui/material/ListItemText/ListItemText/index.js +1 -1
  465. package/dist/node_modules/@mui/material/ListItemText/ListItemText/index.js.map +1 -1
  466. package/dist/node_modules/@mui/material/ListSubheader/ListSubheader/index.esm.js +2 -1
  467. package/dist/node_modules/@mui/material/ListSubheader/ListSubheader/index.esm.js.map +1 -1
  468. package/dist/node_modules/@mui/material/ListSubheader/ListSubheader/index.js +2 -2
  469. package/dist/node_modules/@mui/material/ListSubheader/ListSubheader/index.js.map +1 -1
  470. package/dist/node_modules/@mui/material/Menu/Menu/index.esm.js +3 -2
  471. package/dist/node_modules/@mui/material/Menu/Menu/index.esm.js.map +1 -1
  472. package/dist/node_modules/@mui/material/Menu/Menu/index.js +2 -2
  473. package/dist/node_modules/@mui/material/Menu/Menu/index.js.map +1 -1
  474. package/dist/node_modules/@mui/material/MenuItem/MenuItem/index.esm.js +3 -2
  475. package/dist/node_modules/@mui/material/MenuItem/MenuItem/index.esm.js.map +1 -1
  476. package/dist/node_modules/@mui/material/MenuItem/MenuItem/index.js +1 -1
  477. package/dist/node_modules/@mui/material/MenuItem/MenuItem/index.js.map +1 -1
  478. package/dist/node_modules/@mui/material/MenuList/MenuList/index.esm.js +3 -2
  479. package/dist/node_modules/@mui/material/MenuList/MenuList/index.esm.js.map +1 -1
  480. package/dist/node_modules/@mui/material/MenuList/MenuList/index.js +2 -2
  481. package/dist/node_modules/@mui/material/MenuList/MenuList/index.js.map +1 -1
  482. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js +2 -1
  483. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js.map +1 -1
  484. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js +1 -1
  485. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js.map +1 -1
  486. package/dist/node_modules/@mui/material/Modal/Modal/index.esm.js +2 -1
  487. package/dist/node_modules/@mui/material/Modal/Modal/index.esm.js.map +1 -1
  488. package/dist/node_modules/@mui/material/Modal/Modal/index.js +1 -1
  489. package/dist/node_modules/@mui/material/Modal/Modal/index.js.map +1 -1
  490. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js +2 -1
  491. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js.map +1 -1
  492. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js +2 -2
  493. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js.map +1 -1
  494. package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput/index.esm.js +2 -1
  495. package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput/index.esm.js.map +1 -1
  496. package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput/index.js +1 -1
  497. package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput/index.js.map +1 -1
  498. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js +3 -2
  499. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js.map +1 -1
  500. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js +1 -1
  501. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js.map +1 -1
  502. package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline/index.esm.js +2 -1
  503. package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline/index.esm.js.map +1 -1
  504. package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline/index.js +1 -1
  505. package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline/index.js.map +1 -1
  506. package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput/index.esm.js +2 -1
  507. package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput/index.esm.js.map +1 -1
  508. package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput/index.js +2 -2
  509. package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput/index.js.map +1 -1
  510. package/dist/node_modules/@mui/material/Pagination/Pagination/index.esm.js +2 -1
  511. package/dist/node_modules/@mui/material/Pagination/Pagination/index.esm.js.map +1 -1
  512. package/dist/node_modules/@mui/material/Pagination/Pagination/index.js +1 -1
  513. package/dist/node_modules/@mui/material/Pagination/Pagination/index.js.map +1 -1
  514. package/dist/node_modules/@mui/material/PaginationItem/PaginationItem/index.esm.js +2 -1
  515. package/dist/node_modules/@mui/material/PaginationItem/PaginationItem/index.esm.js.map +1 -1
  516. package/dist/node_modules/@mui/material/PaginationItem/PaginationItem/index.js +1 -1
  517. package/dist/node_modules/@mui/material/PaginationItem/PaginationItem/index.js.map +1 -1
  518. package/dist/node_modules/@mui/material/Paper/Paper/index.esm.js +3 -2
  519. package/dist/node_modules/@mui/material/Paper/Paper/index.esm.js.map +1 -1
  520. package/dist/node_modules/@mui/material/Paper/Paper/index.js +1 -1
  521. package/dist/node_modules/@mui/material/Paper/Paper/index.js.map +1 -1
  522. package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js +7 -6
  523. package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js.map +1 -1
  524. package/dist/node_modules/@mui/material/Popover/Popover/index.js +2 -2
  525. package/dist/node_modules/@mui/material/Popover/Popover/index.js.map +1 -1
  526. package/dist/node_modules/@mui/material/Popper/BasePopper/index.esm.js +5 -4
  527. package/dist/node_modules/@mui/material/Popper/BasePopper/index.esm.js.map +1 -1
  528. package/dist/node_modules/@mui/material/Popper/BasePopper/index.js +3 -3
  529. package/dist/node_modules/@mui/material/Popper/BasePopper/index.js.map +1 -1
  530. package/dist/node_modules/@mui/material/Popper/Popper/index.esm.js +2 -1
  531. package/dist/node_modules/@mui/material/Popper/Popper/index.esm.js.map +1 -1
  532. package/dist/node_modules/@mui/material/Popper/Popper/index.js +1 -1
  533. package/dist/node_modules/@mui/material/Popper/Popper/index.js.map +1 -1
  534. package/dist/node_modules/@mui/material/Portal/Portal/index.esm.js +3 -2
  535. package/dist/node_modules/@mui/material/Portal/Portal/index.esm.js.map +1 -1
  536. package/dist/node_modules/@mui/material/Portal/Portal/index.js +4 -4
  537. package/dist/node_modules/@mui/material/Portal/Portal/index.js.map +1 -1
  538. package/dist/node_modules/@mui/material/Radio/Radio/index.esm.js +2 -1
  539. package/dist/node_modules/@mui/material/Radio/Radio/index.esm.js.map +1 -1
  540. package/dist/node_modules/@mui/material/Radio/Radio/index.js +1 -1
  541. package/dist/node_modules/@mui/material/Radio/Radio/index.js.map +1 -1
  542. package/dist/node_modules/@mui/material/Radio/RadioButtonIcon/index.esm.js +2 -1
  543. package/dist/node_modules/@mui/material/Radio/RadioButtonIcon/index.esm.js.map +1 -1
  544. package/dist/node_modules/@mui/material/Radio/RadioButtonIcon/index.js +2 -2
  545. package/dist/node_modules/@mui/material/Radio/RadioButtonIcon/index.js.map +1 -1
  546. package/dist/node_modules/@mui/material/RadioGroup/RadioGroup/index.esm.js +2 -1
  547. package/dist/node_modules/@mui/material/RadioGroup/RadioGroup/index.esm.js.map +1 -1
  548. package/dist/node_modules/@mui/material/RadioGroup/RadioGroup/index.js +2 -2
  549. package/dist/node_modules/@mui/material/RadioGroup/RadioGroup/index.js.map +1 -1
  550. package/dist/node_modules/@mui/material/RadioGroup/RadioGroupContext/index.esm.js +2 -1
  551. package/dist/node_modules/@mui/material/RadioGroup/RadioGroupContext/index.esm.js.map +1 -1
  552. package/dist/node_modules/@mui/material/RadioGroup/RadioGroupContext/index.js +1 -1
  553. package/dist/node_modules/@mui/material/RadioGroup/RadioGroupContext/index.js.map +1 -1
  554. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js +4 -3
  555. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js.map +1 -1
  556. package/dist/node_modules/@mui/material/Rating/Rating/index.js +6 -6
  557. package/dist/node_modules/@mui/material/Rating/Rating/index.js.map +1 -1
  558. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js +2 -1
  559. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js.map +1 -1
  560. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js +2 -2
  561. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js.map +1 -1
  562. package/dist/node_modules/@mui/material/Select/Select/index.esm.js +2 -1
  563. package/dist/node_modules/@mui/material/Select/Select/index.esm.js.map +1 -1
  564. package/dist/node_modules/@mui/material/Select/Select/index.js +1 -1
  565. package/dist/node_modules/@mui/material/Select/Select/index.js.map +1 -1
  566. package/dist/node_modules/@mui/material/Select/SelectInput/index.esm.js +5 -4
  567. package/dist/node_modules/@mui/material/Select/SelectInput/index.esm.js.map +1 -1
  568. package/dist/node_modules/@mui/material/Select/SelectInput/index.js +2 -2
  569. package/dist/node_modules/@mui/material/Select/SelectInput/index.js.map +1 -1
  570. package/dist/node_modules/@mui/material/Skeleton/Skeleton/index.esm.js +2 -1
  571. package/dist/node_modules/@mui/material/Skeleton/Skeleton/index.esm.js.map +1 -1
  572. package/dist/node_modules/@mui/material/Skeleton/Skeleton/index.js +1 -1
  573. package/dist/node_modules/@mui/material/Skeleton/Skeleton/index.js.map +1 -1
  574. package/dist/node_modules/@mui/material/Slide/Slide/index.esm.js +3 -2
  575. package/dist/node_modules/@mui/material/Slide/Slide/index.esm.js.map +1 -1
  576. package/dist/node_modules/@mui/material/Slide/Slide/index.js +1 -1
  577. package/dist/node_modules/@mui/material/Slide/Slide/index.js.map +1 -1
  578. package/dist/node_modules/@mui/material/Slider/Slider/index.esm.js +2 -1
  579. package/dist/node_modules/@mui/material/Slider/Slider/index.esm.js.map +1 -1
  580. package/dist/node_modules/@mui/material/Slider/Slider/index.js +1 -1
  581. package/dist/node_modules/@mui/material/Slider/Slider/index.js.map +1 -1
  582. package/dist/node_modules/@mui/material/Slider/SliderValueLabel/index.esm.js +2 -1
  583. package/dist/node_modules/@mui/material/Slider/SliderValueLabel/index.esm.js.map +1 -1
  584. package/dist/node_modules/@mui/material/Slider/SliderValueLabel/index.js +1 -1
  585. package/dist/node_modules/@mui/material/Slider/SliderValueLabel/index.js.map +1 -1
  586. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js +2 -1
  587. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js.map +1 -1
  588. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js +1 -1
  589. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js.map +1 -1
  590. package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent/index.esm.js +2 -1
  591. package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent/index.esm.js.map +1 -1
  592. package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent/index.js +1 -1
  593. package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent/index.js.map +1 -1
  594. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js +3 -2
  595. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js.map +1 -1
  596. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js +3 -3
  597. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js.map +1 -1
  598. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js +2 -1
  599. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js.map +1 -1
  600. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js +1 -1
  601. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js.map +1 -1
  602. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js +2 -1
  603. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js.map +1 -1
  604. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js +2 -2
  605. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js.map +1 -1
  606. package/dist/node_modules/@mui/material/Stack/Stack/index.esm.js +2 -1
  607. package/dist/node_modules/@mui/material/Stack/Stack/index.esm.js.map +1 -1
  608. package/dist/node_modules/@mui/material/Stack/Stack/index.js +1 -1
  609. package/dist/node_modules/@mui/material/Stack/Stack/index.js.map +1 -1
  610. package/dist/node_modules/@mui/material/Step/Step/index.esm.js +2 -1
  611. package/dist/node_modules/@mui/material/Step/Step/index.esm.js.map +1 -1
  612. package/dist/node_modules/@mui/material/Step/Step/index.js +1 -1
  613. package/dist/node_modules/@mui/material/Step/Step/index.js.map +1 -1
  614. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js +2 -1
  615. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js.map +1 -1
  616. package/dist/node_modules/@mui/material/Step/StepContext/index.js +1 -1
  617. package/dist/node_modules/@mui/material/Step/StepContext/index.js.map +1 -1
  618. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js +2 -1
  619. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js.map +1 -1
  620. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js +1 -1
  621. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js.map +1 -1
  622. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js +2 -1
  623. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js.map +1 -1
  624. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js +1 -1
  625. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js.map +1 -1
  626. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js +3 -2
  627. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js.map +1 -1
  628. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js +1 -1
  629. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js.map +1 -1
  630. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js +2 -1
  631. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js.map +1 -1
  632. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js +1 -1
  633. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js.map +1 -1
  634. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js +2 -1
  635. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js.map +1 -1
  636. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js +2 -2
  637. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js.map +1 -1
  638. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js +2 -1
  639. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js.map +1 -1
  640. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js +2 -2
  641. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js.map +1 -1
  642. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js +2 -1
  643. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js.map +1 -1
  644. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js +1 -1
  645. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js.map +1 -1
  646. package/dist/node_modules/@mui/material/SvgIcon/SvgIcon/index.esm.js +2 -1
  647. package/dist/node_modules/@mui/material/SvgIcon/SvgIcon/index.esm.js.map +1 -1
  648. package/dist/node_modules/@mui/material/SvgIcon/SvgIcon/index.js +2 -2
  649. package/dist/node_modules/@mui/material/SvgIcon/SvgIcon/index.js.map +1 -1
  650. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js +2 -1
  651. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js.map +1 -1
  652. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js +2 -2
  653. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js.map +1 -1
  654. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js +2 -1
  655. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js.map +1 -1
  656. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js +1 -1
  657. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js.map +1 -1
  658. package/dist/node_modules/@mui/material/Switch/Switch/index.esm.js +2 -1
  659. package/dist/node_modules/@mui/material/Switch/Switch/index.esm.js.map +1 -1
  660. package/dist/node_modules/@mui/material/Switch/Switch/index.js +2 -2
  661. package/dist/node_modules/@mui/material/Switch/Switch/index.js.map +1 -1
  662. package/dist/node_modules/@mui/material/Tab/Tab/index.esm.js +2 -1
  663. package/dist/node_modules/@mui/material/Tab/Tab/index.esm.js.map +1 -1
  664. package/dist/node_modules/@mui/material/Tab/Tab/index.js +1 -1
  665. package/dist/node_modules/@mui/material/Tab/Tab/index.js.map +1 -1
  666. package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton/index.esm.js +2 -1
  667. package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton/index.esm.js.map +1 -1
  668. package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton/index.js +2 -2
  669. package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton/index.js.map +1 -1
  670. package/dist/node_modules/@mui/material/Table/Table/index.esm.js +2 -1
  671. package/dist/node_modules/@mui/material/Table/Table/index.esm.js.map +1 -1
  672. package/dist/node_modules/@mui/material/Table/Table/index.js +2 -2
  673. package/dist/node_modules/@mui/material/Table/Table/index.js.map +1 -1
  674. package/dist/node_modules/@mui/material/Table/TableContext/index.esm.js +2 -1
  675. package/dist/node_modules/@mui/material/Table/TableContext/index.esm.js.map +1 -1
  676. package/dist/node_modules/@mui/material/Table/TableContext/index.js +1 -1
  677. package/dist/node_modules/@mui/material/Table/TableContext/index.js.map +1 -1
  678. package/dist/node_modules/@mui/material/Table/Tablelvl2Context/index.esm.js +2 -1
  679. package/dist/node_modules/@mui/material/Table/Tablelvl2Context/index.esm.js.map +1 -1
  680. package/dist/node_modules/@mui/material/Table/Tablelvl2Context/index.js +1 -1
  681. package/dist/node_modules/@mui/material/Table/Tablelvl2Context/index.js.map +1 -1
  682. package/dist/node_modules/@mui/material/TableBody/TableBody/index.esm.js +2 -1
  683. package/dist/node_modules/@mui/material/TableBody/TableBody/index.esm.js.map +1 -1
  684. package/dist/node_modules/@mui/material/TableBody/TableBody/index.js +1 -1
  685. package/dist/node_modules/@mui/material/TableBody/TableBody/index.js.map +1 -1
  686. package/dist/node_modules/@mui/material/TableCell/TableCell/index.esm.js +2 -1
  687. package/dist/node_modules/@mui/material/TableCell/TableCell/index.esm.js.map +1 -1
  688. package/dist/node_modules/@mui/material/TableCell/TableCell/index.js +1 -1
  689. package/dist/node_modules/@mui/material/TableCell/TableCell/index.js.map +1 -1
  690. package/dist/node_modules/@mui/material/TableContainer/TableContainer/index.esm.js +2 -1
  691. package/dist/node_modules/@mui/material/TableContainer/TableContainer/index.esm.js.map +1 -1
  692. package/dist/node_modules/@mui/material/TableContainer/TableContainer/index.js +2 -2
  693. package/dist/node_modules/@mui/material/TableContainer/TableContainer/index.js.map +1 -1
  694. package/dist/node_modules/@mui/material/TableFooter/TableFooter/index.esm.js +2 -1
  695. package/dist/node_modules/@mui/material/TableFooter/TableFooter/index.esm.js.map +1 -1
  696. package/dist/node_modules/@mui/material/TableFooter/TableFooter/index.js +1 -1
  697. package/dist/node_modules/@mui/material/TableFooter/TableFooter/index.js.map +1 -1
  698. package/dist/node_modules/@mui/material/TableHead/TableHead/index.esm.js +2 -1
  699. package/dist/node_modules/@mui/material/TableHead/TableHead/index.esm.js.map +1 -1
  700. package/dist/node_modules/@mui/material/TableHead/TableHead/index.js +1 -1
  701. package/dist/node_modules/@mui/material/TableHead/TableHead/index.js.map +1 -1
  702. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js +2 -1
  703. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js.map +1 -1
  704. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js +2 -2
  705. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js.map +1 -1
  706. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js +2 -1
  707. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js.map +1 -1
  708. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js +2 -2
  709. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js.map +1 -1
  710. package/dist/node_modules/@mui/material/TableRow/TableRow/index.esm.js +2 -1
  711. package/dist/node_modules/@mui/material/TableRow/TableRow/index.esm.js.map +1 -1
  712. package/dist/node_modules/@mui/material/TableRow/TableRow/index.js +1 -1
  713. package/dist/node_modules/@mui/material/TableRow/TableRow/index.js.map +1 -1
  714. package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel/index.esm.js +2 -1
  715. package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel/index.esm.js.map +1 -1
  716. package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel/index.js +1 -1
  717. package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel/index.js.map +1 -1
  718. package/dist/node_modules/@mui/material/Tabs/ScrollbarSize/index.esm.js +2 -1
  719. package/dist/node_modules/@mui/material/Tabs/ScrollbarSize/index.esm.js.map +1 -1
  720. package/dist/node_modules/@mui/material/Tabs/ScrollbarSize/index.js +1 -1
  721. package/dist/node_modules/@mui/material/Tabs/ScrollbarSize/index.js.map +1 -1
  722. package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js +7 -6
  723. package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js.map +1 -1
  724. package/dist/node_modules/@mui/material/Tabs/Tabs/index.js +2 -2
  725. package/dist/node_modules/@mui/material/Tabs/Tabs/index.js.map +1 -1
  726. package/dist/node_modules/@mui/material/TextField/TextField/index.esm.js +3 -2
  727. package/dist/node_modules/@mui/material/TextField/TextField/index.esm.js.map +1 -1
  728. package/dist/node_modules/@mui/material/TextField/TextField/index.js +2 -2
  729. package/dist/node_modules/@mui/material/TextField/TextField/index.js.map +1 -1
  730. package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize/index.esm.js +2 -1
  731. package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize/index.esm.js.map +1 -1
  732. package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize/index.js +1 -1
  733. package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize/index.js.map +1 -1
  734. package/dist/node_modules/@mui/material/ToggleButton/ToggleButton/index.esm.js +2 -1
  735. package/dist/node_modules/@mui/material/ToggleButton/ToggleButton/index.esm.js.map +1 -1
  736. package/dist/node_modules/@mui/material/ToggleButton/ToggleButton/index.js +1 -1
  737. package/dist/node_modules/@mui/material/ToggleButton/ToggleButton/index.js.map +1 -1
  738. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup/index.esm.js +3 -2
  739. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup/index.esm.js.map +1 -1
  740. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup/index.js +2 -2
  741. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup/index.js.map +1 -1
  742. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext/index.esm.js +2 -1
  743. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext/index.esm.js.map +1 -1
  744. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext/index.js +1 -1
  745. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext/index.js.map +1 -1
  746. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext/index.esm.js +2 -1
  747. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext/index.esm.js.map +1 -1
  748. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext/index.js +1 -1
  749. package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext/index.js.map +1 -1
  750. package/dist/node_modules/@mui/material/Toolbar/Toolbar/index.esm.js +2 -1
  751. package/dist/node_modules/@mui/material/Toolbar/Toolbar/index.esm.js.map +1 -1
  752. package/dist/node_modules/@mui/material/Toolbar/Toolbar/index.js +2 -2
  753. package/dist/node_modules/@mui/material/Toolbar/Toolbar/index.js.map +1 -1
  754. package/dist/node_modules/@mui/material/Tooltip/Tooltip/index.esm.js +5 -4
  755. package/dist/node_modules/@mui/material/Tooltip/Tooltip/index.esm.js.map +1 -1
  756. package/dist/node_modules/@mui/material/Tooltip/Tooltip/index.js +2 -2
  757. package/dist/node_modules/@mui/material/Tooltip/Tooltip/index.js.map +1 -1
  758. package/dist/node_modules/@mui/material/Typography/Typography/index.esm.js +2 -1
  759. package/dist/node_modules/@mui/material/Typography/Typography/index.esm.js.map +1 -1
  760. package/dist/node_modules/@mui/material/Typography/Typography/index.js +2 -2
  761. package/dist/node_modules/@mui/material/Typography/Typography/index.js.map +1 -1
  762. package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap/index.esm.js +4 -3
  763. package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap/index.esm.js.map +1 -1
  764. package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap/index.js +2 -2
  765. package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap/index.js.map +1 -1
  766. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js +2 -1
  767. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js.map +1 -1
  768. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js +1 -1
  769. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js.map +1 -1
  770. package/dist/node_modules/@mui/material/internal/SwitchBase/index.esm.js +2 -1
  771. package/dist/node_modules/@mui/material/internal/SwitchBase/index.esm.js.map +1 -1
  772. package/dist/node_modules/@mui/material/internal/SwitchBase/index.js +2 -2
  773. package/dist/node_modules/@mui/material/internal/SwitchBase/index.js.map +1 -1
  774. package/dist/node_modules/@mui/material/styles/ThemeProvider/index.esm.js +2 -1
  775. package/dist/node_modules/@mui/material/styles/ThemeProvider/index.esm.js.map +1 -1
  776. package/dist/node_modules/@mui/material/styles/ThemeProvider/index.js +1 -1
  777. package/dist/node_modules/@mui/material/styles/ThemeProvider/index.js.map +1 -1
  778. package/dist/node_modules/@mui/material/styles/createPalette/index.esm.js +5 -4
  779. package/dist/node_modules/@mui/material/styles/createPalette/index.esm.js.map +1 -1
  780. package/dist/node_modules/@mui/material/styles/createPalette/index.js +1 -1
  781. package/dist/node_modules/@mui/material/styles/createPalette/index.js.map +1 -1
  782. package/dist/node_modules/@mui/material/styles/createTheme/index.esm.js +4 -3
  783. package/dist/node_modules/@mui/material/styles/createTheme/index.esm.js.map +1 -1
  784. package/dist/node_modules/@mui/material/styles/createTheme/index.js +1 -1
  785. package/dist/node_modules/@mui/material/styles/createTheme/index.js.map +1 -1
  786. package/dist/node_modules/@mui/material/styles/createTransitions/index.esm.js +2 -1
  787. package/dist/node_modules/@mui/material/styles/createTransitions/index.esm.js.map +1 -1
  788. package/dist/node_modules/@mui/material/styles/createTransitions/index.js +1 -1
  789. package/dist/node_modules/@mui/material/styles/createTransitions/index.js.map +1 -1
  790. package/dist/node_modules/@mui/material/styles/createTypography/index.esm.js +2 -1
  791. package/dist/node_modules/@mui/material/styles/createTypography/index.esm.js.map +1 -1
  792. package/dist/node_modules/@mui/material/styles/createTypography/index.js +1 -1
  793. package/dist/node_modules/@mui/material/styles/createTypography/index.js.map +1 -1
  794. package/dist/node_modules/@mui/material/styles/useTheme/index.esm.js +2 -1
  795. package/dist/node_modules/@mui/material/styles/useTheme/index.esm.js.map +1 -1
  796. package/dist/node_modules/@mui/material/styles/useTheme/index.js +1 -1
  797. package/dist/node_modules/@mui/material/styles/useTheme/index.js.map +1 -1
  798. package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete/index.esm.js +6 -5
  799. package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete/index.esm.js.map +1 -1
  800. package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete/index.js +1 -1
  801. package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete/index.js.map +1 -1
  802. package/dist/node_modules/@mui/material/utils/createSvgIcon/index.esm.js +2 -1
  803. package/dist/node_modules/@mui/material/utils/createSvgIcon/index.esm.js.map +1 -1
  804. package/dist/node_modules/@mui/material/utils/createSvgIcon/index.js +2 -2
  805. package/dist/node_modules/@mui/material/utils/createSvgIcon/index.js.map +1 -1
  806. package/dist/node_modules/@mui/material/utils/index/index.esm.js +2 -1
  807. package/dist/node_modules/@mui/material/utils/index/index.esm.js.map +1 -1
  808. package/dist/node_modules/@mui/material/utils/index/index.js +1 -1
  809. package/dist/node_modules/@mui/material/utils/index/index.js.map +1 -1
  810. package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider/index.esm.js +6 -5
  811. package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider/index.esm.js.map +1 -1
  812. package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider/index.js +2 -2
  813. package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider/index.js.map +1 -1
  814. package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext/index.esm.js +2 -1
  815. package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext/index.esm.js.map +1 -1
  816. package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext/index.js +1 -1
  817. package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext/index.js.map +1 -1
  818. package/dist/node_modules/@mui/private-theming/useTheme/useTheme/index.esm.js +2 -1
  819. package/dist/node_modules/@mui/private-theming/useTheme/useTheme/index.esm.js.map +1 -1
  820. package/dist/node_modules/@mui/private-theming/useTheme/useTheme/index.js +1 -1
  821. package/dist/node_modules/@mui/private-theming/useTheme/useTheme/index.js.map +1 -1
  822. package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles/index.esm.js +2 -1
  823. package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles/index.esm.js.map +1 -1
  824. package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles/index.js +1 -1
  825. package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles/index.js.map +1 -1
  826. package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider/index.esm.js +2 -1
  827. package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider/index.esm.js.map +1 -1
  828. package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider/index.js +1 -1
  829. package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider/index.js.map +1 -1
  830. package/dist/node_modules/@mui/styled-engine/index/index.esm.js +2 -8
  831. package/dist/node_modules/@mui/styled-engine/index/index.esm.js.map +1 -1
  832. package/dist/node_modules/@mui/styled-engine/index/index.js +1 -1
  833. package/dist/node_modules/@mui/styled-engine/index/index.js.map +1 -1
  834. package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +11 -10
  835. package/dist/node_modules/@mui/system/colorManipulator/index.esm.js.map +1 -1
  836. package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
  837. package/dist/node_modules/@mui/system/colorManipulator/index.js.map +1 -1
  838. package/dist/node_modules/@mui/system/createStyled/index.esm.js +9 -8
  839. package/dist/node_modules/@mui/system/createStyled/index.esm.js.map +1 -1
  840. package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
  841. package/dist/node_modules/@mui/system/createStyled/index.js.map +1 -1
  842. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.esm.js +2 -1
  843. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.esm.js.map +1 -1
  844. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.js +2 -2
  845. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.js.map +1 -1
  846. package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider/index.esm.js +2 -1
  847. package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider/index.esm.js.map +1 -1
  848. package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider/index.js +2 -2
  849. package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider/index.js.map +1 -1
  850. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles/index.esm.js +2 -1
  851. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles/index.esm.js.map +1 -1
  852. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles/index.js +1 -1
  853. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles/index.js.map +1 -1
  854. package/dist/node_modules/@mui/system/esm/RtlProvider/index/index.esm.js +2 -1
  855. package/dist/node_modules/@mui/system/esm/RtlProvider/index/index.esm.js.map +1 -1
  856. package/dist/node_modules/@mui/system/esm/RtlProvider/index/index.js +1 -1
  857. package/dist/node_modules/@mui/system/esm/RtlProvider/index/index.js.map +1 -1
  858. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js +2 -1
  859. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js.map +1 -1
  860. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js +2 -2
  861. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js.map +1 -1
  862. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider/index.esm.js +5 -4
  863. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider/index.esm.js.map +1 -1
  864. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider/index.js +2 -2
  865. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider/index.js.map +1 -1
  866. package/dist/node_modules/@mui/system/esm/borders/index.esm.js +2 -1
  867. package/dist/node_modules/@mui/system/esm/borders/index.esm.js.map +1 -1
  868. package/dist/node_modules/@mui/system/esm/borders/index.js +1 -1
  869. package/dist/node_modules/@mui/system/esm/borders/index.js.map +1 -1
  870. package/dist/node_modules/@mui/system/esm/breakpoints/index.esm.js.map +1 -1
  871. package/dist/node_modules/@mui/system/esm/breakpoints/index.js.map +1 -1
  872. package/dist/node_modules/@mui/system/esm/colorManipulator/index.esm.js +4 -3
  873. package/dist/node_modules/@mui/system/esm/colorManipulator/index.esm.js.map +1 -1
  874. package/dist/node_modules/@mui/system/esm/colorManipulator/index.js +1 -1
  875. package/dist/node_modules/@mui/system/esm/colorManipulator/index.js.map +1 -1
  876. package/dist/node_modules/@mui/system/esm/compose/index.esm.js +2 -1
  877. package/dist/node_modules/@mui/system/esm/compose/index.esm.js.map +1 -1
  878. package/dist/node_modules/@mui/system/esm/compose/index.js +1 -1
  879. package/dist/node_modules/@mui/system/esm/compose/index.js.map +1 -1
  880. package/dist/node_modules/@mui/system/esm/createStyled/index.esm.js +3 -2
  881. package/dist/node_modules/@mui/system/esm/createStyled/index.esm.js.map +1 -1
  882. package/dist/node_modules/@mui/system/esm/createStyled/index.js +1 -1
  883. package/dist/node_modules/@mui/system/esm/createStyled/index.js.map +1 -1
  884. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing/index.esm.js +2 -1
  885. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing/index.esm.js.map +1 -1
  886. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing/index.js +1 -1
  887. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing/index.js.map +1 -1
  888. package/dist/node_modules/@mui/system/esm/cssGrid/index.esm.js +4 -3
  889. package/dist/node_modules/@mui/system/esm/cssGrid/index.esm.js.map +1 -1
  890. package/dist/node_modules/@mui/system/esm/cssGrid/index.js +1 -1
  891. package/dist/node_modules/@mui/system/esm/cssGrid/index.js.map +1 -1
  892. package/dist/node_modules/@mui/system/esm/responsivePropType/index.esm.js +2 -1
  893. package/dist/node_modules/@mui/system/esm/responsivePropType/index.esm.js.map +1 -1
  894. package/dist/node_modules/@mui/system/esm/responsivePropType/index.js +1 -1
  895. package/dist/node_modules/@mui/system/esm/responsivePropType/index.js.map +1 -1
  896. package/dist/node_modules/@mui/system/esm/spacing/index.esm.js +7 -6
  897. package/dist/node_modules/@mui/system/esm/spacing/index.esm.js.map +1 -1
  898. package/dist/node_modules/@mui/system/esm/spacing/index.js +1 -1
  899. package/dist/node_modules/@mui/system/esm/spacing/index.js.map +1 -1
  900. package/dist/node_modules/@mui/system/esm/style/index.esm.js +2 -1
  901. package/dist/node_modules/@mui/system/esm/style/index.esm.js.map +1 -1
  902. package/dist/node_modules/@mui/system/esm/style/index.js +1 -1
  903. package/dist/node_modules/@mui/system/esm/style/index.js.map +1 -1
  904. package/dist/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.esm.js +3 -2
  905. package/dist/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.esm.js.map +1 -1
  906. package/dist/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.js +1 -1
  907. package/dist/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.js.map +1 -1
  908. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
  909. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
  910. package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType/index.esm.js +2 -1
  911. package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType/index.esm.js.map +1 -1
  912. package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType/index.js +1 -1
  913. package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType/index.js.map +1 -1
  914. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize/index.esm.js +2 -1
  915. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize/index.esm.js.map +1 -1
  916. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize/index.js +1 -1
  917. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize/index.js.map +1 -1
  918. package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes/index.esm.js +2 -1
  919. package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes/index.esm.js.map +1 -1
  920. package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes/index.js +1 -1
  921. package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes/index.js.map +1 -1
  922. package/dist/node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType/index.esm.js +2 -1
  923. package/dist/node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType/index.esm.js.map +1 -1
  924. package/dist/node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType/index.js +1 -1
  925. package/dist/node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType/index.js.map +1 -1
  926. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp/index.esm.js +2 -1
  927. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp/index.esm.js.map +1 -1
  928. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp/index.js +1 -1
  929. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp/index.js.map +1 -1
  930. package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType/index.esm.js +2 -1
  931. package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType/index.esm.js.map +1 -1
  932. package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType/index.js +1 -1
  933. package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType/index.js.map +1 -1
  934. package/dist/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory/index.esm.js +2 -1
  935. package/dist/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory/index.esm.js.map +1 -1
  936. package/dist/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory/index.js +1 -1
  937. package/dist/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory/index.js.map +1 -1
  938. package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp/index.esm.js +2 -1
  939. package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp/index.esm.js.map +1 -1
  940. package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp/index.js +1 -1
  941. package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp/index.js.map +1 -1
  942. package/dist/node_modules/@mui/utils/esm/useControlled/useControlled/index.esm.js +2 -1
  943. package/dist/node_modules/@mui/utils/esm/useControlled/useControlled/index.esm.js.map +1 -1
  944. package/dist/node_modules/@mui/utils/esm/useControlled/useControlled/index.js +1 -1
  945. package/dist/node_modules/@mui/utils/esm/useControlled/useControlled/index.js.map +1 -1
  946. package/dist/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar/index.esm.js +2 -1
  947. package/dist/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar/index.esm.js.map +1 -1
  948. package/dist/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar/index.js +1 -1
  949. package/dist/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar/index.js.map +1 -1
  950. package/dist/node_modules/@mui/x-date-pickers/DateField/DateField/index.esm.js +2 -1
  951. package/dist/node_modules/@mui/x-date-pickers/DateField/DateField/index.esm.js.map +1 -1
  952. package/dist/node_modules/@mui/x-date-pickers/DateField/DateField/index.js +2 -2
  953. package/dist/node_modules/@mui/x-date-pickers/DateField/DateField/index.js.map +1 -1
  954. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePicker/index.esm.js +2 -1
  955. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePicker/index.esm.js.map +1 -1
  956. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePicker/index.js +1 -1
  957. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePicker/index.js.map +1 -1
  958. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar/index.esm.js +2 -1
  959. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar/index.esm.js.map +1 -1
  960. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar/index.js +1 -1
  961. package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar/index.js.map +1 -1
  962. package/dist/node_modules/@mui/x-date-pickers/DateTimeField/DateTimeField/index.esm.js +2 -1
  963. package/dist/node_modules/@mui/x-date-pickers/DateTimeField/DateTimeField/index.esm.js.map +1 -1
  964. package/dist/node_modules/@mui/x-date-pickers/DateTimeField/DateTimeField/index.js +2 -2
  965. package/dist/node_modules/@mui/x-date-pickers/DateTimeField/DateTimeField/index.js.map +1 -1
  966. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker/index.esm.js +2 -1
  967. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker/index.esm.js.map +1 -1
  968. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker/index.js +1 -1
  969. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker/index.js.map +1 -1
  970. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs/index.esm.js +2 -1
  971. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs/index.esm.js.map +1 -1
  972. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs/index.js +1 -1
  973. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs/index.js.map +1 -1
  974. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar/index.esm.js +2 -1
  975. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar/index.esm.js.map +1 -1
  976. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar/index.js +1 -1
  977. package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar/index.js.map +1 -1
  978. package/dist/node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock/index.esm.js +2 -1
  979. package/dist/node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock/index.esm.js.map +1 -1
  980. package/dist/node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock/index.js +1 -1
  981. package/dist/node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock/index.js.map +1 -1
  982. package/dist/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider/index.esm.js +3 -2
  983. package/dist/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider/index.esm.js.map +1 -1
  984. package/dist/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider/index.js +2 -2
  985. package/dist/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider/index.js.map +1 -1
  986. package/dist/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar/index.esm.js +2 -1
  987. package/dist/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar/index.esm.js.map +1 -1
  988. package/dist/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar/index.js +1 -1
  989. package/dist/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar/index.js.map +1 -1
  990. package/dist/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock/index.esm.js +2 -1
  991. package/dist/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock/index.esm.js.map +1 -1
  992. package/dist/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock/index.js +1 -1
  993. package/dist/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock/index.js.map +1 -1
  994. package/dist/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar/index.esm.js +2 -1
  995. package/dist/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar/index.esm.js.map +1 -1
  996. package/dist/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar/index.js +4 -4
  997. package/dist/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar/index.js.map +1 -1
  998. package/dist/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader/index.esm.js +2 -1
  999. package/dist/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader/index.esm.js.map +1 -1
  1000. package/dist/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader/index.js +1 -1
  1001. package/dist/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader/index.js.map +1 -1
  1002. package/dist/node_modules/@mui/x-date-pickers/PickersDay/PickersDay/index.esm.js +5 -4
  1003. package/dist/node_modules/@mui/x-date-pickers/PickersDay/PickersDay/index.esm.js.map +1 -1
  1004. package/dist/node_modules/@mui/x-date-pickers/PickersDay/PickersDay/index.js +1 -1
  1005. package/dist/node_modules/@mui/x-date-pickers/PickersDay/PickersDay/index.js.map +1 -1
  1006. package/dist/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout/index.esm.js +2 -1
  1007. package/dist/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout/index.esm.js.map +1 -1
  1008. package/dist/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout/index.js +1 -1
  1009. package/dist/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout/index.js.map +1 -1
  1010. package/dist/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts/index.esm.js +2 -1
  1011. package/dist/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts/index.esm.js.map +1 -1
  1012. package/dist/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts/index.js +2 -2
  1013. package/dist/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts/index.js.map +1 -1
  1014. package/dist/node_modules/@mui/x-date-pickers/TimeClock/TimeClock/index.esm.js +2 -1
  1015. package/dist/node_modules/@mui/x-date-pickers/TimeClock/TimeClock/index.esm.js.map +1 -1
  1016. package/dist/node_modules/@mui/x-date-pickers/TimeClock/TimeClock/index.js +2 -2
  1017. package/dist/node_modules/@mui/x-date-pickers/TimeClock/TimeClock/index.js.map +1 -1
  1018. package/dist/node_modules/@mui/x-date-pickers/TimeField/TimeField/index.esm.js +2 -1
  1019. package/dist/node_modules/@mui/x-date-pickers/TimeField/TimeField/index.esm.js.map +1 -1
  1020. package/dist/node_modules/@mui/x-date-pickers/TimeField/TimeField/index.js +1 -1
  1021. package/dist/node_modules/@mui/x-date-pickers/TimeField/TimeField/index.js.map +1 -1
  1022. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePicker/index.esm.js +2 -1
  1023. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePicker/index.esm.js.map +1 -1
  1024. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePicker/index.js +1 -1
  1025. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePicker/index.js.map +1 -1
  1026. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar/index.esm.js +2 -1
  1027. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar/index.esm.js.map +1 -1
  1028. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar/index.js +2 -2
  1029. package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar/index.js.map +1 -1
  1030. package/dist/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar/index.esm.js +2 -1
  1031. package/dist/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar/index.esm.js.map +1 -1
  1032. package/dist/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar/index.js +2 -2
  1033. package/dist/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar/index.js.map +1 -1
  1034. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils/index.esm.js +4 -3
  1035. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils/index.esm.js.map +1 -1
  1036. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils/index.js +1 -1
  1037. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils/index.js.map +1 -1
  1038. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker/index.esm.js +2 -1
  1039. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker/index.esm.js.map +1 -1
  1040. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker/index.js +1 -1
  1041. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker/index.js.map +1 -1
  1042. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue/index.esm.js +2 -1
  1043. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue/index.esm.js.map +1 -1
  1044. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue/index.js +1 -1
  1045. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue/index.js.map +1 -1
  1046. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useViews/index.esm.js +2 -1
  1047. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useViews/index.esm.js.map +1 -1
  1048. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useViews/index.js +1 -1
  1049. package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useViews/index.js.map +1 -1
  1050. package/dist/node_modules/@mui/x-date-pickers/internals/utils/warning/index.esm.js.map +1 -1
  1051. package/dist/node_modules/@react-querybuilder/material/dist/react-querybuilder_material/index.esm.js.map +1 -1
  1052. package/dist/node_modules/@react-querybuilder/material/dist/react-querybuilder_material/index.js.map +1 -1
  1053. package/dist/node_modules/@tanstack/table-core/build/lib/index/index.esm.js +11 -20
  1054. package/dist/node_modules/@tanstack/table-core/build/lib/index/index.esm.js.map +1 -1
  1055. package/dist/node_modules/@tanstack/table-core/build/lib/index/index.js +1 -1
  1056. package/dist/node_modules/@tanstack/table-core/build/lib/index/index.js.map +1 -1
  1057. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index/index.esm.js +7 -6
  1058. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index/index.esm.js.map +1 -1
  1059. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index/index.js +1 -1
  1060. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index/index.js.map +1 -1
  1061. package/dist/node_modules/notistack/notistack.esm/index.esm.js +3 -2
  1062. package/dist/node_modules/notistack/notistack.esm/index.esm.js.map +1 -1
  1063. package/dist/node_modules/notistack/notistack.esm/index.js +1 -1
  1064. package/dist/node_modules/notistack/notistack.esm/index.js.map +1 -1
  1065. package/dist/node_modules/prop-types/checkPropTypes/index.esm.js +4 -3
  1066. package/dist/node_modules/prop-types/checkPropTypes/index.esm.js.map +1 -1
  1067. package/dist/node_modules/prop-types/checkPropTypes/index.js +1 -1
  1068. package/dist/node_modules/prop-types/checkPropTypes/index.js.map +1 -1
  1069. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js +6 -5
  1070. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js.map +1 -1
  1071. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js +1 -1
  1072. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js.map +1 -1
  1073. package/dist/node_modules/prop-types/index/index.esm.js +2 -1
  1074. package/dist/node_modules/prop-types/index/index.esm.js.map +1 -1
  1075. package/dist/node_modules/prop-types/index/index.js +1 -1
  1076. package/dist/node_modules/prop-types/index/index.js.map +1 -1
  1077. package/dist/style.css +2 -2
  1078. package/dist/utils/api/index.esm.js +4 -4
  1079. package/dist/utils/api/index.esm.js.map +1 -1
  1080. package/dist/utils/api/index.js +1 -1
  1081. package/dist/utils/api/index.js.map +1 -1
  1082. package/dist/utils/common/index.esm.js +8 -8
  1083. package/dist/utils/common/index.esm.js.map +1 -1
  1084. package/dist/utils/common/index.js +1 -1
  1085. package/dist/utils/common/index.js.map +1 -1
  1086. package/dist/views/template-editor/components/EditorSidebar/index.esm.js +3 -3
  1087. package/dist/views/template-editor/components/EditorSidebar/index.esm.js.map +1 -1
  1088. package/dist/views/template-editor/components/EditorSidebar/index.js +14 -14
  1089. package/dist/views/template-editor/components/EditorSidebar/index.js.map +1 -1
  1090. package/dist/views/template-editor/templates/index.esm.js +1 -1
  1091. package/dist/views/template-editor/templates/index.esm.js.map +1 -1
  1092. package/dist/views/template-editor/templates/index.js +1 -1
  1093. package/dist/views/template-editor/templates/index.js.map +1 -1
  1094. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/action-bar/action-bar.tsx"],"sourcesContent":["import Button from '../button/button';\nimport Typography from '../typography/typography';\n/* eslint-disable no-mixed-spaces-and-tabs */\nimport './action-bar.scss';\nimport {\n\t/* IconButton, */ Box,\n\tDivider,\n\tIconButton,\n\tMenu,\n\tMenuItem,\n\tuseMediaQuery,\n\tuseTheme\n} from '@mui/material';\nimport AddIcon from '@mui/icons-material/Add';\nimport ViewModal from '../view-modal/view-modal';\nimport HeaderCard from '../header-card/header-card';\nimport SearchBar from '../search-bar/search-bar';\nimport { useEffect, useMemo, useState } from 'react';\nimport images from '../../assets/images';\nimport Toggle from '../toggle/toggle';\nimport Filter from '../filter/filter';\nimport Select from '../select/select';\nimport { RuleGroupType } from 'react-querybuilder';\nimport SaveFilterModal from '../save-filter-modal/save-filter-modal';\nimport {\n\tsetBaseUrl,\n\tpostV1Filter,\n\tgetV1FilterResource\n} from '../../api-client/api.system-feature/api';\nimport type * as Types from '../../api-client/api.system-feature/api-types';\nimport { auth } from '../../constants/auth';\nimport DropdownButton from '../dropdown-button/dropdown-button';\nimport TitleDropdownButton from '../title-dropdown-button/title-dropdown-button';\nimport { useAppDispatch, useAppSelector } from '../../redux/hooks';\nimport { getToken } from '../../utils/common';\nimport React from 'react';\nimport UploadExcel from '../upload-excel/upload-excel';\nimport { generateQueryString, getErrorMessage, getExcelTemplateGenerateTemplate, getOperatorLabel, getExcelExportTemplate } from '../../utils/common';\nimport { initialFilter, ViewType } from '../../contexts/page-context';\nimport { usePages } from '../../hooks/use-pages';\nimport Chip from '../chip/chip';\nimport formatText, { formatLabel } from '../../utils/format-text';\nimport { Cancel } from '@mui/icons-material';\nimport { useLocation } from 'react-router-dom';\nimport { IResources, routeToResourceMap } from '../../constants/route-page-map';\nimport { enqueueSnackbar } from 'notistack';\nimport { useTranslation } from 'react-i18next';\nimport { FilterRemove, Filter as FilterIcon, Search, FolderSave, Export, Import, DocumentDownload } from '../icons';\n\nsetBaseUrl(`${import.meta.env.VITE_BACKEND_BASE_URL}/system-feature`);\n\ninterface ActionData {\n\tlabel: string;\n\tposition: number;\n}\ninterface ActionBarPropsType {\n\ttitle: string;\n\tdata: ActionData[];\n\tsetData: React.Dispatch<React.SetStateAction<ActionData[]>>;\n\tactive: string;\n\tsetActive: (view: ViewType) => void;\n\thandleAddButton?: (e?: any) => void;\n\tbutton?: boolean;\n\thandleSearch?: (value: string) => void;\n\tfilters?: string;\n\tdisabledViews?: string[];\n\tisDropdownMenuButton?: boolean;\n\titemListingDropdownOptions?: any;\n\tisTitleMenu?: boolean;\n\ttitleMenus?: any;\n\tfolderData?: any;\n\ttype?: any;\n\tfields?: any;\n\tapplyFilter?: any;\n\tsavedFilters?: SavedFilter;\n\tsetSavedFilters?: (view: SavedFilter) => void;\n\tisToggleButton?: boolean;\n\thandleToggleButton?: (e?: any) => void;\n\tshowView?: boolean;\n\tshowSearch?: boolean;\n\tshowFilter?: boolean;\n\tcustomButtons?: React.ReactNode[] | JSX.Element[];\n\tactionBtn?: React.ReactNode[] | JSX.Element[];\n\tpageName?: string;\n\timportModuleName?: string;\n\tsearchText?:string;\n\tselectedIds?:any;\n\n}\n\ninterface SavedFilter {\n\tid: string;\n\tname: string;\n\tquery: RuleGroupType;\n}\n\nconst ActionBar = React.memo((props: ActionBarPropsType) => {\n\tconst token = localStorage.getItem(auth.storageTokenKeyName) || undefined;\n\tconst location = useLocation();\n\n\tconst {\n\t\ttitle,\n\t\tdata,\n\t\tsetData,\n\t\tactive,\n\t\tsetActive,\n\t\thandleAddButton,\n\t\thandleSearch,\n\t\tbutton = true,\n\t\tdisabledViews,\n\t\tisDropdownMenuButton = false,\n\t\titemListingDropdownOptions = [],\n\t\tisTitleMenu = false,\n\t\ttitleMenus = [],\n\t\ttype,\n\t\tfields = [],\n\t\tapplyFilter,\n\t\t// setSavedFilters,\n\t\t// savedFilters,\n\t\tisToggleButton = false,\n\t\thandleToggleButton,\n\t\tshowSearch = true,\n\t\tshowFilter = true,\n\t\tshowView = true,\n\t\tcustomButtons,\n\t\tpageName,\n\t\tactionBtn,\n\t\timportModuleName,\n\t\tselectedIds,\n searchText\n\t} = props;\n\tconst dispatch = useAppDispatch();\n\tconst [isToggled, setIsToggled] = useState<boolean>(false);\n\tconst [isToggledForItem, setIsToggledForItem] = useState<boolean>(false);\n\tconst [openFilterPopup, setOpenFilterPopup] = useState<boolean>(false);\n\tconst [status, setStatus] = useState<string>('');\n\tconst [openSaveFilter, setIsOpenSaveFilter] = useState<boolean>(false);\n\tconst [rowAnchorEl, setRowAnchorEl] = useState<null | HTMLElement>(null);\n\tconst [isUploadModalOpen, setIsUploadModalOpen] = useState(false);\n\tconst [savedFilters, setSavedFilters] = useState<any[]>([]);\n\t// const [selectedSavedFilter, setSelectedSavedFilter] = useState<any>(null);\n\tconst [searchedText, setSearchedText] = useState<string>(\"\");\n const {t}=useTranslation();\n\tconst theme = useTheme();\n const isLgUp = useMediaQuery(theme.breakpoints.up('xl'));\n\tconst { activePage, updatePageInfo, schemaFields,setActivePage } = usePages();\n\tconst { filters } = activePage;\n\n\tconst resources: IResources = useMemo(() => routeToResourceMap[location.pathname] || null, [location.pathname])\n\n\tconst { filterBar, filterQuery } = useAppSelector((store) => {\n\t\treturn store?.drive;\n\t});\n\t\n\n\n\tuseEffect(() => {\n\t\tfetchSavedFilters();\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, []);\n\n\tconst fetchSavedFilters = async (): Promise<void> => {\n\t\tif(resources?.pageResource || resources?.fieldResource) {\n\t\t\tgetV1FilterResource({ ...getToken(), resource: resources?.pageResource || resources?.fieldResource })\n\t\t\t\t.then((response: any) => {\n\t\t\t\t\tconst savedFilters = response.data.result.map((e: any) => {\n\t\t\t\t\t\treturn { id: e._id, name: e.name, query: e.data };\n\t\t\t\t\t});\n\t\n\t\t\t\t\tsetSavedFilters?.(savedFilters);\n\t\t\t\t})\n\t\t\t\t.catch((err: any) => console.log('Error fetching saved filters:', err));\n\t\t} else{\n\t\t\tsetSavedFilters([])\n\t\t}\n\t};\n\n\n\tconst handleFilterHide = () => {\n\t\t// dispatch(setFilterBar(false));\n\t\treturn\n\t};\n\n\tconst handleStatusChange = (event: any) => {\n\t\tsetStatus(event.target.value);\n\t};\n\n\tconst handleSaveFilterClick = () => {\n\t\tif (filters?.rules) {\n\t\t\tsetIsOpenSaveFilter(true);\n\t\t}\n\t};\n\n\tconst handleImportClick = (event: any) => {\n\t\tsetRowAnchorEl(event.currentTarget);\n\t};\n\n\tconst handleActionsClose = () => {\n\t\tsetRowAnchorEl(null);\n\t};\n\n\tconst handleSaveFilter = (query: RuleGroupType) => {\n\t\t// dispatch(setFilterQuery(query));\n\t\treturn \n\t};\n\n\tconst handleSave = async (name: string, filterQuery: RuleGroupType) => {\n\t\t\n\t\t// dispatch(setFilterBar(false));\n\t\t\n\t\tconst postFilterRequest: Types.PostV1FilterRequest = {\n\t\t\t'x-token': token,\n\t\t\tmodule: resources?.pageResource || resources?.fieldResource || 'erp-common',\n\t\t\tname: name,\n\t\t\tis_applied: true,\n\t\t\tdata: filterQuery\n\t\t};\n\t\ttry {\n\t\t\tawait postV1Filter(postFilterRequest)\n\t\t\tenqueueSnackbar('Filters saved successfully.')\n\t\t\tsetActivePage((prev: any) => ({\n\t\t\t\t...prev,\n\t\t\t\tfilters: {\n\t\t\t\t\t...prev.filters,\n\t\t\t\t\tname,\n\t\t\t\t\trules: filterQuery.rules\n\t\t\t\t},\n\t\t\t\tfilterQueryString: generateQueryString(filterQuery)\n\t\t\t}));\n\t\t\tsetIsOpenSaveFilter(false);\n\t\t} catch (error) {\n\t\t\tlet m: string = 'Something went wrong on saving filters'\n\t\t\tif(error instanceof Error) {\n\t\t\t\tm = getErrorMessage(error.message)\n\t\t\t}\n\t\t\tenqueueSnackbar(m, {variant: 'error'})\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t};\n\n\tconst handleToggle = () => {\n\t\tsetIsToggled((prev) => !prev);\n\t\talert('Toggled');\n\t};\n\n\tconst handleChangeToggleButton = () => {\n\t\tsetIsToggledForItem((prev) => !prev);\n\t\thandleToggleButton?.();\n\t};\n\n\tconst handleCloseFilter = () => {\n\t\tsetOpenFilterPopup(false);\n\t};\n\n\tconst handleActiveHeaderCard = (data: ActionData) => {\n\t\tsetActive(data?.label);\n\t};\n\n\tconst downloadTemplate = async (moduleName: string) => {\n\t\tconst templateURL: any = await getExcelTemplateGenerateTemplate({\n\t\t\t'x-token': token,\n\t\t\tresource: moduleName\n\t\t});\n\t\tif (templateURL) {\n\t\t\tconst blob = await templateURL.blob();\n\n\t\t\tconst link = document.createElement('a');\n\n\t\t\tconst url = window.URL.createObjectURL(blob);\n\n\t\t\tlink.href = url;\n\t\t\tlink.download = `${moduleName}.xlsx`;\n\n\t\t\tdocument.body.appendChild(link);\n\t\t\tlink.click();\n\t\t\tdocument.body.removeChild(link);\n\t\t\twindow.URL.revokeObjectURL(url);\n\t\t}\n\t};\n\n\tconst exportExcel = async (moduleName: string,filterQueryString: string,selectedIds: any,title: string) => {\n\t\tconst templateURL: any = await getExcelExportTemplate({\n\t\t\t'x-token': token,\n\t\t\tactivePage: activePage,\n\t\t\tfilterQueryString: filterQueryString,\n\t\t\tselectedIds: selectedIds,\n\t\t\ttitle: title\n\t\t});\n\t\tif (templateURL) {\n\t\t\tconst blob = await templateURL.blob();\n\n\t\t\tconst link = document.createElement('a');\n\n\t\t\tconst url = window.URL.createObjectURL(blob);\n\n\t\t\tlink.href = url;\n\t\t\tlink.download = `${moduleName}.xlsx`;\n\n\t\t\tdocument.body.appendChild(link);\n\t\t\tlink.click();\n\t\t\tdocument.body.removeChild(link);\n\t\t\twindow.URL.revokeObjectURL(url);\n\t\t}\n\t};\n\n\tconst openImportTemplate = () => {\n\t\tsetIsUploadModalOpen(true);\n\t};\n\tconst rowActionMenu = [];\n\tif(pageName && (!importModuleName || selectedIds)){\n\t\trowActionMenu.push({\n\t\t\tlabel: 'Export Excel',\n\t\t\thandleAction: (moduleName: string) => exportExcel(moduleName,activePage.filterQueryString,selectedIds,title),\n\t\t\ticon: <Export fontSize='small'/>\n\t\t})\n\t}\n\tif(pageName && importModuleName){ {\n\t\trowActionMenu.push({\n\t\t\tlabel: 'Download Template ',\n\t\t\thandleAction: (moduleName: string) => downloadTemplate(moduleName),\n\t\t\ticon: <DocumentDownload fontSize='small'/>\n\t\t},\n\t\t{\n\t\t\tlabel: 'Import Template',\n\t\t\thandleAction: (moduleName: string) => openImportTemplate(moduleName),\n\t\t\ticon: <Import fontSize='small'/>\n\t\t})\n\t}}\n\n\tconst getFilterChipLabels = (rule: any) => {\n\t\trule = {...rule, field:rule.field?.replace(\"__replaceKey\", '')}\n\t\tlet label = schemaFields.find((f: any) => f.key === rule.field)?.label || rule.field;\n\t\tlabel = formatLabel(label?.replace('_id', ' '));\n\t\tconst opLabel = getOperatorLabel(rule, schemaFields);\n\n\t\tlet value = rule.value;\n\t\tif (Array.isArray(rule.value)) {\n\t\t\trule.value = rule.value.map(rv => formatLabel(typeof rv === 'object' ? (rv.label) : rv))\n\t\t\tvalue = rule.value.join(', ');\n\t\t}\n\n\t\treturn <Box sx={{display:'flex', alignItems:'center', gap:1}}>\n\t\t\t<Typography type='s5' color='theme.secondary.800' weight='medium'>{label}</Typography>\n\t\t\t\t<Divider orientation='vertical' flexItem />\n\t\t\t<Typography type='s5' color='theme.primary.800' weight='medium'>{formatText(opLabel)} {value}</Typography>\n\t\t</Box>\n\t\t// `${label}: ${value}`;\n\t};\n\n\tconst getFilterChip=(rr: any,index:any) => {\n\t\treturn (\n\t\t\t\t<Chip\n\t\t\t\t\t\t\t\tlabel={getFilterChipLabels(rr)}\n\t\t\t\t\t\t\t\tvariant='outlined'\n\t\t\t\t\t\t\t\tactive\n\t\t\t\t\t\t\t\tsx={({palette}) => ({\n\t\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\t\tborderColor: `${palette.grey[300]} !important`,\n\t\t\t\t\t\t\t\t\topacity: 0.8,\n\t\t\t\t\t\t\t\t\t'&:hover': { backgroundColor: `${palette.grey[200]} !important` },\n\t\t\t\t\t\t\t\t\tflexDirection: 'row-reverse',\n\t\t\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\t\t\tgap: 0.75,\n\t\t\t\t\t\t\t\t\tcursor: 'unset'\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tdeleteIcon={\n\t\t\t\t\t\t\t\t\t<Cancel\n\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\tfontSize: '1rem !important',\n\t\t\t\t\t\t\t\t\t\t\tcolor: '#919294 !important',\n\t\t\t\t\t\t\t\t\t\t\tmarginRight: 'auto !important',\n\t\t\t\t\t\t\t\t\t\t\tmarginLeft: `0 !important`,\n\t\t\t\t\t\t\t\t\t\t\t'&:hover': {\n\t\t\t\t\t\t\t\t\t\t\t\tcolor:'inherit !important'\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tonDelete={() => removeSignleFilter(index)}\n\t\t\t\t\t\t\t\tclickable={false}\n\t\t\t\t\t\t\t/>\n\t\t)\n\t}\n\n const removeSignleFilter = (ruleIndex: number) => {\n\t\tconst uRules: any[] = filters.rules.filter(\n\t\t\t(_, index) => index !== ruleIndex\n\t\t);\n\t\tconst uFilters = { ...filters, rules: uRules };\n\t\tconst filterQueryString = generateQueryString(uFilters);\n\n\t\tupdatePageInfo({\n\t\t\tfilters: uFilters,\n\t\t\tfilterQueryString\n\t\t});\n\t};\n\n\tconst isFilterApplied = (flt: any): boolean => Boolean(flt?.rules?.length);\n\tconst [searchAnchorEl, setSearchAnchorEl] = useState<HTMLElement | null>(null);\n\t// useEffect(() => {\n\t// \tif(activePage?.active_view ){\n\t// \t\tconst updateViews=activePage?.views?.length?activePage.views:[{\n\t// \t\t\tlabel:activePage?.active_view,\n\t// \t\t\tposition:0\n\t// \t\t}]\n\t// \t\tsetData(updateViews)\n\t// \t}\t\t\n\t// \t//eslint-disable-next-line\n\t// },[isCreatePage,activePage?.active_view])\n\n\tuseEffect(()=>{\t\n\t\tif(activePage?.search){\n\t\t\tsetSearchedText(activePage?.search)\n\t\t}\n\t},[activePage?.search])\n\n\tuseEffect(() => {\n\t\tif(searchedText){\n\t\t\thandleSearch?.(searchedText);\n\t\t\tupdatePageInfo({ search: searchedText });\n\t\t}\n\t\t//eslint-disable-next-line\n\t},[searchedText])\n\treturn (\n\t\t<div>\n\t\t\t<div className='action-bar'>\n\t\t\t\t<div className='action-bar--LeftContent'>\n\t\t\t\t\t{isTitleMenu ? (\n\t\t\t\t\t\t<div style={{ zIndex: 999 }}>\n\t\t\t\t\t\t\t<TitleDropdownButton\n\t\t\t\t\t\t\t\tonClick={handleAddButton}\n\t\t\t\t\t\t\t\toptions={titleMenus}\n\t\t\t\t\t\t\t\tisMenuThirdItemDisabled={true}\n\t\t\t\t\t\t\t\tcurrentTitle={title}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t</TitleDropdownButton>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<Typography type='h3' weight='medium' color='theme.secondary.1000'>\n\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t)}\n\t\t\t\t\t<div className='action-bar--HeaderCard'>\n\t\t\t\t\t\t{Boolean(data) &&\n\t\t\t\t\t\t\tdata\n\t\t\t\t\t\t\t\t.map((ele) => ele)\n\t\t\t\t\t\t\t\t.sort((a, b) => a.position - b.position)\n\t\t\t\t\t\t\t\t.map((item: ActionData) => (\n\t\t\t\t\t\t\t\t\t<HeaderCard\n\t\t\t\t\t\t\t\t\t\tkey={item?.position}\n\t\t\t\t\t\t\t\t\t\ttitle={item?.label}\n\t\t\t\t\t\t\t\t\t\tactive={active}\n\t\t\t\t\t\t\t\t\t\tonClick={() => handleActiveHeaderCard(item)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t{showView && (\n\t\t\t\t\t\t\t<ViewModal\n\t\t\t\t\t\t\t\tsetData={setData}\n\t\t\t\t\t\t\t\tdata={data}\n\t\t\t\t\t\t\t\tsetActive={setActive}\n\t\t\t\t\t\t\t\tdisabledViews={disabledViews}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<div className='action-bar--RightContent' style={{gap: isLgUp ? `1rem` : `0.5rem`}}>\n\t\t\t\t\t{isToggleButton && (\n\t\t\t\t\t\t<div className='item--VariantDisplay'>\n\t\t\t\t\t\t\t<div className='item--VariantHeading'>Variant:</div>\n\t\t\t\t\t\t\t<div className='item--VariantToggal'>\n\t\t\t\t\t\t\t\t<Toggle\n\t\t\t\t\t\t\t\t\tchecked={isToggledForItem}\n\t\t\t\t\t\t\t\t\tonChange={handleChangeToggleButton}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t{showSearch && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t{isLgUp ? \n\t\t\t\t\t\t\t<SearchBar\n\t\t\t\t\t\t\t\tplaceholder='Search'\n\t\t\t\t\t\t\t\thandleSearch={(e) => {\n\t\t\t\t\t\t\t\t\tsetSearchedText(e);\n\t\t\t\t\t\t\t\t\thandleSearch?.(e);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tdebounceTime={1000}\n\t\t\t\t\t\t\t\tisDrivePage={true}\n\t\t\t\t\t\t\t\tsearchText={searchedText}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t:\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<IconButton size='small' onClick={(e) => setSearchAnchorEl(e.currentTarget)}><Search fontSize='small' color='grey.1000'/> </IconButton>\n\t\t\t\t\t\t\t\t<Menu \n\t\t\t\t\t\t\t\t\tanchorEl={searchAnchorEl} \n\t\t\t\t\t\t\t\t\topen={Boolean(searchAnchorEl)} \n\t\t\t\t\t\t\t\t\tonClose={() => setSearchAnchorEl(null)}\n\t\t\t\t\t\t\t\t\tanchorOrigin={{\n\t\t\t\t\t\t\t\t\t\tvertical: 'top',\n\t\t\t\t\t\t\t\t\t\thorizontal: 'right',\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\ttransformOrigin={{\n\t\t\t\t\t\t\t\t\t\tvertical: 'top',\n\t\t\t\t\t\t\t\t\t\thorizontal: 'right',\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\tsx={{ '& ul': { p: 0 }, '& .MuiMenu-paper' :{boxShadow:`0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.06);`} }}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<SearchBar\n\t\t\t\t\t\t\t\t\t\tplaceholder='Search'\n\t\t\t\t\t\t\t\t\t\thandleSearch={(e) => {\n\t\t\t\t\t\t\t\t\t\t\tsetSearchedText(e);\n\t\t\t\t\t\t\t\t\t\t\thandleSearch?.(e);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tdebounceTime={1000}\n\t\t\t\t\t\t\t\t\t\tisDrivePage={true}\n\t\t\t\t\t\t\t\t\t\tsearchText={searchText ||searchedText}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</Menu>\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t\t{showFilter && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t{isLgUp ?\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t// sx={{display:\"none\"}}\n\t\t\t\t\t\t\tvariant='text'\n\t\t\t\t\t\t\tstartIcon={<FilterIcon fontSize='small'/>}\n\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\tsetOpenFilterPopup(true);\n\t\t\t\t\t\t\t\tfetchSavedFilters();\n\t\t\t\t\t\t\t}}>\n\t\t\t\t\t\t\t{t('common.filter')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t:\n\t\t\t\t\t\t<IconButton onClick={() => {\n\t\t\t\t\t\t\tsetOpenFilterPopup(true);\n\t\t\t\t\t\t\tfetchSavedFilters();\n\t\t\t\t\t\t}} size='small'>\n\t\t\t\t\t\t\t<FilterIcon fontSize='small' color='grey.1000'/>\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t}\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t\n\t\t\t\t\t{customButtons}\n\t\t\t\t\t{actionBtn}\n\t\t\t\t\t{button && (\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tvariant='contained'\n\t\t\t\t\t\t\tstartIcon={<AddIcon />}\n\t\t\t\t\t\t\tonClick={handleAddButton}>\n\t\t\t\t\t\t\t{t('common.add')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t)}\n\t\t\t\t\t{isDropdownMenuButton && (\n\t\t\t\t\t\t<div style={{ zIndex: 999 }}>\n\t\t\t\t\t\t\t<DropdownButton\n\t\t\t\t\t\t\t\tonClick={handleAddButton}\n\t\t\t\t\t\t\t\toptions={itemListingDropdownOptions}\n\t\t\t\t\t\t\t\tstartIcon={<AddIcon />}\n\t\t\t\t\t\t\t\tisMenuThirdItemDisabled={true}>\n\t\t\t\t\t\t\t\t{t('common.add')}\n\t\t\t\t\t\t\t</DropdownButton>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{pageName ? (\n\t\t\t\t\t\t<IconButton onClick={(e) => handleImportClick(e)}>\n\t\t\t\t\t\t\t<img src={images.more} alt='More Icon' />\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t''\n\t\t\t\t\t)}\n\n\t\t\t\t\t<Menu\n\t\t\t\t\t\tanchorEl={rowAnchorEl}\n\t\t\t\t\t\topen={Boolean(rowAnchorEl)}\n\t\t\t\t\t\tonClose={handleActionsClose}>\n\t\t\t\t\t\t{rowActionMenu?.map((option: any) => {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\t\toption.handleAction(pageName);\n\t\t\t\t\t\t\t\t\t\tsetRowAnchorEl(null);\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\tsx={{ alignItems: 'center', gap: 0.5 }}\n\t\t\t\t\t\t\t\t\tdisabled={\n\t\t\t\t\t\t\t\t\t\ttypeof option.disabled === 'function'\n\t\t\t\t\t\t\t\t\t\t\t? option.disabled()\n\t\t\t\t\t\t\t\t\t\t\t: Boolean(option.disabled)\n\t\t\t\t\t\t\t\t\t}>\n\t\t\t\t\t\t\t\t\t{option?.icon}\n\t\t\t\t\t\t\t\t\t<Typography type='s4' color='inherit'>\n\t\t\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t})}\n\t\t\t\t\t</Menu>\n\n\t\t\t\t\t<Filter\n\t\t\t\t\t\topen={openFilterPopup}\n\t\t\t\t\t\tonClose={handleCloseFilter}\n\t\t\t\t\t\tactiveView={active}\n\t\t\t\t\t\tsavedFilters={savedFilters}\n\t\t\t\t\t\tfetchSavedFilters={fetchSavedFilters}\n\t\t\t\t\t\tonSaveFilter={handleSaveFilter}\n\t\t\t\t\t\ttype={type}\n\t\t\t\t\t\tfields={fields}\n\t\t\t\t\t\tonSelectedFilter={f => setSelectedSavedFilter(f)}\n\t\t\t\t\t\tapplyFilter={applyFilter}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t{/* Applied Filters view (Start) */}\n\t\t\t{isFilterApplied(filters) && (\n\t\t\t\t<Box\n\t\t\t\t\tmb={1}\n\t\t\t\t\tsx={{\n\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\tjustifyContent: 'space-between'\n\t\t\t\t\t}}>\n\t\t\t\t\t<Box\n\t\t\t\t\t\tmb={1}\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\tmaxWidth: 400\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\t<Typography type='s3' weight='medium' color='theme.secondary.1000'>\n\t\t\t\t\t\t\t{t('common.filters')}:{' '}\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\n\t\t\t\t\t\t{filters?.rules?.map((r, rIndex) => (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t{r?.rules?.length ? (\n\t\t\t\t\t\t\t\tr?.rules?.map((rr, rrIndex) => (\n\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t{getFilterChip(rr,rrIndex)}\n\t\t\t\t\t\t\t </>\n\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t):\t<>\n\t\t\t\t\t\t\t {getFilterChip(r,rIndex)}\n\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t }\n\t\t\t\t\t\t</>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Box>\n\t\t\t\t\t<Box>\n <Button\n\t\t\t\t\t\t\tvariant='text'\n\t\t\t\t\t\t\tclassName='enable-filter-btn'\n\t\t\t\t\t\t\tstartIcon={<FolderSave fontSize='small'/>}\n\t\t\t\t\t\t\tonClick={handleSaveFilterClick}>\n\t\t\t\t\t\t\t<span> {t('common.saveFilter')}</span>\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t{/* {selectedSavedFilter && \n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tvariant='text'\n\t\t\t\t\t\t\tclassName='enable-filter-btn'\n\t\t\t\t\t\t\tstartIcon={<img src={images.common.saveFilterIcon} alt='Add Icon' />}\n\t\t\t\t\t\t\tonClick={handleSaveFilterClick}>\n\t\t\t\t\t\t\t\t<Typography type='s3' color=\"theme.secondary.1000\" weight='medium'>\n\t\t\t\t\t\t\t\t\tUpdate Filter <Typography type='s3' weight='medium'>{`(${selectedSavedFilter.name})`}</Typography>\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t} */}\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tvariant='text'\n\t\t\t\t\t\t\tstartIcon={<FilterRemove fontSize='small'/>}\n\t\t\t\t\t\t\tonClick={() =>\n\t\t\t\t\t\t\t\tupdatePageInfo({\n\t\t\t\t\t\t\t\t\tfilters: initialFilter,\n\t\t\t\t\t\t\t\t\tfilterQueryString: ''\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}>\n\t\t\t\t\t\t\t{t('common.clearFilter')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</Box>\n\t\t\t\t</Box>\n\t\t\t)}\n\t\t\t{/* Applied Filters view (End) */}\n\n\t\t\t{filterBar && (\n\t\t\t\t<div className='filter-bar'>\n\t\t\t\t\t<div className='filter-bar--LeftContent'>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<Select\n\t\t\t\t\t\t\t\tfullWidth\n\t\t\t\t\t\t\t\tplaceholder='Placeholder'\n\t\t\t\t\t\t\t\tsize={'small'}\n\t\t\t\t\t\t\t\tclassName='status-changes-drp'\n\t\t\t\t\t\t\t\tvalue={status}\n\t\t\t\t\t\t\t\tonChange={handleStatusChange}\n\t\t\t\t\t\t\t\tvariant='outlined'>\n\t\t\t\t\t\t\t\t<MenuItem value={'Status'}>{t('common.status')}</MenuItem>\n\t\t\t\t\t\t\t\t<MenuItem value={'Show'}>{t('common.show')}</MenuItem>\n\t\t\t\t\t\t\t</Select>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<Typography className='subtask-switch' variant='h6'>\n\t\t\t\t\t\t\t{t('common.subtask')}\n\t\t\t\t\t\t\t<Toggle checked={isToggled} onChange={handleToggle} />\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t|\n\t\t\t\t\t\t<Button className='hide-btn' onClick={handleFilterHide}>\n\t\t\t\t\t\t\t{t('common.hide')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className='filter-bar--RightContent'>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tvariant='text'\n\t\t\t\t\t\t\tclassName='enable-filter-btn'\n\t\t\t\t\t\t\tonClick={handleSaveFilterClick}>\n\t\t\t\t\t\t\t<img src={images.common.saveFilterIcon} alt='Add Icon' />\n\t\t\t\t\t\t\t<span>{t('common.saveFilter')}</span>\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<SaveFilterModal\n\t\t\t\topen={openSaveFilter}\n\t\t\t\tonClose={() => setIsOpenSaveFilter(false)}\n\t\t\t\thandleSubmit={(name: any) =>\n\t\t\t\t\thandleSave(name, filterQuery as RuleGroupType)\n\t\t\t\t}\n\t\t\t/>\n\t\t\t<UploadExcel\n\t\t\t\topen={isUploadModalOpen}\n\t\t\t\tshowCameraButton={false}\n\t\t\t\tonClose={() => setIsUploadModalOpen(false)}\n\t\t\t\tonConfirm={() => setIsUploadModalOpen(true)}\n\t\t\t\ttitle='Upload'\n\t\t\t\tmultiple={false}\n\t\t\t\timportModuleName={importModuleName}\n\t\t\t\tpageName={importModuleName}\n\t\t\t\taccept='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\n\t\t\t/>\n\t\t</div>\n\t);\n});\n\nexport default ActionBar;\n"],"names":["setBaseUrl","ActionBar","React","memo","props","token","localStorage","getItem","auth","storageTokenKeyName","location","useLocation","title","data","setData","active","setActive","handleAddButton","handleSearch","button","disabledViews","isDropdownMenuButton","itemListingDropdownOptions","isTitleMenu","titleMenus","type","fields","applyFilter","isToggleButton","handleToggleButton","showSearch","showFilter","showView","customButtons","pageName","actionBtn","importModuleName","selectedIds","searchText","useAppDispatch","isToggled","setIsToggled","useState","isToggledForItem","setIsToggledForItem","openFilterPopup","setOpenFilterPopup","status","setStatus","openSaveFilter","setIsOpenSaveFilter","rowAnchorEl","setRowAnchorEl","isUploadModalOpen","setIsUploadModalOpen","savedFilters","setSavedFilters","searchedText","setSearchedText","t","useTranslation","theme","useTheme","isLgUp","useMediaQuery","breakpoints","up","activePage","updatePageInfo","schemaFields","setActivePage","usePages","filters","resources","useMemo","routeToResourceMap","pathname","filterBar","filterQuery","useAppSelector","store","drive","useEffect","fetchSavedFilters","async","pageResource","fieldResource","getV1FilterResource","getToken","resource","then","response","result","map","e","id","_id","name","query","catch","err","handleSaveFilterClick","rules","rowActionMenu","push","label","handleAction","moduleName","filterQueryString","templateURL","getExcelExportTemplate","blob","link","document","createElement","url","window","URL","createObjectURL","href","download","body","appendChild","click","removeChild","revokeObjectURL","exportExcel","icon","jsx","Export","fontSize","getExcelTemplateGenerateTemplate","downloadTemplate","DocumentDownload","Import","getFilterChipLabels","rule","field","_a","replace","_b","find","f","key","formatLabel","opLabel","getOperatorLabel","value","Array","isArray","rv","join","jsxs","Box","sx","display","alignItems","gap","children","Typography","color","weight","Divider","orientation","flexItem","formatText","getFilterChip","rr","index","Chip","variant","palette","backgroundColor","borderColor","grey","opacity","flexDirection","cursor","deleteIcon","Cancel","marginRight","marginLeft","onDelete","removeSignleFilter","clickable","ruleIndex","uRules","filter","_","uFilters","generateQueryString","searchAnchorEl","setSearchAnchorEl","search","className","style","zIndex","TitleDropdownButton","onClick","options","isMenuThirdItemDisabled","currentTitle","Boolean","ele","sort","a","b","position","item","HeaderCard","ViewModal","Toggle","checked","onChange","prev","SearchBar","placeholder","debounceTime","isDrivePage","Fragment","IconButton","size","currentTarget","Search","Menu","anchorEl","open","onClose","anchorOrigin","vertical","horizontal","transformOrigin","p","boxShadow","Button","startIcon","FilterIcon","AddIcon","DropdownButton","src","images","more","alt","option","MenuItem","disabled","Filter","activeView","onSaveFilter","onSelectedFilter","setSelectedSavedFilter","flt","length","isFilterApplied","mb","justifyContent","maxWidth","r","rIndex","rrIndex","FolderSave","FilterRemove","initialFilter","Select","fullWidth","event","target","alert","common","saveFilterIcon","SaveFilterModal","handleSubmit","postFilterRequest","module","is_applied","postV1Filter","enqueueSnackbar","error","m","Error","getErrorMessage","message","handle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B,OAJGD,aAAiBE,QACnBD,EAAIE,EAAAA,gBAAgBH,EAAMI,UAE3BL,EAAAA,gBAAgBE,EAAG,CAAC5G,QAAS,WACtB,CACR,CACA,OAAO,GA8eJgH,CAAWzL,EAAMnB;eAGnBkD,EAAAA,IAAC2J,EAAAA,QAAA,CACAzD,KAAM7K,GACNuO,kBAAkB,EAClBzD,QAAS,IAAM7K,IAAqB,GACpCuO,UAAW,IAAMvO,IAAqB,GACtC1C,MAAM,SACNkR,UAAU,EACV1P,oBACAF,SAAUE,GACV2P,OAAO"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/action-bar/action-bar.tsx"],"sourcesContent":["import Button from '../button/button';\nimport Typography from '../typography/typography';\n/* eslint-disable no-mixed-spaces-and-tabs */\nimport './action-bar.scss';\nimport {\n\t/* IconButton, */ Box,\n\tDivider,\n\tIconButton,\n\tMenu,\n\tMenuItem,\n\tuseMediaQuery,\n\tuseTheme\n} from '@mui/material';\nimport AddIcon from '@mui/icons-material/Add';\nimport ViewModal from '../view-modal/view-modal';\nimport HeaderCard from '../header-card/header-card';\nimport SearchBar from '../search-bar/search-bar';\nimport { useEffect, useMemo, useState } from 'react';\nimport images from '../../assets/images';\nimport Toggle from '../toggle/toggle';\nimport Filter from '../filter/filter';\nimport Select from '../select/select';\nimport { RuleGroupType } from 'react-querybuilder';\nimport SaveFilterModal from '../save-filter-modal/save-filter-modal';\nimport {\n\tsetBaseUrl,\n\tpostV1Filter,\n\tgetV1FilterResource\n} from '../../api-client/api.system-feature/api';\nimport type * as Types from '../../api-client/api.system-feature/api-types';\nimport { auth } from '../../constants/auth';\nimport DropdownButton from '../dropdown-button/dropdown-button';\nimport TitleDropdownButton from '../title-dropdown-button/title-dropdown-button';\nimport { useAppDispatch, useAppSelector } from '../../redux/hooks';\nimport { getToken } from '../../utils/common';\nimport React from 'react';\nimport UploadExcel from '../upload-excel/upload-excel';\nimport { generateQueryString, getErrorMessage, getExcelTemplateGenerateTemplate, getOperatorLabel, getExcelExportTemplate } from '../../utils/common';\nimport { initialFilter, ViewType } from '../../contexts/page-context';\nimport { usePages } from '../../hooks/use-pages';\nimport Chip from '../chip/chip';\nimport formatText, { formatLabel } from '../../utils/format-text';\nimport { Cancel } from '@mui/icons-material';\nimport { useLocation } from 'react-router-dom';\nimport { IResources, routeToResourceMap } from '../../constants/route-page-map';\nimport { enqueueSnackbar } from 'notistack';\nimport { useTranslation } from 'react-i18next';\nimport { FilterRemove, Filter as FilterIcon, Search, FolderSave, Export, Import, DocumentDownload } from '../icons';\n\nsetBaseUrl(`${import.meta.env.VITE_BACKEND_BASE_URL}/system-feature`);\n\ninterface ActionData {\n\tlabel: string;\n\tposition: number;\n}\ninterface ActionBarPropsType {\n\ttitle: string;\n\tdata: ActionData[];\n\tsetData: React.Dispatch<React.SetStateAction<ActionData[]>>;\n\tactive: string;\n\tsetActive: (view: ViewType) => void;\n\thandleAddButton?: (e?: any) => void;\n\tbutton?: boolean;\n\thandleSearch?: (value: string) => void;\n\tfilters?: string;\n\tdisabledViews?: string[];\n\tisDropdownMenuButton?: boolean;\n\titemListingDropdownOptions?: any;\n\tisTitleMenu?: boolean;\n\ttitleMenus?: any;\n\tfolderData?: any;\n\ttype?: any;\n\tfields?: any;\n\tapplyFilter?: any;\n\tsavedFilters?: SavedFilter;\n\tsetSavedFilters?: (view: SavedFilter) => void;\n\tisToggleButton?: boolean;\n\thandleToggleButton?: (e?: any) => void;\n\tshowView?: boolean;\n\tshowSearch?: boolean;\n\tshowFilter?: boolean;\n\tcustomButtons?: React.ReactNode[] | JSX.Element[];\n\tactionBtn?: React.ReactNode[] | JSX.Element[];\n\tpageName?: string;\n\timportModuleName?: string;\n\tsearchText?:string;\n\tselectedIds?:any;\n\n}\n\ninterface SavedFilter {\n\tid: string;\n\tname: string;\n\tquery: RuleGroupType;\n}\n\nconst ActionBar = React.memo((props: ActionBarPropsType) => {\n\tconst token = localStorage.getItem(auth.storageTokenKeyName) || undefined;\n\tconst location = useLocation();\n\n\tconst {\n\t\ttitle,\n\t\tdata,\n\t\tsetData,\n\t\tactive,\n\t\tsetActive,\n\t\thandleAddButton,\n\t\thandleSearch,\n\t\tbutton = true,\n\t\tdisabledViews,\n\t\tisDropdownMenuButton = false,\n\t\titemListingDropdownOptions = [],\n\t\tisTitleMenu = false,\n\t\ttitleMenus = [],\n\t\ttype,\n\t\tfields = [],\n\t\tapplyFilter,\n\t\t// setSavedFilters,\n\t\t// savedFilters,\n\t\tisToggleButton = false,\n\t\thandleToggleButton,\n\t\tshowSearch = true,\n\t\tshowFilter = true,\n\t\tshowView = true,\n\t\tcustomButtons,\n\t\tpageName,\n\t\tactionBtn,\n\t\timportModuleName,\n\t\tselectedIds,\n searchText\n\t} = props;\n\tconst dispatch = useAppDispatch();\n\tconst [isToggled, setIsToggled] = useState<boolean>(false);\n\tconst [isToggledForItem, setIsToggledForItem] = useState<boolean>(false);\n\tconst [openFilterPopup, setOpenFilterPopup] = useState<boolean>(false);\n\tconst [status, setStatus] = useState<string>('');\n\tconst [openSaveFilter, setIsOpenSaveFilter] = useState<boolean>(false);\n\tconst [rowAnchorEl, setRowAnchorEl] = useState<null | HTMLElement>(null);\n\tconst [isUploadModalOpen, setIsUploadModalOpen] = useState(false);\n\tconst [savedFilters, setSavedFilters] = useState<any[]>([]);\n\t// const [selectedSavedFilter, setSelectedSavedFilter] = useState<any>(null);\n\tconst [searchedText, setSearchedText] = useState<string>(\"\");\n const {t}=useTranslation();\n\tconst theme = useTheme();\n const isLgUp = useMediaQuery(theme.breakpoints.up('xl'));\n\tconst { activePage, updatePageInfo, schemaFields,setActivePage } = usePages();\n\tconst { filters } = activePage;\n\n\tconst resources: IResources = useMemo(() => routeToResourceMap[location.pathname] || null, [location.pathname])\n\n\tconst { filterBar, filterQuery } = useAppSelector((store) => {\n\t\treturn store?.drive;\n\t});\n\t\n\n\n\tuseEffect(() => {\n\t\tfetchSavedFilters();\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, []);\n\n\tconst fetchSavedFilters = async (): Promise<void> => {\n\t\tif(resources?.pageResource || resources?.fieldResource) {\n\t\t\tgetV1FilterResource({ ...getToken(), resource: resources?.pageResource || resources?.fieldResource })\n\t\t\t\t.then((response: any) => {\n\t\t\t\t\tconst savedFilters = response.data.result.map((e: any) => {\n\t\t\t\t\t\treturn { id: e._id, name: e.name, query: e.data };\n\t\t\t\t\t});\n\t\n\t\t\t\t\tsetSavedFilters?.(savedFilters);\n\t\t\t\t})\n\t\t\t\t.catch((err: any) => console.log('Error fetching saved filters:', err));\n\t\t} else{\n\t\t\tsetSavedFilters([])\n\t\t}\n\t};\n\n\n\tconst handleFilterHide = () => {\n\t\t// dispatch(setFilterBar(false));\n\t\treturn\n\t};\n\n\tconst handleStatusChange = (event: any) => {\n\t\tsetStatus(event.target.value);\n\t};\n\n\tconst handleSaveFilterClick = () => {\n\t\tif (filters?.rules) {\n\t\t\tsetIsOpenSaveFilter(true);\n\t\t}\n\t};\n\n\tconst handleImportClick = (event: any) => {\n\t\tsetRowAnchorEl(event.currentTarget);\n\t};\n\n\tconst handleActionsClose = () => {\n\t\tsetRowAnchorEl(null);\n\t};\n\n\tconst handleSaveFilter = (query: RuleGroupType) => {\n\t\t// dispatch(setFilterQuery(query));\n\t\treturn \n\t};\n\n\tconst handleSave = async (name: string, filterQuery: RuleGroupType) => {\n\t\t\n\t\t// dispatch(setFilterBar(false));\n\t\t\n\t\tconst postFilterRequest: Types.PostV1FilterRequest = {\n\t\t\t'x-token': token,\n\t\t\tmodule: resources?.pageResource || resources?.fieldResource || 'erp-common',\n\t\t\tname: name,\n\t\t\tis_applied: true,\n\t\t\tdata: filterQuery\n\t\t};\n\t\ttry {\n\t\t\tawait postV1Filter(postFilterRequest)\n\t\t\tenqueueSnackbar('Filters saved successfully.')\n\t\t\tsetActivePage((prev: any) => ({\n\t\t\t\t...prev,\n\t\t\t\tfilters: {\n\t\t\t\t\t...prev.filters,\n\t\t\t\t\tname,\n\t\t\t\t\trules: filterQuery.rules\n\t\t\t\t},\n\t\t\t\tfilterQueryString: generateQueryString(filterQuery)\n\t\t\t}));\n\t\t\tsetIsOpenSaveFilter(false);\n\t\t} catch (error) {\n\t\t\tlet m: string = 'Something went wrong on saving filters'\n\t\t\tif(error instanceof Error) {\n\t\t\t\tm = getErrorMessage(error.message)\n\t\t\t}\n\t\t\tenqueueSnackbar(m, {variant: 'error'})\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t};\n\n\tconst handleToggle = () => {\n\t\tsetIsToggled((prev) => !prev);\n\t\talert('Toggled');\n\t};\n\n\tconst handleChangeToggleButton = () => {\n\t\tsetIsToggledForItem((prev) => !prev);\n\t\thandleToggleButton?.();\n\t};\n\n\tconst handleCloseFilter = () => {\n\t\tsetOpenFilterPopup(false);\n\t};\n\n\tconst handleActiveHeaderCard = (data: ActionData) => {\n\t\tsetActive(data?.label);\n\t};\n\n\tconst downloadTemplate = async (moduleName: string) => {\n\t\tconst templateURL: any = await getExcelTemplateGenerateTemplate({\n\t\t\t'x-token': token,\n\t\t\tresource: moduleName\n\t\t});\n\t\tif (templateURL) {\n\t\t\tconst blob = await templateURL.blob();\n\n\t\t\tconst link = document.createElement('a');\n\n\t\t\tconst url = window.URL.createObjectURL(blob);\n\n\t\t\tlink.href = url;\n\t\t\tlink.download = `${moduleName}.xlsx`;\n\n\t\t\tdocument.body.appendChild(link);\n\t\t\tlink.click();\n\t\t\tdocument.body.removeChild(link);\n\t\t\twindow.URL.revokeObjectURL(url);\n\t\t}\n\t};\n\n\tconst exportExcel = async (moduleName: string,filterQueryString: string,selectedIds: any,title: string) => {\n\t\tconst templateURL: any = await getExcelExportTemplate({\n\t\t\t'x-token': token,\n\t\t\tactivePage: activePage,\n\t\t\tfilterQueryString: filterQueryString,\n\t\t\tselectedIds: selectedIds,\n\t\t\ttitle: title\n\t\t});\n\t\tif (templateURL) {\n\t\t\tconst blob = await templateURL.blob();\n\n\t\t\tconst link = document.createElement('a');\n\n\t\t\tconst url = window.URL.createObjectURL(blob);\n\n\t\t\tlink.href = url;\n\t\t\tlink.download = `${moduleName}.xlsx`;\n\n\t\t\tdocument.body.appendChild(link);\n\t\t\tlink.click();\n\t\t\tdocument.body.removeChild(link);\n\t\t\twindow.URL.revokeObjectURL(url);\n\t\t}\n\t};\n\n\tconst openImportTemplate = () => {\n\t\tsetIsUploadModalOpen(true);\n\t};\n\tconst rowActionMenu = [];\n\tif(pageName && (!importModuleName || selectedIds)){\n\t\trowActionMenu.push({\n\t\t\tlabel: 'Export Excel',\n\t\t\thandleAction: (moduleName: string) => exportExcel(moduleName,activePage.filterQueryString,selectedIds,title),\n\t\t\ticon: <Export fontSize='small'/>\n\t\t})\n\t}\n\tif(pageName && importModuleName){ {\n\t\trowActionMenu.push({\n\t\t\tlabel: 'Download Template ',\n\t\t\thandleAction: (moduleName: string) => downloadTemplate(moduleName),\n\t\t\ticon: <DocumentDownload fontSize='small'/>\n\t\t},\n\t\t{\n\t\t\tlabel: 'Import Template',\n\t\t\thandleAction: (moduleName: string) => openImportTemplate(moduleName),\n\t\t\ticon: <Import fontSize='small'/>\n\t\t})\n\t}}\n\n\tconst getFilterChipLabels = (rule: any) => {\n\t\trule = {...rule, field:rule.field?.replace(\"__replaceKey\", '')}\n\t\tlet label = schemaFields.find((f: any) => f.key === rule.field)?.label || rule.field;\n\t\tlabel = formatLabel(label?.replace('_id', ' '));\n\t\tconst opLabel = getOperatorLabel(rule, schemaFields);\n\n\t\tlet value = rule.value;\n\t\tif (Array.isArray(rule.value)) {\n\t\t\trule.value = rule.value.map(rv => formatLabel(typeof rv === 'object' ? (rv.label) : rv))\n\t\t\tvalue = rule.value.join(', ');\n\t\t}\n\n\t\treturn <Box sx={{display:'flex', alignItems:'center', gap:1}}>\n\t\t\t<Typography type='s5' color='theme.secondary.800' weight='medium'>{label}</Typography>\n\t\t\t\t<Divider orientation='vertical' flexItem />\n\t\t\t<Typography type='s5' color='theme.primary.800' weight='medium'>{formatText(opLabel)} {value}</Typography>\n\t\t</Box>\n\t\t// `${label}: ${value}`;\n\t};\n\n\tconst getFilterChip=(rr: any,index:any) => {\n\t\treturn (\n\t\t\t\t<Chip\n\t\t\t\t\t\t\t\tlabel={getFilterChipLabels(rr)}\n\t\t\t\t\t\t\t\tvariant='outlined'\n\t\t\t\t\t\t\t\tactive\n\t\t\t\t\t\t\t\tsx={({palette}) => ({\n\t\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\t\tborderColor: `${palette.grey[300]} !important`,\n\t\t\t\t\t\t\t\t\topacity: 0.8,\n\t\t\t\t\t\t\t\t\t'&:hover': { backgroundColor: `${palette.grey[200]} !important` },\n\t\t\t\t\t\t\t\t\tflexDirection: 'row-reverse',\n\t\t\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\t\t\tgap: 0.75,\n\t\t\t\t\t\t\t\t\tcursor: 'unset'\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tdeleteIcon={\n\t\t\t\t\t\t\t\t\t<Cancel\n\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\tfontSize: '1rem !important',\n\t\t\t\t\t\t\t\t\t\t\tcolor: '#919294 !important',\n\t\t\t\t\t\t\t\t\t\t\tmarginRight: 'auto !important',\n\t\t\t\t\t\t\t\t\t\t\tmarginLeft: `0 !important`,\n\t\t\t\t\t\t\t\t\t\t\t'&:hover': {\n\t\t\t\t\t\t\t\t\t\t\t\tcolor:'inherit !important'\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tonDelete={() => removeSignleFilter(index)}\n\t\t\t\t\t\t\t\tclickable={false}\n\t\t\t\t\t\t\t/>\n\t\t)\n\t}\n\n const removeSignleFilter = (ruleIndex: number) => {\n\t\tconst uRules: any[] = filters.rules.filter(\n\t\t\t(_, index) => index !== ruleIndex\n\t\t);\n\t\tconst uFilters = { ...filters, rules: uRules };\n\t\tconst filterQueryString = generateQueryString(uFilters);\n\n\t\tupdatePageInfo({\n\t\t\tfilters: uFilters,\n\t\t\tfilterQueryString\n\t\t});\n\t};\n\n\tconst isFilterApplied = (flt: any): boolean => Boolean(flt?.rules?.length);\n\tconst [searchAnchorEl, setSearchAnchorEl] = useState<HTMLElement | null>(null);\n\t// useEffect(() => {\n\t// \tif(activePage?.active_view ){\n\t// \t\tconst updateViews=activePage?.views?.length?activePage.views:[{\n\t// \t\t\tlabel:activePage?.active_view,\n\t// \t\t\tposition:0\n\t// \t\t}]\n\t// \t\tsetData(updateViews)\n\t// \t}\t\t\n\t// \t//eslint-disable-next-line\n\t// },[isCreatePage,activePage?.active_view])\n\n\tuseEffect(()=>{\t\n\t\tif(activePage?.search){\n\t\t\tsetSearchedText(activePage?.search)\n\t\t}\n\t},[activePage?.search])\n\n\tuseEffect(() => {\n\t\tif(searchedText){\n\t\t\thandleSearch?.(searchedText);\n\t\t\tupdatePageInfo({ search: searchedText });\n\t\t}\n\t\t//eslint-disable-next-line\n\t},[searchedText])\n\treturn (\n\t\t<div>\n\t\t\t<div className='action-bar'>\n\t\t\t\t<div className='action-bar--LeftContent'>\n\t\t\t\t\t{isTitleMenu ? (\n\t\t\t\t\t\t<div style={{ zIndex: 999 }}>\n\t\t\t\t\t\t\t<TitleDropdownButton\n\t\t\t\t\t\t\t\tonClick={handleAddButton}\n\t\t\t\t\t\t\t\toptions={titleMenus}\n\t\t\t\t\t\t\t\tisMenuThirdItemDisabled={true}\n\t\t\t\t\t\t\t\tcurrentTitle={title}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t</TitleDropdownButton>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<Typography type='h3' weight='medium' color='theme.secondary.1000'>\n\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t)}\n\t\t\t\t\t<div className='action-bar--HeaderCard'>\n\t\t\t\t\t\t{Boolean(data) &&\n\t\t\t\t\t\t\tdata\n\t\t\t\t\t\t\t\t.map((ele) => ele)\n\t\t\t\t\t\t\t\t.sort((a, b) => a.position - b.position)\n\t\t\t\t\t\t\t\t.map((item: ActionData) => (\n\t\t\t\t\t\t\t\t\t<HeaderCard\n\t\t\t\t\t\t\t\t\t\tkey={item?.position}\n\t\t\t\t\t\t\t\t\t\ttitle={item?.label}\n\t\t\t\t\t\t\t\t\t\tactive={active}\n\t\t\t\t\t\t\t\t\t\tonClick={() => handleActiveHeaderCard(item)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t{showView && (\n\t\t\t\t\t\t\t<ViewModal\n\t\t\t\t\t\t\t\tsetData={setData}\n\t\t\t\t\t\t\t\tdata={data}\n\t\t\t\t\t\t\t\tsetActive={setActive}\n\t\t\t\t\t\t\t\tdisabledViews={disabledViews}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<div className='action-bar--RightContent' style={{gap: isLgUp ? `1rem` : `0.5rem`}}>\n\t\t\t\t\t{isToggleButton && (\n\t\t\t\t\t\t<div className='item--VariantDisplay'>\n\t\t\t\t\t\t\t<div className='item--VariantHeading'>Variant:</div>\n\t\t\t\t\t\t\t<div className='item--VariantToggal'>\n\t\t\t\t\t\t\t\t<Toggle\n\t\t\t\t\t\t\t\t\tchecked={isToggledForItem}\n\t\t\t\t\t\t\t\t\tonChange={handleChangeToggleButton}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t{showSearch && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t{isLgUp ? \n\t\t\t\t\t\t\t<SearchBar\n\t\t\t\t\t\t\t\tplaceholder='Search'\n\t\t\t\t\t\t\t\thandleSearch={(e) => {\n\t\t\t\t\t\t\t\t\tsetSearchedText(e);\n\t\t\t\t\t\t\t\t\thandleSearch?.(e);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tdebounceTime={1000}\n\t\t\t\t\t\t\t\tisDrivePage={true}\n\t\t\t\t\t\t\t\tsearchText={searchedText}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t:\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<IconButton size='small' onClick={(e) => setSearchAnchorEl(e.currentTarget)}><Search fontSize='small' color='grey.1000'/> </IconButton>\n\t\t\t\t\t\t\t\t<Menu \n\t\t\t\t\t\t\t\t\tanchorEl={searchAnchorEl} \n\t\t\t\t\t\t\t\t\topen={Boolean(searchAnchorEl)} \n\t\t\t\t\t\t\t\t\tonClose={() => setSearchAnchorEl(null)}\n\t\t\t\t\t\t\t\t\tanchorOrigin={{\n\t\t\t\t\t\t\t\t\t\tvertical: 'top',\n\t\t\t\t\t\t\t\t\t\thorizontal: 'right',\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\ttransformOrigin={{\n\t\t\t\t\t\t\t\t\t\tvertical: 'top',\n\t\t\t\t\t\t\t\t\t\thorizontal: 'right',\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\tsx={{ '& ul': { p: 0 }, '& .MuiMenu-paper' :{boxShadow:`0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.06);`} }}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<SearchBar\n\t\t\t\t\t\t\t\t\t\tplaceholder='Search'\n\t\t\t\t\t\t\t\t\t\thandleSearch={(e) => {\n\t\t\t\t\t\t\t\t\t\t\tsetSearchedText(e);\n\t\t\t\t\t\t\t\t\t\t\thandleSearch?.(e);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tdebounceTime={1000}\n\t\t\t\t\t\t\t\t\t\tisDrivePage={true}\n\t\t\t\t\t\t\t\t\t\tsearchText={searchText ||searchedText}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</Menu>\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t\t{showFilter && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t{isLgUp ?\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t// sx={{display:\"none\"}}\n\t\t\t\t\t\t\tvariant='text'\n\t\t\t\t\t\t\tstartIcon={<FilterIcon fontSize='small'/>}\n\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\tsetOpenFilterPopup(true);\n\t\t\t\t\t\t\t\tfetchSavedFilters();\n\t\t\t\t\t\t\t}}>\n\t\t\t\t\t\t\t{t('common.filter')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t:\n\t\t\t\t\t\t<IconButton onClick={() => {\n\t\t\t\t\t\t\tsetOpenFilterPopup(true);\n\t\t\t\t\t\t\tfetchSavedFilters();\n\t\t\t\t\t\t}} size='small'>\n\t\t\t\t\t\t\t<FilterIcon fontSize='small' color='grey.1000'/>\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t}\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t\n\t\t\t\t\t{customButtons}\n\t\t\t\t\t{actionBtn}\n\t\t\t\t\t{button && (\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tvariant='contained'\n\t\t\t\t\t\t\tstartIcon={<AddIcon />}\n\t\t\t\t\t\t\tonClick={handleAddButton}>\n\t\t\t\t\t\t\t{t('common.add')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t)}\n\t\t\t\t\t{isDropdownMenuButton && (\n\t\t\t\t\t\t<div style={{ zIndex: 999 }}>\n\t\t\t\t\t\t\t<DropdownButton\n\t\t\t\t\t\t\t\tonClick={handleAddButton}\n\t\t\t\t\t\t\t\toptions={itemListingDropdownOptions}\n\t\t\t\t\t\t\t\tstartIcon={<AddIcon />}\n\t\t\t\t\t\t\t\tisMenuThirdItemDisabled={true}>\n\t\t\t\t\t\t\t\t{t('common.add')}\n\t\t\t\t\t\t\t</DropdownButton>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{pageName ? (\n\t\t\t\t\t\t<IconButton onClick={(e) => handleImportClick(e)}>\n\t\t\t\t\t\t\t<img src={images.more} alt='More Icon' />\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t''\n\t\t\t\t\t)}\n\n\t\t\t\t\t<Menu\n\t\t\t\t\t\tanchorEl={rowAnchorEl}\n\t\t\t\t\t\topen={Boolean(rowAnchorEl)}\n\t\t\t\t\t\tonClose={handleActionsClose}>\n\t\t\t\t\t\t{rowActionMenu?.map((option: any) => {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\t\toption.handleAction(pageName);\n\t\t\t\t\t\t\t\t\t\tsetRowAnchorEl(null);\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\tsx={{ alignItems: 'center', gap: 0.5 }}\n\t\t\t\t\t\t\t\t\tdisabled={\n\t\t\t\t\t\t\t\t\t\ttypeof option.disabled === 'function'\n\t\t\t\t\t\t\t\t\t\t\t? option.disabled()\n\t\t\t\t\t\t\t\t\t\t\t: Boolean(option.disabled)\n\t\t\t\t\t\t\t\t\t}>\n\t\t\t\t\t\t\t\t\t{option?.icon}\n\t\t\t\t\t\t\t\t\t<Typography type='s4' color='inherit'>\n\t\t\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t})}\n\t\t\t\t\t</Menu>\n\n\t\t\t\t\t<Filter\n\t\t\t\t\t\topen={openFilterPopup}\n\t\t\t\t\t\tonClose={handleCloseFilter}\n\t\t\t\t\t\tactiveView={active}\n\t\t\t\t\t\tsavedFilters={savedFilters}\n\t\t\t\t\t\tfetchSavedFilters={fetchSavedFilters}\n\t\t\t\t\t\tonSaveFilter={handleSaveFilter}\n\t\t\t\t\t\ttype={type}\n\t\t\t\t\t\tfields={fields}\n\t\t\t\t\t\tonSelectedFilter={f => setSelectedSavedFilter(f)}\n\t\t\t\t\t\tapplyFilter={applyFilter}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t{/* Applied Filters view (Start) */}\n\t\t\t{isFilterApplied(filters) && (\n\t\t\t\t<Box\n\t\t\t\t\tmb={1}\n\t\t\t\t\tsx={{\n\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\tjustifyContent: 'space-between'\n\t\t\t\t\t}}>\n\t\t\t\t\t<Box\n\t\t\t\t\t\tmb={1}\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\tmaxWidth: 400\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\t<Typography type='s3' weight='medium' color='theme.secondary.1000'>\n\t\t\t\t\t\t\t{t('common.filters')}:{' '}\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\n\t\t\t\t\t\t{filters?.rules?.map((r, rIndex) => (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t{r?.rules?.length ? (\n\t\t\t\t\t\t\t\tr?.rules?.map((rr, rrIndex) => (\n\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t{getFilterChip(rr,rrIndex)}\n\t\t\t\t\t\t\t </>\n\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t):\t<>\n\t\t\t\t\t\t\t {getFilterChip(r,rIndex)}\n\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t }\n\t\t\t\t\t\t</>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Box>\n\t\t\t\t\t<Box>\n <Button\n\t\t\t\t\t\t\tvariant='text'\n\t\t\t\t\t\t\tclassName='enable-filter-btn'\n\t\t\t\t\t\t\tstartIcon={<FolderSave fontSize='small'/>}\n\t\t\t\t\t\t\tonClick={handleSaveFilterClick}>\n\t\t\t\t\t\t\t<span> {t('common.saveFilter')}</span>\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t{/* {selectedSavedFilter && \n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tvariant='text'\n\t\t\t\t\t\t\tclassName='enable-filter-btn'\n\t\t\t\t\t\t\tstartIcon={<img src={images.common.saveFilterIcon} alt='Add Icon' />}\n\t\t\t\t\t\t\tonClick={handleSaveFilterClick}>\n\t\t\t\t\t\t\t\t<Typography type='s3' color=\"theme.secondary.1000\" weight='medium'>\n\t\t\t\t\t\t\t\t\tUpdate Filter <Typography type='s3' weight='medium'>{`(${selectedSavedFilter.name})`}</Typography>\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t} */}\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tvariant='text'\n\t\t\t\t\t\t\tstartIcon={<FilterRemove fontSize='small'/>}\n\t\t\t\t\t\t\tonClick={() =>\n\t\t\t\t\t\t\t\tupdatePageInfo({\n\t\t\t\t\t\t\t\t\tfilters: initialFilter,\n\t\t\t\t\t\t\t\t\tfilterQueryString: ''\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}>\n\t\t\t\t\t\t\t{t('common.clearFilter')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</Box>\n\t\t\t\t</Box>\n\t\t\t)}\n\t\t\t{/* Applied Filters view (End) */}\n\n\t\t\t{filterBar && (\n\t\t\t\t<div className='filter-bar'>\n\t\t\t\t\t<div className='filter-bar--LeftContent'>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<Select\n\t\t\t\t\t\t\t\tfullWidth\n\t\t\t\t\t\t\t\tplaceholder='Placeholder'\n\t\t\t\t\t\t\t\tsize={'small'}\n\t\t\t\t\t\t\t\tclassName='status-changes-drp'\n\t\t\t\t\t\t\t\tvalue={status}\n\t\t\t\t\t\t\t\tonChange={handleStatusChange}\n\t\t\t\t\t\t\t\tvariant='outlined'>\n\t\t\t\t\t\t\t\t<MenuItem value={'Status'}>{t('common.status')}</MenuItem>\n\t\t\t\t\t\t\t\t<MenuItem value={'Show'}>{t('common.show')}</MenuItem>\n\t\t\t\t\t\t\t</Select>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<Typography className='subtask-switch' variant='h6'>\n\t\t\t\t\t\t\t{t('common.subtask')}\n\t\t\t\t\t\t\t<Toggle checked={isToggled} onChange={handleToggle} />\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t|\n\t\t\t\t\t\t<Button className='hide-btn' onClick={handleFilterHide}>\n\t\t\t\t\t\t\t{t('common.hide')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className='filter-bar--RightContent'>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tvariant='text'\n\t\t\t\t\t\t\tclassName='enable-filter-btn'\n\t\t\t\t\t\t\tonClick={handleSaveFilterClick}>\n\t\t\t\t\t\t\t<img src={images.common.saveFilterIcon} alt='Add Icon' />\n\t\t\t\t\t\t\t<span>{t('common.saveFilter')}</span>\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<SaveFilterModal\n\t\t\t\topen={openSaveFilter}\n\t\t\t\tonClose={() => setIsOpenSaveFilter(false)}\n\t\t\t\thandleSubmit={(name: any) =>\n\t\t\t\t\thandleSave(name, filterQuery as RuleGroupType)\n\t\t\t\t}\n\t\t\t/>\n\t\t\t<UploadExcel\n\t\t\t\topen={isUploadModalOpen}\n\t\t\t\tshowCameraButton={false}\n\t\t\t\tonClose={() => setIsUploadModalOpen(false)}\n\t\t\t\tonConfirm={() => setIsUploadModalOpen(true)}\n\t\t\t\ttitle='Upload'\n\t\t\t\tmultiple={false}\n\t\t\t\timportModuleName={importModuleName}\n\t\t\t\tpageName={importModuleName}\n\t\t\t\taccept='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\n\t\t\t/>\n\t\t</div>\n\t);\n});\n\nexport default ActionBar;\n"],"names":["setBaseUrl","ActionBar","React","memo","props","token","localStorage","getItem","auth","storageTokenKeyName","location","useLocation","title","data","setData","active","setActive","handleAddButton","handleSearch","button","disabledViews","isDropdownMenuButton","itemListingDropdownOptions","isTitleMenu","titleMenus","type","fields","applyFilter","isToggleButton","handleToggleButton","showSearch","showFilter","showView","customButtons","pageName","actionBtn","importModuleName","selectedIds","searchText","useAppDispatch","isToggled","setIsToggled","useState","isToggledForItem","setIsToggledForItem","openFilterPopup","setOpenFilterPopup","status","setStatus","openSaveFilter","setIsOpenSaveFilter","rowAnchorEl","setRowAnchorEl","isUploadModalOpen","setIsUploadModalOpen","savedFilters","setSavedFilters","searchedText","setSearchedText","t","useTranslation","theme","useTheme","isLgUp","useMediaQuery","breakpoints","up","activePage","updatePageInfo","schemaFields","setActivePage","usePages","filters","resources","useMemo","routeToResourceMap","pathname","filterBar","filterQuery","useAppSelector","store","drive","useEffect","fetchSavedFilters","async","pageResource","fieldResource","getV1FilterResource","getToken","resource","then","response","result","map","e","id","_id","name","query","catch","err","handleSaveFilterClick","rules","rowActionMenu","push","label","handleAction","moduleName","filterQueryString","templateURL","getExcelExportTemplate","blob","link","document","createElement","url","window","URL","createObjectURL","href","download","body","appendChild","click","removeChild","revokeObjectURL","exportExcel","icon","jsx","Export","fontSize","getExcelTemplateGenerateTemplate","downloadTemplate","DocumentDownload","Import","getFilterChipLabels","rule","field","_a","replace","_b","find","f","key","formatLabel","opLabel","getOperatorLabel","value","Array","isArray","rv","join","jsxs","Box","sx","display","alignItems","gap","children","Typography","color","weight","Divider","orientation","flexItem","formatText","getFilterChip","rr","index","Chip","variant","palette","backgroundColor","borderColor","grey","opacity","flexDirection","cursor","deleteIcon","Cancel","marginRight","marginLeft","onDelete","removeSignleFilter","clickable","ruleIndex","uRules","filter","_","uFilters","generateQueryString","searchAnchorEl","setSearchAnchorEl","search","className","style","zIndex","TitleDropdownButton","onClick","options","isMenuThirdItemDisabled","currentTitle","Boolean","ele","sort","a","b","position","item","HeaderCard","ViewModal","Toggle","checked","onChange","prev","SearchBar","placeholder","debounceTime","isDrivePage","Fragment","IconButton","size","currentTarget","Search","Menu","anchorEl","open","onClose","anchorOrigin","vertical","horizontal","transformOrigin","p","boxShadow","Button","startIcon","FilterIcon","AddIcon","DropdownButton","src","images","more","alt","option","MenuItem","disabled","Filter","activeView","onSaveFilter","onSelectedFilter","setSelectedSavedFilter","flt","length","isFilterApplied","mb","justifyContent","maxWidth","r","rIndex","rrIndex","FolderSave","FilterRemove","initialFilter","Select","fullWidth","event","target","alert","common","saveFilterIcon","SaveFilterModal","handleSubmit","postFilterRequest","module","is_applied","postV1Filter","enqueueSnackbar","error","m","Error","getErrorMessage","message","handleSave","UploadExcel","showCameraButton","onConfirm","multiple","accept"],"mappings":"k6EAiDAA,EAAAA,WAAW,6CA+CX,MAAMC,EAAYC,EAAAA,QAAMC,KAAMC,UAC7B,MAAMC,EAAQC,aAAaC,QAAQC,EAAAA,KAAKC,2BAAwB,EAC1DC,EAAWC,EAAAA,eAEXC,MACLA,EAAAC,KACAA,EAAAC,QACAA,EAAAC,OACAA,EAAAC,UACAA,EAAAC,gBACAA,EAAAC,aACAA,EAAAC,OACAA,IAAS,EAAAC,cACTA,GAAAC,qBACAA,IAAuB,EAAAC,2BACvBA,GAA6B,GAAAC,YAC7BA,IAAc,EAAAC,WACdA,GAAa,GAAAC,KACbA,GAAAC,OACAA,GAAS,GAAAC,YACTA,G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,SAAAnG,GAAE;iBAGLqE,IAAC,MAAA,CAAIkE,UAAU,2BACdpC,wBAAAN,EAAAA,KAACkF,EAAAA,QAAA,CACAhE,QAAQ,OACRwB,UAAU,oBACVI,QAASjG,GACTyD,SAAA;eAAA9B,MAAC,OAAI+G,IAAKC,EAAAA,OAAO4B,OAAOC,eAAgB3B,IAAI;qBAC3C,OAAA,CAAMpF,SAAAnG,GAAE;eAKbqE,EAAAA,IAAC8I,EAAAA,QAAA,CACA5C,KAAMjL,GACNkL,QAAS,IAAMjL,IAAoB,GACnC6N,aAAe9K,GA7gBCb,OAAOa,EAAcnB,KAIvC,MAAMkM,EAA+C,CACpD,UAAW3Q,EACX4Q,QAAQ,MAAAxM,QAAA,EAAAA,GAAWY,gBAAgB,MAAAZ,QAAA,EAAAA,GAAWa,gBAAiB,aAC/DW,OACAiL,YAAY,EACZrQ,KAAMiE,GAEP,UACOqM,EAAAA,aAAaH,GACnBI,EAAAA,gBAAgB,+BAChB9M,GAAegJ,IAAA,IACXA,EACH9I,QAAS,IACL8I,EAAK9I,QACRyB,OACAK,MAAOxB,EAAYwB,OAEpBM,kBAAmBkF,EAAAA,oBAAoBhH,MAExC5B,IAAoB,EACrB,OAASmO,GACR,IAAIC,EAAY,yCAKhB,OAJGD,aAAiBE,QACnBD,EAAIE,EAAAA,gBAAgBH,EAAMI,UAE3BL,EAAAA,gBAAgBE,EAAG,CAAC5G,QAAS,WACtB,CACR,CACA,OAAO,GA8eJgH,CAAWzL,EAAMnB;eAGnBkD,EAAAA,IAAC2J,EAAAA,QAAA,CACAzD,KAAM7K,GACNuO,kBAAkB,EAClBzD,QAAS,IAAM7K,IAAqB,GACpCuO,UAAW,IAAMvO,IAAqB,GACtC1C,MAAM,SACNkR,UAAU,EACV1P,oBACAF,SAAUE,GACV2P,OAAO"}
@@ -358,7 +358,7 @@ function CustomEditor({
358
358
  "file_extension": file == null ? void 0 : file.name.split(".")[1],
359
359
  "type": "image",
360
360
  "mime_type": file.type,
361
- "url": `${void 0}${uFiles[0]}`
361
+ "url": `${"https://erpforce-dev.s3.eu-west-1.amazonaws.com/"}${uFiles[0]}`
362
362
  };
363
363
  await postV1Drive(payload);
364
364
  return { url: payload.url };
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../../src/components/editor/custom-editor.tsx"],"sourcesContent":["/* eslint-disable unused-imports/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n// IsolatedEditor.js - This file should ONLY be imported via React.lazy()\nimport React, { useState, useEffect, useMemo, useCallback } from 'react';\nimport \"./custom-editor.css\"\n\n// Import ALL CKEditor dependencies in this file ONLY\n// Do NOT import these anywhere else in your application\nimport { CKEditor } from '@ckeditor/ckeditor5-react';\nimport {\n ClassicEditor,\n Alignment,\n AutoLink,\n Autosave,\n BalloonToolbar,\n BlockQuote,\n BlockToolbar,\n Bold,\n Code,\n CodeBlock,\n Essentials,\n FontBackgroundColor,\n FontColor,\n FontFamily,\n FontSize,\n Heading,\n Highlight,\n HorizontalLine,\n ImageEditing,\n ImageUtils,\n Indent,\n IndentBlock,\n Italic,\n Link,\n Paragraph,\n PlainTableOutput,\n RemoveFormat,\n Strikethrough,\n Subscript,\n Superscript,\n Table,\n TableCaption,\n TableCellProperties,\n TableColumnResize,\n TableProperties,\n TableToolbar,\n Underline,\n GeneralHtmlSupport,\n SourceEditing,\n // Image support\n Image,\n ImageBlock,\n ImageInline,\n ImageToolbar,\n ImageCaption,\n ImageStyle,\n ImageResize,\n ImageInsert,\n ImageInsertViaUrl,\n ImageUpload,\n ImageTextAlternative,\n SimpleUploadAdapter,\n LinkImage,\n ClipboardPipeline,\n AutoImage,\n} from 'ckeditor5';\n\nimport 'ckeditor5/ckeditor5.css';\nimport { postV1Drive } from '../../api-client/api.drive/api';\nimport { getToken, uploadFiles } from '../../utils/common';\n\nconst LICENSE_KEY = 'GPL';\n\n\nclass MyUploadAdapter {\n constructor(loader, uploadFn) {\n // The file loader instance to use during the upload\n this.loader = loader;\n this.uploadFn = uploadFn;\n }\n\n // Starts the upload process\n async upload() {\n const file = await this.loader.file;\n try {\n // 👇 Call your existing function\n const response = await this.uploadFn(file);\n\n // CKEditor expects this format:\n return {\n default: response.url // must return final image URL\n };\n } catch (error) {\n console.error(\"Upload failed\", error);\n throw error;\n }\n }\n\n // Optional abort support\n abort() {\n console.log(\"Upload aborted\");\n }\n}\n\nfunction PasteImageUrlPlugin(editor) {\n const clipboard = editor.plugins.get(ClipboardPipeline);\n\n clipboard.on('inputTransformation', (evt, data) => {\n const content = data.content.getChild(0);\n\n // Check if pasted content is plain text\n if (content && content.is('$textProxy')) {\n const url = content.data.trim();\n\n // Check if it looks like an image URL\n if (url.match(/\\.(jpeg|jpg|gif|png|webp|svg)$/i)) {\n const imageElement = editor.model.change(writer => {\n return writer.createElement('imageBlock', {\n src: url\n });\n });\n\n editor.model.insertContent(imageElement, editor.model.document.selection);\n evt.stop(); // prevent default plain text paste\n }\n }\n });\n}\n\n\n// Create the editor configuration\nconst createEditorConfig = (customConfig = {}) => {\n const defaultConfig = {\n extraPlugins: [ PasteImageUrlPlugin, AutoImage ],\n toolbar: {\n items: [\n 'sourceEditing',\n 'undo',\n 'redo',\n '|',\n 'heading',\n '|',\n 'fontSize',\n 'fontFamily',\n 'fontColor',\n 'fontBackgroundColor',\n '|',\n 'bold',\n 'italic',\n 'underline',\n 'strikethrough',\n 'subscript',\n 'superscript',\n 'code',\n 'removeFormat',\n '|',\n 'horizontalLine',\n 'link',\n 'insertImage', 'uploadImage',\n 'insertTable',\n 'highlight',\n 'blockQuote',\n 'codeBlock',\n '|',\n 'alignment',\n '|',\n 'outdent',\n 'indent',\n ],\n shouldNotGroupWhenFull: false\n },\n plugins: [\n Alignment,\n AutoLink,\n Autosave,\n BalloonToolbar,\n BlockQuote,\n BlockToolbar,\n Bold,\n Code,\n CodeBlock,\n Essentials,\n FontBackgroundColor,\n FontColor,\n FontFamily,\n FontSize,\n Heading,\n Highlight,\n HorizontalLine,\n ImageEditing,\n ImageUtils,\n Indent,\n IndentBlock,\n Italic,\n Link,\n Paragraph,\n PlainTableOutput,\n RemoveFormat,\n Strikethrough,\n Subscript,\n Superscript,\n Table,\n TableCaption,\n TableCellProperties,\n TableColumnResize,\n TableProperties,\n TableToolbar,\n Underline,\n GeneralHtmlSupport,\n SourceEditing,\n Image,\n ImageBlock,\n ImageCaption,\n ImageEditing,\n ImageInline,\n ImageInsert,\n ImageInsertViaUrl,\n ImageResize,\n ImageStyle,\n ImageTextAlternative,\n ImageToolbar,\n ImageUpload,\n ImageUtils,\n SimpleUploadAdapter,\n LinkImage\n ],\n balloonToolbar: ['bold', 'italic', '|', 'link', 'insertImage', 'uploadImage',],\n blockToolbar: [\n 'fontSize',\n 'fontColor',\n 'fontBackgroundColor',\n '|',\n 'bold',\n 'italic',\n '|',\n 'link',\n 'insertImage', 'uploadImage',\n 'insertTable',\n '|',\n 'outdent',\n 'indent'\n ],\n fontFamily: {\n supportAllValues: true\n },\n fontSize: {\n options: [10, 12, 14, 'default', 18, 20, 22],\n supportAllValues: true\n },\n heading: {\n options: [\n {\n model: 'paragraph',\n title: 'Paragraph',\n class: 'ck-heading_paragraph'\n },\n {\n model: 'heading1',\n view: 'h1',\n title: 'Heading 1',\n class: 'ck-heading_heading1'\n },\n {\n model: 'heading2',\n view: 'h2',\n title: 'Heading 2',\n class: 'ck-heading_heading2'\n },\n {\n model: 'heading3',\n view: 'h3',\n title: 'Heading 3',\n class: 'ck-heading_heading3'\n },\n {\n model: 'heading4',\n view: 'h4',\n title: 'Heading 4',\n class: 'ck-heading_heading4'\n }\n ]\n },\n licenseKey: LICENSE_KEY,\n link: {\n addTargetToExternalLinks: true,\n defaultProtocol: 'https://',\n decorators: {\n toggleDownloadable: {\n mode: 'manual',\n label: 'Downloadable',\n attributes: {\n download: 'file',\n }\n }\n }\n },\n menuBar: {\n isVisible: true\n },\n placeholder: 'Type or paste your content here!',\n table: {\n contentToolbar: [\n 'tableColumn', \n 'tableRow', \n 'mergeTableCells', \n 'tableProperties', \n 'tableCellProperties'\n ]\n },\n htmlSupport: {\n allow: [\n {\n name: /.*/,\n attributes: true,\n classes: true,\n styles: true\n }\n ]\n },\n image: {\n toolbar: [\n 'imageTextAlternative',\n 'toggleImageCaption',\n '|',\n 'imageStyle:inline',\n 'imageStyle:wrapText',\n 'imageStyle:breakText',\n '|',\n 'resizeImage',\n '|',\n 'linkImage'\n ],\n styles: {\n options: [\n 'inline',\n 'alignLeft',\n 'alignRight',\n 'alignCenter',\n 'alignBlockLeft',\n 'alignBlockRight',\n 'block',\n 'side'\n ]\n },\n resizeOptions: [\n {\n name: 'resizeImage:original',\n label: 'Original size',\n value: null\n },\n {\n name: 'resizeImage:25',\n label: '25%',\n value: '25'\n },\n {\n name: 'resizeImage:50',\n label: '50%',\n value: '50'\n },\n {\n name: 'resizeImage:75',\n label: '75%',\n value: '75'\n }\n ],\n insert: {\n integrations: ['insertImageViaUrl']\n }\n },\n simpleUpload: {\n uploadUrl: '/api/upload', // your upload API\n headers: {\n Authorization: 'Bearer <token>'\n }\n },\n autosave: {\n save() {\n return new Promise(resolve => {\n setTimeout(resolve, 1000);\n });\n }\n }\n };\n\n return { ...defaultConfig, ...customConfig };\n};\n\nexport default function CustomEditor({\n editorRef,\n data = '',\n handleEditorReady,\n onError,\n config = {},\n ...rest\n}) {\n const [isReady, setIsReady] = useState(false);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n // Small delay to ensure DOM is ready\n const timer = setTimeout(() => setIsReady(true), 100);\n return () => clearTimeout(timer);\n }, []);\n\n const editorConfig = useMemo(() => {\n return createEditorConfig(config);\n }, [config]);\n\n const myUploadFn = async (file) => {\n // 👇 Your existing function here\n const uFiles = await uploadFiles([file], \"document\");\n const payload = {\n ...getToken(),\n \"title\": file?.name.split(\".\")[0],\n \"path\": \"/\",\n \"is_private\": true,\n \"is_directory\": false,\n \"file_size\": file.size,\n \"is_child\": false,\n \"file_extension\": file?.name.split(\".\")[1],\n \"type\": \"image\",\n \"mime_type\": file.type,\n \"url\": `${import.meta.env.VITE_S3_BUCKET_URL}${uFiles[0]}`\n }\n // Replace with your actual API endpoint\n \n // 👇 Call your existing function\n await postV1Drive(payload);\n return { url: payload.url };\n };\n\n const handleReady = useCallback((editor) => {\n try {\n handleEditorReady?.(editor);\n editor.plugins.get('FileRepository').createUploadAdapter = (loader) => {\n return new MyUploadAdapter(loader, myUploadFn);\n };\n } catch (err) {\n console.error('Error in editor ready handler:', err);\n setError(err);\n onError?.(err);\n }\n }, [handleEditorReady, onError]);\n\n const handleError = useCallback((error, { willEditorRestart }) => {\n console.error('CKEditor error:', error);\n if (!willEditorRestart) {\n setError(error);\n onError?.(error);\n }\n }, [onError]);\n\n if (error) {\n return (\n <div style={{\n padding: '20px',\n border: '1px solid #red',\n borderRadius: '4px',\n backgroundColor: '#fff5f5'\n }}>\n <div style={{ color: '#e53e3e', marginBottom: '10px' }}>\n Editor Error: {error.message}\n </div>\n <button \n onClick={() => setError(null)}\n style={{\n padding: '8px 16px',\n backgroundColor: '#3182ce',\n color: 'white',\n border: 'none',\n borderRadius: '4px'\n }}\n >\n Retry\n </button>\n </div>\n );\n }\n\n if (!isReady) {\n return (\n <div style={{\n padding: '20px',\n textAlign: 'center',\n border: '1px solid #dee2e6',\n borderRadius: '4px'\n }}>\n Loading editor...\n </div>\n );\n }\n\n return (\n <div ref={editorRef} className=\"custom-editor-container\">\n <CKEditor \n editor={ClassicEditor} \n config={editorConfig} \n data={data} \n onReady={handleReady}\n onError={handleError}\n {...rest}\n />\n </div>\n );\n}"],"names":["error"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,MAAM,cAAc;AAGpB,MAAM,gBAAgB;AAAA,EACpB,YAAY,QAAQ,UAAU;AAE5B,SAAK,SAAS;AACd,SAAK,WAAW;AAAA,EAClB;AAAA;AAAA,EAGA,MAAM,SAAS;AACb,UAAM,OAAO,MAAM,KAAK,OAAO;AAC/B,QAAI;AAEF,YAAM,WAAW,MAAM,KA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,UAC5B,OAAO;AAAA,YACL,SAAS;AAAA,YACT,iBAAiB;AAAA,YACjB,OAAO;AAAA,YACP,QAAQ;AAAA,YACR,cAAc;AAAA,UAAA;AAAA,UAEjB,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAED,GACF;AAAA,EAEJ;AAEA,MAAI,CAAC,SAAS;AACZ,WACE,oBAAC,SAAI,OAAO;AAAA,MACV,SAAS;AAAA,MACT,WAAW;AAAA,MACX,QAAQ;AAAA,MACR,cAAc;AAAA,IAAA,GACb,UAAA,qBAEH;AAAA,EAEJ;AAEA,6BACG,OAAA,EAAI,KAAK,WAAW,WAAU,2BAC7B,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR;AAAA,MACA,SAAS;AAAA,MACT,SAAS;AAAA,MACR,GAAG;AAAA,IAAA;AAAA,EAAA,GAER;AAEJ;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../src/components/editor/custom-editor.tsx"],"sourcesContent":["/* eslint-disable unused-imports/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n// IsolatedEditor.js - This file should ONLY be imported via React.lazy()\nimport React, { useState, useEffect, useMemo, useCallback } from 'react';\nimport \"./custom-editor.css\"\n\n// Import ALL CKEditor dependencies in this file ONLY\n// Do NOT import these anywhere else in your application\nimport { CKEditor } from '@ckeditor/ckeditor5-react';\nimport {\n ClassicEditor,\n Alignment,\n AutoLink,\n Autosave,\n BalloonToolbar,\n BlockQuote,\n BlockToolbar,\n Bold,\n Code,\n CodeBlock,\n Essentials,\n FontBackgroundColor,\n FontColor,\n FontFamily,\n FontSize,\n Heading,\n Highlight,\n HorizontalLine,\n ImageEditing,\n ImageUtils,\n Indent,\n IndentBlock,\n Italic,\n Link,\n Paragraph,\n PlainTableOutput,\n RemoveFormat,\n Strikethrough,\n Subscript,\n Superscript,\n Table,\n TableCaption,\n TableCellProperties,\n TableColumnResize,\n TableProperties,\n TableToolbar,\n Underline,\n GeneralHtmlSupport,\n SourceEditing,\n // Image support\n Image,\n ImageBlock,\n ImageInline,\n ImageToolbar,\n ImageCaption,\n ImageStyle,\n ImageResize,\n ImageInsert,\n ImageInsertViaUrl,\n ImageUpload,\n ImageTextAlternative,\n SimpleUploadAdapter,\n LinkImage,\n ClipboardPipeline,\n AutoImage,\n} from 'ckeditor5';\n\nimport 'ckeditor5/ckeditor5.css';\nimport { postV1Drive } from '../../api-client/api.drive/api';\nimport { getToken, uploadFiles } from '../../utils/common';\n\nconst LICENSE_KEY = 'GPL';\n\n\nclass MyUploadAdapter {\n constructor(loader, uploadFn) {\n // The file loader instance to use during the upload\n this.loader = loader;\n this.uploadFn = uploadFn;\n }\n\n // Starts the upload process\n async upload() {\n const file = await this.loader.file;\n try {\n // 👇 Call your existing function\n const response = await this.uploadFn(file);\n\n // CKEditor expects this format:\n return {\n default: response.url // must return final image URL\n };\n } catch (error) {\n console.error(\"Upload failed\", error);\n throw error;\n }\n }\n\n // Optional abort support\n abort() {\n console.log(\"Upload aborted\");\n }\n}\n\nfunction PasteImageUrlPlugin(editor) {\n const clipboard = editor.plugins.get(ClipboardPipeline);\n\n clipboard.on('inputTransformation', (evt, data) => {\n const content = data.content.getChild(0);\n\n // Check if pasted content is plain text\n if (content && content.is('$textProxy')) {\n const url = content.data.trim();\n\n // Check if it looks like an image URL\n if (url.match(/\\.(jpeg|jpg|gif|png|webp|svg)$/i)) {\n const imageElement = editor.model.change(writer => {\n return writer.createElement('imageBlock', {\n src: url\n });\n });\n\n editor.model.insertContent(imageElement, editor.model.document.selection);\n evt.stop(); // prevent default plain text paste\n }\n }\n });\n}\n\n\n// Create the editor configuration\nconst createEditorConfig = (customConfig = {}) => {\n const defaultConfig = {\n extraPlugins: [ PasteImageUrlPlugin, AutoImage ],\n toolbar: {\n items: [\n 'sourceEditing',\n 'undo',\n 'redo',\n '|',\n 'heading',\n '|',\n 'fontSize',\n 'fontFamily',\n 'fontColor',\n 'fontBackgroundColor',\n '|',\n 'bold',\n 'italic',\n 'underline',\n 'strikethrough',\n 'subscript',\n 'superscript',\n 'code',\n 'removeFormat',\n '|',\n 'horizontalLine',\n 'link',\n 'insertImage', 'uploadImage',\n 'insertTable',\n 'highlight',\n 'blockQuote',\n 'codeBlock',\n '|',\n 'alignment',\n '|',\n 'outdent',\n 'indent',\n ],\n shouldNotGroupWhenFull: false\n },\n plugins: [\n Alignment,\n AutoLink,\n Autosave,\n BalloonToolbar,\n BlockQuote,\n BlockToolbar,\n Bold,\n Code,\n CodeBlock,\n Essentials,\n FontBackgroundColor,\n FontColor,\n FontFamily,\n FontSize,\n Heading,\n Highlight,\n HorizontalLine,\n ImageEditing,\n ImageUtils,\n Indent,\n IndentBlock,\n Italic,\n Link,\n Paragraph,\n PlainTableOutput,\n RemoveFormat,\n Strikethrough,\n Subscript,\n Superscript,\n Table,\n TableCaption,\n TableCellProperties,\n TableColumnResize,\n TableProperties,\n TableToolbar,\n Underline,\n GeneralHtmlSupport,\n SourceEditing,\n Image,\n ImageBlock,\n ImageCaption,\n ImageEditing,\n ImageInline,\n ImageInsert,\n ImageInsertViaUrl,\n ImageResize,\n ImageStyle,\n ImageTextAlternative,\n ImageToolbar,\n ImageUpload,\n ImageUtils,\n SimpleUploadAdapter,\n LinkImage\n ],\n balloonToolbar: ['bold', 'italic', '|', 'link', 'insertImage', 'uploadImage',],\n blockToolbar: [\n 'fontSize',\n 'fontColor',\n 'fontBackgroundColor',\n '|',\n 'bold',\n 'italic',\n '|',\n 'link',\n 'insertImage', 'uploadImage',\n 'insertTable',\n '|',\n 'outdent',\n 'indent'\n ],\n fontFamily: {\n supportAllValues: true\n },\n fontSize: {\n options: [10, 12, 14, 'default', 18, 20, 22],\n supportAllValues: true\n },\n heading: {\n options: [\n {\n model: 'paragraph',\n title: 'Paragraph',\n class: 'ck-heading_paragraph'\n },\n {\n model: 'heading1',\n view: 'h1',\n title: 'Heading 1',\n class: 'ck-heading_heading1'\n },\n {\n model: 'heading2',\n view: 'h2',\n title: 'Heading 2',\n class: 'ck-heading_heading2'\n },\n {\n model: 'heading3',\n view: 'h3',\n title: 'Heading 3',\n class: 'ck-heading_heading3'\n },\n {\n model: 'heading4',\n view: 'h4',\n title: 'Heading 4',\n class: 'ck-heading_heading4'\n }\n ]\n },\n licenseKey: LICENSE_KEY,\n link: {\n addTargetToExternalLinks: true,\n defaultProtocol: 'https://',\n decorators: {\n toggleDownloadable: {\n mode: 'manual',\n label: 'Downloadable',\n attributes: {\n download: 'file',\n }\n }\n }\n },\n menuBar: {\n isVisible: true\n },\n placeholder: 'Type or paste your content here!',\n table: {\n contentToolbar: [\n 'tableColumn', \n 'tableRow', \n 'mergeTableCells', \n 'tableProperties', \n 'tableCellProperties'\n ]\n },\n htmlSupport: {\n allow: [\n {\n name: /.*/,\n attributes: true,\n classes: true,\n styles: true\n }\n ]\n },\n image: {\n toolbar: [\n 'imageTextAlternative',\n 'toggleImageCaption',\n '|',\n 'imageStyle:inline',\n 'imageStyle:wrapText',\n 'imageStyle:breakText',\n '|',\n 'resizeImage',\n '|',\n 'linkImage'\n ],\n styles: {\n options: [\n 'inline',\n 'alignLeft',\n 'alignRight',\n 'alignCenter',\n 'alignBlockLeft',\n 'alignBlockRight',\n 'block',\n 'side'\n ]\n },\n resizeOptions: [\n {\n name: 'resizeImage:original',\n label: 'Original size',\n value: null\n },\n {\n name: 'resizeImage:25',\n label: '25%',\n value: '25'\n },\n {\n name: 'resizeImage:50',\n label: '50%',\n value: '50'\n },\n {\n name: 'resizeImage:75',\n label: '75%',\n value: '75'\n }\n ],\n insert: {\n integrations: ['insertImageViaUrl']\n }\n },\n simpleUpload: {\n uploadUrl: '/api/upload', // your upload API\n headers: {\n Authorization: 'Bearer <token>'\n }\n },\n autosave: {\n save() {\n return new Promise(resolve => {\n setTimeout(resolve, 1000);\n });\n }\n }\n };\n\n return { ...defaultConfig, ...customConfig };\n};\n\nexport default function CustomEditor({\n editorRef,\n data = '',\n handleEditorReady,\n onError,\n config = {},\n ...rest\n}) {\n const [isReady, setIsReady] = useState(false);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n // Small delay to ensure DOM is ready\n const timer = setTimeout(() => setIsReady(true), 100);\n return () => clearTimeout(timer);\n }, []);\n\n const editorConfig = useMemo(() => {\n return createEditorConfig(config);\n }, [config]);\n\n const myUploadFn = async (file) => {\n // 👇 Your existing function here\n const uFiles = await uploadFiles([file], \"document\");\n const payload = {\n ...getToken(),\n \"title\": file?.name.split(\".\")[0],\n \"path\": \"/\",\n \"is_private\": true,\n \"is_directory\": false,\n \"file_size\": file.size,\n \"is_child\": false,\n \"file_extension\": file?.name.split(\".\")[1],\n \"type\": \"image\",\n \"mime_type\": file.type,\n \"url\": `${import.meta.env.VITE_S3_BUCKET_URL}${uFiles[0]}`\n }\n // Replace with your actual API endpoint\n \n // 👇 Call your existing function\n await postV1Drive(payload);\n return { url: payload.url };\n };\n\n const handleReady = useCallback((editor) => {\n try {\n handleEditorReady?.(editor);\n editor.plugins.get('FileRepository').createUploadAdapter = (loader) => {\n return new MyUploadAdapter(loader, myUploadFn);\n };\n } catch (err) {\n console.error('Error in editor ready handler:', err);\n setError(err);\n onError?.(err);\n }\n }, [handleEditorReady, onError]);\n\n const handleError = useCallback((error, { willEditorRestart }) => {\n console.error('CKEditor error:', error);\n if (!willEditorRestart) {\n setError(error);\n onError?.(error);\n }\n }, [onError]);\n\n if (error) {\n return (\n <div style={{\n padding: '20px',\n border: '1px solid #red',\n borderRadius: '4px',\n backgroundColor: '#fff5f5'\n }}>\n <div style={{ color: '#e53e3e', marginBottom: '10px' }}>\n Editor Error: {error.message}\n </div>\n <button \n onClick={() => setError(null)}\n style={{\n padding: '8px 16px',\n backgroundColor: '#3182ce',\n color: 'white',\n border: 'none',\n borderRadius: '4px'\n }}\n >\n Retry\n </button>\n </div>\n );\n }\n\n if (!isReady) {\n return (\n <div style={{\n padding: '20px',\n textAlign: 'center',\n border: '1px solid #dee2e6',\n borderRadius: '4px'\n }}>\n Loading editor...\n </div>\n );\n }\n\n return (\n <div ref={editorRef} className=\"custom-editor-container\">\n <CKEditor \n editor={ClassicEditor} \n config={editorConfig} \n data={data} \n onReady={handleReady}\n onError={handleError}\n {...rest}\n />\n </div>\n );\n}"],"names":["error"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,MAAM,cAAc;AAGpB,MAAM,gBAAgB;AAAA,EACpB,YAAY,QAAQ,UAAU;AAE5B,SAAK,SAAS;AACd,SAAK,WAAW;AAAA,EAClB;AAAA;AAAA,EAGA,MAAM,SAAS;AACb,UAAM,OAAO,MAAM,KAAK,OAAO;AAC/B,QAAI;AAEF,YAAM,WAAW,MAAM,KAAK,SAAS,IAAI;AAGzC,aAAO;AAAA,QACL,SAAS,SAAS;AAAA;AAAA,MAAA;AAAA,IAEtB,SAAS,OAAO;AACd,cAAQ,MAAM,iBAAiB,KAAK;AACpC,YAAM;AAAA,IACR;AAAA,EACF;AAAA;AAAA,EAGA,QAAQ;AACN,YAAQ,IAAI,gBAAgB;AAAA,EAC9B;AACF;AAEA,SAAS,oBAAoB,QAAQ;AACnC,QAAM,YAAY,OAAO,QAAQ,IAAI,iBAAiB;AAEtD,YAAU,GAAG,uBAAuB,CAAC,KAAK,SAAS;AACjD,UAAM,UAAU,KAAK,QAAQ,SAAS,CAAC;AAGvC,QAAI,WAAW,QAAQ,GAAG,YAAY,GAAG;AACvC,YAAM,MAAM,QAAQ,KAAK,KAAA;AAGzB,UAAI,IAAI,MAAM,iCAAiC,GAAG;AAChD,cAAM,eAAe,OAAO,MAAM,OAAO,CAAA,WAAU;AACjD,iBAAO,OAAO,cAAc,cAAc;AAAA,YACxC,KAAK;AAAA,UAAA,CACN;AAAA,QACH,CAAC;AAED,eAAO,MAAM,cAAc,cAAc,OAAO,MAAM,SAAS,SAAS;AACxE,YAAI,KAAA;AAAA,MACN;AAAA,IACF;AAAA,EACF,CAAC;AACH;AAIA,MAAM,qBAAqB,CAAC,eAAe,OAAO;AAChD,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mBAAmB;AACtB,eAASA,MAAK;AACd,yCAAUA;AAAAA,IACZ;AAAA,EACF,GAAG,CAAC,OAAO,CAAC;AAEZ,MAAI,OAAO;AACT,WACE,qBAAC,SAAI,OAAO;AAAA,MACV,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,cAAc;AAAA,MACd,iBAAiB;AAAA,IAAA,GAEjB,UAAA;AAAA,MAAA,qBAAC,SAAI,OAAO,EAAE,OAAO,WAAW,cAAc,OAAA,GAAU,UAAA;AAAA,QAAA;AAAA,QACvC,MAAM;AAAA,MAAA,GACvB;AAAA,MACA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,SAAS,MAAM,SAAS,IAAI;AAAA,UAC5B,OAAO;AAAA,YACL,SAAS;AAAA,YACT,iBAAiB;AAAA,YACjB,OAAO;AAAA,YACP,QAAQ;AAAA,YACR,cAAc;AAAA,UAAA;AAAA,UAEjB,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAED,GACF;AAAA,EAEJ;AAEA,MAAI,CAAC,SAAS;AACZ,WACE,oBAAC,SAAI,OAAO;AAAA,MACV,SAAS;AAAA,MACT,WAAW;AAAA,MACX,QAAQ;AAAA,MACR,cAAc;AAAA,IAAA,GACb,UAAA,qBAEH;AAAA,EAEJ;AAEA,6BACG,OAAA,EAAI,KAAK,WAAW,WAAU,2BAC7B,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR;AAAA,MACA,SAAS;AAAA,MACT,SAAS;AAAA,MACR,GAAG;AAAA,IAAA;AAAA,EAAA,GAER;AAEJ;"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("react");;/* empty css */var o=;/* empty css */;/* empty css */var t=,/* empty css */d=,/* empty css */r=,/* empty css */n=,/* empty css */l=,/* empty css */a=,/* empty css */s=,/* empty css */u=,/* empty css */c=,/* empty css */g=,/* empty css */m=,/* empty css */p=,/* empty css */k=,/* empty css */x=,/* empty css */h=,/* empty css */b=,/* empty css */f=,/* empty css */j=,/* empty css */I=,/* empty css */_=,/* empty css */v=,/* empty css */y=,/* empty css */q=,/* empty css */T=;/* empty css */class C{constructor(e,i){this.loader=e,this.uploadFn=i}async upload(){const e=await this.loader.file;try{return{default:(await this.uploadFn(e)).url}}catch(i){throw i}}abort(){}}function w(e){e.plugins.get(T.ClipboardPipeline).on("inputTransformation",(i,o)=>{const t=o.content.getChild(0);if(t&&t.is("$textProxy")){const o=t.data.trim();if(o.match(/\.(jpeg|jpg|gif|png|webp|svg)$/i)){const t=e.model.change(e=>e.createElement("imageBlock",{src:o}));e.model.insertContent(t,e.model.document.selection),i.stop()}}})}exports.default=function({editorRef:T,data:z="",handleEditorReady:B,onError:S,config:E={},...R}){const[F,P]=i.useState(!1),[A,L]=i.useState(null);i.useEffect(()=>{const e=setTimeout(()=>P(!0),100);return()=>clearTimeout(e)},[]);const U=i.useMemo(()=>((e={})=>({extraPlugins:[w,b.AutoImage],toolbar:{items:["sourceEditing","undo","redo","|","heading","|","fontSize","fontFamily","fontColor","fontBackgroundColor","|","bold","italic","underline","strikethrough","subscript","superscript","code","removeFormat","|","horizontalLine","link","insertImage","uploadImage","insertTable","highlight","blockQuote","codeBlock","|","alignment","|","outdent","indent"],shouldNotGroupWhenFull:!1},plugins:[n.Alignment,l.AutoLink,a.Autosave,s.BalloonToolbar,u.BlockQuote,s.BlockToolbar,c.Bold,c.Code,g.CodeBlock,m.Essentials,p.FontBackgroundColor,p.FontColor,p.FontFamily,p.FontSize,k.Heading,x.Highlight,h.HorizontalLine,b.ImageEditing,b.ImageUtils,f.Indent,f.IndentBlock,c.Italic,l.Link,j.Paragraph,I.PlainTableOutput,_.RemoveFormat,c.Strikethrough,c.Subscript,c.Superscript,I.Table,I.TableCaption,I.TableCellProperties,I.TableColumnResize,I.TableProperties,I.TableToolbar,c.Underline,v.GeneralHtmlSupport,y.SourceEditing,b.Image,b.ImageBlock,b.ImageCaption,b.ImageEditing,b.ImageInline,b.ImageInsert,b.ImageInsertViaUrl,b.ImageResize,b.ImageStyle,b.ImageTextAlternative,b.ImageToolbar,b.ImageUpload,b.ImageUtils,q.SimpleUploadAdapter,l.LinkImage],balloonToolbar:["bold","italic","|","link","insertImage","uploadImage"],blockToolbar:["fontSize","fontColor","fontBackgroundColor","|","bold","italic","|","link","insertImage","uploadImage","insertTable","|","outdent","indent"],fontFamily:{supportAllValues:!0},fontSize:{options:[10,12,14,"default",18,20,22],supportAllValues:!0},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"}]},licenseKey:"GPL",link:{addTargetToExternalLinks:!0,defaultProtocol:"https://",decorators:{toggleDownloadable:{mode:"manual",label:"Downloadable",attributes:{download:"file"}}}},menuBar:{isVisible:!0},placeholder:"Type or paste your content here!",table:{contentToolbar:["tableColumn","tableRow","mergeTableCells","tableProperties","tableCellProperties"]},htmlSupport:{allow:[{name:/.*/,attributes:!0,classes:!0,styles:!0}]},image:{toolbar:["imageTextAlternative","toggleImageCaption","|","imageStyle:inline","imageStyle:wrapText","imageStyle:breakText","|","resizeImage","|","linkImage"],styles:{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]},resizeOptions:[{name:"resizeImage:original",label:"Original size",value:null},{name:"resizeImage:25",label:"25%",value:"25"},{name:"resizeImage:50",label:"50%",value:"50"},{name:"resizeImage:75",label:"75%",value:"75"}],insert:{integrations:["insertImageViaUrl"]}},simpleUpload:{uploadUrl:"/api/upload",headers:{Authorization:"Bearer <token>"}},autosave:{save:()=>new Promise(e=>{setTimeout(e,1e3)})},...e}))(E),[E]),H=async e=>{const i=await d.uploadFiles([e],"document"),o={...d.getToken(),title:null==e?void 0:e.name.split(".")[0],path:"/",is_private:!0,is_directory:!1,file_size:e.size,is_child:!1,file_extension:null==e?void 0:e.name.split(".")[1],type:"image",mime_type:e.type,url:`undefined${i[0]}`};return await t.postV1Drive(o),{url:o.url}},V=i.useCallback(e=>{try{null==B||B(e),e.plugins.get("FileRepository").createUploadAdapter=e=>new C(e,H)}catch(i){L(i),null==S||S(i)}},[B,S]),O=i.useCallback((e,{willEditorRestart:i})=>{i||(L(e),null==S||S(e))},[S]);return A?/* @__PURE__ */e.jsxs("div",{style:{padding:"20px",border:"1px solid #red",borderRadius:"4px",backgroundColor:"#fff5f5"},children:[
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("react");;/* empty css */var o=;/* empty css */;/* empty css */var t=,/* empty css */d=,/* empty css */r=,/* empty css */n=,/* empty css */l=,/* empty css */a=,/* empty css */s=,/* empty css */u=,/* empty css */c=,/* empty css */m=,/* empty css */g=,/* empty css */p=,/* empty css */k=,/* empty css */x=,/* empty css */h=,/* empty css */b=,/* empty css */f=,/* empty css */j=,/* empty css */I=,/* empty css */_=,/* empty css */v=,/* empty css */y=,/* empty css */q=,/* empty css */T=;/* empty css */class C{constructor(e,i){this.loader=e,this.uploadFn=i}async upload(){const e=await this.loader.file;try{return{default:(await this.uploadFn(e)).url}}catch(i){throw i}}abort(){}}function w(e){e.plugins.get(T.ClipboardPipeline).on("inputTransformation",(i,o)=>{const t=o.content.getChild(0);if(t&&t.is("$textProxy")){const o=t.data.trim();if(o.match(/\.(jpeg|jpg|gif|png|webp|svg)$/i)){const t=e.model.change(e=>e.createElement("imageBlock",{src:o}));e.model.insertContent(t,e.model.document.selection),i.stop()}}})}exports.default=function({editorRef:T,data:z="",handleEditorReady:B,onError:S,config:E={},...R}){const[F,P]=i.useState(!1),[A,L]=i.useState(null);i.useEffect(()=>{const e=setTimeout(()=>P(!0),100);return()=>clearTimeout(e)},[]);const U=i.useMemo(()=>((e={})=>({extraPlugins:[w,b.AutoImage],toolbar:{items:["sourceEditing","undo","redo","|","heading","|","fontSize","fontFamily","fontColor","fontBackgroundColor","|","bold","italic","underline","strikethrough","subscript","superscript","code","removeFormat","|","horizontalLine","link","insertImage","uploadImage","insertTable","highlight","blockQuote","codeBlock","|","alignment","|","outdent","indent"],shouldNotGroupWhenFull:!1},plugins:[n.Alignment,l.AutoLink,a.Autosave,s.BalloonToolbar,u.BlockQuote,s.BlockToolbar,c.Bold,c.Code,m.CodeBlock,g.Essentials,p.FontBackgroundColor,p.FontColor,p.FontFamily,p.FontSize,k.Heading,x.Highlight,h.HorizontalLine,b.ImageEditing,b.ImageUtils,f.Indent,f.IndentBlock,c.Italic,l.Link,j.Paragraph,I.PlainTableOutput,_.RemoveFormat,c.Strikethrough,c.Subscript,c.Superscript,I.Table,I.TableCaption,I.TableCellProperties,I.TableColumnResize,I.TableProperties,I.TableToolbar,c.Underline,v.GeneralHtmlSupport,y.SourceEditing,b.Image,b.ImageBlock,b.ImageCaption,b.ImageEditing,b.ImageInline,b.ImageInsert,b.ImageInsertViaUrl,b.ImageResize,b.ImageStyle,b.ImageTextAlternative,b.ImageToolbar,b.ImageUpload,b.ImageUtils,q.SimpleUploadAdapter,l.LinkImage],balloonToolbar:["bold","italic","|","link","insertImage","uploadImage"],blockToolbar:["fontSize","fontColor","fontBackgroundColor","|","bold","italic","|","link","insertImage","uploadImage","insertTable","|","outdent","indent"],fontFamily:{supportAllValues:!0},fontSize:{options:[10,12,14,"default",18,20,22],supportAllValues:!0},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"}]},licenseKey:"GPL",link:{addTargetToExternalLinks:!0,defaultProtocol:"https://",decorators:{toggleDownloadable:{mode:"manual",label:"Downloadable",attributes:{download:"file"}}}},menuBar:{isVisible:!0},placeholder:"Type or paste your content here!",table:{contentToolbar:["tableColumn","tableRow","mergeTableCells","tableProperties","tableCellProperties"]},htmlSupport:{allow:[{name:/.*/,attributes:!0,classes:!0,styles:!0}]},image:{toolbar:["imageTextAlternative","toggleImageCaption","|","imageStyle:inline","imageStyle:wrapText","imageStyle:breakText","|","resizeImage","|","linkImage"],styles:{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]},resizeOptions:[{name:"resizeImage:original",label:"Original size",value:null},{name:"resizeImage:25",label:"25%",value:"25"},{name:"resizeImage:50",label:"50%",value:"50"},{name:"resizeImage:75",label:"75%",value:"75"}],insert:{integrations:["insertImageViaUrl"]}},simpleUpload:{uploadUrl:"/api/upload",headers:{Authorization:"Bearer <token>"}},autosave:{save:()=>new Promise(e=>{setTimeout(e,1e3)})},...e}))(E),[E]),H=async e=>{const i=await d.uploadFiles([e],"document"),o={...d.getToken(),title:null==e?void 0:e.name.split(".")[0],path:"/",is_private:!0,is_directory:!1,file_size:e.size,is_child:!1,file_extension:null==e?void 0:e.name.split(".")[1],type:"image",mime_type:e.type,url:`https://erpforce-dev.s3.eu-west-1.amazonaws.com/${i[0]}`};return await t.postV1Drive(o),{url:o.url}},V=i.useCallback(e=>{try{null==B||B(e),e.plugins.get("FileRepository").createUploadAdapter=e=>new C(e,H)}catch(i){L(i),null==S||S(i)}},[B,S]),O=i.useCallback((e,{willEditorRestart:i})=>{i||(L(e),null==S||S(e))},[S]);return A?/* @__PURE__ */e.jsxs("div",{style:{padding:"20px",border:"1px solid #red",borderRadius:"4px",backgroundColor:"#fff5f5"},children:[
2
2
  /* @__PURE__ */e.jsxs("div",{style:{color:"#e53e3e",marginBottom:"10px"},children:["Editor Error: ",A.message]}),
3
3
  /* @__PURE__ */e.jsx("button",{onClick:()=>L(null),style:{padding:"8px 16px",backgroundColor:"#3182ce",color:"white",border:"none",borderRadius:"4px"},children:"Retry"})]}):F?/* @__PURE__ */e.jsx("div",{ref:T,className:"custom-editor-container",children:/* @__PURE__ */e.jsx(o.CKEditor,{editor:r.ClassicEditor,config:U,data:z,onReady:V,onError:O,...R})}):/* @__PURE__ */e.jsx("div",{style:{padding:"20px",textAlign:"center",border:"1px solid #dee2e6",borderRadius:"4px"},children:"Loading editor..."})};
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/editor/custom-editor.tsx"],"sourcesContent":["/* eslint-disable unused-imports/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n// IsolatedEditor.js - This file should ONLY be imported via React.lazy()\nimport React, { useState, useEffect, useMemo, useCallback } from 'react';\nimport \"./custom-editor.css\"\n\n// Import ALL CKEditor dependencies in this file ONLY\n// Do NOT import these anywhere else in your application\nimport { CKEditor } from '@ckeditor/ckeditor5-react';\nimport {\n ClassicEditor,\n Alignment,\n AutoLink,\n Autosave,\n BalloonToolbar,\n BlockQuote,\n BlockToolbar,\n Bold,\n Code,\n CodeBlock,\n Essentials,\n FontBackgroundColor,\n FontColor,\n FontFamily,\n FontSize,\n Heading,\n Highlight,\n HorizontalLine,\n ImageEditing,\n ImageUtils,\n Indent,\n IndentBlock,\n Italic,\n Link,\n Paragraph,\n PlainTableOutput,\n RemoveFormat,\n Strikethrough,\n Subscript,\n Superscript,\n Table,\n TableCaption,\n TableCellProperties,\n TableColumnResize,\n TableProperties,\n TableToolbar,\n Underline,\n GeneralHtmlSupport,\n SourceEditing,\n // Image support\n Image,\n ImageBlock,\n ImageInline,\n ImageToolbar,\n ImageCaption,\n ImageStyle,\n ImageResize,\n ImageInsert,\n ImageInsertViaUrl,\n ImageUpload,\n ImageTextAlternative,\n SimpleUploadAdapter,\n LinkImage,\n ClipboardPipeline,\n AutoImage,\n} from 'ckeditor5';\n\nimport 'ckeditor5/ckeditor5.css';\nimport { postV1Drive } from '../../api-client/api.drive/api';\nimport { getToken, uploadFiles } from '../../utils/common';\n\nconst LICENSE_KEY = 'GPL';\n\n\nclass MyUploadAdapter {\n constructor(loader, uploadFn) {\n // The file loader instance to use during the upload\n this.loader = loader;\n this.uploadFn = uploadFn;\n }\n\n // Starts the upload process\n async upload() {\n const file = await this.loader.file;\n try {\n // 👇 Call your existing function\n const response = await this.uploadFn(file);\n\n // CKEditor expects this format:\n return {\n default: response.url // must return final image URL\n };\n } catch (error) {\n console.error(\"Upload failed\", error);\n throw error;\n }\n }\n\n // Optional abort support\n abort() {\n console.log(\"Upload aborted\");\n }\n}\n\nfunction PasteImageUrlPlugin(editor) {\n const clipboard = editor.plugins.get(ClipboardPipeline);\n\n clipboard.on('inputTransformation', (evt, data) => {\n const content = data.content.getChild(0);\n\n // Check if pasted content is plain text\n if (content && content.is('$textProxy')) {\n const url = content.data.trim();\n\n // Check if it looks like an image URL\n if (url.match(/\\.(jpeg|jpg|gif|png|webp|svg)$/i)) {\n const imageElement = editor.model.change(writer => {\n return writer.createElement('imageBlock', {\n src: url\n });\n });\n\n editor.model.insertContent(imageElement, editor.model.document.selection);\n evt.stop(); // prevent default plain text paste\n }\n }\n });\n}\n\n\n// Create the editor configuration\nconst createEditorConfig = (customConfig = {}) => {\n const defaultConfig = {\n extraPlugins: [ PasteImageUrlPlugin, AutoImage ],\n toolbar: {\n items: [\n 'sourceEditing',\n 'undo',\n 'redo',\n '|',\n 'heading',\n '|',\n 'fontSize',\n 'fontFamily',\n 'fontColor',\n 'fontBackgroundColor',\n '|',\n 'bold',\n 'italic',\n 'underline',\n 'strikethrough',\n 'subscript',\n 'superscript',\n 'code',\n 'removeFormat',\n '|',\n 'horizontalLine',\n 'link',\n 'insertImage', 'uploadImage',\n 'insertTable',\n 'highlight',\n 'blockQuote',\n 'codeBlock',\n '|',\n 'alignment',\n '|',\n 'outdent',\n 'indent',\n ],\n shouldNotGroupWhenFull: false\n },\n plugins: [\n Alignment,\n AutoLink,\n Autosave,\n BalloonToolbar,\n BlockQuote,\n BlockToolbar,\n Bold,\n Code,\n CodeBlock,\n Essentials,\n FontBackgroundColor,\n FontColor,\n FontFamily,\n FontSize,\n Heading,\n Highlight,\n HorizontalLine,\n ImageEditing,\n ImageUtils,\n Indent,\n IndentBlock,\n Italic,\n Link,\n Paragraph,\n PlainTableOutput,\n RemoveFormat,\n Strikethrough,\n Subscript,\n Superscript,\n Table,\n TableCaption,\n TableCellProperties,\n TableColumnResize,\n TableProperties,\n TableToolbar,\n Underline,\n GeneralHtmlSupport,\n SourceEditing,\n Image,\n ImageBlock,\n ImageCaption,\n ImageEditing,\n ImageInline,\n ImageInsert,\n ImageInsertViaUrl,\n ImageResize,\n ImageStyle,\n ImageTextAlternative,\n ImageToolbar,\n ImageUpload,\n ImageUtils,\n SimpleUploadAdapter,\n LinkImage\n ],\n balloonToolbar: ['bold', 'italic', '|', 'link', 'insertImage', 'uploadImage',],\n blockToolbar: [\n 'fontSize',\n 'fontColor',\n 'fontBackgroundColor',\n '|',\n 'bold',\n 'italic',\n '|',\n 'link',\n 'insertImage', 'uploadImage',\n 'insertTable',\n '|',\n 'outdent',\n 'indent'\n ],\n fontFamily: {\n supportAllValues: true\n },\n fontSize: {\n options: [10, 12, 14, 'default', 18, 20, 22],\n supportAllValues: true\n },\n heading: {\n options: [\n {\n model: 'paragraph',\n title: 'Paragraph',\n class: 'ck-heading_paragraph'\n },\n {\n model: 'heading1',\n view: 'h1',\n title: 'Heading 1',\n class: 'ck-heading_heading1'\n },\n {\n model: 'heading2',\n view: 'h2',\n title: 'Heading 2',\n class: 'ck-heading_heading2'\n },\n {\n model: 'heading3',\n view: 'h3',\n title: 'Heading 3',\n class: 'ck-heading_heading3'\n },\n {\n model: 'heading4',\n view: 'h4',\n title: 'Heading 4',\n class: 'ck-heading_heading4'\n }\n ]\n },\n licenseKey: LICENSE_KEY,\n link: {\n addTargetToExternalLinks: true,\n defaultProtocol: 'https://',\n decorators: {\n toggleDownloadable: {\n mode: 'manual',\n label: 'Downloadable',\n attributes: {\n download: 'file',\n }\n }\n }\n },\n menuBar: {\n isVisible: true\n },\n placeholder: 'Type or paste your content here!',\n table: {\n contentToolbar: [\n 'tableColumn', \n 'tableRow', \n 'mergeTableCells', \n 'tableProperties', \n 'tableCellProperties'\n ]\n },\n htmlSupport: {\n allow: [\n {\n name: /.*/,\n attributes: true,\n classes: true,\n styles: true\n }\n ]\n },\n image: {\n toolbar: [\n 'imageTextAlternative',\n 'toggleImageCaption',\n '|',\n 'imageStyle:inline',\n 'imageStyle:wrapText',\n 'imageStyle:breakText',\n '|',\n 'resizeImage',\n '|',\n 'linkImage'\n ],\n styles: {\n options: [\n 'inline',\n 'alignLeft',\n 'alignRight',\n 'alignCenter',\n 'alignBlockLeft',\n 'alignBlockRight',\n 'block',\n 'side'\n ]\n },\n resizeOptions: [\n {\n name: 'resizeImage:original',\n label: 'Original size',\n value: null\n },\n {\n name: 'resizeImage:25',\n label: '25%',\n value: '25'\n },\n {\n name: 'resizeImage:50',\n label: '50%',\n value: '50'\n },\n {\n name: 'resizeImage:75',\n label: '75%',\n value: '75'\n }\n ],\n insert: {\n integrations: ['insertImageViaUrl']\n }\n },\n simpleUpload: {\n uploadUrl: '/api/upload', // your upload API\n headers: {\n Authorization: 'Bearer <token>'\n }\n },\n autosave: {\n save() {\n return new Promise(resolve => {\n setTimeout(resolve, 1000);\n });\n }\n }\n };\n\n return { ...defaultConfig, ...customConfig };\n};\n\nexport default function CustomEditor({\n editorRef,\n data = '',\n handleEditorReady,\n onError,\n config = {},\n ...rest\n}) {\n const [isReady, setIsReady] = useState(false);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n // Small delay to ensure DOM is ready\n const timer = setTimeout(() => setIsReady(true), 100);\n return () => clearTimeout(timer);\n }, []);\n\n const editorConfig = useMemo(() => {\n return createEditorConfig(config);\n }, [config]);\n\n const myUploadFn = async (file) => {\n // 👇 Your existing function here\n const uFiles = await uploadFiles([file], \"document\");\n const payload = {\n ...getToken(),\n \"title\": file?.name.split(\".\")[0],\n \"path\": \"/\",\n \"is_private\": true,\n \"is_directory\": false,\n \"file_size\": file.size,\n \"is_child\": false,\n \"file_extension\": file?.name.split(\".\")[1],\n \"type\": \"image\",\n \"mime_type\": file.type,\n \"url\": `${import.meta.env.VITE_S3_BUCKET_URL}${uFiles[0]}`\n }\n // Replace with your actual API endpoint\n \n // 👇 Call your existing function\n await postV1Drive(payload);\n return { url: payload.url };\n };\n\n const handleReady = useCallback((editor) => {\n try {\n handleEditorReady?.(editor);\n editor.plugins.get('FileRepository').createUploadAdapter = (loader) => {\n return new MyUploadAdapter(loader, myUploadFn);\n };\n } catch (err) {\n console.error('Error in editor ready handler:', err);\n setError(err);\n onError?.(err);\n }\n }, [handleEditorReady, onError]);\n\n const handleError = useCallback((error, { willEditorRestart }) => {\n console.error('CKEditor error:', error);\n if (!willEditorRestart) {\n setError(error);\n onError?.(error);\n }\n }, [onError]);\n\n if (error) {\n return (\n <div style={{\n padding: '20px',\n border: '1px solid #red',\n borderRadius: '4px',\n backgroundColor: '#fff5f5'\n }}>\n <div style={{ color: '#e53e3e', marginBottom: '10px' }}>\n Editor Error: {error.message}\n </div>\n <button \n onClick={() => setError(null)}\n style={{\n padding: '8px 16px',\n backgroundColor: '#3182ce',\n color: 'white',\n border: 'none',\n borderRadius: '4px'\n }}\n >\n Retry\n </button>\n </div>\n );\n }\n\n if (!isReady) {\n return (\n <div style={{\n padding: '20px',\n textAlign: 'center',\n border: '1px solid #dee2e6',\n borderRadius: '4px'\n }}>\n Loading editor...\n </div>\n );\n }\n\n return (\n <div ref={editorRef} className=\"custom-editor-container\">\n <CKEditor \n editor={ClassicEditor} \n config={editorConfig} \n data={data} \n onReady={handleReady}\n onError={handleError}\n {...rest}\n />\n </div>\n );\n}"],"names":["MyUploadAdapter","constructor","loader","uploadFn","this","upload","file","default","url","error","abort","PasteImageUrlPlugin","editor","plugins","get","ClipboardPipeline","on","evt","data","content","getChild","is","trim","match","imageElement","model","change","writer","createElement","src","insertContent","document","selection","stop","editorRef","handleEditorReady","onError","config","rest","isReady","setIsReady","useState","setError","useEffect","timer","setTimeout","clearTimeout","editorConfig","useMemo","customConfig","extraPlugins","AutoImage","toolbar","items","shouldNotGroupWhenFull","Alignment","AutoLink","Autosave","BalloonToolbar","BlockQuote","BlockToolbar","Bold","Code","CodeBlock","Essentials","FontBackgroundColor","FontColor","FontFamily","FontSize","Heading","Highlight","HorizontalLine","ImageEditing","ImageUtils","Indent","IndentBlock","Italic","Link","Paragraph","PlainTableOutput","RemoveFormat","Strikethrough","Subscript","Superscript","Table","TableCaption","TableCellProperties","TableColumnResize","TableProperties","TableToolbar","Underline","GeneralHtmlSupport","SourceEditing","Image","ImageBlock","ImageCaption","ImageInline","ImageInsert","ImageInsertViaUrl","ImageResize","ImageStyle","ImageTextAlternative","ImageToolbar","ImageUpload","SimpleUploadAdapter","LinkImage","balloonToolbar","blockToolbar","fontFamily","supportAllValues","fontSize","options","heading","title","class","view","licenseKey","link","addTargetToExternalLinks","defaultProtocol","decorators","toggleDownloadable","mode","label","attributes","download","menuBar","isVisible","placeholder","table","contentToolbar","htmlSupport","allow","name","classes","styles","image","resizeOptions","value","insert","integrations","simpleUpload","uploadUrl","headers","Authorization","autosave","save","Promise","resolve","createEditorConfig","myUploadFn","async","uFiles","uploadFiles","payload","getToken","split","path","is_private","is_directory","file_size","size","is_child","file_extension","type","mime_type","postV1Drive","handleReady","useCallback","createUploadAdapter","err","handleError","willEditorRestart","jsxs","style","padding","border","borderRadius","backgroundColor","children","color","marginBottom","message","jsx","onClick","ref","className","CKEditor","ClassicEditor","onReady","textAlign"],"mappings":"ivEA0EA,MAAMA,EACJ,WAAAC,CAAYC,EAAQC,GAElBC,KAAKF,OAASA,EACdE,KAAKD,SAAWA,CAClB,CAGA,YAAME,GACJ,MAAMC,QAAaF,KAAKF,OAAOI,KAC/B,IAKE,MAAO,CACLC,eAJqBH,KAAKD,SAASG,IAIjBE,IAEtB,OAASC,GAEP,MAA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AuBvK,GACnD,IAAIF,EAAgBE,EAAQoJ,EAEvC,OAASoB,GAEPhI,EAASgI,GACT,MAAAtI,GAAAA,EAAUsI,EACZ,GACC,CAACvI,EAAmBC,IAEjBuI,EAAcH,EAAAA,YAAY,CAAC/J,GAASmK,wBAEnCA,IACHlI,EAASjC,GACT,MAAA2B,GAAAA,EAAU3B,KAEX,CAAC2B,IAEJ,OAAI3B,iBAEAoK,EAAAA,KAAC,OAAIC,MAAO,CACVC,QAAS,OACTC,OAAQ,iBACRC,aAAc,MACdC,gBAAiB,WAEjBC,SAAA;eAAAN,OAAC,OAAIC,MAAO,CAAEM,MAAO,UAAWC,aAAc,QAAUF,SAAA,CAAA,iBACvC1K,EAAM6K;eAEvBC,EAAAA,IAAC,SAAA,CACCC,QAAS,IAAM9I,EAAS,MACxBoI,MAAO,CACLC,QAAS,WACTG,gBAAiB,UACjBE,MAAO,QACPJ,OAAQ,OACRC,aAAc,OAEjBE,SAAA,aAOF5I,uBAcF,MAAA,CAAIkJ,IAAKvJ,EAAWwJ,UAAU,0BAC7BP,wBAAAI,EAAAA,IAACI,EAAAA,SAAA,CACC/K,OAAQgL,EAAAA,cACRvJ,OAAQU,EACR7B,OACA2K,QAAStB,EACTnI,QAASuI,KACLrI,qBAnBNiJ,EAAAA,IAAC,OAAIT,MAAO,CACVC,QAAS,OACTe,UAAW,SACXd,OAAQ,oBACRC,aAAc,OACbE,SAAA,qBAkBT"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/editor/custom-editor.tsx"],"sourcesContent":["/* eslint-disable unused-imports/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n// IsolatedEditor.js - This file should ONLY be imported via React.lazy()\nimport React, { useState, useEffect, useMemo, useCallback } from 'react';\nimport \"./custom-editor.css\"\n\n// Import ALL CKEditor dependencies in this file ONLY\n// Do NOT import these anywhere else in your application\nimport { CKEditor } from '@ckeditor/ckeditor5-react';\nimport {\n ClassicEditor,\n Alignment,\n AutoLink,\n Autosave,\n BalloonToolbar,\n BlockQuote,\n BlockToolbar,\n Bold,\n Code,\n CodeBlock,\n Essentials,\n FontBackgroundColor,\n FontColor,\n FontFamily,\n FontSize,\n Heading,\n Highlight,\n HorizontalLine,\n ImageEditing,\n ImageUtils,\n Indent,\n IndentBlock,\n Italic,\n Link,\n Paragraph,\n PlainTableOutput,\n RemoveFormat,\n Strikethrough,\n Subscript,\n Superscript,\n Table,\n TableCaption,\n TableCellProperties,\n TableColumnResize,\n TableProperties,\n TableToolbar,\n Underline,\n GeneralHtmlSupport,\n SourceEditing,\n // Image support\n Image,\n ImageBlock,\n ImageInline,\n ImageToolbar,\n ImageCaption,\n ImageStyle,\n ImageResize,\n ImageInsert,\n ImageInsertViaUrl,\n ImageUpload,\n ImageTextAlternative,\n SimpleUploadAdapter,\n LinkImage,\n ClipboardPipeline,\n AutoImage,\n} from 'ckeditor5';\n\nimport 'ckeditor5/ckeditor5.css';\nimport { postV1Drive } from '../../api-client/api.drive/api';\nimport { getToken, uploadFiles } from '../../utils/common';\n\nconst LICENSE_KEY = 'GPL';\n\n\nclass MyUploadAdapter {\n constructor(loader, uploadFn) {\n // The file loader instance to use during the upload\n this.loader = loader;\n this.uploadFn = uploadFn;\n }\n\n // Starts the upload process\n async upload() {\n const file = await this.loader.file;\n try {\n // 👇 Call your existing function\n const response = await this.uploadFn(file);\n\n // CKEditor expects this format:\n return {\n default: response.url // must return final image URL\n };\n } catch (error) {\n console.error(\"Upload failed\", error);\n throw error;\n }\n }\n\n // Optional abort support\n abort() {\n console.log(\"Upload aborted\");\n }\n}\n\nfunction PasteImageUrlPlugin(editor) {\n const clipboard = editor.plugins.get(ClipboardPipeline);\n\n clipboard.on('inputTransformation', (evt, data) => {\n const content = data.content.getChild(0);\n\n // Check if pasted content is plain text\n if (content && content.is('$textProxy')) {\n const url = content.data.trim();\n\n // Check if it looks like an image URL\n if (url.match(/\\.(jpeg|jpg|gif|png|webp|svg)$/i)) {\n const imageElement = editor.model.change(writer => {\n return writer.createElement('imageBlock', {\n src: url\n });\n });\n\n editor.model.insertContent(imageElement, editor.model.document.selection);\n evt.stop(); // prevent default plain text paste\n }\n }\n });\n}\n\n\n// Create the editor configuration\nconst createEditorConfig = (customConfig = {}) => {\n const defaultConfig = {\n extraPlugins: [ PasteImageUrlPlugin, AutoImage ],\n toolbar: {\n items: [\n 'sourceEditing',\n 'undo',\n 'redo',\n '|',\n 'heading',\n '|',\n 'fontSize',\n 'fontFamily',\n 'fontColor',\n 'fontBackgroundColor',\n '|',\n 'bold',\n 'italic',\n 'underline',\n 'strikethrough',\n 'subscript',\n 'superscript',\n 'code',\n 'removeFormat',\n '|',\n 'horizontalLine',\n 'link',\n 'insertImage', 'uploadImage',\n 'insertTable',\n 'highlight',\n 'blockQuote',\n 'codeBlock',\n '|',\n 'alignment',\n '|',\n 'outdent',\n 'indent',\n ],\n shouldNotGroupWhenFull: false\n },\n plugins: [\n Alignment,\n AutoLink,\n Autosave,\n BalloonToolbar,\n BlockQuote,\n BlockToolbar,\n Bold,\n Code,\n CodeBlock,\n Essentials,\n FontBackgroundColor,\n FontColor,\n FontFamily,\n FontSize,\n Heading,\n Highlight,\n HorizontalLine,\n ImageEditing,\n ImageUtils,\n Indent,\n IndentBlock,\n Italic,\n Link,\n Paragraph,\n PlainTableOutput,\n RemoveFormat,\n Strikethrough,\n Subscript,\n Superscript,\n Table,\n TableCaption,\n TableCellProperties,\n TableColumnResize,\n TableProperties,\n TableToolbar,\n Underline,\n GeneralHtmlSupport,\n SourceEditing,\n Image,\n ImageBlock,\n ImageCaption,\n ImageEditing,\n ImageInline,\n ImageInsert,\n ImageInsertViaUrl,\n ImageResize,\n ImageStyle,\n ImageTextAlternative,\n ImageToolbar,\n ImageUpload,\n ImageUtils,\n SimpleUploadAdapter,\n LinkImage\n ],\n balloonToolbar: ['bold', 'italic', '|', 'link', 'insertImage', 'uploadImage',],\n blockToolbar: [\n 'fontSize',\n 'fontColor',\n 'fontBackgroundColor',\n '|',\n 'bold',\n 'italic',\n '|',\n 'link',\n 'insertImage', 'uploadImage',\n 'insertTable',\n '|',\n 'outdent',\n 'indent'\n ],\n fontFamily: {\n supportAllValues: true\n },\n fontSize: {\n options: [10, 12, 14, 'default', 18, 20, 22],\n supportAllValues: true\n },\n heading: {\n options: [\n {\n model: 'paragraph',\n title: 'Paragraph',\n class: 'ck-heading_paragraph'\n },\n {\n model: 'heading1',\n view: 'h1',\n title: 'Heading 1',\n class: 'ck-heading_heading1'\n },\n {\n model: 'heading2',\n view: 'h2',\n title: 'Heading 2',\n class: 'ck-heading_heading2'\n },\n {\n model: 'heading3',\n view: 'h3',\n title: 'Heading 3',\n class: 'ck-heading_heading3'\n },\n {\n model: 'heading4',\n view: 'h4',\n title: 'Heading 4',\n class: 'ck-heading_heading4'\n }\n ]\n },\n licenseKey: LICENSE_KEY,\n link: {\n addTargetToExternalLinks: true,\n defaultProtocol: 'https://',\n decorators: {\n toggleDownloadable: {\n mode: 'manual',\n label: 'Downloadable',\n attributes: {\n download: 'file',\n }\n }\n }\n },\n menuBar: {\n isVisible: true\n },\n placeholder: 'Type or paste your content here!',\n table: {\n contentToolbar: [\n 'tableColumn', \n 'tableRow', \n 'mergeTableCells', \n 'tableProperties', \n 'tableCellProperties'\n ]\n },\n htmlSupport: {\n allow: [\n {\n name: /.*/,\n attributes: true,\n classes: true,\n styles: true\n }\n ]\n },\n image: {\n toolbar: [\n 'imageTextAlternative',\n 'toggleImageCaption',\n '|',\n 'imageStyle:inline',\n 'imageStyle:wrapText',\n 'imageStyle:breakText',\n '|',\n 'resizeImage',\n '|',\n 'linkImage'\n ],\n styles: {\n options: [\n 'inline',\n 'alignLeft',\n 'alignRight',\n 'alignCenter',\n 'alignBlockLeft',\n 'alignBlockRight',\n 'block',\n 'side'\n ]\n },\n resizeOptions: [\n {\n name: 'resizeImage:original',\n label: 'Original size',\n value: null\n },\n {\n name: 'resizeImage:25',\n label: '25%',\n value: '25'\n },\n {\n name: 'resizeImage:50',\n label: '50%',\n value: '50'\n },\n {\n name: 'resizeImage:75',\n label: '75%',\n value: '75'\n }\n ],\n insert: {\n integrations: ['insertImageViaUrl']\n }\n },\n simpleUpload: {\n uploadUrl: '/api/upload', // your upload API\n headers: {\n Authorization: 'Bearer <token>'\n }\n },\n autosave: {\n save() {\n return new Promise(resolve => {\n setTimeout(resolve, 1000);\n });\n }\n }\n };\n\n return { ...defaultConfig, ...customConfig };\n};\n\nexport default function CustomEditor({\n editorRef,\n data = '',\n handleEditorReady,\n onError,\n config = {},\n ...rest\n}) {\n const [isReady, setIsReady] = useState(false);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n // Small delay to ensure DOM is ready\n const timer = setTimeout(() => setIsReady(true), 100);\n return () => clearTimeout(timer);\n }, []);\n\n const editorConfig = useMemo(() => {\n return createEditorConfig(config);\n }, [config]);\n\n const myUploadFn = async (file) => {\n // 👇 Your existing function here\n const uFiles = await uploadFiles([file], \"document\");\n const payload = {\n ...getToken(),\n \"title\": file?.name.split(\".\")[0],\n \"path\": \"/\",\n \"is_private\": true,\n \"is_directory\": false,\n \"file_size\": file.size,\n \"is_child\": false,\n \"file_extension\": file?.name.split(\".\")[1],\n \"type\": \"image\",\n \"mime_type\": file.type,\n \"url\": `${import.meta.env.VITE_S3_BUCKET_URL}${uFiles[0]}`\n }\n // Replace with your actual API endpoint\n \n // 👇 Call your existing function\n await postV1Drive(payload);\n return { url: payload.url };\n };\n\n const handleReady = useCallback((editor) => {\n try {\n handleEditorReady?.(editor);\n editor.plugins.get('FileRepository').createUploadAdapter = (loader) => {\n return new MyUploadAdapter(loader, myUploadFn);\n };\n } catch (err) {\n console.error('Error in editor ready handler:', err);\n setError(err);\n onError?.(err);\n }\n }, [handleEditorReady, onError]);\n\n const handleError = useCallback((error, { willEditorRestart }) => {\n console.error('CKEditor error:', error);\n if (!willEditorRestart) {\n setError(error);\n onError?.(error);\n }\n }, [onError]);\n\n if (error) {\n return (\n <div style={{\n padding: '20px',\n border: '1px solid #red',\n borderRadius: '4px',\n backgroundColor: '#fff5f5'\n }}>\n <div style={{ color: '#e53e3e', marginBottom: '10px' }}>\n Editor Error: {error.message}\n </div>\n <button \n onClick={() => setError(null)}\n style={{\n padding: '8px 16px',\n backgroundColor: '#3182ce',\n color: 'white',\n border: 'none',\n borderRadius: '4px'\n }}\n >\n Retry\n </button>\n </div>\n );\n }\n\n if (!isReady) {\n return (\n <div style={{\n padding: '20px',\n textAlign: 'center',\n border: '1px solid #dee2e6',\n borderRadius: '4px'\n }}>\n Loading editor...\n </div>\n );\n }\n\n return (\n <div ref={editorRef} className=\"custom-editor-container\">\n <CKEditor \n editor={ClassicEditor} \n config={editorConfig} \n data={data} \n onReady={handleReady}\n onError={handleError}\n {...rest}\n />\n </div>\n );\n}"],"names":["MyUploadAdapter","constructor","loader","uploadFn","this","upload","file","default","url","error","abort","PasteImageUrlPlugin","editor","plugins","get","ClipboardPipeline","on","evt","data","content","getChild","is","trim","match","imageElement","model","change","writer","createElement","src","insertContent","document","selection","stop","editorRef","handleEditorReady","onError","config","rest","isReady","setIsReady","useState","setError","useEffect","timer","setTimeout","clearTimeout","editorConfig","useMemo","customConfig","extraPlugins","AutoImage","toolbar","items","shouldNotGroupWhenFull","Alignment","AutoLink","Autosave","BalloonToolbar","BlockQuote","BlockToolbar","Bold","Code","CodeBlock","Essentials","FontBackgroundColor","FontColor","FontFamily","FontSize","Heading","Highlight","HorizontalLine","ImageEditing","ImageUtils","Indent","IndentBlock","Italic","Link","Paragraph","PlainTableOutput","RemoveFormat","Strikethrough","Subscript","Superscript","Table","TableCaption","TableCellProperties","TableColumnResize","TableProperties","TableToolbar","Underline","GeneralHtmlSupport","SourceEditing","Image","ImageBlock","ImageCaption","ImageInline","ImageInsert","ImageInsertViaUrl","ImageResize","ImageStyle","ImageTextAlternative","ImageToolbar","ImageUpload","SimpleUploadAdapter","LinkImage","balloonToolbar","blockToolbar","fontFamily","supportAllValues","fontSize","options","heading","title","class","view","licenseKey","link","addTargetToExternalLinks","defaultProtocol","decorators","toggleDownloadable","mode","label","attributes","download","menuBar","isVisible","placeholder","table","contentToolbar","htmlSupport","allow","name","classes","styles","image","resizeOptions","value","insert","integrations","simpleUpload","uploadUrl","headers","Authorization","autosave","save","Promise","resolve","createEditorConfig","myUploadFn","async","uFiles","uploadFiles","payload","getToken","split","path","is_private","is_directory","file_size","size","is_child","file_extension","type","mime_type","postV1Drive","handleReady","useCallback","createUploadAdapter","err","handleError","willEditorRestart","jsxs","style","padding","border","borderRadius","backgroundColor","children","color","marginBottom","message","jsx","onClick","ref","className","CKEditor","ClassicEditor","onReady","textAlign"],"mappings":"ivEA0EA,MAAMA,EACJ,WAAAC,CAAYC,EAAQC,GAElBC,KAAKF,OAASA,EACdE,KAAKD,SAAWA,CAClB,CAGA,YAAME,GACJ,MAAMC,QAAaF,KAAKF,OAAOI,KAC/B,IAKE,MAAO,CACLC,eAJqBH,KAAKD,SAASG,IAIjBE,IAEtB,OAASC,GAEP,MAAMA,CACR,CACF,CAGA,KAAAC,GAEA,EAGF,SAASC,EAAoBC,GACTA,EAAOC,QAAQC,IAAIC,EAAAA,mBAE3BC,GAAG,sBAAuB,CAACC,EAAKC,KACxC,MAAMC,EAAUD,EAAKC,QAAQC,SAAS,GAGtC,GAAID,GAAWA,EAAQE,GAAG,cAAe,CACvC,MAAMb,EAAMW,EAAQD,KAAKI,OAGzB,GAAId,EAAIe,MAAM,mCAAoC,CAChD,MAAMC,EAAeZ,EAAOa,MAAMC,OAAOC,GAChCA,EAAOC,cAAc,aAAc,CACxCC,IAAKrB,KAITI,EAAOa,MAAMK,cAAcN,EAAcZ,EAAOa,MAAMM,SAASC,WAC/Df,EAAIgB,MACN,CACF,GAEJ,iBAqQA,UAAqCC,UACnCA,EAAAhB,KACAA,EAAO,GAAAiB,kBACPA,EAAAC,QACAA,EAAAC,OACAA,EAAS,CAAA,KACNC,IAEH,MAAOC,EAASC,GAAcC,EAAAA,UAAS,IAChChC,EAAOiC,GAAYD,EAAAA,SAAS,MAEn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,EAAWwJ,UAAU,0BAC7BP,wBAAAI,EAAAA,IAACI,EAAAA,SAAA,CACC/K,OAAQgL,EAAAA,cACRvJ,OAAQU,EACR7B,OACA2K,QAAStB,EACTnI,QAASuI,KACLrI,qBAnBNiJ,EAAAA,IAAC,OAAIT,MAAO,CACVC,QAAS,OACTe,UAAW,SACXd,OAAQ,oBACRC,aAAc,OACbE,SAAA,qBAkBT"}
@@ -38,7 +38,7 @@ import DialogContent from "../../../node_modules/@mui/material/DialogContent/Dia
38
38
  import Alert from "../../../node_modules/@mui/material/Alert/Alert/index.esm.js";
39
39
  import DialogActions from "../../../node_modules/@mui/material/DialogActions/DialogActions/index.esm.js";
40
40
  import { Trash } from "../../icons/trash/index.esm.js";
41
- setBaseUrl(`${void 0}/system-feature`);
41
+ setBaseUrl(`${"https://apidev.erpforce.co"}/system-feature`);
42
42
  const initialQuery = { combinator: "and", rules: [] };
43
43
  const Filter = ({
44
44
  open,