@max-ts/components 0.0.2 → 0.1.0

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 (214) hide show
  1. package/.storybook/main.ts +14 -14
  2. package/.turbo/turbo-build.log +13 -495
  3. package/.turbo/turbo-type$colon$check.log +1 -756
  4. package/CHANGELOG.md +6 -0
  5. package/dist/components/Autocomplete/styles.d.ts +1 -1
  6. package/dist/components/Button/Button.d.ts +4 -4
  7. package/dist/components/Button/useLogic/useLogic.d.ts +1 -1
  8. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +37 -0
  9. package/dist/components/ConfirmDialog/index.d.ts +1 -0
  10. package/dist/components/ConfirmDialog/styles.d.ts +9 -0
  11. package/dist/components/ConfirmDialog/useLogic/index.d.ts +1 -0
  12. package/dist/components/ConfirmDialog/useLogic/useLogic.d.ts +10 -0
  13. package/dist/components/DataGrid/Row/NestedChildren/styles.d.ts +1 -1
  14. package/dist/components/DataGrid/Row/styles.d.ts +1 -1
  15. package/dist/components/DropdownButton/DropdownButton.d.ts +9 -0
  16. package/dist/components/DropdownButton/index.d.ts +1 -0
  17. package/dist/components/Filename/Filename.d.ts +21 -0
  18. package/dist/components/Filename/index.d.ts +1 -0
  19. package/dist/components/Filename/styles.d.ts +17 -0
  20. package/dist/components/Filename/useLogic/index.d.ts +1 -0
  21. package/dist/components/Filename/useLogic/useLogic.d.ts +16 -0
  22. package/dist/components/Filename/useLogic/utils/findExtension/constants.d.ts +1 -0
  23. package/dist/components/Filename/useLogic/utils/findExtension/findExtension.d.ts +1 -0
  24. package/dist/components/Filename/useLogic/utils/findExtension/index.d.ts +1 -0
  25. package/dist/components/Filename/useLogic/utils/index.d.ts +1 -0
  26. package/dist/components/Filename/useLogic/utils/truncateString/constants.d.ts +1 -0
  27. package/dist/components/Filename/useLogic/utils/truncateString/index.d.ts +1 -0
  28. package/dist/components/Filename/useLogic/utils/truncateString/truncateString.d.ts +4 -0
  29. package/dist/components/FormLabel/FormLabel.d.ts +4 -0
  30. package/dist/components/FormLabel/index.d.ts +1 -0
  31. package/dist/components/FormLabel/styles.d.ts +1 -0
  32. package/dist/components/IconButton/IconButton.d.ts +2 -2
  33. package/dist/components/IconButton/styles.d.ts +2 -2
  34. package/dist/components/ListItemButton/ListItemButton.d.ts +2 -2
  35. package/dist/components/MenuItem/MenuItem.d.ts +1 -1
  36. package/dist/components/MenuList/types.d.ts +2 -2
  37. package/dist/components/NavMenu/Item/ItemButton/ItemButton.d.ts +1 -1
  38. package/dist/components/NavMenu/Item/ItemButton/styles.d.ts +1 -1
  39. package/dist/components/ProgressBar/ProgressBar.d.ts +12 -0
  40. package/dist/components/ProgressBar/index.d.ts +1 -0
  41. package/dist/components/Radio/Icon/Icon.d.ts +6 -0
  42. package/dist/components/Radio/Icon/index.d.ts +1 -0
  43. package/dist/components/Radio/Radio.d.ts +9 -0
  44. package/dist/components/Radio/constants.d.ts +8 -0
  45. package/dist/components/Radio/index.d.ts +1 -0
  46. package/dist/components/Radio/styles.d.ts +5 -0
  47. package/dist/components/RadioField/RadioField.d.ts +25 -0
  48. package/dist/components/RadioField/index.d.ts +1 -0
  49. package/dist/components/RadioField/styles.d.ts +2 -0
  50. package/dist/components/RadioGroup/RadioGroup.d.ts +30 -0
  51. package/dist/components/RadioGroup/RadioGroupContext/RadioGroupContext.d.ts +4 -0
  52. package/dist/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.d.ts +6 -0
  53. package/dist/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/index.d.ts +1 -0
  54. package/dist/components/RadioGroup/RadioGroupContext/index.d.ts +2 -0
  55. package/dist/components/RadioGroup/index.d.ts +2 -0
  56. package/dist/components/RadioGroupField/RadioGroupField.d.ts +8 -0
  57. package/dist/components/RadioGroupField/index.d.ts +1 -0
  58. package/dist/components/SearchField/styles.d.ts +1 -1
  59. package/dist/components/Select/styles.d.ts +2 -2
  60. package/dist/components/Skeleton/Skeleton.d.ts +14 -0
  61. package/dist/components/Skeleton/index.d.ts +1 -0
  62. package/dist/components/Skeleton/styles.d.ts +1 -0
  63. package/dist/components/Switch/Switch.d.ts +4 -0
  64. package/dist/components/Switch/index.d.ts +1 -0
  65. package/dist/components/Switch/styles.d.ts +1 -0
  66. package/dist/components/Tab/Tab.d.ts +7 -0
  67. package/dist/components/Tab/index.d.ts +1 -0
  68. package/dist/components/Tab/styles.d.ts +1 -0
  69. package/dist/components/Tabs/Tabs.d.ts +13 -0
  70. package/dist/components/Tabs/index.d.ts +1 -0
  71. package/dist/components/Tabs/styles.d.ts +2 -0
  72. package/dist/components/TextArea/TextArea.d.ts +3 -0
  73. package/dist/components/TextArea/index.d.ts +1 -0
  74. package/dist/hooks/index.d.ts +1 -0
  75. package/dist/hooks/useToggle/index.d.ts +1 -0
  76. package/dist/hooks/useToggle/useToggle.d.ts +43 -0
  77. package/dist/index.js +2 -2
  78. package/dist/index.mjs +150 -150
  79. package/package.json +1 -1
  80. package/rslib.config.ts +26 -26
  81. package/src/components/Accordion/Accordion.stories.tsx +2 -0
  82. package/src/components/ActionCell/ActionCell.stories.tsx +1 -0
  83. package/src/components/ActionCell/MainAction/MainAction.tsx +1 -0
  84. package/src/components/AsyncAutocomplete/AsyncAutocomplete.stories.tsx +1 -0
  85. package/src/components/Autocomplete/Autocomplete.stories.tsx +1 -0
  86. package/src/components/Badge/Badge.stories.tsx +1 -0
  87. package/src/components/BottomDrawer/BottomDrawer.stories.tsx +2 -1
  88. package/src/components/Button/Button.stories.tsx +2 -1
  89. package/src/components/Button/Button.tsx +9 -10
  90. package/src/components/Button/useLogic/useLogic.ts +2 -5
  91. package/src/components/Checkbox/Checkbox.stories.tsx +1 -3
  92. package/src/components/CheckboxField/CheckboxField.stories.tsx +1 -0
  93. package/src/components/Chevron/Chevron.stories.tsx +1 -0
  94. package/src/components/CircularProgress/CircularProgress.stories.tsx +1 -0
  95. package/src/components/Collapse/Collapse.stories.tsx +1 -0
  96. package/src/components/ConfirmAction/ConfirmAction.stories.tsx +1 -3
  97. package/src/components/ConfirmDialog/ConfirmDialog.stories.tsx +69 -0
  98. package/src/components/ConfirmDialog/ConfirmDialog.tsx +83 -0
  99. package/src/components/ConfirmDialog/index.ts +1 -0
  100. package/src/components/ConfirmDialog/styles.ts +8 -0
  101. package/src/components/ConfirmDialog/useLogic/index.ts +1 -0
  102. package/src/components/ConfirmDialog/useLogic/useLogic.ts +23 -0
  103. package/src/components/ContentState/ContentState.stories.tsx +1 -0
  104. package/src/components/CopyTypography/CopyTypography.stories.tsx +1 -2
  105. package/src/components/DataGrid/DataGrid.stories.tsx +1 -0
  106. package/src/components/DataGridActionCell/DataGridActionCell.stories.tsx +1 -0
  107. package/src/components/DataGridPagination/DataGridPagination.stories.tsx +1 -0
  108. package/src/components/Description/Description.stories.tsx +1 -0
  109. package/src/components/DescriptionList/DescriptionList.stories.tsx +1 -0
  110. package/src/components/Dialog/Dialog.stories.tsx +1 -0
  111. package/src/components/DialogActions/DialogActions.stories.tsx +1 -3
  112. package/src/components/DialogContent/DialogContent.stories.tsx +1 -3
  113. package/src/components/DialogContentText/DialogContentText.stories.tsx +1 -0
  114. package/src/components/DialogHeader/DialogHeader.stories.tsx +1 -0
  115. package/src/components/Divider/Divider.stories.tsx +1 -0
  116. package/src/components/DropdownButton/DropdownButton.stories.tsx +191 -0
  117. package/src/components/DropdownButton/DropdownButton.tsx +46 -0
  118. package/src/components/DropdownButton/index.ts +1 -0
  119. package/src/components/ErrorBoundary/ErrorBoundary.stories.tsx +1 -0
  120. package/src/components/Filename/Filename.stories.tsx +244 -0
  121. package/src/components/Filename/Filename.tsx +57 -0
  122. package/src/components/Filename/index.ts +1 -0
  123. package/src/components/Filename/styles.ts +18 -0
  124. package/src/components/Filename/useLogic/index.ts +1 -0
  125. package/src/components/Filename/useLogic/useLogic.ts +36 -0
  126. package/src/components/Filename/useLogic/utils/findExtension/constants.ts +16 -0
  127. package/src/components/Filename/useLogic/utils/findExtension/findExtension.ts +17 -0
  128. package/src/components/Filename/useLogic/utils/findExtension/index.ts +1 -0
  129. package/src/components/Filename/useLogic/utils/index.ts +1 -0
  130. package/src/components/Filename/useLogic/utils/truncateString/constants.ts +1 -0
  131. package/src/components/Filename/useLogic/utils/truncateString/index.ts +1 -0
  132. package/src/components/Filename/useLogic/utils/truncateString/truncateString.ts +24 -0
  133. package/src/components/FormLabel/FormLabel.tsx +11 -0
  134. package/src/components/FormLabel/index.ts +1 -0
  135. package/src/components/FormLabel/styles.ts +6 -0
  136. package/src/components/GuidTypography/GuidTypography.stories.tsx +1 -0
  137. package/src/components/IconButton/IconButton.stories.tsx +1 -1
  138. package/src/components/IconButton/IconButton.tsx +11 -16
  139. package/src/components/IconButton/styles.ts +24 -24
  140. package/src/components/IconDropdownButton/IconDropdownButton.stories.tsx +1 -0
  141. package/src/components/InternalErrorPlaceholder/InternalErrorPlaceholder.stories.tsx +1 -0
  142. package/src/components/Link/Link.stories.tsx +1 -0
  143. package/src/components/List/List.stories.tsx +1 -0
  144. package/src/components/ListItem/ListItem.stories.tsx +1 -0
  145. package/src/components/ListItemButton/ListItemButton.stories.tsx +1 -0
  146. package/src/components/ListItemButton/ListItemButton.tsx +3 -9
  147. package/src/components/ListItemIcon/ListItemIcon.stories.tsx +1 -0
  148. package/src/components/ListItemText/ListItemText.stories.tsx +1 -0
  149. package/src/components/ListSubheader/ListSubheader.stories.tsx +1 -0
  150. package/src/components/Menu/Menu.stories.tsx +1 -0
  151. package/src/components/MenuItem/MenuItem.stories.tsx +1 -0
  152. package/src/components/MenuItem/MenuItem.tsx +1 -2
  153. package/src/components/MenuList/MenuList.stories.tsx +1 -0
  154. package/src/components/MenuList/types.ts +3 -8
  155. package/src/components/NavMenu/Item/ItemButton/ItemButton.tsx +1 -2
  156. package/src/components/NavMenu/NavMenu.stories.tsx +1 -0
  157. package/src/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.stories.tsx +1 -0
  158. package/src/components/OverflowTypography/OverflowTypography.stories.tsx +1 -8
  159. package/src/components/Pagination/Pagination.stories.tsx +1 -0
  160. package/src/components/Placeholder/Placeholder.stories.tsx +1 -0
  161. package/src/components/Popover/Popover.stories.tsx +1 -0
  162. package/src/components/ProgressBar/ProgressBar.stories.tsx +31 -0
  163. package/src/components/ProgressBar/ProgressBar.tsx +26 -0
  164. package/src/components/ProgressBar/index.ts +1 -0
  165. package/src/components/Radio/Icon/Icon.tsx +37 -0
  166. package/src/components/Radio/Icon/index.ts +1 -0
  167. package/src/components/Radio/Radio.stories.tsx +32 -0
  168. package/src/components/Radio/Radio.tsx +24 -0
  169. package/src/components/Radio/constants.ts +9 -0
  170. package/src/components/Radio/index.ts +1 -0
  171. package/src/components/Radio/styles.ts +70 -0
  172. package/src/components/RadioField/RadioField.stories.tsx +74 -0
  173. package/src/components/RadioField/RadioField.tsx +55 -0
  174. package/src/components/RadioField/index.ts +1 -0
  175. package/src/components/RadioField/styles.ts +10 -0
  176. package/src/components/RadioGroup/RadioGroup.stories.tsx +60 -0
  177. package/src/components/RadioGroup/RadioGroup.tsx +79 -0
  178. package/src/components/RadioGroup/RadioGroupContext/RadioGroupContext.ts +9 -0
  179. package/src/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.tsx +18 -0
  180. package/src/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/index.ts +1 -0
  181. package/src/components/RadioGroup/RadioGroupContext/index.ts +3 -0
  182. package/src/components/RadioGroup/index.ts +3 -0
  183. package/src/components/RadioGroupField/RadioGroupField.tsx +17 -0
  184. package/src/components/RadioGroupField/index.ts +1 -0
  185. package/src/components/Select/Select.stories.tsx +0 -4
  186. package/src/components/Skeleton/Skeleton.stories.tsx +78 -0
  187. package/src/components/Skeleton/Skeleton.tsx +31 -0
  188. package/src/components/Skeleton/index.ts +1 -0
  189. package/src/components/Skeleton/styles.ts +16 -0
  190. package/src/components/Switch/Switch.stories.tsx +179 -0
  191. package/src/components/Switch/Switch.tsx +14 -0
  192. package/src/components/Switch/index.ts +1 -0
  193. package/src/components/Switch/styles.ts +14 -0
  194. package/src/components/Tab/Tab.stories.tsx +53 -0
  195. package/src/components/Tab/Tab.tsx +20 -0
  196. package/src/components/Tab/index.ts +1 -0
  197. package/src/components/Tab/styles.ts +22 -0
  198. package/src/components/Tabs/Tabs.stories.tsx +74 -0
  199. package/src/components/Tabs/Tabs.tsx +27 -0
  200. package/src/components/Tabs/index.ts +1 -0
  201. package/src/components/Tabs/styles.ts +20 -0
  202. package/src/components/Tag/Tag.stories.tsx +1 -1
  203. package/src/components/TagBadge/TagBadge.stories.tsx +1 -5
  204. package/src/components/TextArea/TextArea.stories.tsx +81 -0
  205. package/src/components/TextArea/TextArea.tsx +12 -0
  206. package/src/components/TextArea/index.ts +1 -0
  207. package/src/components/TextField/TextField.stories.tsx +1 -4
  208. package/src/components/Tooltip/Tooltip.stories.tsx +1 -4
  209. package/src/components/Typography/Typography.stories.tsx +2 -4
  210. package/src/hooks/index.ts +1 -0
  211. package/src/hooks/useToggle/index.ts +1 -0
  212. package/src/hooks/useToggle/useToggle.ts +76 -0
  213. package/test.tsx +1 -0
  214. package/tsconfig.json +3 -2
package/dist/index.mjs CHANGED
@@ -39,18 +39,18 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
39
39
  ${({theme:e})=>e.breakpoints.down("sm")} {
40
40
  width: ${e=>K({type:e.size,values:{[N.Small]:"36px"},defaultValue:"48px"})};
41
41
  }
42
- `,ee=r=>{let{variant:o=H.Contained,loading:i,children:n,...l}=r,a=(0,t.useMemo)(()=>o===H.Contained?"inverted":"primary",[o]);return(0,e.jsx)(Q,{loading:i,variant:o,tabIndex:i?-1:0,...l,children:i?(0,e.jsx)(U,{size:"small",color:a}):n})},et=()=>{let e=(0,r.useTheme)();return{isMobile:(0,r.useMediaQuery)(e.breakpoints.down("sm"))}};function er(e=null){let[r,o]=(0,t.useState)(!1),i=(0,t.useRef)(null);return(0,t.useEffect)(()=>{e&&("function"==typeof e?e(i.current):e.current=i.current)},[e]),{open:r,anchorRef:i,handleCloseMenu:()=>o(!1),handleOpenMenu:()=>o(!0)}}let eo=()=>{let[e,r]=(0,t.useState)(null);return{isOpen:!!e,anchor:e,actions:{open:e=>r(e.currentTarget),close:()=>r(null)}}},ei="16px",en=56,el=(0,r.styled)(r.Drawer)`
42
+ `,ee=r=>{let{variant:o=H.Contained,loading:i,children:n,...l}=r,a=(0,t.useMemo)(()=>o===H.Contained?"inverted":"primary",[o]);return(0,e.jsx)(Q,{loading:i,variant:o,tabIndex:i?-1:0,...l,children:i?(0,e.jsx)(U,{size:"small",color:a}):n})},et=()=>{let e=(0,r.useTheme)();return{isMobile:(0,r.useMediaQuery)(e.breakpoints.down("sm"))}};function er(e=null){let[r,o]=(0,t.useState)(!1),i=(0,t.useRef)(null);return(0,t.useEffect)(()=>{e&&("function"==typeof e?e(i.current):e.current=i.current)},[e]),{open:r,anchorRef:i,handleCloseMenu:()=>o(!1),handleOpenMenu:()=>o(!0)}}let eo=()=>{let[e,r]=(0,t.useState)(null);return{isOpen:!!e,anchor:e,actions:{open:e=>r(e.currentTarget),close:()=>r(null)}}},ei=e=>{let{initialState:r=!1,onInactive:o,onActive:i}=e||{},[n,l]=(0,t.useState)(r);return[n,(...e)=>{l(!0),i?.(...e)},(...e)=>{l(!1),o?.(...e)}]},en="16px",el=56,ea=(0,r.styled)(r.Drawer)`
43
43
  ${`.${r.paperClasses.root}`} {
44
- max-height: calc(100vh - ${ei});
44
+ max-height: calc(100vh - ${en});
45
45
 
46
46
  @supports (height: 100dvh) {
47
- max-height: calc(100dvh - ${ei});
47
+ max-height: calc(100dvh - ${en});
48
48
  }
49
49
 
50
50
  border-top-left-radius: ${({theme:e})=>e.shape.large};
51
51
  border-top-right-radius: ${({theme:e})=>e.shape.large};
52
52
  }
53
- `,ea=(0,r.styled)("header")`
53
+ `,es=(0,r.styled)("header")`
54
54
  display: flex;
55
55
  flex-shrink: 0;
56
56
  align-items: center;
@@ -60,24 +60,24 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
60
60
  padding: ${({theme:e})=>e.spacing(1,2,1,4)};
61
61
 
62
62
  border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
63
- `,es=(0,r.styled)(r.Typography)`
63
+ `,ed=(0,r.styled)(r.Typography)`
64
64
  margin-right: ${({theme:e})=>e.spacing(2)};
65
- `,ed=(0,r.styled)("div")`
65
+ `,ep=(0,r.styled)("div")`
66
66
  overflow-y: auto;
67
- `,ep=({title:t,drawerHeaderHeight:r=en,children:i,onClose:n,...l})=>(0,e.jsxs)(el,{...l,anchor:"bottom",onClose:n,children:[(0,e.jsxs)(ea,{drawerHeaderHeight:r,children:[(0,e.jsx)(es,{variant:"h5",noWrap:!0,children:t}),(0,e.jsx)(ee,{variant:"text",onClick:e=>{n&&n(e,"escapeKeyDown")},children:(0,e.jsx)(o.X,{})})]}),(0,e.jsx)(ed,{children:i})]}),ec=(0,r.styled)(r.MenuList)`
67
+ `,ec=({title:t,drawerHeaderHeight:r=el,children:i,onClose:n,...l})=>(0,e.jsxs)(ea,{...l,anchor:"bottom",onClose:n,children:[(0,e.jsxs)(es,{drawerHeaderHeight:r,children:[(0,e.jsx)(ed,{variant:"h5",noWrap:!0,children:t}),(0,e.jsx)(ee,{variant:"text",onClick:e=>{n&&n(e,"escapeKeyDown")},children:(0,e.jsx)(o.X,{})})]}),(0,e.jsx)(ep,{children:i})]}),eu=(0,r.styled)(r.MenuList)`
68
68
  &.MuiList-root {
69
69
  padding: ${({theme:e})=>e.spacing(1,0)};
70
70
 
71
71
  border-radius: ${({theme:e})=>e.shape.small};
72
72
  box-shadow: ${({theme:e})=>e.elevation[200]};
73
73
  }
74
- `,eu=({children:t,...r})=>(0,e.jsx)(ec,{...r,children:t}),eg=({children:t,onClose:o,open:i,title:n,...l})=>{let{isMobile:a}=et();return a?(0,e.jsx)(ep,{title:n,onClose:o,open:i,children:(0,e.jsx)(eu,{children:t})}):(0,e.jsx)(r.Menu,{open:i,onClose:o,...l,children:t})},eh=(0,t.forwardRef)(({children:t,icon:o,...i},n)=>{let{open:l,anchorRef:a,handleOpenMenu:s,handleCloseMenu:d}=er(n);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.ClickAwayListener,{onClickAway:d,mouseEvent:"onMouseUp",children:(0,e.jsx)(ee,{...i,ref:a,onClick:s,selected:l,children:o})}),(0,e.jsx)(eg,{open:l,anchorEl:a.current,children:t})]})});var em=((C={}).MEDIUM="medium",C.SMALL="small",C);let ex=(0,r.styled)(({className:t,...o})=>(0,e.jsx)(r.Tooltip,{...o,classes:{popper:t}}))`
74
+ `,eg=({children:t,...r})=>(0,e.jsx)(eu,{...r,children:t}),eh=({children:t,onClose:o,open:i,title:n,...l})=>{let{isMobile:a}=et();return a?(0,e.jsx)(ec,{title:n,onClose:o,open:i,children:(0,e.jsx)(eg,{children:t})}):(0,e.jsx)(r.Menu,{open:i,onClose:o,...l,children:t})},em=(0,t.forwardRef)(({children:t,icon:o,...i},n)=>{let{open:l,anchorRef:a,handleOpenMenu:s,handleCloseMenu:d}=er(n);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.ClickAwayListener,{onClickAway:d,mouseEvent:"onMouseUp",children:(0,e.jsx)(ee,{...i,ref:a,onClick:s,selected:l,children:o})}),(0,e.jsx)(eh,{open:l,anchorEl:a.current,children:t})]})});var ex=((C={}).MEDIUM="medium",C.SMALL="small",C);let ey=(0,r.styled)(({className:t,...o})=>(0,e.jsx)(r.Tooltip,{...o,classes:{popper:t}}))`
75
75
  & .${r.tooltipClasses.tooltip} {
76
76
  margin: 0;
77
77
 
78
- font-size: ${({size:e,theme:t})=>e===em.SMALL?t.typography.caption.fontSize:t.typography.body1.fontSize};
78
+ font-size: ${({size:e,theme:t})=>e===ex.SMALL?t.typography.caption.fontSize:t.typography.body1.fontSize};
79
79
  font-weight: ${({theme:e})=>e.typography.fontWeightRegular};
80
- line-height: ${({size:e,theme:t})=>e===em.SMALL?t.typography.caption.lineHeight:t.typography.body1.lineHeight};
80
+ line-height: ${({size:e,theme:t})=>e===ex.SMALL?t.typography.caption.lineHeight:t.typography.body1.lineHeight};
81
81
  white-space: pre-line;
82
82
 
83
83
  background-color: ${({theme:e})=>e.palette.grey[900]};
@@ -104,13 +104,13 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
104
104
  &&[data-popper-placement*='right'] .${r.tooltipClasses.tooltip} {
105
105
  margin-left: ${({theme:e})=>e.spacing(2)};
106
106
  }
107
- `,ey=(0,r.styled)("div")`
107
+ `,ef=(0,r.styled)("div")`
108
108
  display: inherit;
109
109
  flex-direction: inherit;
110
- `,ef=t=>{let{title:r,placement:o="top",size:i=em.MEDIUM,withoutContainer:n=!0,children:l,...a}=t;return(0,e.jsx)(ex,{title:r,size:i,placement:o,arrow:!0,...a,children:n?l:(0,e.jsx)(ey,{children:l})})},eb=t=>{let{disabledReason:o,disabled:i,component:n="div",title:l,tooltipPlacement:a="left",note:s,...d}=t;return(0,e.jsx)("li",{children:(0,e.jsx)(ef,{title:i?o:s,placement:a,withoutContainer:!i,children:(0,e.jsx)(r.MenuItem,{...d,disabled:i,title:l,component:n})},l)})},eC=({action:r,onActionClick:o,tooltipPlacement:i,isDisabled:n})=>{if("actions"in r){let{icon:l,disabled:a,disabledReason:s,name:d,actions:p}=r;return(0,e.jsx)(ef,{title:s||d,placement:i,withoutContainer:!(n||a),children:(0,e.jsx)(eh,{icon:l,variant:"text",disabled:n||a,children:p.map(({name:e,onClick:r,...n})=>(0,t.createElement)(eb,{...n,key:e,tooltipPlacement:i,onClick:o(r)},e))})},d)}let{onClick:l,name:a,icon:s,disabledReason:d,disabled:p,loading:c,isBlockingOperation:u,...g}=r,h=!c&&(d||a);return(0,e.jsx)(ef,{title:h,placement:i,withoutContainer:!(n||p),children:(0,e.jsx)(ee,{disabled:n||p,...g,variant:"text",onClick:o(l),children:s})},a)},e$=({actions:r,onActionClick:i,tooltipPlacement:n,isDisabled:l=!1})=>(0,e.jsx)(eh,{icon:(0,e.jsx)(o.EllipsisVertical,{}),variant:"text",disabled:l,children:r.map(e=>{let{onClick:r,name:o}=e;return(0,t.createElement)(eb,{...e,key:o,tooltipPlacement:n,onClick:i(r)},o)})}),ew=(0,r.styled)("div")`
110
+ `,eb=t=>{let{title:r,placement:o="top",size:i=ex.MEDIUM,withoutContainer:n=!0,children:l,...a}=t;return(0,e.jsx)(ey,{title:r,size:i,placement:o,arrow:!0,...a,children:n?l:(0,e.jsx)(ef,{children:l})})},eC=t=>{let{disabledReason:o,disabled:i,component:n="div",title:l,tooltipPlacement:a="left",note:s,...d}=t;return(0,e.jsx)("li",{children:(0,e.jsx)(eb,{title:i?o:s,placement:a,withoutContainer:!i,children:(0,e.jsx)(r.MenuItem,{...d,disabled:i,title:l,component:n})},l)})},e$=({action:r,onActionClick:o,tooltipPlacement:i,isDisabled:n})=>{if("actions"in r){let{icon:l,disabled:a,disabledReason:s,name:d,actions:p}=r;return(0,e.jsx)(eb,{title:s||d,placement:i,withoutContainer:!(n||a),children:(0,e.jsx)(em,{icon:l,variant:"text",disabled:n||a,children:p.map(({name:e,onClick:r,...n})=>(0,t.createElement)(eC,{...n,key:e,tooltipPlacement:i,onClick:o(r)},e))})},d)}let{onClick:l,name:a,icon:s,disabledReason:d,disabled:p,loading:c,isBlockingOperation:u,...g}=r,h=!c&&(d||a);return(0,e.jsx)(eb,{title:h,placement:i,withoutContainer:!(n||p),children:(0,e.jsx)(ee,{disabled:n||p,...g,variant:"text",onClick:o(l),children:s})},a)},ew=({actions:r,onActionClick:i,tooltipPlacement:n,isDisabled:l=!1})=>(0,e.jsx)(em,{icon:(0,e.jsx)(o.EllipsisVertical,{}),variant:"text",disabled:l,children:r.map(e=>{let{onClick:r,name:o}=e;return(0,t.createElement)(eC,{...e,key:o,tooltipPlacement:n,onClick:i(r)},o)})}),ev=(0,r.styled)("div")`
111
111
  display: inline-flex;
112
112
  align-items: center;
113
- `,ev=({actions:e,row:r})=>{let{main:o,secondary:i}=e,n=o.some(e=>!("actions"in e)&&e?.isBlockingOperation&&e?.loading),l=(0,t.useCallback)(e=>()=>{e?.(r)},[r]);return{isSecondaryActionsAvailable:i&&i.length>=1,handleActionClick:l,handleWrapperClick:e=>{e.stopPropagation()},isDisabledAction:n}},ej={mainAction:"top",secondaryAction:"left"},ek=t=>{let{isSecondaryActionsAvailable:r,handleActionClick:o,handleWrapperClick:i,isDisabledAction:n}=ev(t),{actions:l}=t,{main:a=[],secondary:s=[]}=l;return(0,e.jsxs)(ew,{onClick:i,children:[a.map(t=>(0,e.jsx)(eC,{tooltipPlacement:ej.mainAction,onActionClick:o,action:t,isDisabled:n},t.name)),r&&(0,e.jsx)(e$,{isDisabled:n,actions:s,tooltipPlacement:ej.secondaryAction,onActionClick:o})]})},eS=({...t})=>(0,e.jsxs)(r.SvgIcon,{viewBox:"0 0 14 14",...t,children:[(0,e.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,e.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"})]}),eM=({...t})=>(0,e.jsxs)(r.SvgIcon,{viewBox:"0 0 14 14",...t,children:[(0,e.jsx)("rect",{width:"14",height:"14",rx:"3"}),(0,e.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"})]}),eI=({...t})=>(0,e.jsxs)(r.SvgIcon,{viewBox:"0 0 14 14",...t,children:[(0,e.jsx)("rect",{width:"14",height:"14",rx:"3"}),(0,e.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"})]}),eF=e=>(0,r.css)`
113
+ `,ej=({actions:e,row:r})=>{let{main:o,secondary:i}=e,n=o.some(e=>!("actions"in e)&&e?.isBlockingOperation&&e?.loading),l=(0,t.useCallback)(e=>()=>{e?.(r)},[r]);return{isSecondaryActionsAvailable:i&&i.length>=1,handleActionClick:l,handleWrapperClick:e=>{e.stopPropagation()},isDisabledAction:n}},ek={mainAction:"top",secondaryAction:"left"},eS=t=>{let{isSecondaryActionsAvailable:r,handleActionClick:o,handleWrapperClick:i,isDisabledAction:n}=ej(t),{actions:l}=t,{main:a=[],secondary:s=[]}=l;return(0,e.jsxs)(ev,{onClick:i,children:[a.map(t=>(0,e.jsx)(e$,{tooltipPlacement:ek.mainAction,onActionClick:o,action:t,isDisabled:n},t.name)),r&&(0,e.jsx)(ew,{isDisabled:n,actions:s,tooltipPlacement:ek.secondaryAction,onActionClick:o})]})},eM=({...t})=>(0,e.jsxs)(r.SvgIcon,{viewBox:"0 0 14 14",...t,children:[(0,e.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,e.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"})]}),eI=({...t})=>(0,e.jsxs)(r.SvgIcon,{viewBox:"0 0 14 14",...t,children:[(0,e.jsx)("rect",{width:"14",height:"14",rx:"3"}),(0,e.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"})]}),eF=({...t})=>(0,e.jsxs)(r.SvgIcon,{viewBox:"0 0 14 14",...t,children:[(0,e.jsx)("rect",{width:"14",height:"14",rx:"3"}),(0,e.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"})]}),eP=e=>(0,r.css)`
114
114
  &.Mui-checked {
115
115
  color: ${e.palette.red[800]};
116
116
 
@@ -122,7 +122,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
122
122
  & .MuiSvgIcon-border {
123
123
  fill: ${e.palette.red[800]};
124
124
  }
125
- `,eP=(0,r.styled)(r.Checkbox,{shouldForwardProp:e=>"isError"!==e})`
125
+ `,eT=(0,r.styled)(r.Checkbox,{shouldForwardProp:e=>"isError"!==e})`
126
126
  padding: ${({theme:e})=>e.spacing(2)};
127
127
 
128
128
  color: ${({theme:e})=>e.palette.background.element};
@@ -167,8 +167,8 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
167
167
  }
168
168
  }
169
169
 
170
- ${({isError:e,theme:t})=>e&&eF(t)}
171
- `,eT=(0,t.forwardRef)(({icon:t=(0,e.jsx)(eS,{}),checkedIcon:r=(0,e.jsx)(eM,{}),indeterminateIcon:o=(0,e.jsx)(eI,{}),...i},n)=>(0,e.jsx)(eP,{ref:n,icon:t,checkedIcon:r,indeterminateIcon:o,...i})),eA=(0,r.styled)(D,{shouldForwardProp:e=>"rowsCount"!==e&&"hasMultipleRows"!==e})`
170
+ ${({isError:e,theme:t})=>e&&eP(t)}
171
+ `,eA=(0,t.forwardRef)(({icon:t=(0,e.jsx)(eM,{}),checkedIcon:r=(0,e.jsx)(eI,{}),indeterminateIcon:o=(0,e.jsx)(eF,{}),...i},n)=>(0,e.jsx)(eT,{ref:n,icon:t,checkedIcon:r,indeterminateIcon:o,...i})),eD=(0,r.styled)(D,{shouldForwardProp:e=>"rowsCount"!==e&&"hasMultipleRows"!==e})`
172
172
  /* stylelint-disable-next-line */
173
173
  overflow: hidden;
174
174
  /* stylelint-disable-next-line */
@@ -180,14 +180,14 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
180
180
  white-space: ${({hasMultipleRows:e})=>e?"initial":"nowrap"};
181
181
  -webkit-box-orient: ${({hasMultipleRows:e})=>e?"vertical":""};
182
182
  -webkit-line-clamp: ${({rowsCount:e})=>e};
183
- `,eD=(0,r.styled)(D,{shouldForwardProp:e=>!["$align"].includes(e.toString())})`
183
+ `,eE=(0,r.styled)(D,{shouldForwardProp:e=>!["$align"].includes(e.toString())})`
184
184
  display: flex;
185
185
  justify-content: ${({$align:e})=>e};
186
186
 
187
187
  width: 100%;
188
188
 
189
189
  white-space: nowrap;
190
- `,eE=e=>{let o=(0,t.useRef)(null),i=e&&"function"!=typeof e?e:o,[l,a]=(0,t.useState)(!1),s=(0,n.useFirstMountState)(),d=([{target:e,contentRect:t}])=>{let r=Math.round(t.height)<e.scrollHeight,o=e.scrollWidth>Math.round(t.width);a(r||o)};return(0,t.useLayoutEffect)(()=>{if(i?.current){let e=i.current,t={target:e,contentRect:e.getBoundingClientRect()};if(!s){let t=new ResizeObserver((0,r.debounce)(d,500));return t.observe(e),()=>t.unobserve(e)}d([t])}},[i.current]),{isOverflowed:l,ref:i}},eR=(e,t)=>({firstPartLabel:t.slice(0,-e),secondPartLabel:t.slice(-e)}),eO=({children:e,visibleLastSymbolsCount:t,ref:r})=>{let{ref:o,isOverflowed:i}=eE(r),n=e&&"string"==typeof e,{firstPartLabel:l,secondPartLabel:a}=n&&i&&t?eR(t,e):{firstPartLabel:"",secondPartLabel:""};return{isTruncatedStringVisible:n&&i&&!!t,isOverflowed:i,ref:o,firstPartLabel:l,secondPartLabel:a}},eL=1,ez=t=>{let{ref:r,isOverflowed:o,secondPartLabel:i,firstPartLabel:n,isTruncatedStringVisible:l}=eO(t),{tooltipProps:a,children:s,rowsCount:d=eL,visibleLastSymbolsCount:p,align:c="left",...u}=t,g={...u,ref:r,align:c,children:s,rowsCount:d,hasMultipleRows:d>eL};return l?(0,e.jsx)(ef,{title:s,disableInteractive:!0,...a,children:(0,e.jsxs)(eD,{$align:c,children:[(0,e.jsx)(eA,{component:"span",ref:r,hasMultipleRows:!1,rowsCount:1,...u,children:n}),(0,e.jsx)(D,{...u,component:"span",children:i})]})}):s&&o?(0,e.jsx)(ef,{title:s,disableInteractive:!0,...a,children:(0,e.jsx)(eA,{...g})}):(0,e.jsx)(eA,{...g})},eB={values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},eW={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 eH=(($={}).medium="medium",$.small="small",$);let eN={styleOverrides:{inputRoot:({theme:e,ownerState:{size:t}})=>({paddingTop:`${e.spacing(1)} !important`,paddingBottom:`${e.spacing(1)} !important`,paddingLeft:`${e.spacing(1)} !important`,minHeight:t===eH.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)})}},eV=({type:e,values:t,defaultValue:r})=>e&&t[e]||r,e_=e=>eV({type:e.size,values:{[N.Large]:"40px"},defaultValue:"32px"}),eU=e=>eV({type:e.size,values:{[N.Small]:"36px"},defaultValue:"48px"}),eG=e=>eV({type:e.size,values:{[N.Large]:e.theme.spacing(2,4,2,4)},defaultValue:e.theme.spacing(1,3,1,3)}),eX=e=>e.variant===H.Link?"0":eV({type:e.size,values:{[N.Small]:e.theme.spacing(2,3)},defaultValue:e.theme.spacing(4,3)}),eY=({theme:e,variant:t,color:r,buttonState:o,selected:i})=>{let n={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 i?t!==H.Link?e.palette.primary.contrastText:n.selected[o]:t===H.Contained?n.contained:t===H.Light&&r?n.light[r][o]:t===H.Text?n.text[o]:n.link[o]},eZ=({selected:e,color:t,variant:r,buttonState:o,theme:i})=>{let n={selected:{default:i.palette.grey["900"],hover:i.palette.grey["700"],active:i.palette.grey["800"],focus:i.palette.grey["900"]},light:{error:{default:i.palette.red["100"],hover:i.palette.red["200"],active:i.palette.red["100"],focus:i.palette.red["100"]},success:{default:i.palette.green["100"],hover:i.palette.green["200"],active:i.palette.green["100"],focus:i.palette.green["100"]},primary:{default:i.palette.grey["100"],hover:i.palette.grey["200"],active:i.palette.primary["100"],focus:i.palette.grey["100"]},warning:{default:i.palette.yellow["100"],hover:i.palette.yellow["200"],active:i.palette.yellow["100"],focus:i.palette.yellow["100"]}},contained:{error:{default:i.palette.red["800"],hover:i.palette.red["700"],active:i.palette.red["900"],focus:i.palette.red["800"]},success:{default:i.palette.green["800"],hover:i.palette.green["700"],active:i.palette.green["900"],focus:i.palette.green["800"]},primary:{default:i.palette.primary["800"],hover:i.palette.primary["700"],active:i.palette.primary["900"],focus:i.palette.primary["800"]},warning:{default:i.palette.yellow["800"],hover:i.palette.yellow["700"],active:i.palette.yellow["900"],focus:i.palette.yellow["800"]}},text:{default:"transparent",hover:i.palette.grey["200"],active:i.palette.primary["100"],focus:"transparent"},link:"transparent"};return e&&r!==H.Link?n.selected[o]:r===H.Light&&t?n.light[t][o]:r===H.Contained&&t?n.contained[t][o]:r===H.Text?n.text[o]:n.link},eq=({theme:e,variant:t})=>H.Link===t||H.Text===t?"transparent":e.palette.grey["200"],eK={defaultProps:{disableRipple:!0},styleOverrides:{root({ownerState:e,theme:t}){let o=e.variant,i=e.color,n=e.selected,l=e.size;return{height:e_({size:l}),padding:eG({theme:t,size:l}),[t.breakpoints.down("sm")]:{height:eU({size:l}),padding:eX({size:l,theme:t,variant:o}),whiteSpace:"nowrap"},color:eY({selected:n,theme:t,variant:o,color:i,buttonState:V.Default}),fontWeight:t.typography.button.fontWeight,fontSize:t.typography.button.fontSize,backgroundColor:eZ({selected:n,theme:t,color:i,variant:o,buttonState:V.Default}),border:"none",borderRadius:t.shape.small,"&:hover":{color:eY({selected:n,theme:t,variant:o,color:i,buttonState:V.Hover}),backgroundColor:eZ({selected:n,color:i,variant:o,theme:t,buttonState:V.Hover}),boxShadow:"none"},"&:active":{color:eY({selected:n,color:i,variant:o,theme:t,buttonState:V.Active}),backgroundColor:eZ({selected:n,color:i,variant:o,theme:t,buttonState:V.Active}),outline:"none"},"&:focus-visible":{color:eY({selected:n,theme:t,variant:o,color:i,buttonState:V.Focus}),backgroundColor:eZ({selected:n,color:i,variant:o,theme:t,buttonState:V.Focus}),outline:`2px solid ${t.palette.primary["400"]}`,boxShadow:"none"},[`&.${r.buttonClasses.disabled}`]:{color:t.palette.grey["500"],backgroundColor:eq({theme:t,variant:o}),pointerEvents:"none",cursor:"unset"},[`&.${B}`]:{color:"transparent",backgroundColor:eZ({color:i,variant:o,theme:t,buttonState:V.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"}}}}},eJ={defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:e})=>({fontFamily:e.typography.fontFamily})}},eQ={styleOverrides:{root({ownerState:e,theme:t}){let{"data-color":r}=e;return{color:"primary"===r?t.palette.grey[900]:t.palette.primary.contrastText}}}},e0={styleOverrides:{paper:({theme:e})=>({borderRadius:e.shape.small})}},e1={styleOverrides:{root:({theme:e})=>({padding:e.spacing(4,6,6,6),">div":{width:"100%"}})}},e2={styleOverrides:{root:({theme:e})=>({padding:e.spacing(0,6)})}},e3={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",[`& .${r.buttonClasses.root}`]:{marginLeft:e.spacing(4),color:e.palette.grey[800]}})}},e4={styleOverrides:{root:({theme:e})=>({[`&.${r.drawerClasses.root} > .${r.backdropClasses.root}`]:{backgroundColor:e.palette.background.modalShadow}})}},e8={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}})}},e6={styleOverrides:{root:()=>({position:"relative",transform:"none"})}},e9={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]}})}},e5={styleOverrides:{root:({theme:e})=>({width:"100%",borderRadius:"4px",backgroundColor:e.palette.grey[300]}),barColorPrimary:({theme:e})=>({backgroundColor:e.palette.primary["800"]})}},e7={styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{color:e.palette.primary[800],backgroundColor:e.palette.grey[100]}})}},te={styleOverrides:{root:()=>({overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"})}},tt={defaultProps:{autoFocus:!1},styleOverrides:{paper:({theme:e})=>({marginTop:e.spacing(2),[`&&.${r.paperClasses.root}`]:{borderRadius:e.shape.small,boxShadow:e.elevation[200]}}),list:({theme:e})=>({[`&&.${r.listClasses.root}`]:{padding:0},[`&&.${r.listClasses.padding}`]:{padding:e.spacing(1,0)}})}},tr={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,2,2,3),"&:hover":{backgroundColor:e.palette.background.elementHover},[`&.${r.menuItemClasses.selected}`]:{background:`linear-gradient(90deg, ${e.palette.primary.main} 0, ${e.palette.primary.main} 4px, ${e.palette.primary["100"]} 4px)`},[`&.${r.menuItemClasses.gutters}`]:{minHeight:e.spacing(8),padding:e.spacing(1,3,1,3)},[e.breakpoints.down("sm")]:{padding:e.spacing(3,3,4,3),[`&.${r.menuItemClasses.gutters}`]:{padding:e.spacing(3,3,4,3)}}})}},to={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)})}},ti={styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.grey["900"],color:e.palette.primary.contrastText}})}},tn=(e,t)=>0===e?"none":1===e?t.elevation["200"]:t.elevation["300"],tl={styleOverrides:{elevation:({theme:e,ownerState:{elevation:t}})=>({boxShadow:tn(t,e)}),outlined:({theme:e})=>({border:`1px solid ${e.palette.grey[300]}`})}},ta={styleOverrides:{horizontal:({theme:e})=>({"&:first-of-type":{paddingLeft:0},padding:e.spacing(0,2.5)})}},ts={styleOverrides:{lineHorizontal:({theme:e})=>({borderTopWidth:2,borderColor:e.palette.grey[300]})}},td={styleOverrides:{label({theme:e}){let{active:t,completed:o,error:i}=r.stepLabelClasses;return{fontSize:e.typography.small.fontSize,lineHeight:e.typography.small.lineHeight,fontWeight:e.typography.small.fontWeight,color:e.palette.grey[700],[`&.${t}, &.${o}, &.${i}`]:{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)})}},tp=e=>e.replace("#","%23"),tc=e=>{let t=tp(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>')`},tu=e=>{let t=tp(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>')`},tg={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:tc(e.palette.grey[500])},"&::after":{backgroundImage:tu(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:tc(e.palette.background.default)},"&::after":{right:e.spacing(2),backgroundImage:tu(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}}}},th={styleOverrides:{root:({theme:e})=>({minWidth:0,padding:e.spacing(0,2),textTransform:"none"})}},tm={styleOverrides:{root:({theme:e})=>({border:"none",padding:e.spacing(1,4),height:44})}},tx={styleOverrides:{root:({theme:e})=>({th:{borderBottom:`2px solid ${e.palette.grey["300"]}`}})}},ty={styleOverrides:{root:({theme:e})=>({"&.MuiTableRow-hover:hover":{backgroundColor:e.palette.background.elementHover,cursor:"pointer"},"&.Mui-selected":{backgroundColor:e.palette.primary["100"]}})}},tf={styleOverrides:{root:()=>({minHeight:38,height:38}),indicator:({theme:e})=>({borderRadius:e.shape.small})}},tb={styleOverrides:{root:({theme:e})=>({[`& .${r.inputBaseClasses.adornedStart}`]:{paddingLeft:e.spacing(2)},[`& .${r.inputBaseClasses.adornedEnd}`]:{paddingRight:e.spacing(2)},[`& .${r.inputBaseClasses.inputAdornedStart}`]:{paddingLeft:e.spacing(1)},[`& .${r.outlinedInputClasses.notchedOutline}`]:{top:-4.5}})}},tC={styleOverrides:{root:({theme:e})=>({textTransform:"initial",padding:e.spacing(1,2)})}},t$={defaultProps:{size:"small",color:"primary"}},tw={variants:[{props:{variant:"button"},style:{textTransform:"capitalize"}}],defaultProps:{variantMapping:{link:"a",code:"code"}}},tv=e=>`
190
+ `,eR=e=>{let o=(0,t.useRef)(null),i=e&&"function"!=typeof e?e:o,[l,a]=(0,t.useState)(!1),s=(0,n.useFirstMountState)(),d=([{target:e,contentRect:t}])=>{let r=Math.round(t.height)<e.scrollHeight,o=e.scrollWidth>Math.round(t.width);a(r||o)};return(0,t.useLayoutEffect)(()=>{if(i?.current){let e=i.current,t={target:e,contentRect:e.getBoundingClientRect()};if(!s){let t=new ResizeObserver((0,r.debounce)(d,500));return t.observe(e),()=>t.unobserve(e)}d([t])}},[i.current]),{isOverflowed:l,ref:i}},eO=(e,t)=>({firstPartLabel:t.slice(0,-e),secondPartLabel:t.slice(-e)}),eL=({children:e,visibleLastSymbolsCount:t,ref:r})=>{let{ref:o,isOverflowed:i}=eR(r),n=e&&"string"==typeof e,{firstPartLabel:l,secondPartLabel:a}=n&&i&&t?eO(t,e):{firstPartLabel:"",secondPartLabel:""};return{isTruncatedStringVisible:n&&i&&!!t,isOverflowed:i,ref:o,firstPartLabel:l,secondPartLabel:a}},ez=1,eB=t=>{let{ref:r,isOverflowed:o,secondPartLabel:i,firstPartLabel:n,isTruncatedStringVisible:l}=eL(t),{tooltipProps:a,children:s,rowsCount:d=ez,visibleLastSymbolsCount:p,align:c="left",...u}=t,g={...u,ref:r,align:c,children:s,rowsCount:d,hasMultipleRows:d>ez};return l?(0,e.jsx)(eb,{title:s,disableInteractive:!0,...a,children:(0,e.jsxs)(eE,{$align:c,children:[(0,e.jsx)(eD,{component:"span",ref:r,hasMultipleRows:!1,rowsCount:1,...u,children:n}),(0,e.jsx)(D,{...u,component:"span",children:i})]})}):s&&o?(0,e.jsx)(eb,{title:s,disableInteractive:!0,...a,children:(0,e.jsx)(eD,{...g})}):(0,e.jsx)(eD,{...g})},eW={values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},eH={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 eN=(($={}).medium="medium",$.small="small",$);let eV={styleOverrides:{inputRoot:({theme:e,ownerState:{size:t}})=>({paddingTop:`${e.spacing(1)} !important`,paddingBottom:`${e.spacing(1)} !important`,paddingLeft:`${e.spacing(1)} !important`,minHeight:t===eN.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)})}},e_=({type:e,values:t,defaultValue:r})=>e&&t[e]||r,eU=e=>e_({type:e.size,values:{[N.Large]:"40px"},defaultValue:"32px"}),eG=e=>e_({type:e.size,values:{[N.Small]:"36px"},defaultValue:"48px"}),eX=e=>e_({type:e.size,values:{[N.Large]:e.theme.spacing(2,4,2,4)},defaultValue:e.theme.spacing(1,3,1,3)}),eY=e=>e.variant===H.Link?"0":e_({type:e.size,values:{[N.Small]:e.theme.spacing(2,3)},defaultValue:e.theme.spacing(4,3)}),eZ=({theme:e,variant:t,color:r,buttonState:o,selected:i})=>{let n={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 i?t!==H.Link?e.palette.primary.contrastText:n.selected[o]:t===H.Contained?n.contained:t===H.Light&&r?n.light[r][o]:t===H.Text?n.text[o]:n.link[o]},eq=({selected:e,color:t,variant:r,buttonState:o,theme:i})=>{let n={selected:{default:i.palette.grey["900"],hover:i.palette.grey["700"],active:i.palette.grey["800"],focus:i.palette.grey["900"]},light:{error:{default:i.palette.red["100"],hover:i.palette.red["200"],active:i.palette.red["100"],focus:i.palette.red["100"]},success:{default:i.palette.green["100"],hover:i.palette.green["200"],active:i.palette.green["100"],focus:i.palette.green["100"]},primary:{default:i.palette.grey["100"],hover:i.palette.grey["200"],active:i.palette.primary["100"],focus:i.palette.grey["100"]},warning:{default:i.palette.yellow["100"],hover:i.palette.yellow["200"],active:i.palette.yellow["100"],focus:i.palette.yellow["100"]}},contained:{error:{default:i.palette.red["800"],hover:i.palette.red["700"],active:i.palette.red["900"],focus:i.palette.red["800"]},success:{default:i.palette.green["800"],hover:i.palette.green["700"],active:i.palette.green["900"],focus:i.palette.green["800"]},primary:{default:i.palette.primary["800"],hover:i.palette.primary["700"],active:i.palette.primary["900"],focus:i.palette.primary["800"]},warning:{default:i.palette.yellow["800"],hover:i.palette.yellow["700"],active:i.palette.yellow["900"],focus:i.palette.yellow["800"]}},text:{default:"transparent",hover:i.palette.grey["200"],active:i.palette.primary["100"],focus:"transparent"},link:"transparent"};return e&&r!==H.Link?n.selected[o]:r===H.Light&&t?n.light[t][o]:r===H.Contained&&t?n.contained[t][o]:r===H.Text?n.text[o]:n.link},eK=({theme:e,variant:t})=>H.Link===t||H.Text===t?"transparent":e.palette.grey["200"],eJ={defaultProps:{disableRipple:!0},styleOverrides:{root({ownerState:e,theme:t}){let o=e.variant,i=e.color,n=e.selected,l=e.size;return{height:eU({size:l}),padding:eX({theme:t,size:l}),[t.breakpoints.down("sm")]:{height:eG({size:l}),padding:eY({size:l,theme:t,variant:o}),whiteSpace:"nowrap"},color:eZ({selected:n,theme:t,variant:o,color:i,buttonState:V.Default}),fontWeight:t.typography.button.fontWeight,fontSize:t.typography.button.fontSize,backgroundColor:eq({selected:n,theme:t,color:i,variant:o,buttonState:V.Default}),border:"none",borderRadius:t.shape.small,"&:hover":{color:eZ({selected:n,theme:t,variant:o,color:i,buttonState:V.Hover}),backgroundColor:eq({selected:n,color:i,variant:o,theme:t,buttonState:V.Hover}),boxShadow:"none"},"&:active":{color:eZ({selected:n,color:i,variant:o,theme:t,buttonState:V.Active}),backgroundColor:eq({selected:n,color:i,variant:o,theme:t,buttonState:V.Active}),outline:"none"},"&:focus-visible":{color:eZ({selected:n,theme:t,variant:o,color:i,buttonState:V.Focus}),backgroundColor:eq({selected:n,color:i,variant:o,theme:t,buttonState:V.Focus}),outline:`2px solid ${t.palette.primary["400"]}`,boxShadow:"none"},[`&.${r.buttonClasses.disabled}`]:{color:t.palette.grey["500"],backgroundColor:eK({theme:t,variant:o}),pointerEvents:"none",cursor:"unset"},[`&.${B}`]:{color:"transparent",backgroundColor:eq({color:i,variant:o,theme:t,buttonState:V.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"}}}}},eQ={defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:e})=>({fontFamily:e.typography.fontFamily})}},e0={styleOverrides:{root({ownerState:e,theme:t}){let{"data-color":r}=e;return{color:"primary"===r?t.palette.grey[900]:t.palette.primary.contrastText}}}},e1={styleOverrides:{paper:({theme:e})=>({borderRadius:e.shape.small})}},e2={styleOverrides:{root:({theme:e})=>({padding:e.spacing(4,6,6,6),">div":{width:"100%"}})}},e3={styleOverrides:{root:({theme:e})=>({padding:e.spacing(0,6)})}},e4={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",[`& .${r.buttonClasses.root}`]:{marginLeft:e.spacing(4),color:e.palette.grey[800]}})}},e8={styleOverrides:{root:({theme:e})=>({[`&.${r.drawerClasses.root} > .${r.backdropClasses.root}`]:{backgroundColor:e.palette.background.modalShadow}})}},e6={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}})}},e9={styleOverrides:{root:()=>({position:"relative",transform:"none"})}},e5={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]}})}},e7={styleOverrides:{root:({theme:e})=>({width:"100%",borderRadius:"4px",backgroundColor:e.palette.grey[300]}),barColorPrimary:({theme:e})=>({backgroundColor:e.palette.primary["800"]})}},te={styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{color:e.palette.primary[800],backgroundColor:e.palette.grey[100]}})}},tt={styleOverrides:{root:()=>({overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"})}},tr={defaultProps:{autoFocus:!1},styleOverrides:{paper:({theme:e})=>({marginTop:e.spacing(2),[`&&.${r.paperClasses.root}`]:{borderRadius:e.shape.small,boxShadow:e.elevation[200]}}),list:({theme:e})=>({[`&&.${r.listClasses.root}`]:{padding:0},[`&&.${r.listClasses.padding}`]:{padding:e.spacing(1,0)}})}},to={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,2,2,3),"&:hover":{backgroundColor:e.palette.background.elementHover},[`&.${r.menuItemClasses.selected}`]:{background:`linear-gradient(90deg, ${e.palette.primary.main} 0, ${e.palette.primary.main} 4px, ${e.palette.primary["100"]} 4px)`},[`&.${r.menuItemClasses.gutters}`]:{minHeight:e.spacing(8),padding:e.spacing(1,3,1,3)},[e.breakpoints.down("sm")]:{padding:e.spacing(3,3,4,3),[`&.${r.menuItemClasses.gutters}`]:{padding:e.spacing(3,3,4,3)}}})}},ti={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)})}},tn={styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.grey["900"],color:e.palette.primary.contrastText}})}},tl=(e,t)=>0===e?"none":1===e?t.elevation["200"]:t.elevation["300"],ta={styleOverrides:{elevation:({theme:e,ownerState:{elevation:t}})=>({boxShadow:tl(t,e)}),outlined:({theme:e})=>({border:`1px solid ${e.palette.grey[300]}`})}},ts={styleOverrides:{horizontal:({theme:e})=>({"&:first-of-type":{paddingLeft:0},padding:e.spacing(0,2.5)})}},td={styleOverrides:{lineHorizontal:({theme:e})=>({borderTopWidth:2,borderColor:e.palette.grey[300]})}},tp={styleOverrides:{label({theme:e}){let{active:t,completed:o,error:i}=r.stepLabelClasses;return{fontSize:e.typography.small.fontSize,lineHeight:e.typography.small.lineHeight,fontWeight:e.typography.small.fontWeight,color:e.palette.grey[700],[`&.${t}, &.${o}, &.${i}`]:{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)})}},tc=e=>e.replace("#","%23"),tu=e=>{let t=tc(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>')`},tg=e=>{let t=tc(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>')`},th={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:tu(e.palette.grey[500])},"&::after":{backgroundImage:tg(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:tu(e.palette.background.default)},"&::after":{right:e.spacing(2),backgroundImage:tg(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}}}},tm={styleOverrides:{root:({theme:e})=>({minWidth:0,padding:e.spacing(0,2),textTransform:"none"})}},tx={styleOverrides:{root:({theme:e})=>({border:"none",padding:e.spacing(1,4),height:44})}},ty={styleOverrides:{root:({theme:e})=>({th:{borderBottom:`2px solid ${e.palette.grey["300"]}`}})}},tf={styleOverrides:{root:({theme:e})=>({"&.MuiTableRow-hover:hover":{backgroundColor:e.palette.background.elementHover,cursor:"pointer"},"&.Mui-selected":{backgroundColor:e.palette.primary["100"]}})}},tb={styleOverrides:{root:()=>({minHeight:38,height:38}),indicator:({theme:e})=>({borderRadius:e.shape.small})}},tC={styleOverrides:{root:({theme:e})=>({[`& .${r.inputBaseClasses.adornedStart}`]:{paddingLeft:e.spacing(2)},[`& .${r.inputBaseClasses.adornedEnd}`]:{paddingRight:e.spacing(2)},[`& .${r.inputBaseClasses.inputAdornedStart}`]:{paddingLeft:e.spacing(1)},[`& .${r.outlinedInputClasses.notchedOutline}`]:{top:-4.5}})}},t$={styleOverrides:{root:({theme:e})=>({textTransform:"initial",padding:e.spacing(1,2)})}},tw={defaultProps:{size:"small",color:"primary"}},tv={variants:[{props:{variant:"button"},style:{textTransform:"capitalize"}}],defaultProps:{variantMapping:{link:"a",code:"code"}}},tj=e=>`
191
191
  @font-face {
192
192
  font-family: 'Ubuntu';
193
193
  font-style: 'normal';
@@ -216,7 +216,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
216
216
  font-display: swap;
217
217
  src: url(${e.bold.woff2}) format('woff2'), url(${e.bold.woff}) format('woff');
218
218
  }
219
- `,tj=e=>({styleOverrides:tv(e)}),tk=e=>({styleOverrides:{root:tv(e)}}),tS={defaultProps:{disableRipple:!0}},tM={defaultProps:{disableRipple:!0}},tI=e=>({MuiCssBaseline:tj(e),MuiScopedCssBaseline:tk(e),MuiAlert:eW,MuiButton:eK,MuiButtonBase:eJ,MuiTypography:tw,MuiInputLabel:e9,MuiOutlinedInput:to,MuiFormLabel:e6,MuiFormHelperText:e8,MuiAutocomplete:eN,MuiCheckbox:tS,MuiMenu:tt,MuiMenuItem:tr,MuiRadio:tM,MuiDialog:e0,MuiDialogTitle:e3,MuiDialogContent:e2,MuiDialogActions:e1,MuiDrawer:e4,MuiTableCell:tm,MuiTableHead:tx,MuiTableRow:ty,MuiPaginationItem:ti,MuiPaper:tl,MuiCircularProgress:eQ,MuiListItemButton:e7,MuiListItemText:te,MuiLinearProgress:e5,MuiTab:th,MuiTabs:tf,MuiStepLabel:td,MuiStep:ta,MuiStepConnector:ts,MuiToggleButtonGroup:t$,MuiToggleButton:tC,MuiTextField:tb,MuiSwitch:tg}),tF=4,tP={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;"},tT={link:{main:"#1874FF",hover:"#268FF9",visited:"#762376",active:"#072D57"}},tA=()=>{let e={900:"#0F52B8",800:"#2165CC",700:"#1874FF",600:"#2684FF",500:"#4C9AFF",400:"#70AEFF",300:"#94C2FF",200:"#C5DCFF",100:"#E1EDFF"},t={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[800],dark:e[900],contrastText:"#FFF",...e},secondary:{main:t[800],dark:e[900],contrastText:"#FFF",...t},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:tT}},tD={small:"3px",medium:"6px",large:"9px"},tE={fontSize:14,htmlFontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700,fontFamily:"Ubuntu,sans-serif"},tR=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"}}}),tO=e=>{let{options:t={},fontsUrls:r,breakpoints:o=eB}=e,i={typography:tE,breakpoints:o,spacing:tF,palette:tA(),components:tI(r),shape:tD,elevation:tP},n=(0,l.createTheme)(i),s=(0,l.createTheme)(n,{typography:tR(n)});return(0,a.mergeDeep)(s,{elevation:tP,shape:tD,...t})},tL=()=>(0,s.useTheme)(),tz=(0,r.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"})`
219
+ `,tk=e=>({styleOverrides:tj(e)}),tS=e=>({styleOverrides:{root:tj(e)}}),tM={defaultProps:{disableRipple:!0}},tI={defaultProps:{disableRipple:!0}},tF=e=>({MuiCssBaseline:tk(e),MuiScopedCssBaseline:tS(e),MuiAlert:eH,MuiButton:eJ,MuiButtonBase:eQ,MuiTypography:tv,MuiInputLabel:e5,MuiOutlinedInput:ti,MuiFormLabel:e9,MuiFormHelperText:e6,MuiAutocomplete:eV,MuiCheckbox:tM,MuiMenu:tr,MuiMenuItem:to,MuiRadio:tI,MuiDialog:e1,MuiDialogTitle:e4,MuiDialogContent:e3,MuiDialogActions:e2,MuiDrawer:e8,MuiTableCell:tx,MuiTableHead:ty,MuiTableRow:tf,MuiPaginationItem:tn,MuiPaper:ta,MuiCircularProgress:e0,MuiListItemButton:te,MuiListItemText:tt,MuiLinearProgress:e7,MuiTab:tm,MuiTabs:tb,MuiStepLabel:tp,MuiStep:ts,MuiStepConnector:td,MuiToggleButtonGroup:tw,MuiToggleButton:t$,MuiTextField:tC,MuiSwitch:th}),tP=4,tT={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;"},tA={link:{main:"#1874FF",hover:"#268FF9",visited:"#762376",active:"#072D57"}},tD=()=>{let e={900:"#0F52B8",800:"#2165CC",700:"#1874FF",600:"#2684FF",500:"#4C9AFF",400:"#70AEFF",300:"#94C2FF",200:"#C5DCFF",100:"#E1EDFF"},t={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[800],dark:e[900],contrastText:"#FFF",...e},secondary:{main:t[800],dark:e[900],contrastText:"#FFF",...t},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:tA}},tE={small:"3px",medium:"6px",large:"9px"},tR={fontSize:14,htmlFontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700,fontFamily:"Ubuntu,sans-serif"},tO=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"}}}),tL=e=>{let{options:t={},fontsUrls:r,breakpoints:o=eW}=e,i={typography:tR,breakpoints:o,spacing:tP,palette:tD(),components:tF(r),shape:tE,elevation:tT},n=(0,l.createTheme)(i),s=(0,l.createTheme)(n,{typography:tO(n)});return(0,a.mergeDeep)(s,{elevation:tT,shape:tE,...t})},tz=()=>(0,s.useTheme)(),tB=(0,r.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
220
  display: ${({variant:e="flex",templateAreas:t,templateColumns:r,templateRows:o})=>o||r||t?"grid":e};
221
221
  flex-direction: ${({direction:e="row"})=>e};
222
222
  flex-wrap: ${({direction:e="row"})=>"row"===e?"nowrap":"wrap"};
@@ -234,39 +234,39 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
234
234
  background-color: ${({theme:e,isPaper:t})=>t?e.palette.background.paper:"transparent"};
235
235
  padding: ${({padding:e,theme:t})=>"number"==typeof e?t.spacing(e):e};
236
236
  margin: ${({margin:e,theme:t})=>"number"==typeof e?t.spacing(e):e};
237
- `,tB=t=>(0,e.jsx)(tz,{...t});var tW=((w={}).DEFAULT="default",w.PRIMARY="primary",w.ERROR="error",w.GREY="grey",w.SUCCESS="success",w.WARNING="warning",w),tH=((v={}).CONTAINED="contained",v.LIGHT="light",v.TEXT="text",v),tN=((j={}).DEFAULT="default",j.HOVER="hover",j.ACTIVE="active",j);let tV={small:"20px",medium:"24px",large:"32px"},t_=e=>{let{tagColor:t,variant:r}=e;return r===tH.CONTAINED?"white":({[tW.PRIMARY]:"primary",[tW.ERROR]:"error",[tW.GREY]:"grey",[tW.SUCCESS]:"success",[tW.WARNING]:"warning",[tW.DEFAULT]:"grey"})[t||"default"]},tU=({theme:e,customColor:t,customVariant:r,disabled:o})=>{if(o)return e.palette.grey[100];if("text"===r)return"transparent";let i={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 r&&t?i[r][t]:!r&&t?i.contained[t]:e.palette.grey[300]},tG=({theme:e,customColor:t,customVariant:r,disabled:o})=>{if(o)return e.palette.text.disabled;if("text"===r)return e.palette.grey[900];let i={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 r||t?r||"grey"===t?t?r&&t?i[r][t]:e.palette.text.primary:i.contained.default:e.palette.common.white:e.palette.grey[900]},tX=({theme:e,iconState:t,customVariant:r,customColor:o})=>{let i={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"===r||"light"===r)&&o)return i[r][o||"default"];if("text"===r)return i.light.grey}return"transparent"},tY=({customVariant:e,customColor:t,theme:r})=>"contained"===e&&"grey"!==t&&"default"!==t?r.palette.common.white:r.palette.grey[900],tZ=(0,r.styled)(r.Chip,{shouldForwardProp:e=>"customColor"!==e&&"customVariant"!==e&&"rounded"!==e&&"customSize"!==e})`
237
+ `,tW=t=>(0,e.jsx)(tB,{...t});var tH=((w={}).DEFAULT="default",w.PRIMARY="primary",w.ERROR="error",w.GREY="grey",w.SUCCESS="success",w.WARNING="warning",w),tN=((v={}).CONTAINED="contained",v.LIGHT="light",v.TEXT="text",v),tV=((j={}).DEFAULT="default",j.HOVER="hover",j.ACTIVE="active",j);let t_={small:"20px",medium:"24px",large:"32px"},tU=e=>{let{tagColor:t,variant:r}=e;return r===tN.CONTAINED?"white":({[tH.PRIMARY]:"primary",[tH.ERROR]:"error",[tH.GREY]:"grey",[tH.SUCCESS]:"success",[tH.WARNING]:"warning",[tH.DEFAULT]:"grey"})[t||"default"]},tG=({theme:e,customColor:t,customVariant:r,disabled:o})=>{if(o)return e.palette.grey[100];if("text"===r)return"transparent";let i={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 r&&t?i[r][t]:!r&&t?i.contained[t]:e.palette.grey[300]},tX=({theme:e,customColor:t,customVariant:r,disabled:o})=>{if(o)return e.palette.text.disabled;if("text"===r)return e.palette.grey[900];let i={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 r||t?r||"grey"===t?t?r&&t?i[r][t]:e.palette.text.primary:i.contained.default:e.palette.common.white:e.palette.grey[900]},tY=({theme:e,iconState:t,customVariant:r,customColor:o})=>{let i={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"===r||"light"===r)&&o)return i[r][o||"default"];if("text"===r)return i.light.grey}return"transparent"},tZ=({customVariant:e,customColor:t,theme:r})=>"contained"===e&&"grey"!==t&&"default"!==t?r.palette.common.white:r.palette.grey[900],tq=(0,r.styled)(r.Chip,{shouldForwardProp:e=>"customColor"!==e&&"customVariant"!==e&&"rounded"!==e&&"customSize"!==e})`
238
238
  user-select: none;
239
239
 
240
- height: ${({customSize:e})=>tV[e]};
240
+ height: ${({customSize:e})=>t_[e]};
241
241
 
242
242
  font-size: 14px;
243
243
 
244
- background-color: ${tU};
244
+ background-color: ${tG};
245
245
  border-radius: ${({theme:e,rounded:t})=>t?"100px":e.shape.small};
246
246
 
247
247
  &:hover {
248
- color: ${tG};
248
+ color: ${tX};
249
249
 
250
- background-color: ${tU};
250
+ background-color: ${tG};
251
251
  }
252
252
 
253
253
  &:active {
254
- color: ${tG};
254
+ color: ${tX};
255
255
 
256
- background-color: ${tU};
256
+ background-color: ${tG};
257
257
  }
258
258
 
259
259
  .MuiChip-label {
260
260
  padding: ${({theme:e,rounded:t,customSize:r})=>{if(t)return e.spacing(0,2);switch(r){case"small":return e.spacing(0,1);case"medium":case"large":return e.spacing(0,2)}}};
261
261
 
262
- color: ${tG};
262
+ color: ${tX};
263
263
 
264
264
  &:hover {
265
- color: ${tG};
265
+ color: ${tX};
266
266
  }
267
267
 
268
268
  &:active {
269
- color: ${tG};
269
+ color: ${tX};
270
270
  }
271
271
  }
272
272
 
@@ -275,21 +275,21 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
275
275
  height: 20px;
276
276
  margin: 0;
277
277
 
278
- color: ${tY};
278
+ color: ${tZ};
279
279
 
280
- background: ${e=>tX({...e,iconState:tN.DEFAULT})};
280
+ background: ${e=>tY({...e,iconState:tV.DEFAULT})};
281
281
  border-radius: ${({theme:e,rounded:t})=>t?"100px":`0 ${e.shape.small} ${e.shape.small} 0`};
282
282
 
283
283
  &:hover {
284
- color: ${tY};
284
+ color: ${tZ};
285
285
 
286
- background: ${e=>tX({...e,iconState:tN.HOVER})};
286
+ background: ${e=>tY({...e,iconState:tV.HOVER})};
287
287
  }
288
288
 
289
289
  &:active {
290
- color: ${tY};
290
+ color: ${tZ};
291
291
 
292
- background: ${e=>tX({...e,iconState:tN.ACTIVE})};
292
+ background: ${e=>tY({...e,iconState:tV.ACTIVE})};
293
293
  }
294
294
  }
295
295
 
@@ -302,46 +302,46 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
302
302
  height: 16px;
303
303
  margin: 2px;
304
304
 
305
- color: ${tG};
305
+ color: ${tX};
306
306
  }
307
307
 
308
308
  .MuiChip-icon {
309
309
  width: 16px;
310
310
  height: 16px;
311
311
  }
312
- `,tq=(0,r.styled)(tB)`
312
+ `,tK=(0,r.styled)(tW)`
313
313
  flex-direction: column;
314
314
  align-items: center;
315
315
  justify-content: flex-start;
316
- `,tK=(0,t.forwardRef)(({color:t="grey",variant:r="contained",deleteIcon:i,size:n="small",label:l,startAddon:a,endAddon:s,...d},p)=>{let c=tL(),u=(0,e.jsxs)(tq,{children:[a&&(0,e.jsx)(a,{color:t_({variant:r,tagColor:t,theme:c})}),l,s&&(0,e.jsx)(s,{color:t_({variant:r,tagColor:t,theme:c})})]});return(0,e.jsx)(tZ,{ref:p,customColor:t,customVariant:r,customSize:n,label:u,...d,deleteIcon:i||(0,e.jsx)(o.X,{})})}),tJ=e=>`display: inline-flex;
316
+ `,tJ=(0,t.forwardRef)(({color:t="grey",variant:r="contained",deleteIcon:i,size:n="small",label:l,startAddon:a,endAddon:s,...d},p)=>{let c=tz(),u=(0,e.jsxs)(tK,{children:[a&&(0,e.jsx)(a,{color:tU({variant:r,tagColor:t,theme:c})}),l,s&&(0,e.jsx)(s,{color:tU({variant:r,tagColor:t,theme:c})})]});return(0,e.jsx)(tq,{ref:p,customColor:t,customVariant:r,customSize:n,label:u,...d,deleteIcon:i||(0,e.jsx)(o.X,{})})}),tQ=e=>`display: inline-flex;
317
317
  justify-content: center;
318
318
  font-size: ${e.typography.h5.fontSize};
319
- vertical-align: middle;`,tQ=(0,r.styled)("span")`
319
+ vertical-align: middle;`,t0=(0,r.styled)("span")`
320
320
  display: flex;
321
321
 
322
322
  color: ${({success:e,error:t,theme:r})=>e?r.palette.success.dark:t?r.palette.error.dark:"inherit"};
323
- `,t0=(0,r.styled)(o.CircleCheck)`
324
- ${({theme:e})=>tJ(e)}
325
- `,t1=(0,r.styled)(o.OctagonAlert)`
326
- ${({theme:e})=>tJ(e)}
327
- `,t2=(0,r.styled)("span")`
323
+ `,t1=(0,r.styled)(o.CircleCheck)`
324
+ ${({theme:e})=>tQ(e)}
325
+ `,t2=(0,r.styled)(o.OctagonAlert)`
326
+ ${({theme:e})=>tQ(e)}
327
+ `,t3=(0,r.styled)("span")`
328
328
  vertical-align: middle;
329
- `,t3=({success:r,error:o,children:i})=>{let n=(0,t.useMemo)(()=>r?(0,e.jsx)(t0,{}):o?(0,e.jsx)(t1,{}):null,[r,o]);return i?(0,e.jsxs)(tQ,{error:o,success:r,children:[n,(0,e.jsx)(t2,{children:i})]}):null},t4=({children:t,success:o,error:i,...n})=>(0,e.jsx)(r.FormHelperText,{...n,children:(0,e.jsx)(t3,{error:i,success:o,children:t})}),t8=({success:o,error:i,helperText:n,fullWidth:l=!1,startAdornment:a,endAdornment:s,slotProps:d,maxLength:p,trimmed:c=!0,onBlur:u,...g})=>{let h=(0,t.useMemo)(()=>{if(o)return"success"},[o]),m=(0,t.useMemo)(()=>o?(0,e.jsx)(t3,{success:!0,children:n}):i?(0,e.jsx)(t3,{error:!0,children:n}):n||(0,e.jsx)(e.Fragment,{}),[n,o,i]);return(0,e.jsx)(r.TextField,{variant:"outlined",fullWidth:l,error:i,color:h,helperText:m,slotProps:{htmlInput:{maxLength:p},input:{startAdornment:a,endAdornment:s},...d},onBlur:e=>{if(c){let t=e.target.value?.trim();g.onChange?.({...e,target:{...e.target,value:t}})}u?.(e)},...g})},t6=(0,r.styled)(eb)`
329
+ `,t4=({success:r,error:o,children:i})=>{let n=(0,t.useMemo)(()=>r?(0,e.jsx)(t1,{}):o?(0,e.jsx)(t2,{}):null,[r,o]);return i?(0,e.jsxs)(t0,{error:o,success:r,children:[n,(0,e.jsx)(t3,{children:i})]}):null},t8=({children:t,success:o,error:i,...n})=>(0,e.jsx)(r.FormHelperText,{...n,children:(0,e.jsx)(t4,{error:i,success:o,children:t})}),t6=({success:o,error:i,helperText:n,fullWidth:l=!1,startAdornment:a,endAdornment:s,slotProps:d,maxLength:p,trimmed:c=!0,onBlur:u,...g})=>{let h=(0,t.useMemo)(()=>{if(o)return"success"},[o]),m=(0,t.useMemo)(()=>o?(0,e.jsx)(t4,{success:!0,children:n}):i?(0,e.jsx)(t4,{error:!0,children:n}):n||(0,e.jsx)(e.Fragment,{}),[n,o,i]);return(0,e.jsx)(r.TextField,{variant:"outlined",fullWidth:l,error:i,color:h,helperText:m,slotProps:{htmlInput:{maxLength:p},input:{startAdornment:a,endAdornment:s},...d},onBlur:e=>{if(c){let t=e.target.value?.trim();g.onChange?.({...e,target:{...e.target,value:t}})}u?.(e)},...g})},t9=(0,r.styled)(eC)`
330
330
  max-height: ${({theme:e})=>e.spacing(13)};
331
331
 
332
332
  ${({theme:e})=>e.breakpoints.down("sm")} {
333
333
  max-height: unset;
334
334
  }
335
- `,t9=e=>Array.isArray(e)?0===e.length:!e,t5=({value:e,isOptionEqualToValue:r,autoHighlight:o=!0,freeSolo:i,options:n,loading:l,isLoadedDataError:a,loadedDataError:s="Ошибка загрузки данных",noOptionsText:d="Нет данных",onInputChange:p})=>{let[c,u]=(0,t.useState)(""),g=t9(e),h=c.length>=1,m=n.length>0;return{isValueEmpty:g,isPopperVisible:h||m||l||a,autocompleteProps:{isOptionEqualToValue:(0,t.useCallback)((e,t)=>r?r(e,t):JSON.stringify(e)===JSON.stringify(t),[r]),autoHighlight:!i&&o,noOptionsText:a?s:d,onInputChange:(e,t,r)=>{p?.(e,t,r),l||u(t)}}}},t7=i=>{let{isValueEmpty:n,isPopperVisible:l,autocompleteProps:a}=t5(i),{required:s,success:d,error:p,label:c,getOptionLabel:u,helperText:g,inputRef:h,multiple:m,size:x="medium",placeholder:y="Начните вводить для поиска",overflowOption:f,closeText:b="Закрыть",openText:C="Открыть",clearText:$="Очистить",loadingText:w=(0,e.jsx)(U,{color:"primary"}),isLoadedDataError:v,loadedDataError:j,noOptionsText:k,autoHighlight:S,renderInput:M,renderTags:I,renderOption:F,...P}=i,T=(0,t.useCallback)(t=>{let r={...t,inputRef:h,required:s,placeholder:n?y:"",label:c,success:d,error:p,helperText:g,size:x};return M?M(r):(0,e.jsx)(t8,{...r})},[n,M,h,s,y,c,d,p,g,x]),A=(0,t.useCallback)((o,i,n,l)=>{if(F)return F(o,i,n,l);let a=!!o["aria-selected"];return(0,t.createElement)(t6,{...o,key:o.id,children:[m&&(0,e.jsx)(r.ListItemIcon,{children:(0,e.jsx)(eT,{role:"menuitemcheckbox",checked:a})}),(0,e.jsx)(ez,{rowsCount:2,...f,children:o.key})]})},[m,f,F]),D=(0,t.useCallback)((r,i,n)=>I?I(r,i,n):r.map((r,n)=>{let l=u?.(r)||"";return(0,t.createElement)(tK,{deleteIcon:(0,e.jsx)(o.X,{}),color:"grey",label:l,...i({index:n}),key:l})}),[u,I]),E=(0,t.useCallback)(t=>l?(0,e.jsx)(r.Popper,{...t}):null,[l]);return(0,e.jsx)(r.Autocomplete,{...P,size:x,clearText:$,closeText:b,openText:C,loadingText:w,multiple:m,disableCloseOnSelect:m,clearIcon:(0,e.jsx)(o.X,{}),popupIcon:(0,e.jsx)(o.ChevronDown,{}),forcePopupIcon:!0,slotProps:{clearIndicator:{disableRipple:!0},popper:{component:E}},getOptionLabel:u,renderInput:T,renderTags:D,renderOption:A,...a})},re=0,rt=300,rr="Нет данных",ro=({fetchOptions:e,fetchDelayMs:o=rt,minSymbolsToFetch:i=re,defaultValue:n,getOptionLabel:l,noOptionsText:a=rr,onOpen:s,onInputChange:d})=>{let[p,c]=(0,t.useState)(!1),[u,g]=(0,t.useState)(!0),[h,m]=(0,t.useState)(!0),x=(0,t.useRef)(null),[y,f]=(0,t.useState)([]),b=(0,t.useCallback)((0,r.debounce)(t=>{x.current?.abort();let r=new AbortController;x.current=r,e(t,r?.signal).then(e=>{f(e),m(0===e.length)}).finally(()=>{c(!1),x.current=null})},o),[e,o,a]);return{handleOpen:e=>{if(u){g(!1);let e=n&&l?l(n):"";(n||0===i)&&(c(!0),b(e))}s?.(e)},handleInputChange:(e,t,r)=>{if(!t||t.length<i)return b&&b.clear(),m(!1),c(!1),f([]);c(!0),u||b(t),d?.(e,t,r)},options:y,isLoadingData:p,emptyOptionsText:h?a:"Продолжайте вводить для поиска"}},ri=t=>{let{options:r,isLoadingData:o,handleOpen:i,handleInputChange:n,emptyOptionsText:l}=ro(t),{fetchOptions:a,fetchDelayMs:s,minSymbolsToFetch:d,isDisabled:p,isRequired:c,isSuccess:u,isError:g,isLoading:h,isFullWidth:m,onOpen:x,noOptionsText:y,onInputChange:f,...b}=t;return(0,e.jsx)(t7,{options:r,disabled:p,fullWidth:m,loading:h||o,onOpen:i,error:g,required:c,success:u,noOptionsText:l,onInputChange:n,...b})},rn=({$customColor:e,theme:t,$variantColor:r})=>{let o={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:o[r][e]},rl=({$customColor:e,theme:t,$variantColor:r})=>{let o={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"===r?t.palette.common.white:o[e||"default"]},ra=(0,r.styled)(r.Badge,{shouldForwardProp:e=>!["$customColor","$withBorder","$variantColor"].includes(e.toString())})`
335
+ `,t5=e=>Array.isArray(e)?0===e.length:!e,t7=({value:e,isOptionEqualToValue:r,autoHighlight:o=!0,freeSolo:i,options:n,loading:l,isLoadedDataError:a,loadedDataError:s="Ошибка загрузки данных",noOptionsText:d="Нет данных",onInputChange:p})=>{let[c,u]=(0,t.useState)(""),g=t5(e),h=c.length>=1,m=n.length>0;return{isValueEmpty:g,isPopperVisible:h||m||l||a,autocompleteProps:{isOptionEqualToValue:(0,t.useCallback)((e,t)=>r?r(e,t):JSON.stringify(e)===JSON.stringify(t),[r]),autoHighlight:!i&&o,noOptionsText:a?s:d,onInputChange:(e,t,r)=>{p?.(e,t,r),l||u(t)}}}},re=i=>{let{isValueEmpty:n,isPopperVisible:l,autocompleteProps:a}=t7(i),{required:s,success:d,error:p,label:c,getOptionLabel:u,helperText:g,inputRef:h,multiple:m,size:x="medium",placeholder:y="Начните вводить для поиска",overflowOption:f,closeText:b="Закрыть",openText:C="Открыть",clearText:$="Очистить",loadingText:w=(0,e.jsx)(U,{color:"primary"}),isLoadedDataError:v,loadedDataError:j,noOptionsText:k,autoHighlight:S,renderInput:M,renderTags:I,renderOption:F,...P}=i,T=(0,t.useCallback)(t=>{let r={...t,inputRef:h,required:s,placeholder:n?y:"",label:c,success:d,error:p,helperText:g,size:x};return M?M(r):(0,e.jsx)(t6,{...r})},[n,M,h,s,y,c,d,p,g,x]),A=(0,t.useCallback)((o,i,n,l)=>{if(F)return F(o,i,n,l);let a=!!o["aria-selected"];return(0,t.createElement)(t9,{...o,key:o.id,children:[m&&(0,e.jsx)(r.ListItemIcon,{children:(0,e.jsx)(eA,{role:"menuitemcheckbox",checked:a})}),(0,e.jsx)(eB,{rowsCount:2,...f,children:o.key})]})},[m,f,F]),D=(0,t.useCallback)((r,i,n)=>I?I(r,i,n):r.map((r,n)=>{let l=u?.(r)||"";return(0,t.createElement)(tJ,{deleteIcon:(0,e.jsx)(o.X,{}),color:"grey",label:l,...i({index:n}),key:l})}),[u,I]),E=(0,t.useCallback)(t=>l?(0,e.jsx)(r.Popper,{...t}):null,[l]);return(0,e.jsx)(r.Autocomplete,{...P,size:x,clearText:$,closeText:b,openText:C,loadingText:w,multiple:m,disableCloseOnSelect:m,clearIcon:(0,e.jsx)(o.X,{}),popupIcon:(0,e.jsx)(o.ChevronDown,{}),forcePopupIcon:!0,slotProps:{clearIndicator:{disableRipple:!0},popper:{component:E}},getOptionLabel:u,renderInput:T,renderTags:D,renderOption:A,...a})},rt=0,rr=300,ro="Нет данных",ri=({fetchOptions:e,fetchDelayMs:o=rr,minSymbolsToFetch:i=rt,defaultValue:n,getOptionLabel:l,noOptionsText:a=ro,onOpen:s,onInputChange:d})=>{let[p,c]=(0,t.useState)(!1),[u,g]=(0,t.useState)(!0),[h,m]=(0,t.useState)(!0),x=(0,t.useRef)(null),[y,f]=(0,t.useState)([]),b=(0,t.useCallback)((0,r.debounce)(t=>{x.current?.abort();let r=new AbortController;x.current=r,e(t,r?.signal).then(e=>{f(e),m(0===e.length)}).finally(()=>{c(!1),x.current=null})},o),[e,o,a]);return{handleOpen:e=>{if(u){g(!1);let e=n&&l?l(n):"";(n||0===i)&&(c(!0),b(e))}s?.(e)},handleInputChange:(e,t,r)=>{if(!t||t.length<i)return b&&b.clear(),m(!1),c(!1),f([]);c(!0),u||b(t),d?.(e,t,r)},options:y,isLoadingData:p,emptyOptionsText:h?a:"Продолжайте вводить для поиска"}},rn=t=>{let{options:r,isLoadingData:o,handleOpen:i,handleInputChange:n,emptyOptionsText:l}=ri(t),{fetchOptions:a,fetchDelayMs:s,minSymbolsToFetch:d,isDisabled:p,isRequired:c,isSuccess:u,isError:g,isLoading:h,isFullWidth:m,onOpen:x,noOptionsText:y,onInputChange:f,...b}=t;return(0,e.jsx)(re,{options:r,disabled:p,fullWidth:m,loading:h||o,onOpen:i,error:g,required:c,success:u,noOptionsText:l,onInputChange:n,...b})},rl=({$customColor:e,theme:t,$variantColor:r})=>{let o={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:o[r][e]},ra=({$customColor:e,theme:t,$variantColor:r})=>{let o={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"===r?t.palette.common.white:o[e||"default"]},rs=(0,r.styled)(r.Badge,{shouldForwardProp:e=>!["$customColor","$withBorder","$variantColor"].includes(e.toString())})`
336
336
  .MuiBadge-badge {
337
337
  height: 20px;
338
338
  padding: ${({theme:e})=>e.spacing(0,1)};
339
339
 
340
340
  font-size: ${({theme:e})=>e.typography.caption.fontSize};
341
341
  line-height: 20px;
342
- color: ${({$customColor:e,theme:t,$variantColor:r})=>rl({$customColor:e,theme:t,$variantColor:r})};
342
+ color: ${({$customColor:e,theme:t,$variantColor:r})=>ra({$customColor:e,theme:t,$variantColor:r})};
343
343
 
344
- background-color: ${({$customColor:e,theme:t,$variantColor:r})=>rn({$customColor:e,theme:t,$variantColor:r})};
344
+ background-color: ${({$customColor:e,theme:t,$variantColor:r})=>rl({$customColor:e,theme:t,$variantColor:r})};
345
345
  border: ${({$withBorder:e,theme:t})=>e?`2px solid ${t.palette.common.white}`:"none"};
346
346
  border-radius: ${({$withBorder:e})=>e?"12px":null};
347
347
  }
@@ -352,34 +352,34 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
352
352
 
353
353
  border: 2px solid ${({theme:e})=>e.palette.common.white};
354
354
  }
355
- `,rs=({children:t,color:r,max:o=99,withBorder:i=!0,variantColor:n="contained",...l})=>(0,e.jsx)(ra,{$customColor:r,max:o,$withBorder:i,$variantColor:n,...l,children:t}),rd=t=>(0,e.jsx)(r.FormControl,{...t}),rp=(0,r.styled)(r.FormControlLabel)`
355
+ `,rd=({children:t,color:r,max:o=99,withBorder:i=!0,variantColor:n="contained",...l})=>(0,e.jsx)(rs,{$customColor:r,max:o,$withBorder:i,$variantColor:n,...l,children:t}),rp=t=>(0,e.jsx)(r.FormControl,{...t}),rc=(0,r.styled)(r.FormControlLabel)`
356
356
  margin-right: 0;
357
357
  margin-left: -5px;
358
358
 
359
359
  & .MuiFormControlLabel-label {
360
360
  margin-left: ${({theme:e})=>e.spacing(1)};
361
361
  }
362
- `,rc=t=>(0,e.jsx)(rp,{...t}),ru=(0,r.styled)(rc)`
362
+ `,ru=t=>(0,e.jsx)(rc,{...t}),rg=(0,r.styled)(ru)`
363
363
  align-items: flex-start;
364
- `,rg=(0,r.styled)(eT)`
364
+ `,rh=(0,r.styled)(eA)`
365
365
  padding-top: 3px;
366
- `,rh=({isSuccess:r,helperText:o,hideHelperText:i=!1,label:n,isError:l,...a})=>{let s=(0,t.useMemo)(()=>!!(l&&i),[l,i]);return(0,e.jsxs)(rd,{children:[(0,e.jsx)(ef,{title:s&&o,placement:"bottom-start",withoutContainer:!1,children:(0,e.jsx)(ru,{control:(0,e.jsx)(rg,{isError:l,...a}),label:n})}),!i&&(0,e.jsx)(t4,{error:l,success:r,children:o})]})},rm={noDataImgSrc:"",defaultErrorImgSrc:"",outdatedReleaseErrorImgSrc:"",mailImgSrc:""},rx={phone:"",email:""},ry="ym-hide-content",rf=(0,t.createContext)({language:"ru",captureException:e=>console.error(e),imagesMap:rm,techSup:rx,emptySymbol:"—",hidePersonalDataClassname:ry,hidePersonalData:!0}),rb=({children:r,language:o="ru",captureException:i,emptySymbol:n="—",imagesMap:l=rm,techSup:a=rx,hidePersonalData:s=!0,hidePersonalDataClassname:d=ry,components:p})=>((0,t.useEffect)(()=>{i||console.warn("ConfigProvider: Необходимо наличие captureException, связанного с сервисом мониторинга ошибок.\nНа данный момент все ошибки, отлавливаемые в ErrorBoundary будут выводиться только в консоль")},[]),(0,e.jsx)(rf.Provider,{value:{language:o,captureException:i||(e=>console.error(e)),emptySymbol:n,imagesMap:l,techSup:a,hidePersonalData:s,hidePersonalDataClassname:d,components:p},children:r})),rC=({children:t,onClose:o,open:i,title:n,...l})=>{let{isMobile:a}=et();return a?(0,e.jsx)(ep,{title:n,onClose:o,open:i,children:t}):(0,e.jsx)(r.Popover,{open:i,onClose:o,...l,children:t})},r$={vertical:"bottom",horizontal:"right"},rw={vertical:"top",horizontal:"right"},rv=(0,r.styled)("div")`
366
+ `,rm=({isSuccess:r,helperText:o,hideHelperText:i=!1,label:n,isError:l,...a})=>{let s=(0,t.useMemo)(()=>!!(l&&i),[l,i]);return(0,e.jsxs)(rp,{children:[(0,e.jsx)(eb,{title:s&&o,placement:"bottom-start",withoutContainer:!1,children:(0,e.jsx)(rg,{control:(0,e.jsx)(rh,{isError:l,...a}),label:n})}),!i&&(0,e.jsx)(t8,{error:l,success:r,children:o})]})},rx={noDataImgSrc:"",defaultErrorImgSrc:"",outdatedReleaseErrorImgSrc:"",mailImgSrc:""},ry={phone:"",email:""},rf="ym-hide-content",rb=(0,t.createContext)({language:"ru",captureException:e=>console.error(e),imagesMap:rx,techSup:ry,emptySymbol:"—",hidePersonalDataClassname:rf,hidePersonalData:!0}),rC=({children:r,language:o="ru",captureException:i,emptySymbol:n="—",imagesMap:l=rx,techSup:a=ry,hidePersonalData:s=!0,hidePersonalDataClassname:d=rf,components:p})=>((0,t.useEffect)(()=>{i||console.warn("ConfigProvider: Необходимо наличие captureException, связанного с сервисом мониторинга ошибок.\nНа данный момент все ошибки, отлавливаемые в ErrorBoundary будут выводиться только в консоль")},[]),(0,e.jsx)(rb.Provider,{value:{language:o,captureException:i||(e=>console.error(e)),emptySymbol:n,imagesMap:l,techSup:a,hidePersonalData:s,hidePersonalDataClassname:d,components:p},children:r})),r$=({children:t,onClose:o,open:i,title:n,...l})=>{let{isMobile:a}=et();return a?(0,e.jsx)(ec,{title:n,onClose:o,open:i,children:t}):(0,e.jsx)(r.Popover,{open:i,onClose:o,...l,children:t})},rw={vertical:"bottom",horizontal:"right"},rv={vertical:"top",horizontal:"right"},rj=(0,r.styled)("div")`
367
367
  max-width: 380px;
368
368
  padding: ${({theme:e})=>e.spacing(4)};
369
- `,rj=(0,r.styled)(D)`
369
+ `,rk=(0,r.styled)(D)`
370
370
  margin-bottom: ${({theme:e})=>e.spacing(3)};
371
- `,rk=(0,r.styled)("div")`
371
+ `,rS=(0,r.styled)("div")`
372
372
  display: flex;
373
373
  gap: ${({theme:e})=>e.spacing(3)};
374
374
  justify-content: end;
375
- `,rS=({confirmButtonProps:e,onConfirm:t})=>{let{isOpen:r,anchor:o,actions:i}=eo(),{isAccented:n}=e||{},l=n?H.Light:H.Contained,a=n?W.Error:W.Primary;return{actionComponentProps:{onClick:i.open},popoverProps:{open:r,anchorEl:o,onClose:i.close},cancelButtonProps:{onClick:i.close},confirmButtonProps:{variant:l,color:a,onClick:()=>{t(),i.close()}}}},rM=t=>{let{actionComponentProps:r,popoverProps:o,cancelButtonProps:i,confirmButtonProps:n}=rS(t),{text:l,confirmButtonProps:a,popoverProps:s,actionComponent:d}=t,{text:p="Подтвердить"}=a||{},{anchorOrigin:c=r$,transformOrigin:u=rw}=s||{};return(0,e.jsxs)(e.Fragment,{children:[d(r),(0,e.jsx)(rC,{anchorOrigin:c,transformOrigin:u,...o,children:(0,e.jsxs)(rv,{children:[l&&(0,e.jsx)(rj,{children:l}),(0,e.jsxs)(rk,{children:[(0,e.jsx)(q,{variant:"text",...i,children:"Отмена"}),(0,e.jsx)(q,{...n,children:p})]})]})})]})},rI="small",rF="medium",rP="large",rT={[rI]:"239px",[rF]:"323px",[rP]:"458px"},rA={[rI]:"119px",[rF]:"161px",[rP]:"229px"},rD={[rI]:"384px",[rF]:"400px",[rP]:"460px"},rE={[rI]:"h5",[rF]:"h4",[rP]:"h3"},rR=(0,r.styled)("img",{shouldForwardProp:e=>"size"!==e})`
375
+ `,rM=({confirmButtonProps:e,onConfirm:t})=>{let{isOpen:r,anchor:o,actions:i}=eo(),{isAccented:n}=e||{},l=n?H.Light:H.Contained,a=n?W.Error:W.Primary;return{actionComponentProps:{onClick:i.open},popoverProps:{open:r,anchorEl:o,onClose:i.close},cancelButtonProps:{onClick:i.close},confirmButtonProps:{variant:l,color:a,onClick:()=>{t(),i.close()}}}},rI=t=>{let{actionComponentProps:r,popoverProps:o,cancelButtonProps:i,confirmButtonProps:n}=rM(t),{text:l,confirmButtonProps:a,popoverProps:s,actionComponent:d}=t,{text:p="Подтвердить"}=a||{},{anchorOrigin:c=rw,transformOrigin:u=rv}=s||{};return(0,e.jsxs)(e.Fragment,{children:[d(r),(0,e.jsx)(r$,{anchorOrigin:c,transformOrigin:u,...o,children:(0,e.jsxs)(rj,{children:[l&&(0,e.jsx)(rk,{children:l}),(0,e.jsxs)(rS,{children:[(0,e.jsx)(q,{variant:"text",...i,children:"Отмена"}),(0,e.jsx)(q,{...n,children:p})]})]})})]})},rF="small",rP="medium",rT="large",rA={[rF]:"239px",[rP]:"323px",[rT]:"458px"},rD={[rF]:"119px",[rP]:"161px",[rT]:"229px"},rE={[rF]:"384px",[rP]:"400px",[rT]:"460px"},rR={[rF]:"h5",[rP]:"h4",[rT]:"h3"},rO=(0,r.styled)("img",{shouldForwardProp:e=>"size"!==e})`
376
376
  display: block;
377
377
 
378
378
  width: ${({width:e})=>e||"auto"};
379
379
  max-width: 100%;
380
380
  height: ${({height:e})=>e||"auto"};
381
381
  margin: auto auto
382
- ${({theme:e,size:t})=>t===rI?e.spacing(4):e.spacing(6)};
382
+ ${({theme:e,size:t})=>t===rF?e.spacing(4):e.spacing(6)};
383
383
 
384
384
  color: ${({theme:e})=>e.palette.grey[900]};
385
385
 
@@ -388,10 +388,10 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
388
388
  ${({theme:e})=>e.breakpoints.down("sm")} {
389
389
  margin: auto auto ${({theme:e})=>e.spacing(8)};
390
390
  }
391
- `,rO=rR,rL=rR.withComponent,rz=e=>"$size"!==e,rB=(0,r.styled)("div",{shouldForwardProp:rz})`
391
+ `,rL=rO,rz=rO.withComponent,rB=e=>"$size"!==e,rW=(0,r.styled)("div",{shouldForwardProp:rB})`
392
392
  display: flex;
393
393
  flex-direction: column;
394
- gap: ${({theme:e,$size:t})=>t===rI?e.spacing(4):e.spacing(6)};
394
+ gap: ${({theme:e,$size:t})=>t===rF?e.spacing(4):e.spacing(6)};
395
395
  align-items: center;
396
396
  justify-content: center;
397
397
 
@@ -407,11 +407,11 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
407
407
  grid-template-rows: 1fr max-content;
408
408
  gap: ${({theme:e})=>e.spacing(4)};
409
409
  }
410
- `,rW=(0,r.styled)("div",{shouldForwardProp:rz})`
411
- max-width: ${({$size:e})=>rD[e]};
410
+ `,rH=(0,r.styled)("div",{shouldForwardProp:rB})`
411
+ max-width: ${({$size:e})=>rE[e]};
412
412
  margin: 0 auto;
413
- `,rH=(0,r.styled)(D,{shouldForwardProp:rz})`
414
- margin-bottom: ${({theme:e,$size:t})=>t===rI?e.spacing(2):e.spacing(4)};
413
+ `,rN=(0,r.styled)(D,{shouldForwardProp:rB})`
414
+ margin-bottom: ${({theme:e,$size:t})=>t===rF?e.spacing(2):e.spacing(4)};
415
415
 
416
416
  text-align: center;
417
417
 
@@ -422,17 +422,17 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
422
422
  font-weight: ${({theme:e})=>e.typography.fontWeightMedium};
423
423
  color: ${({theme:e})=>e.palette.text.secondary};
424
424
  }
425
- `,rN=(0,r.styled)(D,{shouldForwardProp:rz})`
425
+ `,rV=(0,r.styled)(D,{shouldForwardProp:rB})`
426
426
  display: block;
427
427
 
428
- font-size: ${({$size:e,theme:t})=>e===rP?t.typography.pxToRem(16):t.typography.body1.fontSize};
428
+ font-size: ${({$size:e,theme:t})=>e===rT?t.typography.pxToRem(16):t.typography.body1.fontSize};
429
429
  text-align: center;
430
430
 
431
431
  ${({theme:e})=>e.breakpoints.down("sm")} {
432
432
  font-size: ${({theme:e})=>e.typography.body1.fontSize};
433
433
  color: ${({theme:e})=>e.palette.text.secondary};
434
434
  }
435
- `,rV=(0,r.styled)("footer")`
435
+ `,r_=(0,r.styled)("footer")`
436
436
  display: flex;
437
437
  flex-wrap: wrap;
438
438
  gap: ${({theme:e})=>e.spacing(2)};
@@ -446,7 +446,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
446
446
 
447
447
  margin-top: auto;
448
448
  }
449
- `,r_=({className:r,title:o,imgSrc:i,imgAlt:n,description:l,Actions:a,size:s="small",imgWidth:d,renderImage:p})=>{let c=(0,t.useContext)(rf),u=c.components?.placeholder?.defaultProps?.renderImage,g=(0,t.useMemo)(()=>p&&rL(p)||u&&rL(u)||rO,[p,u]);return(0,e.jsxs)(rB,{$size:s,className:r,children:[(0,e.jsxs)(rW,{$size:s,children:[i&&(0,e.jsx)(g,{src:i,alt:n,width:d||rT[s],height:d?"auto":rA[s],size:s}),(0,e.jsx)(rH,{$size:s,variant:rE[s],children:o}),l&&(0,e.jsx)(rN,{$size:s,component:"div",variant:"body1",children:l})]}),a&&(0,e.jsx)(rV,{children:a})]})},rU=()=>{let{imagesMap:o,techSup:i}=(0,t.useContext)(rf);return(0,e.jsx)(r_,{title:"Произошла непредвиденная ошибка",description:(0,e.jsxs)("div",{children:[(0,e.jsx)(D,{children:"Пожалуйста, попробуйте обновить страницу или обратитесь в техническую поддержку:"}),(0,e.jsxs)(D,{children:["email\xa0",(0,e.jsx)(r.Link,{href:`mailto:${i.email}`,children:i.email}),", телефон\xa0",(0,e.jsx)(r.Link,{href:`tel:${i.phone}`,children:i.phone})]})]}),imgAlt:"Непредвиденная ошибка",imgSrc:o.defaultErrorImgSrc,imgWidth:"324px",Actions:(0,e.jsx)(q,{onClick:()=>{location.reload()},children:"Обновить страницу"})})},rG=()=>{let{imagesMap:r}=(0,t.useContext)(rf);return(0,e.jsx)(r_,{title:"Обновление в сервисе",description:(0,e.jsx)(D,{component:"p",children:"Наши специалисты работают над улучшением качества продукта. Для загрузки обновлений, пожалуйста, обновите страницу."}),imgAlt:"Обновление в сервисе",imgSrc:r.outdatedReleaseErrorImgSrc,imgWidth:"324px",Actions:(0,e.jsx)(q,{onClick:()=>{location.reload()},children:"Обновить страницу"})})};var rX=((k={}).OutdatedRelease="outdatedRelease",k.Default="default",k);let rY=[{type:rX.OutdatedRelease,condition:e=>"ChunkLoadError"===e.name||e.message.includes("Failed to fetch dynamically imported module")},{type:rX.Default,condition:()=>!0}],rZ={[rX.OutdatedRelease]:(0,e.jsx)(rG,{}),[rX.Default]:(0,e.jsx)(rU,{})};class rq extends t.default.Component{static contextType=rf;context;state={hasError:!1,typeError:rX.Default};static getDerivedStateFromError(e){return{hasError:!0,typeError:rY.find(({condition:t})=>t(e))?.type??rX.Default}}componentDidCatch(e){this.context.captureException(e)}render(){return this.state.hasError?rZ[this.state.typeError]:this.props.children}}let rK=(0,r.styled)("div")`
449
+ `,rU=({className:r,title:o,imgSrc:i,imgAlt:n,description:l,Actions:a,size:s="small",imgWidth:d,renderImage:p})=>{let c=(0,t.useContext)(rb),u=c.components?.placeholder?.defaultProps?.renderImage,g=(0,t.useMemo)(()=>p&&rz(p)||u&&rz(u)||rL,[p,u]);return(0,e.jsxs)(rW,{$size:s,className:r,children:[(0,e.jsxs)(rH,{$size:s,children:[i&&(0,e.jsx)(g,{src:i,alt:n,width:d||rA[s],height:d?"auto":rD[s],size:s}),(0,e.jsx)(rN,{$size:s,variant:rR[s],children:o}),l&&(0,e.jsx)(rV,{$size:s,component:"div",variant:"body1",children:l})]}),a&&(0,e.jsx)(r_,{children:a})]})},rG=()=>{let{imagesMap:o,techSup:i}=(0,t.useContext)(rb);return(0,e.jsx)(rU,{title:"Произошла непредвиденная ошибка",description:(0,e.jsxs)("div",{children:[(0,e.jsx)(D,{children:"Пожалуйста, попробуйте обновить страницу или обратитесь в техническую поддержку:"}),(0,e.jsxs)(D,{children:["email\xa0",(0,e.jsx)(r.Link,{href:`mailto:${i.email}`,children:i.email}),", телефон\xa0",(0,e.jsx)(r.Link,{href:`tel:${i.phone}`,children:i.phone})]})]}),imgAlt:"Непредвиденная ошибка",imgSrc:o.defaultErrorImgSrc,imgWidth:"324px",Actions:(0,e.jsx)(q,{onClick:()=>{location.reload()},children:"Обновить страницу"})})},rX=()=>{let{imagesMap:r}=(0,t.useContext)(rb);return(0,e.jsx)(rU,{title:"Обновление в сервисе",description:(0,e.jsx)(D,{component:"p",children:"Наши специалисты работают над улучшением качества продукта. Для загрузки обновлений, пожалуйста, обновите страницу."}),imgAlt:"Обновление в сервисе",imgSrc:r.outdatedReleaseErrorImgSrc,imgWidth:"324px",Actions:(0,e.jsx)(q,{onClick:()=>{location.reload()},children:"Обновить страницу"})})};var rY=((k={}).OutdatedRelease="outdatedRelease",k.Default="default",k);let rZ=[{type:rY.OutdatedRelease,condition:e=>"ChunkLoadError"===e.name||e.message.includes("Failed to fetch dynamically imported module")},{type:rY.Default,condition:()=>!0}],rq={[rY.OutdatedRelease]:(0,e.jsx)(rX,{}),[rY.Default]:(0,e.jsx)(rG,{})};class rK extends t.default.Component{static contextType=rb;context;state={hasError:!1,typeError:rY.Default};static getDerivedStateFromError(e){return{hasError:!0,typeError:rZ.find(({condition:t})=>t(e))?.type??rY.Default}}componentDidCatch(e){this.context.captureException(e)}render(){return this.state.hasError?rq[this.state.typeError]:this.props.children}}let rJ=(0,r.styled)("div")`
450
450
  display: flex;
451
451
  flex-grow: 1;
452
452
  align-items: center;
@@ -454,7 +454,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
454
454
 
455
455
  width: 100%;
456
456
  height: 100%;
457
- `,rJ=({isLoading:r,isError:o,isCustom:i,errorState:n,customState:l,children:a,loadingContent:s=(0,e.jsx)(U,{color:"primary"})})=>{let{imagesMap:d}=(0,t.useContext)(rf);if(r)return(0,e.jsx)(rK,{children:s});if(i&&l)return(0,e.jsx)(r_,{...l});if(o&&n){let{title:t="Произошла ошибка",imgAlt:r,imgSrc:o=d.defaultErrorImgSrc,errorList:i,onRetry:l,actions:a=(0,e.jsx)(q,{onClick:l,children:"Попробовать снова"})}=n,s=i.map(t=>(0,e.jsx)(D,{component:"p",children:t},t));return(0,e.jsx)(r_,{title:t,description:s,imgAlt:r,imgSrc:o,Actions:a})}return(0,e.jsx)(rq,{children:a})},rQ=(0,r.styled)(D)`
457
+ `,rQ=({isLoading:r,isError:o,isCustom:i,errorState:n,customState:l,children:a,loadingContent:s=(0,e.jsx)(U,{color:"primary"})})=>{let{imagesMap:d}=(0,t.useContext)(rb);if(r)return(0,e.jsx)(rJ,{children:s});if(i&&l)return(0,e.jsx)(rU,{...l});if(o&&n){let{title:t="Произошла ошибка",imgAlt:r,imgSrc:o=d.defaultErrorImgSrc,errorList:i,onRetry:l,actions:a=(0,e.jsx)(q,{onClick:l,children:"Попробовать снова"})}=n,s=i.map(t=>(0,e.jsx)(D,{component:"p",children:t},t));return(0,e.jsx)(rU,{title:t,description:s,imgAlt:r,imgSrc:o,Actions:a})}return(0,e.jsx)(rK,{children:a})},r0=(0,r.styled)(D)`
458
458
  cursor: pointer;
459
459
 
460
460
  display: flex;
@@ -463,7 +463,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
463
463
  &:hover {
464
464
  text-decoration: underline;
465
465
  }
466
- `,r0=(0,r.styled)(o.Copy,{shouldForwardProp:e=>!["$copyPosition"].includes(e.toString())})`
466
+ `,r1=(0,r.styled)(o.Copy,{shouldForwardProp:e=>!["$copyPosition"].includes(e.toString())})`
467
467
  margin-right: ${({$copyPosition:e,theme:t})=>"left"===e?t.spacing(1):""};
468
468
  margin-left: ${({$copyPosition:e,theme:t})=>"right"===e?t.spacing(1):""};
469
469
 
@@ -471,7 +471,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
471
471
  font-size: 16px;
472
472
 
473
473
  fill: ${({color:e})=>e};
474
- `;var r1=((S={}).Copied="Скопировано",S.Error="Ошибка копирования",S.CanCopy="Скопировать",S);let r2=({children:e,copyText:r,isShowCopyText:o,copyPosition:i})=>{let[n,l]=(0,t.useState)(r1.CanCopy);return{handleMouseLeave:()=>{n!==r1.CanCopy&&setTimeout(()=>{l(r1.CanCopy)},100)},handleClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(r||("string"==typeof e?e:"")).then(()=>l(r1.Copied)).catch(()=>l(r1.Error))},tooltipTitle:o?`${n}: ${r}`:n,isIconOnLeft:"left"===i}},r3=t=>{let{children:r,copyPosition:o="right",copyText:i,isShowCopyText:n,color:l,...a}=t,s=()=>(0,e.jsx)(r0,{$copyPosition:o,color:l}),{handleMouseLeave:d,handleClick:p,tooltipTitle:c,isIconOnLeft:u}=r2(t);return(0,e.jsx)(ef,{title:c,disableInteractive:!0,placement:"bottom",children:(0,e.jsxs)(rQ,{onMouseLeave:d,onClick:p,component:"div",color:l,...a,children:[u&&s(),r,!u&&s()]})})},r4="data-row-disable",r8="astral-ui_datagrid_row_hidden",r6=44,r9=32,r5=r9/2,r7=10,oe=1,ot=2,or=(0,r.styled)("ul",{shouldForwardProp:e=>!["$level","$isShowConnector"].includes(e.toString())})`
474
+ `;var r2=((S={}).Copied="Скопировано",S.Error="Ошибка копирования",S.CanCopy="Скопировать",S);let r3=({children:e,copyText:r,isShowCopyText:o,copyPosition:i})=>{let[n,l]=(0,t.useState)(r2.CanCopy);return{handleMouseLeave:()=>{n!==r2.CanCopy&&setTimeout(()=>{l(r2.CanCopy)},100)},handleClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(r||("string"==typeof e?e:"")).then(()=>l(r2.Copied)).catch(()=>l(r2.Error))},tooltipTitle:o?`${n}: ${r}`:n,isIconOnLeft:"left"===i}},r4=t=>{let{children:r,copyPosition:o="right",copyText:i,isShowCopyText:n,color:l,...a}=t,s=()=>(0,e.jsx)(r1,{$copyPosition:o,color:l}),{handleMouseLeave:d,handleClick:p,tooltipTitle:c,isIconOnLeft:u}=r3(t);return(0,e.jsx)(eb,{title:c,disableInteractive:!0,placement:"bottom",children:(0,e.jsxs)(r0,{onMouseLeave:d,onClick:p,component:"div",color:l,...a,children:[u&&s(),r,!u&&s()]})})},r8="data-row-disable",r6="astral-ui_datagrid_row_hidden",r9=44,r5=32,r7=r5/2,oe=10,ot=1,or=2,oo=(0,r.styled)("ul",{shouldForwardProp:e=>!["$level","$isShowConnector"].includes(e.toString())})`
475
475
  position: relative;
476
476
 
477
477
  margin: 0;
@@ -485,7 +485,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
485
485
  position: absolute;
486
486
  z-index: 2;
487
487
  top: 0;
488
- transform: ${({$level:e})=>`translateX(calc(${r9}px * ${e} - ${r5}px))`};
488
+ transform: ${({$level:e})=>`translateX(calc(${r5}px * ${e} - ${r7}px))`};
489
489
 
490
490
  display: ${({$isShowConnector:e})=>e?"block":"none"};
491
491
 
@@ -494,57 +494,57 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
494
494
 
495
495
  border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
496
496
  }
497
- `,oo=(0,r.styled)("li",{shouldForwardProp:e=>!["$level","$isShowConnector","$gridColumns"].includes(e.toString())})`
497
+ `,oi=(0,r.styled)("li",{shouldForwardProp:e=>!["$level","$isShowConnector","$gridColumns"].includes(e.toString())})`
498
498
  position: relative;
499
499
 
500
500
  display: grid;
501
501
  grid-template-columns: ${({$gridColumns:e})=>e};
502
502
 
503
503
  height: 36px;
504
- margin-left: ${({$level:e})=>`${e*r9}px`};
504
+ margin-left: ${({$level:e})=>`${e*r5}px`};
505
505
 
506
506
  &::before {
507
507
  content: '';
508
508
 
509
509
  position: absolute;
510
510
  top: 0;
511
- left: -${r5}px;
511
+ left: -${r7}px;
512
512
 
513
513
  display: ${({$isShowConnector:e})=>e?"block":"none"};
514
514
 
515
- width: ${r5}px;
515
+ width: ${r7}px;
516
516
  height: 50%;
517
517
 
518
518
  border-bottom: 1px solid ${({theme:e})=>e.palette.grey[400]};
519
519
  border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
520
520
  border-radius: 0 0 0 ${({theme:e})=>e.shape.small};
521
521
  }
522
- `,oi=(0,r.styled)(q,{shouldForwardProp:e=>!["$moreButtonColumnPosition"].includes(e.toString())})`
522
+ `,on=(0,r.styled)(q,{shouldForwardProp:e=>!["$moreButtonColumnPosition"].includes(e.toString())})`
523
523
  grid-column: ${({$moreButtonColumnPosition:e})=>e};
524
524
  justify-self: start;
525
525
 
526
526
  margin: ${({theme:e})=>e.spacing(0,2)};
527
- `,on=(0,t.createContext)({checkIsOpened:()=>!1,checkIsMoreOpened:()=>!1,toggleOpenItems:()=>{},toggleOpenMoreItems:()=>{}}),ol={isOpenedItems:!0,iOpenedMoreItems:!1},oa=({children:r})=>{let[o,i]=(0,t.useState)({}),n=e=>!!o[e],l=e=>!!o[e]&&o[e].iOpenedMoreItems;return(0,e.jsx)(on.Provider,{value:{checkIsOpened:n,checkIsMoreOpened:l,toggleOpenItems:e=>i(t=>{if(n(e)){let r={...t};return delete r[e],r}return{...t,[e]:ol}}),toggleOpenMoreItems:e=>i(t=>{if(l(e)){let r={...t};return r[e]=ol,r}return{...t,[e]:{...ol,iOpenedMoreItems:!0}}})},children:r})};var os=((M={}).ASC="asc",M.DESC="desc",M),od=((I={}).Tree="tree",I.Subrows="subrows",I);let op=({rowId:e,data:r,level:o,variant:i,initialVisibleChildrenCount:n})=>{let{checkIsMoreOpened:l,toggleOpenMoreItems:a}=(0,t.useContext)(on),s=Object.is(i,od.Tree),d=r?.slice(0,n),p=r?.slice(n),c=l(e);return{isShowAllChildren:c,isShowMoreButton:!!p?.length,isShowConnector:s,initialVisibleChildren:d,otherChildren:p,nextLevel:s?o+1:0,handleToggleShowAllChildren:t=>{t.stopPropagation(),a(e)}}},oc=(0,t.memo)(t=>{let{isShowAllChildren:r,isShowMoreButton:o,isShowConnector:i,nextLevel:n,initialVisibleChildren:l,otherChildren:a,handleToggleShowAllChildren:s}=op(t),{isOpen:d,data:p,keyId:c,level:u,gridColumns:h,moreButtonColumnPosition:m,renderRow:x}=t;return p&&p.length?(0,e.jsx)(g,{in:d,unmountOnExit:!0,children:(0,e.jsxs)(or,{$level:u,$isShowConnector:i,children:[l.map(({children:e,options:t,...r})=>x({key:r[c],row:r,options:t,nestedChildren:e,level:n})),d&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{in:r,component:"li",unmountOnExit:!0,children:(0,e.jsx)(or,{$level:u,$isShowConnector:i,children:a.map(({children:e,options:t,...r})=>x({key:r[c],row:r,options:t,nestedChildren:e,level:n,className:r8}))})}),o&&(0,e.jsx)(oo,{$level:n,$isShowConnector:i,$gridColumns:h,children:(0,e.jsx)(oi,{$moreButtonColumnPosition:m,variant:"link",onClick:s,children:r?"Скрыть":"Показать все"})})]})]})}):null}),ou={left:"start",center:"center",right:"end"},og=e=>e&&ou[e]||"start",oh=(0,r.styled)("div",{shouldForwardProp:e=>!["$align","$isDisabled","$hasStartAdornment"].includes(e.toString())})`
527
+ `,ol=(0,t.createContext)({checkIsOpened:()=>!1,checkIsMoreOpened:()=>!1,toggleOpenItems:()=>{},toggleOpenMoreItems:()=>{}}),oa={isOpenedItems:!0,iOpenedMoreItems:!1},os=({children:r})=>{let[o,i]=(0,t.useState)({}),n=e=>!!o[e],l=e=>!!o[e]&&o[e].iOpenedMoreItems;return(0,e.jsx)(ol.Provider,{value:{checkIsOpened:n,checkIsMoreOpened:l,toggleOpenItems:e=>i(t=>{if(n(e)){let r={...t};return delete r[e],r}return{...t,[e]:oa}}),toggleOpenMoreItems:e=>i(t=>{if(l(e)){let r={...t};return r[e]=oa,r}return{...t,[e]:{...oa,iOpenedMoreItems:!0}}})},children:r})};var od=((M={}).ASC="asc",M.DESC="desc",M),op=((I={}).Tree="tree",I.Subrows="subrows",I);let oc=({rowId:e,data:r,level:o,variant:i,initialVisibleChildrenCount:n})=>{let{checkIsMoreOpened:l,toggleOpenMoreItems:a}=(0,t.useContext)(ol),s=Object.is(i,op.Tree),d=r?.slice(0,n),p=r?.slice(n),c=l(e);return{isShowAllChildren:c,isShowMoreButton:!!p?.length,isShowConnector:s,initialVisibleChildren:d,otherChildren:p,nextLevel:s?o+1:0,handleToggleShowAllChildren:t=>{t.stopPropagation(),a(e)}}},ou=(0,t.memo)(t=>{let{isShowAllChildren:r,isShowMoreButton:o,isShowConnector:i,nextLevel:n,initialVisibleChildren:l,otherChildren:a,handleToggleShowAllChildren:s}=oc(t),{isOpen:d,data:p,keyId:c,level:u,gridColumns:h,moreButtonColumnPosition:m,renderRow:x}=t;return p&&p.length?(0,e.jsx)(g,{in:d,unmountOnExit:!0,children:(0,e.jsxs)(oo,{$level:u,$isShowConnector:i,children:[l.map(({children:e,options:t,...r})=>x({key:r[c],row:r,options:t,nestedChildren:e,level:n})),d&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{in:r,component:"li",unmountOnExit:!0,children:(0,e.jsx)(oo,{$level:u,$isShowConnector:i,children:a.map(({children:e,options:t,...r})=>x({key:r[c],row:r,options:t,nestedChildren:e,level:n,className:r6}))})}),o&&(0,e.jsx)(oi,{$level:n,$isShowConnector:i,$gridColumns:h,children:(0,e.jsx)(on,{$moreButtonColumnPosition:m,variant:"link",onClick:s,children:r?"Скрыть":"Показать все"})})]})]})}):null}),og={left:"start",center:"center",right:"end"},oh=e=>e&&og[e]||"start",om=(0,r.styled)("div",{shouldForwardProp:e=>!["$align","$isDisabled","$hasStartAdornment"].includes(e.toString())})`
528
528
  overflow: hidden;
529
529
  display: flex;
530
530
  align-items: center;
531
- justify-content: ${({$align:e})=>og(e)};
531
+ justify-content: ${({$align:e})=>oh(e)};
532
532
 
533
- min-height: ${r6}px;
533
+ min-height: ${r9}px;
534
534
  padding: ${({theme:e,$hasStartAdornment:t})=>t?e.spacing(1,2,1,0):e.spacing(1,2)};
535
535
 
536
536
  opacity: ${({$isDisabled:e})=>e?.5:1};
537
- `,om=({row:e,cell:r,emptyCellValue:o,startAdornment:i})=>{let{format:n,field:l}=r,a=e=>!!e||0===e;return{formattedValue:(0,t.useMemo)(()=>n&&a(n(e))?n(e):l&&a(e[l])?e[l]:o,[l,n,e,o]),hasStartAdornment:!!i}},ox=(0,r.styled)("li")`
537
+ `,ox=({row:e,cell:r,emptyCellValue:o,startAdornment:i})=>{let{format:n,field:l}=r,a=e=>!!e||0===e;return{formattedValue:(0,t.useMemo)(()=>n&&a(n(e))?n(e):l&&a(e[l])?e[l]:o,[l,n,e,o]),hasStartAdornment:!!i}},oy=(0,r.styled)("li")`
538
538
  position: relative;
539
539
 
540
540
  &:not(:last-of-type)::before,
541
- &.${r8}::before {
541
+ &.${r6}::before {
542
542
  content: '';
543
543
 
544
544
  position: absolute;
545
545
  z-index: 1;
546
546
  top: 0;
547
- transform: ${({$level:e})=>`translateX(calc(${r9}px * ${e} - ${r5}px))`};
547
+ transform: ${({$level:e})=>`translateX(calc(${r5}px * ${e} - ${r7}px))`};
548
548
 
549
549
  display: ${({$isShowConnector:e})=>e?"block":"none"};
550
550
 
@@ -553,7 +553,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
553
553
 
554
554
  border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
555
555
  }
556
- `,oy=(0,r.styled)("div")`
556
+ `,of=(0,r.styled)("div")`
557
557
  position: relative;
558
558
 
559
559
  display: grid;
@@ -568,11 +568,11 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
568
568
 
569
569
  position: absolute;
570
570
  top: 0;
571
- transform: ${({$level:e})=>`translateX(calc(${r9}px * ${e} - ${r5}px))`};
571
+ transform: ${({$level:e})=>`translateX(calc(${r5}px * ${e} - ${r7}px))`};
572
572
 
573
573
  display: ${({$isShowConnector:e})=>e?"block":"none"};
574
574
 
575
- width: ${r5}px;
575
+ width: ${r7}px;
576
576
  height: 50%;
577
577
 
578
578
  border-bottom: 1px solid ${({theme:e})=>e.palette.grey[400]};
@@ -585,22 +585,22 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
585
585
 
586
586
  background-color: ${({theme:e,$isHovered:t})=>t?e.palette.background.elementHover:"transparent"};
587
587
  }
588
- `,of=(0,r.styled)(t=>{let{formattedValue:r,hasStartAdornment:o}=om(t),{className:i,startAdornment:n,row:l,cell:a,isDisabled:s}=t,{renderCell:d,align:p="left"}=a;return(0,e.jsxs)(oh,{$isDisabled:s,$align:p,$hasStartAdornment:o,className:i,inert:!!s||void 0,children:[n&&n,d?.(l),!d&&(0,e.jsx)(ez,{rowsCount:2,children:r})]})})`
589
- margin-left: ${({$level:e})=>`${e*r9}px`};
590
- `,ob=(0,r.styled)("div")`
588
+ `,ob=(0,r.styled)(t=>{let{formattedValue:r,hasStartAdornment:o}=ox(t),{className:i,startAdornment:n,row:l,cell:a,isDisabled:s}=t,{renderCell:d,align:p="left"}=a;return(0,e.jsxs)(om,{$isDisabled:s,$align:p,$hasStartAdornment:o,className:i,inert:!!s||void 0,children:[n&&n,d?.(l),!d&&(0,e.jsx)(eB,{rowsCount:2,children:r})]})})`
589
+ margin-left: ${({$level:e})=>`${e*r5}px`};
590
+ `,oC=(0,r.styled)("div")`
591
591
  display: flex;
592
592
  align-items: center;
593
593
  align-self: center;
594
594
  justify-content: center;
595
595
 
596
- width: ${r9}px;
597
- `,oC=(0,r.styled)("div")`
596
+ width: ${r5}px;
597
+ `,o$=(0,r.styled)("div")`
598
598
  display: flex;
599
599
  align-items: center;
600
600
  justify-content: center;
601
601
 
602
- width: ${r9}px;
603
- `,o$=(0,r.styled)(ee)`
602
+ width: ${r5}px;
603
+ `,ow=(0,r.styled)(ee)`
604
604
  width: 24px;
605
605
  height: 24px;
606
606
 
@@ -609,31 +609,31 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
609
609
  &:hover {
610
610
  background-color: ${({theme:e})=>e.palette.grey[300]};
611
611
  }
612
- `,ow=(0,r.styled)(o.ChevronRight,{shouldForwardProp:e=>"$isActive"!==e})`
612
+ `,ov=(0,r.styled)(o.ChevronRight,{shouldForwardProp:e=>"$isActive"!==e})`
613
613
  transform: rotateZ(${({$isActive:e})=>90*!!e}deg);
614
614
 
615
615
  transition: ${({theme:e})=>e.transitions.create("transform",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.short})};
616
- `,ov=(0,t.createContext)({isDisabled:!1,addDisabledRow:()=>{},removeDisabledRow:()=>{}}),oj=({children:r})=>{let[o,i]=(0,t.useState)(!1),[n,l]=(0,t.useState)();return(0,e.jsx)(ov.Provider,{value:{isDisabled:o,disabledReason:n,addDisabledRow:e=>{i(!0),l(e)},removeDisabledRow:()=>{i(!1),l(void 0)}},children:r})},ok=e=>e.reduce((e,{field:t,...r})=>t?{...e,[t]:r}:e,{}),oS=(e,t)=>{if(!t)return e;let r=ok(t);return Object.keys(r).length?e.map(e=>e.hasOwnProperty("field")?{...e,...r[e.field]||{}}:e):e},oM=({keyId:e,columns:r,row:o,nestedChildren:i,level:n,variant:l,activeRowId:a,options:s,isInitialExpanded:d=!1,expandedLevel:p,isSelectable:c,selectedRows:u,onSelectRow:g,onRowClick:h,isVisibleCollapseButton:m})=>{let x=d&&n<=p-1&&i?.length,{checkIsOpened:y,toggleOpenItems:f}=(0,t.useContext)(on),{isDisabled:b,disabledReason:C}=(0,t.useContext)(ov),[$,w]=(0,t.useState)(!1),v=o[e],{isDisabled:j,disabledReason:k}=s||{},S=b||j,M=y(v);(0,t.useEffect)(()=>{x&&!M&&f(v)},[]);let I=c&&!!u?.find(t=>t[e]===v),F=Object.is(l,od.Tree);return{isOpen:M,isShowConnector:F,childrenColumns:(0,t.useMemo)(()=>oS(r,s?.childrenColumns),[r,s]),rowId:v,disabled:S,isRenderCollapseButton:!!i?.length&&m,handleToggle:e=>{e.stopPropagation(),f(v)},rowProps:{$isHovered:!!(!S&&h),$isSelected:a===v,onClick:()=>{!S&&h?.(o)},onMouseMove:e=>{S&&"true"!==e.target.getAttribute(r4)&&w(!1)}},tooltipProps:{open:$,title:S?k||C:void 0,onOpen:e=>{"true"===e.target.getAttribute(r4)&&w(!0)},onClose:()=>w(!1)},checkboxProps:{checked:I,disabled:S,onChange:g(o)},nestedChildrenProps:{isOpen:M,rowId:v}}},oI=(e,t,r)=>!!e&&(!t||!t.includes(r)),oF=r=>{let{isOpen:o,isShowConnector:i,childrenColumns:n,rowId:l,handleToggle:a,checkboxProps:s,rowProps:d,tooltipProps:p,nestedChildrenProps:c,disabled:u,isRenderCollapseButton:g}=oM(r),{className:h,row:m,options:x,variant:y,isSelectable:f,gridColumns:b,isInitialExpanded:C,expandedLevel:$,level:w,nestedChildren:v,initialVisibleChildrenCount:j,moreButtonColumnPosition:k,isVisibleCollapseButton:S,columns:M,emptyCellValue:I,selectedRows:F,activeRowId:P,keyId:T,onSelectRow:A,onRowClick:D,...E}=r,{isDisabledLastCell:R=!0,isNotSelectable:O}=x||{},L=()=>g||f&&!O?(0,e.jsxs)(e.Fragment,{children:[g&&(0,e.jsx)(oC,{children:(0,e.jsx)(o$,{variant:"text",onClick:a,children:(0,e.jsx)(ow,{$isActive:o})})}),f&&!O&&(0,e.jsx)(ob,{inert:!!u||void 0,onClick:e=>e.stopPropagation(),children:(0,e.jsx)(eT,{...s})})]}):null,z=(0,t.useCallback)(()=>{let t=R?void 0:[M.length-1];return M?.map((r,o)=>{let i=`${l}-${o}`,n=oI(u,t,o),a=!o;return e.jsx(of,{$level:a?w:0,row:m,cell:r,emptyCellValue:I,startAdornment:a&&L(),isDisabled:n},i)})},[o,M,u]),B=(0,t.useCallback)(({key:t,...r})=>(0,e.jsx)(oF,{keyId:T,...r,variant:y,isSelectable:f,selectedRows:F,gridColumns:b,isInitialExpanded:C,expandedLevel:$,initialVisibleChildrenCount:j,moreButtonColumnPosition:k,isVisibleCollapseButton:S,activeRowId:P,columns:n,onSelectRow:A,onRowClick:D},t),[T,y,f,F,b,C,$,j,k,P,n,A,D]);return(0,e.jsxs)(ox,{$level:w,$isShowConnector:i,$gridColumns:b,className:h,...E,children:[(0,e.jsx)(ef,{followCursor:!0,arrow:!1,...p,children:(0,e.jsx)(oy,{$level:w,$isShowConnector:i,$gridColumns:b,[r4]:u,...d,children:z()})}),(0,e.jsx)(oc,{...c,data:v,keyId:T,level:w,variant:y,gridColumns:b,initialVisibleChildrenCount:j,moreButtonColumnPosition:k,renderRow:B})]})},oP=(0,r.styled)("ul",{shouldForwardProp:e=>!["$isEmpty","$minDisplayRows"].includes(e.toString())})`
616
+ `,oj=(0,t.createContext)({isDisabled:!1,addDisabledRow:()=>{},removeDisabledRow:()=>{}}),ok=({children:r})=>{let[o,i]=(0,t.useState)(!1),[n,l]=(0,t.useState)();return(0,e.jsx)(oj.Provider,{value:{isDisabled:o,disabledReason:n,addDisabledRow:e=>{i(!0),l(e)},removeDisabledRow:()=>{i(!1),l(void 0)}},children:r})},oS=e=>e.reduce((e,{field:t,...r})=>t?{...e,[t]:r}:e,{}),oM=(e,t)=>{if(!t)return e;let r=oS(t);return Object.keys(r).length?e.map(e=>e.hasOwnProperty("field")?{...e,...r[e.field]||{}}:e):e},oI=({keyId:e,columns:r,row:o,nestedChildren:i,level:n,variant:l,activeRowId:a,options:s,isInitialExpanded:d=!1,expandedLevel:p,isSelectable:c,selectedRows:u,onSelectRow:g,onRowClick:h,isVisibleCollapseButton:m})=>{let x=d&&n<=p-1&&i?.length,{checkIsOpened:y,toggleOpenItems:f}=(0,t.useContext)(ol),{isDisabled:b,disabledReason:C}=(0,t.useContext)(oj),[$,w]=(0,t.useState)(!1),v=o[e],{isDisabled:j,disabledReason:k}=s||{},S=b||j,M=y(v);(0,t.useEffect)(()=>{x&&!M&&f(v)},[]);let I=c&&!!u?.find(t=>t[e]===v),F=Object.is(l,op.Tree);return{isOpen:M,isShowConnector:F,childrenColumns:(0,t.useMemo)(()=>oM(r,s?.childrenColumns),[r,s]),rowId:v,disabled:S,isRenderCollapseButton:!!i?.length&&m,handleToggle:e=>{e.stopPropagation(),f(v)},rowProps:{$isHovered:!!(!S&&h),$isSelected:a===v,onClick:()=>{!S&&h?.(o)},onMouseMove:e=>{S&&"true"!==e.target.getAttribute(r8)&&w(!1)}},tooltipProps:{open:$,title:S?k||C:void 0,onOpen:e=>{"true"===e.target.getAttribute(r8)&&w(!0)},onClose:()=>w(!1)},checkboxProps:{checked:I,disabled:S,onChange:g(o)},nestedChildrenProps:{isOpen:M,rowId:v}}},oF=(e,t,r)=>!!e&&(!t||!t.includes(r)),oP=r=>{let{isOpen:o,isShowConnector:i,childrenColumns:n,rowId:l,handleToggle:a,checkboxProps:s,rowProps:d,tooltipProps:p,nestedChildrenProps:c,disabled:u,isRenderCollapseButton:g}=oI(r),{className:h,row:m,options:x,variant:y,isSelectable:f,gridColumns:b,isInitialExpanded:C,expandedLevel:$,level:w,nestedChildren:v,initialVisibleChildrenCount:j,moreButtonColumnPosition:k,isVisibleCollapseButton:S,columns:M,emptyCellValue:I,selectedRows:F,activeRowId:P,keyId:T,onSelectRow:A,onRowClick:D,...E}=r,{isDisabledLastCell:R=!0,isNotSelectable:O}=x||{},L=()=>g||f&&!O?(0,e.jsxs)(e.Fragment,{children:[g&&(0,e.jsx)(o$,{children:(0,e.jsx)(ow,{variant:"text",onClick:a,children:(0,e.jsx)(ov,{$isActive:o})})}),f&&!O&&(0,e.jsx)(oC,{inert:!!u||void 0,onClick:e=>e.stopPropagation(),children:(0,e.jsx)(eA,{...s})})]}):null,z=(0,t.useCallback)(()=>{let t=R?void 0:[M.length-1];return M?.map((r,o)=>{let i=`${l}-${o}`,n=oF(u,t,o),a=!o;return e.jsx(ob,{$level:a?w:0,row:m,cell:r,emptyCellValue:I,startAdornment:a&&L(),isDisabled:n},i)})},[o,M,u]),B=(0,t.useCallback)(({key:t,...r})=>(0,e.jsx)(oP,{keyId:T,...r,variant:y,isSelectable:f,selectedRows:F,gridColumns:b,isInitialExpanded:C,expandedLevel:$,initialVisibleChildrenCount:j,moreButtonColumnPosition:k,isVisibleCollapseButton:S,activeRowId:P,columns:n,onSelectRow:A,onRowClick:D},t),[T,y,f,F,b,C,$,j,k,P,n,A,D]);return(0,e.jsxs)(oy,{$level:w,$isShowConnector:i,$gridColumns:b,className:h,...E,children:[(0,e.jsx)(eb,{followCursor:!0,arrow:!1,...p,children:(0,e.jsx)(of,{$level:w,$isShowConnector:i,$gridColumns:b,[r8]:u,...d,children:z()})}),(0,e.jsx)(ou,{...c,data:v,keyId:T,level:w,variant:y,gridColumns:b,initialVisibleChildrenCount:j,moreButtonColumnPosition:k,renderRow:B})]})},oT=(0,r.styled)("ul",{shouldForwardProp:e=>!["$isEmpty","$minDisplayRows"].includes(e.toString())})`
617
617
  overflow-y: auto;
618
618
 
619
- height: ${({$isEmpty:e,$minDisplayRows:t})=>e?`${r6*t}px`:"100%"};
619
+ height: ${({$isEmpty:e,$minDisplayRows:t})=>e?`${r9*t}px`:"100%"};
620
620
  margin: 0;
621
621
  padding: 0;
622
622
 
623
623
  list-style-type: none;
624
- `,oT=({isLoading:e,isError:t,rows:r})=>{let o=!r.length;return{isNoData:o,contentStateProps:{isLoading:e&&o,isError:t&&o}}},oA=r=>{let{imagesMap:o}=(0,t.useContext)(rf),{isNoData:i,contentStateProps:n}=oT(r),{rows:l,selectedRows:a=[],isLoading:s,isError:d,errorMsg:p,minDisplayRows:c,keyId:u,noDataPlaceholder:g,onRetry:h,...m}=r,x=(0,t.useMemo)(()=>l.map(({children:t,options:r,...o})=>{let i=o[u];return(0,e.jsx)(oj,{children:(0,e.jsx)(oF,{row:o,selectedRows:a,options:r,keyId:u,level:0,nestedChildren:t,...m})},i)}),[l,u,a,m]);return(0,e.jsx)(oP,{$isEmpty:i,$minDisplayRows:c,children:(0,e.jsx)(rJ,{...n,errorState:{imgAlt:"Что-то пошло не так",errorList:[p||""],imgSrc:o.defaultErrorImgSrc,onRetry:h},children:l.length?x:g})})},oD=(0,r.styled)("div",{shouldForwardProp:e=>!["$align","$isSortable","$hasStartAdornment"].includes(e.toString())})`
624
+ `,oA=({isLoading:e,isError:t,rows:r})=>{let o=!r.length;return{isNoData:o,contentStateProps:{isLoading:e&&o,isError:t&&o}}},oD=r=>{let{imagesMap:o}=(0,t.useContext)(rb),{isNoData:i,contentStateProps:n}=oA(r),{rows:l,selectedRows:a=[],isLoading:s,isError:d,errorMsg:p,minDisplayRows:c,keyId:u,noDataPlaceholder:g,onRetry:h,...m}=r,x=(0,t.useMemo)(()=>l.map(({children:t,options:r,...o})=>{let i=o[u];return(0,e.jsx)(ok,{children:(0,e.jsx)(oP,{row:o,selectedRows:a,options:r,keyId:u,level:0,nestedChildren:t,...m})},i)}),[l,u,a,m]);return(0,e.jsx)(oT,{$isEmpty:i,$minDisplayRows:c,children:(0,e.jsx)(rQ,{...n,errorState:{imgAlt:"Что-то пошло не так",errorList:[p||""],imgSrc:o.defaultErrorImgSrc,onRetry:h},children:l.length?x:g})})},oE=(0,r.styled)("div",{shouldForwardProp:e=>!["$align","$isSortable","$hasStartAdornment"].includes(e.toString())})`
625
625
  cursor: ${({$isSortable:e})=>e?"pointer":"initial"};
626
626
  user-select: none;
627
627
 
628
628
  display: flex;
629
629
  align-items: center;
630
- justify-content: ${({$align:e})=>og(e)};
630
+ justify-content: ${({$align:e})=>oh(e)};
631
631
 
632
632
  height: 40px;
633
633
  padding: ${({theme:e,$hasStartAdornment:t})=>t?e.spacing(1,2,1,0):e.spacing(1,2)};
634
634
 
635
635
  color: ${({theme:e})=>e.palette.grey[700]};
636
- `,oE=(0,r.styled)(D)`
636
+ `,oR=(0,r.styled)(D)`
637
637
  display: flex;
638
638
  align-items: center;
639
639
 
@@ -641,18 +641,18 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
641
641
  width: 16px;
642
642
  height: 16px;
643
643
  }
644
- `,oR=({field:e,isSortable:t,startAdornment:r,onSort:o})=>({wrapperProps:{$hasStartAdornment:!!r,onClick:()=>{e&&t&&o(e)}}}),oO=r=>{let{wrapperProps:i}=oR(r),{startAdornment:n,field:l,isSortable:a,align:s,label:d,sorting:p}=r,c=(0,t.useMemo)(()=>{if(!a)return null;if(p?.fieldId!==l)return(0,e.jsx)(o.ChevronsUpDown,{});switch(p?.sort){case os.ASC:return(0,e.jsx)(o.ChevronUp,{color:"primary"});case os.DESC:return(0,e.jsx)(o.ChevronDown,{color:"primary"});default:return(0,e.jsx)(o.ChevronsUpDown,{})}},[p,a,l]);return(0,e.jsxs)(oD,{$align:s,$isSortable:a,...i,children:[n&&n,(0,e.jsxs)(oE,{variant:"pointer",children:[d,c]})]})},oL=(0,r.styled)("header",{shouldForwardProp:e=>!["$gridColumns"].includes(e.toString())})`
644
+ `,oO=({field:e,isSortable:t,startAdornment:r,onSort:o})=>({wrapperProps:{$hasStartAdornment:!!r,onClick:()=>{e&&t&&o(e)}}}),oL=r=>{let{wrapperProps:i}=oO(r),{startAdornment:n,field:l,isSortable:a,align:s,label:d,sorting:p}=r,c=(0,t.useMemo)(()=>{if(!a)return null;if(p?.fieldId!==l)return(0,e.jsx)(o.ChevronsUpDown,{});switch(p?.sort){case od.ASC:return(0,e.jsx)(o.ChevronUp,{color:"primary"});case od.DESC:return(0,e.jsx)(o.ChevronDown,{color:"primary"});default:return(0,e.jsx)(o.ChevronsUpDown,{})}},[p,a,l]);return(0,e.jsxs)(oE,{$align:s,$isSortable:a,...i,children:[n&&n,(0,e.jsxs)(oR,{variant:"pointer",children:[d,c]})]})},oz=(0,r.styled)("header",{shouldForwardProp:e=>!["$gridColumns"].includes(e.toString())})`
645
645
  display: grid;
646
646
  grid-template-columns: ${({$gridColumns:e})=>e};
647
647
 
648
648
  border-bottom: 2px solid ${({theme:e})=>e.palette.divider};
649
- `,oz=(0,r.styled)("div")`
649
+ `,oB=(0,r.styled)("div")`
650
650
  display: flex;
651
651
  align-items: center;
652
652
  justify-content: center;
653
653
 
654
- width: ${r9}px;
655
- `,oB=({rowsCount:e,sorting:r,uncheckedRowsCount:o,onSort:i})=>{let n=(0,t.useMemo)(()=>!o&&e>0,[o,e]),l=(0,t.useMemo)(()=>o>0&&o<e,[o,e]),a=!e;return{handleSort:(0,t.useCallback)(e=>{if(!i)return;let t=r?.fieldId===e;return t&&r?.sort===os.ASC?i({fieldId:e,sort:os.DESC}):t&&r?.sort===os.DESC?i(void 0):void i({fieldId:e,sort:os.ASC})},[r,i]),checkboxProps:{checked:n,disabled:a,indeterminate:l}}},oW=r=>{let{checkboxProps:o,handleSort:i}=oB(r),{columns:n,gridColumns:l,isSelectable:a,sorting:s,onSelectAllRows:d}=r,p=(0,t.useMemo)(()=>n.map(({field:t,label:r,sortable:n,align:l},p)=>(0,e.jsx)(oO,{sorting:s,field:t,label:r,isSortable:n,align:l,startAdornment:!p&&a?(0,e.jsx)(oz,{children:(0,e.jsx)(eT,{...o,onChange:d})}):null,onSort:i},r)),[n,s,a,o,d,i]);return(0,e.jsx)(oL,{$gridColumns:l,children:p})},oH=t=>(0,e.jsx)(r.Divider,{...t}),oN=(0,r.styled)("div")`
654
+ width: ${r5}px;
655
+ `,oW=({rowsCount:e,sorting:r,uncheckedRowsCount:o,onSort:i})=>{let n=(0,t.useMemo)(()=>!o&&e>0,[o,e]),l=(0,t.useMemo)(()=>o>0&&o<e,[o,e]),a=!e;return{handleSort:(0,t.useCallback)(e=>{if(!i)return;let t=r?.fieldId===e;return t&&r?.sort===od.ASC?i({fieldId:e,sort:od.DESC}):t&&r?.sort===od.DESC?i(void 0):void i({fieldId:e,sort:od.ASC})},[r,i]),checkboxProps:{checked:n,disabled:a,indeterminate:l}}},oH=r=>{let{checkboxProps:o,handleSort:i}=oW(r),{columns:n,gridColumns:l,isSelectable:a,sorting:s,onSelectAllRows:d}=r,p=(0,t.useMemo)(()=>n.map(({field:t,label:r,sortable:n,align:l},p)=>(0,e.jsx)(oL,{sorting:s,field:t,label:r,isSortable:n,align:l,startAdornment:!p&&a?(0,e.jsx)(oB,{children:(0,e.jsx)(eA,{...o,onChange:d})}):null,onSort:i},r)),[n,s,a,o,d,i]);return(0,e.jsx)(oz,{$gridColumns:l,children:p})},oN=t=>(0,e.jsx)(r.Divider,{...t}),oV=(0,r.styled)("div")`
656
656
  position: absolute;
657
657
  top: 0;
658
658
 
@@ -661,13 +661,13 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
661
661
 
662
662
  opacity: 0.3;
663
663
  background-color: ${({theme:e})=>e.palette.background.element};
664
- `,oV=(0,r.styled)(oH)`
664
+ `,o_=(0,r.styled)(oN)`
665
665
  border-width: 1px;
666
- `,o_=(0,r.styled)("div")`
666
+ `,oU=(0,r.styled)("div")`
667
667
  height: 2px;
668
- `,oU=(0,r.styled)(r.LinearProgress)`
668
+ `,oG=(0,r.styled)(r.LinearProgress)`
669
669
  height: 2px;
670
- `,oG=({isLoading:t=!1,isDisabled:r=!1,isVisibleDivider:o=!0})=>(0,e.jsxs)(o_,{children:[(t||r)&&(0,e.jsx)(oN,{}),t&&(0,e.jsx)(oU,{}),!t&&o&&(0,e.jsx)(oV,{})]}),oX=({title:r="Нет\xa0данных",imgAlt:o=r,action:i,size:n="small"})=>{let{imagesMap:{noDataImgSrc:l}}=(0,t.useContext)(rf);return(0,e.jsx)(r_,{title:r,imgSrc:l,size:n,Actions:i?(0,e.jsx)(q,{onClick:i.onClick,"aria-label":i.text,children:i.text}):void 0,imgAlt:o})},oY=(0,r.styled)("div",{shouldForwardProp:e=>"$maxHeight"!==e})`
670
+ `,oX=({isLoading:t=!1,isDisabled:r=!1,isVisibleDivider:o=!0})=>(0,e.jsxs)(oU,{children:[(t||r)&&(0,e.jsx)(oV,{}),t&&(0,e.jsx)(oG,{}),!t&&o&&(0,e.jsx)(o_,{})]}),oY=({title:r="Нет\xa0данных",imgAlt:o=r,action:i,size:n="small"})=>{let{imagesMap:{noDataImgSrc:l}}=(0,t.useContext)(rb);return(0,e.jsx)(rU,{title:r,imgSrc:l,size:n,Actions:i?(0,e.jsx)(q,{onClick:i.onClick,"aria-label":i.text,children:i.text}):void 0,imgAlt:o})},oZ=(0,r.styled)("div",{shouldForwardProp:e=>"$maxHeight"!==e})`
671
671
  position: relative;
672
672
 
673
673
  overflow: hidden;
@@ -677,21 +677,21 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
677
677
  width: 100%;
678
678
  height: 100%;
679
679
  max-height: ${({$maxHeight:e})=>e?`${e}px`:"initial"};
680
- `,oZ=(0,r.styled)("div")`
680
+ `,oq=(0,r.styled)("div")`
681
681
  overflow: hidden;
682
682
  display: flex;
683
683
  flex-direction: column;
684
684
 
685
685
  height: 100%;
686
- `,oq=(0,r.styled)(oZ)`
686
+ `,oK=(0,r.styled)(oq)`
687
687
  pointer-events: none;
688
688
 
689
689
  background: ${({theme:e})=>e.palette.background.element};
690
690
  mix-blend-mode: luminosity;
691
- `,oK=e=>e.map(({width:e})=>e||"1fr").join(" "),oJ=({keyId:e,columns:r,rows:o=[],variant:i,tree:n,subrows:l,selectedRows:s=[],isLoading:d,isDisabled:p,onSelectRow:c})=>{let u=!!o?.length,g=!!c,h=d||p,m=Object.is(i,od.Subrows)?{...l,isInitialExpanded:!0}:n,x=o.filter(e=>!(e.options?.isDisabled||e.options?.isNotSelectable)),y=(0,t.useRef)([]);(0,t.useEffect)(()=>{d||(y.current=o)},[o,d]);let f=oK(r),b=(0,t.useMemo)(()=>x.filter(t=>!s.find(r=>r[e]===t[e])).length,[x,s,e]),C=(0,t.useCallback)(()=>o.length<=1?r.map(e=>({...e,sortable:!1})):r,[r,o]),$=d?y.current:o,w=(0,t.useCallback)(t=>r=>{if(c){if(r.target.checked)return c([...s,t]);c(s.filter(r=>r[e]!==t[e]))}},[s,c,e]);return{isDataGridDisabled:h,treeRenderConfig:m,renderRows:$,headProps:{rowsCount:x.length,uncheckedRowsCount:b,gridColumns:f,isSelectable:g,columns:C(),onSelectAllRows:t=>{if(c){if(t.target.checked)return c((0,a.uniqueBy)([...s,...x],(0,a.prop)(e)));c(s.filter(t=>!o.find(r=>r[e]===t[e])))}}},bodyProps:{gridColumns:f,isSelectable:g,onSelectRow:w},loaderProps:{isLoading:u&&d,isVisibleDivider:!!o.length,isDisabled:p}}},oQ=r=>{let{isDataGridDisabled:o,treeRenderConfig:i,headProps:n,bodyProps:l,loaderProps:a,renderRows:s}=oJ(r),{emptySymbol:d}=(0,t.useContext)(rf),{columns:p,selectedRows:c=[],sorting:u,maxHeight:g,minDisplayRows:h=r7,errorMsg:m,variant:x=od.Tree,footer:y,noDataPlaceholder:f,isLoading:b,isError:C,subrows:$,keyId:w,activeRowId:v,emptyCellValue:j=d,className:k,onRowClick:S,onSort:M,noDataOptions:I,onRetry:F}=r,{moreButtonColumnPosition:P=1,isVisibleCollapseButton:T=!0}=$||{},{isInitialExpanded:A=!1,expandedLevel:D=oe,initialVisibleChildrenCount:E=ot}=i||{},R=(0,t.useCallback)(()=>b?null:f||(0,e.jsx)(oX,{...I}),[f,I,b]);return(0,e.jsx)(oa,{children:(0,e.jsxs)(oY,{$maxHeight:g,className:k,children:[(0,e.jsxs)(o?oq:oZ,{inert:!!o||void 0,children:[(0,e.jsx)(oW,{...n,sorting:u,onSort:M}),(0,e.jsx)(oA,{...l,activeRowId:v,keyId:w,selectedRows:c,minDisplayRows:h,rows:s,columns:p,variant:x,emptyCellValue:j,isInitialExpanded:A,expandedLevel:D,initialVisibleChildrenCount:E,moreButtonColumnPosition:P,isVisibleCollapseButton:T,isLoading:b,isError:C,errorMsg:m,noDataPlaceholder:R(),onRowClick:S,onRetry:F})]}),(0,e.jsx)(oG,{...a}),y&&y]})})},o0=({action:e})=>{let{loading:r,disabledReason:o,name:i}=e,[n,l]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{r&&l(!1)},[r]),{tooltipProps:{title:o||i,open:n,onOpen:()=>l(!0),onClose:()=>l(!1)}}},o1=t=>{let{tooltipProps:r}=o0(t),{action:o,onActionClick:i,isDisabled:n,tooltipPlacement:l}=t,{name:a,icon:s,needConfirm:d,confirmText:p,confirmButtonProps:c,disabledReason:u,disabled:g,loading:h,isBlockingOperation:m,loadingNote:x,onClick:y,...f}=o,b=t=>(0,e.jsx)(ef,{withoutContainer:!g,placement:l,...r,children:(0,e.jsx)(ee,{disabled:n||g,loading:h,...f,variant:"text",...t,children:s})},a);return(0,e.jsx)(e.Fragment,{children:d?(0,e.jsx)(rM,{text:p,confirmButtonProps:c,actionComponent:e=>b(e),onConfirm:i(y)}):b({onClick:i(y)})})},o2=({action:r,onActionClick:o,isDisabled:i,tooltipPlacement:n})=>{if("actions"in r){let{disabled:l,icon:a,name:s,disabledReason:d,actions:p}=r;return(0,e.jsx)(ef,{title:d||s,withoutContainer:!l,placement:n,children:(0,e.jsx)(eh,{icon:a,variant:"text",disabled:i||l,children:p.map(({name:e,onClick:r,...i})=>(0,t.createElement)(eb,{...i,key:e,onClick:o(r)},e))})},s)}return(0,e.jsx)(o1,{action:r,onActionClick:o,isDisabled:i,tooltipPlacement:n})},o3=({actions:r,onActionClick:i,tooltipPlacement:n,isDisabled:l})=>(0,e.jsx)(eh,{icon:(0,e.jsx)(o.EllipsisVertical,{}),variant:"text",disabled:l,children:r.map(e=>{let{onClick:r,name:o}=e;return(0,t.createElement)(eb,{...e,key:o,tooltipPlacement:n,onClick:i(r)},o)})}),o4=(0,r.styled)("div")`
691
+ `,oJ=e=>e.map(({width:e})=>e||"1fr").join(" "),oQ=({keyId:e,columns:r,rows:o=[],variant:i,tree:n,subrows:l,selectedRows:s=[],isLoading:d,isDisabled:p,onSelectRow:c})=>{let u=!!o?.length,g=!!c,h=d||p,m=Object.is(i,op.Subrows)?{...l,isInitialExpanded:!0}:n,x=o.filter(e=>!(e.options?.isDisabled||e.options?.isNotSelectable)),y=(0,t.useRef)([]);(0,t.useEffect)(()=>{d||(y.current=o)},[o,d]);let f=oJ(r),b=(0,t.useMemo)(()=>x.filter(t=>!s.find(r=>r[e]===t[e])).length,[x,s,e]),C=(0,t.useCallback)(()=>o.length<=1?r.map(e=>({...e,sortable:!1})):r,[r,o]),$=d?y.current:o,w=(0,t.useCallback)(t=>r=>{if(c){if(r.target.checked)return c([...s,t]);c(s.filter(r=>r[e]!==t[e]))}},[s,c,e]);return{isDataGridDisabled:h,treeRenderConfig:m,renderRows:$,headProps:{rowsCount:x.length,uncheckedRowsCount:b,gridColumns:f,isSelectable:g,columns:C(),onSelectAllRows:t=>{if(c){if(t.target.checked)return c((0,a.uniqueBy)([...s,...x],(0,a.prop)(e)));c(s.filter(t=>!o.find(r=>r[e]===t[e])))}}},bodyProps:{gridColumns:f,isSelectable:g,onSelectRow:w},loaderProps:{isLoading:u&&d,isVisibleDivider:!!o.length,isDisabled:p}}},o0=r=>{let{isDataGridDisabled:o,treeRenderConfig:i,headProps:n,bodyProps:l,loaderProps:a,renderRows:s}=oQ(r),{emptySymbol:d}=(0,t.useContext)(rb),{columns:p,selectedRows:c=[],sorting:u,maxHeight:g,minDisplayRows:h=oe,errorMsg:m,variant:x=op.Tree,footer:y,noDataPlaceholder:f,isLoading:b,isError:C,subrows:$,keyId:w,activeRowId:v,emptyCellValue:j=d,className:k,onRowClick:S,onSort:M,noDataOptions:I,onRetry:F}=r,{moreButtonColumnPosition:P=1,isVisibleCollapseButton:T=!0}=$||{},{isInitialExpanded:A=!1,expandedLevel:D=ot,initialVisibleChildrenCount:E=or}=i||{},R=(0,t.useCallback)(()=>b?null:f||(0,e.jsx)(oY,{...I}),[f,I,b]);return(0,e.jsx)(os,{children:(0,e.jsxs)(oZ,{$maxHeight:g,className:k,children:[(0,e.jsxs)(o?oK:oq,{inert:!!o||void 0,children:[(0,e.jsx)(oH,{...n,sorting:u,onSort:M}),(0,e.jsx)(oD,{...l,activeRowId:v,keyId:w,selectedRows:c,minDisplayRows:h,rows:s,columns:p,variant:x,emptyCellValue:j,isInitialExpanded:A,expandedLevel:D,initialVisibleChildrenCount:E,moreButtonColumnPosition:P,isVisibleCollapseButton:T,isLoading:b,isError:C,errorMsg:m,noDataPlaceholder:R(),onRowClick:S,onRetry:F})]}),(0,e.jsx)(oX,{...a}),y&&y]})})},o1=({action:e})=>{let{loading:r,disabledReason:o,name:i}=e,[n,l]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{r&&l(!1)},[r]),{tooltipProps:{title:o||i,open:n,onOpen:()=>l(!0),onClose:()=>l(!1)}}},o2=t=>{let{tooltipProps:r}=o1(t),{action:o,onActionClick:i,isDisabled:n,tooltipPlacement:l}=t,{name:a,icon:s,needConfirm:d,confirmText:p,confirmButtonProps:c,disabledReason:u,disabled:g,loading:h,isBlockingOperation:m,loadingNote:x,onClick:y,...f}=o,b=t=>(0,e.jsx)(eb,{withoutContainer:!g,placement:l,...r,children:(0,e.jsx)(ee,{disabled:n||g,loading:h,...f,variant:"text",...t,children:s})},a);return(0,e.jsx)(e.Fragment,{children:d?(0,e.jsx)(rI,{text:p,confirmButtonProps:c,actionComponent:e=>b(e),onConfirm:i(y)}):b({onClick:i(y)})})},o3=({action:r,onActionClick:o,isDisabled:i,tooltipPlacement:n})=>{if("actions"in r){let{disabled:l,icon:a,name:s,disabledReason:d,actions:p}=r;return(0,e.jsx)(eb,{title:d||s,withoutContainer:!l,placement:n,children:(0,e.jsx)(em,{icon:a,variant:"text",disabled:i||l,children:p.map(({name:e,onClick:r,...i})=>(0,t.createElement)(eC,{...i,key:e,onClick:o(r)},e))})},s)}return(0,e.jsx)(o2,{action:r,onActionClick:o,isDisabled:i,tooltipPlacement:n})},o4=({actions:r,onActionClick:i,tooltipPlacement:n,isDisabled:l})=>(0,e.jsx)(em,{icon:(0,e.jsx)(o.EllipsisVertical,{}),variant:"text",disabled:l,children:r.map(e=>{let{onClick:r,name:o}=e;return(0,t.createElement)(eC,{...e,key:o,tooltipPlacement:n,onClick:i(r)},o)})}),o8=(0,r.styled)("div")`
692
692
  display: inline-flex;
693
693
  align-items: center;
694
- `,o8=({row:e,actions:r})=>{let{main:o,secondary:i}=r,{addDisabledRow:n,removeDisabledRow:l}=(0,t.useContext)(ov),a=[...o,...i||[]].find(e=>e.isBlockingOperation&&e.loading),s=!!a;return(0,t.useEffect)(()=>{if(a)return n(a?.loadingNote);l()},[a]),{isDisabledAction:s,handleActionClick:(0,t.useCallback)(t=>()=>{t?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}},o6={mainAction:"top",secondaryAction:"left"},o9=t=>{let{isDisabledAction:r,handleWrapperClick:o,handleActionClick:i}=o8(t),{actions:n}=t,{main:l,secondary:a}=n;return(0,e.jsxs)(o4,{onClick:o,children:[l.map(t=>(0,e.jsx)(o2,{action:t,onActionClick:i,isDisabled:r,tooltipPlacement:o6.mainAction},t.name)),a&&(0,e.jsx)(o3,{actions:a,onActionClick:i,tooltipPlacement:o6.secondaryAction,isDisabled:r})]})},o5=({...t})=>(0,e.jsx)(r.Pagination,{shape:"rounded",...t}),o7=(0,r.styled)(tK,{shouldForwardProp:e=>"$shrinks"!==e})`
694
+ `,o6=({row:e,actions:r})=>{let{main:o,secondary:i}=r,{addDisabledRow:n,removeDisabledRow:l}=(0,t.useContext)(oj),a=[...o,...i||[]].find(e=>e.isBlockingOperation&&e.loading),s=!!a;return(0,t.useEffect)(()=>{if(a)return n(a?.loadingNote);l()},[a]),{isDisabledAction:s,handleActionClick:(0,t.useCallback)(t=>()=>{t?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}},o9={mainAction:"top",secondaryAction:"left"},o5=t=>{let{isDisabledAction:r,handleWrapperClick:o,handleActionClick:i}=o6(t),{actions:n}=t,{main:l,secondary:a}=n;return(0,e.jsxs)(o8,{onClick:o,children:[l.map(t=>(0,e.jsx)(o3,{action:t,onActionClick:i,isDisabled:r,tooltipPlacement:o9.mainAction},t.name)),a&&(0,e.jsx)(o4,{actions:a,onActionClick:i,tooltipPlacement:o9.secondaryAction,isDisabled:r})]})},o7=({...t})=>(0,e.jsx)(r.Pagination,{shape:"rounded",...t}),ie=(0,r.styled)(tJ,{shouldForwardProp:e=>"$shrinks"!==e})`
695
695
  min-width: ${({$shrinks:e})=>e?"30px":"unset"};
696
696
  max-width: 246px;
697
697
 
@@ -700,10 +700,10 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
700
700
  display: inline;
701
701
  }
702
702
  }
703
- `,ie=()=>({onMouseDown:e=>{e.stopPropagation()}}),it=t=>{let{onMouseDown:r}=ie(),{shrinks:o,isDisabled:i,...n}=t;return(0,e.jsx)(o7,{$shrinks:o,color:"grey",disabled:i,...n,onMouseDown:r})},ir=(0,r.styled)("div")`
703
+ `,it=()=>({onMouseDown:e=>{e.stopPropagation()}}),ir=t=>{let{onMouseDown:r}=it(),{shrinks:o,isDisabled:i,...n}=t;return(0,e.jsx)(ie,{$shrinks:o,color:"grey",disabled:i,...n,onMouseDown:r})},io=(0,r.styled)("div")`
704
704
  display: flex;
705
705
  column-gap: ${({theme:e})=>e.spacing(1)};
706
- `,io=(e,t)=>{if(e.innerHTML===t)return e;for(let r=0;r<e.children.length;r+=1){let o=io(e.children[r],t);if(o)return o}return null},ii=(e,t)=>{if("string"==typeof e)return e;let r=e[t];return"number"==typeof r?r.toString():r},il=({data:e=[],keyId:r,getOptionLabel:o,onChange:i})=>{let[n,l]=(0,t.useState)(1),a=(0,t.useRef)(!1),s=(0,t.useRef)(null),d=(t,r,i)=>{let n=o(e[0]);document.body.appendChild(t);let l=0,a=0;for(let s=1;s<e.length;s+=1){let d=t.firstChild?.cloneNode(!0),p=o(e[s]),c=io(d,n);if(!c)throw Error("Could not find text node");c.textContent=p,t.appendChild(d);let u=d.getBoundingClientRect().width+i;if(l+u>r)break;a+=1,l+=u}return document.body.removeChild(t),a},p=()=>{let e=s.current;if(!e)throw Error("Tags container ref is not set");let t=Number.parseInt(window.getComputedStyle(e).columnGap),r=e.firstElementChild?.getBoundingClientRect().width||0,o=e.getBoundingClientRect().width-r,i=e.cloneNode(!0);for(;i.lastElementChild&&i.children.length>1;)i.removeChild(i.lastElementChild);i.style.visibility="hidden",l(1+d(i,o,t))};(0,t.useLayoutEffect)(()=>{"undefined"!=typeof window&&e&&e.length&&(p(),a.current=!0)},[e]),(0,t.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(a.current){a.current=!1;return}p()});return t.observe(s.current),()=>t.disconnect()},[e]);let c=e?.slice(0,n);return{maxItems:n,visibleOptions:c,tagsContainerRef:s,getTagProps:(t,l)=>{let a=o(t);return{label:a,shrinks:l===n-1&&n<=e.length,onDelete:()=>{let o=e?.filter(e=>"string"==typeof e?e!==t:e[r]!==t[r]);i(o?.length?o:[])}}}}},ia=t=>{let{maxItems:r,tagsContainerRef:o,visibleOptions:i,getTagProps:n}=il(t),{className:l,data:a,keyId:s,isDisabled:d,onClick:p}=t;return(0,e.jsxs)(ir,{className:l,ref:o,children:[i?.map((t,r)=>{let o=n(t,r);return e.jsx(it,{isDisabled:d,onClick:p,...o},ii(t,s))}),a&&r<a.length&&(0,e.jsx)(it,{isDisabled:d,label:`+${a.length-r}`,onClick:p},"more")]})},is="Очистить",id=(0,r.styled)("div")`
706
+ `,ii=(e,t)=>{if(e.innerHTML===t)return e;for(let r=0;r<e.children.length;r+=1){let o=ii(e.children[r],t);if(o)return o}return null},il=(e,t)=>{if("string"==typeof e)return e;let r=e[t];return"number"==typeof r?r.toString():r},ia=({data:e=[],keyId:r,getOptionLabel:o,onChange:i})=>{let[n,l]=(0,t.useState)(1),a=(0,t.useRef)(!1),s=(0,t.useRef)(null),d=(t,r,i)=>{let n=o(e[0]);document.body.appendChild(t);let l=0,a=0;for(let s=1;s<e.length;s+=1){let d=t.firstChild?.cloneNode(!0),p=o(e[s]),c=ii(d,n);if(!c)throw Error("Could not find text node");c.textContent=p,t.appendChild(d);let u=d.getBoundingClientRect().width+i;if(l+u>r)break;a+=1,l+=u}return document.body.removeChild(t),a},p=()=>{let e=s.current;if(!e)throw Error("Tags container ref is not set");let t=Number.parseInt(window.getComputedStyle(e).columnGap),r=e.firstElementChild?.getBoundingClientRect().width||0,o=e.getBoundingClientRect().width-r,i=e.cloneNode(!0);for(;i.lastElementChild&&i.children.length>1;)i.removeChild(i.lastElementChild);i.style.visibility="hidden",l(1+d(i,o,t))};(0,t.useLayoutEffect)(()=>{"undefined"!=typeof window&&e&&e.length&&(p(),a.current=!0)},[e]),(0,t.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(a.current){a.current=!1;return}p()});return t.observe(s.current),()=>t.disconnect()},[e]);let c=e?.slice(0,n);return{maxItems:n,visibleOptions:c,tagsContainerRef:s,getTagProps:(t,l)=>{let a=o(t);return{label:a,shrinks:l===n-1&&n<=e.length,onDelete:()=>{let o=e?.filter(e=>"string"==typeof e?e!==t:e[r]!==t[r]);i(o?.length?o:[])}}}}},is=t=>{let{maxItems:r,tagsContainerRef:o,visibleOptions:i,getTagProps:n}=ia(t),{className:l,data:a,keyId:s,isDisabled:d,onClick:p}=t;return(0,e.jsxs)(io,{className:l,ref:o,children:[i?.map((t,r)=>{let o=n(t,r);return e.jsx(ir,{isDisabled:d,onClick:p,...o},il(t,s))}),a&&r<a.length&&(0,e.jsx)(ir,{isDisabled:d,label:`+${a.length-r}`,onClick:p},"more")]})},id="Очистить",ip=(0,r.styled)("div")`
707
707
  display: flex;
708
708
  flex-direction: column;
709
709
  align-items: center;
@@ -715,9 +715,9 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
715
715
 
716
716
  color: ${({theme:e})=>e.palette.grey["900"]};
717
717
  }
718
- `,ip=(0,r.styled)(eb)`
718
+ `,ic=(0,r.styled)(eC)`
719
719
  display: none;
720
- `,ic=(0,r.styled)(ee)`
720
+ `,iu=(0,r.styled)(ee)`
721
721
  background-color: transparent;
722
722
 
723
723
  &:hover {
@@ -732,30 +732,30 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
732
732
  width: 32px;
733
733
  height: 32px;
734
734
  }
735
- `,iu=(0,r.styled)(o.CircleX)`
735
+ `,ig=(0,r.styled)(o.CircleX)`
736
736
  width: 16px;
737
737
  height: 16px;
738
738
 
739
739
  fill: ${({theme:e})=>e.palette.grey["500"]};
740
- `,ig=(0,r.styled)("div")`
740
+ `,ih=(0,r.styled)("div")`
741
741
  display: flex;
742
742
  align-items: center;
743
743
 
744
744
  margin-left: auto;
745
- `,ih=(0,r.styled)(r.Select)`
745
+ `,im=(0,r.styled)(r.Select)`
746
746
  .${r.selectClasses.select} {
747
747
  padding-right: ${({theme:e})=>e.spacing(2)} !important;
748
748
  }
749
- `,im=({onClick:t,disabled:r,ref:o})=>(0,e.jsx)(ic,{disabled:r,ref:o,onClick:t,variant:"text",title:is,"aria-label":is,children:(0,e.jsx)(iu,{})}),ix=({required:i,getOptionLabel:n=e=>e,placeholder:l,helperText:a,hideHelperText:s=!1,loading:d,success:p,children:c,disabled:u,error:g,label:h,fullWidth:m,onChange:x,isShowClearButton:y,...f})=>{let{isOpened:b,isShowingClearButton:C,isNoData:$,onClearAll:w,openSelect:v,closeSelect:j,resetButtonRef:k}=function({value:e,onChange:r,children:o,open:i,defaultOpen:n,multiple:l,isShowClearButton:a=!0}){let[s,d]=(0,t.useState)(n||i||!1),p=(0,t.useRef)(null),c=a&&!(!e||Array.isArray(e)&&0===e.length||"string"==typeof e&&0===e.length);return{isOpened:s,isNoData:!t.Children.count(o),isShowingClearButton:c,resetButtonRef:p,openSelect:()=>d(!0),closeSelect:()=>d(!1),onClearAll:()=>{r?.call({},{target:{value:l?[]:""}})}}}({...f,children:c,onChange:x,isShowClearButton:y});return(0,e.jsxs)(r.FormControl,{error:g,fullWidth:m,children:[h&&(0,e.jsx)(r.InputLabel,{htmlFor:"grouped-select",required:i,children:h}),(0,e.jsxs)(ih,{...f,open:b,disabled:u,onOpen:v,onClose:j,renderValue:t=>Array.isArray(t)&&t.length?(0,e.jsx)(ia,{data:t,keyId:"value",getOptionLabel:n,onChange:e=>e?x?.({target:{value:e}},void 0):x?.({target:{value:[]}},void 0),onClick:v}):(Array.isArray(t)||"string"==typeof t)&&!t.length?l:n(t),IconComponent:()=>null,displayEmpty:!0,fullWidth:m,onChange:x,endAdornment:(0,e.jsxs)(ig,{children:[C&&(0,e.jsx)(im,{disabled:u,ref:k,onClick:w}),(0,e.jsx)(ic,{variant:"text",disabled:u,onClick:v,children:b?(0,e.jsx)(o.ChevronUp,{}):(0,e.jsx)(o.ChevronDown,{})})]}),children:[(0,e.jsx)(ip,{value:"",children:l}),d&&(0,e.jsx)(id,{children:(0,e.jsx)(U,{color:"primary"})}),!d&&c,!d&&$&&(0,e.jsx)(eb,{disabled:!0,children:"Нет данных"})]}),!s&&(0,e.jsx)(t4,{error:g,success:p,children:a})]})},iy=20,ib=[20,50,100],iC=(0,r.styled)("div")`
749
+ `,ix=({onClick:t,disabled:r,ref:o})=>(0,e.jsx)(iu,{disabled:r,ref:o,onClick:t,variant:"text",title:id,"aria-label":id,children:(0,e.jsx)(ig,{})}),iy=({required:i,getOptionLabel:n=e=>e,placeholder:l,helperText:a,hideHelperText:s=!1,loading:d,success:p,children:c,disabled:u,error:g,label:h,fullWidth:m,onChange:x,isShowClearButton:y,...f})=>{let{isOpened:b,isShowingClearButton:C,isNoData:$,onClearAll:w,openSelect:v,closeSelect:j,resetButtonRef:k}=function({value:e,onChange:r,children:o,open:i,defaultOpen:n,multiple:l,isShowClearButton:a=!0}){let[s,d]=(0,t.useState)(n||i||!1),p=(0,t.useRef)(null),c=a&&!(!e||Array.isArray(e)&&0===e.length||"string"==typeof e&&0===e.length);return{isOpened:s,isNoData:!t.Children.count(o),isShowingClearButton:c,resetButtonRef:p,openSelect:()=>d(!0),closeSelect:()=>d(!1),onClearAll:()=>{r?.call({},{target:{value:l?[]:""}})}}}({...f,children:c,onChange:x,isShowClearButton:y});return(0,e.jsxs)(r.FormControl,{error:g,fullWidth:m,children:[h&&(0,e.jsx)(r.InputLabel,{htmlFor:"grouped-select",required:i,children:h}),(0,e.jsxs)(im,{...f,open:b,disabled:u,onOpen:v,onClose:j,renderValue:t=>Array.isArray(t)&&t.length?(0,e.jsx)(is,{data:t,keyId:"value",getOptionLabel:n,onChange:e=>e?x?.({target:{value:e}},void 0):x?.({target:{value:[]}},void 0),onClick:v}):(Array.isArray(t)||"string"==typeof t)&&!t.length?l:n(t),IconComponent:()=>null,displayEmpty:!0,fullWidth:m,onChange:x,endAdornment:(0,e.jsxs)(ih,{children:[C&&(0,e.jsx)(ix,{disabled:u,ref:k,onClick:w}),(0,e.jsx)(iu,{variant:"text",disabled:u,onClick:v,children:b?(0,e.jsx)(o.ChevronUp,{}):(0,e.jsx)(o.ChevronDown,{})})]}),children:[(0,e.jsx)(ic,{value:"",children:l}),d&&(0,e.jsx)(ip,{children:(0,e.jsx)(U,{color:"primary"})}),!d&&c,!d&&$&&(0,e.jsx)(eC,{disabled:!0,children:"Нет данных"})]}),!s&&(0,e.jsx)(t8,{error:g,success:p,children:a})]})},ib=20,iC=[20,50,100],i$=(0,r.styled)("div")`
750
750
  display: flex;
751
751
  align-items: center;
752
752
  justify-content: space-between;
753
753
 
754
754
  height: 48px;
755
755
  padding-top: ${({theme:e})=>e.spacing(4)};
756
- `,i$=(0,r.styled)(D)`
756
+ `,iw=(0,r.styled)(D)`
757
757
  color: ${({theme:e})=>e.palette.grey["700"]};
758
- `,iw=(0,r.styled)("div")`
758
+ `,iv=(0,r.styled)("div")`
759
759
  display: flex;
760
760
  gap: ${({theme:e})=>e.spacing(3)};
761
761
  align-items: center;
@@ -763,12 +763,12 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
763
763
  .${r.formControlClasses.root} {
764
764
  flex-direction: unset;
765
765
  }
766
- `,iv=({totalCount:e,rowsPerPage:r=iy,page:o,onSetCountPerPage:i})=>{let n=(0,t.useRef)(0);(0,t.useEffect)(()=>{e&&(n.current=e)},[e]);let l=e||n.current,a=Math.ceil(l/r),s=(o-1)*r+1,d=()=>{let e=o*r;return e<l?e:l};return{isVisiblePagination:!(!i&&l<=r),pageCount:a,formattedRange:()=>`${s} — ${d()} из ${l} записей`,handleChangeRowsPerPage:e=>{i?.(Number(e.target.value))}}},ij=t=>{let{isVisiblePagination:r,pageCount:o,formattedRange:i,handleChangeRowsPerPage:n}=iv(t),{page:l,totalCount:a,className:s,rowsPerPage:d=iy,rowsPerPageOptions:p=ib,isForceCounter:c,disabled:u,onSetCountPerPage:g,...h}=t;return(r||c)&&a?(0,e.jsxs)(iC,{className:s,children:[(0,e.jsxs)(iw,{children:[g&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(D,{variant:"body1",children:"Строк на странице:"}),(0,e.jsx)(ix,{size:"small",value:d,disabled:u,isShowClearButton:!1,onChange:n,children:p.map(t=>(0,e.jsx)(eb,{value:t,children:t},t))})]}),(0,e.jsx)(i$,{variant:"h6",children:i()})]}),r&&(0,e.jsx)(o5,{disabled:u,count:o,page:l,...h})]}):null},ik=":",iS="—",iM="astral-ui_descriptionRoot",iI=(0,t.createContext)({leader:!1,separator:ik,direction:"default"}),iF=({children:t,leader:r,separator:o,direction:i})=>(0,e.jsx)(iI.Provider,{value:{leader:r,separator:o,direction:i},children:t}),iP=(0,r.styled)("dt",{shouldForwardProp:e=>"$leader"!==e})`
766
+ `,ij=({totalCount:e,rowsPerPage:r=ib,page:o,onSetCountPerPage:i})=>{let n=(0,t.useRef)(0);(0,t.useEffect)(()=>{e&&(n.current=e)},[e]);let l=e||n.current,a=Math.ceil(l/r),s=(o-1)*r+1,d=()=>{let e=o*r;return e<l?e:l};return{isVisiblePagination:!(!i&&l<=r),pageCount:a,formattedRange:()=>`${s} — ${d()} из ${l} записей`,handleChangeRowsPerPage:e=>{i?.(Number(e.target.value))}}},ik=t=>{let{isVisiblePagination:r,pageCount:o,formattedRange:i,handleChangeRowsPerPage:n}=ij(t),{page:l,totalCount:a,className:s,rowsPerPage:d=ib,rowsPerPageOptions:p=iC,isForceCounter:c,disabled:u,onSetCountPerPage:g,...h}=t;return(r||c)&&a?(0,e.jsxs)(i$,{className:s,children:[(0,e.jsxs)(iv,{children:[g&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(D,{variant:"body1",children:"Строк на странице:"}),(0,e.jsx)(iy,{size:"small",value:d,disabled:u,isShowClearButton:!1,onChange:n,children:p.map(t=>(0,e.jsx)(eC,{value:t,children:t},t))})]}),(0,e.jsx)(iw,{variant:"h6",children:i()})]}),r&&(0,e.jsx)(o7,{disabled:u,count:o,page:l,...h})]}):null},iS=":",iM="—",iI="astral-ui_descriptionRoot",iF=(0,t.createContext)({leader:!1,separator:iS,direction:"default"}),iP=({children:t,leader:r,separator:o,direction:i})=>(0,e.jsx)(iF.Provider,{value:{leader:r,separator:o,direction:i},children:t}),iT=(0,r.styled)("dt",{shouldForwardProp:e=>"$leader"!==e})`
767
767
  flex-shrink: 0;
768
768
 
769
769
  max-width: ${({$leader:e})=>e?"calc(100% - 36px)":"calc(100% - 12px)"};
770
770
  margin-right: ${({theme:e})=>e.spacing(2)};
771
- `,iT=(0,r.styled)("div")`
771
+ `,iA=(0,r.styled)("div")`
772
772
  flex: 1;
773
773
 
774
774
  min-width: 12px;
@@ -780,7 +780,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
780
780
  ${({theme:e})=>e.breakpoints.down("sm")} {
781
781
  display: none;
782
782
  }
783
- `,iA=(0,r.styled)(D,{shouldForwardProp:e=>!["$canCopy","$leader","$direction"].includes(e.toString())})`
783
+ `,iD=(0,r.styled)(D,{shouldForwardProp:e=>!["$canCopy","$leader","$direction"].includes(e.toString())})`
784
784
  cursor: ${({$canCopy:e})=>e?"pointer":"default"};
785
785
 
786
786
  overflow: hidden;
@@ -796,7 +796,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
796
796
  &:hover {
797
797
  text-decoration: ${({$canCopy:e})=>e?"underline":"none"};
798
798
  }
799
- `,iD=(0,r.styled)(r3,{shouldForwardProp:e=>!["$leader","$direction"].includes(e.toString())})`
799
+ `,iE=(0,r.styled)(r4,{shouldForwardProp:e=>!["$leader","$direction"].includes(e.toString())})`
800
800
  display: unset;
801
801
 
802
802
  hyphens: auto;
@@ -810,11 +810,11 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
810
810
  & > svg {
811
811
  margin-bottom: ${({theme:e})=>e.spacing(-1)};
812
812
  }
813
- `,iE=(0,r.styled)("dd")`
813
+ `,iR=(0,r.styled)("dd")`
814
814
  overflow: hidden;
815
815
 
816
816
  margin: 0;
817
- `,iR=({canCopy:e,children:r,stub:o})=>{let{emptySymbol:i}=(0,t.useContext)(rf),{leader:n,direction:l}=(0,t.useContext)(iI);return{valueToRender:r||o||i,isDefaultValueRender:!e||!r,leader:n,direction:l}},iO=(0,r.styled)("div",{shouldForwardProp:e=>!["$justifyContent","as","$direction"].includes(e.toString())})`
817
+ `,iO=({canCopy:e,children:r,stub:o})=>{let{emptySymbol:i}=(0,t.useContext)(rb),{leader:n,direction:l}=(0,t.useContext)(iF);return{valueToRender:r||o||i,isDefaultValueRender:!e||!r,leader:n,direction:l}},iL=(0,r.styled)("div",{shouldForwardProp:e=>!["$justifyContent","as","$direction"].includes(e.toString())})`
818
818
  overflow: hidden;
819
819
  display: flex;
820
820
  flex-direction: ${({$direction:e})=>"default"===e?"row":e};
@@ -830,14 +830,14 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
830
830
  font-size: ${({theme:e})=>e.typography.fontSize};
831
831
  }
832
832
  }
833
- `,iL=({direction:e="default",separator:t=ik})=>{let{isMobile:r}=et();return{descriptionContextProviderProps:{separator:"column"===e||r&&"default"===e?"":t},direction:e}},iz=t=>{let{descriptionContextProviderProps:r,direction:o}=iL(t),{justifyContent:i="start",component:n="dl",children:l,leader:a=!1}=t;return(0,e.jsx)(iF,{leader:a,direction:o,...r,children:(0,e.jsx)(iO,{$justifyContent:i,className:iM,$direction:o,as:n,children:l})})};iz.Name=({children:r,color:o="textSecondary",...i})=>{let{leader:n,separator:l}=(0,t.useContext)(iI);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(iP,{$leader:n,children:(0,e.jsxs)(D,{...i,color:o,children:[r,!n&&l]})}),n&&(0,e.jsx)(iT,{})]})},iz.Value=t=>{let{valueToRender:r,isDefaultValueRender:o,leader:i,direction:n}=iR(t),{copyPosition:l="right",copyText:a,canCopy:s,children:d,stub:p,...c}=t;return o?(0,e.jsx)(iA,{$direction:n,component:"dd",$leader:i,...c,children:r}):(0,e.jsx)(iE,{children:(0,e.jsx)(iD,{copyPosition:l,copyText:a,$direction:n,$leader:i,component:"div",...c,children:r})})};let iB=t=>(0,e.jsx)(ez,{visibleLastSymbolsCount:4,...t}),iW=(0,r.styled)(iz.Name,{shouldForwardProp:e=>!["$nameMaxWidth, $direction"].includes(e.toString())})`
833
+ `,iz=({direction:e="default",separator:t=iS})=>{let{isMobile:r}=et();return{descriptionContextProviderProps:{separator:"column"===e||r&&"default"===e?"":t},direction:e}},iB=t=>{let{descriptionContextProviderProps:r,direction:o}=iz(t),{justifyContent:i="start",component:n="dl",children:l,leader:a=!1}=t;return(0,e.jsx)(iP,{leader:a,direction:o,...r,children:(0,e.jsx)(iL,{$justifyContent:i,className:iI,$direction:o,as:n,children:l})})};iB.Name=({children:r,color:o="textSecondary",...i})=>{let{leader:n,separator:l}=(0,t.useContext)(iF);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(iT,{$leader:n,children:(0,e.jsxs)(D,{...i,color:o,children:[r,!n&&l]})}),n&&(0,e.jsx)(iA,{})]})},iB.Value=t=>{let{valueToRender:r,isDefaultValueRender:o,leader:i,direction:n}=iO(t),{copyPosition:l="right",copyText:a,canCopy:s,children:d,stub:p,...c}=t;return o?(0,e.jsx)(iD,{$direction:n,component:"dd",$leader:i,...c,children:r}):(0,e.jsx)(iR,{children:(0,e.jsx)(iE,{copyPosition:l,copyText:a,$direction:n,$leader:i,component:"div",...c,children:r})})};let iW=t=>(0,e.jsx)(eB,{visibleLastSymbolsCount:4,...t}),iH=(0,r.styled)(iB.Name,{shouldForwardProp:e=>!["$nameMaxWidth, $direction"].includes(e.toString())})`
834
834
  max-width: ${({$nameMaxWidth:e})=>e||"none"};
835
835
  margin-bottom: ${({theme:e,$direction:t})=>Object.is(t,"column")?e.spacing(1):0};
836
836
 
837
837
  ${({theme:e})=>e.breakpoints.down("sm")} {
838
838
  margin-bottom: ${({theme:e,$direction:t})=>Object.is(t,"row")?0:e.spacing(1)};
839
839
  }
840
- `,iH=(0,r.styled)("article",{shouldForwardProp:e=>!["$variant"].includes(e.toString())})`
840
+ `,iN=(0,r.styled)("article",{shouldForwardProp:e=>!["$variant"].includes(e.toString())})`
841
841
  display: grid;
842
842
  row-gap: ${({theme:e})=>e.spacing(3)};
843
843
 
@@ -846,7 +846,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
846
846
  background-color: ${({$variant:e,theme:t})=>"contained"===e?t.palette.background.default:"transparent"};
847
847
  border: ${({$variant:e,theme:t})=>"contained"===e?`1px solid ${t.palette.grey[300]}`:"unset"};
848
848
  border-radius: ${({theme:e})=>e.shape.small};
849
- `,iN=(0,r.styled)("dl",{shouldForwardProp:e=>!["$direction"].includes(e.toString())})`
849
+ `,iV=(0,r.styled)("dl",{shouldForwardProp:e=>!["$direction"].includes(e.toString())})`
850
850
  display: grid;
851
851
  row-gap: ${({theme:e,$direction:t})=>Object.is(t,"column")?e.spacing(3):e.spacing(1)};
852
852
 
@@ -855,38 +855,38 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
855
855
  ${({theme:e})=>e.breakpoints.down("sm")} {
856
856
  row-gap: ${({theme:e})=>e.spacing(3)};
857
857
  }
858
- `,iV=(0,r.styled)(iz.Value,{shouldForwardProp:e=>!["$isCopy"].includes(e.toString())})`
858
+ `,i_=(0,r.styled)(iB.Value,{shouldForwardProp:e=>!["$isCopy"].includes(e.toString())})`
859
859
  display: ${({$isCopy:e})=>e&&"flex"};
860
860
 
861
861
  width: ${({$isCopy:e})=>e&&"calc(100% - 20px)"};
862
- `,i_=e=>e?{title:void 0}:void 0,iU=({items:r,variant:o="default",title:i,direction:n,...l})=>{let a=(0,t.useCallback)((t,r)=>{let{renderValue:o,color:i,canCopy:n,copyPosition:l,variant:a,copyText:s}=r;if(o)return o(t,r);if("tag"===a)return(0,e.jsx)(iz.Value,{children:(0,e.jsx)(tK,{label:t,color:i,variant:"light"})});if("guid"===a){let r=i_(n);return(0,e.jsx)(iV,{canCopy:n,$isCopy:n,color:i,copyPosition:l,copyText:s,children:(0,e.jsx)(iB,{tooltipProps:r,children:t})})}return(0,e.jsx)(iz.Value,{canCopy:n,color:i,copyPosition:l,children:t})},[]);return(0,e.jsxs)(iH,{$variant:o,children:[i&&("string"==typeof i?(0,e.jsx)(D,{variant:"h6",children:i}):i),(0,e.jsx)(iN,{$direction:n,children:r.map(({name:t,value:r,options:o})=>{let{nameMaxWidth:i,...s}=o||{};return(0,e.jsxs)(iz,{direction:n,...l,component:"div",children:[(0,e.jsx)(iW,{$nameMaxWidth:i,$direction:n,children:t}),a(r,s)]},`${t}:${r}`)})})]})},iG=({children:t,onClose:i,...n})=>(0,e.jsxs)(r.DialogTitle,{...n,children:[t,i&&(0,e.jsx)(ee,{variant:"text",onClick:e=>{i&&i(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,e.jsx)(o.X,{})})]}),iX={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"}},iY=e=>iX[e]||iX.md,iZ=(0,r.styled)(r.Dialog,{shouldForwardProp:e=>!["$size"].includes(e.toString())})`
862
+ `,iU=e=>e?{title:void 0}:void 0,iG=({items:r,variant:o="default",title:i,direction:n,...l})=>{let a=(0,t.useCallback)((t,r)=>{let{renderValue:o,color:i,canCopy:n,copyPosition:l,variant:a,copyText:s}=r;if(o)return o(t,r);if("tag"===a)return(0,e.jsx)(iB.Value,{children:(0,e.jsx)(tJ,{label:t,color:i,variant:"light"})});if("guid"===a){let r=iU(n);return(0,e.jsx)(i_,{canCopy:n,$isCopy:n,color:i,copyPosition:l,copyText:s,children:(0,e.jsx)(iW,{tooltipProps:r,children:t})})}return(0,e.jsx)(iB.Value,{canCopy:n,color:i,copyPosition:l,children:t})},[]);return(0,e.jsxs)(iN,{$variant:o,children:[i&&("string"==typeof i?(0,e.jsx)(D,{variant:"h6",children:i}):i),(0,e.jsx)(iV,{$direction:n,children:r.map(({name:t,value:r,options:o})=>{let{nameMaxWidth:i,...s}=o||{};return(0,e.jsxs)(iB,{direction:n,...l,component:"div",children:[(0,e.jsx)(iH,{$nameMaxWidth:i,$direction:n,children:t}),a(r,s)]},`${t}:${r}`)})})]})},iX=({children:t,onClose:i,...n})=>(0,e.jsxs)(r.DialogTitle,{...n,children:[t,i&&(0,e.jsx)(ee,{variant:"text",onClick:e=>{i&&i(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,e.jsx)(o.X,{})})]}),iY={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"}},iZ=e=>iY[e]||iY.md,iq=(0,r.styled)(r.Dialog,{shouldForwardProp:e=>!["$size"].includes(e.toString())})`
863
863
  &.${r.dialogClasses.root} .${r.backdropClasses.root} {
864
864
  background-color: ${({theme:e})=>e.palette.background.modalShadow};
865
865
  }
866
866
  .${r.dialogClasses.paper} {
867
- min-width: ${({$size:e})=>iY(e).minWidth};
868
- max-width: ${({$size:e})=>iY(e).maxWidth};
867
+ min-width: ${({$size:e})=>iZ(e).minWidth};
868
+ max-width: ${({$size:e})=>iZ(e).maxWidth};
869
869
  }
870
- `,iq=({children:t,title:r,disableBackdropClick:o,onClose:i,size:n="md",...l})=>{let a=i&&((e,t)=>{(!o||"backdropClick"!==t)&&i(e,t)}),{isMobile:s}=et();return s?(0,e.jsx)(ep,{onClose:a,title:r,children:t}):(0,e.jsxs)(iZ,{$size:n,onClose:a,...l,children:[r&&(0,e.jsx)(iG,{onClose:i,children:r}),t]})},iK=(0,r.styled)(r.DialogActions)`
870
+ `,iK=({children:t,title:r,disableBackdropClick:o,onClose:i,size:n="md",...l})=>{let a=i&&((e,t)=>{(!o||"backdropClick"!==t)&&i(e,t)}),{isMobile:s}=et();return s?(0,e.jsx)(ec,{onClose:a,title:r,children:t}):(0,e.jsxs)(iq,{$size:n,onClose:a,...l,children:[r&&(0,e.jsx)(iX,{onClose:i,children:r}),t]})},iJ=(0,r.styled)(r.DialogActions)`
871
871
  padding-top: 0;
872
872
 
873
873
  ${({theme:e})=>e.breakpoints.down("sm")} {
874
874
  padding: ${({theme:e})=>e.spacing(4)};
875
875
  }
876
- `,iJ=(0,r.styled)(tB)`
876
+ `,iQ=(0,r.styled)(tW)`
877
877
  ${({theme:e})=>e.breakpoints.up("sm")} {
878
878
  flex-direction: column;
879
879
  justify-content: end;
880
880
  }
881
- `,iQ=({children:t,disableSpacing:r,...o})=>(0,e.jsx)(iK,{...o,children:(0,e.jsx)(iJ,{gap:2*!r,children:t})}),i0=(0,r.styled)(r.DialogContent)`
881
+ `,i0=({children:t,disableSpacing:r,...o})=>(0,e.jsx)(iJ,{...o,children:(0,e.jsx)(iQ,{gap:2*!r,children:t})}),i1=(0,r.styled)(r.DialogContent)`
882
882
  padding-bottom: ${({theme:e})=>e.spacing(6)};
883
883
 
884
884
  ${({theme:e})=>e.breakpoints.down("sm")} {
885
885
  padding: ${({theme:e})=>e.spacing(5,4)};
886
886
  }
887
- `,i1=t=>(0,e.jsx)(i0,{...t}),i2=(0,r.styled)(r.DialogContentText)`
887
+ `,i2=t=>(0,e.jsx)(i1,{...t}),i3=(0,r.styled)(r.DialogContentText)`
888
888
  color: ${({theme:e})=>e.palette.grey[900]};
889
- `,i3=t=>(0,e.jsx)(i2,{...t}),i4=(0,r.styled)("div",{label:"DialogHeader-root",shouldForwardProp:e=>!["hasTitle","hasOnClose"].includes(e.toString())})`
889
+ `,i4=t=>(0,e.jsx)(i3,{...t}),i8=(0,r.styled)("div",{label:"DialogHeader-root",shouldForwardProp:e=>!["hasTitle","hasOnClose"].includes(e.toString())})`
890
890
  overflow: hidden;
891
891
  display: grid;
892
892
  grid-template-columns: ${({hasTitle:e,hasOnClose:t})=>e&&t?"max-content 1fr 32px":e?"max-content 1fr":t?"1fr 32px":"1fr"};
@@ -895,7 +895,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
895
895
 
896
896
  height: auto;
897
897
  padding: ${({theme:e})=>e.spacing(4,6)};
898
- `,i8=(0,r.styled)("div",{shouldForwardProp:e=>!["justifyContent","columnSpacing"].includes(e.toString()),label:"DialogHeader-content"})`
898
+ `,i6=(0,r.styled)("div",{shouldForwardProp:e=>!["justifyContent","columnSpacing"].includes(e.toString()),label:"DialogHeader-content"})`
899
899
  overflow: hidden;
900
900
  display: flex;
901
901
  column-gap: ${({columnSpacing:e,theme:t})=>t.spacing(e)};
@@ -905,7 +905,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
905
905
  width: 100%;
906
906
  height: 100%;
907
907
  padding: 0;
908
- `,i6=({children:t,title:r,justifyContent:i="flex-start",disableSpacing:n,onClose:l})=>(0,e.jsxs)(i4,{hasTitle:!!r,hasOnClose:!!l,children:[r&&(0,e.jsx)(D,{variant:"h4",children:r}),(0,e.jsx)(i8,{justifyContent:i,columnSpacing:2*!n,children:t}),l&&(0,e.jsx)(ee,{variant:"text",onClick:e=>{l&&l(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,e.jsx)(o.X,{})})]}),i9=(0,r.styled)(r.Link)`
908
+ `,i9=({children:t,title:r,justifyContent:i="flex-start",disableSpacing:n,onClose:l})=>(0,e.jsxs)(i8,{hasTitle:!!r,hasOnClose:!!l,children:[r&&(0,e.jsx)(D,{variant:"h4",children:r}),(0,e.jsx)(i6,{justifyContent:i,columnSpacing:2*!n,children:t}),l&&(0,e.jsx)(ee,{variant:"text",onClick:e=>{l&&l(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,e.jsx)(o.X,{})})]}),i5=(0,r.styled)(r.Link)`
909
909
  display: inline-flex;
910
910
  gap: ${({theme:e})=>e.spacing(1)};
911
911
  align-items: baseline;
@@ -939,9 +939,9 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
939
939
  width: 16px;
940
940
  height: 16px;
941
941
  }
942
- `,i5=(0,t.forwardRef)(({withAdornment:t,isDownload:r,children:i,...n},l)=>{let a=r?(0,e.jsx)(o.ArrowDownToLine,{}):(0,e.jsx)(o.SquareArrowOutUpRight,{});return(0,e.jsxs)(i9,{download:r,ref:l,...n,children:["start"===t&&a,i,"end"===t&&a,!t&&r&&(0,e.jsx)(o.ArrowDownToLine,{})]})}),i7=t=>(0,e.jsx)(d.default,{...t}),ne=t=>(0,e.jsx)(r.ListItem,{...t}),nt=t=>{let{disabledReason:o,disabled:i,tooltipPlacement:n,note:l,withoutContainer:a=!1,...s}=t,d=()=>(0,e.jsx)(ef,{title:i?o:l,placement:n,withoutContainer:!i,children:(0,e.jsx)(r.ListItemButton,{disabled:i,component:"div",...s,disableRipple:!0})});return a?d():(0,e.jsx)("li",{children:d()})},nr=(0,r.styled)(r.ListItemIcon)`
942
+ `,i7=(0,t.forwardRef)(({withAdornment:t,isDownload:r,children:i,...n},l)=>{let a=r?(0,e.jsx)(o.ArrowDownToLine,{}):(0,e.jsx)(o.SquareArrowOutUpRight,{});return(0,e.jsxs)(i5,{download:r,ref:l,...n,children:["start"===t&&a,i,"end"===t&&a,!t&&r&&(0,e.jsx)(o.ArrowDownToLine,{})]})}),ne=t=>(0,e.jsx)(d.default,{...t}),nt=t=>(0,e.jsx)(r.ListItem,{...t}),nr=t=>{let{disabledReason:o,disabled:i,tooltipPlacement:n,note:l,withoutContainer:a=!1,...s}=t,d=()=>(0,e.jsx)(eb,{title:i?o:l,placement:n,withoutContainer:!i,children:(0,e.jsx)(r.ListItemButton,{disabled:i,component:"div",...s,disableRipple:!0})});return a?d():(0,e.jsx)("li",{children:d()})},no=(0,r.styled)(r.ListItemIcon)`
943
943
  color: inherit;
944
- `,no=(0,t.forwardRef)((t,r)=>(0,e.jsx)(nr,{ref:r,...t})),ni=t=>(0,e.jsx)(p.default,{...t}),nn=t=>(0,e.jsx)(r.ListSubheader,{...t}),nl=(0,r.styled)(nt,{shouldForwardProp:e=>!["$isGroupTitleItem"].includes(e.toString())})`
944
+ `,ni=(0,t.forwardRef)((t,r)=>(0,e.jsx)(no,{ref:r,...t})),nn=t=>(0,e.jsx)(p.default,{...t}),nl=t=>(0,e.jsx)(r.ListSubheader,{...t}),na=(0,r.styled)(nr,{shouldForwardProp:e=>!["$isGroupTitleItem"].includes(e.toString())})`
945
945
  box-sizing: border-box;
946
946
  min-height: 40px;
947
947
  padding: ${({theme:e})=>e.spacing(2)};
@@ -1028,9 +1028,9 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
1028
1028
  }
1029
1029
  }
1030
1030
  }
1031
- `,na=(0,r.styled)(no)`
1031
+ `,ns=(0,r.styled)(ni)`
1032
1032
  min-width: unset;
1033
- `,ns=(0,r.styled)(ez)`
1033
+ `,nd=(0,r.styled)(eB)`
1034
1034
  width: 'auto';
1035
1035
  margin-left: ${({theme:e})=>e.spacing(3)};
1036
1036
 
@@ -1038,16 +1038,16 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
1038
1038
  width: auto;
1039
1039
  margin-left: 0;
1040
1040
  }
1041
- `,nd=(0,r.styled)(o.ChevronDown,{shouldForwardProp:e=>"collapsedIn"!==e&&"opened"!==e})`
1041
+ `,np=(0,r.styled)(o.ChevronDown,{shouldForwardProp:e=>"collapsedIn"!==e&&"opened"!==e})`
1042
1042
  transform: ${({opened:e})=>e?"rotateZ(180deg)":"rotateZ(0deg)"};
1043
1043
 
1044
1044
  width: ${({collapsedIn:e})=>e?"1em":"0px"};
1045
1045
  margin-left: auto;
1046
1046
 
1047
1047
  transition: ${({theme:e})=>e.transitions.create("transform",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})};
1048
- `,np=t=>{let{collapsedIn:r,opened:o,text:i,icon:n,component:l="a",...a}=t,{isMobile:s}=et(),d="boolean"==typeof o;return(0,e.jsxs)(nl,{$isGroupTitleItem:d,component:l,withoutContainer:!0,...a,children:[s?(0,e.jsx)(ns,{tooltipProps:{placement:"right"},rowsCount:1,children:i}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ef,{arrow:!0,title:!r&&i,placement:"right",children:(0,e.jsx)(na,{children:n})}),(0,e.jsx)(g,{orientation:"horizontal",in:r,children:(0,e.jsx)(ns,{tooltipProps:{placement:"right"},rowsCount:1,children:i})})]}),d&&(0,e.jsx)(nd,{collapsedIn:r,opened:o})]})},nc=t=>{let{collapsedIn:i,items:n}=t;return(0,e.jsx)(r.List,{disablePadding:!0,children:n.map(t=>{let[r,n]=t;return(0,e.jsx)("li",{children:(0,e.jsx)(np,{collapsedIn:i,selected:n.active,text:n.text,icon:(0,e.jsx)(o.Dot,{}),component:n.component})},r)})})},nu=r=>{let{collapsedIn:o,item:[,i]}=r,{active:n,icon:l,items:a,text:s,component:d,...p}=i,[c,u]=(0,t.useState)(a?.some(([,{active:e}])=>e)),h=(0,t.useMemo)(()=>!c&&n,[c,n]),m=(0,t.useCallback)(()=>{u(e=>{if("boolean"==typeof e)return!e})},[]);return(0,e.jsxs)("li",{children:[(0,e.jsx)(np,{opened:c,collapsedIn:o,selected:h,text:s,icon:l,component:d,...p,onClick:m}),a&&(0,e.jsx)(g,{in:c,children:(0,e.jsx)(nc,{collapsedIn:o,items:a})})]})},ng=t=>{let{collapsedIn:o=!0,items:i}=t;return(0,e.jsx)(r.List,{disablePadding:!0,children:i.map(t=>(0,e.jsx)(nu,{collapsedIn:o,item:t},t[0]))})},nh=t=>(0,e.jsx)(r.Paper,{...t}),nm=(0,r.styled)(o.Search)`
1048
+ `,nc=t=>{let{collapsedIn:r,opened:o,text:i,icon:n,component:l="a",...a}=t,{isMobile:s}=et(),d="boolean"==typeof o;return(0,e.jsxs)(na,{$isGroupTitleItem:d,component:l,withoutContainer:!0,...a,children:[s?(0,e.jsx)(nd,{tooltipProps:{placement:"right"},rowsCount:1,children:i}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(eb,{arrow:!0,title:!r&&i,placement:"right",children:(0,e.jsx)(ns,{children:n})}),(0,e.jsx)(g,{orientation:"horizontal",in:r,children:(0,e.jsx)(nd,{tooltipProps:{placement:"right"},rowsCount:1,children:i})})]}),d&&(0,e.jsx)(np,{collapsedIn:r,opened:o})]})},nu=t=>{let{collapsedIn:i,items:n}=t;return(0,e.jsx)(r.List,{disablePadding:!0,children:n.map(t=>{let[r,n]=t;return(0,e.jsx)("li",{children:(0,e.jsx)(nc,{collapsedIn:i,selected:n.active,text:n.text,icon:(0,e.jsx)(o.Dot,{}),component:n.component})},r)})})},ng=r=>{let{collapsedIn:o,item:[,i]}=r,{active:n,icon:l,items:a,text:s,component:d,...p}=i,[c,u]=(0,t.useState)(a?.some(([,{active:e}])=>e)),h=(0,t.useMemo)(()=>!c&&n,[c,n]),m=(0,t.useCallback)(()=>{u(e=>{if("boolean"==typeof e)return!e})},[]);return(0,e.jsxs)("li",{children:[(0,e.jsx)(nc,{opened:c,collapsedIn:o,selected:h,text:s,icon:l,component:d,...p,onClick:m}),a&&(0,e.jsx)(g,{in:c,children:(0,e.jsx)(nu,{collapsedIn:o,items:a})})]})},nh=t=>{let{collapsedIn:o=!0,items:i}=t;return(0,e.jsx)(r.List,{disablePadding:!0,children:i.map(t=>(0,e.jsx)(ng,{collapsedIn:o,item:t},t[0]))})},nm=t=>(0,e.jsx)(r.Paper,{...t}),nx=(0,r.styled)(o.Search)`
1049
1049
  color: ${({theme:e})=>e.palette.grey[600]};
1050
- `,nx=(0,r.styled)(ee,{shouldForwardProp:e=>!["$isActive"].includes(e.toString())})`
1050
+ `,ny=(0,r.styled)(ee,{shouldForwardProp:e=>!["$isActive"].includes(e.toString())})`
1051
1051
  opacity: ${({$isActive:e})=>+!!e};
1052
1052
 
1053
1053
  &:hover {
@@ -1057,17 +1057,17 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
1057
1057
  fill: ${({theme:e})=>e.palette.grey["700"]};
1058
1058
  }
1059
1059
  }
1060
- `,ny=(0,r.styled)(t8)`
1060
+ `,nf=(0,r.styled)(t6)`
1061
1061
  & .MuiFormHelperText-root {
1062
1062
  /* TODO Убрать после реализации https://track.astral.ru/soft/browse/UIKIT-1333 */
1063
1063
  display: none;
1064
1064
  }
1065
- `,nf=(0,r.styled)(o.CircleX)`
1065
+ `,nb=(0,r.styled)(o.CircleX)`
1066
1066
  width: 16px;
1067
1067
  height: 16px;
1068
1068
 
1069
1069
  fill: ${({theme:e})=>e.palette.grey["500"]};
1070
- `,nb=(0,t.forwardRef)(({margin:r="none",placeholder:o="Поиск",onChange:i,disabled:n,value:l,defaultValue:a,...s},d)=>{let[p,c]=(0,t.useState)(`${a||l||""}`),u=(0,t.useRef)(null),g=!!p.length;return(0,e.jsx)(ny,{margin:r,placeholder:o,startAdornment:(0,e.jsx)(nm,{onClick:()=>{u.current?.focus()}}),disabled:n,endAdornment:(0,e.jsx)(nx,{variant:"text",onClick:()=>{c(""),u.current&&(u.current.value="");let e=new InputEvent("input",{bubbles:!0,cancelable:!0});Object.defineProperty(e,"target",{writable:!0,value:u.current}),i?.(e),u.current?.focus()},disabled:n||!g,$isActive:g,children:(0,e.jsx)(nf,{})}),onChange:e=>{c(e.target.value),i?.(e)},value:p,ref:d,inputRef:u,...s})}),nC=(0,r.styled)(rs)`
1070
+ `,nC=(0,t.forwardRef)(({margin:r="none",placeholder:o="Поиск",onChange:i,disabled:n,value:l,defaultValue:a,...s},d)=>{let[p,c]=(0,t.useState)(`${a||l||""}`),u=(0,t.useRef)(null),g=!!p.length;return(0,e.jsx)(nf,{margin:r,placeholder:o,startAdornment:(0,e.jsx)(nx,{onClick:()=>{u.current?.focus()}}),disabled:n,endAdornment:(0,e.jsx)(ny,{variant:"text",onClick:()=>{c(""),u.current&&(u.current.value="");let e=new InputEvent("input",{bubbles:!0,cancelable:!0});Object.defineProperty(e,"target",{writable:!0,value:u.current}),i?.(e),u.current?.focus()},disabled:n||!g,$isActive:g,children:(0,e.jsx)(nb,{})}),onChange:e=>{c(e.target.value),i?.(e)},value:p,ref:d,inputRef:u,...s})}),n$=(0,r.styled)(rd)`
1071
1071
  vertical-align: text-top;
1072
1072
 
1073
1073
  & span.MuiBadge-badge {
@@ -1077,4 +1077,4 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
1077
1077
  box-sizing: content-box;
1078
1078
  height: 16px;
1079
1079
  }
1080
- `,n$=({disabled:e,checked:t,checkedColor:r,color:o})=>e?"grey":t?r||"white":o,nw=({color:t="primary",checked:r,disabled:o,checkedColor:i,...n})=>(0,e.jsx)(nC,{withBorder:!1,color:n$({disabled:o,checked:r,checkedColor:i,color:t}),...n});export{z as Accordion,ek as ActionCell,ri as AsyncAutocomplete,t7 as Autocomplete,rs as Badge,ep as BottomDrawer,q as Button,W as ButtonColors,N as ButtonSizes,V as ButtonStates,H as ButtonVariants,eT as Checkbox,rh as CheckboxField,u as Chevron,U as CircularProgress,g as Collapse,rf as ConfigContext,rb as ConfigProvider,rM as ConfirmAction,tB as Container,rJ as ContentState,r3 as CopyTypography,eL as DEFAULT_ROWS_COUNT,ik as DEFAULT_SEPARATOR,iS as DEFAULT_SYMBOL,iM as DESCRIPTION_ROOT_CLASSNAME,oQ as DataGrid,o9 as DataGridActionCell,ij as DataGridPagination,iz as Description,iU as DescriptionList,iq as Dialog,iQ as DialogActions,i1 as DialogContent,i3 as DialogContentText,i6 as DialogHeader,iG as DialogTitle,oH as Divider,oe as EXPANDED_LEVEL_BY_DEFAULT,rq as ErrorBoundary,rd as FormControl,rc as FormControlLabel,t4 as FormHelperText,t3 as FormHelperTextContent,iB as GuidTypography,oW as Head,ot as INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT,ee as IconButton,eh as IconDropdownButton,rO as Image,rU as InternalErrorPlaceholder,B as LOADING_BUTTON_CLASSNAME,i5 as Link,i7 as List,ne as ListItem,nt as ListItemButton,no as ListItemIcon,ni as ListItemText,nn as ListSubheader,r7 as MIN_DISPLAY_ROWS_BY_DEFAULT,r6 as MIN_ROW_HEIGHT,eg as Menu,eb as MenuItem,eu as MenuList,ng as NavMenu,rG as OutdatedReleasePlaceholder,ez as OverflowTypography,o5 as Pagination,nh as Paper,r_ as Placeholder,rC as Popover,r9 as ROOT_ACTION_CELL_WIDTH,oF as Row,ov as RowContext,oj as RowContextProvider,tF as SPACING,nb as SearchField,ix as Select,os as SortStates,r5 as TREE_LINE_WIDTH,tK as Tag,nw as TagBadge,ia as TagsList,t8 as TextField,ef as Tooltip,D as Typography,od as Variant,tT as componentsColors,tO as createTheme,tP as elevation,tA as getPalette,rL as setDefaultImageStyles,tD as shape,er as useMenu,eo as usePopover,tL as useTheme,et as useViewportType};
1080
+ `,nw=({disabled:e,checked:t,checkedColor:r,color:o})=>e?"grey":t?r||"white":o,nv=({color:t="primary",checked:r,disabled:o,checkedColor:i,...n})=>(0,e.jsx)(n$,{withBorder:!1,color:nw({disabled:o,checked:r,checkedColor:i,color:t}),...n});export{z as Accordion,eS as ActionCell,rn as AsyncAutocomplete,re as Autocomplete,rd as Badge,ec as BottomDrawer,q as Button,W as ButtonColors,N as ButtonSizes,V as ButtonStates,H as ButtonVariants,eA as Checkbox,rm as CheckboxField,u as Chevron,U as CircularProgress,g as Collapse,rb as ConfigContext,rC as ConfigProvider,rI as ConfirmAction,tW as Container,rQ as ContentState,r4 as CopyTypography,ez as DEFAULT_ROWS_COUNT,iS as DEFAULT_SEPARATOR,iM as DEFAULT_SYMBOL,iI as DESCRIPTION_ROOT_CLASSNAME,o0 as DataGrid,o5 as DataGridActionCell,ik as DataGridPagination,iB as Description,iG as DescriptionList,iK as Dialog,i0 as DialogActions,i2 as DialogContent,i4 as DialogContentText,i9 as DialogHeader,iX as DialogTitle,oN as Divider,ot as EXPANDED_LEVEL_BY_DEFAULT,rK as ErrorBoundary,rp as FormControl,ru as FormControlLabel,t8 as FormHelperText,t4 as FormHelperTextContent,iW as GuidTypography,oH as Head,or as INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT,ee as IconButton,em as IconDropdownButton,rL as Image,rG as InternalErrorPlaceholder,B as LOADING_BUTTON_CLASSNAME,i7 as Link,ne as List,nt as ListItem,nr as ListItemButton,ni as ListItemIcon,nn as ListItemText,nl as ListSubheader,oe as MIN_DISPLAY_ROWS_BY_DEFAULT,r9 as MIN_ROW_HEIGHT,eh as Menu,eC as MenuItem,eg as MenuList,nh as NavMenu,rX as OutdatedReleasePlaceholder,eB as OverflowTypography,o7 as Pagination,nm as Paper,rU as Placeholder,r$ as Popover,r5 as ROOT_ACTION_CELL_WIDTH,oP as Row,oj as RowContext,ok as RowContextProvider,tP as SPACING,nC as SearchField,iy as Select,od as SortStates,r7 as TREE_LINE_WIDTH,tJ as Tag,nv as TagBadge,is as TagsList,t6 as TextField,eb as Tooltip,D as Typography,op as Variant,tA as componentsColors,tL as createTheme,tT as elevation,tD as getPalette,rz as setDefaultImageStyles,tE as shape,er as useMenu,eo as usePopover,tz as useTheme,ei as useToggle,et as useViewportType};