@js-smart/react-kit 5.6.0 → 5.7.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 CHANGED
@@ -71,4 +71,4 @@ theme.transitions = createTransitions(theme.transitions || {});
71
71
 
72
72
  export default theme;`}function Et(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:s={},typography:l={},shape:u,...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.":Se(20));const p=It(i),m=wt(e);let h=se(m,{mixins:Ko(m.breakpoints,n),palette:p,shadows:ti.slice(),typography:Jo(p,l),transitions:ii(s),zIndex:{...ai}});if(h=se(h,d),h=t.reduce((S,v)=>se(S,v),h),process.env.NODE_ENV!=="production"){const S=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],v=(c,x)=>{let _;for(_ in c){const X=c[_];if(S.includes(_)&&Object.keys(X).length>0){if(process.env.NODE_ENV!=="production"){const w=_t("",_);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${_}\` internal state.`,"You can not override it like this: ",JSON.stringify(c,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:X}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
73
73
  `))}c[_]={}}}};Object.keys(h.components).forEach(c=>{const x=h.components[c].styleOverrides;x&&c.startsWith("Mui")&&v(x,c)})}return h.unstable_sxConfig={...at,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(v){return Ie({sx:v,theme:this})},h.toRuntimeSource=kr,h}function ci(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 li=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=ci(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Ir(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Pr(e){return e==="dark"?li:[]}function ui(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,i=It(t);return{palette:i,opacity:{...Ir(i.mode),...r},overlays:n||Pr(i.mode),...o}}function fi(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 di=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],mi=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 s={};return di(e.cssVarPrefix).forEach(l=>{s[l]=r[l],delete r[l]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:s}}:i?{[i.replace("%s",t)]:s,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...s}}}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 pi(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function f(e,t,r){!e[t]&&r&&(e[t]=r)}function Ne(e){return typeof e!="string"||!e.startsWith("hsl")?e:_r(e)}function he(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Me(Ne(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().
74
- 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 hi(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const me=e=>{try{return e()}catch{}},gi=(e="mui")=>No(e);function bt(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=ui({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...s}=Et({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[n]={...t,palette:i,opacity:{...Ir(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Pr(o)},s}function yi(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=fi,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(r)[0],m=n||(r.light&&p!=="light"?"light":p),h=gi(i),{[m]:S,light:v,dark:c,...x}=r,_={...x};let X=S;if((m==="dark"&&!("dark"in r)||m==="light"&&!("light"in r))&&(X=!0),!X)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:Se(21,m));const w=bt(_,X,d,m);v&&!_.light&&bt(_,v,void 0,"light"),c&&!_.dark&&bt(_,c,void 0,"dark");let O={defaultColorScheme:m,...w,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:u,getCssVar:h,colorSchemes:_,font:{...Go(w.typography),...w.font},spacing:hi(d.spacing)};Object.keys(O.colorSchemes).forEach(re=>{const a=O.colorSchemes[re].palette,T=$=>{const L=$.split("-"),K=L[1],oe=L[2];return h($,a[K][oe])};if(a.mode==="light"&&(f(a.common,"background","#fff"),f(a.common,"onBackground","#000")),a.mode==="dark"&&(f(a.common,"background","#000"),f(a.common,"onBackground","#fff")),pi(a,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),a.mode==="light"){f(a.Alert,"errorColor",H(a.error.light,.6)),f(a.Alert,"infoColor",H(a.info.light,.6)),f(a.Alert,"successColor",H(a.success.light,.6)),f(a.Alert,"warningColor",H(a.warning.light,.6)),f(a.Alert,"errorFilledBg",T("palette-error-main")),f(a.Alert,"infoFilledBg",T("palette-info-main")),f(a.Alert,"successFilledBg",T("palette-success-main")),f(a.Alert,"warningFilledBg",T("palette-warning-main")),f(a.Alert,"errorFilledColor",me(()=>a.getContrastText(a.error.main))),f(a.Alert,"infoFilledColor",me(()=>a.getContrastText(a.info.main))),f(a.Alert,"successFilledColor",me(()=>a.getContrastText(a.success.main))),f(a.Alert,"warningFilledColor",me(()=>a.getContrastText(a.warning.main))),f(a.Alert,"errorStandardBg",q(a.error.light,.9)),f(a.Alert,"infoStandardBg",q(a.info.light,.9)),f(a.Alert,"successStandardBg",q(a.success.light,.9)),f(a.Alert,"warningStandardBg",q(a.warning.light,.9)),f(a.Alert,"errorIconColor",T("palette-error-main")),f(a.Alert,"infoIconColor",T("palette-info-main")),f(a.Alert,"successIconColor",T("palette-success-main")),f(a.Alert,"warningIconColor",T("palette-warning-main")),f(a.AppBar,"defaultBg",T("palette-grey-100")),f(a.Avatar,"defaultBg",T("palette-grey-400")),f(a.Button,"inheritContainedBg",T("palette-grey-300")),f(a.Button,"inheritContainedHoverBg",T("palette-grey-A100")),f(a.Chip,"defaultBorder",T("palette-grey-400")),f(a.Chip,"defaultAvatarColor",T("palette-grey-700")),f(a.Chip,"defaultIconColor",T("palette-grey-700")),f(a.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),f(a.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),f(a.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),f(a.LinearProgress,"primaryBg",q(a.primary.main,.62)),f(a.LinearProgress,"secondaryBg",q(a.secondary.main,.62)),f(a.LinearProgress,"errorBg",q(a.error.main,.62)),f(a.LinearProgress,"infoBg",q(a.info.main,.62)),f(a.LinearProgress,"successBg",q(a.success.main,.62)),f(a.LinearProgress,"warningBg",q(a.warning.main,.62)),f(a.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.11)`),f(a.Slider,"primaryTrack",q(a.primary.main,.62)),f(a.Slider,"secondaryTrack",q(a.secondary.main,.62)),f(a.Slider,"errorTrack",q(a.error.main,.62)),f(a.Slider,"infoTrack",q(a.info.main,.62)),f(a.Slider,"successTrack",q(a.success.main,.62)),f(a.Slider,"warningTrack",q(a.warning.main,.62));const $=We(a.background.default,.8);f(a.SnackbarContent,"bg",$),f(a.SnackbarContent,"color",me(()=>a.getContrastText($))),f(a.SpeedDialAction,"fabHoverBg",We(a.background.paper,.15)),f(a.StepConnector,"border",T("palette-grey-400")),f(a.StepContent,"border",T("palette-grey-400")),f(a.Switch,"defaultColor",T("palette-common-white")),f(a.Switch,"defaultDisabledColor",T("palette-grey-100")),f(a.Switch,"primaryDisabledColor",q(a.primary.main,.62)),f(a.Switch,"secondaryDisabledColor",q(a.secondary.main,.62)),f(a.Switch,"errorDisabledColor",q(a.error.main,.62)),f(a.Switch,"infoDisabledColor",q(a.info.main,.62)),f(a.Switch,"successDisabledColor",q(a.success.main,.62)),f(a.Switch,"warningDisabledColor",q(a.warning.main,.62)),f(a.TableCell,"border",q(Ye(a.divider,1),.88)),f(a.Tooltip,"bg",Ye(a.grey[700],.92))}if(a.mode==="dark"){f(a.Alert,"errorColor",q(a.error.light,.6)),f(a.Alert,"infoColor",q(a.info.light,.6)),f(a.Alert,"successColor",q(a.success.light,.6)),f(a.Alert,"warningColor",q(a.warning.light,.6)),f(a.Alert,"errorFilledBg",T("palette-error-dark")),f(a.Alert,"infoFilledBg",T("palette-info-dark")),f(a.Alert,"successFilledBg",T("palette-success-dark")),f(a.Alert,"warningFilledBg",T("palette-warning-dark")),f(a.Alert,"errorFilledColor",me(()=>a.getContrastText(a.error.dark))),f(a.Alert,"infoFilledColor",me(()=>a.getContrastText(a.info.dark))),f(a.Alert,"successFilledColor",me(()=>a.getContrastText(a.success.dark))),f(a.Alert,"warningFilledColor",me(()=>a.getContrastText(a.warning.dark))),f(a.Alert,"errorStandardBg",H(a.error.light,.9)),f(a.Alert,"infoStandardBg",H(a.info.light,.9)),f(a.Alert,"successStandardBg",H(a.success.light,.9)),f(a.Alert,"warningStandardBg",H(a.warning.light,.9)),f(a.Alert,"errorIconColor",T("palette-error-main")),f(a.Alert,"infoIconColor",T("palette-info-main")),f(a.Alert,"successIconColor",T("palette-success-main")),f(a.Alert,"warningIconColor",T("palette-warning-main")),f(a.AppBar,"defaultBg",T("palette-grey-900")),f(a.AppBar,"darkBg",T("palette-background-paper")),f(a.AppBar,"darkColor",T("palette-text-primary")),f(a.Avatar,"defaultBg",T("palette-grey-600")),f(a.Button,"inheritContainedBg",T("palette-grey-800")),f(a.Button,"inheritContainedHoverBg",T("palette-grey-700")),f(a.Chip,"defaultBorder",T("palette-grey-700")),f(a.Chip,"defaultAvatarColor",T("palette-grey-300")),f(a.Chip,"defaultIconColor",T("palette-grey-300")),f(a.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),f(a.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),f(a.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),f(a.LinearProgress,"primaryBg",H(a.primary.main,.5)),f(a.LinearProgress,"secondaryBg",H(a.secondary.main,.5)),f(a.LinearProgress,"errorBg",H(a.error.main,.5)),f(a.LinearProgress,"infoBg",H(a.info.main,.5)),f(a.LinearProgress,"successBg",H(a.success.main,.5)),f(a.LinearProgress,"warningBg",H(a.warning.main,.5)),f(a.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.13)`),f(a.Slider,"primaryTrack",H(a.primary.main,.5)),f(a.Slider,"secondaryTrack",H(a.secondary.main,.5)),f(a.Slider,"errorTrack",H(a.error.main,.5)),f(a.Slider,"infoTrack",H(a.info.main,.5)),f(a.Slider,"successTrack",H(a.success.main,.5)),f(a.Slider,"warningTrack",H(a.warning.main,.5));const $=We(a.background.default,.98);f(a.SnackbarContent,"bg",$),f(a.SnackbarContent,"color",me(()=>a.getContrastText($))),f(a.SpeedDialAction,"fabHoverBg",We(a.background.paper,.15)),f(a.StepConnector,"border",T("palette-grey-600")),f(a.StepContent,"border",T("palette-grey-600")),f(a.Switch,"defaultColor",T("palette-grey-300")),f(a.Switch,"defaultDisabledColor",T("palette-grey-600")),f(a.Switch,"primaryDisabledColor",H(a.primary.main,.55)),f(a.Switch,"secondaryDisabledColor",H(a.secondary.main,.55)),f(a.Switch,"errorDisabledColor",H(a.error.main,.55)),f(a.Switch,"infoDisabledColor",H(a.info.main,.55)),f(a.Switch,"successDisabledColor",H(a.success.main,.55)),f(a.Switch,"warningDisabledColor",H(a.warning.main,.55)),f(a.TableCell,"border",H(Ye(a.divider,1),.68)),f(a.Tooltip,"bg",Ye(a.grey[700],.92))}he(a.background,"default"),he(a.background,"paper"),he(a.common,"background"),he(a.common,"onBackground"),he(a,"divider"),Object.keys(a).forEach($=>{const L=a[$];$!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&f(a[$],"mainChannel",Me(Ne(L.main))),L.light&&f(a[$],"lightChannel",Me(Ne(L.light))),L.dark&&f(a[$],"darkChannel",Me(Ne(L.dark))),L.contrastText&&f(a[$],"contrastTextChannel",Me(Ne(L.contrastText))),$==="text"&&(he(a[$],"primary"),he(a[$],"secondary")),$==="action"&&(L.active&&he(a[$],"active"),L.selected&&he(a[$],"selected")))})}),O=t.reduce((re,a)=>se(re,a),O);const g={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:mi(O)},{vars:F,generateThemeVars:ee,generateStyleSheets:te}=Do(O,g);return O.vars=F,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([re,a])=>{O[re]=a}),O.generateThemeVars=ee,O.generateStyleSheets=te,O.generateSpacing=function(){return Er(d.spacing,xt(this))},O.getColorSchemeSelector=Lo(l),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=s,O.unstable_sxConfig={...at,...d==null?void 0:d.unstable_sxConfig},O.unstable_sx=function(a){return Ie({sx:a,theme:this})},O.toRuntimeSource=kr,O}function fr(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:It({...r===!0?{}:r.palette,mode:t})})}function bi(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r==null?void 0:r.mode,...s}=e,l=i||"light",u=o==null?void 0:o[l],d={...o,...r?{[l]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Et(e,...t);let p=r;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const m=Et({...e,palette:p},...t);return m.defaultColorScheme=l,m.colorSchemes=d,m.palette.mode==="light"&&(m.colorSchemes.light={...d.light!==!0&&d.light,palette:m.palette},fr(m,"dark",d.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:m.palette},fr(m,"light",d.light)),m}return!r&&!("light"in d)&&l==="light"&&(d.light=!0),yi({...s,colorSchemes:d,defaultColorScheme:l,...typeof n!="boolean"&&n},...t)}const Rr=bi(),Mr="$$material";function vi(){const e=po(Rr);return process.env.NODE_ENV!=="production"&&pe.useDebugValue(e),e[Mr]||e}function Si(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ci=e=>Si(e)&&e!=="classes",Ei=Co({themeId:Mr,defaultTheme:Rr,rootShouldForwardProp:Ci}),Ti=Mo;process.env.NODE_ENV!=="production"&&(D.node,D.object.isRequired);function xi(e){return Ro(e)}function Oi(e){return _t("MuiSvgIcon",e)}go("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wi=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${xe(t)}`,`fontSize${xe(r)}`]};return Zr(o,Oi,n)},_i=Ei("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${xe(r.color)}`],t[`fontSize${xe(r.fontSize)}`]]}})(Ti(({theme:e})=>{var t,r,n,o,i,s,l,u,d,p,m,h,S,v;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:c=>!c.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((p=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,c])=>c&&c.main).map(([c])=>{var x,_;return{props:{color:c},style:{color:(_=(x=(e.vars??e).palette)==null?void 0:x[c])==null?void 0:_.main}}}),{props:{color:"action"},style:{color:(h=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(v=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Qe=pe.forwardRef(function(t,r){const n=xi({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:l="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:m,viewBox:h="0 0 24 24",...S}=n,v=pe.isValidElement(o)&&o.type==="svg",c={...n,color:s,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:v},x={};p||(x.viewBox=h);const _=wi(c);return b.jsxs(_i,{as:l,className:Xr(_.root,i),focusable:"false",color:d,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...x,...S,...v&&o.props,ownerState:c,children:[v?o.props.children:o,m?b.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(Qe.propTypes={children:D.node,classes:D.object,className:D.string,color:D.oneOfType([D.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),D.string]),component:D.elementType,fontSize:D.oneOfType([D.oneOf(["inherit","large","medium","small"]),D.string]),htmlColor:D.string,inheritViewBox:D.bool,shapeRendering:D.string,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),titleAccess:D.string,viewBox:D.string});Qe.muiName="SvgIcon";function ce(e,t){function r(n,o){return b.jsx(Qe,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Qe.muiName,pe.memo(pe.forwardRef(r))}const $i=ce(b.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 Ai(e){return b.jsx(A.Button,{name:e.name,"data-cy":e.dataCy??"cancel-button",className:e.className,sx:e.sx,startIcon:e.startIcon??b.jsx($i,{}),variant:e.variant??"contained",color:e.color??"secondary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const ki=ce(b.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 Ii(e){return b.jsx(A.Button,{"data-cy":e.dataCy??"delete-button",loading:e.loading??!1,loadingPosition:e.loadingPosition??"start",startIcon:e.startIcon??b.jsx(ki,{}),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 Pi=ce(b.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function Ri(e){return b.jsx(A.Tooltip,{title:"Go Back to Previous Page",children:b.jsxs(A.IconButton,{name:e.name,color:e.color??"primary",onClick:()=>e.navigate(-1),children:[b.jsx(Pi,{}),e.children]})})}const Mi=ce(b.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 Ni(e){return b.jsx(A.Button,{name:e.name,"data-cy":e.dataCy??"history-button",className:e.className,sx:e.sx??{p:1,m:1},startIcon:e.startIcon??b.jsx(Mi,{}),variant:e.variant??"contained",color:e.color??"primary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const ji=ce(b.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"),Bi={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function Di(e){return b.jsx(A.Button,{name:e.name,"data-cy":e.dataCy??"loading-success-button",variant:e.variant??"contained",color:e.color??"success",loadingPosition:"start",startIcon:e.startIcon??b.jsx(ji,{}),loading:e.loading,type:e.type??"button",style:Bi,sx:e.sx,onClick:e.onClick,children:e.children??e.name})}const Li=ce(b.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 zi(e){return b.jsx(A.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??b.jsx(Li,{}),children:e.children?e.children:"Manage"})}function Vi(e){return b.jsx(A.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 Fi(e){return b.jsx(A.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 Ui=ce(b.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 Yi(e){return b.jsx(A.Tooltip,{title:e.tooltipTitle,children:b.jsx(A.IconButton,{sx:{pt:0,pb:0},color:e.color??"primary",onClick:()=>e.onClick(!0),"aria-label":e.tooltipTitle,children:b.jsx(Ui,{})})})}const Pt=ce(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Wi=e=>{const[t,r]=ye.useState(!1);ye.useEffect(()=>{r(e.open)},[e.open,e.progressState]);const n=b.jsx(A.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>r(!1),children:b.jsx(Pt,{fontSize:"small"})});return b.jsxs(b.Fragment,{children:[b.jsx(A.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:b.jsx(A.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:n,children:e.progressState.message})}),b.jsx(A.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isError,TransitionComponent:A.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:b.jsx(A.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:n,children:e.progressState.message})})]})},Hi=e=>{const[t,r]=ye.useState(!1);ye.useEffect(()=>{r(e.open)},[e.open,e]);const n=b.jsx(A.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>r(!1),children:b.jsx(Pt,{fontSize:"small"})});return b.jsxs(b.Fragment,{children:[b.jsx(A.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:b.jsx(A.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:n,children:e.message})}),b.jsx(A.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isError,TransitionComponent:A.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:b.jsx(A.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:n,children:e.message})})]})},dr=ce(b.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),mr=ce(b.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),pr=ce(b.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),hr=ce(b.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function qi(e){const t=vi(),{count:r,page:n,rowsPerPage:o,onPageChange:i}=e,s=p=>{i(p,0)},l=p=>{i(p,n-1)},u=p=>{i(p,n+1)},d=p=>{i(p,Math.max(0,Math.ceil(r/o)-1))};return b.jsxs(A.Box,{sx:{flexShrink:0,ml:2.5},children:[b.jsx(A.IconButton,{onClick:s,disabled:n===0,"aria-label":"first page",children:t.direction==="rtl"?b.jsx(hr,{}):b.jsx(dr,{})}),b.jsx(A.IconButton,{onClick:l,disabled:n===0,"aria-label":"previous page",children:t.direction==="rtl"?b.jsx(pr,{}):b.jsx(mr,{})}),b.jsx(A.IconButton,{onClick:u,disabled:n>=Math.ceil(r/o)-1,"aria-label":"next page",children:t.direction==="rtl"?b.jsx(mr,{}):b.jsx(pr,{})}),b.jsx(A.IconButton,{onClick:d,disabled:n>=Math.ceil(r/o)-1,"aria-label":"last page",children:t.direction==="rtl"?b.jsx(dr,{}):b.jsx(hr,{})})]})}function Gi(e){const{children:t,index:r,...n}=e;return b.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${r}`,"aria-labelledby":`vertical-tab-${r}`,...n,children:b.jsx(A.Box,{sx:{p:3},children:b.jsx(A.Typography,{component:"span",children:t})})})}function Ki(e){return{id:`vertical-tab-${e}`,"aria-controls":`vertical-tabpanel-${e}`}}function Qi(e){return b.jsx(A.Link,{component:Lr.Link,to:e.href,className:"next-btn-link",underline:"hover",children:e.linkText??e.children})}function Ji(){return b.jsx("div",{style:{margin:"1.5rem"},className:"app-flex-justify-center",children:b.jsx(A.CircularProgress,{})})}function Xi(e){const{onClose:t,title:r,message:n,open:o,...i}=e;return b.jsxs(A.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[b.jsx(A.DialogTitle,{children:r??"Confirm"}),b.jsx(A.DialogContent,{dividers:!0,children:n}),b.jsxs(A.DialogActions,{children:[b.jsx(A.Button,{autoFocus:!0,onClick:()=>t("No"),children:"Cancel"}),b.jsx(A.Button,{onClick:()=>t("Yes"),children:"Yes"})]})]})}function Zi(e){const[t,r]=ye.useState(!0),[n]=ye.useState(e.dismissible??!0),[o]=ye.useState(e.dismissOnTimeOut??!0),[i]=ye.useState(e.dismissTimeOut??5e3);return setTimeout(()=>{r(o?!1:t)},i),b.jsx("span",{children:t&&b.jsx(A.Alert,{action:n?b.jsx(A.IconButton,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{r(!1)},children:b.jsx(Pt,{fontSize:"inherit"})}):null,style:{margin:"20px"},...e,children:e.message})})}const ea=ce(b.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 ta(e){return b.jsxs("a",{href:e.href,target:"_blank",rel:"noreferrer",style:{display:"flex",alignItems:"center"},children:[e.linkText,b.jsx(A.Icon,{sx:{fontSize:"1.1rem",mx:.75},component:ea}),e.children]})}function ra(e){return e.condition===void 0||!e.condition?null:e.children}function na(e){return typeof e=="boolean"?e:typeof e=="string"?e.toLowerCase()==="true":!1}var Rt=(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))(Rt||{});const oa=()=>{const e=+new Date;return new Date(e+Rt.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS)},ia=e=>vt.format(new Date(e),Rt.ISO_DATE_FORMAT),aa=(e,t)=>e?vt.format(vt.parseISO(e),t):"";function sa(e){if(typeof e=="string")return Number.parseInt(e,10)}const ca=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),la=e=>({...e,isLoading:!0,isSuccess:!1,isError:!1,message:""}),ua=(e,t)=>({...e,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:t||""}),fa=(e,t)=>({...e,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:t||""});function da(e){return e==null?!0:typeof e=="string"?e.trim()==="":!1}const ma=e=>{try{return decodeURIComponent(e)!==e}catch{return!1}};class pa extends Error{constructor(r,{status:n,statusText:o,redirected:i,type:s}){super(r);Pe(this,"status");Pe(this,"statusText");Pe(this,"redirected");Pe(this,"type");this.status=n,this.statusText=o,this.statusText=s,this.redirected=i,this.name="HttpError"}}async function ha(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 pa(i,o)}return await o.json()}function ga(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}exports.AppSnackBar=Wi;exports.CancelButton=Ai;exports.CenteredCircularProgress=Ji;exports.ConfirmDialog=Xi;exports.DeleteButton=Ii;exports.DismissibleAlert=Zi;exports.EditIconButton=Yi;exports.ExcelButton=Fi;exports.GoBackButton=Ri;exports.HistoryButton=Ni;exports.LoadingSuccessButton=Di;exports.ManageButton=zi;exports.NextLink=Qi;exports.OpenInNewIconLink=ta;exports.QuerySnackBar=Hi;exports.ReactIf=ra;exports.SuccessButton=Vi;exports.TabPanel=Gi;exports.TablePaginationActions=qi;exports.a11yProps=Ki;exports.convertToIsoDate=ia;exports.fetchClient=ha;exports.formatDate=aa;exports.getCssVariable=ga;exports.initializeState=ca;exports.isBlankOrEmpty=da;exports.isEncoded=ma;exports.markError=fa;exports.markLoading=la;exports.markSuccess=ua;exports.parseBoolean=na;exports.parseNumber=sa;exports.setCookieExpirationDate=oa;
74
+ 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 hi(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const me=e=>{try{return e()}catch{}},gi=(e="mui")=>No(e);function bt(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=ui({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...s}=Et({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[n]={...t,palette:i,opacity:{...Ir(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Pr(o)},s}function yi(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=fi,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(r)[0],m=n||(r.light&&p!=="light"?"light":p),h=gi(i),{[m]:S,light:v,dark:c,...x}=r,_={...x};let X=S;if((m==="dark"&&!("dark"in r)||m==="light"&&!("light"in r))&&(X=!0),!X)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:Se(21,m));const w=bt(_,X,d,m);v&&!_.light&&bt(_,v,void 0,"light"),c&&!_.dark&&bt(_,c,void 0,"dark");let O={defaultColorScheme:m,...w,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:u,getCssVar:h,colorSchemes:_,font:{...Go(w.typography),...w.font},spacing:hi(d.spacing)};Object.keys(O.colorSchemes).forEach(re=>{const a=O.colorSchemes[re].palette,T=$=>{const L=$.split("-"),K=L[1],oe=L[2];return h($,a[K][oe])};if(a.mode==="light"&&(f(a.common,"background","#fff"),f(a.common,"onBackground","#000")),a.mode==="dark"&&(f(a.common,"background","#000"),f(a.common,"onBackground","#fff")),pi(a,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),a.mode==="light"){f(a.Alert,"errorColor",H(a.error.light,.6)),f(a.Alert,"infoColor",H(a.info.light,.6)),f(a.Alert,"successColor",H(a.success.light,.6)),f(a.Alert,"warningColor",H(a.warning.light,.6)),f(a.Alert,"errorFilledBg",T("palette-error-main")),f(a.Alert,"infoFilledBg",T("palette-info-main")),f(a.Alert,"successFilledBg",T("palette-success-main")),f(a.Alert,"warningFilledBg",T("palette-warning-main")),f(a.Alert,"errorFilledColor",me(()=>a.getContrastText(a.error.main))),f(a.Alert,"infoFilledColor",me(()=>a.getContrastText(a.info.main))),f(a.Alert,"successFilledColor",me(()=>a.getContrastText(a.success.main))),f(a.Alert,"warningFilledColor",me(()=>a.getContrastText(a.warning.main))),f(a.Alert,"errorStandardBg",q(a.error.light,.9)),f(a.Alert,"infoStandardBg",q(a.info.light,.9)),f(a.Alert,"successStandardBg",q(a.success.light,.9)),f(a.Alert,"warningStandardBg",q(a.warning.light,.9)),f(a.Alert,"errorIconColor",T("palette-error-main")),f(a.Alert,"infoIconColor",T("palette-info-main")),f(a.Alert,"successIconColor",T("palette-success-main")),f(a.Alert,"warningIconColor",T("palette-warning-main")),f(a.AppBar,"defaultBg",T("palette-grey-100")),f(a.Avatar,"defaultBg",T("palette-grey-400")),f(a.Button,"inheritContainedBg",T("palette-grey-300")),f(a.Button,"inheritContainedHoverBg",T("palette-grey-A100")),f(a.Chip,"defaultBorder",T("palette-grey-400")),f(a.Chip,"defaultAvatarColor",T("palette-grey-700")),f(a.Chip,"defaultIconColor",T("palette-grey-700")),f(a.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),f(a.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),f(a.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),f(a.LinearProgress,"primaryBg",q(a.primary.main,.62)),f(a.LinearProgress,"secondaryBg",q(a.secondary.main,.62)),f(a.LinearProgress,"errorBg",q(a.error.main,.62)),f(a.LinearProgress,"infoBg",q(a.info.main,.62)),f(a.LinearProgress,"successBg",q(a.success.main,.62)),f(a.LinearProgress,"warningBg",q(a.warning.main,.62)),f(a.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.11)`),f(a.Slider,"primaryTrack",q(a.primary.main,.62)),f(a.Slider,"secondaryTrack",q(a.secondary.main,.62)),f(a.Slider,"errorTrack",q(a.error.main,.62)),f(a.Slider,"infoTrack",q(a.info.main,.62)),f(a.Slider,"successTrack",q(a.success.main,.62)),f(a.Slider,"warningTrack",q(a.warning.main,.62));const $=We(a.background.default,.8);f(a.SnackbarContent,"bg",$),f(a.SnackbarContent,"color",me(()=>a.getContrastText($))),f(a.SpeedDialAction,"fabHoverBg",We(a.background.paper,.15)),f(a.StepConnector,"border",T("palette-grey-400")),f(a.StepContent,"border",T("palette-grey-400")),f(a.Switch,"defaultColor",T("palette-common-white")),f(a.Switch,"defaultDisabledColor",T("palette-grey-100")),f(a.Switch,"primaryDisabledColor",q(a.primary.main,.62)),f(a.Switch,"secondaryDisabledColor",q(a.secondary.main,.62)),f(a.Switch,"errorDisabledColor",q(a.error.main,.62)),f(a.Switch,"infoDisabledColor",q(a.info.main,.62)),f(a.Switch,"successDisabledColor",q(a.success.main,.62)),f(a.Switch,"warningDisabledColor",q(a.warning.main,.62)),f(a.TableCell,"border",q(Ye(a.divider,1),.88)),f(a.Tooltip,"bg",Ye(a.grey[700],.92))}if(a.mode==="dark"){f(a.Alert,"errorColor",q(a.error.light,.6)),f(a.Alert,"infoColor",q(a.info.light,.6)),f(a.Alert,"successColor",q(a.success.light,.6)),f(a.Alert,"warningColor",q(a.warning.light,.6)),f(a.Alert,"errorFilledBg",T("palette-error-dark")),f(a.Alert,"infoFilledBg",T("palette-info-dark")),f(a.Alert,"successFilledBg",T("palette-success-dark")),f(a.Alert,"warningFilledBg",T("palette-warning-dark")),f(a.Alert,"errorFilledColor",me(()=>a.getContrastText(a.error.dark))),f(a.Alert,"infoFilledColor",me(()=>a.getContrastText(a.info.dark))),f(a.Alert,"successFilledColor",me(()=>a.getContrastText(a.success.dark))),f(a.Alert,"warningFilledColor",me(()=>a.getContrastText(a.warning.dark))),f(a.Alert,"errorStandardBg",H(a.error.light,.9)),f(a.Alert,"infoStandardBg",H(a.info.light,.9)),f(a.Alert,"successStandardBg",H(a.success.light,.9)),f(a.Alert,"warningStandardBg",H(a.warning.light,.9)),f(a.Alert,"errorIconColor",T("palette-error-main")),f(a.Alert,"infoIconColor",T("palette-info-main")),f(a.Alert,"successIconColor",T("palette-success-main")),f(a.Alert,"warningIconColor",T("palette-warning-main")),f(a.AppBar,"defaultBg",T("palette-grey-900")),f(a.AppBar,"darkBg",T("palette-background-paper")),f(a.AppBar,"darkColor",T("palette-text-primary")),f(a.Avatar,"defaultBg",T("palette-grey-600")),f(a.Button,"inheritContainedBg",T("palette-grey-800")),f(a.Button,"inheritContainedHoverBg",T("palette-grey-700")),f(a.Chip,"defaultBorder",T("palette-grey-700")),f(a.Chip,"defaultAvatarColor",T("palette-grey-300")),f(a.Chip,"defaultIconColor",T("palette-grey-300")),f(a.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),f(a.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),f(a.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),f(a.LinearProgress,"primaryBg",H(a.primary.main,.5)),f(a.LinearProgress,"secondaryBg",H(a.secondary.main,.5)),f(a.LinearProgress,"errorBg",H(a.error.main,.5)),f(a.LinearProgress,"infoBg",H(a.info.main,.5)),f(a.LinearProgress,"successBg",H(a.success.main,.5)),f(a.LinearProgress,"warningBg",H(a.warning.main,.5)),f(a.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.13)`),f(a.Slider,"primaryTrack",H(a.primary.main,.5)),f(a.Slider,"secondaryTrack",H(a.secondary.main,.5)),f(a.Slider,"errorTrack",H(a.error.main,.5)),f(a.Slider,"infoTrack",H(a.info.main,.5)),f(a.Slider,"successTrack",H(a.success.main,.5)),f(a.Slider,"warningTrack",H(a.warning.main,.5));const $=We(a.background.default,.98);f(a.SnackbarContent,"bg",$),f(a.SnackbarContent,"color",me(()=>a.getContrastText($))),f(a.SpeedDialAction,"fabHoverBg",We(a.background.paper,.15)),f(a.StepConnector,"border",T("palette-grey-600")),f(a.StepContent,"border",T("palette-grey-600")),f(a.Switch,"defaultColor",T("palette-grey-300")),f(a.Switch,"defaultDisabledColor",T("palette-grey-600")),f(a.Switch,"primaryDisabledColor",H(a.primary.main,.55)),f(a.Switch,"secondaryDisabledColor",H(a.secondary.main,.55)),f(a.Switch,"errorDisabledColor",H(a.error.main,.55)),f(a.Switch,"infoDisabledColor",H(a.info.main,.55)),f(a.Switch,"successDisabledColor",H(a.success.main,.55)),f(a.Switch,"warningDisabledColor",H(a.warning.main,.55)),f(a.TableCell,"border",H(Ye(a.divider,1),.68)),f(a.Tooltip,"bg",Ye(a.grey[700],.92))}he(a.background,"default"),he(a.background,"paper"),he(a.common,"background"),he(a.common,"onBackground"),he(a,"divider"),Object.keys(a).forEach($=>{const L=a[$];$!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&f(a[$],"mainChannel",Me(Ne(L.main))),L.light&&f(a[$],"lightChannel",Me(Ne(L.light))),L.dark&&f(a[$],"darkChannel",Me(Ne(L.dark))),L.contrastText&&f(a[$],"contrastTextChannel",Me(Ne(L.contrastText))),$==="text"&&(he(a[$],"primary"),he(a[$],"secondary")),$==="action"&&(L.active&&he(a[$],"active"),L.selected&&he(a[$],"selected")))})}),O=t.reduce((re,a)=>se(re,a),O);const g={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:mi(O)},{vars:F,generateThemeVars:ee,generateStyleSheets:te}=Do(O,g);return O.vars=F,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([re,a])=>{O[re]=a}),O.generateThemeVars=ee,O.generateStyleSheets=te,O.generateSpacing=function(){return Er(d.spacing,xt(this))},O.getColorSchemeSelector=Lo(l),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=s,O.unstable_sxConfig={...at,...d==null?void 0:d.unstable_sxConfig},O.unstable_sx=function(a){return Ie({sx:a,theme:this})},O.toRuntimeSource=kr,O}function fr(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:It({...r===!0?{}:r.palette,mode:t})})}function bi(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r==null?void 0:r.mode,...s}=e,l=i||"light",u=o==null?void 0:o[l],d={...o,...r?{[l]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Et(e,...t);let p=r;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const m=Et({...e,palette:p},...t);return m.defaultColorScheme=l,m.colorSchemes=d,m.palette.mode==="light"&&(m.colorSchemes.light={...d.light!==!0&&d.light,palette:m.palette},fr(m,"dark",d.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:m.palette},fr(m,"light",d.light)),m}return!r&&!("light"in d)&&l==="light"&&(d.light=!0),yi({...s,colorSchemes:d,defaultColorScheme:l,...typeof n!="boolean"&&n},...t)}const Rr=bi(),Mr="$$material";function vi(){const e=po(Rr);return process.env.NODE_ENV!=="production"&&pe.useDebugValue(e),e[Mr]||e}function Si(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ci=e=>Si(e)&&e!=="classes",Ei=Co({themeId:Mr,defaultTheme:Rr,rootShouldForwardProp:Ci}),Ti=Mo;process.env.NODE_ENV!=="production"&&(D.node,D.object.isRequired);function xi(e){return Ro(e)}function Oi(e){return _t("MuiSvgIcon",e)}go("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wi=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${xe(t)}`,`fontSize${xe(r)}`]};return Zr(o,Oi,n)},_i=Ei("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${xe(r.color)}`],t[`fontSize${xe(r.fontSize)}`]]}})(Ti(({theme:e})=>{var t,r,n,o,i,s,l,u,d,p,m,h,S,v;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:c=>!c.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((p=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,c])=>c&&c.main).map(([c])=>{var x,_;return{props:{color:c},style:{color:(_=(x=(e.vars??e).palette)==null?void 0:x[c])==null?void 0:_.main}}}),{props:{color:"action"},style:{color:(h=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(v=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Qe=pe.forwardRef(function(t,r){const n=xi({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:l="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:m,viewBox:h="0 0 24 24",...S}=n,v=pe.isValidElement(o)&&o.type==="svg",c={...n,color:s,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:v},x={};p||(x.viewBox=h);const _=wi(c);return b.jsxs(_i,{as:l,className:Xr(_.root,i),focusable:"false",color:d,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...x,...S,...v&&o.props,ownerState:c,children:[v?o.props.children:o,m?b.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(Qe.propTypes={children:D.node,classes:D.object,className:D.string,color:D.oneOfType([D.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),D.string]),component:D.elementType,fontSize:D.oneOfType([D.oneOf(["inherit","large","medium","small"]),D.string]),htmlColor:D.string,inheritViewBox:D.bool,shapeRendering:D.string,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),titleAccess:D.string,viewBox:D.string});Qe.muiName="SvgIcon";function ce(e,t){function r(n,o){return b.jsx(Qe,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Qe.muiName,pe.memo(pe.forwardRef(r))}const $i=ce(b.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 Ai(e){return b.jsx(A.Button,{name:e.name,"data-cy":e.dataCy??"cancel-button",className:e.className,sx:e.sx,startIcon:e.startIcon??b.jsx($i,{}),variant:e.variant??"contained",color:e.color??"secondary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const ki=ce(b.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 Ii(e){return b.jsx(A.Button,{"data-cy":e.dataCy??"delete-button",loading:e.loading??!1,loadingPosition:e.loadingPosition??"start",startIcon:e.startIcon??b.jsx(ki,{}),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 Pi=ce(b.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function Ri(e){return b.jsx(A.Tooltip,{title:"Go Back to Previous Page",children:b.jsxs(A.IconButton,{name:e.name,color:e.color??"primary",onClick:()=>e.navigate(-1),children:[b.jsx(Pi,{}),e.children]})})}const Mi=ce(b.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 Ni(e){return b.jsx(A.Button,{name:e.name,"data-cy":e.dataCy??"history-button",className:e.className,sx:e.sx??{p:1,m:1},startIcon:e.startIcon??b.jsx(Mi,{}),variant:e.variant??"contained",color:e.color??"primary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const ji=ce(b.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"),Bi={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function Di(e){return b.jsx(A.Button,{name:e.name,"data-cy":e.dataCy??"loading-success-button",variant:e.variant??"contained",color:e.color??"success",loadingPosition:"start",startIcon:e.startIcon??b.jsx(ji,{}),loading:e.loading,type:e.type??"button",style:Bi,sx:e.sx,onClick:e.onClick,children:e.children??e.name})}const Li=ce(b.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 zi(e){return b.jsx(A.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??b.jsx(Li,{}),children:e.children?e.children:"Manage"})}function Vi(e){return b.jsx(A.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 Fi(e){return b.jsx(A.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 Ui=ce(b.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 Yi(e){return b.jsx(A.Tooltip,{title:e.tooltipTitle,children:b.jsx(A.IconButton,{sx:{pt:0,pb:0},color:e.color??"primary",onClick:()=>e.onClick(!0),"aria-label":e.tooltipTitle,children:b.jsx(Ui,{})})})}const Pt=ce(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Wi=e=>{const[t,r]=ye.useState(!1);ye.useEffect(()=>{r(e.open)},[e.open,e.progressState]);const n=b.jsx(A.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>r(!1),children:b.jsx(Pt,{fontSize:"small"})});return b.jsxs(b.Fragment,{children:[b.jsx(A.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:b.jsx(A.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:n,children:e.progressState.message})}),b.jsx(A.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isError,TransitionComponent:A.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:b.jsx(A.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:n,children:e.progressState.message})})]})},Hi=e=>{const[t,r]=ye.useState(!1);ye.useEffect(()=>{r(e.open)},[e.open,e]);const n=b.jsx(A.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>r(!1),children:b.jsx(Pt,{fontSize:"small"})});return b.jsxs(b.Fragment,{children:[b.jsx(A.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:b.jsx(A.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:n,children:e.message})}),b.jsx(A.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isError,TransitionComponent:A.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:b.jsx(A.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:n,children:e.message})})]})},dr=ce(b.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),mr=ce(b.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),pr=ce(b.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),hr=ce(b.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function qi(e){const t=vi(),{count:r,page:n,rowsPerPage:o,onPageChange:i}=e,s=p=>{i(p,0)},l=p=>{i(p,n-1)},u=p=>{i(p,n+1)},d=p=>{i(p,Math.max(0,Math.ceil(r/o)-1))};return b.jsxs(A.Box,{sx:{flexShrink:0,ml:2.5},children:[b.jsx(A.IconButton,{onClick:s,disabled:n===0,"aria-label":"first page",children:t.direction==="rtl"?b.jsx(hr,{}):b.jsx(dr,{})}),b.jsx(A.IconButton,{onClick:l,disabled:n===0,"aria-label":"previous page",children:t.direction==="rtl"?b.jsx(pr,{}):b.jsx(mr,{})}),b.jsx(A.IconButton,{onClick:u,disabled:n>=Math.ceil(r/o)-1,"aria-label":"next page",children:t.direction==="rtl"?b.jsx(mr,{}):b.jsx(pr,{})}),b.jsx(A.IconButton,{onClick:d,disabled:n>=Math.ceil(r/o)-1,"aria-label":"last page",children:t.direction==="rtl"?b.jsx(dr,{}):b.jsx(hr,{})})]})}function Gi(e){const{children:t,index:r,...n}=e;return b.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${r}`,"aria-labelledby":`vertical-tab-${r}`,...n,children:b.jsx(A.Box,{sx:{p:3},children:b.jsx(A.Typography,{component:"span",children:t})})})}function Ki(e){return{id:`vertical-tab-${e}`,"aria-controls":`vertical-tabpanel-${e}`}}function Qi(e){return b.jsx(A.Link,{component:Lr.Link,to:e.href,className:"next-btn-link",underline:"hover",children:e.linkText??e.children})}function Ji(){return b.jsx("div",{style:{margin:"1.5rem"},className:"app-flex-justify-center",children:b.jsx(A.CircularProgress,{})})}function Xi(e){const{onClose:t,title:r,message:n,open:o,...i}=e;return b.jsxs(A.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[b.jsx(A.DialogTitle,{children:r??"Confirm"}),b.jsx(A.DialogContent,{dividers:!0,children:n}),b.jsxs(A.DialogActions,{children:[b.jsx(A.Button,{autoFocus:!0,onClick:()=>t("No"),children:"Cancel"}),b.jsx(A.Button,{onClick:()=>t("Yes"),children:"Yes"})]})]})}function Zi(e){const[t,r]=ye.useState(!0),[n]=ye.useState(e.dismissible??!0),[o]=ye.useState(e.dismissOnTimeOut??!0),[i]=ye.useState(e.dismissTimeOut??5e3);return setTimeout(()=>{r(o?!1:t)},i),b.jsx("span",{children:t&&b.jsx(A.Alert,{action:n?b.jsx(A.IconButton,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{r(!1)},children:b.jsx(Pt,{fontSize:"inherit"})}):null,style:{margin:"20px"},...e,children:e.message})})}const ea=ce(b.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 ta(e){return b.jsxs("a",{href:e.href,target:"_blank",rel:"noreferrer",style:{display:"flex",alignItems:"center"},children:[e.linkText,b.jsx(A.Icon,{sx:{fontSize:"1.1rem",mx:.75},component:ea}),e.children]})}function ra(e){const{condition:t,children:r,else:n}=e;return t?typeof r=="function"?r():r:n?typeof n=="function"?n():n:null}function na(e){return typeof e=="boolean"?e:typeof e=="string"?e.toLowerCase()==="true":!1}var Rt=(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))(Rt||{});const oa=()=>{const e=+new Date;return new Date(e+Rt.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS)},ia=e=>vt.format(new Date(e),Rt.ISO_DATE_FORMAT),aa=(e,t)=>e?vt.format(vt.parseISO(e),t):"";function sa(e){if(typeof e=="string")return Number.parseInt(e,10)}const ca=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),la=e=>({...e,isLoading:!0,isSuccess:!1,isError:!1,message:""}),ua=(e,t)=>({...e,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:t||""}),fa=(e,t)=>({...e,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:t||""});function da(e){return e==null?!0:typeof e=="string"?e.trim()==="":!1}const ma=e=>{try{return decodeURIComponent(e)!==e}catch{return!1}};class pa extends Error{constructor(r,{status:n,statusText:o,redirected:i,type:s}){super(r);Pe(this,"status");Pe(this,"statusText");Pe(this,"redirected");Pe(this,"type");this.status=n,this.statusText=o,this.statusText=s,this.redirected=i,this.name="HttpError"}}async function ha(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 pa(i,o)}return await o.json()}function ga(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}exports.AppSnackBar=Wi;exports.CancelButton=Ai;exports.CenteredCircularProgress=Ji;exports.ConfirmDialog=Xi;exports.DeleteButton=Ii;exports.DismissibleAlert=Zi;exports.EditIconButton=Yi;exports.ExcelButton=Fi;exports.GoBackButton=Ri;exports.HistoryButton=Ni;exports.LoadingSuccessButton=Di;exports.ManageButton=zi;exports.NextLink=Qi;exports.OpenInNewIconLink=ta;exports.QuerySnackBar=Hi;exports.ReactIf=ra;exports.SuccessButton=Vi;exports.TabPanel=Gi;exports.TablePaginationActions=qi;exports.a11yProps=Ki;exports.convertToIsoDate=ia;exports.fetchClient=ha;exports.formatDate=aa;exports.getCssVariable=ga;exports.initializeState=ca;exports.isBlankOrEmpty=da;exports.isEncoded=ma;exports.markError=fa;exports.markLoading=la;exports.markSuccess=ua;exports.parseBoolean=na;exports.parseNumber=sa;exports.setCookieExpirationDate=oa;
package/index.mjs CHANGED
@@ -3979,7 +3979,8 @@ function $a(e) {
3979
3979
  );
3980
3980
  }
3981
3981
  function _a(e) {
3982
- return e.condition === void 0 || !e.condition ? null : e.children;
3982
+ const { condition: t, children: r, else: n } = e;
3983
+ return t ? typeof r == "function" ? r() : r : n ? typeof n == "function" ? n() : n : null;
3983
3984
  }
3984
3985
  function Aa(e) {
3985
3986
  return typeof e == "boolean" ? e : typeof e == "string" ? e.toLowerCase() === "true" : !1;
@@ -13,5 +13,5 @@ type DismissibleAlertProps = {
13
13
  dismissOnTimeOut?: boolean;
14
14
  dismissTimeOut?: number;
15
15
  };
16
- export declare function DismissibleAlert(props: DismissibleAlertProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function DismissibleAlert(props: Readonly<DismissibleAlertProps>): import("react/jsx-runtime").JSX.Element;
17
17
  export {};
@@ -1,13 +1,36 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
+ type ReactIfProps = {
3
+ /**
4
+ * The condition that determines whether children should be rendered
5
+ */
6
+ condition: boolean | null | undefined;
7
+ /**
8
+ * Content to render when condition is true.
9
+ * Can be either a ReactNode or a function returning a ReactNode
10
+ */
11
+ children: ReactNode | (() => ReactNode);
12
+ /**
13
+ * Optional content to render when condition is false
14
+ */
15
+ else?: ReactNode | (() => ReactNode);
16
+ };
2
17
  /**
3
18
  * Reusable If component, that renders content if the condition is true. Similar to *ngIf from Angular
4
19
  *
5
- * @param props Properties of the React Node
20
+ * @param props Properties of the component
6
21
  *
22
+ * @example
23
+ * ```tsx
24
+ * <ReactIf condition={isVisible}>
25
+ * <div>Visible content</div>
26
+ * </ReactIf>
27
+ *
28
+ * <ReactIf condition={isVisible} else={<div>Alternative content</div>}>
29
+ * <div>Main content</div>
30
+ * </ReactIf>
31
+ *```
7
32
  * @author Pavan Kumar Jadda
8
33
  * @since 0.1.0
9
34
  */
10
- export declare function ReactIf(props: {
11
- condition: boolean | undefined;
12
- children: React.ReactNode;
13
- }): React.ReactNode;
35
+ export declare function ReactIf(props: ReactIfProps): React.ReactNode;
36
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@js-smart/react-kit",
3
3
  "private": false,
4
- "version": "5.6.0",
4
+ "version": "5.7.0",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
7
7
  "publishConfig": {