diff --git a/69.170276ae.iframe.bundle.js b/69.b980949b.iframe.bundle.js
similarity index 66%
rename from 69.170276ae.iframe.bundle.js
rename to 69.b980949b.iframe.bundle.js
index d58ca3ba..50e64fda 100644
--- a/69.170276ae.iframe.bundle.js
+++ b/69.b980949b.iframe.bundle.js
@@ -1 +1 @@
-(self.webpackChunkroot=self.webpackChunkroot||[]).push([[69],{"./packages/react-material-ui/dist/components/AppBar/AppBarDrawer.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppBarDrawer=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Drawer_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/index.js"),useAppBarRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/hooks/useAppBarRoot.js");exports.AppBarDrawer=props=>{const{isMobileOpen,toggleMobileOpen}=(0,useAppBarRoot_1.useAppBarRoot)();return react_1.default.createElement(Drawer_1.Drawer,Object.assign({mobileIsOpen:isMobileOpen,onMobileClose:toggleMobileOpen},props))}},"./packages/react-material-ui/dist/components/AppBar/AppBarMain.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i
{const{sx,children}=boxProps,props=__rest(boxProps,["sx","children"]);return react_1.default.createElement(material_1.Box,Object.assign({component:"main",sx:[{backgroundColor:theme=>theme.palette.background.default,flexGrow:1,height:"100vh",overflow:"auto"},...Array.isArray(sx)?sx:[sx]]},props),children)}},"./packages/react-material-ui/dist/components/AppBar/AppBarNav.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppBarNav=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Navbar_1=__webpack_require__("./packages/react-material-ui/dist/components/Navbar/index.js"),useAppBarRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/hooks/useAppBarRoot.js");exports.AppBarNav=props=>{const{toggleMobileOpen}=(0,useAppBarRoot_1.useAppBarRoot)();return react_1.default.createElement(Navbar_1.Navbar,Object.assign({drawerToggle:toggleMobileOpen},props))}},"./packages/react-material-ui/dist/components/AppBar/AppBarRoot.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppBarRoot=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),useAppBarRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/hooks/useAppBarRoot.js");exports.AppBarRoot=props=>{const{children}=props,[isMobileOpen,setIsMobileOpen]=(0,react_1.useState)(!1);return react_1.default.createElement(useAppBarRoot_1.AppBarContext.Provider,{value:{isMobileOpen,toggleMobileOpen:()=>{setIsMobileOpen((prv=>!prv))}}},react_1.default.createElement(Box_1.default,{sx:{display:"flex"},id:"AppBarRoot"},children))}},"./packages/react-material-ui/dist/components/AppBar/hooks/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useAppBarRoot=void 0;const useAppBarRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/hooks/useAppBarRoot.js");Object.defineProperty(exports,"useAppBarRoot",{enumerable:!0,get:function(){return useAppBarRoot_1.useAppBarRoot}})},"./packages/react-material-ui/dist/components/AppBar/hooks/useAppBarRoot.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useAppBarRoot=exports.AppBarContext=void 0;const react_1=__webpack_require__("./node_modules/react/index.js");exports.AppBarContext=(0,react_1.createContext)({});exports.useAppBarRoot=()=>{const appBarContext=(0,react_1.useContext)(exports.AppBarContext);if(!appBarContext)throw new Error("You must use table root under AppBarContext");return appBarContext}},"./packages/react-material-ui/dist/components/AppBar/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppBar=void 0;const AppBarMain_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarMain.js"),AppBarDrawer_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarDrawer.js"),AppBarNav_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarNav.js"),AppBarRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarRoot.js");exports.AppBar={Main:AppBarMain_1.AppBarMain,Drawer:AppBarDrawer_1.AppBarDrawer,Nav:AppBarNav_1.AppBarNav,Root:AppBarRoot_1.AppBarRoot}},"./packages/react-material-ui/dist/components/AutocompleteField/AutocompleteField.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var _b,{value,options=[],sort,filters,resourceLabel="name",resourceValue="id",label,resource,isLoading=!1,defaultValue,onChange}=_a,rest=__rest(_a,["value","options","sort","filters","resourceLabel","resourceValue","label","resource","isLoading","defaultValue","onChange"]);const{get}=(0,react_data_provider_1.default)(),[_value,setValue]=(0,react_1.useState)(null!=value?value:defaultValue),currentValue=void 0!==value?null!=value?value:defaultValue:_value,simpleFilterQuery=()=>{if(!filters)return;const queryArr=[];for(const[key,value]of Object.entries(filters))queryArr.push(`${key}${value}`);return queryArr},{execute,data,isPending}=(0,react_data_provider_1.useQuery)((()=>get({uri:`/${resource}`,queryParams:{sort,filters:simpleFilterQuery()}})),!1),resourceOptions=[...null!==(_b=null==data?void 0:data.map((resource=>({value:resource[resourceValue],label:resource[resourceLabel]}))))&&void 0!==_b?_b:[]],loading=resource?!(null==data?void 0:data.length)||isPending:isLoading,optionsWithAll=[SelectField_1.allOption,...(null==data?void 0:data.length)&&!isPending?resourceOptions:options],selectedValue=optionsWithAll.find((option=>{const value="string"==typeof currentValue?currentValue:null==currentValue?void 0:currentValue.value;return option.value===value}));return(0,react_1.useEffect)((()=>{resource&&execute()}),[filters]),react_1.default.createElement(material_1.Autocomplete,Object.assign({disabled:loading,isOptionEqualToValue:option=>option.value===currentValue,onChange:(_,newValue,reason)=>{var _a;const allOptionValue=SelectField_1.allOption.value;if("clear"===reason)return onChange(allOptionValue),void setValue(allOptionValue);const selectedValue=null!==(_a=null==newValue?void 0:newValue.value)&&void 0!==_a?_a:null;setValue(selectedValue),onChange&&onChange(selectedValue)},options:optionsWithAll,renderInput:params=>react_1.default.createElement(FormFieldSkeleton_1.FormFieldSkeleton,{isLoading:loading,hideLabel:!0},react_1.default.createElement(material_1.TextField,Object.assign({},params,{label}))),value:null!=selectedValue?selectedValue:SelectField_1.allOption,renderOption:(props,option)=>react_1.default.createElement("li",Object.assign({},props,{key:option.value}),option.label),sx:{"& .MuiInputLabel-root":{pr:"16px"}}},rest))}},"./packages/react-material-ui/dist/components/AutocompleteField/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const AutocompleteField_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/AutocompleteField/AutocompleteField.js"));exports.default=AutocompleteField_1.default},"./packages/react-material-ui/dist/components/Avatar/Avatar.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Avatar=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Styles_1=__webpack_require__("./packages/react-material-ui/dist/components/Avatar/Styles.js"),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js"));exports.Avatar=props=>{const{src,alt,size=30,initials,backgroundColor,onClick}=props,[failed,setFailed]=(0,react_1.useState)(!src),showInitials=failed&&initials;return react_1.default.createElement(Box_1.default,{sx:showInitials?{}:{backgroundColor:backgroundColor||"#eee",width:`${size}px`,height:`${size}px`,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"}},react_1.default.createElement(Styles_1.Image,{src,alt,size,onClick,onError:()=>{setFailed(!0)},style:{display:showInitials?"none":"block",cursor:onClick?"pointer":"default"}}),showInitials&&react_1.default.createElement(Text_1.default,{fontSize:.44*size,fontWeight:600},initials.substring(0,2)))}},"./packages/react-material-ui/dist/components/Avatar/Styles.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Image=void 0;const styles_1=__webpack_require__("./node_modules/@mui/material/styles/index.js");exports.Image=(0,styles_1.styled)("img")((({size,onError})=>({width:`${size}px`,height:`${size}px`,borderRadius:"50%",margin:"0 12px",objectFit:"cover",onError})))},"./packages/react-material-ui/dist/components/Avatar/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Avatar=void 0;var Avatar_1=__webpack_require__("./packages/react-material-ui/dist/components/Avatar/Avatar.js");Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return Avatar_1.Avatar}})},"./packages/react-material-ui/dist/components/Breadcrumbs/Breadcrumbs.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Breadcrumbs_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Breadcrumbs/index.js")),Typography_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Typography/index.js")),Link_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Link/index.js")),Stack_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Stack/index.js")),NavigateNext_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/NavigateNext.js"));exports.default=function Breadcrumbs({routes}){const breadcrumbs=routes.slice(0,-1).map(((routeItem,index)=>react_1.default.createElement(Link_1.default,{underline:"hover",key:index+1,color:"inherit",href:routeItem.href},routeItem.label))),lastItem=routes.at(-1);return routes.length?react_1.default.createElement(Stack_1.default,{spacing:2},react_1.default.createElement(Breadcrumbs_1.default,{separator:react_1.default.createElement(NavigateNext_1.default,{fontSize:"small"}),"aria-label":"breadcrumbs"},breadcrumbs,lastItem?react_1.default.createElement(Typography_1.default,{color:"text.primary"},lastItem.label):null)):null}},"./packages/react-material-ui/dist/components/Breadcrumbs/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var Breadcrumbs_1=__webpack_require__("./packages/react-material-ui/dist/components/Breadcrumbs/Breadcrumbs.js");Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(Breadcrumbs_1).default}})},"./packages/react-material-ui/dist/components/Checkbox/Checkbox.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{label,checked,required,textProps={fontSize:16,fontWeight:400,color:"text.primary"}}=props,otherProps=__rest(props,["label","checked","required","textProps"]);return react_1.default.createElement(react_1.default.Fragment,null,label?react_1.default.createElement(FormGroup_1.default,null,react_1.default.createElement(FormControlLabel_1.default,{control:react_1.default.createElement(Checkbox_1.default,Object.assign({},otherProps)),label:react_1.default.createElement(Text_1.default,Object.assign({role:"label"},textProps),label,required&&" *"),checked})):react_1.default.createElement(Checkbox_1.default,Object.assign({checked,required},otherProps)))}},"./packages/react-material-ui/dist/components/Checkbox/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Checkbox=void 0;var Checkbox_1=__webpack_require__("./packages/react-material-ui/dist/components/Checkbox/Checkbox.js");Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return Checkbox_1.Checkbox}})},"./packages/react-material-ui/dist/components/DatePickerField/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{defaultValue,wait=500,onDebouncedSearchChange}=_a,props=__rest(_a,["defaultValue","wait","onDebouncedSearchChange"]);const firstRender=(0,react_1.useRef)(!0),[search,setSearch]=(0,react_1.useState)(null),handleDebouncedSearch=(0,react_1.useMemo)((()=>(0,debounce_1.default)(onDebouncedSearchChange,wait)),[wait,null==props?void 0:props.value]);return(0,react_1.useEffect)((()=>{var _a;firstRender.current?firstRender.current=!1:handleDebouncedSearch(null!==(_a=null==props?void 0:props.value)&&void 0!==_a?_a:search)}),[search,props.value]),react_1.default.createElement(x_date_pickers_1.DatePicker,Object.assign({defaultValue,value:search,onChange:value=>setSearch(value),format:"MM-dd-yyyy",slotProps:{field:{clearable:!0,onClear:()=>{handleDebouncedSearch(null)}},textField:{size:"small"}}},props))}},"./packages/react-material-ui/dist/components/Dialog/Dialog.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Dialog=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),styles_1=__webpack_require__("./node_modules/@mui/material/styles/index.js"),useMediaQuery_1=__importDefault(__webpack_require__("./node_modules/@mui/material/useMediaQuery/index.js")),DialogContent_1=__importDefault(__webpack_require__("./node_modules/@mui/material/DialogContent/index.js")),DialogActions_1=__importDefault(__webpack_require__("./node_modules/@mui/material/DialogActions/index.js")),Styles_1=__webpack_require__("./packages/react-material-ui/dist/components/Dialog/Styles.js");exports.Dialog=props=>{const{open,handleClose,title,children,footer,dividers=!1}=props,theme=(0,styles_1.useTheme)(),fullScreen=(null==props?void 0:props.fullScreen)||(0,useMediaQuery_1.default)(theme.breakpoints.down("sm"));return react_1.default.createElement(Styles_1.CustomDialog,Object.assign({},props,{onClose:handleClose,open,fullScreen,title:null}),title&&react_1.default.createElement(Styles_1.CustomDialogTitle,{onClose:handleClose},title),children&&react_1.default.createElement(DialogContent_1.default,{dividers},children),footer&&react_1.default.createElement(DialogActions_1.default,null,footer))}},"./packages/react-material-ui/dist/components/Dialog/Styles.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i"handleClose"!==propName})((({theme})=>({"& .MuiDialogContent-root":{minWidth:300,padding:theme.spacing(2)},"& .MuiDialogActions-root":{padding:theme.spacing(1)}})));exports.CustomDialog=CustomDialog;exports.CustomDialogTitle=props=>{const{children,onClose}=props,other=__rest(props,["children","onClose"]);return react_1.default.createElement(DialogTitle_1.default,Object.assign({sx:{m:0,p:2}},other),children,onClose?react_1.default.createElement(IconButton_1.default,{"aria-label":"close",onClick:onClose,sx:{position:"absolute",right:8,top:8,color:theme=>theme.palette.grey[500]}},react_1.default.createElement(Close_1.default,null)):null)}},"./packages/react-material-ui/dist/components/Dialog/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Dialog=void 0;var Dialog_1=__webpack_require__("./packages/react-material-ui/dist/components/Dialog/Dialog.js");Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return Dialog_1.Dialog}})},"./packages/react-material-ui/dist/components/Drawer/Drawer.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Drawer=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),styles_1=__webpack_require__("./node_modules/@mui/material/styles/index.js"),Styles_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/Styles.js"),Toolbar_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Toolbar/index.js")),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),ChevronLeft_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/ChevronLeft.js")),ChevronRight_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/ChevronRight.js")),DrawerItem_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/DrawerItem.js"),Image_1=__webpack_require__("./packages/react-material-ui/dist/components/Image/index.js"),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js"));exports.Drawer=props=>{const{items,currentId,logo,customToggle,mobileIsOpen,onMobileClose,textProps,sx,buttonSx,horizontal,collapsible=!0,collapsibleIcon,collapsibleIconColor,collapsibleIconBgColor,collapsed=!1,onCollapsedChange,backgroundColor,iconColor,activeIconColor,collapsedWidth,expandedWidth}=props,[_collapsed,_setCollapsed]=(0,react_1.useState)(collapsed);(0,react_1.useEffect)((()=>{_setCollapsed(collapsed)}),[collapsed]);const toggleDrawer=()=>{const newCollapsedValue=!_collapsed;_setCollapsed(newCollapsedValue),null==onCollapsedChange||onCollapsedChange(newCollapsedValue)},renderLogo=(0,react_1.useCallback)((()=>"string"==typeof logo?react_1.default.createElement(Image_1.Image,{src:logo,alt:"Logo"}):"function"==typeof logo?logo(_collapsed):logo),[logo,_collapsed]),drawerContent=(0,react_1.useCallback)((hideToggle=>react_1.default.createElement(Box_1.default,{display:"flex",flexDirection:"column",sx,flex:1},react_1.default.createElement(Toolbar_1.default,{sx:{display:"flex",alignItems:"center",justifyContent:horizontal?"start":"center",p:"20px 16px 17px !important"}},renderLogo()),null==items?void 0:items.map(((item,i)=>{const isActive=!!currentId&¤tId.startsWith(item.id);return item.component?react_1.default.createElement(Box_1.default,{onClick:item.onClick,className:isActive?"active":""},"function"==typeof item.component?item.component(!!currentId&¤tId.startsWith(item.id),_collapsed):item.component):react_1.default.createElement(DrawerItem_1.DrawerItem,Object.assign({key:item.id||i},item,{collapsed:!mobileIsOpen&&_collapsed,active:isActive,textProps,sx:[buttonSx,...Array.isArray(sx)?sx:[sx]],horizontal:item.horizontal||horizontal,iconColor,activeIconColor,temporary:hideToggle}))})),!hideToggle&&collapsible&&!!customToggle&&customToggle(toggleDrawer,_collapsed),!hideToggle&&collapsible&&!customToggle&&react_1.default.createElement(Toolbar_1.default,{sx:{marginTop:"auto",display:"flex",alignItems:"center",justifyContent:"flex-end",px:[1]}},react_1.default.createElement(IconButton_1.default,{className:"Rockets-CollapsibleButton",onClick:toggleDrawer,sx:Object.assign({color:collapsibleIconColor||"primary.contrastText",backgroundColor:collapsibleIconBgColor||"transparent"},collapsibleIconBgColor&&{"&:hover":{backgroundColor:(0,styles_1.darken)(collapsibleIconBgColor,.1)}})},collapsibleIcon&&"function"==typeof collapsibleIcon&&collapsibleIcon(_collapsed),collapsibleIcon&&"function"!=typeof collapsibleIcon&&collapsibleIcon,!collapsibleIcon&&(_collapsed?react_1.default.createElement(ChevronRight_1.default,null):react_1.default.createElement(ChevronLeft_1.default,null)))))),[_collapsed,mobileIsOpen]);return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(Styles_1.StyledDrawer,{variant:"temporary",className:"Rockets-Drawer Rockets-Drawer-temporary",open:mobileIsOpen,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box"}},horizontal,backgroundColor,collapsedWidth,expandedWidth,onClose:onMobileClose},drawerContent(!0)),react_1.default.createElement(Styles_1.StyledDrawer,{variant:"permanent",className:"Rockets-Drawer Rockets-Drawer-permanent",sx:{display:{xs:"none",sm:"block"},"& .MuiDrawer-paper":{boxSizing:"border-box"}},open:!_collapsed,horizontal,backgroundColor,collapsedWidth,expandedWidth,"data-testid":"drawer"},drawerContent()))}},"./packages/react-material-ui/dist/components/Drawer/DrawerItem.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawerItem=exports.DEFAULT_DRAWER_TEXT_PROPS=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),Styles_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/Styles.js"),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js"));exports.DEFAULT_DRAWER_TEXT_PROPS={fontSize:12,fontWeight:400,color:"common.white"};exports.DrawerItem=props=>{const{id,icon,text,active,collapsed,onClick,textProps=exports.DEFAULT_DRAWER_TEXT_PROPS,sx,horizontal,iconColor,activeIconColor,temporary}=props;return react_1.default.createElement(Styles_1.DrawerButton,{className:"Rockets-DrawerButton "+(active?"active":""),"data-testid":`drawer-item-${id}-${temporary?"temporary":"permanent"}`,active,collapsed,onClick:()=>null==onClick?void 0:onClick(),sx,horizontal,iconColor,activeIconColor},"function"==typeof icon?icon(!!active):icon,text&&horizontal&&react_1.default.createElement(material_1.Box,{display:"flex",alignItems:"center"},react_1.default.createElement(Text_1.default,Object.assign({position:"absolute"},textProps),text)),text&&!horizontal&&react_1.default.createElement(Text_1.default,{sx:Object.assign({position:"absolute",bottom:0},textProps)},text))}},"./packages/react-material-ui/dist/components/Drawer/Styles.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawerButton=exports.StyledDrawer=void 0;const Drawer_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Drawer/index.js")),Button_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Button/index.js")),styles_1=__webpack_require__("./node_modules/@mui/material/styles/index.js"),material_1=__webpack_require__("./node_modules/@mui/material/index.js");exports.StyledDrawer=(0,styles_1.styled)(Drawer_1.default,{shouldForwardProp:prop=>!["backgroundColor","collapsedWidth","expandedWidth"].some((propName=>propName===prop))})((({theme,open,sx,horizontal,backgroundColor,collapsedWidth,expandedWidth})=>[{"& .MuiDrawer-paper":Object.assign({backgroundColor:backgroundColor||theme.palette.primary.dark,position:"relative",whiteSpace:"nowrap",width:expandedWidth||(horizontal?256:120),transition:theme.transitions.create("width",{easing:theme.transitions.easing.sharp,duration:theme.transitions.duration.enteringScreen}),boxSizing:"border-box"},!open&&{overflowX:"hidden",transition:theme.transitions.create("width",{easing:theme.transitions.easing.sharp,duration:theme.transitions.duration.leavingScreen}),width:collapsedWidth||theme.spacing(7),[theme.breakpoints.up("sm")]:{width:collapsedWidth||theme.spacing(9)}})},...Array.isArray(sx)?sx:[sx]])),exports.DrawerButton=(0,styles_1.styled)(Button_1.default,{shouldForwardProp:prop=>!["active","collapsed","iconColor","activeIconColor"].some((propName=>propName===prop))})((({theme,active,collapsed,sx,horizontal,iconColor,activeIconColor})=>{let _iconColor=iconColor||(0,material_1.alpha)(theme.palette.common.white,.65);active&&(_iconColor=activeIconColor||theme.palette.common.white);return[{color:active?theme.palette.common.white:(0,material_1.alpha)(theme.palette.common.white,.85),display:"flex",flexDirection:horizontal?"row":"column",justifyContent:"start",alignItems:"center",whiteSpace:horizontal?"nowrap":"break-spaces",margin:"2px 8px",paddingX:"8px",paddingTop:"8px",paddingBottom:horizontal?"8px":collapsed?"6px":"18px",minWidth:0,overflow:"hidden",textTransform:"none",textAlign:"left",maxHeight:collapsed?"40px":"85px",transition:"max-height 300ms, padding-bottom 300ms",backgroundColor:active?(0,material_1.alpha)(theme.palette.common.black,.2):"transparent","&:hover":{backgroundColor:(0,material_1.alpha)(theme.palette.common.black,.2)},"& svg":{color:_iconColor,marginRight:!collapsed&&horizontal?12:0,marginBottom:collapsed||horizontal?0:6,transform:`translateX(${collapsed&&horizontal?"8px":0})`,transition:"all 300ms"},"& p":{opacity:collapsed?0:1,transition:"opacity 300ms"}},...Array.isArray(sx)?sx:[sx]]}))},"./packages/react-material-ui/dist/components/Drawer/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DEFAULT_DRAWER_TEXT_PROPS=exports.Drawer=void 0;var Drawer_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/Drawer.js");Object.defineProperty(exports,"Drawer",{enumerable:!0,get:function(){return Drawer_1.Drawer}});var DrawerItem_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/DrawerItem.js");Object.defineProperty(exports,"DEFAULT_DRAWER_TEXT_PROPS",{enumerable:!0,get:function(){return DrawerItem_1.DEFAULT_DRAWER_TEXT_PROPS}})},"./packages/react-material-ui/dist/components/Dropdown/Dropdown.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Dropdown=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),Menu_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Menu/index.js")),Fade_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Fade/index.js")),Tooltip_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Tooltip/index.js")),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),MoreHoriz_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/MoreHoriz.js")),MoreVert_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/MoreVert.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Styles_1=__webpack_require__("./packages/react-material-ui/dist/components/Dropdown/Styles.js"),MenuItem_1=__importDefault(__webpack_require__("./node_modules/@mui/material/MenuItem/index.js")),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js"));exports.Dropdown=({options,toggleDirection="horizontal",textProps={fontSize:16,fontWeight:400,color:"text.primary"}})=>{const[anchorEl,setAnchorEl]=(0,react_1.useState)(null),open=Boolean(anchorEl),handleClose=()=>{setAnchorEl(null)},handleCustomItemClick=item=>()=>{var _a;null===(_a=item.onClick)||void 0===_a||_a.call(item),handleClose()},renderOptions=(0,react_1.useMemo)((()=>{if(Array.isArray(options))return react_1.default.createElement(Box_1.default,{display:"flex",flexDirection:"column",sx:{p:0,m:0}},options.map((item=>{const{key,icon,iconPosition="left",text}=item,isLeftSide="left"===iconPosition;return react_1.default.createElement(MenuItem_1.default,{key,onClick:handleCustomItemClick(item)},react_1.default.createElement(Box_1.default,{display:"flex",flexDirection:"left"===iconPosition?"row":"row-reverse"},icon&&react_1.default.createElement(Styles_1.IconContainer,{isLeftSide},icon),react_1.default.createElement(Text_1.default,Object.assign({},textProps),text)))})))}),[options]);return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(Tooltip_1.default,{title:"Options"},react_1.default.createElement(IconButton_1.default,{"aria-controls":open?"fade-menu":void 0,"aria-haspopup":"true","aria-expanded":open?"true":void 0,onClick:event=>{options&&setAnchorEl(event.currentTarget)},"data-testid":"toggle-button"},"horizontal"===toggleDirection?react_1.default.createElement(MoreHoriz_1.default,{"data-testid":"toggle-icon"}):react_1.default.createElement(MoreVert_1.default,{"data-testid":"toggle-icon"}))),react_1.default.createElement(Menu_1.default,{id:"fade-menu",MenuListProps:{"aria-labelledby":"fade-button"},anchorEl,open,onClose:handleClose,TransitionComponent:Fade_1.default},renderOptions))}},"./packages/react-material-ui/dist/components/Dropdown/Styles.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.IconContainer=void 0;const Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),styles_1=__webpack_require__("./node_modules/@mui/material/styles/index.js");exports.IconContainer=(0,styles_1.styled)(Box_1.default,{shouldForwardProp:propName=>"isLeftSide"!==propName})((({isLeftSide})=>({display:"flex",marginRight:isLeftSide?"8px":"-4px",marginLeft:isLeftSide?"-4px":"8px"})))},"./packages/react-material-ui/dist/components/Dropdown/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Dropdown=void 0;var Dropdown_1=__webpack_require__("./packages/react-material-ui/dist/components/Dropdown/Dropdown.js");Object.defineProperty(exports,"Dropdown",{enumerable:!0,get:function(){return Dropdown_1.Dropdown}})},"./packages/react-material-ui/dist/components/Filter/Filter.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{filters,minimumFilters=0,hasAllOption}=props,rest=__rest(props,["filters","minimumFilters","hasAllOption"]),resetFilters=item=>()=>{item&&(null==item?void 0:item.onDebouncedSearchChange)&&item.onDebouncedSearchChange(null),item&&(null==item?void 0:item.onChange)&&item.onChange(null)},[filterOrder,setFilterOrder]=(0,react_1.useState)(filters.map((filter=>{var _a;return{id:filter.id,label:filter.label,hide:null!==(_a=filter.hide)&&void 0!==_a&&_a,resetFilters:resetFilters(filter)}})));return react_1.default.createElement(Box_1.default,{display:"flex",width:"100%",alignItems:"flex-start",justifyContent:"space-between",gap:2,sx:{flexDirection:{xs:"column",md:"row"}}},react_1.default.createElement(Grid_1.default,Object.assign({container:!0,spacing:2},rest),filterOrder.map((filter=>{const filterIndex=filters.findIndex((f=>f.id===filter.id));if(-1===filterIndex)return null;const currentFilter=filters[filterIndex];return filter.hide?null:react_1.default.createElement(Grid_1.default,{key:`filter-${filter.id}`,item:!0,xs:12,md:currentFilter.columns||12},(filter=>{var _a,_b,_c,_d;switch(filter.type){case"autocomplete":return react_1.default.createElement(AutocompleteField_1.default,{fullWidth:!0,size:null!==(_a=filter.size)&&void 0!==_a?_a:"small",options:filter.options,isLoading:filter.isLoading,onChange:filter.onChange,value:filter.value,defaultValue:null!==(_b=filter.defaultValue)&&void 0!==_b?_b:SelectField_2.allOption,label:filter.label,resource:filter.resource,resourceLabel:filter.resourceLabel,resourceValue:filter.resourceValue});case"date":return react_1.default.createElement(DatePickerField_1.default,{sx:{width:"100%"},label:filter.label,value:filter.value,onChange:filter.onChange,onDebouncedSearchChange:filter.onDebouncedSearchChange,minDate:filter.minDate,maxDate:filter.maxDate});case"select":return react_1.default.createElement(SelectField_1.SelectField,{fullWidth:!0,multiple:filter.multiple,size:null!==(_c=filter.size)&&void 0!==_c?_c:"small",label:filter.label,isLoading:filter.isLoading,options:filter.options,defaultValue:filter.defaultValue||"",onChange:filter.onChange,value:filter.value,variant:"outlined"});case"text":return react_1.default.createElement(SearchField_1.default,{fullWidth:!0,helperText:filter.helperText,placeholder:filter.placeholder,size:null!==(_d=filter.size)&&void 0!==_d?_d:"small",defaultValue:filter.defaultValue,label:filter.label,value:filter.value,onChange:e=>{var _a;return null===(_a=filter.onChange)||void 0===_a?void 0:_a.call(filter,e.target.value)},onDebouncedSearchChange:filter.onDebouncedSearchChange?value=>{var _a;return null===(_a=filter.onDebouncedSearchChange)||void 0===_a?void 0:_a.call(filter,value)}:void 0,searchIconPlacement:filter.searchIconPlacement});default:return react_1.default.createElement(react_1.default.Fragment,null)}})(currentFilter))})),props.additionalGridItems?props.additionalGridItems.map(((node,index)=>react_1.default.createElement(Grid_1.default,{key:`filter-complementary-${index}`,item:!0,xs:12,md:node.columns||12},"function"==typeof node.component?node.component(filterOrder):node.component))):null),react_1.default.createElement(Box_1.default,{display:"flex",alignItems:"center",sx:{width:{xs:"100%",md:"auto"},justifyContent:{xs:"end",md:"unset"},gap:{xs:4,md:2}}},filters.length?react_1.default.createElement(OrderableDropDown_1.OrderableDropDown,{hasAllOption,minimumItems:minimumFilters,icon:react_1.default.createElement(FilterAlt_1.default,null),list:filterOrder,setList:setFilterOrder,storage:{type:"filter",key:props.orderableListCacheKey,cacheApiPath:props.cacheApiPath,onListUpdateFromCache:cacheList=>{const newItems=cacheList.map((item=>{const filterItemIndex=filters.findIndex((filter=>filter.id===item.id)),filterItem=filters[filterItemIndex];return Object.assign(Object.assign(Object.assign({},item),filterItem),{resetFilters:resetFilters(filterItem)})}));setFilterOrder(newItems)}}}):null,"function"==typeof props.complementaryActions?props.complementaryActions(filterOrder):props.complementaryActions))}},"./packages/react-material-ui/dist/components/Filter/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Filter=void 0;var Filter_1=__webpack_require__("./packages/react-material-ui/dist/components/Filter/Filter.js");Object.defineProperty(exports,"Filter",{enumerable:!0,get:function(){return Filter_1.Filter}})},"./packages/react-material-ui/dist/components/FormFieldSkeleton/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormFieldSkeleton=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js");exports.FormFieldSkeleton=({isLoading=!0,children,hideLabel})=>{const theme=(0,material_1.useTheme)();return isLoading?react_1.default.createElement(material_1.Box,{width:"100%"},!hideLabel&&react_1.default.createElement(material_1.Skeleton,{variant:"text",width:80,sx:{fontSize:theme.typography.body1.fontSize},"data-testid":"form-field-skeleton-label"}),react_1.default.createElement(material_1.Skeleton,{variant:"rounded",height:42,width:"100%","data-testid":"form-field-skeleton-input"},children)):react_1.default.createElement(react_1.default.Fragment,null,children)}},"./packages/react-material-ui/dist/components/FormLabel/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormLabel=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),TEXT_INITIAL_PROPS={fontSize:14,fontWeight:500,color:"text.primary"};exports.FormLabel=props=>{const{id,name,labelProps,label,required}=props;return react_1.default.createElement(material_1.FormLabel,{id,htmlFor:name,sx:{width:"100%"}},react_1.default.createElement(Text_1.default,Object.assign({textAlign:"left"},TEXT_INITIAL_PROPS,labelProps),label&&`${label}${required?" *":""}`))},exports.default=exports.FormLabel},"./packages/react-material-ui/dist/components/FormTemplate/FormTemplate.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormTemplate=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js");exports.FormTemplate=({title,subtitle,icon,children,titleTextProps,containerProps,subtitleTextProps,cardProps})=>react_1.default.createElement(material_1.Container,Object.assign({maxWidth:"xs"},containerProps,{sx:[{textAlign:"center",padding:"48px 0"},...Array.isArray(null==containerProps?void 0:containerProps.sx)?containerProps.sx:[null==containerProps?void 0:containerProps.sx]]}),icon&&icon,title&&react_1.default.createElement(Text_1.default,Object.assign({fontFamily:"Inter",fontSize:30,fontWeight:800,mt:1,gutterBottom:!0},titleTextProps),title),subtitle&&react_1.default.createElement(Text_1.default,Object.assign({fontSize:14,fontWeight:500},subtitleTextProps),subtitle),react_1.default.createElement(material_1.Card,Object.assign({},cardProps,{sx:[{marginTop:"26px",padding:"24px 24px 24px 24px",display:"flex",flexDirection:"column",justifyContent:"center"},...Array.isArray(null==cardProps?void 0:cardProps.sx)?cardProps.sx:[null==cardProps?void 0:cardProps.sx]]}),children))},"./packages/react-material-ui/dist/components/FormTemplate/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormTemplate=void 0;var FormTemplate_1=__webpack_require__("./packages/react-material-ui/dist/components/FormTemplate/FormTemplate.js");Object.defineProperty(exports,"FormTemplate",{enumerable:!0,get:function(){return FormTemplate_1.FormTemplate}})},"./packages/react-material-ui/dist/components/HeaderAccount/HeaderAccount.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.HeaderAccount=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),Avatar_1=__webpack_require__("./packages/react-material-ui/dist/components/Avatar/index.js"),ExpandMore_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/ExpandMore.js")),Button_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Button/index.js")),Menu_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Menu/index.js"));exports.HeaderAccount=({avatar,avatarSize=36,text,subText,onClick,textProps={fontSize:14,fontWeight:500,color:"text.primary"},subTextProps={fontSize:12,lineHeight:"10px",fontWeight:500,color:"text.secondary"},iconColor="text.primary",menuOptions})=>{const[anchorEl,setAnchorEl]=(0,react_1.useState)(null),open=Boolean(anchorEl),handleClose=()=>{setAnchorEl(null)};return react_1.default.createElement(Box_1.default,{display:"flex"},react_1.default.createElement(Button_1.default,{variant:"text","aria-label":"open navbar menu","aria-controls":open?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":open?"true":void 0,onClick:onClick||(event=>{setAnchorEl(event.currentTarget)}),sx:{textTransform:"none",textAlign:"left"}},avatar&&react_1.default.createElement(Avatar_1.Avatar,{src:avatar,alt:"Avatar",size:avatarSize}),react_1.default.createElement(Box_1.default,{display:"flex",flexDirection:"column",ml:avatar?1:0},react_1.default.createElement(Box_1.default,{display:"flex"},react_1.default.createElement(Text_1.default,Object.assign({},textProps),text)," ",react_1.default.createElement(ExpandMore_1.default,{sx:{display:"inline",color:iconColor}})),react_1.default.createElement(Text_1.default,Object.assign({},subTextProps),subText))),menuOptions&&react_1.default.createElement(Menu_1.default,{id:"basic-menu",anchorEl,open,onClose:handleClose,MenuListProps:{"aria-labelledby":"basic-button"}},menuOptions(handleClose)))}},"./packages/react-material-ui/dist/components/HeaderAccount/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HeaderAccount=void 0;var HeaderAccount_1=__webpack_require__("./packages/react-material-ui/dist/components/HeaderAccount/HeaderAccount.js");Object.defineProperty(exports,"HeaderAccount",{enumerable:!0,get:function(){return HeaderAccount_1.HeaderAccount}})},"./packages/react-material-ui/dist/components/Image/Image.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{imgFluid,defaultImage,onLoad,onError,sx}=props,otherProps=__rest(props,["imgFluid","defaultImage","onLoad","onError","sx"]);return react_1.default.createElement(material_1.Box,Object.assign({component:"img"},otherProps,{sx:[...imgFluid?[{width:"100%",height:"auto"}]:[],...Array.isArray(sx)?sx:[sx]],onLoad:event=>{null==onLoad||onLoad(event)},onError:event=>{null==onError||onError(event),defaultImage&&(event.currentTarget.src=defaultImage)}}))}},"./packages/react-material-ui/dist/components/Image/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Image=void 0;var Image_1=__webpack_require__("./packages/react-material-ui/dist/components/Image/Image.js");Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return Image_1.Image}})},"./packages/react-material-ui/dist/components/Link/Link.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Link_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Link/index.js"));exports.Link=props=>{const{children,color="primary.dark",sx}=props;return react_1.default.createElement(Link_1.default,Object.assign({color},props,{sx:[{textDecoration:"none"},...Array.isArray(sx)?sx:[sx]]}),children)}},"./packages/react-material-ui/dist/components/Link/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;var Link_1=__webpack_require__("./packages/react-material-ui/dist/components/Link/Link.js");Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return Link_1.Link}})},"./packages/react-material-ui/dist/components/Navbar/Navbar.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Navbar=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),Menu_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/Menu.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Notifications_1=__webpack_require__("./packages/react-material-ui/dist/components/Notifications/index.js"),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),HeaderAccount_1=__webpack_require__("./packages/react-material-ui/dist/components/HeaderAccount/index.js");exports.Navbar=({drawerToggle,showNotifications,notificationsNumber,notificationsOnClick,avatar,text,subText,headerMenuOptions,sx})=>react_1.default.createElement(Box_1.default,{"data-testid":"navbarContainer",sx:[theme=>Object.assign(Object.assign({position:"relative",padding:"12px 24px"},"light"===theme.palette.mode&&{backgroundColor:theme.palette.common.white}),{"&:after":{content:'""',display:"block",position:"absolute",bottom:"0",height:"1px",background:"#e5e7eb",left:"40px",right:"40px"}}),...Array.isArray(sx)?sx:[sx]]},react_1.default.createElement(Box_1.default,{display:"flex"},drawerToggle&&react_1.default.createElement(Text_1.default,{color:"text.primary"},react_1.default.createElement(IconButton_1.default,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:drawerToggle,sx:{mr:2,display:{sm:"none"}}},react_1.default.createElement(Menu_1.default,null))),react_1.default.createElement(Box_1.default,{display:"flex",flex:1,justifyContent:"flex-end"},showNotifications&¬ificationsNumber&&react_1.default.createElement(Notifications_1.Notifications,{amount:notificationsNumber,onClick:notificationsOnClick}),react_1.default.createElement(HeaderAccount_1.HeaderAccount,{avatar,text,subText,menuOptions:headerMenuOptions}))))},"./packages/react-material-ui/dist/components/Navbar/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Navbar=void 0;var Navbar_1=__webpack_require__("./packages/react-material-ui/dist/components/Navbar/Navbar.js");Object.defineProperty(exports,"Navbar",{enumerable:!0,get:function(){return Navbar_1.Navbar}})},"./packages/react-material-ui/dist/components/Notifications/Notifications.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Notifications=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),NotificationsOutlined_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/NotificationsOutlined.js")),Badge_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Badge/index.js"));exports.Notifications=({amount,onClick})=>react_1.default.createElement(IconButton_1.default,{sx:{color:"text.secondary"},onClick},react_1.default.createElement(Badge_1.default,{badgeContent:amount,color:"error","data-testid":"badge"},react_1.default.createElement(NotificationsOutlined_1.default,null)))},"./packages/react-material-ui/dist/components/Notifications/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Notifications=void 0;var Notifications_1=__webpack_require__("./packages/react-material-ui/dist/components/Notifications/Notifications.js");Object.defineProperty(exports,"Notifications",{enumerable:!0,get:function(){return Notifications_1.Notifications}})},"./packages/react-material-ui/dist/components/OrderableDropDown/OrderableDropDown.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.OrderableDropDown=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),ListItem_1=__importDefault(__webpack_require__("./node_modules/@mui/material/ListItem/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),core_1=__webpack_require__("./node_modules/@dnd-kit/core/dist/core.esm.js"),sortable_1=__webpack_require__("./node_modules/@dnd-kit/sortable/dist/sortable.esm.js"),utilities_1=__webpack_require__("./node_modules/@dnd-kit/utilities/dist/utilities.esm.js"),DragIndicator_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/DragIndicator.js")),SettingsSuggest_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/SettingsSuggest.js")),useSettingsStorage_1=__webpack_require__("./packages/react-material-ui/dist/hooks/useSettingsStorage.js"),SortableItem=props=>{const{id,checked,label,labelId,indeterminate,isHeader=!1,handleToggle,disabled=!1}=props,{attributes,listeners,setNodeRef,transform,transition}=(0,sortable_1.useSortable)({id}),style={transform:utilities_1.CSS.Transform.toString(transform),transition};return react_1.default.createElement("div",Object.assign({ref:setNodeRef,style},attributes,{"data-testid":"orderable-item"}),react_1.default.createElement(ListItem_1.default,{sx:{borderBottom:isHeader?"1px solid":void 0,borderColor:theme=>isHeader?theme.palette.divider:void 0,paddingLeft:isHeader?5:void 0},key:id,secondaryAction:react_1.default.createElement(material_1.Checkbox,{edge:"end",onChange:()=>handleToggle(id),disabled,checked,inputProps:{"aria-labelledby":labelId},indeterminate}),disablePadding:!0},react_1.default.createElement(material_1.ListItemButton,{disabled,sx:{pointerEvents:isHeader?"none":void 0,columnGap:2}},!isHeader&&react_1.default.createElement(material_1.ListItemAvatar,{sx:{display:"flex",minWidth:"auto"}},react_1.default.createElement(DragIndicator_1.default,Object.assign({},listeners))),react_1.default.createElement(material_1.ListItemText,{id:labelId,primary:label}))))};exports.OrderableDropDown=({list,setList,minimumItems=0,hasAllOption=!1,icon=react_1.default.createElement(SettingsSuggest_1.default,null),text,storage})=>{const{updateSettings}=(0,useSettingsStorage_1.useSettingsStorage)({key:null==storage?void 0:storage.key,type:null==storage?void 0:storage.type,data:list.map((item=>({id:item.id,label:item.label,hide:Boolean(item.hide)}))),cacheApiPath:null==storage?void 0:storage.cacheApiPath,setListCallback:callbackData=>null==storage?void 0:storage.onListUpdateFromCache(callbackData)}),sensors=(0,core_1.useSensors)((0,core_1.useSensor)(core_1.MouseSensor,{activationConstraint:{delay:0,tolerance:5}}),(0,core_1.useSensor)(core_1.TouchSensor,{activationConstraint:{delay:0,tolerance:5}}),(0,core_1.useSensor)(core_1.KeyboardSensor,{coordinateGetter:sortable_1.sortableKeyboardCoordinates})),[anchorEl,setAnchorEl]=(0,react_1.useState)(null),open=Boolean(anchorEl),[checked,setChecked]=(0,react_1.useState)(list.filter((listItem=>!listItem.hide)).map((li=>li.id))),handleToggle=value=>{const currentIndex=checked.indexOf(value),newChecked=[...checked];-1===currentIndex?newChecked.push(value):newChecked.splice(currentIndex,1),setList((prevState=>{const newItems=prevState.map((listItem=>{const isHidden=!newChecked.includes(listItem.id);return isHidden&&listItem.resetFilters&&listItem.resetFilters(),Object.assign(Object.assign({},listItem),{hide:isHidden})}));return updateSettings(newItems),newItems})),setChecked(newChecked)};return(0,react_1.useEffect)((()=>{setChecked(list.filter((listItem=>!listItem.hide)).map((li=>li.id)))}),[list]),react_1.default.createElement(material_1.Box,null,text?react_1.default.createElement(material_1.Button,{onClick:event=>{setAnchorEl(event.currentTarget)},startIcon:icon,variant:"outlined",sx:{textTransform:"capitalize",color:"#374151",borderColor:"#374151",textWrap:"nowrap"}},text):react_1.default.createElement(material_1.IconButton,{onClick:event=>{setAnchorEl(event.currentTarget)}},icon),react_1.default.createElement(material_1.Menu,{open,anchorEl,onClose:()=>setAnchorEl(null)},react_1.default.createElement(core_1.DndContext,{sensors,collisionDetection:core_1.closestCenter,onDragEnd:event=>{const{active,over}=event;if(active.id!==(null==over?void 0:over.id)){const oldIndex=list.findIndex((item=>item.id===active.id)),newIndex=list.findIndex((item=>item.id===(null==over?void 0:over.id))),newItems=(0,sortable_1.arrayMove)(list,oldIndex,newIndex);updateSettings(newItems),setList(newItems)}}},react_1.default.createElement(sortable_1.SortableContext,{items:list,strategy:sortable_1.verticalListSortingStrategy},hasAllOption&&react_1.default.createElement(SortableItem,{id:"all",checked:list.length===checked.length,indeterminate:checked.length&&list.length!==checked.length,label:"Select all",isHeader:!0,handleToggle:value=>{if("all"===value)return checked.length?void(checked.length===list.length?(setList((prevState=>{const newItems=prevState.map((item=>Object.assign(Object.assign({},item),{hide:!0})));return updateSettings(newItems),newItems})),setChecked([])):(setChecked((prevState=>{const newState=[...prevState];return list.forEach((item=>{prevState.includes(item.id)||newState.push(item.id)})),newState})),setList((prevState=>{const newItems=prevState.map((item=>Object.assign(Object.assign({},item),{hide:!1})));return updateSettings(newItems),newItems})))):(setChecked(list.map((item=>item.id))),void setList((prevState=>{const newItems=prevState.map((item=>Object.assign(Object.assign({},item),{hide:!1})));return updateSettings(newItems),newItems})))},labelId:"all"}),null==list?void 0:list.map((listItem=>{if(!listItem.label)return null;const labelId=`checkbox-list-secondary-label-${listItem.id}`;return react_1.default.createElement(SortableItem,{disabled:minimumItems===list.filter((item=>!item.hide)).length&&!listItem.hide,key:listItem.id,id:listItem.id,checked:-1!==checked.indexOf(listItem.id),label:listItem.label,handleToggle,labelId})}))))))}},"./packages/react-material-ui/dist/components/OrderableDropDown/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.OrderableDropDown=void 0;var OrderableDropDown_1=__webpack_require__("./packages/react-material-ui/dist/components/OrderableDropDown/OrderableDropDown.js");Object.defineProperty(exports,"OrderableDropDown",{enumerable:!0,get:function(){return OrderableDropDown_1.OrderableDropDown}})},"./packages/react-material-ui/dist/components/OtpInput/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{value="",length=4,autoFocus=!1,textFieldProps,name,label,labelProps,className,onComplete,onChange,onBlur}=_a,restBoxProps=__rest(_a,["value","length","autoFocus","textFieldProps","name","label","labelProps","className","onComplete","onChange","onBlur"]);const checkCompletion=inputValue=>inputValue.slice(0,length).length===length,inputData=Array.from({length},((_,index)=>{var _a;return{character:null!==(_a=value[index])&&void 0!==_a?_a:"",inputRef:react_1.default.createRef()}})),updateValue=(index,char)=>value.slice(0,index)+char+value.slice(index+1),focusInput=index=>{var _a,_b;index{const _a="function"==typeof textFieldProps?textFieldProps(index)||{}:textFieldProps||{},{onPaste,onFocus,onKeyDown,className,onBlur:textFieldBlur,error,name}=_a,restTextFieldProps=__rest(_a,["onPaste","onFocus","onKeyDown","className","onBlur","error","name"]);return react_1.default.createElement(TextField_1.TextField,Object.assign({id:0===index?`${name}-${index}`:void 0,key:`otp-input-${index}`,autoFocus:autoFocus&&0===index,autoComplete:"one-time-code",value:character,error,inputRef,inputProps:{sx:{textAlign:"center"}},InputProps:{sx:{caretColor:"transparent",".MuiInputBase-input::selection":{backgroundColor:"transparent"}}},className,onPaste:event=>{event.preventDefault(),((event,index)=>{const pastedData=event.clipboardData.getData("text/plain"),newValue=pastedData.length<=length-index?value.slice(0,index)+pastedData+value.slice(index+pastedData.length,length):value;null==onChange||onChange(newValue),checkCompletion(newValue)?(null==onComplete||onComplete(newValue),focusInput(length-1)):focusInput(newValue.length)})(event,index),null==onPaste||onPaste(event)},onFocus:event=>{event.preventDefault(),event.target.select(),null==onFocus||onFocus(event)},onChange:event=>((event,index)=>{var _a;if(0===index&&event.target.value.length>1){const inputComplete=checkCompletion(event.target.value);return null==onChange||onChange(event.target.value),inputComplete&&(null==onComplete||onComplete(event.target.value)),void focusInput(event.target.value.length-1)}const char=null!==(_a=event.target.value[0])&&void 0!==_a?_a:"";if(char&&!NUMBER_REGEX.test(char))return;const newValue=updateValue(index,char);null==onChange||onChange(newValue),""!==char&&NUMBER_REGEX.test(char)?focusInput(newValue.length-1{((event,index)=>{const inputElement=event.target,caretAtStart=0===inputElement.selectionStart&&0===inputElement.selectionEnd;if(inputElement.value===event.key)event.preventDefault(),focusInput(index+1);else if(event.key===exports.KEYBOARD_KEYS.BACKSPACE)if(inputElement.value){if(caretAtStart){event.preventDefault();const newValue=updateValue(index,"");null==onChange||onChange(newValue),newValue.length<=index&&focusInput(index-1)}}else event.preventDefault(),focusInput(index-1);else event.key===exports.KEYBOARD_KEYS.LEFT?(event.preventDefault(),focusInput(index-1)):event.key===exports.KEYBOARD_KEYS.RIGHT?(event.preventDefault(),focusInput(index+1)):event.key===exports.KEYBOARD_KEYS.HOME?(event.preventDefault(),focusInput(0)):event.key===exports.KEYBOARD_KEYS.END&&(event.preventDefault(),focusInput(length-1))})(event,index),null==onKeyDown||onKeyDown(event)},onBlur:event=>{null==textFieldBlur||textFieldBlur(event),(event=>{if(!inputData.some((({inputRef})=>inputRef.current===event.relatedTarget))){const isComplete=checkCompletion(value);null==onBlur||onBlur(value,isComplete)}})(event)},name:`${name}-${index}`},restTextFieldProps))}))))}));exports.default=OtpInput},"./packages/react-material-ui/dist/components/RadioGroup/RadioGroup.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.RadioGroup=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),FormLabel_1=__webpack_require__("./packages/react-material-ui/dist/components/FormLabel/index.js");exports.RadioGroup=props=>{const{id,name,containerProps,labelProps,options,label,required,row,value,onChange,disabled}=props;return react_1.default.createElement(material_1.Box,Object.assign({},containerProps),react_1.default.createElement(material_1.FormControl,null,label&&react_1.default.createElement(FormLabel_1.FormLabel,{name,label,required,labelProps}),react_1.default.createElement(material_1.RadioGroup,{id,value:`${value}`,row,onChange},options.map(((option,i)=>react_1.default.createElement(material_1.FormControlLabel,{control:react_1.default.createElement(material_1.Radio,{name:`${id}-${i}`,color:"primary",key:i}),label:`${option.label}`,value:`${option.value}`,key:i,disabled:disabled||option.disabled}))))))}},"./packages/react-material-ui/dist/components/RadioGroup/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RadioGroup=void 0;var RadioGroup_1=__webpack_require__("./packages/react-material-ui/dist/components/RadioGroup/RadioGroup.js");Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:function(){return RadioGroup_1.RadioGroup}})},"./packages/react-material-ui/dist/components/RocketsProvider/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),react_data_provider_1=__webpack_require__("./packages/react-data-provider/dist/index.js"),react_auth_provider_1=__webpack_require__("./packages/react-auth-provider/dist/index.js"),styles_1=__webpack_require__("./packages/react-material-ui/dist/styles/index.js"),theme_1=__webpack_require__("./packages/react-material-ui/dist/styles/theme.js"),react_toastify_1=__webpack_require__("./node_modules/react-toastify/dist/react-toastify.js");(0,__webpack_require__("./node_modules/react-toastify/dist/inject-style.js").injectStyle)();exports.default=({children,auth,dataProvider,theme})=>react_1.default.createElement(react_data_provider_1.ClientProvider,{baseUrl:dataProvider.apiUrl,onRefreshTokenError:auth.handleRefreshTokenError},react_1.default.createElement(styles_1.ThemeProvider,{theme:null!=theme?theme:theme_1.themeLight},react_1.default.createElement(react_toastify_1.ToastContainer,{hideProgressBar:!0,position:"top-center",limit:3,autoClose:3e3}),react_1.default.createElement(react_auth_provider_1.AuthProvider,{onSuccess:auth.onAuthSuccess,onError:auth.onAuthError},children)))},"./packages/react-material-ui/dist/components/RocketsProvider/utils.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=config=>config},"./packages/react-material-ui/dist/components/SchemaForm/Button.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Button_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Button/index.js"));exports.default=({children})=>react_1.default.createElement(Button_1.default,{type:"submit",fullWidth:!0,variant:"contained",sx:{mt:3}},children)},"./packages/react-material-ui/dist/components/SchemaForm/SchemaForm.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{uiSchema,schema,formData,advancedProperties,children,advancedPropertiesMapper=mapAdvancedProperties_1.mapAdvancedProperties}=_a,props=__rest(_a,["uiSchema","schema","formData","advancedProperties","children","advancedPropertiesMapper"]);const finalSchema=Object.assign(Object.assign({},schema),{properties:advancedPropertiesMapper(schema,advancedProperties)}),uiSchemaWithButtonTitle=Object.assign(Object.assign(Object.assign({},(0,uiSchemaGenerator_1.uiSchemaGenerator)(finalSchema,advancedProperties)),uiSchema),{"ui:submitButtonOptions":{submitText:props.buttonTitle}}),templatesWithCustomButton={ArrayFieldTemplate:CustomWidgets_1.ArrayFieldTemplate,ObjectFieldTemplate:CustomTemplates_1.ObjectFieldTemplate,ButtonTemplates:{SubmitButton:props.buttonComponent}};return react_1.default.createElement(react_1.Fragment,null,schema&&react_1.default.createElement(Box_1.default,null,react_1.default.createElement(mui_1.default,Object.assign({schema:finalSchema,uiSchema:props.buttonTitle?uiSchemaWithButtonTitle:Object.assign(Object.assign({},(0,uiSchemaGenerator_1.uiSchemaGenerator)(finalSchema,advancedProperties)),uiSchema),formData:(0,mergeFormData_1.mergeFormData)(finalSchema,formData),noHtml5Validate:!0,showErrorList:!1,templates:props.buttonComponent?templatesWithCustomButton:{ArrayFieldTemplate:CustomWidgets_1.ArrayFieldTemplate,ObjectFieldTemplate:CustomTemplates_1.ObjectFieldTemplate},validator:validator_ajv6_1.default},props),children)))},Title:Title_1.default,Button:Button_1.default}},"./packages/react-material-ui/dist/components/SchemaForm/Title.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),react_1=__importDefault(__webpack_require__("./node_modules/react/index.js"));exports.default=({children})=>react_1.default.createElement(Text_1.default,{variant:"h4",fontFamily:"Inter",fontSize:24,fontWeight:800,mt:4,gutterBottom:!0},children)},"./packages/react-material-ui/dist/components/SchemaForm/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SchemaForm=void 0;var SchemaForm_1=__webpack_require__("./packages/react-material-ui/dist/components/SchemaForm/SchemaForm.js");Object.defineProperty(exports,"SchemaForm",{enumerable:!0,get:function(){return SchemaForm_1.SchemaForm}})},"./packages/react-material-ui/dist/components/SchemaForm/utils/mapAdvancedProperties.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapAdvancedProperties=void 0;const mapEnumToSchema_1=__webpack_require__("./packages/react-material-ui/dist/components/SchemaForm/utils/mapEnumToSchema.js"),mapEnumToCheckbox_1=__webpack_require__("./packages/react-material-ui/dist/components/SchemaForm/utils/mapEnumToCheckbox.js"),fieldTypesMap={string:"string",email:"string",password:"string",array:"array",select:"string",radio:"string",checkbox:"boolean",checkboxes:"array",switch:"boolean"};exports.mapAdvancedProperties=(_schema,_advancedProperties)=>{if(!(null==_schema?void 0:_schema.properties)||"object"!=typeof(null==_schema?void 0:_schema.properties))return;const overridenProperties=Object.entries(null==_schema?void 0:_schema.properties).map((([key,value])=>{if("boolean"==typeof value)return[key,value];const advancedProperty=null==_advancedProperties?void 0:_advancedProperties[key],fieldType=advancedProperty&&(null==fieldTypesMap?void 0:fieldTypesMap[null==advancedProperty?void 0:advancedProperty.type]);if(!advancedProperty||!fieldType)return[key,value];let parsedSchemaAdvancedProperty={};return"checkboxes"===advancedProperty.type&&(parsedSchemaAdvancedProperty=Object.assign(Object.assign({},value),{type:fieldType,uniqueItems:!0,items:(0,mapEnumToCheckbox_1.mapEnumToCheckbox)(advancedProperty)})),(null==value?void 0:value.enum)&&["select","radio"].includes(advancedProperty.type)&&(parsedSchemaAdvancedProperty=Object.assign(Object.assign({},value),{oneOf:(0,mapEnumToSchema_1.mapEnumToSchema)(fieldType,value.enum,advancedProperty)})),"array"===advancedProperty.type&&advancedProperty.properties&&(parsedSchemaAdvancedProperty=Object.assign(Object.assign({},value),{type:"object",properties:(0,exports.mapAdvancedProperties)({properties:advancedProperty.properties},advancedProperty.advancedProperties)})),[key,Object.keys(parsedSchemaAdvancedProperty).length>0?parsedSchemaAdvancedProperty:value]}));return Object.fromEntries(overridenProperties)}},"./packages/react-material-ui/dist/components/SchemaForm/utils/mapEnumToCheckbox.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapEnumToCheckbox=void 0;exports.mapEnumToCheckbox=advancedProperty=>{if(!advancedProperty.options)return;const isEnum=advancedProperty.options.every((option=>"string"==typeof option));return Object.assign({type:"string"},isEnum?{enum:advancedProperty.options}:{enum:void 0,oneOf:advancedProperty.options.map((option=>"object"==typeof option&&{const:option.value,title:option.label}))})}},"./packages/react-material-ui/dist/components/SchemaForm/utils/mapEnumToSchema.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapEnumToSchema=void 0;exports.mapEnumToSchema=(type,enumList,advancedProperty)=>enumList.map((enumListItem=>{var _a;const option=null===(_a=null==advancedProperty?void 0:advancedProperty.options)||void 0===_a?void 0:_a.find((option=>"object"==typeof option?option.value===enumListItem:enumListItem===option)),title="object"==typeof option?option.label:option||("string"==typeof enumListItem?enumListItem:"Invalid title"),value="object"==typeof option?option.value:enumListItem;return{type,title,const:value}}))},"./packages/react-material-ui/dist/components/SchemaForm/utils/mapWidgetType.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapWidgetType=void 0;const CustomWidgets_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/index.js");exports.mapWidgetType=(propertyKey,schema,advancedProperties)=>{const widgetTypes={string:CustomWidgets_1.CustomTextFieldWidget,email:CustomWidgets_1.CustomEmailFieldWidget,password:CustomWidgets_1.CustomPasswordFieldWidget,select:CustomWidgets_1.CustomSelectWidget,radio:CustomWidgets_1.CustomRadioWidget,checkbox:CustomWidgets_1.CustomCheckboxWidget,checkboxes:CustomWidgets_1.CustomCheckboxesWidget,switch:CustomWidgets_1.CustomSwitchWidget};return advancedProperties&&propertyKey in advancedProperties?widgetTypes[advancedProperties[propertyKey].type]:void 0}},"./packages/react-material-ui/dist/components/SchemaForm/utils/mergeFormData.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mergeFormData=void 0;exports.mergeFormData=(schema,formData)=>{if((null==schema?void 0:schema.properties)&&"object"==typeof schema.properties){const mergedFormData=Object.assign({},formData);if(Object.keys(null==schema?void 0:schema.properties).map((key=>{const property=(null==schema?void 0:schema.properties)&&schema.properties[key];property&&!0!==property&&void 0!==property.type&&!Array.isArray(property.type)&&["array"].includes(property.type)&&(mergedFormData[key]=(null==mergedFormData?void 0:mergedFormData[key])||[""])})),Object.keys(mergedFormData).length)return mergedFormData}return null}},"./packages/react-material-ui/dist/components/SchemaForm/utils/uiSchemaGenerator.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.uiSchemaGenerator=void 0;const mapWidgetType_1=__webpack_require__("./packages/react-material-ui/dist/components/SchemaForm/utils/mapWidgetType.js");exports.uiSchemaGenerator=(schema,advancedProperties)=>{let uiSchema={};return(null==schema?void 0:schema.properties)&&"object"==typeof schema.properties?(Object.keys(null==schema?void 0:schema.properties).forEach((key=>{const widgetType=(0,mapWidgetType_1.mapWidgetType)(key,schema,advancedProperties);widgetType&&(uiSchema=Object.assign(Object.assign({},uiSchema),{[key]:{"ui:widget":widgetType}}))})),uiSchema):uiSchema}},"./packages/react-material-ui/dist/components/SearchField/SearchField.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);ireact_1.default.createElement(Search_1.default,{sx:{color:"grey.400"}});exports.default=_a=>{var _b,{searchIconPlacement="end",defaultValue="",wait=500,onDebouncedSearchChange,onClear,placeholder="Search",onChange}=_a,props=__rest(_a,["searchIconPlacement","defaultValue","wait","onDebouncedSearchChange","onClear","placeholder","onChange"]);const firstRender=(0,react_1.useRef)(!0),[search,setSearch]=(0,react_1.useState)(defaultValue),value=null!==(_b=props.value)&&void 0!==_b?_b:search,handleDebouncedSearch=onDebouncedSearchChange&&(0,react_1.useMemo)((()=>(0,debounce_1.default)(onDebouncedSearchChange,wait)),[]);(0,react_1.useEffect)((()=>{firstRender.current?firstRender.current=!1:null==handleDebouncedSearch||handleDebouncedSearch(value)}),[value]);return react_1.default.createElement(material_1.TextField,Object.assign({placeholder,variant:"outlined",onChange:event=>{setSearch(event.target.value),null==onChange||onChange(event)},value:search,InputProps:Object.assign(Object.assign({},"start"===searchIconPlacement&&{startAdornment:react_1.default.createElement(material_1.InputAdornment,{position:"start"},react_1.default.createElement(SearchIcon,null))}),{endAdornment:react_1.default.createElement(material_1.InputAdornment,{position:"end"},react_1.default.createElement(material_1.IconButton,{size:"small",sx:{mr:.5,visibility:value?"visible":"hidden"},"aria-label":"clear search",onClick:()=>{if(onClear)return onClear();setSearch(""),null==onChange||onChange({target:{value:""}})}},react_1.default.createElement(Clear_1.default,{fontSize:"small"})),"end"===searchIconPlacement&&react_1.default.createElement(SearchIcon,null))})},props))}},"./packages/react-material-ui/dist/components/SearchField/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const SearchField_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/SearchField/SearchField.js"));exports.default=SearchField_1.default},"./packages/react-material-ui/dist/components/Select/Select.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Select=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),FormLabel_1=__webpack_require__("./packages/react-material-ui/dist/components/FormLabel/index.js");exports.Select=props=>{const{id,label,size,value,containerProps,labelProps,options,onChange,required,disabled,error,helperText,name}=props,labelId=`label-${name}`;return react_1.default.createElement(material_1.Box,Object.assign({},containerProps),react_1.default.createElement(material_1.FormControl,{fullWidth:!0},label&&"string"==typeof label?react_1.default.createElement(FormLabel_1.FormLabel,{id:labelId,name,label,required,labelProps}):label,react_1.default.createElement(material_1.TextField,{id,select:!0,name,value,disabled,size:size||"small",error,helperText,onChange,sx:{marginTop:.5,width:"100%"},hiddenLabel:!0,label:"","aria-labelledby":labelId,"data-testid":"select"},options.map((({value,label},i)=>react_1.default.createElement(material_1.MenuItem,{key:i,value,disabled},label))))))}},"./packages/react-material-ui/dist/components/Select/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Select=void 0;var Select_1=__webpack_require__("./packages/react-material-ui/dist/components/Select/Select.js");Object.defineProperty(exports,"Select",{enumerable:!0,get:function(){return Select_1.Select}})},"./packages/react-material-ui/dist/components/SelectField/SelectField.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{options=[],defaultValue,hasAllOption=!0,isLoading=!1,label,onChange,fullWidth,size,variant="outlined"}=_a,rest=__rest(_a,["options","defaultValue","hasAllOption","isLoading","label","onChange","fullWidth","size","variant"]);const finalOptions=[...hasAllOption?[exports.allOption]:[],...options];return react_1.default.createElement(material_1.Box,null,react_1.default.createElement(FormFieldSkeleton_1.FormFieldSkeleton,{isLoading,hideLabel:!0},react_1.default.createElement(material_1.FormControl,{fullWidth,size},react_1.default.createElement(material_1.InputLabel,{id:"select-label"},label),react_1.default.createElement(material_1.Select,Object.assign({labelId:"select-label",defaultValue:null!=defaultValue?defaultValue:hasAllOption&&exports.allOption.value,onChange:event=>{const value=event.target.value;onChange((value=>value===exports.allOption.value?null:value)(value))},label,fullWidth,size,variant},rest),null==finalOptions?void 0:finalOptions.map((role=>react_1.default.createElement(material_1.MenuItem,{key:role.value,value:role.value},role.label)))))))}},"./packages/react-material-ui/dist/components/SelectField/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SelectField=void 0;var SelectField_1=__webpack_require__("./packages/react-material-ui/dist/components/SelectField/SelectField.js");Object.defineProperty(exports,"SelectField",{enumerable:!0,get:function(){return SelectField_1.SelectField}})},"./packages/react-material-ui/dist/components/SideModal/SideModal.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SideModal=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),Drawer_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Drawer/index.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Close_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/Close.js")),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js"));exports.SideModal=props=>{const{open,toggleDrawer,title,textProps={fontSize:18,fontWeight:500,color:"common.white",fontFamily:"'Inter', sans-serif"},backgroundColor,headerBackgroundColor,closeIconColor,width,anchor="right",sx,children}=props,theme=(0,material_1.useTheme)();return react_1.default.createElement(Drawer_1.default,{anchor,variant:"temporary",open,onClose:toggleDrawer,sx:[{"& .MuiDrawer-paper":{backgroundColor:backgroundColor||theme.palette.common.white,width:width||"33%",minWidth:width||"448px",[theme.breakpoints.down("sm")]:{width:width||"100%",minWidth:"auto"}}},...Array.isArray(sx)?sx:[sx]],"data-testid":"side-modal"},react_1.default.createElement(Box_1.default,{display:"flex",alignItems:"center",justifyContent:"center",sx:theme=>({backgroundColor:headerBackgroundColor||theme.palette.primary.main,padding:"16px 16px 16px 24px"}),"data-testid":"side-modal-header"},title&&react_1.default.createElement(Text_1.default,Object.assign({},textProps),title),react_1.default.createElement(IconButton_1.default,{onClick:toggleDrawer,sx:{marginLeft:"auto",color:closeIconColor||theme.palette.common.white},"data-testid":"side-modal-close-button"},react_1.default.createElement(Close_1.default,null))),children)}},"./packages/react-material-ui/dist/components/SideModal/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SideModal=void 0;var SideModal_1=__webpack_require__("./packages/react-material-ui/dist/components/SideModal/SideModal.js");Object.defineProperty(exports,"SideModal",{enumerable:!0,get:function(){return SideModal_1.SideModal}})},"./packages/react-material-ui/dist/components/SimpleForm/SimpleForm.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),__1=__webpack_require__("./packages/react-material-ui/dist/index.js"),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Button_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Button/index.js")),validator_ajv6_1=__importDefault(__webpack_require__("./node_modules/@rjsf/validator-ajv6/lib/index.js")),mui_1=__importDefault(__webpack_require__("./node_modules/@rjsf/mui/lib/index.js")),CustomWidgets_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/index.js");exports.default=({form,initialData,onSubmit,validate,onError})=>{const{fields,titleTextProps,formProps,submitButtonProps}=form,generateRequired=_fields=>{const required=[];return Object.keys(_fields).map((key=>{_fields[key].required&&required.push(key)})),required},generateProperties=_fields=>{const properties={},fieldTypes={string:"string",email:"string",password:"string",array:"array",stringArray:"array",select:"string",radio:"string",checkbox:"boolean",checkboxes:"array",switch:"boolean"};return Object.keys(_fields).map((key=>{var _a,_b;const field=_fields[key],fieldType=fieldTypes[field.type],fieldProperties={};fieldType&&(fieldProperties.type=fieldType),field.title&&(fieldProperties.title=field.title),field.description&&(fieldProperties.description=field.description),field.default&&(fieldProperties.default=field.default),field.options&&"checkboxes"===field.type&&(fieldProperties.items={type:"string",anyOf:null===(_a=field.options)||void 0===_a?void 0:_a.map((opt=>"string"==typeof opt?{const:opt,title:opt}:{const:opt.value,title:opt.label}))},fieldProperties.uniqueItems=!0),["select","radio"].includes(field.type)&&(fieldProperties.oneOf=(null===(_b=null==field?void 0:field.options)||void 0===_b?void 0:_b.map((opt=>"string"==typeof opt?{const:opt,title:opt}:{const:opt.value,title:opt.label})))||[],fieldProperties.uniqueItems=!0),"stringArray"===field.type&&(fieldProperties.items={type:"string",title:field.title}),"array"===field.type&&field.fields&&(fieldProperties.items={type:"object",required:generateRequired(field.fields),properties:generateProperties(field.fields)}),properties[key]=fieldProperties})),properties},schema={type:"object",required:generateRequired(fields),properties:generateProperties(fields)};return react_1.default.createElement(react_1.Fragment,null,form.title&&react_1.default.createElement(__1.Text,Object.assign({variant:"h4",fontFamily:"Inter",fontSize:24,fontWeight:800,mt:4,gutterBottom:!0},titleTextProps),form.title),react_1.default.createElement(Box_1.default,null,react_1.default.createElement(mui_1.default,Object.assign({schema,uiSchema:(()=>{const uiSchema={},widgetTypes={string:CustomWidgets_1.CustomTextFieldWidget,email:CustomWidgets_1.CustomEmailFieldWidget,password:CustomWidgets_1.CustomPasswordFieldWidget,select:CustomWidgets_1.CustomSelectWidget,radio:CustomWidgets_1.CustomRadioWidget,checkbox:CustomWidgets_1.CustomCheckboxWidget,checkboxes:CustomWidgets_1.CustomCheckboxesWidget,switch:CustomWidgets_1.CustomSwitchWidget};return Object.keys(fields).map((key=>{const field=fields[key];widgetTypes[field.type]&&(uiSchema[key]={"ui:widget":widgetTypes[field.type]})})),uiSchema})(),formData:(()=>{const formData=Object.assign({},initialData);return Object.keys(fields).map((key=>{const field=fields[key];["stringArray","array"].includes(field.type)&&(formData[key]=(null==initialData?void 0:initialData[key])||[""])})),Object.keys(formData).length?formData:null})(),noHtml5Validate:!0,showErrorList:!1,onError,onSubmit,templates:{ArrayFieldTemplate:CustomWidgets_1.ArrayFieldTemplate},customValidate:validate,validator:validator_ajv6_1.default},formProps),react_1.default.createElement(Button_1.default,Object.assign({type:"submit",fullWidth:!0,variant:"contained",sx:{mt:3}},submitButtonProps),form.submitButtonLabel||"Submit"))))}},"./packages/react-material-ui/dist/components/SimpleForm/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const SimpleForm_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/SimpleForm/SimpleForm.js"));exports.default=SimpleForm_1.default},"./packages/react-material-ui/dist/components/Switch/Switch.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Switch=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Switch_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Switch/index.js")),FormGroup_1=__importDefault(__webpack_require__("./node_modules/@mui/material/FormGroup/index.js")),FormControlLabel_1=__importDefault(__webpack_require__("./node_modules/@mui/material/FormControlLabel/index.js")),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js"));exports.Switch=props=>{const{label,disabled,checked,onChange,required,textProps={fontSize:16,fontWeight:400,color:"text.primary"}}=props;return react_1.default.createElement(react_1.default.Fragment,null,label?react_1.default.createElement(FormGroup_1.default,null,react_1.default.createElement(FormControlLabel_1.default,{disabled,control:react_1.default.createElement(Switch_1.default,{onChange}),label:react_1.default.createElement(Text_1.default,Object.assign({},textProps),label,required&&" *"),checked})):react_1.default.createElement(Switch_1.default,Object.assign({},props)))}},"./packages/react-material-ui/dist/components/Switch/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Switch=void 0;var Switch_1=__webpack_require__("./packages/react-material-ui/dist/components/Switch/Switch.js");Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return Switch_1.Switch}})},"./packages/react-material-ui/dist/components/Table/Styles.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.IconContainer=exports.Table=void 0;const Table_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Table/index.js")),styles_1=__webpack_require__("./node_modules/@mui/material/styles/index.js"),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js"));exports.Table=(0,styles_1.styled)(Table_1.default)((({theme,variant})=>Object.assign({borderCollapse:"separate"},((variant,theme)=>"contained"===variant?(theme=>({borderSpacing:"0 10px",marginTop:"-10px",th:{border:"none"},td:{border:`solid 1px ${theme.palette.primary.main}`,borderStyle:"solid none",padding:"10px",backgroundColor:"light"===theme.palette.mode?theme.palette.grey[100]:theme.palette.grey[800]},"td:first-of-type":{borderLeftStyle:"solid",borderTopLeftRadius:"10px",borderBottomLeftRadius:"10px"},"td:last-child":{borderRightStyle:"solid",borderBottomRightRadius:"10px",borderTopRightRadius:"10px"}}))(theme):"outlined"===variant?(theme=>({th:{border:"solid 1px #e5e7eb",borderStyle:"solid none",backgroundColor:"light"===theme.palette.mode?theme.palette.grey[100]:theme.palette.grey[800],"&:first-of-type":{borderTopLeftRadius:"10px",borderLeftStyle:"solid"},"&:last-child":{borderTopRightRadius:"10px",borderRightStyle:"solid"}},td:{"&:first-of-type":{borderLeft:"solid 1px #e5e7eb"},"&:last-child":{borderRight:"solid 1px #e5e7eb"}}}))(theme):void 0)(variant,theme)))),exports.IconContainer=(0,styles_1.styled)(Box_1.default)((()=>({display:"flex",marginRight:"8px",marginLeft:"-4px"})))},"./packages/react-material-ui/dist/components/Table/Table.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{children,variant="contained",sx}=_a,rest=__rest(_a,["children","variant","sx"]);return react_1.default.createElement(Styles_1.Table,Object.assign({variant},rest,{sx:[{minWidth:isMobile_1.isMobile?"auto":750},...Array.isArray(sx)?sx:[sx]],"data-testid":"mui-table"}),children)}},"./packages/react-material-ui/dist/components/Table/TableBody/TableBodyCells.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);ireact_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:400,color:"text.primary"},null!=value?value:"");exports.TableBodyCells=_a=>{var{row}=_a,rest=__rest(_a,["row"]);const{headers}=(0,useTableRoot_1.useTableRoot)();return react_1.default.createElement(react_1.default.Fragment,null,headers.map((header=>header.hide||isMobile_1.isMobile&&header.hideOnMobile?null:react_1.default.createElement(material_1.TableCell,Object.assign({key:header.id},rest),((row,dataOrigin)=>{var _a,_b;const cell=(0,get_1.default)(row,dataOrigin);return cell?"object"==typeof cell?"component"in cell?cell.component:cell.title?react_1.default.createElement(material_1.Tooltip,{title:cell.title},react_1.default.createElement("span",null,null!==(_a=cell.value)&&void 0!==_a?_a:"")):renderTextCell(null!==(_b=cell.value)&&void 0!==_b?_b:""):renderTextCell(cell):null})(row,header.source||header.id)))))}},"./packages/react-material-ui/dist/components/Table/TableBody/TableBodyCheckbox.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{row,labelId}=_a,rest=__rest(_a,["row","labelId"]);const{isSelected,handleSelectCheckboxItem}=(0,useTableRoot_1.useTableRoot)(),isItemSelected=isSelected(row.id);return react_1.default.createElement(material_1.TableCell,Object.assign({padding:"checkbox"},rest),react_1.default.createElement(material_1.Checkbox,{color:"primary",checked:isItemSelected,inputProps:{"aria-labelledby":labelId},onClick:event=>handleSelectCheckboxItem(event,row)}))}},"./packages/react-material-ui/dist/components/Table/TableBody/TableBodyOption.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableBodyOption=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),TableOptions_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/TableOptions.js"));exports.TableBodyOption=({row,customRowOptions,toggleDirection})=>react_1.default.createElement(material_1.TableCell,null,react_1.default.createElement(TableOptions_1.default,{row,customRowOptions,toggleDirection}))},"./packages/react-material-ui/dist/components/Table/TableBody/TableBodyRow.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{row,children,hasCheckboxes=!1}=_a,rest=__rest(_a,["row","children","hasCheckboxes"]);const{isSelected,handleSelectCheckboxItem}=(0,useTableRoot_1.useTableRoot)(),isItemSelected=isSelected(row.id);return react_1.default.createElement(material_1.TableRow,Object.assign({onClick:hasCheckboxes?event=>handleSelectCheckboxItem(event,row):void 0,role:hasCheckboxes?"checkbox":"","aria-checked":isItemSelected,tabIndex:-1,key:row.id,selected:isItemSelected},rest),children)}},"./packages/react-material-ui/dist/components/Table/TableBody/TableBodyRows.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableBodyRows=exports.getPaginatedRows=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),utils_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/index.js"),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js"),TableBodyRow_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyRow.js"),TableBodyCells_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyCells.js"),TableRowSkeleton_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableRowSkeleton.js");exports.getPaginatedRows=(rows,page,rowsPerPage,order,orderBy)=>rows.sort(((a,b)=>(0,utils_1.sortTable)(a,b,order,orderBy))).slice((page-1)*rowsPerPage,(page-1)*rowsPerPage+rowsPerPage);const renderTableRows=(row,renderRow,labelId)=>renderRow?renderRow(row,labelId):(row=>react_1.default.createElement(TableBodyRow_1.TableBodyRow,{key:row.id,row},react_1.default.createElement(TableBodyCells_1.TableBodyCells,{row})))(row);exports.TableBodyRows=({renderRow,isLoading=!1})=>{const{rows,tableQuery,isControlled}=(0,useTableRoot_1.useTableRoot)(),{page,rowsPerPage,order,orderBy}=tableQuery;return isLoading?react_1.default.createElement(TableRowSkeleton_1.TableRowSkeleton,null):isControlled?react_1.default.createElement(react_1.Fragment,null,rows.map(((row,index)=>renderTableRows(row,renderRow,`table-checkbox-${index}`)))):react_1.default.createElement(react_1.Fragment,null,(0,exports.getPaginatedRows)(rows,page,rowsPerPage,order,orderBy).map(((row,index)=>{const labelId=`table-checkbox-${index}`;return react_1.default.createElement(react_1.Fragment,{key:row.id},renderTableRows(row,renderRow,labelId))})))}},"./packages/react-material-ui/dist/components/Table/TableCellSkeleton.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableCellSkeleton=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js");exports.TableCellSkeleton=()=>{const{headers}=(0,useTableRoot_1.useTableRoot)();return react_1.default.createElement(react_1.default.Fragment,null,headers.map((header=>header.hide?null:react_1.default.createElement(material_1.TableCell,{key:header.id},react_1.default.createElement(material_1.Skeleton,{height:32,width:header.width})))))}},"./packages/react-material-ui/dist/components/Table/TableColumnOrderable.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableColumnOrderable=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js"),OrderableDropDown_1=__webpack_require__("./packages/react-material-ui/dist/components/OrderableDropDown/index.js");exports.TableColumnOrderable=({hasAllOption,text,icon,orderableListCacheKey,cacheApiPath})=>{const{headers,setHeaders}=(0,useTableRoot_1.useTableRoot)(),[headerOrder,setHeaderOrder]=(0,react_1.useState)(headers.map((header=>({id:header.id,label:header.label}))));return(0,react_1.useEffect)((()=>{const newOrderedHeaders=headerOrder.map((header=>{const originalHeader=headers.find((h=>h.id===header.id));return Object.assign(Object.assign({},originalHeader),{hide:header.hide})}));setHeaders(newOrderedHeaders)}),[headerOrder]),react_1.default.createElement(OrderableDropDown_1.OrderableDropDown,{hasAllOption,list:headerOrder,setList:setHeaderOrder,icon,text,storage:{type:"table",key:orderableListCacheKey,cacheApiPath,onListUpdateFromCache:cacheList=>{const newHeaders=cacheList.map((header=>{const originalHeader=headers.find((({id})=>id===header.id));return Object.assign(Object.assign({},originalHeader),{hide:header.hide})}));setHeaderOrder(newHeaders)}}})}},"./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCell.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var _b,{cell}=_a,rest=__rest(_a,["cell"]);const{tableQuery,handleSort}=(0,useTableRoot_1.useTableRoot)(),{order,orderBy}=tableQuery,isHeaderSortable=null===(_b=cell.sortable)||void 0===_b||_b;return react_1.default.createElement(TableCell_1.default,Object.assign({key:cell.id,width:cell.width,align:(null==cell?void 0:cell.textAlign)||cell.numeric?"right":"left",padding:cell.disablePadding?"none":"normal",sortDirection:orderBy===cell.id&&order},rest),isHeaderSortable?react_1.default.createElement(TableSortLabel_1.default,{active:orderBy===cell.id,direction:orderBy===cell.id?order:types_1.Order.Asc,onClick:(property=cell.id,event=>{handleSort(event,property)})},cell.label,orderBy===cell.id?react_1.default.createElement(Box_1.default,{component:"span",sx:utils_1.visuallyHidden},order===types_1.Order.Desc?"sorted descending":"sorted ascending"):null):react_1.default.createElement(react_1.default.Fragment,null,cell.label));var property}},"./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCells.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableHeaderCells=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js"),TableHeaderCell_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCell.js"),isMobile_1=__webpack_require__("./packages/react-material-ui/dist/utils/isMobile.js");exports.TableHeaderCells=({renderCell})=>{const{headers}=(0,useTableRoot_1.useTableRoot)();return react_1.default.createElement(react_1.Fragment,null,!renderCell&&headers.map((header=>header.hide?null:react_1.default.createElement(TableHeaderCell_1.TableHeaderCell,{key:header.id,cell:header}))),!!renderCell&&headers.map((header=>header.hide||isMobile_1.isMobile&&header.hideOnMobile?null:react_1.default.createElement(react_1.Fragment,{key:header.id},renderCell(Object.assign(Object.assign({},header),{key:header.id}))))))}},"./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCheckbox.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableHeaderCheckbox=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js");exports.TableHeaderCheckbox=props=>{const{rows,selected,handleSelectAllCheckboxes}=(0,useTableRoot_1.useTableRoot)(),numSelected=selected.length,rowCount=rows.length;return react_1.default.createElement(material_1.TableCell,Object.assign({padding:"checkbox"},props),react_1.default.createElement(material_1.Checkbox,{color:"primary",indeterminate:numSelected>0&&numSelected0&&numSelected===rowCount,onChange:handleSelectAllCheckboxes,inputProps:{"aria-label":"select all"}}))}},"./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderOption.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableHeaderOption=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js");exports.TableHeaderOption=()=>react_1.default.createElement(material_1.TableCell,{key:"options",align:"left",padding:"none"})},"./packages/react-material-ui/dist/components/Table/TableOptions.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),Menu_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Menu/index.js")),Fade_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Fade/index.js")),Tooltip_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Tooltip/index.js")),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),MoreHoriz_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/MoreHoriz.js")),MoreVert_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/MoreVert.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Styles_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/Styles.js"),MenuItem_1=__importDefault(__webpack_require__("./node_modules/@mui/material/MenuItem/index.js"));exports.default=({row,customRowOptions,toggleDirection="horizontal"})=>{const[anchorEl,setAnchorEl]=(0,react_1.useState)(null),open=Boolean(anchorEl),handleClose=()=>{setAnchorEl(null)},handleCustomItemClick=item=>()=>{item.onClick(row),handleClose()},renderOptions=(0,react_1.useMemo)((()=>"function"==typeof customRowOptions?customRowOptions({row,close:handleClose}):Array.isArray(customRowOptions)?react_1.default.createElement(Box_1.default,{display:"flex",flexDirection:"column",sx:{p:0,m:0}},customRowOptions.map((item=>react_1.default.createElement(MenuItem_1.default,{key:item.key,onClick:handleCustomItemClick(item)},item.icon&&react_1.default.createElement(Styles_1.IconContainer,null,item.icon),item.text)))):void 0),[customRowOptions]);return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(Tooltip_1.default,{title:"Options"},react_1.default.createElement(IconButton_1.default,{id:"fade-button","data-testid":"fade-button","aria-controls":open?"fade-menu":void 0,"aria-haspopup":"true","aria-expanded":open?"true":void 0,onClick:event=>{customRowOptions&&setAnchorEl(event.currentTarget)}},"horizontal"===toggleDirection?react_1.default.createElement(MoreHoriz_1.default,null):react_1.default.createElement(MoreVert_1.default,null))),react_1.default.createElement(Menu_1.default,{id:"fade-menu","data-testid":"fade-menu",MenuListProps:{"aria-labelledby":"fade-button"},anchorEl,open,onClose:handleClose,TransitionComponent:Fade_1.default},renderOptions))}},"./packages/react-material-ui/dist/components/Table/TablePagination.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{variant,rowsPerPageOptions=[5,10,25],sx}=_a,rest=__rest(_a,["variant","rowsPerPageOptions","sx"]);const theme=(0,material_1.useTheme)(),{rows,tableQuery,total,handleChangePage,handleChangeRowsPerPage}=(0,useTableRoot_1.useTableRoot)(),{rowsPerPage,page}=tableQuery;return react_1.default.createElement(material_1.TablePagination,Object.assign({rowsPerPageOptions,component:"div",count:total||(null==rows?void 0:rows.length)||0,rowsPerPage,page:page?page-1:0,onPageChange:(event,page)=>handleChangePage(event,page+1),onRowsPerPageChange:handleChangeRowsPerPage},rest,{sx:[Object.assign({},"outlined"===variant&&{backgroundColor:"light"===theme.palette.mode?theme.palette.grey[100]:theme.palette.grey[800],border:"solid 1px #e5e7eb",borderTop:"none",borderBottomLeftRadius:"10px",borderBottomRightRadius:"10px",borderLeftStyle:"solid",borderRightStyle:"solid"}),...Array.isArray(sx)?sx:[sx]],"data-testid":"table-pagination"}))}},"./packages/react-material-ui/dist/components/Table/TablePaginationNumbers.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TablePaginationNumbers=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js");exports.TablePaginationNumbers=props=>{const{rows,pageCount,handleChangePage,tableQuery}=(0,useTableRoot_1.useTableRoot)(),{page}=tableQuery;return react_1.default.createElement(material_1.Box,{display:"flex",justifyContent:"center"},react_1.default.createElement(material_1.Pagination,Object.assign({count:pageCount||(null==rows?void 0:rows.length)&&Math.ceil((null==rows?void 0:rows.length)/5)||0,onChange:handleChangePage,page,"data-testid":"table-pagination"},props)))}},"./packages/react-material-ui/dist/components/Table/TableRoot.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{children,rows=[],headers:initialHeaders=[],total,pageCount,tableQueryState:controlledTableQueryState,updateTableQueryState:controlledUpdateTableQueryState,navigate}=_a,rest=__rest(_a,["children","rows","headers","total","pageCount","tableQueryState","updateTableQueryState","navigate"]);const searchParams=new URLSearchParams(window.location.search),{tableQueryState,setTableQueryState}=(0,useTableQueryState_1.useTableQueryState)(),[selected,setSelected]=(0,react_1.useState)([]),[headers,setHeaders]=(0,react_1.useState)(initialHeaders),isControlled=!!controlledTableQueryState,handleUpdateTableQuery=isControlled?controlledUpdateTableQueryState:setTableQueryState,{order,orderBy}=isControlled?controlledTableQueryState:tableQueryState;return react_1.default.createElement(useTableRoot_1.TableContext.Provider,{value:{rows,headers,total,pageCount,isControlled,tableQuery:isControlled?controlledTableQueryState:tableQueryState,selected,setHeaders,isSelected:id=>-1!==selected.findIndex((_row=>_row.id===id)),handleChangePage:(event,newPage)=>{const newPageProperty={page:newPage};handleUpdateTableQuery((prevState=>Object.assign(Object.assign({},prevState),newPageProperty)));const newSearchParam=(0,http_1.getSearchParams)(searchParams,newPageProperty);newSearchParam&&navigate&&navigate(`${window.location.pathname}?${newSearchParam}`)},handleChangeRowsPerPage:event=>{const newRowsPerPageProperties={rowsPerPage:parseInt(event.target.value,10),page:1};handleUpdateTableQuery((prevState=>Object.assign(Object.assign({},prevState),newRowsPerPageProperties)));const newSearchParam=(0,http_1.getSearchParams)(searchParams,newRowsPerPageProperties);newSearchParam&&navigate&&navigate(`${window.location.pathname}?${newSearchParam}`)},handleSort:(event,property)=>{const newOrderProperties={order:orderBy===property&&order===types_1.Order.Asc?types_1.Order.Desc:types_1.Order.Asc,orderBy:property,page:1};handleUpdateTableQuery((prevState=>Object.assign(Object.assign({},prevState),newOrderProperties)));const newSearchParam=(0,http_1.getSearchParams)(searchParams,newOrderProperties);newSearchParam&&navigate&&navigate(`${window.location.pathname}?${newSearchParam}`)},handleSelectAllCheckboxes:event=>{event.target.checked?setSelected(rows):setSelected([])},handleSelectCheckboxItem:(event,row)=>{const selectedIndex=selected.findIndex((_row=>_row.id===row.id));let newSelected=[];-1===selectedIndex?newSelected=newSelected.concat(selected,row):0===selectedIndex?newSelected=newSelected.concat(selected.slice(1)):selectedIndex===selected.length-1?newSelected=newSelected.concat(selected.slice(0,-1)):selectedIndex>0&&(newSelected=newSelected.concat(selected.slice(0,selectedIndex),selected.slice(selectedIndex+1))),setSelected(newSelected)}}},react_1.default.createElement(material_1.Box,Object.assign({width:"100%"},rest),children))}},"./packages/react-material-ui/dist/components/Table/TableRowSkeleton.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableRowSkeleton=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),TableCellSkeleton_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableCellSkeleton.js"),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js");exports.TableRowSkeleton=()=>{const{tableQuery}=(0,useTableRoot_1.useTableRoot)(),rowsToRender=Array.from({length:tableQuery.rowsPerPage},((_,index)=>index+1));return react_1.default.createElement(react_1.default.Fragment,null,rowsToRender.map((item=>react_1.default.createElement(material_1.TableRow,{key:item},react_1.default.createElement(TableCellSkeleton_1.TableCellSkeleton,null)))))}},"./packages/react-material-ui/dist/components/Table/hooks/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useTableRoot=exports.getTableQueryState=exports.useTableQueryState=void 0;const useTableQueryState_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableQueryState.js");Object.defineProperty(exports,"useTableQueryState",{enumerable:!0,get:function(){return useTableQueryState_1.useTableQueryState}}),Object.defineProperty(exports,"getTableQueryState",{enumerable:!0,get:function(){return useTableQueryState_1.getTableQueryState}});const useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js");Object.defineProperty(exports,"useTableRoot",{enumerable:!0,get:function(){return useTableRoot_1.useTableRoot}})},"./packages/react-material-ui/dist/components/Table/hooks/useTableQueryState.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useTableQueryState=exports.getTableQueryState=exports.TABLE_QUERY_STATE_DEFAULT_VALUE=void 0;const types_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/types.js"),react_1=__webpack_require__("./node_modules/react/index.js");exports.TABLE_QUERY_STATE_DEFAULT_VALUE={order:types_1.Order.Asc,orderBy:"id",rowsPerPage:5,page:1};exports.getTableQueryState=(tableQuery,searchParams)=>({order:(null==searchParams?void 0:searchParams.get("order"))||(null==tableQuery?void 0:tableQuery.order)||exports.TABLE_QUERY_STATE_DEFAULT_VALUE.order,orderBy:(null==searchParams?void 0:searchParams.get("orderBy"))||(null==tableQuery?void 0:tableQuery.orderBy)||exports.TABLE_QUERY_STATE_DEFAULT_VALUE.orderBy,rowsPerPage:Number(null==searchParams?void 0:searchParams.get("rowsPerPage"))||(null==tableQuery?void 0:tableQuery.rowsPerPage)||exports.TABLE_QUERY_STATE_DEFAULT_VALUE.rowsPerPage,page:Number(null==searchParams?void 0:searchParams.get("page"))||(null==tableQuery?void 0:tableQuery.page)||exports.TABLE_QUERY_STATE_DEFAULT_VALUE.page,simpleFilter:(null==searchParams?void 0:searchParams.get("simpleFilter"))&&JSON.parse(searchParams.get("simpleFilter"))||(null==tableQuery?void 0:tableQuery.simpleFilter)||void 0,search:(null==searchParams?void 0:searchParams.get("search"))&&JSON.parse(searchParams.get("search"))||(null==tableQuery?void 0:tableQuery.search)||void 0});exports.useTableQueryState=tableQuery=>{const searchParams=new URLSearchParams(window.location.search),[tableQueryState,setTableQueryState]=(0,react_1.useState)((0,exports.getTableQueryState)(tableQuery,searchParams));return{tableQueryState,setTableQueryState}}},"./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useTableRoot=exports.TableContext=void 0;const react_1=__webpack_require__("./node_modules/react/index.js");exports.TableContext=(0,react_1.createContext)({});exports.useTableRoot=()=>{const tableRootContext=(0,react_1.useContext)(exports.TableContext);if(!tableRootContext)throw new Error("You must use table root under TableRootContext");return tableRootContext}},"./packages/react-material-ui/dist/components/Table/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useTable=void 0;const Table_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/Table.js"),TablePagination_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TablePagination.js"),TablePaginationNumbers_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TablePaginationNumbers.js"),TableHeaderCells_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCells.js"),TableHeaderCheckbox_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCheckbox.js"),TableHeaderOption_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderOption.js"),TableBodyCells_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyCells.js"),TableBodyCheckbox_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyCheckbox.js"),TableBodyOption_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyOption.js"),TableBodyRow_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyRow.js"),TableBodyRows_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyRows.js"),TableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableRoot.js"),TableHeaderCell_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCell.js"),TableRowSkeleton_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableRowSkeleton.js"),TableCellSkeleton_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableCellSkeleton.js"),TableColumnOrderable_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableColumnOrderable.js"),useTable_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/useTable.js"));exports.useTable=useTable_1.default;const TableComponent={Table:Table_1.Table,BodyCell:TableBodyCells_1.TableBodyCells,BodyCheckboxes:TableBodyCheckbox_1.TableBodyCheckbox,BodyOption:TableBodyOption_1.TableBodyOption,BodyRow:TableBodyRow_1.TableBodyRow,BodyRows:TableBodyRows_1.TableBodyRows,Pagination:TablePagination_1.TablePagination,PaginationNumbers:TablePaginationNumbers_1.TablePaginationNumbers,HeaderCell:TableHeaderCell_1.TableHeaderCell,HeaderCells:TableHeaderCells_1.TableHeaderCells,HeaderCheckbox:TableHeaderCheckbox_1.TableHeaderCheckbox,HeaderOption:TableHeaderOption_1.TableHeaderOption,Root:TableRoot_1.TableRoot,CellSkeleton:TableCellSkeleton_1.TableCellSkeleton,RowSkeleton:TableRowSkeleton_1.TableRowSkeleton,ColumnOrderable:TableColumnOrderable_1.TableColumnOrderable};exports.default=TableComponent},"./packages/react-material-ui/dist/components/Table/types.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Order=void 0,function(Order){Order.Asc="asc",Order.Desc="desc"}(exports.Order||(exports.Order={}))},"./packages/react-material-ui/dist/components/Table/useTable.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__webpack_require__("./node_modules/react/index.js"),react_data_provider_1=__importStar(__webpack_require__("./packages/react-data-provider/dist/index.js")),useTableQueryState_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableQueryState.js"),http_1=__webpack_require__("./packages/react-material-ui/dist/utils/http/index.js");exports.default=(resource,options)=>{const searchParams=new URLSearchParams(window.location.search),{get}=(0,react_data_provider_1.default)(),firstRender=(0,react_1.useRef)(!0),{tableQueryState,setTableQueryState}=(0,useTableQueryState_1.useTableQueryState)(options);(0,react_1.useEffect)((()=>{var _a;const newSearchParam=(0,http_1.getSearchParams)(searchParams,{simpleFilter:JSON.stringify(null==tableQueryState?void 0:tableQueryState.simpleFilter)});null===(_a=null==options?void 0:options.navigate)||void 0===_a||_a.call(options,`${window.location.pathname}?${null!=newSearchParam?newSearchParam:""}`)}),[JSON.stringify(tableQueryState.simpleFilter)]),(0,react_1.useEffect)((()=>{var _a;const newSearchParam=(0,http_1.getSearchParams)(searchParams,{search:JSON.stringify(null==tableQueryState?void 0:tableQueryState.search)});null===(_a=null==options?void 0:options.navigate)||void 0===_a||_a.call(options,`${window.location.pathname}?${null!=newSearchParam?newSearchParam:""}`)}),[JSON.stringify(tableQueryState.search)]);const simpleFilterQuery=()=>{if(!tableQueryState.simpleFilter)return;const queryArr=[];for(const[key,value]of Object.entries(tableQueryState.simpleFilter))queryArr.push(`${key}${value}`);return queryArr};(0,react_1.useEffect)((()=>{execute()}),[JSON.stringify(tableQueryState)]);const{data,execute,refresh,isPending,error}=(0,react_data_provider_1.useQuery)((()=>get({uri:resource,queryParams:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(null==tableQueryState?void 0:tableQueryState.rowsPerPage)&&!(null==options?void 0:options.noPagination)&&{limit:tableQueryState.rowsPerPage}),{page:tableQueryState.page}),(null==tableQueryState?void 0:tableQueryState.orderBy)&&{sort:`${null==tableQueryState?void 0:tableQueryState.orderBy},${null==tableQueryState?void 0:tableQueryState.order.toUpperCase()}`}),(null==tableQueryState?void 0:tableQueryState.simpleFilter)&&{filter:simpleFilterQuery()}),(null==tableQueryState?void 0:tableQueryState.search)&&{s:JSON.stringify(null==tableQueryState?void 0:tableQueryState.search)})})),!1,null==options?void 0:options.callbacks);return{data:null==data?void 0:data.data,isPending,error,execute,refresh,updateSimpleFilter:(simpleFilter,resetPage=!0)=>{setTableQueryState((prevState=>{var _a;const updatedState=Object.assign({},prevState);for(const entries of Object.entries(simpleFilter)){const[key,value]=entries;null==value?null===(_a=null==updatedState?void 0:updatedState.simpleFilter)||void 0===_a||delete _a[key]:void 0===(null==updatedState?void 0:updatedState.simpleFilter)?updatedState.simpleFilter={[key]:value}:updatedState.simpleFilter[key]=value}const updatedSimpleFilter=(null==updatedState?void 0:updatedState.simpleFilter)&&Object.keys(updatedState.simpleFilter).length>0?updatedState.simpleFilter:void 0,res=Object.assign({},updatedState&&Object.assign(Object.assign(Object.assign({},updatedState),resetPage&&!firstRender.current&&{page:useTableQueryState_1.TABLE_QUERY_STATE_DEFAULT_VALUE.page}),{simpleFilter:updatedSimpleFilter}));return firstRender.current&&(firstRender.current=!1),res}))},simpleFilter:null==tableQueryState?void 0:tableQueryState.simpleFilter,updateSearch:(search,resetPage=!0)=>{setTableQueryState((prevState=>{var _a;const updatedState=Object.assign({},prevState);if(null===search&&(updatedState.search=void 0),search)for(const entries of Object.entries(search)){const[key,value]=entries;null==value?null===(_a=null==updatedState?void 0:updatedState.search)||void 0===_a||delete _a[key]:void 0===(null==updatedState?void 0:updatedState.search)?updatedState.search={[key]:value}:updatedState.search[key]=value}const updatedSearch=(null==updatedState?void 0:updatedState.search)&&Object.keys(updatedState.search).length>0?updatedState.search:void 0,res=Object.assign({},updatedState&&Object.assign(Object.assign(Object.assign({},updatedState),resetPage&&!firstRender.current&&{page:useTableQueryState_1.TABLE_QUERY_STATE_DEFAULT_VALUE.page}),{search:updatedSearch}));return firstRender.current&&(firstRender.current=!1),res}))},search:null==tableQueryState?void 0:tableQueryState.search,total:null==data?void 0:data.total,pageCount:null==data?void 0:data.pageCount,tableQueryState,setTableQueryState}}},"./packages/react-material-ui/dist/components/Table/utils/createTableStyles.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=styles=>styles},"./packages/react-material-ui/dist/components/Table/utils/descendingComparator.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function descendingComparator(a,b,orderBy){return b[orderBy]a[orderBy]?1:0}},"./packages/react-material-ui/dist/components/Table/utils/getComparator.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const types_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/types.js"),descendingComparator_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/descendingComparator.js"));exports.default=function getComparator(order,orderBy){return order===types_1.Order.Desc?(a,b)=>(0,descendingComparator_1.default)(a,b,orderBy):(a,b)=>-(0,descendingComparator_1.default)(a,b,orderBy)}},"./packages/react-material-ui/dist/components/Table/utils/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.createTableStyles=exports.sortTable=exports.stableSort=exports.getComparator=exports.descendingComparator=void 0;const descendingComparator_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/descendingComparator.js"));exports.descendingComparator=descendingComparator_1.default;const getComparator_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/getComparator.js"));exports.getComparator=getComparator_1.default;const stableSort_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/stableSort.js"));exports.stableSort=stableSort_1.default;const sortTable_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/sortTable.js"));exports.sortTable=sortTable_1.default;const createTableStyles_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/createTableStyles.js"));exports.createTableStyles=createTableStyles_1.default},"./packages/react-material-ui/dist/components/Table/utils/sortTable.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const types_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/types.js"),descendingComparator=(a,b)=>ba?1:0,getSortableValue=item=>"number"==typeof item||"string"==typeof item?item:"sortableValue"in item&&item.sortableValue?item.sortableValue:0;exports.default=(a,b,order,orderBy)=>{const aVal=getSortableValue(a[orderBy]),bVal=getSortableValue(b[orderBy]);return order===types_1.Order.Desc?descendingComparator(aVal,bVal):-descendingComparator(aVal,bVal)}},"./packages/react-material-ui/dist/components/Table/utils/stableSort.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function stableSort(array,comparator){const stabilizedThis=array.map(((el,index)=>[el,index]));return stabilizedThis.sort(((a,b)=>{const order=comparator(a[0],b[0]);return 0!==order?order:a[1]-b[1]})),stabilizedThis.map((el=>el[0]))}},"./packages/react-material-ui/dist/components/Text/Text.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Typography_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Typography/index.js"));exports.default=typographyProps=>{const{children,fontWeight="300"}=typographyProps;return react_1.default.createElement(Typography_1.default,Object.assign({fontWeight},typographyProps),children)}},"./packages/react-material-ui/dist/components/Text/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var Text_1=__webpack_require__("./packages/react-material-ui/dist/components/Text/Text.js");Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(Text_1).default}})},"./packages/react-material-ui/dist/components/TextField/PasswordStrength.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),PasswordStrengthBar_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/TextField/PasswordStrengthBar.js"));exports.default=({passwordRuleVariant,passwordStrengthText,renderStrengthBar})=>renderStrengthBar?react_1.default.createElement(react_1.default.Fragment,null,renderStrengthBar(passwordRuleVariant,passwordStrengthText)):react_1.default.createElement(material_1.Box,{mt:1},react_1.default.createElement(material_1.Box,{display:"flex",gap:2},[...Array(4)].map(((_,index)=>react_1.default.createElement(PasswordStrengthBar_1.default,{key:`password-bar-${index}`,variant:passwordRuleVariant})))),react_1.default.createElement(material_1.Typography,{textAlign:"end",color:"grey.400",variant:"subtitle2",mt:.5},passwordStrengthText))},"./packages/react-material-ui/dist/components/TextField/PasswordStrengthBar.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PasswordStrengthBarVariants=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),VARIANT_COLOR_MAPPING={veryWeak:"lightgray",weak:"red",medium:"yellow",great:"green"};var PasswordStrengthBarVariants;!function(PasswordStrengthBarVariants){PasswordStrengthBarVariants.VeryWeak="veryWeak",PasswordStrengthBarVariants.Weak="weak",PasswordStrengthBarVariants.Medium="medium",PasswordStrengthBarVariants.Great="great"}(PasswordStrengthBarVariants=exports.PasswordStrengthBarVariants||(exports.PasswordStrengthBarVariants={}));exports.default=({variant=PasswordStrengthBarVariants.VeryWeak})=>react_1.default.createElement(material_1.Box,{sx:{height:"4px",background:VARIANT_COLOR_MAPPING[variant],borderRadius:1,width:"100%"}})},"./packages/react-material-ui/dist/components/TextField/PasswordStrengthRules.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js");exports.default=({name,value,rules,renderRulesText})=>renderRulesText?react_1.default.createElement(react_1.default.Fragment,null,renderRulesText(name,value,rules)):react_1.default.createElement(material_1.Box,{mt:2},react_1.default.createElement(material_1.FormHelperText,{sx:theme=>({color:theme.palette.common.black})},"Password should contain at least:"),null==rules?void 0:rules.map((rule=>react_1.default.createElement(material_1.FormHelperText,{id:name,sx:theme=>({color:value&&(null==value?void 0:value.match(rule.pattern))?theme.palette.success.main:theme.palette.common.black})},rule.label))))},"./packages/react-material-ui/dist/components/TextField/TextField.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var _a,_b,_c,_d;const{label,required,sx,type,size,value,hiddenLabel,options,containerProps,labelProps,InputProps,InputLabelProps,name,passwordStrengthConfig}=props,rest=__rest(props,["label","required","sx","type","size","value","hiddenLabel","options","containerProps","labelProps","InputProps","InputLabelProps","name","passwordStrengthConfig"]),passwordStrengthConfigDefault={hideStrengthBar:null===(_a=null==passwordStrengthConfig?void 0:passwordStrengthConfig.hideStrengthBar)||void 0===_a||_a,hideRulesText:null===(_b=null==passwordStrengthConfig?void 0:passwordStrengthConfig.hideRulesText)||void 0===_b||_b,rules:null!==(_c=null==passwordStrengthConfig?void 0:passwordStrengthConfig.rules)&&void 0!==_c?_c:constants_1.PASSWORD_DEFAULT_RULES,matchRules:null!==(_d=null==passwordStrengthConfig?void 0:passwordStrengthConfig.matchRules)&&void 0!==_d?_d:constants_1.PASSWORD_MATCH_RULES,renderStrengthBar:null==passwordStrengthConfig?void 0:passwordStrengthConfig.renderStrengthBar,renderRulesText:null==passwordStrengthConfig?void 0:passwordStrengthConfig.renderRulesText},[showPassword,setShowPassword]=(0,react_1.useState)(!1),isPassword="password"===type,ishiddenLabel=hiddenLabel||(null==options?void 0:options.hiddenLabel),passwordScore=(0,utils_1.getPasswordScore)(value,passwordStrengthConfigDefault.rules),[passwordStrengthText,passwordRuleVariant]=(0,utils_1.getPasswordMatchInfo)(passwordScore,passwordStrengthConfigDefault.matchRules);return react_1.default.createElement(material_1.Box,Object.assign({},containerProps),react_1.default.createElement(material_1.FormControl,{hiddenLabel:!!label||ishiddenLabel,fullWidth:!0},!ishiddenLabel&&!!label&&"string"==typeof label&&react_1.default.createElement(FormLabel_1.FormLabel,Object.assign({name,label,required,labelProps},InputLabelProps)),!ishiddenLabel&&!!label&&"string"!=typeof label&&label,react_1.default.createElement(material_1.OutlinedInput,Object.assign({},rest,{sx:[{marginTop:.5,mb:0,input:{color:"text.primary"}},...Array.isArray(sx)?sx:[sx]],id:name,name,size:size||"small",value:value||0===value?value:"",type:isPassword?showPassword?"text":"password":type,endAdornment:isPassword&&react_1.default.createElement(material_1.InputAdornment,{position:"end"},react_1.default.createElement(IconButton_1.default,{"aria-label":"toggle password visibility",onClick:()=>{setShowPassword((prv=>!prv))},onMouseDown:event=>{event.preventDefault()},"data-testid":"toggle-password-button"},showPassword?react_1.default.createElement(Visibility_1.default,null):react_1.default.createElement(VisibilityOff_1.default,null))),"data-testid":"text-field",fullWidth:!0},InputProps))),isPassword&&react_1.default.createElement(react_1.default.Fragment,null,!passwordStrengthConfigDefault.hideStrengthBar&&react_1.default.createElement(PasswordStrength_1.default,{passwordRuleVariant,passwordStrengthText,renderStrengthBar:passwordStrengthConfigDefault.renderStrengthBar}),!passwordStrengthConfigDefault.hideRulesText&&react_1.default.createElement(PasswordStrengthRules_1.default,{name,value,rules:passwordStrengthConfigDefault.rules,renderRulesText:passwordStrengthConfigDefault.renderRulesText})))}},"./packages/react-material-ui/dist/components/TextField/constants.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PASSWORD_DEFAULT_RULES=exports.PASSWORD_MATCH_RULES=exports.PASSWORD_MATCH_TEXT=exports.PASSWORD_MATCH_SCORE=exports.SPECIAL_CHARS_REGEX=exports.NUMBER_REGEX=exports.LOWERCASE_REGEX=exports.UPPERCASE_REGEX=exports.LENGTH_REGEX=void 0,exports.LENGTH_REGEX=new RegExp(/.{8,}$/),exports.UPPERCASE_REGEX=new RegExp(/.*[A-Z]/),exports.LOWERCASE_REGEX=new RegExp(/.*[a-z]/),exports.NUMBER_REGEX=new RegExp(/.*\d/),exports.SPECIAL_CHARS_REGEX=new RegExp(/.*[!@#$%^&*()_+\-=\\[\]{};':"\\|,.<>\\/?]/),exports.PASSWORD_MATCH_SCORE=[0,2,3,5],exports.PASSWORD_MATCH_TEXT=["Very weak","Weak","Medium","Great"],exports.PASSWORD_MATCH_RULES={text:exports.PASSWORD_MATCH_TEXT,score:exports.PASSWORD_MATCH_SCORE},exports.PASSWORD_DEFAULT_RULES=[{label:"8 characters",pattern:exports.LENGTH_REGEX},{label:"1 Alpha Upper character",pattern:exports.UPPERCASE_REGEX},{label:"1 Alpha Lower character",pattern:exports.LOWERCASE_REGEX},{label:"1 Numeric character",pattern:exports.NUMBER_REGEX},{label:'1 Special character (Example: "@", "#", "*")',pattern:exports.SPECIAL_CHARS_REGEX}]},"./packages/react-material-ui/dist/components/TextField/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextField=void 0;var TextField_1=__webpack_require__("./packages/react-material-ui/dist/components/TextField/TextField.js");Object.defineProperty(exports,"TextField",{enumerable:!0,get:function(){return TextField_1.TextField}})},"./packages/react-material-ui/dist/components/TextField/utils.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getPasswordMatchInfo=exports.getPasswordScore=exports.validatePasswordScore=void 0;const PasswordStrengthBar_1=__webpack_require__("./packages/react-material-ui/dist/components/TextField/PasswordStrengthBar.js"),constants_1=__webpack_require__("./packages/react-material-ui/dist/components/TextField/constants.js");exports.validatePasswordScore=(password,rules=constants_1.PASSWORD_DEFAULT_RULES,minValidationScore=constants_1.PASSWORD_DEFAULT_RULES.length)=>(0,exports.getPasswordScore)(password,rules)>=minValidationScore;exports.getPasswordScore=(password,rules)=>rules.filter((rule=>{var _a;return null===(_a=null==password?void 0:password.match)||void 0===_a?void 0:_a.call(password,rule.pattern)})).length;exports.getPasswordMatchInfo=(score,matchRules)=>{const variants=Object.values(PasswordStrengthBar_1.PasswordStrengthBarVariants);if(0===score)return[matchRules.text[0],variants[0]];const scoreIndex=matchRules.score.findIndex(((item,index)=>{var _a;return item>=score||score<(null===(_a=matchRules.score)||void 0===_a?void 0:_a[index+1])}));return scoreIndex===matchRules.score.length?[matchRules.text[matchRules.text.length-1],variants[matchRules.text.length-1]]:[matchRules.text[scoreIndex],variants[scoreIndex]]}},"./packages/react-material-ui/dist/components/submodules/AuthForm/constants.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resetPasswordFormSchema=exports.forgotPasswordFormSchema=exports.signUpFormSchema=exports.signInFormSchema=exports.defaultAuthUiSchema=void 0;const CustomWidgets_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/index.js");exports.defaultAuthUiSchema={email:{"ui:widget":CustomWidgets_1.CustomTextFieldWidget},username:{"ui:widget":CustomWidgets_1.CustomTextFieldWidget},password:{"ui:widget":CustomWidgets_1.CustomPasswordFieldWidget},newPassword:{"ui:widget":CustomWidgets_1.CustomPasswordFieldWidget},confirmNewPassword:{"ui:widget":CustomWidgets_1.CustomPasswordFieldWidget}},exports.signInFormSchema={type:"object",required:["username","password"],properties:{username:{type:"string",title:"Username",minLength:3},password:{type:"string",title:"Password"}}},exports.signUpFormSchema={type:"object",required:["email","username","password"],properties:{email:{type:"string",title:"Email",minLength:3,format:"email"},username:{type:"string",title:"Username",minLength:3},password:{type:"string",title:"Password"}}},exports.forgotPasswordFormSchema={type:"object",required:["email"],properties:{email:{type:"string",title:"Email",minLength:3,format:"email"}}},exports.resetPasswordFormSchema={type:"object",required:["newPassword","confirmNewPassword"],properties:{newPassword:{type:"string",title:"New password"},confirmNewPassword:{type:"string",title:"Re-enter your new password"}}}},"./packages/react-material-ui/dist/components/submodules/AuthForm/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),react_2=__webpack_require__("./node_modules/react/index.js"),react_data_provider_1=__importStar(__webpack_require__("./packages/react-data-provider/dist/index.js")),validator_ajv6_1=__importDefault(__webpack_require__("./node_modules/@rjsf/validator-ajv6/lib/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),Link_1=__webpack_require__("./packages/react-material-ui/dist/components/Link/index.js"),SchemaForm_1=__webpack_require__("./packages/react-material-ui/dist/components/SchemaForm/index.js"),Image_1=__webpack_require__("./packages/react-material-ui/dist/components/Image/index.js"),CustomWidgets_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/index.js"),validation_1=__webpack_require__("./packages/react-material-ui/dist/utils/form/validation.js"),constants_1=__webpack_require__("./packages/react-material-ui/dist/components/submodules/AuthForm/constants.js"),react_auth_provider_1=__webpack_require__("./packages/react-auth-provider/dist/index.js"),widgets={TextWidget:CustomWidgets_1.CustomTextFieldWidget};exports.default=props=>{var _a,_b,_c,_d,_e,_f,_g;const[formData,setFormData]=(0,react_2.useState)({}),searchParams=new URLSearchParams(window.location.search),passcode=null==searchParams?void 0:searchParams.get("token"),{post,patch,put}=(0,react_data_provider_1.default)(),{doLogin,isPending:isLoadingSignIn}=(0,react_auth_provider_1.useAuth)(),query={post,patch,put}[(null===(_a=props.query)||void 0===_a?void 0:_a.method)||"post"]||post,{execute:performRequest,isPending:isLoadingRequest}=(0,react_data_provider_1.useQuery)((body=>{var _a;return query({uri:(null===(_a=props.query)||void 0===_a?void 0:_a.uri)||"",body})}),!1,{onSuccess:data=>__awaiter(void 0,void 0,void 0,(function*(){var _h;null===(_h=props.query)||void 0===_h||_h.onSuccess(data)})),onError:null===(_b=props.query)||void 0===_b?void 0:_b.onError}),isLoading=isLoadingSignIn||isLoadingRequest,defaultRouteTitle={signIn:"Sign in",signUp:"Sign up",forgotPassword:"Recover password",resetPassword:"Reset password"}[props.route],defaultFormSchema={signIn:constants_1.signInFormSchema,signUp:constants_1.signUpFormSchema,forgotPassword:constants_1.forgotPasswordFormSchema,resetPassword:constants_1.resetPasswordFormSchema}[props.route]||{};return react_1.default.createElement(material_1.Container,{maxWidth:"xs",sx:{textAlign:"center",padding:"48px 0"}},!props.hideLogo&&react_1.default.createElement(Image_1.Image,{src:props.logoSrc||"/logo.svg",alt:"logo"}),props.headerComponent||null,react_1.default.createElement(material_1.Card,{sx:{padding:"24px",marginTop:"32px"}},!props.hideTitle&&("string"==typeof(title=null!==(_c=props.title)&&void 0!==_c?_c:defaultRouteTitle)?react_1.default.createElement(Text_1.default,{variant:"h4",fontFamily:"Inter",fontSize:30,fontWeight:800,mt:1,gutterBottom:!0},title):title),react_1.default.createElement(SchemaForm_1.SchemaForm.Form,{schema:Object.assign(Object.assign(Object.assign({},defaultFormSchema),props.formSchema),{required:props.overrideDefaults?(null===(_d=props.formSchema)||void 0===_d?void 0:_d.required)||[]:[...defaultFormSchema.required||[],...(null===(_e=props.formSchema)||void 0===_e?void 0:_e.required)||[]],properties:props.overrideDefaults?(null===(_f=props.formSchema)||void 0===_f?void 0:_f.properties)||{}:Object.assign(Object.assign({},defaultFormSchema.properties||{}),(null===(_g=props.formSchema)||void 0===_g?void 0:_g.properties)||{})}),uiSchema:Object.assign(Object.assign({},constants_1.defaultAuthUiSchema),props.formUiSchema),validator:validator_ajv6_1.default,formData:props.formData||formData,onChange:({formData})=>setFormData(formData),onSubmit:values=>__awaiter(void 0,void 0,void 0,(function*(){const fields=values.formData||{};if("signIn"!==props.route)"resetPassword"!==props.route?performRequest(fields):yield performRequest(Object.assign(Object.assign({},fields),{passcode}));else{const{username,password}=fields;doLogin({username,password,loginPath:props.signInRequestPath})}})),noHtml5Validate:!0,showErrorList:!1,advancedProperties:props.advancedProperties,customValidate:(formData,errors)=>(0,validation_1.validateForm)(formData,errors,props.customValidation||[]),widgets},props.forgotPasswordPath?react_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:500,gutterBottom:!0,sx:{mt:2}},react_1.default.createElement(Link_1.Link,{href:props.forgotPasswordPath,color:"primary.dark"},"Forgot your password?")):null,react_1.default.createElement(material_1.Box,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",mt:2},react_1.default.createElement(material_1.Button,{type:"submit",variant:"contained",disabled:Boolean(isLoading),sx:{flex:1}},isLoading?react_1.default.createElement(material_1.CircularProgress,{sx:{color:"white"},size:24}):props.submitButtonTitle||"Send"))),props.signInPath?react_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:500,gutterBottom:!0,sx:{mt:3}},react_1.default.createElement(Link_1.Link,{href:props.signInPath,color:"primary.dark"},"Already have an account? Sign in")):null,props.signUpPath?react_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:500,gutterBottom:!0,sx:{mt:3}},react_1.default.createElement(Link_1.Link,{href:props.signUpPath,color:"primary.dark"},"No account? Sign up")):null));var title}},"./packages/react-material-ui/dist/components/submodules/DrawerForm/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{queryResource,viewMode,widgets,formSchema,formUiSchema,formData,customValidate,submitButtonTitle,onClose,cancelButtonTitle,children,onSuccess,onError,onDeleteSuccess,onDeleteError,onPrevious,onNext,isLoading,viewIndex,rowsPerPage,currentPage,pageCount}=props,otherProps=__rest(props,["queryResource","viewMode","widgets","formSchema","formUiSchema","formData","customValidate","submitButtonTitle","onClose","cancelButtonTitle","children","onSuccess","onError","onDeleteSuccess","onDeleteError","onPrevious","onNext","isLoading","viewIndex","rowsPerPage","currentPage","pageCount"]),[fieldValues,setFieldValues]=(0,react_1.useState)(null),{post,patch,del}=(0,react_data_provider_1.default)(),{execute:createItem,isPending:isLoadingCreation}=(0,react_data_provider_1.useQuery)((data=>post({uri:`/${queryResource}`,body:data})),!1,{onSuccess,onError}),{execute:editItem,isPending:isLoadingEdit}=(0,react_data_provider_1.useQuery)((data=>patch({uri:`/${queryResource}/${data.id}`,body:data})),!1,{onSuccess,onError}),{execute:deleteItem,isPending:isLoadingDelete}=(0,react_data_provider_1.useQuery)((data=>del({uri:`/${queryResource}/${data.id}`})),!1,{onSuccess:onDeleteSuccess,onError:onDeleteError}),_widgets=Object.assign({TextWidget:CustomWidgets_1.CustomTextFieldWidget},widgets);return react_1.default.createElement(material_1.Drawer,{open:null!==viewMode,anchor:"right"},react_1.default.createElement(material_1.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,mt:2,ml:1},react_1.default.createElement(material_1.Typography,{variant:"h5",sx:{marginLeft:3,fontSize:"20px"}},"creation"===viewMode?"Add Data":"edit"===viewMode?"Edit Data":"View Data"),react_1.default.createElement(material_1.IconButton,{"aria-label":"close",onClick:onClose,sx:{position:"absolute",right:theme=>theme.spacing(1),top:theme=>theme.spacing(1),color:theme=>theme.palette.grey[500]}},react_1.default.createElement(Close_1.default,null))),react_1.default.createElement(material_1.Box,{padding:4,sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between"}},react_1.default.createElement(SchemaForm_1.SchemaForm.Form,Object.assign({schema:Object.assign(Object.assign({},formSchema),{required:(null==formSchema?void 0:formSchema.required)||[],properties:(null==formSchema?void 0:formSchema.properties)||{},title:""}),uiSchema:Object.assign(Object.assign({},formUiSchema),{"ui:submitButtonOptions":{norender:!0}}),validator:validator_ajv6_1.default,noHtml5Validate:!0,showErrorList:!1,formData,widgets:_widgets,customValidate,readonly:"details"===viewMode,onChange:values=>__awaiter(void 0,void 0,void 0,(function*(){setFieldValues(values.formData)}))},otherProps),children),react_1.default.createElement(material_1.Box,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"creation"===viewMode?"flex-end":"space-between"},"creation"!==viewMode&&react_1.default.createElement(material_1.Box,{display:"flex",alignItems:"center",gap:2},react_1.default.createElement(material_1.IconButton,{onClick:()=>onPrevious(formData),disabled:isLoading||1===currentPage&&1===viewIndex},react_1.default.createElement(ChevronLeft_1.default,{sx:{color:"#333"}})),react_1.default.createElement(material_1.Typography,null,isLoading?"":`Row ${viewIndex}/${rowsPerPage}`),react_1.default.createElement(material_1.IconButton,{onClick:()=>onNext(formData),disabled:isLoading||currentPage===pageCount&&viewIndex===rowsPerPage},react_1.default.createElement(ChevronRight_1.default,{sx:{color:"#333"}}))),react_1.default.createElement(material_1.Box,{display:"flex",flexDirection:"row",alignItems:"center",gap:2},props.customFooterContent,"creation"===viewMode&&!props.hideCancelButton&&react_1.default.createElement(material_1.Button,{variant:"outlined",onClick:onClose,sx:{flex:1}},cancelButtonTitle||"Cancel"),"edit"===viewMode&&!props.hideCancelButton&&react_1.default.createElement(material_1.Button,{variant:"contained",color:"error",onClick:()=>deleteItem(formData),sx:{flex:1}},isLoadingDelete?react_1.default.createElement(material_1.CircularProgress,{sx:{color:"white"},size:24}):cancelButtonTitle||"Delete"),"details"===viewMode&&!props.hideCancelButton&&react_1.default.createElement(material_1.Button,{variant:"outlined",onClick:onClose,sx:{flex:1}},cancelButtonTitle||"Close"),"details"!==viewMode&&react_1.default.createElement(material_1.Button,{type:"submit",variant:"contained",disabled:isLoadingCreation||isLoadingEdit||isLoadingDelete,onClick:()=>__awaiter(void 0,void 0,void 0,(function*(){"creation"===viewMode&&(yield createItem(fieldValues)),"edit"===viewMode&&(yield editItem(fieldValues))})),sx:{flex:1}},isLoadingCreation||isLoadingEdit?react_1.default.createElement(material_1.CircularProgress,{sx:{color:"white"},size:24}):submitButtonTitle||"Save")))))}},"./packages/react-material-ui/dist/components/submodules/Filter/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),Filter_1=__webpack_require__("./packages/react-material-ui/dist/components/Filter/index.js"),useCrudRoot_1=__webpack_require__("./packages/react-material-ui/dist/modules/crud/useCrudRoot.js");exports.default=props=>{const{filters,updateSearch,simpleFilter,updateSimpleFilter,externalSearch,filterValues,setFilterValues}=(0,useCrudRoot_1.useCrudRoot)(),hasExternalSearch=externalSearch&&Object.values(externalSearch).filter((value=>value)).length>0,reduceFilters=(_filterValues,format)=>filters.reduce(((acc,filter)=>{const value=_filterValues[filter.id];if(!filter.operator)return acc;if(void 0===value)return acc;const data="simpleFilter"===format?`||$${filter.operator}||${value}`:{[`$${filter.operator}`]:value};return Object.assign(Object.assign({},acc),{[filter.id]:null===value||"all"===value||""===value?null:data})}),{});(0,react_1.useEffect)((()=>{if(hasExternalSearch||(updateSearch(null),updateSimpleFilter(reduceFilters(filterValues,"simpleFilter"),!0)),hasExternalSearch){const combinedFilter=Object.assign(Object.assign({},reduceFilters(filterValues,"search")),externalSearch);updateSearch(combinedFilter,!0)}}),[externalSearch]);const onFilterChange=(id,value,updateFilter)=>{setFilterValues((prv=>{const newFilterValues=Object.assign(Object.assign({},prv),{[id]:value});return updateFilter&&updateSimpleFilter(reduceFilters(newFilterValues,"simpleFilter"),!0),newFilterValues}))},filterObjs=filters.map((filter=>{var _a,_b;const{id,label,columns,type,options,operator,isLoading,size,resource,resourceValue,resourceLabel}=filter,initialValue=null===(_a=String(null==simpleFilter?void 0:simpleFilter[id]))||void 0===_a?void 0:_a.split("||")[2],value=null!==(_b=filterValues[id])&&void 0!==_b?_b:initialValue,commonFields={id,label,columns,isLoading,size,operator};switch(type){case"text":return Object.assign(Object.assign({},commonFields),{type,value,onChange:val=>onFilterChange(id,val,!1),onDebouncedSearchChange:val=>onFilterChange(id,val,!0)});case"autocomplete":return Object.assign(Object.assign({},commonFields),{type,options,value,resource,resourceLabel,resourceValue,onChange:val=>onFilterChange(id,val,!0)});case"select":return Object.assign(Object.assign({},commonFields),{type,options,value,onChange:val=>onFilterChange(id,val,!1)});case"date":return Object.assign(Object.assign({},commonFields),{type,options,value,onChange:val=>onFilterChange(id,val,!1),onDebouncedSearchChange:val=>onFilterChange(id,val,!0)})}}));return 0===filters.length?null:react_1.default.createElement(Filter_1.Filter,Object.assign({},props,{filters:filterObjs}))}},"./packages/react-material-ui/dist/components/submodules/ModalForm/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{queryResource,viewMode,widgets,onClose,formSchema,formUiSchema,formData,customValidate,submitButtonTitle,cancelButtonTitle,children,onSuccess,onError,onDeleteSuccess,onDeleteError,onPrevious,onNext,isLoading,viewIndex,rowsPerPage,currentPage,pageCount}=props,otherProps=__rest(props,["queryResource","viewMode","widgets","onClose","formSchema","formUiSchema","formData","customValidate","submitButtonTitle","cancelButtonTitle","children","onSuccess","onError","onDeleteSuccess","onDeleteError","onPrevious","onNext","isLoading","viewIndex","rowsPerPage","currentPage","pageCount"]),{post,patch,del}=(0,react_data_provider_1.default)(),{execute:createItem,isPending:isLoadingCreation}=(0,react_data_provider_1.useQuery)((data=>post({uri:`/${queryResource}`,body:data})),!1,{onSuccess,onError}),{execute:editItem,isPending:isLoadingEdit}=(0,react_data_provider_1.useQuery)((data=>patch({uri:`/${queryResource}/${data.id}`,body:data})),!1,{onSuccess,onError}),{execute:deleteItem,isPending:isLoadingDelete}=(0,react_data_provider_1.useQuery)((data=>del({uri:`/${queryResource}/${data.id}`})),!1,{onSuccess:onDeleteSuccess,onError:onDeleteError}),_widgets=Object.assign({TextWidget:CustomWidgets_1.CustomTextFieldWidget},widgets);return react_1.default.createElement(material_1.Dialog,{open:null!==viewMode,maxWidth:"md",fullWidth:!0,onClose},react_1.default.createElement(material_1.DialogTitle,null,"creation"===viewMode?"Add Data":"edit"===viewMode?"Edit Data":"View Data"),react_1.default.createElement(material_1.IconButton,{"aria-label":"close",onClick:onClose,sx:{position:"absolute",right:theme=>theme.spacing(1),top:theme=>theme.spacing(1),color:theme=>theme.palette.grey[500]}},react_1.default.createElement(Close_1.default,null)),react_1.default.createElement(material_1.DialogContent,null,react_1.default.createElement(SchemaForm_1.SchemaForm.Form,Object.assign({schema:Object.assign(Object.assign({},formSchema),{required:(null==formSchema?void 0:formSchema.required)||[],properties:(null==formSchema?void 0:formSchema.properties)||{},title:""}),uiSchema:formUiSchema,validator:validator_ajv6_1.default,onSubmit:values=>__awaiter(void 0,void 0,void 0,(function*(){const fields=values.formData||{};"creation"===viewMode&&(yield createItem(fields)),"edit"===viewMode&&(yield editItem(fields))})),noHtml5Validate:!0,showErrorList:!1,formData:isLoading?null:formData,widgets:_widgets,customValidate,readonly:"details"===viewMode},otherProps),react_1.default.createElement(react_1.default.Fragment,null,children,react_1.default.createElement(material_1.Box,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"creation"===viewMode?"flex-end":"space-between",mt:4},"creation"!==viewMode&&react_1.default.createElement(material_1.Box,{display:"flex",alignItems:"center",gap:2},react_1.default.createElement(material_1.IconButton,{onClick:()=>onPrevious(formData),disabled:isLoading||1===currentPage&&1===viewIndex},react_1.default.createElement(ChevronLeft_1.default,{sx:{color:"#333"}})),react_1.default.createElement(material_1.Typography,null,isLoading?"":`Row ${viewIndex}/${rowsPerPage}`),react_1.default.createElement(material_1.IconButton,{onClick:()=>onNext(formData),disabled:isLoading||currentPage===pageCount&&viewIndex===rowsPerPage},react_1.default.createElement(ChevronRight_1.default,{sx:{color:"#333"}}))),react_1.default.createElement(material_1.Box,{display:"flex",flexDirection:"row",alignItems:"center",mt:2,gap:2},props.customFooterContent,"creation"===viewMode&&!props.hideCancelButton&&react_1.default.createElement(material_1.Button,{variant:"outlined",onClick:onClose,sx:{flex:1}},cancelButtonTitle||"Cancel"),"edit"===viewMode&&!props.hideCancelButton&&react_1.default.createElement(material_1.Button,{variant:"contained",color:"error",onClick:()=>deleteItem(formData),sx:{flex:1}},isLoadingDelete?react_1.default.createElement(material_1.CircularProgress,{sx:{color:"white"},size:24}):cancelButtonTitle||"Delete"),"details"===viewMode&&!props.hideCancelButton&&react_1.default.createElement(material_1.Button,{variant:"outlined",onClick:onClose,sx:{flex:1}},cancelButtonTitle||"Close"),"details"!==viewMode&&react_1.default.createElement(material_1.Button,{type:"submit",variant:"contained",disabled:isLoadingCreation||isLoadingEdit||isLoadingDelete,sx:{flex:1}},isLoadingCreation||isLoadingEdit?react_1.default.createElement(material_1.CircularProgress,{sx:{color:"white"},size:24}):submitButtonTitle||"Save")))))))}},"./packages/react-material-ui/dist/components/submodules/Table/MobileRowModal.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),get_1=__importDefault(__webpack_require__("./node_modules/lodash/get.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),Close_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/Close.js")),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js");exports.default=({currentRow,onClose,titleSrc})=>{const{headers}=(0,useTableRoot_1.useTableRoot)();return react_1.default.createElement(material_1.Dialog,{open:!!currentRow,fullWidth:!0,onClose},react_1.default.createElement(material_1.Box,{display:"flex",justifyContent:"space-between"},titleSrc&&(null==currentRow?void 0:currentRow[titleSrc])&&"string"==typeof currentRow[titleSrc]&&react_1.default.createElement(material_1.Box,{sx:{display:"flex",alignItems:"center",px:3,width:"100%",overflow:"hidden"}},react_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:400,color:"text.primary",sx:{width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},currentRow[titleSrc])),react_1.default.createElement(material_1.IconButton,{"aria-label":"close",onClick:onClose,sx:{color:theme=>theme.palette.grey[500]}},react_1.default.createElement(Close_1.default,null))),react_1.default.createElement(material_1.DialogContent,{sx:{display:"block"}},react_1.default.createElement(material_1.Box,null,null==headers?void 0:headers.map((header=>header.hide||!header.label?null:react_1.default.createElement(material_1.Box,{key:header.id,display:"flex",sx:{mb:2,alignItems:"center"}},react_1.default.createElement(material_1.Box,{sx:{display:"block",alignItems:"center",fontSize:12,width:70,minWidth:70,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",paddingRight:"3px",borderRight:"1px solid #ccc",p:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontSize:12}}},header.label),react_1.default.createElement(material_1.Box,{sx:{display:"block",alignItems:"center",fontSize:12,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",paddingLeft:"6px","& p":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontSize:"12px !important"}}},((row,dataOrigin)=>{var _a,_b;const cell=(0,get_1.default)(row,dataOrigin);return cell?"number"==typeof cell||"string"==typeof cell||void 0===cell?react_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:400,color:"text.primary"},null!=cell?cell:""):"component"in cell?cell.component:"title"in cell?react_1.default.createElement(material_1.Tooltip,{title:cell.title},react_1.default.createElement("span",null,null!==(_a=cell.value)&&void 0!==_a?_a:"")):react_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:400,color:"text.primary"},null!==(_b=cell.value)&&void 0!==_b?_b:""):""})(currentRow,header.source||header.id))))))))}},"./packages/react-material-ui/dist/components/submodules/Table/constants.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.generateTableTheme=void 0;const utils_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/index.js");exports.generateTableTheme=(theme,customTableTheme)=>(0,utils_1.createTableStyles)(Object.assign({root:Object.assign({display:"flex",flexDirection:"column",flex:1,overflow:"auto"},null==customTableTheme?void 0:customTableTheme.root),table:Object.assign({height:"100%"},null==customTableTheme?void 0:customTableTheme.table),tableContainer:Object.assign({flex:1},null==customTableTheme?void 0:customTableTheme.tableContainer),tableHeader:Object.assign(Object.assign(Object.assign({},theme.typography.caption),{lineHeight:1,fontWeight:500,color:theme.palette.grey[500]}),null==customTableTheme?void 0:customTableTheme.tableHeader),tableHeaderRow:Object.assign({backgroundColor:"#F9FAFB"},null==customTableTheme?void 0:customTableTheme.tableHeaderRow)},customTableTheme))},"./packages/react-material-ui/dist/components/submodules/Table/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),react_2=__webpack_require__("./node_modules/react/index.js"),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),Edit_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/Edit.js")),Delete_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/Delete.js")),ChevronRight_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/ChevronRight.js")),Add_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/Add.js")),react_data_provider_1=__importStar(__webpack_require__("./packages/react-data-provider/dist/index.js")),get_1=__importDefault(__webpack_require__("./node_modules/lodash/get.js")),Table_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/index.js")),constants_1=__webpack_require__("./packages/react-material-ui/dist/components/submodules/Table/constants.js"),Filter_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/submodules/Filter/index.js")),useCrudRoot_1=__webpack_require__("./packages/react-material-ui/dist/modules/crud/useCrudRoot.js"),isMobile_1=__webpack_require__("./packages/react-material-ui/dist/utils/isMobile.js"),MobileRowModal_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/submodules/Table/MobileRowModal.js"));exports.default=props=>{var _a;const theme=(0,material_1.useTheme)(),{filters}=(0,useCrudRoot_1.useCrudRoot)(),[mobileCurrentRow,setMobileCurrentRow]=(0,react_1.useState)(null),{del}=(0,react_data_provider_1.default)(),{execute:deleteItem}=(0,react_data_provider_1.useQuery)((id=>del({uri:`/${props.queryResource}/${id}`})),!1,{onSuccess:data=>{props.refresh&&props.refresh(),props.onDeleteSuccess&&props.onDeleteSuccess(data)},onError:props.onDeleteError}),tableTheme=(0,constants_1.generateTableTheme)(theme,props.tableTheme),noActions=props.hideEditButton&&props.hideDeleteButton&&props.hideDetailsButton,tableHeaders=(0,react_2.useMemo)((()=>[...props.tableSchema,...props.hideActionsColumn||noActions?[]:[{id:"actions",label:""}]]),[props]),tableRows=(0,react_2.useMemo)((()=>(props.data||[]).map(((row,index)=>{const rowData=row,newData=Object.assign(Object.assign({},rowData),{id:String(rowData.id)});return tableHeaders.forEach((schemaItem=>{if(schemaItem.format){const formattedData=schemaItem.format(rowData);return["string","number"].includes(typeof formattedData)?void(newData[schemaItem.id]=schemaItem.format(rowData)):void(newData[schemaItem.id]={component:schemaItem.format(rowData)})}if(schemaItem.renderTableCell){const cellData=(0,get_1.default)(row,schemaItem.source||schemaItem.id);newData[schemaItem.id]=schemaItem.renderTableCell(cellData,rowData)}else;})),Object.assign(Object.assign({},newData),{actions:{component:react_1.default.createElement(material_1.Box,{display:"flex"},!props.hideEditButton&&react_1.default.createElement(material_1.IconButton,{onClick:e=>{e.stopPropagation(),props.onAction&&props.onAction({action:"edit",row:rowData,index})},"data-testid":"edit-button"},react_1.default.createElement(Edit_1.default,null)),!props.hideDeleteButton&&react_1.default.createElement(material_1.IconButton,{onClick:e=>{e.stopPropagation(),deleteItem(rowData.id)},"data-testid":"delete-button"},react_1.default.createElement(Delete_1.default,null)),!props.hideDetailsButton&&react_1.default.createElement(material_1.IconButton,{onClick:e=>{e.stopPropagation(),props.onAction&&props.onAction({action:props.hideEditButton?"edit":"details",row:rowData,index})},"data-testid":"details-button"},react_1.default.createElement(ChevronRight_1.default,null)))}})}))),[props,tableHeaders]);return react_1.default.createElement(material_1.Box,null,react_1.default.createElement(Table_1.default.Root,Object.assign({rows:tableRows,headers:tableHeaders,total:props.total,pageCount:props.pageCount,sx:tableTheme.root,tableQueryState:props.tableQueryState,updateTableQueryState:props.setTableQueryState},props.tableRootProps),react_1.default.createElement(material_1.Box,{sx:{display:"flex",flexDirection:{xs:"column",lg:"row"},alignItems:"flex-start",justifyContent:"space-between",my:4}},filters&&react_1.default.createElement(Filter_1.default,{orderableListCacheKey:props.filterCacheKey,cacheApiPath:props.cacheApiPath}),react_1.default.createElement(material_1.Box,{sx:{display:"flex",alignItems:"center",justifyContent:{xs:"space-between",lg:"initial"},mt:{xs:filters?2:0,lg:0},ml:{xs:0,lg:2},width:{xs:"100%",lg:"auto"}}},!1!==props.reordable&&react_1.default.createElement(Table_1.default.ColumnOrderable,{hasAllOption:props.hasAllOption,orderableListCacheKey:props.tableCacheKey,cacheApiPath:props.cacheApiPath}),react_1.default.createElement(material_1.Box,{display:"flex",alignItems:"center",justifyContent:"flex-end"},props.additionalFilterRowContent,!props.hideAddButton&&react_1.default.createElement(material_1.Button,{variant:"contained",onClick:props.onAddNew,startIcon:props.addButtonStartIcon||react_1.default.createElement(Add_1.default,null),endIcon:props.addButtonEndIcon,sx:{textTransform:"capitalize",textWrap:"nowrap",marginLeft:2}},props.addButtonContent||"Add new")))),react_1.default.createElement(material_1.TableContainer,{sx:tableTheme.tableContainer},react_1.default.createElement(Table_1.default.Table,Object.assign({stickyHeader:!0,variant:"outlined",sx:tableTheme.table},props.tableProps),react_1.default.createElement(material_1.TableHead,null,react_1.default.createElement(material_1.TableRow,{sx:tableTheme.tableHeaderRow},props.hasCheckboxes&&react_1.default.createElement(Table_1.default.HeaderCheckbox,null),react_1.default.createElement(Table_1.default.HeaderCells,{renderCell:cell=>react_1.default.createElement(Table_1.default.HeaderCell,{key:cell.id,cell,sx:tableTheme.tableHeaderCell})}))),react_1.default.createElement(material_1.TableBody,null,Boolean(!props.isPending&&!(null===(_a=props.data)||void 0===_a?void 0:_a.length))&&react_1.default.createElement(material_1.TableRow,{sx:tableTheme.tableBodyRow},react_1.default.createElement(material_1.TableCell,{colSpan:tableHeaders.length,sx:{textAlign:"center"}},"No records found.")),react_1.default.createElement(Table_1.default.BodyRows,{renderRow:(row,labelId)=>react_1.default.createElement(Table_1.default.BodyRow,Object.assign({key:row.id,row,hasCheckboxes:props.hasCheckboxes,sx:tableTheme.tableBodyRow},isMobile_1.isMobile&&props.allowModalPreview&&{onClick:()=>setMobileCurrentRow(row)}),props.hasCheckboxes&&react_1.default.createElement(Table_1.default.BodyCheckboxes,{row,labelId}),react_1.default.createElement(Table_1.default.BodyCell,{row,sx:tableTheme.tableBodyCell}))})))),"numeric"===props.paginationStyle?react_1.default.createElement(material_1.Box,{mt:2},react_1.default.createElement(Table_1.default.PaginationNumbers,null)):react_1.default.createElement(Table_1.default.Pagination,Object.assign({variant:"outlined"},isMobile_1.isMobile&&{labelRowsPerPage:"per page:",sx:{display:"flex",justifyContent:"center","& .MuiTablePagination-selectLabel":{paddingLeft:"10px"},"& .MuiToolbar-root":{padding:0},"& .MuiTablePagination-spacer":{display:"none"},"& .MuiTablePagination-input":{marginRight:0,marginLeft:0},"& .MuiTablePagination-actions":{marginLeft:"0 !important"}}})),props.allowModalPreview&&isMobile_1.isMobile&&react_1.default.createElement(MobileRowModal_1.default,{currentRow:mobileCurrentRow,onClose:()=>{setMobileCurrentRow(null)},titleSrc:props.mobileModalTitleSrc})))}},"./packages/react-material-ui/dist/hooks/useSettingsStorage.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useSettingsStorage=void 0;const react_1=__webpack_require__("./node_modules/react/index.js"),debounce_1=__importDefault(__webpack_require__("./node_modules/lodash/debounce.js")),react_data_provider_1=__importStar(__webpack_require__("./packages/react-data-provider/dist/index.js")),react_auth_provider_1=__webpack_require__("./packages/react-auth-provider/dist/index.js"),parseSettingsToDataString=data=>data.replace(/"/g,"'"),getSettingsFromStorage=params=>{const storageItem=JSON.parse(localStorage.getItem(params.type));if(!storageItem)return[];const settingsItem=storageItem.find((({assignee,key})=>assignee.id===params.assignee.id&&key===params.key));return settingsItem?settingsItem.data:[]};exports.useSettingsStorage=props=>{const[cacheId,setCacheId]=(0,react_1.useState)(""),[settings,setSettings]=(0,react_1.useState)([]),auth=(0,react_auth_provider_1.useAuth)(),{get,put,del}=(0,react_data_provider_1.default)(),cacheConfig={key:props.key||window.location.pathname,type:props.type,assignee:{id:(null==auth?void 0:auth.user)?auth.user.id:""}},{execute:createCache}=(0,react_data_provider_1.useQuery)((cache=>put({uri:`${props.cacheApiPath}/${crypto.randomUUID()}`,body:Object.assign(Object.assign({},cacheConfig),{data:cache})})),!1,{onSuccess:res=>setCacheId(res.id)}),{execute:updateCache}=(0,react_data_provider_1.useQuery)((list=>put({uri:`${props.cacheApiPath}/${cacheId}`,body:Object.assign(Object.assign({},cacheConfig),{data:parseSettingsToDataString(JSON.stringify(list))})})),!1,{onSuccess:res=>setCacheId(res.id)}),{execute:deleteCache}=(0,react_data_provider_1.useQuery)((()=>del({uri:`${props.cacheApiPath}/${cacheId}`})),!1,{onSuccess:()=>setCacheId("")}),{execute:fetchOrCreateCache}=(0,react_data_provider_1.useQuery)((()=>get({uri:props.cacheApiPath})),!1,{onSuccess:fetchedData=>{const cachedSettings=(params=>{const settingsItem=params.cacheList.find((item=>item.key===params.key&&item.type===params.type&&item.assignee.id===params.assignee.id));return settingsItem?Object.assign(Object.assign({},settingsItem),{data:(data=settingsItem.data,JSON.parse(data.replace(/'/g,'"')))}):null;var data})(Object.assign(Object.assign({},cacheConfig),{cacheList:fetchedData}));cachedSettings?cachedSettings&&(setCacheId(cachedSettings.id),getSettingsFromStorage(cacheConfig).length||(setSettings(cachedSettings.data),props.setListCallback(cachedSettings.data))):createCache(parseSettingsToDataString(JSON.stringify(props.data)))}}),debouncedCacheUpdate=(0,debounce_1.default)((items=>updateCache(items)),1500);return(0,react_1.useEffect)((()=>{const storageData=getSettingsFromStorage(cacheConfig);storageData.length&&(setSettings(storageData),props.setListCallback(storageData)),props.cacheApiPath&&fetchOrCreateCache()}),[]),{settings,updateSettings:items=>{setSettings(items),(params=>{const storageItem=JSON.parse(localStorage.getItem(params.type));if(!storageItem)return void localStorage.setItem(params.type,JSON.stringify([params]));const settingsItemIndex=storageItem.findIndex((item=>item.assignee.id===params.assignee.id&&item.key===params.key));settingsItemIndex>-1?storageItem[settingsItemIndex]=params:storageItem.push(params),localStorage.setItem(params.type,JSON.stringify(storageItem))})(Object.assign(Object.assign({},cacheConfig),{data:items})),props.cacheApiPath&&debouncedCacheUpdate(items)},clearSettings:()=>{(params=>{const storageItem=JSON.parse(localStorage.getItem(params.type));if(!storageItem||!(null==storageItem?void 0:storageItem.length))return;let updatedStorageItem=[...storageItem];const settingsItemIndex=storageItem.findIndex((({assignee,key})=>assignee.id===params.assignee.id&&key===params.key));settingsItemIndex>-1&&(updatedStorageItem=storageItem.splice(settingsItemIndex,1)),localStorage.setItem(params.type,JSON.stringify(updatedStorageItem))})(cacheConfig),props.cacheApiPath&&deleteCache()}}}},"./packages/react-material-ui/dist/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__exportStar=this&&this.__exportStar||function(m,exports1){for(var p in m)"default"===p||Object.prototype.hasOwnProperty.call(exports1,p)||__createBinding(exports1,m,p)},__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormLabel=exports.Breadcrumbs=exports.OtpInput=exports.UsersModule=exports.CrudModule=exports.AuthModule=exports.FormFieldSkeleton=exports.SchemaForm=exports.Filter=exports.SimpleForm=exports.SelectField=exports.AutocompleteField=exports.SearchField=exports.TextField=exports.Text=exports.useTable=exports.Table=exports.Switch=exports.Select=exports.SideModal=exports.RadioGroup=exports.Notifications=exports.Navbar=exports.Link=exports.Image=exports.HeaderAccount=exports.FormTemplate=exports.OrderableDropDown=exports.Dropdown=exports.Drawer=exports.Dialog=exports.AppBarNav=exports.AppBarMain=exports.AppBarDrawer=exports.AppBarRoot=exports.AppBar=exports.Checkbox=exports.Avatar=exports.createConfig=exports.RocketsProvider=void 0;var RocketsProvider_1=__webpack_require__("./packages/react-material-ui/dist/components/RocketsProvider/index.js");Object.defineProperty(exports,"RocketsProvider",{enumerable:!0,get:function(){return __importDefault(RocketsProvider_1).default}});var utils_1=__webpack_require__("./packages/react-material-ui/dist/components/RocketsProvider/utils.js");Object.defineProperty(exports,"createConfig",{enumerable:!0,get:function(){return __importDefault(utils_1).default}});var Avatar_1=__webpack_require__("./packages/react-material-ui/dist/components/Avatar/index.js");Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return Avatar_1.Avatar}});var Checkbox_1=__webpack_require__("./packages/react-material-ui/dist/components/Checkbox/index.js");Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return Checkbox_1.Checkbox}});var AppBar_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/index.js");Object.defineProperty(exports,"AppBar",{enumerable:!0,get:function(){return AppBar_1.AppBar}});var AppBarRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarRoot.js");Object.defineProperty(exports,"AppBarRoot",{enumerable:!0,get:function(){return AppBarRoot_1.AppBarRoot}});var AppBarDrawer_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarDrawer.js");Object.defineProperty(exports,"AppBarDrawer",{enumerable:!0,get:function(){return AppBarDrawer_1.AppBarDrawer}});var AppBarMain_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarMain.js");Object.defineProperty(exports,"AppBarMain",{enumerable:!0,get:function(){return AppBarMain_1.AppBarMain}});var AppBarNav_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarNav.js");Object.defineProperty(exports,"AppBarNav",{enumerable:!0,get:function(){return AppBarNav_1.AppBarNav}}),__exportStar(__webpack_require__("./packages/react-material-ui/dist/components/AppBar/hooks/index.js"),exports);var Dialog_1=__webpack_require__("./packages/react-material-ui/dist/components/Dialog/index.js");Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return Dialog_1.Dialog}});var Drawer_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/index.js");Object.defineProperty(exports,"Drawer",{enumerable:!0,get:function(){return Drawer_1.Drawer}});var Dropdown_1=__webpack_require__("./packages/react-material-ui/dist/components/Dropdown/index.js");Object.defineProperty(exports,"Dropdown",{enumerable:!0,get:function(){return Dropdown_1.Dropdown}});var OrderableDropDown_1=__webpack_require__("./packages/react-material-ui/dist/components/OrderableDropDown/index.js");Object.defineProperty(exports,"OrderableDropDown",{enumerable:!0,get:function(){return OrderableDropDown_1.OrderableDropDown}});var FormTemplate_1=__webpack_require__("./packages/react-material-ui/dist/components/FormTemplate/index.js");Object.defineProperty(exports,"FormTemplate",{enumerable:!0,get:function(){return FormTemplate_1.FormTemplate}});var HeaderAccount_1=__webpack_require__("./packages/react-material-ui/dist/components/HeaderAccount/index.js");Object.defineProperty(exports,"HeaderAccount",{enumerable:!0,get:function(){return HeaderAccount_1.HeaderAccount}});var Image_1=__webpack_require__("./packages/react-material-ui/dist/components/Image/index.js");Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return Image_1.Image}});var Link_1=__webpack_require__("./packages/react-material-ui/dist/components/Link/index.js");Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return Link_1.Link}});var Navbar_1=__webpack_require__("./packages/react-material-ui/dist/components/Navbar/index.js");Object.defineProperty(exports,"Navbar",{enumerable:!0,get:function(){return Navbar_1.Navbar}});var Notifications_1=__webpack_require__("./packages/react-material-ui/dist/components/Notifications/index.js");Object.defineProperty(exports,"Notifications",{enumerable:!0,get:function(){return Notifications_1.Notifications}});var RadioGroup_1=__webpack_require__("./packages/react-material-ui/dist/components/RadioGroup/index.js");Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:function(){return RadioGroup_1.RadioGroup}});var SideModal_1=__webpack_require__("./packages/react-material-ui/dist/components/SideModal/index.js");Object.defineProperty(exports,"SideModal",{enumerable:!0,get:function(){return SideModal_1.SideModal}});var Select_1=__webpack_require__("./packages/react-material-ui/dist/components/Select/index.js");Object.defineProperty(exports,"Select",{enumerable:!0,get:function(){return Select_1.Select}});var Switch_1=__webpack_require__("./packages/react-material-ui/dist/components/Switch/index.js");Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return Switch_1.Switch}});const Table_1=__importStar(__webpack_require__("./packages/react-material-ui/dist/components/Table/index.js"));exports.Table=Table_1.default,Object.defineProperty(exports,"useTable",{enumerable:!0,get:function(){return Table_1.useTable}}),__exportStar(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/index.js"),exports),__exportStar(__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/index.js"),exports);var Text_1=__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js");Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return __importDefault(Text_1).default}});var TextField_1=__webpack_require__("./packages/react-material-ui/dist/components/TextField/index.js");Object.defineProperty(exports,"TextField",{enumerable:!0,get:function(){return TextField_1.TextField}});var SearchField_1=__webpack_require__("./packages/react-material-ui/dist/components/SearchField/index.js");Object.defineProperty(exports,"SearchField",{enumerable:!0,get:function(){return __importDefault(SearchField_1).default}});var AutocompleteField_1=__webpack_require__("./packages/react-material-ui/dist/components/AutocompleteField/index.js");Object.defineProperty(exports,"AutocompleteField",{enumerable:!0,get:function(){return __importDefault(AutocompleteField_1).default}});var SelectField_1=__webpack_require__("./packages/react-material-ui/dist/components/SelectField/index.js");Object.defineProperty(exports,"SelectField",{enumerable:!0,get:function(){return SelectField_1.SelectField}});var SimpleForm_1=__webpack_require__("./packages/react-material-ui/dist/components/SimpleForm/index.js");Object.defineProperty(exports,"SimpleForm",{enumerable:!0,get:function(){return __importDefault(SimpleForm_1).default}});var Filter_1=__webpack_require__("./packages/react-material-ui/dist/components/Filter/index.js");Object.defineProperty(exports,"Filter",{enumerable:!0,get:function(){return Filter_1.Filter}});var SchemaForm_1=__webpack_require__("./packages/react-material-ui/dist/components/SchemaForm/index.js");Object.defineProperty(exports,"SchemaForm",{enumerable:!0,get:function(){return SchemaForm_1.SchemaForm}});var FormFieldSkeleton_1=__webpack_require__("./packages/react-material-ui/dist/components/FormFieldSkeleton/index.js");Object.defineProperty(exports,"FormFieldSkeleton",{enumerable:!0,get:function(){return FormFieldSkeleton_1.FormFieldSkeleton}});var auth_1=__webpack_require__("./packages/react-material-ui/dist/modules/auth/index.js");Object.defineProperty(exports,"AuthModule",{enumerable:!0,get:function(){return auth_1.AuthModule}});var crud_1=__webpack_require__("./packages/react-material-ui/dist/modules/crud/index.js");Object.defineProperty(exports,"CrudModule",{enumerable:!0,get:function(){return __importDefault(crud_1).default}});var users_1=__webpack_require__("./packages/react-material-ui/dist/modules/users/index.js");Object.defineProperty(exports,"UsersModule",{enumerable:!0,get:function(){return __importDefault(users_1).default}});var OtpInput_1=__webpack_require__("./packages/react-material-ui/dist/components/OtpInput/index.js");Object.defineProperty(exports,"OtpInput",{enumerable:!0,get:function(){return __importDefault(OtpInput_1).default}});var Breadcrumbs_1=__webpack_require__("./packages/react-material-ui/dist/components/Breadcrumbs/index.js");Object.defineProperty(exports,"Breadcrumbs",{enumerable:!0,get:function(){return __importDefault(Breadcrumbs_1).default}});var FormLabel_1=__webpack_require__("./packages/react-material-ui/dist/components/FormLabel/index.js");Object.defineProperty(exports,"FormLabel",{enumerable:!0,get:function(){return FormLabel_1.FormLabel}})},"./packages/react-material-ui/dist/modules/auth/constants.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resetPasswordModuleProps=exports.forgotPasswordModuleProps=exports.signUpModuleProps=exports.signInModuleProps=void 0,exports.signInModuleProps={signInRequestPath:"/auth/login",forgotPasswordPath:"/forgot-password",signUpPath:"/sign-up",query:{uri:"",method:""}},exports.signUpModuleProps={signInPath:"/sign-in",query:{uri:"/user",method:"post"}},exports.forgotPasswordModuleProps={signInPath:"/sign-in",query:{uri:"/auth/recovery/password",method:"post"}},exports.resetPasswordModuleProps={signInPath:"/sign-in",query:{uri:"/auth/recovery/password",method:"patch"}}},"./packages/react-material-ui/dist/modules/auth/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AuthModule=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),AuthForm_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/submodules/AuthForm/index.js")),constants_1=__webpack_require__("./packages/react-material-ui/dist/modules/auth/constants.js");exports.AuthModule=props=>{const defaultModuleProps={signIn:constants_1.signInModuleProps,signUp:constants_1.signUpModuleProps,forgotPassword:constants_1.forgotPasswordModuleProps,resetPassword:constants_1.resetPasswordModuleProps}[props.route],authQuery=Object.assign(Object.assign({},defaultModuleProps.query),props.query);return react_1.default.createElement(AuthForm_1.default,Object.assign({},props.formProps,defaultModuleProps,props,{query:authQuery}))}},"./packages/react-material-ui/dist/modules/crud/CrudRoot.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),useCrudRoot_1=__webpack_require__("./packages/react-material-ui/dist/modules/crud/useCrudRoot.js"),http_1=__webpack_require__("./packages/react-material-ui/dist/utils/http/index.js");exports.default=props=>{const{filters,search,updateSearch,simpleFilter,updateSimpleFilter,filterCallback,externalSearch,children,navigate}=props,searchParams=new URLSearchParams(window.location.search),[filterValues,setFilterValues]=(0,react_1.useState)((null==searchParams?void 0:searchParams.get("filterValues"))&&JSON.parse(searchParams.get("filterValues"))||{});return(0,react_1.useEffect)((()=>{null==filterCallback||filterCallback(filterValues);const newFilterValues=(0,http_1.getSearchParams)(searchParams,{filterValues:JSON.stringify(filterValues)}),hasValues=Object.values(filterValues).filter((value=>value)).length>0;navigate&&navigate(`${window.location.pathname}?${hasValues?newFilterValues:""}`)}),[filterValues]),react_1.default.createElement(useCrudRoot_1.CrudContext.Provider,{value:{filters,search,updateSearch,simpleFilter,updateSimpleFilter,externalSearch,filterValues,setFilterValues}},children)}},"./packages/react-material-ui/dist/modules/crud/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const[drawerViewMode,setDrawerViewMode]=(0,react_2.useState)(null),[selectedRow,setSelectedRow]=(0,react_2.useState)(null),[currentViewIndex,setCurrentViewIndex]=(0,react_2.useState)(0),useTableReturn=(0,useTable_1.default)(props.resource,{callbacks:{onError:props.onFetchError},navigate:props.navigate}),changeCurrentFormData=direction=>{const{data,tableQueryState,setTableQueryState,pageCount}=useTableReturn,isPrevious="previous"===direction,isNext="next"===direction,isFirstItem=0===currentViewIndex,isLastItem=currentViewIndex===data.length-1;isPrevious&&isFirstItem&&1===tableQueryState.page||isNext&&isLastItem&&tableQueryState.page===pageCount||("previous"===direction&&(isFirstItem&&tableQueryState.page>1&&setTableQueryState(Object.assign(Object.assign({},tableQueryState),{page:tableQueryState.page-1})),setCurrentViewIndex(isFirstItem?data.length-1:currentViewIndex-1)),"next"===direction&&(isLastItem&&tableQueryState.page{switch(props.formContainerVariation){case"drawer":default:return DrawerForm_1.default;case"modal":return ModalForm_1.default}}),[props.formContainerVariation]),formProps=(0,react_2.useMemo)((()=>{switch(drawerViewMode){case"creation":default:return props.createFormProps;case"edit":return props.editFormProps;case"details":return props.detailsFormProps}}),[drawerViewMode,props.createFormProps,props.detailsFormProps,props.editFormProps]);(0,react_2.useEffect)((()=>{const{data}=useTableReturn;data&&data.length&&setSelectedRow(data[currentViewIndex])}),[useTableReturn.data,currentViewIndex]);const formOnSuccess=null==formProps?void 0:formProps.onSuccess,formOnDeleteSuccess=null==formProps?void 0:formProps.onDeleteSuccess,enhancedFormProps=Object.assign({},formProps);delete enhancedFormProps.onSuccess,delete enhancedFormProps.onDeleteSuccess;const _a=props.tableProps,{filters}=_a,tableSubmoduleProps=__rest(_a,["filters"]),{isPending,tableQueryState}=useTableReturn;return react_1.default.createElement(CrudRoot_1.default,{filters,search:useTableReturn.search,updateSearch:useTableReturn.updateSearch,simpleFilter:useTableReturn.simpleFilter,updateSimpleFilter:useTableReturn.updateSimpleFilter,filterCallback:props.filterCallback,externalSearch:props.externalSearch,navigate:props.navigate},react_1.default.createElement(material_1.Box,null,react_1.default.createElement(material_1.Box,{mt:4},react_1.default.createElement(Breadcrumbs_1.default,{routes:[{href:"/",label:"Home"},{href:"#",label:props.title||"Table"}]})),props.title?react_1.default.createElement(Text_1.default,{fontFamily:"Inter",fontSize:20,fontWeight:800,mt:4,mb:4},props.title):null,react_1.default.createElement(Table_1.default,Object.assign({queryResource:props.resource,onAction:payload=>{setSelectedRow(payload.row),setDrawerViewMode(payload.action),setCurrentViewIndex(payload.index)},onAddNew:()=>{setSelectedRow(null),setDrawerViewMode("creation"),setCurrentViewIndex(0)},hideAddButton:!props.createFormProps,hideEditButton:!props.editFormProps||props.hideEditButton,hideDeleteButton:props.hideDeleteButton,hideDetailsButton:!props.detailsFormProps||props.hideDetailsButton,filterCallback:props.filterCallback,externalSearch:props.externalSearch,filterCacheKey:props.filterCacheKey,tableCacheKey:props.tableCacheKey,cacheApiPath:props.cacheApiPath,hasCheckboxes:props.enableTableRowSelection,addButtonStartIcon:props.addButtonStartIcon,addButtonEndIcon:props.addButtonEndIcon,addButtonContent:props.addButtonContent,additionalFilterRowContent:props.additionalFilterRowContent},useTableReturn,tableSubmoduleProps)),enhancedFormProps&&react_1.default.createElement(FormComponent,Object.assign({title:props.title,queryResource:props.resource,viewMode:drawerViewMode,formData:selectedRow,onSuccess:data=>{useTableReturn.refresh(),setSelectedRow(null),setDrawerViewMode(null),setCurrentViewIndex(0),formOnSuccess&&formOnSuccess(data)},onDeleteSuccess:data=>{useTableReturn.refresh(),setSelectedRow(null),setDrawerViewMode(null),setCurrentViewIndex(0),formOnDeleteSuccess&&formOnDeleteSuccess(data)},onClose:()=>{setSelectedRow(null),setDrawerViewMode(null),setCurrentViewIndex(0)},onPrevious:()=>changeCurrentFormData("previous"),onNext:()=>changeCurrentFormData("next"),isLoading:isPending,viewIndex:currentViewIndex+1,rowsPerPage:tableQueryState.rowsPerPage,currentPage:tableQueryState.page,pageCount:useTableReturn.pageCount},enhancedFormProps),enhancedFormProps.children)))}},"./packages/react-material-ui/dist/modules/crud/useCrudRoot.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useCrudRoot=exports.CrudContext=void 0;const react_1=__webpack_require__("./node_modules/react/index.js");exports.CrudContext=(0,react_1.createContext)({});exports.useCrudRoot=()=>(0,react_1.useContext)(exports.CrudContext)},"./packages/react-material-ui/dist/modules/users/constants.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DEFAULT_FILTERS=exports.CREATE_EDIT_FORM=exports.headers=void 0;const CustomWidgets_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/index.js");exports.headers=[{id:"id",label:"ID"},{id:"username",label:"Username"},{id:"email",label:"Email"}];const uiSchema={email:{"ui:widget":CustomWidgets_1.CustomTextFieldWidget},username:{"ui:widget":CustomWidgets_1.CustomTextFieldWidget}};exports.CREATE_EDIT_FORM={formSchema:{type:"object",required:["email","username"],properties:{email:{type:"string",title:"Email",minLength:3,format:"email"},username:{type:"string",title:"Username",minLength:3}}},formUiSchema:uiSchema},exports.DEFAULT_FILTERS=[{id:"id",label:"ID",operator:"eq",type:"text",columns:3},{id:"username",label:"Username",operator:"contL",type:"text",columns:3},{id:"email",label:"Email",operator:"contL",type:"text",columns:3}]},"./packages/react-material-ui/dist/modules/users/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{onEditError,onEditSuccess,onCreateSuccess,onCreateError,onDeleteSuccess,onDeleteError}=_a,props=__rest(_a,["onEditError","onEditSuccess","onCreateSuccess","onCreateError","onDeleteSuccess","onDeleteError"]);const tableProps=Object.assign({tableSchema:constants_1.headers,reordable:!0,filters:constants_1.DEFAULT_FILTERS},props.tableProps),createFormProps=Object.assign(Object.assign(Object.assign({},constants_1.CREATE_EDIT_FORM),{onSuccess:onCreateSuccess,onError:onCreateError}),props.createFormProps),editFormProps=Object.assign(Object.assign(Object.assign({},constants_1.CREATE_EDIT_FORM),{onError:onEditError,onSuccess:onEditSuccess,onDeleteSuccess,onDeleteError}),props.editFormProps),detailsFormProps=Object.assign(Object.assign({},constants_1.CREATE_EDIT_FORM),props.detailsFormProps),enhancedProps=Object.assign({},props);return delete enhancedProps.tableProps,delete enhancedProps.createFormProps,delete enhancedProps.editFormProps,delete enhancedProps.detailsFormProps,react_1.default.createElement(crud_1.default,Object.assign({title:"Users",resource:"user",hideDeleteButton:!0,tableProps,createFormProps,editFormProps,detailsFormProps},enhancedProps))}},"./packages/react-material-ui/dist/styles/CustomTemplates/ObjectFieldTemplate.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Grid_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Grid/index.js")),utils_1=__webpack_require__("./node_modules/@rjsf/utils/lib/index.js");exports.default=function ObjectFieldTemplate(props){const{description,title,properties,required,disabled,readonly,uiSchema,idSchema,schema,formData,onAddClick,registry}=props,uiOptions=(0,utils_1.getUiOptions)(uiSchema),TitleFieldTemplate=(0,utils_1.getTemplate)("TitleFieldTemplate",registry,uiOptions),DescriptionFieldTemplate=(0,utils_1.getTemplate)("DescriptionFieldTemplate",registry,uiOptions),{ButtonTemplates:{AddButton}}=registry.templates;return react_1.default.createElement(react_1.default.Fragment,null,title&&react_1.default.createElement(TitleFieldTemplate,{id:(0,utils_1.titleId)(idSchema),title,required,schema,uiSchema,registry}),description&&react_1.default.createElement(DescriptionFieldTemplate,{id:(0,utils_1.descriptionId)(idSchema),description,schema,uiSchema,registry}),react_1.default.createElement(Grid_1.default,{container:!0,spacing:2,style:{marginTop:"10px"}},properties.map(((element,index)=>{var _a;return element.hidden?element.content:react_1.default.createElement(Grid_1.default,{item:!0,xs:(null===(_a=uiSchema[element.name])||void 0===_a?void 0:_a["ui:gridColumns"])||12,key:index,style:{marginBottom:"10px"}},element.content)})),(0,utils_1.canExpand)(schema,uiSchema,formData)&&react_1.default.createElement(Grid_1.default,{container:!0,justifyContent:"flex-end"},react_1.default.createElement(Grid_1.default,{item:!0},react_1.default.createElement(AddButton,{className:"object-property-expand",onClick:onAddClick(schema),disabled:disabled||readonly,uiSchema,registry})))))}},"./packages/react-material-ui/dist/styles/CustomTemplates/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ObjectFieldTemplate=void 0;var ObjectFieldTemplate_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomTemplates/ObjectFieldTemplate.js");Object.defineProperty(exports,"ObjectFieldTemplate",{enumerable:!0,get:function(){return __importDefault(ObjectFieldTemplate_1).default}})},"./packages/react-material-ui/dist/styles/CustomWidgets/ArrayFieldActionButton.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),AddCircleOutline_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/AddCircleOutline.js")),DeleteOutline_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/DeleteOutline.js"));exports.default=props=>{const{type,onClick}=props;return react_1.default.createElement(Box_1.default,{sx:{marginTop:3,marginLeft:1}},react_1.default.createElement(IconButton_1.default,{onClick},"add"===type?react_1.default.createElement(AddCircleOutline_1.default,{color:"primary"}):react_1.default.createElement(DeleteOutline_1.default,null)))}},"./packages/react-material-ui/dist/styles/CustomWidgets/ArrayFieldTemplate.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),utils_1=__webpack_require__("./node_modules/@rjsf/utils/lib/index.js"),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Typography_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Typography/index.js")),ArrayFieldActionButton_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/ArrayFieldActionButton.js"));exports.default=function ArrayFieldTemplate(props){var _a;const{items,canAdd,onAddClick,registry,uiSchema,schema,required,idSchema,title}=props,uiOptions=(0,utils_1.getUiOptions)(uiSchema),ArrayFieldTitleTemplate=(0,utils_1.getTemplate)("ArrayFieldTitleTemplate",registry,uiOptions);return react_1.default.createElement(Box_1.default,{display:"flex",flexDirection:"column",sx:{"& .MuiGrid-container":{marginTop:"0 !important"},"& .field":{flex:1}}},react_1.default.createElement(ArrayFieldTitleTemplate,{idSchema,title:null!==(_a=uiOptions.title)&&void 0!==_a?_a:title,schema,uiSchema,required,registry}),items.map(((el,i)=>{const child=Object.assign(Object.assign({},el.children),{props:Object.assign(Object.assign({},el.children.props),{required:props.required})});return react_1.default.createElement(Box_1.default,{key:el.key,display:"flex",mt:2},child,0===i&&canAdd&&react_1.default.createElement(ArrayFieldActionButton_1.default,{type:"add",onClick:onAddClick}),i>0&&el.hasRemove&&react_1.default.createElement(ArrayFieldActionButton_1.default,{type:"remove",onClick:()=>{el.onDropIndexClick(i)()}}))})),schema.description&&react_1.default.createElement(Typography_1.default,{component:"span",variant:"caption",color:"#9CA3AF"},schema.description))}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomAutocompleteWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);iget({uri:`/${resource}`,queryParams})),!1),resourceOptions=[...Array.isArray(additionalOptions)?additionalOptions:[],...null!==(_b=null==data?void 0:data.map((resource=>({value:resource[null!=resourceValue?resourceValue:"id"],label:resource[null!=resourceLabel?resourceLabel:"name"]}))))&&void 0!==_b?_b:[]],availableOptions=resource?resourceOptions:enumOptions,emptyValue=(multiple=uiMultiple||!!multiple&&void 0!==multiple)?[]:void 0,isEmpty=void 0===value||multiple&&value.length<1||!multiple&&value===emptyValue,controlledValue=(0,react_1.useMemo)((()=>multiple?null==value?void 0:value.map((optionValue=>null==availableOptions?void 0:availableOptions.find((option=>option.value===optionValue)))):null==availableOptions?void 0:availableOptions.find((option=>option.value===value))),[availableOptions,value,multiple]);return(0,react_1.useEffect)((()=>{resource&&execute()}),[JSON.stringify(queryParams)]),react_1.default.createElement(material_1.Autocomplete,{multiple,limitTags,filterOptions:(options,params)=>{const filtered=(0,material_1.createFilterOptions)()(options,params);return selectAll&&filtered.unshift({label:selectAll,value:SelectField_1.allOption.value}),filtered},renderOption:(props,option,state,ownerState)=>renderOption?renderOption(props,option,state,ownerState):react_1.default.createElement("li",Object.assign({},props,{key:option.key}),option.label),options:null!=availableOptions?availableOptions:[],isOptionEqualToValue:option=>option.value===controlledValue,getOptionLabel:option=>null==option?void 0:option.label,size:null!=size?size:"small",value:controlledValue,onChange:(_,newValue)=>onChange(((value,optEmptyVal,options)=>value?Array.isArray(value)?value.find((option=>option.value===SelectField_1.allOption.value))?options.map((option=>option.value)):(null==value?void 0:value.length)<1?[]:[...new Set(value.map((item=>item.value)))]:null==value?void 0:value.value:optEmptyVal)(newValue,emptyValue,availableOptions)),renderInput:params=>react_1.default.createElement(FormFieldSkeleton_1.FormFieldSkeleton,{isLoading:isPending},react_1.default.createElement(TextField_1.TextField,Object.assign({},params,{id,name:id,label:(0,utils_1.labelValue)(label||void 0,hideLabel,!1),required,disabled:disabled||readonly,autoFocus:autofocus,placeholder,error:rawErrors.length>0},textFieldProps,{InputLabelProps:Object.assign(Object.assign({},textFieldProps.InputLabelProps),{shrink:!isEmpty}),SelectProps:Object.assign(Object.assign({},textFieldProps.SelectProps),{multiple}),"aria-describedby":(0,utils_1.ariaDescribedByIds)(id)})))})}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomCheckboxWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Checkbox_1=__webpack_require__("./packages/react-material-ui/dist/components/Checkbox/index.js");exports.default=props=>react_1.default.createElement(Checkbox_1.Checkbox,{checked:props.value,label:props.label,onChange:evt=>props.onChange(evt.target.checked)})},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomCheckboxesWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),Checkbox_1=__webpack_require__("./packages/react-material-ui/dist/components/Checkbox/index.js");exports.default=props=>{const{label,uiSchema,id,disabled,options,value,autofocus,readonly,required,onChange}=props,{enumOptions,enumDisabled}=options,_onChange=option=>({target:{checked}})=>{const all=enumOptions.map((({value})=>value));onChange(checked?((value,selected,all)=>{const at=all.indexOf(value);return selected.slice(0,at).concat(value,selected.slice(at)).sort(((a,b)=>all.indexOf(a)>all.indexOf(b))).filter((item=>""!==item))})(option.value,value,all):((value,selected)=>selected.filter((v=>v!==value)))(option.value,value))};return react_1.default.createElement(material_1.FormControl,null,react_1.default.createElement(material_1.Box,{id,my:1},react_1.default.createElement(material_1.Typography,{variant:"h5"},label),react_1.default.createElement(material_1.Divider,null)),react_1.default.createElement(material_1.Grid,{display:"flex",flexDirection:(null==uiSchema?void 0:uiSchema["ui:inline"])?"row":"column",flexWrap:"wrap",py:2},enumOptions.map(((option,index)=>{const checked=-1!==value.indexOf(option.value),itemDisabled=enumDisabled&&-1!=enumDisabled.indexOf(option.value);return react_1.default.createElement(Checkbox_1.Checkbox,{id:`${id}_${index}`,checked,disabled:disabled||itemDisabled||readonly,autoFocus:autofocus&&0===index,onChange:_onChange(option),key:index,label:option.label,required})}))))}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomEmailFieldWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),CustomTextFieldWidget_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomTextFieldWidget.js"));exports.default=props=>react_1.default.createElement(CustomTextFieldWidget_1.default,Object.assign({},props,{type:"email"}))},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomOtpInputWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i0,disabled:disabled||readonly,InputLabelProps:DisplayInputLabelProps},otherProps),textFieldProps),onChange:value=>{onChange(""===value?options.emptyValue:formatData?formatData(value):value)},onBlur:(value,isComplete)=>onBlur(id,value),onFocus:({target:{value}})=>onFocus(id,value),"aria-describedby":(0,utils_1.ariaDescribedByIds)(id,!!schema.examples)}),Array.isArray(schema.examples)&&react_1.default.createElement("datalist",{id:(0,utils_1.examplesId)(id)},schema.examples.concat(schema.default&&!schema.examples.includes(schema.default)?[schema.default]:[]).map((example=>react_1.default.createElement("option",{key:example,value:example})))))}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomPasswordFieldWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),CustomTextFieldWidget_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomTextFieldWidget.js"));exports.default=props=>{const{uiSchema}=props,passwordStrengthConfig=null==uiSchema?void 0:uiSchema["ui:passwordStrengthConfig"];return react_1.default.createElement(CustomTextFieldWidget_1.default,Object.assign({},props,{uiSchema,passwordStrengthConfig,type:"password"}))}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomRadioWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),RadioGroup_1=__webpack_require__("./packages/react-material-ui/dist/components/RadioGroup/index.js");exports.default=props=>{const{id,schema,options,value,required,disabled,label,onChange}=props,{enumOptions}=options,row=!!options&&options.inline;return react_1.default.createElement(RadioGroup_1.RadioGroup,{id,options:enumOptions,onChange:(_,value)=>{onChange("boolean"==schema.type?"false"!==value:value)},row,value,disabled,required,label})}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomSelectWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Select_1=__webpack_require__("./packages/react-material-ui/dist/components/Select/index.js");exports.default=({id,options,label,required,disabled,readonly,value,multiple,onChange,rawErrors=[]})=>{const{enumOptions,enumDisabled}=options,emptyValue=multiple?[]:"";return react_1.default.createElement(Select_1.Select,{id,label,value:void 0===value?emptyValue:value,options:null==enumOptions?void 0:enumOptions.map((({value,label})=>({value,label,disabled:enumDisabled&&-1!=enumDisabled.indexOf(value)}))),onChange:({target:{value}})=>onChange(value),required,disabled:disabled||readonly,error:rawErrors.length>0})}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomSwitchWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Switch_1=__webpack_require__("./packages/react-material-ui/dist/components/Switch/index.js");exports.default=props=>react_1.default.createElement(Switch_1.Switch,{checked:props.value,label:props.label,onChange:evt=>props.onChange(evt.target.checked)})},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomTextFieldWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i0,onChange:onChangeOverride||(({target:{value}})=>onChange(""===value?options.emptyValue:formatData?formatData(value):value)),onBlur:({target:{value}})=>onBlur(id,value),onFocus:({target:{value}})=>onFocus(id,value),InputLabelProps:DisplayInputLabelProps},textFieldProps,{"aria-describedby":(0,utils_1.ariaDescribedByIds)(id,!!schema.examples)})),Array.isArray(schema.examples)&&react_1.default.createElement("datalist",{id:(0,utils_1.examplesId)(id)},schema.examples.concat(schema.default&&!schema.examples.includes(schema.default)?[schema.default]:[]).map((example=>react_1.default.createElement("option",{key:example,value:example})))))}},"./packages/react-material-ui/dist/styles/CustomWidgets/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CustomOtpInputWidget=exports.CustomAutocompleteWidget=exports.CustomRadioWidget=exports.CustomPasswordFieldWidget=exports.CustomEmailFieldWidget=exports.CustomTextFieldWidget=exports.CustomSwitchWidget=exports.CustomSelectWidget=exports.CustomCheckboxesWidget=exports.CustomCheckboxWidget=exports.ArrayFieldTemplate=void 0;var ArrayFieldTemplate_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/ArrayFieldTemplate.js");Object.defineProperty(exports,"ArrayFieldTemplate",{enumerable:!0,get:function(){return __importDefault(ArrayFieldTemplate_1).default}});var CustomCheckboxWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomCheckboxWidget.js");Object.defineProperty(exports,"CustomCheckboxWidget",{enumerable:!0,get:function(){return __importDefault(CustomCheckboxWidget_1).default}});var CustomCheckboxesWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomCheckboxesWidget.js");Object.defineProperty(exports,"CustomCheckboxesWidget",{enumerable:!0,get:function(){return __importDefault(CustomCheckboxesWidget_1).default}});var CustomSelectWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomSelectWidget.js");Object.defineProperty(exports,"CustomSelectWidget",{enumerable:!0,get:function(){return __importDefault(CustomSelectWidget_1).default}});var CustomSwitchWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomSwitchWidget.js");Object.defineProperty(exports,"CustomSwitchWidget",{enumerable:!0,get:function(){return __importDefault(CustomSwitchWidget_1).default}});var CustomTextFieldWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomTextFieldWidget.js");Object.defineProperty(exports,"CustomTextFieldWidget",{enumerable:!0,get:function(){return __importDefault(CustomTextFieldWidget_1).default}});var CustomEmailFieldWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomEmailFieldWidget.js");Object.defineProperty(exports,"CustomEmailFieldWidget",{enumerable:!0,get:function(){return __importDefault(CustomEmailFieldWidget_1).default}});var CustomPasswordFieldWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomPasswordFieldWidget.js");Object.defineProperty(exports,"CustomPasswordFieldWidget",{enumerable:!0,get:function(){return __importDefault(CustomPasswordFieldWidget_1).default}});var CustomRadioWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomRadioWidget.js");Object.defineProperty(exports,"CustomRadioWidget",{enumerable:!0,get:function(){return __importDefault(CustomRadioWidget_1).default}});var CustomAutocompleteWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomAutocompleteWidget.js");Object.defineProperty(exports,"CustomAutocompleteWidget",{enumerable:!0,get:function(){return __importDefault(CustomAutocompleteWidget_1).default}});var CustomOtpInputWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomOtpInputWidget.js");Object.defineProperty(exports,"CustomOtpInputWidget",{enumerable:!0,get:function(){return __importDefault(CustomOtpInputWidget_1).default}})},"./packages/react-material-ui/dist/utils/form/validation.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.validateForm=void 0;const lodash_1=__webpack_require__("./node_modules/lodash/lodash.js");exports.validateForm=(formData,errors,validationRules)=>{const errorsAdded={};for(const rule of validationRules){const{field,test,message}=rule;if(test((0,lodash_1.get)(formData,field),formData)){if(!(0,lodash_1.get)(errorsAdded,field)){const errorField=(0,lodash_1.get)(errors,field);null==errorField||errorField.addError(message),(0,lodash_1.set)(errorsAdded,field,!0)}}}return errors}},"./packages/react-material-ui/dist/utils/http/getSearchParams.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=(searchParams,newParams)=>{const newSearchParam=new URLSearchParams(searchParams);for(const[key,value]of Object.entries(newParams)){const param=null==searchParams?void 0:searchParams.get(key),parsedValue="number"==typeof value?Number(param):param;value?value!==parsedValue&&newSearchParam.set(key,String(value)):newSearchParam.delete(key)}const stringfiedNewSearchParam=newSearchParam.toString();return stringfiedNewSearchParam||null}},"./packages/react-material-ui/dist/utils/http/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSearchParams=void 0;const getSearchParams_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/utils/http/getSearchParams.js"));exports.getSearchParams=getSearchParams_1.default},"./packages/react-material-ui/dist/utils/isMobile.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isMobile=void 0;const isMobile=/Android|BlackBerryi|iPhone|iPad|iPodi|Opera Minii|IEMobilei|WPDesktop/i.test(navigator.userAgent);exports.isMobile=isMobile}}]);
\ No newline at end of file
+(self.webpackChunkroot=self.webpackChunkroot||[]).push([[69],{"./packages/react-material-ui/dist/components/AppBar/AppBarDrawer.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppBarDrawer=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Drawer_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/index.js"),useAppBarRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/hooks/useAppBarRoot.js");exports.AppBarDrawer=props=>{const{isMobileOpen,toggleMobileOpen}=(0,useAppBarRoot_1.useAppBarRoot)();return react_1.default.createElement(Drawer_1.Drawer,Object.assign({mobileIsOpen:isMobileOpen,onMobileClose:toggleMobileOpen},props))}},"./packages/react-material-ui/dist/components/AppBar/AppBarMain.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{sx,children}=boxProps,props=__rest(boxProps,["sx","children"]);return react_1.default.createElement(material_1.Box,Object.assign({component:"main",sx:[{backgroundColor:theme=>theme.palette.background.default,flexGrow:1,height:"100vh",overflow:"auto"},...Array.isArray(sx)?sx:[sx]]},props),children)}},"./packages/react-material-ui/dist/components/AppBar/AppBarNav.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppBarNav=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Navbar_1=__webpack_require__("./packages/react-material-ui/dist/components/Navbar/index.js"),useAppBarRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/hooks/useAppBarRoot.js");exports.AppBarNav=props=>{const{toggleMobileOpen}=(0,useAppBarRoot_1.useAppBarRoot)();return react_1.default.createElement(Navbar_1.Navbar,Object.assign({drawerToggle:toggleMobileOpen},props))}},"./packages/react-material-ui/dist/components/AppBar/AppBarRoot.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppBarRoot=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),useAppBarRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/hooks/useAppBarRoot.js");exports.AppBarRoot=props=>{const{children}=props,[isMobileOpen,setIsMobileOpen]=(0,react_1.useState)(!1);return react_1.default.createElement(useAppBarRoot_1.AppBarContext.Provider,{value:{isMobileOpen,toggleMobileOpen:()=>{setIsMobileOpen((prv=>!prv))}}},react_1.default.createElement(Box_1.default,{sx:{display:"flex"},id:"AppBarRoot"},children))}},"./packages/react-material-ui/dist/components/AppBar/hooks/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useAppBarRoot=void 0;const useAppBarRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/hooks/useAppBarRoot.js");Object.defineProperty(exports,"useAppBarRoot",{enumerable:!0,get:function(){return useAppBarRoot_1.useAppBarRoot}})},"./packages/react-material-ui/dist/components/AppBar/hooks/useAppBarRoot.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useAppBarRoot=exports.AppBarContext=void 0;const react_1=__webpack_require__("./node_modules/react/index.js");exports.AppBarContext=(0,react_1.createContext)({});exports.useAppBarRoot=()=>{const appBarContext=(0,react_1.useContext)(exports.AppBarContext);if(!appBarContext)throw new Error("You must use table root under AppBarContext");return appBarContext}},"./packages/react-material-ui/dist/components/AppBar/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppBar=void 0;const AppBarMain_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarMain.js"),AppBarDrawer_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarDrawer.js"),AppBarNav_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarNav.js"),AppBarRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarRoot.js");exports.AppBar={Main:AppBarMain_1.AppBarMain,Drawer:AppBarDrawer_1.AppBarDrawer,Nav:AppBarNav_1.AppBarNav,Root:AppBarRoot_1.AppBarRoot}},"./packages/react-material-ui/dist/components/AutocompleteField/AutocompleteField.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var _b,{value,options=[],sort,filters,resourceLabel="name",resourceValue="id",label,resource,isLoading=!1,defaultValue,onChange}=_a,rest=__rest(_a,["value","options","sort","filters","resourceLabel","resourceValue","label","resource","isLoading","defaultValue","onChange"]);const{get}=(0,react_data_provider_1.default)(),[_value,setValue]=(0,react_1.useState)(null!=value?value:defaultValue),currentValue=void 0!==value?null!=value?value:defaultValue:_value,simpleFilterQuery=()=>{if(!filters)return;const queryArr=[];for(const[key,value]of Object.entries(filters))queryArr.push(`${key}${value}`);return queryArr},{execute,data,isPending}=(0,react_data_provider_1.useQuery)((()=>get({uri:`/${resource}`,queryParams:{sort,filters:simpleFilterQuery()}})),!1),resourceOptions=[...null!==(_b=null==data?void 0:data.map((resource=>({value:resource[resourceValue],label:resource[resourceLabel]}))))&&void 0!==_b?_b:[]],loading=resource?!(null==data?void 0:data.length)||isPending:isLoading,optionsWithAll=[SelectField_1.allOption,...(null==data?void 0:data.length)&&!isPending?resourceOptions:options],selectedValue=optionsWithAll.find((option=>{const value="string"==typeof currentValue?currentValue:null==currentValue?void 0:currentValue.value;return option.value===value}));return(0,react_1.useEffect)((()=>{resource&&execute()}),[filters]),react_1.default.createElement(material_1.Autocomplete,Object.assign({disabled:loading,isOptionEqualToValue:option=>option.value===currentValue,onChange:(_,newValue,reason)=>{var _a;const allOptionValue=SelectField_1.allOption.value;if("clear"===reason)return onChange(allOptionValue),void setValue(allOptionValue);const selectedValue=null!==(_a=null==newValue?void 0:newValue.value)&&void 0!==_a?_a:null;setValue(selectedValue),onChange&&onChange(selectedValue)},options:optionsWithAll,renderInput:params=>react_1.default.createElement(FormFieldSkeleton_1.FormFieldSkeleton,{isLoading:loading,hideLabel:!0},react_1.default.createElement(material_1.TextField,Object.assign({},params,{label}))),value:null!=selectedValue?selectedValue:SelectField_1.allOption,renderOption:(props,option)=>react_1.default.createElement("li",Object.assign({},props,{key:option.value}),option.label),sx:{"& .MuiInputLabel-root":{pr:"16px"}}},rest))}},"./packages/react-material-ui/dist/components/AutocompleteField/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const AutocompleteField_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/AutocompleteField/AutocompleteField.js"));exports.default=AutocompleteField_1.default},"./packages/react-material-ui/dist/components/Avatar/Avatar.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Avatar=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Styles_1=__webpack_require__("./packages/react-material-ui/dist/components/Avatar/Styles.js"),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js"));exports.Avatar=props=>{const{src,alt,size=30,initials,backgroundColor,onClick}=props,[failed,setFailed]=(0,react_1.useState)(!src),showInitials=failed&&initials;return react_1.default.createElement(Box_1.default,{sx:showInitials?{}:{backgroundColor:backgroundColor||"#eee",width:`${size}px`,height:`${size}px`,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"}},react_1.default.createElement(Styles_1.Image,{src,alt,size,onClick,onError:()=>{setFailed(!0)},style:{display:showInitials?"none":"block",cursor:onClick?"pointer":"default"}}),showInitials&&react_1.default.createElement(Text_1.default,{fontSize:.44*size,fontWeight:600},initials.substring(0,2)))}},"./packages/react-material-ui/dist/components/Avatar/Styles.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Image=void 0;const styles_1=__webpack_require__("./node_modules/@mui/material/styles/index.js");exports.Image=(0,styles_1.styled)("img")((({size,onError})=>({width:`${size}px`,height:`${size}px`,borderRadius:"50%",margin:"0 12px",objectFit:"cover",onError})))},"./packages/react-material-ui/dist/components/Avatar/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Avatar=void 0;var Avatar_1=__webpack_require__("./packages/react-material-ui/dist/components/Avatar/Avatar.js");Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return Avatar_1.Avatar}})},"./packages/react-material-ui/dist/components/Breadcrumbs/Breadcrumbs.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Breadcrumbs_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Breadcrumbs/index.js")),Typography_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Typography/index.js")),Link_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Link/index.js")),Stack_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Stack/index.js")),NavigateNext_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/NavigateNext.js"));exports.default=function Breadcrumbs({routes}){const breadcrumbs=routes.slice(0,-1).map(((routeItem,index)=>react_1.default.createElement(Link_1.default,{underline:"hover",key:index+1,color:"inherit",href:routeItem.href},routeItem.label))),lastItem=routes.at(-1);return routes.length?react_1.default.createElement(Stack_1.default,{spacing:2},react_1.default.createElement(Breadcrumbs_1.default,{separator:react_1.default.createElement(NavigateNext_1.default,{fontSize:"small"}),"aria-label":"breadcrumbs"},breadcrumbs,lastItem?react_1.default.createElement(Typography_1.default,{color:"text.primary"},lastItem.label):null)):null}},"./packages/react-material-ui/dist/components/Breadcrumbs/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var Breadcrumbs_1=__webpack_require__("./packages/react-material-ui/dist/components/Breadcrumbs/Breadcrumbs.js");Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(Breadcrumbs_1).default}})},"./packages/react-material-ui/dist/components/Checkbox/Checkbox.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{label,checked,required,textProps={fontSize:16,fontWeight:400,color:"text.primary"}}=props,otherProps=__rest(props,["label","checked","required","textProps"]);return react_1.default.createElement(react_1.default.Fragment,null,label?react_1.default.createElement(FormGroup_1.default,null,react_1.default.createElement(FormControlLabel_1.default,{control:react_1.default.createElement(Checkbox_1.default,Object.assign({},otherProps)),label:react_1.default.createElement(Text_1.default,Object.assign({role:"label"},textProps),label,required&&" *"),checked})):react_1.default.createElement(Checkbox_1.default,Object.assign({checked,required},otherProps)))}},"./packages/react-material-ui/dist/components/Checkbox/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Checkbox=void 0;var Checkbox_1=__webpack_require__("./packages/react-material-ui/dist/components/Checkbox/Checkbox.js");Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return Checkbox_1.Checkbox}})},"./packages/react-material-ui/dist/components/DatePickerField/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{defaultValue,wait=500,onDebouncedSearchChange}=_a,props=__rest(_a,["defaultValue","wait","onDebouncedSearchChange"]);const firstRender=(0,react_1.useRef)(!0),[search,setSearch]=(0,react_1.useState)(null),handleDebouncedSearch=(0,react_1.useMemo)((()=>(0,debounce_1.default)(onDebouncedSearchChange,wait)),[wait,null==props?void 0:props.value]);return(0,react_1.useEffect)((()=>{var _a;firstRender.current?firstRender.current=!1:handleDebouncedSearch(null!==(_a=null==props?void 0:props.value)&&void 0!==_a?_a:search)}),[search,props.value]),react_1.default.createElement(x_date_pickers_1.DatePicker,Object.assign({defaultValue,value:search,onChange:value=>setSearch(value),format:"MM-dd-yyyy",slotProps:{field:{clearable:!0,onClear:()=>{handleDebouncedSearch(null)}},textField:{size:"small"}}},props))}},"./packages/react-material-ui/dist/components/Dialog/Dialog.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Dialog=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),styles_1=__webpack_require__("./node_modules/@mui/material/styles/index.js"),useMediaQuery_1=__importDefault(__webpack_require__("./node_modules/@mui/material/useMediaQuery/index.js")),DialogContent_1=__importDefault(__webpack_require__("./node_modules/@mui/material/DialogContent/index.js")),DialogActions_1=__importDefault(__webpack_require__("./node_modules/@mui/material/DialogActions/index.js")),Styles_1=__webpack_require__("./packages/react-material-ui/dist/components/Dialog/Styles.js");exports.Dialog=props=>{const{open,handleClose,title,children,footer,dividers=!1}=props,theme=(0,styles_1.useTheme)(),fullScreen=(null==props?void 0:props.fullScreen)||(0,useMediaQuery_1.default)(theme.breakpoints.down("sm"));return react_1.default.createElement(Styles_1.CustomDialog,Object.assign({},props,{onClose:handleClose,open,fullScreen,title:null}),title&&react_1.default.createElement(Styles_1.CustomDialogTitle,{onClose:handleClose},title),children&&react_1.default.createElement(DialogContent_1.default,{dividers},children),footer&&react_1.default.createElement(DialogActions_1.default,null,footer))}},"./packages/react-material-ui/dist/components/Dialog/Styles.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i"handleClose"!==propName})((({theme})=>({"& .MuiDialogContent-root":{minWidth:300,padding:theme.spacing(2)},"& .MuiDialogActions-root":{padding:theme.spacing(1)}})));exports.CustomDialog=CustomDialog;exports.CustomDialogTitle=props=>{const{children,onClose}=props,other=__rest(props,["children","onClose"]);return react_1.default.createElement(DialogTitle_1.default,Object.assign({sx:{m:0,p:2}},other),children,onClose?react_1.default.createElement(IconButton_1.default,{"aria-label":"close",onClick:onClose,sx:{position:"absolute",right:8,top:8,color:theme=>theme.palette.grey[500]}},react_1.default.createElement(Close_1.default,null)):null)}},"./packages/react-material-ui/dist/components/Dialog/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Dialog=void 0;var Dialog_1=__webpack_require__("./packages/react-material-ui/dist/components/Dialog/Dialog.js");Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return Dialog_1.Dialog}})},"./packages/react-material-ui/dist/components/Drawer/Drawer.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Drawer=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),styles_1=__webpack_require__("./node_modules/@mui/material/styles/index.js"),Styles_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/Styles.js"),Toolbar_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Toolbar/index.js")),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),ChevronLeft_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/ChevronLeft.js")),ChevronRight_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/ChevronRight.js")),DrawerItem_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/DrawerItem.js"),Image_1=__webpack_require__("./packages/react-material-ui/dist/components/Image/index.js"),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js"));exports.Drawer=props=>{const{items,currentId,logo,customToggle,mobileIsOpen,onMobileClose,textProps,sx,buttonSx,horizontal,collapsible=!0,collapsibleIcon,collapsibleIconColor,collapsibleIconBgColor,collapsed=!1,onCollapsedChange,backgroundColor,iconColor,activeIconColor,collapsedWidth,expandedWidth}=props,[_collapsed,_setCollapsed]=(0,react_1.useState)(collapsed);(0,react_1.useEffect)((()=>{_setCollapsed(collapsed)}),[collapsed]);const toggleDrawer=()=>{const newCollapsedValue=!_collapsed;_setCollapsed(newCollapsedValue),null==onCollapsedChange||onCollapsedChange(newCollapsedValue)},renderLogo=(0,react_1.useCallback)((()=>"string"==typeof logo?react_1.default.createElement(Image_1.Image,{src:logo,alt:"Logo"}):"function"==typeof logo?logo(_collapsed):logo),[logo,_collapsed]),drawerContent=(0,react_1.useCallback)((hideToggle=>react_1.default.createElement(Box_1.default,{display:"flex",flexDirection:"column",sx,flex:1},react_1.default.createElement(Toolbar_1.default,{sx:{display:"flex",alignItems:"center",justifyContent:horizontal?"start":"center",p:"20px 16px 17px !important"}},renderLogo()),null==items?void 0:items.map(((item,i)=>{const isActive=!!currentId&¤tId.startsWith(item.id);return item.component?react_1.default.createElement(Box_1.default,{onClick:item.onClick,className:isActive?"active":""},"function"==typeof item.component?item.component(!!currentId&¤tId.startsWith(item.id),_collapsed):item.component):react_1.default.createElement(DrawerItem_1.DrawerItem,Object.assign({key:item.id||i},item,{collapsed:!mobileIsOpen&&_collapsed,active:isActive,textProps,sx:[buttonSx,...Array.isArray(sx)?sx:[sx]],horizontal:item.horizontal||horizontal,iconColor,activeIconColor,temporary:hideToggle}))})),!hideToggle&&collapsible&&!!customToggle&&customToggle(toggleDrawer,_collapsed),!hideToggle&&collapsible&&!customToggle&&react_1.default.createElement(Toolbar_1.default,{sx:{marginTop:"auto",display:"flex",alignItems:"center",justifyContent:"flex-end",px:[1]}},react_1.default.createElement(IconButton_1.default,{className:"Rockets-CollapsibleButton",onClick:toggleDrawer,sx:Object.assign({color:collapsibleIconColor||"primary.contrastText",backgroundColor:collapsibleIconBgColor||"transparent"},collapsibleIconBgColor&&{"&:hover":{backgroundColor:(0,styles_1.darken)(collapsibleIconBgColor,.1)}})},collapsibleIcon&&"function"==typeof collapsibleIcon&&collapsibleIcon(_collapsed),collapsibleIcon&&"function"!=typeof collapsibleIcon&&collapsibleIcon,!collapsibleIcon&&(_collapsed?react_1.default.createElement(ChevronRight_1.default,null):react_1.default.createElement(ChevronLeft_1.default,null)))))),[_collapsed,mobileIsOpen]);return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(Styles_1.StyledDrawer,{variant:"temporary",className:"Rockets-Drawer Rockets-Drawer-temporary",open:mobileIsOpen,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box"}},horizontal,backgroundColor,collapsedWidth,expandedWidth,onClose:onMobileClose},drawerContent(!0)),react_1.default.createElement(Styles_1.StyledDrawer,{variant:"permanent",className:"Rockets-Drawer Rockets-Drawer-permanent",sx:{display:{xs:"none",sm:"block"},"& .MuiDrawer-paper":{boxSizing:"border-box"}},open:!_collapsed,horizontal,backgroundColor,collapsedWidth,expandedWidth,"data-testid":"drawer"},drawerContent()))}},"./packages/react-material-ui/dist/components/Drawer/DrawerItem.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawerItem=exports.DEFAULT_DRAWER_TEXT_PROPS=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),Styles_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/Styles.js"),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js"));exports.DEFAULT_DRAWER_TEXT_PROPS={fontSize:12,fontWeight:400,color:"common.white"};exports.DrawerItem=props=>{const{id,icon,text,active,collapsed,onClick,textProps=exports.DEFAULT_DRAWER_TEXT_PROPS,sx,horizontal,iconColor,activeIconColor,temporary}=props;return react_1.default.createElement(Styles_1.DrawerButton,{className:"Rockets-DrawerButton "+(active?"active":""),"data-testid":`drawer-item-${id}-${temporary?"temporary":"permanent"}`,active,collapsed,onClick:()=>null==onClick?void 0:onClick(),sx,horizontal,iconColor,activeIconColor},"function"==typeof icon?icon(!!active):icon,text&&horizontal&&react_1.default.createElement(material_1.Box,{display:"flex",alignItems:"center"},react_1.default.createElement(Text_1.default,Object.assign({position:"absolute"},textProps),text)),text&&!horizontal&&react_1.default.createElement(Text_1.default,{sx:Object.assign({position:"absolute",bottom:0},textProps)},text))}},"./packages/react-material-ui/dist/components/Drawer/Styles.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawerButton=exports.StyledDrawer=void 0;const Drawer_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Drawer/index.js")),Button_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Button/index.js")),styles_1=__webpack_require__("./node_modules/@mui/material/styles/index.js"),material_1=__webpack_require__("./node_modules/@mui/material/index.js");exports.StyledDrawer=(0,styles_1.styled)(Drawer_1.default,{shouldForwardProp:prop=>!["backgroundColor","collapsedWidth","expandedWidth"].some((propName=>propName===prop))})((({theme,open,sx,horizontal,backgroundColor,collapsedWidth,expandedWidth})=>[{"& .MuiDrawer-paper":Object.assign({backgroundColor:backgroundColor||theme.palette.primary.dark,position:"relative",whiteSpace:"nowrap",width:expandedWidth||(horizontal?256:120),transition:theme.transitions.create("width",{easing:theme.transitions.easing.sharp,duration:theme.transitions.duration.enteringScreen}),boxSizing:"border-box"},!open&&{overflowX:"hidden",transition:theme.transitions.create("width",{easing:theme.transitions.easing.sharp,duration:theme.transitions.duration.leavingScreen}),width:collapsedWidth||theme.spacing(7),[theme.breakpoints.up("sm")]:{width:collapsedWidth||theme.spacing(9)}})},...Array.isArray(sx)?sx:[sx]])),exports.DrawerButton=(0,styles_1.styled)(Button_1.default,{shouldForwardProp:prop=>!["active","collapsed","iconColor","activeIconColor"].some((propName=>propName===prop))})((({theme,active,collapsed,sx,horizontal,iconColor,activeIconColor})=>{let _iconColor=iconColor||(0,material_1.alpha)(theme.palette.common.white,.65);active&&(_iconColor=activeIconColor||theme.palette.common.white);return[{color:active?theme.palette.common.white:(0,material_1.alpha)(theme.palette.common.white,.85),display:"flex",flexDirection:horizontal?"row":"column",justifyContent:"start",alignItems:"center",whiteSpace:horizontal?"nowrap":"break-spaces",margin:"2px 8px",paddingX:"8px",paddingTop:"8px",paddingBottom:horizontal?"8px":collapsed?"6px":"18px",minWidth:0,overflow:"hidden",textTransform:"none",textAlign:"left",maxHeight:collapsed?"40px":"85px",transition:"max-height 300ms, padding-bottom 300ms",backgroundColor:active?(0,material_1.alpha)(theme.palette.common.black,.2):"transparent","&:hover":{backgroundColor:(0,material_1.alpha)(theme.palette.common.black,.2)},"& svg":{color:_iconColor,marginRight:!collapsed&&horizontal?12:0,marginBottom:collapsed||horizontal?0:6,transform:`translateX(${collapsed&&horizontal?"8px":0})`,transition:"all 300ms"},"& p":{opacity:collapsed?0:1,transition:"opacity 300ms"}},...Array.isArray(sx)?sx:[sx]]}))},"./packages/react-material-ui/dist/components/Drawer/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DEFAULT_DRAWER_TEXT_PROPS=exports.Drawer=void 0;var Drawer_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/Drawer.js");Object.defineProperty(exports,"Drawer",{enumerable:!0,get:function(){return Drawer_1.Drawer}});var DrawerItem_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/DrawerItem.js");Object.defineProperty(exports,"DEFAULT_DRAWER_TEXT_PROPS",{enumerable:!0,get:function(){return DrawerItem_1.DEFAULT_DRAWER_TEXT_PROPS}})},"./packages/react-material-ui/dist/components/Dropdown/Dropdown.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Dropdown=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),Menu_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Menu/index.js")),Fade_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Fade/index.js")),Tooltip_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Tooltip/index.js")),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),MoreHoriz_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/MoreHoriz.js")),MoreVert_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/MoreVert.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Styles_1=__webpack_require__("./packages/react-material-ui/dist/components/Dropdown/Styles.js"),MenuItem_1=__importDefault(__webpack_require__("./node_modules/@mui/material/MenuItem/index.js")),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js"));exports.Dropdown=({options,toggleDirection="horizontal",textProps={fontSize:16,fontWeight:400,color:"text.primary"}})=>{const[anchorEl,setAnchorEl]=(0,react_1.useState)(null),open=Boolean(anchorEl),handleClose=()=>{setAnchorEl(null)},handleCustomItemClick=item=>()=>{var _a;null===(_a=item.onClick)||void 0===_a||_a.call(item),handleClose()},renderOptions=(0,react_1.useMemo)((()=>{if(Array.isArray(options))return react_1.default.createElement(Box_1.default,{display:"flex",flexDirection:"column",sx:{p:0,m:0}},options.map((item=>{const{key,icon,iconPosition="left",text}=item,isLeftSide="left"===iconPosition;return react_1.default.createElement(MenuItem_1.default,{key,onClick:handleCustomItemClick(item)},react_1.default.createElement(Box_1.default,{display:"flex",flexDirection:"left"===iconPosition?"row":"row-reverse"},icon&&react_1.default.createElement(Styles_1.IconContainer,{isLeftSide},icon),react_1.default.createElement(Text_1.default,Object.assign({},textProps),text)))})))}),[options]);return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(Tooltip_1.default,{title:"Options"},react_1.default.createElement(IconButton_1.default,{"aria-controls":open?"fade-menu":void 0,"aria-haspopup":"true","aria-expanded":open?"true":void 0,onClick:event=>{options&&setAnchorEl(event.currentTarget)},"data-testid":"toggle-button"},"horizontal"===toggleDirection?react_1.default.createElement(MoreHoriz_1.default,{"data-testid":"toggle-icon"}):react_1.default.createElement(MoreVert_1.default,{"data-testid":"toggle-icon"}))),react_1.default.createElement(Menu_1.default,{id:"fade-menu",MenuListProps:{"aria-labelledby":"fade-button"},anchorEl,open,onClose:handleClose,TransitionComponent:Fade_1.default},renderOptions))}},"./packages/react-material-ui/dist/components/Dropdown/Styles.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.IconContainer=void 0;const Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),styles_1=__webpack_require__("./node_modules/@mui/material/styles/index.js");exports.IconContainer=(0,styles_1.styled)(Box_1.default,{shouldForwardProp:propName=>"isLeftSide"!==propName})((({isLeftSide})=>({display:"flex",marginRight:isLeftSide?"8px":"-4px",marginLeft:isLeftSide?"-4px":"8px"})))},"./packages/react-material-ui/dist/components/Dropdown/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Dropdown=void 0;var Dropdown_1=__webpack_require__("./packages/react-material-ui/dist/components/Dropdown/Dropdown.js");Object.defineProperty(exports,"Dropdown",{enumerable:!0,get:function(){return Dropdown_1.Dropdown}})},"./packages/react-material-ui/dist/components/Filter/Filter.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{filters,minimumFilters=0,hasAllOption}=props,rest=__rest(props,["filters","minimumFilters","hasAllOption"]),resetFilters=item=>()=>{item&&(null==item?void 0:item.onDebouncedSearchChange)&&item.onDebouncedSearchChange(null),item&&(null==item?void 0:item.onChange)&&item.onChange(null)},[filterOrder,setFilterOrder]=(0,react_1.useState)(filters.map((filter=>{var _a;return{id:filter.id,label:filter.label,hide:null!==(_a=filter.hide)&&void 0!==_a&&_a,resetFilters:resetFilters(filter)}})));return react_1.default.createElement(Box_1.default,{display:"flex",width:"100%",alignItems:"flex-start",justifyContent:"space-between",gap:2,sx:{flexDirection:{xs:"column",md:"row"}}},react_1.default.createElement(Grid_1.default,Object.assign({container:!0,spacing:2},rest),filterOrder.map((filter=>{const filterIndex=filters.findIndex((f=>f.id===filter.id));if(-1===filterIndex)return null;const currentFilter=filters[filterIndex];return filter.hide?null:react_1.default.createElement(Grid_1.default,{key:`filter-${filter.id}`,item:!0,xs:12,md:currentFilter.columns||12},(filter=>{var _a,_b,_c,_d;switch(filter.type){case"autocomplete":return react_1.default.createElement(AutocompleteField_1.default,{fullWidth:!0,size:null!==(_a=filter.size)&&void 0!==_a?_a:"small",options:filter.options,isLoading:filter.isLoading,onChange:filter.onChange,value:filter.value,defaultValue:null!==(_b=filter.defaultValue)&&void 0!==_b?_b:SelectField_2.allOption,label:filter.label,resource:filter.resource,resourceLabel:filter.resourceLabel,resourceValue:filter.resourceValue});case"date":return react_1.default.createElement(DatePickerField_1.default,{sx:{width:"100%"},label:filter.label,value:filter.value,onChange:filter.onChange,onDebouncedSearchChange:filter.onDebouncedSearchChange,minDate:filter.minDate,maxDate:filter.maxDate});case"select":return react_1.default.createElement(SelectField_1.SelectField,{fullWidth:!0,multiple:filter.multiple,size:null!==(_c=filter.size)&&void 0!==_c?_c:"small",label:filter.label,isLoading:filter.isLoading,options:filter.options,defaultValue:filter.defaultValue||"",onChange:filter.onChange,value:filter.value,variant:"outlined"});case"text":return react_1.default.createElement(SearchField_1.default,{fullWidth:!0,helperText:filter.helperText,placeholder:filter.placeholder,size:null!==(_d=filter.size)&&void 0!==_d?_d:"small",defaultValue:filter.defaultValue,label:filter.label,value:filter.value,onChange:e=>{var _a;return null===(_a=filter.onChange)||void 0===_a?void 0:_a.call(filter,e.target.value)},onDebouncedSearchChange:filter.onDebouncedSearchChange?value=>{var _a;return null===(_a=filter.onDebouncedSearchChange)||void 0===_a?void 0:_a.call(filter,value)}:void 0,searchIconPlacement:filter.searchIconPlacement});default:return react_1.default.createElement(react_1.default.Fragment,null)}})(currentFilter))})),props.additionalGridItems?props.additionalGridItems.map(((node,index)=>react_1.default.createElement(Grid_1.default,{key:`filter-complementary-${index}`,item:!0,xs:12,md:node.columns||12},"function"==typeof node.component?node.component(filterOrder):node.component))):null),react_1.default.createElement(Box_1.default,{display:"flex",alignItems:"center",sx:{width:{xs:"100%",md:"auto"},justifyContent:{xs:"end",md:"unset"},gap:{xs:4,md:2}}},filters.length?react_1.default.createElement(OrderableDropDown_1.OrderableDropDown,{hasAllOption,minimumItems:minimumFilters,icon:react_1.default.createElement(FilterAlt_1.default,null),list:filterOrder,setList:setFilterOrder,storage:{type:"filter",key:props.orderableListCacheKey,cacheApiPath:props.cacheApiPath,onListUpdateFromCache:cacheList=>{const newItems=cacheList.map((item=>{const filterItemIndex=filters.findIndex((filter=>filter.id===item.id)),filterItem=filters[filterItemIndex];return Object.assign(Object.assign(Object.assign({},item),filterItem),{resetFilters:resetFilters(filterItem)})}));setFilterOrder(newItems)}}}):null,"function"==typeof props.complementaryActions?props.complementaryActions(filterOrder):props.complementaryActions))}},"./packages/react-material-ui/dist/components/Filter/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Filter=void 0;var Filter_1=__webpack_require__("./packages/react-material-ui/dist/components/Filter/Filter.js");Object.defineProperty(exports,"Filter",{enumerable:!0,get:function(){return Filter_1.Filter}})},"./packages/react-material-ui/dist/components/FormFieldSkeleton/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormFieldSkeleton=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js");exports.FormFieldSkeleton=({isLoading=!0,children,hideLabel})=>{const theme=(0,material_1.useTheme)();return isLoading?react_1.default.createElement(material_1.Box,{width:"100%"},!hideLabel&&react_1.default.createElement(material_1.Skeleton,{variant:"text",width:80,sx:{fontSize:theme.typography.body1.fontSize},"data-testid":"form-field-skeleton-label"}),react_1.default.createElement(material_1.Skeleton,{variant:"rounded",height:42,width:"100%","data-testid":"form-field-skeleton-input"},children)):react_1.default.createElement(react_1.default.Fragment,null,children)}},"./packages/react-material-ui/dist/components/FormLabel/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormLabel=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),TEXT_INITIAL_PROPS={fontSize:14,fontWeight:500,color:"text.primary"};exports.FormLabel=props=>{const{id,name,labelProps,label,required}=props;return react_1.default.createElement(material_1.FormLabel,{id,htmlFor:name,sx:{width:"100%"}},react_1.default.createElement(Text_1.default,Object.assign({textAlign:"left"},TEXT_INITIAL_PROPS,labelProps),label&&`${label}${required?" *":""}`))},exports.default=exports.FormLabel},"./packages/react-material-ui/dist/components/FormTemplate/FormTemplate.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormTemplate=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js");exports.FormTemplate=({title,subtitle,icon,children,titleTextProps,containerProps,subtitleTextProps,cardProps})=>react_1.default.createElement(material_1.Container,Object.assign({maxWidth:"xs"},containerProps,{sx:[{textAlign:"center",padding:"48px 0"},...Array.isArray(null==containerProps?void 0:containerProps.sx)?containerProps.sx:[null==containerProps?void 0:containerProps.sx]]}),icon&&icon,title&&react_1.default.createElement(Text_1.default,Object.assign({fontFamily:"Inter",fontSize:30,fontWeight:800,mt:1,gutterBottom:!0},titleTextProps),title),subtitle&&react_1.default.createElement(Text_1.default,Object.assign({fontSize:14,fontWeight:500},subtitleTextProps),subtitle),react_1.default.createElement(material_1.Card,Object.assign({},cardProps,{sx:[{marginTop:"26px",padding:"24px 24px 24px 24px",display:"flex",flexDirection:"column",justifyContent:"center"},...Array.isArray(null==cardProps?void 0:cardProps.sx)?cardProps.sx:[null==cardProps?void 0:cardProps.sx]]}),children))},"./packages/react-material-ui/dist/components/FormTemplate/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormTemplate=void 0;var FormTemplate_1=__webpack_require__("./packages/react-material-ui/dist/components/FormTemplate/FormTemplate.js");Object.defineProperty(exports,"FormTemplate",{enumerable:!0,get:function(){return FormTemplate_1.FormTemplate}})},"./packages/react-material-ui/dist/components/HeaderAccount/HeaderAccount.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.HeaderAccount=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),Avatar_1=__webpack_require__("./packages/react-material-ui/dist/components/Avatar/index.js"),ExpandMore_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/ExpandMore.js")),Button_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Button/index.js")),Menu_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Menu/index.js"));exports.HeaderAccount=({avatar,avatarSize=36,text,subText,onClick,textProps={fontSize:14,fontWeight:500,color:"text.primary"},subTextProps={fontSize:12,lineHeight:"10px",fontWeight:500,color:"text.secondary"},iconColor="text.primary",menuOptions})=>{const[anchorEl,setAnchorEl]=(0,react_1.useState)(null),open=Boolean(anchorEl),handleClose=()=>{setAnchorEl(null)};return react_1.default.createElement(Box_1.default,{display:"flex"},react_1.default.createElement(Button_1.default,{variant:"text","aria-label":"open navbar menu","aria-controls":open?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":open?"true":void 0,onClick:onClick||(event=>{setAnchorEl(event.currentTarget)}),sx:{textTransform:"none",textAlign:"left"}},avatar&&react_1.default.createElement(Avatar_1.Avatar,{src:avatar,alt:"Avatar",size:avatarSize}),react_1.default.createElement(Box_1.default,{display:"flex",flexDirection:"column",ml:avatar?1:0},react_1.default.createElement(Box_1.default,{display:"flex"},react_1.default.createElement(Text_1.default,Object.assign({},textProps),text)," ",react_1.default.createElement(ExpandMore_1.default,{sx:{display:"inline",color:iconColor}})),react_1.default.createElement(Text_1.default,Object.assign({},subTextProps),subText))),menuOptions&&react_1.default.createElement(Menu_1.default,{id:"basic-menu",anchorEl,open,onClose:handleClose,MenuListProps:{"aria-labelledby":"basic-button"}},menuOptions(handleClose)))}},"./packages/react-material-ui/dist/components/HeaderAccount/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HeaderAccount=void 0;var HeaderAccount_1=__webpack_require__("./packages/react-material-ui/dist/components/HeaderAccount/HeaderAccount.js");Object.defineProperty(exports,"HeaderAccount",{enumerable:!0,get:function(){return HeaderAccount_1.HeaderAccount}})},"./packages/react-material-ui/dist/components/Image/Image.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{imgFluid,defaultImage,onLoad,onError,sx}=props,otherProps=__rest(props,["imgFluid","defaultImage","onLoad","onError","sx"]);return react_1.default.createElement(material_1.Box,Object.assign({component:"img"},otherProps,{sx:[...imgFluid?[{width:"100%",height:"auto"}]:[],...Array.isArray(sx)?sx:[sx]],onLoad:event=>{null==onLoad||onLoad(event)},onError:event=>{null==onError||onError(event),defaultImage&&(event.currentTarget.src=defaultImage)}}))}},"./packages/react-material-ui/dist/components/Image/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Image=void 0;var Image_1=__webpack_require__("./packages/react-material-ui/dist/components/Image/Image.js");Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return Image_1.Image}})},"./packages/react-material-ui/dist/components/Link/Link.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Link_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Link/index.js"));exports.Link=props=>{const{children,color="primary.dark",sx}=props;return react_1.default.createElement(Link_1.default,Object.assign({color},props,{sx:[{textDecoration:"none"},...Array.isArray(sx)?sx:[sx]]}),children)}},"./packages/react-material-ui/dist/components/Link/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;var Link_1=__webpack_require__("./packages/react-material-ui/dist/components/Link/Link.js");Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return Link_1.Link}})},"./packages/react-material-ui/dist/components/Navbar/Navbar.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Navbar=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),Menu_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/Menu.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Notifications_1=__webpack_require__("./packages/react-material-ui/dist/components/Notifications/index.js"),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),HeaderAccount_1=__webpack_require__("./packages/react-material-ui/dist/components/HeaderAccount/index.js");exports.Navbar=({drawerToggle,showNotifications,notificationsNumber,notificationsOnClick,avatar,text,subText,headerMenuOptions,sx})=>react_1.default.createElement(Box_1.default,{"data-testid":"navbarContainer",sx:[theme=>Object.assign(Object.assign({position:"relative",padding:"12px 24px"},"light"===theme.palette.mode&&{backgroundColor:theme.palette.common.white}),{"&:after":{content:'""',display:"block",position:"absolute",bottom:"0",height:"1px",background:"#e5e7eb",left:"40px",right:"40px"}}),...Array.isArray(sx)?sx:[sx]]},react_1.default.createElement(Box_1.default,{display:"flex"},drawerToggle&&react_1.default.createElement(Text_1.default,{color:"text.primary"},react_1.default.createElement(IconButton_1.default,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:drawerToggle,sx:{mr:2,display:{sm:"none"}}},react_1.default.createElement(Menu_1.default,null))),react_1.default.createElement(Box_1.default,{display:"flex",flex:1,justifyContent:"flex-end"},showNotifications&¬ificationsNumber&&react_1.default.createElement(Notifications_1.Notifications,{amount:notificationsNumber,onClick:notificationsOnClick}),react_1.default.createElement(HeaderAccount_1.HeaderAccount,{avatar,text,subText,menuOptions:headerMenuOptions}))))},"./packages/react-material-ui/dist/components/Navbar/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Navbar=void 0;var Navbar_1=__webpack_require__("./packages/react-material-ui/dist/components/Navbar/Navbar.js");Object.defineProperty(exports,"Navbar",{enumerable:!0,get:function(){return Navbar_1.Navbar}})},"./packages/react-material-ui/dist/components/Notifications/Notifications.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Notifications=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),NotificationsOutlined_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/NotificationsOutlined.js")),Badge_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Badge/index.js"));exports.Notifications=({amount,onClick})=>react_1.default.createElement(IconButton_1.default,{sx:{color:"text.secondary"},onClick},react_1.default.createElement(Badge_1.default,{badgeContent:amount,color:"error","data-testid":"badge"},react_1.default.createElement(NotificationsOutlined_1.default,null)))},"./packages/react-material-ui/dist/components/Notifications/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Notifications=void 0;var Notifications_1=__webpack_require__("./packages/react-material-ui/dist/components/Notifications/Notifications.js");Object.defineProperty(exports,"Notifications",{enumerable:!0,get:function(){return Notifications_1.Notifications}})},"./packages/react-material-ui/dist/components/OrderableDropDown/OrderableDropDown.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.OrderableDropDown=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),ListItem_1=__importDefault(__webpack_require__("./node_modules/@mui/material/ListItem/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),core_1=__webpack_require__("./node_modules/@dnd-kit/core/dist/core.esm.js"),sortable_1=__webpack_require__("./node_modules/@dnd-kit/sortable/dist/sortable.esm.js"),utilities_1=__webpack_require__("./node_modules/@dnd-kit/utilities/dist/utilities.esm.js"),DragIndicator_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/DragIndicator.js")),SettingsSuggest_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/SettingsSuggest.js")),useSettingsStorage_1=__webpack_require__("./packages/react-material-ui/dist/hooks/useSettingsStorage.js"),SortableItem=props=>{const{id,checked,label,labelId,indeterminate,isHeader=!1,handleToggle,disabled=!1}=props,{attributes,listeners,setNodeRef,transform,transition}=(0,sortable_1.useSortable)({id}),style={transform:utilities_1.CSS.Transform.toString(transform),transition};return react_1.default.createElement("div",Object.assign({ref:setNodeRef,style},attributes,{"data-testid":"orderable-item"}),react_1.default.createElement(ListItem_1.default,{sx:{borderBottom:isHeader?"1px solid":void 0,borderColor:theme=>isHeader?theme.palette.divider:void 0,paddingLeft:isHeader?5:void 0},key:id,secondaryAction:react_1.default.createElement(material_1.Checkbox,{edge:"end",onChange:()=>handleToggle(id),disabled,checked,inputProps:{"aria-labelledby":labelId},indeterminate}),disablePadding:!0},react_1.default.createElement(material_1.ListItemButton,{disabled,sx:{pointerEvents:isHeader?"none":void 0,columnGap:2}},!isHeader&&react_1.default.createElement(material_1.ListItemAvatar,{sx:{display:"flex",minWidth:"auto"}},react_1.default.createElement(DragIndicator_1.default,Object.assign({},listeners))),react_1.default.createElement(material_1.ListItemText,{id:labelId,primary:label}))))};exports.OrderableDropDown=({list,setList,minimumItems=0,hasAllOption=!1,icon=react_1.default.createElement(SettingsSuggest_1.default,null),text,storage})=>{const{updateSettings}=(0,useSettingsStorage_1.useSettingsStorage)({key:null==storage?void 0:storage.key,type:null==storage?void 0:storage.type,data:list.map((item=>({id:item.id,label:item.label,hide:Boolean(item.hide)}))),cacheApiPath:null==storage?void 0:storage.cacheApiPath,setListCallback:callbackData=>null==storage?void 0:storage.onListUpdateFromCache(callbackData)}),sensors=(0,core_1.useSensors)((0,core_1.useSensor)(core_1.MouseSensor,{activationConstraint:{delay:0,tolerance:5}}),(0,core_1.useSensor)(core_1.TouchSensor,{activationConstraint:{delay:0,tolerance:5}}),(0,core_1.useSensor)(core_1.KeyboardSensor,{coordinateGetter:sortable_1.sortableKeyboardCoordinates})),[anchorEl,setAnchorEl]=(0,react_1.useState)(null),open=Boolean(anchorEl),[checked,setChecked]=(0,react_1.useState)(list.filter((listItem=>!listItem.hide)).map((li=>li.id))),handleToggle=value=>{const currentIndex=checked.indexOf(value),newChecked=[...checked];-1===currentIndex?newChecked.push(value):newChecked.splice(currentIndex,1),setList((prevState=>{const newItems=prevState.map((listItem=>{const isHidden=!newChecked.includes(listItem.id);return isHidden&&listItem.resetFilters&&listItem.resetFilters(),Object.assign(Object.assign({},listItem),{hide:isHidden})}));return updateSettings(newItems),newItems})),setChecked(newChecked)};return(0,react_1.useEffect)((()=>{setChecked(list.filter((listItem=>!listItem.hide)).map((li=>li.id)))}),[list]),react_1.default.createElement(material_1.Box,null,text?react_1.default.createElement(material_1.Button,{onClick:event=>{setAnchorEl(event.currentTarget)},startIcon:icon,variant:"outlined",sx:{textTransform:"capitalize",color:"#374151",borderColor:"#374151",textWrap:"nowrap"}},text):react_1.default.createElement(material_1.IconButton,{onClick:event=>{setAnchorEl(event.currentTarget)}},icon),react_1.default.createElement(material_1.Menu,{open,anchorEl,onClose:()=>setAnchorEl(null)},react_1.default.createElement(core_1.DndContext,{sensors,collisionDetection:core_1.closestCenter,onDragEnd:event=>{const{active,over}=event;if(active.id!==(null==over?void 0:over.id)){const oldIndex=list.findIndex((item=>item.id===active.id)),newIndex=list.findIndex((item=>item.id===(null==over?void 0:over.id))),newItems=(0,sortable_1.arrayMove)(list,oldIndex,newIndex);updateSettings(newItems),setList(newItems)}}},react_1.default.createElement(sortable_1.SortableContext,{items:list,strategy:sortable_1.verticalListSortingStrategy},hasAllOption&&react_1.default.createElement(SortableItem,{id:"all",checked:list.length===checked.length,indeterminate:checked.length&&list.length!==checked.length,label:"Select all",isHeader:!0,handleToggle:value=>{if("all"===value)return checked.length?void(checked.length===list.length?(setList((prevState=>{const newItems=prevState.map((item=>Object.assign(Object.assign({},item),{hide:!0})));return updateSettings(newItems),newItems})),setChecked([])):(setChecked((prevState=>{const newState=[...prevState];return list.forEach((item=>{prevState.includes(item.id)||newState.push(item.id)})),newState})),setList((prevState=>{const newItems=prevState.map((item=>Object.assign(Object.assign({},item),{hide:!1})));return updateSettings(newItems),newItems})))):(setChecked(list.map((item=>item.id))),void setList((prevState=>{const newItems=prevState.map((item=>Object.assign(Object.assign({},item),{hide:!1})));return updateSettings(newItems),newItems})))},labelId:"all"}),null==list?void 0:list.map((listItem=>{if(!listItem.label)return null;const labelId=`checkbox-list-secondary-label-${listItem.id}`;return react_1.default.createElement(SortableItem,{disabled:minimumItems===list.filter((item=>!item.hide)).length&&!listItem.hide,key:listItem.id,id:listItem.id,checked:-1!==checked.indexOf(listItem.id),label:listItem.label,handleToggle,labelId})}))))))}},"./packages/react-material-ui/dist/components/OrderableDropDown/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.OrderableDropDown=void 0;var OrderableDropDown_1=__webpack_require__("./packages/react-material-ui/dist/components/OrderableDropDown/OrderableDropDown.js");Object.defineProperty(exports,"OrderableDropDown",{enumerable:!0,get:function(){return OrderableDropDown_1.OrderableDropDown}})},"./packages/react-material-ui/dist/components/OtpInput/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{value="",length=4,autoFocus=!1,textFieldProps,name,label,labelProps,className,onComplete,onChange,onBlur}=_a,restBoxProps=__rest(_a,["value","length","autoFocus","textFieldProps","name","label","labelProps","className","onComplete","onChange","onBlur"]);const checkCompletion=inputValue=>inputValue.slice(0,length).length===length,inputData=Array.from({length},((_,index)=>{var _a;return{character:null!==(_a=value[index])&&void 0!==_a?_a:"",inputRef:react_1.default.createRef()}})),updateValue=(index,char)=>value.slice(0,index)+char+value.slice(index+1),focusInput=index=>{var _a,_b;index{const _a="function"==typeof textFieldProps?textFieldProps(index)||{}:textFieldProps||{},{onPaste,onFocus,onKeyDown,className,onBlur:textFieldBlur,error,name}=_a,restTextFieldProps=__rest(_a,["onPaste","onFocus","onKeyDown","className","onBlur","error","name"]);return react_1.default.createElement(TextField_1.TextField,Object.assign({id:0===index?`${name}-${index}`:void 0,key:`otp-input-${index}`,autoFocus:autoFocus&&0===index,autoComplete:"one-time-code",value:character,error,inputRef,inputProps:{sx:{textAlign:"center"}},InputProps:{sx:{caretColor:"transparent",".MuiInputBase-input::selection":{backgroundColor:"transparent"}}},className,onPaste:event=>{event.preventDefault(),((event,index)=>{const pastedData=event.clipboardData.getData("text/plain"),newValue=pastedData.length<=length-index?value.slice(0,index)+pastedData+value.slice(index+pastedData.length,length):value;null==onChange||onChange(newValue),checkCompletion(newValue)?(null==onComplete||onComplete(newValue),focusInput(length-1)):focusInput(newValue.length)})(event,index),null==onPaste||onPaste(event)},onFocus:event=>{event.preventDefault(),event.target.select(),null==onFocus||onFocus(event)},onChange:event=>((event,index)=>{var _a;if(0===index&&event.target.value.length>1){const inputComplete=checkCompletion(event.target.value);return null==onChange||onChange(event.target.value),inputComplete&&(null==onComplete||onComplete(event.target.value)),void focusInput(event.target.value.length-1)}const char=null!==(_a=event.target.value[0])&&void 0!==_a?_a:"";if(char&&!NUMBER_REGEX.test(char))return;const newValue=updateValue(index,char);null==onChange||onChange(newValue),""!==char&&NUMBER_REGEX.test(char)?focusInput(newValue.length-1{((event,index)=>{const inputElement=event.target,caretAtStart=0===inputElement.selectionStart&&0===inputElement.selectionEnd;if(inputElement.value===event.key)event.preventDefault(),focusInput(index+1);else if(event.key===exports.KEYBOARD_KEYS.BACKSPACE)if(inputElement.value){if(caretAtStart){event.preventDefault();const newValue=updateValue(index,"");null==onChange||onChange(newValue),newValue.length<=index&&focusInput(index-1)}}else event.preventDefault(),focusInput(index-1);else event.key===exports.KEYBOARD_KEYS.LEFT?(event.preventDefault(),focusInput(index-1)):event.key===exports.KEYBOARD_KEYS.RIGHT?(event.preventDefault(),focusInput(index+1)):event.key===exports.KEYBOARD_KEYS.HOME?(event.preventDefault(),focusInput(0)):event.key===exports.KEYBOARD_KEYS.END&&(event.preventDefault(),focusInput(length-1))})(event,index),null==onKeyDown||onKeyDown(event)},onBlur:event=>{null==textFieldBlur||textFieldBlur(event),(event=>{if(!inputData.some((({inputRef})=>inputRef.current===event.relatedTarget))){const isComplete=checkCompletion(value);null==onBlur||onBlur(value,isComplete)}})(event)},name:`${name}-${index}`},restTextFieldProps))}))))}));exports.default=OtpInput},"./packages/react-material-ui/dist/components/RadioGroup/RadioGroup.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.RadioGroup=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),FormLabel_1=__webpack_require__("./packages/react-material-ui/dist/components/FormLabel/index.js");exports.RadioGroup=props=>{const{id,name,containerProps,labelProps,options,label,required,row,value,onChange,disabled}=props;return react_1.default.createElement(material_1.Box,Object.assign({},containerProps),react_1.default.createElement(material_1.FormControl,null,label&&react_1.default.createElement(FormLabel_1.FormLabel,{name,label,required,labelProps}),react_1.default.createElement(material_1.RadioGroup,{id,value:`${value}`,row,onChange},options.map(((option,i)=>react_1.default.createElement(material_1.FormControlLabel,{control:react_1.default.createElement(material_1.Radio,{name:`${id}-${i}`,color:"primary",key:i}),label:`${option.label}`,value:`${option.value}`,key:i,disabled:disabled||option.disabled}))))))}},"./packages/react-material-ui/dist/components/RadioGroup/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RadioGroup=void 0;var RadioGroup_1=__webpack_require__("./packages/react-material-ui/dist/components/RadioGroup/RadioGroup.js");Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:function(){return RadioGroup_1.RadioGroup}})},"./packages/react-material-ui/dist/components/RocketsProvider/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),react_data_provider_1=__webpack_require__("./packages/react-data-provider/dist/index.js"),react_auth_provider_1=__webpack_require__("./packages/react-auth-provider/dist/index.js"),styles_1=__webpack_require__("./packages/react-material-ui/dist/styles/index.js"),theme_1=__webpack_require__("./packages/react-material-ui/dist/styles/theme.js"),react_toastify_1=__webpack_require__("./node_modules/react-toastify/dist/react-toastify.js");(0,__webpack_require__("./node_modules/react-toastify/dist/inject-style.js").injectStyle)();exports.default=({children,auth,dataProvider,theme})=>react_1.default.createElement(react_data_provider_1.ClientProvider,{baseUrl:dataProvider.apiUrl,onRefreshTokenError:auth.handleRefreshTokenError},react_1.default.createElement(styles_1.ThemeProvider,{theme:null!=theme?theme:theme_1.themeLight},react_1.default.createElement(react_toastify_1.ToastContainer,{hideProgressBar:!0,position:"top-center",limit:3,autoClose:3e3}),react_1.default.createElement(react_auth_provider_1.AuthProvider,{onSuccess:auth.onAuthSuccess,onError:auth.onAuthError},children)))},"./packages/react-material-ui/dist/components/RocketsProvider/utils.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=config=>config},"./packages/react-material-ui/dist/components/SchemaForm/Button.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Button_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Button/index.js"));exports.default=({children})=>react_1.default.createElement(Button_1.default,{type:"submit",fullWidth:!0,variant:"contained",sx:{mt:3}},children)},"./packages/react-material-ui/dist/components/SchemaForm/SchemaForm.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{uiSchema,schema,formData,advancedProperties,children,advancedPropertiesMapper=mapAdvancedProperties_1.mapAdvancedProperties}=_a,props=__rest(_a,["uiSchema","schema","formData","advancedProperties","children","advancedPropertiesMapper"]);const finalSchema=Object.assign(Object.assign({},schema),{properties:advancedPropertiesMapper(schema,advancedProperties)}),uiSchemaWithButtonTitle=Object.assign(Object.assign(Object.assign({},(0,uiSchemaGenerator_1.uiSchemaGenerator)(finalSchema,advancedProperties)),uiSchema),{"ui:submitButtonOptions":{submitText:props.buttonTitle}}),templatesWithCustomButton={ArrayFieldTemplate:CustomWidgets_1.ArrayFieldTemplate,ObjectFieldTemplate:CustomTemplates_1.ObjectFieldTemplate,ButtonTemplates:{SubmitButton:props.buttonComponent}};return react_1.default.createElement(react_1.Fragment,null,schema&&react_1.default.createElement(Box_1.default,null,react_1.default.createElement(mui_1.default,Object.assign({schema:finalSchema,uiSchema:props.buttonTitle?uiSchemaWithButtonTitle:Object.assign(Object.assign({},(0,uiSchemaGenerator_1.uiSchemaGenerator)(finalSchema,advancedProperties)),uiSchema),formData:(0,mergeFormData_1.mergeFormData)(finalSchema,formData),noHtml5Validate:!0,showErrorList:!1,templates:props.buttonComponent?templatesWithCustomButton:{ArrayFieldTemplate:CustomWidgets_1.ArrayFieldTemplate,ObjectFieldTemplate:CustomTemplates_1.ObjectFieldTemplate},validator:validator_ajv6_1.default},props),children)))},Title:Title_1.default,Button:Button_1.default}},"./packages/react-material-ui/dist/components/SchemaForm/Title.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),react_1=__importDefault(__webpack_require__("./node_modules/react/index.js"));exports.default=({children})=>react_1.default.createElement(Text_1.default,{variant:"h4",fontFamily:"Inter",fontSize:24,fontWeight:800,mt:4,gutterBottom:!0},children)},"./packages/react-material-ui/dist/components/SchemaForm/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SchemaForm=void 0;var SchemaForm_1=__webpack_require__("./packages/react-material-ui/dist/components/SchemaForm/SchemaForm.js");Object.defineProperty(exports,"SchemaForm",{enumerable:!0,get:function(){return SchemaForm_1.SchemaForm}})},"./packages/react-material-ui/dist/components/SchemaForm/utils/mapAdvancedProperties.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapAdvancedProperties=void 0;const mapEnumToSchema_1=__webpack_require__("./packages/react-material-ui/dist/components/SchemaForm/utils/mapEnumToSchema.js"),mapEnumToCheckbox_1=__webpack_require__("./packages/react-material-ui/dist/components/SchemaForm/utils/mapEnumToCheckbox.js"),fieldTypesMap={string:"string",email:"string",password:"string",array:"array",select:"string",radio:"string",checkbox:"boolean",checkboxes:"array",switch:"boolean"};exports.mapAdvancedProperties=(_schema,_advancedProperties)=>{if(!(null==_schema?void 0:_schema.properties)||"object"!=typeof(null==_schema?void 0:_schema.properties))return;const overridenProperties=Object.entries(null==_schema?void 0:_schema.properties).map((([key,value])=>{if("boolean"==typeof value)return[key,value];const advancedProperty=null==_advancedProperties?void 0:_advancedProperties[key],fieldType=advancedProperty&&(null==fieldTypesMap?void 0:fieldTypesMap[null==advancedProperty?void 0:advancedProperty.type]);if(!advancedProperty||!fieldType)return[key,value];let parsedSchemaAdvancedProperty={};return"checkboxes"===advancedProperty.type&&(parsedSchemaAdvancedProperty=Object.assign(Object.assign({},value),{type:fieldType,uniqueItems:!0,items:(0,mapEnumToCheckbox_1.mapEnumToCheckbox)(advancedProperty)})),(null==value?void 0:value.enum)&&["select","radio"].includes(advancedProperty.type)&&(parsedSchemaAdvancedProperty=Object.assign(Object.assign({},value),{oneOf:(0,mapEnumToSchema_1.mapEnumToSchema)(fieldType,value.enum,advancedProperty)})),"array"===advancedProperty.type&&advancedProperty.properties&&(parsedSchemaAdvancedProperty=Object.assign(Object.assign({},value),{type:"object",properties:(0,exports.mapAdvancedProperties)({properties:advancedProperty.properties},advancedProperty.advancedProperties)})),[key,Object.keys(parsedSchemaAdvancedProperty).length>0?parsedSchemaAdvancedProperty:value]}));return Object.fromEntries(overridenProperties)}},"./packages/react-material-ui/dist/components/SchemaForm/utils/mapEnumToCheckbox.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapEnumToCheckbox=void 0;exports.mapEnumToCheckbox=advancedProperty=>{if(!advancedProperty.options)return;const isEnum=advancedProperty.options.every((option=>"string"==typeof option));return Object.assign({type:"string"},isEnum?{enum:advancedProperty.options}:{enum:void 0,oneOf:advancedProperty.options.map((option=>"object"==typeof option&&{const:option.value,title:option.label}))})}},"./packages/react-material-ui/dist/components/SchemaForm/utils/mapEnumToSchema.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapEnumToSchema=void 0;exports.mapEnumToSchema=(type,enumList,advancedProperty)=>enumList.map((enumListItem=>{var _a;const option=null===(_a=null==advancedProperty?void 0:advancedProperty.options)||void 0===_a?void 0:_a.find((option=>"object"==typeof option?option.value===enumListItem:enumListItem===option)),title="object"==typeof option?option.label:option||("string"==typeof enumListItem?enumListItem:"Invalid title"),value="object"==typeof option?option.value:enumListItem;return{type,title,const:value}}))},"./packages/react-material-ui/dist/components/SchemaForm/utils/mapWidgetType.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapWidgetType=void 0;const CustomWidgets_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/index.js");exports.mapWidgetType=(propertyKey,schema,advancedProperties)=>{const widgetTypes={string:CustomWidgets_1.CustomTextFieldWidget,email:CustomWidgets_1.CustomEmailFieldWidget,password:CustomWidgets_1.CustomPasswordFieldWidget,select:CustomWidgets_1.CustomSelectWidget,radio:CustomWidgets_1.CustomRadioWidget,checkbox:CustomWidgets_1.CustomCheckboxWidget,checkboxes:CustomWidgets_1.CustomCheckboxesWidget,switch:CustomWidgets_1.CustomSwitchWidget};return advancedProperties&&propertyKey in advancedProperties?widgetTypes[advancedProperties[propertyKey].type]:void 0}},"./packages/react-material-ui/dist/components/SchemaForm/utils/mergeFormData.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mergeFormData=void 0;exports.mergeFormData=(schema,formData)=>{if((null==schema?void 0:schema.properties)&&"object"==typeof schema.properties){const mergedFormData=Object.assign({},formData);if(Object.keys(null==schema?void 0:schema.properties).map((key=>{const property=(null==schema?void 0:schema.properties)&&schema.properties[key];property&&!0!==property&&void 0!==property.type&&!Array.isArray(property.type)&&["array"].includes(property.type)&&(mergedFormData[key]=(null==mergedFormData?void 0:mergedFormData[key])||[""])})),Object.keys(mergedFormData).length)return mergedFormData}return null}},"./packages/react-material-ui/dist/components/SchemaForm/utils/uiSchemaGenerator.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.uiSchemaGenerator=void 0;const mapWidgetType_1=__webpack_require__("./packages/react-material-ui/dist/components/SchemaForm/utils/mapWidgetType.js");exports.uiSchemaGenerator=(schema,advancedProperties)=>{let uiSchema={};return(null==schema?void 0:schema.properties)&&"object"==typeof schema.properties?(Object.keys(null==schema?void 0:schema.properties).forEach((key=>{const widgetType=(0,mapWidgetType_1.mapWidgetType)(key,schema,advancedProperties);widgetType&&(uiSchema=Object.assign(Object.assign({},uiSchema),{[key]:{"ui:widget":widgetType}}))})),uiSchema):uiSchema}},"./packages/react-material-ui/dist/components/SearchField/SearchField.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);ireact_1.default.createElement(Search_1.default,{sx:{color:"grey.400"}});exports.default=_a=>{var _b,{searchIconPlacement="end",defaultValue="",wait=500,onDebouncedSearchChange,onClear,placeholder="Search",onChange}=_a,props=__rest(_a,["searchIconPlacement","defaultValue","wait","onDebouncedSearchChange","onClear","placeholder","onChange"]);const firstRender=(0,react_1.useRef)(!0),[search,setSearch]=(0,react_1.useState)(defaultValue),value=null!==(_b=props.value)&&void 0!==_b?_b:search,handleDebouncedSearch=onDebouncedSearchChange&&(0,react_1.useMemo)((()=>(0,debounce_1.default)(onDebouncedSearchChange,wait)),[]);(0,react_1.useEffect)((()=>{firstRender.current?firstRender.current=!1:null==handleDebouncedSearch||handleDebouncedSearch(value)}),[value]);return react_1.default.createElement(material_1.TextField,Object.assign({placeholder,variant:"outlined",onChange:event=>{setSearch(event.target.value),null==onChange||onChange(event)},value:search,InputProps:Object.assign(Object.assign({},"start"===searchIconPlacement&&{startAdornment:react_1.default.createElement(material_1.InputAdornment,{position:"start"},react_1.default.createElement(SearchIcon,null))}),{endAdornment:react_1.default.createElement(material_1.InputAdornment,{position:"end"},react_1.default.createElement(material_1.IconButton,{size:"small",sx:{mr:.5,visibility:value?"visible":"hidden"},"aria-label":"clear search",onClick:()=>{if(onClear)return onClear();setSearch(""),null==onChange||onChange({target:{value:""}})}},react_1.default.createElement(Clear_1.default,{fontSize:"small"})),"end"===searchIconPlacement&&react_1.default.createElement(SearchIcon,null))})},props))}},"./packages/react-material-ui/dist/components/SearchField/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const SearchField_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/SearchField/SearchField.js"));exports.default=SearchField_1.default},"./packages/react-material-ui/dist/components/Select/Select.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Select=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),FormLabel_1=__webpack_require__("./packages/react-material-ui/dist/components/FormLabel/index.js");exports.Select=props=>{const{id,label,size,value,containerProps,labelProps,options,onChange,required,disabled,error,helperText,name}=props,labelId=`label-${name}`;return react_1.default.createElement(material_1.Box,Object.assign({},containerProps),react_1.default.createElement(material_1.FormControl,{fullWidth:!0},label&&"string"==typeof label?react_1.default.createElement(FormLabel_1.FormLabel,{id:labelId,name,label,required,labelProps}):label,react_1.default.createElement(material_1.TextField,{id,select:!0,name,value,disabled,size:size||"small",error,helperText,onChange,sx:{marginTop:.5,width:"100%"},hiddenLabel:!0,label:"","aria-labelledby":labelId,"data-testid":"select"},options.map((({value,label},i)=>react_1.default.createElement(material_1.MenuItem,{key:i,value,disabled},label))))))}},"./packages/react-material-ui/dist/components/Select/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Select=void 0;var Select_1=__webpack_require__("./packages/react-material-ui/dist/components/Select/Select.js");Object.defineProperty(exports,"Select",{enumerable:!0,get:function(){return Select_1.Select}})},"./packages/react-material-ui/dist/components/SelectField/SelectField.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{options=[],defaultValue,hasAllOption=!0,isLoading=!1,label,onChange,fullWidth,size,variant="outlined"}=_a,rest=__rest(_a,["options","defaultValue","hasAllOption","isLoading","label","onChange","fullWidth","size","variant"]);const finalOptions=[...hasAllOption?[exports.allOption]:[],...options];return react_1.default.createElement(material_1.Box,null,react_1.default.createElement(FormFieldSkeleton_1.FormFieldSkeleton,{isLoading,hideLabel:!0},react_1.default.createElement(material_1.FormControl,{fullWidth,size},react_1.default.createElement(material_1.InputLabel,{id:"select-label"},label),react_1.default.createElement(material_1.Select,Object.assign({labelId:"select-label",defaultValue:null!=defaultValue?defaultValue:hasAllOption&&exports.allOption.value,onChange:event=>{const value=event.target.value;onChange((value=>value===exports.allOption.value?null:value)(value))},label,fullWidth,size,variant},rest),null==finalOptions?void 0:finalOptions.map((role=>react_1.default.createElement(material_1.MenuItem,{key:role.value,value:role.value},role.label)))))))}},"./packages/react-material-ui/dist/components/SelectField/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SelectField=void 0;var SelectField_1=__webpack_require__("./packages/react-material-ui/dist/components/SelectField/SelectField.js");Object.defineProperty(exports,"SelectField",{enumerable:!0,get:function(){return SelectField_1.SelectField}})},"./packages/react-material-ui/dist/components/SideModal/SideModal.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SideModal=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),Drawer_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Drawer/index.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Close_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/Close.js")),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js"));exports.SideModal=props=>{const{open,toggleDrawer,title,textProps={fontSize:18,fontWeight:500,color:"common.white",fontFamily:"'Inter', sans-serif"},backgroundColor,headerBackgroundColor,closeIconColor,width,anchor="right",sx,children}=props,theme=(0,material_1.useTheme)();return react_1.default.createElement(Drawer_1.default,{anchor,variant:"temporary",open,onClose:toggleDrawer,sx:[{"& .MuiDrawer-paper":{backgroundColor:backgroundColor||theme.palette.common.white,width:width||"33%",minWidth:width||"448px",[theme.breakpoints.down("sm")]:{width:width||"100%",minWidth:"auto"}}},...Array.isArray(sx)?sx:[sx]],"data-testid":"side-modal"},react_1.default.createElement(Box_1.default,{display:"flex",alignItems:"center",justifyContent:"center",sx:theme=>({backgroundColor:headerBackgroundColor||theme.palette.primary.main,padding:"16px 16px 16px 24px"}),"data-testid":"side-modal-header"},title&&react_1.default.createElement(Text_1.default,Object.assign({},textProps),title),react_1.default.createElement(IconButton_1.default,{onClick:toggleDrawer,sx:{marginLeft:"auto",color:closeIconColor||theme.palette.common.white},"data-testid":"side-modal-close-button"},react_1.default.createElement(Close_1.default,null))),children)}},"./packages/react-material-ui/dist/components/SideModal/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SideModal=void 0;var SideModal_1=__webpack_require__("./packages/react-material-ui/dist/components/SideModal/SideModal.js");Object.defineProperty(exports,"SideModal",{enumerable:!0,get:function(){return SideModal_1.SideModal}})},"./packages/react-material-ui/dist/components/SimpleForm/SimpleForm.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),__1=__webpack_require__("./packages/react-material-ui/dist/index.js"),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Button_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Button/index.js")),validator_ajv6_1=__importDefault(__webpack_require__("./node_modules/@rjsf/validator-ajv6/lib/index.js")),mui_1=__importDefault(__webpack_require__("./node_modules/@rjsf/mui/lib/index.js")),CustomWidgets_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/index.js");exports.default=({form,initialData,onSubmit,validate,onError})=>{const{fields,titleTextProps,formProps,submitButtonProps}=form,generateRequired=_fields=>{const required=[];return Object.keys(_fields).map((key=>{_fields[key].required&&required.push(key)})),required},generateProperties=_fields=>{const properties={},fieldTypes={string:"string",email:"string",password:"string",array:"array",stringArray:"array",select:"string",radio:"string",checkbox:"boolean",checkboxes:"array",switch:"boolean"};return Object.keys(_fields).map((key=>{var _a,_b;const field=_fields[key],fieldType=fieldTypes[field.type],fieldProperties={};fieldType&&(fieldProperties.type=fieldType),field.title&&(fieldProperties.title=field.title),field.description&&(fieldProperties.description=field.description),field.default&&(fieldProperties.default=field.default),field.options&&"checkboxes"===field.type&&(fieldProperties.items={type:"string",anyOf:null===(_a=field.options)||void 0===_a?void 0:_a.map((opt=>"string"==typeof opt?{const:opt,title:opt}:{const:opt.value,title:opt.label}))},fieldProperties.uniqueItems=!0),["select","radio"].includes(field.type)&&(fieldProperties.oneOf=(null===(_b=null==field?void 0:field.options)||void 0===_b?void 0:_b.map((opt=>"string"==typeof opt?{const:opt,title:opt}:{const:opt.value,title:opt.label})))||[],fieldProperties.uniqueItems=!0),"stringArray"===field.type&&(fieldProperties.items={type:"string",title:field.title}),"array"===field.type&&field.fields&&(fieldProperties.items={type:"object",required:generateRequired(field.fields),properties:generateProperties(field.fields)}),properties[key]=fieldProperties})),properties},schema={type:"object",required:generateRequired(fields),properties:generateProperties(fields)};return react_1.default.createElement(react_1.Fragment,null,form.title&&react_1.default.createElement(__1.Text,Object.assign({variant:"h4",fontFamily:"Inter",fontSize:24,fontWeight:800,mt:4,gutterBottom:!0},titleTextProps),form.title),react_1.default.createElement(Box_1.default,null,react_1.default.createElement(mui_1.default,Object.assign({schema,uiSchema:(()=>{const uiSchema={},widgetTypes={string:CustomWidgets_1.CustomTextFieldWidget,email:CustomWidgets_1.CustomEmailFieldWidget,password:CustomWidgets_1.CustomPasswordFieldWidget,select:CustomWidgets_1.CustomSelectWidget,radio:CustomWidgets_1.CustomRadioWidget,checkbox:CustomWidgets_1.CustomCheckboxWidget,checkboxes:CustomWidgets_1.CustomCheckboxesWidget,switch:CustomWidgets_1.CustomSwitchWidget};return Object.keys(fields).map((key=>{const field=fields[key];widgetTypes[field.type]&&(uiSchema[key]={"ui:widget":widgetTypes[field.type]})})),uiSchema})(),formData:(()=>{const formData=Object.assign({},initialData);return Object.keys(fields).map((key=>{const field=fields[key];["stringArray","array"].includes(field.type)&&(formData[key]=(null==initialData?void 0:initialData[key])||[""])})),Object.keys(formData).length?formData:null})(),noHtml5Validate:!0,showErrorList:!1,onError,onSubmit,templates:{ArrayFieldTemplate:CustomWidgets_1.ArrayFieldTemplate},customValidate:validate,validator:validator_ajv6_1.default},formProps),react_1.default.createElement(Button_1.default,Object.assign({type:"submit",fullWidth:!0,variant:"contained",sx:{mt:3}},submitButtonProps),form.submitButtonLabel||"Submit"))))}},"./packages/react-material-ui/dist/components/SimpleForm/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const SimpleForm_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/SimpleForm/SimpleForm.js"));exports.default=SimpleForm_1.default},"./packages/react-material-ui/dist/components/Switch/Switch.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Switch=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Switch_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Switch/index.js")),FormGroup_1=__importDefault(__webpack_require__("./node_modules/@mui/material/FormGroup/index.js")),FormControlLabel_1=__importDefault(__webpack_require__("./node_modules/@mui/material/FormControlLabel/index.js")),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js"));exports.Switch=props=>{const{label,disabled,checked,onChange,required,textProps={fontSize:16,fontWeight:400,color:"text.primary"}}=props;return react_1.default.createElement(react_1.default.Fragment,null,label?react_1.default.createElement(FormGroup_1.default,null,react_1.default.createElement(FormControlLabel_1.default,{disabled,control:react_1.default.createElement(Switch_1.default,{onChange}),label:react_1.default.createElement(Text_1.default,Object.assign({},textProps),label,required&&" *"),checked})):react_1.default.createElement(Switch_1.default,Object.assign({},props)))}},"./packages/react-material-ui/dist/components/Switch/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Switch=void 0;var Switch_1=__webpack_require__("./packages/react-material-ui/dist/components/Switch/Switch.js");Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return Switch_1.Switch}})},"./packages/react-material-ui/dist/components/Table/Styles.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.IconContainer=exports.Table=void 0;const Table_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Table/index.js")),styles_1=__webpack_require__("./node_modules/@mui/material/styles/index.js"),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js"));exports.Table=(0,styles_1.styled)(Table_1.default)((({theme,variant})=>Object.assign({borderCollapse:"separate"},((variant,theme)=>"contained"===variant?(theme=>({borderSpacing:"0 10px",marginTop:"-10px",th:{border:"none"},td:{border:`solid 1px ${theme.palette.primary.main}`,borderStyle:"solid none",padding:"10px",backgroundColor:"light"===theme.palette.mode?theme.palette.grey[100]:theme.palette.grey[800]},"td:first-of-type":{borderLeftStyle:"solid",borderTopLeftRadius:"10px",borderBottomLeftRadius:"10px"},"td:last-child":{borderRightStyle:"solid",borderBottomRightRadius:"10px",borderTopRightRadius:"10px"}}))(theme):"outlined"===variant?(theme=>({th:{border:"solid 1px #e5e7eb",borderStyle:"solid none",backgroundColor:"light"===theme.palette.mode?theme.palette.grey[100]:theme.palette.grey[800],"&:first-of-type":{borderTopLeftRadius:"10px",borderLeftStyle:"solid"},"&:last-child":{borderTopRightRadius:"10px",borderRightStyle:"solid"}},td:{"&:first-of-type":{borderLeft:"solid 1px #e5e7eb"},"&:last-child":{borderRight:"solid 1px #e5e7eb"}}}))(theme):void 0)(variant,theme)))),exports.IconContainer=(0,styles_1.styled)(Box_1.default)((()=>({display:"flex",marginRight:"8px",marginLeft:"-4px"})))},"./packages/react-material-ui/dist/components/Table/Table.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{children,variant="contained",sx}=_a,rest=__rest(_a,["children","variant","sx"]);return react_1.default.createElement(Styles_1.Table,Object.assign({variant},rest,{sx:[{minWidth:isMobile_1.isMobile?"auto":750},...Array.isArray(sx)?sx:[sx]],"data-testid":"mui-table"}),children)}},"./packages/react-material-ui/dist/components/Table/TableBody/TableBodyCells.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);ireact_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:400,color:"text.primary"},null!=value?value:"");exports.TableBodyCells=_a=>{var{row}=_a,rest=__rest(_a,["row"]);const{headers}=(0,useTableRoot_1.useTableRoot)();return react_1.default.createElement(react_1.default.Fragment,null,headers.map((header=>header.hide||isMobile_1.isMobile&&header.hideOnMobile?null:react_1.default.createElement(material_1.TableCell,Object.assign({key:header.id},rest),((row,dataOrigin)=>{var _a,_b;const cell=(0,get_1.default)(row,dataOrigin);return cell?"object"==typeof cell?"component"in cell?cell.component:cell.title?react_1.default.createElement(material_1.Tooltip,{title:cell.title},react_1.default.createElement("span",null,null!==(_a=cell.value)&&void 0!==_a?_a:"")):renderTextCell(null!==(_b=cell.value)&&void 0!==_b?_b:""):renderTextCell(cell):null})(row,header.source||header.id)))))}},"./packages/react-material-ui/dist/components/Table/TableBody/TableBodyCheckbox.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{row,labelId}=_a,rest=__rest(_a,["row","labelId"]);const{isSelected,handleSelectCheckboxItem}=(0,useTableRoot_1.useTableRoot)(),isItemSelected=isSelected(row.id);return react_1.default.createElement(material_1.TableCell,Object.assign({padding:"checkbox"},rest),react_1.default.createElement(material_1.Checkbox,{color:"primary",checked:isItemSelected,inputProps:{"aria-labelledby":labelId},onClick:event=>handleSelectCheckboxItem(event,row)}))}},"./packages/react-material-ui/dist/components/Table/TableBody/TableBodyOption.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableBodyOption=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),TableOptions_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/TableOptions.js"));exports.TableBodyOption=({row,customRowOptions,toggleDirection})=>react_1.default.createElement(material_1.TableCell,null,react_1.default.createElement(TableOptions_1.default,{row,customRowOptions,toggleDirection}))},"./packages/react-material-ui/dist/components/Table/TableBody/TableBodyRow.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{row,children,hasCheckboxes=!1}=_a,rest=__rest(_a,["row","children","hasCheckboxes"]);const{isSelected,handleSelectCheckboxItem}=(0,useTableRoot_1.useTableRoot)(),isItemSelected=isSelected(row.id);return react_1.default.createElement(material_1.TableRow,Object.assign({onClick:hasCheckboxes?event=>handleSelectCheckboxItem(event,row):void 0,role:hasCheckboxes?"checkbox":"","aria-checked":isItemSelected,tabIndex:-1,key:row.id,selected:isItemSelected},rest),children)}},"./packages/react-material-ui/dist/components/Table/TableBody/TableBodyRows.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableBodyRows=exports.getPaginatedRows=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),utils_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/index.js"),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js"),TableBodyRow_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyRow.js"),TableBodyCells_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyCells.js"),TableRowSkeleton_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableRowSkeleton.js");exports.getPaginatedRows=(rows,page,rowsPerPage,order,orderBy)=>rows.sort(((a,b)=>(0,utils_1.sortTable)(a,b,order,orderBy))).slice((page-1)*rowsPerPage,(page-1)*rowsPerPage+rowsPerPage);const renderTableRows=(row,renderRow,labelId)=>renderRow?renderRow(row,labelId):(row=>react_1.default.createElement(TableBodyRow_1.TableBodyRow,{key:row.id,row},react_1.default.createElement(TableBodyCells_1.TableBodyCells,{row})))(row);exports.TableBodyRows=({renderRow,isLoading=!1})=>{const{rows,tableQuery,isControlled}=(0,useTableRoot_1.useTableRoot)(),{page,rowsPerPage,order,orderBy}=tableQuery;return isLoading?react_1.default.createElement(TableRowSkeleton_1.TableRowSkeleton,null):isControlled?react_1.default.createElement(react_1.Fragment,null,rows.map(((row,index)=>renderTableRows(row,renderRow,`table-checkbox-${index}`)))):react_1.default.createElement(react_1.Fragment,null,(0,exports.getPaginatedRows)(rows,page,rowsPerPage,order,orderBy).map(((row,index)=>{const labelId=`table-checkbox-${index}`;return react_1.default.createElement(react_1.Fragment,{key:row.id},renderTableRows(row,renderRow,labelId))})))}},"./packages/react-material-ui/dist/components/Table/TableCellSkeleton.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableCellSkeleton=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js");exports.TableCellSkeleton=()=>{const{headers}=(0,useTableRoot_1.useTableRoot)();return react_1.default.createElement(react_1.default.Fragment,null,headers.map((header=>header.hide?null:react_1.default.createElement(material_1.TableCell,{key:header.id},react_1.default.createElement(material_1.Skeleton,{height:32,width:header.width})))))}},"./packages/react-material-ui/dist/components/Table/TableColumnOrderable.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableColumnOrderable=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js"),OrderableDropDown_1=__webpack_require__("./packages/react-material-ui/dist/components/OrderableDropDown/index.js");exports.TableColumnOrderable=({hasAllOption,text,icon,orderableListCacheKey,cacheApiPath})=>{const{headers,setHeaders}=(0,useTableRoot_1.useTableRoot)(),[headerOrder,setHeaderOrder]=(0,react_1.useState)(headers.map((header=>({id:header.id,label:header.label}))));return(0,react_1.useEffect)((()=>{const newOrderedHeaders=headerOrder.map((header=>{const originalHeader=headers.find((h=>h.id===header.id));return Object.assign(Object.assign({},originalHeader),{hide:header.hide})}));setHeaders(newOrderedHeaders)}),[headerOrder]),react_1.default.createElement(OrderableDropDown_1.OrderableDropDown,{hasAllOption,list:headerOrder,setList:setHeaderOrder,icon,text,storage:{type:"table",key:orderableListCacheKey,cacheApiPath,onListUpdateFromCache:cacheList=>{const newHeaders=cacheList.map((header=>{const originalHeader=headers.find((({id})=>id===header.id));return Object.assign(Object.assign({},originalHeader),{hide:header.hide})}));setHeaderOrder(newHeaders)}}})}},"./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCell.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var _b,{cell}=_a,rest=__rest(_a,["cell"]);const{tableQuery,handleSort}=(0,useTableRoot_1.useTableRoot)(),{order,orderBy}=tableQuery,isHeaderSortable=null===(_b=cell.sortable)||void 0===_b||_b;return react_1.default.createElement(TableCell_1.default,Object.assign({key:cell.id,width:cell.width,align:(null==cell?void 0:cell.textAlign)||cell.numeric?"right":"left",padding:cell.disablePadding?"none":"normal",sortDirection:orderBy===cell.id&&order},rest),isHeaderSortable?react_1.default.createElement(TableSortLabel_1.default,{active:orderBy===cell.id,direction:orderBy===cell.id?order:types_1.Order.Asc,onClick:(property=cell.id,event=>{handleSort(event,property)})},cell.label,orderBy===cell.id?react_1.default.createElement(Box_1.default,{component:"span",sx:utils_1.visuallyHidden},order===types_1.Order.Desc?"sorted descending":"sorted ascending"):null):react_1.default.createElement(react_1.default.Fragment,null,cell.label));var property}},"./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCells.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableHeaderCells=void 0;const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js"),TableHeaderCell_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCell.js"),isMobile_1=__webpack_require__("./packages/react-material-ui/dist/utils/isMobile.js");exports.TableHeaderCells=({renderCell})=>{const{headers}=(0,useTableRoot_1.useTableRoot)();return react_1.default.createElement(react_1.Fragment,null,!renderCell&&headers.map((header=>header.hide?null:react_1.default.createElement(TableHeaderCell_1.TableHeaderCell,{key:header.id,cell:header}))),!!renderCell&&headers.map((header=>header.hide||isMobile_1.isMobile&&header.hideOnMobile?null:react_1.default.createElement(react_1.Fragment,{key:header.id},renderCell(Object.assign(Object.assign({},header),{key:header.id}))))))}},"./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCheckbox.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableHeaderCheckbox=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js");exports.TableHeaderCheckbox=props=>{const{rows,selected,handleSelectAllCheckboxes}=(0,useTableRoot_1.useTableRoot)(),numSelected=selected.length,rowCount=rows.length;return react_1.default.createElement(material_1.TableCell,Object.assign({padding:"checkbox"},props),react_1.default.createElement(material_1.Checkbox,{color:"primary",indeterminate:numSelected>0&&numSelected0&&numSelected===rowCount,onChange:handleSelectAllCheckboxes,inputProps:{"aria-label":"select all"}}))}},"./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderOption.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableHeaderOption=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js");exports.TableHeaderOption=()=>react_1.default.createElement(material_1.TableCell,{key:"options",align:"left",padding:"none"})},"./packages/react-material-ui/dist/components/Table/TableOptions.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),Menu_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Menu/index.js")),Fade_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Fade/index.js")),Tooltip_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Tooltip/index.js")),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),MoreHoriz_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/MoreHoriz.js")),MoreVert_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/MoreVert.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Styles_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/Styles.js"),MenuItem_1=__importDefault(__webpack_require__("./node_modules/@mui/material/MenuItem/index.js"));exports.default=({row,customRowOptions,toggleDirection="horizontal"})=>{const[anchorEl,setAnchorEl]=(0,react_1.useState)(null),open=Boolean(anchorEl),handleClose=()=>{setAnchorEl(null)},handleCustomItemClick=item=>()=>{item.onClick(row),handleClose()},renderOptions=(0,react_1.useMemo)((()=>"function"==typeof customRowOptions?customRowOptions({row,close:handleClose}):Array.isArray(customRowOptions)?react_1.default.createElement(Box_1.default,{display:"flex",flexDirection:"column",sx:{p:0,m:0}},customRowOptions.map((item=>react_1.default.createElement(MenuItem_1.default,{key:item.key,onClick:handleCustomItemClick(item)},item.icon&&react_1.default.createElement(Styles_1.IconContainer,null,item.icon),item.text)))):void 0),[customRowOptions]);return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(Tooltip_1.default,{title:"Options"},react_1.default.createElement(IconButton_1.default,{id:"fade-button","data-testid":"fade-button","aria-controls":open?"fade-menu":void 0,"aria-haspopup":"true","aria-expanded":open?"true":void 0,onClick:event=>{customRowOptions&&setAnchorEl(event.currentTarget)}},"horizontal"===toggleDirection?react_1.default.createElement(MoreHoriz_1.default,null):react_1.default.createElement(MoreVert_1.default,null))),react_1.default.createElement(Menu_1.default,{id:"fade-menu","data-testid":"fade-menu",MenuListProps:{"aria-labelledby":"fade-button"},anchorEl,open,onClose:handleClose,TransitionComponent:Fade_1.default},renderOptions))}},"./packages/react-material-ui/dist/components/Table/TablePagination.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{variant,rowsPerPageOptions=[5,10,25],sx}=_a,rest=__rest(_a,["variant","rowsPerPageOptions","sx"]);const theme=(0,material_1.useTheme)(),{rows,tableQuery,total,handleChangePage,handleChangeRowsPerPage}=(0,useTableRoot_1.useTableRoot)(),{rowsPerPage,page}=tableQuery;return react_1.default.createElement(material_1.TablePagination,Object.assign({rowsPerPageOptions,component:"div",count:total||(null==rows?void 0:rows.length)||0,rowsPerPage,page:page?page-1:0,onPageChange:(event,page)=>handleChangePage(event,page+1),onRowsPerPageChange:handleChangeRowsPerPage},rest,{sx:[Object.assign({},"outlined"===variant&&{backgroundColor:"light"===theme.palette.mode?theme.palette.grey[100]:theme.palette.grey[800],border:"solid 1px #e5e7eb",borderTop:"none",borderBottomLeftRadius:"10px",borderBottomRightRadius:"10px",borderLeftStyle:"solid",borderRightStyle:"solid"}),...Array.isArray(sx)?sx:[sx]],"data-testid":"table-pagination"}))}},"./packages/react-material-ui/dist/components/Table/TablePaginationNumbers.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TablePaginationNumbers=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js");exports.TablePaginationNumbers=props=>{const{rows,pageCount,handleChangePage,tableQuery}=(0,useTableRoot_1.useTableRoot)(),{page}=tableQuery;return react_1.default.createElement(material_1.Box,{display:"flex",justifyContent:"center"},react_1.default.createElement(material_1.Pagination,Object.assign({count:pageCount||(null==rows?void 0:rows.length)&&Math.ceil((null==rows?void 0:rows.length)/5)||0,onChange:handleChangePage,page,"data-testid":"table-pagination"},props)))}},"./packages/react-material-ui/dist/components/Table/TableRoot.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{children,rows=[],headers:initialHeaders=[],total,pageCount,tableQueryState:controlledTableQueryState,updateTableQueryState:controlledUpdateTableQueryState,navigate}=_a,rest=__rest(_a,["children","rows","headers","total","pageCount","tableQueryState","updateTableQueryState","navigate"]);const searchParams=new URLSearchParams(window.location.search),{tableQueryState,setTableQueryState}=(0,useTableQueryState_1.useTableQueryState)(),[selected,setSelected]=(0,react_1.useState)([]),[headers,setHeaders]=(0,react_1.useState)(initialHeaders),isControlled=!!controlledTableQueryState,handleUpdateTableQuery=isControlled?controlledUpdateTableQueryState:setTableQueryState,{order,orderBy}=isControlled?controlledTableQueryState:tableQueryState;return react_1.default.createElement(useTableRoot_1.TableContext.Provider,{value:{rows,headers,total,pageCount,isControlled,tableQuery:isControlled?controlledTableQueryState:tableQueryState,selected,setHeaders,isSelected:id=>-1!==selected.findIndex((_row=>_row.id===id)),handleChangePage:(event,newPage)=>{const newPageProperty={page:newPage};handleUpdateTableQuery((prevState=>Object.assign(Object.assign({},prevState),newPageProperty)));const newSearchParam=(0,http_1.getSearchParams)(searchParams,newPageProperty);newSearchParam&&navigate&&navigate(`${window.location.pathname}?${newSearchParam}`)},handleChangeRowsPerPage:event=>{const newRowsPerPageProperties={rowsPerPage:parseInt(event.target.value,10),page:1};handleUpdateTableQuery((prevState=>Object.assign(Object.assign({},prevState),newRowsPerPageProperties)));const newSearchParam=(0,http_1.getSearchParams)(searchParams,newRowsPerPageProperties);newSearchParam&&navigate&&navigate(`${window.location.pathname}?${newSearchParam}`)},handleSort:(event,property)=>{const newOrderProperties={order:orderBy===property&&order===types_1.Order.Asc?types_1.Order.Desc:types_1.Order.Asc,orderBy:property,page:1};handleUpdateTableQuery((prevState=>Object.assign(Object.assign({},prevState),newOrderProperties)));const newSearchParam=(0,http_1.getSearchParams)(searchParams,newOrderProperties);newSearchParam&&navigate&&navigate(`${window.location.pathname}?${newSearchParam}`)},handleSelectAllCheckboxes:event=>{event.target.checked?setSelected(rows):setSelected([])},handleSelectCheckboxItem:(event,row)=>{const selectedIndex=selected.findIndex((_row=>_row.id===row.id));let newSelected=[];-1===selectedIndex?newSelected=newSelected.concat(selected,row):0===selectedIndex?newSelected=newSelected.concat(selected.slice(1)):selectedIndex===selected.length-1?newSelected=newSelected.concat(selected.slice(0,-1)):selectedIndex>0&&(newSelected=newSelected.concat(selected.slice(0,selectedIndex),selected.slice(selectedIndex+1))),setSelected(newSelected)}}},react_1.default.createElement(material_1.Box,Object.assign({width:"100%"},rest),children))}},"./packages/react-material-ui/dist/components/Table/TableRowSkeleton.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TableRowSkeleton=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),TableCellSkeleton_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableCellSkeleton.js"),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js");exports.TableRowSkeleton=()=>{const{tableQuery}=(0,useTableRoot_1.useTableRoot)(),rowsToRender=Array.from({length:tableQuery.rowsPerPage},((_,index)=>index+1));return react_1.default.createElement(react_1.default.Fragment,null,rowsToRender.map((item=>react_1.default.createElement(material_1.TableRow,{key:item},react_1.default.createElement(TableCellSkeleton_1.TableCellSkeleton,null)))))}},"./packages/react-material-ui/dist/components/Table/hooks/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useTableRoot=exports.getTableQueryState=exports.useTableQueryState=void 0;const useTableQueryState_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableQueryState.js");Object.defineProperty(exports,"useTableQueryState",{enumerable:!0,get:function(){return useTableQueryState_1.useTableQueryState}}),Object.defineProperty(exports,"getTableQueryState",{enumerable:!0,get:function(){return useTableQueryState_1.getTableQueryState}});const useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js");Object.defineProperty(exports,"useTableRoot",{enumerable:!0,get:function(){return useTableRoot_1.useTableRoot}})},"./packages/react-material-ui/dist/components/Table/hooks/useTableQueryState.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useTableQueryState=exports.getTableQueryState=exports.TABLE_QUERY_STATE_DEFAULT_VALUE=void 0;const types_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/types.js"),react_1=__webpack_require__("./node_modules/react/index.js");exports.TABLE_QUERY_STATE_DEFAULT_VALUE={order:types_1.Order.Asc,orderBy:"id",rowsPerPage:5,page:1};exports.getTableQueryState=(tableQuery,searchParams)=>({order:(null==searchParams?void 0:searchParams.get("order"))||(null==tableQuery?void 0:tableQuery.order)||exports.TABLE_QUERY_STATE_DEFAULT_VALUE.order,orderBy:(null==searchParams?void 0:searchParams.get("orderBy"))||(null==tableQuery?void 0:tableQuery.orderBy)||exports.TABLE_QUERY_STATE_DEFAULT_VALUE.orderBy,rowsPerPage:Number(null==searchParams?void 0:searchParams.get("rowsPerPage"))||(null==tableQuery?void 0:tableQuery.rowsPerPage)||exports.TABLE_QUERY_STATE_DEFAULT_VALUE.rowsPerPage,page:Number(null==searchParams?void 0:searchParams.get("page"))||(null==tableQuery?void 0:tableQuery.page)||exports.TABLE_QUERY_STATE_DEFAULT_VALUE.page,simpleFilter:(null==searchParams?void 0:searchParams.get("simpleFilter"))&&JSON.parse(searchParams.get("simpleFilter"))||(null==tableQuery?void 0:tableQuery.simpleFilter)||void 0,search:(null==searchParams?void 0:searchParams.get("search"))&&JSON.parse(searchParams.get("search"))||(null==tableQuery?void 0:tableQuery.search)||void 0});exports.useTableQueryState=tableQuery=>{const searchParams=new URLSearchParams(window.location.search),[tableQueryState,setTableQueryState]=(0,react_1.useState)((0,exports.getTableQueryState)(tableQuery,searchParams));return{tableQueryState,setTableQueryState}}},"./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useTableRoot=exports.TableContext=void 0;const react_1=__webpack_require__("./node_modules/react/index.js");exports.TableContext=(0,react_1.createContext)({});exports.useTableRoot=()=>{const tableRootContext=(0,react_1.useContext)(exports.TableContext);if(!tableRootContext)throw new Error("You must use table root under TableRootContext");return tableRootContext}},"./packages/react-material-ui/dist/components/Table/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useTable=void 0;const Table_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/Table.js"),TablePagination_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TablePagination.js"),TablePaginationNumbers_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TablePaginationNumbers.js"),TableHeaderCells_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCells.js"),TableHeaderCheckbox_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCheckbox.js"),TableHeaderOption_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderOption.js"),TableBodyCells_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyCells.js"),TableBodyCheckbox_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyCheckbox.js"),TableBodyOption_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyOption.js"),TableBodyRow_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyRow.js"),TableBodyRows_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableBody/TableBodyRows.js"),TableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableRoot.js"),TableHeaderCell_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableHeader/TableHeaderCell.js"),TableRowSkeleton_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableRowSkeleton.js"),TableCellSkeleton_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableCellSkeleton.js"),TableColumnOrderable_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/TableColumnOrderable.js"),useTable_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/useTable.js"));exports.useTable=useTable_1.default;const TableComponent={Table:Table_1.Table,BodyCell:TableBodyCells_1.TableBodyCells,BodyCheckboxes:TableBodyCheckbox_1.TableBodyCheckbox,BodyOption:TableBodyOption_1.TableBodyOption,BodyRow:TableBodyRow_1.TableBodyRow,BodyRows:TableBodyRows_1.TableBodyRows,Pagination:TablePagination_1.TablePagination,PaginationNumbers:TablePaginationNumbers_1.TablePaginationNumbers,HeaderCell:TableHeaderCell_1.TableHeaderCell,HeaderCells:TableHeaderCells_1.TableHeaderCells,HeaderCheckbox:TableHeaderCheckbox_1.TableHeaderCheckbox,HeaderOption:TableHeaderOption_1.TableHeaderOption,Root:TableRoot_1.TableRoot,CellSkeleton:TableCellSkeleton_1.TableCellSkeleton,RowSkeleton:TableRowSkeleton_1.TableRowSkeleton,ColumnOrderable:TableColumnOrderable_1.TableColumnOrderable};exports.default=TableComponent},"./packages/react-material-ui/dist/components/Table/types.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Order=void 0,function(Order){Order.Asc="asc",Order.Desc="desc"}(exports.Order||(exports.Order={}))},"./packages/react-material-ui/dist/components/Table/useTable.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__webpack_require__("./node_modules/react/index.js"),react_data_provider_1=__importStar(__webpack_require__("./packages/react-data-provider/dist/index.js")),useTableQueryState_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableQueryState.js"),http_1=__webpack_require__("./packages/react-material-ui/dist/utils/http/index.js");exports.default=(resource,options)=>{const searchParams=new URLSearchParams(window.location.search),{get}=(0,react_data_provider_1.default)(),firstRender=(0,react_1.useRef)(!0),{tableQueryState,setTableQueryState}=(0,useTableQueryState_1.useTableQueryState)(options);(0,react_1.useEffect)((()=>{var _a;const newSearchParam=(0,http_1.getSearchParams)(searchParams,{simpleFilter:JSON.stringify(null==tableQueryState?void 0:tableQueryState.simpleFilter)});null===(_a=null==options?void 0:options.navigate)||void 0===_a||_a.call(options,`${window.location.pathname}?${null!=newSearchParam?newSearchParam:""}`)}),[JSON.stringify(tableQueryState.simpleFilter)]),(0,react_1.useEffect)((()=>{var _a;const newSearchParam=(0,http_1.getSearchParams)(searchParams,{search:JSON.stringify(null==tableQueryState?void 0:tableQueryState.search)});null===(_a=null==options?void 0:options.navigate)||void 0===_a||_a.call(options,`${window.location.pathname}?${null!=newSearchParam?newSearchParam:""}`)}),[JSON.stringify(tableQueryState.search)]);const simpleFilterQuery=()=>{if(!tableQueryState.simpleFilter)return;const queryArr=[];for(const[key,value]of Object.entries(tableQueryState.simpleFilter))queryArr.push(`${key}${value}`);return queryArr};(0,react_1.useEffect)((()=>{execute()}),[JSON.stringify(tableQueryState)]);const{data,execute,refresh,isPending,error}=(0,react_data_provider_1.useQuery)((()=>get({uri:resource,queryParams:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(null==tableQueryState?void 0:tableQueryState.rowsPerPage)&&!(null==options?void 0:options.noPagination)&&{limit:tableQueryState.rowsPerPage}),{page:tableQueryState.page}),(null==tableQueryState?void 0:tableQueryState.orderBy)&&{sort:`${null==tableQueryState?void 0:tableQueryState.orderBy},${null==tableQueryState?void 0:tableQueryState.order.toUpperCase()}`}),(null==tableQueryState?void 0:tableQueryState.simpleFilter)&&{filter:simpleFilterQuery()}),(null==tableQueryState?void 0:tableQueryState.search)&&{s:JSON.stringify(null==tableQueryState?void 0:tableQueryState.search)})})),!1,null==options?void 0:options.callbacks);return{data:null==data?void 0:data.data,isPending,error,execute,refresh,updateSimpleFilter:(simpleFilter,resetPage=!0)=>{setTableQueryState((prevState=>{var _a;const updatedState=Object.assign({},prevState);for(const entries of Object.entries(simpleFilter)){const[key,value]=entries;null==value?null===(_a=null==updatedState?void 0:updatedState.simpleFilter)||void 0===_a||delete _a[key]:void 0===(null==updatedState?void 0:updatedState.simpleFilter)?updatedState.simpleFilter={[key]:value}:updatedState.simpleFilter[key]=value}const updatedSimpleFilter=(null==updatedState?void 0:updatedState.simpleFilter)&&Object.keys(updatedState.simpleFilter).length>0?updatedState.simpleFilter:void 0,res=Object.assign({},updatedState&&Object.assign(Object.assign(Object.assign({},updatedState),resetPage&&!firstRender.current&&{page:useTableQueryState_1.TABLE_QUERY_STATE_DEFAULT_VALUE.page}),{simpleFilter:updatedSimpleFilter}));return firstRender.current&&(firstRender.current=!1),res}))},simpleFilter:null==tableQueryState?void 0:tableQueryState.simpleFilter,updateSearch:(search,resetPage=!0)=>{setTableQueryState((prevState=>{var _a;const updatedState=Object.assign({},prevState);if(null===search&&(updatedState.search=void 0),search)for(const entries of Object.entries(search)){const[key,value]=entries;null==value?null===(_a=null==updatedState?void 0:updatedState.search)||void 0===_a||delete _a[key]:void 0===(null==updatedState?void 0:updatedState.search)?updatedState.search={[key]:value}:updatedState.search[key]=value}const updatedSearch=(null==updatedState?void 0:updatedState.search)&&Object.keys(updatedState.search).length>0?updatedState.search:void 0,res=Object.assign({},updatedState&&Object.assign(Object.assign(Object.assign({},updatedState),resetPage&&!firstRender.current&&{page:useTableQueryState_1.TABLE_QUERY_STATE_DEFAULT_VALUE.page}),{search:updatedSearch}));return firstRender.current&&(firstRender.current=!1),res}))},search:null==tableQueryState?void 0:tableQueryState.search,total:null==data?void 0:data.total,pageCount:null==data?void 0:data.pageCount,tableQueryState,setTableQueryState}}},"./packages/react-material-ui/dist/components/Table/utils/createTableStyles.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=styles=>styles},"./packages/react-material-ui/dist/components/Table/utils/descendingComparator.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function descendingComparator(a,b,orderBy){return b[orderBy]a[orderBy]?1:0}},"./packages/react-material-ui/dist/components/Table/utils/getComparator.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const types_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/types.js"),descendingComparator_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/descendingComparator.js"));exports.default=function getComparator(order,orderBy){return order===types_1.Order.Desc?(a,b)=>(0,descendingComparator_1.default)(a,b,orderBy):(a,b)=>-(0,descendingComparator_1.default)(a,b,orderBy)}},"./packages/react-material-ui/dist/components/Table/utils/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.createTableStyles=exports.sortTable=exports.stableSort=exports.getComparator=exports.descendingComparator=void 0;const descendingComparator_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/descendingComparator.js"));exports.descendingComparator=descendingComparator_1.default;const getComparator_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/getComparator.js"));exports.getComparator=getComparator_1.default;const stableSort_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/stableSort.js"));exports.stableSort=stableSort_1.default;const sortTable_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/sortTable.js"));exports.sortTable=sortTable_1.default;const createTableStyles_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/createTableStyles.js"));exports.createTableStyles=createTableStyles_1.default},"./packages/react-material-ui/dist/components/Table/utils/sortTable.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const types_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/types.js"),descendingComparator=(a,b)=>ba?1:0,getSortableValue=item=>"number"==typeof item||"string"==typeof item?item:"sortableValue"in item&&item.sortableValue?item.sortableValue:0;exports.default=(a,b,order,orderBy)=>{const aVal=getSortableValue(a[orderBy]),bVal=getSortableValue(b[orderBy]);return order===types_1.Order.Desc?descendingComparator(aVal,bVal):-descendingComparator(aVal,bVal)}},"./packages/react-material-ui/dist/components/Table/utils/stableSort.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function stableSort(array,comparator){const stabilizedThis=array.map(((el,index)=>[el,index]));return stabilizedThis.sort(((a,b)=>{const order=comparator(a[0],b[0]);return 0!==order?order:a[1]-b[1]})),stabilizedThis.map((el=>el[0]))}},"./packages/react-material-ui/dist/components/Text/Text.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Typography_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Typography/index.js"));exports.default=typographyProps=>{const{children,fontWeight="300"}=typographyProps;return react_1.default.createElement(Typography_1.default,Object.assign({fontWeight},typographyProps),children)}},"./packages/react-material-ui/dist/components/Text/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var Text_1=__webpack_require__("./packages/react-material-ui/dist/components/Text/Text.js");Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(Text_1).default}})},"./packages/react-material-ui/dist/components/TextField/PasswordStrength.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),PasswordStrengthBar_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/TextField/PasswordStrengthBar.js"));exports.default=({passwordRuleVariant,passwordStrengthText,renderStrengthBar})=>renderStrengthBar?react_1.default.createElement(react_1.default.Fragment,null,renderStrengthBar(passwordRuleVariant,passwordStrengthText)):react_1.default.createElement(material_1.Box,{mt:1},react_1.default.createElement(material_1.Box,{display:"flex",gap:2},[...Array(4)].map(((_,index)=>react_1.default.createElement(PasswordStrengthBar_1.default,{key:`password-bar-${index}`,variant:passwordRuleVariant})))),react_1.default.createElement(material_1.Typography,{textAlign:"end",color:"grey.400",variant:"subtitle2",mt:.5},passwordStrengthText))},"./packages/react-material-ui/dist/components/TextField/PasswordStrengthBar.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PasswordStrengthBarVariants=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),VARIANT_COLOR_MAPPING={veryWeak:"lightgray",weak:"red",medium:"yellow",great:"green"};var PasswordStrengthBarVariants;!function(PasswordStrengthBarVariants){PasswordStrengthBarVariants.VeryWeak="veryWeak",PasswordStrengthBarVariants.Weak="weak",PasswordStrengthBarVariants.Medium="medium",PasswordStrengthBarVariants.Great="great"}(PasswordStrengthBarVariants=exports.PasswordStrengthBarVariants||(exports.PasswordStrengthBarVariants={}));exports.default=({variant=PasswordStrengthBarVariants.VeryWeak})=>react_1.default.createElement(material_1.Box,{sx:{height:"4px",background:VARIANT_COLOR_MAPPING[variant],borderRadius:1,width:"100%"}})},"./packages/react-material-ui/dist/components/TextField/PasswordStrengthRules.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js");exports.default=({name,value,rules,renderRulesText})=>renderRulesText?react_1.default.createElement(react_1.default.Fragment,null,renderRulesText(name,value,rules)):react_1.default.createElement(material_1.Box,{mt:2},react_1.default.createElement(material_1.FormHelperText,{sx:theme=>({color:theme.palette.common.black})},"Password should contain at least:"),null==rules?void 0:rules.map((rule=>react_1.default.createElement(material_1.FormHelperText,{id:name,sx:theme=>({color:value&&(null==value?void 0:value.match(rule.pattern))?theme.palette.success.main:theme.palette.common.black})},rule.label))))},"./packages/react-material-ui/dist/components/TextField/TextField.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var _a,_b,_c,_d;const{label,required,sx,type,size,value,hiddenLabel,options,containerProps,labelProps,InputProps,InputLabelProps,name,passwordStrengthConfig}=props,rest=__rest(props,["label","required","sx","type","size","value","hiddenLabel","options","containerProps","labelProps","InputProps","InputLabelProps","name","passwordStrengthConfig"]),passwordStrengthConfigDefault={hideStrengthBar:null===(_a=null==passwordStrengthConfig?void 0:passwordStrengthConfig.hideStrengthBar)||void 0===_a||_a,hideRulesText:null===(_b=null==passwordStrengthConfig?void 0:passwordStrengthConfig.hideRulesText)||void 0===_b||_b,rules:null!==(_c=null==passwordStrengthConfig?void 0:passwordStrengthConfig.rules)&&void 0!==_c?_c:constants_1.PASSWORD_DEFAULT_RULES,matchRules:null!==(_d=null==passwordStrengthConfig?void 0:passwordStrengthConfig.matchRules)&&void 0!==_d?_d:constants_1.PASSWORD_MATCH_RULES,renderStrengthBar:null==passwordStrengthConfig?void 0:passwordStrengthConfig.renderStrengthBar,renderRulesText:null==passwordStrengthConfig?void 0:passwordStrengthConfig.renderRulesText},[showPassword,setShowPassword]=(0,react_1.useState)(!1),isPassword="password"===type,ishiddenLabel=hiddenLabel||(null==options?void 0:options.hiddenLabel),passwordScore=(0,utils_1.getPasswordScore)(value,passwordStrengthConfigDefault.rules),[passwordStrengthText,passwordRuleVariant]=(0,utils_1.getPasswordMatchInfo)(passwordScore,passwordStrengthConfigDefault.matchRules);return react_1.default.createElement(material_1.Box,Object.assign({},containerProps),react_1.default.createElement(material_1.FormControl,{hiddenLabel:!!label||ishiddenLabel,fullWidth:!0},!ishiddenLabel&&!!label&&"string"==typeof label&&react_1.default.createElement(FormLabel_1.FormLabel,Object.assign({name,label,required,labelProps},InputLabelProps)),!ishiddenLabel&&!!label&&"string"!=typeof label&&label,react_1.default.createElement(material_1.OutlinedInput,Object.assign({},rest,{sx:[{marginTop:.5,mb:0,input:{color:"text.primary"}},...Array.isArray(sx)?sx:[sx]],id:name,name,size:size||"small",value:value||0===value?value:"",type:isPassword?showPassword?"text":"password":type,endAdornment:isPassword&&react_1.default.createElement(material_1.InputAdornment,{position:"end"},react_1.default.createElement(IconButton_1.default,{"aria-label":"toggle password visibility",onClick:()=>{setShowPassword((prv=>!prv))},onMouseDown:event=>{event.preventDefault()},"data-testid":"toggle-password-button"},showPassword?react_1.default.createElement(Visibility_1.default,null):react_1.default.createElement(VisibilityOff_1.default,null))),"data-testid":"text-field",fullWidth:!0},InputProps))),isPassword&&react_1.default.createElement(react_1.default.Fragment,null,!passwordStrengthConfigDefault.hideStrengthBar&&react_1.default.createElement(PasswordStrength_1.default,{passwordRuleVariant,passwordStrengthText,renderStrengthBar:passwordStrengthConfigDefault.renderStrengthBar}),!passwordStrengthConfigDefault.hideRulesText&&react_1.default.createElement(PasswordStrengthRules_1.default,{name,value,rules:passwordStrengthConfigDefault.rules,renderRulesText:passwordStrengthConfigDefault.renderRulesText})))}},"./packages/react-material-ui/dist/components/TextField/constants.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PASSWORD_DEFAULT_RULES=exports.PASSWORD_MATCH_RULES=exports.PASSWORD_MATCH_TEXT=exports.PASSWORD_MATCH_SCORE=exports.SPECIAL_CHARS_REGEX=exports.NUMBER_REGEX=exports.LOWERCASE_REGEX=exports.UPPERCASE_REGEX=exports.LENGTH_REGEX=void 0,exports.LENGTH_REGEX=new RegExp(/.{8,}$/),exports.UPPERCASE_REGEX=new RegExp(/.*[A-Z]/),exports.LOWERCASE_REGEX=new RegExp(/.*[a-z]/),exports.NUMBER_REGEX=new RegExp(/.*\d/),exports.SPECIAL_CHARS_REGEX=new RegExp(/.*[!@#$%^&*()_+\-=\\[\]{};':"\\|,.<>\\/?]/),exports.PASSWORD_MATCH_SCORE=[0,2,3,5],exports.PASSWORD_MATCH_TEXT=["Very weak","Weak","Medium","Great"],exports.PASSWORD_MATCH_RULES={text:exports.PASSWORD_MATCH_TEXT,score:exports.PASSWORD_MATCH_SCORE},exports.PASSWORD_DEFAULT_RULES=[{label:"8 characters",pattern:exports.LENGTH_REGEX},{label:"1 Alpha Upper character",pattern:exports.UPPERCASE_REGEX},{label:"1 Alpha Lower character",pattern:exports.LOWERCASE_REGEX},{label:"1 Numeric character",pattern:exports.NUMBER_REGEX},{label:'1 Special character (Example: "@", "#", "*")',pattern:exports.SPECIAL_CHARS_REGEX}]},"./packages/react-material-ui/dist/components/TextField/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextField=void 0;var TextField_1=__webpack_require__("./packages/react-material-ui/dist/components/TextField/TextField.js");Object.defineProperty(exports,"TextField",{enumerable:!0,get:function(){return TextField_1.TextField}})},"./packages/react-material-ui/dist/components/TextField/utils.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getPasswordMatchInfo=exports.getPasswordScore=exports.validatePasswordScore=void 0;const PasswordStrengthBar_1=__webpack_require__("./packages/react-material-ui/dist/components/TextField/PasswordStrengthBar.js"),constants_1=__webpack_require__("./packages/react-material-ui/dist/components/TextField/constants.js");exports.validatePasswordScore=(password,rules=constants_1.PASSWORD_DEFAULT_RULES,minValidationScore=constants_1.PASSWORD_DEFAULT_RULES.length)=>(0,exports.getPasswordScore)(password,rules)>=minValidationScore;exports.getPasswordScore=(password,rules)=>rules.filter((rule=>{var _a;return null===(_a=null==password?void 0:password.match)||void 0===_a?void 0:_a.call(password,rule.pattern)})).length;exports.getPasswordMatchInfo=(score,matchRules)=>{const variants=Object.values(PasswordStrengthBar_1.PasswordStrengthBarVariants);if(0===score)return[matchRules.text[0],variants[0]];const scoreIndex=matchRules.score.findIndex(((item,index)=>{var _a;return item>=score||score<(null===(_a=matchRules.score)||void 0===_a?void 0:_a[index+1])}));return scoreIndex===matchRules.score.length?[matchRules.text[matchRules.text.length-1],variants[matchRules.text.length-1]]:[matchRules.text[scoreIndex],variants[scoreIndex]]}},"./packages/react-material-ui/dist/components/submodules/AuthForm/constants.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resetPasswordFormSchema=exports.forgotPasswordFormSchema=exports.signUpFormSchema=exports.signInFormSchema=exports.defaultAuthUiSchema=void 0;const CustomWidgets_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/index.js");exports.defaultAuthUiSchema={email:{"ui:widget":CustomWidgets_1.CustomTextFieldWidget},username:{"ui:widget":CustomWidgets_1.CustomTextFieldWidget},password:{"ui:widget":CustomWidgets_1.CustomPasswordFieldWidget},newPassword:{"ui:widget":CustomWidgets_1.CustomPasswordFieldWidget},confirmNewPassword:{"ui:widget":CustomWidgets_1.CustomPasswordFieldWidget}},exports.signInFormSchema={type:"object",required:["username","password"],properties:{username:{type:"string",title:"Username",minLength:3},password:{type:"string",title:"Password"}}},exports.signUpFormSchema={type:"object",required:["email","username","password"],properties:{email:{type:"string",title:"Email",minLength:3,format:"email"},username:{type:"string",title:"Username",minLength:3},password:{type:"string",title:"Password"}}},exports.forgotPasswordFormSchema={type:"object",required:["email"],properties:{email:{type:"string",title:"Email",minLength:3,format:"email"}}},exports.resetPasswordFormSchema={type:"object",required:["newPassword","confirmNewPassword"],properties:{newPassword:{type:"string",title:"New password"},confirmNewPassword:{type:"string",title:"Re-enter your new password"}}}},"./packages/react-material-ui/dist/components/submodules/AuthForm/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),react_2=__webpack_require__("./node_modules/react/index.js"),react_data_provider_1=__importStar(__webpack_require__("./packages/react-data-provider/dist/index.js")),validator_ajv6_1=__importDefault(__webpack_require__("./node_modules/@rjsf/validator-ajv6/lib/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),Link_1=__webpack_require__("./packages/react-material-ui/dist/components/Link/index.js"),SchemaForm_1=__webpack_require__("./packages/react-material-ui/dist/components/SchemaForm/index.js"),Image_1=__webpack_require__("./packages/react-material-ui/dist/components/Image/index.js"),CustomWidgets_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/index.js"),validation_1=__webpack_require__("./packages/react-material-ui/dist/utils/form/validation.js"),constants_1=__webpack_require__("./packages/react-material-ui/dist/components/submodules/AuthForm/constants.js"),react_auth_provider_1=__webpack_require__("./packages/react-auth-provider/dist/index.js"),widgets={TextWidget:CustomWidgets_1.CustomTextFieldWidget};exports.default=props=>{var _a,_b,_c,_d,_e,_f,_g;const[formData,setFormData]=(0,react_2.useState)({}),searchParams=new URLSearchParams(window.location.search),passcode=null==searchParams?void 0:searchParams.get("token"),{post,patch,put}=(0,react_data_provider_1.default)(),{doLogin,isPending:isLoadingSignIn}=(0,react_auth_provider_1.useAuth)(),query={post,patch,put}[(null===(_a=props.query)||void 0===_a?void 0:_a.method)||"post"]||post,{execute:performRequest,isPending:isLoadingRequest}=(0,react_data_provider_1.useQuery)((body=>{var _a;return query({uri:(null===(_a=props.query)||void 0===_a?void 0:_a.uri)||"",body})}),!1,{onSuccess:data=>__awaiter(void 0,void 0,void 0,(function*(){var _h;null===(_h=props.query)||void 0===_h||_h.onSuccess(data)})),onError:null===(_b=props.query)||void 0===_b?void 0:_b.onError}),isLoading=isLoadingSignIn||isLoadingRequest,defaultRouteTitle={signIn:"Sign in",signUp:"Sign up",forgotPassword:"Recover password",resetPassword:"Reset password"}[props.route],defaultFormSchema={signIn:constants_1.signInFormSchema,signUp:constants_1.signUpFormSchema,forgotPassword:constants_1.forgotPasswordFormSchema,resetPassword:constants_1.resetPasswordFormSchema}[props.route]||{};return react_1.default.createElement(material_1.Container,{sx:{textAlign:"center",padding:"48px 0"}},!props.hideLogo&&react_1.default.createElement(Image_1.Image,{src:props.logoSrc||"/logo.svg",alt:"logo"}),props.headerComponent||null,react_1.default.createElement(material_1.Container,{maxWidth:"xs"},react_1.default.createElement(material_1.Card,{sx:{padding:"24px",marginTop:"32px"}},!props.hideTitle&&("string"==typeof(title=null!==(_c=props.title)&&void 0!==_c?_c:defaultRouteTitle)?react_1.default.createElement(Text_1.default,{variant:"h4",fontFamily:"Inter",fontSize:30,fontWeight:800,mt:1,gutterBottom:!0},title):title),react_1.default.createElement(SchemaForm_1.SchemaForm.Form,{schema:Object.assign(Object.assign(Object.assign({},defaultFormSchema),props.formSchema),{required:props.overrideDefaults?(null===(_d=props.formSchema)||void 0===_d?void 0:_d.required)||[]:[...defaultFormSchema.required||[],...(null===(_e=props.formSchema)||void 0===_e?void 0:_e.required)||[]],properties:props.overrideDefaults?(null===(_f=props.formSchema)||void 0===_f?void 0:_f.properties)||{}:Object.assign(Object.assign({},defaultFormSchema.properties||{}),(null===(_g=props.formSchema)||void 0===_g?void 0:_g.properties)||{})}),uiSchema:Object.assign(Object.assign({},constants_1.defaultAuthUiSchema),props.formUiSchema),validator:validator_ajv6_1.default,formData:props.formData||formData,onChange:({formData})=>setFormData(formData),onSubmit:values=>__awaiter(void 0,void 0,void 0,(function*(){const fields=values.formData||{};if("signIn"!==props.route)"resetPassword"!==props.route?performRequest(fields):yield performRequest(Object.assign(Object.assign({},fields),{passcode}));else{const{username,password}=fields;doLogin({username,password,loginPath:props.signInRequestPath})}})),noHtml5Validate:!0,showErrorList:!1,advancedProperties:props.advancedProperties,customValidate:(formData,errors)=>(0,validation_1.validateForm)(formData,errors,props.customValidation||[]),widgets},props.forgotPasswordPath?react_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:500,gutterBottom:!0,sx:{mt:2}},react_1.default.createElement(Link_1.Link,{href:props.forgotPasswordPath,color:"primary.dark"},"Forgot your password?")):null,react_1.default.createElement(material_1.Box,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",mt:2},react_1.default.createElement(material_1.Button,{type:"submit",variant:"contained",disabled:Boolean(isLoading),sx:{flex:1}},isLoading?react_1.default.createElement(material_1.CircularProgress,{sx:{color:"white"},size:24}):props.submitButtonTitle||"Send"))),props.signInPath?react_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:500,gutterBottom:!0,sx:{mt:3}},react_1.default.createElement(Link_1.Link,{href:props.signInPath,color:"primary.dark"},"Already have an account? Sign in")):null,props.signUpPath?react_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:500,gutterBottom:!0,sx:{mt:3}},react_1.default.createElement(Link_1.Link,{href:props.signUpPath,color:"primary.dark"},"No account? Sign up")):null)));var title}},"./packages/react-material-ui/dist/components/submodules/DrawerForm/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{queryResource,viewMode,widgets,formSchema,formUiSchema,formData,customValidate,submitButtonTitle,onClose,cancelButtonTitle,children,onSuccess,onError,onDeleteSuccess,onDeleteError,onPrevious,onNext,isLoading,viewIndex,rowsPerPage,currentPage,pageCount}=props,otherProps=__rest(props,["queryResource","viewMode","widgets","formSchema","formUiSchema","formData","customValidate","submitButtonTitle","onClose","cancelButtonTitle","children","onSuccess","onError","onDeleteSuccess","onDeleteError","onPrevious","onNext","isLoading","viewIndex","rowsPerPage","currentPage","pageCount"]),[fieldValues,setFieldValues]=(0,react_1.useState)(null),{post,patch,del}=(0,react_data_provider_1.default)(),{execute:createItem,isPending:isLoadingCreation}=(0,react_data_provider_1.useQuery)((data=>post({uri:`/${queryResource}`,body:data})),!1,{onSuccess,onError}),{execute:editItem,isPending:isLoadingEdit}=(0,react_data_provider_1.useQuery)((data=>patch({uri:`/${queryResource}/${data.id}`,body:data})),!1,{onSuccess,onError}),{execute:deleteItem,isPending:isLoadingDelete}=(0,react_data_provider_1.useQuery)((data=>del({uri:`/${queryResource}/${data.id}`})),!1,{onSuccess:onDeleteSuccess,onError:onDeleteError}),_widgets=Object.assign({TextWidget:CustomWidgets_1.CustomTextFieldWidget},widgets);return react_1.default.createElement(material_1.Drawer,{open:null!==viewMode,anchor:"right"},react_1.default.createElement(material_1.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,mt:2,ml:1},react_1.default.createElement(material_1.Typography,{variant:"h5",sx:{marginLeft:3,fontSize:"20px"}},"creation"===viewMode?"Add Data":"edit"===viewMode?"Edit Data":"View Data"),react_1.default.createElement(material_1.IconButton,{"aria-label":"close",onClick:onClose,sx:{position:"absolute",right:theme=>theme.spacing(1),top:theme=>theme.spacing(1),color:theme=>theme.palette.grey[500]}},react_1.default.createElement(Close_1.default,null))),react_1.default.createElement(material_1.Box,{padding:4,sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between"}},react_1.default.createElement(SchemaForm_1.SchemaForm.Form,Object.assign({schema:Object.assign(Object.assign({},formSchema),{required:(null==formSchema?void 0:formSchema.required)||[],properties:(null==formSchema?void 0:formSchema.properties)||{},title:""}),uiSchema:Object.assign(Object.assign({},formUiSchema),{"ui:submitButtonOptions":{norender:!0}}),validator:validator_ajv6_1.default,noHtml5Validate:!0,showErrorList:!1,formData,widgets:_widgets,customValidate,readonly:"details"===viewMode,onChange:values=>__awaiter(void 0,void 0,void 0,(function*(){setFieldValues(values.formData)}))},otherProps),children),react_1.default.createElement(material_1.Box,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"creation"===viewMode?"flex-end":"space-between"},"creation"!==viewMode&&react_1.default.createElement(material_1.Box,{display:"flex",alignItems:"center",gap:2},react_1.default.createElement(material_1.IconButton,{onClick:()=>onPrevious(formData),disabled:isLoading||1===currentPage&&1===viewIndex},react_1.default.createElement(ChevronLeft_1.default,{sx:{color:"#333"}})),react_1.default.createElement(material_1.Typography,null,isLoading?"":`Row ${viewIndex}/${rowsPerPage}`),react_1.default.createElement(material_1.IconButton,{onClick:()=>onNext(formData),disabled:isLoading||currentPage===pageCount&&viewIndex===rowsPerPage},react_1.default.createElement(ChevronRight_1.default,{sx:{color:"#333"}}))),react_1.default.createElement(material_1.Box,{display:"flex",flexDirection:"row",alignItems:"center",gap:2},props.customFooterContent,"creation"===viewMode&&!props.hideCancelButton&&react_1.default.createElement(material_1.Button,{variant:"outlined",onClick:onClose,sx:{flex:1}},cancelButtonTitle||"Cancel"),"edit"===viewMode&&!props.hideCancelButton&&react_1.default.createElement(material_1.Button,{variant:"contained",color:"error",onClick:()=>deleteItem(formData),sx:{flex:1}},isLoadingDelete?react_1.default.createElement(material_1.CircularProgress,{sx:{color:"white"},size:24}):cancelButtonTitle||"Delete"),"details"===viewMode&&!props.hideCancelButton&&react_1.default.createElement(material_1.Button,{variant:"outlined",onClick:onClose,sx:{flex:1}},cancelButtonTitle||"Close"),"details"!==viewMode&&react_1.default.createElement(material_1.Button,{type:"submit",variant:"contained",disabled:isLoadingCreation||isLoadingEdit||isLoadingDelete,onClick:()=>__awaiter(void 0,void 0,void 0,(function*(){"creation"===viewMode&&(yield createItem(fieldValues)),"edit"===viewMode&&(yield editItem(fieldValues))})),sx:{flex:1}},isLoadingCreation||isLoadingEdit?react_1.default.createElement(material_1.CircularProgress,{sx:{color:"white"},size:24}):submitButtonTitle||"Save")))))}},"./packages/react-material-ui/dist/components/submodules/Filter/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),Filter_1=__webpack_require__("./packages/react-material-ui/dist/components/Filter/index.js"),useCrudRoot_1=__webpack_require__("./packages/react-material-ui/dist/modules/crud/useCrudRoot.js");exports.default=props=>{const{filters,updateSearch,simpleFilter,updateSimpleFilter,externalSearch,filterValues,setFilterValues}=(0,useCrudRoot_1.useCrudRoot)(),hasExternalSearch=externalSearch&&Object.values(externalSearch).filter((value=>value)).length>0,reduceFilters=(_filterValues,format)=>filters.reduce(((acc,filter)=>{const value=_filterValues[filter.id];if(!filter.operator)return acc;if(void 0===value)return acc;const data="simpleFilter"===format?`||$${filter.operator}||${value}`:{[`$${filter.operator}`]:value};return Object.assign(Object.assign({},acc),{[filter.id]:null===value||"all"===value||""===value?null:data})}),{});(0,react_1.useEffect)((()=>{if(hasExternalSearch||(updateSearch(null),updateSimpleFilter(reduceFilters(filterValues,"simpleFilter"),!0)),hasExternalSearch){const combinedFilter=Object.assign(Object.assign({},reduceFilters(filterValues,"search")),externalSearch);updateSearch(combinedFilter,!0)}}),[externalSearch]);const onFilterChange=(id,value,updateFilter)=>{setFilterValues((prv=>{const newFilterValues=Object.assign(Object.assign({},prv),{[id]:value});return updateFilter&&updateSimpleFilter(reduceFilters(newFilterValues,"simpleFilter"),!0),newFilterValues}))},filterObjs=filters.map((filter=>{var _a,_b;const{id,label,columns,type,options,operator,isLoading,size,resource,resourceValue,resourceLabel}=filter,initialValue=null===(_a=String(null==simpleFilter?void 0:simpleFilter[id]))||void 0===_a?void 0:_a.split("||")[2],value=null!==(_b=filterValues[id])&&void 0!==_b?_b:initialValue,commonFields={id,label,columns,isLoading,size,operator};switch(type){case"text":return Object.assign(Object.assign({},commonFields),{type,value,onChange:val=>onFilterChange(id,val,!1),onDebouncedSearchChange:val=>onFilterChange(id,val,!0)});case"autocomplete":return Object.assign(Object.assign({},commonFields),{type,options,value,resource,resourceLabel,resourceValue,onChange:val=>onFilterChange(id,val,!0)});case"select":return Object.assign(Object.assign({},commonFields),{type,options,value,onChange:val=>onFilterChange(id,val,!1)});case"date":return Object.assign(Object.assign({},commonFields),{type,options,value,onChange:val=>onFilterChange(id,val,!1),onDebouncedSearchChange:val=>onFilterChange(id,val,!0)})}}));return 0===filters.length?null:react_1.default.createElement(Filter_1.Filter,Object.assign({},props,{filters:filterObjs}))}},"./packages/react-material-ui/dist/components/submodules/ModalForm/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{queryResource,viewMode,widgets,onClose,formSchema,formUiSchema,formData,customValidate,submitButtonTitle,cancelButtonTitle,children,onSuccess,onError,onDeleteSuccess,onDeleteError,onPrevious,onNext,isLoading,viewIndex,rowsPerPage,currentPage,pageCount}=props,otherProps=__rest(props,["queryResource","viewMode","widgets","onClose","formSchema","formUiSchema","formData","customValidate","submitButtonTitle","cancelButtonTitle","children","onSuccess","onError","onDeleteSuccess","onDeleteError","onPrevious","onNext","isLoading","viewIndex","rowsPerPage","currentPage","pageCount"]),{post,patch,del}=(0,react_data_provider_1.default)(),{execute:createItem,isPending:isLoadingCreation}=(0,react_data_provider_1.useQuery)((data=>post({uri:`/${queryResource}`,body:data})),!1,{onSuccess,onError}),{execute:editItem,isPending:isLoadingEdit}=(0,react_data_provider_1.useQuery)((data=>patch({uri:`/${queryResource}/${data.id}`,body:data})),!1,{onSuccess,onError}),{execute:deleteItem,isPending:isLoadingDelete}=(0,react_data_provider_1.useQuery)((data=>del({uri:`/${queryResource}/${data.id}`})),!1,{onSuccess:onDeleteSuccess,onError:onDeleteError}),_widgets=Object.assign({TextWidget:CustomWidgets_1.CustomTextFieldWidget},widgets);return react_1.default.createElement(material_1.Dialog,{open:null!==viewMode,maxWidth:"md",fullWidth:!0,onClose},react_1.default.createElement(material_1.DialogTitle,null,"creation"===viewMode?"Add Data":"edit"===viewMode?"Edit Data":"View Data"),react_1.default.createElement(material_1.IconButton,{"aria-label":"close",onClick:onClose,sx:{position:"absolute",right:theme=>theme.spacing(1),top:theme=>theme.spacing(1),color:theme=>theme.palette.grey[500]}},react_1.default.createElement(Close_1.default,null)),react_1.default.createElement(material_1.DialogContent,null,react_1.default.createElement(SchemaForm_1.SchemaForm.Form,Object.assign({schema:Object.assign(Object.assign({},formSchema),{required:(null==formSchema?void 0:formSchema.required)||[],properties:(null==formSchema?void 0:formSchema.properties)||{},title:""}),uiSchema:formUiSchema,validator:validator_ajv6_1.default,onSubmit:values=>__awaiter(void 0,void 0,void 0,(function*(){const fields=values.formData||{};"creation"===viewMode&&(yield createItem(fields)),"edit"===viewMode&&(yield editItem(fields))})),noHtml5Validate:!0,showErrorList:!1,formData:isLoading?null:formData,widgets:_widgets,customValidate,readonly:"details"===viewMode},otherProps),react_1.default.createElement(react_1.default.Fragment,null,children,react_1.default.createElement(material_1.Box,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"creation"===viewMode?"flex-end":"space-between",mt:4},"creation"!==viewMode&&react_1.default.createElement(material_1.Box,{display:"flex",alignItems:"center",gap:2},react_1.default.createElement(material_1.IconButton,{onClick:()=>onPrevious(formData),disabled:isLoading||1===currentPage&&1===viewIndex},react_1.default.createElement(ChevronLeft_1.default,{sx:{color:"#333"}})),react_1.default.createElement(material_1.Typography,null,isLoading?"":`Row ${viewIndex}/${rowsPerPage}`),react_1.default.createElement(material_1.IconButton,{onClick:()=>onNext(formData),disabled:isLoading||currentPage===pageCount&&viewIndex===rowsPerPage},react_1.default.createElement(ChevronRight_1.default,{sx:{color:"#333"}}))),react_1.default.createElement(material_1.Box,{display:"flex",flexDirection:"row",alignItems:"center",mt:2,gap:2},props.customFooterContent,"creation"===viewMode&&!props.hideCancelButton&&react_1.default.createElement(material_1.Button,{variant:"outlined",onClick:onClose,sx:{flex:1}},cancelButtonTitle||"Cancel"),"edit"===viewMode&&!props.hideCancelButton&&react_1.default.createElement(material_1.Button,{variant:"contained",color:"error",onClick:()=>deleteItem(formData),sx:{flex:1}},isLoadingDelete?react_1.default.createElement(material_1.CircularProgress,{sx:{color:"white"},size:24}):cancelButtonTitle||"Delete"),"details"===viewMode&&!props.hideCancelButton&&react_1.default.createElement(material_1.Button,{variant:"outlined",onClick:onClose,sx:{flex:1}},cancelButtonTitle||"Close"),"details"!==viewMode&&react_1.default.createElement(material_1.Button,{type:"submit",variant:"contained",disabled:isLoadingCreation||isLoadingEdit||isLoadingDelete,sx:{flex:1}},isLoadingCreation||isLoadingEdit?react_1.default.createElement(material_1.CircularProgress,{sx:{color:"white"},size:24}):submitButtonTitle||"Save")))))))}},"./packages/react-material-ui/dist/components/submodules/Table/MobileRowModal.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),get_1=__importDefault(__webpack_require__("./node_modules/lodash/get.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),Close_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/Close.js")),Text_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js")),useTableRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/useTableRoot.js");exports.default=({currentRow,onClose,titleSrc})=>{const{headers}=(0,useTableRoot_1.useTableRoot)();return react_1.default.createElement(material_1.Dialog,{open:!!currentRow,fullWidth:!0,onClose},react_1.default.createElement(material_1.Box,{display:"flex",justifyContent:"space-between"},titleSrc&&(null==currentRow?void 0:currentRow[titleSrc])&&"string"==typeof currentRow[titleSrc]&&react_1.default.createElement(material_1.Box,{sx:{display:"flex",alignItems:"center",px:3,width:"100%",overflow:"hidden"}},react_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:400,color:"text.primary",sx:{width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},currentRow[titleSrc])),react_1.default.createElement(material_1.IconButton,{"aria-label":"close",onClick:onClose,sx:{color:theme=>theme.palette.grey[500]}},react_1.default.createElement(Close_1.default,null))),react_1.default.createElement(material_1.DialogContent,{sx:{display:"block"}},react_1.default.createElement(material_1.Box,null,null==headers?void 0:headers.map((header=>header.hide||!header.label?null:react_1.default.createElement(material_1.Box,{key:header.id,display:"flex",sx:{mb:2,alignItems:"center"}},react_1.default.createElement(material_1.Box,{sx:{display:"block",alignItems:"center",fontSize:12,width:70,minWidth:70,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",paddingRight:"3px",borderRight:"1px solid #ccc",p:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontSize:12}}},header.label),react_1.default.createElement(material_1.Box,{sx:{display:"block",alignItems:"center",fontSize:12,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",paddingLeft:"6px","& p":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontSize:"12px !important"}}},((row,dataOrigin)=>{var _a,_b;const cell=(0,get_1.default)(row,dataOrigin);return cell?"number"==typeof cell||"string"==typeof cell||void 0===cell?react_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:400,color:"text.primary"},null!=cell?cell:""):"component"in cell?cell.component:"title"in cell?react_1.default.createElement(material_1.Tooltip,{title:cell.title},react_1.default.createElement("span",null,null!==(_a=cell.value)&&void 0!==_a?_a:"")):react_1.default.createElement(Text_1.default,{fontSize:14,fontWeight:400,color:"text.primary"},null!==(_b=cell.value)&&void 0!==_b?_b:""):""})(currentRow,header.source||header.id))))))))}},"./packages/react-material-ui/dist/components/submodules/Table/constants.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.generateTableTheme=void 0;const utils_1=__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/index.js");exports.generateTableTheme=(theme,customTableTheme)=>(0,utils_1.createTableStyles)(Object.assign({root:Object.assign({display:"flex",flexDirection:"column",flex:1,overflow:"auto"},null==customTableTheme?void 0:customTableTheme.root),table:Object.assign({height:"100%"},null==customTableTheme?void 0:customTableTheme.table),tableContainer:Object.assign({flex:1},null==customTableTheme?void 0:customTableTheme.tableContainer),tableHeader:Object.assign(Object.assign(Object.assign({},theme.typography.caption),{lineHeight:1,fontWeight:500,color:theme.palette.grey[500]}),null==customTableTheme?void 0:customTableTheme.tableHeader),tableHeaderRow:Object.assign({backgroundColor:"#F9FAFB"},null==customTableTheme?void 0:customTableTheme.tableHeaderRow)},customTableTheme))},"./packages/react-material-ui/dist/components/submodules/Table/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),react_2=__webpack_require__("./node_modules/react/index.js"),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),Edit_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/Edit.js")),Delete_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/Delete.js")),ChevronRight_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/ChevronRight.js")),Add_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/Add.js")),react_data_provider_1=__importStar(__webpack_require__("./packages/react-data-provider/dist/index.js")),get_1=__importDefault(__webpack_require__("./node_modules/lodash/get.js")),Table_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/Table/index.js")),constants_1=__webpack_require__("./packages/react-material-ui/dist/components/submodules/Table/constants.js"),Filter_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/submodules/Filter/index.js")),useCrudRoot_1=__webpack_require__("./packages/react-material-ui/dist/modules/crud/useCrudRoot.js"),isMobile_1=__webpack_require__("./packages/react-material-ui/dist/utils/isMobile.js"),MobileRowModal_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/submodules/Table/MobileRowModal.js"));exports.default=props=>{var _a;const theme=(0,material_1.useTheme)(),{filters}=(0,useCrudRoot_1.useCrudRoot)(),[mobileCurrentRow,setMobileCurrentRow]=(0,react_1.useState)(null),{del}=(0,react_data_provider_1.default)(),{execute:deleteItem}=(0,react_data_provider_1.useQuery)((id=>del({uri:`/${props.queryResource}/${id}`})),!1,{onSuccess:data=>{props.refresh&&props.refresh(),props.onDeleteSuccess&&props.onDeleteSuccess(data)},onError:props.onDeleteError}),tableTheme=(0,constants_1.generateTableTheme)(theme,props.tableTheme),noActions=props.hideEditButton&&props.hideDeleteButton&&props.hideDetailsButton,tableHeaders=(0,react_2.useMemo)((()=>[...props.tableSchema,...props.hideActionsColumn||noActions?[]:[{id:"actions",label:""}]]),[props]),tableRows=(0,react_2.useMemo)((()=>(props.data||[]).map(((row,index)=>{const rowData=row,newData=Object.assign(Object.assign({},rowData),{id:String(rowData.id)});return tableHeaders.forEach((schemaItem=>{if(schemaItem.format){const formattedData=schemaItem.format(rowData);return["string","number"].includes(typeof formattedData)?void(newData[schemaItem.id]=schemaItem.format(rowData)):void(newData[schemaItem.id]={component:schemaItem.format(rowData)})}if(schemaItem.renderTableCell){const cellData=(0,get_1.default)(row,schemaItem.source||schemaItem.id);newData[schemaItem.id]=schemaItem.renderTableCell(cellData,rowData)}else;})),Object.assign(Object.assign({},newData),{actions:{component:react_1.default.createElement(material_1.Box,{display:"flex"},!props.hideEditButton&&react_1.default.createElement(material_1.IconButton,{onClick:e=>{e.stopPropagation(),props.onAction&&props.onAction({action:"edit",row:rowData,index})},"data-testid":"edit-button"},react_1.default.createElement(Edit_1.default,null)),!props.hideDeleteButton&&react_1.default.createElement(material_1.IconButton,{onClick:e=>{e.stopPropagation(),deleteItem(rowData.id)},"data-testid":"delete-button"},react_1.default.createElement(Delete_1.default,null)),!props.hideDetailsButton&&react_1.default.createElement(material_1.IconButton,{onClick:e=>{e.stopPropagation(),props.onAction&&props.onAction({action:props.hideEditButton?"edit":"details",row:rowData,index})},"data-testid":"details-button"},react_1.default.createElement(ChevronRight_1.default,null)))}})}))),[props,tableHeaders]);return react_1.default.createElement(material_1.Box,null,react_1.default.createElement(Table_1.default.Root,Object.assign({rows:tableRows,headers:tableHeaders,total:props.total,pageCount:props.pageCount,sx:tableTheme.root,tableQueryState:props.tableQueryState,updateTableQueryState:props.setTableQueryState},props.tableRootProps),react_1.default.createElement(material_1.Box,{sx:{display:"flex",flexDirection:{xs:"column",lg:"row"},alignItems:"flex-start",justifyContent:"space-between",my:4}},filters&&react_1.default.createElement(Filter_1.default,{orderableListCacheKey:props.filterCacheKey,cacheApiPath:props.cacheApiPath}),react_1.default.createElement(material_1.Box,{sx:{display:"flex",alignItems:"center",justifyContent:{xs:"space-between",lg:"initial"},mt:{xs:filters?2:0,lg:0},ml:{xs:0,lg:2},width:{xs:"100%",lg:"auto"}}},!1!==props.reordable&&react_1.default.createElement(Table_1.default.ColumnOrderable,{hasAllOption:props.hasAllOption,orderableListCacheKey:props.tableCacheKey,cacheApiPath:props.cacheApiPath}),react_1.default.createElement(material_1.Box,{display:"flex",alignItems:"center",justifyContent:"flex-end"},props.additionalFilterRowContent,!props.hideAddButton&&react_1.default.createElement(material_1.Button,{variant:"contained",onClick:props.onAddNew,startIcon:props.addButtonStartIcon||react_1.default.createElement(Add_1.default,null),endIcon:props.addButtonEndIcon,sx:{textTransform:"capitalize",textWrap:"nowrap",marginLeft:2}},props.addButtonContent||"Add new")))),react_1.default.createElement(material_1.TableContainer,{sx:tableTheme.tableContainer},react_1.default.createElement(Table_1.default.Table,Object.assign({stickyHeader:!0,variant:"outlined",sx:tableTheme.table},props.tableProps),react_1.default.createElement(material_1.TableHead,null,react_1.default.createElement(material_1.TableRow,{sx:tableTheme.tableHeaderRow},props.hasCheckboxes&&react_1.default.createElement(Table_1.default.HeaderCheckbox,null),react_1.default.createElement(Table_1.default.HeaderCells,{renderCell:cell=>react_1.default.createElement(Table_1.default.HeaderCell,{key:cell.id,cell,sx:tableTheme.tableHeaderCell})}))),react_1.default.createElement(material_1.TableBody,null,Boolean(!props.isPending&&!(null===(_a=props.data)||void 0===_a?void 0:_a.length))&&react_1.default.createElement(material_1.TableRow,{sx:tableTheme.tableBodyRow},react_1.default.createElement(material_1.TableCell,{colSpan:tableHeaders.length,sx:{textAlign:"center"}},"No records found.")),react_1.default.createElement(Table_1.default.BodyRows,{renderRow:(row,labelId)=>react_1.default.createElement(Table_1.default.BodyRow,Object.assign({key:row.id,row,hasCheckboxes:props.hasCheckboxes,sx:tableTheme.tableBodyRow},isMobile_1.isMobile&&props.allowModalPreview&&{onClick:()=>setMobileCurrentRow(row)}),props.hasCheckboxes&&react_1.default.createElement(Table_1.default.BodyCheckboxes,{row,labelId}),react_1.default.createElement(Table_1.default.BodyCell,{row,sx:tableTheme.tableBodyCell}))})))),"numeric"===props.paginationStyle?react_1.default.createElement(material_1.Box,{mt:2},react_1.default.createElement(Table_1.default.PaginationNumbers,null)):react_1.default.createElement(Table_1.default.Pagination,Object.assign({variant:"outlined"},isMobile_1.isMobile&&{labelRowsPerPage:"per page:",sx:{display:"flex",justifyContent:"center","& .MuiTablePagination-selectLabel":{paddingLeft:"10px"},"& .MuiToolbar-root":{padding:0},"& .MuiTablePagination-spacer":{display:"none"},"& .MuiTablePagination-input":{marginRight:0,marginLeft:0},"& .MuiTablePagination-actions":{marginLeft:"0 !important"}}})),props.allowModalPreview&&isMobile_1.isMobile&&react_1.default.createElement(MobileRowModal_1.default,{currentRow:mobileCurrentRow,onClose:()=>{setMobileCurrentRow(null)},titleSrc:props.mobileModalTitleSrc})))}},"./packages/react-material-ui/dist/hooks/useSettingsStorage.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useSettingsStorage=void 0;const react_1=__webpack_require__("./node_modules/react/index.js"),debounce_1=__importDefault(__webpack_require__("./node_modules/lodash/debounce.js")),react_data_provider_1=__importStar(__webpack_require__("./packages/react-data-provider/dist/index.js")),react_auth_provider_1=__webpack_require__("./packages/react-auth-provider/dist/index.js"),parseSettingsToDataString=data=>data.replace(/"/g,"'"),getSettingsFromStorage=params=>{const storageItem=JSON.parse(localStorage.getItem(params.type));if(!storageItem)return[];const settingsItem=storageItem.find((({assignee,key})=>assignee.id===params.assignee.id&&key===params.key));return settingsItem?settingsItem.data:[]};exports.useSettingsStorage=props=>{const[cacheId,setCacheId]=(0,react_1.useState)(""),[settings,setSettings]=(0,react_1.useState)([]),auth=(0,react_auth_provider_1.useAuth)(),{get,put,del}=(0,react_data_provider_1.default)(),cacheConfig={key:props.key||window.location.pathname,type:props.type,assignee:{id:(null==auth?void 0:auth.user)?auth.user.id:""}},{execute:createCache}=(0,react_data_provider_1.useQuery)((cache=>put({uri:`${props.cacheApiPath}/${crypto.randomUUID()}`,body:Object.assign(Object.assign({},cacheConfig),{data:cache})})),!1,{onSuccess:res=>setCacheId(res.id)}),{execute:updateCache}=(0,react_data_provider_1.useQuery)((list=>put({uri:`${props.cacheApiPath}/${cacheId}`,body:Object.assign(Object.assign({},cacheConfig),{data:parseSettingsToDataString(JSON.stringify(list))})})),!1,{onSuccess:res=>setCacheId(res.id)}),{execute:deleteCache}=(0,react_data_provider_1.useQuery)((()=>del({uri:`${props.cacheApiPath}/${cacheId}`})),!1,{onSuccess:()=>setCacheId("")}),{execute:fetchOrCreateCache}=(0,react_data_provider_1.useQuery)((()=>get({uri:props.cacheApiPath})),!1,{onSuccess:fetchedData=>{const cachedSettings=(params=>{const settingsItem=params.cacheList.find((item=>item.key===params.key&&item.type===params.type&&item.assignee.id===params.assignee.id));return settingsItem?Object.assign(Object.assign({},settingsItem),{data:(data=settingsItem.data,JSON.parse(data.replace(/'/g,'"')))}):null;var data})(Object.assign(Object.assign({},cacheConfig),{cacheList:fetchedData}));cachedSettings?cachedSettings&&(setCacheId(cachedSettings.id),getSettingsFromStorage(cacheConfig).length||(setSettings(cachedSettings.data),props.setListCallback(cachedSettings.data))):createCache(parseSettingsToDataString(JSON.stringify(props.data)))}}),debouncedCacheUpdate=(0,debounce_1.default)((items=>updateCache(items)),1500);return(0,react_1.useEffect)((()=>{const storageData=getSettingsFromStorage(cacheConfig);storageData.length&&(setSettings(storageData),props.setListCallback(storageData)),props.cacheApiPath&&fetchOrCreateCache()}),[]),{settings,updateSettings:items=>{setSettings(items),(params=>{const storageItem=JSON.parse(localStorage.getItem(params.type));if(!storageItem)return void localStorage.setItem(params.type,JSON.stringify([params]));const settingsItemIndex=storageItem.findIndex((item=>item.assignee.id===params.assignee.id&&item.key===params.key));settingsItemIndex>-1?storageItem[settingsItemIndex]=params:storageItem.push(params),localStorage.setItem(params.type,JSON.stringify(storageItem))})(Object.assign(Object.assign({},cacheConfig),{data:items})),props.cacheApiPath&&debouncedCacheUpdate(items)},clearSettings:()=>{(params=>{const storageItem=JSON.parse(localStorage.getItem(params.type));if(!storageItem||!(null==storageItem?void 0:storageItem.length))return;let updatedStorageItem=[...storageItem];const settingsItemIndex=storageItem.findIndex((({assignee,key})=>assignee.id===params.assignee.id&&key===params.key));settingsItemIndex>-1&&(updatedStorageItem=storageItem.splice(settingsItemIndex,1)),localStorage.setItem(params.type,JSON.stringify(updatedStorageItem))})(cacheConfig),props.cacheApiPath&&deleteCache()}}}},"./packages/react-material-ui/dist/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__exportStar=this&&this.__exportStar||function(m,exports1){for(var p in m)"default"===p||Object.prototype.hasOwnProperty.call(exports1,p)||__createBinding(exports1,m,p)},__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormLabel=exports.Breadcrumbs=exports.OtpInput=exports.UsersModule=exports.CrudModule=exports.AuthModule=exports.FormFieldSkeleton=exports.SchemaForm=exports.Filter=exports.SimpleForm=exports.SelectField=exports.AutocompleteField=exports.SearchField=exports.TextField=exports.Text=exports.useTable=exports.Table=exports.Switch=exports.Select=exports.SideModal=exports.RadioGroup=exports.Notifications=exports.Navbar=exports.Link=exports.Image=exports.HeaderAccount=exports.FormTemplate=exports.OrderableDropDown=exports.Dropdown=exports.Drawer=exports.Dialog=exports.AppBarNav=exports.AppBarMain=exports.AppBarDrawer=exports.AppBarRoot=exports.AppBar=exports.Checkbox=exports.Avatar=exports.createConfig=exports.RocketsProvider=void 0;var RocketsProvider_1=__webpack_require__("./packages/react-material-ui/dist/components/RocketsProvider/index.js");Object.defineProperty(exports,"RocketsProvider",{enumerable:!0,get:function(){return __importDefault(RocketsProvider_1).default}});var utils_1=__webpack_require__("./packages/react-material-ui/dist/components/RocketsProvider/utils.js");Object.defineProperty(exports,"createConfig",{enumerable:!0,get:function(){return __importDefault(utils_1).default}});var Avatar_1=__webpack_require__("./packages/react-material-ui/dist/components/Avatar/index.js");Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return Avatar_1.Avatar}});var Checkbox_1=__webpack_require__("./packages/react-material-ui/dist/components/Checkbox/index.js");Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return Checkbox_1.Checkbox}});var AppBar_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/index.js");Object.defineProperty(exports,"AppBar",{enumerable:!0,get:function(){return AppBar_1.AppBar}});var AppBarRoot_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarRoot.js");Object.defineProperty(exports,"AppBarRoot",{enumerable:!0,get:function(){return AppBarRoot_1.AppBarRoot}});var AppBarDrawer_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarDrawer.js");Object.defineProperty(exports,"AppBarDrawer",{enumerable:!0,get:function(){return AppBarDrawer_1.AppBarDrawer}});var AppBarMain_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarMain.js");Object.defineProperty(exports,"AppBarMain",{enumerable:!0,get:function(){return AppBarMain_1.AppBarMain}});var AppBarNav_1=__webpack_require__("./packages/react-material-ui/dist/components/AppBar/AppBarNav.js");Object.defineProperty(exports,"AppBarNav",{enumerable:!0,get:function(){return AppBarNav_1.AppBarNav}}),__exportStar(__webpack_require__("./packages/react-material-ui/dist/components/AppBar/hooks/index.js"),exports);var Dialog_1=__webpack_require__("./packages/react-material-ui/dist/components/Dialog/index.js");Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return Dialog_1.Dialog}});var Drawer_1=__webpack_require__("./packages/react-material-ui/dist/components/Drawer/index.js");Object.defineProperty(exports,"Drawer",{enumerable:!0,get:function(){return Drawer_1.Drawer}});var Dropdown_1=__webpack_require__("./packages/react-material-ui/dist/components/Dropdown/index.js");Object.defineProperty(exports,"Dropdown",{enumerable:!0,get:function(){return Dropdown_1.Dropdown}});var OrderableDropDown_1=__webpack_require__("./packages/react-material-ui/dist/components/OrderableDropDown/index.js");Object.defineProperty(exports,"OrderableDropDown",{enumerable:!0,get:function(){return OrderableDropDown_1.OrderableDropDown}});var FormTemplate_1=__webpack_require__("./packages/react-material-ui/dist/components/FormTemplate/index.js");Object.defineProperty(exports,"FormTemplate",{enumerable:!0,get:function(){return FormTemplate_1.FormTemplate}});var HeaderAccount_1=__webpack_require__("./packages/react-material-ui/dist/components/HeaderAccount/index.js");Object.defineProperty(exports,"HeaderAccount",{enumerable:!0,get:function(){return HeaderAccount_1.HeaderAccount}});var Image_1=__webpack_require__("./packages/react-material-ui/dist/components/Image/index.js");Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return Image_1.Image}});var Link_1=__webpack_require__("./packages/react-material-ui/dist/components/Link/index.js");Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return Link_1.Link}});var Navbar_1=__webpack_require__("./packages/react-material-ui/dist/components/Navbar/index.js");Object.defineProperty(exports,"Navbar",{enumerable:!0,get:function(){return Navbar_1.Navbar}});var Notifications_1=__webpack_require__("./packages/react-material-ui/dist/components/Notifications/index.js");Object.defineProperty(exports,"Notifications",{enumerable:!0,get:function(){return Notifications_1.Notifications}});var RadioGroup_1=__webpack_require__("./packages/react-material-ui/dist/components/RadioGroup/index.js");Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:function(){return RadioGroup_1.RadioGroup}});var SideModal_1=__webpack_require__("./packages/react-material-ui/dist/components/SideModal/index.js");Object.defineProperty(exports,"SideModal",{enumerable:!0,get:function(){return SideModal_1.SideModal}});var Select_1=__webpack_require__("./packages/react-material-ui/dist/components/Select/index.js");Object.defineProperty(exports,"Select",{enumerable:!0,get:function(){return Select_1.Select}});var Switch_1=__webpack_require__("./packages/react-material-ui/dist/components/Switch/index.js");Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return Switch_1.Switch}});const Table_1=__importStar(__webpack_require__("./packages/react-material-ui/dist/components/Table/index.js"));exports.Table=Table_1.default,Object.defineProperty(exports,"useTable",{enumerable:!0,get:function(){return Table_1.useTable}}),__exportStar(__webpack_require__("./packages/react-material-ui/dist/components/Table/utils/index.js"),exports),__exportStar(__webpack_require__("./packages/react-material-ui/dist/components/Table/hooks/index.js"),exports);var Text_1=__webpack_require__("./packages/react-material-ui/dist/components/Text/index.js");Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return __importDefault(Text_1).default}});var TextField_1=__webpack_require__("./packages/react-material-ui/dist/components/TextField/index.js");Object.defineProperty(exports,"TextField",{enumerable:!0,get:function(){return TextField_1.TextField}});var SearchField_1=__webpack_require__("./packages/react-material-ui/dist/components/SearchField/index.js");Object.defineProperty(exports,"SearchField",{enumerable:!0,get:function(){return __importDefault(SearchField_1).default}});var AutocompleteField_1=__webpack_require__("./packages/react-material-ui/dist/components/AutocompleteField/index.js");Object.defineProperty(exports,"AutocompleteField",{enumerable:!0,get:function(){return __importDefault(AutocompleteField_1).default}});var SelectField_1=__webpack_require__("./packages/react-material-ui/dist/components/SelectField/index.js");Object.defineProperty(exports,"SelectField",{enumerable:!0,get:function(){return SelectField_1.SelectField}});var SimpleForm_1=__webpack_require__("./packages/react-material-ui/dist/components/SimpleForm/index.js");Object.defineProperty(exports,"SimpleForm",{enumerable:!0,get:function(){return __importDefault(SimpleForm_1).default}});var Filter_1=__webpack_require__("./packages/react-material-ui/dist/components/Filter/index.js");Object.defineProperty(exports,"Filter",{enumerable:!0,get:function(){return Filter_1.Filter}});var SchemaForm_1=__webpack_require__("./packages/react-material-ui/dist/components/SchemaForm/index.js");Object.defineProperty(exports,"SchemaForm",{enumerable:!0,get:function(){return SchemaForm_1.SchemaForm}});var FormFieldSkeleton_1=__webpack_require__("./packages/react-material-ui/dist/components/FormFieldSkeleton/index.js");Object.defineProperty(exports,"FormFieldSkeleton",{enumerable:!0,get:function(){return FormFieldSkeleton_1.FormFieldSkeleton}});var auth_1=__webpack_require__("./packages/react-material-ui/dist/modules/auth/index.js");Object.defineProperty(exports,"AuthModule",{enumerable:!0,get:function(){return auth_1.AuthModule}});var crud_1=__webpack_require__("./packages/react-material-ui/dist/modules/crud/index.js");Object.defineProperty(exports,"CrudModule",{enumerable:!0,get:function(){return __importDefault(crud_1).default}});var users_1=__webpack_require__("./packages/react-material-ui/dist/modules/users/index.js");Object.defineProperty(exports,"UsersModule",{enumerable:!0,get:function(){return __importDefault(users_1).default}});var OtpInput_1=__webpack_require__("./packages/react-material-ui/dist/components/OtpInput/index.js");Object.defineProperty(exports,"OtpInput",{enumerable:!0,get:function(){return __importDefault(OtpInput_1).default}});var Breadcrumbs_1=__webpack_require__("./packages/react-material-ui/dist/components/Breadcrumbs/index.js");Object.defineProperty(exports,"Breadcrumbs",{enumerable:!0,get:function(){return __importDefault(Breadcrumbs_1).default}});var FormLabel_1=__webpack_require__("./packages/react-material-ui/dist/components/FormLabel/index.js");Object.defineProperty(exports,"FormLabel",{enumerable:!0,get:function(){return FormLabel_1.FormLabel}})},"./packages/react-material-ui/dist/modules/auth/constants.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resetPasswordModuleProps=exports.forgotPasswordModuleProps=exports.signUpModuleProps=exports.signInModuleProps=void 0,exports.signInModuleProps={signInRequestPath:"/auth/login",forgotPasswordPath:"/forgot-password",signUpPath:"/sign-up",query:{uri:"",method:""}},exports.signUpModuleProps={signInPath:"/sign-in",query:{uri:"/user",method:"post"}},exports.forgotPasswordModuleProps={signInPath:"/sign-in",query:{uri:"/auth/recovery/password",method:"post"}},exports.resetPasswordModuleProps={signInPath:"/sign-in",query:{uri:"/auth/recovery/password",method:"patch"}}},"./packages/react-material-ui/dist/modules/auth/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AuthModule=void 0;const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),AuthForm_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/components/submodules/AuthForm/index.js")),constants_1=__webpack_require__("./packages/react-material-ui/dist/modules/auth/constants.js");exports.AuthModule=props=>{const defaultModuleProps={signIn:constants_1.signInModuleProps,signUp:constants_1.signUpModuleProps,forgotPassword:constants_1.forgotPasswordModuleProps,resetPassword:constants_1.resetPasswordModuleProps}[props.route],authQuery=Object.assign(Object.assign({},defaultModuleProps.query),props.query);return react_1.default.createElement(AuthForm_1.default,Object.assign({},props.formProps,defaultModuleProps,props,{query:authQuery}))}},"./packages/react-material-ui/dist/modules/crud/CrudRoot.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),useCrudRoot_1=__webpack_require__("./packages/react-material-ui/dist/modules/crud/useCrudRoot.js"),http_1=__webpack_require__("./packages/react-material-ui/dist/utils/http/index.js");exports.default=props=>{const{filters,search,updateSearch,simpleFilter,updateSimpleFilter,filterCallback,externalSearch,children,navigate}=props,searchParams=new URLSearchParams(window.location.search),[filterValues,setFilterValues]=(0,react_1.useState)((null==searchParams?void 0:searchParams.get("filterValues"))&&JSON.parse(searchParams.get("filterValues"))||{});return(0,react_1.useEffect)((()=>{null==filterCallback||filterCallback(filterValues);const newFilterValues=(0,http_1.getSearchParams)(searchParams,{filterValues:JSON.stringify(filterValues)}),hasValues=Object.values(filterValues).filter((value=>value)).length>0;navigate&&navigate(`${window.location.pathname}?${hasValues?newFilterValues:""}`)}),[filterValues]),react_1.default.createElement(useCrudRoot_1.CrudContext.Provider,{value:{filters,search,updateSearch,simpleFilter,updateSimpleFilter,externalSearch,filterValues,setFilterValues}},children)}},"./packages/react-material-ui/dist/modules/crud/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const[drawerViewMode,setDrawerViewMode]=(0,react_2.useState)(null),[selectedRow,setSelectedRow]=(0,react_2.useState)(null),[currentViewIndex,setCurrentViewIndex]=(0,react_2.useState)(0),useTableReturn=(0,useTable_1.default)(props.resource,{callbacks:{onError:props.onFetchError},navigate:props.navigate}),changeCurrentFormData=direction=>{const{data,tableQueryState,setTableQueryState,pageCount}=useTableReturn,isPrevious="previous"===direction,isNext="next"===direction,isFirstItem=0===currentViewIndex,isLastItem=currentViewIndex===data.length-1;isPrevious&&isFirstItem&&1===tableQueryState.page||isNext&&isLastItem&&tableQueryState.page===pageCount||("previous"===direction&&(isFirstItem&&tableQueryState.page>1&&setTableQueryState(Object.assign(Object.assign({},tableQueryState),{page:tableQueryState.page-1})),setCurrentViewIndex(isFirstItem?data.length-1:currentViewIndex-1)),"next"===direction&&(isLastItem&&tableQueryState.page{switch(props.formContainerVariation){case"drawer":default:return DrawerForm_1.default;case"modal":return ModalForm_1.default}}),[props.formContainerVariation]),formProps=(0,react_2.useMemo)((()=>{switch(drawerViewMode){case"creation":default:return props.createFormProps;case"edit":return props.editFormProps;case"details":return props.detailsFormProps}}),[drawerViewMode,props.createFormProps,props.detailsFormProps,props.editFormProps]);(0,react_2.useEffect)((()=>{const{data}=useTableReturn;data&&data.length&&setSelectedRow(data[currentViewIndex])}),[useTableReturn.data,currentViewIndex]);const formOnSuccess=null==formProps?void 0:formProps.onSuccess,formOnDeleteSuccess=null==formProps?void 0:formProps.onDeleteSuccess,enhancedFormProps=Object.assign({},formProps);delete enhancedFormProps.onSuccess,delete enhancedFormProps.onDeleteSuccess;const _a=props.tableProps,{filters}=_a,tableSubmoduleProps=__rest(_a,["filters"]),{isPending,tableQueryState}=useTableReturn;return react_1.default.createElement(CrudRoot_1.default,{filters,search:useTableReturn.search,updateSearch:useTableReturn.updateSearch,simpleFilter:useTableReturn.simpleFilter,updateSimpleFilter:useTableReturn.updateSimpleFilter,filterCallback:props.filterCallback,externalSearch:props.externalSearch,navigate:props.navigate},react_1.default.createElement(material_1.Box,null,react_1.default.createElement(material_1.Box,{mt:4},react_1.default.createElement(Breadcrumbs_1.default,{routes:[{href:"/",label:"Home"},{href:"#",label:props.title||"Table"}]})),props.title?react_1.default.createElement(Text_1.default,{fontFamily:"Inter",fontSize:20,fontWeight:800,mt:4,mb:4},props.title):null,react_1.default.createElement(Table_1.default,Object.assign({queryResource:props.resource,onAction:payload=>{setSelectedRow(payload.row),setDrawerViewMode(payload.action),setCurrentViewIndex(payload.index)},onAddNew:()=>{setSelectedRow(null),setDrawerViewMode("creation"),setCurrentViewIndex(0)},hideAddButton:!props.createFormProps,hideEditButton:!props.editFormProps||props.hideEditButton,hideDeleteButton:props.hideDeleteButton,hideDetailsButton:!props.detailsFormProps||props.hideDetailsButton,filterCallback:props.filterCallback,externalSearch:props.externalSearch,filterCacheKey:props.filterCacheKey,tableCacheKey:props.tableCacheKey,cacheApiPath:props.cacheApiPath,hasCheckboxes:props.enableTableRowSelection,addButtonStartIcon:props.addButtonStartIcon,addButtonEndIcon:props.addButtonEndIcon,addButtonContent:props.addButtonContent,additionalFilterRowContent:props.additionalFilterRowContent},useTableReturn,tableSubmoduleProps)),enhancedFormProps&&react_1.default.createElement(FormComponent,Object.assign({title:props.title,queryResource:props.resource,viewMode:drawerViewMode,formData:selectedRow,onSuccess:data=>{useTableReturn.refresh(),setSelectedRow(null),setDrawerViewMode(null),setCurrentViewIndex(0),formOnSuccess&&formOnSuccess(data)},onDeleteSuccess:data=>{useTableReturn.refresh(),setSelectedRow(null),setDrawerViewMode(null),setCurrentViewIndex(0),formOnDeleteSuccess&&formOnDeleteSuccess(data)},onClose:()=>{setSelectedRow(null),setDrawerViewMode(null),setCurrentViewIndex(0)},onPrevious:()=>changeCurrentFormData("previous"),onNext:()=>changeCurrentFormData("next"),isLoading:isPending,viewIndex:currentViewIndex+1,rowsPerPage:tableQueryState.rowsPerPage,currentPage:tableQueryState.page,pageCount:useTableReturn.pageCount},enhancedFormProps),enhancedFormProps.children)))}},"./packages/react-material-ui/dist/modules/crud/useCrudRoot.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useCrudRoot=exports.CrudContext=void 0;const react_1=__webpack_require__("./node_modules/react/index.js");exports.CrudContext=(0,react_1.createContext)({});exports.useCrudRoot=()=>(0,react_1.useContext)(exports.CrudContext)},"./packages/react-material-ui/dist/modules/users/constants.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DEFAULT_FILTERS=exports.CREATE_EDIT_FORM=exports.headers=void 0;const CustomWidgets_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/index.js");exports.headers=[{id:"id",label:"ID"},{id:"username",label:"Username"},{id:"email",label:"Email"}];const uiSchema={email:{"ui:widget":CustomWidgets_1.CustomTextFieldWidget},username:{"ui:widget":CustomWidgets_1.CustomTextFieldWidget}};exports.CREATE_EDIT_FORM={formSchema:{type:"object",required:["email","username"],properties:{email:{type:"string",title:"Email",minLength:3,format:"email"},username:{type:"string",title:"Username",minLength:3}}},formUiSchema:uiSchema},exports.DEFAULT_FILTERS=[{id:"id",label:"ID",operator:"eq",type:"text",columns:3},{id:"username",label:"Username",operator:"contL",type:"text",columns:3},{id:"email",label:"Email",operator:"contL",type:"text",columns:3}]},"./packages/react-material-ui/dist/modules/users/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var{onEditError,onEditSuccess,onCreateSuccess,onCreateError,onDeleteSuccess,onDeleteError}=_a,props=__rest(_a,["onEditError","onEditSuccess","onCreateSuccess","onCreateError","onDeleteSuccess","onDeleteError"]);const tableProps=Object.assign({tableSchema:constants_1.headers,reordable:!0,filters:constants_1.DEFAULT_FILTERS},props.tableProps),createFormProps=Object.assign(Object.assign(Object.assign({},constants_1.CREATE_EDIT_FORM),{onSuccess:onCreateSuccess,onError:onCreateError}),props.createFormProps),editFormProps=Object.assign(Object.assign(Object.assign({},constants_1.CREATE_EDIT_FORM),{onError:onEditError,onSuccess:onEditSuccess,onDeleteSuccess,onDeleteError}),props.editFormProps),detailsFormProps=Object.assign(Object.assign({},constants_1.CREATE_EDIT_FORM),props.detailsFormProps),enhancedProps=Object.assign({},props);return delete enhancedProps.tableProps,delete enhancedProps.createFormProps,delete enhancedProps.editFormProps,delete enhancedProps.detailsFormProps,react_1.default.createElement(crud_1.default,Object.assign({title:"Users",resource:"user",hideDeleteButton:!0,tableProps,createFormProps,editFormProps,detailsFormProps},enhancedProps))}},"./packages/react-material-ui/dist/styles/CustomTemplates/ObjectFieldTemplate.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Grid_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Grid/index.js")),utils_1=__webpack_require__("./node_modules/@rjsf/utils/lib/index.js");exports.default=function ObjectFieldTemplate(props){const{description,title,properties,required,disabled,readonly,uiSchema,idSchema,schema,formData,onAddClick,registry}=props,uiOptions=(0,utils_1.getUiOptions)(uiSchema),TitleFieldTemplate=(0,utils_1.getTemplate)("TitleFieldTemplate",registry,uiOptions),DescriptionFieldTemplate=(0,utils_1.getTemplate)("DescriptionFieldTemplate",registry,uiOptions),{ButtonTemplates:{AddButton}}=registry.templates;return react_1.default.createElement(react_1.default.Fragment,null,title&&react_1.default.createElement(TitleFieldTemplate,{id:(0,utils_1.titleId)(idSchema),title,required,schema,uiSchema,registry}),description&&react_1.default.createElement(DescriptionFieldTemplate,{id:(0,utils_1.descriptionId)(idSchema),description,schema,uiSchema,registry}),react_1.default.createElement(Grid_1.default,{container:!0,spacing:2,style:{marginTop:"10px"}},properties.map(((element,index)=>{var _a;return element.hidden?element.content:react_1.default.createElement(Grid_1.default,{item:!0,xs:(null===(_a=uiSchema[element.name])||void 0===_a?void 0:_a["ui:gridColumns"])||12,key:index,style:{marginBottom:"10px"}},element.content)})),(0,utils_1.canExpand)(schema,uiSchema,formData)&&react_1.default.createElement(Grid_1.default,{container:!0,justifyContent:"flex-end"},react_1.default.createElement(Grid_1.default,{item:!0},react_1.default.createElement(AddButton,{className:"object-property-expand",onClick:onAddClick(schema),disabled:disabled||readonly,uiSchema,registry})))))}},"./packages/react-material-ui/dist/styles/CustomTemplates/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ObjectFieldTemplate=void 0;var ObjectFieldTemplate_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomTemplates/ObjectFieldTemplate.js");Object.defineProperty(exports,"ObjectFieldTemplate",{enumerable:!0,get:function(){return __importDefault(ObjectFieldTemplate_1).default}})},"./packages/react-material-ui/dist/styles/CustomWidgets/ArrayFieldActionButton.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),IconButton_1=__importDefault(__webpack_require__("./node_modules/@mui/material/IconButton/index.js")),AddCircleOutline_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/AddCircleOutline.js")),DeleteOutline_1=__importDefault(__webpack_require__("./node_modules/@mui/icons-material/DeleteOutline.js"));exports.default=props=>{const{type,onClick}=props;return react_1.default.createElement(Box_1.default,{sx:{marginTop:3,marginLeft:1}},react_1.default.createElement(IconButton_1.default,{onClick},"add"===type?react_1.default.createElement(AddCircleOutline_1.default,{color:"primary"}):react_1.default.createElement(DeleteOutline_1.default,null)))}},"./packages/react-material-ui/dist/styles/CustomWidgets/ArrayFieldTemplate.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),utils_1=__webpack_require__("./node_modules/@rjsf/utils/lib/index.js"),Box_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Box/index.js")),Typography_1=__importDefault(__webpack_require__("./node_modules/@mui/material/Typography/index.js")),ArrayFieldActionButton_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/ArrayFieldActionButton.js"));exports.default=function ArrayFieldTemplate(props){var _a;const{items,canAdd,onAddClick,registry,uiSchema,schema,required,idSchema,title}=props,uiOptions=(0,utils_1.getUiOptions)(uiSchema),ArrayFieldTitleTemplate=(0,utils_1.getTemplate)("ArrayFieldTitleTemplate",registry,uiOptions);return react_1.default.createElement(Box_1.default,{display:"flex",flexDirection:"column",sx:{"& .MuiGrid-container":{marginTop:"0 !important"},"& .field":{flex:1}}},react_1.default.createElement(ArrayFieldTitleTemplate,{idSchema,title:null!==(_a=uiOptions.title)&&void 0!==_a?_a:title,schema,uiSchema,required,registry}),items.map(((el,i)=>{const child=Object.assign(Object.assign({},el.children),{props:Object.assign(Object.assign({},el.children.props),{required:props.required})});return react_1.default.createElement(Box_1.default,{key:el.key,display:"flex",mt:2},child,0===i&&canAdd&&react_1.default.createElement(ArrayFieldActionButton_1.default,{type:"add",onClick:onAddClick}),i>0&&el.hasRemove&&react_1.default.createElement(ArrayFieldActionButton_1.default,{type:"remove",onClick:()=>{el.onDropIndexClick(i)()}}))})),schema.description&&react_1.default.createElement(Typography_1.default,{component:"span",variant:"caption",color:"#9CA3AF"},schema.description))}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomAutocompleteWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);iget({uri:`/${resource}`,queryParams})),!1),resourceOptions=[...Array.isArray(additionalOptions)?additionalOptions:[],...null!==(_b=null==data?void 0:data.map((resource=>({value:resource[null!=resourceValue?resourceValue:"id"],label:resource[null!=resourceLabel?resourceLabel:"name"]}))))&&void 0!==_b?_b:[]],availableOptions=resource?resourceOptions:enumOptions,emptyValue=(multiple=uiMultiple||!!multiple&&void 0!==multiple)?[]:void 0,isEmpty=void 0===value||multiple&&value.length<1||!multiple&&value===emptyValue,controlledValue=(0,react_1.useMemo)((()=>multiple?null==value?void 0:value.map((optionValue=>null==availableOptions?void 0:availableOptions.find((option=>option.value===optionValue)))):null==availableOptions?void 0:availableOptions.find((option=>option.value===value))),[availableOptions,value,multiple]);return(0,react_1.useEffect)((()=>{resource&&execute()}),[JSON.stringify(queryParams)]),react_1.default.createElement(material_1.Autocomplete,{multiple,limitTags,filterOptions:(options,params)=>{const filtered=(0,material_1.createFilterOptions)()(options,params);return selectAll&&filtered.unshift({label:selectAll,value:SelectField_1.allOption.value}),filtered},renderOption:(props,option,state,ownerState)=>renderOption?renderOption(props,option,state,ownerState):react_1.default.createElement("li",Object.assign({},props,{key:option.key}),option.label),options:null!=availableOptions?availableOptions:[],isOptionEqualToValue:option=>option.value===controlledValue,getOptionLabel:option=>null==option?void 0:option.label,size:null!=size?size:"small",value:controlledValue,onChange:(_,newValue)=>onChange(((value,optEmptyVal,options)=>value?Array.isArray(value)?value.find((option=>option.value===SelectField_1.allOption.value))?options.map((option=>option.value)):(null==value?void 0:value.length)<1?[]:[...new Set(value.map((item=>item.value)))]:null==value?void 0:value.value:optEmptyVal)(newValue,emptyValue,availableOptions)),renderInput:params=>react_1.default.createElement(FormFieldSkeleton_1.FormFieldSkeleton,{isLoading:isPending},react_1.default.createElement(TextField_1.TextField,Object.assign({},params,{id,name:id,label:(0,utils_1.labelValue)(label||void 0,hideLabel,!1),required,disabled:disabled||readonly,autoFocus:autofocus,placeholder,error:rawErrors.length>0},textFieldProps,{InputLabelProps:Object.assign(Object.assign({},textFieldProps.InputLabelProps),{shrink:!isEmpty}),SelectProps:Object.assign(Object.assign({},textFieldProps.SelectProps),{multiple}),"aria-describedby":(0,utils_1.ariaDescribedByIds)(id)})))})}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomCheckboxWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Checkbox_1=__webpack_require__("./packages/react-material-ui/dist/components/Checkbox/index.js");exports.default=props=>react_1.default.createElement(Checkbox_1.Checkbox,{checked:props.value,label:props.label,onChange:evt=>props.onChange(evt.target.checked)})},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomCheckboxesWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),material_1=__webpack_require__("./node_modules/@mui/material/index.js"),Checkbox_1=__webpack_require__("./packages/react-material-ui/dist/components/Checkbox/index.js");exports.default=props=>{const{label,uiSchema,id,disabled,options,value,autofocus,readonly,required,onChange}=props,{enumOptions,enumDisabled}=options,_onChange=option=>({target:{checked}})=>{const all=enumOptions.map((({value})=>value));onChange(checked?((value,selected,all)=>{const at=all.indexOf(value);return selected.slice(0,at).concat(value,selected.slice(at)).sort(((a,b)=>all.indexOf(a)>all.indexOf(b))).filter((item=>""!==item))})(option.value,value,all):((value,selected)=>selected.filter((v=>v!==value)))(option.value,value))};return react_1.default.createElement(material_1.FormControl,null,react_1.default.createElement(material_1.Box,{id,my:1},react_1.default.createElement(material_1.Typography,{variant:"h5"},label),react_1.default.createElement(material_1.Divider,null)),react_1.default.createElement(material_1.Grid,{display:"flex",flexDirection:(null==uiSchema?void 0:uiSchema["ui:inline"])?"row":"column",flexWrap:"wrap",py:2},enumOptions.map(((option,index)=>{const checked=-1!==value.indexOf(option.value),itemDisabled=enumDisabled&&-1!=enumDisabled.indexOf(option.value);return react_1.default.createElement(Checkbox_1.Checkbox,{id:`${id}_${index}`,checked,disabled:disabled||itemDisabled||readonly,autoFocus:autofocus&&0===index,onChange:_onChange(option),key:index,label:option.label,required})}))))}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomEmailFieldWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),CustomTextFieldWidget_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomTextFieldWidget.js"));exports.default=props=>react_1.default.createElement(CustomTextFieldWidget_1.default,Object.assign({},props,{type:"email"}))},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomOtpInputWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i0,disabled:disabled||readonly,InputLabelProps:DisplayInputLabelProps},otherProps),textFieldProps),onChange:value=>{onChange(""===value?options.emptyValue:formatData?formatData(value):value)},onBlur:(value,isComplete)=>onBlur(id,value),onFocus:({target:{value}})=>onFocus(id,value),"aria-describedby":(0,utils_1.ariaDescribedByIds)(id,!!schema.examples)}),Array.isArray(schema.examples)&&react_1.default.createElement("datalist",{id:(0,utils_1.examplesId)(id)},schema.examples.concat(schema.default&&!schema.examples.includes(schema.default)?[schema.default]:[]).map((example=>react_1.default.createElement("option",{key:example,value:example})))))}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomPasswordFieldWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),CustomTextFieldWidget_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomTextFieldWidget.js"));exports.default=props=>{const{uiSchema}=props,passwordStrengthConfig=null==uiSchema?void 0:uiSchema["ui:passwordStrengthConfig"];return react_1.default.createElement(CustomTextFieldWidget_1.default,Object.assign({},props,{uiSchema,passwordStrengthConfig,type:"password"}))}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomRadioWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),RadioGroup_1=__webpack_require__("./packages/react-material-ui/dist/components/RadioGroup/index.js");exports.default=props=>{const{id,schema,options,value,required,disabled,label,onChange}=props,{enumOptions}=options,row=!!options&&options.inline;return react_1.default.createElement(RadioGroup_1.RadioGroup,{id,options:enumOptions,onChange:(_,value)=>{onChange("boolean"==schema.type?"false"!==value:value)},row,value,disabled,required,label})}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomSelectWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Select_1=__webpack_require__("./packages/react-material-ui/dist/components/Select/index.js");exports.default=({id,options,label,required,disabled,readonly,value,multiple,onChange,rawErrors=[]})=>{const{enumOptions,enumDisabled}=options,emptyValue=multiple?[]:"";return react_1.default.createElement(Select_1.Select,{id,label,value:void 0===value?emptyValue:value,options:null==enumOptions?void 0:enumOptions.map((({value,label})=>({value,label,disabled:enumDisabled&&-1!=enumDisabled.indexOf(value)}))),onChange:({target:{value}})=>onChange(value),required,disabled:disabled||readonly,error:rawErrors.length>0})}},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomSwitchWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),Switch_1=__webpack_require__("./packages/react-material-ui/dist/components/Switch/index.js");exports.default=props=>react_1.default.createElement(Switch_1.Switch,{checked:props.value,label:props.label,onChange:evt=>props.onChange(evt.target.checked)})},"./packages/react-material-ui/dist/styles/CustomWidgets/CustomTextFieldWidget.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i0,onChange:onChangeOverride||(({target:{value}})=>onChange(""===value?options.emptyValue:formatData?formatData(value):value)),onBlur:({target:{value}})=>onBlur(id,value),onFocus:({target:{value}})=>onFocus(id,value),InputLabelProps:DisplayInputLabelProps},textFieldProps,{"aria-describedby":(0,utils_1.ariaDescribedByIds)(id,!!schema.examples)})),Array.isArray(schema.examples)&&react_1.default.createElement("datalist",{id:(0,utils_1.examplesId)(id)},schema.examples.concat(schema.default&&!schema.examples.includes(schema.default)?[schema.default]:[]).map((example=>react_1.default.createElement("option",{key:example,value:example})))))}},"./packages/react-material-ui/dist/styles/CustomWidgets/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CustomOtpInputWidget=exports.CustomAutocompleteWidget=exports.CustomRadioWidget=exports.CustomPasswordFieldWidget=exports.CustomEmailFieldWidget=exports.CustomTextFieldWidget=exports.CustomSwitchWidget=exports.CustomSelectWidget=exports.CustomCheckboxesWidget=exports.CustomCheckboxWidget=exports.ArrayFieldTemplate=void 0;var ArrayFieldTemplate_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/ArrayFieldTemplate.js");Object.defineProperty(exports,"ArrayFieldTemplate",{enumerable:!0,get:function(){return __importDefault(ArrayFieldTemplate_1).default}});var CustomCheckboxWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomCheckboxWidget.js");Object.defineProperty(exports,"CustomCheckboxWidget",{enumerable:!0,get:function(){return __importDefault(CustomCheckboxWidget_1).default}});var CustomCheckboxesWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomCheckboxesWidget.js");Object.defineProperty(exports,"CustomCheckboxesWidget",{enumerable:!0,get:function(){return __importDefault(CustomCheckboxesWidget_1).default}});var CustomSelectWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomSelectWidget.js");Object.defineProperty(exports,"CustomSelectWidget",{enumerable:!0,get:function(){return __importDefault(CustomSelectWidget_1).default}});var CustomSwitchWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomSwitchWidget.js");Object.defineProperty(exports,"CustomSwitchWidget",{enumerable:!0,get:function(){return __importDefault(CustomSwitchWidget_1).default}});var CustomTextFieldWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomTextFieldWidget.js");Object.defineProperty(exports,"CustomTextFieldWidget",{enumerable:!0,get:function(){return __importDefault(CustomTextFieldWidget_1).default}});var CustomEmailFieldWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomEmailFieldWidget.js");Object.defineProperty(exports,"CustomEmailFieldWidget",{enumerable:!0,get:function(){return __importDefault(CustomEmailFieldWidget_1).default}});var CustomPasswordFieldWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomPasswordFieldWidget.js");Object.defineProperty(exports,"CustomPasswordFieldWidget",{enumerable:!0,get:function(){return __importDefault(CustomPasswordFieldWidget_1).default}});var CustomRadioWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomRadioWidget.js");Object.defineProperty(exports,"CustomRadioWidget",{enumerable:!0,get:function(){return __importDefault(CustomRadioWidget_1).default}});var CustomAutocompleteWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomAutocompleteWidget.js");Object.defineProperty(exports,"CustomAutocompleteWidget",{enumerable:!0,get:function(){return __importDefault(CustomAutocompleteWidget_1).default}});var CustomOtpInputWidget_1=__webpack_require__("./packages/react-material-ui/dist/styles/CustomWidgets/CustomOtpInputWidget.js");Object.defineProperty(exports,"CustomOtpInputWidget",{enumerable:!0,get:function(){return __importDefault(CustomOtpInputWidget_1).default}})},"./packages/react-material-ui/dist/utils/form/validation.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.validateForm=void 0;const lodash_1=__webpack_require__("./node_modules/lodash/lodash.js");exports.validateForm=(formData,errors,validationRules)=>{const errorsAdded={};for(const rule of validationRules){const{field,test,message}=rule;if(test((0,lodash_1.get)(formData,field),formData)){if(!(0,lodash_1.get)(errorsAdded,field)){const errorField=(0,lodash_1.get)(errors,field);null==errorField||errorField.addError(message),(0,lodash_1.set)(errorsAdded,field,!0)}}}return errors}},"./packages/react-material-ui/dist/utils/http/getSearchParams.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=(searchParams,newParams)=>{const newSearchParam=new URLSearchParams(searchParams);for(const[key,value]of Object.entries(newParams)){const param=null==searchParams?void 0:searchParams.get(key),parsedValue="number"==typeof value?Number(param):param;value?value!==parsedValue&&newSearchParam.set(key,String(value)):newSearchParam.delete(key)}const stringfiedNewSearchParam=newSearchParam.toString();return stringfiedNewSearchParam||null}},"./packages/react-material-ui/dist/utils/http/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSearchParams=void 0;const getSearchParams_1=__importDefault(__webpack_require__("./packages/react-material-ui/dist/utils/http/getSearchParams.js"));exports.getSearchParams=getSearchParams_1.default},"./packages/react-material-ui/dist/utils/isMobile.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isMobile=void 0;const isMobile=/Android|BlackBerryi|iPhone|iPad|iPodi|Opera Minii|IEMobilei|WPDesktop/i.test(navigator.userAgent);exports.isMobile=isMobile}}]);
\ No newline at end of file
diff --git a/iframe.html b/iframe.html
index f982e030..0cac8420 100644
--- a/iframe.html
+++ b/iframe.html
@@ -504,7 +504,7 @@
window['TAGS_OPTIONS'] = {"dev-only":{"excludeFromDocsStories":true},"docs-only":{"excludeFromSidebar":true},"test-only":{"excludeFromSidebar":true,"excludeFromDocsStories":true}};