@max-ts/components 0.0.2

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 (962) hide show
  1. package/.storybook/main.ts +26 -0
  2. package/.storybook/preview.ts +14 -0
  3. package/.turbo/turbo-build.log +508 -0
  4. package/.turbo/turbo-type$colon$check.log +760 -0
  5. package/CHANGELOG.md +7 -0
  6. package/dist/components/Accordion/Accordion.d.ts +39 -0
  7. package/dist/components/Accordion/index.d.ts +1 -0
  8. package/dist/components/Accordion/styles.d.ts +21 -0
  9. package/dist/components/ActionCell/ActionCell.d.ts +24 -0
  10. package/dist/components/ActionCell/MainAction/MainAction.d.ts +13 -0
  11. package/dist/components/ActionCell/MainAction/index.d.ts +1 -0
  12. package/dist/components/ActionCell/SecondaryAction/SecondaryActions.d.ts +13 -0
  13. package/dist/components/ActionCell/SecondaryAction/index.d.ts +1 -0
  14. package/dist/components/ActionCell/index.d.ts +1 -0
  15. package/dist/components/ActionCell/styles.d.ts +1 -0
  16. package/dist/components/ActionCell/types.d.ts +66 -0
  17. package/dist/components/ActionCell/useLogic/index.d.ts +1 -0
  18. package/dist/components/ActionCell/useLogic/useLogic.d.ts +11 -0
  19. package/dist/components/AsyncAutocomplete/AsyncAutocomplete.d.ts +61 -0
  20. package/dist/components/AsyncAutocomplete/constants.d.ts +4 -0
  21. package/dist/components/AsyncAutocomplete/index.d.ts +1 -0
  22. package/dist/components/AsyncAutocomplete/useLogic/index.d.ts +1 -0
  23. package/dist/components/AsyncAutocomplete/useLogic/useLogic.d.ts +12 -0
  24. package/dist/components/Autocomplete/Autocomplete.d.ts +47 -0
  25. package/dist/components/Autocomplete/constants.d.ts +2 -0
  26. package/dist/components/Autocomplete/enums.d.ts +4 -0
  27. package/dist/components/Autocomplete/index.d.ts +1 -0
  28. package/dist/components/Autocomplete/styles.d.ts +7 -0
  29. package/dist/components/Autocomplete/useLogic/index.d.ts +1 -0
  30. package/dist/components/Autocomplete/useLogic/useLogic.d.ts +15 -0
  31. package/dist/components/Autocomplete/useLogic/utils/checkIsInputEmpty/checkIsInputEmpty.d.ts +1 -0
  32. package/dist/components/Autocomplete/useLogic/utils/checkIsInputEmpty/index.d.ts +1 -0
  33. package/dist/components/Autocomplete/useLogic/utils/index.d.ts +1 -0
  34. package/dist/components/Badge/Badge.d.ts +18 -0
  35. package/dist/components/Badge/index.d.ts +2 -0
  36. package/dist/components/Badge/styles.d.ts +8 -0
  37. package/dist/components/Badge/types.d.ts +2 -0
  38. package/dist/components/BottomDrawer/BottomDrawer.d.ts +15 -0
  39. package/dist/components/BottomDrawer/constants.d.ts +2 -0
  40. package/dist/components/BottomDrawer/index.d.ts +1 -0
  41. package/dist/components/BottomDrawer/styles.d.ts +20 -0
  42. package/dist/components/Button/Button.d.ts +35 -0
  43. package/dist/components/Button/constants.d.ts +1 -0
  44. package/dist/components/Button/enums.d.ts +23 -0
  45. package/dist/components/Button/index.d.ts +4 -0
  46. package/dist/components/Button/styles.d.ts +5 -0
  47. package/dist/components/Button/types.d.ts +19 -0
  48. package/dist/components/Button/useLogic/index.d.ts +1 -0
  49. package/dist/components/Button/useLogic/useLogic.d.ts +5 -0
  50. package/dist/components/Checkbox/Checkbox.d.ts +9 -0
  51. package/dist/components/Checkbox/icons.d.ts +4 -0
  52. package/dist/components/Checkbox/index.d.ts +1 -0
  53. package/dist/components/Checkbox/styles.d.ts +5 -0
  54. package/dist/components/CheckboxField/CheckboxField.d.ts +24 -0
  55. package/dist/components/CheckboxField/index.d.ts +1 -0
  56. package/dist/components/CheckboxField/styles.d.ts +8 -0
  57. package/dist/components/Chevron/Chevron.d.ts +7 -0
  58. package/dist/components/Chevron/index.d.ts +1 -0
  59. package/dist/components/Chevron/styles.d.ts +5 -0
  60. package/dist/components/CircularProgress/CircularProgress.d.ts +19 -0
  61. package/dist/components/CircularProgress/constants.d.ts +8 -0
  62. package/dist/components/CircularProgress/index.d.ts +1 -0
  63. package/dist/components/CircularProgress/useLogic/index.d.ts +1 -0
  64. package/dist/components/CircularProgress/useLogic/useLogic.d.ts +6 -0
  65. package/dist/components/Collapse/Collapse.d.ts +4 -0
  66. package/dist/components/Collapse/index.d.ts +1 -0
  67. package/dist/components/ConfigProvider/ConfigProvider.d.ts +91 -0
  68. package/dist/components/ConfigProvider/index.d.ts +1 -0
  69. package/dist/components/ConfirmAction/ConfirmAction.d.ts +38 -0
  70. package/dist/components/ConfirmAction/constants.d.ts +8 -0
  71. package/dist/components/ConfirmAction/index.d.ts +1 -0
  72. package/dist/components/ConfirmAction/styles.d.ts +16 -0
  73. package/dist/components/ConfirmAction/useLogic/index.d.ts +1 -0
  74. package/dist/components/ConfirmAction/useLogic/useLogic.d.ts +22 -0
  75. package/dist/components/Container/Container.d.ts +8 -0
  76. package/dist/components/Container/index.d.ts +1 -0
  77. package/dist/components/Container/styles.d.ts +24 -0
  78. package/dist/components/ContentState/ContentState.d.ts +36 -0
  79. package/dist/components/ContentState/index.d.ts +2 -0
  80. package/dist/components/ContentState/styles.d.ts +1 -0
  81. package/dist/components/ContentState/types.d.ts +29 -0
  82. package/dist/components/CopyTypography/CopyTypography.d.ts +17 -0
  83. package/dist/components/CopyTypography/enums.d.ts +5 -0
  84. package/dist/components/CopyTypography/index.d.ts +1 -0
  85. package/dist/components/CopyTypography/styles.d.ts +17 -0
  86. package/dist/components/CopyTypography/useLogic/index.d.ts +1 -0
  87. package/dist/components/CopyTypography/useLogic/useLogic.d.ts +10 -0
  88. package/dist/components/DataGrid/Body/Body.d.ts +99 -0
  89. package/dist/components/DataGrid/Body/index.d.ts +1 -0
  90. package/dist/components/DataGrid/Body/styles.d.ts +4 -0
  91. package/dist/components/DataGrid/Body/useLogic/index.d.ts +1 -0
  92. package/dist/components/DataGrid/Body/useLogic/useLogic.d.ts +11 -0
  93. package/dist/components/DataGrid/Cell/Cell.d.ts +26 -0
  94. package/dist/components/DataGrid/Cell/index.d.ts +1 -0
  95. package/dist/components/DataGrid/Cell/styles.d.ts +8 -0
  96. package/dist/components/DataGrid/Cell/useLogic/index.d.ts +1 -0
  97. package/dist/components/DataGrid/Cell/useLogic/useLogic.d.ts +8 -0
  98. package/dist/components/DataGrid/DataGrid.d.ts +154 -0
  99. package/dist/components/DataGrid/DataGridContext/DataGridContext.d.ts +7 -0
  100. package/dist/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +6 -0
  101. package/dist/components/DataGrid/DataGridContext/DataGridProvider/index.d.ts +1 -0
  102. package/dist/components/DataGrid/DataGridContext/index.d.ts +2 -0
  103. package/dist/components/DataGrid/Head/Head.d.ts +37 -0
  104. package/dist/components/DataGrid/Head/index.d.ts +1 -0
  105. package/dist/components/DataGrid/Head/styles.d.ts +4 -0
  106. package/dist/components/DataGrid/Head/useLogic/index.d.ts +1 -0
  107. package/dist/components/DataGrid/Head/useLogic/useLogic.d.ts +12 -0
  108. package/dist/components/DataGrid/HeadCell/HeadCell.d.ts +18 -0
  109. package/dist/components/DataGrid/HeadCell/index.d.ts +1 -0
  110. package/dist/components/DataGrid/HeadCell/styles.d.ts +22 -0
  111. package/dist/components/DataGrid/HeadCell/useLogic/index.d.ts +1 -0
  112. package/dist/components/DataGrid/HeadCell/useLogic/useLogic.d.ts +10 -0
  113. package/dist/components/DataGrid/Loader/Loader.d.ts +6 -0
  114. package/dist/components/DataGrid/Loader/index.d.ts +1 -0
  115. package/dist/components/DataGrid/Loader/styles.d.ts +4 -0
  116. package/dist/components/DataGrid/NoData/NoData.d.ts +34 -0
  117. package/dist/components/DataGrid/NoData/index.d.ts +1 -0
  118. package/dist/components/DataGrid/Row/NestedChildren/NestedChildren.d.ts +55 -0
  119. package/dist/components/DataGrid/Row/NestedChildren/index.d.ts +1 -0
  120. package/dist/components/DataGrid/Row/NestedChildren/styles.d.ts +20 -0
  121. package/dist/components/DataGrid/Row/NestedChildren/useLogic/index.d.ts +1 -0
  122. package/dist/components/DataGrid/Row/NestedChildren/useLogic/useLogic.d.ts +18 -0
  123. package/dist/components/DataGrid/Row/Row.d.ts +91 -0
  124. package/dist/components/DataGrid/Row/RowContext/RowContext.d.ts +7 -0
  125. package/dist/components/DataGrid/Row/RowContext/RowProvider/RowProvider.d.ts +6 -0
  126. package/dist/components/DataGrid/Row/RowContext/RowProvider/index.d.ts +1 -0
  127. package/dist/components/DataGrid/Row/RowContext/index.d.ts +2 -0
  128. package/dist/components/DataGrid/Row/constants.d.ts +2 -0
  129. package/dist/components/DataGrid/Row/index.d.ts +2 -0
  130. package/dist/components/DataGrid/Row/styles.d.ts +31 -0
  131. package/dist/components/DataGrid/Row/useLogic/index.d.ts +1 -0
  132. package/dist/components/DataGrid/Row/useLogic/useLogic.d.ts +35 -0
  133. package/dist/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.d.ts +4 -0
  134. package/dist/components/DataGrid/Row/useLogic/utils/getColumnsMap/index.d.ts +1 -0
  135. package/dist/components/DataGrid/Row/useLogic/utils/index.d.ts +2 -0
  136. package/dist/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/index.d.ts +1 -0
  137. package/dist/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.d.ts +2 -0
  138. package/dist/components/DataGrid/Row/utils/checkIsDisabled/checkIsDisabled.d.ts +1 -0
  139. package/dist/components/DataGrid/Row/utils/checkIsDisabled/index.d.ts +1 -0
  140. package/dist/components/DataGrid/Row/utils/index.d.ts +1 -0
  141. package/dist/components/DataGrid/constants.d.ts +6 -0
  142. package/dist/components/DataGrid/enums.d.ts +8 -0
  143. package/dist/components/DataGrid/faker.d.ts +24 -0
  144. package/dist/components/DataGrid/index.d.ts +6 -0
  145. package/dist/components/DataGrid/styles.d.ts +5 -0
  146. package/dist/components/DataGrid/types.d.ts +91 -0
  147. package/dist/components/DataGrid/useLogic/index.d.ts +1 -0
  148. package/dist/components/DataGrid/useLogic/useLogic.d.ts +32 -0
  149. package/dist/components/DataGrid/useLogic/utils/getGridTemplateColumns/getGridTemplateColumns.d.ts +3 -0
  150. package/dist/components/DataGrid/useLogic/utils/getGridTemplateColumns/index.d.ts +1 -0
  151. package/dist/components/DataGrid/useLogic/utils/index.d.ts +1 -0
  152. package/dist/components/DataGrid/utils/alignToJustifyContent/alignToJustifyContent.d.ts +5 -0
  153. package/dist/components/DataGrid/utils/alignToJustifyContent/constants.d.ts +6 -0
  154. package/dist/components/DataGrid/utils/alignToJustifyContent/index.d.ts +1 -0
  155. package/dist/components/DataGrid/utils/index.d.ts +1 -0
  156. package/dist/components/DataGridActionCell/DataGridActionCell.d.ts +22 -0
  157. package/dist/components/DataGridActionCell/MainAction/MainAction.d.ts +22 -0
  158. package/dist/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.d.ts +19 -0
  159. package/dist/components/DataGridActionCell/MainAction/MainIconButton/index.d.ts +1 -0
  160. package/dist/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.d.ts +1 -0
  161. package/dist/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.d.ts +11 -0
  162. package/dist/components/DataGridActionCell/MainAction/index.d.ts +1 -0
  163. package/dist/components/DataGridActionCell/SecondaryAction/SecondaryAction.d.ts +22 -0
  164. package/dist/components/DataGridActionCell/SecondaryAction/index.d.ts +1 -0
  165. package/dist/components/DataGridActionCell/index.d.ts +1 -0
  166. package/dist/components/DataGridActionCell/styles.d.ts +1 -0
  167. package/dist/components/DataGridActionCell/types.d.ts +98 -0
  168. package/dist/components/DataGridActionCell/useLogic/index.d.ts +1 -0
  169. package/dist/components/DataGridActionCell/useLogic/useLogic.d.ts +10 -0
  170. package/dist/components/DataGridOld/Body/Body.d.ts +13 -0
  171. package/dist/components/DataGridOld/Body/index.d.ts +1 -0
  172. package/dist/components/DataGridOld/Body/styles.d.ts +1 -0
  173. package/dist/components/DataGridOld/Cell/Cell.d.ts +7 -0
  174. package/dist/components/DataGridOld/Cell/index.d.ts +1 -0
  175. package/dist/components/DataGridOld/Cell/styles.d.ts +4 -0
  176. package/dist/components/DataGridOld/DataGridOld.d.ts +20 -0
  177. package/dist/components/DataGridOld/Head/Head.d.ts +7 -0
  178. package/dist/components/DataGridOld/Head/index.d.ts +1 -0
  179. package/dist/components/DataGridOld/Head/styles.d.ts +4 -0
  180. package/dist/components/DataGridOld/HeadCell/HeadCell.d.ts +5 -0
  181. package/dist/components/DataGridOld/HeadCell/index.d.ts +1 -0
  182. package/dist/components/DataGridOld/HeadCell/styles.d.ts +3 -0
  183. package/dist/components/DataGridOld/Row/Row.d.ts +11 -0
  184. package/dist/components/DataGridOld/Row/index.d.ts +1 -0
  185. package/dist/components/DataGridOld/Row/styles.d.ts +5 -0
  186. package/dist/components/DataGridOld/State/State.d.ts +6 -0
  187. package/dist/components/DataGridOld/State/index.d.ts +1 -0
  188. package/dist/components/DataGridOld/State/styles.d.ts +1 -0
  189. package/dist/components/DataGridOld/constants.d.ts +1 -0
  190. package/dist/components/DataGridOld/index.d.ts +2 -0
  191. package/dist/components/DataGridOld/styles.d.ts +7 -0
  192. package/dist/components/DataGridOld/types.d.ts +15 -0
  193. package/dist/components/DataGridPagination/DataGridPagination.d.ts +25 -0
  194. package/dist/components/DataGridPagination/constants.d.ts +2 -0
  195. package/dist/components/DataGridPagination/faker.d.ts +3 -0
  196. package/dist/components/DataGridPagination/index.d.ts +1 -0
  197. package/dist/components/DataGridPagination/styles.d.ts +16 -0
  198. package/dist/components/DataGridPagination/useLogic/index.d.ts +1 -0
  199. package/dist/components/DataGridPagination/useLogic/useLogic.d.ts +10 -0
  200. package/dist/components/Description/Description.d.ts +34 -0
  201. package/dist/components/Description/DescriptionContext/DescriptionContext.d.ts +6 -0
  202. package/dist/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.d.ts +7 -0
  203. package/dist/components/Description/DescriptionContext/DescriptionContextProvider/index.d.ts +1 -0
  204. package/dist/components/Description/DescriptionContext/index.d.ts +2 -0
  205. package/dist/components/Description/Name/Name.d.ts +3 -0
  206. package/dist/components/Description/Name/index.d.ts +1 -0
  207. package/dist/components/Description/Name/styles.d.ts +6 -0
  208. package/dist/components/Description/Value/Value.d.ts +22 -0
  209. package/dist/components/Description/Value/index.d.ts +1 -0
  210. package/dist/components/Description/Value/styles.d.ts +43 -0
  211. package/dist/components/Description/Value/useLogic/index.d.ts +1 -0
  212. package/dist/components/Description/Value/useLogic/useLogic.d.ts +9 -0
  213. package/dist/components/Description/constants.d.ts +3 -0
  214. package/dist/components/Description/index.d.ts +2 -0
  215. package/dist/components/Description/styles.d.ts +4 -0
  216. package/dist/components/Description/useLogic/index.d.ts +1 -0
  217. package/dist/components/Description/useLogic/useLogic.d.ts +9 -0
  218. package/dist/components/DescriptionList/DescriptionList.d.ts +2 -0
  219. package/dist/components/DescriptionList/index.d.ts +2 -0
  220. package/dist/components/DescriptionList/styles.d.ts +22 -0
  221. package/dist/components/DescriptionList/types.d.ts +32 -0
  222. package/dist/components/DescriptionList/utils/getTooltipProps/getTooltipProps.d.ts +3 -0
  223. package/dist/components/DescriptionList/utils/getTooltipProps/index.d.ts +1 -0
  224. package/dist/components/DescriptionList/utils/index.d.ts +1 -0
  225. package/dist/components/Dialog/Dialog.d.ts +20 -0
  226. package/dist/components/Dialog/constants.d.ts +22 -0
  227. package/dist/components/Dialog/index.d.ts +1 -0
  228. package/dist/components/Dialog/styles.d.ts +5 -0
  229. package/dist/components/DialogActions/DialogActions.d.ts +4 -0
  230. package/dist/components/DialogActions/index.d.ts +1 -0
  231. package/dist/components/DialogActions/styles.d.ts +6 -0
  232. package/dist/components/DialogContent/DialogContent.d.ts +4 -0
  233. package/dist/components/DialogContent/index.d.ts +1 -0
  234. package/dist/components/DialogContent/styles.d.ts +2 -0
  235. package/dist/components/DialogContentText/DialogContentText.d.ts +4 -0
  236. package/dist/components/DialogContentText/index.d.ts +1 -0
  237. package/dist/components/DialogContentText/styles.d.ts +1 -0
  238. package/dist/components/DialogHeader/DialogHeader.d.ts +17 -0
  239. package/dist/components/DialogHeader/index.d.ts +1 -0
  240. package/dist/components/DialogHeader/styles.d.ts +18 -0
  241. package/dist/components/DialogTitle/DialogTitle.d.ts +6 -0
  242. package/dist/components/DialogTitle/index.d.ts +1 -0
  243. package/dist/components/Divider/Divider.d.ts +4 -0
  244. package/dist/components/Divider/index.d.ts +1 -0
  245. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +36 -0
  246. package/dist/components/ErrorBoundary/ErrorBoundary.stubs.d.ts +12 -0
  247. package/dist/components/ErrorBoundary/constants.d.ts +9 -0
  248. package/dist/components/ErrorBoundary/enums.d.ts +9 -0
  249. package/dist/components/ErrorBoundary/index.d.ts +1 -0
  250. package/dist/components/FormControl/FormControl.d.ts +4 -0
  251. package/dist/components/FormControl/index.d.ts +1 -0
  252. package/dist/components/FormControlLabel/FormControlLabel.d.ts +2 -0
  253. package/dist/components/FormControlLabel/index.d.ts +2 -0
  254. package/dist/components/FormControlLabel/styles.d.ts +2 -0
  255. package/dist/components/FormControlLabel/types.d.ts +3 -0
  256. package/dist/components/FormHelperText/FormHelperText.d.ts +7 -0
  257. package/dist/components/FormHelperText/FormHelperTextContent/FormHelperTextContent.d.ts +7 -0
  258. package/dist/components/FormHelperText/FormHelperTextContent/index.d.ts +1 -0
  259. package/dist/components/FormHelperText/FormHelperTextContent/styles.d.ts +9 -0
  260. package/dist/components/FormHelperText/index.d.ts +2 -0
  261. package/dist/components/GuidTypography/GuidTypography.d.ts +3 -0
  262. package/dist/components/GuidTypography/index.d.ts +1 -0
  263. package/dist/components/IconButton/IconButton.d.ts +9 -0
  264. package/dist/components/IconButton/index.d.ts +1 -0
  265. package/dist/components/IconButton/styles.d.ts +23 -0
  266. package/dist/components/IconDropdownButton/IconDropdownButton.d.ts +9 -0
  267. package/dist/components/IconDropdownButton/index.d.ts +1 -0
  268. package/dist/components/InternalErrorPlaceholder/InternalErrorPlaceholder.d.ts +1 -0
  269. package/dist/components/InternalErrorPlaceholder/index.d.ts +1 -0
  270. package/dist/components/Link/Link.d.ts +24 -0
  271. package/dist/components/Link/index.d.ts +1 -0
  272. package/dist/components/Link/styles.d.ts +1 -0
  273. package/dist/components/List/List.d.ts +4 -0
  274. package/dist/components/List/index.d.ts +1 -0
  275. package/dist/components/ListItem/ListItem.d.ts +4 -0
  276. package/dist/components/ListItem/index.d.ts +1 -0
  277. package/dist/components/ListItemButton/ListItemButton.d.ts +21 -0
  278. package/dist/components/ListItemButton/constants.d.ts +5 -0
  279. package/dist/components/ListItemButton/index.d.ts +1 -0
  280. package/dist/components/ListItemIcon/ListItemIcon.d.ts +5 -0
  281. package/dist/components/ListItemIcon/index.d.ts +1 -0
  282. package/dist/components/ListItemIcon/styles.d.ts +1 -0
  283. package/dist/components/ListItemText/ListItemText.d.ts +4 -0
  284. package/dist/components/ListItemText/index.d.ts +1 -0
  285. package/dist/components/ListSubheader/ListSubheader.d.ts +4 -0
  286. package/dist/components/ListSubheader/index.d.ts +1 -0
  287. package/dist/components/Menu/Menu.d.ts +9 -0
  288. package/dist/components/Menu/index.d.ts +1 -0
  289. package/dist/components/MenuItem/MenuItem.d.ts +28 -0
  290. package/dist/components/MenuItem/index.d.ts +1 -0
  291. package/dist/components/MenuList/MenuList.d.ts +2 -0
  292. package/dist/components/MenuList/index.d.ts +2 -0
  293. package/dist/components/MenuList/styles.d.ts +1 -0
  294. package/dist/components/MenuList/types.d.ts +3 -0
  295. package/dist/components/NavMenu/Item/Item.d.ts +16 -0
  296. package/dist/components/NavMenu/Item/ItemButton/ItemButton.d.ts +11 -0
  297. package/dist/components/NavMenu/Item/ItemButton/index.d.ts +1 -0
  298. package/dist/components/NavMenu/Item/ItemButton/styles.d.ts +639 -0
  299. package/dist/components/NavMenu/Item/List/List.d.ts +13 -0
  300. package/dist/components/NavMenu/Item/List/index.d.ts +1 -0
  301. package/dist/components/NavMenu/Item/index.d.ts +1 -0
  302. package/dist/components/NavMenu/NavMenu.d.ts +15 -0
  303. package/dist/components/NavMenu/index.d.ts +1 -0
  304. package/dist/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.d.ts +1 -0
  305. package/dist/components/OutdatedReleasePlaceholder/index.d.ts +1 -0
  306. package/dist/components/OverflowTypography/OverflowTypography.d.ts +35 -0
  307. package/dist/components/OverflowTypography/hooks/index.d.ts +1 -0
  308. package/dist/components/OverflowTypography/hooks/useOverflowed/index.d.ts +1 -0
  309. package/dist/components/OverflowTypography/hooks/useOverflowed/useOverflowed.d.ts +5 -0
  310. package/dist/components/OverflowTypography/index.d.ts +1 -0
  311. package/dist/components/OverflowTypography/styles.d.ts +35 -0
  312. package/dist/components/OverflowTypography/useLogic/index.d.ts +1 -0
  313. package/dist/components/OverflowTypography/useLogic/useLogic.d.ts +8 -0
  314. package/dist/components/OverflowTypography/utils/index.d.ts +1 -0
  315. package/dist/components/OverflowTypography/utils/truncateString/index.d.ts +1 -0
  316. package/dist/components/OverflowTypography/utils/truncateString/truncateString.d.ts +4 -0
  317. package/dist/components/Pagination/Pagination.d.ts +2 -0
  318. package/dist/components/Pagination/index.d.ts +2 -0
  319. package/dist/components/Pagination/types.d.ts +3 -0
  320. package/dist/components/Paper/Paper.d.ts +14 -0
  321. package/dist/components/Paper/index.d.ts +1 -0
  322. package/dist/components/Placeholder/Image/Image.d.ts +21 -0
  323. package/dist/components/Placeholder/Image/index.d.ts +1 -0
  324. package/dist/components/Placeholder/Image/styles.d.ts +4 -0
  325. package/dist/components/Placeholder/Placeholder.d.ts +45 -0
  326. package/dist/components/Placeholder/constants.d.ts +14 -0
  327. package/dist/components/Placeholder/index.d.ts +3 -0
  328. package/dist/components/Placeholder/styles.d.ts +35 -0
  329. package/dist/components/Placeholder/types.d.ts +1 -0
  330. package/dist/components/Popover/Popover.d.ts +9 -0
  331. package/dist/components/Popover/index.d.ts +1 -0
  332. package/dist/components/SearchField/SearchField.d.ts +3 -0
  333. package/dist/components/SearchField/index.d.ts +1 -0
  334. package/dist/components/SearchField/styles.d.ts +22 -0
  335. package/dist/components/Select/Select.d.ts +25 -0
  336. package/dist/components/Select/constants.d.ts +1 -0
  337. package/dist/components/Select/index.d.ts +1 -0
  338. package/dist/components/Select/styles.d.ts +23 -0
  339. package/dist/components/Select/useLogic/index.d.ts +1 -0
  340. package/dist/components/Select/useLogic/useLogic.d.ts +10 -0
  341. package/dist/components/Tag/Tag.d.ts +36 -0
  342. package/dist/components/Tag/enums.d.ts +18 -0
  343. package/dist/components/Tag/index.d.ts +2 -0
  344. package/dist/components/Tag/styles.d.ts +27 -0
  345. package/dist/components/Tag/types.d.ts +5 -0
  346. package/dist/components/TagBadge/TagBadge.d.ts +23 -0
  347. package/dist/components/TagBadge/index.d.ts +1 -0
  348. package/dist/components/TagBadge/styles.d.ts +5 -0
  349. package/dist/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.d.ts +15 -0
  350. package/dist/components/TagBadge/utils/getCheckableTagBadgeBgColor/index.d.ts +1 -0
  351. package/dist/components/TagBadge/utils/index.d.ts +1 -0
  352. package/dist/components/TagsList/Tag/Tag.d.ts +25 -0
  353. package/dist/components/TagsList/Tag/index.d.ts +1 -0
  354. package/dist/components/TagsList/Tag/styles.d.ts +11 -0
  355. package/dist/components/TagsList/Tag/useLogic/index.d.ts +1 -0
  356. package/dist/components/TagsList/Tag/useLogic/useLogic.d.ts +4 -0
  357. package/dist/components/TagsList/TagsList.d.ts +34 -0
  358. package/dist/components/TagsList/index.d.ts +2 -0
  359. package/dist/components/TagsList/styles.d.ts +1 -0
  360. package/dist/components/TagsList/types.d.ts +1 -0
  361. package/dist/components/TagsList/useLogic/index.d.ts +1 -0
  362. package/dist/components/TagsList/useLogic/useLogic.d.ts +14 -0
  363. package/dist/components/TagsList/utils/getElementByText/getElementByText.d.ts +4 -0
  364. package/dist/components/TagsList/utils/getElementByText/index.d.ts +1 -0
  365. package/dist/components/TagsList/utils/getKey/getKey.d.ts +2 -0
  366. package/dist/components/TagsList/utils/getKey/index.d.ts +1 -0
  367. package/dist/components/TagsList/utils/index.d.ts +2 -0
  368. package/dist/components/TextField/TextField.d.ts +28 -0
  369. package/dist/components/TextField/index.d.ts +1 -0
  370. package/dist/components/Tooltip/Tooltip.d.ts +16 -0
  371. package/dist/components/Tooltip/constants.d.ts +4 -0
  372. package/dist/components/Tooltip/index.d.ts +2 -0
  373. package/dist/components/Tooltip/styles.d.ts +7 -0
  374. package/dist/components/Tooltip/types.d.ts +2 -0
  375. package/dist/components/Typography/Typography.d.ts +48 -0
  376. package/dist/components/Typography/enums.d.ts +14 -0
  377. package/dist/components/Typography/hooks/index.d.ts +1 -0
  378. package/dist/components/Typography/hooks/useTypographyColor/index.d.ts +1 -0
  379. package/dist/components/Typography/hooks/useTypographyColor/useTypographyColor.d.ts +16 -0
  380. package/dist/components/Typography/index.d.ts +2 -0
  381. package/dist/components/Typography/styles.d.ts +2 -0
  382. package/dist/components/Typography/types.d.ts +4 -0
  383. package/dist/components/index.d.ts +62 -0
  384. package/dist/components/types.d.ts +1 -0
  385. package/dist/hooks/index.d.ts +3 -0
  386. package/dist/hooks/useMenu/index.d.ts +1 -0
  387. package/dist/hooks/useMenu/useMenu.d.ts +21 -0
  388. package/dist/hooks/usePopover/index.d.ts +1 -0
  389. package/dist/hooks/usePopover/usePopover.d.ts +11 -0
  390. package/dist/hooks/useViewportType/index.d.ts +1 -0
  391. package/dist/hooks/useViewportType/useViewportType.d.ts +5 -0
  392. package/dist/index.d.ts +3 -0
  393. package/dist/index.js +1080 -0
  394. package/dist/index.mjs +1080 -0
  395. package/dist/theme/baseTheme/baseTheme.d.ts +9 -0
  396. package/dist/theme/baseTheme/index.d.ts +1 -0
  397. package/dist/theme/breakpoints.d.ts +2 -0
  398. package/dist/theme/components/MuiAlert.d.ts +3 -0
  399. package/dist/theme/components/MuiAutocomplete.d.ts +3 -0
  400. package/dist/theme/components/MuiButton.d.ts +32 -0
  401. package/dist/theme/components/MuiButtonBase.d.ts +3 -0
  402. package/dist/theme/components/MuiCircularProgress.d.ts +4 -0
  403. package/dist/theme/components/MuiDialog.d.ts +3 -0
  404. package/dist/theme/components/MuiDialogActions.d.ts +3 -0
  405. package/dist/theme/components/MuiDialogContent.d.ts +3 -0
  406. package/dist/theme/components/MuiDialogTitle.d.ts +3 -0
  407. package/dist/theme/components/MuiDrawer.d.ts +3 -0
  408. package/dist/theme/components/MuiFormHelperText.d.ts +4 -0
  409. package/dist/theme/components/MuiFormLabel.d.ts +4 -0
  410. package/dist/theme/components/MuiInputLabel.d.ts +4 -0
  411. package/dist/theme/components/MuiLinearProgress.d.ts +4 -0
  412. package/dist/theme/components/MuiListItemButton.d.ts +3 -0
  413. package/dist/theme/components/MuiListItemText.d.ts +3 -0
  414. package/dist/theme/components/MuiMenu.d.ts +4 -0
  415. package/dist/theme/components/MuiMenuItem.d.ts +4 -0
  416. package/dist/theme/components/MuiOutlinedInput.d.ts +4 -0
  417. package/dist/theme/components/MuiPaginationItem.d.ts +3 -0
  418. package/dist/theme/components/MuiPaper.d.ts +3 -0
  419. package/dist/theme/components/MuiStep.d.ts +3 -0
  420. package/dist/theme/components/MuiStepConnector.d.ts +3 -0
  421. package/dist/theme/components/MuiStepLabel.d.ts +3 -0
  422. package/dist/theme/components/MuiSwitch.d.ts +3 -0
  423. package/dist/theme/components/MuiTab.d.ts +3 -0
  424. package/dist/theme/components/MuiTableCell.d.ts +3 -0
  425. package/dist/theme/components/MuiTableHead.d.ts +3 -0
  426. package/dist/theme/components/MuiTableRow.d.ts +3 -0
  427. package/dist/theme/components/MuiTabs.d.ts +3 -0
  428. package/dist/theme/components/MuiTextField.d.ts +3 -0
  429. package/dist/theme/components/MuiToggleButton.d.ts +3 -0
  430. package/dist/theme/components/MuiToggleButtonGroup.d.ts +3 -0
  431. package/dist/theme/components/MuiTypography.d.ts +21 -0
  432. package/dist/theme/components/components.d.ts +21 -0
  433. package/dist/theme/components/index.d.ts +1 -0
  434. package/dist/theme/constants.d.ts +1 -0
  435. package/dist/theme/elevation.d.ts +8 -0
  436. package/dist/theme/hooks/index.d.ts +1 -0
  437. package/dist/theme/hooks/useTheme/index.d.ts +2 -0
  438. package/dist/theme/index.d.ts +7 -0
  439. package/dist/theme/palette/componentsColors/componentsColors.d.ts +5 -0
  440. package/dist/theme/palette/componentsColors/index.d.ts +1 -0
  441. package/dist/theme/palette/componentsColors/linkColors/index.d.ts +1 -0
  442. package/dist/theme/palette/componentsColors/linkColors/linkColors.d.ts +7 -0
  443. package/dist/theme/palette/index.d.ts +3 -0
  444. package/dist/theme/palette/palette.d.ts +2 -0
  445. package/dist/theme/palette/types.d.ts +44 -0
  446. package/dist/theme/shape.d.ts +6 -0
  447. package/dist/theme/types.d.ts +21 -0
  448. package/dist/theme/typography.d.ts +153 -0
  449. package/package.json +47 -0
  450. package/rslib.config.ts +32 -0
  451. package/src/components/Accordion/Accordion.stories.tsx +126 -0
  452. package/src/components/Accordion/Accordion.tsx +80 -0
  453. package/src/components/Accordion/index.ts +1 -0
  454. package/src/components/Accordion/styles.ts +30 -0
  455. package/src/components/ActionCell/ActionCell.stories.tsx +226 -0
  456. package/src/components/ActionCell/ActionCell.tsx +71 -0
  457. package/src/components/ActionCell/MainAction/MainAction.tsx +85 -0
  458. package/src/components/ActionCell/MainAction/index.ts +1 -0
  459. package/src/components/ActionCell/SecondaryAction/SecondaryActions.tsx +45 -0
  460. package/src/components/ActionCell/SecondaryAction/index.ts +1 -0
  461. package/src/components/ActionCell/index.ts +1 -0
  462. package/src/components/ActionCell/styles.ts +6 -0
  463. package/src/components/ActionCell/types.ts +89 -0
  464. package/src/components/ActionCell/useLogic/index.ts +1 -0
  465. package/src/components/ActionCell/useLogic/useLogic.ts +46 -0
  466. package/src/components/AsyncAutocomplete/AsyncAutocomplete.stories.tsx +244 -0
  467. package/src/components/AsyncAutocomplete/AsyncAutocomplete.tsx +139 -0
  468. package/src/components/AsyncAutocomplete/constants.ts +7 -0
  469. package/src/components/AsyncAutocomplete/index.ts +1 -0
  470. package/src/components/AsyncAutocomplete/useLogic/index.ts +1 -0
  471. package/src/components/AsyncAutocomplete/useLogic/useLogic.ts +117 -0
  472. package/src/components/Autocomplete/Autocomplete.stories.tsx +275 -0
  473. package/src/components/Autocomplete/Autocomplete.tsx +301 -0
  474. package/src/components/Autocomplete/constants.ts +3 -0
  475. package/src/components/Autocomplete/enums.ts +4 -0
  476. package/src/components/Autocomplete/index.ts +1 -0
  477. package/src/components/Autocomplete/styles.ts +10 -0
  478. package/src/components/Autocomplete/useLogic/index.ts +1 -0
  479. package/src/components/Autocomplete/useLogic/useLogic.ts +88 -0
  480. package/src/components/Autocomplete/useLogic/utils/checkIsInputEmpty/checkIsInputEmpty.ts +8 -0
  481. package/src/components/Autocomplete/useLogic/utils/checkIsInputEmpty/index.ts +1 -0
  482. package/src/components/Autocomplete/useLogic/utils/index.ts +1 -0
  483. package/src/components/Badge/Badge.stories.tsx +189 -0
  484. package/src/components/Badge/Badge.tsx +43 -0
  485. package/src/components/Badge/index.ts +3 -0
  486. package/src/components/Badge/styles.ts +104 -0
  487. package/src/components/Badge/types.ts +9 -0
  488. package/src/components/BottomDrawer/BottomDrawer.stories.tsx +104 -0
  489. package/src/components/BottomDrawer/BottomDrawer.tsx +52 -0
  490. package/src/components/BottomDrawer/constants.ts +3 -0
  491. package/src/components/BottomDrawer/index.ts +1 -0
  492. package/src/components/BottomDrawer/styles.ts +44 -0
  493. package/src/components/Button/Button.stories.tsx +203 -0
  494. package/src/components/Button/Button.tsx +85 -0
  495. package/src/components/Button/constants.ts +1 -0
  496. package/src/components/Button/enums.ts +26 -0
  497. package/src/components/Button/index.ts +7 -0
  498. package/src/components/Button/styles.ts +19 -0
  499. package/src/components/Button/types.ts +30 -0
  500. package/src/components/Button/useLogic/index.ts +1 -0
  501. package/src/components/Button/useLogic/useLogic.ts +22 -0
  502. package/src/components/Checkbox/Checkbox.stories.tsx +154 -0
  503. package/src/components/Checkbox/Checkbox.tsx +39 -0
  504. package/src/components/Checkbox/icons.tsx +41 -0
  505. package/src/components/Checkbox/index.ts +1 -0
  506. package/src/components/Checkbox/styles.ts +70 -0
  507. package/src/components/CheckboxField/CheckboxField.stories.tsx +50 -0
  508. package/src/components/CheckboxField/CheckboxField.tsx +64 -0
  509. package/src/components/CheckboxField/index.ts +1 -0
  510. package/src/components/CheckboxField/styles.ts +17 -0
  511. package/src/components/Chevron/Chevron.stories.tsx +35 -0
  512. package/src/components/Chevron/Chevron.tsx +12 -0
  513. package/src/components/Chevron/index.ts +1 -0
  514. package/src/components/Chevron/styles.tsx +17 -0
  515. package/src/components/CircularProgress/CircularProgress.stories.tsx +52 -0
  516. package/src/components/CircularProgress/CircularProgress.tsx +42 -0
  517. package/src/components/CircularProgress/constants.ts +9 -0
  518. package/src/components/CircularProgress/index.ts +1 -0
  519. package/src/components/CircularProgress/useLogic/index.ts +1 -0
  520. package/src/components/CircularProgress/useLogic/useLogic.ts +9 -0
  521. package/src/components/Collapse/Collapse.stories.tsx +68 -0
  522. package/src/components/Collapse/Collapse.tsx +10 -0
  523. package/src/components/Collapse/index.ts +1 -0
  524. package/src/components/ConfigProvider/ConfigProvider.tsx +165 -0
  525. package/src/components/ConfigProvider/index.ts +1 -0
  526. package/src/components/ConfirmAction/ConfirmAction.stories.tsx +118 -0
  527. package/src/components/ConfirmAction/ConfirmAction.tsx +97 -0
  528. package/src/components/ConfirmAction/constants.ts +9 -0
  529. package/src/components/ConfirmAction/index.ts +1 -0
  530. package/src/components/ConfirmAction/styles.ts +17 -0
  531. package/src/components/ConfirmAction/useLogic/index.ts +1 -0
  532. package/src/components/ConfirmAction/useLogic/useLogic.ts +46 -0
  533. package/src/components/Container/Container.tsx +15 -0
  534. package/src/components/Container/index.ts +1 -0
  535. package/src/components/Container/styles.ts +76 -0
  536. package/src/components/ContentState/ContentState.stories.tsx +243 -0
  537. package/src/components/ContentState/ContentState.tsx +90 -0
  538. package/src/components/ContentState/index.ts +3 -0
  539. package/src/components/ContentState/styles.ts +11 -0
  540. package/src/components/ContentState/types.ts +30 -0
  541. package/src/components/CopyTypography/CopyTypography.stories.tsx +95 -0
  542. package/src/components/CopyTypography/CopyTypography.tsx +55 -0
  543. package/src/components/CopyTypography/enums.ts +5 -0
  544. package/src/components/CopyTypography/index.ts +1 -0
  545. package/src/components/CopyTypography/styles.ts +28 -0
  546. package/src/components/CopyTypography/useLogic/index.ts +1 -0
  547. package/src/components/CopyTypography/useLogic/useLogic.ts +38 -0
  548. package/src/components/DataGrid/Body/Body.tsx +185 -0
  549. package/src/components/DataGrid/Body/index.ts +1 -0
  550. package/src/components/DataGrid/Body/styles.tsx +16 -0
  551. package/src/components/DataGrid/Body/useLogic/index.ts +1 -0
  552. package/src/components/DataGrid/Body/useLogic/useLogic.ts +20 -0
  553. package/src/components/DataGrid/Cell/Cell.tsx +63 -0
  554. package/src/components/DataGrid/Cell/index.ts +1 -0
  555. package/src/components/DataGrid/Cell/styles.ts +26 -0
  556. package/src/components/DataGrid/Cell/useLogic/index.ts +1 -0
  557. package/src/components/DataGrid/Cell/useLogic/useLogic.ts +35 -0
  558. package/src/components/DataGrid/DataGrid.stories.tsx +1882 -0
  559. package/src/components/DataGrid/DataGrid.tsx +307 -0
  560. package/src/components/DataGrid/DataGridContext/DataGridContext.ts +15 -0
  561. package/src/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.tsx +83 -0
  562. package/src/components/DataGrid/DataGridContext/DataGridProvider/index.ts +1 -0
  563. package/src/components/DataGrid/DataGridContext/index.ts +3 -0
  564. package/src/components/DataGrid/Head/Head.tsx +110 -0
  565. package/src/components/DataGrid/Head/index.ts +1 -0
  566. package/src/components/DataGrid/Head/styles.ts +21 -0
  567. package/src/components/DataGrid/Head/useLogic/index.ts +1 -0
  568. package/src/components/DataGrid/Head/useLogic/useLogic.tsx +65 -0
  569. package/src/components/DataGrid/HeadCell/HeadCell.tsx +68 -0
  570. package/src/components/DataGrid/HeadCell/index.ts +1 -0
  571. package/src/components/DataGrid/HeadCell/styles.ts +39 -0
  572. package/src/components/DataGrid/HeadCell/useLogic/index.ts +1 -0
  573. package/src/components/DataGrid/HeadCell/useLogic/useLogic.ts +29 -0
  574. package/src/components/DataGrid/Loader/Loader.tsx +26 -0
  575. package/src/components/DataGrid/Loader/index.ts +1 -0
  576. package/src/components/DataGrid/Loader/styles.ts +26 -0
  577. package/src/components/DataGrid/NoData/NoData.tsx +65 -0
  578. package/src/components/DataGrid/NoData/index.ts +1 -0
  579. package/src/components/DataGrid/Row/NestedChildren/NestedChildren.tsx +158 -0
  580. package/src/components/DataGrid/Row/NestedChildren/index.ts +1 -0
  581. package/src/components/DataGrid/Row/NestedChildren/styles.ts +80 -0
  582. package/src/components/DataGrid/Row/NestedChildren/useLogic/index.ts +1 -0
  583. package/src/components/DataGrid/Row/NestedChildren/useLogic/useLogic.ts +44 -0
  584. package/src/components/DataGrid/Row/Row.tsx +307 -0
  585. package/src/components/DataGrid/Row/RowContext/RowContext.ts +14 -0
  586. package/src/components/DataGrid/Row/RowContext/RowProvider/RowProvider.tsx +35 -0
  587. package/src/components/DataGrid/Row/RowContext/RowProvider/index.ts +1 -0
  588. package/src/components/DataGrid/Row/RowContext/index.ts +3 -0
  589. package/src/components/DataGrid/Row/constants.ts +3 -0
  590. package/src/components/DataGrid/Row/index.ts +3 -0
  591. package/src/components/DataGrid/Row/styles.ts +124 -0
  592. package/src/components/DataGrid/Row/useLogic/index.ts +1 -0
  593. package/src/components/DataGrid/Row/useLogic/useLogic.ts +144 -0
  594. package/src/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.ts +20 -0
  595. package/src/components/DataGrid/Row/useLogic/utils/getColumnsMap/index.ts +1 -0
  596. package/src/components/DataGrid/Row/useLogic/utils/index.ts +3 -0
  597. package/src/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/index.ts +1 -0
  598. package/src/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.ts +34 -0
  599. package/src/components/DataGrid/Row/utils/checkIsDisabled/checkIsDisabled.ts +15 -0
  600. package/src/components/DataGrid/Row/utils/checkIsDisabled/index.ts +1 -0
  601. package/src/components/DataGrid/Row/utils/index.ts +1 -0
  602. package/src/components/DataGrid/constants.ts +11 -0
  603. package/src/components/DataGrid/enums.ts +9 -0
  604. package/src/components/DataGrid/faker.ts +116 -0
  605. package/src/components/DataGrid/index.ts +11 -0
  606. package/src/components/DataGrid/styles.ts +31 -0
  607. package/src/components/DataGrid/types.ts +118 -0
  608. package/src/components/DataGrid/useLogic/index.ts +1 -0
  609. package/src/components/DataGrid/useLogic/useLogic.tsx +139 -0
  610. package/src/components/DataGrid/useLogic/utils/getGridTemplateColumns/getGridTemplateColumns.ts +7 -0
  611. package/src/components/DataGrid/useLogic/utils/getGridTemplateColumns/index.ts +1 -0
  612. package/src/components/DataGrid/useLogic/utils/index.ts +1 -0
  613. package/src/components/DataGrid/utils/alignToJustifyContent/alignToJustifyContent.ts +20 -0
  614. package/src/components/DataGrid/utils/alignToJustifyContent/constants.ts +7 -0
  615. package/src/components/DataGrid/utils/alignToJustifyContent/index.ts +1 -0
  616. package/src/components/DataGrid/utils/index.ts +1 -0
  617. package/src/components/DataGridActionCell/DataGridActionCell.stories.tsx +271 -0
  618. package/src/components/DataGridActionCell/DataGridActionCell.tsx +70 -0
  619. package/src/components/DataGridActionCell/MainAction/MainAction.tsx +76 -0
  620. package/src/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.tsx +88 -0
  621. package/src/components/DataGridActionCell/MainAction/MainIconButton/index.ts +1 -0
  622. package/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.ts +1 -0
  623. package/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.ts +31 -0
  624. package/src/components/DataGridActionCell/MainAction/index.ts +1 -0
  625. package/src/components/DataGridActionCell/SecondaryAction/SecondaryAction.tsx +54 -0
  626. package/src/components/DataGridActionCell/SecondaryAction/index.ts +1 -0
  627. package/src/components/DataGridActionCell/index.ts +1 -0
  628. package/src/components/DataGridActionCell/styles.ts +6 -0
  629. package/src/components/DataGridActionCell/types.ts +123 -0
  630. package/src/components/DataGridActionCell/useLogic/index.ts +1 -0
  631. package/src/components/DataGridActionCell/useLogic/useLogic.ts +53 -0
  632. package/src/components/DataGridOld/Body/Body.tsx +56 -0
  633. package/src/components/DataGridOld/Body/index.ts +1 -0
  634. package/src/components/DataGridOld/Body/styles.ts +12 -0
  635. package/src/components/DataGridOld/Cell/Cell.tsx +41 -0
  636. package/src/components/DataGridOld/Cell/index.ts +1 -0
  637. package/src/components/DataGridOld/Cell/styles.ts +25 -0
  638. package/src/components/DataGridOld/DataGridOld.tsx +65 -0
  639. package/src/components/DataGridOld/Head/Head.tsx +31 -0
  640. package/src/components/DataGridOld/Head/index.ts +1 -0
  641. package/src/components/DataGridOld/Head/styles.ts +11 -0
  642. package/src/components/DataGridOld/HeadCell/HeadCell.tsx +14 -0
  643. package/src/components/DataGridOld/HeadCell/index.ts +1 -0
  644. package/src/components/DataGridOld/HeadCell/styles.ts +29 -0
  645. package/src/components/DataGridOld/Row/Row.tsx +53 -0
  646. package/src/components/DataGridOld/Row/index.ts +1 -0
  647. package/src/components/DataGridOld/Row/styles.ts +24 -0
  648. package/src/components/DataGridOld/State/State.tsx +32 -0
  649. package/src/components/DataGridOld/State/index.ts +1 -0
  650. package/src/components/DataGridOld/State/styles.ts +25 -0
  651. package/src/components/DataGridOld/constants.ts +1 -0
  652. package/src/components/DataGridOld/index.ts +2 -0
  653. package/src/components/DataGridOld/styles.ts +24 -0
  654. package/src/components/DataGridOld/types.ts +18 -0
  655. package/src/components/DataGridPagination/DataGridPagination.stories.tsx +206 -0
  656. package/src/components/DataGridPagination/DataGridPagination.tsx +102 -0
  657. package/src/components/DataGridPagination/constants.ts +3 -0
  658. package/src/components/DataGridPagination/faker.ts +36 -0
  659. package/src/components/DataGridPagination/index.ts +1 -0
  660. package/src/components/DataGridPagination/styles.ts +26 -0
  661. package/src/components/DataGridPagination/useLogic/index.ts +1 -0
  662. package/src/components/DataGridPagination/useLogic/useLogic.ts +53 -0
  663. package/src/components/Description/Description.stories.tsx +327 -0
  664. package/src/components/Description/Description.tsx +73 -0
  665. package/src/components/Description/DescriptionContext/DescriptionContext.tsx +15 -0
  666. package/src/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.tsx +21 -0
  667. package/src/components/Description/DescriptionContext/DescriptionContextProvider/index.ts +1 -0
  668. package/src/components/Description/DescriptionContext/index.ts +3 -0
  669. package/src/components/Description/Name/Name.tsx +28 -0
  670. package/src/components/Description/Name/index.ts +1 -0
  671. package/src/components/Description/Name/styles.ts +29 -0
  672. package/src/components/Description/Value/Value.tsx +73 -0
  673. package/src/components/Description/Value/index.ts +1 -0
  674. package/src/components/Description/Value/styles.ts +62 -0
  675. package/src/components/Description/Value/useLogic/index.ts +1 -0
  676. package/src/components/Description/Value/useLogic/useLogic.ts +18 -0
  677. package/src/components/Description/constants.ts +5 -0
  678. package/src/components/Description/index.ts +3 -0
  679. package/src/components/Description/styles.ts +27 -0
  680. package/src/components/Description/useLogic/index.ts +1 -0
  681. package/src/components/Description/useLogic/useLogic.ts +21 -0
  682. package/src/components/DescriptionList/DescriptionList.stories.tsx +475 -0
  683. package/src/components/DescriptionList/DescriptionList.tsx +108 -0
  684. package/src/components/DescriptionList/index.ts +3 -0
  685. package/src/components/DescriptionList/styles.ts +67 -0
  686. package/src/components/DescriptionList/types.ts +46 -0
  687. package/src/components/DescriptionList/utils/getTooltipProps/getTooltipProps.ts +3 -0
  688. package/src/components/DescriptionList/utils/getTooltipProps/index.ts +1 -0
  689. package/src/components/DescriptionList/utils/index.ts +1 -0
  690. package/src/components/Dialog/Dialog.stories.tsx +429 -0
  691. package/src/components/Dialog/Dialog.tsx +68 -0
  692. package/src/components/Dialog/constants.ts +7 -0
  693. package/src/components/Dialog/index.ts +1 -0
  694. package/src/components/Dialog/styles.ts +26 -0
  695. package/src/components/DialogActions/DialogActions.stories.tsx +114 -0
  696. package/src/components/DialogActions/DialogActions.tsx +19 -0
  697. package/src/components/DialogActions/index.ts +1 -0
  698. package/src/components/DialogActions/styles.ts +17 -0
  699. package/src/components/DialogContent/DialogContent.stories.tsx +70 -0
  700. package/src/components/DialogContent/DialogContent.tsx +11 -0
  701. package/src/components/DialogContent/index.ts +1 -0
  702. package/src/components/DialogContent/styles.ts +13 -0
  703. package/src/components/DialogContentText/DialogContentText.stories.tsx +64 -0
  704. package/src/components/DialogContentText/DialogContentText.tsx +12 -0
  705. package/src/components/DialogContentText/index.ts +1 -0
  706. package/src/components/DialogContentText/styles.ts +8 -0
  707. package/src/components/DialogHeader/DialogHeader.stories.tsx +107 -0
  708. package/src/components/DialogHeader/DialogHeader.tsx +58 -0
  709. package/src/components/DialogHeader/index.ts +1 -0
  710. package/src/components/DialogHeader/styles.ts +63 -0
  711. package/src/components/DialogTitle/DialogTitle.tsx +43 -0
  712. package/src/components/DialogTitle/index.ts +1 -0
  713. package/src/components/Divider/Divider.stories.tsx +57 -0
  714. package/src/components/Divider/Divider.tsx +10 -0
  715. package/src/components/Divider/index.ts +1 -0
  716. package/src/components/ErrorBoundary/ErrorBoundary.stories.tsx +57 -0
  717. package/src/components/ErrorBoundary/ErrorBoundary.stubs.tsx +67 -0
  718. package/src/components/ErrorBoundary/ErrorBoundary.tsx +73 -0
  719. package/src/components/ErrorBoundary/constants.ts +15 -0
  720. package/src/components/ErrorBoundary/enums.ts +9 -0
  721. package/src/components/ErrorBoundary/index.ts +1 -0
  722. package/src/components/FormControl/FormControl.tsx +12 -0
  723. package/src/components/FormControl/index.tsx +1 -0
  724. package/src/components/FormControlLabel/FormControlLabel.tsx +6 -0
  725. package/src/components/FormControlLabel/index.ts +3 -0
  726. package/src/components/FormControlLabel/styles.ts +14 -0
  727. package/src/components/FormControlLabel/types.ts +6 -0
  728. package/src/components/FormHelperText/FormHelperText.tsx +29 -0
  729. package/src/components/FormHelperText/FormHelperTextContent/FormHelperTextContent.tsx +38 -0
  730. package/src/components/FormHelperText/FormHelperTextContent/index.ts +1 -0
  731. package/src/components/FormHelperText/FormHelperTextContent/styles.ts +44 -0
  732. package/src/components/FormHelperText/index.ts +3 -0
  733. package/src/components/GuidTypography/GuidTypography.stories.tsx +57 -0
  734. package/src/components/GuidTypography/GuidTypography.tsx +10 -0
  735. package/src/components/GuidTypography/index.ts +1 -0
  736. package/src/components/IconButton/IconButton.stories.tsx +236 -0
  737. package/src/components/IconButton/IconButton.tsx +57 -0
  738. package/src/components/IconButton/index.ts +1 -0
  739. package/src/components/IconButton/styles.ts +52 -0
  740. package/src/components/IconDropdownButton/IconDropdownButton.stories.tsx +196 -0
  741. package/src/components/IconDropdownButton/IconDropdownButton.tsx +38 -0
  742. package/src/components/IconDropdownButton/index.ts +1 -0
  743. package/src/components/InternalErrorPlaceholder/InternalErrorPlaceholder.stories.tsx +33 -0
  744. package/src/components/InternalErrorPlaceholder/InternalErrorPlaceholder.tsx +39 -0
  745. package/src/components/InternalErrorPlaceholder/index.ts +1 -0
  746. package/src/components/Link/Link.stories.tsx +88 -0
  747. package/src/components/Link/Link.tsx +44 -0
  748. package/src/components/Link/index.ts +1 -0
  749. package/src/components/Link/styles.ts +37 -0
  750. package/src/components/List/List.stories.tsx +254 -0
  751. package/src/components/List/List.tsx +9 -0
  752. package/src/components/List/index.ts +1 -0
  753. package/src/components/ListItem/ListItem.stories.tsx +84 -0
  754. package/src/components/ListItem/ListItem.tsx +12 -0
  755. package/src/components/ListItem/index.ts +1 -0
  756. package/src/components/ListItemButton/ListItemButton.stories.tsx +112 -0
  757. package/src/components/ListItemButton/ListItemButton.tsx +74 -0
  758. package/src/components/ListItemButton/constants.ts +5 -0
  759. package/src/components/ListItemButton/index.ts +1 -0
  760. package/src/components/ListItemIcon/ListItemIcon.stories.tsx +41 -0
  761. package/src/components/ListItemIcon/ListItemIcon.tsx +14 -0
  762. package/src/components/ListItemIcon/index.ts +1 -0
  763. package/src/components/ListItemIcon/styles.ts +5 -0
  764. package/src/components/ListItemText/ListItemText.stories.tsx +39 -0
  765. package/src/components/ListItemText/ListItemText.tsx +11 -0
  766. package/src/components/ListItemText/index.ts +1 -0
  767. package/src/components/ListSubheader/ListSubheader.stories.tsx +42 -0
  768. package/src/components/ListSubheader/ListSubheader.tsx +12 -0
  769. package/src/components/ListSubheader/index.ts +1 -0
  770. package/src/components/Menu/Menu.stories.tsx +108 -0
  771. package/src/components/Menu/Menu.tsx +38 -0
  772. package/src/components/Menu/index.ts +1 -0
  773. package/src/components/MenuItem/MenuItem.stories.tsx +110 -0
  774. package/src/components/MenuItem/MenuItem.tsx +68 -0
  775. package/src/components/MenuItem/index.ts +1 -0
  776. package/src/components/MenuList/MenuList.stories.tsx +86 -0
  777. package/src/components/MenuList/MenuList.tsx +6 -0
  778. package/src/components/MenuList/index.ts +3 -0
  779. package/src/components/MenuList/styles.ts +10 -0
  780. package/src/components/MenuList/types.ts +11 -0
  781. package/src/components/NavMenu/Item/Item.tsx +87 -0
  782. package/src/components/NavMenu/Item/ItemButton/ItemButton.tsx +76 -0
  783. package/src/components/NavMenu/Item/ItemButton/index.ts +1 -0
  784. package/src/components/NavMenu/Item/ItemButton/styles.ts +143 -0
  785. package/src/components/NavMenu/Item/List/List.tsx +43 -0
  786. package/src/components/NavMenu/Item/List/index.ts +1 -0
  787. package/src/components/NavMenu/Item/index.ts +1 -0
  788. package/src/components/NavMenu/NavMenu.stories.tsx +116 -0
  789. package/src/components/NavMenu/NavMenu.tsx +32 -0
  790. package/src/components/NavMenu/index.ts +1 -0
  791. package/src/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.stories.tsx +31 -0
  792. package/src/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.tsx +30 -0
  793. package/src/components/OutdatedReleasePlaceholder/index.ts +1 -0
  794. package/src/components/OverflowTypography/OverflowTypography.stories.tsx +112 -0
  795. package/src/components/OverflowTypography/OverflowTypography.tsx +106 -0
  796. package/src/components/OverflowTypography/hooks/index.ts +1 -0
  797. package/src/components/OverflowTypography/hooks/useOverflowed/index.ts +1 -0
  798. package/src/components/OverflowTypography/hooks/useOverflowed/useOverflowed.ts +58 -0
  799. package/src/components/OverflowTypography/index.ts +1 -0
  800. package/src/components/OverflowTypography/styles.ts +39 -0
  801. package/src/components/OverflowTypography/useLogic/index.ts +1 -0
  802. package/src/components/OverflowTypography/useLogic/useLogic.ts +29 -0
  803. package/src/components/OverflowTypography/utils/index.ts +1 -0
  804. package/src/components/OverflowTypography/utils/truncateString/index.ts +1 -0
  805. package/src/components/OverflowTypography/utils/truncateString/truncateString.ts +9 -0
  806. package/src/components/Pagination/Pagination.stories.tsx +55 -0
  807. package/src/components/Pagination/Pagination.tsx +7 -0
  808. package/src/components/Pagination/index.ts +3 -0
  809. package/src/components/Pagination/types.ts +13 -0
  810. package/src/components/Paper/Paper.tsx +25 -0
  811. package/src/components/Paper/index.ts +1 -0
  812. package/src/components/Placeholder/Image/Image.tsx +16 -0
  813. package/src/components/Placeholder/Image/index.ts +1 -0
  814. package/src/components/Placeholder/Image/styles.ts +24 -0
  815. package/src/components/Placeholder/Placeholder.stories.tsx +204 -0
  816. package/src/components/Placeholder/Placeholder.tsx +108 -0
  817. package/src/components/Placeholder/constants.ts +31 -0
  818. package/src/components/Placeholder/index.ts +5 -0
  819. package/src/components/Placeholder/styles.ts +94 -0
  820. package/src/components/Placeholder/types.ts +1 -0
  821. package/src/components/Popover/Popover.stories.tsx +210 -0
  822. package/src/components/Popover/Popover.tsx +39 -0
  823. package/src/components/Popover/index.ts +1 -0
  824. package/src/components/SearchField/SearchField.tsx +93 -0
  825. package/src/components/SearchField/index.ts +1 -0
  826. package/src/components/SearchField/styles.ts +38 -0
  827. package/src/components/Select/Select.stories.tsx +324 -0
  828. package/src/components/Select/Select.tsx +204 -0
  829. package/src/components/Select/constants.ts +1 -0
  830. package/src/components/Select/index.ts +1 -0
  831. package/src/components/Select/styles.ts +60 -0
  832. package/src/components/Select/useLogic/index.ts +1 -0
  833. package/src/components/Select/useLogic/useLogic.ts +53 -0
  834. package/src/components/Tag/Tag.stories.tsx +592 -0
  835. package/src/components/Tag/Tag.tsx +102 -0
  836. package/src/components/Tag/enums.ts +20 -0
  837. package/src/components/Tag/index.ts +3 -0
  838. package/src/components/Tag/styles.ts +332 -0
  839. package/src/components/Tag/types.ts +9 -0
  840. package/src/components/TagBadge/TagBadge.stories.tsx +235 -0
  841. package/src/components/TagBadge/TagBadge.tsx +47 -0
  842. package/src/components/TagBadge/index.ts +1 -0
  843. package/src/components/TagBadge/styles.ts +14 -0
  844. package/src/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.ts +31 -0
  845. package/src/components/TagBadge/utils/getCheckableTagBadgeBgColor/index.ts +1 -0
  846. package/src/components/TagBadge/utils/index.ts +1 -0
  847. package/src/components/TagsList/Tag/Tag.tsx +49 -0
  848. package/src/components/TagsList/Tag/index.ts +1 -0
  849. package/src/components/TagsList/Tag/styles.ts +19 -0
  850. package/src/components/TagsList/Tag/useLogic/index.ts +1 -0
  851. package/src/components/TagsList/Tag/useLogic/useLogic.ts +11 -0
  852. package/src/components/TagsList/TagsList.tsx +80 -0
  853. package/src/components/TagsList/index.ts +3 -0
  854. package/src/components/TagsList/styles.ts +6 -0
  855. package/src/components/TagsList/types.ts +1 -0
  856. package/src/components/TagsList/useLogic/index.ts +1 -0
  857. package/src/components/TagsList/useLogic/useLogic.ts +184 -0
  858. package/src/components/TagsList/utils/getElementByText/getElementByText.ts +21 -0
  859. package/src/components/TagsList/utils/getElementByText/index.ts +1 -0
  860. package/src/components/TagsList/utils/getKey/getKey.ts +11 -0
  861. package/src/components/TagsList/utils/getKey/index.ts +1 -0
  862. package/src/components/TagsList/utils/index.ts +3 -0
  863. package/src/components/TextField/TextField.stories.tsx +97 -0
  864. package/src/components/TextField/TextField.tsx +117 -0
  865. package/src/components/TextField/index.ts +1 -0
  866. package/src/components/Tooltip/Tooltip.stories.tsx +237 -0
  867. package/src/components/Tooltip/Tooltip.tsx +48 -0
  868. package/src/components/Tooltip/constants.ts +4 -0
  869. package/src/components/Tooltip/index.ts +3 -0
  870. package/src/components/Tooltip/styles.tsx +65 -0
  871. package/src/components/Tooltip/types.ts +3 -0
  872. package/src/components/Typography/Typography.stories.tsx +193 -0
  873. package/src/components/Typography/Typography.tsx +107 -0
  874. package/src/components/Typography/enums.ts +14 -0
  875. package/src/components/Typography/hooks/index.ts +1 -0
  876. package/src/components/Typography/hooks/useTypographyColor/index.ts +1 -0
  877. package/src/components/Typography/hooks/useTypographyColor/useTypographyColor.tsx +54 -0
  878. package/src/components/Typography/index.ts +3 -0
  879. package/src/components/Typography/styles.ts +9 -0
  880. package/src/components/Typography/types.ts +30 -0
  881. package/src/components/index.ts +123 -0
  882. package/src/components/types.ts +1 -0
  883. package/src/hooks/index.ts +3 -0
  884. package/src/hooks/useMenu/index.ts +1 -0
  885. package/src/hooks/useMenu/useMenu.stories.tsx +31 -0
  886. package/src/hooks/useMenu/useMenu.ts +45 -0
  887. package/src/hooks/usePopover/index.ts +1 -0
  888. package/src/hooks/usePopover/usePopover.ts +27 -0
  889. package/src/hooks/useViewportType/index.ts +1 -0
  890. package/src/hooks/useViewportType/useViewportType.stories.tsx +30 -0
  891. package/src/hooks/useViewportType/useViewportType.ts +13 -0
  892. package/src/illustrations/certificates-not-found.svg +91 -0
  893. package/src/illustrations/data-access-disabled.svg +103 -0
  894. package/src/illustrations/data-access-success.svg +119 -0
  895. package/src/illustrations/drop-files-in.svg +40 -0
  896. package/src/illustrations/drop-files-out.svg +43 -0
  897. package/src/illustrations/error.svg +159 -0
  898. package/src/illustrations/features.svg +35 -0
  899. package/src/illustrations/mail.svg +84 -0
  900. package/src/illustrations/no-data.svg +1 -0
  901. package/src/illustrations/no-notifications.svg +102 -0
  902. package/src/illustrations/outdated-release.svg +173 -0
  903. package/src/illustrations/placeholder.svg +20 -0
  904. package/src/illustrations/search.svg +38 -0
  905. package/src/illustrations/sketchpad.svg +114 -0
  906. package/src/illustrations/technical-support.svg +341 -0
  907. package/src/index.ts +3 -0
  908. package/src/theme/baseTheme/baseTheme.ts +49 -0
  909. package/src/theme/baseTheme/index.ts +1 -0
  910. package/src/theme/breakpoints.ts +11 -0
  911. package/src/theme/components/MuiAlert.ts +70 -0
  912. package/src/theme/components/MuiAutocomplete.ts +94 -0
  913. package/src/theme/components/MuiButton.ts +418 -0
  914. package/src/theme/components/MuiButtonBase.ts +16 -0
  915. package/src/theme/components/MuiCircularProgress.ts +22 -0
  916. package/src/theme/components/MuiDialog.ts +13 -0
  917. package/src/theme/components/MuiDialogActions.ts +17 -0
  918. package/src/theme/components/MuiDialogContent.ts +13 -0
  919. package/src/theme/components/MuiDialogTitle.ts +24 -0
  920. package/src/theme/components/MuiDrawer.ts +15 -0
  921. package/src/theme/components/MuiFormHelperText.ts +23 -0
  922. package/src/theme/components/MuiFormLabel.ts +16 -0
  923. package/src/theme/components/MuiInputLabel.ts +33 -0
  924. package/src/theme/components/MuiLinearProgress.ts +22 -0
  925. package/src/theme/components/MuiListItemButton.ts +16 -0
  926. package/src/theme/components/MuiListItemText.ts +16 -0
  927. package/src/theme/components/MuiMenu.ts +32 -0
  928. package/src/theme/components/MuiMenuItem.ts +36 -0
  929. package/src/theme/components/MuiOutlinedInput.ts +75 -0
  930. package/src/theme/components/MuiPaginationItem.ts +16 -0
  931. package/src/theme/components/MuiPaper.ts +38 -0
  932. package/src/theme/components/MuiStep.ts +16 -0
  933. package/src/theme/components/MuiStepConnector.ts +11 -0
  934. package/src/theme/components/MuiStepLabel.ts +30 -0
  935. package/src/theme/components/MuiSwitch.ts +153 -0
  936. package/src/theme/components/MuiTab.ts +15 -0
  937. package/src/theme/components/MuiTableCell.ts +16 -0
  938. package/src/theme/components/MuiTableHead.ts +15 -0
  939. package/src/theme/components/MuiTableRow.ts +19 -0
  940. package/src/theme/components/MuiTabs.ts +19 -0
  941. package/src/theme/components/MuiTextField.ts +28 -0
  942. package/src/theme/components/MuiToggleButton.ts +14 -0
  943. package/src/theme/components/MuiToggleButtonGroup.ts +10 -0
  944. package/src/theme/components/MuiTypography.ts +41 -0
  945. package/src/theme/components/components.ts +155 -0
  946. package/src/theme/components/index.ts +1 -0
  947. package/src/theme/constants.ts +1 -0
  948. package/src/theme/elevation.ts +15 -0
  949. package/src/theme/hooks/index.ts +1 -0
  950. package/src/theme/hooks/useTheme/index.ts +7 -0
  951. package/src/theme/index.ts +13 -0
  952. package/src/theme/palette/componentsColors/componentsColors.ts +9 -0
  953. package/src/theme/palette/componentsColors/index.ts +1 -0
  954. package/src/theme/palette/componentsColors/linkColors/index.ts +1 -0
  955. package/src/theme/palette/componentsColors/linkColors/linkColors.ts +13 -0
  956. package/src/theme/palette/index.ts +5 -0
  957. package/src/theme/palette/palette.ts +125 -0
  958. package/src/theme/palette/types.ts +55 -0
  959. package/src/theme/shape.ts +11 -0
  960. package/src/theme/types.ts +30 -0
  961. package/src/theme/typography.ts +191 -0
  962. package/tsconfig.json +15 -0
package/dist/index.js ADDED
@@ -0,0 +1,1080 @@
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Head:()=>Head,Accordion:()=>Accordion,Placeholder:()=>Placeholder,LOADING_BUTTON_CLASSNAME:()=>LOADING_BUTTON_CLASSNAME,DialogTitle:()=>DialogTitle,CircularProgress:()=>CircularProgress,createTheme:()=>createTheme,FormHelperTextContent:()=>FormHelperTextContent,INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT:()=>INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT,Dialog:()=>Dialog,ROOT_ACTION_CELL_WIDTH:()=>ROOT_ACTION_CELL_WIDTH,elevation:()=>elevation_elevation,usePopover:()=>usePopover,MenuItem:()=>MenuItem,AsyncAutocomplete:()=>AsyncAutocomplete,useTheme:()=>useTheme,setDefaultImageStyles:()=>setDefaultImageStyles,ListItem:()=>ListItem,DialogContent:()=>DialogContent,GuidTypography:()=>GuidTypography,Container:()=>Container,Link:()=>Link,List:()=>List,Paper:()=>Paper,FormControlLabel:()=>FormControlLabel,useMenu:()=>useMenu,ConfigProvider:()=>ConfigProvider,CheckboxField:()=>CheckboxField,ButtonColors:()=>enums_ButtonColors,Divider:()=>Divider,ErrorBoundary:()=>ErrorBoundary,MIN_DISPLAY_ROWS_BY_DEFAULT:()=>MIN_DISPLAY_ROWS_BY_DEFAULT,RowContext:()=>RowContext,RowContextProvider:()=>RowContextProvider,SPACING:()=>SPACING,OutdatedReleasePlaceholder:()=>OutdatedReleasePlaceholder,ListItemButton:()=>ListItemButton,Badge:()=>Badge,InternalErrorPlaceholder:()=>InternalErrorPlaceholder,DEFAULT_ROWS_COUNT:()=>DEFAULT_ROWS_COUNT,FormHelperText:()=>FormHelperText,MenuList:()=>MenuList,EXPANDED_LEVEL_BY_DEFAULT:()=>EXPANDED_LEVEL_BY_DEFAULT,Select:()=>Select,TREE_LINE_WIDTH:()=>TREE_LINE_WIDTH,componentsColors:()=>componentsColors,ButtonStates:()=>enums_ButtonStates,ListSubheader:()=>ListSubheader,DataGrid:()=>DataGrid,DialogActions:()=>DialogActions,ConfigContext:()=>ConfigContext,DataGridActionCell:()=>DataGridActionCell,DESCRIPTION_ROOT_CLASSNAME:()=>DESCRIPTION_ROOT_CLASSNAME,ButtonVariants:()=>enums_ButtonVariants,SearchField:()=>SearchField,DialogHeader:()=>DialogHeader,ListItemIcon:()=>ListItemIcon,ContentState:()=>ContentState,IconDropdownButton:()=>IconDropdownButton,Collapse:()=>Collapse,DEFAULT_SYMBOL:()=>DEFAULT_SYMBOL,DialogContentText:()=>DialogContentText,FormControl:()=>FormControl,IconButton:()=>IconButton,Row:()=>Row,MIN_ROW_HEIGHT:()=>MIN_ROW_HEIGHT,Pagination:()=>Pagination,CopyTypography:()=>CopyTypography,TagBadge:()=>TagBadge,BottomDrawer:()=>BottomDrawer,ActionCell:()=>ActionCell,DescriptionList:()=>DescriptionList,TextField:()=>TextField,Variant:()=>enums_Variant,NavMenu:()=>NavMenu,getPalette:()=>getPalette,Typography:()=>Typography,shape:()=>shape,Tag:()=>Tag,TagsList:()=>TagsList,SortStates:()=>enums_SortStates,ConfirmAction:()=>ConfirmAction,Image:()=>Image,ButtonSizes:()=>enums_ButtonSizes,Chevron:()=>Chevron,DataGridPagination:()=>DataGridPagination,Menu:()=>Menu,Autocomplete:()=>Autocomplete,Button:()=>Button,Description:()=>Description_Description,DEFAULT_SEPARATOR:()=>DEFAULT_SEPARATOR,OverflowTypography:()=>OverflowTypography,ListItemText:()=>ListItemText,useViewportType:()=>useViewportType,Tooltip:()=>Tooltip,Checkbox:()=>Checkbox,Popover:()=>Popover});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_react_namespaceObject=require("react");var external_react_default=__webpack_require__.n(external_react_namespaceObject);let material_namespaceObject=require("@mui/material"),external_lucide_react_namespaceObject=require("lucide-react"),ChevronIcon=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.ChevronsDown,{shouldForwardProp:e=>"isActive"!==e})`
2
+ transform: rotateZ(${({isActive:e})=>180*!!e}deg);
3
+
4
+ transition: ${({theme:e})=>e.transitions.create("transform",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.short})};
5
+ `,Chevron=e=>(0,jsx_runtime_namespaceObject.jsx)(ChevronIcon,{...e}),Collapse=e=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Collapse,{...e});var enums_TypographyColors=function(e){return e.text="text",e.secondary="secondary",e.primary="primary",e.error="error",e.success="success",e.warning="warning",e.info="info",e.textSecondary="text.secondary",e.grey="grey",e.red="red",e.green="green",e.yellow="yellow",e}({});let useTypographyColor=({color:e,colorIntensity:t="800"})=>{let a=(0,material_namespaceObject.useTheme)();return(0,external_react_namespaceObject.useMemo)(()=>{let r=e&&enums_TypographyColors[e];if(r)switch(r){case enums_TypographyColors.text:return a.palette.text.primary;case enums_TypographyColors.textSecondary:return a.palette.text.secondary;default:return a.palette[r]?.[t]||r}},[e,t,a])},TypographyWrapper=(0,material_namespaceObject.styled)(material_namespaceObject.Typography,{shouldForwardProp:e=>"isUpperCase"!==e})`
6
+ text-transform: ${({isUpperCase:e})=>e?"uppercase":"none"};
7
+ `,printDeprecatedWarning=e=>{e&&["h7","h8","ui","small","code","body2","overline"].includes(e)&&console.warn(`[@astral/components]: Deprecated: Вариант "${e}" в компоненте Typography больше не поддерживается и будет удален в следующем мажорном релизе. Используйте другой подходящий вариант.`)},Typography=({children:e,color:t,colorIntensity:a="800",component:r,...n})=>{let i=useTypographyColor({color:t,colorIntensity:a});return printDeprecatedWarning(n.variant),(0,jsx_runtime_namespaceObject.jsx)(TypographyWrapper,{...n,component:r,color:i,children:e})},Header=(0,material_namespaceObject.styled)("header")`
8
+ cursor: pointer;
9
+
10
+ display: grid;
11
+ grid-column-gap: ${({theme:e})=>e.spacing(2)};
12
+ grid-template-columns: ${({withStartAdornment:e})=>e?"24px 1fr 24px":" 1fr 24px"};
13
+ `,ContentWrapper=(0,material_namespaceObject.styled)("div")`
14
+ margin-left: ${({theme:e,withStartAdorment:t})=>e.spacing(8*!!t)};
15
+ padding-top: ${({theme:e})=>e.spacing(2)};
16
+ `,Summary=(0,material_namespaceObject.styled)(Typography)`
17
+ align-self: center;
18
+ `,ChevronWrapper=(0,material_namespaceObject.styled)("div")`
19
+ overflow: hidden;
20
+
21
+ width: 24px;
22
+ height: 24px;
23
+ `,Accordion=(0,external_react_namespaceObject.forwardRef)(({summary:e,startAdorment:t,isExpanded:a,onChange:r,children:n},i)=>{let[o,s]=(0,external_react_namespaceObject.useState)(!1),l="boolean"==typeof a,c=l?a:o,p=!!t,u="string"==typeof e?Summary:external_react_default().Fragment;return(0,jsx_runtime_namespaceObject.jsxs)("div",{ref:i,children:[(0,jsx_runtime_namespaceObject.jsxs)(Header,{onClick:e=>{if(l)r?.(!a,e);else{let t=!o;s(t),r?.(t,e)}},withStartAdornment:p,children:[t,(0,jsx_runtime_namespaceObject.jsx)(u,{children:e}),(0,jsx_runtime_namespaceObject.jsx)(ChevronWrapper,{children:(0,jsx_runtime_namespaceObject.jsx)(Chevron,{isActive:c})})]}),(0,jsx_runtime_namespaceObject.jsx)(Collapse,{in:c,children:(0,jsx_runtime_namespaceObject.jsx)(ContentWrapper,{withStartAdorment:p,children:n})})]})}),external_clsx_namespaceObject=require("clsx"),LOADING_BUTTON_CLASSNAME="astral-button-loading";var enums_ButtonColors=function(e){return e.Error="error",e.Success="success",e.Warning="warning",e.Primary="primary",e}({}),enums_ButtonVariants=function(e){return e.Contained="contained",e.Light="light",e.Text="text",e.Link="link",e}({}),enums_ButtonSizes=function(e){return e.Small="small",e.Medium="medium",e.Large="large",e}({}),enums_ButtonStates=function(e){return e.Default="default",e.Active="active",e.Focus="focus",e.Hover="hover",e}({});let useLogic=({size:e})=>({size:"small"===e?16:24}),CircularProgress=e=>{let{size:t}=useLogic({...e}),{size:a,color:r,...n}=e;return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.CircularProgress,{...n,size:t,color:"inherit","data-color":r})},StyledButton=(0,material_namespaceObject.styled)(material_namespaceObject.Button)`
24
+ min-width: ${({variant:e})=>e===enums_ButtonVariants.Link?"auto":""};
25
+ padding: ${({variant:e})=>e===enums_ButtonVariants.Link?0:""};
26
+
27
+ :active {
28
+ box-shadow: none;
29
+ }
30
+ `,StyledCircularProgress=(0,material_namespaceObject.styled)(CircularProgress)`
31
+ position: absolute;
32
+ `;var constants_CircularProgressColors=function(e){return e.PRIMARY="primary",e.INVERTED="inverted",e}({}),constants_CircularProgressSizes=null;let useLogic_useLogic=({variant:e})=>({loadingIndicatorColor:(0,external_react_namespaceObject.useMemo)(()=>e!==enums_ButtonVariants.Contained?constants_CircularProgressColors.PRIMARY:constants_CircularProgressColors.INVERTED,[e])}),Button=e=>{let{loadingIndicatorColor:t}=useLogic_useLogic(e),{variant:a=enums_ButtonVariants.Contained,color:r=enums_ButtonColors.Primary,loading:n,loadingIndicator:i,loadingPosition:o,disabled:s,children:l,className:c,...p}=e;return(0,jsx_runtime_namespaceObject.jsxs)(StyledButton,{variant:a,color:r,disabled:n||s,...p,className:(0,external_clsx_namespaceObject.clsx)(c,{[LOADING_BUTTON_CLASSNAME]:n}),children:[n&&(0,jsx_runtime_namespaceObject.jsx)(StyledCircularProgress,{color:t,size:"small"}),l]})},getValue=({type:e,values:t,defaultValue:a})=>e&&t[e]||a,getButtonHeight=e=>getValue({type:e.size,values:{[enums_ButtonSizes.Large]:"40px"},defaultValue:"32px"}),getButtonHeightMobile=e=>getValue({type:e.size,values:{[enums_ButtonSizes.Small]:"36px"},defaultValue:"48px"}),styles_StyledButton=(0,material_namespaceObject.styled)(Button,{shouldForwardProp:e=>"startIcon"!==e&&"endIcon"!==e&&"loading"!==e})`
33
+ pointer-events: ${({loading:e})=>e&&"none"};
34
+
35
+ width: ${getButtonHeight};
36
+ height: ${getButtonHeight};
37
+ padding: ${({theme:e})=>e.spacing(1)};
38
+
39
+ ${({theme:e})=>e.breakpoints.down("sm")} {
40
+ width: ${getButtonHeightMobile};
41
+ }
42
+ `,IconButton=e=>{let{variant:t=enums_ButtonVariants.Contained,loading:a,children:r,...n}=e,i=(0,external_react_namespaceObject.useMemo)(()=>t===enums_ButtonVariants.Contained?"inverted":"primary",[t]);return(0,jsx_runtime_namespaceObject.jsx)(styles_StyledButton,{loading:a,variant:t,tabIndex:a?-1:0,...n,children:a?(0,jsx_runtime_namespaceObject.jsx)(CircularProgress,{size:"small",color:i}):r})},useViewportType=()=>{let e=(0,material_namespaceObject.useTheme)();return{isMobile:(0,material_namespaceObject.useMediaQuery)(e.breakpoints.down("sm"))}};function useMenu(e=null){let[t,a]=(0,external_react_namespaceObject.useState)(!1),r=(0,external_react_namespaceObject.useRef)(null);return(0,external_react_namespaceObject.useEffect)(()=>{e&&("function"==typeof e?e(r.current):e.current=r.current)},[e]),{open:t,anchorRef:r,handleCloseMenu:()=>a(!1),handleOpenMenu:()=>a(!0)}}let usePopover=()=>{let[e,t]=(0,external_react_namespaceObject.useState)(null);return{isOpen:!!e,anchor:e,actions:{open:e=>t(e.currentTarget),close:()=>t(null)}}},OFFSET_TOP_SCREEN="16px",DEFAULT_HEADER_HEIGHT=56,StyledDrawer=(0,material_namespaceObject.styled)(material_namespaceObject.Drawer)`
43
+ ${`.${material_namespaceObject.paperClasses.root}`} {
44
+ max-height: calc(100vh - ${OFFSET_TOP_SCREEN});
45
+
46
+ @supports (height: 100dvh) {
47
+ max-height: calc(100dvh - ${OFFSET_TOP_SCREEN});
48
+ }
49
+
50
+ border-top-left-radius: ${({theme:e})=>e.shape.large};
51
+ border-top-right-radius: ${({theme:e})=>e.shape.large};
52
+ }
53
+ `,styles_Header=(0,material_namespaceObject.styled)("header")`
54
+ display: flex;
55
+ flex-shrink: 0;
56
+ align-items: center;
57
+ justify-content: space-between;
58
+
59
+ height: ${({drawerHeaderHeight:e})=>`${e}px`};
60
+ padding: ${({theme:e})=>e.spacing(1,2,1,4)};
61
+
62
+ border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
63
+ `,HeaderTitle=(0,material_namespaceObject.styled)(material_namespaceObject.Typography)`
64
+ margin-right: ${({theme:e})=>e.spacing(2)};
65
+ `,Body=(0,material_namespaceObject.styled)("div")`
66
+ overflow-y: auto;
67
+ `,BottomDrawer=({title:e,drawerHeaderHeight:t=DEFAULT_HEADER_HEIGHT,children:a,onClose:r,...n})=>(0,jsx_runtime_namespaceObject.jsxs)(StyledDrawer,{...n,anchor:"bottom",onClose:r,children:[(0,jsx_runtime_namespaceObject.jsxs)(styles_Header,{drawerHeaderHeight:t,children:[(0,jsx_runtime_namespaceObject.jsx)(HeaderTitle,{variant:"h5",noWrap:!0,children:e}),(0,jsx_runtime_namespaceObject.jsx)(IconButton,{variant:"text",onClick:e=>{r&&r(e,"escapeKeyDown")},children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X,{})})]}),(0,jsx_runtime_namespaceObject.jsx)(Body,{children:a})]}),StyledMenuList=(0,material_namespaceObject.styled)(material_namespaceObject.MenuList)`
68
+ &.MuiList-root {
69
+ padding: ${({theme:e})=>e.spacing(1,0)};
70
+
71
+ border-radius: ${({theme:e})=>e.shape.small};
72
+ box-shadow: ${({theme:e})=>e.elevation[200]};
73
+ }
74
+ `,MenuList=({children:e,...t})=>(0,jsx_runtime_namespaceObject.jsx)(StyledMenuList,{...t,children:e}),Menu=({children:e,onClose:t,open:a,title:r,...n})=>{let{isMobile:i}=useViewportType();return i?(0,jsx_runtime_namespaceObject.jsx)(BottomDrawer,{title:r,onClose:t,open:a,children:(0,jsx_runtime_namespaceObject.jsx)(MenuList,{children:e})}):(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Menu,{open:a,onClose:t,...n,children:e})},IconDropdownButton=(0,external_react_namespaceObject.forwardRef)(({children:e,icon:t,...a},r)=>{let{open:n,anchorRef:i,handleOpenMenu:o,handleCloseMenu:s}=useMenu(r);return(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.ClickAwayListener,{onClickAway:s,mouseEvent:"onMouseUp",children:(0,jsx_runtime_namespaceObject.jsx)(IconButton,{...a,ref:i,onClick:o,selected:n,children:t})}),(0,jsx_runtime_namespaceObject.jsx)(Menu,{open:n,anchorEl:i.current,children:e})]})});var constants_TooltipSizes=function(e){return e.MEDIUM="medium",e.SMALL="small",e}({});let StyledTooltip=(0,material_namespaceObject.styled)(({className:e,...t})=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Tooltip,{...t,classes:{popper:e}}))`
75
+ & .${material_namespaceObject.tooltipClasses.tooltip} {
76
+ margin: 0;
77
+
78
+ font-size: ${({size:e,theme:t})=>e===constants_TooltipSizes.SMALL?t.typography.caption.fontSize:t.typography.body1.fontSize};
79
+ font-weight: ${({theme:e})=>e.typography.fontWeightRegular};
80
+ line-height: ${({size:e,theme:t})=>e===constants_TooltipSizes.SMALL?t.typography.caption.lineHeight:t.typography.body1.lineHeight};
81
+ white-space: pre-line;
82
+
83
+ background-color: ${({theme:e})=>e.palette.grey[900]};
84
+ border-radius: ${({theme:e})=>e.shape.small};
85
+ }
86
+
87
+ & .${material_namespaceObject.tooltipClasses.arrow} {
88
+ font-size: ${({theme:e})=>e.typography.caption.fontSize};
89
+ color: ${({theme:e})=>e.palette.grey[900]};
90
+ }
91
+
92
+ &&[data-popper-placement*='top'] .${material_namespaceObject.tooltipClasses.tooltip} {
93
+ margin-bottom: ${({theme:e})=>e.spacing(2)};
94
+ }
95
+
96
+ &&[data-popper-placement*='bottom'] .${material_namespaceObject.tooltipClasses.tooltip} {
97
+ margin-top: ${({theme:e})=>e.spacing(2)};
98
+ }
99
+
100
+ &&[data-popper-placement*='left'] .${material_namespaceObject.tooltipClasses.tooltip} {
101
+ margin-right: ${({theme:e})=>e.spacing(2)};
102
+ }
103
+
104
+ &&[data-popper-placement*='right'] .${material_namespaceObject.tooltipClasses.tooltip} {
105
+ margin-left: ${({theme:e})=>e.spacing(2)};
106
+ }
107
+ `,styles_ContentWrapper=(0,material_namespaceObject.styled)("div")`
108
+ display: inherit;
109
+ flex-direction: inherit;
110
+ `,Tooltip=e=>{let{title:t,placement:a="top",size:r=constants_TooltipSizes.MEDIUM,withoutContainer:n=!0,children:i,...o}=e;return(0,jsx_runtime_namespaceObject.jsx)(StyledTooltip,{title:t,size:r,placement:a,arrow:!0,...o,children:n?i:(0,jsx_runtime_namespaceObject.jsx)(styles_ContentWrapper,{children:i})})},MenuItem=e=>{let{disabledReason:t,disabled:a,component:r="div",title:n,tooltipPlacement:i="left",note:o,...s}=e;return(0,jsx_runtime_namespaceObject.jsx)("li",{children:(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:a?t:o,placement:i,withoutContainer:!a,children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.MenuItem,{...s,disabled:a,title:n,component:r})},n)})},MainAction=({action:e,onActionClick:t,tooltipPlacement:a,isDisabled:r})=>{if("actions"in e){let{icon:n,disabled:i,disabledReason:o,name:s,actions:l}=e;return(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:o||s,placement:a,withoutContainer:!(r||i),children:(0,jsx_runtime_namespaceObject.jsx)(IconDropdownButton,{icon:n,variant:"text",disabled:r||i,children:l.map(({name:e,onClick:r,...n})=>(0,external_react_namespaceObject.createElement)(MenuItem,{...n,key:e,tooltipPlacement:a,onClick:t(r)},e))})},s)}let{onClick:n,name:i,icon:o,disabledReason:s,disabled:l,loading:c,isBlockingOperation:p,...u}=e,m=!c&&(s||i);return(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:m,placement:a,withoutContainer:!(r||l),children:(0,jsx_runtime_namespaceObject.jsx)(IconButton,{disabled:r||l,...u,variant:"text",onClick:t(n),children:o})},i)},SecondaryActions=({actions:e,onActionClick:t,tooltipPlacement:a,isDisabled:r=!1})=>(0,jsx_runtime_namespaceObject.jsx)(IconDropdownButton,{icon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.EllipsisVertical,{}),variant:"text",disabled:r,children:e.map(e=>{let{onClick:r,name:n}=e;return(0,external_react_namespaceObject.createElement)(MenuItem,{...e,key:n,tooltipPlacement:a,onClick:t(r)},n)})}),Wrapper=(0,material_namespaceObject.styled)("div")`
111
+ display: inline-flex;
112
+ align-items: center;
113
+ `,useLogic_useLogic_useLogic=({actions:e,row:t})=>{let{main:a,secondary:r}=e,n=a.some(e=>!("actions"in e)&&e?.isBlockingOperation&&e?.loading),i=(0,external_react_namespaceObject.useCallback)(e=>()=>{e?.(t)},[t]);return{isSecondaryActionsAvailable:r&&r.length>=1,handleActionClick:i,handleWrapperClick:e=>{e.stopPropagation()},isDisabledAction:n}},TOOLTIP_PLACEMENT={mainAction:"top",secondaryAction:"left"},ActionCell=e=>{let{isSecondaryActionsAvailable:t,handleActionClick:a,handleWrapperClick:r,isDisabledAction:n}=useLogic_useLogic_useLogic(e),{actions:i}=e,{main:o=[],secondary:s=[]}=i;return(0,jsx_runtime_namespaceObject.jsxs)(Wrapper,{onClick:r,children:[o.map(e=>(0,jsx_runtime_namespaceObject.jsx)(MainAction,{tooltipPlacement:TOOLTIP_PLACEMENT.mainAction,onActionClick:a,action:e,isDisabled:n},e.name)),t&&(0,jsx_runtime_namespaceObject.jsx)(SecondaryActions,{isDisabled:n,actions:s,tooltipPlacement:TOOLTIP_PLACEMENT.secondaryAction,onActionClick:a})]})},DefaultIcon=({...e})=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.SvgIcon,{viewBox:"0 0 14 14",...e,children:[(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H11C12.6569 0 14 1.34315 14 3V11C14 12.6569 12.6569 14 11 14H3C1.34315 14 0 12.6569 0 11V3Z"}),(0,jsx_runtime_namespaceObject.jsx)("path",{className:"MuiSvgIcon-border",fillRule:"evenodd",clipRule:"evenodd",d:"M11 2H3C2.44772 2 2 2.44772 2 3V11C2 11.5523 2.44772 12 3 12H11C11.5523 12 12 11.5523 12 11V3C12 2.44772 11.5523 2 11 2ZM3 0C1.34315 0 0 1.34315 0 3V11C0 12.6569 1.34315 14 3 14H11C12.6569 14 14 12.6569 14 11V3C14 1.34315 12.6569 0 11 0H3Z"})]}),CheckedIcon=({...e})=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.SvgIcon,{viewBox:"0 0 14 14",...e,children:[(0,jsx_runtime_namespaceObject.jsx)("rect",{width:"14",height:"14",rx:"3"}),(0,jsx_runtime_namespaceObject.jsx)("path",{className:"MuiSvgIcon-mark",fillRule:"evenodd",clipRule:"evenodd",d:"M4.71402 6.30066C4.62206 6.20534 4.51205 6.12931 4.39042 6.07701C4.26879 6.0247 4.13797 5.99717 4.0056 5.99602C3.87323 5.99487 3.74195 6.02012 3.61943 6.0703C3.49691 6.12048 3.3856 6.19458 3.292 6.28829C3.19839 6.38199 3.12437 6.49342 3.07424 6.61607C3.02411 6.73872 2.99889 6.87013 3.00004 7.00265C3.00119 7.13516 3.02869 7.26612 3.08094 7.38787C3.13319 7.50963 3.20914 7.61976 3.30435 7.71182L5.29823 9.7078C5.48518 9.8949 5.73871 10 6.00306 10C6.26741 10 6.52094 9.8949 6.7079 9.7078L10.6956 5.71584C10.7909 5.62377 10.8668 5.51365 10.9191 5.39189C10.9713 5.27013 10.9988 5.13918 11 5.00666C11.0011 4.87415 10.9759 4.74274 10.9258 4.62009C10.8756 4.49744 10.8016 4.38601 10.708 4.29231C10.6144 4.1986 10.5031 4.1245 10.3806 4.07432C10.258 4.02414 10.1268 3.99889 9.9944 4.00004C9.86203 4.00119 9.73121 4.02872 9.60958 4.08102C9.48795 4.13333 9.37794 4.20936 9.28598 4.30468L6.00306 7.59106L4.71402 6.30066V6.30066Z"})]}),IndeterminateIcon=({...e})=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.SvgIcon,{viewBox:"0 0 14 14",...e,children:[(0,jsx_runtime_namespaceObject.jsx)("rect",{width:"14",height:"14",rx:"3"}),(0,jsx_runtime_namespaceObject.jsx)("path",{className:"MuiSvgIcon-mark",d:"M10 6H4C3.44772 6 3 6.44772 3 7C3 7.55228 3.44772 8 4 8H10C10.5523 8 11 7.55228 11 7C11 6.44772 10.5523 6 10 6Z"})]}),getErrorStyles=e=>(0,material_namespaceObject.css)`
114
+ &.Mui-checked {
115
+ color: ${e.palette.red[800]};
116
+
117
+ &:hover {
118
+ color: ${e.palette.red[700]};
119
+ }
120
+ }
121
+
122
+ & .MuiSvgIcon-border {
123
+ fill: ${e.palette.red[800]};
124
+ }
125
+ `,StyledCheckbox=(0,material_namespaceObject.styled)(material_namespaceObject.Checkbox,{shouldForwardProp:e=>"isError"!==e})`
126
+ padding: ${({theme:e})=>e.spacing(2)};
127
+
128
+ color: ${({theme:e})=>e.palette.background.element};
129
+
130
+ border-radius: unset;
131
+
132
+ &:hover {
133
+ color: ${({theme:e})=>e.palette.grey[100]};
134
+ }
135
+
136
+ & .MuiSvgIcon-border {
137
+ fill: ${({theme:e})=>e.palette.grey[300]};
138
+ }
139
+
140
+ & > svg {
141
+ width: calc(16 / 14 * 1rem);
142
+ height: calc(16 / 14 * 1rem);
143
+ }
144
+
145
+ &.Mui-disabled {
146
+ color: ${({theme:e})=>e.palette.grey[200]};
147
+
148
+ & .MuiSvgIcon-border {
149
+ fill: currentColor;
150
+ }
151
+ }
152
+
153
+ &.Mui-checked,
154
+ &.MuiCheckbox-indeterminate {
155
+ color: ${({theme:e})=>e.palette.primary.main};
156
+
157
+ &:hover {
158
+ color: ${({theme:e})=>e.palette.primary[700]};
159
+ }
160
+
161
+ &.Mui-disabled {
162
+ color: ${({theme:e})=>e.palette.grey[500]};
163
+ }
164
+
165
+ & .MuiSvgIcon-mark {
166
+ fill: ${({theme:e})=>e.palette.common.white};
167
+ }
168
+ }
169
+
170
+ ${({isError:e,theme:t})=>e&&getErrorStyles(t)}
171
+ `,Checkbox=(0,external_react_namespaceObject.forwardRef)(({icon:e=(0,jsx_runtime_namespaceObject.jsx)(DefaultIcon,{}),checkedIcon:t=(0,jsx_runtime_namespaceObject.jsx)(CheckedIcon,{}),indeterminateIcon:a=(0,jsx_runtime_namespaceObject.jsx)(IndeterminateIcon,{}),...r},n)=>(0,jsx_runtime_namespaceObject.jsx)(StyledCheckbox,{ref:n,icon:e,checkedIcon:t,indeterminateIcon:a,...r})),StyledTypography=(0,material_namespaceObject.styled)(Typography,{shouldForwardProp:e=>"rowsCount"!==e&&"hasMultipleRows"!==e})`
172
+ /* stylelint-disable-next-line */
173
+ overflow: hidden;
174
+ /* stylelint-disable-next-line */
175
+ display: ${({hasMultipleRows:e})=>e?"-webkit-box":""};
176
+
177
+ max-width: 100%;
178
+
179
+ text-overflow: ellipsis;
180
+ white-space: ${({hasMultipleRows:e})=>e?"initial":"nowrap"};
181
+ -webkit-box-orient: ${({hasMultipleRows:e})=>e?"vertical":""};
182
+ -webkit-line-clamp: ${({rowsCount:e})=>e};
183
+ `,styles_Wrapper=(0,material_namespaceObject.styled)(Typography,{shouldForwardProp:e=>!["$align"].includes(e.toString())})`
184
+ display: flex;
185
+ justify-content: ${({$align:e})=>e};
186
+
187
+ width: 100%;
188
+
189
+ white-space: nowrap;
190
+ `,external_react_use_namespaceObject=require("react-use"),useOverflowed=e=>{let t=(0,external_react_namespaceObject.useRef)(null),a=e&&"function"!=typeof e?e:t,[r,n]=(0,external_react_namespaceObject.useState)(!1),i=(0,external_react_use_namespaceObject.useFirstMountState)(),o=([{target:e,contentRect:t}])=>{let a=Math.round(t.height)<e.scrollHeight,r=e.scrollWidth>Math.round(t.width);n(a||r)};return(0,external_react_namespaceObject.useLayoutEffect)(()=>{if(a?.current){let e=a.current,t={target:e,contentRect:e.getBoundingClientRect()};if(!i){let t=new ResizeObserver((0,material_namespaceObject.debounce)(o,500));return t.observe(e),()=>t.unobserve(e)}o([t])}},[a.current]),{isOverflowed:r,ref:a}},truncateString=(e,t)=>({firstPartLabel:t.slice(0,-e),secondPartLabel:t.slice(-e)}),OverflowTypography_useLogic_useLogic_useLogic=({children:e,visibleLastSymbolsCount:t,ref:a})=>{let{ref:r,isOverflowed:n}=useOverflowed(a),i=e&&"string"==typeof e,{firstPartLabel:o,secondPartLabel:s}=i&&n&&t?truncateString(t,e):{firstPartLabel:"",secondPartLabel:""};return{isTruncatedStringVisible:i&&n&&!!t,isOverflowed:n,ref:r,firstPartLabel:o,secondPartLabel:s}},DEFAULT_ROWS_COUNT=1,OverflowTypography=e=>{let{ref:t,isOverflowed:a,secondPartLabel:r,firstPartLabel:n,isTruncatedStringVisible:i}=OverflowTypography_useLogic_useLogic_useLogic(e),{tooltipProps:o,children:s,rowsCount:l=DEFAULT_ROWS_COUNT,visibleLastSymbolsCount:c,align:p="left",...u}=e,m={...u,ref:t,align:p,children:s,rowsCount:l,hasMultipleRows:l>DEFAULT_ROWS_COUNT};return i?(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:s,disableInteractive:!0,...o,children:(0,jsx_runtime_namespaceObject.jsxs)(styles_Wrapper,{$align:p,children:[(0,jsx_runtime_namespaceObject.jsx)(StyledTypography,{component:"span",ref:t,hasMultipleRows:!1,rowsCount:1,...u,children:n}),(0,jsx_runtime_namespaceObject.jsx)(Typography,{...u,component:"span",children:r})]})}):s&&a?(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:s,disableInteractive:!0,...o,children:(0,jsx_runtime_namespaceObject.jsx)(StyledTypography,{...m})}):(0,jsx_runtime_namespaceObject.jsx)(StyledTypography,{...m})},material_styles_namespaceObject=require("@mui/material/styles"),external_remeda_namespaceObject=require("remeda"),defaultBreakpoints={values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},MuiAlert={styleOverrides:{root:({theme:e})=>({fontWeight:"400",padding:e.spacing(3),".MuiAlert-message > *:last-child:not(:empty):not(.MuiTypography-root)":{padding:e.spacing(3,0)},[e.breakpoints.up("sm")]:{padding:e.spacing(2,4),".MuiAlert-message > *:last-child:not(:empty):not(.MuiTypography-root)":{padding:0}}}),filledSuccess:({theme:e})=>({backgroundColor:e.palette.success.light,color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.green["900"]}}),filledError:({theme:e})=>({backgroundColor:e.palette.error.light,color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.red["900"]}}),filledWarning:({theme:e})=>({backgroundColor:e.palette.warning.light,color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.yellow["900"]}}),filledInfo:({theme:e})=>({backgroundColor:e.palette.primary["100"],color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.primary["900"]}}),action:({theme:e})=>({svg:{color:`${e.palette.text.primary} !important`}})}};var enums_AutocompleteSizes=function(e){return e.medium="medium",e.small="small",e}({});let MuiAutocomplete={styleOverrides:{inputRoot:({theme:e,ownerState:{size:t}})=>({paddingTop:`${e.spacing(1)} !important`,paddingBottom:`${e.spacing(1)} !important`,paddingLeft:`${e.spacing(1)} !important`,minHeight:t===enums_AutocompleteSizes.small?"32px":"40px"}),input:({theme:e})=>({padding:"0 !important",paddingLeft:`${e.spacing(1)} !important`}),popupIndicator:({theme:e})=>({borderRadius:e.shape.small,display:"flex",alignItems:"center",width:32,height:32}),endAdornment:()=>({display:"flex",alignItems:"center",justifyContent:"flex-end",top:"calc(50% - 16px)"}),paper:({theme:e})=>({marginTop:e.spacing(2)}),noOptions:({theme:e})=>({padding:e.spacing(6,0,6,3),color:e.palette.grey["500"]}),clearIndicator:({theme:e})=>({width:32,height:32,padding:0,color:e.palette.primary.contrastText,"::before":{content:'""',position:"absolute",top:"50%",left:"50%",width:"0.6em",height:"0.6em",backgroundColor:e.palette.grey["500"],transform:"translate(-50%, -50%)",borderRadius:"50%"},".MuiSvgIcon-root":{position:"absolute",top:"50%",left:"50%",width:"0.6em",height:"0.6em",transform:"translate(-50%, -50%)",zIndex:1}}),loading:({theme:e})=>({display:"flex",justifyContent:"center",padding:e.spacing(6,0,6,0)})}},MuiButton_getValue=({type:e,values:t,defaultValue:a})=>e&&t[e]||a,MuiButton_getButtonHeight=e=>MuiButton_getValue({type:e.size,values:{[enums_ButtonSizes.Large]:"40px"},defaultValue:"32px"}),MuiButton_getButtonHeightMobile=e=>MuiButton_getValue({type:e.size,values:{[enums_ButtonSizes.Small]:"36px"},defaultValue:"48px"}),getButtonPadding=e=>MuiButton_getValue({type:e.size,values:{[enums_ButtonSizes.Large]:e.theme.spacing(2,4,2,4)},defaultValue:e.theme.spacing(1,3,1,3)}),getButtonPaddingMobile=e=>e.variant===enums_ButtonVariants.Link?"0":MuiButton_getValue({type:e.size,values:{[enums_ButtonSizes.Small]:e.theme.spacing(2,3)},defaultValue:e.theme.spacing(4,3)}),getButtonColor=({theme:e,variant:t,color:a,buttonState:r,selected:n})=>{let i={selected:{default:e.palette.grey["900"],hover:e.palette.grey["700"],active:e.palette.grey["800"],focus:e.palette.grey["900"]},light:{error:{default:e.palette.red["900"],hover:e.palette.red["900"],active:e.palette.red["800"],focus:e.palette.red["900"]},success:{default:e.palette.green["900"],hover:e.palette.green["900"],active:e.palette.green["800"],focus:e.palette.green["900"]},primary:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},warning:{default:e.palette.yellow["900"],hover:e.palette.yellow["900"],active:e.palette.yellow["800"],focus:e.palette.yellow["900"]}},contained:e.palette.primary.contrastText,text:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},link:{default:e.palette.primary["800"],hover:e.palette.primary["700"],active:e.palette.primary["900"],focus:e.palette.primary["800"]}};return n?t!==enums_ButtonVariants.Link?e.palette.primary.contrastText:i.selected[r]:t===enums_ButtonVariants.Contained?i.contained:t===enums_ButtonVariants.Light&&a?i.light[a][r]:t===enums_ButtonVariants.Text?i.text[r]:i.link[r]},getButtonBackgroundColor=({selected:e,color:t,variant:a,buttonState:r,theme:n})=>{let i={selected:{default:n.palette.grey["900"],hover:n.palette.grey["700"],active:n.palette.grey["800"],focus:n.palette.grey["900"]},light:{error:{default:n.palette.red["100"],hover:n.palette.red["200"],active:n.palette.red["100"],focus:n.palette.red["100"]},success:{default:n.palette.green["100"],hover:n.palette.green["200"],active:n.palette.green["100"],focus:n.palette.green["100"]},primary:{default:n.palette.grey["100"],hover:n.palette.grey["200"],active:n.palette.primary["100"],focus:n.palette.grey["100"]},warning:{default:n.palette.yellow["100"],hover:n.palette.yellow["200"],active:n.palette.yellow["100"],focus:n.palette.yellow["100"]}},contained:{error:{default:n.palette.red["800"],hover:n.palette.red["700"],active:n.palette.red["900"],focus:n.palette.red["800"]},success:{default:n.palette.green["800"],hover:n.palette.green["700"],active:n.palette.green["900"],focus:n.palette.green["800"]},primary:{default:n.palette.primary["800"],hover:n.palette.primary["700"],active:n.palette.primary["900"],focus:n.palette.primary["800"]},warning:{default:n.palette.yellow["800"],hover:n.palette.yellow["700"],active:n.palette.yellow["900"],focus:n.palette.yellow["800"]}},text:{default:"transparent",hover:n.palette.grey["200"],active:n.palette.primary["100"],focus:"transparent"},link:"transparent"};return e&&a!==enums_ButtonVariants.Link?i.selected[r]:a===enums_ButtonVariants.Light&&t?i.light[t][r]:a===enums_ButtonVariants.Contained&&t?i.contained[t][r]:a===enums_ButtonVariants.Text?i.text[r]:i.link},getButtonDisabledBackgroundColor=({theme:e,variant:t})=>enums_ButtonVariants.Link===t||enums_ButtonVariants.Text===t?"transparent":e.palette.grey["200"],MuiButton={defaultProps:{disableRipple:!0},styleOverrides:{root({ownerState:e,theme:t}){let a=e.variant,r=e.color,n=e.selected,i=e.size;return{height:MuiButton_getButtonHeight({size:i}),padding:getButtonPadding({theme:t,size:i}),[t.breakpoints.down("sm")]:{height:MuiButton_getButtonHeightMobile({size:i}),padding:getButtonPaddingMobile({size:i,theme:t,variant:a}),whiteSpace:"nowrap"},color:getButtonColor({selected:n,theme:t,variant:a,color:r,buttonState:enums_ButtonStates.Default}),fontWeight:t.typography.button.fontWeight,fontSize:t.typography.button.fontSize,backgroundColor:getButtonBackgroundColor({selected:n,theme:t,color:r,variant:a,buttonState:enums_ButtonStates.Default}),border:"none",borderRadius:t.shape.small,"&:hover":{color:getButtonColor({selected:n,theme:t,variant:a,color:r,buttonState:enums_ButtonStates.Hover}),backgroundColor:getButtonBackgroundColor({selected:n,color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Hover}),boxShadow:"none"},"&:active":{color:getButtonColor({selected:n,color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Active}),backgroundColor:getButtonBackgroundColor({selected:n,color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Active}),outline:"none"},"&:focus-visible":{color:getButtonColor({selected:n,theme:t,variant:a,color:r,buttonState:enums_ButtonStates.Focus}),backgroundColor:getButtonBackgroundColor({selected:n,color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Focus}),outline:`2px solid ${t.palette.primary["400"]}`,boxShadow:"none"},[`&.${material_namespaceObject.buttonClasses.disabled}`]:{color:t.palette.grey["500"],backgroundColor:getButtonDisabledBackgroundColor({theme:t,variant:a}),pointerEvents:"none",cursor:"unset"},[`&.${LOADING_BUTTON_CLASSNAME}`]:{color:"transparent",backgroundColor:getButtonBackgroundColor({color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Default})},gap:t.spacing(1),textTransform:"none",boxShadow:"none",minWidth:"auto","&.MuiButton-root .MuiButton-startIcon":{marginRight:t.spacing(1)},"&.MuiButton-root .MuiButton-endIcon":{marginLeft:t.spacing(1)},"&.MuiButton-root .MuiSvgIcon-root":{fontSize:"24px"}}}}},MuiButtonBase={defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:e})=>({fontFamily:e.typography.fontFamily})}},MuiCircularProgress_MuiCircularProgress={styleOverrides:{root({ownerState:e,theme:t}){let{"data-color":a}=e;return{color:"primary"===a?t.palette.grey[900]:t.palette.primary.contrastText}}}},MuiCircularProgress=null,MuiDialog={styleOverrides:{paper:({theme:e})=>({borderRadius:e.shape.small})}},MuiDialogActions={styleOverrides:{root:({theme:e})=>({padding:e.spacing(4,6,6,6),">div":{width:"100%"}})}},MuiDialogContent={styleOverrides:{root:({theme:e})=>({padding:e.spacing(0,6)})}},MuiDialogTitle={styleOverrides:{root:({theme:e})=>({padding:e.spacing(6,6,4),fontSize:e.typography.h4.fontSize,fontWeight:e.typography.h4.fontWeight,lineHeight:e.typography.h4.lineHeight,display:"flex",justifyContent:"space-between",alignItems:"center",[`& .${material_namespaceObject.buttonClasses.root}`]:{marginLeft:e.spacing(4),color:e.palette.grey[800]}})}},MuiDrawer={styleOverrides:{root:({theme:e})=>({[`&.${material_namespaceObject.drawerClasses.root} > .${material_namespaceObject.backdropClasses.root}`]:{backgroundColor:e.palette.background.modalShadow}})}},MuiFormHelperText={styleOverrides:{root:({theme:e})=>({display:"flex",minHeight:e.typography.small.lineHeight,fontSize:e.typography.small.fontSize,margin:e.spacing(1,0,0),lineHeight:e.typography.small.lineHeight,"&.Mui-error":{color:e.palette.error.dark}})}},components_MuiFormHelperText=null,MuiFormLabel_MuiFormLabel={styleOverrides:{root:()=>({position:"relative",transform:"none"})}},MuiFormLabel=null,MuiInputLabel={defaultProps:{shrink:!0},styleOverrides:{root:({theme:e})=>({position:"relative",transform:"none",color:e.palette.grey[700],fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),lineHeight:e.typography.pxToRem(16),marginBottom:e.spacing(1),"&.Mui-focused":{color:e.palette.grey[700]},"&.Mui-error":{color:e.palette.grey[700]},"&.Mui-disabled":{color:e.palette.grey[600]}})}},components_MuiInputLabel=null,MuiLinearProgress={styleOverrides:{root:({theme:e})=>({width:"100%",borderRadius:"4px",backgroundColor:e.palette.grey[300]}),barColorPrimary:({theme:e})=>({backgroundColor:e.palette.primary["800"]})}},components_MuiLinearProgress=null,MuiListItemButton={styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{color:e.palette.primary[800],backgroundColor:e.palette.grey[100]}})}},MuiListItemText={styleOverrides:{root:()=>({overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"})}},MuiMenu_MuiMenu={defaultProps:{autoFocus:!1},styleOverrides:{paper:({theme:e})=>({marginTop:e.spacing(2),[`&&.${material_namespaceObject.paperClasses.root}`]:{borderRadius:e.shape.small,boxShadow:e.elevation[200]}}),list:({theme:e})=>({[`&&.${material_namespaceObject.listClasses.root}`]:{padding:0},[`&&.${material_namespaceObject.listClasses.padding}`]:{padding:e.spacing(1,0)}})}},MuiMenu=null,MuiMenuItem={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,2,2,3),"&:hover":{backgroundColor:e.palette.background.elementHover},[`&.${material_namespaceObject.menuItemClasses.selected}`]:{background:`linear-gradient(90deg, ${e.palette.primary.main} 0, ${e.palette.primary.main} 4px, ${e.palette.primary["100"]} 4px)`},[`&.${material_namespaceObject.menuItemClasses.gutters}`]:{minHeight:e.spacing(8),padding:e.spacing(1,3,1,3)},[e.breakpoints.down("sm")]:{padding:e.spacing(3,3,4,3),[`&.${material_namespaceObject.menuItemClasses.gutters}`]:{padding:e.spacing(3,3,4,3)}}})}},components_MuiMenuItem=null,MuiOutlinedInput_MuiOutlinedInput={defaultProps:{notched:!1},styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),borderRadius:e.shape.small,color:e.palette.grey[900],background:e.palette.background.element,"&:hover":{background:e.palette.background.elementHover,"&.Mui-disabled":{background:e.palette.background.element}},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.grey[300]},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.background.element},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.dark},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary[700]}}),input:({theme:e})=>({height:20,padding:e.spacing(2.5,2),borderRadius:e.shape.small,"&:disabled":{background:e.palette.background.element},"&::placeholder":{opacity:1,color:e.palette.grey[600]}}),inputSizeSmall:({theme:e})=>({paddingBlock:e.spacing(1.5),paddingInline:e.spacing(2)}),notchedOutline:({theme:e})=>({borderWidth:2,borderColor:e.palette.grey[300]}),multiline:()=>({padding:0}),inputMultiline:({theme:e})=>({padding:e.spacing(2)})}},MuiOutlinedInput=null,MuiPaginationItem={styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.grey["900"],color:e.palette.primary.contrastText}})}},getShadow=(e,t)=>0===e?"none":1===e?t.elevation["200"]:t.elevation["300"],MuiPaper={styleOverrides:{elevation:({theme:e,ownerState:{elevation:t}})=>({boxShadow:getShadow(t,e)}),outlined:({theme:e})=>({border:`1px solid ${e.palette.grey[300]}`})}},MuiStep={styleOverrides:{horizontal:({theme:e})=>({"&:first-of-type":{paddingLeft:0},padding:e.spacing(0,2.5)})}},MuiStepConnector={styleOverrides:{lineHorizontal:({theme:e})=>({borderTopWidth:2,borderColor:e.palette.grey[300]})}},MuiStepLabel={styleOverrides:{label({theme:e}){let{active:t,completed:a,error:r}=material_namespaceObject.stepLabelClasses;return{fontSize:e.typography.small.fontSize,lineHeight:e.typography.small.lineHeight,fontWeight:e.typography.small.fontWeight,color:e.palette.grey[700],[`&.${t}, &.${a}, &.${r}`]:{color:e.palette.grey[900],fontSize:e.typography.small.fontSize,lineHeight:e.typography.small.lineHeight,fontWeight:e.typography.small.fontWeight}}},iconContainer:({theme:e})=>({paddingRight:e.spacing(2.5)})}},prepareColorToUrl=e=>e.replace("#","%23"),getCheckBackgroundImage=e=>{let t=prepareColorToUrl(e);return`url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M2 6L4.5 8.5L10 3.5" stroke="${t}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg>')`},getCrossBackgroundImage=e=>{let t=prepareColorToUrl(e);return`url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M6.00005 5.41087L3.79463 3.20545C3.71605 3.12955 3.6108 3.08755 3.50155 3.0885C3.3923 3.08945 3.28779 3.13327 3.21054 3.21053C3.13329 3.28778 3.08947 3.39228 3.08852 3.50153C3.08757 3.61078 3.12957 3.71603 3.20546 3.79462L5.41088 6.00003L3.20546 8.20545C3.12957 8.28403 3.08757 8.38929 3.08852 8.49853C3.08947 8.60778 3.13329 8.71229 3.21054 8.78954C3.28779 8.86679 3.3923 8.91062 3.50155 8.91156C3.6108 8.91251 3.71605 8.87052 3.79463 8.79462L6.00005 6.5892L8.20546 8.79462C8.28405 8.87052 8.3893 8.91251 8.49855 8.91156C8.6078 8.91062 8.7123 8.86679 8.78956 8.78954C8.86681 8.71229 8.91063 8.60778 8.91158 8.49853C8.91253 8.38929 8.87053 8.28403 8.79463 8.20545L6.58921 6.00003L8.79463 3.79462C8.83443 3.75618 8.86617 3.7102 8.88801 3.65937C8.90984 3.60853 8.92134 3.55386 8.92182 3.49853C8.9223 3.44321 8.91176 3.38834 8.89081 3.33714C8.86986 3.28593 8.83892 3.23941 8.7998 3.20029C8.76067 3.16116 8.71415 3.13023 8.66294 3.10927C8.61174 3.08832 8.55687 3.07778 8.50155 3.07826C8.44622 3.07874 8.39155 3.09024 8.34071 3.11207C8.28988 3.13391 8.2439 3.16565 8.20546 3.20545L6.00005 5.41087Z" fill="${t}" stroke="${t}" stroke-width="1.5" /></svg>')`},MuiSwitch={styleOverrides:{root:({theme:e})=>({width:"fit-content",height:"fit-content",padding:e.spacing(1),"& .Mui-checked.MuiSwitch-switchBase":{padding:0,"& + .MuiSwitch-track":{backgroundColor:e.palette.primary.main[800],opacity:1}},"& :not(.Mui-checked).MuiSwitch-switchBase":{padding:0,"& + .MuiSwitch-track":{backgroundColor:e.palette.grey[700],opacity:1}},"& .Mui-checked:hover + .MuiSwitch-track":{backgroundColor:e.palette.primary[700]},"& :not(.Mui-checked):hover + .MuiSwitch-track":{backgroundColor:e.palette.grey[500]},"& .MuiButtonBase-root.MuiSwitch-switchBase.Mui-disabled":{"& + .MuiSwitch-track":{backgroundColor:e.palette.grey[200],"&::before":{backgroundImage:getCheckBackgroundImage(e.palette.grey[500])},"&::after":{backgroundImage:getCrossBackgroundImage(e.palette.grey[500])}}},"& :not(.Mui-disabled):active + .MuiSwitch-track":{border:`2px solid ${e.palette.primary[400]}`}}),switchBase:{padding:0,"&:hover, &.Mui-checked:hover":{backgroundColor:"transparent"}},track:({theme:e})=>({borderRadius:10,boxSizing:"border-box","&::before, &::after":{position:"absolute",top:"50%",transform:"translateY(-50%)",content:'""',backgroundSize:"cover"},"&::before":{left:e.spacing(2),backgroundImage:getCheckBackgroundImage(e.palette.background.default)},"&::after":{right:e.spacing(2),backgroundImage:getCrossBackgroundImage(e.palette.background.default)}}),thumb:({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:"none",margin:e.spacing(1.5)}),sizeSmall:{"& .MuiSwitch-track":{width:32,height:16,"&::before, &::after":{width:8,height:8}},"& .MuiSwitch-thumb":{width:12,height:12}},sizeMedium:{"& .MuiSwitch-track":{width:40,height:20,"&::before, &::after":{width:12,height:12}},"& .MuiSwitch-thumb":{width:16,height:16}}}},MuiTab={styleOverrides:{root:({theme:e})=>({minWidth:0,padding:e.spacing(0,2),textTransform:"none"})}},MuiTableCell={styleOverrides:{root:({theme:e})=>({border:"none",padding:e.spacing(1,4),height:44})}},MuiTableHead={styleOverrides:{root:({theme:e})=>({th:{borderBottom:`2px solid ${e.palette.grey["300"]}`}})}},MuiTableRow={styleOverrides:{root:({theme:e})=>({"&.MuiTableRow-hover:hover":{backgroundColor:e.palette.background.elementHover,cursor:"pointer"},"&.Mui-selected":{backgroundColor:e.palette.primary["100"]}})}},MuiTabs={styleOverrides:{root:()=>({minHeight:38,height:38}),indicator:({theme:e})=>({borderRadius:e.shape.small})}},MuiTextField={styleOverrides:{root:({theme:e})=>({[`& .${material_namespaceObject.inputBaseClasses.adornedStart}`]:{paddingLeft:e.spacing(2)},[`& .${material_namespaceObject.inputBaseClasses.adornedEnd}`]:{paddingRight:e.spacing(2)},[`& .${material_namespaceObject.inputBaseClasses.inputAdornedStart}`]:{paddingLeft:e.spacing(1)},[`& .${material_namespaceObject.outlinedInputClasses.notchedOutline}`]:{top:-4.5}})}},MuiToggleButton={styleOverrides:{root:({theme:e})=>({textTransform:"initial",padding:e.spacing(1,2)})}},MuiToggleButtonGroup={defaultProps:{size:"small",color:"primary"}},MuiTypography={variants:[{props:{variant:"button"},style:{textTransform:"capitalize"}}],defaultProps:{variantMapping:{link:"a",code:"code"}}},components_MuiTypography=null,getFontFaces=e=>`
191
+ @font-face {
192
+ font-family: 'Ubuntu';
193
+ font-style: 'normal';
194
+ font-weight: 300;
195
+ font-display: swap;
196
+ src: url(${e.light.woff2}) format('woff2'), url(${e.light.woff}) format('woff');
197
+ }
198
+ @font-face {
199
+ font-family: 'Ubuntu';
200
+ font-style: 'normal';
201
+ font-weight: 400;
202
+ font-display: swap;
203
+ src: url(${e.regular.woff2}) format('woff2'), url(${e.regular.woff}) format('woff');
204
+ }
205
+ @font-face {
206
+ font-family: 'Ubuntu';
207
+ font-style: 'normal';
208
+ font-weight: 500;
209
+ font-display: swap;
210
+ src: url(${e.medium.woff2}) format('woff2'), url(${e.medium.woff}) format('woff');
211
+ }
212
+ @font-face {
213
+ font-family: 'Ubuntu';
214
+ font-style: 'normal';
215
+ font-weight: 700;
216
+ font-display: swap;
217
+ src: url(${e.bold.woff2}) format('woff2'), url(${e.bold.woff}) format('woff');
218
+ }
219
+ `,getMuiCssBaseline=e=>({styleOverrides:getFontFaces(e)}),getMuiScopedCssBaseline=e=>({styleOverrides:{root:getFontFaces(e)}}),MuiCheckbox={defaultProps:{disableRipple:!0}},MuiRadio={defaultProps:{disableRipple:!0}},getComponents=e=>({MuiCssBaseline:getMuiCssBaseline(e),MuiScopedCssBaseline:getMuiScopedCssBaseline(e),MuiAlert:MuiAlert,MuiButton:MuiButton,MuiButtonBase:MuiButtonBase,MuiTypography:MuiTypography,MuiInputLabel:MuiInputLabel,MuiOutlinedInput:MuiOutlinedInput_MuiOutlinedInput,MuiFormLabel:MuiFormLabel_MuiFormLabel,MuiFormHelperText:MuiFormHelperText,MuiAutocomplete:MuiAutocomplete,MuiCheckbox,MuiMenu:MuiMenu_MuiMenu,MuiMenuItem:MuiMenuItem,MuiRadio,MuiDialog:MuiDialog,MuiDialogTitle:MuiDialogTitle,MuiDialogContent:MuiDialogContent,MuiDialogActions:MuiDialogActions,MuiDrawer:MuiDrawer,MuiTableCell:MuiTableCell,MuiTableHead:MuiTableHead,MuiTableRow:MuiTableRow,MuiPaginationItem:MuiPaginationItem,MuiPaper:MuiPaper,MuiCircularProgress:MuiCircularProgress_MuiCircularProgress,MuiListItemButton:MuiListItemButton,MuiListItemText:MuiListItemText,MuiLinearProgress:MuiLinearProgress,MuiTab:MuiTab,MuiTabs:MuiTabs,MuiStepLabel:MuiStepLabel,MuiStep:MuiStep,MuiStepConnector:MuiStepConnector,MuiToggleButtonGroup:MuiToggleButtonGroup,MuiToggleButton:MuiToggleButton,MuiTextField:MuiTextField,MuiSwitch:MuiSwitch}),SPACING=4,elevation_elevation={100:"0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;",200:"0px 0px 1px 0px #072D574F, 0px 3px 5px 0px #072D5733;",300:"0px 0px 1px 0px #072D574F, 0px 8px 12px 0px #072D5726;",400:"0px 0px 1px 0px #072D574F, 0px 10px 18px 0px #072D5726;",500:"0px 0px 1px 0px #072D574F, 0px 18px 28px 0px #072D5726;"},linkColors={main:"#1874FF",hover:"#268FF9",visited:"#762376",active:"#072D57"},componentsColors={link:linkColors},getPalette=()=>{let e={primary:{900:"#0F52B8",800:"#2165CC",700:"#1874FF",600:"#2684FF",500:"#4C9AFF",400:"#70AEFF",300:"#94C2FF",200:"#C5DCFF",100:"#E1EDFF"},secondary:{800:"#55B8F0"}};return{red:{900:"#E64343",800:"#F24646",700:"#F35959",600:"#F67E7E",500:"#F79090",400:"#F8A3A3",300:"#FAB5B5",200:"#FCDADA",100:"#FEEDED"},green:{900:"#008055",800:"#00875A",700:"#19936A",600:"#4DAB8C",500:"#66B79C",400:"#80C3AC",300:"#99CFBD",200:"#CCE7DE",100:"#E6F3EF"},yellow:{900:"#ED8000",800:"#F98700",700:"#FA961F",600:"#FBAB4D",500:"#FBB766",400:"#FDCF99",300:"#FDDBB2",200:"#FBE6CC",100:"#FEF3E6"},grey:{900:"#072D57",800:"#1D3F66",700:"#557192",600:"#778DA8",500:"#99A9BA",400:"#B7C2CE",300:"#DDE2E8",200:"#EBEEF1",100:"#F0F4F7"},primary:{main:e.primary[800],dark:e.primary[900],contrastText:"#FFF",...e.primary},secondary:{main:e.secondary[800],dark:e.primary[900],contrastText:"#FFF",...e.secondary},background:{default:"#FFF",paper:"#FFF",element:"#FAFBFC",elementHover:"#EEF1F4",modalShadow:"#142A438A"},get text(){return{primary:this.grey[900],secondary:this.grey[700],disabled:this.grey[500]}},get info(){return this.primary},get warning(){return{...this.yellow,light:this.yellow[100],main:this.yellow[600],dark:this.yellow[800],contrastText:"#FFF"}},get success(){return{...this.green,light:this.green[100],main:this.green[600],dark:this.green[800],contrastText:"#FFF"}},get error(){return{...this.red,light:this.red[100],main:this.red[600],dark:this.red[800],contrastText:"#FFF"}},components:componentsColors}},shape={small:"3px",medium:"6px",large:"9px"},HTML_FONT_SIZE=14,pxToRem=(e,t=HTML_FONT_SIZE)=>`${e/t}rem`,baseTypography={fontSize:14,htmlFontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700,fontFamily:"Ubuntu,sans-serif"},getTypography=e=>({h1:{fontSize:"36px",fontWeight:e.typography.fontWeightMedium,lineHeight:"40px"},h2:{fontSize:"28px",fontWeight:e.typography.fontWeightMedium,lineHeight:"32px",[e.breakpoints.down("sm")]:{fontSize:"32px",lineHeight:"40px"}},h3:{fontSize:"24px",fontWeight:e.typography.fontWeightMedium,lineHeight:"28px",[e.breakpoints.down("sm")]:{fontSize:"28px",lineHeight:"36px"}},h4:{fontSize:"20px",fontWeight:e.typography.fontWeightMedium,lineHeight:"24px",[e.breakpoints.down("sm")]:{fontSize:"24px",lineHeight:"28px"}},h5:{fontSize:"16px",fontWeight:e.typography.fontWeightMedium,lineHeight:"20px",[e.breakpoints.down("sm")]:{fontSize:"18px",lineHeight:"20px"}},h6:{fontSize:"14px",fontWeight:e.typography.fontWeightMedium,lineHeight:"20px",[e.breakpoints.down("sm")]:{fontSize:"16px",lineHeight:"20px"}},subtitle1:{fontSize:"16px",fontWeight:e.typography.fontWeightRegular,lineHeight:"20px",[e.breakpoints.down("sm")]:{fontSize:"18px"}},subtitle2:{fontSize:"14px",fontWeight:e.typography.fontWeightMedium,lineHeight:"20px",[e.breakpoints.down("sm")]:{fontSize:"16px"}},body1:{fontSize:"14px",fontWeight:e.typography.fontWeightRegular,lineHeight:"20px",[e.breakpoints.down("sm")]:{fontSize:"16px"}},button:{fontSize:"14px",fontWeight:e.typography.fontWeightMedium,lineHeight:"24px",[e.breakpoints.down("sm")]:{fontSize:"16px"}},link:{fontSize:"14px",fontWeight:e.typography.fontWeightRegular,lineHeight:"20px",[e.breakpoints.down("sm")]:{fontSize:"16px"}},caption:{fontSize:"12px",fontWeight:e.typography.fontWeightRegular,lineHeight:"16px",[e.breakpoints.down("sm")]:{fontSize:"14px"}},pointer:{fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"16px",[e.breakpoints.down("sm")]:{fontSize:"14px"}}}),createTheme=e=>{let{options:t={},fontsUrls:a,breakpoints:r=defaultBreakpoints}=e,n={typography:baseTypography,breakpoints:r,spacing:SPACING,palette:getPalette(),components:getComponents(a),shape:shape,elevation:elevation_elevation},i=(0,material_styles_namespaceObject.createTheme)(n),o=(0,material_styles_namespaceObject.createTheme)(i,{typography:getTypography(i)});return(0,external_remeda_namespaceObject.mergeDeep)(o,{elevation:elevation_elevation,shape:shape,...t})},react_namespaceObject=require("@emotion/react"),useTheme=()=>(0,react_namespaceObject.useTheme)(),ContainerRoot=(0,material_namespaceObject.styled)("div",{shouldForwardProp:e=>!["variant","direction","gap","width","height","justifyContent","alignItems","padding","margin","gridArea","templateAreas","templateColumns","templateRows","isPaper","elevation","borderRadius"].includes(e.toString()),label:"Container"})`
220
+ display: ${({variant:e="flex",templateAreas:t,templateColumns:a,templateRows:r})=>r||a||t?"grid":e};
221
+ flex-direction: ${({direction:e="row"})=>e};
222
+ flex-wrap: ${({direction:e="row"})=>"row"===e?"nowrap":"wrap"};
223
+ gap: ${({gap:e=2,theme:t})=>t.spacing(e)};
224
+ width: ${({width:e})=>"number"==typeof e?`${e}px`:e};
225
+ height: ${({height:e})=>"number"==typeof e?`${e}px`:e};
226
+ justify-content: ${({justifyContent:e="flex-start"})=>e};
227
+ align-items: ${({alignItems:e})=>e};
228
+ grid-area: ${({gridArea:e})=>e};
229
+ grid-template-areas: ${({templateAreas:e})=>e};
230
+ grid-template-columns: ${({templateColumns:e})=>e};
231
+ grid-template-rows: ${({templateRows:e})=>e};
232
+ box-shadow: ${({theme:e,elevation:t=0})=>e.shadows[t]};
233
+ border-radius: ${({theme:e,borderRadius:t=4})=>e.spacing(t)}px;
234
+ background-color: ${({theme:e,isPaper:t})=>t?e.palette.background.paper:"transparent"};
235
+ padding: ${({padding:e,theme:t})=>"number"==typeof e?t.spacing(e):e};
236
+ margin: ${({margin:e,theme:t})=>"number"==typeof e?t.spacing(e):e};
237
+ `,Container=e=>(0,jsx_runtime_namespaceObject.jsx)(ContainerRoot,{...e});var enums_TagColors=function(e){return e.DEFAULT="default",e.PRIMARY="primary",e.ERROR="error",e.GREY="grey",e.SUCCESS="success",e.WARNING="warning",e}({}),enums_TagVariants=function(e){return e.CONTAINED="contained",e.LIGHT="light",e.TEXT="text",e}({}),enums_TagStates=function(e){return e.DEFAULT="default",e.HOVER="hover",e.ACTIVE="active",e}({});let HEIGHTS={small:"20px",medium:"24px",large:"32px"},getBadgeColor=e=>{let{tagColor:t,variant:a}=e;return a===enums_TagVariants.CONTAINED?"white":({[enums_TagColors.PRIMARY]:"primary",[enums_TagColors.ERROR]:"error",[enums_TagColors.GREY]:"grey",[enums_TagColors.SUCCESS]:"success",[enums_TagColors.WARNING]:"warning",[enums_TagColors.DEFAULT]:"grey"})[t||"default"]},getShape=({theme:e,rounded:t})=>t?"100px":e.shape.small,getDeleteIconBorderRadius=({theme:e,rounded:t})=>t?"100px":`0 ${e.shape.small} ${e.shape.small} 0`,getBgColor=({theme:e,customColor:t,customVariant:a,disabled:r})=>{if(r)return e.palette.grey[100];if("text"===a)return"transparent";let n={contained:{primary:e.palette.primary.main,error:e.palette.red[800],success:e.palette.green[800],warning:e.palette.yellow[800],grey:e.palette.grey[300],default:e.palette.background.element},light:{primary:e.palette.primary[100],error:e.palette.red[100],success:e.palette.green[100],warning:e.palette.yellow[100],grey:e.palette.grey[100],default:e.palette.background.element}};return a&&t?n[a][t]:!a&&t?n.contained[t]:e.palette.grey[300]},getColor=({theme:e,customColor:t,customVariant:a,disabled:r})=>{if(r)return e.palette.text.disabled;if("text"===a)return e.palette.grey[900];let n={contained:{primary:e.palette.primary.contrastText,error:e.palette.error.contrastText,success:e.palette.warning.contrastText,warning:e.palette.success.contrastText,default:e.palette.text.primary,grey:e.palette.grey[900]},light:{primary:e.palette.primary.main,error:e.palette.red[800],success:e.palette.green[800],warning:e.palette.yellow[800],default:e.palette.text.primary,grey:e.palette.grey[900]}};return a||t?a||"grey"===t?t?a&&t?n[a][t]:e.palette.text.primary:n.contained.default:e.palette.common.white:e.palette.grey[900]},getTagLabelPadding=({theme:e,rounded:t,customSize:a})=>{if(t)return e.spacing(0,2);switch(a){case"small":return e.spacing(0,1);case"medium":case"large":return e.spacing(0,2)}},getDeleteIconBgColor=({theme:e,iconState:t,customVariant:a,customColor:r})=>{let n={contained:{primary:e.palette.primary[600],error:e.palette.red[600],success:e.palette.green[600],warning:e.palette.yellow[600],grey:e.palette.grey[100],default:e.palette.grey[300]},light:{primary:e.palette.primary[300],error:e.palette.red[300],success:e.palette.green[300],warning:e.palette.yellow[300],grey:e.palette.grey[300],default:e.palette.grey[300]}};if("default"!==t){if(("contained"===a||"light"===a)&&r)return n[a][r||"default"];if("text"===a)return n.light.grey}return"transparent"},getDeleteIconColor=({customVariant:e,customColor:t,theme:a})=>"contained"===e&&"grey"!==t&&"default"!==t?a.palette.common.white:a.palette.grey[900],StyledTag=(0,material_namespaceObject.styled)(material_namespaceObject.Chip,{shouldForwardProp:e=>"customColor"!==e&&"customVariant"!==e&&"rounded"!==e&&"customSize"!==e})`
238
+ user-select: none;
239
+
240
+ height: ${({customSize:e})=>HEIGHTS[e]};
241
+
242
+ font-size: 14px;
243
+
244
+ background-color: ${getBgColor};
245
+ border-radius: ${getShape};
246
+
247
+ &:hover {
248
+ color: ${getColor};
249
+
250
+ background-color: ${getBgColor};
251
+ }
252
+
253
+ &:active {
254
+ color: ${getColor};
255
+
256
+ background-color: ${getBgColor};
257
+ }
258
+
259
+ .MuiChip-label {
260
+ padding: ${getTagLabelPadding};
261
+
262
+ color: ${getColor};
263
+
264
+ &:hover {
265
+ color: ${getColor};
266
+ }
267
+
268
+ &:active {
269
+ color: ${getColor};
270
+ }
271
+ }
272
+
273
+ .MuiChip-deleteIcon {
274
+ width: 20px;
275
+ height: 20px;
276
+ margin: 0;
277
+
278
+ color: ${getDeleteIconColor};
279
+
280
+ background: ${e=>getDeleteIconBgColor({...e,iconState:enums_TagStates.DEFAULT})};
281
+ border-radius: ${getDeleteIconBorderRadius};
282
+
283
+ &:hover {
284
+ color: ${getDeleteIconColor};
285
+
286
+ background: ${e=>getDeleteIconBgColor({...e,iconState:enums_TagStates.HOVER})};
287
+ }
288
+
289
+ &:active {
290
+ color: ${getDeleteIconColor};
291
+
292
+ background: ${e=>getDeleteIconBgColor({...e,iconState:enums_TagStates.ACTIVE})};
293
+ }
294
+ }
295
+
296
+ &.Mui-disabled {
297
+ opacity: 1;
298
+ }
299
+
300
+ .MuiChip-avatar {
301
+ width: 16px;
302
+ height: 16px;
303
+ margin: 2px;
304
+
305
+ color: ${getColor};
306
+ }
307
+
308
+ .MuiChip-icon {
309
+ width: 16px;
310
+ height: 16px;
311
+ }
312
+ `,LabelContainer=(0,material_namespaceObject.styled)(Container)`
313
+ flex-direction: column;
314
+ align-items: center;
315
+ justify-content: flex-start;
316
+ `,Tag=(0,external_react_namespaceObject.forwardRef)(({color:e="grey",variant:t="contained",deleteIcon:a,size:r="small",label:n,startAddon:i,endAddon:o,...s},l)=>{let c=useTheme(),p=(0,jsx_runtime_namespaceObject.jsxs)(LabelContainer,{children:[i&&(0,jsx_runtime_namespaceObject.jsx)(i,{color:getBadgeColor({variant:t,tagColor:e,theme:c})}),n,o&&(0,jsx_runtime_namespaceObject.jsx)(o,{color:getBadgeColor({variant:t,tagColor:e,theme:c})})]});return(0,jsx_runtime_namespaceObject.jsx)(StyledTag,{ref:l,customColor:e,customVariant:t,customSize:r,label:p,...s,deleteIcon:a||(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X,{})})}),getStyles=e=>`display: inline-flex;
317
+ justify-content: center;
318
+ font-size: ${e.typography.h5.fontSize};
319
+ vertical-align: middle;`,FormHelperTextContent_styles_Wrapper=(0,material_namespaceObject.styled)("span")`
320
+ display: flex;
321
+
322
+ color: ${({success:e,error:t,theme:a})=>e?a.palette.success.dark:t?a.palette.error.dark:"inherit"};
323
+ `,SuccessIcon=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.CircleCheck)`
324
+ ${({theme:e})=>getStyles(e)}
325
+ `,ErrorIcon=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.OctagonAlert)`
326
+ ${({theme:e})=>getStyles(e)}
327
+ `,Message=(0,material_namespaceObject.styled)("span")`
328
+ vertical-align: middle;
329
+ `,FormHelperTextContent=({success:e,error:t,children:a})=>{let r=(0,external_react_namespaceObject.useMemo)(()=>e?(0,jsx_runtime_namespaceObject.jsx)(SuccessIcon,{}):t?(0,jsx_runtime_namespaceObject.jsx)(ErrorIcon,{}):null,[e,t]);return a?(0,jsx_runtime_namespaceObject.jsxs)(FormHelperTextContent_styles_Wrapper,{error:t,success:e,children:[r,(0,jsx_runtime_namespaceObject.jsx)(Message,{children:a})]}):null},FormHelperText=({children:e,success:t,error:a,...r})=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.FormHelperText,{...r,children:(0,jsx_runtime_namespaceObject.jsx)(FormHelperTextContent,{error:a,success:t,children:e})}),TextField=({success:e,error:t,helperText:a,fullWidth:r=!1,startAdornment:n,endAdornment:i,slotProps:o,maxLength:s,trimmed:l=!0,onBlur:c,...p})=>{let u=(0,external_react_namespaceObject.useMemo)(()=>{if(e)return"success"},[e]),m=(0,external_react_namespaceObject.useMemo)(()=>e?(0,jsx_runtime_namespaceObject.jsx)(FormHelperTextContent,{success:!0,children:a}):t?(0,jsx_runtime_namespaceObject.jsx)(FormHelperTextContent,{error:!0,children:a}):a||(0,jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment,{}),[a,e,t]);return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.TextField,{variant:"outlined",fullWidth:r,error:t,color:u,helperText:m,slotProps:{htmlInput:{maxLength:s},input:{startAdornment:n,endAdornment:i},...o},onBlur:e=>{if(l){let t=e.target.value?.trim();p.onChange?.({...e,target:{...e.target,value:t}})}c?.(e)},...p})},DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT=2,DEFAULT_PLACEHOLDER="Начните вводить для поиска",StyledMenuItem=(0,material_namespaceObject.styled)(MenuItem)`
330
+ max-height: ${({theme:e})=>e.spacing(13)};
331
+
332
+ ${({theme:e})=>e.breakpoints.down("sm")} {
333
+ max-height: unset;
334
+ }
335
+ `,checkIsInputEmpty=e=>Array.isArray(e)?0===e.length:!e,Autocomplete_useLogic_useLogic_useLogic=({value:e,isOptionEqualToValue:t,autoHighlight:a=!0,freeSolo:r,options:n,loading:i,isLoadedDataError:o,loadedDataError:s="Ошибка загрузки данных",noOptionsText:l="Нет данных",onInputChange:c})=>{let[p,u]=(0,external_react_namespaceObject.useState)(""),m=checkIsInputEmpty(e),d=p.length>=1,_=n.length>0;return{isValueEmpty:m,isPopperVisible:d||_||i||o,autocompleteProps:{isOptionEqualToValue:(0,external_react_namespaceObject.useCallback)((e,a)=>t?t(e,a):JSON.stringify(e)===JSON.stringify(a),[t]),autoHighlight:!r&&a,noOptionsText:o?s:l,onInputChange:(e,t,a)=>{c?.(e,t,a),i||u(t)}}}},Autocomplete=e=>{let{isValueEmpty:t,isPopperVisible:a,autocompleteProps:r}=Autocomplete_useLogic_useLogic_useLogic(e),{required:n,success:i,error:o,label:s,getOptionLabel:l,helperText:c,inputRef:p,multiple:u,size:m="medium",placeholder:d="Начните вводить для поиска",overflowOption:_,closeText:g="Закрыть",openText:x="Открыть",clearText:j="Очистить",loadingText:h=(0,jsx_runtime_namespaceObject.jsx)(CircularProgress,{color:"primary"}),isLoadedDataError:b,loadedDataError:y,noOptionsText:O,autoHighlight:C,renderInput:f,renderTags:T,renderOption:S,...w}=e,L=(0,external_react_namespaceObject.useCallback)(e=>{let a={...e,inputRef:p,required:n,placeholder:t?d:"",label:s,success:i,error:o,helperText:c,size:m};return f?f(a):(0,jsx_runtime_namespaceObject.jsx)(TextField,{...a})},[t,f,p,n,d,s,i,o,c,m]),v=(0,external_react_namespaceObject.useCallback)((e,t,a,r)=>{if(S)return S(e,t,a,r);let n=!!e["aria-selected"];return(0,external_react_namespaceObject.createElement)(StyledMenuItem,{...e,key:e.id,children:[u&&(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.ListItemIcon,{children:(0,jsx_runtime_namespaceObject.jsx)(Checkbox,{role:"menuitemcheckbox",checked:n})}),(0,jsx_runtime_namespaceObject.jsx)(OverflowTypography,{rowsCount:2,..._,children:e.key})]})},[u,_,S]),I=(0,external_react_namespaceObject.useCallback)((e,t,a)=>T?T(e,t,a):e.map((e,a)=>{let r=l?.(e)||"";return(0,external_react_namespaceObject.createElement)(Tag,{deleteIcon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X,{}),color:"grey",label:r,...t({index:a}),key:r})}),[l,T]),$=(0,external_react_namespaceObject.useCallback)(e=>a?(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Popper,{...e}):null,[a]);return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Autocomplete,{...w,size:m,clearText:j,closeText:g,openText:x,loadingText:h,multiple:u,disableCloseOnSelect:u,clearIcon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X,{}),popupIcon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown,{}),forcePopupIcon:!0,slotProps:{clearIndicator:{disableRipple:!0},popper:{component:$}},getOptionLabel:l,renderInput:L,renderTags:I,renderOption:v,...r})},DEFAULT_MIN_SEARCH_CHARACTERS=0,DEFAULT_DELAY_MS=300,DEFAULT_EMPTY_OPTIONS_TEXT="Продолжайте вводить для поиска",DEFAULT_NO_OPTIONS_TEXT="Нет данных",AsyncAutocomplete_useLogic_useLogic_useLogic=({fetchOptions:e,fetchDelayMs:t=DEFAULT_DELAY_MS,minSymbolsToFetch:a=DEFAULT_MIN_SEARCH_CHARACTERS,defaultValue:r,getOptionLabel:n,noOptionsText:i=DEFAULT_NO_OPTIONS_TEXT,onOpen:o,onInputChange:s})=>{let[l,c]=(0,external_react_namespaceObject.useState)(!1),[p,u]=(0,external_react_namespaceObject.useState)(!0),[m,d]=(0,external_react_namespaceObject.useState)(!0),_=(0,external_react_namespaceObject.useRef)(null),[g,x]=(0,external_react_namespaceObject.useState)([]),j=(0,external_react_namespaceObject.useCallback)((0,material_namespaceObject.debounce)(t=>{_.current?.abort();let a=new AbortController;_.current=a,e(t,a?.signal).then(e=>{x(e),d(0===e.length)}).finally(()=>{c(!1),_.current=null})},t),[e,t,i]);return{handleOpen:e=>{if(p){u(!1);let e=r&&n?n(r):"";(r||0===a)&&(c(!0),j(e))}o?.(e)},handleInputChange:(e,t,r)=>{if(!t||t.length<a)return j&&j.clear(),d(!1),c(!1),x([]);c(!0),p||j(t),s?.(e,t,r)},options:g,isLoadingData:l,emptyOptionsText:m?i:"Продолжайте вводить для поиска"}},AsyncAutocomplete=e=>{let{options:t,isLoadingData:a,handleOpen:r,handleInputChange:n,emptyOptionsText:i}=AsyncAutocomplete_useLogic_useLogic_useLogic(e),{fetchOptions:o,fetchDelayMs:s,minSymbolsToFetch:l,isDisabled:c,isRequired:p,isSuccess:u,isError:m,isLoading:d,isFullWidth:_,onOpen:g,noOptionsText:x,onInputChange:j,...h}=e;return(0,jsx_runtime_namespaceObject.jsx)(Autocomplete,{options:t,disabled:c,fullWidth:_,loading:d||a,onOpen:r,error:m,required:p,success:u,noOptionsText:i,onInputChange:n,...h})},styles_getBgColor=({$customColor:e,theme:t,$variantColor:a})=>{let r={contained:{grey:t.palette.grey[800],primary:t.palette.primary[800],error:t.palette.red[800],success:t.palette.green[800],warning:t.palette.yellow[800],default:t.palette.primary.main},light:{grey:t.palette.grey[300],primary:t.palette.primary[100],error:t.palette.red[100],success:t.palette.green[100],warning:t.palette.yellow[100],default:t.palette.primary.main}};return"white"===e?t.palette.background.default:r[a][e]},getTextColor=({$customColor:e,theme:t,$variantColor:a})=>{let r={grey:t.palette.grey[900],primary:t.palette.primary[900],error:t.palette.red[900],success:t.palette.green[900],warning:t.palette.yellow[900],default:t.palette.primary.contrastText};return"white"===e?t.palette.grey[900]:"contained"===a?t.palette.common.white:r[e||"default"]},StyledBadge=(0,material_namespaceObject.styled)(material_namespaceObject.Badge,{shouldForwardProp:e=>!["$customColor","$withBorder","$variantColor"].includes(e.toString())})`
336
+ .MuiBadge-badge {
337
+ height: 20px;
338
+ padding: ${({theme:e})=>e.spacing(0,1)};
339
+
340
+ font-size: ${({theme:e})=>e.typography.caption.fontSize};
341
+ line-height: 20px;
342
+ color: ${({$customColor:e,theme:t,$variantColor:a})=>getTextColor({$customColor:e,theme:t,$variantColor:a})};
343
+
344
+ background-color: ${({$customColor:e,theme:t,$variantColor:a})=>styles_getBgColor({$customColor:e,theme:t,$variantColor:a})};
345
+ border: ${({$withBorder:e,theme:t})=>e?`2px solid ${t.palette.common.white}`:"none"};
346
+ border-radius: ${({$withBorder:e})=>e?"12px":null};
347
+ }
348
+
349
+ .MuiBadge-dot {
350
+ width: 12px;
351
+ height: 12px;
352
+
353
+ border: 2px solid ${({theme:e})=>e.palette.common.white};
354
+ }
355
+ `,Badge=({children:e,color:t,max:a=99,withBorder:r=!0,variantColor:n="contained",...i})=>(0,jsx_runtime_namespaceObject.jsx)(StyledBadge,{$customColor:t,max:a,$withBorder:r,$variantColor:n,...i,children:e}),FormControl=e=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.FormControl,{...e}),StyledFormControlLabel=(0,material_namespaceObject.styled)(material_namespaceObject.FormControlLabel)`
356
+ margin-right: 0;
357
+ margin-left: -5px;
358
+
359
+ & .MuiFormControlLabel-label {
360
+ margin-left: ${({theme:e})=>e.spacing(1)};
361
+ }
362
+ `,FormControlLabel=e=>(0,jsx_runtime_namespaceObject.jsx)(StyledFormControlLabel,{...e}),StyledFormControlledLabel=(0,material_namespaceObject.styled)(FormControlLabel)`
363
+ align-items: flex-start;
364
+ `,styles_StyledCheckbox=(0,material_namespaceObject.styled)(Checkbox)`
365
+ padding-top: 3px;
366
+ `,CheckboxField=({isSuccess:e,helperText:t,hideHelperText:a=!1,label:r,isError:n,...i})=>{let o=(0,external_react_namespaceObject.useMemo)(()=>!!(n&&a),[n,a]);return(0,jsx_runtime_namespaceObject.jsxs)(FormControl,{children:[(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:o&&t,placement:"bottom-start",withoutContainer:!1,children:(0,jsx_runtime_namespaceObject.jsx)(StyledFormControlledLabel,{control:(0,jsx_runtime_namespaceObject.jsx)(styles_StyledCheckbox,{isError:n,...i}),label:r})}),!a&&(0,jsx_runtime_namespaceObject.jsx)(FormHelperText,{error:n,success:e,children:t})]})},imagesMapDefault={noDataImgSrc:"",defaultErrorImgSrc:"",outdatedReleaseErrorImgSrc:"",mailImgSrc:""},techSupDefault={phone:"",email:""},defaultHidePersonalDataClassname="ym-hide-content",ConfigContext=(0,external_react_namespaceObject.createContext)({language:"ru",captureException:e=>console.error(e),imagesMap:imagesMapDefault,techSup:techSupDefault,emptySymbol:"—",hidePersonalDataClassname:defaultHidePersonalDataClassname,hidePersonalData:!0}),ConfigProvider=({children:e,language:t="ru",captureException:a,emptySymbol:r="—",imagesMap:n=imagesMapDefault,techSup:i=techSupDefault,hidePersonalData:o=!0,hidePersonalDataClassname:s=defaultHidePersonalDataClassname,components:l})=>((0,external_react_namespaceObject.useEffect)(()=>{a||console.warn("ConfigProvider: Необходимо наличие captureException, связанного с сервисом мониторинга ошибок.\nНа данный момент все ошибки, отлавливаемые в ErrorBoundary будут выводиться только в консоль")},[]),(0,jsx_runtime_namespaceObject.jsx)(ConfigContext.Provider,{value:{language:t,captureException:a||(e=>console.error(e)),emptySymbol:r,imagesMap:n,techSup:i,hidePersonalData:o,hidePersonalDataClassname:s,components:l},children:e})),Popover=({children:e,onClose:t,open:a,title:r,...n})=>{let{isMobile:i}=useViewportType();return i?(0,jsx_runtime_namespaceObject.jsx)(BottomDrawer,{title:r,onClose:t,open:a,children:e}):(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Popover,{open:a,onClose:t,...n,children:e})},DEFAULT_ANCHOR_ORIGIN={vertical:"bottom",horizontal:"right"},DEFAULT_TRANSFORM_ORIGIN={vertical:"top",horizontal:"right"},ConfirmAction_styles_Wrapper=(0,material_namespaceObject.styled)("div")`
367
+ max-width: 380px;
368
+ padding: ${({theme:e})=>e.spacing(4)};
369
+ `,styles_StyledTypography=(0,material_namespaceObject.styled)(Typography)`
370
+ margin-bottom: ${({theme:e})=>e.spacing(3)};
371
+ `,styles_Actions=(0,material_namespaceObject.styled)("div")`
372
+ display: flex;
373
+ gap: ${({theme:e})=>e.spacing(3)};
374
+ justify-content: end;
375
+ `,ConfirmAction_useLogic_useLogic_useLogic=({confirmButtonProps:e,onConfirm:t})=>{let{isOpen:a,anchor:r,actions:n}=usePopover(),{isAccented:i}=e||{},o=i?enums_ButtonVariants.Light:enums_ButtonVariants.Contained,s=i?enums_ButtonColors.Error:enums_ButtonColors.Primary;return{actionComponentProps:{onClick:n.open},popoverProps:{open:a,anchorEl:r,onClose:n.close},cancelButtonProps:{onClick:n.close},confirmButtonProps:{variant:o,color:s,onClick:()=>{t(),n.close()}}}},ConfirmAction=e=>{let{actionComponentProps:t,popoverProps:a,cancelButtonProps:r,confirmButtonProps:n}=ConfirmAction_useLogic_useLogic_useLogic(e),{text:i,confirmButtonProps:o,popoverProps:s,actionComponent:l}=e,{text:c="Подтвердить"}=o||{},{anchorOrigin:p=DEFAULT_ANCHOR_ORIGIN,transformOrigin:u=DEFAULT_TRANSFORM_ORIGIN}=s||{};return(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[l(t),(0,jsx_runtime_namespaceObject.jsx)(Popover,{anchorOrigin:p,transformOrigin:u,...a,children:(0,jsx_runtime_namespaceObject.jsxs)(ConfirmAction_styles_Wrapper,{children:[i&&(0,jsx_runtime_namespaceObject.jsx)(styles_StyledTypography,{children:i}),(0,jsx_runtime_namespaceObject.jsxs)(styles_Actions,{children:[(0,jsx_runtime_namespaceObject.jsx)(Button,{variant:"text",...r,children:"Отмена"}),(0,jsx_runtime_namespaceObject.jsx)(Button,{...n,children:c})]})]})})]})},SIZE={Small:"small",Medium:"medium",Large:"large"},IMAGE_WIDTH={[SIZE.Small]:"239px",[SIZE.Medium]:"323px",[SIZE.Large]:"458px"},IMAGE_HEIGHT={[SIZE.Small]:"119px",[SIZE.Medium]:"161px",[SIZE.Large]:"229px"},MAX_INNER_WIDTH={[SIZE.Small]:"384px",[SIZE.Medium]:"400px",[SIZE.Large]:"460px"},TITLE_HEADER_LEVEL={[SIZE.Small]:"h5",[SIZE.Medium]:"h4",[SIZE.Large]:"h3"},Image_styles_Wrapper=(0,material_namespaceObject.styled)("img",{shouldForwardProp:e=>"size"!==e})`
376
+ display: block;
377
+
378
+ width: ${({width:e})=>e||"auto"};
379
+ max-width: 100%;
380
+ height: ${({height:e})=>e||"auto"};
381
+ margin: auto auto
382
+ ${({theme:e,size:t})=>t===SIZE.Small?e.spacing(4):e.spacing(6)};
383
+
384
+ color: ${({theme:e})=>e.palette.grey[900]};
385
+
386
+ object-fit: contain;
387
+
388
+ ${({theme:e})=>e.breakpoints.down("sm")} {
389
+ margin: auto auto ${({theme:e})=>e.spacing(8)};
390
+ }
391
+ `,Image=Image_styles_Wrapper,setDefaultImageStyles=Image_styles_Wrapper.withComponent,shouldForwardProp=e=>"$size"!==e,Placeholder_styles_Wrapper=(0,material_namespaceObject.styled)("div",{shouldForwardProp})`
392
+ display: flex;
393
+ flex-direction: column;
394
+ gap: ${({theme:e,$size:t})=>t===SIZE.Small?e.spacing(4):e.spacing(6)};
395
+ align-items: center;
396
+ justify-content: center;
397
+
398
+ width: 100%;
399
+ height: 100%;
400
+ padding: ${({theme:e})=>e.spacing(4)};
401
+
402
+ background-color: ${({theme:e})=>e.palette.background.paper};
403
+
404
+ ${({theme:e})=>e.breakpoints.down("sm")} {
405
+ display: grid;
406
+ grid-template-columns: 100%;
407
+ grid-template-rows: 1fr max-content;
408
+ gap: ${({theme:e})=>e.spacing(4)};
409
+ }
410
+ `,InnerContainer=(0,material_namespaceObject.styled)("div",{shouldForwardProp})`
411
+ max-width: ${({$size:e})=>MAX_INNER_WIDTH[e]};
412
+ margin: 0 auto;
413
+ `,Title=(0,material_namespaceObject.styled)(Typography,{shouldForwardProp})`
414
+ margin-bottom: ${({theme:e,$size:t})=>t===SIZE.Small?e.spacing(2):e.spacing(4)};
415
+
416
+ text-align: center;
417
+
418
+ ${({theme:e})=>e.breakpoints.down("sm")} {
419
+ margin-bottom: ${({theme:e})=>e.spacing(4)};
420
+
421
+ font-size: ${({theme:e})=>e.typography.pxToRem(20)};
422
+ font-weight: ${({theme:e})=>e.typography.fontWeightMedium};
423
+ color: ${({theme:e})=>e.palette.text.secondary};
424
+ }
425
+ `,Description=(0,material_namespaceObject.styled)(Typography,{shouldForwardProp})`
426
+ display: block;
427
+
428
+ font-size: ${({$size:e,theme:t})=>e===SIZE.Large?t.typography.pxToRem(16):t.typography.body1.fontSize};
429
+ text-align: center;
430
+
431
+ ${({theme:e})=>e.breakpoints.down("sm")} {
432
+ font-size: ${({theme:e})=>e.typography.body1.fontSize};
433
+ color: ${({theme:e})=>e.palette.text.secondary};
434
+ }
435
+ `,Footer=(0,material_namespaceObject.styled)("footer")`
436
+ display: flex;
437
+ flex-wrap: wrap;
438
+ gap: ${({theme:e})=>e.spacing(2)};
439
+ justify-content: center;
440
+
441
+ color: ${({theme:e})=>e.palette.grey[900]};
442
+
443
+ ${({theme:e})=>e.breakpoints.down("sm")} {
444
+ flex-direction: column;
445
+ gap: ${({theme:e})=>e.spacing(3)};
446
+
447
+ margin-top: auto;
448
+ }
449
+ `,Placeholder=({className:e,title:t,imgSrc:a,imgAlt:r,description:n,Actions:i,size:o="small",imgWidth:s,renderImage:l})=>{let c=(0,external_react_namespaceObject.useContext)(ConfigContext),p=c.components?.placeholder?.defaultProps?.renderImage,u=(0,external_react_namespaceObject.useMemo)(()=>l&&setDefaultImageStyles(l)||p&&setDefaultImageStyles(p)||Image,[l,p]);return(0,jsx_runtime_namespaceObject.jsxs)(Placeholder_styles_Wrapper,{$size:o,className:e,children:[(0,jsx_runtime_namespaceObject.jsxs)(InnerContainer,{$size:o,children:[a&&(0,jsx_runtime_namespaceObject.jsx)(u,{src:a,alt:r,width:s||IMAGE_WIDTH[o],height:s?"auto":IMAGE_HEIGHT[o],size:o}),(0,jsx_runtime_namespaceObject.jsx)(Title,{$size:o,variant:TITLE_HEADER_LEVEL[o],children:t}),n&&(0,jsx_runtime_namespaceObject.jsx)(Description,{$size:o,component:"div",variant:"body1",children:n})]}),i&&(0,jsx_runtime_namespaceObject.jsx)(Footer,{children:i})]})},InternalErrorPlaceholder=()=>{let{imagesMap:e,techSup:t}=(0,external_react_namespaceObject.useContext)(ConfigContext);return(0,jsx_runtime_namespaceObject.jsx)(Placeholder,{title:"Произошла непредвиденная ошибка",description:(0,jsx_runtime_namespaceObject.jsxs)("div",{children:[(0,jsx_runtime_namespaceObject.jsx)(Typography,{children:"Пожалуйста, попробуйте обновить страницу или обратитесь в техническую поддержку:"}),(0,jsx_runtime_namespaceObject.jsxs)(Typography,{children:["email\xa0",(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Link,{href:`mailto:${t.email}`,children:t.email}),", телефон\xa0",(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Link,{href:`tel:${t.phone}`,children:t.phone})]})]}),imgAlt:"Непредвиденная ошибка",imgSrc:e.defaultErrorImgSrc,imgWidth:"324px",Actions:(0,jsx_runtime_namespaceObject.jsx)(Button,{onClick:()=>{location.reload()},children:"Обновить страницу"})})},OutdatedReleasePlaceholder=()=>{let{imagesMap:e}=(0,external_react_namespaceObject.useContext)(ConfigContext);return(0,jsx_runtime_namespaceObject.jsx)(Placeholder,{title:"Обновление в сервисе",description:(0,jsx_runtime_namespaceObject.jsx)(Typography,{component:"p",children:"Наши специалисты работают над улучшением качества продукта. Для загрузки обновлений, пожалуйста, обновите страницу."}),imgAlt:"Обновление в сервисе",imgSrc:e.outdatedReleaseErrorImgSrc,imgWidth:"324px",Actions:(0,jsx_runtime_namespaceObject.jsx)(Button,{onClick:()=>{location.reload()},children:"Обновить страницу"})})};var enums_ErrorType=function(e){return e.OutdatedRelease="outdatedRelease",e.Default="default",e}({});let CONDITION_TYPE_ERROR=[{type:enums_ErrorType.OutdatedRelease,condition:e=>"ChunkLoadError"===e.name||e.message.includes("Failed to fetch dynamically imported module")},{type:enums_ErrorType.Default,condition:()=>!0}],PLACEHOLDER_TYPE_ERROR={[enums_ErrorType.OutdatedRelease]:(0,jsx_runtime_namespaceObject.jsx)(OutdatedReleasePlaceholder,{}),[enums_ErrorType.Default]:(0,jsx_runtime_namespaceObject.jsx)(InternalErrorPlaceholder,{})};class ErrorBoundary extends external_react_default().Component{static contextType=ConfigContext;context;state={hasError:!1,typeError:enums_ErrorType.Default};static getDerivedStateFromError(e){return{hasError:!0,typeError:CONDITION_TYPE_ERROR.find(({condition:t})=>t(e))?.type??enums_ErrorType.Default}}componentDidCatch(e){this.context.captureException(e)}render(){return this.state.hasError?PLACEHOLDER_TYPE_ERROR[this.state.typeError]:this.props.children}}let LoadingContainer=(0,material_namespaceObject.styled)("div")`
450
+ display: flex;
451
+ flex-grow: 1;
452
+ align-items: center;
453
+ justify-content: center;
454
+
455
+ width: 100%;
456
+ height: 100%;
457
+ `,ContentState=({isLoading:e,isError:t,isCustom:a,errorState:r,customState:n,children:i,loadingContent:o=(0,jsx_runtime_namespaceObject.jsx)(CircularProgress,{color:"primary"})})=>{let{imagesMap:s}=(0,external_react_namespaceObject.useContext)(ConfigContext);if(e)return(0,jsx_runtime_namespaceObject.jsx)(LoadingContainer,{children:o});if(a&&n)return(0,jsx_runtime_namespaceObject.jsx)(Placeholder,{...n});if(t&&r){let{title:e="Произошла ошибка",imgAlt:t,imgSrc:a=s.defaultErrorImgSrc,errorList:n,onRetry:i,actions:o=(0,jsx_runtime_namespaceObject.jsx)(Button,{onClick:i,children:"Попробовать снова"})}=r,l=n.map(e=>(0,jsx_runtime_namespaceObject.jsx)(Typography,{component:"p",children:e},e));return(0,jsx_runtime_namespaceObject.jsx)(Placeholder,{title:e,description:l,imgAlt:t,imgSrc:a,Actions:o})}return(0,jsx_runtime_namespaceObject.jsx)(ErrorBoundary,{children:i})},CopyTypography_styles_Wrapper=(0,material_namespaceObject.styled)(Typography)`
458
+ cursor: pointer;
459
+
460
+ display: flex;
461
+ align-items: center;
462
+
463
+ &:hover {
464
+ text-decoration: underline;
465
+ }
466
+ `,StyledCopyIcon=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.Copy,{shouldForwardProp:e=>!["$copyPosition"].includes(e.toString())})`
467
+ margin-right: ${({$copyPosition:e,theme:t})=>"left"===e?t.spacing(1):""};
468
+ margin-left: ${({$copyPosition:e,theme:t})=>"right"===e?t.spacing(1):""};
469
+
470
+ /* Задаем размер иконки */
471
+ font-size: 16px;
472
+
473
+ fill: ${({color:e})=>e};
474
+ `;var enums_CopyStatus=function(e){return e.Copied="Скопировано",e.Error="Ошибка копирования",e.CanCopy="Скопировать",e}({});let CopyTypography_useLogic_useLogic_useLogic=({children:e,copyText:t,isShowCopyText:a,copyPosition:r})=>{let[n,i]=(0,external_react_namespaceObject.useState)(enums_CopyStatus.CanCopy);return{handleMouseLeave:()=>{n!==enums_CopyStatus.CanCopy&&setTimeout(()=>{i(enums_CopyStatus.CanCopy)},100)},handleClick:a=>{a.stopPropagation(),navigator.clipboard.writeText(t||("string"==typeof e?e:"")).then(()=>i(enums_CopyStatus.Copied)).catch(()=>i(enums_CopyStatus.Error))},tooltipTitle:a?`${n}: ${t}`:n,isIconOnLeft:"left"===r}},CopyTypography=e=>{let{children:t,copyPosition:a="right",copyText:r,isShowCopyText:n,color:i,...o}=e,s=()=>(0,jsx_runtime_namespaceObject.jsx)(StyledCopyIcon,{$copyPosition:a,color:i}),{handleMouseLeave:l,handleClick:c,tooltipTitle:p,isIconOnLeft:u}=CopyTypography_useLogic_useLogic_useLogic(e);return(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:p,disableInteractive:!0,placement:"bottom",children:(0,jsx_runtime_namespaceObject.jsxs)(CopyTypography_styles_Wrapper,{onMouseLeave:l,onClick:c,component:"div",color:i,...o,children:[u&&s(),t,!u&&s()]})})},DISABLE_ROW_ATTR="data-row-disable",HIDDEN_CHILDREN_ROW_CLASSNAME="astral-ui_datagrid_row_hidden",MIN_ROW_HEIGHT=44,ROOT_ACTION_CELL_WIDTH=32,TREE_LINE_WIDTH=ROOT_ACTION_CELL_WIDTH/2,MIN_DISPLAY_ROWS_BY_DEFAULT=10,EXPANDED_LEVEL_BY_DEFAULT=1,INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT=2,NestedRows=(0,material_namespaceObject.styled)("ul",{shouldForwardProp:e=>!["$level","$isShowConnector"].includes(e.toString())})`
475
+ position: relative;
476
+
477
+ margin: 0;
478
+ padding: 0;
479
+
480
+ list-style: none;
481
+
482
+ &::before {
483
+ content: '';
484
+
485
+ position: absolute;
486
+ z-index: 2;
487
+ top: 0;
488
+ transform: ${({$level:e})=>`translateX(calc(${ROOT_ACTION_CELL_WIDTH}px * ${e} - ${TREE_LINE_WIDTH}px))`};
489
+
490
+ display: ${({$isShowConnector:e})=>e?"block":"none"};
491
+
492
+ width: 0;
493
+ height: 100%;
494
+
495
+ border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
496
+ }
497
+ `,MoreButtonRow=(0,material_namespaceObject.styled)("li",{shouldForwardProp:e=>!["$level","$isShowConnector","$gridColumns"].includes(e.toString())})`
498
+ position: relative;
499
+
500
+ display: grid;
501
+ grid-template-columns: ${({$gridColumns:e})=>e};
502
+
503
+ height: 36px;
504
+ margin-left: ${({$level:e})=>`${e*ROOT_ACTION_CELL_WIDTH}px`};
505
+
506
+ &::before {
507
+ content: '';
508
+
509
+ position: absolute;
510
+ top: 0;
511
+ left: -${TREE_LINE_WIDTH}px;
512
+
513
+ display: ${({$isShowConnector:e})=>e?"block":"none"};
514
+
515
+ width: ${TREE_LINE_WIDTH}px;
516
+ height: 50%;
517
+
518
+ border-bottom: 1px solid ${({theme:e})=>e.palette.grey[400]};
519
+ border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
520
+ border-radius: 0 0 0 ${({theme:e})=>e.shape.small};
521
+ }
522
+ `,MoreButton=(0,material_namespaceObject.styled)(Button,{shouldForwardProp:e=>!["$moreButtonColumnPosition"].includes(e.toString())})`
523
+ grid-column: ${({$moreButtonColumnPosition:e})=>e};
524
+ justify-self: start;
525
+
526
+ margin: ${({theme:e})=>e.spacing(0,2)};
527
+ `,DataGridContext=(0,external_react_namespaceObject.createContext)({checkIsOpened:()=>!1,checkIsMoreOpened:()=>!1,toggleOpenItems:()=>{},toggleOpenMoreItems:()=>{}}),ROW_FLAGS_BY_DEFAULT={isOpenedItems:!0,iOpenedMoreItems:!1},DataGridContextProvider=({children:e})=>{let[t,a]=(0,external_react_namespaceObject.useState)({}),r=e=>!!t[e],n=e=>!!t[e]&&t[e].iOpenedMoreItems;return(0,jsx_runtime_namespaceObject.jsx)(DataGridContext.Provider,{value:{checkIsOpened:r,checkIsMoreOpened:n,toggleOpenItems:e=>a(t=>{if(r(e)){let a={...t};return delete a[e],a}return{...t,[e]:ROW_FLAGS_BY_DEFAULT}}),toggleOpenMoreItems:e=>a(t=>{if(n(e)){let a={...t};return a[e]=ROW_FLAGS_BY_DEFAULT,a}return{...t,[e]:{...ROW_FLAGS_BY_DEFAULT,iOpenedMoreItems:!0}}})},children:e})};var enums_SortStates=function(e){return e.ASC="asc",e.DESC="desc",e}({}),enums_Variant=function(e){return e.Tree="tree",e.Subrows="subrows",e}({});let NestedChildren_useLogic_useLogic_useLogic=({rowId:e,data:t,level:a,variant:r,initialVisibleChildrenCount:n})=>{let{checkIsMoreOpened:i,toggleOpenMoreItems:o}=(0,external_react_namespaceObject.useContext)(DataGridContext),s=Object.is(r,enums_Variant.Tree),l=t?.slice(0,n),c=t?.slice(n),p=i(e);return{isShowAllChildren:p,isShowMoreButton:!!c?.length,isShowConnector:s,initialVisibleChildren:l,otherChildren:c,nextLevel:s?a+1:0,handleToggleShowAllChildren:t=>{t.stopPropagation(),o(e)}}},NestedChildren=(0,external_react_namespaceObject.memo)(e=>{let{isShowAllChildren:t,isShowMoreButton:a,isShowConnector:r,nextLevel:n,initialVisibleChildren:i,otherChildren:o,handleToggleShowAllChildren:s}=NestedChildren_useLogic_useLogic_useLogic(e),{isOpen:l,data:c,keyId:p,level:u,gridColumns:m,moreButtonColumnPosition:d,renderRow:_}=e;return c&&c.length?(0,jsx_runtime_namespaceObject.jsx)(Collapse,{in:l,unmountOnExit:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(NestedRows,{$level:u,$isShowConnector:r,children:[i.map(({children:e,options:t,...a})=>_({key:a[p],row:a,options:t,nestedChildren:e,level:n})),l&&(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(Collapse,{in:t,component:"li",unmountOnExit:!0,children:(0,jsx_runtime_namespaceObject.jsx)(NestedRows,{$level:u,$isShowConnector:r,children:o.map(({children:e,options:t,...a})=>_({key:a[p],row:a,options:t,nestedChildren:e,level:n,className:HIDDEN_CHILDREN_ROW_CLASSNAME}))})}),a&&(0,jsx_runtime_namespaceObject.jsx)(MoreButtonRow,{$level:n,$isShowConnector:r,$gridColumns:m,children:(0,jsx_runtime_namespaceObject.jsx)(MoreButton,{$moreButtonColumnPosition:d,variant:"link",onClick:s,children:t?"Скрыть":"Показать все"})})]})]})}):null}),DEFAULT_JUSTIFY_CONTENT="start",ALIGN_TO_JUSTIFY_CONTENT_MAP={left:"start",center:"center",right:"end"},alignToJustifyContent=e=>e&&ALIGN_TO_JUSTIFY_CONTENT_MAP[e]||"start",Cell_styles_Wrapper=(0,material_namespaceObject.styled)("div",{shouldForwardProp:e=>!["$align","$isDisabled","$hasStartAdornment"].includes(e.toString())})`
528
+ overflow: hidden;
529
+ display: flex;
530
+ align-items: center;
531
+ justify-content: ${({$align:e})=>alignToJustifyContent(e)};
532
+
533
+ min-height: ${MIN_ROW_HEIGHT}px;
534
+ padding: ${({theme:e,$hasStartAdornment:t})=>t?e.spacing(1,2,1,0):e.spacing(1,2)};
535
+
536
+ opacity: ${({$isDisabled:e})=>e?.5:1};
537
+ `,Cell_useLogic_useLogic_useLogic=({row:e,cell:t,emptyCellValue:a,startAdornment:r})=>{let{format:n,field:i}=t,o=e=>!!e||0===e;return{formattedValue:(0,external_react_namespaceObject.useMemo)(()=>n&&o(n(e))?n(e):i&&o(e[i])?e[i]:a,[i,n,e,a]),hasStartAdornment:!!r}},Cell=e=>{let{formattedValue:t,hasStartAdornment:a}=Cell_useLogic_useLogic_useLogic(e),{className:r,startAdornment:n,row:i,cell:o,isDisabled:s}=e,{renderCell:l,align:c="left"}=o;return(0,jsx_runtime_namespaceObject.jsxs)(Cell_styles_Wrapper,{$isDisabled:s,$align:c,$hasStartAdornment:a,className:r,inert:!!s||void 0,children:[n&&n,l?.(i),!l&&(0,jsx_runtime_namespaceObject.jsx)(OverflowTypography,{rowsCount:2,children:t})]})},Row_styles_Wrapper=(0,material_namespaceObject.styled)("li")`
538
+ position: relative;
539
+
540
+ &:not(:last-of-type)::before,
541
+ &.${HIDDEN_CHILDREN_ROW_CLASSNAME}::before {
542
+ content: '';
543
+
544
+ position: absolute;
545
+ z-index: 1;
546
+ top: 0;
547
+ transform: ${({$level:e})=>`translateX(calc(${ROOT_ACTION_CELL_WIDTH}px * ${e} - ${TREE_LINE_WIDTH}px))`};
548
+
549
+ display: ${({$isShowConnector:e})=>e?"block":"none"};
550
+
551
+ width: 0;
552
+ height: 100%;
553
+
554
+ border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
555
+ }
556
+ `,Row_styles_ContentWrapper=(0,material_namespaceObject.styled)("div")`
557
+ position: relative;
558
+
559
+ display: grid;
560
+ grid-template-columns: ${({$gridColumns:e})=>e};
561
+
562
+ background-color: ${({theme:e,$isSelected:t})=>t?e.palette.primary[100]:"transparent"};
563
+
564
+ transition: ${({theme:e})=>e.transitions.create(["background-color"],{duration:e.transitions.duration.short})};
565
+
566
+ &::before {
567
+ content: '';
568
+
569
+ position: absolute;
570
+ top: 0;
571
+ transform: ${({$level:e})=>`translateX(calc(${ROOT_ACTION_CELL_WIDTH}px * ${e} - ${TREE_LINE_WIDTH}px))`};
572
+
573
+ display: ${({$isShowConnector:e})=>e?"block":"none"};
574
+
575
+ width: ${TREE_LINE_WIDTH}px;
576
+ height: 50%;
577
+
578
+ border-bottom: 1px solid ${({theme:e})=>e.palette.grey[400]};
579
+ border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
580
+ border-radius: 0 0 0 ${({theme:e})=>e.shape.small};
581
+ }
582
+
583
+ &:hover {
584
+ cursor: ${({$isHovered:e})=>e?"pointer":"default"};
585
+
586
+ background-color: ${({theme:e,$isHovered:t})=>t?e.palette.background.elementHover:"transparent"};
587
+ }
588
+ `,CellStyled=(0,material_namespaceObject.styled)(Cell)`
589
+ margin-left: ${({$level:e})=>`${e*ROOT_ACTION_CELL_WIDTH}px`};
590
+ `,CheckboxCell=(0,material_namespaceObject.styled)("div")`
591
+ display: flex;
592
+ align-items: center;
593
+ align-self: center;
594
+ justify-content: center;
595
+
596
+ width: ${ROOT_ACTION_CELL_WIDTH}px;
597
+ `,CollapseCell=(0,material_namespaceObject.styled)("div")`
598
+ display: flex;
599
+ align-items: center;
600
+ justify-content: center;
601
+
602
+ width: ${ROOT_ACTION_CELL_WIDTH}px;
603
+ `,CollapseButton=(0,material_namespaceObject.styled)(IconButton)`
604
+ width: 24px;
605
+ height: 24px;
606
+
607
+ color: inherit;
608
+
609
+ &:hover {
610
+ background-color: ${({theme:e})=>e.palette.grey[300]};
611
+ }
612
+ `,styles_ChevronIcon=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.ChevronRight,{shouldForwardProp:e=>"$isActive"!==e})`
613
+ transform: rotateZ(${({$isActive:e})=>90*!!e}deg);
614
+
615
+ transition: ${({theme:e})=>e.transitions.create("transform",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.short})};
616
+ `,RowContext=(0,external_react_namespaceObject.createContext)({isDisabled:!1,addDisabledRow:()=>{},removeDisabledRow:()=>{}}),RowContextProvider=({children:e})=>{let[t,a]=(0,external_react_namespaceObject.useState)(!1),[r,n]=(0,external_react_namespaceObject.useState)();return(0,jsx_runtime_namespaceObject.jsx)(RowContext.Provider,{value:{isDisabled:t,disabledReason:r,addDisabledRow:e=>{a(!0),n(e)},removeDisabledRow:()=>{a(!1),n(void 0)}},children:e})},getColumnsMap=e=>e.reduce((e,{field:t,...a})=>t?{...e,[t]:a}:e,{}),mergeColumnsOptions=(e,t)=>{if(!t)return e;let a=getColumnsMap(t);return Object.keys(a).length?e.map(e=>e.hasOwnProperty("field")?{...e,...a[e.field]||{}}:e):e},Row_useLogic_useLogic_useLogic=({keyId:e,columns:t,row:a,nestedChildren:r,level:n,variant:i,activeRowId:o,options:s,isInitialExpanded:l=!1,expandedLevel:c,isSelectable:p,selectedRows:u,onSelectRow:m,onRowClick:d,isVisibleCollapseButton:_})=>{let g=l&&n<=c-1&&r?.length,{checkIsOpened:x,toggleOpenItems:j}=(0,external_react_namespaceObject.useContext)(DataGridContext),{isDisabled:h,disabledReason:b}=(0,external_react_namespaceObject.useContext)(RowContext),[y,O]=(0,external_react_namespaceObject.useState)(!1),C=a[e],{isDisabled:f,disabledReason:T}=s||{},S=h||f,w=x(C);(0,external_react_namespaceObject.useEffect)(()=>{g&&!w&&j(C)},[]);let L=p&&!!u?.find(t=>t[e]===C),v=Object.is(i,enums_Variant.Tree);return{isOpen:w,isShowConnector:v,childrenColumns:(0,external_react_namespaceObject.useMemo)(()=>mergeColumnsOptions(t,s?.childrenColumns),[t,s]),rowId:C,disabled:S,isRenderCollapseButton:!!r?.length&&_,handleToggle:e=>{e.stopPropagation(),j(C)},rowProps:{$isHovered:!!(!S&&d),$isSelected:o===C,onClick:()=>{!S&&d?.(a)},onMouseMove:e=>{S&&"true"!==e.target.getAttribute(DISABLE_ROW_ATTR)&&O(!1)}},tooltipProps:{open:y,title:S?T||b:void 0,onOpen:e=>{"true"===e.target.getAttribute(DISABLE_ROW_ATTR)&&O(!0)},onClose:()=>O(!1)},checkboxProps:{checked:L,disabled:S,onChange:m(a)},nestedChildrenProps:{isOpen:w,rowId:C}}},checkIsDisabled=(e,t,a)=>!!e&&(!t||!t.includes(a)),Row=e=>{let{isOpen:t,isShowConnector:a,childrenColumns:r,rowId:n,handleToggle:i,checkboxProps:o,rowProps:s,tooltipProps:l,nestedChildrenProps:c,disabled:p,isRenderCollapseButton:u}=Row_useLogic_useLogic_useLogic(e),{className:m,row:d,options:_,variant:g,isSelectable:x,gridColumns:j,isInitialExpanded:h,expandedLevel:b,level:y,nestedChildren:O,initialVisibleChildrenCount:C,moreButtonColumnPosition:f,isVisibleCollapseButton:T,columns:S,emptyCellValue:w,selectedRows:L,activeRowId:v,keyId:I,onSelectRow:$,onRowClick:M,...E}=e,{isDisabledLastCell:D=!0,isNotSelectable:k}=_||{},A=()=>u||x&&!k?(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[u&&(0,jsx_runtime_namespaceObject.jsx)(CollapseCell,{children:(0,jsx_runtime_namespaceObject.jsx)(CollapseButton,{variant:"text",onClick:i,children:(0,jsx_runtime_namespaceObject.jsx)(styles_ChevronIcon,{$isActive:t})})}),x&&!k&&(0,jsx_runtime_namespaceObject.jsx)(CheckboxCell,{inert:!!p||void 0,onClick:e=>e.stopPropagation(),children:(0,jsx_runtime_namespaceObject.jsx)(Checkbox,{...o})})]}):null,B=(0,external_react_namespaceObject.useCallback)(()=>{let e=D?void 0:[S.length-1];return S?.map((t,a)=>{let r=`${n}-${a}`,i=checkIsDisabled(p,e,a),o=!a;return jsx_runtime_namespaceObject.jsx(CellStyled,{$level:o?y:0,row:d,cell:t,emptyCellValue:w,startAdornment:o&&A(),isDisabled:i},r)})},[t,S,p]),P=(0,external_react_namespaceObject.useCallback)(({key:e,...t})=>(0,jsx_runtime_namespaceObject.jsx)(Row,{keyId:I,...t,variant:g,isSelectable:x,selectedRows:L,gridColumns:j,isInitialExpanded:h,expandedLevel:b,initialVisibleChildrenCount:C,moreButtonColumnPosition:f,isVisibleCollapseButton:T,activeRowId:v,columns:r,onSelectRow:$,onRowClick:M},e),[I,g,x,L,j,h,b,C,f,v,r,$,M]);return(0,jsx_runtime_namespaceObject.jsxs)(Row_styles_Wrapper,{$level:y,$isShowConnector:a,$gridColumns:j,className:m,...E,children:[(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{followCursor:!0,arrow:!1,...l,children:(0,jsx_runtime_namespaceObject.jsx)(Row_styles_ContentWrapper,{$level:y,$isShowConnector:a,$gridColumns:j,[DISABLE_ROW_ATTR]:p,...s,children:B()})}),(0,jsx_runtime_namespaceObject.jsx)(NestedChildren,{...c,data:O,keyId:I,level:y,variant:g,gridColumns:j,initialVisibleChildrenCount:C,moreButtonColumnPosition:f,renderRow:P})]})},Body_styles_Wrapper=(0,material_namespaceObject.styled)("ul",{shouldForwardProp:e=>!["$isEmpty","$minDisplayRows"].includes(e.toString())})`
617
+ overflow-y: auto;
618
+
619
+ height: ${({$isEmpty:e,$minDisplayRows:t})=>e?`${MIN_ROW_HEIGHT*t}px`:"100%"};
620
+ margin: 0;
621
+ padding: 0;
622
+
623
+ list-style-type: none;
624
+ `,Body_useLogic_useLogic_useLogic=({isLoading:e,isError:t,rows:a})=>{let r=!a.length;return{isNoData:r,contentStateProps:{isLoading:e&&r,isError:t&&r}}},INITIAL_LEVEL=0,Body_Body=e=>{let{imagesMap:t}=(0,external_react_namespaceObject.useContext)(ConfigContext),{isNoData:a,contentStateProps:r}=Body_useLogic_useLogic_useLogic(e),{rows:n,selectedRows:i=[],isLoading:o,isError:s,errorMsg:l,minDisplayRows:c,keyId:p,noDataPlaceholder:u,onRetry:m,...d}=e,_=(0,external_react_namespaceObject.useMemo)(()=>n.map(({children:e,options:t,...a})=>{let r=a[p];return(0,jsx_runtime_namespaceObject.jsx)(RowContextProvider,{children:(0,jsx_runtime_namespaceObject.jsx)(Row,{row:a,selectedRows:i,options:t,keyId:p,level:0,nestedChildren:e,...d})},r)}),[n,p,i,d]);return(0,jsx_runtime_namespaceObject.jsx)(Body_styles_Wrapper,{$isEmpty:a,$minDisplayRows:c,children:(0,jsx_runtime_namespaceObject.jsx)(ContentState,{...r,errorState:{imgAlt:"Что-то пошло не так",errorList:[l||""],imgSrc:t.defaultErrorImgSrc,onRetry:m},children:n.length?_:u})})},HeadCell_styles_Wrapper=(0,material_namespaceObject.styled)("div",{shouldForwardProp:e=>!["$align","$isSortable","$hasStartAdornment"].includes(e.toString())})`
625
+ cursor: ${({$isSortable:e})=>e?"pointer":"initial"};
626
+ user-select: none;
627
+
628
+ display: flex;
629
+ align-items: center;
630
+ justify-content: ${({$align:e})=>alignToJustifyContent(e)};
631
+
632
+ height: 40px;
633
+ padding: ${({theme:e,$hasStartAdornment:t})=>t?e.spacing(1,2,1,0):e.spacing(1,2)};
634
+
635
+ color: ${({theme:e})=>e.palette.grey[700]};
636
+ `,HeadCell_styles_StyledTypography=(0,material_namespaceObject.styled)(Typography)`
637
+ display: flex;
638
+ align-items: center;
639
+
640
+ > svg {
641
+ width: 16px;
642
+ height: 16px;
643
+ }
644
+ `,HeadCell_useLogic_useLogic_useLogic=({field:e,isSortable:t,startAdornment:a,onSort:r})=>({wrapperProps:{$hasStartAdornment:!!a,onClick:()=>{e&&t&&r(e)}}}),HeadCell=e=>{let{wrapperProps:t}=HeadCell_useLogic_useLogic_useLogic(e),{startAdornment:a,field:r,isSortable:n,align:i,label:o,sorting:s}=e,l=(0,external_react_namespaceObject.useMemo)(()=>{if(!n)return null;if(s?.fieldId!==r)return(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronsUpDown,{});switch(s?.sort){case enums_SortStates.ASC:return(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronUp,{color:"primary"});case enums_SortStates.DESC:return(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown,{color:"primary"});default:return(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronsUpDown,{})}},[s,n,r]);return(0,jsx_runtime_namespaceObject.jsxs)(HeadCell_styles_Wrapper,{$align:i,$isSortable:n,...t,children:[a&&a,(0,jsx_runtime_namespaceObject.jsxs)(HeadCell_styles_StyledTypography,{variant:"pointer",children:[o,l]})]})},Head_styles_Wrapper=(0,material_namespaceObject.styled)("header",{shouldForwardProp:e=>!["$gridColumns"].includes(e.toString())})`
645
+ display: grid;
646
+ grid-template-columns: ${({$gridColumns:e})=>e};
647
+
648
+ border-bottom: 2px solid ${({theme:e})=>e.palette.divider};
649
+ `,styles_CheckboxCell=(0,material_namespaceObject.styled)("div")`
650
+ display: flex;
651
+ align-items: center;
652
+ justify-content: center;
653
+
654
+ width: ${ROOT_ACTION_CELL_WIDTH}px;
655
+ `,Head_useLogic_useLogic_useLogic=({rowsCount:e,sorting:t,uncheckedRowsCount:a,onSort:r})=>{let n=(0,external_react_namespaceObject.useMemo)(()=>!a&&e>0,[a,e]),i=(0,external_react_namespaceObject.useMemo)(()=>a>0&&a<e,[a,e]),o=!e;return{handleSort:(0,external_react_namespaceObject.useCallback)(e=>{if(!r)return;let a=t?.fieldId===e;return a&&t?.sort===enums_SortStates.ASC?r({fieldId:e,sort:enums_SortStates.DESC}):a&&t?.sort===enums_SortStates.DESC?r(void 0):void r({fieldId:e,sort:enums_SortStates.ASC})},[t,r]),checkboxProps:{checked:n,disabled:o,indeterminate:i}}},Head=e=>{let{checkboxProps:t,handleSort:a}=Head_useLogic_useLogic_useLogic(e),{columns:r,gridColumns:n,isSelectable:i,sorting:o,onSelectAllRows:s}=e,l=(0,external_react_namespaceObject.useMemo)(()=>r.map(({field:e,label:r,sortable:n,align:l},c)=>(0,jsx_runtime_namespaceObject.jsx)(HeadCell,{sorting:o,field:e,label:r,isSortable:n,align:l,startAdornment:!c&&i?(0,jsx_runtime_namespaceObject.jsx)(styles_CheckboxCell,{children:(0,jsx_runtime_namespaceObject.jsx)(Checkbox,{...t,onChange:s})}):null,onSort:a},r)),[r,o,i,t,s,a]);return(0,jsx_runtime_namespaceObject.jsx)(Head_styles_Wrapper,{$gridColumns:n,children:l})},Divider=e=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Divider,{...e}),Backdrop=(0,material_namespaceObject.styled)("div")`
656
+ position: absolute;
657
+ top: 0;
658
+
659
+ width: 100%;
660
+ height: 100%;
661
+
662
+ opacity: 0.3;
663
+ background-color: ${({theme:e})=>e.palette.background.element};
664
+ `,StyledDivider=(0,material_namespaceObject.styled)(Divider)`
665
+ border-width: 1px;
666
+ `,LoaderWrapper=(0,material_namespaceObject.styled)("div")`
667
+ height: 2px;
668
+ `,StyledLinearProgress=(0,material_namespaceObject.styled)(material_namespaceObject.LinearProgress)`
669
+ height: 2px;
670
+ `,Loader=({isLoading:e=!1,isDisabled:t=!1,isVisibleDivider:a=!0})=>(0,jsx_runtime_namespaceObject.jsxs)(LoaderWrapper,{children:[(e||t)&&(0,jsx_runtime_namespaceObject.jsx)(Backdrop,{}),e&&(0,jsx_runtime_namespaceObject.jsx)(StyledLinearProgress,{}),!e&&a&&(0,jsx_runtime_namespaceObject.jsx)(StyledDivider,{})]}),NoData=({title:e="Нет\xa0данных",imgAlt:t=e,action:a,size:r="small"})=>{let{imagesMap:{noDataImgSrc:n}}=(0,external_react_namespaceObject.useContext)(ConfigContext);return(0,jsx_runtime_namespaceObject.jsx)(Placeholder,{title:e,imgSrc:n,size:r,Actions:a?(0,jsx_runtime_namespaceObject.jsx)(Button,{onClick:a.onClick,"aria-label":a.text,children:a.text}):void 0,imgAlt:t})},styles_Container=(0,material_namespaceObject.styled)("div",{shouldForwardProp:e=>"$maxHeight"!==e})`
671
+ position: relative;
672
+
673
+ overflow: hidden;
674
+ display: flex;
675
+ flex-direction: column;
676
+
677
+ width: 100%;
678
+ height: 100%;
679
+ max-height: ${({$maxHeight:e})=>e?`${e}px`:"initial"};
680
+ `,DataGridWrapper=(0,material_namespaceObject.styled)("div")`
681
+ overflow: hidden;
682
+ display: flex;
683
+ flex-direction: column;
684
+
685
+ height: 100%;
686
+ `,DisabledDataGridWrapper=(0,material_namespaceObject.styled)(DataGridWrapper)`
687
+ pointer-events: none;
688
+
689
+ background: ${({theme:e})=>e.palette.background.element};
690
+ mix-blend-mode: luminosity;
691
+ `,getGridTemplateColumns=e=>e.map(({width:e})=>e||"1fr").join(" "),DataGrid_useLogic_useLogic_useLogic=({keyId:e,columns:t,rows:a=[],variant:r,tree:n,subrows:i,selectedRows:o=[],isLoading:s,isDisabled:l,onSelectRow:c})=>{let p=!!a?.length,u=!!c,m=s||l,d=Object.is(r,enums_Variant.Subrows)?{...i,isInitialExpanded:!0}:n,_=a.filter(e=>!(e.options?.isDisabled||e.options?.isNotSelectable)),g=(0,external_react_namespaceObject.useRef)([]);(0,external_react_namespaceObject.useEffect)(()=>{s||(g.current=a)},[a,s]);let x=getGridTemplateColumns(t),j=(0,external_react_namespaceObject.useMemo)(()=>_.filter(t=>!o.find(a=>a[e]===t[e])).length,[_,o,e]),h=(0,external_react_namespaceObject.useCallback)(()=>a.length<=1?t.map(e=>({...e,sortable:!1})):t,[t,a]),b=s?g.current:a,y=(0,external_react_namespaceObject.useCallback)(t=>a=>{if(c){if(a.target.checked)return c([...o,t]);c(o.filter(a=>a[e]!==t[e]))}},[o,c,e]);return{isDataGridDisabled:m,treeRenderConfig:d,renderRows:b,headProps:{rowsCount:_.length,uncheckedRowsCount:j,gridColumns:x,isSelectable:u,columns:h(),onSelectAllRows:t=>{if(c){if(t.target.checked)return c((0,external_remeda_namespaceObject.uniqueBy)([...o,..._],(0,external_remeda_namespaceObject.prop)(e)));c(o.filter(t=>!a.find(a=>a[e]===t[e])))}}},bodyProps:{gridColumns:x,isSelectable:u,onSelectRow:y},loaderProps:{isLoading:p&&s,isVisibleDivider:!!a.length,isDisabled:l}}},DataGrid=e=>{let{isDataGridDisabled:t,treeRenderConfig:a,headProps:r,bodyProps:n,loaderProps:i,renderRows:o}=DataGrid_useLogic_useLogic_useLogic(e),{emptySymbol:s}=(0,external_react_namespaceObject.useContext)(ConfigContext),{columns:l,selectedRows:c=[],sorting:p,maxHeight:u,minDisplayRows:m=MIN_DISPLAY_ROWS_BY_DEFAULT,errorMsg:d,variant:_=enums_Variant.Tree,footer:g,noDataPlaceholder:x,isLoading:j,isError:h,subrows:b,keyId:y,activeRowId:O,emptyCellValue:C=s,className:f,onRowClick:T,onSort:S,noDataOptions:w,onRetry:L}=e,{moreButtonColumnPosition:v=1,isVisibleCollapseButton:I=!0}=b||{},{isInitialExpanded:$=!1,expandedLevel:M=EXPANDED_LEVEL_BY_DEFAULT,initialVisibleChildrenCount:E=INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT}=a||{},D=(0,external_react_namespaceObject.useCallback)(()=>j?null:x||(0,jsx_runtime_namespaceObject.jsx)(NoData,{...w}),[x,w,j]);return(0,jsx_runtime_namespaceObject.jsx)(DataGridContextProvider,{children:(0,jsx_runtime_namespaceObject.jsxs)(styles_Container,{$maxHeight:u,className:f,children:[(0,jsx_runtime_namespaceObject.jsxs)(t?DisabledDataGridWrapper:DataGridWrapper,{inert:!!t||void 0,children:[(0,jsx_runtime_namespaceObject.jsx)(Head,{...r,sorting:p,onSort:S}),(0,jsx_runtime_namespaceObject.jsx)(Body_Body,{...n,activeRowId:O,keyId:y,selectedRows:c,minDisplayRows:m,rows:o,columns:l,variant:_,emptyCellValue:C,isInitialExpanded:$,expandedLevel:M,initialVisibleChildrenCount:E,moreButtonColumnPosition:v,isVisibleCollapseButton:I,isLoading:j,isError:h,errorMsg:d,noDataPlaceholder:D(),onRowClick:T,onRetry:L})]}),(0,jsx_runtime_namespaceObject.jsx)(Loader,{...i}),g&&g]})})},MainIconButton_useLogic_useLogic_useLogic=({action:e})=>{let{loading:t,disabledReason:a,name:r}=e,[n,i]=(0,external_react_namespaceObject.useState)(!1);return(0,external_react_namespaceObject.useEffect)(()=>{t&&i(!1)},[t]),{tooltipProps:{title:a||r,open:n,onOpen:()=>i(!0),onClose:()=>i(!1)}}},MainIconButton=e=>{let{tooltipProps:t}=MainIconButton_useLogic_useLogic_useLogic(e),{action:a,onActionClick:r,isDisabled:n,tooltipPlacement:i}=e,{name:o,icon:s,needConfirm:l,confirmText:c,confirmButtonProps:p,disabledReason:u,disabled:m,loading:d,isBlockingOperation:_,loadingNote:g,onClick:x,...j}=a,h=e=>(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{withoutContainer:!m,placement:i,...t,children:(0,jsx_runtime_namespaceObject.jsx)(IconButton,{disabled:n||m,loading:d,...j,variant:"text",...e,children:s})},o);return(0,jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment,{children:l?(0,jsx_runtime_namespaceObject.jsx)(ConfirmAction,{text:c,confirmButtonProps:p,actionComponent:e=>h(e),onConfirm:r(x)}):h({onClick:r(x)})})},MainAction_MainAction=({action:e,onActionClick:t,isDisabled:a,tooltipPlacement:r})=>{if("actions"in e){let{disabled:n,icon:i,name:o,disabledReason:s,actions:l}=e;return(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:s||o,withoutContainer:!n,placement:r,children:(0,jsx_runtime_namespaceObject.jsx)(IconDropdownButton,{icon:i,variant:"text",disabled:a||n,children:l.map(({name:e,onClick:a,...r})=>(0,external_react_namespaceObject.createElement)(MenuItem,{...r,key:e,onClick:t(a)},e))})},o)}return(0,jsx_runtime_namespaceObject.jsx)(MainIconButton,{action:e,onActionClick:t,isDisabled:a,tooltipPlacement:r})},SecondaryAction_SecondaryActions=({actions:e,onActionClick:t,tooltipPlacement:a,isDisabled:r})=>(0,jsx_runtime_namespaceObject.jsx)(IconDropdownButton,{icon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.EllipsisVertical,{}),variant:"text",disabled:r,children:e.map(e=>{let{onClick:r,name:n}=e;return(0,external_react_namespaceObject.createElement)(MenuItem,{...e,key:n,tooltipPlacement:a,onClick:t(r)},n)})}),DataGridActionCell_styles_Wrapper=(0,material_namespaceObject.styled)("div")`
692
+ display: inline-flex;
693
+ align-items: center;
694
+ `,DataGridActionCell_useLogic_useLogic_useLogic=({row:e,actions:t})=>{let{main:a,secondary:r}=t,{addDisabledRow:n,removeDisabledRow:i}=(0,external_react_namespaceObject.useContext)(RowContext),o=[...a,...r||[]].find(e=>e.isBlockingOperation&&e.loading),s=!!o;return(0,external_react_namespaceObject.useEffect)(()=>{if(o)return n(o?.loadingNote);i()},[o]),{isDisabledAction:s,handleActionClick:(0,external_react_namespaceObject.useCallback)(t=>()=>{t?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}},DataGridActionCell_TOOLTIP_PLACEMENT={mainAction:"top",secondaryAction:"left"},DataGridActionCell=e=>{let{isDisabledAction:t,handleWrapperClick:a,handleActionClick:r}=DataGridActionCell_useLogic_useLogic_useLogic(e),{actions:n}=e,{main:i,secondary:o}=n;return(0,jsx_runtime_namespaceObject.jsxs)(DataGridActionCell_styles_Wrapper,{onClick:a,children:[i.map(e=>(0,jsx_runtime_namespaceObject.jsx)(MainAction_MainAction,{action:e,onActionClick:r,isDisabled:t,tooltipPlacement:DataGridActionCell_TOOLTIP_PLACEMENT.mainAction},e.name)),o&&(0,jsx_runtime_namespaceObject.jsx)(SecondaryAction_SecondaryActions,{actions:o,onActionClick:r,tooltipPlacement:DataGridActionCell_TOOLTIP_PLACEMENT.secondaryAction,isDisabled:t})]})},Pagination=({...e})=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Pagination,{shape:"rounded",...e}),styles_StyledTag=(0,material_namespaceObject.styled)(Tag,{shouldForwardProp:e=>"$shrinks"!==e})`
695
+ min-width: ${({$shrinks:e})=>e?"30px":"unset"};
696
+ max-width: 246px;
697
+
698
+ & {
699
+ .MuiBox-root {
700
+ display: inline;
701
+ }
702
+ }
703
+ `,Tag_useLogic_useLogic_useLogic=()=>({onMouseDown:e=>{e.stopPropagation()}}),Tag_Tag=e=>{let{onMouseDown:t}=Tag_useLogic_useLogic_useLogic(),{shrinks:a,isDisabled:r,...n}=e;return(0,jsx_runtime_namespaceObject.jsx)(styles_StyledTag,{$shrinks:a,color:"grey",disabled:r,...n,onMouseDown:t})},TagsList_styles_Wrapper=(0,material_namespaceObject.styled)("div")`
704
+ display: flex;
705
+ column-gap: ${({theme:e})=>e.spacing(1)};
706
+ `,getElementByText=(e,t)=>{if(e.innerHTML===t)return e;for(let a=0;a<e.children.length;a+=1){let r=getElementByText(e.children[a],t);if(r)return r}return null},TagsList_useLogic_useLogic_useLogic=({data:e=[],keyId:t,getOptionLabel:a,onChange:r})=>{let[n,i]=(0,external_react_namespaceObject.useState)(1),o=(0,external_react_namespaceObject.useRef)(!1),s=(0,external_react_namespaceObject.useRef)(null),l=(t,r,n)=>{let i=a(e[0]);document.body.appendChild(t);let o=0,s=0;for(let l=1;l<e.length;l+=1){let c=t.firstChild?.cloneNode(!0),p=a(e[l]),u=getElementByText(c,i);if(!u)throw Error("Could not find text node");u.textContent=p,t.appendChild(c);let m=c.getBoundingClientRect().width+n;if(o+m>r)break;s+=1,o+=m}return document.body.removeChild(t),s},c=()=>{let e=s.current;if(!e)throw Error("Tags container ref is not set");let t=Number.parseInt(window.getComputedStyle(e).columnGap),a=e.firstElementChild?.getBoundingClientRect().width||0,r=e.getBoundingClientRect().width-a,n=e.cloneNode(!0);for(;n.lastElementChild&&n.children.length>1;)n.removeChild(n.lastElementChild);n.style.visibility="hidden",i(1+l(n,r,t))};(0,external_react_namespaceObject.useLayoutEffect)(()=>{"undefined"!=typeof window&&e&&e.length&&(c(),o.current=!0)},[e]),(0,external_react_namespaceObject.useEffect)(()=>{if("undefined"==typeof window||!e||!e.length)return;if(!s.current)throw Error("Tags container ref is not set");let t=new ResizeObserver(()=>{if(o.current){o.current=!1;return}c()});return t.observe(s.current),()=>t.disconnect()},[e]);let p=e?.slice(0,n);return{maxItems:n,visibleOptions:p,tagsContainerRef:s,getTagProps:(i,o)=>{let s=a(i);return{label:s,shrinks:o===n-1&&n<=e.length,onDelete:()=>{let a=e?.filter(e=>"string"==typeof e?e!==i:e[t]!==i[t]);r(a?.length?a:[])}}}}},getKey=(e,t)=>{if("string"==typeof e)return e;let a=e[t];return"number"==typeof a?a.toString():a},TagsList=e=>{let{maxItems:t,tagsContainerRef:a,visibleOptions:r,getTagProps:n}=TagsList_useLogic_useLogic_useLogic(e),{className:i,data:o,keyId:s,isDisabled:l,onClick:c}=e;return(0,jsx_runtime_namespaceObject.jsxs)(TagsList_styles_Wrapper,{className:i,ref:a,children:[r?.map((e,t)=>{let a=n(e,t);return jsx_runtime_namespaceObject.jsx(Tag_Tag,{isDisabled:l,onClick:c,...a},getKey(e,s))}),o&&t<o.length&&(0,jsx_runtime_namespaceObject.jsx)(Tag_Tag,{isDisabled:l,label:`+${o.length-t}`,onClick:c},"more")]})},CLEAR_TEXT="Очистить",ProgressWrapper=(0,material_namespaceObject.styled)("div")`
707
+ display: flex;
708
+ flex-direction: column;
709
+ align-items: center;
710
+
711
+ min-height: 64px;
712
+
713
+ .MuiCircularProgress-root {
714
+ margin-top: ${({theme:e})=>e.spacing(5)};
715
+
716
+ color: ${({theme:e})=>e.palette.grey["900"]};
717
+ }
718
+ `,styles_Placeholder=(0,material_namespaceObject.styled)(MenuItem)`
719
+ display: none;
720
+ `,StyledIconButton=(0,material_namespaceObject.styled)(IconButton)`
721
+ background-color: transparent;
722
+
723
+ &:hover {
724
+ background-color: transparent;
725
+
726
+ svg {
727
+ fill: ${({theme:e})=>e.palette.grey["700"]};
728
+ }
729
+ }
730
+
731
+ ${({theme:e})=>e.breakpoints.down("sm")} {
732
+ width: 32px;
733
+ height: 32px;
734
+ }
735
+ `,StyledCloseFillSm=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.CircleX)`
736
+ width: 16px;
737
+ height: 16px;
738
+
739
+ fill: ${({theme:e})=>e.palette.grey["500"]};
740
+ `,EndAdornmentWrapper=(0,material_namespaceObject.styled)("div")`
741
+ display: flex;
742
+ align-items: center;
743
+
744
+ margin-left: auto;
745
+ `,StyledSelect=(0,material_namespaceObject.styled)(material_namespaceObject.Select)`
746
+ .${material_namespaceObject.selectClasses.select} {
747
+ padding-right: ${({theme:e})=>e.spacing(2)} !important;
748
+ }
749
+ `;function Select_useLogic_useLogic_useLogic({value:e,onChange:t,children:a,open:r,defaultOpen:n,multiple:i,isShowClearButton:o=!0}){let[s,l]=(0,external_react_namespaceObject.useState)(n||r||!1),c=(0,external_react_namespaceObject.useRef)(null),p=o&&!(!e||Array.isArray(e)&&0===e.length||"string"==typeof e&&0===e.length);return{isOpened:s,isNoData:!external_react_namespaceObject.Children.count(a),isShowingClearButton:p,resetButtonRef:c,openSelect:()=>l(!0),closeSelect:()=>l(!1),onClearAll:()=>{t?.call({},{target:{value:i?[]:""}})}}}let ClearButton=({onClick:e,disabled:t,ref:a})=>(0,jsx_runtime_namespaceObject.jsx)(StyledIconButton,{disabled:t,ref:a,onClick:e,variant:"text",title:CLEAR_TEXT,"aria-label":CLEAR_TEXT,children:(0,jsx_runtime_namespaceObject.jsx)(StyledCloseFillSm,{})}),Select=({required:e,getOptionLabel:t=e=>e,placeholder:a,helperText:r,hideHelperText:n=!1,loading:i,success:o,children:s,disabled:l,error:c,label:p,fullWidth:u,onChange:m,isShowClearButton:d,..._})=>{let{isOpened:g,isShowingClearButton:x,isNoData:j,onClearAll:h,openSelect:b,closeSelect:y,resetButtonRef:O}=Select_useLogic_useLogic_useLogic({..._,children:s,onChange:m,isShowClearButton:d});return(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.FormControl,{error:c,fullWidth:u,children:[p&&(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.InputLabel,{htmlFor:"grouped-select",required:e,children:p}),(0,jsx_runtime_namespaceObject.jsxs)(StyledSelect,{..._,open:g,disabled:l,onOpen:b,onClose:y,renderValue:e=>Array.isArray(e)&&e.length?(0,jsx_runtime_namespaceObject.jsx)(TagsList,{data:e,keyId:"value",getOptionLabel:t,onChange:e=>e?m?.({target:{value:e}},void 0):m?.({target:{value:[]}},void 0),onClick:b}):(Array.isArray(e)||"string"==typeof e)&&!e.length?a:t(e),IconComponent:()=>null,displayEmpty:!0,fullWidth:u,onChange:m,endAdornment:(0,jsx_runtime_namespaceObject.jsxs)(EndAdornmentWrapper,{children:[x&&(0,jsx_runtime_namespaceObject.jsx)(ClearButton,{disabled:l,ref:O,onClick:h}),(0,jsx_runtime_namespaceObject.jsx)(StyledIconButton,{variant:"text",disabled:l,onClick:b,children:g?(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronUp,{}):(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown,{})})]}),children:[(0,jsx_runtime_namespaceObject.jsx)(styles_Placeholder,{value:"",children:a}),i&&(0,jsx_runtime_namespaceObject.jsx)(ProgressWrapper,{children:(0,jsx_runtime_namespaceObject.jsx)(CircularProgress,{color:"primary"})}),!i&&s,!i&&j&&(0,jsx_runtime_namespaceObject.jsx)(MenuItem,{disabled:!0,children:"Нет данных"})]}),!n&&(0,jsx_runtime_namespaceObject.jsx)(FormHelperText,{error:c,success:o,children:r})]})},DEFAULT_ROWS_PER_PAGE=20,DEFAULT_ROWS_PER_PAGE_OPTION=[20,50,100],PaginationWrapper=(0,material_namespaceObject.styled)("div")`
750
+ display: flex;
751
+ align-items: center;
752
+ justify-content: space-between;
753
+
754
+ height: 48px;
755
+ padding-top: ${({theme:e})=>e.spacing(4)};
756
+ `,Range=(0,material_namespaceObject.styled)(Typography)`
757
+ color: ${({theme:e})=>e.palette.grey["700"]};
758
+ `,RangeWrapper=(0,material_namespaceObject.styled)("div")`
759
+ display: flex;
760
+ gap: ${({theme:e})=>e.spacing(3)};
761
+ align-items: center;
762
+
763
+ .${material_namespaceObject.formControlClasses.root} {
764
+ flex-direction: unset;
765
+ }
766
+ `,DataGridPagination_useLogic_useLogic_useLogic=({totalCount:e,rowsPerPage:t=DEFAULT_ROWS_PER_PAGE,page:a,onSetCountPerPage:r})=>{let n=(0,external_react_namespaceObject.useRef)(0);(0,external_react_namespaceObject.useEffect)(()=>{e&&(n.current=e)},[e]);let i=e||n.current,o=Math.ceil(i/t),s=(a-1)*t+1,l=()=>{let e=a*t;return e<i?e:i};return{isVisiblePagination:!(!r&&i<=t),pageCount:o,formattedRange:()=>`${s} — ${l()} из ${i} записей`,handleChangeRowsPerPage:e=>{r?.(Number(e.target.value))}}},DataGridPagination=e=>{let{isVisiblePagination:t,pageCount:a,formattedRange:r,handleChangeRowsPerPage:n}=DataGridPagination_useLogic_useLogic_useLogic(e),{page:i,totalCount:o,className:s,rowsPerPage:l=DEFAULT_ROWS_PER_PAGE,rowsPerPageOptions:c=DEFAULT_ROWS_PER_PAGE_OPTION,isForceCounter:p,disabled:u,onSetCountPerPage:m,...d}=e;return(t||p)&&o?(0,jsx_runtime_namespaceObject.jsxs)(PaginationWrapper,{className:s,children:[(0,jsx_runtime_namespaceObject.jsxs)(RangeWrapper,{children:[m&&(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(Typography,{variant:"body1",children:"Строк на странице:"}),(0,jsx_runtime_namespaceObject.jsx)(Select,{size:"small",value:l,disabled:u,isShowClearButton:!1,onChange:n,children:c.map(e=>(0,jsx_runtime_namespaceObject.jsx)(MenuItem,{value:e,children:e},e))})]}),(0,jsx_runtime_namespaceObject.jsx)(Range,{variant:"h6",children:r()})]}),t&&(0,jsx_runtime_namespaceObject.jsx)(Pagination,{disabled:u,count:a,page:i,...d})]}):null},DEFAULT_SEPARATOR=":",DEFAULT_SYMBOL="—",DESCRIPTION_ROOT_CLASSNAME="astral-ui_descriptionRoot",DescriptionContext=(0,external_react_namespaceObject.createContext)({leader:!1,separator:DEFAULT_SEPARATOR,direction:"default"}),DescriptionContextProvider=({children:e,leader:t,separator:a,direction:r})=>(0,jsx_runtime_namespaceObject.jsx)(DescriptionContext.Provider,{value:{leader:t,separator:a,direction:r},children:e}),Name_styles_Wrapper=(0,material_namespaceObject.styled)("dt",{shouldForwardProp:e=>"$leader"!==e})`
767
+ flex-shrink: 0;
768
+
769
+ max-width: ${({$leader:e})=>e?"calc(100% - 36px)":"calc(100% - 12px)"};
770
+ margin-right: ${({theme:e})=>e.spacing(2)};
771
+ `,DashedSeparator=(0,material_namespaceObject.styled)("div")`
772
+ flex: 1;
773
+
774
+ min-width: 12px;
775
+ height: 4px;
776
+ margin-right: ${({theme:e})=>e.spacing(2)};
777
+
778
+ border-bottom: 1px dashed ${({theme:e})=>e.palette.grey[400]};
779
+
780
+ ${({theme:e})=>e.breakpoints.down("sm")} {
781
+ display: none;
782
+ }
783
+ `,Name=({children:e,color:t="textSecondary",...a})=>{let{leader:r,separator:n}=(0,external_react_namespaceObject.useContext)(DescriptionContext);return(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(Name_styles_Wrapper,{$leader:r,children:(0,jsx_runtime_namespaceObject.jsxs)(Typography,{...a,color:t,children:[e,!r&&n]})}),r&&(0,jsx_runtime_namespaceObject.jsx)(DashedSeparator,{})]})},Value_styles_StyledTypography=(0,material_namespaceObject.styled)(Typography,{shouldForwardProp:e=>!["$canCopy","$leader","$direction"].includes(e.toString())})`
784
+ cursor: ${({$canCopy:e})=>e?"pointer":"default"};
785
+
786
+ overflow: hidden;
787
+
788
+ hyphens: auto;
789
+ text-align: ${({$leader:e})=>e?"right":"left"};
790
+ overflow-wrap: break-word;
791
+
792
+ ${({theme:e})=>e.breakpoints.down("sm")} {
793
+ text-align: ${({$direction:e})=>"row"!==e?"left":"right"};
794
+ }
795
+
796
+ &:hover {
797
+ text-decoration: ${({$canCopy:e})=>e?"underline":"none"};
798
+ }
799
+ `,StyledCopyTypography=(0,material_namespaceObject.styled)(CopyTypography,{shouldForwardProp:e=>!["$leader","$direction"].includes(e.toString())})`
800
+ display: unset;
801
+
802
+ hyphens: auto;
803
+ text-align: ${({$leader:e})=>e?"right":"left"};
804
+ overflow-wrap: break-word;
805
+
806
+ ${({theme:e})=>e.breakpoints.down("sm")} {
807
+ text-align: ${({$direction:e})=>"row"!==e?"left":"right"};
808
+ }
809
+
810
+ & > svg {
811
+ margin-bottom: ${({theme:e})=>e.spacing(-1)};
812
+ }
813
+ `,Value_styles_Wrapper=(0,material_namespaceObject.styled)("dd")`
814
+ overflow: hidden;
815
+
816
+ margin: 0;
817
+ `,Value_useLogic_useLogic_useLogic=({canCopy:e,children:t,stub:a})=>{let{emptySymbol:r}=(0,external_react_namespaceObject.useContext)(ConfigContext),{leader:n,direction:i}=(0,external_react_namespaceObject.useContext)(DescriptionContext);return{valueToRender:t||a||r,isDefaultValueRender:!e||!t,leader:n,direction:i}},Value=e=>{let{valueToRender:t,isDefaultValueRender:a,leader:r,direction:n}=Value_useLogic_useLogic_useLogic(e),{copyPosition:i="right",copyText:o,canCopy:s,children:l,stub:c,...p}=e;return a?(0,jsx_runtime_namespaceObject.jsx)(Value_styles_StyledTypography,{$direction:n,component:"dd",$leader:r,...p,children:t}):(0,jsx_runtime_namespaceObject.jsx)(Value_styles_Wrapper,{children:(0,jsx_runtime_namespaceObject.jsx)(StyledCopyTypography,{copyPosition:i,copyText:o,$direction:n,$leader:r,component:"div",...p,children:t})})},Description_styles_Wrapper=(0,material_namespaceObject.styled)("div",{shouldForwardProp:e=>!["$justifyContent","as","$direction"].includes(e.toString())})`
818
+ overflow: hidden;
819
+ display: flex;
820
+ flex-direction: ${({$direction:e})=>"default"===e?"row":e};
821
+ align-items: baseline;
822
+ justify-content: ${({$justifyContent:e})=>e};
823
+
824
+ margin: 0;
825
+
826
+ ${({theme:e})=>e.breakpoints.down("sm")} {
827
+ flex-direction: ${({$direction:e})=>"default"===e?"column":e};
828
+
829
+ .MuiTypography-root {
830
+ font-size: ${({theme:e})=>e.typography.fontSize};
831
+ }
832
+ }
833
+ `,Description_useLogic_useLogic_useLogic=({direction:e="default",separator:t=DEFAULT_SEPARATOR})=>{let{isMobile:a}=useViewportType();return{descriptionContextProviderProps:{separator:"column"===e||a&&"default"===e?"":t},direction:e}},Description_Description=e=>{let{descriptionContextProviderProps:t,direction:a}=Description_useLogic_useLogic_useLogic(e),{justifyContent:r="start",component:n="dl",children:i,leader:o=!1}=e;return(0,jsx_runtime_namespaceObject.jsx)(DescriptionContextProvider,{leader:o,direction:a,...t,children:(0,jsx_runtime_namespaceObject.jsx)(Description_styles_Wrapper,{$justifyContent:r,className:DESCRIPTION_ROOT_CLASSNAME,$direction:a,as:n,children:i})})};Description_Description.Name=Name,Description_Description.Value=Value;let GuidTypography=e=>(0,jsx_runtime_namespaceObject.jsx)(OverflowTypography,{visibleLastSymbolsCount:4,...e}),StyledDescriptionName=(0,material_namespaceObject.styled)(Description_Description.Name,{shouldForwardProp:e=>!["$nameMaxWidth, $direction"].includes(e.toString())})`
834
+ max-width: ${({$nameMaxWidth:e})=>e||"none"};
835
+ margin-bottom: ${({theme:e,$direction:t})=>Object.is(t,"column")?e.spacing(1):0};
836
+
837
+ ${({theme:e})=>e.breakpoints.down("sm")} {
838
+ margin-bottom: ${({theme:e,$direction:t})=>Object.is(t,"row")?0:e.spacing(1)};
839
+ }
840
+ `,DescriptionList_styles_Wrapper=(0,material_namespaceObject.styled)("article",{shouldForwardProp:e=>!["$variant"].includes(e.toString())})`
841
+ display: grid;
842
+ row-gap: ${({theme:e})=>e.spacing(3)};
843
+
844
+ padding: ${({$variant:e,theme:t})=>"contained"===e?t.spacing(4):0};
845
+
846
+ background-color: ${({$variant:e,theme:t})=>"contained"===e?t.palette.background.default:"transparent"};
847
+ border: ${({$variant:e,theme:t})=>"contained"===e?`1px solid ${t.palette.grey[300]}`:"unset"};
848
+ border-radius: ${({theme:e})=>e.shape.small};
849
+ `,ListWrapper=(0,material_namespaceObject.styled)("dl",{shouldForwardProp:e=>!["$direction"].includes(e.toString())})`
850
+ display: grid;
851
+ row-gap: ${({theme:e,$direction:t})=>Object.is(t,"column")?e.spacing(3):e.spacing(1)};
852
+
853
+ margin: 0;
854
+
855
+ ${({theme:e})=>e.breakpoints.down("sm")} {
856
+ row-gap: ${({theme:e})=>e.spacing(3)};
857
+ }
858
+ `,StyledDescriptionValue=(0,material_namespaceObject.styled)(Description_Description.Value,{shouldForwardProp:e=>!["$isCopy"].includes(e.toString())})`
859
+ display: ${({$isCopy:e})=>e&&"flex"};
860
+
861
+ width: ${({$isCopy:e})=>e&&"calc(100% - 20px)"};
862
+ `,getTooltipProps=e=>e?{title:void 0}:void 0,DescriptionList=({items:e,variant:t="default",title:a,direction:r,...n})=>{let i=(0,external_react_namespaceObject.useCallback)((e,t)=>{let{renderValue:a,color:r,canCopy:n,copyPosition:i,variant:o,copyText:s}=t;if(a)return a(e,t);if("tag"===o)return(0,jsx_runtime_namespaceObject.jsx)(Description_Description.Value,{children:(0,jsx_runtime_namespaceObject.jsx)(Tag,{label:e,color:r,variant:"light"})});if("guid"===o){let t=getTooltipProps(n);return(0,jsx_runtime_namespaceObject.jsx)(StyledDescriptionValue,{canCopy:n,$isCopy:n,color:r,copyPosition:i,copyText:s,children:(0,jsx_runtime_namespaceObject.jsx)(GuidTypography,{tooltipProps:t,children:e})})}return(0,jsx_runtime_namespaceObject.jsx)(Description_Description.Value,{canCopy:n,color:r,copyPosition:i,children:e})},[]);return(0,jsx_runtime_namespaceObject.jsxs)(DescriptionList_styles_Wrapper,{$variant:t,children:[a&&("string"==typeof a?(0,jsx_runtime_namespaceObject.jsx)(Typography,{variant:"h6",children:a}):a),(0,jsx_runtime_namespaceObject.jsx)(ListWrapper,{$direction:r,children:e.map(({name:e,value:t,options:a})=>{let{nameMaxWidth:o,...s}=a||{};return(0,jsx_runtime_namespaceObject.jsxs)(Description_Description,{direction:r,...n,component:"div",children:[(0,jsx_runtime_namespaceObject.jsx)(StyledDescriptionName,{$nameMaxWidth:o,$direction:r,children:e}),i(t,s)]},`${e}:${t}`)})})]})},DialogTitle=({children:e,onClose:t,...a})=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.DialogTitle,{...a,children:[e,t&&(0,jsx_runtime_namespaceObject.jsx)(IconButton,{variant:"text",onClick:e=>{t&&t(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X,{})})]}),SIZES={xs:{minWidth:"300px",maxWidth:"399px"},sm:{minWidth:"400px",maxWidth:"499px"},md:{minWidth:"500px",maxWidth:"599px"},lg:{minWidth:"600px",maxWidth:"699px"},xl:{minWidth:"700px",maxWidth:"980px"}},getSize=e=>SIZES[e]||SIZES.md,StyledDialog=(0,material_namespaceObject.styled)(material_namespaceObject.Dialog,{shouldForwardProp:e=>!["$size"].includes(e.toString())})`
863
+ &.${material_namespaceObject.dialogClasses.root} .${material_namespaceObject.backdropClasses.root} {
864
+ background-color: ${({theme:e})=>e.palette.background.modalShadow};
865
+ }
866
+ .${material_namespaceObject.dialogClasses.paper} {
867
+ min-width: ${({$size:e})=>getSize(e).minWidth};
868
+ max-width: ${({$size:e})=>getSize(e).maxWidth};
869
+ }
870
+ `,Dialog=({children:e,title:t,disableBackdropClick:a,onClose:r,size:n="md",...i})=>{let o=r&&((e,t)=>{(!a||"backdropClick"!==t)&&r(e,t)}),{isMobile:s}=useViewportType();return s?(0,jsx_runtime_namespaceObject.jsx)(BottomDrawer,{onClose:o,title:t,children:e}):(0,jsx_runtime_namespaceObject.jsxs)(StyledDialog,{$size:n,onClose:o,...i,children:[t&&(0,jsx_runtime_namespaceObject.jsx)(DialogTitle,{onClose:r,children:t}),e]})},StyledDialogActions=(0,material_namespaceObject.styled)(material_namespaceObject.DialogActions)`
871
+ padding-top: 0;
872
+
873
+ ${({theme:e})=>e.breakpoints.down("sm")} {
874
+ padding: ${({theme:e})=>e.spacing(4)};
875
+ }
876
+ `,StyledGrid=(0,material_namespaceObject.styled)(Container)`
877
+ ${({theme:e})=>e.breakpoints.up("sm")} {
878
+ flex-direction: column;
879
+ justify-content: end;
880
+ }
881
+ `,DialogActions=({children:e,disableSpacing:t,...a})=>(0,jsx_runtime_namespaceObject.jsx)(StyledDialogActions,{...a,children:(0,jsx_runtime_namespaceObject.jsx)(StyledGrid,{gap:2*!t,children:e})}),StyledDialogContent=(0,material_namespaceObject.styled)(material_namespaceObject.DialogContent)`
882
+ padding-bottom: ${({theme:e})=>e.spacing(6)};
883
+
884
+ ${({theme:e})=>e.breakpoints.down("sm")} {
885
+ padding: ${({theme:e})=>e.spacing(5,4)};
886
+ }
887
+ `,DialogContent=e=>(0,jsx_runtime_namespaceObject.jsx)(StyledDialogContent,{...e}),StyledDialogContentText=(0,material_namespaceObject.styled)(material_namespaceObject.DialogContentText)`
888
+ color: ${({theme:e})=>e.palette.grey[900]};
889
+ `,DialogContentText=e=>(0,jsx_runtime_namespaceObject.jsx)(StyledDialogContentText,{...e}),DialogHeader_styles_Wrapper=(0,material_namespaceObject.styled)("div",{label:"DialogHeader-root",shouldForwardProp:e=>!["hasTitle","hasOnClose"].includes(e.toString())})`
890
+ overflow: hidden;
891
+ display: grid;
892
+ grid-template-columns: ${({hasTitle:e,hasOnClose:t})=>e&&t?"max-content 1fr 32px":e?"max-content 1fr":t?"1fr 32px":"1fr"};
893
+ column-gap: ${({theme:e})=>e.spacing(2)};
894
+ align-items: center;
895
+
896
+ height: auto;
897
+ padding: ${({theme:e})=>e.spacing(4,6)};
898
+ `,HeaderContent=(0,material_namespaceObject.styled)("div",{shouldForwardProp:e=>!["justifyContent","columnSpacing"].includes(e.toString()),label:"DialogHeader-content"})`
899
+ overflow: hidden;
900
+ display: flex;
901
+ column-gap: ${({columnSpacing:e,theme:t})=>t.spacing(e)};
902
+ align-items: center;
903
+ justify-content: ${({justifyContent:e})=>e};
904
+
905
+ width: 100%;
906
+ height: 100%;
907
+ padding: 0;
908
+ `,DialogHeader=({children:e,title:t,justifyContent:a="flex-start",disableSpacing:r,onClose:n})=>(0,jsx_runtime_namespaceObject.jsxs)(DialogHeader_styles_Wrapper,{hasTitle:!!t,hasOnClose:!!n,children:[t&&(0,jsx_runtime_namespaceObject.jsx)(Typography,{variant:"h4",children:t}),(0,jsx_runtime_namespaceObject.jsx)(HeaderContent,{justifyContent:a,columnSpacing:2*!r,children:e}),n&&(0,jsx_runtime_namespaceObject.jsx)(IconButton,{variant:"text",onClick:e=>{n&&n(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X,{})})]}),StyledLink=(0,material_namespaceObject.styled)(material_namespaceObject.Link)`
909
+ display: inline-flex;
910
+ gap: ${({theme:e})=>e.spacing(1)};
911
+ align-items: baseline;
912
+ justify-content: flex-start;
913
+
914
+ font-size: ${({theme:e})=>e.typography.fontSize}px;
915
+ color: ${({theme:e})=>e.palette.components.link.main};
916
+ text-decoration: none;
917
+
918
+ &:active {
919
+ color: ${({theme:e})=>e.palette.components.link.active};
920
+ }
921
+
922
+ &:visited {
923
+ color: ${({theme:e})=>e.palette.components.link.visited};
924
+ }
925
+
926
+ &:hover {
927
+ color: ${({theme:e})=>e.palette.components.link.hover};
928
+ text-decoration: underline;
929
+ }
930
+
931
+ &:focus {
932
+ border-radius: 4px;
933
+ outline: 2px solid ${({theme:e})=>e.palette.primary[400]};
934
+ }
935
+
936
+ .${material_namespaceObject.svgIconClasses.root} {
937
+ align-self: center;
938
+
939
+ width: 16px;
940
+ height: 16px;
941
+ }
942
+ `,Link=(0,external_react_namespaceObject.forwardRef)(({withAdornment:e,isDownload:t,children:a,...r},n)=>{let i=t?(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ArrowDownToLine,{}):(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.SquareArrowOutUpRight,{});return(0,jsx_runtime_namespaceObject.jsxs)(StyledLink,{download:t,ref:n,...r,children:["start"===e&&i,a,"end"===e&&i,!e&&t&&(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ArrowDownToLine,{})]})}),List_namespaceObject=require("@mui/material/List");var List_default=__webpack_require__.n(List_namespaceObject);let List=e=>(0,jsx_runtime_namespaceObject.jsx)(List_default(),{...e}),ListItem=e=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.ListItem,{...e}),ListItemButton=e=>{let{disabledReason:t,disabled:a,tooltipPlacement:r,note:n,withoutContainer:i=!1,...o}=e,s=()=>(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:a?t:n,placement:r,withoutContainer:!a,children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.ListItemButton,{disabled:a,component:"div",...o,disableRipple:!0})});return i?s():(0,jsx_runtime_namespaceObject.jsx)("li",{children:s()})},StyledListItemIcon=(0,material_namespaceObject.styled)(material_namespaceObject.ListItemIcon)`
943
+ color: inherit;
944
+ `,ListItemIcon=(0,external_react_namespaceObject.forwardRef)((e,t)=>(0,jsx_runtime_namespaceObject.jsx)(StyledListItemIcon,{ref:t,...e})),ListItemText_namespaceObject=require("@mui/material/ListItemText");var ListItemText_default=__webpack_require__.n(ListItemText_namespaceObject);let ListItemText=e=>(0,jsx_runtime_namespaceObject.jsx)(ListItemText_default(),{...e}),ListSubheader=e=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.ListSubheader,{...e}),StyledListItemButton=(0,material_namespaceObject.styled)(ListItemButton,{shouldForwardProp:e=>!["$isGroupTitleItem"].includes(e.toString())})`
945
+ box-sizing: border-box;
946
+ min-height: 40px;
947
+ padding: ${({theme:e})=>e.spacing(2)};
948
+
949
+ border-radius: ${({theme:e})=>e.shape.small};
950
+
951
+ ${material_namespaceObject.listItemIconClasses.root} {
952
+ color: ${({theme:e,selected:t})=>t?e.palette.primary["800"]:"inherit"};
953
+
954
+ transition: ${({theme:e})=>e.transitions.create("color",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})};
955
+ }
956
+
957
+ &:focus-visible {
958
+ position: relative;
959
+
960
+ color: ${({theme:e})=>e.palette.primary[900]};
961
+
962
+ background-color: unset;
963
+
964
+ &::before {
965
+ content: '';
966
+
967
+ position: absolute;
968
+ z-index: 1;
969
+ inset: 0;
970
+
971
+ border: 2px solid ${({theme:e})=>e.palette.primary[400]};
972
+ border-radius: ${({theme:e})=>e.shape.small};
973
+ }
974
+ }
975
+
976
+ &.Mui-selected {
977
+ color: ${({theme:e})=>e.palette.grey[900]};
978
+
979
+ background-color: ${({theme:e,$isGroupTitleItem:t})=>t?"inherit":e.palette.primary[100]};
980
+
981
+ &::before {
982
+ content: '';
983
+
984
+ position: absolute;
985
+ inset: 0;
986
+
987
+ width: 10px;
988
+
989
+ border-left: 3px solid ${({theme:e})=>e.palette.primary[800]};
990
+ border-radius: ${({theme:e})=>e.shape.small};
991
+ }
992
+
993
+ &:hover {
994
+ color: ${({theme:e})=>e.palette.grey[900]};
995
+
996
+ background-color: ${({theme:e,$isGroupTitleItem:t})=>t?"inherit":e.palette.primary[100]};
997
+ }
998
+ }
999
+
1000
+ &:hover {
1001
+ color: ${({theme:e})=>e.palette.primary["800"]};
1002
+
1003
+ background-color: inherit;
1004
+
1005
+ ${material_namespaceObject.listItemIconClasses.root} {
1006
+ color: ${({theme:e})=>e.palette.primary["800"]};
1007
+ }
1008
+ }
1009
+
1010
+ &:active {
1011
+ color: ${({theme:e})=>e.palette.primary["900"]};
1012
+
1013
+ ${material_namespaceObject.listItemIconClasses.root} {
1014
+ color: ${({theme:e})=>e.palette.primary["900"]};
1015
+ }
1016
+ }
1017
+
1018
+ ${({theme:e})=>e.breakpoints.down("sm")} {
1019
+ min-height: 40px;
1020
+ margin-top: ${({theme:e,$isGroupTitleItem:t})=>t?e.spacing(4):0};
1021
+ padding: ${({theme:e,$isGroupTitleItem:t})=>t?e.spacing(0,5):e.spacing(3,5)};
1022
+
1023
+ border-radius: 0;
1024
+
1025
+ &.Mui-selected {
1026
+ &::before {
1027
+ border-radius: 0;
1028
+ }
1029
+ }
1030
+ }
1031
+ `,NavMenuItemButtonIcon=(0,material_namespaceObject.styled)(ListItemIcon)`
1032
+ min-width: unset;
1033
+ `,NavMenuItemButtonText=(0,material_namespaceObject.styled)(OverflowTypography)`
1034
+ width: 'auto';
1035
+ margin-left: ${({theme:e})=>e.spacing(3)};
1036
+
1037
+ ${({theme:e})=>e.breakpoints.down("sm")} {
1038
+ width: auto;
1039
+ margin-left: 0;
1040
+ }
1041
+ `,NavMenuItemButtonChevron=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.ChevronDown,{shouldForwardProp:e=>"collapsedIn"!==e&&"opened"!==e})`
1042
+ transform: ${({opened:e})=>e?"rotateZ(180deg)":"rotateZ(0deg)"};
1043
+
1044
+ width: ${({collapsedIn:e})=>e?"1em":"0px"};
1045
+ margin-left: auto;
1046
+
1047
+ transition: ${({theme:e})=>e.transitions.create("transform",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})};
1048
+ `,ItemButton=e=>{let{collapsedIn:t,opened:a,text:r,icon:n,component:i="a",...o}=e,{isMobile:s}=useViewportType(),l="boolean"==typeof a;return(0,jsx_runtime_namespaceObject.jsxs)(StyledListItemButton,{$isGroupTitleItem:l,component:i,withoutContainer:!0,...o,children:[s?(0,jsx_runtime_namespaceObject.jsx)(NavMenuItemButtonText,{tooltipProps:{placement:"right"},rowsCount:1,children:r}):(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{arrow:!0,title:!t&&r,placement:"right",children:(0,jsx_runtime_namespaceObject.jsx)(NavMenuItemButtonIcon,{children:n})}),(0,jsx_runtime_namespaceObject.jsx)(Collapse,{orientation:"horizontal",in:t,children:(0,jsx_runtime_namespaceObject.jsx)(NavMenuItemButtonText,{tooltipProps:{placement:"right"},rowsCount:1,children:r})})]}),l&&(0,jsx_runtime_namespaceObject.jsx)(NavMenuItemButtonChevron,{collapsedIn:t,opened:a})]})},List_List=e=>{let{collapsedIn:t,items:a}=e;return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.List,{disablePadding:!0,children:a.map(e=>{let[a,r]=e;return(0,jsx_runtime_namespaceObject.jsx)("li",{children:(0,jsx_runtime_namespaceObject.jsx)(ItemButton,{collapsedIn:t,selected:r.active,text:r.text,icon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Dot,{}),component:r.component})},a)})})},Item=e=>{let{collapsedIn:t,item:[,a]}=e,{active:r,icon:n,items:i,text:o,component:s,...l}=a,[c,p]=(0,external_react_namespaceObject.useState)(i?.some(([,{active:e}])=>e)),u=(0,external_react_namespaceObject.useMemo)(()=>!c&&r,[c,r]),m=(0,external_react_namespaceObject.useCallback)(()=>{p(e=>{if("boolean"==typeof e)return!e})},[]);return(0,jsx_runtime_namespaceObject.jsxs)("li",{children:[(0,jsx_runtime_namespaceObject.jsx)(ItemButton,{opened:c,collapsedIn:t,selected:u,text:o,icon:n,component:s,...l,onClick:m}),i&&(0,jsx_runtime_namespaceObject.jsx)(Collapse,{in:c,children:(0,jsx_runtime_namespaceObject.jsx)(List_List,{collapsedIn:t,items:i})})]})},NavMenu=e=>{let{collapsedIn:t=!0,items:a}=e;return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.List,{disablePadding:!0,children:a.map(e=>(0,jsx_runtime_namespaceObject.jsx)(Item,{collapsedIn:t,item:e},e[0]))})},Paper=e=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Paper,{...e}),StyledSearchIcon=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.Search)`
1049
+ color: ${({theme:e})=>e.palette.grey[600]};
1050
+ `,styles_StyledIconButton=(0,material_namespaceObject.styled)(IconButton,{shouldForwardProp:e=>!["$isActive"].includes(e.toString())})`
1051
+ opacity: ${({$isActive:e})=>+!!e};
1052
+
1053
+ &:hover {
1054
+ background-color: transparent;
1055
+
1056
+ svg {
1057
+ fill: ${({theme:e})=>e.palette.grey["700"]};
1058
+ }
1059
+ }
1060
+ `,StyledTextField=(0,material_namespaceObject.styled)(TextField)`
1061
+ & .MuiFormHelperText-root {
1062
+ /* TODO Убрать после реализации https://track.astral.ru/soft/browse/UIKIT-1333 */
1063
+ display: none;
1064
+ }
1065
+ `,styles_StyledCloseFillSm=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.CircleX)`
1066
+ width: 16px;
1067
+ height: 16px;
1068
+
1069
+ fill: ${({theme:e})=>e.palette.grey["500"]};
1070
+ `,SearchField=(0,external_react_namespaceObject.forwardRef)(({margin:e="none",placeholder:t="Поиск",onChange:a,disabled:r,value:n,defaultValue:i,...o},s)=>{let[l,c]=(0,external_react_namespaceObject.useState)(`${i||n||""}`),p=(0,external_react_namespaceObject.useRef)(null),u=!!l.length;return(0,jsx_runtime_namespaceObject.jsx)(StyledTextField,{margin:e,placeholder:t,startAdornment:(0,jsx_runtime_namespaceObject.jsx)(StyledSearchIcon,{onClick:()=>{p.current?.focus()}}),disabled:r,endAdornment:(0,jsx_runtime_namespaceObject.jsx)(styles_StyledIconButton,{variant:"text",onClick:()=>{c(""),p.current&&(p.current.value="");let e=new InputEvent("input",{bubbles:!0,cancelable:!0});Object.defineProperty(e,"target",{writable:!0,value:p.current}),a?.(e),p.current?.focus()},disabled:r||!u,$isActive:u,children:(0,jsx_runtime_namespaceObject.jsx)(styles_StyledCloseFillSm,{})}),onChange:e=>{c(e.target.value),a?.(e)},value:l,ref:s,inputRef:p,...o})}),styles_StyledBadge=(0,material_namespaceObject.styled)(Badge)`
1071
+ vertical-align: text-top;
1072
+
1073
+ & span.MuiBadge-badge {
1074
+ position: static;
1075
+ transform: none;
1076
+
1077
+ box-sizing: content-box;
1078
+ height: 16px;
1079
+ }
1080
+ `,getCheckableTagBadgeBgColor=({disabled:e,checked:t,checkedColor:a,color:r})=>e?"grey":t?a||"white":r,TagBadge=({color:e="primary",checked:t,disabled:a,checkedColor:r,...n})=>(0,jsx_runtime_namespaceObject.jsx)(styles_StyledBadge,{withBorder:!1,color:getCheckableTagBadgeBgColor({disabled:a,checked:t,checkedColor:r,color:e}),...n});var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});