@asaleh37/ui-base 1.1.9 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +23 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/App.tsx +61 -3
- package/src/components/BaseApp.tsx +7 -0
- package/src/components/admin/AttachmentGrid.tsx +1 -1
- package/src/components/admin/AuthorityGrid.tsx +1 -1
- package/src/components/admin/BluePrintGrid.tsx +1 -1
- package/src/components/admin/BluePrintPageGrid.tsx +1 -1
- package/src/components/admin/BluePrintPointGrid.tsx +1 -1
- package/src/components/admin/DashboardGrid.tsx +1 -1
- package/src/components/admin/DashboardWidgetGrid.tsx +1 -1
- package/src/components/admin/DataQueryGrid.tsx +1 -1
- package/src/components/admin/DataQueryParameterGrid.tsx +1 -1
- package/src/components/admin/DatasourceConnectionGrid.tsx +1 -1
- package/src/components/admin/EmployeeGrid.tsx +1 -1
- package/src/components/admin/EntityParameterGrid.tsx +1 -1
- package/src/components/admin/ExcelUploaderDetailGrid.tsx +1 -1
- package/src/components/admin/ExcelUploaderHeaderGrid.tsx +1 -1
- package/src/components/admin/LookupGrid.tsx +1 -1
- package/src/components/admin/MailAttachmentGrid.tsx +1 -1
- package/src/components/admin/MailBodyGrid.tsx +1 -1
- package/src/components/admin/MailNotificationQueueGrid.tsx +1 -1
- package/src/components/admin/MailRecipientGrid.tsx +1 -1
- package/src/components/admin/MailTemplateGrid.tsx +1 -1
- package/src/components/admin/NewTableGrid.tsx +1 -1
- package/src/components/admin/NotificationGrid.tsx +1 -1
- package/src/components/admin/NotificationQueueGrid.tsx +1 -1
- package/src/components/admin/OrganizationApplicationGrid.tsx +1 -1
- package/src/components/admin/OrganizationGrid.tsx +1 -1
- package/src/components/admin/OrganizationRankGrid.tsx +1 -1
- package/src/components/admin/OrganizationUnitGrid.tsx +1 -1
- package/src/components/admin/OrganizationUserGrid.tsx +1 -1
- package/src/components/admin/OrganizationUserRoleGrid.tsx +1 -1
- package/src/components/admin/ReportGrid.tsx +1 -1
- package/src/components/admin/ReportParameterGrid.tsx +1 -1
- package/src/components/admin/RoleAuthorityGrid.tsx +1 -1
- package/src/components/admin/RoleGrid.tsx +1 -1
- package/src/components/admin/UserAccountGrid.tsx +1 -1
- package/src/components/admin/UserRequestGrid.tsx +1 -1
- package/src/components/admin/WidgetGrid.tsx +1 -1
- package/src/components/admin/WorkflowDocumentActionGrid.tsx +1 -1
- package/src/components/admin/WorkflowDocumentActionHistoryGrid.tsx +1 -1
- package/src/components/admin/WorkflowDocumentActionMailGrid.tsx +1 -1
- package/src/components/admin/WorkflowDocumentGrid.tsx +1 -1
- package/src/components/admin/WorkflowDocumentMailLogGrid.tsx +1 -1
- package/src/components/admin/WorkflowDocumentStatusGrid.tsx +1 -1
- package/src/components/common/Login.tsx +28 -2
- package/src/components/templates/DataEntryTemplates/DataEntryTypes.ts +1 -1
- package/src/hooks/index.ts +1 -0
- package/src/{components/templates/DataEntryTemplates → hooks}/useApiActions.ts +4 -4
- package/src/layout/MainContent.tsx +12 -9
- package/src/layout/NavigationTree.tsx +10 -9
- package/src/redux/features/common/AppInfoSlice.ts +10 -0
- package/src/redux/features/common/CommonStoreSlice.ts +1 -4
- package/src/theme/DarkThemeOptions.ts +0 -30
- package/src/theme/LightThemeOptions.ts +0 -34
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react-redux"),i=require("@reduxjs/toolkit"),o=require("@fortawesome/fontawesome-svg-core"),r=require("@fortawesome/free-brands-svg-icons"),a=require("@fortawesome/free-regular-svg-icons"),n=require("@fortawesome/free-solid-svg-icons");require("react-toastify/dist/ReactToastify.css");var l=require("@mui/material"),d=require("@emotion/react"),s=require("react"),p=require("@mui/material/styles"),_=require("@mui/material/CssBaseline"),E=require("@mui/material/AppBar"),c=require("@mui/material/Toolbar"),T=require("@fortawesome/react-fontawesome"),A=require("react-toastify"),u=require("axios"),I=require("i18next"),O=require("react-i18next"),m=require("@mui/material/Divider"),f=require("@mui/material/IconButton"),N=require("@mui/material/Drawer"),R=require("@react-spring/web"),L=require("@mui/material/Box"),y=require("@mui/material/Collapse"),D=require("@mui/material/Typography"),C=require("@mui/x-tree-view/RichTreeView"),U=require("@mui/x-tree-view/TreeItem"),M=require("@mui/x-tree-view/useTreeItem2"),h=require("@mui/x-tree-view/TreeItem2"),P=require("@mui/x-tree-view/TreeItem2Icon"),S=require("@mui/x-tree-view/TreeItem2Provider"),b=require("@mui/x-tree-view/TreeItem2DragAndDropOverlay"),g=require("react-router-dom"),x=require("stylis-plugin-rtl"),v=require("stylis"),B=require("@emotion/cache"),F=require("@mui/x-data-grid-premium"),w=require("moment"),W=require("@mui/x-date-pickers"),G=require("@mui/x-date-pickers/AdapterMoment"),k=require("zod"),j=require("react-hook-form"),Y=require("@hookform/resolvers/zod"),q=require("@emotion/styled"),K=require("@mui/material/colors"),V=require("@mui/material/SwipeableDrawer"),H=require("@mui/x-license"),Q=require("@mui/material/List"),z=require("@mui/material/Card"),Z=require("@mui/material/CardHeader"),$=require("@mui/material/ListItem"),X=require("@mui/material/ListItemText"),J=require("@mui/material/ListItemIcon"),ee=require("@mui/material/Checkbox"),te=require("@mui/material/Button"),ie=require("@mui/material/Grid2"),oe=require("@mui/x-charts/PieChart"),re=require("@mui/x-charts"),ae=require("@mui/material/LinearProgress");function ne(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(i){if("default"!==i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}})),t.default=e,Object.freeze(t)}var le=ne(s),de=ne(k);const se=350,pe={sideBarOpened:!1,themeMode:localStorage.getItem("themeMode")||"light",appDirection:"ar"==localStorage.getItem("language")?"rtl":"ltr"},_e=i.createSlice({name:"AppLayout",initialState:pe,reducers:{toggleSideBarState:e=>{e.sideBarOpened=!e.sideBarOpened},setSideBarState:(e,t)=>{e.sideBarOpened=t.payload},setThemeMode:(e,t)=>{e.themeMode=t.payload},setAppDirection:(e,t)=>{e.appDirection=t.payload}}}),Ee=_e.actions;var ce=_e.reducer;const Te=i.createSlice({name:"UserSession",initialState:{value:{isAuthenticated:null,authorities:[],userProfile:null}},reducers:{setAuthenticated:(e,t)=>{e.value=t.payload},setUnAuthenticated:e=>{e.value={isAuthenticated:!1,authorities:[],userProfile:null}}}}),Ae=Te.actions;var ue=Te.reducer;const Ie=i.createSlice({name:"loadingMask",initialState:{value:{isOpened:!1,message:null}},reducers:{showLoadingMask:(e,t)=>{e.value.isOpened=!0,e.value.message=t.payload},hideLoadingMask:e=>{e.value.isOpened=!1,e.value.message=null}}}),{showLoadingMask:Oe,hideLoadingMask:me}=Ie.actions;var fe=Ie.reducer;const Ne={SystemDataSourceType:{autoLoad:!1,data:[{value:"Mysql"},{value:"Oracle"},{value:"DB2"}],url:""},SystemParameterTypes:{autoLoad:!1,url:"",data:[{value:"datetime"},{value:"date"},{value:"text"},{value:"number"},{value:"droplist"}]},SystemReportTypes:{autoLoad:!1,url:"",data:[{value:"Excel"},{value:"Jasper"},{value:"Blueprint"}]},SystemWidgetTypes:{autoLoad:!1,url:"",data:[{name:"LineChart"},{name:"ColumnChart"},{name:"PieChart"},{name:"Card"},{name:"CircularProgress"},{name:"LinearProgress"}]},SystemMailRecipientTypes:{autoLoad:!1,url:"",data:[{name:"To"},{name:"CC"}]},SystemDataSources:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/admin/datasourceconnection/all"},SystemDataQueries:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/admin/dataquery/all"},SystemEntityParameters:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/admin/entityparameter/all"},SystemAuthorities:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/admin/authority/all"},SystemRoles:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/admin/role/all"}},Re=i.createSlice({name:"loadingMask",initialState:Ne,reducers:{setStoreData(e,t){e[t.payload.storeKey].data=t.payload.data}}}),{setStoreData:Le}=Re.actions;var ye=Re.reducer;const De=i.createSlice({name:"AppInfo",initialState:{value:{documentTitle:null,apiBaseUrl:null,appName:null,appVersion:null,appLogo:null,muiPremiumKey:null,businessRoutes:[],businessNavigationItems:[],businessReduxReducers:{},businessCommonStoresMetaData:{}}},reducers:{setAppInfo:(e,t)=>{e.value=t.payload}}}),Ce=De.actions;const Ue={AppLayout:ce,UserSession:ue,loadingMask:fe,commonStores:ye,AppInfo:De.reducer};const Me=i.configureStore({reducer:Ue});!function(e,t){void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}("html,\r\nbody {\r\n height: 100%;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\n#root {\r\n height: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n overflow: hidden; \r\n}\r\n\r\n.red-row {\r\n background-color: #f0d8d8;\r\n}\r\n");const he={components:{MuiCssBaseline:{styleOverrides:"\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: #37505C #ffffff;\n }\n\n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n "}},palette:{mode:"light",primary:{main:"#37505C"},secondary:{main:"#ff6d00"},background:{default:"#f5f5f5",paper:"#f5f5f5"}}},Pe={components:{MuiCssBaseline:{styleOverrides:"\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: #ea690e #121212;\n }\n\n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n "}},palette:{mode:"dark",primary:{main:"#ea690e"},secondary:{main:"#74776B"}}},Se=(e=768)=>{const[t,i]=s.useState(window.innerWidth<e);return s.useEffect((()=>{const t=()=>i(window.innerWidth<e);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[e]),t},be=()=>{const e=t.useDispatch();return{show:t=>{e(Oe(t))},hide:()=>{e(me())}}},ge=()=>{const e=be(),i=t.useSelector((e=>e.AppInfo.value.apiBaseUrl)),o=u.create({baseURL:i,timeout:6e5,withCredentials:!0});o.defaults.withCredentials=!0,o.interceptors.response.use((e=>e),(e=>(e&&(e.response&&(e.response.status&&401===e.response.status))?A.toast.error("your session is now expired, you need to login again",{autoClose:!1}):e&&(e.response&&(e.response.status&&403===e.response.status))?A.toast.error("you aren't authorized to process this request"):e&&(e.response&&(e.response.status&&500===e.response.status))?A.toast.error(e.response.data):A.toast.error("failed to communicate with the server ... try again later"),"ERROR")));return{handleGetRequest:async(t={endPointURI:"",parameters:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);const i=await o.get(t.endPointURI,{params:{...t.parameters},withCredentials:!0});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==i?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(i),i):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(i),"ERROR")},handlePostRequest:async(t={endPointURI:"",parameters:{},data:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);let i=await o.post(t.endPointURI,t.data,{params:t.parameters});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==i?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(i),i):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(i),"ERROR")},handleDeleteRequest:async(t={endPointURI:"",parameters:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);let i=await o.delete(t.endPointURI,{params:{...t.parameters}});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==i?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(i),i):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(i),"ERROR")},HandleDownloadHTTPPostPDF:async(t={endPointURI:"",parameters:{},data:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);const i=await o.post(t.endPointURI,t.data,{responseType:"blob"});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==i?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(i),i):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(i),"ERROR")}}};var xe={"System Administration":"إدارة النظام",welcome:"مرحبا",APP_SETTINGS_LABEL:"الاعدادت",WELCOME_MESSAGE:"اهلا , هذا التطبيق تحت التطوير و هو مصمم للتطبيقات المستقبلية",APP_FOOTER:"حقوق الملكية<sup>©</sup> 2023-2026. جميع الحقوق محفوظة.",TREE_HOME_NODE:"الصفحة الرئيسية",TREE_ADMINISTRATION_NODE:"ادارة النظام",COMMING_SOON_LABEL:"قريبا",TRIAL_LABEL:"تجريبي",GRID_ACTION_LABEL:"الاوامر",SAVE_BTN_LABEL:"حفظ",SEARCH_BTN_LABEL:"بحث",RESET_BTN_LABEL:"ازالة البحث",CANCEL_BTN_LABEL:"الغاء",DELETE_BTN_LABEL:"حذف",EDIT_BTN_LABEL:"تعديل",ADD_BTN_LABEL:"اضافة",RESET_GRID_STATE:"مسح حالة الجدول",EXPORT_EXECL_LABEL:"تحميل Execl",CHANGE_ORG_LABEL:"تغير المنظومة",ORG_LABEL:"المنظومة",VERSION:"رقم الاصدار",COPY_RIGHTS:"جميع الحقوق محفوظة © 2024-2030",SUCCESS_MESSAGE:"تم تنفيذ طلبك بنجاح",REQUIRED_FIELD:"هذه الخانة مطلوبة",ACTIONS:"الاوامر",CONFIRMATION:"تأكيد",DELETION_CONFIRMATION_MESSAGE:"هل انت متأكد من حذف هذا البيان؟",ACTION_CONFIRMATION:"هل انت متأكد من تنفيذ هذه العملية؟",YES_LABEL:"نعم",NO_LABEL:"لا",AT_LEAST_ONE_RECORD_SELECTED_MESSAGE:"يجب ان تختار علي الاقل بند واحد لتنقيذ هذه العملية"};var ve={welcome:"welcome",APP_SETTINGS_LABEL:"Settings",WELCOME_MESSAGE:" Hello, This is an under development template for future apps",APP_FOOTER:"Copyright<sup>©</sup> 2023-2026. All rights reserved.",TREE_HOME_NODE:"Home",TREE_ADMINISTRATION_NODE:"Administration",COMMING_SOON_LABEL:"soon",GRID_ACTION_LABEL:"Actions",TRIAL_LABEL:"trial",SAVE_BTN_LABEL:"Save",SEARCH_BTN_LABEL:"search",RESET_BTN_LABEL:"Reset",CANCEL_BTN_LABEL:"Cancel",DELETE_BTN_LABEL:"Delete",EDIT_BTN_LABEL:"Edit",ADD_BTN_LABEL:"Add",RESET_GRID_STATE:"Clear Grid State",EXPORT_EXECL_LABEL:"Export to excel",CHANGE_ORG_LABEL:"Change Organization",ORG_LABEL:"Organization",VERSION:"V.",COPY_RIGHTS:"Copyright © 2024-2030. All rights reserved.",SUCCESS_MESSAGE:"Your request has been processed successfully",REQUIRED_FIELD:"This field is required",ACTIONS:"Actions",CONFIRMATION:"Confirmation",DELETION_CONFIRMATION_MESSAGE:"Are you sure you want to delete this record ?",ACTION_CONFIRMATION:"Are you sure you want to process this action ?",YES_LABEL:"Yes",NO_LABEL:"No",AT_LEAST_ONE_RECORD_SELECTED_MESSAGE:"You must at least select on record to process this action on"};const Be={en:{translation:{...ve,...{SYSTEM_ADMINISTRATION:"System Administration",SYSTEM_MANAGEMENT:"System Management",SECURITY_ADMINISTRATION:"Security",DEVELOPMENT_TOOLS:"Development Tools",SYSTEM_MONITORING:"System Follow up",ATTACHMENT_SINGULAR:"attachment",ATTACHMENT_PLURAL:"attachments",ATTACHMENT_ATTACHMENT_NUMBER:"Attachment number",ATTACHMENT_ATTACHMENT_SIZE:"Attachment size",ATTACHMENT_ATTACHMENT_TYPE:"Attachment type",ATTACHMENT_CATEGORY:"Category",ATTACHMENT_DOC_TYPE:"Doc type",ATTACHMENT_FILE_NAME:"File name",ATTACHMENT_REF_KEY:"Ref key",ATTACHMENT_REMARK:"Remark",AUTHORITY_SINGULAR:"Authority",AUTHORITY_PLURAL:"Authorities",AUTHORITY_AUTHORITY_CODE:"Authority code",AUTHORITY_AUTHORITY_DESCRIPTION:"Authority description",AUTHORITY_AUTHORITY_NAME:"Authority name",AUTHORITY_IS_ACTIVE:"Is active",AUTHORITY_ORGANIZATION_APPLICATION_ID:"Organization application id",BLUE_PRINT_SINGULAR:"BluePrint",BLUE_PRINT_PLURAL:"BluePrints",BLUE_PRINT_BLUE_PRINT_CODE:"Blue print code",BLUE_PRINT_QUERY_ID:"Query id",BLUE_PRINT_PAGE_SINGULAR:"blueprintpage",BLUE_PRINT_PAGE_PLURAL:"blueprintpages",BLUE_PRINT_PAGE_BLUE_PRINT_ID:"Blue print id",BLUE_PRINT_PAGE_ENABLED:"Enabled",BLUE_PRINT_PAGE_PAGE_NAME:"Page name",BLUE_PRINT_PAGE_PAGE_ORDER:"Page order",BLUE_PRINT_PAGE_QUERY_ID:"Query id",BLUE_PRINT_POINT_SINGULAR:"blueprintpoint",BLUE_PRINT_POINT_PLURAL:"blueprintpoints",BLUE_PRINT_POINT_BLUE_PRINT_PAGE_ID:"Blue print page id",BLUE_PRINT_POINT_FONT_SIZE:"Font size",BLUE_PRINT_POINT_POINT_CODE:"Point code",BLUE_PRINT_POINT_X:"X",BLUE_PRINT_POINT_Y:"Y",DASHBOARD_SINGULAR:"Dashboard",DASHBOARD_PLURAL:"Dashboards",DASHBOARD_DASHBOARD_CODE:"Dashboard code",DASHBOARD_DASHBOARD_NAME:"Dashboard name",DASHBOARD_DASHBOARD_TITLE:"Dashboard title",DASHBOARD_ENABLED:"Enabled",DASHBOARD_LOAD_WIDGETS_INDIVIDUALLY:"Load widgets individually",DASHBOARD_NUMBER_OF_COLUMNS:"Number of columns",DASHBOARD_WIDGET_SINGULAR:"Widget",DASHBOARD_WIDGET_PLURAL:"Widgets",DASHBOARD_WIDGET_DASHBOARD_ID:"Dashboard id",DASHBOARD_WIDGET_ENABLED:"Enabled",DASHBOARD_WIDGET_WIDGET_ID:"Widget id",DASHBOARD_WIDGET_WIDGET_ORDER:"Widget order",DATA_QUERY_SINGULAR:"Data Query",DATA_QUERY_PLURAL:"Data Queries",DATA_QUERY_DATASOURCE_CON_ID:"Datasource con id",DATA_QUERY_QUERY_NAME:"Query name",DATA_QUERY_QUERY_STR:"Query str",DATA_QUERY_USE_SYS_CON:"Use sys con",DATA_QUERY_PARAMETER_SINGULAR:"dataqueryparameter",DATA_QUERY_PARAMETER_PLURAL:"dataqueryparameters",DATA_QUERY_PARAMETER_DATA_QUERY_ID:"Data query id",DATA_QUERY_PARAMETER_DEFAULT_VALUE:"Default value",DATA_QUERY_PARAMETER_ENABLED:"Enabled",DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",DATA_QUERY_PARAMETER_HIDDEN:"Hidden",DATA_QUERY_PARAMETER_MANDATORY:"Mandatory",DATASOURCE_CONNECTION_SINGULAR:"Datasource",DATASOURCE_CONNECTION_PLURAL:"Datasources",DATASOURCE_CONNECTION_CONNECTION_NAME:"Connection name",DATASOURCE_CONNECTION_DATASOURCE_PASSWORD:"Datasource password",DATASOURCE_CONNECTION_DATASOURCE_TYPE:"Datasource type",DATASOURCE_CONNECTION_DATASOURCE_URL:"Datasource url",DATASOURCE_CONNECTION_DATASOURCE_USERNAME:"Datasource username",DATASOURCE_CONNECTION_ENABLED:"Enabled",EMPLOYEE_SINGULAR:"Employee",EMPLOYEE_PLURAL:"Employees",EMPLOYEE_EMAIL:"Email",EMPLOYEE_EMPLOYEE_NAME:"Employee name",EMPLOYEE_EMPLOYEE_NUMBER:"Employee number",EMPLOYEE_MOBILE_NUMBER:"Mobile number",EMPLOYEE_ORGANIZATION_RANK_ID:"Organization rank id",EMPLOYEE_ORGANIZATION_UNIT_ID:"Organization unit id",EMPLOYEE_USER_ACCOUNT_ID:"User account id",ENTITY_PARAMETER_SINGULAR:"Parameter",ENTITY_PARAMETER_PLURAL:"Parameters",ENTITY_PARAMETER_ENABLED:"Enabled",ENTITY_PARAMETER_PARAMETER_CODE:"Parameter code",ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID:"Parameter data query id",ENTITY_PARAMETER_PARAMETER_DATASET:"Parameter dataset",ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD:"Parameter display field",ENTITY_PARAMETER_PARAMETER_LABEL:"Parameter label",ENTITY_PARAMETER_PARAMETER_TYPE:"Parameter type",ENTITY_PARAMETER_PARAMETER_VALUE_FIELD:"Parameter value field",ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT:"Parameter value format",EXCEL_UPLOADER_DETAIL_SINGULAR:"exceluploaderdetail",EXCEL_UPLOADER_DETAIL_PLURAL:"exceluploaderdetails",EXCEL_UPLOADER_DETAIL_COLUMN_INDEX:"Column index",EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID:"Excel uploader header id",EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID:"Lookup query id",EXCEL_UPLOADER_DETAIL_TABLE_FIELD:"Table field",EXCEL_UPLOADER_HEADER_SINGULAR:"Excel Uploader",EXCEL_UPLOADER_HEADER_PLURAL:"Excel Uploader",EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID:"Uploader connection id",EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME:"Uploader database name",EXCEL_UPLOADER_HEADER_UPLOADER_NAME:"Uploader name",EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME:"Uploader table name",LOOKUP_SINGULAR:"System Lookup",LOOKUP_PLURAL:"System Lookups",LOOKUP_ENABLED:"Enabled",LOOKUP_LOOKUP_AR_DISPLAY:"Lookup ar display",LOOKUP_LOOKUP_EN_DISPLAY:"Lookup en display",LOOKUP_LOOKUP_TYPE:"Lookup type",LOOKUP_LOOKUP_VALUE:"Lookup value",LOOKUP_ORG_CODE:"Org code",MAIL_ATTACHMENT_SINGULAR:"mailattachment",MAIL_ATTACHMENT_PLURAL:"mailattachments",MAIL_ATTACHMENT_ENABLED:"Enabled",MAIL_ATTACHMENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_ATTACHMENT_REPORT_ID:"Report id",MAIL_BODY_SINGULAR:"mailbody",MAIL_BODY_PLURAL:"mailbodies",MAIL_BODY_BODY_CONTENT:"Body content",MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID:"Body content data query id",MAIL_BODY_BODY_ORDER:"Body order",MAIL_BODY_ENABLED:"Enabled",MAIL_BODY_IS_MAIN:"Is main",MAIL_BODY_MAIL_TEMPLATE_ID:"Mail template id",MAIL_BODY_PRINT_FOR_EACH_RECORD:"Print for each record",MAIL_NOTIFICATION_QUEUE_SINGULAR:"Mail Notification Queue",MAIL_NOTIFICATION_QUEUE_PLURAL:"Mail Notification Queue",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID:"Custom mail attached report id",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY:"Custom mail body",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT:"Custom mail subject",MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS:"Custom recipients",MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS:"Mail parameters",MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID:"Mail template id",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE:"Notification message",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME:"Notification time",MAIL_RECIPIENT_SINGULAR:"mailrecipient",MAIL_RECIPIENT_PLURAL:"mailrecipients",MAIL_RECIPIENT_ENABLED:"Enabled",MAIL_RECIPIENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_RECIPIENT_RECIPIENT_MAIL:"Recipient mail",MAIL_RECIPIENT_RECIPIENT_TYPE:"Recipient type",MAIL_TEMPLATE_SINGULAR:"Mail Templates",MAIL_TEMPLATE_PLURAL:"Mail Templates",MAIL_TEMPLATE_ENABLED:"Enabled",MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID:"Mail cc data query id",MAIL_TEMPLATE_MAIL_SUBJECT:"Mail subject",MAIL_TEMPLATE_MAIL_TEMPLATE_CODE:"Mail template code",MAIL_TEMPLATE_MAIL_TEMPLATE_NAME:"Mail template name",MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID:"Mail to data query id",MAIL_TEMPLATE_PERIOD_TYPE:"Period type",MAIL_TEMPLATE_PERIOD_VALUE:"Period value",MAIL_TEMPLATE_PERIODICAL:"Periodical",MAIL_TEMPLATE_START_SENDING_AT:"Start sending at",MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID:"Subject data query id",NEW_TABLE_SINGULAR:"newtable",NEW_TABLE_PLURAL:"newtables",NEW_TABLE_TEST_DATE:"Test date",NEW_TABLE_TEST_LONG:"Test long",NEW_TABLE_TEST_DECIMAL:"Test decimal",NOTIFICATION_SINGULAR:"Notification",NOTIFICATION_PLURAL:"Notifications",NOTIFICATION_ENABLED:"Enabled",NOTIFICATION_NOTIFICATION_ACTION_KEY:"Notification action key",NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD:"Notification action payload",NOTIFICATION_NOTIFICATION_CODE:"Notification code",NOTIFICATION_NOTIFICATION_ICON:"Notification icon",NOTIFICATION_NOTIFICATION_QUERY_ID:"Notification query id",NOTIFICATION_NOTIFICATION_TEXT:"Notification text",NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID:"Users to notify query id",NOTIFICATION_QUEUE_SINGULAR:"Notification Queue",NOTIFICATION_QUEUE_PLURAL:"Notification Queue",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY:"Custom notification action key",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD:"Custom notification action payload",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON:"Custom notification icon",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT:"Custom notification text",NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",NOTIFICATION_QUEUE_NOTIFICATION_CODE:"Notification code",NOTIFICATION_QUEUE_NOTIFICATION_PARAMS:"Notification params",NOTIFICATION_QUEUE_NOTIFIED_TIME:"Notified time",NOTIFICATION_QUEUE_USERNAME:"Username",ORGANIZATION_SINGULAR:"Organization",ORGANIZATION_PLURAL:"Organizations",ORGANIZATION_ORGANIZATION_CODE:"Organization code",ORGANIZATION_IS_ACTIVE:"Is active",ORGANIZATION_ORGANIZATION_NAME:"Organization name",ORGANIZATION_APPLICATION_SINGULAR:"Module",ORGANIZATION_APPLICATION_PLURAL:"Modules",ORGANIZATION_APPLICATION_APPLICATION_CODE:"Application code",ORGANIZATION_APPLICATION_APPLICATION_DESCRIPTION:"Application description",ORGANIZATION_APPLICATION_APPLICATION_NAME:"Application name",ORGANIZATION_APPLICATION_IS_ACTIVE:"Is active",ORGANIZATION_RANK_SINGULAR:"organizationrank",ORGANIZATION_RANK_PLURAL:"organizationranks",ORGANIZATION_RANK_ENABLED:"Enabled",ORGANIZATION_RANK_ORGANIZATION_CODE:"Organization code",ORGANIZATION_RANK_RANK_CODE:"Rank code",ORGANIZATION_RANK_RANK_NAME:"Rank name",ORGANIZATION_RANK_RANK_ORDER:"Rank order",ORGANIZATION_UNIT_SINGULAR:"organizationunit",ORGANIZATION_UNIT_PLURAL:"organizationunits",ORGANIZATION_UNIT_ENABLED:"Enabled",ORGANIZATION_UNIT_ORGANIZATION_CODE:"Organization code",ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME:"Organization unit ar name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME:"Organization unit en name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID:"Organization unit parent id",ORGANIZATION_USER_SINGULAR:"organizationuser",ORGANIZATION_USER_PLURAL:"organizationusers",ORGANIZATION_USER_IS_ACTIVE:"Is active",ORGANIZATION_USER_IS_DEFAULT:"Is default",ORGANIZATION_USER_ORGANIZATION_CODE:"Organization code",ORGANIZATION_USER_USERNAME:"Username",ORGANIZATION_USER_ROLE_SINGULAR:"Role",ORGANIZATION_USER_ROLE_PLURAL:"Roles",ORGANIZATION_USER_ROLE_END_DATE:"End date",ORGANIZATION_USER_ROLE_IS_ACTIVE:"Is active",ORGANIZATION_USER_ROLE_ORGANIZATION_CODE:"Organization code",ORGANIZATION_USER_ROLE_ROLE_ID:"Role id",ORGANIZATION_USER_ROLE_START_DATE:"Start date",ORGANIZATION_USER_ROLE_USERNAME:"Username",REPORT_SINGULAR:"System Report",REPORT_PLURAL:"System Reports",REPORT_DATASOURCE_CON_ID:"Datasource con id",REPORT_REPORT_BLUE_PRINT_ID:"Report blue print id",REPORT_REPORT_CATEGORY:"Report category",REPORT_REPORT_CODE:"Report code",REPORT_REPORT_EXCEL_DATA_QUERY_ID:"Report excel data query id",REPORT_REPORT_EXPORT_NAME:"Report export name",REPORT_REPORT_JASPER_NAME:"Report jasper name",REPORT_REPORT_JASPER_PATH:"Report jasper path",REPORT_REPORT_MENU_CODE:"Report menu code",REPORT_REPORT_NAME:"Report name",REPORT_REPORT_TYPE:"Report type",REPORT_USE_SYS_DATASOURCE:"Use sys datasource",REPORT_PARAMETER_SINGULAR:"reportparameter",REPORT_PARAMETER_PLURAL:"reportparameters",REPORT_PARAMETER_DEFAULT_VALUE:"Default value",REPORT_PARAMETER_ENABLED:"Enabled",REPORT_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",REPORT_PARAMETER_HIDDEN:"Hidden",REPORT_PARAMETER_MANDATORY:"Mandatory",REPORT_PARAMETER_REPORT_ID:"Report id",ROLE_SINGULAR:"role",ROLE_PLURAL:"roles",ROLE_DESCRIPTION:"Description",ROLE_IS_ACTIVE:"Is active",ROLE_ORGANIZATION_APPLICATION_ID:"Organization application id",ROLE_ROLE_NAME:"Role name",ROLE_AUTHORITY_SINGULAR:"roleauthority",ROLE_AUTHORITY_PLURAL:"roleauthorities",ROLE_AUTHORITY_AUTHORITY_ID:"Authority id",ROLE_AUTHORITY_IS_ACTIVE:"Is active",ROLE_AUTHORITY_ROLE_ID:"Role id",USER_ACCOUNT_SINGULAR:"useraccount",USER_ACCOUNT_PLURAL:"useraccounts",USER_ACCOUNT_ENABLED:"Enabled",USER_ACCOUNT_PASSWORD:"Password",USER_ACCOUNT_USERNAME:"Username",USER_REQUEST_SINGULAR:"userrequest",USER_REQUEST_PLURAL:"userrequests",USER_REQUEST_IS_NOTIFIED:"Is notified",USER_REQUEST_MAILS_TO_NOTIFY:"Mails to notify",USER_REQUEST_NOTIFICATION_MESSAGE:"Notification message",USER_REQUEST_NOTIFICATION_TIME:"Notification time",USER_REQUEST_NOTIFICATION_TYPE:"Notification type",USER_REQUEST_NOTIFY_USER:"Notify user",USER_REQUEST_REPORT_CODE:"Report code",USER_REQUEST_REPORT_PARAMETERS:"Report parameters",USER_REQUEST_REQUEST_TYPE:"Request type",USER_REQUEST_STATUS:"Status",USER_REQUEST_STATUS_MESSAGE:"Status message",WIDGET_SINGULAR:"widget",WIDGET_PLURAL:"widgets",WIDGET_DATA_QUERY_ID:"Data query id",WIDGET_ENABLED:"Enabled",WIDGET_HEIGHT:"Height",WIDGET_HORIZONTAL_AXIS_FIELD:"Horizontal axis field",WIDGET_HORIZONTAL_AXIS_LABEL:"Horizontal axis label",WIDGET_ICON:"Icon",WIDGET_SERIES_KEYS:"Series keys",WIDGET_TITLE:"Title",WIDGET_VERTICAL_AXIS_FIELD:"Vertical axis field",WIDGET_VERTICAL_AXIS_LABEL:"Vertical axis label",WIDGET_WIDGET_DESCRIPTION:"Widget description",WIDGET_WIDGET_NAME:"Widget name",WIDGET_WIDGET_TYPE:"Widget type",WIDGET_WIDTH:"Width",WORKFLOW_DOCUMENT_SINGULAR:"Workflow",WORKFLOW_DOCUMENT_PLURAL:"Workflows",WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON:"App notification icon",WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE:"App notification style",WORKFLOW_DOCUMENT_APP_VIEW_ROUTE:"App view route",WORKFLOW_DOCUMENT_DOCUMENT_CODE:"Document code",WORKFLOW_DOCUMENT_DOCUMENT_CON_ID:"Document con id",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME:"Document database name",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE:"Document database table",WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD:"Document id field",WORKFLOW_DOCUMENT_DOCUMENT_NAME:"Document name",WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD:"Document number field",WORKFLOW_DOCUMENT_DOCUMENT_REPORT_ID:"Document report id",WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD:"Document status field",WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED:"Mail approval allowed",WORKFLOW_DOCUMENT_ORG_CODE:"Org code",WORKFLOW_DOCUMENT_USE_SYSTEM_CON:"Use system con",WORKFLOW_DOCUMENT_ACTION_SINGULAR:"workflowdocumentaction",WORKFLOW_DOCUMENT_ACTION_PLURAL:"workflowdocumentactions",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE:"Document action code",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_NAME:"Document action name",WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID:"Next document status id",WORKFLOW_DOCUMENT_ACTION_POST_ACTION_ENDPOINT:"Post action endpoint",WORKFLOW_DOCUMENT_ACTION_PRE_ACTION_ENDPOINT:"Pre action endpoint",WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT:"Require comment",WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_HISTORY_SINGULAR:"workflowdocumentactionhistory",WORKFLOW_DOCUMENT_ACTION_HISTORY_PLURAL:"workflowdocumentactionhistories",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_BY:"Action by",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_COMMENT:"Action comment",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_METHOD:"Action method",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_TIME:"Action time",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_REF_ID:"Document ref id",WORKFLOW_DOCUMENT_ACTION_HISTORY_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_MAIL_SINGULAR:"workflowdocumentactionmail",WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL:"workflowdocumentactionmails",WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED:"Enabled",WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID:"Mail template id",WORKFLOW_DOCUMENT_MAIL_LOG_SINGULAR:"Workflow Mail Log",WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL:"Workflow Mail Logs",WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID:"Graph api msg id",WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED:"Is processed",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE:"Mail action code",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT:"Mail body content",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM:"Mail from",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT:"Mail subject",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE:"Process message",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME:"Process time",WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID:"Ref doc id",WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_STATUS_SINGULAR:"workflowdocumentstatus",WORKFLOW_DOCUMENT_STATUS_PLURAL:"workflowdocumentstatuses",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE:"Document status code",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_NAME:"Document status name",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER:"Document status order",WORKFLOW_DOCUMENT_STATUS_ENABLED:"Enabled",WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE:"Is zero state",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTION_TAKERS_QUERY_ID:"Next action takers query id",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTIONS_QUERY_ID:"Next actions query id",WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID:"Workflow document id"}}},ar:{translation:{...xe,...{SYSTEM_ADMINISTRATION:"أدراة النظام",SECURITY_ADMINISTRATION:"حماية النظام",SYSTEM_MANAGEMENT:"System Management",DEVELOPMENT_TOOLS:"إدوات التطوير",SYSTEM_MONITORING:"متابعة النظام",ATTACHMENT_SINGULAR:"المرفق",ATTACHMENT_PLURAL:"المرفقات",ATTACHMENT_ATTACHMENT_NUMBER:"رقم المرفق",ATTACHMENT_ATTACHMENT_SIZE:"حجم المرفق",ATTACHMENT_ATTACHMENT_TYPE:"نوع المرفق",ATTACHMENT_CATEGORY:"المحموعة",ATTACHMENT_DOC_TYPE:"نوع الملف",ATTACHMENT_FILE_NAME:"اسم الملف",ATTACHMENT_REF_KEY:"مؤشر المسلسل",ATTACHMENT_REMARK:"ملاحظات",AUTHORITY_SINGULAR:"الصلاحية",AUTHORITY_PLURAL:"الصلاحيات",AUTHORITY_AUTHORITY_CODE:"كود الصلاحية",AUTHORITY_AUTHORITY_DESCRIPTION:"وصف الصلاحية",AUTHORITY_AUTHORITY_NAME:"اسم الصلاحية",AUTHORITY_IS_ACTIVE:"مفعل",AUTHORITY_ORGANIZATION_APPLICATION_ID:"اسم التطبيق",BLUE_PRINT_SINGULAR:"BluePrint",BLUE_PRINT_PLURAL:"BluePrints",BLUE_PRINT_BLUE_PRINT_CODE:"Blue print code",BLUE_PRINT_QUERY_ID:"Query id",BLUE_PRINT_PAGE_SINGULAR:"blueprintpage",BLUE_PRINT_PAGE_PLURAL:"blueprintpages",BLUE_PRINT_PAGE_BLUE_PRINT_ID:"Blue print id",BLUE_PRINT_PAGE_ENABLED:"Enabled",BLUE_PRINT_PAGE_PAGE_NAME:"Page name",BLUE_PRINT_PAGE_PAGE_ORDER:"Page order",BLUE_PRINT_PAGE_QUERY_ID:"Query id",BLUE_PRINT_POINT_SINGULAR:"blueprintpoint",BLUE_PRINT_POINT_PLURAL:"blueprintpoints",BLUE_PRINT_POINT_BLUE_PRINT_PAGE_ID:"Blue print page id",BLUE_PRINT_POINT_FONT_SIZE:"Font size",BLUE_PRINT_POINT_POINT_CODE:"Point code",BLUE_PRINT_POINT_X:"X",BLUE_PRINT_POINT_Y:"Y",DASHBOARD_SINGULAR:"Dashboard",DASHBOARD_PLURAL:"Dashboards",DASHBOARD_DASHBOARD_CODE:"Dashboard code",DASHBOARD_DASHBOARD_NAME:"Dashboard name",DASHBOARD_DASHBOARD_TITLE:"Dashboard title",DASHBOARD_ENABLED:"Enabled",DASHBOARD_LOAD_WIDGETS_INDIVIDUALLY:"Load widgets individually",DASHBOARD_NUMBER_OF_COLUMNS:"Number of columns",DASHBOARD_WIDGET_SINGULAR:"Widget",DASHBOARD_WIDGET_PLURAL:"Widgets",DASHBOARD_WIDGET_DASHBOARD_ID:"Dashboard id",DASHBOARD_WIDGET_ENABLED:"Enabled",DASHBOARD_WIDGET_WIDGET_ID:"Widget id",DASHBOARD_WIDGET_WIDGET_ORDER:"Widget order",DATA_QUERY_SINGULAR:"Data Query",DATA_QUERY_PLURAL:"Data Queries",DATA_QUERY_DATASOURCE_CON_ID:"Datasource",DATA_QUERY_QUERY_NAME:"Query name",DATA_QUERY_QUERY_STR:"Query str",DATA_QUERY_USE_SYS_CON:"Use sys con",DATA_QUERY_PARAMETER_SINGULAR:"Parameter",DATA_QUERY_PARAMETER_PLURAL:"Parameters",DATA_QUERY_PARAMETER_DATA_QUERY_ID:"Data query id",DATA_QUERY_PARAMETER_DEFAULT_VALUE:"Default value",DATA_QUERY_PARAMETER_ENABLED:"مفعل",DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID:"Parameter",DATA_QUERY_PARAMETER_HIDDEN:"غير مرئي",DATA_QUERY_PARAMETER_MANDATORY:"اجباري",DATASOURCE_CONNECTION_SINGULAR:"Datasource",DATASOURCE_CONNECTION_PLURAL:"Datasources",DATASOURCE_CONNECTION_CONNECTION_NAME:"Connection name",DATASOURCE_CONNECTION_DATASOURCE_PASSWORD:"Datasource password",DATASOURCE_CONNECTION_DATASOURCE_TYPE:"Datasource type",DATASOURCE_CONNECTION_DATASOURCE_URL:"Datasource url",DATASOURCE_CONNECTION_DATASOURCE_USERNAME:"Datasource username",DATASOURCE_CONNECTION_ENABLED:"Enabled",EMPLOYEE_SINGULAR:"الموظف",EMPLOYEE_PLURAL:"الموظفين",EMPLOYEE_EMAIL:"الايميل",EMPLOYEE_EMPLOYEE_NAME:"اسم الموظف",EMPLOYEE_EMPLOYEE_NUMBER:"الرقم الوظيفي",EMPLOYEE_MOBILE_NUMBER:"رقم الموبايل",EMPLOYEE_ORGANIZATION_RANK_ID:"Organization rank",EMPLOYEE_ORGANIZATION_UNIT_ID:"Organization unit",EMPLOYEE_USER_ACCOUNT_ID:"User account id",ENTITY_PARAMETER_SINGULAR:"Parameter",ENTITY_PARAMETER_PLURAL:"Parameters",ENTITY_PARAMETER_ENABLED:"Enabled",ENTITY_PARAMETER_PARAMETER_CODE:"Parameter code",ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID:"Parameter data query id",ENTITY_PARAMETER_PARAMETER_DATASET:"Parameter dataset",ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD:"Parameter display field",ENTITY_PARAMETER_PARAMETER_LABEL:"Parameter label",ENTITY_PARAMETER_PARAMETER_TYPE:"Parameter type",ENTITY_PARAMETER_PARAMETER_VALUE_FIELD:"Parameter value field",ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT:"Parameter value format",EXCEL_UPLOADER_DETAIL_SINGULAR:"exceluploaderdetail",EXCEL_UPLOADER_DETAIL_PLURAL:"exceluploaderdetails",EXCEL_UPLOADER_DETAIL_COLUMN_INDEX:"Column index",EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID:"Excel uploader header id",EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID:"Lookup query id",EXCEL_UPLOADER_DETAIL_TABLE_FIELD:"Table field",EXCEL_UPLOADER_HEADER_SINGULAR:"Excel Uploader",EXCEL_UPLOADER_HEADER_PLURAL:"Excel Uploader",EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID:"Uploader connection id",EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME:"Uploader database name",EXCEL_UPLOADER_HEADER_UPLOADER_NAME:"Uploader name",EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME:"Uploader table name",LOOKUP_SINGULAR:"قائمة النظام",LOOKUP_PLURAL:"قوائم النظام",LOOKUP_ENABLED:"Enabled",LOOKUP_LOOKUP_AR_DISPLAY:"Lookup ar display",LOOKUP_LOOKUP_EN_DISPLAY:"Lookup en display",LOOKUP_LOOKUP_TYPE:"Lookup type",LOOKUP_LOOKUP_VALUE:"Lookup value",LOOKUP_ORG_CODE:"Org code",MAIL_ATTACHMENT_SINGULAR:"mailattachment",MAIL_ATTACHMENT_PLURAL:"mailattachments",MAIL_ATTACHMENT_ENABLED:"Enabled",MAIL_ATTACHMENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_ATTACHMENT_REPORT_ID:"Report id",MAIL_BODY_SINGULAR:"mailbody",MAIL_BODY_PLURAL:"mailbodies",MAIL_BODY_BODY_CONTENT:"Body content",MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID:"Body content data query id",MAIL_BODY_BODY_ORDER:"Body order",MAIL_BODY_ENABLED:"Enabled",MAIL_BODY_IS_MAIN:"Is main",MAIL_BODY_MAIL_TEMPLATE_ID:"Mail template id",MAIL_BODY_PRINT_FOR_EACH_RECORD:"Print for each record",MAIL_NOTIFICATION_QUEUE_SINGULAR:"Mail Notification Queue",MAIL_NOTIFICATION_QUEUE_PLURAL:"Mail Notification Queue",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID:"Custom mail attached report id",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY:"Custom mail body",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT:"Custom mail subject",MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS:"Custom recipients",MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS:"Mail parameters",MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID:"Mail template id",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE:"Notification message",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME:"Notification time",MAIL_RECIPIENT_SINGULAR:"mailrecipient",MAIL_RECIPIENT_PLURAL:"mailrecipients",MAIL_RECIPIENT_ENABLED:"Enabled",MAIL_RECIPIENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_RECIPIENT_RECIPIENT_MAIL:"Recipient mail",MAIL_RECIPIENT_RECIPIENT_TYPE:"Recipient type",MAIL_TEMPLATE_SINGULAR:"Mail Templates",MAIL_TEMPLATE_PLURAL:"Mail Templates",MAIL_TEMPLATE_ENABLED:"Enabled",MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID:"Mail cc data query id",MAIL_TEMPLATE_MAIL_SUBJECT:"Mail subject",MAIL_TEMPLATE_MAIL_TEMPLATE_CODE:"Mail template code",MAIL_TEMPLATE_MAIL_TEMPLATE_NAME:"Mail template name",MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID:"Mail to data query id",MAIL_TEMPLATE_PERIOD_TYPE:"Period type",MAIL_TEMPLATE_PERIOD_VALUE:"Period value",MAIL_TEMPLATE_PERIODICAL:"Periodical",MAIL_TEMPLATE_START_SENDING_AT:"Start sending at",MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID:"Subject data query id",NEW_TABLE_SINGULAR:"newtable",NEW_TABLE_PLURAL:"newtables",NEW_TABLE_TEST_DATE:"Test date",NEW_TABLE_TEST_LONG:"Test long",NEW_TABLE_TEST_DECIMAL:"Test decimal",NOTIFICATION_SINGULAR:"Notification",NOTIFICATION_PLURAL:"Notifications",NOTIFICATION_ENABLED:"Enabled",NOTIFICATION_NOTIFICATION_ACTION_KEY:"Notification action key",NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD:"Notification action payload",NOTIFICATION_NOTIFICATION_CODE:"Notification code",NOTIFICATION_NOTIFICATION_ICON:"Notification icon",NOTIFICATION_NOTIFICATION_QUERY_ID:"Notification query id",NOTIFICATION_NOTIFICATION_TEXT:"Notification text",NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID:"Users to notify query id",NOTIFICATION_QUEUE_SINGULAR:"Notification Queue",NOTIFICATION_QUEUE_PLURAL:"Notification Queue",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY:"Custom notification action key",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD:"Custom notification action payload",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON:"Custom notification icon",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT:"Custom notification text",NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",NOTIFICATION_QUEUE_NOTIFICATION_CODE:"Notification code",NOTIFICATION_QUEUE_NOTIFICATION_PARAMS:"Notification params",NOTIFICATION_QUEUE_NOTIFIED_TIME:"Notified time",NOTIFICATION_QUEUE_USERNAME:"Username",ORGANIZATION_SINGULAR:"Organization",ORGANIZATION_PLURAL:"Organizations",ORGANIZATION_ORGANIZATION_CODE:"Organization code",ORGANIZATION_IS_ACTIVE:"Is active",ORGANIZATION_ORGANIZATION_NAME:"Organization name",ORGANIZATION_APPLICATION_SINGULAR:"Module",ORGANIZATION_APPLICATION_PLURAL:"Modules",ORGANIZATION_APPLICATION_APPLICATION_CODE:"Application code",ORGANIZATION_APPLICATION_APPLICATION_DESCRIPTION:"Application description",ORGANIZATION_APPLICATION_APPLICATION_NAME:"Application name",ORGANIZATION_APPLICATION_IS_ACTIVE:"Is active",ORGANIZATION_RANK_SINGULAR:"organizationrank",ORGANIZATION_RANK_PLURAL:"organizationranks",ORGANIZATION_RANK_ENABLED:"Enabled",ORGANIZATION_RANK_ORGANIZATION_CODE:"Organization code",ORGANIZATION_RANK_RANK_CODE:"Rank code",ORGANIZATION_RANK_RANK_NAME:"Rank name",ORGANIZATION_RANK_RANK_ORDER:"Rank order",ORGANIZATION_UNIT_SINGULAR:"organizationunit",ORGANIZATION_UNIT_PLURAL:"organizationunits",ORGANIZATION_UNIT_ENABLED:"Enabled",ORGANIZATION_UNIT_ORGANIZATION_CODE:"Organization code",ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME:"Organization unit ar name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME:"Organization unit en name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID:"Organization unit parent id",ORGANIZATION_USER_SINGULAR:"organizationuser",ORGANIZATION_USER_PLURAL:"organizationusers",ORGANIZATION_USER_IS_ACTIVE:"Is active",ORGANIZATION_USER_IS_DEFAULT:"Is default",ORGANIZATION_USER_ORGANIZATION_CODE:"Organization code",ORGANIZATION_USER_USERNAME:"Username",ORGANIZATION_USER_ROLE_SINGULAR:"Role",ORGANIZATION_USER_ROLE_PLURAL:"Roles",ORGANIZATION_USER_ROLE_END_DATE:"End date",ORGANIZATION_USER_ROLE_IS_ACTIVE:"Is active",ORGANIZATION_USER_ROLE_ORGANIZATION_CODE:"Organization code",ORGANIZATION_USER_ROLE_ROLE_ID:"Role id",ORGANIZATION_USER_ROLE_START_DATE:"Start date",ORGANIZATION_USER_ROLE_USERNAME:"Username",REPORT_SINGULAR:"System Report",REPORT_PLURAL:"System Reports",REPORT_DATASOURCE_CON_ID:"Datasource con id",REPORT_REPORT_BLUE_PRINT_ID:"Report blue print id",REPORT_REPORT_CATEGORY:"Report category",REPORT_REPORT_CODE:"Report code",REPORT_REPORT_EXCEL_DATA_QUERY_ID:"Report excel data query id",REPORT_REPORT_EXPORT_NAME:"Report export name",REPORT_REPORT_JASPER_NAME:"Report jasper name",REPORT_REPORT_JASPER_PATH:"Report jasper path",REPORT_REPORT_MENU_CODE:"Report menu code",REPORT_REPORT_NAME:"Report name",REPORT_REPORT_TYPE:"Report type",REPORT_USE_SYS_DATASOURCE:"Use sys datasource",REPORT_PARAMETER_SINGULAR:"reportparameter",REPORT_PARAMETER_PLURAL:"reportparameters",REPORT_PARAMETER_DEFAULT_VALUE:"Default value",REPORT_PARAMETER_ENABLED:"Enabled",REPORT_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",REPORT_PARAMETER_HIDDEN:"Hidden",REPORT_PARAMETER_MANDATORY:"Mandatory",REPORT_PARAMETER_REPORT_ID:"Report id",ROLE_SINGULAR:"role",ROLE_PLURAL:"roles",ROLE_DESCRIPTION:"Description",ROLE_IS_ACTIVE:"Is active",ROLE_ORGANIZATION_APPLICATION_ID:"Organization application id",ROLE_ROLE_NAME:"Role name",ROLE_AUTHORITY_SINGULAR:"roleauthority",ROLE_AUTHORITY_PLURAL:"roleauthorities",ROLE_AUTHORITY_AUTHORITY_ID:"Authority id",ROLE_AUTHORITY_IS_ACTIVE:"Is active",ROLE_AUTHORITY_ROLE_ID:"Role id",USER_ACCOUNT_SINGULAR:"useraccount",USER_ACCOUNT_PLURAL:"useraccounts",USER_ACCOUNT_ENABLED:"Enabled",USER_ACCOUNT_PASSWORD:"Password",USER_ACCOUNT_USERNAME:"Username",USER_REQUEST_SINGULAR:"userrequest",USER_REQUEST_PLURAL:"userrequests",USER_REQUEST_IS_NOTIFIED:"Is notified",USER_REQUEST_MAILS_TO_NOTIFY:"Mails to notify",USER_REQUEST_NOTIFICATION_MESSAGE:"Notification message",USER_REQUEST_NOTIFICATION_TIME:"Notification time",USER_REQUEST_NOTIFICATION_TYPE:"Notification type",USER_REQUEST_NOTIFY_USER:"Notify user",USER_REQUEST_REPORT_CODE:"Report code",USER_REQUEST_REPORT_PARAMETERS:"Report parameters",USER_REQUEST_REQUEST_TYPE:"Request type",USER_REQUEST_STATUS:"Status",USER_REQUEST_STATUS_MESSAGE:"Status message",WIDGET_SINGULAR:"widget",WIDGET_PLURAL:"widgets",WIDGET_DATA_QUERY_ID:"Data query id",WIDGET_ENABLED:"Enabled",WIDGET_HEIGHT:"Height",WIDGET_HORIZONTAL_AXIS_FIELD:"Horizontal axis field",WIDGET_HORIZONTAL_AXIS_LABEL:"Horizontal axis label",WIDGET_ICON:"Icon",WIDGET_SERIES_KEYS:"Series keys",WIDGET_TITLE:"Title",WIDGET_VERTICAL_AXIS_FIELD:"Vertical axis field",WIDGET_VERTICAL_AXIS_LABEL:"Vertical axis label",WIDGET_WIDGET_DESCRIPTION:"Widget description",WIDGET_WIDGET_NAME:"Widget name",WIDGET_WIDGET_TYPE:"Widget type",WIDGET_WIDTH:"Width",WORKFLOW_DOCUMENT_SINGULAR:"Workflow",WORKFLOW_DOCUMENT_PLURAL:"Workflows",WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON:"App notification icon",WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE:"App notification style",WORKFLOW_DOCUMENT_APP_VIEW_ROUTE:"App view route",WORKFLOW_DOCUMENT_DOCUMENT_CODE:"Document code",WORKFLOW_DOCUMENT_DOCUMENT_CON_ID:"Document con id",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME:"Document database name",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE:"Document database table",WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD:"Document id field",WORKFLOW_DOCUMENT_DOCUMENT_NAME:"Document name",WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD:"Document number field",WORKFLOW_DOCUMENT_DOCUMENT_REPORT_ID:"Document report id",WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD:"Document status field",WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED:"Mail approval allowed",WORKFLOW_DOCUMENT_ORG_CODE:"Org code",WORKFLOW_DOCUMENT_USE_SYSTEM_CON:"Use system con",WORKFLOW_DOCUMENT_ACTION_SINGULAR:"workflowdocumentaction",WORKFLOW_DOCUMENT_ACTION_PLURAL:"workflowdocumentactions",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE:"Document action code",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_NAME:"Document action name",WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID:"Next document status id",WORKFLOW_DOCUMENT_ACTION_POST_ACTION_ENDPOINT:"Post action endpoint",WORKFLOW_DOCUMENT_ACTION_PRE_ACTION_ENDPOINT:"Pre action endpoint",WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT:"Require comment",WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_HISTORY_SINGULAR:"workflowdocumentactionhistory",WORKFLOW_DOCUMENT_ACTION_HISTORY_PLURAL:"workflowdocumentactionhistories",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_BY:"Action by",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_COMMENT:"Action comment",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_METHOD:"Action method",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_TIME:"Action time",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_REF_ID:"Document ref id",WORKFLOW_DOCUMENT_ACTION_HISTORY_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_MAIL_SINGULAR:"workflowdocumentactionmail",WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL:"workflowdocumentactionmails",WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED:"Enabled",WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID:"Mail template id",WORKFLOW_DOCUMENT_MAIL_LOG_SINGULAR:"Workflow Mail Log",WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL:"Workflow Mail Logs",WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID:"Graph api msg id",WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED:"Is processed",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE:"Mail action code",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT:"Mail body content",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM:"Mail from",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT:"Mail subject",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE:"Process message",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME:"Process time",WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID:"Ref doc id",WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_STATUS_SINGULAR:"workflowdocumentstatus",WORKFLOW_DOCUMENT_STATUS_PLURAL:"workflowdocumentstatuses",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE:"Document status code",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_NAME:"Document status name",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER:"Document status order",WORKFLOW_DOCUMENT_STATUS_ENABLED:"Enabled",WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE:"Is zero state",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTION_TAKERS_QUERY_ID:"Next action takers query id",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTIONS_QUERY_ID:"Next actions query id",WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID:"Workflow document id"}}}};I.use(O.initReactI18next).init({resources:Be,lng:localStorage.getItem("language")||"en",fallbackLng:"en"});const Fe=l.styled(E,{shouldForwardProp:e=>"open"!==e})((({theme:e})=>{const i=t.useSelector((e=>e.AppLayout)),o=Se();return{transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),variants:[{props:({open:e})=>e,style:{width:o?void 0:"calc(100% - 350px)",marginLeft:o||"ltr"!==i.appDirection?void 0:"350px",marginRight:o||"rtl"!==i.appDirection?void 0:"350px",transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}]}})),we=()=>{const i=t.useSelector((e=>e.AppInfo.value)),o=t.useSelector((e=>e.AppLayout)),r=t.useSelector((e=>e.UserSession)),{handleGetRequest:a}=ge(),n=Se(),d=t.useDispatch();return e.jsx(Fe,{position:"fixed",open:o.sideBarOpened,children:e.jsxs(c,{children:[e.jsx(l.IconButton,{color:"inherit","aria-label":"open drawer",onClick:()=>{d(Ee.toggleSideBarState())},edge:"start",sx:[{mr:"ltr"===o.appDirection?2:void 0,ml:"rtl"===o.appDirection?2:void 0},o.sideBarOpened&&{display:"none"}],children:e.jsx(T.FontAwesomeIcon,{icon:"bars"})}),e.jsx(l.Avatar,{src:i.appLogo,sx:{marginRight:1,marginLeft:1}}),e.jsx(l.Typography,{variant:"h6",noWrap:!0,component:"div",sx:{flex:1},children:n?"":i.appName}),e.jsx(l.IconButton,{color:"inherit",onClick:()=>{d(Ee.setThemeMode("light"===o.themeMode?"dark":"light")),localStorage.setItem("themeMode","light"===o.themeMode?"dark":"light")},children:"light"===o.themeMode?e.jsx(T.FontAwesomeIcon,{icon:"moon"}):e.jsx(T.FontAwesomeIcon,{icon:{prefix:"far",iconName:"sun"}})}),e.jsx(l.IconButton,{color:"inherit",onClick:()=>{let e="ar"===I.language?"en":"ar";var t;t=e,I.changeLanguage(t),localStorage.setItem("language",t),d(Ee.setAppDirection("ar"===e?"rtl":"ltr"))},children:e.jsx(T.FontAwesomeIcon,{icon:"language"})}),e.jsx(l.Avatar,{}),e.jsx("div",{style:{marginLeft:5,marginRight:5},children:n?"":r.value?.userProfile?.username}),e.jsx(l.IconButton,{color:"inherit",onClick:async()=>{try{await a({endPointURI:"api/auth/logout"})}catch(e){console.log("logout error",e)}d(Ae.setUnAuthenticated())},children:e.jsx(T.FontAwesomeIcon,{rotation:"rtl"===o.appDirection?180:void 0,icon:"arrow-right-from-bracket"})})]})})},We=l.styled("div")((({theme:e})=>({display:"flex",alignItems:"center",...e.mixins.toolbar,justifyContent:"flex-end"})));function Ge(e){var t,i,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(i=Ge(e[t]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function ke(){for(var e,t,i=0,o="",r=arguments.length;i<r;i++)(e=arguments[i])&&(t=Ge(e))&&(o&&(o+=" "),o+=t);return o}const je=()=>{const e=t.useSelector((e=>e.UserSession));return{UserSession:e,isUserAuthorized:t=>{if(e?.value?.authorities)for(let i of e.value.authorities)if("DEVELOPMENT_ADMIN"===i?.authority||i?.authority===t)return!0;return!1}}},Ye=(e,t)=>{for(const i of t){if(i.id===e)return i;if(i.children){const t=Ye(e,i.children);if(t)return t}}},qe=[...[{id:"admin",label:"SYSTEM_ADMINISTRATION",authority:"DEVELOPMENT_ADMIN",icon:"cogs",children:[{id:"admin.systemManagement",label:"SYSTEM_MANAGEMENT",icon:"gear",children:[{id:"admin.systemManagement.Organization",label:"ORGANIZATION_PLURAL",icon:"globe",action:"NAVIGATION",actionPayload:{path:"admin/organizations"}},{id:"admin.systemManagement.OrganizationApplication",label:"ORGANIZATION_APPLICATION_PLURAL",icon:"diagram-project",action:"NAVIGATION",actionPayload:{path:"admin/organizationapplications"}}]},{id:"admin.security",label:"SECURITY_ADMINISTRATION",icon:"shield",children:[{id:"admin.security.Authority",label:"AUTHORITY_PLURAL",icon:"key",action:"NAVIGATION",actionPayload:{path:"admin/authorities"}},{id:"admin.Role",label:"ROLE_PLURAL",icon:"tag",action:"NAVIGATION",actionPayload:{path:"admin/roles"}},{id:"admin.security.Employee",label:"EMPLOYEE_PLURAL",icon:"user",action:"NAVIGATION",actionPayload:{path:"admin/employees"}}]},{id:"admin.devtools",label:"DEVELOPMENT_TOOLS",icon:"code",children:[{id:"admin.devtools.DatasourceConnection",label:"DATASOURCE_CONNECTION_PLURAL",icon:"plug",action:"NAVIGATION",actionPayload:{path:"admin/datasourceconnections"}},{id:"admin.devtools.EntityParameter",label:"ENTITY_PARAMETER_PLURAL",icon:"p",action:"NAVIGATION",actionPayload:{path:"admin/entityparameters"}},{id:"admin.devtools.DataQuery",label:"DATA_QUERY_PLURAL",icon:"file-code",action:"NAVIGATION",actionPayload:{path:"admin/dataqueries"}},{id:"admin.devtools.ExcelUploaderHeader",label:"EXCEL_UPLOADER_HEADER_PLURAL",icon:"file-excel",action:"NAVIGATION",actionPayload:{path:"admin/exceluploaderheaders"}},{id:"admin.devtools.Report",label:"REPORT_PLURAL",icon:"file",action:"NAVIGATION",actionPayload:{path:"admin/reports"}},{id:"admin.devtools.WorkflowDocument",label:"WORKFLOW_DOCUMENT_PLURAL",icon:"chart-diagram",action:"NAVIGATION",actionPayload:{path:"admin/workflowdocuments"}},{id:"admin.devtools.BluePrint",label:"BLUE_PRINT_PLURAL",icon:"fingerprint",action:"NAVIGATION",actionPayload:{path:"admin/blueprints"}},{id:"admin.devtools.Widget",label:"WIDGET_PLURAL",icon:"chart-pie",action:"NAVIGATION",actionPayload:{path:"admin/widgets"}},{id:"admin.devtools.Dashboard",label:"DASHBOARD_PLURAL",icon:"square-poll-vertical",action:"NAVIGATION",actionPayload:{path:"admin/dashboards"}},{id:"admin.devtools.MailTemplate",label:"MAIL_TEMPLATE_PLURAL",icon:"envelope",action:"NAVIGATION",actionPayload:{path:"admin/mailtemplates"}},{id:"admin.devtools.Notification",label:"NOTIFICATION_PLURAL",icon:"bell",action:"NAVIGATION",actionPayload:{path:"admin/notifications"}}]},{id:"admin.followup",label:"SYSTEM_MONITORING",icon:"tv",children:[{id:"admin.WorkflowDocumentMailLog",label:"WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL",icon:"envelopes-bulk",action:"NAVIGATION",actionPayload:{path:"admin/workflowdocumentmaillogs"}},{id:"admin.MailNotificationQueue",label:"MAIL_NOTIFICATION_QUEUE_PLURAL",icon:"envelope-open-text",action:"NAVIGATION",actionPayload:{path:"admin/mailnotificationqueues"}},{id:"admin.NotificationQueue",label:"NOTIFICATION_QUEUE_PLURAL",icon:"bell",action:"NAVIGATION",actionPayload:{path:"admin/notificationqueues"}}]},{id:"admin.Lookup",label:"LOOKUP_PLURAL",icon:"list-check",action:"NAVIGATION",actionPayload:{path:"admin/lookups"}}]}]];function Ke(){return e.jsx(L,{sx:{width:6,height:6,borderRadius:"70%",bgcolor:"warning.main",display:"inline-block",verticalAlign:"middle",zIndex:1,mx:1}})}const Ve=p.styled(h.TreeItem2Root)((({theme:e})=>({color:e.palette.grey[400],position:"relative",[`& .${U.treeItemClasses.groupTransition}`]:{marginLeft:e.spacing(2.5)},...e.applyStyles("light",{color:e.palette.grey[800]})}))),He=p.styled(h.TreeItem2Content)((({theme:e})=>({flexDirection:"row-reverse",borderRadius:e.spacing(.7),marginBottom:e.spacing(.5),marginTop:e.spacing(.5),padding:e.spacing(.5),paddingRight:e.spacing(1),"&.Mui-expanded ":{"&:not(.Mui-focused, .Mui-selected, .Mui-selected.Mui-focused) .labelIcon":{color:e.palette.primary.dark,...e.applyStyles("light",{color:e.palette.primary.main})},"&::before":{content:'""',display:"block",position:"absolute",left:"16px",top:"44px",height:"calc(100% - 48px)",width:"1.5px",backgroundColor:e.palette.grey[700],...e.applyStyles("light",{backgroundColor:e.palette.grey[300]})}},"&:hover":{backgroundColor:p.alpha(e.palette.primary.main,.1),color:"white",...e.applyStyles("light",{color:e.palette.primary.main})},"&.Mui-focused, &.Mui-selected, &.Mui-selected.Mui-focused":{backgroundColor:e.palette.primary.dark,color:e.palette.primary.contrastText,...e.applyStyles("light",{backgroundColor:e.palette.primary.main})}}))),Qe=R.animated(y);function ze(t){const i=R.useSpring({to:{opacity:t.in?1:0,transform:`translate3d(0,${t.in?0:20}px,0)`}});return e.jsx(Qe,{style:i,...t})}const Ze=p.styled(D)({color:"inherit",fontWeight:500});function $e({icon:i,expandable:o,children:r,...a}){const{t:n}=O.useTranslation(),l=t.useSelector((e=>e.AppLayout));return e.jsxs(h.TreeItem2Label,{...a,sx:{display:"flex",alignItems:"center",padding:1},children:[e.jsx(T.FontAwesomeIcon,{style:{marginRight:"ltr"===l.appDirection?7:void 0,marginLeft:"rtl"===l.appDirection?7:void 0,fontSize:"1.2rem"},icon:i}),e.jsx(Ze,{variant:"body2",sx:{fontSize:16},children:n(r)}),o&&e.jsx(Ke,{})]})}const Xe=e=>Array.isArray(e)?e.length>0&&e.some(Xe):Boolean(e),Je=le.forwardRef((function(t,i){const{id:o,itemId:r,label:a,disabled:n,children:l,...d}=t,{getRootProps:s,getContentProps:p,getIconContainerProps:_,getCheckboxProps:E,getLabelProps:c,getGroupTransitionProps:T,getDragAndDropOverlayProps:A,status:u,publicAPI:I}=M.useTreeItem2({id:o,itemId:r,children:l,label:a,disabled:n,rootRef:i}),O=I.getItem(r),m=Xe(l);return e.jsx(S.TreeItem2Provider,{itemId:r,children:e.jsxs(Ve,{...s(d),children:[e.jsxs(He,{...p({className:ke("content",{"Mui-expanded":u.expanded,"Mui-selected":u.selected,"Mui-focused":u.focused,"Mui-disabled":u.disabled})}),children:[e.jsx(h.TreeItem2IconContainer,{..._(),children:e.jsx(P.TreeItem2Icon,{status:u})}),e.jsx(h.TreeItem2Checkbox,{...E()}),e.jsx($e,{...c({icon:O?.icon||"book",expandable:m&&u.expanded})}),e.jsx(b.TreeItem2DragAndDropOverlay,{...A()})]}),l&&e.jsx(ze,{...T()})]})})}));function et(){const i=g.useNavigate(),o=t.useSelector((e=>e.AppLayout)),r=t.useSelector((e=>e.AppInfo.value.businessNavigationItems));t.useDispatch();const a=Se(),{isUserAuthorized:n}=je(),l=e=>e.filter((e=>void 0===e.authority||null==e.authority||n(e.authority))).map((e=>(e.children&&(e.children=l(e.children)),e))),d=[...qe,...r],s=l(d);return e.jsx(C.RichTreeView,{items:s,onItemClick:(e,t)=>{const o=Ye(t,qe);"NAVIGATION"!==o?.action||null==o?.actionPayload||void 0!==o.children&&null!==o.children&&0!=o.children.length||i(o?.actionPayload?.path||"")},sx:{height:"fit-content",flexGrow:1,maxWidth:se,direction:o.appDirection,maxHeight:a?300:void 0,overflowY:"auto",overflowX:"auto"},slots:{item:Je}})}const tt=()=>{const i=t.useSelector((e=>e.AppInfo.value)),o=l.useTheme(),r=t.useSelector((e=>e.AppLayout)),a=t.useDispatch();return e.jsxs(N,{sx:{width:se,flexShrink:0,"& .MuiDrawer-paper":{width:se,boxSizing:"border-box"}},variant:"persistent",anchor:"ltr"===r.appDirection?"left":"right",open:r.sideBarOpened,children:[e.jsxs(We,{children:[e.jsxs(l.Box,{sx:{width:"100%"},children:[e.jsx(l.Typography,{color:"primary",sx:{width:"100%",textAlign:"center",fontSize:18,fontWeight:"bold"},children:"System Content"}),e.jsxs(l.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1},children:[e.jsx(l.Typography,{sx:{fontSize:12},color:"textDisabled",children:i.appName}),e.jsxs(l.Typography,{sx:{fontSize:12},color:"textDisabled",children:["V.",i.appVersion]})]})]}),e.jsx(f,{onClick:()=>{a(Ee.toggleSideBarState())},children:"ltr"===o.direction?e.jsx(T.FontAwesomeIcon,{icon:"angle-left"}):e.jsx(T.FontAwesomeIcon,{icon:"angle-right"})})]}),e.jsx(m,{}),e.jsx(et,{})]})},it=B({key:"muirtl",stylisPlugins:[v.prefixer,x]}),ot=B({key:"mui"}),rt=t=>{const[i,o]=s.useState(!1),{t:r}=O.useTranslation();return{ConfirmationWindow:()=>e.jsxs(l.Dialog,{open:i,children:[e.jsx(l.DialogTitle,{children:t.title}),e.jsx(l.DialogContent,{children:e.jsx(l.DialogContentText,{children:t.body})}),e.jsxs(l.DialogActions,{children:[e.jsx(l.Button,{variant:"contained",color:"primary",onClick:()=>{o(!1)},children:r("NO_LABEL")}),e.jsx(l.Button,{variant:"contained",color:"error",onClick:()=>{t.onConfirmationCallBk(),o(!1)},autoFocus:!0,children:r("YES_LABEL")})]})]}),open:i,setOpen:o}},at=t=>{const{t:i}=O.useTranslation(),o=je(),{ConfirmationWindow:r,setOpen:a}=rt({body:i(t?.confirmationMessage||"ACTION_CONFIRMATION"),title:i("CONFIRMATION"),onConfirmationCallBk:async()=>{await(t?.actionFn(t.recordsToProcessActionOn,t.recordIdsToProcessActionOn)),t?.reloadData&&t.reloadData()}});let n=!0;if(t.authority&&(n=o.isUserAuthorized(t.authority)),n)return e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsxs(l.Button,{onClick:async()=>{if(t?.recordsToProcessActionOn&&t?.recordsToProcessActionOn.length>0){if(t?.preActionValidation)for(const e of t.recordsToProcessActionOn)if(!t.preActionValidation(e))return;!0===t?.isConfirmationRequired?a(!0):(await t.actionFn(t.recordsToProcessActionOn,t.recordIdsToProcessActionOn),t?.reloadData&&t.reloadData())}else A.toast.error(i("AT_LEAST_ONE_RECORD_SELECTED_MESSAGE"))},variant:t?.label?"outlined":t?.formActionProps?.actionButtonVariant?t.formActionProps.actionButtonVariant:"text",size:"small",color:t?.formActionProps?.actionButtonColor||"primary",children:[t?.icon?e.jsx(T.FontAwesomeIcon,{style:{marginRight:5,marginLeft:5},icon:t.icon}):e.jsx(e.Fragment,{}),t?.label?i(t.label):e.jsx(e.Fragment,{})]})]})},nt="YYYY-MM-DD",lt="YYYY-MM-DD HH:mm:ss",dt=t=>{const{t:i}=O.useTranslation();return e.jsx(W.LocalizationProvider,{dateAdapter:G.AdapterMoment,children:e.jsx(W.DatePicker,{value:null!=t.value&&void 0!==t.value&&""!==t.value?w(t.value,t?.format||nt):null,sx:t.sx,label:i(t.label),format:t?.format||nt,disabled:t.disabled,onChange:e=>{let i=null;null!=e&&e.isValid()&&(i=e.format(t?.format||nt)),void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack&&t.onChangeCallBack(i)},slotProps:{textField:{InputLabelProps:{shrink:!0},variant:"outlined",required:t.required,error:void 0!==t.errorMessage&&null!=t.errorMessage,helperText:void 0!==t.errorMessage&&null!=t.errorMessage?e.jsx(e.Fragment,{children:i(t.errorMessage)}):e.jsx(e.Fragment,{})}}})})},st=t=>{const{t:i}=O.useTranslation();return e.jsx(W.LocalizationProvider,{dateAdapter:G.AdapterMoment,children:e.jsx(W.DateTimePicker,{value:null!=t.value&&void 0!==t.value&&""!==t.value?w(t.value,t?.format||lt):null,label:i(t.label),sx:t.sx,format:t?.format||lt,disabled:t.disabled,onChange:e=>{let i=null;null!=e&&e.isValid()&&(i=e.format(t?.format||lt)),void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack&&t.onChangeCallBack(i)},slotProps:{textField:{variant:"outlined",required:t.required,error:void 0!==t.errorMessage&&null!=t.errorMessage,helperText:void 0!==t.errorMessage&&null!=t.errorMessage?e.jsx(e.Fragment,{children:i(t.errorMessage)}):e.jsx(e.Fragment,{})}}})})},pt=i=>{const o=t.useSelector((e=>e.AppLayout)),{t:r}=O.useTranslation();return e.jsx(l.Autocomplete,{sx:i.sx,value:(e=>{for(let t of i.options)if(t[i.valueField]==e)return t;return null})(i.value),options:i.options,disabled:i.disabled,onChange:(e,t)=>{if(void 0!==i.onChangeCallBack&&null!=i.onChangeCallBack)if(null!=t){let e=t[i.valueField];i.onChangeCallBack(e,t)}else i.onChangeCallBack(null,null)},clearOnBlur:!0,handleHomeEndKeys:!0,getOptionLabel:e=>null!=e?r(e[i.displayField]):"",renderOption:(t,o)=>e.jsx("li",{...t,children:null!=o?r(o[i.displayField]):""}),slots:{popper:t=>e.jsx(l.Popper,{...t,style:{...t.style,direction:o.appDirection}})},renderInput:t=>e.jsx(l.TextField,{...t,required:i.required||!1,variant:"outlined",InputLabelProps:{shrink:!0},label:r(i.label),error:null!=i.errorMessage&&void 0!==i.errorMessage,helperText:null!=i.errorMessage&&void 0!==i.errorMessage?r(i.errorMessage):""})})},_t=t=>{const{t:i}=O.useTranslation();return e.jsx(l.FormControlLabel,{sx:t.sx,disabled:t.disabled||!1,required:t.required||!1,control:e.jsx(l.Checkbox,{checked:t?.checkedValue==t.value||"true"===t.value||"1"==t.value,onChange:e=>{void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack&&(e.target.checked?void 0!==t.checkedValue&&null!=t.checkedValue?t.onChangeCallBack(t.checkedValue):t.onChangeCallBack("true"):void 0!==t.unCheckedValue&&null!=t.unCheckedValue?t.onChangeCallBack(t.unCheckedValue):t.onChangeCallBack("false"))}}),label:i(t.label)})},Et=t=>({...t,type:"string",renderEditCell:t=>e.jsx(st,{sx:{width:"100%"},label:"",value:t.value,onChangeCallBack:e=>{t.api.setEditCellValue({id:t.id,field:t.field,value:e})}}),valueParser:(e,t,i)=>{let o=null;return null!==e&&(o=w(e).format(lt)),o},valueFormatter:(e,t,i)=>t[i.field]}),ct=t=>({...t,type:"custom",valueGetter:e=>e?e+"":e,renderCell:t=>{let i=null;try{i=t.colDef.options.find((e=>e[t.colDef.valueField]==t.value))}catch(e){}return e.jsx("div",{children:null!=i?i[t.colDef.displayField]:t.value})},renderEditCell:i=>e.jsx(pt,{...i,sx:{width:"100%"},options:t.options,valueField:t.valueField,displayField:t.displayField,onChangeCallBack:(e,t)=>{null===e&&i.api.setEditCellValue({id:i.id,field:i.field,value:null}),i.api.setEditCellValue({id:i.id,field:i.field,value:e+""})}})}),Tt=t=>({...t,type:"custom",valueGetter:e=>null==e||null==e?null:e+"",renderCell:i=>{const o=i?.value;return o===t.checkedValue||"true"===o||1===o||!0===o?e.jsx(T.FontAwesomeIcon,{icon:"check",color:"green"}):e.jsx(T.FontAwesomeIcon,{icon:"xmark",color:"red"})},renderEditCell:i=>e.jsx(_t,{...i,checkedValue:t?.checkedValue||"true",unCheckedValue:t?.unCheckedValue||"false",onChangeCallBack:e=>{i.api.setEditCellValue({id:i.id,field:i.field,value:e+""})}})}),At=e=>{const t=[];if("field"===e.type&&"props"===e.mode&&e?.props)t.push(e.props);else if("group"===e.type&&e?.props&&e?.props?.elements)for(const i of e.props.elements)t.push(...At(i));return t},ut=e=>{const t=[];for(const i of e)t.push(...At(i));return t},It=e=>{const t={};for(const i of e)if(i?.fieldName){const e=i.fieldName;"number"===i.fieldType?t[e]=!0===i?.required?de.number({required_error:"This field is required",invalid_type_error:"This field must be a number"}):de.number().optional().nullable():t[e]=!0===i?.required?de.string({message:"This field is required"}).min(1,"This field is required"):de.string().optional().nullable()}return t},Ot=l.styled(F.QuickFilter)({display:"grid",alignItems:"center"}),mt=l.styled(F.ToolbarButton)((({theme:e,ownerState:t})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:t.expanded?0:1,pointerEvents:t.expanded?"none":"auto",transition:e.transitions.create(["opacity"])}))),ft=l.styled(l.TextField)((({theme:e,ownerState:t})=>({gridArea:"1 / 1",overflowX:"clip",width:t.expanded?260:"var(--trigger-width)",opacity:t.expanded?1:0,transition:e.transitions.create(["width","opacity"])}))),Nt=t=>{const{t:i}=O.useTranslation(),o=je(),r=!t?.templateProps?.editAction?.authority||o.isUserAuthorized(t.templateProps.editAction.authority),a=((e,t,i)=>{const o=[],r=[];if("exclude"===e.type&&0===e.ids.size)for(const e of t)o.push(e),r.push(e[i]);else if(e?.ids)for(const a of e.ids){const e=t.find((e=>e[i]===a));o.push(e),r.push(a)}return{selectedRecords:o,selectedRecordIds:r}})(t?.templateProps?.rowSelectionModel||{ids:new Set,type:"include"},t?.templateProps?.data||[],t?.templateProps?.keyColumnName||"id");return e.jsxs(F.Toolbar,{children:[r&&"none"!=t?.templateProps?.editMode?.editMode?e.jsxs(l.Button,{onClick:t?.handleCreateNewRecord,children:[e.jsx(T.FontAwesomeIcon,{icon:"add",style:{marginRight:5,marginLeft:5}}),i("ADD_BTN_LABEL")]}):e.jsx(e.Fragment,{}),t?.templateProps?.rowActions?t.templateProps.rowActions.map((i=>!0===i?.gridActionProps?.multiRecord?e.jsx(at,{...i,reloadData:async()=>{t.templateProps.apiActions.reloadData(t?.templateProps?.gridLoadParametersValues)},recordIdsToProcessActionOn:a.selectedRecordIds,recordsToProcessActionOn:a.selectedRecords}):e.jsx(e.Fragment,{}))):e.jsx(e.Fragment,{}),e.jsx(l.Box,{sx:{flex:1,mx:.5},children:t?.templateProps?.tBar}),e.jsx(l.Tooltip,{title:"Columns",children:e.jsx(F.ColumnsPanelTrigger,{render:e.jsx(F.ToolbarButton,{}),children:e.jsx(F.GridViewColumnIcon,{fontSize:"small"})})}),e.jsx(l.Tooltip,{title:"Filters",children:e.jsx(F.FilterPanelTrigger,{render:(t,i)=>e.jsx(F.ToolbarButton,{...t,color:"default",children:e.jsx(l.Badge,{badgeContent:i.filterCount,color:"primary",variant:"dot",children:e.jsx(F.GridFilterListIcon,{fontSize:"small"})})})})}),t?.templateProps?.gridStateKey?e.jsx(l.Tooltip,{title:i("RESET_GRID_STATE"),children:e.jsx(l.IconButton,{onClick:t?.clearGridState,children:e.jsx(T.FontAwesomeIcon,{icon:"eraser"})})}):e.jsx(e.Fragment,{}),e.jsx(l.Divider,{orientation:"vertical",variant:"middle",flexItem:!0,sx:{mx:.5}}),e.jsx(l.Tooltip,{title:i("EXPORT_EXECL_LABEL"),children:e.jsx(F.ExportExcel,{render:e.jsx(l.MenuItem,{}),children:e.jsx(T.FontAwesomeIcon,{icon:"file-excel",color:"green"})})}),e.jsxs(Ot,{children:[e.jsx(F.QuickFilterTrigger,{render:(t,o)=>e.jsx(l.Tooltip,{title:i("SEARCH_BTN_LABEL"),enterDelay:0,children:e.jsx(mt,{...t,ownerState:{expanded:o.expanded},color:"default","aria-disabled":o.expanded,children:e.jsx(T.FontAwesomeIcon,{icon:"search"})})})}),e.jsx(F.QuickFilterControl,{render:({ref:t,...o},r)=>e.jsx(ft,{...o,ownerState:{expanded:r.expanded},inputRef:t,"aria-label":"Search",placeholder:`${i("SEARCH_BTN_LABEL")}...`,size:"small",slotProps:{input:{startAdornment:e.jsx(l.InputAdornment,{position:"start",children:e.jsx(T.FontAwesomeIcon,{icon:"search"})}),endAdornment:r.value?e.jsx(l.InputAdornment,{position:"end",children:e.jsx(F.QuickFilterClear,{edge:"end",size:"small","aria-label":"Clear search",children:e.jsx(T.FontAwesomeIcon,{icon:"xmark"})})}):null,...o.slotProps?.input},...o.slotProps}})})]}),e.jsx(l.IconButton,{onClick:()=>{t.templateProps.apiActions.reloadData(t?.templateProps?.gridLoadParametersValues)},children:e.jsx(T.FontAwesomeIcon,{icon:"refresh"})})]})};function Rt(e){return"number"==typeof e&&!isNaN(e)}function Lt(e){return"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e))}function yt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}const Dt=t=>{const{t:i}=O.useTranslation(),o=je(),{ConfirmationWindow:r,setOpen:a}=rt({body:i(t?.confirmationMessage||"ACTION_CONFIRMATION"),title:i("CONFIRMATION"),onConfirmationCallBk:async()=>{await(t?.actionFn(t.record)),t?.reloadData&&t.reloadData()}});let n=!0;t.authority&&(n=o.isUserAuthorized(t.authority));let d={};t?.getActionIconStyleForRecord&&(d=t.getActionIconStyleForRecord(t.record));let s=!0;t?.isActionVisibleForRecord&&(s=t?.isActionVisibleForRecord(t.record));let p=!1;if(t?.isActionDisabledForRecord&&(p=t.isActionDisabledForRecord(t.record)),n&&s)return e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsx(F.GridActionsCellItem,{disabled:p,icon:e.jsx(l.Tooltip,{title:t?.label?i(t.label):"",children:e.jsx(T.FontAwesomeIcon,{icon:t.icon,style:{...d,color:p?"gray":null!=d?.color?d.color:void 0}})}),showInMenu:t?.gridActionProps?.showInMenu||!1,label:"",className:"textPrimary",color:"inherit",onClick:async()=>{if(!p){if(t?.preActionValidation&&!t.preActionValidation(t.record))return;!0===t?.isConfirmationRequired?a(!0):(await t.actionFn(t.record),t?.reloadData&&t.reloadData())}}})]})};function Ct(e,...t){const i=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach((e=>i.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${i} for the full message.`}function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mt,ht={exports:{}},Pt={exports:{}},St={};var bt,gt,xt,vt,Bt,Ft,wt,Wt,Gt,kt,jt,Yt,qt,Kt,Vt,Ht={};
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react-redux"),i=require("@reduxjs/toolkit"),o=require("@fortawesome/fontawesome-svg-core"),r=require("@fortawesome/free-brands-svg-icons"),a=require("@fortawesome/free-regular-svg-icons"),n=require("@fortawesome/free-solid-svg-icons");require("react-toastify/dist/ReactToastify.css");var l=require("@mui/material"),d=require("@emotion/react"),s=require("react"),p=require("@mui/material/styles"),_=require("@mui/material/CssBaseline"),E=require("@mui/material/AppBar"),c=require("@mui/material/Toolbar"),T=require("@fortawesome/react-fontawesome"),A=require("react-toastify"),u=require("axios"),I=require("i18next"),O=require("react-i18next"),m=require("@mui/material/Divider"),f=require("@mui/material/IconButton"),N=require("@mui/material/Drawer"),R=require("@react-spring/web"),L=require("@mui/material/Box"),y=require("@mui/material/Collapse"),D=require("@mui/material/Typography"),C=require("@mui/x-tree-view/RichTreeView"),h=require("@mui/x-tree-view/TreeItem"),M=require("@mui/x-tree-view/useTreeItem2"),U=require("@mui/x-tree-view/TreeItem2"),P=require("@mui/x-tree-view/TreeItem2Icon"),S=require("@mui/x-tree-view/TreeItem2Provider"),b=require("@mui/x-tree-view/TreeItem2DragAndDropOverlay"),g=require("react-router-dom"),x=require("stylis-plugin-rtl"),v=require("stylis"),B=require("@emotion/cache"),F=require("@mui/x-data-grid-premium"),w=require("moment"),W=require("@mui/x-date-pickers"),G=require("@mui/x-date-pickers/AdapterMoment"),k=require("zod"),j=require("react-hook-form"),Y=require("@hookform/resolvers/zod"),q=require("@emotion/styled"),K=require("@mui/material/colors"),V=require("@mui/material/SwipeableDrawer"),H=require("@mui/x-license"),Q=require("@mui/material/List"),z=require("@mui/material/Card"),Z=require("@mui/material/CardHeader"),$=require("@mui/material/ListItem"),X=require("@mui/material/ListItemText"),J=require("@mui/material/ListItemIcon"),ee=require("@mui/material/Checkbox"),te=require("@mui/material/Button"),ie=require("@mui/material/Grid2"),oe=require("@mui/x-charts/PieChart"),re=require("@mui/x-charts"),ae=require("@mui/material/LinearProgress");function ne(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(i){if("default"!==i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}})),t.default=e,Object.freeze(t)}var le=ne(s),de=ne(k);const se=350,pe={sideBarOpened:!1,themeMode:localStorage.getItem("themeMode")||"light",appDirection:"ar"==localStorage.getItem("language")?"rtl":"ltr"},_e=i.createSlice({name:"AppLayout",initialState:pe,reducers:{toggleSideBarState:e=>{e.sideBarOpened=!e.sideBarOpened},setSideBarState:(e,t)=>{e.sideBarOpened=t.payload},setThemeMode:(e,t)=>{e.themeMode=t.payload},setAppDirection:(e,t)=>{e.appDirection=t.payload}}}),Ee=_e.actions;var ce=_e.reducer;const Te=i.createSlice({name:"UserSession",initialState:{value:{isAuthenticated:null,authorities:[],userProfile:null}},reducers:{setAuthenticated:(e,t)=>{e.value=t.payload},setUnAuthenticated:e=>{e.value={isAuthenticated:!1,authorities:[],userProfile:null}}}}),Ae=Te.actions;var ue=Te.reducer;const Ie=i.createSlice({name:"loadingMask",initialState:{value:{isOpened:!1,message:null}},reducers:{showLoadingMask:(e,t)=>{e.value.isOpened=!0,e.value.message=t.payload},hideLoadingMask:e=>{e.value.isOpened=!1,e.value.message=null}}}),{showLoadingMask:Oe,hideLoadingMask:me}=Ie.actions;var fe=Ie.reducer;const Ne={},Re=i.createSlice({name:"loadingMask",initialState:Ne,reducers:{setStoreData(e,t){e[t.payload.storeKey].data=t.payload.data}}}),{setStoreData:Le}=Re.actions;var ye=Re.reducer;const De=i.createSlice({name:"AppInfo",initialState:{value:{documentTitle:null,apiBaseUrl:null,appName:null,appVersion:null,appLogo:null,muiPremiumKey:null,enableAdministrationModule:!1,businessRoutes:[],businessNavigationItems:[],businessReduxReducers:{},businessCommonStoresMetaData:{},appTheme:{light:{primaryColor:"#37505C",secondaryColor:"#ff6d00"},dark:{primaryColor:"#ea690e",secondaryColor:"#74776B"}}}},reducers:{setAppInfo:(e,t)=>{e.value=t.payload}}}),Ce=De.actions;const he={AppLayout:ce,UserSession:ue,loadingMask:fe,commonStores:ye,AppInfo:De.reducer};const Me=i.configureStore({reducer:he});!function(e,t){void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}("html,\r\nbody {\r\n height: 100%;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\n#root {\r\n height: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n overflow: hidden; \r\n}\r\n\r\n.red-row {\r\n background-color: #f0d8d8;\r\n}\r\n");const Ue=(e=768)=>{const[t,i]=s.useState(window.innerWidth<e);return s.useEffect((()=>{const t=()=>i(window.innerWidth<e);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[e]),t},Pe=()=>{const e=t.useDispatch();return{show:t=>{e(Oe(t))},hide:()=>{e(me())}}},Se=()=>{const e=Pe(),i=t.useSelector((e=>e.AppInfo.value.apiBaseUrl)),o=u.create({baseURL:i,timeout:6e5,withCredentials:!0});o.defaults.withCredentials=!0,o.interceptors.response.use((e=>e),(e=>(e&&(e.response&&(e.response.status&&401===e.response.status))?A.toast.error("your session is now expired, you need to login again",{autoClose:!1}):e&&(e.response&&(e.response.status&&403===e.response.status))?A.toast.error("you aren't authorized to process this request"):e&&(e.response&&(e.response.status&&500===e.response.status))?A.toast.error(e.response.data):A.toast.error("failed to communicate with the server ... try again later"),"ERROR")));return{handleGetRequest:async(t={endPointURI:"",parameters:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);const i=await o.get(t.endPointURI,{params:{...t.parameters},withCredentials:!0});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==i?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(i),i):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(i),"ERROR")},handlePostRequest:async(t={endPointURI:"",parameters:{},data:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);let i=await o.post(t.endPointURI,t.data,{params:t.parameters});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==i?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(i),i):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(i),"ERROR")},handleDeleteRequest:async(t={endPointURI:"",parameters:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);let i=await o.delete(t.endPointURI,{params:{...t.parameters}});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==i?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(i),i):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(i),"ERROR")},HandleDownloadHTTPPostPDF:async(t={endPointURI:"",parameters:{},data:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);const i=await o.post(t.endPointURI,t.data,{responseType:"blob"});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==i?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(i),i):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(i),"ERROR")}}};var be={"System Administration":"إدارة النظام",welcome:"مرحبا",APP_SETTINGS_LABEL:"الاعدادت",WELCOME_MESSAGE:"اهلا , هذا التطبيق تحت التطوير و هو مصمم للتطبيقات المستقبلية",APP_FOOTER:"حقوق الملكية<sup>©</sup> 2023-2026. جميع الحقوق محفوظة.",TREE_HOME_NODE:"الصفحة الرئيسية",TREE_ADMINISTRATION_NODE:"ادارة النظام",COMMING_SOON_LABEL:"قريبا",TRIAL_LABEL:"تجريبي",GRID_ACTION_LABEL:"الاوامر",SAVE_BTN_LABEL:"حفظ",SEARCH_BTN_LABEL:"بحث",RESET_BTN_LABEL:"ازالة البحث",CANCEL_BTN_LABEL:"الغاء",DELETE_BTN_LABEL:"حذف",EDIT_BTN_LABEL:"تعديل",ADD_BTN_LABEL:"اضافة",RESET_GRID_STATE:"مسح حالة الجدول",EXPORT_EXECL_LABEL:"تحميل Execl",CHANGE_ORG_LABEL:"تغير المنظومة",ORG_LABEL:"المنظومة",VERSION:"رقم الاصدار",COPY_RIGHTS:"جميع الحقوق محفوظة © 2024-2030",SUCCESS_MESSAGE:"تم تنفيذ طلبك بنجاح",REQUIRED_FIELD:"هذه الخانة مطلوبة",ACTIONS:"الاوامر",CONFIRMATION:"تأكيد",DELETION_CONFIRMATION_MESSAGE:"هل انت متأكد من حذف هذا البيان؟",ACTION_CONFIRMATION:"هل انت متأكد من تنفيذ هذه العملية؟",YES_LABEL:"نعم",NO_LABEL:"لا",AT_LEAST_ONE_RECORD_SELECTED_MESSAGE:"يجب ان تختار علي الاقل بند واحد لتنقيذ هذه العملية"};var ge={welcome:"welcome",APP_SETTINGS_LABEL:"Settings",WELCOME_MESSAGE:" Hello, This is an under development template for future apps",APP_FOOTER:"Copyright<sup>©</sup> 2023-2026. All rights reserved.",TREE_HOME_NODE:"Home",TREE_ADMINISTRATION_NODE:"Administration",COMMING_SOON_LABEL:"soon",GRID_ACTION_LABEL:"Actions",TRIAL_LABEL:"trial",SAVE_BTN_LABEL:"Save",SEARCH_BTN_LABEL:"search",RESET_BTN_LABEL:"Reset",CANCEL_BTN_LABEL:"Cancel",DELETE_BTN_LABEL:"Delete",EDIT_BTN_LABEL:"Edit",ADD_BTN_LABEL:"Add",RESET_GRID_STATE:"Clear Grid State",EXPORT_EXECL_LABEL:"Export to excel",CHANGE_ORG_LABEL:"Change Organization",ORG_LABEL:"Organization",VERSION:"V.",COPY_RIGHTS:"Copyright © 2024-2030. All rights reserved.",SUCCESS_MESSAGE:"Your request has been processed successfully",REQUIRED_FIELD:"This field is required",ACTIONS:"Actions",CONFIRMATION:"Confirmation",DELETION_CONFIRMATION_MESSAGE:"Are you sure you want to delete this record ?",ACTION_CONFIRMATION:"Are you sure you want to process this action ?",YES_LABEL:"Yes",NO_LABEL:"No",AT_LEAST_ONE_RECORD_SELECTED_MESSAGE:"You must at least select on record to process this action on"};const xe={en:{translation:{...ge,...{SYSTEM_ADMINISTRATION:"System Administration",SYSTEM_MANAGEMENT:"System Management",SECURITY_ADMINISTRATION:"Security",DEVELOPMENT_TOOLS:"Development Tools",SYSTEM_MONITORING:"System Follow up",ATTACHMENT_SINGULAR:"attachment",ATTACHMENT_PLURAL:"attachments",ATTACHMENT_ATTACHMENT_NUMBER:"Attachment number",ATTACHMENT_ATTACHMENT_SIZE:"Attachment size",ATTACHMENT_ATTACHMENT_TYPE:"Attachment type",ATTACHMENT_CATEGORY:"Category",ATTACHMENT_DOC_TYPE:"Doc type",ATTACHMENT_FILE_NAME:"File name",ATTACHMENT_REF_KEY:"Ref key",ATTACHMENT_REMARK:"Remark",AUTHORITY_SINGULAR:"Authority",AUTHORITY_PLURAL:"Authorities",AUTHORITY_AUTHORITY_CODE:"Authority code",AUTHORITY_AUTHORITY_DESCRIPTION:"Authority description",AUTHORITY_AUTHORITY_NAME:"Authority name",AUTHORITY_IS_ACTIVE:"Is active",AUTHORITY_ORGANIZATION_APPLICATION_ID:"Organization application id",BLUE_PRINT_SINGULAR:"BluePrint",BLUE_PRINT_PLURAL:"BluePrints",BLUE_PRINT_BLUE_PRINT_CODE:"Blue print code",BLUE_PRINT_QUERY_ID:"Query id",BLUE_PRINT_PAGE_SINGULAR:"blueprintpage",BLUE_PRINT_PAGE_PLURAL:"blueprintpages",BLUE_PRINT_PAGE_BLUE_PRINT_ID:"Blue print id",BLUE_PRINT_PAGE_ENABLED:"Enabled",BLUE_PRINT_PAGE_PAGE_NAME:"Page name",BLUE_PRINT_PAGE_PAGE_ORDER:"Page order",BLUE_PRINT_PAGE_QUERY_ID:"Query id",BLUE_PRINT_POINT_SINGULAR:"blueprintpoint",BLUE_PRINT_POINT_PLURAL:"blueprintpoints",BLUE_PRINT_POINT_BLUE_PRINT_PAGE_ID:"Blue print page id",BLUE_PRINT_POINT_FONT_SIZE:"Font size",BLUE_PRINT_POINT_POINT_CODE:"Point code",BLUE_PRINT_POINT_X:"X",BLUE_PRINT_POINT_Y:"Y",DASHBOARD_SINGULAR:"Dashboard",DASHBOARD_PLURAL:"Dashboards",DASHBOARD_DASHBOARD_CODE:"Dashboard code",DASHBOARD_DASHBOARD_NAME:"Dashboard name",DASHBOARD_DASHBOARD_TITLE:"Dashboard title",DASHBOARD_ENABLED:"Enabled",DASHBOARD_LOAD_WIDGETS_INDIVIDUALLY:"Load widgets individually",DASHBOARD_NUMBER_OF_COLUMNS:"Number of columns",DASHBOARD_WIDGET_SINGULAR:"Widget",DASHBOARD_WIDGET_PLURAL:"Widgets",DASHBOARD_WIDGET_DASHBOARD_ID:"Dashboard id",DASHBOARD_WIDGET_ENABLED:"Enabled",DASHBOARD_WIDGET_WIDGET_ID:"Widget id",DASHBOARD_WIDGET_WIDGET_ORDER:"Widget order",DATA_QUERY_SINGULAR:"Data Query",DATA_QUERY_PLURAL:"Data Queries",DATA_QUERY_DATASOURCE_CON_ID:"Datasource con id",DATA_QUERY_QUERY_NAME:"Query name",DATA_QUERY_QUERY_STR:"Query str",DATA_QUERY_USE_SYS_CON:"Use sys con",DATA_QUERY_PARAMETER_SINGULAR:"dataqueryparameter",DATA_QUERY_PARAMETER_PLURAL:"dataqueryparameters",DATA_QUERY_PARAMETER_DATA_QUERY_ID:"Data query id",DATA_QUERY_PARAMETER_DEFAULT_VALUE:"Default value",DATA_QUERY_PARAMETER_ENABLED:"Enabled",DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",DATA_QUERY_PARAMETER_HIDDEN:"Hidden",DATA_QUERY_PARAMETER_MANDATORY:"Mandatory",DATASOURCE_CONNECTION_SINGULAR:"Datasource",DATASOURCE_CONNECTION_PLURAL:"Datasources",DATASOURCE_CONNECTION_CONNECTION_NAME:"Connection name",DATASOURCE_CONNECTION_DATASOURCE_PASSWORD:"Datasource password",DATASOURCE_CONNECTION_DATASOURCE_TYPE:"Datasource type",DATASOURCE_CONNECTION_DATASOURCE_URL:"Datasource url",DATASOURCE_CONNECTION_DATASOURCE_USERNAME:"Datasource username",DATASOURCE_CONNECTION_ENABLED:"Enabled",EMPLOYEE_SINGULAR:"Employee",EMPLOYEE_PLURAL:"Employees",EMPLOYEE_EMAIL:"Email",EMPLOYEE_EMPLOYEE_NAME:"Employee name",EMPLOYEE_EMPLOYEE_NUMBER:"Employee number",EMPLOYEE_MOBILE_NUMBER:"Mobile number",EMPLOYEE_ORGANIZATION_RANK_ID:"Organization rank id",EMPLOYEE_ORGANIZATION_UNIT_ID:"Organization unit id",EMPLOYEE_USER_ACCOUNT_ID:"User account id",ENTITY_PARAMETER_SINGULAR:"Parameter",ENTITY_PARAMETER_PLURAL:"Parameters",ENTITY_PARAMETER_ENABLED:"Enabled",ENTITY_PARAMETER_PARAMETER_CODE:"Parameter code",ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID:"Parameter data query id",ENTITY_PARAMETER_PARAMETER_DATASET:"Parameter dataset",ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD:"Parameter display field",ENTITY_PARAMETER_PARAMETER_LABEL:"Parameter label",ENTITY_PARAMETER_PARAMETER_TYPE:"Parameter type",ENTITY_PARAMETER_PARAMETER_VALUE_FIELD:"Parameter value field",ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT:"Parameter value format",EXCEL_UPLOADER_DETAIL_SINGULAR:"exceluploaderdetail",EXCEL_UPLOADER_DETAIL_PLURAL:"exceluploaderdetails",EXCEL_UPLOADER_DETAIL_COLUMN_INDEX:"Column index",EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID:"Excel uploader header id",EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID:"Lookup query id",EXCEL_UPLOADER_DETAIL_TABLE_FIELD:"Table field",EXCEL_UPLOADER_HEADER_SINGULAR:"Excel Uploader",EXCEL_UPLOADER_HEADER_PLURAL:"Excel Uploader",EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID:"Uploader connection id",EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME:"Uploader database name",EXCEL_UPLOADER_HEADER_UPLOADER_NAME:"Uploader name",EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME:"Uploader table name",LOOKUP_SINGULAR:"System Lookup",LOOKUP_PLURAL:"System Lookups",LOOKUP_ENABLED:"Enabled",LOOKUP_LOOKUP_AR_DISPLAY:"Lookup ar display",LOOKUP_LOOKUP_EN_DISPLAY:"Lookup en display",LOOKUP_LOOKUP_TYPE:"Lookup type",LOOKUP_LOOKUP_VALUE:"Lookup value",LOOKUP_ORG_CODE:"Org code",MAIL_ATTACHMENT_SINGULAR:"mailattachment",MAIL_ATTACHMENT_PLURAL:"mailattachments",MAIL_ATTACHMENT_ENABLED:"Enabled",MAIL_ATTACHMENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_ATTACHMENT_REPORT_ID:"Report id",MAIL_BODY_SINGULAR:"mailbody",MAIL_BODY_PLURAL:"mailbodies",MAIL_BODY_BODY_CONTENT:"Body content",MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID:"Body content data query id",MAIL_BODY_BODY_ORDER:"Body order",MAIL_BODY_ENABLED:"Enabled",MAIL_BODY_IS_MAIN:"Is main",MAIL_BODY_MAIL_TEMPLATE_ID:"Mail template id",MAIL_BODY_PRINT_FOR_EACH_RECORD:"Print for each record",MAIL_NOTIFICATION_QUEUE_SINGULAR:"Mail Notification Queue",MAIL_NOTIFICATION_QUEUE_PLURAL:"Mail Notification Queue",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID:"Custom mail attached report id",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY:"Custom mail body",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT:"Custom mail subject",MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS:"Custom recipients",MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS:"Mail parameters",MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID:"Mail template id",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE:"Notification message",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME:"Notification time",MAIL_RECIPIENT_SINGULAR:"mailrecipient",MAIL_RECIPIENT_PLURAL:"mailrecipients",MAIL_RECIPIENT_ENABLED:"Enabled",MAIL_RECIPIENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_RECIPIENT_RECIPIENT_MAIL:"Recipient mail",MAIL_RECIPIENT_RECIPIENT_TYPE:"Recipient type",MAIL_TEMPLATE_SINGULAR:"Mail Templates",MAIL_TEMPLATE_PLURAL:"Mail Templates",MAIL_TEMPLATE_ENABLED:"Enabled",MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID:"Mail cc data query id",MAIL_TEMPLATE_MAIL_SUBJECT:"Mail subject",MAIL_TEMPLATE_MAIL_TEMPLATE_CODE:"Mail template code",MAIL_TEMPLATE_MAIL_TEMPLATE_NAME:"Mail template name",MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID:"Mail to data query id",MAIL_TEMPLATE_PERIOD_TYPE:"Period type",MAIL_TEMPLATE_PERIOD_VALUE:"Period value",MAIL_TEMPLATE_PERIODICAL:"Periodical",MAIL_TEMPLATE_START_SENDING_AT:"Start sending at",MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID:"Subject data query id",NEW_TABLE_SINGULAR:"newtable",NEW_TABLE_PLURAL:"newtables",NEW_TABLE_TEST_DATE:"Test date",NEW_TABLE_TEST_LONG:"Test long",NEW_TABLE_TEST_DECIMAL:"Test decimal",NOTIFICATION_SINGULAR:"Notification",NOTIFICATION_PLURAL:"Notifications",NOTIFICATION_ENABLED:"Enabled",NOTIFICATION_NOTIFICATION_ACTION_KEY:"Notification action key",NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD:"Notification action payload",NOTIFICATION_NOTIFICATION_CODE:"Notification code",NOTIFICATION_NOTIFICATION_ICON:"Notification icon",NOTIFICATION_NOTIFICATION_QUERY_ID:"Notification query id",NOTIFICATION_NOTIFICATION_TEXT:"Notification text",NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID:"Users to notify query id",NOTIFICATION_QUEUE_SINGULAR:"Notification Queue",NOTIFICATION_QUEUE_PLURAL:"Notification Queue",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY:"Custom notification action key",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD:"Custom notification action payload",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON:"Custom notification icon",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT:"Custom notification text",NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",NOTIFICATION_QUEUE_NOTIFICATION_CODE:"Notification code",NOTIFICATION_QUEUE_NOTIFICATION_PARAMS:"Notification params",NOTIFICATION_QUEUE_NOTIFIED_TIME:"Notified time",NOTIFICATION_QUEUE_USERNAME:"Username",ORGANIZATION_SINGULAR:"Organization",ORGANIZATION_PLURAL:"Organizations",ORGANIZATION_ORGANIZATION_CODE:"Organization code",ORGANIZATION_IS_ACTIVE:"Is active",ORGANIZATION_ORGANIZATION_NAME:"Organization name",ORGANIZATION_APPLICATION_SINGULAR:"Module",ORGANIZATION_APPLICATION_PLURAL:"Modules",ORGANIZATION_APPLICATION_APPLICATION_CODE:"Application code",ORGANIZATION_APPLICATION_APPLICATION_DESCRIPTION:"Application description",ORGANIZATION_APPLICATION_APPLICATION_NAME:"Application name",ORGANIZATION_APPLICATION_IS_ACTIVE:"Is active",ORGANIZATION_RANK_SINGULAR:"organizationrank",ORGANIZATION_RANK_PLURAL:"organizationranks",ORGANIZATION_RANK_ENABLED:"Enabled",ORGANIZATION_RANK_ORGANIZATION_CODE:"Organization code",ORGANIZATION_RANK_RANK_CODE:"Rank code",ORGANIZATION_RANK_RANK_NAME:"Rank name",ORGANIZATION_RANK_RANK_ORDER:"Rank order",ORGANIZATION_UNIT_SINGULAR:"organizationunit",ORGANIZATION_UNIT_PLURAL:"organizationunits",ORGANIZATION_UNIT_ENABLED:"Enabled",ORGANIZATION_UNIT_ORGANIZATION_CODE:"Organization code",ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME:"Organization unit ar name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME:"Organization unit en name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID:"Organization unit parent id",ORGANIZATION_USER_SINGULAR:"organizationuser",ORGANIZATION_USER_PLURAL:"organizationusers",ORGANIZATION_USER_IS_ACTIVE:"Is active",ORGANIZATION_USER_IS_DEFAULT:"Is default",ORGANIZATION_USER_ORGANIZATION_CODE:"Organization code",ORGANIZATION_USER_USERNAME:"Username",ORGANIZATION_USER_ROLE_SINGULAR:"Role",ORGANIZATION_USER_ROLE_PLURAL:"Roles",ORGANIZATION_USER_ROLE_END_DATE:"End date",ORGANIZATION_USER_ROLE_IS_ACTIVE:"Is active",ORGANIZATION_USER_ROLE_ORGANIZATION_CODE:"Organization code",ORGANIZATION_USER_ROLE_ROLE_ID:"Role id",ORGANIZATION_USER_ROLE_START_DATE:"Start date",ORGANIZATION_USER_ROLE_USERNAME:"Username",REPORT_SINGULAR:"System Report",REPORT_PLURAL:"System Reports",REPORT_DATASOURCE_CON_ID:"Datasource con id",REPORT_REPORT_BLUE_PRINT_ID:"Report blue print id",REPORT_REPORT_CATEGORY:"Report category",REPORT_REPORT_CODE:"Report code",REPORT_REPORT_EXCEL_DATA_QUERY_ID:"Report excel data query id",REPORT_REPORT_EXPORT_NAME:"Report export name",REPORT_REPORT_JASPER_NAME:"Report jasper name",REPORT_REPORT_JASPER_PATH:"Report jasper path",REPORT_REPORT_MENU_CODE:"Report menu code",REPORT_REPORT_NAME:"Report name",REPORT_REPORT_TYPE:"Report type",REPORT_USE_SYS_DATASOURCE:"Use sys datasource",REPORT_PARAMETER_SINGULAR:"reportparameter",REPORT_PARAMETER_PLURAL:"reportparameters",REPORT_PARAMETER_DEFAULT_VALUE:"Default value",REPORT_PARAMETER_ENABLED:"Enabled",REPORT_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",REPORT_PARAMETER_HIDDEN:"Hidden",REPORT_PARAMETER_MANDATORY:"Mandatory",REPORT_PARAMETER_REPORT_ID:"Report id",ROLE_SINGULAR:"role",ROLE_PLURAL:"roles",ROLE_DESCRIPTION:"Description",ROLE_IS_ACTIVE:"Is active",ROLE_ORGANIZATION_APPLICATION_ID:"Organization application id",ROLE_ROLE_NAME:"Role name",ROLE_AUTHORITY_SINGULAR:"roleauthority",ROLE_AUTHORITY_PLURAL:"roleauthorities",ROLE_AUTHORITY_AUTHORITY_ID:"Authority id",ROLE_AUTHORITY_IS_ACTIVE:"Is active",ROLE_AUTHORITY_ROLE_ID:"Role id",USER_ACCOUNT_SINGULAR:"useraccount",USER_ACCOUNT_PLURAL:"useraccounts",USER_ACCOUNT_ENABLED:"Enabled",USER_ACCOUNT_PASSWORD:"Password",USER_ACCOUNT_USERNAME:"Username",USER_REQUEST_SINGULAR:"userrequest",USER_REQUEST_PLURAL:"userrequests",USER_REQUEST_IS_NOTIFIED:"Is notified",USER_REQUEST_MAILS_TO_NOTIFY:"Mails to notify",USER_REQUEST_NOTIFICATION_MESSAGE:"Notification message",USER_REQUEST_NOTIFICATION_TIME:"Notification time",USER_REQUEST_NOTIFICATION_TYPE:"Notification type",USER_REQUEST_NOTIFY_USER:"Notify user",USER_REQUEST_REPORT_CODE:"Report code",USER_REQUEST_REPORT_PARAMETERS:"Report parameters",USER_REQUEST_REQUEST_TYPE:"Request type",USER_REQUEST_STATUS:"Status",USER_REQUEST_STATUS_MESSAGE:"Status message",WIDGET_SINGULAR:"widget",WIDGET_PLURAL:"widgets",WIDGET_DATA_QUERY_ID:"Data query id",WIDGET_ENABLED:"Enabled",WIDGET_HEIGHT:"Height",WIDGET_HORIZONTAL_AXIS_FIELD:"Horizontal axis field",WIDGET_HORIZONTAL_AXIS_LABEL:"Horizontal axis label",WIDGET_ICON:"Icon",WIDGET_SERIES_KEYS:"Series keys",WIDGET_TITLE:"Title",WIDGET_VERTICAL_AXIS_FIELD:"Vertical axis field",WIDGET_VERTICAL_AXIS_LABEL:"Vertical axis label",WIDGET_WIDGET_DESCRIPTION:"Widget description",WIDGET_WIDGET_NAME:"Widget name",WIDGET_WIDGET_TYPE:"Widget type",WIDGET_WIDTH:"Width",WORKFLOW_DOCUMENT_SINGULAR:"Workflow",WORKFLOW_DOCUMENT_PLURAL:"Workflows",WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON:"App notification icon",WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE:"App notification style",WORKFLOW_DOCUMENT_APP_VIEW_ROUTE:"App view route",WORKFLOW_DOCUMENT_DOCUMENT_CODE:"Document code",WORKFLOW_DOCUMENT_DOCUMENT_CON_ID:"Document con id",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME:"Document database name",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE:"Document database table",WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD:"Document id field",WORKFLOW_DOCUMENT_DOCUMENT_NAME:"Document name",WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD:"Document number field",WORKFLOW_DOCUMENT_DOCUMENT_REPORT_ID:"Document report id",WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD:"Document status field",WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED:"Mail approval allowed",WORKFLOW_DOCUMENT_ORG_CODE:"Org code",WORKFLOW_DOCUMENT_USE_SYSTEM_CON:"Use system con",WORKFLOW_DOCUMENT_ACTION_SINGULAR:"workflowdocumentaction",WORKFLOW_DOCUMENT_ACTION_PLURAL:"workflowdocumentactions",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE:"Document action code",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_NAME:"Document action name",WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID:"Next document status id",WORKFLOW_DOCUMENT_ACTION_POST_ACTION_ENDPOINT:"Post action endpoint",WORKFLOW_DOCUMENT_ACTION_PRE_ACTION_ENDPOINT:"Pre action endpoint",WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT:"Require comment",WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_HISTORY_SINGULAR:"workflowdocumentactionhistory",WORKFLOW_DOCUMENT_ACTION_HISTORY_PLURAL:"workflowdocumentactionhistories",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_BY:"Action by",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_COMMENT:"Action comment",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_METHOD:"Action method",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_TIME:"Action time",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_REF_ID:"Document ref id",WORKFLOW_DOCUMENT_ACTION_HISTORY_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_MAIL_SINGULAR:"workflowdocumentactionmail",WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL:"workflowdocumentactionmails",WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED:"Enabled",WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID:"Mail template id",WORKFLOW_DOCUMENT_MAIL_LOG_SINGULAR:"Workflow Mail Log",WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL:"Workflow Mail Logs",WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID:"Graph api msg id",WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED:"Is processed",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE:"Mail action code",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT:"Mail body content",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM:"Mail from",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT:"Mail subject",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE:"Process message",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME:"Process time",WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID:"Ref doc id",WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_STATUS_SINGULAR:"workflowdocumentstatus",WORKFLOW_DOCUMENT_STATUS_PLURAL:"workflowdocumentstatuses",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE:"Document status code",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_NAME:"Document status name",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER:"Document status order",WORKFLOW_DOCUMENT_STATUS_ENABLED:"Enabled",WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE:"Is zero state",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTION_TAKERS_QUERY_ID:"Next action takers query id",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTIONS_QUERY_ID:"Next actions query id",WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID:"Workflow document id"}}},ar:{translation:{...be,...{SYSTEM_ADMINISTRATION:"أدراة النظام",SECURITY_ADMINISTRATION:"حماية النظام",SYSTEM_MANAGEMENT:"System Management",DEVELOPMENT_TOOLS:"إدوات التطوير",SYSTEM_MONITORING:"متابعة النظام",ATTACHMENT_SINGULAR:"المرفق",ATTACHMENT_PLURAL:"المرفقات",ATTACHMENT_ATTACHMENT_NUMBER:"رقم المرفق",ATTACHMENT_ATTACHMENT_SIZE:"حجم المرفق",ATTACHMENT_ATTACHMENT_TYPE:"نوع المرفق",ATTACHMENT_CATEGORY:"المحموعة",ATTACHMENT_DOC_TYPE:"نوع الملف",ATTACHMENT_FILE_NAME:"اسم الملف",ATTACHMENT_REF_KEY:"مؤشر المسلسل",ATTACHMENT_REMARK:"ملاحظات",AUTHORITY_SINGULAR:"الصلاحية",AUTHORITY_PLURAL:"الصلاحيات",AUTHORITY_AUTHORITY_CODE:"كود الصلاحية",AUTHORITY_AUTHORITY_DESCRIPTION:"وصف الصلاحية",AUTHORITY_AUTHORITY_NAME:"اسم الصلاحية",AUTHORITY_IS_ACTIVE:"مفعل",AUTHORITY_ORGANIZATION_APPLICATION_ID:"اسم التطبيق",BLUE_PRINT_SINGULAR:"BluePrint",BLUE_PRINT_PLURAL:"BluePrints",BLUE_PRINT_BLUE_PRINT_CODE:"Blue print code",BLUE_PRINT_QUERY_ID:"Query id",BLUE_PRINT_PAGE_SINGULAR:"blueprintpage",BLUE_PRINT_PAGE_PLURAL:"blueprintpages",BLUE_PRINT_PAGE_BLUE_PRINT_ID:"Blue print id",BLUE_PRINT_PAGE_ENABLED:"Enabled",BLUE_PRINT_PAGE_PAGE_NAME:"Page name",BLUE_PRINT_PAGE_PAGE_ORDER:"Page order",BLUE_PRINT_PAGE_QUERY_ID:"Query id",BLUE_PRINT_POINT_SINGULAR:"blueprintpoint",BLUE_PRINT_POINT_PLURAL:"blueprintpoints",BLUE_PRINT_POINT_BLUE_PRINT_PAGE_ID:"Blue print page id",BLUE_PRINT_POINT_FONT_SIZE:"Font size",BLUE_PRINT_POINT_POINT_CODE:"Point code",BLUE_PRINT_POINT_X:"X",BLUE_PRINT_POINT_Y:"Y",DASHBOARD_SINGULAR:"Dashboard",DASHBOARD_PLURAL:"Dashboards",DASHBOARD_DASHBOARD_CODE:"Dashboard code",DASHBOARD_DASHBOARD_NAME:"Dashboard name",DASHBOARD_DASHBOARD_TITLE:"Dashboard title",DASHBOARD_ENABLED:"Enabled",DASHBOARD_LOAD_WIDGETS_INDIVIDUALLY:"Load widgets individually",DASHBOARD_NUMBER_OF_COLUMNS:"Number of columns",DASHBOARD_WIDGET_SINGULAR:"Widget",DASHBOARD_WIDGET_PLURAL:"Widgets",DASHBOARD_WIDGET_DASHBOARD_ID:"Dashboard id",DASHBOARD_WIDGET_ENABLED:"Enabled",DASHBOARD_WIDGET_WIDGET_ID:"Widget id",DASHBOARD_WIDGET_WIDGET_ORDER:"Widget order",DATA_QUERY_SINGULAR:"Data Query",DATA_QUERY_PLURAL:"Data Queries",DATA_QUERY_DATASOURCE_CON_ID:"Datasource",DATA_QUERY_QUERY_NAME:"Query name",DATA_QUERY_QUERY_STR:"Query str",DATA_QUERY_USE_SYS_CON:"Use sys con",DATA_QUERY_PARAMETER_SINGULAR:"Parameter",DATA_QUERY_PARAMETER_PLURAL:"Parameters",DATA_QUERY_PARAMETER_DATA_QUERY_ID:"Data query id",DATA_QUERY_PARAMETER_DEFAULT_VALUE:"Default value",DATA_QUERY_PARAMETER_ENABLED:"مفعل",DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID:"Parameter",DATA_QUERY_PARAMETER_HIDDEN:"غير مرئي",DATA_QUERY_PARAMETER_MANDATORY:"اجباري",DATASOURCE_CONNECTION_SINGULAR:"Datasource",DATASOURCE_CONNECTION_PLURAL:"Datasources",DATASOURCE_CONNECTION_CONNECTION_NAME:"Connection name",DATASOURCE_CONNECTION_DATASOURCE_PASSWORD:"Datasource password",DATASOURCE_CONNECTION_DATASOURCE_TYPE:"Datasource type",DATASOURCE_CONNECTION_DATASOURCE_URL:"Datasource url",DATASOURCE_CONNECTION_DATASOURCE_USERNAME:"Datasource username",DATASOURCE_CONNECTION_ENABLED:"Enabled",EMPLOYEE_SINGULAR:"الموظف",EMPLOYEE_PLURAL:"الموظفين",EMPLOYEE_EMAIL:"الايميل",EMPLOYEE_EMPLOYEE_NAME:"اسم الموظف",EMPLOYEE_EMPLOYEE_NUMBER:"الرقم الوظيفي",EMPLOYEE_MOBILE_NUMBER:"رقم الموبايل",EMPLOYEE_ORGANIZATION_RANK_ID:"Organization rank",EMPLOYEE_ORGANIZATION_UNIT_ID:"Organization unit",EMPLOYEE_USER_ACCOUNT_ID:"User account id",ENTITY_PARAMETER_SINGULAR:"Parameter",ENTITY_PARAMETER_PLURAL:"Parameters",ENTITY_PARAMETER_ENABLED:"Enabled",ENTITY_PARAMETER_PARAMETER_CODE:"Parameter code",ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID:"Parameter data query id",ENTITY_PARAMETER_PARAMETER_DATASET:"Parameter dataset",ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD:"Parameter display field",ENTITY_PARAMETER_PARAMETER_LABEL:"Parameter label",ENTITY_PARAMETER_PARAMETER_TYPE:"Parameter type",ENTITY_PARAMETER_PARAMETER_VALUE_FIELD:"Parameter value field",ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT:"Parameter value format",EXCEL_UPLOADER_DETAIL_SINGULAR:"exceluploaderdetail",EXCEL_UPLOADER_DETAIL_PLURAL:"exceluploaderdetails",EXCEL_UPLOADER_DETAIL_COLUMN_INDEX:"Column index",EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID:"Excel uploader header id",EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID:"Lookup query id",EXCEL_UPLOADER_DETAIL_TABLE_FIELD:"Table field",EXCEL_UPLOADER_HEADER_SINGULAR:"Excel Uploader",EXCEL_UPLOADER_HEADER_PLURAL:"Excel Uploader",EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID:"Uploader connection id",EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME:"Uploader database name",EXCEL_UPLOADER_HEADER_UPLOADER_NAME:"Uploader name",EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME:"Uploader table name",LOOKUP_SINGULAR:"قائمة النظام",LOOKUP_PLURAL:"قوائم النظام",LOOKUP_ENABLED:"Enabled",LOOKUP_LOOKUP_AR_DISPLAY:"Lookup ar display",LOOKUP_LOOKUP_EN_DISPLAY:"Lookup en display",LOOKUP_LOOKUP_TYPE:"Lookup type",LOOKUP_LOOKUP_VALUE:"Lookup value",LOOKUP_ORG_CODE:"Org code",MAIL_ATTACHMENT_SINGULAR:"mailattachment",MAIL_ATTACHMENT_PLURAL:"mailattachments",MAIL_ATTACHMENT_ENABLED:"Enabled",MAIL_ATTACHMENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_ATTACHMENT_REPORT_ID:"Report id",MAIL_BODY_SINGULAR:"mailbody",MAIL_BODY_PLURAL:"mailbodies",MAIL_BODY_BODY_CONTENT:"Body content",MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID:"Body content data query id",MAIL_BODY_BODY_ORDER:"Body order",MAIL_BODY_ENABLED:"Enabled",MAIL_BODY_IS_MAIN:"Is main",MAIL_BODY_MAIL_TEMPLATE_ID:"Mail template id",MAIL_BODY_PRINT_FOR_EACH_RECORD:"Print for each record",MAIL_NOTIFICATION_QUEUE_SINGULAR:"Mail Notification Queue",MAIL_NOTIFICATION_QUEUE_PLURAL:"Mail Notification Queue",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID:"Custom mail attached report id",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY:"Custom mail body",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT:"Custom mail subject",MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS:"Custom recipients",MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS:"Mail parameters",MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID:"Mail template id",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE:"Notification message",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME:"Notification time",MAIL_RECIPIENT_SINGULAR:"mailrecipient",MAIL_RECIPIENT_PLURAL:"mailrecipients",MAIL_RECIPIENT_ENABLED:"Enabled",MAIL_RECIPIENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_RECIPIENT_RECIPIENT_MAIL:"Recipient mail",MAIL_RECIPIENT_RECIPIENT_TYPE:"Recipient type",MAIL_TEMPLATE_SINGULAR:"Mail Templates",MAIL_TEMPLATE_PLURAL:"Mail Templates",MAIL_TEMPLATE_ENABLED:"Enabled",MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID:"Mail cc data query id",MAIL_TEMPLATE_MAIL_SUBJECT:"Mail subject",MAIL_TEMPLATE_MAIL_TEMPLATE_CODE:"Mail template code",MAIL_TEMPLATE_MAIL_TEMPLATE_NAME:"Mail template name",MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID:"Mail to data query id",MAIL_TEMPLATE_PERIOD_TYPE:"Period type",MAIL_TEMPLATE_PERIOD_VALUE:"Period value",MAIL_TEMPLATE_PERIODICAL:"Periodical",MAIL_TEMPLATE_START_SENDING_AT:"Start sending at",MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID:"Subject data query id",NEW_TABLE_SINGULAR:"newtable",NEW_TABLE_PLURAL:"newtables",NEW_TABLE_TEST_DATE:"Test date",NEW_TABLE_TEST_LONG:"Test long",NEW_TABLE_TEST_DECIMAL:"Test decimal",NOTIFICATION_SINGULAR:"Notification",NOTIFICATION_PLURAL:"Notifications",NOTIFICATION_ENABLED:"Enabled",NOTIFICATION_NOTIFICATION_ACTION_KEY:"Notification action key",NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD:"Notification action payload",NOTIFICATION_NOTIFICATION_CODE:"Notification code",NOTIFICATION_NOTIFICATION_ICON:"Notification icon",NOTIFICATION_NOTIFICATION_QUERY_ID:"Notification query id",NOTIFICATION_NOTIFICATION_TEXT:"Notification text",NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID:"Users to notify query id",NOTIFICATION_QUEUE_SINGULAR:"Notification Queue",NOTIFICATION_QUEUE_PLURAL:"Notification Queue",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY:"Custom notification action key",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD:"Custom notification action payload",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON:"Custom notification icon",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT:"Custom notification text",NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",NOTIFICATION_QUEUE_NOTIFICATION_CODE:"Notification code",NOTIFICATION_QUEUE_NOTIFICATION_PARAMS:"Notification params",NOTIFICATION_QUEUE_NOTIFIED_TIME:"Notified time",NOTIFICATION_QUEUE_USERNAME:"Username",ORGANIZATION_SINGULAR:"Organization",ORGANIZATION_PLURAL:"Organizations",ORGANIZATION_ORGANIZATION_CODE:"Organization code",ORGANIZATION_IS_ACTIVE:"Is active",ORGANIZATION_ORGANIZATION_NAME:"Organization name",ORGANIZATION_APPLICATION_SINGULAR:"Module",ORGANIZATION_APPLICATION_PLURAL:"Modules",ORGANIZATION_APPLICATION_APPLICATION_CODE:"Application code",ORGANIZATION_APPLICATION_APPLICATION_DESCRIPTION:"Application description",ORGANIZATION_APPLICATION_APPLICATION_NAME:"Application name",ORGANIZATION_APPLICATION_IS_ACTIVE:"Is active",ORGANIZATION_RANK_SINGULAR:"organizationrank",ORGANIZATION_RANK_PLURAL:"organizationranks",ORGANIZATION_RANK_ENABLED:"Enabled",ORGANIZATION_RANK_ORGANIZATION_CODE:"Organization code",ORGANIZATION_RANK_RANK_CODE:"Rank code",ORGANIZATION_RANK_RANK_NAME:"Rank name",ORGANIZATION_RANK_RANK_ORDER:"Rank order",ORGANIZATION_UNIT_SINGULAR:"organizationunit",ORGANIZATION_UNIT_PLURAL:"organizationunits",ORGANIZATION_UNIT_ENABLED:"Enabled",ORGANIZATION_UNIT_ORGANIZATION_CODE:"Organization code",ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME:"Organization unit ar name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME:"Organization unit en name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID:"Organization unit parent id",ORGANIZATION_USER_SINGULAR:"organizationuser",ORGANIZATION_USER_PLURAL:"organizationusers",ORGANIZATION_USER_IS_ACTIVE:"Is active",ORGANIZATION_USER_IS_DEFAULT:"Is default",ORGANIZATION_USER_ORGANIZATION_CODE:"Organization code",ORGANIZATION_USER_USERNAME:"Username",ORGANIZATION_USER_ROLE_SINGULAR:"Role",ORGANIZATION_USER_ROLE_PLURAL:"Roles",ORGANIZATION_USER_ROLE_END_DATE:"End date",ORGANIZATION_USER_ROLE_IS_ACTIVE:"Is active",ORGANIZATION_USER_ROLE_ORGANIZATION_CODE:"Organization code",ORGANIZATION_USER_ROLE_ROLE_ID:"Role id",ORGANIZATION_USER_ROLE_START_DATE:"Start date",ORGANIZATION_USER_ROLE_USERNAME:"Username",REPORT_SINGULAR:"System Report",REPORT_PLURAL:"System Reports",REPORT_DATASOURCE_CON_ID:"Datasource con id",REPORT_REPORT_BLUE_PRINT_ID:"Report blue print id",REPORT_REPORT_CATEGORY:"Report category",REPORT_REPORT_CODE:"Report code",REPORT_REPORT_EXCEL_DATA_QUERY_ID:"Report excel data query id",REPORT_REPORT_EXPORT_NAME:"Report export name",REPORT_REPORT_JASPER_NAME:"Report jasper name",REPORT_REPORT_JASPER_PATH:"Report jasper path",REPORT_REPORT_MENU_CODE:"Report menu code",REPORT_REPORT_NAME:"Report name",REPORT_REPORT_TYPE:"Report type",REPORT_USE_SYS_DATASOURCE:"Use sys datasource",REPORT_PARAMETER_SINGULAR:"reportparameter",REPORT_PARAMETER_PLURAL:"reportparameters",REPORT_PARAMETER_DEFAULT_VALUE:"Default value",REPORT_PARAMETER_ENABLED:"Enabled",REPORT_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",REPORT_PARAMETER_HIDDEN:"Hidden",REPORT_PARAMETER_MANDATORY:"Mandatory",REPORT_PARAMETER_REPORT_ID:"Report id",ROLE_SINGULAR:"role",ROLE_PLURAL:"roles",ROLE_DESCRIPTION:"Description",ROLE_IS_ACTIVE:"Is active",ROLE_ORGANIZATION_APPLICATION_ID:"Organization application id",ROLE_ROLE_NAME:"Role name",ROLE_AUTHORITY_SINGULAR:"roleauthority",ROLE_AUTHORITY_PLURAL:"roleauthorities",ROLE_AUTHORITY_AUTHORITY_ID:"Authority id",ROLE_AUTHORITY_IS_ACTIVE:"Is active",ROLE_AUTHORITY_ROLE_ID:"Role id",USER_ACCOUNT_SINGULAR:"useraccount",USER_ACCOUNT_PLURAL:"useraccounts",USER_ACCOUNT_ENABLED:"Enabled",USER_ACCOUNT_PASSWORD:"Password",USER_ACCOUNT_USERNAME:"Username",USER_REQUEST_SINGULAR:"userrequest",USER_REQUEST_PLURAL:"userrequests",USER_REQUEST_IS_NOTIFIED:"Is notified",USER_REQUEST_MAILS_TO_NOTIFY:"Mails to notify",USER_REQUEST_NOTIFICATION_MESSAGE:"Notification message",USER_REQUEST_NOTIFICATION_TIME:"Notification time",USER_REQUEST_NOTIFICATION_TYPE:"Notification type",USER_REQUEST_NOTIFY_USER:"Notify user",USER_REQUEST_REPORT_CODE:"Report code",USER_REQUEST_REPORT_PARAMETERS:"Report parameters",USER_REQUEST_REQUEST_TYPE:"Request type",USER_REQUEST_STATUS:"Status",USER_REQUEST_STATUS_MESSAGE:"Status message",WIDGET_SINGULAR:"widget",WIDGET_PLURAL:"widgets",WIDGET_DATA_QUERY_ID:"Data query id",WIDGET_ENABLED:"Enabled",WIDGET_HEIGHT:"Height",WIDGET_HORIZONTAL_AXIS_FIELD:"Horizontal axis field",WIDGET_HORIZONTAL_AXIS_LABEL:"Horizontal axis label",WIDGET_ICON:"Icon",WIDGET_SERIES_KEYS:"Series keys",WIDGET_TITLE:"Title",WIDGET_VERTICAL_AXIS_FIELD:"Vertical axis field",WIDGET_VERTICAL_AXIS_LABEL:"Vertical axis label",WIDGET_WIDGET_DESCRIPTION:"Widget description",WIDGET_WIDGET_NAME:"Widget name",WIDGET_WIDGET_TYPE:"Widget type",WIDGET_WIDTH:"Width",WORKFLOW_DOCUMENT_SINGULAR:"Workflow",WORKFLOW_DOCUMENT_PLURAL:"Workflows",WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON:"App notification icon",WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE:"App notification style",WORKFLOW_DOCUMENT_APP_VIEW_ROUTE:"App view route",WORKFLOW_DOCUMENT_DOCUMENT_CODE:"Document code",WORKFLOW_DOCUMENT_DOCUMENT_CON_ID:"Document con id",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME:"Document database name",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE:"Document database table",WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD:"Document id field",WORKFLOW_DOCUMENT_DOCUMENT_NAME:"Document name",WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD:"Document number field",WORKFLOW_DOCUMENT_DOCUMENT_REPORT_ID:"Document report id",WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD:"Document status field",WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED:"Mail approval allowed",WORKFLOW_DOCUMENT_ORG_CODE:"Org code",WORKFLOW_DOCUMENT_USE_SYSTEM_CON:"Use system con",WORKFLOW_DOCUMENT_ACTION_SINGULAR:"workflowdocumentaction",WORKFLOW_DOCUMENT_ACTION_PLURAL:"workflowdocumentactions",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE:"Document action code",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_NAME:"Document action name",WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID:"Next document status id",WORKFLOW_DOCUMENT_ACTION_POST_ACTION_ENDPOINT:"Post action endpoint",WORKFLOW_DOCUMENT_ACTION_PRE_ACTION_ENDPOINT:"Pre action endpoint",WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT:"Require comment",WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_HISTORY_SINGULAR:"workflowdocumentactionhistory",WORKFLOW_DOCUMENT_ACTION_HISTORY_PLURAL:"workflowdocumentactionhistories",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_BY:"Action by",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_COMMENT:"Action comment",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_METHOD:"Action method",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_TIME:"Action time",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_REF_ID:"Document ref id",WORKFLOW_DOCUMENT_ACTION_HISTORY_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_MAIL_SINGULAR:"workflowdocumentactionmail",WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL:"workflowdocumentactionmails",WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED:"Enabled",WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID:"Mail template id",WORKFLOW_DOCUMENT_MAIL_LOG_SINGULAR:"Workflow Mail Log",WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL:"Workflow Mail Logs",WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID:"Graph api msg id",WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED:"Is processed",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE:"Mail action code",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT:"Mail body content",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM:"Mail from",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT:"Mail subject",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE:"Process message",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME:"Process time",WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID:"Ref doc id",WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_STATUS_SINGULAR:"workflowdocumentstatus",WORKFLOW_DOCUMENT_STATUS_PLURAL:"workflowdocumentstatuses",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE:"Document status code",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_NAME:"Document status name",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER:"Document status order",WORKFLOW_DOCUMENT_STATUS_ENABLED:"Enabled",WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE:"Is zero state",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTION_TAKERS_QUERY_ID:"Next action takers query id",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTIONS_QUERY_ID:"Next actions query id",WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID:"Workflow document id"}}}};I.use(O.initReactI18next).init({resources:xe,lng:localStorage.getItem("language")||"en",fallbackLng:"en"});const ve=l.styled(E,{shouldForwardProp:e=>"open"!==e})((({theme:e})=>{const i=t.useSelector((e=>e.AppLayout)),o=Ue();return{transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),variants:[{props:({open:e})=>e,style:{width:o?void 0:"calc(100% - 350px)",marginLeft:o||"ltr"!==i.appDirection?void 0:"350px",marginRight:o||"rtl"!==i.appDirection?void 0:"350px",transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}]}})),Be=()=>{const i=t.useSelector((e=>e.AppInfo.value)),o=t.useSelector((e=>e.AppLayout)),r=t.useSelector((e=>e.UserSession)),{handleGetRequest:a}=Se(),n=Ue(),d=t.useDispatch();return e.jsx(ve,{position:"fixed",open:o.sideBarOpened,children:e.jsxs(c,{children:[e.jsx(l.IconButton,{color:"inherit","aria-label":"open drawer",onClick:()=>{d(Ee.toggleSideBarState())},edge:"start",sx:[{mr:"ltr"===o.appDirection?2:void 0,ml:"rtl"===o.appDirection?2:void 0},o.sideBarOpened&&{display:"none"}],children:e.jsx(T.FontAwesomeIcon,{icon:"bars"})}),e.jsx(l.Avatar,{src:i.appLogo,sx:{marginRight:1,marginLeft:1}}),e.jsx(l.Typography,{variant:"h6",noWrap:!0,component:"div",sx:{flex:1},children:n?"":i.appName}),e.jsx(l.IconButton,{color:"inherit",onClick:()=>{d(Ee.setThemeMode("light"===o.themeMode?"dark":"light")),localStorage.setItem("themeMode","light"===o.themeMode?"dark":"light")},children:"light"===o.themeMode?e.jsx(T.FontAwesomeIcon,{icon:"moon"}):e.jsx(T.FontAwesomeIcon,{icon:{prefix:"far",iconName:"sun"}})}),e.jsx(l.IconButton,{color:"inherit",onClick:()=>{let e="ar"===I.language?"en":"ar";var t;t=e,I.changeLanguage(t),localStorage.setItem("language",t),d(Ee.setAppDirection("ar"===e?"rtl":"ltr"))},children:e.jsx(T.FontAwesomeIcon,{icon:"language"})}),e.jsx(l.Avatar,{}),e.jsx("div",{style:{marginLeft:5,marginRight:5},children:n?"":r.value?.userProfile?.username}),e.jsx(l.IconButton,{color:"inherit",onClick:async()=>{try{await a({endPointURI:"api/auth/logout"})}catch(e){console.log("logout error",e)}d(Ae.setUnAuthenticated())},children:e.jsx(T.FontAwesomeIcon,{rotation:"rtl"===o.appDirection?180:void 0,icon:"arrow-right-from-bracket"})})]})})},Fe=l.styled("div")((({theme:e})=>({display:"flex",alignItems:"center",...e.mixins.toolbar,justifyContent:"flex-end"})));function we(e){var t,i,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(i=we(e[t]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function We(){for(var e,t,i=0,o="",r=arguments.length;i<r;i++)(e=arguments[i])&&(t=we(e))&&(o&&(o+=" "),o+=t);return o}const Ge=()=>{const e=t.useSelector((e=>e.UserSession));return{UserSession:e,isUserAuthorized:t=>{if(e?.value?.authorities)for(let i of e.value.authorities)if("DEVELOPMENT_ADMIN"===i?.authority||i?.authority===t)return!0;return!1}}},ke=(e,t)=>{for(const i of t){if(i.id===e)return i;if(i.children){const t=ke(e,i.children);if(t)return t}}},je=[...[{id:"admin",label:"SYSTEM_ADMINISTRATION",authority:"DEVELOPMENT_ADMIN",icon:"cogs",children:[{id:"admin.systemManagement",label:"SYSTEM_MANAGEMENT",icon:"gear",children:[{id:"admin.systemManagement.Organization",label:"ORGANIZATION_PLURAL",icon:"globe",action:"NAVIGATION",actionPayload:{path:"admin/organizations"}},{id:"admin.systemManagement.OrganizationApplication",label:"ORGANIZATION_APPLICATION_PLURAL",icon:"diagram-project",action:"NAVIGATION",actionPayload:{path:"admin/organizationapplications"}}]},{id:"admin.security",label:"SECURITY_ADMINISTRATION",icon:"shield",children:[{id:"admin.security.Authority",label:"AUTHORITY_PLURAL",icon:"key",action:"NAVIGATION",actionPayload:{path:"admin/authorities"}},{id:"admin.Role",label:"ROLE_PLURAL",icon:"tag",action:"NAVIGATION",actionPayload:{path:"admin/roles"}},{id:"admin.security.Employee",label:"EMPLOYEE_PLURAL",icon:"user",action:"NAVIGATION",actionPayload:{path:"admin/employees"}}]},{id:"admin.devtools",label:"DEVELOPMENT_TOOLS",icon:"code",children:[{id:"admin.devtools.DatasourceConnection",label:"DATASOURCE_CONNECTION_PLURAL",icon:"plug",action:"NAVIGATION",actionPayload:{path:"admin/datasourceconnections"}},{id:"admin.devtools.EntityParameter",label:"ENTITY_PARAMETER_PLURAL",icon:"p",action:"NAVIGATION",actionPayload:{path:"admin/entityparameters"}},{id:"admin.devtools.DataQuery",label:"DATA_QUERY_PLURAL",icon:"file-code",action:"NAVIGATION",actionPayload:{path:"admin/dataqueries"}},{id:"admin.devtools.ExcelUploaderHeader",label:"EXCEL_UPLOADER_HEADER_PLURAL",icon:"file-excel",action:"NAVIGATION",actionPayload:{path:"admin/exceluploaderheaders"}},{id:"admin.devtools.Report",label:"REPORT_PLURAL",icon:"file",action:"NAVIGATION",actionPayload:{path:"admin/reports"}},{id:"admin.devtools.WorkflowDocument",label:"WORKFLOW_DOCUMENT_PLURAL",icon:"chart-diagram",action:"NAVIGATION",actionPayload:{path:"admin/workflowdocuments"}},{id:"admin.devtools.BluePrint",label:"BLUE_PRINT_PLURAL",icon:"fingerprint",action:"NAVIGATION",actionPayload:{path:"admin/blueprints"}},{id:"admin.devtools.Widget",label:"WIDGET_PLURAL",icon:"chart-pie",action:"NAVIGATION",actionPayload:{path:"admin/widgets"}},{id:"admin.devtools.Dashboard",label:"DASHBOARD_PLURAL",icon:"square-poll-vertical",action:"NAVIGATION",actionPayload:{path:"admin/dashboards"}},{id:"admin.devtools.MailTemplate",label:"MAIL_TEMPLATE_PLURAL",icon:"envelope",action:"NAVIGATION",actionPayload:{path:"admin/mailtemplates"}},{id:"admin.devtools.Notification",label:"NOTIFICATION_PLURAL",icon:"bell",action:"NAVIGATION",actionPayload:{path:"admin/notifications"}}]},{id:"admin.followup",label:"SYSTEM_MONITORING",icon:"tv",children:[{id:"admin.WorkflowDocumentMailLog",label:"WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL",icon:"envelopes-bulk",action:"NAVIGATION",actionPayload:{path:"admin/workflowdocumentmaillogs"}},{id:"admin.MailNotificationQueue",label:"MAIL_NOTIFICATION_QUEUE_PLURAL",icon:"envelope-open-text",action:"NAVIGATION",actionPayload:{path:"admin/mailnotificationqueues"}},{id:"admin.NotificationQueue",label:"NOTIFICATION_QUEUE_PLURAL",icon:"bell",action:"NAVIGATION",actionPayload:{path:"admin/notificationqueues"}}]},{id:"admin.Lookup",label:"LOOKUP_PLURAL",icon:"list-check",action:"NAVIGATION",actionPayload:{path:"admin/lookups"}}]}]];function Ye(){return e.jsx(L,{sx:{width:6,height:6,borderRadius:"70%",bgcolor:"warning.main",display:"inline-block",verticalAlign:"middle",zIndex:1,mx:1}})}const qe=p.styled(U.TreeItem2Root)((({theme:e})=>({color:e.palette.grey[400],position:"relative",[`& .${h.treeItemClasses.groupTransition}`]:{marginLeft:e.spacing(2.5)},...e.applyStyles("light",{color:e.palette.grey[800]})}))),Ke=p.styled(U.TreeItem2Content)((({theme:e})=>({flexDirection:"row-reverse",borderRadius:e.spacing(.7),marginBottom:e.spacing(.5),marginTop:e.spacing(.5),padding:e.spacing(.5),paddingRight:e.spacing(1),"&.Mui-expanded ":{"&:not(.Mui-focused, .Mui-selected, .Mui-selected.Mui-focused) .labelIcon":{color:e.palette.primary.dark,...e.applyStyles("light",{color:e.palette.primary.main})},"&::before":{content:'""',display:"block",position:"absolute",left:"16px",top:"44px",height:"calc(100% - 48px)",width:"1.5px",backgroundColor:e.palette.grey[700],...e.applyStyles("light",{backgroundColor:e.palette.grey[300]})}},"&:hover":{backgroundColor:p.alpha(e.palette.primary.main,.1),color:"white",...e.applyStyles("light",{color:e.palette.primary.main})},"&.Mui-focused, &.Mui-selected, &.Mui-selected.Mui-focused":{backgroundColor:e.palette.primary.dark,color:e.palette.primary.contrastText,...e.applyStyles("light",{backgroundColor:e.palette.primary.main})}}))),Ve=R.animated(y);function He(t){const i=R.useSpring({to:{opacity:t.in?1:0,transform:`translate3d(0,${t.in?0:20}px,0)`}});return e.jsx(Ve,{style:i,...t})}const Qe=p.styled(D)({color:"inherit",fontWeight:500});function ze({icon:i,expandable:o,children:r,...a}){const{t:n}=O.useTranslation(),l=t.useSelector((e=>e.AppLayout));return e.jsxs(U.TreeItem2Label,{...a,sx:{display:"flex",alignItems:"center",padding:1},children:[e.jsx(T.FontAwesomeIcon,{style:{marginRight:"ltr"===l.appDirection?7:void 0,marginLeft:"rtl"===l.appDirection?7:void 0,fontSize:"1.2rem"},icon:i}),e.jsx(Qe,{variant:"body2",sx:{fontSize:16},children:n(r)}),o&&e.jsx(Ye,{})]})}const Ze=e=>Array.isArray(e)?e.length>0&&e.some(Ze):Boolean(e),$e=le.forwardRef((function(t,i){const{id:o,itemId:r,label:a,disabled:n,children:l,...d}=t,{getRootProps:s,getContentProps:p,getIconContainerProps:_,getCheckboxProps:E,getLabelProps:c,getGroupTransitionProps:T,getDragAndDropOverlayProps:A,status:u,publicAPI:I}=M.useTreeItem2({id:o,itemId:r,children:l,label:a,disabled:n,rootRef:i}),O=I.getItem(r),m=Ze(l);return e.jsx(S.TreeItem2Provider,{itemId:r,children:e.jsxs(qe,{...s(d),children:[e.jsxs(Ke,{...p({className:We("content",{"Mui-expanded":u.expanded,"Mui-selected":u.selected,"Mui-focused":u.focused,"Mui-disabled":u.disabled})}),children:[e.jsx(U.TreeItem2IconContainer,{..._(),children:e.jsx(P.TreeItem2Icon,{status:u})}),e.jsx(U.TreeItem2Checkbox,{...E()}),e.jsx(ze,{...c({icon:O?.icon||"book",expandable:m&&u.expanded})}),e.jsx(b.TreeItem2DragAndDropOverlay,{...A()})]}),l&&e.jsx(He,{...T()})]})})}));function Xe(){const i=g.useNavigate(),o=t.useSelector((e=>e.AppLayout)),r=t.useSelector((e=>e.AppInfo.value));t.useDispatch();const a=Ue(),{isUserAuthorized:n}=Ge(),l=e=>e.filter((e=>void 0===e.authority||null==e.authority||n(e.authority))).map((e=>(e.children&&(e.children=l(e.children)),e))),d=[];r.enableAdministrationModule&&d.push(...je),d.push(...r.businessNavigationItems);const s=l(d);return e.jsx(C.RichTreeView,{items:s,onItemClick:(e,t)=>{const o=ke(t,d);"NAVIGATION"!==o?.action||null==o?.actionPayload||void 0!==o.children&&null!==o.children&&0!=o.children.length||i(o?.actionPayload?.path||"")},sx:{height:"fit-content",flexGrow:1,maxWidth:se,direction:o.appDirection,maxHeight:a?300:void 0,overflowY:"auto",overflowX:"auto"},slots:{item:$e}})}const Je=()=>{const i=t.useSelector((e=>e.AppInfo.value)),o=l.useTheme(),r=t.useSelector((e=>e.AppLayout)),a=t.useDispatch();return e.jsxs(N,{sx:{width:se,flexShrink:0,"& .MuiDrawer-paper":{width:se,boxSizing:"border-box"}},variant:"persistent",anchor:"ltr"===r.appDirection?"left":"right",open:r.sideBarOpened,children:[e.jsxs(Fe,{children:[e.jsxs(l.Box,{sx:{width:"100%"},children:[e.jsx(l.Typography,{color:"primary",sx:{width:"100%",textAlign:"center",fontSize:18,fontWeight:"bold"},children:"System Content"}),e.jsxs(l.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1},children:[e.jsx(l.Typography,{sx:{fontSize:12},color:"textDisabled",children:i.appName}),e.jsxs(l.Typography,{sx:{fontSize:12},color:"textDisabled",children:["V.",i.appVersion]})]})]}),e.jsx(f,{onClick:()=>{a(Ee.toggleSideBarState())},children:"ltr"===o.direction?e.jsx(T.FontAwesomeIcon,{icon:"angle-left"}):e.jsx(T.FontAwesomeIcon,{icon:"angle-right"})})]}),e.jsx(m,{}),e.jsx(Xe,{})]})},et=B({key:"muirtl",stylisPlugins:[v.prefixer,x]}),tt=B({key:"mui"}),it=t=>{const[i,o]=s.useState(!1),{t:r}=O.useTranslation();return{ConfirmationWindow:()=>e.jsxs(l.Dialog,{open:i,children:[e.jsx(l.DialogTitle,{children:t.title}),e.jsx(l.DialogContent,{children:e.jsx(l.DialogContentText,{children:t.body})}),e.jsxs(l.DialogActions,{children:[e.jsx(l.Button,{variant:"contained",color:"primary",onClick:()=>{o(!1)},children:r("NO_LABEL")}),e.jsx(l.Button,{variant:"contained",color:"error",onClick:()=>{t.onConfirmationCallBk(),o(!1)},autoFocus:!0,children:r("YES_LABEL")})]})]}),open:i,setOpen:o}},ot=t=>{const{t:i}=O.useTranslation(),o=Ge(),{ConfirmationWindow:r,setOpen:a}=it({body:i(t?.confirmationMessage||"ACTION_CONFIRMATION"),title:i("CONFIRMATION"),onConfirmationCallBk:async()=>{await(t?.actionFn(t.recordsToProcessActionOn,t.recordIdsToProcessActionOn)),t?.reloadData&&t.reloadData()}});let n=!0;if(t.authority&&(n=o.isUserAuthorized(t.authority)),n)return e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsxs(l.Button,{onClick:async()=>{if(t?.recordsToProcessActionOn&&t?.recordsToProcessActionOn.length>0){if(t?.preActionValidation)for(const e of t.recordsToProcessActionOn)if(!t.preActionValidation(e))return;!0===t?.isConfirmationRequired?a(!0):(await t.actionFn(t.recordsToProcessActionOn,t.recordIdsToProcessActionOn),t?.reloadData&&t.reloadData())}else A.toast.error(i("AT_LEAST_ONE_RECORD_SELECTED_MESSAGE"))},variant:t?.label?"outlined":t?.formActionProps?.actionButtonVariant?t.formActionProps.actionButtonVariant:"text",size:"small",color:t?.formActionProps?.actionButtonColor||"primary",children:[t?.icon?e.jsx(T.FontAwesomeIcon,{style:{marginRight:5,marginLeft:5},icon:t.icon}):e.jsx(e.Fragment,{}),t?.label?i(t.label):e.jsx(e.Fragment,{})]})]})},rt="YYYY-MM-DD",at="YYYY-MM-DD HH:mm:ss",nt=t=>{const{t:i}=O.useTranslation();return e.jsx(W.LocalizationProvider,{dateAdapter:G.AdapterMoment,children:e.jsx(W.DatePicker,{value:null!=t.value&&void 0!==t.value&&""!==t.value?w(t.value,t?.format||rt):null,sx:t.sx,label:i(t.label),format:t?.format||rt,disabled:t.disabled,onChange:e=>{let i=null;null!=e&&e.isValid()&&(i=e.format(t?.format||rt)),void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack&&t.onChangeCallBack(i)},slotProps:{textField:{InputLabelProps:{shrink:!0},variant:"outlined",required:t.required,error:void 0!==t.errorMessage&&null!=t.errorMessage,helperText:void 0!==t.errorMessage&&null!=t.errorMessage?e.jsx(e.Fragment,{children:i(t.errorMessage)}):e.jsx(e.Fragment,{})}}})})},lt=t=>{const{t:i}=O.useTranslation();return e.jsx(W.LocalizationProvider,{dateAdapter:G.AdapterMoment,children:e.jsx(W.DateTimePicker,{value:null!=t.value&&void 0!==t.value&&""!==t.value?w(t.value,t?.format||at):null,label:i(t.label),sx:t.sx,format:t?.format||at,disabled:t.disabled,onChange:e=>{let i=null;null!=e&&e.isValid()&&(i=e.format(t?.format||at)),void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack&&t.onChangeCallBack(i)},slotProps:{textField:{variant:"outlined",required:t.required,error:void 0!==t.errorMessage&&null!=t.errorMessage,helperText:void 0!==t.errorMessage&&null!=t.errorMessage?e.jsx(e.Fragment,{children:i(t.errorMessage)}):e.jsx(e.Fragment,{})}}})})},dt=i=>{const o=t.useSelector((e=>e.AppLayout)),{t:r}=O.useTranslation();return e.jsx(l.Autocomplete,{sx:i.sx,value:(e=>{for(let t of i.options)if(t[i.valueField]==e)return t;return null})(i.value),options:i.options,disabled:i.disabled,onChange:(e,t)=>{if(void 0!==i.onChangeCallBack&&null!=i.onChangeCallBack)if(null!=t){let e=t[i.valueField];i.onChangeCallBack(e,t)}else i.onChangeCallBack(null,null)},clearOnBlur:!0,handleHomeEndKeys:!0,getOptionLabel:e=>null!=e?r(e[i.displayField]):"",renderOption:(t,o)=>e.jsx("li",{...t,children:null!=o?r(o[i.displayField]):""}),slots:{popper:t=>e.jsx(l.Popper,{...t,style:{...t.style,direction:o.appDirection}})},renderInput:t=>e.jsx(l.TextField,{...t,required:i.required||!1,variant:"outlined",InputLabelProps:{shrink:!0},label:r(i.label),error:null!=i.errorMessage&&void 0!==i.errorMessage,helperText:null!=i.errorMessage&&void 0!==i.errorMessage?r(i.errorMessage):""})})},st=t=>{const{t:i}=O.useTranslation();return e.jsx(l.FormControlLabel,{sx:t.sx,disabled:t.disabled||!1,required:t.required||!1,control:e.jsx(l.Checkbox,{checked:t?.checkedValue==t.value||"true"===t.value||"1"==t.value,onChange:e=>{void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack&&(e.target.checked?void 0!==t.checkedValue&&null!=t.checkedValue?t.onChangeCallBack(t.checkedValue):t.onChangeCallBack("true"):void 0!==t.unCheckedValue&&null!=t.unCheckedValue?t.onChangeCallBack(t.unCheckedValue):t.onChangeCallBack("false"))}}),label:i(t.label)})},pt=t=>({...t,type:"string",renderEditCell:t=>e.jsx(lt,{sx:{width:"100%"},label:"",value:t.value,onChangeCallBack:e=>{t.api.setEditCellValue({id:t.id,field:t.field,value:e})}}),valueParser:(e,t,i)=>{let o=null;return null!==e&&(o=w(e).format(at)),o},valueFormatter:(e,t,i)=>t[i.field]}),_t=t=>({...t,type:"custom",valueGetter:e=>e?e+"":e,renderCell:t=>{let i=null;try{i=t.colDef.options.find((e=>e[t.colDef.valueField]==t.value))}catch(e){}return e.jsx("div",{children:null!=i?i[t.colDef.displayField]:t.value})},renderEditCell:i=>e.jsx(dt,{...i,sx:{width:"100%"},options:t.options,valueField:t.valueField,displayField:t.displayField,onChangeCallBack:(e,t)=>{null===e&&i.api.setEditCellValue({id:i.id,field:i.field,value:null}),i.api.setEditCellValue({id:i.id,field:i.field,value:e+""})}})}),Et=t=>({...t,type:"custom",valueGetter:e=>null==e||null==e?null:e+"",renderCell:i=>{const o=i?.value;return o===t.checkedValue||"true"===o||1===o||!0===o?e.jsx(T.FontAwesomeIcon,{icon:"check",color:"green"}):e.jsx(T.FontAwesomeIcon,{icon:"xmark",color:"red"})},renderEditCell:i=>e.jsx(st,{...i,checkedValue:t?.checkedValue||"true",unCheckedValue:t?.unCheckedValue||"false",onChangeCallBack:e=>{i.api.setEditCellValue({id:i.id,field:i.field,value:e+""})}})}),ct=e=>{const t=[];if("field"===e.type&&"props"===e.mode&&e?.props)t.push(e.props);else if("group"===e.type&&e?.props&&e?.props?.elements)for(const i of e.props.elements)t.push(...ct(i));return t},Tt=e=>{const t=[];for(const i of e)t.push(...ct(i));return t},At=e=>{const t={};for(const i of e)if(i?.fieldName){const e=i.fieldName;"number"===i.fieldType?t[e]=!0===i?.required?de.number({required_error:"This field is required",invalid_type_error:"This field must be a number"}):de.number().optional().nullable():t[e]=!0===i?.required?de.string({message:"This field is required"}).min(1,"This field is required"):de.string().optional().nullable()}return t},ut=l.styled(F.QuickFilter)({display:"grid",alignItems:"center"}),It=l.styled(F.ToolbarButton)((({theme:e,ownerState:t})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:t.expanded?0:1,pointerEvents:t.expanded?"none":"auto",transition:e.transitions.create(["opacity"])}))),Ot=l.styled(l.TextField)((({theme:e,ownerState:t})=>({gridArea:"1 / 1",overflowX:"clip",width:t.expanded?260:"var(--trigger-width)",opacity:t.expanded?1:0,transition:e.transitions.create(["width","opacity"])}))),mt=t=>{const{t:i}=O.useTranslation(),o=Ge(),r=!t?.templateProps?.editAction?.authority||o.isUserAuthorized(t.templateProps.editAction.authority),a=((e,t,i)=>{const o=[],r=[];if("exclude"===e.type&&0===e.ids.size)for(const e of t)o.push(e),r.push(e[i]);else if(e?.ids)for(const a of e.ids){const e=t.find((e=>e[i]===a));o.push(e),r.push(a)}return{selectedRecords:o,selectedRecordIds:r}})(t?.templateProps?.rowSelectionModel||{ids:new Set,type:"include"},t?.templateProps?.data||[],t?.templateProps?.keyColumnName||"id");return e.jsxs(F.Toolbar,{children:[r&&"none"!=t?.templateProps?.editMode?.editMode?e.jsxs(l.Button,{onClick:t?.handleCreateNewRecord,children:[e.jsx(T.FontAwesomeIcon,{icon:"add",style:{marginRight:5,marginLeft:5}}),i("ADD_BTN_LABEL")]}):e.jsx(e.Fragment,{}),t?.templateProps?.rowActions?t.templateProps.rowActions.map((i=>!0===i?.gridActionProps?.multiRecord?e.jsx(ot,{...i,reloadData:async()=>{t.templateProps.apiActions.reloadData(t?.templateProps?.gridLoadParametersValues)},recordIdsToProcessActionOn:a.selectedRecordIds,recordsToProcessActionOn:a.selectedRecords}):e.jsx(e.Fragment,{}))):e.jsx(e.Fragment,{}),e.jsx(l.Box,{sx:{flex:1,mx:.5},children:t?.templateProps?.tBar}),e.jsx(l.Tooltip,{title:"Columns",children:e.jsx(F.ColumnsPanelTrigger,{render:e.jsx(F.ToolbarButton,{}),children:e.jsx(F.GridViewColumnIcon,{fontSize:"small"})})}),e.jsx(l.Tooltip,{title:"Filters",children:e.jsx(F.FilterPanelTrigger,{render:(t,i)=>e.jsx(F.ToolbarButton,{...t,color:"default",children:e.jsx(l.Badge,{badgeContent:i.filterCount,color:"primary",variant:"dot",children:e.jsx(F.GridFilterListIcon,{fontSize:"small"})})})})}),t?.templateProps?.gridStateKey?e.jsx(l.Tooltip,{title:i("RESET_GRID_STATE"),children:e.jsx(l.IconButton,{onClick:t?.clearGridState,children:e.jsx(T.FontAwesomeIcon,{icon:"eraser"})})}):e.jsx(e.Fragment,{}),e.jsx(l.Divider,{orientation:"vertical",variant:"middle",flexItem:!0,sx:{mx:.5}}),e.jsx(l.Tooltip,{title:i("EXPORT_EXECL_LABEL"),children:e.jsx(F.ExportExcel,{render:e.jsx(l.MenuItem,{}),children:e.jsx(T.FontAwesomeIcon,{icon:"file-excel",color:"green"})})}),e.jsxs(ut,{children:[e.jsx(F.QuickFilterTrigger,{render:(t,o)=>e.jsx(l.Tooltip,{title:i("SEARCH_BTN_LABEL"),enterDelay:0,children:e.jsx(It,{...t,ownerState:{expanded:o.expanded},color:"default","aria-disabled":o.expanded,children:e.jsx(T.FontAwesomeIcon,{icon:"search"})})})}),e.jsx(F.QuickFilterControl,{render:({ref:t,...o},r)=>e.jsx(Ot,{...o,ownerState:{expanded:r.expanded},inputRef:t,"aria-label":"Search",placeholder:`${i("SEARCH_BTN_LABEL")}...`,size:"small",slotProps:{input:{startAdornment:e.jsx(l.InputAdornment,{position:"start",children:e.jsx(T.FontAwesomeIcon,{icon:"search"})}),endAdornment:r.value?e.jsx(l.InputAdornment,{position:"end",children:e.jsx(F.QuickFilterClear,{edge:"end",size:"small","aria-label":"Clear search",children:e.jsx(T.FontAwesomeIcon,{icon:"xmark"})})}):null,...o.slotProps?.input},...o.slotProps}})})]}),e.jsx(l.IconButton,{onClick:()=>{t.templateProps.apiActions.reloadData(t?.templateProps?.gridLoadParametersValues)},children:e.jsx(T.FontAwesomeIcon,{icon:"refresh"})})]})};function ft(e){return"number"==typeof e&&!isNaN(e)}function Nt(e){return"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e))}function Rt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}const Lt=t=>{const{t:i}=O.useTranslation(),o=Ge(),{ConfirmationWindow:r,setOpen:a}=it({body:i(t?.confirmationMessage||"ACTION_CONFIRMATION"),title:i("CONFIRMATION"),onConfirmationCallBk:async()=>{await(t?.actionFn(t.record)),t?.reloadData&&t.reloadData()}});let n=!0;t.authority&&(n=o.isUserAuthorized(t.authority));let d={};t?.getActionIconStyleForRecord&&(d=t.getActionIconStyleForRecord(t.record));let s=!0;t?.isActionVisibleForRecord&&(s=t?.isActionVisibleForRecord(t.record));let p=!1;if(t?.isActionDisabledForRecord&&(p=t.isActionDisabledForRecord(t.record)),n&&s)return e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsx(F.GridActionsCellItem,{disabled:p,icon:e.jsx(l.Tooltip,{title:t?.label?i(t.label):"",children:e.jsx(T.FontAwesomeIcon,{icon:t.icon,style:{...d,color:p?"gray":null!=d?.color?d.color:void 0}})}),showInMenu:t?.gridActionProps?.showInMenu||!1,label:"",className:"textPrimary",color:"inherit",onClick:async()=>{if(!p){if(t?.preActionValidation&&!t.preActionValidation(t.record))return;!0===t?.isConfirmationRequired?a(!0):(await t.actionFn(t.record),t?.reloadData&&t.reloadData())}}})]})};function yt(e,...t){const i=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach((e=>i.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${i} for the full message.`}function Dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ct,ht={exports:{}},Mt={exports:{}},Ut={};var Pt,St,bt,gt,xt,vt,Bt,Ft,wt,Wt,Gt,kt,jt,Yt,qt,Kt={};
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/function
|
|
9
|
+
*/function Vt(){return St||(St=1,"production"===process.env.NODE_ENV?Mt.exports=function(){if(Ct)return Ut;Ct=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,n=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,c=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,u=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function m(e){if("object"==typeof e&&null!==e){var E=e.$$typeof;switch(E){case t:switch(e=e.type){case d:case s:case o:case a:case r:case _:return e;default:switch(e=e&&e.$$typeof){case l:case p:case T:case c:case n:return e;default:return E}}case i:return E}}}function f(e){return m(e)===s}return Ut.AsyncMode=d,Ut.ConcurrentMode=s,Ut.ContextConsumer=l,Ut.ContextProvider=n,Ut.Element=t,Ut.ForwardRef=p,Ut.Fragment=o,Ut.Lazy=T,Ut.Memo=c,Ut.Portal=i,Ut.Profiler=a,Ut.StrictMode=r,Ut.Suspense=_,Ut.isAsyncMode=function(e){return f(e)||m(e)===d},Ut.isConcurrentMode=f,Ut.isContextConsumer=function(e){return m(e)===l},Ut.isContextProvider=function(e){return m(e)===n},Ut.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ut.isForwardRef=function(e){return m(e)===p},Ut.isFragment=function(e){return m(e)===o},Ut.isLazy=function(e){return m(e)===T},Ut.isMemo=function(e){return m(e)===c},Ut.isPortal=function(e){return m(e)===i},Ut.isProfiler=function(e){return m(e)===a},Ut.isStrictMode=function(e){return m(e)===r},Ut.isSuspense=function(e){return m(e)===_},Ut.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===r||e===_||e===E||"object"==typeof e&&null!==e&&(e.$$typeof===T||e.$$typeof===c||e.$$typeof===n||e.$$typeof===l||e.$$typeof===p||e.$$typeof===u||e.$$typeof===I||e.$$typeof===O||e.$$typeof===A)},Ut.typeOf=m,Ut}():Mt.exports=(Pt||(Pt=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,n=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,c=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,u=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function m(e){if("object"==typeof e&&null!==e){var E=e.$$typeof;switch(E){case t:var A=e.type;switch(A){case d:case s:case o:case a:case r:case _:return A;default:var u=A&&A.$$typeof;switch(u){case l:case p:case T:case c:case n:return u;default:return E}}case i:return E}}}var f=d,N=s,R=l,L=n,y=t,D=p,C=o,h=T,M=c,U=i,P=a,S=r,b=_,g=!1;function x(e){return m(e)===s}Kt.AsyncMode=f,Kt.ConcurrentMode=N,Kt.ContextConsumer=R,Kt.ContextProvider=L,Kt.Element=y,Kt.ForwardRef=D,Kt.Fragment=C,Kt.Lazy=h,Kt.Memo=M,Kt.Portal=U,Kt.Profiler=P,Kt.StrictMode=S,Kt.Suspense=b,Kt.isAsyncMode=function(e){return g||(g=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),x(e)||m(e)===d},Kt.isConcurrentMode=x,Kt.isContextConsumer=function(e){return m(e)===l},Kt.isContextProvider=function(e){return m(e)===n},Kt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Kt.isForwardRef=function(e){return m(e)===p},Kt.isFragment=function(e){return m(e)===o},Kt.isLazy=function(e){return m(e)===T},Kt.isMemo=function(e){return m(e)===c},Kt.isPortal=function(e){return m(e)===i},Kt.isProfiler=function(e){return m(e)===a},Kt.isStrictMode=function(e){return m(e)===r},Kt.isSuspense=function(e){return m(e)===_},Kt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===r||e===_||e===E||"object"==typeof e&&null!==e&&(e.$$typeof===T||e.$$typeof===c||e.$$typeof===n||e.$$typeof===l||e.$$typeof===p||e.$$typeof===u||e.$$typeof===I||e.$$typeof===O||e.$$typeof===A)},Kt.typeOf=m}()),Kt)),Mt.exports}
|
|
10
10
|
/*
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
13
13
|
@license MIT
|
|
14
|
-
*/function zt(){if(vt)return xt;vt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;return xt=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,r){for(var a,n,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),d=1;d<arguments.length;d++){for(var s in a=Object(arguments[d]))t.call(a,s)&&(l[s]=a[s]);if(e){n=e(a);for(var p=0;p<n.length;p++)i.call(a,n[p])&&(l[n[p]]=a[n[p]])}}return l},xt}function Zt(){if(Ft)return Bt;Ft=1;return Bt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function $t(){return Wt?wt:(Wt=1,wt=Function.call.bind(Object.prototype.hasOwnProperty))}function Xt(){if(kt)return Gt;kt=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Zt(),i={},o=$t();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,a,n,l,d){if("production"!==process.env.NODE_ENV)for(var s in r)if(o(r,s)){var p;try{if("function"!=typeof r[s]){var _=Error((l||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}p=r[s](a,s,l,n,null,t)}catch(e){p=e}if(!p||p instanceof Error||e((l||"React class")+": type specification of "+n+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in i)){i[p.message]=!0;var E=d?d():"";e("Failed "+n+" type: "+p.message+(null!=E?E:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(i={})},Gt=r}function Jt(){if(Yt)return jt;Yt=1;var e=Qt(),t=zt(),i=Zt(),o=$t(),r=Xt(),a=function(){};function n(){return null}return"production"!==process.env.NODE_ENV&&(a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),jt=function(l,d){var s="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",_={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:T(n),arrayOf:function(e){return T((function(t,o,r,a,n){if("function"!=typeof e)return new c("Property `"+n+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=t[o];if(!Array.isArray(l))return new c("Invalid "+a+" `"+n+"` of type `"+O(l)+"` supplied to `"+r+"`, expected an array.");for(var d=0;d<l.length;d++){var s=e(l,d,r,a,n+"["+d+"]",i);if(s instanceof Error)return s}return null}))},element:T((function(e,t,i,o,r){var a=e[t];return l(a)?null:new c("Invalid "+o+" `"+r+"` of type `"+O(a)+"` supplied to `"+i+"`, expected a single ReactElement.")})),elementType:T((function(t,i,o,r,a){var n=t[i];return e.isValidElementType(n)?null:new c("Invalid "+r+" `"+a+"` of type `"+O(n)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return T((function(t,i,o,r,a){if(!(t[i]instanceof e)){var n=e.name||p;return new c("Invalid "+r+" `"+a+"` of type `"+(((l=t[i]).constructor&&l.constructor.name?l.constructor.name:p)+"` supplied to `")+o+"`, expected instance of `"+n+"`.")}var l;return null}))},node:T((function(e,t,i,o,r){return I(e[t])?null:new c("Invalid "+o+" `"+r+"` supplied to `"+i+"`, expected a ReactNode.")})),objectOf:function(e){return T((function(t,r,a,n,l){if("function"!=typeof e)return new c("Property `"+l+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var d=t[r],s=O(d);if("object"!==s)return new c("Invalid "+n+" `"+l+"` of type `"+s+"` supplied to `"+a+"`, expected an object.");for(var p in d)if(o(d,p)){var _=e(d,p,a,n,l+"."+p,i);if(_ instanceof Error)return _}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),n;return T((function(t,i,o,r,a){for(var n=t[i],l=0;l<e.length;l++)if(E(n,e[l]))return null;var d=JSON.stringify(e,(function(e,t){return"symbol"===m(t)?String(t):t}));return new c("Invalid "+r+" `"+a+"` of value `"+String(n)+"` supplied to `"+o+"`, expected one of "+d+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a("Invalid argument supplied to oneOfType, expected an instance of array."),n;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(r)+" at index "+t+"."),n}return T((function(t,r,a,n,l){for(var d=[],s=0;s<e.length;s++){var p=(0,e[s])(t,r,a,n,l,i);if(null==p)return null;p.data&&o(p.data,"expectedType")&&d.push(p.data.expectedType)}return new c("Invalid "+n+" `"+l+"` supplied to `"+a+"`"+(d.length>0?", expected one of type ["+d.join(", ")+"]":"")+".")}))},shape:function(e){return T((function(t,o,r,a,n){var l=t[o],d=O(l);if("object"!==d)return new c("Invalid "+a+" `"+n+"` of type `"+d+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var p=e[s];if("function"!=typeof p)return u(r,a,n,s,m(p));var _=p(l,s,r,a,n+"."+s,i);if(_)return _}return null}))},exact:function(e){return T((function(r,a,n,l,d){var s=r[a],p=O(s);if("object"!==p)return new c("Invalid "+l+" `"+d+"` of type `"+p+"` supplied to `"+n+"`, expected `object`.");var _=t({},r[a],e);for(var E in _){var T=e[E];if(o(e,E)&&"function"!=typeof T)return u(n,l,d,E,m(T));if(!T)return new c("Invalid "+l+" `"+d+"` key `"+E+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(r[a],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var A=T(s,E,n,l,d+"."+E,i);if(A)return A}return null}))}};function E(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function c(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function T(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function r(r,n,l,s,_,E,T){if(s=s||p,E=E||l,T!==i){if(d){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var u=s+":"+l;!t[u]&&o<3&&(a("You are manually calling a React.PropTypes validation function for the `"+E+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[u]=!0,o++)}}return null==n[l]?r?null===n[l]?new c("The "+_+" `"+E+"` is marked as required in `"+s+"`, but its value is `null`."):new c("The "+_+" `"+E+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(n,l,s,_,E)}var n=r.bind(null,!1);return n.isRequired=r.bind(null,!0),n}function A(e){return T((function(t,i,o,r,a,n){var l=t[i];return O(l)!==e?new c("Invalid "+r+" `"+a+"` of type `"+m(l)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function u(e,t,i,o,r){return new c((e||"React class")+": "+t+" type `"+i+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function I(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(I);if(null===e||l(e))return!0;var t=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var i,o=t.call(e);if(t!==e.entries){for(;!(i=o.next()).done;)if(!I(i.value))return!1}else for(;!(i=o.next()).done;){var r=i.value;if(r&&!I(r[1]))return!1}return!0;default:return!1}}function O(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function m(e){if(null==e)return""+e;var t=O(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=m(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return c.prototype=Error.prototype,_.checkPropTypes=r,_.resetWarningCache=r.resetWarningCache,_.PropTypes=_,_},jt}function ei(){if(Kt)return qt;Kt=1;var e=Zt();function t(){}function i(){}return i.resetWarningCache=t,qt=function(){function o(t,i,o,r,a,n){if(n!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function r(){return o}o.isRequired=o;var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:t};return a.PropTypes=a,a}}function ti(){if(Vt)return ht.exports;if(Vt=1,"production"!==process.env.NODE_ENV){var e=Qt();ht.exports=Jt()(e.isElement,true)}else ht.exports=ei()();return ht.exports}var ii=Ut(ti());var oi,ri={exports:{}},ai={};function ni(){if(oi)return ai;oi=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),n=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),E=Symbol.for("react.view_transition"),c=Symbol.for("react.client.reference");function T(c){if("object"==typeof c&&null!==c){var T=c.$$typeof;switch(T){case e:switch(c=c.type){case i:case r:case o:case d:case s:case E:return c;default:switch(c=c&&c.$$typeof){case n:case l:case _:case p:case a:return c;default:return T}}case t:return T}}}return ai.ContextConsumer=a,ai.ContextProvider=n,ai.Element=e,ai.ForwardRef=l,ai.Fragment=i,ai.Lazy=_,ai.Memo=p,ai.Portal=t,ai.Profiler=r,ai.StrictMode=o,ai.Suspense=d,ai.SuspenseList=s,ai.isContextConsumer=function(e){return T(e)===a},ai.isContextProvider=function(e){return T(e)===n},ai.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},ai.isForwardRef=function(e){return T(e)===l},ai.isFragment=function(e){return T(e)===i},ai.isLazy=function(e){return T(e)===_},ai.isMemo=function(e){return T(e)===p},ai.isPortal=function(e){return T(e)===t},ai.isProfiler=function(e){return T(e)===r},ai.isStrictMode=function(e){return T(e)===o},ai.isSuspense=function(e){return T(e)===d},ai.isSuspenseList=function(e){return T(e)===s},ai.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===r||e===o||e===d||e===s||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===p||e.$$typeof===n||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||void 0!==e.getModuleId)},ai.typeOf=T,ai}var li,di,si={};
|
|
14
|
+
*/function Ht(){if(gt)return bt;gt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;return bt=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,r){for(var a,n,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),d=1;d<arguments.length;d++){for(var s in a=Object(arguments[d]))t.call(a,s)&&(l[s]=a[s]);if(e){n=e(a);for(var p=0;p<n.length;p++)i.call(a,n[p])&&(l[n[p]]=a[n[p]])}}return l},bt}function Qt(){if(vt)return xt;vt=1;return xt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function zt(){return Ft?Bt:(Ft=1,Bt=Function.call.bind(Object.prototype.hasOwnProperty))}function Zt(){if(Wt)return wt;Wt=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Qt(),i={},o=zt();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,a,n,l,d){if("production"!==process.env.NODE_ENV)for(var s in r)if(o(r,s)){var p;try{if("function"!=typeof r[s]){var _=Error((l||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}p=r[s](a,s,l,n,null,t)}catch(e){p=e}if(!p||p instanceof Error||e((l||"React class")+": type specification of "+n+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in i)){i[p.message]=!0;var E=d?d():"";e("Failed "+n+" type: "+p.message+(null!=E?E:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(i={})},wt=r}function $t(){if(kt)return Gt;kt=1;var e=Vt(),t=Ht(),i=Qt(),o=zt(),r=Zt(),a=function(){};function n(){return null}return"production"!==process.env.NODE_ENV&&(a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Gt=function(l,d){var s="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",_={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:T(n),arrayOf:function(e){return T((function(t,o,r,a,n){if("function"!=typeof e)return new c("Property `"+n+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=t[o];if(!Array.isArray(l))return new c("Invalid "+a+" `"+n+"` of type `"+O(l)+"` supplied to `"+r+"`, expected an array.");for(var d=0;d<l.length;d++){var s=e(l,d,r,a,n+"["+d+"]",i);if(s instanceof Error)return s}return null}))},element:T((function(e,t,i,o,r){var a=e[t];return l(a)?null:new c("Invalid "+o+" `"+r+"` of type `"+O(a)+"` supplied to `"+i+"`, expected a single ReactElement.")})),elementType:T((function(t,i,o,r,a){var n=t[i];return e.isValidElementType(n)?null:new c("Invalid "+r+" `"+a+"` of type `"+O(n)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return T((function(t,i,o,r,a){if(!(t[i]instanceof e)){var n=e.name||p;return new c("Invalid "+r+" `"+a+"` of type `"+(((l=t[i]).constructor&&l.constructor.name?l.constructor.name:p)+"` supplied to `")+o+"`, expected instance of `"+n+"`.")}var l;return null}))},node:T((function(e,t,i,o,r){return I(e[t])?null:new c("Invalid "+o+" `"+r+"` supplied to `"+i+"`, expected a ReactNode.")})),objectOf:function(e){return T((function(t,r,a,n,l){if("function"!=typeof e)return new c("Property `"+l+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var d=t[r],s=O(d);if("object"!==s)return new c("Invalid "+n+" `"+l+"` of type `"+s+"` supplied to `"+a+"`, expected an object.");for(var p in d)if(o(d,p)){var _=e(d,p,a,n,l+"."+p,i);if(_ instanceof Error)return _}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),n;return T((function(t,i,o,r,a){for(var n=t[i],l=0;l<e.length;l++)if(E(n,e[l]))return null;var d=JSON.stringify(e,(function(e,t){return"symbol"===m(t)?String(t):t}));return new c("Invalid "+r+" `"+a+"` of value `"+String(n)+"` supplied to `"+o+"`, expected one of "+d+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a("Invalid argument supplied to oneOfType, expected an instance of array."),n;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(r)+" at index "+t+"."),n}return T((function(t,r,a,n,l){for(var d=[],s=0;s<e.length;s++){var p=(0,e[s])(t,r,a,n,l,i);if(null==p)return null;p.data&&o(p.data,"expectedType")&&d.push(p.data.expectedType)}return new c("Invalid "+n+" `"+l+"` supplied to `"+a+"`"+(d.length>0?", expected one of type ["+d.join(", ")+"]":"")+".")}))},shape:function(e){return T((function(t,o,r,a,n){var l=t[o],d=O(l);if("object"!==d)return new c("Invalid "+a+" `"+n+"` of type `"+d+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var p=e[s];if("function"!=typeof p)return u(r,a,n,s,m(p));var _=p(l,s,r,a,n+"."+s,i);if(_)return _}return null}))},exact:function(e){return T((function(r,a,n,l,d){var s=r[a],p=O(s);if("object"!==p)return new c("Invalid "+l+" `"+d+"` of type `"+p+"` supplied to `"+n+"`, expected `object`.");var _=t({},r[a],e);for(var E in _){var T=e[E];if(o(e,E)&&"function"!=typeof T)return u(n,l,d,E,m(T));if(!T)return new c("Invalid "+l+" `"+d+"` key `"+E+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(r[a],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var A=T(s,E,n,l,d+"."+E,i);if(A)return A}return null}))}};function E(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function c(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function T(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function r(r,n,l,s,_,E,T){if(s=s||p,E=E||l,T!==i){if(d){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var u=s+":"+l;!t[u]&&o<3&&(a("You are manually calling a React.PropTypes validation function for the `"+E+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[u]=!0,o++)}}return null==n[l]?r?null===n[l]?new c("The "+_+" `"+E+"` is marked as required in `"+s+"`, but its value is `null`."):new c("The "+_+" `"+E+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(n,l,s,_,E)}var n=r.bind(null,!1);return n.isRequired=r.bind(null,!0),n}function A(e){return T((function(t,i,o,r,a,n){var l=t[i];return O(l)!==e?new c("Invalid "+r+" `"+a+"` of type `"+m(l)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function u(e,t,i,o,r){return new c((e||"React class")+": "+t+" type `"+i+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function I(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(I);if(null===e||l(e))return!0;var t=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var i,o=t.call(e);if(t!==e.entries){for(;!(i=o.next()).done;)if(!I(i.value))return!1}else for(;!(i=o.next()).done;){var r=i.value;if(r&&!I(r[1]))return!1}return!0;default:return!1}}function O(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function m(e){if(null==e)return""+e;var t=O(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=m(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return c.prototype=Error.prototype,_.checkPropTypes=r,_.resetWarningCache=r.resetWarningCache,_.PropTypes=_,_},Gt}function Xt(){if(Yt)return jt;Yt=1;var e=Qt();function t(){}function i(){}return i.resetWarningCache=t,jt=function(){function o(t,i,o,r,a,n){if(n!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function r(){return o}o.isRequired=o;var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:t};return a.PropTypes=a,a}}function Jt(){if(qt)return ht.exports;if(qt=1,"production"!==process.env.NODE_ENV){var e=Vt();ht.exports=$t()(e.isElement,true)}else ht.exports=Xt()();return ht.exports}var ei=Dt(Jt());var ti,ii={exports:{}},oi={};function ri(){if(ti)return oi;ti=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),n=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),E=Symbol.for("react.view_transition"),c=Symbol.for("react.client.reference");function T(c){if("object"==typeof c&&null!==c){var T=c.$$typeof;switch(T){case e:switch(c=c.type){case i:case r:case o:case d:case s:case E:return c;default:switch(c=c&&c.$$typeof){case n:case l:case _:case p:case a:return c;default:return T}}case t:return T}}}return oi.ContextConsumer=a,oi.ContextProvider=n,oi.Element=e,oi.ForwardRef=l,oi.Fragment=i,oi.Lazy=_,oi.Memo=p,oi.Portal=t,oi.Profiler=r,oi.StrictMode=o,oi.Suspense=d,oi.SuspenseList=s,oi.isContextConsumer=function(e){return T(e)===a},oi.isContextProvider=function(e){return T(e)===n},oi.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},oi.isForwardRef=function(e){return T(e)===l},oi.isFragment=function(e){return T(e)===i},oi.isLazy=function(e){return T(e)===_},oi.isMemo=function(e){return T(e)===p},oi.isPortal=function(e){return T(e)===t},oi.isProfiler=function(e){return T(e)===r},oi.isStrictMode=function(e){return T(e)===o},oi.isSuspense=function(e){return T(e)===d},oi.isSuspenseList=function(e){return T(e)===s},oi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===r||e===o||e===d||e===s||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===p||e.$$typeof===n||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||void 0!==e.getModuleId)},oi.typeOf=T,oi}var ai,ni,li={};
|
|
15
15
|
/**
|
|
16
16
|
* @license React
|
|
17
17
|
* react-is.development.js
|
|
@@ -20,7 +20,7 @@ object-assign
|
|
|
20
20
|
*
|
|
21
21
|
* This source code is licensed under the MIT license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/function pi(){return li||(li=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var T=e.$$typeof;switch(T){case t:switch(e=e.type){case o:case a:case r:case s:case p:case c:return e;default:switch(e=e&&e.$$typeof){case l:case d:case E:case _:case n:return e;default:return T}}case i:return T}}}var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),n=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),c=Symbol.for("react.view_transition"),T=Symbol.for("react.client.reference");si.ContextConsumer=n,si.ContextProvider=l,si.Element=t,si.ForwardRef=d,si.Fragment=o,si.Lazy=E,si.Memo=_,si.Portal=i,si.Profiler=a,si.StrictMode=r,si.Suspense=s,si.SuspenseList=p,si.isContextConsumer=function(t){return e(t)===n},si.isContextProvider=function(t){return e(t)===l},si.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},si.isForwardRef=function(t){return e(t)===d},si.isFragment=function(t){return e(t)===o},si.isLazy=function(t){return e(t)===E},si.isMemo=function(t){return e(t)===_},si.isPortal=function(t){return e(t)===i},si.isProfiler=function(t){return e(t)===a},si.isStrictMode=function(t){return e(t)===r},si.isSuspense=function(t){return e(t)===s},si.isSuspenseList=function(t){return e(t)===p},si.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===r||e===s||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===E||e.$$typeof===_||e.$$typeof===l||e.$$typeof===n||e.$$typeof===d||e.$$typeof===T||void 0!==e.getModuleId)},si.typeOf=e}()),si}function _i(){return di||(di=1,"production"===process.env.NODE_ENV?ri.exports=ni():ri.exports=pi()),ri.exports}var Ei=_i();function ci(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Ti(e){if(le.isValidElement(e)||Ei.isValidElementType(e)||!ci(e))return e;const t={};return Object.keys(e).forEach((i=>{t[i]=Ti(e[i])})),t}function Ai(e,t,i={clone:!0}){const o=i.clone?{...e}:e;return ci(e)&&ci(t)&&Object.keys(t).forEach((r=>{le.isValidElement(t[r])||Ei.isValidElementType(t[r])?o[r]=t[r]:ci(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&ci(e[r])?o[r]=Ai(e[r],t[r],i):i.clone?o[r]=ci(t[r])?Ti(t[r]):t[r]:o[r]=t[r]})),o}function ui(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:o=5,...r}=e,a=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})})(t),n=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${i})`}function d(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${i})`}function s(e,r){const a=n.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${i}) and (max-width:${(-1!==a&&"number"==typeof t[n[a]]?t[n[a]]:r)-o/100}${i})`}return{keys:n,values:a,up:l,down:d,between:s,only:function(e){return n.indexOf(e)+1<n.length?s(e,n[n.indexOf(e)+1]):l(e)},not:function(e){const t=n.indexOf(e);return 0===t?l(n[1]):t===n.length-1?d(n[t]):s(e,n[n.indexOf(e)+1]).replace("@media","@media not all and")},unit:i,...r}}const Ii={borderRadius:4},Oi="production"!==process.env.NODE_ENV?ii.oneOfType([ii.number,ii.string,ii.object,ii.array]):{};function mi(e,t){return t?Ai(e,t,{clone:!1}):e}const fi={xs:0,sm:600,md:900,lg:1200,xl:1536},Ni={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fi[e]}px)`},Ri={containerQueries:e=>({up:t=>{let i="number"==typeof t?t:fi[t]||t;return"number"==typeof i&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function Li(e,t,i){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||Ni;return t.reduce(((o,r,a)=>(o[e.up(e.keys[a])]=i(t[a]),o)),{})}if("object"==typeof t){const e=o.breakpoints||Ni;return Object.keys(t).reduce(((r,a)=>{if(n=e.keys,"@"===(l=a)||l.startsWith("@")&&(n.some((e=>l.startsWith(`@${e}`)))||l.match(/^@\d/))){const e=function(e,t){const i=t.match(/^@([^/]+)?\/?(.+)?$/);if(!i){if("production"!==process.env.NODE_ENV)throw new Error("production"!==process.env.NODE_ENV?`MUI: The provided shorthand (${t}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ct(18,`(${t})`));return null}const[,o,r]=i,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(a)}(o.containerQueries?o:Ri,a);e&&(r[e]=i(t[a],a))}else if(Object.keys(e.values||fi).includes(a)){r[e.up(a)]=i(t[a],a)}else{const e=a;r[e]=t[e]}var n,l;return r}),{})}return i(t)}function yi(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Ct(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Di(e,t,i=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&i){const i=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=i)return i}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Ci(e,t,i,o=i){let r;return r="function"==typeof e?e(i):Array.isArray(e)?e[i]||o:Di(e,i)||o,t&&(r=t(r,o,e)),r}function Ui(e){const{prop:t,cssProperty:i=e.prop,themeKey:o,transform:r}=e,a=e=>{if(null==e[t])return null;const a=e[t],n=Di(e.theme,o)||{};return Li(e,a,(e=>{let o=Ci(n,r,e);return e===o&&"string"==typeof e&&(o=Ci(n,r,`${t}${"default"===e?"":yi(e)}`,e)),!1===i?o:{[i]:o}}))};return a.propTypes="production"!==process.env.NODE_ENV?{[t]:Oi}:{},a.filterProps=[t],a}const Mi={m:"margin",p:"padding"},hi={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Pi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Si=function(e){const t={};return i=>(void 0===t[i]&&(t[i]=e(i)),t[i])}((e=>{if(e.length>2){if(!Pi[e])return[e];e=Pi[e]}const[t,i]=e.split(""),o=Mi[t],r=hi[i]||"";return Array.isArray(r)?r.map((e=>o+e)):[o+r]})),bi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],xi=[...bi,...gi];function vi(e,t,i,o){const r=Di(e,t,!0)??i;return"number"==typeof r||"string"==typeof r?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${e}.`),"string"==typeof r?r.startsWith("var(")&&0===e?0:r.startsWith("var(")&&1===e?r:`calc(${e} * ${r})`:r*e):Array.isArray(r)?e=>{if("string"==typeof e)return e;const i=Math.abs(e);"production"!==process.env.NODE_ENV&&(Number.isInteger(i)?i>r.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${i} > ${r.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n")));const o=r[i];return e>=0?o:"number"==typeof o?-o:"string"==typeof o&&o.startsWith("var(")?`calc(-1 * ${o})`:`-${o}`}:"function"==typeof r?r:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${r}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Bi(e){return vi(e,"spacing",8,"spacing")}function Fi(e,t){return"string"==typeof t||null==t?t:e(t)}function wi(e,t,i,o){if(!t.includes(i))return null;const r=function(e,t){return i=>e.reduce(((e,o)=>(e[o]=Fi(t,i),e)),{})}(Si(i),o);return Li(e,e[i],r)}function Wi(e,t){const i=Bi(e.theme);return Object.keys(e).map((o=>wi(e,t,o,i))).reduce(mi,{})}function Gi(e){return Wi(e,bi)}function ki(e){return Wi(e,gi)}function ji(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((i=>{e[i]=t})),e)),{}),i=e=>Object.keys(e).reduce(((i,o)=>t[o]?mi(i,t[o](e)):i),{});return i.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},i.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),i}function Yi(e){return"number"!=typeof e?e:`${e}px solid`}function qi(e,t){return Ui({prop:e,themeKey:"borders",transform:t})}Gi.propTypes="production"!==process.env.NODE_ENV?bi.reduce(((e,t)=>(e[t]=Oi,e)),{}):{},Gi.filterProps=bi,ki.propTypes="production"!==process.env.NODE_ENV?gi.reduce(((e,t)=>(e[t]=Oi,e)),{}):{},ki.filterProps=gi,"production"===process.env.NODE_ENV||xi.reduce(((e,t)=>(e[t]=Oi,e)),{});const Ki=qi("border",Yi),Vi=qi("borderTop",Yi),Hi=qi("borderRight",Yi),Qi=qi("borderBottom",Yi),zi=qi("borderLeft",Yi),Zi=qi("borderColor"),$i=qi("borderTopColor"),Xi=qi("borderRightColor"),Ji=qi("borderBottomColor"),eo=qi("borderLeftColor"),to=qi("outline",Yi),io=qi("outlineColor"),oo=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=vi(e.theme,"shape.borderRadius",4,"borderRadius"),i=e=>({borderRadius:Fi(t,e)});return Li(e,e.borderRadius,i)}return null};oo.propTypes="production"!==process.env.NODE_ENV?{borderRadius:Oi}:{},oo.filterProps=["borderRadius"],ji(Ki,Vi,Hi,Qi,zi,Zi,$i,Xi,Ji,eo,oo,to,io);const ro=e=>{if(void 0!==e.gap&&null!==e.gap){const t=vi(e.theme,"spacing",8,"gap"),i=e=>({gap:Fi(t,e)});return Li(e,e.gap,i)}return null};ro.propTypes="production"!==process.env.NODE_ENV?{gap:Oi}:{},ro.filterProps=["gap"];const ao=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=vi(e.theme,"spacing",8,"columnGap"),i=e=>({columnGap:Fi(t,e)});return Li(e,e.columnGap,i)}return null};ao.propTypes="production"!==process.env.NODE_ENV?{columnGap:Oi}:{},ao.filterProps=["columnGap"];const no=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=vi(e.theme,"spacing",8,"rowGap"),i=e=>({rowGap:Fi(t,e)});return Li(e,e.rowGap,i)}return null};no.propTypes="production"!==process.env.NODE_ENV?{rowGap:Oi}:{},no.filterProps=["rowGap"];function lo(e,t){return"grey"===t?t:e}ji(ro,ao,no,Ui({prop:"gridColumn"}),Ui({prop:"gridRow"}),Ui({prop:"gridAutoFlow"}),Ui({prop:"gridAutoColumns"}),Ui({prop:"gridAutoRows"}),Ui({prop:"gridTemplateColumns"}),Ui({prop:"gridTemplateRows"}),Ui({prop:"gridTemplateAreas"}),Ui({prop:"gridArea"}));function so(e){return e<=1&&0!==e?100*e+"%":e}ji(Ui({prop:"color",themeKey:"palette",transform:lo}),Ui({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lo}),Ui({prop:"backgroundColor",themeKey:"palette",transform:lo}));const po=Ui({prop:"width",transform:so}),_o=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const i=e.theme?.breakpoints?.values?.[t]||fi[t];return i?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:so(t)}};return Li(e,e.maxWidth,t)}return null};_o.filterProps=["maxWidth"];const Eo=Ui({prop:"minWidth",transform:so}),co=Ui({prop:"height",transform:so}),To=Ui({prop:"maxHeight",transform:so}),Ao=Ui({prop:"minHeight",transform:so});Ui({prop:"size",cssProperty:"width",transform:so}),Ui({prop:"size",cssProperty:"height",transform:so});ji(po,_o,Eo,co,To,Ao,Ui({prop:"boxSizing"}));const uo={border:{themeKey:"borders",transform:Yi},borderTop:{themeKey:"borders",transform:Yi},borderRight:{themeKey:"borders",transform:Yi},borderBottom:{themeKey:"borders",transform:Yi},borderLeft:{themeKey:"borders",transform:Yi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:oo},color:{themeKey:"palette",transform:lo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lo},backgroundColor:{themeKey:"palette",transform:lo},p:{style:ki},pt:{style:ki},pr:{style:ki},pb:{style:ki},pl:{style:ki},px:{style:ki},py:{style:ki},padding:{style:ki},paddingTop:{style:ki},paddingRight:{style:ki},paddingBottom:{style:ki},paddingLeft:{style:ki},paddingX:{style:ki},paddingY:{style:ki},paddingInline:{style:ki},paddingInlineStart:{style:ki},paddingInlineEnd:{style:ki},paddingBlock:{style:ki},paddingBlockStart:{style:ki},paddingBlockEnd:{style:ki},m:{style:Gi},mt:{style:Gi},mr:{style:Gi},mb:{style:Gi},ml:{style:Gi},mx:{style:Gi},my:{style:Gi},margin:{style:Gi},marginTop:{style:Gi},marginRight:{style:Gi},marginBottom:{style:Gi},marginLeft:{style:Gi},marginX:{style:Gi},marginY:{style:Gi},marginInline:{style:Gi},marginInlineStart:{style:Gi},marginInlineEnd:{style:Gi},marginBlock:{style:Gi},marginBlockStart:{style:Gi},marginBlockEnd:{style:Gi},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ro},rowGap:{style:no},columnGap:{style:ao},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:so},maxWidth:{style:_o},minWidth:{transform:so},height:{transform:so},maxHeight:{transform:so},minHeight:{transform:so},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Io=function(){function e(e,t,i,o){const r={[e]:t,theme:i},a=o[e];if(!a)return{[e]:t};const{cssProperty:n=e,themeKey:l,transform:d,style:s}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const p=Di(i,l)||{};if(s)return s(r);return Li(r,t,(t=>{let i=Ci(p,d,t);return t===i&&"string"==typeof t&&(i=Ci(p,d,`${e}${"default"===t?"":yi(t)}`,t)),!1===n?i:{[n]:i}}))}return function t(i){const{sx:o,theme:r={}}=i||{};if(!o)return null;const a=r.unstable_sxConfig??uo;function n(i){let o=i;if("function"==typeof i)o=i(r);else if("object"!=typeof i)return i;if(!o)return null;const n=function(e={}){const t=e.keys?.reduce(((t,i)=>(t[e.up(i)]={},t)),{});return t||{}}(r.breakpoints),l=Object.keys(n);let d=n;return Object.keys(o).forEach((i=>{const n=(l=o[i],s=r,"function"==typeof l?l(s):l);var l,s;if(null!=n)if("object"==typeof n)if(a[i])d=mi(d,e(i,n,r,a));else{const e=Li({theme:r},n,(e=>({[i]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),i=new Set(t);return e.every((e=>i.size===Object.keys(e).length))}(e,n)?d=mi(d,e):d[i]=t({sx:n,theme:r})}else d=mi(d,e(i,n,r,a))})),function(e,t){if(!e.containerQueries)return t;const i=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const i=/min-width:\s*([0-9.]+)/;return+(e.match(i)?.[1]||0)-+(t.match(i)?.[1]||0)}));return i.length?i.reduce(((e,i)=>{const o=t[i];return delete e[i],e[i]=o,e}),{...t}):t}(r,function(e,t){return e.reduce(((e,t)=>{const i=e[t];return(!i||0===Object.keys(i).length)&&delete e[t],e}),t)}(l,d))}return Array.isArray(o)?o.map(n):n(o)}}();function Oo(e,t){const i=this;if(i.vars){if(!i.colorSchemes?.[e]||"function"!=typeof i.getColorSchemeSelector)return{};let o=i.getColorSchemeSelector(e);return"&"===o?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return i.palette.mode===e?t:{}}function mo(e=null){const t=le.useContext(d.ThemeContext);return t&&(i=t,0!==Object.keys(i).length)?t:e;var i}Io.filterProps=["sx"];const fo=function(e={},...t){const{breakpoints:i={},palette:o={},spacing:r,shape:a={},...n}=e,l=ui(i),d=function(e=8,t=Bi({spacing:e})){if(e.mui)return e;const i=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const i=t(e);return"number"==typeof i?`${i}px`:i})).join(" "));return i.mui=!0,i}(r);let s=Ai({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:d,shape:{...Ii,...a}},n);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function i(i,o){i.up=(...i)=>t(e.breakpoints.up(...i),o),i.down=(...i)=>t(e.breakpoints.down(...i),o),i.between=(...i)=>t(e.breakpoints.between(...i),o),i.only=(...i)=>t(e.breakpoints.only(...i),o),i.not=(...i)=>{const r=t(e.breakpoints.not(...i),o);return r.includes("not all and")?r.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):r}}const o={},r=e=>(i(o,e),o);return i(r),{...e,containerQueries:r}}(s),s.applyStyles=Oo,s=t.reduce(((e,t)=>Ai(e,t)),s),s.unstable_sxConfig={...uo,...n?.unstable_sxConfig},s.unstable_sx=function(e){return Io({sx:e,theme:this})},s}();function No(e){const{sx:t,...i}=e,{systemProps:o,otherProps:r}=(e=>{const t={systemProps:{},otherProps:{}},i=e?.theme?.unstable_sxConfig??uo;return Object.keys(e).forEach((o=>{i[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]})),t})(i);let a;return a=Array.isArray(t)?[o,...t]:"function"==typeof t?(...e)=>{const i=t(...e);return ci(i)?{...o,...i}:o}:{...o,...t},{...r,sx:a}}const Ro=e=>e,Lo=(()=>{let e=Ro;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ro}}})();const yo={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};const Do=function(t={}){const{themeId:i,defaultTheme:o,defaultClassName:r="MuiBox-root",generateClassName:a}=t,n=
|
|
23
|
+
*/function di(){return ai||(ai=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var T=e.$$typeof;switch(T){case t:switch(e=e.type){case o:case a:case r:case s:case p:case c:return e;default:switch(e=e&&e.$$typeof){case l:case d:case E:case _:case n:return e;default:return T}}case i:return T}}}var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),n=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),c=Symbol.for("react.view_transition"),T=Symbol.for("react.client.reference");li.ContextConsumer=n,li.ContextProvider=l,li.Element=t,li.ForwardRef=d,li.Fragment=o,li.Lazy=E,li.Memo=_,li.Portal=i,li.Profiler=a,li.StrictMode=r,li.Suspense=s,li.SuspenseList=p,li.isContextConsumer=function(t){return e(t)===n},li.isContextProvider=function(t){return e(t)===l},li.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},li.isForwardRef=function(t){return e(t)===d},li.isFragment=function(t){return e(t)===o},li.isLazy=function(t){return e(t)===E},li.isMemo=function(t){return e(t)===_},li.isPortal=function(t){return e(t)===i},li.isProfiler=function(t){return e(t)===a},li.isStrictMode=function(t){return e(t)===r},li.isSuspense=function(t){return e(t)===s},li.isSuspenseList=function(t){return e(t)===p},li.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===r||e===s||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===E||e.$$typeof===_||e.$$typeof===l||e.$$typeof===n||e.$$typeof===d||e.$$typeof===T||void 0!==e.getModuleId)},li.typeOf=e}()),li}function si(){return ni||(ni=1,"production"===process.env.NODE_ENV?ii.exports=ri():ii.exports=di()),ii.exports}var pi=si();function _i(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Ei(e){if(le.isValidElement(e)||pi.isValidElementType(e)||!_i(e))return e;const t={};return Object.keys(e).forEach((i=>{t[i]=Ei(e[i])})),t}function ci(e,t,i={clone:!0}){const o=i.clone?{...e}:e;return _i(e)&&_i(t)&&Object.keys(t).forEach((r=>{le.isValidElement(t[r])||pi.isValidElementType(t[r])?o[r]=t[r]:_i(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&_i(e[r])?o[r]=ci(e[r],t[r],i):i.clone?o[r]=_i(t[r])?Ei(t[r]):t[r]:o[r]=t[r]})),o}function Ti(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:o=5,...r}=e,a=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})})(t),n=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${i})`}function d(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${i})`}function s(e,r){const a=n.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${i}) and (max-width:${(-1!==a&&"number"==typeof t[n[a]]?t[n[a]]:r)-o/100}${i})`}return{keys:n,values:a,up:l,down:d,between:s,only:function(e){return n.indexOf(e)+1<n.length?s(e,n[n.indexOf(e)+1]):l(e)},not:function(e){const t=n.indexOf(e);return 0===t?l(n[1]):t===n.length-1?d(n[t]):s(e,n[n.indexOf(e)+1]).replace("@media","@media not all and")},unit:i,...r}}const Ai={borderRadius:4},ui="production"!==process.env.NODE_ENV?ei.oneOfType([ei.number,ei.string,ei.object,ei.array]):{};function Ii(e,t){return t?ci(e,t,{clone:!1}):e}const Oi={xs:0,sm:600,md:900,lg:1200,xl:1536},mi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Oi[e]}px)`},fi={containerQueries:e=>({up:t=>{let i="number"==typeof t?t:Oi[t]||t;return"number"==typeof i&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function Ni(e,t,i){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||mi;return t.reduce(((o,r,a)=>(o[e.up(e.keys[a])]=i(t[a]),o)),{})}if("object"==typeof t){const e=o.breakpoints||mi;return Object.keys(t).reduce(((r,a)=>{if(n=e.keys,"@"===(l=a)||l.startsWith("@")&&(n.some((e=>l.startsWith(`@${e}`)))||l.match(/^@\d/))){const e=function(e,t){const i=t.match(/^@([^/]+)?\/?(.+)?$/);if(!i){if("production"!==process.env.NODE_ENV)throw new Error("production"!==process.env.NODE_ENV?`MUI: The provided shorthand (${t}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:yt(18,`(${t})`));return null}const[,o,r]=i,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(a)}(o.containerQueries?o:fi,a);e&&(r[e]=i(t[a],a))}else if(Object.keys(e.values||Oi).includes(a)){r[e.up(a)]=i(t[a],a)}else{const e=a;r[e]=t[e]}var n,l;return r}),{})}return i(t)}function Ri(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":yt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Li(e,t,i=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&i){const i=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=i)return i}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function yi(e,t,i,o=i){let r;return r="function"==typeof e?e(i):Array.isArray(e)?e[i]||o:Li(e,i)||o,t&&(r=t(r,o,e)),r}function Di(e){const{prop:t,cssProperty:i=e.prop,themeKey:o,transform:r}=e,a=e=>{if(null==e[t])return null;const a=e[t],n=Li(e.theme,o)||{};return Ni(e,a,(e=>{let o=yi(n,r,e);return e===o&&"string"==typeof e&&(o=yi(n,r,`${t}${"default"===e?"":Ri(e)}`,e)),!1===i?o:{[i]:o}}))};return a.propTypes="production"!==process.env.NODE_ENV?{[t]:ui}:{},a.filterProps=[t],a}const Ci={m:"margin",p:"padding"},hi={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Mi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ui=function(e){const t={};return i=>(void 0===t[i]&&(t[i]=e(i)),t[i])}((e=>{if(e.length>2){if(!Mi[e])return[e];e=Mi[e]}const[t,i]=e.split(""),o=Ci[t],r=hi[i]||"";return Array.isArray(r)?r.map((e=>o+e)):[o+r]})),Pi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Si=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],bi=[...Pi,...Si];function gi(e,t,i,o){const r=Li(e,t,!0)??i;return"number"==typeof r||"string"==typeof r?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${e}.`),"string"==typeof r?r.startsWith("var(")&&0===e?0:r.startsWith("var(")&&1===e?r:`calc(${e} * ${r})`:r*e):Array.isArray(r)?e=>{if("string"==typeof e)return e;const i=Math.abs(e);"production"!==process.env.NODE_ENV&&(Number.isInteger(i)?i>r.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${i} > ${r.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n")));const o=r[i];return e>=0?o:"number"==typeof o?-o:"string"==typeof o&&o.startsWith("var(")?`calc(-1 * ${o})`:`-${o}`}:"function"==typeof r?r:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${r}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function xi(e){return gi(e,"spacing",8,"spacing")}function vi(e,t){return"string"==typeof t||null==t?t:e(t)}function Bi(e,t,i,o){if(!t.includes(i))return null;const r=function(e,t){return i=>e.reduce(((e,o)=>(e[o]=vi(t,i),e)),{})}(Ui(i),o);return Ni(e,e[i],r)}function Fi(e,t){const i=xi(e.theme);return Object.keys(e).map((o=>Bi(e,t,o,i))).reduce(Ii,{})}function wi(e){return Fi(e,Pi)}function Wi(e){return Fi(e,Si)}function Gi(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((i=>{e[i]=t})),e)),{}),i=e=>Object.keys(e).reduce(((i,o)=>t[o]?Ii(i,t[o](e)):i),{});return i.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},i.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),i}function ki(e){return"number"!=typeof e?e:`${e}px solid`}function ji(e,t){return Di({prop:e,themeKey:"borders",transform:t})}wi.propTypes="production"!==process.env.NODE_ENV?Pi.reduce(((e,t)=>(e[t]=ui,e)),{}):{},wi.filterProps=Pi,Wi.propTypes="production"!==process.env.NODE_ENV?Si.reduce(((e,t)=>(e[t]=ui,e)),{}):{},Wi.filterProps=Si,"production"===process.env.NODE_ENV||bi.reduce(((e,t)=>(e[t]=ui,e)),{});const Yi=ji("border",ki),qi=ji("borderTop",ki),Ki=ji("borderRight",ki),Vi=ji("borderBottom",ki),Hi=ji("borderLeft",ki),Qi=ji("borderColor"),zi=ji("borderTopColor"),Zi=ji("borderRightColor"),$i=ji("borderBottomColor"),Xi=ji("borderLeftColor"),Ji=ji("outline",ki),eo=ji("outlineColor"),to=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=gi(e.theme,"shape.borderRadius",4,"borderRadius"),i=e=>({borderRadius:vi(t,e)});return Ni(e,e.borderRadius,i)}return null};to.propTypes="production"!==process.env.NODE_ENV?{borderRadius:ui}:{},to.filterProps=["borderRadius"],Gi(Yi,qi,Ki,Vi,Hi,Qi,zi,Zi,$i,Xi,to,Ji,eo);const io=e=>{if(void 0!==e.gap&&null!==e.gap){const t=gi(e.theme,"spacing",8,"gap"),i=e=>({gap:vi(t,e)});return Ni(e,e.gap,i)}return null};io.propTypes="production"!==process.env.NODE_ENV?{gap:ui}:{},io.filterProps=["gap"];const oo=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=gi(e.theme,"spacing",8,"columnGap"),i=e=>({columnGap:vi(t,e)});return Ni(e,e.columnGap,i)}return null};oo.propTypes="production"!==process.env.NODE_ENV?{columnGap:ui}:{},oo.filterProps=["columnGap"];const ro=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=gi(e.theme,"spacing",8,"rowGap"),i=e=>({rowGap:vi(t,e)});return Ni(e,e.rowGap,i)}return null};ro.propTypes="production"!==process.env.NODE_ENV?{rowGap:ui}:{},ro.filterProps=["rowGap"];function ao(e,t){return"grey"===t?t:e}Gi(io,oo,ro,Di({prop:"gridColumn"}),Di({prop:"gridRow"}),Di({prop:"gridAutoFlow"}),Di({prop:"gridAutoColumns"}),Di({prop:"gridAutoRows"}),Di({prop:"gridTemplateColumns"}),Di({prop:"gridTemplateRows"}),Di({prop:"gridTemplateAreas"}),Di({prop:"gridArea"}));function no(e){return e<=1&&0!==e?100*e+"%":e}Gi(Di({prop:"color",themeKey:"palette",transform:ao}),Di({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ao}),Di({prop:"backgroundColor",themeKey:"palette",transform:ao}));const lo=Di({prop:"width",transform:no}),so=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const i=e.theme?.breakpoints?.values?.[t]||Oi[t];return i?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:no(t)}};return Ni(e,e.maxWidth,t)}return null};so.filterProps=["maxWidth"];const po=Di({prop:"minWidth",transform:no}),_o=Di({prop:"height",transform:no}),Eo=Di({prop:"maxHeight",transform:no}),co=Di({prop:"minHeight",transform:no});Di({prop:"size",cssProperty:"width",transform:no}),Di({prop:"size",cssProperty:"height",transform:no});Gi(lo,so,po,_o,Eo,co,Di({prop:"boxSizing"}));const To={border:{themeKey:"borders",transform:ki},borderTop:{themeKey:"borders",transform:ki},borderRight:{themeKey:"borders",transform:ki},borderBottom:{themeKey:"borders",transform:ki},borderLeft:{themeKey:"borders",transform:ki},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ki},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:to},color:{themeKey:"palette",transform:ao},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ao},backgroundColor:{themeKey:"palette",transform:ao},p:{style:Wi},pt:{style:Wi},pr:{style:Wi},pb:{style:Wi},pl:{style:Wi},px:{style:Wi},py:{style:Wi},padding:{style:Wi},paddingTop:{style:Wi},paddingRight:{style:Wi},paddingBottom:{style:Wi},paddingLeft:{style:Wi},paddingX:{style:Wi},paddingY:{style:Wi},paddingInline:{style:Wi},paddingInlineStart:{style:Wi},paddingInlineEnd:{style:Wi},paddingBlock:{style:Wi},paddingBlockStart:{style:Wi},paddingBlockEnd:{style:Wi},m:{style:wi},mt:{style:wi},mr:{style:wi},mb:{style:wi},ml:{style:wi},mx:{style:wi},my:{style:wi},margin:{style:wi},marginTop:{style:wi},marginRight:{style:wi},marginBottom:{style:wi},marginLeft:{style:wi},marginX:{style:wi},marginY:{style:wi},marginInline:{style:wi},marginInlineStart:{style:wi},marginInlineEnd:{style:wi},marginBlock:{style:wi},marginBlockStart:{style:wi},marginBlockEnd:{style:wi},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:io},rowGap:{style:ro},columnGap:{style:oo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:no},maxWidth:{style:so},minWidth:{transform:no},height:{transform:no},maxHeight:{transform:no},minHeight:{transform:no},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ao=function(){function e(e,t,i,o){const r={[e]:t,theme:i},a=o[e];if(!a)return{[e]:t};const{cssProperty:n=e,themeKey:l,transform:d,style:s}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const p=Li(i,l)||{};if(s)return s(r);return Ni(r,t,(t=>{let i=yi(p,d,t);return t===i&&"string"==typeof t&&(i=yi(p,d,`${e}${"default"===t?"":Ri(t)}`,t)),!1===n?i:{[n]:i}}))}return function t(i){const{sx:o,theme:r={}}=i||{};if(!o)return null;const a=r.unstable_sxConfig??To;function n(i){let o=i;if("function"==typeof i)o=i(r);else if("object"!=typeof i)return i;if(!o)return null;const n=function(e={}){const t=e.keys?.reduce(((t,i)=>(t[e.up(i)]={},t)),{});return t||{}}(r.breakpoints),l=Object.keys(n);let d=n;return Object.keys(o).forEach((i=>{const n=(l=o[i],s=r,"function"==typeof l?l(s):l);var l,s;if(null!=n)if("object"==typeof n)if(a[i])d=Ii(d,e(i,n,r,a));else{const e=Ni({theme:r},n,(e=>({[i]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),i=new Set(t);return e.every((e=>i.size===Object.keys(e).length))}(e,n)?d=Ii(d,e):d[i]=t({sx:n,theme:r})}else d=Ii(d,e(i,n,r,a))})),function(e,t){if(!e.containerQueries)return t;const i=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const i=/min-width:\s*([0-9.]+)/;return+(e.match(i)?.[1]||0)-+(t.match(i)?.[1]||0)}));return i.length?i.reduce(((e,i)=>{const o=t[i];return delete e[i],e[i]=o,e}),{...t}):t}(r,function(e,t){return e.reduce(((e,t)=>{const i=e[t];return(!i||0===Object.keys(i).length)&&delete e[t],e}),t)}(l,d))}return Array.isArray(o)?o.map(n):n(o)}}();function uo(e,t){const i=this;if(i.vars){if(!i.colorSchemes?.[e]||"function"!=typeof i.getColorSchemeSelector)return{};let o=i.getColorSchemeSelector(e);return"&"===o?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return i.palette.mode===e?t:{}}function Io(e=null){const t=le.useContext(d.ThemeContext);return t&&(i=t,0!==Object.keys(i).length)?t:e;var i}Ao.filterProps=["sx"];const Oo=function(e={},...t){const{breakpoints:i={},palette:o={},spacing:r,shape:a={},...n}=e,l=Ti(i),d=function(e=8,t=xi({spacing:e})){if(e.mui)return e;const i=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const i=t(e);return"number"==typeof i?`${i}px`:i})).join(" "));return i.mui=!0,i}(r);let s=ci({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:d,shape:{...Ai,...a}},n);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function i(i,o){i.up=(...i)=>t(e.breakpoints.up(...i),o),i.down=(...i)=>t(e.breakpoints.down(...i),o),i.between=(...i)=>t(e.breakpoints.between(...i),o),i.only=(...i)=>t(e.breakpoints.only(...i),o),i.not=(...i)=>{const r=t(e.breakpoints.not(...i),o);return r.includes("not all and")?r.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):r}}const o={},r=e=>(i(o,e),o);return i(r),{...e,containerQueries:r}}(s),s.applyStyles=uo,s=t.reduce(((e,t)=>ci(e,t)),s),s.unstable_sxConfig={...To,...n?.unstable_sxConfig},s.unstable_sx=function(e){return Ao({sx:e,theme:this})},s}();function mo(e){const{sx:t,...i}=e,{systemProps:o,otherProps:r}=(e=>{const t={systemProps:{},otherProps:{}},i=e?.theme?.unstable_sxConfig??To;return Object.keys(e).forEach((o=>{i[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]})),t})(i);let a;return a=Array.isArray(t)?[o,...t]:"function"==typeof t?(...e)=>{const i=t(...e);return _i(i)?{...o,...i}:o}:{...o,...t},{...r,sx:a}}const fo=e=>e,No=(()=>{let e=fo;return{configure(t){e=t},generate:t=>e(t),reset(){e=fo}}})();const Ro={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};const Lo=function(t={}){const{themeId:i,defaultTheme:o,defaultClassName:r="MuiBox-root",generateClassName:a}=t,n=
|
|
24
24
|
/**
|
|
25
25
|
* @mui/styled-engine v7.1.0
|
|
26
26
|
*
|
|
@@ -28,5 +28,5 @@ object-assign
|
|
|
28
28
|
* This source code is licensed under the MIT license found in the
|
|
29
29
|
* LICENSE file in the root directory of this source tree.
|
|
30
30
|
*/
|
|
31
|
-
function(e,t){const i=q(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const o=`"${e}"`;return 0===t.length?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),i(...t)}:i}("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Io),l=le.forwardRef((function(t,l){const d=function(e=fo){return mo(e)}(o),{className:s,component:p="div",..._}=No(t);return e.jsx(n,{as:p,ref:l,className:ke(s,a?a(r):r),theme:i&&d[i]||d,..._})}));return l}({defaultClassName:function(e,t,i="Mui"){const o={};return t.forEach((t=>{o[t]=function(e,t,i="Mui"){const o=yo[t];return o?`${i}-${o}`:`${Lo.generate(e)}-${t}`}(e,t,i)})),o}("MuiBox",["root"]).root,generateClassName:Lo.generate});"production"!==process.env.NODE_ENV&&(Do.propTypes={children:ii.node,component:ii.elementType,sx:ii.oneOfType([ii.arrayOf(ii.oneOfType([ii.func,ii.object,ii.bool])),ii.func,ii.object])});const Co=t=>e.jsx(l.TextField,{...t,slotProps:{inputLabel:{shrink:!0}}}),Uo=t=>{if(t?.fieldInfo){const i=t.fieldInfo,o=t?.formManager||null,r=t?.formActions||null,a=t?.formValues||null,n=t?.fieldInfo?.fieldName||null,d=t?.fieldInfo?.fieldType||null;return i&&o&&a&&n&&d?void 0!==i?.hidden&&i?.hidden||t.hiddenFields.includes(n)?e.jsx(e.Fragment,{}):e.jsx(l.Grid2,{size:i?.formProps?.fieldSize||{lg:12,md:12,sm:12},sx:{padding:1,width:"100%"},children:"text"===d||"number"===d?e.jsx(Co,{fullWidth:!0,type:d,disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),hidden:i?.hidden||!1,label:i?.fieldLabel,value:a[n],onChange:e=>{let t=null;""!=e.target.value&&(t="number"===d&&Lt(e.target.value)?Number(e.target.value):e.target.value),o.setValue(n,t),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(t,o,r)},sx:i?.formProps?.style,error:null!=o.formState.errors[n],helperText:o?.formState?.errors[n]?.message?.toString()}):"date"===i?.fieldType?e.jsx(dt,{format:i?.dateFormat||nt,sx:i?.formProps?.style||{width:"100%"},disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),label:i?.fieldLabel,onChangeCallBack:e=>{o.setValue(n,e),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(e,o,r)},value:a[n],error:null!=o.formState.errors[n],errorMessage:o?.formState?.errors[n]?.message?.toString()}):"datetime"===i?.fieldType?e.jsx(st,{format:i?.dateFormat||lt,sx:i?.formProps?.style||{width:"100%"},disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),label:i?.fieldLabel,onChangeCallBack:e=>{o.setValue(n,e),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(e,o,r)},value:a[n],error:null!=o.formState.errors[n],errorMessage:o?.formState?.errors[n]?.message?.toString()}):"checkbox"===i?.fieldType?e.jsx(_t,{label:i?.fieldLabel,onChangeCallBack:e=>{o.setValue(n,e),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(e,o,r)},value:a[n],checkedValue:i?.checkedValue||"true",unCheckedValue:i?.unCheckedValue||"false",disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),sx:i?.formProps?.style}):"combobox"===i?.fieldType?e.jsx(pt,{sx:i?.formProps?.style||{width:"100%"},label:i?.fieldLabel,disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),onChangeCallBack:(e,t)=>{let a=null;e&&(a=e+""),o.setValue(n,a),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(a,o,r,t)},options:i?.options||[],displayField:i?.optionDisplayField||"",valueField:i?.optionValueField||"",value:a[n],errorMessage:o?.formState?.errors[n]?.message?.toString()}):e.jsx(e.Fragment,{children:"Unknown field type"})}):e.jsx(e.Fragment,{})}return e.jsx(e.Fragment,{})},Mo=t=>{const i=je(),{ConfirmationWindow:o,setOpen:r}=rt({body:t?.confirmationMessage||"",title:"Confirmation",onConfirmationCallBk:()=>{t?.actionFn(t?.record)}});return null==t?.authority||i.isUserAuthorized(t.authority)?e.jsxs(e.Fragment,{children:[e.jsx(o,{}),e.jsxs(l.Button,{variant:t?.formActionProps?.actionButtonVariant,color:t?.formActionProps?.actionButtonColor,onClick:()=>{if(t?.actionFn){if(t?.preActionValidation&&!t.preActionValidation(t.record))return;!0===t?.isConfirmationRequired?r(!0):t?.actionFn(t.record)}},children:[t?.icon?e.jsx(T.FontAwesomeIcon,{icon:t.icon,style:{marginRight:5,marginLeft:5}}):e.jsx(e.Fragment,{}),e.jsx("div",{children:t?.label})]})]}):e.jsx(e.Fragment,{})},ho=t=>e.jsx(e.Fragment,{children:e.jsxs(l.Grid2,{container:!0,sx:t?.style,alignItems:"flex-start",children:[t?.label?e.jsx(l.Grid2,{size:12,sx:{padding:1,fontWeight:"bold",display:"flex"},children:t?.icon?e.jsxs(e.Fragment,{children:[e.jsx(T.FontAwesomeIcon,{icon:t.icon,style:{marginRight:5,marginLeft:5}}),e.jsx("div",{children:t.label})]}):e.jsx(e.Fragment,{children:t.label})}):e.jsx(e.Fragment,{}),t?.elements?t.elements.map((i=>"group"===i.type?e.jsx(ho,{...i.props,formManager:t.formManager,formValues:t.formValues,formActions:t.formActions,hiddenFields:t.hiddenFields,disabledFields:t.disabledFields}):"field"===i.type&&"props"===i.mode?e.jsx(Uo,{fieldInfo:i.props,formManager:t.formManager,formValues:t.formValues,formActions:t.formActions,hiddenFields:t.hiddenFields,disabledFields:t.disabledFields}):"field"===i.type&&"node"===i.mode?e.jsx(l.Grid2,{size:i?.props?.formProps?.fieldSize||{lg:3,md:6,sm:12},sx:{padding:1,width:"100%"},children:e.jsx(i.node,{formManager:t.formManager,formValues:t.formValues,formActions:t.formActions})}):void 0)):null,t?.actions?e.jsx(l.Grid2,{size:{sm:12},sx:{padding:1},children:t.actions.map((i=>e.jsx(Mo,{...i,record:t.formValues})))}):e.jsx(e.Fragment,{})]})}),Po=t=>{const i=ut(t.elements),[o,r]=s.useState([]),[a,n]=s.useState([]),d=de.object(It(i)),p=j.useForm({resolver:Y.zodResolver(d)}),_=p.watch(),E=g.useParams(),c=t?.formRouteRecordIdParamName,u={setFieldValue:(e,t)=>{p.setValue(e,t)},hideField:e=>{r((t=>[...t,e]))},showField:e=>{r((t=>t.filter((t=>t!==e))))},disableField:e=>{n((t=>[...t,e]))},enableField:e=>{n((t=>t.filter((t=>t!==e))))}};return s.useEffect((()=>{(async()=>{let e=null;if(t?.recordIdToEdit?e=t.recordIdToEdit:c&&E[c]&&(e=E[c]),e){const i=await t.apiActions.loadRecordById(e);i&&p.reset({...i})}})()}),[t?.recordIdToEdit]),e.jsxs(e.Fragment,{children:[e.jsx(Do,{sx:{display:"flex",flex:1,width:"100%",height:"fit-content",flexDirection:"column",alignItems:"center",overflow:"auto"},children:e.jsx(l.Grid2,{sx:{width:"100%"},container:!0,children:t.elements.map((t=>"group"===t.type?e.jsx(ho,{...t.props,formManager:p,formValues:_,formActions:u,hiddenFields:o,disabledFields:a}):"field"===t.type&&"props"===t.mode?e.jsx(Uo,{fieldInfo:t.props,formManager:p,formValues:_,formActions:u,hiddenFields:o,disabledFields:a}):"field"===t.type&&"node"===t.mode?e.jsx(l.Grid2,{size:t?.props?.formProps?.fieldSize||{lg:3,md:6,xs:12},sx:{padding:1,width:"100%"},children:e.jsx(t.node,{formManager:p,formValues:_})}):void 0))})}),e.jsxs(Do,{sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"flex-start"},children:[t?.actions?t.actions.map((t=>!0===t?.formActionProps?.enabled?e.jsx(Mo,{...t,record:_}):e.jsx(e.Fragment,{}))):e.jsx(e.Fragment,{}),e.jsx("div",{style:{flex:1}}),e.jsx(l.Button,{variant:t?.saveButtonSpecs?.actionButtonVariant?t.saveButtonSpecs.actionButtonVariant:"contained",sx:{m:1},startIcon:t?.saveButtonSpecs?.icon?e.jsx(T.FontAwesomeIcon,{icon:t.saveButtonSpecs.icon}):null,color:t?.saveButtonSpecs?.actionButtonColor?t.saveButtonSpecs.actionButtonColor:"primary",onClick:p.handleSubmit((e=>{console.log("form values",e),(async e=>{if((!t?.preSaveValidation||t.preSaveValidation(e))&&e){const i=await t.apiActions.saveRecord(e);i&&(p.reset({...i}),t?.formSavedSuccessfullyCallBk&&t.formSavedSuccessfullyCallBk(i),t?.formCloseCallBk&&t.formCloseCallBk())}})(e)}),(e=>{A.toast.error("Form Data is not valid, make sure you have all field with valid data"),console.log("form validation error",e)})),children:t?.saveButtonSpecs?.label||"save"}),e.jsx(l.Button,{variant:t?.cancelButtonSpecs?.actionButtonVariant?t.cancelButtonSpecs.actionButtonVariant:"contained",startIcon:t?.cancelButtonSpecs?.icon?e.jsx(T.FontAwesomeIcon,{icon:t.cancelButtonSpecs.icon}):null,color:t?.cancelButtonSpecs?.actionButtonColor?t.cancelButtonSpecs.actionButtonColor:"error",sx:{m:1},onClick:()=>{t?.formCloseCallBk&&t.formCloseCallBk(),p.reset({})},children:t?.cancelButtonSpecs?.label||"cancel"})]})]})},So=t=>{const[i,o]=s.useState(!1);return{windowState:i,setWindowState:o,Window:r=>e.jsx(l.Modal,{open:i,sx:{zIndex:e=>e.zIndex.drawer},onClose:()=>{!i&&t?.onCloseCallBack&&t.onCloseCallBack()},children:e.jsxs(l.Box,{sx:{position:"absolute",top:"50%",left:"50%",maxHeight:"90%",transform:"translate(-50%, -50%)",height:t?.height||"80%",width:t?.width||"90%",minWidth:t.minWidth||400,minHeight:t.minHeight||200,overflow:"hidden",bgcolor:"modalBackground.main",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"},children:[e.jsx(l.AppBar,{position:"static",children:e.jsxs(l.Toolbar,{variant:"dense",children:[e.jsx(T.FontAwesomeIcon,{icon:t?.windowIcon||"window-maximize",style:{marginRight:5}}),e.jsx(l.Typography,{variant:"h6",color:"inherit",component:"div",children:t?.windowTitle||"window"}),e.jsx("div",{style:{flexGrow:1}}),e.jsx(l.IconButton,{onClick:()=>{o(!1),null!=t.onCloseCallBack&&null!=t.onCloseCallBack&&t.onCloseCallBack()},color:"secondary",children:e.jsx(T.FontAwesomeIcon,{icon:"xmark-square"})})]})}),e.jsx(l.Paper,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%",padding:1,overflow:"hidden"},children:r?.children})]})})}};let bo=-1;const go=e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):{}}catch(e){return console.error("Failed to load grid state",e),{}}},xo=(e,t)=>{const i=go(e);localStorage.setItem(e,JSON.stringify({...i,...t}))},vo=["__check__","actions"],Bo=i=>{const{t:o}=O.useTranslation(),r=ut(i.formElements),a=[],n=s.useMemo((()=>i?.gridStateKey?go(i.gridStateKey):{}),[]);for(const e of r)!0===e?.gridProps?.hidden&&a.push(e.fieldName);let d={};if(n?.columnVisibilityModel){d=n.columnVisibilityModel;const e=Object.keys(d);for(const t of a)e.includes(t)||(d[t]=!1)}else for(const e of a)d[e]=!1;const p=t.useSelector((e=>e.AppLayout.appDirection)),[_,E]=s.useState(d),[c,u]=s.useState(n.columnOrder||[]),[I,m]=s.useState(n.columnWidths||{}),[f,N]=s.useState(n.columnGroupingModel||[]);let R=n?.pinnedColumns?.left||[];R=R.filter((e=>!vo.includes(e)));let L=n?.pinnedColumns?.right||[]||[];L=L.filter((e=>!vo.includes(e)));const[y,D]=s.useState({left:[..."ltr"===p?vo:[],...R],right:[..."rtl"===p?vo:[],...L]}),C=je(),U=g.useNavigate(),[M,h]=s.useState(null),[P,S]=s.useState(null),[b,x]=s.useState({}),[v,B]=s.useState({ids:new Set,type:"include"});let W="id";i?.keyColumnName&&(W=i?.keyColumnName);const G=i.setData,j=k.z.object(It(r)),Y=((t,i,o)=>{const r=[];for(const n of t)if("text"===n?.fieldType||"number"===n?.fieldType){const e={...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,type:"number"==n?.fieldType?"number":"string",field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,flex:1,minWidth:200};r.push(e)}else if("date"===n?.fieldType){const t=(a={...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,flex:1,minWidth:200},{...a,type:"string",renderEditCell:t=>e.jsx(dt,{sx:{width:"100%"},label:"",value:t.value,onChangeCallBack:e=>{t.api.setEditCellValue({id:t.id,field:t.field,value:e})}}),valueParser:(e,t,i)=>{let o=null;return null!==e&&(o=w(e).format(nt)),o},valueFormatter:(e,t,i)=>t[i.field]});r.push(t)}else if("datetime"===n?.fieldType){const e=Et({...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,flex:1,minWidth:200});r.push(e)}else if("checkbox"===n?.fieldType){const e=Tt({...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,checkedValue:n?.checkedValue,unCheckedValue:n?.unCheckedValue,width:150});r.push(e)}else if("combobox"===n?.fieldType){const e=ct({...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,valueField:n?.optionValueField||"value",displayField:n?.optionDisplayField||"display",options:n?.options||[],flex:1,minWidth:200});r.push(e)}var a;return r})(r,"row"===i?.editMode?.editMode||!1,o);let q=!0;i?.editAction?.authority&&(q=C.isUserAuthorized(i.editAction.authority));let K=!0;i?.deleteAction?.authority&&(K=C.isUserAuthorized(i.deleteAction.authority));const{ConfirmationWindow:V,setOpen:H}=rt({title:"Confirmation",body:"Are you sure you want to delete this record ?",onConfirmationCallBk:async()=>{let e=!0;M&&!0===M?.isNew||(e=await i.apiActions.deleteRecordById(M[W])),e&&(i?.deleteAction?.postActionCallBack&&await i.deleteAction.postActionCallBack(M),G((e=>e.filter((e=>e[W]!=M[W])))))}});let Q,z,Z,$,X,J;"modal"===i?.editMode?.editMode&&(Q=i?.editMode?.specs?.modalHeight||"fit-content",z=i?.editMode?.specs?.modalWidth||"300",Z=i?.editMode?.specs?.modalMinHeight,$=i?.editMode?.specs?.modalMinWidth,X=i?.editMode?.specs?.modalIcon||"window",J=i?.editMode?.specs?.modalTitle||"Record Form");const{Window:ee,setWindowState:te}=So({height:Q,minHeight:Z,minWidth:$,onCloseCallBack:()=>{i.apiActions.reloadData(i?.gridLoadParametersValues)},width:z,windowIcon:X,windowTitle:J}),ie={type:"actions",field:"actions",headerName:"",headerAlign:"center",width:(i?.rowActions?30*i.rowActions.length:0)+(i?.editAction&&i?.editAction?.isEnabled?30:0)+(i?.deleteAction&&i?.deleteAction?.isEnabled?30:0),getActions:t=>{const r=t.row,a=[];if("none"!=i?.editMode?.editMode&&(void 0===i?.disableDefaultAction||!i.disableDefaultAction)){const t=b[r[W]]?.mode===F.GridRowModes.Edit;if("row"===i.editMode.editMode&&t)q&&(a.push(e.jsx(F.GridActionsCellItem,{icon:e.jsx(T.FontAwesomeIcon,{icon:"save"}),label:o("SAVE_BTN_LABEL"),onClick:()=>{(e=>{const t=e[W];x({...b,[t]:{mode:F.GridRowModes.View}})})(r)}})),a.push(e.jsx(F.GridActionsCellItem,{icon:e.jsx(T.FontAwesomeIcon,{icon:"cancel"}),label:o("CANCEL_BTN_LABEL"),onClick:()=>{(e=>{const t=e[W];t&&Rt(t)&&t<0?(x({...b,[t]:{mode:F.GridRowModes.View,ignoreModifications:!0}}),G((e=>{const i=e.filter((e=>e[W]!=t));return i}))):x({...b,[t]:{mode:F.GridRowModes.View,ignoreModifications:!0}})})(r)},color:"inherit"})));else{if(i?.editAction&&!0===i?.editAction?.isEnabled){let t=!0;i?.editAction?.isActionVisibleForRecord&&(t=i?.editAction?.isActionVisibleForRecord(r));let n=!1;i?.editAction?.isActionDisabledForRecord&&(n=i?.editAction?.isActionDisabledForRecord(r)),q&&t&&a.push(e.jsx(F.GridActionsCellItem,{disabled:n,icon:e.jsx(l.Tooltip,{title:o("EDIT_BTN_LABEL"),children:e.jsx(T.FontAwesomeIcon,{icon:"edit",style:{color:n?"gray":void 0}})}),showInMenu:i?.editAction?.gridActionProps?.showInMenu||!1,label:o("EDIT_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{q&&!n&&(async e=>{if(e)if(S(e),"form"===i.editMode.editMode)U(i.editMode.specs.formRoute+"/"+e[W]);else if("modal"===i.editMode.editMode)te(!0);else if("row"===i?.editMode?.editMode){const t=e[W];x({...b,[t]:{mode:F.GridRowModes.Edit}})}})(r)}}))}if(i?.deleteAction&&!0===i?.deleteAction?.isEnabled){let t=!0;i?.deleteAction?.isActionVisibleForRecord&&(t=i?.deleteAction?.isActionVisibleForRecord(r));let n=!1;i?.deleteAction?.isActionDisabledForRecord&&(n=i?.deleteAction?.isActionDisabledForRecord(r)),K&&t&&a.push(e.jsx(F.GridActionsCellItem,{disabled:n,icon:e.jsx(l.Tooltip,{title:o("DELETE_BTN_LABEL"),children:e.jsx(T.FontAwesomeIcon,{icon:"trash",style:{color:n?"gray":void 0}})}),showInMenu:i?.deleteAction?.gridActionProps?.showInMenu||!1,label:o("DELETE_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{if(K&&!n){if(i?.deleteAction?.preActionValidation&&!i.deleteAction.preActionValidation(r))return;h(r),H(!0)}}}))}}}if(i?.rowActions)for(const t of i.rowActions)t?.gridActionProps?.multiRecord&&!0===t?.gridActionProps?.multiRecord||a.push(e.jsx(Dt,{...t,record:r,reloadData:async()=>{i.apiActions.reloadData(i?.gridLoadParametersValues)}}));return a}};let oe=[];(void 0===i?.disableDefaultAction||!i.disableDefaultAction||i?.rowActions&&i?.rowActions.length>0)&&oe.push(ie),oe=[...oe,...Y];s.useEffect((()=>{void 0!==i?.autoLoad&&!0!==i.autoLoad||i.apiActions.reloadData(i?.gridLoadParametersValues)}),[]);const re=s.useMemo((()=>{const e=oe.map((e=>({...e,width:I[e.field]||e.width})));if(c.length){const t=new Map(e.map((e=>[e.field,e])));return c.map((e=>t.get(e))).filter(Boolean)}return e}),[c,I,oe]);return e.jsxs(e.Fragment,{children:[e.jsx(V,{}),"modal"===i?.editMode?.editMode?e.jsx(ee,{children:i?.editMode?.specs?.formComponent?e.jsx(i.editMode.specs.formComponent,{recordIdToEdit:P?P[W]:void 0,formCloseCallBk:()=>{te(!1),i.apiActions.reloadData(i?.gridLoadParametersValues)}}):e.jsx(Po,{recordIdToEdit:P?P[W]:void 0,formCloseCallBk:()=>{te(!1),i.apiActions.reloadData(i?.gridLoadParametersValues)},elements:i.formElements,apiActions:i.apiActions,editAuthorityKey:i?.editAction?.authority,formSavedSuccessfullyCallBk:i?.editAction?.postActionCallBack,preSaveValidation:i?.editAction?.preActionValidation,actions:i?.rowActions})}):e.jsx(e.Fragment,{}),void 0!==i?.hideInfoBar||i?.hideInfoBar?e.jsx(e.Fragment,{}):e.jsxs(l.Box,{sx:{display:"flex"},children:[void 0!==i?.hideBackButton||i?.hideBackButton?e.jsx(e.Fragment,{}):e.jsx(l.IconButton,{onClick:()=>{U("-1",{replace:!0})},children:e.jsx(T.FontAwesomeIcon,{icon:"arrow-left"})}),e.jsxs(l.Box,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:[i?.girdIcon?e.jsx(T.FontAwesomeIcon,{icon:i.girdIcon,style:{marginRight:5,marginLeft:5}}):e.jsx(e.Fragment,{}),e.jsx(l.Typography,{variant:"h5",children:i?.gridTitle?yt(o(i?.gridTitle)):""})]})]}),i?.gridLoadParameters&&i?.gridLoadParametersValues&&i?.setGridLoadParametersValues?e.jsxs(l.Accordion,{defaultExpanded:!0,children:[e.jsx(l.AccordionSummary,{expandIcon:e.jsx(F.GridExpandMoreIcon,{}),children:e.jsxs(l.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(T.FontAwesomeIcon,{style:{marginLeft:5,marginRight:5},icon:"search"}),e.jsx(l.Typography,{component:"span",children:"Filters"})]})}),e.jsx(l.AccordionDetails,{children:e.jsx(l.Box,{children:e.jsx(Po,{saveButtonSpecs:{label:o("SEARCH_BTN_LABEL"),icon:"search",actionButtonVariant:"outlined",actionButtonColor:"success"},cancelButtonSpecs:{label:o("RESET_BTN_LABEL"),icon:"eraser",actionButtonVariant:"outlined",actionButtonColor:"error"},apiActions:{deleteRecordById:async()=>!0,saveRecord:async e=>{null!=e?i.setGridLoadParametersValues(e):i.setGridLoadParametersValues({}),i.apiActions.reloadData(e)},reloadData:async()=>{},loadRecordById:async()=>{}},elements:i.gridLoadParameters})})})]}):e.jsx(e.Fragment,{}),e.jsx(F.DataGridPremium,{...i?.muiProps,slots:{toolbar:Nt},slotProps:{toolbar:{templateProps:{...i,rowSelectionModel:v,data:i?.data},handleCreateNewRecord:()=>{if("form"===i?.editMode?.editMode)U(i.editMode.specs.formRoute);else if("modal"===i?.editMode?.editMode)te(!0);else if("row"===i?.editMode?.editMode){bo-=1;const e={};e[W]=bo,e.isNew=!0;for(const t of Y)"actions"!=t?.type&&t?.field!=W&&t?.field&&(e[t.field]=null);G((t=>[e,...t])),x((e=>({...e,[bo]:{mode:F.GridRowModes.Edit}})))}},clearGridState:()=>{i?.gridStateKey&&localStorage.removeItem(i.gridStateKey),E({}),u([]),m({}),N([]),D({left:[..."ltr"===p?vo:[]],right:[..."rtl"===p?vo:[]]})}}},getRowId:e=>e[W],showToolbar:!0,rows:i?.data,columns:re,checkboxSelection:!0,editMode:"row",rowModesModel:"row"==i.editMode.editMode?b:void 0,onRowModesModelChange:"row"==i.editMode.editMode?e=>{x(e)}:void 0,rowGroupingColumnMode:"multiple",processRowUpdate:async t=>{if("row"===i.editMode.editMode){let o=null;const r=(e=>{try{j.parse(e)}catch(e){console.log("validateRecord err",e);let t=null;return t=e instanceof k.z.ZodError?e.errors.map((e=>"Error in field ("+e.path+") : "+e.message)).join(","):"invalid record data",t}})(t);if(r){const t=r.split(",");throw A.toast.error(e.jsx("div",{style:{},children:t.map((t=>e.jsxs(e.Fragment,{children:[e.jsx("div",{children:t}),e.jsx(l.Divider,{})]})))})),new Error(r)}if(i?.editAction?.preActionValidation&&!i.editAction.preActionValidation(t))throw new Error("error on the configured presave validation");const a={...t};if(t[W]&&Rt(t[W])&&Number(t[W])<0&&(a[W]=null),o=await i.apiActions.saveRecord(a),null==o)throw new Error("Failed to process your request, contact your administrator");return i?.editAction?.postActionCallBack&&await i.editAction.postActionCallBack(t),!0===t?.isNew&&G((e=>{const i=e.filter((e=>e[W]!==t[W]));return[o,...i]})),!0===i?.editMode?.reloadAfterSave&&i?.apiActions?.reloadData&&i?.apiActions?.reloadData(i?.gridLoadParametersValues),o}},rowSelectionModel:v,onRowSelectionModelChange:e=>{B(e)},columnVisibilityModel:_,onColumnVisibilityModelChange:e=>{E(e),i?.gridStateKey&&xo(i.gridStateKey,{columnVisibilityModel:e})},onColumnOrderChange:e=>{const{column:t,targetIndex:o}=e;u((e=>{const r=e.length?[...e]:oe.map((e=>e.field)),a=r.indexOf(t.field);return-1===a||(r.splice(a,1),r.splice(o,0,t.field),i?.gridStateKey&&xo(i.gridStateKey,{columnOrder:r})),r}))},onColumnWidthChange:e=>{const t={...I,[e.colDef.field]:e.width};m(t),i?.gridStateKey&&xo(i.gridStateKey,{columnWidths:t})},rowGroupingModel:f,onRowGroupingModelChange:e=>{(e=>{N(e),i?.gridStateKey&&xo(i.gridStateKey,{columnGroupingModel:e})})(e)},pinnedColumns:y,onPinnedColumnsChange:e=>{let t=e?.left||[];t=t.filter((e=>!vo.includes(e)));let o=e?.right||[];o=o.filter((e=>!vo.includes(e)));const r={left:[..."ltr"===p?vo:[],...t],right:[..."rtl"===p?vo:[],...o]};D(r),i?.gridStateKey&&xo(i.gridStateKey,{pinnedColumns:r})}})]})},Fo=e=>{const i=t.useSelector((e=>e.commonStores)),o=t.useDispatch(),r=je(),{handleGetRequest:a,handlePostRequest:n,handleDeleteRequest:l}=ge();return{reloadData:async t=>{if(e?.commonStoreKey){const t=Object.keys(i);for(const n of t)if(n===e.commonStoreKey&&(void 0===i[n]?.authority||null===i[n]?.authority||r.isUserAuthorized(i[n]?.authority))&&""!=i[n]?.url){await a({endPointURI:i[n].url,showMask:!1,successCallBkFn:t=>{o(Le({storeKey:n,data:t.data})),e.setData(t.data)},failureCallBkFn:()=>{o(Le({storeKey:n,data:[]})),e.setData([])}});break}}else e?.findAll&&await a({endPointURI:e.findAll,showMask:!0,parameters:t||{},successCallBkFn:t=>{e.setData(t.data)}})},loadRecordById:async t=>{let i=null;if(e?.findById){const o={};o[e?.findByIdParamName||"id"]=t,await a({endPointURI:e.findById,showMask:!0,parameters:o,successCallBkFn:e=>{i=e.data}})}return i},saveRecord:async t=>{let i=null;return e?.save&&await n({endPointURI:e.save,data:t,showMask:!0,successCallBkFn:e=>{i=e.data}}),i},deleteRecordById:async t=>{let i=!0;if(e?.deleteById){const o={};o[e?.deleteByIdParamName||"id"]=t,await l({endPointURI:e.deleteById,showMask:!0,parameters:o,successCallBkFn:()=>{i=!0},failureCallBkFn:()=>{i=!1}})}return i}}},wo=[{path:"/",component:()=>e.jsxs(l.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,fontSize:24,fontWeight:"bold"},children:[e.jsx("img",{src:"logo.png",style:{margin:5}}),e.jsx("div",{children:"Welcome to Ezzsteel Flat Product Management System"}),e.jsxs("div",{style:{fontSize:16},children:["Use side menu [",e.jsx(T.FontAwesomeIcon,{icon:"bars",style:{marginLeft:10,marginRight:10}}),"] to navigate to your authorized system modules"]})]})},...[...[{path:"admin/attachments",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/attachment/all",deleteById:"api/v1/admin/attachment",save:"api/v1/admin/attachment",findById:"api/v1/admin/attachment",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_ATTACHMENT_NUMBER",fieldName:"attachmentNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_ATTACHMENT_SIZE",fieldName:"attachmentSize",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_ATTACHMENT_TYPE",fieldName:"attachmentType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_CATEGORY",fieldName:"category",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_DOC_TYPE",fieldName:"docType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_FILE_NAME",fieldName:"fileName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_REF_KEY",fieldName:"refKey",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_REMARK",fieldName:"remark",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ATTACHMENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ATTACHMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"ATTACHMENT_DELETE"}})},authority:"ATTACHMENT_VIEW"},{path:"admin/authorities",component:()=>{const[t,i]=s.useState([]),o=Fo({commonStoreKey:"SystemAuthorities",deleteById:"api/v1/admin/authority",save:"api/v1/admin/authority",findById:"api/v1/admin/authority",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_AUTHORITY_CODE",fieldName:"authorityCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_AUTHORITY_DESCRIPTION",fieldName:"authorityDescription",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_AUTHORITY_NAME",fieldName:"authorityName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_ORGANIZATION_APPLICATION_ID",fieldName:"organizationApplicationId",required:!1,fieldType:"text",gridProps:{hidden:!0}}}],keyColumnName:"id",gridTitle:"AUTHORITY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"AUTHORITY_EDIT"},deleteAction:{isEnabled:!0,authority:"AUTHORITY_DELETE"}})},authority:"AUTHORITY_VIEW"},{path:"admin/blueprints",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/blueprint/all",deleteById:"api/v1/admin/blueprint",save:"api/v1/admin/blueprint",findById:"api/v1/admin/blueprint",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_BLUE_PRINT_CODE",fieldName:"bluePrintCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_QUERY_ID",fieldName:"queryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"BLUE_PRINT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_DELETE"}})},authority:"BLUE_PRINT_VIEW"},{path:"admin/blueprintpages",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/blueprintpage/all",deleteById:"api/v1/admin/blueprintpage",save:"api/v1/admin/blueprintpage",findById:"api/v1/admin/blueprintpage",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_BLUE_PRINT_ID",fieldName:"bluePrintId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_PAGE_NAME",fieldName:"pageName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_PAGE_ORDER",fieldName:"pageOrder",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_QUERY_ID",fieldName:"queryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"BLUE_PRINT_PAGE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_PAGE_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_PAGE_DELETE"}})},authority:"BLUE_PRINT_PAGE_VIEW"},{path:"admin/blueprintpoints",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/blueprintpoint/all",deleteById:"api/v1/admin/blueprintpoint",save:"api/v1/admin/blueprintpoint",findById:"api/v1/admin/blueprintpoint",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_BLUE_PRINT_PAGE_ID",fieldName:"bluePrintPageId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_FONT_SIZE",fieldName:"fontSize",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_POINT_CODE",fieldName:"pointCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_X",fieldName:"x",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_Y",fieldName:"y",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"BLUE_PRINT_POINT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_POINT_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_POINT_DELETE"}})},authority:"BLUE_PRINT_POINT_VIEW"},{path:"admin/dashboards",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/dashboard/all",deleteById:"api/v1/admin/dashboard",save:"api/v1/admin/dashboard",findById:"api/v1/admin/dashboard",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_CODE",fieldName:"dashboardCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_NAME",fieldName:"dashboardName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_TITLE",fieldName:"dashboardTitle",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_LOAD_WIDGETS_INDIVIDUALLY",fieldName:"loadWidgetsIndividually",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_NUMBER_OF_COLUMNS",fieldName:"numberOfColumns",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"DASHBOARD_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DASHBOARD_EDIT"},deleteAction:{isEnabled:!0,authority:"DASHBOARD_DELETE"}})},authority:"DASHBOARD_VIEW"},{path:"admin/dashboardwidgets",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/dashboardwidget/all",deleteById:"api/v1/admin/dashboardwidget",save:"api/v1/admin/dashboardwidget",findById:"api/v1/admin/dashboardwidget",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_DASHBOARD_ID",fieldName:"dashboardId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ID",fieldName:"widgetId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ORDER",fieldName:"widgetOrder",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"DASHBOARD_WIDGET_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_EDIT"},deleteAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_DELETE"}})},authority:"DASHBOARD_WIDGET_VIEW"},{path:"admin/dataqueries",component:()=>{const[t,i]=s.useState([]),o=Fo({commonStoreKey:"SystemDataQueries",deleteById:"api/v1/admin/dataquery",save:"api/v1/admin/dataquery",findById:"api/v1/admin/dataquery",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_DATASOURCE_CON_ID",fieldName:"datasourceConId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_NAME",fieldName:"queryName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_STR",fieldName:"queryStr",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_USE_SYS_CON",fieldName:"useSysCon",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"DATA_QUERY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_EDIT"},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_DELETE"}})},authority:"DATA_QUERY_VIEW"},{path:"admin/dataqueryparameters",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/dataqueryparameter/all",deleteById:"api/v1/admin/dataqueryparameter",save:"api/v1/admin/dataqueryparameter",findById:"api/v1/admin/dataqueryparameter",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DATA_QUERY_ID",fieldName:"dataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DEFAULT_VALUE",fieldName:"defaultValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_HIDDEN",fieldName:"hidden",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_MANDATORY",fieldName:"mandatory",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"DATA_QUERY_PARAMETER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_DELETE"}})},authority:"DATA_QUERY_PARAMETER_VIEW"},{path:"admin/datasourceconnections",component:()=>{const[t,i]=s.useState([]),o=Fo({commonStoreKey:"SystemDataSources",deleteById:"api/v1/admin/datasourceconnection",save:"api/v1/admin/datasourceconnection",findById:"api/v1/admin/datasourceconnection",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_CONNECTION_NAME",fieldName:"connectionName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_PASSWORD",fieldName:"datasourcePassword",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_TYPE",fieldName:"datasourceType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_URL",fieldName:"datasourceUrl",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_USERNAME",fieldName:"datasourceUsername",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"DATASOURCE_CONNECTION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_EDIT"},deleteAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_DELETE"}})},authority:"DATASOURCE_CONNECTION_VIEW"},{path:"admin/employees",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/employee/all",deleteById:"api/v1/admin/employee",save:"api/v1/admin/employee",findById:"api/v1/admin/employee",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_EMAIL",fieldName:"email",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_EMPLOYEE_NAME",fieldName:"employeeName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_EMPLOYEE_NUMBER",fieldName:"employeeNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_MOBILE_NUMBER",fieldName:"mobileNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_ORGANIZATION_RANK_ID",fieldName:"organizationRankId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_ORGANIZATION_UNIT_ID",fieldName:"organizationUnitId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_USER_ACCOUNT_ID",fieldName:"userAccountId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"EMPLOYEE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"EMPLOYEE_EDIT"},deleteAction:{isEnabled:!0,authority:"EMPLOYEE_DELETE"}})},authority:"EMPLOYEE_VIEW"},{path:"admin/entityparameters",component:()=>{const[t,i]=s.useState([]),o=Fo({commonStoreKey:"SystemEntityParameters",deleteById:"api/v1/admin/entityparameter",save:"api/v1/admin/entityparameter",findById:"api/v1/admin/entityparameter",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_CODE",fieldName:"parameterCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID",fieldName:"parameterDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATASET",fieldName:"parameterDataset",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD",fieldName:"parameterDisplayField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_LABEL",fieldName:"parameterLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_TYPE",fieldName:"parameterType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FIELD",fieldName:"parameterValueField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT",fieldName:"parameterValueFormat",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ENTITY_PARAMETER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_DELETE"}})},authority:"ENTITY_PARAMETER_VIEW"},{path:"admin/exceluploaderdetails",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/exceluploaderdetail/all",deleteById:"api/v1/admin/exceluploaderdetail",save:"api/v1/admin/exceluploaderdetail",findById:"api/v1/admin/exceluploaderdetail",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_COLUMN_INDEX",fieldName:"columnIndex",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID",fieldName:"excelUploaderHeaderId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID",fieldName:"lookupQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_TABLE_FIELD",fieldName:"tableField",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"EXCEL_UPLOADER_DETAIL_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_DETAIL_EDIT"},deleteAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_DETAIL_DELETE"}})},authority:"EXCEL_UPLOADER_DETAIL_VIEW"},{path:"admin/exceluploaderheaders",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/exceluploaderheader/all",deleteById:"api/v1/admin/exceluploaderheader",save:"api/v1/admin/exceluploaderheader",findById:"api/v1/admin/exceluploaderheader",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID",fieldName:"uploaderConnectionId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME",fieldName:"uploaderDatabaseName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_NAME",fieldName:"uploaderName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME",fieldName:"uploaderTableName",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"EXCEL_UPLOADER_HEADER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_HEADER_EDIT"},deleteAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_HEADER_DELETE"}})},authority:"EXCEL_UPLOADER_HEADER_VIEW"},{path:"admin/lookups",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/lookup/all",deleteById:"api/v1/admin/lookup",save:"api/v1/admin/lookup",findById:"api/v1/admin/lookup",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_AR_DISPLAY",fieldName:"lookupArDisplay",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_EN_DISPLAY",fieldName:"lookupEnDisplay",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_TYPE",fieldName:"lookupType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_VALUE",fieldName:"lookupValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_ORG_CODE",fieldName:"orgCode",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"LOOKUP_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"LOOKUP_EDIT"},deleteAction:{isEnabled:!0,authority:"LOOKUP_DELETE"}})},authority:"LOOKUP_VIEW"},{path:"admin/mailattachments",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/mailattachment/all",deleteById:"api/v1/admin/mailattachment",save:"api/v1/admin/mailattachment",findById:"api/v1/admin/mailattachment",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_REPORT_ID",fieldName:"reportId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"MAIL_ATTACHMENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_DELETE"}})},authority:"MAIL_ATTACHMENT_VIEW"},{path:"admin/mailbodies",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/mailbody/all",deleteById:"api/v1/admin/mailbody",save:"api/v1/admin/mailbody",findById:"api/v1/admin/mailbody",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT",fieldName:"bodyContent",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID",fieldName:"bodyContentDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_ORDER",fieldName:"bodyOrder",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_IS_MAIN",fieldName:"isMain",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_PRINT_FOR_EACH_RECORD",fieldName:"printForEachRecord",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"MAIL_BODY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_BODY_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_BODY_DELETE"}})},authority:"MAIL_BODY_VIEW"},{path:"admin/mailnotificationqueues",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/mailnotificationqueue/all",deleteById:"api/v1/admin/mailnotificationqueue",save:"api/v1/admin/mailnotificationqueue",findById:"api/v1/admin/mailnotificationqueue",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID",fieldName:"customMailAttachedReportId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY",fieldName:"customMailBody",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT",fieldName:"customMailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS",fieldName:"customRecipients",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS",fieldName:"mailParameters",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE",fieldName:"notificationMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME",fieldName:"notificationTime",required:!1,fieldType:"datetime"}}],keyColumnName:"id",gridTitle:"MAIL_NOTIFICATION_QUEUE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_DELETE"}})},authority:"MAIL_NOTIFICATION_QUEUE_VIEW"},{path:"admin/mailrecipients",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/mailrecipient/all",deleteById:"api/v1/admin/mailrecipient",save:"api/v1/admin/mailrecipient",findById:"api/v1/admin/mailrecipient",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_MAIL",fieldName:"recipientMail",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_TYPE",fieldName:"recipientType",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"MAIL_RECIPIENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_DELETE"}})},authority:"MAIL_RECIPIENT_VIEW"},{path:"admin/mailtemplates",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/mailtemplate/all",deleteById:"api/v1/admin/mailtemplate",save:"api/v1/admin/mailtemplate",findById:"api/v1/admin/mailtemplate",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID",fieldName:"mailCcDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_SUBJECT",fieldName:"mailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_CODE",fieldName:"mailTemplateCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_NAME",fieldName:"mailTemplateName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID",fieldName:"mailToDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_TYPE",fieldName:"periodType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_VALUE",fieldName:"periodValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIODICAL",fieldName:"periodical",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_START_SENDING_AT",fieldName:"startSendingAt",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID",fieldName:"subjectDataQueryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"MAIL_TEMPLATE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_DELETE"}})},authority:"MAIL_TEMPLATE_VIEW"},{path:"admin/newtables",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/newtable/all",deleteById:"api/v1/admin/newtable",save:"api/v1/admin/newtable",findById:"api/v1/admin/newtable",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"NEW_TABLE_TEST_DATE",fieldName:"testDate",required:!1,fieldType:"date"}},{type:"field",mode:"props",props:{fieldLabel:"NEW_TABLE_TEST_LONG",fieldName:"testLong",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"NEW_TABLE_TEST_DECIMAL",fieldName:"testDecimal",required:!1,fieldType:"number"}}],keyColumnName:"id",gridTitle:"NEW_TABLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"NEW_TABLE_EDIT"},deleteAction:{isEnabled:!0,authority:"NEW_TABLE_DELETE"}})},authority:"NEW_TABLE_VIEW"},{path:"admin/notifications",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/notification/all",deleteById:"api/v1/admin/notification",save:"api/v1/admin/notification",findById:"api/v1/admin/notification",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_ACTION_KEY",fieldName:"notificationActionKey",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD",fieldName:"notificationActionPayload",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_CODE",fieldName:"notificationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_ICON",fieldName:"notificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_QUERY_ID",fieldName:"notificationQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_TEXT",fieldName:"notificationText",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID",fieldName:"usersToNotifyQueryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"NOTIFICATION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"NOTIFICATION_EDIT"},deleteAction:{isEnabled:!0,authority:"NOTIFICATION_DELETE"}})},authority:"NOTIFICATION_VIEW"},{path:"admin/notificationqueues",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/notificationqueue/all",deleteById:"api/v1/admin/notificationqueue",save:"api/v1/admin/notificationqueue",findById:"api/v1/admin/notificationqueue",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY",fieldName:"customNotificationActionKey",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD",fieldName:"customNotificationActionPayload",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON",fieldName:"customNotificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT",fieldName:"customNotificationText",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_NOTIFICATION_CODE",fieldName:"notificationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_NOTIFICATION_PARAMS",fieldName:"notificationParams",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_NOTIFIED_TIME",fieldName:"notifiedTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"NOTIFICATION_QUEUE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"NOTIFICATION_QUEUE_EDIT"},deleteAction:{isEnabled:!0,authority:"NOTIFICATION_QUEUE_DELETE"}})},authority:"NOTIFICATION_QUEUE_VIEW"},{path:"admin/organizations",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/organization/all",deleteById:"api/v1/admin/organization",save:"api/v1/admin/organization",findById:"api/v1/admin/organization",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_CODE",fieldName:"organizationCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_NAME",fieldName:"organizationName",required:!1,fieldType:"text"}}],keyColumnName:"organizationCode",gridTitle:"ORGANIZATION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_DELETE"}})},authority:"ORGANIZATION_VIEW"},{path:"admin/organizationapplications",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/organizationapplication/all",deleteById:"api/v1/admin/organizationapplication",save:"api/v1/admin/organizationapplication",findById:"api/v1/admin/organizationapplication",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_APPLICATION_CODE",fieldName:"applicationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_APPLICATION_DESCRIPTION",fieldName:"applicationDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_APPLICATION_NAME",fieldName:"applicationName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_APPLICATION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_DELETE"}})},authority:"ORGANIZATION_APPLICATION_VIEW"},{path:"admin/organizationranks",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/organizationrank/all",deleteById:"api/v1/admin/organizationrank",save:"api/v1/admin/organizationrank",findById:"api/v1/admin/organizationrank",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_CODE",fieldName:"rankCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_NAME",fieldName:"rankName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_ORDER",fieldName:"rankOrder",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_RANK_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_DELETE"}})},authority:"ORGANIZATION_RANK_VIEW"},{path:"admin/organizationunits",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/organizationunit/all",deleteById:"api/v1/admin/organizationunit",save:"api/v1/admin/organizationunit",findById:"api/v1/admin/organizationunit",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME",fieldName:"organizationUnitArName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME",fieldName:"organizationUnitEnName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID",fieldName:"organizationUnitParentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_UNIT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_DELETE"}})},authority:"ORGANIZATION_UNIT_VIEW"},{path:"admin/organizationusers",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/organizationuser/all",deleteById:"api/v1/admin/organizationuser",save:"api/v1/admin/organizationuser",findById:"api/v1/admin/organizationuser",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_IS_DEFAULT",fieldName:"isDefault",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_USER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_USER_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_USER_DELETE"}})},authority:"ORGANIZATION_USER_VIEW"},{path:"admin/organizationuserroles",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/organizationuserrole/all",deleteById:"api/v1/admin/organizationuserrole",save:"api/v1/admin/organizationuserrole",findById:"api/v1/admin/organizationuserrole",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_END_DATE",fieldName:"endDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_ROLE_ID",fieldName:"roleId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_START_DATE",fieldName:"startDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_USER_ROLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_USER_ROLE_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_USER_ROLE_DELETE"}})},authority:"ORGANIZATION_USER_ROLE_VIEW"},{path:"admin/reports",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/report/all",deleteById:"api/v1/admin/report",save:"api/v1/admin/report",findById:"api/v1/admin/report",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"REPORT_DATASOURCE_CON_ID",fieldName:"datasourceConId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_BLUE_PRINT_ID",fieldName:"reportBluePrintId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CATEGORY",fieldName:"reportCategory",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CODE",fieldName:"reportCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXCEL_DATA_QUERY_ID",fieldName:"reportExcelDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXPORT_NAME",fieldName:"reportExportName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_NAME",fieldName:"reportJasperName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_PATH",fieldName:"reportJasperPath",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_MENU_CODE",fieldName:"reportMenuCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_NAME",fieldName:"reportName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_TYPE",fieldName:"reportType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_USE_SYS_DATASOURCE",fieldName:"useSysDatasource",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"REPORT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"REPORT_EDIT"},deleteAction:{isEnabled:!0,authority:"REPORT_DELETE"}})},authority:"REPORT_VIEW"},{path:"admin/reportparameters",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/reportparameter/all",deleteById:"api/v1/admin/reportparameter",save:"api/v1/admin/reportparameter",findById:"api/v1/admin/reportparameter",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_DEFAULT_VALUE",fieldName:"defaultValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_HIDDEN",fieldName:"hidden",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_MANDATORY",fieldName:"mandatory",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_REPORT_ID",fieldName:"reportId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"REPORT_PARAMETER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"REPORT_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"REPORT_PARAMETER_DELETE"}})},authority:"REPORT_PARAMETER_VIEW"},{path:"admin/roles",component:()=>{const[t,i]=s.useState([]),o=Fo({commonStoreKey:"SystemRoles",deleteById:"api/v1/admin/role",save:"api/v1/admin/role",findById:"api/v1/admin/role",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ROLE_ROLE_NAME",fieldName:"roleName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_DESCRIPTION",fieldName:"description",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_ORGANIZATION_APPLICATION_ID",fieldName:"organizationApplicationId",required:!1,fieldType:"text",gridProps:{hidden:!0}}}],keyColumnName:"id",gridTitle:"ROLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ROLE_EDIT"},deleteAction:{isEnabled:!0,authority:"ROLE_DELETE"}})},authority:"ROLE_VIEW"},{path:"admin/roleauthorities",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/roleauthority/all",deleteById:"api/v1/admin/roleauthority",save:"api/v1/admin/roleauthority",findById:"api/v1/admin/roleauthority",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ROLE_AUTHORITY_AUTHORITY_ID",fieldName:"authorityId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_AUTHORITY_ROLE_ID",fieldName:"roleId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ROLE_AUTHORITY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ROLE_AUTHORITY_EDIT"},deleteAction:{isEnabled:!0,authority:"ROLE_AUTHORITY_DELETE"}})},authority:"ROLE_AUTHORITY_VIEW"},{path:"admin/useraccounts",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/useraccount/all",deleteById:"api/v1/admin/useraccount",save:"api/v1/admin/useraccount",findById:"api/v1/admin/useraccount",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"USER_ACCOUNT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"USER_ACCOUNT_PASSWORD",fieldName:"password",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_ACCOUNT_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"USER_ACCOUNT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"USER_ACCOUNT_EDIT"},deleteAction:{isEnabled:!0,authority:"USER_ACCOUNT_DELETE"}})},authority:"USER_ACCOUNT_VIEW"},{path:"admin/userrequests",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/userrequest/all",deleteById:"api/v1/admin/userrequest",save:"api/v1/admin/userrequest",findById:"api/v1/admin/userrequest",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_MAILS_TO_NOTIFY",fieldName:"mailsToNotify",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFICATION_MESSAGE",fieldName:"notificationMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFICATION_TIME",fieldName:"notificationTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFICATION_TYPE",fieldName:"notificationType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFY_USER",fieldName:"notifyUser",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_REPORT_CODE",fieldName:"reportCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_REPORT_PARAMETERS",fieldName:"reportParameters",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_REQUEST_TYPE",fieldName:"requestType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_STATUS",fieldName:"status",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_STATUS_MESSAGE",fieldName:"statusMessage",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"USER_REQUEST_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"USER_REQUEST_EDIT"},deleteAction:{isEnabled:!0,authority:"USER_REQUEST_DELETE"}})},authority:"USER_REQUEST_VIEW"},{path:"admin/widgets",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/widget/all",deleteById:"api/v1/admin/widget",save:"api/v1/admin/widget",findById:"api/v1/admin/widget",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WIDGET_DATA_QUERY_ID",fieldName:"dataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HEIGHT",fieldName:"height",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HORIZONTAL_AXIS_FIELD",fieldName:"horizontalAxisField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HORIZONTAL_AXIS_LABEL",fieldName:"horizontalAxisLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ICON",fieldName:"icon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_SERIES_KEYS",fieldName:"seriesKeys",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_TITLE",fieldName:"title",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_VERTICAL_AXIS_FIELD",fieldName:"verticalAxisField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_VERTICAL_AXIS_LABEL",fieldName:"verticalAxisLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_DESCRIPTION",fieldName:"widgetDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_NAME",fieldName:"widgetName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_TYPE",fieldName:"widgetType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDTH",fieldName:"width",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WIDGET_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WIDGET_EDIT"},deleteAction:{isEnabled:!0,authority:"WIDGET_DELETE"}})},authority:"WIDGET_VIEW"},{path:"admin/workflowdocuments",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/workflowdocument/all",deleteById:"api/v1/admin/workflowdocument",save:"api/v1/admin/workflowdocument",findById:"api/v1/admin/workflowdocument",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON",fieldName:"appNotificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE",fieldName:"appNotificationStyle",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_VIEW_ROUTE",fieldName:"appViewRoute",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CODE",fieldName:"documentCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CON_ID",fieldName:"documentConId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME",fieldName:"documentDatabaseName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE",fieldName:"documentDatabaseTable",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD",fieldName:"documentIdField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_NAME",fieldName:"documentName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD",fieldName:"documentNumberField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_REPORT_ID",fieldName:"documentReportId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD",fieldName:"documentStatusField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED",fieldName:"mailApprovalAllowed",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ORG_CODE",fieldName:"orgCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_USE_SYSTEM_CON",fieldName:"useSystemCon",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_DELETE"}})},authority:"WORKFLOW_DOCUMENT_VIEW"},{path:"admin/workflowdocumentactions",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/workflowdocumentaction/all",deleteById:"api/v1/admin/workflowdocumentaction",save:"api/v1/admin/workflowdocumentaction",findById:"api/v1/admin/workflowdocumentaction",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE",fieldName:"documentActionCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_NAME",fieldName:"documentActionName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID",fieldName:"nextDocumentStatusId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_POST_ACTION_ENDPOINT",fieldName:"postActionEndpoint",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_PRE_ACTION_ENDPOINT",fieldName:"preActionEndpoint",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT",fieldName:"requireComment",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_ACTION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_DELETE"}})},authority:"WORKFLOW_DOCUMENT_ACTION_VIEW"},{path:"admin/workflowdocumentactionhistories",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/workflowdocumentactionhistory/all",deleteById:"api/v1/admin/workflowdocumentactionhistory",save:"api/v1/admin/workflowdocumentactionhistory",findById:"api/v1/admin/workflowdocumentactionhistory",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_BY",fieldName:"actionBy",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_COMMENT",fieldName:"actionComment",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_METHOD",fieldName:"actionMethod",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_TIME",fieldName:"actionTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_ACTION_ID",fieldName:"documentActionId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_REF_ID",fieldName:"documentRefId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_ACTION_HISTORY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_HISTORY_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_HISTORY_DELETE"}})},authority:"WORKFLOW_DOCUMENT_ACTION_HISTORY_VIEW"},{path:"admin/workflowdocumentactionmails",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/workflowdocumentactionmail/all",deleteById:"api/v1/admin/workflowdocumentactionmail",save:"api/v1/admin/workflowdocumentactionmail",findById:"api/v1/admin/workflowdocumentactionmail",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID",fieldName:"documentActionId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_DELETE"}})},authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_VIEW"},{path:"admin/workflowdocumentmaillogs",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/workflowdocumentmaillog/all",deleteById:"api/v1/admin/workflowdocumentmaillog",save:"api/v1/admin/workflowdocumentmaillog",findById:"api/v1/admin/workflowdocumentmaillog",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID",fieldName:"graphApiMsgId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED",fieldName:"isProcessed",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE",fieldName:"mailActionCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT",fieldName:"mailBodyContent",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM",fieldName:"mailFrom",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT",fieldName:"mailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE",fieldName:"processMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME",fieldName:"processTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID",fieldName:"refDocId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_MAIL_LOG_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_MAIL_LOG_DELETE"}})},authority:"WORKFLOW_DOCUMENT_MAIL_LOG_VIEW"},{path:"admin/workflowdocumentstatuses",component:()=>{const[t,i]=s.useState([]),o=Fo({findAll:"api/v1/admin/workflowdocumentstatus/all",deleteById:"api/v1/admin/workflowdocumentstatus",save:"api/v1/admin/workflowdocumentstatus",findById:"api/v1/admin/workflowdocumentstatus",setData:i});return e.jsx(Bo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE",fieldName:"documentStatusCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_NAME",fieldName:"documentStatusName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER",fieldName:"documentStatusOrder",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE",fieldName:"isZeroState",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_NEXT_ACTION_TAKERS_QUERY_ID",fieldName:"nextActionTakersQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_NEXT_ACTIONS_QUERY_ID",fieldName:"nextActionsQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_STATUS_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_DELETE"}})},authority:"WORKFLOW_DOCUMENT_STATUS_VIEW"}]]],Wo=()=>{const i=t.useSelector((e=>e.AppLayout)),o=t.useSelector((e=>e.AppInfo.value.businessRoutes));return e.jsx(d.CacheProvider,{value:"ltr"===i.appDirection?ot:it,children:e.jsx(l.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",flex:1,overflow:"hidden",padding:3},children:e.jsxs(g.Routes,{children:[wo.map(((t,i)=>e.jsx(g.Route,{path:t.path,Component:t.component},"adm"+i))),o.map(((t,i)=>e.jsx(g.Route,{path:t.path,Component:t.component},"bs"+i)))]})})})},Go=p.styled("div")((({theme:e})=>({width:30,height:6,margin:10,backgroundColor:K.grey[300],borderRadius:3,top:8,...e.applyStyles("dark",{backgroundColor:K.grey[900]})})));function ko(i){const{window:o}=i,r=t.useSelector((e=>e.AppLayout)),a=t.useSelector((e=>e.AppInfo.value)),n=t.useDispatch(),d=e=>{n(Ee.setSideBarState(e))},s=void 0!==o?()=>o().document.body:void 0;return e.jsx(V,{container:s,anchor:"bottom",open:r.sideBarOpened,onClose:()=>{d(!1)},onOpen:()=>{d(!0)},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},children:e.jsxs(l.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",overflow:"hidden"},children:[e.jsx(Go,{}),e.jsx(l.Box,{sx:{flexGrow:1,display:"flex",justifyContent:"center",width:"99%",overflowY:"auto"},children:e.jsx(et,{})}),e.jsxs(l.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1,width:"100%"},children:[e.jsx(l.Typography,{sx:{fontSize:12},color:"textDisabled",children:a.appName}),e.jsxs(l.Typography,{sx:{fontSize:12},color:"textDisabled",children:["V.",a.appVersion]})]})]})})}const jo=()=>{const i=t.useSelector((e=>e.loadingMask.value));return e.jsx(l.Backdrop,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:i.isOpened,children:e.jsx(l.CircularProgress,{color:"inherit"})})},Yo=()=>{const i=t.useSelector((e=>e.AppInfo.value)),[o,r]=s.useState(""),[a,n]=s.useState(""),[p,_]=s.useState(!1),E=t.useSelector((e=>e.UserSession.value)),c=t.useDispatch(),T=async()=>{if(null==o||""==o)return void A.toast.error("username is required to proceed");if(null==a||""==a)return void A.toast.error("password is required to proceed");_(!0);let e=null;try{if(e=await u.post(`${i.apiBaseUrl}/api/auth/login`,{username:o,password:a},{withCredentials:!0}),null!=e.data&&""!==e.data){_(!1);const t={isAuthenticated:!0,authorities:e.data.authorities,userProfile:e.data};c(Ae.setAuthenticated(t))}}catch(e){_(!1),A.toast.error(e?.response?.data||"failed to authenticate, contact your administrator")}},I=t.useSelector((e=>e.UserSession.value)),O=l.createTheme(Pe);return s.useEffect((()=>{(async()=>{if(i?.apiBaseUrl&&null==I.isAuthenticated)try{let e=await u.get(`${i.apiBaseUrl}/api/auth/userInfo`,{withCredentials:!0});if(null!=e&&null!=e.data){const t={isAuthenticated:!0,authorities:e.data.authorities,userProfile:e.data};c(Ae.setAuthenticated(t))}else c(Ae.setUnAuthenticated())}catch(e){c(Ae.setUnAuthenticated())}})()}),[i]),e.jsx(d.ThemeProvider,{theme:O,children:e.jsx(l.Paper,{sx:{display:"flex",height:"100vh",width:"100%",borderRadius:0,alignItems:"center",justifyContent:"center"},children:0==E.isAuthenticated?e.jsxs(l.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[e.jsx("img",{src:i?.appLogo,width:150,height:150}),e.jsx(l.Typography,{sx:{m:1},variant:"h4",color:"textSecondary",children:i?.appName}),e.jsxs(l.Typography,{sx:{paddingRight:1,width:"100%",textAlign:"right",fontSize:10},variant:"caption",color:"textSecondary",children:["V.",i.appVersion]}),e.jsx(l.TextField,{label:"username",sx:{width:300,m:1},value:o,onChange:e=>{r(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&T()}}),e.jsx(l.TextField,{label:"password",sx:{width:300,m:1},value:a,type:"password",onChange:e=>{n(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&T()}}),e.jsx(l.Button,{loading:p,onClick:T,variant:"contained",color:"primary",sx:{m:1},children:"login"})]}):e.jsxs(e.Fragment,{children:[e.jsx(l.CircularProgress,{sx:{marginRight:1}}),e.jsx("div",{children:"You will be redirected shortly ... please wait"})]})})})},qo=p.styled("main",{shouldForwardProp:e=>"open"!==e})((({theme:e,open:i})=>{const o=t.useSelector((e=>e.AppLayout)),r=t.useDispatch(),{show:a,hide:n}=be(),l=t.useSelector((e=>e.commonStores)),d=p.useTheme(),_=Se(),{isUserAuthorized:E}=je(),{handleGetRequest:c}=ge();return s.useEffect((()=>{(async()=>{a("Loading ... please wait");let e=Object.keys(l);for(let t of e)void 0!==l[t]?.authority&&null!==l[t]?.authority&&!E(l[t]?.authority)||""==l[t]?.url||!0!==l[t].autoLoad||await c({endPointURI:l[t].url,showMask:!1,successCallBkFn:e=>{r(Le({storeKey:t,data:e.data}))},failureCallBkFn:()=>{r(Le({storeKey:t,data:[]}))}});n()})()}),[]),{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1,width:!_&&i?"calc(100% - 350px)":"100%",direction:o.appDirection,justifyContent:"flex-start",transition:!0===i?d.transitions.create(["margin","width"],{easing:d.transitions.easing.easeOut,duration:d.transitions.duration.enteringScreen}):d.transitions.create(["margin","width"],{easing:d.transitions.easing.sharp,duration:d.transitions.duration.leavingScreen}),marginLeft:_||"ltr"!==o.appDirection||!0!==i?0:se+"px",marginRight:_||"rtl"!==o.appDirection||!0!==i?0:se+"px"}}));function Ko(){const i=t.useSelector((e=>e.AppLayout)),o=Se(),r=t.useSelector((e=>e.UserSession));return e.jsxs(g.BrowserRouter,{children:[e.jsx(A.ToastContainer,{draggable:!0,position:"bottom-center"}),e.jsx(jo,{}),!0===r.value.isAuthenticated?e.jsxs(qo,{open:i.sideBarOpened,children:[e.jsx(_,{}),e.jsx(we,{}),o?null:e.jsx(tt,{}),o?e.jsx(ko,{}):null,e.jsx(We,{}),e.jsx(Wo,{})]}):e.jsx(Yo,{})]})}const Vo=i=>{H.LicenseInfo.setLicenseKey(i.muiPremiumKey);const o=t.useDispatch(),r=t.useSelector((e=>e.AppLayout));let a={...he};"dark"===r.themeMode&&(a={...Pe});const n=l.createTheme({direction:r.appDirection,...a});return s.useEffect((()=>{document.title=i.documentTitle,o(Ce.setAppInfo(i))}),[]),e.jsx(d.ThemeProvider,{theme:n,children:e.jsx(Ko,{})})};o.library.add(r.fab),o.library.add(a.far),o.library.add(n.fas);function Ho(e,t){return e.filter((e=>-1===t.indexOf(e)))}function Qo(e,t){return e.filter((e=>-1!==t.indexOf(e)))}const zo=t=>{const i=t.data.map(((e,i)=>({id:i,value:e[t.valueField],label:e[t.labelField]+""})));return console.log("chartData",i),e.jsx(oe.PieChart,{series:[{data:i}]})},Zo=t=>e.jsx(re.BarChart,{dataset:t.data,xAxis:[{dataKey:t.valueField,scaleType:"band"}],series:t.labelField?.split(",").map((e=>({dataKey:e,label:e})))}),$o=t=>e.jsx(re.LineChart,{dataset:t.data,xAxis:[{dataKey:t.valueField,scaleType:"band"}],series:t.labelField?.split(",").map((e=>({dataKey:e,label:e})))}),Xo=t=>e.jsxs(e.Fragment,{children:[e.jsxs(l.Typography,{sx:{fontSize:16,fontWeight:"bold"},children:[t.widgetTitle," - ",t.record[t.labelField]]}),e.jsx(re.Gauge,{width:200,height:200,value:t.record[t.valueField]})]}),Jo=t=>e.jsxs(l.Paper,{sx:{display:"flex",flexDirection:"column",height:150,padding:1,flexGrow:1,justifyContent:"center",alignItems:"center"},children:[e.jsx(l.Box,{sx:{display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"},children:e.jsx(l.Typography,{sx:{fontSize:16,fontWeight:"bold"},children:t.widgetTitle})}),e.jsx(l.Box,{sx:{flex:1,display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"},children:e.jsx("div",{children:`${t.record[t.labelField]} : ${t.record[t.valueField]}`})}),e.jsx(l.Box,{sx:{display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"}})]});function er(t){return e.jsxs(L,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(L,{sx:{width:"100%",mr:1},children:e.jsx(ae,{variant:"determinate",...t})}),e.jsx(L,{sx:{minWidth:35},children:e.jsx(D,{variant:"body2",sx:{color:"text.secondary"},children:`${Math.round(t.value)}%`})})]})}const tr=t=>e.jsxs(L,{sx:{width:"100%"},children:[e.jsxs(D,{sx:{fontSize:16,fontWeight:"bold"},children:[t.widgetTitle," - ",t.record[t.labelField]]}),e.jsx(er,{value:t.record[t.valueField]})]}),ir=({children:t,widgetType:i})=>e.jsx(ie,{size:{xs:12,sm:6,md:4},sx:{alignItems:"center",justifyContent:"center",padding:1,display:"flex",flexDirection:"Card"!=i?"column":void 0,height:300},children:t});Object.defineProperty(exports,"FontAwesomeIcon",{enumerable:!0,get:function(){return T.FontAwesomeIcon}}),Object.defineProperty(exports,"toast",{enumerable:!0,get:function(){return A.toast}}),exports.BaseApp=i=>{if(i?.businessCommonStoresMetaData)for(let e of Object.keys(i.businessCommonStoresMetaData))Ne[e]=i.businessCommonStoresMetaData[e];if(i?.businessReduxReducers)for(let e of Object.keys(i.businessReduxReducers))o=e,r=i.businessReduxReducers[e],Ue[o]||(Ue[o]=r);var o,r;return e.jsx(t.Provider,{store:Me,children:e.jsx(Vo,{...i})})},exports.CheckBox=_t,exports.ComboBox=pt,exports.DATE_FORMAT=nt,exports.DATE_TIME_FORMAT=lt,exports.Datefield=dt,exports.DatetimeField=st,exports.TemplateBarChart=Zo,exports.TemplateDashboard=t=>e.jsxs(e.Fragment,{children:[e.jsx(l.Typography,{sx:{fontSize:20,fontWeight:"bold"},children:t.dashboardTitle}),e.jsx(ie,{container:!0,sx:{flexGrow:1,width:"100%",overflowY:"auto",padding:2},children:t.dashboardWidgets.map(((t,i)=>"Card"===t.widgetType||"Gauge"===t.widgetType||"Progress"===t.widgetType?e.jsx(e.Fragment,{children:t.data.map(((i,o)=>{const r={widgetTitle:t.widgetTitle,record:i,labelField:t.labelField,valueField:t.valueField};return e.jsxs(ir,{widgetType:t.widgetType,children:["Card"===t.widgetType?e.jsx(Jo,{...r}):null,"Gauge"===t.widgetType?e.jsx(Xo,{...r}):null,"Progress"===t.widgetType?e.jsx(tr,{...r}):null]},o)}))}):e.jsxs(ir,{widgetType:t.widgetType,children:["Pie"===t.widgetType?e.jsx(zo,{...t}):null,"Line"===t.widgetType?e.jsx($o,{...t}):null,"Bar"===t.widgetType?e.jsx(Zo,{...t}):null]},i)))})]}),exports.TemplateDataCard=Jo,exports.TemplateForm=Po,exports.TemplateGauge=Xo,exports.TemplateGrid=Bo,exports.TemplateLineChart=$o,exports.TemplateLineProgress=tr,exports.TemplatePieChart=zo,exports.TemplateTextField=Co,exports.TransferList=({valueField:t="id",displayField:i="name",options:o=[],selectedOptions:r=[],setSelection:a})=>{const[n,d]=le.useState([]),[s,p]=le.useState(o),[_,E]=le.useState(r),[c,T]=le.useState(""),[A,u]=le.useState(""),I=Qo(n,s),O=Qo(n,_),f=e=>()=>{const t=n.indexOf(e),i=[...n];-1===t?i.push(e):i.splice(t,1),d(i)},N=e=>Qo(n,e).length,R=e=>()=>{var t,i;N(e)===e.length?d(Ho(n,e)):d((t=n,i=e,[...t,...Ho(i,t)]))},L=(o,r,a)=>{const d=r.filter((e=>{if(e[i]){const t=e[i];if("left"===a&&t.toLocaleLowerCase().includes(c.toLocaleLowerCase()))return!0;if("right"===a&&t.toLocaleLowerCase().includes(A.toLocaleLowerCase()))return!0}return!1}));return e.jsxs(z,{sx:{height:"100%"},children:[e.jsx(Z,{sx:{px:2,py:1},avatar:e.jsx(ee,{onClick:R(d),checked:N(d)===d.length&&0!==d.length,indeterminate:N(d)!==d.length&&0!==N(d),disabled:0===d.length,inputProps:{"aria-label":"all items selected"}}),title:o,subheader:`${N(r)} / ${r.length} Selected`}),e.jsx(l.Box,{sx:{width:"100%",padding:1},children:e.jsx(Co,{fullWidth:!0,label:"search",value:"left"===a?c:A,onChange:e=>{"left"===a?T(e.target.value):u(e.target.value)}})}),e.jsx(m,{}),e.jsx(Q,{sx:{width:"100%",height:"100%",bgcolor:"secondary",overflow:"auto"},dense:!0,component:"div",role:"list",children:d.map((o=>{const r=`transfer-list-all-item-${o[t]}-label`;return e.jsxs($,{role:"listitem",component:"button",onClick:f(o),children:[e.jsx(J,{children:e.jsx(ee,{checked:-1!==n.indexOf(o),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":r}})}),e.jsx(X,{id:o[t],primary:o[i]})]},o[t])}))})]})};return e.jsxs(l.Grid2,{container:!0,spacing:2,sx:{flexGrow:1,overflow:"auto",margin:1,display:"flex",width:"100%"},justifyContent:"center",alignItems:"center",children:[e.jsx(l.Grid2,{sx:{height:"100%",flex:1},children:L("Available Items",s,"left")}),e.jsx(l.Grid2,{children:e.jsxs(l.Grid2,{container:!0,direction:"column",alignItems:"center",children:[e.jsx(te,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{E((e=>{let t=_.concat(I);return a(t),t})),p(Ho(s,I)),d(Ho(n,I))},disabled:0===I.length,"aria-label":"move selected right",children:">"}),e.jsx(te,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{p(s.concat(O)),E((e=>{let t=Ho(_,O);return a(t),t})),d(Ho(n,O))},disabled:0===O.length,"aria-label":"move selected left",children:"<"})]})}),e.jsx(l.Grid2,{sx:{height:"100%",flex:1},children:L("Currently Selected",_,"right")})]})},exports.capitalizeFirstLetter=yt,exports.hasDigitsOnly=function(e){return/^\d+$/.test(e)},exports.isNumber=Rt,exports.isNumeric=Lt,exports.useAxios=ge,exports.useConfirmationWindow=rt,exports.useIsMobile=Se,exports.useLoadingMask=be,exports.useSession=je,exports.useWindow=So,Object.keys(l).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return l[e]}})})),Object.keys(k).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return k[e]}})}));
|
|
31
|
+
function(e,t){const i=q(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const o=`"${e}"`;return 0===t.length?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),i(...t)}:i}("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ao),l=le.forwardRef((function(t,l){const d=function(e=Oo){return Io(e)}(o),{className:s,component:p="div",..._}=mo(t);return e.jsx(n,{as:p,ref:l,className:We(s,a?a(r):r),theme:i&&d[i]||d,..._})}));return l}({defaultClassName:function(e,t,i="Mui"){const o={};return t.forEach((t=>{o[t]=function(e,t,i="Mui"){const o=Ro[t];return o?`${i}-${o}`:`${No.generate(e)}-${t}`}(e,t,i)})),o}("MuiBox",["root"]).root,generateClassName:No.generate});"production"!==process.env.NODE_ENV&&(Lo.propTypes={children:ei.node,component:ei.elementType,sx:ei.oneOfType([ei.arrayOf(ei.oneOfType([ei.func,ei.object,ei.bool])),ei.func,ei.object])});const yo=t=>e.jsx(l.TextField,{...t,slotProps:{inputLabel:{shrink:!0}}}),Do=t=>{if(t?.fieldInfo){const i=t.fieldInfo,o=t?.formManager||null,r=t?.formActions||null,a=t?.formValues||null,n=t?.fieldInfo?.fieldName||null,d=t?.fieldInfo?.fieldType||null;return i&&o&&a&&n&&d?void 0!==i?.hidden&&i?.hidden||t.hiddenFields.includes(n)?e.jsx(e.Fragment,{}):e.jsx(l.Grid2,{size:i?.formProps?.fieldSize||{lg:12,md:12,sm:12},sx:{padding:1,width:"100%"},children:"text"===d||"number"===d?e.jsx(yo,{fullWidth:!0,type:d,disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),hidden:i?.hidden||!1,label:i?.fieldLabel,value:a[n],onChange:e=>{let t=null;""!=e.target.value&&(t="number"===d&&Nt(e.target.value)?Number(e.target.value):e.target.value),o.setValue(n,t),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(t,o,r)},sx:i?.formProps?.style,error:null!=o.formState.errors[n],helperText:o?.formState?.errors[n]?.message?.toString()}):"date"===i?.fieldType?e.jsx(nt,{format:i?.dateFormat||rt,sx:i?.formProps?.style||{width:"100%"},disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),label:i?.fieldLabel,onChangeCallBack:e=>{o.setValue(n,e),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(e,o,r)},value:a[n],error:null!=o.formState.errors[n],errorMessage:o?.formState?.errors[n]?.message?.toString()}):"datetime"===i?.fieldType?e.jsx(lt,{format:i?.dateFormat||at,sx:i?.formProps?.style||{width:"100%"},disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),label:i?.fieldLabel,onChangeCallBack:e=>{o.setValue(n,e),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(e,o,r)},value:a[n],error:null!=o.formState.errors[n],errorMessage:o?.formState?.errors[n]?.message?.toString()}):"checkbox"===i?.fieldType?e.jsx(st,{label:i?.fieldLabel,onChangeCallBack:e=>{o.setValue(n,e),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(e,o,r)},value:a[n],checkedValue:i?.checkedValue||"true",unCheckedValue:i?.unCheckedValue||"false",disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),sx:i?.formProps?.style}):"combobox"===i?.fieldType?e.jsx(dt,{sx:i?.formProps?.style||{width:"100%"},label:i?.fieldLabel,disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),onChangeCallBack:(e,t)=>{let a=null;e&&(a=e+""),o.setValue(n,a),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(a,o,r,t)},options:i?.options||[],displayField:i?.optionDisplayField||"",valueField:i?.optionValueField||"",value:a[n],errorMessage:o?.formState?.errors[n]?.message?.toString()}):e.jsx(e.Fragment,{children:"Unknown field type"})}):e.jsx(e.Fragment,{})}return e.jsx(e.Fragment,{})},Co=t=>{const i=Ge(),{ConfirmationWindow:o,setOpen:r}=it({body:t?.confirmationMessage||"",title:"Confirmation",onConfirmationCallBk:()=>{t?.actionFn(t?.record)}});return null==t?.authority||i.isUserAuthorized(t.authority)?e.jsxs(e.Fragment,{children:[e.jsx(o,{}),e.jsxs(l.Button,{variant:t?.formActionProps?.actionButtonVariant,color:t?.formActionProps?.actionButtonColor,onClick:()=>{if(t?.actionFn){if(t?.preActionValidation&&!t.preActionValidation(t.record))return;!0===t?.isConfirmationRequired?r(!0):t?.actionFn(t.record)}},children:[t?.icon?e.jsx(T.FontAwesomeIcon,{icon:t.icon,style:{marginRight:5,marginLeft:5}}):e.jsx(e.Fragment,{}),e.jsx("div",{children:t?.label})]})]}):e.jsx(e.Fragment,{})},ho=t=>e.jsx(e.Fragment,{children:e.jsxs(l.Grid2,{container:!0,sx:t?.style,alignItems:"flex-start",children:[t?.label?e.jsx(l.Grid2,{size:12,sx:{padding:1,fontWeight:"bold",display:"flex"},children:t?.icon?e.jsxs(e.Fragment,{children:[e.jsx(T.FontAwesomeIcon,{icon:t.icon,style:{marginRight:5,marginLeft:5}}),e.jsx("div",{children:t.label})]}):e.jsx(e.Fragment,{children:t.label})}):e.jsx(e.Fragment,{}),t?.elements?t.elements.map((i=>"group"===i.type?e.jsx(ho,{...i.props,formManager:t.formManager,formValues:t.formValues,formActions:t.formActions,hiddenFields:t.hiddenFields,disabledFields:t.disabledFields}):"field"===i.type&&"props"===i.mode?e.jsx(Do,{fieldInfo:i.props,formManager:t.formManager,formValues:t.formValues,formActions:t.formActions,hiddenFields:t.hiddenFields,disabledFields:t.disabledFields}):"field"===i.type&&"node"===i.mode?e.jsx(l.Grid2,{size:i?.props?.formProps?.fieldSize||{lg:3,md:6,sm:12},sx:{padding:1,width:"100%"},children:e.jsx(i.node,{formManager:t.formManager,formValues:t.formValues,formActions:t.formActions})}):void 0)):null,t?.actions?e.jsx(l.Grid2,{size:{sm:12},sx:{padding:1},children:t.actions.map((i=>e.jsx(Co,{...i,record:t.formValues})))}):e.jsx(e.Fragment,{})]})}),Mo=t=>{const i=Tt(t.elements),[o,r]=s.useState([]),[a,n]=s.useState([]),d=de.object(At(i)),p=j.useForm({resolver:Y.zodResolver(d)}),_=p.watch(),E=g.useParams(),c=t?.formRouteRecordIdParamName,u={setFieldValue:(e,t)=>{p.setValue(e,t)},hideField:e=>{r((t=>[...t,e]))},showField:e=>{r((t=>t.filter((t=>t!==e))))},disableField:e=>{n((t=>[...t,e]))},enableField:e=>{n((t=>t.filter((t=>t!==e))))}};return s.useEffect((()=>{(async()=>{let e=null;if(t?.recordIdToEdit?e=t.recordIdToEdit:c&&E[c]&&(e=E[c]),e){const i=await t.apiActions.loadRecordById(e);i&&p.reset({...i})}})()}),[t?.recordIdToEdit]),e.jsxs(e.Fragment,{children:[e.jsx(Lo,{sx:{display:"flex",flex:1,width:"100%",height:"fit-content",flexDirection:"column",alignItems:"center",overflow:"auto"},children:e.jsx(l.Grid2,{sx:{width:"100%"},container:!0,children:t.elements.map((t=>"group"===t.type?e.jsx(ho,{...t.props,formManager:p,formValues:_,formActions:u,hiddenFields:o,disabledFields:a}):"field"===t.type&&"props"===t.mode?e.jsx(Do,{fieldInfo:t.props,formManager:p,formValues:_,formActions:u,hiddenFields:o,disabledFields:a}):"field"===t.type&&"node"===t.mode?e.jsx(l.Grid2,{size:t?.props?.formProps?.fieldSize||{lg:3,md:6,xs:12},sx:{padding:1,width:"100%"},children:e.jsx(t.node,{formManager:p,formValues:_})}):void 0))})}),e.jsxs(Lo,{sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"flex-start"},children:[t?.actions?t.actions.map((t=>!0===t?.formActionProps?.enabled?e.jsx(Co,{...t,record:_}):e.jsx(e.Fragment,{}))):e.jsx(e.Fragment,{}),e.jsx("div",{style:{flex:1}}),e.jsx(l.Button,{variant:t?.saveButtonSpecs?.actionButtonVariant?t.saveButtonSpecs.actionButtonVariant:"contained",sx:{m:1},startIcon:t?.saveButtonSpecs?.icon?e.jsx(T.FontAwesomeIcon,{icon:t.saveButtonSpecs.icon}):null,color:t?.saveButtonSpecs?.actionButtonColor?t.saveButtonSpecs.actionButtonColor:"primary",onClick:p.handleSubmit((e=>{console.log("form values",e),(async e=>{if((!t?.preSaveValidation||t.preSaveValidation(e))&&e){const i=await t.apiActions.saveRecord(e);i&&(p.reset({...i}),t?.formSavedSuccessfullyCallBk&&t.formSavedSuccessfullyCallBk(i),t?.formCloseCallBk&&t.formCloseCallBk())}})(e)}),(e=>{A.toast.error("Form Data is not valid, make sure you have all field with valid data"),console.log("form validation error",e)})),children:t?.saveButtonSpecs?.label||"save"}),e.jsx(l.Button,{variant:t?.cancelButtonSpecs?.actionButtonVariant?t.cancelButtonSpecs.actionButtonVariant:"contained",startIcon:t?.cancelButtonSpecs?.icon?e.jsx(T.FontAwesomeIcon,{icon:t.cancelButtonSpecs.icon}):null,color:t?.cancelButtonSpecs?.actionButtonColor?t.cancelButtonSpecs.actionButtonColor:"error",sx:{m:1},onClick:()=>{t?.formCloseCallBk&&t.formCloseCallBk(),p.reset({})},children:t?.cancelButtonSpecs?.label||"cancel"})]})]})},Uo=t=>{const[i,o]=s.useState(!1);return{windowState:i,setWindowState:o,Window:r=>e.jsx(l.Modal,{open:i,sx:{zIndex:e=>e.zIndex.drawer},onClose:()=>{!i&&t?.onCloseCallBack&&t.onCloseCallBack()},children:e.jsxs(l.Box,{sx:{position:"absolute",top:"50%",left:"50%",maxHeight:"90%",transform:"translate(-50%, -50%)",height:t?.height||"80%",width:t?.width||"90%",minWidth:t.minWidth||400,minHeight:t.minHeight||200,overflow:"hidden",bgcolor:"modalBackground.main",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"},children:[e.jsx(l.AppBar,{position:"static",children:e.jsxs(l.Toolbar,{variant:"dense",children:[e.jsx(T.FontAwesomeIcon,{icon:t?.windowIcon||"window-maximize",style:{marginRight:5}}),e.jsx(l.Typography,{variant:"h6",color:"inherit",component:"div",children:t?.windowTitle||"window"}),e.jsx("div",{style:{flexGrow:1}}),e.jsx(l.IconButton,{onClick:()=>{o(!1),null!=t.onCloseCallBack&&null!=t.onCloseCallBack&&t.onCloseCallBack()},color:"secondary",children:e.jsx(T.FontAwesomeIcon,{icon:"xmark-square"})})]})}),e.jsx(l.Paper,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%",padding:1,overflow:"hidden"},children:r?.children})]})})}};let Po=-1;const So=e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):{}}catch(e){return console.error("Failed to load grid state",e),{}}},bo=(e,t)=>{const i=So(e);localStorage.setItem(e,JSON.stringify({...i,...t}))},go=["__check__","actions"],xo=i=>{const{t:o}=O.useTranslation(),r=Tt(i.formElements),a=[],n=s.useMemo((()=>i?.gridStateKey?So(i.gridStateKey):{}),[]);for(const e of r)!0===e?.gridProps?.hidden&&a.push(e.fieldName);let d={};if(n?.columnVisibilityModel){d=n.columnVisibilityModel;const e=Object.keys(d);for(const t of a)e.includes(t)||(d[t]=!1)}else for(const e of a)d[e]=!1;const p=t.useSelector((e=>e.AppLayout.appDirection)),[_,E]=s.useState(d),[c,u]=s.useState(n.columnOrder||[]),[I,m]=s.useState(n.columnWidths||{}),[f,N]=s.useState(n.columnGroupingModel||[]);let R=n?.pinnedColumns?.left||[];R=R.filter((e=>!go.includes(e)));let L=n?.pinnedColumns?.right||[]||[];L=L.filter((e=>!go.includes(e)));const[y,D]=s.useState({left:[..."ltr"===p?go:[],...R],right:[..."rtl"===p?go:[],...L]}),C=Ge(),h=g.useNavigate(),[M,U]=s.useState(null),[P,S]=s.useState(null),[b,x]=s.useState({}),[v,B]=s.useState({ids:new Set,type:"include"});let W="id";i?.keyColumnName&&(W=i?.keyColumnName);const G=i.setData,j=k.z.object(At(r)),Y=((t,i,o)=>{const r=[];for(const n of t)if("text"===n?.fieldType||"number"===n?.fieldType){const e={...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,type:"number"==n?.fieldType?"number":"string",field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,flex:1,minWidth:200};r.push(e)}else if("date"===n?.fieldType){const t=(a={...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,flex:1,minWidth:200},{...a,type:"string",renderEditCell:t=>e.jsx(nt,{sx:{width:"100%"},label:"",value:t.value,onChangeCallBack:e=>{t.api.setEditCellValue({id:t.id,field:t.field,value:e})}}),valueParser:(e,t,i)=>{let o=null;return null!==e&&(o=w(e).format(rt)),o},valueFormatter:(e,t,i)=>t[i.field]});r.push(t)}else if("datetime"===n?.fieldType){const e=pt({...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,flex:1,minWidth:200});r.push(e)}else if("checkbox"===n?.fieldType){const e=Et({...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,checkedValue:n?.checkedValue,unCheckedValue:n?.unCheckedValue,width:150});r.push(e)}else if("combobox"===n?.fieldType){const e=_t({...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,valueField:n?.optionValueField||"value",displayField:n?.optionDisplayField||"display",options:n?.options||[],flex:1,minWidth:200});r.push(e)}var a;return r})(r,"row"===i?.editMode?.editMode||!1,o);let q=!0;i?.editAction?.authority&&(q=C.isUserAuthorized(i.editAction.authority));let K=!0;i?.deleteAction?.authority&&(K=C.isUserAuthorized(i.deleteAction.authority));const{ConfirmationWindow:V,setOpen:H}=it({title:"Confirmation",body:"Are you sure you want to delete this record ?",onConfirmationCallBk:async()=>{let e=!0;M&&!0===M?.isNew||(e=await i.apiActions.deleteRecordById(M[W])),e&&(i?.deleteAction?.postActionCallBack&&await i.deleteAction.postActionCallBack(M),G((e=>e.filter((e=>e[W]!=M[W])))))}});let Q,z,Z,$,X,J;"modal"===i?.editMode?.editMode&&(Q=i?.editMode?.specs?.modalHeight||"fit-content",z=i?.editMode?.specs?.modalWidth||"300",Z=i?.editMode?.specs?.modalMinHeight,$=i?.editMode?.specs?.modalMinWidth,X=i?.editMode?.specs?.modalIcon||"window",J=i?.editMode?.specs?.modalTitle||"Record Form");const{Window:ee,setWindowState:te}=Uo({height:Q,minHeight:Z,minWidth:$,onCloseCallBack:()=>{i.apiActions.reloadData(i?.gridLoadParametersValues)},width:z,windowIcon:X,windowTitle:J}),ie={type:"actions",field:"actions",headerName:"",headerAlign:"center",width:(i?.rowActions?30*i.rowActions.length:0)+(i?.editAction&&i?.editAction?.isEnabled?30:0)+(i?.deleteAction&&i?.deleteAction?.isEnabled?30:0),getActions:t=>{const r=t.row,a=[];if("none"!=i?.editMode?.editMode&&(void 0===i?.disableDefaultAction||!i.disableDefaultAction)){const t=b[r[W]]?.mode===F.GridRowModes.Edit;if("row"===i.editMode.editMode&&t)q&&(a.push(e.jsx(F.GridActionsCellItem,{icon:e.jsx(T.FontAwesomeIcon,{icon:"save"}),label:o("SAVE_BTN_LABEL"),onClick:()=>{(e=>{const t=e[W];x({...b,[t]:{mode:F.GridRowModes.View}})})(r)}})),a.push(e.jsx(F.GridActionsCellItem,{icon:e.jsx(T.FontAwesomeIcon,{icon:"cancel"}),label:o("CANCEL_BTN_LABEL"),onClick:()=>{(e=>{const t=e[W];t&&ft(t)&&t<0?(x({...b,[t]:{mode:F.GridRowModes.View,ignoreModifications:!0}}),G((e=>{const i=e.filter((e=>e[W]!=t));return i}))):x({...b,[t]:{mode:F.GridRowModes.View,ignoreModifications:!0}})})(r)},color:"inherit"})));else{if(i?.editAction&&!0===i?.editAction?.isEnabled){let t=!0;i?.editAction?.isActionVisibleForRecord&&(t=i?.editAction?.isActionVisibleForRecord(r));let n=!1;i?.editAction?.isActionDisabledForRecord&&(n=i?.editAction?.isActionDisabledForRecord(r)),q&&t&&a.push(e.jsx(F.GridActionsCellItem,{disabled:n,icon:e.jsx(l.Tooltip,{title:o("EDIT_BTN_LABEL"),children:e.jsx(T.FontAwesomeIcon,{icon:"edit",style:{color:n?"gray":void 0}})}),showInMenu:i?.editAction?.gridActionProps?.showInMenu||!1,label:o("EDIT_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{q&&!n&&(async e=>{if(e)if(S(e),"form"===i.editMode.editMode)h(i.editMode.specs.formRoute+"/"+e[W]);else if("modal"===i.editMode.editMode)te(!0);else if("row"===i?.editMode?.editMode){const t=e[W];x({...b,[t]:{mode:F.GridRowModes.Edit}})}})(r)}}))}if(i?.deleteAction&&!0===i?.deleteAction?.isEnabled){let t=!0;i?.deleteAction?.isActionVisibleForRecord&&(t=i?.deleteAction?.isActionVisibleForRecord(r));let n=!1;i?.deleteAction?.isActionDisabledForRecord&&(n=i?.deleteAction?.isActionDisabledForRecord(r)),K&&t&&a.push(e.jsx(F.GridActionsCellItem,{disabled:n,icon:e.jsx(l.Tooltip,{title:o("DELETE_BTN_LABEL"),children:e.jsx(T.FontAwesomeIcon,{icon:"trash",style:{color:n?"gray":void 0}})}),showInMenu:i?.deleteAction?.gridActionProps?.showInMenu||!1,label:o("DELETE_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{if(K&&!n){if(i?.deleteAction?.preActionValidation&&!i.deleteAction.preActionValidation(r))return;U(r),H(!0)}}}))}}}if(i?.rowActions)for(const t of i.rowActions)t?.gridActionProps?.multiRecord&&!0===t?.gridActionProps?.multiRecord||a.push(e.jsx(Lt,{...t,record:r,reloadData:async()=>{i.apiActions.reloadData(i?.gridLoadParametersValues)}}));return a}};let oe=[];(void 0===i?.disableDefaultAction||!i.disableDefaultAction||i?.rowActions&&i?.rowActions.length>0)&&oe.push(ie),oe=[...oe,...Y];s.useEffect((()=>{void 0!==i?.autoLoad&&!0!==i.autoLoad||i.apiActions.reloadData(i?.gridLoadParametersValues)}),[]);const re=s.useMemo((()=>{const e=oe.map((e=>({...e,width:I[e.field]||e.width})));if(c.length){const t=new Map(e.map((e=>[e.field,e])));return c.map((e=>t.get(e))).filter(Boolean)}return e}),[c,I,oe]);return e.jsxs(e.Fragment,{children:[e.jsx(V,{}),"modal"===i?.editMode?.editMode?e.jsx(ee,{children:i?.editMode?.specs?.formComponent?e.jsx(i.editMode.specs.formComponent,{recordIdToEdit:P?P[W]:void 0,formCloseCallBk:()=>{te(!1),i.apiActions.reloadData(i?.gridLoadParametersValues)}}):e.jsx(Mo,{recordIdToEdit:P?P[W]:void 0,formCloseCallBk:()=>{te(!1),i.apiActions.reloadData(i?.gridLoadParametersValues)},elements:i.formElements,apiActions:i.apiActions,editAuthorityKey:i?.editAction?.authority,formSavedSuccessfullyCallBk:i?.editAction?.postActionCallBack,preSaveValidation:i?.editAction?.preActionValidation,actions:i?.rowActions})}):e.jsx(e.Fragment,{}),void 0!==i?.hideInfoBar||i?.hideInfoBar?e.jsx(e.Fragment,{}):e.jsxs(l.Box,{sx:{display:"flex"},children:[void 0!==i?.hideBackButton||i?.hideBackButton?e.jsx(e.Fragment,{}):e.jsx(l.IconButton,{onClick:()=>{h("-1",{replace:!0})},children:e.jsx(T.FontAwesomeIcon,{icon:"arrow-left"})}),e.jsxs(l.Box,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:[i?.girdIcon?e.jsx(T.FontAwesomeIcon,{icon:i.girdIcon,style:{marginRight:5,marginLeft:5}}):e.jsx(e.Fragment,{}),e.jsx(l.Typography,{variant:"h5",children:i?.gridTitle?Rt(o(i?.gridTitle)):""})]})]}),i?.gridLoadParameters&&i?.gridLoadParametersValues&&i?.setGridLoadParametersValues?e.jsxs(l.Accordion,{defaultExpanded:!0,children:[e.jsx(l.AccordionSummary,{expandIcon:e.jsx(F.GridExpandMoreIcon,{}),children:e.jsxs(l.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(T.FontAwesomeIcon,{style:{marginLeft:5,marginRight:5},icon:"search"}),e.jsx(l.Typography,{component:"span",children:"Filters"})]})}),e.jsx(l.AccordionDetails,{children:e.jsx(l.Box,{children:e.jsx(Mo,{saveButtonSpecs:{label:o("SEARCH_BTN_LABEL"),icon:"search",actionButtonVariant:"outlined",actionButtonColor:"success"},cancelButtonSpecs:{label:o("RESET_BTN_LABEL"),icon:"eraser",actionButtonVariant:"outlined",actionButtonColor:"error"},apiActions:{deleteRecordById:async()=>!0,saveRecord:async e=>{null!=e?i.setGridLoadParametersValues(e):i.setGridLoadParametersValues({}),i.apiActions.reloadData(e)},reloadData:async()=>{},loadRecordById:async()=>{}},elements:i.gridLoadParameters})})})]}):e.jsx(e.Fragment,{}),e.jsx(F.DataGridPremium,{...i?.muiProps,slots:{toolbar:mt},slotProps:{toolbar:{templateProps:{...i,rowSelectionModel:v,data:i?.data},handleCreateNewRecord:()=>{if("form"===i?.editMode?.editMode)h(i.editMode.specs.formRoute);else if("modal"===i?.editMode?.editMode)te(!0);else if("row"===i?.editMode?.editMode){Po-=1;const e={};e[W]=Po,e.isNew=!0;for(const t of Y)"actions"!=t?.type&&t?.field!=W&&t?.field&&(e[t.field]=null);G((t=>[e,...t])),x((e=>({...e,[Po]:{mode:F.GridRowModes.Edit}})))}},clearGridState:()=>{i?.gridStateKey&&localStorage.removeItem(i.gridStateKey),E({}),u([]),m({}),N([]),D({left:[..."ltr"===p?go:[]],right:[..."rtl"===p?go:[]]})}}},getRowId:e=>e[W],showToolbar:!0,rows:i?.data,columns:re,checkboxSelection:!0,editMode:"row",rowModesModel:"row"==i.editMode.editMode?b:void 0,onRowModesModelChange:"row"==i.editMode.editMode?e=>{x(e)}:void 0,rowGroupingColumnMode:"multiple",processRowUpdate:async t=>{if("row"===i.editMode.editMode){let o=null;const r=(e=>{try{j.parse(e)}catch(e){console.log("validateRecord err",e);let t=null;return t=e instanceof k.z.ZodError?e.errors.map((e=>"Error in field ("+e.path+") : "+e.message)).join(","):"invalid record data",t}})(t);if(r){const t=r.split(",");throw A.toast.error(e.jsx("div",{style:{},children:t.map((t=>e.jsxs(e.Fragment,{children:[e.jsx("div",{children:t}),e.jsx(l.Divider,{})]})))})),new Error(r)}if(i?.editAction?.preActionValidation&&!i.editAction.preActionValidation(t))throw new Error("error on the configured presave validation");const a={...t};if(t[W]&&ft(t[W])&&Number(t[W])<0&&(a[W]=null),o=await i.apiActions.saveRecord(a),null==o)throw new Error("Failed to process your request, contact your administrator");return i?.editAction?.postActionCallBack&&await i.editAction.postActionCallBack(t),!0===t?.isNew&&G((e=>{const i=e.filter((e=>e[W]!==t[W]));return[o,...i]})),!0===i?.editMode?.reloadAfterSave&&i?.apiActions?.reloadData&&i?.apiActions?.reloadData(i?.gridLoadParametersValues),o}},rowSelectionModel:v,onRowSelectionModelChange:e=>{B(e)},columnVisibilityModel:_,onColumnVisibilityModelChange:e=>{E(e),i?.gridStateKey&&bo(i.gridStateKey,{columnVisibilityModel:e})},onColumnOrderChange:e=>{const{column:t,targetIndex:o}=e;u((e=>{const r=e.length?[...e]:oe.map((e=>e.field)),a=r.indexOf(t.field);return-1===a||(r.splice(a,1),r.splice(o,0,t.field),i?.gridStateKey&&bo(i.gridStateKey,{columnOrder:r})),r}))},onColumnWidthChange:e=>{const t={...I,[e.colDef.field]:e.width};m(t),i?.gridStateKey&&bo(i.gridStateKey,{columnWidths:t})},rowGroupingModel:f,onRowGroupingModelChange:e=>{(e=>{N(e),i?.gridStateKey&&bo(i.gridStateKey,{columnGroupingModel:e})})(e)},pinnedColumns:y,onPinnedColumnsChange:e=>{let t=e?.left||[];t=t.filter((e=>!go.includes(e)));let o=e?.right||[];o=o.filter((e=>!go.includes(e)));const r={left:[..."ltr"===p?go:[],...t],right:[..."rtl"===p?go:[],...o]};D(r),i?.gridStateKey&&bo(i.gridStateKey,{pinnedColumns:r})}})]})},vo=e=>{const i=t.useSelector((e=>e.commonStores)),o=t.useDispatch(),r=Ge(),{handleGetRequest:a,handlePostRequest:n,handleDeleteRequest:l}=Se();return{reloadData:async t=>{if(e?.commonStoreKey){const t=Object.keys(i);for(const n of t)if(n===e.commonStoreKey&&(void 0===i[n]?.authority||null===i[n]?.authority||r.isUserAuthorized(i[n]?.authority))&&""!=i[n]?.url){await a({endPointURI:i[n].url,showMask:!1,successCallBkFn:t=>{o(Le({storeKey:n,data:t.data})),e.setData(t.data)},failureCallBkFn:()=>{o(Le({storeKey:n,data:[]})),e.setData([])}});break}}else e?.findAll&&await a({endPointURI:e.findAll,showMask:!0,parameters:t||{},successCallBkFn:t=>{e.setData(t.data)}})},loadRecordById:async t=>{let i=null;if(e?.findById){const o={};o[e?.findByIdParamName||"id"]=t,await a({endPointURI:e.findById,showMask:!0,parameters:o,successCallBkFn:e=>{i=e.data}})}return i},saveRecord:async t=>{let i=null;return e?.save&&await n({endPointURI:e.save,data:t,showMask:!0,successCallBkFn:e=>{i=e.data}}),i},deleteRecordById:async t=>{let i=!0;if(e?.deleteById){const o={};o[e?.deleteByIdParamName||"id"]=t,await l({endPointURI:e.deleteById,showMask:!0,parameters:o,successCallBkFn:()=>{i=!0},failureCallBkFn:()=>{i=!1}})}return i}}},Bo=[{path:"/",component:()=>e.jsxs(l.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,fontSize:24,fontWeight:"bold"},children:[e.jsx("img",{src:"logo.png",style:{margin:5}}),e.jsx("div",{children:"Welcome to Ezzsteel Flat Product Management System"}),e.jsxs("div",{style:{fontSize:16},children:["Use side menu [",e.jsx(T.FontAwesomeIcon,{icon:"bars",style:{marginLeft:10,marginRight:10}}),"] to navigate to your authorized system modules"]})]})},...[...[{path:"admin/attachments",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/attachment/all",deleteById:"api/v1/admin/attachment",save:"api/v1/admin/attachment",findById:"api/v1/admin/attachment",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_ATTACHMENT_NUMBER",fieldName:"attachmentNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_ATTACHMENT_SIZE",fieldName:"attachmentSize",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_ATTACHMENT_TYPE",fieldName:"attachmentType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_CATEGORY",fieldName:"category",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_DOC_TYPE",fieldName:"docType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_FILE_NAME",fieldName:"fileName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_REF_KEY",fieldName:"refKey",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_REMARK",fieldName:"remark",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ATTACHMENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ATTACHMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"ATTACHMENT_DELETE"}})},authority:"ATTACHMENT_VIEW"},{path:"admin/authorities",component:()=>{const[t,i]=s.useState([]),o=vo({commonStoreKey:"SystemAuthorities",deleteById:"api/v1/admin/authority",save:"api/v1/admin/authority",findById:"api/v1/admin/authority",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_AUTHORITY_CODE",fieldName:"authorityCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_AUTHORITY_DESCRIPTION",fieldName:"authorityDescription",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_AUTHORITY_NAME",fieldName:"authorityName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_ORGANIZATION_APPLICATION_ID",fieldName:"organizationApplicationId",required:!1,fieldType:"text",gridProps:{hidden:!0}}}],keyColumnName:"id",gridTitle:"AUTHORITY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"AUTHORITY_EDIT"},deleteAction:{isEnabled:!0,authority:"AUTHORITY_DELETE"}})},authority:"AUTHORITY_VIEW"},{path:"admin/blueprints",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/blueprint/all",deleteById:"api/v1/admin/blueprint",save:"api/v1/admin/blueprint",findById:"api/v1/admin/blueprint",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_BLUE_PRINT_CODE",fieldName:"bluePrintCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_QUERY_ID",fieldName:"queryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"BLUE_PRINT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_DELETE"}})},authority:"BLUE_PRINT_VIEW"},{path:"admin/blueprintpages",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/blueprintpage/all",deleteById:"api/v1/admin/blueprintpage",save:"api/v1/admin/blueprintpage",findById:"api/v1/admin/blueprintpage",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_BLUE_PRINT_ID",fieldName:"bluePrintId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_PAGE_NAME",fieldName:"pageName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_PAGE_ORDER",fieldName:"pageOrder",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_QUERY_ID",fieldName:"queryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"BLUE_PRINT_PAGE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_PAGE_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_PAGE_DELETE"}})},authority:"BLUE_PRINT_PAGE_VIEW"},{path:"admin/blueprintpoints",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/blueprintpoint/all",deleteById:"api/v1/admin/blueprintpoint",save:"api/v1/admin/blueprintpoint",findById:"api/v1/admin/blueprintpoint",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_BLUE_PRINT_PAGE_ID",fieldName:"bluePrintPageId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_FONT_SIZE",fieldName:"fontSize",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_POINT_CODE",fieldName:"pointCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_X",fieldName:"x",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_Y",fieldName:"y",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"BLUE_PRINT_POINT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_POINT_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_POINT_DELETE"}})},authority:"BLUE_PRINT_POINT_VIEW"},{path:"admin/dashboards",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/dashboard/all",deleteById:"api/v1/admin/dashboard",save:"api/v1/admin/dashboard",findById:"api/v1/admin/dashboard",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_CODE",fieldName:"dashboardCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_NAME",fieldName:"dashboardName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_TITLE",fieldName:"dashboardTitle",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_LOAD_WIDGETS_INDIVIDUALLY",fieldName:"loadWidgetsIndividually",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_NUMBER_OF_COLUMNS",fieldName:"numberOfColumns",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"DASHBOARD_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DASHBOARD_EDIT"},deleteAction:{isEnabled:!0,authority:"DASHBOARD_DELETE"}})},authority:"DASHBOARD_VIEW"},{path:"admin/dashboardwidgets",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/dashboardwidget/all",deleteById:"api/v1/admin/dashboardwidget",save:"api/v1/admin/dashboardwidget",findById:"api/v1/admin/dashboardwidget",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_DASHBOARD_ID",fieldName:"dashboardId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ID",fieldName:"widgetId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ORDER",fieldName:"widgetOrder",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"DASHBOARD_WIDGET_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_EDIT"},deleteAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_DELETE"}})},authority:"DASHBOARD_WIDGET_VIEW"},{path:"admin/dataqueries",component:()=>{const[t,i]=s.useState([]),o=vo({commonStoreKey:"SystemDataQueries",deleteById:"api/v1/admin/dataquery",save:"api/v1/admin/dataquery",findById:"api/v1/admin/dataquery",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_DATASOURCE_CON_ID",fieldName:"datasourceConId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_NAME",fieldName:"queryName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_STR",fieldName:"queryStr",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_USE_SYS_CON",fieldName:"useSysCon",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"DATA_QUERY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_EDIT"},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_DELETE"}})},authority:"DATA_QUERY_VIEW"},{path:"admin/dataqueryparameters",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/dataqueryparameter/all",deleteById:"api/v1/admin/dataqueryparameter",save:"api/v1/admin/dataqueryparameter",findById:"api/v1/admin/dataqueryparameter",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DATA_QUERY_ID",fieldName:"dataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DEFAULT_VALUE",fieldName:"defaultValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_HIDDEN",fieldName:"hidden",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_MANDATORY",fieldName:"mandatory",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"DATA_QUERY_PARAMETER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_DELETE"}})},authority:"DATA_QUERY_PARAMETER_VIEW"},{path:"admin/datasourceconnections",component:()=>{const[t,i]=s.useState([]),o=vo({commonStoreKey:"SystemDataSources",deleteById:"api/v1/admin/datasourceconnection",save:"api/v1/admin/datasourceconnection",findById:"api/v1/admin/datasourceconnection",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_CONNECTION_NAME",fieldName:"connectionName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_PASSWORD",fieldName:"datasourcePassword",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_TYPE",fieldName:"datasourceType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_URL",fieldName:"datasourceUrl",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_USERNAME",fieldName:"datasourceUsername",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"DATASOURCE_CONNECTION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_EDIT"},deleteAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_DELETE"}})},authority:"DATASOURCE_CONNECTION_VIEW"},{path:"admin/employees",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/employee/all",deleteById:"api/v1/admin/employee",save:"api/v1/admin/employee",findById:"api/v1/admin/employee",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_EMAIL",fieldName:"email",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_EMPLOYEE_NAME",fieldName:"employeeName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_EMPLOYEE_NUMBER",fieldName:"employeeNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_MOBILE_NUMBER",fieldName:"mobileNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_ORGANIZATION_RANK_ID",fieldName:"organizationRankId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_ORGANIZATION_UNIT_ID",fieldName:"organizationUnitId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_USER_ACCOUNT_ID",fieldName:"userAccountId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"EMPLOYEE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"EMPLOYEE_EDIT"},deleteAction:{isEnabled:!0,authority:"EMPLOYEE_DELETE"}})},authority:"EMPLOYEE_VIEW"},{path:"admin/entityparameters",component:()=>{const[t,i]=s.useState([]),o=vo({commonStoreKey:"SystemEntityParameters",deleteById:"api/v1/admin/entityparameter",save:"api/v1/admin/entityparameter",findById:"api/v1/admin/entityparameter",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_CODE",fieldName:"parameterCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID",fieldName:"parameterDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATASET",fieldName:"parameterDataset",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD",fieldName:"parameterDisplayField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_LABEL",fieldName:"parameterLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_TYPE",fieldName:"parameterType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FIELD",fieldName:"parameterValueField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT",fieldName:"parameterValueFormat",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ENTITY_PARAMETER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_DELETE"}})},authority:"ENTITY_PARAMETER_VIEW"},{path:"admin/exceluploaderdetails",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/exceluploaderdetail/all",deleteById:"api/v1/admin/exceluploaderdetail",save:"api/v1/admin/exceluploaderdetail",findById:"api/v1/admin/exceluploaderdetail",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_COLUMN_INDEX",fieldName:"columnIndex",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID",fieldName:"excelUploaderHeaderId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID",fieldName:"lookupQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_TABLE_FIELD",fieldName:"tableField",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"EXCEL_UPLOADER_DETAIL_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_DETAIL_EDIT"},deleteAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_DETAIL_DELETE"}})},authority:"EXCEL_UPLOADER_DETAIL_VIEW"},{path:"admin/exceluploaderheaders",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/exceluploaderheader/all",deleteById:"api/v1/admin/exceluploaderheader",save:"api/v1/admin/exceluploaderheader",findById:"api/v1/admin/exceluploaderheader",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID",fieldName:"uploaderConnectionId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME",fieldName:"uploaderDatabaseName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_NAME",fieldName:"uploaderName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME",fieldName:"uploaderTableName",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"EXCEL_UPLOADER_HEADER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_HEADER_EDIT"},deleteAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_HEADER_DELETE"}})},authority:"EXCEL_UPLOADER_HEADER_VIEW"},{path:"admin/lookups",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/lookup/all",deleteById:"api/v1/admin/lookup",save:"api/v1/admin/lookup",findById:"api/v1/admin/lookup",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_AR_DISPLAY",fieldName:"lookupArDisplay",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_EN_DISPLAY",fieldName:"lookupEnDisplay",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_TYPE",fieldName:"lookupType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_VALUE",fieldName:"lookupValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_ORG_CODE",fieldName:"orgCode",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"LOOKUP_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"LOOKUP_EDIT"},deleteAction:{isEnabled:!0,authority:"LOOKUP_DELETE"}})},authority:"LOOKUP_VIEW"},{path:"admin/mailattachments",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/mailattachment/all",deleteById:"api/v1/admin/mailattachment",save:"api/v1/admin/mailattachment",findById:"api/v1/admin/mailattachment",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_REPORT_ID",fieldName:"reportId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"MAIL_ATTACHMENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_DELETE"}})},authority:"MAIL_ATTACHMENT_VIEW"},{path:"admin/mailbodies",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/mailbody/all",deleteById:"api/v1/admin/mailbody",save:"api/v1/admin/mailbody",findById:"api/v1/admin/mailbody",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT",fieldName:"bodyContent",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID",fieldName:"bodyContentDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_ORDER",fieldName:"bodyOrder",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_IS_MAIN",fieldName:"isMain",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_PRINT_FOR_EACH_RECORD",fieldName:"printForEachRecord",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"MAIL_BODY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_BODY_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_BODY_DELETE"}})},authority:"MAIL_BODY_VIEW"},{path:"admin/mailnotificationqueues",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/mailnotificationqueue/all",deleteById:"api/v1/admin/mailnotificationqueue",save:"api/v1/admin/mailnotificationqueue",findById:"api/v1/admin/mailnotificationqueue",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID",fieldName:"customMailAttachedReportId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY",fieldName:"customMailBody",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT",fieldName:"customMailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS",fieldName:"customRecipients",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS",fieldName:"mailParameters",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE",fieldName:"notificationMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME",fieldName:"notificationTime",required:!1,fieldType:"datetime"}}],keyColumnName:"id",gridTitle:"MAIL_NOTIFICATION_QUEUE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_DELETE"}})},authority:"MAIL_NOTIFICATION_QUEUE_VIEW"},{path:"admin/mailrecipients",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/mailrecipient/all",deleteById:"api/v1/admin/mailrecipient",save:"api/v1/admin/mailrecipient",findById:"api/v1/admin/mailrecipient",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_MAIL",fieldName:"recipientMail",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_TYPE",fieldName:"recipientType",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"MAIL_RECIPIENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_DELETE"}})},authority:"MAIL_RECIPIENT_VIEW"},{path:"admin/mailtemplates",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/mailtemplate/all",deleteById:"api/v1/admin/mailtemplate",save:"api/v1/admin/mailtemplate",findById:"api/v1/admin/mailtemplate",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID",fieldName:"mailCcDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_SUBJECT",fieldName:"mailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_CODE",fieldName:"mailTemplateCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_NAME",fieldName:"mailTemplateName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID",fieldName:"mailToDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_TYPE",fieldName:"periodType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_VALUE",fieldName:"periodValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIODICAL",fieldName:"periodical",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_START_SENDING_AT",fieldName:"startSendingAt",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID",fieldName:"subjectDataQueryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"MAIL_TEMPLATE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_DELETE"}})},authority:"MAIL_TEMPLATE_VIEW"},{path:"admin/newtables",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/newtable/all",deleteById:"api/v1/admin/newtable",save:"api/v1/admin/newtable",findById:"api/v1/admin/newtable",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"NEW_TABLE_TEST_DATE",fieldName:"testDate",required:!1,fieldType:"date"}},{type:"field",mode:"props",props:{fieldLabel:"NEW_TABLE_TEST_LONG",fieldName:"testLong",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"NEW_TABLE_TEST_DECIMAL",fieldName:"testDecimal",required:!1,fieldType:"number"}}],keyColumnName:"id",gridTitle:"NEW_TABLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"NEW_TABLE_EDIT"},deleteAction:{isEnabled:!0,authority:"NEW_TABLE_DELETE"}})},authority:"NEW_TABLE_VIEW"},{path:"admin/notifications",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/notification/all",deleteById:"api/v1/admin/notification",save:"api/v1/admin/notification",findById:"api/v1/admin/notification",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_ACTION_KEY",fieldName:"notificationActionKey",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD",fieldName:"notificationActionPayload",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_CODE",fieldName:"notificationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_ICON",fieldName:"notificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_QUERY_ID",fieldName:"notificationQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_TEXT",fieldName:"notificationText",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID",fieldName:"usersToNotifyQueryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"NOTIFICATION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"NOTIFICATION_EDIT"},deleteAction:{isEnabled:!0,authority:"NOTIFICATION_DELETE"}})},authority:"NOTIFICATION_VIEW"},{path:"admin/notificationqueues",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/notificationqueue/all",deleteById:"api/v1/admin/notificationqueue",save:"api/v1/admin/notificationqueue",findById:"api/v1/admin/notificationqueue",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY",fieldName:"customNotificationActionKey",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD",fieldName:"customNotificationActionPayload",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON",fieldName:"customNotificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT",fieldName:"customNotificationText",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_NOTIFICATION_CODE",fieldName:"notificationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_NOTIFICATION_PARAMS",fieldName:"notificationParams",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_NOTIFIED_TIME",fieldName:"notifiedTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"NOTIFICATION_QUEUE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"NOTIFICATION_QUEUE_EDIT"},deleteAction:{isEnabled:!0,authority:"NOTIFICATION_QUEUE_DELETE"}})},authority:"NOTIFICATION_QUEUE_VIEW"},{path:"admin/organizations",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/organization/all",deleteById:"api/v1/admin/organization",save:"api/v1/admin/organization",findById:"api/v1/admin/organization",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_CODE",fieldName:"organizationCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_NAME",fieldName:"organizationName",required:!1,fieldType:"text"}}],keyColumnName:"organizationCode",gridTitle:"ORGANIZATION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_DELETE"}})},authority:"ORGANIZATION_VIEW"},{path:"admin/organizationapplications",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/organizationapplication/all",deleteById:"api/v1/admin/organizationapplication",save:"api/v1/admin/organizationapplication",findById:"api/v1/admin/organizationapplication",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_APPLICATION_CODE",fieldName:"applicationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_APPLICATION_DESCRIPTION",fieldName:"applicationDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_APPLICATION_NAME",fieldName:"applicationName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_APPLICATION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_DELETE"}})},authority:"ORGANIZATION_APPLICATION_VIEW"},{path:"admin/organizationranks",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/organizationrank/all",deleteById:"api/v1/admin/organizationrank",save:"api/v1/admin/organizationrank",findById:"api/v1/admin/organizationrank",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_CODE",fieldName:"rankCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_NAME",fieldName:"rankName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_ORDER",fieldName:"rankOrder",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_RANK_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_DELETE"}})},authority:"ORGANIZATION_RANK_VIEW"},{path:"admin/organizationunits",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/organizationunit/all",deleteById:"api/v1/admin/organizationunit",save:"api/v1/admin/organizationunit",findById:"api/v1/admin/organizationunit",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME",fieldName:"organizationUnitArName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME",fieldName:"organizationUnitEnName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID",fieldName:"organizationUnitParentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_UNIT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_DELETE"}})},authority:"ORGANIZATION_UNIT_VIEW"},{path:"admin/organizationusers",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/organizationuser/all",deleteById:"api/v1/admin/organizationuser",save:"api/v1/admin/organizationuser",findById:"api/v1/admin/organizationuser",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_IS_DEFAULT",fieldName:"isDefault",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_USER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_USER_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_USER_DELETE"}})},authority:"ORGANIZATION_USER_VIEW"},{path:"admin/organizationuserroles",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/organizationuserrole/all",deleteById:"api/v1/admin/organizationuserrole",save:"api/v1/admin/organizationuserrole",findById:"api/v1/admin/organizationuserrole",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_END_DATE",fieldName:"endDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_ROLE_ID",fieldName:"roleId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_START_DATE",fieldName:"startDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_USER_ROLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_USER_ROLE_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_USER_ROLE_DELETE"}})},authority:"ORGANIZATION_USER_ROLE_VIEW"},{path:"admin/reports",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/report/all",deleteById:"api/v1/admin/report",save:"api/v1/admin/report",findById:"api/v1/admin/report",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"REPORT_DATASOURCE_CON_ID",fieldName:"datasourceConId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_BLUE_PRINT_ID",fieldName:"reportBluePrintId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CATEGORY",fieldName:"reportCategory",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CODE",fieldName:"reportCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXCEL_DATA_QUERY_ID",fieldName:"reportExcelDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXPORT_NAME",fieldName:"reportExportName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_NAME",fieldName:"reportJasperName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_PATH",fieldName:"reportJasperPath",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_MENU_CODE",fieldName:"reportMenuCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_NAME",fieldName:"reportName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_TYPE",fieldName:"reportType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_USE_SYS_DATASOURCE",fieldName:"useSysDatasource",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"REPORT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"REPORT_EDIT"},deleteAction:{isEnabled:!0,authority:"REPORT_DELETE"}})},authority:"REPORT_VIEW"},{path:"admin/reportparameters",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/reportparameter/all",deleteById:"api/v1/admin/reportparameter",save:"api/v1/admin/reportparameter",findById:"api/v1/admin/reportparameter",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_DEFAULT_VALUE",fieldName:"defaultValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_HIDDEN",fieldName:"hidden",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_MANDATORY",fieldName:"mandatory",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_REPORT_ID",fieldName:"reportId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"REPORT_PARAMETER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"REPORT_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"REPORT_PARAMETER_DELETE"}})},authority:"REPORT_PARAMETER_VIEW"},{path:"admin/roles",component:()=>{const[t,i]=s.useState([]),o=vo({commonStoreKey:"SystemRoles",deleteById:"api/v1/admin/role",save:"api/v1/admin/role",findById:"api/v1/admin/role",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ROLE_ROLE_NAME",fieldName:"roleName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_DESCRIPTION",fieldName:"description",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_ORGANIZATION_APPLICATION_ID",fieldName:"organizationApplicationId",required:!1,fieldType:"text",gridProps:{hidden:!0}}}],keyColumnName:"id",gridTitle:"ROLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ROLE_EDIT"},deleteAction:{isEnabled:!0,authority:"ROLE_DELETE"}})},authority:"ROLE_VIEW"},{path:"admin/roleauthorities",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/roleauthority/all",deleteById:"api/v1/admin/roleauthority",save:"api/v1/admin/roleauthority",findById:"api/v1/admin/roleauthority",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ROLE_AUTHORITY_AUTHORITY_ID",fieldName:"authorityId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_AUTHORITY_ROLE_ID",fieldName:"roleId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ROLE_AUTHORITY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ROLE_AUTHORITY_EDIT"},deleteAction:{isEnabled:!0,authority:"ROLE_AUTHORITY_DELETE"}})},authority:"ROLE_AUTHORITY_VIEW"},{path:"admin/useraccounts",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/useraccount/all",deleteById:"api/v1/admin/useraccount",save:"api/v1/admin/useraccount",findById:"api/v1/admin/useraccount",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"USER_ACCOUNT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"USER_ACCOUNT_PASSWORD",fieldName:"password",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_ACCOUNT_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"USER_ACCOUNT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"USER_ACCOUNT_EDIT"},deleteAction:{isEnabled:!0,authority:"USER_ACCOUNT_DELETE"}})},authority:"USER_ACCOUNT_VIEW"},{path:"admin/userrequests",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/userrequest/all",deleteById:"api/v1/admin/userrequest",save:"api/v1/admin/userrequest",findById:"api/v1/admin/userrequest",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_MAILS_TO_NOTIFY",fieldName:"mailsToNotify",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFICATION_MESSAGE",fieldName:"notificationMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFICATION_TIME",fieldName:"notificationTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFICATION_TYPE",fieldName:"notificationType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFY_USER",fieldName:"notifyUser",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_REPORT_CODE",fieldName:"reportCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_REPORT_PARAMETERS",fieldName:"reportParameters",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_REQUEST_TYPE",fieldName:"requestType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_STATUS",fieldName:"status",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_STATUS_MESSAGE",fieldName:"statusMessage",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"USER_REQUEST_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"USER_REQUEST_EDIT"},deleteAction:{isEnabled:!0,authority:"USER_REQUEST_DELETE"}})},authority:"USER_REQUEST_VIEW"},{path:"admin/widgets",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/widget/all",deleteById:"api/v1/admin/widget",save:"api/v1/admin/widget",findById:"api/v1/admin/widget",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WIDGET_DATA_QUERY_ID",fieldName:"dataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HEIGHT",fieldName:"height",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HORIZONTAL_AXIS_FIELD",fieldName:"horizontalAxisField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HORIZONTAL_AXIS_LABEL",fieldName:"horizontalAxisLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ICON",fieldName:"icon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_SERIES_KEYS",fieldName:"seriesKeys",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_TITLE",fieldName:"title",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_VERTICAL_AXIS_FIELD",fieldName:"verticalAxisField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_VERTICAL_AXIS_LABEL",fieldName:"verticalAxisLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_DESCRIPTION",fieldName:"widgetDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_NAME",fieldName:"widgetName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_TYPE",fieldName:"widgetType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDTH",fieldName:"width",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WIDGET_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WIDGET_EDIT"},deleteAction:{isEnabled:!0,authority:"WIDGET_DELETE"}})},authority:"WIDGET_VIEW"},{path:"admin/workflowdocuments",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/workflowdocument/all",deleteById:"api/v1/admin/workflowdocument",save:"api/v1/admin/workflowdocument",findById:"api/v1/admin/workflowdocument",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON",fieldName:"appNotificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE",fieldName:"appNotificationStyle",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_VIEW_ROUTE",fieldName:"appViewRoute",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CODE",fieldName:"documentCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CON_ID",fieldName:"documentConId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME",fieldName:"documentDatabaseName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE",fieldName:"documentDatabaseTable",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD",fieldName:"documentIdField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_NAME",fieldName:"documentName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD",fieldName:"documentNumberField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_REPORT_ID",fieldName:"documentReportId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD",fieldName:"documentStatusField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED",fieldName:"mailApprovalAllowed",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ORG_CODE",fieldName:"orgCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_USE_SYSTEM_CON",fieldName:"useSystemCon",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_DELETE"}})},authority:"WORKFLOW_DOCUMENT_VIEW"},{path:"admin/workflowdocumentactions",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/workflowdocumentaction/all",deleteById:"api/v1/admin/workflowdocumentaction",save:"api/v1/admin/workflowdocumentaction",findById:"api/v1/admin/workflowdocumentaction",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE",fieldName:"documentActionCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_NAME",fieldName:"documentActionName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID",fieldName:"nextDocumentStatusId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_POST_ACTION_ENDPOINT",fieldName:"postActionEndpoint",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_PRE_ACTION_ENDPOINT",fieldName:"preActionEndpoint",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT",fieldName:"requireComment",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_ACTION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_DELETE"}})},authority:"WORKFLOW_DOCUMENT_ACTION_VIEW"},{path:"admin/workflowdocumentactionhistories",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/workflowdocumentactionhistory/all",deleteById:"api/v1/admin/workflowdocumentactionhistory",save:"api/v1/admin/workflowdocumentactionhistory",findById:"api/v1/admin/workflowdocumentactionhistory",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_BY",fieldName:"actionBy",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_COMMENT",fieldName:"actionComment",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_METHOD",fieldName:"actionMethod",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_TIME",fieldName:"actionTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_ACTION_ID",fieldName:"documentActionId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_REF_ID",fieldName:"documentRefId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_ACTION_HISTORY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_HISTORY_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_HISTORY_DELETE"}})},authority:"WORKFLOW_DOCUMENT_ACTION_HISTORY_VIEW"},{path:"admin/workflowdocumentactionmails",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/workflowdocumentactionmail/all",deleteById:"api/v1/admin/workflowdocumentactionmail",save:"api/v1/admin/workflowdocumentactionmail",findById:"api/v1/admin/workflowdocumentactionmail",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID",fieldName:"documentActionId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_DELETE"}})},authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_VIEW"},{path:"admin/workflowdocumentmaillogs",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/workflowdocumentmaillog/all",deleteById:"api/v1/admin/workflowdocumentmaillog",save:"api/v1/admin/workflowdocumentmaillog",findById:"api/v1/admin/workflowdocumentmaillog",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID",fieldName:"graphApiMsgId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED",fieldName:"isProcessed",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE",fieldName:"mailActionCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT",fieldName:"mailBodyContent",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM",fieldName:"mailFrom",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT",fieldName:"mailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE",fieldName:"processMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME",fieldName:"processTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID",fieldName:"refDocId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_MAIL_LOG_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_MAIL_LOG_DELETE"}})},authority:"WORKFLOW_DOCUMENT_MAIL_LOG_VIEW"},{path:"admin/workflowdocumentstatuses",component:()=>{const[t,i]=s.useState([]),o=vo({findAll:"api/v1/admin/workflowdocumentstatus/all",deleteById:"api/v1/admin/workflowdocumentstatus",save:"api/v1/admin/workflowdocumentstatus",findById:"api/v1/admin/workflowdocumentstatus",setData:i});return e.jsx(xo,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE",fieldName:"documentStatusCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_NAME",fieldName:"documentStatusName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER",fieldName:"documentStatusOrder",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE",fieldName:"isZeroState",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_NEXT_ACTION_TAKERS_QUERY_ID",fieldName:"nextActionTakersQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_NEXT_ACTIONS_QUERY_ID",fieldName:"nextActionsQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_STATUS_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_DELETE"}})},authority:"WORKFLOW_DOCUMENT_STATUS_VIEW"}]]],Fo=()=>{const i=t.useSelector((e=>e.AppLayout)),o=t.useSelector((e=>e.AppInfo.value)),r=t.useSelector((e=>e.AppInfo.value.businessRoutes));return e.jsx(d.CacheProvider,{value:"ltr"===i.appDirection?tt:et,children:e.jsx(l.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",flex:1,overflow:"hidden",padding:3},children:e.jsxs(g.Routes,{children:[o.enableAdministrationModule?Bo.map(((t,i)=>e.jsx(g.Route,{path:t.path,Component:t.component},"adm"+i))):null,r.map(((t,i)=>e.jsx(g.Route,{path:t.path,Component:t.component},"bs"+i)))]})})})},wo=p.styled("div")((({theme:e})=>({width:30,height:6,margin:10,backgroundColor:K.grey[300],borderRadius:3,top:8,...e.applyStyles("dark",{backgroundColor:K.grey[900]})})));function Wo(i){const{window:o}=i,r=t.useSelector((e=>e.AppLayout)),a=t.useSelector((e=>e.AppInfo.value)),n=t.useDispatch(),d=e=>{n(Ee.setSideBarState(e))},s=void 0!==o?()=>o().document.body:void 0;return e.jsx(V,{container:s,anchor:"bottom",open:r.sideBarOpened,onClose:()=>{d(!1)},onOpen:()=>{d(!0)},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},children:e.jsxs(l.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",overflow:"hidden"},children:[e.jsx(wo,{}),e.jsx(l.Box,{sx:{flexGrow:1,display:"flex",justifyContent:"center",width:"99%",overflowY:"auto"},children:e.jsx(Xe,{})}),e.jsxs(l.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1,width:"100%"},children:[e.jsx(l.Typography,{sx:{fontSize:12},color:"textDisabled",children:a.appName}),e.jsxs(l.Typography,{sx:{fontSize:12},color:"textDisabled",children:["V.",a.appVersion]})]})]})})}const Go=()=>{const i=t.useSelector((e=>e.loadingMask.value));return e.jsx(l.Backdrop,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:i.isOpened,children:e.jsx(l.CircularProgress,{color:"inherit"})})},ko=()=>{const i=t.useSelector((e=>e.AppInfo.value)),[o,r]=s.useState(""),[a,n]=s.useState(""),[p,_]=s.useState(!1),E=t.useSelector((e=>e.UserSession.value)),c=t.useDispatch(),T=async()=>{if(null==o||""==o)return void A.toast.error("username is required to proceed");if(null==a||""==a)return void A.toast.error("password is required to proceed");_(!0);let e=null;try{if(e=await u.post(`${i.apiBaseUrl}/api/auth/login`,{username:o,password:a},{withCredentials:!0}),null!=e.data&&""!==e.data){_(!1);const t={isAuthenticated:!0,authorities:e.data.authorities,userProfile:e.data};c(Ae.setAuthenticated(t))}}catch(e){_(!1),A.toast.error(e?.response?.data||"failed to authenticate, contact your administrator")}},I=t.useSelector((e=>e.UserSession.value)),O=l.createTheme({components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${i.appTheme.dark.primaryColor} #121212;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"dark",primary:{main:i.appTheme.dark.primaryColor},secondary:{main:i.appTheme.dark.secondaryColor}}});return s.useEffect((()=>{(async()=>{if(i?.apiBaseUrl&&null==I.isAuthenticated)try{let e=await u.get(`${i.apiBaseUrl}/api/auth/userInfo`,{withCredentials:!0});if(null!=e&&null!=e.data){const t={isAuthenticated:!0,authorities:e.data.authorities,userProfile:e.data};c(Ae.setAuthenticated(t))}else c(Ae.setUnAuthenticated())}catch(e){c(Ae.setUnAuthenticated())}})()}),[i]),e.jsx(d.ThemeProvider,{theme:O,children:e.jsx(l.Paper,{sx:{display:"flex",height:"100vh",width:"100%",borderRadius:0,alignItems:"center",justifyContent:"center"},children:0==E.isAuthenticated?e.jsxs(l.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[e.jsx("img",{src:i?.appLogo,width:150,height:150}),e.jsx(l.Typography,{sx:{m:1},variant:"h4",color:"textSecondary",children:i?.appName}),e.jsxs(l.Typography,{sx:{paddingRight:1,width:"100%",textAlign:"right",fontSize:10},variant:"caption",color:"textSecondary",children:["V.",i.appVersion]}),e.jsx(l.TextField,{label:"username",sx:{width:300,m:1},value:o,onChange:e=>{r(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&T()}}),e.jsx(l.TextField,{label:"password",sx:{width:300,m:1},value:a,type:"password",onChange:e=>{n(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&T()}}),e.jsx(l.Button,{loading:p,onClick:T,variant:"contained",color:"primary",sx:{m:1},children:"login"})]}):e.jsxs(e.Fragment,{children:[e.jsx(l.CircularProgress,{sx:{marginRight:1}}),e.jsx("div",{children:"You will be redirected shortly ... please wait"})]})})})},jo=p.styled("main",{shouldForwardProp:e=>"open"!==e})((({theme:e,open:i})=>{const o=t.useSelector((e=>e.AppLayout)),r=t.useDispatch(),{show:a,hide:n}=Pe(),l=t.useSelector((e=>e.commonStores)),d=p.useTheme(),_=Ue(),{isUserAuthorized:E}=Ge(),{handleGetRequest:c}=Se();return s.useEffect((()=>{(async()=>{a("Loading ... please wait");let e=Object.keys(l);for(let t of e)void 0!==l[t]?.authority&&null!==l[t]?.authority&&!E(l[t]?.authority)||""==l[t]?.url||!0!==l[t].autoLoad||await c({endPointURI:l[t].url,showMask:!1,successCallBkFn:e=>{r(Le({storeKey:t,data:e.data}))},failureCallBkFn:()=>{r(Le({storeKey:t,data:[]}))}});n()})()}),[]),{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1,width:!_&&i?"calc(100% - 350px)":"100%",direction:o.appDirection,justifyContent:"flex-start",transition:!0===i?d.transitions.create(["margin","width"],{easing:d.transitions.easing.easeOut,duration:d.transitions.duration.enteringScreen}):d.transitions.create(["margin","width"],{easing:d.transitions.easing.sharp,duration:d.transitions.duration.leavingScreen}),marginLeft:_||"ltr"!==o.appDirection||!0!==i?0:se+"px",marginRight:_||"rtl"!==o.appDirection||!0!==i?0:se+"px"}}));function Yo(){const i=t.useSelector((e=>e.AppLayout)),o=Ue(),r=t.useSelector((e=>e.UserSession));return e.jsxs(g.BrowserRouter,{children:[e.jsx(A.ToastContainer,{draggable:!0,position:"bottom-center"}),e.jsx(Go,{}),!0===r.value.isAuthenticated?e.jsxs(jo,{open:i.sideBarOpened,children:[e.jsx(_,{}),e.jsx(Be,{}),o?null:e.jsx(Je,{}),o?e.jsx(Wo,{}):null,e.jsx(Fe,{}),e.jsx(Fo,{})]}):e.jsx(ko,{})]})}const qo=i=>{H.LicenseInfo.setLicenseKey(i.muiPremiumKey);const o={components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${i.appTheme.light.primaryColor} #ffffff;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"light",primary:{main:i.appTheme.light.primaryColor},secondary:{main:i.appTheme.light.secondaryColor},background:{default:"#f5f5f5",paper:"#f5f5f5"}}},r={components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${i.appTheme.dark.primaryColor} #121212;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"dark",primary:{main:i.appTheme.dark.primaryColor},secondary:{main:i.appTheme.dark.secondaryColor}}},a=t.useDispatch(),n=t.useSelector((e=>e.AppLayout));let p={...o};"dark"===n.themeMode&&(p={...r});const _=l.createTheme({direction:n.appDirection,...p});return s.useEffect((()=>{document.title=i.documentTitle,a(Ce.setAppInfo(i))}),[]),e.jsx(d.ThemeProvider,{theme:_,children:e.jsx(Yo,{})})},Ko={SystemDataSourceType:{autoLoad:!1,data:[{value:"Mysql"},{value:"Oracle"},{value:"DB2"}],url:""},SystemParameterTypes:{autoLoad:!1,url:"",data:[{value:"datetime"},{value:"date"},{value:"text"},{value:"number"},{value:"droplist"}]},SystemReportTypes:{autoLoad:!1,url:"",data:[{value:"Excel"},{value:"Jasper"},{value:"Blueprint"}]},SystemWidgetTypes:{autoLoad:!1,url:"",data:[{name:"LineChart"},{name:"ColumnChart"},{name:"PieChart"},{name:"Card"},{name:"CircularProgress"},{name:"LinearProgress"}]},SystemMailRecipientTypes:{autoLoad:!1,url:"",data:[{name:"To"},{name:"CC"}]},SystemDataSources:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/admin/datasourceconnection/all"},SystemDataQueries:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/admin/dataquery/all"},SystemEntityParameters:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/admin/entityparameter/all"},SystemAuthorities:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/admin/authority/all"},SystemRoles:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/admin/role/all"}};o.library.add(r.fab),o.library.add(a.far),o.library.add(n.fas);function Vo(e,t){return e.filter((e=>-1===t.indexOf(e)))}function Ho(e,t){return e.filter((e=>-1!==t.indexOf(e)))}const Qo=t=>{const i=t.data.map(((e,i)=>({id:i,value:e[t.valueField],label:e[t.labelField]+""})));return console.log("chartData",i),e.jsx(oe.PieChart,{series:[{data:i}]})},zo=t=>e.jsx(re.BarChart,{dataset:t.data,xAxis:[{dataKey:t.valueField,scaleType:"band"}],series:t.labelField?.split(",").map((e=>({dataKey:e,label:e})))}),Zo=t=>e.jsx(re.LineChart,{dataset:t.data,xAxis:[{dataKey:t.valueField,scaleType:"band"}],series:t.labelField?.split(",").map((e=>({dataKey:e,label:e})))}),$o=t=>e.jsxs(e.Fragment,{children:[e.jsxs(l.Typography,{sx:{fontSize:16,fontWeight:"bold"},children:[t.widgetTitle," - ",t.record[t.labelField]]}),e.jsx(re.Gauge,{width:200,height:200,value:t.record[t.valueField]})]}),Xo=t=>e.jsxs(l.Paper,{sx:{display:"flex",flexDirection:"column",height:150,padding:1,flexGrow:1,justifyContent:"center",alignItems:"center"},children:[e.jsx(l.Box,{sx:{display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"},children:e.jsx(l.Typography,{sx:{fontSize:16,fontWeight:"bold"},children:t.widgetTitle})}),e.jsx(l.Box,{sx:{flex:1,display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"},children:e.jsx("div",{children:`${t.record[t.labelField]} : ${t.record[t.valueField]}`})}),e.jsx(l.Box,{sx:{display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"}})]});function Jo(t){return e.jsxs(L,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(L,{sx:{width:"100%",mr:1},children:e.jsx(ae,{variant:"determinate",...t})}),e.jsx(L,{sx:{minWidth:35},children:e.jsx(D,{variant:"body2",sx:{color:"text.secondary"},children:`${Math.round(t.value)}%`})})]})}const er=t=>e.jsxs(L,{sx:{width:"100%"},children:[e.jsxs(D,{sx:{fontSize:16,fontWeight:"bold"},children:[t.widgetTitle," - ",t.record[t.labelField]]}),e.jsx(Jo,{value:t.record[t.valueField]})]}),tr=({children:t,widgetType:i})=>e.jsx(ie,{size:{xs:12,sm:6,md:4},sx:{alignItems:"center",justifyContent:"center",padding:1,display:"flex",flexDirection:"Card"!=i?"column":void 0,height:300},children:t});Object.defineProperty(exports,"FontAwesomeIcon",{enumerable:!0,get:function(){return T.FontAwesomeIcon}}),Object.defineProperty(exports,"toast",{enumerable:!0,get:function(){return A.toast}}),exports.BaseApp=i=>{if(i.enableAdministrationModule)for(let e of Object.keys(Ko))Ne[e]=Ko[e];if(i?.businessCommonStoresMetaData)for(let e of Object.keys(i.businessCommonStoresMetaData))Ne[e]=i.businessCommonStoresMetaData[e];if(i?.businessReduxReducers)for(let e of Object.keys(i.businessReduxReducers))o=e,r=i.businessReduxReducers[e],he[o]||(he[o]=r);var o,r;return e.jsx(t.Provider,{store:Me,children:e.jsx(qo,{...i})})},exports.CheckBox=st,exports.ComboBox=dt,exports.DATE_FORMAT=rt,exports.DATE_TIME_FORMAT=at,exports.Datefield=nt,exports.DatetimeField=lt,exports.TemplateBarChart=zo,exports.TemplateDashboard=t=>e.jsxs(e.Fragment,{children:[e.jsx(l.Typography,{sx:{fontSize:20,fontWeight:"bold"},children:t.dashboardTitle}),e.jsx(ie,{container:!0,sx:{flexGrow:1,width:"100%",overflowY:"auto",padding:2},children:t.dashboardWidgets.map(((t,i)=>"Card"===t.widgetType||"Gauge"===t.widgetType||"Progress"===t.widgetType?e.jsx(e.Fragment,{children:t.data.map(((i,o)=>{const r={widgetTitle:t.widgetTitle,record:i,labelField:t.labelField,valueField:t.valueField};return e.jsxs(tr,{widgetType:t.widgetType,children:["Card"===t.widgetType?e.jsx(Xo,{...r}):null,"Gauge"===t.widgetType?e.jsx($o,{...r}):null,"Progress"===t.widgetType?e.jsx(er,{...r}):null]},o)}))}):e.jsxs(tr,{widgetType:t.widgetType,children:["Pie"===t.widgetType?e.jsx(Qo,{...t}):null,"Line"===t.widgetType?e.jsx(Zo,{...t}):null,"Bar"===t.widgetType?e.jsx(zo,{...t}):null]},i)))})]}),exports.TemplateDataCard=Xo,exports.TemplateForm=Mo,exports.TemplateGauge=$o,exports.TemplateGrid=xo,exports.TemplateLineChart=Zo,exports.TemplateLineProgress=er,exports.TemplatePieChart=Qo,exports.TemplateTextField=yo,exports.TransferList=({valueField:t="id",displayField:i="name",options:o=[],selectedOptions:r=[],setSelection:a})=>{const[n,d]=le.useState([]),[s,p]=le.useState(o),[_,E]=le.useState(r),[c,T]=le.useState(""),[A,u]=le.useState(""),I=Ho(n,s),O=Ho(n,_),f=e=>()=>{const t=n.indexOf(e),i=[...n];-1===t?i.push(e):i.splice(t,1),d(i)},N=e=>Ho(n,e).length,R=e=>()=>{var t,i;N(e)===e.length?d(Vo(n,e)):d((t=n,i=e,[...t,...Vo(i,t)]))},L=(o,r,a)=>{const d=r.filter((e=>{if(e[i]){const t=e[i];if("left"===a&&t.toLocaleLowerCase().includes(c.toLocaleLowerCase()))return!0;if("right"===a&&t.toLocaleLowerCase().includes(A.toLocaleLowerCase()))return!0}return!1}));return e.jsxs(z,{sx:{height:"100%"},children:[e.jsx(Z,{sx:{px:2,py:1},avatar:e.jsx(ee,{onClick:R(d),checked:N(d)===d.length&&0!==d.length,indeterminate:N(d)!==d.length&&0!==N(d),disabled:0===d.length,inputProps:{"aria-label":"all items selected"}}),title:o,subheader:`${N(r)} / ${r.length} Selected`}),e.jsx(l.Box,{sx:{width:"100%",padding:1},children:e.jsx(yo,{fullWidth:!0,label:"search",value:"left"===a?c:A,onChange:e=>{"left"===a?T(e.target.value):u(e.target.value)}})}),e.jsx(m,{}),e.jsx(Q,{sx:{width:"100%",height:"100%",bgcolor:"secondary",overflow:"auto"},dense:!0,component:"div",role:"list",children:d.map((o=>{const r=`transfer-list-all-item-${o[t]}-label`;return e.jsxs($,{role:"listitem",component:"button",onClick:f(o),children:[e.jsx(J,{children:e.jsx(ee,{checked:-1!==n.indexOf(o),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":r}})}),e.jsx(X,{id:o[t],primary:o[i]})]},o[t])}))})]})};return e.jsxs(l.Grid2,{container:!0,spacing:2,sx:{flexGrow:1,overflow:"auto",margin:1,display:"flex",width:"100%"},justifyContent:"center",alignItems:"center",children:[e.jsx(l.Grid2,{sx:{height:"100%",flex:1},children:L("Available Items",s,"left")}),e.jsx(l.Grid2,{children:e.jsxs(l.Grid2,{container:!0,direction:"column",alignItems:"center",children:[e.jsx(te,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{E((e=>{let t=_.concat(I);return a(t),t})),p(Vo(s,I)),d(Vo(n,I))},disabled:0===I.length,"aria-label":"move selected right",children:">"}),e.jsx(te,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{p(s.concat(O)),E((e=>{let t=Vo(_,O);return a(t),t})),d(Vo(n,O))},disabled:0===O.length,"aria-label":"move selected left",children:"<"})]})}),e.jsx(l.Grid2,{sx:{height:"100%",flex:1},children:L("Currently Selected",_,"right")})]})},exports.capitalizeFirstLetter=Rt,exports.hasDigitsOnly=function(e){return/^\d+$/.test(e)},exports.isNumber=ft,exports.isNumeric=Nt,exports.useApiActions=vo,exports.useAxios=Se,exports.useConfirmationWindow=it,exports.useIsMobile=Ue,exports.useLoadingMask=Pe,exports.useSession=Ge,exports.useWindow=Uo,Object.keys(l).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return l[e]}})})),Object.keys(k).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return k[e]}})}));
|
|
32
32
|
//# sourceMappingURL=index.js.map
|