@leapdevuk/component-toolbox 0.0.37 → 0.0.38
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/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -102,5 +102,5 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
102
102
|
|
|
103
103
|
export default theme;`}function Ar(t={},...n){const{breakpoints:e,mixins:r={},spacing:a,palette:o={},transitions:i={},typography:s={},shape:l,...f}=t;if(t.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Je(20));const h=zr(o),d=ka(t);let m=$e(d,{mixins:wu(d.breakpoints,r),palette:h,shadows:Su.slice(),typography:Cu(h,s),transitions:Pu(i),zIndex:{...Du}});if(m=$e(m,f),m=n.reduce((x,E)=>$e(x,E),m),process.env.NODE_ENV!=="production"){const x=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],E=(w,y)=>{let O;for(O in w){const _=w[O];if(x.includes(O)&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const S=Zt("",O);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${O}\` internal state.`,"You can not override it like this: ",JSON.stringify(w,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
104
104
|
`))}w[O]={}}}};Object.keys(m.components).forEach(w=>{const y=m.components[w].styleOverrides;y&&w.startsWith("Mui")&&E(y,w)})}return m.unstable_sxConfig={...Nt,...f==null?void 0:f.unstable_sxConfig},m.unstable_sx=function(E){return bt({sx:E,theme:this})},m.toRuntimeSource=ja,m}function Ru(t){let n;return t<1?n=5.11916*t**2:n=4.5*Math.log(t+1)+2,Math.round(n*10)/1e3}const $u=[...Array(25)].map((t,n)=>{if(n===0)return"none";const e=Ru(n);return`linear-gradient(rgba(255 255 255 / ${e}), rgba(255 255 255 / ${e}))`});function Ia(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function Fa(t){return t==="dark"?$u:[]}function Au(t){const{palette:n={mode:"light"},opacity:e,overlays:r,...a}=t,o=zr(n);return{palette:o,opacity:{...Ia(o.mode),...e},overlays:r||Fa(o.mode),...a}}function ju(t){var n;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((n=t[1])!=null&&n.match(/(mode|contrastThreshold|tonalOffset)/))}const Iu=t=>[...[...Array(25)].map((n,e)=>`--${t?`${t}-`:""}overlays-${e}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],Fu=t=>(n,e)=>{const r=t.rootSelector||":root",a=t.colorSchemeSelector;let o=a;if(a==="class"&&(o=".%s"),a==="data"&&(o="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(o=`[${a}="%s"]`),t.defaultColorScheme===n){if(n==="dark"){const i={};return Iu(t.cssVarPrefix).forEach(s=>{i[s]=e[s],delete e[s]}),o==="media"?{[r]:e,"@media (prefers-color-scheme: dark)":{[r]:i}}:o?{[o.replace("%s",n)]:i,[`${r}, ${o.replace("%s",n)}`]:e}:{[r]:{...e,...i}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(n))}`}else if(n){if(o==="media")return{[`@media (prefers-color-scheme: ${String(n)})`]:{[r]:e}};if(o)return o.replace("%s",String(n))}return r};function Nu(t,n){n.forEach(e=>{t[e]||(t[e]={})})}function g(t,n,e){!t[n]&&e&&(t[n]=e)}function Mt(t){return!t||!t.startsWith("hsl")?t:Ra(t)}function Ge(t,n){`${n}Channel`in t||(t[`${n}Channel`]=Ot(Mt(t[n]),`MUI: Can't create \`palette.${n}Channel\` because \`palette.${n}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
105
|
-
To suppress this warning, you need to explicitly provide the \`palette.${n}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Lu(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Ye=t=>{try{return t()}catch{}},Yu=(t="mui")=>ou(t);function Or(t,n,e,r){if(!n)return;n=n===!0?{}:n;const a=r==="dark"?"dark":"light";if(!e){t[r]=Au({...n,palette:{mode:a,...n==null?void 0:n.palette}});return}const{palette:o,...i}=Ar({...e,palette:{mode:a,...n==null?void 0:n.palette}});return t[r]={...n,palette:o,opacity:{...Ia(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Fa(a)},i}function Wu(t={},...n){const{colorSchemes:e={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:i=ju,colorSchemeSelector:s=e.light&&e.dark?"media":void 0,rootSelector:l=":root",...f}=t,h=Object.keys(e)[0],d=r||(e.light&&h!=="light"?"light":h),m=Yu(o),{[d]:x,light:E,dark:w,...y}=e,O={...y};let _=x;if((d==="dark"&&!("dark"in e)||d==="light"&&!("light"in e))&&(_=!0),!_)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:Je(21,d));const S=Or(O,_,f,d);E&&!O.light&&Or(O,E,void 0,"light"),w&&!O.dark&&Or(O,w,void 0,"dark");let M={defaultColorScheme:d,...S,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:m,colorSchemes:O,font:{...bu(S.typography),...S.font},spacing:Lu(f.spacing)};Object.keys(M.colorSchemes).forEach(k=>{const c=M.colorSchemes[k].palette,C=$=>{const L=$.split("-"),Z=L[1],ge=L[2];return m($,c[Z][ge])};if(c.mode==="light"&&(g(c.common,"background","#fff"),g(c.common,"onBackground","#000")),c.mode==="dark"&&(g(c.common,"background","#000"),g(c.common,"onBackground","#fff")),Nu(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){g(c.Alert,"errorColor",fe(c.error.light,.6)),g(c.Alert,"infoColor",fe(c.info.light,.6)),g(c.Alert,"successColor",fe(c.success.light,.6)),g(c.Alert,"warningColor",fe(c.warning.light,.6)),g(c.Alert,"errorFilledBg",C("palette-error-main")),g(c.Alert,"infoFilledBg",C("palette-info-main")),g(c.Alert,"successFilledBg",C("palette-success-main")),g(c.Alert,"warningFilledBg",C("palette-warning-main")),g(c.Alert,"errorFilledColor",Ye(()=>c.getContrastText(c.error.main))),g(c.Alert,"infoFilledColor",Ye(()=>c.getContrastText(c.info.main))),g(c.Alert,"successFilledColor",Ye(()=>c.getContrastText(c.success.main))),g(c.Alert,"warningFilledColor",Ye(()=>c.getContrastText(c.warning.main))),g(c.Alert,"errorStandardBg",de(c.error.light,.9)),g(c.Alert,"infoStandardBg",de(c.info.light,.9)),g(c.Alert,"successStandardBg",de(c.success.light,.9)),g(c.Alert,"warningStandardBg",de(c.warning.light,.9)),g(c.Alert,"errorIconColor",C("palette-error-main")),g(c.Alert,"infoIconColor",C("palette-info-main")),g(c.Alert,"successIconColor",C("palette-success-main")),g(c.Alert,"warningIconColor",C("palette-warning-main")),g(c.AppBar,"defaultBg",C("palette-grey-100")),g(c.Avatar,"defaultBg",C("palette-grey-400")),g(c.Button,"inheritContainedBg",C("palette-grey-300")),g(c.Button,"inheritContainedHoverBg",C("palette-grey-A100")),g(c.Chip,"defaultBorder",C("palette-grey-400")),g(c.Chip,"defaultAvatarColor",C("palette-grey-700")),g(c.Chip,"defaultIconColor",C("palette-grey-700")),g(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),g(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),g(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),g(c.LinearProgress,"primaryBg",de(c.primary.main,.62)),g(c.LinearProgress,"secondaryBg",de(c.secondary.main,.62)),g(c.LinearProgress,"errorBg",de(c.error.main,.62)),g(c.LinearProgress,"infoBg",de(c.info.main,.62)),g(c.LinearProgress,"successBg",de(c.success.main,.62)),g(c.LinearProgress,"warningBg",de(c.warning.main,.62)),g(c.Skeleton,"bg",`rgba(${C("palette-text-primaryChannel")} / 0.11)`),g(c.Slider,"primaryTrack",de(c.primary.main,.62)),g(c.Slider,"secondaryTrack",de(c.secondary.main,.62)),g(c.Slider,"errorTrack",de(c.error.main,.62)),g(c.Slider,"infoTrack",de(c.info.main,.62)),g(c.Slider,"successTrack",de(c.success.main,.62)),g(c.Slider,"warningTrack",de(c.warning.main,.62));const $=Ht(c.background.default,.8);g(c.SnackbarContent,"bg",$),g(c.SnackbarContent,"color",Ye(()=>c.getContrastText($))),g(c.SpeedDialAction,"fabHoverBg",Ht(c.background.paper,.15)),g(c.StepConnector,"border",C("palette-grey-400")),g(c.StepContent,"border",C("palette-grey-400")),g(c.Switch,"defaultColor",C("palette-common-white")),g(c.Switch,"defaultDisabledColor",C("palette-grey-100")),g(c.Switch,"primaryDisabledColor",de(c.primary.main,.62)),g(c.Switch,"secondaryDisabledColor",de(c.secondary.main,.62)),g(c.Switch,"errorDisabledColor",de(c.error.main,.62)),g(c.Switch,"infoDisabledColor",de(c.info.main,.62)),g(c.Switch,"successDisabledColor",de(c.success.main,.62)),g(c.Switch,"warningDisabledColor",de(c.warning.main,.62)),g(c.TableCell,"border",de(Wt(c.divider,1),.88)),g(c.Tooltip,"bg",Wt(c.grey[700],.92))}if(c.mode==="dark"){g(c.Alert,"errorColor",de(c.error.light,.6)),g(c.Alert,"infoColor",de(c.info.light,.6)),g(c.Alert,"successColor",de(c.success.light,.6)),g(c.Alert,"warningColor",de(c.warning.light,.6)),g(c.Alert,"errorFilledBg",C("palette-error-dark")),g(c.Alert,"infoFilledBg",C("palette-info-dark")),g(c.Alert,"successFilledBg",C("palette-success-dark")),g(c.Alert,"warningFilledBg",C("palette-warning-dark")),g(c.Alert,"errorFilledColor",Ye(()=>c.getContrastText(c.error.dark))),g(c.Alert,"infoFilledColor",Ye(()=>c.getContrastText(c.info.dark))),g(c.Alert,"successFilledColor",Ye(()=>c.getContrastText(c.success.dark))),g(c.Alert,"warningFilledColor",Ye(()=>c.getContrastText(c.warning.dark))),g(c.Alert,"errorStandardBg",fe(c.error.light,.9)),g(c.Alert,"infoStandardBg",fe(c.info.light,.9)),g(c.Alert,"successStandardBg",fe(c.success.light,.9)),g(c.Alert,"warningStandardBg",fe(c.warning.light,.9)),g(c.Alert,"errorIconColor",C("palette-error-main")),g(c.Alert,"infoIconColor",C("palette-info-main")),g(c.Alert,"successIconColor",C("palette-success-main")),g(c.Alert,"warningIconColor",C("palette-warning-main")),g(c.AppBar,"defaultBg",C("palette-grey-900")),g(c.AppBar,"darkBg",C("palette-background-paper")),g(c.AppBar,"darkColor",C("palette-text-primary")),g(c.Avatar,"defaultBg",C("palette-grey-600")),g(c.Button,"inheritContainedBg",C("palette-grey-800")),g(c.Button,"inheritContainedHoverBg",C("palette-grey-700")),g(c.Chip,"defaultBorder",C("palette-grey-700")),g(c.Chip,"defaultAvatarColor",C("palette-grey-300")),g(c.Chip,"defaultIconColor",C("palette-grey-300")),g(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),g(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),g(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),g(c.LinearProgress,"primaryBg",fe(c.primary.main,.5)),g(c.LinearProgress,"secondaryBg",fe(c.secondary.main,.5)),g(c.LinearProgress,"errorBg",fe(c.error.main,.5)),g(c.LinearProgress,"infoBg",fe(c.info.main,.5)),g(c.LinearProgress,"successBg",fe(c.success.main,.5)),g(c.LinearProgress,"warningBg",fe(c.warning.main,.5)),g(c.Skeleton,"bg",`rgba(${C("palette-text-primaryChannel")} / 0.13)`),g(c.Slider,"primaryTrack",fe(c.primary.main,.5)),g(c.Slider,"secondaryTrack",fe(c.secondary.main,.5)),g(c.Slider,"errorTrack",fe(c.error.main,.5)),g(c.Slider,"infoTrack",fe(c.info.main,.5)),g(c.Slider,"successTrack",fe(c.success.main,.5)),g(c.Slider,"warningTrack",fe(c.warning.main,.5));const $=Ht(c.background.default,.98);g(c.SnackbarContent,"bg",$),g(c.SnackbarContent,"color",Ye(()=>c.getContrastText($))),g(c.SpeedDialAction,"fabHoverBg",Ht(c.background.paper,.15)),g(c.StepConnector,"border",C("palette-grey-600")),g(c.StepContent,"border",C("palette-grey-600")),g(c.Switch,"defaultColor",C("palette-grey-300")),g(c.Switch,"defaultDisabledColor",C("palette-grey-600")),g(c.Switch,"primaryDisabledColor",fe(c.primary.main,.55)),g(c.Switch,"secondaryDisabledColor",fe(c.secondary.main,.55)),g(c.Switch,"errorDisabledColor",fe(c.error.main,.55)),g(c.Switch,"infoDisabledColor",fe(c.info.main,.55)),g(c.Switch,"successDisabledColor",fe(c.success.main,.55)),g(c.Switch,"warningDisabledColor",fe(c.warning.main,.55)),g(c.TableCell,"border",fe(Wt(c.divider,1),.68)),g(c.Tooltip,"bg",Wt(c.grey[700],.92))}Ge(c.background,"default"),Ge(c.background,"paper"),Ge(c.common,"background"),Ge(c.common,"onBackground"),Ge(c,"divider"),Object.keys(c).forEach($=>{const L=c[$];L&&typeof L=="object"&&(L.main&&g(c[$],"mainChannel",Ot(Mt(L.main))),L.light&&g(c[$],"lightChannel",Ot(Mt(L.light))),L.dark&&g(c[$],"darkChannel",Ot(Mt(L.dark))),L.contrastText&&g(c[$],"contrastTextChannel",Ot(Mt(L.contrastText))),$==="text"&&(Ge(c[$],"primary"),Ge(c[$],"secondary")),$==="action"&&(L.active&&Ge(c[$],"active"),L.selected&&Ge(c[$],"selected")))})}),M=n.reduce((k,c)=>$e(k,c),M);const p={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:i,getSelector:Fu(M)},{vars:W,generateThemeVars:re,generateStyleSheets:j}=cu(M,p);return M.vars=W,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([k,c])=>{M[k]=c}),M.generateThemeVars=re,M.generateStyleSheets=j,M.generateSpacing=function(){return Ma(f.spacing,Wr(this))},M.getColorSchemeSelector=uu(s),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=i,M.unstable_sxConfig={...Nt,...f==null?void 0:f.unstable_sxConfig},M.unstable_sx=function(c){return bt({sx:c,theme:this})},M.toRuntimeSource=ja,M}function Xn(t,n,e){t.colorSchemes&&e&&(t.colorSchemes[n]={...e!==!0&&e,palette:zr({...e===!0?{}:e.palette,mode:n})})}function Hu(t={},...n){const{palette:e,cssVariables:r=!1,colorSchemes:a=e?void 0:{light:!0},defaultColorScheme:o=e==null?void 0:e.mode,...i}=t,s=o||"light",l=a==null?void 0:a[s],f={...a,...e?{[s]:{...typeof l!="boolean"&&l,palette:e}}:void 0};if(r===!1){if(!("colorSchemes"in t))return Ar(t,...n);let h=e;"palette"in t||f[s]&&(f[s]!==!0?h=f[s].palette:s==="dark"&&(h={mode:"dark"}));const d=Ar({...t,palette:h},...n);return d.defaultColorScheme=s,d.colorSchemes=f,d.palette.mode==="light"&&(d.colorSchemes.light={...f.light!==!0&&f.light,palette:d.palette},Xn(d,"dark",f.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:d.palette},Xn(d,"light",f.light)),d}return!e&&!("light"in f)&&s==="light"&&(f.light=!0),Wu({...i,colorSchemes:f,defaultColorScheme:s,...typeof r!="boolean"&&r},...n)}const Vu=Hu(),Bu="$$material";function qu(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const zu=t=>qu(t)&&t!=="classes",Na=z0({themeId:Bu,defaultTheme:Vu,rootShouldForwardProp:zu});function Gu(){return M0}const La=au;process.env.NODE_ENV!=="production"&&(F.node,F.object.isRequired);function Ya(t){return nu(t)}function Uu(t){return Zt("MuiSvgIcon",t)}xa("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Qu=t=>{const{color:n,fontSize:e,classes:r}=t,a={root:["root",n!=="inherit"&&`color${qe(n)}`,`fontSize${qe(e)}`]};return Ca(a,Uu,r)},Xu=Na("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.color!=="inherit"&&n[`color${qe(e.color)}`],n[`fontSize${qe(e.fontSize)}`]]}})(La(({theme:t})=>{var n,e,r,a,o,i,s,l,f,h,d,m,x,E;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(n=t.transitions)==null?void 0:n.create)==null?void 0:a.call(n,"fill",{duration:(r=(e=(t.vars??t).transitions)==null?void 0:e.duration)==null?void 0:r.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(o=t.typography)==null?void 0:o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=t.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(f=t.typography)==null?void 0:f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,w])=>w&&w.main).map(([w])=>{var y,O;return{props:{color:w},style:{color:(O=(y=(t.vars??t).palette)==null?void 0:y[w])==null?void 0:O.main}}}),{props:{color:"action"},style:{color:(m=(d=(t.vars??t).palette)==null?void 0:d.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(E=(x=(t.vars??t).palette)==null?void 0:x.action)==null?void 0:E.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),At=ot.forwardRef(function(n,e){const r=Ya({props:n,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:d,viewBox:m="0 0 24 24",...x}=r,E=ot.isValidElement(a)&&a.type==="svg",w={...r,color:i,component:s,fontSize:l,instanceFontSize:n.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:E},y={};h||(y.viewBox=m);const O=Qu(w);return b.jsxs(Xu,{as:s,className:Ea(O.root,o),focusable:"false",color:f,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:e,...y,...x,...E&&a.props,ownerState:w,children:[E?a.props.children:a,d?b.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(At.propTypes={children:F.node,classes:F.object,className:F.string,color:F.oneOfType([F.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),F.string]),component:F.elementType,fontSize:F.oneOfType([F.oneOf(["inherit","large","medium","small"]),F.string]),htmlColor:F.string,inheritViewBox:F.bool,shapeRendering:F.string,sx:F.oneOfType([F.arrayOf(F.oneOfType([F.func,F.object,F.bool])),F.func,F.object]),titleAccess:F.string,viewBox:F.string});At&&(At.muiName="SvgIcon");function Zu(t,n){function e(r,a){return b.jsx(At,{"data-testid":`${n}Icon`,ref:a,...r,children:t})}return process.env.NODE_ENV!=="production"&&(e.displayName=`${n}Icon`),e.muiName=At.muiName,ot.memo(ot.forwardRef(e))}const Wa=Zu(b.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"}),"CloseOutlined");function Ku(){return b.jsxs(ee.SvgIcon,{viewBox:"0 0 16 16","aria-hidden":"true",height:"16",width:"16",style:{width:16,height:16},children:[b.jsx("path",{fill:"#1E365E",d:"M0 0h16v16H0z"}),b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.118 7.71l-4.43-.5 1.306-3.147 4.444 2.098-.785 5.245-.535-3.696zM6.421 8l.262-.781 2.098.52-.786 1.824-5.245 2.343L6.421 8z",fill:"#F69139"})]})}function Ju(){return b.jsx(ee.SvgIcon,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 20 20",style:{width:56,height:56},children:b.jsxs("g",{fill:"#FFBF00",fillRule:"evenodd",transform:"translate(1 1)",children:[b.jsx("path",{d:"m9.5.5 9 16h-18z",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("path",{d:"m9.5 10.5v-5",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("circle",{cx:"9.5",cy:"13.5",fill:"#000000",r:"1"})]})})}const Ha=({actions:t,children:n,closeIcon:e,hideOverflow:r,isOpen:a,key:o,maxWidth:i,minWidth:s,onClose:l,showWarningIcon:f,title:h})=>b.jsx(b.Fragment,{children:b.jsxs(ee.Dialog,{open:a,maxWidth:i||"xl",children:[b.jsxs(ee.DialogContent,{sx:r?{padding:0,minWidth:s||400,overflowY:"hidden"}:{padding:0,minWidth:s||400},children:[b.jsx(ee.DialogTitle,{style:{backgroundColor:"#f0f1f2",padding:0},children:b.jsxs("div",{style:{alignItems:"center",display:"flex",minHeight:28,paddingLeft:8,verticalAlign:"center"},children:[b.jsx(Ku,{}),b.jsx("div",{style:{flex:1,paddingLeft:5},children:b.jsx(ee.Typography,{variant:"body1",children:h})}),b.jsx("div",{children:e&&b.jsx(ee.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,":hover":{backgroundColor:"#c42b1c",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{l&&l()},children:b.jsx(Wa,{style:{height:20}})})})]})}),b.jsxs("div",{style:{display:"flex",minHeight:120},children:[!!f&&b.jsx("div",{style:{marginLeft:15,marginTop:"auto",marginBottom:"auto"},children:b.jsx(Ju,{})}),b.jsx("div",{style:{flex:1,marginTop:"auto",marginBottom:"auto",marginLeft:15,marginRight:15},children:n})]})]}),t&&b.jsx(ee.DialogActions,{style:{borderTop:"1px solid rgba(224, 224, 224, 1)",backgroundColor:"rgb(241, 243, 249)"},children:t})]},o)}),el=({disabled:t,fullWidth:n,isUTC:e,startOfDate:r,endOfDate:a,dateOnly:o,onUpdate:i,additionalActions:s,size:l,validate30Days:f,validate:h,value:d,locale:m})=>{var j;const[x,E]=We.useState(null),[w,y]=We.useState(null),[O,_]=We.useState(null),[S,M]=We.useState(null),[p,W]=We.useState(!1),re=m?m.formatLong.date({width:"short"}).toLowerCase().replaceAll("m","M"):st;return We.useEffect(()=>{y(d&&new Date(d)),_(d&&ue.format(new Date(d),re)),d||(_(null),i(null))},[d]),b.jsxs(b.Fragment,{children:[b.jsx(ee.TextField,{onChange:k=>{const c=k.target.value;(/^[0-9/]+$/.test(c)||c===""||c.length<2)&&c.split("/").length<=3&&_(c)},placeholder:m?m.formatLong.date({width:"short"}).toLowerCase():void 0,onKeyDown:k=>{k.code==="Backspace"&&O&&O[(O==null?void 0:O.length)-1]==="/"&&_(k.target.value.substring(0,k.target.value.length-1))},onKeyUp:k=>{const c=k.target.value,C=/^(?!.*\/\/)[0-9/]+$/;let $=c.replace("-","/");const L=$.length;k.code==="Backspace"||k.code==="Delete"||k.code==="Slash"&&$.split("/").length<3||C.test($)&&(L===2&&!$.includes("/")&&($=$+"/"),L>4&&$.split("/")[1].length===2&&$.split("/").length<3&&($=$+"/"),_($))},onBlur:k=>{const c=k.target.value;if(c!==d){const C=ga(c,cc,!0);if(d&&C&&f&&ue.differenceInDays(new Date(C),new Date)>30&&JSON.stringify(at(C?new Date(C):null,r,a,e,o))!==JSON.stringify(at(w?new Date(w):null,r,a,e,o))&&M({keepButton:!0,message:"Selected date is in the future.",originalValue:d}),h){const $=h(C||null);$&&M($)}y(C&&new Date(C)),_(C&&ue.format(new Date(C),re)),i(at(C?new Date(C):null,r,a,e,o))}},value:O||"",disabled:t,sx:{width:n?"100%":129},size:l||"small",slotProps:{input:{endAdornment:b.jsx(ee.IconButton,{sx:{borderRadius:0,padding:"2px",backgroundColor:t?"#f3f3f3 !important":"inherit",":hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},onClick:k=>{E(k.currentTarget),W(!0)},disabled:t,disableFocusRipple:!0,disableRipple:!0,children:b.jsx(gc,{})})}}}),b.jsx(ee.Popper,{open:p,sx:{zIndex:1500},anchorEl:x,children:b.jsx(ee.ClickAwayListener,{onClickAway:()=>{W(!1)},children:b.jsx(ee.Paper,{children:b.jsxs("div",{className:"displayFlex",style:{flexDirection:"column",alignItems:"center"},children:[b.jsx(on.LocalizationProvider,{dateAdapter:Gs,adapterLocale:m,children:b.jsx(on.DateCalendar,{value:w?new Date(w):null,onChange:(k,c)=>{c!=="partial"&&W(!1),W(!1),d&&f&&ue.differenceInDays(new Date(k),new Date)>30&&M({keepButton:!0,message:"Selected date is in the future.",originalValue:d});const C=k||null;if(h){const $=h(C);$&&M($)}y(d),_(C&&ue.format(new Date(C),re)),i(at(C?new Date(C):null,r,a,e,o))},views:["year","month","day"]})}),((s==null?void 0:s.showToday)||(s==null?void 0:s.customActions)||(s==null?void 0:s.showClear))&&b.jsxs("div",{className:"displayFlex",style:{paddingBottom:10},children:[(s==null?void 0:s.showToday)&&b.jsx(Ue,{onClick:()=>{const k=new Date;y(k),i(at(k?new Date(k):null,r,a,e,o)),W(!1)},primary:!0,size:"small",children:"Today"}),(s==null?void 0:s.customActions)&&((j=s==null?void 0:s.customActions)==null?void 0:j.map(k=>b.jsx("div",{style:{paddingLeft:5},children:b.jsx(Ue,{onClick:()=>{y(k.value),i(at(k.value?new Date(k.value):null,r,a,e,o)),W(!1)},primary:!0,size:"small",children:k.label})}))),(s==null?void 0:s.showClear)&&b.jsx("div",{style:{paddingLeft:5},children:b.jsx(Ue,{onClick:()=>{y(null),_(""),W(!1),i(null),W(!1)},primary:!0,size:"small",children:"Clear"})})]})]})})})}),b.jsx(Ha,{actions:b.jsxs(b.Fragment,{children:[(S==null?void 0:S.keepButton)&&b.jsx("div",{style:{marginRight:5},children:b.jsx(Ue,{onClick:()=>{M(null)},primary:!0,children:"Keep Value"})}),b.jsx(Ue,{variant:"outlined",onClick:()=>{const k=S==null?void 0:S.originalValue;i(k||null),y(k),M(null)},children:"Revert"})]}),isOpen:!!S,onClose:()=>M(null),showWarningIcon:!0,title:"Warning",children:b.jsx(ee.Typography,{children:S==null?void 0:S.message})})]})},tl=({gray:t})=>b.jsx(ee.SvgIcon,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:16,height:16},children:b.jsx("path",{d:"M12.5 4.50049H13C13 4.36788 12.9473 4.2407 12.8536 4.14693C12.7598 4.05317 12.6326 4.00049 12.5 4.00049V4.50049ZM3.5 4.50049V4.00049C3.22386 4.00049 3 4.22435 3 4.50049H3.5ZM6 13.0005C6 13.2766 6.22386 13.5005 6.5 13.5005C6.77614 13.5005 7 13.2766 7 13.0005H6ZM7 6.50049C7 6.22435 6.77614 6.00049 6.5 6.00049C6.22386 6.00049 6 6.22435 6 6.50049H7ZM9 13.0005C9 13.2766 9.22386 13.5005 9.5 13.5005C9.77614 13.5005 10 13.2766 10 13.0005H9ZM10 6.50049C10 6.22435 9.77614 6.00049 9.5 6.00049C9.22386 6.00049 9 6.22435 9 6.50049H10ZM2.5 4.50049H2C2 4.77663 2.22386 5.00049 2.5 5.00049V4.50049ZM13.5 4.50049V5.00049C13.7761 5.00049 14 4.77663 14 4.50049H13.5ZM12.5 2.50049V3.00049V2.50049ZM10.5 2.50049H10C10 2.77663 10.2239 3.00049 10.5 3.00049V2.50049ZM10.5 1.50049H11C11 1.36788 10.9473 1.2407 10.8536 1.14693C10.7598 1.05317 10.6326 1.00049 10.5 1.00049V1.50049ZM5.5 1.50049V1.00049C5.36739 1.00049 5.24021 1.05317 5.14645 1.14693C5.05268 1.2407 5 1.36788 5 1.50049L5.5 1.50049ZM5.5 2.50049V3.00049C5.77614 3.00049 6 2.77663 6 2.50049H5.5ZM3.5 2.50049V2.00049V2.50049ZM3 14.0005C3 14.5776 3.14461 15.1022 3.52145 15.479C3.89829 15.8559 4.42293 16.0005 5 16.0005V15.0005C4.57707 15.0005 4.35171 14.8951 4.22855 14.7719C4.10539 14.6488 4 14.4234 4 14.0005H3ZM5 16.0005H11V15.0005H5V16.0005ZM11 16.0005C11.5771 16.0005 12.1017 15.8559 12.4786 15.479C12.8554 15.1022 13 14.5776 13 14.0005H12C12 14.4234 11.8946 14.6488 11.7714 14.7719C11.6483 14.8951 11.4229 15.0005 11 15.0005V16.0005ZM13 14.0005V4.50049H12V14.0005H13ZM12.5 4.00049H3.5V5.00049H12.5V4.00049ZM3 4.50049V14.0005H4V4.50049H3ZM7 13.0005V6.50049H6V13.0005H7ZM10 13.0005V6.50049H9V13.0005H10ZM2.5 5.00049H13.5V4.00049H2.5V5.00049ZM14 4.50049V3.50049H13V4.50049H14ZM14 3.50049C14 3.08787 13.7987 2.71711 13.5411 2.45943C13.2834 2.20176 12.9126 2.00049 12.5 2.00049V3.00049C12.5874 3.00049 12.7166 3.04921 12.8339 3.16654C12.9513 3.28387 13 3.4131 13 3.50049H14ZM12.5 2.00049H10.5V3.00049H12.5V2.00049ZM11 2.50049V1.50049H10V2.50049H11ZM10.5 1.00049C10.2504 1.00049 8.99962 1.00049 7.8125 1.00049C7.20169 1.00049 6.65769 1.00049 6.21094 1.00049C5.99055 1.00049 5.8239 1.00049 5.69434 1.00049C5.63539 1.00049 5.58067 1.00049 5.55066 1.00049C5.54963 1.00049 5.54861 1.00049 5.5476 1.00049C5.5466 1.00049 5.54561 1.00049 5.54464 1.00049C5.54367 1.00049 5.54271 1.00049 5.54177 1.00049C5.54082 1.00049 5.5399 1.00049 5.53898 1.00049C5.53807 1.00049 5.53718 1.00049 5.5363 1.00049C5.53541 1.00049 5.53455 1.00049 5.5337 1.00049C5.53285 1.00049 5.53202 1.00049 5.5312 1.00049C5.53038 1.00049 5.52958 1.00049 5.52879 1.00049C5.528 1.00049 5.52723 1.00049 5.52647 1.00049C5.52572 1.00049 5.52498 1.00049 5.52425 1.00049C5.52353 1.00049 5.52282 1.00049 5.52212 1.00049C5.52143 1.00049 5.52075 1.00049 5.52009 1.00049C5.51943 1.00049 5.51879 1.00049 5.51816 1.00049C5.51753 1.00049 5.51691 1.00049 5.51632 1.00049C5.51572 1.00049 5.51514 1.00049 5.51457 1.00049C5.51401 1.00049 5.51346 1.00049 5.51292 1.00049C5.51239 1.00049 5.51187 1.00049 5.51137 1.00049C5.51087 1.00049 5.51039 1.00049 5.50992 1.00049C5.50945 1.00049 5.509 1.00049 5.50856 1.00049C5.50813 1.00049 5.50771 1.00049 5.50731 1.00049C5.5069 1.00049 5.50652 1.00049 5.50615 1.00049C5.50578 1.00049 5.50542 1.00049 5.50509 1.00049C5.50475 1.00049 5.50443 1.00049 5.50413 1.00049C5.50382 1.00049 5.50353 1.00049 5.50326 1.00049C5.50299 1.00049 5.50274 1.00049 5.5025 1.00049C5.50226 1.00049 5.50204 1.00049 5.50184 1.00049C5.50164 1.00049 5.50145 1.00049 5.50128 1.00049C5.50111 1.00049 5.50096 1.00049 5.50082 1.00049C5.50068 1.00049 5.50056 1.00049 5.50046 1.00049C5.50036 1.00049 5.50027 1.00049 5.50021 1.00049C5.50014 1.00049 5.50009 1.00049 5.50005 1.00049C5.50002 1.00049 5.5 1.00049 5.5 1.50049C5.5 2.00049 5.50002 2.00049 5.50005 2.00049C5.50009 2.00049 5.50014 2.00049 5.50021 2.00049C5.50027 2.00049 5.50036 2.00049 5.50046 2.00049C5.50056 2.00049 5.50068 2.00049 5.50082 2.00049C5.50096 2.00049 5.50111 2.00049 5.50128 2.00049C5.50145 2.00049 5.50164 2.00049 5.50184 2.00049C5.50204 2.00049 5.50226 2.00049 5.5025 2.00049C5.50274 2.00049 5.50299 2.00049 5.50326 2.00049C5.50353 2.00049 5.50382 2.00049 5.50413 2.00049C5.50443 2.00049 5.50475 2.00049 5.50509 2.00049C5.50542 2.00049 5.50578 2.00049 5.50615 2.00049C5.50652 2.00049 5.5069 2.00049 5.50731 2.00049C5.50771 2.00049 5.50813 2.00049 5.50856 2.00049C5.509 2.00049 5.50945 2.00049 5.50992 2.00049C5.51039 2.00049 5.51087 2.00049 5.51137 2.00049C5.51187 2.00049 5.51239 2.00049 5.51292 2.00049C5.51346 2.00049 5.51401 2.00049 5.51457 2.00049C5.51514 2.00049 5.51572 2.00049 5.51632 2.00049C5.51691 2.00049 5.51753 2.00049 5.51816 2.00049C5.51879 2.00049 5.51943 2.00049 5.52009 2.00049C5.52075 2.00049 5.52143 2.00049 5.52212 2.00049C5.52282 2.00049 5.52353 2.00049 5.52425 2.00049C5.52498 2.00049 5.52572 2.00049 5.52647 2.00049C5.52723 2.00049 5.528 2.00049 5.52879 2.00049C5.52958 2.00049 5.53038 2.00049 5.5312 2.00049C5.53202 2.00049 5.53285 2.00049 5.5337 2.00049C5.53455 2.00049 5.53541 2.00049 5.5363 2.00049C5.53718 2.00049 5.53807 2.00049 5.53898 2.00049C5.5399 2.00049 5.54082 2.00049 5.54177 2.00049C5.54271 2.00049 5.54367 2.00049 5.54464 2.00049C5.54561 2.00049 5.5466 2.00049 5.5476 2.00049C5.54861 2.00049 5.54963 2.00049 5.55066 2.00049C5.55169 2.00049 5.55274 2.00049 5.55381 2.00049C5.55487 2.00049 5.55595 2.00049 5.55704 2.00049C5.55814 2.00049 5.55925 2.00049 5.56037 2.00049C5.56149 2.00049 5.56263 2.00049 5.56379 2.00049C5.56494 2.00049 5.56611 2.00049 5.56729 2.00049C5.56848 2.00049 5.56968 2.00049 5.57089 2.00049C5.5721 2.00049 5.57333 2.00049 5.57457 2.00049C5.57581 2.00049 5.57707 2.00049 5.57834 2.00049C5.57962 2.00049 5.5809 2.00049 5.5822 2.00049C5.58351 2.00049 5.58482 2.00049 5.58615 2.00049C5.58748 2.00049 5.58883 2.00049 5.59019 2.00049C5.59154 2.00049 5.59292 2.00049 5.59431 2.00049C5.59569 2.00049 5.5971 2.00049 5.59851 2.00049C5.59993 2.00049 5.60136 2.00049 5.60281 2.00049C5.60425 2.00049 5.60571 2.00049 5.60718 2.00049C5.60866 2.00049 5.61015 2.00049 5.61165 2.00049C5.61315 2.00049 5.61467 2.00049 5.6162 2.00049C5.61773 2.00049 5.61927 2.00049 5.62083 2.00049C5.62239 2.00049 5.62396 2.00049 5.62555 2.00049C5.62713 2.00049 5.62873 2.00049 5.63035 2.00049C5.66909 2.00049 5.60134 2.00049 5.6402 2.00049C5.64187 2.00049 5.64355 2.00049 5.64525 2.00049C5.64694 2.00049 5.64865 2.00049 5.65038 2.00049C5.6521 2.00049 5.65384 2.00049 5.65559 2.00049C5.65734 2.00049 5.65911 2.00049 5.66088 2.00049C5.66266 2.00049 5.66445 2.00049 5.66626 2.00049C5.66806 2.00049 5.66988 2.00049 5.67172 2.00049C5.70741 2.00049 5.64707 2.00049 5.68287 2.00049C5.68475 2.00049 5.68665 2.00049 5.68856 2.00049C5.69047 2.00049 5.6924 2.00049 5.69434 2.00049C5.72856 2.00049 5.67179 2.00049 5.70612 2.00049C5.70811 2.00049 5.71011 2.00049 5.71213 2.00049C5.71414 2.00049 5.71617 2.00049 5.71822 2.00049C5.75101 2.00049 5.69772 2.00049 5.73062 2.00049C5.73271 2.00049 5.73482 2.00049 5.73694 2.00049C5.73906 2.00049 5.74119 2.00049 5.74333 2.00049C5.77473 2.00049 5.72484 2.00049 5.75634 2.00049C5.75854 2.00049 5.76074 2.00049 5.76296 2.00049C5.76518 2.00049 5.76741 2.00049 5.76965 2.00049C5.79971 2.00049 5.75311 2.00049 5.78326 2.00049C5.78556 2.00049 5.78786 2.00049 5.79018 2.00049C5.79249 2.00049 5.79482 2.00049 5.79716 2.00049C5.8259 2.00049 5.78252 2.00049 5.81136 2.00049C5.83945 2.00049 5.79765 2.00049 5.82584 2.00049C5.8533 2.00049 5.81305 2.00049 5.8406 2.00049C5.84309 2.00049 5.84558 2.00049 5.84809 2.00049C5.8506 2.00049 5.85312 2.00049 5.85565 2.00049C5.88186 2.00049 5.84466 2.00049 5.87097 2.00049C5.89658 2.00049 5.86087 2.00049 5.88657 2.00049C5.9359 2.00049 5.86888 2.00049 5.91858 2.00049C5.92129 2.00049 5.92401 2.00049 5.92675 2.00049C5.92948 2.00049 5.93223 2.00049 5.93499 2.00049C5.95825 2.00049 5.9283 2.00049 5.95165 2.00049C5.99642 2.00049 5.94067 2.00049 5.98577 2.00049C6.02835 2.00049 5.97799 2.00049 6.0209 2.00049C6.06136 2.00049 6.01624 2.00049 6.05702 2.00049C6.09543 2.00049 6.05538 2.00049 6.09411 2.00049C6.11261 2.00049 6.09444 2.00049 6.11301 2.00049C6.11618 2.00049 6.11936 2.00049 6.12255 2.00049C6.12574 2.00049 6.12894 2.00049 6.13214 2.00049C6.16665 2.00049 6.13629 2.00049 6.17109 2.00049C6.20374 2.00049 6.17799 2.00049 6.21094 2.00049C6.61345 2.00049 7.24592 2.00049 7.8125 2.00049C9.00015 2.00049 10.2498 2.00049 10.5 2.00049V1.00049ZM5.5 1.50049C5 1.50049 5 1.50049 5 1.50049C5 1.5005 5 1.5005 5 1.50051C5 1.50052 5 1.50053 5 1.50054C5 1.50055 5 1.50056 5 1.50058C5 1.50059 5 1.50061 5 1.50063C5 1.50065 5 1.50067 5 1.50069C5 1.50072 5 1.50074 5 1.50077C5 1.50079 5 1.50082 5 1.50085C5 1.50088 5 1.50092 5 1.50095C5 1.50098 5 1.50102 5 1.50106C5 1.50109 5 1.50113 5 1.50118C5 1.50122 5 1.50126 5 1.50131C5 1.50135 5 1.5014 5 1.50145C5 1.5015 5 1.50155 5 1.5016C5 1.50165 5 1.50171 5 1.50176C5 1.50182 5 1.50188 5 1.50194C5 1.5045 5 1.50273 5 1.50623C5 1.51001 5 1.51562 5 1.52295C5 1.54541 5 1.55127 5 1.58643C5 1.64795 5 1.7124 5 1.81299C5 2.00049 5 2.25049 5 2.50049H6C6 2.25049 6 2.00049 6 1.81299C6 1.7124 6 1.64795 6 1.58643C6 1.55127 6 1.54541 6 1.52295C6 1.50361 6 1.53173 6 1.51326C6 1.5114 6 1.51104 6 1.50941C6 1.50628 6 1.50913 6 1.50623C6 1.50273 6 1.5045 6 1.50194C6 1.50188 6 1.50182 6 1.50176C6 1.50171 6 1.50165 6 1.5016C6 1.50155 6 1.5015 6 1.50145C6 1.5014 6 1.50135 6 1.50131C6 1.50126 6 1.50122 6 1.50118C6 1.50113 6 1.50109 6 1.50106C6 1.50102 6 1.50098 6 1.50095C6 1.50092 6 1.50088 6 1.50085C6 1.50082 6 1.50079 6 1.50077C6 1.50074 6 1.50072 6 1.50069C6 1.50067 6 1.50065 6 1.50063C6 1.50061 6 1.50059 6 1.50058C6 1.50056 6 1.50055 6 1.50054C6 1.50053 6 1.50052 6 1.50051C6 1.5005 6 1.5005 6 1.50049C6 1.50049 6 1.50049 5.5 1.50049ZM5.5 2.00049H3.5V3.00049H5.5V2.00049ZM3.5 2.00049C3.08738 2.00049 2.71662 2.20176 2.45895 2.45943C2.20127 2.71711 2 3.08787 2 3.50049H3C3 3.4131 3.04873 3.28387 3.16605 3.16654C3.28338 3.04921 3.41262 3.00049 3.5 3.00049V2.00049ZM2 3.50049V4.50049H3V3.50049H2Z",fill:t?"rgba(0, 0, 0, 0.5)":"#ffffff"})}),rl=({children:t,closeIcon:n,fullWidth:e,hideOverflow:r,isOpen:a,maxWidth:o,minWidth:i,onDelete:s,onClose:l,actions:f,leftHeaderActions:h,title:d})=>b.jsx(b.Fragment,{children:b.jsxs(ee.Dialog,{fullWidth:e||!1,maxWidth:o||"xl",open:a,children:[b.jsxs(ee.DialogContent,{sx:r?{padding:0,minWidth:i||400,overflowY:"hidden"}:{padding:0,minWidth:i||400},children:[b.jsx("div",{style:{width:"100%",backgroundColor:"#6e7780"},children:b.jsxs("div",{className:"displayFlex",style:{alignItems:"center",minHeight:28},children:[s&&b.jsx(ee.Tooltip,{title:"Delete",children:b.jsx(ee.IconButton,{"aria-label":"delete",onClick:s,sx:{borderRadius:0,color:"#ffffff",padding:"9px 8px"},children:b.jsx(tl,{})})}),h,b.jsx("div",{className:"flex1",style:{paddingLeft:5},children:b.jsx(ee.Typography,{variant:"body1",textAlign:"center",style:{color:"#ffffff"},children:d})}),b.jsx("div",{children:n&&b.jsx(ee.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,padding:"7px 6px",":hover":{backgroundColor:"#c42b1c",color:"#ffffff",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{l&&l()},children:b.jsx(Wa,{style:{color:"#ffffff",height:20}})})})]})}),b.jsx("div",{className:"displayFlex",style:{alignItems:"baseline",minHeight:120},children:b.jsx("div",{className:"flex1 formBody",children:t})})]}),b.jsx(ee.DialogActions,{children:f})]})}),nl=({leftComponents:t,rightComponents:n,onCancel:e,onClose:r,onOK:a,onSaveDisable:o})=>b.jsxs(b.Fragment,{children:[t&&b.jsx(b.Fragment,{children:t}),b.jsx("div",{className:"flex1"}),n&&b.jsx(b.Fragment,{children:n}),e&&b.jsx(Ue,{onClick:e,primary:!1,size:"small",children:"Cancel"}),a&&b.jsx("div",{style:{marginRight:5},children:b.jsx(Ue,{disabled:o||!1,onClick:a,primary:!0,size:"small",children:"OK"})}),r&&b.jsx(Ue,{variant:"outlined",onClick:r,size:"small",children:"Close"})]}),al=({overlay:t})=>b.jsx(b.Fragment,{children:b.jsx(ee.Backdrop,{open:!0,invisible:!t,style:{zIndex:1350},children:b.jsx(ee.CircularProgress,{style:{position:"absolute",left:"calc(50vw - 20px)",top:"calc(50vh - 20px)"}})})}),Va=We.forwardRef((t,n)=>{const{onChange:e,...r}=t;return b.jsx(Kn.NumericFormat,{...r,getInputRef:n,onValueChange:a=>{e({target:{name:t.name,value:a.value}})},allowNegative:!1})});Va.displayName="LCTNumberInputNumericFormat";const ol=({autoFocus:t,disabled:n,placeholder:e,size:r,updater:a,value:o,width:i,...s})=>b.jsx(b.Fragment,{children:b.jsx(ee.OutlinedInput,{autoFocus:t,disabled:n,inputComponent:Va,onBlur:l=>{a&&a(l.target.value)},placeholder:e,size:r||"small",sx:{width:i||130,"& .MuiInputBase-input":{textAlign:"end"},"& .MuiOutlinedInput-notchedOutline ":{border:"1px solid rgba(0, 0, 0, 0.23)"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline ":{border:"1px solid rgba(0, 0, 0, 0.23)"}},value:o,...s})}),il=({autoComplete:t,disabled:n,fullWidth:e,id:r,items:a,onUpdate:o,size:i,value:s,...l})=>{if(t)console.log("autoComplete");else return b.jsx(ee.Select,{disabled:n,fullWidth:e,onChange:f=>{s=f.target.value,o(s)},size:i||"small",value:a?s:"",...l,children:a.map((f,h)=>b.jsx(ee.MenuItem,{value:f.value,children:f.name},`${r}-${h}`))})};function sl(t){return typeof t.main=="string"}function cl(t,n=[]){if(!sl(t))return!1;for(const e of n)if(!t.hasOwnProperty(e)||typeof t[e]!="string")return!1;return!0}function ul(t=[]){return([,n])=>n&&cl(n,t)}function ll(t){return Zt("MuiTypography",t)}xa("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const fl={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},dl=Gu(),hl=t=>{const{align:n,gutterBottom:e,noWrap:r,paragraph:a,variant:o,classes:i}=t,s={root:["root",o,t.align!=="inherit"&&`align${qe(n)}`,e&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return Ca(s,ll,i)},ml=Na("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.variant&&n[e.variant],e.align!=="inherit"&&n[`align${qe(e.align)}`],e.noWrap&&n.noWrap,e.gutterBottom&&n.gutterBottom,e.paragraph&&n.paragraph]}})(La(({theme:t})=>{var n;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([e,r])=>e!=="inherit"&&r&&typeof r=="object").map(([e,r])=>({props:{variant:e},style:r})),...Object.entries(t.palette).filter(ul()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(((n=t.palette)==null?void 0:n.text)||{}).filter(([,e])=>typeof e=="string").map(([e])=>({props:{color:`text${qe(e)}`},style:{color:(t.vars||t).palette.text[e]}})),{props:({ownerState:e})=>e.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}})),Zn={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ba=ot.forwardRef(function(n,e){const{color:r,...a}=Ya({props:n,name:"MuiTypography"}),o=!fl[r],i=dl({...a,...o&&{color:r}}),{align:s="inherit",className:l,component:f,gutterBottom:h=!1,noWrap:d=!1,paragraph:m=!1,variant:x="body1",variantMapping:E=Zn,...w}=i,y={...i,align:s,color:r,className:l,component:f,gutterBottom:h,noWrap:d,paragraph:m,variant:x,variantMapping:E},O=f||(m?"p":E[x]||Zn[x])||"span",_=hl(y);return b.jsx(ml,{as:O,ref:e,className:Ea(_.root,l),...w,ownerState:y,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...w.style}})});process.env.NODE_ENV!=="production"&&(Ba.propTypes={align:F.oneOf(["center","inherit","justify","left","right"]),children:F.node,classes:F.object,className:F.string,color:F.oneOfType([F.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),F.string]),component:F.elementType,gutterBottom:F.bool,noWrap:F.bool,paragraph:F.bool,style:F.object,sx:F.oneOfType([F.arrayOf(F.oneOfType([F.func,F.object,F.bool])),F.func,F.object]),variant:F.oneOfType([F.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),F.string]),variantMapping:F.object});const yl=({children:t,variant:n="body1"})=>b.jsx(Ba,{variant:n,children:t});exports.LCTAppBar=xo;exports.LCTButton=Ue;exports.LCTCurrencyInput=To;exports.LCTDatePicker=el;exports.LCTDialog=Ha;exports.LCTFooter=nl;exports.LCTFormDialog=rl;exports.LCTLoader=al;exports.LCTNumberInput=ol;exports.LCTSelect=il;exports.LCTTypography=yl;exports.lctFormatDate=at;exports.lctGetLocalDisplayFormattedDate=mc;exports.lctGetLocalDisplayFormattedDateTime=yc;exports.lctGetLocale=hc;exports.lctParseDate=ga;
|
|
105
|
+
To suppress this warning, you need to explicitly provide the \`palette.${n}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Lu(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Ye=t=>{try{return t()}catch{}},Yu=(t="mui")=>ou(t);function Or(t,n,e,r){if(!n)return;n=n===!0?{}:n;const a=r==="dark"?"dark":"light";if(!e){t[r]=Au({...n,palette:{mode:a,...n==null?void 0:n.palette}});return}const{palette:o,...i}=Ar({...e,palette:{mode:a,...n==null?void 0:n.palette}});return t[r]={...n,palette:o,opacity:{...Ia(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Fa(a)},i}function Wu(t={},...n){const{colorSchemes:e={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:i=ju,colorSchemeSelector:s=e.light&&e.dark?"media":void 0,rootSelector:l=":root",...f}=t,h=Object.keys(e)[0],d=r||(e.light&&h!=="light"?"light":h),m=Yu(o),{[d]:x,light:E,dark:w,...y}=e,O={...y};let _=x;if((d==="dark"&&!("dark"in e)||d==="light"&&!("light"in e))&&(_=!0),!_)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:Je(21,d));const S=Or(O,_,f,d);E&&!O.light&&Or(O,E,void 0,"light"),w&&!O.dark&&Or(O,w,void 0,"dark");let M={defaultColorScheme:d,...S,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:m,colorSchemes:O,font:{...bu(S.typography),...S.font},spacing:Lu(f.spacing)};Object.keys(M.colorSchemes).forEach(k=>{const c=M.colorSchemes[k].palette,C=$=>{const L=$.split("-"),Z=L[1],ge=L[2];return m($,c[Z][ge])};if(c.mode==="light"&&(g(c.common,"background","#fff"),g(c.common,"onBackground","#000")),c.mode==="dark"&&(g(c.common,"background","#000"),g(c.common,"onBackground","#fff")),Nu(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){g(c.Alert,"errorColor",fe(c.error.light,.6)),g(c.Alert,"infoColor",fe(c.info.light,.6)),g(c.Alert,"successColor",fe(c.success.light,.6)),g(c.Alert,"warningColor",fe(c.warning.light,.6)),g(c.Alert,"errorFilledBg",C("palette-error-main")),g(c.Alert,"infoFilledBg",C("palette-info-main")),g(c.Alert,"successFilledBg",C("palette-success-main")),g(c.Alert,"warningFilledBg",C("palette-warning-main")),g(c.Alert,"errorFilledColor",Ye(()=>c.getContrastText(c.error.main))),g(c.Alert,"infoFilledColor",Ye(()=>c.getContrastText(c.info.main))),g(c.Alert,"successFilledColor",Ye(()=>c.getContrastText(c.success.main))),g(c.Alert,"warningFilledColor",Ye(()=>c.getContrastText(c.warning.main))),g(c.Alert,"errorStandardBg",de(c.error.light,.9)),g(c.Alert,"infoStandardBg",de(c.info.light,.9)),g(c.Alert,"successStandardBg",de(c.success.light,.9)),g(c.Alert,"warningStandardBg",de(c.warning.light,.9)),g(c.Alert,"errorIconColor",C("palette-error-main")),g(c.Alert,"infoIconColor",C("palette-info-main")),g(c.Alert,"successIconColor",C("palette-success-main")),g(c.Alert,"warningIconColor",C("palette-warning-main")),g(c.AppBar,"defaultBg",C("palette-grey-100")),g(c.Avatar,"defaultBg",C("palette-grey-400")),g(c.Button,"inheritContainedBg",C("palette-grey-300")),g(c.Button,"inheritContainedHoverBg",C("palette-grey-A100")),g(c.Chip,"defaultBorder",C("palette-grey-400")),g(c.Chip,"defaultAvatarColor",C("palette-grey-700")),g(c.Chip,"defaultIconColor",C("palette-grey-700")),g(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),g(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),g(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),g(c.LinearProgress,"primaryBg",de(c.primary.main,.62)),g(c.LinearProgress,"secondaryBg",de(c.secondary.main,.62)),g(c.LinearProgress,"errorBg",de(c.error.main,.62)),g(c.LinearProgress,"infoBg",de(c.info.main,.62)),g(c.LinearProgress,"successBg",de(c.success.main,.62)),g(c.LinearProgress,"warningBg",de(c.warning.main,.62)),g(c.Skeleton,"bg",`rgba(${C("palette-text-primaryChannel")} / 0.11)`),g(c.Slider,"primaryTrack",de(c.primary.main,.62)),g(c.Slider,"secondaryTrack",de(c.secondary.main,.62)),g(c.Slider,"errorTrack",de(c.error.main,.62)),g(c.Slider,"infoTrack",de(c.info.main,.62)),g(c.Slider,"successTrack",de(c.success.main,.62)),g(c.Slider,"warningTrack",de(c.warning.main,.62));const $=Ht(c.background.default,.8);g(c.SnackbarContent,"bg",$),g(c.SnackbarContent,"color",Ye(()=>c.getContrastText($))),g(c.SpeedDialAction,"fabHoverBg",Ht(c.background.paper,.15)),g(c.StepConnector,"border",C("palette-grey-400")),g(c.StepContent,"border",C("palette-grey-400")),g(c.Switch,"defaultColor",C("palette-common-white")),g(c.Switch,"defaultDisabledColor",C("palette-grey-100")),g(c.Switch,"primaryDisabledColor",de(c.primary.main,.62)),g(c.Switch,"secondaryDisabledColor",de(c.secondary.main,.62)),g(c.Switch,"errorDisabledColor",de(c.error.main,.62)),g(c.Switch,"infoDisabledColor",de(c.info.main,.62)),g(c.Switch,"successDisabledColor",de(c.success.main,.62)),g(c.Switch,"warningDisabledColor",de(c.warning.main,.62)),g(c.TableCell,"border",de(Wt(c.divider,1),.88)),g(c.Tooltip,"bg",Wt(c.grey[700],.92))}if(c.mode==="dark"){g(c.Alert,"errorColor",de(c.error.light,.6)),g(c.Alert,"infoColor",de(c.info.light,.6)),g(c.Alert,"successColor",de(c.success.light,.6)),g(c.Alert,"warningColor",de(c.warning.light,.6)),g(c.Alert,"errorFilledBg",C("palette-error-dark")),g(c.Alert,"infoFilledBg",C("palette-info-dark")),g(c.Alert,"successFilledBg",C("palette-success-dark")),g(c.Alert,"warningFilledBg",C("palette-warning-dark")),g(c.Alert,"errorFilledColor",Ye(()=>c.getContrastText(c.error.dark))),g(c.Alert,"infoFilledColor",Ye(()=>c.getContrastText(c.info.dark))),g(c.Alert,"successFilledColor",Ye(()=>c.getContrastText(c.success.dark))),g(c.Alert,"warningFilledColor",Ye(()=>c.getContrastText(c.warning.dark))),g(c.Alert,"errorStandardBg",fe(c.error.light,.9)),g(c.Alert,"infoStandardBg",fe(c.info.light,.9)),g(c.Alert,"successStandardBg",fe(c.success.light,.9)),g(c.Alert,"warningStandardBg",fe(c.warning.light,.9)),g(c.Alert,"errorIconColor",C("palette-error-main")),g(c.Alert,"infoIconColor",C("palette-info-main")),g(c.Alert,"successIconColor",C("palette-success-main")),g(c.Alert,"warningIconColor",C("palette-warning-main")),g(c.AppBar,"defaultBg",C("palette-grey-900")),g(c.AppBar,"darkBg",C("palette-background-paper")),g(c.AppBar,"darkColor",C("palette-text-primary")),g(c.Avatar,"defaultBg",C("palette-grey-600")),g(c.Button,"inheritContainedBg",C("palette-grey-800")),g(c.Button,"inheritContainedHoverBg",C("palette-grey-700")),g(c.Chip,"defaultBorder",C("palette-grey-700")),g(c.Chip,"defaultAvatarColor",C("palette-grey-300")),g(c.Chip,"defaultIconColor",C("palette-grey-300")),g(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),g(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),g(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),g(c.LinearProgress,"primaryBg",fe(c.primary.main,.5)),g(c.LinearProgress,"secondaryBg",fe(c.secondary.main,.5)),g(c.LinearProgress,"errorBg",fe(c.error.main,.5)),g(c.LinearProgress,"infoBg",fe(c.info.main,.5)),g(c.LinearProgress,"successBg",fe(c.success.main,.5)),g(c.LinearProgress,"warningBg",fe(c.warning.main,.5)),g(c.Skeleton,"bg",`rgba(${C("palette-text-primaryChannel")} / 0.13)`),g(c.Slider,"primaryTrack",fe(c.primary.main,.5)),g(c.Slider,"secondaryTrack",fe(c.secondary.main,.5)),g(c.Slider,"errorTrack",fe(c.error.main,.5)),g(c.Slider,"infoTrack",fe(c.info.main,.5)),g(c.Slider,"successTrack",fe(c.success.main,.5)),g(c.Slider,"warningTrack",fe(c.warning.main,.5));const $=Ht(c.background.default,.98);g(c.SnackbarContent,"bg",$),g(c.SnackbarContent,"color",Ye(()=>c.getContrastText($))),g(c.SpeedDialAction,"fabHoverBg",Ht(c.background.paper,.15)),g(c.StepConnector,"border",C("palette-grey-600")),g(c.StepContent,"border",C("palette-grey-600")),g(c.Switch,"defaultColor",C("palette-grey-300")),g(c.Switch,"defaultDisabledColor",C("palette-grey-600")),g(c.Switch,"primaryDisabledColor",fe(c.primary.main,.55)),g(c.Switch,"secondaryDisabledColor",fe(c.secondary.main,.55)),g(c.Switch,"errorDisabledColor",fe(c.error.main,.55)),g(c.Switch,"infoDisabledColor",fe(c.info.main,.55)),g(c.Switch,"successDisabledColor",fe(c.success.main,.55)),g(c.Switch,"warningDisabledColor",fe(c.warning.main,.55)),g(c.TableCell,"border",fe(Wt(c.divider,1),.68)),g(c.Tooltip,"bg",Wt(c.grey[700],.92))}Ge(c.background,"default"),Ge(c.background,"paper"),Ge(c.common,"background"),Ge(c.common,"onBackground"),Ge(c,"divider"),Object.keys(c).forEach($=>{const L=c[$];L&&typeof L=="object"&&(L.main&&g(c[$],"mainChannel",Ot(Mt(L.main))),L.light&&g(c[$],"lightChannel",Ot(Mt(L.light))),L.dark&&g(c[$],"darkChannel",Ot(Mt(L.dark))),L.contrastText&&g(c[$],"contrastTextChannel",Ot(Mt(L.contrastText))),$==="text"&&(Ge(c[$],"primary"),Ge(c[$],"secondary")),$==="action"&&(L.active&&Ge(c[$],"active"),L.selected&&Ge(c[$],"selected")))})}),M=n.reduce((k,c)=>$e(k,c),M);const p={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:i,getSelector:Fu(M)},{vars:W,generateThemeVars:re,generateStyleSheets:j}=cu(M,p);return M.vars=W,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([k,c])=>{M[k]=c}),M.generateThemeVars=re,M.generateStyleSheets=j,M.generateSpacing=function(){return Ma(f.spacing,Wr(this))},M.getColorSchemeSelector=uu(s),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=i,M.unstable_sxConfig={...Nt,...f==null?void 0:f.unstable_sxConfig},M.unstable_sx=function(c){return bt({sx:c,theme:this})},M.toRuntimeSource=ja,M}function Xn(t,n,e){t.colorSchemes&&e&&(t.colorSchemes[n]={...e!==!0&&e,palette:zr({...e===!0?{}:e.palette,mode:n})})}function Hu(t={},...n){const{palette:e,cssVariables:r=!1,colorSchemes:a=e?void 0:{light:!0},defaultColorScheme:o=e==null?void 0:e.mode,...i}=t,s=o||"light",l=a==null?void 0:a[s],f={...a,...e?{[s]:{...typeof l!="boolean"&&l,palette:e}}:void 0};if(r===!1){if(!("colorSchemes"in t))return Ar(t,...n);let h=e;"palette"in t||f[s]&&(f[s]!==!0?h=f[s].palette:s==="dark"&&(h={mode:"dark"}));const d=Ar({...t,palette:h},...n);return d.defaultColorScheme=s,d.colorSchemes=f,d.palette.mode==="light"&&(d.colorSchemes.light={...f.light!==!0&&f.light,palette:d.palette},Xn(d,"dark",f.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:d.palette},Xn(d,"light",f.light)),d}return!e&&!("light"in f)&&s==="light"&&(f.light=!0),Wu({...i,colorSchemes:f,defaultColorScheme:s,...typeof r!="boolean"&&r},...n)}const Vu=Hu(),Bu="$$material";function qu(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const zu=t=>qu(t)&&t!=="classes",Na=z0({themeId:Bu,defaultTheme:Vu,rootShouldForwardProp:zu});function Gu(){return M0}const La=au;process.env.NODE_ENV!=="production"&&(F.node,F.object.isRequired);function Ya(t){return nu(t)}function Uu(t){return Zt("MuiSvgIcon",t)}xa("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Qu=t=>{const{color:n,fontSize:e,classes:r}=t,a={root:["root",n!=="inherit"&&`color${qe(n)}`,`fontSize${qe(e)}`]};return Ca(a,Uu,r)},Xu=Na("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.color!=="inherit"&&n[`color${qe(e.color)}`],n[`fontSize${qe(e.fontSize)}`]]}})(La(({theme:t})=>{var n,e,r,a,o,i,s,l,f,h,d,m,x,E;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(n=t.transitions)==null?void 0:n.create)==null?void 0:a.call(n,"fill",{duration:(r=(e=(t.vars??t).transitions)==null?void 0:e.duration)==null?void 0:r.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(o=t.typography)==null?void 0:o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=t.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(f=t.typography)==null?void 0:f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,w])=>w&&w.main).map(([w])=>{var y,O;return{props:{color:w},style:{color:(O=(y=(t.vars??t).palette)==null?void 0:y[w])==null?void 0:O.main}}}),{props:{color:"action"},style:{color:(m=(d=(t.vars??t).palette)==null?void 0:d.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(E=(x=(t.vars??t).palette)==null?void 0:x.action)==null?void 0:E.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),At=ot.forwardRef(function(n,e){const r=Ya({props:n,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:d,viewBox:m="0 0 24 24",...x}=r,E=ot.isValidElement(a)&&a.type==="svg",w={...r,color:i,component:s,fontSize:l,instanceFontSize:n.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:E},y={};h||(y.viewBox=m);const O=Qu(w);return b.jsxs(Xu,{as:s,className:Ea(O.root,o),focusable:"false",color:f,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:e,...y,...x,...E&&a.props,ownerState:w,children:[E?a.props.children:a,d?b.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(At.propTypes={children:F.node,classes:F.object,className:F.string,color:F.oneOfType([F.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),F.string]),component:F.elementType,fontSize:F.oneOfType([F.oneOf(["inherit","large","medium","small"]),F.string]),htmlColor:F.string,inheritViewBox:F.bool,shapeRendering:F.string,sx:F.oneOfType([F.arrayOf(F.oneOfType([F.func,F.object,F.bool])),F.func,F.object]),titleAccess:F.string,viewBox:F.string});At&&(At.muiName="SvgIcon");function Zu(t,n){function e(r,a){return b.jsx(At,{"data-testid":`${n}Icon`,ref:a,...r,children:t})}return process.env.NODE_ENV!=="production"&&(e.displayName=`${n}Icon`),e.muiName=At.muiName,ot.memo(ot.forwardRef(e))}const Wa=Zu(b.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"}),"CloseOutlined");function Ku(){return b.jsxs(ee.SvgIcon,{viewBox:"0 0 16 16","aria-hidden":"true",height:"16",width:"16",style:{width:16,height:16},children:[b.jsx("path",{fill:"#1E365E",d:"M0 0h16v16H0z"}),b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.118 7.71l-4.43-.5 1.306-3.147 4.444 2.098-.785 5.245-.535-3.696zM6.421 8l.262-.781 2.098.52-.786 1.824-5.245 2.343L6.421 8z",fill:"#F69139"})]})}function Ju(){return b.jsx(ee.SvgIcon,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 20 20",style:{width:56,height:56},children:b.jsxs("g",{fill:"#FFBF00",fillRule:"evenodd",transform:"translate(1 1)",children:[b.jsx("path",{d:"m9.5.5 9 16h-18z",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("path",{d:"m9.5 10.5v-5",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("circle",{cx:"9.5",cy:"13.5",fill:"#000000",r:"1"})]})})}const Ha=({actions:t,children:n,closeIcon:e,hideOverflow:r,isOpen:a,key:o,maxWidth:i,minWidth:s,onClose:l,showWarningIcon:f,title:h})=>b.jsx(b.Fragment,{children:b.jsxs(ee.Dialog,{open:a,maxWidth:i||"xl",children:[b.jsxs(ee.DialogContent,{sx:r?{padding:0,minWidth:s||400,overflowY:"hidden"}:{padding:0,minWidth:s||400},children:[b.jsx(ee.DialogTitle,{style:{backgroundColor:"#f0f1f2",padding:0},children:b.jsxs("div",{style:{alignItems:"center",display:"flex",minHeight:28,paddingLeft:8,verticalAlign:"center"},children:[b.jsx(Ku,{}),b.jsx("div",{style:{flex:1,paddingLeft:5},children:b.jsx(ee.Typography,{variant:"body1",children:h})}),b.jsx("div",{children:e&&b.jsx(ee.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,":hover":{backgroundColor:"#c42b1c",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{l&&l()},children:b.jsx(Wa,{style:{height:20}})})})]})}),b.jsxs("div",{style:{display:"flex",minHeight:120},children:[!!f&&b.jsx("div",{style:{marginLeft:15,marginTop:"auto",marginBottom:"auto"},children:b.jsx(Ju,{})}),b.jsx("div",{style:{flex:1,marginTop:"auto",marginBottom:"auto",marginLeft:15,marginRight:15},children:n})]})]}),t&&b.jsx(ee.DialogActions,{style:{borderTop:"1px solid rgba(224, 224, 224, 1)",backgroundColor:"rgb(241, 243, 249)"},children:t})]},o)}),el=({disabled:t,fullWidth:n,isUTC:e,startOfDate:r,endOfDate:a,dateOnly:o,onUpdate:i,additionalActions:s,size:l,validate30Days:f,validate:h,value:d,locale:m})=>{var j;const[x,E]=We.useState(null),[w,y]=We.useState(null),[O,_]=We.useState(null),[S,M]=We.useState(null),[p,W]=We.useState(!1),re=m?m.formatLong.date({width:"short"}).toLowerCase().replaceAll("m","M"):st;return We.useEffect(()=>{y(d&&new Date(d)),_(d&&ue.format(new Date(d),re)),d||(_(null),i(null))},[d]),b.jsxs(b.Fragment,{children:[b.jsx(ee.TextField,{onChange:k=>{const c=k.target.value;(/^[0-9/]+$/.test(c)||c===""||c.length<2)&&c.split("/").length<=3&&_(c)},placeholder:m?m.formatLong.date({width:"short"}).toLowerCase():void 0,onKeyDown:k=>{k.code==="Backspace"&&O&&O[(O==null?void 0:O.length)-1]==="/"&&_(k.target.value.substring(0,k.target.value.length-1))},onKeyUp:k=>{const c=k.target.value,C=/^(?!.*\/\/)[0-9/]+$/;let $=c.replace("-","/");const L=$.length;k.code==="Backspace"||k.code==="Delete"||k.code==="Slash"&&$.split("/").length<3||C.test($)&&(L===2&&!$.includes("/")&&($=$+"/"),L>4&&$.split("/")[1].length===2&&$.split("/").length<3&&($=$+"/"),_($))},onBlur:k=>{const c=k.target.value;if(c!==d){const C=ga(c,cc,!0);if(d&&C&&f&&ue.differenceInDays(new Date(C),new Date)>30&&JSON.stringify(at(C?new Date(C):null,r,a,e,o))!==JSON.stringify(at(w?new Date(w):null,r,a,e,o))&&M({keepButton:!0,message:"Selected date is in the future.",originalValue:d}),h){const $=h(C||null);$&&M($)}y(C&&new Date(C)),_(C&&ue.format(new Date(C),re)),i(at(C?new Date(C):null,r,a,e,o))}},value:O||"",disabled:t,sx:{width:n?"100%":129},size:l||"small",slotProps:{input:{endAdornment:b.jsx(ee.IconButton,{sx:{borderRadius:0,padding:"2px",backgroundColor:t?"#f3f3f3 !important":"inherit",":hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},onClick:k=>{E(k.currentTarget),W(!0)},disabled:t,disableFocusRipple:!0,disableRipple:!0,children:b.jsx(gc,{})})}}}),b.jsx(ee.Popper,{open:p,sx:{zIndex:1500},anchorEl:x,children:b.jsx(ee.ClickAwayListener,{onClickAway:()=>{W(!1)},children:b.jsx(ee.Paper,{children:b.jsxs("div",{className:"displayFlex",style:{flexDirection:"column",alignItems:"center"},children:[b.jsx(on.LocalizationProvider,{dateAdapter:Gs,adapterLocale:m,children:b.jsx(on.DateCalendar,{value:w?new Date(w):null,onChange:(k,c)=>{c!=="partial"&&W(!1),d&&f&&ue.differenceInDays(new Date(k),new Date)>30&&M({keepButton:!0,message:"Selected date is in the future.",originalValue:d});const C=k||null;if(h){const $=h(C);$&&M($)}y(d),_(C&&ue.format(new Date(C),re)),i(at(C?new Date(C):null,r,a,e,o))},views:["year","month","day"]})}),((s==null?void 0:s.showToday)||(s==null?void 0:s.customActions)||(s==null?void 0:s.showClear))&&b.jsxs("div",{className:"displayFlex",style:{paddingBottom:10},children:[(s==null?void 0:s.showToday)&&b.jsx(Ue,{onClick:()=>{const k=new Date;y(k),i(at(k?new Date(k):null,r,a,e,o)),W(!1)},primary:!0,size:"small",children:"Today"}),(s==null?void 0:s.customActions)&&((j=s==null?void 0:s.customActions)==null?void 0:j.map(k=>b.jsx("div",{style:{paddingLeft:5},children:b.jsx(Ue,{onClick:()=>{y(k.value),i(at(k.value?new Date(k.value):null,r,a,e,o)),W(!1)},primary:!0,size:"small",children:k.label})}))),(s==null?void 0:s.showClear)&&b.jsx("div",{style:{paddingLeft:5},children:b.jsx(Ue,{onClick:()=>{y(null),_(""),W(!1),i(null),W(!1)},primary:!0,size:"small",children:"Clear"})})]})]})})})}),b.jsx(Ha,{actions:b.jsxs(b.Fragment,{children:[(S==null?void 0:S.keepButton)&&b.jsx("div",{style:{marginRight:5},children:b.jsx(Ue,{onClick:()=>{M(null)},primary:!0,children:"Keep Value"})}),b.jsx(Ue,{variant:"outlined",onClick:()=>{const k=S==null?void 0:S.originalValue;i(k||null),y(k),M(null)},children:"Revert"})]}),isOpen:!!S,onClose:()=>M(null),showWarningIcon:!0,title:"Warning",children:b.jsx(ee.Typography,{children:S==null?void 0:S.message})})]})},tl=({gray:t})=>b.jsx(ee.SvgIcon,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:16,height:16},children:b.jsx("path",{d:"M12.5 4.50049H13C13 4.36788 12.9473 4.2407 12.8536 4.14693C12.7598 4.05317 12.6326 4.00049 12.5 4.00049V4.50049ZM3.5 4.50049V4.00049C3.22386 4.00049 3 4.22435 3 4.50049H3.5ZM6 13.0005C6 13.2766 6.22386 13.5005 6.5 13.5005C6.77614 13.5005 7 13.2766 7 13.0005H6ZM7 6.50049C7 6.22435 6.77614 6.00049 6.5 6.00049C6.22386 6.00049 6 6.22435 6 6.50049H7ZM9 13.0005C9 13.2766 9.22386 13.5005 9.5 13.5005C9.77614 13.5005 10 13.2766 10 13.0005H9ZM10 6.50049C10 6.22435 9.77614 6.00049 9.5 6.00049C9.22386 6.00049 9 6.22435 9 6.50049H10ZM2.5 4.50049H2C2 4.77663 2.22386 5.00049 2.5 5.00049V4.50049ZM13.5 4.50049V5.00049C13.7761 5.00049 14 4.77663 14 4.50049H13.5ZM12.5 2.50049V3.00049V2.50049ZM10.5 2.50049H10C10 2.77663 10.2239 3.00049 10.5 3.00049V2.50049ZM10.5 1.50049H11C11 1.36788 10.9473 1.2407 10.8536 1.14693C10.7598 1.05317 10.6326 1.00049 10.5 1.00049V1.50049ZM5.5 1.50049V1.00049C5.36739 1.00049 5.24021 1.05317 5.14645 1.14693C5.05268 1.2407 5 1.36788 5 1.50049L5.5 1.50049ZM5.5 2.50049V3.00049C5.77614 3.00049 6 2.77663 6 2.50049H5.5ZM3.5 2.50049V2.00049V2.50049ZM3 14.0005C3 14.5776 3.14461 15.1022 3.52145 15.479C3.89829 15.8559 4.42293 16.0005 5 16.0005V15.0005C4.57707 15.0005 4.35171 14.8951 4.22855 14.7719C4.10539 14.6488 4 14.4234 4 14.0005H3ZM5 16.0005H11V15.0005H5V16.0005ZM11 16.0005C11.5771 16.0005 12.1017 15.8559 12.4786 15.479C12.8554 15.1022 13 14.5776 13 14.0005H12C12 14.4234 11.8946 14.6488 11.7714 14.7719C11.6483 14.8951 11.4229 15.0005 11 15.0005V16.0005ZM13 14.0005V4.50049H12V14.0005H13ZM12.5 4.00049H3.5V5.00049H12.5V4.00049ZM3 4.50049V14.0005H4V4.50049H3ZM7 13.0005V6.50049H6V13.0005H7ZM10 13.0005V6.50049H9V13.0005H10ZM2.5 5.00049H13.5V4.00049H2.5V5.00049ZM14 4.50049V3.50049H13V4.50049H14ZM14 3.50049C14 3.08787 13.7987 2.71711 13.5411 2.45943C13.2834 2.20176 12.9126 2.00049 12.5 2.00049V3.00049C12.5874 3.00049 12.7166 3.04921 12.8339 3.16654C12.9513 3.28387 13 3.4131 13 3.50049H14ZM12.5 2.00049H10.5V3.00049H12.5V2.00049ZM11 2.50049V1.50049H10V2.50049H11ZM10.5 1.00049C10.2504 1.00049 8.99962 1.00049 7.8125 1.00049C7.20169 1.00049 6.65769 1.00049 6.21094 1.00049C5.99055 1.00049 5.8239 1.00049 5.69434 1.00049C5.63539 1.00049 5.58067 1.00049 5.55066 1.00049C5.54963 1.00049 5.54861 1.00049 5.5476 1.00049C5.5466 1.00049 5.54561 1.00049 5.54464 1.00049C5.54367 1.00049 5.54271 1.00049 5.54177 1.00049C5.54082 1.00049 5.5399 1.00049 5.53898 1.00049C5.53807 1.00049 5.53718 1.00049 5.5363 1.00049C5.53541 1.00049 5.53455 1.00049 5.5337 1.00049C5.53285 1.00049 5.53202 1.00049 5.5312 1.00049C5.53038 1.00049 5.52958 1.00049 5.52879 1.00049C5.528 1.00049 5.52723 1.00049 5.52647 1.00049C5.52572 1.00049 5.52498 1.00049 5.52425 1.00049C5.52353 1.00049 5.52282 1.00049 5.52212 1.00049C5.52143 1.00049 5.52075 1.00049 5.52009 1.00049C5.51943 1.00049 5.51879 1.00049 5.51816 1.00049C5.51753 1.00049 5.51691 1.00049 5.51632 1.00049C5.51572 1.00049 5.51514 1.00049 5.51457 1.00049C5.51401 1.00049 5.51346 1.00049 5.51292 1.00049C5.51239 1.00049 5.51187 1.00049 5.51137 1.00049C5.51087 1.00049 5.51039 1.00049 5.50992 1.00049C5.50945 1.00049 5.509 1.00049 5.50856 1.00049C5.50813 1.00049 5.50771 1.00049 5.50731 1.00049C5.5069 1.00049 5.50652 1.00049 5.50615 1.00049C5.50578 1.00049 5.50542 1.00049 5.50509 1.00049C5.50475 1.00049 5.50443 1.00049 5.50413 1.00049C5.50382 1.00049 5.50353 1.00049 5.50326 1.00049C5.50299 1.00049 5.50274 1.00049 5.5025 1.00049C5.50226 1.00049 5.50204 1.00049 5.50184 1.00049C5.50164 1.00049 5.50145 1.00049 5.50128 1.00049C5.50111 1.00049 5.50096 1.00049 5.50082 1.00049C5.50068 1.00049 5.50056 1.00049 5.50046 1.00049C5.50036 1.00049 5.50027 1.00049 5.50021 1.00049C5.50014 1.00049 5.50009 1.00049 5.50005 1.00049C5.50002 1.00049 5.5 1.00049 5.5 1.50049C5.5 2.00049 5.50002 2.00049 5.50005 2.00049C5.50009 2.00049 5.50014 2.00049 5.50021 2.00049C5.50027 2.00049 5.50036 2.00049 5.50046 2.00049C5.50056 2.00049 5.50068 2.00049 5.50082 2.00049C5.50096 2.00049 5.50111 2.00049 5.50128 2.00049C5.50145 2.00049 5.50164 2.00049 5.50184 2.00049C5.50204 2.00049 5.50226 2.00049 5.5025 2.00049C5.50274 2.00049 5.50299 2.00049 5.50326 2.00049C5.50353 2.00049 5.50382 2.00049 5.50413 2.00049C5.50443 2.00049 5.50475 2.00049 5.50509 2.00049C5.50542 2.00049 5.50578 2.00049 5.50615 2.00049C5.50652 2.00049 5.5069 2.00049 5.50731 2.00049C5.50771 2.00049 5.50813 2.00049 5.50856 2.00049C5.509 2.00049 5.50945 2.00049 5.50992 2.00049C5.51039 2.00049 5.51087 2.00049 5.51137 2.00049C5.51187 2.00049 5.51239 2.00049 5.51292 2.00049C5.51346 2.00049 5.51401 2.00049 5.51457 2.00049C5.51514 2.00049 5.51572 2.00049 5.51632 2.00049C5.51691 2.00049 5.51753 2.00049 5.51816 2.00049C5.51879 2.00049 5.51943 2.00049 5.52009 2.00049C5.52075 2.00049 5.52143 2.00049 5.52212 2.00049C5.52282 2.00049 5.52353 2.00049 5.52425 2.00049C5.52498 2.00049 5.52572 2.00049 5.52647 2.00049C5.52723 2.00049 5.528 2.00049 5.52879 2.00049C5.52958 2.00049 5.53038 2.00049 5.5312 2.00049C5.53202 2.00049 5.53285 2.00049 5.5337 2.00049C5.53455 2.00049 5.53541 2.00049 5.5363 2.00049C5.53718 2.00049 5.53807 2.00049 5.53898 2.00049C5.5399 2.00049 5.54082 2.00049 5.54177 2.00049C5.54271 2.00049 5.54367 2.00049 5.54464 2.00049C5.54561 2.00049 5.5466 2.00049 5.5476 2.00049C5.54861 2.00049 5.54963 2.00049 5.55066 2.00049C5.55169 2.00049 5.55274 2.00049 5.55381 2.00049C5.55487 2.00049 5.55595 2.00049 5.55704 2.00049C5.55814 2.00049 5.55925 2.00049 5.56037 2.00049C5.56149 2.00049 5.56263 2.00049 5.56379 2.00049C5.56494 2.00049 5.56611 2.00049 5.56729 2.00049C5.56848 2.00049 5.56968 2.00049 5.57089 2.00049C5.5721 2.00049 5.57333 2.00049 5.57457 2.00049C5.57581 2.00049 5.57707 2.00049 5.57834 2.00049C5.57962 2.00049 5.5809 2.00049 5.5822 2.00049C5.58351 2.00049 5.58482 2.00049 5.58615 2.00049C5.58748 2.00049 5.58883 2.00049 5.59019 2.00049C5.59154 2.00049 5.59292 2.00049 5.59431 2.00049C5.59569 2.00049 5.5971 2.00049 5.59851 2.00049C5.59993 2.00049 5.60136 2.00049 5.60281 2.00049C5.60425 2.00049 5.60571 2.00049 5.60718 2.00049C5.60866 2.00049 5.61015 2.00049 5.61165 2.00049C5.61315 2.00049 5.61467 2.00049 5.6162 2.00049C5.61773 2.00049 5.61927 2.00049 5.62083 2.00049C5.62239 2.00049 5.62396 2.00049 5.62555 2.00049C5.62713 2.00049 5.62873 2.00049 5.63035 2.00049C5.66909 2.00049 5.60134 2.00049 5.6402 2.00049C5.64187 2.00049 5.64355 2.00049 5.64525 2.00049C5.64694 2.00049 5.64865 2.00049 5.65038 2.00049C5.6521 2.00049 5.65384 2.00049 5.65559 2.00049C5.65734 2.00049 5.65911 2.00049 5.66088 2.00049C5.66266 2.00049 5.66445 2.00049 5.66626 2.00049C5.66806 2.00049 5.66988 2.00049 5.67172 2.00049C5.70741 2.00049 5.64707 2.00049 5.68287 2.00049C5.68475 2.00049 5.68665 2.00049 5.68856 2.00049C5.69047 2.00049 5.6924 2.00049 5.69434 2.00049C5.72856 2.00049 5.67179 2.00049 5.70612 2.00049C5.70811 2.00049 5.71011 2.00049 5.71213 2.00049C5.71414 2.00049 5.71617 2.00049 5.71822 2.00049C5.75101 2.00049 5.69772 2.00049 5.73062 2.00049C5.73271 2.00049 5.73482 2.00049 5.73694 2.00049C5.73906 2.00049 5.74119 2.00049 5.74333 2.00049C5.77473 2.00049 5.72484 2.00049 5.75634 2.00049C5.75854 2.00049 5.76074 2.00049 5.76296 2.00049C5.76518 2.00049 5.76741 2.00049 5.76965 2.00049C5.79971 2.00049 5.75311 2.00049 5.78326 2.00049C5.78556 2.00049 5.78786 2.00049 5.79018 2.00049C5.79249 2.00049 5.79482 2.00049 5.79716 2.00049C5.8259 2.00049 5.78252 2.00049 5.81136 2.00049C5.83945 2.00049 5.79765 2.00049 5.82584 2.00049C5.8533 2.00049 5.81305 2.00049 5.8406 2.00049C5.84309 2.00049 5.84558 2.00049 5.84809 2.00049C5.8506 2.00049 5.85312 2.00049 5.85565 2.00049C5.88186 2.00049 5.84466 2.00049 5.87097 2.00049C5.89658 2.00049 5.86087 2.00049 5.88657 2.00049C5.9359 2.00049 5.86888 2.00049 5.91858 2.00049C5.92129 2.00049 5.92401 2.00049 5.92675 2.00049C5.92948 2.00049 5.93223 2.00049 5.93499 2.00049C5.95825 2.00049 5.9283 2.00049 5.95165 2.00049C5.99642 2.00049 5.94067 2.00049 5.98577 2.00049C6.02835 2.00049 5.97799 2.00049 6.0209 2.00049C6.06136 2.00049 6.01624 2.00049 6.05702 2.00049C6.09543 2.00049 6.05538 2.00049 6.09411 2.00049C6.11261 2.00049 6.09444 2.00049 6.11301 2.00049C6.11618 2.00049 6.11936 2.00049 6.12255 2.00049C6.12574 2.00049 6.12894 2.00049 6.13214 2.00049C6.16665 2.00049 6.13629 2.00049 6.17109 2.00049C6.20374 2.00049 6.17799 2.00049 6.21094 2.00049C6.61345 2.00049 7.24592 2.00049 7.8125 2.00049C9.00015 2.00049 10.2498 2.00049 10.5 2.00049V1.00049ZM5.5 1.50049C5 1.50049 5 1.50049 5 1.50049C5 1.5005 5 1.5005 5 1.50051C5 1.50052 5 1.50053 5 1.50054C5 1.50055 5 1.50056 5 1.50058C5 1.50059 5 1.50061 5 1.50063C5 1.50065 5 1.50067 5 1.50069C5 1.50072 5 1.50074 5 1.50077C5 1.50079 5 1.50082 5 1.50085C5 1.50088 5 1.50092 5 1.50095C5 1.50098 5 1.50102 5 1.50106C5 1.50109 5 1.50113 5 1.50118C5 1.50122 5 1.50126 5 1.50131C5 1.50135 5 1.5014 5 1.50145C5 1.5015 5 1.50155 5 1.5016C5 1.50165 5 1.50171 5 1.50176C5 1.50182 5 1.50188 5 1.50194C5 1.5045 5 1.50273 5 1.50623C5 1.51001 5 1.51562 5 1.52295C5 1.54541 5 1.55127 5 1.58643C5 1.64795 5 1.7124 5 1.81299C5 2.00049 5 2.25049 5 2.50049H6C6 2.25049 6 2.00049 6 1.81299C6 1.7124 6 1.64795 6 1.58643C6 1.55127 6 1.54541 6 1.52295C6 1.50361 6 1.53173 6 1.51326C6 1.5114 6 1.51104 6 1.50941C6 1.50628 6 1.50913 6 1.50623C6 1.50273 6 1.5045 6 1.50194C6 1.50188 6 1.50182 6 1.50176C6 1.50171 6 1.50165 6 1.5016C6 1.50155 6 1.5015 6 1.50145C6 1.5014 6 1.50135 6 1.50131C6 1.50126 6 1.50122 6 1.50118C6 1.50113 6 1.50109 6 1.50106C6 1.50102 6 1.50098 6 1.50095C6 1.50092 6 1.50088 6 1.50085C6 1.50082 6 1.50079 6 1.50077C6 1.50074 6 1.50072 6 1.50069C6 1.50067 6 1.50065 6 1.50063C6 1.50061 6 1.50059 6 1.50058C6 1.50056 6 1.50055 6 1.50054C6 1.50053 6 1.50052 6 1.50051C6 1.5005 6 1.5005 6 1.50049C6 1.50049 6 1.50049 5.5 1.50049ZM5.5 2.00049H3.5V3.00049H5.5V2.00049ZM3.5 2.00049C3.08738 2.00049 2.71662 2.20176 2.45895 2.45943C2.20127 2.71711 2 3.08787 2 3.50049H3C3 3.4131 3.04873 3.28387 3.16605 3.16654C3.28338 3.04921 3.41262 3.00049 3.5 3.00049V2.00049ZM2 3.50049V4.50049H3V3.50049H2Z",fill:t?"rgba(0, 0, 0, 0.5)":"#ffffff"})}),rl=({children:t,closeIcon:n,fullWidth:e,hideOverflow:r,isOpen:a,maxWidth:o,minWidth:i,onDelete:s,onClose:l,actions:f,leftHeaderActions:h,title:d})=>b.jsx(b.Fragment,{children:b.jsxs(ee.Dialog,{fullWidth:e||!1,maxWidth:o||"xl",open:a,children:[b.jsxs(ee.DialogContent,{sx:r?{padding:0,minWidth:i||400,overflowY:"hidden"}:{padding:0,minWidth:i||400},children:[b.jsx("div",{style:{width:"100%",backgroundColor:"#6e7780"},children:b.jsxs("div",{className:"displayFlex",style:{alignItems:"center",minHeight:28},children:[s&&b.jsx(ee.Tooltip,{title:"Delete",children:b.jsx(ee.IconButton,{"aria-label":"delete",onClick:s,sx:{borderRadius:0,color:"#ffffff",padding:"9px 8px"},children:b.jsx(tl,{})})}),h,b.jsx("div",{className:"flex1",style:{paddingLeft:5},children:b.jsx(ee.Typography,{variant:"body1",textAlign:"center",style:{color:"#ffffff"},children:d})}),b.jsx("div",{children:n&&b.jsx(ee.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,padding:"7px 6px",":hover":{backgroundColor:"#c42b1c",color:"#ffffff",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{l&&l()},children:b.jsx(Wa,{style:{color:"#ffffff",height:20}})})})]})}),b.jsx("div",{className:"displayFlex",style:{alignItems:"baseline",minHeight:120},children:b.jsx("div",{className:"flex1 formBody",children:t})})]}),b.jsx(ee.DialogActions,{children:f})]})}),nl=({leftComponents:t,rightComponents:n,onCancel:e,onClose:r,onOK:a,onSaveDisable:o})=>b.jsxs(b.Fragment,{children:[t&&b.jsx(b.Fragment,{children:t}),b.jsx("div",{className:"flex1"}),n&&b.jsx(b.Fragment,{children:n}),e&&b.jsx(Ue,{onClick:e,primary:!1,size:"small",children:"Cancel"}),a&&b.jsx("div",{style:{marginRight:5},children:b.jsx(Ue,{disabled:o||!1,onClick:a,primary:!0,size:"small",children:"OK"})}),r&&b.jsx(Ue,{variant:"outlined",onClick:r,size:"small",children:"Close"})]}),al=({overlay:t})=>b.jsx(b.Fragment,{children:b.jsx(ee.Backdrop,{open:!0,invisible:!t,style:{zIndex:1350},children:b.jsx(ee.CircularProgress,{style:{position:"absolute",left:"calc(50vw - 20px)",top:"calc(50vh - 20px)"}})})}),Va=We.forwardRef((t,n)=>{const{onChange:e,...r}=t;return b.jsx(Kn.NumericFormat,{...r,getInputRef:n,onValueChange:a=>{e({target:{name:t.name,value:a.value}})},allowNegative:!1})});Va.displayName="LCTNumberInputNumericFormat";const ol=({autoFocus:t,disabled:n,placeholder:e,size:r,updater:a,value:o,width:i,...s})=>b.jsx(b.Fragment,{children:b.jsx(ee.OutlinedInput,{autoFocus:t,disabled:n,inputComponent:Va,onBlur:l=>{a&&a(l.target.value)},placeholder:e,size:r||"small",sx:{width:i||130,"& .MuiInputBase-input":{textAlign:"end"},"& .MuiOutlinedInput-notchedOutline ":{border:"1px solid rgba(0, 0, 0, 0.23)"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline ":{border:"1px solid rgba(0, 0, 0, 0.23)"}},value:o,...s})}),il=({autoComplete:t,disabled:n,fullWidth:e,id:r,items:a,onUpdate:o,size:i,value:s,...l})=>{if(t)console.log("autoComplete");else return b.jsx(ee.Select,{disabled:n,fullWidth:e,onChange:f=>{s=f.target.value,o(s)},size:i||"small",value:a?s:"",...l,children:a.map((f,h)=>b.jsx(ee.MenuItem,{value:f.value,children:f.name},`${r}-${h}`))})};function sl(t){return typeof t.main=="string"}function cl(t,n=[]){if(!sl(t))return!1;for(const e of n)if(!t.hasOwnProperty(e)||typeof t[e]!="string")return!1;return!0}function ul(t=[]){return([,n])=>n&&cl(n,t)}function ll(t){return Zt("MuiTypography",t)}xa("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const fl={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},dl=Gu(),hl=t=>{const{align:n,gutterBottom:e,noWrap:r,paragraph:a,variant:o,classes:i}=t,s={root:["root",o,t.align!=="inherit"&&`align${qe(n)}`,e&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return Ca(s,ll,i)},ml=Na("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.variant&&n[e.variant],e.align!=="inherit"&&n[`align${qe(e.align)}`],e.noWrap&&n.noWrap,e.gutterBottom&&n.gutterBottom,e.paragraph&&n.paragraph]}})(La(({theme:t})=>{var n;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([e,r])=>e!=="inherit"&&r&&typeof r=="object").map(([e,r])=>({props:{variant:e},style:r})),...Object.entries(t.palette).filter(ul()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(((n=t.palette)==null?void 0:n.text)||{}).filter(([,e])=>typeof e=="string").map(([e])=>({props:{color:`text${qe(e)}`},style:{color:(t.vars||t).palette.text[e]}})),{props:({ownerState:e})=>e.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}})),Zn={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ba=ot.forwardRef(function(n,e){const{color:r,...a}=Ya({props:n,name:"MuiTypography"}),o=!fl[r],i=dl({...a,...o&&{color:r}}),{align:s="inherit",className:l,component:f,gutterBottom:h=!1,noWrap:d=!1,paragraph:m=!1,variant:x="body1",variantMapping:E=Zn,...w}=i,y={...i,align:s,color:r,className:l,component:f,gutterBottom:h,noWrap:d,paragraph:m,variant:x,variantMapping:E},O=f||(m?"p":E[x]||Zn[x])||"span",_=hl(y);return b.jsx(ml,{as:O,ref:e,className:Ea(_.root,l),...w,ownerState:y,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...w.style}})});process.env.NODE_ENV!=="production"&&(Ba.propTypes={align:F.oneOf(["center","inherit","justify","left","right"]),children:F.node,classes:F.object,className:F.string,color:F.oneOfType([F.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),F.string]),component:F.elementType,gutterBottom:F.bool,noWrap:F.bool,paragraph:F.bool,style:F.object,sx:F.oneOfType([F.arrayOf(F.oneOfType([F.func,F.object,F.bool])),F.func,F.object]),variant:F.oneOfType([F.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),F.string]),variantMapping:F.object});const yl=({children:t,variant:n="body1"})=>b.jsx(Ba,{variant:n,children:t});exports.LCTAppBar=xo;exports.LCTButton=Ue;exports.LCTCurrencyInput=To;exports.LCTDatePicker=el;exports.LCTDialog=Ha;exports.LCTFooter=nl;exports.LCTFormDialog=rl;exports.LCTLoader=al;exports.LCTNumberInput=ol;exports.LCTSelect=il;exports.LCTTypography=yl;exports.lctFormatDate=at;exports.lctGetLocalDisplayFormattedDate=mc;exports.lctGetLocalDisplayFormattedDateTime=yc;exports.lctGetLocale=hc;exports.lctParseDate=ga;
|
|
106
106
|
//# sourceMappingURL=index.cjs.js.map
|