@js-smart/react-kit 5.4.0 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/index.mjs +5 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -67,7 +67,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:je(18,`(${t})`));return
|
|
|
67
67
|
`)):console.error([`MUI: The \`theme.${t}\` 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.${t}\` as a number.`].join(`
|
|
68
68
|
`)));const u=o[c];return i>=0?u:typeof u=="number"?-u:`-${u}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
69
69
|
`)),()=>{})}function Qt(e){return at(e,"spacing",8,"spacing")}function st(e,t){return typeof t=="string"||t==null?t:e(t)}function Po(e,t){return r=>e.reduce((n,o)=>(n[o]=st(t,r),n),{})}function ko(e,t,r,n){if(!t.includes(r))return null;const o=Ao(r),i=Po(o,n),c=e[r];return ke(e,c,i)}function cn(e,t){const r=Qt(e.theme);return Object.keys(e).map(n=>ko(e,t,n,r)).reduce(ot,{})}function ie(e){return cn(e,vt)}ie.propTypes=process.env.NODE_ENV!=="production"?vt.reduce((e,t)=>(e[t]=De,e),{}):{};ie.filterProps=vt;function ae(e){return cn(e,St)}ae.propTypes=process.env.NODE_ENV!=="production"?St.reduce((e,t)=>(e[t]=De,e),{}):{};ae.filterProps=St;process.env.NODE_ENV!=="production"&&$o.reduce((e,t)=>(e[t]=De,e),{});function Et(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?ot(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function xe(e){return typeof e!="number"?e:`${e}px solid`}function Oe(e,t){return le({prop:e,themeKey:"borders",transform:t})}const Io=Oe("border",xe),jo=Oe("borderTop",xe),Mo=Oe("borderRight",xe),Do=Oe("borderBottom",xe),No=Oe("borderLeft",xe),Bo=Oe("borderColor"),Fo=Oe("borderTopColor"),Lo=Oe("borderRightColor"),Vo=Oe("borderBottomColor"),zo=Oe("borderLeftColor"),Yo=Oe("outline",xe),Uo=Oe("outlineColor"),Ct=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=at(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:st(t,n)});return ke(e,e.borderRadius,r)}return null};Ct.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:De}:{};Ct.filterProps=["borderRadius"];Et(Io,jo,Mo,Do,No,Bo,Fo,Lo,Vo,zo,Ct,Yo,Uo);const Tt=e=>{if(e.gap!==void 0&&e.gap!==null){const t=at(e.theme,"spacing",8,"gap"),r=n=>({gap:st(t,n)});return ke(e,e.gap,r)}return null};Tt.propTypes=process.env.NODE_ENV!=="production"?{gap:De}:{};Tt.filterProps=["gap"];const xt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=at(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:st(t,n)});return ke(e,e.columnGap,r)}return null};xt.propTypes=process.env.NODE_ENV!=="production"?{columnGap:De}:{};xt.filterProps=["columnGap"];const Ot=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=at(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:st(t,n)});return ke(e,e.rowGap,r)}return null};Ot.propTypes=process.env.NODE_ENV!=="production"?{rowGap:De}:{};Ot.filterProps=["rowGap"];const Wo=le({prop:"gridColumn"}),Ho=le({prop:"gridRow"}),Go=le({prop:"gridAutoFlow"}),Ko=le({prop:"gridAutoColumns"}),qo=le({prop:"gridAutoRows"}),Jo=le({prop:"gridTemplateColumns"}),Xo=le({prop:"gridTemplateRows"}),Qo=le({prop:"gridTemplateAreas"}),Zo=le({prop:"gridArea"});Et(Tt,xt,Ot,Wo,Ho,Go,Ko,qo,Jo,Xo,Qo,Zo);function qe(e,t){return t==="grey"?t:e}const ei=le({prop:"color",themeKey:"palette",transform:qe}),ti=le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qe}),ri=le({prop:"backgroundColor",themeKey:"palette",transform:qe});Et(ei,ti,ri);function ve(e){return e<=1&&e!==0?`${e*100}%`:e}const ni=le({prop:"width",transform:ve}),Zt=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,i,c,u,f;const n=((c=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:c[r])||yt[r];return n?((f=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ve(r)}};return ke(e,e.maxWidth,t)}return null};Zt.filterProps=["maxWidth"];const oi=le({prop:"minWidth",transform:ve}),ii=le({prop:"height",transform:ve}),ai=le({prop:"maxHeight",transform:ve}),si=le({prop:"minHeight",transform:ve});le({prop:"size",cssProperty:"width",transform:ve});le({prop:"size",cssProperty:"height",transform:ve});const ci=le({prop:"boxSizing"});Et(ni,Zt,oi,ii,ai,si,ci);const _t={border:{themeKey:"borders",transform:xe},borderTop:{themeKey:"borders",transform:xe},borderRight:{themeKey:"borders",transform:xe},borderBottom:{themeKey:"borders",transform:xe},borderLeft:{themeKey:"borders",transform:xe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ct},color:{themeKey:"palette",transform:qe},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qe},backgroundColor:{themeKey:"palette",transform:qe},p:{style:ae},pt:{style:ae},pr:{style:ae},pb:{style:ae},pl:{style:ae},px:{style:ae},py:{style:ae},padding:{style:ae},paddingTop:{style:ae},paddingRight:{style:ae},paddingBottom:{style:ae},paddingLeft:{style:ae},paddingX:{style:ae},paddingY:{style:ae},paddingInline:{style:ae},paddingInlineStart:{style:ae},paddingInlineEnd:{style:ae},paddingBlock:{style:ae},paddingBlockStart:{style:ae},paddingBlockEnd:{style:ae},m:{style:ie},mt:{style:ie},mr:{style:ie},mb:{style:ie},ml:{style:ie},mx:{style:ie},my:{style:ie},margin:{style:ie},marginTop:{style:ie},marginRight:{style:ie},marginBottom:{style:ie},marginLeft:{style:ie},marginX:{style:ie},marginY:{style:ie},marginInline:{style:ie},marginInlineStart:{style:ie},marginInlineEnd:{style:ie},marginBlock:{style:ie},marginBlockStart:{style:ie},marginBlockEnd:{style:ie},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Tt},rowGap:{style:Ot},columnGap:{style:xt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ve},maxWidth:{style:Zt},minWidth:{transform:ve},height:{transform:ve},maxHeight:{transform:ve},minHeight:{transform:ve},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 li(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function ui(e,t){return typeof e=="function"?e(t):e}function fi(){function e(r,n,o,i){const c={[r]:n,theme:o},u=i[r];if(!u)return{[r]:n};const{cssProperty:f=r,themeKey:d,transform:m,style:h}=u;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const g=bt(o,d)||{};return h?h(c):ke(c,n,S=>{let l=mt(g,m,S);return S===l&&typeof S=="string"&&(l=mt(g,m,`${r}${S==="default"?"":Fe(S)}`,S)),f===!1?l:{[f]:l}})}function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const i=o.unstable_sxConfig??_t;function c(u){let f=u;if(typeof u=="function")f=u(o);else if(typeof u!="object")return u;if(!f)return null;const d=xo(o.breakpoints),m=Object.keys(d);let h=d;return Object.keys(f).forEach(g=>{const C=ui(f[g],o);if(C!=null)if(typeof C=="object")if(i[g])h=ot(h,e(g,C,o,i));else{const S=ke({theme:o},C,l=>({[g]:l}));li(S,C)?h[g]=t({sx:C,theme:o}):h=ot(h,S)}else h=ot(h,e(g,C,o,i))}),vo(o,Oo(m,h))}return Array.isArray(n)?n.map(c):c(n)}return t}const Je=fi();Je.filterProps=["sx"];function di(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var pi={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 mi(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var hi=/[A-Z]|^ms/g,gi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ln=function(t){return t.charCodeAt(1)===45},Br=function(t){return t!=null&&typeof t!="boolean"},Ft=mi(function(e){return ln(e)?e:e.replace(hi,"-$&").toLowerCase()}),Fr=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(gi,function(n,o,i){return Ie={name:o,styles:i,next:Ie},o})}return pi[t]!==1&&!ln(t)&&typeof r=="number"&&r!==0?r+"px":r};function ht(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Ie={name:o.name,styles:o.styles,next:Ie},o.name;var i=r;if(i.styles!==void 0){var c=i.next;if(c!==void 0)for(;c!==void 0;)Ie={name:c.name,styles:c.styles,next:Ie},c=c.next;var u=i.styles+";";return u}return yi(e,t,r)}}var f=r;return f}function yi(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=ht(e,t,r[o])+";";else for(var i in r){var c=r[i];if(typeof c!="object"){var u=c;Br(u)&&(n+=Ft(i)+":"+Fr(i,u)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&t==null)for(var f=0;f<c.length;f++)Br(c[f])&&(n+=Ft(i)+":"+Fr(i,c[f])+";");else{var d=ht(e,t,c);switch(i){case"animation":case"animationName":{n+=Ft(i)+":"+d+";";break}default:n+=i+"{"+d+"}"}}}return n}var Lr=/label:\s*([^\s;{]+)\s*(;|$)/g,Ie;function bi(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Ie=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=ht(r,t,i);else{var c=i;o+=c[0]}for(var u=1;u<e.length;u++)if(o+=ht(r,t,e[u]),n){var f=i;o+=f[u]}Lr.lastIndex=0;for(var d="",m;(m=Lr.exec(o))!==null;)d+="-"+m[1];var h=di(o)+d;return{name:h,styles:o,next:Ie}}/**
|
|
70
|
-
* @mui/styled-engine v6.4.
|
|
70
|
+
* @mui/styled-engine v6.4.8
|
|
71
71
|
*
|
|
72
72
|
* @license MIT
|
|
73
73
|
* This source code is licensed under the MIT license found in the
|
|
@@ -98,6 +98,6 @@ const theme = ${JSON.stringify(t,null,2)};
|
|
|
98
98
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
99
99
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
100
100
|
|
|
101
|
-
export default theme;`}function qt(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:c={},typography:u={},shape:f,...d}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":je(20));const m=or(i),h=er(e);let g=Se(h,{mixins:ia(h.breakpoints,n),palette:m,shadows:fa.slice(),typography:sa(m,u),transitions:ha(c),zIndex:{...ga}});if(g=Se(g,d),g=t.reduce((C,S)=>Se(C,S),g),process.env.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],S=(l,w)=>{let A;for(A in l){const L=l[A];if(C.includes(A)&&Object.keys(L).length>0){if(process.env.NODE_ENV!=="production"){const $=Xt("",A);console.error([`MUI: The \`${w}\` component increases the CSS specificity of the \`${A}\` internal state.`,"You can not override it like this: ",JSON.stringify(l,null,2),"",`Instead, you need to use the '&.${$}' syntax:`,JSON.stringify({root:{[`&.${$}`]:L}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
101
|
+
export default theme;`}function qt(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:c={},typography:u={},shape:f,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":je(20));const m=or(i),h=er(e);let g=Se(h,{mixins:ia(h.breakpoints,n),palette:m,shadows:fa.slice(),typography:sa(m,u),transitions:ha(c),zIndex:{...ga}});if(g=Se(g,d),g=t.reduce((C,S)=>Se(C,S),g),process.env.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],S=(l,w)=>{let A;for(A in l){const L=l[A];if(C.includes(A)&&Object.keys(L).length>0){if(process.env.NODE_ENV!=="production"){const $=Xt("",A);console.error([`MUI: The \`${w}\` component increases the CSS specificity of the \`${A}\` internal state.`,"You can not override it like this: ",JSON.stringify(l,null,2),"",`Instead, you need to use the '&.${$}' syntax:`,JSON.stringify({root:{[`&.${$}`]:L}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
102
102
|
`))}l[A]={}}}};Object.keys(g.components).forEach(l=>{const w=g.components[l].styleOverrides;w&&l.startsWith("Mui")&&S(w,l)})}return g.unstable_sxConfig={..._t,...d==null?void 0:d.unstable_sxConfig},g.unstable_sx=function(S){return Je({sx:S,theme:this})},g.toRuntimeSource=yn,g}function ba(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const va=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=ba(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function bn(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function vn(e){return e==="dark"?va:[]}function Sa(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,i=or(t);return{palette:i,opacity:{...bn(i.mode),...r},overlays:n||vn(i.mode),...o}}function Ea(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Ca=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Ta=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return Ca(e.cssVarPrefix).forEach(u=>{c[u]=r[u],delete r[u]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:c}}:i?{[i.replace("%s",t)]:c,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...c}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function xa(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function p(e,t,r){!e[t]&&r&&(e[t]=r)}function nt(e){return typeof e!="string"||!e.startsWith("hsl")?e:mn(e)}function $e(e,t){`${t}Channel`in e||(e[`${t}Channel`]=rt(nt(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
103
103
|
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Oa(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Re=e=>{try{return e()}catch{}},_a=(e="mui")=>Wi(e);function zt(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=Sa({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...c}=qt({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[n]={...t,palette:i,opacity:{...bn(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||vn(o)},c}function wa(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:c=Ea,colorSchemeSelector:u=r.light&&r.dark?"media":void 0,rootSelector:f=":root",...d}=e,m=Object.keys(r)[0],h=n||(r.light&&m!=="light"?"light":m),g=_a(i),{[h]:C,light:S,dark:l,...w}=r,A={...w};let L=C;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&(L=!0),!L)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:je(21,h));const $=zt(A,L,d,h);S&&!A.light&&zt(A,S,void 0,"light"),l&&!A.dark&&zt(A,l,void 0,"dark");let R={defaultColorScheme:h,...$,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:f,getCssVar:g,colorSchemes:A,font:{...oa($.typography),...$.font},spacing:Oa(d.spacing)};Object.keys(R.colorSchemes).forEach(pe=>{const a=R.colorSchemes[pe].palette,_=k=>{const N=k.split("-"),q=N[1],ue=N[2];return g(k,a[q][ue])};if(a.mode==="light"&&(p(a.common,"background","#fff"),p(a.common,"onBackground","#000")),a.mode==="dark"&&(p(a.common,"background","#000"),p(a.common,"onBackground","#fff")),xa(a,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),a.mode==="light"){p(a.Alert,"errorColor",re(a.error.light,.6)),p(a.Alert,"infoColor",re(a.info.light,.6)),p(a.Alert,"successColor",re(a.success.light,.6)),p(a.Alert,"warningColor",re(a.warning.light,.6)),p(a.Alert,"errorFilledBg",_("palette-error-main")),p(a.Alert,"infoFilledBg",_("palette-info-main")),p(a.Alert,"successFilledBg",_("palette-success-main")),p(a.Alert,"warningFilledBg",_("palette-warning-main")),p(a.Alert,"errorFilledColor",Re(()=>a.getContrastText(a.error.main))),p(a.Alert,"infoFilledColor",Re(()=>a.getContrastText(a.info.main))),p(a.Alert,"successFilledColor",Re(()=>a.getContrastText(a.success.main))),p(a.Alert,"warningFilledColor",Re(()=>a.getContrastText(a.warning.main))),p(a.Alert,"errorStandardBg",ne(a.error.light,.9)),p(a.Alert,"infoStandardBg",ne(a.info.light,.9)),p(a.Alert,"successStandardBg",ne(a.success.light,.9)),p(a.Alert,"warningStandardBg",ne(a.warning.light,.9)),p(a.Alert,"errorIconColor",_("palette-error-main")),p(a.Alert,"infoIconColor",_("palette-info-main")),p(a.Alert,"successIconColor",_("palette-success-main")),p(a.Alert,"warningIconColor",_("palette-warning-main")),p(a.AppBar,"defaultBg",_("palette-grey-100")),p(a.Avatar,"defaultBg",_("palette-grey-400")),p(a.Button,"inheritContainedBg",_("palette-grey-300")),p(a.Button,"inheritContainedHoverBg",_("palette-grey-A100")),p(a.Chip,"defaultBorder",_("palette-grey-400")),p(a.Chip,"defaultAvatarColor",_("palette-grey-700")),p(a.Chip,"defaultIconColor",_("palette-grey-700")),p(a.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),p(a.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),p(a.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),p(a.LinearProgress,"primaryBg",ne(a.primary.main,.62)),p(a.LinearProgress,"secondaryBg",ne(a.secondary.main,.62)),p(a.LinearProgress,"errorBg",ne(a.error.main,.62)),p(a.LinearProgress,"infoBg",ne(a.info.main,.62)),p(a.LinearProgress,"successBg",ne(a.success.main,.62)),p(a.LinearProgress,"warningBg",ne(a.warning.main,.62)),p(a.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.11)`),p(a.Slider,"primaryTrack",ne(a.primary.main,.62)),p(a.Slider,"secondaryTrack",ne(a.secondary.main,.62)),p(a.Slider,"errorTrack",ne(a.error.main,.62)),p(a.Slider,"infoTrack",ne(a.info.main,.62)),p(a.Slider,"successTrack",ne(a.success.main,.62)),p(a.Slider,"warningTrack",ne(a.warning.main,.62));const k=ft(a.background.default,.8);p(a.SnackbarContent,"bg",k),p(a.SnackbarContent,"color",Re(()=>a.getContrastText(k))),p(a.SpeedDialAction,"fabHoverBg",ft(a.background.paper,.15)),p(a.StepConnector,"border",_("palette-grey-400")),p(a.StepContent,"border",_("palette-grey-400")),p(a.Switch,"defaultColor",_("palette-common-white")),p(a.Switch,"defaultDisabledColor",_("palette-grey-100")),p(a.Switch,"primaryDisabledColor",ne(a.primary.main,.62)),p(a.Switch,"secondaryDisabledColor",ne(a.secondary.main,.62)),p(a.Switch,"errorDisabledColor",ne(a.error.main,.62)),p(a.Switch,"infoDisabledColor",ne(a.info.main,.62)),p(a.Switch,"successDisabledColor",ne(a.success.main,.62)),p(a.Switch,"warningDisabledColor",ne(a.warning.main,.62)),p(a.TableCell,"border",ne(ut(a.divider,1),.88)),p(a.Tooltip,"bg",ut(a.grey[700],.92))}if(a.mode==="dark"){p(a.Alert,"errorColor",ne(a.error.light,.6)),p(a.Alert,"infoColor",ne(a.info.light,.6)),p(a.Alert,"successColor",ne(a.success.light,.6)),p(a.Alert,"warningColor",ne(a.warning.light,.6)),p(a.Alert,"errorFilledBg",_("palette-error-dark")),p(a.Alert,"infoFilledBg",_("palette-info-dark")),p(a.Alert,"successFilledBg",_("palette-success-dark")),p(a.Alert,"warningFilledBg",_("palette-warning-dark")),p(a.Alert,"errorFilledColor",Re(()=>a.getContrastText(a.error.dark))),p(a.Alert,"infoFilledColor",Re(()=>a.getContrastText(a.info.dark))),p(a.Alert,"successFilledColor",Re(()=>a.getContrastText(a.success.dark))),p(a.Alert,"warningFilledColor",Re(()=>a.getContrastText(a.warning.dark))),p(a.Alert,"errorStandardBg",re(a.error.light,.9)),p(a.Alert,"infoStandardBg",re(a.info.light,.9)),p(a.Alert,"successStandardBg",re(a.success.light,.9)),p(a.Alert,"warningStandardBg",re(a.warning.light,.9)),p(a.Alert,"errorIconColor",_("palette-error-main")),p(a.Alert,"infoIconColor",_("palette-info-main")),p(a.Alert,"successIconColor",_("palette-success-main")),p(a.Alert,"warningIconColor",_("palette-warning-main")),p(a.AppBar,"defaultBg",_("palette-grey-900")),p(a.AppBar,"darkBg",_("palette-background-paper")),p(a.AppBar,"darkColor",_("palette-text-primary")),p(a.Avatar,"defaultBg",_("palette-grey-600")),p(a.Button,"inheritContainedBg",_("palette-grey-800")),p(a.Button,"inheritContainedHoverBg",_("palette-grey-700")),p(a.Chip,"defaultBorder",_("palette-grey-700")),p(a.Chip,"defaultAvatarColor",_("palette-grey-300")),p(a.Chip,"defaultIconColor",_("palette-grey-300")),p(a.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),p(a.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),p(a.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),p(a.LinearProgress,"primaryBg",re(a.primary.main,.5)),p(a.LinearProgress,"secondaryBg",re(a.secondary.main,.5)),p(a.LinearProgress,"errorBg",re(a.error.main,.5)),p(a.LinearProgress,"infoBg",re(a.info.main,.5)),p(a.LinearProgress,"successBg",re(a.success.main,.5)),p(a.LinearProgress,"warningBg",re(a.warning.main,.5)),p(a.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.13)`),p(a.Slider,"primaryTrack",re(a.primary.main,.5)),p(a.Slider,"secondaryTrack",re(a.secondary.main,.5)),p(a.Slider,"errorTrack",re(a.error.main,.5)),p(a.Slider,"infoTrack",re(a.info.main,.5)),p(a.Slider,"successTrack",re(a.success.main,.5)),p(a.Slider,"warningTrack",re(a.warning.main,.5));const k=ft(a.background.default,.98);p(a.SnackbarContent,"bg",k),p(a.SnackbarContent,"color",Re(()=>a.getContrastText(k))),p(a.SpeedDialAction,"fabHoverBg",ft(a.background.paper,.15)),p(a.StepConnector,"border",_("palette-grey-600")),p(a.StepContent,"border",_("palette-grey-600")),p(a.Switch,"defaultColor",_("palette-grey-300")),p(a.Switch,"defaultDisabledColor",_("palette-grey-600")),p(a.Switch,"primaryDisabledColor",re(a.primary.main,.55)),p(a.Switch,"secondaryDisabledColor",re(a.secondary.main,.55)),p(a.Switch,"errorDisabledColor",re(a.error.main,.55)),p(a.Switch,"infoDisabledColor",re(a.info.main,.55)),p(a.Switch,"successDisabledColor",re(a.success.main,.55)),p(a.Switch,"warningDisabledColor",re(a.warning.main,.55)),p(a.TableCell,"border",re(ut(a.divider,1),.68)),p(a.Tooltip,"bg",ut(a.grey[700],.92))}$e(a.background,"default"),$e(a.background,"paper"),$e(a.common,"background"),$e(a.common,"onBackground"),$e(a,"divider"),Object.keys(a).forEach(k=>{const N=a[k];k!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&p(a[k],"mainChannel",rt(nt(N.main))),N.light&&p(a[k],"lightChannel",rt(nt(N.light))),N.dark&&p(a[k],"darkChannel",rt(nt(N.dark))),N.contrastText&&p(a[k],"contrastTextChannel",rt(nt(N.contrastText))),k==="text"&&($e(a[k],"primary"),$e(a[k],"secondary")),k==="action"&&(N.active&&$e(a[k],"active"),N.selected&&$e(a[k],"selected")))})}),R=t.reduce((pe,a)=>Se(pe,a),R);const y={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:Ta(R)},{vars:K,generateThemeVars:se,generateStyleSheets:de}=Ki(R,y);return R.vars=K,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([pe,a])=>{R[pe]=a}),R.generateThemeVars=se,R.generateStyleSheets=de,R.generateSpacing=function(){return un(d.spacing,Qt(this))},R.getColorSchemeSelector=qi(u),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=c,R.unstable_sxConfig={..._t,...d==null?void 0:d.unstable_sxConfig},R.unstable_sx=function(a){return Je({sx:a,theme:this})},R.toRuntimeSource=yn,R}function Xr(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:or({...r===!0?{}:r.palette,mode:t})})}function Ra(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r==null?void 0:r.mode,...c}=e,u=i||"light",f=o==null?void 0:o[u],d={...o,...r?{[u]:{...typeof f!="boolean"&&f,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return qt(e,...t);let m=r;"palette"in e||d[u]&&(d[u]!==!0?m=d[u].palette:u==="dark"&&(m={mode:"dark"}));const h=qt({...e,palette:m},...t);return h.defaultColorScheme=u,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},Xr(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},Xr(h,"light",d.light)),h}return!r&&!("light"in d)&&u==="light"&&(d.light=!0),wa({...c,colorSchemes:d,defaultColorScheme:u,...typeof n!="boolean"&&n},...t)}const Sn=Ra(),En="$$material";function Aa(){const e=Ri(Sn);return process.env.NODE_ENV!=="production"&&Ae.useDebugValue(e),e[En]||e}function $a(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Pa=e=>$a(e)&&e!=="classes",ka=ki({themeId:En,defaultTheme:Sn,rootShouldForwardProp:Pa}),Ia=Ui;process.env.NODE_ENV!=="production"&&(G.node,G.object.isRequired);function ja(e){return Yi(e)}function Ma(e){return Xt("MuiSvgIcon",e)}go("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Da=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Fe(t)}`,`fontSize${Fe(r)}`]};return fo(o,Ma,n)},Na=ka("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Fe(r.color)}`],t[`fontSize${Fe(r.fontSize)}`]]}})(Ia(({theme:e})=>{var t,r,n,o,i,c,u,f,d,m,h,g,C,S;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:l=>!l.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:c.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((f=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((m=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:m.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,l])=>l&&l.main).map(([l])=>{var w,A;return{props:{color:l},style:{color:(A=(w=(e.vars??e).palette)==null?void 0:w[l])==null?void 0:A.main}}}),{props:{color:"action"},style:{color:(g=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(S=(C=(e.vars??e).palette)==null?void 0:C.action)==null?void 0:S.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),gt=Ae.forwardRef(function(t,r){const n=ja({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:c="inherit",component:u="svg",fontSize:f="medium",htmlColor:d,inheritViewBox:m=!1,titleAccess:h,viewBox:g="0 0 24 24",...C}=n,S=Ae.isValidElement(o)&&o.type==="svg",l={...n,color:c,component:u,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:g,hasSvgAsChild:S},w={};m||(w.viewBox=g);const A=Da(l);return E.jsxs(Na,{as:u,className:bo(A.root,i),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r,...w,...C,...S&&o.props,ownerState:l,children:[S?o.props.children:o,h?E.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(gt.propTypes={children:G.node,classes:G.object,className:G.string,color:G.oneOfType([G.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),G.string]),component:G.elementType,fontSize:G.oneOfType([G.oneOf(["inherit","large","medium","small"]),G.string]),htmlColor:G.string,inheritViewBox:G.bool,shapeRendering:G.string,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),titleAccess:G.string,viewBox:G.string});gt.muiName="SvgIcon";function Ee(e,t){function r(n,o){return E.jsx(gt,{"data-testid":`${t}Icon`,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=gt.muiName,Ae.memo(Ae.forwardRef(r))}const Ba=Ee(E.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo");function Fa(e){return E.jsx(M.Button,{name:e.name,"data-cy":e.dataCy??"cancel-button",className:e.className,sx:e.sx,startIcon:e.startIcon??E.jsx(Ba,{}),variant:e.variant??"contained",color:e.color??"secondary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const La=Ee(E.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");function Va(e){return E.jsx(M.Button,{"data-cy":e.dataCy??"delete-button",loading:e.loading??!1,loadingPosition:e.loadingPosition??"start",startIcon:e.startIcon??E.jsx(La,{}),name:e.name,variant:e.variant??"contained",color:e.color??"error",sx:{m:1},type:e.type??"button",onClick:e.onClick,children:e.label?e.label:"Delete"})}const za=Ee(E.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function Ya(e){return E.jsx(M.Tooltip,{title:"Go Back to Previous Page",children:E.jsxs(M.IconButton,{name:e.name,color:e.color??"primary",onClick:()=>e.navigate(-1),children:[E.jsx(za,{}),e.children]})})}const Ua=Ee(E.jsx("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");function Wa(e){return E.jsx(M.Button,{name:e.name,"data-cy":e.dataCy??"history-button",className:e.className,sx:e.sx??{p:1,m:1},startIcon:e.startIcon??E.jsx(Ua,{}),variant:e.variant??"contained",color:e.color??"primary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const Ha=Ee(E.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),Ga={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function Ka(e){return E.jsx(M.Button,{name:e.name,"data-cy":e.dataCy??"loading-success-button",variant:e.variant??"contained",color:e.color??"success",loadingPosition:"start",startIcon:e.startIcon??E.jsx(Ha,{}),loading:e.loading,type:e.type??"button",style:Ga,sx:e.sx,onClick:e.onClick,children:e.children??e.name})}const qa=Ee(E.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");function Ja(e){return E.jsx(M.Button,{name:e.name,"data-cy":e.dataCy??"manage-button",className:e.className,onClick:()=>e.onClick(),variant:e.variant??"contained",color:e.color??"primary",size:e.size??"large",startIcon:e.startIcon??E.jsx(qa,{}),children:e.children?e.children:"Manage"})}function Xa(e){return E.jsx(M.Button,{name:e.name,"data-cy":e.dataCy??"success-button",className:e.className,sx:e.sx,startIcon:e.startIcon,variant:e.variant??"contained",color:e.color??"success",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}function Qa(e){return E.jsx(M.Button,{"data-cy":e.dataCy??"excel-button",style:{borderRadius:"20px"},className:e.className,name:e.name,sx:e.sx,startIcon:e.startIcon,variant:"contained",color:"success",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const Za=Ee(E.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");function es(e){return E.jsx(M.Tooltip,{title:e.tooltipTitle,children:E.jsx(M.IconButton,{sx:{pt:0,pb:0},color:e.color??"primary",onClick:()=>e.onClick(!0),"aria-label":e.tooltipTitle,children:E.jsx(Za,{})})})}const ir=Ee(E.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),ts=e=>{const[t,r]=_e.useState(!1);_e.useEffect(()=>{r(e.open)},[e.open,e.progressState]);const n=E.jsx(M.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>r(!1),children:E.jsx(ir,{fontSize:"small"})});return E.jsxs(E.Fragment,{children:[E.jsx(M.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:E.jsx(M.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:n,children:e.progressState.message})}),E.jsx(M.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isError,TransitionComponent:M.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:E.jsx(M.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:n,children:e.progressState.message})})]})},rs=e=>{const[t,r]=_e.useState(!1);_e.useEffect(()=>{r(e.open)},[e.open,e]);const n=E.jsx(M.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>r(!1),children:E.jsx(ir,{fontSize:"small"})});return E.jsxs(E.Fragment,{children:[E.jsx(M.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:E.jsx(M.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:n,children:e.message})}),E.jsx(M.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isError,TransitionComponent:M.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:E.jsx(M.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:n,children:e.message})})]})},Qr=Ee(E.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Zr=Ee(E.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),en=Ee(E.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),tn=Ee(E.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function ns(e){const t=Aa(),{count:r,page:n,rowsPerPage:o,onPageChange:i}=e,c=m=>{i(m,0)},u=m=>{i(m,n-1)},f=m=>{i(m,n+1)},d=m=>{i(m,Math.max(0,Math.ceil(r/o)-1))};return E.jsxs(M.Box,{sx:{flexShrink:0,ml:2.5},children:[E.jsx(M.IconButton,{onClick:c,disabled:n===0,"aria-label":"first page",children:t.direction==="rtl"?E.jsx(tn,{}):E.jsx(Qr,{})}),E.jsx(M.IconButton,{onClick:u,disabled:n===0,"aria-label":"previous page",children:t.direction==="rtl"?E.jsx(en,{}):E.jsx(Zr,{})}),E.jsx(M.IconButton,{onClick:f,disabled:n>=Math.ceil(r/o)-1,"aria-label":"next page",children:t.direction==="rtl"?E.jsx(Zr,{}):E.jsx(en,{})}),E.jsx(M.IconButton,{onClick:d,disabled:n>=Math.ceil(r/o)-1,"aria-label":"last page",children:t.direction==="rtl"?E.jsx(Qr,{}):E.jsx(tn,{})})]})}function os(e){const{children:t,index:r,...n}=e;return E.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${r}`,"aria-labelledby":`vertical-tab-${r}`,...n,children:E.jsx(M.Box,{sx:{p:3},children:E.jsx(M.Typography,{component:"span",children:t})})})}function is(e){return{id:`vertical-tab-${e}`,"aria-controls":`vertical-tabpanel-${e}`}}function as(e){return E.jsx(M.Link,{component:Kn.Link,to:e.href,className:"next-btn-link",underline:"hover",children:e.linkText??e.children})}function ss(){return E.jsx("div",{style:{margin:"1.5rem"},className:"custom-flex-justify-center",children:E.jsx(M.CircularProgress,{})})}function cs(e){const{onClose:t,title:r,message:n,open:o,...i}=e;return E.jsxs(M.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[E.jsx(M.DialogTitle,{children:r??"Confirm"}),E.jsx(M.DialogContent,{dividers:!0,children:n}),E.jsxs(M.DialogActions,{children:[E.jsx(M.Button,{autoFocus:!0,onClick:()=>t("No"),children:"Cancel"}),E.jsx(M.Button,{onClick:()=>t("Yes"),children:"Yes"})]})]})}function ls(e){const[t,r]=_e.useState(!0),[n]=_e.useState(e.dismissible??!0),[o]=_e.useState(e.dismissOnTimeOut??!0),[i]=_e.useState(e.dismissTimeOut??5e3);return setTimeout(()=>{r(o?!1:t)},i),E.jsx("span",{children:t&&E.jsx(M.Alert,{action:n?E.jsx(M.IconButton,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{r(!1)},children:E.jsx(ir,{fontSize:"inherit"})}):null,style:{margin:"20px"},...e,children:e.message})})}const us=Ee(E.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");function fs(e){return E.jsxs("a",{href:e.href,target:"_blank",rel:"noreferrer",style:{display:"flex",alignItems:"center"},children:[e.linkText,E.jsx(M.Icon,{sx:{fontSize:"1.1rem",mx:.75},component:us}),e.children]})}function ds(e){return e.condition===void 0||!e.condition?null:e.children}function ps(e){return typeof e=="boolean"?e:typeof e=="string"?e.toLowerCase()==="true":!1}var ar=(e=>(e.SYSTEM_TIME_ZONE="America/New_York",e.SYSTEM_LOCALE="en-US",e.SYSTEM_DATE_FORMAT="MM/dd/yyyy",e.SYSTEM_DATE_TIME_FORMAT="MM/dd/yyyy hh:mm:ss a",e.ISO_DATE_FORMAT="yyyy-MM-dd",e[e.SYSTEM_COOKIE_TIMEOUT_HOURS=24]="SYSTEM_COOKIE_TIMEOUT_HOURS",e[e.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS=36e5]="SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS",e))(ar||{});const ms=()=>{const e=+new Date;return new Date(e+ar.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS)},hs=e=>Yt.format(new Date(e),ar.ISO_DATE_FORMAT),gs=(e,t)=>e?Yt.format(Yt.parseISO(e),t):"";function ys(e){if(typeof e=="string")return Number.parseInt(e,10)}const bs=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),vs=e=>({...e,isLoading:!0,isSuccess:!1,isError:!1,message:""}),Ss=(e,t)=>({...e,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:t||""}),Es=(e,t)=>({...e,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:t||""});function Cs(e){return e==null?!0:typeof e=="string"?e.trim()==="":!1}const Ts=e=>{try{return decodeURIComponent(e)!==e}catch{return!1}};class xs extends Error{constructor(r,{status:n,statusText:o,redirected:i,type:c}){super(r);Qe(this,"status");Qe(this,"statusText");Qe(this,"redirected");Qe(this,"type");this.status=n,this.statusText=o,this.statusText=c,this.redirected=i,this.name="HttpError"}}async function Os(e,t={}){const r=new Headers(t.headers||{});t.body instanceof FormData||typeof t.body=="object"&&(t.body=JSON.stringify(t.body),r.set("Content-Type","application/json"));const n={...t,headers:r};n.body&&typeof n.body=="object"&&(n.body=JSON.stringify(n.body));const o=await fetch(e,n);if(o.type==="error"){const i=await o.text();throw new xs(i,o)}return await o.json()}function _s(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}exports.AppSnackBar=ts;exports.CancelButton=Fa;exports.CenteredCircularProgress=ss;exports.ConfirmDialog=cs;exports.DeleteButton=Va;exports.DismissibleAlert=ls;exports.EditIconButton=es;exports.ExcelButton=Qa;exports.GoBackButton=Ya;exports.HistoryButton=Wa;exports.LoadingSuccessButton=Ka;exports.ManageButton=Ja;exports.NextLink=as;exports.OpenInNewIconLink=fs;exports.QuerySnackBar=rs;exports.ReactIf=ds;exports.SuccessButton=Xa;exports.TabPanel=os;exports.TablePaginationActions=ns;exports.a11yProps=is;exports.convertToIsoDate=hs;exports.fetchClient=Os;exports.formatDate=gs;exports.getCssVariable=_s;exports.initializeState=bs;exports.isBlankOrEmpty=Cs;exports.isEncoded=Ts;exports.markError=Es;exports.markLoading=vs;exports.markSuccess=Ss;exports.parseBoolean=ps;exports.parseNumber=ys;exports.setCookieExpirationDate=ms;
|
package/index.mjs
CHANGED
|
@@ -2535,7 +2535,7 @@ function ji(e, t, r) {
|
|
|
2535
2535
|
};
|
|
2536
2536
|
}
|
|
2537
2537
|
/**
|
|
2538
|
-
* @mui/styled-engine v6.4.
|
|
2538
|
+
* @mui/styled-engine v6.4.8
|
|
2539
2539
|
*
|
|
2540
2540
|
* @license MIT
|
|
2541
2541
|
* This source code is licensed under the MIT license found in the
|
|
@@ -3733,8 +3733,10 @@ function Xt(e = {}, ...t) {
|
|
|
3733
3733
|
shape: f,
|
|
3734
3734
|
...d
|
|
3735
3735
|
} = e;
|
|
3736
|
-
if (e.vars
|
|
3737
|
-
|
|
3736
|
+
if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
3737
|
+
// `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
3738
|
+
e.generateThemeVars === void 0)
|
|
3739
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : je(20));
|
|
3738
3740
|
const m = ar(i), h = rr(e);
|
|
3739
3741
|
let g = ve(h, {
|
|
3740
3742
|
mixins: Ea(h.breakpoints, n),
|