@max-ts/components 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Carousel/Carousel.d.ts +17 -0
- package/lib/components/Carousel/Carousel.d.ts.map +1 -0
- package/lib/components/Carousel/CarouselContext.d.ts +17 -0
- package/lib/components/Carousel/CarouselContext.d.ts.map +1 -0
- package/lib/components/Carousel/Content/Content.d.ts +2 -0
- package/lib/components/Carousel/Content/Content.d.ts.map +1 -0
- package/lib/components/Carousel/Content/index.d.ts +2 -0
- package/lib/components/Carousel/Content/index.d.ts.map +1 -0
- package/lib/components/Carousel/Content/styles.d.ts +5 -0
- package/lib/components/Carousel/Content/styles.d.ts.map +1 -0
- package/lib/components/Carousel/Dots/Dots.d.ts +6 -0
- package/lib/components/Carousel/Dots/Dots.d.ts.map +1 -0
- package/lib/components/Carousel/Dots/index.d.ts +2 -0
- package/lib/components/Carousel/Dots/index.d.ts.map +1 -0
- package/lib/components/Carousel/Dots/styles.d.ts +8 -0
- package/lib/components/Carousel/Dots/styles.d.ts.map +1 -0
- package/lib/components/Carousel/Dots/useLogic/index.d.ts +2 -0
- package/lib/components/Carousel/Dots/useLogic/index.d.ts.map +1 -0
- package/lib/components/Carousel/Dots/useLogic/useLogic.d.ts +7 -0
- package/lib/components/Carousel/Dots/useLogic/useLogic.d.ts.map +1 -0
- package/lib/components/Carousel/Item/Item.d.ts +2 -0
- package/lib/components/Carousel/Item/Item.d.ts.map +1 -0
- package/lib/components/Carousel/Item/index.d.ts +2 -0
- package/lib/components/Carousel/Item/index.d.ts.map +1 -0
- package/lib/components/Carousel/Item/styles.d.ts +4 -0
- package/lib/components/Carousel/Item/styles.d.ts.map +1 -0
- package/lib/components/Carousel/Next/Next.d.ts +3 -0
- package/lib/components/Carousel/Next/Next.d.ts.map +1 -0
- package/lib/components/Carousel/Next/index.d.ts +2 -0
- package/lib/components/Carousel/Next/index.d.ts.map +1 -0
- package/lib/components/Carousel/Next/styles.d.ts +12 -0
- package/lib/components/Carousel/Next/styles.d.ts.map +1 -0
- package/lib/components/Carousel/Previous/Previous.d.ts +3 -0
- package/lib/components/Carousel/Previous/Previous.d.ts.map +1 -0
- package/lib/components/Carousel/Previous/index.d.ts +2 -0
- package/lib/components/Carousel/Previous/index.d.ts.map +1 -0
- package/lib/components/Carousel/Previous/styles.d.ts +12 -0
- package/lib/components/Carousel/Previous/styles.d.ts.map +1 -0
- package/lib/components/Carousel/index.d.ts +2 -0
- package/lib/components/Carousel/index.d.ts.map +1 -0
- package/lib/components/Carousel/styles.d.ts +2 -0
- package/lib/components/Carousel/styles.d.ts.map +1 -0
- package/lib/components/Carousel/types.d.ts +7 -0
- package/lib/components/Carousel/types.d.ts.map +1 -0
- package/lib/components/Carousel/useLogic/index.d.ts +2 -0
- package/lib/components/Carousel/useLogic/index.d.ts.map +1 -0
- package/lib/components/Carousel/useLogic/useLogic.d.ts +20 -0
- package/lib/components/Carousel/useLogic/useLogic.d.ts.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/index.mjs +309 -252
- package/package.json +2 -1
package/lib/index.mjs
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children as
|
|
2
|
-
min-width: ${({variant:e})=>e===
|
|
3
|
-
padding: ${({variant:e})=>e===
|
|
1
|
+
import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import i,{Children as o,Component as n,Fragment as a,createContext as l,createElement as d,forwardRef as s,useCallback as p,useContext as c,useEffect as g,useId as h,useLayoutEffect as u,useMemo as m,useRef as f,useState as y}from"react";import{ArrowDownNarrowWide as x,ArrowDownToLine as b,ArrowDownUp as $,ArrowDownWideNarrow as v,Calendar1 as w,ChevronDown as C,ChevronLeft as k,ChevronRight as S,ChevronUp as z,ChevronsUpDown as F,CircleCheck as M,CircleX as T,Copy as P,Ellipsis as A,EllipsisVertical as D,Info as I,OctagonAlert as O,PanelLeftClose as E,PanelLeftOpen as L,Search as R,Square as B,SquareArrowOutUpRight as N,SquareCheck as W,SquareMinus as _,TriangleAlert as H,X as j}from"lucide-react";import{Alert as V,AlertTitle as G,Autocomplete as U,Avatar as Y,Badge as K,Breadcrumbs as q,Button as X,ButtonBase as J,ButtonGroup as Z,Card as Q,CardActions as ee,CardContent as et,CardHeader as er,Checkbox as ei,Chip as eo,CircularProgress as en,ClickAwayListener as ea,Collapse as el,CssBaseline as ed,Dialog as es,DialogActions as ep,DialogContent as ec,DialogContentText as eg,DialogTitle as eh,Divider as eu,Drawer as em,FormControl as ef,FormControlLabel as ey,FormHelperText as ex,FormLabel as eb,InputLabel as e$,LinearProgress as ev,Link as ew,List as eC,ListItem as ek,ListItemButton as eS,ListItemIcon as ez,ListItemText as eF,ListSubheader as eM,Menu as eT,MenuItem as eP,MenuList as eA,Pagination as eD,Paper as eI,Popover as eO,Popper as eE,Radio as eL,RadioGroup as eR,Select as eB,Skeleton as eN,Slider as eW,SvgIcon as e_,Switch as eH,Tab as ej,Tabs as eV,TextField as eG,ThemeProvider as eU,Tooltip as eY,Typography as eK,alertClasses as eq,alpha as eX,backdropClasses as eJ,buttonClasses as eZ,cardActionsClasses as eQ,cardClasses as e0,cardContentClasses as e1,cardHeaderClasses as e2,createTheme as e3,css as e8,debounce as e4,dialogClasses as e6,drawerClasses as e5,formControlClasses as e9,iconButtonClasses as e7,inputBaseClasses as te,keyframes as tt,listClasses as tr,menuClasses as ti,menuItemClasses as to,outlinedInputClasses as tn,paperClasses as ta,selectClasses as tl,skeletonClasses as td,sliderClasses as ts,stepLabelClasses as tp,styled as tc,svgIconClasses as tg,switchClasses as th,tooltipClasses as tu,useMediaQuery as tm,useTheme as tf}from"@mui/material";import{mergeDeep as ty,prop as tx,uniqueBy as tb}from"remeda";import{clsx as t$}from"clsx";import{useFirstMountState as tv,useLocalStorage as tw}from"react-use";import{DayPicker as tC,DropdownNav as tk,MonthCaption as tS,Months as tz,Nav as tF}from"react-day-picker";import{ru as tM}from"react-day-picker/locale";import tT from"embla-carousel-react";import{useMask as tP}from"@react-input/mask";import{OTPInput as tA}from"input-otp";import{Toaster as tD,toast as tI}from"sonner";import{Controller as tO,FormProvider as tE,useController as tL,useFieldArray as tR,useForm as tB,useFormContext as tN,useWatch as tW}from"react-hook-form";let t_={values:{xs:0,sm:600,md:900,lg:1200,xl:1536}};var tH,tj,tV,tG,tU,tY,tK,tq,tX,tJ,tZ,tQ,t0,t1,t2,t3,t8=((tH={}).medium="medium",tH.small="small",tH);let t4="button-loading";var t6=((tj={}).Error="error",tj.Success="success",tj.Warning="warning",tj.Primary="primary",tj),t5=((tV={}).Contained="contained",tV.Light="light",tV.Text="text",tV.Link="link",tV),t9=((tG={}).Small="small",tG.Medium="medium",tG.Large="large",tG),t7=((tU={}).Default="default",tU.Active="active",tU.Focus="focus",tU.Hover="hover",tU);let re=e=>{let{size:r}=(({size:e})=>({size:"small"===e?16:24}))({...e}),{size:i,color:o,...n}=e;return t(en,{...n,size:r,color:"inherit","data-color":o})},rt=tc(X)`
|
|
2
|
+
min-width: ${({variant:e})=>e===t5.Link?"auto":""};
|
|
3
|
+
padding: ${({variant:e})=>e===t5.Link?0:""};
|
|
4
4
|
|
|
5
5
|
:active {
|
|
6
6
|
box-shadow: none;
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
8
|
+
`,rr=tc(re)`
|
|
9
9
|
position: absolute;
|
|
10
|
-
`;var re=((tV={}).PRIMARY="primary",tV.INVERTED="inverted",tV);let rt=e=>{let{variant:i=t8.Contained,color:o=t3.Primary,loading:n,loadingIndicator:a,loadingPosition:l,disabled:d,children:s,className:p,...c}=e,{loadingIndicatorColor:g}=(({variant:e})=>({loadingIndicatorColor:u(()=>e!==t8.Contained?re.PRIMARY:re.INVERTED,[e])}))({variant:i});return r(t9,{variant:i,color:o,disabled:n||d,...c,className:tx(p,{[t2]:n}),children:[n&&t(t7,{color:g,size:"small"}),s]})},rr=({type:e,values:t,defaultValue:r})=>e&&t[e]||r,ri=({theme:e,variant:t,color:r,buttonState:i,selected:o})=>{let n={selected:{default:e.palette.grey["900"],hover:e.palette.grey["700"],active:e.palette.grey["800"],focus:e.palette.grey["900"]},light:{error:{default:e.palette.red["900"],hover:e.palette.red["900"],active:e.palette.red["800"],focus:e.palette.red["900"]},success:{default:e.palette.green["900"],hover:e.palette.green["900"],active:e.palette.green["800"],focus:e.palette.green["900"]},primary:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},warning:{default:e.palette.yellow["900"],hover:e.palette.yellow["900"],active:e.palette.yellow["800"],focus:e.palette.yellow["900"]}},contained:e.palette.primary.contrastText,text:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},link:{default:e.palette.primary["800"],hover:e.palette.primary["700"],active:e.palette.primary["900"],focus:e.palette.primary["800"]}};return o?t!==t8.Link?e.palette.primary.contrastText:n.selected[i]:t===t8.Contained?n.contained:t===t8.Light&&r?n.light[r][i]:t===t8.Text?n.text[i]:n.link[i]},ro=({selected:e,color:t,variant:r,buttonState:i,theme:o})=>{let n={selected:{default:o.palette.primary["900"],hover:o.palette.primary["700"],active:o.palette.primary["800"],focus:o.palette.primary["900"]},light:{error:{default:o.palette.red["100"],hover:o.palette.red["200"],active:o.palette.red["100"],focus:o.palette.red["100"]},success:{default:o.palette.green["100"],hover:o.palette.green["200"],active:o.palette.green["100"],focus:o.palette.green["100"]},primary:{default:o.palette.grey["100"],hover:o.palette.grey["200"],active:o.palette.grey["100"],focus:o.palette.grey["100"]},warning:{default:o.palette.yellow["100"],hover:o.palette.yellow["200"],active:o.palette.yellow["100"],focus:o.palette.yellow["100"]}},contained:{error:{default:o.palette.red["800"],hover:o.palette.red["700"],active:o.palette.red["900"],focus:o.palette.red["800"]},success:{default:o.palette.green["800"],hover:o.palette.green["700"],active:o.palette.green["900"],focus:o.palette.green["800"]},primary:{default:o.palette.primary["800"],hover:o.palette.primary["700"],active:o.palette.primary["900"],focus:o.palette.primary["800"]},warning:{default:o.palette.yellow["800"],hover:o.palette.yellow["700"],active:o.palette.yellow["900"],focus:o.palette.yellow["800"]}},text:{default:"transparent",hover:o.palette.grey["200"],active:o.palette.primary["100"],focus:"transparent"},link:"transparent"};return e&&r!==t8.Link?n.selected[i]:r===t8.Light&&t?n.light[t][i]:r===t8.Contained&&t?n.contained[t][i]:r===t8.Text?n.text[i]:n.link},rn=e=>e.replace("#","%23"),ra=e=>{let t=rn(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>')`},rl=e=>{let t=rn(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>')`},rd={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`}})}},MuiButton:{defaultProps:{disableRipple:!0},styleOverrides:{root({ownerState:e,theme:t}){var r;let i,o=e.variant,n=e.color,a=e.selected,l=e.size;return{height:rr({type:{size:l}.size,values:{[t4.Large]:"40px"},defaultValue:"32px"}),padding:rr({type:(i={theme:t,size:l}).size,values:{[t4.Large]:i.theme.spacing(2,4,2,4)},defaultValue:i.theme.spacing(1,3,1,3)}),[t.breakpoints.down("sm")]:{height:rr({type:{size:l}.size,values:{[t4.Small]:"36px"},defaultValue:"48px"}),padding:(r={size:l,theme:t,variant:o}).variant===t8.Link?"0":rr({type:r.size,values:{[t4.Small]:r.theme.spacing(2,3)},defaultValue:r.theme.spacing(4,3)}),whiteSpace:"nowrap"},color:ri({selected:a,theme:t,variant:o,color:n,buttonState:t6.Default}),fontWeight:t.typography.button.fontWeight,fontSize:t.typography.button.fontSize,fontFamily:'"Roboto Variable", "Roboto","Helvetica","Arial",sans-serif',backgroundColor:ro({selected:a,theme:t,color:n,variant:o,buttonState:t6.Default}),border:"none",borderRadius:t.shape.small,"&:hover":{color:ri({selected:a,theme:t,variant:o,color:n,buttonState:t6.Hover}),backgroundColor:ro({selected:a,color:n,variant:o,theme:t,buttonState:t6.Hover}),boxShadow:"none"},"&:active":{color:ri({selected:a,color:n,variant:o,theme:t,buttonState:t6.Active}),backgroundColor:ro({selected:a,color:n,variant:o,theme:t,buttonState:t6.Active}),outline:"none"},"&:focus-visible":{color:ri({selected:a,theme:t,variant:o,color:n,buttonState:t6.Focus}),backgroundColor:ro({selected:a,color:n,variant:o,theme:t,buttonState:t6.Focus}),outline:`2px solid ${t.palette.primary["400"]}`,boxShadow:"none"},[`&.${eX.disabled}`]:{color:t.palette.grey["500"],backgroundColor:(({theme:e,variant:t})=>t8.Link===t||t8.Text===t?"transparent":e.palette.grey["200"])({theme:t,variant:o}),pointerEvents:"none",cursor:"unset"},[`&.${t2}`]:{color:"transparent",backgroundColor:ro({color:n,variant:o,theme:t,buttonState:t6.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})}},MuiTypography:{variants:[{props:{variant:"button"},style:{textTransform:"capitalize"}}],defaultProps:{fontFamily:'"Roboto Variable", "Roboto","Helvetica","Arial",sans-serif'}},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]}})}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),borderRadius:e.shape.small,color:e.palette.grey[900],"&:hover":{"&.Mui-disabled":{background:e.palette.background.element}},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.grey[600]},"&.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})=>({borderColor:e.palette.grey[300]}),multiline:()=>({padding:0}),inputMultiline:({theme:e})=>({padding:e.spacing(2)})}},MuiFormLabel:{styleOverrides:{root:()=>({position:"relative",transform:"none"})}},MuiFormHelperText:{styleOverrides:{root:({theme:e})=>({display:"flex",minHeight:e.typography.caption.lineHeight,fontSize:e.typography.caption.fontSize,margin:e.spacing(1,0,0),lineHeight:e.typography.caption.lineHeight,"&.Mui-error":{color:e.palette.error.dark}})}},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===t1.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"}),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)})}},MuiCheckbox:{defaultProps:{disableRipple:!0}},MuiMenu:{defaultProps:{autoFocus:!1},styleOverrides:{paper:({theme:e})=>({marginTop:e.spacing(2),[`&&.${to.root}`]:{borderRadius:e.shape.small,boxShadow:e.elevation[200]}}),list:({theme:e})=>({[`&&.${te.root}`]:{padding:0},[`&&.${te.padding}`]:{padding:e.spacing(1,0)}})}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,2,2,3),"&:hover":{backgroundColor:e.palette.background.elementHover},[`&.${tr.selected}`]:{background:`linear-gradient(90deg, ${e.palette.primary.main} 0, ${e.palette.primary.main} 4px, ${e.palette.primary["100"]} 4px)`},[`&.${tr.gutters}`]:{minHeight:e.spacing(8),padding:e.spacing(1,3,1,3)},[e.breakpoints.down("sm")]:{padding:e.spacing(3,3,4,3),[`&.${tr.gutters}`]:{padding:e.spacing(3,3,4,3)}}})}},MuiRadio:{defaultProps:{disableRipple:!0}},MuiDialog:{styleOverrides:{paper:({theme:e})=>({borderRadius:e.shape.small})}},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",[`& .${eX.root}`]:{marginLeft:e.spacing(4),color:e.palette.grey[800]}})}},MuiDialogContent:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(0,6)})}},MuiDialogActions:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(4,6,6,6),">div":{width:"100%"}})}},MuiDrawer:{styleOverrides:{root:({theme:e})=>({[`&.${e4.root} > .${eK.root}`]:{backgroundColor:e.palette.background.modalShadow}})}},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"]}})}},MuiPaginationItem:{styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.grey["900"],color:e.palette.primary.contrastText}})}},MuiPaper:{styleOverrides:{elevation:({theme:e,ownerState:{elevation:t}})=>({boxShadow:0===t?"none":1===t?e.elevation["200"]:e.elevation["300"]}),outlined:({theme:e})=>({border:`1px solid ${e.palette.grey[300]}`})}},MuiCircularProgress:{styleOverrides:{root({ownerState:e,theme:t}){let{"data-color":r}=e;return{color:"primary"===r?t.palette.grey[900]:t.palette.primary.contrastText}}}},MuiListItemText:{styleOverrides:{root:()=>({overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"})}},MuiLinearProgress:{styleOverrides:{root:({theme:e})=>({width:"100%",borderRadius:"4px",backgroundColor:e.palette.grey[300]}),barColorPrimary:({theme:e})=>({backgroundColor:e.palette.primary["800"]})}},MuiTab:{styleOverrides:{root:({theme:e})=>({minWidth:0,padding:e.spacing(0,2),textTransform:"none"})}},MuiTabs:{styleOverrides:{root:()=>({minHeight:38,height:38}),indicator:({theme:e})=>({borderRadius:e.shape.small,backgroundColor:e.palette.primary[700]})}},MuiStepLabel:{styleOverrides:{label({theme:e}){let{active:t,completed:r,error:i}=td;return{fontSize:e.typography.fontSize,lineHeight:e.typography.caption.lineHeight,fontWeight:e.typography.caption.fontWeight,color:e.palette.grey[700],[`&.${t}, &.${r}, &.${i}`]:{color:e.palette.grey[900],fontSize:e.typography.caption.fontSize,lineHeight:e.typography.caption.lineHeight,fontWeight:e.typography.caption.fontWeight}}},iconContainer:({theme:e})=>({paddingRight:e.spacing(2.5)})}},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]})}},MuiToggleButtonGroup:{defaultProps:{size:"small",color:"primary"}},MuiToggleButton:{styleOverrides:{root:({theme:e})=>({textTransform:"initial",padding:e.spacing(1,2)})}},MuiTextField:{styleOverrides:{root:({theme:e})=>({[`& .${e9.adornedStart}`]:{paddingLeft:e.spacing(2)},[`& .${e9.adornedEnd}`]:{paddingRight:e.spacing(2)},[`& .${e9.inputAdornedStart}`]:{paddingLeft:e.spacing(1)},[`& .${ti.notchedOutline}`]:{top:-4.5}})}},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[600],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:ra(e.palette.grey[500])},"&::after":{backgroundImage:rl(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:ra(e.palette.background.default)},"&::after":{right:e.spacing(2),backgroundImage:rl(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}}}}},rs=4,rp={100:"0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;",200:"0px 0px 1px 0px #072D574F, 0px 3px 5px 0px #072D5733;",300:"0px 0px 1px 0px #072D574F, 0px 8px 12px 0px #072D5726;",400:"0px 0px 1px 0px #072D574F, 0px 10px 18px 0px #072D5726;",500:"0px 0px 1px 0px #072D574F, 0px 18px 28px 0px #072D5726;"},rc={link:{main:"#1874FF",hover:"#268FF9",visited:"#762376",active:"#072D57"}},rg=()=>{let e={900:"#1D3557",800:"#354C6C",700:"#4D6281",600:"#657996",500:"#7D90AB",400:"#94A6C0",300:"#ACBDD5",200:"#C4D3EA",100:"#DCEAFF"},t={800:"#1D3557"};return{red:{900:"#E64343",800:"#F24646",700:"#F35959",600:"#F67E7E",500:"#F79090",400:"#F8A3A3",300:"#FAB5B5",200:"#FCDADA",100:"#FEEDED"},green:{900:"#008055",800:"#00875A",700:"#19936A",600:"#4DAB8C",500:"#66B79C",400:"#80C3AC",300:"#99CFBD",200:"#CCE7DE",100:"#E6F3EF"},yellow:{900:"#ED8000",800:"#F98700",700:"#FA961F",600:"#FBAB4D",500:"#FBB766",400:"#FDCF99",300:"#FDDBB2",200:"#FBE6CC",100:"#FEF3E6"},grey:{900:"#212529",800:"#343A40",700:"#495057",600:"#6C757D",500:"#ADB5BD",400:"#CED4DA",300:"#DEE2E6",200:"#E9ECEF",100:"#F8F9FA"},primary:{main:e[800],dark:e[900],contrastText:"#FFF",...e},secondary:{main:t[800],dark:e[900],contrastText:"#FFF",...t},background:{default:"#FFF",paper:"#FFF",element:"#FAFBFC",elementHover:"#EEF1F4",modalShadow:"#142A438A"},get text(){return{primary:this.grey[900],secondary:this.grey[700],disabled:this.grey[500]}},get info(){return this.primary},get warning(){return{...this.yellow,light:this.yellow[100],main:this.yellow[600],dark:this.yellow[800],contrastText:"#FFF"}},get success(){return{...this.green,light:this.green[100],main:this.green[600],dark:this.green[800],contrastText:"#FFF"}},get error(){return{...this.red,light:this.red[100],main:this.red[600],dark:this.red[800],contrastText:"#FFF"}},components:rc}},rh={small:"3px",medium:"6px",large:"9px"},ru=e=>{let t=e?.options||{},r=e1({breakpoints:e?.breakpoints||tB,spacing:rs,palette:rg(),components:rd,shape:rh,elevation:rp});return tm(r,{elevation:rp,shape:rh,typography:{h1:{fontSize:"36px",fontWeight:r.typography.fontWeightMedium,lineHeight:"40px"},h2:{fontSize:"28px",fontWeight:r.typography.fontWeightMedium,lineHeight:"32px",[r.breakpoints.down("sm")]:{fontSize:"32px",lineHeight:"40px"}},h3:{fontSize:"24px",fontWeight:r.typography.fontWeightMedium,lineHeight:"28px",[r.breakpoints.down("sm")]:{fontSize:"28px",lineHeight:"36px"}},h4:{fontSize:"20px",fontWeight:r.typography.fontWeightMedium,lineHeight:"24px",[r.breakpoints.down("sm")]:{fontSize:"24px",lineHeight:"28px"}},h5:{fontSize:"16px",fontWeight:r.typography.fontWeightMedium,lineHeight:"20px",[r.breakpoints.down("sm")]:{fontSize:"18px",lineHeight:"20px"}},h6:{fontSize:"14px",fontWeight:r.typography.fontWeightMedium,lineHeight:"20px",[r.breakpoints.down("sm")]:{fontSize:"16px",lineHeight:"20px"}},subtitle1:{fontSize:"16px",fontWeight:r.typography.fontWeightRegular,lineHeight:"20px",[r.breakpoints.down("sm")]:{fontSize:"18px"}},subtitle2:{fontSize:"14px",fontWeight:r.typography.fontWeightMedium,lineHeight:"20px",[r.breakpoints.down("sm")]:{fontSize:"16px"}},body1:{fontSize:"14px",fontWeight:r.typography.fontWeightRegular,lineHeight:"20px",[r.breakpoints.down("sm")]:{fontSize:"16px"}},button:{fontSize:"14px",fontWeight:r.typography.fontWeightMedium,lineHeight:"24px",[r.breakpoints.down("sm")]:{fontSize:"16px"}},caption:{fontSize:"12px",fontWeight:r.typography.fontWeightRegular,lineHeight:"16px",[r.breakpoints.down("sm")]:{fontSize:"14px"}}},...t})},rm=ts(w,{shouldForwardProp:e=>"isActive"!==e})`
|
|
10
|
+
`;var ri=((tY={}).PRIMARY="primary",tY.INVERTED="inverted",tY);let ro=e=>{let{variant:i=t5.Contained,color:o=t6.Primary,loading:n,loadingIndicator:a,loadingPosition:l,disabled:d,children:s,className:p,...c}=e,{loadingIndicatorColor:g}=(({variant:e})=>({loadingIndicatorColor:m(()=>e!==t5.Contained?ri.PRIMARY:ri.INVERTED,[e])}))({variant:i});return r(rt,{variant:i,color:o,disabled:n||d,...c,className:t$(p,{[t4]:n}),children:[n&&t(rr,{color:g,size:"small"}),s]})},rn=({type:e,values:t,defaultValue:r})=>e&&t[e]||r,ra=({theme:e,variant:t,color:r,buttonState:i,selected:o})=>{let n={selected:{default:e.palette.grey["900"],hover:e.palette.grey["700"],active:e.palette.grey["800"],focus:e.palette.grey["900"]},light:{error:{default:e.palette.red["900"],hover:e.palette.red["900"],active:e.palette.red["800"],focus:e.palette.red["900"]},success:{default:e.palette.green["900"],hover:e.palette.green["900"],active:e.palette.green["800"],focus:e.palette.green["900"]},primary:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},warning:{default:e.palette.yellow["900"],hover:e.palette.yellow["900"],active:e.palette.yellow["800"],focus:e.palette.yellow["900"]}},contained:e.palette.primary.contrastText,text:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},link:{default:e.palette.primary["800"],hover:e.palette.primary["700"],active:e.palette.primary["900"],focus:e.palette.primary["800"]}};return o?t!==t5.Link?e.palette.primary.contrastText:n.selected[i]:t===t5.Contained?n.contained:t===t5.Light&&r?n.light[r][i]:t===t5.Text?n.text[i]:n.link[i]},rl=({selected:e,color:t,variant:r,buttonState:i,theme:o})=>{let n={selected:{default:o.palette.primary["900"],hover:o.palette.primary["700"],active:o.palette.primary["800"],focus:o.palette.primary["900"]},light:{error:{default:o.palette.red["100"],hover:o.palette.red["200"],active:o.palette.red["100"],focus:o.palette.red["100"]},success:{default:o.palette.green["100"],hover:o.palette.green["200"],active:o.palette.green["100"],focus:o.palette.green["100"]},primary:{default:o.palette.grey["100"],hover:o.palette.grey["200"],active:o.palette.grey["100"],focus:o.palette.grey["100"]},warning:{default:o.palette.yellow["100"],hover:o.palette.yellow["200"],active:o.palette.yellow["100"],focus:o.palette.yellow["100"]}},contained:{error:{default:o.palette.red["800"],hover:o.palette.red["700"],active:o.palette.red["900"],focus:o.palette.red["800"]},success:{default:o.palette.green["800"],hover:o.palette.green["700"],active:o.palette.green["900"],focus:o.palette.green["800"]},primary:{default:o.palette.primary["800"],hover:o.palette.primary["700"],active:o.palette.primary["900"],focus:o.palette.primary["800"]},warning:{default:o.palette.yellow["800"],hover:o.palette.yellow["700"],active:o.palette.yellow["900"],focus:o.palette.yellow["800"]}},text:{default:"transparent",hover:o.palette.grey["200"],active:o.palette.primary["100"],focus:"transparent"},link:"transparent"};return e&&r!==t5.Link?n.selected[i]:r===t5.Light&&t?n.light[t][i]:r===t5.Contained&&t?n.contained[t][i]:r===t5.Text?n.text[i]:n.link},rd=e=>e.replace("#","%23"),rs=e=>{let t=rd(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>')`},rp=e=>{let t=rd(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>')`},rc={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`}})}},MuiButton:{defaultProps:{disableRipple:!0},styleOverrides:{root({ownerState:e,theme:t}){var r;let i,o=e.variant,n=e.color,a=e.selected,l=e.size;return{height:rn({type:{size:l}.size,values:{[t9.Large]:"40px"},defaultValue:"32px"}),padding:rn({type:(i={theme:t,size:l}).size,values:{[t9.Large]:i.theme.spacing(2,4,2,4)},defaultValue:i.theme.spacing(1,3,1,3)}),[t.breakpoints.down("sm")]:{height:rn({type:{size:l}.size,values:{[t9.Small]:"36px"},defaultValue:"48px"}),padding:(r={size:l,theme:t,variant:o}).variant===t5.Link?"0":rn({type:r.size,values:{[t9.Small]:r.theme.spacing(2,3)},defaultValue:r.theme.spacing(4,3)}),whiteSpace:"nowrap"},color:ra({selected:a,theme:t,variant:o,color:n,buttonState:t7.Default}),fontWeight:t.typography.button.fontWeight,fontSize:t.typography.button.fontSize,fontFamily:'"Roboto Variable", "Roboto","Helvetica","Arial",sans-serif',backgroundColor:rl({selected:a,theme:t,color:n,variant:o,buttonState:t7.Default}),border:"none",borderRadius:t.shape.small,"&:hover":{color:ra({selected:a,theme:t,variant:o,color:n,buttonState:t7.Hover}),backgroundColor:rl({selected:a,color:n,variant:o,theme:t,buttonState:t7.Hover}),boxShadow:"none"},"&:active":{color:ra({selected:a,color:n,variant:o,theme:t,buttonState:t7.Active}),backgroundColor:rl({selected:a,color:n,variant:o,theme:t,buttonState:t7.Active}),outline:"none"},"&:focus-visible":{color:ra({selected:a,theme:t,variant:o,color:n,buttonState:t7.Focus}),backgroundColor:rl({selected:a,color:n,variant:o,theme:t,buttonState:t7.Focus}),outline:`2px solid ${t.palette.primary["400"]}`,boxShadow:"none"},[`&.${eZ.disabled}`]:{color:t.palette.grey["500"],backgroundColor:(({theme:e,variant:t})=>t5.Link===t||t5.Text===t?"transparent":e.palette.grey["200"])({theme:t,variant:o}),pointerEvents:"none",cursor:"unset"},[`&.${t4}`]:{color:"transparent",backgroundColor:rl({color:n,variant:o,theme:t,buttonState:t7.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})}},MuiTypography:{variants:[{props:{variant:"button"},style:{textTransform:"capitalize"}}],defaultProps:{fontFamily:'"Roboto Variable", "Roboto","Helvetica","Arial",sans-serif'}},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]}})}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),borderRadius:e.shape.small,color:e.palette.grey[900],"&:hover":{"&.Mui-disabled":{background:e.palette.background.element}},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.grey[600]},"&.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})=>({borderColor:e.palette.grey[300]}),multiline:()=>({padding:0}),inputMultiline:({theme:e})=>({padding:e.spacing(2)})}},MuiFormLabel:{styleOverrides:{root:()=>({position:"relative",transform:"none"})}},MuiFormHelperText:{styleOverrides:{root:({theme:e})=>({display:"flex",minHeight:e.typography.caption.lineHeight,fontSize:e.typography.caption.fontSize,margin:e.spacing(1,0,0),lineHeight:e.typography.caption.lineHeight,"&.Mui-error":{color:e.palette.error.dark}})}},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===t8.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"}),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)})}},MuiCheckbox:{defaultProps:{disableRipple:!0}},MuiMenu:{defaultProps:{autoFocus:!1},styleOverrides:{paper:({theme:e})=>({marginTop:e.spacing(2),[`&&.${ta.root}`]:{borderRadius:e.shape.small,boxShadow:e.elevation[200]}}),list:({theme:e})=>({[`&&.${tr.root}`]:{padding:0},[`&&.${tr.padding}`]:{padding:e.spacing(1,0)}})}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,2,2,3),"&:hover":{backgroundColor:e.palette.background.elementHover},[`&.${to.selected}`]:{background:`linear-gradient(90deg, ${e.palette.primary.main} 0, ${e.palette.primary.main} 4px, ${e.palette.primary["100"]} 4px)`},[`&.${to.gutters}`]:{minHeight:e.spacing(8),padding:e.spacing(1,3,1,3)},[e.breakpoints.down("sm")]:{padding:e.spacing(3,3,4,3),[`&.${to.gutters}`]:{padding:e.spacing(3,3,4,3)}}})}},MuiRadio:{defaultProps:{disableRipple:!0}},MuiDialog:{styleOverrides:{paper:({theme:e})=>({borderRadius:e.shape.small})}},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",[`& .${eZ.root}`]:{marginLeft:e.spacing(4),color:e.palette.grey[800]}})}},MuiDialogContent:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(0,6)})}},MuiDialogActions:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(4,6,6,6),">div":{width:"100%"}})}},MuiDrawer:{styleOverrides:{root:({theme:e})=>({[`&.${e5.root} > .${eJ.root}`]:{backgroundColor:e.palette.background.modalShadow}})}},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"]}})}},MuiPaginationItem:{styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.grey["900"],color:e.palette.primary.contrastText}})}},MuiPaper:{styleOverrides:{elevation:({theme:e,ownerState:{elevation:t}})=>({boxShadow:0===t?"none":1===t?e.elevation["200"]:e.elevation["300"]}),outlined:({theme:e})=>({border:`1px solid ${e.palette.grey[300]}`})}},MuiCircularProgress:{styleOverrides:{root({ownerState:e,theme:t}){let{"data-color":r}=e;return{color:"primary"===r?t.palette.grey[900]:t.palette.primary.contrastText}}}},MuiListItemText:{styleOverrides:{root:()=>({overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"})}},MuiLinearProgress:{styleOverrides:{root:({theme:e})=>({width:"100%",borderRadius:"4px",backgroundColor:e.palette.grey[300]}),barColorPrimary:({theme:e})=>({backgroundColor:e.palette.primary["800"]})}},MuiTab:{styleOverrides:{root:({theme:e})=>({minWidth:0,padding:e.spacing(0,2),textTransform:"none"})}},MuiTabs:{styleOverrides:{root:()=>({minHeight:38,height:38}),indicator:({theme:e})=>({borderRadius:e.shape.small,backgroundColor:e.palette.primary[700]})}},MuiStepLabel:{styleOverrides:{label({theme:e}){let{active:t,completed:r,error:i}=tp;return{fontSize:e.typography.fontSize,lineHeight:e.typography.caption.lineHeight,fontWeight:e.typography.caption.fontWeight,color:e.palette.grey[700],[`&.${t}, &.${r}, &.${i}`]:{color:e.palette.grey[900],fontSize:e.typography.caption.fontSize,lineHeight:e.typography.caption.lineHeight,fontWeight:e.typography.caption.fontWeight}}},iconContainer:({theme:e})=>({paddingRight:e.spacing(2.5)})}},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]})}},MuiToggleButtonGroup:{defaultProps:{size:"small",color:"primary"}},MuiToggleButton:{styleOverrides:{root:({theme:e})=>({textTransform:"initial",padding:e.spacing(1,2)})}},MuiTextField:{styleOverrides:{root:({theme:e})=>({[`& .${te.adornedStart}`]:{paddingLeft:e.spacing(2)},[`& .${te.adornedEnd}`]:{paddingRight:e.spacing(2)},[`& .${te.inputAdornedStart}`]:{paddingLeft:e.spacing(1)},[`& .${tn.notchedOutline}`]:{top:-4.5}})}},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[600],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:rs(e.palette.grey[500])},"&::after":{backgroundImage:rp(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:rs(e.palette.background.default)},"&::after":{right:e.spacing(2),backgroundImage:rp(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}}}}},rg=4,rh={100:"0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;",200:"0px 0px 1px 0px #072D574F, 0px 3px 5px 0px #072D5733;",300:"0px 0px 1px 0px #072D574F, 0px 8px 12px 0px #072D5726;",400:"0px 0px 1px 0px #072D574F, 0px 10px 18px 0px #072D5726;",500:"0px 0px 1px 0px #072D574F, 0px 18px 28px 0px #072D5726;"},ru={link:{main:"#1874FF",hover:"#268FF9",visited:"#762376",active:"#072D57"}},rm=()=>{let e={900:"#1D3557",800:"#354C6C",700:"#4D6281",600:"#657996",500:"#7D90AB",400:"#94A6C0",300:"#ACBDD5",200:"#C4D3EA",100:"#DCEAFF"},t={800:"#1D3557"};return{red:{900:"#E64343",800:"#F24646",700:"#F35959",600:"#F67E7E",500:"#F79090",400:"#F8A3A3",300:"#FAB5B5",200:"#FCDADA",100:"#FEEDED"},green:{900:"#008055",800:"#00875A",700:"#19936A",600:"#4DAB8C",500:"#66B79C",400:"#80C3AC",300:"#99CFBD",200:"#CCE7DE",100:"#E6F3EF"},yellow:{900:"#ED8000",800:"#F98700",700:"#FA961F",600:"#FBAB4D",500:"#FBB766",400:"#FDCF99",300:"#FDDBB2",200:"#FBE6CC",100:"#FEF3E6"},grey:{900:"#212529",800:"#343A40",700:"#495057",600:"#6C757D",500:"#ADB5BD",400:"#CED4DA",300:"#DEE2E6",200:"#E9ECEF",100:"#F8F9FA"},primary:{main:e[800],dark:e[900],contrastText:"#FFF",...e},secondary:{main:t[800],dark:e[900],contrastText:"#FFF",...t},background:{default:"#FFF",paper:"#FFF",element:"#FAFBFC",elementHover:"#EEF1F4",modalShadow:"#142A438A"},get text(){return{primary:this.grey[900],secondary:this.grey[700],disabled:this.grey[500]}},get info(){return this.primary},get warning(){return{...this.yellow,light:this.yellow[100],main:this.yellow[600],dark:this.yellow[800],contrastText:"#FFF"}},get success(){return{...this.green,light:this.green[100],main:this.green[600],dark:this.green[800],contrastText:"#FFF"}},get error(){return{...this.red,light:this.red[100],main:this.red[600],dark:this.red[800],contrastText:"#FFF"}},components:ru}},rf={small:"3px",medium:"6px",large:"9px"},ry=e=>{let t=e?.options||{},r=e3({breakpoints:e?.breakpoints||t_,spacing:rg,palette:rm(),components:rc,shape:rf,elevation:rh});return ty(r,{elevation:rh,shape:rf,typography:{h1:{fontSize:"36px",fontWeight:r.typography.fontWeightMedium,lineHeight:"40px"},h2:{fontSize:"28px",fontWeight:r.typography.fontWeightMedium,lineHeight:"32px",[r.breakpoints.down("sm")]:{fontSize:"32px",lineHeight:"40px"}},h3:{fontSize:"24px",fontWeight:r.typography.fontWeightMedium,lineHeight:"28px",[r.breakpoints.down("sm")]:{fontSize:"28px",lineHeight:"36px"}},h4:{fontSize:"20px",fontWeight:r.typography.fontWeightMedium,lineHeight:"24px",[r.breakpoints.down("sm")]:{fontSize:"24px",lineHeight:"28px"}},h5:{fontSize:"16px",fontWeight:r.typography.fontWeightMedium,lineHeight:"20px",[r.breakpoints.down("sm")]:{fontSize:"18px",lineHeight:"20px"}},h6:{fontSize:"14px",fontWeight:r.typography.fontWeightMedium,lineHeight:"20px",[r.breakpoints.down("sm")]:{fontSize:"16px",lineHeight:"20px"}},subtitle1:{fontSize:"16px",fontWeight:r.typography.fontWeightRegular,lineHeight:"20px",[r.breakpoints.down("sm")]:{fontSize:"18px"}},subtitle2:{fontSize:"14px",fontWeight:r.typography.fontWeightMedium,lineHeight:"20px",[r.breakpoints.down("sm")]:{fontSize:"16px"}},body1:{fontSize:"14px",fontWeight:r.typography.fontWeightRegular,lineHeight:"20px",[r.breakpoints.down("sm")]:{fontSize:"16px"}},button:{fontSize:"14px",fontWeight:r.typography.fontWeightMedium,lineHeight:"24px",[r.breakpoints.down("sm")]:{fontSize:"16px"}},caption:{fontSize:"12px",fontWeight:r.typography.fontWeightRegular,lineHeight:"16px",[r.breakpoints.down("sm")]:{fontSize:"14px"}}},...t})},rx=tc(C,{shouldForwardProp:e=>"isActive"!==e})`
|
|
11
11
|
transform: rotateZ(${({isActive:e})=>180*!!e}deg);
|
|
12
12
|
width: 16px;
|
|
13
13
|
height: 16px;
|
|
14
14
|
transition: ${({theme:e})=>e.transitions.create("transform",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.short})};
|
|
15
|
-
`,
|
|
15
|
+
`,rb=e=>t(rx,{...e}),r$=e=>t(el,{...e});var rv=((tK={}).text="text",tK.secondary="secondary",tK.primary="primary",tK.error="error",tK.success="success",tK.warning="warning",tK.info="info",tK.textSecondary="text.secondary",tK.grey="grey",tK.red="red",tK.green="green",tK.yellow="yellow",tK);let rw=tc(eK,{shouldForwardProp:e=>"isUpperCase"!==e})`
|
|
16
16
|
text-transform: ${({isUpperCase:e})=>e?"uppercase":"none"};
|
|
17
|
-
`,
|
|
17
|
+
`,rC=({children:e,color:r,colorIntensity:i="800",component:o,...n})=>{let a=(({color:e,colorIntensity:t="800"})=>{let r=tf();return m(()=>{let i=e&&rv[e];if(i)switch(i){case rv.text:return r.palette.text.primary;case rv.textSecondary:return r.palette.text.secondary;default:return r.palette[i]?.[t]||i}},[e,t,r])})({color:r,colorIntensity:i});return(e=>{if(!e)return})(n.variant),t(rw,{...n,component:o,color:a,children:e})},rk=tc("header")`
|
|
18
18
|
cursor: pointer;
|
|
19
19
|
|
|
20
20
|
display: grid;
|
|
21
21
|
grid-column-gap: ${({theme:e})=>e.spacing(2)};
|
|
22
22
|
grid-template-columns: ${({withStartAdornment:e})=>e?"24px 1fr 24px":" 1fr 24px"};
|
|
23
|
-
`,
|
|
23
|
+
`,rS=tc("div")`
|
|
24
24
|
margin-left: ${({theme:e,withStartAdorment:t})=>e.spacing(8*!!t)};
|
|
25
25
|
padding-top: ${({theme:e})=>e.spacing(2)};
|
|
26
|
-
`,
|
|
26
|
+
`,rz=tc(rC)`
|
|
27
27
|
align-self: center;
|
|
28
|
-
`,
|
|
28
|
+
`,rF=tc("div")`
|
|
29
29
|
overflow: hidden;
|
|
30
30
|
|
|
31
31
|
width: 24px;
|
|
32
32
|
height: 24px;
|
|
33
|
-
`,
|
|
33
|
+
`,rM=s(({summary:e,startAdorment:i,isExpanded:o,onChange:n,children:l},d)=>{let[s,p]=y(!1),c="boolean"==typeof o,g=c?o:s,h=!!i;return r("div",{ref:d,children:[r(rk,{onClick:e=>{if(c)n?.(!o,e);else{let t=!s;p(t),n?.(t,e)}},withStartAdornment:h,children:[i,t("string"==typeof e?rz:a,{children:e}),t(rF,{children:t(rb,{isActive:g})})]}),t(r$,{in:g,children:t(rS,{withStartAdorment:h,children:l})})]})}),rT=({action:e,onActionClick:r,tooltipPlacement:i,isDisabled:o})=>{if("actions"in e){let{icon:n,disabled:a,disabledReason:l,name:s,actions:p}=e;return t(rZ,{title:l||s,placement:i,withoutContainer:!(o||a),children:t(rK,{icon:n,variant:"text",disabled:o||a,children:p.map(({name:e,onClick:t,...o})=>d(rQ,{...o,key:e,tooltipPlacement:i,onClick:r(t)},e))})},s)}let{onClick:n,name:a,icon:l,disabledReason:s,disabled:p,loading:c,isBlockingOperation:g,...h}=e;return t(rZ,{title:!c&&(s||a),placement:i,withoutContainer:!(o||p),children:t(rR,{disabled:o||p,...h,variant:"text",onClick:r(n),children:l})},a)};function rP(e=null){let[t,r]=y(!1),i=f(null);return g(()=>{e&&("function"==typeof e?e(i.current):e.current=i.current)},[e]),{open:t,anchorRef:i,handleCloseMenu:()=>r(!1),handleOpenMenu:()=>r(!0)}}let rA=()=>{let[e,t]=y(null);return{isOpen:!!e,anchor:e,actions:{open:e=>t(e.currentTarget),close:()=>t(null)}}},rD=e=>{let{initialState:t=!1,onInactive:r,onActive:i}=e||{},[o,n]=y(t);return[o,(...e)=>{n(!0),i?.(...e)},(...e)=>{n(!1),r?.(...e)}]},rI=()=>({isMobile:tm(tf().breakpoints.down("sm"))}),rO=({type:e,values:t,defaultValue:r})=>e&&t[e]||r,rE=e=>rO({type:e.size,values:{[t9.Small]:"24px",[t9.Medium]:"32px",[t9.Large]:"40px"},defaultValue:"32px"}),rL=tc(ro,{shouldForwardProp:e=>!["startIcon","endIcon","loading","tabIndex"].includes(e.toString())})`
|
|
34
34
|
pointer-events: ${({loading:e})=>e&&"none"};
|
|
35
35
|
|
|
36
|
-
width: ${
|
|
37
|
-
height: ${
|
|
36
|
+
width: ${rE};
|
|
37
|
+
height: ${rE};
|
|
38
38
|
padding: ${({theme:e})=>e.spacing(1)};
|
|
39
39
|
|
|
40
40
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
41
|
-
width: ${e=>
|
|
41
|
+
width: ${e=>rO({type:e.size,values:{[t9.Small]:"36px"},defaultValue:"48px"})};
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
44
|
-
${`.${
|
|
45
|
-
max-height: calc(100vh - ${
|
|
43
|
+
`,rR=e=>{let{variant:r=t5.Contained,loading:i,children:o,...n}=e,a=m(()=>r===t5.Contained?"inverted":"primary",[r]);return t(rL,{loading:i,variant:r,tabIndex:i?-1:0,...n,children:i?t(re,{size:"small",color:a}):o})},rB="16px",rN=56,rW=tc(em)`
|
|
44
|
+
${`.${ta.root}`} {
|
|
45
|
+
max-height: calc(100vh - ${rB});
|
|
46
46
|
|
|
47
47
|
@supports (height: 100dvh) {
|
|
48
|
-
max-height: calc(100dvh - ${
|
|
48
|
+
max-height: calc(100dvh - ${rB});
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
border-top-left-radius: ${({theme:e})=>e.shape.large};
|
|
52
52
|
border-top-right-radius: ${({theme:e})=>e.shape.large};
|
|
53
53
|
}
|
|
54
|
-
`,
|
|
54
|
+
`,r_=tc("header")`
|
|
55
55
|
display: flex;
|
|
56
56
|
flex-shrink: 0;
|
|
57
57
|
align-items: center;
|
|
@@ -61,94 +61,94 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
61
61
|
padding: ${({theme:e})=>e.spacing(1,2,1,4)};
|
|
62
62
|
|
|
63
63
|
border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
|
|
64
|
-
`,
|
|
64
|
+
`,rH=tc(eK)`
|
|
65
65
|
margin-right: ${({theme:e})=>e.spacing(2)};
|
|
66
|
-
`,
|
|
66
|
+
`,rj=tc("div")`
|
|
67
67
|
overflow-y: auto;
|
|
68
|
-
`,
|
|
68
|
+
`,rV=({title:e,drawerHeaderHeight:i=rN,children:o,onClose:n,...a})=>r(rW,{...a,anchor:"bottom",onClose:n,children:[r(r_,{drawerHeaderHeight:i,children:[t(rH,{variant:"h5",noWrap:!0,children:e}),t(rR,{variant:"text",onClick:e=>{n&&n(e,"escapeKeyDown")},children:t(j,{})})]}),t(rj,{children:o})]}),rG=tc(eA)`
|
|
69
69
|
&.MuiList-root {
|
|
70
70
|
padding: ${({theme:e})=>e.spacing(1,0)};
|
|
71
71
|
|
|
72
72
|
border-radius: ${({theme:e})=>e.shape.small};
|
|
73
73
|
box-shadow: ${({theme:e})=>e.elevation[200]};
|
|
74
74
|
}
|
|
75
|
-
`,
|
|
76
|
-
& .${
|
|
75
|
+
`,rU=({children:e,...r})=>t(rG,{...r,children:e}),rY=({children:e,onClose:r,open:i,title:o,...n})=>{let{isMobile:a}=rI();return a?t(rV,{title:o,onClose:r,open:i,children:t(rU,{children:e})}):t(eT,{open:i,onClose:r,...n,children:e})},rK=s(({children:i,icon:o,...n},a)=>{let{open:l,anchorRef:d,handleOpenMenu:s,handleCloseMenu:p}=rP(a);return r(e,{children:[t(ea,{onClickAway:p,mouseEvent:"onMouseUp",children:t(rR,{...n,ref:d,onClick:s,selected:l,children:o})}),t(rY,{open:l,anchorEl:d.current,children:i})]})});var rq=((tq={}).MEDIUM="medium",tq.SMALL="small",tq);let rX=tc(({className:e,...r})=>t(eY,{...r,classes:{popper:e}}))`
|
|
76
|
+
& .${tu.tooltip} {
|
|
77
77
|
margin: 0;
|
|
78
78
|
|
|
79
|
-
font-size: ${({size:e,theme:t})=>e===
|
|
79
|
+
font-size: ${({size:e,theme:t})=>e===rq.SMALL?t.typography.caption.fontSize:t.typography.body1.fontSize};
|
|
80
80
|
font-weight: ${({theme:e})=>e.typography.fontWeightRegular};
|
|
81
|
-
line-height: ${({size:e,theme:t})=>e===
|
|
81
|
+
line-height: ${({size:e,theme:t})=>e===rq.SMALL?t.typography.caption.lineHeight:t.typography.body1.lineHeight};
|
|
82
82
|
white-space: pre-line;
|
|
83
83
|
|
|
84
84
|
background-color: ${({theme:e})=>e.palette.grey[900]};
|
|
85
85
|
border-radius: ${({theme:e})=>e.shape.small};
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
& .${
|
|
88
|
+
& .${tu.arrow} {
|
|
89
89
|
font-size: ${({theme:e})=>e.typography.caption.fontSize};
|
|
90
90
|
color: ${({theme:e})=>e.palette.grey[900]};
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
&&[data-popper-placement*='top'] .${
|
|
93
|
+
&&[data-popper-placement*='top'] .${tu.tooltip} {
|
|
94
94
|
margin-bottom: ${({theme:e})=>e.spacing(2)};
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
&&[data-popper-placement*='bottom'] .${
|
|
97
|
+
&&[data-popper-placement*='bottom'] .${tu.tooltip} {
|
|
98
98
|
margin-top: ${({theme:e})=>e.spacing(2)};
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
&&[data-popper-placement*='left'] .${
|
|
101
|
+
&&[data-popper-placement*='left'] .${tu.tooltip} {
|
|
102
102
|
margin-right: ${({theme:e})=>e.spacing(2)};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
&&[data-popper-placement*='right'] .${
|
|
105
|
+
&&[data-popper-placement*='right'] .${tu.tooltip} {
|
|
106
106
|
margin-left: ${({theme:e})=>e.spacing(2)};
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,rJ=tc("div")`
|
|
109
109
|
display: inherit;
|
|
110
110
|
flex-direction: inherit;
|
|
111
|
-
`,
|
|
111
|
+
`,rZ=e=>{let{title:r,placement:i="top",size:o=rq.MEDIUM,withoutContainer:n=!0,children:a,...l}=e;return t(rX,{title:r,size:o,placement:i,arrow:!0,...l,children:n?a:t(rJ,{children:a})})},rQ=e=>{let{disabledReason:r,disabled:i,component:o="div",title:n,tooltipPlacement:a="left",note:l,...d}=e;return t("li",{children:t(rZ,{title:i?r:l,placement:a,withoutContainer:!i,children:t(eP,{...d,disabled:i,title:n,component:o})},n)})},r0=({actions:e,onActionClick:r,tooltipPlacement:i,isDisabled:o=!1})=>t(rK,{icon:t(D,{}),variant:"text",disabled:o,children:e.map(e=>{let{onClick:t,name:o}=e;return d(rQ,{...e,key:o,tooltipPlacement:i,onClick:r(t)},o)})}),r1=tc("div")`
|
|
112
112
|
display: inline-flex;
|
|
113
113
|
align-items: center;
|
|
114
|
-
`,
|
|
114
|
+
`,r2=e=>{let{isSecondaryActionsAvailable:i,handleActionClick:o,handleWrapperClick:n,isDisabledAction:a}=(({actions:e,row:t})=>{let{main:r,secondary:i}=e,o=r.some(e=>!("actions"in e)&&e?.isBlockingOperation&&e?.loading),n=p(e=>()=>{e?.(t)},[t]);return{isSecondaryActionsAvailable:i&&i.length>=1,handleActionClick:n,handleWrapperClick:e=>{e.stopPropagation()},isDisabledAction:o}})(e),{actions:l}=e,{main:d=[],secondary:s=[]}=l;return r(r1,{onClick:n,children:[d.map(e=>t(rT,{tooltipPlacement:"top",onActionClick:o,action:e,isDisabled:a},e.name)),i&&t(r0,{isDisabled:a,actions:s,tooltipPlacement:"left",onActionClick:o})]})},r3=({children:i,name:o,popoverProps:n,...a})=>{let{open:l,anchorRef:d,handleOpenMenu:s,handleCloseMenu:p}=rP();return r(e,{children:[t(ea,{onClickAway:p,children:t(ro,{...a,ref:d,selected:l,onClick:s,endIcon:t(rb,{isActive:l}),children:o})}),t(rY,{open:l,anchorEl:d.current,...n,children:i})]})},r8=tc(ro)`
|
|
115
115
|
flex-grow: 1;
|
|
116
|
-
`,
|
|
116
|
+
`,r4=tc(r3)`
|
|
117
117
|
flex-grow: 1;
|
|
118
|
-
`,
|
|
118
|
+
`,r6=({actions:r,isDisabled:i,size:o})=>t(e,{children:r.map(e=>{if(Object.hasOwn(e,"isNested")){let{text:r,isNested:n,actions:a,disabled:l,disabledReason:d,note:s,isBlockingOperation:p,...c}=e;return t(rZ,{title:l?d:s,withoutContainer:!(i||l),children:t(r4,{...c,disabled:i||l,name:r,size:o,children:a.map(({text:e,...r})=>t(rQ,{...r,children:e},e))})},r)}let{text:r,disabled:n,disabledReason:a,note:l,isBlockingOperation:d,...s}=e;return t(rZ,{title:n?a:l,withoutContainer:!(i||n),children:t(r8,{...s,size:o,disabled:i||n,children:r})},r)})}),r5=({actions:e,isDisabled:r,size:i})=>e.length?t(rK,{disabled:r,icon:t(A,{}),variant:"light",size:i,children:e.map(({text:e,...r})=>d(a8,{tooltipPlacement:"right",...r,key:e},t(a5,{primary:e})))}):null,r9=({actions:r,size:i})=>t(e,{children:r.map(e=>{let{name:r,icon:o,disableReason:n,disabled:a,isBlockingOperation:l,...d}=e;return t(rZ,{title:a?n:r,withoutContainer:!a,children:t(rR,{variant:"light",size:i,name:r,disabled:a,...d,children:o})},r)})}),r7=tc("div")`
|
|
119
119
|
display: flex;
|
|
120
120
|
gap: ${({theme:e})=>e.spacing(1)};
|
|
121
|
-
`,
|
|
121
|
+
`,ie=e=>{let{disabledAction:i}=(({main:e,secondary:t})=>({disabledAction:!![...e||[],...t||[]].find(e=>e.isBlockingOperation&&e.loading)}))(e),{main:o,secondary:n,secondaryVisible:a,className:l,size:d}=e;return r(r7,{className:l,children:[a&&t(r9,{size:d,actions:a}),o&&t(r6,{size:d,isDisabled:i,actions:o}),n&&t(r5,{size:d,isDisabled:i,actions:n})]})},it=tc(V)`
|
|
122
122
|
${({theme:e})=>e.breakpoints.up("sm")} {
|
|
123
123
|
padding: ${({theme:e})=>e.spacing(1,4,1,2)};
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
& > .${
|
|
126
|
+
& > .${eq.icon} {
|
|
127
127
|
margin-right: ${({theme:e})=>e.spacing(3)};
|
|
128
128
|
align-self: center;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
& > .${
|
|
131
|
+
& > .${eq.action} {
|
|
132
132
|
margin-right: unset;
|
|
133
133
|
align-self: center;
|
|
134
134
|
|
|
135
|
-
.${
|
|
135
|
+
.${e7.root} {
|
|
136
136
|
padding-right: unset;
|
|
137
137
|
padding-left: unset;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
`,
|
|
140
|
+
`,ir=tc("div")`
|
|
141
141
|
display: grid;
|
|
142
142
|
column-gap: ${({theme:e})=>e.spacing(4)};
|
|
143
143
|
grid-auto-flow: column;
|
|
144
144
|
justify-content: flex-start;
|
|
145
|
-
`,
|
|
145
|
+
`,ii=tc(rR)`
|
|
146
146
|
border-radius: 50%;
|
|
147
147
|
|
|
148
148
|
&:hover {
|
|
149
149
|
background-color: rgb(0 0 0 / 4%);
|
|
150
150
|
}
|
|
151
|
-
`,
|
|
151
|
+
`,io=({children:e,title:i,closeText:o="Скрыть",isVisible:n=!0,actions:a,onClose:l,...d})=>{let{severity:s="info",slots:p,...c}=d;return t(r$,{in:n,children:r(it,{...c,severity:s,closeText:o,slots:{closeButton:e=>{let{variant:r,color:i,...o}=e;return t(ii,{variant:"text",color:"primary",...o})},closeIcon:j},variant:"filled",onClose:l,iconMapping:{info:t(I,{}),error:t(O,{}),success:t(M,{}),warning:t(H,{})},children:[i&&t(G,{children:t(rC,{variant:"h5",children:i})}),t(rC,{gutterBottom:!!a,children:e}),t(ir,{children:a})]})})},ia=({size:e,color:r="primary",isError:i,...o})=>{let n=(e=>{switch(e){case"small":return 20;case"large":return 24;default:return 22}})(e),{palette:a}=tf(),l=i?a.red[700]:o.disabled?a.action.disabled:a["default"===r?"primary":r].main;return t(ei,{...o,icon:t(B,{color:l,size:n}),indeterminateIcon:t(_,{color:l,size:n}),checkedIcon:t(W,{color:l,size:n})})},il=tc(rC,{shouldForwardProp:e=>"rowsCount"!==e&&"hasMultipleRows"!==e})`
|
|
152
152
|
/* stylelint-disable-next-line */
|
|
153
153
|
overflow: hidden;
|
|
154
154
|
/* stylelint-disable-next-line */
|
|
@@ -160,14 +160,14 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
160
160
|
white-space: ${({hasMultipleRows:e})=>e?"initial":"nowrap"};
|
|
161
161
|
-webkit-box-orient: ${({hasMultipleRows:e})=>e?"vertical":""};
|
|
162
162
|
-webkit-line-clamp: ${({rowsCount:e})=>e};
|
|
163
|
-
`,
|
|
163
|
+
`,id=tc(rC,{shouldForwardProp:e=>!["$align"].includes(e.toString())})`
|
|
164
164
|
display: flex;
|
|
165
165
|
justify-content: ${({$align:e})=>e};
|
|
166
166
|
|
|
167
167
|
width: 100%;
|
|
168
168
|
|
|
169
169
|
white-space: nowrap;
|
|
170
|
-
`,
|
|
170
|
+
`,is=e=>{let t=f(null),r=e&&"function"!=typeof e?e:t,[i,o]=y(!1),n=tv(),a=([{target:e,contentRect:t}])=>{let r=Math.round(t.height)<e.scrollHeight,i=e.scrollWidth>Math.round(t.width);o(r||i)};return u(()=>{if(r?.current){let e=r.current,t={target:e,contentRect:e.getBoundingClientRect()};if(!n){let t=new ResizeObserver(e4(a,500));return t.observe(e),()=>t.unobserve(e)}a([t])}},[r.current]),{isOverflowed:i,ref:r}},ip=1,ic=e=>{let{ref:i,isOverflowed:o,secondPartLabel:n,firstPartLabel:a,isTruncatedStringVisible:l}=(({children:e,visibleLastSymbolsCount:t,ref:r})=>{var i,o;let{ref:n,isOverflowed:a}=is(r),l=e&&"string"==typeof e,{firstPartLabel:d,secondPartLabel:s}=l&&a&&t?(i=t,{firstPartLabel:(o=e).slice(0,-i),secondPartLabel:o.slice(-i)}):{firstPartLabel:"",secondPartLabel:""};return{isTruncatedStringVisible:l&&a&&!!t,isOverflowed:a,ref:n,firstPartLabel:d,secondPartLabel:s}})(e),{tooltipProps:d,children:s,rowsCount:p=ip,visibleLastSymbolsCount:c,align:g="left",...h}=e,u={...h,ref:i,align:g,children:s,rowsCount:p,hasMultipleRows:p>ip};return l?t(rZ,{title:s,disableInteractive:!0,...d,children:r(id,{$align:g,children:[t(il,{component:"span",ref:i,hasMultipleRows:!1,rowsCount:1,...h,children:a}),t(rC,{...h,component:"span",children:n})]})}):s&&o?t(rZ,{title:s,disableInteractive:!0,...d,children:t(il,{...u})}):t(il,{...u})},ig=tc("div",{shouldForwardProp:e=>!["variant","direction","gap","width","height","justifyContent","alignItems","padding","margin","gridArea","templateAreas","templateColumns","templateRows","isPaper","elevation","borderRadius","placeItems"].includes(e.toString()),label:"Container"})`
|
|
171
171
|
display: ${({variant:e="flex",templateAreas:t,templateColumns:r,templateRows:i,placeItems:o})=>[i,r,t,o].some(Boolean)?"grid":e};
|
|
172
172
|
flex-direction: ${({direction:e="row"})=>e};
|
|
173
173
|
flex-wrap: ${({direction:e="row"})=>"row"===e?"nowrap":"wrap"};
|
|
@@ -186,39 +186,39 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
186
186
|
background-color: ${({theme:e,isPaper:t})=>t?e.palette.background.paper:"transparent"};
|
|
187
187
|
padding: ${({padding:e,theme:t})=>"number"==typeof e?t.spacing(e):e};
|
|
188
188
|
margin: ${({margin:e,theme:t})=>"number"==typeof e?t.spacing(e):e};
|
|
189
|
-
`,
|
|
189
|
+
`,ih=e=>t(ig,{...e});var iu=((tX={}).DEFAULT="default",tX.PRIMARY="primary",tX.ERROR="error",tX.GREY="grey",tX.SUCCESS="success",tX.WARNING="warning",tX),im=((tJ={}).CONTAINED="contained",tJ.LIGHT="light",tJ.TEXT="text",tJ),iy=((tZ={}).DEFAULT="default",tZ.HOVER="hover",tZ.ACTIVE="active",tZ);let ix={small:"20px",medium:"24px",large:"32px"},ib=e=>{let{tagColor:t,variant:r}=e;return r===im.CONTAINED?"white":({[iu.PRIMARY]:"primary",[iu.ERROR]:"error",[iu.GREY]:"grey",[iu.SUCCESS]:"success",[iu.WARNING]:"warning",[iu.DEFAULT]:"grey"})[t||"default"]},i$=({theme:e,customColor:t,customVariant:r,disabled:i})=>{if(i)return e.palette.grey[100];if("text"===r)return"transparent";let o={contained:{primary:e.palette.primary.main,error:e.palette.red[800],success:e.palette.green[800],warning:e.palette.yellow[800],grey:e.palette.grey[300],default:e.palette.background.element},light:{primary:e.palette.primary[100],error:e.palette.red[100],success:e.palette.green[100],warning:e.palette.yellow[100],grey:e.palette.grey[100],default:e.palette.background.element}};return r&&t?o[r][t]:!r&&t?o.contained[t]:e.palette.grey[300]},iv=({theme:e,customColor:t,customVariant:r,disabled:i})=>{if(i)return e.palette.text.disabled;if("text"===r)return e.palette.grey[900];let o={contained:{primary:e.palette.primary.contrastText,error:e.palette.error.contrastText,success:e.palette.warning.contrastText,warning:e.palette.success.contrastText,default:e.palette.text.primary,grey:e.palette.grey[900]},light:{primary:e.palette.primary.main,error:e.palette.red[800],success:e.palette.green[800],warning:e.palette.yellow[800],default:e.palette.text.primary,grey:e.palette.grey[900]}};return r||t?r||"grey"===t?t?r&&t?o[r][t]:e.palette.text.primary:o.contained.default:e.palette.common.white:e.palette.grey[900]},iw=({theme:e,iconState:t,customVariant:r,customColor:i})=>{let o={contained:{primary:e.palette.primary[600],error:e.palette.red[600],success:e.palette.green[600],warning:e.palette.yellow[600],grey:e.palette.grey[100],default:e.palette.grey[300]},light:{primary:e.palette.primary[300],error:e.palette.red[300],success:e.palette.green[300],warning:e.palette.yellow[300],grey:e.palette.grey[300],default:e.palette.grey[300]}};if("default"!==t){if(("contained"===r||"light"===r)&&i)return o[r][i||"default"];if("text"===r)return o.light.grey}return"transparent"},iC=({customVariant:e,customColor:t,theme:r})=>"contained"===e&&"grey"!==t&&"default"!==t?r.palette.common.white:r.palette.grey[900],ik=tc(eo,{shouldForwardProp:e=>"customColor"!==e&&"customVariant"!==e&&"rounded"!==e&&"customSize"!==e})`
|
|
190
190
|
user-select: none;
|
|
191
191
|
|
|
192
|
-
height: ${({customSize:e})=>
|
|
192
|
+
height: ${({customSize:e})=>ix[e]};
|
|
193
193
|
|
|
194
194
|
font-size: 14px;
|
|
195
195
|
|
|
196
|
-
background-color: ${
|
|
196
|
+
background-color: ${i$};
|
|
197
197
|
border-radius: ${({theme:e,rounded:t})=>t?"100px":e.shape.small};
|
|
198
198
|
|
|
199
199
|
&:hover {
|
|
200
|
-
color: ${
|
|
200
|
+
color: ${iv};
|
|
201
201
|
|
|
202
|
-
background-color: ${
|
|
202
|
+
background-color: ${i$};
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
&:active {
|
|
206
|
-
color: ${
|
|
206
|
+
color: ${iv};
|
|
207
207
|
|
|
208
|
-
background-color: ${
|
|
208
|
+
background-color: ${i$};
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
.MuiChip-label {
|
|
212
212
|
padding: ${({theme:e,rounded:t,customSize:r})=>{if(t)return e.spacing(0,2);switch(r){case"small":return e.spacing(0,1);case"medium":case"large":return e.spacing(0,2)}}};
|
|
213
213
|
|
|
214
|
-
color: ${
|
|
214
|
+
color: ${iv};
|
|
215
215
|
|
|
216
216
|
&:hover {
|
|
217
|
-
color: ${
|
|
217
|
+
color: ${iv};
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
&:active {
|
|
221
|
-
color: ${
|
|
221
|
+
color: ${iv};
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
|
|
@@ -227,21 +227,21 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
227
227
|
height: 16px;
|
|
228
228
|
margin: 0;
|
|
229
229
|
|
|
230
|
-
color: ${
|
|
230
|
+
color: ${iC};
|
|
231
231
|
|
|
232
|
-
background: ${e=>
|
|
232
|
+
background: ${e=>iw({...e,iconState:iy.DEFAULT})};
|
|
233
233
|
border-radius: ${({theme:e,rounded:t})=>t?"100px":`0 ${e.shape.small} ${e.shape.small} 0`};
|
|
234
234
|
|
|
235
235
|
&:hover {
|
|
236
|
-
color: ${
|
|
236
|
+
color: ${iC};
|
|
237
237
|
|
|
238
|
-
background: ${e=>
|
|
238
|
+
background: ${e=>iw({...e,iconState:iy.HOVER})};
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
&:active {
|
|
242
|
-
color: ${
|
|
242
|
+
color: ${iC};
|
|
243
243
|
|
|
244
|
-
background: ${e=>
|
|
244
|
+
background: ${e=>iw({...e,iconState:iy.ACTIVE})};
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
|
|
@@ -254,44 +254,44 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
254
254
|
height: 16px;
|
|
255
255
|
margin: 2px;
|
|
256
256
|
|
|
257
|
-
color: ${
|
|
257
|
+
color: ${iv};
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
.MuiChip-icon {
|
|
261
261
|
width: 16px;
|
|
262
262
|
height: 16px;
|
|
263
263
|
}
|
|
264
|
-
`,
|
|
264
|
+
`,iS=tc(ih)`
|
|
265
265
|
align-items: center;
|
|
266
266
|
justify-content: flex-start;
|
|
267
|
-
`,
|
|
267
|
+
`,iz=s(({color:e="grey",variant:i="contained",deleteIcon:o,size:n="small",label:a,startAddon:l,endAddon:d,...s},p)=>{let c=tf(),g=r(iS,{children:[l&&t(l,{color:ib({variant:i,tagColor:e,theme:c})}),a,d&&t(d,{color:ib({variant:i,tagColor:e,theme:c})})]});return t(ik,{ref:p,customColor:e,customVariant:i,customSize:n,label:g,...s,deleteIcon:o||t(j,{})})}),iF=e=>`display: inline-flex;
|
|
268
268
|
justify-content: center;
|
|
269
269
|
font-size: ${e.typography.h5.fontSize};
|
|
270
|
-
vertical-align: middle;`,
|
|
270
|
+
vertical-align: middle;`,iM=tc("span")`
|
|
271
271
|
display: flex;
|
|
272
272
|
gap: ${({theme:e})=>e.spacing(1)};
|
|
273
273
|
padding: ${({theme:e})=>e.spacing(0,1)};
|
|
274
274
|
color: ${({success:e,error:t,theme:r})=>e?r.palette.success.dark:t?r.palette.error.dark:"inherit"};
|
|
275
|
-
`,
|
|
276
|
-
${({theme:e})=>
|
|
277
|
-
`,
|
|
278
|
-
${({theme:e})=>
|
|
279
|
-
`,
|
|
275
|
+
`,iT=tc(M)`
|
|
276
|
+
${({theme:e})=>iF(e)}
|
|
277
|
+
`,iP=tc(O)`
|
|
278
|
+
${({theme:e})=>iF(e)}
|
|
279
|
+
`,iA=tc("span")`
|
|
280
280
|
vertical-align: middle;
|
|
281
|
-
`,
|
|
281
|
+
`,iD=({success:e,error:i,children:o})=>{let n=m(()=>e?t(iT,{size:16}):i?t(iP,{size:16}):null,[e,i]);return o?r(iM,{error:i,success:e,children:[n,t(iA,{children:o})]}):null},iI=({children:e,success:r,error:i,...o})=>t(ex,{...o,children:t(iD,{error:i,success:r,children:e})}),iO=({success:e,error:r,helperText:i,fullWidth:o=!1,startAdornment:n,endAdornment:a,inputProps:l,InputProps:d,maxLength:s,trimmed:p=!0,onBlur:c,...g})=>{let h=m(()=>{if(e)return"success"},[e]),u=m(()=>e?t(iD,{success:!0,children:i}):r?t(iD,{error:!0,children:i}):i||void 0,[i,e,r]);return t(eG,{variant:"outlined",fullWidth:o,error:r,color:h,helperText:u,InputProps:{startAdornment:n,endAdornment:a,...d},inputProps:{maxLength:s,...l},onBlur:e=>{if(p){let t=e.target.value?.trim();g.onChange?.({...e,target:{...e.target,value:t}})}c?.(e)},...g})},iE=tc(rQ)`
|
|
282
282
|
max-height: ${({theme:e})=>e.spacing(13)};
|
|
283
283
|
|
|
284
284
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
285
285
|
max-height: unset;
|
|
286
286
|
}
|
|
287
|
-
`,
|
|
287
|
+
`,iL=e=>{let{isValueEmpty:r,isPopperVisible:i,autocompleteProps:o}=(({value:e,isOptionEqualToValue:t,autoHighlight:r=!0,freeSolo:i,options:o,loading:n,isLoadedDataError:a,loadedDataError:l="Ошибка загрузки данных",noOptionsText:d="Нет данных",onInputChange:s})=>{let[c,g]=y(""),h=Array.isArray(e)?0===e.length:!e,u=c.length>=1,m=o.length>0;return{isValueEmpty:h,isPopperVisible:u||m||n||a,autocompleteProps:{isOptionEqualToValue:p((e,r)=>t?t(e,r):JSON.stringify(e)===JSON.stringify(r),[t]),autoHighlight:!i&&r,noOptionsText:a?l:d,onInputChange:(e,t,r)=>{s?.(e,t,r),n||g(t)}}}})(e),{required:n,success:a,error:l,label:s,getOptionLabel:c,helperText:g,inputRef:h,multiple:u,size:m="medium",placeholder:f="Начните вводить для поиска",overflowOption:x,closeText:b="Закрыть",openText:$="Открыть",clearText:v="Очистить",loadingText:w=t(re,{color:"primary"}),isLoadedDataError:k,loadedDataError:S,noOptionsText:z,autoHighlight:F,renderInput:M,renderTags:P,renderOption:A,...D}=e,I=p(e=>{let i={...e,inputRef:h,required:n,placeholder:r?f:"",label:s,success:a,error:l,helperText:g,size:m};return M?M(i):t(iO,{...i})},[r,M,h,n,f,s,a,l,g,m]),O=p((e,r,i,o)=>{if(A)return A(e,r,i,o);let n=!!e["aria-selected"];return d(iE,{...e,key:e.id,children:[u&&t(ez,{children:t(ia,{role:"menuitemcheckbox",checked:n})}),t(ic,{rowsCount:2,...x,children:e.key})]})},[u,x,A]),E=p((e,r,i)=>P?P(e,r,i):e.map((e,i)=>{let o=c?.(e)||"";return d(iz,{deleteIcon:t(j,{}),color:"grey",label:o,...r({index:i}),key:o})}),[c,P]),L=p(e=>i?t(eE,{...e}):null,[i]);return t(U,{...D,size:m,clearText:v,closeText:b,openText:$,loadingText:w,multiple:u,disableCloseOnSelect:u,clearIcon:t(e_,{children:t(T,{})}),popupIcon:t(C,{size:16}),forcePopupIcon:!0,slotProps:{clearIndicator:{disableRipple:!0},popper:{component:L}},getOptionLabel:c,renderInput:I,renderTags:E,renderOption:O,...o})},iR=0,iB=300,iN="Нет данных",iW=e=>{let{options:r,isLoadingData:i,handleOpen:o,handleInputChange:n,emptyOptionsText:a}=(({fetchOptions:e,fetchDelayMs:t=iB,minSymbolsToFetch:r=iR,defaultValue:i,getOptionLabel:o,noOptionsText:n=iN,onOpen:a,onInputChange:l})=>{let[d,s]=y(!1),[c,g]=y(!0),[h,u]=y(!0),m=f(null),[x,b]=y([]),$=p(e4(t=>{m.current?.abort();let r=new AbortController;m.current=r,e(t,r?.signal).then(e=>{b(e),u(0===e.length)}).finally(()=>{s(!1),m.current=null})},t),[e,t,n]);return{handleOpen:e=>{if(c){g(!1);let e=i&&o?o(i):"";(i||0===r)&&(s(!0),$(e))}a?.(e)},handleInputChange:(e,t,i)=>{if(!t||t.length<r)return $&&$.clear(),u(!1),s(!1),b([]);s(!0),c||$(t),l?.(e,t,i)},options:x,isLoadingData:d,emptyOptionsText:h?n:"Продолжайте вводить для поиска"}})(e),{fetchOptions:l,fetchDelayMs:d,minSymbolsToFetch:s,isDisabled:c,isRequired:g,isSuccess:h,isError:u,isLoading:m,isFullWidth:x,onOpen:b,noOptionsText:$,onInputChange:v,...w}=e;return t(iL,{options:r,disabled:c,fullWidth:x,loading:m||i,onOpen:o,error:u,required:g,success:h,noOptionsText:a,onInputChange:n,...w})},i_=tc(Y)`
|
|
288
288
|
font-size: ${({theme:e})=>e.typography.h5.fontSize};
|
|
289
289
|
font-weight: ${({theme:e})=>e.typography.h5.fontWeight};
|
|
290
290
|
|
|
291
291
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
292
292
|
font-size: ${({theme:e})=>e.typography.h6.fontSize};
|
|
293
293
|
}
|
|
294
|
-
`,
|
|
294
|
+
`,iH=s((e,r)=>t(i_,{...e,ref:r})),ij=tc(K,{shouldForwardProp:e=>!["$customColor","$withBorder","$variantColor"].includes(e.toString())})`
|
|
295
295
|
.MuiBadge-badge {
|
|
296
296
|
height: 20px;
|
|
297
297
|
padding: ${({theme:e})=>e.spacing(0,1)};
|
|
@@ -311,7 +311,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
311
311
|
|
|
312
312
|
border: 2px solid ${({theme:e})=>e.palette.common.white};
|
|
313
313
|
}
|
|
314
|
-
`,
|
|
314
|
+
`,iV=({children:e,color:r,max:i=99,withBorder:o=!0,variantColor:n="contained",...a})=>t(ij,{$customColor:r,max:i,$withBorder:o,$variantColor:n,...a,children:e}),iG=tc(ro,{shouldForwardProp:e=>"$isOutside"!==e&&"$isToday"!==e})`
|
|
315
315
|
width: 32px;
|
|
316
316
|
height: 32px;
|
|
317
317
|
color: ${({theme:e,$isOutside:t,selected:r})=>t&&!r&&e.palette.grey[400]};
|
|
@@ -326,21 +326,21 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
326
326
|
color: currentColor;
|
|
327
327
|
background-color: currentColor;
|
|
328
328
|
}
|
|
329
|
-
`,
|
|
329
|
+
`,iU=e=>{let{modifiers:r,color:i,...o}=e,n=f(null);return g(()=>{r.focused&&n.current?.focus()},[r.focused]),t(iG,{ref:n,$isOutside:r.outside,$isToday:r.today,selected:r.selected,variant:r.selected?"contained":"text",...o})};function iY(e){let{options:r,onChange:i,...o}=e,n=r?.find(({value:e})=>e===o.value);return t(r3,{variant:"link",name:n?.label||"Не выбрано",children:r?.map(({value:e,label:r,disabled:o})=>t(rQ,{value:e,disabled:o,onClick:()=>i?.({target:{value:e}}),children:t(rC,{variant:"subtitle1",align:"center",style:{textTransform:"capitalize",minWidth:70},children:r})},e))})}let iK=tc(tF)`
|
|
330
330
|
position: absolute;
|
|
331
331
|
display: flex;
|
|
332
332
|
justify-content: space-between;
|
|
333
333
|
top: 0;
|
|
334
334
|
left: 0;
|
|
335
335
|
width: 100%;
|
|
336
|
-
`,
|
|
336
|
+
`,iq=tc(ro)`
|
|
337
337
|
width: 32px;
|
|
338
338
|
height: 32px;
|
|
339
339
|
padding: ${({theme:e})=>e.spacing(2)};
|
|
340
|
-
`,
|
|
340
|
+
`,iX=tc(tz)`
|
|
341
341
|
position: relative;
|
|
342
342
|
padding-top: 32px;
|
|
343
|
-
`,
|
|
343
|
+
`,iJ=tc(tS)`
|
|
344
344
|
position: absolute;
|
|
345
345
|
height: 32px;
|
|
346
346
|
top: 0;
|
|
@@ -353,7 +353,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
353
353
|
text-transform: capitalize;
|
|
354
354
|
font-size: ${({theme:e})=>e.typography.subtitle1.fontSize};
|
|
355
355
|
}
|
|
356
|
-
`,
|
|
356
|
+
`,iZ=tc(tk)`
|
|
357
357
|
display: flex;
|
|
358
358
|
column-gap: ${({theme:e})=>e.spacing(4)};
|
|
359
359
|
align-items: center;
|
|
@@ -362,57 +362,114 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
362
362
|
text-transform: capitalize;
|
|
363
363
|
font-size: ${({theme:e})=>e.typography.subtitle1.fontSize};
|
|
364
364
|
}
|
|
365
|
-
`,
|
|
365
|
+
`,iQ=({className:e,classNames:r,showOutsideDays:i=!0,...o})=>t(tC,{locale:tM,showOutsideDays:i,components:{DayButton:iU,Dropdown:iY,DropdownNav:({className:e,...r})=>t(iZ,{className:e,...r}),MonthCaption:({className:e,...r})=>t(iJ,{className:e,...r}),Months:({className:e,...r})=>t(iX,{className:e,...r}),PreviousMonthButton:({className:e,color:r,...i})=>t(iq,{className:e,variant:"text",...i}),NextMonthButton:({className:e,color:r,...i})=>t(iq,{className:e,variant:"text",...i}),Nav:e=>t(iK,{...e}),CaptionLabel:({className:e,color:r,...i})=>t(rC,{component:"span",variant:"subtitle1",className:e,...i})},...o}),i0=i.createContext(null);function i1(){let e=i.useContext(i0);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let i2=tc("div")`
|
|
366
|
+
overflow: hidden;
|
|
367
|
+
`,i3=tc("div",{shouldForwardProp:e=>"orientation"!==e})`
|
|
368
|
+
display: flex;
|
|
369
|
+
flex-direction: ${({orientation:e})=>"vertical"===e&&"column"};
|
|
370
|
+
margin-left: ${({orientation:e,theme:t})=>"horizontal"===e&&t.spacing(-4)};
|
|
371
|
+
margin-top: ${({orientation:e,theme:t})=>"vertical"===e&&t.spacing(-4)};
|
|
372
|
+
`;function i8(e){let{carouselRef:r,orientation:i="horizontal"}=i1();return t(i2,{ref:r,"data-slot":"carousel-content",children:t(i3,{orientation:i,...e})})}let i4=tc("div",{shouldForwardProp:e=>"orientation"!==e})`
|
|
373
|
+
position: absolute;
|
|
374
|
+
width: ${({orientation:e})=>"horizontal"===e?"100%":"auto"};
|
|
375
|
+
height: ${({orientation:e})=>"horizontal"===e?"auto":"100%"};
|
|
376
|
+
bottom: ${({theme:e,orientation:t})=>"horizontal"===t?e.spacing(2):0};
|
|
377
|
+
left: ${({theme:e,orientation:t})=>"horizontal"===t?0:e.spacing(2)};
|
|
378
|
+
display: flex;
|
|
379
|
+
flex-direction: ${({orientation:e})=>"vertical"===e&&"column"};
|
|
380
|
+
justify-content: center;
|
|
381
|
+
gap: ${({theme:e})=>e.spacing(1)};
|
|
382
|
+
z-index: 1;
|
|
383
|
+
overflow: hidden;
|
|
384
|
+
`,i6=tc("button",{shouldForwardProp:e=>"selected"!==e})`
|
|
385
|
+
width: ${({theme:e})=>e.spacing(6)};
|
|
386
|
+
height: ${({theme:e})=>e.spacing(6)};
|
|
387
|
+
position: relative;
|
|
388
|
+
border: none;
|
|
389
|
+
background-color: transparent;
|
|
390
|
+
cursor: pointer;
|
|
391
|
+
&::after {
|
|
392
|
+
content: '';
|
|
393
|
+
position: absolute;
|
|
394
|
+
left: 0;
|
|
395
|
+
top: 50%;
|
|
396
|
+
transform: translateY(-50%);
|
|
397
|
+
background-color: ${({theme:e,selected:t})=>t?e.palette.primary[800]:e.palette.grey[200]};
|
|
398
|
+
width: 100%;
|
|
399
|
+
height: 2px;
|
|
400
|
+
transform: ${({orientation:e})=>"vertical"===e&&"rotate(90deg)"};
|
|
401
|
+
}
|
|
402
|
+
`,i5=({api:e,orientation:r})=>{let{selectedIndex:i,scrollSnaps:o,onDotButtonClick:n}=(e=>{let[t,r]=y(0),[i,o]=y([]),n=p(t=>{e&&e.scrollTo(t)},[e]),a=p(e=>{e&&o(e.scrollSnapList())},[]),l=p(e=>{e&&r(e.selectedScrollSnap())},[]);return g(()=>{e&&(a(e),l(e),e.on("reInit",a).on("reInit",l).on("select",l))},[e,a,l]),{selectedIndex:t,scrollSnaps:i,onDotButtonClick:n}})(e);return t(i4,{orientation:r,children:o.map((e,o)=>t(i6,{orientation:r,onClick:()=>n(o),selected:o===i},e))})},i9=tc("div",{shouldForwardProp:e=>"orientation"!==e})(({orientation:e,theme:t})=>({minWidth:0,flexShrink:0,flexGrow:0,flexBasis:"100%",paddingLeft:"horizontal"===e?t.spacing(4):void 0,paddingTop:"vertical"===e?t.spacing(4):void 0}));function i7(e){let{orientation:r="horizontal"}=i1();return t(i9,{orientation:r,role:"group","aria-roledescription":"slide","data-slot":"carousel-item",...e})}let oe=tc(ro,{shouldForwardProp:e=>"orientation"!==e})`
|
|
403
|
+
position: absolute;
|
|
404
|
+
opacity: 0.3;
|
|
405
|
+
user-select: none;
|
|
406
|
+
right: ${({theme:e})=>e.spacing(1)};
|
|
407
|
+
bottom: 0;
|
|
408
|
+
padding: 0;
|
|
409
|
+
height: ${({orientation:e})=>"horizontal"===e?"100%":"clamp(25px, 15%, 45px)"};
|
|
410
|
+
width: ${({orientation:e})=>"horizontal"===e?"clamp(25px, 15%, 45px)":"100%"};
|
|
411
|
+
`;function ot({className:e,...r}){let{orientation:i="horizontal",canScrollNext:o,scrollNext:n}=i1();return o?t(oe,{type:"button",variant:"text","data-slot":"carousel-next",disabled:!o,onClick:n,orientation:i,...r,children:"horizontal"===i?t(S,{}):t(C,{})}):null}let or=tc(ro,{shouldForwardProp:e=>"orientation"!==e})`
|
|
412
|
+
position: absolute;
|
|
413
|
+
opacity: 0.3;
|
|
414
|
+
user-select: none;
|
|
415
|
+
left: ${({theme:e})=>e.spacing(1)};
|
|
416
|
+
top: 0;
|
|
417
|
+
padding: 0;
|
|
418
|
+
height: ${({orientation:e})=>"horizontal"===e?"100%":"clamp(25px, 15%, 45px)"};
|
|
419
|
+
width: ${({orientation:e})=>"horizontal"===e?"clamp(25px, 15%, 45px)":"100%"};
|
|
420
|
+
`;function oi({className:e,...r}){let{orientation:i="horizontal",scrollPrev:o,canScrollPrev:n}=i1();return n?t(or,{type:"button","data-slot":"carousel-previous",variant:"text",disabled:!n,onClick:o,orientation:i,...r,children:"horizontal"===i?t(k,{}):t(z,{})}):null}let oo=tc("div")`
|
|
421
|
+
position: relative;
|
|
422
|
+
`;function on({width:i="100%",height:o="100%",...n}){let{canScrollNext:a,canScrollPrev:l,scrollNext:d,scrollPrev:s,api:c,opts:h,orientation:u,carouselRef:m,handleKeyDown:f,data:x,isShowButtons:b,isShowDots:$}=(({orientation:e="horizontal",opts:t,setApi:r,plugins:i,data:o,showDots:n})=>{let[a,l]=tT({...t,axis:"horizontal"===e?"x":"y"},i),[d,s]=y(!1),[c,h]=y(!1),u=o.length>1,m=!!(n&&o.length>1),f=p(e=>{e&&(s(e.canScrollPrev()),h(e.canScrollNext()))},[]),x=p(e=>{l&&l.scrollTo(e)},[l]),b=p(()=>{l?.scrollPrev()},[l]),$=p(()=>{l?.scrollNext()},[l]),v=p(e=>{"ArrowLeft"===e.key?(e.preventDefault(),b()):"ArrowRight"===e.key&&(e.preventDefault(),$())},[b,$]);return g(()=>{l&&r&&r(l)},[l,r]),g(()=>{if(l)return f(l),l.on("reInit",f),l.on("select",f),()=>{l?.off("select",f)}},[l,f]),{carouselRef:a,api:l,scrollPrev:b,scrollNext:$,canScrollPrev:d,canScrollNext:c,handleKeyDown:v,opts:t,orientation:e,onDotButtonClick:x,isShowButtons:u,isShowDots:m,data:o}})(n);return t(i0.Provider,{value:{carouselRef:m,api:c,opts:h,orientation:u||(h?.axis==="y"?"vertical":"horizontal"),scrollPrev:s,scrollNext:d,canScrollPrev:l,canScrollNext:a},children:r(oo,{onKeyDownCapture:f,className:n.className,"data-slot":"carousel",...n,children:[t(i8,{style:{width:i,height:o},children:x.map(e=>t(i7,{children:n.renderItem(e)},`${e[n.keyId]}`))}),b&&r(e,{children:[t(oi,{}),t(ot,{})]}),$&&t(i5,{api:c,orientation:u})]})})}let oa=e=>t(ef,{...e}),ol=tc(ey)`
|
|
366
423
|
margin-right: 0;
|
|
367
424
|
margin-left: -5px;
|
|
368
425
|
|
|
369
426
|
& .MuiFormControlLabel-label {
|
|
370
427
|
margin-left: ${({theme:e})=>e.spacing(1)};
|
|
371
428
|
}
|
|
372
|
-
`,
|
|
429
|
+
`,od=e=>t(ol,{...e}),os=tc(od)`
|
|
373
430
|
align-items: center;
|
|
374
|
-
`,
|
|
431
|
+
`,op=tc(ia)`
|
|
375
432
|
margin: ${({theme:e})=>e.spacing(1)};
|
|
376
433
|
padding: ${({theme:e})=>e.spacing(1)};
|
|
377
|
-
`,
|
|
434
|
+
`,oc=({isSuccess:e,helperText:i,label:o,isError:n,...a})=>r(oa,{children:[t(os,{control:t(op,{...a}),label:o}),i&&t(iI,{error:n,success:e,children:i})]}),og={noDataImgSrc:"",defaultErrorImgSrc:"",outdatedReleaseErrorImgSrc:"",mailImgSrc:""},oh={phone:"",email:""},ou="ym-hide-content",om=l({language:"ru",captureException:e=>console.error(e),imagesMap:og,techSup:oh,emptySymbol:"—",hidePersonalDataClassname:ou,hidePersonalData:!0}),of=({children:e,language:r="ru",captureException:i,emptySymbol:o="—",imagesMap:n=og,techSup:a=oh,hidePersonalData:l=!0,hidePersonalDataClassname:d=ou,components:s})=>(g(()=>{i||console.warn("ConfigProvider: Необходимо наличие captureException, связанного с сервисом мониторинга ошибок.\nНа данный момент все ошибки, отлавливаемые в ErrorBoundary будут выводиться только в консоль")},[]),t(om.Provider,{value:{language:r,captureException:i||(e=>console.error(e)),emptySymbol:o,imagesMap:n,techSup:a,hidePersonalData:l,hidePersonalDataClassname:d,components:s},children:e})),oy=({children:e,onClose:r,open:i,title:o,...n})=>{let{isMobile:a}=rI();return a?t(rV,{title:o,onClose:r,open:i,children:e}):t(eO,{open:i,onClose:r,...n,children:e})},ox={vertical:"bottom",horizontal:"right"},ob={vertical:"top",horizontal:"right"},o$=tc("div")`
|
|
378
435
|
max-width: 380px;
|
|
379
436
|
padding: ${({theme:e})=>e.spacing(4)};
|
|
380
|
-
`,
|
|
437
|
+
`,ov=tc(rC)`
|
|
381
438
|
margin-bottom: ${({theme:e})=>e.spacing(3)};
|
|
382
|
-
`,
|
|
439
|
+
`,ow=tc("div")`
|
|
383
440
|
display: flex;
|
|
384
441
|
gap: ${({theme:e})=>e.spacing(3)};
|
|
385
442
|
justify-content: end;
|
|
386
|
-
`,
|
|
387
|
-
&.${
|
|
443
|
+
`,oC=i=>{let{actionComponentProps:o,popoverProps:n,cancelButtonProps:a,confirmButtonProps:l}=(({confirmButtonProps:e,onConfirm:t})=>{let{isOpen:r,anchor:i,actions:o}=rA(),{isAccented:n}=e||{},a=n?t5.Light:t5.Contained,l=n?t6.Error:t6.Primary;return{actionComponentProps:{onClick:o.open},popoverProps:{open:r,anchorEl:i,onClose:o.close},cancelButtonProps:{onClick:o.close},confirmButtonProps:{variant:a,color:l,onClick:()=>{t(),o.close()}}}})(i),{text:d,confirmButtonProps:s,popoverProps:p,actionComponent:c}=i,{text:g="Подтвердить"}=s||{},{anchorOrigin:h=ox,transformOrigin:u=ob}=p||{};return r(e,{children:[c(o),t(oy,{anchorOrigin:h,transformOrigin:u,...n,children:r(o$,{children:[d&&t(ov,{children:d}),r(ow,{children:[t(ro,{variant:"text",...a,children:"Отмена"}),t(ro,{...l,children:g})]})]})})]})},ok=({children:e,onClose:i,...o})=>r(eh,{...o,children:[e,i&&t(rR,{variant:"text",onClick:e=>{i&&i(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:t(j,{})})]}),oS={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"}},oz=e=>oS[e]||oS.md,oF=tc(es,{shouldForwardProp:e=>!["$size"].includes(e.toString())})`
|
|
444
|
+
&.${e6.root} .${eJ.root} {
|
|
388
445
|
background-color: ${({theme:e})=>e.palette.background.modalShadow};
|
|
389
446
|
}
|
|
390
|
-
.${
|
|
391
|
-
min-width: ${({$size:e})=>
|
|
392
|
-
max-width: ${({$size:e})=>
|
|
447
|
+
.${e6.paper} {
|
|
448
|
+
min-width: ${({$size:e})=>oz(e).minWidth};
|
|
449
|
+
max-width: ${({$size:e})=>oz(e).maxWidth};
|
|
393
450
|
}
|
|
394
|
-
`,
|
|
451
|
+
`,oM=({children:e,title:i,disableBackdropClick:o,onClose:n,size:a="md",...l})=>{let d=n&&((e,t)=>{o&&"backdropClick"===t||n(e,t)}),{isMobile:s}=rI();return s?t(rV,{onClose:d,title:i,children:e}):r(oF,{$size:a,onClose:d,...l,children:[i&&t(ok,{onClose:n,children:i}),e]})},oT=tc(ep)`
|
|
395
452
|
padding-top: 0;
|
|
396
|
-
`,
|
|
453
|
+
`,oP=({children:e,...r})=>t(oT,{...r,children:e}),oA=tc(ec)`
|
|
397
454
|
padding-bottom: ${({theme:e})=>e.spacing(6)};
|
|
398
455
|
|
|
399
456
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
400
457
|
padding: ${({theme:e})=>e.spacing(5,4)};
|
|
401
458
|
}
|
|
402
|
-
`,
|
|
459
|
+
`,oD=e=>t(oA,{...e}),oI=tc(eg)`
|
|
403
460
|
color: ${({theme:e})=>e.palette.grey[900]};
|
|
404
|
-
`,
|
|
461
|
+
`,oO=e=>t(oI,{...e}),oE=tc(ro)`
|
|
405
462
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
406
463
|
order: 1;
|
|
407
464
|
}
|
|
408
|
-
`,
|
|
465
|
+
`,oL=e=>{let{isShowCancelButton:i,cancelButtonProps:o}=(({actions:e,onClose:t})=>{let{isMobile:r}=rI(),{cancel:i}=e,o=!!i,n=i?.onClick||t,{variant:a=r?"light":"text"}=i||{};return{isShowCancelButton:o,cancelButtonProps:{variant:a,onClick:n}}})(e),{open:n,title:a,description:l,actions:d,onClose:s,...p}=e,{text:c,...g}=d.confirm,{text:h,variant:u,onClick:m,...f}=d.cancel||{};return r(oM,{title:a,open:n,onClose:s,...p,children:[l&&t(oD,{children:t(oO,{children:l})}),r(oP,{children:[i&&t(oE,{...f,...o,children:h}),t(ro,{...g,children:c})]})]})},oR="small",oB="medium",oN="large",oW={[oR]:"239px",[oB]:"323px",[oN]:"458px"},o_={[oR]:"119px",[oB]:"161px",[oN]:"229px"},oH={[oR]:"384px",[oB]:"400px",[oN]:"460px"},oj={[oR]:"h5",[oB]:"h4",[oN]:"h3"},oV=tc("img",{shouldForwardProp:e=>"size"!==e})`
|
|
409
466
|
display: block;
|
|
410
467
|
|
|
411
468
|
width: ${({width:e})=>e||"auto"};
|
|
412
469
|
max-width: 100%;
|
|
413
470
|
height: ${({height:e})=>e||"auto"};
|
|
414
471
|
margin: auto auto
|
|
415
|
-
${({theme:e,size:t})=>t===
|
|
472
|
+
${({theme:e,size:t})=>t===oR?e.spacing(4):e.spacing(6)};
|
|
416
473
|
|
|
417
474
|
color: ${({theme:e})=>e.palette.grey[900]};
|
|
418
475
|
|
|
@@ -421,10 +478,10 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
421
478
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
422
479
|
margin: auto auto ${({theme:e})=>e.spacing(8)};
|
|
423
480
|
}
|
|
424
|
-
`,
|
|
481
|
+
`,oG=oV,oU=oV.withComponent,oY=e=>"$size"!==e,oK=tc("div",{shouldForwardProp:oY})`
|
|
425
482
|
display: flex;
|
|
426
483
|
flex-direction: column;
|
|
427
|
-
gap: ${({theme:e,$size:t})=>t===
|
|
484
|
+
gap: ${({theme:e,$size:t})=>t===oR?e.spacing(4):e.spacing(6)};
|
|
428
485
|
align-items: center;
|
|
429
486
|
justify-content: center;
|
|
430
487
|
|
|
@@ -440,11 +497,11 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
440
497
|
grid-template-rows: 1fr max-content;
|
|
441
498
|
gap: ${({theme:e})=>e.spacing(4)};
|
|
442
499
|
}
|
|
443
|
-
`,
|
|
444
|
-
max-width: ${({$size:e})=>
|
|
500
|
+
`,oq=tc("div",{shouldForwardProp:oY})`
|
|
501
|
+
max-width: ${({$size:e})=>oH[e]};
|
|
445
502
|
margin: 0 auto;
|
|
446
|
-
`,
|
|
447
|
-
margin-bottom: ${({theme:e,$size:t})=>t===
|
|
503
|
+
`,oX=tc(rC,{shouldForwardProp:oY})`
|
|
504
|
+
margin-bottom: ${({theme:e,$size:t})=>t===oR?e.spacing(2):e.spacing(4)};
|
|
448
505
|
|
|
449
506
|
text-align: center;
|
|
450
507
|
|
|
@@ -455,17 +512,17 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
455
512
|
font-weight: ${({theme:e})=>e.typography.fontWeightMedium};
|
|
456
513
|
color: ${({theme:e})=>e.palette.text.secondary};
|
|
457
514
|
}
|
|
458
|
-
`,
|
|
515
|
+
`,oJ=tc(rC,{shouldForwardProp:oY})`
|
|
459
516
|
display: block;
|
|
460
517
|
|
|
461
|
-
font-size: ${({$size:e,theme:t})=>e===
|
|
518
|
+
font-size: ${({$size:e,theme:t})=>e===oN?t.typography.pxToRem(16):t.typography.body1.fontSize};
|
|
462
519
|
text-align: center;
|
|
463
520
|
|
|
464
521
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
465
522
|
font-size: ${({theme:e})=>e.typography.body1.fontSize};
|
|
466
523
|
color: ${({theme:e})=>e.palette.text.secondary};
|
|
467
524
|
}
|
|
468
|
-
`,
|
|
525
|
+
`,oZ=tc("footer")`
|
|
469
526
|
display: flex;
|
|
470
527
|
flex-wrap: wrap;
|
|
471
528
|
gap: ${({theme:e})=>e.spacing(2)};
|
|
@@ -479,7 +536,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
479
536
|
|
|
480
537
|
margin-top: auto;
|
|
481
538
|
}
|
|
482
|
-
`,
|
|
539
|
+
`,oQ=({className:e,title:i,imgSrc:o,imgAlt:n,description:a,Actions:l,size:d="small",imgWidth:s,renderImage:p})=>{let g=c(om),h=g.components?.placeholder?.defaultProps?.renderImage,u=m(()=>p&&oU(p)||h&&oU(h)||oG,[p,h]);return r(oK,{$size:d,className:e,children:[r(oq,{$size:d,children:[o&&t(u,{src:o,alt:n,width:s||oW[d],height:s?"auto":o_[d],size:d}),t(oX,{$size:d,variant:oj[d],children:i}),a&&t(oJ,{$size:d,component:"div",variant:"body1",children:a})]}),l&&t(oZ,{children:l})]})},o0=()=>{let{imagesMap:e,techSup:i}=c(om);return t(oQ,{title:"Произошла непредвиденная ошибка",description:r("div",{children:[t(rC,{children:"Пожалуйста, попробуйте обновить страницу или обратитесь в техническую поддержку:"}),r(rC,{children:["email\xa0",t(ew,{href:`mailto:${i.email}`,children:i.email}),", телефон\xa0",t(ew,{href:`tel:${i.phone}`,children:i.phone})]})]}),imgAlt:"Непредвиденная ошибка",imgSrc:e.defaultErrorImgSrc,imgWidth:"324px",Actions:t(ro,{onClick:()=>{location.reload()},children:"Обновить страницу"})})},o1=()=>{let{imagesMap:e}=c(om);return t(oQ,{title:"Обновление в сервисе",description:t(rC,{component:"p",children:"Наши специалисты работают над улучшением качества продукта. Для загрузки обновлений, пожалуйста, обновите страницу."}),imgAlt:"Обновление в сервисе",imgSrc:e.outdatedReleaseErrorImgSrc,imgWidth:"324px",Actions:t(ro,{onClick:()=>{location.reload()},children:"Обновить страницу"})})};var o2=((tQ={}).OutdatedRelease="outdatedRelease",tQ.Default="default",tQ);let o3=[{type:o2.OutdatedRelease,condition:e=>"ChunkLoadError"===e.name||e.message.includes("Failed to fetch dynamically imported module")},{type:o2.Default,condition:()=>!0}],o8={[o2.OutdatedRelease]:t(o1,{}),[o2.Default]:t(o0,{})};class o4 extends n{static contextType=om;state={hasError:!1,typeError:o2.Default};static getDerivedStateFromError(e){return{hasError:!0,typeError:o3.find(({condition:t})=>t(e))?.type??o2.Default}}componentDidCatch(e){this.context?.captureException(e)}render(){return this.state.hasError?o8[this.state.typeError]:this.props.children}}let o6=tc("div")`
|
|
483
540
|
display: flex;
|
|
484
541
|
flex-grow: 1;
|
|
485
542
|
align-items: center;
|
|
@@ -487,7 +544,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
487
544
|
|
|
488
545
|
width: 100%;
|
|
489
546
|
height: 100%;
|
|
490
|
-
`,
|
|
547
|
+
`,o5=({isLoading:e,isError:r,isCustom:i,errorState:o,customState:n,children:a,loadingContent:l=t(re,{color:"primary"})})=>{let{imagesMap:d}=c(om);if(e)return t(o6,{children:l});if(i&&n)return t(oQ,{...n});if(r&&o){let{title:e="Произошла ошибка",imgAlt:r,imgSrc:i=d.defaultErrorImgSrc,errorList:n,onRetry:a,actions:l=t(ro,{onClick:a,children:"Попробовать снова"})}=o,s=n.map(e=>t(rC,{component:"p",children:e},e));return t(oQ,{title:e,description:s,imgAlt:r,imgSrc:i,Actions:l})}return t(o4,{children:a})},o9=tc(rC)`
|
|
491
548
|
cursor: pointer;
|
|
492
549
|
|
|
493
550
|
display: flex;
|
|
@@ -496,7 +553,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
496
553
|
&:hover {
|
|
497
554
|
text-decoration: underline;
|
|
498
555
|
}
|
|
499
|
-
`,
|
|
556
|
+
`,o7=tc(P,{shouldForwardProp:e=>!["$copyPosition"].includes(e.toString())})`
|
|
500
557
|
margin-right: ${({$copyPosition:e,theme:t})=>"left"===e?t.spacing(1):""};
|
|
501
558
|
margin-left: ${({$copyPosition:e,theme:t})=>"right"===e?t.spacing(1):""};
|
|
502
559
|
|
|
@@ -504,13 +561,13 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
504
561
|
height: 16px;
|
|
505
562
|
|
|
506
563
|
fill: ${({color:e})=>e};
|
|
507
|
-
`;var
|
|
564
|
+
`;var ne=((t0={}).Copied="Скопировано",t0.Error="Ошибка копирования",t0.CanCopy="Скопировать",t0);let nt=e=>{let{children:i,copyPosition:o="right",copyText:n,isShowCopyText:a,color:l,...d}=e,s=()=>t(o7,{$copyPosition:o,color:l}),{handleMouseLeave:p,handleClick:c,tooltipTitle:g,isIconOnLeft:h}=(({children:e,copyText:t,isShowCopyText:r,copyPosition:i})=>{let[o,n]=y(ne.CanCopy);return{handleMouseLeave:()=>{o!==ne.CanCopy&&setTimeout(()=>{n(ne.CanCopy)},100)},handleClick:r=>{r.stopPropagation(),navigator.clipboard.writeText(t||("string"==typeof e?e:"")).then(()=>n(ne.Copied)).catch(()=>n(ne.Error))},tooltipTitle:r?`${o}: ${t}`:o,isIconOnLeft:"left"===i}})(e);return t(rZ,{title:g,disableInteractive:!0,placement:"bottom",children:r(o9,{onMouseLeave:p,onClick:c,component:"div",color:l,...d,children:[h&&s(),i,!h&&s()]})})},nr=l({collapsed:!1,toggleCollapsed:()=>{}}),ni=tc("main")`
|
|
508
565
|
grid-area: main;
|
|
509
566
|
overflow: hidden;
|
|
510
567
|
display: flex;
|
|
511
568
|
flex-direction: column;
|
|
512
569
|
padding: ${({theme:e})=>e.spacing(2,2,2,0)};
|
|
513
|
-
`,
|
|
570
|
+
`,no="16rem",nn="54px",na=tc("aside",{label:"Sidebar",shouldForwardProp:e=>"width"!==e})`
|
|
514
571
|
height: 100%;
|
|
515
572
|
width: ${({width:e})=>e};
|
|
516
573
|
display: grid;
|
|
@@ -519,24 +576,24 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
519
576
|
overflow: hidden auto;
|
|
520
577
|
background-color: transparent;
|
|
521
578
|
transition: ${({theme:e})=>e.transitions.create("width",{duration:e.transitions.duration.standard,easing:e.transitions.easing.easeInOut})};
|
|
522
|
-
`,
|
|
579
|
+
`,nl=tc("header",{label:"SidebarHeader"})`
|
|
523
580
|
grid-area: header;
|
|
524
581
|
width: 100%;
|
|
525
582
|
padding: ${({theme:e})=>e.spacing(2)};
|
|
526
583
|
padding-bottom: 0;
|
|
527
|
-
`,
|
|
584
|
+
`,nd=tc("footer",{label:"SidebarFooter"})`
|
|
528
585
|
grid-area: footer;
|
|
529
586
|
padding: ${({theme:e})=>e.spacing(2)};
|
|
530
587
|
padding-top: 0;
|
|
531
588
|
width: 100%;
|
|
532
|
-
`,
|
|
589
|
+
`,ns=tc("div",{label:"SidebarContent"})`
|
|
533
590
|
grid-area: content;
|
|
534
591
|
overflow: hidden auto;
|
|
535
592
|
display: flex;
|
|
536
593
|
flex-direction: column;
|
|
537
594
|
row-gap: ${({theme:e})=>e.spacing(2)};
|
|
538
595
|
padding: ${({theme:e})=>e.spacing(2)};
|
|
539
|
-
`,
|
|
596
|
+
`,np=tc("div")`
|
|
540
597
|
width: 100%;
|
|
541
598
|
max-width: 1760px;
|
|
542
599
|
height: 100%;
|
|
@@ -547,23 +604,23 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
547
604
|
border: 1px solid ${({theme:e})=>e.palette.grey[200]};
|
|
548
605
|
border-radius: ${({theme:e})=>e.shape.large};
|
|
549
606
|
background-color: #FAFAFA;
|
|
550
|
-
`,
|
|
607
|
+
`,nc=({children:e,className:r})=>{let[i,o]=tw("dashboard::collapsedIn",!1);return t(nr.Provider,{value:{collapsed:i,toggleCollapsed:()=>o(!i)},children:t(np,{className:r,children:e})})};nc.Sidebar=({width:e=no,collapsedWidth:i=nn,header:o,footer:n,content:a,className:l})=>{let{collapsed:d}=ng();return r(na,{className:l,width:d?i:e,children:[o&&t(nl,{children:o}),t(ns,{children:a}),n&&t(nd,{children:n})]})},nc.Main=({children:e,className:r})=>t(ni,{className:r,children:e});let ng=()=>c(nr),nh=44,nu=36,nm="start",nf={left:"start",center:"center",right:"end"},ny=e=>e&&nf[e]||nm,nx=tc("div",{shouldForwardProp:e=>!["$align","$isDisabled","$hasStartAdornment"].includes(e.toString())})`
|
|
551
608
|
overflow: hidden;
|
|
552
609
|
display: flex;
|
|
553
610
|
align-items: center;
|
|
554
|
-
justify-content: ${({$align:e})=>
|
|
611
|
+
justify-content: ${({$align:e})=>ny(e)};
|
|
555
612
|
|
|
556
|
-
min-height: ${
|
|
613
|
+
min-height: ${nh}px;
|
|
557
614
|
padding: ${({theme:e,$hasStartAdornment:t})=>t?e.spacing(1,2,1,0):e.spacing(1,2)};
|
|
558
615
|
|
|
559
616
|
opacity: ${({$isDisabled:e})=>e?.5:1};
|
|
560
|
-
`,
|
|
617
|
+
`,nb=e=>{let{formattedValue:i,hasStartAdornment:o}=(({row:e,cell:t,emptyCellValue:r,startAdornment:i})=>{let{format:o,field:n}=t,a=e=>!!e||0===e;return{formattedValue:m(()=>o&&a(o(e))?o(e):n&&a(e[n])?e[n]:r,[n,o,e,r]),hasStartAdornment:!!i}})(e),{className:n,startAdornment:a,row:l,cell:d,isDisabled:s}=e,{renderCell:p,align:c="left"}=d;return r(nx,{$isDisabled:s,$align:c,$hasStartAdornment:o,className:n,inert:!!s||void 0,children:[a&&a,p?.(l),!p&&t(ic,{rowsCount:2,children:i})]})},n$="data-row-disable",nv=tc("li")`
|
|
561
618
|
position: relative;
|
|
562
619
|
border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
|
|
563
620
|
&:last-of-type {
|
|
564
621
|
border-bottom: none;
|
|
565
622
|
}
|
|
566
|
-
`,
|
|
623
|
+
`,nw=tc("div")`
|
|
567
624
|
position: relative;
|
|
568
625
|
|
|
569
626
|
display: grid;
|
|
@@ -577,14 +634,14 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
577
634
|
|
|
578
635
|
background-color: ${({theme:e,$isHovered:t})=>t?e.palette.background.elementHover:"transparent"};
|
|
579
636
|
}
|
|
580
|
-
`,
|
|
637
|
+
`,nC=tc("div")`
|
|
581
638
|
display: flex;
|
|
582
639
|
align-items: center;
|
|
583
640
|
align-self: center;
|
|
584
641
|
justify-content: center;
|
|
585
642
|
|
|
586
|
-
width: ${
|
|
587
|
-
`,
|
|
643
|
+
width: ${nu}px;
|
|
644
|
+
`,nk=e=>{let{rowId:r,checkboxProps:i,rowProps:o,tooltipProps:n,disabled:a}=(({keyId:e,columns:t,row:r,activeRowId:i,options:o,isSelectable:n,selectedRows:a,onSelectRow:l,onRowClick:d})=>{let[s,p]=y(!1),c=r[e],{isDisabled:g,disabledReason:h}=o||{},u=n&&!!a?.find(t=>t[e]===c);return{rowId:c,disabled:g,columns:t,rowProps:{$isHovered:!!(!g&&d),$isSelected:i===c,onClick:()=>{g||d?.(r)},onMouseMove:e=>{g&&"true"!==e.target.getAttribute(n$)&&p(!1)}},tooltipProps:{open:s,title:h,onOpen:e=>{"true"===e.target.getAttribute(n$)&&p(!0)},onClose:()=>p(!1)},checkboxProps:{checked:u,disabled:g,onChange:l(r)}}})(e),{className:l,row:d,options:s,isSelectable:c,gridColumns:g,columns:h,emptyCellValue:u,selectedRows:m,activeRowId:f,keyId:x,onSelectRow:b,onRowClick:$,...v}=e,{isDisabledLastCell:w=!0,isNotSelectable:C}=s||{},k=p(()=>{let e=w?void 0:[h.length-1];return h?.map((o,n)=>{let l=`${r}-${n}`,s=!!a&&(!e||!e.includes(n));return t(nb,{row:d,cell:o,emptyCellValue:u,startAdornment:!n&&(!c||C?null:c&&!C&&t(nC,{inert:!!a||void 0,onClick:e=>e.stopPropagation(),children:t(ia,{...i,style:{padding:0}})})),isDisabled:s},l)})},[h,a]);return t(nv,{$gridColumns:g,className:l,...v,children:t(rZ,{followCursor:!0,arrow:!1,...n,children:t(nw,{$gridColumns:g,[n$]:a,...o,children:k()})})})},nS=tc("ul",{label:"DataGridBody"})`
|
|
588
645
|
overflow-y: auto;
|
|
589
646
|
height: 100%;
|
|
590
647
|
margin: 0;
|
|
@@ -592,48 +649,48 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
592
649
|
list-style-type: none;
|
|
593
650
|
display: flex;
|
|
594
651
|
flex-direction: column;
|
|
595
|
-
`,
|
|
652
|
+
`,nz=e=>{let{imagesMap:r}=c(om),{contentStateProps:i}=(({isLoading:e,isError:t,rows:r})=>{let i=!r.length;return{contentStateProps:{isLoading:e&&i,isError:t&&i}}})(e),{rows:o,selectedRows:n=[],isLoading:a,isError:l,errorMsg:d,keyId:s,noDataPlaceholder:p,onRetry:g,minHeight:h="400px",...u}=e,f=m(()=>o.map(({children:e,options:r,...i})=>{let o=i[s];return t(nk,{row:i,selectedRows:n,options:r,keyId:s,...u},o)}),[o,s,n,u]);return t(nS,{style:{minHeight:h},children:t(o5,{...i,errorState:{imgAlt:"Что-то пошло не так",errorList:[d||""],imgSrc:r.defaultErrorImgSrc,onRetry:g},children:o.length?f:p})})},nF=tc("footer",{label:"DataGridFooter"})`
|
|
596
653
|
display: flex;
|
|
597
654
|
align-items: center;
|
|
598
655
|
justify-content: flex-end;
|
|
599
656
|
width: 100%;
|
|
600
657
|
padding: ${({theme:e})=>e.spacing(2)};
|
|
601
658
|
border-top: 1px solid ${({theme:e})=>e.palette.divider};
|
|
602
|
-
`,
|
|
659
|
+
`,nM=({children:e})=>t(nF,{children:e});var nT=((t1={}).ASC="asc",t1.DESC="desc",t1);let nP=tc("div",{shouldForwardProp:e=>!["$align","$isSortable","$hasStartAdornment"].includes(e.toString())})`
|
|
603
660
|
user-select: none;
|
|
604
661
|
|
|
605
662
|
display: flex;
|
|
606
663
|
align-items: center;
|
|
607
|
-
justify-content: ${({$align:e})=>
|
|
664
|
+
justify-content: ${({$align:e})=>ny(e)};
|
|
608
665
|
|
|
609
666
|
height: 40px;
|
|
610
667
|
padding: ${({theme:e,$hasStartAdornment:t})=>t?e.spacing(1,2,1,0):e.spacing(1,2)};
|
|
611
668
|
|
|
612
669
|
color: ${({theme:e})=>e.palette.grey[700]};
|
|
613
|
-
`,
|
|
670
|
+
`,nA=tc(rC)`
|
|
614
671
|
display: flex;
|
|
615
672
|
align-items: center;
|
|
616
673
|
gap: ${({theme:e})=>e.spacing(1)};
|
|
617
674
|
font-weight: 500;
|
|
618
|
-
`,
|
|
675
|
+
`,nD=tc(ro,{shouldForwardProp:e=>!["$isActive"].includes(e.toString())})`
|
|
619
676
|
font-size: ${({theme:e})=>e.typography.caption.fontSize};
|
|
620
677
|
color: ${({theme:e,$isActive:t})=>t?e.palette.primary.main:e.palette.grey[700]};
|
|
621
678
|
> svg {
|
|
622
679
|
width: 16px;
|
|
623
680
|
height: 16px;
|
|
624
681
|
}
|
|
625
|
-
`,
|
|
682
|
+
`,nI=e=>{let{wrapperProps:i}=(({field:e,isSortable:t,startAdornment:r,onSort:i})=>({wrapperProps:{$hasStartAdornment:!!r,onClick:()=>{e&&t&&i(e)}}}))(e),{startAdornment:o,field:n,isSortable:a,align:l,label:d,sorting:s}=e,p=m(()=>{if(!a)return null;if(s?.fieldId!==n)return t($,{size:16});switch(s?.sort){case nT.ASC:return t(x,{size:16});case nT.DESC:return t(v,{size:16});default:return t($,{size:16})}},[s,a,n]);return r(nP,{$align:l,...i,children:[o&&o,a?t(nD,{variant:"link",$isActive:s?.fieldId===n,endIcon:p,children:d}):t(nA,{variant:"caption",children:d})]})},nO=tc("header",{shouldForwardProp:e=>!["$gridColumns"].includes(e.toString())})`
|
|
626
683
|
display: grid;
|
|
627
684
|
grid-template-columns: ${({$gridColumns:e})=>e};
|
|
628
685
|
|
|
629
686
|
background-color: ${({theme:e})=>e.palette.grey[200]};
|
|
630
|
-
`,
|
|
687
|
+
`,nE=tc("div")`
|
|
631
688
|
display: flex;
|
|
632
689
|
align-items: center;
|
|
633
690
|
justify-content: center;
|
|
634
691
|
|
|
635
|
-
width: ${
|
|
636
|
-
`,
|
|
692
|
+
width: ${nu}px;
|
|
693
|
+
`,nL=e=>{let{checkboxProps:r,handleSort:i}=(({rowsCount:e,sorting:t,uncheckedRowsCount:r,onSort:i})=>{let o=m(()=>!r&&e>0,[r,e]),n=m(()=>r>0&&r<e,[r,e]),a=!e;return{handleSort:p(e=>{if(!i)return;let r=t?.fieldId===e;return r&&t?.sort===nT.ASC?i({fieldId:e,sort:nT.DESC}):r&&t?.sort===nT.DESC?i(void 0):void i({fieldId:e,sort:nT.ASC})},[t,i]),checkboxProps:{checked:o,disabled:a,indeterminate:n}}})(e),{columns:o,gridColumns:n,isSelectable:a,sorting:l,onSelectAllRows:d}=e,s=m(()=>o.map(({field:e,label:o,sortable:n,align:s},p)=>t(nI,{sorting:l,field:e,label:o,isSortable:n,align:s,startAdornment:!p&&a?t(nE,{children:t(ia,{...r,onChange:d})}):null,onSort:i},o)),[o,l,a,r,d,i]);return t(nO,{$gridColumns:n,children:s})},nR=tc("div")`
|
|
637
694
|
position: absolute;
|
|
638
695
|
top: 0;
|
|
639
696
|
|
|
@@ -642,11 +699,11 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
642
699
|
|
|
643
700
|
opacity: 0.3;
|
|
644
701
|
background-color: ${({theme:e})=>e.palette.background.element};
|
|
645
|
-
`,
|
|
702
|
+
`,nB=tc("div")`
|
|
646
703
|
height: 1px;
|
|
647
|
-
`,
|
|
704
|
+
`,nN=tc(ev)`
|
|
648
705
|
height: 1px;
|
|
649
|
-
`,
|
|
706
|
+
`,nW=({isLoading:e=!1,isDisabled:i=!1})=>r(nB,{children:[(e||i)&&t(nR,{}),e&&t(nN,{})]}),n_=({title:e="Нет\xa0данных",imgAlt:r=e,action:i,size:o="small"})=>{let{imagesMap:{noDataImgSrc:n}}=c(om);return t(oQ,{title:e,imgSrc:n,size:o,Actions:i?t(ro,{onClick:i.onClick,"aria-label":i.text,children:i.text}):void 0,imgAlt:r})},nH=tc("div",{shouldForwardProp:e=>"$maxHeight"!==e})`
|
|
650
707
|
position: relative;
|
|
651
708
|
|
|
652
709
|
overflow: hidden;
|
|
@@ -658,24 +715,24 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
658
715
|
border: ${({theme:e})=>`1px solid ${e.palette.divider}`};
|
|
659
716
|
border-radius: ${({theme:e})=>e.shape.medium};
|
|
660
717
|
max-height: ${({$maxHeight:e})=>e?`${e}px`:"initial"};
|
|
661
|
-
`,
|
|
718
|
+
`,nj=tc("div")`
|
|
662
719
|
overflow: hidden;
|
|
663
720
|
display: flex;
|
|
664
721
|
flex-direction: column;
|
|
665
722
|
|
|
666
723
|
height: 100%;
|
|
667
|
-
`,
|
|
724
|
+
`,nV=tc(nj)`
|
|
668
725
|
pointer-events: none;
|
|
669
726
|
|
|
670
727
|
background: ${({theme:e})=>e.palette.background.element};
|
|
671
728
|
mix-blend-mode: luminosity;
|
|
672
|
-
`,
|
|
729
|
+
`,nG=e=>{let{isDataGridDisabled:i,headProps:o,bodyProps:n,loaderProps:a,renderRows:l}=(({keyId:e,columns:t,rows:r=[],selectedRows:i=[],isLoading:o,isDisabled:n,onSelectRow:a})=>{let l=!!r?.length,d=!!a,s=o||n,c=r.filter(e=>!(e.options?.isDisabled||e.options?.isNotSelectable)),h=f([]);g(()=>{o||(h.current=r)},[r,o]);let u=t.map(({width:e})=>"number"==typeof e?`${e}px`:e||"1fr").join(" "),y=m(()=>c.filter(t=>!i.find(r=>r[e]===t[e])).length,[c,i,e]),x=p(()=>r.length<=1?t.map(e=>({...e,sortable:!1})):t,[t,r]),b=o?h.current:r,$=p(t=>r=>{if(a){if(r.target.checked)return a([...i,t]);a(i.filter(r=>r[e]!==t[e]))}},[i,a,e]);return{isDataGridDisabled:s,renderRows:b,headProps:{rowsCount:c.length,uncheckedRowsCount:y,gridColumns:u,isSelectable:d,columns:x(),onSelectAllRows:t=>{if(a){if(t.target.checked)return a(tb([...i,...c],tx(e)));a(i.filter(t=>!r.find(r=>r[e]===t[e])))}}},bodyProps:{gridColumns:u,isSelectable:d,onSelectRow:$},loaderProps:{isLoading:l&&o,isDisabled:n}}})(e),{emptySymbol:d}=c(om),{columns:s,selectedRows:h=[],sorting:u,maxHeight:y,errorMsg:x,footer:b,noDataPlaceholder:$,isLoading:v,isError:w,keyId:C,activeRowId:k,emptyCellValue:S=d,className:z,onRowClick:F,onSort:M,noDataOptions:T,onRetry:P}=e,A=p(()=>v?null:$||t(n_,{...T}),[$,T,v]);return r(nH,{$maxHeight:y,className:z,children:[r(i?nV:nj,{inert:!!i||void 0,children:[t(nL,{...o,sorting:u,onSort:M}),t(nz,{...n,activeRowId:k,keyId:C,selectedRows:h,rows:l,columns:s,emptyCellValue:S,isLoading:v,isError:w,errorMsg:x,noDataPlaceholder:A(),onRowClick:F,onRetry:P})]}),t(nW,{...a}),b&&t(nM,{children:b})]})},nU=r=>{let{tooltipProps:i}=(({action:e})=>{let{loading:t,disabledReason:r,name:i}=e,[o,n]=y(!1);return g(()=>{t&&n(!1)},[t]),{tooltipProps:{title:r||i,open:o,onOpen:()=>n(!0),onClose:()=>n(!1)}}})(r),{action:o,onActionClick:n,isDisabled:a,tooltipPlacement:l}=r,{name:d,icon:s,needConfirm:p,confirmText:c,confirmButtonProps:h,disabledReason:u,disabled:m,loading:f,isBlockingOperation:x,loadingNote:b,onClick:$,...v}=o,w=e=>t(rZ,{withoutContainer:!m,placement:l,...i,children:t(rR,{disabled:a||m,loading:f,...v,variant:"text",...e,children:s})},d);return t(e,{children:p?t(oC,{text:c,confirmButtonProps:h,actionComponent:e=>w(e),onConfirm:n($)}):w({onClick:n($)})})},nY=({action:e,onActionClick:r,isDisabled:i,tooltipPlacement:o})=>{if("actions"in e){let{disabled:n,icon:a,name:l,disabledReason:s,actions:p}=e;return t(rZ,{title:s||l,withoutContainer:!n,placement:o,children:t(rK,{icon:a,variant:"text",disabled:i||n,children:p.map(({name:e,onClick:t,...i})=>d(rQ,{...i,key:e,onClick:r(t)},e))})},l)}return t(nU,{action:e,onActionClick:r,isDisabled:i,tooltipPlacement:o})},nK=({actions:e,onActionClick:r,tooltipPlacement:i,isDisabled:o})=>t(rK,{icon:t(D,{}),variant:"text",disabled:o,children:e.map(e=>{let{onClick:t,name:o}=e;return d(rQ,{...e,key:o,tooltipPlacement:i,onClick:r(t)},o)})}),nq=tc("div")`
|
|
673
730
|
display: inline-flex;
|
|
674
731
|
align-items: center;
|
|
675
|
-
`,
|
|
732
|
+
`,nX=e=>{let{isDisabledAction:i,handleWrapperClick:o,handleActionClick:n}=(({row:e,actions:t})=>{let{main:r,secondary:i}=t,o=[...r,...i||[]].find(e=>e.isBlockingOperation&&e.loading);return{isDisabledAction:!!o,handleActionClick:p(t=>()=>{t?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}})(e),{actions:a}=e,{main:l,secondary:d}=a;return r(nq,{onClick:o,children:[l.map(e=>t(nY,{action:e,onActionClick:n,isDisabled:i,tooltipPlacement:"top"},e.name)),d&&t(nK,{actions:d,onActionClick:n,tooltipPlacement:"left",isDisabled:i})]})},nJ=({...e})=>t(eD,{shape:"rounded",...e}),nZ=tc("div")`
|
|
676
733
|
display: flex;
|
|
677
734
|
column-gap: ${({theme:e})=>e.spacing(1)};
|
|
678
|
-
`,
|
|
735
|
+
`,nQ=tc(iz,{shouldForwardProp:e=>"$shrinks"!==e})`
|
|
679
736
|
min-width: ${({$shrinks:e})=>e?"30px":"unset"};
|
|
680
737
|
max-width: 246px;
|
|
681
738
|
|
|
@@ -684,7 +741,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
684
741
|
display: inline;
|
|
685
742
|
}
|
|
686
743
|
}
|
|
687
|
-
`,
|
|
744
|
+
`,n0=e=>{let{onMouseDown:r}={onMouseDown:e=>{e.stopPropagation()}},{shrinks:i,isDisabled:o,...n}=e;return t(nQ,{$shrinks:i,color:"grey",disabled:o,...n,onMouseDown:r})},n1=(e,t)=>{if(e.innerHTML===t)return e;for(let r=0;r<e.children.length;r+=1){let i=n1(e.children[r],t);if(i)return i}return null},n2=e=>{let{maxItems:i,tagsContainerRef:o,visibleOptions:n,getTagProps:a}=(({data:e=[],keyId:t,getOptionLabel:r,onChange:i})=>{let[o,n]=y(1),a=f(!1),l=f(null),d=()=>{let t=l.current;if(!t)throw Error("Tags container ref is not set");let i=Number.parseInt(window.getComputedStyle(t).columnGap),o=t.firstElementChild?.getBoundingClientRect().width||0,a=t.getBoundingClientRect().width-o,d=t.cloneNode(!0);for(;d.lastElementChild&&d.children.length>1;)d.removeChild(d.lastElementChild);d.style.visibility="hidden",n(1+((t,i,o)=>{let n=r(e[0]);document.body.appendChild(t);let a=0,l=0;for(let d=1;d<e.length;d+=1){let s=t.firstChild?.cloneNode(!0),p=r(e[d]),c=n1(s,n);if(!c)throw Error("Could not find text node");c.textContent=p,t.appendChild(s);let g=s.getBoundingClientRect().width+o;if(a+g>i)break;l+=1,a+=g}return document.body.removeChild(t),l})(d,a,i))};u(()=>{"undefined"!=typeof window&&e&&e.length&&(d(),a.current=!0)},[e]),g(()=>{if("undefined"==typeof window||!e||!e.length)return;if(!l.current)throw Error("Tags container ref is not set");let t=new ResizeObserver(()=>{if(a.current){a.current=!1;return}d()});return t.observe(l.current),()=>t.disconnect()},[e]);let s=e?.slice(0,o);return{maxItems:o,visibleOptions:s,tagsContainerRef:l,getTagProps:(n,a)=>{let l=r(n);return{label:l,shrinks:a===o-1&&o<=e.length,onDelete:()=>{let r=e?.filter(e=>"string"==typeof e?e!==n:e[t]!==n[t]);i(r?.length?r:[])}}}}})(e),{className:l,data:d,keyId:s,isDisabled:p,onClick:c}=e;return r(nZ,{className:l,ref:o,children:[n?.map((e,r)=>t(n0,{isDisabled:p,onClick:c,...a(e,r)},((e,t)=>{if("string"==typeof e)return e;let r=e[t];return"number"==typeof r?r.toString():r})(e,s))),d&&i<d.length&&t(n0,{isDisabled:p,label:`+${d.length-i}`,onClick:c},"more")]})},n3="Очистить",n8=tc("div")`
|
|
688
745
|
display: flex;
|
|
689
746
|
flex-direction: column;
|
|
690
747
|
align-items: center;
|
|
@@ -696,9 +753,9 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
696
753
|
|
|
697
754
|
color: ${({theme:e})=>e.palette.grey["900"]};
|
|
698
755
|
}
|
|
699
|
-
`,
|
|
756
|
+
`,n4=tc(rQ)`
|
|
700
757
|
display: none;
|
|
701
|
-
`,
|
|
758
|
+
`,n6=tc(rR)`
|
|
702
759
|
padding: 0;
|
|
703
760
|
svg {
|
|
704
761
|
stroke: ${({theme:e})=>e.palette.grey["600"]};
|
|
@@ -714,42 +771,42 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
714
771
|
width: 32px;
|
|
715
772
|
height: 32px;
|
|
716
773
|
}
|
|
717
|
-
`,
|
|
774
|
+
`,n5=tc(T)`
|
|
718
775
|
width: 16px;
|
|
719
776
|
height: 16px;
|
|
720
777
|
padding: 0;
|
|
721
|
-
`,
|
|
778
|
+
`,n9=tc("div",{label:"EndAdornmentWrapper"})`
|
|
722
779
|
display: flex;
|
|
723
780
|
align-items: center;
|
|
724
781
|
|
|
725
782
|
margin-left: auto;
|
|
726
|
-
`,
|
|
727
|
-
.${
|
|
783
|
+
`,n7=tc(eB)`
|
|
784
|
+
.${tl.select} {
|
|
728
785
|
padding-right: ${({theme:e})=>e.spacing(2)} !important;
|
|
729
786
|
}
|
|
730
|
-
`,
|
|
787
|
+
`,ae=({onClick:e,disabled:r,ref:i})=>t(n6,{disabled:r,ref:i,onClick:e,variant:"text",title:n3,"aria-label":n3,children:t(n5,{})});function at({required:e,getOptionLabel:i=e=>String(e),placeholder:n,helperText:a,loading:l,success:d,children:s,disabled:p,error:c,label:g,fullWidth:h,id:u,onChange:m,isShowClearButton:x,...b}){let{isOpened:$,isShowingClearButton:v,isNoData:w,onClearAll:k,openSelect:S,closeSelect:F,resetButtonRef:M}=function({value:e,onChange:t,children:r,open:i,defaultOpen:n,multiple:a,isShowClearButton:l=!1}){let[d,s]=y(n||i||!1),p=f(null),c=l&&!(!e||Array.isArray(e)&&0===e.length||"string"==typeof e&&0===e.length);return{isOpened:d,isNoData:!o.count(r),isShowingClearButton:c,resetButtonRef:p,openSelect:()=>s(!0),closeSelect:()=>s(!1),onClearAll:()=>{t?.call({},{target:{value:a?[]:""}})}}}({...b,children:s,onChange:m,isShowClearButton:x});return r(ef,{error:c,fullWidth:h,children:[g&&t(e$,{htmlFor:u||g,required:e,children:g}),r(n7,{...b,open:$,id:u||g,disabled:p,onOpen:S,onClose:F,renderValue:e=>Array.isArray(e)&&e.length?t(n2,{data:e,keyId:"value",getOptionLabel:i,onChange:e=>e?m?.({target:{value:e}},void 0):m?.({target:{value:[]}},void 0),onClick:S}):(Array.isArray(e)||"string"==typeof e)&&!e.length?n:i(e),IconComponent:()=>null,displayEmpty:!0,fullWidth:h,onChange:m,endAdornment:r(n9,{children:[v&&t(ae,{disabled:p,ref:M,onClick:k}),t(n6,{variant:"text",disabled:p,onClick:S,children:$?t(z,{size:16}):t(C,{size:16})})]}),children:[t(n4,{value:"",children:n}),l&&t(n8,{children:t(re,{color:"primary"})}),!l&&s,!l&&w&&t(rQ,{disabled:!0,children:"Нет данных"})]}),a&&t(iI,{error:c,success:d,children:a})]})}let ar=20,ai=[20,50,100],ao=tc("div")`
|
|
731
788
|
display: flex;
|
|
732
789
|
align-items: center;
|
|
733
790
|
justify-content: space-between;
|
|
734
791
|
width: 100%;
|
|
735
|
-
`,
|
|
792
|
+
`,an=tc(rC)`
|
|
736
793
|
color: ${({theme:e})=>e.palette.grey["700"]};
|
|
737
|
-
`,
|
|
794
|
+
`,aa=tc("div")`
|
|
738
795
|
display: flex;
|
|
739
796
|
gap: ${({theme:e})=>e.spacing(3)};
|
|
740
797
|
align-items: center;
|
|
741
798
|
|
|
742
|
-
.${
|
|
799
|
+
.${e9.root} {
|
|
743
800
|
flex-direction: unset;
|
|
744
801
|
}
|
|
745
|
-
`,
|
|
802
|
+
`,al=i=>{let{isVisiblePagination:o,pageCount:n,formattedRange:a,handleChangeRowsPerPage:l}=(({totalCount:e,rowsPerPage:t=ar,page:r,onSetCountPerPage:i})=>{let o=f(0);g(()=>{e&&(o.current=e)},[e]);let n=e||o.current,a=Math.ceil(n/t),l=(r-1)*t+1;return{isVisiblePagination:!(!i&&n<=t),pageCount:a,formattedRange:()=>`${l} \u{2014} ${(()=>{let e=r*t;return e<n?e:n})()} \u{438}\u{437} ${n}`,handleChangeRowsPerPage:e=>{i?.(Number(e.target.value))}}})(i),{page:d,totalCount:s,className:p,rowsPerPage:c=ar,rowsPerPageOptions:h=ai,isForceCounter:u,disabled:m,onSetCountPerPage:y,...x}=i;return(o||u)&&s?r(ao,{className:p,children:[r(aa,{children:[y&&r(e,{children:[t(rC,{variant:"body1",children:"Строк на странице:"}),t(at,{size:"small",value:c,disabled:m,isShowClearButton:!1,onChange:l,children:h.map(e=>t(rQ,{value:e,children:e},e))})]}),t(an,{variant:"h6",children:a()})]}),o&&t(nJ,{disabled:m,count:n,page:d,...x})]}):null},ad=({maskProps:e,...r})=>t(iO,{inputRef:tP(e),...r}),as=tc("div")`
|
|
746
803
|
padding: ${({theme:e})=>e.spacing(2)};
|
|
747
|
-
`,
|
|
804
|
+
`,ap=i=>{let{label:o,disabled:n=!1,selected:a,onSelect:l,selectMonth:d,selectYear:s,error:p,helperText:c,className:h,fullWidth:u,size:m,name:f,...x}=i,[b,$]=y(null),[v,C]=y(null),[k,S]=y(new Date),[z,F]=y(""),M=()=>{C(null)};return g(()=>{a?(F(a.toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"})),S(a)):F("")},[a]),r(e,{children:[t(ad,{value:z,onChange:e=>{$(null),F(e.target.value);let[t,r,i]=e.target.value.split(".").map(Number);if(Number.isNaN(t)||Number.isNaN(r)||Number.isNaN(i)||t<1||t>31||r<1||r>12||i<1e3)return void $("Некорректная дата");let o=new Date(i,r-1,t);l?.(o),S(o)},label:o,disabled:n,className:h,fullWidth:u,size:m,name:f,endAdornment:t(rR,{variant:"text",onClick:e=>{C(e.currentTarget)},children:t(w,{})}),maskProps:{mask:"__.__.____",replacement:{_:/\d/},showMask:!0},placeholder:"дд.мм.гггг",error:!!b||p,helperText:b||c}),t(oy,{title:"Заголовок",open:!!v,anchorEl:v,onClose:M,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:t(as,{children:t(iQ,{month:k,onMonthChange:S,selected:a,onSelect:e=>{e?(l?.(e),S(e),F(e.toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"}))):(F(""),l?.(void 0)),M()},...x,mode:"single",captionLayout:d&&s?"dropdown":d?"dropdown-months":s?"dropdown-years":"label"})})})]})},ac=":",ag="—",ah="astral-ui_descriptionRoot",au=l({leader:!1,separator:ac,direction:"default"}),am=({children:e,leader:r,separator:i,direction:o})=>t(au.Provider,{value:{leader:r,separator:i,direction:o},children:e}),af=tc("dt",{shouldForwardProp:e=>"$leader"!==e})`
|
|
748
805
|
flex-shrink: 0;
|
|
749
806
|
|
|
750
807
|
max-width: ${({$leader:e})=>e?"calc(100% - 36px)":"calc(100% - 12px)"};
|
|
751
808
|
margin-right: ${({theme:e})=>e.spacing(2)};
|
|
752
|
-
`,
|
|
809
|
+
`,ay=tc("div")`
|
|
753
810
|
flex: 1;
|
|
754
811
|
|
|
755
812
|
min-width: 12px;
|
|
@@ -761,7 +818,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
761
818
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
762
819
|
display: none;
|
|
763
820
|
}
|
|
764
|
-
`,
|
|
821
|
+
`,ax=tc("div",{shouldForwardProp:e=>!["$justifyContent","as","$direction"].includes(e.toString())})`
|
|
765
822
|
overflow: hidden;
|
|
766
823
|
display: flex;
|
|
767
824
|
flex-direction: ${({$direction:e})=>"default"===e?"row":e};
|
|
@@ -777,7 +834,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
777
834
|
font-size: ${({theme:e})=>e.typography.fontSize};
|
|
778
835
|
}
|
|
779
836
|
}
|
|
780
|
-
`,
|
|
837
|
+
`,ab=tc(rC,{shouldForwardProp:e=>!["$canCopy","$leader","$direction"].includes(e.toString())})`
|
|
781
838
|
cursor: ${({$canCopy:e})=>e?"pointer":"default"};
|
|
782
839
|
|
|
783
840
|
overflow: hidden;
|
|
@@ -793,7 +850,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
793
850
|
&:hover {
|
|
794
851
|
text-decoration: ${({$canCopy:e})=>e?"underline":"none"};
|
|
795
852
|
}
|
|
796
|
-
`,
|
|
853
|
+
`,a$=tc(nt,{shouldForwardProp:e=>!["$leader","$direction"].includes(e.toString())})`
|
|
797
854
|
display: unset;
|
|
798
855
|
|
|
799
856
|
hyphens: auto;
|
|
@@ -807,18 +864,18 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
807
864
|
& > svg {
|
|
808
865
|
margin-bottom: ${({theme:e})=>e.spacing(-1)};
|
|
809
866
|
}
|
|
810
|
-
`,
|
|
867
|
+
`,av=tc("dd")`
|
|
811
868
|
overflow: hidden;
|
|
812
869
|
|
|
813
870
|
margin: 0;
|
|
814
|
-
`,
|
|
871
|
+
`,aw=e=>{let{descriptionContextProviderProps:r,direction:i}=(({direction:e="default",separator:t=ac})=>{let{isMobile:r}=rI();return{descriptionContextProviderProps:{separator:"column"===e||r&&"default"===e?"":t},direction:e}})(e),{justifyContent:o="start",component:n="dl",children:a,leader:l=!1}=e;return t(am,{leader:l,direction:i,...r,children:t(ax,{$justifyContent:o,className:ah,$direction:i,as:n,children:a})})};aw.Name=({children:i,color:o="textSecondary",...n})=>{let{leader:a,separator:l}=c(au);return r(e,{children:[t(af,{$leader:a,children:r(rC,{...n,color:o,children:[i,!a&&l]})}),a&&t(ay,{})]})},aw.Value=e=>{let{valueToRender:r,isDefaultValueRender:i,leader:o,direction:n}=(({canCopy:e,children:t,stub:r})=>{let{emptySymbol:i}=c(om),{leader:o,direction:n}=c(au);return{valueToRender:t||r||i,isDefaultValueRender:!e||!t,leader:o,direction:n}})(e),{copyPosition:a="right",copyText:l,canCopy:d,children:s,stub:p,...g}=e;return i?t(ab,{$direction:n,component:"dd",$leader:o,...g,children:r}):t(av,{children:t(a$,{copyPosition:a,copyText:l,$direction:n,$leader:o,component:"div",...g,children:r})})};let aC=e=>t(ic,{visibleLastSymbolsCount:4,...e}),ak=tc(aw.Name,{shouldForwardProp:e=>!["$nameMaxWidth, $direction"].includes(e.toString())})`
|
|
815
872
|
max-width: ${({$nameMaxWidth:e})=>e||"none"};
|
|
816
873
|
margin-bottom: ${({theme:e,$direction:t})=>Object.is(t,"column")?e.spacing(1):0};
|
|
817
874
|
|
|
818
875
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
819
876
|
margin-bottom: ${({theme:e,$direction:t})=>Object.is(t,"row")?0:e.spacing(1)};
|
|
820
877
|
}
|
|
821
|
-
`,
|
|
878
|
+
`,aS=tc("article",{shouldForwardProp:e=>!["$variant"].includes(e.toString())})`
|
|
822
879
|
display: grid;
|
|
823
880
|
row-gap: ${({theme:e})=>e.spacing(3)};
|
|
824
881
|
|
|
@@ -827,7 +884,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
827
884
|
background-color: ${({$variant:e,theme:t})=>"contained"===e?t.palette.background.default:"transparent"};
|
|
828
885
|
border: ${({$variant:e,theme:t})=>"contained"===e?`1px solid ${t.palette.grey[300]}`:"unset"};
|
|
829
886
|
border-radius: ${({theme:e})=>e.shape.small};
|
|
830
|
-
`,
|
|
887
|
+
`,az=tc("dl",{shouldForwardProp:e=>!["$direction"].includes(e.toString())})`
|
|
831
888
|
display: grid;
|
|
832
889
|
row-gap: ${({theme:e,$direction:t})=>Object.is(t,"column")?e.spacing(3):e.spacing(1)};
|
|
833
890
|
|
|
@@ -836,12 +893,12 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
836
893
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
837
894
|
row-gap: ${({theme:e})=>e.spacing(3)};
|
|
838
895
|
}
|
|
839
|
-
`,
|
|
896
|
+
`,aF=tc(aw.Value,{shouldForwardProp:e=>!["$isCopy"].includes(e.toString())})`
|
|
840
897
|
display: ${({$isCopy:e})=>e&&"flex"};
|
|
841
898
|
|
|
842
899
|
width: ${({$isCopy:e})=>e&&"calc(100% - 20px)"};
|
|
843
|
-
`,
|
|
844
|
-
.${
|
|
900
|
+
`,aM=({items:e,variant:i="default",title:o,direction:n,...a})=>{let l=p((e,r)=>{let{renderValue:i,color:o,canCopy:n,copyPosition:a,variant:l,copyText:d}=r;if(i)return i(e,r);if("tag"===l)return t(aw.Value,{children:t(iz,{label:e,color:o,variant:"light"})});if("guid"===l){let r=n?{title:void 0}:void 0;return t(aF,{canCopy:n,$isCopy:n,color:o,copyPosition:a,copyText:d,children:t(aC,{tooltipProps:r,children:e})})}return t(aw.Value,{canCopy:n,color:o,copyPosition:a,children:e})},[]);return r(aS,{$variant:i,children:[o&&("string"==typeof o?t(rC,{variant:"h6",children:o}):o),t(az,{$direction:n,children:e.map(({name:e,value:i,options:o})=>{let{nameMaxWidth:d,...s}=o||{};return r(aw,{direction:n,...a,component:"div",children:[t(ak,{$nameMaxWidth:d,$direction:n,children:e}),l(i,s)]},`${e}:${i}`)})})]})},aT=tc(rZ)`
|
|
901
|
+
.${tu.tooltip} {
|
|
845
902
|
background-color: ${({theme:e})=>e.palette.common.white};
|
|
846
903
|
color: ${({theme:e})=>e.palette.text.primary};
|
|
847
904
|
box-shadow: ${({theme:e})=>e.shadows[1]};
|
|
@@ -851,7 +908,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
851
908
|
padding: ${({theme:e})=>e.spacing(2)};
|
|
852
909
|
box-shadow: ${({theme:e})=>e.shadows[4]};
|
|
853
910
|
}
|
|
854
|
-
`;function
|
|
911
|
+
`;function aP({arrow:e,followCursor:r,children:i,...o}){return t(aT,{arrow:!0,title:t(aM,{...o}),children:i})}let aA=tc("div",{label:"DialogHeader-root",shouldForwardProp:e=>!["hasTitle","hasOnClose"].includes(e.toString())})`
|
|
855
912
|
overflow: hidden;
|
|
856
913
|
display: grid;
|
|
857
914
|
grid-template-columns: ${({hasTitle:e,hasOnClose:t})=>e&&t?"max-content 1fr 32px":e?"max-content 1fr":t?"1fr 32px":"1fr"};
|
|
@@ -860,7 +917,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
860
917
|
|
|
861
918
|
height: auto;
|
|
862
919
|
padding: ${({theme:e})=>e.spacing(4,6)};
|
|
863
|
-
`,
|
|
920
|
+
`,aD=tc("div",{shouldForwardProp:e=>!["justifyContent","columnSpacing"].includes(e.toString()),label:"DialogHeader-content"})`
|
|
864
921
|
overflow: hidden;
|
|
865
922
|
display: flex;
|
|
866
923
|
column-gap: ${({columnSpacing:e,theme:t})=>t.spacing(e)};
|
|
@@ -870,27 +927,27 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
870
927
|
width: 100%;
|
|
871
928
|
height: 100%;
|
|
872
929
|
padding: 0;
|
|
873
|
-
`,
|
|
930
|
+
`,aI=({children:e,title:i,justifyContent:o="flex-start",disableSpacing:n,onClose:a})=>r(aA,{hasTitle:!!i,hasOnClose:!!a,children:[i&&t(rC,{variant:"h4",children:i}),t(aD,{justifyContent:o,columnSpacing:2*!n,children:e}),a&&t(rR,{variant:"text",onClick:e=>{a&&a(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:t(j,{})})]}),aO=e=>t(eu,{...e}),aE=tc("span")`
|
|
874
931
|
overflow: hidden;
|
|
875
932
|
|
|
876
933
|
max-width: 100%;
|
|
877
934
|
|
|
878
935
|
text-overflow: ellipsis;
|
|
879
936
|
white-space: nowrap;
|
|
880
|
-
`,
|
|
937
|
+
`,aL=tc(rC,{shouldForwardProp:e=>!["$align"].includes(e.toString())})`
|
|
881
938
|
display: flex;
|
|
882
939
|
justify-content: ${({$align:e})=>e};
|
|
883
|
-
`,
|
|
940
|
+
`,aR=[".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"],aB=s((e,i)=>{let{isOverflowed:o,suffixWithExtension:n,baseNameProps:a}=(({ref:e,children:t})=>{let{ref:r,isOverflowed:i}=is(e),{baseName:o,suffixWithExtension:n}=(e=>{let t=(e=>{for(let t of aR)if(e.endsWith(t))return t;let t=e.lastIndexOf(".");if(-1!==t)return e.slice(t)})(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)}})(t);return{baseNameProps:{ref:r,children:o},isOverflowed:i,suffixWithExtension:n}})({...e,ref:i}),{tooltipProps:l,variant:d="inherit",children:s,align:p="left",...c}=e;return t(rZ,{title:o&&s,disableInteractive:!0,...l,children:r(aL,{$align:p,variant:d,...c,children:[t(aE,{...a}),t("span",{children:n})]})})}),aN=tc(eb)`
|
|
884
941
|
font-size: ${({theme:e})=>e.typography.caption.fontSize};
|
|
885
942
|
line-height: ${({theme:e})=>e.typography.caption.lineHeight};
|
|
886
|
-
`,
|
|
943
|
+
`,aW=e=>t(aN,{...e}),a_=tc("span",{label:"Separator"})`
|
|
887
944
|
padding: 0;
|
|
888
945
|
margin: 0;
|
|
889
946
|
overflow: hidden;
|
|
890
947
|
white-space: nowrap;
|
|
891
948
|
border-width: 0;
|
|
892
949
|
color: ${({theme:e})=>e.palette.text.primary};
|
|
893
|
-
`,
|
|
950
|
+
`,aH=({separator:e="•",...r})=>t("div",{...r,children:t(a_,{children:e})}),aj=tc("div",{shouldForwardProp:e=>"$isActive"!==e})`
|
|
894
951
|
position: relative;
|
|
895
952
|
display: flex;
|
|
896
953
|
height: 2.5rem;
|
|
@@ -913,14 +970,14 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
913
970
|
border-bottom-right-radius: ${({theme:e})=>e.shape.small};
|
|
914
971
|
}
|
|
915
972
|
z-index: ${({$isActive:e})=>10*!!e};
|
|
916
|
-
`,
|
|
973
|
+
`,aV=tc("div")`
|
|
917
974
|
position: absolute;
|
|
918
975
|
inset: 0;
|
|
919
976
|
display: flex;
|
|
920
977
|
align-items: center;
|
|
921
978
|
justify-content: center;
|
|
922
979
|
pointer-events: none;
|
|
923
|
-
`,
|
|
980
|
+
`,aG=tt`
|
|
924
981
|
0%,
|
|
925
982
|
100% {
|
|
926
983
|
opacity: 0;
|
|
@@ -928,15 +985,15 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
928
985
|
50% {
|
|
929
986
|
opacity: 1;
|
|
930
987
|
}
|
|
931
|
-
`,
|
|
988
|
+
`,aU=tc("div")`
|
|
932
989
|
height: 1rem;
|
|
933
990
|
width: 1px;
|
|
934
991
|
background-color: ${({theme:e})=>e.palette.primary.main};
|
|
935
|
-
animation: ${
|
|
936
|
-
`,
|
|
992
|
+
animation: ${aG} 1s infinite;
|
|
993
|
+
`,aY=({char:e,hasFakeCaret:i,isActive:o,...n})=>r(aj,{$isActive:o,...n,children:[e,i&&t(aV,{children:t(aU,{})})]}),aK=tc("div")`
|
|
937
994
|
display: flex;
|
|
938
995
|
align-items: center;
|
|
939
|
-
`,
|
|
996
|
+
`,aq=tc("div")`
|
|
940
997
|
.inputOTPContainer {
|
|
941
998
|
display: flex;
|
|
942
999
|
align-items: center;
|
|
@@ -954,7 +1011,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
954
1011
|
.inputOTP:has(:disabled) {
|
|
955
1012
|
cursor: not-allowed;
|
|
956
1013
|
}
|
|
957
|
-
`,
|
|
1014
|
+
`,aX=({...i})=>t(aq,{children:t(tA,{className:"inputOTP",containerClassName:"inputOTPContainer",...i,render:({slots:i})=>i.length%2!=0?t(aK,{children:i.map((e,r)=>t(aY,{...e},`${r}-${e.char}`))}):r(e,{children:[t(aK,{children:i.slice(0,i.length/2).map((e,r)=>t(aY,{...e},`${r}-${e.char}`))}),t(aH,{}),t(aK,{children:i.slice(i.length/2).map((e,r)=>t(aY,{...e},`${r}-${e.char}`))})]})})}),aJ=tc(ew)`
|
|
958
1015
|
display: inline-flex;
|
|
959
1016
|
gap: ${({theme:e})=>e.spacing(1)};
|
|
960
1017
|
align-items: center;
|
|
@@ -982,33 +1039,33 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
982
1039
|
outline: 2px solid ${({theme:e})=>e.palette.primary[400]};
|
|
983
1040
|
}
|
|
984
1041
|
|
|
985
|
-
.${
|
|
1042
|
+
.${tg.root} {
|
|
986
1043
|
align-self: center;
|
|
987
1044
|
|
|
988
1045
|
width: 16px;
|
|
989
1046
|
height: 16px;
|
|
990
1047
|
}
|
|
991
|
-
`,
|
|
1048
|
+
`,aZ=({withAdornment:e,isDownload:i,children:o,...n})=>{let a=i?t(b,{size:16}):t(N,{size:16});return r(aJ,{download:i,...n,children:["start"===e&&a,o,"end"===e&&a,!e&&i&&t(b,{})]})},aQ=e=>t(eC,{...e});var a0=((t2={}).DEFAULT="default",t2.HOVER="hover",t2.SELECTED="selected",t2);let a1=({theme:e,listItemState:t})=>t===a0.DEFAULT?e.palette.grey[900]:t===a0.HOVER?e.palette.primary[800]:e.palette.grey[900],a2=tc(ek,{shouldForwardProp:e=>"selected"!==e})`
|
|
992
1049
|
cursor: pointer;
|
|
993
1050
|
user-select: none;
|
|
994
1051
|
|
|
995
|
-
color: ${e=>
|
|
1052
|
+
color: ${e=>a1({...e,listItemState:a0.DEFAULT})};
|
|
996
1053
|
border-radius: ${({theme:e})=>e.shape.small};
|
|
997
1054
|
|
|
998
1055
|
:hover {
|
|
999
|
-
color: ${e=>
|
|
1056
|
+
color: ${e=>a1({...e,listItemState:a0.HOVER})};
|
|
1000
1057
|
}
|
|
1001
|
-
`,
|
|
1058
|
+
`,a3=e=>t(a2,{...e}),a8=e=>{let{disabledReason:r,disabled:i,tooltipPlacement:o,note:n,withoutContainer:a=!1,...l}=e,d=()=>t(rZ,{title:i?r:n,placement:o,withoutContainer:!i,children:t(eS,{disabled:i,...l,disableRipple:!0})});return a?d():t("li",{children:d()})},a4=tc(ez)`
|
|
1002
1059
|
color: inherit;
|
|
1003
|
-
`,
|
|
1060
|
+
`,a6=s((e,r)=>t(a4,{ref:r,...e})),a5=e=>t(eF,{...e}),a9=e=>t(eM,{...e});var a7=((t3={}).info="info",t3.success="success",t3.warning="warning",t3.error="error",t3);let le={topRight:"top-right",topLeft:"top-left",bottomRight:"bottom-right",bottomLeft:"bottom-left",topCenter:"top-center",bottomCenter:"bottom-center"},lt="notify";class lr{service;constructor(e){this.service=e}message(e,t){return this.service.message(e,{description:t})}success=e=>this.service.success(e);error=e=>this.service.error(e);info=e=>this.service.info(e);warning=e=>this.service.warning(e);custom=e=>this.service(e);action=({title:e,buttonLabel:t,onClick:r})=>this.service(e,{action:{label:t,onClick:r}})}let li=new lr(tI),lo=tc(O)`
|
|
1004
1061
|
color: ${({theme:e})=>e.palette.error.main};
|
|
1005
|
-
`,
|
|
1062
|
+
`,ln=tc(M)`
|
|
1006
1063
|
color: ${({theme:e})=>e.palette.success.main};
|
|
1007
|
-
`,
|
|
1064
|
+
`,la=tc(H)`
|
|
1008
1065
|
color: ${({theme:e})=>e.palette.warning.main};
|
|
1009
|
-
`,
|
|
1066
|
+
`,ll=tc(I)`
|
|
1010
1067
|
color: ${({theme:e})=>e.palette.info.main};
|
|
1011
|
-
`,
|
|
1068
|
+
`,ld=({position:e="bottomRight",...r})=>t(tD,{duration:3e3,icons:{error:t(lo,{size:20}),success:t(ln,{size:20}),warning:t(la,{size:20}),info:t(ll,{size:20})},position:le[e],...r}),ls="page_header",lp="page_aside",lc=tc("aside")`
|
|
1012
1069
|
grid-area: aside;
|
|
1013
1070
|
scrollbar-gutter: stable;
|
|
1014
1071
|
overflow: auto;
|
|
@@ -1017,14 +1074,14 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1017
1074
|
padding: ${({theme:e})=>e.spacing(4)};
|
|
1018
1075
|
border-left: 1px solid ${({theme:e})=>e.palette.grey[200]};
|
|
1019
1076
|
|
|
1020
|
-
`,
|
|
1077
|
+
`,lg=tc("article",{shouldForwardProp:e=>!["$isFullHeight","$isFocusedMode"].includes(e.toString())})`
|
|
1021
1078
|
grid-area: content;
|
|
1022
1079
|
scroll-behavior: smooth;
|
|
1023
1080
|
scrollbar-gutter: stable;
|
|
1024
1081
|
overflow: auto;
|
|
1025
1082
|
height: ${({$isFullHeight:e})=>e?"100%":"auto"};
|
|
1026
1083
|
padding: ${({theme:e})=>e.spacing(4)};
|
|
1027
|
-
`,
|
|
1084
|
+
`,lh=tc("footer")`
|
|
1028
1085
|
grid-area: footer;
|
|
1029
1086
|
z-index: ${({theme:e})=>e.zIndex.speedDial};
|
|
1030
1087
|
|
|
@@ -1038,12 +1095,12 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1038
1095
|
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
1039
1096
|
display: none;
|
|
1040
1097
|
}
|
|
1041
|
-
`,
|
|
1098
|
+
`,lu=tc("div")`
|
|
1042
1099
|
grid-area: breadcrumbs;
|
|
1043
1100
|
display: flex;
|
|
1044
1101
|
align-items: center;
|
|
1045
1102
|
column-gap: ${({theme:e})=>e.spacing(2)};
|
|
1046
|
-
`,
|
|
1103
|
+
`,lm=tc("header")`
|
|
1047
1104
|
grid-area: header;
|
|
1048
1105
|
display: grid;
|
|
1049
1106
|
grid-template-columns: auto 1fr auto;
|
|
@@ -1056,32 +1113,32 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1056
1113
|
&:has(.breadcrumbs) {
|
|
1057
1114
|
grid-template-areas: 'buttons breadcrumbs actions' 'title title title' 'subtitle subtitle subtitle';
|
|
1058
1115
|
}
|
|
1059
|
-
`,
|
|
1116
|
+
`,lf=tc("div")`
|
|
1060
1117
|
grid-area: buttons;
|
|
1061
1118
|
display: flex;
|
|
1062
1119
|
align-items: center;
|
|
1063
1120
|
column-gap: ${({theme:e})=>e.spacing(1)};
|
|
1064
|
-
`,
|
|
1121
|
+
`,ly=tc("div")`
|
|
1065
1122
|
grid-area: actions;
|
|
1066
1123
|
display: flex;
|
|
1067
1124
|
align-items: center;
|
|
1068
1125
|
justify-content: flex-end;
|
|
1069
1126
|
column-gap: ${({theme:e})=>e.spacing(2)};
|
|
1070
|
-
`,
|
|
1127
|
+
`,lx=tc(ic)`
|
|
1071
1128
|
grid-area: title;
|
|
1072
|
-
`,
|
|
1129
|
+
`,lb=tc("div")`
|
|
1073
1130
|
grid-area: title;
|
|
1074
1131
|
display: flex;
|
|
1075
1132
|
align-items: center;
|
|
1076
1133
|
column-gap: ${({theme:e})=>e.spacing(2)};
|
|
1077
|
-
`,
|
|
1134
|
+
`,l$=tc(ic)`
|
|
1078
1135
|
grid-area: subtitle;
|
|
1079
|
-
`,
|
|
1136
|
+
`,lv=tc("div")`
|
|
1080
1137
|
grid-area: subtitle;
|
|
1081
1138
|
display: flex;
|
|
1082
1139
|
align-items: center;
|
|
1083
1140
|
column-gap: ${({theme:e})=>e.spacing(2)};
|
|
1084
|
-
`,
|
|
1141
|
+
`,lw=tc("div")`
|
|
1085
1142
|
display: grid;
|
|
1086
1143
|
grid-template-columns: 1fr auto;
|
|
1087
1144
|
grid-template-rows: auto 1fr auto;
|
|
@@ -1094,8 +1151,8 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1094
1151
|
height: 100%;
|
|
1095
1152
|
min-height: 0;
|
|
1096
1153
|
|
|
1097
|
-
&:has(.${
|
|
1098
|
-
.${
|
|
1154
|
+
&:has(.${lp}) {
|
|
1155
|
+
.${ls} {
|
|
1099
1156
|
border-bottom: 1px solid ${({theme:e})=>e.palette.grey[200]};
|
|
1100
1157
|
padding-bottom: ${({theme:e})=>e.spacing(4)};
|
|
1101
1158
|
}
|
|
@@ -1112,30 +1169,30 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1112
1169
|
padding-top: 0;
|
|
1113
1170
|
padding-bottom: '80px';
|
|
1114
1171
|
}
|
|
1115
|
-
`,
|
|
1172
|
+
`,lC=({children:e,className:r})=>t(lw,{className:r,children:e});lC.Header=e=>{let{title:i,subtitle:o,breadcrumbs:n,actions:a,backButton:l,className:d}=e,{collapsed:s,toggleCollapsed:p}=ng();return g(()=>{"string"==typeof i&&(document.title=i)},[i]),r(lm,{className:t$(d,ls),children:[r(lf,{children:[t(rZ,{title:s?"Развернуть":"Свернуть",children:t(rR,{variant:"text",onClick:p,children:s?t(L,{}):t(E,{})})}),l&&t(rZ,{title:"Назад",children:t(rR,{...l,variant:"text",children:t(k,{})})})]}),n&&t(lu,{className:"breadcrumbs",children:n}),t(ly,{children:a}),"string"==typeof i?t(lx,{component:"h1",variant:"h3","aria-level":1,children:i}):t(lb,{"aria-level":1,children:i}),o&&"string"==typeof o&&t(l$,{"aria-level":2,children:o}),o&&"string"!=typeof o&&t(lv,{"aria-level":2,children:o})]})},lC.Content=e=>{let{className:r,children:i,isFullHeight:o=!0}=e;return t(lg,{className:t$(r,"page-content"),$isFullHeight:o,children:i})},lC.Footer=e=>{let{children:r,className:i}=e;return t(lh,{className:i,children:r})},lC.Aside=({children:e,className:r})=>t(lc,{className:t$(r,lp),children:e});let lk=e=>t(eI,{...e}),lS=["Янв.","Фев.","Мар.","Апр.","Май","Июн.","Июл.","Авг.","Сен.","Окт.","Ноя.","Дек."],lz=["I квартал","II квартал","III квартал","IV квартал"],lF=tc("div")`
|
|
1116
1173
|
padding: ${({theme:e})=>e.spacing(4)};
|
|
1117
1174
|
display: flex;
|
|
1118
1175
|
flex-direction: column;
|
|
1119
1176
|
gap: ${({theme:e})=>e.spacing(2)};
|
|
1120
|
-
`,
|
|
1177
|
+
`,lM=tc("div")`
|
|
1121
1178
|
display: grid;
|
|
1122
1179
|
grid-template-columns: repeat(3, 1fr);
|
|
1123
1180
|
grid-template-rows: repeat(3, 1fr);
|
|
1124
1181
|
gap: ${({theme:e})=>e.spacing(2)};
|
|
1125
|
-
`,
|
|
1182
|
+
`,lT=tc("div")`
|
|
1126
1183
|
display: grid;
|
|
1127
1184
|
grid-template-columns: repeat(2, 1fr);
|
|
1128
1185
|
grid-template-rows: repeat(2, 1fr);
|
|
1129
1186
|
gap: ${({theme:e})=>e.spacing(2)};
|
|
1130
|
-
`,
|
|
1131
|
-
& .${
|
|
1187
|
+
`,lP=e=>Math.ceil(e/3);function lA({year:e,onSelect:r,minDate:i,maxDate:o}){let n=Array.from({length:o.getFullYear()-i.getFullYear()+1},(e,t)=>i.getFullYear()+t);return t(r3,{disabled:1===n.length,variant:"light",name:e.toString(),children:n.map(i=>t(rQ,{value:i,selected:i===e,onClick:()=>{r?.(i)},children:t(rC,{align:"center",variant:"subtitle1",style:{textTransform:"capitalize",minWidth:70},children:i})},i))})}let lD=i=>{let{label:o,disabled:n=!1,value:a,onSelect:l,type:d="month",placeholder:s="month"===d?"Выберите месяц":"Выберите квартал",error:p,helperText:c,max:h=new Date(2050,0,1),min:u=new Date(2e3,0,1),className:m,size:f,fullWidth:x,name:b}=i,$=new Date,[v,C]=y(null),[k,S]=y($.getFullYear()),z=()=>{C(null)},F=e=>{l?.(e),z()},M="month"===d?a?.toLocaleDateString("ru-RU",{month:"long",year:"numeric"}):a?`${lz[lP(a.getMonth())]} ${a.getFullYear()}`:"";return g(()=>{a&&S(a.getFullYear())},[a]),r(e,{children:[t(iO,{label:o,value:M,disabled:n,size:f,fullWidth:x,name:b,endAdornment:t(rR,{disabled:n,variant:"text",onClick:e=>{C(e.currentTarget)},children:t(w,{})}),placeholder:s,error:p,helperText:c,className:m}),t(oy,{open:!!v,anchorEl:v,onClose:z,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:r(lF,{children:[t(lA,{year:k,onSelect:S,minDate:u,maxDate:h}),"month"===d?t(lM,{children:lS.map((e,r)=>{let i=new Date(k,r,a?.getDate()||1);return t(ro,{variant:"text",size:"small",disabled:i<u||i>h,onClick:()=>F(i),selected:a?.getMonth()===r&&a.getFullYear()===i.getFullYear(),children:e},e)})}):t(lT,{children:lz.map((e,r)=>{let i=new Date(k,3*r,1);return t(ro,{variant:"text",size:"small",disabled:i<u||i>h,onClick:()=>F(i),selected:!!a&&lP(a.getMonth())===r&&a.getFullYear()===i.getFullYear(),children:e},e)})})]})})]})},lI=tc(rY)`
|
|
1188
|
+
& .${ti.paper} {
|
|
1132
1189
|
min-width: 200px;
|
|
1133
1190
|
max-width: 300px;
|
|
1134
1191
|
}
|
|
1135
|
-
`,
|
|
1192
|
+
`,lO=tc(rQ,{shouldForwardProp:e=>"$divider"!==e})`
|
|
1136
1193
|
border-top: 1px solid
|
|
1137
1194
|
${({theme:e,$divider:t})=>t?e.palette.divider:"transparent"};
|
|
1138
|
-
`,
|
|
1195
|
+
`,lE=e=>{let{open:i,onClose:o,menuList:n=[],...a}=e,{isMobile:l}=rI(),d=()=>n.map(({render:e,icon:i,title:o,onClick:n,divider:a},l)=>e?e({icon:i,title:o,onClick:n,divider:a}):r(lO,{$divider:a,onClick:n,children:[t(a6,{children:i}),t(a5,{children:t(ic,{noWrap:!0,children:o})})]},String(l)));return l?t(rV,{onClose:o,open:i,children:t(rU,{children:d()})}):t(lI,{open:i,onClose:o,...a,children:d()})},lL=tc(ro)`
|
|
1139
1196
|
overflow: hidden;
|
|
1140
1197
|
display: flex;
|
|
1141
1198
|
justify-content: flex-start;
|
|
@@ -1145,31 +1202,31 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1145
1202
|
gap: 0;
|
|
1146
1203
|
height: auto;
|
|
1147
1204
|
padding: ${({theme:e})=>e.spacing(1)};
|
|
1148
|
-
`,
|
|
1205
|
+
`,lR=tc("div")`
|
|
1149
1206
|
overflow: hidden;
|
|
1150
1207
|
margin-left: ${({theme:e})=>e.spacing(2)};
|
|
1151
1208
|
flex-grow: 1;
|
|
1152
|
-
`,
|
|
1209
|
+
`,lB=tc(ic)`
|
|
1153
1210
|
font-size: ${({theme:e})=>e.typography.pxToRem(12)};
|
|
1154
1211
|
line-height: ${({theme:e})=>e.typography.pxToRem(16)};
|
|
1155
|
-
`,
|
|
1212
|
+
`,lN=tc(iH)`
|
|
1156
1213
|
width: 30px;
|
|
1157
1214
|
height: 30px;
|
|
1158
|
-
`,
|
|
1215
|
+
`,lW=i=>{let{displayName:o,annotation:n,avatar:a={variant:"rounded"},menu:l,menuList:d,collapsed:s}=i,{open:p,anchorRef:c,handleOpenMenu:h,handleCloseMenu:u}=rP(),{isMobile:m}=rI();return g(()=>{l||d||console.error("Profile должен иметь один из следующих props: menu, menuList")},[]),r(e,{children:[t(ea,{onClickAway:u,children:t(lL,{ref:c,variant:"text",onClick:h,children:m||s?t(lN,{...a}):r(e,{children:[t(lN,{...a}),r(lR,{children:[t(ic,{variant:"h6",children:o}),t(lB,{color:"textSecondary",children:n})]}),t(F,{size:16})]})})}),l?t(l,{open:p,anchorEl:c.current,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{maxWidth:300,minWidth:200}}}}):t(lE,{open:p,anchorEl:c.current,menuList:d,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}})]})},l_=({className:e,value:r})=>t(ev,{className:e,variant:"determinate",value:Math.max(0,Math.min(r,100))}),lH="RadioIcon-innerCircle",lj="RadioCheckedIcon-innerCircle",lV=({...e})=>r(e_,{viewBox:"0 0 24 24",...e,children:[t("circle",{cx:"12",cy:"12",r:"10",className:"RadioIcon-outerCircle"}),t("circle",{cx:"12",cy:"12",r:"8",className:lH})]}),lG=({...e})=>r(e_,{viewBox:"0 0 24 24",...e,children:[t("circle",{cx:"12",cy:"12",r:"10",className:"RadioCheckedIcon-outerCircle"}),t("circle",{cx:"12",cy:"12",r:"4",className:lj})]}),lU=tc(eL,{shouldForwardProp:e=>"isError"!==e})`
|
|
1159
1216
|
padding: 5px;
|
|
1160
1217
|
|
|
1161
1218
|
color: ${({theme:e})=>e.palette.grey[300]};
|
|
1162
1219
|
|
|
1163
1220
|
border-radius: unset;
|
|
1164
1221
|
|
|
1165
|
-
& > svg > .${
|
|
1222
|
+
& > svg > .${lH} {
|
|
1166
1223
|
fill: ${({theme:e})=>e.palette.common.white};
|
|
1167
1224
|
}
|
|
1168
1225
|
|
|
1169
1226
|
&:hover {
|
|
1170
1227
|
background: none;
|
|
1171
1228
|
|
|
1172
|
-
& > svg > .${
|
|
1229
|
+
& > svg > .${lH} {
|
|
1173
1230
|
fill: ${({theme:e})=>e.palette.grey[100]};
|
|
1174
1231
|
}
|
|
1175
1232
|
}
|
|
@@ -1177,7 +1234,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1177
1234
|
&.Mui-disabled:not(.Mui-checked) {
|
|
1178
1235
|
color: ${({theme:e})=>e.palette.grey[200]};
|
|
1179
1236
|
|
|
1180
|
-
& > svg > .${
|
|
1237
|
+
& > svg > .${lH} {
|
|
1181
1238
|
fill: ${({theme:e})=>e.palette.grey[200]};
|
|
1182
1239
|
}
|
|
1183
1240
|
}
|
|
@@ -1195,12 +1252,12 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1195
1252
|
color: ${({theme:e})=>e.palette.grey[400]};
|
|
1196
1253
|
}
|
|
1197
1254
|
|
|
1198
|
-
& > svg > .${
|
|
1255
|
+
& > svg > .${lj} {
|
|
1199
1256
|
fill: ${({theme:e})=>e.palette.common.white};
|
|
1200
1257
|
}
|
|
1201
1258
|
}
|
|
1202
1259
|
|
|
1203
|
-
${({isError:e,theme:t})=>e&&
|
|
1260
|
+
${({isError:e,theme:t})=>e&&e8`
|
|
1204
1261
|
&.MuiRadio-root:not(.Mui-disabled) {
|
|
1205
1262
|
color: ${t.palette.red[800]};
|
|
1206
1263
|
|
|
@@ -1211,42 +1268,42 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1211
1268
|
}
|
|
1212
1269
|
}
|
|
1213
1270
|
`}
|
|
1214
|
-
`,
|
|
1271
|
+
`,lY=({icon:e=t(lV,{}),checkedIcon:r=t(lG,{}),...i})=>t(lU,{icon:e,checkedIcon:r,...i}),lK=tc(ey)`
|
|
1215
1272
|
margin-right: ${({theme:e})=>e.spacing(6)};
|
|
1216
1273
|
margin-left: -7px;
|
|
1217
|
-
`,
|
|
1274
|
+
`,lq=({id:e,disabled:r,label:i,isError:o,disabledReason:n,formControlLabelProps:a,...l})=>t(rZ,{title:r&&n,placement:"bottom-start",withoutContainer:!1,children:t(lK,{...a,label:i,control:t(lY,{...l,isError:o}),disabled:r})},e),lX=l({isError:!1}),lJ=({children:e,isError:r})=>t(lX.Provider,{value:{isError:r},children:e}),lZ=e=>{let{children:i,groupLabel:o,errorText:n,isError:a,required:l,formControlProps:d,row:s,...p}=e,c=h();return t(rZ,{title:a&&n,placement:"right-start",followCursor:!0,children:r(oa,{...d,children:[o&&t(aW,{id:c,required:l,children:o}),t(eR,{...p,"aria-labelledby":c,row:s,children:t(lJ,{isError:a,children:i})})]})})},lQ=e=>{let{isError:r}=c(lX);return t(lq,{...e,isError:r})},l0=tc(eW)`
|
|
1218
1275
|
height: 5px;
|
|
1219
1276
|
padding: ${({theme:e})=>e.spacing(0)};
|
|
1220
|
-
.${
|
|
1277
|
+
.${ts.thumb} {
|
|
1221
1278
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
1222
1279
|
height: 13px;
|
|
1223
1280
|
width: 13px;
|
|
1224
1281
|
border: 2px solid ${({theme:e})=>e.palette.primary.main};
|
|
1225
1282
|
}
|
|
1226
|
-
.${
|
|
1283
|
+
.${ts.rail} {
|
|
1227
1284
|
background-color: ${({theme:e})=>e.palette.grey[300]};
|
|
1228
1285
|
height: 2px;
|
|
1229
1286
|
opacity: 1;
|
|
1230
1287
|
}
|
|
1231
|
-
.${
|
|
1288
|
+
.${ts.track} {
|
|
1232
1289
|
height: 2px;
|
|
1233
1290
|
}
|
|
1234
|
-
.${
|
|
1291
|
+
.${ts.root} {
|
|
1235
1292
|
height: 2px;
|
|
1236
1293
|
}
|
|
1237
|
-
.${
|
|
1294
|
+
.${ts.valueLabel} {
|
|
1238
1295
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
1239
1296
|
border: 1px solid ${({theme:e})=>e.palette.secondary.main};
|
|
1240
1297
|
color: ${({theme:e})=>e.palette.secondary.main};
|
|
1241
1298
|
}
|
|
1242
|
-
`,
|
|
1299
|
+
`,l1=e=>t(l0,{color:"primary",size:"small",...e}),l2=tc("div",{shouldForwardProp:e=>"$width"!==e})`
|
|
1243
1300
|
width: ${({$width:e="100%"})=>"string"==typeof e?e:`${e}px`};
|
|
1244
1301
|
display: flex;
|
|
1245
1302
|
flex-direction: column;
|
|
1246
1303
|
row-gap: ${({theme:e})=>e.spacing(1)};
|
|
1247
1304
|
height: 100%;
|
|
1248
1305
|
margin-bottom: 20px;
|
|
1249
|
-
`,
|
|
1306
|
+
`,l3=tc("div",{shouldForwardProp:e=>"$size"!==e})`
|
|
1250
1307
|
width: 100%;
|
|
1251
1308
|
padding: 0 10px;
|
|
1252
1309
|
position: relative;
|
|
@@ -1266,12 +1323,12 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1266
1323
|
&:hover {
|
|
1267
1324
|
border-color: ${({theme:e})=>e.palette.grey[600]};
|
|
1268
1325
|
}
|
|
1269
|
-
`,
|
|
1326
|
+
`,l8=tc(rC)`
|
|
1270
1327
|
color: ${({theme:e})=>e.palette.text.secondary};
|
|
1271
|
-
`,
|
|
1328
|
+
`,l4=tc("span")`
|
|
1272
1329
|
white-space: nowrap;
|
|
1273
1330
|
color: rgba(0, 0, 0, 0.3);
|
|
1274
|
-
`,
|
|
1331
|
+
`,l6=tc("input")`
|
|
1275
1332
|
text-align: center;
|
|
1276
1333
|
width: 100%;
|
|
1277
1334
|
min-width: 24px;
|
|
@@ -1281,15 +1338,15 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1281
1338
|
outline: none;
|
|
1282
1339
|
border: none;
|
|
1283
1340
|
}
|
|
1284
|
-
`,
|
|
1341
|
+
`,l5=tc("div")`
|
|
1285
1342
|
position: absolute;
|
|
1286
1343
|
bottom: -6px;
|
|
1287
1344
|
left: 50%;
|
|
1288
1345
|
transform: translateX(-50%);
|
|
1289
1346
|
width: 100%;
|
|
1290
|
-
`;function
|
|
1347
|
+
`;function l9({min:e,max:i,onChange:o,minValue:n,maxValue:a,width:l,step:d,title:s,size:p}){let[c,h]=y(e),[u,m]=y(i),f=t=>{"Enter"===t.key&&o(c>=e&&c<=i?c:e,u>=e&&u<=i?u:i)};return g(()=>{h(n||e),m(a||i)},[n,a,e,i]),r(l2,{$width:l,children:[s&&t(l8,{variant:"caption",colorIntensity:"400",children:s}),r(l3,{$size:p,children:[t(l4,{children:"от"}),t(l6,{type:"text",name:"minVal",value:c,onChange:e=>{let{value:t}=e.target;Number.isNaN(+t)||h(+t)},onKeyDown:f}),t(l4,{children:"до"}),t(l6,{type:"text",name:"minVal",value:u,onChange:e=>{let{value:t}=e.target;Number.isNaN(+t)||m(+t)},onKeyDown:f}),t(l5,{children:t(l1,{min:e,max:i,step:d,value:[c,u],onChange:(e,t)=>{Array.isArray(t)&&(h(t[0]),m(t[1]))},onChangeCommitted:(e,t)=>{Array.isArray(t)&&o(t[0],t[1])},size:"small"})})]})]})}let l7=tc(R)`
|
|
1291
1348
|
color: ${({theme:e})=>e.palette.grey[600]};
|
|
1292
|
-
`,
|
|
1349
|
+
`,de=tc(rR,{shouldForwardProp:e=>!["$isActive"].includes(e.toString())})`
|
|
1293
1350
|
opacity: ${({$isActive:e})=>+!!e};
|
|
1294
1351
|
|
|
1295
1352
|
&:hover {
|
|
@@ -1299,15 +1356,15 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1299
1356
|
stroke: ${({theme:e})=>e.palette.grey["700"]};
|
|
1300
1357
|
}
|
|
1301
1358
|
}
|
|
1302
|
-
`,
|
|
1359
|
+
`,dt=tc(iO)`
|
|
1303
1360
|
& .MuiFormHelperText-root {
|
|
1304
1361
|
display: none;
|
|
1305
1362
|
}
|
|
1306
|
-
`,
|
|
1363
|
+
`,dr=tc(j)`
|
|
1307
1364
|
width: 16px;
|
|
1308
1365
|
height: 16px;
|
|
1309
1366
|
stroke: ${({theme:e})=>e.palette.grey["500"]};
|
|
1310
|
-
`,
|
|
1367
|
+
`,di=s(({margin:e="none",placeholder:r="Поиск",onChange:i,disabled:o,value:n,defaultValue:a,delay:l=600,...d},s)=>{let[p,c]=y(`${a||n||""}`),g=f(null),h=f(null),u=!!p.length;return t(dt,{margin:e,placeholder:r,startAdornment:t(l7,{onClick:()=>{h.current?.focus()}}),disabled:o,endAdornment:t(de,{variant:"text",onClick:()=>{c(""),h.current&&(h.current.value=""),g.current&&clearTimeout(g.current);let e=new InputEvent("input",{bubbles:!0,cancelable:!0});Object.defineProperty(e,"target",{writable:!0,value:h.current}),i?.(e),h.current?.focus()},disabled:o||!u,$isActive:u,children:t(dr,{})}),onChange:e=>{c(e.target.value),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{i?.(e)},l)},value:p,ref:s,inputRef:h,...d})}),dn=tc(ro,{shouldForwardProp:e=>!["active","collapsed"].includes(e.toString())})`
|
|
1311
1368
|
height: 32px;
|
|
1312
1369
|
width: 100%;
|
|
1313
1370
|
display: grid;
|
|
@@ -1326,7 +1383,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1326
1383
|
span {
|
|
1327
1384
|
margin: 0;
|
|
1328
1385
|
}
|
|
1329
|
-
`,
|
|
1386
|
+
`,da=tc(dn)`
|
|
1330
1387
|
margin-left: ${({theme:e})=>e.spacing(10)};
|
|
1331
1388
|
width: ${({theme:e})=>`calc(100% - ${e.spacing(10)})`};
|
|
1332
1389
|
&:before {
|
|
@@ -1339,7 +1396,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1339
1396
|
background-color: ${({theme:e})=>e.palette.divider};
|
|
1340
1397
|
z-index: 4;
|
|
1341
1398
|
}
|
|
1342
|
-
`,
|
|
1399
|
+
`,dl=tc("p",{shouldForwardProp:e=>"collapsed"!==e})`
|
|
1343
1400
|
margin: 0;
|
|
1344
1401
|
overflow: hidden;
|
|
1345
1402
|
width: ${({collapsed:e})=>e?0:"100%"};
|
|
@@ -1347,7 +1404,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1347
1404
|
white-space: nowrap;
|
|
1348
1405
|
text-align: left;
|
|
1349
1406
|
transition: ${({theme:e})=>e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})};
|
|
1350
|
-
`,
|
|
1407
|
+
`,dd=tc("div")`
|
|
1351
1408
|
display: flex;
|
|
1352
1409
|
justify-content: center;
|
|
1353
1410
|
align-items: center;
|
|
@@ -1358,7 +1415,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1358
1415
|
max-width: 100%;
|
|
1359
1416
|
max-height: 100%;
|
|
1360
1417
|
}
|
|
1361
|
-
`,
|
|
1418
|
+
`,ds=({collapsed:e,icon:i,active:o,label:n,subItems:a,onClick:l,id:d,component:s="li"})=>{let[p,c]=y(!1);return a?r("li",{children:[t(rZ,{withoutContainer:!0,placement:"right",title:e?n:void 0,children:r(dn,{active:o,collapsed:e,onClick:()=>c(!p),endIcon:!e&&t(rb,{isActive:p}),children:[t(dd,{children:i}),t(dl,{collapsed:e,children:n})]})}),t(r$,{in:p&&!e,children:t(aQ,{disablePadding:!0,children:a.map(r=>t(da,{collapsed:e,component:r.component||"li",onClick:r.onClick,active:r.active,children:t(dl,{collapsed:e,children:r.label})},r.id))})})]},d):t(rZ,{withoutContainer:!0,placement:"right",title:e?n:void 0,children:r(dn,{collapsed:e,component:s,active:o,onClick:l,children:[t(dd,{children:i}),t(dl,{collapsed:e,children:n})]})},d)},dp=tc("nav")`
|
|
1362
1419
|
width: auto;
|
|
1363
1420
|
overflow: hidden auto;
|
|
1364
1421
|
color: ${({theme:e})=>e.palette.text.secondary};
|
|
@@ -1367,7 +1424,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1367
1424
|
color: inherit;
|
|
1368
1425
|
font-size: inherit;
|
|
1369
1426
|
}
|
|
1370
|
-
`,
|
|
1427
|
+
`,dc=({items:e})=>{let{collapsed:r}=ng();return t(dp,{children:t(aQ,{disablePadding:!0,children:e.map(e=>d(ds,{...e,key:e.id,collapsed:r}))})})},dg=tc(ro,{shouldForwardProp:e=>"collapsed"!==e})`
|
|
1371
1428
|
font-size: ${({theme:e})=>e.typography.h5.fontSize};
|
|
1372
1429
|
font-weight: ${({theme:e})=>e.typography.body1.fontWeight};
|
|
1373
1430
|
justify-content: flex-start;
|
|
@@ -1385,33 +1442,33 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1385
1442
|
max-width: 24px;
|
|
1386
1443
|
max-height: 24px;
|
|
1387
1444
|
}
|
|
1388
|
-
`,
|
|
1445
|
+
`,dh=tc(rC)`
|
|
1389
1446
|
overflow: hidden;
|
|
1390
1447
|
text-overflow: ellipsis;
|
|
1391
1448
|
white-space: nowrap;
|
|
1392
1449
|
margin-left: ${({theme:e})=>e.spacing(3)};
|
|
1393
|
-
`,
|
|
1394
|
-
background-color: ${({theme:e})=>
|
|
1450
|
+
`,du=e=>{let{logo:i,name:o,variant:n="text",...a}=e,{collapsed:l}=ng();return r(dg,{...a,variant:n,children:[t(i,{}),t(r$,{orientation:"horizontal",in:!l,children:t(dh,{variant:"h4",color:"grey",colorIntensity:"700",children:o})})]})},dm=tc(eN)`
|
|
1451
|
+
background-color: ${({theme:e})=>eX(e.palette.grey[900],.12)};
|
|
1395
1452
|
|
|
1396
|
-
&.${
|
|
1453
|
+
&.${td.text} {
|
|
1397
1454
|
border-radius: ${({theme:e})=>e.shape.medium};
|
|
1398
1455
|
}
|
|
1399
1456
|
|
|
1400
|
-
&.${
|
|
1457
|
+
&.${td.rounded} {
|
|
1401
1458
|
border-radius: ${({theme:e})=>e.shape.medium};
|
|
1402
1459
|
}
|
|
1403
|
-
`,
|
|
1460
|
+
`,df=e=>t(dm,{...e}),dy=tc(eH)`
|
|
1404
1461
|
.Mui-focusVisible {
|
|
1405
1462
|
border: 2px solid ${({theme:e})=>e.palette.primary[400]};
|
|
1406
1463
|
}
|
|
1407
|
-
${`.${
|
|
1464
|
+
${`.${th.track}`}::before {
|
|
1408
1465
|
display: none;
|
|
1409
1466
|
}
|
|
1410
1467
|
|
|
1411
|
-
${`.${
|
|
1468
|
+
${`.${th.track}`}::after {
|
|
1412
1469
|
display: none;
|
|
1413
1470
|
}
|
|
1414
|
-
`,
|
|
1471
|
+
`,dx=s((e,r)=>t(dy,{ref:r,...e})),db=tc(ej)`
|
|
1415
1472
|
min-height: 36px;
|
|
1416
1473
|
margin-right: ${({theme:e})=>e.spacing(4)};
|
|
1417
1474
|
padding: 0;
|
|
@@ -1430,13 +1487,13 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1430
1487
|
&:active {
|
|
1431
1488
|
color: ${({theme:e})=>e.palette.primary[900]};
|
|
1432
1489
|
}
|
|
1433
|
-
`,
|
|
1490
|
+
`,d$=e=>t(db,{...e}),dv=tc("div")`
|
|
1434
1491
|
display: flex;
|
|
1435
1492
|
flex-direction: column;
|
|
1436
1493
|
align-items: flex-start;
|
|
1437
1494
|
|
|
1438
1495
|
width: 100%;
|
|
1439
|
-
`,
|
|
1496
|
+
`,dw=tc("div")`
|
|
1440
1497
|
position: relative;
|
|
1441
1498
|
z-index: -1;
|
|
1442
1499
|
bottom: 2px;
|
|
@@ -1445,7 +1502,7 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1445
1502
|
height: 2px;
|
|
1446
1503
|
|
|
1447
1504
|
background-color: ${e=>e.theme.palette.grey[200]};
|
|
1448
|
-
`,
|
|
1505
|
+
`,dC=({nextFeatureFlags:e,...i})=>e?.hasBottomDivider?r(dv,{children:[t(eV,{...i}),t(dw,{})]}):t(eV,{...i}),dk=tc(iV)`
|
|
1449
1506
|
vertical-align: text-top;
|
|
1450
1507
|
|
|
1451
1508
|
&span.MuiBadge-badge {
|
|
@@ -1455,4 +1512,4 @@ import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Children
|
|
|
1455
1512
|
box-sizing: content-box;
|
|
1456
1513
|
height: 16px;
|
|
1457
1514
|
}
|
|
1458
|
-
`,
|
|
1515
|
+
`,dS=({color:e="primary",checked:r,disabled:i,checkedColor:o,...n})=>t(dk,{withBorder:!1,color:(({disabled:e,checked:t,checkedColor:r,color:i})=>e?"grey":t?r||"white":i)({disabled:i,checked:r,checkedColor:o,color:e}),...n}),dz=({rows:e=7,...r})=>t(iO,{multiline:!0,rows:e,...r}),dF=e=>{let{children:i,theme:o}=e;return r(eU,{theme:o,children:[t(ed,{}),i]})},dM=({form:e,children:r,...i})=>t(tE,{...e,children:t("form",{noValidate:!0,...i,children:r})}),dT=({control:e,name:r,...i})=>t(tO,{control:e,name:r,render:({field:e,fieldState:r})=>t(iL,{...i,...e,onChange:t=>e.onChange?.(t),onInputChange:(t,r,o)=>{i.freeSolo&&"input"===o&&e.onChange?.(r),i.onInputChange?.(t,r,o)},error:!!r.error,helperText:r.error?.message})}),dP=({name:e,control:r,...i})=>t(tO,{name:e,control:r,render:({field:e,fieldState:r})=>t(oc,{checked:!!e.value,...i,...e,isError:!!r.error,helperText:r.error?.message})});function dA({name:e,control:r,ref:i,...o}){return t(tO,{control:r,name:e,render:({field:e,fieldState:r})=>t(ad,{...o,...e,error:!!r.error,helperText:r.error?.message})})}let dD=({name:e,control:r,...i})=>t(tO,{name:e,control:r,render:({field:e,fieldState:r})=>t(at,{...i,...e,error:!!r.error,helperText:r.error?.message})}),dI=({mode:e="onBlur",...t}={})=>tB({...t,mode:e}),dO=({children:e,loading:r,...i})=>{let{formState:o}=tN();return t(ro,{type:"submit",loading:r||o.isSubmitting,...i,children:e})};function dE({name:e,control:r,gridArea:i,...o}){return t(tO,{control:r,name:e,render:({field:e,fieldState:r})=>t(iO,{...o,...e,style:{gridArea:i},value:e.value||"",error:!!r.error,helperText:r.error?.message})})}export{rM as Accordion,r2 as ActionCell,ie as ActionGroup,io as Alert,iW as AsyncAutocomplete,iL as Autocomplete,iH as Avatar,iV as Badge,rV as BottomDrawer,q as Breadcrumbs,ro as Button,J as ButtonBase,t6 as ButtonColors,Z as ButtonGroup,t9 as ButtonSizes,t7 as ButtonStates,t5 as ButtonVariants,iQ as Calendar,Q as Card,ee as CardActions,et as CardContent,er as CardHeader,on as Carousel,ia as Checkbox,oc as CheckboxField,rb as Chevron,re as CircularProgress,r$ as Collapse,om as ConfigContext,of as ConfigProvider,oC as ConfirmAction,oL as ConfirmDialog,ih as Container,o5 as ContentState,nt as CopyTypography,ip as DEFAULT_ROWS_COUNT,ac as DEFAULT_SEPARATOR,ag as DEFAULT_SYMBOL,ah as DESCRIPTION_ROOT_CLASSNAME,nc as DashboardLayout,nG as DataGrid,nX as DataGridActionCell,al as DataGridPagination,ap as DatePicker,aw as Description,aM as DescriptionList,aP as DescriptionTooltip,oM as Dialog,oP as DialogActions,oD as DialogContent,oO as DialogContentText,aI as DialogHeader,ok as DialogTitle,aO as Divider,r3 as DropdownButton,o4 as ErrorBoundary,aB as Filename,dM as Form,dT as FormAutocomplete,dP as FormCheckbox,oa as FormControl,od as FormControlLabel,tO as FormController,iI as FormHelperText,iD as FormHelperTextContent,aW as FormLabel,dA as FormMaskField,tE as FormProvider,dD as FormSelect,dO as FormSubmitButton,dE as FormTextField,aC as GuidTypography,nL as Head,rR as IconButton,rK as IconDropdownButton,oG as Image,aX as InputOTP,o0 as InternalErrorPlaceholder,t4 as LOADING_BUTTON_CLASSNAME,aZ as Link,aQ as List,a3 as ListItem,a8 as ListItemButton,a6 as ListItemIcon,a5 as ListItemText,a9 as ListSubheader,nh as MIN_ROW_HEIGHT,ad as MaskField,rY as Menu,rQ as MenuItem,rU as MenuList,le as NOTIFICATION_POSITIONS,lt as NOTIFY_CLASSNAME,lr as Notification,ld as NotificationContainer,a7 as NotificationVariantTypes,o1 as OutdatedReleasePlaceholder,ic as OverflowTypography,lC as PageLayout,nJ as Pagination,lk as Paper,lD as PeriodPicker,oQ as Placeholder,oy as Popover,lW as Profile,l_ as ProgressBar,nu as ROOT_ACTION_CELL_WIDTH,lY as Radio,lq as RadioField,lZ as RadioGroup,lX as RadioGroupContext,lQ as RadioGroupField,l9 as RangeInput,nk as Row,rg as SPACING,di as SearchField,at as Select,dc as SidebarNav,du as SidebarProduct,df as Skeleton,l1 as Slider,nT as SortStates,dx as Switch,d$ as Tab,dC as Tabs,iz as Tag,dS as TagBadge,n2 as TagsList,dz as TextArea,iO as TextField,dF as ThemeProvider,rZ as Tooltip,rC as Typography,eZ as buttonClasses,eQ as cardActionsClasses,e0 as cardClasses,e1 as cardContentClasses,e2 as cardHeaderClasses,ru as componentsColors,ry as createTheme,rh as elevation,rm as getPalette,tt as keyframes,li as notification,oU as setDefaultImageStyles,rf as shape,tc as styled,ng as useDashboard,dI as useForm,tN as useFormContext,tL as useFormController,tR as useFormFieldArray,tW as useFormWatch,rP as useMenu,rA as usePopover,tf as useTheme,rD as useToggle,rI as useViewportType};
|