@js-smart/react-kit 5.0.5 → 5.1.1
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 +15 -15
- package/lib/components/buttons/CancelButton.d.ts +2 -0
- package/lib/components/buttons/DeleteButton.d.ts +2 -0
- package/lib/components/buttons/GoBackButton.d.ts +1 -0
- package/lib/components/buttons/HistoryButton.d.ts +2 -0
- package/lib/components/buttons/LoadingSuccessButton.d.ts +2 -0
- package/lib/components/buttons/ManageButton.d.ts +3 -0
- package/lib/components/buttons/SuccessButton.d.ts +2 -0
- package/package.json +13 -1
- package/style.css +0 -1
package/index.js
CHANGED
|
@@ -199,7 +199,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
199
199
|
`))}return null}),direction:a.oneOf(["down","left","right","up"]),easing:a.oneOfType([a.shape({enter:a.string,exit:a.string}),a.string]),in:a.bool,onEnter:a.func,onEntered:a.func,onEntering:a.func,onExit:a.func,onExited:a.func,onExiting:a.func,style:a.object,timeout:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});function qo(e){return`scale(${e}, ${e**2})`}const eg={entering:{opacity:1,transform:qo(1)},entered:{opacity:1,transform:"none"}},To=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bn=w.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:p,onExited:g,onExiting:v,style:y,timeout:h="auto",TransitionComponent:b=at,...S}=t,T=Ft(),E=w.useRef(),x=Tt(),m=w.useRef(null),P=Ie(m,Ht(i),n),R=D=>A=>{if(D){const V=m.current;A===void 0?D(V):D(V,A)}},_=R(d),N=R((D,A)=>{mi(D);const{duration:V,delay:B,easing:Y}=dn({style:y,timeout:h,easing:s},{mode:"enter"});let M;h==="auto"?(M=x.transitions.getAutoHeightDuration(D.clientHeight),E.current=M):M=V,D.style.transition=[x.transitions.create("opacity",{duration:M,delay:B}),x.transitions.create("transform",{duration:To?M:M*.666,delay:B,easing:Y})].join(","),l&&l(D,A)}),f=R(u),$=R(v),j=R(D=>{const{duration:A,delay:V,easing:B}=dn({style:y,timeout:h,easing:s},{mode:"exit"});let Y;h==="auto"?(Y=x.transitions.getAutoHeightDuration(D.clientHeight),E.current=Y):Y=A,D.style.transition=[x.transitions.create("opacity",{duration:Y,delay:V}),x.transitions.create("transform",{duration:To?Y:Y*.666,delay:To?V:V||Y*.333,easing:B})].join(","),D.style.opacity=0,D.style.transform=qo(.75),p&&p(D)}),I=R(g),F=D=>{h==="auto"&&T.start(E.current||0,D),r&&r(m.current,D)};return C.jsx(b,{appear:o,in:c,nodeRef:m,onEnter:N,onEntered:f,onEntering:_,onExit:j,onExited:I,onExiting:$,addEndListener:F,timeout:h==="auto"?null:h,...S,children:(D,A)=>w.cloneElement(i,{style:{opacity:0,transform:qo(.75),visibility:D==="exited"&&!c?"hidden":void 0,...eg[D],...y,...i.props.style},ref:P,...A})})});process.env.NODE_ENV!=="production"&&(bn.propTypes={addEndListener:a.func,appear:a.bool,children:Nt.isRequired,easing:a.oneOfType([a.shape({enter:a.string,exit:a.string}),a.string]),in:a.bool,onEnter:a.func,onEntered:a.func,onEntering:a.func,onExit:a.func,onExited:a.func,onExiting:a.func,style:a.object,timeout:a.oneOfType([a.oneOf(["auto"]),a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});bn&&(bn.muiSupportAuto=!0);function tg(e){return ve("MuiIcon",e)}xe("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ng=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${G(t)}`,`fontSize${G(n)}`]};return Pe(o,tg,r)},rg=ne("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${G(n.color)}`],t[`fontSize${G(n.fontSize)}`]]}})(Oe(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:e.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:e.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(e.vars||e).palette.action.active}},{props:{color:"disabled"},style:{color:(e.vars||e).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(e.palette).filter(pt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Wr=w.forwardRef(function(t,n){const r=Te({props:t,name:"MuiIcon"}),{baseClassName:o="material-icons",className:i,color:s="inherit",component:c="span",fontSize:l="medium",...u}=r,d={...r,baseClassName:o,color:s,component:c,fontSize:l},p=ng(d);return C.jsx(rg,{as:c,className:re(o,"notranslate",p.root,i),ownerState:d,"aria-hidden":!0,ref:n,...u})});process.env.NODE_ENV!=="production"&&(Wr.propTypes={baseClassName:a.string,children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),a.string]),component:a.elementType,fontSize:a.oneOfType([a.oneOf(["inherit","large","medium","small"]),a.string]),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});Wr&&(Wr.muiName="Icon");function og(e){return ve("MuiLink",e)}const ig=xe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ag=({theme:e,ownerState:t})=>{const n=t.color,r=cn(e,`palette.${n}`,!1)||t.color,o=cn(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:De(r,.4)},Za={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},sg=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${G(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Pe(i,og,t)},cg=ne(ro,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${G(n.underline)}`],n.component==="button"&&t.button]}})(Oe(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(pt()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:De(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:De(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:De(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ig.focusVisible}`]:{outline:"auto"}}}]}))),Ac=w.forwardRef(function(t,n){const r=Te({props:t,name:"MuiLink"}),o=Tt(),{className:i,color:s="primary",component:c="a",onBlur:l,onFocus:u,TypographyClasses:d,underline:p="always",variant:g="inherit",sx:v,...y}=r,[h,b]=w.useState(!1),S=m=>{un(m.target)||b(!1),l&&l(m)},T=m=>{un(m.target)&&b(!0),u&&u(m)},E={...r,color:s,component:c,focusVisible:h,underline:p,variant:g},x=sg(E);return C.jsx(cg,{color:s,className:re(x.root,i),classes:d,component:c,onBlur:S,onFocus:T,ref:n,ownerState:E,variant:g,...y,sx:[...Za[s]===void 0?[{color:s}]:[],...Array.isArray(v)?v:[v]],style:{...y.style,...p==="always"&&s!=="inherit"&&!Za[s]&&{"--Link-underlineColor":ag({theme:o,ownerState:E})}}})});process.env.NODE_ENV!=="production"&&(Ac.propTypes={children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),a.string]),component:Xs,onBlur:a.func,onFocus:a.func,style:a.object,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TypographyClasses:a.object,underline:a.oneOf(["always","hover","none"]),variant:a.oneOfType([a.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),a.string])});function lg(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,s=Ft();w.useEffect(()=>{if(!o)return;function S(T){T.defaultPrevented||T.key==="Escape"&&(r==null||r(T,"escapeKeyDown"))}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[o,r]);const c=ot((S,T)=>{r==null||r(S,T)}),l=ot(S=>{!r||S==null||s.start(S,()=>{c(null,"timeout")})});w.useEffect(()=>(o&&l(t),s.clear),[o,t,l,s]);const u=S=>{r==null||r(S,"clickaway")},d=s.clear,p=w.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),g=S=>T=>{const E=S.onBlur;E==null||E(T),p()},v=S=>T=>{const E=S.onFocus;E==null||E(T),d()},y=S=>T=>{const E=S.onMouseEnter;E==null||E(T),d()},h=S=>T=>{const E=S.onMouseLeave;E==null||E(T),p()};return w.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",p),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",d)}},[n,o,p,d]),{getRootProps:(S={})=>{const T={...Dr(e),...Dr(S)};return{role:"presentation",...S,...T,onBlur:g(T),onFocus:v(T),onMouseEnter:y(T),onMouseLeave:h(T)}},onClickAway:u}}function ug(e){return ve("MuiSnackbarContent",e)}xe("MuiSnackbarContent",["root","message","action"]);const dg=e=>{const{classes:t}=e;return Pe({root:["root"],action:["action"],message:["message"]},ug,t)},fg=ne(ar,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Oe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=Gs(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),pg=ne("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),mg=ne("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Dc=w.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:s,role:c="alert",...l}=r,u=r,d=dg(u);return C.jsxs(fg,{role:c,square:!0,elevation:6,className:re(d.root,i),ownerState:u,ref:n,...l,children:[C.jsx(pg,{className:d.message,ownerState:u,children:s}),o?C.jsx(mg,{className:d.action,ownerState:u,children:o}):null]})});process.env.NODE_ENV!=="production"&&(Dc.propTypes={action:a.node,classes:a.object,className:a.string,message:a.node,role:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function hg(e){return ve("MuiSnackbar",e)}xe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const gg=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${G(n.vertical)}${G(n.horizontal)}`]};return Pe(r,hg,t)},es=ne("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${G(n.anchorOrigin.vertical)}${G(n.anchorOrigin.horizontal)}`]]}})(Oe(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Zn=w.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSnackbar"}),o=Tt(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:c,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:p,ClickAwayListenerProps:g,ContentProps:v,disableWindowBlurListener:y=!1,message:h,onBlur:b,onClose:S,onFocus:T,onMouseEnter:E,onMouseLeave:x,open:m,resumeHideDuration:P,TransitionComponent:R=bn,transitionDuration:_=i,TransitionProps:{onEnter:N,onExited:f,...$}={},...j}=r,I={...r,anchorOrigin:{vertical:c,horizontal:l},autoHideDuration:u,disableWindowBlurListener:y,TransitionComponent:R,transitionDuration:_},F=gg(I),{getRootProps:D,onClickAway:A}=lg({...I}),[V,B]=w.useState(!0),Y=nc({elementType:es,getSlotProps:D,externalForwardedProps:j,ownerState:I,additionalProps:{ref:n},className:[F.root,p]}),M=U=>{B(!0),f&&f(U)},L=(U,H)=>{B(!1),N&&N(U,H)};return!m&&V?null:C.jsx(Br,{onClickAway:A,...g,children:C.jsx(es,{...Y,children:C.jsx(R,{appear:!0,in:m,timeout:_,direction:c==="top"?"down":"up",onEnter:L,onExited:M,...$,children:d||C.jsx(Dc,{message:h,action:s,...v})})})})});process.env.NODE_ENV!=="production"&&(Zn.propTypes={action:a.node,anchorOrigin:a.shape({horizontal:a.oneOf(["center","left","right"]).isRequired,vertical:a.oneOf(["bottom","top"]).isRequired}),autoHideDuration:a.number,children:a.element,classes:a.object,className:a.string,ClickAwayListenerProps:a.object,ContentProps:a.object,disableWindowBlurListener:a.bool,key:()=>null,message:a.node,onBlur:a.func,onClose:a.func,onFocus:a.func,onMouseEnter:a.func,onMouseLeave:a.func,open:a.bool,resumeHideDuration:a.number,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})]),TransitionProps:a.object});function yg(e){return ve("MuiTooltip",e)}const Se=xe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function bg(e){return Math.round(e*1e5)/1e5}const vg=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${G(i.split("-")[0])}`],arrow:["arrow"]};return Pe(s,yg,t)},xg=ne(Si,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Oe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Se.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Se.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Se.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Se.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Se.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Se.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Se.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Se.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Eg=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${G(n.placement.split("-")[0])}`]]}})(Oe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:De(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Se.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Se.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Se.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Se.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bg(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Se.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Se.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Se.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Se.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Se.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Se.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Se.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Se.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Se.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Se.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),wg=ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Oe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:De(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let xr=!1;const ts=new no;let kn={x:0,y:0};function Er(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const $i=w.forwardRef(function(t,n){var Yi,Hi,qi;const r=Te({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:s,components:c={},componentsProps:l={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:g=!1,disableTouchListener:v=!1,enterDelay:y=100,enterNextDelay:h=0,enterTouchDelay:b=700,followCursor:S=!1,id:T,leaveDelay:E=0,leaveTouchDelay:x=1500,onClose:m,onOpen:P,open:R,placement:_="bottom",PopperComponent:N,PopperProps:f={},slotProps:$={},slots:j={},title:I,TransitionComponent:F=bn,TransitionProps:D,...A}=r,V=w.isValidElement(i)?i:C.jsx("span",{children:i}),B=Tt(),Y=rc(),[M,L]=w.useState(),[U,H]=w.useState(null),W=w.useRef(!1),q=g||S,K=Ft(),X=Ft(),Q=Ft(),ee=Ft(),[Z,pe]=Kd({controlled:R,default:!1,name:"Tooltip",state:"open"});let O=Z;if(process.env.NODE_ENV!=="production"){const{current:te}=w.useRef(R!==void 0);w.useEffect(()=>{M&&M.disabled&&!te&&I!==""&&M.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
200
200
|
`))},[I,M,te])}const ae=ui(T),z=w.useRef(),ke=ot(()=>{z.current!==void 0&&(document.body.style.WebkitUserSelect=z.current,z.current=void 0),ee.clear()});w.useEffect(()=>ke,[ke]);const Ue=te=>{ts.clear(),xr=!0,pe(!0),P&&!O&&P(te)},Ye=ot(te=>{ts.start(800+E,()=>{xr=!1}),pe(!1),m&&O&&m(te),K.start(B.transitions.duration.shortest,()=>{W.current=!1})}),tt=te=>{W.current&&te.type!=="touchstart"||(M&&M.removeAttribute("title"),X.clear(),Q.clear(),y||xr&&h?X.start(xr?h:y,()=>{Ue(te)}):Ue(te))},nt=te=>{X.clear(),Q.start(E,()=>{Ye(te)})},[,He]=w.useState(!1),st=te=>{un(te.target)||(He(!1),nt(te))},Dt=te=>{M||L(te.currentTarget),un(te.target)&&(He(!0),tt(te))},J=te=>{W.current=!0;const rt=V.props;rt.onTouchStart&&rt.onTouchStart(te)},Ot=te=>{J(te),Q.clear(),K.clear(),ke(),z.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ee.start(b,()=>{document.body.style.WebkitUserSelect=z.current,tt(te)})},qt=te=>{V.props.onTouchEnd&&V.props.onTouchEnd(te),ke(),Q.start(x,()=>{Ye(te)})};w.useEffect(()=>{if(!O)return;function te(rt){rt.key==="Escape"&&Ye(rt)}return document.addEventListener("keydown",te),()=>{document.removeEventListener("keydown",te)}},[Ye,O]);const It=Ie(Ht(V),L,n);!I&&I!==0&&(O=!1);const jt=w.useRef(),fr=te=>{const rt=V.props;rt.onMouseMove&&rt.onMouseMove(te),kn={x:te.clientX,y:te.clientY},jt.current&&jt.current.update()},Sn={},lo=typeof I=="string";u?(Sn.title=!O&&lo&&!p?I:null,Sn["aria-describedby"]=O?ae:null):(Sn["aria-label"]=lo?I:null,Sn["aria-labelledby"]=O&&!lo?ae:null);const qe={...Sn,...A,...V.props,className:re(A.className,V.props.className),onTouchStart:J,ref:It,...S?{onMouseMove:fr}:{}};process.env.NODE_ENV!=="production"&&(qe["data-mui-internal-clone-element"]=!0,w.useEffect(()=>{M&&!M.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
201
201
|
`))},[M]));const Tn={};v||(qe.onTouchStart=Ot,qe.onTouchEnd=qt),p||(qe.onMouseOver=Er(tt,qe.onMouseOver),qe.onMouseLeave=Er(nt,qe.onMouseLeave),q||(Tn.onMouseOver=tt,Tn.onMouseLeave=nt)),d||(qe.onFocus=Er(Dt,qe.onFocus),qe.onBlur=Er(st,qe.onBlur),q||(Tn.onFocus=Dt,Tn.onBlur=st)),process.env.NODE_ENV!=="production"&&V.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${V.props.title}\` or the Tooltip component.`].join(`
|
|
202
|
-
`));const tl=w.useMemo(()=>{var rt;let te=[{name:"arrow",enabled:!!U,options:{element:U,padding:4}}];return(rt=f.popperOptions)!=null&&rt.modifiers&&(te=te.concat(f.popperOptions.modifiers)),{...f.popperOptions,modifiers:te}},[U,f]),Cn={...r,isRtl:Y,arrow:o,disableInteractive:q,placement:_,PopperComponentProp:N,touch:W.current},uo=vg(Cn),Wi=j.popper??c.Popper??xg,Vi=j.transition??c.Transition??F??bn,zi=j.tooltip??c.Tooltip??Eg,Ui=j.arrow??c.Arrow??wg,nl=rn(Wi,{...f,...$.popper??l.popper,className:re(uo.popper,f==null?void 0:f.className,(Yi=$.popper??l.popper)==null?void 0:Yi.className)},Cn),rl=rn(Vi,{...D,...$.transition??l.transition},Cn),ol=rn(zi,{...$.tooltip??l.tooltip,className:re(uo.tooltip,(Hi=$.tooltip??l.tooltip)==null?void 0:Hi.className)},Cn),il=rn(Ui,{...$.arrow??l.arrow,className:re(uo.arrow,(qi=$.arrow??l.arrow)==null?void 0:qi.className)},Cn);return C.jsxs(w.Fragment,{children:[w.cloneElement(V,qe),C.jsx(Wi,{as:N??Si,placement:_,anchorEl:S?{getBoundingClientRect:()=>({top:kn.y,left:kn.x,right:kn.x,bottom:kn.y,width:0,height:0})}:M,popperRef:jt,open:M?O:!1,id:ae,transition:!0,...Tn,...nl,popperOptions:tl,children:({TransitionProps:te})=>C.jsx(Vi,{timeout:B.transitions.duration.shorter,...te,...rl,children:C.jsxs(zi,{...ol,children:[I,o?C.jsx(Ui,{...il,ref:H}):null]})})})]})});process.env.NODE_ENV!=="production"&&($i.propTypes={arrow:a.bool,children:Nt.isRequired,classes:a.object,className:a.string,components:a.shape({Arrow:a.elementType,Popper:a.elementType,Tooltip:a.elementType,Transition:a.elementType}),componentsProps:a.shape({arrow:a.object,popper:a.object,tooltip:a.object,transition:a.object}),describeChild:a.bool,disableFocusListener:a.bool,disableHoverListener:a.bool,disableInteractive:a.bool,disableTouchListener:a.bool,enterDelay:a.number,enterNextDelay:a.number,enterTouchDelay:a.number,followCursor:a.bool,id:a.string,leaveDelay:a.number,leaveTouchDelay:a.number,onClose:a.func,onOpen:a.func,open:a.bool,placement:a.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:a.elementType,PopperProps:a.object,slotProps:a.shape({arrow:a.object,popper:a.object,tooltip:a.object,transition:a.object}),slots:a.shape({arrow:a.elementType,popper:a.elementType,tooltip:a.elementType,transition:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),title:a.node,TransitionComponent:a.elementType,TransitionProps:a.object});const Sg=$e(C.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 Tg(e){return C.jsx(Et,{name:e.name,"data-cy":e.dataCy??"cancel-button",className:e.className,sx:e.sx,startIcon:e.startIcon??C.jsx(Sg,{}),variant:"contained",color:"secondary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}function Cg(e){return ve("MuiLoadingButton",e)}const bt=xe("MuiLoadingButton",["root","label","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Og=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],label:["label"],startIcon:[t&&`startIconLoading${G(n)}`],endIcon:[t&&`endIconLoading${G(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${G(n)}`]},i=Pe(o,Cg,r);return{...r,...i}},Rg=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Pg=ne(Et,{shouldForwardProp:e=>Rg(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${bt.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${bt.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(Oe(({theme:e})=>({display:"inline-flex",[`& .${bt.startIconLoadingStart}, & .${bt.endIconLoadingEnd}`]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0},variants:[{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${bt.loading}`]:{color:"transparent"}}},{props:({ownerState:t})=>t.loadingPosition==="start"&&t.fullWidth,style:{[`& .${bt.startIconLoadingStart}, & .${bt.endIconLoadingEnd}`]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0,marginRight:-8}}},{props:({ownerState:t})=>t.loadingPosition==="end"&&t.fullWidth,style:{[`& .${bt.startIconLoadingStart}, & .${bt.endIconLoadingEnd}`]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0,marginLeft:-8}}}]}))),kg=ne("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${G(n.loadingPosition)}`]]}})(Oe(({theme:e})=>({position:"absolute",visibility:"visible",display:"flex",variants:[{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:({loadingPosition:t,ownerState:n})=>t==="start"&&n.size!=="small",style:{left:14}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:({loadingPosition:t,ownerState:n})=>t==="end"&&n.size!=="small",style:{right:14}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:({ownerState:t})=>t.loadingPosition==="start"&&t.fullWidth,style:{position:"relative",left:-10}},{props:({ownerState:t})=>t.loadingPosition==="end"&&t.fullWidth,style:{position:"relative",right:-10}}]}))),ns=ne("span",{name:"MuiLoadingButton",slot:"Label",overridesResolver:(e,t)=>[t.label]})({display:"inherit",alignItems:"inherit",justifyContent:"inherit"}),Ni=w.forwardRef(function(t,n){const r=w.useContext(Ri),o=Yn(r,t),i=Te({props:o,name:"MuiLoadingButton"}),{children:s,disabled:c=!1,id:l,loading:u=!1,loadingIndicator:d,loadingPosition:p="center",variant:g="text",...v}=i,y=ui(l),h=d??C.jsx(Pi,{"aria-labelledby":y,color:"inherit",size:16}),b={...i,disabled:c,loading:u,loadingIndicator:h,loadingPosition:p,variant:g},S=Og(b),T=u?C.jsx(kg,{className:S.loadingIndicator,ownerState:b,children:h}):null;return C.jsxs(Pg,{disabled:c||u,id:y,ref:n,...v,variant:g,classes:S,ownerState:b,children:[b.loadingPosition==="end"?C.jsx(ns,{className:S.label,children:s}):T,b.loadingPosition==="end"?T:C.jsx(ns,{className:S.label,children:s})]})});process.env.NODE_ENV!=="production"&&(Ni.propTypes={children:a.node,classes:a.object,disabled:a.bool,id:a.string,loading:a.bool,loadingIndicator:a.node,loadingPosition:St(a.oneOf(["start","end","center"]),e=>e.loadingPosition==="start"&&!e.startIcon?new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.'):e.loadingPosition==="end"&&!e.endIcon?new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.'):null),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["contained","outlined","text"]),a.string])});const Mg=$e(C.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 $g(e){return C.jsx(Ni,{"data-cy":e.dataCy??"delete-button",loading:e.loading??!1,loadingPosition:e.loadingPosition??"start",startIcon:e.startIcon??C.jsx(Mg,{}),name:e.name,color:"error",variant:"contained",sx:{m:1},type:e.type??"button",onClick:e.onClick,children:e.label?e.label:"Delete"})}const Ng=$e(C.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function Ag(e){return C.jsx($i,{title:"Go Back to Previous Page",children:C.jsxs(it,{name:e.name,color:"primary",onClick:()=>e.navigate(-1),children:[C.jsx(Ng,{}),e.children]})})}const Dg=$e(C.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 Ig(e){return C.jsx(Et,{name:e.name,"data-cy":e.dataCy??"history-button",className:e.className,sx:e.sx??{p:1,m:1},startIcon:e.startIcon??C.jsx(Dg,{}),variant:"contained",color:"primary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const jg=$e(C.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"),_g={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function Lg(e){return C.jsx(Ni,{name:e.name,"data-cy":e.dataCy??"loading-success-button",variant:"contained",color:"success",loadingPosition:"start",startIcon:e.startIcon??C.jsx(jg,{}),loading:e.loading,type:e.type??"button",style:_g,sx:e.sx,onClick:e.onClick,children:e.children??e.name})}const Bg=$e(C.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 Fg(e){return C.jsx(Et,{name:e.name,"data-cy":e.dataCy??"manage-button",className:"pushRight",onClick:()=>e.onClick(),variant:"contained",color:"primary",size:e.size??"large",startIcon:e.startIcon??C.jsx(Bg,{}),children:e.children?e.children:"Manage"})}function Wg(e){return C.jsx(Et,{name:e.name,"data-cy":e.dataCy??"success-button",className:e.className,sx:e.sx,startIcon:e.startIcon,variant:"contained",color:"success",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}function Vg(e){return C.jsx(Et,{"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 zg=$e(C.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 Ug(e){return C.jsx($i,{title:e.tooltipTitle,children:C.jsx(it,{sx:{pt:0,pb:0},color:e.color??"primary",onClick:()=>e.onClick(!0),"aria-label":e.tooltipTitle,children:C.jsx(zg,{})})})}const Ai=$e(C.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"),Yg=e=>{const[t,n]=he.useState(!1);he.useEffect(()=>{n(e.open)},[e.open,e.progressState]);const r=C.jsx(it,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:C.jsx(Ai,{fontSize:"small"})});return C.jsxs(C.Fragment,{children:[C.jsx(Zn,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:C.jsx(pn,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:e.progressState.message})}),C.jsx(Zn,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isError,TransitionComponent:Mi,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:C.jsx(pn,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:e.progressState.message})})]})},Hg=e=>{const[t,n]=he.useState(!1);he.useEffect(()=>{n(e.open)},[e.open,e]);const r=C.jsx(it,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:C.jsx(Ai,{fontSize:"small"})});return C.jsxs(C.Fragment,{children:[C.jsx(Zn,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:C.jsx(pn,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:e.message})}),C.jsx(Zn,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isError,TransitionComponent:Mi,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:C.jsx(pn,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:e.message})})]})},rs=$e(C.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),os=$e(C.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),is=$e(C.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),as=$e(C.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function qg(e){const t=Tt(),{count:n,page:r,rowsPerPage:o,onPageChange:i}=e,s=d=>{i(d,0)},c=d=>{i(d,r-1)},l=d=>{i(d,r+1)},u=d=>{i(d,Math.max(0,Math.ceil(n/o)-1))};return C.jsxs(Oi,{sx:{flexShrink:0,ml:2.5},children:[C.jsx(it,{onClick:s,disabled:r===0,"aria-label":"first page",children:t.direction==="rtl"?C.jsx(as,{}):C.jsx(rs,{})}),C.jsx(it,{onClick:c,disabled:r===0,"aria-label":"previous page",children:t.direction==="rtl"?C.jsx(is,{}):C.jsx(os,{})}),C.jsx(it,{onClick:l,disabled:r>=Math.ceil(n/o)-1,"aria-label":"next page",children:t.direction==="rtl"?C.jsx(os,{}):C.jsx(is,{})}),C.jsx(it,{onClick:u,disabled:r>=Math.ceil(n/o)-1,"aria-label":"last page",children:t.direction==="rtl"?C.jsx(rs,{}):C.jsx(as,{})})]})}function Gg(e){const{children:t,index:n,...r}=e;return C.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${n}`,"aria-labelledby":`vertical-tab-${n}`,...r,children:C.jsx(Oi,{sx:{p:3},children:C.jsx(ro,{component:"span",children:t})})})}function Kg(e){return{id:`vertical-tab-${e}`,"aria-controls":`vertical-tabpanel-${e}`}}/**
|
|
202
|
+
`));const tl=w.useMemo(()=>{var rt;let te=[{name:"arrow",enabled:!!U,options:{element:U,padding:4}}];return(rt=f.popperOptions)!=null&&rt.modifiers&&(te=te.concat(f.popperOptions.modifiers)),{...f.popperOptions,modifiers:te}},[U,f]),Cn={...r,isRtl:Y,arrow:o,disableInteractive:q,placement:_,PopperComponentProp:N,touch:W.current},uo=vg(Cn),Wi=j.popper??c.Popper??xg,Vi=j.transition??c.Transition??F??bn,zi=j.tooltip??c.Tooltip??Eg,Ui=j.arrow??c.Arrow??wg,nl=rn(Wi,{...f,...$.popper??l.popper,className:re(uo.popper,f==null?void 0:f.className,(Yi=$.popper??l.popper)==null?void 0:Yi.className)},Cn),rl=rn(Vi,{...D,...$.transition??l.transition},Cn),ol=rn(zi,{...$.tooltip??l.tooltip,className:re(uo.tooltip,(Hi=$.tooltip??l.tooltip)==null?void 0:Hi.className)},Cn),il=rn(Ui,{...$.arrow??l.arrow,className:re(uo.arrow,(qi=$.arrow??l.arrow)==null?void 0:qi.className)},Cn);return C.jsxs(w.Fragment,{children:[w.cloneElement(V,qe),C.jsx(Wi,{as:N??Si,placement:_,anchorEl:S?{getBoundingClientRect:()=>({top:kn.y,left:kn.x,right:kn.x,bottom:kn.y,width:0,height:0})}:M,popperRef:jt,open:M?O:!1,id:ae,transition:!0,...Tn,...nl,popperOptions:tl,children:({TransitionProps:te})=>C.jsx(Vi,{timeout:B.transitions.duration.shorter,...te,...rl,children:C.jsxs(zi,{...ol,children:[I,o?C.jsx(Ui,{...il,ref:H}):null]})})})]})});process.env.NODE_ENV!=="production"&&($i.propTypes={arrow:a.bool,children:Nt.isRequired,classes:a.object,className:a.string,components:a.shape({Arrow:a.elementType,Popper:a.elementType,Tooltip:a.elementType,Transition:a.elementType}),componentsProps:a.shape({arrow:a.object,popper:a.object,tooltip:a.object,transition:a.object}),describeChild:a.bool,disableFocusListener:a.bool,disableHoverListener:a.bool,disableInteractive:a.bool,disableTouchListener:a.bool,enterDelay:a.number,enterNextDelay:a.number,enterTouchDelay:a.number,followCursor:a.bool,id:a.string,leaveDelay:a.number,leaveTouchDelay:a.number,onClose:a.func,onOpen:a.func,open:a.bool,placement:a.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:a.elementType,PopperProps:a.object,slotProps:a.shape({arrow:a.object,popper:a.object,tooltip:a.object,transition:a.object}),slots:a.shape({arrow:a.elementType,popper:a.elementType,tooltip:a.elementType,transition:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),title:a.node,TransitionComponent:a.elementType,TransitionProps:a.object});const Sg=$e(C.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 Tg(e){return C.jsx(Et,{name:e.name,"data-cy":e.dataCy??"cancel-button",className:e.className,sx:e.sx,startIcon:e.startIcon??C.jsx(Sg,{}),variant:e.variant??"contained",color:e.color??"secondary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}function Cg(e){return ve("MuiLoadingButton",e)}const bt=xe("MuiLoadingButton",["root","label","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Og=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],label:["label"],startIcon:[t&&`startIconLoading${G(n)}`],endIcon:[t&&`endIconLoading${G(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${G(n)}`]},i=Pe(o,Cg,r);return{...r,...i}},Rg=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Pg=ne(Et,{shouldForwardProp:e=>Rg(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${bt.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${bt.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(Oe(({theme:e})=>({display:"inline-flex",[`& .${bt.startIconLoadingStart}, & .${bt.endIconLoadingEnd}`]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0},variants:[{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${bt.loading}`]:{color:"transparent"}}},{props:({ownerState:t})=>t.loadingPosition==="start"&&t.fullWidth,style:{[`& .${bt.startIconLoadingStart}, & .${bt.endIconLoadingEnd}`]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0,marginRight:-8}}},{props:({ownerState:t})=>t.loadingPosition==="end"&&t.fullWidth,style:{[`& .${bt.startIconLoadingStart}, & .${bt.endIconLoadingEnd}`]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0,marginLeft:-8}}}]}))),kg=ne("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${G(n.loadingPosition)}`]]}})(Oe(({theme:e})=>({position:"absolute",visibility:"visible",display:"flex",variants:[{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:({loadingPosition:t,ownerState:n})=>t==="start"&&n.size!=="small",style:{left:14}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:({loadingPosition:t,ownerState:n})=>t==="end"&&n.size!=="small",style:{right:14}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:({ownerState:t})=>t.loadingPosition==="start"&&t.fullWidth,style:{position:"relative",left:-10}},{props:({ownerState:t})=>t.loadingPosition==="end"&&t.fullWidth,style:{position:"relative",right:-10}}]}))),ns=ne("span",{name:"MuiLoadingButton",slot:"Label",overridesResolver:(e,t)=>[t.label]})({display:"inherit",alignItems:"inherit",justifyContent:"inherit"}),Ni=w.forwardRef(function(t,n){const r=w.useContext(Ri),o=Yn(r,t),i=Te({props:o,name:"MuiLoadingButton"}),{children:s,disabled:c=!1,id:l,loading:u=!1,loadingIndicator:d,loadingPosition:p="center",variant:g="text",...v}=i,y=ui(l),h=d??C.jsx(Pi,{"aria-labelledby":y,color:"inherit",size:16}),b={...i,disabled:c,loading:u,loadingIndicator:h,loadingPosition:p,variant:g},S=Og(b),T=u?C.jsx(kg,{className:S.loadingIndicator,ownerState:b,children:h}):null;return C.jsxs(Pg,{disabled:c||u,id:y,ref:n,...v,variant:g,classes:S,ownerState:b,children:[b.loadingPosition==="end"?C.jsx(ns,{className:S.label,children:s}):T,b.loadingPosition==="end"?T:C.jsx(ns,{className:S.label,children:s})]})});process.env.NODE_ENV!=="production"&&(Ni.propTypes={children:a.node,classes:a.object,disabled:a.bool,id:a.string,loading:a.bool,loadingIndicator:a.node,loadingPosition:St(a.oneOf(["start","end","center"]),e=>e.loadingPosition==="start"&&!e.startIcon?new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.'):e.loadingPosition==="end"&&!e.endIcon?new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.'):null),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["contained","outlined","text"]),a.string])});const Mg=$e(C.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 $g(e){return C.jsx(Ni,{"data-cy":e.dataCy??"delete-button",loading:e.loading??!1,loadingPosition:e.loadingPosition??"start",startIcon:e.startIcon??C.jsx(Mg,{}),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 Ng=$e(C.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function Ag(e){return C.jsx($i,{title:"Go Back to Previous Page",children:C.jsxs(it,{name:e.name,color:e.color??"primary",onClick:()=>e.navigate(-1),children:[C.jsx(Ng,{}),e.children]})})}const Dg=$e(C.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 Ig(e){return C.jsx(Et,{name:e.name,"data-cy":e.dataCy??"history-button",className:e.className,sx:e.sx??{p:1,m:1},startIcon:e.startIcon??C.jsx(Dg,{}),variant:e.variant??"contained",color:e.color??"primary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const jg=$e(C.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"),_g={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function Lg(e){return C.jsx(Ni,{name:e.name,"data-cy":e.dataCy??"loading-success-button",variant:e.variant??"contained",color:e.color??"success",loadingPosition:"start",startIcon:e.startIcon??C.jsx(jg,{}),loading:e.loading,type:e.type??"button",style:_g,sx:e.sx,onClick:e.onClick,children:e.children??e.name})}const Bg=$e(C.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 Fg(e){return C.jsx(Et,{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??C.jsx(Bg,{}),children:e.children?e.children:"Manage"})}function Wg(e){return C.jsx(Et,{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 Vg(e){return C.jsx(Et,{"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 zg=$e(C.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 Ug(e){return C.jsx($i,{title:e.tooltipTitle,children:C.jsx(it,{sx:{pt:0,pb:0},color:e.color??"primary",onClick:()=>e.onClick(!0),"aria-label":e.tooltipTitle,children:C.jsx(zg,{})})})}const Ai=$e(C.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"),Yg=e=>{const[t,n]=he.useState(!1);he.useEffect(()=>{n(e.open)},[e.open,e.progressState]);const r=C.jsx(it,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:C.jsx(Ai,{fontSize:"small"})});return C.jsxs(C.Fragment,{children:[C.jsx(Zn,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:C.jsx(pn,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:e.progressState.message})}),C.jsx(Zn,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isError,TransitionComponent:Mi,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:C.jsx(pn,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:e.progressState.message})})]})},Hg=e=>{const[t,n]=he.useState(!1);he.useEffect(()=>{n(e.open)},[e.open,e]);const r=C.jsx(it,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:C.jsx(Ai,{fontSize:"small"})});return C.jsxs(C.Fragment,{children:[C.jsx(Zn,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:C.jsx(pn,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:e.message})}),C.jsx(Zn,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isError,TransitionComponent:Mi,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:C.jsx(pn,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:e.message})})]})},rs=$e(C.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),os=$e(C.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),is=$e(C.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),as=$e(C.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function qg(e){const t=Tt(),{count:n,page:r,rowsPerPage:o,onPageChange:i}=e,s=d=>{i(d,0)},c=d=>{i(d,r-1)},l=d=>{i(d,r+1)},u=d=>{i(d,Math.max(0,Math.ceil(n/o)-1))};return C.jsxs(Oi,{sx:{flexShrink:0,ml:2.5},children:[C.jsx(it,{onClick:s,disabled:r===0,"aria-label":"first page",children:t.direction==="rtl"?C.jsx(as,{}):C.jsx(rs,{})}),C.jsx(it,{onClick:c,disabled:r===0,"aria-label":"previous page",children:t.direction==="rtl"?C.jsx(is,{}):C.jsx(os,{})}),C.jsx(it,{onClick:l,disabled:r>=Math.ceil(n/o)-1,"aria-label":"next page",children:t.direction==="rtl"?C.jsx(os,{}):C.jsx(is,{})}),C.jsx(it,{onClick:u,disabled:r>=Math.ceil(n/o)-1,"aria-label":"last page",children:t.direction==="rtl"?C.jsx(rs,{}):C.jsx(as,{})})]})}function Gg(e){const{children:t,index:n,...r}=e;return C.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${n}`,"aria-labelledby":`vertical-tab-${n}`,...r,children:C.jsx(Oi,{sx:{p:3},children:C.jsx(ro,{component:"span",children:t})})})}function Kg(e){return{id:`vertical-tab-${e}`,"aria-controls":`vertical-tabpanel-${e}`}}/**
|
|
203
203
|
* @remix-run/router v1.20.0
|
|
204
204
|
*
|
|
205
205
|
* Copyright (c) Remix Software Inc.
|
|
@@ -226,4 +226,4 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
226
226
|
* LICENSE.md file in the root directory of this source tree.
|
|
227
227
|
*
|
|
228
228
|
* @license MIT
|
|
229
|
-
*/function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(this,arguments)}function Li(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const kr="get",Mr="application/x-www-form-urlencoded";function so(e){return e!=null&&typeof e.tagName=="string"}function fy(e){return so(e)&&e.tagName.toLowerCase()==="button"}function py(e){return so(e)&&e.tagName.toLowerCase()==="form"}function my(e){return so(e)&&e.tagName.toLowerCase()==="input"}function hy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gy(e,t){return e.button===0&&(!t||t==="_self")&&!hy(e)}let wr=null;function yy(){if(wr===null)try{new FormData(document.createElement("form"),0),wr=!1}catch{wr=!0}return wr}const by=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Oo(e){return e!=null&&!by.has(e)?(process.env.NODE_ENV!=="production"&&lr(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Mr+'"')),null):e}function vy(e,t){let n,r,o,i,s;if(py(e)){let c=e.getAttribute("action");r=c?vn(c,t):null,n=e.getAttribute("method")||kr,o=Oo(e.getAttribute("enctype"))||Mr,i=new FormData(e)}else if(fy(e)||my(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||c.getAttribute("action");if(r=l?vn(l,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||kr,o=Oo(e.getAttribute("formenctype"))||Oo(c.getAttribute("enctype"))||Mr,i=new FormData(c,e),!yy()){let{name:u,type:d,value:p}=e;if(d==="image"){let g=u?u+".":"";i.append(g+"x","0"),i.append(g+"y","0")}else u&&i.append(u,p)}}else{if(so(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=kr,r=null,o=Mr,s=e}return i&&o==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}const xy=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ey=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],wy=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],Sy="6";try{window.__reactRouterVersion=Sy}catch{}const Yc=w.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Yc.displayName="ViewTransition");const Ty=w.createContext(new Map);process.env.NODE_ENV!=="production"&&(Ty.displayName="Fetchers");process.env.NODE_ENV;const Cy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Oy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bi=w.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:c,target:l,to:u,preventScrollReset:d,viewTransition:p}=t,g=Li(t,xy),{basename:v}=w.useContext(Ct),y,h=!1;if(typeof u=="string"&&Oy.test(u)&&(y=u,Cy))try{let E=new URL(window.location.href),x=u.startsWith("//")?new URL(E.protocol+u):new URL(u),m=vn(x.pathname,v);x.origin===E.origin&&m!=null?u=m+x.search+x.hash:h=!0}catch{process.env.NODE_ENV!=="production"&&lr(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let b=iy(u,{relative:o}),S=My(u,{replace:s,state:c,target:l,preventScrollReset:d,relative:o,viewTransition:p});function T(E){r&&r(E),E.defaultPrevented||S(E)}return w.createElement("a",xn({},g,{href:y||b,onClick:h||i?r:T,ref:n,target:l}))});process.env.NODE_ENV!=="production"&&(Bi.displayName="Link");const Ry=w.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:c,to:l,viewTransition:u,children:d}=t,p=Li(t,Ey),g=dr(l,{relative:p.relative}),v=ur(),y=w.useContext(Bc),{navigator:h,basename:b}=w.useContext(Ct),S=y!=null&&jy(g)&&u===!0,T=h.encodeLocation?h.encodeLocation(g).pathname:g.pathname,E=v.pathname,x=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(E=E.toLowerCase(),x=x?x.toLowerCase():null,T=T.toLowerCase()),x&&b&&(x=vn(x,b)||x);const m=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let P=E===T||!s&&E.startsWith(T)&&E.charAt(m)==="/",R=x!=null&&(x===T||!s&&x.startsWith(T)&&x.charAt(T.length)==="/"),_={isActive:P,isPending:R,isTransitioning:S},N=P?r:void 0,f;typeof i=="function"?f=i(_):f=[i,P?"active":null,R?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let $=typeof c=="function"?c(_):c;return w.createElement(Bi,xn({},p,{"aria-current":N,className:f,ref:n,style:$,to:l,viewTransition:u}),typeof d=="function"?d(_):d)});process.env.NODE_ENV!=="production"&&(Ry.displayName="NavLink");const Py=w.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:s,method:c=kr,action:l,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:g}=e,v=Li(e,wy),y=Dy(),h=Iy(l,{relative:d}),b=c.toLowerCase()==="get"?"get":"post",S=T=>{if(u&&u(T),T.defaultPrevented)return;T.preventDefault();let E=T.nativeEvent.submitter,x=(E==null?void 0:E.getAttribute("formmethod"))||c;y(E||T.currentTarget,{fetcherKey:n,method:x,navigate:r,replace:i,state:s,relative:d,preventScrollReset:p,viewTransition:g})};return w.createElement("form",xn({ref:t,method:b,action:h,onSubmit:o?u:S},v))});process.env.NODE_ENV!=="production"&&(Py.displayName="Form");process.env.NODE_ENV;var Vr;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Vr||(Vr={}));var us;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(us||(us={}));function ky(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Hc(e){let t=w.useContext(ao);return t||(process.env.NODE_ENV!=="production"?Ce(!1,ky(e)):Ce(!1)),t}function My(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:c}=t===void 0?{}:t,l=ay(),u=ur(),d=dr(e,{relative:s});return w.useCallback(p=>{if(gy(p,n)){p.preventDefault();let g=r!==void 0?r:Ko(u)===Ko(d);l(e,{replace:g,state:o,preventScrollReset:i,relative:s,viewTransition:c})}},[u,l,d,r,o,n,e,i,s,c])}function $y(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Ny=0,Ay=()=>"__"+String(++Ny)+"__";function Dy(){let{router:e}=Hc(Vr.UseSubmit),{basename:t}=w.useContext(Ct),n=uy();return w.useCallback(function(r,o){o===void 0&&(o={}),$y();let{action:i,method:s,encType:c,formData:l,body:u}=vy(r,t);if(o.navigate===!1){let d=o.fetcherKey||Ay();e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||s,formEncType:o.encType||c,flushSync:o.flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||s,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function Iy(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=w.useContext(Ct),o=w.useContext(wn);o||(process.env.NODE_ENV!=="production"?Ce(!1,"useFormAction must be used inside a RouteContext"):Ce(!1));let[i]=o.matches.slice(-1),s=xn({},dr(e||".",{relative:n})),c=ur();if(e==null){s.search=c.search;let l=new URLSearchParams(s.search),u=l.getAll("index");if(u.some(p=>p==="")){l.delete("index"),u.filter(g=>g).forEach(g=>l.append("index",g));let p=l.toString();s.search=p?"?"+p:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:Di([r,s.pathname])),Ko(s)}function jy(e,t){t===void 0&&(t={});let n=w.useContext(Yc);n==null&&(process.env.NODE_ENV!=="production"?Ce(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Ce(!1));let{basename:r}=Hc(Vr.useViewTransitionState),o=dr(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=vn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=vn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ls(o.pathname,s)!=null||ls(o.pathname,i)!=null}function _y(e){return C.jsx(Ac,{component:Bi,to:e.href,className:"next-btn-link",underline:"hover",children:e.linkText??e.children})}function Ly(){return C.jsx("div",{style:{margin:"1.5rem"},className:"custom-flex-justify-center",children:C.jsx(Pi,{})})}function By(e){const{onClose:t,title:n,message:r,open:o,...i}=e;return C.jsxs(Pc,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[C.jsx($c,{children:n??"Confirm"}),C.jsx(Mc,{dividers:!0,children:r}),C.jsxs(kc,{children:[C.jsx(Et,{autoFocus:!0,onClick:()=>t("No"),children:"Cancel"}),C.jsx(Et,{onClick:()=>t("Yes"),children:"Yes"})]})]})}function Fy(e){const[t,n]=he.useState(!0),[r]=he.useState(e.dismissible??!0),[o]=he.useState(e.dismissOnTimeOut??!0),[i]=he.useState(e.dismissTimeOut??5e3);return setTimeout(()=>{n(o?!1:t)},i),C.jsx("div",{children:t&&C.jsx(pn,{action:r?C.jsx(it,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{n(!1)},children:C.jsx(Ai,{fontSize:"inherit"})}):null,style:{margin:"20px"},...e,children:e.message})})}const Wy=$e(C.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 Vy(e){return C.jsxs("a",{href:e.href,target:"_blank",rel:"noreferrer",style:{display:"flex",alignItems:"center"},children:[e.linkText,C.jsx(Wr,{sx:{fontSize:"1.1rem",mx:.75},component:Wy}),e.children]})}function zy(e){return e.condition===void 0||!e.condition?null:e.children}function Uy(e){return typeof e=="boolean"?e:typeof e=="string"?e.toLowerCase()==="true":!1}const qc=6048e5,Yy=864e5,Gc=6e4,Kc=36e5,ds=Symbol.for("constructDateFrom");function wt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ds in e?e[ds](t):e instanceof Date?new e.constructor(t):new Date(t)}function ze(e,t){return wt(t||e,e)}let Hy={};function co(){return Hy}function er(e,t){var c,l,u,d;const n=co(),r=(t==null?void 0:t.weekStartsOn)??((l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,o=ze(e,t==null?void 0:t.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function zr(e,t){return er(e,{...t,weekStartsOn:1})}function Xc(e,t){const n=ze(e,t==null?void 0:t.in),r=n.getFullYear(),o=wt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=zr(o),s=wt(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const c=zr(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function fs(e){const t=ze(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function qy(e,...t){const n=wt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function ps(e,t){const n=ze(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Gy(e,t,n){const[r,o]=qy(n==null?void 0:n.in,e,t),i=ps(r),s=ps(o),c=+i-fs(i),l=+s-fs(s);return Math.round((c-l)/Yy)}function Ky(e,t){const n=Xc(e,t),r=wt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),zr(r)}function Xy(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Qy(e){return!(!Xy(e)&&typeof e!="number"||isNaN(+ze(e)))}function Jy(e,t){const n=ze(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Zy={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},eb=(e,t,n)=>{let r;const o=Zy[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ro(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const tb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ob={date:Ro({formats:tb,defaultWidth:"full"}),time:Ro({formats:nb,defaultWidth:"full"}),dateTime:Ro({formats:rb,defaultWidth:"full"})},ib={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ab=(e,t,n,r)=>ib[e];function Mn(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):s;o=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[c]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const sb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lb={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ub={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},db={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},fb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pb=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},mb={ordinalNumber:pb,era:Mn({values:sb,defaultWidth:"wide"}),quarter:Mn({values:cb,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mn({values:lb,defaultWidth:"wide"}),day:Mn({values:ub,defaultWidth:"wide"}),dayPeriod:Mn({values:db,defaultWidth:"wide",formattingValues:fb,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?gb(c,p=>p.test(s)):hb(c,p=>p.test(s));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(s.length);return{value:u,rest:d}}}function hb(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function gb(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function yb(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(o.length);return{value:s,rest:c}}}const bb=/^(\d+)(th|st|nd|rd)?/i,vb=/\d+/i,xb={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Eb={any:[/^b/i,/^(a|c)/i]},wb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Sb={any:[/1/i,/2/i,/3/i,/4/i]},Tb={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Cb={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ob={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Rb={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Pb={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kb={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Mb={ordinalNumber:yb({matchPattern:bb,parsePattern:vb,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:xb,defaultMatchWidth:"wide",parsePatterns:Eb,defaultParseWidth:"any"}),quarter:$n({matchPatterns:wb,defaultMatchWidth:"wide",parsePatterns:Sb,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:Tb,defaultMatchWidth:"wide",parsePatterns:Cb,defaultParseWidth:"any"}),day:$n({matchPatterns:Ob,defaultMatchWidth:"wide",parsePatterns:Rb,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:Pb,defaultMatchWidth:"any",parsePatterns:kb,defaultParseWidth:"any"})},$b={code:"en-US",formatDistance:eb,formatLong:ob,formatRelative:ab,localize:mb,match:Mb,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Nb(e,t){const n=ze(e,t==null?void 0:t.in);return Gy(n,Jy(n))+1}function Ab(e,t){const n=ze(e,t==null?void 0:t.in),r=+zr(n)-+Ky(n);return Math.round(r/qc)+1}function Qc(e,t){var d,p,g,v;const n=ze(e,t==null?void 0:t.in),r=n.getFullYear(),o=co(),i=(t==null?void 0:t.firstWeekContainsDate)??((p=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??o.firstWeekContainsDate??((v=(g=o.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??1,s=wt((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const c=er(s,t),l=wt((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=er(l,t);return+n>=+c?r+1:+n>=+u?r:r-1}function Db(e,t){var c,l,u,d;const n=co(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=Qc(e,t),i=wt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),er(i,t)}function Ib(e,t){const n=ze(e,t==null?void 0:t.in),r=+er(n,t)-+Db(n,t);return Math.round(r/qc)+1}function me(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Pt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return me(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):me(n+1,2)},d(e,t){return me(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return me(e.getHours()%12||12,t.length)},H(e,t){return me(e.getHours(),t.length)},m(e,t){return me(e.getMinutes(),t.length)},s(e,t){return me(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return me(o,t.length)}},tn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ms={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Pt.y(e,t)},Y:function(e,t,n,r){const o=Qc(e,r),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return me(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):me(i,t.length)},R:function(e,t){const n=Xc(e);return me(n,t.length)},u:function(e,t){const n=e.getFullYear();return me(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return me(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return me(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Pt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return me(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Ib(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):me(o,t.length)},I:function(e,t,n){const r=Ab(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):me(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Pt.d(e,t)},D:function(e,t,n){const r=Nb(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):me(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return me(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return me(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return me(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=tn.noon:r===0?o=tn.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=tn.evening:r>=12?o=tn.afternoon:r>=4?o=tn.morning:o=tn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Pt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Pt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):me(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):me(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Pt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Pt.s(e,t)},S:function(e,t){return Pt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return gs(r);case"XXXX":case"XX":return Bt(r);case"XXXXX":case"XXX":default:return Bt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return gs(r);case"xxxx":case"xx":return Bt(r);case"xxxxx":case"xxx":default:return Bt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hs(r,":");case"OOOO":default:return"GMT"+Bt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hs(r,":");case"zzzz":default:return"GMT"+Bt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return me(r,t.length)},T:function(e,t,n){return me(+e,t.length)}};function hs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+me(i,2)}function gs(e,t){return e%60===0?(e>0?"-":"+")+me(Math.abs(e)/60,2):Bt(e,t)}function Bt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=me(Math.trunc(r/60),2),i=me(r%60,2);return n+o+t+i}const ys=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Jc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},jb=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ys(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",ys(r,t)).replace("{{time}}",Jc(o,t))},_b={p:Jc,P:jb},Lb=/^D+$/,Bb=/^Y+$/,Fb=["D","DD","YY","YYYY"];function Wb(e){return Lb.test(e)}function Vb(e){return Bb.test(e)}function zb(e,t,n){const r=Ub(e,t,n);if(console.warn(r),Fb.includes(e))throw new RangeError(r)}function Ub(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Yb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qb=/^'([^]*?)'?$/,Gb=/''/g,Kb=/[a-zA-Z]/;function Zc(e,t,n){var d,p,g,v;const r=co(),o=r.locale??$b,i=r.firstWeekContainsDate??((p=(d=r.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=r.weekStartsOn??((v=(g=r.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??0,c=ze(e,n==null?void 0:n.in);if(!Qy(c))throw new RangeError("Invalid time value");let l=t.match(Hb).map(y=>{const h=y[0];if(h==="p"||h==="P"){const b=_b[h];return b(y,o.formatLong)}return y}).join("").match(Yb).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const h=y[0];if(h==="'")return{isToken:!1,value:Xb(y)};if(ms[h])return{isToken:!0,value:y};if(h.match(Kb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:y}});o.localize.preprocessor&&(l=o.localize.preprocessor(c,l));const u={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map(y=>{if(!y.isToken)return y.value;const h=y.value;(Vb(h)||Wb(h))&&zb(h,t,String(e));const b=ms[h[0]];return b(c,h,o.localize,u)}).join("")}function Xb(e){const t=e.match(qb);return t?t[1].replace(Gb,"'"):e}function Qb(e,t){const n=()=>wt(t==null?void 0:t.in,NaN),o=tv(e);let i;if(o.date){const u=nv(o.date,2);i=rv(u.restDateString,u.year)}if(!i||isNaN(+i))return n();const s=+i;let c=0,l;if(o.time&&(c=ov(o.time),isNaN(c)))return n();if(o.timezone){if(l=iv(o.timezone),isNaN(l))return n()}else{const u=new Date(s+c),d=ze(0,t==null?void 0:t.in);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return ze(s+c+l,t==null?void 0:t.in)}const Sr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Jb=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Zb=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ev=/^([+-])(\d{2})(?::?(\d{2}))?$/;function tv(e){const t={},n=e.split(Sr.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Sr.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sr.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=Sr.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function nv(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function rv(e,t){if(t===null)return new Date(NaN);const n=e.match(Jb);if(!n)return new Date(NaN);const r=!!n[4],o=Nn(n[1]),i=Nn(n[2])-1,s=Nn(n[3]),c=Nn(n[4]),l=Nn(n[5])-1;if(r)return uv(t,c,l)?av(t,c,l):new Date(NaN);{const u=new Date(0);return!cv(t,i,s)||!lv(t,o)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(o,s)),u)}}function Nn(e){return e?parseInt(e):1}function ov(e){const t=e.match(Zb);if(!t)return NaN;const n=Po(t[1]),r=Po(t[2]),o=Po(t[3]);return dv(n,r,o)?n*Kc+r*Gc+o*1e3:NaN}function Po(e){return e&&parseFloat(e.replace(",","."))||0}function iv(e){if(e==="Z")return 0;const t=e.match(ev);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return fv(r,o)?n*(r*Kc+o*Gc):NaN}function av(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const sv=[31,null,31,30,31,30,31,31,30,31,30,31];function el(e){return e%400===0||e%4===0&&e%100!==0}function cv(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(sv[t]||(el(e)?29:28))}function lv(e,t){return t>=1&&t<=(el(e)?366:365)}function uv(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function dv(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function fv(e,t){return t>=0&&t<=59}var Fi=(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))(Fi||{});const pv=()=>{const e=+new Date;return new Date(e+Fi.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS)},mv=e=>Zc(new Date(e),Fi.ISO_DATE_FORMAT),hv=(e,t)=>e?Zc(Qb(e),t):"";function gv(e){if(typeof e=="string")return Number.parseInt(e,10)}const yv=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),bv=e=>({...e,isLoading:!0,isSuccess:!1,isError:!1,message:""}),vv=(e,t)=>({...e,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:t||""}),xv=(e,t)=>({...e,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:t||""});function Ev(e){return e==null?!0:typeof e=="string"?e.trim()==="":!1}const wv=e=>{try{return decodeURIComponent(e)!==e}catch{return!1}};class Sv extends Error{constructor(n,{status:r,statusText:o,redirected:i,type:s}){super(n);gt(this,"status");gt(this,"statusText");gt(this,"redirected");gt(this,"type");this.status=r,this.statusText=o,this.statusText=s,this.redirected=i,this.name="HttpError"}}async function Tv(e,t={}){const n=new Headers(t.headers||{});t.body instanceof FormData||typeof t.body=="object"&&(t.body=JSON.stringify(t.body),n.set("Content-Type","application/json"));const r={...t,headers:n};r.body&&typeof r.body=="object"&&(r.body=JSON.stringify(r.body));const o=await fetch(e,r);if(o.type==="error"){const i=await o.text();throw new Sv(i,o)}return await o.json()}function Cv(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}exports.AppSnackBar=Yg;exports.CancelButton=Tg;exports.CenteredCircularProgress=Ly;exports.ConfirmDialog=By;exports.DeleteButton=$g;exports.DismissibleAlert=Fy;exports.EditIconButton=Ug;exports.ExcelButton=Vg;exports.GoBackButton=Ag;exports.HistoryButton=Ig;exports.LoadingSuccessButton=Lg;exports.ManageButton=Fg;exports.NextLink=_y;exports.OpenInNewIconLink=Vy;exports.QuerySnackBar=Hg;exports.ReactIf=zy;exports.SuccessButton=Wg;exports.TabPanel=Gg;exports.TablePaginationActions=qg;exports.a11yProps=Kg;exports.convertToIsoDate=mv;exports.fetchClient=Tv;exports.formatDate=hv;exports.getCssVariable=Cv;exports.initializeState=yv;exports.isBlankOrEmpty=Ev;exports.isEncoded=wv;exports.markError=xv;exports.markLoading=bv;exports.markSuccess=vv;exports.parseBoolean=Uy;exports.parseNumber=gv;exports.setCookieExpirationDate=pv;
|
|
229
|
+
*/function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(this,arguments)}function Li(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const kr="get",Mr="application/x-www-form-urlencoded";function so(e){return e!=null&&typeof e.tagName=="string"}function fy(e){return so(e)&&e.tagName.toLowerCase()==="button"}function py(e){return so(e)&&e.tagName.toLowerCase()==="form"}function my(e){return so(e)&&e.tagName.toLowerCase()==="input"}function hy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gy(e,t){return e.button===0&&(!t||t==="_self")&&!hy(e)}let wr=null;function yy(){if(wr===null)try{new FormData(document.createElement("form"),0),wr=!1}catch{wr=!0}return wr}const by=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Oo(e){return e!=null&&!by.has(e)?(process.env.NODE_ENV!=="production"&&lr(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Mr+'"')),null):e}function vy(e,t){let n,r,o,i,s;if(py(e)){let c=e.getAttribute("action");r=c?vn(c,t):null,n=e.getAttribute("method")||kr,o=Oo(e.getAttribute("enctype"))||Mr,i=new FormData(e)}else if(fy(e)||my(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||c.getAttribute("action");if(r=l?vn(l,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||kr,o=Oo(e.getAttribute("formenctype"))||Oo(c.getAttribute("enctype"))||Mr,i=new FormData(c,e),!yy()){let{name:u,type:d,value:p}=e;if(d==="image"){let g=u?u+".":"";i.append(g+"x","0"),i.append(g+"y","0")}else u&&i.append(u,p)}}else{if(so(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=kr,r=null,o=Mr,s=e}return i&&o==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}const xy=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ey=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],wy=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],Sy="6";try{window.__reactRouterVersion=Sy}catch{}const Yc=w.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Yc.displayName="ViewTransition");const Ty=w.createContext(new Map);process.env.NODE_ENV!=="production"&&(Ty.displayName="Fetchers");process.env.NODE_ENV;const Cy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Oy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bi=w.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:c,target:l,to:u,preventScrollReset:d,viewTransition:p}=t,g=Li(t,xy),{basename:v}=w.useContext(Ct),y,h=!1;if(typeof u=="string"&&Oy.test(u)&&(y=u,Cy))try{let E=new URL(window.location.href),x=u.startsWith("//")?new URL(E.protocol+u):new URL(u),m=vn(x.pathname,v);x.origin===E.origin&&m!=null?u=m+x.search+x.hash:h=!0}catch{process.env.NODE_ENV!=="production"&&lr(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let b=iy(u,{relative:o}),S=My(u,{replace:s,state:c,target:l,preventScrollReset:d,relative:o,viewTransition:p});function T(E){r&&r(E),E.defaultPrevented||S(E)}return w.createElement("a",xn({},g,{href:y||b,onClick:h||i?r:T,ref:n,target:l}))});process.env.NODE_ENV!=="production"&&(Bi.displayName="Link");const Ry=w.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:c,to:l,viewTransition:u,children:d}=t,p=Li(t,Ey),g=dr(l,{relative:p.relative}),v=ur(),y=w.useContext(Bc),{navigator:h,basename:b}=w.useContext(Ct),S=y!=null&&jy(g)&&u===!0,T=h.encodeLocation?h.encodeLocation(g).pathname:g.pathname,E=v.pathname,x=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(E=E.toLowerCase(),x=x?x.toLowerCase():null,T=T.toLowerCase()),x&&b&&(x=vn(x,b)||x);const m=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let P=E===T||!s&&E.startsWith(T)&&E.charAt(m)==="/",R=x!=null&&(x===T||!s&&x.startsWith(T)&&x.charAt(T.length)==="/"),_={isActive:P,isPending:R,isTransitioning:S},N=P?r:void 0,f;typeof i=="function"?f=i(_):f=[i,P?"active":null,R?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let $=typeof c=="function"?c(_):c;return w.createElement(Bi,xn({},p,{"aria-current":N,className:f,ref:n,style:$,to:l,viewTransition:u}),typeof d=="function"?d(_):d)});process.env.NODE_ENV!=="production"&&(Ry.displayName="NavLink");const Py=w.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:s,method:c=kr,action:l,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:g}=e,v=Li(e,wy),y=Dy(),h=Iy(l,{relative:d}),b=c.toLowerCase()==="get"?"get":"post",S=T=>{if(u&&u(T),T.defaultPrevented)return;T.preventDefault();let E=T.nativeEvent.submitter,x=(E==null?void 0:E.getAttribute("formmethod"))||c;y(E||T.currentTarget,{fetcherKey:n,method:x,navigate:r,replace:i,state:s,relative:d,preventScrollReset:p,viewTransition:g})};return w.createElement("form",xn({ref:t,method:b,action:h,onSubmit:o?u:S},v))});process.env.NODE_ENV!=="production"&&(Py.displayName="Form");process.env.NODE_ENV;var Vr;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Vr||(Vr={}));var us;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(us||(us={}));function ky(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Hc(e){let t=w.useContext(ao);return t||(process.env.NODE_ENV!=="production"?Ce(!1,ky(e)):Ce(!1)),t}function My(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:c}=t===void 0?{}:t,l=ay(),u=ur(),d=dr(e,{relative:s});return w.useCallback(p=>{if(gy(p,n)){p.preventDefault();let g=r!==void 0?r:Ko(u)===Ko(d);l(e,{replace:g,state:o,preventScrollReset:i,relative:s,viewTransition:c})}},[u,l,d,r,o,n,e,i,s,c])}function $y(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Ny=0,Ay=()=>"__"+String(++Ny)+"__";function Dy(){let{router:e}=Hc(Vr.UseSubmit),{basename:t}=w.useContext(Ct),n=uy();return w.useCallback(function(r,o){o===void 0&&(o={}),$y();let{action:i,method:s,encType:c,formData:l,body:u}=vy(r,t);if(o.navigate===!1){let d=o.fetcherKey||Ay();e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||s,formEncType:o.encType||c,flushSync:o.flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||s,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function Iy(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=w.useContext(Ct),o=w.useContext(wn);o||(process.env.NODE_ENV!=="production"?Ce(!1,"useFormAction must be used inside a RouteContext"):Ce(!1));let[i]=o.matches.slice(-1),s=xn({},dr(e||".",{relative:n})),c=ur();if(e==null){s.search=c.search;let l=new URLSearchParams(s.search),u=l.getAll("index");if(u.some(p=>p==="")){l.delete("index"),u.filter(g=>g).forEach(g=>l.append("index",g));let p=l.toString();s.search=p?"?"+p:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:Di([r,s.pathname])),Ko(s)}function jy(e,t){t===void 0&&(t={});let n=w.useContext(Yc);n==null&&(process.env.NODE_ENV!=="production"?Ce(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Ce(!1));let{basename:r}=Hc(Vr.useViewTransitionState),o=dr(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=vn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=vn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ls(o.pathname,s)!=null||ls(o.pathname,i)!=null}function _y(e){return C.jsx(Ac,{component:Bi,to:e.href,className:"next-btn-link",underline:"hover",children:e.linkText??e.children})}function Ly(){return C.jsx("div",{style:{margin:"1.5rem"},className:"custom-flex-justify-center",children:C.jsx(Pi,{})})}function By(e){const{onClose:t,title:n,message:r,open:o,...i}=e;return C.jsxs(Pc,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[C.jsx($c,{children:n??"Confirm"}),C.jsx(Mc,{dividers:!0,children:r}),C.jsxs(kc,{children:[C.jsx(Et,{autoFocus:!0,onClick:()=>t("No"),children:"Cancel"}),C.jsx(Et,{onClick:()=>t("Yes"),children:"Yes"})]})]})}function Fy(e){const[t,n]=he.useState(!0),[r]=he.useState(e.dismissible??!0),[o]=he.useState(e.dismissOnTimeOut??!0),[i]=he.useState(e.dismissTimeOut??5e3);return setTimeout(()=>{n(o?!1:t)},i),C.jsx("span",{children:t&&C.jsx(pn,{action:r?C.jsx(it,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{n(!1)},children:C.jsx(Ai,{fontSize:"inherit"})}):null,style:{margin:"20px"},...e,children:e.message})})}const Wy=$e(C.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 Vy(e){return C.jsxs("a",{href:e.href,target:"_blank",rel:"noreferrer",style:{display:"flex",alignItems:"center"},children:[e.linkText,C.jsx(Wr,{sx:{fontSize:"1.1rem",mx:.75},component:Wy}),e.children]})}function zy(e){return e.condition===void 0||!e.condition?null:e.children}function Uy(e){return typeof e=="boolean"?e:typeof e=="string"?e.toLowerCase()==="true":!1}const qc=6048e5,Yy=864e5,Gc=6e4,Kc=36e5,ds=Symbol.for("constructDateFrom");function wt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ds in e?e[ds](t):e instanceof Date?new e.constructor(t):new Date(t)}function ze(e,t){return wt(t||e,e)}let Hy={};function co(){return Hy}function er(e,t){var c,l,u,d;const n=co(),r=(t==null?void 0:t.weekStartsOn)??((l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,o=ze(e,t==null?void 0:t.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function zr(e,t){return er(e,{...t,weekStartsOn:1})}function Xc(e,t){const n=ze(e,t==null?void 0:t.in),r=n.getFullYear(),o=wt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=zr(o),s=wt(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const c=zr(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function fs(e){const t=ze(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function qy(e,...t){const n=wt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function ps(e,t){const n=ze(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Gy(e,t,n){const[r,o]=qy(n==null?void 0:n.in,e,t),i=ps(r),s=ps(o),c=+i-fs(i),l=+s-fs(s);return Math.round((c-l)/Yy)}function Ky(e,t){const n=Xc(e,t),r=wt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),zr(r)}function Xy(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Qy(e){return!(!Xy(e)&&typeof e!="number"||isNaN(+ze(e)))}function Jy(e,t){const n=ze(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Zy={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},eb=(e,t,n)=>{let r;const o=Zy[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ro(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const tb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ob={date:Ro({formats:tb,defaultWidth:"full"}),time:Ro({formats:nb,defaultWidth:"full"}),dateTime:Ro({formats:rb,defaultWidth:"full"})},ib={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ab=(e,t,n,r)=>ib[e];function Mn(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):s;o=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[c]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const sb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lb={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ub={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},db={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},fb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pb=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},mb={ordinalNumber:pb,era:Mn({values:sb,defaultWidth:"wide"}),quarter:Mn({values:cb,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mn({values:lb,defaultWidth:"wide"}),day:Mn({values:ub,defaultWidth:"wide"}),dayPeriod:Mn({values:db,defaultWidth:"wide",formattingValues:fb,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?gb(c,p=>p.test(s)):hb(c,p=>p.test(s));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(s.length);return{value:u,rest:d}}}function hb(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function gb(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function yb(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(o.length);return{value:s,rest:c}}}const bb=/^(\d+)(th|st|nd|rd)?/i,vb=/\d+/i,xb={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Eb={any:[/^b/i,/^(a|c)/i]},wb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Sb={any:[/1/i,/2/i,/3/i,/4/i]},Tb={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Cb={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ob={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Rb={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Pb={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kb={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Mb={ordinalNumber:yb({matchPattern:bb,parsePattern:vb,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:xb,defaultMatchWidth:"wide",parsePatterns:Eb,defaultParseWidth:"any"}),quarter:$n({matchPatterns:wb,defaultMatchWidth:"wide",parsePatterns:Sb,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:Tb,defaultMatchWidth:"wide",parsePatterns:Cb,defaultParseWidth:"any"}),day:$n({matchPatterns:Ob,defaultMatchWidth:"wide",parsePatterns:Rb,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:Pb,defaultMatchWidth:"any",parsePatterns:kb,defaultParseWidth:"any"})},$b={code:"en-US",formatDistance:eb,formatLong:ob,formatRelative:ab,localize:mb,match:Mb,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Nb(e,t){const n=ze(e,t==null?void 0:t.in);return Gy(n,Jy(n))+1}function Ab(e,t){const n=ze(e,t==null?void 0:t.in),r=+zr(n)-+Ky(n);return Math.round(r/qc)+1}function Qc(e,t){var d,p,g,v;const n=ze(e,t==null?void 0:t.in),r=n.getFullYear(),o=co(),i=(t==null?void 0:t.firstWeekContainsDate)??((p=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??o.firstWeekContainsDate??((v=(g=o.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??1,s=wt((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const c=er(s,t),l=wt((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=er(l,t);return+n>=+c?r+1:+n>=+u?r:r-1}function Db(e,t){var c,l,u,d;const n=co(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=Qc(e,t),i=wt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),er(i,t)}function Ib(e,t){const n=ze(e,t==null?void 0:t.in),r=+er(n,t)-+Db(n,t);return Math.round(r/qc)+1}function me(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Pt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return me(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):me(n+1,2)},d(e,t){return me(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return me(e.getHours()%12||12,t.length)},H(e,t){return me(e.getHours(),t.length)},m(e,t){return me(e.getMinutes(),t.length)},s(e,t){return me(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return me(o,t.length)}},tn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ms={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Pt.y(e,t)},Y:function(e,t,n,r){const o=Qc(e,r),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return me(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):me(i,t.length)},R:function(e,t){const n=Xc(e);return me(n,t.length)},u:function(e,t){const n=e.getFullYear();return me(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return me(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return me(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Pt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return me(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Ib(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):me(o,t.length)},I:function(e,t,n){const r=Ab(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):me(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Pt.d(e,t)},D:function(e,t,n){const r=Nb(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):me(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return me(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return me(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return me(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=tn.noon:r===0?o=tn.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=tn.evening:r>=12?o=tn.afternoon:r>=4?o=tn.morning:o=tn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Pt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Pt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):me(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):me(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Pt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Pt.s(e,t)},S:function(e,t){return Pt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return gs(r);case"XXXX":case"XX":return Bt(r);case"XXXXX":case"XXX":default:return Bt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return gs(r);case"xxxx":case"xx":return Bt(r);case"xxxxx":case"xxx":default:return Bt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hs(r,":");case"OOOO":default:return"GMT"+Bt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hs(r,":");case"zzzz":default:return"GMT"+Bt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return me(r,t.length)},T:function(e,t,n){return me(+e,t.length)}};function hs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+me(i,2)}function gs(e,t){return e%60===0?(e>0?"-":"+")+me(Math.abs(e)/60,2):Bt(e,t)}function Bt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=me(Math.trunc(r/60),2),i=me(r%60,2);return n+o+t+i}const ys=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Jc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},jb=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ys(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",ys(r,t)).replace("{{time}}",Jc(o,t))},_b={p:Jc,P:jb},Lb=/^D+$/,Bb=/^Y+$/,Fb=["D","DD","YY","YYYY"];function Wb(e){return Lb.test(e)}function Vb(e){return Bb.test(e)}function zb(e,t,n){const r=Ub(e,t,n);if(console.warn(r),Fb.includes(e))throw new RangeError(r)}function Ub(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Yb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qb=/^'([^]*?)'?$/,Gb=/''/g,Kb=/[a-zA-Z]/;function Zc(e,t,n){var d,p,g,v;const r=co(),o=r.locale??$b,i=r.firstWeekContainsDate??((p=(d=r.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=r.weekStartsOn??((v=(g=r.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??0,c=ze(e,n==null?void 0:n.in);if(!Qy(c))throw new RangeError("Invalid time value");let l=t.match(Hb).map(y=>{const h=y[0];if(h==="p"||h==="P"){const b=_b[h];return b(y,o.formatLong)}return y}).join("").match(Yb).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const h=y[0];if(h==="'")return{isToken:!1,value:Xb(y)};if(ms[h])return{isToken:!0,value:y};if(h.match(Kb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:y}});o.localize.preprocessor&&(l=o.localize.preprocessor(c,l));const u={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map(y=>{if(!y.isToken)return y.value;const h=y.value;(Vb(h)||Wb(h))&&zb(h,t,String(e));const b=ms[h[0]];return b(c,h,o.localize,u)}).join("")}function Xb(e){const t=e.match(qb);return t?t[1].replace(Gb,"'"):e}function Qb(e,t){const n=()=>wt(t==null?void 0:t.in,NaN),o=tv(e);let i;if(o.date){const u=nv(o.date,2);i=rv(u.restDateString,u.year)}if(!i||isNaN(+i))return n();const s=+i;let c=0,l;if(o.time&&(c=ov(o.time),isNaN(c)))return n();if(o.timezone){if(l=iv(o.timezone),isNaN(l))return n()}else{const u=new Date(s+c),d=ze(0,t==null?void 0:t.in);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return ze(s+c+l,t==null?void 0:t.in)}const Sr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Jb=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Zb=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ev=/^([+-])(\d{2})(?::?(\d{2}))?$/;function tv(e){const t={},n=e.split(Sr.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Sr.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sr.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=Sr.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function nv(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function rv(e,t){if(t===null)return new Date(NaN);const n=e.match(Jb);if(!n)return new Date(NaN);const r=!!n[4],o=Nn(n[1]),i=Nn(n[2])-1,s=Nn(n[3]),c=Nn(n[4]),l=Nn(n[5])-1;if(r)return uv(t,c,l)?av(t,c,l):new Date(NaN);{const u=new Date(0);return!cv(t,i,s)||!lv(t,o)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(o,s)),u)}}function Nn(e){return e?parseInt(e):1}function ov(e){const t=e.match(Zb);if(!t)return NaN;const n=Po(t[1]),r=Po(t[2]),o=Po(t[3]);return dv(n,r,o)?n*Kc+r*Gc+o*1e3:NaN}function Po(e){return e&&parseFloat(e.replace(",","."))||0}function iv(e){if(e==="Z")return 0;const t=e.match(ev);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return fv(r,o)?n*(r*Kc+o*Gc):NaN}function av(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const sv=[31,null,31,30,31,30,31,31,30,31,30,31];function el(e){return e%400===0||e%4===0&&e%100!==0}function cv(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(sv[t]||(el(e)?29:28))}function lv(e,t){return t>=1&&t<=(el(e)?366:365)}function uv(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function dv(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function fv(e,t){return t>=0&&t<=59}var Fi=(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))(Fi||{});const pv=()=>{const e=+new Date;return new Date(e+Fi.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS)},mv=e=>Zc(new Date(e),Fi.ISO_DATE_FORMAT),hv=(e,t)=>e?Zc(Qb(e),t):"";function gv(e){if(typeof e=="string")return Number.parseInt(e,10)}const yv=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),bv=e=>({...e,isLoading:!0,isSuccess:!1,isError:!1,message:""}),vv=(e,t)=>({...e,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:t||""}),xv=(e,t)=>({...e,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:t||""});function Ev(e){return e==null?!0:typeof e=="string"?e.trim()==="":!1}const wv=e=>{try{return decodeURIComponent(e)!==e}catch{return!1}};class Sv extends Error{constructor(n,{status:r,statusText:o,redirected:i,type:s}){super(n);gt(this,"status");gt(this,"statusText");gt(this,"redirected");gt(this,"type");this.status=r,this.statusText=o,this.statusText=s,this.redirected=i,this.name="HttpError"}}async function Tv(e,t={}){const n=new Headers(t.headers||{});t.body instanceof FormData||typeof t.body=="object"&&(t.body=JSON.stringify(t.body),n.set("Content-Type","application/json"));const r={...t,headers:n};r.body&&typeof r.body=="object"&&(r.body=JSON.stringify(r.body));const o=await fetch(e,r);if(o.type==="error"){const i=await o.text();throw new Sv(i,o)}return await o.json()}function Cv(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}exports.AppSnackBar=Yg;exports.CancelButton=Tg;exports.CenteredCircularProgress=Ly;exports.ConfirmDialog=By;exports.DeleteButton=$g;exports.DismissibleAlert=Fy;exports.EditIconButton=Ug;exports.ExcelButton=Vg;exports.GoBackButton=Ag;exports.HistoryButton=Ig;exports.LoadingSuccessButton=Lg;exports.ManageButton=Fg;exports.NextLink=_y;exports.OpenInNewIconLink=Vy;exports.QuerySnackBar=Hg;exports.ReactIf=zy;exports.SuccessButton=Wg;exports.TabPanel=Gg;exports.TablePaginationActions=qg;exports.a11yProps=Kg;exports.convertToIsoDate=mv;exports.fetchClient=Tv;exports.formatDate=hv;exports.getCssVariable=Cv;exports.initializeState=yv;exports.isBlankOrEmpty=Ev;exports.isEncoded=wv;exports.markError=xv;exports.markLoading=bv;exports.markSuccess=vv;exports.parseBoolean=Uy;exports.parseNumber=gv;exports.setCookieExpirationDate=pv;
|
package/index.mjs
CHANGED
|
@@ -13319,8 +13319,8 @@ function iv(e) {
|
|
|
13319
13319
|
className: e.className,
|
|
13320
13320
|
sx: e.sx,
|
|
13321
13321
|
startIcon: e.startIcon ?? /* @__PURE__ */ P($g, {}),
|
|
13322
|
-
variant: "contained",
|
|
13323
|
-
color: "secondary",
|
|
13322
|
+
variant: e.variant ?? "contained",
|
|
13323
|
+
color: e.color ?? "secondary",
|
|
13324
13324
|
type: e.type ?? "button",
|
|
13325
13325
|
onClick: () => e.onClick(),
|
|
13326
13326
|
children: e.children ?? e.name
|
|
@@ -13609,8 +13609,8 @@ function av(e) {
|
|
|
13609
13609
|
loadingPosition: e.loadingPosition ?? "start",
|
|
13610
13610
|
startIcon: e.startIcon ?? /* @__PURE__ */ P(Lg, {}),
|
|
13611
13611
|
name: e.name,
|
|
13612
|
-
|
|
13613
|
-
|
|
13612
|
+
variant: e.variant ?? "contained",
|
|
13613
|
+
color: e.color ?? "error",
|
|
13614
13614
|
sx: { m: 1 },
|
|
13615
13615
|
type: e.type ?? "button",
|
|
13616
13616
|
onClick: e.onClick,
|
|
@@ -13622,7 +13622,7 @@ const Bg = Me(/* @__PURE__ */ P("path", {
|
|
|
13622
13622
|
d: "M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"
|
|
13623
13623
|
}), "ArrowBackIos");
|
|
13624
13624
|
function sv(e) {
|
|
13625
|
-
return /* @__PURE__ */ P(Di, { title: "Go Back to Previous Page", children: /* @__PURE__ */ Ne(it, { name: e.name, color: "primary", onClick: () => e.navigate(-1), children: [
|
|
13625
|
+
return /* @__PURE__ */ P(Di, { title: "Go Back to Previous Page", children: /* @__PURE__ */ Ne(it, { name: e.name, color: e.color ?? "primary", onClick: () => e.navigate(-1), children: [
|
|
13626
13626
|
/* @__PURE__ */ P(Bg, {}),
|
|
13627
13627
|
e.children
|
|
13628
13628
|
] }) });
|
|
@@ -13639,8 +13639,8 @@ function cv(e) {
|
|
|
13639
13639
|
className: e.className,
|
|
13640
13640
|
sx: e.sx ?? { p: 1, m: 1 },
|
|
13641
13641
|
startIcon: e.startIcon ?? /* @__PURE__ */ P(jg, {}),
|
|
13642
|
-
variant: "contained",
|
|
13643
|
-
color: "primary",
|
|
13642
|
+
variant: e.variant ?? "contained",
|
|
13643
|
+
color: e.color ?? "primary",
|
|
13644
13644
|
type: e.type ?? "button",
|
|
13645
13645
|
onClick: () => e.onClick(),
|
|
13646
13646
|
children: e.children ?? e.name
|
|
@@ -13660,8 +13660,8 @@ function lv(e) {
|
|
|
13660
13660
|
{
|
|
13661
13661
|
name: e.name,
|
|
13662
13662
|
"data-cy": e.dataCy ?? "loading-success-button",
|
|
13663
|
-
variant: "contained",
|
|
13664
|
-
color: "success",
|
|
13663
|
+
variant: e.variant ?? "contained",
|
|
13664
|
+
color: e.color ?? "success",
|
|
13665
13665
|
loadingPosition: "start",
|
|
13666
13666
|
startIcon: e.startIcon ?? /* @__PURE__ */ P(Fg, {}),
|
|
13667
13667
|
loading: e.loading,
|
|
@@ -13682,10 +13682,10 @@ function uv(e) {
|
|
|
13682
13682
|
{
|
|
13683
13683
|
name: e.name,
|
|
13684
13684
|
"data-cy": e.dataCy ?? "manage-button",
|
|
13685
|
-
className:
|
|
13685
|
+
className: e.className,
|
|
13686
13686
|
onClick: () => e.onClick(),
|
|
13687
|
-
variant: "contained",
|
|
13688
|
-
color: "primary",
|
|
13687
|
+
variant: e.variant ?? "contained",
|
|
13688
|
+
color: e.color ?? "primary",
|
|
13689
13689
|
size: e.size ?? "large",
|
|
13690
13690
|
startIcon: e.startIcon ?? /* @__PURE__ */ P(Vg, {}),
|
|
13691
13691
|
children: e.children ? e.children : "Manage"
|
|
@@ -13701,8 +13701,8 @@ function dv(e) {
|
|
|
13701
13701
|
className: e.className,
|
|
13702
13702
|
sx: e.sx,
|
|
13703
13703
|
startIcon: e.startIcon,
|
|
13704
|
-
variant: "contained",
|
|
13705
|
-
color: "success",
|
|
13704
|
+
variant: e.variant ?? "contained",
|
|
13705
|
+
color: e.color ?? "success",
|
|
13706
13706
|
type: e.type ?? "button",
|
|
13707
13707
|
onClick: () => e.onClick(),
|
|
13708
13708
|
children: e.children ?? e.name
|
|
@@ -14539,7 +14539,7 @@ function wv(e) {
|
|
|
14539
14539
|
const [t, n] = on(!0), [r] = on(e.dismissible ?? !0), [o] = on(e.dismissOnTimeOut ?? !0), [i] = on(e.dismissTimeOut ?? 5e3);
|
|
14540
14540
|
return setTimeout(() => {
|
|
14541
14541
|
n(o ? !1 : t);
|
|
14542
|
-
}, i), /* @__PURE__ */ P("
|
|
14542
|
+
}, i), /* @__PURE__ */ P("span", { children: t && /* @__PURE__ */ P(
|
|
14543
14543
|
hn,
|
|
14544
14544
|
{
|
|
14545
14545
|
action: r ? /* @__PURE__ */ P(
|
|
@@ -13,6 +13,8 @@ interface CancelButtonProps {
|
|
|
13
13
|
dataCy?: string;
|
|
14
14
|
sx?: SxProps<Theme>;
|
|
15
15
|
type?: 'button' | 'submit' | 'reset';
|
|
16
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
17
|
+
color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
16
18
|
onClick: () => void;
|
|
17
19
|
startIcon?: React.ReactNode;
|
|
18
20
|
}
|
|
@@ -5,6 +5,8 @@ interface DeleteButtonProps {
|
|
|
5
5
|
loadingLabel?: string;
|
|
6
6
|
loadingPosition?: 'start' | 'end' | 'center';
|
|
7
7
|
type?: 'button' | 'submit' | 'reset' | undefined;
|
|
8
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
9
|
+
color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
8
10
|
name?: string;
|
|
9
11
|
dataCy?: string;
|
|
10
12
|
startIcon?: React.ReactNode;
|
|
@@ -4,6 +4,7 @@ interface GoBackButtonProps {
|
|
|
4
4
|
name?: string;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
navigate: NavigateFunction;
|
|
7
|
+
color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
7
8
|
}
|
|
8
9
|
export declare function GoBackButton(props: GoBackButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -15,6 +15,8 @@ interface HistoryButtonProps {
|
|
|
15
15
|
type?: 'button' | 'submit' | 'reset';
|
|
16
16
|
onClick: () => void;
|
|
17
17
|
startIcon?: React.ReactNode;
|
|
18
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
19
|
+
color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* Reusable History Button component
|
|
@@ -15,6 +15,8 @@ interface Props {
|
|
|
15
15
|
startIcon?: React.ReactNode;
|
|
16
16
|
sx?: SxProps<Theme>;
|
|
17
17
|
onClick?: () => void;
|
|
18
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
19
|
+
color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* Reusable Success Loading Button
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface ManageButtonProps {
|
|
3
3
|
size?: 'small' | 'medium' | 'large';
|
|
4
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
5
|
+
color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
6
|
+
className?: string;
|
|
4
7
|
name?: string;
|
|
5
8
|
dataCy?: string;
|
|
6
9
|
startIcon?: React.ReactNode;
|
|
@@ -15,6 +15,8 @@ interface SuccessButtonProps {
|
|
|
15
15
|
type?: 'button' | 'submit' | 'reset';
|
|
16
16
|
onClick: () => void;
|
|
17
17
|
startIcon?: React.ReactNode;
|
|
18
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
19
|
+
color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* Reusable Success Button component
|
package/package.json
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@js-smart/react-kit",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.1.1",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"@emotion/react": "^11.13.3",
|
|
9
|
+
"@emotion/styled": "^11.13.0",
|
|
10
|
+
"@mui/icons-material": "^6.1.4",
|
|
11
|
+
"@mui/lab": "^6.0.0-beta.12",
|
|
12
|
+
"@mui/material": "^6.1.4",
|
|
13
|
+
"@mui/x-data-grid": "^7.21.0",
|
|
14
|
+
"date-fns": "^4.1.0",
|
|
15
|
+
"react": "^18.3.1",
|
|
16
|
+
"react-dom": "^18.3.1",
|
|
17
|
+
"react-router-dom": "^6.27.0"
|
|
18
|
+
},
|
|
7
19
|
"publishConfig": {
|
|
8
20
|
"access": "public"
|
|
9
21
|
},
|
package/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root{--primary-color: #153d77;--secondary-color: #607d8b;--success-color: #198754;--error-color: #ff1744;--white-color: #fff;--background-color: #dedede;--pdf-color: #f40f02;--word-document-color: #2b579a}
|