@simoncomputing/mui-bueno-v2 0.18.6 → 0.18.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/components/Form/Error/Error.d.ts +3 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -0
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
- Minor increment --> singlular/minor changes. Minimal breaking changes.
|
|
12
12
|
- Patch increment --> singlular/minor changes. Zero breaking changes.
|
|
13
13
|
|
|
14
|
+
## [0.18.7] - 2025-09-25
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- `Error`
|
|
19
|
+
- `id` prop is now optional, and can also be used for testing via data-testid
|
|
20
|
+
|
|
14
21
|
## [0.18.6] - 2025-09-24
|
|
15
22
|
|
|
16
23
|
### Added
|
package/dist/index.cjs.js
CHANGED
|
@@ -75,7 +75,7 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
75
75
|
|
|
76
76
|
export default theme;`}function N0(t={},...e){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,...u}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Ao(20));const f=Yv(i),p=qv(t);let m=qn(p,{mixins:D9(p.breakpoints,r),palette:f,shadows:F9.slice(),typography:N9(f,a),transitions:H9(s),zIndex:{...W9}});if(m=qn(m,u),m=e.reduce((g,y)=>qn(g,y),m),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(b,S)=>{let C;for(C in b){const _=b[C];if(g.includes(C)&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const T=Ye("",C);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${T}' syntax:`,JSON.stringify({root:{[`&.${T}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
77
77
|
`))}b[C]={}}}};Object.keys(m.components).forEach(b=>{const S=m.components[b].styleOverrides;S&&b.startsWith("Mui")&&y(S,b)})}return m.unstable_sxConfig={...nu,...u==null?void 0:u.unstable_sxConfig},m.unstable_sx=function(y){return Ja({sx:y,theme:this})},m.toRuntimeSource=SA,m}function L0(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const U9=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=L0(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function CA(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function wA(t){return t==="dark"?U9:[]}function K9(t){const{palette:e={mode:"light"},opacity:n,overlays:r,...o}=t,i=Yv(e);return{palette:i,opacity:{...CA(i.mode),...n},overlays:r||wA(i.mode),...o}}function Y9(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const G9=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],J9=t=>(e,n)=>{const r=t.rootSelector||":root",o=t.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const s={};return G9(t.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",e)]:s,[`${r}, ${i.replace("%s",e)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(e))}`}else if(e){if(i==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(i)return i.replace("%s",String(e))}return r};function Z9(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function ve(t,e,n){!t[e]&&n&&(t[e]=n)}function Jl(t){return typeof t!="string"||!t.startsWith("hsl")?t:bA(t)}function Go(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Gl(Jl(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
78
|
-
To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function X9(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const vo=t=>{try{return t()}catch{}},Q9=(t="mui")=>v9(t);function Vm(t,e,n,r){if(!e)return;e=e===!0?{}:e;const o=r==="dark"?"dark":"light";if(!n){t[r]=K9({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:i,...s}=N0({...n,palette:{mode:o,...e==null?void 0:e.palette}});return t[r]={...e,palette:i,opacity:{...CA(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||wA(o)},s}function eq(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=Y9,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=t,f=Object.keys(n)[0],p=r||(n.light&&f!=="light"?"light":f),m=Q9(i),{[p]:g,light:y,dark:b,...S}=n,C={...S};let _=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(_=!0),!_)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Ao(21,p));const T=Vm(C,_,u,p);y&&!C.light&&Vm(C,y,void 0,"light"),b&&!C.dark&&Vm(C,b,void 0,"dark");let w={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:m,colorSchemes:C,font:{...I9(T.typography),...T.font},spacing:X9(u.spacing)};Object.keys(w.colorSchemes).forEach(L=>{const M=w.colorSchemes[L].palette,R=N=>{const V=N.split("-"),B=V[1],$=V[2];return m(N,M[B][$])};if(M.mode==="light"&&(ve(M.common,"background","#fff"),ve(M.common,"onBackground","#000")),M.mode==="dark"&&(ve(M.common,"background","#000"),ve(M.common,"onBackground","#fff")),Z9(M,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),M.mode==="light"){ve(M.Alert,"errorColor",Nt(M.error.light,.6)),ve(M.Alert,"infoColor",Nt(M.info.light,.6)),ve(M.Alert,"successColor",Nt(M.success.light,.6)),ve(M.Alert,"warningColor",Nt(M.warning.light,.6)),ve(M.Alert,"errorFilledBg",R("palette-error-main")),ve(M.Alert,"infoFilledBg",R("palette-info-main")),ve(M.Alert,"successFilledBg",R("palette-success-main")),ve(M.Alert,"warningFilledBg",R("palette-warning-main")),ve(M.Alert,"errorFilledColor",vo(()=>M.getContrastText(M.error.main))),ve(M.Alert,"infoFilledColor",vo(()=>M.getContrastText(M.info.main))),ve(M.Alert,"successFilledColor",vo(()=>M.getContrastText(M.success.main))),ve(M.Alert,"warningFilledColor",vo(()=>M.getContrastText(M.warning.main))),ve(M.Alert,"errorStandardBg",Lt(M.error.light,.9)),ve(M.Alert,"infoStandardBg",Lt(M.info.light,.9)),ve(M.Alert,"successStandardBg",Lt(M.success.light,.9)),ve(M.Alert,"warningStandardBg",Lt(M.warning.light,.9)),ve(M.Alert,"errorIconColor",R("palette-error-main")),ve(M.Alert,"infoIconColor",R("palette-info-main")),ve(M.Alert,"successIconColor",R("palette-success-main")),ve(M.Alert,"warningIconColor",R("palette-warning-main")),ve(M.AppBar,"defaultBg",R("palette-grey-100")),ve(M.Avatar,"defaultBg",R("palette-grey-400")),ve(M.Button,"inheritContainedBg",R("palette-grey-300")),ve(M.Button,"inheritContainedHoverBg",R("palette-grey-A100")),ve(M.Chip,"defaultBorder",R("palette-grey-400")),ve(M.Chip,"defaultAvatarColor",R("palette-grey-700")),ve(M.Chip,"defaultIconColor",R("palette-grey-700")),ve(M.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ve(M.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ve(M.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ve(M.LinearProgress,"primaryBg",Lt(M.primary.main,.62)),ve(M.LinearProgress,"secondaryBg",Lt(M.secondary.main,.62)),ve(M.LinearProgress,"errorBg",Lt(M.error.main,.62)),ve(M.LinearProgress,"infoBg",Lt(M.info.main,.62)),ve(M.LinearProgress,"successBg",Lt(M.success.main,.62)),ve(M.LinearProgress,"warningBg",Lt(M.warning.main,.62)),ve(M.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),ve(M.Slider,"primaryTrack",Lt(M.primary.main,.62)),ve(M.Slider,"secondaryTrack",Lt(M.secondary.main,.62)),ve(M.Slider,"errorTrack",Lt(M.error.main,.62)),ve(M.Slider,"infoTrack",Lt(M.info.main,.62)),ve(M.Slider,"successTrack",Lt(M.success.main,.62)),ve(M.Slider,"warningTrack",Lt(M.warning.main,.62));const N=gd(M.background.default,.8);ve(M.SnackbarContent,"bg",N),ve(M.SnackbarContent,"color",vo(()=>M.getContrastText(N))),ve(M.SpeedDialAction,"fabHoverBg",gd(M.background.paper,.15)),ve(M.StepConnector,"border",R("palette-grey-400")),ve(M.StepContent,"border",R("palette-grey-400")),ve(M.Switch,"defaultColor",R("palette-common-white")),ve(M.Switch,"defaultDisabledColor",R("palette-grey-100")),ve(M.Switch,"primaryDisabledColor",Lt(M.primary.main,.62)),ve(M.Switch,"secondaryDisabledColor",Lt(M.secondary.main,.62)),ve(M.Switch,"errorDisabledColor",Lt(M.error.main,.62)),ve(M.Switch,"infoDisabledColor",Lt(M.info.main,.62)),ve(M.Switch,"successDisabledColor",Lt(M.success.main,.62)),ve(M.Switch,"warningDisabledColor",Lt(M.warning.main,.62)),ve(M.TableCell,"border",Lt(md(M.divider,1),.88)),ve(M.Tooltip,"bg",md(M.grey[700],.92))}if(M.mode==="dark"){ve(M.Alert,"errorColor",Lt(M.error.light,.6)),ve(M.Alert,"infoColor",Lt(M.info.light,.6)),ve(M.Alert,"successColor",Lt(M.success.light,.6)),ve(M.Alert,"warningColor",Lt(M.warning.light,.6)),ve(M.Alert,"errorFilledBg",R("palette-error-dark")),ve(M.Alert,"infoFilledBg",R("palette-info-dark")),ve(M.Alert,"successFilledBg",R("palette-success-dark")),ve(M.Alert,"warningFilledBg",R("palette-warning-dark")),ve(M.Alert,"errorFilledColor",vo(()=>M.getContrastText(M.error.dark))),ve(M.Alert,"infoFilledColor",vo(()=>M.getContrastText(M.info.dark))),ve(M.Alert,"successFilledColor",vo(()=>M.getContrastText(M.success.dark))),ve(M.Alert,"warningFilledColor",vo(()=>M.getContrastText(M.warning.dark))),ve(M.Alert,"errorStandardBg",Nt(M.error.light,.9)),ve(M.Alert,"infoStandardBg",Nt(M.info.light,.9)),ve(M.Alert,"successStandardBg",Nt(M.success.light,.9)),ve(M.Alert,"warningStandardBg",Nt(M.warning.light,.9)),ve(M.Alert,"errorIconColor",R("palette-error-main")),ve(M.Alert,"infoIconColor",R("palette-info-main")),ve(M.Alert,"successIconColor",R("palette-success-main")),ve(M.Alert,"warningIconColor",R("palette-warning-main")),ve(M.AppBar,"defaultBg",R("palette-grey-900")),ve(M.AppBar,"darkBg",R("palette-background-paper")),ve(M.AppBar,"darkColor",R("palette-text-primary")),ve(M.Avatar,"defaultBg",R("palette-grey-600")),ve(M.Button,"inheritContainedBg",R("palette-grey-800")),ve(M.Button,"inheritContainedHoverBg",R("palette-grey-700")),ve(M.Chip,"defaultBorder",R("palette-grey-700")),ve(M.Chip,"defaultAvatarColor",R("palette-grey-300")),ve(M.Chip,"defaultIconColor",R("palette-grey-300")),ve(M.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ve(M.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ve(M.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ve(M.LinearProgress,"primaryBg",Nt(M.primary.main,.5)),ve(M.LinearProgress,"secondaryBg",Nt(M.secondary.main,.5)),ve(M.LinearProgress,"errorBg",Nt(M.error.main,.5)),ve(M.LinearProgress,"infoBg",Nt(M.info.main,.5)),ve(M.LinearProgress,"successBg",Nt(M.success.main,.5)),ve(M.LinearProgress,"warningBg",Nt(M.warning.main,.5)),ve(M.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),ve(M.Slider,"primaryTrack",Nt(M.primary.main,.5)),ve(M.Slider,"secondaryTrack",Nt(M.secondary.main,.5)),ve(M.Slider,"errorTrack",Nt(M.error.main,.5)),ve(M.Slider,"infoTrack",Nt(M.info.main,.5)),ve(M.Slider,"successTrack",Nt(M.success.main,.5)),ve(M.Slider,"warningTrack",Nt(M.warning.main,.5));const N=gd(M.background.default,.98);ve(M.SnackbarContent,"bg",N),ve(M.SnackbarContent,"color",vo(()=>M.getContrastText(N))),ve(M.SpeedDialAction,"fabHoverBg",gd(M.background.paper,.15)),ve(M.StepConnector,"border",R("palette-grey-600")),ve(M.StepContent,"border",R("palette-grey-600")),ve(M.Switch,"defaultColor",R("palette-grey-300")),ve(M.Switch,"defaultDisabledColor",R("palette-grey-600")),ve(M.Switch,"primaryDisabledColor",Nt(M.primary.main,.55)),ve(M.Switch,"secondaryDisabledColor",Nt(M.secondary.main,.55)),ve(M.Switch,"errorDisabledColor",Nt(M.error.main,.55)),ve(M.Switch,"infoDisabledColor",Nt(M.info.main,.55)),ve(M.Switch,"successDisabledColor",Nt(M.success.main,.55)),ve(M.Switch,"warningDisabledColor",Nt(M.warning.main,.55)),ve(M.TableCell,"border",Nt(md(M.divider,1),.68)),ve(M.Tooltip,"bg",md(M.grey[700],.92))}Go(M.background,"default"),Go(M.background,"paper"),Go(M.common,"background"),Go(M.common,"onBackground"),Go(M,"divider"),Object.keys(M).forEach(N=>{const V=M[N];N!=="tonalOffset"&&V&&typeof V=="object"&&(V.main&&ve(M[N],"mainChannel",Gl(Jl(V.main))),V.light&&ve(M[N],"lightChannel",Gl(Jl(V.light))),V.dark&&ve(M[N],"darkChannel",Gl(Jl(V.dark))),V.contrastText&&ve(M[N],"contrastTextChannel",Gl(Jl(V.contrastText))),N==="text"&&(Go(M[N],"primary"),Go(M[N],"secondary")),N==="action"&&(V.active&&Go(M[N],"active"),V.selected&&Go(M[N],"selected")))})}),w=e.reduce((L,M)=>qn(L,M),w);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:J9(w)},{vars:O,generateThemeVars:P,generateStyleSheets:D}=C9(w,E);return w.vars=O,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([L,M])=>{w[L]=M}),w.generateThemeVars=P,w.generateStyleSheets=D,w.generateSpacing=function(){return uA(u.spacing,Hv(this))},w.getColorSchemeSelector=w9(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...nu,...u==null?void 0:u.unstable_sxConfig},w.unstable_sx=function(M){return Ja({sx:M,theme:this})},w.toRuntimeSource=SA,w}function Gw(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:Yv({...n===!0?{}:n.palette,mode:e})})}function tq(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=t,a=i||"light",l=o==null?void 0:o[a],u={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return N0(t,...e);let f=n;"palette"in t||u[a]&&(u[a]!==!0?f=u[a].palette:a==="dark"&&(f={mode:"dark"}));const p=N0({...t,palette:f},...e);return p.defaultColorScheme=a,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Gw(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Gw(p,"light",u.light)),p}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),eq({...s,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...e)}const Rp=tq(),ru="$$material";function es(){const t=Uv(Rp);return process.env.NODE_ENV!=="production"&&A.useDebugValue(t),t[ru]||t}function TA(t){return v.jsx(fA,{...t,defaultTheme:Rp,themeId:ru})}process.env.NODE_ENV!=="production"&&(TA.propTypes={styles:c.oneOfType([c.array,c.func,c.number,c.object,c.string,c.bool])});function _A(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const uo=t=>_A(t)&&t!=="classes",be=t9({themeId:ru,defaultTheme:Rp,rootShouldForwardProp:uo});function nq(t){return function(n){return v.jsx(TA,{styles:typeof t=="function"?r=>t({theme:r,...n}):t})}}function rq(){return LW}const It=b9;process.env.NODE_ENV!=="production"&&(c.node,c.object.isRequired);function St(t){return y9(t)}function oq(t){return Ye("MuiSvgIcon",t)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const iq=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${Re(e)}`,`fontSize${Re(n)}`]};return Ke(o,oq,r)},sq=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Re(n.color)}`],e[`fontSize${Re(n.fontSize)}`]]}})(It(({theme:t})=>{var e,n,r,o,i,s,a,l,u,f,p,m,g,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:b=>!b.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=t.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,b])=>b&&b.main).map(([b])=>{var S,C;return{props:{color:b},style:{color:(C=(S=(t.vars??t).palette)==null?void 0:S[b])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(m=(p=(t.vars??t).palette)==null?void 0:p.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(y=(g=(t.vars??t).palette)==null?void 0:g.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),mf=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:m="0 0 24 24",...g}=r,y=A.isValidElement(o)&&o.type==="svg",b={...r,color:s,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:y},S={};f||(S.viewBox=m);const C=iq(b);return v.jsxs(sq,{as:a,className:Pe(C.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...S,...g,...y&&o.props,ownerState:b,children:[y?o.props.children:o,p?v.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(mf.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,fontSize:c.oneOfType([c.oneOf(["inherit","large","medium","small"]),c.string]),htmlColor:c.string,inheritViewBox:c.bool,shapeRendering:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),titleAccess:c.string,viewBox:c.string});mf.muiName="SvgIcon";function Fe(t,e){function n(r,o){return v.jsx(mf,{"data-testid":`${e}Icon`,ref:o,...r,children:t})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=mf.muiName,A.memo(A.forwardRef(n))}function aq(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return o=>{const i=typeof e=="function"?e(o):e,s=typeof t=="function"?t({...o,...i}):t,a=Pe(o==null?void 0:o.className,i==null?void 0:i.className,s==null?void 0:s.className);return{...i,...s,...!!a&&{className:a},...(i==null?void 0:i.style)&&(s==null?void 0:s.style)&&{style:{...i.style,...s.style}},...(i==null?void 0:i.sx)&&(s==null?void 0:s.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const n=e,r=Pe(n==null?void 0:n.className,t==null?void 0:t.className);return{...e,...t,...!!r&&{className:r},...(n==null?void 0:n.style)&&(t==null?void 0:t.style)&&{style:{...n.style,...t.style}},...(n==null?void 0:n.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}const kA=Fe(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),tr=t=>{const{name:e,id:n,className:r}=t,[o,i,s]=qt.useField(e),{error:a}=i;return v.jsxs(j.Typography,{id:n,variant:"caption",display:"block",color:"error",style:{visibility:a?"visible":"hidden"},className:r,fontSize:".9rem",children:[v.jsx(j.Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",position:"relative",top:"3px",mr:.5},children:v.jsx(kA,{fontSize:"inherit"})}),a]})},EA=t=>{const{name:e,label:n=Mn(e),options:r=[],filterSelectedOptions:o=!0,variant:i="outlined",staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l,margin:u="dense",fullWidth:f=!0,required:p,onChange:m,clearOnSelect:g=!1,onInputChange:y,getOptionLabel:b=N=>typeof N=="string"?N:String(N),isOptionEqualToValue:S=(N,V)=>JSON.stringify(N)===JSON.stringify(V),useFieldAsValue:C,..._}=t,[T,w,E]=qt.useField(e),{setValue:O}=E,{error:P}=w,[D,L]=A.useState(""),M={...er(_,["useFieldAsValue"]),getOptionLabel:b,options:r,filterSelectedOptions:o,isOptionEqualToValue:S,renderInput:N=>v.jsx(j.TextField,{...N,variant:i,label:s?void 0:n,error:!!P,required:p}),onChange:(N,V,B,$)=>{g?(L(""),O(null)):O(C?V?V[C]:null:V),m&&m(N,V,B,$)},onInputChange:(N,V,B)=>{L(V),y&&y(N,V,B)},fullWidth:!0,inputValue:D,value:C?r.find(N=>N[C]===T.value)||null:T.value,slotProps:{paper:{elevation:8,sx:{borderRadius:2}}}},R=()=>{if(!T.value)return"";if(C){const N=r.find(V=>V[C]===T.value);return N?b(N):""}return b(T.value)};return v.jsxs(j.FormControl,{margin:u,fullWidth:f,required:p,children:[(s||l)&&v.jsx(j.Typography,{...a,children:n}),l?v.jsx(j.Typography,{children:R()}):v.jsxs(j.Box,{children:[v.jsx(j.Autocomplete,{...M}),v.jsx(tr,{name:e,id:`${e}-err`})]})]})};var Zl={exports:{}};/**
|
|
78
|
+
To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function X9(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const vo=t=>{try{return t()}catch{}},Q9=(t="mui")=>v9(t);function Vm(t,e,n,r){if(!e)return;e=e===!0?{}:e;const o=r==="dark"?"dark":"light";if(!n){t[r]=K9({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:i,...s}=N0({...n,palette:{mode:o,...e==null?void 0:e.palette}});return t[r]={...e,palette:i,opacity:{...CA(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||wA(o)},s}function eq(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=Y9,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=t,f=Object.keys(n)[0],p=r||(n.light&&f!=="light"?"light":f),m=Q9(i),{[p]:g,light:y,dark:b,...S}=n,C={...S};let _=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(_=!0),!_)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Ao(21,p));const T=Vm(C,_,u,p);y&&!C.light&&Vm(C,y,void 0,"light"),b&&!C.dark&&Vm(C,b,void 0,"dark");let w={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:m,colorSchemes:C,font:{...I9(T.typography),...T.font},spacing:X9(u.spacing)};Object.keys(w.colorSchemes).forEach(L=>{const M=w.colorSchemes[L].palette,R=N=>{const V=N.split("-"),B=V[1],$=V[2];return m(N,M[B][$])};if(M.mode==="light"&&(ve(M.common,"background","#fff"),ve(M.common,"onBackground","#000")),M.mode==="dark"&&(ve(M.common,"background","#000"),ve(M.common,"onBackground","#fff")),Z9(M,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),M.mode==="light"){ve(M.Alert,"errorColor",Nt(M.error.light,.6)),ve(M.Alert,"infoColor",Nt(M.info.light,.6)),ve(M.Alert,"successColor",Nt(M.success.light,.6)),ve(M.Alert,"warningColor",Nt(M.warning.light,.6)),ve(M.Alert,"errorFilledBg",R("palette-error-main")),ve(M.Alert,"infoFilledBg",R("palette-info-main")),ve(M.Alert,"successFilledBg",R("palette-success-main")),ve(M.Alert,"warningFilledBg",R("palette-warning-main")),ve(M.Alert,"errorFilledColor",vo(()=>M.getContrastText(M.error.main))),ve(M.Alert,"infoFilledColor",vo(()=>M.getContrastText(M.info.main))),ve(M.Alert,"successFilledColor",vo(()=>M.getContrastText(M.success.main))),ve(M.Alert,"warningFilledColor",vo(()=>M.getContrastText(M.warning.main))),ve(M.Alert,"errorStandardBg",Lt(M.error.light,.9)),ve(M.Alert,"infoStandardBg",Lt(M.info.light,.9)),ve(M.Alert,"successStandardBg",Lt(M.success.light,.9)),ve(M.Alert,"warningStandardBg",Lt(M.warning.light,.9)),ve(M.Alert,"errorIconColor",R("palette-error-main")),ve(M.Alert,"infoIconColor",R("palette-info-main")),ve(M.Alert,"successIconColor",R("palette-success-main")),ve(M.Alert,"warningIconColor",R("palette-warning-main")),ve(M.AppBar,"defaultBg",R("palette-grey-100")),ve(M.Avatar,"defaultBg",R("palette-grey-400")),ve(M.Button,"inheritContainedBg",R("palette-grey-300")),ve(M.Button,"inheritContainedHoverBg",R("palette-grey-A100")),ve(M.Chip,"defaultBorder",R("palette-grey-400")),ve(M.Chip,"defaultAvatarColor",R("palette-grey-700")),ve(M.Chip,"defaultIconColor",R("palette-grey-700")),ve(M.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ve(M.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ve(M.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ve(M.LinearProgress,"primaryBg",Lt(M.primary.main,.62)),ve(M.LinearProgress,"secondaryBg",Lt(M.secondary.main,.62)),ve(M.LinearProgress,"errorBg",Lt(M.error.main,.62)),ve(M.LinearProgress,"infoBg",Lt(M.info.main,.62)),ve(M.LinearProgress,"successBg",Lt(M.success.main,.62)),ve(M.LinearProgress,"warningBg",Lt(M.warning.main,.62)),ve(M.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),ve(M.Slider,"primaryTrack",Lt(M.primary.main,.62)),ve(M.Slider,"secondaryTrack",Lt(M.secondary.main,.62)),ve(M.Slider,"errorTrack",Lt(M.error.main,.62)),ve(M.Slider,"infoTrack",Lt(M.info.main,.62)),ve(M.Slider,"successTrack",Lt(M.success.main,.62)),ve(M.Slider,"warningTrack",Lt(M.warning.main,.62));const N=gd(M.background.default,.8);ve(M.SnackbarContent,"bg",N),ve(M.SnackbarContent,"color",vo(()=>M.getContrastText(N))),ve(M.SpeedDialAction,"fabHoverBg",gd(M.background.paper,.15)),ve(M.StepConnector,"border",R("palette-grey-400")),ve(M.StepContent,"border",R("palette-grey-400")),ve(M.Switch,"defaultColor",R("palette-common-white")),ve(M.Switch,"defaultDisabledColor",R("palette-grey-100")),ve(M.Switch,"primaryDisabledColor",Lt(M.primary.main,.62)),ve(M.Switch,"secondaryDisabledColor",Lt(M.secondary.main,.62)),ve(M.Switch,"errorDisabledColor",Lt(M.error.main,.62)),ve(M.Switch,"infoDisabledColor",Lt(M.info.main,.62)),ve(M.Switch,"successDisabledColor",Lt(M.success.main,.62)),ve(M.Switch,"warningDisabledColor",Lt(M.warning.main,.62)),ve(M.TableCell,"border",Lt(md(M.divider,1),.88)),ve(M.Tooltip,"bg",md(M.grey[700],.92))}if(M.mode==="dark"){ve(M.Alert,"errorColor",Lt(M.error.light,.6)),ve(M.Alert,"infoColor",Lt(M.info.light,.6)),ve(M.Alert,"successColor",Lt(M.success.light,.6)),ve(M.Alert,"warningColor",Lt(M.warning.light,.6)),ve(M.Alert,"errorFilledBg",R("palette-error-dark")),ve(M.Alert,"infoFilledBg",R("palette-info-dark")),ve(M.Alert,"successFilledBg",R("palette-success-dark")),ve(M.Alert,"warningFilledBg",R("palette-warning-dark")),ve(M.Alert,"errorFilledColor",vo(()=>M.getContrastText(M.error.dark))),ve(M.Alert,"infoFilledColor",vo(()=>M.getContrastText(M.info.dark))),ve(M.Alert,"successFilledColor",vo(()=>M.getContrastText(M.success.dark))),ve(M.Alert,"warningFilledColor",vo(()=>M.getContrastText(M.warning.dark))),ve(M.Alert,"errorStandardBg",Nt(M.error.light,.9)),ve(M.Alert,"infoStandardBg",Nt(M.info.light,.9)),ve(M.Alert,"successStandardBg",Nt(M.success.light,.9)),ve(M.Alert,"warningStandardBg",Nt(M.warning.light,.9)),ve(M.Alert,"errorIconColor",R("palette-error-main")),ve(M.Alert,"infoIconColor",R("palette-info-main")),ve(M.Alert,"successIconColor",R("palette-success-main")),ve(M.Alert,"warningIconColor",R("palette-warning-main")),ve(M.AppBar,"defaultBg",R("palette-grey-900")),ve(M.AppBar,"darkBg",R("palette-background-paper")),ve(M.AppBar,"darkColor",R("palette-text-primary")),ve(M.Avatar,"defaultBg",R("palette-grey-600")),ve(M.Button,"inheritContainedBg",R("palette-grey-800")),ve(M.Button,"inheritContainedHoverBg",R("palette-grey-700")),ve(M.Chip,"defaultBorder",R("palette-grey-700")),ve(M.Chip,"defaultAvatarColor",R("palette-grey-300")),ve(M.Chip,"defaultIconColor",R("palette-grey-300")),ve(M.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ve(M.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ve(M.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ve(M.LinearProgress,"primaryBg",Nt(M.primary.main,.5)),ve(M.LinearProgress,"secondaryBg",Nt(M.secondary.main,.5)),ve(M.LinearProgress,"errorBg",Nt(M.error.main,.5)),ve(M.LinearProgress,"infoBg",Nt(M.info.main,.5)),ve(M.LinearProgress,"successBg",Nt(M.success.main,.5)),ve(M.LinearProgress,"warningBg",Nt(M.warning.main,.5)),ve(M.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),ve(M.Slider,"primaryTrack",Nt(M.primary.main,.5)),ve(M.Slider,"secondaryTrack",Nt(M.secondary.main,.5)),ve(M.Slider,"errorTrack",Nt(M.error.main,.5)),ve(M.Slider,"infoTrack",Nt(M.info.main,.5)),ve(M.Slider,"successTrack",Nt(M.success.main,.5)),ve(M.Slider,"warningTrack",Nt(M.warning.main,.5));const N=gd(M.background.default,.98);ve(M.SnackbarContent,"bg",N),ve(M.SnackbarContent,"color",vo(()=>M.getContrastText(N))),ve(M.SpeedDialAction,"fabHoverBg",gd(M.background.paper,.15)),ve(M.StepConnector,"border",R("palette-grey-600")),ve(M.StepContent,"border",R("palette-grey-600")),ve(M.Switch,"defaultColor",R("palette-grey-300")),ve(M.Switch,"defaultDisabledColor",R("palette-grey-600")),ve(M.Switch,"primaryDisabledColor",Nt(M.primary.main,.55)),ve(M.Switch,"secondaryDisabledColor",Nt(M.secondary.main,.55)),ve(M.Switch,"errorDisabledColor",Nt(M.error.main,.55)),ve(M.Switch,"infoDisabledColor",Nt(M.info.main,.55)),ve(M.Switch,"successDisabledColor",Nt(M.success.main,.55)),ve(M.Switch,"warningDisabledColor",Nt(M.warning.main,.55)),ve(M.TableCell,"border",Nt(md(M.divider,1),.68)),ve(M.Tooltip,"bg",md(M.grey[700],.92))}Go(M.background,"default"),Go(M.background,"paper"),Go(M.common,"background"),Go(M.common,"onBackground"),Go(M,"divider"),Object.keys(M).forEach(N=>{const V=M[N];N!=="tonalOffset"&&V&&typeof V=="object"&&(V.main&&ve(M[N],"mainChannel",Gl(Jl(V.main))),V.light&&ve(M[N],"lightChannel",Gl(Jl(V.light))),V.dark&&ve(M[N],"darkChannel",Gl(Jl(V.dark))),V.contrastText&&ve(M[N],"contrastTextChannel",Gl(Jl(V.contrastText))),N==="text"&&(Go(M[N],"primary"),Go(M[N],"secondary")),N==="action"&&(V.active&&Go(M[N],"active"),V.selected&&Go(M[N],"selected")))})}),w=e.reduce((L,M)=>qn(L,M),w);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:J9(w)},{vars:O,generateThemeVars:P,generateStyleSheets:D}=C9(w,E);return w.vars=O,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([L,M])=>{w[L]=M}),w.generateThemeVars=P,w.generateStyleSheets=D,w.generateSpacing=function(){return uA(u.spacing,Hv(this))},w.getColorSchemeSelector=w9(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...nu,...u==null?void 0:u.unstable_sxConfig},w.unstable_sx=function(M){return Ja({sx:M,theme:this})},w.toRuntimeSource=SA,w}function Gw(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:Yv({...n===!0?{}:n.palette,mode:e})})}function tq(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=t,a=i||"light",l=o==null?void 0:o[a],u={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return N0(t,...e);let f=n;"palette"in t||u[a]&&(u[a]!==!0?f=u[a].palette:a==="dark"&&(f={mode:"dark"}));const p=N0({...t,palette:f},...e);return p.defaultColorScheme=a,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Gw(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Gw(p,"light",u.light)),p}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),eq({...s,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...e)}const Rp=tq(),ru="$$material";function es(){const t=Uv(Rp);return process.env.NODE_ENV!=="production"&&A.useDebugValue(t),t[ru]||t}function TA(t){return v.jsx(fA,{...t,defaultTheme:Rp,themeId:ru})}process.env.NODE_ENV!=="production"&&(TA.propTypes={styles:c.oneOfType([c.array,c.func,c.number,c.object,c.string,c.bool])});function _A(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const uo=t=>_A(t)&&t!=="classes",be=t9({themeId:ru,defaultTheme:Rp,rootShouldForwardProp:uo});function nq(t){return function(n){return v.jsx(TA,{styles:typeof t=="function"?r=>t({theme:r,...n}):t})}}function rq(){return LW}const It=b9;process.env.NODE_ENV!=="production"&&(c.node,c.object.isRequired);function St(t){return y9(t)}function oq(t){return Ye("MuiSvgIcon",t)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const iq=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${Re(e)}`,`fontSize${Re(n)}`]};return Ke(o,oq,r)},sq=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Re(n.color)}`],e[`fontSize${Re(n.fontSize)}`]]}})(It(({theme:t})=>{var e,n,r,o,i,s,a,l,u,f,p,m,g,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:b=>!b.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=t.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,b])=>b&&b.main).map(([b])=>{var S,C;return{props:{color:b},style:{color:(C=(S=(t.vars??t).palette)==null?void 0:S[b])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(m=(p=(t.vars??t).palette)==null?void 0:p.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(y=(g=(t.vars??t).palette)==null?void 0:g.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),mf=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:m="0 0 24 24",...g}=r,y=A.isValidElement(o)&&o.type==="svg",b={...r,color:s,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:y},S={};f||(S.viewBox=m);const C=iq(b);return v.jsxs(sq,{as:a,className:Pe(C.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...S,...g,...y&&o.props,ownerState:b,children:[y?o.props.children:o,p?v.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(mf.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,fontSize:c.oneOfType([c.oneOf(["inherit","large","medium","small"]),c.string]),htmlColor:c.string,inheritViewBox:c.bool,shapeRendering:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),titleAccess:c.string,viewBox:c.string});mf.muiName="SvgIcon";function Fe(t,e){function n(r,o){return v.jsx(mf,{"data-testid":`${e}Icon`,ref:o,...r,children:t})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=mf.muiName,A.memo(A.forwardRef(n))}function aq(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return o=>{const i=typeof e=="function"?e(o):e,s=typeof t=="function"?t({...o,...i}):t,a=Pe(o==null?void 0:o.className,i==null?void 0:i.className,s==null?void 0:s.className);return{...i,...s,...!!a&&{className:a},...(i==null?void 0:i.style)&&(s==null?void 0:s.style)&&{style:{...i.style,...s.style}},...(i==null?void 0:i.sx)&&(s==null?void 0:s.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const n=e,r=Pe(n==null?void 0:n.className,t==null?void 0:t.className);return{...e,...t,...!!r&&{className:r},...(n==null?void 0:n.style)&&(t==null?void 0:t.style)&&{style:{...n.style,...t.style}},...(n==null?void 0:n.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}const kA=Fe(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),tr=t=>{const{name:e,id:n,className:r}=t,[o,i,s]=qt.useField(e),{error:a}=i;return v.jsxs(j.Typography,{id:n,"data-testid":`test-${n}`,variant:"caption",display:"block",color:"error",style:{visibility:a?"visible":"hidden"},className:r,fontSize:".9rem",children:[v.jsx(j.Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",position:"relative",top:"3px",mr:.5},children:v.jsx(kA,{fontSize:"inherit"})}),a]})},EA=t=>{const{name:e,label:n=Mn(e),options:r=[],filterSelectedOptions:o=!0,variant:i="outlined",staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l,margin:u="dense",fullWidth:f=!0,required:p,onChange:m,clearOnSelect:g=!1,onInputChange:y,getOptionLabel:b=N=>typeof N=="string"?N:String(N),isOptionEqualToValue:S=(N,V)=>JSON.stringify(N)===JSON.stringify(V),useFieldAsValue:C,..._}=t,[T,w,E]=qt.useField(e),{setValue:O}=E,{error:P}=w,[D,L]=A.useState(""),M={...er(_,["useFieldAsValue"]),getOptionLabel:b,options:r,filterSelectedOptions:o,isOptionEqualToValue:S,renderInput:N=>v.jsx(j.TextField,{...N,variant:i,label:s?void 0:n,error:!!P,required:p}),onChange:(N,V,B,$)=>{g?(L(""),O(null)):O(C?V?V[C]:null:V),m&&m(N,V,B,$)},onInputChange:(N,V,B)=>{L(V),y&&y(N,V,B)},fullWidth:!0,inputValue:D,value:C?r.find(N=>N[C]===T.value)||null:T.value,slotProps:{paper:{elevation:8,sx:{borderRadius:2}}}},R=()=>{if(!T.value)return"";if(C){const N=r.find(V=>V[C]===T.value);return N?b(N):""}return b(T.value)};return v.jsxs(j.FormControl,{margin:u,fullWidth:f,required:p,children:[(s||l)&&v.jsx(j.Typography,{...a,children:n}),l?v.jsx(j.Typography,{children:R()}):v.jsxs(j.Box,{children:[v.jsx(j.Autocomplete,{...M}),v.jsx(tr,{name:e,id:`${e}-err`})]})]})};var Zl={exports:{}};/**
|
|
79
79
|
* @license
|
|
80
80
|
* Lodash <https://lodash.com/>
|
|
81
81
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
package/dist/index.es.js
CHANGED
package/dist/index.umd.js
CHANGED
|
@@ -76,7 +76,7 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
76
76
|
|
|
77
77
|
export default theme;`}function Hh(t={},...e){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,...u}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":bo(20));const f=Vh(i),p=Fh(t);let g=zn(p,{mixins:nB(p.breakpoints,r),palette:f,shadows:lB.slice(),typography:oB(f,a),transitions:fB(s),zIndex:{...pB}});if(g=zn(g,u),g=e.reduce((m,y)=>zn(m,y),g),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(b,S)=>{let C;for(C in b){const T=b[C];if(m.includes(C)&&Object.keys(T).length>0){if(process.env.NODE_ENV!=="production"){const _=Ke("",C);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${_}' syntax:`,JSON.stringify({root:{[`&.${_}`]:T}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
78
78
|
`))}b[C]={}}}};Object.keys(g.components).forEach(b=>{const S=g.components[b].styleOverrides;S&&b.startsWith("Mui")&&y(S,b)})}return g.unstable_sxConfig={...El,...u==null?void 0:u.unstable_sxConfig},g.unstable_sx=function(y){return oa({sx:y,theme:this})},g.toRuntimeSource=oC,g}function jh(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const gB=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=jh(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function iC(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function sC(t){return t==="dark"?gB:[]}function mB(t){const{palette:e={mode:"light"},opacity:n,overlays:r,...o}=t,i=Vh(e);return{palette:i,opacity:{...iC(i.mode),...n},overlays:r||sC(i.mode),...o}}function yB(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const bB=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],vB=t=>(e,n)=>{const r=t.rootSelector||":root",o=t.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const s={};return bB(t.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",e)]:s,[`${r}, ${i.replace("%s",e)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(e))}`}else if(e){if(i==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(i)return i.replace("%s",String(e))}return r};function xB(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function ve(t,e,n){!t[e]&&n&&(t[e]=n)}function Dl(t){return typeof t!="string"||!t.startsWith("hsl")?t:KS(t)}function qo(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Ml(Dl(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
79
|
-
To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function SB(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const xo=t=>{try{return t()}catch{}},CB=(t="mui")=>H5(t);function Wh(t,e,n,r){if(!e)return;e=e===!0?{}:e;const o=r==="dark"?"dark":"light";if(!n){t[r]=mB({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:i,...s}=Hh({...n,palette:{mode:o,...e==null?void 0:e.palette}});return t[r]={...e,palette:i,opacity:{...iC(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||sC(o)},s}function wB(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=yB,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=t,f=Object.keys(n)[0],p=r||(n.light&&f!=="light"?"light":f),g=CB(i),{[p]:m,light:y,dark:b,...S}=n,C={...S};let T=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:bo(21,p));const _=Wh(C,T,u,p);y&&!C.light&&Wh(C,y,void 0,"light"),b&&!C.dark&&Wh(C,b,void 0,"dark");let w={defaultColorScheme:p,..._,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:g,colorSchemes:C,font:{...tB(_.typography),..._.font},spacing:SB(u.spacing)};Object.keys(w.colorSchemes).forEach($=>{const M=w.colorSchemes[$].palette,A=F=>{const H=F.split("-"),z=H[1],B=H[2];return g(F,M[z][B])};if(M.mode==="light"&&(ve(M.common,"background","#fff"),ve(M.common,"onBackground","#000")),M.mode==="dark"&&(ve(M.common,"background","#000"),ve(M.common,"onBackground","#fff")),xB(M,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),M.mode==="light"){ve(M.Alert,"errorColor",Nt(M.error.light,.6)),ve(M.Alert,"infoColor",Nt(M.info.light,.6)),ve(M.Alert,"successColor",Nt(M.success.light,.6)),ve(M.Alert,"warningColor",Nt(M.warning.light,.6)),ve(M.Alert,"errorFilledBg",A("palette-error-main")),ve(M.Alert,"infoFilledBg",A("palette-info-main")),ve(M.Alert,"successFilledBg",A("palette-success-main")),ve(M.Alert,"warningFilledBg",A("palette-warning-main")),ve(M.Alert,"errorFilledColor",xo(()=>M.getContrastText(M.error.main))),ve(M.Alert,"infoFilledColor",xo(()=>M.getContrastText(M.info.main))),ve(M.Alert,"successFilledColor",xo(()=>M.getContrastText(M.success.main))),ve(M.Alert,"warningFilledColor",xo(()=>M.getContrastText(M.warning.main))),ve(M.Alert,"errorStandardBg",Lt(M.error.light,.9)),ve(M.Alert,"infoStandardBg",Lt(M.info.light,.9)),ve(M.Alert,"successStandardBg",Lt(M.success.light,.9)),ve(M.Alert,"warningStandardBg",Lt(M.warning.light,.9)),ve(M.Alert,"errorIconColor",A("palette-error-main")),ve(M.Alert,"infoIconColor",A("palette-info-main")),ve(M.Alert,"successIconColor",A("palette-success-main")),ve(M.Alert,"warningIconColor",A("palette-warning-main")),ve(M.AppBar,"defaultBg",A("palette-grey-100")),ve(M.Avatar,"defaultBg",A("palette-grey-400")),ve(M.Button,"inheritContainedBg",A("palette-grey-300")),ve(M.Button,"inheritContainedHoverBg",A("palette-grey-A100")),ve(M.Chip,"defaultBorder",A("palette-grey-400")),ve(M.Chip,"defaultAvatarColor",A("palette-grey-700")),ve(M.Chip,"defaultIconColor",A("palette-grey-700")),ve(M.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ve(M.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ve(M.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ve(M.LinearProgress,"primaryBg",Lt(M.primary.main,.62)),ve(M.LinearProgress,"secondaryBg",Lt(M.secondary.main,.62)),ve(M.LinearProgress,"errorBg",Lt(M.error.main,.62)),ve(M.LinearProgress,"infoBg",Lt(M.info.main,.62)),ve(M.LinearProgress,"successBg",Lt(M.success.main,.62)),ve(M.LinearProgress,"warningBg",Lt(M.warning.main,.62)),ve(M.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.11)`),ve(M.Slider,"primaryTrack",Lt(M.primary.main,.62)),ve(M.Slider,"secondaryTrack",Lt(M.secondary.main,.62)),ve(M.Slider,"errorTrack",Lt(M.error.main,.62)),ve(M.Slider,"infoTrack",Lt(M.info.main,.62)),ve(M.Slider,"successTrack",Lt(M.success.main,.62)),ve(M.Slider,"warningTrack",Lt(M.warning.main,.62));const F=Wu(M.background.default,.8);ve(M.SnackbarContent,"bg",F),ve(M.SnackbarContent,"color",xo(()=>M.getContrastText(F))),ve(M.SpeedDialAction,"fabHoverBg",Wu(M.background.paper,.15)),ve(M.StepConnector,"border",A("palette-grey-400")),ve(M.StepContent,"border",A("palette-grey-400")),ve(M.Switch,"defaultColor",A("palette-common-white")),ve(M.Switch,"defaultDisabledColor",A("palette-grey-100")),ve(M.Switch,"primaryDisabledColor",Lt(M.primary.main,.62)),ve(M.Switch,"secondaryDisabledColor",Lt(M.secondary.main,.62)),ve(M.Switch,"errorDisabledColor",Lt(M.error.main,.62)),ve(M.Switch,"infoDisabledColor",Lt(M.info.main,.62)),ve(M.Switch,"successDisabledColor",Lt(M.success.main,.62)),ve(M.Switch,"warningDisabledColor",Lt(M.warning.main,.62)),ve(M.TableCell,"border",Lt(ju(M.divider,1),.88)),ve(M.Tooltip,"bg",ju(M.grey[700],.92))}if(M.mode==="dark"){ve(M.Alert,"errorColor",Lt(M.error.light,.6)),ve(M.Alert,"infoColor",Lt(M.info.light,.6)),ve(M.Alert,"successColor",Lt(M.success.light,.6)),ve(M.Alert,"warningColor",Lt(M.warning.light,.6)),ve(M.Alert,"errorFilledBg",A("palette-error-dark")),ve(M.Alert,"infoFilledBg",A("palette-info-dark")),ve(M.Alert,"successFilledBg",A("palette-success-dark")),ve(M.Alert,"warningFilledBg",A("palette-warning-dark")),ve(M.Alert,"errorFilledColor",xo(()=>M.getContrastText(M.error.dark))),ve(M.Alert,"infoFilledColor",xo(()=>M.getContrastText(M.info.dark))),ve(M.Alert,"successFilledColor",xo(()=>M.getContrastText(M.success.dark))),ve(M.Alert,"warningFilledColor",xo(()=>M.getContrastText(M.warning.dark))),ve(M.Alert,"errorStandardBg",Nt(M.error.light,.9)),ve(M.Alert,"infoStandardBg",Nt(M.info.light,.9)),ve(M.Alert,"successStandardBg",Nt(M.success.light,.9)),ve(M.Alert,"warningStandardBg",Nt(M.warning.light,.9)),ve(M.Alert,"errorIconColor",A("palette-error-main")),ve(M.Alert,"infoIconColor",A("palette-info-main")),ve(M.Alert,"successIconColor",A("palette-success-main")),ve(M.Alert,"warningIconColor",A("palette-warning-main")),ve(M.AppBar,"defaultBg",A("palette-grey-900")),ve(M.AppBar,"darkBg",A("palette-background-paper")),ve(M.AppBar,"darkColor",A("palette-text-primary")),ve(M.Avatar,"defaultBg",A("palette-grey-600")),ve(M.Button,"inheritContainedBg",A("palette-grey-800")),ve(M.Button,"inheritContainedHoverBg",A("palette-grey-700")),ve(M.Chip,"defaultBorder",A("palette-grey-700")),ve(M.Chip,"defaultAvatarColor",A("palette-grey-300")),ve(M.Chip,"defaultIconColor",A("palette-grey-300")),ve(M.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ve(M.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ve(M.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ve(M.LinearProgress,"primaryBg",Nt(M.primary.main,.5)),ve(M.LinearProgress,"secondaryBg",Nt(M.secondary.main,.5)),ve(M.LinearProgress,"errorBg",Nt(M.error.main,.5)),ve(M.LinearProgress,"infoBg",Nt(M.info.main,.5)),ve(M.LinearProgress,"successBg",Nt(M.success.main,.5)),ve(M.LinearProgress,"warningBg",Nt(M.warning.main,.5)),ve(M.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.13)`),ve(M.Slider,"primaryTrack",Nt(M.primary.main,.5)),ve(M.Slider,"secondaryTrack",Nt(M.secondary.main,.5)),ve(M.Slider,"errorTrack",Nt(M.error.main,.5)),ve(M.Slider,"infoTrack",Nt(M.info.main,.5)),ve(M.Slider,"successTrack",Nt(M.success.main,.5)),ve(M.Slider,"warningTrack",Nt(M.warning.main,.5));const F=Wu(M.background.default,.98);ve(M.SnackbarContent,"bg",F),ve(M.SnackbarContent,"color",xo(()=>M.getContrastText(F))),ve(M.SpeedDialAction,"fabHoverBg",Wu(M.background.paper,.15)),ve(M.StepConnector,"border",A("palette-grey-600")),ve(M.StepContent,"border",A("palette-grey-600")),ve(M.Switch,"defaultColor",A("palette-grey-300")),ve(M.Switch,"defaultDisabledColor",A("palette-grey-600")),ve(M.Switch,"primaryDisabledColor",Nt(M.primary.main,.55)),ve(M.Switch,"secondaryDisabledColor",Nt(M.secondary.main,.55)),ve(M.Switch,"errorDisabledColor",Nt(M.error.main,.55)),ve(M.Switch,"infoDisabledColor",Nt(M.info.main,.55)),ve(M.Switch,"successDisabledColor",Nt(M.success.main,.55)),ve(M.Switch,"warningDisabledColor",Nt(M.warning.main,.55)),ve(M.TableCell,"border",Nt(ju(M.divider,1),.68)),ve(M.Tooltip,"bg",ju(M.grey[700],.92))}qo(M.background,"default"),qo(M.background,"paper"),qo(M.common,"background"),qo(M.common,"onBackground"),qo(M,"divider"),Object.keys(M).forEach(F=>{const H=M[F];F!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&ve(M[F],"mainChannel",Ml(Dl(H.main))),H.light&&ve(M[F],"lightChannel",Ml(Dl(H.light))),H.dark&&ve(M[F],"darkChannel",Ml(Dl(H.dark))),H.contrastText&&ve(M[F],"contrastTextChannel",Ml(Dl(H.contrastText))),F==="text"&&(qo(M[F],"primary"),qo(M[F],"secondary")),F==="action"&&(H.active&&qo(M[F],"active"),H.selected&&qo(M[F],"selected")))})}),w=e.reduce(($,M)=>zn($,M),w);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:vB(w)},{vars:O,generateThemeVars:N,generateStyleSheets:P}=q5(w,E);return w.vars=O,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([$,M])=>{w[$]=M}),w.generateThemeVars=N,w.generateStyleSheets=P,w.generateSpacing=function(){return RS(u.spacing,Ph(this))},w.getColorSchemeSelector=U5(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...El,...u==null?void 0:u.unstable_sxConfig},w.unstable_sx=function(M){return oa({sx:M,theme:this})},w.toRuntimeSource=oC,w}function aC(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:Vh({...n===!0?{}:n.palette,mode:e})})}function _B(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=t,a=i||"light",l=o==null?void 0:o[a],u={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return Hh(t,...e);let f=n;"palette"in t||u[a]&&(u[a]!==!0?f=u[a].palette:a==="dark"&&(f={mode:"dark"}));const p=Hh({...t,palette:f},...e);return p.defaultColorScheme=a,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},aC(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},aC(p,"light",u.light)),p}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),wB({...s,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...e)}const qu=_B(),Pl="$$material";function Si(){const t=$h(qu);return process.env.NODE_ENV!=="production"&&I.useDebugValue(t),t[Pl]||t}function lC(t){return v.jsx(VS,{...t,defaultTheme:qu,themeId:Pl})}process.env.NODE_ENV!=="production"&&(lC.propTypes={styles:c.oneOfType([c.array,c.func,c.number,c.object,c.string,c.bool])});function cC(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const ro=t=>cC(t)&&t!=="classes",be=T5({themeId:Pl,defaultTheme:qu,rootShouldForwardProp:ro});function TB(t){return function(n){return v.jsx(lC,{styles:typeof t=="function"?r=>t({theme:r,...n}):t})}}function kB(){return s5}const Dt=V5;process.env.NODE_ENV!=="production"&&(c.node,c.object.isRequired);function St(t){return z5(t)}function EB(t){return Ke("MuiSvgIcon",t)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const MB=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${Ae(e)}`,`fontSize${Ae(n)}`]};return Ue(o,EB,r)},OB=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Ae(n.color)}`],e[`fontSize${Ae(n.fontSize)}`]]}})(Dt(({theme:t})=>{var e,n,r,o,i,s,a,l,u,f,p,g,m,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:b=>!b.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=t.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,b])=>b&&b.main).map(([b])=>{var S,C;return{props:{color:b},style:{color:(C=(S=(t.vars??t).palette)==null?void 0:S[b])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(g=(p=(t.vars??t).palette)==null?void 0:p.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(y=(m=(t.vars??t).palette)==null?void 0:m.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Uu=I.forwardRef(function(e,n){const r=St({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:g="0 0 24 24",...m}=r,y=I.isValidElement(o)&&o.type==="svg",b={...r,color:s,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:g,hasSvgAsChild:y},S={};f||(S.viewBox=g);const C=MB(b);return v.jsxs(OB,{as:a,className:Le(C.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...S,...m,...y&&o.props,ownerState:b,children:[y?o.props.children:o,p?v.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Uu.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,fontSize:c.oneOfType([c.oneOf(["inherit","large","medium","small"]),c.string]),htmlColor:c.string,inheritViewBox:c.bool,shapeRendering:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),titleAccess:c.string,viewBox:c.string}),Uu.muiName="SvgIcon";function ze(t,e){function n(r,o){return v.jsx(Uu,{"data-testid":`${e}Icon`,ref:o,...r,children:t})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=Uu.muiName,I.memo(I.forwardRef(n))}function AB(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return o=>{const i=typeof e=="function"?e(o):e,s=typeof t=="function"?t({...o,...i}):t,a=Le(o==null?void 0:o.className,i==null?void 0:i.className,s==null?void 0:s.className);return{...i,...s,...!!a&&{className:a},...(i==null?void 0:i.style)&&(s==null?void 0:s.style)&&{style:{...i.style,...s.style}},...(i==null?void 0:i.sx)&&(s==null?void 0:s.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const n=e,r=Le(n==null?void 0:n.className,t==null?void 0:t.className);return{...e,...t,...!!r&&{className:r},...(n==null?void 0:n.style)&&(t==null?void 0:t.style)&&{style:{...n.style,...t.style}},...(n==null?void 0:n.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}const uC=ze(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),Xn=t=>{const{name:e,id:n,className:r}=t,[o,i,s]=jt.useField(e),{error:a}=i;return v.jsxs(L.Typography,{id:n,variant:"caption",display:"block",color:"error",style:{visibility:a?"visible":"hidden"},className:r,fontSize:".9rem",children:[v.jsx(L.Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",position:"relative",top:"3px",mr:.5},children:v.jsx(uC,{fontSize:"inherit"})}),a]})},dC=t=>{const{name:e,label:n=_n(e),options:r=[],filterSelectedOptions:o=!0,variant:i="outlined",staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l,margin:u="dense",fullWidth:f=!0,required:p,onChange:g,clearOnSelect:m=!1,onInputChange:y,getOptionLabel:b=F=>typeof F=="string"?F:String(F),isOptionEqualToValue:S=(F,H)=>JSON.stringify(F)===JSON.stringify(H),useFieldAsValue:C,...T}=t,[_,w,E]=jt.useField(e),{setValue:O}=E,{error:N}=w,[P,$]=I.useState(""),M={...Jn(T,["useFieldAsValue"]),getOptionLabel:b,options:r,filterSelectedOptions:o,isOptionEqualToValue:S,renderInput:F=>v.jsx(L.TextField,{...F,variant:i,label:s?void 0:n,error:!!N,required:p}),onChange:(F,H,z,B)=>{m?($(""),O(null)):O(C?H?H[C]:null:H),g&&g(F,H,z,B)},onInputChange:(F,H,z)=>{$(H),y&&y(F,H,z)},fullWidth:!0,inputValue:P,value:C?r.find(F=>F[C]===_.value)||null:_.value,slotProps:{paper:{elevation:8,sx:{borderRadius:2}}}},A=()=>{if(!_.value)return"";if(C){const F=r.find(H=>H[C]===_.value);return F?b(F):""}return b(_.value)};return v.jsxs(L.FormControl,{margin:u,fullWidth:f,required:p,children:[(s||l)&&v.jsx(L.Typography,{...a,children:n}),l?v.jsx(L.Typography,{children:A()}):v.jsxs(L.Box,{children:[v.jsx(L.Autocomplete,{...M}),v.jsx(Xn,{name:e,id:`${e}-err`})]})]})};var Nl={exports:{}};/**
|
|
79
|
+
To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function SB(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const xo=t=>{try{return t()}catch{}},CB=(t="mui")=>H5(t);function Wh(t,e,n,r){if(!e)return;e=e===!0?{}:e;const o=r==="dark"?"dark":"light";if(!n){t[r]=mB({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:i,...s}=Hh({...n,palette:{mode:o,...e==null?void 0:e.palette}});return t[r]={...e,palette:i,opacity:{...iC(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||sC(o)},s}function wB(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=yB,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=t,f=Object.keys(n)[0],p=r||(n.light&&f!=="light"?"light":f),g=CB(i),{[p]:m,light:y,dark:b,...S}=n,C={...S};let T=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:bo(21,p));const _=Wh(C,T,u,p);y&&!C.light&&Wh(C,y,void 0,"light"),b&&!C.dark&&Wh(C,b,void 0,"dark");let w={defaultColorScheme:p,..._,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:g,colorSchemes:C,font:{...tB(_.typography),..._.font},spacing:SB(u.spacing)};Object.keys(w.colorSchemes).forEach($=>{const M=w.colorSchemes[$].palette,A=F=>{const H=F.split("-"),z=H[1],B=H[2];return g(F,M[z][B])};if(M.mode==="light"&&(ve(M.common,"background","#fff"),ve(M.common,"onBackground","#000")),M.mode==="dark"&&(ve(M.common,"background","#000"),ve(M.common,"onBackground","#fff")),xB(M,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),M.mode==="light"){ve(M.Alert,"errorColor",Nt(M.error.light,.6)),ve(M.Alert,"infoColor",Nt(M.info.light,.6)),ve(M.Alert,"successColor",Nt(M.success.light,.6)),ve(M.Alert,"warningColor",Nt(M.warning.light,.6)),ve(M.Alert,"errorFilledBg",A("palette-error-main")),ve(M.Alert,"infoFilledBg",A("palette-info-main")),ve(M.Alert,"successFilledBg",A("palette-success-main")),ve(M.Alert,"warningFilledBg",A("palette-warning-main")),ve(M.Alert,"errorFilledColor",xo(()=>M.getContrastText(M.error.main))),ve(M.Alert,"infoFilledColor",xo(()=>M.getContrastText(M.info.main))),ve(M.Alert,"successFilledColor",xo(()=>M.getContrastText(M.success.main))),ve(M.Alert,"warningFilledColor",xo(()=>M.getContrastText(M.warning.main))),ve(M.Alert,"errorStandardBg",Lt(M.error.light,.9)),ve(M.Alert,"infoStandardBg",Lt(M.info.light,.9)),ve(M.Alert,"successStandardBg",Lt(M.success.light,.9)),ve(M.Alert,"warningStandardBg",Lt(M.warning.light,.9)),ve(M.Alert,"errorIconColor",A("palette-error-main")),ve(M.Alert,"infoIconColor",A("palette-info-main")),ve(M.Alert,"successIconColor",A("palette-success-main")),ve(M.Alert,"warningIconColor",A("palette-warning-main")),ve(M.AppBar,"defaultBg",A("palette-grey-100")),ve(M.Avatar,"defaultBg",A("palette-grey-400")),ve(M.Button,"inheritContainedBg",A("palette-grey-300")),ve(M.Button,"inheritContainedHoverBg",A("palette-grey-A100")),ve(M.Chip,"defaultBorder",A("palette-grey-400")),ve(M.Chip,"defaultAvatarColor",A("palette-grey-700")),ve(M.Chip,"defaultIconColor",A("palette-grey-700")),ve(M.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ve(M.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ve(M.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ve(M.LinearProgress,"primaryBg",Lt(M.primary.main,.62)),ve(M.LinearProgress,"secondaryBg",Lt(M.secondary.main,.62)),ve(M.LinearProgress,"errorBg",Lt(M.error.main,.62)),ve(M.LinearProgress,"infoBg",Lt(M.info.main,.62)),ve(M.LinearProgress,"successBg",Lt(M.success.main,.62)),ve(M.LinearProgress,"warningBg",Lt(M.warning.main,.62)),ve(M.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.11)`),ve(M.Slider,"primaryTrack",Lt(M.primary.main,.62)),ve(M.Slider,"secondaryTrack",Lt(M.secondary.main,.62)),ve(M.Slider,"errorTrack",Lt(M.error.main,.62)),ve(M.Slider,"infoTrack",Lt(M.info.main,.62)),ve(M.Slider,"successTrack",Lt(M.success.main,.62)),ve(M.Slider,"warningTrack",Lt(M.warning.main,.62));const F=Wu(M.background.default,.8);ve(M.SnackbarContent,"bg",F),ve(M.SnackbarContent,"color",xo(()=>M.getContrastText(F))),ve(M.SpeedDialAction,"fabHoverBg",Wu(M.background.paper,.15)),ve(M.StepConnector,"border",A("palette-grey-400")),ve(M.StepContent,"border",A("palette-grey-400")),ve(M.Switch,"defaultColor",A("palette-common-white")),ve(M.Switch,"defaultDisabledColor",A("palette-grey-100")),ve(M.Switch,"primaryDisabledColor",Lt(M.primary.main,.62)),ve(M.Switch,"secondaryDisabledColor",Lt(M.secondary.main,.62)),ve(M.Switch,"errorDisabledColor",Lt(M.error.main,.62)),ve(M.Switch,"infoDisabledColor",Lt(M.info.main,.62)),ve(M.Switch,"successDisabledColor",Lt(M.success.main,.62)),ve(M.Switch,"warningDisabledColor",Lt(M.warning.main,.62)),ve(M.TableCell,"border",Lt(ju(M.divider,1),.88)),ve(M.Tooltip,"bg",ju(M.grey[700],.92))}if(M.mode==="dark"){ve(M.Alert,"errorColor",Lt(M.error.light,.6)),ve(M.Alert,"infoColor",Lt(M.info.light,.6)),ve(M.Alert,"successColor",Lt(M.success.light,.6)),ve(M.Alert,"warningColor",Lt(M.warning.light,.6)),ve(M.Alert,"errorFilledBg",A("palette-error-dark")),ve(M.Alert,"infoFilledBg",A("palette-info-dark")),ve(M.Alert,"successFilledBg",A("palette-success-dark")),ve(M.Alert,"warningFilledBg",A("palette-warning-dark")),ve(M.Alert,"errorFilledColor",xo(()=>M.getContrastText(M.error.dark))),ve(M.Alert,"infoFilledColor",xo(()=>M.getContrastText(M.info.dark))),ve(M.Alert,"successFilledColor",xo(()=>M.getContrastText(M.success.dark))),ve(M.Alert,"warningFilledColor",xo(()=>M.getContrastText(M.warning.dark))),ve(M.Alert,"errorStandardBg",Nt(M.error.light,.9)),ve(M.Alert,"infoStandardBg",Nt(M.info.light,.9)),ve(M.Alert,"successStandardBg",Nt(M.success.light,.9)),ve(M.Alert,"warningStandardBg",Nt(M.warning.light,.9)),ve(M.Alert,"errorIconColor",A("palette-error-main")),ve(M.Alert,"infoIconColor",A("palette-info-main")),ve(M.Alert,"successIconColor",A("palette-success-main")),ve(M.Alert,"warningIconColor",A("palette-warning-main")),ve(M.AppBar,"defaultBg",A("palette-grey-900")),ve(M.AppBar,"darkBg",A("palette-background-paper")),ve(M.AppBar,"darkColor",A("palette-text-primary")),ve(M.Avatar,"defaultBg",A("palette-grey-600")),ve(M.Button,"inheritContainedBg",A("palette-grey-800")),ve(M.Button,"inheritContainedHoverBg",A("palette-grey-700")),ve(M.Chip,"defaultBorder",A("palette-grey-700")),ve(M.Chip,"defaultAvatarColor",A("palette-grey-300")),ve(M.Chip,"defaultIconColor",A("palette-grey-300")),ve(M.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ve(M.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ve(M.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ve(M.LinearProgress,"primaryBg",Nt(M.primary.main,.5)),ve(M.LinearProgress,"secondaryBg",Nt(M.secondary.main,.5)),ve(M.LinearProgress,"errorBg",Nt(M.error.main,.5)),ve(M.LinearProgress,"infoBg",Nt(M.info.main,.5)),ve(M.LinearProgress,"successBg",Nt(M.success.main,.5)),ve(M.LinearProgress,"warningBg",Nt(M.warning.main,.5)),ve(M.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.13)`),ve(M.Slider,"primaryTrack",Nt(M.primary.main,.5)),ve(M.Slider,"secondaryTrack",Nt(M.secondary.main,.5)),ve(M.Slider,"errorTrack",Nt(M.error.main,.5)),ve(M.Slider,"infoTrack",Nt(M.info.main,.5)),ve(M.Slider,"successTrack",Nt(M.success.main,.5)),ve(M.Slider,"warningTrack",Nt(M.warning.main,.5));const F=Wu(M.background.default,.98);ve(M.SnackbarContent,"bg",F),ve(M.SnackbarContent,"color",xo(()=>M.getContrastText(F))),ve(M.SpeedDialAction,"fabHoverBg",Wu(M.background.paper,.15)),ve(M.StepConnector,"border",A("palette-grey-600")),ve(M.StepContent,"border",A("palette-grey-600")),ve(M.Switch,"defaultColor",A("palette-grey-300")),ve(M.Switch,"defaultDisabledColor",A("palette-grey-600")),ve(M.Switch,"primaryDisabledColor",Nt(M.primary.main,.55)),ve(M.Switch,"secondaryDisabledColor",Nt(M.secondary.main,.55)),ve(M.Switch,"errorDisabledColor",Nt(M.error.main,.55)),ve(M.Switch,"infoDisabledColor",Nt(M.info.main,.55)),ve(M.Switch,"successDisabledColor",Nt(M.success.main,.55)),ve(M.Switch,"warningDisabledColor",Nt(M.warning.main,.55)),ve(M.TableCell,"border",Nt(ju(M.divider,1),.68)),ve(M.Tooltip,"bg",ju(M.grey[700],.92))}qo(M.background,"default"),qo(M.background,"paper"),qo(M.common,"background"),qo(M.common,"onBackground"),qo(M,"divider"),Object.keys(M).forEach(F=>{const H=M[F];F!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&ve(M[F],"mainChannel",Ml(Dl(H.main))),H.light&&ve(M[F],"lightChannel",Ml(Dl(H.light))),H.dark&&ve(M[F],"darkChannel",Ml(Dl(H.dark))),H.contrastText&&ve(M[F],"contrastTextChannel",Ml(Dl(H.contrastText))),F==="text"&&(qo(M[F],"primary"),qo(M[F],"secondary")),F==="action"&&(H.active&&qo(M[F],"active"),H.selected&&qo(M[F],"selected")))})}),w=e.reduce(($,M)=>zn($,M),w);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:vB(w)},{vars:O,generateThemeVars:N,generateStyleSheets:P}=q5(w,E);return w.vars=O,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([$,M])=>{w[$]=M}),w.generateThemeVars=N,w.generateStyleSheets=P,w.generateSpacing=function(){return RS(u.spacing,Ph(this))},w.getColorSchemeSelector=U5(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...El,...u==null?void 0:u.unstable_sxConfig},w.unstable_sx=function(M){return oa({sx:M,theme:this})},w.toRuntimeSource=oC,w}function aC(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:Vh({...n===!0?{}:n.palette,mode:e})})}function _B(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=t,a=i||"light",l=o==null?void 0:o[a],u={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return Hh(t,...e);let f=n;"palette"in t||u[a]&&(u[a]!==!0?f=u[a].palette:a==="dark"&&(f={mode:"dark"}));const p=Hh({...t,palette:f},...e);return p.defaultColorScheme=a,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},aC(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},aC(p,"light",u.light)),p}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),wB({...s,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...e)}const qu=_B(),Pl="$$material";function Si(){const t=$h(qu);return process.env.NODE_ENV!=="production"&&I.useDebugValue(t),t[Pl]||t}function lC(t){return v.jsx(VS,{...t,defaultTheme:qu,themeId:Pl})}process.env.NODE_ENV!=="production"&&(lC.propTypes={styles:c.oneOfType([c.array,c.func,c.number,c.object,c.string,c.bool])});function cC(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const ro=t=>cC(t)&&t!=="classes",be=T5({themeId:Pl,defaultTheme:qu,rootShouldForwardProp:ro});function TB(t){return function(n){return v.jsx(lC,{styles:typeof t=="function"?r=>t({theme:r,...n}):t})}}function kB(){return s5}const Dt=V5;process.env.NODE_ENV!=="production"&&(c.node,c.object.isRequired);function St(t){return z5(t)}function EB(t){return Ke("MuiSvgIcon",t)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const MB=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${Ae(e)}`,`fontSize${Ae(n)}`]};return Ue(o,EB,r)},OB=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Ae(n.color)}`],e[`fontSize${Ae(n.fontSize)}`]]}})(Dt(({theme:t})=>{var e,n,r,o,i,s,a,l,u,f,p,g,m,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:b=>!b.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=t.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,b])=>b&&b.main).map(([b])=>{var S,C;return{props:{color:b},style:{color:(C=(S=(t.vars??t).palette)==null?void 0:S[b])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(g=(p=(t.vars??t).palette)==null?void 0:p.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(y=(m=(t.vars??t).palette)==null?void 0:m.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Uu=I.forwardRef(function(e,n){const r=St({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:g="0 0 24 24",...m}=r,y=I.isValidElement(o)&&o.type==="svg",b={...r,color:s,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:g,hasSvgAsChild:y},S={};f||(S.viewBox=g);const C=MB(b);return v.jsxs(OB,{as:a,className:Le(C.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...S,...m,...y&&o.props,ownerState:b,children:[y?o.props.children:o,p?v.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Uu.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,fontSize:c.oneOfType([c.oneOf(["inherit","large","medium","small"]),c.string]),htmlColor:c.string,inheritViewBox:c.bool,shapeRendering:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),titleAccess:c.string,viewBox:c.string}),Uu.muiName="SvgIcon";function ze(t,e){function n(r,o){return v.jsx(Uu,{"data-testid":`${e}Icon`,ref:o,...r,children:t})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=Uu.muiName,I.memo(I.forwardRef(n))}function AB(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return o=>{const i=typeof e=="function"?e(o):e,s=typeof t=="function"?t({...o,...i}):t,a=Le(o==null?void 0:o.className,i==null?void 0:i.className,s==null?void 0:s.className);return{...i,...s,...!!a&&{className:a},...(i==null?void 0:i.style)&&(s==null?void 0:s.style)&&{style:{...i.style,...s.style}},...(i==null?void 0:i.sx)&&(s==null?void 0:s.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const n=e,r=Le(n==null?void 0:n.className,t==null?void 0:t.className);return{...e,...t,...!!r&&{className:r},...(n==null?void 0:n.style)&&(t==null?void 0:t.style)&&{style:{...n.style,...t.style}},...(n==null?void 0:n.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}const uC=ze(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),Xn=t=>{const{name:e,id:n,className:r}=t,[o,i,s]=jt.useField(e),{error:a}=i;return v.jsxs(L.Typography,{id:n,"data-testid":`test-${n}`,variant:"caption",display:"block",color:"error",style:{visibility:a?"visible":"hidden"},className:r,fontSize:".9rem",children:[v.jsx(L.Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",position:"relative",top:"3px",mr:.5},children:v.jsx(uC,{fontSize:"inherit"})}),a]})},dC=t=>{const{name:e,label:n=_n(e),options:r=[],filterSelectedOptions:o=!0,variant:i="outlined",staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l,margin:u="dense",fullWidth:f=!0,required:p,onChange:g,clearOnSelect:m=!1,onInputChange:y,getOptionLabel:b=F=>typeof F=="string"?F:String(F),isOptionEqualToValue:S=(F,H)=>JSON.stringify(F)===JSON.stringify(H),useFieldAsValue:C,...T}=t,[_,w,E]=jt.useField(e),{setValue:O}=E,{error:N}=w,[P,$]=I.useState(""),M={...Jn(T,["useFieldAsValue"]),getOptionLabel:b,options:r,filterSelectedOptions:o,isOptionEqualToValue:S,renderInput:F=>v.jsx(L.TextField,{...F,variant:i,label:s?void 0:n,error:!!N,required:p}),onChange:(F,H,z,B)=>{m?($(""),O(null)):O(C?H?H[C]:null:H),g&&g(F,H,z,B)},onInputChange:(F,H,z)=>{$(H),y&&y(F,H,z)},fullWidth:!0,inputValue:P,value:C?r.find(F=>F[C]===_.value)||null:_.value,slotProps:{paper:{elevation:8,sx:{borderRadius:2}}}},A=()=>{if(!_.value)return"";if(C){const F=r.find(H=>H[C]===_.value);return F?b(F):""}return b(_.value)};return v.jsxs(L.FormControl,{margin:u,fullWidth:f,required:p,children:[(s||l)&&v.jsx(L.Typography,{...a,children:n}),l?v.jsx(L.Typography,{children:A()}):v.jsxs(L.Box,{children:[v.jsx(L.Autocomplete,{...M}),v.jsx(Xn,{name:e,id:`${e}-err`})]})]})};var Nl={exports:{}};/**
|
|
80
80
|
* @license
|
|
81
81
|
* Lodash <https://lodash.com/>
|
|
82
82
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|