@leapdevuk/component-toolbox 0.0.72 → 0.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const LCTTypography: (props:
|
|
1
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
2
|
+
declare const LCTTypography: (props: TypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default LCTTypography;
|
package/dist/index.cjs.js
CHANGED
|
@@ -70,7 +70,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:et(18,`(${n})`));return
|
|
|
70
70
|
`)):console.error([`MUI: The \`theme.${n}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${n}\` as a number.`].join(`
|
|
71
71
|
`)));const s=a[i];return o>=0?s:typeof s=="number"?-s:`-${s}`}:typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${n}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
72
72
|
`)),()=>{})}function Gr(t){return Lt(t,"spacing",8,"spacing")}function At(t,n){return typeof n=="string"||n==null?n:t(n)}function Hc(t,n){return e=>t.reduce((r,a)=>(r[a]=At(n,e),r),{})}function Vc(t,n,e,r){if(!n.includes(e))return null;const a=Lc(e),o=Hc(a,r),i=t[e];return Xe(t,i,o)}function Pa(t,n){const e=Gr(t.theme);return Object.keys(t).map(r=>Vc(t,n,r,e)).reduce(Ot,{})}function Ce(t){return Pa(t,tr)}Ce.propTypes=process.env.NODE_ENV!=="production"?tr.reduce((t,n)=>(t[n]=nt,t),{}):{};Ce.filterProps=tr;function Te(t){return Pa(t,rr)}Te.propTypes=process.env.NODE_ENV!=="production"?rr.reduce((t,n)=>(t[n]=nt,t),{}):{};Te.filterProps=rr;process.env.NODE_ENV!=="production"&&Ac.reduce((t,n)=>(t[n]=nt,t),{});function nr(...t){const n=t.reduce((r,a)=>(a.filterProps.forEach(o=>{r[o]=a}),r),{}),e=r=>Object.keys(r).reduce((a,o)=>n[o]?Ot(a,n[o](r)):a,{});return e.propTypes=process.env.NODE_ENV!=="production"?t.reduce((r,a)=>Object.assign(r,a.propTypes),{}):{},e.filterProps=t.reduce((r,a)=>r.concat(a.filterProps),[]),e}function Le(t){return typeof t!="number"?t:`${t}px solid`}function Ae(t,n){return Pe({prop:t,themeKey:"borders",transform:n})}const Wc=Ae("border",Le),Bc=Ae("borderTop",Le),Yc=Ae("borderRight",Le),qc=Ae("borderBottom",Le),zc=Ae("borderLeft",Le),Gc=Ae("borderColor"),Qc=Ae("borderTopColor"),Kc=Ae("borderRightColor"),Zc=Ae("borderBottomColor"),Xc=Ae("borderLeftColor"),Uc=Ae("outline",Le),Jc=Ae("outlineColor"),ar=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const n=Lt(t.theme,"shape.borderRadius",4,"borderRadius"),e=r=>({borderRadius:At(n,r)});return Xe(t,t.borderRadius,e)}return null};ar.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:nt}:{};ar.filterProps=["borderRadius"];nr(Wc,Bc,Yc,qc,zc,Gc,Qc,Kc,Zc,Xc,ar,Uc,Jc);const or=t=>{if(t.gap!==void 0&&t.gap!==null){const n=Lt(t.theme,"spacing",8,"gap"),e=r=>({gap:At(n,r)});return Xe(t,t.gap,e)}return null};or.propTypes=process.env.NODE_ENV!=="production"?{gap:nt}:{};or.filterProps=["gap"];const sr=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const n=Lt(t.theme,"spacing",8,"columnGap"),e=r=>({columnGap:At(n,r)});return Xe(t,t.columnGap,e)}return null};sr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:nt}:{};sr.filterProps=["columnGap"];const ir=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const n=Lt(t.theme,"spacing",8,"rowGap"),e=r=>({rowGap:At(n,r)});return Xe(t,t.rowGap,e)}return null};ir.propTypes=process.env.NODE_ENV!=="production"?{rowGap:nt}:{};ir.filterProps=["rowGap"];const e0=Pe({prop:"gridColumn"}),t0=Pe({prop:"gridRow"}),r0=Pe({prop:"gridAutoFlow"}),n0=Pe({prop:"gridAutoColumns"}),a0=Pe({prop:"gridAutoRows"}),o0=Pe({prop:"gridTemplateColumns"}),s0=Pe({prop:"gridTemplateRows"}),i0=Pe({prop:"gridTemplateAreas"}),c0=Pe({prop:"gridArea"});nr(or,sr,ir,e0,t0,r0,n0,a0,o0,s0,i0,c0);function pt(t,n){return n==="grey"?n:t}const u0=Pe({prop:"color",themeKey:"palette",transform:pt}),l0=Pe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pt}),f0=Pe({prop:"backgroundColor",themeKey:"palette",transform:pt});nr(u0,l0,f0);function Ie(t){return t<=1&&t!==0?`${t*100}%`:t}const d0=Pe({prop:"width",transform:Ie}),Qr=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const n=e=>{var a,o,i,s,u;const r=((i=(o=(a=t.theme)==null?void 0:a.breakpoints)==null?void 0:o.values)==null?void 0:i[e])||Jt[e];return r?((u=(s=t.theme)==null?void 0:s.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ie(e)}};return Xe(t,t.maxWidth,n)}return null};Qr.filterProps=["maxWidth"];const h0=Pe({prop:"minWidth",transform:Ie}),m0=Pe({prop:"height",transform:Ie}),g0=Pe({prop:"maxHeight",transform:Ie}),y0=Pe({prop:"minHeight",transform:Ie});Pe({prop:"size",cssProperty:"width",transform:Ie});Pe({prop:"size",cssProperty:"height",transform:Ie});const p0=Pe({prop:"boxSizing"});nr(d0,Qr,h0,m0,g0,y0,p0);const Ht={border:{themeKey:"borders",transform:Le},borderTop:{themeKey:"borders",transform:Le},borderRight:{themeKey:"borders",transform:Le},borderBottom:{themeKey:"borders",transform:Le},borderLeft:{themeKey:"borders",transform:Le},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Le},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ar},color:{themeKey:"palette",transform:pt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pt},backgroundColor:{themeKey:"palette",transform:pt},p:{style:Te},pt:{style:Te},pr:{style:Te},pb:{style:Te},pl:{style:Te},px:{style:Te},py:{style:Te},padding:{style:Te},paddingTop:{style:Te},paddingRight:{style:Te},paddingBottom:{style:Te},paddingLeft:{style:Te},paddingX:{style:Te},paddingY:{style:Te},paddingInline:{style:Te},paddingInlineStart:{style:Te},paddingInlineEnd:{style:Te},paddingBlock:{style:Te},paddingBlockStart:{style:Te},paddingBlockEnd:{style:Te},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:or},rowGap:{style:ir},columnGap:{style:sr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ie},maxWidth:{style:Qr},minWidth:{transform:Ie},height:{transform:Ie},maxHeight:{transform:Ie},minHeight:{transform:Ie},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function b0(...t){const n=t.reduce((r,a)=>r.concat(Object.keys(a)),[]),e=new Set(n);return t.every(r=>e.size===Object.keys(r).length)}function w0(t,n){return typeof t=="function"?t(n):t}function v0(){function t(e,r,a,o){const i={[e]:r,theme:a},s=o[e];if(!s)return{[e]:r};const{cssProperty:u=e,themeKey:f,transform:h,style:d}=s;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[e]:r};const g=er(a,f)||{};return d?d(i):Xe(i,r,k=>{let w=Zt(g,h,k);return k===w&&typeof k=="string"&&(w=Zt(g,h,`${e}${k==="default"?"":Ge(k)}`,k)),u===!1?w:{[u]:w}})}function n(e){const{sx:r,theme:a={}}=e||{};if(!r)return null;const o=a.unstable_sxConfig??Ht;function i(s){let u=s;if(typeof s=="function")u=s(a);else if(typeof s!="object")return s;if(!u)return null;const f=jc(a.breakpoints),h=Object.keys(f);let d=f;return Object.keys(u).forEach(g=>{const x=w0(u[g],a);if(x!=null)if(typeof x=="object")if(o[g])d=Ot(d,t(g,x,a,o));else{const k=Xe({theme:a},x,w=>({[g]:w}));b0(k,x)?d[g]=n({sx:x,theme:a}):d=Ot(d,k)}else d=Ot(d,t(g,x,a,o))}),Dc(a,$c(h,d))}return Array.isArray(r)?r.map(i):i(r)}return n}const wt=v0();wt.filterProps=["sx"];const x0=t=>{var r;const n={systemProps:{},otherProps:{}},e=((r=t==null?void 0:t.theme)==null?void 0:r.unstable_sxConfig)??Ht;return Object.keys(t).forEach(a=>{e[a]?n.systemProps[a]=t[a]:n.otherProps[a]=t[a]}),n};function C0(t){const{sx:n,...e}=t,{systemProps:r,otherProps:a}=x0(e);let o;return Array.isArray(n)?o=[r,...n]:typeof n=="function"?o=(...i)=>{const s=n(...i);return ze(s)?{...r,...s}:r}:o={...r,...n},{...a,sx:o}}function T0(t){for(var n=0,e,r=0,a=t.length;a>=4;++r,a-=4)e=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,e=(e&65535)*1540483477+((e>>>16)*59797<<16),e^=e>>>24,n=(e&65535)*1540483477+((e>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(a){case 3:n^=(t.charCodeAt(r+2)&255)<<16;case 2:n^=(t.charCodeAt(r+1)&255)<<8;case 1:n^=t.charCodeAt(r)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var S0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function E0(t){var n=Object.create(null);return function(e){return n[e]===void 0&&(n[e]=t(e)),n[e]}}var k0=!1,M0=/[A-Z]|^ms/g,D0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Oa=function(n){return n.charCodeAt(1)===45},Wn=function(n){return n!=null&&typeof n!="boolean"},Sr=E0(function(t){return Oa(t)?t:t.replace(M0,"-$&").toLowerCase()}),Bn=function(n,e){switch(n){case"animation":case"animationName":if(typeof e=="string")return e.replace(D0,function(r,a,o){return Je={name:a,styles:o,next:Je},a})}return S0[n]!==1&&!Oa(n)&&typeof e=="number"&&e!==0?e+"px":e},P0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Xt(t,n,e){if(e==null)return"";var r=e;if(r.__emotion_styles!==void 0)return r;switch(typeof e){case"boolean":return"";case"object":{var a=e;if(a.anim===1)return Je={name:a.name,styles:a.styles,next:Je},a.name;var o=e;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Je={name:i.name,styles:i.styles,next:Je},i=i.next;var s=o.styles+";";return s}return O0(t,n,e)}}var u=e;return u}function O0(t,n,e){var r="";if(Array.isArray(e))for(var a=0;a<e.length;a++)r+=Xt(t,n,e[a])+";";else for(var o in e){var i=e[o];if(typeof i!="object"){var s=i;Wn(s)&&(r+=Sr(o)+":"+Bn(o,s)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&k0)throw new Error(P0);if(Array.isArray(i)&&typeof i[0]=="string"&&n==null)for(var u=0;u<i.length;u++)Wn(i[u])&&(r+=Sr(o)+":"+Bn(o,i[u])+";");else{var f=Xt(t,n,i);switch(o){case"animation":case"animationName":{r+=Sr(o)+":"+f+";";break}default:r+=o+"{"+f+"}"}}}}return r}var Yn=/label:\s*([^\s;{]+)\s*(;|$)/g,Je;function _0(t,n,e){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,a="";Je=void 0;var o=t[0];if(o==null||o.raw===void 0)r=!1,a+=Xt(e,n,o);else{var i=o;a+=i[0]}for(var s=1;s<t.length;s++)if(a+=Xt(e,n,t[s]),r){var u=o;a+=u[s]}Yn.lastIndex=0;for(var f="",h;(h=Yn.exec(a))!==null;)f+="-"+h[1];var d=T0(a)+f;return{name:d,styles:a,next:Je}}/**
|
|
73
|
-
* @mui/styled-engine v6.1.
|
|
73
|
+
* @mui/styled-engine v6.1.6
|
|
74
74
|
*
|
|
75
75
|
* @license MIT
|
|
76
76
|
* This source code is licensed under the MIT license found in the
|
|
@@ -103,5 +103,5 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
103
103
|
|
|
104
104
|
export default theme;`}function Nr(t={},...n){const{breakpoints:e,mixins:r={},spacing:a,palette:o={},transitions:i={},typography:s={},shape:u,...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.":et(20));const h=Ur(o),d=Ra(t);let g=Ne(d,{mixins:mu(d.breakpoints,r),palette:h,shadows:vu.slice(),typography:yu(h,s),transitions:Su(i),zIndex:{...Eu}});if(g=Ne(g,f),g=n.reduce((x,k)=>Ne(x,k),g),process.env.NODE_ENV!=="production"){const x=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],k=(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 M=Ut("",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 '&.${M}' syntax:`,JSON.stringify({root:{[`&.${M}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
105
105
|
`))}w[O]={}}}};Object.keys(g.components).forEach(w=>{const y=g.components[w].styleOverrides;y&&w.startsWith("Mui")&&k(y,w)})}return g.unstable_sxConfig={...Ht,...f==null?void 0:f.unstable_sxConfig},g.unstable_sx=function(k){return wt({sx:k,theme:this})},g.toRuntimeSource=Aa,g}function Mu(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 Du=[...Array(25)].map((t,n)=>{if(n===0)return"none";const e=Mu(n);return`linear-gradient(rgba(255 255 255 / ${e}), rgba(255 255 255 / ${e}))`});function Ha(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function Va(t){return t==="dark"?Du:[]}function Pu(t){const{palette:n={mode:"light"},opacity:e,overlays:r,...a}=t,o=Ur(n);return{palette:o,opacity:{...Ha(o.mode),...e},overlays:r||Va(o.mode),...a}}function Ou(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 _u=t=>[...[...Array(25)].map((n,e)=>`--${t?`${t}-`:""}overlays-${e}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],Ru=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 _u(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 ju(t,n){n.forEach(e=>{t[e]||(t[e]={})})}function p(t,n,e){!t[n]&&e&&(t[n]=e)}function Pt(t){return!t||!t.startsWith("hsl")?t:Na(t)}function Qe(t,n){`${n}Channel`in t||(t[`${n}Channel`]=Dt(Pt(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().
|
|
106
|
-
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 $u(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Be=t=>{try{return t()}catch{}},Iu=(t="mui")=>eu(t);function Mr(t,n,e,r){if(!n)return;n=n===!0?{}:n;const a=r==="dark"?"dark":"light";if(!e){t[r]=Pu({...n,palette:{mode:a,...n==null?void 0:n.palette}});return}const{palette:o,...i}=Nr({...e,palette:{mode:a,...n==null?void 0:n.palette}});return t[r]={...n,palette:o,opacity:{...Ha(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Va(a)},i}function Nu(t={},...n){const{colorSchemes:e={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:i=Ou,colorSchemeSelector:s=e.light&&e.dark?"media":void 0,rootSelector:u=":root",...f}=t,h=Object.keys(e)[0],d=r||(e.light&&h!=="light"?"light":h),g=Iu(o),{[d]:x,light:k,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.`:et(21,d));const M=Mr(O,_,f,d);k&&!O.light&&Mr(O,k,void 0,"light"),w&&!O.dark&&Mr(O,w,void 0,"dark");let D={defaultColorScheme:d,...M,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:u,getCssVar:g,colorSchemes:O,font:{...hu(M.typography),...M.font},spacing:$u(f.spacing)};Object.keys(D.colorSchemes).forEach(E=>{const c=D.colorSchemes[E].palette,T=R=>{const A=R.split("-"),ne=A[1],v=A[2];return g(R,c[ne][v])};if(c.mode==="light"&&(p(c.common,"background","#fff"),p(c.common,"onBackground","#000")),c.mode==="dark"&&(p(c.common,"background","#000"),p(c.common,"onBackground","#fff")),ju(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){p(c.Alert,"errorColor",ye(c.error.light,.6)),p(c.Alert,"infoColor",ye(c.info.light,.6)),p(c.Alert,"successColor",ye(c.success.light,.6)),p(c.Alert,"warningColor",ye(c.warning.light,.6)),p(c.Alert,"errorFilledBg",T("palette-error-main")),p(c.Alert,"infoFilledBg",T("palette-info-main")),p(c.Alert,"successFilledBg",T("palette-success-main")),p(c.Alert,"warningFilledBg",T("palette-warning-main")),p(c.Alert,"errorFilledColor",Be(()=>c.getContrastText(c.error.main))),p(c.Alert,"infoFilledColor",Be(()=>c.getContrastText(c.info.main))),p(c.Alert,"successFilledColor",Be(()=>c.getContrastText(c.success.main))),p(c.Alert,"warningFilledColor",Be(()=>c.getContrastText(c.warning.main))),p(c.Alert,"errorStandardBg",pe(c.error.light,.9)),p(c.Alert,"infoStandardBg",pe(c.info.light,.9)),p(c.Alert,"successStandardBg",pe(c.success.light,.9)),p(c.Alert,"warningStandardBg",pe(c.warning.light,.9)),p(c.Alert,"errorIconColor",T("palette-error-main")),p(c.Alert,"infoIconColor",T("palette-info-main")),p(c.Alert,"successIconColor",T("palette-success-main")),p(c.Alert,"warningIconColor",T("palette-warning-main")),p(c.AppBar,"defaultBg",T("palette-grey-100")),p(c.Avatar,"defaultBg",T("palette-grey-400")),p(c.Button,"inheritContainedBg",T("palette-grey-300")),p(c.Button,"inheritContainedHoverBg",T("palette-grey-A100")),p(c.Chip,"defaultBorder",T("palette-grey-400")),p(c.Chip,"defaultAvatarColor",T("palette-grey-700")),p(c.Chip,"defaultIconColor",T("palette-grey-700")),p(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),p(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),p(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),p(c.LinearProgress,"primaryBg",pe(c.primary.main,.62)),p(c.LinearProgress,"secondaryBg",pe(c.secondary.main,.62)),p(c.LinearProgress,"errorBg",pe(c.error.main,.62)),p(c.LinearProgress,"infoBg",pe(c.info.main,.62)),p(c.LinearProgress,"successBg",pe(c.success.main,.62)),p(c.LinearProgress,"warningBg",pe(c.warning.main,.62)),p(c.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.11)`),p(c.Slider,"primaryTrack",pe(c.primary.main,.62)),p(c.Slider,"secondaryTrack",pe(c.secondary.main,.62)),p(c.Slider,"errorTrack",pe(c.error.main,.62)),p(c.Slider,"infoTrack",pe(c.info.main,.62)),p(c.Slider,"successTrack",pe(c.success.main,.62)),p(c.Slider,"warningTrack",pe(c.warning.main,.62));const R=qt(c.background.default,.8);p(c.SnackbarContent,"bg",R),p(c.SnackbarContent,"color",Be(()=>c.getContrastText(R))),p(c.SpeedDialAction,"fabHoverBg",qt(c.background.paper,.15)),p(c.StepConnector,"border",T("palette-grey-400")),p(c.StepContent,"border",T("palette-grey-400")),p(c.Switch,"defaultColor",T("palette-common-white")),p(c.Switch,"defaultDisabledColor",T("palette-grey-100")),p(c.Switch,"primaryDisabledColor",pe(c.primary.main,.62)),p(c.Switch,"secondaryDisabledColor",pe(c.secondary.main,.62)),p(c.Switch,"errorDisabledColor",pe(c.error.main,.62)),p(c.Switch,"infoDisabledColor",pe(c.info.main,.62)),p(c.Switch,"successDisabledColor",pe(c.success.main,.62)),p(c.Switch,"warningDisabledColor",pe(c.warning.main,.62)),p(c.TableCell,"border",pe(Yt(c.divider,1),.88)),p(c.Tooltip,"bg",Yt(c.grey[700],.92))}if(c.mode==="dark"){p(c.Alert,"errorColor",pe(c.error.light,.6)),p(c.Alert,"infoColor",pe(c.info.light,.6)),p(c.Alert,"successColor",pe(c.success.light,.6)),p(c.Alert,"warningColor",pe(c.warning.light,.6)),p(c.Alert,"errorFilledBg",T("palette-error-dark")),p(c.Alert,"infoFilledBg",T("palette-info-dark")),p(c.Alert,"successFilledBg",T("palette-success-dark")),p(c.Alert,"warningFilledBg",T("palette-warning-dark")),p(c.Alert,"errorFilledColor",Be(()=>c.getContrastText(c.error.dark))),p(c.Alert,"infoFilledColor",Be(()=>c.getContrastText(c.info.dark))),p(c.Alert,"successFilledColor",Be(()=>c.getContrastText(c.success.dark))),p(c.Alert,"warningFilledColor",Be(()=>c.getContrastText(c.warning.dark))),p(c.Alert,"errorStandardBg",ye(c.error.light,.9)),p(c.Alert,"infoStandardBg",ye(c.info.light,.9)),p(c.Alert,"successStandardBg",ye(c.success.light,.9)),p(c.Alert,"warningStandardBg",ye(c.warning.light,.9)),p(c.Alert,"errorIconColor",T("palette-error-main")),p(c.Alert,"infoIconColor",T("palette-info-main")),p(c.Alert,"successIconColor",T("palette-success-main")),p(c.Alert,"warningIconColor",T("palette-warning-main")),p(c.AppBar,"defaultBg",T("palette-grey-900")),p(c.AppBar,"darkBg",T("palette-background-paper")),p(c.AppBar,"darkColor",T("palette-text-primary")),p(c.Avatar,"defaultBg",T("palette-grey-600")),p(c.Button,"inheritContainedBg",T("palette-grey-800")),p(c.Button,"inheritContainedHoverBg",T("palette-grey-700")),p(c.Chip,"defaultBorder",T("palette-grey-700")),p(c.Chip,"defaultAvatarColor",T("palette-grey-300")),p(c.Chip,"defaultIconColor",T("palette-grey-300")),p(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),p(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),p(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),p(c.LinearProgress,"primaryBg",ye(c.primary.main,.5)),p(c.LinearProgress,"secondaryBg",ye(c.secondary.main,.5)),p(c.LinearProgress,"errorBg",ye(c.error.main,.5)),p(c.LinearProgress,"infoBg",ye(c.info.main,.5)),p(c.LinearProgress,"successBg",ye(c.success.main,.5)),p(c.LinearProgress,"warningBg",ye(c.warning.main,.5)),p(c.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.13)`),p(c.Slider,"primaryTrack",ye(c.primary.main,.5)),p(c.Slider,"secondaryTrack",ye(c.secondary.main,.5)),p(c.Slider,"errorTrack",ye(c.error.main,.5)),p(c.Slider,"infoTrack",ye(c.info.main,.5)),p(c.Slider,"successTrack",ye(c.success.main,.5)),p(c.Slider,"warningTrack",ye(c.warning.main,.5));const R=qt(c.background.default,.98);p(c.SnackbarContent,"bg",R),p(c.SnackbarContent,"color",Be(()=>c.getContrastText(R))),p(c.SpeedDialAction,"fabHoverBg",qt(c.background.paper,.15)),p(c.StepConnector,"border",T("palette-grey-600")),p(c.StepContent,"border",T("palette-grey-600")),p(c.Switch,"defaultColor",T("palette-grey-300")),p(c.Switch,"defaultDisabledColor",T("palette-grey-600")),p(c.Switch,"primaryDisabledColor",ye(c.primary.main,.55)),p(c.Switch,"secondaryDisabledColor",ye(c.secondary.main,.55)),p(c.Switch,"errorDisabledColor",ye(c.error.main,.55)),p(c.Switch,"infoDisabledColor",ye(c.info.main,.55)),p(c.Switch,"successDisabledColor",ye(c.success.main,.55)),p(c.Switch,"warningDisabledColor",ye(c.warning.main,.55)),p(c.TableCell,"border",ye(Yt(c.divider,1),.68)),p(c.Tooltip,"bg",Yt(c.grey[700],.92))}Qe(c.background,"default"),Qe(c.background,"paper"),Qe(c.common,"background"),Qe(c.common,"onBackground"),Qe(c,"divider"),Object.keys(c).forEach(R=>{const A=c[R];A&&typeof A=="object"&&(A.main&&p(c[R],"mainChannel",Dt(Pt(A.main))),A.light&&p(c[R],"lightChannel",Dt(Pt(A.light))),A.dark&&p(c[R],"darkChannel",Dt(Pt(A.dark))),A.contrastText&&p(c[R],"contrastTextChannel",Dt(Pt(A.contrastText))),R==="text"&&(Qe(c[R],"primary"),Qe(c[R],"secondary")),R==="action"&&(A.active&&Qe(c[R],"active"),A.selected&&Qe(c[R],"selected")))})}),D=n.reduce((E,c)=>Ne(E,c),D);const b={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:i,getSelector:Ru(D)},{vars:Y,generateThemeVars:U,generateStyleSheets:L}=nu(D,b);return D.vars=Y,Object.entries(D.colorSchemes[D.defaultColorScheme]).forEach(([E,c])=>{D[E]=c}),D.generateThemeVars=U,D.generateStyleSheets=L,D.generateSpacing=function(){return _a(f.spacing,Gr(this))},D.getColorSchemeSelector=au(s),D.spacing=D.generateSpacing(),D.shouldSkipGeneratingVar=i,D.unstable_sxConfig={...Ht,...f==null?void 0:f.unstable_sxConfig},D.unstable_sx=function(c){return wt({sx:c,theme:this})},D.toRuntimeSource=Aa,D}function ta(t,n,e){t.colorSchemes&&e&&(t.colorSchemes[n]={...e!==!0&&e,palette:Ur({...e===!0?{}:e.palette,mode:n})})}function Fu(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",u=a==null?void 0:a[s],f={...a,...e?{[s]:{...typeof u!="boolean"&&u,palette:e}}:void 0};if(r===!1){if(!("colorSchemes"in t))return Nr(t,...n);let h=e;"palette"in t||f[s]&&(f[s]!==!0?h=f[s].palette:s==="dark"&&(h={mode:"dark"}));const d=Nr({...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},ta(d,"dark",f.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:d.palette},ta(d,"light",f.light)),d}return!e&&!("light"in f)&&s==="light"&&(f.light=!0),Nu({...i,colorSchemes:f,defaultColorScheme:s,...typeof r!="boolean"&&r},...n)}const Lu=Fu(),Au="$$material";function Hu(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Vu=t=>Hu(t)&&t!=="classes",Wa=V0({themeId:Au,defaultTheme:Lu,rootShouldForwardProp:Vu});function Wu(){return C0}const Ba=J0;process.env.NODE_ENV!=="production"&&(W.node,W.object.isRequired);function Ya(t){return U0(t)}function Bu(t){return Ut("MuiSvgIcon",t)}ka("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Yu=t=>{const{color:n,fontSize:e,classes:r}=t,a={root:["root",n!=="inherit"&&`color${Ge(n)}`,`fontSize${Ge(e)}`]};return Ea(a,Bu,r)},qu=Wa("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.color!=="inherit"&&n[`color${Ge(e.color)}`],n[`fontSize${Ge(e.fontSize)}`]]}})(Ba(({theme:t})=>{var n,e,r,a,o,i,s,u,f,h,d,g,x,k;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:((u=(s=t.typography)==null?void 0:s.pxToRem)==null?void 0:u.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:(g=(d=(t.vars??t).palette)==null?void 0:d.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(k=(x=(t.vars??t).palette)==null?void 0:x.action)==null?void 0:k.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Nt=st.forwardRef(function(n,e){const r=Ya({props:n,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:d,viewBox:g="0 0 24 24",...x}=r,k=st.isValidElement(a)&&a.type==="svg",w={...r,color:i,component:s,fontSize:u,instanceFontSize:n.fontSize,inheritViewBox:h,viewBox:g,hasSvgAsChild:k},y={};h||(y.viewBox=g);const O=Yu(w);return m.jsxs(qu,{as:s,className:Da(O.root,o),focusable:"false",color:f,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:e,...y,...x,...k&&a.props,ownerState:w,children:[k?a.props.children:a,d?m.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Nt.propTypes={children:W.node,classes:W.object,className:W.string,color:W.oneOfType([W.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),W.string]),component:W.elementType,fontSize:W.oneOfType([W.oneOf(["inherit","large","medium","small"]),W.string]),htmlColor:W.string,inheritViewBox:W.bool,shapeRendering:W.string,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),titleAccess:W.string,viewBox:W.string});Nt&&(Nt.muiName="SvgIcon");function Jr(t,n){function e(r,a){return m.jsx(Nt,{"data-testid":`${n}Icon`,ref:a,...r,children:t})}return process.env.NODE_ENV!=="production"&&(e.displayName=`${n}Icon`),e.muiName=Nt.muiName,st.memo(st.forwardRef(e))}const qa=Jr(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"}),"CloseOutlined");function zu(){return m.jsxs(V.SvgIcon,{viewBox:"0 0 16 16","aria-hidden":"true",height:"16",width:"16",style:{width:16,height:16},children:[m.jsx("path",{fill:"#1E365E",d:"M0 0h16v16H0z"}),m.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 Gu(){return m.jsx(V.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:m.jsxs("g",{fill:"#FFBF00",fillRule:"evenodd",transform:"translate(1 1)",children:[m.jsx("path",{d:"m9.5.5 9 16h-18z",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"m9.5 10.5v-5",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"9.5",cy:"13.5",fill:"#000000",r:"1"})]})})}const en=({actions:t,children:n,closeIcon:e,hideOverflow:r,isOpen:a,key:o,maxWidth:i,minWidth:s,onClose:u,showWarningIcon:f,title:h})=>m.jsx(m.Fragment,{children:m.jsxs(V.Dialog,{open:a,maxWidth:i||"xl",children:[m.jsxs(V.DialogContent,{sx:r?{padding:0,minWidth:s||400,overflowY:"hidden"}:{padding:0,minWidth:s||400},children:[m.jsx(V.DialogTitle,{style:{backgroundColor:"#f0f1f2",padding:0},children:m.jsxs("div",{style:{alignItems:"center",display:"flex",minHeight:28,paddingLeft:8,verticalAlign:"center"},children:[m.jsx(zu,{}),m.jsx("div",{style:{flex:1,paddingLeft:5},children:m.jsx(V.Typography,{variant:"body1",children:h})}),m.jsx("div",{children:e&&m.jsx(V.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,":hover":{backgroundColor:"#c42b1c",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{u&&u()},children:m.jsx(qa,{style:{height:20}})})})]})}),m.jsxs("div",{style:{display:"flex",minHeight:120},children:[!!f&&m.jsx("div",{style:{marginLeft:15,marginTop:"auto",marginBottom:"auto"},children:m.jsx(Gu,{})}),m.jsx("div",{style:{flex:1,marginTop:"auto",marginBottom:"auto",marginLeft:15,marginRight:15},children:n})]})]}),t&&m.jsx(V.DialogActions,{style:{borderTop:"1px solid rgba(224, 224, 224, 1)",backgroundColor:"rgb(241, 243, 249)"},children:t})]},o)}),Qu=({disabled:t,fullWidth:n,isUTC:e,startOfDate:r,endOfDate:a,dateOnly:o,onUpdate:i,additionalActions:s,size:u,validate30Days:f,validate:h,value:d,locale:g})=>{var L;const[x,k]=ke.useState(null),[w,y]=ke.useState(null),[O,_]=ke.useState(null),[M,D]=ke.useState(null),[b,Y]=ke.useState(!1),U=g?g.formatLong.date({width:"short"}).toLowerCase().replaceAll("m","M"):rt;return ke.useEffect(()=>{g&&(y(d&&new Date(d)),_(d&&B.format(new Date(d),U)),d||(_(null),i(null)))},[U,d,g]),m.jsxs(m.Fragment,{children:[m.jsx(V.TextField,{onChange:E=>{const c=E.target.value;(/^[0-9/]+$/.test(c)||c===""||c.length<2)&&c.split("/").length<=3&&_(c)},placeholder:g?g.formatLong.date({width:"short"}).toLowerCase():void 0,onKeyDown:E=>{E.code==="Backspace"&&O&&O[(O==null?void 0:O.length)-1]==="/"&&_(E.target.value.substring(0,E.target.value.length-1))},onKeyUp:E=>{const c=E.target.value,T=/^(?!.*\/\/)[0-9/]+$/;let R=c.replace("-","/");const A=R.length;E.code==="Backspace"||E.code==="Delete"||E.code==="Slash"&&R.split("/").length<3||T.test(R)&&(A===2&&!R.includes("/")&&(R=R+"/"),A>4&&R.split("/")[1].length===2&&R.split("/").length<3&&(R=R+"/"),_(R))},onBlur:E=>{const c=E.target.value;if(c!==d){const T=yt(c,Mt,U,!0);if(d&&T&&f&&B.differenceInDays(new Date(T),new Date)>30&&JSON.stringify(re(T?new Date(T):null,r,a,e,o))!==JSON.stringify(re(w?new Date(w):null,r,a,e,o))&&D({keepButton:!0,message:"Selected date is in the future.",originalValue:d}),h){const R=h(T||null);R&&D(R)}y(T&&new Date(T)),_(T&&B.format(new Date(T),U)),i(re(T?new Date(T):null,r,a,e,o))}},value:O||"",disabled:t,sx:{width:n?"100%":110},size:u||"small",slotProps:{input:{endAdornment:m.jsx(V.IconButton,{sx:{borderRadius:0,padding:"2px",backgroundColor:t?"#f3f3f3 !important":"inherit",":hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},":focus":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},onClick:E=>{k(E.currentTarget),Y(!0)},disabled:t,disableFocusRipple:!0,disableRipple:!0,children:m.jsx(_r,{})})}}}),m.jsx(V.Popper,{open:b,sx:{zIndex:1500},anchorEl:x,children:m.jsx(V.ClickAwayListener,{onClickAway:()=>{Y(!1)},children:m.jsx(V.Paper,{children:m.jsxs("div",{className:"displayFlex",style:{flexDirection:"column",alignItems:"center",backgroundColor:"#fff"},children:[m.jsx(Gt.LocalizationProvider,{dateAdapter:va,adapterLocale:g,children:m.jsx(Gt.DateCalendar,{value:w?new Date(w):null,onChange:(E,c)=>{c!=="partial"&&Y(!1),d&&f&&B.differenceInDays(new Date(E),new Date)>30&&D({keepButton:!0,message:"Selected date is in the future.",originalValue:d});const T=E||null;if(h){const R=h(T);R&&D(R)}y(d),_(T&&B.format(new Date(T),U)),i(re(T?new Date(T):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))&&m.jsxs("div",{className:"displayFlex",style:{paddingBottom:10},children:[(s==null?void 0:s.showToday)&&m.jsx(Ve,{onClick:()=>{const E=new Date;y(E),i(re(E?new Date(E):null,r,a,e,o)),Y(!1)},size:"small",children:"Today"}),(s==null?void 0:s.customActions)&&((L=s==null?void 0:s.customActions)==null?void 0:L.map(E=>m.jsx("div",{style:{paddingLeft:5},children:m.jsx(Ve,{onClick:()=>{y(E.value),i(re(E.value?new Date(E.value):null,r,a,e,o)),Y(!1)},size:"small",children:E.label})}))),(s==null?void 0:s.showClear)&&m.jsx("div",{style:{paddingLeft:5},children:m.jsx(Ve,{onClick:()=>{y(null),_(""),Y(!1),i(null),Y(!1)},variant:"outlined",size:"small",children:"Clear"})})]})]})})})}),m.jsx(en,{actions:m.jsxs(m.Fragment,{children:[(M==null?void 0:M.keepButton)&&m.jsx("div",{style:{marginRight:5},children:m.jsx(Ve,{onClick:()=>{D(null)},children:"Keep Value"})}),m.jsx(Ve,{variant:"outlined",onClick:()=>{const E=M==null?void 0:M.originalValue;i(E||null),y(E),D(null)},children:"Revert"})]}),isOpen:!!M,onClose:()=>D(null),showWarningIcon:!0,title:"Warning",children:m.jsx(V.Typography,{children:M==null?void 0:M.message})})]})},Ku=({disabled:t,fullWidth:n,isUTC:e,startOfDate:r,endOfDate:a,dateOnly:o,onUpdate:i,additionalActions:s,size:u,validate30Days:f,validate:h,fromDate:d,toDate:g,locale:x,calendars:k})=>{var ne;const[w,y]=ke.useState(null),[O,_]=ke.useState(null),[M,D]=ke.useState(null),[b,Y]=ke.useState(null),[U,L]=ke.useState(null),[E,c]=ke.useState(null),[T,R]=ke.useState(!1),A=x?x.formatLong.date({width:"short"}).toLowerCase().replaceAll("m","M"):rt;return ke.useEffect(()=>{_(d&&new Date(d)),D(g&&new Date(g)),Y(d&&B.format(new Date(d),A)),L(g&&B.format(new Date(g),A)),!d&&!g?(Y(null),L(null),i(null,null)):d?g||(L(null),i(re(d?new Date(d):null,!0,a,e,o),null)):(Y(null),i(null,re(g?new Date(g):null,r,!0,e,o)))},[d,g]),m.jsxs(m.Fragment,{children:[m.jsx(V.TextField,{onChange:v=>{const j=v.target.value;(/^[0-9/]+$/.test(j)||j===""||j.length<2)&&j.split("/").length<=3&&Y(j)},placeholder:x?x.formatLong.date({width:"short"}).toLowerCase():void 0,onKeyDown:v=>{v.code==="Backspace"&&b&&b[(b==null?void 0:b.length)-1]==="/"&&Y(v.target.value.substring(0,v.target.value.length-1))},onKeyUp:v=>{const j=v.target.value,P=/^(?!.*\/\/)[0-9/]+$/;let z=j.replace("-","/");const be=z.length;v.code==="Backspace"||v.code==="Delete"||v.code==="Slash"&&z.split("/").length<3||P.test(z)&&(be===2&&!z.includes("/")&&(z=z+"/"),be>4&&z.split("/")[1].length===2&&z.split("/").length<3&&(z=z+"/"),Y(z))},onBlur:v=>{const j=v.target.value;if(j!==d){const P=yt(j,Mt,A,!0),z=yt(U,Mt,A,!0);if(z&&P&&B.isAfter(new Date(P),new Date(z))&&c({fromDate:!0,toDate:!1,keepButton:!1,message:"Selected To Date is before From Date.",originalValue:d}),d&&P&&f&&B.differenceInDays(new Date(P),new Date)>30&&JSON.stringify(re(P?new Date(P):null,!0,a,e,o))!==JSON.stringify(re(O?new Date(O):null,!0,a,e,o))&&c({fromDate:!0,toDate:!1,keepButton:!0,message:"Selected date is in the future.",originalValue:d}),h){const be=h(P||null);be&&c(be)}_(P&&new Date(P)),Y(P&&B.format(new Date(P),A)),i(re(P?new Date(P):null,!0,a,e,o),re(M?new Date(M):null,r,!0,e,o))}},value:b||"",disabled:t,sx:{width:n?"100%":110},size:u||"small",slotProps:{input:{endAdornment:m.jsx(V.IconButton,{sx:{borderRadius:0,padding:"2px",backgroundColor:t?"#f3f3f3 !important":"inherit",":hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},":focus":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},onClick:v=>{y(v.currentTarget),R(!0)},disabled:t,disableFocusRipple:!0,disableRipple:!0,children:m.jsx(_r,{})})}}}),m.jsx("div",{style:{margin:"auto"},children:m.jsx(V.Typography,{style:{paddingLeft:8,paddingRight:5},children:"To"})}),m.jsx(V.TextField,{onChange:v=>{const j=v.target.value;(/^[0-9/]+$/.test(j)||j===""||j.length<2)&&j.split("/").length<=3&&L(j)},placeholder:x?x.formatLong.date({width:"short"}).toLowerCase():void 0,onKeyDown:v=>{v.code==="Backspace"&&U&&U[(U==null?void 0:U.length)-1]==="/"&&L(v.target.value.substring(0,v.target.value.length-1))},onKeyUp:v=>{const j=v.target.value,P=/^(?!.*\/\/)[0-9/]+$/;let z=j.replace("-","/");const be=z.length;v.code==="Backspace"||v.code==="Delete"||v.code==="Slash"&&z.split("/").length<3||P.test(z)&&(be===2&&!z.includes("/")&&(z=z+"/"),be>4&&z.split("/")[1].length===2&&z.split("/").length<3&&(z=z+"/"),L(z))},onBlur:v=>{const j=v.target.value;if(j!==g){const P=yt(j,Mt,A,!0),z=yt(b,Mt,A,!0);if(z&&P&&B.isBefore(new Date(P),new Date(z))&&c({fromDate:!1,toDate:!0,keepButton:!1,message:"Selected To Date is before From Date.",originalValue:g}),g&&P&&f&&B.differenceInDays(new Date(P),new Date)>30&&JSON.stringify(re(P?new Date(P):null,r,!0,e,o))!==JSON.stringify(re(M?new Date(M):null,r,!0,e,o))&&c({fromDate:!1,toDate:!0,keepButton:!0,message:"Selected date is in the future.",originalValue:g}),h){const be=h(P||null);be&&c(be)}D(P&&new Date(P)),L(P&&B.format(new Date(P),A)),i(re(O?new Date(O):null,!0,a,e,o),re(P?new Date(P):null,r,!0,e,o))}},value:U||"",disabled:t,sx:{width:n?"100%":110},size:u||"small",slotProps:{input:{endAdornment:m.jsx(V.IconButton,{sx:{borderRadius:0,padding:"2px",backgroundColor:t?"#f3f3f3 !important":"inherit",":hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},":focus":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},onClick:v=>{y(v.currentTarget),R(!0)},disabled:t,disableFocusRipple:!0,disableRipple:!0,children:m.jsx(_r,{})})}}}),m.jsx(V.Popper,{open:T,sx:{zIndex:1500},anchorEl:w,children:m.jsx(V.ClickAwayListener,{onClickAway:()=>{R(!1)},children:m.jsx(V.Paper,{style:{backgroundColor:"#fff",border:"1px solid rgba(0, 0, 0, 0.12)",borderRadius:0},children:m.jsxs("div",{className:"displayFlex dateActionButtons",style:{flexDirection:"row"},children:[((s==null?void 0:s.showToday)||(s==null?void 0:s.showYesterday)||(s==null?void 0:s.showThisWeek)||(s==null?void 0:s.showLastWeek)||(s==null?void 0:s.showThisMonth)||(s==null?void 0:s.showLastMonth)||(s==null?void 0:s.showLast30)||(s==null?void 0:s.showLast60)||(s==null?void 0:s.showLast90)||(s==null?void 0:s.customActions))&&m.jsxs("div",{className:"displayFlex",style:{flexDirection:"column",minHeight:208},children:[(s==null?void 0:s.showToday)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date;_(v),D(v),i(re(v||null,r,a,e,o),re(v||null,r,a,e,o)),R(!1)},children:"Today"}),(s==null?void 0:s.showYesterday)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=B.addDays(new Date,-1);_(v),D(v),i(re(v||null,r,a,e,o),re(v||null,r,a,e,o)),R(!1)},children:"Yesterday"}),(s==null?void 0:s.showThisWeek)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.startOfWeek(v,{weekStartsOn:1}),P=B.endOfWeek(v,{weekStartsOn:1});_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"This Week"}),(s==null?void 0:s.showLastWeek)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.startOfWeek(B.addDays(v,-7),{weekStartsOn:1}),P=B.endOfWeek(B.addDays(v,-7),{weekStartsOn:1});_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"Last Week"}),(s==null?void 0:s.showThisMonth)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.startOfMonth(v),P=B.endOfMonth(v);_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"This Month"}),(s==null?void 0:s.showLastMonth)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.startOfMonth(B.addMonths(v,-1)),P=B.endOfMonth(B.addMonths(v,-1));_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"Last Month"}),(s==null?void 0:s.showLast30)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.addDays(v,-30),P=v;_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"Last 30 days"}),(s==null?void 0:s.showLast60)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.addDays(v,-60),P=v;_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"Last 60 days"}),(s==null?void 0:s.showLast90)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.addDays(v,-90),P=v;_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"Last 90 days"}),(s==null?void 0:s.customActions)&&((ne=s==null?void 0:s.customActions)==null?void 0:ne.map(v=>m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{_(v.fromValue),D(v.toValue),i(re(v.fromValue?new Date(v.fromValue):null,r,a,e,o),re(v.toValue?new Date(v.toValue):null,r,a,e,o)),R(!1)},children:v.label})))]}),m.jsx("div",{className:"displayFlex",style:{flexDirection:"column",borderLeft:"1px solid #e0e0e0",alignSelf:"flex-start"},children:m.jsx(Gt.LocalizationProvider,{dateAdapter:va,adapterLocale:x,children:m.jsx(Gt.DateRangeCalendar,{value:[O?new Date(O):null,M?new Date(M):null],onChange:(v,j)=>{j!=="partial"&&R(!1);const P=v[0]?v[0]:null,z=v[1]?v[1]:null;if(h){const be=h(P);be&&c(be);const S=h(z);S&&c(S)}_(d),Y(P&&B.format(new Date(P),A)),L(z&&B.format(new Date(z),A)),i(re(P?new Date(P):null,!0,a,e,o),re(z?new Date(z):null,r,!0,e,o))},calendars:k||2,sx:{"& .MuiTypography-caption":{height:30,width:30},"& .MuiDateRangePickerDay-rangeIntervalPreview":{height:30,width:30},"& .MuiDayCalendar-slideTransition":{minHeight:220,height:220}},slotProps:{day:{style:{height:30,width:30}}}})})})]})})})}),m.jsx(en,{actions:m.jsxs(m.Fragment,{children:[(E==null?void 0:E.keepButton)&&m.jsx("div",{style:{marginRight:5},children:m.jsx(Ve,{onClick:()=>{c(null)},children:"Keep Value"})}),m.jsx(Ve,{variant:"outlined",onClick:()=>{const v=E==null?void 0:E.originalValue;E!=null&&E.fromDate&&(i(v||null,g),_(v)),E!=null&&E.toDate&&(i(d,v||null),D(v)),c(null)},children:"Revert"})]}),isOpen:!!E,onClose:()=>c(null),showWarningIcon:!0,title:"Warning",children:m.jsx(V.Typography,{children:E==null?void 0:E.message})})]})},Zu=Jr(m.jsx("path",{d:"M15.88 9.29 12 13.17 8.12 9.29a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0"}),"ExpandMoreRounded"),Xu=Jr(m.jsx("path",{d:"M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L12.7 8.71a.996.996 0 0 0-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0"}),"KeyboardArrowUpRounded"),Uu=({params:t,sortModel:n})=>m.jsxs("div",{style:{display:"grid",width:"100%",height:"100%"},children:[m.jsxs("div",{style:{marginRight:"auto",marginLeft:"auto",height:5},children:[(n==null?void 0:n.find(e=>e.field===t.colDef.field&&e.sort==="asc"))&&m.jsx(Xu,{className:"tableHeaderIcon"}),(n==null?void 0:n.find(e=>e.field===t.colDef.field&&e.sort==="desc"))&&m.jsx(Zu,{className:"tableHeaderIcon"})]}),m.jsx("div",{style:{display:"block"},children:m.jsx(V.Typography,{textAlign:t.colDef.headerAlign,style:{fontWeight:500},children:t.colDef.headerName})})]}),Ju=46,el=40,tl=V.styled(t=>{var a;const[n,e]=ke.useState(void 0),r=ke.useRef(!1);return!r.current&&!n&&t.initialState&&(e((a=t.initialState.sorting)==null?void 0:a.sortModel),r.current=!0),m.jsx(V.Box,{sx:{width:"100%",height:t.height?t.height:t.maxHeight,maxHeight:t.maxHeight,backgroundColor:"#fff"},children:m.jsx(xo.DataGridPro,{style:{borderBottom:0},rows:t.rows||[],initialState:t.initialState||void 0,sortingOrder:["desc","asc"],columns:t.columns.map(o=>({...o,disableColumnMenu:!0,disableReorder:!0,renderHeader:i=>m.jsx(Uu,{sortModel:n,params:i}),hideSortIcons:!0})),sortModel:n,onSortModelChange:o=>e(o),rowHeight:t.rowHeight?t.rowHeight:Ju,columnHeaderHeight:t.columnHeaderHeight?t.columnHeaderHeight:el,slotProps:t.componentsProps,slots:{moreActionsIcon:void 0},sx:{"&.MuiDataGrid-root":{border:0},borderRadius:0,".MuiDataGrid-overlay ":{color:"#0060bb"},".Mui-selected":{backgroundColor:"#cde6f7 !important"},".MuiDataGrid-columnHeaders":t.borderTop?{borderTop:"1px solid rgb(224, 224, 224)"}:{}},getRowId:t.id,onRowDoubleClick:t.onRowDoubleClick,localeText:{noRowsLabel:t.noDataText?t.noDataText:"There are no results to display. Please update your search criteria"},disableColumnReorder:!0,hideFooter:!0})})})(()=>({})),rl=({gray:t})=>m.jsx(V.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:m.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"})}),nl=({children:t,closeIcon:n,fullWidth:e,hideOverflow:r,isOpen:a,maxWidth:o,minWidth:i,onDelete:s,onClose:u,actions:f,leftHeaderActions:h,title:d})=>{var x;const g=ke.useRef(null);return m.jsx(m.Fragment,{children:m.jsxs(V.Dialog,{fullWidth:e||!1,maxWidth:o||"xl",open:a,children:[m.jsxs(V.DialogContent,{sx:r?{padding:0,minWidth:i||400,overflowY:"hidden"}:{padding:0,minWidth:i||400},children:[m.jsx("div",{style:{width:"100%",backgroundColor:"#6e7780"},children:m.jsxs("div",{className:"displayFlex",style:{alignItems:"center",minHeight:28},children:[s&&m.jsx(V.Tooltip,{title:"Delete",children:m.jsx(V.IconButton,{"aria-label":"delete",onClick:s,sx:{borderRadius:0,color:"#ffffff",padding:"9px 8px"},children:m.jsx(rl,{})})}),m.jsx("div",{ref:g,children:h}),m.jsx("div",{className:"flex1",style:{marginRight:((x=g==null?void 0:g.current)==null?void 0:x.offsetWidth)||0},children:m.jsx(V.Typography,{variant:"body1",textAlign:"center",style:{color:"#ffffff"},children:d})}),m.jsx("div",{children:n&&m.jsx(V.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,padding:"7px 6px",":hover":{backgroundColor:"#c42b1c",color:"#ffffff",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{u&&u()},children:m.jsx(qa,{style:{color:"#ffffff",height:20}})})})]})}),m.jsx("div",{className:"displayFlex",style:{alignItems:"baseline",minHeight:120},children:m.jsx("div",{className:"flex1 formBody",children:t})})]}),m.jsx(V.DialogActions,{children:f})]})})},al=({leftComponents:t,rightComponents:n,onCancel:e,onClose:r,onOK:a,onSaveDisable:o})=>m.jsxs(m.Fragment,{children:[t&&m.jsx(m.Fragment,{children:t}),m.jsx("div",{className:"flex1"}),n&&m.jsx(m.Fragment,{children:n}),e&&m.jsx(Ve,{onClick:e,color:"secondary",size:"small",children:"Cancel"}),a&&m.jsx("div",{style:{marginRight:5},children:m.jsx(Ve,{color:"primary",disabled:o||!1,onClick:a,size:"small",children:"OK"})}),r&&m.jsx(Ve,{variant:"outlined",onClick:r,size:"small",children:"Close"})]}),ol=({overlay:t})=>m.jsx(m.Fragment,{children:m.jsx(V.Backdrop,{open:!0,invisible:!t,style:{zIndex:1350},children:m.jsx(V.CircularProgress,{style:{position:"absolute",left:"calc(50vw - 20px)",top:"calc(50vh - 20px)"}})})}),sl=({align:t,bold:n,color:e,displayAsQty:r,hideNoValue:a,notCurrency:o,showNegative:i,showPrefix:s,value:u})=>m.jsx(m.Fragment,{children:a&&!u?m.jsx(m.Fragment,{}):m.jsxs(V.Typography,{align:t,fontWeight:n?600:void 0,color:e||void 0,children:[i&&u!==0&&"(",m.jsx(Fr.NumericFormat,{value:(u||0).toFixed(r?0:2),displayType:"text",thousandSeparator:!o,prefix:s?"£":void 0,fixedDecimalScale:!o}),i&&u!==0&&")"]})}),za=ke.forwardRef((t,n)=>{const{onChange:e,...r}=t;return m.jsx(Fr.NumericFormat,{...r,getInputRef:n,onValueChange:a=>{e({target:{name:t.name,value:a.value}})},allowNegative:!1})});za.displayName="LCTNumberInputNumericFormat";const il=({autoFocus:t,disabled:n,placeholder:e,size:r,updater:a,value:o,width:i,...s})=>m.jsx(m.Fragment,{children:m.jsx(V.OutlinedInput,{autoFocus:t,disabled:n,inputComponent:za,onBlur:u=>{a&&a(u.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})}),cl=({autoComplete:t,disabled:n,fullWidth:e,id:r,items:a,onUpdate:o,size:i,value:s,...u})=>{if(t)console.log("autoComplete");else return m.jsx(V.Select,{disabled:n,fullWidth:e,onChange:f=>{s=f.target.value,o(s)},size:i||"small",value:a?s:"",...u,children:a.map((f,h)=>m.jsx(V.MenuItem,{value:f.value,children:f.name},`${r}-${h}`))})};function ul(t){return typeof t.main=="string"}function ll(t,n=[]){if(!ul(t))return!1;for(const e of n)if(!t.hasOwnProperty(e)||typeof t[e]!="string")return!1;return!0}function fl(t=[]){return([,n])=>n&&ll(n,t)}function dl(t){return Ut("MuiTypography",t)}ka("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hl={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ml=Wu(),gl=t=>{const{align:n,gutterBottom:e,noWrap:r,paragraph:a,variant:o,classes:i}=t,s={root:["root",o,t.align!=="inherit"&&`align${Ge(n)}`,e&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return Ea(s,dl,i)},yl=Wa("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${Ge(e.align)}`],e.noWrap&&n.noWrap,e.gutterBottom&&n.gutterBottom,e.paragraph&&n.paragraph]}})(Ba(({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(fl()).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${Ge(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}}]}})),ra={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ga=st.forwardRef(function(n,e){const{color:r,...a}=Ya({props:n,name:"MuiTypography"}),o=!hl[r],i=ml({...a,...o&&{color:r}}),{align:s="inherit",className:u,component:f,gutterBottom:h=!1,noWrap:d=!1,paragraph:g=!1,variant:x="body1",variantMapping:k=ra,...w}=i,y={...i,align:s,color:r,className:u,component:f,gutterBottom:h,noWrap:d,paragraph:g,variant:x,variantMapping:k},O=f||(g?"p":k[x]||ra[x])||"span",_=gl(y);return m.jsx(yl,{as:O,ref:e,className:Da(_.root,u),...w,ownerState:y,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...w.style}})});process.env.NODE_ENV!=="production"&&(Ga.propTypes={align:W.oneOf(["center","inherit","justify","left","right"]),children:W.node,classes:W.object,className:W.string,color:W.oneOfType([W.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),W.string]),component:W.elementType,gutterBottom:W.bool,noWrap:W.bool,paragraph:W.bool,style:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),variant:W.oneOfType([W.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),W.string]),variantMapping:W.object});const pl=t=>m.jsx(Ga,{variant:t.variant||"body1",...t,children:t.children});exports.LCTAppBar=ko;exports.LCTButton=Ve;exports.LCTCurrencyInput=Mo;exports.LCTDataGrid=tl;exports.LCTDatePicker=Qu;exports.LCTDateRangePicker=Ku;exports.LCTDialog=en;exports.LCTFooter=al;exports.LCTFormDialog=nl;exports.LCTLoader=ol;exports.LCTNumberDisplay=sl;exports.LCTNumberInput=il;exports.LCTSelect=cl;exports.LCTTypography=pl;exports.lctFormatDate=re;exports.lctGetLocalDisplayFormattedDate=lc;exports.lctGetLocalDisplayFormattedDateTime=fc;exports.lctGetLocale=uc;exports.lctParseDate=yt;
|
|
106
|
+
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 $u(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Be=t=>{try{return t()}catch{}},Iu=(t="mui")=>eu(t);function Mr(t,n,e,r){if(!n)return;n=n===!0?{}:n;const a=r==="dark"?"dark":"light";if(!e){t[r]=Pu({...n,palette:{mode:a,...n==null?void 0:n.palette}});return}const{palette:o,...i}=Nr({...e,palette:{mode:a,...n==null?void 0:n.palette}});return t[r]={...n,palette:o,opacity:{...Ha(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Va(a)},i}function Nu(t={},...n){const{colorSchemes:e={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:i=Ou,colorSchemeSelector:s=e.light&&e.dark?"media":void 0,rootSelector:u=":root",...f}=t,h=Object.keys(e)[0],d=r||(e.light&&h!=="light"?"light":h),g=Iu(o),{[d]:x,light:k,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.`:et(21,d));const M=Mr(O,_,f,d);k&&!O.light&&Mr(O,k,void 0,"light"),w&&!O.dark&&Mr(O,w,void 0,"dark");let D={defaultColorScheme:d,...M,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:u,getCssVar:g,colorSchemes:O,font:{...hu(M.typography),...M.font},spacing:$u(f.spacing)};Object.keys(D.colorSchemes).forEach(E=>{const c=D.colorSchemes[E].palette,T=R=>{const A=R.split("-"),ne=A[1],v=A[2];return g(R,c[ne][v])};if(c.mode==="light"&&(p(c.common,"background","#fff"),p(c.common,"onBackground","#000")),c.mode==="dark"&&(p(c.common,"background","#000"),p(c.common,"onBackground","#fff")),ju(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){p(c.Alert,"errorColor",ye(c.error.light,.6)),p(c.Alert,"infoColor",ye(c.info.light,.6)),p(c.Alert,"successColor",ye(c.success.light,.6)),p(c.Alert,"warningColor",ye(c.warning.light,.6)),p(c.Alert,"errorFilledBg",T("palette-error-main")),p(c.Alert,"infoFilledBg",T("palette-info-main")),p(c.Alert,"successFilledBg",T("palette-success-main")),p(c.Alert,"warningFilledBg",T("palette-warning-main")),p(c.Alert,"errorFilledColor",Be(()=>c.getContrastText(c.error.main))),p(c.Alert,"infoFilledColor",Be(()=>c.getContrastText(c.info.main))),p(c.Alert,"successFilledColor",Be(()=>c.getContrastText(c.success.main))),p(c.Alert,"warningFilledColor",Be(()=>c.getContrastText(c.warning.main))),p(c.Alert,"errorStandardBg",pe(c.error.light,.9)),p(c.Alert,"infoStandardBg",pe(c.info.light,.9)),p(c.Alert,"successStandardBg",pe(c.success.light,.9)),p(c.Alert,"warningStandardBg",pe(c.warning.light,.9)),p(c.Alert,"errorIconColor",T("palette-error-main")),p(c.Alert,"infoIconColor",T("palette-info-main")),p(c.Alert,"successIconColor",T("palette-success-main")),p(c.Alert,"warningIconColor",T("palette-warning-main")),p(c.AppBar,"defaultBg",T("palette-grey-100")),p(c.Avatar,"defaultBg",T("palette-grey-400")),p(c.Button,"inheritContainedBg",T("palette-grey-300")),p(c.Button,"inheritContainedHoverBg",T("palette-grey-A100")),p(c.Chip,"defaultBorder",T("palette-grey-400")),p(c.Chip,"defaultAvatarColor",T("palette-grey-700")),p(c.Chip,"defaultIconColor",T("palette-grey-700")),p(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),p(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),p(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),p(c.LinearProgress,"primaryBg",pe(c.primary.main,.62)),p(c.LinearProgress,"secondaryBg",pe(c.secondary.main,.62)),p(c.LinearProgress,"errorBg",pe(c.error.main,.62)),p(c.LinearProgress,"infoBg",pe(c.info.main,.62)),p(c.LinearProgress,"successBg",pe(c.success.main,.62)),p(c.LinearProgress,"warningBg",pe(c.warning.main,.62)),p(c.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.11)`),p(c.Slider,"primaryTrack",pe(c.primary.main,.62)),p(c.Slider,"secondaryTrack",pe(c.secondary.main,.62)),p(c.Slider,"errorTrack",pe(c.error.main,.62)),p(c.Slider,"infoTrack",pe(c.info.main,.62)),p(c.Slider,"successTrack",pe(c.success.main,.62)),p(c.Slider,"warningTrack",pe(c.warning.main,.62));const R=qt(c.background.default,.8);p(c.SnackbarContent,"bg",R),p(c.SnackbarContent,"color",Be(()=>c.getContrastText(R))),p(c.SpeedDialAction,"fabHoverBg",qt(c.background.paper,.15)),p(c.StepConnector,"border",T("palette-grey-400")),p(c.StepContent,"border",T("palette-grey-400")),p(c.Switch,"defaultColor",T("palette-common-white")),p(c.Switch,"defaultDisabledColor",T("palette-grey-100")),p(c.Switch,"primaryDisabledColor",pe(c.primary.main,.62)),p(c.Switch,"secondaryDisabledColor",pe(c.secondary.main,.62)),p(c.Switch,"errorDisabledColor",pe(c.error.main,.62)),p(c.Switch,"infoDisabledColor",pe(c.info.main,.62)),p(c.Switch,"successDisabledColor",pe(c.success.main,.62)),p(c.Switch,"warningDisabledColor",pe(c.warning.main,.62)),p(c.TableCell,"border",pe(Yt(c.divider,1),.88)),p(c.Tooltip,"bg",Yt(c.grey[700],.92))}if(c.mode==="dark"){p(c.Alert,"errorColor",pe(c.error.light,.6)),p(c.Alert,"infoColor",pe(c.info.light,.6)),p(c.Alert,"successColor",pe(c.success.light,.6)),p(c.Alert,"warningColor",pe(c.warning.light,.6)),p(c.Alert,"errorFilledBg",T("palette-error-dark")),p(c.Alert,"infoFilledBg",T("palette-info-dark")),p(c.Alert,"successFilledBg",T("palette-success-dark")),p(c.Alert,"warningFilledBg",T("palette-warning-dark")),p(c.Alert,"errorFilledColor",Be(()=>c.getContrastText(c.error.dark))),p(c.Alert,"infoFilledColor",Be(()=>c.getContrastText(c.info.dark))),p(c.Alert,"successFilledColor",Be(()=>c.getContrastText(c.success.dark))),p(c.Alert,"warningFilledColor",Be(()=>c.getContrastText(c.warning.dark))),p(c.Alert,"errorStandardBg",ye(c.error.light,.9)),p(c.Alert,"infoStandardBg",ye(c.info.light,.9)),p(c.Alert,"successStandardBg",ye(c.success.light,.9)),p(c.Alert,"warningStandardBg",ye(c.warning.light,.9)),p(c.Alert,"errorIconColor",T("palette-error-main")),p(c.Alert,"infoIconColor",T("palette-info-main")),p(c.Alert,"successIconColor",T("palette-success-main")),p(c.Alert,"warningIconColor",T("palette-warning-main")),p(c.AppBar,"defaultBg",T("palette-grey-900")),p(c.AppBar,"darkBg",T("palette-background-paper")),p(c.AppBar,"darkColor",T("palette-text-primary")),p(c.Avatar,"defaultBg",T("palette-grey-600")),p(c.Button,"inheritContainedBg",T("palette-grey-800")),p(c.Button,"inheritContainedHoverBg",T("palette-grey-700")),p(c.Chip,"defaultBorder",T("palette-grey-700")),p(c.Chip,"defaultAvatarColor",T("palette-grey-300")),p(c.Chip,"defaultIconColor",T("palette-grey-300")),p(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),p(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),p(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),p(c.LinearProgress,"primaryBg",ye(c.primary.main,.5)),p(c.LinearProgress,"secondaryBg",ye(c.secondary.main,.5)),p(c.LinearProgress,"errorBg",ye(c.error.main,.5)),p(c.LinearProgress,"infoBg",ye(c.info.main,.5)),p(c.LinearProgress,"successBg",ye(c.success.main,.5)),p(c.LinearProgress,"warningBg",ye(c.warning.main,.5)),p(c.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.13)`),p(c.Slider,"primaryTrack",ye(c.primary.main,.5)),p(c.Slider,"secondaryTrack",ye(c.secondary.main,.5)),p(c.Slider,"errorTrack",ye(c.error.main,.5)),p(c.Slider,"infoTrack",ye(c.info.main,.5)),p(c.Slider,"successTrack",ye(c.success.main,.5)),p(c.Slider,"warningTrack",ye(c.warning.main,.5));const R=qt(c.background.default,.98);p(c.SnackbarContent,"bg",R),p(c.SnackbarContent,"color",Be(()=>c.getContrastText(R))),p(c.SpeedDialAction,"fabHoverBg",qt(c.background.paper,.15)),p(c.StepConnector,"border",T("palette-grey-600")),p(c.StepContent,"border",T("palette-grey-600")),p(c.Switch,"defaultColor",T("palette-grey-300")),p(c.Switch,"defaultDisabledColor",T("palette-grey-600")),p(c.Switch,"primaryDisabledColor",ye(c.primary.main,.55)),p(c.Switch,"secondaryDisabledColor",ye(c.secondary.main,.55)),p(c.Switch,"errorDisabledColor",ye(c.error.main,.55)),p(c.Switch,"infoDisabledColor",ye(c.info.main,.55)),p(c.Switch,"successDisabledColor",ye(c.success.main,.55)),p(c.Switch,"warningDisabledColor",ye(c.warning.main,.55)),p(c.TableCell,"border",ye(Yt(c.divider,1),.68)),p(c.Tooltip,"bg",Yt(c.grey[700],.92))}Qe(c.background,"default"),Qe(c.background,"paper"),Qe(c.common,"background"),Qe(c.common,"onBackground"),Qe(c,"divider"),Object.keys(c).forEach(R=>{const A=c[R];A&&typeof A=="object"&&(A.main&&p(c[R],"mainChannel",Dt(Pt(A.main))),A.light&&p(c[R],"lightChannel",Dt(Pt(A.light))),A.dark&&p(c[R],"darkChannel",Dt(Pt(A.dark))),A.contrastText&&p(c[R],"contrastTextChannel",Dt(Pt(A.contrastText))),R==="text"&&(Qe(c[R],"primary"),Qe(c[R],"secondary")),R==="action"&&(A.active&&Qe(c[R],"active"),A.selected&&Qe(c[R],"selected")))})}),D=n.reduce((E,c)=>Ne(E,c),D);const b={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:i,getSelector:Ru(D)},{vars:Y,generateThemeVars:U,generateStyleSheets:L}=nu(D,b);return D.vars=Y,Object.entries(D.colorSchemes[D.defaultColorScheme]).forEach(([E,c])=>{D[E]=c}),D.generateThemeVars=U,D.generateStyleSheets=L,D.generateSpacing=function(){return _a(f.spacing,Gr(this))},D.getColorSchemeSelector=au(s),D.spacing=D.generateSpacing(),D.shouldSkipGeneratingVar=i,D.unstable_sxConfig={...Ht,...f==null?void 0:f.unstable_sxConfig},D.unstable_sx=function(c){return wt({sx:c,theme:this})},D.toRuntimeSource=Aa,D}function ta(t,n,e){t.colorSchemes&&e&&(t.colorSchemes[n]={...e!==!0&&e,palette:Ur({...e===!0?{}:e.palette,mode:n})})}function Fu(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",u=a==null?void 0:a[s],f={...a,...e?{[s]:{...typeof u!="boolean"&&u,palette:e}}:void 0};if(r===!1){if(!("colorSchemes"in t))return Nr(t,...n);let h=e;"palette"in t||f[s]&&(f[s]!==!0?h=f[s].palette:s==="dark"&&(h={mode:"dark"}));const d=Nr({...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},ta(d,"dark",f.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:d.palette},ta(d,"light",f.light)),d}return!e&&!("light"in f)&&s==="light"&&(f.light=!0),Nu({...i,colorSchemes:f,defaultColorScheme:s,...typeof r!="boolean"&&r},...n)}const Lu=Fu(),Au="$$material";function Hu(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Vu=t=>Hu(t)&&t!=="classes",Wa=V0({themeId:Au,defaultTheme:Lu,rootShouldForwardProp:Vu});function Wu(){return C0}const Ba=J0;process.env.NODE_ENV!=="production"&&(W.node,W.object.isRequired);function Ya(t){return U0(t)}function Bu(t){return Ut("MuiSvgIcon",t)}ka("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Yu=t=>{const{color:n,fontSize:e,classes:r}=t,a={root:["root",n!=="inherit"&&`color${Ge(n)}`,`fontSize${Ge(e)}`]};return Ea(a,Bu,r)},qu=Wa("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.color!=="inherit"&&n[`color${Ge(e.color)}`],n[`fontSize${Ge(e.fontSize)}`]]}})(Ba(({theme:t})=>{var n,e,r,a,o,i,s,u,f,h,d,g,x,k;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:((u=(s=t.typography)==null?void 0:s.pxToRem)==null?void 0:u.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:(g=(d=(t.vars??t).palette)==null?void 0:d.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(k=(x=(t.vars??t).palette)==null?void 0:x.action)==null?void 0:k.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Nt=st.forwardRef(function(n,e){const r=Ya({props:n,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:d,viewBox:g="0 0 24 24",...x}=r,k=st.isValidElement(a)&&a.type==="svg",w={...r,color:i,component:s,fontSize:u,instanceFontSize:n.fontSize,inheritViewBox:h,viewBox:g,hasSvgAsChild:k},y={};h||(y.viewBox=g);const O=Yu(w);return m.jsxs(qu,{as:s,className:Da(O.root,o),focusable:"false",color:f,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:e,...y,...x,...k&&a.props,ownerState:w,children:[k?a.props.children:a,d?m.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Nt.propTypes={children:W.node,classes:W.object,className:W.string,color:W.oneOfType([W.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),W.string]),component:W.elementType,fontSize:W.oneOfType([W.oneOf(["inherit","large","medium","small"]),W.string]),htmlColor:W.string,inheritViewBox:W.bool,shapeRendering:W.string,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),titleAccess:W.string,viewBox:W.string});Nt&&(Nt.muiName="SvgIcon");function Jr(t,n){function e(r,a){return m.jsx(Nt,{"data-testid":`${n}Icon`,ref:a,...r,children:t})}return process.env.NODE_ENV!=="production"&&(e.displayName=`${n}Icon`),e.muiName=Nt.muiName,st.memo(st.forwardRef(e))}const qa=Jr(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"}),"CloseOutlined");function zu(){return m.jsxs(V.SvgIcon,{viewBox:"0 0 16 16","aria-hidden":"true",height:"16",width:"16",style:{width:16,height:16},children:[m.jsx("path",{fill:"#1E365E",d:"M0 0h16v16H0z"}),m.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 Gu(){return m.jsx(V.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:m.jsxs("g",{fill:"#FFBF00",fillRule:"evenodd",transform:"translate(1 1)",children:[m.jsx("path",{d:"m9.5.5 9 16h-18z",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"m9.5 10.5v-5",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"9.5",cy:"13.5",fill:"#000000",r:"1"})]})})}const en=({actions:t,children:n,closeIcon:e,hideOverflow:r,isOpen:a,key:o,maxWidth:i,minWidth:s,onClose:u,showWarningIcon:f,title:h})=>m.jsx(m.Fragment,{children:m.jsxs(V.Dialog,{open:a,maxWidth:i||"xl",children:[m.jsxs(V.DialogContent,{sx:r?{padding:0,minWidth:s||400,overflowY:"hidden"}:{padding:0,minWidth:s||400},children:[m.jsx(V.DialogTitle,{style:{backgroundColor:"#f0f1f2",padding:0},children:m.jsxs("div",{style:{alignItems:"center",display:"flex",minHeight:28,paddingLeft:8,verticalAlign:"center"},children:[m.jsx(zu,{}),m.jsx("div",{style:{flex:1,paddingLeft:5},children:m.jsx(V.Typography,{variant:"body1",children:h})}),m.jsx("div",{children:e&&m.jsx(V.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,":hover":{backgroundColor:"#c42b1c",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{u&&u()},children:m.jsx(qa,{style:{height:20}})})})]})}),m.jsxs("div",{style:{display:"flex",minHeight:120},children:[!!f&&m.jsx("div",{style:{marginLeft:15,marginTop:"auto",marginBottom:"auto"},children:m.jsx(Gu,{})}),m.jsx("div",{style:{flex:1,marginTop:"auto",marginBottom:"auto",marginLeft:15,marginRight:15},children:n})]})]}),t&&m.jsx(V.DialogActions,{style:{borderTop:"1px solid rgba(224, 224, 224, 1)",backgroundColor:"rgb(241, 243, 249)"},children:t})]},o)}),Qu=({disabled:t,fullWidth:n,isUTC:e,startOfDate:r,endOfDate:a,dateOnly:o,onUpdate:i,additionalActions:s,size:u,validate30Days:f,validate:h,value:d,locale:g})=>{var L;const[x,k]=ke.useState(null),[w,y]=ke.useState(null),[O,_]=ke.useState(null),[M,D]=ke.useState(null),[b,Y]=ke.useState(!1),U=g?g.formatLong.date({width:"short"}).toLowerCase().replaceAll("m","M"):rt;return ke.useEffect(()=>{g&&(y(d&&new Date(d)),_(d&&B.format(new Date(d),U)),d||(_(null),i(null)))},[U,d,g]),m.jsxs(m.Fragment,{children:[m.jsx(V.TextField,{onChange:E=>{const c=E.target.value;(/^[0-9/]+$/.test(c)||c===""||c.length<2)&&c.split("/").length<=3&&_(c)},placeholder:g?g.formatLong.date({width:"short"}).toLowerCase():void 0,onKeyDown:E=>{E.code==="Backspace"&&O&&O[(O==null?void 0:O.length)-1]==="/"&&_(E.target.value.substring(0,E.target.value.length-1))},onKeyUp:E=>{const c=E.target.value,T=/^(?!.*\/\/)[0-9/]+$/;let R=c.replace("-","/");const A=R.length;E.code==="Backspace"||E.code==="Delete"||E.code==="Slash"&&R.split("/").length<3||T.test(R)&&(A===2&&!R.includes("/")&&(R=R+"/"),A>4&&R.split("/")[1].length===2&&R.split("/").length<3&&(R=R+"/"),_(R))},onBlur:E=>{const c=E.target.value;if(c!==d){const T=yt(c,Mt,U,!0);if(d&&T&&f&&B.differenceInDays(new Date(T),new Date)>30&&JSON.stringify(re(T?new Date(T):null,r,a,e,o))!==JSON.stringify(re(w?new Date(w):null,r,a,e,o))&&D({keepButton:!0,message:"Selected date is in the future.",originalValue:d}),h){const R=h(T||null);R&&D(R)}y(T&&new Date(T)),_(T&&B.format(new Date(T),U)),i(re(T?new Date(T):null,r,a,e,o))}},value:O||"",disabled:t,sx:{width:n?"100%":110},size:u||"small",slotProps:{input:{endAdornment:m.jsx(V.IconButton,{sx:{borderRadius:0,padding:"2px",backgroundColor:t?"#f3f3f3 !important":"inherit",":hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},":focus":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},onClick:E=>{k(E.currentTarget),Y(!0)},disabled:t,disableFocusRipple:!0,disableRipple:!0,children:m.jsx(_r,{})})}}}),m.jsx(V.Popper,{open:b,sx:{zIndex:1500},anchorEl:x,children:m.jsx(V.ClickAwayListener,{onClickAway:()=>{Y(!1)},children:m.jsx(V.Paper,{children:m.jsxs("div",{className:"displayFlex",style:{flexDirection:"column",alignItems:"center",backgroundColor:"#fff"},children:[m.jsx(Gt.LocalizationProvider,{dateAdapter:va,adapterLocale:g,children:m.jsx(Gt.DateCalendar,{value:w?new Date(w):null,onChange:(E,c)=>{c!=="partial"&&Y(!1),d&&f&&B.differenceInDays(new Date(E),new Date)>30&&D({keepButton:!0,message:"Selected date is in the future.",originalValue:d});const T=E||null;if(h){const R=h(T);R&&D(R)}y(d),_(T&&B.format(new Date(T),U)),i(re(T?new Date(T):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))&&m.jsxs("div",{className:"displayFlex",style:{paddingBottom:10},children:[(s==null?void 0:s.showToday)&&m.jsx(Ve,{onClick:()=>{const E=new Date;y(E),i(re(E?new Date(E):null,r,a,e,o)),Y(!1)},size:"small",children:"Today"}),(s==null?void 0:s.customActions)&&((L=s==null?void 0:s.customActions)==null?void 0:L.map(E=>m.jsx("div",{style:{paddingLeft:5},children:m.jsx(Ve,{onClick:()=>{y(E.value),i(re(E.value?new Date(E.value):null,r,a,e,o)),Y(!1)},size:"small",children:E.label})}))),(s==null?void 0:s.showClear)&&m.jsx("div",{style:{paddingLeft:5},children:m.jsx(Ve,{onClick:()=>{y(null),_(""),Y(!1),i(null),Y(!1)},variant:"outlined",color:"secondary",size:"small",children:"Clear"})})]})]})})})}),m.jsx(en,{actions:m.jsxs(m.Fragment,{children:[(M==null?void 0:M.keepButton)&&m.jsx("div",{style:{marginRight:5},children:m.jsx(Ve,{onClick:()=>{D(null)},children:"Keep Value"})}),m.jsx(Ve,{variant:"outlined",color:"secondary",onClick:()=>{const E=M==null?void 0:M.originalValue;i(E||null),y(E),D(null)},children:"Revert"})]}),isOpen:!!M,onClose:()=>D(null),showWarningIcon:!0,title:"Warning",children:m.jsx(V.Typography,{children:M==null?void 0:M.message})})]})},Ku=({disabled:t,fullWidth:n,isUTC:e,startOfDate:r,endOfDate:a,dateOnly:o,onUpdate:i,additionalActions:s,size:u,validate30Days:f,validate:h,fromDate:d,toDate:g,locale:x,calendars:k})=>{var ne;const[w,y]=ke.useState(null),[O,_]=ke.useState(null),[M,D]=ke.useState(null),[b,Y]=ke.useState(null),[U,L]=ke.useState(null),[E,c]=ke.useState(null),[T,R]=ke.useState(!1),A=x?x.formatLong.date({width:"short"}).toLowerCase().replaceAll("m","M"):rt;return ke.useEffect(()=>{_(d&&new Date(d)),D(g&&new Date(g)),Y(d&&B.format(new Date(d),A)),L(g&&B.format(new Date(g),A)),!d&&!g?(Y(null),L(null),i(null,null)):d?g||(L(null),i(re(d?new Date(d):null,!0,a,e,o),null)):(Y(null),i(null,re(g?new Date(g):null,r,!0,e,o)))},[d,g]),m.jsxs(m.Fragment,{children:[m.jsx(V.TextField,{onChange:v=>{const j=v.target.value;(/^[0-9/]+$/.test(j)||j===""||j.length<2)&&j.split("/").length<=3&&Y(j)},placeholder:x?x.formatLong.date({width:"short"}).toLowerCase():void 0,onKeyDown:v=>{v.code==="Backspace"&&b&&b[(b==null?void 0:b.length)-1]==="/"&&Y(v.target.value.substring(0,v.target.value.length-1))},onKeyUp:v=>{const j=v.target.value,P=/^(?!.*\/\/)[0-9/]+$/;let z=j.replace("-","/");const be=z.length;v.code==="Backspace"||v.code==="Delete"||v.code==="Slash"&&z.split("/").length<3||P.test(z)&&(be===2&&!z.includes("/")&&(z=z+"/"),be>4&&z.split("/")[1].length===2&&z.split("/").length<3&&(z=z+"/"),Y(z))},onBlur:v=>{const j=v.target.value;if(j!==d){const P=yt(j,Mt,A,!0),z=yt(U,Mt,A,!0);if(z&&P&&B.isAfter(new Date(P),new Date(z))&&c({fromDate:!0,toDate:!1,keepButton:!1,message:"Selected To Date is before From Date.",originalValue:d}),d&&P&&f&&B.differenceInDays(new Date(P),new Date)>30&&JSON.stringify(re(P?new Date(P):null,!0,a,e,o))!==JSON.stringify(re(O?new Date(O):null,!0,a,e,o))&&c({fromDate:!0,toDate:!1,keepButton:!0,message:"Selected date is in the future.",originalValue:d}),h){const be=h(P||null);be&&c(be)}_(P&&new Date(P)),Y(P&&B.format(new Date(P),A)),i(re(P?new Date(P):null,!0,a,e,o),re(M?new Date(M):null,r,!0,e,o))}},value:b||"",disabled:t,sx:{width:n?"100%":110},size:u||"small",slotProps:{input:{endAdornment:m.jsx(V.IconButton,{sx:{borderRadius:0,padding:"2px",backgroundColor:t?"#f3f3f3 !important":"inherit",":hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},":focus":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},onClick:v=>{y(v.currentTarget),R(!0)},disabled:t,disableFocusRipple:!0,disableRipple:!0,children:m.jsx(_r,{})})}}}),m.jsx("div",{style:{margin:"auto"},children:m.jsx(V.Typography,{style:{paddingLeft:8,paddingRight:5},children:"To"})}),m.jsx(V.TextField,{onChange:v=>{const j=v.target.value;(/^[0-9/]+$/.test(j)||j===""||j.length<2)&&j.split("/").length<=3&&L(j)},placeholder:x?x.formatLong.date({width:"short"}).toLowerCase():void 0,onKeyDown:v=>{v.code==="Backspace"&&U&&U[(U==null?void 0:U.length)-1]==="/"&&L(v.target.value.substring(0,v.target.value.length-1))},onKeyUp:v=>{const j=v.target.value,P=/^(?!.*\/\/)[0-9/]+$/;let z=j.replace("-","/");const be=z.length;v.code==="Backspace"||v.code==="Delete"||v.code==="Slash"&&z.split("/").length<3||P.test(z)&&(be===2&&!z.includes("/")&&(z=z+"/"),be>4&&z.split("/")[1].length===2&&z.split("/").length<3&&(z=z+"/"),L(z))},onBlur:v=>{const j=v.target.value;if(j!==g){const P=yt(j,Mt,A,!0),z=yt(b,Mt,A,!0);if(z&&P&&B.isBefore(new Date(P),new Date(z))&&c({fromDate:!1,toDate:!0,keepButton:!1,message:"Selected To Date is before From Date.",originalValue:g}),g&&P&&f&&B.differenceInDays(new Date(P),new Date)>30&&JSON.stringify(re(P?new Date(P):null,r,!0,e,o))!==JSON.stringify(re(M?new Date(M):null,r,!0,e,o))&&c({fromDate:!1,toDate:!0,keepButton:!0,message:"Selected date is in the future.",originalValue:g}),h){const be=h(P||null);be&&c(be)}D(P&&new Date(P)),L(P&&B.format(new Date(P),A)),i(re(O?new Date(O):null,!0,a,e,o),re(P?new Date(P):null,r,!0,e,o))}},value:U||"",disabled:t,sx:{width:n?"100%":110},size:u||"small",slotProps:{input:{endAdornment:m.jsx(V.IconButton,{sx:{borderRadius:0,padding:"2px",backgroundColor:t?"#f3f3f3 !important":"inherit",":hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},":focus":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},onClick:v=>{y(v.currentTarget),R(!0)},disabled:t,disableFocusRipple:!0,disableRipple:!0,children:m.jsx(_r,{})})}}}),m.jsx(V.Popper,{open:T,sx:{zIndex:1500},anchorEl:w,children:m.jsx(V.ClickAwayListener,{onClickAway:()=>{R(!1)},children:m.jsx(V.Paper,{style:{backgroundColor:"#fff",border:"1px solid rgba(0, 0, 0, 0.12)",borderRadius:0},children:m.jsxs("div",{className:"displayFlex dateActionButtons",style:{flexDirection:"row"},children:[((s==null?void 0:s.showToday)||(s==null?void 0:s.showYesterday)||(s==null?void 0:s.showThisWeek)||(s==null?void 0:s.showLastWeek)||(s==null?void 0:s.showThisMonth)||(s==null?void 0:s.showLastMonth)||(s==null?void 0:s.showLast30)||(s==null?void 0:s.showLast60)||(s==null?void 0:s.showLast90)||(s==null?void 0:s.customActions))&&m.jsxs("div",{className:"displayFlex",style:{flexDirection:"column",minHeight:208},children:[(s==null?void 0:s.showToday)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date;_(v),D(v),i(re(v||null,r,a,e,o),re(v||null,r,a,e,o)),R(!1)},children:"Today"}),(s==null?void 0:s.showYesterday)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=B.addDays(new Date,-1);_(v),D(v),i(re(v||null,r,a,e,o),re(v||null,r,a,e,o)),R(!1)},children:"Yesterday"}),(s==null?void 0:s.showThisWeek)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.startOfWeek(v,{weekStartsOn:1}),P=B.endOfWeek(v,{weekStartsOn:1});_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"This Week"}),(s==null?void 0:s.showLastWeek)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.startOfWeek(B.addDays(v,-7),{weekStartsOn:1}),P=B.endOfWeek(B.addDays(v,-7),{weekStartsOn:1});_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"Last Week"}),(s==null?void 0:s.showThisMonth)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.startOfMonth(v),P=B.endOfMonth(v);_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"This Month"}),(s==null?void 0:s.showLastMonth)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.startOfMonth(B.addMonths(v,-1)),P=B.endOfMonth(B.addMonths(v,-1));_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"Last Month"}),(s==null?void 0:s.showLast30)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.addDays(v,-30),P=v;_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"Last 30 days"}),(s==null?void 0:s.showLast60)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.addDays(v,-60),P=v;_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"Last 60 days"}),(s==null?void 0:s.showLast90)&&m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{const v=new Date,j=B.addDays(v,-90),P=v;_(j),D(P),i(re(j?new Date(j):null,r,a,e,o),re(P?new Date(P):null,r,a,e,o)),R(!1)},children:"Last 90 days"}),(s==null?void 0:s.customActions)&&((ne=s==null?void 0:s.customActions)==null?void 0:ne.map(v=>m.jsx(V.Button,{className:"datePickerAction",onClick:()=>{_(v.fromValue),D(v.toValue),i(re(v.fromValue?new Date(v.fromValue):null,r,a,e,o),re(v.toValue?new Date(v.toValue):null,r,a,e,o)),R(!1)},children:v.label})))]}),m.jsx("div",{className:"displayFlex",style:{flexDirection:"column",borderLeft:"1px solid #e0e0e0",alignSelf:"flex-start"},children:m.jsx(Gt.LocalizationProvider,{dateAdapter:va,adapterLocale:x,children:m.jsx(Gt.DateRangeCalendar,{value:[O?new Date(O):null,M?new Date(M):null],onChange:(v,j)=>{j!=="partial"&&R(!1);const P=v[0]?v[0]:null,z=v[1]?v[1]:null;if(h){const be=h(P);be&&c(be);const S=h(z);S&&c(S)}_(d),Y(P&&B.format(new Date(P),A)),L(z&&B.format(new Date(z),A)),i(re(P?new Date(P):null,!0,a,e,o),re(z?new Date(z):null,r,!0,e,o))},calendars:k||2,sx:{"& .MuiTypography-caption":{height:30,width:30},"& .MuiDateRangePickerDay-rangeIntervalPreview":{height:30,width:30},"& .MuiDayCalendar-slideTransition":{minHeight:220,height:220}},slotProps:{day:{style:{height:30,width:30}}}})})})]})})})}),m.jsx(en,{actions:m.jsxs(m.Fragment,{children:[(E==null?void 0:E.keepButton)&&m.jsx("div",{style:{marginRight:5},children:m.jsx(Ve,{onClick:()=>{c(null)},children:"Keep Value"})}),m.jsx(Ve,{variant:"outlined",color:"secondary",onClick:()=>{const v=E==null?void 0:E.originalValue;E!=null&&E.fromDate&&(i(v||null,g),_(v)),E!=null&&E.toDate&&(i(d,v||null),D(v)),c(null)},children:"Revert"})]}),isOpen:!!E,onClose:()=>c(null),showWarningIcon:!0,title:"Warning",children:m.jsx(V.Typography,{children:E==null?void 0:E.message})})]})},Zu=Jr(m.jsx("path",{d:"M15.88 9.29 12 13.17 8.12 9.29a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0"}),"ExpandMoreRounded"),Xu=Jr(m.jsx("path",{d:"M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L12.7 8.71a.996.996 0 0 0-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0"}),"KeyboardArrowUpRounded"),Uu=({params:t,sortModel:n})=>m.jsxs("div",{style:{display:"grid",width:"100%",height:"100%"},children:[m.jsxs("div",{style:{marginRight:"auto",marginLeft:"auto",height:5},children:[(n==null?void 0:n.find(e=>e.field===t.colDef.field&&e.sort==="asc"))&&m.jsx(Xu,{className:"tableHeaderIcon"}),(n==null?void 0:n.find(e=>e.field===t.colDef.field&&e.sort==="desc"))&&m.jsx(Zu,{className:"tableHeaderIcon"})]}),m.jsx("div",{style:{display:"block"},children:m.jsx(V.Typography,{textAlign:t.colDef.headerAlign,style:{fontWeight:500},children:t.colDef.headerName})})]}),Ju=46,el=40,tl=V.styled(t=>{var a;const[n,e]=ke.useState(void 0),r=ke.useRef(!1);return!r.current&&!n&&t.initialState&&(e((a=t.initialState.sorting)==null?void 0:a.sortModel),r.current=!0),m.jsx(V.Box,{sx:{width:"100%",height:t.height?t.height:t.maxHeight,maxHeight:t.maxHeight,backgroundColor:"#fff"},children:m.jsx(xo.DataGridPro,{style:{borderBottom:0},rows:t.rows||[],initialState:t.initialState||void 0,sortingOrder:["desc","asc"],columns:t.columns.map(o=>({...o,disableColumnMenu:!0,disableReorder:!0,renderHeader:i=>m.jsx(Uu,{sortModel:n,params:i}),hideSortIcons:!0})),sortModel:n,onSortModelChange:o=>e(o),rowHeight:t.rowHeight?t.rowHeight:Ju,columnHeaderHeight:t.columnHeaderHeight?t.columnHeaderHeight:el,slotProps:t.componentsProps,slots:{moreActionsIcon:void 0},sx:{"&.MuiDataGrid-root":{border:0},borderRadius:0,".MuiDataGrid-overlay ":{color:"#0060bb"},".Mui-selected":{backgroundColor:"#cde6f7 !important"},".MuiDataGrid-columnHeaders":t.borderTop?{borderTop:"1px solid rgb(224, 224, 224)"}:{}},getRowId:t.id,onRowDoubleClick:t.onRowDoubleClick,localeText:{noRowsLabel:t.noDataText?t.noDataText:"There are no results to display. Please update your search criteria"},disableColumnReorder:!0,hideFooter:!0})})})(()=>({})),rl=({gray:t})=>m.jsx(V.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:m.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"})}),nl=({children:t,closeIcon:n,fullWidth:e,hideOverflow:r,isOpen:a,maxWidth:o,minWidth:i,onDelete:s,onClose:u,actions:f,leftHeaderActions:h,title:d})=>{var x;const g=ke.useRef(null);return m.jsx(m.Fragment,{children:m.jsxs(V.Dialog,{fullWidth:e||!1,maxWidth:o||"xl",open:a,children:[m.jsxs(V.DialogContent,{sx:r?{padding:0,minWidth:i||400,overflowY:"hidden"}:{padding:0,minWidth:i||400},children:[m.jsx("div",{style:{width:"100%",backgroundColor:"#6e7780"},children:m.jsxs("div",{className:"displayFlex",style:{alignItems:"center",minHeight:28},children:[s&&m.jsx(V.Tooltip,{title:"Delete",children:m.jsx(V.IconButton,{"aria-label":"delete",onClick:s,sx:{borderRadius:0,color:"#ffffff",padding:"9px 8px"},children:m.jsx(rl,{})})}),m.jsx("div",{ref:g,children:h}),m.jsx("div",{className:"flex1",style:{marginRight:((x=g==null?void 0:g.current)==null?void 0:x.offsetWidth)||0},children:m.jsx(V.Typography,{variant:"body1",textAlign:"center",style:{color:"#ffffff"},children:d})}),m.jsx("div",{children:n&&m.jsx(V.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,padding:"7px 6px",":hover":{backgroundColor:"#c42b1c",color:"#ffffff",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{u&&u()},children:m.jsx(qa,{style:{color:"#ffffff",height:20}})})})]})}),m.jsx("div",{className:"displayFlex",style:{alignItems:"baseline",minHeight:120},children:m.jsx("div",{className:"flex1 formBody",children:t})})]}),m.jsx(V.DialogActions,{children:f})]})})},al=({leftComponents:t,rightComponents:n,onCancel:e,onClose:r,onOK:a,onSaveDisable:o})=>m.jsxs(m.Fragment,{children:[t&&m.jsx(m.Fragment,{children:t}),m.jsx("div",{className:"flex1"}),n&&m.jsx(m.Fragment,{children:n}),e&&m.jsx(Ve,{onClick:e,variant:"outlined",color:"secondary",size:"small",children:"Cancel"}),a&&m.jsx("div",{style:{marginRight:5},children:m.jsx(Ve,{color:"primary",disabled:o||!1,onClick:a,size:"small",children:"OK"})}),r&&m.jsx(Ve,{variant:"outlined",color:"secondary",onClick:r,size:"small",children:"Close"})]}),ol=({overlay:t})=>m.jsx(m.Fragment,{children:m.jsx(V.Backdrop,{open:!0,invisible:!t,style:{zIndex:1350},children:m.jsx(V.CircularProgress,{style:{position:"absolute",left:"calc(50vw - 20px)",top:"calc(50vh - 20px)"}})})}),sl=({align:t,bold:n,color:e,displayAsQty:r,hideNoValue:a,notCurrency:o,showNegative:i,showPrefix:s,value:u})=>m.jsx(m.Fragment,{children:a&&!u?m.jsx(m.Fragment,{}):m.jsxs(V.Typography,{align:t,fontWeight:n?600:void 0,color:e||void 0,children:[i&&u!==0&&"(",m.jsx(Fr.NumericFormat,{value:(u||0).toFixed(r?0:2),displayType:"text",thousandSeparator:!o,prefix:s?"£":void 0,fixedDecimalScale:!o}),i&&u!==0&&")"]})}),za=ke.forwardRef((t,n)=>{const{onChange:e,...r}=t;return m.jsx(Fr.NumericFormat,{...r,getInputRef:n,onValueChange:a=>{e({target:{name:t.name,value:a.value}})},allowNegative:!1})});za.displayName="LCTNumberInputNumericFormat";const il=({autoFocus:t,disabled:n,placeholder:e,size:r,updater:a,value:o,width:i,...s})=>m.jsx(m.Fragment,{children:m.jsx(V.OutlinedInput,{autoFocus:t,disabled:n,inputComponent:za,onBlur:u=>{a&&a(u.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})}),cl=({autoComplete:t,disabled:n,fullWidth:e,id:r,items:a,onUpdate:o,size:i,value:s,...u})=>{if(t)console.log("autoComplete");else return m.jsx(V.Select,{disabled:n,fullWidth:e,onChange:f=>{s=f.target.value,o(s)},size:i||"small",value:a?s:"",...u,children:a.map((f,h)=>m.jsx(V.MenuItem,{value:f.value,children:f.name},`${r}-${h}`))})};function ul(t){return typeof t.main=="string"}function ll(t,n=[]){if(!ul(t))return!1;for(const e of n)if(!t.hasOwnProperty(e)||typeof t[e]!="string")return!1;return!0}function fl(t=[]){return([,n])=>n&&ll(n,t)}function dl(t){return Ut("MuiTypography",t)}ka("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hl={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ml=Wu(),gl=t=>{const{align:n,gutterBottom:e,noWrap:r,paragraph:a,variant:o,classes:i}=t,s={root:["root",o,t.align!=="inherit"&&`align${Ge(n)}`,e&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return Ea(s,dl,i)},yl=Wa("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${Ge(e.align)}`],e.noWrap&&n.noWrap,e.gutterBottom&&n.gutterBottom,e.paragraph&&n.paragraph]}})(Ba(({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(fl()).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${Ge(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}}]}})),ra={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ga=st.forwardRef(function(n,e){const{color:r,...a}=Ya({props:n,name:"MuiTypography"}),o=!hl[r],i=ml({...a,...o&&{color:r}}),{align:s="inherit",className:u,component:f,gutterBottom:h=!1,noWrap:d=!1,paragraph:g=!1,variant:x="body1",variantMapping:k=ra,...w}=i,y={...i,align:s,color:r,className:u,component:f,gutterBottom:h,noWrap:d,paragraph:g,variant:x,variantMapping:k},O=f||(g?"p":k[x]||ra[x])||"span",_=gl(y);return m.jsx(yl,{as:O,ref:e,className:Da(_.root,u),...w,ownerState:y,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...w.style}})});process.env.NODE_ENV!=="production"&&(Ga.propTypes={align:W.oneOf(["center","inherit","justify","left","right"]),children:W.node,classes:W.object,className:W.string,color:W.oneOfType([W.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),W.string]),component:W.elementType,gutterBottom:W.bool,noWrap:W.bool,paragraph:W.bool,style:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),variant:W.oneOfType([W.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),W.string]),variantMapping:W.object});const pl=t=>m.jsx(Ga,{variant:t.variant||"body1",...t,children:t.children});exports.LCTAppBar=ko;exports.LCTButton=Ve;exports.LCTCurrencyInput=Mo;exports.LCTDataGrid=tl;exports.LCTDatePicker=Qu;exports.LCTDateRangePicker=Ku;exports.LCTDialog=en;exports.LCTFooter=al;exports.LCTFormDialog=nl;exports.LCTLoader=ol;exports.LCTNumberDisplay=sl;exports.LCTNumberInput=il;exports.LCTSelect=cl;exports.LCTTypography=pl;exports.lctFormatDate=re;exports.lctGetLocalDisplayFormattedDate=lc;exports.lctGetLocalDisplayFormattedDateTime=fc;exports.lctGetLocale=uc;exports.lctParseDate=yt;
|
|
107
107
|
//# sourceMappingURL=index.cjs.js.map
|