@asaleh37/ui-base 1.1.6 → 1.1.8
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 +465 -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 +1 -2
- package/src/components/BaseApp.tsx +18 -1
- package/src/components/common/Login.tsx +20 -20
- package/src/components/index.ts +1 -0
- package/src/components/templates/DataEntryTemplates/useApiActions.ts +1 -1
- package/src/components/templates/TransferList.tsx +1 -1
- package/src/components/templates/index.ts +19 -0
- package/src/components/templates/visuals/TemplateDashboard.tsx +1 -1
- package/src/hooks/index.ts +6 -0
- package/src/index.ts +2 -2
- package/src/layout/Layout.tsx +2 -3
- package/src/layout/MainContent.tsx +14 -2
- package/src/layout/NavigationTree.tsx +9 -1
- package/src/redux/features/administration/AdministrationStoresMetaData.ts +1 -1
- package/src/redux/features/common/AppInfoSlice.ts +12 -1
- package/src/redux/features/{business → common}/CommonStoreSlice.ts +2 -4
- package/src/redux/store.ts +17 -9
- package/src/util/index.ts +2 -0
- package/src/redux/features/business/BusinessStoresMetaData.ts +0 -3
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useDispatch as o,useSelector as r,Provider as a}from"react-redux";import{createSlice as n,configureStore as d}from"@reduxjs/toolkit";import{library as l}from"@fortawesome/fontawesome-svg-core";import{fab as s}from"@fortawesome/free-brands-svg-icons";import{far as p}from"@fortawesome/free-regular-svg-icons";import{fas as _}from"@fortawesome/free-solid-svg-icons";import{LicenseInfo as E}from"@mui/x-license";import"react-toastify/dist/ReactToastify.css";import{styled as T,IconButton as A,Avatar as c,Typography as O,useTheme as I,Box as u,Dialog as m,DialogTitle as f,DialogContent as N,DialogContentText as R,DialogActions as L,Button as y,Autocomplete as D,TextField as C,Popper as U,FormControlLabel as M,Checkbox as h,Tooltip as P,Badge as S,Divider as b,MenuItem as g,InputAdornment as v,Grid2 as B,Modal as x,AppBar as W,Toolbar as w,Paper as F,Accordion as G,AccordionSummary as k,AccordionDetails as Y,Backdrop as q,CircularProgress as K,createTheme as V}from"@mui/material";export*from"@mui/material";import{ThemeContext as H,CacheProvider as Q,ThemeProvider as Z}from"@emotion/react";import*as z from"react";import $,{useState as j,useEffect as X}from"react";import{styled as J,alpha as ee,useTheme as te}from"@mui/material/styles";import ie from"@mui/material/CssBaseline";import oe from"@mui/material/AppBar";import re from"@mui/material/Toolbar";import{FontAwesomeIcon as ae}from"@fortawesome/react-fontawesome";export{FontAwesomeIcon}from"@fortawesome/react-fontawesome";import{toast as ne,ToastContainer as de}from"react-toastify";export{toast}from"react-toastify";import le from"axios";import se from"i18next";import{initReactI18next as pe,useTranslation as _e}from"react-i18next";import Ee from"@mui/material/Divider";import Te from"@mui/material/IconButton";import Ae from"@mui/material/Drawer";import{animated as ce,useSpring as Oe}from"@react-spring/web";import Ie from"@mui/material/Box";import ue from"@mui/material/Collapse";import me from"@mui/material/Typography";import{RichTreeView as fe}from"@mui/x-tree-view/RichTreeView";import{treeItemClasses as Ne}from"@mui/x-tree-view/TreeItem";import{useTreeItem2 as Re}from"@mui/x-tree-view/useTreeItem2";import{TreeItem2Root as Le,TreeItem2Content as ye,TreeItem2IconContainer as De,TreeItem2Checkbox as Ce,TreeItem2Label as Ue}from"@mui/x-tree-view/TreeItem2";import{TreeItem2Icon as Me}from"@mui/x-tree-view/TreeItem2Icon";import{TreeItem2Provider as he}from"@mui/x-tree-view/TreeItem2Provider";import{TreeItem2DragAndDropOverlay as Pe}from"@mui/x-tree-view/TreeItem2DragAndDropOverlay";import{useNavigate as Se,useParams as be,Routes as ge,Route as ve,BrowserRouter as Be}from"react-router-dom";import xe from"stylis-plugin-rtl";import{prefixer as We}from"stylis";import we from"@emotion/cache";import{QuickFilter as Fe,ToolbarButton as Ge,Toolbar as ke,ColumnsPanelTrigger as Ye,GridViewColumnIcon as qe,FilterPanelTrigger as Ke,GridFilterListIcon as Ve,ExportExcel as He,QuickFilterTrigger as Qe,QuickFilterControl as Ze,QuickFilterClear as ze,GridActionsCellItem as $e,GridExpandMoreIcon as je,DataGridPremium as Xe,GridRowModes as Je}from"@mui/x-data-grid-premium";import et from"moment";import{LocalizationProvider as tt,DatePicker as it,DateTimePicker as ot}from"@mui/x-date-pickers";import{AdapterMoment as rt}from"@mui/x-date-pickers/AdapterMoment";import*as at from"zod";import{z as nt}from"zod";export*from"zod";import{useForm as dt}from"react-hook-form";import{zodResolver as lt}from"@hookform/resolvers/zod";import st from"@emotion/styled";import{grey as pt}from"@mui/material/colors";import _t from"@mui/material/SwipeableDrawer";const Et=350,Tt=n({name:"AppLayout",initialState:{sideBarOpened:!1,themeMode:localStorage.getItem("themeMode")||"light",appDirection:"ar"==localStorage.getItem("language")?"rtl":"ltr"},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}}}),At=Tt.actions;var ct=Tt.reducer;const Ot=n({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}}}}),It=Ot.actions;var ut=Ot.reducer;const mt=n({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:ft,hideLoadingMask:Nt}=mt.actions;var Rt=mt.reducer;const Lt=n({name:"loadingMask",initialState:{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"}},reducers:{setStoreData(e,t){e[t.payload.storeKey].data=t.payload.data}}}),{setStoreData:yt}=Lt.actions;var Dt=Lt.reducer;const Ct=n({name:"AppInfo",initialState:{value:{documentTitle:null,apiBaseUrl:null,appName:null,appVersion:null,appLogo:null}},reducers:{setAppInfo:(e,t)=>{e.value=t.payload}}}),Ut=Ct.actions;const Mt=d({reducer:{AppLayout:ct,UserSession:ut,loadingMask:Rt,commonStores:Dt,AppInfo:Ct.reducer}});!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 ht={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"}}},Pt={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"}}},St=(e=768)=>{const[t,i]=j(window.innerWidth<e);return X((()=>{const t=()=>i(window.innerWidth<e);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[e]),t},bt=()=>{const e=o();return{show:t=>{e(ft(t))},hide:()=>{e(Nt())}}},gt=()=>{const e=bt(),t=r((e=>e.AppInfo.value.apiBaseUrl)),i=le.create({baseURL:t,timeout:6e5,withCredentials:!0});i.defaults.withCredentials=!0,i.interceptors.response.use((e=>e),(e=>(e&&(e.response&&(e.response.status&&401===e.response.status))?ne.error("your session is now expired, you need to login again",{autoClose:!1}):e&&(e.response&&(e.response.status&&403===e.response.status))?ne.error("you aren't authorized to process this request"):e&&(e.response&&(e.response.status&&500===e.response.status))?ne.error(e.response.data):ne.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 o=await i.get(t.endPointURI,{params:{...t.parameters},withCredentials:!0});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==o?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(o),o):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(o),"ERROR")},handlePostRequest:async(t={endPointURI:"",parameters:{},data:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);let o=await i.post(t.endPointURI,t.data,{params:t.parameters});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==o?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(o),o):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(o),"ERROR")},handleDeleteRequest:async(t={endPointURI:"",parameters:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);let o=await i.delete(t.endPointURI,{params:{...t.parameters}});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==o?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(o),o):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(o),"ERROR")},HandleDownloadHTTPPostPDF:async(t={endPointURI:"",parameters:{},data:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);const o=await i.post(t.endPointURI,t.data,{responseType:"blob"});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==o?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(o),o):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(o),"ERROR")}}};var vt={"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 Bt={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 xt={en:{translation:{...Bt,...{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:{...vt,...{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"}}}};se.use(pe).init({resources:xt,lng:localStorage.getItem("language")||"en",fallbackLng:"en"});const Wt=T(oe,{shouldForwardProp:e=>"open"!==e})((({theme:e})=>{const t=r((e=>e.AppLayout)),i=St();return{transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),variants:[{props:({open:e})=>e,style:{width:i?void 0:"calc(100% - 350px)",marginLeft:i||"ltr"!==t.appDirection?void 0:"350px",marginRight:i||"rtl"!==t.appDirection?void 0:"350px",transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}]}})),wt=()=>{const i=r((e=>e.AppInfo.value)),a=r((e=>e.AppLayout)),n=r((e=>e.UserSession)),{handleGetRequest:d}=gt(),l=St(),s=o();return e(Wt,{position:"fixed",open:a.sideBarOpened,children:t(re,{children:[e(A,{color:"inherit","aria-label":"open drawer",onClick:()=>{s(At.toggleSideBarState())},edge:"start",sx:[{mr:"ltr"===a.appDirection?2:void 0,ml:"rtl"===a.appDirection?2:void 0},a.sideBarOpened&&{display:"none"}],children:e(ae,{icon:"bars"})}),e(c,{src:i.appLogo,sx:{marginRight:1,marginLeft:1}}),e(O,{variant:"h6",noWrap:!0,component:"div",sx:{flex:1},children:l?"":i.appName}),e(A,{color:"inherit",onClick:()=>{s(At.setThemeMode("light"===a.themeMode?"dark":"light")),localStorage.setItem("themeMode","light"===a.themeMode?"dark":"light")},children:"light"===a.themeMode?e(ae,{icon:"moon"}):e(ae,{icon:{prefix:"far",iconName:"sun"}})}),e(A,{color:"inherit",onClick:()=>{let e="ar"===se.language?"en":"ar";var t;t=e,se.changeLanguage(t),localStorage.setItem("language",t),s(At.setAppDirection("ar"===e?"rtl":"ltr"))},children:e(ae,{icon:"language"})}),e(c,{}),e("div",{style:{marginLeft:5,marginRight:5},children:l?"":n.value?.userProfile?.username}),e(A,{color:"inherit",onClick:async()=>{try{await d({endPointURI:"api/auth/logout"})}catch(e){console.log("logout error",e)}s(It.setUnAuthenticated())},children:e(ae,{rotation:"rtl"===a.appDirection?180:void 0,icon:"arrow-right-from-bracket"})})]})})},Ft=T("div")((({theme:e})=>({display:"flex",alignItems:"center",...e.mixins.toolbar,justifyContent:"flex-end"})));function Gt(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=Gt(e[t]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function kt(){for(var e,t,i=0,o="",r=arguments.length;i<r;i++)(e=arguments[i])&&(t=Gt(e))&&(o&&(o+=" "),o+=t);return o}const Yt=()=>{const e=r((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}}},qt=(e,t)=>{for(const i of t){if(i.id===e)return i;if(i.children){const t=qt(e,i.children);if(t)return t}}},Kt=[...[{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 Vt(){return e(Ie,{sx:{width:6,height:6,borderRadius:"70%",bgcolor:"warning.main",display:"inline-block",verticalAlign:"middle",zIndex:1,mx:1}})}const Ht=J(Le)((({theme:e})=>({color:e.palette.grey[400],position:"relative",[`& .${Ne.groupTransition}`]:{marginLeft:e.spacing(2.5)},...e.applyStyles("light",{color:e.palette.grey[800]})}))),Qt=J(ye)((({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:ee(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})}}))),Zt=ce(ue);function zt(t){const i=Oe({to:{opacity:t.in?1:0,transform:`translate3d(0,${t.in?0:20}px,0)`}});return e(Zt,{style:i,...t})}const $t=J(me)({color:"inherit",fontWeight:500});function jt({icon:i,expandable:o,children:a,...n}){const{t:d}=_e(),l=r((e=>e.AppLayout));return t(Ue,{...n,sx:{display:"flex",alignItems:"center",padding:1},children:[e(ae,{style:{marginRight:"ltr"===l.appDirection?7:void 0,marginLeft:"rtl"===l.appDirection?7:void 0,fontSize:"1.2rem"},icon:i}),e($t,{variant:"body2",sx:{fontSize:16},children:d(a)}),o&&e(Vt,{})]})}const Xt=e=>Array.isArray(e)?e.length>0&&e.some(Xt):Boolean(e),Jt=z.forwardRef((function(i,o){const{id:r,itemId:a,label:n,disabled:d,children:l,...s}=i,{getRootProps:p,getContentProps:_,getIconContainerProps:E,getCheckboxProps:T,getLabelProps:A,getGroupTransitionProps:c,getDragAndDropOverlayProps:O,status:I,publicAPI:u}=Re({id:r,itemId:a,children:l,label:n,disabled:d,rootRef:o}),m=u.getItem(a),f=Xt(l);return e(he,{itemId:a,children:t(Ht,{...p(s),children:[t(Qt,{..._({className:kt("content",{"Mui-expanded":I.expanded,"Mui-selected":I.selected,"Mui-focused":I.focused,"Mui-disabled":I.disabled})}),children:[e(De,{...E(),children:e(Me,{status:I})}),e(Ce,{...T()}),e(jt,{...A({icon:m?.icon||"book",expandable:f&&I.expanded})}),e(Pe,{...O()})]}),l&&e(zt,{...c()})]})})}));function ei(){const t=Se(),i=r((e=>e.AppLayout));o();const a=St(),{isUserAuthorized:n}=Yt(),d=e=>e.filter((e=>void 0===e.authority||null==e.authority||n(e.authority))).map((e=>(e.children&&(e.children=d(e.children)),e))),l=d(Kt);return e(fe,{items:l,onItemClick:(e,i)=>{const o=qt(i,Kt);"NAVIGATION"!==o?.action||null==o?.actionPayload||void 0!==o.children&&null!==o.children&&0!=o.children.length||t(o?.actionPayload?.path||"")},sx:{height:"fit-content",flexGrow:1,maxWidth:Et,direction:i.appDirection,maxHeight:a?300:void 0,overflowY:"auto",overflowX:"auto"},slots:{item:Jt}})}const ti=()=>{const i=r((e=>e.AppInfo.value)),a=I(),n=r((e=>e.AppLayout)),d=o();return t(Ae,{sx:{width:Et,flexShrink:0,"& .MuiDrawer-paper":{width:Et,boxSizing:"border-box"}},variant:"persistent",anchor:"ltr"===n.appDirection?"left":"right",open:n.sideBarOpened,children:[t(Ft,{children:[t(u,{sx:{width:"100%"},children:[e(O,{color:"primary",sx:{width:"100%",textAlign:"center",fontSize:18,fontWeight:"bold"},children:"System Content"}),t(u,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1},children:[e(O,{sx:{fontSize:12},color:"textDisabled",children:i.appName}),t(O,{sx:{fontSize:12},color:"textDisabled",children:["V.",i.appVersion]})]})]}),e(Te,{onClick:()=>{d(At.toggleSideBarState())},children:"ltr"===a.direction?e(ae,{icon:"angle-left"}):e(ae,{icon:"angle-right"})})]}),e(Ee,{}),e(ei,{})]})},ii=we({key:"muirtl",stylisPlugins:[We,xe]}),oi=we({key:"mui"}),ri=i=>{const[o,r]=j(!1),{t:a}=_e();return{ConfirmationWindow:()=>t(m,{open:o,children:[e(f,{children:i.title}),e(N,{children:e(R,{children:i.body})}),t(L,{children:[e(y,{variant:"contained",color:"primary",onClick:()=>{r(!1)},children:a("NO_LABEL")}),e(y,{variant:"contained",color:"error",onClick:()=>{i.onConfirmationCallBk(),r(!1)},autoFocus:!0,children:a("YES_LABEL")})]})]}),open:o,setOpen:r}},ai=o=>{const{t:r}=_e(),a=Yt(),{ConfirmationWindow:n,setOpen:d}=ri({body:r(o?.confirmationMessage||"ACTION_CONFIRMATION"),title:r("CONFIRMATION"),onConfirmationCallBk:async()=>{await(o?.actionFn(o.recordsToProcessActionOn,o.recordIdsToProcessActionOn)),o?.reloadData&&o.reloadData()}});let l=!0;if(o.authority&&(l=a.isUserAuthorized(o.authority)),l)return t(i,{children:[e(n,{}),t(y,{onClick:async()=>{if(o?.recordsToProcessActionOn&&o?.recordsToProcessActionOn.length>0){if(o?.preActionValidation)for(const e of o.recordsToProcessActionOn)if(!o.preActionValidation(e))return;!0===o?.isConfirmationRequired?d(!0):(await o.actionFn(o.recordsToProcessActionOn,o.recordIdsToProcessActionOn),o?.reloadData&&o.reloadData())}else ne.error(r("AT_LEAST_ONE_RECORD_SELECTED_MESSAGE"))},variant:o?.label?"outlined":o?.formActionProps?.actionButtonVariant?o.formActionProps.actionButtonVariant:"text",size:"small",color:o?.formActionProps?.actionButtonColor||"primary",children:[o?.icon?e(ae,{style:{marginRight:5,marginLeft:5},icon:o.icon}):e(i,{}),o?.label?r(o.label):e(i,{})]})]})},ni="YYYY-MM-DD",di="YYYY-MM-DD HH:mm:ss",li=t=>{const{t:o}=_e();return e(tt,{dateAdapter:rt,children:e(it,{value:null!=t.value&&void 0!==t.value&&""!==t.value?et(t.value,t?.format||ni):null,sx:t.sx,label:o(t.label),format:t?.format||ni,disabled:t.disabled,onChange:e=>{let i=null;null!=e&&e.isValid()&&(i=e.format(t?.format||ni)),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(i,{children:o(t.errorMessage)}):e(i,{})}}})})},si=t=>{const{t:o}=_e();return e(tt,{dateAdapter:rt,children:e(ot,{value:null!=t.value&&void 0!==t.value&&""!==t.value?et(t.value,t?.format||di):null,label:o(t.label),sx:t.sx,format:t?.format||di,disabled:t.disabled,onChange:e=>{let i=null;null!=e&&e.isValid()&&(i=e.format(t?.format||di)),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(i,{children:o(t.errorMessage)}):e(i,{})}}})})},pi=t=>{const i=r((e=>e.AppLayout)),{t:o}=_e();return e(D,{sx:t.sx,value:(e=>{for(let i of t.options)if(i[t.valueField]==e)return i;return null})(t.value),options:t.options,disabled:t.disabled,onChange:(e,i)=>{if(void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack)if(null!=i){let e=i[t.valueField];t.onChangeCallBack(e,i)}else t.onChangeCallBack(null,null)},clearOnBlur:!0,handleHomeEndKeys:!0,getOptionLabel:e=>null!=e?o(e[t.displayField]):"",renderOption:(i,r)=>e("li",{...i,children:null!=r?o(r[t.displayField]):""}),slots:{popper:t=>e(U,{...t,style:{...t.style,direction:i.appDirection}})},renderInput:i=>e(C,{...i,required:t.required||!1,variant:"outlined",InputLabelProps:{shrink:!0},label:o(t.label),error:null!=t.errorMessage&&void 0!==t.errorMessage,helperText:null!=t.errorMessage&&void 0!==t.errorMessage?o(t.errorMessage):""})})},_i=t=>{const{t:i}=_e();return e(M,{sx:t.sx,disabled:t.disabled||!1,required:t.required||!1,control:e(h,{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)})},Ei=t=>({...t,type:"string",renderEditCell:t=>e(si,{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=et(e).format(di)),o},valueFormatter:(e,t,i)=>t[i.field]}),Ti=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("div",{children:null!=i?i[t.colDef.displayField]:t.value})},renderEditCell:i=>e(pi,{...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+""})}})}),Ai=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(ae,{icon:"check",color:"green"}):e(ae,{icon:"xmark",color:"red"})},renderEditCell:i=>e(_i,{...i,checkedValue:t?.checkedValue||"true",unCheckedValue:t?.unCheckedValue||"false",onChangeCallBack:e=>{i.api.setEditCellValue({id:i.id,field:i.field,value:e+""})}})}),ci=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(...ci(i));return t},Oi=e=>{const t=[];for(const i of e)t.push(...ci(i));return t},Ii=e=>{const t={};for(const i of e)if(i?.fieldName){const e=i.fieldName;"number"===i.fieldType?t[e]=!0===i?.required?at.number({required_error:"This field is required",invalid_type_error:"This field must be a number"}):at.number().optional().nullable():t[e]=!0===i?.required?at.string({message:"This field is required"}).min(1,"This field is required"):at.string().optional().nullable()}return t},ui=T(Fe)({display:"grid",alignItems:"center"}),mi=T(Ge)((({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"])}))),fi=T(C)((({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"])}))),Ni=o=>{const{t:r}=_e(),a=Yt(),n=!o?.templateProps?.editAction?.authority||a.isUserAuthorized(o.templateProps.editAction.authority),d=((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}})(o?.templateProps?.rowSelectionModel||{ids:new Set,type:"include"},o?.templateProps?.data||[],o?.templateProps?.keyColumnName||"id");return t(ke,{children:[n&&"none"!=o?.templateProps?.editMode?.editMode?t(y,{onClick:o?.handleCreateNewRecord,children:[e(ae,{icon:"add",style:{marginRight:5,marginLeft:5}}),r("ADD_BTN_LABEL")]}):e(i,{}),o?.templateProps?.rowActions?o.templateProps.rowActions.map((t=>!0===t?.gridActionProps?.multiRecord?e(ai,{...t,reloadData:async()=>{o.templateProps.apiActions.reloadData(o?.templateProps?.gridLoadParametersValues)},recordIdsToProcessActionOn:d.selectedRecordIds,recordsToProcessActionOn:d.selectedRecords}):e(i,{}))):e(i,{}),e(u,{sx:{flex:1,mx:.5},children:o?.templateProps?.tBar}),e(P,{title:"Columns",children:e(Ye,{render:e(Ge,{}),children:e(qe,{fontSize:"small"})})}),e(P,{title:"Filters",children:e(Ke,{render:(t,i)=>e(Ge,{...t,color:"default",children:e(S,{badgeContent:i.filterCount,color:"primary",variant:"dot",children:e(Ve,{fontSize:"small"})})})})}),o?.templateProps?.gridStateKey?e(P,{title:r("RESET_GRID_STATE"),children:e(A,{onClick:o?.clearGridState,children:e(ae,{icon:"eraser"})})}):e(i,{}),e(b,{orientation:"vertical",variant:"middle",flexItem:!0,sx:{mx:.5}}),e(P,{title:r("EXPORT_EXECL_LABEL"),children:e(He,{render:e(g,{}),children:e(ae,{icon:"file-excel",color:"green"})})}),t(ui,{children:[e(Qe,{render:(t,i)=>e(P,{title:r("SEARCH_BTN_LABEL"),enterDelay:0,children:e(mi,{...t,ownerState:{expanded:i.expanded},color:"default","aria-disabled":i.expanded,children:e(ae,{icon:"search"})})})}),e(Ze,{render:({ref:t,...i},o)=>e(fi,{...i,ownerState:{expanded:o.expanded},inputRef:t,"aria-label":"Search",placeholder:`${r("SEARCH_BTN_LABEL")}...`,size:"small",slotProps:{input:{startAdornment:e(v,{position:"start",children:e(ae,{icon:"search"})}),endAdornment:o.value?e(v,{position:"end",children:e(ze,{edge:"end",size:"small","aria-label":"Clear search",children:e(ae,{icon:"xmark"})})}):null,...i.slotProps?.input},...i.slotProps}})})]}),e(A,{onClick:()=>{o.templateProps.apiActions.reloadData(o?.templateProps?.gridLoadParametersValues)},children:e(ae,{icon:"refresh"})})]})};function Ri(e){return"number"==typeof e&&!isNaN(e)}const Li=o=>{const{t:r}=_e(),a=Yt(),{ConfirmationWindow:n,setOpen:d}=ri({body:r(o?.confirmationMessage||"ACTION_CONFIRMATION"),title:r("CONFIRMATION"),onConfirmationCallBk:async()=>{await(o?.actionFn(o.record)),o?.reloadData&&o.reloadData()}});let l=!0;o.authority&&(l=a.isUserAuthorized(o.authority));let s={};o?.getActionIconStyleForRecord&&(s=o.getActionIconStyleForRecord(o.record));let p=!0;o?.isActionVisibleForRecord&&(p=o?.isActionVisibleForRecord(o.record));let _=!1;if(o?.isActionDisabledForRecord&&(_=o.isActionDisabledForRecord(o.record)),l&&p)return t(i,{children:[e(n,{}),e($e,{disabled:_,icon:e(P,{title:o?.label?r(o.label):"",children:e(ae,{icon:o.icon,style:{...s,color:_?"gray":null!=s?.color?s.color:void 0}})}),showInMenu:o?.gridActionProps?.showInMenu||!1,label:"",className:"textPrimary",color:"inherit",onClick:async()=>{if(!_){if(o?.preActionValidation&&!o.preActionValidation(o.record))return;!0===o?.isConfirmationRequired?d(!0):(await o.actionFn(o.record),o?.reloadData&&o.reloadData())}}})]})};function yi(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 Di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ci,Ui={exports:{}},Mi={exports:{}},hi={};var Pi,Si,bi,gi,vi,Bi,xi,Wi,wi,Fi,Gi,ki,Yi,qi,Ki,Vi={};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useDispatch as o,useSelector as r,Provider as a}from"react-redux";import{createSlice as n,configureStore as d}from"@reduxjs/toolkit";import{library as l}from"@fortawesome/fontawesome-svg-core";import{fab as s}from"@fortawesome/free-brands-svg-icons";import{far as p}from"@fortawesome/free-regular-svg-icons";import{fas as _}from"@fortawesome/free-solid-svg-icons";import{LicenseInfo as E}from"@mui/x-license";import"react-toastify/dist/ReactToastify.css";import{styled as T,IconButton as c,Avatar as A,Typography as u,useTheme as O,Box as m,Dialog as I,DialogTitle as f,DialogContent as N,DialogContentText as R,DialogActions as L,Button as y,Autocomplete as D,TextField as C,Popper as U,FormControlLabel as M,Checkbox as h,Tooltip as P,Badge as b,Divider as S,MenuItem as g,InputAdornment as v,Grid2 as x,Modal as B,AppBar as W,Toolbar as w,Paper as F,Accordion as G,AccordionSummary as k,AccordionDetails as Y,Backdrop as q,CircularProgress as K,createTheme as V}from"@mui/material";export*from"@mui/material";import{ThemeContext as H,CacheProvider as Q,ThemeProvider as z}from"@emotion/react";import*as Z from"react";import $,{useState as j,useEffect as X}from"react";import{styled as J,alpha as ee,useTheme as te}from"@mui/material/styles";import ie from"@mui/material/CssBaseline";import oe from"@mui/material/AppBar";import re from"@mui/material/Toolbar";import{FontAwesomeIcon as ae}from"@fortawesome/react-fontawesome";export{FontAwesomeIcon}from"@fortawesome/react-fontawesome";import{toast as ne,ToastContainer as de}from"react-toastify";export{toast}from"react-toastify";import le from"axios";import se from"i18next";import{initReactI18next as pe,useTranslation as _e}from"react-i18next";import Ee from"@mui/material/Divider";import Te from"@mui/material/IconButton";import ce from"@mui/material/Drawer";import{animated as Ae,useSpring as ue}from"@react-spring/web";import Oe from"@mui/material/Box";import me from"@mui/material/Collapse";import Ie from"@mui/material/Typography";import{RichTreeView as fe}from"@mui/x-tree-view/RichTreeView";import{treeItemClasses as Ne}from"@mui/x-tree-view/TreeItem";import{useTreeItem2 as Re}from"@mui/x-tree-view/useTreeItem2";import{TreeItem2Root as Le,TreeItem2Content as ye,TreeItem2IconContainer as De,TreeItem2Checkbox as Ce,TreeItem2Label as Ue}from"@mui/x-tree-view/TreeItem2";import{TreeItem2Icon as Me}from"@mui/x-tree-view/TreeItem2Icon";import{TreeItem2Provider as he}from"@mui/x-tree-view/TreeItem2Provider";import{TreeItem2DragAndDropOverlay as Pe}from"@mui/x-tree-view/TreeItem2DragAndDropOverlay";import{useNavigate as be,useParams as Se,Routes as ge,Route as ve,BrowserRouter as xe}from"react-router-dom";import Be from"stylis-plugin-rtl";import{prefixer as We}from"stylis";import we from"@emotion/cache";import{QuickFilter as Fe,ToolbarButton as Ge,Toolbar as ke,ColumnsPanelTrigger as Ye,GridViewColumnIcon as qe,FilterPanelTrigger as Ke,GridFilterListIcon as Ve,ExportExcel as He,QuickFilterTrigger as Qe,QuickFilterControl as ze,QuickFilterClear as Ze,GridActionsCellItem as $e,GridExpandMoreIcon as je,DataGridPremium as Xe,GridRowModes as Je}from"@mui/x-data-grid-premium";import et from"moment";import{LocalizationProvider as tt,DatePicker as it,DateTimePicker as ot}from"@mui/x-date-pickers";import{AdapterMoment as rt}from"@mui/x-date-pickers/AdapterMoment";import*as at from"zod";import{z as nt}from"zod";export*from"zod";import{useForm as dt}from"react-hook-form";import{zodResolver as lt}from"@hookform/resolvers/zod";import st from"@emotion/styled";import{grey as pt}from"@mui/material/colors";import _t from"@mui/material/SwipeableDrawer";import Et from"@mui/material/List";import Tt from"@mui/material/Card";import ct from"@mui/material/CardHeader";import At from"@mui/material/ListItem";import ut from"@mui/material/ListItemText";import Ot from"@mui/material/ListItemIcon";import mt from"@mui/material/Checkbox";import It from"@mui/material/Button";import ft from"@mui/material/Grid2";import{PieChart as Nt}from"@mui/x-charts/PieChart";import{BarChart as Rt,LineChart as Lt,Gauge as yt}from"@mui/x-charts";import Dt from"@mui/material/LinearProgress";const Ct=350,Ut=n({name:"AppLayout",initialState:{sideBarOpened:!1,themeMode:localStorage.getItem("themeMode")||"light",appDirection:"ar"==localStorage.getItem("language")?"rtl":"ltr"},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}}}),Mt=Ut.actions;var ht=Ut.reducer;const Pt=n({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}}}}),bt=Pt.actions;var St=Pt.reducer;const gt=n({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:vt,hideLoadingMask:xt}=gt.actions;var Bt=gt.reducer;const Wt={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"}},wt=n({name:"loadingMask",initialState:Wt,reducers:{setStoreData(e,t){e[t.payload.storeKey].data=t.payload.data}}}),{setStoreData:Ft}=wt.actions;var Gt=wt.reducer;const kt=n({name:"AppInfo",initialState:{value:{documentTitle:null,apiBaseUrl:null,appName:null,appVersion:null,appLogo:null,businessRoutes:[],businessNavigationItems:[],businessReduxReducers:{},businessCommonStoresMetaData:{}}},reducers:{setAppInfo:(e,t)=>{e.value=t.payload}}}),Yt=kt.actions;const qt={AppLayout:ht,UserSession:St,loadingMask:Bt,commonStores:Gt,AppInfo:kt.reducer};const Kt=d({reducer:qt});!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 Vt={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"}}},Ht={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"}}},Qt=(e=768)=>{const[t,i]=j(window.innerWidth<e);return X((()=>{const t=()=>i(window.innerWidth<e);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[e]),t},zt=()=>{const e=o();return{show:t=>{e(vt(t))},hide:()=>{e(xt())}}},Zt=()=>{const e=zt(),t=r((e=>e.AppInfo.value.apiBaseUrl)),i=le.create({baseURL:t,timeout:6e5,withCredentials:!0});i.defaults.withCredentials=!0,i.interceptors.response.use((e=>e),(e=>(e&&(e.response&&(e.response.status&&401===e.response.status))?ne.error("your session is now expired, you need to login again",{autoClose:!1}):e&&(e.response&&(e.response.status&&403===e.response.status))?ne.error("you aren't authorized to process this request"):e&&(e.response&&(e.response.status&&500===e.response.status))?ne.error(e.response.data):ne.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 o=await i.get(t.endPointURI,{params:{...t.parameters},withCredentials:!0});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==o?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(o),o):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(o),"ERROR")},handlePostRequest:async(t={endPointURI:"",parameters:{},data:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);let o=await i.post(t.endPointURI,t.data,{params:t.parameters});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==o?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(o),o):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(o),"ERROR")},handleDeleteRequest:async(t={endPointURI:"",parameters:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);let o=await i.delete(t.endPointURI,{params:{...t.parameters}});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==o?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(o),o):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(o),"ERROR")},HandleDownloadHTTPPostPDF:async(t={endPointURI:"",parameters:{},data:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);const o=await i.post(t.endPointURI,t.data,{responseType:"blob"});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==o?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(o),o):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(o),"ERROR")}}};var $t={"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 jt={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 Xt={en:{translation:{...jt,...{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:{...$t,...{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"}}}};se.use(pe).init({resources:Xt,lng:localStorage.getItem("language")||"en",fallbackLng:"en"});const Jt=T(oe,{shouldForwardProp:e=>"open"!==e})((({theme:e})=>{const t=r((e=>e.AppLayout)),i=Qt();return{transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),variants:[{props:({open:e})=>e,style:{width:i?void 0:"calc(100% - 350px)",marginLeft:i||"ltr"!==t.appDirection?void 0:"350px",marginRight:i||"rtl"!==t.appDirection?void 0:"350px",transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}]}})),ei=()=>{const i=r((e=>e.AppInfo.value)),a=r((e=>e.AppLayout)),n=r((e=>e.UserSession)),{handleGetRequest:d}=Zt(),l=Qt(),s=o();return e(Jt,{position:"fixed",open:a.sideBarOpened,children:t(re,{children:[e(c,{color:"inherit","aria-label":"open drawer",onClick:()=>{s(Mt.toggleSideBarState())},edge:"start",sx:[{mr:"ltr"===a.appDirection?2:void 0,ml:"rtl"===a.appDirection?2:void 0},a.sideBarOpened&&{display:"none"}],children:e(ae,{icon:"bars"})}),e(A,{src:i.appLogo,sx:{marginRight:1,marginLeft:1}}),e(u,{variant:"h6",noWrap:!0,component:"div",sx:{flex:1},children:l?"":i.appName}),e(c,{color:"inherit",onClick:()=>{s(Mt.setThemeMode("light"===a.themeMode?"dark":"light")),localStorage.setItem("themeMode","light"===a.themeMode?"dark":"light")},children:"light"===a.themeMode?e(ae,{icon:"moon"}):e(ae,{icon:{prefix:"far",iconName:"sun"}})}),e(c,{color:"inherit",onClick:()=>{let e="ar"===se.language?"en":"ar";var t;t=e,se.changeLanguage(t),localStorage.setItem("language",t),s(Mt.setAppDirection("ar"===e?"rtl":"ltr"))},children:e(ae,{icon:"language"})}),e(A,{}),e("div",{style:{marginLeft:5,marginRight:5},children:l?"":n.value?.userProfile?.username}),e(c,{color:"inherit",onClick:async()=>{try{await d({endPointURI:"api/auth/logout"})}catch(e){console.log("logout error",e)}s(bt.setUnAuthenticated())},children:e(ae,{rotation:"rtl"===a.appDirection?180:void 0,icon:"arrow-right-from-bracket"})})]})})},ti=T("div")((({theme:e})=>({display:"flex",alignItems:"center",...e.mixins.toolbar,justifyContent:"flex-end"})));function ii(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=ii(e[t]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function oi(){for(var e,t,i=0,o="",r=arguments.length;i<r;i++)(e=arguments[i])&&(t=ii(e))&&(o&&(o+=" "),o+=t);return o}const ri=()=>{const e=r((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}}},ai=(e,t)=>{for(const i of t){if(i.id===e)return i;if(i.children){const t=ai(e,i.children);if(t)return t}}},ni=[...[{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 di(){return e(Oe,{sx:{width:6,height:6,borderRadius:"70%",bgcolor:"warning.main",display:"inline-block",verticalAlign:"middle",zIndex:1,mx:1}})}const li=J(Le)((({theme:e})=>({color:e.palette.grey[400],position:"relative",[`& .${Ne.groupTransition}`]:{marginLeft:e.spacing(2.5)},...e.applyStyles("light",{color:e.palette.grey[800]})}))),si=J(ye)((({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:ee(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})}}))),pi=Ae(me);function _i(t){const i=ue({to:{opacity:t.in?1:0,transform:`translate3d(0,${t.in?0:20}px,0)`}});return e(pi,{style:i,...t})}const Ei=J(Ie)({color:"inherit",fontWeight:500});function Ti({icon:i,expandable:o,children:a,...n}){const{t:d}=_e(),l=r((e=>e.AppLayout));return t(Ue,{...n,sx:{display:"flex",alignItems:"center",padding:1},children:[e(ae,{style:{marginRight:"ltr"===l.appDirection?7:void 0,marginLeft:"rtl"===l.appDirection?7:void 0,fontSize:"1.2rem"},icon:i}),e(Ei,{variant:"body2",sx:{fontSize:16},children:d(a)}),o&&e(di,{})]})}const ci=e=>Array.isArray(e)?e.length>0&&e.some(ci):Boolean(e),Ai=Z.forwardRef((function(i,o){const{id:r,itemId:a,label:n,disabled:d,children:l,...s}=i,{getRootProps:p,getContentProps:_,getIconContainerProps:E,getCheckboxProps:T,getLabelProps:c,getGroupTransitionProps:A,getDragAndDropOverlayProps:u,status:O,publicAPI:m}=Re({id:r,itemId:a,children:l,label:n,disabled:d,rootRef:o}),I=m.getItem(a),f=ci(l);return e(he,{itemId:a,children:t(li,{...p(s),children:[t(si,{..._({className:oi("content",{"Mui-expanded":O.expanded,"Mui-selected":O.selected,"Mui-focused":O.focused,"Mui-disabled":O.disabled})}),children:[e(De,{...E(),children:e(Me,{status:O})}),e(Ce,{...T()}),e(Ti,{...c({icon:I?.icon||"book",expandable:f&&O.expanded})}),e(Pe,{...u()})]}),l&&e(_i,{...A()})]})})}));function ui(){const t=be(),i=r((e=>e.AppLayout)),a=r((e=>e.AppInfo.value.businessNavigationItems));o();const n=Qt(),{isUserAuthorized:d}=ri(),l=e=>e.filter((e=>void 0===e.authority||null==e.authority||d(e.authority))).map((e=>(e.children&&(e.children=l(e.children)),e))),s=[...ni,...a],p=l(s);return e(fe,{items:p,onItemClick:(e,i)=>{const o=ai(i,ni);"NAVIGATION"!==o?.action||null==o?.actionPayload||void 0!==o.children&&null!==o.children&&0!=o.children.length||t(o?.actionPayload?.path||"")},sx:{height:"fit-content",flexGrow:1,maxWidth:Ct,direction:i.appDirection,maxHeight:n?300:void 0,overflowY:"auto",overflowX:"auto"},slots:{item:Ai}})}const Oi=()=>{const i=r((e=>e.AppInfo.value)),a=O(),n=r((e=>e.AppLayout)),d=o();return t(ce,{sx:{width:Ct,flexShrink:0,"& .MuiDrawer-paper":{width:Ct,boxSizing:"border-box"}},variant:"persistent",anchor:"ltr"===n.appDirection?"left":"right",open:n.sideBarOpened,children:[t(ti,{children:[t(m,{sx:{width:"100%"},children:[e(u,{color:"primary",sx:{width:"100%",textAlign:"center",fontSize:18,fontWeight:"bold"},children:"System Content"}),t(m,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1},children:[e(u,{sx:{fontSize:12},color:"textDisabled",children:i.appName}),t(u,{sx:{fontSize:12},color:"textDisabled",children:["V.",i.appVersion]})]})]}),e(Te,{onClick:()=>{d(Mt.toggleSideBarState())},children:"ltr"===a.direction?e(ae,{icon:"angle-left"}):e(ae,{icon:"angle-right"})})]}),e(Ee,{}),e(ui,{})]})},mi=we({key:"muirtl",stylisPlugins:[We,Be]}),Ii=we({key:"mui"}),fi=i=>{const[o,r]=j(!1),{t:a}=_e();return{ConfirmationWindow:()=>t(I,{open:o,children:[e(f,{children:i.title}),e(N,{children:e(R,{children:i.body})}),t(L,{children:[e(y,{variant:"contained",color:"primary",onClick:()=>{r(!1)},children:a("NO_LABEL")}),e(y,{variant:"contained",color:"error",onClick:()=>{i.onConfirmationCallBk(),r(!1)},autoFocus:!0,children:a("YES_LABEL")})]})]}),open:o,setOpen:r}},Ni=o=>{const{t:r}=_e(),a=ri(),{ConfirmationWindow:n,setOpen:d}=fi({body:r(o?.confirmationMessage||"ACTION_CONFIRMATION"),title:r("CONFIRMATION"),onConfirmationCallBk:async()=>{await(o?.actionFn(o.recordsToProcessActionOn,o.recordIdsToProcessActionOn)),o?.reloadData&&o.reloadData()}});let l=!0;if(o.authority&&(l=a.isUserAuthorized(o.authority)),l)return t(i,{children:[e(n,{}),t(y,{onClick:async()=>{if(o?.recordsToProcessActionOn&&o?.recordsToProcessActionOn.length>0){if(o?.preActionValidation)for(const e of o.recordsToProcessActionOn)if(!o.preActionValidation(e))return;!0===o?.isConfirmationRequired?d(!0):(await o.actionFn(o.recordsToProcessActionOn,o.recordIdsToProcessActionOn),o?.reloadData&&o.reloadData())}else ne.error(r("AT_LEAST_ONE_RECORD_SELECTED_MESSAGE"))},variant:o?.label?"outlined":o?.formActionProps?.actionButtonVariant?o.formActionProps.actionButtonVariant:"text",size:"small",color:o?.formActionProps?.actionButtonColor||"primary",children:[o?.icon?e(ae,{style:{marginRight:5,marginLeft:5},icon:o.icon}):e(i,{}),o?.label?r(o.label):e(i,{})]})]})},Ri="YYYY-MM-DD",Li="YYYY-MM-DD HH:mm:ss",yi=t=>{const{t:o}=_e();return e(tt,{dateAdapter:rt,children:e(it,{value:null!=t.value&&void 0!==t.value&&""!==t.value?et(t.value,t?.format||Ri):null,sx:t.sx,label:o(t.label),format:t?.format||Ri,disabled:t.disabled,onChange:e=>{let i=null;null!=e&&e.isValid()&&(i=e.format(t?.format||Ri)),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(i,{children:o(t.errorMessage)}):e(i,{})}}})})},Di=t=>{const{t:o}=_e();return e(tt,{dateAdapter:rt,children:e(ot,{value:null!=t.value&&void 0!==t.value&&""!==t.value?et(t.value,t?.format||Li):null,label:o(t.label),sx:t.sx,format:t?.format||Li,disabled:t.disabled,onChange:e=>{let i=null;null!=e&&e.isValid()&&(i=e.format(t?.format||Li)),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(i,{children:o(t.errorMessage)}):e(i,{})}}})})},Ci=t=>{const i=r((e=>e.AppLayout)),{t:o}=_e();return e(D,{sx:t.sx,value:(e=>{for(let i of t.options)if(i[t.valueField]==e)return i;return null})(t.value),options:t.options,disabled:t.disabled,onChange:(e,i)=>{if(void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack)if(null!=i){let e=i[t.valueField];t.onChangeCallBack(e,i)}else t.onChangeCallBack(null,null)},clearOnBlur:!0,handleHomeEndKeys:!0,getOptionLabel:e=>null!=e?o(e[t.displayField]):"",renderOption:(i,r)=>e("li",{...i,children:null!=r?o(r[t.displayField]):""}),slots:{popper:t=>e(U,{...t,style:{...t.style,direction:i.appDirection}})},renderInput:i=>e(C,{...i,required:t.required||!1,variant:"outlined",InputLabelProps:{shrink:!0},label:o(t.label),error:null!=t.errorMessage&&void 0!==t.errorMessage,helperText:null!=t.errorMessage&&void 0!==t.errorMessage?o(t.errorMessage):""})})},Ui=t=>{const{t:i}=_e();return e(M,{sx:t.sx,disabled:t.disabled||!1,required:t.required||!1,control:e(h,{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)})},Mi=t=>({...t,type:"string",renderEditCell:t=>e(Di,{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=et(e).format(Li)),o},valueFormatter:(e,t,i)=>t[i.field]}),hi=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("div",{children:null!=i?i[t.colDef.displayField]:t.value})},renderEditCell:i=>e(Ci,{...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+""})}})}),Pi=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(ae,{icon:"check",color:"green"}):e(ae,{icon:"xmark",color:"red"})},renderEditCell:i=>e(Ui,{...i,checkedValue:t?.checkedValue||"true",unCheckedValue:t?.unCheckedValue||"false",onChangeCallBack:e=>{i.api.setEditCellValue({id:i.id,field:i.field,value:e+""})}})}),bi=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(...bi(i));return t},Si=e=>{const t=[];for(const i of e)t.push(...bi(i));return t},gi=e=>{const t={};for(const i of e)if(i?.fieldName){const e=i.fieldName;"number"===i.fieldType?t[e]=!0===i?.required?at.number({required_error:"This field is required",invalid_type_error:"This field must be a number"}):at.number().optional().nullable():t[e]=!0===i?.required?at.string({message:"This field is required"}).min(1,"This field is required"):at.string().optional().nullable()}return t},vi=T(Fe)({display:"grid",alignItems:"center"}),xi=T(Ge)((({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"])}))),Bi=T(C)((({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"])}))),Wi=o=>{const{t:r}=_e(),a=ri(),n=!o?.templateProps?.editAction?.authority||a.isUserAuthorized(o.templateProps.editAction.authority),d=((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}})(o?.templateProps?.rowSelectionModel||{ids:new Set,type:"include"},o?.templateProps?.data||[],o?.templateProps?.keyColumnName||"id");return t(ke,{children:[n&&"none"!=o?.templateProps?.editMode?.editMode?t(y,{onClick:o?.handleCreateNewRecord,children:[e(ae,{icon:"add",style:{marginRight:5,marginLeft:5}}),r("ADD_BTN_LABEL")]}):e(i,{}),o?.templateProps?.rowActions?o.templateProps.rowActions.map((t=>!0===t?.gridActionProps?.multiRecord?e(Ni,{...t,reloadData:async()=>{o.templateProps.apiActions.reloadData(o?.templateProps?.gridLoadParametersValues)},recordIdsToProcessActionOn:d.selectedRecordIds,recordsToProcessActionOn:d.selectedRecords}):e(i,{}))):e(i,{}),e(m,{sx:{flex:1,mx:.5},children:o?.templateProps?.tBar}),e(P,{title:"Columns",children:e(Ye,{render:e(Ge,{}),children:e(qe,{fontSize:"small"})})}),e(P,{title:"Filters",children:e(Ke,{render:(t,i)=>e(Ge,{...t,color:"default",children:e(b,{badgeContent:i.filterCount,color:"primary",variant:"dot",children:e(Ve,{fontSize:"small"})})})})}),o?.templateProps?.gridStateKey?e(P,{title:r("RESET_GRID_STATE"),children:e(c,{onClick:o?.clearGridState,children:e(ae,{icon:"eraser"})})}):e(i,{}),e(S,{orientation:"vertical",variant:"middle",flexItem:!0,sx:{mx:.5}}),e(P,{title:r("EXPORT_EXECL_LABEL"),children:e(He,{render:e(g,{}),children:e(ae,{icon:"file-excel",color:"green"})})}),t(vi,{children:[e(Qe,{render:(t,i)=>e(P,{title:r("SEARCH_BTN_LABEL"),enterDelay:0,children:e(xi,{...t,ownerState:{expanded:i.expanded},color:"default","aria-disabled":i.expanded,children:e(ae,{icon:"search"})})})}),e(ze,{render:({ref:t,...i},o)=>e(Bi,{...i,ownerState:{expanded:o.expanded},inputRef:t,"aria-label":"Search",placeholder:`${r("SEARCH_BTN_LABEL")}...`,size:"small",slotProps:{input:{startAdornment:e(v,{position:"start",children:e(ae,{icon:"search"})}),endAdornment:o.value?e(v,{position:"end",children:e(Ze,{edge:"end",size:"small","aria-label":"Clear search",children:e(ae,{icon:"xmark"})})}):null,...i.slotProps?.input},...i.slotProps}})})]}),e(c,{onClick:()=>{o.templateProps.apiActions.reloadData(o?.templateProps?.gridLoadParametersValues)},children:e(ae,{icon:"refresh"})})]})};function wi(e){return/^\d+$/.test(e)}function Fi(e){return"number"==typeof e&&!isNaN(e)}function Gi(e){return"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e))}function ki(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}const Yi=o=>{const{t:r}=_e(),a=ri(),{ConfirmationWindow:n,setOpen:d}=fi({body:r(o?.confirmationMessage||"ACTION_CONFIRMATION"),title:r("CONFIRMATION"),onConfirmationCallBk:async()=>{await(o?.actionFn(o.record)),o?.reloadData&&o.reloadData()}});let l=!0;o.authority&&(l=a.isUserAuthorized(o.authority));let s={};o?.getActionIconStyleForRecord&&(s=o.getActionIconStyleForRecord(o.record));let p=!0;o?.isActionVisibleForRecord&&(p=o?.isActionVisibleForRecord(o.record));let _=!1;if(o?.isActionDisabledForRecord&&(_=o.isActionDisabledForRecord(o.record)),l&&p)return t(i,{children:[e(n,{}),e($e,{disabled:_,icon:e(P,{title:o?.label?r(o.label):"",children:e(ae,{icon:o.icon,style:{...s,color:_?"gray":null!=s?.color?s.color:void 0}})}),showInMenu:o?.gridActionProps?.showInMenu||!1,label:"",className:"textPrimary",color:"inherit",onClick:async()=>{if(!_){if(o?.preActionValidation&&!o.preActionValidation(o.record))return;!0===o?.isConfirmationRequired?d(!0):(await o.actionFn(o.record),o?.reloadData&&o.reloadData())}}})]})};function qi(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 Ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vi,Hi={exports:{}},Qi={exports:{}},zi={};var Zi,$i,ji,Xi,Ji,eo,to,io,oo,ro,ao,no,lo,so,po,_o={};
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|
|
@@ -6,12 +6,12 @@ import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useDispat
|
|
|
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 Eo(){return $i||($i=1,"production"===process.env.NODE_ENV?Qi.exports=function(){if(Vi)return zi;Vi=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,d=e?Symbol.for("react.context"):60110,l=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,T=e?Symbol.for("react.memo"):60115,c=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,u=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function I(e){if("object"==typeof e&&null!==e){var E=e.$$typeof;switch(E){case t:switch(e=e.type){case l:case s:case o:case a:case r:case _:return e;default:switch(e=e&&e.$$typeof){case d:case p:case c:case T:case n:return e;default:return E}}case i:return E}}}function f(e){return I(e)===s}return zi.AsyncMode=l,zi.ConcurrentMode=s,zi.ContextConsumer=d,zi.ContextProvider=n,zi.Element=t,zi.ForwardRef=p,zi.Fragment=o,zi.Lazy=c,zi.Memo=T,zi.Portal=i,zi.Profiler=a,zi.StrictMode=r,zi.Suspense=_,zi.isAsyncMode=function(e){return f(e)||I(e)===l},zi.isConcurrentMode=f,zi.isContextConsumer=function(e){return I(e)===d},zi.isContextProvider=function(e){return I(e)===n},zi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zi.isForwardRef=function(e){return I(e)===p},zi.isFragment=function(e){return I(e)===o},zi.isLazy=function(e){return I(e)===c},zi.isMemo=function(e){return I(e)===T},zi.isPortal=function(e){return I(e)===i},zi.isProfiler=function(e){return I(e)===a},zi.isStrictMode=function(e){return I(e)===r},zi.isSuspense=function(e){return I(e)===_},zi.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===c||e.$$typeof===T||e.$$typeof===n||e.$$typeof===d||e.$$typeof===p||e.$$typeof===u||e.$$typeof===O||e.$$typeof===m||e.$$typeof===A)},zi.typeOf=I,zi}():Qi.exports=(Zi||(Zi=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,d=e?Symbol.for("react.context"):60110,l=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,T=e?Symbol.for("react.memo"):60115,c=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,u=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function I(e){if("object"==typeof e&&null!==e){var E=e.$$typeof;switch(E){case t:var A=e.type;switch(A){case l:case s:case o:case a:case r:case _:return A;default:var u=A&&A.$$typeof;switch(u){case d:case p:case c:case T:case n:return u;default:return E}}case i:return E}}}var f=l,N=s,R=d,L=n,y=t,D=p,C=o,U=c,M=T,h=i,P=a,b=r,S=_,g=!1;function v(e){return I(e)===s}_o.AsyncMode=f,_o.ConcurrentMode=N,_o.ContextConsumer=R,_o.ContextProvider=L,_o.Element=y,_o.ForwardRef=D,_o.Fragment=C,_o.Lazy=U,_o.Memo=M,_o.Portal=h,_o.Profiler=P,_o.StrictMode=b,_o.Suspense=S,_o.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.")),v(e)||I(e)===l},_o.isConcurrentMode=v,_o.isContextConsumer=function(e){return I(e)===d},_o.isContextProvider=function(e){return I(e)===n},_o.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_o.isForwardRef=function(e){return I(e)===p},_o.isFragment=function(e){return I(e)===o},_o.isLazy=function(e){return I(e)===c},_o.isMemo=function(e){return I(e)===T},_o.isPortal=function(e){return I(e)===i},_o.isProfiler=function(e){return I(e)===a},_o.isStrictMode=function(e){return I(e)===r},_o.isSuspense=function(e){return I(e)===_},_o.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===c||e.$$typeof===T||e.$$typeof===n||e.$$typeof===d||e.$$typeof===p||e.$$typeof===u||e.$$typeof===O||e.$$typeof===m||e.$$typeof===A)},_o.typeOf=I}()),_o)),Qi.exports}
|
|
10
10
|
/*
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
13
13
|
@license MIT
|
|
14
|
-
*/function Qi(){if(gi)return bi;gi=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;return bi=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,d=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),l=1;l<arguments.length;l++){for(var s in a=Object(arguments[l]))t.call(a,s)&&(d[s]=a[s]);if(e){n=e(a);for(var p=0;p<n.length;p++)i.call(a,n[p])&&(d[n[p]]=a[n[p]])}}return d},bi}function Zi(){if(Bi)return vi;Bi=1;return vi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function zi(){return Wi?xi:(Wi=1,xi=Function.call.bind(Object.prototype.hasOwnProperty))}function $i(){if(Fi)return wi;Fi=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Zi(),i={},o=zi();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,d,l){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((d||"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,d,n,null,t)}catch(e){p=e}if(!p||p instanceof Error||e((d||"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=l?l():"";e("Failed "+n+" type: "+p.message+(null!=E?E:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(i={})},wi=r}function ji(){if(ki)return Gi;ki=1;var e=Hi(),t=Qi(),i=Zi(),o=zi(),r=$i(),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){}}),Gi=function(d,l){var s="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",_={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:A(n),arrayOf:function(e){return A((function(t,o,r,a,n){if("function"!=typeof e)return new T("Property `"+n+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var d=t[o];if(!Array.isArray(d))return new T("Invalid "+a+" `"+n+"` of type `"+u(d)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<d.length;l++){var s=e(d,l,r,a,n+"["+l+"]",i);if(s instanceof Error)return s}return null}))},element:A((function(e,t,i,o,r){var a=e[t];return d(a)?null:new T("Invalid "+o+" `"+r+"` of type `"+u(a)+"` supplied to `"+i+"`, expected a single ReactElement.")})),elementType:A((function(t,i,o,r,a){var n=t[i];return e.isValidElementType(n)?null:new T("Invalid "+r+" `"+a+"` of type `"+u(n)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return A((function(t,i,o,r,a){if(!(t[i]instanceof e)){var n=e.name||p;return new T("Invalid "+r+" `"+a+"` of type `"+(((d=t[i]).constructor&&d.constructor.name?d.constructor.name:p)+"` supplied to `")+o+"`, expected instance of `"+n+"`.")}var d;return null}))},node:A((function(e,t,i,o,r){return I(e[t])?null:new T("Invalid "+o+" `"+r+"` supplied to `"+i+"`, expected a ReactNode.")})),objectOf:function(e){return A((function(t,r,a,n,d){if("function"!=typeof e)return new T("Property `"+d+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[r],s=u(l);if("object"!==s)return new T("Invalid "+n+" `"+d+"` of type `"+s+"` supplied to `"+a+"`, expected an object.");for(var p in l)if(o(l,p)){var _=e(l,p,a,n,d+"."+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 A((function(t,i,o,r,a){for(var n=t[i],d=0;d<e.length;d++)if(E(n,e[d]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===m(t)?String(t):t}));return new T("Invalid "+r+" `"+a+"` of value `"+String(n)+"` supplied to `"+o+"`, expected one of "+l+".")}))},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 A((function(t,r,a,n,d){for(var l=[],s=0;s<e.length;s++){var p=(0,e[s])(t,r,a,n,d,i);if(null==p)return null;p.data&&o(p.data,"expectedType")&&l.push(p.data.expectedType)}return new T("Invalid "+n+" `"+d+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return A((function(t,o,r,a,n){var d=t[o],l=u(d);if("object"!==l)return new T("Invalid "+a+" `"+n+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var p=e[s];if("function"!=typeof p)return O(r,a,n,s,m(p));var _=p(d,s,r,a,n+"."+s,i);if(_)return _}return null}))},exact:function(e){return A((function(r,a,n,d,l){var s=r[a],p=u(s);if("object"!==p)return new T("Invalid "+d+" `"+l+"` of type `"+p+"` supplied to `"+n+"`, expected `object`.");var _=t({},r[a],e);for(var E in _){var A=e[E];if(o(e,E)&&"function"!=typeof A)return O(n,d,l,E,m(A));if(!A)return new T("Invalid "+d+" `"+l+"` key `"+E+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(r[a],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var c=A(s,E,n,d,l+"."+E,i);if(c)return c}return null}))}};function E(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function T(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function A(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function r(r,n,d,s,_,E,A){if(s=s||p,E=E||d,A!==i){if(l){var c=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 c.name="Invariant Violation",c}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var O=s+":"+d;!t[O]&&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[O]=!0,o++)}}return null==n[d]?r?null===n[d]?new T("The "+_+" `"+E+"` is marked as required in `"+s+"`, but its value is `null`."):new T("The "+_+" `"+E+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(n,d,s,_,E)}var n=r.bind(null,!1);return n.isRequired=r.bind(null,!0),n}function c(e){return A((function(t,i,o,r,a,n){var d=t[i];return u(d)!==e?new T("Invalid "+r+" `"+a+"` of type `"+m(d)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function O(e,t,i,o,r){return new T((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||d(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 u(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=u(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 T.prototype=Error.prototype,_.checkPropTypes=r,_.resetWarningCache=r.resetWarningCache,_.PropTypes=_,_},Gi}function Xi(){if(qi)return Yi;qi=1;var e=Zi();function t(){}function i(){}return i.resetWarningCache=t,Yi=function(){function o(t,i,o,r,a,n){if(n!==e){var d=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 d.name="Invariant Violation",d}}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 Ji(){if(Ki)return Ui.exports;if(Ki=1,"production"!==process.env.NODE_ENV){var e=Hi();Ui.exports=ji()(e.isElement,true)}else Ui.exports=Xi()();return Ui.exports}var eo=Di(Ji());var to,io={exports:{}},oo={};function ro(){if(to)return oo;to=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"),d=Symbol.for("react.forward_ref"),l=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"),T=Symbol.for("react.client.reference");function A(T){if("object"==typeof T&&null!==T){var A=T.$$typeof;switch(A){case e:switch(T=T.type){case i:case r:case o:case l:case s:case E:return T;default:switch(T=T&&T.$$typeof){case n:case d:case _:case p:case a:return T;default:return A}}case t:return A}}}return oo.ContextConsumer=a,oo.ContextProvider=n,oo.Element=e,oo.ForwardRef=d,oo.Fragment=i,oo.Lazy=_,oo.Memo=p,oo.Portal=t,oo.Profiler=r,oo.StrictMode=o,oo.Suspense=l,oo.SuspenseList=s,oo.isContextConsumer=function(e){return A(e)===a},oo.isContextProvider=function(e){return A(e)===n},oo.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},oo.isForwardRef=function(e){return A(e)===d},oo.isFragment=function(e){return A(e)===i},oo.isLazy=function(e){return A(e)===_},oo.isMemo=function(e){return A(e)===p},oo.isPortal=function(e){return A(e)===t},oo.isProfiler=function(e){return A(e)===r},oo.isStrictMode=function(e){return A(e)===o},oo.isSuspense=function(e){return A(e)===l},oo.isSuspenseList=function(e){return A(e)===s},oo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===r||e===o||e===l||e===s||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===p||e.$$typeof===n||e.$$typeof===a||e.$$typeof===d||e.$$typeof===T||void 0!==e.getModuleId)},oo.typeOf=A,oo}var ao,no,lo={};
|
|
14
|
+
*/function To(){if(Xi)return ji;Xi=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;return ji=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,d=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),l=1;l<arguments.length;l++){for(var s in a=Object(arguments[l]))t.call(a,s)&&(d[s]=a[s]);if(e){n=e(a);for(var p=0;p<n.length;p++)i.call(a,n[p])&&(d[n[p]]=a[n[p]])}}return d},ji}function co(){if(eo)return Ji;eo=1;return Ji="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ao(){return io?to:(io=1,to=Function.call.bind(Object.prototype.hasOwnProperty))}function uo(){if(ro)return oo;ro=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=co(),i={},o=Ao();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,d,l){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((d||"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,d,n,null,t)}catch(e){p=e}if(!p||p instanceof Error||e((d||"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=l?l():"";e("Failed "+n+" type: "+p.message+(null!=E?E:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(i={})},oo=r}function Oo(){if(no)return ao;no=1;var e=Eo(),t=To(),i=co(),o=Ao(),r=uo(),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){}}),ao=function(d,l){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:c(n),arrayOf:function(e){return c((function(t,o,r,a,n){if("function"!=typeof e)return new T("Property `"+n+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var d=t[o];if(!Array.isArray(d))return new T("Invalid "+a+" `"+n+"` of type `"+m(d)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<d.length;l++){var s=e(d,l,r,a,n+"["+l+"]",i);if(s instanceof Error)return s}return null}))},element:c((function(e,t,i,o,r){var a=e[t];return d(a)?null:new T("Invalid "+o+" `"+r+"` of type `"+m(a)+"` supplied to `"+i+"`, expected a single ReactElement.")})),elementType:c((function(t,i,o,r,a){var n=t[i];return e.isValidElementType(n)?null:new T("Invalid "+r+" `"+a+"` of type `"+m(n)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return c((function(t,i,o,r,a){if(!(t[i]instanceof e)){var n=e.name||p;return new T("Invalid "+r+" `"+a+"` of type `"+(((d=t[i]).constructor&&d.constructor.name?d.constructor.name:p)+"` supplied to `")+o+"`, expected instance of `"+n+"`.")}var d;return null}))},node:c((function(e,t,i,o,r){return O(e[t])?null:new T("Invalid "+o+" `"+r+"` supplied to `"+i+"`, expected a ReactNode.")})),objectOf:function(e){return c((function(t,r,a,n,d){if("function"!=typeof e)return new T("Property `"+d+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[r],s=m(l);if("object"!==s)return new T("Invalid "+n+" `"+d+"` of type `"+s+"` supplied to `"+a+"`, expected an object.");for(var p in l)if(o(l,p)){var _=e(l,p,a,n,d+"."+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 c((function(t,i,o,r,a){for(var n=t[i],d=0;d<e.length;d++)if(E(n,e[d]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===I(t)?String(t):t}));return new T("Invalid "+r+" `"+a+"` of value `"+String(n)+"` supplied to `"+o+"`, expected one of "+l+".")}))},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 c((function(t,r,a,n,d){for(var l=[],s=0;s<e.length;s++){var p=(0,e[s])(t,r,a,n,d,i);if(null==p)return null;p.data&&o(p.data,"expectedType")&&l.push(p.data.expectedType)}return new T("Invalid "+n+" `"+d+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return c((function(t,o,r,a,n){var d=t[o],l=m(d);if("object"!==l)return new T("Invalid "+a+" `"+n+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var p=e[s];if("function"!=typeof p)return u(r,a,n,s,I(p));var _=p(d,s,r,a,n+"."+s,i);if(_)return _}return null}))},exact:function(e){return c((function(r,a,n,d,l){var s=r[a],p=m(s);if("object"!==p)return new T("Invalid "+d+" `"+l+"` of type `"+p+"` supplied to `"+n+"`, expected `object`.");var _=t({},r[a],e);for(var E in _){var c=e[E];if(o(e,E)&&"function"!=typeof c)return u(n,d,l,E,I(c));if(!c)return new T("Invalid "+d+" `"+l+"` key `"+E+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(r[a],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var A=c(s,E,n,d,l+"."+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 T(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function c(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function r(r,n,d,s,_,E,c){if(s=s||p,E=E||d,c!==i){if(l){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+":"+d;!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[d]?r?null===n[d]?new T("The "+_+" `"+E+"` is marked as required in `"+s+"`, but its value is `null`."):new T("The "+_+" `"+E+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(n,d,s,_,E)}var n=r.bind(null,!1);return n.isRequired=r.bind(null,!0),n}function A(e){return c((function(t,i,o,r,a,n){var d=t[i];return m(d)!==e?new T("Invalid "+r+" `"+a+"` of type `"+I(d)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function u(e,t,i,o,r){return new T((e||"React class")+": "+t+" type `"+i+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function O(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(O);if(null===e||d(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(!O(i.value))return!1}else for(;!(i=o.next()).done;){var r=i.value;if(r&&!O(r[1]))return!1}return!0;default:return!1}}function m(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 I(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=I(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return T.prototype=Error.prototype,_.checkPropTypes=r,_.resetWarningCache=r.resetWarningCache,_.PropTypes=_,_},ao}function mo(){if(so)return lo;so=1;var e=co();function t(){}function i(){}return i.resetWarningCache=t,lo=function(){function o(t,i,o,r,a,n){if(n!==e){var d=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 d.name="Invariant Violation",d}}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 Io(){if(po)return Hi.exports;if(po=1,"production"!==process.env.NODE_ENV){var e=Eo();Hi.exports=Oo()(e.isElement,true)}else Hi.exports=mo()();return Hi.exports}var fo=Ki(Io());var No,Ro={exports:{}},Lo={};function yo(){if(No)return Lo;No=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"),d=Symbol.for("react.forward_ref"),l=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"),T=Symbol.for("react.client.reference");function c(T){if("object"==typeof T&&null!==T){var c=T.$$typeof;switch(c){case e:switch(T=T.type){case i:case r:case o:case l:case s:case E:return T;default:switch(T=T&&T.$$typeof){case n:case d:case _:case p:case a:return T;default:return c}}case t:return c}}}return Lo.ContextConsumer=a,Lo.ContextProvider=n,Lo.Element=e,Lo.ForwardRef=d,Lo.Fragment=i,Lo.Lazy=_,Lo.Memo=p,Lo.Portal=t,Lo.Profiler=r,Lo.StrictMode=o,Lo.Suspense=l,Lo.SuspenseList=s,Lo.isContextConsumer=function(e){return c(e)===a},Lo.isContextProvider=function(e){return c(e)===n},Lo.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Lo.isForwardRef=function(e){return c(e)===d},Lo.isFragment=function(e){return c(e)===i},Lo.isLazy=function(e){return c(e)===_},Lo.isMemo=function(e){return c(e)===p},Lo.isPortal=function(e){return c(e)===t},Lo.isProfiler=function(e){return c(e)===r},Lo.isStrictMode=function(e){return c(e)===o},Lo.isSuspense=function(e){return c(e)===l},Lo.isSuspenseList=function(e){return c(e)===s},Lo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===r||e===o||e===l||e===s||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===p||e.$$typeof===n||e.$$typeof===a||e.$$typeof===d||e.$$typeof===T||void 0!==e.getModuleId)},Lo.typeOf=c,Lo}var Do,Co,Uo={};
|
|
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 so(){return ao||(ao=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var A=e.$$typeof;switch(A){case t:switch(e=e.type){case o:case a:case r:case s:case p:case T:return e;default:switch(e=e&&e.$$typeof){case d:case l:case E:case _:case n:return e;default:return A}}case i:return A}}}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"),d=Symbol.for("react.context"),l=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"),T=Symbol.for("react.view_transition"),A=Symbol.for("react.client.reference");lo.ContextConsumer=n,lo.ContextProvider=d,lo.Element=t,lo.ForwardRef=l,lo.Fragment=o,lo.Lazy=E,lo.Memo=_,lo.Portal=i,lo.Profiler=a,lo.StrictMode=r,lo.Suspense=s,lo.SuspenseList=p,lo.isContextConsumer=function(t){return e(t)===n},lo.isContextProvider=function(t){return e(t)===d},lo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},lo.isForwardRef=function(t){return e(t)===l},lo.isFragment=function(t){return e(t)===o},lo.isLazy=function(t){return e(t)===E},lo.isMemo=function(t){return e(t)===_},lo.isPortal=function(t){return e(t)===i},lo.isProfiler=function(t){return e(t)===a},lo.isStrictMode=function(t){return e(t)===r},lo.isSuspense=function(t){return e(t)===s},lo.isSuspenseList=function(t){return e(t)===p},lo.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===d||e.$$typeof===n||e.$$typeof===l||e.$$typeof===A||void 0!==e.getModuleId)},lo.typeOf=e}()),lo}function po(){return no||(no=1,"production"===process.env.NODE_ENV?io.exports=ro():io.exports=so()),io.exports}var _o=po();function Eo(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 To(e){if(z.isValidElement(e)||_o.isValidElementType(e)||!Eo(e))return e;const t={};return Object.keys(e).forEach((i=>{t[i]=To(e[i])})),t}function Ao(e,t,i={clone:!0}){const o=i.clone?{...e}:e;return Eo(e)&&Eo(t)&&Object.keys(t).forEach((r=>{z.isValidElement(t[r])||_o.isValidElementType(t[r])?o[r]=t[r]:Eo(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Eo(e[r])?o[r]=Ao(e[r],t[r],i):i.clone?o[r]=Eo(t[r])?To(t[r]):t[r]:o[r]=t[r]})),o}function co(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 d(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${i})`}function l(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:d,down:l,between:s,only:function(e){return n.indexOf(e)+1<n.length?s(e,n[n.indexOf(e)+1]):d(e)},not:function(e){const t=n.indexOf(e);return 0===t?d(n[1]):t===n.length-1?l(n[t]):s(e,n[n.indexOf(e)+1]).replace("@media","@media not all and")},unit:i,...r}}const Oo={borderRadius:4},Io="production"!==process.env.NODE_ENV?eo.oneOfType([eo.number,eo.string,eo.object,eo.array]):{};function uo(e,t){return t?Ao(e,t,{clone:!1}):e}const mo={xs:0,sm:600,md:900,lg:1200,xl:1536},fo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mo[e]}px)`},No={containerQueries:e=>({up:t=>{let i="number"==typeof t?t:mo[t]||t;return"number"==typeof i&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function Ro(e,t,i){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||fo;return t.reduce(((o,r,a)=>(o[e.up(e.keys[a])]=i(t[a]),o)),{})}if("object"==typeof t){const e=o.breakpoints||fo;return Object.keys(t).reduce(((r,a)=>{if(n=e.keys,"@"===(d=a)||d.startsWith("@")&&(n.some((e=>d.startsWith(`@${e}`)))||d.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\`.`:yi(18,`(${t})`));return null}const[,o,r]=i,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(a)}(o.containerQueries?o:No,a);e&&(r[e]=i(t[a],a))}else if(Object.keys(e.values||mo).includes(a)){r[e.up(a)]=i(t[a],a)}else{const e=a;r[e]=t[e]}var n,d;return r}),{})}return i(t)}function Lo(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":yi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function yo(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 Do(e,t,i,o=i){let r;return r="function"==typeof e?e(i):Array.isArray(e)?e[i]||o:yo(e,i)||o,t&&(r=t(r,o,e)),r}function Co(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=yo(e.theme,o)||{};return Ro(e,a,(e=>{let o=Do(n,r,e);return e===o&&"string"==typeof e&&(o=Do(n,r,`${t}${"default"===e?"":Lo(e)}`,e)),!1===i?o:{[i]:o}}))};return a.propTypes="production"!==process.env.NODE_ENV?{[t]:Io}:{},a.filterProps=[t],a}const Uo={m:"margin",p:"padding"},Mo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ho={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Po=function(e){const t={};return i=>(void 0===t[i]&&(t[i]=e(i)),t[i])}((e=>{if(e.length>2){if(!ho[e])return[e];e=ho[e]}const[t,i]=e.split(""),o=Uo[t],r=Mo[i]||"";return Array.isArray(r)?r.map((e=>o+e)):[o+r]})),So=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],go=[...So,...bo];function vo(e,t,i,o){const r=yo(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 Bo(e){return vo(e,"spacing",8,"spacing")}function xo(e,t){return"string"==typeof t||null==t?t:e(t)}function Wo(e,t,i,o){if(!t.includes(i))return null;const r=function(e,t){return i=>e.reduce(((e,o)=>(e[o]=xo(t,i),e)),{})}(Po(i),o);return Ro(e,e[i],r)}function wo(e,t){const i=Bo(e.theme);return Object.keys(e).map((o=>Wo(e,t,o,i))).reduce(uo,{})}function Fo(e){return wo(e,So)}function Go(e){return wo(e,bo)}function ko(...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]?uo(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 Yo(e){return"number"!=typeof e?e:`${e}px solid`}function qo(e,t){return Co({prop:e,themeKey:"borders",transform:t})}Fo.propTypes="production"!==process.env.NODE_ENV?So.reduce(((e,t)=>(e[t]=Io,e)),{}):{},Fo.filterProps=So,Go.propTypes="production"!==process.env.NODE_ENV?bo.reduce(((e,t)=>(e[t]=Io,e)),{}):{},Go.filterProps=bo,"production"===process.env.NODE_ENV||go.reduce(((e,t)=>(e[t]=Io,e)),{});const Ko=qo("border",Yo),Vo=qo("borderTop",Yo),Ho=qo("borderRight",Yo),Qo=qo("borderBottom",Yo),Zo=qo("borderLeft",Yo),zo=qo("borderColor"),$o=qo("borderTopColor"),jo=qo("borderRightColor"),Xo=qo("borderBottomColor"),Jo=qo("borderLeftColor"),er=qo("outline",Yo),tr=qo("outlineColor"),ir=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=vo(e.theme,"shape.borderRadius",4,"borderRadius"),i=e=>({borderRadius:xo(t,e)});return Ro(e,e.borderRadius,i)}return null};ir.propTypes="production"!==process.env.NODE_ENV?{borderRadius:Io}:{},ir.filterProps=["borderRadius"],ko(Ko,Vo,Ho,Qo,Zo,zo,$o,jo,Xo,Jo,ir,er,tr);const or=e=>{if(void 0!==e.gap&&null!==e.gap){const t=vo(e.theme,"spacing",8,"gap"),i=e=>({gap:xo(t,e)});return Ro(e,e.gap,i)}return null};or.propTypes="production"!==process.env.NODE_ENV?{gap:Io}:{},or.filterProps=["gap"];const rr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=vo(e.theme,"spacing",8,"columnGap"),i=e=>({columnGap:xo(t,e)});return Ro(e,e.columnGap,i)}return null};rr.propTypes="production"!==process.env.NODE_ENV?{columnGap:Io}:{},rr.filterProps=["columnGap"];const ar=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=vo(e.theme,"spacing",8,"rowGap"),i=e=>({rowGap:xo(t,e)});return Ro(e,e.rowGap,i)}return null};ar.propTypes="production"!==process.env.NODE_ENV?{rowGap:Io}:{},ar.filterProps=["rowGap"];function nr(e,t){return"grey"===t?t:e}ko(or,rr,ar,Co({prop:"gridColumn"}),Co({prop:"gridRow"}),Co({prop:"gridAutoFlow"}),Co({prop:"gridAutoColumns"}),Co({prop:"gridAutoRows"}),Co({prop:"gridTemplateColumns"}),Co({prop:"gridTemplateRows"}),Co({prop:"gridTemplateAreas"}),Co({prop:"gridArea"}));function dr(e){return e<=1&&0!==e?100*e+"%":e}ko(Co({prop:"color",themeKey:"palette",transform:nr}),Co({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nr}),Co({prop:"backgroundColor",themeKey:"palette",transform:nr}));const lr=Co({prop:"width",transform:dr}),sr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const i=e.theme?.breakpoints?.values?.[t]||mo[t];return i?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:dr(t)}};return Ro(e,e.maxWidth,t)}return null};sr.filterProps=["maxWidth"];const pr=Co({prop:"minWidth",transform:dr}),_r=Co({prop:"height",transform:dr}),Er=Co({prop:"maxHeight",transform:dr}),Tr=Co({prop:"minHeight",transform:dr});Co({prop:"size",cssProperty:"width",transform:dr}),Co({prop:"size",cssProperty:"height",transform:dr});ko(lr,sr,pr,_r,Er,Tr,Co({prop:"boxSizing"}));const Ar={border:{themeKey:"borders",transform:Yo},borderTop:{themeKey:"borders",transform:Yo},borderRight:{themeKey:"borders",transform:Yo},borderBottom:{themeKey:"borders",transform:Yo},borderLeft:{themeKey:"borders",transform:Yo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ir},color:{themeKey:"palette",transform:nr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nr},backgroundColor:{themeKey:"palette",transform:nr},p:{style:Go},pt:{style:Go},pr:{style:Go},pb:{style:Go},pl:{style:Go},px:{style:Go},py:{style:Go},padding:{style:Go},paddingTop:{style:Go},paddingRight:{style:Go},paddingBottom:{style:Go},paddingLeft:{style:Go},paddingX:{style:Go},paddingY:{style:Go},paddingInline:{style:Go},paddingInlineStart:{style:Go},paddingInlineEnd:{style:Go},paddingBlock:{style:Go},paddingBlockStart:{style:Go},paddingBlockEnd:{style:Go},m:{style:Fo},mt:{style:Fo},mr:{style:Fo},mb:{style:Fo},ml:{style:Fo},mx:{style:Fo},my:{style:Fo},margin:{style:Fo},marginTop:{style:Fo},marginRight:{style:Fo},marginBottom:{style:Fo},marginLeft:{style:Fo},marginX:{style:Fo},marginY:{style:Fo},marginInline:{style:Fo},marginInlineStart:{style:Fo},marginInlineEnd:{style:Fo},marginBlock:{style:Fo},marginBlockStart:{style:Fo},marginBlockEnd:{style:Fo},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:or},rowGap:{style:ar},columnGap:{style:rr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:dr},maxWidth:{style:sr},minWidth:{transform:dr},height:{transform:dr},maxHeight:{transform:dr},minHeight:{transform:dr},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 cr=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:d,transform:l,style:s}=a;if(null==t)return null;if("typography"===d&&"inherit"===t)return{[e]:t};const p=yo(i,d)||{};if(s)return s(r);return Ro(r,t,(t=>{let i=Do(p,l,t);return t===i&&"string"==typeof t&&(i=Do(p,l,`${e}${"default"===t?"":Lo(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??Ar;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),d=Object.keys(n);let l=n;return Object.keys(o).forEach((i=>{const n=(d=o[i],s=r,"function"==typeof d?d(s):d);var d,s;if(null!=n)if("object"==typeof n)if(a[i])l=uo(l,e(i,n,r,a));else{const e=Ro({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)?l=uo(l,e):l[i]=t({sx:n,theme:r})}else l=uo(l,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)}(d,l))}return Array.isArray(o)?o.map(n):n(o)}}();function Or(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 Ir(e=null){const t=z.useContext(H);return t&&(i=t,0!==Object.keys(i).length)?t:e;var i}cr.filterProps=["sx"];const ur=function(e={},...t){const{breakpoints:i={},palette:o={},spacing:r,shape:a={},...n}=e,d=co(i),l=function(e=8,t=Bo({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=Ao({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:l,shape:{...Oo,...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=Or,s=t.reduce(((e,t)=>Ao(e,t)),s),s.unstable_sxConfig={...Ar,...n?.unstable_sxConfig},s.unstable_sx=function(e){return cr({sx:e,theme:this})},s}();function mr(e){const{sx:t,...i}=e,{systemProps:o,otherProps:r}=(e=>{const t={systemProps:{},otherProps:{}},i=e?.theme?.unstable_sxConfig??Ar;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 Eo(i)?{...o,...i}:o}:{...o,...t},{...r,sx:a}}const fr=e=>e,Nr=(()=>{let e=fr;return{configure(t){e=t},generate:t=>e(t),reset(){e=fr}}})();const Rr={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 Lr=function(t={}){const{themeId:i,defaultTheme:o,defaultClassName:r="MuiBox-root",generateClassName:a}=t,n=
|
|
23
|
+
*/function Mo(){return Do||(Do=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var c=e.$$typeof;switch(c){case t:switch(e=e.type){case o:case a:case r:case s:case p:case T:return e;default:switch(e=e&&e.$$typeof){case d:case l:case E:case _:case n:return e;default:return c}}case i:return c}}}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"),d=Symbol.for("react.context"),l=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"),T=Symbol.for("react.view_transition"),c=Symbol.for("react.client.reference");Uo.ContextConsumer=n,Uo.ContextProvider=d,Uo.Element=t,Uo.ForwardRef=l,Uo.Fragment=o,Uo.Lazy=E,Uo.Memo=_,Uo.Portal=i,Uo.Profiler=a,Uo.StrictMode=r,Uo.Suspense=s,Uo.SuspenseList=p,Uo.isContextConsumer=function(t){return e(t)===n},Uo.isContextProvider=function(t){return e(t)===d},Uo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Uo.isForwardRef=function(t){return e(t)===l},Uo.isFragment=function(t){return e(t)===o},Uo.isLazy=function(t){return e(t)===E},Uo.isMemo=function(t){return e(t)===_},Uo.isPortal=function(t){return e(t)===i},Uo.isProfiler=function(t){return e(t)===a},Uo.isStrictMode=function(t){return e(t)===r},Uo.isSuspense=function(t){return e(t)===s},Uo.isSuspenseList=function(t){return e(t)===p},Uo.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===d||e.$$typeof===n||e.$$typeof===l||e.$$typeof===c||void 0!==e.getModuleId)},Uo.typeOf=e}()),Uo}function ho(){return Co||(Co=1,"production"===process.env.NODE_ENV?Ro.exports=yo():Ro.exports=Mo()),Ro.exports}var Po=ho();function bo(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 So(e){if(Z.isValidElement(e)||Po.isValidElementType(e)||!bo(e))return e;const t={};return Object.keys(e).forEach((i=>{t[i]=So(e[i])})),t}function go(e,t,i={clone:!0}){const o=i.clone?{...e}:e;return bo(e)&&bo(t)&&Object.keys(t).forEach((r=>{Z.isValidElement(t[r])||Po.isValidElementType(t[r])?o[r]=t[r]:bo(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&bo(e[r])?o[r]=go(e[r],t[r],i):i.clone?o[r]=bo(t[r])?So(t[r]):t[r]:o[r]=t[r]})),o}function vo(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 d(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${i})`}function l(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:d,down:l,between:s,only:function(e){return n.indexOf(e)+1<n.length?s(e,n[n.indexOf(e)+1]):d(e)},not:function(e){const t=n.indexOf(e);return 0===t?d(n[1]):t===n.length-1?l(n[t]):s(e,n[n.indexOf(e)+1]).replace("@media","@media not all and")},unit:i,...r}}const xo={borderRadius:4},Bo="production"!==process.env.NODE_ENV?fo.oneOfType([fo.number,fo.string,fo.object,fo.array]):{};function Wo(e,t){return t?go(e,t,{clone:!1}):e}const wo={xs:0,sm:600,md:900,lg:1200,xl:1536},Fo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${wo[e]}px)`},Go={containerQueries:e=>({up:t=>{let i="number"==typeof t?t:wo[t]||t;return"number"==typeof i&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function ko(e,t,i){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||Fo;return t.reduce(((o,r,a)=>(o[e.up(e.keys[a])]=i(t[a]),o)),{})}if("object"==typeof t){const e=o.breakpoints||Fo;return Object.keys(t).reduce(((r,a)=>{if(n=e.keys,"@"===(d=a)||d.startsWith("@")&&(n.some((e=>d.startsWith(`@${e}`)))||d.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\`.`:qi(18,`(${t})`));return null}const[,o,r]=i,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(a)}(o.containerQueries?o:Go,a);e&&(r[e]=i(t[a],a))}else if(Object.keys(e.values||wo).includes(a)){r[e.up(a)]=i(t[a],a)}else{const e=a;r[e]=t[e]}var n,d;return r}),{})}return i(t)}function Yo(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":qi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qo(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 Ko(e,t,i,o=i){let r;return r="function"==typeof e?e(i):Array.isArray(e)?e[i]||o:qo(e,i)||o,t&&(r=t(r,o,e)),r}function Vo(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=qo(e.theme,o)||{};return ko(e,a,(e=>{let o=Ko(n,r,e);return e===o&&"string"==typeof e&&(o=Ko(n,r,`${t}${"default"===e?"":Yo(e)}`,e)),!1===i?o:{[i]:o}}))};return a.propTypes="production"!==process.env.NODE_ENV?{[t]:Bo}:{},a.filterProps=[t],a}const Ho={m:"margin",p:"padding"},Qo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Zo=function(e){const t={};return i=>(void 0===t[i]&&(t[i]=e(i)),t[i])}((e=>{if(e.length>2){if(!zo[e])return[e];e=zo[e]}const[t,i]=e.split(""),o=Ho[t],r=Qo[i]||"";return Array.isArray(r)?r.map((e=>o+e)):[o+r]})),$o=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Xo=[...$o,...jo];function Jo(e,t,i,o){const r=qo(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 er(e){return Jo(e,"spacing",8,"spacing")}function tr(e,t){return"string"==typeof t||null==t?t:e(t)}function ir(e,t,i,o){if(!t.includes(i))return null;const r=function(e,t){return i=>e.reduce(((e,o)=>(e[o]=tr(t,i),e)),{})}(Zo(i),o);return ko(e,e[i],r)}function or(e,t){const i=er(e.theme);return Object.keys(e).map((o=>ir(e,t,o,i))).reduce(Wo,{})}function rr(e){return or(e,$o)}function ar(e){return or(e,jo)}function nr(...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]?Wo(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 dr(e){return"number"!=typeof e?e:`${e}px solid`}function lr(e,t){return Vo({prop:e,themeKey:"borders",transform:t})}rr.propTypes="production"!==process.env.NODE_ENV?$o.reduce(((e,t)=>(e[t]=Bo,e)),{}):{},rr.filterProps=$o,ar.propTypes="production"!==process.env.NODE_ENV?jo.reduce(((e,t)=>(e[t]=Bo,e)),{}):{},ar.filterProps=jo,"production"===process.env.NODE_ENV||Xo.reduce(((e,t)=>(e[t]=Bo,e)),{});const sr=lr("border",dr),pr=lr("borderTop",dr),_r=lr("borderRight",dr),Er=lr("borderBottom",dr),Tr=lr("borderLeft",dr),cr=lr("borderColor"),Ar=lr("borderTopColor"),ur=lr("borderRightColor"),Or=lr("borderBottomColor"),mr=lr("borderLeftColor"),Ir=lr("outline",dr),fr=lr("outlineColor"),Nr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Jo(e.theme,"shape.borderRadius",4,"borderRadius"),i=e=>({borderRadius:tr(t,e)});return ko(e,e.borderRadius,i)}return null};Nr.propTypes="production"!==process.env.NODE_ENV?{borderRadius:Bo}:{},Nr.filterProps=["borderRadius"],nr(sr,pr,_r,Er,Tr,cr,Ar,ur,Or,mr,Nr,Ir,fr);const Rr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Jo(e.theme,"spacing",8,"gap"),i=e=>({gap:tr(t,e)});return ko(e,e.gap,i)}return null};Rr.propTypes="production"!==process.env.NODE_ENV?{gap:Bo}:{},Rr.filterProps=["gap"];const Lr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Jo(e.theme,"spacing",8,"columnGap"),i=e=>({columnGap:tr(t,e)});return ko(e,e.columnGap,i)}return null};Lr.propTypes="production"!==process.env.NODE_ENV?{columnGap:Bo}:{},Lr.filterProps=["columnGap"];const yr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Jo(e.theme,"spacing",8,"rowGap"),i=e=>({rowGap:tr(t,e)});return ko(e,e.rowGap,i)}return null};yr.propTypes="production"!==process.env.NODE_ENV?{rowGap:Bo}:{},yr.filterProps=["rowGap"];function Dr(e,t){return"grey"===t?t:e}nr(Rr,Lr,yr,Vo({prop:"gridColumn"}),Vo({prop:"gridRow"}),Vo({prop:"gridAutoFlow"}),Vo({prop:"gridAutoColumns"}),Vo({prop:"gridAutoRows"}),Vo({prop:"gridTemplateColumns"}),Vo({prop:"gridTemplateRows"}),Vo({prop:"gridTemplateAreas"}),Vo({prop:"gridArea"}));function Cr(e){return e<=1&&0!==e?100*e+"%":e}nr(Vo({prop:"color",themeKey:"palette",transform:Dr}),Vo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Dr}),Vo({prop:"backgroundColor",themeKey:"palette",transform:Dr}));const Ur=Vo({prop:"width",transform:Cr}),Mr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const i=e.theme?.breakpoints?.values?.[t]||wo[t];return i?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Cr(t)}};return ko(e,e.maxWidth,t)}return null};Mr.filterProps=["maxWidth"];const hr=Vo({prop:"minWidth",transform:Cr}),Pr=Vo({prop:"height",transform:Cr}),br=Vo({prop:"maxHeight",transform:Cr}),Sr=Vo({prop:"minHeight",transform:Cr});Vo({prop:"size",cssProperty:"width",transform:Cr}),Vo({prop:"size",cssProperty:"height",transform:Cr});nr(Ur,Mr,hr,Pr,br,Sr,Vo({prop:"boxSizing"}));const gr={border:{themeKey:"borders",transform:dr},borderTop:{themeKey:"borders",transform:dr},borderRight:{themeKey:"borders",transform:dr},borderBottom:{themeKey:"borders",transform:dr},borderLeft:{themeKey:"borders",transform:dr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nr},color:{themeKey:"palette",transform:Dr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Dr},backgroundColor:{themeKey:"palette",transform:Dr},p:{style:ar},pt:{style:ar},pr:{style:ar},pb:{style:ar},pl:{style:ar},px:{style:ar},py:{style:ar},padding:{style:ar},paddingTop:{style:ar},paddingRight:{style:ar},paddingBottom:{style:ar},paddingLeft:{style:ar},paddingX:{style:ar},paddingY:{style:ar},paddingInline:{style:ar},paddingInlineStart:{style:ar},paddingInlineEnd:{style:ar},paddingBlock:{style:ar},paddingBlockStart:{style:ar},paddingBlockEnd:{style:ar},m:{style:rr},mt:{style:rr},mr:{style:rr},mb:{style:rr},ml:{style:rr},mx:{style:rr},my:{style:rr},margin:{style:rr},marginTop:{style:rr},marginRight:{style:rr},marginBottom:{style:rr},marginLeft:{style:rr},marginX:{style:rr},marginY:{style:rr},marginInline:{style:rr},marginInlineStart:{style:rr},marginInlineEnd:{style:rr},marginBlock:{style:rr},marginBlockStart:{style:rr},marginBlockEnd:{style:rr},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:Rr},rowGap:{style:yr},columnGap:{style:Lr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Cr},maxWidth:{style:Mr},minWidth:{transform:Cr},height:{transform:Cr},maxHeight:{transform:Cr},minHeight:{transform:Cr},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 vr=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:d,transform:l,style:s}=a;if(null==t)return null;if("typography"===d&&"inherit"===t)return{[e]:t};const p=qo(i,d)||{};if(s)return s(r);return ko(r,t,(t=>{let i=Ko(p,l,t);return t===i&&"string"==typeof t&&(i=Ko(p,l,`${e}${"default"===t?"":Yo(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??gr;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),d=Object.keys(n);let l=n;return Object.keys(o).forEach((i=>{const n=(d=o[i],s=r,"function"==typeof d?d(s):d);var d,s;if(null!=n)if("object"==typeof n)if(a[i])l=Wo(l,e(i,n,r,a));else{const e=ko({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)?l=Wo(l,e):l[i]=t({sx:n,theme:r})}else l=Wo(l,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)}(d,l))}return Array.isArray(o)?o.map(n):n(o)}}();function xr(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 Br(e=null){const t=Z.useContext(H);return t&&(i=t,0!==Object.keys(i).length)?t:e;var i}vr.filterProps=["sx"];const Wr=function(e={},...t){const{breakpoints:i={},palette:o={},spacing:r,shape:a={},...n}=e,d=vo(i),l=function(e=8,t=er({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=go({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:l,shape:{...xo,...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=xr,s=t.reduce(((e,t)=>go(e,t)),s),s.unstable_sxConfig={...gr,...n?.unstable_sxConfig},s.unstable_sx=function(e){return vr({sx:e,theme:this})},s}();function wr(e){const{sx:t,...i}=e,{systemProps:o,otherProps:r}=(e=>{const t={systemProps:{},otherProps:{}},i=e?.theme?.unstable_sxConfig??gr;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 bo(i)?{...o,...i}:o}:{...o,...t},{...r,sx:a}}const Fr=e=>e,Gr=(()=>{let e=Fr;return{configure(t){e=t},generate:t=>e(t),reset(){e=Fr}}})();const kr={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 Yr=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=st(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})(cr),d=z.forwardRef((function(t,d){const l=function(e=ur){return Ir(e)}(o),{className:s,component:p="div",..._}=mr(t);return e(n,{as:p,ref:d,className:kt(s,a?a(r):r),theme:i&&l[i]||l,..._})}));return d}({defaultClassName:function(e,t,i="Mui"){const o={};return t.forEach((t=>{o[t]=function(e,t,i="Mui"){const o=Rr[t];return o?`${i}-${o}`:`${Nr.generate(e)}-${t}`}(e,t,i)})),o}("MuiBox",["root"]).root,generateClassName:Nr.generate});"production"!==process.env.NODE_ENV&&(Lr.propTypes={children:eo.node,component:eo.elementType,sx:eo.oneOfType([eo.arrayOf(eo.oneOfType([eo.func,eo.object,eo.bool])),eo.func,eo.object])});const yr=t=>e(C,{...t,slotProps:{inputLabel:{shrink:!0}}}),Dr=t=>{if(t?.fieldInfo){const o=t.fieldInfo,r=t?.formManager||null,a=t?.formActions||null,n=t?.formValues||null,d=t?.fieldInfo?.fieldName||null,l=t?.fieldInfo?.fieldType||null;return o&&r&&n&&d&&l?void 0!==o?.hidden&&o?.hidden||t.hiddenFields.includes(d)?e(i,{}):e(B,{size:o?.formProps?.fieldSize||{lg:12,md:12,sm:12},sx:{padding:1,width:"100%"},children:"text"===l||"number"===l?e(yr,{fullWidth:!0,type:l,disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),hidden:o?.hidden||!1,label:o?.fieldLabel,value:n[d],onChange:e=>{let t=null;var i;""!=e.target.value&&(t="number"!==l||("string"!=typeof(i=e.target.value)||""===i.trim()||isNaN(Number(i)))?e.target.value:Number(e.target.value)),r.setValue(d,t),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(t,r,a)},sx:o?.formProps?.style,error:null!=r.formState.errors[d],helperText:r?.formState?.errors[d]?.message?.toString()}):"date"===o?.fieldType?e(li,{format:o?.dateFormat||ni,sx:o?.formProps?.style||{width:"100%"},disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),label:o?.fieldLabel,onChangeCallBack:e=>{r.setValue(d,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,r,a)},value:n[d],error:null!=r.formState.errors[d],errorMessage:r?.formState?.errors[d]?.message?.toString()}):"datetime"===o?.fieldType?e(si,{format:o?.dateFormat||di,sx:o?.formProps?.style||{width:"100%"},disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),label:o?.fieldLabel,onChangeCallBack:e=>{r.setValue(d,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,r,a)},value:n[d],error:null!=r.formState.errors[d],errorMessage:r?.formState?.errors[d]?.message?.toString()}):"checkbox"===o?.fieldType?e(_i,{label:o?.fieldLabel,onChangeCallBack:e=>{r.setValue(d,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,r,a)},value:n[d],checkedValue:o?.checkedValue||"true",unCheckedValue:o?.unCheckedValue||"false",disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),sx:o?.formProps?.style}):"combobox"===o?.fieldType?e(pi,{sx:o?.formProps?.style||{width:"100%"},label:o?.fieldLabel,disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),onChangeCallBack:(e,t)=>{let i=null;e&&(i=e+""),r.setValue(d,i),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(i,r,a,t)},options:o?.options||[],displayField:o?.optionDisplayField||"",valueField:o?.optionValueField||"",value:n[d],errorMessage:r?.formState?.errors[d]?.message?.toString()}):e(i,{children:"Unknown field type"})}):e(i,{})}return e(i,{})},Cr=o=>{const r=Yt(),{ConfirmationWindow:a,setOpen:n}=ri({body:o?.confirmationMessage||"",title:"Confirmation",onConfirmationCallBk:()=>{o?.actionFn(o?.record)}});return null==o?.authority||r.isUserAuthorized(o.authority)?t(i,{children:[e(a,{}),t(y,{variant:o?.formActionProps?.actionButtonVariant,color:o?.formActionProps?.actionButtonColor,onClick:()=>{if(o?.actionFn){if(o?.preActionValidation&&!o.preActionValidation(o.record))return;!0===o?.isConfirmationRequired?n(!0):o?.actionFn(o.record)}},children:[o?.icon?e(ae,{icon:o.icon,style:{marginRight:5,marginLeft:5}}):e(i,{}),e("div",{children:o?.label})]})]}):e(i,{})},Ur=o=>e(i,{children:t(B,{container:!0,sx:o?.style,alignItems:"flex-start",children:[o?.label?e(B,{size:12,sx:{padding:1,fontWeight:"bold",display:"flex"},children:o?.icon?t(i,{children:[e(ae,{icon:o.icon,style:{marginRight:5,marginLeft:5}}),e("div",{children:o.label})]}):e(i,{children:o.label})}):e(i,{}),o?.elements?o.elements.map((t=>"group"===t.type?e(Ur,{...t.props,formManager:o.formManager,formValues:o.formValues,formActions:o.formActions,hiddenFields:o.hiddenFields,disabledFields:o.disabledFields}):"field"===t.type&&"props"===t.mode?e(Dr,{fieldInfo:t.props,formManager:o.formManager,formValues:o.formValues,formActions:o.formActions,hiddenFields:o.hiddenFields,disabledFields:o.disabledFields}):"field"===t.type&&"node"===t.mode?e(B,{size:t?.props?.formProps?.fieldSize||{lg:3,md:6,sm:12},sx:{padding:1,width:"100%"},children:e(t.node,{formManager:o.formManager,formValues:o.formValues,formActions:o.formActions})}):void 0)):null,o?.actions?e(B,{size:{sm:12},sx:{padding:1},children:o.actions.map((t=>e(Cr,{...t,record:o.formValues})))}):e(i,{})]})}),Mr=o=>{const r=Oi(o.elements),[a,n]=j([]),[d,l]=j([]),s=at.object(Ii(r)),p=dt({resolver:lt(s)}),_=p.watch(),E=be(),T=o?.formRouteRecordIdParamName,A={setFieldValue:(e,t)=>{p.setValue(e,t)},hideField:e=>{n((t=>[...t,e]))},showField:e=>{n((t=>t.filter((t=>t!==e))))},disableField:e=>{l((t=>[...t,e]))},enableField:e=>{l((t=>t.filter((t=>t!==e))))}};return X((()=>{(async()=>{let e=null;if(o?.recordIdToEdit?e=o.recordIdToEdit:T&&E[T]&&(e=E[T]),e){const t=await o.apiActions.loadRecordById(e);t&&p.reset({...t})}})()}),[o?.recordIdToEdit]),t(i,{children:[e(Lr,{sx:{display:"flex",flex:1,width:"100%",height:"fit-content",flexDirection:"column",alignItems:"center",overflow:"auto"},children:e(B,{sx:{width:"100%"},container:!0,children:o.elements.map((t=>"group"===t.type?e(Ur,{...t.props,formManager:p,formValues:_,formActions:A,hiddenFields:a,disabledFields:d}):"field"===t.type&&"props"===t.mode?e(Dr,{fieldInfo:t.props,formManager:p,formValues:_,formActions:A,hiddenFields:a,disabledFields:d}):"field"===t.type&&"node"===t.mode?e(B,{size:t?.props?.formProps?.fieldSize||{lg:3,md:6,xs:12},sx:{padding:1,width:"100%"},children:e(t.node,{formManager:p,formValues:_})}):void 0))})}),t(Lr,{sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"flex-start"},children:[o?.actions?o.actions.map((t=>!0===t?.formActionProps?.enabled?e(Cr,{...t,record:_}):e(i,{}))):e(i,{}),e("div",{style:{flex:1}}),e(y,{variant:o?.saveButtonSpecs?.actionButtonVariant?o.saveButtonSpecs.actionButtonVariant:"contained",sx:{m:1},startIcon:o?.saveButtonSpecs?.icon?e(ae,{icon:o.saveButtonSpecs.icon}):null,color:o?.saveButtonSpecs?.actionButtonColor?o.saveButtonSpecs.actionButtonColor:"primary",onClick:p.handleSubmit((e=>{console.log("form values",e),(async e=>{if((!o?.preSaveValidation||o.preSaveValidation(e))&&e){const t=await o.apiActions.saveRecord(e);t&&(p.reset({...t}),o?.formSavedSuccessfullyCallBk&&o.formSavedSuccessfullyCallBk(t),o?.formCloseCallBk&&o.formCloseCallBk())}})(e)}),(e=>{ne.error("Form Data is not valid, make sure you have all field with valid data"),console.log("form validation error",e)})),children:o?.saveButtonSpecs?.label||"save"}),e(y,{variant:o?.cancelButtonSpecs?.actionButtonVariant?o.cancelButtonSpecs.actionButtonVariant:"contained",startIcon:o?.cancelButtonSpecs?.icon?e(ae,{icon:o.cancelButtonSpecs.icon}):null,color:o?.cancelButtonSpecs?.actionButtonColor?o.cancelButtonSpecs.actionButtonColor:"error",sx:{m:1},onClick:()=>{o?.formCloseCallBk&&o.formCloseCallBk(),p.reset({})},children:o?.cancelButtonSpecs?.label||"cancel"})]})]})};let hr=-1;const Pr=e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):{}}catch(e){return console.error("Failed to load grid state",e),{}}},Sr=(e,t)=>{const i=Pr(e);localStorage.setItem(e,JSON.stringify({...i,...t}))},br=["__check__","actions"],gr=o=>{const{t:a}=_e(),n=Oi(o.formElements),d=[],l=$.useMemo((()=>o?.gridStateKey?Pr(o.gridStateKey):{}),[]);for(const e of n)!0===e?.gridProps?.hidden&&d.push(e.fieldName);let s={};if(l?.columnVisibilityModel){s=l.columnVisibilityModel;const e=Object.keys(s);for(const t of d)e.includes(t)||(s[t]=!1)}else for(const e of d)s[e]=!1;const p=r((e=>e.AppLayout.appDirection)),[_,E]=$.useState(s),[T,c]=$.useState(l.columnOrder||[]),[I,m]=$.useState(l.columnWidths||{}),[f,N]=j(l.columnGroupingModel||[]);let R=l?.pinnedColumns?.left||[];R=R.filter((e=>!br.includes(e)));let L=l?.pinnedColumns?.right||[]||[];L=L.filter((e=>!br.includes(e)));const[y,D]=j({left:[..."ltr"===p?br:[],...R],right:[..."rtl"===p?br:[],...L]}),C=Yt(),U=Se(),[M,h]=j(null),[S,g]=j(null),[v,B]=j({}),[q,K]=j({ids:new Set,type:"include"});let V="id";o?.keyColumnName&&(V=o?.keyColumnName);const H=o.setData,Q=nt.object(Ii(n)),Z=((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(li,{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=et(e).format(ni)),o},valueFormatter:(e,t,i)=>t[i.field]});r.push(t)}else if("datetime"===n?.fieldType){const e=Ei({...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=Ai({...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=Ti({...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})(n,"row"===o?.editMode?.editMode||!1,a);let z=!0;o?.editAction?.authority&&(z=C.isUserAuthorized(o.editAction.authority));let J=!0;o?.deleteAction?.authority&&(J=C.isUserAuthorized(o.deleteAction.authority));const{ConfirmationWindow:ee,setOpen:te}=ri({title:"Confirmation",body:"Are you sure you want to delete this record ?",onConfirmationCallBk:async()=>{let e=!0;M&&!0===M?.isNew||(e=await o.apiActions.deleteRecordById(M[V])),e&&(o?.deleteAction?.postActionCallBack&&await o.deleteAction.postActionCallBack(M),H((e=>e.filter((e=>e[V]!=M[V])))))}});let ie,oe,re,de,le,se;"modal"===o?.editMode?.editMode&&(ie=o?.editMode?.specs?.modalHeight||"fit-content",oe=o?.editMode?.specs?.modalWidth||"300",re=o?.editMode?.specs?.modalMinHeight,de=o?.editMode?.specs?.modalMinWidth,le=o?.editMode?.specs?.modalIcon||"window",se=o?.editMode?.specs?.modalTitle||"Record Form");const{Window:pe,setWindowState:Ee}=(i=>{const[o,r]=j(!1);return{windowState:o,setWindowState:r,Window:a=>e(x,{open:o,sx:{zIndex:e=>e.zIndex.drawer},onClose:()=>{!o&&i?.onCloseCallBack&&i.onCloseCallBack()},children:t(u,{sx:{position:"absolute",top:"50%",left:"50%",maxHeight:"90%",transform:"translate(-50%, -50%)",height:i?.height||"80%",width:i?.width||"90%",minWidth:i.minWidth||400,minHeight:i.minHeight||200,overflow:"hidden",bgcolor:"modalBackground.main",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"},children:[e(W,{position:"static",children:t(w,{variant:"dense",children:[e(ae,{icon:i?.windowIcon||"window-maximize",style:{marginRight:5}}),e(O,{variant:"h6",color:"inherit",component:"div",children:i?.windowTitle||"window"}),e("div",{style:{flexGrow:1}}),e(A,{onClick:()=>{r(!1),null!=i.onCloseCallBack&&null!=i.onCloseCallBack&&i.onCloseCallBack()},color:"secondary",children:e(ae,{icon:"xmark-square"})})]})}),e(F,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%",padding:1,overflow:"hidden"},children:a?.children})]})})}})({height:ie,minHeight:re,minWidth:de,onCloseCallBack:()=>{o.apiActions.reloadData(o?.gridLoadParametersValues)},width:oe,windowIcon:le,windowTitle:se}),Te={type:"actions",field:"actions",headerName:"",headerAlign:"center",width:(o?.rowActions?30*o.rowActions.length:0)+(o?.editAction&&o?.editAction?.isEnabled?30:0)+(o?.deleteAction&&o?.deleteAction?.isEnabled?30:0),getActions:t=>{const i=t.row,r=[];if("none"!=o?.editMode?.editMode&&(void 0===o?.disableDefaultAction||!o.disableDefaultAction)){const t=v[i[V]]?.mode===Je.Edit;if("row"===o.editMode.editMode&&t)z&&(r.push(e($e,{icon:e(ae,{icon:"save"}),label:a("SAVE_BTN_LABEL"),onClick:()=>{(e=>{const t=e[V];B({...v,[t]:{mode:Je.View}})})(i)}})),r.push(e($e,{icon:e(ae,{icon:"cancel"}),label:a("CANCEL_BTN_LABEL"),onClick:()=>{(e=>{const t=e[V];t&&Ri(t)&&t<0?(B({...v,[t]:{mode:Je.View,ignoreModifications:!0}}),H((e=>{const i=e.filter((e=>e[V]!=t));return i}))):B({...v,[t]:{mode:Je.View,ignoreModifications:!0}})})(i)},color:"inherit"})));else{if(o?.editAction&&!0===o?.editAction?.isEnabled){let t=!0;o?.editAction?.isActionVisibleForRecord&&(t=o?.editAction?.isActionVisibleForRecord(i));let n=!1;o?.editAction?.isActionDisabledForRecord&&(n=o?.editAction?.isActionDisabledForRecord(i)),z&&t&&r.push(e($e,{disabled:n,icon:e(P,{title:a("EDIT_BTN_LABEL"),children:e(ae,{icon:"edit",style:{color:n?"gray":void 0}})}),showInMenu:o?.editAction?.gridActionProps?.showInMenu||!1,label:a("EDIT_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{z&&!n&&(async e=>{if(e)if(g(e),"form"===o.editMode.editMode)U(o.editMode.specs.formRoute+"/"+e[V]);else if("modal"===o.editMode.editMode)Ee(!0);else if("row"===o?.editMode?.editMode){const t=e[V];B({...v,[t]:{mode:Je.Edit}})}})(i)}}))}if(o?.deleteAction&&!0===o?.deleteAction?.isEnabled){let t=!0;o?.deleteAction?.isActionVisibleForRecord&&(t=o?.deleteAction?.isActionVisibleForRecord(i));let n=!1;o?.deleteAction?.isActionDisabledForRecord&&(n=o?.deleteAction?.isActionDisabledForRecord(i)),J&&t&&r.push(e($e,{disabled:n,icon:e(P,{title:a("DELETE_BTN_LABEL"),children:e(ae,{icon:"trash",style:{color:n?"gray":void 0}})}),showInMenu:o?.deleteAction?.gridActionProps?.showInMenu||!1,label:a("DELETE_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{if(J&&!n){if(o?.deleteAction?.preActionValidation&&!o.deleteAction.preActionValidation(i))return;h(i),te(!0)}}}))}}}if(o?.rowActions)for(const t of o.rowActions)t?.gridActionProps?.multiRecord&&!0===t?.gridActionProps?.multiRecord||r.push(e(Li,{...t,record:i,reloadData:async()=>{o.apiActions.reloadData(o?.gridLoadParametersValues)}}));return r}};let Ae=[];(void 0===o?.disableDefaultAction||!o.disableDefaultAction||o?.rowActions&&o?.rowActions.length>0)&&Ae.push(Te),Ae=[...Ae,...Z];X((()=>{void 0!==o?.autoLoad&&!0!==o.autoLoad||o.apiActions.reloadData(o?.gridLoadParametersValues)}),[]);const ce=$.useMemo((()=>{const e=Ae.map((e=>({...e,width:I[e.field]||e.width})));if(T.length){const t=new Map(e.map((e=>[e.field,e])));return T.map((e=>t.get(e))).filter(Boolean)}return e}),[T,I,Ae]);return t(i,{children:[e(ee,{}),"modal"===o?.editMode?.editMode?e(pe,{children:o?.editMode?.specs?.formComponent?e(o.editMode.specs.formComponent,{recordIdToEdit:S?S[V]:void 0,formCloseCallBk:()=>{Ee(!1),o.apiActions.reloadData(o?.gridLoadParametersValues)}}):e(Mr,{recordIdToEdit:S?S[V]:void 0,formCloseCallBk:()=>{Ee(!1),o.apiActions.reloadData(o?.gridLoadParametersValues)},elements:o.formElements,apiActions:o.apiActions,editAuthorityKey:o?.editAction?.authority,formSavedSuccessfullyCallBk:o?.editAction?.postActionCallBack,preSaveValidation:o?.editAction?.preActionValidation,actions:o?.rowActions})}):e(i,{}),void 0!==o?.hideInfoBar||o?.hideInfoBar?e(i,{}):t(u,{sx:{display:"flex"},children:[void 0!==o?.hideBackButton||o?.hideBackButton?e(i,{}):e(A,{onClick:()=>{U("-1",{replace:!0})},children:e(ae,{icon:"arrow-left"})}),t(u,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:[o?.girdIcon?e(ae,{icon:o.girdIcon,style:{marginRight:5,marginLeft:5}}):e(i,{}),e(O,{variant:"h5",children:o?.gridTitle?(Oe=a(o?.gridTitle),Oe?Oe.charAt(0).toUpperCase()+Oe.slice(1):""):""})]})]}),o?.gridLoadParameters&&o?.gridLoadParametersValues&&o?.setGridLoadParametersValues?t(G,{defaultExpanded:!0,children:[e(k,{expandIcon:e(je,{}),children:t(u,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[e(ae,{style:{marginLeft:5,marginRight:5},icon:"search"}),e(O,{component:"span",children:"Filters"})]})}),e(Y,{children:e(u,{children:e(Mr,{saveButtonSpecs:{label:a("SEARCH_BTN_LABEL"),icon:"search",actionButtonVariant:"outlined",actionButtonColor:"success"},cancelButtonSpecs:{label:a("RESET_BTN_LABEL"),icon:"eraser",actionButtonVariant:"outlined",actionButtonColor:"error"},apiActions:{deleteRecordById:async()=>!0,saveRecord:async e=>{null!=e?o.setGridLoadParametersValues(e):o.setGridLoadParametersValues({}),o.apiActions.reloadData(e)},reloadData:async()=>{},loadRecordById:async()=>{}},elements:o.gridLoadParameters})})})]}):e(i,{}),e(Xe,{...o?.muiProps,slots:{toolbar:Ni},slotProps:{toolbar:{templateProps:{...o,rowSelectionModel:q,data:o?.data},handleCreateNewRecord:()=>{if("form"===o?.editMode?.editMode)U(o.editMode.specs.formRoute);else if("modal"===o?.editMode?.editMode)Ee(!0);else if("row"===o?.editMode?.editMode){hr-=1;const e={};e[V]=hr,e.isNew=!0;for(const t of Z)"actions"!=t?.type&&t?.field!=V&&t?.field&&(e[t.field]=null);H((t=>[e,...t])),B((e=>({...e,[hr]:{mode:Je.Edit}})))}},clearGridState:()=>{o?.gridStateKey&&localStorage.removeItem(o.gridStateKey),E({}),c([]),m({}),N([]),D({left:[..."ltr"===p?br:[]],right:[..."rtl"===p?br:[]]})}}},getRowId:e=>e[V],showToolbar:!0,rows:o?.data,columns:ce,checkboxSelection:!0,editMode:"row",rowModesModel:"row"==o.editMode.editMode?v:void 0,onRowModesModelChange:"row"==o.editMode.editMode?e=>{B(e)}:void 0,rowGroupingColumnMode:"multiple",processRowUpdate:async r=>{if("row"===o.editMode.editMode){let a=null;const n=(e=>{try{Q.parse(e)}catch(e){console.log("validateRecord err",e);let t=null;return t=e instanceof nt.ZodError?e.errors.map((e=>"Error in field ("+e.path+") : "+e.message)).join(","):"invalid record data",t}})(r);if(n){const o=n.split(",");throw ne.error(e("div",{style:{},children:o.map((o=>t(i,{children:[e("div",{children:o}),e(b,{})]})))})),new Error(n)}if(o?.editAction?.preActionValidation&&!o.editAction.preActionValidation(r))throw new Error("error on the configured presave validation");const d={...r};if(r[V]&&Ri(r[V])&&Number(r[V])<0&&(d[V]=null),a=await o.apiActions.saveRecord(d),null==a)throw new Error("Failed to process your request, contact your administrator");return o?.editAction?.postActionCallBack&&await o.editAction.postActionCallBack(r),!0===r?.isNew&&H((e=>{const t=e.filter((e=>e[V]!==r[V]));return[a,...t]})),!0===o?.editMode?.reloadAfterSave&&o?.apiActions?.reloadData&&o?.apiActions?.reloadData(o?.gridLoadParametersValues),a}},rowSelectionModel:q,onRowSelectionModelChange:e=>{K(e)},columnVisibilityModel:_,onColumnVisibilityModelChange:e=>{E(e),o?.gridStateKey&&Sr(o.gridStateKey,{columnVisibilityModel:e})},onColumnOrderChange:e=>{const{column:t,targetIndex:i}=e;c((e=>{const r=e.length?[...e]:Ae.map((e=>e.field)),a=r.indexOf(t.field);return-1===a||(r.splice(a,1),r.splice(i,0,t.field),o?.gridStateKey&&Sr(o.gridStateKey,{columnOrder:r})),r}))},onColumnWidthChange:e=>{const t={...I,[e.colDef.field]:e.width};m(t),o?.gridStateKey&&Sr(o.gridStateKey,{columnWidths:t})},rowGroupingModel:f,onRowGroupingModelChange:e=>{(e=>{N(e),o?.gridStateKey&&Sr(o.gridStateKey,{columnGroupingModel:e})})(e)},pinnedColumns:y,onPinnedColumnsChange:e=>{let t=e?.left||[];t=t.filter((e=>!br.includes(e)));let i=e?.right||[];i=i.filter((e=>!br.includes(e)));const r={left:[..."ltr"===p?br:[],...t],right:[..."rtl"===p?br:[],...i]};D(r),o?.gridStateKey&&Sr(o.gridStateKey,{pinnedColumns:r})}})]});var Oe},vr=e=>{const t=r((e=>e.commonStores)),i=o(),a=Yt(),{handleGetRequest:n,handlePostRequest:d,handleDeleteRequest:l}=gt();return{reloadData:async o=>{if(e?.commonStoreKey){const o=Object.keys(t);for(const r of o)if(r===e.commonStoreKey&&(void 0===t[r]?.authority||null===t[r]?.authority||a.isUserAuthorized(t[r]?.authority))&&""!=t[r]?.url){await n({endPointURI:t[r].url,showMask:!1,successCallBkFn:t=>{i(yt({storeKey:r,data:t.data})),e.setData(t.data)},failureCallBkFn:()=>{i(yt({storeKey:r,data:[]})),e.setData([])}});break}}else e?.findAll&&await n({endPointURI:e.findAll,showMask:!0,parameters:o||{},successCallBkFn:t=>{e.setData(t.data)}})},loadRecordById:async t=>{let i=null;if(e?.findById){const o={};o[e?.findByIdParamName||"id"]=t,await n({endPointURI:e.findById,showMask:!0,parameters:o,successCallBkFn:e=>{i=e.data}})}return i},saveRecord:async t=>{let i=null;return e?.save&&await d({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}}},Br=[{path:"/",component:()=>t(u,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,fontSize:24,fontWeight:"bold"},children:[e("img",{src:"logo.png",style:{margin:5}}),e("div",{children:"Welcome to Ezzsteel Flat Product Management System"}),t("div",{style:{fontSize:16},children:["Use side menu [",e(ae,{icon:"bars",style:{marginLeft:10,marginRight:10}}),"] to navigate to your authorized system modules"]})]})},...[...[{path:"admin/attachments",component:()=>{const[t,i]=j([]),o=vr({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(gr,{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]=j([]),o=vr({commonStoreKey:"SystemAuthorities",deleteById:"api/v1/admin/authority",save:"api/v1/admin/authority",findById:"api/v1/admin/authority",setData:i});return e(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({commonStoreKey:"SystemDataQueries",deleteById:"api/v1/admin/dataquery",save:"api/v1/admin/dataquery",findById:"api/v1/admin/dataquery",setData:i});return e(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({commonStoreKey:"SystemDataSources",deleteById:"api/v1/admin/datasourceconnection",save:"api/v1/admin/datasourceconnection",findById:"api/v1/admin/datasourceconnection",setData:i});return e(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({commonStoreKey:"SystemEntityParameters",deleteById:"api/v1/admin/entityparameter",save:"api/v1/admin/entityparameter",findById:"api/v1/admin/entityparameter",setData:i});return e(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({commonStoreKey:"SystemRoles",deleteById:"api/v1/admin/role",save:"api/v1/admin/role",findById:"api/v1/admin/role",setData:i});return e(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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]=j([]),o=vr({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(gr,{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"}]]],xr=()=>{const t=r((e=>e.AppLayout));return e(Q,{value:"ltr"===t.appDirection?oi:ii,children:e(u,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",flex:1,overflow:"hidden",padding:3},children:e(ge,{children:Br.map(((t,i)=>e(ve,{path:t.path,Component:t.component},i)))})})})},Wr=J("div")((({theme:e})=>({width:30,height:6,margin:10,backgroundColor:pt[300],borderRadius:3,top:8,...e.applyStyles("dark",{backgroundColor:pt[900]})})));function wr(i){const{window:a}=i,n=r((e=>e.AppLayout)),d=r((e=>e.AppInfo.value)),l=o(),s=e=>{l(At.setSideBarState(e))};return e(_t,{container:void 0!==a?()=>a().document.body:void 0,anchor:"bottom",open:n.sideBarOpened,onClose:()=>{s(!1)},onOpen:()=>{s(!0)},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},children:t(u,{sx:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",overflow:"hidden"},children:[e(Wr,{}),e(u,{sx:{flexGrow:1,display:"flex",justifyContent:"center",width:"99%",overflowY:"auto"},children:e(ei,{})}),t(u,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1,width:"100%"},children:[e(O,{sx:{fontSize:12},color:"textDisabled",children:d.appName}),t(O,{sx:{fontSize:12},color:"textDisabled",children:["V.",d.appVersion]})]})]})})}const Fr=()=>{const t=r((e=>e.loadingMask.value));return e(q,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:t.isOpened,children:e(K,{color:"inherit"})})},Gr=()=>{const a=r((e=>e.AppInfo.value)),[n,d]=j(""),[l,s]=j(""),[p,_]=j(!1),E=r((e=>e.UserSession.value)),T=o(),A=async()=>{if(null==n||""==n)return void ne.error("username is required to proceed");if(null==l||""==l)return void ne.error("password is required to proceed");_(!0);let e=null;console.log("login appinfo",a);try{if(e=await le.post(`${a.apiBaseUrl}/api/auth/login`,{username:n,password:l},{withCredentials:!0}),null!=e.data&&""!==e.data){_(!1);const t={isAuthenticated:!0,authorities:e.data.authorities,userProfile:e.data};T(It.setAuthenticated(t))}}catch(e){_(!1),ne.error(e?.response?.data||"failed to authenticate, contact your administrator")}},c=r((e=>e.UserSession.value)),I=V(Pt);return X((()=>{(async()=>{if(null==c.isAuthenticated)try{let e=await le.get(`${a.apiBaseUrl}/api/auth/userInfo`,{withCredentials:!0});if(null!=e&&null!=e.data){const t={isAuthenticated:!0,authorities:e.data.authorities,userProfile:e.data};T(It.setAuthenticated(t))}else T(It.setUnAuthenticated())}catch(e){T(It.setUnAuthenticated())}})()}),[]),e(Z,{theme:I,children:e(F,{sx:{display:"flex",height:"100vh",width:"100%",borderRadius:0,alignItems:"center",justifyContent:"center"},children:0==E.isAuthenticated?t(u,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[e("img",{src:a?.appLogo,width:150,height:150}),e(O,{sx:{m:1},variant:"h4",color:"textSecondary",children:a?.appName}),t(O,{sx:{paddingRight:1,width:"100%",textAlign:"right",fontSize:10},variant:"caption",color:"textSecondary",children:["V.",a.appVersion]}),e(C,{label:"username",sx:{width:300,m:1},value:n,onChange:e=>{d(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&A()}}),e(C,{label:"password",sx:{width:300,m:1},value:l,type:"password",onChange:e=>{s(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&A()}}),e(y,{loading:p,onClick:A,variant:"contained",color:"primary",sx:{m:1},children:"login"})]}):t(i,{children:[e(K,{sx:{marginRight:1}}),e("div",{children:"You will be redirected shortly ... please wait"})]})})})},kr=J("main",{shouldForwardProp:e=>"open"!==e})((({theme:e,open:t})=>{const i=r((e=>e.AppLayout)),a=o(),{show:n,hide:d}=bt(),l=r((e=>e.commonStores)),s=te(),p=St(),{isUserAuthorized:_}=Yt(),{handleGetRequest:E}=gt();return X((()=>{(async()=>{n("Loading ... please wait");let e=Object.keys(l);for(let t of e)void 0!==l[t]?.authority&&null!==l[t]?.authority&&!_(l[t]?.authority)||""==l[t]?.url||!0!==l[t].autoLoad||await E({endPointURI:l[t].url,showMask:!1,successCallBkFn:e=>{a(yt({storeKey:t,data:e.data}))},failureCallBkFn:()=>{a(yt({storeKey:t,data:[]}))}});d()})()}),[]),{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1,width:!p&&t?"calc(100% - 350px)":"100%",direction:i.appDirection,justifyContent:"flex-start",transition:!0===t?s.transitions.create(["margin","width"],{easing:s.transitions.easing.easeOut,duration:s.transitions.duration.enteringScreen}):s.transitions.create(["margin","width"],{easing:s.transitions.easing.sharp,duration:s.transitions.duration.leavingScreen}),marginLeft:p||"ltr"!==i.appDirection||!0!==t?0:Et+"px",marginRight:p||"rtl"!==i.appDirection||!0!==t?0:Et+"px"}}));function Yr(){const i=r((e=>e.AppLayout)),o=St(),a=r((e=>e.UserSession));return t(Be,{children:[e(de,{draggable:!0,position:"bottom-center"}),e(Fr,{}),!0===a.value.isAuthenticated?t(kr,{open:i.sideBarOpened,children:[e(ie,{}),e(wt,{}),o?null:e(ti,{}),o?e(wr,{}):null,e(Ft,{}),e(xr,{})]}):e(Gr,{})]})}const qr=t=>{const a=o();console.log("App Info",t);const n=r((e=>e.AppLayout));let d={...ht};"dark"===n.themeMode&&(d={...Pt});const l=V({direction:n.appDirection,...d});return X((()=>{document.title=t.documentTitle,a(Ut.setAppInfo(t))}),[]),e(Z,{theme:l,children:t?.apiBaseUrl?e(Yr,{}):e(i,{children:"No Info Yet"})})};E.setLicenseKey("c2bd611fa642666253500ab9c8e4f78fTz0xMTE4MjEsRT0xNzc2OTg4Nzk5MDAwLFM9cHJlbWl1bSxMTT1zdWJzY3JpcHRpb24sUFY9aW5pdGlhbCxLVj0y"),l.add(s),l.add(p),l.add(_);const Kr=t=>e(a,{store:Mt,children:e(qr,{...t})});export{Kr as BaseApp};
|
|
31
|
+
function(e,t){const i=st(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})(vr),d=Z.forwardRef((function(t,d){const l=function(e=Wr){return Br(e)}(o),{className:s,component:p="div",..._}=wr(t);return e(n,{as:p,ref:d,className:oi(s,a?a(r):r),theme:i&&l[i]||l,..._})}));return d}({defaultClassName:function(e,t,i="Mui"){const o={};return t.forEach((t=>{o[t]=function(e,t,i="Mui"){const o=kr[t];return o?`${i}-${o}`:`${Gr.generate(e)}-${t}`}(e,t,i)})),o}("MuiBox",["root"]).root,generateClassName:Gr.generate});"production"!==process.env.NODE_ENV&&(Yr.propTypes={children:fo.node,component:fo.elementType,sx:fo.oneOfType([fo.arrayOf(fo.oneOfType([fo.func,fo.object,fo.bool])),fo.func,fo.object])});const qr=t=>e(C,{...t,slotProps:{inputLabel:{shrink:!0}}}),Kr=t=>{if(t?.fieldInfo){const o=t.fieldInfo,r=t?.formManager||null,a=t?.formActions||null,n=t?.formValues||null,d=t?.fieldInfo?.fieldName||null,l=t?.fieldInfo?.fieldType||null;return o&&r&&n&&d&&l?void 0!==o?.hidden&&o?.hidden||t.hiddenFields.includes(d)?e(i,{}):e(x,{size:o?.formProps?.fieldSize||{lg:12,md:12,sm:12},sx:{padding:1,width:"100%"},children:"text"===l||"number"===l?e(qr,{fullWidth:!0,type:l,disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),hidden:o?.hidden||!1,label:o?.fieldLabel,value:n[d],onChange:e=>{let t=null;""!=e.target.value&&(t="number"===l&&Gi(e.target.value)?Number(e.target.value):e.target.value),r.setValue(d,t),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(t,r,a)},sx:o?.formProps?.style,error:null!=r.formState.errors[d],helperText:r?.formState?.errors[d]?.message?.toString()}):"date"===o?.fieldType?e(yi,{format:o?.dateFormat||Ri,sx:o?.formProps?.style||{width:"100%"},disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),label:o?.fieldLabel,onChangeCallBack:e=>{r.setValue(d,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,r,a)},value:n[d],error:null!=r.formState.errors[d],errorMessage:r?.formState?.errors[d]?.message?.toString()}):"datetime"===o?.fieldType?e(Di,{format:o?.dateFormat||Li,sx:o?.formProps?.style||{width:"100%"},disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),label:o?.fieldLabel,onChangeCallBack:e=>{r.setValue(d,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,r,a)},value:n[d],error:null!=r.formState.errors[d],errorMessage:r?.formState?.errors[d]?.message?.toString()}):"checkbox"===o?.fieldType?e(Ui,{label:o?.fieldLabel,onChangeCallBack:e=>{r.setValue(d,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,r,a)},value:n[d],checkedValue:o?.checkedValue||"true",unCheckedValue:o?.unCheckedValue||"false",disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),sx:o?.formProps?.style}):"combobox"===o?.fieldType?e(Ci,{sx:o?.formProps?.style||{width:"100%"},label:o?.fieldLabel,disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),onChangeCallBack:(e,t)=>{let i=null;e&&(i=e+""),r.setValue(d,i),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(i,r,a,t)},options:o?.options||[],displayField:o?.optionDisplayField||"",valueField:o?.optionValueField||"",value:n[d],errorMessage:r?.formState?.errors[d]?.message?.toString()}):e(i,{children:"Unknown field type"})}):e(i,{})}return e(i,{})},Vr=o=>{const r=ri(),{ConfirmationWindow:a,setOpen:n}=fi({body:o?.confirmationMessage||"",title:"Confirmation",onConfirmationCallBk:()=>{o?.actionFn(o?.record)}});return null==o?.authority||r.isUserAuthorized(o.authority)?t(i,{children:[e(a,{}),t(y,{variant:o?.formActionProps?.actionButtonVariant,color:o?.formActionProps?.actionButtonColor,onClick:()=>{if(o?.actionFn){if(o?.preActionValidation&&!o.preActionValidation(o.record))return;!0===o?.isConfirmationRequired?n(!0):o?.actionFn(o.record)}},children:[o?.icon?e(ae,{icon:o.icon,style:{marginRight:5,marginLeft:5}}):e(i,{}),e("div",{children:o?.label})]})]}):e(i,{})},Hr=o=>e(i,{children:t(x,{container:!0,sx:o?.style,alignItems:"flex-start",children:[o?.label?e(x,{size:12,sx:{padding:1,fontWeight:"bold",display:"flex"},children:o?.icon?t(i,{children:[e(ae,{icon:o.icon,style:{marginRight:5,marginLeft:5}}),e("div",{children:o.label})]}):e(i,{children:o.label})}):e(i,{}),o?.elements?o.elements.map((t=>"group"===t.type?e(Hr,{...t.props,formManager:o.formManager,formValues:o.formValues,formActions:o.formActions,hiddenFields:o.hiddenFields,disabledFields:o.disabledFields}):"field"===t.type&&"props"===t.mode?e(Kr,{fieldInfo:t.props,formManager:o.formManager,formValues:o.formValues,formActions:o.formActions,hiddenFields:o.hiddenFields,disabledFields:o.disabledFields}):"field"===t.type&&"node"===t.mode?e(x,{size:t?.props?.formProps?.fieldSize||{lg:3,md:6,sm:12},sx:{padding:1,width:"100%"},children:e(t.node,{formManager:o.formManager,formValues:o.formValues,formActions:o.formActions})}):void 0)):null,o?.actions?e(x,{size:{sm:12},sx:{padding:1},children:o.actions.map((t=>e(Vr,{...t,record:o.formValues})))}):e(i,{})]})}),Qr=o=>{const r=Si(o.elements),[a,n]=j([]),[d,l]=j([]),s=at.object(gi(r)),p=dt({resolver:lt(s)}),_=p.watch(),E=Se(),T=o?.formRouteRecordIdParamName,c={setFieldValue:(e,t)=>{p.setValue(e,t)},hideField:e=>{n((t=>[...t,e]))},showField:e=>{n((t=>t.filter((t=>t!==e))))},disableField:e=>{l((t=>[...t,e]))},enableField:e=>{l((t=>t.filter((t=>t!==e))))}};return X((()=>{(async()=>{let e=null;if(o?.recordIdToEdit?e=o.recordIdToEdit:T&&E[T]&&(e=E[T]),e){const t=await o.apiActions.loadRecordById(e);t&&p.reset({...t})}})()}),[o?.recordIdToEdit]),t(i,{children:[e(Yr,{sx:{display:"flex",flex:1,width:"100%",height:"fit-content",flexDirection:"column",alignItems:"center",overflow:"auto"},children:e(x,{sx:{width:"100%"},container:!0,children:o.elements.map((t=>"group"===t.type?e(Hr,{...t.props,formManager:p,formValues:_,formActions:c,hiddenFields:a,disabledFields:d}):"field"===t.type&&"props"===t.mode?e(Kr,{fieldInfo:t.props,formManager:p,formValues:_,formActions:c,hiddenFields:a,disabledFields:d}):"field"===t.type&&"node"===t.mode?e(x,{size:t?.props?.formProps?.fieldSize||{lg:3,md:6,xs:12},sx:{padding:1,width:"100%"},children:e(t.node,{formManager:p,formValues:_})}):void 0))})}),t(Yr,{sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"flex-start"},children:[o?.actions?o.actions.map((t=>!0===t?.formActionProps?.enabled?e(Vr,{...t,record:_}):e(i,{}))):e(i,{}),e("div",{style:{flex:1}}),e(y,{variant:o?.saveButtonSpecs?.actionButtonVariant?o.saveButtonSpecs.actionButtonVariant:"contained",sx:{m:1},startIcon:o?.saveButtonSpecs?.icon?e(ae,{icon:o.saveButtonSpecs.icon}):null,color:o?.saveButtonSpecs?.actionButtonColor?o.saveButtonSpecs.actionButtonColor:"primary",onClick:p.handleSubmit((e=>{console.log("form values",e),(async e=>{if((!o?.preSaveValidation||o.preSaveValidation(e))&&e){const t=await o.apiActions.saveRecord(e);t&&(p.reset({...t}),o?.formSavedSuccessfullyCallBk&&o.formSavedSuccessfullyCallBk(t),o?.formCloseCallBk&&o.formCloseCallBk())}})(e)}),(e=>{ne.error("Form Data is not valid, make sure you have all field with valid data"),console.log("form validation error",e)})),children:o?.saveButtonSpecs?.label||"save"}),e(y,{variant:o?.cancelButtonSpecs?.actionButtonVariant?o.cancelButtonSpecs.actionButtonVariant:"contained",startIcon:o?.cancelButtonSpecs?.icon?e(ae,{icon:o.cancelButtonSpecs.icon}):null,color:o?.cancelButtonSpecs?.actionButtonColor?o.cancelButtonSpecs.actionButtonColor:"error",sx:{m:1},onClick:()=>{o?.formCloseCallBk&&o.formCloseCallBk(),p.reset({})},children:o?.cancelButtonSpecs?.label||"cancel"})]})]})},zr=i=>{const[o,r]=j(!1);return{windowState:o,setWindowState:r,Window:a=>e(B,{open:o,sx:{zIndex:e=>e.zIndex.drawer},onClose:()=>{!o&&i?.onCloseCallBack&&i.onCloseCallBack()},children:t(m,{sx:{position:"absolute",top:"50%",left:"50%",maxHeight:"90%",transform:"translate(-50%, -50%)",height:i?.height||"80%",width:i?.width||"90%",minWidth:i.minWidth||400,minHeight:i.minHeight||200,overflow:"hidden",bgcolor:"modalBackground.main",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"},children:[e(W,{position:"static",children:t(w,{variant:"dense",children:[e(ae,{icon:i?.windowIcon||"window-maximize",style:{marginRight:5}}),e(u,{variant:"h6",color:"inherit",component:"div",children:i?.windowTitle||"window"}),e("div",{style:{flexGrow:1}}),e(c,{onClick:()=>{r(!1),null!=i.onCloseCallBack&&null!=i.onCloseCallBack&&i.onCloseCallBack()},color:"secondary",children:e(ae,{icon:"xmark-square"})})]})}),e(F,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%",padding:1,overflow:"hidden"},children:a?.children})]})})}};let Zr=-1;const $r=e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):{}}catch(e){return console.error("Failed to load grid state",e),{}}},jr=(e,t)=>{const i=$r(e);localStorage.setItem(e,JSON.stringify({...i,...t}))},Xr=["__check__","actions"],Jr=o=>{const{t:a}=_e(),n=Si(o.formElements),d=[],l=$.useMemo((()=>o?.gridStateKey?$r(o.gridStateKey):{}),[]);for(const e of n)!0===e?.gridProps?.hidden&&d.push(e.fieldName);let s={};if(l?.columnVisibilityModel){s=l.columnVisibilityModel;const e=Object.keys(s);for(const t of d)e.includes(t)||(s[t]=!1)}else for(const e of d)s[e]=!1;const p=r((e=>e.AppLayout.appDirection)),[_,E]=$.useState(s),[T,A]=$.useState(l.columnOrder||[]),[O,I]=$.useState(l.columnWidths||{}),[f,N]=j(l.columnGroupingModel||[]);let R=l?.pinnedColumns?.left||[];R=R.filter((e=>!Xr.includes(e)));let L=l?.pinnedColumns?.right||[]||[];L=L.filter((e=>!Xr.includes(e)));const[y,D]=j({left:[..."ltr"===p?Xr:[],...R],right:[..."rtl"===p?Xr:[],...L]}),C=ri(),U=be(),[M,h]=j(null),[b,g]=j(null),[v,x]=j({}),[B,W]=j({ids:new Set,type:"include"});let w="id";o?.keyColumnName&&(w=o?.keyColumnName);const F=o.setData,q=nt.object(gi(n)),K=((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(yi,{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=et(e).format(Ri)),o},valueFormatter:(e,t,i)=>t[i.field]});r.push(t)}else if("datetime"===n?.fieldType){const e=Mi({...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=Pi({...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=hi({...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})(n,"row"===o?.editMode?.editMode||!1,a);let V=!0;o?.editAction?.authority&&(V=C.isUserAuthorized(o.editAction.authority));let H=!0;o?.deleteAction?.authority&&(H=C.isUserAuthorized(o.deleteAction.authority));const{ConfirmationWindow:Q,setOpen:z}=fi({title:"Confirmation",body:"Are you sure you want to delete this record ?",onConfirmationCallBk:async()=>{let e=!0;M&&!0===M?.isNew||(e=await o.apiActions.deleteRecordById(M[w])),e&&(o?.deleteAction?.postActionCallBack&&await o.deleteAction.postActionCallBack(M),F((e=>e.filter((e=>e[w]!=M[w])))))}});let Z,J,ee,te,ie,oe;"modal"===o?.editMode?.editMode&&(Z=o?.editMode?.specs?.modalHeight||"fit-content",J=o?.editMode?.specs?.modalWidth||"300",ee=o?.editMode?.specs?.modalMinHeight,te=o?.editMode?.specs?.modalMinWidth,ie=o?.editMode?.specs?.modalIcon||"window",oe=o?.editMode?.specs?.modalTitle||"Record Form");const{Window:re,setWindowState:de}=zr({height:Z,minHeight:ee,minWidth:te,onCloseCallBack:()=>{o.apiActions.reloadData(o?.gridLoadParametersValues)},width:J,windowIcon:ie,windowTitle:oe}),le={type:"actions",field:"actions",headerName:"",headerAlign:"center",width:(o?.rowActions?30*o.rowActions.length:0)+(o?.editAction&&o?.editAction?.isEnabled?30:0)+(o?.deleteAction&&o?.deleteAction?.isEnabled?30:0),getActions:t=>{const i=t.row,r=[];if("none"!=o?.editMode?.editMode&&(void 0===o?.disableDefaultAction||!o.disableDefaultAction)){const t=v[i[w]]?.mode===Je.Edit;if("row"===o.editMode.editMode&&t)V&&(r.push(e($e,{icon:e(ae,{icon:"save"}),label:a("SAVE_BTN_LABEL"),onClick:()=>{(e=>{const t=e[w];x({...v,[t]:{mode:Je.View}})})(i)}})),r.push(e($e,{icon:e(ae,{icon:"cancel"}),label:a("CANCEL_BTN_LABEL"),onClick:()=>{(e=>{const t=e[w];t&&Fi(t)&&t<0?(x({...v,[t]:{mode:Je.View,ignoreModifications:!0}}),F((e=>{const i=e.filter((e=>e[w]!=t));return i}))):x({...v,[t]:{mode:Je.View,ignoreModifications:!0}})})(i)},color:"inherit"})));else{if(o?.editAction&&!0===o?.editAction?.isEnabled){let t=!0;o?.editAction?.isActionVisibleForRecord&&(t=o?.editAction?.isActionVisibleForRecord(i));let n=!1;o?.editAction?.isActionDisabledForRecord&&(n=o?.editAction?.isActionDisabledForRecord(i)),V&&t&&r.push(e($e,{disabled:n,icon:e(P,{title:a("EDIT_BTN_LABEL"),children:e(ae,{icon:"edit",style:{color:n?"gray":void 0}})}),showInMenu:o?.editAction?.gridActionProps?.showInMenu||!1,label:a("EDIT_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{V&&!n&&(async e=>{if(e)if(g(e),"form"===o.editMode.editMode)U(o.editMode.specs.formRoute+"/"+e[w]);else if("modal"===o.editMode.editMode)de(!0);else if("row"===o?.editMode?.editMode){const t=e[w];x({...v,[t]:{mode:Je.Edit}})}})(i)}}))}if(o?.deleteAction&&!0===o?.deleteAction?.isEnabled){let t=!0;o?.deleteAction?.isActionVisibleForRecord&&(t=o?.deleteAction?.isActionVisibleForRecord(i));let n=!1;o?.deleteAction?.isActionDisabledForRecord&&(n=o?.deleteAction?.isActionDisabledForRecord(i)),H&&t&&r.push(e($e,{disabled:n,icon:e(P,{title:a("DELETE_BTN_LABEL"),children:e(ae,{icon:"trash",style:{color:n?"gray":void 0}})}),showInMenu:o?.deleteAction?.gridActionProps?.showInMenu||!1,label:a("DELETE_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{if(H&&!n){if(o?.deleteAction?.preActionValidation&&!o.deleteAction.preActionValidation(i))return;h(i),z(!0)}}}))}}}if(o?.rowActions)for(const t of o.rowActions)t?.gridActionProps?.multiRecord&&!0===t?.gridActionProps?.multiRecord||r.push(e(Yi,{...t,record:i,reloadData:async()=>{o.apiActions.reloadData(o?.gridLoadParametersValues)}}));return r}};let se=[];(void 0===o?.disableDefaultAction||!o.disableDefaultAction||o?.rowActions&&o?.rowActions.length>0)&&se.push(le),se=[...se,...K];X((()=>{void 0!==o?.autoLoad&&!0!==o.autoLoad||o.apiActions.reloadData(o?.gridLoadParametersValues)}),[]);const pe=$.useMemo((()=>{const e=se.map((e=>({...e,width:O[e.field]||e.width})));if(T.length){const t=new Map(e.map((e=>[e.field,e])));return T.map((e=>t.get(e))).filter(Boolean)}return e}),[T,O,se]);return t(i,{children:[e(Q,{}),"modal"===o?.editMode?.editMode?e(re,{children:o?.editMode?.specs?.formComponent?e(o.editMode.specs.formComponent,{recordIdToEdit:b?b[w]:void 0,formCloseCallBk:()=>{de(!1),o.apiActions.reloadData(o?.gridLoadParametersValues)}}):e(Qr,{recordIdToEdit:b?b[w]:void 0,formCloseCallBk:()=>{de(!1),o.apiActions.reloadData(o?.gridLoadParametersValues)},elements:o.formElements,apiActions:o.apiActions,editAuthorityKey:o?.editAction?.authority,formSavedSuccessfullyCallBk:o?.editAction?.postActionCallBack,preSaveValidation:o?.editAction?.preActionValidation,actions:o?.rowActions})}):e(i,{}),void 0!==o?.hideInfoBar||o?.hideInfoBar?e(i,{}):t(m,{sx:{display:"flex"},children:[void 0!==o?.hideBackButton||o?.hideBackButton?e(i,{}):e(c,{onClick:()=>{U("-1",{replace:!0})},children:e(ae,{icon:"arrow-left"})}),t(m,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:[o?.girdIcon?e(ae,{icon:o.girdIcon,style:{marginRight:5,marginLeft:5}}):e(i,{}),e(u,{variant:"h5",children:o?.gridTitle?ki(a(o?.gridTitle)):""})]})]}),o?.gridLoadParameters&&o?.gridLoadParametersValues&&o?.setGridLoadParametersValues?t(G,{defaultExpanded:!0,children:[e(k,{expandIcon:e(je,{}),children:t(m,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[e(ae,{style:{marginLeft:5,marginRight:5},icon:"search"}),e(u,{component:"span",children:"Filters"})]})}),e(Y,{children:e(m,{children:e(Qr,{saveButtonSpecs:{label:a("SEARCH_BTN_LABEL"),icon:"search",actionButtonVariant:"outlined",actionButtonColor:"success"},cancelButtonSpecs:{label:a("RESET_BTN_LABEL"),icon:"eraser",actionButtonVariant:"outlined",actionButtonColor:"error"},apiActions:{deleteRecordById:async()=>!0,saveRecord:async e=>{null!=e?o.setGridLoadParametersValues(e):o.setGridLoadParametersValues({}),o.apiActions.reloadData(e)},reloadData:async()=>{},loadRecordById:async()=>{}},elements:o.gridLoadParameters})})})]}):e(i,{}),e(Xe,{...o?.muiProps,slots:{toolbar:Wi},slotProps:{toolbar:{templateProps:{...o,rowSelectionModel:B,data:o?.data},handleCreateNewRecord:()=>{if("form"===o?.editMode?.editMode)U(o.editMode.specs.formRoute);else if("modal"===o?.editMode?.editMode)de(!0);else if("row"===o?.editMode?.editMode){Zr-=1;const e={};e[w]=Zr,e.isNew=!0;for(const t of K)"actions"!=t?.type&&t?.field!=w&&t?.field&&(e[t.field]=null);F((t=>[e,...t])),x((e=>({...e,[Zr]:{mode:Je.Edit}})))}},clearGridState:()=>{o?.gridStateKey&&localStorage.removeItem(o.gridStateKey),E({}),A([]),I({}),N([]),D({left:[..."ltr"===p?Xr:[]],right:[..."rtl"===p?Xr:[]]})}}},getRowId:e=>e[w],showToolbar:!0,rows:o?.data,columns:pe,checkboxSelection:!0,editMode:"row",rowModesModel:"row"==o.editMode.editMode?v:void 0,onRowModesModelChange:"row"==o.editMode.editMode?e=>{x(e)}:void 0,rowGroupingColumnMode:"multiple",processRowUpdate:async r=>{if("row"===o.editMode.editMode){let a=null;const n=(e=>{try{q.parse(e)}catch(e){console.log("validateRecord err",e);let t=null;return t=e instanceof nt.ZodError?e.errors.map((e=>"Error in field ("+e.path+") : "+e.message)).join(","):"invalid record data",t}})(r);if(n){const o=n.split(",");throw ne.error(e("div",{style:{},children:o.map((o=>t(i,{children:[e("div",{children:o}),e(S,{})]})))})),new Error(n)}if(o?.editAction?.preActionValidation&&!o.editAction.preActionValidation(r))throw new Error("error on the configured presave validation");const d={...r};if(r[w]&&Fi(r[w])&&Number(r[w])<0&&(d[w]=null),a=await o.apiActions.saveRecord(d),null==a)throw new Error("Failed to process your request, contact your administrator");return o?.editAction?.postActionCallBack&&await o.editAction.postActionCallBack(r),!0===r?.isNew&&F((e=>{const t=e.filter((e=>e[w]!==r[w]));return[a,...t]})),!0===o?.editMode?.reloadAfterSave&&o?.apiActions?.reloadData&&o?.apiActions?.reloadData(o?.gridLoadParametersValues),a}},rowSelectionModel:B,onRowSelectionModelChange:e=>{W(e)},columnVisibilityModel:_,onColumnVisibilityModelChange:e=>{E(e),o?.gridStateKey&&jr(o.gridStateKey,{columnVisibilityModel:e})},onColumnOrderChange:e=>{const{column:t,targetIndex:i}=e;A((e=>{const r=e.length?[...e]:se.map((e=>e.field)),a=r.indexOf(t.field);return-1===a||(r.splice(a,1),r.splice(i,0,t.field),o?.gridStateKey&&jr(o.gridStateKey,{columnOrder:r})),r}))},onColumnWidthChange:e=>{const t={...O,[e.colDef.field]:e.width};I(t),o?.gridStateKey&&jr(o.gridStateKey,{columnWidths:t})},rowGroupingModel:f,onRowGroupingModelChange:e=>{(e=>{N(e),o?.gridStateKey&&jr(o.gridStateKey,{columnGroupingModel:e})})(e)},pinnedColumns:y,onPinnedColumnsChange:e=>{let t=e?.left||[];t=t.filter((e=>!Xr.includes(e)));let i=e?.right||[];i=i.filter((e=>!Xr.includes(e)));const r={left:[..."ltr"===p?Xr:[],...t],right:[..."rtl"===p?Xr:[],...i]};D(r),o?.gridStateKey&&jr(o.gridStateKey,{pinnedColumns:r})}})]})},ea=e=>{const t=r((e=>e.commonStores)),i=o(),a=ri(),{handleGetRequest:n,handlePostRequest:d,handleDeleteRequest:l}=Zt();return{reloadData:async o=>{if(e?.commonStoreKey){const o=Object.keys(t);for(const r of o)if(r===e.commonStoreKey&&(void 0===t[r]?.authority||null===t[r]?.authority||a.isUserAuthorized(t[r]?.authority))&&""!=t[r]?.url){await n({endPointURI:t[r].url,showMask:!1,successCallBkFn:t=>{i(Ft({storeKey:r,data:t.data})),e.setData(t.data)},failureCallBkFn:()=>{i(Ft({storeKey:r,data:[]})),e.setData([])}});break}}else e?.findAll&&await n({endPointURI:e.findAll,showMask:!0,parameters:o||{},successCallBkFn:t=>{e.setData(t.data)}})},loadRecordById:async t=>{let i=null;if(e?.findById){const o={};o[e?.findByIdParamName||"id"]=t,await n({endPointURI:e.findById,showMask:!0,parameters:o,successCallBkFn:e=>{i=e.data}})}return i},saveRecord:async t=>{let i=null;return e?.save&&await d({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}}},ta=[{path:"/",component:()=>t(m,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,fontSize:24,fontWeight:"bold"},children:[e("img",{src:"logo.png",style:{margin:5}}),e("div",{children:"Welcome to Ezzsteel Flat Product Management System"}),t("div",{style:{fontSize:16},children:["Use side menu [",e(ae,{icon:"bars",style:{marginLeft:10,marginRight:10}}),"] to navigate to your authorized system modules"]})]})},...[...[{path:"admin/attachments",component:()=>{const[t,i]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({commonStoreKey:"SystemAuthorities",deleteById:"api/v1/admin/authority",save:"api/v1/admin/authority",findById:"api/v1/admin/authority",setData:i});return e(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({commonStoreKey:"SystemDataQueries",deleteById:"api/v1/admin/dataquery",save:"api/v1/admin/dataquery",findById:"api/v1/admin/dataquery",setData:i});return e(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({commonStoreKey:"SystemDataSources",deleteById:"api/v1/admin/datasourceconnection",save:"api/v1/admin/datasourceconnection",findById:"api/v1/admin/datasourceconnection",setData:i});return e(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({commonStoreKey:"SystemEntityParameters",deleteById:"api/v1/admin/entityparameter",save:"api/v1/admin/entityparameter",findById:"api/v1/admin/entityparameter",setData:i});return e(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({commonStoreKey:"SystemRoles",deleteById:"api/v1/admin/role",save:"api/v1/admin/role",findById:"api/v1/admin/role",setData:i});return e(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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]=j([]),o=ea({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(Jr,{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"}]]],ia=()=>{const i=r((e=>e.AppLayout)),o=r((e=>e.AppInfo.value.businessRoutes));return e(Q,{value:"ltr"===i.appDirection?Ii:mi,children:e(m,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",flex:1,overflow:"hidden",padding:3},children:t(ge,{children:[ta.map(((t,i)=>e(ve,{path:t.path,Component:t.component},"adm"+i))),o.map(((t,i)=>e(ve,{path:t.path,Component:t.component},"bs"+i)))]})})})},oa=J("div")((({theme:e})=>({width:30,height:6,margin:10,backgroundColor:pt[300],borderRadius:3,top:8,...e.applyStyles("dark",{backgroundColor:pt[900]})})));function ra(i){const{window:a}=i,n=r((e=>e.AppLayout)),d=r((e=>e.AppInfo.value)),l=o(),s=e=>{l(Mt.setSideBarState(e))};return e(_t,{container:void 0!==a?()=>a().document.body:void 0,anchor:"bottom",open:n.sideBarOpened,onClose:()=>{s(!1)},onOpen:()=>{s(!0)},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},children:t(m,{sx:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",overflow:"hidden"},children:[e(oa,{}),e(m,{sx:{flexGrow:1,display:"flex",justifyContent:"center",width:"99%",overflowY:"auto"},children:e(ui,{})}),t(m,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1,width:"100%"},children:[e(u,{sx:{fontSize:12},color:"textDisabled",children:d.appName}),t(u,{sx:{fontSize:12},color:"textDisabled",children:["V.",d.appVersion]})]})]})})}const aa=()=>{const t=r((e=>e.loadingMask.value));return e(q,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:t.isOpened,children:e(K,{color:"inherit"})})},na=()=>{const a=r((e=>e.AppInfo.value)),[n,d]=j(""),[l,s]=j(""),[p,_]=j(!1),E=r((e=>e.UserSession.value)),T=o(),c=async()=>{if(null==n||""==n)return void ne.error("username is required to proceed");if(null==l||""==l)return void ne.error("password is required to proceed");_(!0);let e=null;try{if(e=await le.post(`${a.apiBaseUrl}/api/auth/login`,{username:n,password:l},{withCredentials:!0}),null!=e.data&&""!==e.data){_(!1);const t={isAuthenticated:!0,authorities:e.data.authorities,userProfile:e.data};T(bt.setAuthenticated(t))}}catch(e){_(!1),ne.error(e?.response?.data||"failed to authenticate, contact your administrator")}},A=r((e=>e.UserSession.value)),O=V(Ht);return X((()=>{(async()=>{if(a?.apiBaseUrl&&null==A.isAuthenticated)try{let e=await le.get(`${a.apiBaseUrl}/api/auth/userInfo`,{withCredentials:!0});if(null!=e&&null!=e.data){const t={isAuthenticated:!0,authorities:e.data.authorities,userProfile:e.data};T(bt.setAuthenticated(t))}else T(bt.setUnAuthenticated())}catch(e){T(bt.setUnAuthenticated())}})()}),[a]),e(z,{theme:O,children:e(F,{sx:{display:"flex",height:"100vh",width:"100%",borderRadius:0,alignItems:"center",justifyContent:"center"},children:0==E.isAuthenticated?t(m,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[e("img",{src:a?.appLogo,width:150,height:150}),e(u,{sx:{m:1},variant:"h4",color:"textSecondary",children:a?.appName}),t(u,{sx:{paddingRight:1,width:"100%",textAlign:"right",fontSize:10},variant:"caption",color:"textSecondary",children:["V.",a.appVersion]}),e(C,{label:"username",sx:{width:300,m:1},value:n,onChange:e=>{d(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&c()}}),e(C,{label:"password",sx:{width:300,m:1},value:l,type:"password",onChange:e=>{s(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&c()}}),e(y,{loading:p,onClick:c,variant:"contained",color:"primary",sx:{m:1},children:"login"})]}):t(i,{children:[e(K,{sx:{marginRight:1}}),e("div",{children:"You will be redirected shortly ... please wait"})]})})})},da=J("main",{shouldForwardProp:e=>"open"!==e})((({theme:e,open:t})=>{const i=r((e=>e.AppLayout)),a=o(),{show:n,hide:d}=zt(),l=r((e=>e.commonStores)),s=te(),p=Qt(),{isUserAuthorized:_}=ri(),{handleGetRequest:E}=Zt();return X((()=>{(async()=>{n("Loading ... please wait");let e=Object.keys(l);for(let t of e)void 0!==l[t]?.authority&&null!==l[t]?.authority&&!_(l[t]?.authority)||""==l[t]?.url||!0!==l[t].autoLoad||await E({endPointURI:l[t].url,showMask:!1,successCallBkFn:e=>{a(Ft({storeKey:t,data:e.data}))},failureCallBkFn:()=>{a(Ft({storeKey:t,data:[]}))}});d()})()}),[]),{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1,width:!p&&t?"calc(100% - 350px)":"100%",direction:i.appDirection,justifyContent:"flex-start",transition:!0===t?s.transitions.create(["margin","width"],{easing:s.transitions.easing.easeOut,duration:s.transitions.duration.enteringScreen}):s.transitions.create(["margin","width"],{easing:s.transitions.easing.sharp,duration:s.transitions.duration.leavingScreen}),marginLeft:p||"ltr"!==i.appDirection||!0!==t?0:Ct+"px",marginRight:p||"rtl"!==i.appDirection||!0!==t?0:Ct+"px"}}));function la(){const i=r((e=>e.AppLayout)),o=Qt(),a=r((e=>e.UserSession));return t(xe,{children:[e(de,{draggable:!0,position:"bottom-center"}),e(aa,{}),!0===a.value.isAuthenticated?t(da,{open:i.sideBarOpened,children:[e(ie,{}),e(ei,{}),o?null:e(Oi,{}),o?e(ra,{}):null,e(ti,{}),e(ia,{})]}):e(na,{})]})}const sa=t=>{const i=o(),a=r((e=>e.AppLayout));let n={...Vt};"dark"===a.themeMode&&(n={...Ht});const d=V({direction:a.appDirection,...n});return X((()=>{document.title=t.documentTitle,i(Yt.setAppInfo(t))}),[]),e(z,{theme:d,children:e(la,{})})};E.setLicenseKey("c2bd611fa642666253500ab9c8e4f78fTz0xMTE4MjEsRT0xNzc2OTg4Nzk5MDAwLFM9cHJlbWl1bSxMTT1zdWJzY3JpcHRpb24sUFY9aW5pdGlhbCxLVj0y"),l.add(s),l.add(p),l.add(_);const pa=t=>{if(t?.businessCommonStoresMetaData)for(let e of Object.keys(t.businessCommonStoresMetaData))Wt[e]=t.businessCommonStoresMetaData[e];if(t?.businessReduxReducers)for(let e of Object.keys(t.businessReduxReducers))i=e,o=t.businessReduxReducers[e],qt[i]||(qt[i]=o);var i,o;return e(a,{store:Kt,children:e(sa,{...t})})};function _a(e,t){return e.filter((e=>-1===t.indexOf(e)))}function Ea(e,t){return e.filter((e=>-1!==t.indexOf(e)))}const Ta=({valueField:i="id",displayField:o="name",options:r=[],selectedOptions:a=[],setSelection:n})=>{const[d,l]=Z.useState([]),[s,p]=Z.useState(r),[_,E]=Z.useState(a),[T,c]=Z.useState(""),[A,u]=Z.useState(""),O=Ea(d,s),I=Ea(d,_),f=e=>()=>{const t=d.indexOf(e),i=[...d];-1===t?i.push(e):i.splice(t,1),l(i)},N=e=>Ea(d,e).length,R=e=>()=>{var t,i;N(e)===e.length?l(_a(d,e)):l((t=d,i=e,[...t,..._a(i,t)]))},L=(r,a,n)=>{const l=a.filter((e=>{if(e[o]){const t=e[o];if("left"===n&&t.toLocaleLowerCase().includes(T.toLocaleLowerCase()))return!0;if("right"===n&&t.toLocaleLowerCase().includes(A.toLocaleLowerCase()))return!0}return!1}));return t(Tt,{sx:{height:"100%"},children:[e(ct,{sx:{px:2,py:1},avatar:e(mt,{onClick:R(l),checked:N(l)===l.length&&0!==l.length,indeterminate:N(l)!==l.length&&0!==N(l),disabled:0===l.length,inputProps:{"aria-label":"all items selected"}}),title:r,subheader:`${N(a)} / ${a.length} Selected`}),e(m,{sx:{width:"100%",padding:1},children:e(qr,{fullWidth:!0,label:"search",value:"left"===n?T:A,onChange:e=>{"left"===n?c(e.target.value):u(e.target.value)}})}),e(Ee,{}),e(Et,{sx:{width:"100%",height:"100%",bgcolor:"secondary",overflow:"auto"},dense:!0,component:"div",role:"list",children:l.map((r=>{const a=`transfer-list-all-item-${r[i]}-label`;return t(At,{role:"listitem",component:"button",onClick:f(r),children:[e(Ot,{children:e(mt,{checked:-1!==d.indexOf(r),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":a}})}),e(ut,{id:r[i],primary:r[o]})]},r[i])}))})]})};return t(x,{container:!0,spacing:2,sx:{flexGrow:1,overflow:"auto",margin:1,display:"flex",width:"100%"},justifyContent:"center",alignItems:"center",children:[e(x,{sx:{height:"100%",flex:1},children:L("Available Items",s,"left")}),e(x,{children:t(x,{container:!0,direction:"column",alignItems:"center",children:[e(It,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{E((e=>{let t=_.concat(O);return n(t),t})),p(_a(s,O)),l(_a(d,O))},disabled:0===O.length,"aria-label":"move selected right",children:">"}),e(It,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{p(s.concat(I)),E((e=>{let t=_a(_,I);return n(t),t})),l(_a(d,I))},disabled:0===I.length,"aria-label":"move selected left",children:"<"})]})}),e(x,{sx:{height:"100%",flex:1},children:L("Currently Selected",_,"right")})]})},ca=t=>{const i=t.data.map(((e,i)=>({id:i,value:e[t.valueField],label:e[t.labelField]+""})));return console.log("chartData",i),e(Nt,{series:[{data:i}]})},Aa=t=>e(Rt,{dataset:t.data,xAxis:[{dataKey:t.valueField,scaleType:"band"}],series:t.labelField?.split(",").map((e=>({dataKey:e,label:e})))}),ua=t=>e(Lt,{dataset:t.data,xAxis:[{dataKey:t.valueField,scaleType:"band"}],series:t.labelField?.split(",").map((e=>({dataKey:e,label:e})))}),Oa=o=>t(i,{children:[t(u,{sx:{fontSize:16,fontWeight:"bold"},children:[o.widgetTitle," - ",o.record[o.labelField]]}),e(yt,{width:200,height:200,value:o.record[o.valueField]})]}),ma=i=>t(F,{sx:{display:"flex",flexDirection:"column",height:150,padding:1,flexGrow:1,justifyContent:"center",alignItems:"center"},children:[e(m,{sx:{display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"},children:e(u,{sx:{fontSize:16,fontWeight:"bold"},children:i.widgetTitle})}),e(m,{sx:{flex:1,display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"},children:e("div",{children:`${i.record[i.labelField]} : ${i.record[i.valueField]}`})}),e(m,{sx:{display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"}})]});function Ia(i){return t(Oe,{sx:{display:"flex",alignItems:"center"},children:[e(Oe,{sx:{width:"100%",mr:1},children:e(Dt,{variant:"determinate",...i})}),e(Oe,{sx:{minWidth:35},children:e(Ie,{variant:"body2",sx:{color:"text.secondary"},children:`${Math.round(i.value)}%`})})]})}const fa=i=>t(Oe,{sx:{width:"100%"},children:[t(Ie,{sx:{fontSize:16,fontWeight:"bold"},children:[i.widgetTitle," - ",i.record[i.labelField]]}),e(Ia,{value:i.record[i.valueField]})]}),Na=({children:t,widgetType:i})=>e(ft,{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}),Ra=o=>t(i,{children:[e(u,{sx:{fontSize:20,fontWeight:"bold"},children:o.dashboardTitle}),e(ft,{container:!0,sx:{flexGrow:1,width:"100%",overflowY:"auto",padding:2},children:o.dashboardWidgets.map(((o,r)=>"Card"===o.widgetType||"Gauge"===o.widgetType||"Progress"===o.widgetType?e(i,{children:o.data.map(((i,r)=>{const a={widgetTitle:o.widgetTitle,record:i,labelField:o.labelField,valueField:o.valueField};return t(Na,{widgetType:o.widgetType,children:["Card"===o.widgetType?e(ma,{...a}):null,"Gauge"===o.widgetType?e(Oa,{...a}):null,"Progress"===o.widgetType?e(fa,{...a}):null]},r)}))}):t(Na,{widgetType:o.widgetType,children:["Pie"===o.widgetType?e(ca,{...o}):null,"Line"===o.widgetType?e(ua,{...o}):null,"Bar"===o.widgetType?e(Aa,{...o}):null]},r)))})]});export{pa as BaseApp,Ui as CheckBox,Ci as ComboBox,Ri as DATE_FORMAT,Li as DATE_TIME_FORMAT,yi as Datefield,Di as DatetimeField,Aa as TemplateBarChart,Ra as TemplateDashboard,ma as TemplateDataCard,Qr as TemplateForm,Oa as TemplateGauge,Jr as TemplateGrid,ua as TemplateLineChart,fa as TemplateLineProgress,ca as TemplatePieChart,qr as TemplateTextField,Ta as TransferList,ki as capitalizeFirstLetter,wi as hasDigitsOnly,Fi as isNumber,Gi as isNumeric,Zt as useAxios,fi as useConfirmationWindow,Qt as useIsMobile,zt as useLoadingMask,ri as useSession,zr as useWindow};
|
|
32
32
|
//# sourceMappingURL=index.mjs.map
|