@moderntribe/wme
Version:
Components and hooks to build the best UX/UI admin wizards
21 lines • 65.1 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@mui/material"),r=require("@mui/material/styles"),o=require("react"),n=require("@mui/icons-material/ArrowDropDown"),a=require("@mui/material/Card"),i=require("@mui/material/CardHeader"),l=require("@mui/icons-material"),s=require("@mui/material/List"),c=require("@mui/base/FormControlUnstyled"),u=require("@mui/utils"),d=require("@mui/icons-material/Check"),p=require("@mui/lab"),m=require("@mui/base"),h=require("@mui/icons-material/Add"),f=require("@mui/icons-material/Delete"),g=require("@mui/icons-material/FileCopy"),y=require("@mui/base/ButtonUnstyled"),x=require("@mui/material/styles/styled"),v=require("@mui/icons-material/Visibility"),b=require("@mui/icons-material/VisibilityOff"),C=require("@mui/material/RadioGroup");function W(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function j(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var S=j(o),k=W(o),w=W(n),I=W(a),F=W(i),N=W(s),R=W(d),T=W(h),B=W(f),M=W(g),P=W(y),E=W(x),L=W(v),O=W(b),A=W(C),z=function(){return z=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},z.apply(this,arguments)};function H(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}var D=r.styled(t.Button,{name:"WmeButton",slot:"Root"})((function(e){var t=e.theme;return{textTransform:"none",padding:"6px 12px",boxShadow:"none","&:hover":{boxShadow:"none"},"&.MuiButton-contained&.Mui-disabled":{backgroundColor:t.palette.text.placeholder,color:t.palette.text.white},"&.MuiButton-text":{color:t.palette.text.primary,"&:focus, &:hover":{backgroundColor:t.palette.background.hover}},"&.MuiButton-text&.Mui-disabled":{backgroundColor:"transparent",color:t.palette.text.placeholder},"&.MuiButton-outlined&.Mui-disabled":{backgroundColor:"transparent",color:t.palette.text.placeholder},"&.MuiButton-outlinedPrimary":{"&:focus, &:hover":{backgroundColor:t.palette.primary.main,color:t.palette.text.white}}}})),U=function(t){return e.jsx(D,z({className:"WmeButton-root"},t))},V=r.styled(t.ToggleButtonGroup,{shouldForwardProp:function(e){return"numOfButtons"!==e},name:"WmeToggleButtonGroup",slot:"Root"})((function(e){var t=e.theme;return{".MuiToggleButton-root":{border:"1px solid ".concat(t.palette.text.primary),color:t.palette.text.primary,textTransform:"none",padding:"6px 12px","&.Mui-selected":{backgroundColor:t.palette.primary.main,color:t.palette.text.white,"&:hover, &:focus":{backgroundColor:t.palette.primary.main,color:t.palette.text.white}}}}})),q=r.styled(t.ButtonGroup,{name:"WmeButtonGroup",slot:"Root"})((function(e){return{"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{borderColor:e.theme.palette.text.white}}}})),G=r.styled(t.MenuItem,{name:"WmeMenuItem",slot:"Root"})((function(e){var t=e.theme;return{"&.Mui-selected":{backgroundColor:t.palette.primary.main,color:t.palette.text.white,"&:hover, &:focus":{backgroundColor:t.palette.primary.main,color:t.palette.text.white}},"&:hover":{backgroundColor:t.palette.background.hover}}})),_=r.styled(t.Paper,{name:"WmePaper",slot:"Root"})((function(){return{borderRadius:0,boxShadow:"0px 0px 32px 0px #0000001A;"}})),$=r.styled(t.MenuList,{name:"WmeMenuList",slot:"Root"})((function(){return{paddingTop:0,paddingBottom:0}})),Y=r.styled(I.default,{name:"WmeSetupCard",slot:"Root"})((function(e){var t=e.theme;return{marginTop:t.spacing(4),marginRight:"auto",marginBottom:t.spacing(4),marginLeft:"auto",maxWidth:t.spacing(100),boxShadow:"0 0 32px rgba(0, 0, 0, 0.1)","& .MuiCardContent-root":{marginTop:t.spacing(4),paddingTop:0,paddingRight:t.spacing(4),paddingBottom:t.spacing(4),paddingLeft:t.spacing(4)}}}));var J=r.styled(F.default)((function(e){var t=e.theme;return{paddingTop:t.spacing(4),paddingRight:t.spacing(4),paddingBottom:0,paddingLeft:t.spacing(4),"& .MuiCardHeader-title":{marginBottom:t.spacing(1)}}}));J.defaultProps={titleTypographyProps:{variant:"h3"},subheaderTypographyProps:{variant:"body2"}};var K=r.styled(t.CardContent,{name:"WmeSetupCardContent",slot:"Root",overridesResolver:function(e,t){return[t.root]}})({}),Q=t.createTheme().typography.pxToRem,X=function(e){var t=e.condition,r=e.wrapper,o=e.children;return t?r(o):o},Z=r.styled(t.Box,{name:"WmeTask",slot:"Root"})((function(e){var t,r=e.variant,o=e.theme;return z(z({display:"flex",justifyContent:"flex-start",alignItems:"center",marginTop:o.spacing(3),marginBottom:o.spacing(3),"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& .MuiAvatar-root":{position:"relative",zIndex:1,marginRight:o.spacing(2),width:64,height:64,backgroundColor:o.palette.grey[100],transition:null===(t=null==o?void 0:o.transitions)||void 0===t?void 0:t.create(["background-color"],{duration:o.transitions.duration.standard})}},"action"===r&&{"& .MuiButtonGroup-root, & .WmeButtonGroupRoot, & .MuiButton-root, & .WmeButtonRoot":{marginLeft:"auto",flex:"0 0 auto","&:hover":{color:o.palette.common.white}}}),"task"===r&&{marginTop:o.spacing(2.5),marginBottom:o.spacing(-1.5),marginRight:o.spacing(-1.5),marginLeft:o.spacing(-1.5),"& > button, & > a":{display:"flex",padding:o.spacing(1.5),justifyContent:"flex-start",alignItems:"center",borderRadius:o.shape.borderRadius},"& > button:hover .MuiAvatar-root, & > a:hover .MuiAvatar-root":{backgroundColor:o.palette.common.white},"& > a:focus":{outline:"none"}})})),ee=r.styled(t.Box,{name:"WmeTaskCta",slot:"Root"})((function(e){return{display:"flex",alignItems:"center",marginLeft:"auto",flex:"0 0 auto",color:e.theme.palette.text.primary}})),te=r.styled(t.Typography,{name:"WmeTaskCta",slot:"Action"})((function(){return{fontWeight:600,letterSpacing:"-0.25px",lineHeight:Q(26),opacity:0,transform:"translateX(-10px)",transition:"all 0.3s ease-in-out",".MuiButtonBase-root:hover &, .Mui-focusVisible &":{opacity:1,transform:"translateX(0)"}}})),re=r.styled(t.CardActionArea)((function(e){return{"&.Mui-focusVisible":{boxShadow:"none",outline:"none"},"& .MuiCardActionArea-focusHighlight":{backgroundColor:e.theme.palette.grey[600]}}})),oe=function(t){var r=t.taskCta;return e.jsxs(ee,z({className:"WmeTaskCta-root"},{children:[e.jsx(te,z({className:"WmeTaskCta-action",variant:"body2"},{children:r})),e.jsx(l.ChevronRight,{})]}))},ne=t.styled(t.Button,{name:"WmeSetupCardTaskCta",slot:"root"})((function(e){var t=e.theme;return{textAlign:"center",paddingTop:t.spacing(1.5),paddingBottom:t.spacing(1.5),paddingLeft:t.spacing(2),paddingRight:t.spacing(2),borderRadius:t.shape.borderRadius,borderStyle:"dashed"}})),ae=t.styled(t.Typography,{name:"WmeCardInfoRow",slot:"Primary"})((function(e){return e.theme,{}})),ie=t.styled(t.Typography,{name:"WmeCardInfoRow",slot:"Secondary"})((function(){return{marginLeft:"auto"}})),le=t.styled(t.Box,{name:"WmeSetupCardInfoRow",slot:"root",shouldForwardProp:function(e){return"hasIcon"!==e}})((function(e){var t=e.theme,r=e.hasIcon;return z({display:"flex",alignItems:"center",marginTop:t.spacing(4),paddingTop:t.spacing(1.5),paddingBottom:t.spacing(1.5),paddingLeft:t.spacing(2),paddingRight:t.spacing(2),backgroundColor:t.palette.action.hover,borderRadius:t.shape.borderRadius},r&&{"& .MuiSvgIcon-root":{marginRight:t.spacing(1),fontSize:"1rem"}})})),se=r.styled(t.Box,{name:"WmeSetupCardFooter",slot:"Root",overridesResolver:function(e,t){return[t.root]}})((function(e){var t=e.theme;return{borderTop:"1px dashed ".concat(t.palette.border.ui),paddingTop:t.spacing(3),paddingRight:t.spacing(4),paddingLeft:t.spacing(4),paddingBottom:t.spacing(3),fontSize:t.typography.pxToRem(14),"& .MuiAccordion-root":{boxShadow:"none"},"& .MuiAccordionSummary-root":{padding:0,minHeight:0,"&.Mui-expanded":{minHeight:0},"& .MuiAccordionSummary-content":{margin:0}},"& .MuiAccordionDetails-root":{paddingTop:t.spacing(3),paddingRight:0,paddingLeft:0}}})),ce=r.styled(N.default,{name:"WmeSetupCardList",slot:"Root"})((function(){return{"& .MuiListItem-root":{padding:0}}}));var ue=r.styled(t.MenuItem,{name:"WmeMenuItem",slot:"Root"})((function(e){var t=e.theme;return{height:t.globalStyles.menuListItemHeight,"& .WmeMenuItem-icon":{marginLeft:"auto","& .MuiSvgIcon-root":{fill:t.palette.primary.main}},"&.Mui-selected":{backgroundColor:t.palette.background.hover,"&:hover":{backgroundColor:t.palette.background.hover}}}})),de=r.styled(t.Typography,{name:"WmeInputTitle",slot:"Root"})((function(e){return{fontWeight:"600",fontSize:14,marginBottom:5,color:e.theme.palette.text.primary,textAlign:"left"}})),pe=function(t){var r=t.children;return de.displayName,e.jsx(de,z({className:"WmeInputTitle-root"},{children:r}))},me=r.styled(t.FormHelperText,{name:"WmeFormHelperText",slot:"Root"})({fontSize:10,marginLeft:0}),he=function(t){var r=t.children;return me.displayName,e.jsx(me,z({className:"WmeFormHelperText-root"},t,{children:r}))},fe=r.styled(t.FormControlLabel,{name:"WmeFormControlLabel",slot:"Root"})((function(){return{"& .MuiTypography-root":{fontSize:14,textAlign:"left"}}})),ge=r.styled("div",{name:"WmeSetupCardListItem",slot:"WmeIconWrapper"})((function(e){return{display:"flex",minWidth:e.theme.spacing(3.5),"& svg":{fontSize:"1.5em"}}})),ye=r.styled("div",{name:"WmeSetupCardListItem",slot:"WmeTextWrapper"})((function(e){var t=e.theme;return{marginTop:t.spacing(.5),marginBottom:t.spacing(.5)}})),xe=r.styled("li",{name:"WmeSetupCardListItem",slot:"Root",shouldForwardProp:function(e){return"linkProps"!==e&&"icon"!==e&&"title"!==e&&"href"!==e}})((function(e){var t=e.theme;return{"& .MuiLink-root":{display:"flex",alignItems:"center",color:t.palette.text.primary,'&[href]:not([href=""]):hover':{color:t.palette.text.link}}}}));var ve=r.styled(t.Chip)((function(e){var t=e.color,r=e.size,o=e.theme;return z(z({flexDirection:"row-reverse",backgroundColor:o.palette.info.light,color:o.palette.info.dark,"& .MuiChip-icon":{marginRight:o.spacing(.5),marginLeft:o.spacing(-.5)}},"small"===r&&{"& .MuiChip-icon":{marginRight:o.spacing(.25),marginLeft:o.spacing(-.25)}}),"success"===t&&{backgroundColor:o.palette.success.light,color:o.palette.success.dark})}));var be=r.styled("div",{name:"WmeProgressBar",slot:"Root"})((function(){return{display:"flex",flexWrap:"wrap",alignItems:"center"}})),Ce=r.styled(t.LinearProgress,{name:"WmeProgressBar",slot:"Progress",shouldForwardProp:function(e){return"statusMessage"!==e}})((function(){return{flexGrow:1}})),We=r.styled(t.Typography,{name:"WmeProgressBar",slot:"Percentage"})((function(e){var t=e.theme;return{minWidth:t.spacing(3),marginLeft:t.spacing(1),textAlign:"right"}})),je=r.styled(t.Typography,{name:"WmeProgressBar",slot:"Status"})((function(e){return{flex:"0 0 100%",color:e.theme.palette.text.secondary}}));var Se=r.styled(t.Tooltip,{name:"WmeTooltip",slot:"Root"})((function(){return{padding:"2px 4px"}})),ke=t.styled(t.Box,{name:"WmeFileUpload",slot:"Root"})({}),we=t.styled(t.Box,{name:"WmeFileUploadBody",slot:"Root"})((function(e){var t=e.error,r=e.theme;return{alignItems:"center",border:t?"1px dashed ".concat(r.palette.error.main):"1px dashed #C4C4C4",borderRadius:4,display:"flex",flexDirection:"column",justifyContent:"center",minHeight:106,"& .MuiInputBase-input":u.visuallyHidden}})),Ie=r.styled(t.Typography,{name:"WmeErrorText",slot:"Root"})((function(e){return{color:e.theme.palette.error.main,fontSize:10,marginTop:8}}));function Fe(e,t){var r;if(0===e.length)return{};if("number"==typeof e)return{gridTemplateColumns:"repeat(".concat(e,", 1fr)")};var o=null===(r=null==t?void 0:t.breakpoints)||void 0===r?void 0:r.keys.map((function(r){var o;return r in e&&"number"==typeof e[r]?((o={})[t.breakpoints.up(r)]={gridTemplateColumns:"repeat(".concat(e[r],", 1fr)")},o):null}));return Object.assign.apply(Object,function(e,t,r){if(r||2===arguments.length)for(var o,n=0,a=t.length;n<a;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}([{}],o.filter((function(e){return e&&"object"==typeof e})),!1))}var Ne=t.styled(t.ToggleButtonGroup,{name:"WmeCardSelectGroup",slot:"Root",shouldForwardProp:function(e){return"cardPadding"!==e&&"cardSpacing"!==e&&"cardColumns"!==e}})((function(e){var t=e.orientation,r=void 0===t?"horizontal":t,o=e.theme,n=e.cardSpacing,a=void 0===n?2:n,i=e.cardPadding,l=void 0===i?"sm":i,s=e.cardColumns,c=void 0===s?1:s;return z(z(z({display:"grid",gap:o.spacing(Number(a)),"& .MuiToggleButtonGroup-grouped:not(:first-of-type)":{marginLeft:0},"& .MuiToggleButtonGroup-groupedHorizontal":{flexDirection:"column"},"& .WmeCardSelectItem-footer":{textAlign:"center"},"& .MuiButtonBase-root.WmeCardSelectItem-root + .MuiButtonBase-root.WmeCardSelectItem-root.Mui-selected":{borderColor:o.palette.primary.light,borderWidth:1,borderStyle:"solid"}},Fe(c,o)),"vertical"===r&&{gridTemplateColumns:"1","& .WmeCardSelectItem-icon":{marginRight:o.spacing(2)},"& .MuiToggleButtonGroup-grouped":{flexDirection:"row",justifyContent:"flex-start"},"& .WmeCardSelectItem-contentInner":{textAlign:"left"},"& .WmeCardSelectItem-footer":{textAlign:"left"},"& .WmeCardSelectItem-completeContainer":{top:"50%",transform:"translateY(-50%)"}}),{"& .WmeCardSelectItem-root":{padding:"md"===l?o.spacing(4):o.spacing(2)}})}));var Re=t.styled(t.ToggleButton,{shouldForwardProp:function(e){return"hasFooter"!==e&&"completedIcon"!==e&&"cardPadding"!==e}})((function(e){var t,r=e.theme,o=e.disabled,n=e.hasFooter;return z({position:"relative",transition:null===(t=null==r?void 0:r.transitions)||void 0===t?void 0:t.create(["border-color"],{duration:r.transitions.duration.standard}),"&.MuiButtonBase-root.Mui-selected":{backgroundColor:"transparent",borderColor:r.palette.primary.light,borderWidth:1,borderStyle:"solid"},"&.MuiButtonBase-root.WmeCardSelectItem-root":z({display:"flex",textTransform:"none",borderRadius:r.spacing(.5),border:"1px solid ".concat(r.palette.border.ui),"& + .MuiButtonBase-root.WmeCardSelectItem-root":{borderRadius:r.spacing(.5),border:"1px solid ".concat(r.palette.border.ui)},"&:hover, &:focus":{borderColor:r.palette.primary.main,backgroundColor:"transparent"},"& + .MuiButtonBase-root.WmeCardSelectItem-root.Mui-selected":{backgroundColor:"transparent",borderColor:r.palette.primary.light,borderWidth:1,borderStyle:"solid"}},n&&{paddingBottom:r.spacing(2)}),"& .MuiTouchRipple-root":{opacity:"0.25"}},o&&{backgroundColor:r.palette.background.hover,"& .WmeCardSelectItem-icon":{backgroundColor:r.palette.common.white}})})),Te=t.styled("div",{name:"WmeCardSelectItem",slot:"CompleteContainer"})((function(e){var t=e.theme;return{position:"absolute",top:t.spacing(1),right:t.spacing(1)}})),Be=t.styled("div",{name:"WmeCardSelectItem",slot:"CompleteIcon"})((function(e){var r=e.theme;return{width:r.spacing(2.75),height:r.spacing(2.75),borderRadius:"50%",backgroundColor:t.alpha(r.palette.primary.light,.2),display:"flex",alignItems:"center",justifyContent:"center","& .MuiSvgIcon-root":{color:r.palette.primary.main,fontSize:"1.4em"}}})),Me=t.styled("div",{name:"WmeCardSelectItem",slot:"Icon",shouldForwardProp:function(e){return"icon"!==e}})((function(e){var t=e.theme;return{width:t.spacing(7),height:t.spacing(7),marginBottom:t.spacing(2),borderRadius:"50%",backgroundColor:t.palette.grey[100],display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",overflow:"hidden","& img, & svg":{width:t.spacing(3),height:"auto"}}})),Pe=t.styled(t.Box,{name:"WmeCardSelectItem",slot:"ContentOuter",shouldForwardProp:function(e){return"icon"!==e}})((function(){return{display:"flex",flexDirection:"column",flexGrow:1}})),Ee=t.styled(t.Box,{name:"WmeCardSelectItem",slot:"ContentInner",shouldForwardProp:function(e){return"icon"!==e}})((function(){return{flexGrow:1}})),Le=t.styled(t.Box,{name:"WmeCardSelectItem",slot:"Footer",shouldForwardProp:function(e){return"icon"!==e}})((function(e){var t=e.theme;return{fontSize:10,textTransform:"initial",color:t.palette.text.primary,lineHeight:1.6,marginTop:t.spacing(2)}})),Oe=t.styled(t.Typography,{name:"WmeCardSelectItem",slot:"Primary"})((function(e){var t=e.theme;return{display:"block",fontWeight:600,color:t.palette.text.primary,marginBottom:t.spacing(1)}})),Ae=t.styled(t.Typography,{name:"WmeCardSelectItem",slot:"Secondary"})((function(e){return{display:"block",color:e.theme.palette.text.primary}})),ze=function(){return e.jsx(Be,{children:e.jsx(R.default,{})})};var He=r.styled(t.Box,{name:"WmeVideoEmbed",slot:"Root"})((function(){return{overflow:"hidden",paddingBottom:"56.25%",position:"relative",height:0}})),De=r.styled(t.CardMedia,{name:"WmeVideoEmbed",slot:"Media",shouldForwardProp:function(e){return"width"!==e&&"height"!==e}})((function(e){var t=e.width;return{position:"absolute",top:0,left:0,height:e.height||"100%",width:t||"100%"}})),Ue=r.styled(t.DialogContent,{name:"WmeWizard",slot:"DialogContent"})((function(){return{padding:"16px 32px",overflowY:"auto",overflowX:"hidden",display:"flex",flexDirection:"column",height:"100%"}})),Ve=o.forwardRef((function(r,o){return e.jsx(t.Paper,z({ref:o},r))})),qe=o.forwardRef((function(r,o){var n=r.children,a=r.bgStyles;r.logoSrc,r.logoAlt,r.exit;var i=H(r,["children","bgStyles","logoSrc","logoAlt","exit"]);return e.jsx(t.Dialog,z({fullScreen:!0,fullWidth:!0},i,{PaperComponent:Ve,PaperProps:{ref:o}},{children:e.jsx(t.Box,z({sx:z({},a)},{children:e.jsx(Ue,z({className:"WmeWizard-dialogContent"},{children:n}))}))}))})),Ge=r.styled(t.Box,{name:"WmeWizardHeader",slot:"Root"})((function(e){return{display:"flex",marginBottom:e.theme.spacing(2),justifyContent:"space-between",alignItems:"center",position:"relative",zIndex:1}})),_e=r.styled(t.Box,{name:"WmeWizardSectionTitle",slot:"Root",shouldForwardProp:function(e){return"bookend"!==e}})((function(e){var t=e.width,r=e.bookend;return{width:t||"auto",margin:r?"0px auto":0,textAlign:r?"center":"inherit"}})),$e=r.styled(t.Typography,{name:"WmeWizardSectionTitle",slot:"Heading"})((function(e){var t=e.theme;return{marginBottom:t.spacing(2),color:t.palette.text.primary}})),Ye=r.styled(t.Typography,{name:"WmeWizardSectionTitle",slot:"Copy"})((function(){return{lineHeight:Q(24)}})),Je=r.styled(t.Box,{name:"WmeWizardSectionTitle",slot:"IconContainer"})((function(e){return{marginBottom:e.theme.spacing(3)}}));var Ke={encode:function(e){return null==e?e:String(e)},decode:function(e){var t=function(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;var r=e instanceof Array?e[0]:e;return null==r||t||""!==r?r:null}(e,!0);return null==t?t:String(t)}},Qe={},Xe=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),Ze=new RegExp("%[a-f0-9]{2}","gi"),et=new RegExp("(%[a-f0-9]{2})+","gi");function tt(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),o=e.slice(t);return Array.prototype.concat.call([],tt(r),tt(o))}function rt(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(Ze),r=1;r<t.length;r++)t=(e=tt(t,r).join("")).match(Ze);return e}}var ot=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=et.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var o=rt(r[0]);o!==r[0]&&(t[r[0]]=o)}r=et.exec(e)}t["%C2"]="�";for(var n=Object.keys(t),a=0;a<n.length;a++){var i=n[a];e=e.replace(new RegExp(i,"g"),t[i])}return e}(e)}},nt=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]},at=function(e,t){for(var r={},o=Object.keys(e),n=Array.isArray(t),a=0;a<o.length;a++){var i=o[a],l=e[i];(n?-1!==t.indexOf(i):t(i,l,e))&&(r[i]=l)}return r};!function(e){const t=Xe,r=ot,o=nt,n=at,a=Symbol("encodeFragmentIdentifier");function i(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,r){return r.encode?r.strict?t(e):encodeURIComponent(e):e}function s(e,t){return t.decode?r(e):e}function c(e){return Array.isArray(e)?e.sort():"object"==typeof e?c(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function u(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function d(e){const t=(e=u(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){i((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,o)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===o[e]&&(o[e]={}),o[e][t[1]]=r):o[e]=r};case"bracket":return(e,r,o)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==o[e]?o[e]=[].concat(o[e],r):o[e]=[r]:o[e]=r};case"colon-list-separator":return(e,r,o)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==o[e]?o[e]=[].concat(o[e],r):o[e]=[r]:o[e]=r};case"comma":case"separator":return(t,r,o)=>{const n="string"==typeof r&&r.includes(e.arrayFormatSeparator),a="string"==typeof r&&!n&&s(r,e).includes(e.arrayFormatSeparator);r=a?s(r,e):r;const i=n||a?r.split(e.arrayFormatSeparator).map((t=>s(t,e))):null===r?r:s(r,e);o[t]=i};case"bracket-separator":return(t,r,o)=>{const n=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!n)return void(o[t]=r?s(r,e):r);const a=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>s(t,e)));void 0!==o[t]?o[t]=[].concat(o[t],a):o[t]=a};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const a of e.split("&")){if(""===a)continue;let[e,i]=o(t.decode?a.replace(/\+/g," "):a,"=");i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:s(i,t),r(s(e,t),i,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=c(r):e[t]=r,e}),Object.create(null))}e.extract=d,e.parse=m,e.stringify=(e,t)=>{if(!e)return"";i((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],o=function(e){switch(e.arrayFormat){case"index":return t=>(r,o)=>{const n=r.length;return void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:null===o?[...r,[l(t,e),"[",n,"]"].join("")]:[...r,[l(t,e),"[",l(n,e),"]=",l(o,e)].join("")]};case"bracket":return t=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:null===o?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(o,e)].join("")];case"colon-list-separator":return t=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:null===o?[...r,[l(t,e),":list="].join("")]:[...r,[l(t,e),":list=",l(o,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(o,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?o:(n=null===n?"":n,0===o.length?[[l(r,e),t,l(n,e)].join("")]:[[o,l(n,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:null===o?[...r,l(t,e)]:[...r,[l(t,e),"=",l(o,e)].join("")]}}(t),n={};for(const t of Object.keys(e))r(t)||(n[t]=e[t]);const a=Object.keys(n);return!1!==t.sort&&a.sort(t.sort),a.map((r=>{const n=e[r];return void 0===n?"":null===n?l(r,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?l(r,t)+"[]":n.reduce(o(r),[]).join("&"):l(r,t)+"="+l(n,t)})).filter((e=>e.length>0)).join("&")},e.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m(d(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:s(n,t)}:{})},e.stringifyUrl=(t,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const o=u(t.url).split("?")[0]||"",n=e.extract(t.url),i=e.parse(n,{sort:!1}),s=Object.assign(i,t.query);let c=e.stringify(s,r);c&&(c=`?${c}`);let d=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(t.url);return t.fragmentIdentifier&&(d=`#${r[a]?l(t.fragmentIdentifier,r):t.fragmentIdentifier}`),`${o}${c}${d}`},e.pick=(t,r,o)=>{o=Object.assign({parseFragmentIdentifier:!0,[a]:!1},o);const{url:i,query:l,fragmentIdentifier:s}=e.parseUrl(t,o);return e.stringifyUrl({url:i,query:n(l,r),fragmentIdentifier:s},o)},e.exclude=(t,r,o)=>{const n=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return e.pick(t,n,o)}}(Qe);var it=function(){return it=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},it.apply(this,arguments)};function lt(e,t,r){var o=Qe.stringify(e,r);r&&r.transformSearchString&&(o=r.transformSearchString(o));var n=o.length?"?"+o:"",a=Qe.parseUrl(t.href||"").url+n;return it(it({},t),{key:""+Date.now(),href:a,search:n,query:e})}'{}[],":'.split("").map((function(e){return[e,encodeURIComponent(e)]}));var st=Object.prototype.hasOwnProperty;function ct(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function ut(e,t,r){var o,n;if(ct(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var l=0;l<a.length;l++){var s=null!==(n=null===(o=null==r?void 0:r[a[l]])||void 0===o?void 0:o.equals)&&void 0!==n?n:ct;if(!st.call(t,a[l])||!s(e[a[l]],t[a[l]]))return!1}return!0}function dt(e,t,r){void 0===r&&(r=ut);var o=(null==e.current||null==t)&&e.current===t||!r(e.current,t);S.useEffect((function(){o&&(e.current=t)}),[e,t,o])}function pt(e){return"object"==typeof e?"undefined"!=typeof window?e.search:Qe.extract(""+e.pathname+(e.search?e.search:"")):""}function mt(e,t,r,o){switch(void 0===r&&(r="pushIn"),r){case"replace":case"push":return lt(e,t,o);default:return function(e,t,r){var o=Qe.parse(t.search,{parseNumbers:!1});return lt(it(it({},o),e),t,r)}(e,t,o)}}var ht={location:{},getLocation:function(){return{}},setLocation:function(){}},ft=S.createContext(ht);function gt(e){var t=e.history,r=e.location,o=e.children,n=e.stringifyOptions,a=S.useRef(r);S.useEffect((function(){a.current=r}),[r]);var i=S.useCallback((function(){return a.current}),[a]),l=S.useCallback((function(e,r){a.current=mt(e,null==t||null==t.location?a.current:t.location,r,n),t&&function(e,t,r){switch(void 0===r&&(r="pushIn"),r){case"pushIn":case"push":e.push(t);break;default:e.replace(t)}}(t,a.current,r)}),[t,n]);return S.createElement(ft.Provider,{value:{location:r,getLocation:i,setLocation:l}},o)}var yt,xt,vt,bt=(xt=yt,vt=Qe.parse(xt||""),function(e){return xt!==e&&(xt=e,vt=Qe.parse(xt)),vt});function Ct(e,t,r,o,n,a){var i,l=!ut(o.current,r),s=null!==(i=r.equals)&&void 0!==i?i:ut,c=bt(pt(e)),u=!ut(n.current,c[t]),d=u?c[t]:n.current;if(!u&&!l&&void 0!==a.current)return a.current;var p=r.decode(d);return(null==a.current||null==p)&&a.current===p||!s(a.current,p)?p:a.current}var Wt,jt,St,kt,wt=function(e,t){void 0===t&&(t=Ke);var r=function(){var e=S.useContext(ft);if("production"!==process.env.NODE_ENV&&(void 0===e||e===ht))throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),o=r.location,n=r.getLocation,a=r.setLocation,i=bt(pt(o)),l=S.useRef(),s=S.useRef(t),c=S.useRef(),u=Ct(o,e,t,s,l,c);dt(l,i[e]),dt(s,t),dt(c,u,t.equals);var d={paramConfig:t,name:e,setLocation:a,getLocation:n},p=S.useRef(d);p.current=d;var m=S.useCallback((function(e,t){var r,o,n=p.current;if("function"==typeof e){var a=Ct(n.getLocation(),n.name,n.paramConfig,s,l,c);c.current=a,o=n.paramConfig.encode(e(a))}else o=n.paramConfig.encode(e);n.setLocation(((r={})[n.name]=o,r),t)}),[]);return[u,m]},It=function(){return It=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},It.apply(this,arguments)};function Ft(e){if(e===St&&null!=kt)return kt;var t={replace:function(t){e.navigate(t.protocol+"//"+t.host+t.pathname+t.search,{replace:!0})},push:function(t){e.navigate(t.protocol+"//"+t.host+t.pathname+t.search,{replace:!1})},get location(){return e.location}};return St=e,kt=t,t}function Nt(e){var t=void 0===e?{}:e,r=t.history,o=t.location;if("undefined"!=typeof window&&(r||(r=function(e){if(e===Wt&&null!=jt)return jt;var t={replace:function(t){e.replaceState(t.state,"",t.protocol+"//"+t.host+t.pathname+t.search)},push:function(t){e.pushState(t.state,"",t.protocol+"//"+t.host+t.pathname+t.search)},get location(){return window.location}};return Wt=e,jt=t,t}(window.history)),o||(o=window.location)),!o)throw new Error("\n Could not read the location. Is the router wired up correctly?\n ");return{history:r,location:o}}function Rt(e){var t=e.children,r=e.ReactRouterRoute,o=e.reachHistory,n=e.history,a=e.location,i=e.stringifyOptions,l=S.useRef(i),s=!ut(l.current,i)?i:l.current;return S.useEffect((function(){l.current=s}),[s]),r?S.createElement(r,null,(function(e){return S.createElement(gt,It({stringifyOptions:s},Nt(e)),t)})):o?S.createElement(gt,It({stringifyOptions:s},Nt({history:Ft(o),location:a})),t):S.createElement(gt,It({stringifyOptions:s},Nt({history:n,location:a})),t)}function Tt(e){void 0===e&&(e=-1);var t=o.useState(-1),r=t[0],n=t[1];return o.useEffect((function(){e>r&&n(e)}),[r,e]),{maxActiveStep:r}}var Bt,Mt=r.styled(t.Box,{name:"WmeWizardFooter",slot:"Root"})((function(e){var t=e.theme;return{display:"flex",alignItems:"center",marginTop:"auto",position:"absolute",justifyContent:"center",left:t.spacing(2),right:t.spacing(2),bottom:0,padding:"".concat(t.spacing(2)," ").concat(t.spacing(2)),backgroundColor:t.palette.background.primary,borderTop:"1px solid ".concat(t.palette.border.layout)}})),Pt=r.styled(t.Box,{name:"WmeWizardFooter",slot:"Prev"})((function(){return{display:"flex",alignItems:"center",flex:1}})),Et=r.styled(t.Box,{name:"WmeWizardFooter",slot:"Nav"})((function(){return{flex:1,maxWidth:"500px"}})),Lt=r.styled(t.Box,{name:"WmeWizardFooter",slot:"Skip"})((function(e){return{marginRight:e.theme.spacing(1)}})),Ot=r.styled(t.Box,{name:"WmeWizardFooter",slot:"Next"})((function(){return{display:"flex",flex:1,justifyContent:"flex-end",alignItems:"center"}})),At=r.styled(t.Stepper,{name:"WmeStepper",slot:"Root"})((function(){return{justifyContent:"center"}})),zt=r.styled(t.StepButton,{name:"WmeStepButton",slot:"Root"})((function(){return{"& .MuiStepLabel-root":{"& .MuiStepLabel-iconContainer":{"& .MuiSvgIcon-root":{width:"18px",height:"18px"}}}}})),Ht=t.styled(t.Box,{name:"WmeForm",slot:"Root"})({}),Dt=t.styled(t.Checkbox,{name:"WmeCheckboxInput",slot:"Root"})((function(e){var t=e.theme;return{"&.Mui-checked":{"& .MuiSvgIcon-root":{fill:t.palette.primary.main}},"&:focus, &:hover":{"& .MuiSvgIcon-root":{fill:t.palette.primary.dark}},"& .MuiSvgIcon-root":{fill:t.palette.text.disabled},"&:hover":{backgroundColor:"transparent"}}})),Ut=t.styled(t.FormControlLabel,{name:"WmeInputLabel",slot:"Root"})((function(e){return{"& .MuiTypography-root":{color:e.theme.palette.text.primary,fontSize:14,textAlign:"left"}}})),Vt=t.styled(t.Select,{name:"WmeSelectInput",slot:"Root"})((function(e){var t=e.theme;return{color:t.palette.text.disabled,height:t.globalStyles.menuListItemHeight,"& .MuiSelect-select":{"& .Wme-selected-text":{color:t.palette.text.primary}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:t.palette.text.primary,borderWidth:1}},"&.Mui-error":{"& .MuiOutlinedInput-notchedOutline":{borderColor:t.palette.error.main}}}})),qt=t.styled(t.InputBase,{name:"WmeFileInput",slot:"Root"})({}),Gt=function(t){return e.jsx(qt,z({type:"file",className:"WmeFileInput-root"},t))},_t=t.styled(t.Box,{name:"WmeFileUploadSelect",slot:"Root"})({alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center","& .MuiInputBase-input":u.visuallyHidden}),$t=function(t){var r=t.buttonText,o=t.buttonProps,n=t.helperText,a=t.inputProps,i=H(t,["buttonText","buttonProps","helperText","inputProps"]);return e.jsxs(_t,z({className:"WmeFileUploadSelect-root"},i,{children:[e.jsxs("label",z({htmlFor:null==a?void 0:a.id},{children:[e.jsx(Gt,z({},a)),e.jsx(U,z({color:"primary",startIcon:e.jsx(T.default,{}),variant:"contained"},o,{children:r||"Add File"}))]})),n&&e.jsx(he,{children:n})]}))},Yt=t.styled(t.Box,{name:"WmeFileUploadRemove",slot:"Root"})({alignItems:"center",display:"flex",justifyContent:"center"}),Jt=function(t){var r=t.buttonText,o=t.cancelText,n=t.onCancel,a=t.onRemove,i=H(t,["buttonText","cancelText","onCancel","onRemove"]);return e.jsxs(Yt,z({className:"WmeFileUploadRemove-root"},i,{children:[e.jsx(U,z({color:"error",onClick:a,startIcon:e.jsx(B.default,{}),variant:"contained"},{children:r||"Delete"})),o&&e.jsx(U,z({onClick:n,sx:{color:"text.primary",ml:1}},{children:o}))]}))},Kt=t.styled(t.Box,{name:"WmeFilePreview",slot:"Root"})({}),Qt=function(t){var r=t.filePath,o=t.imagePath,n=t.imageAlt,a=H(t,["filePath","imagePath","imageAlt"]);return e.jsx(Kt,z({className:"WmeFilePreview-root"},a,{children:o?e.jsx("img",{src:o,alt:n}):e.jsx(U,z({color:"info",disabled:!0,startIcon:e.jsx(M.default,{}),variant:"contained"},{children:r}))}))},Xt=t.styled(t.Box,{name:"WmeFileUploadHeader",slot:"Root"})({alignItems:"center",display:"flex",justifyContent:"space-between","& .WmeErrorText":{cursor:"pointer",marginLeft:"auto"}}),Zt=t.styled(P.default,{name:"WmeFileUploadHeaderButton",slot:"Root"})((function(e){return{background:"none",border:"none",color:e.theme.palette.error.main,cursor:"pointer",margin:0,padding:0}})),er=function(t){var r=t.button,o=t.buttonText,n=t.labelText,a=t.onRemove,i=t.showButton,l=H(t,["button","buttonText","labelText","onRemove","showButton"]);return e.jsxs(Xt,z({className:"WmeFileUploadHeader-root"},l,{children:[n&&e.jsx(pe,{children:n}),i&&(r||e.jsx(Zt,z({onClick:a},{children:o})))]}))},tr=t.styled(t.FormHelperText,{name:"WmeInputHelperText",slot:"Root"})({fontSize:10,marginLeft:0}),rr=function(t){var r=t.children,o=H(t,["children"]);return e.jsx(tr,z({className:"WmeInputHelperText-root"},o,{children:r}))},or=E.default(m.FormControlUnstyled,{name:"WmeFormFieldControl",slot:"Root"})({}),nr=function(t){var r=t.children,o=H(t,["children"]);return e.jsx(or,z({className:"WmeFormFieldControl-root"},o,{children:r}))},ar=t.styled(t.Typography,{name:"WmeInputError",slot:"Root"})((function(e){return{color:e.theme.palette.error.main,fontSize:10,marginTop:8}})),ir=function(t){var r=t.children,o=H(t,["children"]),n=m.useFormControlUnstyledContext();return(null==n?void 0:n.error)?e.jsx(ar,z({className:"WmeInputError-root"},o,{children:r})):null},lr=t.styled(t.InputBase,{name:"WmeTextInput",slot:"Root"})((function(e){var t=e.theme;return{"&.MuiInputBase-root":{"& .MuiInputAdornment-root":{position:"absolute",right:15}},"& .MuiInputBase-input":{border:"1px solid ".concat(t.palette.text.disabled),borderRadius:4,padding:"5px 6px",paddingRight:"35px",position:"relative",width:"100%","&:focus":{borderColor:t.palette.text.primary}},"&.Mui-error":{color:t.palette.error.main,"& .MuiInputBase-input":{borderColor:t.palette.error.main},"& .MuiInputAdornment-root":{"& .MuiSvgIcon-root":{color:t.palette.error.main}}},"&.Mui-disabled":{backgroundColor:t.palette.background.disabled}}})),sr=function(t){var r=m.useFormControlUnstyledContext();return e.jsx(lr,z({className:"WmeTextInput-root",error:null==r?void 0:r.error},t))},cr=t.styled(t.Chip,{name:"WmePasswordInputChip",slot:"Root"})((function(e){var t=e.theme;return{height:26,"&.MuiChip-filledSuccess":{backgroundColor:t.palette.success,color:t.palette.text.white},"&.MuiChip-filledWarning":{backgroundColor:t.palette.warning,color:t.palette.text.white},"&.MuiChip-filledError":{backgroundColor:t.palette.error,color:t.palette.text.white}}})),ur=function(t){var r=t.color,o=t.label,n=H(t,["color","label"]);return e.jsx(cr,z({className:"WmePasswordInputChip-root",color:r,label:o},n))},dr=t.styled(t.InputAdornment,{name:"WmePasswordInputAdornment",slot:"Root"})({position:"absolute",right:15}),pr=function(r){var o=r.chip,n=r.onClickAdornment,a=r.visible,i=H(r,["chip","onClickAdornment","visible"]);return e.jsxs(dr,z({className:"WmePasswordInputAdornment-root"},i,{children:[o,e.jsx(t.IconButton,z({"aria-label":"toggle password visibility",edge:"end",onClick:n,onMouseDown:function(e){return e.preventDefault()}},{children:a?e.jsx(O.default,{}):e.jsx(L.default,{})}))]}))},mr=t.styled(sr,{name:"WmePasswordInput",slot:"Root"})({}),hr=r.styled(A.default,{name:"WmeRadioGroup",slot:"Root"})((function(e){return{"& .MuiRadio-root":{"&:focus, &:hover":{backgroundColor:"transparent",color:e.theme.palette.primary.dark}}}})),fr=t.styled(t.InputLabel,{name:"WmeFormFieldLabel",slot:"Root"})((function(e){return{color:e.theme.palette.text.primary,fontSize:14,fontWeight:"600",marginBottom:5,textAlign:"left"}})),gr=function(t){var r=t.children,o=H(t,["children"]);return e.jsx(fr,z({className:"WmeFormFieldLabel-root"},o,{children:r}))},yr=r.styled(t.Box,{name:"WmeLogoContainer",slot:"Root"})((function(){return{margin:0,"& img":{width:"100%"},"& svg":{width:"100%",height:"auto"}}})),xr=r.styled(t.Box,{name:"WmeExitButton",slot:"Root"})((function(){return{margin:0,"& .MuiButton-text":{fontWeight:"600"}}})),vr=r.styled(t.Box,{name:"WmeDeviceSelectionContainer",slot:"Root"})((function(e){return e.theme,{display:"flex",alignItems:"center"}})),br={active:{color:"primary.dark",mx:"5px"},default:{color:"#BFBFBF",cursor:"pointer",mx:"5px"}},Cr=t.styled(t.Switch,{name:"WmeSwitch",slot:"Root"})((function(e){var t=e.theme;return{"& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"transparent"},"& .MuiSwitch-thumb":{border:"1px solid ".concat(t.palette.text.disabled)},"+ .MuiSwitch-track":{backgroundColor:t.palette.text.disabled,opacity:1},"&.Mui-checked":{"& .MuiSwitch-thumb":{backgroundColor:t.palette.background.primary,border:"1px solid ".concat(t.palette.primary.main)},"+ .MuiSwitch-track":{backgroundColor:t.palette.primary.main,opacity:1}}}}})),Wr=["-apple-system","BlinkMacSystemFont","Arial","sans-serif"].join(","),jr=r.createTheme({palette:{primary:{main:"#0047FF",dark:"#0033B8",light:"#7A9FFF"},secondary:{main:"#A91CFF",dark:"#6E08AD",light:"#D99CFF"},success:{main:"#4FB669",dark:"#11772A",light:"#EDF7ED"},text:{primary:"#000000",secondary:"#4E4E4E",disabled:"#757575",white:"#FFFFFF",placeholder:"#757575",link:"#0047FF"},border:{ui:"#C4C4C4",layout:"#C4C4C4",dark:"#000000"},error:{main:"#FF0000",dark:"#AA0000",light:"#FF9492"},warning:{main:"#EC6C20",dark:"#E3521B",light:"#FD9826"},info:{main:"#158ACE",dark:"#085796",light:"#E9F5FE"},background:{primary:"#FFFFFF",secondary:"#FAFAFA",hover:"#F5F5F5",dark:"#2A3353",grey:"#F5F5F5",disabled:"#F0F1F9"}},typography:z({fontFamily:Wr,allVariants:{color:"#000000"}},{h1:{fontSize:"3rem",lineHeight:1.20833,fontWeight:400,letterSpacing:"-2%"},h2:{fontSize:"2rem",lineHeight:1.25,fontWeight:400,letterSpacing:"-2%"},h3:{fontSize:"1.5rem",lineHeight:1.16667,fontWeight:400,letterSpacing:"-2%"},h4:{fontSize:"1.125rem",lineHeight:1.33,fontWeight:400,letterSpacing:"-2%"},h5:{fontSize:"0.875rem",lineHeight:1.285,fontWeight:600,letterSpacing:"-2%"},body1:{fontSize:"0.875rem",lineHeight:1.285,fontWeight:400,letterSpacing:"-2%"},body2:{fontSize:"0.75rem",lineHeight:1.333,fontWeight:400,letterSpacing:"-2%"},subtext:{fontSize:"0.625rem",lineHeight:1.6,fontWeight:400,letterSpacing:"0%"},link:{fontSize:"0.875rem",lineHeight:1.71,fontWeight:400,letterSpacing:"0%"},taskTitle:{fontSize:"1rem",lineHeight:1.19,fontWeight:600,letterSpacing:"-3%"}}),globalStyles:{menuListItemHeight:40,menuListItemPadding:24,menuPaperWidth:415}}),Sr=jr=r.createTheme(jr,{components:{MuiTypography:{defaultProps:{fontFamily:Wr}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:jr.palette.background.dark,padding:jr.spacing(1),"& .MuiTooltip-arrow":{color:jr.palette.background.dark}}}}}});function kr(){return kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},kr.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Bt||(Bt={}));var wr="production"!==process.env.NODE_ENV?function(e){return Object.freeze(e)}:function(e){return e};function Ir(e){void 0===e&&(e={});var t=e.window,r=void 0===t?document.defaultView:t,o=r.history;function n(){var e=r.location,t=e.pathname,n=e.search,a=e.hash,i=o.state||{};return[i.idx,wr({pathname:t,search:n,hash:a,state:i.usr||null,key:i.key||"default"})]}var a=null;r.addEventListener("popstate",(function(){if(a)d.call(a),a=null;else{var e=Bt.Pop,t=n(),r=t[0],o=t[1];if(d.length)if(null!=r){var i=s-r;i&&(a={action:e,location:o,retry:function(){y(-1*i)}},y(i))}else"production"!==process.env.NODE_ENV&&function(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else g(e)}}));var i=Bt.Pop,l=n(),s=l[0],c=l[1],u=Nr(),d=Nr();function p(e){return"string"==typeof e?e:Rr(e)}function m(e,t){return void 0===t&&(t=null),wr(kr({pathname:c.pathname,hash:"",search:""},"string"==typeof e?Tr(e):e,{state:t,key:Math.random().toString(36).substr(2,8)}))}function h(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function f(e,t,r){return!d.length||(d.call({action:e,location:t,retry:r}),!1)}function g(e){i=e;var t=n();s=t[0],c=t[1],u.call({action:i,location:c})}function y(e){o.go(e)}null==s&&(s=0,o.replaceState(kr({},o.state,{idx:s}),""));var x={get action(){return i},get location(){return c},createHref:p,push:function e(t,n){var a=Bt.Push,i=m(t,n);if(f(a,i,(function(){e(t,n)}))){var l=h(i,s+1),c=l[0],u=l[1];try{o.pushState(c,"",u)}catch(e){r.location.assign(u)}g(a)}},replace:function e(t,r){var n=Bt.Replace,a=m(t,r);if(f(n,a,(function(){e(t,r)}))){var i=h(a,s),l=i[0],c=i[1];o.replaceState(l,"",c),g(n)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&r.addEventListener("beforeunload",Fr),function(){t(),d.length||r.removeEventListener("beforeunload",Fr)}}};return x}function Fr(e){e.preventDefault(),e.returnValue=""}function Nr(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function Rr(e){var t=e.pathname,r=void 0===t?"/":t,o=e.search,n=void 0===o?"":o,a=e.hash,i=void 0===a?"":a;return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}function Tr(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}
/**
* React Router v6.3.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/const Br=o.createContext(null);"production"!==process.env.NODE_ENV&&(Br.displayName="Navigation");const Mr=o.createContext(null);"production"!==process.env.NODE_ENV&&(Mr.displayName="Location");const Pr=o.createContext({outlet:null,matches:[]});function Er(e,t){if(!e)throw new Error(t)}function Lr(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function Or(e,t,r){let o,n="string"==typeof e?Tr(e):e,a=""===e||""===n.pathname?"/":n.pathname;if(null==a)o=r;else{let e=t.length-1;if(a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;n.pathname=t.join("/")}o=e>=0?t[e]:"/"}let i=function(e,t){void 0===t&&(t="/");let{pathname:r,search:o="",hash:n=""}="string"==typeof e?Tr(e):e,a=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:a,search:zr(o),hash:Hr(n)}}(n,o);return a&&"/"!==a&&a.endsWith("/")&&!i.pathname.endsWith("/")&&(i.pathname+="/"),i}"production"!==process.env.NODE_ENV&&(Pr.displayName="Route");const Ar=e=>e.join("/").replace(/\/\/+/g,"/"),zr=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Hr=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function Dr(e){Ur()||("production"!==process.env.NODE_ENV?Er(!1,"useHref() may be used only in the context of a <Router> component."):Er(!1));let{basename:t,navigator:r}=o.useContext(Br),{hash:n,pathname:a,search:i}=Gr(e),l=a;if("/"!==t){let r=function(e){return""===e||""===e.pathname?"/":"string"==typeof e?Tr(e).pathname:e.pathname}(e),o=null!=r&&r.endsWith("/");l="/"===a?t+(o?"/":""):Ar([t,a])}return r.createHref({pathname:l,search:i,hash:n})}function Ur(){return null!=o.useContext(Mr)}function Vr(){return Ur()||("production"!==process.env.NODE_ENV?Er(!1,"useLocation() may be used only in the context of a <Router> component."):Er(!1)),o.useContext(Mr).location}function qr(){Ur()||("production"!==process.env.NODE_ENV?Er(!1,"useNavigate() may be used only in the context of a <Router> component."):Er(!1));let{basename:e,navigator:t}=o.useContext(Br),{matches:r}=o.useContext(Pr),{pathname:n}=Vr(),a=JSON.stringify(r.map((e=>e.pathnameBase))),i=o.useRef(!1);return o.useEffect((()=>{i.current=!0})),o.useCallback((function(r,o){if(void 0===o&&(o={}),"production"!==process.env.NODE_ENV&&Lr(i.current,"You should call navigate() in a React.useEffect(), not when your component is first rendered."),!i.current)return;if("number"==typeof r)return void t.go(r);let l=Or(r,JSON.parse(a),n);"/"!==e&&(l.pathname=Ar([e,l.pathname])),(o.replace?t.replace:t.push)(l,o.state)}),[e,t,a,n])}function Gr(e){let{matches:t}=o.useContext(Pr),{pathname:r}=Vr(),n=JSON.stringify(t.map((e=>e.pathnameBase)));return o.useMemo((()=>Or(e,JSON.parse(n),r)),[e,n,r])}function _r(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Bt.Pop,navigator:i,static:l=!1}=e;Ur()&&("production"!==process.env.NODE_ENV?Er(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Er(!1));let s=(e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"))(t),c=o.useMemo((()=>({basename:s,navigator:i,static:l})),[s,i,l]);"string"==typeof n&&(n=Tr(n));let{pathname:u="/",search:d="",hash:p="",state:m=null,key:h="default"}=n,f=o.useMemo((()=>{let e=function(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=e.charAt(t.length);return r&&"/"!==r?null:e.slice(t.length)||"/"}(u,s);return null==e?null:{pathname:e,search:d,hash:p,state:m,key:h}}),[s,u,d,p,m,h]);return"production"!==process.env.NODE_ENV&&Lr(null!=f,'<Router basename="'+s+'"> is not able to match the URL "'+u+d+p+"\" because it does not start with the basename, so the <Router> won't render anything."),null==f?null:o.createElement(Br.Provider,{value:c},o.createElement(Mr.Provider,{children:r,value:{location:f,navigationType:a}}))}
/**
* React Router DOM v6.3.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function $r(){return $r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},$r.apply(this,arguments)}function Yr(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}const Jr=["onClick","reloadDocument","replace","state","target","to"],Kr=["aria-current","caseSensitive","className","end","style","to","children"];function Qr(e){let{basename:t,children:r,window:n}=e,a=o.useRef();null==a.current&&(a.current=Ir({window:n}));let i=a.current,[l,s]=o.useState({action:i.action,location:i.location});return o.useLayoutEffect((()=>i.listen(s)),[i]),o.createElement(_r,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i})}process.env.NODE_ENV;const Xr=o.forwardRef((function(e,t){let{onClick:r,reloadDocument:n,replace:a=!1,state:i,target:l,to:s}=e,c=Yr(e,Jr),u=Dr(s),d=function(e,t){let{target:r,replace:n,state:a}=void 0===t?{}:t,i=qr(),l=Vr(),s=Gr(e);return o.useCallback((t=>{if(!(0!==t.button||r&&"_self"!==r||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let r=!!n||Rr(l)===Rr(s);i(e,{replace:r,state:a})}}),[l,i,s,n,a,r,e])}(s,{replace:a,state:i,target:l});return o.createElement("a",$r({},c,{href:u,onClick:function(e){r&&r(e),e.defaultPrevented||n||d(e)},ref:t,target:l}))}));"production"!==process.env.NODE_ENV&&(Xr.displayName="Link");const Zr=o.forwardRef((function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:a="",end:i=!1,style:l,to:s,children:c}=e,u=Yr(e,Kr),d=Vr(),p=Gr(s),m=d.pathname,h=