@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.
- package/.storybook/main.ts +14 -14
- package/.turbo/turbo-build.log +11 -493
- package/.turbo/turbo-type$colon$check.log +1 -756
- package/CHANGELOG.md +12 -0
- package/dist/components/Autocomplete/styles.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +4 -4
- package/dist/components/Button/useLogic/useLogic.d.ts +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +37 -0
- package/dist/components/ConfirmDialog/index.d.ts +1 -0
- package/dist/components/ConfirmDialog/styles.d.ts +9 -0
- package/dist/components/ConfirmDialog/useLogic/index.d.ts +1 -0
- package/dist/components/ConfirmDialog/useLogic/useLogic.d.ts +10 -0
- package/dist/components/DataGrid/Row/NestedChildren/styles.d.ts +1 -1
- package/dist/components/DataGrid/Row/styles.d.ts +1 -1
- package/dist/components/DropdownButton/DropdownButton.d.ts +9 -0
- package/dist/components/DropdownButton/index.d.ts +1 -0
- package/dist/components/Filename/Filename.d.ts +21 -0
- package/dist/components/Filename/index.d.ts +1 -0
- package/dist/components/Filename/styles.d.ts +17 -0
- package/dist/components/Filename/useLogic/index.d.ts +1 -0
- package/dist/components/Filename/useLogic/useLogic.d.ts +16 -0
- package/dist/components/Filename/useLogic/utils/findExtension/constants.d.ts +1 -0
- package/dist/components/Filename/useLogic/utils/findExtension/findExtension.d.ts +1 -0
- package/dist/components/Filename/useLogic/utils/findExtension/index.d.ts +1 -0
- package/dist/components/Filename/useLogic/utils/index.d.ts +1 -0
- package/dist/components/Filename/useLogic/utils/truncateString/constants.d.ts +1 -0
- package/dist/components/Filename/useLogic/utils/truncateString/index.d.ts +1 -0
- package/dist/components/Filename/useLogic/utils/truncateString/truncateString.d.ts +4 -0
- package/dist/components/FormLabel/FormLabel.d.ts +4 -0
- package/dist/components/FormLabel/index.d.ts +1 -0
- package/dist/components/FormLabel/styles.d.ts +1 -0
- package/dist/components/IconButton/IconButton.d.ts +2 -2
- package/dist/components/IconButton/styles.d.ts +2 -2
- package/dist/components/ListItemButton/ListItemButton.d.ts +2 -2
- package/dist/components/MenuItem/MenuItem.d.ts +1 -1
- package/dist/components/MenuList/types.d.ts +2 -2
- package/dist/components/NavMenu/Item/ItemButton/ItemButton.d.ts +1 -1
- package/dist/components/NavMenu/Item/ItemButton/styles.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +12 -0
- package/dist/components/ProgressBar/index.d.ts +1 -0
- package/dist/components/Radio/Icon/Icon.d.ts +6 -0
- package/dist/components/Radio/Icon/index.d.ts +1 -0
- package/dist/components/Radio/Radio.d.ts +9 -0
- package/dist/components/Radio/constants.d.ts +8 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Radio/styles.d.ts +5 -0
- package/dist/components/RadioField/RadioField.d.ts +25 -0
- package/dist/components/RadioField/index.d.ts +1 -0
- package/dist/components/RadioField/styles.d.ts +2 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +30 -0
- package/dist/components/RadioGroup/RadioGroupContext/RadioGroupContext.d.ts +4 -0
- package/dist/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.d.ts +6 -0
- package/dist/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/index.d.ts +1 -0
- package/dist/components/RadioGroup/RadioGroupContext/index.d.ts +2 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/RadioGroupField/RadioGroupField.d.ts +8 -0
- package/dist/components/RadioGroupField/index.d.ts +1 -0
- package/dist/components/SearchField/styles.d.ts +1 -1
- package/dist/components/Select/styles.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Skeleton/styles.d.ts +1 -0
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Switch/styles.d.ts +1 -0
- package/dist/components/Tab/Tab.d.ts +7 -0
- package/dist/components/Tab/index.d.ts +1 -0
- package/dist/components/Tab/styles.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +13 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/styles.d.ts +2 -0
- package/dist/components/TextArea/TextArea.d.ts +3 -0
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useToggle/index.d.ts +1 -0
- package/dist/hooks/useToggle/useToggle.d.ts +43 -0
- package/dist/index.js +183 -49
- package/dist/index.mjs +312 -178
- package/package.json +1 -1
- package/rslib.config.ts +26 -26
- package/src/components/Accordion/Accordion.stories.tsx +2 -0
- package/src/components/ActionCell/ActionCell.stories.tsx +1 -0
- package/src/components/ActionCell/MainAction/MainAction.tsx +1 -0
- package/src/components/AsyncAutocomplete/AsyncAutocomplete.stories.tsx +1 -0
- package/src/components/Autocomplete/Autocomplete.stories.tsx +1 -0
- package/src/components/Badge/Badge.stories.tsx +1 -0
- package/src/components/BottomDrawer/BottomDrawer.stories.tsx +2 -1
- package/src/components/Button/Button.stories.tsx +2 -1
- package/src/components/Button/Button.tsx +9 -10
- package/src/components/Button/useLogic/useLogic.ts +2 -5
- package/src/components/Checkbox/Checkbox.stories.tsx +1 -3
- package/src/components/CheckboxField/CheckboxField.stories.tsx +1 -0
- package/src/components/Chevron/Chevron.stories.tsx +1 -0
- package/src/components/CircularProgress/CircularProgress.stories.tsx +1 -0
- package/src/components/Collapse/Collapse.stories.tsx +1 -0
- package/src/components/ConfirmAction/ConfirmAction.stories.tsx +1 -3
- package/src/components/ConfirmDialog/ConfirmDialog.stories.tsx +69 -0
- package/src/components/ConfirmDialog/ConfirmDialog.tsx +83 -0
- package/src/components/ConfirmDialog/index.ts +1 -0
- package/src/components/ConfirmDialog/styles.ts +8 -0
- package/src/components/ConfirmDialog/useLogic/index.ts +1 -0
- package/src/components/ConfirmDialog/useLogic/useLogic.ts +23 -0
- package/src/components/ContentState/ContentState.stories.tsx +1 -0
- package/src/components/CopyTypography/CopyTypography.stories.tsx +1 -2
- package/src/components/DataGrid/DataGrid.stories.tsx +1 -0
- package/src/components/DataGridActionCell/DataGridActionCell.stories.tsx +1 -0
- package/src/components/DataGridPagination/DataGridPagination.stories.tsx +1 -0
- package/src/components/Description/Description.stories.tsx +1 -0
- package/src/components/DescriptionList/DescriptionList.stories.tsx +1 -0
- package/src/components/Dialog/Dialog.stories.tsx +1 -0
- package/src/components/DialogActions/DialogActions.stories.tsx +1 -3
- package/src/components/DialogContent/DialogContent.stories.tsx +1 -3
- package/src/components/DialogContentText/DialogContentText.stories.tsx +1 -0
- package/src/components/DialogHeader/DialogHeader.stories.tsx +1 -0
- package/src/components/Divider/Divider.stories.tsx +1 -0
- package/src/components/DropdownButton/DropdownButton.stories.tsx +191 -0
- package/src/components/DropdownButton/DropdownButton.tsx +46 -0
- package/src/components/DropdownButton/index.ts +1 -0
- package/src/components/ErrorBoundary/ErrorBoundary.stories.tsx +1 -0
- package/src/components/Filename/Filename.stories.tsx +244 -0
- package/src/components/Filename/Filename.tsx +57 -0
- package/src/components/Filename/index.ts +1 -0
- package/src/components/Filename/styles.ts +18 -0
- package/src/components/Filename/useLogic/index.ts +1 -0
- package/src/components/Filename/useLogic/useLogic.ts +36 -0
- package/src/components/Filename/useLogic/utils/findExtension/constants.ts +16 -0
- package/src/components/Filename/useLogic/utils/findExtension/findExtension.ts +17 -0
- package/src/components/Filename/useLogic/utils/findExtension/index.ts +1 -0
- package/src/components/Filename/useLogic/utils/index.ts +1 -0
- package/src/components/Filename/useLogic/utils/truncateString/constants.ts +1 -0
- package/src/components/Filename/useLogic/utils/truncateString/index.ts +1 -0
- package/src/components/Filename/useLogic/utils/truncateString/truncateString.ts +24 -0
- package/src/components/FormLabel/FormLabel.tsx +11 -0
- package/src/components/FormLabel/index.ts +1 -0
- package/src/components/FormLabel/styles.ts +6 -0
- package/src/components/GuidTypography/GuidTypography.stories.tsx +1 -0
- package/src/components/IconButton/IconButton.stories.tsx +1 -1
- package/src/components/IconButton/IconButton.tsx +11 -16
- package/src/components/IconButton/styles.ts +24 -24
- package/src/components/IconDropdownButton/IconDropdownButton.stories.tsx +1 -0
- package/src/components/InternalErrorPlaceholder/InternalErrorPlaceholder.stories.tsx +1 -0
- package/src/components/Link/Link.stories.tsx +1 -0
- package/src/components/List/List.stories.tsx +1 -0
- package/src/components/ListItem/ListItem.stories.tsx +1 -0
- package/src/components/ListItemButton/ListItemButton.stories.tsx +1 -0
- package/src/components/ListItemButton/ListItemButton.tsx +3 -9
- package/src/components/ListItemIcon/ListItemIcon.stories.tsx +1 -0
- package/src/components/ListItemText/ListItemText.stories.tsx +1 -0
- package/src/components/ListSubheader/ListSubheader.stories.tsx +1 -0
- package/src/components/Menu/Menu.stories.tsx +1 -0
- package/src/components/MenuItem/MenuItem.stories.tsx +1 -0
- package/src/components/MenuItem/MenuItem.tsx +1 -2
- package/src/components/MenuList/MenuList.stories.tsx +1 -0
- package/src/components/MenuList/types.ts +3 -8
- package/src/components/NavMenu/Item/ItemButton/ItemButton.tsx +1 -2
- package/src/components/NavMenu/NavMenu.stories.tsx +1 -0
- package/src/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.stories.tsx +1 -0
- package/src/components/OverflowTypography/OverflowTypography.stories.tsx +1 -8
- package/src/components/Pagination/Pagination.stories.tsx +1 -0
- package/src/components/Placeholder/Placeholder.stories.tsx +1 -0
- package/src/components/Popover/Popover.stories.tsx +1 -0
- package/src/components/ProgressBar/ProgressBar.stories.tsx +31 -0
- package/src/components/ProgressBar/ProgressBar.tsx +26 -0
- package/src/components/ProgressBar/index.ts +1 -0
- package/src/components/Radio/Icon/Icon.tsx +37 -0
- package/src/components/Radio/Icon/index.ts +1 -0
- package/src/components/Radio/Radio.stories.tsx +32 -0
- package/src/components/Radio/Radio.tsx +24 -0
- package/src/components/Radio/constants.ts +9 -0
- package/src/components/Radio/index.ts +1 -0
- package/src/components/Radio/styles.ts +70 -0
- package/src/components/RadioField/RadioField.stories.tsx +74 -0
- package/src/components/RadioField/RadioField.tsx +55 -0
- package/src/components/RadioField/index.ts +1 -0
- package/src/components/RadioField/styles.ts +10 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +60 -0
- package/src/components/RadioGroup/RadioGroup.tsx +79 -0
- package/src/components/RadioGroup/RadioGroupContext/RadioGroupContext.ts +9 -0
- package/src/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.tsx +18 -0
- package/src/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/index.ts +1 -0
- package/src/components/RadioGroup/RadioGroupContext/index.ts +3 -0
- package/src/components/RadioGroup/index.ts +3 -0
- package/src/components/RadioGroupField/RadioGroupField.tsx +17 -0
- package/src/components/RadioGroupField/index.ts +1 -0
- package/src/components/Select/Select.stories.tsx +0 -4
- package/src/components/Skeleton/Skeleton.stories.tsx +78 -0
- package/src/components/Skeleton/Skeleton.tsx +31 -0
- package/src/components/Skeleton/index.ts +1 -0
- package/src/components/Skeleton/styles.ts +16 -0
- package/src/components/Switch/Switch.stories.tsx +179 -0
- package/src/components/Switch/Switch.tsx +14 -0
- package/src/components/Switch/index.ts +1 -0
- package/src/components/Switch/styles.ts +14 -0
- package/src/components/Tab/Tab.stories.tsx +53 -0
- package/src/components/Tab/Tab.tsx +20 -0
- package/src/components/Tab/index.ts +1 -0
- package/src/components/Tab/styles.ts +22 -0
- package/src/components/Tabs/Tabs.stories.tsx +74 -0
- package/src/components/Tabs/Tabs.tsx +27 -0
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/Tabs/styles.ts +20 -0
- package/src/components/Tag/Tag.stories.tsx +1 -1
- package/src/components/TagBadge/TagBadge.stories.tsx +1 -5
- package/src/components/TextArea/TextArea.stories.tsx +81 -0
- package/src/components/TextArea/TextArea.tsx +8 -0
- package/src/components/TextArea/index.ts +1 -0
- package/src/components/TextField/TextField.stories.tsx +1 -4
- package/src/components/Tooltip/Tooltip.stories.tsx +1 -4
- package/src/components/Typography/Typography.stories.tsx +2 -4
- package/src/components/index.ts +28 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useToggle/index.ts +1 -0
- package/src/hooks/useToggle/useToggle.ts +76 -0
- package/test.tsx +1 -0
- package/tsconfig.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Filename:()=>Filename,Placeholder:()=>Placeholder,FormLabel:()=>FormLabel,LOADING_BUTTON_CLASSNAME:()=>LOADING_BUTTON_CLASSNAME,DialogTitle:()=>DialogTitle,RadioGroup:()=>RadioGroup,FormHelperTextContent:()=>FormHelperTextContent,INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT:()=>INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT,createTheme:()=>createTheme,useTheme:()=>useTheme,usePopover:()=>usePopover,ListItem:()=>ListItem,GuidTypography:()=>GuidTypography,Paper:()=>Paper,FormControlLabel:()=>FormControlLabel,useMenu:()=>useMenu,RadioGroupField:()=>RadioGroupField,RowContext:()=>RowContext,ButtonColors:()=>enums_ButtonColors,Divider:()=>Divider,ErrorBoundary:()=>ErrorBoundary,ProgressBar:()=>ProgressBar,TREE_LINE_WIDTH:()=>TREE_LINE_WIDTH,SPACING:()=>SPACING,TagBadge:()=>TagBadge,OutdatedReleasePlaceholder:()=>OutdatedReleasePlaceholder,ListItemButton:()=>ListItemButton,Badge:()=>Badge,Switch:()=>Switch,EXPANDED_LEVEL_BY_DEFAULT:()=>EXPANDED_LEVEL_BY_DEFAULT,componentsColors:()=>componentsColors,ButtonStates:()=>enums_ButtonStates,ListSubheader:()=>ListSubheader,ConfigContext:()=>ConfigContext,DESCRIPTION_ROOT_CLASSNAME:()=>DESCRIPTION_ROOT_CLASSNAME,ButtonVariants:()=>enums_ButtonVariants,Skeleton:()=>Skeleton,ContentState:()=>ContentState,Collapse:()=>Collapse,DEFAULT_SYMBOL:()=>DEFAULT_SYMBOL,IconButton:()=>IconButton,DropdownButton:()=>DropdownButton,Row:()=>Row,BottomDrawer:()=>BottomDrawer,DescriptionList:()=>DescriptionList,Variant:()=>enums_Variant,getPalette:()=>getPalette,useToggle:()=>useToggle,NavMenu:()=>NavMenu,Tag:()=>Tag,SortStates:()=>enums_SortStates,ConfirmAction:()=>ConfirmAction,Menu:()=>Menu,DataGridPagination:()=>DataGridPagination,Autocomplete:()=>Autocomplete,Button:()=>Button,DEFAULT_SEPARATOR:()=>DEFAULT_SEPARATOR,Head:()=>Head,Accordion:()=>Accordion,ConfirmDialog:()=>ConfirmDialog,Tabs:()=>Tabs,CircularProgress:()=>CircularProgress,ROOT_ACTION_CELL_WIDTH:()=>ROOT_ACTION_CELL_WIDTH,Radio:()=>Radio,Dialog:()=>Dialog,elevation:()=>elevation_elevation,MenuItem:()=>MenuItem,AsyncAutocomplete:()=>AsyncAutocomplete,setDefaultImageStyles:()=>setDefaultImageStyles,DialogContent:()=>DialogContent,Container:()=>Container,Link:()=>Link,List:()=>List,ConfigProvider:()=>ConfigProvider,CheckboxField:()=>CheckboxField,RowContextProvider:()=>RowContextProvider,MIN_DISPLAY_ROWS_BY_DEFAULT:()=>MIN_DISPLAY_ROWS_BY_DEFAULT,InternalErrorPlaceholder:()=>InternalErrorPlaceholder,MenuList:()=>MenuList,DEFAULT_ROWS_COUNT:()=>DEFAULT_ROWS_COUNT,FormHelperText:()=>FormHelperText,Select:()=>Select,DataGrid:()=>DataGrid,DialogActions:()=>DialogActions,RadioField:()=>RadioField,DataGridActionCell:()=>DataGridActionCell,SearchField:()=>SearchField,DialogHeader:()=>DialogHeader,ListItemIcon:()=>ListItemIcon,IconDropdownButton:()=>IconDropdownButton,DialogContentText:()=>DialogContentText,FormControl:()=>FormControl,RadioGroupContext:()=>RadioGroupContext,MIN_ROW_HEIGHT:()=>MIN_ROW_HEIGHT,Pagination:()=>Pagination,CopyTypography:()=>CopyTypography,ActionCell:()=>ActionCell,TextField:()=>TextField,TextArea:()=>TextArea,shape:()=>shape,Typography:()=>Typography,TagsList:()=>TagsList,Tab:()=>Tab,Image:()=>Image,ButtonSizes:()=>enums_ButtonSizes,Chevron:()=>Chevron,useViewportType:()=>useViewportType,Description:()=>Description_Description,OverflowTypography:()=>OverflowTypography,ListItemText:()=>ListItemText,Tooltip:()=>Tooltip,Checkbox:()=>Checkbox,Popover:()=>Popover});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_react_namespaceObject=require("react");var external_react_default=__webpack_require__.n(external_react_namespaceObject);let material_namespaceObject=require("@mui/material"),external_lucide_react_namespaceObject=require("lucide-react"),ChevronIcon=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.ChevronsDown,{shouldForwardProp:e=>"isActive"!==e})`
|
|
2
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})};
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
width: 24px;
|
|
22
22
|
height: 24px;
|
|
23
|
-
`,Accordion=(0,external_react_namespaceObject.forwardRef)(({summary:e,startAdorment:t,isExpanded:a,onChange:r,children:n},i)=>{let[o,s]=(0,external_react_namespaceObject.useState)(!1),l="boolean"==typeof a,c=l?a:o,p=!!t,
|
|
23
|
+
`,Accordion=(0,external_react_namespaceObject.forwardRef)(({summary:e,startAdorment:t,isExpanded:a,onChange:r,children:n},i)=>{let[o,s]=(0,external_react_namespaceObject.useState)(!1),l="boolean"==typeof a,c=l?a:o,p=!!t,m="string"==typeof e?Summary:external_react_default().Fragment;return(0,jsx_runtime_namespaceObject.jsxs)("div",{ref:i,children:[(0,jsx_runtime_namespaceObject.jsxs)(Header,{onClick:e=>{if(l)r?.(!a,e);else{let t=!o;s(t),r?.(t,e)}},withStartAdornment:p,children:[t,(0,jsx_runtime_namespaceObject.jsx)(m,{children:e}),(0,jsx_runtime_namespaceObject.jsx)(ChevronWrapper,{children:(0,jsx_runtime_namespaceObject.jsx)(Chevron,{isActive:c})})]}),(0,jsx_runtime_namespaceObject.jsx)(Collapse,{in:c,children:(0,jsx_runtime_namespaceObject.jsx)(ContentWrapper,{withStartAdorment:p,children:n})})]})}),external_clsx_namespaceObject=require("clsx"),LOADING_BUTTON_CLASSNAME="astral-button-loading";var enums_ButtonColors=function(e){return e.Error="error",e.Success="success",e.Warning="warning",e.Primary="primary",e}({}),enums_ButtonVariants=function(e){return e.Contained="contained",e.Light="light",e.Text="text",e.Link="link",e}({}),enums_ButtonSizes=function(e){return e.Small="small",e.Medium="medium",e.Large="large",e}({}),enums_ButtonStates=function(e){return e.Default="default",e.Active="active",e.Focus="focus",e.Hover="hover",e}({});let useLogic=({size:e})=>({size:"small"===e?16:24}),CircularProgress=e=>{let{size:t}=useLogic({...e}),{size:a,color:r,...n}=e;return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.CircularProgress,{...n,size:t,color:"inherit","data-color":r})},StyledButton=(0,material_namespaceObject.styled)(material_namespaceObject.Button)`
|
|
24
24
|
min-width: ${({variant:e})=>e===enums_ButtonVariants.Link?"auto":""};
|
|
25
25
|
padding: ${({variant:e})=>e===enums_ButtonVariants.Link?0:""};
|
|
26
26
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
40
40
|
width: ${getButtonHeightMobile};
|
|
41
41
|
}
|
|
42
|
-
`,IconButton=e=>{let{variant:t=enums_ButtonVariants.Contained,loading:a,children:r,...n}=e,i=(0,external_react_namespaceObject.useMemo)(()=>t===enums_ButtonVariants.Contained?"inverted":"primary",[t]);return(0,jsx_runtime_namespaceObject.jsx)(styles_StyledButton,{loading:a,variant:t,tabIndex:a?-1:0,...n,children:a?(0,jsx_runtime_namespaceObject.jsx)(CircularProgress,{size:"small",color:i}):r})},useViewportType=()=>{let e=(0,material_namespaceObject.useTheme)();return{isMobile:(0,material_namespaceObject.useMediaQuery)(e.breakpoints.down("sm"))}};function useMenu(e=null){let[t,a]=(0,external_react_namespaceObject.useState)(!1),r=(0,external_react_namespaceObject.useRef)(null);return(0,external_react_namespaceObject.useEffect)(()=>{e&&("function"==typeof e?e(r.current):e.current=r.current)},[e]),{open:t,anchorRef:r,handleCloseMenu:()=>a(!1),handleOpenMenu:()=>a(!0)}}let usePopover=()=>{let[e,t]=(0,external_react_namespaceObject.useState)(null);return{isOpen:!!e,anchor:e,actions:{open:e=>t(e.currentTarget),close:()=>t(null)}}},OFFSET_TOP_SCREEN="16px",DEFAULT_HEADER_HEIGHT=56,StyledDrawer=(0,material_namespaceObject.styled)(material_namespaceObject.Drawer)`
|
|
42
|
+
`,IconButton=e=>{let{variant:t=enums_ButtonVariants.Contained,loading:a,children:r,...n}=e,i=(0,external_react_namespaceObject.useMemo)(()=>t===enums_ButtonVariants.Contained?"inverted":"primary",[t]);return(0,jsx_runtime_namespaceObject.jsx)(styles_StyledButton,{loading:a,variant:t,tabIndex:a?-1:0,...n,children:a?(0,jsx_runtime_namespaceObject.jsx)(CircularProgress,{size:"small",color:i}):r})},useViewportType=()=>{let e=(0,material_namespaceObject.useTheme)();return{isMobile:(0,material_namespaceObject.useMediaQuery)(e.breakpoints.down("sm"))}};function useMenu(e=null){let[t,a]=(0,external_react_namespaceObject.useState)(!1),r=(0,external_react_namespaceObject.useRef)(null);return(0,external_react_namespaceObject.useEffect)(()=>{e&&("function"==typeof e?e(r.current):e.current=r.current)},[e]),{open:t,anchorRef:r,handleCloseMenu:()=>a(!1),handleOpenMenu:()=>a(!0)}}let usePopover=()=>{let[e,t]=(0,external_react_namespaceObject.useState)(null);return{isOpen:!!e,anchor:e,actions:{open:e=>t(e.currentTarget),close:()=>t(null)}}},useToggle=e=>{let{initialState:t=!1,onInactive:a,onActive:r}=e||{},[n,i]=(0,external_react_namespaceObject.useState)(t);return[n,(...e)=>{i(!0),r?.(...e)},(...e)=>{i(!1),a?.(...e)}]},OFFSET_TOP_SCREEN="16px",DEFAULT_HEADER_HEIGHT=56,StyledDrawer=(0,material_namespaceObject.styled)(material_namespaceObject.Drawer)`
|
|
43
43
|
${`.${material_namespaceObject.paperClasses.root}`} {
|
|
44
44
|
max-height: calc(100vh - ${OFFSET_TOP_SCREEN});
|
|
45
45
|
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
`,styles_ContentWrapper=(0,material_namespaceObject.styled)("div")`
|
|
108
108
|
display: inherit;
|
|
109
109
|
flex-direction: inherit;
|
|
110
|
-
`,Tooltip=e=>{let{title:t,placement:a="top",size:r=constants_TooltipSizes.MEDIUM,withoutContainer:n=!0,children:i,...o}=e;return(0,jsx_runtime_namespaceObject.jsx)(StyledTooltip,{title:t,size:r,placement:a,arrow:!0,...o,children:n?i:(0,jsx_runtime_namespaceObject.jsx)(styles_ContentWrapper,{children:i})})},MenuItem=e=>{let{disabledReason:t,disabled:a,component:r="div",title:n,tooltipPlacement:i="left",note:o,...s}=e;return(0,jsx_runtime_namespaceObject.jsx)("li",{children:(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:a?t:o,placement:i,withoutContainer:!a,children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.MenuItem,{...s,disabled:a,title:n,component:r})},n)})},MainAction=({action:e,onActionClick:t,tooltipPlacement:a,isDisabled:r})=>{if("actions"in e){let{icon:n,disabled:i,disabledReason:o,name:s,actions:l}=e;return(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:o||s,placement:a,withoutContainer:!(r||i),children:(0,jsx_runtime_namespaceObject.jsx)(IconDropdownButton,{icon:n,variant:"text",disabled:r||i,children:l.map(({name:e,onClick:r,...n})=>(0,external_react_namespaceObject.createElement)(MenuItem,{...n,key:e,tooltipPlacement:a,onClick:t(r)},e))})},s)}let{onClick:n,name:i,icon:o,disabledReason:s,disabled:l,loading:c,isBlockingOperation:p,...
|
|
110
|
+
`,Tooltip=e=>{let{title:t,placement:a="top",size:r=constants_TooltipSizes.MEDIUM,withoutContainer:n=!0,children:i,...o}=e;return(0,jsx_runtime_namespaceObject.jsx)(StyledTooltip,{title:t,size:r,placement:a,arrow:!0,...o,children:n?i:(0,jsx_runtime_namespaceObject.jsx)(styles_ContentWrapper,{children:i})})},MenuItem=e=>{let{disabledReason:t,disabled:a,component:r="div",title:n,tooltipPlacement:i="left",note:o,...s}=e;return(0,jsx_runtime_namespaceObject.jsx)("li",{children:(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:a?t:o,placement:i,withoutContainer:!a,children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.MenuItem,{...s,disabled:a,title:n,component:r})},n)})},MainAction=({action:e,onActionClick:t,tooltipPlacement:a,isDisabled:r})=>{if("actions"in e){let{icon:n,disabled:i,disabledReason:o,name:s,actions:l}=e;return(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:o||s,placement:a,withoutContainer:!(r||i),children:(0,jsx_runtime_namespaceObject.jsx)(IconDropdownButton,{icon:n,variant:"text",disabled:r||i,children:l.map(({name:e,onClick:r,...n})=>(0,external_react_namespaceObject.createElement)(MenuItem,{...n,key:e,tooltipPlacement:a,onClick:t(r)},e))})},s)}let{onClick:n,name:i,icon:o,disabledReason:s,disabled:l,loading:c,isBlockingOperation:p,...m}=e,u=!c&&(s||i);return(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:u,placement:a,withoutContainer:!(r||l),children:(0,jsx_runtime_namespaceObject.jsx)(IconButton,{disabled:r||l,...m,variant:"text",onClick:t(n),children:o})},i)},SecondaryActions=({actions:e,onActionClick:t,tooltipPlacement:a,isDisabled:r=!1})=>(0,jsx_runtime_namespaceObject.jsx)(IconDropdownButton,{icon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.EllipsisVertical,{}),variant:"text",disabled:r,children:e.map(e=>{let{onClick:r,name:n}=e;return(0,external_react_namespaceObject.createElement)(MenuItem,{...e,key:n,tooltipPlacement:a,onClick:t(r)},n)})}),Wrapper=(0,material_namespaceObject.styled)("div")`
|
|
111
111
|
display: inline-flex;
|
|
112
112
|
align-items: center;
|
|
113
113
|
`,useLogic_useLogic_useLogic=({actions:e,row:t})=>{let{main:a,secondary:r}=e,n=a.some(e=>!("actions"in e)&&e?.isBlockingOperation&&e?.loading),i=(0,external_react_namespaceObject.useCallback)(e=>()=>{e?.(t)},[t]);return{isSecondaryActionsAvailable:r&&r.length>=1,handleActionClick:i,handleWrapperClick:e=>{e.stopPropagation()},isDisabledAction:n}},TOOLTIP_PLACEMENT={mainAction:"top",secondaryAction:"left"},ActionCell=e=>{let{isSecondaryActionsAvailable:t,handleActionClick:a,handleWrapperClick:r,isDisabledAction:n}=useLogic_useLogic_useLogic(e),{actions:i}=e,{main:o=[],secondary:s=[]}=i;return(0,jsx_runtime_namespaceObject.jsxs)(Wrapper,{onClick:r,children:[o.map(e=>(0,jsx_runtime_namespaceObject.jsx)(MainAction,{tooltipPlacement:TOOLTIP_PLACEMENT.mainAction,onActionClick:a,action:e,isDisabled:n},e.name)),t&&(0,jsx_runtime_namespaceObject.jsx)(SecondaryActions,{isDisabled:n,actions:s,tooltipPlacement:TOOLTIP_PLACEMENT.secondaryAction,onActionClick:a})]})},DefaultIcon=({...e})=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.SvgIcon,{viewBox:"0 0 14 14",...e,children:[(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H11C12.6569 0 14 1.34315 14 3V11C14 12.6569 12.6569 14 11 14H3C1.34315 14 0 12.6569 0 11V3Z"}),(0,jsx_runtime_namespaceObject.jsx)("path",{className:"MuiSvgIcon-border",fillRule:"evenodd",clipRule:"evenodd",d:"M11 2H3C2.44772 2 2 2.44772 2 3V11C2 11.5523 2.44772 12 3 12H11C11.5523 12 12 11.5523 12 11V3C12 2.44772 11.5523 2 11 2ZM3 0C1.34315 0 0 1.34315 0 3V11C0 12.6569 1.34315 14 3 14H11C12.6569 14 14 12.6569 14 11V3C14 1.34315 12.6569 0 11 0H3Z"})]}),CheckedIcon=({...e})=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.SvgIcon,{viewBox:"0 0 14 14",...e,children:[(0,jsx_runtime_namespaceObject.jsx)("rect",{width:"14",height:"14",rx:"3"}),(0,jsx_runtime_namespaceObject.jsx)("path",{className:"MuiSvgIcon-mark",fillRule:"evenodd",clipRule:"evenodd",d:"M4.71402 6.30066C4.62206 6.20534 4.51205 6.12931 4.39042 6.07701C4.26879 6.0247 4.13797 5.99717 4.0056 5.99602C3.87323 5.99487 3.74195 6.02012 3.61943 6.0703C3.49691 6.12048 3.3856 6.19458 3.292 6.28829C3.19839 6.38199 3.12437 6.49342 3.07424 6.61607C3.02411 6.73872 2.99889 6.87013 3.00004 7.00265C3.00119 7.13516 3.02869 7.26612 3.08094 7.38787C3.13319 7.50963 3.20914 7.61976 3.30435 7.71182L5.29823 9.7078C5.48518 9.8949 5.73871 10 6.00306 10C6.26741 10 6.52094 9.8949 6.7079 9.7078L10.6956 5.71584C10.7909 5.62377 10.8668 5.51365 10.9191 5.39189C10.9713 5.27013 10.9988 5.13918 11 5.00666C11.0011 4.87415 10.9759 4.74274 10.9258 4.62009C10.8756 4.49744 10.8016 4.38601 10.708 4.29231C10.6144 4.1986 10.5031 4.1245 10.3806 4.07432C10.258 4.02414 10.1268 3.99889 9.9944 4.00004C9.86203 4.00119 9.73121 4.02872 9.60958 4.08102C9.48795 4.13333 9.37794 4.20936 9.28598 4.30468L6.00306 7.59106L4.71402 6.30066V6.30066Z"})]}),IndeterminateIcon=({...e})=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.SvgIcon,{viewBox:"0 0 14 14",...e,children:[(0,jsx_runtime_namespaceObject.jsx)("rect",{width:"14",height:"14",rx:"3"}),(0,jsx_runtime_namespaceObject.jsx)("path",{className:"MuiSvgIcon-mark",d:"M10 6H4C3.44772 6 3 6.44772 3 7C3 7.55228 3.44772 8 4 8H10C10.5523 8 11 7.55228 11 7C11 6.44772 10.5523 6 10 6Z"})]}),getErrorStyles=e=>(0,material_namespaceObject.css)`
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
width: 100%;
|
|
188
188
|
|
|
189
189
|
white-space: nowrap;
|
|
190
|
-
`,external_react_use_namespaceObject=require("react-use"),useOverflowed=e=>{let t=(0,external_react_namespaceObject.useRef)(null),a=e&&"function"!=typeof e?e:t,[r,n]=(0,external_react_namespaceObject.useState)(!1),i=(0,external_react_use_namespaceObject.useFirstMountState)(),o=([{target:e,contentRect:t}])=>{let a=Math.round(t.height)<e.scrollHeight,r=e.scrollWidth>Math.round(t.width);n(a||r)};return(0,external_react_namespaceObject.useLayoutEffect)(()=>{if(a?.current){let e=a.current,t={target:e,contentRect:e.getBoundingClientRect()};if(!i){let t=new ResizeObserver((0,material_namespaceObject.debounce)(o,500));return t.observe(e),()=>t.unobserve(e)}o([t])}},[a.current]),{isOverflowed:r,ref:a}},truncateString=(e,t)=>({firstPartLabel:t.slice(0,-e),secondPartLabel:t.slice(-e)}),OverflowTypography_useLogic_useLogic_useLogic=({children:e,visibleLastSymbolsCount:t,ref:a})=>{let{ref:r,isOverflowed:n}=useOverflowed(a),i=e&&"string"==typeof e,{firstPartLabel:o,secondPartLabel:s}=i&&n&&t?truncateString(t,e):{firstPartLabel:"",secondPartLabel:""};return{isTruncatedStringVisible:i&&n&&!!t,isOverflowed:n,ref:r,firstPartLabel:o,secondPartLabel:s}},DEFAULT_ROWS_COUNT=1,OverflowTypography=e=>{let{ref:t,isOverflowed:a,secondPartLabel:r,firstPartLabel:n,isTruncatedStringVisible:i}=OverflowTypography_useLogic_useLogic_useLogic(e),{tooltipProps:o,children:s,rowsCount:l=DEFAULT_ROWS_COUNT,visibleLastSymbolsCount:c,align:p="left",...u}=e,m={...u,ref:t,align:p,children:s,rowsCount:l,hasMultipleRows:l>DEFAULT_ROWS_COUNT};return i?(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:s,disableInteractive:!0,...o,children:(0,jsx_runtime_namespaceObject.jsxs)(styles_Wrapper,{$align:p,children:[(0,jsx_runtime_namespaceObject.jsx)(StyledTypography,{component:"span",ref:t,hasMultipleRows:!1,rowsCount:1,...u,children:n}),(0,jsx_runtime_namespaceObject.jsx)(Typography,{...u,component:"span",children:r})]})}):s&&a?(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:s,disableInteractive:!0,...o,children:(0,jsx_runtime_namespaceObject.jsx)(StyledTypography,{...m})}):(0,jsx_runtime_namespaceObject.jsx)(StyledTypography,{...m})},material_styles_namespaceObject=require("@mui/material/styles"),external_remeda_namespaceObject=require("remeda"),defaultBreakpoints={values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},MuiAlert={styleOverrides:{root:({theme:e})=>({fontWeight:"400",padding:e.spacing(3),".MuiAlert-message > *:last-child:not(:empty):not(.MuiTypography-root)":{padding:e.spacing(3,0)},[e.breakpoints.up("sm")]:{padding:e.spacing(2,4),".MuiAlert-message > *:last-child:not(:empty):not(.MuiTypography-root)":{padding:0}}}),filledSuccess:({theme:e})=>({backgroundColor:e.palette.success.light,color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.green["900"]}}),filledError:({theme:e})=>({backgroundColor:e.palette.error.light,color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.red["900"]}}),filledWarning:({theme:e})=>({backgroundColor:e.palette.warning.light,color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.yellow["900"]}}),filledInfo:({theme:e})=>({backgroundColor:e.palette.primary["100"],color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.primary["900"]}}),action:({theme:e})=>({svg:{color:`${e.palette.text.primary} !important`}})}};var enums_AutocompleteSizes=function(e){return e.medium="medium",e.small="small",e}({});let MuiAutocomplete={styleOverrides:{inputRoot:({theme:e,ownerState:{size:t}})=>({paddingTop:`${e.spacing(1)} !important`,paddingBottom:`${e.spacing(1)} !important`,paddingLeft:`${e.spacing(1)} !important`,minHeight:t===enums_AutocompleteSizes.small?"32px":"40px"}),input:({theme:e})=>({padding:"0 !important",paddingLeft:`${e.spacing(1)} !important`}),popupIndicator:({theme:e})=>({borderRadius:e.shape.small,display:"flex",alignItems:"center",width:32,height:32}),endAdornment:()=>({display:"flex",alignItems:"center",justifyContent:"flex-end",top:"calc(50% - 16px)"}),paper:({theme:e})=>({marginTop:e.spacing(2)}),noOptions:({theme:e})=>({padding:e.spacing(6,0,6,3),color:e.palette.grey["500"]}),clearIndicator:({theme:e})=>({width:32,height:32,padding:0,color:e.palette.primary.contrastText,"::before":{content:'""',position:"absolute",top:"50%",left:"50%",width:"0.6em",height:"0.6em",backgroundColor:e.palette.grey["500"],transform:"translate(-50%, -50%)",borderRadius:"50%"},".MuiSvgIcon-root":{position:"absolute",top:"50%",left:"50%",width:"0.6em",height:"0.6em",transform:"translate(-50%, -50%)",zIndex:1}}),loading:({theme:e})=>({display:"flex",justifyContent:"center",padding:e.spacing(6,0,6,0)})}},MuiButton_getValue=({type:e,values:t,defaultValue:a})=>e&&t[e]||a,MuiButton_getButtonHeight=e=>MuiButton_getValue({type:e.size,values:{[enums_ButtonSizes.Large]:"40px"},defaultValue:"32px"}),MuiButton_getButtonHeightMobile=e=>MuiButton_getValue({type:e.size,values:{[enums_ButtonSizes.Small]:"36px"},defaultValue:"48px"}),getButtonPadding=e=>MuiButton_getValue({type:e.size,values:{[enums_ButtonSizes.Large]:e.theme.spacing(2,4,2,4)},defaultValue:e.theme.spacing(1,3,1,3)}),getButtonPaddingMobile=e=>e.variant===enums_ButtonVariants.Link?"0":MuiButton_getValue({type:e.size,values:{[enums_ButtonSizes.Small]:e.theme.spacing(2,3)},defaultValue:e.theme.spacing(4,3)}),getButtonColor=({theme:e,variant:t,color:a,buttonState:r,selected:n})=>{let i={selected:{default:e.palette.grey["900"],hover:e.palette.grey["700"],active:e.palette.grey["800"],focus:e.palette.grey["900"]},light:{error:{default:e.palette.red["900"],hover:e.palette.red["900"],active:e.palette.red["800"],focus:e.palette.red["900"]},success:{default:e.palette.green["900"],hover:e.palette.green["900"],active:e.palette.green["800"],focus:e.palette.green["900"]},primary:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},warning:{default:e.palette.yellow["900"],hover:e.palette.yellow["900"],active:e.palette.yellow["800"],focus:e.palette.yellow["900"]}},contained:e.palette.primary.contrastText,text:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},link:{default:e.palette.primary["800"],hover:e.palette.primary["700"],active:e.palette.primary["900"],focus:e.palette.primary["800"]}};return n?t!==enums_ButtonVariants.Link?e.palette.primary.contrastText:i.selected[r]:t===enums_ButtonVariants.Contained?i.contained:t===enums_ButtonVariants.Light&&a?i.light[a][r]:t===enums_ButtonVariants.Text?i.text[r]:i.link[r]},getButtonBackgroundColor=({selected:e,color:t,variant:a,buttonState:r,theme:n})=>{let i={selected:{default:n.palette.grey["900"],hover:n.palette.grey["700"],active:n.palette.grey["800"],focus:n.palette.grey["900"]},light:{error:{default:n.palette.red["100"],hover:n.palette.red["200"],active:n.palette.red["100"],focus:n.palette.red["100"]},success:{default:n.palette.green["100"],hover:n.palette.green["200"],active:n.palette.green["100"],focus:n.palette.green["100"]},primary:{default:n.palette.grey["100"],hover:n.palette.grey["200"],active:n.palette.primary["100"],focus:n.palette.grey["100"]},warning:{default:n.palette.yellow["100"],hover:n.palette.yellow["200"],active:n.palette.yellow["100"],focus:n.palette.yellow["100"]}},contained:{error:{default:n.palette.red["800"],hover:n.palette.red["700"],active:n.palette.red["900"],focus:n.palette.red["800"]},success:{default:n.palette.green["800"],hover:n.palette.green["700"],active:n.palette.green["900"],focus:n.palette.green["800"]},primary:{default:n.palette.primary["800"],hover:n.palette.primary["700"],active:n.palette.primary["900"],focus:n.palette.primary["800"]},warning:{default:n.palette.yellow["800"],hover:n.palette.yellow["700"],active:n.palette.yellow["900"],focus:n.palette.yellow["800"]}},text:{default:"transparent",hover:n.palette.grey["200"],active:n.palette.primary["100"],focus:"transparent"},link:"transparent"};return e&&a!==enums_ButtonVariants.Link?i.selected[r]:a===enums_ButtonVariants.Light&&t?i.light[t][r]:a===enums_ButtonVariants.Contained&&t?i.contained[t][r]:a===enums_ButtonVariants.Text?i.text[r]:i.link},getButtonDisabledBackgroundColor=({theme:e,variant:t})=>enums_ButtonVariants.Link===t||enums_ButtonVariants.Text===t?"transparent":e.palette.grey["200"],MuiButton={defaultProps:{disableRipple:!0},styleOverrides:{root({ownerState:e,theme:t}){let a=e.variant,r=e.color,n=e.selected,i=e.size;return{height:MuiButton_getButtonHeight({size:i}),padding:getButtonPadding({theme:t,size:i}),[t.breakpoints.down("sm")]:{height:MuiButton_getButtonHeightMobile({size:i}),padding:getButtonPaddingMobile({size:i,theme:t,variant:a}),whiteSpace:"nowrap"},color:getButtonColor({selected:n,theme:t,variant:a,color:r,buttonState:enums_ButtonStates.Default}),fontWeight:t.typography.button.fontWeight,fontSize:t.typography.button.fontSize,backgroundColor:getButtonBackgroundColor({selected:n,theme:t,color:r,variant:a,buttonState:enums_ButtonStates.Default}),border:"none",borderRadius:t.shape.small,"&:hover":{color:getButtonColor({selected:n,theme:t,variant:a,color:r,buttonState:enums_ButtonStates.Hover}),backgroundColor:getButtonBackgroundColor({selected:n,color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Hover}),boxShadow:"none"},"&:active":{color:getButtonColor({selected:n,color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Active}),backgroundColor:getButtonBackgroundColor({selected:n,color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Active}),outline:"none"},"&:focus-visible":{color:getButtonColor({selected:n,theme:t,variant:a,color:r,buttonState:enums_ButtonStates.Focus}),backgroundColor:getButtonBackgroundColor({selected:n,color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Focus}),outline:`2px solid ${t.palette.primary["400"]}`,boxShadow:"none"},[`&.${material_namespaceObject.buttonClasses.disabled}`]:{color:t.palette.grey["500"],backgroundColor:getButtonDisabledBackgroundColor({theme:t,variant:a}),pointerEvents:"none",cursor:"unset"},[`&.${LOADING_BUTTON_CLASSNAME}`]:{color:"transparent",backgroundColor:getButtonBackgroundColor({color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Default})},gap:t.spacing(1),textTransform:"none",boxShadow:"none",minWidth:"auto","&.MuiButton-root .MuiButton-startIcon":{marginRight:t.spacing(1)},"&.MuiButton-root .MuiButton-endIcon":{marginLeft:t.spacing(1)},"&.MuiButton-root .MuiSvgIcon-root":{fontSize:"24px"}}}}},MuiButtonBase={defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:e})=>({fontFamily:e.typography.fontFamily})}},MuiCircularProgress_MuiCircularProgress={styleOverrides:{root({ownerState:e,theme:t}){let{"data-color":a}=e;return{color:"primary"===a?t.palette.grey[900]:t.palette.primary.contrastText}}}},MuiCircularProgress=null,MuiDialog={styleOverrides:{paper:({theme:e})=>({borderRadius:e.shape.small})}},MuiDialogActions={styleOverrides:{root:({theme:e})=>({padding:e.spacing(4,6,6,6),">div":{width:"100%"}})}},MuiDialogContent={styleOverrides:{root:({theme:e})=>({padding:e.spacing(0,6)})}},MuiDialogTitle={styleOverrides:{root:({theme:e})=>({padding:e.spacing(6,6,4),fontSize:e.typography.h4.fontSize,fontWeight:e.typography.h4.fontWeight,lineHeight:e.typography.h4.lineHeight,display:"flex",justifyContent:"space-between",alignItems:"center",[`& .${material_namespaceObject.buttonClasses.root}`]:{marginLeft:e.spacing(4),color:e.palette.grey[800]}})}},MuiDrawer={styleOverrides:{root:({theme:e})=>({[`&.${material_namespaceObject.drawerClasses.root} > .${material_namespaceObject.backdropClasses.root}`]:{backgroundColor:e.palette.background.modalShadow}})}},MuiFormHelperText={styleOverrides:{root:({theme:e})=>({display:"flex",minHeight:e.typography.small.lineHeight,fontSize:e.typography.small.fontSize,margin:e.spacing(1,0,0),lineHeight:e.typography.small.lineHeight,"&.Mui-error":{color:e.palette.error.dark}})}},components_MuiFormHelperText=null,MuiFormLabel_MuiFormLabel={styleOverrides:{root:()=>({position:"relative",transform:"none"})}},MuiFormLabel=null,MuiInputLabel={defaultProps:{shrink:!0},styleOverrides:{root:({theme:e})=>({position:"relative",transform:"none",color:e.palette.grey[700],fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),lineHeight:e.typography.pxToRem(16),marginBottom:e.spacing(1),"&.Mui-focused":{color:e.palette.grey[700]},"&.Mui-error":{color:e.palette.grey[700]},"&.Mui-disabled":{color:e.palette.grey[600]}})}},components_MuiInputLabel=null,MuiLinearProgress={styleOverrides:{root:({theme:e})=>({width:"100%",borderRadius:"4px",backgroundColor:e.palette.grey[300]}),barColorPrimary:({theme:e})=>({backgroundColor:e.palette.primary["800"]})}},components_MuiLinearProgress=null,MuiListItemButton={styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{color:e.palette.primary[800],backgroundColor:e.palette.grey[100]}})}},MuiListItemText={styleOverrides:{root:()=>({overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"})}},MuiMenu_MuiMenu={defaultProps:{autoFocus:!1},styleOverrides:{paper:({theme:e})=>({marginTop:e.spacing(2),[`&&.${material_namespaceObject.paperClasses.root}`]:{borderRadius:e.shape.small,boxShadow:e.elevation[200]}}),list:({theme:e})=>({[`&&.${material_namespaceObject.listClasses.root}`]:{padding:0},[`&&.${material_namespaceObject.listClasses.padding}`]:{padding:e.spacing(1,0)}})}},MuiMenu=null,MuiMenuItem={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,2,2,3),"&:hover":{backgroundColor:e.palette.background.elementHover},[`&.${material_namespaceObject.menuItemClasses.selected}`]:{background:`linear-gradient(90deg, ${e.palette.primary.main} 0, ${e.palette.primary.main} 4px, ${e.palette.primary["100"]} 4px)`},[`&.${material_namespaceObject.menuItemClasses.gutters}`]:{minHeight:e.spacing(8),padding:e.spacing(1,3,1,3)},[e.breakpoints.down("sm")]:{padding:e.spacing(3,3,4,3),[`&.${material_namespaceObject.menuItemClasses.gutters}`]:{padding:e.spacing(3,3,4,3)}}})}},components_MuiMenuItem=null,MuiOutlinedInput_MuiOutlinedInput={defaultProps:{notched:!1},styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),borderRadius:e.shape.small,color:e.palette.grey[900],background:e.palette.background.element,"&:hover":{background:e.palette.background.elementHover,"&.Mui-disabled":{background:e.palette.background.element}},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.grey[300]},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.background.element},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.dark},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary[700]}}),input:({theme:e})=>({height:20,padding:e.spacing(2.5,2),borderRadius:e.shape.small,"&:disabled":{background:e.palette.background.element},"&::placeholder":{opacity:1,color:e.palette.grey[600]}}),inputSizeSmall:({theme:e})=>({paddingBlock:e.spacing(1.5),paddingInline:e.spacing(2)}),notchedOutline:({theme:e})=>({borderWidth:2,borderColor:e.palette.grey[300]}),multiline:()=>({padding:0}),inputMultiline:({theme:e})=>({padding:e.spacing(2)})}},MuiOutlinedInput=null,MuiPaginationItem={styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.grey["900"],color:e.palette.primary.contrastText}})}},getShadow=(e,t)=>0===e?"none":1===e?t.elevation["200"]:t.elevation["300"],MuiPaper={styleOverrides:{elevation:({theme:e,ownerState:{elevation:t}})=>({boxShadow:getShadow(t,e)}),outlined:({theme:e})=>({border:`1px solid ${e.palette.grey[300]}`})}},MuiStep={styleOverrides:{horizontal:({theme:e})=>({"&:first-of-type":{paddingLeft:0},padding:e.spacing(0,2.5)})}},MuiStepConnector={styleOverrides:{lineHorizontal:({theme:e})=>({borderTopWidth:2,borderColor:e.palette.grey[300]})}},MuiStepLabel={styleOverrides:{label({theme:e}){let{active:t,completed:a,error:r}=material_namespaceObject.stepLabelClasses;return{fontSize:e.typography.small.fontSize,lineHeight:e.typography.small.lineHeight,fontWeight:e.typography.small.fontWeight,color:e.palette.grey[700],[`&.${t}, &.${a}, &.${r}`]:{color:e.palette.grey[900],fontSize:e.typography.small.fontSize,lineHeight:e.typography.small.lineHeight,fontWeight:e.typography.small.fontWeight}}},iconContainer:({theme:e})=>({paddingRight:e.spacing(2.5)})}},prepareColorToUrl=e=>e.replace("#","%23"),getCheckBackgroundImage=e=>{let t=prepareColorToUrl(e);return`url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M2 6L4.5 8.5L10 3.5" stroke="${t}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg>')`},getCrossBackgroundImage=e=>{let t=prepareColorToUrl(e);return`url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M6.00005 5.41087L3.79463 3.20545C3.71605 3.12955 3.6108 3.08755 3.50155 3.0885C3.3923 3.08945 3.28779 3.13327 3.21054 3.21053C3.13329 3.28778 3.08947 3.39228 3.08852 3.50153C3.08757 3.61078 3.12957 3.71603 3.20546 3.79462L5.41088 6.00003L3.20546 8.20545C3.12957 8.28403 3.08757 8.38929 3.08852 8.49853C3.08947 8.60778 3.13329 8.71229 3.21054 8.78954C3.28779 8.86679 3.3923 8.91062 3.50155 8.91156C3.6108 8.91251 3.71605 8.87052 3.79463 8.79462L6.00005 6.5892L8.20546 8.79462C8.28405 8.87052 8.3893 8.91251 8.49855 8.91156C8.6078 8.91062 8.7123 8.86679 8.78956 8.78954C8.86681 8.71229 8.91063 8.60778 8.91158 8.49853C8.91253 8.38929 8.87053 8.28403 8.79463 8.20545L6.58921 6.00003L8.79463 3.79462C8.83443 3.75618 8.86617 3.7102 8.88801 3.65937C8.90984 3.60853 8.92134 3.55386 8.92182 3.49853C8.9223 3.44321 8.91176 3.38834 8.89081 3.33714C8.86986 3.28593 8.83892 3.23941 8.7998 3.20029C8.76067 3.16116 8.71415 3.13023 8.66294 3.10927C8.61174 3.08832 8.55687 3.07778 8.50155 3.07826C8.44622 3.07874 8.39155 3.09024 8.34071 3.11207C8.28988 3.13391 8.2439 3.16565 8.20546 3.20545L6.00005 5.41087Z" fill="${t}" stroke="${t}" stroke-width="1.5" /></svg>')`},MuiSwitch={styleOverrides:{root:({theme:e})=>({width:"fit-content",height:"fit-content",padding:e.spacing(1),"& .Mui-checked.MuiSwitch-switchBase":{padding:0,"& + .MuiSwitch-track":{backgroundColor:e.palette.primary.main[800],opacity:1}},"& :not(.Mui-checked).MuiSwitch-switchBase":{padding:0,"& + .MuiSwitch-track":{backgroundColor:e.palette.grey[700],opacity:1}},"& .Mui-checked:hover + .MuiSwitch-track":{backgroundColor:e.palette.primary[700]},"& :not(.Mui-checked):hover + .MuiSwitch-track":{backgroundColor:e.palette.grey[500]},"& .MuiButtonBase-root.MuiSwitch-switchBase.Mui-disabled":{"& + .MuiSwitch-track":{backgroundColor:e.palette.grey[200],"&::before":{backgroundImage:getCheckBackgroundImage(e.palette.grey[500])},"&::after":{backgroundImage:getCrossBackgroundImage(e.palette.grey[500])}}},"& :not(.Mui-disabled):active + .MuiSwitch-track":{border:`2px solid ${e.palette.primary[400]}`}}),switchBase:{padding:0,"&:hover, &.Mui-checked:hover":{backgroundColor:"transparent"}},track:({theme:e})=>({borderRadius:10,boxSizing:"border-box","&::before, &::after":{position:"absolute",top:"50%",transform:"translateY(-50%)",content:'""',backgroundSize:"cover"},"&::before":{left:e.spacing(2),backgroundImage:getCheckBackgroundImage(e.palette.background.default)},"&::after":{right:e.spacing(2),backgroundImage:getCrossBackgroundImage(e.palette.background.default)}}),thumb:({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:"none",margin:e.spacing(1.5)}),sizeSmall:{"& .MuiSwitch-track":{width:32,height:16,"&::before, &::after":{width:8,height:8}},"& .MuiSwitch-thumb":{width:12,height:12}},sizeMedium:{"& .MuiSwitch-track":{width:40,height:20,"&::before, &::after":{width:12,height:12}},"& .MuiSwitch-thumb":{width:16,height:16}}}},MuiTab={styleOverrides:{root:({theme:e})=>({minWidth:0,padding:e.spacing(0,2),textTransform:"none"})}},MuiTableCell={styleOverrides:{root:({theme:e})=>({border:"none",padding:e.spacing(1,4),height:44})}},MuiTableHead={styleOverrides:{root:({theme:e})=>({th:{borderBottom:`2px solid ${e.palette.grey["300"]}`}})}},MuiTableRow={styleOverrides:{root:({theme:e})=>({"&.MuiTableRow-hover:hover":{backgroundColor:e.palette.background.elementHover,cursor:"pointer"},"&.Mui-selected":{backgroundColor:e.palette.primary["100"]}})}},MuiTabs={styleOverrides:{root:()=>({minHeight:38,height:38}),indicator:({theme:e})=>({borderRadius:e.shape.small})}},MuiTextField={styleOverrides:{root:({theme:e})=>({[`& .${material_namespaceObject.inputBaseClasses.adornedStart}`]:{paddingLeft:e.spacing(2)},[`& .${material_namespaceObject.inputBaseClasses.adornedEnd}`]:{paddingRight:e.spacing(2)},[`& .${material_namespaceObject.inputBaseClasses.inputAdornedStart}`]:{paddingLeft:e.spacing(1)},[`& .${material_namespaceObject.outlinedInputClasses.notchedOutline}`]:{top:-4.5}})}},MuiToggleButton={styleOverrides:{root:({theme:e})=>({textTransform:"initial",padding:e.spacing(1,2)})}},MuiToggleButtonGroup={defaultProps:{size:"small",color:"primary"}},MuiTypography={variants:[{props:{variant:"button"},style:{textTransform:"capitalize"}}],defaultProps:{variantMapping:{link:"a",code:"code"}}},components_MuiTypography=null,getFontFaces=e=>`
|
|
190
|
+
`,external_react_use_namespaceObject=require("react-use"),useOverflowed=e=>{let t=(0,external_react_namespaceObject.useRef)(null),a=e&&"function"!=typeof e?e:t,[r,n]=(0,external_react_namespaceObject.useState)(!1),i=(0,external_react_use_namespaceObject.useFirstMountState)(),o=([{target:e,contentRect:t}])=>{let a=Math.round(t.height)<e.scrollHeight,r=e.scrollWidth>Math.round(t.width);n(a||r)};return(0,external_react_namespaceObject.useLayoutEffect)(()=>{if(a?.current){let e=a.current,t={target:e,contentRect:e.getBoundingClientRect()};if(!i){let t=new ResizeObserver((0,material_namespaceObject.debounce)(o,500));return t.observe(e),()=>t.unobserve(e)}o([t])}},[a.current]),{isOverflowed:r,ref:a}},truncateString=(e,t)=>({firstPartLabel:t.slice(0,-e),secondPartLabel:t.slice(-e)}),OverflowTypography_useLogic_useLogic_useLogic=({children:e,visibleLastSymbolsCount:t,ref:a})=>{let{ref:r,isOverflowed:n}=useOverflowed(a),i=e&&"string"==typeof e,{firstPartLabel:o,secondPartLabel:s}=i&&n&&t?truncateString(t,e):{firstPartLabel:"",secondPartLabel:""};return{isTruncatedStringVisible:i&&n&&!!t,isOverflowed:n,ref:r,firstPartLabel:o,secondPartLabel:s}},DEFAULT_ROWS_COUNT=1,OverflowTypography=e=>{let{ref:t,isOverflowed:a,secondPartLabel:r,firstPartLabel:n,isTruncatedStringVisible:i}=OverflowTypography_useLogic_useLogic_useLogic(e),{tooltipProps:o,children:s,rowsCount:l=DEFAULT_ROWS_COUNT,visibleLastSymbolsCount:c,align:p="left",...m}=e,u={...m,ref:t,align:p,children:s,rowsCount:l,hasMultipleRows:l>DEFAULT_ROWS_COUNT};return i?(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:s,disableInteractive:!0,...o,children:(0,jsx_runtime_namespaceObject.jsxs)(styles_Wrapper,{$align:p,children:[(0,jsx_runtime_namespaceObject.jsx)(StyledTypography,{component:"span",ref:t,hasMultipleRows:!1,rowsCount:1,...m,children:n}),(0,jsx_runtime_namespaceObject.jsx)(Typography,{...m,component:"span",children:r})]})}):s&&a?(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:s,disableInteractive:!0,...o,children:(0,jsx_runtime_namespaceObject.jsx)(StyledTypography,{...u})}):(0,jsx_runtime_namespaceObject.jsx)(StyledTypography,{...u})},material_styles_namespaceObject=require("@mui/material/styles"),external_remeda_namespaceObject=require("remeda"),defaultBreakpoints={values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},MuiAlert={styleOverrides:{root:({theme:e})=>({fontWeight:"400",padding:e.spacing(3),".MuiAlert-message > *:last-child:not(:empty):not(.MuiTypography-root)":{padding:e.spacing(3,0)},[e.breakpoints.up("sm")]:{padding:e.spacing(2,4),".MuiAlert-message > *:last-child:not(:empty):not(.MuiTypography-root)":{padding:0}}}),filledSuccess:({theme:e})=>({backgroundColor:e.palette.success.light,color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.green["900"]}}),filledError:({theme:e})=>({backgroundColor:e.palette.error.light,color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.red["900"]}}),filledWarning:({theme:e})=>({backgroundColor:e.palette.warning.light,color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.yellow["900"]}}),filledInfo:({theme:e})=>({backgroundColor:e.palette.primary["100"],color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.primary["900"]}}),action:({theme:e})=>({svg:{color:`${e.palette.text.primary} !important`}})}};var enums_AutocompleteSizes=function(e){return e.medium="medium",e.small="small",e}({});let MuiAutocomplete={styleOverrides:{inputRoot:({theme:e,ownerState:{size:t}})=>({paddingTop:`${e.spacing(1)} !important`,paddingBottom:`${e.spacing(1)} !important`,paddingLeft:`${e.spacing(1)} !important`,minHeight:t===enums_AutocompleteSizes.small?"32px":"40px"}),input:({theme:e})=>({padding:"0 !important",paddingLeft:`${e.spacing(1)} !important`}),popupIndicator:({theme:e})=>({borderRadius:e.shape.small,display:"flex",alignItems:"center",width:32,height:32}),endAdornment:()=>({display:"flex",alignItems:"center",justifyContent:"flex-end",top:"calc(50% - 16px)"}),paper:({theme:e})=>({marginTop:e.spacing(2)}),noOptions:({theme:e})=>({padding:e.spacing(6,0,6,3),color:e.palette.grey["500"]}),clearIndicator:({theme:e})=>({width:32,height:32,padding:0,color:e.palette.primary.contrastText,"::before":{content:'""',position:"absolute",top:"50%",left:"50%",width:"0.6em",height:"0.6em",backgroundColor:e.palette.grey["500"],transform:"translate(-50%, -50%)",borderRadius:"50%"},".MuiSvgIcon-root":{position:"absolute",top:"50%",left:"50%",width:"0.6em",height:"0.6em",transform:"translate(-50%, -50%)",zIndex:1}}),loading:({theme:e})=>({display:"flex",justifyContent:"center",padding:e.spacing(6,0,6,0)})}},MuiButton_getValue=({type:e,values:t,defaultValue:a})=>e&&t[e]||a,MuiButton_getButtonHeight=e=>MuiButton_getValue({type:e.size,values:{[enums_ButtonSizes.Large]:"40px"},defaultValue:"32px"}),MuiButton_getButtonHeightMobile=e=>MuiButton_getValue({type:e.size,values:{[enums_ButtonSizes.Small]:"36px"},defaultValue:"48px"}),getButtonPadding=e=>MuiButton_getValue({type:e.size,values:{[enums_ButtonSizes.Large]:e.theme.spacing(2,4,2,4)},defaultValue:e.theme.spacing(1,3,1,3)}),getButtonPaddingMobile=e=>e.variant===enums_ButtonVariants.Link?"0":MuiButton_getValue({type:e.size,values:{[enums_ButtonSizes.Small]:e.theme.spacing(2,3)},defaultValue:e.theme.spacing(4,3)}),getButtonColor=({theme:e,variant:t,color:a,buttonState:r,selected:n})=>{let i={selected:{default:e.palette.grey["900"],hover:e.palette.grey["700"],active:e.palette.grey["800"],focus:e.palette.grey["900"]},light:{error:{default:e.palette.red["900"],hover:e.palette.red["900"],active:e.palette.red["800"],focus:e.palette.red["900"]},success:{default:e.palette.green["900"],hover:e.palette.green["900"],active:e.palette.green["800"],focus:e.palette.green["900"]},primary:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},warning:{default:e.palette.yellow["900"],hover:e.palette.yellow["900"],active:e.palette.yellow["800"],focus:e.palette.yellow["900"]}},contained:e.palette.primary.contrastText,text:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},link:{default:e.palette.primary["800"],hover:e.palette.primary["700"],active:e.palette.primary["900"],focus:e.palette.primary["800"]}};return n?t!==enums_ButtonVariants.Link?e.palette.primary.contrastText:i.selected[r]:t===enums_ButtonVariants.Contained?i.contained:t===enums_ButtonVariants.Light&&a?i.light[a][r]:t===enums_ButtonVariants.Text?i.text[r]:i.link[r]},getButtonBackgroundColor=({selected:e,color:t,variant:a,buttonState:r,theme:n})=>{let i={selected:{default:n.palette.grey["900"],hover:n.palette.grey["700"],active:n.palette.grey["800"],focus:n.palette.grey["900"]},light:{error:{default:n.palette.red["100"],hover:n.palette.red["200"],active:n.palette.red["100"],focus:n.palette.red["100"]},success:{default:n.palette.green["100"],hover:n.palette.green["200"],active:n.palette.green["100"],focus:n.palette.green["100"]},primary:{default:n.palette.grey["100"],hover:n.palette.grey["200"],active:n.palette.primary["100"],focus:n.palette.grey["100"]},warning:{default:n.palette.yellow["100"],hover:n.palette.yellow["200"],active:n.palette.yellow["100"],focus:n.palette.yellow["100"]}},contained:{error:{default:n.palette.red["800"],hover:n.palette.red["700"],active:n.palette.red["900"],focus:n.palette.red["800"]},success:{default:n.palette.green["800"],hover:n.palette.green["700"],active:n.palette.green["900"],focus:n.palette.green["800"]},primary:{default:n.palette.primary["800"],hover:n.palette.primary["700"],active:n.palette.primary["900"],focus:n.palette.primary["800"]},warning:{default:n.palette.yellow["800"],hover:n.palette.yellow["700"],active:n.palette.yellow["900"],focus:n.palette.yellow["800"]}},text:{default:"transparent",hover:n.palette.grey["200"],active:n.palette.primary["100"],focus:"transparent"},link:"transparent"};return e&&a!==enums_ButtonVariants.Link?i.selected[r]:a===enums_ButtonVariants.Light&&t?i.light[t][r]:a===enums_ButtonVariants.Contained&&t?i.contained[t][r]:a===enums_ButtonVariants.Text?i.text[r]:i.link},getButtonDisabledBackgroundColor=({theme:e,variant:t})=>enums_ButtonVariants.Link===t||enums_ButtonVariants.Text===t?"transparent":e.palette.grey["200"],MuiButton={defaultProps:{disableRipple:!0},styleOverrides:{root({ownerState:e,theme:t}){let a=e.variant,r=e.color,n=e.selected,i=e.size;return{height:MuiButton_getButtonHeight({size:i}),padding:getButtonPadding({theme:t,size:i}),[t.breakpoints.down("sm")]:{height:MuiButton_getButtonHeightMobile({size:i}),padding:getButtonPaddingMobile({size:i,theme:t,variant:a}),whiteSpace:"nowrap"},color:getButtonColor({selected:n,theme:t,variant:a,color:r,buttonState:enums_ButtonStates.Default}),fontWeight:t.typography.button.fontWeight,fontSize:t.typography.button.fontSize,backgroundColor:getButtonBackgroundColor({selected:n,theme:t,color:r,variant:a,buttonState:enums_ButtonStates.Default}),border:"none",borderRadius:t.shape.small,"&:hover":{color:getButtonColor({selected:n,theme:t,variant:a,color:r,buttonState:enums_ButtonStates.Hover}),backgroundColor:getButtonBackgroundColor({selected:n,color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Hover}),boxShadow:"none"},"&:active":{color:getButtonColor({selected:n,color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Active}),backgroundColor:getButtonBackgroundColor({selected:n,color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Active}),outline:"none"},"&:focus-visible":{color:getButtonColor({selected:n,theme:t,variant:a,color:r,buttonState:enums_ButtonStates.Focus}),backgroundColor:getButtonBackgroundColor({selected:n,color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Focus}),outline:`2px solid ${t.palette.primary["400"]}`,boxShadow:"none"},[`&.${material_namespaceObject.buttonClasses.disabled}`]:{color:t.palette.grey["500"],backgroundColor:getButtonDisabledBackgroundColor({theme:t,variant:a}),pointerEvents:"none",cursor:"unset"},[`&.${LOADING_BUTTON_CLASSNAME}`]:{color:"transparent",backgroundColor:getButtonBackgroundColor({color:r,variant:a,theme:t,buttonState:enums_ButtonStates.Default})},gap:t.spacing(1),textTransform:"none",boxShadow:"none",minWidth:"auto","&.MuiButton-root .MuiButton-startIcon":{marginRight:t.spacing(1)},"&.MuiButton-root .MuiButton-endIcon":{marginLeft:t.spacing(1)},"&.MuiButton-root .MuiSvgIcon-root":{fontSize:"24px"}}}}},MuiButtonBase={defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:e})=>({fontFamily:e.typography.fontFamily})}},MuiCircularProgress_MuiCircularProgress={styleOverrides:{root({ownerState:e,theme:t}){let{"data-color":a}=e;return{color:"primary"===a?t.palette.grey[900]:t.palette.primary.contrastText}}}},MuiCircularProgress=null,MuiDialog={styleOverrides:{paper:({theme:e})=>({borderRadius:e.shape.small})}},MuiDialogActions={styleOverrides:{root:({theme:e})=>({padding:e.spacing(4,6,6,6),">div":{width:"100%"}})}},MuiDialogContent={styleOverrides:{root:({theme:e})=>({padding:e.spacing(0,6)})}},MuiDialogTitle={styleOverrides:{root:({theme:e})=>({padding:e.spacing(6,6,4),fontSize:e.typography.h4.fontSize,fontWeight:e.typography.h4.fontWeight,lineHeight:e.typography.h4.lineHeight,display:"flex",justifyContent:"space-between",alignItems:"center",[`& .${material_namespaceObject.buttonClasses.root}`]:{marginLeft:e.spacing(4),color:e.palette.grey[800]}})}},MuiDrawer={styleOverrides:{root:({theme:e})=>({[`&.${material_namespaceObject.drawerClasses.root} > .${material_namespaceObject.backdropClasses.root}`]:{backgroundColor:e.palette.background.modalShadow}})}},MuiFormHelperText={styleOverrides:{root:({theme:e})=>({display:"flex",minHeight:e.typography.small.lineHeight,fontSize:e.typography.small.fontSize,margin:e.spacing(1,0,0),lineHeight:e.typography.small.lineHeight,"&.Mui-error":{color:e.palette.error.dark}})}},components_MuiFormHelperText=null,MuiFormLabel_MuiFormLabel={styleOverrides:{root:()=>({position:"relative",transform:"none"})}},MuiFormLabel=null,MuiInputLabel={defaultProps:{shrink:!0},styleOverrides:{root:({theme:e})=>({position:"relative",transform:"none",color:e.palette.grey[700],fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),lineHeight:e.typography.pxToRem(16),marginBottom:e.spacing(1),"&.Mui-focused":{color:e.palette.grey[700]},"&.Mui-error":{color:e.palette.grey[700]},"&.Mui-disabled":{color:e.palette.grey[600]}})}},components_MuiInputLabel=null,MuiLinearProgress={styleOverrides:{root:({theme:e})=>({width:"100%",borderRadius:"4px",backgroundColor:e.palette.grey[300]}),barColorPrimary:({theme:e})=>({backgroundColor:e.palette.primary["800"]})}},components_MuiLinearProgress=null,MuiListItemButton={styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{color:e.palette.primary[800],backgroundColor:e.palette.grey[100]}})}},MuiListItemText={styleOverrides:{root:()=>({overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"})}},MuiMenu_MuiMenu={defaultProps:{autoFocus:!1},styleOverrides:{paper:({theme:e})=>({marginTop:e.spacing(2),[`&&.${material_namespaceObject.paperClasses.root}`]:{borderRadius:e.shape.small,boxShadow:e.elevation[200]}}),list:({theme:e})=>({[`&&.${material_namespaceObject.listClasses.root}`]:{padding:0},[`&&.${material_namespaceObject.listClasses.padding}`]:{padding:e.spacing(1,0)}})}},MuiMenu=null,MuiMenuItem={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,2,2,3),"&:hover":{backgroundColor:e.palette.background.elementHover},[`&.${material_namespaceObject.menuItemClasses.selected}`]:{background:`linear-gradient(90deg, ${e.palette.primary.main} 0, ${e.palette.primary.main} 4px, ${e.palette.primary["100"]} 4px)`},[`&.${material_namespaceObject.menuItemClasses.gutters}`]:{minHeight:e.spacing(8),padding:e.spacing(1,3,1,3)},[e.breakpoints.down("sm")]:{padding:e.spacing(3,3,4,3),[`&.${material_namespaceObject.menuItemClasses.gutters}`]:{padding:e.spacing(3,3,4,3)}}})}},components_MuiMenuItem=null,MuiOutlinedInput_MuiOutlinedInput={defaultProps:{notched:!1},styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),borderRadius:e.shape.small,color:e.palette.grey[900],background:e.palette.background.element,"&:hover":{background:e.palette.background.elementHover,"&.Mui-disabled":{background:e.palette.background.element}},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.grey[300]},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.background.element},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.dark},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary[700]}}),input:({theme:e})=>({height:20,padding:e.spacing(2.5,2),borderRadius:e.shape.small,"&:disabled":{background:e.palette.background.element},"&::placeholder":{opacity:1,color:e.palette.grey[600]}}),inputSizeSmall:({theme:e})=>({paddingBlock:e.spacing(1.5),paddingInline:e.spacing(2)}),notchedOutline:({theme:e})=>({borderWidth:2,borderColor:e.palette.grey[300]}),multiline:()=>({padding:0}),inputMultiline:({theme:e})=>({padding:e.spacing(2)})}},MuiOutlinedInput=null,MuiPaginationItem={styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.grey["900"],color:e.palette.primary.contrastText}})}},getShadow=(e,t)=>0===e?"none":1===e?t.elevation["200"]:t.elevation["300"],MuiPaper={styleOverrides:{elevation:({theme:e,ownerState:{elevation:t}})=>({boxShadow:getShadow(t,e)}),outlined:({theme:e})=>({border:`1px solid ${e.palette.grey[300]}`})}},MuiStep={styleOverrides:{horizontal:({theme:e})=>({"&:first-of-type":{paddingLeft:0},padding:e.spacing(0,2.5)})}},MuiStepConnector={styleOverrides:{lineHorizontal:({theme:e})=>({borderTopWidth:2,borderColor:e.palette.grey[300]})}},MuiStepLabel={styleOverrides:{label({theme:e}){let{active:t,completed:a,error:r}=material_namespaceObject.stepLabelClasses;return{fontSize:e.typography.small.fontSize,lineHeight:e.typography.small.lineHeight,fontWeight:e.typography.small.fontWeight,color:e.palette.grey[700],[`&.${t}, &.${a}, &.${r}`]:{color:e.palette.grey[900],fontSize:e.typography.small.fontSize,lineHeight:e.typography.small.lineHeight,fontWeight:e.typography.small.fontWeight}}},iconContainer:({theme:e})=>({paddingRight:e.spacing(2.5)})}},prepareColorToUrl=e=>e.replace("#","%23"),getCheckBackgroundImage=e=>{let t=prepareColorToUrl(e);return`url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M2 6L4.5 8.5L10 3.5" stroke="${t}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg>')`},getCrossBackgroundImage=e=>{let t=prepareColorToUrl(e);return`url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M6.00005 5.41087L3.79463 3.20545C3.71605 3.12955 3.6108 3.08755 3.50155 3.0885C3.3923 3.08945 3.28779 3.13327 3.21054 3.21053C3.13329 3.28778 3.08947 3.39228 3.08852 3.50153C3.08757 3.61078 3.12957 3.71603 3.20546 3.79462L5.41088 6.00003L3.20546 8.20545C3.12957 8.28403 3.08757 8.38929 3.08852 8.49853C3.08947 8.60778 3.13329 8.71229 3.21054 8.78954C3.28779 8.86679 3.3923 8.91062 3.50155 8.91156C3.6108 8.91251 3.71605 8.87052 3.79463 8.79462L6.00005 6.5892L8.20546 8.79462C8.28405 8.87052 8.3893 8.91251 8.49855 8.91156C8.6078 8.91062 8.7123 8.86679 8.78956 8.78954C8.86681 8.71229 8.91063 8.60778 8.91158 8.49853C8.91253 8.38929 8.87053 8.28403 8.79463 8.20545L6.58921 6.00003L8.79463 3.79462C8.83443 3.75618 8.86617 3.7102 8.88801 3.65937C8.90984 3.60853 8.92134 3.55386 8.92182 3.49853C8.9223 3.44321 8.91176 3.38834 8.89081 3.33714C8.86986 3.28593 8.83892 3.23941 8.7998 3.20029C8.76067 3.16116 8.71415 3.13023 8.66294 3.10927C8.61174 3.08832 8.55687 3.07778 8.50155 3.07826C8.44622 3.07874 8.39155 3.09024 8.34071 3.11207C8.28988 3.13391 8.2439 3.16565 8.20546 3.20545L6.00005 5.41087Z" fill="${t}" stroke="${t}" stroke-width="1.5" /></svg>')`},MuiSwitch={styleOverrides:{root:({theme:e})=>({width:"fit-content",height:"fit-content",padding:e.spacing(1),"& .Mui-checked.MuiSwitch-switchBase":{padding:0,"& + .MuiSwitch-track":{backgroundColor:e.palette.primary.main[800],opacity:1}},"& :not(.Mui-checked).MuiSwitch-switchBase":{padding:0,"& + .MuiSwitch-track":{backgroundColor:e.palette.grey[700],opacity:1}},"& .Mui-checked:hover + .MuiSwitch-track":{backgroundColor:e.palette.primary[700]},"& :not(.Mui-checked):hover + .MuiSwitch-track":{backgroundColor:e.palette.grey[500]},"& .MuiButtonBase-root.MuiSwitch-switchBase.Mui-disabled":{"& + .MuiSwitch-track":{backgroundColor:e.palette.grey[200],"&::before":{backgroundImage:getCheckBackgroundImage(e.palette.grey[500])},"&::after":{backgroundImage:getCrossBackgroundImage(e.palette.grey[500])}}},"& :not(.Mui-disabled):active + .MuiSwitch-track":{border:`2px solid ${e.palette.primary[400]}`}}),switchBase:{padding:0,"&:hover, &.Mui-checked:hover":{backgroundColor:"transparent"}},track:({theme:e})=>({borderRadius:10,boxSizing:"border-box","&::before, &::after":{position:"absolute",top:"50%",transform:"translateY(-50%)",content:'""',backgroundSize:"cover"},"&::before":{left:e.spacing(2),backgroundImage:getCheckBackgroundImage(e.palette.background.default)},"&::after":{right:e.spacing(2),backgroundImage:getCrossBackgroundImage(e.palette.background.default)}}),thumb:({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:"none",margin:e.spacing(1.5)}),sizeSmall:{"& .MuiSwitch-track":{width:32,height:16,"&::before, &::after":{width:8,height:8}},"& .MuiSwitch-thumb":{width:12,height:12}},sizeMedium:{"& .MuiSwitch-track":{width:40,height:20,"&::before, &::after":{width:12,height:12}},"& .MuiSwitch-thumb":{width:16,height:16}}}},MuiTab={styleOverrides:{root:({theme:e})=>({minWidth:0,padding:e.spacing(0,2),textTransform:"none"})}},MuiTableCell={styleOverrides:{root:({theme:e})=>({border:"none",padding:e.spacing(1,4),height:44})}},MuiTableHead={styleOverrides:{root:({theme:e})=>({th:{borderBottom:`2px solid ${e.palette.grey["300"]}`}})}},MuiTableRow={styleOverrides:{root:({theme:e})=>({"&.MuiTableRow-hover:hover":{backgroundColor:e.palette.background.elementHover,cursor:"pointer"},"&.Mui-selected":{backgroundColor:e.palette.primary["100"]}})}},MuiTabs={styleOverrides:{root:()=>({minHeight:38,height:38}),indicator:({theme:e})=>({borderRadius:e.shape.small})}},MuiTextField={styleOverrides:{root:({theme:e})=>({[`& .${material_namespaceObject.inputBaseClasses.adornedStart}`]:{paddingLeft:e.spacing(2)},[`& .${material_namespaceObject.inputBaseClasses.adornedEnd}`]:{paddingRight:e.spacing(2)},[`& .${material_namespaceObject.inputBaseClasses.inputAdornedStart}`]:{paddingLeft:e.spacing(1)},[`& .${material_namespaceObject.outlinedInputClasses.notchedOutline}`]:{top:-4.5}})}},MuiToggleButton={styleOverrides:{root:({theme:e})=>({textTransform:"initial",padding:e.spacing(1,2)})}},MuiToggleButtonGroup={defaultProps:{size:"small",color:"primary"}},MuiTypography={variants:[{props:{variant:"button"},style:{textTransform:"capitalize"}}],defaultProps:{variantMapping:{link:"a",code:"code"}}},components_MuiTypography=null,getFontFaces=e=>`
|
|
191
191
|
@font-face {
|
|
192
192
|
font-family: 'Ubuntu';
|
|
193
193
|
font-style: 'normal';
|
|
@@ -326,13 +326,13 @@
|
|
|
326
326
|
${({theme:e})=>getStyles(e)}
|
|
327
327
|
`,Message=(0,material_namespaceObject.styled)("span")`
|
|
328
328
|
vertical-align: middle;
|
|
329
|
-
`,FormHelperTextContent=({success:e,error:t,children:a})=>{let r=(0,external_react_namespaceObject.useMemo)(()=>e?(0,jsx_runtime_namespaceObject.jsx)(SuccessIcon,{}):t?(0,jsx_runtime_namespaceObject.jsx)(ErrorIcon,{}):null,[e,t]);return a?(0,jsx_runtime_namespaceObject.jsxs)(FormHelperTextContent_styles_Wrapper,{error:t,success:e,children:[r,(0,jsx_runtime_namespaceObject.jsx)(Message,{children:a})]}):null},FormHelperText=({children:e,success:t,error:a,...r})=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.FormHelperText,{...r,children:(0,jsx_runtime_namespaceObject.jsx)(FormHelperTextContent,{error:a,success:t,children:e})}),TextField=({success:e,error:t,helperText:a,fullWidth:r=!1,startAdornment:n,endAdornment:i,slotProps:o,maxLength:s,trimmed:l=!0,onBlur:c,...p})=>{let
|
|
329
|
+
`,FormHelperTextContent=({success:e,error:t,children:a})=>{let r=(0,external_react_namespaceObject.useMemo)(()=>e?(0,jsx_runtime_namespaceObject.jsx)(SuccessIcon,{}):t?(0,jsx_runtime_namespaceObject.jsx)(ErrorIcon,{}):null,[e,t]);return a?(0,jsx_runtime_namespaceObject.jsxs)(FormHelperTextContent_styles_Wrapper,{error:t,success:e,children:[r,(0,jsx_runtime_namespaceObject.jsx)(Message,{children:a})]}):null},FormHelperText=({children:e,success:t,error:a,...r})=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.FormHelperText,{...r,children:(0,jsx_runtime_namespaceObject.jsx)(FormHelperTextContent,{error:a,success:t,children:e})}),TextField=({success:e,error:t,helperText:a,fullWidth:r=!1,startAdornment:n,endAdornment:i,slotProps:o,maxLength:s,trimmed:l=!0,onBlur:c,...p})=>{let m=(0,external_react_namespaceObject.useMemo)(()=>{if(e)return"success"},[e]),u=(0,external_react_namespaceObject.useMemo)(()=>e?(0,jsx_runtime_namespaceObject.jsx)(FormHelperTextContent,{success:!0,children:a}):t?(0,jsx_runtime_namespaceObject.jsx)(FormHelperTextContent,{error:!0,children:a}):a||(0,jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment,{}),[a,e,t]);return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.TextField,{variant:"outlined",fullWidth:r,error:t,color:m,helperText:u,slotProps:{htmlInput:{maxLength:s},input:{startAdornment:n,endAdornment:i},...o},onBlur:e=>{if(l){let t=e.target.value?.trim();p.onChange?.({...e,target:{...e.target,value:t}})}c?.(e)},...p})},DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT=2,DEFAULT_PLACEHOLDER="Начните вводить для поиска",StyledMenuItem=(0,material_namespaceObject.styled)(MenuItem)`
|
|
330
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
|
-
`,checkIsInputEmpty=e=>Array.isArray(e)?0===e.length:!e,Autocomplete_useLogic_useLogic_useLogic=({value:e,isOptionEqualToValue:t,autoHighlight:a=!0,freeSolo:r,options:n,loading:i,isLoadedDataError:o,loadedDataError:s="Ошибка загрузки данных",noOptionsText:l="Нет данных",onInputChange:c})=>{let[p,
|
|
335
|
+
`,checkIsInputEmpty=e=>Array.isArray(e)?0===e.length:!e,Autocomplete_useLogic_useLogic_useLogic=({value:e,isOptionEqualToValue:t,autoHighlight:a=!0,freeSolo:r,options:n,loading:i,isLoadedDataError:o,loadedDataError:s="Ошибка загрузки данных",noOptionsText:l="Нет данных",onInputChange:c})=>{let[p,m]=(0,external_react_namespaceObject.useState)(""),u=checkIsInputEmpty(e),d=p.length>=1,_=n.length>0;return{isValueEmpty:u,isPopperVisible:d||_||i||o,autocompleteProps:{isOptionEqualToValue:(0,external_react_namespaceObject.useCallback)((e,a)=>t?t(e,a):JSON.stringify(e)===JSON.stringify(a),[t]),autoHighlight:!r&&a,noOptionsText:o?s:l,onInputChange:(e,t,a)=>{c?.(e,t,a),i||m(t)}}}},Autocomplete=e=>{let{isValueEmpty:t,isPopperVisible:a,autocompleteProps:r}=Autocomplete_useLogic_useLogic_useLogic(e),{required:n,success:i,error:o,label:s,getOptionLabel:l,helperText:c,inputRef:p,multiple:m,size:u="medium",placeholder:d="Начните вводить для поиска",overflowOption:_,closeText:g="Закрыть",openText:x="Открыть",clearText:j="Очистить",loadingText:b=(0,jsx_runtime_namespaceObject.jsx)(CircularProgress,{color:"primary"}),isLoadedDataError:h,loadedDataError:y,noOptionsText:O,autoHighlight:C,renderInput:f,renderTags:S,renderOption:T,...w}=e,L=(0,external_react_namespaceObject.useCallback)(e=>{let a={...e,inputRef:p,required:n,placeholder:t?d:"",label:s,success:i,error:o,helperText:c,size:u};return f?f(a):(0,jsx_runtime_namespaceObject.jsx)(TextField,{...a})},[t,f,p,n,d,s,i,o,c,u]),v=(0,external_react_namespaceObject.useCallback)((e,t,a,r)=>{if(T)return T(e,t,a,r);let n=!!e["aria-selected"];return(0,external_react_namespaceObject.createElement)(StyledMenuItem,{...e,key:e.id,children:[m&&(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.ListItemIcon,{children:(0,jsx_runtime_namespaceObject.jsx)(Checkbox,{role:"menuitemcheckbox",checked:n})}),(0,jsx_runtime_namespaceObject.jsx)(OverflowTypography,{rowsCount:2,..._,children:e.key})]})},[m,_,T]),I=(0,external_react_namespaceObject.useCallback)((e,t,a)=>S?S(e,t,a):e.map((e,a)=>{let r=l?.(e)||"";return(0,external_react_namespaceObject.createElement)(Tag,{deleteIcon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X,{}),color:"grey",label:r,...t({index:a}),key:r})}),[l,S]),$=(0,external_react_namespaceObject.useCallback)(e=>a?(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Popper,{...e}):null,[a]);return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Autocomplete,{...w,size:u,clearText:j,closeText:g,openText:x,loadingText:b,multiple:m,disableCloseOnSelect:m,clearIcon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X,{}),popupIcon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown,{}),forcePopupIcon:!0,slotProps:{clearIndicator:{disableRipple:!0},popper:{component:$}},getOptionLabel:l,renderInput:L,renderTags:I,renderOption:v,...r})},DEFAULT_MIN_SEARCH_CHARACTERS=0,DEFAULT_DELAY_MS=300,DEFAULT_EMPTY_OPTIONS_TEXT="Продолжайте вводить для поиска",DEFAULT_NO_OPTIONS_TEXT="Нет данных",AsyncAutocomplete_useLogic_useLogic_useLogic=({fetchOptions:e,fetchDelayMs:t=DEFAULT_DELAY_MS,minSymbolsToFetch:a=DEFAULT_MIN_SEARCH_CHARACTERS,defaultValue:r,getOptionLabel:n,noOptionsText:i=DEFAULT_NO_OPTIONS_TEXT,onOpen:o,onInputChange:s})=>{let[l,c]=(0,external_react_namespaceObject.useState)(!1),[p,m]=(0,external_react_namespaceObject.useState)(!0),[u,d]=(0,external_react_namespaceObject.useState)(!0),_=(0,external_react_namespaceObject.useRef)(null),[g,x]=(0,external_react_namespaceObject.useState)([]),j=(0,external_react_namespaceObject.useCallback)((0,material_namespaceObject.debounce)(t=>{_.current?.abort();let a=new AbortController;_.current=a,e(t,a?.signal).then(e=>{x(e),d(0===e.length)}).finally(()=>{c(!1),_.current=null})},t),[e,t,i]);return{handleOpen:e=>{if(p){m(!1);let e=r&&n?n(r):"";(r||0===a)&&(c(!0),j(e))}o?.(e)},handleInputChange:(e,t,r)=>{if(!t||t.length<a)return j&&j.clear(),d(!1),c(!1),x([]);c(!0),p||j(t),s?.(e,t,r)},options:g,isLoadingData:l,emptyOptionsText:u?i:"Продолжайте вводить для поиска"}},AsyncAutocomplete=e=>{let{options:t,isLoadingData:a,handleOpen:r,handleInputChange:n,emptyOptionsText:i}=AsyncAutocomplete_useLogic_useLogic_useLogic(e),{fetchOptions:o,fetchDelayMs:s,minSymbolsToFetch:l,isDisabled:c,isRequired:p,isSuccess:m,isError:u,isLoading:d,isFullWidth:_,onOpen:g,noOptionsText:x,onInputChange:j,...b}=e;return(0,jsx_runtime_namespaceObject.jsx)(Autocomplete,{options:t,disabled:c,fullWidth:_,loading:d||a,onOpen:r,error:u,required:p,success:m,noOptionsText:i,onInputChange:n,...b})},styles_getBgColor=({$customColor:e,theme:t,$variantColor:a})=>{let r={contained:{grey:t.palette.grey[800],primary:t.palette.primary[800],error:t.palette.red[800],success:t.palette.green[800],warning:t.palette.yellow[800],default:t.palette.primary.main},light:{grey:t.palette.grey[300],primary:t.palette.primary[100],error:t.palette.red[100],success:t.palette.green[100],warning:t.palette.yellow[100],default:t.palette.primary.main}};return"white"===e?t.palette.background.default:r[a][e]},getTextColor=({$customColor:e,theme:t,$variantColor:a})=>{let r={grey:t.palette.grey[900],primary:t.palette.primary[900],error:t.palette.red[900],success:t.palette.green[900],warning:t.palette.yellow[900],default:t.palette.primary.contrastText};return"white"===e?t.palette.grey[900]:"contained"===a?t.palette.common.white:r[e||"default"]},StyledBadge=(0,material_namespaceObject.styled)(material_namespaceObject.Badge,{shouldForwardProp:e=>!["$customColor","$withBorder","$variantColor"].includes(e.toString())})`
|
|
336
336
|
.MuiBadge-badge {
|
|
337
337
|
height: 20px;
|
|
338
338
|
padding: ${({theme:e})=>e.spacing(0,1)};
|
|
@@ -372,7 +372,38 @@
|
|
|
372
372
|
display: flex;
|
|
373
373
|
gap: ${({theme:e})=>e.spacing(3)};
|
|
374
374
|
justify-content: end;
|
|
375
|
-
`,ConfirmAction_useLogic_useLogic_useLogic=({confirmButtonProps:e,onConfirm:t})=>{let{isOpen:a,anchor:r,actions:n}=usePopover(),{isAccented:i}=e||{},o=i?enums_ButtonVariants.Light:enums_ButtonVariants.Contained,s=i?enums_ButtonColors.Error:enums_ButtonColors.Primary;return{actionComponentProps:{onClick:n.open},popoverProps:{open:a,anchorEl:r,onClose:n.close},cancelButtonProps:{onClick:n.close},confirmButtonProps:{variant:o,color:s,onClick:()=>{t(),n.close()}}}},ConfirmAction=e=>{let{actionComponentProps:t,popoverProps:a,cancelButtonProps:r,confirmButtonProps:n}=ConfirmAction_useLogic_useLogic_useLogic(e),{text:i,confirmButtonProps:o,popoverProps:s,actionComponent:l}=e,{text:c="Подтвердить"}=o||{},{anchorOrigin:p=DEFAULT_ANCHOR_ORIGIN,transformOrigin:
|
|
375
|
+
`,ConfirmAction_useLogic_useLogic_useLogic=({confirmButtonProps:e,onConfirm:t})=>{let{isOpen:a,anchor:r,actions:n}=usePopover(),{isAccented:i}=e||{},o=i?enums_ButtonVariants.Light:enums_ButtonVariants.Contained,s=i?enums_ButtonColors.Error:enums_ButtonColors.Primary;return{actionComponentProps:{onClick:n.open},popoverProps:{open:a,anchorEl:r,onClose:n.close},cancelButtonProps:{onClick:n.close},confirmButtonProps:{variant:o,color:s,onClick:()=>{t(),n.close()}}}},ConfirmAction=e=>{let{actionComponentProps:t,popoverProps:a,cancelButtonProps:r,confirmButtonProps:n}=ConfirmAction_useLogic_useLogic_useLogic(e),{text:i,confirmButtonProps:o,popoverProps:s,actionComponent:l}=e,{text:c="Подтвердить"}=o||{},{anchorOrigin:p=DEFAULT_ANCHOR_ORIGIN,transformOrigin:m=DEFAULT_TRANSFORM_ORIGIN}=s||{};return(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[l(t),(0,jsx_runtime_namespaceObject.jsx)(Popover,{anchorOrigin:p,transformOrigin:m,...a,children:(0,jsx_runtime_namespaceObject.jsxs)(ConfirmAction_styles_Wrapper,{children:[i&&(0,jsx_runtime_namespaceObject.jsx)(styles_StyledTypography,{children:i}),(0,jsx_runtime_namespaceObject.jsxs)(styles_Actions,{children:[(0,jsx_runtime_namespaceObject.jsx)(Button,{variant:"text",...r,children:"Отмена"}),(0,jsx_runtime_namespaceObject.jsx)(Button,{...n,children:c})]})]})})]})},DialogTitle=({children:e,onClose:t,...a})=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.DialogTitle,{...a,children:[e,t&&(0,jsx_runtime_namespaceObject.jsx)(IconButton,{variant:"text",onClick:e=>{t&&t(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X,{})})]}),SIZES={xs:{minWidth:"300px",maxWidth:"399px"},sm:{minWidth:"400px",maxWidth:"499px"},md:{minWidth:"500px",maxWidth:"599px"},lg:{minWidth:"600px",maxWidth:"699px"},xl:{minWidth:"700px",maxWidth:"980px"}},getSize=e=>SIZES[e]||SIZES.md,StyledDialog=(0,material_namespaceObject.styled)(material_namespaceObject.Dialog,{shouldForwardProp:e=>!["$size"].includes(e.toString())})`
|
|
376
|
+
&.${material_namespaceObject.dialogClasses.root} .${material_namespaceObject.backdropClasses.root} {
|
|
377
|
+
background-color: ${({theme:e})=>e.palette.background.modalShadow};
|
|
378
|
+
}
|
|
379
|
+
.${material_namespaceObject.dialogClasses.paper} {
|
|
380
|
+
min-width: ${({$size:e})=>getSize(e).minWidth};
|
|
381
|
+
max-width: ${({$size:e})=>getSize(e).maxWidth};
|
|
382
|
+
}
|
|
383
|
+
`,Dialog=({children:e,title:t,disableBackdropClick:a,onClose:r,size:n="md",...i})=>{let o=r&&((e,t)=>{(!a||"backdropClick"!==t)&&r(e,t)}),{isMobile:s}=useViewportType();return s?(0,jsx_runtime_namespaceObject.jsx)(BottomDrawer,{onClose:o,title:t,children:e}):(0,jsx_runtime_namespaceObject.jsxs)(StyledDialog,{$size:n,onClose:o,...i,children:[t&&(0,jsx_runtime_namespaceObject.jsx)(DialogTitle,{onClose:r,children:t}),e]})},StyledDialogActions=(0,material_namespaceObject.styled)(material_namespaceObject.DialogActions)`
|
|
384
|
+
padding-top: 0;
|
|
385
|
+
|
|
386
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
387
|
+
padding: ${({theme:e})=>e.spacing(4)};
|
|
388
|
+
}
|
|
389
|
+
`,StyledGrid=(0,material_namespaceObject.styled)(Container)`
|
|
390
|
+
${({theme:e})=>e.breakpoints.up("sm")} {
|
|
391
|
+
flex-direction: column;
|
|
392
|
+
justify-content: end;
|
|
393
|
+
}
|
|
394
|
+
`,DialogActions=({children:e,disableSpacing:t,...a})=>(0,jsx_runtime_namespaceObject.jsx)(StyledDialogActions,{...a,children:(0,jsx_runtime_namespaceObject.jsx)(StyledGrid,{gap:2*!t,children:e})}),StyledDialogContent=(0,material_namespaceObject.styled)(material_namespaceObject.DialogContent)`
|
|
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
|
+
`,DialogContent=e=>(0,jsx_runtime_namespaceObject.jsx)(StyledDialogContent,{...e}),StyledDialogContentText=(0,material_namespaceObject.styled)(material_namespaceObject.DialogContentText)`
|
|
401
|
+
color: ${({theme:e})=>e.palette.grey[900]};
|
|
402
|
+
`,DialogContentText=e=>(0,jsx_runtime_namespaceObject.jsx)(StyledDialogContentText,{...e}),CancelButton=(0,material_namespaceObject.styled)(Button)`
|
|
403
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
404
|
+
order: 1;
|
|
405
|
+
}
|
|
406
|
+
`,ConfirmDialog_useLogic_useLogic_useLogic=({actions:e,onClose:t})=>{let{isMobile:a}=useViewportType(),{cancel:r}=e,n=!!r,i=r?.onClick||t,{variant:o=a?"light":"text"}=r||{};return{isShowCancelButton:n,cancelButtonProps:{variant:o,onClick:i}}},ConfirmDialog=e=>{let{isShowCancelButton:t,cancelButtonProps:a}=ConfirmDialog_useLogic_useLogic_useLogic(e),{open:r,title:n,description:i,actions:o,onClose:s,...l}=e,{text:c,...p}=o.confirm,{text:m,variant:u,onClick:d,..._}=o.cancel||{};return(0,jsx_runtime_namespaceObject.jsxs)(Dialog,{title:n,open:r,onClose:s,...l,children:[i&&(0,jsx_runtime_namespaceObject.jsx)(DialogContent,{children:(0,jsx_runtime_namespaceObject.jsx)(DialogContentText,{children:i})}),(0,jsx_runtime_namespaceObject.jsxs)(DialogActions,{children:[t&&(0,jsx_runtime_namespaceObject.jsx)(CancelButton,{..._,...a,children:m}),(0,jsx_runtime_namespaceObject.jsx)(Button,{...p,children:c})]})]})},SIZE={Small:"small",Medium:"medium",Large:"large"},IMAGE_WIDTH={[SIZE.Small]:"239px",[SIZE.Medium]:"323px",[SIZE.Large]:"458px"},IMAGE_HEIGHT={[SIZE.Small]:"119px",[SIZE.Medium]:"161px",[SIZE.Large]:"229px"},MAX_INNER_WIDTH={[SIZE.Small]:"384px",[SIZE.Medium]:"400px",[SIZE.Large]:"460px"},TITLE_HEADER_LEVEL={[SIZE.Small]:"h5",[SIZE.Medium]:"h4",[SIZE.Large]:"h3"},Image_styles_Wrapper=(0,material_namespaceObject.styled)("img",{shouldForwardProp:e=>"size"!==e})`
|
|
376
407
|
display: block;
|
|
377
408
|
|
|
378
409
|
width: ${({width:e})=>e||"auto"};
|
|
@@ -446,7 +477,7 @@
|
|
|
446
477
|
|
|
447
478
|
margin-top: auto;
|
|
448
479
|
}
|
|
449
|
-
`,Placeholder=({className:e,title:t,imgSrc:a,imgAlt:r,description:n,Actions:i,size:o="small",imgWidth:s,renderImage:l})=>{let c=(0,external_react_namespaceObject.useContext)(ConfigContext),p=c.components?.placeholder?.defaultProps?.renderImage,
|
|
480
|
+
`,Placeholder=({className:e,title:t,imgSrc:a,imgAlt:r,description:n,Actions:i,size:o="small",imgWidth:s,renderImage:l})=>{let c=(0,external_react_namespaceObject.useContext)(ConfigContext),p=c.components?.placeholder?.defaultProps?.renderImage,m=(0,external_react_namespaceObject.useMemo)(()=>l&&setDefaultImageStyles(l)||p&&setDefaultImageStyles(p)||Image,[l,p]);return(0,jsx_runtime_namespaceObject.jsxs)(Placeholder_styles_Wrapper,{$size:o,className:e,children:[(0,jsx_runtime_namespaceObject.jsxs)(InnerContainer,{$size:o,children:[a&&(0,jsx_runtime_namespaceObject.jsx)(m,{src:a,alt:r,width:s||IMAGE_WIDTH[o],height:s?"auto":IMAGE_HEIGHT[o],size:o}),(0,jsx_runtime_namespaceObject.jsx)(Title,{$size:o,variant:TITLE_HEADER_LEVEL[o],children:t}),n&&(0,jsx_runtime_namespaceObject.jsx)(Description,{$size:o,component:"div",variant:"body1",children:n})]}),i&&(0,jsx_runtime_namespaceObject.jsx)(Footer,{children:i})]})},InternalErrorPlaceholder=()=>{let{imagesMap:e,techSup:t}=(0,external_react_namespaceObject.useContext)(ConfigContext);return(0,jsx_runtime_namespaceObject.jsx)(Placeholder,{title:"Произошла непредвиденная ошибка",description:(0,jsx_runtime_namespaceObject.jsxs)("div",{children:[(0,jsx_runtime_namespaceObject.jsx)(Typography,{children:"Пожалуйста, попробуйте обновить страницу или обратитесь в техническую поддержку:"}),(0,jsx_runtime_namespaceObject.jsxs)(Typography,{children:["email\xa0",(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Link,{href:`mailto:${t.email}`,children:t.email}),", телефон\xa0",(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Link,{href:`tel:${t.phone}`,children:t.phone})]})]}),imgAlt:"Непредвиденная ошибка",imgSrc:e.defaultErrorImgSrc,imgWidth:"324px",Actions:(0,jsx_runtime_namespaceObject.jsx)(Button,{onClick:()=>{location.reload()},children:"Обновить страницу"})})},OutdatedReleasePlaceholder=()=>{let{imagesMap:e}=(0,external_react_namespaceObject.useContext)(ConfigContext);return(0,jsx_runtime_namespaceObject.jsx)(Placeholder,{title:"Обновление в сервисе",description:(0,jsx_runtime_namespaceObject.jsx)(Typography,{component:"p",children:"Наши специалисты работают над улучшением качества продукта. Для загрузки обновлений, пожалуйста, обновите страницу."}),imgAlt:"Обновление в сервисе",imgSrc:e.outdatedReleaseErrorImgSrc,imgWidth:"324px",Actions:(0,jsx_runtime_namespaceObject.jsx)(Button,{onClick:()=>{location.reload()},children:"Обновить страницу"})})};var enums_ErrorType=function(e){return e.OutdatedRelease="outdatedRelease",e.Default="default",e}({});let CONDITION_TYPE_ERROR=[{type:enums_ErrorType.OutdatedRelease,condition:e=>"ChunkLoadError"===e.name||e.message.includes("Failed to fetch dynamically imported module")},{type:enums_ErrorType.Default,condition:()=>!0}],PLACEHOLDER_TYPE_ERROR={[enums_ErrorType.OutdatedRelease]:(0,jsx_runtime_namespaceObject.jsx)(OutdatedReleasePlaceholder,{}),[enums_ErrorType.Default]:(0,jsx_runtime_namespaceObject.jsx)(InternalErrorPlaceholder,{})};class ErrorBoundary extends external_react_default().Component{static contextType=ConfigContext;context;state={hasError:!1,typeError:enums_ErrorType.Default};static getDerivedStateFromError(e){return{hasError:!0,typeError:CONDITION_TYPE_ERROR.find(({condition:t})=>t(e))?.type??enums_ErrorType.Default}}componentDidCatch(e){this.context.captureException(e)}render(){return this.state.hasError?PLACEHOLDER_TYPE_ERROR[this.state.typeError]:this.props.children}}let LoadingContainer=(0,material_namespaceObject.styled)("div")`
|
|
450
481
|
display: flex;
|
|
451
482
|
flex-grow: 1;
|
|
452
483
|
align-items: center;
|
|
@@ -471,7 +502,7 @@
|
|
|
471
502
|
font-size: 16px;
|
|
472
503
|
|
|
473
504
|
fill: ${({color:e})=>e};
|
|
474
|
-
`;var enums_CopyStatus=function(e){return e.Copied="Скопировано",e.Error="Ошибка копирования",e.CanCopy="Скопировать",e}({});let CopyTypography_useLogic_useLogic_useLogic=({children:e,copyText:t,isShowCopyText:a,copyPosition:r})=>{let[n,i]=(0,external_react_namespaceObject.useState)(enums_CopyStatus.CanCopy);return{handleMouseLeave:()=>{n!==enums_CopyStatus.CanCopy&&setTimeout(()=>{i(enums_CopyStatus.CanCopy)},100)},handleClick:a=>{a.stopPropagation(),navigator.clipboard.writeText(t||("string"==typeof e?e:"")).then(()=>i(enums_CopyStatus.Copied)).catch(()=>i(enums_CopyStatus.Error))},tooltipTitle:a?`${n}: ${t}`:n,isIconOnLeft:"left"===r}},CopyTypography=e=>{let{children:t,copyPosition:a="right",copyText:r,isShowCopyText:n,color:i,...o}=e,s=()=>(0,jsx_runtime_namespaceObject.jsx)(StyledCopyIcon,{$copyPosition:a,color:i}),{handleMouseLeave:l,handleClick:c,tooltipTitle:p,isIconOnLeft:
|
|
505
|
+
`;var enums_CopyStatus=function(e){return e.Copied="Скопировано",e.Error="Ошибка копирования",e.CanCopy="Скопировать",e}({});let CopyTypography_useLogic_useLogic_useLogic=({children:e,copyText:t,isShowCopyText:a,copyPosition:r})=>{let[n,i]=(0,external_react_namespaceObject.useState)(enums_CopyStatus.CanCopy);return{handleMouseLeave:()=>{n!==enums_CopyStatus.CanCopy&&setTimeout(()=>{i(enums_CopyStatus.CanCopy)},100)},handleClick:a=>{a.stopPropagation(),navigator.clipboard.writeText(t||("string"==typeof e?e:"")).then(()=>i(enums_CopyStatus.Copied)).catch(()=>i(enums_CopyStatus.Error))},tooltipTitle:a?`${n}: ${t}`:n,isIconOnLeft:"left"===r}},CopyTypography=e=>{let{children:t,copyPosition:a="right",copyText:r,isShowCopyText:n,color:i,...o}=e,s=()=>(0,jsx_runtime_namespaceObject.jsx)(StyledCopyIcon,{$copyPosition:a,color:i}),{handleMouseLeave:l,handleClick:c,tooltipTitle:p,isIconOnLeft:m}=CopyTypography_useLogic_useLogic_useLogic(e);return(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:p,disableInteractive:!0,placement:"bottom",children:(0,jsx_runtime_namespaceObject.jsxs)(CopyTypography_styles_Wrapper,{onMouseLeave:l,onClick:c,component:"div",color:i,...o,children:[m&&s(),t,!m&&s()]})})},DISABLE_ROW_ATTR="data-row-disable",HIDDEN_CHILDREN_ROW_CLASSNAME="astral-ui_datagrid_row_hidden",MIN_ROW_HEIGHT=44,ROOT_ACTION_CELL_WIDTH=32,TREE_LINE_WIDTH=ROOT_ACTION_CELL_WIDTH/2,MIN_DISPLAY_ROWS_BY_DEFAULT=10,EXPANDED_LEVEL_BY_DEFAULT=1,INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT=2,NestedRows=(0,material_namespaceObject.styled)("ul",{shouldForwardProp:e=>!["$level","$isShowConnector"].includes(e.toString())})`
|
|
475
506
|
position: relative;
|
|
476
507
|
|
|
477
508
|
margin: 0;
|
|
@@ -524,7 +555,7 @@
|
|
|
524
555
|
justify-self: start;
|
|
525
556
|
|
|
526
557
|
margin: ${({theme:e})=>e.spacing(0,2)};
|
|
527
|
-
`,DataGridContext=(0,external_react_namespaceObject.createContext)({checkIsOpened:()=>!1,checkIsMoreOpened:()=>!1,toggleOpenItems:()=>{},toggleOpenMoreItems:()=>{}}),ROW_FLAGS_BY_DEFAULT={isOpenedItems:!0,iOpenedMoreItems:!1},DataGridContextProvider=({children:e})=>{let[t,a]=(0,external_react_namespaceObject.useState)({}),r=e=>!!t[e],n=e=>!!t[e]&&t[e].iOpenedMoreItems;return(0,jsx_runtime_namespaceObject.jsx)(DataGridContext.Provider,{value:{checkIsOpened:r,checkIsMoreOpened:n,toggleOpenItems:e=>a(t=>{if(r(e)){let a={...t};return delete a[e],a}return{...t,[e]:ROW_FLAGS_BY_DEFAULT}}),toggleOpenMoreItems:e=>a(t=>{if(n(e)){let a={...t};return a[e]=ROW_FLAGS_BY_DEFAULT,a}return{...t,[e]:{...ROW_FLAGS_BY_DEFAULT,iOpenedMoreItems:!0}}})},children:e})};var enums_SortStates=function(e){return e.ASC="asc",e.DESC="desc",e}({}),enums_Variant=function(e){return e.Tree="tree",e.Subrows="subrows",e}({});let NestedChildren_useLogic_useLogic_useLogic=({rowId:e,data:t,level:a,variant:r,initialVisibleChildrenCount:n})=>{let{checkIsMoreOpened:i,toggleOpenMoreItems:o}=(0,external_react_namespaceObject.useContext)(DataGridContext),s=Object.is(r,enums_Variant.Tree),l=t?.slice(0,n),c=t?.slice(n),p=i(e);return{isShowAllChildren:p,isShowMoreButton:!!c?.length,isShowConnector:s,initialVisibleChildren:l,otherChildren:c,nextLevel:s?a+1:0,handleToggleShowAllChildren:t=>{t.stopPropagation(),o(e)}}},NestedChildren=(0,external_react_namespaceObject.memo)(e=>{let{isShowAllChildren:t,isShowMoreButton:a,isShowConnector:r,nextLevel:n,initialVisibleChildren:i,otherChildren:o,handleToggleShowAllChildren:s}=NestedChildren_useLogic_useLogic_useLogic(e),{isOpen:l,data:c,keyId:p,level:
|
|
558
|
+
`,DataGridContext=(0,external_react_namespaceObject.createContext)({checkIsOpened:()=>!1,checkIsMoreOpened:()=>!1,toggleOpenItems:()=>{},toggleOpenMoreItems:()=>{}}),ROW_FLAGS_BY_DEFAULT={isOpenedItems:!0,iOpenedMoreItems:!1},DataGridContextProvider=({children:e})=>{let[t,a]=(0,external_react_namespaceObject.useState)({}),r=e=>!!t[e],n=e=>!!t[e]&&t[e].iOpenedMoreItems;return(0,jsx_runtime_namespaceObject.jsx)(DataGridContext.Provider,{value:{checkIsOpened:r,checkIsMoreOpened:n,toggleOpenItems:e=>a(t=>{if(r(e)){let a={...t};return delete a[e],a}return{...t,[e]:ROW_FLAGS_BY_DEFAULT}}),toggleOpenMoreItems:e=>a(t=>{if(n(e)){let a={...t};return a[e]=ROW_FLAGS_BY_DEFAULT,a}return{...t,[e]:{...ROW_FLAGS_BY_DEFAULT,iOpenedMoreItems:!0}}})},children:e})};var enums_SortStates=function(e){return e.ASC="asc",e.DESC="desc",e}({}),enums_Variant=function(e){return e.Tree="tree",e.Subrows="subrows",e}({});let NestedChildren_useLogic_useLogic_useLogic=({rowId:e,data:t,level:a,variant:r,initialVisibleChildrenCount:n})=>{let{checkIsMoreOpened:i,toggleOpenMoreItems:o}=(0,external_react_namespaceObject.useContext)(DataGridContext),s=Object.is(r,enums_Variant.Tree),l=t?.slice(0,n),c=t?.slice(n),p=i(e);return{isShowAllChildren:p,isShowMoreButton:!!c?.length,isShowConnector:s,initialVisibleChildren:l,otherChildren:c,nextLevel:s?a+1:0,handleToggleShowAllChildren:t=>{t.stopPropagation(),o(e)}}},NestedChildren=(0,external_react_namespaceObject.memo)(e=>{let{isShowAllChildren:t,isShowMoreButton:a,isShowConnector:r,nextLevel:n,initialVisibleChildren:i,otherChildren:o,handleToggleShowAllChildren:s}=NestedChildren_useLogic_useLogic_useLogic(e),{isOpen:l,data:c,keyId:p,level:m,gridColumns:u,moreButtonColumnPosition:d,renderRow:_}=e;return c&&c.length?(0,jsx_runtime_namespaceObject.jsx)(Collapse,{in:l,unmountOnExit:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(NestedRows,{$level:m,$isShowConnector:r,children:[i.map(({children:e,options:t,...a})=>_({key:a[p],row:a,options:t,nestedChildren:e,level:n})),l&&(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(Collapse,{in:t,component:"li",unmountOnExit:!0,children:(0,jsx_runtime_namespaceObject.jsx)(NestedRows,{$level:m,$isShowConnector:r,children:o.map(({children:e,options:t,...a})=>_({key:a[p],row:a,options:t,nestedChildren:e,level:n,className:HIDDEN_CHILDREN_ROW_CLASSNAME}))})}),a&&(0,jsx_runtime_namespaceObject.jsx)(MoreButtonRow,{$level:n,$isShowConnector:r,$gridColumns:u,children:(0,jsx_runtime_namespaceObject.jsx)(MoreButton,{$moreButtonColumnPosition:d,variant:"link",onClick:s,children:t?"Скрыть":"Показать все"})})]})]})}):null}),DEFAULT_JUSTIFY_CONTENT="start",ALIGN_TO_JUSTIFY_CONTENT_MAP={left:"start",center:"center",right:"end"},alignToJustifyContent=e=>e&&ALIGN_TO_JUSTIFY_CONTENT_MAP[e]||"start",Cell_styles_Wrapper=(0,material_namespaceObject.styled)("div",{shouldForwardProp:e=>!["$align","$isDisabled","$hasStartAdornment"].includes(e.toString())})`
|
|
528
559
|
overflow: hidden;
|
|
529
560
|
display: flex;
|
|
530
561
|
align-items: center;
|
|
@@ -613,7 +644,7 @@
|
|
|
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
|
-
`,RowContext=(0,external_react_namespaceObject.createContext)({isDisabled:!1,addDisabledRow:()=>{},removeDisabledRow:()=>{}}),RowContextProvider=({children:e})=>{let[t,a]=(0,external_react_namespaceObject.useState)(!1),[r,n]=(0,external_react_namespaceObject.useState)();return(0,jsx_runtime_namespaceObject.jsx)(RowContext.Provider,{value:{isDisabled:t,disabledReason:r,addDisabledRow:e=>{a(!0),n(e)},removeDisabledRow:()=>{a(!1),n(void 0)}},children:e})},getColumnsMap=e=>e.reduce((e,{field:t,...a})=>t?{...e,[t]:a}:e,{}),mergeColumnsOptions=(e,t)=>{if(!t)return e;let a=getColumnsMap(t);return Object.keys(a).length?e.map(e=>e.hasOwnProperty("field")?{...e,...a[e.field]||{}}:e):e},Row_useLogic_useLogic_useLogic=({keyId:e,columns:t,row:a,nestedChildren:r,level:n,variant:i,activeRowId:o,options:s,isInitialExpanded:l=!1,expandedLevel:c,isSelectable:p,selectedRows:
|
|
647
|
+
`,RowContext=(0,external_react_namespaceObject.createContext)({isDisabled:!1,addDisabledRow:()=>{},removeDisabledRow:()=>{}}),RowContextProvider=({children:e})=>{let[t,a]=(0,external_react_namespaceObject.useState)(!1),[r,n]=(0,external_react_namespaceObject.useState)();return(0,jsx_runtime_namespaceObject.jsx)(RowContext.Provider,{value:{isDisabled:t,disabledReason:r,addDisabledRow:e=>{a(!0),n(e)},removeDisabledRow:()=>{a(!1),n(void 0)}},children:e})},getColumnsMap=e=>e.reduce((e,{field:t,...a})=>t?{...e,[t]:a}:e,{}),mergeColumnsOptions=(e,t)=>{if(!t)return e;let a=getColumnsMap(t);return Object.keys(a).length?e.map(e=>e.hasOwnProperty("field")?{...e,...a[e.field]||{}}:e):e},Row_useLogic_useLogic_useLogic=({keyId:e,columns:t,row:a,nestedChildren:r,level:n,variant:i,activeRowId:o,options:s,isInitialExpanded:l=!1,expandedLevel:c,isSelectable:p,selectedRows:m,onSelectRow:u,onRowClick:d,isVisibleCollapseButton:_})=>{let g=l&&n<=c-1&&r?.length,{checkIsOpened:x,toggleOpenItems:j}=(0,external_react_namespaceObject.useContext)(DataGridContext),{isDisabled:b,disabledReason:h}=(0,external_react_namespaceObject.useContext)(RowContext),[y,O]=(0,external_react_namespaceObject.useState)(!1),C=a[e],{isDisabled:f,disabledReason:S}=s||{},T=b||f,w=x(C);(0,external_react_namespaceObject.useEffect)(()=>{g&&!w&&j(C)},[]);let L=p&&!!m?.find(t=>t[e]===C),v=Object.is(i,enums_Variant.Tree);return{isOpen:w,isShowConnector:v,childrenColumns:(0,external_react_namespaceObject.useMemo)(()=>mergeColumnsOptions(t,s?.childrenColumns),[t,s]),rowId:C,disabled:T,isRenderCollapseButton:!!r?.length&&_,handleToggle:e=>{e.stopPropagation(),j(C)},rowProps:{$isHovered:!!(!T&&d),$isSelected:o===C,onClick:()=>{!T&&d?.(a)},onMouseMove:e=>{T&&"true"!==e.target.getAttribute(DISABLE_ROW_ATTR)&&O(!1)}},tooltipProps:{open:y,title:T?S||h:void 0,onOpen:e=>{"true"===e.target.getAttribute(DISABLE_ROW_ATTR)&&O(!0)},onClose:()=>O(!1)},checkboxProps:{checked:L,disabled:T,onChange:u(a)},nestedChildrenProps:{isOpen:w,rowId:C}}},checkIsDisabled=(e,t,a)=>!!e&&(!t||!t.includes(a)),Row=e=>{let{isOpen:t,isShowConnector:a,childrenColumns:r,rowId:n,handleToggle:i,checkboxProps:o,rowProps:s,tooltipProps:l,nestedChildrenProps:c,disabled:p,isRenderCollapseButton:m}=Row_useLogic_useLogic_useLogic(e),{className:u,row:d,options:_,variant:g,isSelectable:x,gridColumns:j,isInitialExpanded:b,expandedLevel:h,level:y,nestedChildren:O,initialVisibleChildrenCount:C,moreButtonColumnPosition:f,isVisibleCollapseButton:S,columns:T,emptyCellValue:w,selectedRows:L,activeRowId:v,keyId:I,onSelectRow:$,onRowClick:E,...M}=e,{isDisabledLastCell:D=!0,isNotSelectable:k}=_||{},A=()=>m||x&&!k?(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[m&&(0,jsx_runtime_namespaceObject.jsx)(CollapseCell,{children:(0,jsx_runtime_namespaceObject.jsx)(CollapseButton,{variant:"text",onClick:i,children:(0,jsx_runtime_namespaceObject.jsx)(styles_ChevronIcon,{$isActive:t})})}),x&&!k&&(0,jsx_runtime_namespaceObject.jsx)(CheckboxCell,{inert:!!p||void 0,onClick:e=>e.stopPropagation(),children:(0,jsx_runtime_namespaceObject.jsx)(Checkbox,{...o})})]}):null,B=(0,external_react_namespaceObject.useCallback)(()=>{let e=D?void 0:[T.length-1];return T?.map((t,a)=>{let r=`${n}-${a}`,i=checkIsDisabled(p,e,a),o=!a;return jsx_runtime_namespaceObject.jsx(CellStyled,{$level:o?y:0,row:d,cell:t,emptyCellValue:w,startAdornment:o&&A(),isDisabled:i},r)})},[t,T,p]),R=(0,external_react_namespaceObject.useCallback)(({key:e,...t})=>(0,jsx_runtime_namespaceObject.jsx)(Row,{keyId:I,...t,variant:g,isSelectable:x,selectedRows:L,gridColumns:j,isInitialExpanded:b,expandedLevel:h,initialVisibleChildrenCount:C,moreButtonColumnPosition:f,isVisibleCollapseButton:S,activeRowId:v,columns:r,onSelectRow:$,onRowClick:E},e),[I,g,x,L,j,b,h,C,f,v,r,$,E]);return(0,jsx_runtime_namespaceObject.jsxs)(Row_styles_Wrapper,{$level:y,$isShowConnector:a,$gridColumns:j,className:u,...M,children:[(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{followCursor:!0,arrow:!1,...l,children:(0,jsx_runtime_namespaceObject.jsx)(Row_styles_ContentWrapper,{$level:y,$isShowConnector:a,$gridColumns:j,[DISABLE_ROW_ATTR]:p,...s,children:B()})}),(0,jsx_runtime_namespaceObject.jsx)(NestedChildren,{...c,data:O,keyId:I,level:y,variant:g,gridColumns:j,initialVisibleChildrenCount:C,moreButtonColumnPosition:f,renderRow:R})]})},Body_styles_Wrapper=(0,material_namespaceObject.styled)("ul",{shouldForwardProp:e=>!["$isEmpty","$minDisplayRows"].includes(e.toString())})`
|
|
617
648
|
overflow-y: auto;
|
|
618
649
|
|
|
619
650
|
height: ${({$isEmpty:e,$minDisplayRows:t})=>e?`${MIN_ROW_HEIGHT*t}px`:"100%"};
|
|
@@ -621,7 +652,7 @@
|
|
|
621
652
|
padding: 0;
|
|
622
653
|
|
|
623
654
|
list-style-type: none;
|
|
624
|
-
`,Body_useLogic_useLogic_useLogic=({isLoading:e,isError:t,rows:a})=>{let r=!a.length;return{isNoData:r,contentStateProps:{isLoading:e&&r,isError:t&&r}}},INITIAL_LEVEL=0,Body_Body=e=>{let{imagesMap:t}=(0,external_react_namespaceObject.useContext)(ConfigContext),{isNoData:a,contentStateProps:r}=Body_useLogic_useLogic_useLogic(e),{rows:n,selectedRows:i=[],isLoading:o,isError:s,errorMsg:l,minDisplayRows:c,keyId:p,noDataPlaceholder:
|
|
655
|
+
`,Body_useLogic_useLogic_useLogic=({isLoading:e,isError:t,rows:a})=>{let r=!a.length;return{isNoData:r,contentStateProps:{isLoading:e&&r,isError:t&&r}}},INITIAL_LEVEL=0,Body_Body=e=>{let{imagesMap:t}=(0,external_react_namespaceObject.useContext)(ConfigContext),{isNoData:a,contentStateProps:r}=Body_useLogic_useLogic_useLogic(e),{rows:n,selectedRows:i=[],isLoading:o,isError:s,errorMsg:l,minDisplayRows:c,keyId:p,noDataPlaceholder:m,onRetry:u,...d}=e,_=(0,external_react_namespaceObject.useMemo)(()=>n.map(({children:e,options:t,...a})=>{let r=a[p];return(0,jsx_runtime_namespaceObject.jsx)(RowContextProvider,{children:(0,jsx_runtime_namespaceObject.jsx)(Row,{row:a,selectedRows:i,options:t,keyId:p,level:0,nestedChildren:e,...d})},r)}),[n,p,i,d]);return(0,jsx_runtime_namespaceObject.jsx)(Body_styles_Wrapper,{$isEmpty:a,$minDisplayRows:c,children:(0,jsx_runtime_namespaceObject.jsx)(ContentState,{...r,errorState:{imgAlt:"Что-то пошло не так",errorList:[l||""],imgSrc:t.defaultErrorImgSrc,onRetry:u},children:n.length?_:m})})},HeadCell_styles_Wrapper=(0,material_namespaceObject.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
|
|
|
@@ -688,7 +719,7 @@
|
|
|
688
719
|
|
|
689
720
|
background: ${({theme:e})=>e.palette.background.element};
|
|
690
721
|
mix-blend-mode: luminosity;
|
|
691
|
-
`,getGridTemplateColumns=e=>e.map(({width:e})=>e||"1fr").join(" "),DataGrid_useLogic_useLogic_useLogic=({keyId:e,columns:t,rows:a=[],variant:r,tree:n,subrows:i,selectedRows:o=[],isLoading:s,isDisabled:l,onSelectRow:c})=>{let p=!!a?.length,
|
|
722
|
+
`,getGridTemplateColumns=e=>e.map(({width:e})=>e||"1fr").join(" "),DataGrid_useLogic_useLogic_useLogic=({keyId:e,columns:t,rows:a=[],variant:r,tree:n,subrows:i,selectedRows:o=[],isLoading:s,isDisabled:l,onSelectRow:c})=>{let p=!!a?.length,m=!!c,u=s||l,d=Object.is(r,enums_Variant.Subrows)?{...i,isInitialExpanded:!0}:n,_=a.filter(e=>!(e.options?.isDisabled||e.options?.isNotSelectable)),g=(0,external_react_namespaceObject.useRef)([]);(0,external_react_namespaceObject.useEffect)(()=>{s||(g.current=a)},[a,s]);let x=getGridTemplateColumns(t),j=(0,external_react_namespaceObject.useMemo)(()=>_.filter(t=>!o.find(a=>a[e]===t[e])).length,[_,o,e]),b=(0,external_react_namespaceObject.useCallback)(()=>a.length<=1?t.map(e=>({...e,sortable:!1})):t,[t,a]),h=s?g.current:a,y=(0,external_react_namespaceObject.useCallback)(t=>a=>{if(c){if(a.target.checked)return c([...o,t]);c(o.filter(a=>a[e]!==t[e]))}},[o,c,e]);return{isDataGridDisabled:u,treeRenderConfig:d,renderRows:h,headProps:{rowsCount:_.length,uncheckedRowsCount:j,gridColumns:x,isSelectable:m,columns:b(),onSelectAllRows:t=>{if(c){if(t.target.checked)return c((0,external_remeda_namespaceObject.uniqueBy)([...o,..._],(0,external_remeda_namespaceObject.prop)(e)));c(o.filter(t=>!a.find(a=>a[e]===t[e])))}}},bodyProps:{gridColumns:x,isSelectable:m,onSelectRow:y},loaderProps:{isLoading:p&&s,isVisibleDivider:!!a.length,isDisabled:l}}},DataGrid=e=>{let{isDataGridDisabled:t,treeRenderConfig:a,headProps:r,bodyProps:n,loaderProps:i,renderRows:o}=DataGrid_useLogic_useLogic_useLogic(e),{emptySymbol:s}=(0,external_react_namespaceObject.useContext)(ConfigContext),{columns:l,selectedRows:c=[],sorting:p,maxHeight:m,minDisplayRows:u=MIN_DISPLAY_ROWS_BY_DEFAULT,errorMsg:d,variant:_=enums_Variant.Tree,footer:g,noDataPlaceholder:x,isLoading:j,isError:b,subrows:h,keyId:y,activeRowId:O,emptyCellValue:C=s,className:f,onRowClick:S,onSort:T,noDataOptions:w,onRetry:L}=e,{moreButtonColumnPosition:v=1,isVisibleCollapseButton:I=!0}=h||{},{isInitialExpanded:$=!1,expandedLevel:E=EXPANDED_LEVEL_BY_DEFAULT,initialVisibleChildrenCount:M=INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT}=a||{},D=(0,external_react_namespaceObject.useCallback)(()=>j?null:x||(0,jsx_runtime_namespaceObject.jsx)(NoData,{...w}),[x,w,j]);return(0,jsx_runtime_namespaceObject.jsx)(DataGridContextProvider,{children:(0,jsx_runtime_namespaceObject.jsxs)(styles_Container,{$maxHeight:m,className:f,children:[(0,jsx_runtime_namespaceObject.jsxs)(t?DisabledDataGridWrapper:DataGridWrapper,{inert:!!t||void 0,children:[(0,jsx_runtime_namespaceObject.jsx)(Head,{...r,sorting:p,onSort:T}),(0,jsx_runtime_namespaceObject.jsx)(Body_Body,{...n,activeRowId:O,keyId:y,selectedRows:c,minDisplayRows:u,rows:o,columns:l,variant:_,emptyCellValue:C,isInitialExpanded:$,expandedLevel:E,initialVisibleChildrenCount:M,moreButtonColumnPosition:v,isVisibleCollapseButton:I,isLoading:j,isError:b,errorMsg:d,noDataPlaceholder:D(),onRowClick:S,onRetry:L})]}),(0,jsx_runtime_namespaceObject.jsx)(Loader,{...i}),g&&g]})})},MainIconButton_useLogic_useLogic_useLogic=({action:e})=>{let{loading:t,disabledReason:a,name:r}=e,[n,i]=(0,external_react_namespaceObject.useState)(!1);return(0,external_react_namespaceObject.useEffect)(()=>{t&&i(!1)},[t]),{tooltipProps:{title:a||r,open:n,onOpen:()=>i(!0),onClose:()=>i(!1)}}},MainIconButton=e=>{let{tooltipProps:t}=MainIconButton_useLogic_useLogic_useLogic(e),{action:a,onActionClick:r,isDisabled:n,tooltipPlacement:i}=e,{name:o,icon:s,needConfirm:l,confirmText:c,confirmButtonProps:p,disabledReason:m,disabled:u,loading:d,isBlockingOperation:_,loadingNote:g,onClick:x,...j}=a,b=e=>(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{withoutContainer:!u,placement:i,...t,children:(0,jsx_runtime_namespaceObject.jsx)(IconButton,{disabled:n||u,loading:d,...j,variant:"text",...e,children:s})},o);return(0,jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment,{children:l?(0,jsx_runtime_namespaceObject.jsx)(ConfirmAction,{text:c,confirmButtonProps:p,actionComponent:e=>b(e),onConfirm:r(x)}):b({onClick:r(x)})})},MainAction_MainAction=({action:e,onActionClick:t,isDisabled:a,tooltipPlacement:r})=>{if("actions"in e){let{disabled:n,icon:i,name:o,disabledReason:s,actions:l}=e;return(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:s||o,withoutContainer:!n,placement:r,children:(0,jsx_runtime_namespaceObject.jsx)(IconDropdownButton,{icon:i,variant:"text",disabled:a||n,children:l.map(({name:e,onClick:a,...r})=>(0,external_react_namespaceObject.createElement)(MenuItem,{...r,key:e,onClick:t(a)},e))})},o)}return(0,jsx_runtime_namespaceObject.jsx)(MainIconButton,{action:e,onActionClick:t,isDisabled:a,tooltipPlacement:r})},SecondaryAction_SecondaryActions=({actions:e,onActionClick:t,tooltipPlacement:a,isDisabled:r})=>(0,jsx_runtime_namespaceObject.jsx)(IconDropdownButton,{icon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.EllipsisVertical,{}),variant:"text",disabled:r,children:e.map(e=>{let{onClick:r,name:n}=e;return(0,external_react_namespaceObject.createElement)(MenuItem,{...e,key:n,tooltipPlacement:a,onClick:t(r)},n)})}),DataGridActionCell_styles_Wrapper=(0,material_namespaceObject.styled)("div")`
|
|
692
723
|
display: inline-flex;
|
|
693
724
|
align-items: center;
|
|
694
725
|
`,DataGridActionCell_useLogic_useLogic_useLogic=({row:e,actions:t})=>{let{main:a,secondary:r}=t,{addDisabledRow:n,removeDisabledRow:i}=(0,external_react_namespaceObject.useContext)(RowContext),o=[...a,...r||[]].find(e=>e.isBlockingOperation&&e.loading),s=!!o;return(0,external_react_namespaceObject.useEffect)(()=>{if(o)return n(o?.loadingNote);i()},[o]),{isDisabledAction:s,handleActionClick:(0,external_react_namespaceObject.useCallback)(t=>()=>{t?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}},DataGridActionCell_TOOLTIP_PLACEMENT={mainAction:"top",secondaryAction:"left"},DataGridActionCell=e=>{let{isDisabledAction:t,handleWrapperClick:a,handleActionClick:r}=DataGridActionCell_useLogic_useLogic_useLogic(e),{actions:n}=e,{main:i,secondary:o}=n;return(0,jsx_runtime_namespaceObject.jsxs)(DataGridActionCell_styles_Wrapper,{onClick:a,children:[i.map(e=>(0,jsx_runtime_namespaceObject.jsx)(MainAction_MainAction,{action:e,onActionClick:r,isDisabled:t,tooltipPlacement:DataGridActionCell_TOOLTIP_PLACEMENT.mainAction},e.name)),o&&(0,jsx_runtime_namespaceObject.jsx)(SecondaryAction_SecondaryActions,{actions:o,onActionClick:r,tooltipPlacement:DataGridActionCell_TOOLTIP_PLACEMENT.secondaryAction,isDisabled:t})]})},Pagination=({...e})=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Pagination,{shape:"rounded",...e}),styles_StyledTag=(0,material_namespaceObject.styled)(Tag,{shouldForwardProp:e=>"$shrinks"!==e})`
|
|
@@ -703,7 +734,7 @@
|
|
|
703
734
|
`,Tag_useLogic_useLogic_useLogic=()=>({onMouseDown:e=>{e.stopPropagation()}}),Tag_Tag=e=>{let{onMouseDown:t}=Tag_useLogic_useLogic_useLogic(),{shrinks:a,isDisabled:r,...n}=e;return(0,jsx_runtime_namespaceObject.jsx)(styles_StyledTag,{$shrinks:a,color:"grey",disabled:r,...n,onMouseDown:t})},TagsList_styles_Wrapper=(0,material_namespaceObject.styled)("div")`
|
|
704
735
|
display: flex;
|
|
705
736
|
column-gap: ${({theme:e})=>e.spacing(1)};
|
|
706
|
-
`,getElementByText=(e,t)=>{if(e.innerHTML===t)return e;for(let a=0;a<e.children.length;a+=1){let r=getElementByText(e.children[a],t);if(r)return r}return null},TagsList_useLogic_useLogic_useLogic=({data:e=[],keyId:t,getOptionLabel:a,onChange:r})=>{let[n,i]=(0,external_react_namespaceObject.useState)(1),o=(0,external_react_namespaceObject.useRef)(!1),s=(0,external_react_namespaceObject.useRef)(null),l=(t,r,n)=>{let i=a(e[0]);document.body.appendChild(t);let o=0,s=0;for(let l=1;l<e.length;l+=1){let c=t.firstChild?.cloneNode(!0),p=a(e[l]),
|
|
737
|
+
`,getElementByText=(e,t)=>{if(e.innerHTML===t)return e;for(let a=0;a<e.children.length;a+=1){let r=getElementByText(e.children[a],t);if(r)return r}return null},TagsList_useLogic_useLogic_useLogic=({data:e=[],keyId:t,getOptionLabel:a,onChange:r})=>{let[n,i]=(0,external_react_namespaceObject.useState)(1),o=(0,external_react_namespaceObject.useRef)(!1),s=(0,external_react_namespaceObject.useRef)(null),l=(t,r,n)=>{let i=a(e[0]);document.body.appendChild(t);let o=0,s=0;for(let l=1;l<e.length;l+=1){let c=t.firstChild?.cloneNode(!0),p=a(e[l]),m=getElementByText(c,i);if(!m)throw Error("Could not find text node");m.textContent=p,t.appendChild(c);let u=c.getBoundingClientRect().width+n;if(o+u>r)break;s+=1,o+=u}return document.body.removeChild(t),s},c=()=>{let e=s.current;if(!e)throw Error("Tags container ref is not set");let t=Number.parseInt(window.getComputedStyle(e).columnGap),a=e.firstElementChild?.getBoundingClientRect().width||0,r=e.getBoundingClientRect().width-a,n=e.cloneNode(!0);for(;n.lastElementChild&&n.children.length>1;)n.removeChild(n.lastElementChild);n.style.visibility="hidden",i(1+l(n,r,t))};(0,external_react_namespaceObject.useLayoutEffect)(()=>{"undefined"!=typeof window&&e&&e.length&&(c(),o.current=!0)},[e]),(0,external_react_namespaceObject.useEffect)(()=>{if("undefined"==typeof window||!e||!e.length)return;if(!s.current)throw Error("Tags container ref is not set");let t=new ResizeObserver(()=>{if(o.current){o.current=!1;return}c()});return t.observe(s.current),()=>t.disconnect()},[e]);let p=e?.slice(0,n);return{maxItems:n,visibleOptions:p,tagsContainerRef:s,getTagProps:(i,o)=>{let s=a(i);return{label:s,shrinks:o===n-1&&n<=e.length,onDelete:()=>{let a=e?.filter(e=>"string"==typeof e?e!==i:e[t]!==i[t]);r(a?.length?a:[])}}}}},getKey=(e,t)=>{if("string"==typeof e)return e;let a=e[t];return"number"==typeof a?a.toString():a},TagsList=e=>{let{maxItems:t,tagsContainerRef:a,visibleOptions:r,getTagProps:n}=TagsList_useLogic_useLogic_useLogic(e),{className:i,data:o,keyId:s,isDisabled:l,onClick:c}=e;return(0,jsx_runtime_namespaceObject.jsxs)(TagsList_styles_Wrapper,{className:i,ref:a,children:[r?.map((e,t)=>{let a=n(e,t);return jsx_runtime_namespaceObject.jsx(Tag_Tag,{isDisabled:l,onClick:c,...a},getKey(e,s))}),o&&t<o.length&&(0,jsx_runtime_namespaceObject.jsx)(Tag_Tag,{isDisabled:l,label:`+${o.length-t}`,onClick:c},"more")]})},CLEAR_TEXT="Очистить",ProgressWrapper=(0,material_namespaceObject.styled)("div")`
|
|
707
738
|
display: flex;
|
|
708
739
|
flex-direction: column;
|
|
709
740
|
align-items: center;
|
|
@@ -746,7 +777,7 @@
|
|
|
746
777
|
.${material_namespaceObject.selectClasses.select} {
|
|
747
778
|
padding-right: ${({theme:e})=>e.spacing(2)} !important;
|
|
748
779
|
}
|
|
749
|
-
`;function Select_useLogic_useLogic_useLogic({value:e,onChange:t,children:a,open:r,defaultOpen:n,multiple:i,isShowClearButton:o=!0}){let[s,l]=(0,external_react_namespaceObject.useState)(n||r||!1),c=(0,external_react_namespaceObject.useRef)(null),p=o&&!(!e||Array.isArray(e)&&0===e.length||"string"==typeof e&&0===e.length);return{isOpened:s,isNoData:!external_react_namespaceObject.Children.count(a),isShowingClearButton:p,resetButtonRef:c,openSelect:()=>l(!0),closeSelect:()=>l(!1),onClearAll:()=>{t?.call({},{target:{value:i?[]:""}})}}}let ClearButton=({onClick:e,disabled:t,ref:a})=>(0,jsx_runtime_namespaceObject.jsx)(StyledIconButton,{disabled:t,ref:a,onClick:e,variant:"text",title:CLEAR_TEXT,"aria-label":CLEAR_TEXT,children:(0,jsx_runtime_namespaceObject.jsx)(StyledCloseFillSm,{})}),Select=({required:e,getOptionLabel:t=e=>e,placeholder:a,helperText:r,hideHelperText:n=!1,loading:i,success:o,children:s,disabled:l,error:c,label:p,fullWidth:
|
|
780
|
+
`;function Select_useLogic_useLogic_useLogic({value:e,onChange:t,children:a,open:r,defaultOpen:n,multiple:i,isShowClearButton:o=!0}){let[s,l]=(0,external_react_namespaceObject.useState)(n||r||!1),c=(0,external_react_namespaceObject.useRef)(null),p=o&&!(!e||Array.isArray(e)&&0===e.length||"string"==typeof e&&0===e.length);return{isOpened:s,isNoData:!external_react_namespaceObject.Children.count(a),isShowingClearButton:p,resetButtonRef:c,openSelect:()=>l(!0),closeSelect:()=>l(!1),onClearAll:()=>{t?.call({},{target:{value:i?[]:""}})}}}let ClearButton=({onClick:e,disabled:t,ref:a})=>(0,jsx_runtime_namespaceObject.jsx)(StyledIconButton,{disabled:t,ref:a,onClick:e,variant:"text",title:CLEAR_TEXT,"aria-label":CLEAR_TEXT,children:(0,jsx_runtime_namespaceObject.jsx)(StyledCloseFillSm,{})}),Select=({required:e,getOptionLabel:t=e=>e,placeholder:a,helperText:r,hideHelperText:n=!1,loading:i,success:o,children:s,disabled:l,error:c,label:p,fullWidth:m,onChange:u,isShowClearButton:d,..._})=>{let{isOpened:g,isShowingClearButton:x,isNoData:j,onClearAll:b,openSelect:h,closeSelect:y,resetButtonRef:O}=Select_useLogic_useLogic_useLogic({..._,children:s,onChange:u,isShowClearButton:d});return(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.FormControl,{error:c,fullWidth:m,children:[p&&(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.InputLabel,{htmlFor:"grouped-select",required:e,children:p}),(0,jsx_runtime_namespaceObject.jsxs)(StyledSelect,{..._,open:g,disabled:l,onOpen:h,onClose:y,renderValue:e=>Array.isArray(e)&&e.length?(0,jsx_runtime_namespaceObject.jsx)(TagsList,{data:e,keyId:"value",getOptionLabel:t,onChange:e=>e?u?.({target:{value:e}},void 0):u?.({target:{value:[]}},void 0),onClick:h}):(Array.isArray(e)||"string"==typeof e)&&!e.length?a:t(e),IconComponent:()=>null,displayEmpty:!0,fullWidth:m,onChange:u,endAdornment:(0,jsx_runtime_namespaceObject.jsxs)(EndAdornmentWrapper,{children:[x&&(0,jsx_runtime_namespaceObject.jsx)(ClearButton,{disabled:l,ref:O,onClick:b}),(0,jsx_runtime_namespaceObject.jsx)(StyledIconButton,{variant:"text",disabled:l,onClick:h,children:g?(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronUp,{}):(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown,{})})]}),children:[(0,jsx_runtime_namespaceObject.jsx)(styles_Placeholder,{value:"",children:a}),i&&(0,jsx_runtime_namespaceObject.jsx)(ProgressWrapper,{children:(0,jsx_runtime_namespaceObject.jsx)(CircularProgress,{color:"primary"})}),!i&&s,!i&&j&&(0,jsx_runtime_namespaceObject.jsx)(MenuItem,{disabled:!0,children:"Нет данных"})]}),!n&&(0,jsx_runtime_namespaceObject.jsx)(FormHelperText,{error:c,success:o,children:r})]})},DEFAULT_ROWS_PER_PAGE=20,DEFAULT_ROWS_PER_PAGE_OPTION=[20,50,100],PaginationWrapper=(0,material_namespaceObject.styled)("div")`
|
|
750
781
|
display: flex;
|
|
751
782
|
align-items: center;
|
|
752
783
|
justify-content: space-between;
|
|
@@ -763,7 +794,7 @@
|
|
|
763
794
|
.${material_namespaceObject.formControlClasses.root} {
|
|
764
795
|
flex-direction: unset;
|
|
765
796
|
}
|
|
766
|
-
`,DataGridPagination_useLogic_useLogic_useLogic=({totalCount:e,rowsPerPage:t=DEFAULT_ROWS_PER_PAGE,page:a,onSetCountPerPage:r})=>{let n=(0,external_react_namespaceObject.useRef)(0);(0,external_react_namespaceObject.useEffect)(()=>{e&&(n.current=e)},[e]);let i=e||n.current,o=Math.ceil(i/t),s=(a-1)*t+1,l=()=>{let e=a*t;return e<i?e:i};return{isVisiblePagination:!(!r&&i<=t),pageCount:o,formattedRange:()=>`${s} — ${l()} из ${i} записей`,handleChangeRowsPerPage:e=>{r?.(Number(e.target.value))}}},DataGridPagination=e=>{let{isVisiblePagination:t,pageCount:a,formattedRange:r,handleChangeRowsPerPage:n}=DataGridPagination_useLogic_useLogic_useLogic(e),{page:i,totalCount:o,className:s,rowsPerPage:l=DEFAULT_ROWS_PER_PAGE,rowsPerPageOptions:c=DEFAULT_ROWS_PER_PAGE_OPTION,isForceCounter:p,disabled:
|
|
797
|
+
`,DataGridPagination_useLogic_useLogic_useLogic=({totalCount:e,rowsPerPage:t=DEFAULT_ROWS_PER_PAGE,page:a,onSetCountPerPage:r})=>{let n=(0,external_react_namespaceObject.useRef)(0);(0,external_react_namespaceObject.useEffect)(()=>{e&&(n.current=e)},[e]);let i=e||n.current,o=Math.ceil(i/t),s=(a-1)*t+1,l=()=>{let e=a*t;return e<i?e:i};return{isVisiblePagination:!(!r&&i<=t),pageCount:o,formattedRange:()=>`${s} — ${l()} из ${i} записей`,handleChangeRowsPerPage:e=>{r?.(Number(e.target.value))}}},DataGridPagination=e=>{let{isVisiblePagination:t,pageCount:a,formattedRange:r,handleChangeRowsPerPage:n}=DataGridPagination_useLogic_useLogic_useLogic(e),{page:i,totalCount:o,className:s,rowsPerPage:l=DEFAULT_ROWS_PER_PAGE,rowsPerPageOptions:c=DEFAULT_ROWS_PER_PAGE_OPTION,isForceCounter:p,disabled:m,onSetCountPerPage:u,...d}=e;return(t||p)&&o?(0,jsx_runtime_namespaceObject.jsxs)(PaginationWrapper,{className:s,children:[(0,jsx_runtime_namespaceObject.jsxs)(RangeWrapper,{children:[u&&(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(Typography,{variant:"body1",children:"Строк на странице:"}),(0,jsx_runtime_namespaceObject.jsx)(Select,{size:"small",value:l,disabled:m,isShowClearButton:!1,onChange:n,children:c.map(e=>(0,jsx_runtime_namespaceObject.jsx)(MenuItem,{value:e,children:e},e))})]}),(0,jsx_runtime_namespaceObject.jsx)(Range,{variant:"h6",children:r()})]}),t&&(0,jsx_runtime_namespaceObject.jsx)(Pagination,{disabled:m,count:a,page:i,...d})]}):null},DEFAULT_SEPARATOR=":",DEFAULT_SYMBOL="—",DESCRIPTION_ROOT_CLASSNAME="astral-ui_descriptionRoot",DescriptionContext=(0,external_react_namespaceObject.createContext)({leader:!1,separator:DEFAULT_SEPARATOR,direction:"default"}),DescriptionContextProvider=({children:e,leader:t,separator:a,direction:r})=>(0,jsx_runtime_namespaceObject.jsx)(DescriptionContext.Provider,{value:{leader:t,separator:a,direction:r},children:e}),Name_styles_Wrapper=(0,material_namespaceObject.styled)("dt",{shouldForwardProp:e=>"$leader"!==e})`
|
|
767
798
|
flex-shrink: 0;
|
|
768
799
|
|
|
769
800
|
max-width: ${({$leader:e})=>e?"calc(100% - 36px)":"calc(100% - 12px)"};
|
|
@@ -859,34 +890,7 @@
|
|
|
859
890
|
display: ${({$isCopy:e})=>e&&"flex"};
|
|
860
891
|
|
|
861
892
|
width: ${({$isCopy:e})=>e&&"calc(100% - 20px)"};
|
|
862
|
-
`,getTooltipProps=e=>e?{title:void 0}:void 0,DescriptionList=({items:e,variant:t="default",title:a,direction:r,...n})=>{let i=(0,external_react_namespaceObject.useCallback)((e,t)=>{let{renderValue:a,color:r,canCopy:n,copyPosition:i,variant:o,copyText:s}=t;if(a)return a(e,t);if("tag"===o)return(0,jsx_runtime_namespaceObject.jsx)(Description_Description.Value,{children:(0,jsx_runtime_namespaceObject.jsx)(Tag,{label:e,color:r,variant:"light"})});if("guid"===o){let t=getTooltipProps(n);return(0,jsx_runtime_namespaceObject.jsx)(StyledDescriptionValue,{canCopy:n,$isCopy:n,color:r,copyPosition:i,copyText:s,children:(0,jsx_runtime_namespaceObject.jsx)(GuidTypography,{tooltipProps:t,children:e})})}return(0,jsx_runtime_namespaceObject.jsx)(Description_Description.Value,{canCopy:n,color:r,copyPosition:i,children:e})},[]);return(0,jsx_runtime_namespaceObject.jsxs)(DescriptionList_styles_Wrapper,{$variant:t,children:[a&&("string"==typeof a?(0,jsx_runtime_namespaceObject.jsx)(Typography,{variant:"h6",children:a}):a),(0,jsx_runtime_namespaceObject.jsx)(ListWrapper,{$direction:r,children:e.map(({name:e,value:t,options:a})=>{let{nameMaxWidth:o,...s}=a||{};return(0,jsx_runtime_namespaceObject.jsxs)(Description_Description,{direction:r,...n,component:"div",children:[(0,jsx_runtime_namespaceObject.jsx)(StyledDescriptionName,{$nameMaxWidth:o,$direction:r,children:e}),i(t,s)]},`${e}:${t}`)})})]})},
|
|
863
|
-
&.${material_namespaceObject.dialogClasses.root} .${material_namespaceObject.backdropClasses.root} {
|
|
864
|
-
background-color: ${({theme:e})=>e.palette.background.modalShadow};
|
|
865
|
-
}
|
|
866
|
-
.${material_namespaceObject.dialogClasses.paper} {
|
|
867
|
-
min-width: ${({$size:e})=>getSize(e).minWidth};
|
|
868
|
-
max-width: ${({$size:e})=>getSize(e).maxWidth};
|
|
869
|
-
}
|
|
870
|
-
`,Dialog=({children:e,title:t,disableBackdropClick:a,onClose:r,size:n="md",...i})=>{let o=r&&((e,t)=>{(!a||"backdropClick"!==t)&&r(e,t)}),{isMobile:s}=useViewportType();return s?(0,jsx_runtime_namespaceObject.jsx)(BottomDrawer,{onClose:o,title:t,children:e}):(0,jsx_runtime_namespaceObject.jsxs)(StyledDialog,{$size:n,onClose:o,...i,children:[t&&(0,jsx_runtime_namespaceObject.jsx)(DialogTitle,{onClose:r,children:t}),e]})},StyledDialogActions=(0,material_namespaceObject.styled)(material_namespaceObject.DialogActions)`
|
|
871
|
-
padding-top: 0;
|
|
872
|
-
|
|
873
|
-
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
874
|
-
padding: ${({theme:e})=>e.spacing(4)};
|
|
875
|
-
}
|
|
876
|
-
`,StyledGrid=(0,material_namespaceObject.styled)(Container)`
|
|
877
|
-
${({theme:e})=>e.breakpoints.up("sm")} {
|
|
878
|
-
flex-direction: column;
|
|
879
|
-
justify-content: end;
|
|
880
|
-
}
|
|
881
|
-
`,DialogActions=({children:e,disableSpacing:t,...a})=>(0,jsx_runtime_namespaceObject.jsx)(StyledDialogActions,{...a,children:(0,jsx_runtime_namespaceObject.jsx)(StyledGrid,{gap:2*!t,children:e})}),StyledDialogContent=(0,material_namespaceObject.styled)(material_namespaceObject.DialogContent)`
|
|
882
|
-
padding-bottom: ${({theme:e})=>e.spacing(6)};
|
|
883
|
-
|
|
884
|
-
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
885
|
-
padding: ${({theme:e})=>e.spacing(5,4)};
|
|
886
|
-
}
|
|
887
|
-
`,DialogContent=e=>(0,jsx_runtime_namespaceObject.jsx)(StyledDialogContent,{...e}),StyledDialogContentText=(0,material_namespaceObject.styled)(material_namespaceObject.DialogContentText)`
|
|
888
|
-
color: ${({theme:e})=>e.palette.grey[900]};
|
|
889
|
-
`,DialogContentText=e=>(0,jsx_runtime_namespaceObject.jsx)(StyledDialogContentText,{...e}),DialogHeader_styles_Wrapper=(0,material_namespaceObject.styled)("div",{label:"DialogHeader-root",shouldForwardProp:e=>!["hasTitle","hasOnClose"].includes(e.toString())})`
|
|
893
|
+
`,getTooltipProps=e=>e?{title:void 0}:void 0,DescriptionList=({items:e,variant:t="default",title:a,direction:r,...n})=>{let i=(0,external_react_namespaceObject.useCallback)((e,t)=>{let{renderValue:a,color:r,canCopy:n,copyPosition:i,variant:o,copyText:s}=t;if(a)return a(e,t);if("tag"===o)return(0,jsx_runtime_namespaceObject.jsx)(Description_Description.Value,{children:(0,jsx_runtime_namespaceObject.jsx)(Tag,{label:e,color:r,variant:"light"})});if("guid"===o){let t=getTooltipProps(n);return(0,jsx_runtime_namespaceObject.jsx)(StyledDescriptionValue,{canCopy:n,$isCopy:n,color:r,copyPosition:i,copyText:s,children:(0,jsx_runtime_namespaceObject.jsx)(GuidTypography,{tooltipProps:t,children:e})})}return(0,jsx_runtime_namespaceObject.jsx)(Description_Description.Value,{canCopy:n,color:r,copyPosition:i,children:e})},[]);return(0,jsx_runtime_namespaceObject.jsxs)(DescriptionList_styles_Wrapper,{$variant:t,children:[a&&("string"==typeof a?(0,jsx_runtime_namespaceObject.jsx)(Typography,{variant:"h6",children:a}):a),(0,jsx_runtime_namespaceObject.jsx)(ListWrapper,{$direction:r,children:e.map(({name:e,value:t,options:a})=>{let{nameMaxWidth:o,...s}=a||{};return(0,jsx_runtime_namespaceObject.jsxs)(Description_Description,{direction:r,...n,component:"div",children:[(0,jsx_runtime_namespaceObject.jsx)(StyledDescriptionName,{$nameMaxWidth:o,$direction:r,children:e}),i(t,s)]},`${e}:${t}`)})})]})},DialogHeader_styles_Wrapper=(0,material_namespaceObject.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"};
|
|
@@ -905,7 +909,20 @@
|
|
|
905
909
|
width: 100%;
|
|
906
910
|
height: 100%;
|
|
907
911
|
padding: 0;
|
|
908
|
-
`,DialogHeader=({children:e,title:t,justifyContent:a="flex-start",disableSpacing:r,onClose:n})=>(0,jsx_runtime_namespaceObject.jsxs)(DialogHeader_styles_Wrapper,{hasTitle:!!t,hasOnClose:!!n,children:[t&&(0,jsx_runtime_namespaceObject.jsx)(Typography,{variant:"h4",children:t}),(0,jsx_runtime_namespaceObject.jsx)(HeaderContent,{justifyContent:a,columnSpacing:2*!r,children:e}),n&&(0,jsx_runtime_namespaceObject.jsx)(IconButton,{variant:"text",onClick:e=>{n&&n(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X,{})})]}),
|
|
912
|
+
`,DialogHeader=({children:e,title:t,justifyContent:a="flex-start",disableSpacing:r,onClose:n})=>(0,jsx_runtime_namespaceObject.jsxs)(DialogHeader_styles_Wrapper,{hasTitle:!!t,hasOnClose:!!n,children:[t&&(0,jsx_runtime_namespaceObject.jsx)(Typography,{variant:"h4",children:t}),(0,jsx_runtime_namespaceObject.jsx)(HeaderContent,{justifyContent:a,columnSpacing:2*!r,children:e}),n&&(0,jsx_runtime_namespaceObject.jsx)(IconButton,{variant:"text",onClick:e=>{n&&n(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X,{})})]}),DropdownButton=({children:e,name:t,popoverProps:a,...r})=>{let{open:n,anchorRef:i,handleOpenMenu:o,handleCloseMenu:s}=useMenu();return(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.ClickAwayListener,{onClickAway:s,children:(0,jsx_runtime_namespaceObject.jsx)(Button,{...r,ref:i,selected:n,onClick:o,endIcon:(0,jsx_runtime_namespaceObject.jsx)(Chevron,{isActive:n}),children:t})}),(0,jsx_runtime_namespaceObject.jsx)(Menu,{open:n,anchorEl:i.current,...a,children:e})]})},FileBaseName=(0,material_namespaceObject.styled)("span")`
|
|
913
|
+
overflow: hidden;
|
|
914
|
+
|
|
915
|
+
max-width: 100%;
|
|
916
|
+
|
|
917
|
+
text-overflow: ellipsis;
|
|
918
|
+
white-space: nowrap;
|
|
919
|
+
`,Filename_styles_StyledTypography=(0,material_namespaceObject.styled)(Typography,{shouldForwardProp:e=>!["$align"].includes(e.toString())})`
|
|
920
|
+
display: flex;
|
|
921
|
+
justify-content: ${({$align:e})=>e};
|
|
922
|
+
`,COMPLEX_EXTENSIONS=[".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"],findExtension=e=>{for(let t of COMPLEX_EXTENSIONS)if(e.endsWith(t))return t;let t=e.lastIndexOf(".");if(-1!==t)return e.slice(t)},SUFFIX_LENGTH=2,truncateString_truncateString=e=>{let t=findExtension(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)}},Filename_useLogic_useLogic_useLogic=({ref:e,children:t})=>{let{ref:a,isOverflowed:r}=useOverflowed(e),{baseName:n,suffixWithExtension:i}=truncateString_truncateString(t);return{baseNameProps:{ref:a,children:n},isOverflowed:r,suffixWithExtension:i}},Filename=(0,external_react_namespaceObject.forwardRef)((e,t)=>{let{isOverflowed:a,suffixWithExtension:r,baseNameProps:n}=Filename_useLogic_useLogic_useLogic({...e,ref:t}),{tooltipProps:i,variant:o="inherit",children:s,align:l="left",...c}=e;return(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:a&&s,disableInteractive:!0,...i,children:(0,jsx_runtime_namespaceObject.jsxs)(Filename_styles_StyledTypography,{$align:l,variant:o,...c,children:[(0,jsx_runtime_namespaceObject.jsx)(FileBaseName,{...n}),(0,jsx_runtime_namespaceObject.jsx)("span",{children:r})]})})}),StyledFormLabel=(0,material_namespaceObject.styled)(material_namespaceObject.FormLabel)`
|
|
923
|
+
font-size: ${({theme:e})=>e.typography.pointer.fontSize};
|
|
924
|
+
line-height: ${({theme:e})=>e.typography.pointer.lineHeight};
|
|
925
|
+
`,FormLabel=e=>(0,jsx_runtime_namespaceObject.jsx)(StyledFormLabel,{...e}),StyledLink=(0,material_namespaceObject.styled)(material_namespaceObject.Link)`
|
|
909
926
|
display: inline-flex;
|
|
910
927
|
gap: ${({theme:e})=>e.spacing(1)};
|
|
911
928
|
align-items: baseline;
|
|
@@ -1045,7 +1062,66 @@
|
|
|
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
|
-
`,ItemButton=e=>{let{collapsedIn:t,opened:a,text:r,icon:n,component:i="a",...o}=e,{isMobile:s}=useViewportType(),l="boolean"==typeof a;return(0,jsx_runtime_namespaceObject.jsxs)(StyledListItemButton,{$isGroupTitleItem:l,component:i,withoutContainer:!0,...o,children:[s?(0,jsx_runtime_namespaceObject.jsx)(NavMenuItemButtonText,{tooltipProps:{placement:"right"},rowsCount:1,children:r}):(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{arrow:!0,title:!t&&r,placement:"right",children:(0,jsx_runtime_namespaceObject.jsx)(NavMenuItemButtonIcon,{children:n})}),(0,jsx_runtime_namespaceObject.jsx)(Collapse,{orientation:"horizontal",in:t,children:(0,jsx_runtime_namespaceObject.jsx)(NavMenuItemButtonText,{tooltipProps:{placement:"right"},rowsCount:1,children:r})})]}),l&&(0,jsx_runtime_namespaceObject.jsx)(NavMenuItemButtonChevron,{collapsedIn:t,opened:a})]})},List_List=e=>{let{collapsedIn:t,items:a}=e;return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.List,{disablePadding:!0,children:a.map(e=>{let[a,r]=e;return(0,jsx_runtime_namespaceObject.jsx)("li",{children:(0,jsx_runtime_namespaceObject.jsx)(ItemButton,{collapsedIn:t,selected:r.active,text:r.text,icon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Dot,{}),component:r.component})},a)})})},Item=e=>{let{collapsedIn:t,item:[,a]}=e,{active:r,icon:n,items:i,text:o,component:s,...l}=a,[c,p]=(0,external_react_namespaceObject.useState)(i?.some(([,{active:e}])=>e)),
|
|
1065
|
+
`,ItemButton=e=>{let{collapsedIn:t,opened:a,text:r,icon:n,component:i="a",...o}=e,{isMobile:s}=useViewportType(),l="boolean"==typeof a;return(0,jsx_runtime_namespaceObject.jsxs)(StyledListItemButton,{$isGroupTitleItem:l,component:i,withoutContainer:!0,...o,children:[s?(0,jsx_runtime_namespaceObject.jsx)(NavMenuItemButtonText,{tooltipProps:{placement:"right"},rowsCount:1,children:r}):(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{arrow:!0,title:!t&&r,placement:"right",children:(0,jsx_runtime_namespaceObject.jsx)(NavMenuItemButtonIcon,{children:n})}),(0,jsx_runtime_namespaceObject.jsx)(Collapse,{orientation:"horizontal",in:t,children:(0,jsx_runtime_namespaceObject.jsx)(NavMenuItemButtonText,{tooltipProps:{placement:"right"},rowsCount:1,children:r})})]}),l&&(0,jsx_runtime_namespaceObject.jsx)(NavMenuItemButtonChevron,{collapsedIn:t,opened:a})]})},List_List=e=>{let{collapsedIn:t,items:a}=e;return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.List,{disablePadding:!0,children:a.map(e=>{let[a,r]=e;return(0,jsx_runtime_namespaceObject.jsx)("li",{children:(0,jsx_runtime_namespaceObject.jsx)(ItemButton,{collapsedIn:t,selected:r.active,text:r.text,icon:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Dot,{}),component:r.component})},a)})})},Item=e=>{let{collapsedIn:t,item:[,a]}=e,{active:r,icon:n,items:i,text:o,component:s,...l}=a,[c,p]=(0,external_react_namespaceObject.useState)(i?.some(([,{active:e}])=>e)),m=(0,external_react_namespaceObject.useMemo)(()=>!c&&r,[c,r]),u=(0,external_react_namespaceObject.useCallback)(()=>{p(e=>{if("boolean"==typeof e)return!e})},[]);return(0,jsx_runtime_namespaceObject.jsxs)("li",{children:[(0,jsx_runtime_namespaceObject.jsx)(ItemButton,{opened:c,collapsedIn:t,selected:m,text:o,icon:n,component:s,...l,onClick:u}),i&&(0,jsx_runtime_namespaceObject.jsx)(Collapse,{in:c,children:(0,jsx_runtime_namespaceObject.jsx)(List_List,{collapsedIn:t,items:i})})]})},NavMenu=e=>{let{collapsedIn:t=!0,items:a}=e;return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.List,{disablePadding:!0,children:a.map(e=>(0,jsx_runtime_namespaceObject.jsx)(Item,{collapsedIn:t,item:e},e[0]))})},Paper=e=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Paper,{...e}),ProgressBar=({className:e,value:t})=>{let a=Math.max(0,Math.min(t,100));return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.LinearProgress,{className:e,variant:"determinate",value:a})},DEFAULT_ICON_CLASSES={innerCircle:"RadioIcon-innerCircle",outerCircle:"RadioIcon-outerCircle"},CHECKED_ICON_CLASSES={innerCircle:"RadioCheckedIcon-innerCircle",outerCircle:"RadioCheckedIcon-outerCircle"},Icon_DefaultIcon=({...e})=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.SvgIcon,{viewBox:"0 0 24 24",...e,children:[(0,jsx_runtime_namespaceObject.jsx)("circle",{cx:"12",cy:"12",r:"10",className:DEFAULT_ICON_CLASSES.outerCircle}),(0,jsx_runtime_namespaceObject.jsx)("circle",{cx:"12",cy:"12",r:"8",className:DEFAULT_ICON_CLASSES.innerCircle})]}),CheckedCircleIcon=({...e})=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.SvgIcon,{viewBox:"0 0 24 24",...e,children:[(0,jsx_runtime_namespaceObject.jsx)("circle",{cx:"12",cy:"12",r:"10",className:CHECKED_ICON_CLASSES.outerCircle}),(0,jsx_runtime_namespaceObject.jsx)("circle",{cx:"12",cy:"12",r:"4",className:CHECKED_ICON_CLASSES.innerCircle})]}),styles_getErrorStyles=e=>(0,material_namespaceObject.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
|
+
`,StyledRadio=(0,material_namespaceObject.styled)(material_namespaceObject.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 > .${DEFAULT_ICON_CLASSES.innerCircle} {
|
|
1083
|
+
fill: ${({theme:e})=>e.palette.common.white};
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
&:hover {
|
|
1087
|
+
background: none;
|
|
1088
|
+
|
|
1089
|
+
& > svg > .${DEFAULT_ICON_CLASSES.innerCircle} {
|
|
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 > .${DEFAULT_ICON_CLASSES.innerCircle} {
|
|
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 > .${CHECKED_ICON_CLASSES.innerCircle} {
|
|
1116
|
+
fill: ${({theme:e})=>e.palette.common.white};
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
${({isError:e,theme:t})=>e&&styles_getErrorStyles(t)}
|
|
1121
|
+
`,Radio=({icon:e=(0,jsx_runtime_namespaceObject.jsx)(Icon_DefaultIcon,{}),checkedIcon:t=(0,jsx_runtime_namespaceObject.jsx)(CheckedCircleIcon,{}),...a})=>(0,jsx_runtime_namespaceObject.jsx)(StyledRadio,{icon:e,checkedIcon:t,...a}),styles_StyledFormControlLabel=(0,material_namespaceObject.styled)(material_namespaceObject.FormControlLabel)`
|
|
1122
|
+
margin-right: ${({theme:e})=>e.spacing(6)};
|
|
1123
|
+
margin-left: -7px;
|
|
1124
|
+
`,RadioField=({id:e,disabled:t,label:a,isError:r,disabledReason:n,formControlLabelProps:i,...o})=>(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:t&&n,placement:"bottom-start",withoutContainer:!1,children:(0,jsx_runtime_namespaceObject.jsx)(styles_StyledFormControlLabel,{...i,label:a,control:(0,jsx_runtime_namespaceObject.jsx)(Radio,{...o,isError:r}),disabled:t})},e),RadioGroupContext=(0,external_react_namespaceObject.createContext)({isError:!1}),RadioGroupContextProvider=({children:e,isError:t})=>(0,jsx_runtime_namespaceObject.jsx)(RadioGroupContext.Provider,{value:{isError:t},children:e}),RadioGroup=e=>{let{children:t,groupLabel:a,errorText:r,isError:n,required:i,formControlProps:o,row:s,...l}=e,c=(0,external_react_namespaceObject.useId)();return(0,jsx_runtime_namespaceObject.jsx)(Tooltip,{title:n&&r,placement:"right-start",followCursor:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(FormControl,{...o,children:[a&&(0,jsx_runtime_namespaceObject.jsx)(FormLabel,{id:c,required:i,children:a}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.RadioGroup,{...l,"aria-labelledby":c,row:s,children:(0,jsx_runtime_namespaceObject.jsx)(RadioGroupContextProvider,{isError:n,children:t})})]})})},RadioGroupField=e=>{let{isError:t}=(0,external_react_namespaceObject.useContext)(RadioGroupContext);return(0,jsx_runtime_namespaceObject.jsx)(RadioField,{...e,isError:t})},StyledSearchIcon=(0,material_namespaceObject.styled)(external_lucide_react_namespaceObject.Search)`
|
|
1049
1125
|
color: ${({theme:e})=>e.palette.grey[600]};
|
|
1050
1126
|
`,styles_StyledIconButton=(0,material_namespaceObject.styled)(IconButton,{shouldForwardProp:e=>!["$isActive"].includes(e.toString())})`
|
|
1051
1127
|
opacity: ${({$isActive:e})=>+!!e};
|
|
@@ -1067,7 +1143,65 @@
|
|
|
1067
1143
|
height: 16px;
|
|
1068
1144
|
|
|
1069
1145
|
fill: ${({theme:e})=>e.palette.grey["500"]};
|
|
1070
|
-
`,SearchField=(0,external_react_namespaceObject.forwardRef)(({margin:e="none",placeholder:t="Поиск",onChange:a,disabled:r,value:n,defaultValue:i,...o},s)=>{let[l,c]=(0,external_react_namespaceObject.useState)(`${i||n||""}`),p=(0,external_react_namespaceObject.useRef)(null),
|
|
1146
|
+
`,SearchField=(0,external_react_namespaceObject.forwardRef)(({margin:e="none",placeholder:t="Поиск",onChange:a,disabled:r,value:n,defaultValue:i,...o},s)=>{let[l,c]=(0,external_react_namespaceObject.useState)(`${i||n||""}`),p=(0,external_react_namespaceObject.useRef)(null),m=!!l.length;return(0,jsx_runtime_namespaceObject.jsx)(StyledTextField,{margin:e,placeholder:t,startAdornment:(0,jsx_runtime_namespaceObject.jsx)(StyledSearchIcon,{onClick:()=>{p.current?.focus()}}),disabled:r,endAdornment:(0,jsx_runtime_namespaceObject.jsx)(styles_StyledIconButton,{variant:"text",onClick:()=>{c(""),p.current&&(p.current.value="");let e=new InputEvent("input",{bubbles:!0,cancelable:!0});Object.defineProperty(e,"target",{writable:!0,value:p.current}),a?.(e),p.current?.focus()},disabled:r||!m,$isActive:m,children:(0,jsx_runtime_namespaceObject.jsx)(styles_StyledCloseFillSm,{})}),onChange:e=>{c(e.target.value),a?.(e)},value:l,ref:s,inputRef:p,...o})}),StyledSkeleton=(0,material_namespaceObject.styled)(material_namespaceObject.Skeleton)`
|
|
1147
|
+
/* stylelint-disable-next-line */
|
|
1148
|
+
background-color: ${({theme:e})=>(0,material_namespaceObject.alpha)(e.palette.grey[900],.12)};
|
|
1149
|
+
|
|
1150
|
+
/* TODO: Заменить на значения из темы в рамках
|
|
1151
|
+
https://track.astral.ru/soft/browse/UIKIT-1400 */
|
|
1152
|
+
&.${material_namespaceObject.skeletonClasses.text} {
|
|
1153
|
+
border-radius: 4px;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
&.${material_namespaceObject.skeletonClasses.rounded} {
|
|
1157
|
+
border-radius: 4px;
|
|
1158
|
+
}
|
|
1159
|
+
`,Skeleton=e=>(0,jsx_runtime_namespaceObject.jsx)(StyledSkeleton,{...e}),StyledSwitch=(0,material_namespaceObject.styled)(material_namespaceObject.Switch)`
|
|
1160
|
+
.Mui-focusVisible {
|
|
1161
|
+
border: 2px solid ${({theme:e})=>e.palette.primary[400]};
|
|
1162
|
+
}
|
|
1163
|
+
${`.${material_namespaceObject.switchClasses.track}`}::before {
|
|
1164
|
+
display: none;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
${`.${material_namespaceObject.switchClasses.track}`}::after {
|
|
1168
|
+
display: none;
|
|
1169
|
+
}
|
|
1170
|
+
`,Switch=(0,external_react_namespaceObject.forwardRef)((e,t)=>(0,jsx_runtime_namespaceObject.jsx)(StyledSwitch,{ref:t,...e})),StyledTab=(0,material_namespaceObject.styled)(material_namespaceObject.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
|
+
`,Tab=e=>(0,jsx_runtime_namespaceObject.jsx)(StyledTab,{...e}),Tabs_styles_Container=(0,material_namespaceObject.styled)("div")`
|
|
1190
|
+
display: flex;
|
|
1191
|
+
flex-direction: column;
|
|
1192
|
+
align-items: flex-start;
|
|
1193
|
+
|
|
1194
|
+
width: 100%;
|
|
1195
|
+
`,styles_Divider=(0,material_namespaceObject.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
|
+
`,Tabs=({nextFeatureFlags:e,...t})=>e?.hasBottomDivider?(0,jsx_runtime_namespaceObject.jsxs)(Tabs_styles_Container,{children:[(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Tabs,{...t}),(0,jsx_runtime_namespaceObject.jsx)(styles_Divider,{})]}):(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Tabs,{...t}),styles_StyledBadge=(0,material_namespaceObject.styled)(Badge)`
|
|
1071
1205
|
vertical-align: text-top;
|
|
1072
1206
|
|
|
1073
1207
|
& span.MuiBadge-badge {
|
|
@@ -1077,4 +1211,4 @@
|
|
|
1077
1211
|
box-sizing: content-box;
|
|
1078
1212
|
height: 16px;
|
|
1079
1213
|
}
|
|
1080
|
-
`,getCheckableTagBadgeBgColor=({disabled:e,checked:t,checkedColor:a,color:r})=>e?"grey":t?a||"white":r,TagBadge=({color:e="primary",checked:t,disabled:a,checkedColor:r,...n})=>(0,jsx_runtime_namespaceObject.jsx)(styles_StyledBadge,{withBorder:!1,color:getCheckableTagBadgeBgColor({disabled:a,checked:t,checkedColor:r,color:e}),...n});var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
1214
|
+
`,getCheckableTagBadgeBgColor=({disabled:e,checked:t,checkedColor:a,color:r})=>e?"grey":t?a||"white":r,TagBadge=({color:e="primary",checked:t,disabled:a,checkedColor:r,...n})=>(0,jsx_runtime_namespaceObject.jsx)(styles_StyledBadge,{withBorder:!1,color:getCheckableTagBadgeBgColor({disabled:a,checked:t,checkedColor:r,color:e}),...n}),TextArea=({rows:e=7,...t})=>(0,jsx_runtime_namespaceObject.jsx)(TextField,{multiline:!0,rows:e,...t});var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|