@simoncomputing/mui-bueno-v3 0.2.5 → 0.2.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 CHANGED
@@ -11,20 +11,35 @@ 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.2.5] - 2026-03-05
14
+ ## [0.2.7] - 2026-04-8
15
15
 
16
16
  ### Changed
17
+
18
+ - Update Error to show validation messages for values inside nested objects and arrays
19
+
20
+ ## [0.2.6] - 2026-03-16
21
+
22
+ ### Changed
23
+
24
+ - Update Submit Button to be disabled ruing form submission
25
+
26
+ ## [0.2.5] - 2026-03-05
27
+
28
+ ### Changed
29
+
17
30
  - Update dynamic autocomplete with debounceTimeout property (default of 400ms)
18
31
  - Update Autocomplete and Select input components to use space bar for selecting values
19
32
 
20
33
  ## [0.1.2] - 2025-07-09
21
34
 
22
35
  ### Changed
36
+
23
37
  - Update index.ts to include MForm
24
38
 
25
39
  ## [0.1.1] - 2025-07-08
26
40
 
27
41
  ### Changed
42
+
28
43
  - Converting existing input components for react-hook-form
29
44
  - Components:
30
45
  - Inputs
@@ -34,6 +49,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
34
49
  ## [0.1.0] - 2025-07-08
35
50
 
36
51
  ### Changed
52
+
37
53
  - Converting existing input components for react-hook-form
38
54
  - Components:
39
55
  - Inputs
package/dist/index.cjs.js CHANGED
@@ -77,7 +77,7 @@ theme.transitions = createTransitions(theme.transitions || {});
77
77
 
78
78
  export default theme;`}function Xu(e={},...t){const{breakpoints:n,mixins:o={},spacing:s,palette:l={},transitions:c={},typography:u={},shape:d,...f}=e;if(e.vars&&e.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.":wr(20));const h=xd(l),b=Vs(e);let y=Qt(b,{mixins:vk(b.breakpoints,o),palette:h,shadows:Tk.slice(),typography:wk(h,u),transitions:Rk(c),zIndex:{...Mk}});if(y=Qt(y,f),y=t.reduce((C,w)=>Qt(C,w),y),process.env.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],w=(g,S)=>{let T;for(T in g){const M=g[T];if(C.includes(T)&&Object.keys(M).length>0){if(process.env.NODE_ENV!=="production"){const O=Be("",T);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(g,null,2),"",`Instead, you need to use the '&.${O}' syntax:`,JSON.stringify({root:{[`&.${O}`]:M}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
79
79
  `))}g[T]={}}}};Object.keys(y.components).forEach(g=>{const S=y.components[g].styleOverrides;S&&g.startsWith("Mui")&&w(S,g)})}return y.unstable_sxConfig={...Bs,...f==null?void 0:f.unstable_sxConfig},y.unstable_sx=function(w){return Ci({sx:w,theme:this})},y.toRuntimeSource=nb,y}function Zu(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const kk=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Zu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function rb(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ob(e){return e==="dark"?kk:[]}function Ik(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...s}=e,l=xd(t);return{palette:l,opacity:{...rb(l.mode),...n},overlays:o||ob(l.mode),...s}}function Ak(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const jk=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],$k=e=>(t,n)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let l=s;if(s==="class"&&(l=".%s"),s==="data"&&(l="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(l=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return jk(e.cssVarPrefix).forEach(u=>{c[u]=n[u],delete n[u]}),l==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:c}}:l?{[l.replace("%s",t)]:c,[`${o}, ${l.replace("%s",t)}`]:n}:{[o]:{...n,...c}}}if(l&&l!=="media")return`${o}, ${l.replace("%s",String(t))}`}else if(t){if(l==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(l)return l.replace("%s",String(t))}return o};function Nk(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function he(e,t,n){!e[t]&&n&&(e[t]=n)}function cs(e){return typeof e!="string"||!e.startsWith("hsl")?e:Qy(e)}function jr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ls(cs(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
80
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Fk(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const mr=e=>{try{return e()}catch{}},Lk=(e="mui")=>jD(e);function $u(e,t,n,o){if(!t)return;t=t===!0?{}:t;const s=o==="dark"?"dark":"light";if(!n){e[o]=Ik({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:l,...c}=Xu({...n,palette:{mode:s,...t==null?void 0:t.palette}});return e[o]={...t,palette:l,opacity:{...rb(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||ob(s)},c}function Bk(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:l="mui",shouldSkipGeneratingVar:c=Ak,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...f}=e,h=Object.keys(n)[0],b=o||(n.light&&h!=="light"?"light":h),y=Lk(l),{[b]:C,light:w,dark:g,...S}=n,T={...S};let M=C;if((b==="dark"&&!("dark"in n)||b==="light"&&!("light"in n))&&(M=!0),!M)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${b}\` option is either missing or invalid.`:wr(21,b));const O=$u(T,M,f,b);w&&!T.light&&$u(T,w,void 0,"light"),g&&!T.dark&&$u(T,g,void 0,"dark");let x={defaultColorScheme:b,...O,cssVarPrefix:l,colorSchemeSelector:u,rootSelector:d,getCssVar:y,colorSchemes:T,font:{...bk(O.typography),...O.font},spacing:Fk(f.spacing)};Object.keys(x.colorSchemes).forEach(N=>{const _=x.colorSchemes[N].palette,$=F=>{const B=F.split("-"),z=B[1],V=B[2];return y(F,_[z][V])};if(_.mode==="light"&&(he(_.common,"background","#fff"),he(_.common,"onBackground","#000")),_.mode==="dark"&&(he(_.common,"background","#000"),he(_.common,"onBackground","#fff")),Nk(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){he(_.Alert,"errorColor",wt(_.error.light,.6)),he(_.Alert,"infoColor",wt(_.info.light,.6)),he(_.Alert,"successColor",wt(_.success.light,.6)),he(_.Alert,"warningColor",wt(_.warning.light,.6)),he(_.Alert,"errorFilledBg",$("palette-error-main")),he(_.Alert,"infoFilledBg",$("palette-info-main")),he(_.Alert,"successFilledBg",$("palette-success-main")),he(_.Alert,"warningFilledBg",$("palette-warning-main")),he(_.Alert,"errorFilledColor",mr(()=>_.getContrastText(_.error.main))),he(_.Alert,"infoFilledColor",mr(()=>_.getContrastText(_.info.main))),he(_.Alert,"successFilledColor",mr(()=>_.getContrastText(_.success.main))),he(_.Alert,"warningFilledColor",mr(()=>_.getContrastText(_.warning.main))),he(_.Alert,"errorStandardBg",St(_.error.light,.9)),he(_.Alert,"infoStandardBg",St(_.info.light,.9)),he(_.Alert,"successStandardBg",St(_.success.light,.9)),he(_.Alert,"warningStandardBg",St(_.warning.light,.9)),he(_.Alert,"errorIconColor",$("palette-error-main")),he(_.Alert,"infoIconColor",$("palette-info-main")),he(_.Alert,"successIconColor",$("palette-success-main")),he(_.Alert,"warningIconColor",$("palette-warning-main")),he(_.AppBar,"defaultBg",$("palette-grey-100")),he(_.Avatar,"defaultBg",$("palette-grey-400")),he(_.Button,"inheritContainedBg",$("palette-grey-300")),he(_.Button,"inheritContainedHoverBg",$("palette-grey-A100")),he(_.Chip,"defaultBorder",$("palette-grey-400")),he(_.Chip,"defaultAvatarColor",$("palette-grey-700")),he(_.Chip,"defaultIconColor",$("palette-grey-700")),he(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),he(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),he(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),he(_.LinearProgress,"primaryBg",St(_.primary.main,.62)),he(_.LinearProgress,"secondaryBg",St(_.secondary.main,.62)),he(_.LinearProgress,"errorBg",St(_.error.main,.62)),he(_.LinearProgress,"infoBg",St(_.info.main,.62)),he(_.LinearProgress,"successBg",St(_.success.main,.62)),he(_.LinearProgress,"warningBg",St(_.warning.main,.62)),he(_.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),he(_.Slider,"primaryTrack",St(_.primary.main,.62)),he(_.Slider,"secondaryTrack",St(_.secondary.main,.62)),he(_.Slider,"errorTrack",St(_.error.main,.62)),he(_.Slider,"infoTrack",St(_.info.main,.62)),he(_.Slider,"successTrack",St(_.success.main,.62)),he(_.Slider,"warningTrack",St(_.warning.main,.62));const F=Ya(_.background.default,.8);he(_.SnackbarContent,"bg",F),he(_.SnackbarContent,"color",mr(()=>_.getContrastText(F))),he(_.SpeedDialAction,"fabHoverBg",Ya(_.background.paper,.15)),he(_.StepConnector,"border",$("palette-grey-400")),he(_.StepContent,"border",$("palette-grey-400")),he(_.Switch,"defaultColor",$("palette-common-white")),he(_.Switch,"defaultDisabledColor",$("palette-grey-100")),he(_.Switch,"primaryDisabledColor",St(_.primary.main,.62)),he(_.Switch,"secondaryDisabledColor",St(_.secondary.main,.62)),he(_.Switch,"errorDisabledColor",St(_.error.main,.62)),he(_.Switch,"infoDisabledColor",St(_.info.main,.62)),he(_.Switch,"successDisabledColor",St(_.success.main,.62)),he(_.Switch,"warningDisabledColor",St(_.warning.main,.62)),he(_.TableCell,"border",St(qa(_.divider,1),.88)),he(_.Tooltip,"bg",qa(_.grey[700],.92))}if(_.mode==="dark"){he(_.Alert,"errorColor",St(_.error.light,.6)),he(_.Alert,"infoColor",St(_.info.light,.6)),he(_.Alert,"successColor",St(_.success.light,.6)),he(_.Alert,"warningColor",St(_.warning.light,.6)),he(_.Alert,"errorFilledBg",$("palette-error-dark")),he(_.Alert,"infoFilledBg",$("palette-info-dark")),he(_.Alert,"successFilledBg",$("palette-success-dark")),he(_.Alert,"warningFilledBg",$("palette-warning-dark")),he(_.Alert,"errorFilledColor",mr(()=>_.getContrastText(_.error.dark))),he(_.Alert,"infoFilledColor",mr(()=>_.getContrastText(_.info.dark))),he(_.Alert,"successFilledColor",mr(()=>_.getContrastText(_.success.dark))),he(_.Alert,"warningFilledColor",mr(()=>_.getContrastText(_.warning.dark))),he(_.Alert,"errorStandardBg",wt(_.error.light,.9)),he(_.Alert,"infoStandardBg",wt(_.info.light,.9)),he(_.Alert,"successStandardBg",wt(_.success.light,.9)),he(_.Alert,"warningStandardBg",wt(_.warning.light,.9)),he(_.Alert,"errorIconColor",$("palette-error-main")),he(_.Alert,"infoIconColor",$("palette-info-main")),he(_.Alert,"successIconColor",$("palette-success-main")),he(_.Alert,"warningIconColor",$("palette-warning-main")),he(_.AppBar,"defaultBg",$("palette-grey-900")),he(_.AppBar,"darkBg",$("palette-background-paper")),he(_.AppBar,"darkColor",$("palette-text-primary")),he(_.Avatar,"defaultBg",$("palette-grey-600")),he(_.Button,"inheritContainedBg",$("palette-grey-800")),he(_.Button,"inheritContainedHoverBg",$("palette-grey-700")),he(_.Chip,"defaultBorder",$("palette-grey-700")),he(_.Chip,"defaultAvatarColor",$("palette-grey-300")),he(_.Chip,"defaultIconColor",$("palette-grey-300")),he(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),he(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),he(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),he(_.LinearProgress,"primaryBg",wt(_.primary.main,.5)),he(_.LinearProgress,"secondaryBg",wt(_.secondary.main,.5)),he(_.LinearProgress,"errorBg",wt(_.error.main,.5)),he(_.LinearProgress,"infoBg",wt(_.info.main,.5)),he(_.LinearProgress,"successBg",wt(_.success.main,.5)),he(_.LinearProgress,"warningBg",wt(_.warning.main,.5)),he(_.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),he(_.Slider,"primaryTrack",wt(_.primary.main,.5)),he(_.Slider,"secondaryTrack",wt(_.secondary.main,.5)),he(_.Slider,"errorTrack",wt(_.error.main,.5)),he(_.Slider,"infoTrack",wt(_.info.main,.5)),he(_.Slider,"successTrack",wt(_.success.main,.5)),he(_.Slider,"warningTrack",wt(_.warning.main,.5));const F=Ya(_.background.default,.98);he(_.SnackbarContent,"bg",F),he(_.SnackbarContent,"color",mr(()=>_.getContrastText(F))),he(_.SpeedDialAction,"fabHoverBg",Ya(_.background.paper,.15)),he(_.StepConnector,"border",$("palette-grey-600")),he(_.StepContent,"border",$("palette-grey-600")),he(_.Switch,"defaultColor",$("palette-grey-300")),he(_.Switch,"defaultDisabledColor",$("palette-grey-600")),he(_.Switch,"primaryDisabledColor",wt(_.primary.main,.55)),he(_.Switch,"secondaryDisabledColor",wt(_.secondary.main,.55)),he(_.Switch,"errorDisabledColor",wt(_.error.main,.55)),he(_.Switch,"infoDisabledColor",wt(_.info.main,.55)),he(_.Switch,"successDisabledColor",wt(_.success.main,.55)),he(_.Switch,"warningDisabledColor",wt(_.warning.main,.55)),he(_.TableCell,"border",wt(qa(_.divider,1),.68)),he(_.Tooltip,"bg",qa(_.grey[700],.92))}jr(_.background,"default"),jr(_.background,"paper"),jr(_.common,"background"),jr(_.common,"onBackground"),jr(_,"divider"),Object.keys(_).forEach(F=>{const B=_[F];F!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&he(_[F],"mainChannel",ls(cs(B.main))),B.light&&he(_[F],"lightChannel",ls(cs(B.light))),B.dark&&he(_[F],"darkChannel",ls(cs(B.dark))),B.contrastText&&he(_[F],"contrastTextChannel",ls(cs(B.contrastText))),F==="text"&&(jr(_[F],"primary"),jr(_[F],"secondary")),F==="action"&&(B.active&&jr(_[F],"active"),B.selected&&jr(_[F],"selected")))})}),x=t.reduce((N,_)=>Qt(N,_),x);const R={prefix:l,disableCssColorScheme:s,shouldSkipGeneratingVar:c,getSelector:$k(x)},{vars:D,generateThemeVars:A,generateStyleSheets:I}=FD(x,R);return x.vars=D,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([N,_])=>{x[N]=_}),x.generateThemeVars=A,x.generateStyleSheets=I,x.generateSpacing=function(){return Vy(f.spacing,Ml(this))},x.getColorSchemeSelector=LD(u),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=c,x.unstable_sxConfig={...Bs,...f==null?void 0:f.unstable_sxConfig},x.unstable_sx=function(_){return Ci({sx:_,theme:this})},x.toRuntimeSource=nb,x}function Cm(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:xd({...n===!0?{}:n.palette,mode:t})})}function Vk(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:l=n==null?void 0:n.mode,...c}=e,u=l||"light",d=s==null?void 0:s[u],f={...s,...n?{[u]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Xu(e,...t);let h=n;"palette"in e||f[u]&&(f[u]!==!0?h=f[u].palette:u==="dark"&&(h={mode:"dark"}));const b=Xu({...e,palette:h},...t);return b.defaultColorScheme=u,b.colorSchemes=f,b.palette.mode==="light"&&(b.colorSchemes.light={...f.light!==!0&&f.light,palette:b.palette},Cm(b,"dark",f.dark)),b.palette.mode==="dark"&&(b.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:b.palette},Cm(b,"light",f.light)),b}return!n&&!("light"in f)&&u==="light"&&(f.light=!0),Bk({...c,colorSchemes:f,defaultColorScheme:u,...typeof o!="boolean"&&o},...t)}const Ll=Vk(),Ws="$$material";function Fo(){const e=$l(Ll);return process.env.NODE_ENV!=="production"&&E.useDebugValue(e),e[Ws]||e}function ib(e){return m.jsx(zy,{...e,defaultTheme:Ll,themeId:Ws})}process.env.NODE_ENV!=="production"&&(ib.propTypes={styles:r.oneOfType([r.array,r.func,r.number,r.object,r.string,r.bool])});function sb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ur=e=>sb(e)&&e!=="classes",pe=qy({themeId:Ws,defaultTheme:Ll,rootShouldForwardProp:ur});function Wk(e){return function(n){return m.jsx(ib,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function zk(){return yd}const bt=AD;process.env.NODE_ENV!=="production"&&(r.node,r.object.isRequired);function at(e){return ID(e)}function Uk(e){return Be("MuiSvgIcon",e)}Ve("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hk=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(n)}`]};return Le(s,Uk,o)},qk=pe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Oe(n.color)}`],t[`fontSize${Oe(n.fontSize)}`]]}})(bt(({theme:e})=>{var t,n,o,s,l,c,u,d,f,h,b,y,C,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,g])=>g&&g.main).map(([g])=>{var S,T;return{props:{color:g},style:{color:(T=(S=(e.vars??e).palette)==null?void 0:S[g])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(y=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(w=(C=(e.vars??e).palette)==null?void 0:C.action)==null?void 0:w.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),dl=E.forwardRef(function(t,n){const o=at({props:t,name:"MuiSvgIcon"}),{children:s,className:l,color:c="inherit",component:u="svg",fontSize:d="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:b,viewBox:y="0 0 24 24",...C}=o,w=E.isValidElement(s)&&s.type==="svg",g={...o,color:c,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:y,hasSvgAsChild:w},S={};h||(S.viewBox=y);const T=Hk(g);return m.jsxs(qk,{as:u,className:Re(T.root,l),focusable:"false",color:f,"aria-hidden":b?void 0:!0,role:b?"img":void 0,ref:n,...S,...C,...w&&s.props,ownerState:g,children:[w?s.props.children:s,b?m.jsx("title",{children:b}):null]})});process.env.NODE_ENV!=="production"&&(dl.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,fontSize:r.oneOfType([r.oneOf(["inherit","large","medium","small"]),r.string]),htmlColor:r.string,inheritViewBox:r.bool,shapeRendering:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleAccess:r.string,viewBox:r.string});dl.muiName="SvgIcon";function Pt(e,t){function n(o,s){return m.jsx(dl,{"data-testid":`${t}Icon`,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=dl.muiName,E.memo(E.forwardRef(n))}function Yk(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,c=typeof e=="function"?e({...s,...l}):e,u=Re(s==null?void 0:s.className,l==null?void 0:l.className,c==null?void 0:c.className);return{...l,...c,...!!u&&{className:u},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const n=t,o=Re(n==null?void 0:n.className,e==null?void 0:e.className);return{...t,...e,...!!o&&{className:o},...(n==null?void 0:n.style)&&(e==null?void 0:e.style)&&{style:{...n.style,...e.style}},...(n==null?void 0:n.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const ab=Pt(m.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=e=>{var l;const{name:t,id:n,className:o}=e,{formState:{errors:s}}=Ke.useFormContext();return m.jsxs(L.Typography,{id:n,variant:"caption",display:"block",color:"error",style:{visibility:s[t]?"visible":"hidden"},className:o,fontSize:".9rem",children:[m.jsx(L.Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",position:"relative",top:"3px",mr:.5},children:m.jsx(ab,{fontSize:"inherit"})}),`${(l=s[t])==null?void 0:l.message}`]})},lb=e=>{const{name:t,label:n=ln(t),options:o=[],filterSelectedOptions:s=!0,variant:l="outlined",staticLabel:c=!1,staticLabelProps:u={fontSize:".9em",color:"#808080"},readOnly:d,margin:f="dense",fullWidth:h=!0,required:b,onChange:y,clearOnSelect:C=!1,onInputChange:w,getOptionLabel:g=I=>typeof I=="string"?I:String(I),isOptionEqualToValue:S=(I,N)=>JSON.stringify(I)===JSON.stringify(N),useFieldAsValue:T,...M}=e,{formState:{errors:O},control:x}=Ke.useFormContext(),[R,D]=E.useState(""),A=I=>{if(!I)return"";if(T){const N=o.find(_=>_[T]===I);return N?g(N):""}return g(I)};return m.jsx(Ke.Controller,{name:t,control:x,render:({field:I})=>{const N=T?o.find($=>$[T]===I.value)||null:I.value??null,_={...Kn(M,["useFieldAsValue","autoFocus"]),getOptionLabel:g,options:o,filterSelectedOptions:s,isOptionEqualToValue:S,renderInput:$=>{const{onKeyDown:F}=$.inputProps;return m.jsx(L.TextField,{...$,variant:l,label:c?void 0:n,error:!!O[t],required:b,autoFocus:M.autoFocus,slotProps:{input:{...$.InputProps,onKeyDown:B=>{if(B.key===" "){const z=document.querySelector(".MuiAutocomplete-option.Mui-focused");z&&(B.preventDefault(),z.click())}F&&F(B)}}}})},onChange:($,F,B,z)=>{C?(D(""),I.onChange(null)):T?I.onChange(F?F[T]:null):I.onChange(F),y&&y($,F,B,z)},onInputChange:($,F,B)=>{D(F),w&&w($,F,B)},fullWidth:!0,inputValue:R,value:N,slotProps:{paper:{elevation:8,sx:{borderRadius:2}}}};return m.jsxs(L.FormControl,{margin:f,fullWidth:h,required:b,children:[(c||d)&&m.jsx(L.Typography,{...u,children:n}),d?m.jsx(L.Typography,{children:A(I.value)}):m.jsxs(L.Box,{children:[m.jsx(L.Autocomplete,{..._}),m.jsx(Xn,{name:t,id:`${t}-err`})]})]})}})};var us={exports:{}};/**
80
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Fk(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const mr=e=>{try{return e()}catch{}},Lk=(e="mui")=>jD(e);function $u(e,t,n,o){if(!t)return;t=t===!0?{}:t;const s=o==="dark"?"dark":"light";if(!n){e[o]=Ik({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:l,...c}=Xu({...n,palette:{mode:s,...t==null?void 0:t.palette}});return e[o]={...t,palette:l,opacity:{...rb(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||ob(s)},c}function Bk(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:l="mui",shouldSkipGeneratingVar:c=Ak,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...f}=e,h=Object.keys(n)[0],b=o||(n.light&&h!=="light"?"light":h),y=Lk(l),{[b]:C,light:w,dark:g,...S}=n,T={...S};let M=C;if((b==="dark"&&!("dark"in n)||b==="light"&&!("light"in n))&&(M=!0),!M)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${b}\` option is either missing or invalid.`:wr(21,b));const O=$u(T,M,f,b);w&&!T.light&&$u(T,w,void 0,"light"),g&&!T.dark&&$u(T,g,void 0,"dark");let x={defaultColorScheme:b,...O,cssVarPrefix:l,colorSchemeSelector:u,rootSelector:d,getCssVar:y,colorSchemes:T,font:{...bk(O.typography),...O.font},spacing:Fk(f.spacing)};Object.keys(x.colorSchemes).forEach(N=>{const _=x.colorSchemes[N].palette,$=F=>{const B=F.split("-"),z=B[1],V=B[2];return y(F,_[z][V])};if(_.mode==="light"&&(he(_.common,"background","#fff"),he(_.common,"onBackground","#000")),_.mode==="dark"&&(he(_.common,"background","#000"),he(_.common,"onBackground","#fff")),Nk(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){he(_.Alert,"errorColor",wt(_.error.light,.6)),he(_.Alert,"infoColor",wt(_.info.light,.6)),he(_.Alert,"successColor",wt(_.success.light,.6)),he(_.Alert,"warningColor",wt(_.warning.light,.6)),he(_.Alert,"errorFilledBg",$("palette-error-main")),he(_.Alert,"infoFilledBg",$("palette-info-main")),he(_.Alert,"successFilledBg",$("palette-success-main")),he(_.Alert,"warningFilledBg",$("palette-warning-main")),he(_.Alert,"errorFilledColor",mr(()=>_.getContrastText(_.error.main))),he(_.Alert,"infoFilledColor",mr(()=>_.getContrastText(_.info.main))),he(_.Alert,"successFilledColor",mr(()=>_.getContrastText(_.success.main))),he(_.Alert,"warningFilledColor",mr(()=>_.getContrastText(_.warning.main))),he(_.Alert,"errorStandardBg",St(_.error.light,.9)),he(_.Alert,"infoStandardBg",St(_.info.light,.9)),he(_.Alert,"successStandardBg",St(_.success.light,.9)),he(_.Alert,"warningStandardBg",St(_.warning.light,.9)),he(_.Alert,"errorIconColor",$("palette-error-main")),he(_.Alert,"infoIconColor",$("palette-info-main")),he(_.Alert,"successIconColor",$("palette-success-main")),he(_.Alert,"warningIconColor",$("palette-warning-main")),he(_.AppBar,"defaultBg",$("palette-grey-100")),he(_.Avatar,"defaultBg",$("palette-grey-400")),he(_.Button,"inheritContainedBg",$("palette-grey-300")),he(_.Button,"inheritContainedHoverBg",$("palette-grey-A100")),he(_.Chip,"defaultBorder",$("palette-grey-400")),he(_.Chip,"defaultAvatarColor",$("palette-grey-700")),he(_.Chip,"defaultIconColor",$("palette-grey-700")),he(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),he(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),he(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),he(_.LinearProgress,"primaryBg",St(_.primary.main,.62)),he(_.LinearProgress,"secondaryBg",St(_.secondary.main,.62)),he(_.LinearProgress,"errorBg",St(_.error.main,.62)),he(_.LinearProgress,"infoBg",St(_.info.main,.62)),he(_.LinearProgress,"successBg",St(_.success.main,.62)),he(_.LinearProgress,"warningBg",St(_.warning.main,.62)),he(_.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),he(_.Slider,"primaryTrack",St(_.primary.main,.62)),he(_.Slider,"secondaryTrack",St(_.secondary.main,.62)),he(_.Slider,"errorTrack",St(_.error.main,.62)),he(_.Slider,"infoTrack",St(_.info.main,.62)),he(_.Slider,"successTrack",St(_.success.main,.62)),he(_.Slider,"warningTrack",St(_.warning.main,.62));const F=Ya(_.background.default,.8);he(_.SnackbarContent,"bg",F),he(_.SnackbarContent,"color",mr(()=>_.getContrastText(F))),he(_.SpeedDialAction,"fabHoverBg",Ya(_.background.paper,.15)),he(_.StepConnector,"border",$("palette-grey-400")),he(_.StepContent,"border",$("palette-grey-400")),he(_.Switch,"defaultColor",$("palette-common-white")),he(_.Switch,"defaultDisabledColor",$("palette-grey-100")),he(_.Switch,"primaryDisabledColor",St(_.primary.main,.62)),he(_.Switch,"secondaryDisabledColor",St(_.secondary.main,.62)),he(_.Switch,"errorDisabledColor",St(_.error.main,.62)),he(_.Switch,"infoDisabledColor",St(_.info.main,.62)),he(_.Switch,"successDisabledColor",St(_.success.main,.62)),he(_.Switch,"warningDisabledColor",St(_.warning.main,.62)),he(_.TableCell,"border",St(qa(_.divider,1),.88)),he(_.Tooltip,"bg",qa(_.grey[700],.92))}if(_.mode==="dark"){he(_.Alert,"errorColor",St(_.error.light,.6)),he(_.Alert,"infoColor",St(_.info.light,.6)),he(_.Alert,"successColor",St(_.success.light,.6)),he(_.Alert,"warningColor",St(_.warning.light,.6)),he(_.Alert,"errorFilledBg",$("palette-error-dark")),he(_.Alert,"infoFilledBg",$("palette-info-dark")),he(_.Alert,"successFilledBg",$("palette-success-dark")),he(_.Alert,"warningFilledBg",$("palette-warning-dark")),he(_.Alert,"errorFilledColor",mr(()=>_.getContrastText(_.error.dark))),he(_.Alert,"infoFilledColor",mr(()=>_.getContrastText(_.info.dark))),he(_.Alert,"successFilledColor",mr(()=>_.getContrastText(_.success.dark))),he(_.Alert,"warningFilledColor",mr(()=>_.getContrastText(_.warning.dark))),he(_.Alert,"errorStandardBg",wt(_.error.light,.9)),he(_.Alert,"infoStandardBg",wt(_.info.light,.9)),he(_.Alert,"successStandardBg",wt(_.success.light,.9)),he(_.Alert,"warningStandardBg",wt(_.warning.light,.9)),he(_.Alert,"errorIconColor",$("palette-error-main")),he(_.Alert,"infoIconColor",$("palette-info-main")),he(_.Alert,"successIconColor",$("palette-success-main")),he(_.Alert,"warningIconColor",$("palette-warning-main")),he(_.AppBar,"defaultBg",$("palette-grey-900")),he(_.AppBar,"darkBg",$("palette-background-paper")),he(_.AppBar,"darkColor",$("palette-text-primary")),he(_.Avatar,"defaultBg",$("palette-grey-600")),he(_.Button,"inheritContainedBg",$("palette-grey-800")),he(_.Button,"inheritContainedHoverBg",$("palette-grey-700")),he(_.Chip,"defaultBorder",$("palette-grey-700")),he(_.Chip,"defaultAvatarColor",$("palette-grey-300")),he(_.Chip,"defaultIconColor",$("palette-grey-300")),he(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),he(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),he(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),he(_.LinearProgress,"primaryBg",wt(_.primary.main,.5)),he(_.LinearProgress,"secondaryBg",wt(_.secondary.main,.5)),he(_.LinearProgress,"errorBg",wt(_.error.main,.5)),he(_.LinearProgress,"infoBg",wt(_.info.main,.5)),he(_.LinearProgress,"successBg",wt(_.success.main,.5)),he(_.LinearProgress,"warningBg",wt(_.warning.main,.5)),he(_.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),he(_.Slider,"primaryTrack",wt(_.primary.main,.5)),he(_.Slider,"secondaryTrack",wt(_.secondary.main,.5)),he(_.Slider,"errorTrack",wt(_.error.main,.5)),he(_.Slider,"infoTrack",wt(_.info.main,.5)),he(_.Slider,"successTrack",wt(_.success.main,.5)),he(_.Slider,"warningTrack",wt(_.warning.main,.5));const F=Ya(_.background.default,.98);he(_.SnackbarContent,"bg",F),he(_.SnackbarContent,"color",mr(()=>_.getContrastText(F))),he(_.SpeedDialAction,"fabHoverBg",Ya(_.background.paper,.15)),he(_.StepConnector,"border",$("palette-grey-600")),he(_.StepContent,"border",$("palette-grey-600")),he(_.Switch,"defaultColor",$("palette-grey-300")),he(_.Switch,"defaultDisabledColor",$("palette-grey-600")),he(_.Switch,"primaryDisabledColor",wt(_.primary.main,.55)),he(_.Switch,"secondaryDisabledColor",wt(_.secondary.main,.55)),he(_.Switch,"errorDisabledColor",wt(_.error.main,.55)),he(_.Switch,"infoDisabledColor",wt(_.info.main,.55)),he(_.Switch,"successDisabledColor",wt(_.success.main,.55)),he(_.Switch,"warningDisabledColor",wt(_.warning.main,.55)),he(_.TableCell,"border",wt(qa(_.divider,1),.68)),he(_.Tooltip,"bg",qa(_.grey[700],.92))}jr(_.background,"default"),jr(_.background,"paper"),jr(_.common,"background"),jr(_.common,"onBackground"),jr(_,"divider"),Object.keys(_).forEach(F=>{const B=_[F];F!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&he(_[F],"mainChannel",ls(cs(B.main))),B.light&&he(_[F],"lightChannel",ls(cs(B.light))),B.dark&&he(_[F],"darkChannel",ls(cs(B.dark))),B.contrastText&&he(_[F],"contrastTextChannel",ls(cs(B.contrastText))),F==="text"&&(jr(_[F],"primary"),jr(_[F],"secondary")),F==="action"&&(B.active&&jr(_[F],"active"),B.selected&&jr(_[F],"selected")))})}),x=t.reduce((N,_)=>Qt(N,_),x);const R={prefix:l,disableCssColorScheme:s,shouldSkipGeneratingVar:c,getSelector:$k(x)},{vars:D,generateThemeVars:A,generateStyleSheets:I}=FD(x,R);return x.vars=D,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([N,_])=>{x[N]=_}),x.generateThemeVars=A,x.generateStyleSheets=I,x.generateSpacing=function(){return Vy(f.spacing,Ml(this))},x.getColorSchemeSelector=LD(u),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=c,x.unstable_sxConfig={...Bs,...f==null?void 0:f.unstable_sxConfig},x.unstable_sx=function(_){return Ci({sx:_,theme:this})},x.toRuntimeSource=nb,x}function Cm(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:xd({...n===!0?{}:n.palette,mode:t})})}function Vk(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:l=n==null?void 0:n.mode,...c}=e,u=l||"light",d=s==null?void 0:s[u],f={...s,...n?{[u]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Xu(e,...t);let h=n;"palette"in e||f[u]&&(f[u]!==!0?h=f[u].palette:u==="dark"&&(h={mode:"dark"}));const b=Xu({...e,palette:h},...t);return b.defaultColorScheme=u,b.colorSchemes=f,b.palette.mode==="light"&&(b.colorSchemes.light={...f.light!==!0&&f.light,palette:b.palette},Cm(b,"dark",f.dark)),b.palette.mode==="dark"&&(b.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:b.palette},Cm(b,"light",f.light)),b}return!n&&!("light"in f)&&u==="light"&&(f.light=!0),Bk({...c,colorSchemes:f,defaultColorScheme:u,...typeof o!="boolean"&&o},...t)}const Ll=Vk(),Ws="$$material";function Fo(){const e=$l(Ll);return process.env.NODE_ENV!=="production"&&E.useDebugValue(e),e[Ws]||e}function ib(e){return m.jsx(zy,{...e,defaultTheme:Ll,themeId:Ws})}process.env.NODE_ENV!=="production"&&(ib.propTypes={styles:r.oneOfType([r.array,r.func,r.number,r.object,r.string,r.bool])});function sb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ur=e=>sb(e)&&e!=="classes",pe=qy({themeId:Ws,defaultTheme:Ll,rootShouldForwardProp:ur});function Wk(e){return function(n){return m.jsx(ib,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function zk(){return yd}const bt=AD;process.env.NODE_ENV!=="production"&&(r.node,r.object.isRequired);function at(e){return ID(e)}function Uk(e){return Be("MuiSvgIcon",e)}Ve("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hk=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(n)}`]};return Le(s,Uk,o)},qk=pe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Oe(n.color)}`],t[`fontSize${Oe(n.fontSize)}`]]}})(bt(({theme:e})=>{var t,n,o,s,l,c,u,d,f,h,b,y,C,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,g])=>g&&g.main).map(([g])=>{var S,T;return{props:{color:g},style:{color:(T=(S=(e.vars??e).palette)==null?void 0:S[g])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(y=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(w=(C=(e.vars??e).palette)==null?void 0:C.action)==null?void 0:w.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),dl=E.forwardRef(function(t,n){const o=at({props:t,name:"MuiSvgIcon"}),{children:s,className:l,color:c="inherit",component:u="svg",fontSize:d="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:b,viewBox:y="0 0 24 24",...C}=o,w=E.isValidElement(s)&&s.type==="svg",g={...o,color:c,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:y,hasSvgAsChild:w},S={};h||(S.viewBox=y);const T=Hk(g);return m.jsxs(qk,{as:u,className:Re(T.root,l),focusable:"false",color:f,"aria-hidden":b?void 0:!0,role:b?"img":void 0,ref:n,...S,...C,...w&&s.props,ownerState:g,children:[w?s.props.children:s,b?m.jsx("title",{children:b}):null]})});process.env.NODE_ENV!=="production"&&(dl.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,fontSize:r.oneOfType([r.oneOf(["inherit","large","medium","small"]),r.string]),htmlColor:r.string,inheritViewBox:r.bool,shapeRendering:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleAccess:r.string,viewBox:r.string});dl.muiName="SvgIcon";function Pt(e,t){function n(o,s){return m.jsx(dl,{"data-testid":`${t}Icon`,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=dl.muiName,E.memo(E.forwardRef(n))}function Yk(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,c=typeof e=="function"?e({...s,...l}):e,u=Re(s==null?void 0:s.className,l==null?void 0:l.className,c==null?void 0:c.className);return{...l,...c,...!!u&&{className:u},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const n=t,o=Re(n==null?void 0:n.className,e==null?void 0:e.className);return{...t,...e,...!!o&&{className:o},...(n==null?void 0:n.style)&&(e==null?void 0:e.style)&&{style:{...n.style,...e.style}},...(n==null?void 0:n.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const ab=Pt(m.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=e=>{var c,u;const{name:t,id:n,className:o}=e,{formState:{errors:s}}=Ke.useFormContext();function l(d,f){return f.split(".").reduce((h,b)=>{if(h==null)return;const y=Number(b);return!isNaN(y)&&Array.isArray(h)?h[y]:h[b]},d)}return m.jsxs(L.Typography,{id:n,variant:"caption",display:"block",color:"error",style:{visibility:((c=l(s,t))==null?void 0:c.message)??void 0?"visible":"hidden"},className:o,fontSize:".9rem",children:[m.jsx(L.Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",position:"relative",top:"3px",mr:.5},children:m.jsx(ab,{fontSize:"inherit"})}),`${((u=l(s,t))==null?void 0:u.message)??""}`]})},lb=e=>{const{name:t,label:n=ln(t),options:o=[],filterSelectedOptions:s=!0,variant:l="outlined",staticLabel:c=!1,staticLabelProps:u={fontSize:".9em",color:"#808080"},readOnly:d,margin:f="dense",fullWidth:h=!0,required:b,onChange:y,clearOnSelect:C=!1,onInputChange:w,getOptionLabel:g=I=>typeof I=="string"?I:String(I),isOptionEqualToValue:S=(I,N)=>JSON.stringify(I)===JSON.stringify(N),useFieldAsValue:T,...M}=e,{formState:{errors:O},control:x}=Ke.useFormContext(),[R,D]=E.useState(""),A=I=>{if(!I)return"";if(T){const N=o.find(_=>_[T]===I);return N?g(N):""}return g(I)};return m.jsx(Ke.Controller,{name:t,control:x,render:({field:I})=>{const N=T?o.find($=>$[T]===I.value)||null:I.value??null,_={...Kn(M,["useFieldAsValue","autoFocus"]),getOptionLabel:g,options:o,filterSelectedOptions:s,isOptionEqualToValue:S,renderInput:$=>{const{onKeyDown:F}=$.inputProps;return m.jsx(L.TextField,{...$,variant:l,label:c?void 0:n,error:!!O[t],required:b,autoFocus:M.autoFocus,slotProps:{input:{...$.InputProps,onKeyDown:B=>{if(B.key===" "){const z=document.querySelector(".MuiAutocomplete-option.Mui-focused");z&&(B.preventDefault(),z.click())}F&&F(B)}}}})},onChange:($,F,B,z)=>{C?(D(""),I.onChange(null)):T?I.onChange(F?F[T]:null):I.onChange(F),y&&y($,F,B,z)},onInputChange:($,F,B)=>{D(F),w&&w($,F,B)},fullWidth:!0,inputValue:R,value:N,slotProps:{paper:{elevation:8,sx:{borderRadius:2}}}};return m.jsxs(L.FormControl,{margin:f,fullWidth:h,required:b,children:[(c||d)&&m.jsx(L.Typography,{...u,children:n}),d?m.jsx(L.Typography,{children:A(I.value)}):m.jsxs(L.Box,{children:[m.jsx(L.Autocomplete,{..._}),m.jsx(Xn,{name:t,id:`${t}-err`})]})]})}})};var us={exports:{}};/**
81
81
  * @license
82
82
  * Lodash <https://lodash.com/>
83
83
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -258,4 +258,4 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
258
258
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
259
259
 
260
260
  `,`1) content: element.innerHTML
261
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var u=s.reduce(function(d,f){var h=f&&J5(f,o);return h&&d.push(h),d},[]);return As(e)?u[0]:u}Zs.defaultProps=An;Zs.setDefaultProps=K5;Zs.currentInput=br;Object.assign({},ov,{effect:function(t){var n=t.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow)}});Zs.setDefaultProps({render:Jv});const ex=Ne.forwardRef((e,t)=>{const[n,o]=Ne.useState(0),s=d=>{if(d>=e.items.length)return;const f=e.items[d],h={id:f.id,label:f.mentionLabel};e.command(h)},l=()=>{o((n+e.items.length-1)%e.items.length)},c=()=>{o((n+1)%e.items.length)},u=()=>{s(n)};return Ne.useEffect(()=>o(0),[e.items]),Ne.useImperativeHandle(t,()=>({onKeyDown:({event:d})=>d.key==="ArrowUp"?(l(),!0):d.key==="ArrowDown"?(c(),!0):d.key==="Enter"?(u(),!0):!1})),e.items.length>0?m.jsx(L.Paper,{elevation:5,children:m.jsx(L.List,{dense:!0,sx:{overflow:"hidden"},children:e.items.map((d,f)=>m.jsx(L.ListItem,{disablePadding:!0,children:m.jsx(L.ListItemButton,{selected:f===n,onClick:()=>s(f),children:d.mentionLabel})},d.id))})}):null});ex.displayName="SuggestionList";const Wg={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,toJSON(){return{}}},eW={items:async({query:e})=>Promise.resolve(["Lea Thompson","Cyndi Lauper","Tom Cruise","Madonna","Jerry Hall","Joan Collins","Winona Ryder","Christina Applegate","Alyssa Milano","Molly Ringwald","Ally Sheedy","Debbie Harry","Olivia Newton-John","Elton John","Michael J. Fox","Axl Rose","Emilio Estevez","Ralph Macchio","Rob Lowe","Jennifer Grey","Mickey Rourke","John Cusack","Matthew Broderick","Justine Bateman","Lisa Bonet","Benicio Monserrate Rafael del Toro Sánchez"].map((t,n)=>({mentionLabel:t,id:n.toString()})).filter(t=>t.mentionLabel.toLowerCase().startsWith(e.toLowerCase())).slice(0,5)),render:()=>{let e,t;return{onStart:n=>{e=new SO.ReactRenderer(ex,{props:n,editor:n.editor}),t=Zs("body",{getReferenceClientRect:()=>{var o;return((o=n.clientRect)==null?void 0:o.call(n))??Wg},appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"})[0]},onUpdate(n){e==null||e.updateProps(n),t==null||t.setProps({getReferenceClientRect:()=>{var o;return((o=n.clientRect)==null?void 0:o.call(n))??Wg}})},onKeyDown(n){return n.event.key==="Escape"?(t==null||t.hide(),!0):e!=null&&e.ref?e.ref.onKeyDown(n):!1},onExit(){t==null||t.destroy(),e==null||e.destroy(),t=void 0,e=void 0}}}},tW=oO.Link.extend({inclusive:!1}),nW=dO.Subscript.extend({excludes:"superscript"}),rW=pO.Superscript.extend({excludes:"subscript"});function oW({placeholder:e}={}){return Ne.useMemo(()=>[ze.TableImproved.configure({resizable:!0}),mO.TableRow,hO.TableHeader,fO.TableCell,HT.BulletList,YT.CodeBlock,KT.Document,JT.HardBreak,iO.ListItem,aO.OrderedList,lO.Paragraph,nW,rW,bO.Text,UT.Bold,zT.Blockquote,qT.Code,rO.Italic,wO.Underline,uO.Strike,tW.configure({autolink:!0,linkOnPaste:!0,openOnClick:!1}),ze.LinkBubbleMenuHandler,QT.Gapcursor,ze.HeadingWithAnchor,vO.TextAlign.configure({types:["heading","paragraph","image"]}),xO.TextStyle,GT.Color,ZT.FontFamily,ze.FontSize,eO.Highlight.configure({multicolor:!0}),nO.HorizontalRule,ze.ResizableImage,XT.Dropcursor,yO.TaskList,gO.TaskItem.configure({nested:!0}),sO.Mention.configure({suggestion:eW}),cO.Placeholder.configure({placeholder:e}),tO.History],[e])}function zg(e){return Array.from(e).filter(t=>(t.type||"").toLowerCase().startsWith("image/"))}const iW=e=>{const t=oW({placeholder:"Add your own content here..."});if(e.renderContentOnly)return m.jsx(ze.RichTextReadOnly,{content:e.renderContentOnly,extensions:t});const{name:n,label:o,labelProps:s={fontSize:"0.9em",color:"#808080",fontWeight:"400"},onUploadFiles:l,readOnly:c=!1}=e,{control:u,setValue:d,getValues:f}=Ke.useFormContext();Ne.useEffect(()=>{var g,S,T;(T=(S=(g=h==null?void 0:h.current)==null?void 0:g.editor)==null?void 0:S.commands)==null||T.setContent(f(n))},[f(n)]);const h=Ne.useRef(null),b=Ne.useCallback((g,S)=>{var M;const T=(M=h.current)==null?void 0:M.editor;if(T)if(l instanceof Promise)l(g).then(O=>{ze.insertImages({images:O,editor:T,position:S})});else{const O=l(g);ze.insertImages({images:O,editor:T,position:S})}},[]),y=Ne.useCallback((g,S,T,M)=>{var x;if(!(S instanceof DragEvent)||!S.dataTransfer)return!1;const O=zg(S.dataTransfer.files);if(O.length>0){const R=(x=g.posAtCoords({left:S.clientX,top:S.clientY}))==null?void 0:x.pos;return b(O,R),S.preventDefault(),!0}return!1},[b]),C=Ne.useCallback((g,S,T)=>{if(!S.clipboardData)return!1;const M=zg(S.clipboardData.files);return M.length>0?(b(M),!0):!1},[b]),w=m.jsx(L.Box,{sx:{"& .ProseMirror":{"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:c?0:50}}},children:m.jsx(Ke.Controller,{name:n,control:u,render:({field:g})=>m.jsx(ze.RichTextEditor,{...g,ref:h,extensions:t,content:f(n),editable:!c,editorProps:{handleDrop:y,handlePaste:C},renderControls:c?void 0:()=>m.jsx(T5,{onUploadFiles:l}),onBlur:()=>{var S,T;return d(n,((T=(S=h.current)==null?void 0:S.editor)==null?void 0:T.getHTML())??"",{shouldValidate:!0})},RichTextFieldProps:{variant:"outlined",MenuBarProps:{hide:c}},children:()=>m.jsxs(m.Fragment,{children:[m.jsx(ze.LinkBubbleMenu,{}),m.jsx(ze.TableBubbleMenu,{})]})})})});return m.jsxs(L.Box,{display:"flex",flexDirection:"column",children:[o&&m.jsx(L.Typography,{...s,children:o}),w]})},Ug=()=>({height:window.innerHeight,width:window.innerWidth}),tx=()=>{const[e,t]=Ne.useState(Ug());return Ne.useEffect(()=>{const n=()=>{t(Ug())};return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e},ip=e=>{const{name:t="button",color:n="primary",fullWidthOnMobile:o=!0,type:s="button",variant:l="contained"}=e,{width:c}=tx(),u=["locationInBar","closeDialog","fullWidthOnMobile"],d=o&&c<600;return m.jsx(L.Button,{role:"button",name:t,color:n,variant:l,type:s,fullWidth:e.fullWidth?!0:d,...Kn({...e},u)})},sW=e=>{const{name:t="submit"}=e;return m.jsx(ip,{name:t,type:"submit",...e})},aW=e=>{const{label:t="Return to Top",icon:n=_n.KeyboardArrowUp,scrollThresholdPx:o=100}=e,s=L.useScrollTrigger({threshold:o}),l=Ne.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);return m.jsx(L.Zoom,{in:s,children:m.jsx(L.Box,{sx:{position:"fixed",bottom:32,right:32,zIndex:1},children:m.jsxs(L.Fab,{onClick:l,color:"primary",size:"small",variant:"extended","aria-label":"Scroll back to top",children:[m.jsx(n,{fontSize:"medium"}),t]})})})},lW=()=>{const{getValues:e,formState:{errors:t,isSubmitSuccessful:n}}=Ke.useFormContext(),{palette:o}=L.useTheme();return m.jsx(L.Paper,{style:{backgroundColor:o.mode==="dark"?"#303030":"#f0f0f0",margin:"10px 0"},children:m.jsxs(L.List,{children:[m.jsxs(L.ListItem,{children:[m.jsx(L.Typography,{display:"block",variant:"h6",children:"Values"}),m.jsx("br",{}),m.jsx(L.Divider,{variant:"inset"}),m.jsx("pre",{children:JSON.stringify(e(),null,2)})]}),m.jsx(L.Divider,{variant:"inset",component:"li"}),m.jsxs(L.ListItem,{id:"testing",children:[m.jsx(L.Typography,{display:"block",variant:"h6",children:"Errors"}),m.jsx("br",{}),m.jsx(L.Divider,{variant:"inset"}),m.jsx("pre",{children:JSON.stringify(t,null,2)})]}),m.jsxs(L.ListItem,{children:[m.jsx(L.Typography,{display:"block",variant:"h6",children:"Status"}),m.jsx("br",{}),m.jsx(L.Divider,{variant:"inset"}),m.jsx("pre",{children:JSON.stringify(n,null,2)})]})]})})},cW=e=>{const{steps:t,orientation:n,inlineLabel:o=n=="vertical",isResponsive:s=!1}=e,{width:l}=tx();let c=!o,u=n;s&&(n&&console.warn("Stepper: Ignoring orientation. isResponsive is set to true, so the orientation is determined automatically based on the window size."),u=l<600?"vertical":"horizontal",u=="vertical"?c=!1:c=!o),n=="vertical"&&!o&&(console.warn("Stepper: ignoring inlineLabel={false}. Must use inline labels when orientation is vertical"),c=!1);const d=["steps","inlineLabel","orientation","isResponsive"],f={alternativeLabel:c,orientation:u,...Kn({...e},d)};return m.jsx(L.Stepper,{...f,children:t.map(h=>m.jsx(L.Step,{children:m.jsx(L.StepLabel,{children:h})},h))})},uW=Pt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z"}),"RemoveCircle"),dW=e=>{const{name:t,label:n=ln(t),labelProps:o={fontSize:"1.1em",color:"#808080",fontWeight:"600"},initialState:s,renderFormGroup:l,addButtonContent:c="Add Another",removeButtonContent:u=e.removePosition==="right"?m.jsx(uW,{}):"Remove",variant:d="card",addButtonSx:f,removeButtonSx:h,allowRemoveAll:b=!1,readOnly:y=!1,emptyListMsg:C="None",showDivider:w=!1,removePosition:g="bottom"}=e,{control:S,getValues:T}=Ke.useFormContext(),{fields:M,append:O,remove:x}=Ke.useFieldArray({control:S,name:t}),R=D=>({display:"flex",flexDirection:D==="bottom"?"column":"row",alignItems:D==="bottom"?"flex-start":"center"});return m.jsxs(L.FormControl,{fullWidth:!0,children:[m.jsx(L.Typography,{...o,children:n}),y&&T(t).length===0?m.jsx(L.Typography,{children:C}):m.jsxs("div",{children:[M.map((D,A)=>m.jsx(Ne.Fragment,{children:m.jsx(pW,{variant:d,content:m.jsxs(L.Box,{"data-testid":"form-group-container",sx:typeof g=="string"?R(g):{...g},children:[m.jsxs(L.Box,{width:"100%",children:[l(`${t}.${A}`,A),w&&A!==M.length-1&&m.jsx(L.Divider,{"data-testid":"divider"})]}),!y&&M.length>(b?0:1)&&m.jsx(L.Button,{"data-testid":"repeatable-form-group_remove-btn",sx:h,onClick:()=>x(A),children:u})]})})},D.id)),!y&&m.jsx(L.Button,{"data-testid":"repeatable-form-group_add-btn",onClick:()=>O(s),sx:f,children:c})]})]})},pW=({variant:e,content:t})=>{switch(e){case"card":return m.jsx(L.Card,{"data-testid":"repeatable-form-group_card",sx:{padding:"8px",marginBottom:"8px"},children:m.jsx(L.CardContent,{children:t})});case"elevatedCard":return m.jsx(L.Card,{"data-testid":"repeatable-form-group_elevated-card",elevation:4,sx:{border:"unset",padding:"8px",marginBottom:"8px"},children:m.jsx(L.CardContent,{children:t})});case"none":return t}};function nx(e,t,n){return n===void 0&&(n={}),function(o,s,l){try{return Promise.resolve((function(c,u){try{var d=(t!=null&&t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](o,Object.assign({abortEarly:!1},t,{context:s}))).then(function(f){return l.shouldUseNativeValidation&&jh.validateFieldsNatively({},l),{values:n.raw?Object.assign({},o):f,errors:{}}}))}catch(f){return u(f)}return d&&d.then?d.then(void 0,u):d})(0,function(c){if(!c.inner)throw c;return{values:{},errors:jh.toNestErrors((u=c,d=!l.shouldUseNativeValidation&&l.criteriaMode==="all",(u.inner||[]).reduce(function(f,h){if(f[h.path]||(f[h.path]={message:h.message,type:h.type}),d){var b=f[h.path].types,y=b&&b[h.type];f[h.path]=Ke.appendErrors(h.path,d,f,h.type,y?[].concat(y,h.message):h.message)}return f},{})),l)};var u,d}))}catch(c){return Promise.reject(c)}}}const fW=E.createContext(null);function hW(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===422}function mW(e){return e&&e[0].toLowerCase()+e.slice(1)}function gW(e,t,n=!0){if(!t)return;let o=n;for(const[s,l]of Object.entries(t)){const c=mW(s);e(c,{type:"server",message:l},{shouldFocus:o}),o=!1}}function yW({initialValues:e,onSubmit:t,children:n,initialErrors:o,validationSchema:s=TO.object({}),shouldValidateOption:l=!0,shouldDirtyOption:c=!0,validationOnMount:u=!1,enableReinitialize:d=!1,applyAxios422Errors:f=!0,submitRef:h}){const b=Ke.useForm({defaultValues:e,resolver:nx(s),mode:"onChange",errors:o}),y=Ke.useWatch({control:b.control}),C=Ne.useCallback((O,x)=>{b.setValue(O,x,{shouldValidate:l,shouldDirty:c})},[b,l,c]),w=Ne.useCallback((O,x=!0)=>gW(b.setError,O,x),[b.setError]),g=async O=>{try{await t(O)}catch(x){if(f&&hW(x)){w(x.response.data,!0);return}throw x}},S=Ne.useMemo(()=>b.handleSubmit(g),[b.handleSubmit,g]);Ne.useLayoutEffect(()=>{if(!(!h||!("current"in h)))return h.current=S,()=>{h.current=null}},[h,S]),Ne.useEffect(()=>{u&&b.trigger(),d&&b.reset(e)},[u,d,e,b]);const T=Ne.useMemo(()=>{const O=Object.create(b);return O.setValue=C,O},[b,C]),M=Ne.useMemo(()=>({applyServerErrors:w}),[w]);return m.jsx(Ke.FormProvider,{...b,children:m.jsx(fW.Provider,{value:M,children:m.jsx("form",{onSubmit:b.handleSubmit(g),children:typeof n=="function"?n({values:y,setValue:C,methods:T}):n})})})}function bW(){const e=Ke.useFormContext();if(!e)throw new Error("useMyForm must be used inside a FormProvider (MForm / MForm2 / MFormProvider2).");return e}function vW(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===422}function xW(e){return e&&e[0].toLowerCase()+e.slice(1)}function Hg(e,t,n=!0){if(!t)return;let o=n;for(const[s,l]of Object.entries(t)){const c=xW(s);e(c,{type:"server",message:l},{shouldFocus:o}),o=!1}}const wW=e=>{var n;if(!vW(e))return{ok:!1};const t=(n=e==null?void 0:e.response)==null?void 0:n.data;return t&&typeof t=="object"?{ok:!0,errors:t}:{ok:!1}},rx=E.createContext(null);function SW(){const e=E.useContext(rx);if(!e)throw new Error("useMForm2 must be used within <MFormProvider2> / <MForm2>.");return e}function ox(e){const{methods:t,onSubmit:n,onInvalid:o,validateOnMount:s=!1,applyAxios422Errors:l=!0,mapAxios422:c=wW,submitRef:u,children:d}=e,f=E.useCallback(async y=>{try{await n(y)}catch(C){if(l){const w=c(C);if(w.ok){Hg(t.setError,w.errors,!0);return}}throw C}},[n,l,c,t.setError]),h=E.useCallback(async()=>{await t.handleSubmit(f,o)()},[t,f,o]);E.useLayoutEffect(()=>{if(!(!u||!("current"in u)))return u.current=h,()=>{u.current=null}},[u,h]),E.useEffect(()=>{s&&t.trigger()},[s,t]);const b=E.useMemo(()=>({submit:h,methods:t,applyServerErrors:(y,C=!0)=>Hg(t.setError,y,C)}),[h,t]);return m.jsx(Ke.FormProvider,{...t,children:m.jsx(rx.Provider,{value:b,children:typeof d=="function"?d({methods:t,submit:h}):d})})}function CW(e){return m.jsx(ox,{...e,methods:e.methods})}function _W(e){const t=E.useMemo(()=>{if(e.resolver)return e.resolver;if(e.validationSchema)return nx(e.validationSchema)},[e.resolver,e.validationSchema]),n=Ke.useForm({defaultValues:e.defaultValues,resolver:t,shouldFocusError:e.shouldFocusError??!0,mode:"onChange",...e.useFormProps||void 0});return E.useEffect(()=>{e.reinitializeKey!==void 0&&n.reset(e.defaultValues,e.resetOptions)},[e.reinitializeKey]),m.jsx(ox,{...e,methods:n})}function ix(e){return"methods"in e?m.jsx(CW,{...e}):m.jsx(_W,{...e})}function TW(e){const{formId:t,className:n,style:o,children:s,...l}=e;return m.jsx(ix,{...l,children:({methods:c,submit:u})=>m.jsx("form",{id:t,className:n,style:o,noValidate:!0,onSubmit:d=>{d.preventDefault(),u()},children:typeof s=="function"?s({methods:c,submit:u}):s})})}const OW=Pt(m.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),sp=e=>{const{open:t=!1,onClose:n,title:o,children:s,actions:l,closeBtnLabel:c="Cancel",closeButtonPosition:u="bottom",closeButtonProps:d={color:"primary",variant:"text"},disableDismiss:f=!1,...h}=e;if(!t)return null;const b=()=>{if(u!=="top")return m.jsx(L.Button,{className:"MBv2_Modal_Close",onClick:e.onClose,...d,children:c})},y=()=>l?m.jsx(L.DialogActions,{className:"MBv2_Modal_Actions",children:m.jsxs(L.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%",gap:"0.25rem",children:[m.jsx(L.Box,{children:b()}),m.jsxs(L.Box,{display:"flex",gap:".25rem",children:[...l]})]})}):m.jsx(L.DialogActions,{className:"MBv2_Modal_Actions",children:m.jsx(L.Box,{children:b()})});return m.jsxs(L.Dialog,{className:"MBv2_Modal",open:t,onClose:()=>{f||n==null||n()},...h,children:[typeof o=="string"?m.jsx(L.DialogTitle,{className:"MBv2_Modal_Title",children:m.jsxs(L.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[o,u!=="bottom"&&m.jsx(L.IconButton,{"data-testid":"modal-header-close-btn",onClick:n,children:m.jsx(OW,{})})]})}):o,s&&(typeof s=="string"?m.jsx(L.DialogContent,{className:"MBv2_Modal_Content",children:m.jsx(L.DialogContentText,{className:"MBv2_Modal_Content_Text",children:s})}):s),y()]})},EW=e=>{const{confirmBtnLabel:t,onConfirm:n,confirmButtonProps:o={color:"primary",variant:"contained"},closeButtonProps:s={},...l}=e;return m.jsx(sp,{actions:[m.jsx(L.Button,{className:"MBv2_ConfirmationModal_ConfirmBtn",onClick:n,...o,children:t})],...l})},PW=e=>{const{closeBtnLabel:t="OK",closeButtonProps:n={color:"primary",variant:"contained"}}=e;return m.jsx(sp,{closeBtnLabel:t,closeButtonProps:n,...e})},RW=e=>{const{primaryBtnLabel:t,onPrimaryAction:n,primaryActionProps:o={color:"primary",variant:"contained"},secondaryBtnLabel:s,onSecondaryAction:l,secondaryActionProps:c={color:"primary",variant:"outlined"},...u}=e;return m.jsx(sp,{actions:[m.jsx(L.Button,{className:"MBv2_DecisionModal_SecondaryAction",onClick:l,...c,children:s}),m.jsx(L.Button,{className:"MBv2_DecisionModal_PrimaryAction",onClick:n,...o,children:t})],...u})},MW=Pt(m.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),DW=Pt(m.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort"),kW=Pt(m.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-6h2zm0-8h-2V7h2z"}),"Info"),pd=e=>{const{title:t="Loading...",message:n}=e;return m.jsxs(L.Box,{className:"loading-page",sx:{gap:2},"data-testid":"loading-page",children:[m.jsxs(L.Box,{className:"text-content",children:[m.jsx(L.Typography,{variant:"h1","data-testid":"title",children:t}),n&&m.jsx(L.Typography,{"data-testid":"message",children:n})]}),m.jsx(L.CircularProgress,{size:75,"data-testid":"loading-spinner"})]})},qg=e=>{const{colSpan:t,isExpanded:n,renderExpand:o,obj:s,asMobileCard:l=!1}=e,[c,u]=Ne.useState(!1),[d,f]=Ne.useState(void 0);return Ne.useEffect(()=>{n&&!c&&(u(!0),f(o(s)))},[n]),l?m.jsx(L.Box,{children:m.jsx(L.Collapse,{in:n,children:d})}):m.jsx(L.TableRow,{children:m.jsx(L.TableCell,{style:{paddingBottom:0,paddingTop:0},colSpan:t,children:m.jsx(L.Collapse,{in:n,children:d})})})},sx=e=>{const{id:t,getRowKey:n=H=>"id"in H&&(typeof H.id=="string"||typeof H.id=="number")?H.id:(console.warn(`Table: "id: string | number" not found in ${JSON.stringify(H)}. Please implement the Table.getRowKey prop so Table knows how to uniquely identify this row.`),JSON.stringify(H)),columns:o,data:s=[],onRowClick:l,renderExpand:c,hideColumnsOnMobile:u=[],sortField:d,sortOrder:f,onSortChange:h,allowSortCols:b,fixedLayout:y=!1,className:C,emptyTableMsg:w="No items to display",errorTableMsg:g,retryCallback:S,isLoading:T=!1,disableMobileCards:M=!1,highlightSelectedRow:O=!1,headerRowStyle:x={},stickyHeader:R,...D}=e,{palette:A}=L.useTheme(),[I,N]=Ne.useState(void 0),[_,$]=Ne.useState(void 0);Array.isArray(y)&&y.length!==o.length&&console.error('Table component: Length of "fixedLayout" is not equal to the length of "columns".');const F=H=>{H!==d?h&&h(H,"asc"):h&&h(d,f==="asc"?"desc":"asc")},B=H=>d===H?f:null,z=L.useMediaQuery(L.useTheme().breakpoints.down("sm")),V=z&&u?o.filter(H=>!u.includes(H.fieldName)):o,U=(H,Y)=>Y.split(".").reduce((se,fe)=>{if(se&&typeof se=="object")return se[fe]},H),te=(H,Y)=>{const se=U(Y,H.fieldName);return H.render?H.render(se,Y,z):se},ie=h!==void 0,J=H=>ie?b?b.includes(H):!0:!1,G=m.jsxs(L.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:[m.jsx(kW,{})," ",w]}),Q=m.jsxs(L.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:[m.jsx(ab,{})," ",g,S&&m.jsx(L.Button,{variant:"text",onClick:S,children:"Retry?"})]}),ve=()=>{if(T)return m.jsx(L.TableRow,{children:m.jsx(L.TableCell,{colSpan:o.length,align:"center",children:m.jsx(L.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:m.jsx(pd,{})})})});if(g)return m.jsx(L.TableRow,{children:m.jsx(L.TableCell,{colSpan:o.length,align:"center",children:Q})});if(s.length===0)return m.jsx(L.TableRow,{children:m.jsx(L.TableCell,{colSpan:o.length,align:"center",children:G})})},xe=()=>{if(T)return m.jsx(pd,{});if(g)return Q;if(s.length===0)return G},ge=H=>{O&&$(H)},ne=H=>{if(l&&(l(H),ge(H)),c){const Y=I===H?void 0:H;N(Y),ge(Y)}},de=typeof O=="string"?O:A.grey[A.mode=="dark"?600:50],ce=H=>{const Y=_===n(H)?de:"inherit";return{cursor:l||c?"pointer":"default",backgroundColor:Y,...l&&{"&:hover":{backgroundColor:Y===de?BN(Y,.1):de}}}};return z&&!M?m.jsxs("div",{...t?{id:`mobile-table-${t}`}:{},className:C,"data-testid":"mui-table-mobile",children:[ie&&m.jsxs(m.Fragment,{children:[m.jsxs(L.Box,{display:"flex",className:"MBv2_Table_Stack_Sort",children:[m.jsx(L.TextField,{select:!0,sx:{flexGrow:1},id:"demo-simple-select",size:"small",value:d??"",label:"Sort By...",onChange:H=>F(H.target.value),fullWidth:!0,children:V.map(H=>{if(J(H.fieldName))return m.jsx(L.MenuItem,{value:H.sortName??H.fieldName,children:H.label??ln(H.fieldName)},`${H.key??"rowHeader"}-${H.fieldName}`)})}),m.jsx(L.IconButton,{onClick:()=>{d&&F(d)},children:m.jsx(DW,{className:`sort-icon-${f}`})})]}),m.jsx(L.Divider,{sx:{margin:"10px 0"}})]}),xe()??s.map(H=>m.jsxs(L.Card,{className:"MBv2_Table_Stack_Container",sx:{margin:"5px 0",padding:"5px",...ce(H)},onClick:()=>ne(n(H)),"data-testid":`card-${n(H)}`,children:[m.jsx("table",{className:"MBv2_Table_Stack",children:m.jsx("tbody",{className:"MBv2_Table_Stack_Body",children:V.map(Y=>m.jsxs("tr",{className:"MBv2_Table_Stack_Row",children:[m.jsx("td",{className:`MBv2_Table_Stack_Cell_Label MBv2_Table_Stack_Col_${Y.fieldName}`,children:Y.label??ln(Y.fieldName)}),m.jsx("td",{className:`MBv2_Table_Stack_Cell_Value MBv2_Table_Stack_Val_${Y.fieldName}`,style:{paddingLeft:"10px"},children:te(Y,H)})]},`${Y.key??"row"}-${n(H)}-${Y.fieldName}`))})}),c&&m.jsx(qg,{colSpan:o.length,isExpanded:n(H)===I,obj:H,renderExpand:Y=>c(Y),asMobileCard:!0})]},n(H)))]}):m.jsx(L.TableContainer,{component:L.Card,"data-testid":"mui-table",...t?{id:`table-${t}`}:{},className:C,style:R?{maxHeight:R,overflow:"auto"}:{},children:m.jsxs(L.Table,{stickyHeader:R!=="undefined",style:{tableLayout:y?"fixed":"auto"},className:"MBv2_Table",sx:x?{"& .MuiTableCell-head":{...x}}:{},...D,children:[m.jsx(L.TableHead,{className:"MBv2_Table_Head",children:m.jsx(L.TableRow,{className:"MBv2_Table_Head_Row",children:V.map((H,Y)=>{const se=J(H.fieldName);return m.jsx(L.TableCell,{width:Array.isArray(y)?y[Y]:"auto",children:m.jsx(L.Box,{style:{display:"flex",alignItems:"center"},children:m.jsxs(L.Box,{sx:[se&&{"&:hover":{cursor:"pointer",backgroundColor:A.mode==="dark"?"#222222":"#ededed",borderRadius:2}}],style:{display:"flex",alignItems:"center",padding:"5px",paddingLeft:"6px",marginLeft:"-6px"},onClick:se?()=>F(H.sortName??H.fieldName):void 0,children:[m.jsx("strong",{className:"MBv2_Table_Col_Label",style:{wordBreak:"normal"},children:H.label??ln(H.fieldName)}),se&&B(H.fieldName)==="asc"&&m.jsx(_n.KeyboardArrowUp,{style:{marginLeft:"5px"}}),se&&B(H.fieldName)==="desc"&&m.jsx(_n.KeyboardArrowDown,{style:{marginLeft:"5px"}}),se&&B(H.fieldName)!=="asc"&&B(H.fieldName)!=="desc"&&m.jsx(MW,{style:{marginLeft:"5px"}})]})})},`${H.key??"rowHeader"}-${H.fieldName}`)})})}),m.jsx(L.TableBody,{className:"MBv2_Table_Body",children:ve()??s.map(H=>m.jsxs(Ne.Fragment,{children:[m.jsx(L.TableRow,{"data-testid":`row-${n(H)}`,className:"MBv2_Table_Body_Row",onClick:()=>ne(n(H)),sx:ce(H),children:V.map(Y=>m.jsx(L.TableCell,{className:`MBv2_Table_Body_Cell MBv2_Table_Body_Col_${Y.fieldName}`,children:te(Y,H)},`${Y.key??"row"}-${n(H)}-${Y.fieldName}`))}),c&&m.jsx(qg,{colSpan:o.length,isExpanded:n(H)===I,obj:H,renderExpand:Y=>c(Y)})]},n(H)))})]})})},IW=e=>{const{paginationState:t,onPageChange:n,onRowsPerPageChange:o,hidePaginationControls:s=!1,rowsPerPageOptions:l=[5,10,25],...c}=e,{pageNo:u,pageSize:d,totalCount:f,sortField:h,sortOrder:b}=t,y=S=>{n(S)},C=S=>{o(parseInt(S.target.value,10))},w=L.useMediaQuery(L.useTheme().breakpoints.down("sm")),g=!e.data||e.data&&e.data.length===0;return m.jsxs(L.Box,{children:[m.jsx(sx,{sortOrder:b,sortField:h,...c}),!s&&!g&&m.jsx(L.TablePagination,{"data-testid":"pagination-controls",component:"div",rowsPerPageOptions:w?[]:l,count:f,rowsPerPage:d,page:u,onPageChange:(S,T)=>y(T),onRowsPerPageChange:C,sx:{flexGrow:1,marginRight:{xs:0,md:15}}})]})},AW=e=>{const{featureMenuOptions:t=[],copyright:n,logo:o,sx:s={},fontColor:l="primary"}=e,{palette:c}=L.useTheme(),u=lr.useNavigate();return m.jsxs(L.Box,{className:"MBv2_Footer",sx:{backgroundColor:c.mode==="dark"?"#222222":"#ededed",padding:"25px 30px",...s},children:[m.jsx(L.Box,{className:"MBv2_Footer_Logo",sx:{display:"flex",gap:2,alignItems:"center",paddingBottom:1},children:typeof o=="string"?m.jsx("img",{draggable:"false",src:o,style:{width:"200px"},alt:"logo"}):o}),m.jsxs(L.Box,{display:"flex",justifyContent:"space-between",flexWrap:"wrap",className:"MBv2_Footer_Nav_Links_Container",gap:2,children:[m.jsx(L.Box,{sx:{flexGrow:1},className:"MBv2_Footer_Nav_Links",display:"flex",flexDirection:"row",justifyContent:"flex-start",gap:3,children:t==null?void 0:t.map(d=>m.jsx(L.Link,{"data-testid":d.label,sx:{cursor:"pointer",fontSize:15},color:l,...$s(d,u),children:d.label},d.label))}),n&&m.jsx(L.Typography,{style:{fontSize:15},"data-testid":"copyright",className:"MBv2_Footer_Copyright",color:l,children:n})]})]})},ax=e=>{const{menuOptionLists:t,anchor:n="left",children:o}=e,{pathname:s}=lr.useLocation(),l=lr.useNavigate(),[c,u]=Ne.useState(!1),d=(y,C)=>m.jsx(L.MenuList,{children:y.map(w=>m.jsxs(L.MenuItem,{...$s(w,l,()=>u(!1)),children:[w.icon&&m.jsx(L.ListItemIcon,{children:w.icon}),m.jsx(L.ListItemText,{primary:w.label})]},`mobile-drawer-group-${C}-item-${w.path}`))}),h=(()=>{if(t){const y=t.filter(C=>C&&C.length>0);return y.length===0?null:y.map((C,w)=>m.jsxs(Ne.Fragment,{children:[d(C,w),w<y.length-1&&m.jsx(L.Divider,{})]},`mobile-drawer-group-${w}`))}return o?m.jsx(L.Box,{role:"presentation",onClick:()=>u(!1),children:o}):null})(),b=h??!1;return Ne.useEffect(()=>{u(!1)},[s]),b&&m.jsxs(m.Fragment,{children:[m.jsx(L.IconButton,{onClick:()=>u(!0),color:"inherit",title:"Menu",children:m.jsx(_n.Menu,{})}),m.jsx(L.Drawer,{"data-testid":"mobile-drawer",anchor:n,open:c,onClose:()=>u(!1),children:m.jsx(L.Box,{sx:{width:300},display:"flex",flexDirection:"column",justifyContent:"space-between",children:m.jsx(L.Box,{display:"flex",justifyContent:"start",flexDirection:"column",children:h})})})]})},lx=e=>{const{env:t,isProd:n}=e;return n?null:m.jsx(L.Paper,{sx:{borderRadius:0,display:"flex",alignItems:"center",justifyContent:"center"},children:m.jsxs(L.Typography,{variant:"h6",sx:{color:"error.light"},children:[t," Environment - Test Data Only"]})})},cx=e=>{const{label:t,menuOptions:n=[],icon:o}=e,s=lr.useNavigate(),[l,c]=E.useState(null),u=!!l,d=h=>{c(h.currentTarget)},f=()=>{c(null)};return n.length===0?null:m.jsxs(m.Fragment,{children:[m.jsx(L.Button,{startIcon:o,variant:"outlined",color:"inherit",sx:{minWidth:0,padding:1},onClick:d,children:t}),m.jsx(L.Menu,{anchorEl:l,open:u,onClick:f,children:n.map(h=>m.jsxs(L.MenuItem,{...$s(h,s),children:[h.icon&&m.jsx(L.ListItemIcon,{children:h.icon}),m.jsx(L.ListItemText,{primary:h.label})]},h.label))})]})},ux=e=>{const{displayName:t,userMenuOptions:n}=e;return m.jsx(cx,{label:t,menuOptions:n,icon:m.jsx(_n.Person,{})})},pc=e=>{const{menuOptions:t,orientation:n="horizontal",activeTabIdx:o,sx:s=n=="vertical"?{"& .MuiTabs-indicator":{left:0}}:void 0,slotProps:l={indicator:{sx:n=="horizontal"?{height:4}:{width:4}}}}=e,{palette:c}=L.useTheme(),u=lr.useNavigate();return m.jsx(L.Tabs,{orientation:n,value:o??!1,sx:s,slotProps:l,children:t.map((d,f)=>m.jsx(L.Tab,{icon:d.icon,label:d.label,value:f,...$s(d,u),sx:{alignItems:n=="vertical"?"flex-start":void 0,borderBottom:n=="vertical"?"1px solid":void 0,borderColor:"divider","&.Mui-selected":{backgroundColor:n=="vertical"?c.grey[c.mode=="dark"?800:50]:void 0,color:"inherit"}}},d.label))})},dx=e=>{const{featureMenuOptions:t=[],activeTabIdx:n,sx:o}=e;return t.length>0&&m.jsx(L.Paper,{sx:{pl:4,pr:4,borderRadius:0},"data-testid":"navBar",children:m.jsx(pc,{menuOptions:t,activeTabIdx:n,sx:o})})},px=e=>{const{onToggle:t}=e,{palette:n}=L.useTheme(),o=n.mode==="dark";return m.jsx(L.IconButton,{onClick:t,color:"inherit",title:"Dark Mode Toggle",children:o?m.jsx(_n.LightMode,{}):m.jsx(_n.DarkMode,{})})},jW=e=>{const{envInfo:t,headerRef:n,logo:o,featureMenuOptions:s=[],userMenuOptions:l=[],onToggleDarkMode:c,quickLinks:u=[],displayName:d,banner:f,position:h="fixed",children:b,sx:y,navBarSx:C}=e,w=lr.useNavigate(),g=L.useMediaQuery(L.useTheme().breakpoints.down("sm")),{palette:S}=L.useTheme(),{pathname:T}=lr.useLocation(),M=S.mode==="dark",[O,x]=E.useState(void 0);E.useEffect(()=>{const A=s.findIndex(I=>I.path&&T.startsWith(I.path));x(A>=0?A:void 0)},[T,s]);const R=c&&m.jsx(px,{onToggle:c}),D=c&&(g||!g&&d)?[{icon:M?m.jsx(_n.LightMode,{}):m.jsx(_n.DarkMode,{}),label:`Switch to ${M?"Light":"Dark"} mode`,onClick:c},...l]:l;return m.jsxs(L.AppBar,{ref:n,position:h,sx:y,elevation:4,children:[t&&m.jsx(lx,{...t}),f,m.jsxs(L.Toolbar,{sx:{color:"white",display:"flex",justifyContent:"space-between",gap:2},children:[m.jsx(L.Button,{disableRipple:!0,component:lr.Link,to:"/",children:o&&typeof o=="string"?m.jsx("img",{draggable:"false",src:o,style:{width:"200px",filter:"brightness(0) invert(1)"},alt:"logo"}):o}),m.jsxs(L.Box,{display:"flex",gap:2,alignItems:"center",children:[!d&&!g&&R,g&&m.jsx(ax,{menuOptionLists:[s,u,D],anchor:"right"}),!g&&m.jsxs(m.Fragment,{children:[m.jsx(L.Box,{display:"flex",gap:0,children:u==null?void 0:u.map((A,I)=>m.jsxs(L.Box,{display:"flex",alignItems:"center",children:[I>0&&m.jsx(L.Typography,{className:"quickLink-divider",color:S.primary.contrastText,children:"|"}),m.jsx(L.Button,{variant:"text",sx:{color:"white"},...$s(A,w),children:m.jsxs(L.Box,{display:"flex",gap:"3px",alignItems:"center",children:[A.icon,A.label]})})]},A.label))}),b,d&&m.jsx(ux,{displayName:d,userMenuOptions:D})]})]})]}),!g&&m.jsx(dx,{featureMenuOptions:s,activeTabIdx:O,sx:C})]})},$W=e=>{const{sx:t,menuOptions:n=[]}=e,{pathname:o}=lr.useLocation(),s=L.useMediaQuery(L.useTheme().breakpoints.down("sm")),[l,c]=Ne.useState(void 0);return Ne.useEffect(()=>{const u=n.findIndex(d=>d.path&&o.startsWith(d.path))??-1;c(u>=0?u:void 0)},[o,n]),!s&&n.length>0&&m.jsx(L.Box,{sx:t,children:m.jsx(L.Card,{sx:{height:"100%",width:200},children:m.jsx(pc,{orientation:"vertical",menuOptions:n,activeTabIdx:l})})})},NW=e=>{const{featureMenuOptions:t=[],activeTabIdx:n,sx:o}=e,{palette:s}=L.useTheme();return t.length>0&&m.jsx(pc,{menuOptions:t,activeTabIdx:n,sx:{margin:"8px",backgroundColor:s.primary.dark,borderRadius:"8px","& .MuiTab-root":{color:s.secondary.light,flexDirection:"row",gap:"2px","& .MuiTab-icon":{marginBottom:"unset"},minHeight:"58px"},"& .MuiTab-root.Mui-selected":{color:s.primary.contrastText,fontSize:"120%"},"& .MuiTabs-indicator":{display:"none"},...o}})},ap=nk({createStyledComponent:pe("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>at({props:e,name:"MuiGrid2"}),useTheme:Fo});process.env.NODE_ENV!=="production"&&(ap.propTypes={children:r.node,columns:r.oneOfType([r.arrayOf(r.number),r.number,r.object]),columnSpacing:r.oneOfType([r.arrayOf(r.oneOfType([r.number,r.string])),r.number,r.object,r.string]),container:r.bool,direction:r.oneOfType([r.oneOf(["column-reverse","column","row-reverse","row"]),r.arrayOf(r.oneOf(["column-reverse","column","row-reverse","row"])),r.object]),offset:r.oneOfType([r.string,r.number,r.arrayOf(r.oneOfType([r.string,r.number])),r.object]),rowSpacing:r.oneOfType([r.arrayOf(r.oneOfType([r.number,r.string])),r.number,r.object,r.string]),size:r.oneOfType([r.string,r.bool,r.number,r.arrayOf(r.oneOfType([r.string,r.bool,r.number])),r.object]),spacing:r.oneOfType([r.arrayOf(r.oneOfType([r.number,r.string])),r.number,r.object,r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),unstable_level:r.number,wrap:r.oneOf(["nowrap","wrap-reverse","wrap"])});if(process.env.NODE_ENV!=="production"){const e=ap,t=KR("Grid2",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function FW({size:e={xs:12},spacing:t=2,sm:n,...o}){return n&&(e={xs:12,sm:n}),m.jsx(ap,{size:e,spacing:t,...o,children:o.children})}function LW(e){const{title:t="Title Goes Here",sx:n={p:2},children:o,...s}=e;return m.jsxs(Lo,{sx:n,...s,children:[m.jsx(Gr,{variant:"h6",sx:{fontWeight:"bold"},gutterBottom:!0,children:t}),o]})}const fx=ck({createStyledComponent:pe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>at({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(fx.propTypes={children:r.node,component:r.elementType,direction:r.oneOfType([r.oneOf(["column-reverse","column","row-reverse","row"]),r.arrayOf(r.oneOf(["column-reverse","column","row-reverse","row"])),r.object]),divider:r.node,spacing:r.oneOfType([r.arrayOf(r.oneOfType([r.number,r.string])),r.number,r.object,r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),useFlexGap:r.bool});function BW(e){return m.jsx(fx,{className:e.className,...e,spacing:2,children:e.children})}function VW(e){return Be("MuiAlert",e)}const Yg=Ve("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),WW=Pt(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),zW=Pt(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),UW=Pt(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),HW=Pt(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),qW=Pt(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),YW=e=>{const{variant:t,color:n,severity:o,classes:s}=e,l={root:["root",`color${Oe(n||o)}`,`${t}${Oe(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Le(l,VW,s)},GW=pe(Lo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Oe(n.color||n.severity)}`]]}})(bt(({theme:e})=>{const t=e.palette.mode==="light"?_s:Ts,n=e.palette.mode==="light"?Ts:_s;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(an(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${Yg.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(an(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${Yg.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(an(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),KW=pe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),XW=pe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),ZW=pe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Gg={success:m.jsx(WW,{fontSize:"inherit"}),warning:m.jsx(zW,{fontSize:"inherit"}),error:m.jsx(UW,{fontSize:"inherit"}),info:m.jsx(HW,{fontSize:"inherit"})},hx=E.forwardRef(function(t,n){const o=at({props:t,name:"MuiAlert"}),{action:s,children:l,className:c,closeText:u="Close",color:d,components:f={},componentsProps:h={},icon:b,iconMapping:y=Gg,onClose:C,role:w="alert",severity:g="success",slotProps:S={},slots:T={},variant:M="standard",...O}=o,x={...o,color:d,severity:g,variant:M,colorSeverity:d||g},R=YW(x),D={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...T},slotProps:{...h,...S}},[A,I]=Ct("root",{ref:n,shouldForwardComponentProp:!0,className:Re(R.root,c),elementType:GW,externalForwardedProps:{...D,...O},ownerState:x,additionalProps:{role:w,elevation:0}}),[N,_]=Ct("icon",{className:R.icon,elementType:KW,externalForwardedProps:D,ownerState:x}),[$,F]=Ct("message",{className:R.message,elementType:XW,externalForwardedProps:D,ownerState:x}),[B,z]=Ct("action",{className:R.action,elementType:ZW,externalForwardedProps:D,ownerState:x}),[V,U]=Ct("closeButton",{elementType:ki,externalForwardedProps:D,ownerState:x}),[te,ie]=Ct("closeIcon",{elementType:qW,externalForwardedProps:D,ownerState:x});return m.jsxs(A,{...I,children:[b!==!1?m.jsx(N,{..._,children:b||y[g]||Gg[g]}):null,m.jsx($,{...F,children:l}),s!=null?m.jsx(B,{...z,children:s}):null,s==null&&C?m.jsx(B,{...z,children:m.jsx(V,{size:"small","aria-label":u,title:u,color:"inherit",onClick:C,...U,children:m.jsx(te,{fontSize:"small",...ie})})}):null]})});process.env.NODE_ENV!=="production"&&(hx.propTypes={action:r.node,children:r.node,classes:r.object,className:r.string,closeText:r.string,color:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),components:r.shape({CloseButton:r.elementType,CloseIcon:r.elementType}),componentsProps:r.shape({closeButton:r.object,closeIcon:r.object}),icon:r.node,iconMapping:r.shape({error:r.node,info:r.node,success:r.node,warning:r.node}),onClose:r.func,role:r.string,severity:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),slotProps:r.shape({action:r.oneOfType([r.func,r.object]),closeButton:r.oneOfType([r.func,r.object]),closeIcon:r.oneOfType([r.func,r.object]),icon:r.oneOfType([r.func,r.object]),message:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({action:r.elementType,closeButton:r.elementType,closeIcon:r.elementType,icon:r.elementType,message:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});const Qs=e=>{var C;const{noIcon:t=!1,children:n,severity:o="success",variant:s="leftBorder",sx:l,title:c,...u}=e,{palette:d}=L.useTheme(),f=t?{icon:!1}:{},h=s==="leftBorder"?"standard":s,b=s==="leftBorder"?{...l,borderLeft:`4px solid ${(C=d[o])==null?void 0:C.main}`}:l,y=c?{icon:{sx:{mt:"6px"}}}:{};return m.jsxs(hx,{severity:o,variant:h,sx:b,slotProps:y,...f,...u,children:[c&&m.jsx(L.Typography,{variant:"h3",children:c}),n]})},QW=e=>m.jsx(Qs,{severity:"success",...e}),JW=e=>m.jsx(Qs,{severity:"info",...e}),ez=e=>m.jsx(Qs,{severity:"warning",...e}),tz=e=>m.jsx(Qs,{severity:"error",...e}),nz=Pt(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),mx=e=>{const{crumbInfo:t}=e,n=lr.useNavigate();return m.jsx(L.Breadcrumbs,{"aria-label":"breadcrumb",separator:m.jsx(nz,{color:"primary"}),sx:{marginBottom:2},children:t.map(({label:o,path:s},l)=>s&&l<t.length-1?m.jsx(L.Link,{color:"primary",sx:{cursor:"pointer"},onClick:()=>n(s),children:o},o):m.jsx(L.Typography,{color:"primary",children:o},o))})},rz=e=>{const{title:t,message:n,type:o,onClose:s,autoHideDuration:l=8e3,variant:c="leftBorder",elevation:u=6}=e,d=oz(o);return m.jsx(L.Snackbar,{"data-testid":"message-snackbar",anchorOrigin:{vertical:"bottom",horizontal:"right"},open:!0,onClose:f=>{f==null&&s()},autoHideDuration:l,children:m.jsx(Qs,{"data-testid":"message-snackbar-alert",severity:d,iconMapping:{info:Kg(o),warning:Kg(o)},onClose:s,elevation:u,variant:c,children:n?m.jsxs(m.Fragment,{children:[m.jsx(L.AlertTitle,{"data-testid":"alertTitle",sx:{fontWeight:"bold"},children:t}),n]}):t})})},oz=e=>e=="logout"?"info":e=="timeout"?"warning":e,Kg=e=>{if(e=="timeout")return m.jsx(_n.AccessTime,{});if(e=="logout")return m.jsx(_n.Logout,{})},iz=e=>{const{title:t,createButtonLabel:n,showAddButton:o=!1,onAdd:s=()=>alert("Not implemented yet"),breadcrumbs:l=[],children:c,sx:u}=e,d=L.useMediaQuery(L.useTheme().breakpoints.down("sm"));return o&&s.toString()==='() => alert("Not implemented yet")'&&console.warn('PageHeader: "showAddButton" is true but "onAdd" is not defined.'),m.jsxs(L.Box,{sx:u,children:[l.length>0&&m.jsx(mx,{crumbInfo:l}),m.jsxs(L.Box,{className:"MBv2_PageHeader_Header",display:"flex",flexDirection:d?"column":"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[m.jsxs(L.Box,{className:"MBv2_PageHeader_TitleAndCreateBtn",display:"flex",flexDirection:"row",justifyContent:d||!c?"space-between":"start",alignItems:"center",width:"100%",gap:1,children:[typeof t=="string"?m.jsx(L.Typography,{className:"MBv2_PageHeader_Title",variant:"h2",children:t}):t,o&&m.jsxs(ip,{className:"MBv2_PageHeader_CreateBtn",onClick:()=>s(),children:[m.jsx(_n.AddCircleOutline,{style:{marginRight:"0.5rem"}}),n]})]}),c&&m.jsx(L.Box,{width:d?"100%":"50%",children:c})]})]})},sz=e=>{const{title:t,titleIcon:n,fullWidthIcon:o=!1,children:s,actionLabel:l,action:c,sx:u}=e,d=L.useMediaQuery(L.useTheme().breakpoints.down("sm"));return m.jsxs(L.Card,{sx:u||{padding:"30px 40px",display:"flex",flexDirection:"column",gap:"1rem"},children:[n&&m.jsx(L.Box,{className:"MBv2_SingleActionCard_Img",sx:[o?{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"20px",marginBottom:"10px"}:{display:"inline"}],children:n}),m.jsx(L.Typography,{variant:"h1",display:"inline",fontSize:"calc(20px + .9vw)",className:"MBv2_SingleActionCard_Title",children:t}),s,m.jsx(L.Button,{variant:"contained",color:"primary",onClick:c,fullWidth:d,className:"MBv2_SingleActionCard_ActionButton",children:l})]})};exports.AlertModal=PW;exports.Autocomplete=lb;exports.Breadcrumbs=mx;exports.Button=ip;exports.Checkbox=Qk;exports.CheckboxGroup=Jk;exports.ConfirmationModal=EW;exports.DarkModeToggle=px;exports.DateField=ld;exports.DateRangeField=_5;exports.DecisionModal=RW;exports.Drawer=ax;exports.DynamicAutocomplete=Xk;exports.EnvironmentBanner=lx;exports.Error=Xn;exports.ErrorAlert=tz;exports.FileList=rI;exports.FileUpload=eI;exports.FloatingNavBar=NW;exports.Footer=AW;exports.FormDebugger=lW;exports.Header=jW;exports.InfoAlert=JW;exports.LoadingIndicator=pd;exports.MForm=yW;exports.MForm2=TW;exports.MFormProvider2=ix;exports.MGrid=FW;exports.MPanel=LW;exports.MStack=BW;exports.MenuButton=cx;exports.MultiAutocomplete=Zk;exports.NavBar=dx;exports.PageHeader=iz;exports.PaginatedTable=IW;exports.ProfileMenu=ux;exports.RadioGroup=oI;exports.RangeSlider=iI;exports.RepeatableFormGroup=dW;exports.RichTextField=iW;exports.ScrollToTop=aW;exports.SearchField=cI;exports.Select=sI;exports.Sidebar=$W;exports.SingleActionCard=sz;exports.Snackbar=rz;exports.Stepper=cW;exports.Submit=sW;exports.SuccessAlert=QW;exports.Switch=aI;exports.Table=sx;exports.Tabs=pc;exports.TextField=lI;exports.WarningAlert=ez;exports.commonTheme=Xt;exports.darkTheme=RR;exports.lightTheme=PR;exports.useMForm2=SW;exports.useMyForm=bW;
261
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var u=s.reduce(function(d,f){var h=f&&J5(f,o);return h&&d.push(h),d},[]);return As(e)?u[0]:u}Zs.defaultProps=An;Zs.setDefaultProps=K5;Zs.currentInput=br;Object.assign({},ov,{effect:function(t){var n=t.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow)}});Zs.setDefaultProps({render:Jv});const ex=Ne.forwardRef((e,t)=>{const[n,o]=Ne.useState(0),s=d=>{if(d>=e.items.length)return;const f=e.items[d],h={id:f.id,label:f.mentionLabel};e.command(h)},l=()=>{o((n+e.items.length-1)%e.items.length)},c=()=>{o((n+1)%e.items.length)},u=()=>{s(n)};return Ne.useEffect(()=>o(0),[e.items]),Ne.useImperativeHandle(t,()=>({onKeyDown:({event:d})=>d.key==="ArrowUp"?(l(),!0):d.key==="ArrowDown"?(c(),!0):d.key==="Enter"?(u(),!0):!1})),e.items.length>0?m.jsx(L.Paper,{elevation:5,children:m.jsx(L.List,{dense:!0,sx:{overflow:"hidden"},children:e.items.map((d,f)=>m.jsx(L.ListItem,{disablePadding:!0,children:m.jsx(L.ListItemButton,{selected:f===n,onClick:()=>s(f),children:d.mentionLabel})},d.id))})}):null});ex.displayName="SuggestionList";const Wg={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,toJSON(){return{}}},eW={items:async({query:e})=>Promise.resolve(["Lea Thompson","Cyndi Lauper","Tom Cruise","Madonna","Jerry Hall","Joan Collins","Winona Ryder","Christina Applegate","Alyssa Milano","Molly Ringwald","Ally Sheedy","Debbie Harry","Olivia Newton-John","Elton John","Michael J. Fox","Axl Rose","Emilio Estevez","Ralph Macchio","Rob Lowe","Jennifer Grey","Mickey Rourke","John Cusack","Matthew Broderick","Justine Bateman","Lisa Bonet","Benicio Monserrate Rafael del Toro Sánchez"].map((t,n)=>({mentionLabel:t,id:n.toString()})).filter(t=>t.mentionLabel.toLowerCase().startsWith(e.toLowerCase())).slice(0,5)),render:()=>{let e,t;return{onStart:n=>{e=new SO.ReactRenderer(ex,{props:n,editor:n.editor}),t=Zs("body",{getReferenceClientRect:()=>{var o;return((o=n.clientRect)==null?void 0:o.call(n))??Wg},appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"})[0]},onUpdate(n){e==null||e.updateProps(n),t==null||t.setProps({getReferenceClientRect:()=>{var o;return((o=n.clientRect)==null?void 0:o.call(n))??Wg}})},onKeyDown(n){return n.event.key==="Escape"?(t==null||t.hide(),!0):e!=null&&e.ref?e.ref.onKeyDown(n):!1},onExit(){t==null||t.destroy(),e==null||e.destroy(),t=void 0,e=void 0}}}},tW=oO.Link.extend({inclusive:!1}),nW=dO.Subscript.extend({excludes:"superscript"}),rW=pO.Superscript.extend({excludes:"subscript"});function oW({placeholder:e}={}){return Ne.useMemo(()=>[ze.TableImproved.configure({resizable:!0}),mO.TableRow,hO.TableHeader,fO.TableCell,HT.BulletList,YT.CodeBlock,KT.Document,JT.HardBreak,iO.ListItem,aO.OrderedList,lO.Paragraph,nW,rW,bO.Text,UT.Bold,zT.Blockquote,qT.Code,rO.Italic,wO.Underline,uO.Strike,tW.configure({autolink:!0,linkOnPaste:!0,openOnClick:!1}),ze.LinkBubbleMenuHandler,QT.Gapcursor,ze.HeadingWithAnchor,vO.TextAlign.configure({types:["heading","paragraph","image"]}),xO.TextStyle,GT.Color,ZT.FontFamily,ze.FontSize,eO.Highlight.configure({multicolor:!0}),nO.HorizontalRule,ze.ResizableImage,XT.Dropcursor,yO.TaskList,gO.TaskItem.configure({nested:!0}),sO.Mention.configure({suggestion:eW}),cO.Placeholder.configure({placeholder:e}),tO.History],[e])}function zg(e){return Array.from(e).filter(t=>(t.type||"").toLowerCase().startsWith("image/"))}const iW=e=>{const t=oW({placeholder:"Add your own content here..."});if(e.renderContentOnly)return m.jsx(ze.RichTextReadOnly,{content:e.renderContentOnly,extensions:t});const{name:n,label:o,labelProps:s={fontSize:"0.9em",color:"#808080",fontWeight:"400"},onUploadFiles:l,readOnly:c=!1}=e,{control:u,setValue:d,getValues:f}=Ke.useFormContext();Ne.useEffect(()=>{var g,S,T;(T=(S=(g=h==null?void 0:h.current)==null?void 0:g.editor)==null?void 0:S.commands)==null||T.setContent(f(n))},[f(n)]);const h=Ne.useRef(null),b=Ne.useCallback((g,S)=>{var M;const T=(M=h.current)==null?void 0:M.editor;if(T)if(l instanceof Promise)l(g).then(O=>{ze.insertImages({images:O,editor:T,position:S})});else{const O=l(g);ze.insertImages({images:O,editor:T,position:S})}},[]),y=Ne.useCallback((g,S,T,M)=>{var x;if(!(S instanceof DragEvent)||!S.dataTransfer)return!1;const O=zg(S.dataTransfer.files);if(O.length>0){const R=(x=g.posAtCoords({left:S.clientX,top:S.clientY}))==null?void 0:x.pos;return b(O,R),S.preventDefault(),!0}return!1},[b]),C=Ne.useCallback((g,S,T)=>{if(!S.clipboardData)return!1;const M=zg(S.clipboardData.files);return M.length>0?(b(M),!0):!1},[b]),w=m.jsx(L.Box,{sx:{"& .ProseMirror":{"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:c?0:50}}},children:m.jsx(Ke.Controller,{name:n,control:u,render:({field:g})=>m.jsx(ze.RichTextEditor,{...g,ref:h,extensions:t,content:f(n),editable:!c,editorProps:{handleDrop:y,handlePaste:C},renderControls:c?void 0:()=>m.jsx(T5,{onUploadFiles:l}),onBlur:()=>{var S,T;return d(n,((T=(S=h.current)==null?void 0:S.editor)==null?void 0:T.getHTML())??"",{shouldValidate:!0})},RichTextFieldProps:{variant:"outlined",MenuBarProps:{hide:c}},children:()=>m.jsxs(m.Fragment,{children:[m.jsx(ze.LinkBubbleMenu,{}),m.jsx(ze.TableBubbleMenu,{})]})})})});return m.jsxs(L.Box,{display:"flex",flexDirection:"column",children:[o&&m.jsx(L.Typography,{...s,children:o}),w]})},Ug=()=>({height:window.innerHeight,width:window.innerWidth}),tx=()=>{const[e,t]=Ne.useState(Ug());return Ne.useEffect(()=>{const n=()=>{t(Ug())};return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e},ip=e=>{const{name:t="button",color:n="primary",fullWidthOnMobile:o=!0,type:s="button",variant:l="contained"}=e,{width:c}=tx(),u=["locationInBar","closeDialog","fullWidthOnMobile"],d=o&&c<600;return m.jsx(L.Button,{role:"button",name:t,color:n,variant:l,type:s,fullWidth:e.fullWidth?!0:d,...Kn({...e},u)})},sW=e=>{const{name:t="submit",disabled:n}=e,{formState:{isSubmitting:o}}=Ke.useFormContext();return m.jsx(ip,{name:t,type:"submit",disabled:n||o,...e})},aW=e=>{const{label:t="Return to Top",icon:n=_n.KeyboardArrowUp,scrollThresholdPx:o=100}=e,s=L.useScrollTrigger({threshold:o}),l=Ne.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);return m.jsx(L.Zoom,{in:s,children:m.jsx(L.Box,{sx:{position:"fixed",bottom:32,right:32,zIndex:1},children:m.jsxs(L.Fab,{onClick:l,color:"primary",size:"small",variant:"extended","aria-label":"Scroll back to top",children:[m.jsx(n,{fontSize:"medium"}),t]})})})},lW=()=>{const{getValues:e,formState:{errors:t,isSubmitSuccessful:n}}=Ke.useFormContext(),{palette:o}=L.useTheme();return m.jsx(L.Paper,{style:{backgroundColor:o.mode==="dark"?"#303030":"#f0f0f0",margin:"10px 0"},children:m.jsxs(L.List,{children:[m.jsxs(L.ListItem,{children:[m.jsx(L.Typography,{display:"block",variant:"h6",children:"Values"}),m.jsx("br",{}),m.jsx(L.Divider,{variant:"inset"}),m.jsx("pre",{children:JSON.stringify(e(),null,2)})]}),m.jsx(L.Divider,{variant:"inset",component:"li"}),m.jsxs(L.ListItem,{id:"testing",children:[m.jsx(L.Typography,{display:"block",variant:"h6",children:"Errors"}),m.jsx("br",{}),m.jsx(L.Divider,{variant:"inset"}),m.jsx("pre",{children:JSON.stringify(t,null,2)})]}),m.jsxs(L.ListItem,{children:[m.jsx(L.Typography,{display:"block",variant:"h6",children:"Status"}),m.jsx("br",{}),m.jsx(L.Divider,{variant:"inset"}),m.jsx("pre",{children:JSON.stringify(n,null,2)})]})]})})},cW=e=>{const{steps:t,orientation:n,inlineLabel:o=n=="vertical",isResponsive:s=!1}=e,{width:l}=tx();let c=!o,u=n;s&&(n&&console.warn("Stepper: Ignoring orientation. isResponsive is set to true, so the orientation is determined automatically based on the window size."),u=l<600?"vertical":"horizontal",u=="vertical"?c=!1:c=!o),n=="vertical"&&!o&&(console.warn("Stepper: ignoring inlineLabel={false}. Must use inline labels when orientation is vertical"),c=!1);const d=["steps","inlineLabel","orientation","isResponsive"],f={alternativeLabel:c,orientation:u,...Kn({...e},d)};return m.jsx(L.Stepper,{...f,children:t.map(h=>m.jsx(L.Step,{children:m.jsx(L.StepLabel,{children:h})},h))})},uW=Pt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z"}),"RemoveCircle"),dW=e=>{const{name:t,label:n=ln(t),labelProps:o={fontSize:"1.1em",color:"#808080",fontWeight:"600"},initialState:s,renderFormGroup:l,addButtonContent:c="Add Another",removeButtonContent:u=e.removePosition==="right"?m.jsx(uW,{}):"Remove",variant:d="card",addButtonSx:f,removeButtonSx:h,allowRemoveAll:b=!1,readOnly:y=!1,emptyListMsg:C="None",showDivider:w=!1,removePosition:g="bottom"}=e,{control:S,getValues:T}=Ke.useFormContext(),{fields:M,append:O,remove:x}=Ke.useFieldArray({control:S,name:t}),R=D=>({display:"flex",flexDirection:D==="bottom"?"column":"row",alignItems:D==="bottom"?"flex-start":"center"});return m.jsxs(L.FormControl,{fullWidth:!0,children:[m.jsx(L.Typography,{...o,children:n}),y&&T(t).length===0?m.jsx(L.Typography,{children:C}):m.jsxs("div",{children:[M.map((D,A)=>m.jsx(Ne.Fragment,{children:m.jsx(pW,{variant:d,content:m.jsxs(L.Box,{"data-testid":"form-group-container",sx:typeof g=="string"?R(g):{...g},children:[m.jsxs(L.Box,{width:"100%",children:[l(`${t}.${A}`,A),w&&A!==M.length-1&&m.jsx(L.Divider,{"data-testid":"divider"})]}),!y&&M.length>(b?0:1)&&m.jsx(L.Button,{"data-testid":"repeatable-form-group_remove-btn",sx:h,onClick:()=>x(A),children:u})]})})},D.id)),!y&&m.jsx(L.Button,{"data-testid":"repeatable-form-group_add-btn",onClick:()=>O(s),sx:f,children:c})]})]})},pW=({variant:e,content:t})=>{switch(e){case"card":return m.jsx(L.Card,{"data-testid":"repeatable-form-group_card",sx:{padding:"8px",marginBottom:"8px"},children:m.jsx(L.CardContent,{children:t})});case"elevatedCard":return m.jsx(L.Card,{"data-testid":"repeatable-form-group_elevated-card",elevation:4,sx:{border:"unset",padding:"8px",marginBottom:"8px"},children:m.jsx(L.CardContent,{children:t})});case"none":return t}};function nx(e,t,n){return n===void 0&&(n={}),function(o,s,l){try{return Promise.resolve((function(c,u){try{var d=(t!=null&&t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](o,Object.assign({abortEarly:!1},t,{context:s}))).then(function(f){return l.shouldUseNativeValidation&&jh.validateFieldsNatively({},l),{values:n.raw?Object.assign({},o):f,errors:{}}}))}catch(f){return u(f)}return d&&d.then?d.then(void 0,u):d})(0,function(c){if(!c.inner)throw c;return{values:{},errors:jh.toNestErrors((u=c,d=!l.shouldUseNativeValidation&&l.criteriaMode==="all",(u.inner||[]).reduce(function(f,h){if(f[h.path]||(f[h.path]={message:h.message,type:h.type}),d){var b=f[h.path].types,y=b&&b[h.type];f[h.path]=Ke.appendErrors(h.path,d,f,h.type,y?[].concat(y,h.message):h.message)}return f},{})),l)};var u,d}))}catch(c){return Promise.reject(c)}}}const fW=E.createContext(null);function hW(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===422}function mW(e){return e&&e[0].toLowerCase()+e.slice(1)}function gW(e,t,n=!0){if(!t)return;let o=n;for(const[s,l]of Object.entries(t)){const c=mW(s);e(c,{type:"server",message:l},{shouldFocus:o}),o=!1}}function yW({initialValues:e,onSubmit:t,children:n,initialErrors:o,validationSchema:s=TO.object({}),shouldValidateOption:l=!0,shouldDirtyOption:c=!0,validationOnMount:u=!1,enableReinitialize:d=!1,applyAxios422Errors:f=!0,submitRef:h}){const b=Ke.useForm({defaultValues:e,resolver:nx(s),mode:"onChange",errors:o}),y=Ke.useWatch({control:b.control}),C=Ne.useCallback((O,x)=>{b.setValue(O,x,{shouldValidate:l,shouldDirty:c})},[b,l,c]),w=Ne.useCallback((O,x=!0)=>gW(b.setError,O,x),[b.setError]),g=async O=>{try{await t(O)}catch(x){if(f&&hW(x)){w(x.response.data,!0);return}throw x}},S=Ne.useMemo(()=>b.handleSubmit(g),[b.handleSubmit,g]);Ne.useLayoutEffect(()=>{if(!(!h||!("current"in h)))return h.current=S,()=>{h.current=null}},[h,S]),Ne.useEffect(()=>{u&&b.trigger(),d&&b.reset(e)},[u,d,e,b]);const T=Ne.useMemo(()=>{const O=Object.create(b);return O.setValue=C,O},[b,C]),M=Ne.useMemo(()=>({applyServerErrors:w}),[w]);return m.jsx(Ke.FormProvider,{...b,children:m.jsx(fW.Provider,{value:M,children:m.jsx("form",{onSubmit:b.handleSubmit(g),children:typeof n=="function"?n({values:y,setValue:C,methods:T}):n})})})}function bW(){const e=Ke.useFormContext();if(!e)throw new Error("useMyForm must be used inside a FormProvider (MForm / MForm2 / MFormProvider2).");return e}function vW(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===422}function xW(e){return e&&e[0].toLowerCase()+e.slice(1)}function Hg(e,t,n=!0){if(!t)return;let o=n;for(const[s,l]of Object.entries(t)){const c=xW(s);e(c,{type:"server",message:l},{shouldFocus:o}),o=!1}}const wW=e=>{var n;if(!vW(e))return{ok:!1};const t=(n=e==null?void 0:e.response)==null?void 0:n.data;return t&&typeof t=="object"?{ok:!0,errors:t}:{ok:!1}},rx=E.createContext(null);function SW(){const e=E.useContext(rx);if(!e)throw new Error("useMForm2 must be used within <MFormProvider2> / <MForm2>.");return e}function ox(e){const{methods:t,onSubmit:n,onInvalid:o,validateOnMount:s=!1,applyAxios422Errors:l=!0,mapAxios422:c=wW,submitRef:u,children:d}=e,f=E.useCallback(async y=>{try{await n(y)}catch(C){if(l){const w=c(C);if(w.ok){Hg(t.setError,w.errors,!0);return}}throw C}},[n,l,c,t.setError]),h=E.useCallback(async()=>{await t.handleSubmit(f,o)()},[t,f,o]);E.useLayoutEffect(()=>{if(!(!u||!("current"in u)))return u.current=h,()=>{u.current=null}},[u,h]),E.useEffect(()=>{s&&t.trigger()},[s,t]);const b=E.useMemo(()=>({submit:h,methods:t,applyServerErrors:(y,C=!0)=>Hg(t.setError,y,C)}),[h,t]);return m.jsx(Ke.FormProvider,{...t,children:m.jsx(rx.Provider,{value:b,children:typeof d=="function"?d({methods:t,submit:h}):d})})}function CW(e){return m.jsx(ox,{...e,methods:e.methods})}function _W(e){const t=E.useMemo(()=>{if(e.resolver)return e.resolver;if(e.validationSchema)return nx(e.validationSchema)},[e.resolver,e.validationSchema]),n=Ke.useForm({defaultValues:e.defaultValues,resolver:t,shouldFocusError:e.shouldFocusError??!0,mode:"onChange",...e.useFormProps||void 0});return E.useEffect(()=>{e.reinitializeKey!==void 0&&n.reset(e.defaultValues,e.resetOptions)},[e.reinitializeKey]),m.jsx(ox,{...e,methods:n})}function ix(e){return"methods"in e?m.jsx(CW,{...e}):m.jsx(_W,{...e})}function TW(e){const{formId:t,className:n,style:o,children:s,...l}=e;return m.jsx(ix,{...l,children:({methods:c,submit:u})=>m.jsx("form",{id:t,className:n,style:o,noValidate:!0,onSubmit:d=>{d.preventDefault(),u()},children:typeof s=="function"?s({methods:c,submit:u}):s})})}const OW=Pt(m.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),sp=e=>{const{open:t=!1,onClose:n,title:o,children:s,actions:l,closeBtnLabel:c="Cancel",closeButtonPosition:u="bottom",closeButtonProps:d={color:"primary",variant:"text"},disableDismiss:f=!1,...h}=e;if(!t)return null;const b=()=>{if(u!=="top")return m.jsx(L.Button,{className:"MBv2_Modal_Close",onClick:e.onClose,...d,children:c})},y=()=>l?m.jsx(L.DialogActions,{className:"MBv2_Modal_Actions",children:m.jsxs(L.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%",gap:"0.25rem",children:[m.jsx(L.Box,{children:b()}),m.jsxs(L.Box,{display:"flex",gap:".25rem",children:[...l]})]})}):m.jsx(L.DialogActions,{className:"MBv2_Modal_Actions",children:m.jsx(L.Box,{children:b()})});return m.jsxs(L.Dialog,{className:"MBv2_Modal",open:t,onClose:()=>{f||n==null||n()},...h,children:[typeof o=="string"?m.jsx(L.DialogTitle,{className:"MBv2_Modal_Title",children:m.jsxs(L.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[o,u!=="bottom"&&m.jsx(L.IconButton,{"data-testid":"modal-header-close-btn",onClick:n,children:m.jsx(OW,{})})]})}):o,s&&(typeof s=="string"?m.jsx(L.DialogContent,{className:"MBv2_Modal_Content",children:m.jsx(L.DialogContentText,{className:"MBv2_Modal_Content_Text",children:s})}):s),y()]})},EW=e=>{const{confirmBtnLabel:t,onConfirm:n,confirmButtonProps:o={color:"primary",variant:"contained"},closeButtonProps:s={},...l}=e;return m.jsx(sp,{actions:[m.jsx(L.Button,{className:"MBv2_ConfirmationModal_ConfirmBtn",onClick:n,...o,children:t})],...l})},PW=e=>{const{closeBtnLabel:t="OK",closeButtonProps:n={color:"primary",variant:"contained"}}=e;return m.jsx(sp,{closeBtnLabel:t,closeButtonProps:n,...e})},RW=e=>{const{primaryBtnLabel:t,onPrimaryAction:n,primaryActionProps:o={color:"primary",variant:"contained"},secondaryBtnLabel:s,onSecondaryAction:l,secondaryActionProps:c={color:"primary",variant:"outlined"},...u}=e;return m.jsx(sp,{actions:[m.jsx(L.Button,{className:"MBv2_DecisionModal_SecondaryAction",onClick:l,...c,children:s}),m.jsx(L.Button,{className:"MBv2_DecisionModal_PrimaryAction",onClick:n,...o,children:t})],...u})},MW=Pt(m.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),DW=Pt(m.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort"),kW=Pt(m.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-6h2zm0-8h-2V7h2z"}),"Info"),pd=e=>{const{title:t="Loading...",message:n}=e;return m.jsxs(L.Box,{className:"loading-page",sx:{gap:2},"data-testid":"loading-page",children:[m.jsxs(L.Box,{className:"text-content",children:[m.jsx(L.Typography,{variant:"h1","data-testid":"title",children:t}),n&&m.jsx(L.Typography,{"data-testid":"message",children:n})]}),m.jsx(L.CircularProgress,{size:75,"data-testid":"loading-spinner"})]})},qg=e=>{const{colSpan:t,isExpanded:n,renderExpand:o,obj:s,asMobileCard:l=!1}=e,[c,u]=Ne.useState(!1),[d,f]=Ne.useState(void 0);return Ne.useEffect(()=>{n&&!c&&(u(!0),f(o(s)))},[n]),l?m.jsx(L.Box,{children:m.jsx(L.Collapse,{in:n,children:d})}):m.jsx(L.TableRow,{children:m.jsx(L.TableCell,{style:{paddingBottom:0,paddingTop:0},colSpan:t,children:m.jsx(L.Collapse,{in:n,children:d})})})},sx=e=>{const{id:t,getRowKey:n=H=>"id"in H&&(typeof H.id=="string"||typeof H.id=="number")?H.id:(console.warn(`Table: "id: string | number" not found in ${JSON.stringify(H)}. Please implement the Table.getRowKey prop so Table knows how to uniquely identify this row.`),JSON.stringify(H)),columns:o,data:s=[],onRowClick:l,renderExpand:c,hideColumnsOnMobile:u=[],sortField:d,sortOrder:f,onSortChange:h,allowSortCols:b,fixedLayout:y=!1,className:C,emptyTableMsg:w="No items to display",errorTableMsg:g,retryCallback:S,isLoading:T=!1,disableMobileCards:M=!1,highlightSelectedRow:O=!1,headerRowStyle:x={},stickyHeader:R,...D}=e,{palette:A}=L.useTheme(),[I,N]=Ne.useState(void 0),[_,$]=Ne.useState(void 0);Array.isArray(y)&&y.length!==o.length&&console.error('Table component: Length of "fixedLayout" is not equal to the length of "columns".');const F=H=>{H!==d?h&&h(H,"asc"):h&&h(d,f==="asc"?"desc":"asc")},B=H=>d===H?f:null,z=L.useMediaQuery(L.useTheme().breakpoints.down("sm")),V=z&&u?o.filter(H=>!u.includes(H.fieldName)):o,U=(H,Y)=>Y.split(".").reduce((se,fe)=>{if(se&&typeof se=="object")return se[fe]},H),te=(H,Y)=>{const se=U(Y,H.fieldName);return H.render?H.render(se,Y,z):se},ie=h!==void 0,J=H=>ie?b?b.includes(H):!0:!1,G=m.jsxs(L.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:[m.jsx(kW,{})," ",w]}),Q=m.jsxs(L.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:[m.jsx(ab,{})," ",g,S&&m.jsx(L.Button,{variant:"text",onClick:S,children:"Retry?"})]}),ve=()=>{if(T)return m.jsx(L.TableRow,{children:m.jsx(L.TableCell,{colSpan:o.length,align:"center",children:m.jsx(L.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:m.jsx(pd,{})})})});if(g)return m.jsx(L.TableRow,{children:m.jsx(L.TableCell,{colSpan:o.length,align:"center",children:Q})});if(s.length===0)return m.jsx(L.TableRow,{children:m.jsx(L.TableCell,{colSpan:o.length,align:"center",children:G})})},xe=()=>{if(T)return m.jsx(pd,{});if(g)return Q;if(s.length===0)return G},ge=H=>{O&&$(H)},ne=H=>{if(l&&(l(H),ge(H)),c){const Y=I===H?void 0:H;N(Y),ge(Y)}},de=typeof O=="string"?O:A.grey[A.mode=="dark"?600:50],ce=H=>{const Y=_===n(H)?de:"inherit";return{cursor:l||c?"pointer":"default",backgroundColor:Y,...l&&{"&:hover":{backgroundColor:Y===de?BN(Y,.1):de}}}};return z&&!M?m.jsxs("div",{...t?{id:`mobile-table-${t}`}:{},className:C,"data-testid":"mui-table-mobile",children:[ie&&m.jsxs(m.Fragment,{children:[m.jsxs(L.Box,{display:"flex",className:"MBv2_Table_Stack_Sort",children:[m.jsx(L.TextField,{select:!0,sx:{flexGrow:1},id:"demo-simple-select",size:"small",value:d??"",label:"Sort By...",onChange:H=>F(H.target.value),fullWidth:!0,children:V.map(H=>{if(J(H.fieldName))return m.jsx(L.MenuItem,{value:H.sortName??H.fieldName,children:H.label??ln(H.fieldName)},`${H.key??"rowHeader"}-${H.fieldName}`)})}),m.jsx(L.IconButton,{onClick:()=>{d&&F(d)},children:m.jsx(DW,{className:`sort-icon-${f}`})})]}),m.jsx(L.Divider,{sx:{margin:"10px 0"}})]}),xe()??s.map(H=>m.jsxs(L.Card,{className:"MBv2_Table_Stack_Container",sx:{margin:"5px 0",padding:"5px",...ce(H)},onClick:()=>ne(n(H)),"data-testid":`card-${n(H)}`,children:[m.jsx("table",{className:"MBv2_Table_Stack",children:m.jsx("tbody",{className:"MBv2_Table_Stack_Body",children:V.map(Y=>m.jsxs("tr",{className:"MBv2_Table_Stack_Row",children:[m.jsx("td",{className:`MBv2_Table_Stack_Cell_Label MBv2_Table_Stack_Col_${Y.fieldName}`,children:Y.label??ln(Y.fieldName)}),m.jsx("td",{className:`MBv2_Table_Stack_Cell_Value MBv2_Table_Stack_Val_${Y.fieldName}`,style:{paddingLeft:"10px"},children:te(Y,H)})]},`${Y.key??"row"}-${n(H)}-${Y.fieldName}`))})}),c&&m.jsx(qg,{colSpan:o.length,isExpanded:n(H)===I,obj:H,renderExpand:Y=>c(Y),asMobileCard:!0})]},n(H)))]}):m.jsx(L.TableContainer,{component:L.Card,"data-testid":"mui-table",...t?{id:`table-${t}`}:{},className:C,style:R?{maxHeight:R,overflow:"auto"}:{},children:m.jsxs(L.Table,{stickyHeader:R!=="undefined",style:{tableLayout:y?"fixed":"auto"},className:"MBv2_Table",sx:x?{"& .MuiTableCell-head":{...x}}:{},...D,children:[m.jsx(L.TableHead,{className:"MBv2_Table_Head",children:m.jsx(L.TableRow,{className:"MBv2_Table_Head_Row",children:V.map((H,Y)=>{const se=J(H.fieldName);return m.jsx(L.TableCell,{width:Array.isArray(y)?y[Y]:"auto",children:m.jsx(L.Box,{style:{display:"flex",alignItems:"center"},children:m.jsxs(L.Box,{sx:[se&&{"&:hover":{cursor:"pointer",backgroundColor:A.mode==="dark"?"#222222":"#ededed",borderRadius:2}}],style:{display:"flex",alignItems:"center",padding:"5px",paddingLeft:"6px",marginLeft:"-6px"},onClick:se?()=>F(H.sortName??H.fieldName):void 0,children:[m.jsx("strong",{className:"MBv2_Table_Col_Label",style:{wordBreak:"normal"},children:H.label??ln(H.fieldName)}),se&&B(H.fieldName)==="asc"&&m.jsx(_n.KeyboardArrowUp,{style:{marginLeft:"5px"}}),se&&B(H.fieldName)==="desc"&&m.jsx(_n.KeyboardArrowDown,{style:{marginLeft:"5px"}}),se&&B(H.fieldName)!=="asc"&&B(H.fieldName)!=="desc"&&m.jsx(MW,{style:{marginLeft:"5px"}})]})})},`${H.key??"rowHeader"}-${H.fieldName}`)})})}),m.jsx(L.TableBody,{className:"MBv2_Table_Body",children:ve()??s.map(H=>m.jsxs(Ne.Fragment,{children:[m.jsx(L.TableRow,{"data-testid":`row-${n(H)}`,className:"MBv2_Table_Body_Row",onClick:()=>ne(n(H)),sx:ce(H),children:V.map(Y=>m.jsx(L.TableCell,{className:`MBv2_Table_Body_Cell MBv2_Table_Body_Col_${Y.fieldName}`,children:te(Y,H)},`${Y.key??"row"}-${n(H)}-${Y.fieldName}`))}),c&&m.jsx(qg,{colSpan:o.length,isExpanded:n(H)===I,obj:H,renderExpand:Y=>c(Y)})]},n(H)))})]})})},IW=e=>{const{paginationState:t,onPageChange:n,onRowsPerPageChange:o,hidePaginationControls:s=!1,rowsPerPageOptions:l=[5,10,25],...c}=e,{pageNo:u,pageSize:d,totalCount:f,sortField:h,sortOrder:b}=t,y=S=>{n(S)},C=S=>{o(parseInt(S.target.value,10))},w=L.useMediaQuery(L.useTheme().breakpoints.down("sm")),g=!e.data||e.data&&e.data.length===0;return m.jsxs(L.Box,{children:[m.jsx(sx,{sortOrder:b,sortField:h,...c}),!s&&!g&&m.jsx(L.TablePagination,{"data-testid":"pagination-controls",component:"div",rowsPerPageOptions:w?[]:l,count:f,rowsPerPage:d,page:u,onPageChange:(S,T)=>y(T),onRowsPerPageChange:C,sx:{flexGrow:1,marginRight:{xs:0,md:15}}})]})},AW=e=>{const{featureMenuOptions:t=[],copyright:n,logo:o,sx:s={},fontColor:l="primary"}=e,{palette:c}=L.useTheme(),u=lr.useNavigate();return m.jsxs(L.Box,{className:"MBv2_Footer",sx:{backgroundColor:c.mode==="dark"?"#222222":"#ededed",padding:"25px 30px",...s},children:[m.jsx(L.Box,{className:"MBv2_Footer_Logo",sx:{display:"flex",gap:2,alignItems:"center",paddingBottom:1},children:typeof o=="string"?m.jsx("img",{draggable:"false",src:o,style:{width:"200px"},alt:"logo"}):o}),m.jsxs(L.Box,{display:"flex",justifyContent:"space-between",flexWrap:"wrap",className:"MBv2_Footer_Nav_Links_Container",gap:2,children:[m.jsx(L.Box,{sx:{flexGrow:1},className:"MBv2_Footer_Nav_Links",display:"flex",flexDirection:"row",justifyContent:"flex-start",gap:3,children:t==null?void 0:t.map(d=>m.jsx(L.Link,{"data-testid":d.label,sx:{cursor:"pointer",fontSize:15},color:l,...$s(d,u),children:d.label},d.label))}),n&&m.jsx(L.Typography,{style:{fontSize:15},"data-testid":"copyright",className:"MBv2_Footer_Copyright",color:l,children:n})]})]})},ax=e=>{const{menuOptionLists:t,anchor:n="left",children:o}=e,{pathname:s}=lr.useLocation(),l=lr.useNavigate(),[c,u]=Ne.useState(!1),d=(y,C)=>m.jsx(L.MenuList,{children:y.map(w=>m.jsxs(L.MenuItem,{...$s(w,l,()=>u(!1)),children:[w.icon&&m.jsx(L.ListItemIcon,{children:w.icon}),m.jsx(L.ListItemText,{primary:w.label})]},`mobile-drawer-group-${C}-item-${w.path}`))}),h=(()=>{if(t){const y=t.filter(C=>C&&C.length>0);return y.length===0?null:y.map((C,w)=>m.jsxs(Ne.Fragment,{children:[d(C,w),w<y.length-1&&m.jsx(L.Divider,{})]},`mobile-drawer-group-${w}`))}return o?m.jsx(L.Box,{role:"presentation",onClick:()=>u(!1),children:o}):null})(),b=h??!1;return Ne.useEffect(()=>{u(!1)},[s]),b&&m.jsxs(m.Fragment,{children:[m.jsx(L.IconButton,{onClick:()=>u(!0),color:"inherit",title:"Menu",children:m.jsx(_n.Menu,{})}),m.jsx(L.Drawer,{"data-testid":"mobile-drawer",anchor:n,open:c,onClose:()=>u(!1),children:m.jsx(L.Box,{sx:{width:300},display:"flex",flexDirection:"column",justifyContent:"space-between",children:m.jsx(L.Box,{display:"flex",justifyContent:"start",flexDirection:"column",children:h})})})]})},lx=e=>{const{env:t,isProd:n}=e;return n?null:m.jsx(L.Paper,{sx:{borderRadius:0,display:"flex",alignItems:"center",justifyContent:"center"},children:m.jsxs(L.Typography,{variant:"h6",sx:{color:"error.light"},children:[t," Environment - Test Data Only"]})})},cx=e=>{const{label:t,menuOptions:n=[],icon:o}=e,s=lr.useNavigate(),[l,c]=E.useState(null),u=!!l,d=h=>{c(h.currentTarget)},f=()=>{c(null)};return n.length===0?null:m.jsxs(m.Fragment,{children:[m.jsx(L.Button,{startIcon:o,variant:"outlined",color:"inherit",sx:{minWidth:0,padding:1},onClick:d,children:t}),m.jsx(L.Menu,{anchorEl:l,open:u,onClick:f,children:n.map(h=>m.jsxs(L.MenuItem,{...$s(h,s),children:[h.icon&&m.jsx(L.ListItemIcon,{children:h.icon}),m.jsx(L.ListItemText,{primary:h.label})]},h.label))})]})},ux=e=>{const{displayName:t,userMenuOptions:n}=e;return m.jsx(cx,{label:t,menuOptions:n,icon:m.jsx(_n.Person,{})})},pc=e=>{const{menuOptions:t,orientation:n="horizontal",activeTabIdx:o,sx:s=n=="vertical"?{"& .MuiTabs-indicator":{left:0}}:void 0,slotProps:l={indicator:{sx:n=="horizontal"?{height:4}:{width:4}}}}=e,{palette:c}=L.useTheme(),u=lr.useNavigate();return m.jsx(L.Tabs,{orientation:n,value:o??!1,sx:s,slotProps:l,children:t.map((d,f)=>m.jsx(L.Tab,{icon:d.icon,label:d.label,value:f,...$s(d,u),sx:{alignItems:n=="vertical"?"flex-start":void 0,borderBottom:n=="vertical"?"1px solid":void 0,borderColor:"divider","&.Mui-selected":{backgroundColor:n=="vertical"?c.grey[c.mode=="dark"?800:50]:void 0,color:"inherit"}}},d.label))})},dx=e=>{const{featureMenuOptions:t=[],activeTabIdx:n,sx:o}=e;return t.length>0&&m.jsx(L.Paper,{sx:{pl:4,pr:4,borderRadius:0},"data-testid":"navBar",children:m.jsx(pc,{menuOptions:t,activeTabIdx:n,sx:o})})},px=e=>{const{onToggle:t}=e,{palette:n}=L.useTheme(),o=n.mode==="dark";return m.jsx(L.IconButton,{onClick:t,color:"inherit",title:"Dark Mode Toggle",children:o?m.jsx(_n.LightMode,{}):m.jsx(_n.DarkMode,{})})},jW=e=>{const{envInfo:t,headerRef:n,logo:o,featureMenuOptions:s=[],userMenuOptions:l=[],onToggleDarkMode:c,quickLinks:u=[],displayName:d,banner:f,position:h="fixed",children:b,sx:y,navBarSx:C}=e,w=lr.useNavigate(),g=L.useMediaQuery(L.useTheme().breakpoints.down("sm")),{palette:S}=L.useTheme(),{pathname:T}=lr.useLocation(),M=S.mode==="dark",[O,x]=E.useState(void 0);E.useEffect(()=>{const A=s.findIndex(I=>I.path&&T.startsWith(I.path));x(A>=0?A:void 0)},[T,s]);const R=c&&m.jsx(px,{onToggle:c}),D=c&&(g||!g&&d)?[{icon:M?m.jsx(_n.LightMode,{}):m.jsx(_n.DarkMode,{}),label:`Switch to ${M?"Light":"Dark"} mode`,onClick:c},...l]:l;return m.jsxs(L.AppBar,{ref:n,position:h,sx:y,elevation:4,children:[t&&m.jsx(lx,{...t}),f,m.jsxs(L.Toolbar,{sx:{color:"white",display:"flex",justifyContent:"space-between",gap:2},children:[m.jsx(L.Button,{disableRipple:!0,component:lr.Link,to:"/",children:o&&typeof o=="string"?m.jsx("img",{draggable:"false",src:o,style:{width:"200px",filter:"brightness(0) invert(1)"},alt:"logo"}):o}),m.jsxs(L.Box,{display:"flex",gap:2,alignItems:"center",children:[!d&&!g&&R,g&&m.jsx(ax,{menuOptionLists:[s,u,D],anchor:"right"}),!g&&m.jsxs(m.Fragment,{children:[m.jsx(L.Box,{display:"flex",gap:0,children:u==null?void 0:u.map((A,I)=>m.jsxs(L.Box,{display:"flex",alignItems:"center",children:[I>0&&m.jsx(L.Typography,{className:"quickLink-divider",color:S.primary.contrastText,children:"|"}),m.jsx(L.Button,{variant:"text",sx:{color:"white"},...$s(A,w),children:m.jsxs(L.Box,{display:"flex",gap:"3px",alignItems:"center",children:[A.icon,A.label]})})]},A.label))}),b,d&&m.jsx(ux,{displayName:d,userMenuOptions:D})]})]})]}),!g&&m.jsx(dx,{featureMenuOptions:s,activeTabIdx:O,sx:C})]})},$W=e=>{const{sx:t,menuOptions:n=[]}=e,{pathname:o}=lr.useLocation(),s=L.useMediaQuery(L.useTheme().breakpoints.down("sm")),[l,c]=Ne.useState(void 0);return Ne.useEffect(()=>{const u=n.findIndex(d=>d.path&&o.startsWith(d.path))??-1;c(u>=0?u:void 0)},[o,n]),!s&&n.length>0&&m.jsx(L.Box,{sx:t,children:m.jsx(L.Card,{sx:{height:"100%",width:200},children:m.jsx(pc,{orientation:"vertical",menuOptions:n,activeTabIdx:l})})})},NW=e=>{const{featureMenuOptions:t=[],activeTabIdx:n,sx:o}=e,{palette:s}=L.useTheme();return t.length>0&&m.jsx(pc,{menuOptions:t,activeTabIdx:n,sx:{margin:"8px",backgroundColor:s.primary.dark,borderRadius:"8px","& .MuiTab-root":{color:s.secondary.light,flexDirection:"row",gap:"2px","& .MuiTab-icon":{marginBottom:"unset"},minHeight:"58px"},"& .MuiTab-root.Mui-selected":{color:s.primary.contrastText,fontSize:"120%"},"& .MuiTabs-indicator":{display:"none"},...o}})},ap=nk({createStyledComponent:pe("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>at({props:e,name:"MuiGrid2"}),useTheme:Fo});process.env.NODE_ENV!=="production"&&(ap.propTypes={children:r.node,columns:r.oneOfType([r.arrayOf(r.number),r.number,r.object]),columnSpacing:r.oneOfType([r.arrayOf(r.oneOfType([r.number,r.string])),r.number,r.object,r.string]),container:r.bool,direction:r.oneOfType([r.oneOf(["column-reverse","column","row-reverse","row"]),r.arrayOf(r.oneOf(["column-reverse","column","row-reverse","row"])),r.object]),offset:r.oneOfType([r.string,r.number,r.arrayOf(r.oneOfType([r.string,r.number])),r.object]),rowSpacing:r.oneOfType([r.arrayOf(r.oneOfType([r.number,r.string])),r.number,r.object,r.string]),size:r.oneOfType([r.string,r.bool,r.number,r.arrayOf(r.oneOfType([r.string,r.bool,r.number])),r.object]),spacing:r.oneOfType([r.arrayOf(r.oneOfType([r.number,r.string])),r.number,r.object,r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),unstable_level:r.number,wrap:r.oneOf(["nowrap","wrap-reverse","wrap"])});if(process.env.NODE_ENV!=="production"){const e=ap,t=KR("Grid2",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function FW({size:e={xs:12},spacing:t=2,sm:n,...o}){return n&&(e={xs:12,sm:n}),m.jsx(ap,{size:e,spacing:t,...o,children:o.children})}function LW(e){const{title:t="Title Goes Here",sx:n={p:2},children:o,...s}=e;return m.jsxs(Lo,{sx:n,...s,children:[m.jsx(Gr,{variant:"h6",sx:{fontWeight:"bold"},gutterBottom:!0,children:t}),o]})}const fx=ck({createStyledComponent:pe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>at({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(fx.propTypes={children:r.node,component:r.elementType,direction:r.oneOfType([r.oneOf(["column-reverse","column","row-reverse","row"]),r.arrayOf(r.oneOf(["column-reverse","column","row-reverse","row"])),r.object]),divider:r.node,spacing:r.oneOfType([r.arrayOf(r.oneOfType([r.number,r.string])),r.number,r.object,r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),useFlexGap:r.bool});function BW(e){return m.jsx(fx,{className:e.className,...e,spacing:2,children:e.children})}function VW(e){return Be("MuiAlert",e)}const Yg=Ve("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),WW=Pt(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),zW=Pt(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),UW=Pt(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),HW=Pt(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),qW=Pt(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),YW=e=>{const{variant:t,color:n,severity:o,classes:s}=e,l={root:["root",`color${Oe(n||o)}`,`${t}${Oe(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Le(l,VW,s)},GW=pe(Lo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Oe(n.color||n.severity)}`]]}})(bt(({theme:e})=>{const t=e.palette.mode==="light"?_s:Ts,n=e.palette.mode==="light"?Ts:_s;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(an(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${Yg.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(an(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${Yg.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(an(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),KW=pe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),XW=pe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),ZW=pe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Gg={success:m.jsx(WW,{fontSize:"inherit"}),warning:m.jsx(zW,{fontSize:"inherit"}),error:m.jsx(UW,{fontSize:"inherit"}),info:m.jsx(HW,{fontSize:"inherit"})},hx=E.forwardRef(function(t,n){const o=at({props:t,name:"MuiAlert"}),{action:s,children:l,className:c,closeText:u="Close",color:d,components:f={},componentsProps:h={},icon:b,iconMapping:y=Gg,onClose:C,role:w="alert",severity:g="success",slotProps:S={},slots:T={},variant:M="standard",...O}=o,x={...o,color:d,severity:g,variant:M,colorSeverity:d||g},R=YW(x),D={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...T},slotProps:{...h,...S}},[A,I]=Ct("root",{ref:n,shouldForwardComponentProp:!0,className:Re(R.root,c),elementType:GW,externalForwardedProps:{...D,...O},ownerState:x,additionalProps:{role:w,elevation:0}}),[N,_]=Ct("icon",{className:R.icon,elementType:KW,externalForwardedProps:D,ownerState:x}),[$,F]=Ct("message",{className:R.message,elementType:XW,externalForwardedProps:D,ownerState:x}),[B,z]=Ct("action",{className:R.action,elementType:ZW,externalForwardedProps:D,ownerState:x}),[V,U]=Ct("closeButton",{elementType:ki,externalForwardedProps:D,ownerState:x}),[te,ie]=Ct("closeIcon",{elementType:qW,externalForwardedProps:D,ownerState:x});return m.jsxs(A,{...I,children:[b!==!1?m.jsx(N,{..._,children:b||y[g]||Gg[g]}):null,m.jsx($,{...F,children:l}),s!=null?m.jsx(B,{...z,children:s}):null,s==null&&C?m.jsx(B,{...z,children:m.jsx(V,{size:"small","aria-label":u,title:u,color:"inherit",onClick:C,...U,children:m.jsx(te,{fontSize:"small",...ie})})}):null]})});process.env.NODE_ENV!=="production"&&(hx.propTypes={action:r.node,children:r.node,classes:r.object,className:r.string,closeText:r.string,color:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),components:r.shape({CloseButton:r.elementType,CloseIcon:r.elementType}),componentsProps:r.shape({closeButton:r.object,closeIcon:r.object}),icon:r.node,iconMapping:r.shape({error:r.node,info:r.node,success:r.node,warning:r.node}),onClose:r.func,role:r.string,severity:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),slotProps:r.shape({action:r.oneOfType([r.func,r.object]),closeButton:r.oneOfType([r.func,r.object]),closeIcon:r.oneOfType([r.func,r.object]),icon:r.oneOfType([r.func,r.object]),message:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({action:r.elementType,closeButton:r.elementType,closeIcon:r.elementType,icon:r.elementType,message:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});const Qs=e=>{var C;const{noIcon:t=!1,children:n,severity:o="success",variant:s="leftBorder",sx:l,title:c,...u}=e,{palette:d}=L.useTheme(),f=t?{icon:!1}:{},h=s==="leftBorder"?"standard":s,b=s==="leftBorder"?{...l,borderLeft:`4px solid ${(C=d[o])==null?void 0:C.main}`}:l,y=c?{icon:{sx:{mt:"6px"}}}:{};return m.jsxs(hx,{severity:o,variant:h,sx:b,slotProps:y,...f,...u,children:[c&&m.jsx(L.Typography,{variant:"h3",children:c}),n]})},QW=e=>m.jsx(Qs,{severity:"success",...e}),JW=e=>m.jsx(Qs,{severity:"info",...e}),ez=e=>m.jsx(Qs,{severity:"warning",...e}),tz=e=>m.jsx(Qs,{severity:"error",...e}),nz=Pt(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),mx=e=>{const{crumbInfo:t}=e,n=lr.useNavigate();return m.jsx(L.Breadcrumbs,{"aria-label":"breadcrumb",separator:m.jsx(nz,{color:"primary"}),sx:{marginBottom:2},children:t.map(({label:o,path:s},l)=>s&&l<t.length-1?m.jsx(L.Link,{color:"primary",sx:{cursor:"pointer"},onClick:()=>n(s),children:o},o):m.jsx(L.Typography,{color:"primary",children:o},o))})},rz=e=>{const{title:t,message:n,type:o,onClose:s,autoHideDuration:l=8e3,variant:c="leftBorder",elevation:u=6}=e,d=oz(o);return m.jsx(L.Snackbar,{"data-testid":"message-snackbar",anchorOrigin:{vertical:"bottom",horizontal:"right"},open:!0,onClose:f=>{f==null&&s()},autoHideDuration:l,children:m.jsx(Qs,{"data-testid":"message-snackbar-alert",severity:d,iconMapping:{info:Kg(o),warning:Kg(o)},onClose:s,elevation:u,variant:c,children:n?m.jsxs(m.Fragment,{children:[m.jsx(L.AlertTitle,{"data-testid":"alertTitle",sx:{fontWeight:"bold"},children:t}),n]}):t})})},oz=e=>e=="logout"?"info":e=="timeout"?"warning":e,Kg=e=>{if(e=="timeout")return m.jsx(_n.AccessTime,{});if(e=="logout")return m.jsx(_n.Logout,{})},iz=e=>{const{title:t,createButtonLabel:n,showAddButton:o=!1,onAdd:s=()=>alert("Not implemented yet"),breadcrumbs:l=[],children:c,sx:u}=e,d=L.useMediaQuery(L.useTheme().breakpoints.down("sm"));return o&&s.toString()==='() => alert("Not implemented yet")'&&console.warn('PageHeader: "showAddButton" is true but "onAdd" is not defined.'),m.jsxs(L.Box,{sx:u,children:[l.length>0&&m.jsx(mx,{crumbInfo:l}),m.jsxs(L.Box,{className:"MBv2_PageHeader_Header",display:"flex",flexDirection:d?"column":"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[m.jsxs(L.Box,{className:"MBv2_PageHeader_TitleAndCreateBtn",display:"flex",flexDirection:"row",justifyContent:d||!c?"space-between":"start",alignItems:"center",width:"100%",gap:1,children:[typeof t=="string"?m.jsx(L.Typography,{className:"MBv2_PageHeader_Title",variant:"h2",children:t}):t,o&&m.jsxs(ip,{className:"MBv2_PageHeader_CreateBtn",onClick:()=>s(),children:[m.jsx(_n.AddCircleOutline,{style:{marginRight:"0.5rem"}}),n]})]}),c&&m.jsx(L.Box,{width:d?"100%":"50%",children:c})]})]})},sz=e=>{const{title:t,titleIcon:n,fullWidthIcon:o=!1,children:s,actionLabel:l,action:c,sx:u}=e,d=L.useMediaQuery(L.useTheme().breakpoints.down("sm"));return m.jsxs(L.Card,{sx:u||{padding:"30px 40px",display:"flex",flexDirection:"column",gap:"1rem"},children:[n&&m.jsx(L.Box,{className:"MBv2_SingleActionCard_Img",sx:[o?{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"20px",marginBottom:"10px"}:{display:"inline"}],children:n}),m.jsx(L.Typography,{variant:"h1",display:"inline",fontSize:"calc(20px + .9vw)",className:"MBv2_SingleActionCard_Title",children:t}),s,m.jsx(L.Button,{variant:"contained",color:"primary",onClick:c,fullWidth:d,className:"MBv2_SingleActionCard_ActionButton",children:l})]})};exports.AlertModal=PW;exports.Autocomplete=lb;exports.Breadcrumbs=mx;exports.Button=ip;exports.Checkbox=Qk;exports.CheckboxGroup=Jk;exports.ConfirmationModal=EW;exports.DarkModeToggle=px;exports.DateField=ld;exports.DateRangeField=_5;exports.DecisionModal=RW;exports.Drawer=ax;exports.DynamicAutocomplete=Xk;exports.EnvironmentBanner=lx;exports.Error=Xn;exports.ErrorAlert=tz;exports.FileList=rI;exports.FileUpload=eI;exports.FloatingNavBar=NW;exports.Footer=AW;exports.FormDebugger=lW;exports.Header=jW;exports.InfoAlert=JW;exports.LoadingIndicator=pd;exports.MForm=yW;exports.MForm2=TW;exports.MFormProvider2=ix;exports.MGrid=FW;exports.MPanel=LW;exports.MStack=BW;exports.MenuButton=cx;exports.MultiAutocomplete=Zk;exports.NavBar=dx;exports.PageHeader=iz;exports.PaginatedTable=IW;exports.ProfileMenu=ux;exports.RadioGroup=oI;exports.RangeSlider=iI;exports.RepeatableFormGroup=dW;exports.RichTextField=iW;exports.ScrollToTop=aW;exports.SearchField=cI;exports.Select=sI;exports.Sidebar=$W;exports.SingleActionCard=sz;exports.Snackbar=rz;exports.Stepper=cW;exports.Submit=sW;exports.SuccessAlert=QW;exports.Switch=aI;exports.Table=sx;exports.Tabs=pc;exports.TextField=lI;exports.WarningAlert=ez;exports.commonTheme=Xt;exports.darkTheme=RR;exports.lightTheme=PR;exports.useMForm2=SW;exports.useMyForm=bW;