@max-ts/components 0.0.2 → 0.1.1

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 (216) hide show
  1. package/.storybook/main.ts +14 -14
  2. package/.turbo/turbo-build.log +11 -493
  3. package/.turbo/turbo-type$colon$check.log +1 -756
  4. package/CHANGELOG.md +12 -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/components/index.d.ts +14 -0
  75. package/dist/hooks/index.d.ts +1 -0
  76. package/dist/hooks/useToggle/index.d.ts +1 -0
  77. package/dist/hooks/useToggle/useToggle.d.ts +43 -0
  78. package/dist/index.js +183 -49
  79. package/dist/index.mjs +312 -178
  80. package/package.json +1 -1
  81. package/rslib.config.ts +26 -26
  82. package/src/components/Accordion/Accordion.stories.tsx +2 -0
  83. package/src/components/ActionCell/ActionCell.stories.tsx +1 -0
  84. package/src/components/ActionCell/MainAction/MainAction.tsx +1 -0
  85. package/src/components/AsyncAutocomplete/AsyncAutocomplete.stories.tsx +1 -0
  86. package/src/components/Autocomplete/Autocomplete.stories.tsx +1 -0
  87. package/src/components/Badge/Badge.stories.tsx +1 -0
  88. package/src/components/BottomDrawer/BottomDrawer.stories.tsx +2 -1
  89. package/src/components/Button/Button.stories.tsx +2 -1
  90. package/src/components/Button/Button.tsx +9 -10
  91. package/src/components/Button/useLogic/useLogic.ts +2 -5
  92. package/src/components/Checkbox/Checkbox.stories.tsx +1 -3
  93. package/src/components/CheckboxField/CheckboxField.stories.tsx +1 -0
  94. package/src/components/Chevron/Chevron.stories.tsx +1 -0
  95. package/src/components/CircularProgress/CircularProgress.stories.tsx +1 -0
  96. package/src/components/Collapse/Collapse.stories.tsx +1 -0
  97. package/src/components/ConfirmAction/ConfirmAction.stories.tsx +1 -3
  98. package/src/components/ConfirmDialog/ConfirmDialog.stories.tsx +69 -0
  99. package/src/components/ConfirmDialog/ConfirmDialog.tsx +83 -0
  100. package/src/components/ConfirmDialog/index.ts +1 -0
  101. package/src/components/ConfirmDialog/styles.ts +8 -0
  102. package/src/components/ConfirmDialog/useLogic/index.ts +1 -0
  103. package/src/components/ConfirmDialog/useLogic/useLogic.ts +23 -0
  104. package/src/components/ContentState/ContentState.stories.tsx +1 -0
  105. package/src/components/CopyTypography/CopyTypography.stories.tsx +1 -2
  106. package/src/components/DataGrid/DataGrid.stories.tsx +1 -0
  107. package/src/components/DataGridActionCell/DataGridActionCell.stories.tsx +1 -0
  108. package/src/components/DataGridPagination/DataGridPagination.stories.tsx +1 -0
  109. package/src/components/Description/Description.stories.tsx +1 -0
  110. package/src/components/DescriptionList/DescriptionList.stories.tsx +1 -0
  111. package/src/components/Dialog/Dialog.stories.tsx +1 -0
  112. package/src/components/DialogActions/DialogActions.stories.tsx +1 -3
  113. package/src/components/DialogContent/DialogContent.stories.tsx +1 -3
  114. package/src/components/DialogContentText/DialogContentText.stories.tsx +1 -0
  115. package/src/components/DialogHeader/DialogHeader.stories.tsx +1 -0
  116. package/src/components/Divider/Divider.stories.tsx +1 -0
  117. package/src/components/DropdownButton/DropdownButton.stories.tsx +191 -0
  118. package/src/components/DropdownButton/DropdownButton.tsx +46 -0
  119. package/src/components/DropdownButton/index.ts +1 -0
  120. package/src/components/ErrorBoundary/ErrorBoundary.stories.tsx +1 -0
  121. package/src/components/Filename/Filename.stories.tsx +244 -0
  122. package/src/components/Filename/Filename.tsx +57 -0
  123. package/src/components/Filename/index.ts +1 -0
  124. package/src/components/Filename/styles.ts +18 -0
  125. package/src/components/Filename/useLogic/index.ts +1 -0
  126. package/src/components/Filename/useLogic/useLogic.ts +36 -0
  127. package/src/components/Filename/useLogic/utils/findExtension/constants.ts +16 -0
  128. package/src/components/Filename/useLogic/utils/findExtension/findExtension.ts +17 -0
  129. package/src/components/Filename/useLogic/utils/findExtension/index.ts +1 -0
  130. package/src/components/Filename/useLogic/utils/index.ts +1 -0
  131. package/src/components/Filename/useLogic/utils/truncateString/constants.ts +1 -0
  132. package/src/components/Filename/useLogic/utils/truncateString/index.ts +1 -0
  133. package/src/components/Filename/useLogic/utils/truncateString/truncateString.ts +24 -0
  134. package/src/components/FormLabel/FormLabel.tsx +11 -0
  135. package/src/components/FormLabel/index.ts +1 -0
  136. package/src/components/FormLabel/styles.ts +6 -0
  137. package/src/components/GuidTypography/GuidTypography.stories.tsx +1 -0
  138. package/src/components/IconButton/IconButton.stories.tsx +1 -1
  139. package/src/components/IconButton/IconButton.tsx +11 -16
  140. package/src/components/IconButton/styles.ts +24 -24
  141. package/src/components/IconDropdownButton/IconDropdownButton.stories.tsx +1 -0
  142. package/src/components/InternalErrorPlaceholder/InternalErrorPlaceholder.stories.tsx +1 -0
  143. package/src/components/Link/Link.stories.tsx +1 -0
  144. package/src/components/List/List.stories.tsx +1 -0
  145. package/src/components/ListItem/ListItem.stories.tsx +1 -0
  146. package/src/components/ListItemButton/ListItemButton.stories.tsx +1 -0
  147. package/src/components/ListItemButton/ListItemButton.tsx +3 -9
  148. package/src/components/ListItemIcon/ListItemIcon.stories.tsx +1 -0
  149. package/src/components/ListItemText/ListItemText.stories.tsx +1 -0
  150. package/src/components/ListSubheader/ListSubheader.stories.tsx +1 -0
  151. package/src/components/Menu/Menu.stories.tsx +1 -0
  152. package/src/components/MenuItem/MenuItem.stories.tsx +1 -0
  153. package/src/components/MenuItem/MenuItem.tsx +1 -2
  154. package/src/components/MenuList/MenuList.stories.tsx +1 -0
  155. package/src/components/MenuList/types.ts +3 -8
  156. package/src/components/NavMenu/Item/ItemButton/ItemButton.tsx +1 -2
  157. package/src/components/NavMenu/NavMenu.stories.tsx +1 -0
  158. package/src/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.stories.tsx +1 -0
  159. package/src/components/OverflowTypography/OverflowTypography.stories.tsx +1 -8
  160. package/src/components/Pagination/Pagination.stories.tsx +1 -0
  161. package/src/components/Placeholder/Placeholder.stories.tsx +1 -0
  162. package/src/components/Popover/Popover.stories.tsx +1 -0
  163. package/src/components/ProgressBar/ProgressBar.stories.tsx +31 -0
  164. package/src/components/ProgressBar/ProgressBar.tsx +26 -0
  165. package/src/components/ProgressBar/index.ts +1 -0
  166. package/src/components/Radio/Icon/Icon.tsx +37 -0
  167. package/src/components/Radio/Icon/index.ts +1 -0
  168. package/src/components/Radio/Radio.stories.tsx +32 -0
  169. package/src/components/Radio/Radio.tsx +24 -0
  170. package/src/components/Radio/constants.ts +9 -0
  171. package/src/components/Radio/index.ts +1 -0
  172. package/src/components/Radio/styles.ts +70 -0
  173. package/src/components/RadioField/RadioField.stories.tsx +74 -0
  174. package/src/components/RadioField/RadioField.tsx +55 -0
  175. package/src/components/RadioField/index.ts +1 -0
  176. package/src/components/RadioField/styles.ts +10 -0
  177. package/src/components/RadioGroup/RadioGroup.stories.tsx +60 -0
  178. package/src/components/RadioGroup/RadioGroup.tsx +79 -0
  179. package/src/components/RadioGroup/RadioGroupContext/RadioGroupContext.ts +9 -0
  180. package/src/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.tsx +18 -0
  181. package/src/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/index.ts +1 -0
  182. package/src/components/RadioGroup/RadioGroupContext/index.ts +3 -0
  183. package/src/components/RadioGroup/index.ts +3 -0
  184. package/src/components/RadioGroupField/RadioGroupField.tsx +17 -0
  185. package/src/components/RadioGroupField/index.ts +1 -0
  186. package/src/components/Select/Select.stories.tsx +0 -4
  187. package/src/components/Skeleton/Skeleton.stories.tsx +78 -0
  188. package/src/components/Skeleton/Skeleton.tsx +31 -0
  189. package/src/components/Skeleton/index.ts +1 -0
  190. package/src/components/Skeleton/styles.ts +16 -0
  191. package/src/components/Switch/Switch.stories.tsx +179 -0
  192. package/src/components/Switch/Switch.tsx +14 -0
  193. package/src/components/Switch/index.ts +1 -0
  194. package/src/components/Switch/styles.ts +14 -0
  195. package/src/components/Tab/Tab.stories.tsx +53 -0
  196. package/src/components/Tab/Tab.tsx +20 -0
  197. package/src/components/Tab/index.ts +1 -0
  198. package/src/components/Tab/styles.ts +22 -0
  199. package/src/components/Tabs/Tabs.stories.tsx +74 -0
  200. package/src/components/Tabs/Tabs.tsx +27 -0
  201. package/src/components/Tabs/index.ts +1 -0
  202. package/src/components/Tabs/styles.ts +20 -0
  203. package/src/components/Tag/Tag.stories.tsx +1 -1
  204. package/src/components/TagBadge/TagBadge.stories.tsx +1 -5
  205. package/src/components/TextArea/TextArea.stories.tsx +81 -0
  206. package/src/components/TextArea/TextArea.tsx +8 -0
  207. package/src/components/TextArea/index.ts +1 -0
  208. package/src/components/TextField/TextField.stories.tsx +1 -4
  209. package/src/components/Tooltip/Tooltip.stories.tsx +1 -4
  210. package/src/components/Typography/Typography.stories.tsx +2 -4
  211. package/src/components/index.ts +28 -0
  212. package/src/hooks/index.ts +1 -0
  213. package/src/hooks/useToggle/index.ts +1 -0
  214. package/src/hooks/useToggle/useToggle.ts +76 -0
  215. package/test.tsx +1 -0
  216. package/tsconfig.json +3 -2
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mui/material";import*as o from"lucide-react";import*as i from"clsx";import*as n from"react-use";import*as l from"@mui/material/styles";import*as a from"remeda";import*as s from"@emotion/react";import*as d from"@mui/material/List";import*as p from"@mui/material/ListItemText";let c=(0,r.styled)(o.ChevronsDown,{shouldForwardProp:e=>"isActive"!==e})`
1
+ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mui/material";import*as i from"lucide-react";import*as o from"clsx";import*as n from"react-use";import*as l from"@mui/material/styles";import*as a from"remeda";import*as s from"@emotion/react";import*as d from"@mui/material/List";import*as p from"@mui/material/ListItemText";let c=(0,r.styled)(i.ChevronsDown,{shouldForwardProp:e=>"isActive"!==e})`
2
2
  transform: rotateZ(${({isActive:e})=>180*!!e}deg);
3
3
 
4
4
  transition: ${({theme:e})=>e.transitions.create("transform",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.short})};
5
- `,u=t=>(0,e.jsx)(c,{...t}),g=t=>(0,e.jsx)(r.Collapse,{...t});var h,m,x,y,f,b,C,$,w,v,j,k,S,M,I,F=((h={}).text="text",h.secondary="secondary",h.primary="primary",h.error="error",h.success="success",h.warning="warning",h.info="info",h.textSecondary="text.secondary",h.grey="grey",h.red="red",h.green="green",h.yellow="yellow",h);let P=({color:e,colorIntensity:o="800"})=>{let i=(0,r.useTheme)();return(0,t.useMemo)(()=>{let t=e&&F[e];if(t)switch(t){case F.text:return i.palette.text.primary;case F.textSecondary:return i.palette.text.secondary;default:return i.palette[t]?.[o]||t}},[e,o,i])},T=(0,r.styled)(r.Typography,{shouldForwardProp:e=>"isUpperCase"!==e})`
5
+ `,u=t=>(0,e.jsx)(c,{...t}),g=t=>(0,e.jsx)(r.Collapse,{...t});var h,m,x,y,f,b,$,C,w,v,j,k,S,M,I,F=((h={}).text="text",h.secondary="secondary",h.primary="primary",h.error="error",h.success="success",h.warning="warning",h.info="info",h.textSecondary="text.secondary",h.grey="grey",h.red="red",h.green="green",h.yellow="yellow",h);let P=({color:e,colorIntensity:i="800"})=>{let o=(0,r.useTheme)();return(0,t.useMemo)(()=>{let t=e&&F[e];if(t)switch(t){case F.text:return o.palette.text.primary;case F.textSecondary:return o.palette.text.secondary;default:return o.palette[t]?.[i]||t}},[e,i,o])},T=(0,r.styled)(r.Typography,{shouldForwardProp:e=>"isUpperCase"!==e})`
6
6
  text-transform: ${({isUpperCase:e})=>e?"uppercase":"none"};
7
- `,A=e=>{e&&["h7","h8","ui","small","code","body2","overline"].includes(e)&&console.warn(`[@astral/components]: Deprecated: Вариант "${e}" в компоненте Typography больше не поддерживается и будет удален в следующем мажорном релизе. Используйте другой подходящий вариант.`)},D=({children:t,color:r,colorIntensity:o="800",component:i,...n})=>{let l=P({color:r,colorIntensity:o});return A(n.variant),(0,e.jsx)(T,{...n,component:i,color:l,children:t})},E=(0,r.styled)("header")`
7
+ `,A=e=>{e&&["h7","h8","ui","small","code","body2","overline"].includes(e)&&console.warn(`[@astral/components]: Deprecated: Вариант "${e}" в компоненте Typography больше не поддерживается и будет удален в следующем мажорном релизе. Используйте другой подходящий вариант.`)},E=({children:t,color:r,colorIntensity:i="800",component:o,...n})=>{let l=P({color:r,colorIntensity:i});return A(n.variant),(0,e.jsx)(T,{...n,component:o,color:l,children:t})},D=(0,r.styled)("header")`
8
8
  cursor: pointer;
9
9
 
10
10
  display: grid;
@@ -13,14 +13,14 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
13
13
  `,R=(0,r.styled)("div")`
14
14
  margin-left: ${({theme:e,withStartAdorment:t})=>e.spacing(8*!!t)};
15
15
  padding-top: ${({theme:e})=>e.spacing(2)};
16
- `,O=(0,r.styled)(D)`
16
+ `,L=(0,r.styled)(E)`
17
17
  align-self: center;
18
- `,L=(0,r.styled)("div")`
18
+ `,O=(0,r.styled)("div")`
19
19
  overflow: hidden;
20
20
 
21
21
  width: 24px;
22
22
  height: 24px;
23
- `,z=(0,t.forwardRef)(({summary:r,startAdorment:o,isExpanded:i,onChange:n,children:l},a)=>{let[s,d]=(0,t.useState)(!1),p="boolean"==typeof i,c=p?i:s,h=!!o,m="string"==typeof r?O:t.default.Fragment;return(0,e.jsxs)("div",{ref:a,children:[(0,e.jsxs)(E,{onClick:e=>{if(p)n?.(!i,e);else{let t=!s;d(t),n?.(t,e)}},withStartAdornment:h,children:[o,(0,e.jsx)(m,{children:r}),(0,e.jsx)(L,{children:(0,e.jsx)(u,{isActive:c})})]}),(0,e.jsx)(g,{in:c,children:(0,e.jsx)(R,{withStartAdorment:h,children:l})})]})}),B="astral-button-loading";var W=((m={}).Error="error",m.Success="success",m.Warning="warning",m.Primary="primary",m),H=((x={}).Contained="contained",x.Light="light",x.Text="text",x.Link="link",x),N=((y={}).Small="small",y.Medium="medium",y.Large="large",y),V=((f={}).Default="default",f.Active="active",f.Focus="focus",f.Hover="hover",f);let _=({size:e})=>({size:"small"===e?16:24}),U=t=>{let{size:o}=_({...t}),{size:i,color:n,...l}=t;return(0,e.jsx)(r.CircularProgress,{...l,size:o,color:"inherit","data-color":n})},G=(0,r.styled)(r.Button)`
23
+ `,z=(0,t.forwardRef)(({summary:r,startAdorment:i,isExpanded:o,onChange:n,children:l},a)=>{let[s,d]=(0,t.useState)(!1),p="boolean"==typeof o,c=p?o:s,h=!!i,m="string"==typeof r?L:t.default.Fragment;return(0,e.jsxs)("div",{ref:a,children:[(0,e.jsxs)(D,{onClick:e=>{if(p)n?.(!o,e);else{let t=!s;d(t),n?.(t,e)}},withStartAdornment:h,children:[i,(0,e.jsx)(m,{children:r}),(0,e.jsx)(O,{children:(0,e.jsx)(u,{isActive:c})})]}),(0,e.jsx)(g,{in:c,children:(0,e.jsx)(R,{withStartAdorment:h,children:l})})]})}),B="astral-button-loading";var W=((m={}).Error="error",m.Success="success",m.Warning="warning",m.Primary="primary",m),H=((x={}).Contained="contained",x.Light="light",x.Text="text",x.Link="link",x),N=((y={}).Small="small",y.Medium="medium",y.Large="large",y),V=((f={}).Default="default",f.Active="active",f.Focus="focus",f.Hover="hover",f);let _=({size:e})=>({size:"small"===e?16:24}),U=t=>{let{size:i}=_({...t}),{size:o,color:n,...l}=t;return(0,e.jsx)(r.CircularProgress,{...l,size:i,color:"inherit","data-color":n})},G=(0,r.styled)(r.Button)`
24
24
  min-width: ${({variant:e})=>e===H.Link?"auto":""};
25
25
  padding: ${({variant:e})=>e===H.Link?0:""};
26
26
 
@@ -29,7 +29,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
29
29
  }
30
30
  `,X=(0,r.styled)(U)`
31
31
  position: absolute;
32
- `;var Y=((b={}).PRIMARY="primary",b.INVERTED="inverted",b);let Z=({variant:e})=>({loadingIndicatorColor:(0,t.useMemo)(()=>e!==H.Contained?Y.PRIMARY:Y.INVERTED,[e])}),q=t=>{let{loadingIndicatorColor:r}=Z(t),{variant:o=H.Contained,color:n=W.Primary,loading:l,loadingIndicator:a,loadingPosition:s,disabled:d,children:p,className:c,...u}=t;return(0,e.jsxs)(G,{variant:o,color:n,disabled:l||d,...u,className:(0,i.clsx)(c,{[B]:l}),children:[l&&(0,e.jsx)(X,{color:r,size:"small"}),p]})},K=({type:e,values:t,defaultValue:r})=>e&&t[e]||r,J=e=>K({type:e.size,values:{[N.Large]:"40px"},defaultValue:"32px"}),Q=(0,r.styled)(q,{shouldForwardProp:e=>"startIcon"!==e&&"endIcon"!==e&&"loading"!==e})`
32
+ `;var Y=((b={}).PRIMARY="primary",b.INVERTED="inverted",b);let Z=({variant:e})=>({loadingIndicatorColor:(0,t.useMemo)(()=>e!==H.Contained?Y.PRIMARY:Y.INVERTED,[e])}),q=t=>{let{loadingIndicatorColor:r}=Z(t),{variant:i=H.Contained,color:n=W.Primary,loading:l,loadingIndicator:a,loadingPosition:s,disabled:d,children:p,className:c,...u}=t;return(0,e.jsxs)(G,{variant:i,color:n,disabled:l||d,...u,className:(0,o.clsx)(c,{[B]:l}),children:[l&&(0,e.jsx)(X,{color:r,size:"small"}),p]})},K=({type:e,values:t,defaultValue:r})=>e&&t[e]||r,J=e=>K({type:e.size,values:{[N.Large]:"40px"},defaultValue:"32px"}),Q=(0,r.styled)(q,{shouldForwardProp:e=>"startIcon"!==e&&"endIcon"!==e&&"loading"!==e})`
33
33
  pointer-events: ${({loading:e})=>e&&"none"};
34
34
 
35
35
  width: ${J};
@@ -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:i=H.Contained,loading:o,children:n,...l}=r,a=(0,t.useMemo)(()=>i===H.Contained?"inverted":"primary",[i]);return(0,e.jsx)(Q,{loading:o,variant:i,tabIndex:o?-1:0,...l,children:o?(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,i]=(0,t.useState)(!1),o=(0,t.useRef)(null);return(0,t.useEffect)(()=>{e&&("function"==typeof e?e(o.current):e.current=o.current)},[e]),{open:r,anchorRef:o,handleCloseMenu:()=>i(!1),handleOpenMenu:()=>i(!0)}}let ei=()=>{let[e,r]=(0,t.useState)(null);return{isOpen:!!e,anchor:e,actions:{open:e=>r(e.currentTarget),close:()=>r(null)}}},eo=e=>{let{initialState:r=!1,onInactive:i,onActive:o}=e||{},[n,l]=(0,t.useState)(r);return[n,(...e)=>{l(!0),o?.(...e)},(...e)=>{l(!1),i?.(...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:o,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)(i.X,{})})]}),(0,e.jsx)(ep,{children:o})]}),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:i,open:o,title:n,...l})=>{let{isMobile:a}=et();return a?(0,e.jsx)(ec,{title:n,onClose:i,open:o,children:(0,e.jsx)(eg,{children:t})}):(0,e.jsx)(r.Menu,{open:o,onClose:i,...l,children:t})},em=(0,t.forwardRef)(({children:t,icon:i,...o},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,{...o,ref:a,onClick:s,selected:l,children:i})}),(0,e.jsx)(eh,{open:l,anchorEl:a.current,children:t})]})});var ex=(($={}).MEDIUM="medium",$.SMALL="small",$);let ey=(0,r.styled)(({className:t,...i})=>(0,e.jsx)(r.Tooltip,{...i,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:i="top",size:o=ex.MEDIUM,withoutContainer:n=!0,children:l,...a}=t;return(0,e.jsx)(ey,{title:r,size:o,placement:i,arrow:!0,...a,children:n?l:(0,e.jsx)(ef,{children:l})})},e$=t=>{let{disabledReason:i,disabled:o,component:n="div",title:l,tooltipPlacement:a="left",note:s,...d}=t;return(0,e.jsx)("li",{children:(0,e.jsx)(eb,{title:o?i:s,placement:a,withoutContainer:!o,children:(0,e.jsx)(r.MenuItem,{...d,disabled:o,title:l,component:n})},l)})},eC=({action:r,onActionClick:i,tooltipPlacement:o,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:o,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)(e$,{...n,key:e,tooltipPlacement:o,onClick:i(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:o,withoutContainer:!(n||p),children:(0,e.jsx)(ee,{disabled:n||p,...g,variant:"text",onClick:i(l),children:s})},a)},ew=({actions:r,onActionClick:o,tooltipPlacement:n,isDisabled:l=!1})=>(0,e.jsx)(em,{icon:(0,e.jsx)(i.EllipsisVertical,{}),variant:"text",disabled:l,children:r.map(e=>{let{onClick:r,name:i}=e;return(0,t.createElement)(e$,{...e,key:i,tooltipPlacement:n,onClick:o(r)},i)})}),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:i,secondary:o}=e,n=i.some(e=>!("actions"in e)&&e?.isBlockingOperation&&e?.loading),l=(0,t.useCallback)(e=>()=>{e?.(r)},[r]);return{isSecondaryActionsAvailable:o&&o.length>=1,handleActionClick:l,handleWrapperClick:e=>{e.stopPropagation()},isDisabledAction:n}},ek={mainAction:"top",secondaryAction:"left"},eS=t=>{let{isSecondaryActionsAvailable:r,handleActionClick:i,handleWrapperClick:o,isDisabledAction:n}=ej(t),{actions:l}=t,{main:a=[],secondary:s=[]}=l;return(0,e.jsxs)(ev,{onClick:o,children:[a.map(t=>(0,e.jsx)(eC,{tooltipPlacement:ek.mainAction,onActionClick:i,action:t,isDisabled:n},t.name)),r&&(0,e.jsx)(ew,{isDisabled:n,actions:s,tooltipPlacement:ek.secondaryAction,onActionClick:i})]})},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:i=(0,e.jsx)(eF,{}),...o},n)=>(0,e.jsx)(eT,{ref:n,icon:t,checkedIcon:r,indeterminateIcon:i,...o})),eE=(0,r.styled)(E,{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
+ `,eD=(0,r.styled)(E,{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 i=(0,t.useRef)(null),o=e&&"function"!=typeof e?e:i,[l,a]=(0,t.useState)(!1),s=(0,n.useFirstMountState)(),d=([{target:e,contentRect:t}])=>{let r=Math.round(t.height)<e.scrollHeight,i=e.scrollWidth>Math.round(t.width);a(r||i)};return(0,t.useLayoutEffect)(()=>{if(o?.current){let e=o.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])}},[o.current]),{isOverflowed:l,ref:o}},eL=(e,t)=>({firstPartLabel:t.slice(0,-e),secondPartLabel:t.slice(-e)}),eO=({children:e,visibleLastSymbolsCount:t,ref:r})=>{let{ref:i,isOverflowed:o}=eR(r),n=e&&"string"==typeof e,{firstPartLabel:l,secondPartLabel:a}=n&&o&&t?eL(t,e):{firstPartLabel:"",secondPartLabel:""};return{isTruncatedStringVisible:n&&o&&!!t,isOverflowed:o,ref:i,firstPartLabel:l,secondPartLabel:a}},ez=1,eB=t=>{let{ref:r,isOverflowed:i,secondPartLabel:o,firstPartLabel:n,isTruncatedStringVisible:l}=eO(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)(eD,{$align:c,children:[(0,e.jsx)(eE,{component:"span",ref:r,hasMultipleRows:!1,rowsCount:1,...u,children:n}),(0,e.jsx)(E,{...u,component:"span",children:o})]})}):s&&i?(0,e.jsx)(eb,{title:s,disableInteractive:!0,...a,children:(0,e.jsx)(eE,{...g})}):(0,e.jsx)(eE,{...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=((C={}).medium="medium",C.small="small",C);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:i,selected:o})=>{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 o?t!==H.Link?e.palette.primary.contrastText:n.selected[i]:t===H.Contained?n.contained:t===H.Light&&r?n.light[r][i]:t===H.Text?n.text[i]:n.link[i]},eq=({selected:e,color:t,variant:r,buttonState:i,theme:o})=>{let n={selected:{default:o.palette.grey["900"],hover:o.palette.grey["700"],active:o.palette.grey["800"],focus:o.palette.grey["900"]},light:{error:{default:o.palette.red["100"],hover:o.palette.red["200"],active:o.palette.red["100"],focus:o.palette.red["100"]},success:{default:o.palette.green["100"],hover:o.palette.green["200"],active:o.palette.green["100"],focus:o.palette.green["100"]},primary:{default:o.palette.grey["100"],hover:o.palette.grey["200"],active:o.palette.primary["100"],focus:o.palette.grey["100"]},warning:{default:o.palette.yellow["100"],hover:o.palette.yellow["200"],active:o.palette.yellow["100"],focus:o.palette.yellow["100"]}},contained:{error:{default:o.palette.red["800"],hover:o.palette.red["700"],active:o.palette.red["900"],focus:o.palette.red["800"]},success:{default:o.palette.green["800"],hover:o.palette.green["700"],active:o.palette.green["900"],focus:o.palette.green["800"]},primary:{default:o.palette.primary["800"],hover:o.palette.primary["700"],active:o.palette.primary["900"],focus:o.palette.primary["800"]},warning:{default:o.palette.yellow["800"],hover:o.palette.yellow["700"],active:o.palette.yellow["900"],focus:o.palette.yellow["800"]}},text:{default:"transparent",hover:o.palette.grey["200"],active:o.palette.primary["100"],focus:"transparent"},link:"transparent"};return e&&r!==H.Link?n.selected[i]:r===H.Light&&t?n.light[t][i]:r===H.Contained&&t?n.contained[t][i]:r===H.Text?n.text[i]: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 i=e.variant,o=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:i}),whiteSpace:"nowrap"},color:eZ({selected:n,theme:t,variant:i,color:o,buttonState:V.Default}),fontWeight:t.typography.button.fontWeight,fontSize:t.typography.button.fontSize,backgroundColor:eq({selected:n,theme:t,color:o,variant:i,buttonState:V.Default}),border:"none",borderRadius:t.shape.small,"&:hover":{color:eZ({selected:n,theme:t,variant:i,color:o,buttonState:V.Hover}),backgroundColor:eq({selected:n,color:o,variant:i,theme:t,buttonState:V.Hover}),boxShadow:"none"},"&:active":{color:eZ({selected:n,color:o,variant:i,theme:t,buttonState:V.Active}),backgroundColor:eq({selected:n,color:o,variant:i,theme:t,buttonState:V.Active}),outline:"none"},"&:focus-visible":{color:eZ({selected:n,theme:t,variant:i,color:o,buttonState:V.Focus}),backgroundColor:eq({selected:n,color:o,variant:i,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:i}),pointerEvents:"none",cursor:"unset"},[`&.${B}`]:{color:"transparent",backgroundColor:eq({color:o,variant:i,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)}})}},ti={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)})}},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:i,error:o}=r.stepLabelClasses;return{fontSize:e.typography.small.fontSize,lineHeight:e.typography.small.lineHeight,fontWeight:e.typography.small.fontWeight,color:e.palette.grey[700],[`&.${t}, &.${i}, &.${o}`]:{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})}},t$={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)})}},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,8 +216,8 @@ 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"})`
220
- display: ${({variant:e="flex",templateAreas:t,templateColumns:r,templateRows:o})=>o||r||t?"grid":e};
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:to,MuiFormLabel:e9,MuiFormHelperText:e6,MuiAutocomplete:eV,MuiCheckbox:tM,MuiMenu:tr,MuiMenuItem:ti,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:tC,MuiTextField:t$,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"}},tE=()=>{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}},tD={small:"3px",medium:"6px",large:"9px"},tR={fontSize:14,htmlFontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700,fontFamily:"Ubuntu,sans-serif"},tL=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:i=eW}=e,o={typography:tR,breakpoints:i,spacing:tP,palette:tE(),components:tF(r),shape:tD,elevation:tT},n=(0,l.createTheme)(o),s=(0,l.createTheme)(n,{typography:tL(n)});return(0,a.mergeDeep)(s,{elevation:tT,shape:tD,...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
+ display: ${({variant:e="flex",templateAreas:t,templateColumns:r,templateRows:i})=>i||r||t?"grid":e};
221
221
  flex-direction: ${({direction:e="row"})=>e};
222
222
  flex-wrap: ${({direction:e="row"})=>"row"===e?"nowrap":"wrap"};
223
223
  gap: ${({gap:e=2,theme:t})=>t.spacing(e)};
@@ -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:i})=>{if(i)return e.palette.grey[100];if("text"===r)return"transparent";let o={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?o[r][t]:!r&&t?o.contained[t]:e.palette.grey[300]},tX=({theme:e,customColor:t,customVariant:r,disabled:i})=>{if(i)return e.palette.text.disabled;if("text"===r)return e.palette.grey[900];let o={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?o[r][t]:e.palette.text.primary:o.contained.default:e.palette.common.white:e.palette.grey[900]},tY=({theme:e,iconState:t,customVariant:r,customColor:i})=>{let o={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)&&i)return o[r][i||"default"];if("text"===r)return o.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:o,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:o||(0,e.jsx)(i.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)(i.CircleCheck)`
324
+ ${({theme:e})=>tQ(e)}
325
+ `,t2=(0,r.styled)(i.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:i,children:o})=>{let n=(0,t.useMemo)(()=>r?(0,e.jsx)(t1,{}):i?(0,e.jsx)(t2,{}):null,[r,i]);return o?(0,e.jsxs)(t0,{error:i,success:r,children:[n,(0,e.jsx)(t3,{children:o})]}):null},t8=({children:t,success:i,error:o,...n})=>(0,e.jsx)(r.FormHelperText,{...n,children:(0,e.jsx)(t4,{error:o,success:i,children:t})}),t6=({success:i,error:o,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(i)return"success"},[i]),m=(0,t.useMemo)(()=>i?(0,e.jsx)(t4,{success:!0,children:n}):o?(0,e.jsx)(t4,{error:!0,children:n}):n||(0,e.jsx)(e.Fragment,{}),[n,i,o]);return(0,e.jsx)(r.TextField,{variant:"outlined",fullWidth:l,error:o,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)(e$)`
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:i=!0,freeSolo:o,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:!o&&i,noOptionsText:a?s:d,onInputChange:(e,t,r)=>{p?.(e,t,r),l||u(t)}}}},re=o=>{let{isValueEmpty:n,isPopperVisible:l,autocompleteProps:a}=t7(o),{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:$="Открыть",clearText:C="Очистить",loadingText:w=(0,e.jsx)(U,{color:"primary"}),isLoadedDataError:v,loadedDataError:j,noOptionsText:k,autoHighlight:S,renderInput:M,renderTags:I,renderOption:F,...P}=o,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)((i,o,n,l)=>{if(F)return F(i,o,n,l);let a=!!i["aria-selected"];return(0,t.createElement)(t9,{...i,key:i.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:i.key})]})},[m,f,F]),E=(0,t.useCallback)((r,o,n)=>I?I(r,o,n):r.map((r,n)=>{let l=u?.(r)||"";return(0,t.createElement)(tJ,{deleteIcon:(0,e.jsx)(i.X,{}),color:"grey",label:l,...o({index:n}),key:l})}),[u,I]),D=(0,t.useCallback)(t=>l?(0,e.jsx)(r.Popper,{...t}):null,[l]);return(0,e.jsx)(r.Autocomplete,{...P,size:x,clearText:C,closeText:b,openText:$,loadingText:w,multiple:m,disableCloseOnSelect:m,clearIcon:(0,e.jsx)(i.X,{}),popupIcon:(0,e.jsx)(i.ChevronDown,{}),forcePopupIcon:!0,slotProps:{clearIndicator:{disableRipple:!0},popper:{component:D}},getOptionLabel:u,renderInput:T,renderTags:E,renderOption:A,...a})},rt=0,rr=300,ri="Нет данных",ro=({fetchOptions:e,fetchDelayMs:i=rr,minSymbolsToFetch:o=rt,defaultValue:n,getOptionLabel:l,noOptionsText:a=ri,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})},i),[e,i,a]);return{handleOpen:e=>{if(u){g(!1);let e=n&&l?l(n):"";(n||0===o)&&(c(!0),b(e))}s?.(e)},handleInputChange:(e,t,r)=>{if(!t||t.length<o)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:i,handleOpen:o,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)(re,{options:r,disabled:p,fullWidth:m,loading:h||i,onOpen:o,error:g,required:c,success:u,noOptionsText:l,onInputChange:n,...b})},rl=({$customColor:e,theme:t,$variantColor:r})=>{let i={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:i[r][e]},ra=({$customColor:e,theme:t,$variantColor:r})=>{let i={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:i[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,65 @@ 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:i=99,withBorder:o=!0,variantColor:n="contained",...l})=>(0,e.jsx)(rs,{$customColor:r,max:i,$withBorder:o,$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:i,hideHelperText:o=!1,label:n,isError:l,...a})=>{let s=(0,t.useMemo)(()=>!!(l&&o),[l,o]);return(0,e.jsxs)(rp,{children:[(0,e.jsx)(eb,{title:s&&i,placement:"bottom-start",withoutContainer:!1,children:(0,e.jsx)(rg,{control:(0,e.jsx)(rh,{isError:l,...a}),label:n})}),!o&&(0,e.jsx)(t8,{error:l,success:r,children:i})]})},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}),r$=({children:r,language:i="ru",captureException:o,emptySymbol:n="—",imagesMap:l=rx,techSup:a=ry,hidePersonalData:s=!0,hidePersonalDataClassname:d=rf,components:p})=>((0,t.useEffect)(()=>{o||console.warn("ConfigProvider: Необходимо наличие captureException, связанного с сервисом мониторинга ошибок.\nНа данный момент все ошибки, отлавливаемые в ErrorBoundary будут выводиться только в консоль")},[]),(0,e.jsx)(rb.Provider,{value:{language:i,captureException:o||(e=>console.error(e)),emptySymbol:n,imagesMap:l,techSup:a,hidePersonalData:s,hidePersonalDataClassname:d,components:p},children:r})),rC=({children:t,onClose:i,open:o,title:n,...l})=>{let{isMobile:a}=et();return a?(0,e.jsx)(ec,{title:n,onClose:i,open:o,children:t}):(0,e.jsx)(r.Popover,{open:o,onClose:i,...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)(E)`
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:i,actions:o}=ei(),{isAccented:n}=e||{},l=n?H.Light:H.Contained,a=n?W.Error:W.Primary;return{actionComponentProps:{onClick:o.open},popoverProps:{open:r,anchorEl:i,onClose:o.close},cancelButtonProps:{onClick:o.close},confirmButtonProps:{variant:l,color:a,onClick:()=>{t(),o.close()}}}},rI=t=>{let{actionComponentProps:r,popoverProps:i,cancelButtonProps:o,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)(rC,{anchorOrigin:c,transformOrigin:u,...i,children:(0,e.jsxs)(rj,{children:[l&&(0,e.jsx)(rk,{children:l}),(0,e.jsxs)(rS,{children:[(0,e.jsx)(q,{variant:"text",...o,children:"Отмена"}),(0,e.jsx)(q,{...n,children:p})]})]})})]})},rF=({children:t,onClose:o,...n})=>(0,e.jsxs)(r.DialogTitle,{...n,children:[t,o&&(0,e.jsx)(ee,{variant:"text",onClick:e=>{o&&o(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,e.jsx)(i.X,{})})]}),rP={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"}},rT=e=>rP[e]||rP.md,rA=(0,r.styled)(r.Dialog,{shouldForwardProp:e=>!["$size"].includes(e.toString())})`
376
+ &.${r.dialogClasses.root} .${r.backdropClasses.root} {
377
+ background-color: ${({theme:e})=>e.palette.background.modalShadow};
378
+ }
379
+ .${r.dialogClasses.paper} {
380
+ min-width: ${({$size:e})=>rT(e).minWidth};
381
+ max-width: ${({$size:e})=>rT(e).maxWidth};
382
+ }
383
+ `,rE=({children:t,title:r,disableBackdropClick:i,onClose:o,size:n="md",...l})=>{let a=o&&((e,t)=>{(!i||"backdropClick"!==t)&&o(e,t)}),{isMobile:s}=et();return s?(0,e.jsx)(ec,{onClose:a,title:r,children:t}):(0,e.jsxs)(rA,{$size:n,onClose:a,...l,children:[r&&(0,e.jsx)(rF,{onClose:o,children:r}),t]})},rD=(0,r.styled)(r.DialogActions)`
384
+ padding-top: 0;
385
+
386
+ ${({theme:e})=>e.breakpoints.down("sm")} {
387
+ padding: ${({theme:e})=>e.spacing(4)};
388
+ }
389
+ `,rR=(0,r.styled)(tW)`
390
+ ${({theme:e})=>e.breakpoints.up("sm")} {
391
+ flex-direction: column;
392
+ justify-content: end;
393
+ }
394
+ `,rL=({children:t,disableSpacing:r,...i})=>(0,e.jsx)(rD,{...i,children:(0,e.jsx)(rR,{gap:2*!r,children:t})}),rO=(0,r.styled)(r.DialogContent)`
395
+ padding-bottom: ${({theme:e})=>e.spacing(6)};
396
+
397
+ ${({theme:e})=>e.breakpoints.down("sm")} {
398
+ padding: ${({theme:e})=>e.spacing(5,4)};
399
+ }
400
+ `,rz=t=>(0,e.jsx)(rO,{...t}),rB=(0,r.styled)(r.DialogContentText)`
401
+ color: ${({theme:e})=>e.palette.grey[900]};
402
+ `,rW=t=>(0,e.jsx)(rB,{...t}),rH=(0,r.styled)(q)`
403
+ ${({theme:e})=>e.breakpoints.down("sm")} {
404
+ order: 1;
405
+ }
406
+ `,rN=({actions:e,onClose:t})=>{let{isMobile:r}=et(),{cancel:i}=e,o=!!i,n=i?.onClick||t,{variant:l=r?"light":"text"}=i||{};return{isShowCancelButton:o,cancelButtonProps:{variant:l,onClick:n}}},rV=t=>{let{isShowCancelButton:r,cancelButtonProps:i}=rN(t),{open:o,title:n,description:l,actions:a,onClose:s,...d}=t,{text:p,...c}=a.confirm,{text:u,variant:g,onClick:h,...m}=a.cancel||{};return(0,e.jsxs)(rE,{title:n,open:o,onClose:s,...d,children:[l&&(0,e.jsx)(rz,{children:(0,e.jsx)(rW,{children:l})}),(0,e.jsxs)(rL,{children:[r&&(0,e.jsx)(rH,{...m,...i,children:u}),(0,e.jsx)(q,{...c,children:p})]})]})},r_="small",rU="medium",rG="large",rX={[r_]:"239px",[rU]:"323px",[rG]:"458px"},rY={[r_]:"119px",[rU]:"161px",[rG]:"229px"},rZ={[r_]:"384px",[rU]:"400px",[rG]:"460px"},rq={[r_]:"h5",[rU]:"h4",[rG]:"h3"},rK=(0,r.styled)("img",{shouldForwardProp:e=>"size"!==e})`
376
407
  display: block;
377
408
 
378
409
  width: ${({width:e})=>e||"auto"};
379
410
  max-width: 100%;
380
411
  height: ${({height:e})=>e||"auto"};
381
412
  margin: auto auto
382
- ${({theme:e,size:t})=>t===rI?e.spacing(4):e.spacing(6)};
413
+ ${({theme:e,size:t})=>t===r_?e.spacing(4):e.spacing(6)};
383
414
 
384
415
  color: ${({theme:e})=>e.palette.grey[900]};
385
416
 
@@ -388,10 +419,10 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
388
419
  ${({theme:e})=>e.breakpoints.down("sm")} {
389
420
  margin: auto auto ${({theme:e})=>e.spacing(8)};
390
421
  }
391
- `,rO=rR,rL=rR.withComponent,rz=e=>"$size"!==e,rB=(0,r.styled)("div",{shouldForwardProp:rz})`
422
+ `,rJ=rK,rQ=rK.withComponent,r0=e=>"$size"!==e,r1=(0,r.styled)("div",{shouldForwardProp:r0})`
392
423
  display: flex;
393
424
  flex-direction: column;
394
- gap: ${({theme:e,$size:t})=>t===rI?e.spacing(4):e.spacing(6)};
425
+ gap: ${({theme:e,$size:t})=>t===r_?e.spacing(4):e.spacing(6)};
395
426
  align-items: center;
396
427
  justify-content: center;
397
428
 
@@ -407,11 +438,11 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
407
438
  grid-template-rows: 1fr max-content;
408
439
  gap: ${({theme:e})=>e.spacing(4)};
409
440
  }
410
- `,rW=(0,r.styled)("div",{shouldForwardProp:rz})`
411
- max-width: ${({$size:e})=>rD[e]};
441
+ `,r2=(0,r.styled)("div",{shouldForwardProp:r0})`
442
+ max-width: ${({$size:e})=>rZ[e]};
412
443
  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)};
444
+ `,r3=(0,r.styled)(E,{shouldForwardProp:r0})`
445
+ margin-bottom: ${({theme:e,$size:t})=>t===r_?e.spacing(2):e.spacing(4)};
415
446
 
416
447
  text-align: center;
417
448
 
@@ -422,17 +453,17 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
422
453
  font-weight: ${({theme:e})=>e.typography.fontWeightMedium};
423
454
  color: ${({theme:e})=>e.palette.text.secondary};
424
455
  }
425
- `,rN=(0,r.styled)(D,{shouldForwardProp:rz})`
456
+ `,r4=(0,r.styled)(E,{shouldForwardProp:r0})`
426
457
  display: block;
427
458
 
428
- font-size: ${({$size:e,theme:t})=>e===rP?t.typography.pxToRem(16):t.typography.body1.fontSize};
459
+ font-size: ${({$size:e,theme:t})=>e===rG?t.typography.pxToRem(16):t.typography.body1.fontSize};
429
460
  text-align: center;
430
461
 
431
462
  ${({theme:e})=>e.breakpoints.down("sm")} {
432
463
  font-size: ${({theme:e})=>e.typography.body1.fontSize};
433
464
  color: ${({theme:e})=>e.palette.text.secondary};
434
465
  }
435
- `,rV=(0,r.styled)("footer")`
466
+ `,r8=(0,r.styled)("footer")`
436
467
  display: flex;
437
468
  flex-wrap: wrap;
438
469
  gap: ${({theme:e})=>e.spacing(2)};
@@ -446,7 +477,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
446
477
 
447
478
  margin-top: auto;
448
479
  }
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")`
480
+ `,r6=({className:r,title:i,imgSrc:o,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&&rQ(p)||u&&rQ(u)||rJ,[p,u]);return(0,e.jsxs)(r1,{$size:s,className:r,children:[(0,e.jsxs)(r2,{$size:s,children:[o&&(0,e.jsx)(g,{src:o,alt:n,width:d||rX[s],height:d?"auto":rY[s],size:s}),(0,e.jsx)(r3,{$size:s,variant:rq[s],children:i}),l&&(0,e.jsx)(r4,{$size:s,component:"div",variant:"body1",children:l})]}),a&&(0,e.jsx)(r8,{children:a})]})},r9=()=>{let{imagesMap:i,techSup:o}=(0,t.useContext)(rb);return(0,e.jsx)(r6,{title:"Произошла непредвиденная ошибка",description:(0,e.jsxs)("div",{children:[(0,e.jsx)(E,{children:"Пожалуйста, попробуйте обновить страницу или обратитесь в техническую поддержку:"}),(0,e.jsxs)(E,{children:["email\xa0",(0,e.jsx)(r.Link,{href:`mailto:${o.email}`,children:o.email}),", телефон\xa0",(0,e.jsx)(r.Link,{href:`tel:${o.phone}`,children:o.phone})]})]}),imgAlt:"Непредвиденная ошибка",imgSrc:i.defaultErrorImgSrc,imgWidth:"324px",Actions:(0,e.jsx)(q,{onClick:()=>{location.reload()},children:"Обновить страницу"})})},r5=()=>{let{imagesMap:r}=(0,t.useContext)(rb);return(0,e.jsx)(r6,{title:"Обновление в сервисе",description:(0,e.jsx)(E,{component:"p",children:"Наши специалисты работают над улучшением качества продукта. Для загрузки обновлений, пожалуйста, обновите страницу."}),imgAlt:"Обновление в сервисе",imgSrc:r.outdatedReleaseErrorImgSrc,imgWidth:"324px",Actions:(0,e.jsx)(q,{onClick:()=>{location.reload()},children:"Обновить страницу"})})};var r7=((k={}).OutdatedRelease="outdatedRelease",k.Default="default",k);let ie=[{type:r7.OutdatedRelease,condition:e=>"ChunkLoadError"===e.name||e.message.includes("Failed to fetch dynamically imported module")},{type:r7.Default,condition:()=>!0}],it={[r7.OutdatedRelease]:(0,e.jsx)(r5,{}),[r7.Default]:(0,e.jsx)(r9,{})};class ir extends t.default.Component{static contextType=rb;context;state={hasError:!1,typeError:r7.Default};static getDerivedStateFromError(e){return{hasError:!0,typeError:ie.find(({condition:t})=>t(e))?.type??r7.Default}}componentDidCatch(e){this.context.captureException(e)}render(){return this.state.hasError?it[this.state.typeError]:this.props.children}}let ii=(0,r.styled)("div")`
450
481
  display: flex;
451
482
  flex-grow: 1;
452
483
  align-items: center;
@@ -454,7 +485,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
454
485
 
455
486
  width: 100%;
456
487
  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)`
488
+ `,io=({isLoading:r,isError:i,isCustom:o,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)(ii,{children:s});if(o&&l)return(0,e.jsx)(r6,{...l});if(i&&n){let{title:t="Произошла ошибка",imgAlt:r,imgSrc:i=d.defaultErrorImgSrc,errorList:o,onRetry:l,actions:a=(0,e.jsx)(q,{onClick:l,children:"Попробовать снова"})}=n,s=o.map(t=>(0,e.jsx)(E,{component:"p",children:t},t));return(0,e.jsx)(r6,{title:t,description:s,imgAlt:r,imgSrc:i,Actions:a})}return(0,e.jsx)(ir,{children:a})},il=(0,r.styled)(E)`
458
489
  cursor: pointer;
459
490
 
460
491
  display: flex;
@@ -463,7 +494,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
463
494
  &:hover {
464
495
  text-decoration: underline;
465
496
  }
466
- `,r0=(0,r.styled)(o.Copy,{shouldForwardProp:e=>!["$copyPosition"].includes(e.toString())})`
497
+ `,ia=(0,r.styled)(i.Copy,{shouldForwardProp:e=>!["$copyPosition"].includes(e.toString())})`
467
498
  margin-right: ${({$copyPosition:e,theme:t})=>"left"===e?t.spacing(1):""};
468
499
  margin-left: ${({$copyPosition:e,theme:t})=>"right"===e?t.spacing(1):""};
469
500
 
@@ -471,7 +502,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
471
502
  font-size: 16px;
472
503
 
473
504
  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())})`
505
+ `;var is=((S={}).Copied="Скопировано",S.Error="Ошибка копирования",S.CanCopy="Скопировать",S);let id=({children:e,copyText:r,isShowCopyText:i,copyPosition:o})=>{let[n,l]=(0,t.useState)(is.CanCopy);return{handleMouseLeave:()=>{n!==is.CanCopy&&setTimeout(()=>{l(is.CanCopy)},100)},handleClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(r||("string"==typeof e?e:"")).then(()=>l(is.Copied)).catch(()=>l(is.Error))},tooltipTitle:i?`${n}: ${r}`:n,isIconOnLeft:"left"===o}},ip=t=>{let{children:r,copyPosition:i="right",copyText:o,isShowCopyText:n,color:l,...a}=t,s=()=>(0,e.jsx)(ia,{$copyPosition:i,color:l}),{handleMouseLeave:d,handleClick:p,tooltipTitle:c,isIconOnLeft:u}=id(t);return(0,e.jsx)(eb,{title:c,disableInteractive:!0,placement:"bottom",children:(0,e.jsxs)(il,{onMouseLeave:d,onClick:p,component:"div",color:l,...a,children:[u&&s(),r,!u&&s()]})})},ic="data-row-disable",iu="astral-ui_datagrid_row_hidden",ig=44,ih=32,im=ih/2,ix=10,iy=1,ib=2,i$=(0,r.styled)("ul",{shouldForwardProp:e=>!["$level","$isShowConnector"].includes(e.toString())})`
475
506
  position: relative;
476
507
 
477
508
  margin: 0;
@@ -485,7 +516,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
485
516
  position: absolute;
486
517
  z-index: 2;
487
518
  top: 0;
488
- transform: ${({$level:e})=>`translateX(calc(${r9}px * ${e} - ${r5}px))`};
519
+ transform: ${({$level:e})=>`translateX(calc(${ih}px * ${e} - ${im}px))`};
489
520
 
490
521
  display: ${({$isShowConnector:e})=>e?"block":"none"};
491
522
 
@@ -494,57 +525,57 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
494
525
 
495
526
  border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
496
527
  }
497
- `,oo=(0,r.styled)("li",{shouldForwardProp:e=>!["$level","$isShowConnector","$gridColumns"].includes(e.toString())})`
528
+ `,iC=(0,r.styled)("li",{shouldForwardProp:e=>!["$level","$isShowConnector","$gridColumns"].includes(e.toString())})`
498
529
  position: relative;
499
530
 
500
531
  display: grid;
501
532
  grid-template-columns: ${({$gridColumns:e})=>e};
502
533
 
503
534
  height: 36px;
504
- margin-left: ${({$level:e})=>`${e*r9}px`};
535
+ margin-left: ${({$level:e})=>`${e*ih}px`};
505
536
 
506
537
  &::before {
507
538
  content: '';
508
539
 
509
540
  position: absolute;
510
541
  top: 0;
511
- left: -${r5}px;
542
+ left: -${im}px;
512
543
 
513
544
  display: ${({$isShowConnector:e})=>e?"block":"none"};
514
545
 
515
- width: ${r5}px;
546
+ width: ${im}px;
516
547
  height: 50%;
517
548
 
518
549
  border-bottom: 1px solid ${({theme:e})=>e.palette.grey[400]};
519
550
  border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
520
551
  border-radius: 0 0 0 ${({theme:e})=>e.shape.small};
521
552
  }
522
- `,oi=(0,r.styled)(q,{shouldForwardProp:e=>!["$moreButtonColumnPosition"].includes(e.toString())})`
553
+ `,iw=(0,r.styled)(q,{shouldForwardProp:e=>!["$moreButtonColumnPosition"].includes(e.toString())})`
523
554
  grid-column: ${({$moreButtonColumnPosition:e})=>e};
524
555
  justify-self: start;
525
556
 
526
557
  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())})`
558
+ `,iv=(0,t.createContext)({checkIsOpened:()=>!1,checkIsMoreOpened:()=>!1,toggleOpenItems:()=>{},toggleOpenMoreItems:()=>{}}),ij={isOpenedItems:!0,iOpenedMoreItems:!1},ik=({children:r})=>{let[i,o]=(0,t.useState)({}),n=e=>!!i[e],l=e=>!!i[e]&&i[e].iOpenedMoreItems;return(0,e.jsx)(iv.Provider,{value:{checkIsOpened:n,checkIsMoreOpened:l,toggleOpenItems:e=>o(t=>{if(n(e)){let r={...t};return delete r[e],r}return{...t,[e]:ij}}),toggleOpenMoreItems:e=>o(t=>{if(l(e)){let r={...t};return r[e]=ij,r}return{...t,[e]:{...ij,iOpenedMoreItems:!0}}})},children:r})};var iS=((M={}).ASC="asc",M.DESC="desc",M),iM=((I={}).Tree="tree",I.Subrows="subrows",I);let iI=({rowId:e,data:r,level:i,variant:o,initialVisibleChildrenCount:n})=>{let{checkIsMoreOpened:l,toggleOpenMoreItems:a}=(0,t.useContext)(iv),s=Object.is(o,iM.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?i+1:0,handleToggleShowAllChildren:t=>{t.stopPropagation(),a(e)}}},iF=(0,t.memo)(t=>{let{isShowAllChildren:r,isShowMoreButton:i,isShowConnector:o,nextLevel:n,initialVisibleChildren:l,otherChildren:a,handleToggleShowAllChildren:s}=iI(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)(i$,{$level:u,$isShowConnector:o,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)(i$,{$level:u,$isShowConnector:o,children:a.map(({children:e,options:t,...r})=>x({key:r[c],row:r,options:t,nestedChildren:e,level:n,className:iu}))})}),i&&(0,e.jsx)(iC,{$level:n,$isShowConnector:o,$gridColumns:h,children:(0,e.jsx)(iw,{$moreButtonColumnPosition:m,variant:"link",onClick:s,children:r?"Скрыть":"Показать все"})})]})]})}):null}),iP={left:"start",center:"center",right:"end"},iT=e=>e&&iP[e]||"start",iA=(0,r.styled)("div",{shouldForwardProp:e=>!["$align","$isDisabled","$hasStartAdornment"].includes(e.toString())})`
528
559
  overflow: hidden;
529
560
  display: flex;
530
561
  align-items: center;
531
- justify-content: ${({$align:e})=>og(e)};
562
+ justify-content: ${({$align:e})=>iT(e)};
532
563
 
533
- min-height: ${r6}px;
564
+ min-height: ${ig}px;
534
565
  padding: ${({theme:e,$hasStartAdornment:t})=>t?e.spacing(1,2,1,0):e.spacing(1,2)};
535
566
 
536
567
  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")`
568
+ `,iE=({row:e,cell:r,emptyCellValue:i,startAdornment:o})=>{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]:i,[l,n,e,i]),hasStartAdornment:!!o}},iD=(0,r.styled)("li")`
538
569
  position: relative;
539
570
 
540
571
  &:not(:last-of-type)::before,
541
- &.${r8}::before {
572
+ &.${iu}::before {
542
573
  content: '';
543
574
 
544
575
  position: absolute;
545
576
  z-index: 1;
546
577
  top: 0;
547
- transform: ${({$level:e})=>`translateX(calc(${r9}px * ${e} - ${r5}px))`};
578
+ transform: ${({$level:e})=>`translateX(calc(${ih}px * ${e} - ${im}px))`};
548
579
 
549
580
  display: ${({$isShowConnector:e})=>e?"block":"none"};
550
581
 
@@ -553,7 +584,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
553
584
 
554
585
  border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
555
586
  }
556
- `,oy=(0,r.styled)("div")`
587
+ `,iR=(0,r.styled)("div")`
557
588
  position: relative;
558
589
 
559
590
  display: grid;
@@ -568,11 +599,11 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
568
599
 
569
600
  position: absolute;
570
601
  top: 0;
571
- transform: ${({$level:e})=>`translateX(calc(${r9}px * ${e} - ${r5}px))`};
602
+ transform: ${({$level:e})=>`translateX(calc(${ih}px * ${e} - ${im}px))`};
572
603
 
573
604
  display: ${({$isShowConnector:e})=>e?"block":"none"};
574
605
 
575
- width: ${r5}px;
606
+ width: ${im}px;
576
607
  height: 50%;
577
608
 
578
609
  border-bottom: 1px solid ${({theme:e})=>e.palette.grey[400]};
@@ -585,22 +616,22 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
585
616
 
586
617
  background-color: ${({theme:e,$isHovered:t})=>t?e.palette.background.elementHover:"transparent"};
587
618
  }
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")`
619
+ `,iL=(0,r.styled)(t=>{let{formattedValue:r,hasStartAdornment:i}=iE(t),{className:o,startAdornment:n,row:l,cell:a,isDisabled:s}=t,{renderCell:d,align:p="left"}=a;return(0,e.jsxs)(iA,{$isDisabled:s,$align:p,$hasStartAdornment:i,className:o,inert:!!s||void 0,children:[n&&n,d?.(l),!d&&(0,e.jsx)(eB,{rowsCount:2,children:r})]})})`
620
+ margin-left: ${({$level:e})=>`${e*ih}px`};
621
+ `,iO=(0,r.styled)("div")`
591
622
  display: flex;
592
623
  align-items: center;
593
624
  align-self: center;
594
625
  justify-content: center;
595
626
 
596
- width: ${r9}px;
597
- `,oC=(0,r.styled)("div")`
627
+ width: ${ih}px;
628
+ `,iz=(0,r.styled)("div")`
598
629
  display: flex;
599
630
  align-items: center;
600
631
  justify-content: center;
601
632
 
602
- width: ${r9}px;
603
- `,o$=(0,r.styled)(ee)`
633
+ width: ${ih}px;
634
+ `,iB=(0,r.styled)(ee)`
604
635
  width: 24px;
605
636
  height: 24px;
606
637
 
@@ -609,31 +640,31 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
609
640
  &:hover {
610
641
  background-color: ${({theme:e})=>e.palette.grey[300]};
611
642
  }
612
- `,ow=(0,r.styled)(o.ChevronRight,{shouldForwardProp:e=>"$isActive"!==e})`
643
+ `,iW=(0,r.styled)(i.ChevronRight,{shouldForwardProp:e=>"$isActive"!==e})`
613
644
  transform: rotateZ(${({$isActive:e})=>90*!!e}deg);
614
645
 
615
646
  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())})`
647
+ `,iH=(0,t.createContext)({isDisabled:!1,addDisabledRow:()=>{},removeDisabledRow:()=>{}}),iN=({children:r})=>{let[i,o]=(0,t.useState)(!1),[n,l]=(0,t.useState)();return(0,e.jsx)(iH.Provider,{value:{isDisabled:i,disabledReason:n,addDisabledRow:e=>{o(!0),l(e)},removeDisabledRow:()=>{o(!1),l(void 0)}},children:r})},iV=e=>e.reduce((e,{field:t,...r})=>t?{...e,[t]:r}:e,{}),i_=(e,t)=>{if(!t)return e;let r=iV(t);return Object.keys(r).length?e.map(e=>e.hasOwnProperty("field")?{...e,...r[e.field]||{}}:e):e},iU=({keyId:e,columns:r,row:i,nestedChildren:o,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&&o?.length,{checkIsOpened:y,toggleOpenItems:f}=(0,t.useContext)(iv),{isDisabled:b,disabledReason:$}=(0,t.useContext)(iH),[C,w]=(0,t.useState)(!1),v=i[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,iM.Tree);return{isOpen:M,isShowConnector:F,childrenColumns:(0,t.useMemo)(()=>i_(r,s?.childrenColumns),[r,s]),rowId:v,disabled:S,isRenderCollapseButton:!!o?.length&&m,handleToggle:e=>{e.stopPropagation(),f(v)},rowProps:{$isHovered:!!(!S&&h),$isSelected:a===v,onClick:()=>{!S&&h?.(i)},onMouseMove:e=>{S&&"true"!==e.target.getAttribute(ic)&&w(!1)}},tooltipProps:{open:C,title:S?k||$:void 0,onOpen:e=>{"true"===e.target.getAttribute(ic)&&w(!0)},onClose:()=>w(!1)},checkboxProps:{checked:I,disabled:S,onChange:g(i)},nestedChildrenProps:{isOpen:M,rowId:v}}},iG=(e,t,r)=>!!e&&(!t||!t.includes(r)),iX=r=>{let{isOpen:i,isShowConnector:o,childrenColumns:n,rowId:l,handleToggle:a,checkboxProps:s,rowProps:d,tooltipProps:p,nestedChildrenProps:c,disabled:u,isRenderCollapseButton:g}=iU(r),{className:h,row:m,options:x,variant:y,isSelectable:f,gridColumns:b,isInitialExpanded:$,expandedLevel:C,level:w,nestedChildren:v,initialVisibleChildrenCount:j,moreButtonColumnPosition:k,isVisibleCollapseButton:S,columns:M,emptyCellValue:I,selectedRows:F,activeRowId:P,keyId:T,onSelectRow:A,onRowClick:E,...D}=r,{isDisabledLastCell:R=!0,isNotSelectable:L}=x||{},O=()=>g||f&&!L?(0,e.jsxs)(e.Fragment,{children:[g&&(0,e.jsx)(iz,{children:(0,e.jsx)(iB,{variant:"text",onClick:a,children:(0,e.jsx)(iW,{$isActive:i})})}),f&&!L&&(0,e.jsx)(iO,{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,i)=>{let o=`${l}-${i}`,n=iG(u,t,i),a=!i;return e.jsx(iL,{$level:a?w:0,row:m,cell:r,emptyCellValue:I,startAdornment:a&&O(),isDisabled:n},o)})},[i,M,u]),B=(0,t.useCallback)(({key:t,...r})=>(0,e.jsx)(iX,{keyId:T,...r,variant:y,isSelectable:f,selectedRows:F,gridColumns:b,isInitialExpanded:$,expandedLevel:C,initialVisibleChildrenCount:j,moreButtonColumnPosition:k,isVisibleCollapseButton:S,activeRowId:P,columns:n,onSelectRow:A,onRowClick:E},t),[T,y,f,F,b,$,C,j,k,P,n,A,E]);return(0,e.jsxs)(iD,{$level:w,$isShowConnector:o,$gridColumns:b,className:h,...D,children:[(0,e.jsx)(eb,{followCursor:!0,arrow:!1,...p,children:(0,e.jsx)(iR,{$level:w,$isShowConnector:o,$gridColumns:b,[ic]:u,...d,children:z()})}),(0,e.jsx)(iF,{...c,data:v,keyId:T,level:w,variant:y,gridColumns:b,initialVisibleChildrenCount:j,moreButtonColumnPosition:k,renderRow:B})]})},iY=(0,r.styled)("ul",{shouldForwardProp:e=>!["$isEmpty","$minDisplayRows"].includes(e.toString())})`
617
648
  overflow-y: auto;
618
649
 
619
- height: ${({$isEmpty:e,$minDisplayRows:t})=>e?`${r6*t}px`:"100%"};
650
+ height: ${({$isEmpty:e,$minDisplayRows:t})=>e?`${ig*t}px`:"100%"};
620
651
  margin: 0;
621
652
  padding: 0;
622
653
 
623
654
  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())})`
655
+ `,iZ=({isLoading:e,isError:t,rows:r})=>{let i=!r.length;return{isNoData:i,contentStateProps:{isLoading:e&&i,isError:t&&i}}},iq=r=>{let{imagesMap:i}=(0,t.useContext)(rb),{isNoData:o,contentStateProps:n}=iZ(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,...i})=>{let o=i[u];return(0,e.jsx)(iN,{children:(0,e.jsx)(iX,{row:i,selectedRows:a,options:r,keyId:u,level:0,nestedChildren:t,...m})},o)}),[l,u,a,m]);return(0,e.jsx)(iY,{$isEmpty:o,$minDisplayRows:c,children:(0,e.jsx)(io,{...n,errorState:{imgAlt:"Что-то пошло не так",errorList:[p||""],imgSrc:i.defaultErrorImgSrc,onRetry:h},children:l.length?x:g})})},iK=(0,r.styled)("div",{shouldForwardProp:e=>!["$align","$isSortable","$hasStartAdornment"].includes(e.toString())})`
625
656
  cursor: ${({$isSortable:e})=>e?"pointer":"initial"};
626
657
  user-select: none;
627
658
 
628
659
  display: flex;
629
660
  align-items: center;
630
- justify-content: ${({$align:e})=>og(e)};
661
+ justify-content: ${({$align:e})=>iT(e)};
631
662
 
632
663
  height: 40px;
633
664
  padding: ${({theme:e,$hasStartAdornment:t})=>t?e.spacing(1,2,1,0):e.spacing(1,2)};
634
665
 
635
666
  color: ${({theme:e})=>e.palette.grey[700]};
636
- `,oE=(0,r.styled)(D)`
667
+ `,iJ=(0,r.styled)(E)`
637
668
  display: flex;
638
669
  align-items: center;
639
670
 
@@ -641,18 +672,18 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
641
672
  width: 16px;
642
673
  height: 16px;
643
674
  }
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())})`
675
+ `,iQ=({field:e,isSortable:t,startAdornment:r,onSort:i})=>({wrapperProps:{$hasStartAdornment:!!r,onClick:()=>{e&&t&&i(e)}}}),i0=r=>{let{wrapperProps:o}=iQ(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)(i.ChevronsUpDown,{});switch(p?.sort){case iS.ASC:return(0,e.jsx)(i.ChevronUp,{color:"primary"});case iS.DESC:return(0,e.jsx)(i.ChevronDown,{color:"primary"});default:return(0,e.jsx)(i.ChevronsUpDown,{})}},[p,a,l]);return(0,e.jsxs)(iK,{$align:s,$isSortable:a,...o,children:[n&&n,(0,e.jsxs)(iJ,{variant:"pointer",children:[d,c]})]})},i1=(0,r.styled)("header",{shouldForwardProp:e=>!["$gridColumns"].includes(e.toString())})`
645
676
  display: grid;
646
677
  grid-template-columns: ${({$gridColumns:e})=>e};
647
678
 
648
679
  border-bottom: 2px solid ${({theme:e})=>e.palette.divider};
649
- `,oz=(0,r.styled)("div")`
680
+ `,i2=(0,r.styled)("div")`
650
681
  display: flex;
651
682
  align-items: center;
652
683
  justify-content: center;
653
684
 
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")`
685
+ width: ${ih}px;
686
+ `,i3=({rowsCount:e,sorting:r,uncheckedRowsCount:i,onSort:o})=>{let n=(0,t.useMemo)(()=>!i&&e>0,[i,e]),l=(0,t.useMemo)(()=>i>0&&i<e,[i,e]),a=!e;return{handleSort:(0,t.useCallback)(e=>{if(!o)return;let t=r?.fieldId===e;return t&&r?.sort===iS.ASC?o({fieldId:e,sort:iS.DESC}):t&&r?.sort===iS.DESC?o(void 0):void o({fieldId:e,sort:iS.ASC})},[r,o]),checkboxProps:{checked:n,disabled:a,indeterminate:l}}},i4=r=>{let{checkboxProps:i,handleSort:o}=i3(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)(i0,{sorting:s,field:t,label:r,isSortable:n,align:l,startAdornment:!p&&a?(0,e.jsx)(i2,{children:(0,e.jsx)(eA,{...i,onChange:d})}):null,onSort:o},r)),[n,s,a,i,d,o]);return(0,e.jsx)(i1,{$gridColumns:l,children:p})},i8=t=>(0,e.jsx)(r.Divider,{...t}),i6=(0,r.styled)("div")`
656
687
  position: absolute;
657
688
  top: 0;
658
689
 
@@ -661,13 +692,13 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
661
692
 
662
693
  opacity: 0.3;
663
694
  background-color: ${({theme:e})=>e.palette.background.element};
664
- `,oV=(0,r.styled)(oH)`
695
+ `,i9=(0,r.styled)(i8)`
665
696
  border-width: 1px;
666
- `,o_=(0,r.styled)("div")`
697
+ `,i5=(0,r.styled)("div")`
667
698
  height: 2px;
668
- `,oU=(0,r.styled)(r.LinearProgress)`
699
+ `,i7=(0,r.styled)(r.LinearProgress)`
669
700
  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})`
701
+ `,oe=({isLoading:t=!1,isDisabled:r=!1,isVisibleDivider:i=!0})=>(0,e.jsxs)(i5,{children:[(t||r)&&(0,e.jsx)(i6,{}),t&&(0,e.jsx)(i7,{}),!t&&i&&(0,e.jsx)(i9,{})]}),ot=({title:r="Нет\xa0данных",imgAlt:i=r,action:o,size:n="small"})=>{let{imagesMap:{noDataImgSrc:l}}=(0,t.useContext)(rb);return(0,e.jsx)(r6,{title:r,imgSrc:l,size:n,Actions:o?(0,e.jsx)(q,{onClick:o.onClick,"aria-label":o.text,children:o.text}):void 0,imgAlt:i})},or=(0,r.styled)("div",{shouldForwardProp:e=>"$maxHeight"!==e})`
671
702
  position: relative;
672
703
 
673
704
  overflow: hidden;
@@ -677,21 +708,21 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
677
708
  width: 100%;
678
709
  height: 100%;
679
710
  max-height: ${({$maxHeight:e})=>e?`${e}px`:"initial"};
680
- `,oZ=(0,r.styled)("div")`
711
+ `,oi=(0,r.styled)("div")`
681
712
  overflow: hidden;
682
713
  display: flex;
683
714
  flex-direction: column;
684
715
 
685
716
  height: 100%;
686
- `,oq=(0,r.styled)(oZ)`
717
+ `,oo=(0,r.styled)(oi)`
687
718
  pointer-events: none;
688
719
 
689
720
  background: ${({theme:e})=>e.palette.background.element};
690
721
  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")`
722
+ `,on=e=>e.map(({width:e})=>e||"1fr").join(" "),ol=({keyId:e,columns:r,rows:i=[],variant:o,tree:n,subrows:l,selectedRows:s=[],isLoading:d,isDisabled:p,onSelectRow:c})=>{let u=!!i?.length,g=!!c,h=d||p,m=Object.is(o,iM.Subrows)?{...l,isInitialExpanded:!0}:n,x=i.filter(e=>!(e.options?.isDisabled||e.options?.isNotSelectable)),y=(0,t.useRef)([]);(0,t.useEffect)(()=>{d||(y.current=i)},[i,d]);let f=on(r),b=(0,t.useMemo)(()=>x.filter(t=>!s.find(r=>r[e]===t[e])).length,[x,s,e]),$=(0,t.useCallback)(()=>i.length<=1?r.map(e=>({...e,sortable:!1})):r,[r,i]),C=d?y.current:i,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:C,headProps:{rowsCount:x.length,uncheckedRowsCount:b,gridColumns:f,isSelectable:g,columns:$(),onSelectAllRows:t=>{if(c){if(t.target.checked)return c((0,a.uniqueBy)([...s,...x],(0,a.prop)(e)));c(s.filter(t=>!i.find(r=>r[e]===t[e])))}}},bodyProps:{gridColumns:f,isSelectable:g,onSelectRow:w},loaderProps:{isLoading:u&&d,isVisibleDivider:!!i.length,isDisabled:p}}},oa=r=>{let{isDataGridDisabled:i,treeRenderConfig:o,headProps:n,bodyProps:l,loaderProps:a,renderRows:s}=ol(r),{emptySymbol:d}=(0,t.useContext)(rb),{columns:p,selectedRows:c=[],sorting:u,maxHeight:g,minDisplayRows:h=ix,errorMsg:m,variant:x=iM.Tree,footer:y,noDataPlaceholder:f,isLoading:b,isError:$,subrows:C,keyId:w,activeRowId:v,emptyCellValue:j=d,className:k,onRowClick:S,onSort:M,noDataOptions:I,onRetry:F}=r,{moreButtonColumnPosition:P=1,isVisibleCollapseButton:T=!0}=C||{},{isInitialExpanded:A=!1,expandedLevel:E=iy,initialVisibleChildrenCount:D=ib}=o||{},R=(0,t.useCallback)(()=>b?null:f||(0,e.jsx)(ot,{...I}),[f,I,b]);return(0,e.jsx)(ik,{children:(0,e.jsxs)(or,{$maxHeight:g,className:k,children:[(0,e.jsxs)(i?oo:oi,{inert:!!i||void 0,children:[(0,e.jsx)(i4,{...n,sorting:u,onSort:M}),(0,e.jsx)(iq,{...l,activeRowId:v,keyId:w,selectedRows:c,minDisplayRows:h,rows:s,columns:p,variant:x,emptyCellValue:j,isInitialExpanded:A,expandedLevel:E,initialVisibleChildrenCount:D,moreButtonColumnPosition:P,isVisibleCollapseButton:T,isLoading:b,isError:$,errorMsg:m,noDataPlaceholder:R(),onRowClick:S,onRetry:F})]}),(0,e.jsx)(oe,{...a}),y&&y]})})},os=({action:e})=>{let{loading:r,disabledReason:i,name:o}=e,[n,l]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{r&&l(!1)},[r]),{tooltipProps:{title:i||o,open:n,onOpen:()=>l(!0),onClose:()=>l(!1)}}},od=t=>{let{tooltipProps:r}=os(t),{action:i,onActionClick:o,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}=i,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:o(y)}):b({onClick:o(y)})})},op=({action:r,onActionClick:i,isDisabled:o,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:o||l,children:p.map(({name:e,onClick:r,...o})=>(0,t.createElement)(e$,{...o,key:e,onClick:i(r)},e))})},s)}return(0,e.jsx)(od,{action:r,onActionClick:i,isDisabled:o,tooltipPlacement:n})},oc=({actions:r,onActionClick:o,tooltipPlacement:n,isDisabled:l})=>(0,e.jsx)(em,{icon:(0,e.jsx)(i.EllipsisVertical,{}),variant:"text",disabled:l,children:r.map(e=>{let{onClick:r,name:i}=e;return(0,t.createElement)(e$,{...e,key:i,tooltipPlacement:n,onClick:o(r)},i)})}),ou=(0,r.styled)("div")`
692
723
  display: inline-flex;
693
724
  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})`
725
+ `,og=({row:e,actions:r})=>{let{main:i,secondary:o}=r,{addDisabledRow:n,removeDisabledRow:l}=(0,t.useContext)(iH),a=[...i,...o||[]].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()}}},oh={mainAction:"top",secondaryAction:"left"},om=t=>{let{isDisabledAction:r,handleWrapperClick:i,handleActionClick:o}=og(t),{actions:n}=t,{main:l,secondary:a}=n;return(0,e.jsxs)(ou,{onClick:i,children:[l.map(t=>(0,e.jsx)(op,{action:t,onActionClick:o,isDisabled:r,tooltipPlacement:oh.mainAction},t.name)),a&&(0,e.jsx)(oc,{actions:a,onActionClick:o,tooltipPlacement:oh.secondaryAction,isDisabled:r})]})},ox=({...t})=>(0,e.jsx)(r.Pagination,{shape:"rounded",...t}),oy=(0,r.styled)(tJ,{shouldForwardProp:e=>"$shrinks"!==e})`
695
726
  min-width: ${({$shrinks:e})=>e?"30px":"unset"};
696
727
  max-width: 246px;
697
728
 
@@ -700,10 +731,10 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
700
731
  display: inline;
701
732
  }
702
733
  }
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")`
734
+ `,of=()=>({onMouseDown:e=>{e.stopPropagation()}}),ob=t=>{let{onMouseDown:r}=of(),{shrinks:i,isDisabled:o,...n}=t;return(0,e.jsx)(oy,{$shrinks:i,color:"grey",disabled:o,...n,onMouseDown:r})},o$=(0,r.styled)("div")`
704
735
  display: flex;
705
736
  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")`
737
+ `,oC=(e,t)=>{if(e.innerHTML===t)return e;for(let r=0;r<e.children.length;r+=1){let i=oC(e.children[r],t);if(i)return i}return null},ow=(e,t)=>{if("string"==typeof e)return e;let r=e[t];return"number"==typeof r?r.toString():r},ov=({data:e=[],keyId:r,getOptionLabel:i,onChange:o})=>{let[n,l]=(0,t.useState)(1),a=(0,t.useRef)(!1),s=(0,t.useRef)(null),d=(t,r,o)=>{let n=i(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=i(e[s]),c=oC(d,n);if(!c)throw Error("Could not find text node");c.textContent=p,t.appendChild(d);let u=d.getBoundingClientRect().width+o;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,i=e.getBoundingClientRect().width-r,o=e.cloneNode(!0);for(;o.lastElementChild&&o.children.length>1;)o.removeChild(o.lastElementChild);o.style.visibility="hidden",l(1+d(o,i,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=i(t);return{label:a,shrinks:l===n-1&&n<=e.length,onDelete:()=>{let i=e?.filter(e=>"string"==typeof e?e!==t:e[r]!==t[r]);o(i?.length?i:[])}}}}},oj=t=>{let{maxItems:r,tagsContainerRef:i,visibleOptions:o,getTagProps:n}=ov(t),{className:l,data:a,keyId:s,isDisabled:d,onClick:p}=t;return(0,e.jsxs)(o$,{className:l,ref:i,children:[o?.map((t,r)=>{let i=n(t,r);return e.jsx(ob,{isDisabled:d,onClick:p,...i},ow(t,s))}),a&&r<a.length&&(0,e.jsx)(ob,{isDisabled:d,label:`+${a.length-r}`,onClick:p},"more")]})},ok="Очистить",oS=(0,r.styled)("div")`
707
738
  display: flex;
708
739
  flex-direction: column;
709
740
  align-items: center;
@@ -715,9 +746,9 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
715
746
 
716
747
  color: ${({theme:e})=>e.palette.grey["900"]};
717
748
  }
718
- `,ip=(0,r.styled)(eb)`
749
+ `,oM=(0,r.styled)(e$)`
719
750
  display: none;
720
- `,ic=(0,r.styled)(ee)`
751
+ `,oI=(0,r.styled)(ee)`
721
752
  background-color: transparent;
722
753
 
723
754
  &:hover {
@@ -732,30 +763,30 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
732
763
  width: 32px;
733
764
  height: 32px;
734
765
  }
735
- `,iu=(0,r.styled)(o.CircleX)`
766
+ `,oF=(0,r.styled)(i.CircleX)`
736
767
  width: 16px;
737
768
  height: 16px;
738
769
 
739
770
  fill: ${({theme:e})=>e.palette.grey["500"]};
740
- `,ig=(0,r.styled)("div")`
771
+ `,oP=(0,r.styled)("div")`
741
772
  display: flex;
742
773
  align-items: center;
743
774
 
744
775
  margin-left: auto;
745
- `,ih=(0,r.styled)(r.Select)`
776
+ `,oT=(0,r.styled)(r.Select)`
746
777
  .${r.selectClasses.select} {
747
778
  padding-right: ${({theme:e})=>e.spacing(2)} !important;
748
779
  }
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")`
780
+ `,oA=({onClick:t,disabled:r,ref:i})=>(0,e.jsx)(oI,{disabled:r,ref:i,onClick:t,variant:"text",title:ok,"aria-label":ok,children:(0,e.jsx)(oF,{})}),oE=({required:o,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:$,isNoData:C,onClearAll:w,openSelect:v,closeSelect:j,resetButtonRef:k}=function({value:e,onChange:r,children:i,open:o,defaultOpen:n,multiple:l,isShowClearButton:a=!0}){let[s,d]=(0,t.useState)(n||o||!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(i),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:o,children:h}),(0,e.jsxs)(oT,{...f,open:b,disabled:u,onOpen:v,onClose:j,renderValue:t=>Array.isArray(t)&&t.length?(0,e.jsx)(oj,{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)(oP,{children:[$&&(0,e.jsx)(oA,{disabled:u,ref:k,onClick:w}),(0,e.jsx)(oI,{variant:"text",disabled:u,onClick:v,children:b?(0,e.jsx)(i.ChevronUp,{}):(0,e.jsx)(i.ChevronDown,{})})]}),children:[(0,e.jsx)(oM,{value:"",children:l}),d&&(0,e.jsx)(oS,{children:(0,e.jsx)(U,{color:"primary"})}),!d&&c,!d&&C&&(0,e.jsx)(e$,{disabled:!0,children:"Нет данных"})]}),!s&&(0,e.jsx)(t8,{error:g,success:p,children:a})]})},oD=20,oR=[20,50,100],oL=(0,r.styled)("div")`
750
781
  display: flex;
751
782
  align-items: center;
752
783
  justify-content: space-between;
753
784
 
754
785
  height: 48px;
755
786
  padding-top: ${({theme:e})=>e.spacing(4)};
756
- `,i$=(0,r.styled)(D)`
787
+ `,oO=(0,r.styled)(E)`
757
788
  color: ${({theme:e})=>e.palette.grey["700"]};
758
- `,iw=(0,r.styled)("div")`
789
+ `,oz=(0,r.styled)("div")`
759
790
  display: flex;
760
791
  gap: ${({theme:e})=>e.spacing(3)};
761
792
  align-items: center;
@@ -763,12 +794,12 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
763
794
  .${r.formControlClasses.root} {
764
795
  flex-direction: unset;
765
796
  }
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})`
797
+ `,oB=({totalCount:e,rowsPerPage:r=oD,page:i,onSetCountPerPage:o})=>{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=(i-1)*r+1,d=()=>{let e=i*r;return e<l?e:l};return{isVisiblePagination:!(!o&&l<=r),pageCount:a,formattedRange:()=>`${s} — ${d()} из ${l} записей`,handleChangeRowsPerPage:e=>{o?.(Number(e.target.value))}}},oW=t=>{let{isVisiblePagination:r,pageCount:i,formattedRange:o,handleChangeRowsPerPage:n}=oB(t),{page:l,totalCount:a,className:s,rowsPerPage:d=oD,rowsPerPageOptions:p=oR,isForceCounter:c,disabled:u,onSetCountPerPage:g,...h}=t;return(r||c)&&a?(0,e.jsxs)(oL,{className:s,children:[(0,e.jsxs)(oz,{children:[g&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(E,{variant:"body1",children:"Строк на странице:"}),(0,e.jsx)(oE,{size:"small",value:d,disabled:u,isShowClearButton:!1,onChange:n,children:p.map(t=>(0,e.jsx)(e$,{value:t,children:t},t))})]}),(0,e.jsx)(oO,{variant:"h6",children:o()})]}),r&&(0,e.jsx)(ox,{disabled:u,count:i,page:l,...h})]}):null},oH=":",oN="—",oV="astral-ui_descriptionRoot",o_=(0,t.createContext)({leader:!1,separator:oH,direction:"default"}),oU=({children:t,leader:r,separator:i,direction:o})=>(0,e.jsx)(o_.Provider,{value:{leader:r,separator:i,direction:o},children:t}),oG=(0,r.styled)("dt",{shouldForwardProp:e=>"$leader"!==e})`
767
798
  flex-shrink: 0;
768
799
 
769
800
  max-width: ${({$leader:e})=>e?"calc(100% - 36px)":"calc(100% - 12px)"};
770
801
  margin-right: ${({theme:e})=>e.spacing(2)};
771
- `,iT=(0,r.styled)("div")`
802
+ `,oX=(0,r.styled)("div")`
772
803
  flex: 1;
773
804
 
774
805
  min-width: 12px;
@@ -780,7 +811,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
780
811
  ${({theme:e})=>e.breakpoints.down("sm")} {
781
812
  display: none;
782
813
  }
783
- `,iA=(0,r.styled)(D,{shouldForwardProp:e=>!["$canCopy","$leader","$direction"].includes(e.toString())})`
814
+ `,oY=(0,r.styled)(E,{shouldForwardProp:e=>!["$canCopy","$leader","$direction"].includes(e.toString())})`
784
815
  cursor: ${({$canCopy:e})=>e?"pointer":"default"};
785
816
 
786
817
  overflow: hidden;
@@ -796,7 +827,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
796
827
  &:hover {
797
828
  text-decoration: ${({$canCopy:e})=>e?"underline":"none"};
798
829
  }
799
- `,iD=(0,r.styled)(r3,{shouldForwardProp:e=>!["$leader","$direction"].includes(e.toString())})`
830
+ `,oZ=(0,r.styled)(ip,{shouldForwardProp:e=>!["$leader","$direction"].includes(e.toString())})`
800
831
  display: unset;
801
832
 
802
833
  hyphens: auto;
@@ -810,11 +841,11 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
810
841
  & > svg {
811
842
  margin-bottom: ${({theme:e})=>e.spacing(-1)};
812
843
  }
813
- `,iE=(0,r.styled)("dd")`
844
+ `,oq=(0,r.styled)("dd")`
814
845
  overflow: hidden;
815
846
 
816
847
  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())})`
848
+ `,oK=({canCopy:e,children:r,stub:i})=>{let{emptySymbol:o}=(0,t.useContext)(rb),{leader:n,direction:l}=(0,t.useContext)(o_);return{valueToRender:r||i||o,isDefaultValueRender:!e||!r,leader:n,direction:l}},oJ=(0,r.styled)("div",{shouldForwardProp:e=>!["$justifyContent","as","$direction"].includes(e.toString())})`
818
849
  overflow: hidden;
819
850
  display: flex;
820
851
  flex-direction: ${({$direction:e})=>"default"===e?"row":e};
@@ -830,14 +861,14 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
830
861
  font-size: ${({theme:e})=>e.typography.fontSize};
831
862
  }
832
863
  }
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())})`
864
+ `,oQ=({direction:e="default",separator:t=oH})=>{let{isMobile:r}=et();return{descriptionContextProviderProps:{separator:"column"===e||r&&"default"===e?"":t},direction:e}},o0=t=>{let{descriptionContextProviderProps:r,direction:i}=oQ(t),{justifyContent:o="start",component:n="dl",children:l,leader:a=!1}=t;return(0,e.jsx)(oU,{leader:a,direction:i,...r,children:(0,e.jsx)(oJ,{$justifyContent:o,className:oV,$direction:i,as:n,children:l})})};o0.Name=({children:r,color:i="textSecondary",...o})=>{let{leader:n,separator:l}=(0,t.useContext)(o_);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(oG,{$leader:n,children:(0,e.jsxs)(E,{...o,color:i,children:[r,!n&&l]})}),n&&(0,e.jsx)(oX,{})]})},o0.Value=t=>{let{valueToRender:r,isDefaultValueRender:i,leader:o,direction:n}=oK(t),{copyPosition:l="right",copyText:a,canCopy:s,children:d,stub:p,...c}=t;return i?(0,e.jsx)(oY,{$direction:n,component:"dd",$leader:o,...c,children:r}):(0,e.jsx)(oq,{children:(0,e.jsx)(oZ,{copyPosition:l,copyText:a,$direction:n,$leader:o,component:"div",...c,children:r})})};let o1=t=>(0,e.jsx)(eB,{visibleLastSymbolsCount:4,...t}),o2=(0,r.styled)(o0.Name,{shouldForwardProp:e=>!["$nameMaxWidth, $direction"].includes(e.toString())})`
834
865
  max-width: ${({$nameMaxWidth:e})=>e||"none"};
835
866
  margin-bottom: ${({theme:e,$direction:t})=>Object.is(t,"column")?e.spacing(1):0};
836
867
 
837
868
  ${({theme:e})=>e.breakpoints.down("sm")} {
838
869
  margin-bottom: ${({theme:e,$direction:t})=>Object.is(t,"row")?0:e.spacing(1)};
839
870
  }
840
- `,iH=(0,r.styled)("article",{shouldForwardProp:e=>!["$variant"].includes(e.toString())})`
871
+ `,o3=(0,r.styled)("article",{shouldForwardProp:e=>!["$variant"].includes(e.toString())})`
841
872
  display: grid;
842
873
  row-gap: ${({theme:e})=>e.spacing(3)};
843
874
 
@@ -846,7 +877,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
846
877
  background-color: ${({$variant:e,theme:t})=>"contained"===e?t.palette.background.default:"transparent"};
847
878
  border: ${({$variant:e,theme:t})=>"contained"===e?`1px solid ${t.palette.grey[300]}`:"unset"};
848
879
  border-radius: ${({theme:e})=>e.shape.small};
849
- `,iN=(0,r.styled)("dl",{shouldForwardProp:e=>!["$direction"].includes(e.toString())})`
880
+ `,o4=(0,r.styled)("dl",{shouldForwardProp:e=>!["$direction"].includes(e.toString())})`
850
881
  display: grid;
851
882
  row-gap: ${({theme:e,$direction:t})=>Object.is(t,"column")?e.spacing(3):e.spacing(1)};
852
883
 
@@ -855,38 +886,11 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
855
886
  ${({theme:e})=>e.breakpoints.down("sm")} {
856
887
  row-gap: ${({theme:e})=>e.spacing(3)};
857
888
  }
858
- `,iV=(0,r.styled)(iz.Value,{shouldForwardProp:e=>!["$isCopy"].includes(e.toString())})`
889
+ `,o8=(0,r.styled)(o0.Value,{shouldForwardProp:e=>!["$isCopy"].includes(e.toString())})`
859
890
  display: ${({$isCopy:e})=>e&&"flex"};
860
891
 
861
892
  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())})`
863
- &.${r.dialogClasses.root} .${r.backdropClasses.root} {
864
- background-color: ${({theme:e})=>e.palette.background.modalShadow};
865
- }
866
- .${r.dialogClasses.paper} {
867
- min-width: ${({$size:e})=>iY(e).minWidth};
868
- max-width: ${({$size:e})=>iY(e).maxWidth};
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)`
871
- padding-top: 0;
872
-
873
- ${({theme:e})=>e.breakpoints.down("sm")} {
874
- padding: ${({theme:e})=>e.spacing(4)};
875
- }
876
- `,iJ=(0,r.styled)(tB)`
877
- ${({theme:e})=>e.breakpoints.up("sm")} {
878
- flex-direction: column;
879
- justify-content: end;
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)`
882
- padding-bottom: ${({theme:e})=>e.spacing(6)};
883
-
884
- ${({theme:e})=>e.breakpoints.down("sm")} {
885
- padding: ${({theme:e})=>e.spacing(5,4)};
886
- }
887
- `,i1=t=>(0,e.jsx)(i0,{...t}),i2=(0,r.styled)(r.DialogContentText)`
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())})`
893
+ `,o6=e=>e?{title:void 0}:void 0,o9=({items:r,variant:i="default",title:o,direction:n,...l})=>{let a=(0,t.useCallback)((t,r)=>{let{renderValue:i,color:o,canCopy:n,copyPosition:l,variant:a,copyText:s}=r;if(i)return i(t,r);if("tag"===a)return(0,e.jsx)(o0.Value,{children:(0,e.jsx)(tJ,{label:t,color:o,variant:"light"})});if("guid"===a){let r=o6(n);return(0,e.jsx)(o8,{canCopy:n,$isCopy:n,color:o,copyPosition:l,copyText:s,children:(0,e.jsx)(o1,{tooltipProps:r,children:t})})}return(0,e.jsx)(o0.Value,{canCopy:n,color:o,copyPosition:l,children:t})},[]);return(0,e.jsxs)(o3,{$variant:i,children:[o&&("string"==typeof o?(0,e.jsx)(E,{variant:"h6",children:o}):o),(0,e.jsx)(o4,{$direction:n,children:r.map(({name:t,value:r,options:i})=>{let{nameMaxWidth:o,...s}=i||{};return(0,e.jsxs)(o0,{direction:n,...l,component:"div",children:[(0,e.jsx)(o2,{$nameMaxWidth:o,$direction:n,children:t}),a(r,s)]},`${t}:${r}`)})})]})},o5=(0,r.styled)("div",{label:"DialogHeader-root",shouldForwardProp:e=>!["hasTitle","hasOnClose"].includes(e.toString())})`
890
894
  overflow: hidden;
891
895
  display: grid;
892
896
  grid-template-columns: ${({hasTitle:e,hasOnClose:t})=>e&&t?"max-content 1fr 32px":e?"max-content 1fr":t?"1fr 32px":"1fr"};
@@ -895,7 +899,7 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
895
899
 
896
900
  height: auto;
897
901
  padding: ${({theme:e})=>e.spacing(4,6)};
898
- `,i8=(0,r.styled)("div",{shouldForwardProp:e=>!["justifyContent","columnSpacing"].includes(e.toString()),label:"DialogHeader-content"})`
902
+ `,o7=(0,r.styled)("div",{shouldForwardProp:e=>!["justifyContent","columnSpacing"].includes(e.toString()),label:"DialogHeader-content"})`
899
903
  overflow: hidden;
900
904
  display: flex;
901
905
  column-gap: ${({columnSpacing:e,theme:t})=>t.spacing(e)};
@@ -905,7 +909,20 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
905
909
  width: 100%;
906
910
  height: 100%;
907
911
  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)`
912
+ `,ne=({children:t,title:r,justifyContent:o="flex-start",disableSpacing:n,onClose:l})=>(0,e.jsxs)(o5,{hasTitle:!!r,hasOnClose:!!l,children:[r&&(0,e.jsx)(E,{variant:"h4",children:r}),(0,e.jsx)(o7,{justifyContent:o,columnSpacing:2*!n,children:t}),l&&(0,e.jsx)(ee,{variant:"text",onClick:e=>{l&&l(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,e.jsx)(i.X,{})})]}),nt=({children:t,name:i,popoverProps:o,...n})=>{let{open:l,anchorRef:a,handleOpenMenu:s,handleCloseMenu:d}=er();return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.ClickAwayListener,{onClickAway:d,children:(0,e.jsx)(q,{...n,ref:a,selected:l,onClick:s,endIcon:(0,e.jsx)(u,{isActive:l}),children:i})}),(0,e.jsx)(eh,{open:l,anchorEl:a.current,...o,children:t})]})},nr=(0,r.styled)("span")`
913
+ overflow: hidden;
914
+
915
+ max-width: 100%;
916
+
917
+ text-overflow: ellipsis;
918
+ white-space: nowrap;
919
+ `,ni=(0,r.styled)(E,{shouldForwardProp:e=>!["$align"].includes(e.toString())})`
920
+ display: flex;
921
+ justify-content: ${({$align:e})=>e};
922
+ `,no=[".xml.dist",".xml.tpl",".xml.gz",".xml.bz2",".xml.zip",".xml.enc",".xml.sig",".xml.metadata",".xml.backup",".xml.orig",".tar.gz",".tar.bz2",".tar.xz",".tar.lz"],nn=e=>{for(let t of no)if(e.endsWith(t))return t;let t=e.lastIndexOf(".");if(-1!==t)return e.slice(t)},nl=e=>{let t=nn(e);return t&&e.endsWith(t)?{baseName:e.slice(0,e.length-t.length-2),suffixWithExtension:e.slice(-t.length-2)}:{baseName:e.slice(0,-2),suffixWithExtension:e.slice(-2)}},na=({ref:e,children:t})=>{let{ref:r,isOverflowed:i}=eR(e),{baseName:o,suffixWithExtension:n}=nl(t);return{baseNameProps:{ref:r,children:o},isOverflowed:i,suffixWithExtension:n}},ns=(0,t.forwardRef)((t,r)=>{let{isOverflowed:i,suffixWithExtension:o,baseNameProps:n}=na({...t,ref:r}),{tooltipProps:l,variant:a="inherit",children:s,align:d="left",...p}=t;return(0,e.jsx)(eb,{title:i&&s,disableInteractive:!0,...l,children:(0,e.jsxs)(ni,{$align:d,variant:a,...p,children:[(0,e.jsx)(nr,{...n}),(0,e.jsx)("span",{children:o})]})})}),nd=(0,r.styled)(r.FormLabel)`
923
+ font-size: ${({theme:e})=>e.typography.pointer.fontSize};
924
+ line-height: ${({theme:e})=>e.typography.pointer.lineHeight};
925
+ `,np=t=>(0,e.jsx)(nd,{...t}),nc=(0,r.styled)(r.Link)`
909
926
  display: inline-flex;
910
927
  gap: ${({theme:e})=>e.spacing(1)};
911
928
  align-items: baseline;
@@ -939,9 +956,9 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
939
956
  width: 16px;
940
957
  height: 16px;
941
958
  }
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)`
959
+ `,nu=(0,t.forwardRef)(({withAdornment:t,isDownload:r,children:o,...n},l)=>{let a=r?(0,e.jsx)(i.ArrowDownToLine,{}):(0,e.jsx)(i.SquareArrowOutUpRight,{});return(0,e.jsxs)(nc,{download:r,ref:l,...n,children:["start"===t&&a,o,"end"===t&&a,!t&&r&&(0,e.jsx)(i.ArrowDownToLine,{})]})}),ng=t=>(0,e.jsx)(d.default,{...t}),nh=t=>(0,e.jsx)(r.ListItem,{...t}),nm=t=>{let{disabledReason:i,disabled:o,tooltipPlacement:n,note:l,withoutContainer:a=!1,...s}=t,d=()=>(0,e.jsx)(eb,{title:o?i:l,placement:n,withoutContainer:!o,children:(0,e.jsx)(r.ListItemButton,{disabled:o,component:"div",...s,disableRipple:!0})});return a?d():(0,e.jsx)("li",{children:d()})},nx=(0,r.styled)(r.ListItemIcon)`
943
960
  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())})`
961
+ `,ny=(0,t.forwardRef)((t,r)=>(0,e.jsx)(nx,{ref:r,...t})),nf=t=>(0,e.jsx)(p.default,{...t}),nb=t=>(0,e.jsx)(r.ListSubheader,{...t}),n$=(0,r.styled)(nm,{shouldForwardProp:e=>!["$isGroupTitleItem"].includes(e.toString())})`
945
962
  box-sizing: border-box;
946
963
  min-height: 40px;
947
964
  padding: ${({theme:e})=>e.spacing(2)};
@@ -1028,9 +1045,9 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
1028
1045
  }
1029
1046
  }
1030
1047
  }
1031
- `,na=(0,r.styled)(no)`
1048
+ `,nC=(0,r.styled)(ny)`
1032
1049
  min-width: unset;
1033
- `,ns=(0,r.styled)(ez)`
1050
+ `,nw=(0,r.styled)(eB)`
1034
1051
  width: 'auto';
1035
1052
  margin-left: ${({theme:e})=>e.spacing(3)};
1036
1053
 
@@ -1038,16 +1055,75 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
1038
1055
  width: auto;
1039
1056
  margin-left: 0;
1040
1057
  }
1041
- `,nd=(0,r.styled)(o.ChevronDown,{shouldForwardProp:e=>"collapsedIn"!==e&&"opened"!==e})`
1058
+ `,nv=(0,r.styled)(i.ChevronDown,{shouldForwardProp:e=>"collapsedIn"!==e&&"opened"!==e})`
1042
1059
  transform: ${({opened:e})=>e?"rotateZ(180deg)":"rotateZ(0deg)"};
1043
1060
 
1044
1061
  width: ${({collapsedIn:e})=>e?"1em":"0px"};
1045
1062
  margin-left: auto;
1046
1063
 
1047
1064
  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)`
1065
+ `,nj=t=>{let{collapsedIn:r,opened:i,text:o,icon:n,component:l="a",...a}=t,{isMobile:s}=et(),d="boolean"==typeof i;return(0,e.jsxs)(n$,{$isGroupTitleItem:d,component:l,withoutContainer:!0,...a,children:[s?(0,e.jsx)(nw,{tooltipProps:{placement:"right"},rowsCount:1,children:o}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(eb,{arrow:!0,title:!r&&o,placement:"right",children:(0,e.jsx)(nC,{children:n})}),(0,e.jsx)(g,{orientation:"horizontal",in:r,children:(0,e.jsx)(nw,{tooltipProps:{placement:"right"},rowsCount:1,children:o})})]}),d&&(0,e.jsx)(nv,{collapsedIn:r,opened:i})]})},nk=t=>{let{collapsedIn:o,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)(nj,{collapsedIn:o,selected:n.active,text:n.text,icon:(0,e.jsx)(i.Dot,{}),component:n.component})},r)})})},nS=r=>{let{collapsedIn:i,item:[,o]}=r,{active:n,icon:l,items:a,text:s,component:d,...p}=o,[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)(nj,{opened:c,collapsedIn:i,selected:h,text:s,icon:l,component:d,...p,onClick:m}),a&&(0,e.jsx)(g,{in:c,children:(0,e.jsx)(nk,{collapsedIn:i,items:a})})]})},nM=t=>{let{collapsedIn:i=!0,items:o}=t;return(0,e.jsx)(r.List,{disablePadding:!0,children:o.map(t=>(0,e.jsx)(nS,{collapsedIn:i,item:t},t[0]))})},nI=t=>(0,e.jsx)(r.Paper,{...t}),nF=({className:t,value:i})=>{let o=Math.max(0,Math.min(i,100));return(0,e.jsx)(r.LinearProgress,{className:t,variant:"determinate",value:o})},nP="RadioIcon-innerCircle",nT="RadioCheckedIcon-innerCircle",nA=({...t})=>(0,e.jsxs)(r.SvgIcon,{viewBox:"0 0 24 24",...t,children:[(0,e.jsx)("circle",{cx:"12",cy:"12",r:"10",className:"RadioIcon-outerCircle"}),(0,e.jsx)("circle",{cx:"12",cy:"12",r:"8",className:nP})]}),nE=({...t})=>(0,e.jsxs)(r.SvgIcon,{viewBox:"0 0 24 24",...t,children:[(0,e.jsx)("circle",{cx:"12",cy:"12",r:"10",className:"RadioCheckedIcon-outerCircle"}),(0,e.jsx)("circle",{cx:"12",cy:"12",r:"4",className:nT})]}),nD=e=>(0,r.css)`
1066
+ &.MuiRadio-root:not(.Mui-disabled) {
1067
+ color: ${e.palette.red[800]};
1068
+
1069
+ &:hover {
1070
+ & > svg {
1071
+ color: ${e.palette.red[700]};
1072
+ }
1073
+ }
1074
+ }
1075
+ `,nR=(0,r.styled)(r.Radio,{shouldForwardProp:e=>"isError"!==e})`
1076
+ padding: 5px;
1077
+
1078
+ color: ${({theme:e})=>e.palette.grey[300]};
1079
+
1080
+ border-radius: unset;
1081
+
1082
+ & > svg > .${nP} {
1083
+ fill: ${({theme:e})=>e.palette.common.white};
1084
+ }
1085
+
1086
+ &:hover {
1087
+ background: none;
1088
+
1089
+ & > svg > .${nP} {
1090
+ fill: ${({theme:e})=>e.palette.grey[100]};
1091
+ }
1092
+ }
1093
+
1094
+ &.Mui-disabled:not(.Mui-checked) {
1095
+ color: ${({theme:e})=>e.palette.grey[200]};
1096
+
1097
+ & > svg > .${nP} {
1098
+ fill: ${({theme:e})=>e.palette.grey[200]};
1099
+ }
1100
+ }
1101
+
1102
+ &.Mui-checked {
1103
+ color: ${({theme:e})=>e.palette.primary.main};
1104
+
1105
+ &:hover {
1106
+ & > svg {
1107
+ color: ${({theme:e})=>e.palette.primary[700]};
1108
+ }
1109
+ }
1110
+
1111
+ &.Mui-disabled {
1112
+ color: ${({theme:e})=>e.palette.grey[400]};
1113
+ }
1114
+
1115
+ & > svg > .${nT} {
1116
+ fill: ${({theme:e})=>e.palette.common.white};
1117
+ }
1118
+ }
1119
+
1120
+ ${({isError:e,theme:t})=>e&&nD(t)}
1121
+ `,nL=({icon:t=(0,e.jsx)(nA,{}),checkedIcon:r=(0,e.jsx)(nE,{}),...i})=>(0,e.jsx)(nR,{icon:t,checkedIcon:r,...i}),nO=(0,r.styled)(r.FormControlLabel)`
1122
+ margin-right: ${({theme:e})=>e.spacing(6)};
1123
+ margin-left: -7px;
1124
+ `,nz=({id:t,disabled:r,label:i,isError:o,disabledReason:n,formControlLabelProps:l,...a})=>(0,e.jsx)(eb,{title:r&&n,placement:"bottom-start",withoutContainer:!1,children:(0,e.jsx)(nO,{...l,label:i,control:(0,e.jsx)(nL,{...a,isError:o}),disabled:r})},t),nB=(0,t.createContext)({isError:!1}),nW=({children:t,isError:r})=>(0,e.jsx)(nB.Provider,{value:{isError:r},children:t}),nH=i=>{let{children:o,groupLabel:n,errorText:l,isError:a,required:s,formControlProps:d,row:p,...c}=i,u=(0,t.useId)();return(0,e.jsx)(eb,{title:a&&l,placement:"right-start",followCursor:!0,children:(0,e.jsxs)(rp,{...d,children:[n&&(0,e.jsx)(np,{id:u,required:s,children:n}),(0,e.jsx)(r.RadioGroup,{...c,"aria-labelledby":u,row:p,children:(0,e.jsx)(nW,{isError:a,children:o})})]})})},nN=r=>{let{isError:i}=(0,t.useContext)(nB);return(0,e.jsx)(nz,{...r,isError:i})},nV=(0,r.styled)(i.Search)`
1049
1125
  color: ${({theme:e})=>e.palette.grey[600]};
1050
- `,nx=(0,r.styled)(ee,{shouldForwardProp:e=>!["$isActive"].includes(e.toString())})`
1126
+ `,n_=(0,r.styled)(ee,{shouldForwardProp:e=>!["$isActive"].includes(e.toString())})`
1051
1127
  opacity: ${({$isActive:e})=>+!!e};
1052
1128
 
1053
1129
  &:hover {
@@ -1057,17 +1133,75 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
1057
1133
  fill: ${({theme:e})=>e.palette.grey["700"]};
1058
1134
  }
1059
1135
  }
1060
- `,ny=(0,r.styled)(t8)`
1136
+ `,nU=(0,r.styled)(t6)`
1061
1137
  & .MuiFormHelperText-root {
1062
1138
  /* TODO Убрать после реализации https://track.astral.ru/soft/browse/UIKIT-1333 */
1063
1139
  display: none;
1064
1140
  }
1065
- `,nf=(0,r.styled)(o.CircleX)`
1141
+ `,nG=(0,r.styled)(i.CircleX)`
1066
1142
  width: 16px;
1067
1143
  height: 16px;
1068
1144
 
1069
1145
  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)`
1146
+ `,nX=(0,t.forwardRef)(({margin:r="none",placeholder:i="Поиск",onChange:o,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)(nU,{margin:r,placeholder:i,startAdornment:(0,e.jsx)(nV,{onClick:()=>{u.current?.focus()}}),disabled:n,endAdornment:(0,e.jsx)(n_,{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}),o?.(e),u.current?.focus()},disabled:n||!g,$isActive:g,children:(0,e.jsx)(nG,{})}),onChange:e=>{c(e.target.value),o?.(e)},value:p,ref:d,inputRef:u,...s})}),nY=(0,r.styled)(r.Skeleton)`
1147
+ /* stylelint-disable-next-line */
1148
+ background-color: ${({theme:e})=>(0,r.alpha)(e.palette.grey[900],.12)};
1149
+
1150
+ /* TODO: Заменить на значения из темы в рамках
1151
+ https://track.astral.ru/soft/browse/UIKIT-1400 */
1152
+ &.${r.skeletonClasses.text} {
1153
+ border-radius: 4px;
1154
+ }
1155
+
1156
+ &.${r.skeletonClasses.rounded} {
1157
+ border-radius: 4px;
1158
+ }
1159
+ `,nZ=t=>(0,e.jsx)(nY,{...t}),nq=(0,r.styled)(r.Switch)`
1160
+ .Mui-focusVisible {
1161
+ border: 2px solid ${({theme:e})=>e.palette.primary[400]};
1162
+ }
1163
+ ${`.${r.switchClasses.track}`}::before {
1164
+ display: none;
1165
+ }
1166
+
1167
+ ${`.${r.switchClasses.track}`}::after {
1168
+ display: none;
1169
+ }
1170
+ `,nK=(0,t.forwardRef)((t,r)=>(0,e.jsx)(nq,{ref:r,...t})),nJ=(0,r.styled)(r.Tab)`
1171
+ min-height: 36px;
1172
+ margin-right: ${({theme:e})=>e.spacing(4)};
1173
+ padding: 0;
1174
+
1175
+ line-height: 20px;
1176
+ color: ${({theme:e})=>e.palette.grey[900]};
1177
+
1178
+ &:last-child {
1179
+ margin-right: 0;
1180
+ }
1181
+
1182
+ &:hover {
1183
+ color: ${({theme:e})=>e.palette.primary[800]};
1184
+ }
1185
+
1186
+ &:active {
1187
+ color: ${({theme:e})=>e.palette.primary[900]};
1188
+ }
1189
+ `,nQ=t=>(0,e.jsx)(nJ,{...t}),n0=(0,r.styled)("div")`
1190
+ display: flex;
1191
+ flex-direction: column;
1192
+ align-items: flex-start;
1193
+
1194
+ width: 100%;
1195
+ `,n1=(0,r.styled)("div")`
1196
+ position: relative;
1197
+ z-index: -1;
1198
+ bottom: 2px;
1199
+
1200
+ width: 100%;
1201
+ height: 2px;
1202
+
1203
+ background-color: ${e=>e.theme.palette.grey[200]};
1204
+ `,n2=({nextFeatureFlags:t,...i})=>t?.hasBottomDivider?(0,e.jsxs)(n0,{children:[(0,e.jsx)(r.Tabs,{...i}),(0,e.jsx)(n1,{})]}):(0,e.jsx)(r.Tabs,{...i}),n3=(0,r.styled)(rd)`
1071
1205
  vertical-align: text-top;
1072
1206
 
1073
1207
  & span.MuiBadge-badge {
@@ -1077,4 +1211,4 @@ import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mu
1077
1211
  box-sizing: content-box;
1078
1212
  height: 16px;
1079
1213
  }
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};
1214
+ `,n4=({disabled:e,checked:t,checkedColor:r,color:i})=>e?"grey":t?r||"white":i,n8=({color:t="primary",checked:r,disabled:i,checkedColor:o,...n})=>(0,e.jsx)(n3,{withBorder:!1,color:n4({disabled:i,checked:r,checkedColor:o,color:t}),...n}),n6=({rows:t=7,...r})=>(0,e.jsx)(t6,{multiline:!0,rows:t,...r});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,r$ as ConfigProvider,rI as ConfirmAction,rV as ConfirmDialog,tW as Container,io as ContentState,ip as CopyTypography,ez as DEFAULT_ROWS_COUNT,oH as DEFAULT_SEPARATOR,oN as DEFAULT_SYMBOL,oV as DESCRIPTION_ROOT_CLASSNAME,oa as DataGrid,om as DataGridActionCell,oW as DataGridPagination,o0 as Description,o9 as DescriptionList,rE as Dialog,rL as DialogActions,rz as DialogContent,rW as DialogContentText,ne as DialogHeader,rF as DialogTitle,i8 as Divider,nt as DropdownButton,iy as EXPANDED_LEVEL_BY_DEFAULT,ir as ErrorBoundary,ns as Filename,rp as FormControl,ru as FormControlLabel,t8 as FormHelperText,t4 as FormHelperTextContent,np as FormLabel,o1 as GuidTypography,i4 as Head,ib as INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT,ee as IconButton,em as IconDropdownButton,rJ as Image,r9 as InternalErrorPlaceholder,B as LOADING_BUTTON_CLASSNAME,nu as Link,ng as List,nh as ListItem,nm as ListItemButton,ny as ListItemIcon,nf as ListItemText,nb as ListSubheader,ix as MIN_DISPLAY_ROWS_BY_DEFAULT,ig as MIN_ROW_HEIGHT,eh as Menu,e$ as MenuItem,eg as MenuList,nM as NavMenu,r5 as OutdatedReleasePlaceholder,eB as OverflowTypography,ox as Pagination,nI as Paper,r6 as Placeholder,rC as Popover,nF as ProgressBar,ih as ROOT_ACTION_CELL_WIDTH,nL as Radio,nz as RadioField,nH as RadioGroup,nB as RadioGroupContext,nN as RadioGroupField,iX as Row,iH as RowContext,iN as RowContextProvider,tP as SPACING,nX as SearchField,oE as Select,nZ as Skeleton,iS as SortStates,nK as Switch,im as TREE_LINE_WIDTH,nQ as Tab,n2 as Tabs,tJ as Tag,n8 as TagBadge,oj as TagsList,n6 as TextArea,t6 as TextField,eb as Tooltip,E as Typography,iM as Variant,tA as componentsColors,tO as createTheme,tT as elevation,tE as getPalette,rQ as setDefaultImageStyles,tD as shape,er as useMenu,ei as usePopover,tz as useTheme,eo as useToggle,et as useViewportType};