@zydon/common 2.4.47 → 2.4.49

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.
@@ -1,5 +1,5 @@
1
1
  import { a } from './chunk-CFVUZ4S5.js';
2
- import { s, b, a as a$2 } from './chunk-CFYNJQGN.js';
2
+ import { s, b, a as a$2 } from './chunk-VULBXTS2.js';
3
3
  import { g, h as h$1 } from './chunk-D27ND54J.js';
4
4
  import a$1 from 'color';
5
5
 
@@ -1,4 +1,4 @@
1
- import { b, i } from './chunk-CFYNJQGN.js';
1
+ import { b, i } from './chunk-VULBXTS2.js';
2
2
  import { c, e, f as f$1, i as i$1 } from './chunk-D27ND54J.js';
3
3
 
4
4
  function y(l){let $=l==="light"?b["500Channel"]:i.blackChannel,p=i$1($,.2),x=i$1($,.14),t=i$1($,.12);return ["none",`0px 2px 1px -1px ${p},0px 1px 1px 0px ${x},0px 1px 3px 0px ${t}`,`0px 3px 1px -2px ${p},0px 2px 2px 0px ${x},0px 1px 5px 0px ${t}`,`0px 3px 3px -2px ${p},0px 3px 4px 0px ${x},0px 1px 8px 0px ${t}`,`0px 2px 4px -1px ${p},0px 4px 5px 0px ${x},0px 1px 10px 0px ${t}`,`0px 3px 5px -1px ${p},0px 5px 8px 0px ${x},0px 1px 14px 0px ${t}`,`0px 3px 5px -1px ${p},0px 6px 10px 0px ${x},0px 1px 18px 0px ${t}`,`0px 4px 5px -2px ${p},0px 7px 10px 1px ${x},0px 2px 16px 1px ${t}`,`0px 5px 5px -3px ${p},0px 8px 10px 1px ${x},0px 3px 14px 2px ${t}`,`0px 5px 6px -3px ${p},0px 9px 12px 1px ${x},0px 3px 16px 2px ${t}`,`0px 6px 6px -3px ${p},0px 10px 14px 1px ${x},0px 4px 18px 3px ${t}`,`0px 6px 7px -4px ${p},0px 11px 15px 1px ${x},0px 4px 20px 3px ${t}`,`0px 7px 8px -4px ${p},0px 12px 17px 2px ${x},0px 5px 22px 4px ${t}`,`0px 7px 8px -4px ${p},0px 13px 19px 2px ${x},0px 5px 24px 4px ${t}`,`0px 7px 9px -4px ${p},0px 14px 21px 2px ${x},0px 5px 26px 4px ${t}`,`0px 8px 9px -5px ${p},0px 15px 22px 2px ${x},0px 6px 28px 5px ${t}`,`0px 8px 10px -5px ${p},0px 16px 24px 2px ${x},0px 6px 30px 5px ${t}`,`0px 8px 11px -5px ${p},0px 17px 26px 2px ${x},0px 6px 32px 5px ${t}`,`0px 9px 11px -5px ${p},0px 18px 28px 2px ${x},0px 7px 34px 6px ${t}`,`0px 9px 12px -6px ${p},0px 19px 29px 2px ${x},0px 7px 36px 6px ${t}`,`0px 10px 13px -6px ${p},0px 20px 31px 3px ${x},0px 8px 38px 7px ${t}`,`0px 10px 13px -6px ${p},0px 21px 33px 3px ${x},0px 8px 40px 7px ${t}`,`0px 10px 14px -6px ${p},0px 22px 35px 3px ${x},0px 8px 42px 7px ${t}`,`0px 11px 14px -7px ${p},0px 23px 36px 3px ${x},0px 9px 44px 8px ${t}`,`0px 11px 15px -7px ${p},0px 24px 38px 3px ${x},0px 9px 46px 8px ${t}`]}var f="Public Sans",g=c(f),n=c(f),d={fontFamily:g,fontSecondaryFamily:n,fontWeightLight:"300",fontWeightRegular:"400",fontWeightMedium:"500",fontWeightSemiBold:"600",fontWeightBold:"700",h1:{fontWeight:800,lineHeight:80/64,fontSize:e(40),fontFamily:n,...f$1({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:e(32),fontFamily:n,...f$1({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:e(24),fontFamily:n,...f$1({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:e(20),...f$1({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:e(18),...f$1({sm:19,md:20,lg:20})},h6:{fontWeight:600,lineHeight:28/18,fontSize:e(17),...f$1({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:e(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:e(14)},body1:{lineHeight:1.5,fontSize:e(16)},body2:{lineHeight:22/14,fontSize:e(14)},caption:{lineHeight:1.5,fontSize:e(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:e(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:e(14),textTransform:"unset"}};
@@ -1,6 +1,6 @@
1
- import { a as a$1, e } from './chunk-GOC7PC2S.js';
2
- import { a as a$3, b as b$1 } from './chunk-MCT77MRN.js';
3
- import { q, s, a as a$2 } from './chunk-CFYNJQGN.js';
1
+ import { a as a$1, e } from './chunk-JKQRVJQX.js';
2
+ import { a as a$3, b as b$1 } from './chunk-HN2NS2GZ.js';
3
+ import { q, s, a as a$2 } from './chunk-VULBXTS2.js';
4
4
  import { a } from './chunk-GUFT6XPG.js';
5
5
  import { c } from './chunk-D27ND54J.js';
6
6
  import A from '@mui/material/CssBaseline';
@@ -0,0 +1,43 @@
1
+ import { i as i$1, q as q$1, r, a, h, g } from './chunk-D27ND54J.js';
2
+ import { accordionClasses } from '@mui/material/Accordion';
3
+ import { accordionSummaryClasses } from '@mui/material/AccordionSummary';
4
+ import { typographyClasses } from '@mui/material/Typography';
5
+ import { alertClasses } from '@mui/material/Alert';
6
+ import c, { svgIconClasses } from '@mui/material/SvgIcon';
7
+ import { jsx, jsxs } from 'react/jsx-runtime';
8
+ import { autocompleteClasses } from '@mui/material/Autocomplete';
9
+ import { avatarGroupClasses } from '@mui/material/AvatarGroup';
10
+ import { badgeClasses } from '@mui/material/Badge';
11
+ import { loadingButtonClasses } from '@mui/lab/LoadingButton';
12
+ import { buttonClasses } from '@mui/material/Button';
13
+ import { fabClasses } from '@mui/material/Fab';
14
+ import { buttonGroupClasses } from '@mui/material/ButtonGroup';
15
+ import { toggleButtonClasses } from '@mui/material/ToggleButton';
16
+ import { checkboxClasses } from '@mui/material/Checkbox';
17
+ import { chipClasses } from '@mui/material/Chip';
18
+ import { inputLabelClasses } from '@mui/material/InputLabel';
19
+ import { circularProgressClasses } from '@mui/material/CircularProgress';
20
+ import { formControlLabelClasses } from '@mui/material/FormControlLabel';
21
+ import { iconButtonClasses } from '@mui/material/IconButton';
22
+ import { inputBaseClasses } from '@mui/material/InputBase';
23
+ import { listClasses } from '@mui/material/List';
24
+ import { listItemIconClasses } from '@mui/material/ListItemIcon';
25
+ import { paperClasses } from '@mui/material/Paper';
26
+ import { textFieldClasses } from '@mui/material/TextField';
27
+ import { dialogActionsClasses } from '@mui/material/DialogActions';
28
+ import { paginationItemClasses } from '@mui/material/PaginationItem';
29
+ import { radioClasses } from '@mui/material/Radio';
30
+ import { ratingClasses } from '@mui/material/Rating';
31
+ import { sliderClasses } from '@mui/material/Slider';
32
+ import { switchClasses } from '@mui/material/Switch';
33
+ import { tableCellClasses } from '@mui/material/TableCell';
34
+ import { tableRowClasses } from '@mui/material/TableRow';
35
+ import { tabClasses } from '@mui/material/Tab';
36
+ import { filledInputClasses } from '@mui/material/FilledInput';
37
+ import { outlinedInputClasses } from '@mui/material/OutlinedInput';
38
+ import { alpha } from '@mui/material/styles';
39
+ import { tooltipClasses } from '@mui/material/Tooltip';
40
+
41
+ var Br={styleOverrides:{root:({theme:o})=>({backgroundColor:"transparent",[`&.${accordionClasses.expanded}`]:{boxShadow:o.customShadows.z8,borderRadius:o.shape.borderRadius,backgroundColor:o.vars.palette.background.paper},[`&.${accordionClasses.disabled}`]:{backgroundColor:"transparent"}})}},Lr={styleOverrides:{root:({theme:o})=>({paddingLeft:o.spacing(2),paddingRight:o.spacing(1),[`&.${accordionSummaryClasses.disabled}`]:{opacity:1,color:o.vars.palette.action.disabled,[`& .${typographyClasses.root}`]:{color:"inherit"}}}),expandIconWrapper:{color:"inherit"}}},ao={MuiAccordion:Br,MuiAccordionSummary:Lr};var Ar=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-10 5.75a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-1.5 0v6c0 .414.336.75.75.75M12 7a1 1 0 1 1 0 2a1 1 0 0 1 0-2",clipRule:"evenodd"})}),Dr=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-5.97-3.03a.75.75 0 0 1 0 1.06l-5 5a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l1.47 1.47l2.235-2.235L14.97 8.97a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})}),zr=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.312 10.762C8.23 5.587 9.689 3 12 3c2.31 0 3.77 2.587 6.688 7.762l.364.644c2.425 4.3 3.638 6.45 2.542 8.022S17.786 21 12.364 21h-.728c-5.422 0-8.134 0-9.23-1.572s.117-3.722 2.542-8.022zM12 7.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75M12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2",clipRule:"evenodd"})}),Vr=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.843 3.802C9.872 2.601 10.886 2 12 2c1.114 0 2.128.6 4.157 1.802l.686.406c2.029 1.202 3.043 1.803 3.6 2.792c.557.99.557 2.19.557 4.594v.812c0 2.403 0 3.605-.557 4.594c-.557.99-1.571 1.59-3.6 2.791l-.686.407C14.128 21.399 13.114 22 12 22c-1.114 0-2.128-.6-4.157-1.802l-.686-.407c-2.029-1.2-3.043-1.802-3.6-2.791C3 16.01 3 14.81 3 12.406v-.812C3 9.19 3 7.989 3.557 7c.557-.99 1.571-1.59 3.6-2.792zM13 16a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-1-9.75a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})}),Gr=["info","success","warning","error"];function E(o,r){return Gr.reduce((a,s)=>(o.severity===s&&(a=r(s)),a),{})}var Wr={defaultProps:{iconMapping:{error:jsx(Vr,{}),info:jsx(Ar,{}),success:jsx(Dr,{}),warning:jsx(zr,{})}},styleOverrides:{icon:{opacity:1},standard:({ownerState:o,theme:r})=>({...{colors:E(o,a$1=>({color:r.vars.palette[a$1].darker,backgroundColor:r.vars.palette[a$1].lighter,[a.dark]:{color:r.vars.palette[a$1].lighter,backgroundColor:r.vars.palette[a$1].darker},[`& .${alertClasses.icon}`]:{color:r.vars.palette[a$1].main,[a.dark]:{color:r.vars.palette[a$1].light}}}))}.colors}),filled:({ownerState:o,theme:r})=>({...{colors:E(o,a=>({color:r.vars.palette[a].contrastText}))}.colors}),outlined:({ownerState:o,theme:r})=>({...{colors:E(o,a$1=>({backgroundColor:i$1(r.vars.palette[a$1].mainChannel,.08),color:r.vars.palette[a$1].dark,border:`solid 1px ${i$1(r.vars.palette[a$1].mainChannel,.16)}`,[a.dark]:{color:r.vars.palette[a$1].light},[`& .${alertClasses.icon}`]:{color:r.vars.palette[a$1].main}}))}.colors})}},Er={styleOverrides:{root:({theme:o})=>({marginBottom:o.spacing(.5),fontWeight:o.typography.fontWeightSemiBold})}},lo={MuiAlert:Wr,MuiAlertTitle:Er};var Hr={defaultProps:{color:"transparent"},styleOverrides:{root:{boxShadow:"none"}}},io={MuiAppBar:Hr};var Nr=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M12 16a1 1 0 0 1-.64-.23l-6-5a1 1 0 1 1 1.28-1.54L12 13.71l5.36-4.32a1 1 0 0 1 1.41.15a1 1 0 0 1-.14 1.46l-6 4.83A1 1 0 0 1 12 16"})}),_r={defaultProps:{popupIcon:jsx(Nr,{})},styleOverrides:{root:({theme:o})=>({[`& span.${autocompleteClasses.tag}`]:{...o.typography.subtitle2,height:24,minWidth:24,lineHeight:"24px",textAlign:"center",padding:o.spacing(0,.75),color:o.vars.palette.text.secondary,borderRadius:o.shape.borderRadius,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16)}}),paper:({theme:o})=>({...q$1({theme:o,dropdown:!0})}),listbox:({theme:o})=>({padding:0,[`& .${autocompleteClasses.option}`]:{...r(o)}}),endAdornment:{[`& .${svgIconClasses.root}`]:{width:18,height:18}},input:({size:o})=>({...o==="small"&&{paddingTop:"7px !important",paddingBottom:"7px !important"}})}},po={MuiAutocomplete:_r};var jr=["primary","secondary","info","success","warning","error"],Xr=o=>{let r=o.charAt(0).toLowerCase();return ["a","c","f"].includes(r)?"primary":["e","d","h"].includes(r)?"secondary":["i","k","l"].includes(r)?"info":["m","n","p"].includes(r)?"success":["q","s","t"].includes(r)?"warning":["v","x","y"].includes(r)?"error":"default"},co={colors:jr.map(o=>({props:({ownerState:r})=>r.color===o,style:({theme:r})=>({color:r.vars.palette[o].contrastText,backgroundColor:r.vars.palette[o].main})})),defaultColor:[{props:({ownerState:o})=>o.color==="default",style:({theme:o})=>({color:o.vars.palette.text.secondary,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.24)})}]},Yr={variants:[...co.defaultColor,...co.colors],styleOverrides:{rounded:({theme:o})=>({borderRadius:o.shape.borderRadius*1.5}),colorDefault:({ownerState:o,theme:r})=>{let t=Xr(`${o.alt}`);return {...!!o.alt&&{...t!=="default"?{color:r.vars.palette[t].contrastText,backgroundColor:r.vars.palette[t].main}:{color:r.vars.palette.text.secondary,backgroundColor:i$1(r.vars.palette.grey["500Channel"],.24)}}}}}},Jr={defaultProps:{max:4},styleOverrides:{root:({ownerState:o})=>({justifyContent:"flex-end",...o.variant==="compact"&&{width:40,height:40,position:"relative",[`& .${avatarGroupClasses.avatar}`]:{margin:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}}}),avatar:({theme:o})=>({fontSize:16,fontWeight:o.typography.fontWeightSemiBold,"&:first-of-type":{fontSize:12,color:o.vars.palette.primary.dark,backgroundColor:o.vars.palette.primary.lighter}})}},mo={MuiAvatar:Yr,MuiAvatarGroup:Jr};var Kr={styleOverrides:{root:({theme:o})=>({backgroundColor:i$1(o.vars.palette.grey["800Channel"],.48)}),invisible:{background:"transparent"}}},uo={MuiBackdrop:Kr};var L=o=>({width:10,zIndex:9,padding:0,height:10,minWidth:"auto","&::before, &::after":{content:'""',borderRadius:1,backgroundColor:o.vars.palette.common.white},[`&.${badgeClasses.invisible}`]:{transform:"unset"}}),Qr={variants:[{props:({ownerState:o})=>o.variant==="online",style:({theme:o})=>({[`& .${badgeClasses.badge}`]:{...L(o),backgroundColor:o.vars.palette.success.main}})},{props:({ownerState:o})=>o.variant==="alway",style:({theme:o})=>({[`& .${badgeClasses.badge}`]:{...L(o),backgroundColor:o.vars.palette.warning.main,"&::before":{width:2,height:4,transform:"translateX(1px) translateY(-1px)"},"&::after":{width:2,height:4,transform:"translateY(1px) rotate(125deg)"}}})},{props:({ownerState:o})=>o.variant==="busy",style:({theme:o})=>({[`& .${badgeClasses.badge}`]:{...L(o),backgroundColor:o.vars.palette.error.main,"&::before":{width:6,height:2}}})},{props:({ownerState:o})=>o.variant==="offline",style:({theme:o})=>({[`& .${badgeClasses.badge}`]:{...L(o),backgroundColor:o.vars.palette.text.disabled,"&::before":{width:6,height:6,borderRadius:"50%"}}})},{props:({ownerState:o})=>o.variant==="invisible",style:{[`& .${badgeClasses.badge}`]:{display:"none"}}}],styleOverrides:{dot:{borderRadius:"50%"}}},go={MuiBadge:Qr};var oe={styleOverrides:{ol:({theme:o})=>({rowGap:o.spacing(.5),columnGap:o.spacing(2)}),li:({theme:o})=>({display:"inline-flex","& > *":{...o.typography.body2}}),separator:{margin:0}}},Co={MuiBreadcrumbs:oe};var bo=["primary","secondary","info","success","warning","error"];function ho(o,r){return bo.reduce((a,s)=>(!o.disabled&&o.color===s&&(a=r(s)),a),{})}var re={styleOverrides:{root:({theme:o})=>({fontFamily:o.typography.fontFamily})}},yo={colors:bo.map(o=>({props:({ownerState:r})=>!r.disabled&&r.variant==="soft"&&r.color===o,style:({theme:r})=>({color:r.vars.palette[o].dark,backgroundColor:i$1(r.vars.palette[o].mainChannel,.16),"&:hover":{backgroundColor:i$1(r.vars.palette[o].mainChannel,.32)},[a.dark]:{color:r.vars.palette[o].light}})})),base:[{props:({ownerState:o})=>o.variant==="soft",style:({theme:o})=>({backgroundColor:i$1(o.vars.palette.grey["500Channel"],.08),"&:hover":{backgroundColor:i$1(o.vars.palette.grey["500Channel"],.24)},[`&.${buttonClasses.disabled}`]:{backgroundColor:o.vars.palette.action.disabledBackground},[`& .${loadingButtonClasses.loadingIndicatorStart}`]:{left:14},[`& .${loadingButtonClasses.loadingIndicatorEnd}`]:{right:14},[`&.${buttonClasses.sizeSmall}`]:{[`& .${loadingButtonClasses.loadingIndicatorStart}`]:{left:10},[`& .${loadingButtonClasses.loadingIndicatorEnd}`]:{right:10}}})}]},ee={defaultProps:{color:"primary",disableElevation:!0},variants:[...yo.base,...yo.colors],styleOverrides:{contained:({theme:o,ownerState:r})=>{let t={colors:ho(r,a=>({"&:hover":{boxShadow:o.customShadows[a]}})),inheritColor:{...r.color==="inherit"&&!r.disabled&&{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.grey[800],"&:hover":{boxShadow:o.customShadows.z8,backgroundColor:o.vars.palette.grey[700]},[a.dark]:{color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.common.white,"&:hover":{backgroundColor:o.vars.palette.grey[400]}}}}};return {...t.inheritColor,...t.colors}},outlined:({theme:o,ownerState:r})=>{let t={colors:ho(r,a=>({borderColor:i$1(o.vars.palette[a].mainChannel,.48)})),inheritColor:{...r.color==="inherit"&&!r.disabled&&{borderColor:i$1(o.vars.palette.grey["500Channel"],.32),"&:hover":{backgroundColor:o.vars.palette.action.hover}}},base:{"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor"}}};return {...t.base,...t.inheritColor,...t.colors}},text:({ownerState:o,theme:r})=>({...{inheritColor:{...o.color==="inherit"&&!o.disabled&&{"&:hover":{backgroundColor:r.vars.palette.action.hover}}}}.inheritColor}),sizeSmall:({ownerState:o})=>({height:30,...o.variant==="text"?{paddingLeft:"4px",paddingRight:"4px"}:{paddingLeft:"8px",paddingRight:"8px"}}),sizeMedium:({ownerState:o})=>({...o.variant==="text"?{paddingLeft:"8px",paddingRight:"8px"}:{paddingLeft:"12px",paddingRight:"12px"}}),sizeLarge:({ownerState:o})=>({height:48,...o.variant==="text"?{paddingLeft:"10px",paddingRight:"10px"}:{paddingLeft:"16px",paddingRight:"16px"}})}},fo={MuiButtonBase:re,MuiButton:ee};var q=["primary","secondary","info","success","warning","error"],Po=["default","inherit"],te=["extended","outlinedExtended","softExtended"],xo=["circular","extended"],ko=["outlined","outlinedExtended"],Mo=["soft","softExtended"],To={colors:q.map(o=>({props:({ownerState:r})=>!r.disabled&&xo.includes(r.variant)&&r.color===o,style:({theme:r})=>({boxShadow:r.customShadows[o],"&:hover":{boxShadow:"none"}})})),base:[{props:({ownerState:o})=>xo.includes(o.variant)&&Po.includes(o.color),style:({theme:o})=>({boxShadow:o.customShadows.z8,color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:o.vars.palette.grey[400]},[`&.${fabClasses.colorInherit}`]:{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.text.primary,"&:hover":{backgroundColor:o.vars.palette.grey[700]},[a.dark]:{color:o.vars.palette.grey[800],"&:hover":{backgroundColor:o.vars.palette.grey[400]}}}})}]},So={colors:q.map(o=>({props:({ownerState:r})=>!r.disabled&&ko.includes(r.variant)&&r.color===o,style:({theme:r})=>({color:r.vars.palette[o].main,border:`solid 1px ${i$1(r.vars.palette[o].mainChannel,.48)}`,"&:hover":{backgroundColor:i$1(r.vars.palette[o].mainChannel,.08)}})})),base:[{props:({ownerState:o})=>ko.includes(o.variant),style:({theme:o})=>({boxShadow:"none",backgroundColor:"transparent",color:o.vars.palette.text.secondary,border:`solid 1px ${i$1(o.vars.palette.grey["500Channel"],.32)}`,"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor",backgroundColor:o.vars.palette.action.hover},[`&.${fabClasses.colorInherit}`]:{color:o.vars.palette.text.primary},[`&.${fabClasses.disabled}`]:{backgroundColor:"transparent",border:`1px solid ${o.vars.palette.action.disabledBackground}`}})}]},Io={colors:q.map(o=>({props:({ownerState:r})=>!r.disabled&&Mo.includes(r.variant)&&r.color===o,style:({theme:r})=>({boxShadow:"none",color:r.vars.palette[o].dark,backgroundColor:i$1(r.vars.palette[o].mainChannel,.16),"&:hover":{boxShadow:"none",backgroundColor:i$1(r.vars.palette[o].mainChannel,.32)},[a.dark]:{color:r.vars.palette[o].light}})})),base:[{props:({ownerState:o})=>Mo.includes(o.variant)&&Po.includes(o.color),style:({theme:o})=>({boxShadow:"none",color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:o.vars.palette.grey[400]},[`&.${fabClasses.colorInherit}`]:{color:o.vars.palette.text.primary,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.08),"&:hover":{backgroundColor:i$1(o.vars.palette.grey["500Channel"],.24)}}})}]},ae=[{props:({ownerState:o})=>te.includes(o.variant),style:({theme:o})=>({height:48,width:"auto",minHeight:48,borderRadius:48/2,gap:o.spacing(1),padding:o.spacing(0,2),[`&.${fabClasses.sizeSmall}`]:{height:34,minHeight:34,borderRadius:34/2,gap:o.spacing(.5),padding:o.spacing(0,1)},[`&.${fabClasses.sizeMedium}`]:{height:40,minHeight:40,borderRadius:40/2}})}],ne={defaultProps:{color:"primary"},variants:[...To.base,...To.colors,...So.base,...So.colors,...Io.base,...Io.colors,...ae],styleOverrides:{}},$o={MuiFab:ne};var Fo=["primary","secondary","info","success","warning","error"];function Oo(o,r){return Fo.reduce((a,s)=>(!o.disabled&&o.color===s&&(a=r(s)),a),{})}var C=`& .${buttonGroupClasses.firstButton}, & .${buttonGroupClasses.middleButton}`,wo={colors:Fo.map(o=>({props:({ownerState:r})=>!r.disabled&&r.variant==="soft"&&r.color===o,style:({theme:r})=>({[C]:{borderColor:i$1(r.vars.palette[o].darkChannel,.24),[a.dark]:{borderColor:i$1(r.vars.palette[o].lightChannel,.24)}},[`&.${buttonGroupClasses.vertical}`]:{[C]:{borderColor:i$1(r.vars.palette[o].darkChannel,.24),[a.dark]:{borderColor:i$1(r.vars.palette[o].lightChannel,.24)}}}})})),base:[{props:({ownerState:o})=>o.variant==="soft",style:({theme:o})=>({[C]:{borderRight:`solid 1px ${i$1(o.vars.palette.grey["500Channel"],.32)}`,[`&.${buttonGroupClasses.disabled}`]:{borderColor:o.vars.palette.action.disabledBackground}},[`&.${buttonGroupClasses.vertical}`]:{[C]:{borderRight:"none",borderBottom:`solid 1px ${i$1(o.vars.palette.grey["500Channel"],.32)}`,[`&.${buttonGroupClasses.disabled}`]:{borderColor:o.vars.palette.action.disabledBackground}}}})}]},le={defaultProps:{disableElevation:!0},variants:[...wo.base,...wo.colors],styleOverrides:{contained:({theme:o,ownerState:r})=>{let t={colors:Oo(r,a=>({[C]:{borderColor:i$1(o.vars.palette[a].darkChannel,.48)}})),inheritColor:{...r.color==="inherit"&&{[C]:{borderColor:i$1(o.vars.palette.grey["500Channel"],.32)}}},disabled:{...r.disabled&&{[C]:{[`&.${buttonGroupClasses.disabled}`]:{borderColor:o.vars.palette.action.disabledBackground}}}}};return {...t.inheritColor,...t.colors,...t.disabled}},text:({theme:o,ownerState:r})=>{let t={colors:Oo(r,a=>({[C]:{borderColor:i$1(o.vars.palette[a].mainChannel,.48)}})),inheritColor:{...r.color==="inherit"&&{[C]:{borderColor:i$1(o.vars.palette.grey["500Channel"],.32)}}},disabled:{...r.disabled&&{[C]:{[`&.${buttonGroupClasses.disabled}`]:{borderColor:o.vars.palette.action.disabledBackground}}}}};return {...t.inheritColor,...t.colors,...t.disabled}}}},Ro={MuiButtonGroup:le};var ie=["primary","secondary","info","success","warning","error"];function se(o,r){return ie.reduce((a,s)=>(!o.disabled&&o.color===s&&(a=r(s)),a),{})}var pe={styleOverrides:{root:({theme:o,ownerState:r})=>{let t={colors:se(r,a=>({"&:hover":{borderColor:i$1(o.vars.palette[a].mainChannel,.48),backgroundColor:i$1(o.vars.palette[a].mainChannel,o.vars.palette.action.hoverOpacity)}})),selected:{[`&.${toggleButtonClasses.selected}`]:{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor"}},disabled:{...r.disabled&&{[`&.${toggleButtonClasses.selected}`]:{color:o.vars.palette.action.disabled,backgroundColor:o.vars.palette.action.selected,borderColor:o.vars.palette.action.disabledBackground}}}};return {...t.colors,...t.selected,...t.disabled}}}},de={styleOverrides:{root:({theme:o})=>({gap:4,padding:4,border:`solid 1px ${i$1(o.vars.palette.grey["500Channel"],.08)}`}),grouped:{[`&.${toggleButtonClasses.root}`]:{border:"none",borderRadius:"inherit"},[`&.${toggleButtonClasses.selected}`]:{boxShadow:"none"}}}},Bo={MuiToggleButton:pe,MuiToggleButtonGroup:de};var ce={styleOverrides:{root:({theme:o})=>({position:"relative",boxShadow:o.customShadows.card,borderRadius:o.shape.borderRadius*2,zIndex:0})}},me={defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:"4px"}},styleOverrides:{root:({theme:o})=>({padding:o.spacing(3,3,0)})}},ue={styleOverrides:{root:({theme:o})=>({padding:o.spacing(3)})}},Lo={MuiCard:ce,MuiCardHeader:me,MuiCardContent:ue};var ge=o=>jsx(c,{...o,children:jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})}),Ce=o=>jsx(c,{...o,children:jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})}),ve=o=>jsx(c,{...o,children:jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})}),he={defaultProps:{size:"small",icon:jsx(ge,{}),checkedIcon:jsx(Ce,{}),indeterminateIcon:jsx(ve,{})},styleOverrides:{root:({ownerState:o,theme:r})=>({padding:r.spacing(1),...o.color==="default"&&{[`&.${checkboxClasses.checked}`]:{color:r.vars.palette.text.primary}},[`&.${checkboxClasses.disabled}`]:{color:r.vars.palette.action.disabled}})}},Do={MuiCheckbox:he};var be=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10M8.97 8.97a.75.75 0 0 1 1.06 0L12 10.94l1.97-1.97a.75.75 0 0 1 1.06 1.06L13.06 12l1.97 1.97a.75.75 0 0 1-1.06 1.06L12 13.06l-1.97 1.97a.75.75 0 0 1-1.06-1.06L10.94 12l-1.97-1.97a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})}),Vo=["primary","secondary","info","success","warning","error"];function fe(o,r){return Vo.reduce((a,s)=>(!o.disabled&&o.color===s&&(a=r(s)),a),{})}var zo={colors:Vo.map(o=>({props:({ownerState:r})=>!r.disabled&&r.variant==="soft"&&r.color===o,style:({theme:r})=>({color:r.vars.palette[o].dark,backgroundColor:i$1(r.vars.palette[o].mainChannel,.16),"&:hover":{backgroundColor:i$1(r.vars.palette[o].mainChannel,.32)},[a.dark]:{color:r.vars.palette[o].light}})})),inheritColor:[{props:({ownerState:o})=>o.variant==="soft"&&o.color==="default",style:({theme:o})=>({backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16),"&:hover":{backgroundColor:i$1(o.vars.palette.grey["500Channel"],.32)}})}]},xe={defaultProps:{deleteIcon:jsx(be,{}),color:"primary"},variants:[...zo.inheritColor,...zo.colors],styleOverrides:{root:({ownerState:o,theme:r})=>{let t={colors:fe(o,a=>({[`& .${chipClasses.avatar}`]:{color:r.vars.palette[a].lighter,backgroundColor:r.vars.palette[a].dark}})),disabled:{[`&.${chipClasses.disabled}`]:{opacity:1,[`& .${chipClasses.avatar}`]:{color:r.vars.palette.action.disabled,backgroundColor:r.vars.palette.action.disabledBackground},...o.variant==="outlined"&&{color:r.vars.palette.action.disabled,borderColor:r.vars.palette.action.disabledBackground},...["filled","soft"].includes(o.variant)&&{color:r.vars.palette.action.disabled,backgroundColor:r.vars.palette.action.disabledBackground}}}};return {...t.colors,...t.disabled}},label:({theme:o})=>({fontWeight:o.typography.fontWeightMedium}),icon:{color:"currentColor"},deleteIcon:{opacity:.48,color:"currentColor","&:hover":{opacity:1,color:"currentColor"}},sizeMedium:({theme:o})=>({borderRadius:o.shape.borderRadius*1.25}),sizeSmall:({theme:o})=>({borderRadius:o.shape.borderRadius}),filled:({ownerState:o,theme:r})=>({...{defaultColor:{...!o.disabled&&o.color==="default"&&{color:r.vars.palette.common.white,backgroundColor:r.vars.palette.text.primary,[`& .${chipClasses.avatar}`]:{color:r.vars.palette.text.primary},"&:hover":{backgroundColor:r.vars.palette.grey[700]},[a.dark]:{color:r.vars.palette.grey[800],"&:hover":{backgroundColor:r.vars.palette.grey[100]}}}}}.defaultColor}),outlined:({ownerState:o,theme:r})=>({...{defaultColor:{...!o.disabled&&o.color==="default"&&{borderColor:i$1(r.vars.palette.grey["500Channel"],.32)}}}.defaultColor})}},Go={MuiChip:xe};var ke={styleOverrides:{paper:({ownerState:o,theme:r})=>({boxShadow:r.customShadows.dialog,borderRadius:r.shape.borderRadius*2,...!o.fullScreen&&{margin:r.spacing(2)}}),paperFullScreen:{borderRadius:0}}},Me={styleOverrides:{root:({theme:o})=>({padding:o.spacing(3)})}},Te={styleOverrides:{root:({theme:o})=>({padding:o.spacing(0,3)}),dividers:({theme:o})=>({borderTop:0,borderBottomStyle:"dashed",paddingBottom:o.spacing(3)})}},Se={defaultProps:{disableSpacing:!0},styleOverrides:{root:({theme:o})=>({padding:o.spacing(3),"& > :not(:first-of-type)":{marginLeft:o.spacing(1.5)}})}},Wo={MuiDialog:ke,MuiDialogTitle:Me,MuiDialogContent:Te,MuiDialogActions:Se};var Ie={styleOverrides:{paper:{backgroundColor:"#fff !important",backgroundImage:"none !important"},paperAnchorRight:({ownerState:o,theme:r})=>({...o.variant==="temporary"&&{...q$1({theme:r}),boxShadow:`-40px 40px 80px -8px ${i$1(r.vars.palette.grey["500Channel"],.24)}`,[a.dark]:{boxShadow:`-40px 40px 80px -8px ${i$1(r.vars.palette.common.blackChannel,.24)}`}}}),paperAnchorLeft:({ownerState:o,theme:r})=>({...o.variant==="temporary"&&{...q$1({theme:r}),boxShadow:`40px 40px 80px -8px ${i$1(r.vars.palette.grey["500Channel"],.24)}`,[a.dark]:{boxShadow:`40px 40px 80px -8px ${i$1(r.vars.palette.common.blackChannel,.24)}`}}})}},Eo={MuiDrawer:Ie};var Pe={styleOverrides:{root:({theme:o})=>({...o.typography.body2,color:o.vars.palette.text.disabled,[`&.${inputLabelClasses.shrink}`]:{...o.typography.body1,fontWeight:600,color:o.vars.palette.text.secondary,zIndex:1,[`&.${inputLabelClasses.focused}`]:{color:o.vars.palette.text.primary},[`&.${inputLabelClasses.error}`]:{color:o.vars.palette.error.main},[`&.${inputLabelClasses.disabled}`]:{color:o.vars.palette.text.disabled},[`&.${inputLabelClasses.filled}`]:{transform:"translate(12px, 6px) scale(0.75)"}}})}},$e={defaultProps:{component:"div"},styleOverrides:{root:({theme:o})=>({marginTop:o.spacing(1)})}},Oe={styleOverrides:{label:({theme:o})=>({...o.typography.body2})}},Ho={MuiFormLabel:Pe,MuiFormHelperText:$e,MuiFormControlLabel:Oe};var we={defaultProps:{underline:"hover"},styleOverrides:{}},qo={MuiLink:we};var Fe={styleOverrides:{root:({theme:o})=>({color:"inherit",minWidth:"auto",marginRight:o.spacing(2)})}},Re={styleOverrides:{root:({theme:o})=>({minWidth:"auto",marginRight:o.spacing(2)})}},Be={defaultProps:{primaryTypographyProps:{typography:"subtitle2"}},styleOverrides:{root:{margin:0},multiline:{margin:0}}},Zo={MuiListItemIcon:Fe,MuiListItemAvatar:Re,MuiListItemText:Be};var Le={styleOverrides:{root:({theme:o})=>({...r(o)})}},No={MuiMenuItem:Le};var He={defaultProps:{slots:{columnSortedAscendingIcon:o=>jsx(U,{sx:{color:"text.primary"},...o}),columnSortedDescendingIcon:o=>jsx(jo,{sx:{color:"text.primary"},...o}),columnUnsortedIcon:o=>jsx(U,{fontSize:o.fontSize,className:o.className,sx:{color:"text.disabled"}}),columnMenuIcon:o=>jsx(_e,{width:20,...o}),columnMenuSortAscendingIcon:o=>jsx(U,{...o}),columnMenuSortDescendingIcon:o=>jsx(jo,{...o}),columnMenuFilterIcon:o=>jsx(j,{...o}),columnMenuHideIcon:o=>jsx(Ze,{...o}),columnMenuManageColumnsIcon:o=>jsx(Xo,{...o}),columnSelectorIcon:o=>jsx(Xo,{...o}),filterPanelDeleteIcon:o=>jsx(Yo,{...o}),openFilterButtonIcon:o=>jsx(j,{...o}),columnFilteredIcon:o=>jsx(j,{sx:{width:16,color:"text.primary"},...o}),densityCompactIcon:o=>jsx(Ue,{...o}),densityStandardIcon:o=>jsx(Xe,{...o}),densityComfortableIcon:o=>jsx(je,{...o}),exportIcon:o=>jsx(qe,{...o}),quickFilterIcon:o=>jsx(Ne,{sx:{width:24,height:24,color:"text.secondary"},...o}),quickFilterClearIcon:o=>jsx(Yo,{...o})},slotProps:{basePopper:{placement:"bottom-end"},baseChip:{size:"small"},baseSwitch:{size:"small"},baseCheckbox:{size:"small",disableRipple:!0},baseInputLabel:{shrink:!0},baseTextField:{variant:"outlined"},baseSelect:{native:!0,variant:"outlined"}}},styleOverrides:{root:({theme:o})=>({"--unstable_DataGrid-radius":0,"--DataGrid-rowBorderColor":o.vars.palette.divider,"--DataGrid-containerBackground":o.vars.palette.background.neutral,"--unstable_DataGrid-headWeight":o.typography.fontWeightSemiBold,borderWidth:0,scrollbarWidth:"thin",scrollbarColor:`${i$1(o.vars.palette.text.disabledChannel,.4)} ${i$1(o.vars.palette.text.disabledChannel,.08)}`,"& .MuiDataGrid-filler > div":{borderTopStyle:"dashed"},"& .MuiDataGrid-topContainer::after":{height:0},"& .MuiDataGrid-filler":{borderBottom:"0 !important"}}),withBorderColor:{borderColor:"var(--DataGrid-rowBorderColor)"},columnHeader:({theme:o})=>({fontSize:14,color:o.vars.palette.text.secondary,borderBottom:"0 !important","&--sorted":{color:o.vars.palette.text.primary}}),columnSeparator:{color:"var(--DataGrid-rowBorderColor)"},cell:({theme:o})=>({borderTopStyle:"dashed","&--editing":{boxShadow:"none",backgroundColor:i$1(o.vars.palette.primary.mainChannel,.08)}}),toolbarContainer:({theme:o})=>({gap:o.spacing(2),padding:o.spacing(2),[`& .${textFieldClasses.root}`]:{padding:0,width:"100%",[`& .${inputBaseClasses.input}`]:{paddingTop:o.spacing(2),paddingBottom:o.spacing(2)},[o.breakpoints.up("md")]:{width:"unset"}}}),paper:({theme:o})=>({...q$1({theme:o,dropdown:!0}),padding:0}),menu:({theme:o})=>({[`& .${paperClasses.root}`]:{...q$1({theme:o,dropdown:!0}),minWidth:140},[`& .${listClasses.root}`]:{padding:0,[`& .${listItemIconClasses.root}`]:{minWidth:0,marginRight:o.spacing(2)}}}),menuIcon:({theme:o})=>({[`& .${iconButtonClasses.root}`]:{margin:o.spacing(0,1),padding:o.spacing(.25)}}),iconButtonContainer:({theme:o})=>({[`& .${iconButtonClasses.root}`]:{padding:o.spacing(.25),marginLeft:o.spacing(1)}}),footerContainer:{minHeight:"auto",borderTopStyle:"dashed"},selectedRowCount:{display:"none",whiteSpace:"nowrap"},overlay:({theme:o})=>({[`& .${circularProgressClasses.root}`]:{color:o.vars.palette.text.primary}}),columnsManagementHeader:({theme:o})=>({padding:o.spacing(2.5,2,0,2),[`& .${inputBaseClasses.input}`]:{paddingTop:o.spacing(2),paddingBottom:o.spacing(2)}}),columnsManagement:({theme:o})=>({gap:o.spacing(.5),padding:o.spacing(2,1.5),[`& .${formControlLabelClasses.root}`]:{gap:4,marginLeft:0}}),columnsManagementFooter:({theme:o})=>({borderTopStyle:"dashed",padding:o.spacing(1.5),[`& .${formControlLabelClasses.root}`]:{gap:4,marginLeft:0}}),filterForm:({theme:o})=>({alignItems:"center",gap:o.spacing(1.5),padding:o.spacing(2),[`& .${inputLabelClasses.shrink}`]:{transform:"translate(14px, -9px) scale(0.75)"}}),filterFormDeleteIcon:({theme:o})=>({[`& .${iconButtonClasses.root}`]:{padding:o.spacing(.25),backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16),[`& .${svgIconClasses.root}`]:{width:16,height:16}}})}},Jo={MuiDataGrid:He},U=({...o})=>jsxs(c,{sx:{width:20,height:20,...o.sx},...o,children:[jsx("path",{fill:"currentColor",d:"m8.303 11.596l3.327-3.431a.499.499 0 0 1 .74 0l6.43 6.63c.401.414.158 1.205-.37 1.205h-5.723z"}),jsx("path",{fill:"currentColor",d:"M11.293 16H5.57c-.528 0-.771-.791-.37-1.205l2.406-2.482z",opacity:"0.5"})]}),jo=({...o})=>jsxs(c,{sx:{width:20,height:20,...o.sx},...o,children:[jsx("path",{fill:"currentColor",d:"m8.303 12.404l3.327 3.431c.213.22.527.22.74 0l6.43-6.63C19.201 8.79 18.958 8 18.43 8h-5.723z"}),jsx("path",{fill:"currentColor",d:"M11.293 8H5.57c-.528 0-.771.79-.37 1.205l2.406 2.481z",opacity:"0.5"})]}),j=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",d:"M19 3H5c-1.414 0-2.121 0-2.56.412C2 3.824 2 4.488 2 5.815v.69c0 1.037 0 1.556.26 1.986c.26.43.733.698 1.682 1.232l2.913 1.64c.636.358.955.537 1.183.735c.474.411.766.895.898 1.49c.064.284.064.618.064 1.285v2.67c0 .909 0 1.364.252 1.718c.252.355.7.53 1.594.88c1.879.734 2.818 1.101 3.486.683c.668-.417.668-1.372.668-3.282v-2.67c0-.666 0-1 .064-1.285a2.68 2.68 0 0 1 .899-1.49c.227-.197.546-.376 1.182-.735l2.913-1.64c.948-.533 1.423-.8 1.682-1.23c.26-.43.26-.95.26-1.988v-.69c0-1.326 0-1.99-.44-2.402C21.122 3 20.415 3 19 3"})}),qe=({...o})=>jsxs(c,{sx:{width:20,height:20,...o.sx},...o,children:[jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.845 7.905a.75.75 0 0 0 1.06 0l1.72-1.72v8.19a.75.75 0 0 0 1.5 0v-8.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 0 0 0 1.06",clipRule:"evenodd"}),jsx("path",{fill:"currentColor",d:"M12.375 20.375a8 8 0 0 0 8-8h-3.75c-.943 0-1.414 0-1.707.293c-.293.293-.293.764-.293 1.707a2.25 2.25 0 0 1-4.5 0c0-.943 0-1.414-.293-1.707c-.293-.293-.764-.293-1.707-.293h-3.75a8 8 0 0 0 8 8"})]}),Xo=({...o})=>jsxs(c,{sx:{width:20,height:20,...o.sx},...o,children:[jsx("path",{fill:"currentColor",d:"M9.75 12a2.25 2.25 0 1 1 4.5 0a2.25 2.25 0 0 1-4.5 0"}),jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 12c0 1.64.425 2.191 1.275 3.296C4.972 17.5 7.818 20 12 20c4.182 0 7.028-2.5 8.725-4.704C21.575 14.192 22 13.639 22 12c0-1.64-.425-2.191-1.275-3.296C19.028 6.5 16.182 4 12 4C7.818 4 4.972 6.5 3.275 8.704C2.425 9.81 2 10.361 2 12m10-3.75a3.75 3.75 0 1 0 0 7.5a3.75 3.75 0 0 0 0-7.5",clipRule:"evenodd"})]}),Ze=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.606 6.08a1 1 0 0 1 1.313.526L2 7l.92-.394v-.001c0-.001 0 0 0 0l.003.009l.021.045c.02.042.051.108.094.194c.086.172.219.424.4.729a13.37 13.37 0 0 0 1.67 2.237a11.966 11.966 0 0 0 .59.592C7.18 11.8 9.251 13 12 13a8.706 8.706 0 0 0 3.22-.602c1.227-.483 2.254-1.21 3.096-1.998a13.053 13.053 0 0 0 2.733-3.725l.027-.058l.005-.011a1 1 0 0 1 1.838.788L22 7l.92.394l-.003.005l-.004.008l-.011.026l-.04.087a14.045 14.045 0 0 1-.741 1.348a15.368 15.368 0 0 1-1.711 2.256l.797.797a1 1 0 0 1-1.414 1.415l-.84-.84a11.81 11.81 0 0 1-1.897 1.256l.782 1.202a1 1 0 1 1-1.676 1.091l-.986-1.514c-.679.208-1.404.355-2.176.424V16.5a1 1 0 0 1-2 0v-1.544c-.775-.07-1.5-.217-2.177-.425l-.985 1.514a1 1 0 0 1-1.676-1.09l.782-1.203c-.7-.37-1.332-.8-1.897-1.257l-.84.84a1 1 0 0 1-1.414-1.414l.797-.797a15.406 15.406 0 0 1-1.87-2.519a13.457 13.457 0 0 1-.591-1.107a5.418 5.418 0 0 1-.033-.072l-.01-.021l-.002-.007l-.001-.002v-.001C1.08 7.395 1.08 7.394 2 7l-.919.395a1 1 0 0 1 .525-1.314",clipRule:"evenodd"})}),Ne=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",d:"m20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8a7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42M5 11a6 6 0 1 1 6 6a6 6 0 0 1-6-6"})}),Yo=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",d:"m13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29l-4.3 4.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l4.29-4.3l4.29 4.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42Z"})}),_e=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsxs("g",{fill:"none",children:[jsx("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),jsx("path",{fill:"currentColor",d:"M5 10a2 2 0 1 1 0 4a2 2 0 0 1 0-4m7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4m7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4"})]})}),Ue=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",d:"M4 15.5q-.425 0-.712-.288T3 14.5V14q0-.425.288-.712T4 13h16q.425 0 .713.288T21 14v.5q0 .425-.288.713T20 15.5zM4 11q-.425 0-.712-.288T3 10v-.5q0-.425.288-.712T4 8.5h16q.425 0 .713.288T21 9.5v.5q0 .425-.288.713T20 11zm0-4.5q-.425 0-.712-.288T3 5.5V5q0-.425.288-.712T4 4h16q.425 0 .713.288T21 5v.5q0 .425-.288.713T20 6.5zM4 20q-.425 0-.712-.288T3 19v-.5q0-.425.288-.712T4 17.5h16q.425 0 .713.288T21 18.5v.5q0 .425-.288.713T20 20z"})}),je=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsxs("g",{fill:"none",fillRule:"evenodd",children:[jsx("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),jsx("path",{fill:"currentColor",d:"M5 3a2 2 0 0 0-2 2v6h18V5a2 2 0 0 0-2-2zm16 10H3v6a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"})]})}),Xe=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsxs("g",{fill:"none",children:[jsx("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),jsx("path",{fill:"currentColor",d:"M21 16v3a2 2 0 0 1-1.85 1.995L19 21H5a2 2 0 0 1-1.995-1.85L3 19v-3zm0-6v4H3v-4zm-2-7a2 2 0 0 1 2 2v3H3V5a2 2 0 0 1 2-2z"})]})});var Ko=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M12 15.5a1 1 0 0 1-.71-.29l-4-4a1 1 0 1 1 1.42-1.42L12 13.1l3.3-3.18a1 1 0 1 1 1.38 1.44l-4 3.86a1 1 0 0 1-.68.28"})}),Ke=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M13.83 19a1 1 0 0 1-.78-.37l-4.83-6a1 1 0 0 1 0-1.27l5-6a1 1 0 0 1 1.54 1.28L10.29 12l4.32 5.36a1 1 0 0 1-.78 1.64"})}),Qo=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M10 19a1 1 0 0 1-.64-.23a1 1 0 0 1-.13-1.41L13.71 12L9.39 6.63a1 1 0 0 1 .15-1.41a1 1 0 0 1 1.46.15l4.83 6a1 1 0 0 1 0 1.27l-5 6A1 1 0 0 1 10 19"})}),Qe=o=>jsxs(c,{...o,children:[jsx("path",{fill:"currentColor",d:"M6.96 2c.418 0 .756.31.756.692V4.09c.67-.012 1.422-.012 2.268-.012h4.032c.846 0 1.597 0 2.268.012V2.692c0-.382.338-.692.756-.692s.756.31.756.692V4.15c1.45.106 2.403.368 3.103 1.008c.7.641.985 1.513 1.101 2.842v1H2V8c.116-1.329.401-2.2 1.101-2.842c.7-.64 1.652-.902 3.103-1.008V2.692c0-.382.339-.692.756-.692"}),jsx("path",{fill:"currentColor",d:"M22 14v-2c0-.839-.013-2.335-.026-3H2.006c-.013.665 0 2.161 0 3v2c0 3.771 0 5.657 1.17 6.828C4.349 22 6.234 22 10.004 22h4c3.77 0 5.654 0 6.826-1.172C22 19.657 22 17.771 22 14",opacity:"0.5"}),jsx("path",{fill:"currentColor",d:"M18 16.5a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0"})]}),ot=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.75a9.25 9.25 0 1 0 0 18.5a9.25 9.25 0 0 0 0-18.5M1.25 12C1.25 6.063 6.063 1.25 12 1.25S22.75 6.063 22.75 12S17.937 22.75 12 22.75S1.25 17.937 1.25 12M12 7.25a.75.75 0 0 1 .75.75v3.69l2.28 2.28a.75.75 0 1 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1-.22-.53V8a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})}),u={date:{openPickerIcon:Qe,leftArrowIcon:Ke,rightArrowIcon:Qo,switchViewIcon:Ko},time:{openPickerIcon:ot,rightArrowIcon:Qo,switchViewIcon:Ko}},rt={defaultProps:{slots:u.date}},et={defaultProps:{slots:u.date}},tt={defaultProps:{slots:u.date}},at={defaultProps:{slots:u.date}},nt={defaultProps:{slots:u.date}},lt={defaultProps:{slots:u.date}},it={defaultProps:{slots:u.date}},st={defaultProps:{slots:u.time}},pt={defaultProps:{slots:u.time}},dt={defaultProps:{slots:u.time}},ct={defaultProps:{slots:u.time}},mt={styleOverrides:{root:({theme:o})=>({[`& .${dialogActionsClasses.root}`]:{[`& .${buttonClasses.root}`]:{["&:last-of-type"]:{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.text.primary,[a.dark]:{color:o.vars.palette.grey[800]}}}}})}},ut={styleOverrides:{paper:({theme:o})=>({boxShadow:o.customShadows.dropdown,borderRadius:o.shape.borderRadius*1.5})}},or={MuiPickersPopper:ut,MuiPickersLayout:mt,MuiDatePicker:rt,MuiDateTimePicker:et,MuiStaticDatePicker:tt,MuiDesktopDatePicker:at,MuiDesktopDateTimePicker:nt,MuiMobileDatePicker:lt,MuiMobileDateTimePicker:it,MuiTimePicker:st,MuiMobileTimePicker:pt,MuiStaticTimePicker:dt,MuiDesktopTimePicker:ct};var Ct={styleOverrides:{label:({theme:o})=>({...o.typography.body2}),iconContainer:{width:"auto"}}},rr={MuiTreeItem:Ct};var vt=["primary","secondary","info","success","warning","error"],er={colors:vt.map(o=>({props:({ownerState:r})=>!r.disabled&&r.variant==="soft"&&r.color===o,style:({theme:r})=>({[`& .${paginationItemClasses.root}`]:{[`&.${paginationItemClasses.selected}`]:{fontWeight:r.typography.fontWeightSemiBold,color:r.vars.palette[o].dark,backgroundColor:i$1(r.vars.palette[o].mainChannel,.08),"&:hover":{backgroundColor:i$1(r.vars.palette[o].mainChannel,.16)},[a.dark]:{color:r.vars.palette[o].light}}}})})),standardColor:[{props:({ownerState:o})=>o.variant==="soft"&&o.color==="standard",style:({theme:o})=>({[`& .${paginationItemClasses.root}`]:{[`&.${paginationItemClasses.selected}`]:{fontWeight:o.typography.fontWeightSemiBold,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.08),"&:hover":{backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16)}}}})}]},ht={variants:[...er.standardColor,...er.colors],styleOverrides:{text:({ownerState:o,theme:r})=>({[`& .${paginationItemClasses.root}`]:{[`&.${paginationItemClasses.selected}`]:{fontWeight:r.typography.fontWeightSemiBold,...o.color==="standard"&&{color:r.vars.palette.common.white,backgroundColor:r.vars.palette.text.primary,"&:hover":{backgroundColor:r.vars.palette.grey[700]},[a.dark]:{color:r.vars.palette.grey[800],"&:hover":{backgroundColor:r.vars.palette.grey[100]}}}}}}),outlined:({ownerState:o,theme:r})=>({[`& .${paginationItemClasses.root}`]:{borderColor:i$1(r.vars.palette.grey["500Channel"],.24),[`&.${paginationItemClasses.selected}`]:{borderColor:"currentColor",fontWeight:r.typography.fontWeightSemiBold,...o.color==="standard"&&{backgroundColor:i$1(r.vars.palette.grey["500Channel"],.08)}}}})}},tr={MuiPagination:ht};var yt={defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},outlined:({theme:o})=>({borderColor:i$1(o.vars.palette.grey["500Channel"],.16)})}},ar={MuiPaper:yt};var ft={styleOverrides:{paper:({theme:o})=>({...q$1({theme:o,dropdown:!0}),[`& .${listClasses.root}`]:{paddingTop:0,paddingBottom:0}})}},nr={MuiPopover:ft};var xt=["primary","secondary","info","success","warning","error"];function kt(o,r){return xt.reduce((a,s)=>(o.color===s&&(a=r(s)),a),{})}var Mt={styleOverrides:{root:({theme:o,ownerState:r})=>{let t={colors:kt(r,a=>({backgroundColor:i$1(o.vars.palette[a].mainChannel,.24)})),inheritColor:{...r.color==="inherit"&&{"&::before":{display:"none"},backgroundColor:i$1(o.vars.palette.text.primaryChannel,.24)}}};return {borderRadius:4,...r.variant!=="buffer"&&{...t.inheritColor,...t.colors}}},bar:{borderRadius:"inherit"}}},lr={MuiLinearProgress:Mt};var Tt=o=>jsx(c,{...o,children:jsx("path",{d:"M12 2C13.9778 2 15.9112 2.58649 17.5557 3.6853C19.2002 4.78412 20.4819 6.3459 21.2388 8.17317C21.9957 10.0004 22.1937 12.0111 21.8079 13.9509C21.422 15.8907 20.4696 17.6725 19.0711 19.0711C17.6725 20.4696 15.8907 21.422 13.9509 21.8079C12.0111 22.1937 10.0004 21.9957 8.17317 21.2388C6.3459 20.4819 4.78412 19.2002 3.6853 17.5557C2.58649 15.9112 2 13.9778 2 12C2 6.477 6.477 2 12 2ZM12 3.5C9.74566 3.5 7.58365 4.39553 5.98959 5.98959C4.39553 7.58365 3.5 9.74566 3.5 12C3.5 14.2543 4.39553 16.4163 5.98959 18.0104C7.58365 19.6045 9.74566 20.5 12 20.5C14.2543 20.5 16.4163 19.6045 18.0104 18.0104C19.6045 16.4163 20.5 14.2543 20.5 12C20.5 9.74566 19.6045 7.58365 18.0104 5.98959C16.4163 4.39553 14.2543 3.5 12 3.5Z",fill:"currentColor"})}),St=o=>jsx(c,{...o,children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12C2 17.523 6.477 22 12 22C17.523 22 22 17.523 22 12C22 6.477 17.523 2 12 2ZM12 8C10.9391 8 9.92172 8.42143 9.17157 9.17157C8.42143 9.92172 8 10.9391 8 12C8 13.0609 8.42143 14.0783 9.17157 14.8284C9.92172 15.5786 10.9391 16 12 16C13.0609 16 14.0783 15.5786 14.8284 14.8284C15.5786 14.0783 16 13.0609 16 12C16 10.9391 15.5786 9.92172 14.8284 9.17157C14.0783 8.42143 13.0609 8 12 8Z",fill:"currentColor"})}),It={defaultProps:{size:"small",icon:jsx(Tt,{}),checkedIcon:jsx(St,{})},styleOverrides:{root:({ownerState:o,theme:r})=>({padding:r.spacing(1),...o.color==="default"&&{[`&.${radioClasses.checked}`]:{color:r.vars.palette.text.primary}},[`&.${radioClasses.disabled}`]:{color:r.vars.palette.action.disabled}})}},pr={MuiRadio:It};var dr=o=>jsx(c,{...o,children:jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})}),Ot={defaultProps:{emptyIcon:jsx(dr,{}),icon:jsx(dr,{})},styleOverrides:{root:{[`&.${ratingClasses.disabled}`]:{opacity:.48}},iconEmpty:({theme:o})=>({color:i$1(o.vars.palette.grey["500Channel"],.48)}),sizeSmall:{[`& .${svgIconClasses.root}`]:{width:20,height:20}},sizeMedium:{[`& .${svgIconClasses.root}`]:{width:24,height:24}},sizeLarge:{[`& .${svgIconClasses.root}`]:{width:28,height:28}}}},cr={MuiRating:Ot};var ur=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M12 16a1 1 0 0 1-.64-.23l-6-5a1 1 0 1 1 1.28-1.54L12 13.71l5.36-4.32a1 1 0 0 1 1.41.15a1 1 0 0 1-.14 1.46l-6 4.83A1 1 0 0 1 12 16"})}),Ft={defaultProps:{IconComponent:ur},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}},Rt={defaultProps:{IconComponent:ur},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}},gr={MuiSelect:Ft,MuiNativeSelect:Rt};var Bt={defaultProps:{animation:"wave",variant:"rounded"},styleOverrides:{root:({theme:o})=>({backgroundColor:i$1(o.vars.palette.grey["400Channel"],.12)}),rounded:({theme:o})=>({borderRadius:o.shape.borderRadius*2})}},Cr={MuiSkeleton:Bt};var v={rail:{small:6,medium:10},thumb:{small:16,medium:20},mark:{small:4,medium:6}},Lt={defaultProps:{size:"small"},variants:[{props:({ownerState:o})=>o.color==="inherit",style:({theme:o})=>({[`& .${sliderClasses.markActive}`]:{[a.dark]:{backgroundColor:i$1(o.vars.palette.grey["800Channel"],.48)}}})},{props:({ownerState:o})=>!!o.disabled,style:({theme:o})=>({[`&.${sliderClasses.disabled}`]:{color:i$1(o.vars.palette.grey["500Channel"],o.vars.palette.action.disabledOpacity)}})}],styleOverrides:{root:({theme:o})=>({[`& .${sliderClasses.thumb}`]:{borderWidth:1,borderStyle:"solid",width:v.thumb.medium,height:v.thumb.medium,boxShadow:o.customShadows.z1,color:o.vars.palette.common.white,borderColor:i$1(o.vars.palette.grey["500Channel"],.08),"&::before":{opacity:.4,boxShadow:"none",width:"calc(100% - 4px)",height:"calc(100% - 4px)",backgroundImage:`linear-gradient(180deg, ${o.vars.palette.grey[500]} 0%, ${i$1(o.vars.palette.grey["500Channel"],0)} 100%)`,[a.dark]:{opacity:.8}}}}),rail:({theme:o})=>({opacity:.12,height:v.rail.medium,backgroundColor:o.vars.palette.grey[500]}),track:{height:v.rail.medium},mark:({theme:o})=>({width:1,height:v.mark.medium,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.48),'&[data-index="0"]':{display:"none"}}),markActive:({theme:o})=>({backgroundColor:i$1(o.vars.palette.common.whiteChannel,.64)}),markLabel:({theme:o})=>({fontSize:o.typography.pxToRem(13),color:o.vars.palette.text.disabled}),valueLabel:({theme:o})=>({borderRadius:8,backgroundColor:o.vars.palette.grey[800],[a.dark]:{backgroundColor:o.vars.palette.grey[700]}}),sizeSmall:{[`& .${sliderClasses.thumb}`]:{width:v.thumb.small,height:v.thumb.small},[`& .${sliderClasses.rail}`]:{height:v.rail.small},[`& .${sliderClasses.track}`]:{height:v.rail.small},[`& .${sliderClasses.mark}`]:{height:v.mark.small}}}},vr={MuiSlider:Lt};var At={defaultProps:{useFlexGap:!0},styleOverrides:{}},hr={MuiStack:At};var Dt={styleOverrides:{line:({theme:o})=>({borderColor:o.vars.palette.divider})}},yr={MuiStepConnector:Dt};var zt={styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}},br={MuiSvgIcon:zt};var Vt={styleOverrides:{root:{alignItems:"center"},switchBase:({ownerState:o,theme:r})=>({top:"unset",transform:"translateX(6px)",[`&.${switchClasses.checked}`]:{[`& .${switchClasses.thumb}`]:{...o.color==="default"&&{[a.dark]:{color:r.vars.palette.grey[800]}}},[`&+.${switchClasses.track}`]:{opacity:1,...o.color==="default"&&{backgroundColor:r.vars.palette.text.primary}}},[`&.${switchClasses.disabled}`]:{[`& .${switchClasses.thumb}`]:{opacity:1,[a.dark]:{opacity:.48}},[`&+.${switchClasses.track}`]:{opacity:.48}}}),track:({theme:o})=>({opacity:1,borderRadius:10,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.48)}),thumb:({theme:o})=>({color:o.vars.palette.common.white}),sizeMedium:{[`& .${switchClasses.track}`]:{height:20},[`& .${switchClasses.thumb}`]:{width:14,height:14}},sizeSmall:{[`& .${switchClasses.track}`]:{height:16},[`& .${switchClasses.thumb}`]:{width:10,height:10}}}},fr={MuiSwitch:Vt};var Et={styleOverrides:{root:({theme:o})=>({position:"relative",scrollbarWidth:"thin",scrollbarColor:`${i$1(o.vars.palette.text.disabledChannel,.4)} ${i$1(o.vars.palette.text.disabledChannel,.08)}`})}},Ht={styleOverrides:{root:({theme:o})=>({"--palette-TableCell-border":o.vars.palette.divider})}},qt={styleOverrides:{root:({theme:o})=>({[`&.${tableRowClasses.selected}`]:{backgroundColor:i$1(o.vars.palette.primary.darkChannel,.04),"&:hover":{backgroundColor:i$1(o.vars.palette.primary.darkChannel,.08)}},"&:last-of-type":{[`& .${tableCellClasses.root}`]:{borderColor:"transparent"}}})}},Zt={styleOverrides:{root:{borderBottomStyle:"dashed"},head:({theme:o})=>({fontSize:14,color:o.vars.palette.text.secondary,fontWeight:o.typography.fontWeightSemiBold,backgroundColor:o.vars.palette.background.neutral}),stickyHeader:({theme:o})=>({backgroundColor:o.vars.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${o.vars.palette.background.neutral} 0%, ${o.vars.palette.background.neutral} 100%)`}),paddingCheckbox:({theme:o})=>({paddingLeft:o.spacing(1)})}},Nt={defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"},slotProps:{select:{name:"table-pagination-select"}}},styleOverrides:{root:{width:"100%"},toolbar:{height:64},actions:{marginRight:8},select:({theme:o})=>({paddingLeft:8,"&:focus":{borderRadius:o.shape.borderRadius}}),selectIcon:{right:4,width:16,height:16,top:"calc(50% - 8px)"}}},xr={MuiTable:Ht,MuiTableRow:qt,MuiTableCell:Zt,MuiTableContainer:Et,MuiTablePagination:Nt};var Ut={defaultProps:{textColor:"inherit",variant:"scrollable",allowScrollButtonsMobile:!0},styleOverrides:{flexContainer:({ownerState:o,theme:r})=>({...o.variant!=="fullWidth"&&{gap:"24px",[r.breakpoints.up("sm")]:{gap:"40px"}}})}},jt={defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({theme:o})=>({opacity:1,minWidth:48,minHeight:48,padding:o.spacing(1,0),color:o.vars.palette.text.secondary,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body2.lineHeight,[`&.${tabClasses.selected}`]:{color:o.vars.palette.text.primary,fontWeight:o.typography.fontWeightSemiBold}})}},kr={MuiTabs:Ut,MuiTab:jt};var Jt={styleOverrides:{root:({theme:o})=>({[`&.${inputBaseClasses.disabled}`]:{"& svg":{color:o.vars.palette.text.disabled}}}),input:({theme:o,size:r})=>({fontSize:o.typography.pxToRem(15),[o.breakpoints.down("sm")]:{fontSize:o.typography.pxToRem(16)},"&::placeholder":{opacity:1,color:o.vars.palette.text.disabled},...r==="small"&&{padding:"9.5px 14px"}})}},Kt={styleOverrides:{underline:({theme:o})=>({"&::before":{borderBottomColor:i$1(o.vars.palette.grey["500Channel"],.32)},"&::after":{borderBottomColor:o.vars.palette.text.primary}})}},Qt={styleOverrides:{root:({theme:o})=>({backgroundColor:"#ffffff",[`&.${outlinedInputClasses.focused}`]:{[`& .${outlinedInputClasses.notchedOutline}`]:{borderColor:o.vars.palette.text.primary}},[`&.${outlinedInputClasses.error}`]:{[`& .${outlinedInputClasses.notchedOutline}`]:{borderColor:o.vars.palette.error.main}},[`&.${outlinedInputClasses.disabled}`]:{[`& .${outlinedInputClasses.notchedOutline}`]:{borderColor:o.vars.palette.action.disabledBackground,backgroundColor:alpha(o.palette.grey[500],.075)}}}),notchedOutline:({theme:o})=>({borderColor:i$1(o.vars.palette.grey["500Channel"],.2),transition:o.transitions.create(["border-color"],{duration:o.transitions.duration.shortest})})}},oa={defaultProps:{disableUnderline:!0},styleOverrides:{root:({theme:o})=>({borderRadius:o.shape.borderRadius,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.08),"&:hover":{backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16)},[`&.${filledInputClasses.focused}`]:{backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16)},[`&.${filledInputClasses.error}`]:{backgroundColor:i$1(o.vars.palette.error.mainChannel,.08),[`&.${filledInputClasses.focused}`]:{backgroundColor:i$1(o.vars.palette.error.mainChannel,.16)}},[`&.${filledInputClasses.disabled}`]:{backgroundColor:o.vars.palette.action.disabledBackground}})}},Mr={MuiInput:Kt,MuiInputBase:Jt,MuiFilledInput:oa,MuiOutlinedInput:Qt};var ra={styleOverrides:{root:{boxShadow:"none"}}},ea={styleOverrides:{root:({theme:o})=>({backgroundColor:o.vars.palette.divider})}},Tr={MuiTimelineDot:ra,MuiTimelineConnector:ea};var ta={styleOverrides:{tooltip:({theme:o})=>({backgroundColor:o.vars.palette.grey[800],[a.dark]:{backgroundColor:o.vars.palette.grey[700]}}),arrow:({theme:o})=>({color:o.vars.palette.grey[800],[a.dark]:{color:o.vars.palette.grey[700]}}),popper:{[`&.${tooltipClasses.popper}[data-popper-placement*="bottom"] .${tooltipClasses.tooltip}`]:{marginTop:12},[`&.${tooltipClasses.popper}[data-popper-placement*="top"] .${tooltipClasses.tooltip}`]:{marginBottom:12},[`&.${tooltipClasses.popper}[data-popper-placement*="right"] .${tooltipClasses.tooltip}`]:{marginLeft:12},[`&.${tooltipClasses.popper}[data-popper-placement*="left"] .${tooltipClasses.tooltip}`]:{marginRight:12}}}},Sr={MuiTooltip:ta};var aa={styleOverrides:{paragraph:({theme:o})=>({marginBottom:o.spacing(2)}),gutterBottom:({theme:o})=>({marginBottom:o.spacing(1)})}},Ir={MuiTypography:aa};var vi={...$o,...Lo,...qo,...Ho,...kr,...Go,...No,...Zo,...hr,...ar,...xr,...lo,...go,...pr,...Wo,...io,...mo,...Eo,...vr,...cr,...gr,...fo,...yr,...Sr,...nr,...br,...Cr,...Tr,...uo,...lr,...fr,...Do,...rr,...Jo,...ao,...Mr,...Ir,...tr,...or,...Co,...Ro,...po,...Bo};var b={primary:{lighter:"#C8FAD6",light:"#5BE49B",main:"#00A76F",dark:"#007867",darker:"#004B50",contrastText:"#FFFFFF"},secondary:{lighter:"#EFD6FF",light:"#C684FF",main:"#8E33FF",dark:"#5119B7",darker:"#27097A",contrastText:"#FFFFFF"},info:{lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#FFFFFF"},success:{lighter:"#D3FCD2",light:"#77ED8B",main:"#22C55E",dark:"#118D57",darker:"#065E49",contrastText:"#ffffff"},warning:{lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:"#1C252E"},error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#FFFFFF"},grey:{"50":"#FCFDFD","100":"#F9FAFB","200":"#F4F6F8","300":"#DFE3E8","400":"#C4CDD5","500":"#919EAB","600":"#637381","700":"#454F5B","800":"#1C252E","900":"#141A21"},common:{black:"#000000",white:"#FFFFFF"}};var i=h(b.grey),la=h(b.primary),Y=h(b.secondary),J=h(b.info),K=h(b.success),Q=h(b.warning),oo=h(b.error),W=h(b.common),$r={light:h({primary:i[800],secondary:i[600],disabled:i[500]}),dark:h({primary:"#FFFFFF",secondary:i[500],disabled:i[600]})},Or={light:h({paper:"#FFFFFF",default:"#FFFFFF",neutral:i[200]}),dark:h({paper:i[800],default:i[900],neutral:"#28323D"})},Pr={hover:i$1(i["500Channel"],.08),selected:i$1(i["500Channel"],.16),focus:i$1(i["500Channel"],.24),disabled:i$1(i["500Channel"],.8),disabledBackground:i$1(i["500Channel"],.24),hoverOpacity:.08,disabledOpacity:.48},ro={light:{...Pr,active:i[600]},dark:{...Pr,active:i[500]}},wr={primary:la,secondary:Y,info:J,success:K,warning:Q,error:oo,grey:i,common:W,divider:i$1(i["500Channel"],.2),action:ro},ia={...wr,text:$r.light,background:Or.light,action:ro.light},sa={...wr,text:$r.dark,background:Or.dark,action:ro.dark},xi={light:{palette:ia},dark:{palette:sa}};function O(o){return `0 8px 16px 0 ${i$1(o,.24)}`}function Si(o,r){let t=o==="light"?i["500Channel"]:W.blackChannel;return {z1:`0 1px 2px 0 ${i$1(t,.16)}`,z4:`0 4px 8px 0 ${i$1(t,.16)}`,z8:`0 8px 16px 0 ${i$1(t,.16)}`,z12:`0 12px 24px -4px ${i$1(t,.16)}`,z16:`0 16px 32px -4px ${i$1(t,.16)}`,z20:`0 20px 40px -4px ${i$1(t,.16)}`,z24:`0 24px 48px 0 ${i$1(t,.16)}`,dialog:`-40px 40px 80px -8px ${i$1(W.blackChannel,.24)}`,card:`0 0 2px 0 ${i$1(t,.2)}, 0 12px 24px -4px ${i$1(t,.12)}`,dropdown:`0 0 2px 0 ${i$1(t,.24)}, -20px 20px 40px -4px ${i$1(t,.24)}`,primary:O(g(r)),secondary:O(Y.mainChannel),info:O(J.mainChannel),success:O(K.mainChannel),warning:O(Q.mainChannel),error:O(oo.mainChannel)}}
42
+
43
+ export { vi as a, i as b, la as c, Y as d, J as e, K as f, Q as g, oo as h, W as i, $r as j, Or as k, Pr as l, ro as m, wr as n, ia as o, sa as p, xi as q, O as r, Si as s };
@@ -1,8 +1,8 @@
1
- import { a } from '../../chunk-COWMZKQG.js';
2
- import '../../chunk-GOC7PC2S.js';
3
- import '../../chunk-MCT77MRN.js';
1
+ import { a } from '../../chunk-RCRI7KCH.js';
2
+ import '../../chunk-JKQRVJQX.js';
3
+ import '../../chunk-HN2NS2GZ.js';
4
4
  import '../../chunk-CFVUZ4S5.js';
5
- import '../../chunk-CFYNJQGN.js';
5
+ import '../../chunk-VULBXTS2.js';
6
6
  import '../../chunk-GUFT6XPG.js';
7
7
  import { i } from '../../chunk-D27ND54J.js';
8
8
  import { a as a$1 } from '../../chunk-YQ6K2DEP.js';
@@ -58,8 +58,8 @@ interface UseDropzoneUploaderReturn {
58
58
  declare const useDropzoneUploader: ({ filesToUpload, onFileSelect, onFilesSelect, onRemove, dropzoneOptions, enableCrop, customAspectRatio, convertToWebp, maxFiles, cropSize, }: UseDropzoneUploaderProps) => UseDropzoneUploaderReturn;
59
59
 
60
60
  declare const useFileUploadService: ({ createFilesMutation, queryFiles, fileIds, files, file, skip, }: FileUploadProps) => {
61
- filesPreview: File[] | ExtendFile[] | undefined;
62
- filePreview: File | ExtendFile | undefined;
61
+ filesPreview: ExtendFile[] | undefined;
62
+ filePreview: ExtendFile | undefined;
63
63
  uploadFiles: (files: File[]) => Promise<string[] | undefined>;
64
64
  isUploadingFiles: boolean;
65
65
  isLoadingPreview: boolean;
@@ -16,22 +16,22 @@ import '../../chunk-ILHUUK4X.js';
16
16
  import { a as a$1 } from '../../chunk-S7QQBC4I.js';
17
17
  import { a as a$8 } from '../../chunk-ONZBWH3C.js';
18
18
  import { memo, forwardRef, useState, useLayoutEffect, useMemo, useCallback, useRef, useEffect } from 'react';
19
- import Lo from '@mui/material/FormHelperText';
19
+ import Mo from '@mui/material/FormHelperText';
20
20
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
21
21
  import { useSensors, useSensor, PointerSensor, KeyboardSensor, DndContext, closestCenter } from '@dnd-kit/core';
22
22
  import { restrictToHorizontalAxis, restrictToParentElement, restrictToWindowEdges } from '@dnd-kit/modifiers';
23
23
  import { useSortable, sortableKeyboardCoordinates, SortableContext, horizontalListSortingStrategy } from '@dnd-kit/sortable';
24
24
  import { m, AnimatePresence } from 'framer-motion';
25
- import ie from '@mui/material/Stack';
26
- import Be from '@mui/material/Typography';
27
- import ge from '@mui/material/Box';
28
- import zo from '@mui/material/IconButton';
29
- import No from '@mui/material/Paper';
25
+ import ae from '@mui/material/Stack';
26
+ import Ge from '@mui/material/Typography';
27
+ import xe from '@mui/material/Box';
28
+ import Uo from '@mui/material/IconButton';
29
+ import ko from '@mui/material/Paper';
30
30
  import { styled, alpha } from '@mui/material/styles';
31
- import To from '@mui/material/Badge';
31
+ import Bo from '@mui/material/Badge';
32
32
  import { useDropzone } from 'react-dropzone';
33
- import tt from '@mui/material/CircularProgress';
33
+ import at from '@mui/material/CircularProgress';
34
34
 
35
- var Mo=({helperText:e,disabled:t,isError:r})=>e?jsx(Lo,{error:r,sx:a=>({mx:"14px",color:t?a.palette.grey[500]:void 0}),children:e}):null,T=memo(Mo);var we=styled(ie)({position:"relative",width:"100%",borderRadius:8,overflow:"hidden","&:hover .actions":{display:"flex"}}),De=styled(ie)({position:"absolute",top:4,right:4,gap:.5,"& svg":{width:16,height:16}}),Ve=styled(ge,{shouldForwardProp:e=>!["isDragActive","isError","disabled"].includes(e)})(({theme:e,isDragActive:t,isError:r,disabled:a})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${alpha(e.palette.grey[500],.32)}`,...t&&{opacity:.72},...r&&{color:e.palette.error.main,backgroundColor:e.palette.error.lighter,borderColor:e.palette.error.light},...a&&{opacity:.48,pointerEvents:"none"},"&:hover":{opacity:.72}}));styled(ie)(({theme:e})=>({display:"none",position:"absolute",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:12,width:"100%",height:"100%",backgroundColor:alpha(e.palette.primary.main,.9),zIndex:999,button:{"&, &:hover, &:focus":{backgroundColor:"#fff"}}}));var Ke=styled(zo)(({theme:e})=>({position:"relative",zIndex:999,pointerEvents:"auto",color:e.palette.grey[700],backgroundColor:e.palette.grey[100],"&:hover":{color:e.palette.grey[900],backgroundColor:e.palette.grey[300]}})),Ce=styled("div")({position:"relative",zIndex:1,"&:hover":{zIndex:2}}),Je=styled(ie,{shouldForwardProp:e=>!["isDragging"].includes(e)})(({theme:e,width:t,isDragging:r})=>({width:t,height:100,alignItems:"center",display:"inline-flex",justifyContent:"center",margin:e.spacing(.5),padding:e.spacing(2,1,2,1),gap:e.spacing(1),borderRadius:e.spacing(1.25),overflow:"hidden",position:"relative",border:`solid 1px ${e.palette.divider}`,backgroundColor:e.palette.common.white,zIndex:1,transition:"box-shadow 150ms ease-in-out",boxShadow:r?`0 0 0 2px ${e.palette.primary.main}, ${e.customShadows.z8}, inset 0 0 0 1000px ${alpha(e.palette.primary.main,.06)}`:"0px 0px 0px 0px rgba(0, 0, 0, 0)"})),Qe=styled(m.div)(({theme:e,width:t,isDragging:r})=>({width:t,height:60,alignItems:"center",display:"inline-flex",justifyContent:"center",margin:e.spacing(.5),padding:e.spacing(2),borderRadius:e.spacing(1.25),overflow:"hidden",position:"relative",border:`solid 1px ${e.palette.divider}`,backgroundColor:e.palette.common.white,zIndex:1,transition:"box-shadow 150ms ease-in-out",boxShadow:r?`0 0 0 2px ${e.palette.primary.main}, ${e.customShadows.z8}, inset 0 0 0 1000px ${alpha(e.palette.primary.main,.06)}`:"0px 0px 0px 0px rgba(0, 0, 0, 0)"})),Ye=styled(a)(({theme:e})=>({top:16,right:16,zIndex:9,position:"absolute",color:e.palette.common.white,backgroundColor:alpha(e.palette.grey[900],.72),"&:hover":{backgroundColor:alpha(e.palette.grey[900],.48)}})),eo=styled(ge,{shouldForwardProp:e=>e!=="isDragActive"&&e!=="disabled"&&e!=="hasError"})(({theme:e,isDragActive:t,disabled:r,hasError:a})=>({width:64,height:64,flexShrink:0,display:"flex",borderRadius:1,cursor:"pointer",alignItems:"center",color:e.palette.text.disabled,justifyContent:"center",backgroundColor:alpha(e.palette.grey[500],.08),border:`dashed 1px ${alpha(e.palette.grey[500],.16)}`,...t&&{opacity:.72},...r&&{opacity:.48,pointerEvents:"none"},...a&&{color:e.palette.error.main,borderColor:e.palette.error.main,backgroundColor:alpha(e.palette.error.main,.08)},"&:hover":{opacity:.72}})),oo=styled(ge)(({theme:e})=>({padding:e.spacing(1),top:0,left:0,width:"100%",height:"100%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",transition:"all 0.3s ease-in-out",filter:"blur(0)","&:hover":{filter:"blur(3px)"}})),ro=styled("img",{shouldForwardProp:e=>e!=="aspectRatio"&&e!=="isLoading"&&e!=="isUploading"&&e!=="maxWidth"&&e!=="maxHeight"})(({theme:e,aspectRatio:t,height:r=1,width:a=1,maxWidth:i,maxHeight:p,isLoading:s,isUploading:m})=>({borderRadius:e.shape.borderRadius,objectFit:"cover",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)",filter:"blur(0)",zIndex:1,aspectRatio:t,maxWidth:i,maxHeight:p,backgroundColor:e.palette.background.paper,height:r>=a?"100%":`calc(100% * ${t})`,width:r>a?`calc(${t} * 100%)`:"100%",transition:"all 0.5s ease-in-out",...s||m?{opacity:0,filter:"blur(1.5rem)",transform:"translate(-50%, -50%) scale(0.7)"}:{},"&:hover":{transition:"all 0.2s ease-in-out"}})),to=styled("img",{shouldForwardProp:e=>e!=="isLoading"&&e!=="isUploading"})(({isLoading:e,isUploading:t})=>({width:"100%",height:"100%",objectFit:"cover",top:0,left:0,filter:"blur(1.5rem)",transform:"scale(1.1)",position:"absolute",zIndex:0,transition:"opacity 0.3s ease-in-out",...e&&{opacity:0},...t&&{opacity:.7,filter:"blur(2rem)"}})),io=styled(ie)({width:"100%",height:"100%",position:"relative",overflow:"hidden",borderRadius:"50%",justifyContent:"center",alignItems:"center"});styled(No)(({theme:e})=>({py:1,px:2,mt:3,textAlign:"left",borderStyle:"dashed",borderColor:"error.main",backgroundColor:alpha(e.palette.error.main,.08)}));var ze=styled(ge,{shouldForwardProp:e=>e!=="isError"&&e!=="hasFile"})(({theme:e,isError:t,hasFile:r})=>({top:0,gap:e.spacing(1),left:0,width:"100%",height:"100%",zIndex:9,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",color:e.palette.text.disabled,flexDirection:"column",justifyContent:"center",backgroundColor:alpha(e.palette.grey[500],.08),transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter}),"&:hover":{opacity:.92},...t&&{color:e.palette.error.main},...r&&{zIndex:9,opacity:0,color:e.palette.common.white,backgroundColor:alpha(e.palette.common.black,.54)}})),ao=styled(ie)({top:0,left:0,right:0,bottom:0,position:"absolute",zIndex:10,alignItems:"center",justifyContent:"center"});styled(ie)(({theme:e})=>({padding:20,justifyContent:"center",alignItems:"center",gap:4,alignSelf:"stretch",borderRadius:12,background:e.palette.grey[200],color:e.palette.text.disabled,height:160}));var no=styled(ge,{shouldForwardProp:e=>e!=="isDragActive"&&e!=="isError"&&e!=="hasFile"})(({theme:e,isDragActive:t,disabled:r,isError:a,hasFile:i})=>({padding:1,margin:"auto",width:144,height:144,cursor:"pointer",overflow:"hidden",borderRadius:"50%",border:`1px dashed ${alpha(e.palette.grey[500],.2)}`,...t&&{opacity:.72},...r&&{opacity:.48,pointerEvents:"none"},...a&&{borderColor:"error.main"},...i&&{...a&&{bgcolor:alpha(e.palette.error.main,.08)},"&:hover .upload-placeholder":{opacity:1},"& img":{filter:"blur(0)"},"&:hover img":{filter:"blur(3px)"}}})),so=styled("img")({width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover",transition:"all 0.3s ease-in-out"}),lo=styled(a)(({theme:e})=>({backgroundColor:alpha(e.palette.grey[900],.72),color:e.palette.common.white,"&:hover":{backgroundColor:alpha(e.palette.grey[600],.64),color:e.palette.common.white},"& svg":{width:14,height:14}}));var Bo=({onRemove:e,sx:t,file:r,disableDrag:a,attributes:i,listeners:p,innerWidth:s,isDragging:m})=>{let d=r?.id||r?.url;return d?jsx(To,{anchorOrigin:{vertical:"top",horizontal:"left"},children:jsxs(Qe,{width:s,isDragging:m,"data-testid":`preview-multi-img-${d}`,...j().inUp,sx:t,children:[jsx(a$2,{disableDrag:a,...i,...p}),jsx(f,{tooltip:!0,imageView:!0,file:r}),jsx(De,{sx:{position:"absolute",right:3,top:3,zIndex:1},children:e&&jsx(lo,{size:"small",label:"Remover arquivo",onClick:()=>e(r),icon:"DELETE_MARK_BUTTON_02"})})]})},`badge-${d}`):null},po=memo(Bo);var $o=({file:e$1,thumbnail:t,onRemove:r,sx:a$1,disableDrag:i=!1})=>{let p=e$1?.size||0,s=e$1?.name||e$1?.url||e$1?.id,m=e$1?.id||e$1?.url||"",d=typeof e$1=="string",n=i?70:80,{attributes:l,listeners:P,setNodeRef:c,transform:g,transition:I,isDragging:F}=useSortable({id:m,disabled:i}),E={transform:x.Transform.toString(g),transition:I,display:"inline-block",alignItems:"center",justifyContent:"center",width:`${n+8}px`,height:"68px"};return t&&e$1?jsx(Ce,{ref:c,style:E,children:jsx(po,{innerWidth:n,isDragging:F,sx:a$1,file:e$1,disableDrag:i,attributes:l,listeners:P,onRemove:r})}):jsx(Ce,{ref:c,style:{...E,height:"80px",width:`${n+38}px`},children:jsxs(Je,{width:n+30,isDragging:F,"data-testid":`preview-multi-img-${m}`,...j().inUp,sx:a$1,children:[jsx(a$2,{disableDrag:i,...l,...P}),e$1&&jsx(f,{file:e$1}),jsxs(ie,{flexGrow:1,sx:{width:"100%"},children:[jsx(a$3,{title:s,children:jsx(Be,{variant:"subtitle2",noWrap:!0,children:s})}),jsx(Be,{variant:"caption",sx:{color:"text.secondary"},children:d?"":e(p)})]}),jsx(De,{children:r&&jsx(a,{size:"small",label:"Remover arquivo",onClick:()=>r(e$1),icon:"DELETE_MARK_BUTTON_02"})})]})})},go=memo($o);var sr=({thumbnail:e,files:t,onRemove:r,onReorder:a,sx:i})=>{let p=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:8}}),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates})),s=useMemo(()=>t.map((n,l)=>(n.id||(n.id=`${Date.now()}-${l}`),n)),[t]),m=useCallback(n=>{let{active:l,over:P}=n;if(!(!l||!P||l.id===P.id)&&a){let c=s.findIndex(({id:I})=>I===l.id),g=s.findIndex(({id:I})=>I===P.id);c!==-1&&g!==-1&&a(c,g,s);}},[s,a]);if(!s?.length)return null;let d=jsx(AnimatePresence,{initial:!1,children:s.map(n=>jsx(go,{sx:i,id:`preview-file-${n.id}`,file:n,onRemove:r,thumbnail:e,disableDrag:!a},`preview-file-${n.id}`))});return a?jsx(DndContext,{sensors:p,collisionDetection:closestCenter,onDragEnd:m,modifiers:[restrictToHorizontalAxis,restrictToParentElement,restrictToWindowEdges],children:jsx(SortableContext,{items:s.map(n=>n.id),strategy:horizontalListSortingStrategy,children:d})}):d},fe=memo(sr);var xo=forwardRef(({onLoading:e,width:t,height:r,...a},i)=>{let[p,s]=useState("calc(100% - 16px)"),[m,d]=useState("calc(100% - 16px)");a$1(()=>{e?.(!0);}),useLayoutEffect(()=>{typeof i=="object"&&i?.current?e?.(!i.current.complete):e?.(!1);},[i,e]);function n(){if(typeof i=="object"&&i?.current&&t&&r){let{width:l,height:P}=i.current.getBoundingClientRect(),c=Number(t)<l?t:l,g=Number(r)<P?r:P;s(`calc(${c}px - 16px)`),d(`calc(${g}px - 16px)`);}e?.(!1);}return jsx(ro,{...a,ref:i,maxWidth:p,maxHeight:m,onLoad:n,onError:n})});xo.displayName="LoadingPreviewImage";var Po=xo;var ur=({file:e,aspectRatio:t=1,isUploading:r,isLoading:a,onLoading:i,cropSize:p})=>{let s=useRef(null),m=e?.id||e?.url||e?.name,d=e?.name||e?.url||e?.id,n=e?.url||URL.createObjectURL(e),l=typeof p=="number"?p*t:p?.width,P=typeof p=="number"?p:p?.height,c=useMemo(()=>`image-preview-${m}-${r}`,[m,r]);return m?jsxs(oo,{children:[jsx(Po,{aspectRatio:t,isLoading:a,isUploading:r,height:P,width:l,alt:d,src:n,ref:s,loading:"lazy",onLoading:i},c),jsx(to,{alt:d,src:n,isLoading:a,isUploading:r})]}):null},Ne=memo(ur);var bi=e=>e.startsWith("image/"),Io=(e,t=.8)=>new Promise((r,a)=>{let i=document.createElement("canvas"),p=i.getContext("2d"),s=new Image;s.onload=()=>{i.width=s.width,i.height=s.height,p?(p.drawImage(s,0,0),i.toBlob(m=>{if(m){let d=new File([m],e.name.replace(/\.[^/.]+$/,".webp"),{type:"image/webp",lastModified:Date.now()});r(d);}else a(new Error("Falha ao converter para WebP"));},"image/webp",t)):a(new Error("N\xE3o foi poss\xEDvel obter contexto do canvas"));},s.onerror=()=>a(new Error("Falha ao carregar imagem")),s.src=URL.createObjectURL(e);});var Pr=({filesToUpload:e$1,onFileSelect:t,onFilesSelect:r,onRemove:a,dropzoneOptions:i,enableCrop:p=!1,customAspectRatio:s,convertToWebp:m=!0,maxFiles:d,cropSize:n})=>{let{showErrorMessage:l}=a$8(),P=useMemo(()=>s||(n&&typeof n!="number"?n.width/n.height:1),[s,n]),[c,g]=useState([]),[I,F]=useState(!1),[E,b]=useState(null),[O,L]=useState(null),[u,f]=useState(""),[h,v]=useState(!1),[R,y]=useState([]),[S,C]=useState(0),w=useMemo(()=>e$1&&Array.isArray(e$1)?e$1.filter(o=>o instanceof File):e$1&&e$1 instanceof File?[e$1]:c,[e$1,c]),M=useMemo(()=>e$1&&Array.isArray(e$1)?null:e$1&&e$1 instanceof File?e$1:c[0]||null,[e$1,c]);useEffect(()=>{e$1&&(Array.isArray(e$1)?g(e$1.filter(o=>o instanceof File)):e$1 instanceof File?g([e$1]):e$1===null&&g([]));},[e$1]);let j=useCallback(()=>{if(R.length>0&&p){let o=R[0];b(o),C(x=>x+1);let A=new FileReader;A.onload=()=>{f(A.result),F(!0);},A.readAsDataURL(o);}},[R,p]);useEffect(()=>{j();},[j]);let ee=useCallback((o,A)=>{L(A);},[]),oe=async()=>!E||!O?null:new Promise(o=>{let A=document.createElement("canvas"),x=A.getContext("2d"),U=new Image;U.onload=async()=>{let{width:ce,height:X,x:So,y:yo}=O,be=ce,Ie=X;n&&(typeof n=="number"?(be=n,Ie=n/P):(be=n.width,Ie=n.height)),A.width=be,A.height=Ie,x?(x.drawImage(U,So,yo,ce,X,0,0,be,Ie),A.toBlob(async $e=>{if($e){let Me=new File([$e],E.name,{type:E.type,lastModified:Date.now()});if(m)try{Me=await Io(Me);}catch(_o){l(_o,"Erro ao converter para WebP");}o(Me);}else o(null);},"image/png")):o(null);},U.src=u;}),re=async()=>{if(!(!E||!O)){v(!0);try{let o=await oe();if(o)if(Array.isArray(e$1)||e$1===void 0&&r){let x=d?[...w,o].slice(0,d):[...w,o];g(x),r?.(x);}else g([o]),t?.(o);let A=R.slice(1);y(A),F(!1),f(""),b(null),A.length>0&&setTimeout(()=>j(),100);}catch(o){l(o,"Erro ao processar imagem");}finally{v(!1);}}},N=()=>{F(!1),f(""),b(null),y([]),C(0);},k=useCallback(o=>{if(o.length===0)return;if(i?.accept&&Object.keys(i.accept).some(x=>x.includes("image/"))&&p)if(Array.isArray(e$1)||e$1===void 0&&r){let x=o.filter(X=>X.type.startsWith("image/")),U=w.map(X=>X.name),ce=x.filter(X=>!U.includes(X.name));if(ce.length===0){l("Todos os arquivos selecionados j\xE1 foram adicionados","Arquivos duplicados");return}y(ce),C(0);}else {let x=o[0];b(x);let U=new FileReader;U.onload=()=>{f(U.result),F(!0);},U.readAsDataURL(x);}else if(Array.isArray(e$1)||e$1===void 0&&r){let x=d?[...w,...o].slice(0,d):[...w,...o];g(x),r?.(x);}else {let x=o[0];g([x]),t?.(x);}},[e$1,w,t,r,p,d,i,l]),$=useCallback(o=>{if(!o.length)return;let A=o[0]?.errors[0]?.code,x=i?.maxSize||3145728;l(A==="file-too-large"?new Error(`O arquivo excede o tamanho m\xE1ximo de ${e(x)}`):A==="file-invalid-type"?new Error("Formato de arquivo n\xE3o suportado"):o[0]?.errors[0]||new Error("Erro ao enviar arquivo"),"Erro ao fazer upload");},[i?.maxSize,l]),{getRootProps:G,getInputProps:W,isDragActive:q,isDragReject:Oe,fileRejections:Pe}=useDropzone({onDrop:k,onDropRejected:$,...i}),Le=useCallback(o=>{if(!o){g([]),a?.(void 0);return}if(Array.isArray(e$1)||e$1===void 0&&r){let A=c.filter(x=>x.name!==o.name);g(A),a?.(o),r&&r(A);}else g([]),a?.(o);},[e$1,c,r,a]),ae=useCallback(()=>{g([]),Array.isArray(e$1)&&r?r([]):!Array.isArray(e$1)&&t&&t?.(null);},[e$1,r,t]);return {file:M,files:w,aspectRatio:P,dropzoneProps:{getRootProps:G,getInputProps:W,isDragActive:q,isDragReject:Oe,fileRejections:Pe},cropState:{cropModalOpen:I,imagePreview:u,cropLoading:h,setCropModalOpen:F,onCropInitialized:ee,handleCropSave:re,handleCropCancel:N,currentImageIndex:S,totalPendingImages:R.length},handleRemove:Le,clearFiles:ae,setFiles:g}},B=Pr;var Ue=(o=>(o.APPLICATION_OCTET_STREAM="application/octet-stream",o.IMAGE_JPEG="image/jpeg",o.IMAGE_JPG="image/jpg",o.IMAGE_PNG="image/png",o.IMAGE_GIF="image/gif",o.IMAGE_WEBP="image/webp",o.IMAGE_SVG="image/svg+xml",o.IMAGE_BMP="image/bmp",o.IMAGE_TIFF="image/tiff",o.IMAGE_ICO="image/x-icon",o.IMAGE_AVIF="image/avif",o.APPLICATION_PDF="application/pdf",o.TEXT_PLAIN="text/plain",o.TEXT_CSV="text/csv",o.APPLICATION_RTF="application/rtf",o.APPLICATION_MSWORD="application/msword",o.APPLICATION_DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",o.APPLICATION_MSEXCEL="application/vnd.ms-excel",o.APPLICATION_XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",o.APPLICATION_MSPOWERPOINT="application/vnd.ms-powerpoint",o.APPLICATION_PPTX="application/vnd.openxmlformats-officedocument.presentationml.presentation",o.APPLICATION_ODT="application/vnd.oasis.opendocument.text",o.APPLICATION_ODS="application/vnd.oasis.opendocument.spreadsheet",o.APPLICATION_ODP="application/vnd.oasis.opendocument.presentation",o.APPLICATION_XML="application/xml",o.TEXT_XML="text/xml",o.TEXT_HTML="text/html",o.TEXT_CSS="text/css",o.APPLICATION_JSON="application/json",o.TEXT_JAVASCRIPT="text/javascript",o.APPLICATION_ZIP="application/zip",o.APPLICATION_GZIP="application/gzip",o.APPLICATION_RAR="application/vnd.rar",o.APPLICATION_7Z="application/x-7z-compressed",o.AUDIO_MPEG="audio/mpeg",o.AUDIO_WAV="audio/wav",o.AUDIO_OGG="audio/ogg",o.AUDIO_WEBM="audio/webm",o.AUDIO_AAC="audio/aac",o.VIDEO_MP4="video/mp4",o.VIDEO_MPEG="video/mpeg",o.VIDEO_OGG="video/ogg",o.VIDEO_WEBM="video/webm",o.VIDEO_QUICKTIME="video/quicktime",o))(Ue||{}),Re=(e=>(e["application/octet-stream"]="APPLICATION_OCTET_STREAM",e["image/jpeg"]="IMAGE_JPEG",e["image/jpg"]="IMAGE_JPG",e["image/png"]="IMAGE_PNG",e["image/gif"]="IMAGE_GIF",e["image/webp"]="IMAGE_WEBP",e["image/svg+xml"]="IMAGE_SVG",e["image/bmp"]="IMAGE_BMP",e["image/tiff"]="IMAGE_TIFF",e["image/x-icon"]="IMAGE_ICO",e["image/avif"]="IMAGE_AVIF",e["application/pdf"]="APPLICATION_PDF",e["text/plain"]="TEXT_PLAIN",e["text/csv"]="TEXT_CSV",e["application/rtf"]="APPLICATION_RTF",e["application/msword"]="APPLICATION_MSWORD",e["application/vnd.openxmlformats-officedocument.wordprocessingml.document"]="APPLICATION_DOCX",e["application/vnd.ms-excel"]="APPLICATION_MSEXCEL",e["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]="APPLICATION_XLSX",e["application/vnd.ms-powerpoint"]="APPLICATION_MSPOWERPOINT",e["application/vnd.openxmlformats-officedocument.presentationml.presentation"]="APPLICATION_PPTX",e["application/vnd.oasis.opendocument.text"]="APPLICATION_ODT",e["application/vnd.oasis.opendocument.spreadsheet"]="APPLICATION_ODS",e["application/vnd.oasis.opendocument.presentation"]="APPLICATION_ODP",e["application/xml"]="APPLICATION_XML",e["text/xml"]="TEXT_XML",e["text/html"]="TEXT_HTML",e["text/css"]="TEXT_CSS",e["application/json"]="APPLICATION_JSON",e["text/javascript"]="TEXT_JAVASCRIPT",e["application/zip"]="APPLICATION_ZIP",e["application/gzip"]="APPLICATION_GZIP",e["application/vnd.rar"]="APPLICATION_RAR",e["application/x-7z-compressed"]="APPLICATION_7Z",e["audio/mpeg"]="AUDIO_MPEG",e["audio/wav"]="AUDIO_WAV",e["audio/ogg"]="AUDIO_OGG",e["audio/webm"]="AUDIO_WEBM",e["audio/aac"]="AUDIO_AAC",e["video/mp4"]="VIDEO_MP4",e["video/mpeg"]="VIDEO_MPEG",e["video/ogg"]="VIDEO_OGG",e["video/webm"]="VIDEO_WEBM",e["video/quicktime"]="VIDEO_QUICKTIME",e))(Re||{});var Ir=({createFilesMutation:e,queryFiles:t,fileIds:r,files:a,file:i,skip:p})=>{let{showErrorMessage:s}=a$8(),[m,d]=useState(!1),[n,l]=useState(!1),[P,c]=useState(null),[g,I]=useState(void 0),F=useMemo(()=>g?.[0],[g]),E=useMemo(()=>{if(!p)return i?[i]:a},[i,a,p]),b=useCallback(async u=>{if(!u?.length){I(void 0),l(!1);return}try{l(!0);let f=await Promise.all(u.map(async({url:h,name:v,id:R},y)=>{let C=await(await fetch(h)).blob(),w=v||h.split("/").pop()||"image",M=new File([C],w,{type:C.type});return M.id=R,M.url=h,M.index=y,M}));I(f);}catch(f){console.error("Erro ao carregar preview dos arquivos:",f),I(void 0);}finally{l(!1);}},[]);useEffect(()=>{!r?.length||!t?b(void 0):t({ids:r}).unwrap().then(({files:u})=>{l(!0);let f=r.map(h=>u.find(v=>v.id===h)).filter(h=>!!h);b(f);});},[r,t,b]);let O=n||m;return useEffect(()=>{b(E);},[E,b]),{filesPreview:g,filePreview:F,uploadFiles:async u=>{if(u?.length){d(!0);try{let f=u[0].type||"application/octet-stream",h=Re[f];if(!h)throw new Error(`Tipo de arquivo n\xE3o suportado: ${f}`);let v=await e({files:[{content_type:h,name:u[0].name}]}).unwrap(),R=v.files.map(S=>S.id);return (await Promise.all(u.map(S=>fetch(v.files[0].url,{method:"PUT",headers:{"Content-Type":f},body:S})))).forEach(S=>{if(!S.ok)throw new Error(`Erro no upload: ${S.statusText}`)}),b(v.files),R}catch(f){throw c(f),s(f,"Erro no upload"),f}finally{d(!1);}}},isUploadingFiles:m,isLoadingPreview:n,isUploadOrLoadingFiles:O,uploadFilesError:P}},hr=Ir;var Ar=({sx:e,id:t,name:r,tabIndex:a,uploading:i,getRootProps:p,getInputProps:s,isDragActive:m,isError:d,disabled:n,dropZoneSxProps:l,dropZoneContent:P,children:c,...g})=>jsxs(we,{children:[i&&jsx(a$7,{"data-testid":"uploading-progress-bar"}),jsxs(ge,{sx:{width:1,position:"relative",...e},children:[jsxs(Ve,{...p(),"data-testid":"drop-zone-styled-area",isError:d,isDragActive:m,disabled:!!n,sx:l,...g,children:[jsx("input",{...s(),id:t,tabIndex:a,name:r}),P]}),c]})]}),K=Ar;var Dr=({header:e,description:t,sx:r,...a})=>jsxs(ie,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...a,children:[jsx(a$4,{sx:{width:220}}),jsxs("div",{children:[jsx(Be,{gutterBottom:!0,variant:"h5",children:e||"Soltar ou selecionar arquivos"}),jsx(Be,{variant:"body2",sx:{color:"text.secondary"},children:t||jsxs(Fragment,{children:["Solte os arquivos aqui ou clique",jsx(Be,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua m\xE1quina"]})})]})]}),J=memo(Dr);var _r=({onRemove:e,onReorder:t,onFilesSelect:r,id:a,disabled:i,error:p,helperText:s,files:m,thumbnail:d,dropZoneSxProps:n,uploading:l,tabIndex:P,maxFiles:c,...g})=>{let{files:I,dropzoneProps:F,handleRemove:E,setFiles:b}=B({filesToUpload:m,onFilesSelect:r,onRemove:e,dropzoneOptions:{multiple:!0,disabled:i,...g},maxFiles:c}),{getRootProps:O,getInputProps:L,isDragActive:u,isDragReject:f}=F,h=useCallback((y,S)=>{b(C=>{let w=[...C],[M]=w.splice(y,1);return w.splice(S,0,M),t?.(y,S,w),w});},[t,b]),v=!!I?.length,R=f||!!p;return jsxs(K,{id:a,uploading:l,disabled:i,dropZoneSxProps:n,tabIndex:P,getRootProps:O,getInputProps:L,isDragActive:u,isError:R,dropZoneContent:jsx(J,{}),children:[jsx(T,{disabled:i,helperText:s,isError:R}),v&&jsx(ge,{sx:{my:3},children:jsx(fe,{files:I,thumbnail:!!d,onRemove:e?E:void 0,onReorder:t?h:void 0})})]})},Or=memo(_r);var Ur=({onFilesSelect:e,onRemove:t,onReorder:r,id:a,disabled:i,error:p,helperText:s,files:m,dropZoneSxProps:d,placeholderProps:n,placeholderAlt:l,uploading:P,tabIndex:c,maxFiles:g,aspectRatio:I,enableCrop:F=!0,convertToWebp:E=!0,cropSize:b,name:O,label:L,...u})=>{let{files:f,dropzoneProps:h,cropState:v,handleRemove:R,aspectRatio:y,setFiles:S}=B({filesToUpload:m,onFilesSelect:e,onRemove:t,dropzoneOptions:{accept:{"image/*":[".jpeg",".jpg",".png",".gif",".webp"]},multiple:!0,disabled:i,...u},enableCrop:F,customAspectRatio:I,convertToWebp:E,maxFiles:g,cropSize:b}),{getRootProps:C,getInputProps:w,isDragActive:M,isDragReject:j}=h,{cropModalOpen:ee,imagePreview:oe,cropLoading:re,onCropInitialized:N,handleCropSave:k,handleCropCancel:$,currentImageIndex:G,totalPendingImages:W}=v,q=useCallback((ae,o)=>{S(A=>{let x=[...A],[U]=x.splice(ae,1);return x.splice(o,0,U),r?.(ae,o,x),x});},[r,S]),Oe=!!f?.length,Pe=j||!!p,Le=useMemo(()=>{let ae=L??"Ajustar Imagem",o=W>1?` (${G} de ${W})`:"";return `${ae}${o}`},[L,W,G]);return jsxs(K,{id:a,name:O,uploading:P,disabled:i,dropZoneSxProps:d,tabIndex:c,getRootProps:C,getInputProps:w,isDragActive:M,isError:Pe,dropZoneContent:jsx(Fragment,{children:l?jsx(ie,{children:l}):jsx(J,{header:n?.header,description:n?.description})}),children:[jsx(T,{disabled:i,helperText:s,isError:Pe}),Oe&&jsx(Fragment,{children:jsx(ge,{sx:{my:3,ml:.5},children:jsx(fe,{files:f,thumbnail:!0,onRemove:R,onReorder:r?q:void 0})})}),jsx(a$5,{open:ee,onClose:$,label:Le,imageSrc:oe,aspectRatio:y,onInitialized:N,onSave:k,loading:re,cropSize:b})]})},Tr=memo(Ur);var jr=({onFileSelect:e$1,onRemove:t,file:r,id:a,disabled:i,error:p,helperText:s,sx:m$1,dropZoneSxProps:d,uploading:n,tabIndex:l,...P})=>{let{file:c,dropzoneProps:g,handleRemove:I}=B({filesToUpload:r,onFileSelect:e$1,onRemove:t,dropzoneOptions:{multiple:!1,disabled:i,...P}}),{getRootProps:F,getInputProps:E,isDragActive:b,isDragReject:O}=g,L=useCallback(v=>{v.stopPropagation(),I(c||void 0);},[c,I]),u=!!c,f$1=typeof c=="string",h=O||!!p;return jsx(K,{id:a,uploading:n,disabled:i,dropZoneSxProps:d,tabIndex:l,getRootProps:F,getInputProps:E,isDragActive:b,isError:h,dropZoneContent:jsxs(Fragment,{children:[!u&&jsx(J,{}),u&&jsxs(ie,{component:m.div,...j().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:v=>`solid 1px ${v.palette.divider}`,...m$1},children:[jsx(f,{file:c}),jsxs(ie,{flexGrow:1,sx:{minWidth:0},children:[jsx(Be,{variant:"subtitle2",noWrap:!0,children:f$1?c:c.name}),jsx(Be,{variant:"caption",sx:{color:"text.secondary"},children:f$1?"":e(c.size)})]}),t&&jsx(a$3,{title:"Remover arquivo",children:jsx(Ke,{edge:"end",size:"small",disabled:i,"aria-label":"Remover arquivo",onClick:L,children:jsx(a$6,{icon:"DELETE_MARK_BUTTON_02",width:16})})})]})]}),children:jsx(T,{disabled:i,helperText:s,isError:h})})},$r=memo(jr);var Jr=({onRemove:e,onFileSelect:t,file:r,id:a,disabled:i,error:p,helperText:s,dropZoneSxProps:m,placeholderProps:d,placeholderAlt:n,uploading:l,tabIndex:P,aspectRatio:c,enableCrop:g=!0,convertToWebp:I=!0,name:F,label:E,cropSize:b,...O})=>{let[L,u]=useState(!1),{file:f,dropzoneProps:h,cropState:v,handleRemove:R,aspectRatio:y}=B({filesToUpload:r,onFileSelect:t,onRemove:e,dropzoneOptions:{accept:{"image/*":[".jpeg",".jpg",".png",".gif",".webp"]},multiple:!1,disabled:i,...O},enableCrop:g,customAspectRatio:c,convertToWebp:I,cropSize:b}),{getRootProps:S,getInputProps:C,isDragActive:w,isDragReject:M}=h,{cropModalOpen:j,imagePreview:ee,cropLoading:oe,onCropInitialized:re,handleCropSave:N,handleCropCancel:k}=v,$=useCallback(()=>{R(f||void 0);},[f,R]),G=!!f,W=M||!!p,q=G?{opacity:0}:{opacity:1};return jsxs(we,{children:[(l||L)&&jsx(a$7,{}),jsxs(K,{id:a,uploading:l,disabled:i,dropZoneSxProps:m,tabIndex:P,getRootProps:S,getInputProps:C,isDragActive:w,isError:W,name:F,dropZoneContent:jsxs(Fragment,{children:[n?jsx(ie,{sx:q,children:n}):jsx(J,{sx:q,header:d?.title,description:d?.description}),G&&jsx(Ne,{file:f,cropSize:b,isLoading:L,isUploading:l,onLoading:u,aspectRatio:y})]}),children:[jsx(T,{disabled:i,helperText:s,isError:W}),G&&e&&jsx(Ye,{size:"small",onClick:$,disabled:i,label:"Remover arquivo",children:jsx(a$6,{icon:"DELETE_MARK_BUTTON_02",width:16})}),jsx(a$5,{open:j,onClose:k,label:E??"Ajustar Imagem",imageSrc:ee,aspectRatio:y,onInitialized:re,onSave:N,loading:oe,cropSize:b})]})]})},Qr=memo(Jr);var it=({onFileSelect:e,onRemove:t,file:r,disabled:a,label:i,id:p,tabIndex:s,error:m,helperText:d,sx:n,name:l,maxSize:P,uploading:c,aspectRatio:g=1,enableCrop:I=!0,convertToWebp:F=!0,cropSize:E,...b})=>{let[O,L]=useState(!1),{file:u,dropzoneProps:f,cropState:h,handleRemove:v}=B({filesToUpload:r,onFileSelect:e,onRemove:t,dropzoneOptions:{accept:{"image/*":[".jpeg",".jpg",".png",".gif",".webp"]},multiple:!1,disabled:a,maxSize:P,...b},enableCrop:I,customAspectRatio:g,convertToWebp:F,cropSize:E}),{getRootProps:R,getInputProps:y,isDragActive:S,isDragReject:C}=f,{cropModalOpen:w,imagePreview:M,cropLoading:j,onCropInitialized:ee,handleCropSave:oe,handleCropCancel:re}=h,N=C||!!m,k=O||c,$=!!t,G=useMemo(()=>u?(L(!0),URL.createObjectURL(u)):"",[u]),W=()=>{L(!1);},q=()=>$&&u?()=>v(u):R().onClick;return jsxs(Fragment,{children:[jsxs(no,{sx:n,isError:N,isDragActive:S,hasFile:!!u,...R(),onClick:q(),children:[jsxs(io,{children:[u&&jsx(so,{alt:"Avatar Preview",src:G,onLoad:W,...k&&{sx:{filter:"blur(5px) !important",scale:1.2,opacity:.7}}}),u&&k&&jsx(ao,{children:jsx(tt,{size:135,thickness:1,color:"primary"})}),!u&&!k&&jsxs(ze,{isError:N,hasFile:!1,children:[jsx(a$6,{icon:"ADD_IMAGE",width:32}),jsx(Be,{variant:"caption",textAlign:"center",sx:{color:N?"error.main":"text.disabled"},children:"Adicionar foto"})]}),u&&!k&&jsxs(ze,{isError:N,hasFile:!0,children:[jsx(a$6,{icon:$?"DELETE_MARK_BUTTON_02":"ADD_IMAGE",width:32}),jsx(Be,{variant:"caption",textAlign:"center",sx:{color:N?"error.main":"common.white"},children:$?"Remover foto":"Alterar foto"})]})]}),jsx("input",{name:l,id:p,tabIndex:s,...y()}),jsx(ie,{spacing:.5,sx:{pt:1},children:jsx(T,{helperText:d,disabled:a,isError:N})}),u&&!k&&jsx(ie,{direction:"row",justifyContent:"center",spacing:1,sx:{pt:1,mb:-1},children:jsx(Be,{variant:"caption",component:"span",sx:{px:.75,cursor:"pointer",borderRadius:.75,color:"error.main","&:hover":{color:"error.dark",bgcolor:"background.default"}},onClick:()=>v(u),children:"Remover"})})]}),w&&M&&jsx(a$5,{open:w,onClose:re,label:i??"Ajustar Imagem",imageSrc:M,aspectRatio:g,onInitialized:ee,onSave:oe,loading:j,cropSize:E,cropShape:"round"})]})},at=memo(it);var pt=({error:e,name:t,disabled:r,sx:a,...i})=>{let{getRootProps:p,getInputProps:s,isDragActive:m,isDragReject:d}=useDropzone({disabled:r,...i}),n=d||e;return jsxs(eo,{...p(),isDragActive:m,hasError:!!n,disabled:!!r,sx:a,"data-testid":"upload-box",children:[jsx("input",{name:t,...s()}),"Selecionar arquivo"]})},dt=memo(pt);
35
+ var Co=({helperText:e,disabled:t,isError:r})=>e?jsx(Mo,{error:r,sx:a=>({mx:"14px",color:t?a.palette.grey[500]:void 0}),children:e}):null,W=memo(Co);var Fe=styled(ae)({position:"relative",width:"100%",borderRadius:8,overflow:"hidden","&:hover .actions":{display:"flex"}}),Re=styled(ae)({position:"absolute",top:4,right:4,gap:.5,"& svg":{width:16,height:16}}),Ke=styled(xe,{shouldForwardProp:e=>!["isDragActive","isError","disabled"].includes(e)})(({theme:e,isDragActive:t,isError:r,disabled:a})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${alpha(e.palette.grey[500],.32)}`,...t&&{opacity:.72},...r&&{color:e.palette.error.main,backgroundColor:e.palette.error.lighter,borderColor:e.palette.error.light},...a&&{opacity:.48,pointerEvents:"none"},"&:hover":{opacity:.72}}));styled(ae)(({theme:e})=>({display:"none",position:"absolute",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:12,width:"100%",height:"100%",backgroundColor:alpha(e.palette.primary.main,.9),zIndex:999,button:{"&, &:hover, &:focus":{backgroundColor:"#fff"}}}));var Je=styled(Uo)(({theme:e})=>({position:"relative",zIndex:999,pointerEvents:"auto",color:e.palette.grey[700],backgroundColor:e.palette.grey[100],"&:hover":{color:e.palette.grey[900],backgroundColor:e.palette.grey[300]}})),Ce=styled("div")({position:"relative",zIndex:1,"&:hover":{zIndex:2}}),Qe=styled(ae,{shouldForwardProp:e=>!["isDragging"].includes(e)})(({theme:e,width:t,isDragging:r})=>({width:t,height:100,alignItems:"center",display:"inline-flex",justifyContent:"center",margin:e.spacing(.5),padding:e.spacing(2,1,2,1),gap:e.spacing(1),borderRadius:e.spacing(1.25),overflow:"hidden",position:"relative",border:`solid 1px ${e.palette.divider}`,backgroundColor:e.palette.common.white,zIndex:1,transition:"box-shadow 150ms ease-in-out",boxShadow:r?`0 0 0 2px ${e.palette.primary.main}, ${e.customShadows.z8}, inset 0 0 0 1000px ${alpha(e.palette.primary.main,.06)}`:"0px 0px 0px 0px rgba(0, 0, 0, 0)"})),Ye=styled(m.div)(({theme:e,width:t,isDragging:r})=>({width:t,height:60,alignItems:"center",display:"inline-flex",justifyContent:"center",margin:e.spacing(.5),padding:e.spacing(2),borderRadius:e.spacing(1.25),overflow:"hidden",position:"relative",border:`solid 1px ${e.palette.divider}`,backgroundColor:e.palette.common.white,zIndex:1,transition:"box-shadow 150ms ease-in-out",boxShadow:r?`0 0 0 2px ${e.palette.primary.main}, ${e.customShadows.z8}, inset 0 0 0 1000px ${alpha(e.palette.primary.main,.06)}`:"0px 0px 0px 0px rgba(0, 0, 0, 0)"})),eo=styled(a)(({theme:e})=>({top:16,right:16,zIndex:9,position:"absolute",color:e.palette.common.white,backgroundColor:alpha(e.palette.grey[900],.72),"&:hover":{backgroundColor:alpha(e.palette.grey[900],.48)}})),oo=styled(xe,{shouldForwardProp:e=>e!=="isDragActive"&&e!=="disabled"&&e!=="hasError"})(({theme:e,isDragActive:t,disabled:r,hasError:a})=>({width:64,height:64,flexShrink:0,display:"flex",borderRadius:1,cursor:"pointer",alignItems:"center",color:e.palette.text.disabled,justifyContent:"center",backgroundColor:alpha(e.palette.grey[500],.08),border:`dashed 1px ${alpha(e.palette.grey[500],.16)}`,...t&&{opacity:.72},...r&&{opacity:.48,pointerEvents:"none"},...a&&{color:e.palette.error.main,borderColor:e.palette.error.main,backgroundColor:alpha(e.palette.error.main,.08)},"&:hover":{opacity:.72}})),ro=styled(xe)(({theme:e})=>({padding:e.spacing(1),top:0,left:0,width:"100%",height:"100%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",transition:"all 0.3s ease-in-out",filter:"blur(0)","&:hover":{filter:"blur(3px)"}})),to=styled("img",{shouldForwardProp:e=>e!=="aspectRatio"&&e!=="isLoading"&&e!=="isUploading"&&e!=="maxWidth"&&e!=="maxHeight"})(({theme:e,aspectRatio:t,height:r=1,width:a=1,maxWidth:i,maxHeight:l,isLoading:s,isUploading:g})=>({borderRadius:e.shape.borderRadius,objectFit:"cover",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)",filter:"blur(0)",zIndex:1,aspectRatio:t,maxWidth:i,maxHeight:l,backgroundColor:e.palette.background.paper,height:r>=a?"100%":`calc(100% * ${t})`,width:r>a?`calc(${t} * 100%)`:"100%",transition:"all 0.5s ease-in-out",...s||g?{opacity:0,filter:"blur(1.5rem)",transform:"translate(-50%, -50%) scale(0.7)"}:{},"&:hover":{transition:"all 0.2s ease-in-out"}})),io=styled("img",{shouldForwardProp:e=>e!=="isLoading"&&e!=="isUploading"})(({isLoading:e,isUploading:t})=>({width:"100%",height:"100%",objectFit:"cover",top:0,left:0,filter:"blur(1.5rem)",transform:"scale(1.1)",position:"absolute",zIndex:0,transition:"opacity 0.3s ease-in-out",...e&&{opacity:0},...t&&{opacity:.7,filter:"blur(2rem)"}})),ao=styled(ae)({width:"100%",height:"100%",position:"relative",overflow:"hidden",borderRadius:"50%",justifyContent:"center",alignItems:"center"});styled(ko)(({theme:e})=>({py:1,px:2,mt:3,textAlign:"left",borderStyle:"dashed",borderColor:"error.main",backgroundColor:alpha(e.palette.error.main,.08)}));var ze=styled(xe,{shouldForwardProp:e=>e!=="isError"&&e!=="hasFile"})(({theme:e,isError:t,hasFile:r})=>({top:0,gap:e.spacing(1),left:0,width:"100%",height:"100%",zIndex:9,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",color:e.palette.text.disabled,flexDirection:"column",justifyContent:"center",backgroundColor:alpha(e.palette.grey[500],.08),transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter}),"&:hover":{opacity:.92},...t&&{color:e.palette.error.main},...r&&{zIndex:9,opacity:0,color:e.palette.common.white,backgroundColor:alpha(e.palette.common.black,.54)}})),no=styled(ae)({top:0,left:0,right:0,bottom:0,position:"absolute",zIndex:10,alignItems:"center",justifyContent:"center"});styled(ae)(({theme:e})=>({padding:20,justifyContent:"center",alignItems:"center",gap:4,alignSelf:"stretch",borderRadius:12,background:e.palette.grey[200],color:e.palette.text.disabled,height:160}));var so=styled(xe,{shouldForwardProp:e=>e!=="isDragActive"&&e!=="isError"&&e!=="hasFile"})(({theme:e,isDragActive:t,disabled:r,isError:a,hasFile:i})=>({padding:1,margin:"auto",width:144,height:144,cursor:"pointer",overflow:"hidden",borderRadius:"50%",border:`1px dashed ${alpha(e.palette.grey[500],.2)}`,...t&&{opacity:.72},...r&&{opacity:.48,pointerEvents:"none"},...a&&{borderColor:"error.main"},...i&&{...a&&{bgcolor:alpha(e.palette.error.main,.08)},"&:hover .upload-placeholder":{opacity:1},"& img":{filter:"blur(0)"},"&:hover img":{filter:"blur(3px)"}}})),lo=styled("img")({width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover",transition:"all 0.3s ease-in-out"}),po=styled(a)(({theme:e})=>({backgroundColor:alpha(e.palette.grey[900],.72),color:e.palette.common.white,"&:hover":{backgroundColor:alpha(e.palette.grey[600],.64),color:e.palette.common.white},"& svg":{width:14,height:14}}));var Go=({onRemove:e,sx:t,file:r,disableDrag:a,attributes:i,listeners:l,innerWidth:s,isDragging:g})=>{let d=r?.id||r?.url;return d?jsx(Bo,{anchorOrigin:{vertical:"top",horizontal:"left"},children:jsxs(Ye,{width:s,isDragging:g,"data-testid":`preview-multi-img-${d}`,...j().inUp,sx:t,children:[jsx(a$2,{disableDrag:a,...i,...l}),jsx(f,{tooltip:!0,imageView:!0,file:r}),jsx(Re,{sx:{position:"absolute",right:3,top:3,zIndex:1},children:e&&jsx(po,{size:"small",label:"Remover arquivo",onClick:()=>e(r),icon:"DELETE_MARK_BUTTON_02"})})]})},`badge-${d}`):null},co=memo(Go);var Ho=({file:e$1,thumbnail:t,onRemove:r,sx:a$1,disableDrag:i=!1})=>{let l=e$1?.size||0,s=e$1?.name||e$1?.url||e$1?.id,g=e$1?.id||e$1?.url||"",d=typeof e$1=="string",n=i?70:80,{attributes:p,listeners:h,setNodeRef:m,transform:c,transition:v,isDragging:E}=useSortable({id:g,disabled:i}),y={transform:x.Transform.toString(c),transition:v,display:"inline-block",alignItems:"center",justifyContent:"center",width:`${n+8}px`,height:"68px"};return t&&e$1?jsx(Ce,{ref:m,style:y,children:jsx(co,{innerWidth:n,isDragging:E,sx:a$1,file:e$1,disableDrag:i,attributes:p,listeners:h,onRemove:r})}):jsx(Ce,{ref:m,style:{...y,height:"80px",width:`${n+38}px`},children:jsxs(Qe,{width:n+30,isDragging:E,"data-testid":`preview-multi-img-${g}`,...j().inUp,sx:a$1,children:[jsx(a$2,{disableDrag:i,...p,...h}),e$1&&jsx(f,{file:e$1}),jsxs(ae,{flexGrow:1,sx:{width:"100%"},children:[jsx(a$3,{title:s,children:jsx(Ge,{variant:"subtitle2",noWrap:!0,children:s})}),jsx(Ge,{variant:"caption",sx:{color:"text.secondary"},children:d?"":e(l)})]}),jsx(Re,{children:r&&jsx(a,{size:"small",label:"Remover arquivo",onClick:()=>r(e$1),icon:"DELETE_MARK_BUTTON_02"})})]})})},uo=memo(Ho);var lr=({thumbnail:e,files:t,onRemove:r,onReorder:a,sx:i})=>{let l=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:8}}),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates})),s=useMemo(()=>t.map((n,p)=>(n.id||(n.id=`${Date.now()}-${p}`),n)),[t]),g=useCallback(n=>{let{active:p,over:h}=n;if(!(!p||!h||p.id===h.id)&&a){let m=s.findIndex(({id:v})=>v===p.id),c=s.findIndex(({id:v})=>v===h.id);m!==-1&&c!==-1&&a(m,c,s);}},[s,a]);if(!s?.length)return null;let d=jsx(AnimatePresence,{initial:!1,children:s.map(n=>jsx(uo,{sx:i,id:`preview-file-${n.id}`,file:n,onRemove:r,thumbnail:e,disableDrag:!a},`preview-file-${n.id}`))});return a?jsx(DndContext,{sensors:l,collisionDetection:closestCenter,onDragEnd:g,modifiers:[restrictToHorizontalAxis,restrictToParentElement,restrictToWindowEdges],children:jsx(SortableContext,{items:s.map(n=>n.id),strategy:horizontalListSortingStrategy,children:d})}):d},be=memo(lr);var Po=forwardRef(({onLoading:e,width:t,height:r,...a},i)=>{let[l,s]=useState("calc(100% - 16px)"),[g,d]=useState("calc(100% - 16px)");a$1(()=>{e?.(!0);}),useLayoutEffect(()=>{typeof i=="object"&&i?.current?e?.(!i.current.complete):e?.(!1);},[i,e]);function n(){if(typeof i=="object"&&i?.current&&t&&r){let{width:p,height:h}=i.current.getBoundingClientRect(),m=Number(t)<p?t:p,c=Number(r)<h?r:h;s(`calc(${m}px - 16px)`),d(`calc(${c}px - 16px)`);}e?.(!1);}return jsx(to,{...a,ref:i,maxWidth:l,maxHeight:g,onLoad:n,onError:n})});Po.displayName="LoadingPreviewImage";var bo=Po;var fr=({file:e,aspectRatio:t=1,isUploading:r,isLoading:a,onLoading:i,cropSize:l})=>{let s=useRef(null),g=e?.id||e?.url||e?.name,d=e?.name||e?.url||e?.id,n=e?.url||URL.createObjectURL(e),p=typeof l=="number"?l*t:l?.width,h=typeof l=="number"?l:l?.height,m=useMemo(()=>`image-preview-${g}-${r}`,[g,r]);return g?jsxs(ro,{children:[jsx(bo,{aspectRatio:t,isLoading:a,isUploading:r,height:h,width:p,alt:d,src:n,ref:s,loading:"lazy",onLoading:i},m),jsx(io,{alt:d,src:n,isLoading:a,isUploading:r})]}):null},Ue=memo(fr);var hi=e=>e.startsWith("image/"),ho=(e,t=.8)=>new Promise((r,a)=>{let i=document.createElement("canvas"),l=i.getContext("2d"),s=new Image;s.onload=()=>{i.width=s.width,i.height=s.height,l?(l.drawImage(s,0,0),i.toBlob(g=>{if(g){let d=new File([g],e.name.replace(/\.[^/.]+$/,".webp"),{type:"image/webp",lastModified:Date.now()});r(d);}else a(new Error("Falha ao converter para WebP"));},"image/webp",t)):a(new Error("N\xE3o foi poss\xEDvel obter contexto do canvas"));},s.onerror=()=>a(new Error("Falha ao carregar imagem")),s.src=URL.createObjectURL(e);});var br=({filesToUpload:e$1,onFileSelect:t,onFilesSelect:r,onRemove:a,dropzoneOptions:i,enableCrop:l=!1,customAspectRatio:s,convertToWebp:g=!0,maxFiles:d,cropSize:n})=>{let{showErrorMessage:p}=a$8(),h=useMemo(()=>s||(n&&typeof n!="number"?n.width/n.height:1),[s,n]),[m,c]=useState([]),[v,E]=useState(!1),[y,F]=useState(null),[R,L]=useState(null),[b,f]=useState(""),[x,P]=useState(!1),[u,A]=useState([]),[O,w]=useState(0),_=useMemo(()=>e$1&&Array.isArray(e$1)?e$1.filter(o=>o instanceof File):e$1&&e$1 instanceof File?[e$1]:m,[e$1,m]),C=useMemo(()=>e$1&&Array.isArray(e$1)?null:e$1&&e$1 instanceof File?e$1:m[0]||null,[e$1,m]);useEffect(()=>{e$1&&(Array.isArray(e$1)?c(e$1.filter(o=>o instanceof File)):e$1 instanceof File?c([e$1]):e$1===null&&c([]));},[e$1]);let B=useCallback(()=>{if(u.length>0&&l){let o=u[0];F(o),w(I=>I+1);let D=new FileReader;D.onload=()=>{f(D.result),E(!0);},D.readAsDataURL(o);}},[u,l]);useEffect(()=>{B();},[B]);let U=useCallback((o,D)=>{L(D);},[]),oe=async()=>!y||!R?null:new Promise(o=>{let D=document.createElement("canvas"),I=D.getContext("2d"),j=new Image;j.onload=async()=>{let{width:ue,height:V,x:yo,y:_o}=R,he=ue,ve=V;n&&(typeof n=="number"?(he=n,ve=n/h):(he=n.width,ve=n.height)),D.width=he,D.height=ve,I?(I.drawImage(j,yo,_o,ue,V,0,0,he,ve),D.toBlob(async He=>{if(He){let Me=new File([He],y.name,{type:y.type,lastModified:Date.now()});if(g)try{Me=await ho(Me);}catch(Oo){p(Oo,"Erro ao converter para WebP");}o(Me);}else o(null);},"image/png")):o(null);},j.src=b;}),re=async()=>{if(!(!y||!R)){P(!0);try{let o=await oe();if(o)if(Array.isArray(e$1)||e$1===void 0&&r){let I=d?[..._,o].slice(-d):[..._,o];c(I),r?.(I);}else c([o]),t?.(o);let D=u.slice(1);A(D),E(!1),f(""),F(null),D.length>0&&setTimeout(()=>B(),100);}catch(o){p(o,"Erro ao processar imagem");}finally{P(!1);}}},k=()=>{E(!1),f(""),F(null),A([]),w(0);},G=useCallback(o=>{if(o.length===0)return;if(i?.accept&&Object.keys(i.accept).some(I=>I.includes("image/"))&&l)if(Array.isArray(e$1)||e$1===void 0&&r){let I=o.filter(V=>V.type.startsWith("image/")),j=_.map(V=>V.name),ue=I.filter(V=>!j.includes(V.name));if(ue.length===0){p("Todos os arquivos selecionados j\xE1 foram adicionados","Arquivos duplicados");return}A(ue),w(0);}else {let I=o[0];F(I);let j=new FileReader;j.onload=()=>{f(j.result),E(!0);},j.readAsDataURL(I);}else if(Array.isArray(e$1)||e$1===void 0&&r){let I=d?[..._,...o].slice(-d):[..._,...o];c(I),r?.(I);}else {let I=o[0];c([I]),t?.(I);}},[e$1,_,t,r,l,d,i,p]),H=useCallback(o=>{if(!o.length)return;let D=o[0]?.errors[0]?.code,I=i?.maxSize||3145728;p(D==="file-too-large"?new Error(`O arquivo excede o tamanho m\xE1ximo de ${e(I)}`):D==="file-invalid-type"?new Error("Formato de arquivo n\xE3o suportado"):o[0]?.errors[0]||new Error("Erro ao enviar arquivo"),"Erro ao fazer upload");},[i?.maxSize,p]),{getRootProps:N,getInputProps:T,isDragActive:q,isDragReject:ge,fileRejections:te}=useDropzone({onDrop:G,onDropRejected:H,...i}),ne=useCallback(o=>{if(!o){c([]),a?.(void 0);return}if(Array.isArray(e$1)||e$1===void 0&&r){let D=m.filter(I=>I.name!==o.name);c(D),a?.(o),r&&r(D);}else c([]),a?.(o);},[e$1,m,r,a]),se=useCallback(()=>{c([]),Array.isArray(e$1)&&r?r([]):!Array.isArray(e$1)&&t&&t?.(null);},[e$1,r,t]);return {file:C,files:_,aspectRatio:h,dropzoneProps:{getRootProps:N,getInputProps:T,isDragActive:q,isDragReject:ge,fileRejections:te},cropState:{cropModalOpen:v,imagePreview:b,cropLoading:x,setCropModalOpen:E,onCropInitialized:U,handleCropSave:re,handleCropCancel:k,currentImageIndex:O,totalPendingImages:u.length},handleRemove:ne,clearFiles:se,setFiles:c}},Z=br;var Ne=(o=>(o.APPLICATION_OCTET_STREAM="application/octet-stream",o.IMAGE_JPEG="image/jpeg",o.IMAGE_JPG="image/jpg",o.IMAGE_PNG="image/png",o.IMAGE_GIF="image/gif",o.IMAGE_WEBP="image/webp",o.IMAGE_SVG="image/svg+xml",o.IMAGE_BMP="image/bmp",o.IMAGE_TIFF="image/tiff",o.IMAGE_ICO="image/x-icon",o.IMAGE_AVIF="image/avif",o.APPLICATION_PDF="application/pdf",o.TEXT_PLAIN="text/plain",o.TEXT_CSV="text/csv",o.APPLICATION_RTF="application/rtf",o.APPLICATION_MSWORD="application/msword",o.APPLICATION_DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",o.APPLICATION_MSEXCEL="application/vnd.ms-excel",o.APPLICATION_XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",o.APPLICATION_MSPOWERPOINT="application/vnd.ms-powerpoint",o.APPLICATION_PPTX="application/vnd.openxmlformats-officedocument.presentationml.presentation",o.APPLICATION_ODT="application/vnd.oasis.opendocument.text",o.APPLICATION_ODS="application/vnd.oasis.opendocument.spreadsheet",o.APPLICATION_ODP="application/vnd.oasis.opendocument.presentation",o.APPLICATION_XML="application/xml",o.TEXT_XML="text/xml",o.TEXT_HTML="text/html",o.TEXT_CSS="text/css",o.APPLICATION_JSON="application/json",o.TEXT_JAVASCRIPT="text/javascript",o.APPLICATION_ZIP="application/zip",o.APPLICATION_GZIP="application/gzip",o.APPLICATION_RAR="application/vnd.rar",o.APPLICATION_7Z="application/x-7z-compressed",o.AUDIO_MPEG="audio/mpeg",o.AUDIO_WAV="audio/wav",o.AUDIO_OGG="audio/ogg",o.AUDIO_WEBM="audio/webm",o.AUDIO_AAC="audio/aac",o.VIDEO_MP4="video/mp4",o.VIDEO_MPEG="video/mpeg",o.VIDEO_OGG="video/ogg",o.VIDEO_WEBM="video/webm",o.VIDEO_QUICKTIME="video/quicktime",o))(Ne||{}),ye=(e=>(e["application/octet-stream"]="APPLICATION_OCTET_STREAM",e["image/jpeg"]="IMAGE_JPEG",e["image/jpg"]="IMAGE_JPG",e["image/png"]="IMAGE_PNG",e["image/gif"]="IMAGE_GIF",e["image/webp"]="IMAGE_WEBP",e["image/svg+xml"]="IMAGE_SVG",e["image/bmp"]="IMAGE_BMP",e["image/tiff"]="IMAGE_TIFF",e["image/x-icon"]="IMAGE_ICO",e["image/avif"]="IMAGE_AVIF",e["application/pdf"]="APPLICATION_PDF",e["text/plain"]="TEXT_PLAIN",e["text/csv"]="TEXT_CSV",e["application/rtf"]="APPLICATION_RTF",e["application/msword"]="APPLICATION_MSWORD",e["application/vnd.openxmlformats-officedocument.wordprocessingml.document"]="APPLICATION_DOCX",e["application/vnd.ms-excel"]="APPLICATION_MSEXCEL",e["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]="APPLICATION_XLSX",e["application/vnd.ms-powerpoint"]="APPLICATION_MSPOWERPOINT",e["application/vnd.openxmlformats-officedocument.presentationml.presentation"]="APPLICATION_PPTX",e["application/vnd.oasis.opendocument.text"]="APPLICATION_ODT",e["application/vnd.oasis.opendocument.spreadsheet"]="APPLICATION_ODS",e["application/vnd.oasis.opendocument.presentation"]="APPLICATION_ODP",e["application/xml"]="APPLICATION_XML",e["text/xml"]="TEXT_XML",e["text/html"]="TEXT_HTML",e["text/css"]="TEXT_CSS",e["application/json"]="APPLICATION_JSON",e["text/javascript"]="TEXT_JAVASCRIPT",e["application/zip"]="APPLICATION_ZIP",e["application/gzip"]="APPLICATION_GZIP",e["application/vnd.rar"]="APPLICATION_RAR",e["application/x-7z-compressed"]="APPLICATION_7Z",e["audio/mpeg"]="AUDIO_MPEG",e["audio/wav"]="AUDIO_WAV",e["audio/ogg"]="AUDIO_OGG",e["audio/webm"]="AUDIO_WEBM",e["audio/aac"]="AUDIO_AAC",e["video/mp4"]="VIDEO_MP4",e["video/mpeg"]="VIDEO_MPEG",e["video/ogg"]="VIDEO_OGG",e["video/webm"]="VIDEO_WEBM",e["video/quicktime"]="VIDEO_QUICKTIME",e))(ye||{});var vr=({createFilesMutation:e,queryFiles:t,fileIds:r,files:a,file:i,skip:l})=>{let{showErrorMessage:s}=a$8(),[g,d]=useState(!1),[n,p]=useState(!1),[h,m]=useState(null),[c,v]=useState(void 0),E=useRef([]),y=useMemo(()=>c?.[0],[c]),F=useMemo(()=>{if(!l)return i?[i]:a},[i,a,l]),R=useCallback(async(f,x)=>{if(!f?.length){x?.append||v(void 0),p(!1);return}try{p(!0);let P=await Promise.all(f.map(async({url:u,name:A,id:O},w)=>{let C=await(await fetch(u)).blob(),B=A||u.split("/").pop()||"image",U=new File([C],B,{type:C.type});return U.id=O,U.url=u,U.index=w,U}));v(u=>{let A=x?.append?[...u||[],...P]:P;return x?.order?x.order.map(O=>A.find(w=>w.id===O)).filter(O=>!!O):A});}catch(P){console.error("Erro ao carregar preview dos arquivos:",P),x?.append||v(void 0);}finally{p(!1);}},[]);useEffect(()=>{(!r?.length||!t)&&(R(void 0),E.current=[]);},[r,t,R]),useEffect(()=>{if(!r?.length||!t)return;let f=r.filter(x=>!E.current.includes(x));if(!f.length){c?.every((P,u)=>P.id===r[u])||v(P=>P&&r.map(u=>P.find(A=>A.id===u)).filter(u=>!!u)),E.current=r;return}t({ids:f}).unwrap().then(({files:x})=>{let P=f.map(u=>x.find(A=>A.id===u)).filter(u=>!!u);R(P,{append:!0,order:r}),E.current=r;});},[r,t,R,c]);let L=n||g;return useEffect(()=>{R(F);},[F,R]),{filesPreview:c,filePreview:y,uploadFiles:async f=>{if(f?.length){d(!0);try{let x=f[0].type||"application/octet-stream",P=ye[x];if(!P)throw new Error(`Tipo de arquivo n\xE3o suportado: ${x}`);let u=await e({files:[{content_type:P,name:f[0].name}]}).unwrap(),A=u.files.map(w=>w.id);return (await Promise.all(f.map(w=>fetch(u.files[0].url,{method:"PUT",headers:{"Content-Type":x},body:w})))).forEach(w=>{if(!w.ok)throw new Error(`Erro no upload: ${w.statusText}`)}),R(u.files),A}catch(x){throw m(x),s(x,"Erro no upload"),x}finally{d(!1);}}},isUploadingFiles:g,isLoadingPreview:n,isUploadOrLoadingFiles:L,uploadFilesError:h}},Ar=vr;var wr=({sx:e,id:t,name:r,tabIndex:a,uploading:i,getRootProps:l,getInputProps:s,isDragActive:g,isError:d,disabled:n,dropZoneSxProps:p,dropZoneContent:h,children:m,...c})=>jsxs(Fe,{children:[i&&jsx(a$7,{"data-testid":"uploading-progress-bar"}),jsxs(xe,{sx:{width:1,position:"relative",...e},children:[jsxs(Ke,{...l(),"data-testid":"drop-zone-styled-area",isError:d,isDragActive:g,disabled:!!n,sx:p,...c,children:[jsx("input",{...s(),id:t,tabIndex:a,name:r}),h]}),m]})]}),J=wr;var Rr=({header:e,description:t,sx:r,...a})=>jsxs(ae,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...a,children:[jsx(a$4,{sx:{width:220}}),jsxs("div",{children:[jsx(Ge,{gutterBottom:!0,variant:"h5",children:e||"Soltar ou selecionar arquivos"}),jsx(Ge,{variant:"body2",sx:{color:"text.secondary"},children:t||jsxs(Fragment,{children:["Solte os arquivos aqui ou clique",jsx(Ge,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua m\xE1quina"]})})]})]}),Q=memo(Rr);var Lr=({onRemove:e,onReorder:t,onFilesSelect:r,id:a,disabled:i,error:l,helperText:s,files:g,thumbnail:d,dropZoneSxProps:n,uploading:p,tabIndex:h,maxFiles:m,...c})=>{let{files:v,dropzoneProps:E,handleRemove:y,setFiles:F}=Z({filesToUpload:g,onFilesSelect:r,onRemove:e,dropzoneOptions:{multiple:!0,disabled:i,...c},maxFiles:m}),{getRootProps:R,getInputProps:L,isDragActive:b,isDragReject:f}=E,x=useCallback((A,O)=>{F(w=>{let _=[...w],[C]=_.splice(A,1);return _.splice(O,0,C),t?.(A,O,_),_});},[t,F]),P=!!v?.length,u=f||!!l;return jsxs(J,{id:a,uploading:p,disabled:i,dropZoneSxProps:n,tabIndex:h,getRootProps:R,getInputProps:L,isDragActive:b,isError:u,dropZoneContent:jsx(Q,{}),children:[jsx(W,{disabled:i,helperText:s,isError:u}),P&&jsx(xe,{sx:{my:3},children:jsx(be,{files:v,thumbnail:!!d,onRemove:e?y:void 0,onReorder:t?x:void 0})})]})},Mr=memo(Lr);var Br=({onFilesSelect:e,onRemove:t,onReorder:r,id:a,disabled:i,error:l,helperText:s,files:g,dropZoneSxProps:d,placeholderProps:n,placeholderAlt:p,uploading:h,tabIndex:m,maxFiles:c,aspectRatio:v,enableCrop:E=!0,convertToWebp:y=!0,cropSize:F,name:R,label:L,...b})=>{let{files:f,dropzoneProps:x,cropState:P,handleRemove:u,aspectRatio:A,setFiles:O}=Z({filesToUpload:g,onFilesSelect:e,onRemove:t,dropzoneOptions:{accept:{"image/*":[".jpeg",".jpg",".png",".gif",".webp"]},multiple:!0,disabled:i,...b},enableCrop:E,customAspectRatio:v,convertToWebp:y,maxFiles:c,cropSize:F}),{getRootProps:w,getInputProps:_,isDragActive:C,isDragReject:B}=x,{cropModalOpen:U,imagePreview:oe,cropLoading:re,onCropInitialized:k,handleCropSave:G,handleCropCancel:H,currentImageIndex:N,totalPendingImages:T}=P,q=useCallback((se,o)=>{O(D=>{let I=[...D],[j]=I.splice(se,1);return I.splice(o,0,j),r?.(se,o,I),I});},[r,O]),ge=!!f?.length,te=B||!!l,ne=useMemo(()=>{let se=L??"Ajustar Imagem",o=T>1?` (${N} de ${T})`:"";return `${se}${o}`},[L,T,N]);return jsxs(J,{id:a,name:R,uploading:h,disabled:i,dropZoneSxProps:d,tabIndex:m,getRootProps:w,getInputProps:_,isDragActive:C,isError:te,dropZoneContent:jsx(Fragment,{children:p?jsx(ae,{children:p}):jsx(Q,{header:n?.header,description:n?.description})}),children:[jsx(W,{disabled:i,helperText:s,isError:te}),ge&&jsx(Fragment,{children:jsx(xe,{sx:{my:3,ml:.5},children:jsx(be,{files:f,thumbnail:!0,onRemove:u,onReorder:r?q:void 0})})}),jsx(a$5,{open:U,onClose:H,label:ne,imageSrc:oe,aspectRatio:A,onInitialized:k,onSave:G,loading:re,cropSize:F})]})},Gr=memo(Br);var Hr=({onFileSelect:e$1,onRemove:t,file:r,id:a,disabled:i,error:l,helperText:s,sx:g,dropZoneSxProps:d,uploading:n,tabIndex:p,...h})=>{let{file:m$1,dropzoneProps:c,handleRemove:v}=Z({filesToUpload:r,onFileSelect:e$1,onRemove:t,dropzoneOptions:{multiple:!1,disabled:i,...h}}),{getRootProps:E,getInputProps:y,isDragActive:F,isDragReject:R}=c,L=useCallback(P=>{P.stopPropagation(),v(m$1||void 0);},[m$1,v]),b=!!m$1,f$1=typeof m$1=="string",x=R||!!l;return jsx(J,{id:a,uploading:n,disabled:i,dropZoneSxProps:d,tabIndex:p,getRootProps:E,getInputProps:y,isDragActive:F,isError:x,dropZoneContent:jsxs(Fragment,{children:[!b&&jsx(Q,{}),b&&jsxs(ae,{component:m.div,...j().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:P=>`solid 1px ${P.palette.divider}`,...g},children:[jsx(f,{file:m$1}),jsxs(ae,{flexGrow:1,sx:{minWidth:0},children:[jsx(Ge,{variant:"subtitle2",noWrap:!0,children:f$1?m$1:m$1.name}),jsx(Ge,{variant:"caption",sx:{color:"text.secondary"},children:f$1?"":e(m$1.size)})]}),t&&jsx(a$3,{title:"Remover arquivo",children:jsx(Je,{edge:"end",size:"small",disabled:i,"aria-label":"Remover arquivo",onClick:L,children:jsx(a$6,{icon:"DELETE_MARK_BUTTON_02",width:16})})})]})]}),children:jsx(W,{disabled:i,helperText:s,isError:x})})},Xr=memo(Hr);var Yr=({onRemove:e,onFileSelect:t,file:r,id:a,disabled:i,error:l,helperText:s,dropZoneSxProps:g,placeholderProps:d,placeholderAlt:n,uploading:p,tabIndex:h,aspectRatio:m,enableCrop:c=!0,convertToWebp:v=!0,name:E,label:y,cropSize:F,...R})=>{let[L,b]=useState(!1),{file:f,dropzoneProps:x,cropState:P,handleRemove:u,aspectRatio:A}=Z({filesToUpload:r,onFileSelect:t,onRemove:e,dropzoneOptions:{accept:{"image/*":[".jpeg",".jpg",".png",".gif",".webp"]},multiple:!1,disabled:i,...R},enableCrop:c,customAspectRatio:m,convertToWebp:v,cropSize:F}),{getRootProps:O,getInputProps:w,isDragActive:_,isDragReject:C}=x,{cropModalOpen:B,imagePreview:U,cropLoading:oe,onCropInitialized:re,handleCropSave:k,handleCropCancel:G}=P,H=useCallback(()=>{u(f||void 0);},[f,u]),N=!!f,T=C||!!l,q=N?{opacity:0}:{opacity:1};return jsxs(Fe,{children:[(p||L)&&jsx(a$7,{}),jsxs(J,{id:a,uploading:p,disabled:i,dropZoneSxProps:g,tabIndex:h,getRootProps:O,getInputProps:w,isDragActive:_,isError:T,name:E,dropZoneContent:jsxs(Fragment,{children:[n?jsx(ae,{sx:q,children:n}):jsx(Q,{sx:q,header:d?.title,description:d?.description}),N&&jsx(Ue,{file:f,cropSize:F,isLoading:L,isUploading:p,onLoading:b,aspectRatio:A})]}),children:[jsx(W,{disabled:i,helperText:s,isError:T}),N&&e&&jsx(eo,{size:"small",onClick:H,disabled:i,label:"Remover arquivo",children:jsx(a$6,{icon:"DELETE_MARK_BUTTON_02",width:16})}),jsx(a$5,{open:B,onClose:G,label:y??"Ajustar Imagem",imageSrc:U,aspectRatio:A,onInitialized:re,onSave:k,loading:oe,cropSize:F})]})]})},et=memo(Yr);var nt=({onFileSelect:e,onRemove:t,file:r,disabled:a,label:i,id:l,tabIndex:s,error:g,helperText:d,sx:n,name:p,maxSize:h,uploading:m,aspectRatio:c=1,enableCrop:v=!0,convertToWebp:E=!0,cropSize:y,...F})=>{let[R,L]=useState(!1),{file:b,dropzoneProps:f,cropState:x,handleRemove:P}=Z({filesToUpload:r,onFileSelect:e,onRemove:t,dropzoneOptions:{accept:{"image/*":[".jpeg",".jpg",".png",".gif",".webp"]},multiple:!1,disabled:a,maxSize:h,...F},enableCrop:v,customAspectRatio:c,convertToWebp:E,cropSize:y}),{getRootProps:u,getInputProps:A,isDragActive:O,isDragReject:w}=f,{cropModalOpen:_,imagePreview:C,cropLoading:B,onCropInitialized:U,handleCropSave:oe,handleCropCancel:re}=x,k=w||!!g,G=R||m,H=!!t,N=useRef(""),T=useRef();useEffect(()=>{if(!b){N.current="",T.current=void 0;return}let te=b.id??`${b.name}-${b.size}-${b.lastModified}`;if(T.current===te)return;T.current=te,L(!0);let ne=URL.createObjectURL(b);return N.current=ne,()=>{URL.revokeObjectURL(ne);}},[b]);let q=()=>{L(!1);},ge=()=>H&&b?()=>P(b):u().onClick;return jsxs(Fragment,{children:[jsxs(so,{sx:n,isError:k,isDragActive:O,hasFile:!!b,...u(),onClick:ge(),children:[jsxs(ao,{children:[b&&jsx(lo,{alt:"Avatar Preview",src:N.current,onLoad:q,...G&&{sx:{filter:"blur(5px) !important",scale:1.2,opacity:.7}}}),b&&G&&jsx(no,{children:jsx(at,{size:135,thickness:1,color:"primary"})}),!b&&!G&&jsxs(ze,{isError:k,hasFile:!1,children:[jsx(a$6,{icon:"ADD_IMAGE",width:32}),jsx(Ge,{variant:"caption",textAlign:"center",sx:{color:k?"error.main":"text.disabled"},children:"Adicionar foto"})]}),b&&!G&&jsxs(ze,{isError:k,hasFile:!0,children:[jsx(a$6,{icon:H?"DELETE_MARK_BUTTON_02":"ADD_IMAGE",width:32}),jsx(Ge,{variant:"caption",textAlign:"center",sx:{color:k?"error.main":"common.white"},children:H?"Remover foto":"Alterar foto"})]})]}),jsx("input",{name:p,id:l,tabIndex:s,...A()}),jsx(ae,{spacing:.5,sx:{pt:1},children:jsx(W,{helperText:d,disabled:a,isError:k})}),b&&!G&&jsx(ae,{direction:"row",justifyContent:"center",spacing:1,sx:{pt:1,mb:-1},children:jsx(Ge,{variant:"caption",component:"span",sx:{px:.75,cursor:"pointer",borderRadius:.75,color:"error.main","&:hover":{color:"error.dark",bgcolor:"background.default"}},onClick:()=>P(b),children:"Remover"})})]}),_&&C&&jsx(a$5,{open:_,onClose:re,label:i??"Ajustar Imagem",imageSrc:C,aspectRatio:c,onInitialized:U,onSave:oe,loading:B,cropSize:y,cropShape:"round"})]})},st=memo(nt);var ct=({error:e,name:t,disabled:r,sx:a,...i})=>{let{getRootProps:l,getInputProps:s,isDragActive:g,isDragReject:d}=useDropzone({disabled:r,...i}),n=d||e;return jsxs(oo,{...l(),isDragActive:g,hasError:!!n,disabled:!!r,sx:a,"data-testid":"upload-box",children:[jsx("input",{name:t,...s()}),"Selecionar arquivo"]})},mt=memo(ct);
36
36
 
37
- export { Ue as ContentType, Re as FileContentType, T as HelperText, fe as MultiFilePreview, Or as MultipleFileUpload, Tr as MultipleImageUpload, Ne as SingleFilePreview, $r as SingleFileUpload, Qr as SingleImageUpload, at as UploadAvatar, dt as UploadSimpleBox, Io as convertToWebP, bi as isImageFile, B as useDropzoneUploader, hr as useFileUploadService };
37
+ export { Ne as ContentType, ye as FileContentType, W as HelperText, be as MultiFilePreview, Mr as MultipleFileUpload, Gr as MultipleImageUpload, Ue as SingleFilePreview, Xr as SingleFileUpload, et as SingleImageUpload, st as UploadAvatar, mt as UploadSimpleBox, ho as convertToWebP, hi as isImageFile, Z as useDropzoneUploader, Ar as useFileUploadService };
@@ -1,3 +1,3 @@
1
- export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from '../../chunk-GOC7PC2S.js';
2
- export { m as action, k as background, l as baseAction, n as basePalette, q as colorSchemes, i as common, a as components, r as createShadowColor, s as customShadows, p as darkPalette, h as error, b as grey, e as info, o as lightPalette, c as primary, d as secondary, f as success, j as text, g as warning } from '../../chunk-CFYNJQGN.js';
1
+ export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from '../../chunk-JKQRVJQX.js';
2
+ export { m as action, k as background, l as baseAction, n as basePalette, q as colorSchemes, i as common, a as components, r as createShadowColor, s as customShadows, p as darkPalette, h as error, b as grey, e as info, o as lightPalette, c as primary, d as secondary, f as success, j as text, g as warning } from '../../chunk-VULBXTS2.js';
3
3
  import '../../chunk-D27ND54J.js';
@@ -1,7 +1,7 @@
1
- export { a as default } from '../chunk-COWMZKQG.js';
2
- import '../chunk-GOC7PC2S.js';
3
- import '../chunk-MCT77MRN.js';
1
+ export { a as default } from '../chunk-RCRI7KCH.js';
2
+ import '../chunk-JKQRVJQX.js';
3
+ import '../chunk-HN2NS2GZ.js';
4
4
  import '../chunk-CFVUZ4S5.js';
5
- import '../chunk-CFYNJQGN.js';
5
+ import '../chunk-VULBXTS2.js';
6
6
  import '../chunk-GUFT6XPG.js';
7
7
  import '../chunk-D27ND54J.js';
@@ -1,4 +1,4 @@
1
- export { c as buildPrimaryColors, b as updateComponentsWithSettings, a as updateCoreWithSettings } from '../../chunk-MCT77MRN.js';
1
+ export { c as buildPrimaryColors, b as updateComponentsWithSettings, a as updateCoreWithSettings } from '../../chunk-HN2NS2GZ.js';
2
2
  import '../../chunk-CFVUZ4S5.js';
3
- import '../../chunk-CFYNJQGN.js';
3
+ import '../../chunk-VULBXTS2.js';
4
4
  import '../../chunk-D27ND54J.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.4.47",
3
+ "version": "2.4.49",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -1,43 +0,0 @@
1
- import { i as i$1, q as q$1, r, a, h, g } from './chunk-D27ND54J.js';
2
- import { accordionClasses } from '@mui/material/Accordion';
3
- import { accordionSummaryClasses } from '@mui/material/AccordionSummary';
4
- import { typographyClasses } from '@mui/material/Typography';
5
- import { alertClasses } from '@mui/material/Alert';
6
- import c, { svgIconClasses } from '@mui/material/SvgIcon';
7
- import { jsx, jsxs } from 'react/jsx-runtime';
8
- import { autocompleteClasses } from '@mui/material/Autocomplete';
9
- import { avatarGroupClasses } from '@mui/material/AvatarGroup';
10
- import { badgeClasses } from '@mui/material/Badge';
11
- import { loadingButtonClasses } from '@mui/lab/LoadingButton';
12
- import { buttonClasses } from '@mui/material/Button';
13
- import { fabClasses } from '@mui/material/Fab';
14
- import { buttonGroupClasses } from '@mui/material/ButtonGroup';
15
- import { toggleButtonClasses } from '@mui/material/ToggleButton';
16
- import { checkboxClasses } from '@mui/material/Checkbox';
17
- import { chipClasses } from '@mui/material/Chip';
18
- import { inputLabelClasses } from '@mui/material/InputLabel';
19
- import { circularProgressClasses } from '@mui/material/CircularProgress';
20
- import { formControlLabelClasses } from '@mui/material/FormControlLabel';
21
- import { iconButtonClasses } from '@mui/material/IconButton';
22
- import { inputBaseClasses } from '@mui/material/InputBase';
23
- import { listClasses } from '@mui/material/List';
24
- import { listItemIconClasses } from '@mui/material/ListItemIcon';
25
- import { paperClasses } from '@mui/material/Paper';
26
- import { textFieldClasses } from '@mui/material/TextField';
27
- import { dialogActionsClasses } from '@mui/material/DialogActions';
28
- import { paginationItemClasses } from '@mui/material/PaginationItem';
29
- import { radioClasses } from '@mui/material/Radio';
30
- import { ratingClasses } from '@mui/material/Rating';
31
- import { sliderClasses } from '@mui/material/Slider';
32
- import { switchClasses } from '@mui/material/Switch';
33
- import { tableCellClasses } from '@mui/material/TableCell';
34
- import { tableRowClasses } from '@mui/material/TableRow';
35
- import { tabClasses } from '@mui/material/Tab';
36
- import { filledInputClasses } from '@mui/material/FilledInput';
37
- import { outlinedInputClasses } from '@mui/material/OutlinedInput';
38
- import { alpha } from '@mui/material/styles';
39
- import { tooltipClasses } from '@mui/material/Tooltip';
40
-
41
- var Br={styleOverrides:{root:({theme:o})=>({backgroundColor:"transparent",[`&.${accordionClasses.expanded}`]:{boxShadow:o.customShadows.z8,borderRadius:o.shape.borderRadius,backgroundColor:o.vars.palette.background.paper},[`&.${accordionClasses.disabled}`]:{backgroundColor:"transparent"}})}},Lr={styleOverrides:{root:({theme:o})=>({paddingLeft:o.spacing(2),paddingRight:o.spacing(1),[`&.${accordionSummaryClasses.disabled}`]:{opacity:1,color:o.vars.palette.action.disabled,[`& .${typographyClasses.root}`]:{color:"inherit"}}}),expandIconWrapper:{color:"inherit"}}},ao={MuiAccordion:Br,MuiAccordionSummary:Lr};var Ar=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-10 5.75a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-1.5 0v6c0 .414.336.75.75.75M12 7a1 1 0 1 1 0 2a1 1 0 0 1 0-2",clipRule:"evenodd"})}),Dr=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-5.97-3.03a.75.75 0 0 1 0 1.06l-5 5a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l1.47 1.47l2.235-2.235L14.97 8.97a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})}),zr=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.312 10.762C8.23 5.587 9.689 3 12 3c2.31 0 3.77 2.587 6.688 7.762l.364.644c2.425 4.3 3.638 6.45 2.542 8.022S17.786 21 12.364 21h-.728c-5.422 0-8.134 0-9.23-1.572s.117-3.722 2.542-8.022zM12 7.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75M12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2",clipRule:"evenodd"})}),Vr=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.843 3.802C9.872 2.601 10.886 2 12 2c1.114 0 2.128.6 4.157 1.802l.686.406c2.029 1.202 3.043 1.803 3.6 2.792c.557.99.557 2.19.557 4.594v.812c0 2.403 0 3.605-.557 4.594c-.557.99-1.571 1.59-3.6 2.791l-.686.407C14.128 21.399 13.114 22 12 22c-1.114 0-2.128-.6-4.157-1.802l-.686-.407c-2.029-1.2-3.043-1.802-3.6-2.791C3 16.01 3 14.81 3 12.406v-.812C3 9.19 3 7.989 3.557 7c.557-.99 1.571-1.59 3.6-2.792zM13 16a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-1-9.75a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})}),Gr=["info","success","warning","error"];function E(o,r){return Gr.reduce((a,s)=>(o.severity===s&&(a=r(s)),a),{})}var Wr={defaultProps:{iconMapping:{error:jsx(Vr,{}),info:jsx(Ar,{}),success:jsx(Dr,{}),warning:jsx(zr,{})}},styleOverrides:{icon:{opacity:1},standard:({ownerState:o,theme:r})=>({...{colors:E(o,a$1=>({color:r.vars.palette[a$1].darker,backgroundColor:r.vars.palette[a$1].lighter,[a.dark]:{color:r.vars.palette[a$1].lighter,backgroundColor:r.vars.palette[a$1].darker},[`& .${alertClasses.icon}`]:{color:r.vars.palette[a$1].main,[a.dark]:{color:r.vars.palette[a$1].light}}}))}.colors}),filled:({ownerState:o,theme:r})=>({...{colors:E(o,a=>({color:r.vars.palette[a].contrastText}))}.colors}),outlined:({ownerState:o,theme:r})=>({...{colors:E(o,a$1=>({backgroundColor:i$1(r.vars.palette[a$1].mainChannel,.08),color:r.vars.palette[a$1].dark,border:`solid 1px ${i$1(r.vars.palette[a$1].mainChannel,.16)}`,[a.dark]:{color:r.vars.palette[a$1].light},[`& .${alertClasses.icon}`]:{color:r.vars.palette[a$1].main}}))}.colors})}},Er={styleOverrides:{root:({theme:o})=>({marginBottom:o.spacing(.5),fontWeight:o.typography.fontWeightSemiBold})}},lo={MuiAlert:Wr,MuiAlertTitle:Er};var Hr={defaultProps:{color:"transparent"},styleOverrides:{root:{boxShadow:"none"}}},io={MuiAppBar:Hr};var Nr=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M12 16a1 1 0 0 1-.64-.23l-6-5a1 1 0 1 1 1.28-1.54L12 13.71l5.36-4.32a1 1 0 0 1 1.41.15a1 1 0 0 1-.14 1.46l-6 4.83A1 1 0 0 1 12 16"})}),_r={defaultProps:{popupIcon:jsx(Nr,{})},styleOverrides:{root:({theme:o})=>({[`& span.${autocompleteClasses.tag}`]:{...o.typography.subtitle2,height:24,minWidth:24,lineHeight:"24px",textAlign:"center",padding:o.spacing(0,.75),color:o.vars.palette.text.secondary,borderRadius:o.shape.borderRadius,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16)}}),paper:({theme:o})=>({...q$1({theme:o,dropdown:!0})}),listbox:({theme:o})=>({padding:0,[`& .${autocompleteClasses.option}`]:{...r(o)}}),endAdornment:{[`& .${svgIconClasses.root}`]:{width:18,height:18}}}},po={MuiAutocomplete:_r};var jr=["primary","secondary","info","success","warning","error"],Xr=o=>{let r=o.charAt(0).toLowerCase();return ["a","c","f"].includes(r)?"primary":["e","d","h"].includes(r)?"secondary":["i","k","l"].includes(r)?"info":["m","n","p"].includes(r)?"success":["q","s","t"].includes(r)?"warning":["v","x","y"].includes(r)?"error":"default"},co={colors:jr.map(o=>({props:({ownerState:r})=>r.color===o,style:({theme:r})=>({color:r.vars.palette[o].contrastText,backgroundColor:r.vars.palette[o].main})})),defaultColor:[{props:({ownerState:o})=>o.color==="default",style:({theme:o})=>({color:o.vars.palette.text.secondary,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.24)})}]},Yr={variants:[...co.defaultColor,...co.colors],styleOverrides:{rounded:({theme:o})=>({borderRadius:o.shape.borderRadius*1.5}),colorDefault:({ownerState:o,theme:r})=>{let t=Xr(`${o.alt}`);return {...!!o.alt&&{...t!=="default"?{color:r.vars.palette[t].contrastText,backgroundColor:r.vars.palette[t].main}:{color:r.vars.palette.text.secondary,backgroundColor:i$1(r.vars.palette.grey["500Channel"],.24)}}}}}},Jr={defaultProps:{max:4},styleOverrides:{root:({ownerState:o})=>({justifyContent:"flex-end",...o.variant==="compact"&&{width:40,height:40,position:"relative",[`& .${avatarGroupClasses.avatar}`]:{margin:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}}}),avatar:({theme:o})=>({fontSize:16,fontWeight:o.typography.fontWeightSemiBold,"&:first-of-type":{fontSize:12,color:o.vars.palette.primary.dark,backgroundColor:o.vars.palette.primary.lighter}})}},mo={MuiAvatar:Yr,MuiAvatarGroup:Jr};var Kr={styleOverrides:{root:({theme:o})=>({backgroundColor:i$1(o.vars.palette.grey["800Channel"],.48)}),invisible:{background:"transparent"}}},uo={MuiBackdrop:Kr};var L=o=>({width:10,zIndex:9,padding:0,height:10,minWidth:"auto","&::before, &::after":{content:'""',borderRadius:1,backgroundColor:o.vars.palette.common.white},[`&.${badgeClasses.invisible}`]:{transform:"unset"}}),Qr={variants:[{props:({ownerState:o})=>o.variant==="online",style:({theme:o})=>({[`& .${badgeClasses.badge}`]:{...L(o),backgroundColor:o.vars.palette.success.main}})},{props:({ownerState:o})=>o.variant==="alway",style:({theme:o})=>({[`& .${badgeClasses.badge}`]:{...L(o),backgroundColor:o.vars.palette.warning.main,"&::before":{width:2,height:4,transform:"translateX(1px) translateY(-1px)"},"&::after":{width:2,height:4,transform:"translateY(1px) rotate(125deg)"}}})},{props:({ownerState:o})=>o.variant==="busy",style:({theme:o})=>({[`& .${badgeClasses.badge}`]:{...L(o),backgroundColor:o.vars.palette.error.main,"&::before":{width:6,height:2}}})},{props:({ownerState:o})=>o.variant==="offline",style:({theme:o})=>({[`& .${badgeClasses.badge}`]:{...L(o),backgroundColor:o.vars.palette.text.disabled,"&::before":{width:6,height:6,borderRadius:"50%"}}})},{props:({ownerState:o})=>o.variant==="invisible",style:{[`& .${badgeClasses.badge}`]:{display:"none"}}}],styleOverrides:{dot:{borderRadius:"50%"}}},go={MuiBadge:Qr};var oe={styleOverrides:{ol:({theme:o})=>({rowGap:o.spacing(.5),columnGap:o.spacing(2)}),li:({theme:o})=>({display:"inline-flex","& > *":{...o.typography.body2}}),separator:{margin:0}}},Co={MuiBreadcrumbs:oe};var bo=["primary","secondary","info","success","warning","error"];function ho(o,r){return bo.reduce((a,s)=>(!o.disabled&&o.color===s&&(a=r(s)),a),{})}var re={styleOverrides:{root:({theme:o})=>({fontFamily:o.typography.fontFamily})}},yo={colors:bo.map(o=>({props:({ownerState:r})=>!r.disabled&&r.variant==="soft"&&r.color===o,style:({theme:r})=>({color:r.vars.palette[o].dark,backgroundColor:i$1(r.vars.palette[o].mainChannel,.16),"&:hover":{backgroundColor:i$1(r.vars.palette[o].mainChannel,.32)},[a.dark]:{color:r.vars.palette[o].light}})})),base:[{props:({ownerState:o})=>o.variant==="soft",style:({theme:o})=>({backgroundColor:i$1(o.vars.palette.grey["500Channel"],.08),"&:hover":{backgroundColor:i$1(o.vars.palette.grey["500Channel"],.24)},[`&.${buttonClasses.disabled}`]:{backgroundColor:o.vars.palette.action.disabledBackground},[`& .${loadingButtonClasses.loadingIndicatorStart}`]:{left:14},[`& .${loadingButtonClasses.loadingIndicatorEnd}`]:{right:14},[`&.${buttonClasses.sizeSmall}`]:{[`& .${loadingButtonClasses.loadingIndicatorStart}`]:{left:10},[`& .${loadingButtonClasses.loadingIndicatorEnd}`]:{right:10}}})}]},ee={defaultProps:{color:"primary",disableElevation:!0},variants:[...yo.base,...yo.colors],styleOverrides:{contained:({theme:o,ownerState:r})=>{let t={colors:ho(r,a=>({"&:hover":{boxShadow:o.customShadows[a]}})),inheritColor:{...r.color==="inherit"&&!r.disabled&&{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.grey[800],"&:hover":{boxShadow:o.customShadows.z8,backgroundColor:o.vars.palette.grey[700]},[a.dark]:{color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.common.white,"&:hover":{backgroundColor:o.vars.palette.grey[400]}}}}};return {...t.inheritColor,...t.colors}},outlined:({theme:o,ownerState:r})=>{let t={colors:ho(r,a=>({borderColor:i$1(o.vars.palette[a].mainChannel,.48)})),inheritColor:{...r.color==="inherit"&&!r.disabled&&{borderColor:i$1(o.vars.palette.grey["500Channel"],.32),"&:hover":{backgroundColor:o.vars.palette.action.hover}}},base:{"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor"}}};return {...t.base,...t.inheritColor,...t.colors}},text:({ownerState:o,theme:r})=>({...{inheritColor:{...o.color==="inherit"&&!o.disabled&&{"&:hover":{backgroundColor:r.vars.palette.action.hover}}}}.inheritColor}),sizeSmall:({ownerState:o})=>({height:30,...o.variant==="text"?{paddingLeft:"4px",paddingRight:"4px"}:{paddingLeft:"8px",paddingRight:"8px"}}),sizeMedium:({ownerState:o})=>({...o.variant==="text"?{paddingLeft:"8px",paddingRight:"8px"}:{paddingLeft:"12px",paddingRight:"12px"}}),sizeLarge:({ownerState:o})=>({height:48,...o.variant==="text"?{paddingLeft:"10px",paddingRight:"10px"}:{paddingLeft:"16px",paddingRight:"16px"}})}},fo={MuiButtonBase:re,MuiButton:ee};var q=["primary","secondary","info","success","warning","error"],Po=["default","inherit"],te=["extended","outlinedExtended","softExtended"],xo=["circular","extended"],ko=["outlined","outlinedExtended"],Mo=["soft","softExtended"],So={colors:q.map(o=>({props:({ownerState:r})=>!r.disabled&&xo.includes(r.variant)&&r.color===o,style:({theme:r})=>({boxShadow:r.customShadows[o],"&:hover":{boxShadow:"none"}})})),base:[{props:({ownerState:o})=>xo.includes(o.variant)&&Po.includes(o.color),style:({theme:o})=>({boxShadow:o.customShadows.z8,color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:o.vars.palette.grey[400]},[`&.${fabClasses.colorInherit}`]:{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.text.primary,"&:hover":{backgroundColor:o.vars.palette.grey[700]},[a.dark]:{color:o.vars.palette.grey[800],"&:hover":{backgroundColor:o.vars.palette.grey[400]}}}})}]},To={colors:q.map(o=>({props:({ownerState:r})=>!r.disabled&&ko.includes(r.variant)&&r.color===o,style:({theme:r})=>({color:r.vars.palette[o].main,border:`solid 1px ${i$1(r.vars.palette[o].mainChannel,.48)}`,"&:hover":{backgroundColor:i$1(r.vars.palette[o].mainChannel,.08)}})})),base:[{props:({ownerState:o})=>ko.includes(o.variant),style:({theme:o})=>({boxShadow:"none",backgroundColor:"transparent",color:o.vars.palette.text.secondary,border:`solid 1px ${i$1(o.vars.palette.grey["500Channel"],.32)}`,"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor",backgroundColor:o.vars.palette.action.hover},[`&.${fabClasses.colorInherit}`]:{color:o.vars.palette.text.primary},[`&.${fabClasses.disabled}`]:{backgroundColor:"transparent",border:`1px solid ${o.vars.palette.action.disabledBackground}`}})}]},Io={colors:q.map(o=>({props:({ownerState:r})=>!r.disabled&&Mo.includes(r.variant)&&r.color===o,style:({theme:r})=>({boxShadow:"none",color:r.vars.palette[o].dark,backgroundColor:i$1(r.vars.palette[o].mainChannel,.16),"&:hover":{boxShadow:"none",backgroundColor:i$1(r.vars.palette[o].mainChannel,.32)},[a.dark]:{color:r.vars.palette[o].light}})})),base:[{props:({ownerState:o})=>Mo.includes(o.variant)&&Po.includes(o.color),style:({theme:o})=>({boxShadow:"none",color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:o.vars.palette.grey[400]},[`&.${fabClasses.colorInherit}`]:{color:o.vars.palette.text.primary,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.08),"&:hover":{backgroundColor:i$1(o.vars.palette.grey["500Channel"],.24)}}})}]},ae=[{props:({ownerState:o})=>te.includes(o.variant),style:({theme:o})=>({height:48,width:"auto",minHeight:48,borderRadius:48/2,gap:o.spacing(1),padding:o.spacing(0,2),[`&.${fabClasses.sizeSmall}`]:{height:34,minHeight:34,borderRadius:34/2,gap:o.spacing(.5),padding:o.spacing(0,1)},[`&.${fabClasses.sizeMedium}`]:{height:40,minHeight:40,borderRadius:40/2}})}],ne={defaultProps:{color:"primary"},variants:[...So.base,...So.colors,...To.base,...To.colors,...Io.base,...Io.colors,...ae],styleOverrides:{}},$o={MuiFab:ne};var Fo=["primary","secondary","info","success","warning","error"];function Oo(o,r){return Fo.reduce((a,s)=>(!o.disabled&&o.color===s&&(a=r(s)),a),{})}var C=`& .${buttonGroupClasses.firstButton}, & .${buttonGroupClasses.middleButton}`,wo={colors:Fo.map(o=>({props:({ownerState:r})=>!r.disabled&&r.variant==="soft"&&r.color===o,style:({theme:r})=>({[C]:{borderColor:i$1(r.vars.palette[o].darkChannel,.24),[a.dark]:{borderColor:i$1(r.vars.palette[o].lightChannel,.24)}},[`&.${buttonGroupClasses.vertical}`]:{[C]:{borderColor:i$1(r.vars.palette[o].darkChannel,.24),[a.dark]:{borderColor:i$1(r.vars.palette[o].lightChannel,.24)}}}})})),base:[{props:({ownerState:o})=>o.variant==="soft",style:({theme:o})=>({[C]:{borderRight:`solid 1px ${i$1(o.vars.palette.grey["500Channel"],.32)}`,[`&.${buttonGroupClasses.disabled}`]:{borderColor:o.vars.palette.action.disabledBackground}},[`&.${buttonGroupClasses.vertical}`]:{[C]:{borderRight:"none",borderBottom:`solid 1px ${i$1(o.vars.palette.grey["500Channel"],.32)}`,[`&.${buttonGroupClasses.disabled}`]:{borderColor:o.vars.palette.action.disabledBackground}}}})}]},le={defaultProps:{disableElevation:!0},variants:[...wo.base,...wo.colors],styleOverrides:{contained:({theme:o,ownerState:r})=>{let t={colors:Oo(r,a=>({[C]:{borderColor:i$1(o.vars.palette[a].darkChannel,.48)}})),inheritColor:{...r.color==="inherit"&&{[C]:{borderColor:i$1(o.vars.palette.grey["500Channel"],.32)}}},disabled:{...r.disabled&&{[C]:{[`&.${buttonGroupClasses.disabled}`]:{borderColor:o.vars.palette.action.disabledBackground}}}}};return {...t.inheritColor,...t.colors,...t.disabled}},text:({theme:o,ownerState:r})=>{let t={colors:Oo(r,a=>({[C]:{borderColor:i$1(o.vars.palette[a].mainChannel,.48)}})),inheritColor:{...r.color==="inherit"&&{[C]:{borderColor:i$1(o.vars.palette.grey["500Channel"],.32)}}},disabled:{...r.disabled&&{[C]:{[`&.${buttonGroupClasses.disabled}`]:{borderColor:o.vars.palette.action.disabledBackground}}}}};return {...t.inheritColor,...t.colors,...t.disabled}}}},Ro={MuiButtonGroup:le};var ie=["primary","secondary","info","success","warning","error"];function se(o,r){return ie.reduce((a,s)=>(!o.disabled&&o.color===s&&(a=r(s)),a),{})}var pe={styleOverrides:{root:({theme:o,ownerState:r})=>{let t={colors:se(r,a=>({"&:hover":{borderColor:i$1(o.vars.palette[a].mainChannel,.48),backgroundColor:i$1(o.vars.palette[a].mainChannel,o.vars.palette.action.hoverOpacity)}})),selected:{[`&.${toggleButtonClasses.selected}`]:{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor"}},disabled:{...r.disabled&&{[`&.${toggleButtonClasses.selected}`]:{color:o.vars.palette.action.disabled,backgroundColor:o.vars.palette.action.selected,borderColor:o.vars.palette.action.disabledBackground}}}};return {...t.colors,...t.selected,...t.disabled}}}},de={styleOverrides:{root:({theme:o})=>({gap:4,padding:4,border:`solid 1px ${i$1(o.vars.palette.grey["500Channel"],.08)}`}),grouped:{[`&.${toggleButtonClasses.root}`]:{border:"none",borderRadius:"inherit"},[`&.${toggleButtonClasses.selected}`]:{boxShadow:"none"}}}},Bo={MuiToggleButton:pe,MuiToggleButtonGroup:de};var ce={styleOverrides:{root:({theme:o})=>({position:"relative",boxShadow:o.customShadows.card,borderRadius:o.shape.borderRadius*2,zIndex:0})}},me={defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:"4px"}},styleOverrides:{root:({theme:o})=>({padding:o.spacing(3,3,0)})}},ue={styleOverrides:{root:({theme:o})=>({padding:o.spacing(3)})}},Lo={MuiCard:ce,MuiCardHeader:me,MuiCardContent:ue};var ge=o=>jsx(c,{...o,children:jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})}),Ce=o=>jsx(c,{...o,children:jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})}),ve=o=>jsx(c,{...o,children:jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})}),he={defaultProps:{size:"small",icon:jsx(ge,{}),checkedIcon:jsx(Ce,{}),indeterminateIcon:jsx(ve,{})},styleOverrides:{root:({ownerState:o,theme:r})=>({padding:r.spacing(1),...o.color==="default"&&{[`&.${checkboxClasses.checked}`]:{color:r.vars.palette.text.primary}},[`&.${checkboxClasses.disabled}`]:{color:r.vars.palette.action.disabled}})}},Do={MuiCheckbox:he};var be=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10M8.97 8.97a.75.75 0 0 1 1.06 0L12 10.94l1.97-1.97a.75.75 0 0 1 1.06 1.06L13.06 12l1.97 1.97a.75.75 0 0 1-1.06 1.06L12 13.06l-1.97 1.97a.75.75 0 0 1-1.06-1.06L10.94 12l-1.97-1.97a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})}),Vo=["primary","secondary","info","success","warning","error"];function fe(o,r){return Vo.reduce((a,s)=>(!o.disabled&&o.color===s&&(a=r(s)),a),{})}var zo={colors:Vo.map(o=>({props:({ownerState:r})=>!r.disabled&&r.variant==="soft"&&r.color===o,style:({theme:r})=>({color:r.vars.palette[o].dark,backgroundColor:i$1(r.vars.palette[o].mainChannel,.16),"&:hover":{backgroundColor:i$1(r.vars.palette[o].mainChannel,.32)},[a.dark]:{color:r.vars.palette[o].light}})})),inheritColor:[{props:({ownerState:o})=>o.variant==="soft"&&o.color==="default",style:({theme:o})=>({backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16),"&:hover":{backgroundColor:i$1(o.vars.palette.grey["500Channel"],.32)}})}]},xe={defaultProps:{deleteIcon:jsx(be,{}),color:"primary"},variants:[...zo.inheritColor,...zo.colors],styleOverrides:{root:({ownerState:o,theme:r})=>{let t={colors:fe(o,a=>({[`& .${chipClasses.avatar}`]:{color:r.vars.palette[a].lighter,backgroundColor:r.vars.palette[a].dark}})),disabled:{[`&.${chipClasses.disabled}`]:{opacity:1,[`& .${chipClasses.avatar}`]:{color:r.vars.palette.action.disabled,backgroundColor:r.vars.palette.action.disabledBackground},...o.variant==="outlined"&&{color:r.vars.palette.action.disabled,borderColor:r.vars.palette.action.disabledBackground},...["filled","soft"].includes(o.variant)&&{color:r.vars.palette.action.disabled,backgroundColor:r.vars.palette.action.disabledBackground}}}};return {...t.colors,...t.disabled}},label:({theme:o})=>({fontWeight:o.typography.fontWeightMedium}),icon:{color:"currentColor"},deleteIcon:{opacity:.48,color:"currentColor","&:hover":{opacity:1,color:"currentColor"}},sizeMedium:({theme:o})=>({borderRadius:o.shape.borderRadius*1.25}),sizeSmall:({theme:o})=>({borderRadius:o.shape.borderRadius}),filled:({ownerState:o,theme:r})=>({...{defaultColor:{...!o.disabled&&o.color==="default"&&{color:r.vars.palette.common.white,backgroundColor:r.vars.palette.text.primary,[`& .${chipClasses.avatar}`]:{color:r.vars.palette.text.primary},"&:hover":{backgroundColor:r.vars.palette.grey[700]},[a.dark]:{color:r.vars.palette.grey[800],"&:hover":{backgroundColor:r.vars.palette.grey[100]}}}}}.defaultColor}),outlined:({ownerState:o,theme:r})=>({...{defaultColor:{...!o.disabled&&o.color==="default"&&{borderColor:i$1(r.vars.palette.grey["500Channel"],.32)}}}.defaultColor})}},Go={MuiChip:xe};var ke={styleOverrides:{paper:({ownerState:o,theme:r})=>({boxShadow:r.customShadows.dialog,borderRadius:r.shape.borderRadius*2,...!o.fullScreen&&{margin:r.spacing(2)}}),paperFullScreen:{borderRadius:0}}},Me={styleOverrides:{root:({theme:o})=>({padding:o.spacing(3)})}},Se={styleOverrides:{root:({theme:o})=>({padding:o.spacing(0,3)}),dividers:({theme:o})=>({borderTop:0,borderBottomStyle:"dashed",paddingBottom:o.spacing(3)})}},Te={defaultProps:{disableSpacing:!0},styleOverrides:{root:({theme:o})=>({padding:o.spacing(3),"& > :not(:first-of-type)":{marginLeft:o.spacing(1.5)}})}},Wo={MuiDialog:ke,MuiDialogTitle:Me,MuiDialogContent:Se,MuiDialogActions:Te};var Ie={styleOverrides:{paper:{backgroundColor:"#fff !important",backgroundImage:"none !important"},paperAnchorRight:({ownerState:o,theme:r})=>({...o.variant==="temporary"&&{...q$1({theme:r}),boxShadow:`-40px 40px 80px -8px ${i$1(r.vars.palette.grey["500Channel"],.24)}`,[a.dark]:{boxShadow:`-40px 40px 80px -8px ${i$1(r.vars.palette.common.blackChannel,.24)}`}}}),paperAnchorLeft:({ownerState:o,theme:r})=>({...o.variant==="temporary"&&{...q$1({theme:r}),boxShadow:`40px 40px 80px -8px ${i$1(r.vars.palette.grey["500Channel"],.24)}`,[a.dark]:{boxShadow:`40px 40px 80px -8px ${i$1(r.vars.palette.common.blackChannel,.24)}`}}})}},Eo={MuiDrawer:Ie};var Pe={styleOverrides:{root:({theme:o})=>({...o.typography.body2,color:o.vars.palette.text.disabled,[`&.${inputLabelClasses.shrink}`]:{...o.typography.body1,fontWeight:600,color:o.vars.palette.text.secondary,zIndex:1,[`&.${inputLabelClasses.focused}`]:{color:o.vars.palette.text.primary},[`&.${inputLabelClasses.error}`]:{color:o.vars.palette.error.main},[`&.${inputLabelClasses.disabled}`]:{color:o.vars.palette.text.disabled},[`&.${inputLabelClasses.filled}`]:{transform:"translate(12px, 6px) scale(0.75)"}}})}},$e={defaultProps:{component:"div"},styleOverrides:{root:({theme:o})=>({marginTop:o.spacing(1)})}},Oe={styleOverrides:{label:({theme:o})=>({...o.typography.body2})}},Ho={MuiFormLabel:Pe,MuiFormHelperText:$e,MuiFormControlLabel:Oe};var we={defaultProps:{underline:"hover"},styleOverrides:{}},qo={MuiLink:we};var Fe={styleOverrides:{root:({theme:o})=>({color:"inherit",minWidth:"auto",marginRight:o.spacing(2)})}},Re={styleOverrides:{root:({theme:o})=>({minWidth:"auto",marginRight:o.spacing(2)})}},Be={defaultProps:{primaryTypographyProps:{typography:"subtitle2"}},styleOverrides:{root:{margin:0},multiline:{margin:0}}},Zo={MuiListItemIcon:Fe,MuiListItemAvatar:Re,MuiListItemText:Be};var Le={styleOverrides:{root:({theme:o})=>({...r(o)})}},No={MuiMenuItem:Le};var He={defaultProps:{slots:{columnSortedAscendingIcon:o=>jsx(U,{sx:{color:"text.primary"},...o}),columnSortedDescendingIcon:o=>jsx(jo,{sx:{color:"text.primary"},...o}),columnUnsortedIcon:o=>jsx(U,{fontSize:o.fontSize,className:o.className,sx:{color:"text.disabled"}}),columnMenuIcon:o=>jsx(_e,{width:20,...o}),columnMenuSortAscendingIcon:o=>jsx(U,{...o}),columnMenuSortDescendingIcon:o=>jsx(jo,{...o}),columnMenuFilterIcon:o=>jsx(j,{...o}),columnMenuHideIcon:o=>jsx(Ze,{...o}),columnMenuManageColumnsIcon:o=>jsx(Xo,{...o}),columnSelectorIcon:o=>jsx(Xo,{...o}),filterPanelDeleteIcon:o=>jsx(Yo,{...o}),openFilterButtonIcon:o=>jsx(j,{...o}),columnFilteredIcon:o=>jsx(j,{sx:{width:16,color:"text.primary"},...o}),densityCompactIcon:o=>jsx(Ue,{...o}),densityStandardIcon:o=>jsx(Xe,{...o}),densityComfortableIcon:o=>jsx(je,{...o}),exportIcon:o=>jsx(qe,{...o}),quickFilterIcon:o=>jsx(Ne,{sx:{width:24,height:24,color:"text.secondary"},...o}),quickFilterClearIcon:o=>jsx(Yo,{...o})},slotProps:{basePopper:{placement:"bottom-end"},baseChip:{size:"small"},baseSwitch:{size:"small"},baseCheckbox:{size:"small",disableRipple:!0},baseInputLabel:{shrink:!0},baseTextField:{variant:"outlined"},baseSelect:{native:!0,variant:"outlined"}}},styleOverrides:{root:({theme:o})=>({"--unstable_DataGrid-radius":0,"--DataGrid-rowBorderColor":o.vars.palette.divider,"--DataGrid-containerBackground":o.vars.palette.background.neutral,"--unstable_DataGrid-headWeight":o.typography.fontWeightSemiBold,borderWidth:0,scrollbarWidth:"thin",scrollbarColor:`${i$1(o.vars.palette.text.disabledChannel,.4)} ${i$1(o.vars.palette.text.disabledChannel,.08)}`,"& .MuiDataGrid-filler > div":{borderTopStyle:"dashed"},"& .MuiDataGrid-topContainer::after":{height:0},"& .MuiDataGrid-filler":{borderBottom:"0 !important"}}),withBorderColor:{borderColor:"var(--DataGrid-rowBorderColor)"},columnHeader:({theme:o})=>({fontSize:14,color:o.vars.palette.text.secondary,borderBottom:"0 !important","&--sorted":{color:o.vars.palette.text.primary}}),columnSeparator:{color:"var(--DataGrid-rowBorderColor)"},cell:({theme:o})=>({borderTopStyle:"dashed","&--editing":{boxShadow:"none",backgroundColor:i$1(o.vars.palette.primary.mainChannel,.08)}}),toolbarContainer:({theme:o})=>({gap:o.spacing(2),padding:o.spacing(2),[`& .${textFieldClasses.root}`]:{padding:0,width:"100%",[`& .${inputBaseClasses.input}`]:{paddingTop:o.spacing(2),paddingBottom:o.spacing(2)},[o.breakpoints.up("md")]:{width:"unset"}}}),paper:({theme:o})=>({...q$1({theme:o,dropdown:!0}),padding:0}),menu:({theme:o})=>({[`& .${paperClasses.root}`]:{...q$1({theme:o,dropdown:!0}),minWidth:140},[`& .${listClasses.root}`]:{padding:0,[`& .${listItemIconClasses.root}`]:{minWidth:0,marginRight:o.spacing(2)}}}),menuIcon:({theme:o})=>({[`& .${iconButtonClasses.root}`]:{margin:o.spacing(0,1),padding:o.spacing(.25)}}),iconButtonContainer:({theme:o})=>({[`& .${iconButtonClasses.root}`]:{padding:o.spacing(.25),marginLeft:o.spacing(1)}}),footerContainer:{minHeight:"auto",borderTopStyle:"dashed"},selectedRowCount:{display:"none",whiteSpace:"nowrap"},overlay:({theme:o})=>({[`& .${circularProgressClasses.root}`]:{color:o.vars.palette.text.primary}}),columnsManagementHeader:({theme:o})=>({padding:o.spacing(2.5,2,0,2),[`& .${inputBaseClasses.input}`]:{paddingTop:o.spacing(2),paddingBottom:o.spacing(2)}}),columnsManagement:({theme:o})=>({gap:o.spacing(.5),padding:o.spacing(2,1.5),[`& .${formControlLabelClasses.root}`]:{gap:4,marginLeft:0}}),columnsManagementFooter:({theme:o})=>({borderTopStyle:"dashed",padding:o.spacing(1.5),[`& .${formControlLabelClasses.root}`]:{gap:4,marginLeft:0}}),filterForm:({theme:o})=>({alignItems:"center",gap:o.spacing(1.5),padding:o.spacing(2),[`& .${inputLabelClasses.shrink}`]:{transform:"translate(14px, -9px) scale(0.75)"}}),filterFormDeleteIcon:({theme:o})=>({[`& .${iconButtonClasses.root}`]:{padding:o.spacing(.25),backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16),[`& .${svgIconClasses.root}`]:{width:16,height:16}}})}},Jo={MuiDataGrid:He},U=({...o})=>jsxs(c,{sx:{width:20,height:20,...o.sx},...o,children:[jsx("path",{fill:"currentColor",d:"m8.303 11.596l3.327-3.431a.499.499 0 0 1 .74 0l6.43 6.63c.401.414.158 1.205-.37 1.205h-5.723z"}),jsx("path",{fill:"currentColor",d:"M11.293 16H5.57c-.528 0-.771-.791-.37-1.205l2.406-2.482z",opacity:"0.5"})]}),jo=({...o})=>jsxs(c,{sx:{width:20,height:20,...o.sx},...o,children:[jsx("path",{fill:"currentColor",d:"m8.303 12.404l3.327 3.431c.213.22.527.22.74 0l6.43-6.63C19.201 8.79 18.958 8 18.43 8h-5.723z"}),jsx("path",{fill:"currentColor",d:"M11.293 8H5.57c-.528 0-.771.79-.37 1.205l2.406 2.481z",opacity:"0.5"})]}),j=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",d:"M19 3H5c-1.414 0-2.121 0-2.56.412C2 3.824 2 4.488 2 5.815v.69c0 1.037 0 1.556.26 1.986c.26.43.733.698 1.682 1.232l2.913 1.64c.636.358.955.537 1.183.735c.474.411.766.895.898 1.49c.064.284.064.618.064 1.285v2.67c0 .909 0 1.364.252 1.718c.252.355.7.53 1.594.88c1.879.734 2.818 1.101 3.486.683c.668-.417.668-1.372.668-3.282v-2.67c0-.666 0-1 .064-1.285a2.68 2.68 0 0 1 .899-1.49c.227-.197.546-.376 1.182-.735l2.913-1.64c.948-.533 1.423-.8 1.682-1.23c.26-.43.26-.95.26-1.988v-.69c0-1.326 0-1.99-.44-2.402C21.122 3 20.415 3 19 3"})}),qe=({...o})=>jsxs(c,{sx:{width:20,height:20,...o.sx},...o,children:[jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.845 7.905a.75.75 0 0 0 1.06 0l1.72-1.72v8.19a.75.75 0 0 0 1.5 0v-8.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 0 0 0 1.06",clipRule:"evenodd"}),jsx("path",{fill:"currentColor",d:"M12.375 20.375a8 8 0 0 0 8-8h-3.75c-.943 0-1.414 0-1.707.293c-.293.293-.293.764-.293 1.707a2.25 2.25 0 0 1-4.5 0c0-.943 0-1.414-.293-1.707c-.293-.293-.764-.293-1.707-.293h-3.75a8 8 0 0 0 8 8"})]}),Xo=({...o})=>jsxs(c,{sx:{width:20,height:20,...o.sx},...o,children:[jsx("path",{fill:"currentColor",d:"M9.75 12a2.25 2.25 0 1 1 4.5 0a2.25 2.25 0 0 1-4.5 0"}),jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 12c0 1.64.425 2.191 1.275 3.296C4.972 17.5 7.818 20 12 20c4.182 0 7.028-2.5 8.725-4.704C21.575 14.192 22 13.639 22 12c0-1.64-.425-2.191-1.275-3.296C19.028 6.5 16.182 4 12 4C7.818 4 4.972 6.5 3.275 8.704C2.425 9.81 2 10.361 2 12m10-3.75a3.75 3.75 0 1 0 0 7.5a3.75 3.75 0 0 0 0-7.5",clipRule:"evenodd"})]}),Ze=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.606 6.08a1 1 0 0 1 1.313.526L2 7l.92-.394v-.001c0-.001 0 0 0 0l.003.009l.021.045c.02.042.051.108.094.194c.086.172.219.424.4.729a13.37 13.37 0 0 0 1.67 2.237a11.966 11.966 0 0 0 .59.592C7.18 11.8 9.251 13 12 13a8.706 8.706 0 0 0 3.22-.602c1.227-.483 2.254-1.21 3.096-1.998a13.053 13.053 0 0 0 2.733-3.725l.027-.058l.005-.011a1 1 0 0 1 1.838.788L22 7l.92.394l-.003.005l-.004.008l-.011.026l-.04.087a14.045 14.045 0 0 1-.741 1.348a15.368 15.368 0 0 1-1.711 2.256l.797.797a1 1 0 0 1-1.414 1.415l-.84-.84a11.81 11.81 0 0 1-1.897 1.256l.782 1.202a1 1 0 1 1-1.676 1.091l-.986-1.514c-.679.208-1.404.355-2.176.424V16.5a1 1 0 0 1-2 0v-1.544c-.775-.07-1.5-.217-2.177-.425l-.985 1.514a1 1 0 0 1-1.676-1.09l.782-1.203c-.7-.37-1.332-.8-1.897-1.257l-.84.84a1 1 0 0 1-1.414-1.414l.797-.797a15.406 15.406 0 0 1-1.87-2.519a13.457 13.457 0 0 1-.591-1.107a5.418 5.418 0 0 1-.033-.072l-.01-.021l-.002-.007l-.001-.002v-.001C1.08 7.395 1.08 7.394 2 7l-.919.395a1 1 0 0 1 .525-1.314",clipRule:"evenodd"})}),Ne=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",d:"m20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8a7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42M5 11a6 6 0 1 1 6 6a6 6 0 0 1-6-6"})}),Yo=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",d:"m13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29l-4.3 4.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l4.29-4.3l4.29 4.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42Z"})}),_e=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsxs("g",{fill:"none",children:[jsx("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),jsx("path",{fill:"currentColor",d:"M5 10a2 2 0 1 1 0 4a2 2 0 0 1 0-4m7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4m7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4"})]})}),Ue=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",d:"M4 15.5q-.425 0-.712-.288T3 14.5V14q0-.425.288-.712T4 13h16q.425 0 .713.288T21 14v.5q0 .425-.288.713T20 15.5zM4 11q-.425 0-.712-.288T3 10v-.5q0-.425.288-.712T4 8.5h16q.425 0 .713.288T21 9.5v.5q0 .425-.288.713T20 11zm0-4.5q-.425 0-.712-.288T3 5.5V5q0-.425.288-.712T4 4h16q.425 0 .713.288T21 5v.5q0 .425-.288.713T20 6.5zM4 20q-.425 0-.712-.288T3 19v-.5q0-.425.288-.712T4 17.5h16q.425 0 .713.288T21 18.5v.5q0 .425-.288.713T20 20z"})}),je=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsxs("g",{fill:"none",fillRule:"evenodd",children:[jsx("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),jsx("path",{fill:"currentColor",d:"M5 3a2 2 0 0 0-2 2v6h18V5a2 2 0 0 0-2-2zm16 10H3v6a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"})]})}),Xe=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsxs("g",{fill:"none",children:[jsx("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),jsx("path",{fill:"currentColor",d:"M21 16v3a2 2 0 0 1-1.85 1.995L19 21H5a2 2 0 0 1-1.995-1.85L3 19v-3zm0-6v4H3v-4zm-2-7a2 2 0 0 1 2 2v3H3V5a2 2 0 0 1 2-2z"})]})});var Ko=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M12 15.5a1 1 0 0 1-.71-.29l-4-4a1 1 0 1 1 1.42-1.42L12 13.1l3.3-3.18a1 1 0 1 1 1.38 1.44l-4 3.86a1 1 0 0 1-.68.28"})}),Ke=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M13.83 19a1 1 0 0 1-.78-.37l-4.83-6a1 1 0 0 1 0-1.27l5-6a1 1 0 0 1 1.54 1.28L10.29 12l4.32 5.36a1 1 0 0 1-.78 1.64"})}),Qo=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M10 19a1 1 0 0 1-.64-.23a1 1 0 0 1-.13-1.41L13.71 12L9.39 6.63a1 1 0 0 1 .15-1.41a1 1 0 0 1 1.46.15l4.83 6a1 1 0 0 1 0 1.27l-5 6A1 1 0 0 1 10 19"})}),Qe=o=>jsxs(c,{...o,children:[jsx("path",{fill:"currentColor",d:"M6.96 2c.418 0 .756.31.756.692V4.09c.67-.012 1.422-.012 2.268-.012h4.032c.846 0 1.597 0 2.268.012V2.692c0-.382.338-.692.756-.692s.756.31.756.692V4.15c1.45.106 2.403.368 3.103 1.008c.7.641.985 1.513 1.101 2.842v1H2V8c.116-1.329.401-2.2 1.101-2.842c.7-.64 1.652-.902 3.103-1.008V2.692c0-.382.339-.692.756-.692"}),jsx("path",{fill:"currentColor",d:"M22 14v-2c0-.839-.013-2.335-.026-3H2.006c-.013.665 0 2.161 0 3v2c0 3.771 0 5.657 1.17 6.828C4.349 22 6.234 22 10.004 22h4c3.77 0 5.654 0 6.826-1.172C22 19.657 22 17.771 22 14",opacity:"0.5"}),jsx("path",{fill:"currentColor",d:"M18 16.5a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0"})]}),ot=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.75a9.25 9.25 0 1 0 0 18.5a9.25 9.25 0 0 0 0-18.5M1.25 12C1.25 6.063 6.063 1.25 12 1.25S22.75 6.063 22.75 12S17.937 22.75 12 22.75S1.25 17.937 1.25 12M12 7.25a.75.75 0 0 1 .75.75v3.69l2.28 2.28a.75.75 0 1 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1-.22-.53V8a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})}),u={date:{openPickerIcon:Qe,leftArrowIcon:Ke,rightArrowIcon:Qo,switchViewIcon:Ko},time:{openPickerIcon:ot,rightArrowIcon:Qo,switchViewIcon:Ko}},rt={defaultProps:{slots:u.date}},et={defaultProps:{slots:u.date}},tt={defaultProps:{slots:u.date}},at={defaultProps:{slots:u.date}},nt={defaultProps:{slots:u.date}},lt={defaultProps:{slots:u.date}},it={defaultProps:{slots:u.date}},st={defaultProps:{slots:u.time}},pt={defaultProps:{slots:u.time}},dt={defaultProps:{slots:u.time}},ct={defaultProps:{slots:u.time}},mt={styleOverrides:{root:({theme:o})=>({[`& .${dialogActionsClasses.root}`]:{[`& .${buttonClasses.root}`]:{["&:last-of-type"]:{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.text.primary,[a.dark]:{color:o.vars.palette.grey[800]}}}}})}},ut={styleOverrides:{paper:({theme:o})=>({boxShadow:o.customShadows.dropdown,borderRadius:o.shape.borderRadius*1.5})}},or={MuiPickersPopper:ut,MuiPickersLayout:mt,MuiDatePicker:rt,MuiDateTimePicker:et,MuiStaticDatePicker:tt,MuiDesktopDatePicker:at,MuiDesktopDateTimePicker:nt,MuiMobileDatePicker:lt,MuiMobileDateTimePicker:it,MuiTimePicker:st,MuiMobileTimePicker:pt,MuiStaticTimePicker:dt,MuiDesktopTimePicker:ct};var Ct={styleOverrides:{label:({theme:o})=>({...o.typography.body2}),iconContainer:{width:"auto"}}},rr={MuiTreeItem:Ct};var vt=["primary","secondary","info","success","warning","error"],er={colors:vt.map(o=>({props:({ownerState:r})=>!r.disabled&&r.variant==="soft"&&r.color===o,style:({theme:r})=>({[`& .${paginationItemClasses.root}`]:{[`&.${paginationItemClasses.selected}`]:{fontWeight:r.typography.fontWeightSemiBold,color:r.vars.palette[o].dark,backgroundColor:i$1(r.vars.palette[o].mainChannel,.08),"&:hover":{backgroundColor:i$1(r.vars.palette[o].mainChannel,.16)},[a.dark]:{color:r.vars.palette[o].light}}}})})),standardColor:[{props:({ownerState:o})=>o.variant==="soft"&&o.color==="standard",style:({theme:o})=>({[`& .${paginationItemClasses.root}`]:{[`&.${paginationItemClasses.selected}`]:{fontWeight:o.typography.fontWeightSemiBold,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.08),"&:hover":{backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16)}}}})}]},ht={variants:[...er.standardColor,...er.colors],styleOverrides:{text:({ownerState:o,theme:r})=>({[`& .${paginationItemClasses.root}`]:{[`&.${paginationItemClasses.selected}`]:{fontWeight:r.typography.fontWeightSemiBold,...o.color==="standard"&&{color:r.vars.palette.common.white,backgroundColor:r.vars.palette.text.primary,"&:hover":{backgroundColor:r.vars.palette.grey[700]},[a.dark]:{color:r.vars.palette.grey[800],"&:hover":{backgroundColor:r.vars.palette.grey[100]}}}}}}),outlined:({ownerState:o,theme:r})=>({[`& .${paginationItemClasses.root}`]:{borderColor:i$1(r.vars.palette.grey["500Channel"],.24),[`&.${paginationItemClasses.selected}`]:{borderColor:"currentColor",fontWeight:r.typography.fontWeightSemiBold,...o.color==="standard"&&{backgroundColor:i$1(r.vars.palette.grey["500Channel"],.08)}}}})}},tr={MuiPagination:ht};var yt={defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},outlined:({theme:o})=>({borderColor:i$1(o.vars.palette.grey["500Channel"],.16)})}},ar={MuiPaper:yt};var ft={styleOverrides:{paper:({theme:o})=>({...q$1({theme:o,dropdown:!0}),[`& .${listClasses.root}`]:{paddingTop:0,paddingBottom:0}})}},nr={MuiPopover:ft};var xt=["primary","secondary","info","success","warning","error"];function kt(o,r){return xt.reduce((a,s)=>(o.color===s&&(a=r(s)),a),{})}var Mt={styleOverrides:{root:({theme:o,ownerState:r})=>{let t={colors:kt(r,a=>({backgroundColor:i$1(o.vars.palette[a].mainChannel,.24)})),inheritColor:{...r.color==="inherit"&&{"&::before":{display:"none"},backgroundColor:i$1(o.vars.palette.text.primaryChannel,.24)}}};return {borderRadius:4,...r.variant!=="buffer"&&{...t.inheritColor,...t.colors}}},bar:{borderRadius:"inherit"}}},lr={MuiLinearProgress:Mt};var St=o=>jsx(c,{...o,children:jsx("path",{d:"M12 2C13.9778 2 15.9112 2.58649 17.5557 3.6853C19.2002 4.78412 20.4819 6.3459 21.2388 8.17317C21.9957 10.0004 22.1937 12.0111 21.8079 13.9509C21.422 15.8907 20.4696 17.6725 19.0711 19.0711C17.6725 20.4696 15.8907 21.422 13.9509 21.8079C12.0111 22.1937 10.0004 21.9957 8.17317 21.2388C6.3459 20.4819 4.78412 19.2002 3.6853 17.5557C2.58649 15.9112 2 13.9778 2 12C2 6.477 6.477 2 12 2ZM12 3.5C9.74566 3.5 7.58365 4.39553 5.98959 5.98959C4.39553 7.58365 3.5 9.74566 3.5 12C3.5 14.2543 4.39553 16.4163 5.98959 18.0104C7.58365 19.6045 9.74566 20.5 12 20.5C14.2543 20.5 16.4163 19.6045 18.0104 18.0104C19.6045 16.4163 20.5 14.2543 20.5 12C20.5 9.74566 19.6045 7.58365 18.0104 5.98959C16.4163 4.39553 14.2543 3.5 12 3.5Z",fill:"currentColor"})}),Tt=o=>jsx(c,{...o,children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12C2 17.523 6.477 22 12 22C17.523 22 22 17.523 22 12C22 6.477 17.523 2 12 2ZM12 8C10.9391 8 9.92172 8.42143 9.17157 9.17157C8.42143 9.92172 8 10.9391 8 12C8 13.0609 8.42143 14.0783 9.17157 14.8284C9.92172 15.5786 10.9391 16 12 16C13.0609 16 14.0783 15.5786 14.8284 14.8284C15.5786 14.0783 16 13.0609 16 12C16 10.9391 15.5786 9.92172 14.8284 9.17157C14.0783 8.42143 13.0609 8 12 8Z",fill:"currentColor"})}),It={defaultProps:{size:"small",icon:jsx(St,{}),checkedIcon:jsx(Tt,{})},styleOverrides:{root:({ownerState:o,theme:r})=>({padding:r.spacing(1),...o.color==="default"&&{[`&.${radioClasses.checked}`]:{color:r.vars.palette.text.primary}},[`&.${radioClasses.disabled}`]:{color:r.vars.palette.action.disabled}})}},pr={MuiRadio:It};var dr=o=>jsx(c,{...o,children:jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})}),Ot={defaultProps:{emptyIcon:jsx(dr,{}),icon:jsx(dr,{})},styleOverrides:{root:{[`&.${ratingClasses.disabled}`]:{opacity:.48}},iconEmpty:({theme:o})=>({color:i$1(o.vars.palette.grey["500Channel"],.48)}),sizeSmall:{[`& .${svgIconClasses.root}`]:{width:20,height:20}},sizeMedium:{[`& .${svgIconClasses.root}`]:{width:24,height:24}},sizeLarge:{[`& .${svgIconClasses.root}`]:{width:28,height:28}}}},cr={MuiRating:Ot};var ur=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M12 16a1 1 0 0 1-.64-.23l-6-5a1 1 0 1 1 1.28-1.54L12 13.71l5.36-4.32a1 1 0 0 1 1.41.15a1 1 0 0 1-.14 1.46l-6 4.83A1 1 0 0 1 12 16"})}),Ft={defaultProps:{IconComponent:ur},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}},Rt={defaultProps:{IconComponent:ur},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}},gr={MuiSelect:Ft,MuiNativeSelect:Rt};var Bt={defaultProps:{animation:"wave",variant:"rounded"},styleOverrides:{root:({theme:o})=>({backgroundColor:i$1(o.vars.palette.grey["400Channel"],.12)}),rounded:({theme:o})=>({borderRadius:o.shape.borderRadius*2})}},Cr={MuiSkeleton:Bt};var v={rail:{small:6,medium:10},thumb:{small:16,medium:20},mark:{small:4,medium:6}},Lt={defaultProps:{size:"small"},variants:[{props:({ownerState:o})=>o.color==="inherit",style:({theme:o})=>({[`& .${sliderClasses.markActive}`]:{[a.dark]:{backgroundColor:i$1(o.vars.palette.grey["800Channel"],.48)}}})},{props:({ownerState:o})=>!!o.disabled,style:({theme:o})=>({[`&.${sliderClasses.disabled}`]:{color:i$1(o.vars.palette.grey["500Channel"],o.vars.palette.action.disabledOpacity)}})}],styleOverrides:{root:({theme:o})=>({[`& .${sliderClasses.thumb}`]:{borderWidth:1,borderStyle:"solid",width:v.thumb.medium,height:v.thumb.medium,boxShadow:o.customShadows.z1,color:o.vars.palette.common.white,borderColor:i$1(o.vars.palette.grey["500Channel"],.08),"&::before":{opacity:.4,boxShadow:"none",width:"calc(100% - 4px)",height:"calc(100% - 4px)",backgroundImage:`linear-gradient(180deg, ${o.vars.palette.grey[500]} 0%, ${i$1(o.vars.palette.grey["500Channel"],0)} 100%)`,[a.dark]:{opacity:.8}}}}),rail:({theme:o})=>({opacity:.12,height:v.rail.medium,backgroundColor:o.vars.palette.grey[500]}),track:{height:v.rail.medium},mark:({theme:o})=>({width:1,height:v.mark.medium,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.48),'&[data-index="0"]':{display:"none"}}),markActive:({theme:o})=>({backgroundColor:i$1(o.vars.palette.common.whiteChannel,.64)}),markLabel:({theme:o})=>({fontSize:o.typography.pxToRem(13),color:o.vars.palette.text.disabled}),valueLabel:({theme:o})=>({borderRadius:8,backgroundColor:o.vars.palette.grey[800],[a.dark]:{backgroundColor:o.vars.palette.grey[700]}}),sizeSmall:{[`& .${sliderClasses.thumb}`]:{width:v.thumb.small,height:v.thumb.small},[`& .${sliderClasses.rail}`]:{height:v.rail.small},[`& .${sliderClasses.track}`]:{height:v.rail.small},[`& .${sliderClasses.mark}`]:{height:v.mark.small}}}},vr={MuiSlider:Lt};var At={defaultProps:{useFlexGap:!0},styleOverrides:{}},hr={MuiStack:At};var Dt={styleOverrides:{line:({theme:o})=>({borderColor:o.vars.palette.divider})}},yr={MuiStepConnector:Dt};var zt={styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}},br={MuiSvgIcon:zt};var Vt={styleOverrides:{root:{alignItems:"center"},switchBase:({ownerState:o,theme:r})=>({top:"unset",transform:"translateX(6px)",[`&.${switchClasses.checked}`]:{[`& .${switchClasses.thumb}`]:{...o.color==="default"&&{[a.dark]:{color:r.vars.palette.grey[800]}}},[`&+.${switchClasses.track}`]:{opacity:1,...o.color==="default"&&{backgroundColor:r.vars.palette.text.primary}}},[`&.${switchClasses.disabled}`]:{[`& .${switchClasses.thumb}`]:{opacity:1,[a.dark]:{opacity:.48}},[`&+.${switchClasses.track}`]:{opacity:.48}}}),track:({theme:o})=>({opacity:1,borderRadius:10,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.48)}),thumb:({theme:o})=>({color:o.vars.palette.common.white}),sizeMedium:{[`& .${switchClasses.track}`]:{height:20},[`& .${switchClasses.thumb}`]:{width:14,height:14}},sizeSmall:{[`& .${switchClasses.track}`]:{height:16},[`& .${switchClasses.thumb}`]:{width:10,height:10}}}},fr={MuiSwitch:Vt};var Et={styleOverrides:{root:({theme:o})=>({position:"relative",scrollbarWidth:"thin",scrollbarColor:`${i$1(o.vars.palette.text.disabledChannel,.4)} ${i$1(o.vars.palette.text.disabledChannel,.08)}`})}},Ht={styleOverrides:{root:({theme:o})=>({"--palette-TableCell-border":o.vars.palette.divider})}},qt={styleOverrides:{root:({theme:o})=>({[`&.${tableRowClasses.selected}`]:{backgroundColor:i$1(o.vars.palette.primary.darkChannel,.04),"&:hover":{backgroundColor:i$1(o.vars.palette.primary.darkChannel,.08)}},"&:last-of-type":{[`& .${tableCellClasses.root}`]:{borderColor:"transparent"}}})}},Zt={styleOverrides:{root:{borderBottomStyle:"dashed"},head:({theme:o})=>({fontSize:14,color:o.vars.palette.text.secondary,fontWeight:o.typography.fontWeightSemiBold,backgroundColor:o.vars.palette.background.neutral}),stickyHeader:({theme:o})=>({backgroundColor:o.vars.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${o.vars.palette.background.neutral} 0%, ${o.vars.palette.background.neutral} 100%)`}),paddingCheckbox:({theme:o})=>({paddingLeft:o.spacing(1)})}},Nt={defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"},slotProps:{select:{name:"table-pagination-select"}}},styleOverrides:{root:{width:"100%"},toolbar:{height:64},actions:{marginRight:8},select:({theme:o})=>({paddingLeft:8,"&:focus":{borderRadius:o.shape.borderRadius}}),selectIcon:{right:4,width:16,height:16,top:"calc(50% - 8px)"}}},xr={MuiTable:Ht,MuiTableRow:qt,MuiTableCell:Zt,MuiTableContainer:Et,MuiTablePagination:Nt};var Ut={defaultProps:{textColor:"inherit",variant:"scrollable",allowScrollButtonsMobile:!0},styleOverrides:{flexContainer:({ownerState:o,theme:r})=>({...o.variant!=="fullWidth"&&{gap:"24px",[r.breakpoints.up("sm")]:{gap:"40px"}}})}},jt={defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({theme:o})=>({opacity:1,minWidth:48,minHeight:48,padding:o.spacing(1,0),color:o.vars.palette.text.secondary,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body2.lineHeight,[`&.${tabClasses.selected}`]:{color:o.vars.palette.text.primary,fontWeight:o.typography.fontWeightSemiBold}})}},kr={MuiTabs:Ut,MuiTab:jt};var Jt={styleOverrides:{root:({theme:o})=>({[`&.${inputBaseClasses.disabled}`]:{"& svg":{color:o.vars.palette.text.disabled}}}),input:({theme:o})=>({fontSize:o.typography.pxToRem(15),[o.breakpoints.down("sm")]:{fontSize:o.typography.pxToRem(16)},"&::placeholder":{opacity:1,color:o.vars.palette.text.disabled}})}},Kt={styleOverrides:{underline:({theme:o})=>({"&::before":{borderBottomColor:i$1(o.vars.palette.grey["500Channel"],.32)},"&::after":{borderBottomColor:o.vars.palette.text.primary}})}},Qt={styleOverrides:{root:({theme:o})=>({backgroundColor:"#ffffff",[`&.${outlinedInputClasses.focused}`]:{[`& .${outlinedInputClasses.notchedOutline}`]:{borderColor:o.vars.palette.text.primary}},[`&.${outlinedInputClasses.error}`]:{[`& .${outlinedInputClasses.notchedOutline}`]:{borderColor:o.vars.palette.error.main}},[`&.${outlinedInputClasses.disabled}`]:{[`& .${outlinedInputClasses.notchedOutline}`]:{borderColor:o.vars.palette.action.disabledBackground,backgroundColor:alpha(o.palette.grey[500],.075)}}}),notchedOutline:({theme:o})=>({borderColor:i$1(o.vars.palette.grey["500Channel"],.2),transition:o.transitions.create(["border-color"],{duration:o.transitions.duration.shortest})})}},oa={defaultProps:{disableUnderline:!0},styleOverrides:{root:({theme:o})=>({borderRadius:o.shape.borderRadius,backgroundColor:i$1(o.vars.palette.grey["500Channel"],.08),"&:hover":{backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16)},[`&.${filledInputClasses.focused}`]:{backgroundColor:i$1(o.vars.palette.grey["500Channel"],.16)},[`&.${filledInputClasses.error}`]:{backgroundColor:i$1(o.vars.palette.error.mainChannel,.08),[`&.${filledInputClasses.focused}`]:{backgroundColor:i$1(o.vars.palette.error.mainChannel,.16)}},[`&.${filledInputClasses.disabled}`]:{backgroundColor:o.vars.palette.action.disabledBackground}})}},Mr={MuiInput:Kt,MuiInputBase:Jt,MuiFilledInput:oa,MuiOutlinedInput:Qt};var ra={styleOverrides:{root:{boxShadow:"none"}}},ea={styleOverrides:{root:({theme:o})=>({backgroundColor:o.vars.palette.divider})}},Sr={MuiTimelineDot:ra,MuiTimelineConnector:ea};var ta={styleOverrides:{tooltip:({theme:o})=>({backgroundColor:o.vars.palette.grey[800],[a.dark]:{backgroundColor:o.vars.palette.grey[700]}}),arrow:({theme:o})=>({color:o.vars.palette.grey[800],[a.dark]:{color:o.vars.palette.grey[700]}}),popper:{[`&.${tooltipClasses.popper}[data-popper-placement*="bottom"] .${tooltipClasses.tooltip}`]:{marginTop:12},[`&.${tooltipClasses.popper}[data-popper-placement*="top"] .${tooltipClasses.tooltip}`]:{marginBottom:12},[`&.${tooltipClasses.popper}[data-popper-placement*="right"] .${tooltipClasses.tooltip}`]:{marginLeft:12},[`&.${tooltipClasses.popper}[data-popper-placement*="left"] .${tooltipClasses.tooltip}`]:{marginRight:12}}}},Tr={MuiTooltip:ta};var aa={styleOverrides:{paragraph:({theme:o})=>({marginBottom:o.spacing(2)}),gutterBottom:({theme:o})=>({marginBottom:o.spacing(1)})}},Ir={MuiTypography:aa};var vi={...$o,...Lo,...qo,...Ho,...kr,...Go,...No,...Zo,...hr,...ar,...xr,...lo,...go,...pr,...Wo,...io,...mo,...Eo,...vr,...cr,...gr,...fo,...yr,...Tr,...nr,...br,...Cr,...Sr,...uo,...lr,...fr,...Do,...rr,...Jo,...ao,...Mr,...Ir,...tr,...or,...Co,...Ro,...po,...Bo};var b={primary:{lighter:"#C8FAD6",light:"#5BE49B",main:"#00A76F",dark:"#007867",darker:"#004B50",contrastText:"#FFFFFF"},secondary:{lighter:"#EFD6FF",light:"#C684FF",main:"#8E33FF",dark:"#5119B7",darker:"#27097A",contrastText:"#FFFFFF"},info:{lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#FFFFFF"},success:{lighter:"#D3FCD2",light:"#77ED8B",main:"#22C55E",dark:"#118D57",darker:"#065E49",contrastText:"#ffffff"},warning:{lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:"#1C252E"},error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#FFFFFF"},grey:{"50":"#FCFDFD","100":"#F9FAFB","200":"#F4F6F8","300":"#DFE3E8","400":"#C4CDD5","500":"#919EAB","600":"#637381","700":"#454F5B","800":"#1C252E","900":"#141A21"},common:{black:"#000000",white:"#FFFFFF"}};var i=h(b.grey),la=h(b.primary),Y=h(b.secondary),J=h(b.info),K=h(b.success),Q=h(b.warning),oo=h(b.error),W=h(b.common),$r={light:h({primary:i[800],secondary:i[600],disabled:i[500]}),dark:h({primary:"#FFFFFF",secondary:i[500],disabled:i[600]})},Or={light:h({paper:"#FFFFFF",default:"#FFFFFF",neutral:i[200]}),dark:h({paper:i[800],default:i[900],neutral:"#28323D"})},Pr={hover:i$1(i["500Channel"],.08),selected:i$1(i["500Channel"],.16),focus:i$1(i["500Channel"],.24),disabled:i$1(i["500Channel"],.8),disabledBackground:i$1(i["500Channel"],.24),hoverOpacity:.08,disabledOpacity:.48},ro={light:{...Pr,active:i[600]},dark:{...Pr,active:i[500]}},wr={primary:la,secondary:Y,info:J,success:K,warning:Q,error:oo,grey:i,common:W,divider:i$1(i["500Channel"],.2),action:ro},ia={...wr,text:$r.light,background:Or.light,action:ro.light},sa={...wr,text:$r.dark,background:Or.dark,action:ro.dark},xi={light:{palette:ia},dark:{palette:sa}};function O(o){return `0 8px 16px 0 ${i$1(o,.24)}`}function Ti(o,r){let t=o==="light"?i["500Channel"]:W.blackChannel;return {z1:`0 1px 2px 0 ${i$1(t,.16)}`,z4:`0 4px 8px 0 ${i$1(t,.16)}`,z8:`0 8px 16px 0 ${i$1(t,.16)}`,z12:`0 12px 24px -4px ${i$1(t,.16)}`,z16:`0 16px 32px -4px ${i$1(t,.16)}`,z20:`0 20px 40px -4px ${i$1(t,.16)}`,z24:`0 24px 48px 0 ${i$1(t,.16)}`,dialog:`-40px 40px 80px -8px ${i$1(W.blackChannel,.24)}`,card:`0 0 2px 0 ${i$1(t,.2)}, 0 12px 24px -4px ${i$1(t,.12)}`,dropdown:`0 0 2px 0 ${i$1(t,.24)}, -20px 20px 40px -4px ${i$1(t,.24)}`,primary:O(g(r)),secondary:O(Y.mainChannel),info:O(J.mainChannel),success:O(K.mainChannel),warning:O(Q.mainChannel),error:O(oo.mainChannel)}}
42
-
43
- export { vi as a, i as b, la as c, Y as d, J as e, K as f, Q as g, oo as h, W as i, $r as j, Or as k, Pr as l, ro as m, wr as n, ia as o, sa as p, xi as q, O as r, Ti as s };