@asaleh37/ui-base 1.2.3 → 1.2.5

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.
Files changed (157) hide show
  1. package/dist/index.d.ts +20 -13
  2. package/dist/index.js +6 -6
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +6 -6
  5. package/dist/index.mjs.map +1 -1
  6. package/package.json +15 -3
  7. package/src/components/App.tsx +1 -1
  8. package/src/components/BaseApp.tsx +2 -19
  9. package/src/components/administration/admin/OrgMemberRoleForm.tsx +83 -0
  10. package/src/components/administration/admin/OrganizationApplicationModuleGrid.tsx +131 -0
  11. package/src/components/administration/admin/OrganizationGrid.tsx +165 -0
  12. package/src/components/administration/admin/OrganizationMemberGrid.tsx +176 -0
  13. package/src/components/administration/admin/OrganizationMemberRoleGrid.tsx +87 -0
  14. package/src/components/{admin → administration/admin}/OrganizationRankGrid.tsx +49 -19
  15. package/src/components/administration/admin/OrganizationUnitGrid.tsx +139 -0
  16. package/src/components/administration/admin/OrganizationUnitTypeGrid.tsx +121 -0
  17. package/src/components/administration/admin/PersonGrid.tsx +195 -0
  18. package/src/components/{admin → administration/admin}/RoleAuthoritiesForm.tsx +30 -11
  19. package/src/components/administration/admin/SystemApplicationAuthorityGrid.tsx +142 -0
  20. package/src/components/administration/admin/SystemApplicationGrid.tsx +161 -0
  21. package/src/components/administration/admin/SystemApplicationModuleGrid.tsx +109 -0
  22. package/src/components/administration/admin/SystemApplicationRoleAuthorityGrid.tsx +67 -0
  23. package/src/components/administration/admin/SystemApplicationRoleGrid.tsx +130 -0
  24. package/src/components/administration/dev/BluePrintGrid.tsx +129 -0
  25. package/src/components/administration/dev/DashboardGrid.tsx +173 -0
  26. package/src/components/administration/dev/DashboardWidgetGrid.tsx +164 -0
  27. package/src/components/administration/dev/DataQueryGrid.tsx +206 -0
  28. package/src/components/administration/dev/DataQueryParameterGrid.tsx +191 -0
  29. package/src/components/administration/dev/DataQueryParametersForm.tsx +84 -0
  30. package/src/components/administration/dev/DatasourceConnectionGrid.tsx +150 -0
  31. package/src/components/administration/dev/EntityParameterGrid.tsx +279 -0
  32. package/src/components/administration/dev/LookupGrid.tsx +131 -0
  33. package/src/components/administration/dev/MailAttachmentGrid.tsx +155 -0
  34. package/src/components/administration/dev/MailBodyGrid.tsx +215 -0
  35. package/src/components/{admin → administration/dev}/MailNotificationQueueGrid.tsx +114 -26
  36. package/src/components/administration/dev/MailRecipientGrid.tsx +169 -0
  37. package/src/components/administration/dev/MailSenderConfigGrid.tsx +478 -0
  38. package/src/components/administration/dev/MailTemplateGrid.tsx +388 -0
  39. package/src/components/administration/dev/ReportGrid.tsx +504 -0
  40. package/src/components/administration/dev/ReportParameterGrid.tsx +186 -0
  41. package/src/components/administration/dev/ReportParametersForm.tsx +84 -0
  42. package/src/components/administration/dev/WidgetGrid.tsx +431 -0
  43. package/src/components/administration/dev/WorkflowDocumentActionGrid.tsx +264 -0
  44. package/src/components/administration/dev/WorkflowDocumentActionHistoryGrid.tsx +172 -0
  45. package/src/components/administration/dev/WorkflowDocumentActionMailGrid.tsx +161 -0
  46. package/src/components/administration/dev/WorkflowDocumentGrid.tsx +377 -0
  47. package/src/components/{admin → administration/dev}/WorkflowDocumentMailLogGrid.tsx +87 -10
  48. package/src/components/administration/dev/WorkflowDocumentStatusGrid.tsx +243 -0
  49. package/src/components/common/ChangeOrgForm.tsx +81 -0
  50. package/src/components/common/Home.tsx +28 -22
  51. package/src/components/common/LoadingMask.tsx +9 -4
  52. package/src/components/common/Login.tsx +9 -13
  53. package/src/components/templates/DataEntryTemplates/DataEntryTypes.ts +30 -6
  54. package/src/components/templates/DataEntryTemplates/DataEntryUtil.ts +46 -5
  55. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementField.tsx +64 -5
  56. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementGroup.tsx +11 -3
  57. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/CheckBox.tsx +2 -2
  58. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/ComboBox.tsx +1 -2
  59. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/HtmlEditor.tsx +144 -0
  60. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/SystemLookupCombobox.tsx +55 -0
  61. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField.tsx +9 -1
  62. package/src/components/templates/DataEntryTemplates/TemplateDataForm/TemplateForm.tsx +45 -5
  63. package/src/components/templates/DataEntryTemplates/TemplateDataGrid/DataGridColumnsUtil.tsx +8 -7
  64. package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid.tsx +38 -10
  65. package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridRecordAction.tsx +4 -1
  66. package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridTopBar.tsx +3 -4
  67. package/src/components/templates/TransferList.tsx +16 -6
  68. package/src/components/templates/index.ts +0 -2
  69. package/src/components/templates/report/ExcelReportViewer.tsx +65 -0
  70. package/src/components/templates/report/ReportViewer.tsx +382 -0
  71. package/src/components/templates/visuals/DashboardRouteView.tsx +9 -0
  72. package/src/components/templates/visuals/DashboardViewer.tsx +148 -0
  73. package/src/components/templates/visuals/WidgetViewer.tsx +198 -0
  74. package/src/components/templates/visuals/charts/TemplateBarChart.tsx +9 -2
  75. package/src/components/templates/visuals/charts/TemplateDataCard.tsx +6 -31
  76. package/src/components/templates/visuals/charts/TemplateGauge.tsx +8 -3
  77. package/src/components/templates/visuals/charts/TemplateLineChart.tsx +8 -2
  78. package/src/components/templates/visuals/charts/TemplateLineProgress.tsx +5 -3
  79. package/src/components/templates/visuals/charts/TemplatePieChart.tsx +1 -2
  80. package/src/components/templates/workflow/WorkflowDocumentPanel.tsx +581 -0
  81. package/src/components/templates/workflow/WorkflowDocumentTimeLine.tsx +134 -0
  82. package/src/hooks/UseSession.tsx +3 -7
  83. package/src/hooks/UseWindow.tsx +2 -1
  84. package/src/hooks/useAxios.tsx +9 -27
  85. package/src/hooks/useLookupGridColumn.tsx +35 -0
  86. package/src/layout/Layout.tsx +2 -46
  87. package/src/layout/MainContent.tsx +60 -7
  88. package/src/layout/MobileDrawer.tsx +5 -5
  89. package/src/layout/NavigationTree.tsx +0 -1
  90. package/src/layout/RouteWrapper.tsx +36 -0
  91. package/src/layout/SideBar.tsx +15 -10
  92. package/src/layout/TopBar.tsx +139 -71
  93. package/src/locales/arabic/adminLocalsAr.json +81 -344
  94. package/src/locales/arabic/common.json +11 -1
  95. package/src/locales/arabic/devLocalsAr.json +280 -0
  96. package/src/locales/arabic/index.ts +2 -0
  97. package/src/locales/english/adminLocalsEn.json +86 -346
  98. package/src/locales/english/common.json +11 -1
  99. package/src/locales/english/devLocalsEn.json +281 -0
  100. package/src/locales/english/index.ts +3 -0
  101. package/src/main.tsx +5 -6
  102. package/src/navigationItems/Administration/adminNavigationItems.tsx +65 -99
  103. package/src/navigationItems/Administration/index.tsx +10 -65
  104. package/src/redux/features/administration/AdministrationStoresMetaData.ts +45 -12
  105. package/src/redux/features/common/AppLayoutSlice.ts +0 -8
  106. package/src/redux/features/common/CommonStoreSlice.ts +4 -0
  107. package/src/redux/features/common/SideBarSlice.ts +29 -0
  108. package/src/redux/features/common/UserSessionSlice.ts +15 -23
  109. package/src/redux/store.ts +1 -1
  110. package/src/routes/administration/adminRoutes.tsx +41 -222
  111. package/src/routes/administration/devRoutes.tsx +90 -0
  112. package/src/routes/administration/index.ts +5 -1
  113. package/src/routes/index.ts +1 -0
  114. package/src/styles/index.css +3 -3
  115. package/src/util/AppUtils.ts +5 -0
  116. package/vite.config.ts +14 -0
  117. package/src/components/admin/AttachmentGrid.tsx +0 -116
  118. package/src/components/admin/AuthorityGrid.tsx +0 -88
  119. package/src/components/admin/BluePrintGrid.tsx +0 -55
  120. package/src/components/admin/BluePrintPageGrid.tsx +0 -85
  121. package/src/components/admin/BluePrintPointGrid.tsx +0 -85
  122. package/src/components/admin/DashboardGrid.tsx +0 -95
  123. package/src/components/admin/DashboardWidgetGrid.tsx +0 -75
  124. package/src/components/admin/DataQueryGrid.tsx +0 -75
  125. package/src/components/admin/DataQueryParameterGrid.tsx +0 -98
  126. package/src/components/admin/DatasourceConnectionGrid.tsx +0 -98
  127. package/src/components/admin/EmployeeGrid.tsx +0 -105
  128. package/src/components/admin/EntityParameterGrid.tsx +0 -125
  129. package/src/components/admin/ExcelUploaderDetailGrid.tsx +0 -78
  130. package/src/components/admin/ExcelUploaderHeaderGrid.tsx +0 -78
  131. package/src/components/admin/LookupGrid.tsx +0 -95
  132. package/src/components/admin/MailAttachmentGrid.tsx +0 -65
  133. package/src/components/admin/MailBodyGrid.tsx +0 -105
  134. package/src/components/admin/MailRecipientGrid.tsx +0 -75
  135. package/src/components/admin/MailTemplateGrid.tsx +0 -145
  136. package/src/components/admin/NewTableGrid.tsx +0 -65
  137. package/src/components/admin/NotificationGrid.tsx +0 -115
  138. package/src/components/admin/NotificationQueueGrid.tsx +0 -125
  139. package/src/components/admin/OrganizationApplicationGrid.tsx +0 -81
  140. package/src/components/admin/OrganizationGrid.tsx +0 -65
  141. package/src/components/admin/OrganizationUnitGrid.tsx +0 -85
  142. package/src/components/admin/OrganizationUserGrid.tsx +0 -75
  143. package/src/components/admin/OrganizationUserRoleGrid.tsx +0 -98
  144. package/src/components/admin/ReportGrid.tsx +0 -155
  145. package/src/components/admin/ReportParameterGrid.tsx +0 -95
  146. package/src/components/admin/RoleAuthorityGrid.tsx +0 -65
  147. package/src/components/admin/RoleGrid.tsx +0 -132
  148. package/src/components/admin/UserAccountGrid.tsx +0 -65
  149. package/src/components/admin/UserRequestGrid.tsx +0 -145
  150. package/src/components/admin/WidgetGrid.tsx +0 -175
  151. package/src/components/admin/WorkflowDocumentActionGrid.tsx +0 -111
  152. package/src/components/admin/WorkflowDocumentActionHistoryGrid.tsx +0 -111
  153. package/src/components/admin/WorkflowDocumentActionMailGrid.tsx +0 -71
  154. package/src/components/admin/WorkflowDocumentGrid.tsx +0 -185
  155. package/src/components/admin/WorkflowDocumentStatusGrid.tsx +0 -121
  156. package/src/components/templates/visuals/TemplateDashboard.tsx +0 -126
  157. package/src/redux/features/CounterSlice.tsx +0 -13
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{library as n}from"@fortawesome/fontawesome-svg-core";import{fab as d}from"@fortawesome/free-brands-svg-icons";import{far as l}from"@fortawesome/free-regular-svg-icons";import{fas as s}from"@fortawesome/free-solid-svg-icons";import"react-toastify/dist/ReactToastify.css";import{styled as p,IconButton as _,Avatar as E,Typography as T,useTheme as c,Box as A,Dialog as u,DialogTitle as m,DialogContent as O,DialogContentText as I,DialogActions as f,Button as N,Autocomplete as R,TextField as L,Popper as y,FormControlLabel as D,Checkbox as C,Tooltip as U,Badge as M,Divider as h,MenuItem as P,InputAdornment as b,Grid2 as S,Modal as g,AppBar as v,Toolbar as x,Paper as B,Accordion as W,AccordionSummary as w,AccordionDetails as F,ListItemButton as k,Backdrop as G,CircularProgress as Y,createTheme as K}from"@mui/material";export*from"@mui/material";import{ThemeContext as q,CacheProvider as V,ThemeProvider as H}from"@emotion/react";import*as Q from"react";import z,{useState as Z,useEffect as $}from"react";import{styled as j,alpha as X,useTheme as J}from"@mui/material/styles";import ee from"@mui/material/CssBaseline";import te from"@mui/material/AppBar";import ie from"@mui/material/Toolbar";import{FontAwesomeIcon as oe}from"@fortawesome/react-fontawesome";export{FontAwesomeIcon}from"@fortawesome/react-fontawesome";import{createSlice as re,configureStore as ae}from"@reduxjs/toolkit";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 me from"@mui/material/Box";import Oe 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 ke,Toolbar as Ge,ColumnsPanelTrigger as Ye,GridViewColumnIcon as Ke,FilterPanelTrigger as qe,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 pt from"@mui/material/List";import _t from"@mui/material/Card";import Et from"@mui/material/CardHeader";import Tt from"@mui/material/ListItemText";import ct from"@mui/material/ListItemIcon";import At from"@mui/material/Checkbox";import ut from"@mui/material/Button";import mt from"@mui/material/Grid2";import{PieChart as Ot}from"@mui/x-charts/PieChart";import{BarChart as It,LineChart as ft,Gauge as Nt}from"@mui/x-charts";import Rt from"@mui/material/LinearProgress";import{grey as Lt}from"@mui/material/colors";import yt from"@mui/material/SwipeableDrawer";import{LicenseInfo as Dt}from"@mui/x-license";!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 Ct=(e=768)=>{const[t,i]=Z(window.innerWidth<e);return $((()=>{const t=()=>i(window.innerWidth<e);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[e]),t},Ut=350,Mt=re({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}}}),ht=Mt.actions;var Pt=Mt.reducer;const bt=re({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:St,hideLoadingMask:gt}=bt.actions;var vt=bt.reducer;const xt=()=>{const e=o();return{show:t=>{e(St(t))},hide:()=>{e(gt())}}},Bt=()=>{const e=xt(),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")}}},Wt=re({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}}}}),wt=Wt.actions;var Ft=Wt.reducer,kt={"System Administration":"إدارة النظام",welcome:"مرحبا",APP_SETTINGS_LABEL:"الاعدادت",WELCOME_MESSAGE:"اهلا , هذا التطبيق تحت التطوير و هو مصمم للتطبيقات المستقبلية",APP_FOOTER:"حقوق الملكية<sup>&copy;</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 Gt={welcome:"welcome",APP_SETTINGS_LABEL:"Settings",WELCOME_MESSAGE:" Hello, This is an under development template for future apps",APP_FOOTER:"Copyright<sup>&copy;</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 Yt={en:{translation:{...Gt,...{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:{...kt,...{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:Yt,lng:localStorage.getItem("language")||"en",fallbackLng:"en"});const Kt=p(te,{shouldForwardProp:e=>"open"!==e})((({theme:e})=>{const t=r((e=>e.AppLayout)),i=Ct();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})}}]}})),qt=()=>{const i=r((e=>e.AppInfo.value)),a=r((e=>e.AppLayout)),n=r((e=>e.UserSession)),{handleGetRequest:d}=Bt(),l=Ct(),s=o();return e(Kt,{position:"fixed",open:a.sideBarOpened,children:t(ie,{children:[e(_,{color:"inherit","aria-label":"open drawer",onClick:()=>{s(ht.toggleSideBarState())},edge:"start",sx:[{mr:"ltr"===a.appDirection?2:void 0,ml:"rtl"===a.appDirection?2:void 0},a.sideBarOpened&&{display:"none"}],children:e(oe,{icon:"bars"})}),e(E,{src:i.appLogo,sx:{marginRight:1,marginLeft:1}}),e(T,{variant:"h6",noWrap:!0,component:"div",sx:{flex:1},children:l?"":i.appName}),e(_,{color:"inherit",onClick:()=>{s(ht.setThemeMode("light"===a.themeMode?"dark":"light")),localStorage.setItem("themeMode","light"===a.themeMode?"dark":"light")},children:"light"===a.themeMode?e(oe,{icon:"moon"}):e(oe,{icon:{prefix:"far",iconName:"sun"}})}),e(_,{color:"inherit",onClick:()=>{let e="ar"===se.language?"en":"ar";var t;t=e,se.changeLanguage(t),localStorage.setItem("language",t),s(ht.setAppDirection("ar"===e?"rtl":"ltr"))},children:e(oe,{icon:"language"})}),e(E,{}),e("div",{style:{marginLeft:5,marginRight:5},children:l?"":n.value?.userProfile?.username}),e(_,{color:"inherit",onClick:async()=>{try{await d({endPointURI:"api/auth/logout"})}catch(e){console.log("logout error",e)}s(wt.setUnAuthenticated())},children:e(oe,{rotation:"rtl"===a.appDirection?180:void 0,icon:"arrow-right-from-bracket"})})]})})},Vt=p("div")((({theme:e})=>({display:"flex",alignItems:"center",...e.mixins.toolbar,justifyContent:"flex-end"})));function Ht(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=Ht(e[t]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function Qt(){for(var e,t,i=0,o="",r=arguments.length;i<r;i++)(e=arguments[i])&&(t=Ht(e))&&(o&&(o+=" "),o+=t);return o}const zt=()=>{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}}},Zt=(e,t)=>{for(const i of t){if(i.id===e)return i;if(i.children){const t=Zt(e,i.children);if(t)return t}}},$t=[...[{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 jt(){return e(me,{sx:{width:6,height:6,borderRadius:"70%",bgcolor:"warning.main",display:"inline-block",verticalAlign:"middle",zIndex:1,mx:1}})}const Xt=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]})}))),Jt=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:X(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})}}))),ei=Ae(Oe);function ti(t){const i=ue({to:{opacity:t.in?1:0,transform:`translate3d(0,${t.in?0:20}px,0)`}});return e(ei,{style:i,...t})}const ii=j(Ie)({color:"inherit",fontWeight:500});function oi({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(oe,{style:{marginRight:"ltr"===l.appDirection?7:void 0,marginLeft:"rtl"===l.appDirection?7:void 0,fontSize:"1.2rem"},icon:i}),e(ii,{variant:"body2",sx:{fontSize:16},children:d(a)}),o&&e(jt,{})]})}const ri=e=>Array.isArray(e)?e.length>0&&e.some(ri):Boolean(e),ai=Q.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:m,publicAPI:O}=Re({id:r,itemId:a,children:l,label:n,disabled:d,rootRef:o}),I=O.getItem(a),f=ri(l);return e(he,{itemId:a,children:t(Xt,{...p(s),children:[t(Jt,{..._({className:Qt("content",{"Mui-expanded":m.expanded,"Mui-selected":m.selected,"Mui-focused":m.focused,"Mui-disabled":m.disabled})}),children:[e(De,{...E(),children:e(Me,{status:m})}),e(Ce,{...T()}),e(oi,{...c({icon:I?.icon||"book",expandable:f&&m.expanded})}),e(Pe,{...u()})]}),l&&e(ti,{...A()})]})})}));function ni(){const t=be(),i=r((e=>e.AppLayout)),a=r((e=>e.AppInfo.value));o();const n=Ct(),{isUserAuthorized:d}=zt(),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=[];a.enableAdministrationModule&&s.push(...$t),s.push(...a.businessNavigationItems);const p=l(s);return e(fe,{items:p,onItemClick:(e,i)=>{const o=Zt(i,s);"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:Ut,direction:i.appDirection,maxHeight:n?300:void 0,overflowY:"auto",overflowX:"auto"},slots:{item:ai}})}const di=()=>{const i=r((e=>e.AppInfo.value)),a=c(),n=r((e=>e.AppLayout)),d=o();return t(ce,{sx:{width:Ut,flexShrink:0,"& .MuiDrawer-paper":{width:Ut,boxSizing:"border-box"}},variant:"persistent",anchor:"ltr"===n.appDirection?"left":"right",open:n.sideBarOpened,children:[t(Vt,{children:[t(A,{sx:{width:"100%"},children:[e(T,{color:"primary",sx:{width:"100%",textAlign:"center",fontSize:18,fontWeight:"bold"},children:"System Content"}),t(A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1},children:[e(T,{sx:{fontSize:12},color:"textDisabled",children:i.appName}),t(T,{sx:{fontSize:12},color:"textDisabled",children:["V.",i.appVersion]})]})]}),e(Te,{onClick:()=>{d(ht.toggleSideBarState())},children:"ltr"===a.direction?e(oe,{icon:"angle-left"}):e(oe,{icon:"angle-right"})})]}),e(Ee,{}),e(ni,{})]})},li=we({key:"muirtl",stylisPlugins:[We,Be]}),si=we({key:"mui"}),pi=i=>{const[o,r]=Z(!1),{t:a}=_e();return{ConfirmationWindow:()=>t(u,{open:o,children:[e(m,{children:i.title}),e(O,{children:e(I,{children:i.body})}),t(f,{children:[e(N,{variant:"contained",color:"primary",onClick:()=>{r(!1)},children:a("NO_LABEL")}),e(N,{variant:"contained",color:"error",onClick:()=>{i.onConfirmationCallBk(),r(!1)},autoFocus:!0,children:a("YES_LABEL")})]})]}),open:o,setOpen:r}},_i=o=>{const{t:r}=_e(),a=zt(),{ConfirmationWindow:n,setOpen:d}=pi({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(N,{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(oe,{style:{marginRight:5,marginLeft:5},icon:o.icon}):e(i,{}),o?.label?r(o.label):e(i,{})]})]})},Ei="YYYY-MM-DD",Ti="YYYY-MM-DD HH:mm:ss",ci="#37505C",Ai="#ff6d00",ui="#ea690e",mi="#74776B",Oi=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||Ei):null,sx:t.sx,label:o(t.label),format:t?.format||Ei,disabled:t.disabled,onChange:e=>{let i=null;null!=e&&e.isValid()&&(i=e.format(t?.format||Ei)),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,{})}}})})},Ii=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||Ti):null,label:o(t.label),sx:t.sx,format:t?.format||Ti,disabled:t.disabled,onChange:e=>{let i=null;null!=e&&e.isValid()&&(i=e.format(t?.format||Ti)),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,{})}}})})},fi=t=>{const i=r((e=>e.AppLayout)),{t:o}=_e();return e(R,{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(y,{...t,style:{...t.style,direction:i.appDirection}})},renderInput:i=>e(L,{...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):""})})},Ni=t=>{const{t:i}=_e();return e(D,{sx:t.sx,disabled:t.disabled||!1,required:t.required||!1,control:e(C,{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)})},Ri=t=>({...t,type:"string",renderEditCell:t=>e(Ii,{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(Ti)),o},valueFormatter:(e,t,i)=>t[i.field]}),Li=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(fi,{...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+""})}})}),yi=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(oe,{icon:"check",color:"green"}):e(oe,{icon:"xmark",color:"red"})},renderEditCell:i=>e(Ni,{...i,checkedValue:t?.checkedValue||"true",unCheckedValue:t?.unCheckedValue||"false",onChangeCallBack:e=>{i.api.setEditCellValue({id:i.id,field:i.field,value:e+""})}})}),Di=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(...Di(i));return t},Ci=e=>{const t=[];for(const i of e)t.push(...Di(i));return t},Ui=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},Mi=p(Fe)({display:"grid",alignItems:"center"}),hi=p(ke)((({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"])}))),Pi=p(L)((({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"])}))),bi=o=>{const{t:r}=_e(),a=zt(),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(Ge,{children:[n&&"none"!=o?.templateProps?.editMode?.editMode?t(N,{onClick:o?.handleCreateNewRecord,children:[e(oe,{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(_i,{...t,reloadData:async()=>{o.templateProps.apiActions.reloadData(o?.templateProps?.gridLoadParametersValues)},recordIdsToProcessActionOn:d.selectedRecordIds,recordsToProcessActionOn:d.selectedRecords}):e(i,{}))):e(i,{}),e(A,{sx:{flex:1,mx:.5},children:o?.templateProps?.tBar}),e(U,{title:"Columns",children:e(Ye,{render:e(ke,{}),children:e(Ke,{fontSize:"small"})})}),e(U,{title:"Filters",children:e(qe,{render:(t,i)=>e(ke,{...t,color:"default",children:e(M,{badgeContent:i.filterCount,color:"primary",variant:"dot",children:e(Ve,{fontSize:"small"})})})})}),o?.templateProps?.gridStateKey?e(U,{title:r("RESET_GRID_STATE"),children:e(_,{onClick:o?.clearGridState,children:e(oe,{icon:"eraser"})})}):e(i,{}),e(h,{orientation:"vertical",variant:"middle",flexItem:!0,sx:{mx:.5}}),e(U,{title:r("EXPORT_EXECL_LABEL"),children:e(He,{render:e(P,{}),children:e(oe,{icon:"file-excel",color:"green"})})}),t(Mi,{children:[e(Qe,{render:(t,i)=>e(U,{title:r("SEARCH_BTN_LABEL"),enterDelay:0,children:e(hi,{...t,ownerState:{expanded:i.expanded},color:"default","aria-disabled":i.expanded,children:e(oe,{icon:"search"})})})}),e(ze,{render:({ref:t,...i},o)=>e(Pi,{...i,ownerState:{expanded:o.expanded},inputRef:t,"aria-label":"Search",placeholder:`${r("SEARCH_BTN_LABEL")}...`,size:"small",slotProps:{input:{startAdornment:e(b,{position:"start",children:e(oe,{icon:"search"})}),endAdornment:o.value?e(b,{position:"end",children:e(Ze,{edge:"end",size:"small","aria-label":"Clear search",children:e(oe,{icon:"xmark"})})}):null,...i.slotProps?.input},...i.slotProps}})})]}),e(_,{onClick:()=>{o.templateProps.apiActions.reloadData(o?.templateProps?.gridLoadParametersValues)},children:e(oe,{icon:"refresh"})})]})};function Si(e){return/^\d+$/.test(e)}function gi(e){return"number"==typeof e&&!isNaN(e)}function vi(e){return"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e))}function xi(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}const Bi=o=>{const{t:r}=_e(),a=zt(),{ConfirmationWindow:n,setOpen:d}=pi({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(U,{title:o?.label?r(o.label):"",children:e(oe,{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 Wi(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 wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fi,ki={exports:{}},Gi={exports:{}},Yi={};var Ki,qi,Vi,Hi,Qi,zi,Zi,$i,ji,Xi,Ji,eo,to,io,oo,ro={};
1
+ import{jsxs as e,jsx as i,Fragment as t}from"react/jsx-runtime";import{useDispatch as o,useSelector as a,Provider as r}from"react-redux";import{library as d}from"@fortawesome/fontawesome-svg-core";import{fab as l}from"@fortawesome/free-brands-svg-icons";import{far as n}from"@fortawesome/free-regular-svg-icons";import{fas as s}from"@fortawesome/free-solid-svg-icons";import"react-toastify/dist/ReactToastify.css";import{Dialog as p,DialogTitle as c,DialogContent as m,DialogContentText as _,DialogActions as A,Button as T,Modal as u,Box as E,AppBar as f,Toolbar as I,Typography as O,IconButton as N,Paper as y,TextField as R,Grid2 as L,ListItemButton as h,FormControlLabel as P,Checkbox as M,Autocomplete as C,Popper as D,styled as b,Tooltip as g,Badge as S,Divider as U,MenuItem as v,InputAdornment as w,Accordion as B,AccordionSummary as x,AccordionDetails as F,Avatar as k,useTheme as W,Backdrop as G,CircularProgress as V,createTheme as Y}from"@mui/material";export*from"@mui/material";import{ThemeContext as q,CacheProvider as K,ThemeProvider as z}from"@emotion/react";import*as H from"react";import Q,{useState as Z,useEffect as j,createElement as $}from"react";import{styled as X,alpha as J,useTheme as ee}from"@mui/material/styles";import ie from"@mui/material/CssBaseline";import te from"@mui/material/AppBar";import oe from"@mui/material/Toolbar";import{FontAwesomeIcon as ae}from"@fortawesome/react-fontawesome";export{FontAwesomeIcon}from"@fortawesome/react-fontawesome";import{createSlice as re,configureStore as de}from"@reduxjs/toolkit";import{toast as le,ToastContainer as ne}from"react-toastify";export{toast}from"react-toastify";import se from"axios";import pe from"i18next";import{initReactI18next as ce,useTranslation as me}from"react-i18next";import _e from"@mui/material/List";import Ae from"@mui/material/Card";import Te from"@mui/material/CardHeader";import ue from"@mui/material/ListItemText";import Ee from"@mui/material/ListItemIcon";import fe from"@mui/material/Checkbox";import Ie from"@mui/material/Button";import Oe from"@mui/material/Divider";import{BarChart as Ne,Gauge as ye,LineChart as Re}from"@mui/x-charts";import Le from"@mui/material/LinearProgress";import he from"@mui/material/Typography";import Pe from"@mui/material/Box";import{PieChart as Me}from"@mui/x-charts/PieChart";import{LocalizationProvider as Ce,DatePicker as De,DateTimePicker as be}from"@mui/x-date-pickers";import{AdapterMoment as ge}from"@mui/x-date-pickers/AdapterMoment";import Se from"moment";import*as Ue from"zod";import{z as ve}from"zod";export*from"zod";import{useForm as we}from"react-hook-form";import{zodResolver as Be}from"@hookform/resolvers/zod";import{useParams as xe,useNavigate as Fe,Routes as ke,Route as We,BrowserRouter as Ge}from"react-router-dom";import{EditorState as Ve,convertToRaw as Ye}from"draft-js";import{Editor as qe}from"react-draft-wysiwyg";import Ke from"draftjs-to-html";import{stateFromHTML as ze}from"draft-js-import-html";import"react-draft-wysiwyg/dist/react-draft-wysiwyg.css";import{QuickFilter as He,ToolbarButton as Qe,Toolbar as Ze,ColumnsPanelTrigger as je,GridViewColumnIcon as $e,FilterPanelTrigger as Xe,GridFilterListIcon as Je,ExportExcel as ei,QuickFilterTrigger as ii,QuickFilterControl as ti,QuickFilterClear as oi,GridActionsCellItem as ai,GridExpandMoreIcon as ri,DataGridPremium as di,GridRowModes as li}from"@mui/x-data-grid-premium";import ni from"@mui/material/IconButton";import si from"@mui/material/Drawer";import{animated as pi,useSpring as ci}from"@react-spring/web";import mi from"@mui/material/Collapse";import{RichTreeView as _i}from"@mui/x-tree-view/RichTreeView";import{treeItemClasses as Ai}from"@mui/x-tree-view/TreeItem";import{useTreeItem2 as Ti}from"@mui/x-tree-view/useTreeItem2";import{TreeItem2Root as ui,TreeItem2Content as Ei,TreeItem2IconContainer as fi,TreeItem2Checkbox as Ii,TreeItem2Label as Oi}from"@mui/x-tree-view/TreeItem2";import{TreeItem2Icon as Ni}from"@mui/x-tree-view/TreeItem2Icon";import{TreeItem2Provider as yi}from"@mui/x-tree-view/TreeItem2Provider";import{TreeItem2DragAndDropOverlay as Ri}from"@mui/x-tree-view/TreeItem2DragAndDropOverlay";import Li from"stylis-plugin-rtl";import{prefixer as hi}from"stylis";import Pi from"@emotion/cache";import Mi from"@emotion/styled";import{grey as Ci}from"@mui/material/colors";import Di from"@mui/material/SwipeableDrawer";import{LicenseInfo as bi}from"@mui/x-license";!function(e,i){void 0===i&&(i={});var t=i.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&o.firstChild?o.insertBefore(a,o.firstChild):o.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("html,\r\nbody {\r\n height: 100vh;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\n#root {\r\n height: 100vh;\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 gi=(e=768)=>{const[i,t]=Z(window.innerWidth<e);return j((()=>{const i=()=>t(window.innerWidth<e);return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)}),[e]),i},Si=350,Ui=re({name:"AppLayout",initialState:{themeMode:localStorage.getItem("themeMode")||"light",appDirection:"ar"==localStorage.getItem("language")?"rtl":"ltr"},reducers:{setThemeMode:(e,i)=>{e.themeMode=i.payload},setAppDirection:(e,i)=>{e.appDirection=i.payload}}}),vi=Ui.actions;var wi=Ui.reducer;const Bi=re({name:"loadingMask",initialState:{value:{isOpened:!1,message:null}},reducers:{showLoadingMask:(e,i)=>{e.value.isOpened=!0,e.value.message=i.payload},hideLoadingMask:e=>{e.value.isOpened=!1,e.value.message=null}}}),{showLoadingMask:xi,hideLoadingMask:Fi}=Bi.actions;var ki=Bi.reducer;const Wi=()=>{const e=o();return{show:i=>{e(xi(i))},hide:()=>{e(Fi())}}},Gi=()=>{const e=Wi(),i=a((e=>e.AppInfo.value.apiBaseUrl)),t=se.create({baseURL:i,timeout:6e5,withCredentials:!0});t.defaults.withCredentials=!0,t.interceptors.response.use((e=>e),(e=>{if(e&&(e.response&&(e.response.status&&401===e.response.status)))le.error("your session is now expired, you need to login again",{autoClose:!1});else if(e&&(e.response&&(e.response.status&&403===e.response.status)))le.error("you aren't authorized to process this request");else if(e&&(e.response&&(e.response.status&&500===e.response.status)))if(e.response.data instanceof Blob){e.response.data.text().then((e=>{le.error(e)}))}else le.error(e.response.data);else le.error("failed to communicate with the server ... try again later");return"ERROR"}));return{handleGetRequest:async(i={endPointURI:"",parameters:{}})=>{void 0!==i.showMask&&null!=i.showMask&&!0===i.showMask&&e.show(i.loadingMessage);const o=await t.get(i.endPointURI,{params:{...i.parameters},withCredentials:!0});return void 0!==i.showMask&&null!=i.showMask&&!0===i.showMask&&e.hide(),"ERROR"!==o?(void 0!==i.successCallBkFn&&null!=i.successCallBkFn&&i.successCallBkFn(o),o):(void 0!==i.failureCallBkFn&&null!=i.failureCallBkFn&&i.failureCallBkFn(o),"ERROR")},handlePostRequest:async(i={endPointURI:"",parameters:{},data:{}})=>{void 0!==i.showMask&&null!=i.showMask&&!0===i.showMask&&e.show(i.loadingMessage);let o=await t.post(i.endPointURI,i.data,{params:i.parameters});return void 0!==i.showMask&&null!=i.showMask&&!0===i.showMask&&e.hide(),"ERROR"!==o?(void 0!==i.successCallBkFn&&null!=i.successCallBkFn&&i.successCallBkFn(o),o):(void 0!==i.failureCallBkFn&&null!=i.failureCallBkFn&&i.failureCallBkFn(o),"ERROR")},handleDeleteRequest:async(i={endPointURI:"",parameters:{}})=>{void 0!==i.showMask&&null!=i.showMask&&!0===i.showMask&&e.show(i.loadingMessage);let o=await t.delete(i.endPointURI,{params:{...i.parameters}});return void 0!==i.showMask&&null!=i.showMask&&!0===i.showMask&&e.hide(),"ERROR"!==o?(void 0!==i.successCallBkFn&&null!=i.successCallBkFn&&i.successCallBkFn(o),o):(void 0!==i.failureCallBkFn&&null!=i.failureCallBkFn&&i.failureCallBkFn(o),"ERROR")},HandleDownloadHTTPPostPDF:async(i={endPointURI:"",parameters:{},data:{}})=>{void 0!==i.showMask&&null!=i.showMask&&!0===i.showMask&&e.show(i.loadingMessage);const o=await t.post(i.endPointURI,i.data,{responseType:"blob"});return void 0!==i.showMask&&null!=i.showMask&&!0===i.showMask&&e.hide(),"ERROR"!==o?(void 0!==i.successCallBkFn&&null!=i.successCallBkFn&&i.successCallBkFn(o),o):(void 0!==i.failureCallBkFn&&null!=i.failureCallBkFn&&i.failureCallBkFn(o),"ERROR")}}},Vi=re({name:"UserSession",initialState:{value:{isAuthenticated:null,authorities:[]}},reducers:{setAuthenticated:(e,i)=>{e.value=i.payload},setUnAuthenticated:e=>{e.value={isAuthenticated:!1,authorities:[]}}}}),Yi=Vi.actions;var qi=Vi.reducer,Ki={"System Administration":"إدارة النظام",welcome:"مرحبا",APP_SETTINGS_LABEL:"الاعدادت",WELCOME_MESSAGE:"اهلا , هذا التطبيق تحت التطوير و هو مصمم للتطبيقات المستقبلية",APP_FOOTER:"حقوق الملكية<sup>&copy;</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:"يجب ان تختار علي الاقل بند واحد لتنقيذ هذه العملية",DEFAULT_LOADING_MESSAGE:"جاري تنفيذ طلبك ...برجاء الانتظار",SHOW_REPORT_BTN_LABEL:"عرض التقرير",WF_COMMENT_LABEL:"التعليق",WF_TAKE_ACTION_BTN_LABEL:"ارسل",WF_CANCEL_BTN_LABEL:"الغاء",WE_AVAILABLE_ACTIONS_LABEL:"القرارات المتاحة",WE_NEXT_APPROVER_LABEL:"ارسل الي",WF_ACTION_HISTORY_LABEL:"تاريخ القرارات",WF_WAITING_FOR_LABEL:"في انتظار",VIEW_LABEL:"عرض"},zi={admin:"admin",ORGANIZATION_SINGULAR:"organization",ORGANIZATION_PLURAL:"organizations",ORGANIZATION_IS_ACTIVE:"Is active",ORGANIZATION_ORGANIZATION_AR_NAME:"Organization ar name",ORGANIZATION_ORGANIZATION_CODE:"Organization code",ORGANIZATION_ORGANIZATION_EN_NAME:"Organization en name",ORGANIZATION_MEMBER_SINGULAR:"organizationmember",ORGANIZATION_MEMBER_PLURAL:"organizationmembers",ORGANIZATION_MEMBER_IS_ACTIVE:"Is active",ORGANIZATION_MEMBER_IS_DEFAULT:"Is default",ORGANIZATION_MEMBER_ORGANIZATION_ID:"Organization id",ORGANIZATION_MEMBER_ORGANIZATION_RANK_ID:"Organization rank id",ORGANIZATION_MEMBER_ORGANIZATION_UNIT_ID:"Organization unit id",ORGANIZATION_MEMBER_PERSON_ID:"Person id",ORGANIZATION_MEMBER_ROLE_SINGULAR:"organizationmemberrole",ORGANIZATION_MEMBER_ROLE_PLURAL:"organizationmemberroles",ORGANIZATION_MEMBER_ROLE_IS_ACTIVE:"Is active",ORGANIZATION_MEMBER_ROLE_END_DATE:"End date",ORGANIZATION_MEMBER_ROLE_ORGANIZATION_MEMBER_ID:"Organization member id",ORGANIZATION_MEMBER_ROLE_START_DATE:"Start date",ORGANIZATION_MEMBER_ROLE_SYSTEM_APPLICATION_ROLE_ID:"System application role id",ORGANIZATION_RANK_SINGULAR:"organizationrank",ORGANIZATION_RANK_PLURAL:"organizationranks",ORGANIZATION_RANK_ENABLED:"Enabled",ORGANIZATION_RANK_ORGANIZATION_ID:"Organization id",ORGANIZATION_RANK_RANK_ORDER:"Rank order",ORGANIZATION_RANK_RANK_AR_NAME:"Rank ar name",ORGANIZATION_RANK_RANK_CODE:"Rank code",ORGANIZATION_RANK_RANK_EN_NAME:"Rank en name",ORGANIZATION_UNIT_SINGULAR:"organizationunit",ORGANIZATION_UNIT_PLURAL:"organizationunits",ORGANIZATION_UNIT_ENABLED:"Enabled",ORGANIZATION_UNIT_ORGANIZATION_ID:"Organization id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID:"Organization unit parent id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_TYPE_ID:"Organization unit type id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME:"Organization unit ar name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME:"Organization unit en name",ORGANIZATION_UNIT_TYPE_SINGULAR:"organizationunittype",ORGANIZATION_UNIT_TYPE_PLURAL:"organizationunittypes",ORGANIZATION_UNIT_TYPE_IS_ACTIVE:"Is active",ORGANIZATION_UNIT_TYPE_ORGANIZATION_ID:"Organization id",ORGANIZATION_UNIT_TYPE_ORGANIZATION_UNIT_TYPE_ORDER:"Organization unit type order",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_AR_NAME:"Unit type ar name",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_CODE:"Unit type code",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_EN_NAME:"Unit type en name",PERSON_SINGULAR:"person",PERSON_PLURAL:"persons",PERSON_EMAIL:"Email",PERSON_EMPLOYEE_AR_NAME:"Employee ar name",PERSON_EMPLOYEE_EN_NAME:"Employee en name",PERSON_EMPLOYEE_NUMBER:"Employee number",PERSON_MOBILE_NUMBER:"Mobile number",PERSON_PASSWORD:"Password",PERSON_USERNAME:"Username",SYSTEM_APPLICATION_SINGULAR:"systemapplication",SYSTEM_APPLICATION_PLURAL:"systemapplications",SYSTEM_APPLICATION_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_APPLICATION_CODE:"Application code",SYSTEM_APPLICATION_APPLICATION_DESCRIPTION:"Application description",SYSTEM_APPLICATION_APPLICATION_NAME:"Application name",SYSTEM_APPLICATION_AUTHORITY_SINGULAR:"systemapplicationauthority",SYSTEM_APPLICATION_AUTHORITY_PLURAL:"systemapplicationauthorities",SYSTEM_APPLICATION_AUTHORITY_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_AUTHORITY_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_AUTHORITY_SYSTEM_MODULE_ID:"System module id",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_CODE:"Authority code",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_DESCRIPTION:"Authority description",SYSTEM_APPLICATION_MODULE_SINGULAR:"systemapplicationmodule",SYSTEM_APPLICATION_MODULE_PLURAL:"systemapplicationmodules",SYSTEM_APPLICATION_MODULE_MODULE_DESCRIPTION:"Module description",SYSTEM_APPLICATION_MODULE_MODULE_NAME:"Module name",SYSTEM_APPLICATION_MODULE_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_ROLE_SINGULAR:"systemapplicationrole",SYSTEM_APPLICATION_ROLE_PLURAL:"systemapplicationroles",SYSTEM_APPLICATION_ROLE_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_ROLE_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_ROLE_ROLE_DESCRIPTION:"Role description",SYSTEM_APPLICATION_ROLE_ROLE_NAME:"Role name",SYSTEM_APPLICATION_ROLE_AUTHORITY_SINGULAR:"systemapplicationroleauthority",SYSTEM_APPLICATION_ROLE_AUTHORITY_PLURAL:"systemapplicationroleauthorities",SYSTEM_APPLICATION_ROLE_AUTHORITY_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_AUTHORITY_ID:"System application authority id",SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_ROLE_ID:"System application role id",ORGANIZATION_APPLICATION_MODULE_SINGULAR:"organizationapplicationmodule",ORGANIZATION_APPLICATION_MODULE_PLURAL:"organizationapplicationmodules",ORGANIZATION_APPLICATION_MODULE_EXPIRATION_DATE:"Expiration date",ORGANIZATION_APPLICATION_MODULE_IS_ACTIVE:"Is active",ORGANIZATION_APPLICATION_MODULE_ORGANIZATION_ID:"Organization id",ORGANIZATION_APPLICATION_MODULE_SUBSCRIPTION_DATE:"Subscription date",ORGANIZATION_APPLICATION_MODULE_SYSTEM_APPLICATION_MODULE_ID:"System application module id"};var Hi={welcome:"welcome",APP_SETTINGS_LABEL:"Settings",WELCOME_MESSAGE:" Hello, This is an under development template for future apps",APP_FOOTER:"Copyright<sup>&copy;</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",DEFAULT_LOADING_MESSAGE:"Processing you request ... please wait",SHOW_REPORT_BTN_LABEL:"Show Report",WF_COMMENT_LABEL:"Comment",WF_TAKE_ACTION_BTN_LABEL:"Submit",WF_CANCEL_BTN_LABEL:"Cancel",WE_AVAILABLE_ACTIONS_LABEL:"Available Actions",WE_NEXT_APPROVER_LABEL:"Send To",WF_ACTION_HISTORY_LABEL:"Action History",WF_WAITING_FOR_LABEL:"Waiting For",VIEW_LABEL:"VIEW"},Qi={admin:"admin",ORGANIZATION_SINGULAR:"Organization",ORGANIZATION_PLURAL:"Organizations",ORGANIZATION_IS_ACTIVE:"Is active",ORGANIZATION_ORGANIZATION_AR_NAME:"Organization ar name",ORGANIZATION_ORGANIZATION_CODE:"Organization code",ORGANIZATION_ORGANIZATION_EN_NAME:"Organization en name",ORGANIZATION_MEMBER_SINGULAR:"Member",ORGANIZATION_MEMBER_PLURAL:"Members",ORGANIZATION_MEMBER_IS_ACTIVE:"Is active",ORGANIZATION_MEMBER_IS_DEFAULT:"Is default",ORGANIZATION_MEMBER_ORGANIZATION_ID:"Organization id",ORGANIZATION_MEMBER_ORGANIZATION_RANK_ID:"Organization rank id",ORGANIZATION_MEMBER_ORGANIZATION_UNIT_ID:"Organization unit id",ORGANIZATION_MEMBER_PERSON_ID:"Person id",ORGANIZATION_MEMBER_ROLE_SINGULAR:"organizationmemberrole",ORGANIZATION_MEMBER_ROLE_PLURAL:"organizationmemberroles",ORGANIZATION_MEMBER_ROLE_IS_ACTIVE:"Is active",ORGANIZATION_MEMBER_ROLE_END_DATE:"End date",ORGANIZATION_MEMBER_ROLE_ORGANIZATION_MEMBER_ID:"Organization member id",ORGANIZATION_MEMBER_ROLE_START_DATE:"Start date",ORGANIZATION_MEMBER_ROLE_SYSTEM_APPLICATION_ROLE_ID:"System application role id",ORGANIZATION_RANK_SINGULAR:"Rank",ORGANIZATION_RANK_PLURAL:"Ranks",ORGANIZATION_RANK_ENABLED:"Enabled",ORGANIZATION_RANK_ORGANIZATION_ID:"Organization id",ORGANIZATION_RANK_RANK_ORDER:"Rank order",ORGANIZATION_RANK_RANK_AR_NAME:"Rank ar name",ORGANIZATION_RANK_RANK_CODE:"Rank code",ORGANIZATION_RANK_RANK_EN_NAME:"Rank en name",ORGANIZATION_UNIT_SINGULAR:"Organization Unit",ORGANIZATION_UNIT_PLURAL:"Organization Units",ORGANIZATION_UNIT_ENABLED:"Enabled",ORGANIZATION_UNIT_ORGANIZATION_ID:"Organization id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID:"Organization unit parent id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_TYPE_ID:"Organization unit type id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME:"Organization unit ar name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME:"Organization unit en name",ORGANIZATION_UNIT_TYPE_SINGULAR:"Organization uUnit Type",ORGANIZATION_UNIT_TYPE_PLURAL:"Organization Unit Types",ORGANIZATION_UNIT_TYPE_IS_ACTIVE:"Is active",ORGANIZATION_UNIT_TYPE_ORGANIZATION_ID:"Organization id",ORGANIZATION_UNIT_TYPE_ORGANIZATION_UNIT_TYPE_ORDER:"Organization unit type order",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_AR_NAME:"Unit type ar name",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_CODE:"Unit type code",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_EN_NAME:"Unit type en name",PERSON_SINGULAR:"person",PERSON_PLURAL:"persons",PERSON_EMAIL:"Email",PERSON_EMPLOYEE_AR_NAME:"Employee ar name",PERSON_EMPLOYEE_EN_NAME:"Employee en name",PERSON_EMPLOYEE_NUMBER:"Employee number",PERSON_MOBILE_NUMBER:"Mobile number",PERSON_PASSWORD:"Password",PERSON_USERNAME:"Username",SYSTEM_APPLICATION_SINGULAR:"Application",SYSTEM_APPLICATION_PLURAL:"Applications",SYSTEM_APPLICATION_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_APPLICATION_CODE:"Application code",SYSTEM_APPLICATION_APPLICATION_DESCRIPTION:"Application description",SYSTEM_APPLICATION_APPLICATION_NAME:"Application name",SYSTEM_APPLICATION_AUTHORITY_SINGULAR:"Authority",SYSTEM_APPLICATION_AUTHORITY_PLURAL:"Authorities",SYSTEM_APPLICATION_AUTHORITY_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_AUTHORITY_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_AUTHORITY_SYSTEM_MODULE_ID:"System module id",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_CODE:"Authority code",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_NAME:"Authority Name",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_DESCRIPTION:"Authority description",SYSTEM_APPLICATION_MODULE_SINGULAR:"Application Module",SYSTEM_APPLICATION_MODULE_PLURAL:"Application Modules",SYSTEM_APPLICATION_MODULE_MODULE_DESCRIPTION:"Module description",SYSTEM_APPLICATION_MODULE_MODULE_CODE:"Module Code",SYSTEM_APPLICATION_MODULE_MODULE_NAME:"Module name",SYSTEM_APPLICATION_MODULE_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_ROLE_SINGULAR:"Role",SYSTEM_APPLICATION_ROLE_PLURAL:"Roles",SYSTEM_APPLICATION_ROLE_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_ROLE_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_ROLE_ROLE_DESCRIPTION:"Role description",SYSTEM_APPLICATION_ROLE_ROLE_NAME:"Role name",SYSTEM_APPLICATION_ROLE_AUTHORITY_SINGULAR:"systemapplicationroleauthority",SYSTEM_APPLICATION_ROLE_AUTHORITY_PLURAL:"systemapplicationroleauthorities",SYSTEM_APPLICATION_ROLE_AUTHORITY_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_AUTHORITY_ID:"System application authority id",SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_ROLE_ID:"System application role id",ORGANIZATION_APPLICATION_MODULE_SINGULAR:"organizationapplicationmodule",ORGANIZATION_APPLICATION_MODULE_PLURAL:"organizationapplicationmodules",ORGANIZATION_APPLICATION_MODULE_EXPIRATION_DATE:"Expiration date",ORGANIZATION_APPLICATION_MODULE_IS_ACTIVE:"Is active",ORGANIZATION_APPLICATION_MODULE_ORGANIZATION_ID:"Organization id",ORGANIZATION_APPLICATION_MODULE_SUBSCRIPTION_DATE:"Subscription date",ORGANIZATION_APPLICATION_MODULE_SYSTEM_APPLICATION_MODULE_ID:"System application module id",PERSON_IS_ACTIVE:"Active"};const Zi={en:{translation:{...Hi,...Qi,...{DEVELOPMENT_TOOLS:"Development Tools",SYSTEM_MONITORING:"System Monitoring",dev:"dev",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",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:"dashboardwidget",DASHBOARD_WIDGET_PLURAL:"dashboardwidgets",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 Connection",DATASOURCE_CONNECTION_PLURAL:"Datasource Connections",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",ENTITY_PARAMETER_SINGULAR:"Entity Parameter",ENTITY_PARAMETER_PLURAL:"Entity 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:"exceluploaderheader",EXCEL_UPLOADER_HEADER_PLURAL:"exceluploaderheaders",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",LOOKUP_PLURAL:"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_NAME:"Body Name",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:"mailnotificationqueue",MAIL_NOTIFICATION_QUEUE_PLURAL:"mailnotificationqueues",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 Template",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",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:"notificationqueue",NOTIFICATION_QUEUE_PLURAL:"notificationqueues",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",REPORT_SINGULAR:"Report",REPORT_PLURAL:"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",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 Document",WORKFLOW_DOCUMENT_PLURAL:"Workflow Documents",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:"workflowdocumentmaillog",WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL:"workflowdocumentmaillogs",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:{...Ki,...zi,...{DEVELOPMENT_TOOLS:"Development Tools",SYSTEM_MONITORING:"System Monitoring",dev:"dev",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",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:"dashboardwidget",DASHBOARD_WIDGET_PLURAL:"dashboardwidgets",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:"dataquery",DATA_QUERY_PLURAL:"dataqueries",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 Connection",DATASOURCE_CONNECTION_PLURAL:"Datasource Connections",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",ENTITY_PARAMETER_SINGULAR:"Entity Parameter",ENTITY_PARAMETER_PLURAL:"Entity 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:"exceluploaderheader",EXCEL_UPLOADER_HEADER_PLURAL:"exceluploaderheaders",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",LOOKUP_PLURAL:"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:"mailnotificationqueue",MAIL_NOTIFICATION_QUEUE_PLURAL:"mailnotificationqueues",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:"mailtemplate",MAIL_TEMPLATE_PLURAL:"mailtemplates",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",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:"notificationqueue",NOTIFICATION_QUEUE_PLURAL:"notificationqueues",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",REPORT_SINGULAR:"report",REPORT_PLURAL:"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",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 Document",WORKFLOW_DOCUMENT_PLURAL:"Workflow Documents",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:"workflowdocumentmaillog",WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL:"workflowdocumentmaillogs",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"}}}};pe.use(ce).init({resources:Zi,lng:localStorage.getItem("language")||"en",fallbackLng:"en"});const ji=t=>{const[o,a]=Z(!1),{t:r}=me();return{ConfirmationWindow:()=>e(p,{open:o,children:[i(c,{children:t.title}),i(m,{children:i(_,{children:t.body})}),e(A,{children:[i(T,{variant:"contained",color:"primary",onClick:()=>{a(!1)},children:r("NO_LABEL")}),i(T,{variant:"contained",color:"error",onClick:()=>{t.onConfirmationCallBk(),a(!1)},autoFocus:!0,children:r("YES_LABEL")})]})]}),open:o,setOpen:a}},$i=()=>{const e=a((e=>e.UserSession)),i=e.value;return{UserSession:e,isUserAuthorized:i=>{if(e?.value?.authorities)for(let t of e.value.authorities)if("DEVELOPMENT_ADMIN"===t?.authority||t?.authority===i)return!0;return!1},UserInfo:i}},Xi=t=>{const[o,a]=Z(!1);return{windowState:o,setWindowState:a,Window:r=>i(u,{open:o,sx:{zIndex:e=>e.zIndex.drawer},onClose:()=>{!o&&t?.onCloseCallBack&&t.onCloseCallBack()},children:e(E,{sx:{position:"absolute",top:"50%",left:"50%",maxHeight:"90%",transform:"translate(-50%, -50%)",height:t?.height||"80%",width:t?.width||"90%",minWidth:t.minWidth||400,minHeight:t.minHeight||200,overflow:"hidden",bgcolor:"modalBackground.main",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"},children:[i(f,{position:"static",children:e(I,{variant:"dense",children:[i(ae,{icon:t?.windowIcon||"window-maximize",style:{marginRight:5}}),i(O,{variant:"h6",color:"inherit",component:"div",children:t?.windowTitle||"window"}),i("div",{style:{flexGrow:1}}),i(N,{onClick:()=>{a(!1),null!=t.onCloseCallBack&&null!=t.onCloseCallBack&&t.onCloseCallBack()},color:"secondary",children:i(ae,{icon:"xmark-square"})})]})}),i(y,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%",padding:1,overflow:"hidden"},children:r?.children})]})})}},Ji=re({name:"loadingMask",initialState:{stores:{},storeKeys:[],isAutoLoadLoaded:!1},reducers:{setStoresMetaData:(e,i)=>{e.stores=i.payload,e.storeKeys=Object.keys(i.payload)},setStoreData:(e,i)=>{e.stores[i.payload.storeKey].data=i.payload.data},setAutoLoadLoaded:()=>{state.isAutoLoadLoaded=!0}}}),{setStoreData:et,setStoresMetaData:it,setAutoLoadLoaded:tt}=Ji.actions;var ot=Ji.reducer;const at=e=>{const i=a((e=>e.commonStores.stores)),t=o(),r=$i(),{handleGetRequest:d,handlePostRequest:l,handleDeleteRequest:n}=Gi();return{reloadData:async o=>{if(e?.commonStoreKey){const o=Object.keys(i);for(const a of o)if(a===e.commonStoreKey&&(void 0===i[a]?.authority||null===i[a]?.authority||r.isUserAuthorized(i[a]?.authority))&&""!=i[a]?.url){await d({endPointURI:i[a].url,showMask:!1,successCallBkFn:i=>{t(et({storeKey:a,data:i.data})),e.setData(i.data)},failureCallBkFn:()=>{t(et({storeKey:a,data:[]})),e.setData([])}});break}}else e?.findAll&&await d({endPointURI:e.findAll,showMask:!0,parameters:o||{},successCallBkFn:i=>{e.setData(i.data)}})},loadRecordById:async i=>{let t=null;if(e?.findById){const o={};o[e?.findByIdParamName||"id"]=i,await d({endPointURI:e.findById,showMask:!0,parameters:o,successCallBkFn:e=>{t=e.data}})}return t},saveRecord:async i=>{let t=null;return e?.save&&await l({endPointURI:e.save,data:i,showMask:!0,successCallBkFn:e=>{t=e.data}}),t},deleteRecordById:async i=>{let t=!0;if(e?.deleteById){const o={};o[e?.deleteByIdParamName||"id"]=i,await n({endPointURI:e.deleteById,showMask:!0,parameters:o,successCallBkFn:()=>{t=!0},failureCallBkFn:()=>{t=!1}})}return t}}},rt=e=>{const{t:o}=me();return i(R,{...e,slotProps:{inputLabel:{shrink:!0}},label:i(t,{children:e?.label?o(e.label):""})})};function dt(e,i){return e.filter((e=>-1===i.indexOf(e)))}function lt(e,i){return e.filter((e=>-1!==i.indexOf(e)))}const nt=({valueField:t="id",displayField:o="name",options:a=[],selectedOptions:r=[],setSelection:d})=>{const[l,n]=H.useState([]),[s,p]=H.useState([]),[c,m]=H.useState([]),[_,A]=H.useState(""),[T,u]=H.useState(""),f=lt(l,s),I=lt(l,c);H.useEffect((()=>{a&&p([...a])}),[a]),H.useEffect((()=>{r&&m([...r])}),[r]);const O=e=>()=>{const i=l.indexOf(e),t=[...l];-1===i?t.push(e):t.splice(i,1),n(t)},N=e=>lt(l,e).length,y=e=>()=>{var i,t;N(e)===e.length?n(dt(l,e)):n((i=l,t=e,[...i,...dt(t,i)]))},R=(a,r,d)=>{const n=r.filter((e=>{if(e[o]){const i=e[o];if("left"===d&&i.toLocaleLowerCase().includes(_.toLocaleLowerCase()))return!0;if("right"===d&&i.toLocaleLowerCase().includes(T.toLocaleLowerCase()))return!0}return!1}));return e(Ae,{sx:{height:"100%"},children:[i(Te,{sx:{px:2,py:1},avatar:i(fe,{onClick:y(n),checked:N(n)===n.length&&0!==n.length,indeterminate:N(n)!==n.length&&0!==N(n),disabled:0===n.length,inputProps:{"aria-label":"all items selected"}}),title:a,subheader:`${N(r)} / ${r.length} Selected`}),i(E,{sx:{width:"100%",padding:1},children:i(rt,{fullWidth:!0,label:"search",value:"left"===d?_:T,onChange:e=>{"left"===d?A(e.target.value):u(e.target.value)}})}),i(Oe,{}),i(_e,{sx:{width:"100%",height:"100%",bgcolor:"secondary",overflow:"auto"},dense:!0,component:"div",role:"list",children:n.map((a=>(a[t],e(h,{role:"listitem",onClick:O(a),sx:{cursor:"pointer"},children:[i(Ee,{children:i(fe,{checked:-1!==l.indexOf(a),tabIndex:-1,disableRipple:!0})}),i(ue,{id:a[t],primary:a[o]})]},a[t]))))})]})};return e(L,{container:!0,spacing:2,sx:{flexGrow:1,overflow:"auto",margin:1,display:"flex",width:"100%"},justifyContent:"center",alignItems:"center",children:[i(L,{sx:{height:"100%",flex:1},children:R("Available Items",s,"left")}),i(L,{children:e(L,{container:!0,direction:"column",alignItems:"center",children:[i(Ie,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{m((e=>{let i=c.concat(f);return d(i),i})),p(dt(s,f)),n(dt(l,f))},disabled:0===f.length,"aria-label":"move selected right",children:">"}),i(Ie,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{p(s.concat(I)),m((e=>{let i=dt(c,I);return d(i),i})),n(dt(l,I))},disabled:0===I.length,"aria-label":"move selected left",children:"<"})]})}),i(L,{sx:{height:"100%",flex:1},children:R("Currently Selected",c,"right")})]})},st=e=>i(Ne,{dataset:e.data,xAxis:[{dataKey:e.valueField,scaleType:"band",label:e.valueLabel}],series:e.labelField?.split(",").map((e=>({dataKey:e,label:e})))}),pt=t=>e(y,{sx:{display:"flex",flexDirection:"column",height:150,padding:1,flexGrow:1,justifyContent:"center",alignItems:"center"},children:[i(E,{sx:{display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"},children:i("div",{children:t.record[t.valueField]})}),i(O,{sx:{fontSize:16,fontWeight:"bold"},children:t.record[t.labelField]})]}),ct=o=>e(t,{children:[i(O,{sx:{fontSize:16,fontWeight:"bold"},children:o.record[o.labelField]}),i(ye,{width:200,height:200,value:o.record[o.valueField],valueMax:o.total})]}),mt=e=>i(Re,{dataset:e.data,xAxis:[{dataKey:e.valueField,scaleType:"band",label:e.valueLabel}],series:e.labelField?.split(",").map((e=>({dataKey:e,label:e})))});function _t(t){return e(Pe,{sx:{display:"flex",alignItems:"center"},children:[i(Pe,{sx:{width:"100%",mr:1},children:i(Le,{variant:"determinate",...t})}),i(Pe,{sx:{minWidth:35},children:i(he,{variant:"body2",sx:{color:"text.secondary"},children:`${Math.round(t.value)}%`})})]})}const At=t=>e(Pe,{sx:{width:"100%"},children:[i(he,{sx:{fontSize:16,fontWeight:"bold"},children:t.record[t.labelField]}),i(_t,{value:t.record[t.valueField]/t.total*100})]}),Tt=e=>{const t=e.data.map(((i,t)=>({id:t,value:i[e.valueField],label:i[e.labelField]+""})));return i(Me,{series:[{data:t}]})},ut=e=>{const{t:t}=me();return i(P,{sx:e.sx,disabled:e.disabled||!1,required:e.required||!1,control:i(M,{checked:e?.checkedValue==e.value||"true"===e.value||"1"==e.value,onChange:i=>{void 0!==e.onChangeCallBack&&null!=e.onChangeCallBack&&(i.target.checked?void 0!==e.checkedValue&&null!=e.checkedValue?e.onChangeCallBack(e.checkedValue):e.onChangeCallBack(!0):void 0!==e.unCheckedValue&&null!=e.unCheckedValue?e.onChangeCallBack(e.unCheckedValue):e.onChangeCallBack(!1))}}),label:t(e.label)})},Et=e=>{const t=a((e=>e.AppLayout)),{t:o}=me();return i(C,{sx:e.sx,value:(i=>{for(let t of e.options)if(t[e.valueField]==i)return t;return null})(e.value),options:e.options,disabled:e.disabled,onChange:(i,t)=>{if(void 0!==e.onChangeCallBack&&null!=e.onChangeCallBack)if(null!=t){let i=t[e.valueField];e.onChangeCallBack(i,t)}else e.onChangeCallBack(null,null)},clearOnBlur:!0,handleHomeEndKeys:!0,getOptionLabel:i=>null!=i?o(i[e.displayField]):"",renderOption:(t,a)=>i("li",{...t,children:null!=a?o(a[e.displayField]):""}),slots:{popper:e=>i(D,{...e,style:{...e.style,direction:t.appDirection}})},renderInput:t=>i(R,{...t,required:e.required||!1,variant:"outlined",InputLabelProps:{shrink:!0},label:o(e.label),error:null!=e.errorMessage&&void 0!==e.errorMessage,helperText:null!=e.errorMessage&&void 0!==e.errorMessage?o(e.errorMessage):""})})},ft="YYYY-MM-DD",It="YYYY-MM-DD HH:mm:ss",Ot="#37505C",Nt="#ff6d00",yt="#ea690e",Rt="#74776B",Lt=e=>{const{t:o}=me();return i(Ce,{dateAdapter:ge,children:i(De,{value:null!=e.value&&void 0!==e.value&&""!==e.value?Se(e.value,e?.format||ft):null,sx:e.sx,label:o(e.label),format:e?.format||ft,disabled:e.disabled,onChange:i=>{let t=null;null!=i&&i.isValid()&&(t=i.format(e?.format||ft)),void 0!==e.onChangeCallBack&&null!=e.onChangeCallBack&&e.onChangeCallBack(t)},slotProps:{textField:{InputLabelProps:{shrink:!0},variant:"outlined",required:e.required,error:void 0!==e.errorMessage&&null!=e.errorMessage,helperText:void 0!==e.errorMessage&&null!=e.errorMessage?i(t,{children:o(e.errorMessage)}):i(t,{})}}})})},ht=e=>{const{t:o}=me();return i(Ce,{dateAdapter:ge,children:i(be,{value:null!=e.value&&void 0!==e.value&&""!==e.value?Se(e.value,e?.format||It):null,label:o(e.label),sx:e.sx,format:e?.format||It,disabled:e.disabled,onChange:i=>{let t=null;null!=i&&i.isValid()&&(t=i.format(e?.format||It)),void 0!==e.onChangeCallBack&&null!=e.onChangeCallBack&&e.onChangeCallBack(t)},slotProps:{textField:{variant:"outlined",required:e.required,error:void 0!==e.errorMessage&&null!=e.errorMessage,helperText:void 0!==e.errorMessage&&null!=e.errorMessage?i(t,{children:o(e.errorMessage)}):i(t,{})}}})})};function Pt(e,...i){const t=new URL(`https://mui.com/production-error/?code=${e}`);return i.forEach((e=>t.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${t} for the full message.`}function Mt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ct,Dt={exports:{}},bt={exports:{}},gt={};var St,Ut,vt,wt,Bt,xt,Ft,kt,Wt,Gt,Vt,Yt,qt,Kt,zt,Ht={};
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 ao(){return qi||(qi=1,"production"===process.env.NODE_ENV?Gi.exports=function(){if(Fi)return Yi;Fi=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,m=e?Symbol.for("react.responder"):60118,O=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 Yi.AsyncMode=l,Yi.ConcurrentMode=s,Yi.ContextConsumer=d,Yi.ContextProvider=n,Yi.Element=t,Yi.ForwardRef=p,Yi.Fragment=o,Yi.Lazy=c,Yi.Memo=T,Yi.Portal=i,Yi.Profiler=a,Yi.StrictMode=r,Yi.Suspense=_,Yi.isAsyncMode=function(e){return f(e)||I(e)===l},Yi.isConcurrentMode=f,Yi.isContextConsumer=function(e){return I(e)===d},Yi.isContextProvider=function(e){return I(e)===n},Yi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Yi.isForwardRef=function(e){return I(e)===p},Yi.isFragment=function(e){return I(e)===o},Yi.isLazy=function(e){return I(e)===c},Yi.isMemo=function(e){return I(e)===T},Yi.isPortal=function(e){return I(e)===i},Yi.isProfiler=function(e){return I(e)===a},Yi.isStrictMode=function(e){return I(e)===r},Yi.isSuspense=function(e){return I(e)===_},Yi.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===m||e.$$typeof===O||e.$$typeof===A)},Yi.typeOf=I,Yi}():Gi.exports=(Ki||(Ki=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,m=e?Symbol.for("react.responder"):60118,O=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}ro.AsyncMode=f,ro.ConcurrentMode=N,ro.ContextConsumer=R,ro.ContextProvider=L,ro.Element=y,ro.ForwardRef=D,ro.Fragment=C,ro.Lazy=U,ro.Memo=M,ro.Portal=h,ro.Profiler=P,ro.StrictMode=b,ro.Suspense=S,ro.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},ro.isConcurrentMode=v,ro.isContextConsumer=function(e){return I(e)===d},ro.isContextProvider=function(e){return I(e)===n},ro.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ro.isForwardRef=function(e){return I(e)===p},ro.isFragment=function(e){return I(e)===o},ro.isLazy=function(e){return I(e)===c},ro.isMemo=function(e){return I(e)===T},ro.isPortal=function(e){return I(e)===i},ro.isProfiler=function(e){return I(e)===a},ro.isStrictMode=function(e){return I(e)===r},ro.isSuspense=function(e){return I(e)===_},ro.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===m||e.$$typeof===O||e.$$typeof===A)},ro.typeOf=I}()),ro)),Gi.exports}
9
+ */function Qt(){return Ut||(Ut=1,"production"===process.env.NODE_ENV?bt.exports=function(){if(Ct)return gt;Ct=1;var e="function"==typeof Symbol&&Symbol.for,i=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,n=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,A=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,u=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function I(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case i:switch(e=e.type){case n:case s:case o:case r:case a:case c:return e;default:switch(e=e&&e.$$typeof){case l:case p:case A:case _:case d:return e;default:return m}}case t:return m}}}function O(e){return I(e)===s}return gt.AsyncMode=n,gt.ConcurrentMode=s,gt.ContextConsumer=l,gt.ContextProvider=d,gt.Element=i,gt.ForwardRef=p,gt.Fragment=o,gt.Lazy=A,gt.Memo=_,gt.Portal=t,gt.Profiler=r,gt.StrictMode=a,gt.Suspense=c,gt.isAsyncMode=function(e){return O(e)||I(e)===n},gt.isConcurrentMode=O,gt.isContextConsumer=function(e){return I(e)===l},gt.isContextProvider=function(e){return I(e)===d},gt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},gt.isForwardRef=function(e){return I(e)===p},gt.isFragment=function(e){return I(e)===o},gt.isLazy=function(e){return I(e)===A},gt.isMemo=function(e){return I(e)===_},gt.isPortal=function(e){return I(e)===t},gt.isProfiler=function(e){return I(e)===r},gt.isStrictMode=function(e){return I(e)===a},gt.isSuspense=function(e){return I(e)===c},gt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===r||e===a||e===c||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===A||e.$$typeof===_||e.$$typeof===d||e.$$typeof===l||e.$$typeof===p||e.$$typeof===u||e.$$typeof===E||e.$$typeof===f||e.$$typeof===T)},gt.typeOf=I,gt}():bt.exports=(St||(St=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,i=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,n=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,A=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,u=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function I(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case i:var T=e.type;switch(T){case n:case s:case o:case r:case a:case c:return T;default:var u=T&&T.$$typeof;switch(u){case l:case p:case A:case _:case d:return u;default:return m}}case t:return m}}}var O=n,N=s,y=l,R=d,L=i,h=p,P=o,M=A,C=_,D=t,b=r,g=a,S=c,U=!1;function v(e){return I(e)===s}Ht.AsyncMode=O,Ht.ConcurrentMode=N,Ht.ContextConsumer=y,Ht.ContextProvider=R,Ht.Element=L,Ht.ForwardRef=h,Ht.Fragment=P,Ht.Lazy=M,Ht.Memo=C,Ht.Portal=D,Ht.Profiler=b,Ht.StrictMode=g,Ht.Suspense=S,Ht.isAsyncMode=function(e){return U||(U=!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)===n},Ht.isConcurrentMode=v,Ht.isContextConsumer=function(e){return I(e)===l},Ht.isContextProvider=function(e){return I(e)===d},Ht.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},Ht.isForwardRef=function(e){return I(e)===p},Ht.isFragment=function(e){return I(e)===o},Ht.isLazy=function(e){return I(e)===A},Ht.isMemo=function(e){return I(e)===_},Ht.isPortal=function(e){return I(e)===t},Ht.isProfiler=function(e){return I(e)===r},Ht.isStrictMode=function(e){return I(e)===a},Ht.isSuspense=function(e){return I(e)===c},Ht.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===r||e===a||e===c||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===A||e.$$typeof===_||e.$$typeof===d||e.$$typeof===l||e.$$typeof===p||e.$$typeof===u||e.$$typeof===E||e.$$typeof===f||e.$$typeof===T)},Ht.typeOf=I}()),Ht)),bt.exports}
10
10
  /*
11
11
  object-assign
12
12
  (c) Sindre Sorhus
13
13
  @license MIT
14
- */function no(){if(Hi)return Vi;Hi=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;return Vi=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},Vi}function lo(){if(zi)return Qi;zi=1;return Qi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function so(){return $i?Zi:($i=1,Zi=Function.call.bind(Object.prototype.hasOwnProperty))}function po(){if(Xi)return ji;Xi=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=lo(),i={},o=so();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={})},ji=r}function _o(){if(eo)return Ji;eo=1;var e=ao(),t=no(),i=lo(),o=so(),r=po(),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){}}),Ji=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 `"+O(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 `"+O(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 `"+O(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 m(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=O(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=O(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=O(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 O(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 m(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(m);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(!m(i.value))return!1}else for(;!(i=o.next()).done;){var r=i.value;if(r&&!m(r[1]))return!1}return!0;default:return!1}}function O(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function I(e){if(null==e)return""+e;var t=O(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=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=_,_},Ji}function Eo(){if(io)return to;io=1;var e=lo();function t(){}function i(){}return i.resetWarningCache=t,to=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 To(){if(oo)return ki.exports;if(oo=1,"production"!==process.env.NODE_ENV){var e=ao();ki.exports=_o()(e.isElement,true)}else ki.exports=Eo()();return ki.exports}var co=wi(To());var Ao,uo={exports:{}},mo={};function Oo(){if(Ao)return mo;Ao=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 mo.ContextConsumer=a,mo.ContextProvider=n,mo.Element=e,mo.ForwardRef=d,mo.Fragment=i,mo.Lazy=_,mo.Memo=p,mo.Portal=t,mo.Profiler=r,mo.StrictMode=o,mo.Suspense=l,mo.SuspenseList=s,mo.isContextConsumer=function(e){return c(e)===a},mo.isContextProvider=function(e){return c(e)===n},mo.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},mo.isForwardRef=function(e){return c(e)===d},mo.isFragment=function(e){return c(e)===i},mo.isLazy=function(e){return c(e)===_},mo.isMemo=function(e){return c(e)===p},mo.isPortal=function(e){return c(e)===t},mo.isProfiler=function(e){return c(e)===r},mo.isStrictMode=function(e){return c(e)===o},mo.isSuspense=function(e){return c(e)===l},mo.isSuspenseList=function(e){return c(e)===s},mo.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)},mo.typeOf=c,mo}var Io,fo,No={};
14
+ */function Zt(){if(wt)return vt;wt=1;var e=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;return vt=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 i={},t=0;t<10;t++)i["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(i).map((function(e){return i[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,a){for(var r,d,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),n=1;n<arguments.length;n++){for(var s in r=Object(arguments[n]))i.call(r,s)&&(l[s]=r[s]);if(e){d=e(r);for(var p=0;p<d.length;p++)t.call(r,d[p])&&(l[d[p]]=r[d[p]])}}return l},vt}function jt(){if(xt)return Bt;xt=1;return Bt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function $t(){return kt?Ft:(kt=1,Ft=Function.call.bind(Object.prototype.hasOwnProperty))}function Xt(){if(Gt)return Wt;Gt=1;var e=function(){};if("production"!==process.env.NODE_ENV){var i=jt(),t={},o=$t();e=function(e){var i="Warning: "+e;"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}}function a(a,r,d,l,n){if("production"!==process.env.NODE_ENV)for(var s in a)if(o(a,s)){var p;try{if("function"!=typeof a[s]){var c=Error((l||"React class")+": "+d+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}p=a[s](r,s,l,d,null,i)}catch(e){p=e}if(!p||p instanceof Error||e((l||"React class")+": type specification of "+d+" `"+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 t)){t[p.message]=!0;var m=n?n():"";e("Failed "+d+" type: "+p.message+(null!=m?m:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(t={})},Wt=a}function Jt(){if(Yt)return Vt;Yt=1;var e=Qt(),i=Zt(),t=jt(),o=$t(),a=Xt(),r=function(){};function d(){return null}return"production"!==process.env.NODE_ENV&&(r=function(e){var i="Warning: "+e;"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}),Vt=function(l,n){var s="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",c={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:A(d),arrayOf:function(e){return A((function(i,o,a,r,d){if("function"!=typeof e)return new _("Property `"+d+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=i[o];if(!Array.isArray(l))return new _("Invalid "+r+" `"+d+"` of type `"+f(l)+"` supplied to `"+a+"`, expected an array.");for(var n=0;n<l.length;n++){var s=e(l,n,a,r,d+"["+n+"]",t);if(s instanceof Error)return s}return null}))},element:A((function(e,i,t,o,a){var r=e[i];return l(r)?null:new _("Invalid "+o+" `"+a+"` of type `"+f(r)+"` supplied to `"+t+"`, expected a single ReactElement.")})),elementType:A((function(i,t,o,a,r){var d=i[t];return e.isValidElementType(d)?null:new _("Invalid "+a+" `"+r+"` of type `"+f(d)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return A((function(i,t,o,a,r){if(!(i[t]instanceof e)){var d=e.name||p;return new _("Invalid "+a+" `"+r+"` of type `"+(((l=i[t]).constructor&&l.constructor.name?l.constructor.name:p)+"` supplied to `")+o+"`, expected instance of `"+d+"`.")}var l;return null}))},node:A((function(e,i,t,o,a){return E(e[i])?null:new _("Invalid "+o+" `"+a+"` supplied to `"+t+"`, expected a ReactNode.")})),objectOf:function(e){return A((function(i,a,r,d,l){if("function"!=typeof e)return new _("Property `"+l+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var n=i[a],s=f(n);if("object"!==s)return new _("Invalid "+d+" `"+l+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var p in n)if(o(n,p)){var c=e(n,p,r,d,l+"."+p,t);if(c instanceof Error)return c}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r(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."),d;return A((function(i,t,o,a,r){for(var d=i[t],l=0;l<e.length;l++)if(m(d,e[l]))return null;var n=JSON.stringify(e,(function(e,i){return"symbol"===I(i)?String(i):i}));return new _("Invalid "+a+" `"+r+"` of value `"+String(d)+"` supplied to `"+o+"`, expected one of "+n+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r("Invalid argument supplied to oneOfType, expected an instance of array."),d;for(var i=0;i<e.length;i++){var a=e[i];if("function"!=typeof a)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+O(a)+" at index "+i+"."),d}return A((function(i,a,r,d,l){for(var n=[],s=0;s<e.length;s++){var p=(0,e[s])(i,a,r,d,l,t);if(null==p)return null;p.data&&o(p.data,"expectedType")&&n.push(p.data.expectedType)}return new _("Invalid "+d+" `"+l+"` supplied to `"+r+"`"+(n.length>0?", expected one of type ["+n.join(", ")+"]":"")+".")}))},shape:function(e){return A((function(i,o,a,r,d){var l=i[o],n=f(l);if("object"!==n)return new _("Invalid "+r+" `"+d+"` of type `"+n+"` supplied to `"+a+"`, expected `object`.");for(var s in e){var p=e[s];if("function"!=typeof p)return u(a,r,d,s,I(p));var c=p(l,s,a,r,d+"."+s,t);if(c)return c}return null}))},exact:function(e){return A((function(a,r,d,l,n){var s=a[r],p=f(s);if("object"!==p)return new _("Invalid "+l+" `"+n+"` of type `"+p+"` supplied to `"+d+"`, expected `object`.");var c=i({},a[r],e);for(var m in c){var A=e[m];if(o(e,m)&&"function"!=typeof A)return u(d,l,n,m,I(A));if(!A)return new _("Invalid "+l+" `"+n+"` key `"+m+"` supplied to `"+d+"`.\nBad object: "+JSON.stringify(a[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var T=A(s,m,d,l,n+"."+m,t);if(T)return T}return null}))}};function m(e,i){return e===i?0!==e||1/e==1/i:e!=e&&i!=i}function _(e,i){this.message=e,this.data=i&&"object"==typeof i?i:{},this.stack=""}function A(e){if("production"!==process.env.NODE_ENV)var i={},o=0;function a(a,d,l,s,c,m,A){if(s=s||p,m=m||l,A!==t){if(n){var T=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 T.name="Invariant Violation",T}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var u=s+":"+l;!i[u]&&o<3&&(r("You are manually calling a React.PropTypes validation function for the `"+m+"` 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."),i[u]=!0,o++)}}return null==d[l]?a?null===d[l]?new _("The "+c+" `"+m+"` is marked as required in `"+s+"`, but its value is `null`."):new _("The "+c+" `"+m+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(d,l,s,c,m)}var d=a.bind(null,!1);return d.isRequired=a.bind(null,!0),d}function T(e){return A((function(i,t,o,a,r,d){var l=i[t];return f(l)!==e?new _("Invalid "+a+" `"+r+"` of type `"+I(l)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function u(e,i,t,o,a){return new _((e||"React class")+": "+i+" type `"+t+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function E(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(E);if(null===e||l(e))return!0;var i=function(e){var i=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof i)return i}(e);if(!i)return!1;var t,o=i.call(e);if(i!==e.entries){for(;!(t=o.next()).done;)if(!E(t.value))return!1}else for(;!(t=o.next()).done;){var a=t.value;if(a&&!E(a[1]))return!1}return!0;default:return!1}}function f(e){var i=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,i){return"symbol"===e||!!i&&("Symbol"===i["@@toStringTag"]||"function"==typeof Symbol&&i instanceof Symbol)}(i,e)?"symbol":i}function I(e){if(null==e)return""+e;var i=f(e);if("object"===i){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return i}function O(e){var i=I(e);switch(i){case"array":case"object":return"an "+i;case"boolean":case"date":case"regexp":return"a "+i;default:return i}}return _.prototype=Error.prototype,c.checkPropTypes=a,c.resetWarningCache=a.resetWarningCache,c.PropTypes=c,c},Vt}function eo(){if(Kt)return qt;Kt=1;var e=jt();function i(){}function t(){}return t.resetWarningCache=i,qt=function(){function o(i,t,o,a,r,d){if(d!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function a(){return o}o.isRequired=o;var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:t,resetWarningCache:i};return r.PropTypes=r,r}}function io(){if(zt)return Dt.exports;if(zt=1,"production"!==process.env.NODE_ENV){var e=Qt();Dt.exports=Jt()(e.isElement,true)}else Dt.exports=eo()();return Dt.exports}var to=Mt(io());var oo,ao={exports:{}},ro={};function lo(){if(oo)return ro;oo=1;var e=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),d=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),n=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),_=Symbol.for("react.client.reference");function A(_){if("object"==typeof _&&null!==_){var A=_.$$typeof;switch(A){case e:switch(_=_.type){case t:case a:case o:case n:case s:case m:return _;default:switch(_=_&&_.$$typeof){case d:case l:case c:case p:case r:return _;default:return A}}case i:return A}}}return ro.ContextConsumer=r,ro.ContextProvider=d,ro.Element=e,ro.ForwardRef=l,ro.Fragment=t,ro.Lazy=c,ro.Memo=p,ro.Portal=i,ro.Profiler=a,ro.StrictMode=o,ro.Suspense=n,ro.SuspenseList=s,ro.isContextConsumer=function(e){return A(e)===r},ro.isContextProvider=function(e){return A(e)===d},ro.isElement=function(i){return"object"==typeof i&&null!==i&&i.$$typeof===e},ro.isForwardRef=function(e){return A(e)===l},ro.isFragment=function(e){return A(e)===t},ro.isLazy=function(e){return A(e)===c},ro.isMemo=function(e){return A(e)===p},ro.isPortal=function(e){return A(e)===i},ro.isProfiler=function(e){return A(e)===a},ro.isStrictMode=function(e){return A(e)===o},ro.isSuspense=function(e){return A(e)===n},ro.isSuspenseList=function(e){return A(e)===s},ro.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===t||e===a||e===o||e===n||e===s||"object"==typeof e&&null!==e&&(e.$$typeof===c||e.$$typeof===p||e.$$typeof===d||e.$$typeof===r||e.$$typeof===l||e.$$typeof===_||void 0!==e.getModuleId)},ro.typeOf=A,ro}var no,so,po={};
15
15
  /**
16
16
  * @license React
17
17
  * react-is.development.js
@@ -20,13 +20,13 @@ 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 Ro(){return Io||(Io=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");No.ContextConsumer=n,No.ContextProvider=d,No.Element=t,No.ForwardRef=l,No.Fragment=o,No.Lazy=E,No.Memo=_,No.Portal=i,No.Profiler=a,No.StrictMode=r,No.Suspense=s,No.SuspenseList=p,No.isContextConsumer=function(t){return e(t)===n},No.isContextProvider=function(t){return e(t)===d},No.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},No.isForwardRef=function(t){return e(t)===l},No.isFragment=function(t){return e(t)===o},No.isLazy=function(t){return e(t)===E},No.isMemo=function(t){return e(t)===_},No.isPortal=function(t){return e(t)===i},No.isProfiler=function(t){return e(t)===a},No.isStrictMode=function(t){return e(t)===r},No.isSuspense=function(t){return e(t)===s},No.isSuspenseList=function(t){return e(t)===p},No.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)},No.typeOf=e}()),No}function Lo(){return fo||(fo=1,"production"===process.env.NODE_ENV?uo.exports=Oo():uo.exports=Ro()),uo.exports}var yo=Lo();function Do(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 Co(e){if(Q.isValidElement(e)||yo.isValidElementType(e)||!Do(e))return e;const t={};return Object.keys(e).forEach((i=>{t[i]=Co(e[i])})),t}function Uo(e,t,i={clone:!0}){const o=i.clone?{...e}:e;return Do(e)&&Do(t)&&Object.keys(t).forEach((r=>{Q.isValidElement(t[r])||yo.isValidElementType(t[r])?o[r]=t[r]:Do(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Do(e[r])?o[r]=Uo(e[r],t[r],i):i.clone?o[r]=Do(t[r])?Co(t[r]):t[r]:o[r]=t[r]})),o}function Mo(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 ho={borderRadius:4},Po="production"!==process.env.NODE_ENV?co.oneOfType([co.number,co.string,co.object,co.array]):{};function bo(e,t){return t?Uo(e,t,{clone:!1}):e}const So={xs:0,sm:600,md:900,lg:1200,xl:1536},go={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${So[e]}px)`},vo={containerQueries:e=>({up:t=>{let i="number"==typeof t?t:So[t]||t;return"number"==typeof i&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function xo(e,t,i){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||go;return t.reduce(((o,r,a)=>(o[e.up(e.keys[a])]=i(t[a]),o)),{})}if("object"==typeof t){const e=o.breakpoints||go;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\`.`:Wi(18,`(${t})`));return null}const[,o,r]=i,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(a)}(o.containerQueries?o:vo,a);e&&(r[e]=i(t[a],a))}else if(Object.keys(e.values||So).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 Bo(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Wi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Wo(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 wo(e,t,i,o=i){let r;return r="function"==typeof e?e(i):Array.isArray(e)?e[i]||o:Wo(e,i)||o,t&&(r=t(r,o,e)),r}function Fo(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=Wo(e.theme,o)||{};return xo(e,a,(e=>{let o=wo(n,r,e);return e===o&&"string"==typeof e&&(o=wo(n,r,`${t}${"default"===e?"":Bo(e)}`,e)),!1===i?o:{[i]:o}}))};return a.propTypes="production"!==process.env.NODE_ENV?{[t]:Po}:{},a.filterProps=[t],a}const ko={m:"margin",p:"padding"},Go={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ko=function(e){const t={};return i=>(void 0===t[i]&&(t[i]=e(i)),t[i])}((e=>{if(e.length>2){if(!Yo[e])return[e];e=Yo[e]}const[t,i]=e.split(""),o=ko[t],r=Go[i]||"";return Array.isArray(r)?r.map((e=>o+e)):[o+r]})),qo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ho=[...qo,...Vo];function Qo(e,t,i,o){const r=Wo(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 zo(e){return Qo(e,"spacing",8,"spacing")}function Zo(e,t){return"string"==typeof t||null==t?t:e(t)}function $o(e,t,i,o){if(!t.includes(i))return null;const r=function(e,t){return i=>e.reduce(((e,o)=>(e[o]=Zo(t,i),e)),{})}(Ko(i),o);return xo(e,e[i],r)}function jo(e,t){const i=zo(e.theme);return Object.keys(e).map((o=>$o(e,t,o,i))).reduce(bo,{})}function Xo(e){return jo(e,qo)}function Jo(e){return jo(e,Vo)}function er(...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]?bo(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 tr(e){return"number"!=typeof e?e:`${e}px solid`}function ir(e,t){return Fo({prop:e,themeKey:"borders",transform:t})}Xo.propTypes="production"!==process.env.NODE_ENV?qo.reduce(((e,t)=>(e[t]=Po,e)),{}):{},Xo.filterProps=qo,Jo.propTypes="production"!==process.env.NODE_ENV?Vo.reduce(((e,t)=>(e[t]=Po,e)),{}):{},Jo.filterProps=Vo,"production"===process.env.NODE_ENV||Ho.reduce(((e,t)=>(e[t]=Po,e)),{});const or=ir("border",tr),rr=ir("borderTop",tr),ar=ir("borderRight",tr),nr=ir("borderBottom",tr),dr=ir("borderLeft",tr),lr=ir("borderColor"),sr=ir("borderTopColor"),pr=ir("borderRightColor"),_r=ir("borderBottomColor"),Er=ir("borderLeftColor"),Tr=ir("outline",tr),cr=ir("outlineColor"),Ar=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Qo(e.theme,"shape.borderRadius",4,"borderRadius"),i=e=>({borderRadius:Zo(t,e)});return xo(e,e.borderRadius,i)}return null};Ar.propTypes="production"!==process.env.NODE_ENV?{borderRadius:Po}:{},Ar.filterProps=["borderRadius"],er(or,rr,ar,nr,dr,lr,sr,pr,_r,Er,Ar,Tr,cr);const ur=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Qo(e.theme,"spacing",8,"gap"),i=e=>({gap:Zo(t,e)});return xo(e,e.gap,i)}return null};ur.propTypes="production"!==process.env.NODE_ENV?{gap:Po}:{},ur.filterProps=["gap"];const mr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Qo(e.theme,"spacing",8,"columnGap"),i=e=>({columnGap:Zo(t,e)});return xo(e,e.columnGap,i)}return null};mr.propTypes="production"!==process.env.NODE_ENV?{columnGap:Po}:{},mr.filterProps=["columnGap"];const Or=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Qo(e.theme,"spacing",8,"rowGap"),i=e=>({rowGap:Zo(t,e)});return xo(e,e.rowGap,i)}return null};Or.propTypes="production"!==process.env.NODE_ENV?{rowGap:Po}:{},Or.filterProps=["rowGap"];function Ir(e,t){return"grey"===t?t:e}er(ur,mr,Or,Fo({prop:"gridColumn"}),Fo({prop:"gridRow"}),Fo({prop:"gridAutoFlow"}),Fo({prop:"gridAutoColumns"}),Fo({prop:"gridAutoRows"}),Fo({prop:"gridTemplateColumns"}),Fo({prop:"gridTemplateRows"}),Fo({prop:"gridTemplateAreas"}),Fo({prop:"gridArea"}));function fr(e){return e<=1&&0!==e?100*e+"%":e}er(Fo({prop:"color",themeKey:"palette",transform:Ir}),Fo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ir}),Fo({prop:"backgroundColor",themeKey:"palette",transform:Ir}));const Nr=Fo({prop:"width",transform:fr}),Rr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const i=e.theme?.breakpoints?.values?.[t]||So[t];return i?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:fr(t)}};return xo(e,e.maxWidth,t)}return null};Rr.filterProps=["maxWidth"];const Lr=Fo({prop:"minWidth",transform:fr}),yr=Fo({prop:"height",transform:fr}),Dr=Fo({prop:"maxHeight",transform:fr}),Cr=Fo({prop:"minHeight",transform:fr});Fo({prop:"size",cssProperty:"width",transform:fr}),Fo({prop:"size",cssProperty:"height",transform:fr});er(Nr,Rr,Lr,yr,Dr,Cr,Fo({prop:"boxSizing"}));const Ur={border:{themeKey:"borders",transform:tr},borderTop:{themeKey:"borders",transform:tr},borderRight:{themeKey:"borders",transform:tr},borderBottom:{themeKey:"borders",transform:tr},borderLeft:{themeKey:"borders",transform:tr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ar},color:{themeKey:"palette",transform:Ir},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ir},backgroundColor:{themeKey:"palette",transform:Ir},p:{style:Jo},pt:{style:Jo},pr:{style:Jo},pb:{style:Jo},pl:{style:Jo},px:{style:Jo},py:{style:Jo},padding:{style:Jo},paddingTop:{style:Jo},paddingRight:{style:Jo},paddingBottom:{style:Jo},paddingLeft:{style:Jo},paddingX:{style:Jo},paddingY:{style:Jo},paddingInline:{style:Jo},paddingInlineStart:{style:Jo},paddingInlineEnd:{style:Jo},paddingBlock:{style:Jo},paddingBlockStart:{style:Jo},paddingBlockEnd:{style:Jo},m:{style:Xo},mt:{style:Xo},mr:{style:Xo},mb:{style:Xo},ml:{style:Xo},mx:{style:Xo},my:{style:Xo},margin:{style:Xo},marginTop:{style:Xo},marginRight:{style:Xo},marginBottom:{style:Xo},marginLeft:{style:Xo},marginX:{style:Xo},marginY:{style:Xo},marginInline:{style:Xo},marginInlineStart:{style:Xo},marginInlineEnd:{style:Xo},marginBlock:{style:Xo},marginBlockStart:{style:Xo},marginBlockEnd:{style:Xo},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:ur},rowGap:{style:Or},columnGap:{style:mr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fr},maxWidth:{style:Rr},minWidth:{transform:fr},height:{transform:fr},maxHeight:{transform:fr},minHeight:{transform:fr},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 Mr=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=Wo(i,d)||{};if(s)return s(r);return xo(r,t,(t=>{let i=wo(p,l,t);return t===i&&"string"==typeof t&&(i=wo(p,l,`${e}${"default"===t?"":Bo(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??Ur;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=bo(l,e(i,n,r,a));else{const e=xo({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=bo(l,e):l[i]=t({sx:n,theme:r})}else l=bo(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 hr(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 Pr(e=null){const t=Q.useContext(q);return t&&(i=t,0!==Object.keys(i).length)?t:e;var i}Mr.filterProps=["sx"];const br=function(e={},...t){const{breakpoints:i={},palette:o={},spacing:r,shape:a={},...n}=e,d=Mo(i),l=function(e=8,t=zo({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=Uo({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:l,shape:{...ho,...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=hr,s=t.reduce(((e,t)=>Uo(e,t)),s),s.unstable_sxConfig={...Ur,...n?.unstable_sxConfig},s.unstable_sx=function(e){return Mr({sx:e,theme:this})},s}();function Sr(e){const{sx:t,...i}=e,{systemProps:o,otherProps:r}=(e=>{const t={systemProps:{},otherProps:{}},i=e?.theme?.unstable_sxConfig??Ur;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 Do(i)?{...o,...i}:o}:{...o,...t},{...r,sx:a}}const gr=e=>e,vr=(()=>{let e=gr;return{configure(t){e=t},generate:t=>e(t),reset(){e=gr}}})();const xr={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 Br=function(t={}){const{themeId:i,defaultTheme:o,defaultClassName:r="MuiBox-root",generateClassName:a}=t,n=
23
+ */function co(){return no||(no=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var A=e.$$typeof;switch(A){case i:switch(e=e.type){case o:case r:case a:case s:case p:case _:return e;default:switch(e=e&&e.$$typeof){case l:case n:case m:case c:case d:return e;default:return A}}case t:return A}}}var i=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),l=Symbol.for("react.context"),n=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),_=Symbol.for("react.view_transition"),A=Symbol.for("react.client.reference");po.ContextConsumer=d,po.ContextProvider=l,po.Element=i,po.ForwardRef=n,po.Fragment=o,po.Lazy=m,po.Memo=c,po.Portal=t,po.Profiler=r,po.StrictMode=a,po.Suspense=s,po.SuspenseList=p,po.isContextConsumer=function(i){return e(i)===d},po.isContextProvider=function(i){return e(i)===l},po.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},po.isForwardRef=function(i){return e(i)===n},po.isFragment=function(i){return e(i)===o},po.isLazy=function(i){return e(i)===m},po.isMemo=function(i){return e(i)===c},po.isPortal=function(i){return e(i)===t},po.isProfiler=function(i){return e(i)===r},po.isStrictMode=function(i){return e(i)===a},po.isSuspense=function(i){return e(i)===s},po.isSuspenseList=function(i){return e(i)===p},po.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===r||e===a||e===s||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===n||e.$$typeof===A||void 0!==e.getModuleId)},po.typeOf=e}()),po}function mo(){return so||(so=1,"production"===process.env.NODE_ENV?ao.exports=lo():ao.exports=co()),ao.exports}var _o=mo();function Ao(e){if("object"!=typeof e||null===e)return!1;const i=Object.getPrototypeOf(e);return!(null!==i&&i!==Object.prototype&&null!==Object.getPrototypeOf(i)||Symbol.toStringTag in e||Symbol.iterator in e)}function To(e){if(H.isValidElement(e)||_o.isValidElementType(e)||!Ao(e))return e;const i={};return Object.keys(e).forEach((t=>{i[t]=To(e[t])})),i}function uo(e,i,t={clone:!0}){const o=t.clone?{...e}:e;return Ao(e)&&Ao(i)&&Object.keys(i).forEach((a=>{H.isValidElement(i[a])||_o.isValidElementType(i[a])?o[a]=i[a]:Ao(i[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Ao(e[a])?o[a]=uo(e[a],i[a],t):t.clone?o[a]=Ao(i[a])?To(i[a]):i[a]:o[a]=i[a]})),o}function Eo(e){const{values:i={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:o=5,...a}=e,r=(e=>{const i=Object.keys(e).map((i=>({key:i,val:e[i]})))||[];return i.sort(((e,i)=>e.val-i.val)),i.reduce(((e,i)=>({...e,[i.key]:i.val})),{})})(i),d=Object.keys(r);function l(e){return`@media (min-width:${"number"==typeof i[e]?i[e]:e}${t})`}function n(e){return`@media (max-width:${("number"==typeof i[e]?i[e]:e)-o/100}${t})`}function s(e,a){const r=d.indexOf(a);return`@media (min-width:${"number"==typeof i[e]?i[e]:e}${t}) and (max-width:${(-1!==r&&"number"==typeof i[d[r]]?i[d[r]]:a)-o/100}${t})`}return{keys:d,values:r,up:l,down:n,between:s,only:function(e){return d.indexOf(e)+1<d.length?s(e,d[d.indexOf(e)+1]):l(e)},not:function(e){const i=d.indexOf(e);return 0===i?l(d[1]):i===d.length-1?n(d[i]):s(e,d[d.indexOf(e)+1]).replace("@media","@media not all and")},unit:t,...a}}const fo={borderRadius:4},Io="production"!==process.env.NODE_ENV?to.oneOfType([to.number,to.string,to.object,to.array]):{};function Oo(e,i){return i?uo(e,i,{clone:!1}):e}const No={xs:0,sm:600,md:900,lg:1200,xl:1536},yo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${No[e]}px)`},Ro={containerQueries:e=>({up:i=>{let t="number"==typeof i?i:No[i]||i;return"number"==typeof t&&(t=`${t}px`),e?`@container ${e} (min-width:${t})`:`@container (min-width:${t})`}})};function Lo(e,i,t){const o=e.theme||{};if(Array.isArray(i)){const e=o.breakpoints||yo;return i.reduce(((o,a,r)=>(o[e.up(e.keys[r])]=t(i[r]),o)),{})}if("object"==typeof i){const e=o.breakpoints||yo;return Object.keys(i).reduce(((a,r)=>{if(d=e.keys,"@"===(l=r)||l.startsWith("@")&&(d.some((e=>l.startsWith(`@${e}`)))||l.match(/^@\d/))){const e=function(e,i){const t=i.match(/^@([^/]+)?\/?(.+)?$/);if(!t){if("production"!==process.env.NODE_ENV)throw new Error("production"!==process.env.NODE_ENV?`MUI: The provided shorthand (${i}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Pt(18,`(${i})`));return null}const[,o,a]=t,r=Number.isNaN(+o)?o||0:+o;return e.containerQueries(a).up(r)}(o.containerQueries?o:Ro,r);e&&(a[e]=t(i[r],r))}else if(Object.keys(e.values||No).includes(r)){a[e.up(r)]=t(i[r],r)}else{const e=r;a[e]=i[e]}var d,l;return a}),{})}return t(i)}function ho(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Pt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Po(e,i,t=!0){if(!i||"string"!=typeof i)return null;if(e&&e.vars&&t){const t=`vars.${i}`.split(".").reduce(((e,i)=>e&&e[i]?e[i]:null),e);if(null!=t)return t}return i.split(".").reduce(((e,i)=>e&&null!=e[i]?e[i]:null),e)}function Mo(e,i,t,o=t){let a;return a="function"==typeof e?e(t):Array.isArray(e)?e[t]||o:Po(e,t)||o,i&&(a=i(a,o,e)),a}function Co(e){const{prop:i,cssProperty:t=e.prop,themeKey:o,transform:a}=e,r=e=>{if(null==e[i])return null;const r=e[i],d=Po(e.theme,o)||{};return Lo(e,r,(e=>{let o=Mo(d,a,e);return e===o&&"string"==typeof e&&(o=Mo(d,a,`${i}${"default"===e?"":ho(e)}`,e)),!1===t?o:{[t]:o}}))};return r.propTypes="production"!==process.env.NODE_ENV?{[i]:Io}:{},r.filterProps=[i],r}const Do={m:"margin",p:"padding"},bo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},go={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},So=function(e){const i={};return t=>(void 0===i[t]&&(i[t]=e(t)),i[t])}((e=>{if(e.length>2){if(!go[e])return[e];e=go[e]}const[i,t]=e.split(""),o=Do[i],a=bo[t]||"";return Array.isArray(a)?a.map((e=>o+e)):[o+a]})),Uo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],wo=[...Uo,...vo];function Bo(e,i,t,o){const a=Po(e,i,!0)??t;return"number"==typeof a||"string"==typeof a?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 a?a.startsWith("var(")&&0===e?0:a.startsWith("var(")&&1===e?a:`calc(${e} * ${a})`:a*e):Array.isArray(a)?e=>{if("string"==typeof e)return e;const t=Math.abs(e);"production"!==process.env.NODE_ENV&&(Number.isInteger(t)?t>a.length-1&&console.error([`MUI: The value provided (${t}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${t} > ${a.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${i}\` 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.${i}\` as a number.`].join("\n")));const o=a[t];return e>=0?o:"number"==typeof o?-o:"string"==typeof o&&o.startsWith("var(")?`calc(-1 * ${o})`:`-${o}`}:"function"==typeof a?a:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${i}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function xo(e){return Bo(e,"spacing",8,"spacing")}function Fo(e,i){return"string"==typeof i||null==i?i:e(i)}function ko(e,i,t,o){if(!i.includes(t))return null;const a=function(e,i){return t=>e.reduce(((e,o)=>(e[o]=Fo(i,t),e)),{})}(So(t),o);return Lo(e,e[t],a)}function Wo(e,i){const t=xo(e.theme);return Object.keys(e).map((o=>ko(e,i,o,t))).reduce(Oo,{})}function Go(e){return Wo(e,Uo)}function Vo(e){return Wo(e,vo)}function Yo(...e){const i=e.reduce(((e,i)=>(i.filterProps.forEach((t=>{e[t]=i})),e)),{}),t=e=>Object.keys(e).reduce(((t,o)=>i[o]?Oo(t,i[o](e)):t),{});return t.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,i)=>Object.assign(e,i.propTypes)),{}):{},t.filterProps=e.reduce(((e,i)=>e.concat(i.filterProps)),[]),t}function qo(e){return"number"!=typeof e?e:`${e}px solid`}function Ko(e,i){return Co({prop:e,themeKey:"borders",transform:i})}Go.propTypes="production"!==process.env.NODE_ENV?Uo.reduce(((e,i)=>(e[i]=Io,e)),{}):{},Go.filterProps=Uo,Vo.propTypes="production"!==process.env.NODE_ENV?vo.reduce(((e,i)=>(e[i]=Io,e)),{}):{},Vo.filterProps=vo,"production"===process.env.NODE_ENV||wo.reduce(((e,i)=>(e[i]=Io,e)),{});const zo=Ko("border",qo),Ho=Ko("borderTop",qo),Qo=Ko("borderRight",qo),Zo=Ko("borderBottom",qo),jo=Ko("borderLeft",qo),$o=Ko("borderColor"),Xo=Ko("borderTopColor"),Jo=Ko("borderRightColor"),ea=Ko("borderBottomColor"),ia=Ko("borderLeftColor"),ta=Ko("outline",qo),oa=Ko("outlineColor"),aa=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const i=Bo(e.theme,"shape.borderRadius",4,"borderRadius"),t=e=>({borderRadius:Fo(i,e)});return Lo(e,e.borderRadius,t)}return null};aa.propTypes="production"!==process.env.NODE_ENV?{borderRadius:Io}:{},aa.filterProps=["borderRadius"],Yo(zo,Ho,Qo,Zo,jo,$o,Xo,Jo,ea,ia,aa,ta,oa);const ra=e=>{if(void 0!==e.gap&&null!==e.gap){const i=Bo(e.theme,"spacing",8,"gap"),t=e=>({gap:Fo(i,e)});return Lo(e,e.gap,t)}return null};ra.propTypes="production"!==process.env.NODE_ENV?{gap:Io}:{},ra.filterProps=["gap"];const da=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const i=Bo(e.theme,"spacing",8,"columnGap"),t=e=>({columnGap:Fo(i,e)});return Lo(e,e.columnGap,t)}return null};da.propTypes="production"!==process.env.NODE_ENV?{columnGap:Io}:{},da.filterProps=["columnGap"];const la=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const i=Bo(e.theme,"spacing",8,"rowGap"),t=e=>({rowGap:Fo(i,e)});return Lo(e,e.rowGap,t)}return null};la.propTypes="production"!==process.env.NODE_ENV?{rowGap:Io}:{},la.filterProps=["rowGap"];function na(e,i){return"grey"===i?i:e}Yo(ra,da,la,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 sa(e){return e<=1&&0!==e?100*e+"%":e}Yo(Co({prop:"color",themeKey:"palette",transform:na}),Co({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:na}),Co({prop:"backgroundColor",themeKey:"palette",transform:na}));const pa=Co({prop:"width",transform:sa}),ca=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const i=i=>{const t=e.theme?.breakpoints?.values?.[i]||No[i];return t?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${t}${e.theme.breakpoints.unit}`}:{maxWidth:t}:{maxWidth:sa(i)}};return Lo(e,e.maxWidth,i)}return null};ca.filterProps=["maxWidth"];const ma=Co({prop:"minWidth",transform:sa}),_a=Co({prop:"height",transform:sa}),Aa=Co({prop:"maxHeight",transform:sa}),Ta=Co({prop:"minHeight",transform:sa});Co({prop:"size",cssProperty:"width",transform:sa}),Co({prop:"size",cssProperty:"height",transform:sa});Yo(pa,ca,ma,_a,Aa,Ta,Co({prop:"boxSizing"}));const ua={border:{themeKey:"borders",transform:qo},borderTop:{themeKey:"borders",transform:qo},borderRight:{themeKey:"borders",transform:qo},borderBottom:{themeKey:"borders",transform:qo},borderLeft:{themeKey:"borders",transform:qo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:aa},color:{themeKey:"palette",transform:na},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:na},backgroundColor:{themeKey:"palette",transform:na},p:{style:Vo},pt:{style:Vo},pr:{style:Vo},pb:{style:Vo},pl:{style:Vo},px:{style:Vo},py:{style:Vo},padding:{style:Vo},paddingTop:{style:Vo},paddingRight:{style:Vo},paddingBottom:{style:Vo},paddingLeft:{style:Vo},paddingX:{style:Vo},paddingY:{style:Vo},paddingInline:{style:Vo},paddingInlineStart:{style:Vo},paddingInlineEnd:{style:Vo},paddingBlock:{style:Vo},paddingBlockStart:{style:Vo},paddingBlockEnd:{style:Vo},m:{style:Go},mt:{style:Go},mr:{style:Go},mb:{style:Go},ml:{style:Go},mx:{style:Go},my:{style:Go},margin:{style:Go},marginTop:{style:Go},marginRight:{style:Go},marginBottom:{style:Go},marginLeft:{style:Go},marginX:{style:Go},marginY:{style:Go},marginInline:{style:Go},marginInlineStart:{style:Go},marginInlineEnd:{style:Go},marginBlock:{style:Go},marginBlockStart:{style:Go},marginBlockEnd:{style:Go},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:ra},rowGap:{style:la},columnGap:{style:da},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sa},maxWidth:{style:ca},minWidth:{transform:sa},height:{transform:sa},maxHeight:{transform:sa},minHeight:{transform:sa},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 Ea=function(){function e(e,i,t,o){const a={[e]:i,theme:t},r=o[e];if(!r)return{[e]:i};const{cssProperty:d=e,themeKey:l,transform:n,style:s}=r;if(null==i)return null;if("typography"===l&&"inherit"===i)return{[e]:i};const p=Po(t,l)||{};if(s)return s(a);return Lo(a,i,(i=>{let t=Mo(p,n,i);return i===t&&"string"==typeof i&&(t=Mo(p,n,`${e}${"default"===i?"":ho(i)}`,i)),!1===d?t:{[d]:t}}))}return function i(t){const{sx:o,theme:a={}}=t||{};if(!o)return null;const r=a.unstable_sxConfig??ua;function d(t){let o=t;if("function"==typeof t)o=t(a);else if("object"!=typeof t)return t;if(!o)return null;const d=function(e={}){const i=e.keys?.reduce(((i,t)=>(i[e.up(t)]={},i)),{});return i||{}}(a.breakpoints),l=Object.keys(d);let n=d;return Object.keys(o).forEach((t=>{const d=(l=o[t],s=a,"function"==typeof l?l(s):l);var l,s;if(null!=d)if("object"==typeof d)if(r[t])n=Oo(n,e(t,d,a,r));else{const e=Lo({theme:a},d,(e=>({[t]:e})));!function(...e){const i=e.reduce(((e,i)=>e.concat(Object.keys(i))),[]),t=new Set(i);return e.every((e=>t.size===Object.keys(e).length))}(e,d)?n=Oo(n,e):n[t]=i({sx:d,theme:a})}else n=Oo(n,e(t,d,a,r))})),function(e,i){if(!e.containerQueries)return i;const t=Object.keys(i).filter((e=>e.startsWith("@container"))).sort(((e,i)=>{const t=/min-width:\s*([0-9.]+)/;return+(e.match(t)?.[1]||0)-+(i.match(t)?.[1]||0)}));return t.length?t.reduce(((e,t)=>{const o=i[t];return delete e[t],e[t]=o,e}),{...i}):i}(a,function(e,i){return e.reduce(((e,i)=>{const t=e[i];return(!t||0===Object.keys(t).length)&&delete e[i],e}),i)}(l,n))}return Array.isArray(o)?o.map(d):d(o)}}();function fa(e,i){const t=this;if(t.vars){if(!t.colorSchemes?.[e]||"function"!=typeof t.getColorSchemeSelector)return{};let o=t.getColorSchemeSelector(e);return"&"===o?i:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:i})}return t.palette.mode===e?i:{}}function Ia(e=null){const i=H.useContext(q);return i&&(t=i,0!==Object.keys(t).length)?i:e;var t}Ea.filterProps=["sx"];const Oa=function(e={},...i){const{breakpoints:t={},palette:o={},spacing:a,shape:r={},...d}=e,l=Eo(t),n=function(e=8,i=xo({spacing:e})){if(e.mui)return e;const t=(...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 t=i(e);return"number"==typeof t?`${t}px`:t})).join(" "));return t.mui=!0,t}(a);let s=uo({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:n,shape:{...fo,...r}},d);return s=function(e){const i=(e,i)=>e.replace("@media",i?`@container ${i}`:"@container");function t(t,o){t.up=(...t)=>i(e.breakpoints.up(...t),o),t.down=(...t)=>i(e.breakpoints.down(...t),o),t.between=(...t)=>i(e.breakpoints.between(...t),o),t.only=(...t)=>i(e.breakpoints.only(...t),o),t.not=(...t)=>{const a=i(e.breakpoints.not(...t),o);return a.includes("not all and")?a.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):a}}const o={},a=e=>(t(o,e),o);return t(a),{...e,containerQueries:a}}(s),s.applyStyles=fa,s=i.reduce(((e,i)=>uo(e,i)),s),s.unstable_sxConfig={...ua,...d?.unstable_sxConfig},s.unstable_sx=function(e){return Ea({sx:e,theme:this})},s}();function Na(e){const{sx:i,...t}=e,{systemProps:o,otherProps:a}=(e=>{const i={systemProps:{},otherProps:{}},t=e?.theme?.unstable_sxConfig??ua;return Object.keys(e).forEach((o=>{t[o]?i.systemProps[o]=e[o]:i.otherProps[o]=e[o]})),i})(t);let r;return r=Array.isArray(i)?[o,...i]:"function"==typeof i?(...e)=>{const t=i(...e);return Ao(t)?{...o,...t}:o}:{...o,...i},{...a,sx:r}}const ya=e=>e,Ra=(()=>{let e=ya;return{configure(i){e=i},generate:i=>e(i),reset(){e=ya}}})();function La(e){var i,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(i=0;i<a;i++)e[i]&&(t=La(e[i]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function ha(){for(var e,i,t=0,o="",a=arguments.length;t<a;t++)(e=arguments[t])&&(i=La(e))&&(o&&(o+=" "),o+=i);return o}const Pa={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 Ma=function(e={}){const{themeId:t,defaultTheme:o,defaultClassName:a="MuiBox-root",generateClassName:r}=e,d=
24
24
  /**
25
- * @mui/styled-engine v7.1.0
25
+ * @mui/styled-engine v7.1.1
26
26
  *
27
27
  * @license MIT
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})(Mr),d=Q.forwardRef((function(t,d){const l=function(e=br){return Pr(e)}(o),{className:s,component:p="div",..._}=Sr(t);return e(n,{as:p,ref:d,className:Qt(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=xr[t];return o?`${i}-${o}`:`${vr.generate(e)}-${t}`}(e,t,i)})),o}("MuiBox",["root"]).root,generateClassName:vr.generate});"production"!==process.env.NODE_ENV&&(Br.propTypes={children:co.node,component:co.elementType,sx:co.oneOfType([co.arrayOf(co.oneOfType([co.func,co.object,co.bool])),co.func,co.object])});const Wr=t=>e(L,{...t,slotProps:{inputLabel:{shrink:!0}}}),wr=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(S,{size:o?.formProps?.fieldSize||{lg:12,md:12,sm:12},sx:{padding:1,width:"100%"},children:"text"===l||"number"===l?e(Wr,{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&&vi(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(Oi,{format:o?.dateFormat||Ei,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(Ii,{format:o?.dateFormat||Ti,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(Ni,{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(fi,{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,{})},Fr=o=>{const r=zt(),{ConfirmationWindow:a,setOpen:n}=pi({body:o?.confirmationMessage||"",title:"Confirmation",onConfirmationCallBk:()=>{o?.actionFn(o?.record)}});return null==o?.authority||r.isUserAuthorized(o.authority)?t(i,{children:[e(a,{}),t(N,{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(oe,{icon:o.icon,style:{marginRight:5,marginLeft:5}}):e(i,{}),e("div",{children:o?.label})]})]}):e(i,{})},kr=o=>e(i,{children:t(S,{container:!0,sx:o?.style,alignItems:"flex-start",children:[o?.label?e(S,{size:12,sx:{padding:1,fontWeight:"bold",display:"flex"},children:o?.icon?t(i,{children:[e(oe,{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(kr,{...t.props,formManager:o.formManager,formValues:o.formValues,formActions:o.formActions,hiddenFields:o.hiddenFields,disabledFields:o.disabledFields}):"field"===t.type&&"props"===t.mode?e(wr,{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(S,{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(S,{size:{sm:12},sx:{padding:1},children:o.actions.map((t=>e(Fr,{...t,record:o.formValues})))}):e(i,{})]})}),Gr=o=>{const r=Ci(o.elements),[a,n]=Z([]),[d,l]=Z([]),s=at.object(Ui(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 $((()=>{(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(Br,{sx:{display:"flex",flex:1,width:"100%",height:"fit-content",flexDirection:"column",alignItems:"center",overflow:"auto"},children:e(S,{sx:{width:"100%"},container:!0,children:o.elements.map((t=>"group"===t.type?e(kr,{...t.props,formManager:p,formValues:_,formActions:c,hiddenFields:a,disabledFields:d}):"field"===t.type&&"props"===t.mode?e(wr,{fieldInfo:t.props,formManager:p,formValues:_,formActions:c,hiddenFields:a,disabledFields:d}):"field"===t.type&&"node"===t.mode?e(S,{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(Br,{sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"flex-start"},children:[o?.actions?o.actions.map((t=>!0===t?.formActionProps?.enabled?e(Fr,{...t,record:_}):e(i,{}))):e(i,{}),e("div",{style:{flex:1}}),e(N,{variant:o?.saveButtonSpecs?.actionButtonVariant?o.saveButtonSpecs.actionButtonVariant:"contained",sx:{m:1},startIcon:o?.saveButtonSpecs?.icon?e(oe,{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(N,{variant:o?.cancelButtonSpecs?.actionButtonVariant?o.cancelButtonSpecs.actionButtonVariant:"contained",startIcon:o?.cancelButtonSpecs?.icon?e(oe,{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"})]})]})},Yr=i=>{const[o,r]=Z(!1);return{windowState:o,setWindowState:r,Window:a=>e(g,{open:o,sx:{zIndex:e=>e.zIndex.drawer},onClose:()=>{!o&&i?.onCloseCallBack&&i.onCloseCallBack()},children:t(A,{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(v,{position:"static",children:t(x,{variant:"dense",children:[e(oe,{icon:i?.windowIcon||"window-maximize",style:{marginRight:5}}),e(T,{variant:"h6",color:"inherit",component:"div",children:i?.windowTitle||"window"}),e("div",{style:{flexGrow:1}}),e(_,{onClick:()=>{r(!1),null!=i.onCloseCallBack&&null!=i.onCloseCallBack&&i.onCloseCallBack()},color:"secondary",children:e(oe,{icon:"xmark-square"})})]})}),e(B,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%",padding:1,overflow:"hidden"},children:a?.children})]})})}};let Kr=-1;const qr=e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):{}}catch(e){return console.error("Failed to load grid state",e),{}}},Vr=(e,t)=>{const i=qr(e);localStorage.setItem(e,JSON.stringify({...i,...t}))},Hr=["__check__","actions"],Qr=o=>{const{t:a}=_e(),n=Ci(o.formElements),d=[],l=z.useMemo((()=>o?.gridStateKey?qr(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,c]=z.useState(s),[u,m]=z.useState(l.columnOrder||[]),[O,I]=z.useState(l.columnWidths||{}),[f,N]=Z(l.columnGroupingModel||[]);let R=l?.pinnedColumns?.left||[];R=R.filter((e=>!Hr.includes(e)));let L=l?.pinnedColumns?.right||[]||[];L=L.filter((e=>!Hr.includes(e)));const[y,D]=Z({left:[..."ltr"===p?Hr:[],...R],right:[..."rtl"===p?Hr:[],...L]}),C=zt(),M=be(),[P,b]=Z(null),[S,g]=Z(null),[v,x]=Z({}),[B,k]=Z({ids:new Set,type:"include"});let G="id";o?.keyColumnName&&(G=o?.keyColumnName);const Y=o.setData,K=nt.object(Ui(n)),q=((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(Oi,{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(Ei)),o},valueFormatter:(e,t,i)=>t[i.field]});r.push(t)}else if("datetime"===n?.fieldType){const e=Ri({...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=yi({...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=Li({...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:j}=pi({title:"Confirmation",body:"Are you sure you want to delete this record ?",onConfirmationCallBk:async()=>{let e=!0;P&&!0===P?.isNew||(e=await o.apiActions.deleteRecordById(P[G])),e&&(o?.deleteAction?.postActionCallBack&&await o.deleteAction.postActionCallBack(P),Y((e=>e.filter((e=>e[G]!=P[G])))))}});let X,J,ee,te,ie,re;"modal"===o?.editMode?.editMode&&(X=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",re=o?.editMode?.specs?.modalTitle||"Record Form");const{Window:ae,setWindowState:de}=Yr({height:X,minHeight:ee,minWidth:te,onCloseCallBack:()=>{o.apiActions.reloadData(o?.gridLoadParametersValues)},width:J,windowIcon:ie,windowTitle:re}),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[G]]?.mode===Je.Edit;if("row"===o.editMode.editMode&&t)V&&(r.push(e($e,{icon:e(oe,{icon:"save"}),label:a("SAVE_BTN_LABEL"),onClick:()=>{(e=>{const t=e[G];x({...v,[t]:{mode:Je.View}})})(i)}})),r.push(e($e,{icon:e(oe,{icon:"cancel"}),label:a("CANCEL_BTN_LABEL"),onClick:()=>{(e=>{const t=e[G];t&&gi(t)&&t<0?(x({...v,[t]:{mode:Je.View,ignoreModifications:!0}}),Y((e=>{const i=e.filter((e=>e[G]!=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(U,{title:a("EDIT_BTN_LABEL"),children:e(oe,{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)M(o.editMode.specs.formRoute+"/"+e[G]);else if("modal"===o.editMode.editMode)de(!0);else if("row"===o?.editMode?.editMode){const t=e[G];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(U,{title:a("DELETE_BTN_LABEL"),children:e(oe,{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;b(i),j(!0)}}}))}}}if(o?.rowActions)for(const t of o.rowActions)t?.gridActionProps?.multiRecord&&!0===t?.gridActionProps?.multiRecord||r.push(e(Bi,{...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,...q];$((()=>{void 0!==o?.autoLoad&&!0!==o.autoLoad||o.apiActions.reloadData(o?.gridLoadParametersValues)}),[]);const pe=z.useMemo((()=>{const e=se.map((e=>({...e,width:O[e.field]||e.width})));if(u.length){const t=new Map(e.map((e=>[e.field,e])));return u.map((e=>t.get(e))).filter(Boolean)}return e}),[u,O,se]);return t(i,{children:[e(Q,{}),"modal"===o?.editMode?.editMode?e(ae,{children:o?.editMode?.specs?.formComponent?e(o.editMode.specs.formComponent,{recordIdToEdit:S?S[G]:void 0,formCloseCallBk:()=>{de(!1),o.apiActions.reloadData(o?.gridLoadParametersValues)}}):e(Gr,{recordIdToEdit:S?S[G]: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(A,{sx:{display:"flex"},children:[void 0!==o?.hideBackButton||o?.hideBackButton?e(i,{}):e(_,{onClick:()=>{M("-1",{replace:!0})},children:e(oe,{icon:"arrow-left"})}),t(A,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:[o?.girdIcon?e(oe,{icon:o.girdIcon,style:{marginRight:5,marginLeft:5}}):e(i,{}),e(T,{variant:"h5",children:o?.gridTitle?xi(a(o?.gridTitle)):""})]})]}),o?.gridLoadParameters&&o?.gridLoadParametersValues&&o?.setGridLoadParametersValues?t(W,{defaultExpanded:!0,children:[e(w,{expandIcon:e(je,{}),children:t(A,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[e(oe,{style:{marginLeft:5,marginRight:5},icon:"search"}),e(T,{component:"span",children:"Filters"})]})}),e(F,{children:e(A,{children:e(Gr,{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:bi},slotProps:{toolbar:{templateProps:{...o,rowSelectionModel:B,data:o?.data},handleCreateNewRecord:()=>{if("form"===o?.editMode?.editMode)M(o.editMode.specs.formRoute);else if("modal"===o?.editMode?.editMode)de(!0);else if("row"===o?.editMode?.editMode){Kr-=1;const e={};e[G]=Kr,e.isNew=!0;for(const t of q)"actions"!=t?.type&&t?.field!=G&&t?.field&&(e[t.field]=null);Y((t=>[e,...t])),x((e=>({...e,[Kr]:{mode:Je.Edit}})))}},clearGridState:()=>{o?.gridStateKey&&localStorage.removeItem(o.gridStateKey),c({}),m([]),I({}),N([]),D({left:[..."ltr"===p?Hr:[]],right:[..."rtl"===p?Hr:[]]})}}},getRowId:e=>e[G],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{K.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(h,{})]})))})),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[G]&&gi(r[G])&&Number(r[G])<0&&(d[G]=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&&Y((e=>{const t=e.filter((e=>e[G]!==r[G]));return[a,...t]})),!0===o?.editMode?.reloadAfterSave&&o?.apiActions?.reloadData&&o?.apiActions?.reloadData(o?.gridLoadParametersValues),a}},rowSelectionModel:B,onRowSelectionModelChange:e=>{k(e)},columnVisibilityModel:E,onColumnVisibilityModelChange:e=>{c(e),o?.gridStateKey&&Vr(o.gridStateKey,{columnVisibilityModel:e})},onColumnOrderChange:e=>{const{column:t,targetIndex:i}=e;m((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&&Vr(o.gridStateKey,{columnOrder:r})),r}))},onColumnWidthChange:e=>{const t={...O,[e.colDef.field]:e.width};I(t),o?.gridStateKey&&Vr(o.gridStateKey,{columnWidths:t})},rowGroupingModel:f,onRowGroupingModelChange:e=>{(e=>{N(e),o?.gridStateKey&&Vr(o.gridStateKey,{columnGroupingModel:e})})(e)},pinnedColumns:y,onPinnedColumnsChange:e=>{let t=e?.left||[];t=t.filter((e=>!Hr.includes(e)));let i=e?.right||[];i=i.filter((e=>!Hr.includes(e)));const r={left:[..."ltr"===p?Hr:[],...t],right:[..."rtl"===p?Hr:[],...i]};D(r),o?.gridStateKey&&Vr(o.gridStateKey,{pinnedColumns:r})}})]})},zr=re({name:"loadingMask",initialState:{stores:{},storeKeys:[],isAutoLoadLoaded:!1},reducers:{setStoresMetaData:(e,t)=>{e.stores=t.payload,e.storeKeys=Object.keys(t.payload)},setStoreData:(e,t)=>{e.stores[t.payload.storeKey].data=t.payload.data},setAutoLoadLoaded:()=>{state.isAutoLoadLoaded=!0}}}),{setStoreData:Zr,setStoresMetaData:$r,setAutoLoadLoaded:jr}=zr.actions;var Xr=zr.reducer;const Jr=e=>{const t=r((e=>e.commonStores.stores)),i=o(),a=zt(),{handleGetRequest:n,handlePostRequest:d,handleDeleteRequest:l}=Bt();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(Zr({storeKey:r,data:t.data})),e.setData(t.data)},failureCallBkFn:()=>{i(Zr({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}}};function ea(e,t){return e.filter((e=>-1===t.indexOf(e)))}function ta(e,t){return e.filter((e=>-1!==t.indexOf(e)))}const ia=({valueField:i="id",displayField:o="name",options:r=[],selectedOptions:a=[],setSelection:n})=>{const[d,l]=Q.useState([]),[s,p]=Q.useState(r),[_,E]=Q.useState(a),[T,c]=Q.useState(""),[u,m]=Q.useState(""),O=ta(d,s),I=ta(d,_),f=e=>()=>{const t=d.indexOf(e),i=[...d];-1===t?i.push(e):i.splice(t,1),l(i)},N=e=>ta(d,e).length,R=e=>()=>{var t,i;N(e)===e.length?l(ea(d,e)):l((t=d,i=e,[...t,...ea(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(u.toLocaleLowerCase()))return!0}return!1}));return t(_t,{sx:{height:"100%"},children:[e(Et,{sx:{px:2,py:1},avatar:e(At,{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(A,{sx:{width:"100%",padding:1},children:e(Wr,{fullWidth:!0,label:"search",value:"left"===n?T:u,onChange:e=>{"left"===n?c(e.target.value):m(e.target.value)}})}),e(Ee,{}),e(pt,{sx:{width:"100%",height:"100%",bgcolor:"secondary",overflow:"auto"},dense:!0,component:"div",role:"list",children:l.map((r=>(r[i],t(k,{role:"listitem",onClick:f(r),sx:{cursor:"pointer"},children:[e(ct,{children:e(At,{checked:-1!==d.indexOf(r),tabIndex:-1,disableRipple:!0})}),e(Tt,{id:r[i],primary:r[o]})]},r[i]))))})]})};return t(S,{container:!0,spacing:2,sx:{flexGrow:1,overflow:"auto",margin:1,display:"flex",width:"100%"},justifyContent:"center",alignItems:"center",children:[e(S,{sx:{height:"100%",flex:1},children:L("Available Items",s,"left")}),e(S,{children:t(S,{container:!0,direction:"column",alignItems:"center",children:[e(ut,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{E((e=>{let t=_.concat(O);return n(t),t})),p(ea(s,O)),l(ea(d,O))},disabled:0===O.length,"aria-label":"move selected right",children:">"}),e(ut,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{p(s.concat(I)),E((e=>{let t=ea(_,I);return n(t),t})),l(ea(d,I))},disabled:0===I.length,"aria-label":"move selected left",children:"<"})]})}),e(S,{sx:{height:"100%",flex:1},children:L("Currently Selected",_,"right")})]})},oa=t=>{const i=t.data.map(((e,i)=>({id:i,value:e[t.valueField],label:e[t.labelField]+""})));return console.log("chartData",i),e(Ot,{series:[{data:i}]})},ra=t=>e(It,{dataset:t.data,xAxis:[{dataKey:t.valueField,scaleType:"band"}],series:t.labelField?.split(",").map((e=>({dataKey:e,label:e})))}),aa=t=>e(ft,{dataset:t.data,xAxis:[{dataKey:t.valueField,scaleType:"band"}],series:t.labelField?.split(",").map((e=>({dataKey:e,label:e})))}),na=o=>t(i,{children:[t(T,{sx:{fontSize:16,fontWeight:"bold"},children:[o.widgetTitle," - ",o.record[o.labelField]]}),e(Nt,{width:200,height:200,value:o.record[o.valueField]})]}),da=i=>t(B,{sx:{display:"flex",flexDirection:"column",height:150,padding:1,flexGrow:1,justifyContent:"center",alignItems:"center"},children:[e(A,{sx:{display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"},children:e(T,{sx:{fontSize:16,fontWeight:"bold"},children:i.widgetTitle})}),e(A,{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(A,{sx:{display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"}})]});function la(i){return t(me,{sx:{display:"flex",alignItems:"center"},children:[e(me,{sx:{width:"100%",mr:1},children:e(Rt,{variant:"determinate",...i})}),e(me,{sx:{minWidth:35},children:e(Ie,{variant:"body2",sx:{color:"text.secondary"},children:`${Math.round(i.value)}%`})})]})}const sa=i=>t(me,{sx:{width:"100%"},children:[t(Ie,{sx:{fontSize:16,fontWeight:"bold"},children:[i.widgetTitle," - ",i.record[i.labelField]]}),e(la,{value:i.record[i.valueField]})]}),pa=({children:t,widgetType:i})=>e(mt,{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}),_a=o=>t(i,{children:[e(T,{sx:{fontSize:20,fontWeight:"bold"},children:o.dashboardTitle}),e(mt,{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(pa,{widgetType:o.widgetType,children:["Card"===o.widgetType?e(da,{...a}):null,"Gauge"===o.widgetType?e(na,{...a}):null,"Progress"===o.widgetType?e(sa,{...a}):null]},r)}))}):t(pa,{widgetType:o.widgetType,children:["Pie"===o.widgetType?e(oa,{...o}):null,"Line"===o.widgetType?e(aa,{...o}):null,"Bar"===o.widgetType?e(ra,{...o}):null]},r)))})]}),Ea=o=>{const[r,a]=Z([...o.currentRoleAuthorities]),{handlePostRequest:n}=Bt();return t(i,{children:[e(ia,{displayField:"authorityName",options:o.availableAuthorities,valueField:"id",selectedOptions:r,setSelection:a}),t(A,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",width:"100%"},children:[e(N,{variant:"contained",onClick:async()=>{await n({endPointURI:"api/v1/admin/role/authorities",showMask:!0,parameters:{roleId:o.roleId},data:r,successCallBkFn:()=>{ne.success("Your request has been proccesed successfully"),o.closeModalFn&&o.closeModalFn()}})},sx:{marginRight:1,marginLeft:1},children:"Save"}),e(N,{variant:"contained",color:"error",onClick:o.closeModalFn,children:"Cancel"})]})]})},Ta=[{path:"/",component:()=>t(A,{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(oe,{icon:"bars",style:{marginLeft:10,marginRight:10}}),"] to navigate to your authorized system modules"]})]})},...[...[{path:"admin/attachments",component:()=>{const[t,i]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({commonStoreKey:"SystemAuthorities",deleteById:"api/v1/admin/authority",save:"api/v1/admin/authority",findById:"api/v1/admin/authority",setData:i});return e(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({commonStoreKey:"SystemDataQueries",deleteById:"api/v1/admin/dataquery",save:"api/v1/admin/dataquery",findById:"api/v1/admin/dataquery",setData:i});return e(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({commonStoreKey:"SystemDataSources",deleteById:"api/v1/admin/datasourceconnection",save:"api/v1/admin/datasourceconnection",findById:"api/v1/admin/datasourceconnection",setData:i});return e(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({commonStoreKey:"SystemEntityParameters",deleteById:"api/v1/admin/entityparameter",save:"api/v1/admin/entityparameter",findById:"api/v1/admin/entityparameter",setData:i});return e(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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[o,r]=Z([]),a=Jr({commonStoreKey:"SystemRoles",deleteById:"api/v1/admin/role",save:"api/v1/admin/role",findById:"api/v1/admin/role",setData:r}),[n,d]=Z(null),{handleGetRequest:l}=Bt(),[s,p]=Z([]),[_,E]=Z([]),{Window:T,setWindowState:c}=Yr({width:"50%",windowIcon:"key",windowTitle:"Role Authorities"});return t(i,{children:[e(T,{children:e(Ea,{roleId:n?.id,availableAuthorities:_,currentRoleAuthorities:s,closeModalFn:()=>{c(!1)}})}),e(Qr,{rowActions:[{icon:"key",label:"authorities",actionFn:async e=>{d(e),(async e=>{await l({endPointURI:"api/v1/admin/role/authorities",showMask:!0,parameters:{roleId:e.id},successCallBkFn:e=>{c(!0),p(e.data.selectedAuthorities),E(e.data.availableAuthorities)}})})(e)}}],apiActions:a,data:o,setData:r,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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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]=Z([]),o=Jr({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(Qr,{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"}]]],ca=()=>{const i=r((e=>e.AppLayout)),o=r((e=>e.AppInfo.value)),a=r((e=>e.AppInfo.value.businessRoutes));return e(V,{value:"ltr"===i.appDirection?si:li,children:e(A,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",flex:1,overflow:"hidden",padding:3},children:t(ge,{children:[o.enableAdministrationModule?Ta.map(((t,i)=>e(ve,{path:t.path,Component:t.component},"adm"+i))):null,a.map(((t,i)=>e(ve,{path:t.path,Component:t.component},"bs"+i)))]})})})},Aa=j("div")((({theme:e})=>({width:30,height:6,margin:10,backgroundColor:Lt[300],borderRadius:3,top:8,...e.applyStyles("dark",{backgroundColor:Lt[900]})})));function ua(i){const{window:a}=i,n=r((e=>e.AppLayout)),d=r((e=>e.AppInfo.value)),l=o(),s=e=>{l(ht.setSideBarState(e))};return e(yt,{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(A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",overflow:"hidden"},children:[e(Aa,{}),e(A,{sx:{flexGrow:1,display:"flex",justifyContent:"center",width:"99%",overflowY:"auto"},children:e(ni,{})}),t(A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1,width:"100%"},children:[e(T,{sx:{fontSize:12},color:"textDisabled",children:d.appName}),t(T,{sx:{fontSize:12},color:"textDisabled",children:["V.",d.appVersion]})]})]})})}const ma=()=>{const t=r((e=>e.loadingMask.value));return e(G,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:t.isOpened,children:e(Y,{color:"inherit"})})},Oa=()=>{const a=r((e=>e.AppInfo.value)),[n,d]=Z(""),[l,s]=Z(""),[p,_]=Z(!1),E=r((e=>e.UserSession.value)),c=o(),u=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};c(wt.setAuthenticated(t))}}catch(e){_(!1),ne.error(e?.response?.data||"failed to authenticate, contact your administrator")}},m=r((e=>e.UserSession.value)),O=K({components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${a.appTheme?.dark?.primaryColor||ui} #121212;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"dark",primary:{main:a.appTheme?.dark?.primaryColor||ui},secondary:{main:a.appTheme?.dark?.secondaryColor||mi}}});return $((()=>{(async()=>{if(a?.apiBaseUrl&&null==m.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};c(wt.setAuthenticated(t))}else c(wt.setUnAuthenticated())}catch(e){c(wt.setUnAuthenticated())}})()}),[a]),e(H,{theme:O,children:e(B,{sx:{display:"flex",height:"100vh",width:"100%",borderRadius:0,alignItems:"center",justifyContent:"center"},children:0==E.isAuthenticated?t(A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[e("img",{src:a?.appLogo,width:150,height:150}),e(T,{sx:{m:1},variant:"h4",color:"textSecondary",children:a?.appName}),t(T,{sx:{paddingRight:1,width:"100%",textAlign:"right",fontSize:10},variant:"caption",color:"textSecondary",children:["V.",a.appVersion]}),e(L,{label:"username",sx:{width:300,m:1},value:n,onChange:e=>{d(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&u()}}),e(L,{label:"password",sx:{width:300,m:1},value:l,type:"password",onChange:e=>{s(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&u()}}),e(N,{loading:p,onClick:u,variant:"contained",color:"primary",sx:{m:1},children:"login"})]}):t(i,{children:[e(Y,{sx:{marginRight:1}}),e("div",{children:"You will be redirected shortly ... please wait"})]})})})},Ia=j("main",{shouldForwardProp:e=>"open"!==e})((({theme:e,open:t})=>{const i=r((e=>e.AppLayout)),a=o(),{show:n,hide:d}=xt(),l=r((e=>e.commonStores)),[s,p]=Z(!1),_=J(),E=Ct(),{isUserAuthorized:T}=zt(),{handleGetRequest:c}=Bt();return $((()=>{l.storeKeys&&(async()=>{if(!s){p(!0),n("Loading ... please wait");const e=l.stores,t=l.storeKeys;for(let i of t)void 0!==e[i]?.authority&&null!==e[i]?.authority&&!T(e[i]?.authority)||""==e[i]?.url||!0!==e[i].autoLoad||await c({endPointURI:e[i].url,showMask:!1,successCallBkFn:e=>{a(Zr({storeKey:i,data:e.data}))},failureCallBkFn:()=>{a(Zr({storeKey:i,data:[]}))}});d()}})()}),[l.storeKeys]),{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1,width:!E&&t?"calc(100% - 350px)":"100%",direction:i.appDirection,justifyContent:"flex-start",transition:!0===t?_.transitions.create(["margin","width"],{easing:_.transitions.easing.easeOut,duration:_.transitions.duration.enteringScreen}):_.transitions.create(["margin","width"],{easing:_.transitions.easing.sharp,duration:_.transitions.duration.leavingScreen}),marginLeft:E||"ltr"!==i.appDirection||!0!==t?0:Ut+"px",marginRight:E||"rtl"!==i.appDirection||!0!==t?0:Ut+"px"}}));function fa(){const i=r((e=>e.AppLayout)),o=Ct(),a=r((e=>e.UserSession));return t(xe,{children:[e(de,{draggable:!0,position:"bottom-center"}),e(ma,{}),!0===a.value.isAuthenticated?t(Ia,{open:i.sideBarOpened,children:[e(ee,{}),e(qt,{}),o?null:e(di,{}),o?e(ua,{}):null,e(Vt,{}),e(ca,{})]}):e(Oa,{})]})}const Na=re({name:"AppInfo",initialState:{value:{documentTitle:null,apiBaseUrl:null,appName:null,appVersion:null,appLogo:null,muiPremiumKey:null,enableAdministrationModule:!1,businessRoutes:[],businessNavigationItems:[],businessReduxReducers:{},businessCommonStoresMetaData:{},appTheme:{light:{primaryColor:"#37505C",secondaryColor:"#ff6d00"},dark:{primaryColor:"#ea690e",secondaryColor:"#74776B"}}}},reducers:{setAppInfo:(e,t)=>{e.value=t.payload}}}),Ra=Na.actions;var La=Na.reducer;const ya={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"}},Da=t=>{const i=o();Dt.setLicenseKey(t.muiPremiumKey);const a={components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${t.appTheme?.light?.primaryColor||ci} #ffffff;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"light",primary:{main:t.appTheme?.light?.primaryColor||ci},secondary:{main:t.appTheme?.light?.secondaryColor||Ai},background:{default:"#f5f5f5",paper:"#f5f5f5"}}},n={components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${t.appTheme?.dark?.primaryColor||ui} #121212;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"dark",primary:{main:t.appTheme?.dark?.primaryColor||ui},secondary:{main:t.appTheme?.dark?.secondaryColor||mi}}};let d={};t.enableAdministrationModule&&(d={...ya}),t.businessCommonStoresMetaData&&(d={...d,...t.businessCommonStoresMetaData}),i($r(d));const l=r((e=>e.AppLayout));let s={...a};"dark"===l.themeMode&&(s={...n});const p=K({direction:l.appDirection,...s});return $((()=>{document.title=t.documentTitle,i(Ra.setAppInfo(t))}),[]),e(H,{theme:p,children:e(fa,{})})};n.add(d),n.add(l),n.add(s);const Ca=t=>{const i={AppLayout:Pt,UserSession:Ft,loadingMask:vt,commonStores:Xr,AppInfo:La,...t.businessReduxReducers},o=ae({reducer:i});return e(a,{store:o,children:e(Da,{...t})})};export{Ca as BaseApp,Ni as CheckBox,fi as ComboBox,ui as DARK_THEME_INITIAL_MAIN_COLOR,mi as DARK_THEME_INITIAL_SECANDARY_COLOR,Ei as DATE_FORMAT,Ti as DATE_TIME_FORMAT,Oi as Datefield,Ii as DatetimeField,ci as LIGHT_THEME_INITIAL_MAIN_COLOR,Ai as LIGHT_THEME_INITIAL_SECANDARY_COLOR,ra as TemplateBarChart,_a as TemplateDashboard,da as TemplateDataCard,Gr as TemplateForm,na as TemplateGauge,Qr as TemplateGrid,aa as TemplateLineChart,sa as TemplateLineProgress,oa as TemplatePieChart,Wr as TemplateTextField,ia as TransferList,xi as capitalizeFirstLetter,Si as hasDigitsOnly,gi as isNumber,vi as isNumeric,Jr as useApiActions,Bt as useAxios,pi as useConfirmationWindow,Ct as useIsMobile,xt as useLoadingMask,zt as useSession,Yr as useWindow};
31
+ function(e,i){const t=Mi(e,i);return"production"!==process.env.NODE_ENV?(...i)=>{const o=`"${e}"`;return 0===i.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")):i.some((e=>void 0===e))&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),t(...i)}:t}("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ea),l=H.forwardRef((function(e,l){const n=function(e=Oa){return Ia(e)}(o),{className:s,component:p="div",...c}=Na(e);return i(d,{as:p,ref:l,className:ha(s,r?r(a):a),theme:t&&n[t]||n,...c})}));return l}({defaultClassName:function(e,i,t="Mui"){const o={};return i.forEach((i=>{o[i]=function(e,i,t="Mui"){const o=Pa[i];return o?`${t}-${o}`:`${Ra.generate(e)}-${i}`}(e,i,t)})),o}("MuiBox",["root"]).root,generateClassName:Ra.generate});function Ca(e){return/^\d+$/.test(e)}function Da(e){return"number"==typeof e&&!isNaN(e)}function ba(e){return"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e))}function ga(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function Sa(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}"production"!==process.env.NODE_ENV&&(Ma.propTypes={children:to.node,component:to.elementType,sx:to.oneOfType([to.arrayOf(to.oneOfType([to.func,to.object,to.bool])),to.func,to.object])});const Ua=({label:o,errorMessage:a,value:r,setValue:d,maxLength:l})=>{const{t:n}=me(),s={customInlineFn:(e,{Style:i})=>{if(e.style.color)return i("color-"+e.style.color)}};let p=ze(r,s);const[c,m]=Z(Ve.createWithContent(p));j((()=>{r!=Ke(Ye(c.getCurrentContent()))&&m(Ve.createWithContent(ze(r,s)))}),[r]);return e(y,{sx:{display:"flex",flexDirection:"column",padding:1},children:[o?i(E,{children:n(o)}):i(t,{}),i(qe,{editorState:c,onEditorStateChange:e=>{let i=Ke(Ye(e.getCurrentContent()));if(console.log("Text Length "+i.length),i.length>l){let e=ze(i.substring(0,l),s);m(Ve.createWithContent(e))}else m(e),d(Ke(Ye(e.getCurrentContent())))},handlePastedText:e=>{const i=c.getCurrentContent().getPlainText("").length,t=(()=>{const e=c.getSelection();let i=0;if(!e.isCollapsed()){const t=c.getCurrentContent(),o=e.getStartKey(),a=e.getEndKey(),r=o===a,d=t.getBlockForKey(o).getLength()-e.getStartOffset(),l=e.getEndOffset(),n=t.getKeyAfter(a);if(r)i+=e.getEndOffset()-e.getStartOffset();else{let e=o;for(;e&&e!==n;)i+=e===o?d+1:e===a?l:t.getBlockForKey(e).getLength()+1,e=t.getKeyAfter(e)}}return i})();if(i+e.length-t>l)return alert("max text length is "+l),"handled"},editorStyle:{height:"200px",border:"1px solid #F1F1F1",padding:"10px",overflow:"auto"},wrapperStyle:{marginBottom:"1rem"},toolbarStyle:{border:"1px solid #ccc"}}),a?i(E,{sx:{color:"red"},children:n(a)}):i(t,{})]})},va=e=>{const t=a((e=>e.AppLayout)),o=$i(),[r,d]=Z([]),{handleGetRequest:l}=Gi();return j((()=>{e.lookupType&&(async()=>{await l({endPointURI:"api/v1/dev/system/lookup",showMask:!0,parameters:{lookupType:e.lookupType},successCallBkFn:e=>{d(e.data)},failureCallBkFn:()=>{d([])}})})()}),[e.lookupType,o.UserSession]),i(Et,{...e,options:r,displayField:"ltr"===t.appDirection?"lookupEnDisplay":"lookupArDisplay",valueField:"lookupValue"})},wa=e=>{if(e?.fieldInfo){const o=e.fieldInfo,a=e?.formManager||null,r=e?.formActions||null,d=e?.formValues||null,l=e?.fieldInfo?.fieldName||null,n=e?.fieldInfo?.fieldType||null;return o&&a&&d&&l&&n?e.hiddenFields.includes(l)?i(t,{}):i(L,{size:o?.formProps?.fieldSize||{lg:12,md:12,sm:12},sx:{padding:1,width:"100%"},children:"text"===n||"number"===n?i(rt,{...o.muiTextFieldProps,fullWidth:!0,type:n,disabled:!(!o?.disabled&&!e.disabledFields.includes(l)),hidden:o?.hidden||!1,label:o?.fieldLabel,value:d[l],onChange:e=>{let i=null;""!=e.target.value&&(i="number"===n&&ba(e.target.value)?Number(e.target.value):e.target.value),a.setValue(l,i),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(i,a,r)},sx:{"& .MuiInputBase-root":{height:`${o?.formProps?.fieldHeight}px`||void 0},"& .MuiInputBase-input":{height:"100% !important"},...o?.formProps?.style},error:null!=a.formState.errors[l],helperText:a?.formState?.errors[l]?.message?.toString()}):"date"===o?.fieldType?i(Lt,{format:o?.dateFormat||ft,sx:o?.formProps?.style||{width:"100%"},disabled:!(!o?.disabled&&!e.disabledFields.includes(l)),label:o?.fieldLabel,onChangeCallBack:e=>{a.setValue(l,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,a,r)},value:d[l],error:null!=a.formState.errors[l],errorMessage:a?.formState?.errors[l]?.message?.toString()}):"datetime"===o?.fieldType?i(ht,{format:o?.dateFormat||It,sx:o?.formProps?.style||{width:"100%"},disabled:!(!o?.disabled&&!e.disabledFields.includes(l)),label:o?.fieldLabel,onChangeCallBack:e=>{a.setValue(l,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,a,r)},value:d[l],error:null!=a.formState.errors[l],errorMessage:a?.formState?.errors[l]?.message?.toString()}):"checkbox"===o?.fieldType?i(ut,{label:o?.fieldLabel,onChangeCallBack:e=>{a.setValue(l,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,a,r)},value:d[l],checkedValue:o?.checkedValue||!0,unCheckedValue:o?.unCheckedValue||!1,disabled:!(!o?.disabled&&!e.disabledFields.includes(l)),sx:o?.formProps?.style}):"combobox"===o?.fieldType?i(Et,{sx:o?.formProps?.style||{width:"100%"},label:o?.fieldLabel,disabled:!(!o?.disabled&&!e.disabledFields.includes(l)),onChangeCallBack:(e,i)=>{let t=null;e&&(t=e+""),a.setValue(l,t),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(t,a,r,i)},options:o?.options||[],displayField:o?.optionDisplayField||"",valueField:o?.optionValueField||"",value:d[l],errorMessage:a?.formState?.errors[l]?.message?.toString()}):"lookup"===o?.fieldType?i(va,{sx:o?.formProps?.style||{width:"100%"},label:o?.fieldLabel,disabled:!(!o?.disabled&&!e.disabledFields.includes(l)),onChangeCallBack:(e,i)=>{let t=null;e&&(t=e+""),a.setValue(l,t),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(t,a,r,i)},lookupType:o.lookupType,value:d[l],errorMessage:a?.formState?.errors[l]?.message?.toString()}):"html"===o?.fieldType?i(Ua,{label:o.fieldLabel,value:d[l]||"",errorMessage:a?.formState?.errors[l]?.message?.toString(),setValue:e=>{a.setValue(l,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,a,r)},maxLength:4e3}):i(t,{children:"Unknown field type"})}):i(t,{})}return i(t,{})},Ba=o=>{const a=$i(),{ConfirmationWindow:r,setOpen:d}=ji({body:o?.confirmationMessage||"",title:"Confirmation",onConfirmationCallBk:()=>{o?.actionFn(o?.record)}});return null==o?.authority||a.isUserAuthorized(o.authority)?e(t,{children:[i(r,{}),e(T,{variant:o?.formActionProps?.actionButtonVariant,color:o?.formActionProps?.actionButtonColor,onClick:()=>{if(o?.actionFn){if(o?.preActionValidation&&!o.preActionValidation(o.record))return;!0===o?.isConfirmationRequired?d(!0):o?.actionFn(o.record)}},children:[o?.icon?i(ae,{icon:o.icon,style:{marginRight:5,marginLeft:5}}):i(t,{}),i("div",{children:o?.label})]})]}):i(t,{})},xa=o=>{const{t:a}=me();return i(t,{children:e(L,{container:!0,sx:o?.style,alignItems:"flex-start",children:[o?.label?i(L,{size:12,sx:{padding:1,fontWeight:"bold",display:"flex",alignItems:"center",justifyContent:"flex-start"},children:o?.icon?e(t,{children:[i(ae,{icon:o.icon,style:{marginRight:5,marginLeft:5}}),i("div",{children:a(o.label)})]}):i(t,{children:a(o.label)})}):i(t,{}),o?.elements?o.elements.map((e=>"group"===e.type?i(xa,{...e.props,formManager:o.formManager,formValues:o.formValues,formActions:o.formActions,hiddenFields:o.hiddenFields,disabledFields:o.disabledFields}):"field"===e.type&&"props"===e.mode?i(wa,{fieldInfo:e.props,formManager:o.formManager,formValues:o.formValues,formActions:o.formActions,hiddenFields:o.hiddenFields,disabledFields:o.disabledFields}):"field"===e.type&&"node"===e.mode?i(L,{size:e?.props?.formProps?.fieldSize||{lg:3,md:6,sm:12},sx:{padding:1,width:"100%"},children:i(e.node,{formManager:o.formManager,formValues:o.formValues,formActions:o.formActions})}):void 0)):null,o?.actions?i(L,{size:{sm:12},sx:{padding:1},children:o.actions.map((e=>i(Ba,{...e,record:o.formValues})))}):i(t,{})]})})},Fa=e=>({...e,type:"string",renderEditCell:e=>i(ht,{sx:{width:"100%"},label:"",value:e.value,onChangeCallBack:i=>{e.api.setEditCellValue({id:e.id,field:e.field,value:i})}}),valueParser:(e,i,t)=>{let o=null;return null!==e&&(o=Se(e).format(It)),o},valueFormatter:(e,i,t)=>i[t.field]}),ka=e=>({...e,type:"custom",valueGetter:e=>e?e+"":e,renderCell:e=>{let t=null;try{t=e.colDef.options.find((i=>i[e.colDef.valueField]==e.value))}catch(e){}return i("div",{children:null!=t?t[e.colDef.displayField]:e.value})},renderEditCell:e=>i(Et,{...e,sx:{width:"100%"},options:e.colDef.options,valueField:e.colDef.valueField,displayField:e.colDef.displayField,onChangeCallBack:(i,t)=>{null===i&&e.api.setEditCellValue({id:e.id,field:e.field,value:null}),e.api.setEditCellValue({id:e.id,field:e.field,value:i+""})}})}),Wa=e=>({...e,type:"custom",valueGetter:e=>null==e||null==e?null:e,renderCell:t=>{const o=t?.value;return o===e.checkedValue||"true"===o||1===o||!0===o?i(ae,{icon:"check",color:"green"}):i(ae,{icon:"xmark",color:"red"})},renderEditCell:t=>i(ut,{...t,checkedValue:e?.checkedValue||!0,unCheckedValue:e?.unCheckedValue||!1,onChangeCallBack:e=>{t.api.setEditCellValue({id:t.id,field:t.field,value:e})}})}),Ga=e=>{const i=[];if("field"===e.type&&"props"===e.mode&&e?.props)i.push(e.props);else if("group"===e.type&&e?.props&&e?.props?.elements)for(const t of e.props.elements)i.push(...Ga(t));return i},Va=e=>{const i=[];for(const t of e)i.push(...Ga(t));return i},Ya=e=>{const i={};for(const t of e)if(t?.fieldName){const e=t.fieldName;"number"===t.fieldType?i[e]=!0===t?.required?Ue.number({required_error:"This field is required",invalid_type_error:"This field must be a number"}):Ue.number().optional().nullable():"checkbox"===t.fieldType?i[e]=!0===t?.required?Ue.boolean({required_error:"This field is required"}):Ue.boolean().optional().nullable():i[e]=!0===t?.required?Ue.string({message:"This field is required"}).min(1,"This field is required"):Ue.string().optional().nullable()}return i},qa=o=>{const{t:a}=me(),r=Va(o.elements),d=[];for(const e of r)e?.hidden&&d.push(e.fieldName);const[l,n]=Z(d),s={};for(const e of o.elements)"field"===e?.type&&"props"===e?.mode&&e?.props?.defaultValue&&(s[e.props.fieldName]=e.props.defaultValue);const[p,c]=Z([]),m=Ue.object(Ya(r)),_=we({resolver:Be(m),defaultValues:s}),A=_.watch(),u=xe(),E=o?.formRouteRecordIdParamName,f={setFieldValue:(e,i)=>{_.setValue(e,i)},hideField:e=>{n((i=>[...i,e]))},showField:e=>{n((i=>i.filter((i=>i!==e))))},disableField:e=>{c((i=>[...i,e]))},enableField:e=>{c((i=>i.filter((i=>i!==e))))}};return j((()=>{(async()=>{let e=null;if(o?.recordIdToEdit?e=o.recordIdToEdit:E&&u[E]&&(e=u[E]),e){const i=await o.apiActions.loadRecordById(e);if(i){_.reset({...i}),o?.formLoadCallBk&&o?.formLoadCallBk(f,_,i);for(const e of r)"combobox"===e?.fieldType&&i[e.fieldName]&&_.setValue(e.fieldName,i[e.fieldName]+"")}}else _.reset({})})()}),[o?.recordIdToEdit]),e(t,{children:[i(Ma,{sx:{display:"flex",flex:1,width:"100%",height:"fit-content",flexDirection:"column",alignItems:"center",overflow:"auto"},children:i(L,{sx:{width:"100%"},container:!0,children:o.elements.map(((e,t)=>"group"===e.type?i(xa,{...e.props,formManager:_,formValues:A,formActions:f,hiddenFields:l,disabledFields:p},t):"field"===e.type&&"props"===e.mode?i(wa,{fieldInfo:e.props,formManager:_,formValues:A,formActions:f,hiddenFields:l,disabledFields:p},t):"field"===e.type&&"node"===e.mode?i(L,{size:e?.props?.formProps?.fieldSize||{lg:3,md:6,xs:12},sx:{padding:1,width:"100%"},children:i(e.node,{formManager:_,formValues:A})},t):void 0))})}),e(Ma,{sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"flex-start"},children:[o?.actions?o.actions.map((e=>!0===e?.formActionProps?.enabled?i(Ba,{...e,record:A}):i(t,{}))):i(t,{}),i("div",{style:{flex:1}}),i(T,{variant:o?.saveButtonSpecs?.actionButtonVariant?o.saveButtonSpecs.actionButtonVariant:"contained",sx:{m:1},startIcon:o?.saveButtonSpecs?.icon?i(ae,{icon:o.saveButtonSpecs.icon}):null,color:o?.saveButtonSpecs?.actionButtonColor?o.saveButtonSpecs.actionButtonColor:"primary",onClick:_.handleSubmit((e=>{console.log("form values",e),(async e=>{if((!o?.preSaveValidation||o.preSaveValidation(e))&&e){const i=await o.apiActions.saveRecord(e);i&&(_.reset({...i}),o?.formSavedSuccessfullyCallBk&&o.formSavedSuccessfullyCallBk(i),o?.formCloseCallBk&&o.formCloseCallBk())}})(e)}),(e=>{le.error("Form Data is not valid, make sure you have all field with valid data"),console.log("form validation error",e)})),children:a(o?.saveButtonSpecs?.label||"SAVE_BTN_LABEL")}),i(T,{variant:o?.cancelButtonSpecs?.actionButtonVariant?o.cancelButtonSpecs.actionButtonVariant:"contained",startIcon:o?.cancelButtonSpecs?.icon?i(ae,{icon:o.cancelButtonSpecs.icon}):null,color:o?.cancelButtonSpecs?.actionButtonColor?o.cancelButtonSpecs.actionButtonColor:"error",sx:{m:1},onClick:()=>{o?.formCloseCallBk&&o.formCloseCallBk(),_.reset(s)},children:a(o?.cancelButtonSpecs?.label||"CANCEL_BTN_LABEL")})]})]})},Ka=o=>{const{t:a}=me(),r=$i(),{ConfirmationWindow:d,setOpen:l}=ji({body:a(o?.confirmationMessage||"ACTION_CONFIRMATION"),title:a("CONFIRMATION"),onConfirmationCallBk:async()=>{await(o?.actionFn(o.recordsToProcessActionOn,o.recordIdsToProcessActionOn)),o?.reloadData&&o.reloadData()}});let n=!0;if(o.authority&&(n=r.isUserAuthorized(o.authority)),n)return e(t,{children:[i(d,{}),e(T,{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?l(!0):(await o.actionFn(o.recordsToProcessActionOn,o.recordIdsToProcessActionOn),o?.reloadData&&o.reloadData())}else le.error(a("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?i(ae,{style:{marginRight:5,marginLeft:5},icon:o.icon}):i(t,{}),o?.label?a(o.label):i(t,{})]})]})},za=b(He)({display:"grid",alignItems:"center"}),Ha=b(Qe)((({theme:e,ownerState:i})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:i.expanded?0:1,pointerEvents:i.expanded?"none":"auto",transition:e.transitions.create(["opacity"])}))),Qa=b(R)((({theme:e,ownerState:i})=>({gridArea:"1 / 1",overflowX:"clip",width:i.expanded?260:"var(--trigger-width)",opacity:i.expanded?1:0,transition:e.transitions.create(["width","opacity"])}))),Za=o=>{const{t:a}=me(),r=$i(),d=!o?.templateProps?.editAction?.authority||r.isUserAuthorized(o.templateProps.editAction.authority),l=((e,i,t)=>{const o=[],a=[];if("exclude"===e.type&&0===e.ids.size)for(const e of i)o.push(e),a.push(e[t]);else if(e?.ids)for(const r of e.ids){const e=i.find((e=>e[t]===r));o.push(e),a.push(r)}return{selectedRecords:o,selectedRecordIds:a}})(o?.templateProps?.rowSelectionModel||{ids:new Set,type:"include"},o?.templateProps?.data||[],o?.templateProps?.keyColumnName||"id");return e(Ze,{children:[d&&"none"!=o?.templateProps?.editMode?.editMode?e(T,{onClick:o?.handleCreateNewRecord,children:[i(ae,{icon:"add",style:{marginRight:5,marginLeft:5}}),a("ADD_BTN_LABEL")]}):i(t,{}),o?.templateProps?.rowActions?o.templateProps.rowActions.map(((e,i)=>!0===e?.gridActionProps?.multiRecord?$(Ka,{...e,key:i,reloadData:async()=>{o.templateProps.apiActions.reloadData(o?.templateProps?.gridLoadParametersValues)},recordIdsToProcessActionOn:l.selectedRecordIds,recordsToProcessActionOn:l.selectedRecords}):null)):i(t,{}),i(E,{sx:{flex:1,mx:.5},children:o?.templateProps?.tBar}),i(g,{title:"Columns",children:i(je,{render:i(Qe,{}),children:i($e,{fontSize:"small"})})}),i(g,{title:"Filters",children:i(Xe,{render:(e,t)=>i(Qe,{...e,color:"default",children:i(S,{badgeContent:t.filterCount,color:"primary",variant:"dot",children:i(Je,{fontSize:"small"})})})})}),o?.templateProps?.gridStateKey?i(g,{title:a("RESET_GRID_STATE"),children:i(N,{onClick:o?.clearGridState,children:i(ae,{icon:"eraser"})})}):i(t,{}),i(U,{orientation:"vertical",variant:"middle",flexItem:!0,sx:{mx:.5}}),i(g,{title:a("EXPORT_EXECL_LABEL"),children:i(ei,{render:i(v,{}),children:i(ae,{icon:"file-excel",color:"green"})})}),e(za,{children:[i(ii,{render:(e,t)=>i(g,{title:a("SEARCH_BTN_LABEL"),enterDelay:0,children:i(Ha,{...e,ownerState:{expanded:t.expanded},color:"default","aria-disabled":t.expanded,children:i(ae,{icon:"search"})})})}),i(ti,{render:({ref:e,...t},o)=>i(Qa,{...t,ownerState:{expanded:o.expanded},inputRef:e,"aria-label":"Search",placeholder:`${a("SEARCH_BTN_LABEL")}...`,size:"small",slotProps:{input:{startAdornment:i(w,{position:"start",children:i(ae,{icon:"search"})}),endAdornment:o.value?i(w,{position:"end",children:i(oi,{edge:"end",size:"small","aria-label":"Clear search",children:i(ae,{icon:"xmark"})})}):null,...t.slotProps?.input},...t.slotProps}})})]}),i(N,{onClick:()=>{o.templateProps.apiActions.reloadData(o?.templateProps?.gridLoadParametersValues)},children:i(ae,{icon:"refresh"})})]})},ja=o=>{const{t:a}=me(),r=$i(),{ConfirmationWindow:d,setOpen:l}=ji({body:a(o?.confirmationMessage||"ACTION_CONFIRMATION"),title:a("CONFIRMATION"),onConfirmationCallBk:async()=>{await(o?.actionFn(o.record)),o?.reloadData&&o.reloadData()}});let n=!0;o.authority&&(n=r.isUserAuthorized(o.authority));let s={};o?.getActionIconStyleForRecord&&(s=o.getActionIconStyleForRecord(o.record));let p=!0;o?.isActionVisibleForRecord&&(p=o?.isActionVisibleForRecord(o.record));let c=!1;if(o?.isActionDisabledForRecord&&(c=o.isActionDisabledForRecord(o.record)),n&&p)return e(t,{children:[i(d,{}),i(ai,{disabled:c,icon:i(g,{title:o?.label?a(o.label):"",children:i(ae,{icon:o.icon,style:{...s,color:c?"gray":null!=s?.color?s.color:void 0}})}),showInMenu:o?.gridActionProps?.showInMenu||!1,label:"",className:"textPrimary",color:"inherit",onClick:async()=>{if(!c){if(o?.preActionValidation&&!o.preActionValidation(o.record))return;!0===o?.isConfirmationRequired?l(!0):(await o.actionFn(o.record),!0===o?.gridActionProps?.reloadGridAfterAction&&o?.reloadData&&o.reloadData())}}})]})};let $a=-1;const Xa=e=>{try{const i=localStorage.getItem(e);return i?JSON.parse(i):{}}catch(e){return console.error("Failed to load grid state",e),{}}},Ja=(e,i)=>{const t=Xa(e);localStorage.setItem(e,JSON.stringify({...t,...i}))},er=["__check__","actions"],ir=o=>{const r=a((e=>e.AppLayout)),{getLookupOptions:d}=(()=>{const{handleGetRequest:e}=Gi(),i=a((e=>e.AppLayout)),t=async i=>{let t=[];return await e({endPointURI:"api/v1/dev/system/lookup",showMask:!0,parameters:{lookupType:i},successCallBkFn:e=>{t=e.data}}),t};return{generateLookupGridColumn:async e=>{let o=await t(e.lookupType);return{...e,options:o,displayField:"ltr"===i.appDirection?"lookupEnDisplay":"lookupArDisplay",valueField:"lookupValue"}},getLookupOptions:t}})(),[l,n]=Z([]),{t:s}=me(),p=Va(o.formElements),c=[],m=Q.useMemo((()=>o?.gridStateKey?Xa(o.gridStateKey):{}),[]);for(const e of p)!0===e?.gridProps?.hidden&&c.push(e.fieldName);let _={};if(m?.columnVisibilityModel){_=m.columnVisibilityModel;const e=Object.keys(_);for(const i of c)e.includes(i)||(_[i]=!1)}else for(const e of c)_[e]=!1;const A=a((e=>e.AppLayout.appDirection)),[T,u]=Q.useState(_),[f,I]=Q.useState(m.columnOrder||[]),[y,R]=Q.useState(m.columnWidths||{}),[L,h]=Z(m.columnGroupingModel||[]);let P=m?.pinnedColumns?.left||[];P=P.filter((e=>!er.includes(e)));let M=m?.pinnedColumns?.right||[]||[];M=M.filter((e=>!er.includes(e)));const[C,D]=Z({left:[..."ltr"===A?er:[],...P],right:[..."rtl"===A?er:[],...M]}),b=$i(),S=Fe(),[v,w]=Z(null),[k,W]=Z(null),[G,V]=Z({}),Y=async()=>{let e=((e,t,o)=>{const a=[];for(const d of e)if("text"===d?.fieldType||"number"===d?.fieldType){const e={...d?.gridProps?.muiProps,editable:null!=d?.gridProps?.muiProps?.editable?d?.gridProps?.muiProps?.editable:t,type:"number"==d?.fieldType?"number":"string",field:d?.fieldName,headerName:o(d?.fieldLabel||d?.fieldName),headerAlign:"center",align:"center",hidden:d?.hidden,searchable:d?.gridProps?.searchable,flex:1,minWidth:200};a.push(e)}else if("date"===d?.fieldType){const e=(r={...d?.gridProps?.muiProps,editable:null!=d?.gridProps?.muiProps?.editable?d?.gridProps?.muiProps?.editable:t,field:d?.fieldName,headerName:o(d?.fieldLabel||d?.fieldName),headerAlign:"center",align:"center",hidden:d?.hidden,searchable:d?.gridProps?.searchable,flex:1,minWidth:200},{...r,type:"string",renderEditCell:e=>i(Lt,{sx:{width:"100%"},label:"",value:e.value,onChangeCallBack:i=>{e.api.setEditCellValue({id:e.id,field:e.field,value:i})}}),valueParser:(e,i,t)=>{let o=null;return null!==e&&(o=Se(e).format(ft)),o},valueFormatter:(e,i,t)=>i[t.field]});a.push(e)}else if("datetime"===d?.fieldType){const e=Fa({...d?.gridProps?.muiProps,editable:null!=d?.gridProps?.muiProps?.editable?d?.gridProps?.muiProps?.editable:t,field:d?.fieldName,headerName:o(d?.fieldLabel||d?.fieldName),headerAlign:"center",align:"center",hidden:d?.hidden,searchable:d?.gridProps?.searchable,flex:1,minWidth:200});a.push(e)}else if("checkbox"===d?.fieldType){const e=Wa({...d?.gridProps?.muiProps,editable:null!=d?.gridProps?.muiProps?.editable?d?.gridProps?.muiProps?.editable:t,field:d?.fieldName,headerName:o(d?.fieldLabel||d?.fieldName),headerAlign:"center",align:"center",hidden:d?.hidden,searchable:d?.gridProps?.searchable,checkedValue:d?.checkedValue,unCheckedValue:d?.unCheckedValue,width:150});a.push(e)}else if("combobox"===d?.fieldType){const e=ka({...d?.gridProps?.muiProps,editable:null!=d?.gridProps?.muiProps?.editable?d?.gridProps?.muiProps?.editable:t,field:d?.fieldName,headerName:o(d?.fieldLabel||d?.fieldName),headerAlign:"center",align:"center",hidden:d?.hidden,searchable:d?.gridProps?.searchable,valueField:d?.optionValueField||"value",displayField:d?.optionDisplayField||"display",options:d?.options||[],flex:1,minWidth:200});a.push(e)}else if("lookup"===d?.fieldType){const e=ka({...d?.gridProps?.muiProps,editable:null!=d?.gridProps?.muiProps?.editable?d?.gridProps?.muiProps?.editable:t,lookupType:d?.lookupType,field:d?.fieldName,headerName:o(d?.fieldLabel||d?.fieldName),headerAlign:"center",align:"center",hidden:d?.hidden,searchable:d?.gridProps?.searchable,valueField:d?.optionValueField||"value",displayField:d?.optionDisplayField||"display",options:d?.options||[],flex:1,minWidth:200});a.push(e)}var r;return a})(p,"row"===o?.editMode?.editMode||!1,s);for(let i of e)i?.lookupType&&(i.displayField="ltr"===r.appDirection?"lookupEnDisplay":"lookupArDisplay",i.options=await d(i.lookupType),i.valueField="lookupValue");n(e)},[q,K]=Z({ids:new Set,type:"include"});let z="id";o?.keyColumnName&&(z=o?.keyColumnName);const H=o.setData,$=ve.object(Ya(p));let X=!0;o?.editAction?.authority&&(X=b.isUserAuthorized(o.editAction.authority));let J=!0;o?.deleteAction?.authority&&(J=b.isUserAuthorized(o.deleteAction.authority));const{ConfirmationWindow:ee,setOpen:ie}=ji({title:"Confirmation",body:"Are you sure you want to delete this record ?",onConfirmationCallBk:async()=>{let e=!0;v&&!0===v?.isNew||(e=await o.apiActions.deleteRecordById(v[z])),e&&(o?.deleteAction?.postActionCallBack&&await o.deleteAction.postActionCallBack(v),H((e=>e.filter((e=>e[z]!=v[z])))))}});let te,oe,re,de,ne,se;"modal"===o?.editMode?.editMode&&(te=o?.editMode?.specs?.modalHeight||"fit-content",oe=o?.editMode?.specs?.modalWidth||"300",re=o?.editMode?.specs?.modalMinHeight,de=o?.editMode?.specs?.modalMinWidth,ne=o?.editMode?.specs?.modalIcon||"window",se=o?.editMode?.specs?.modalTitle||"Record Form");const{Window:pe,setWindowState:ce}=Xi({height:te,minHeight:re,minWidth:de,onCloseCallBack:()=>{o.apiActions.reloadData(o?.gridLoadParametersValues)},width:oe,windowIcon:ne,windowTitle:se}),_e={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:e=>{const t=e.row,a=[];if("none"!=o?.editMode?.editMode&&(void 0===o?.disableDefaultAction||!o.disableDefaultAction)){const e=G[t[z]]?.mode===li.Edit;if("row"===o.editMode.editMode&&e)X&&(a.push(i(ai,{icon:i(ae,{icon:"save"}),label:s("SAVE_BTN_LABEL"),onClick:()=>{(e=>{const i=e[z];V({...G,[i]:{mode:li.View}})})(t)}})),a.push(i(ai,{icon:i(ae,{icon:"cancel"}),label:s("CANCEL_BTN_LABEL"),onClick:()=>{(e=>{const i=e[z];i&&Da(i)&&i<0?(V({...G,[i]:{mode:li.View,ignoreModifications:!0}}),H((e=>{const t=e.filter((e=>e[z]!=i));return t}))):V({...G,[i]:{mode:li.View,ignoreModifications:!0}})})(t)},color:"inherit"})));else{if(o?.editAction&&!0===o?.editAction?.isEnabled){let e=!0;o?.editAction?.isActionVisibleForRecord&&(e=o?.editAction?.isActionVisibleForRecord(t));let r=!1;o?.editAction?.isActionDisabledForRecord&&(r=o?.editAction?.isActionDisabledForRecord(t)),X&&e&&a.push(i(ai,{disabled:r,icon:i(g,{title:s("EDIT_BTN_LABEL"),children:i(ae,{icon:"edit",style:{color:r?"gray":void 0}})}),showInMenu:o?.editAction?.gridActionProps?.showInMenu||!1,label:s("EDIT_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{X&&!r&&(async e=>{if(e)if(W(e),"form"===o.editMode.editMode)S(o.editMode.specs.formRoute+"/"+e[z]);else if("modal"===o.editMode.editMode)ce(!0);else if("row"===o?.editMode?.editMode){const i=e[z];V({...G,[i]:{mode:li.Edit}})}})(t)}}))}if(o?.deleteAction&&!0===o?.deleteAction?.isEnabled){let e=!0;o?.deleteAction?.isActionVisibleForRecord&&(e=o?.deleteAction?.isActionVisibleForRecord(t));let r=!1;o?.deleteAction?.isActionDisabledForRecord&&(r=o?.deleteAction?.isActionDisabledForRecord(t)),J&&e&&a.push(i(ai,{disabled:r,icon:i(g,{title:s("DELETE_BTN_LABEL"),children:i(ae,{icon:"trash",style:{color:r?"gray":void 0}})}),showInMenu:o?.deleteAction?.gridActionProps?.showInMenu||!1,label:s("DELETE_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{if(J&&!r){if(o?.deleteAction?.preActionValidation&&!o.deleteAction.preActionValidation(t))return;w(t),ie(!0)}}}))}}}if(o?.rowActions)for(const e of o.rowActions)e?.gridActionProps?.multiRecord&&!0===e?.gridActionProps?.multiRecord||a.push(i(ja,{...e,record:t,reloadData:async()=>{o.apiActions.reloadData(o?.gridLoadParametersValues)}}));return a}};let Ae=[];(void 0===o?.disableDefaultAction||!o.disableDefaultAction||o?.rowActions&&o?.rowActions.length>0)&&Ae.push(_e),Ae=[...Ae,...l];j((()=>{void 0!==o?.autoLoad&&!0!==o.autoLoad||o.apiActions.reloadData(o?.gridLoadParametersValues),Y()}),[]),j((()=>{Y()}),[A,o.formElements]);const Te=Q.useMemo((()=>{const e=Ae.map((e=>({...e,width:y[e.field]||e.width})));if(f.length){const i=new Map(e.map((e=>[e.field,e])));return f.map((e=>i.get(e))).filter(Boolean)}return e}),[f,y,Ae]);return e(t,{children:[i(ee,{}),"modal"===o?.editMode?.editMode?i(pe,{children:o?.editMode?.specs?.formComponent?i(o.editMode.specs.formComponent,{recordIdToEdit:k?k[z]:void 0,formCloseCallBk:()=>{ce(!1),o.apiActions.reloadData(o?.gridLoadParametersValues)}}):i(qa,{formLoadCallBk:o.formLoadCallBk,recordIdToEdit:k?k[z]:void 0,formCloseCallBk:()=>{ce(!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})}):i(t,{}),void 0!==o?.hideInfoBar||o?.hideInfoBar?i(t,{}):e(E,{sx:{display:"flex"},children:[void 0!==o?.hideBackButton||o?.hideBackButton?i(t,{}):i(N,{onClick:()=>{S(-1,{replace:!0})},children:i(ae,{icon:"arrow-left"})}),e(E,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:[o?.girdIcon?i(ae,{icon:o.girdIcon,style:{marginRight:5,marginLeft:5}}):i(t,{}),i(O,{variant:"h5",children:o?.gridTitle?ga(s(o?.gridTitle)):""})]})]}),o?.gridLoadParameters&&o?.gridLoadParameters.length>0&&o?.gridLoadParametersValues&&o?.setGridLoadParametersValues?e(B,{defaultExpanded:!0,sx:{width:"100%"},children:[i(x,{expandIcon:i(ri,{}),children:e(E,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[i(ae,{style:{marginLeft:5,marginRight:5},icon:"search"}),i(O,{component:"span",children:"Filters"})]})}),i(F,{children:i(E,{children:i(qa,{saveButtonSpecs:{label:s("SEARCH_BTN_LABEL"),icon:"search",actionButtonVariant:"outlined",actionButtonColor:"success"},cancelButtonSpecs:{label:s("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})})})]}):i(t,{}),i(di,{...o?.muiProps,slots:{toolbar:Za},slotProps:{toolbar:{templateProps:{...o,rowSelectionModel:q,data:o?.data},handleCreateNewRecord:()=>{if("form"===o?.editMode?.editMode)S(o.editMode.specs.formRoute);else if("modal"===o?.editMode?.editMode)W(null),ce(!0);else if("row"===o?.editMode?.editMode){$a-=1;const e={};e[z]=$a,e.isNew=!0;for(const i of l)"actions"!=i?.type&&i?.field!=z&&i?.field&&(e[i.field]=null);H((i=>[e,...i])),V((e=>({...e,[$a]:{mode:li.Edit}})))}},clearGridState:()=>{o?.gridStateKey&&localStorage.removeItem(o.gridStateKey),u({}),I([]),R({}),h([]),D({left:[..."ltr"===A?er:[]],right:[..."rtl"===A?er:[]]})}}},getRowId:e=>e[z],showToolbar:!0,rows:o?.data,columns:Te,checkboxSelection:!0,editMode:"row",rowModesModel:"row"==o.editMode.editMode?G:void 0,onRowModesModelChange:"row"==o.editMode.editMode?e=>{V(e)}:void 0,rowGroupingColumnMode:"multiple",processRowUpdate:async a=>{if("row"===o.editMode.editMode){let r=null;const d=(e=>{try{$.parse(e)}catch(e){console.log("validateRecord err",e);let i=null;return i=e instanceof ve.ZodError?e.errors.map((e=>"Error in field ("+e.path+") : "+e.message)).join(","):"invalid record data",i}})(a);if(d){const o=d.split(",");throw le.error(i("div",{style:{},children:o.map((o=>e(t,{children:[i("div",{children:o}),i(U,{})]})))})),new Error(d)}if(o?.editAction?.preActionValidation&&!o.editAction.preActionValidation(a))throw new Error("error on the configured presave validation");const l={...a};if(a[z]&&Da(a[z])&&Number(a[z])<0&&(l[z]=null),r=await o.apiActions.saveRecord(l),null==r)throw new Error("Failed to process your request, contact your administrator");return o?.editAction?.postActionCallBack&&await o.editAction.postActionCallBack(a),!0===a?.isNew&&H((e=>{const i=e.filter((e=>e[z]!==a[z]));return[r,...i]})),!0===o?.editMode?.reloadAfterSave&&o?.apiActions?.reloadData&&o?.apiActions?.reloadData(o?.gridLoadParametersValues),r}},rowSelectionModel:q,onRowSelectionModelChange:e=>{K(e)},columnVisibilityModel:T,onColumnVisibilityModelChange:e=>{u(e),o?.gridStateKey&&Ja(o.gridStateKey,{columnVisibilityModel:e})},onColumnOrderChange:e=>{const{column:i,targetIndex:t}=e;I((e=>{const a=e.length?[...e]:Ae.map((e=>e.field)),r=a.indexOf(i.field);return-1===r||(a.splice(r,1),a.splice(t,0,i.field),o?.gridStateKey&&Ja(o.gridStateKey,{columnOrder:a})),a}))},onColumnWidthChange:e=>{const i={...y,[e.colDef.field]:e.width};R(i),o?.gridStateKey&&Ja(o.gridStateKey,{columnWidths:i})},rowGroupingModel:L,onRowGroupingModelChange:e=>{(e=>{h(e),o?.gridStateKey&&Ja(o.gridStateKey,{columnGroupingModel:e})})(e)},pinnedColumns:C,onPinnedColumnsChange:e=>{let i=e?.left||[];i=i.filter((e=>!er.includes(e)));let t=e?.right||[];t=t.filter((e=>!er.includes(e)));const a={left:[..."ltr"===A?er:[],...i],right:[..."rtl"===A?er:[],...t]};D(a),o?.gridStateKey&&Ja(o.gridStateKey,{pinnedColumns:a})},sx:{width:"100%"}})]})},tr=t=>{const{UserSession:r}=$i(),d=a((e=>e.AppLayout)),l=o(),{handlePostRequest:n}=Gi(),[s,p]=Z(r.value.currentOrganization.id);return e(E,{sx:{display:"flex",flexDirection:"column",width:"100%",alignItems:"center",justifyContent:"center",padding:1},children:[i(Et,{sx:{width:"100%"},displayField:"ltr"===d.appDirection?"organizationEnName":"organizationArName",valueField:"id",label:"",options:r.value.userOrganizations,value:s,onChangeCallBack:e=>{p(e)}}),i(T,{sx:{m:1},variant:"contained",disabled:null==s||s===r.value.currentOrganization.id,onClick:async()=>{await n({endPointURI:"api/auth/changeCurrentOrg",showMask:!0,parameters:{username:r.value.username,orgId:s},data:{},successCallBkFn:e=>{const i={...e.data,isAuthenticated:!0};l(Yi.setAuthenticated(i)),t.successChangeCallBackFn&&t.successChangeCallBackFn()}})},children:"Change Organization"})]})},or=re({name:"SideBar",initialState:{isOpened:!1},reducers:{toggleSideBarState:e=>{e.isOpened=!e.isOpened},setSideBarState:(e,i)=>{e.isOpened=i.payload}}}),{toggleSideBarState:ar,setSideBarState:rr}=or.actions;var dr=or.reducer;const lr=b(te,{shouldForwardProp:e=>"open"!==e})((({theme:e})=>{const i=a((e=>e.AppLayout)),t=gi();return{transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),variants:[{props:({open:e})=>e,style:{width:t?void 0:"calc(100% - 350px)",marginLeft:t||"ltr"!==i.appDirection?void 0:"350px",marginRight:t||"rtl"!==i.appDirection?void 0:"350px",transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}]}})),nr=()=>{const{Window:r,setWindowState:d}=Xi({windowTitle:"Change Current Organization",windowIcon:"globe",width:"fit-content",height:"fit-content"}),l=a((e=>e.AppInfo.value)),n=a((e=>e.AppLayout)),s=a((e=>e.SideBar)),{UserSession:p}=$i(),c=p.value.currentOrganization,{handleGetRequest:m}=Gi(),_=gi(),A=o();return e(t,{children:[i(r,{children:i(tr,{successChangeCallBackFn:()=>{d(!1)}})}),i(lr,{position:"fixed",open:s.isOpened,children:e(oe,{children:[i(N,{color:"inherit","aria-label":"open drawer",onClick:()=>{A(ar())},edge:"start",sx:[{mr:"ltr"===n.appDirection?2:void 0,ml:"rtl"===n.appDirection?2:void 0},s.isOpened&&{display:"none"}],children:i(ae,{icon:"bars"})}),i(k,{src:l.appLogo,sx:{marginRight:1,marginLeft:1}}),i(O,{variant:"h6",noWrap:!0,component:"div",sx:{flex:1},children:_?"":`${l.appName} - ${"ltr"===n.appDirection?c?.organizationEnName:c?.organizationArName}`}),i(g,{title:"light"===n.themeMode?"Switch Theme to Dark":"Switch Theme to Light",children:i(N,{color:"inherit",onClick:()=>{A(vi.setThemeMode("light"===n.themeMode?"dark":"light")),localStorage.setItem("themeMode","light"===n.themeMode?"dark":"light")},children:"light"===n.themeMode?i(ae,{icon:"moon"}):i(ae,{icon:{prefix:"far",iconName:"sun"}})})}),i(g,{title:"ar"===pe.language?"Change Language To English":"Change Language To Arabic",children:i(N,{color:"inherit",onClick:()=>{let e="ar"===pe.language?"en":"ar";var i;i=e,pe.changeLanguage(i),localStorage.setItem("language",i),A(vi.setAppDirection("ar"===e?"rtl":"ltr"))},children:i(ae,{icon:"language"})})}),p.value?.userOrganizations&&p.value?.userOrganizations.length>1?i(g,{title:"Change Current Organization",children:i(N,{color:"inherit",onClick:()=>{d(!0)},children:i(ae,{icon:"globe"})})}):i(t,{}),i(k,{}),i("div",{style:{marginLeft:5,marginRight:5},children:_?"":p.value?.username}),i(N,{color:"inherit",onClick:async()=>{try{await m({endPointURI:"api/auth/logout"})}catch(e){console.log("logout error",e)}A(Yi.setUnAuthenticated())},children:i(ae,{rotation:"rtl"===n.appDirection?180:void 0,icon:"arrow-right-from-bracket"})})]})})]})},sr=b("div")((({theme:e})=>({display:"flex",alignItems:"center",...e.mixins.toolbar,justifyContent:"flex-end"}))),pr=(e,i)=>{for(const t of i){if(t.id===e)return t;if(t.children){const i=pr(e,t.children);if(i)return i}}},cr=[...[{id:"home",icon:"home",label:"Home",action:"NAVIGATION",actionPayload:{path:"/"}},{id:"system_admin",label:"System Administration",authority:"SYSTEM_ADMIN",icon:"cog",children:[{id:"development_admin.organization",label:"ORGANIZATION_PLURAL",authority:"DEVELOPMENT_ADMIN",icon:"globe",action:"NAVIGATION",actionPayload:{path:"admin/organizations"}},{id:"development_admin.SystemApplication",label:"SYSTEM_APPLICATION_PLURAL",authority:"DEVELOPMENT_ADMIN",icon:"window-restore",action:"NAVIGATION",actionPayload:{path:"admin/systemapplications"}},{id:"system_admin.Person",label:"PERSON_PLURAL",icon:"users",action:"NAVIGATION",actionPayload:{path:"admin/persons"}},{id:"system_admin.devtools",label:"DEVELOPMENT_TOOLS",icon:"code",children:[{id:"system_admin.devtools.DatasourceConnection",label:"DATASOURCE_CONNECTION_PLURAL",icon:"plug",action:"NAVIGATION",actionPayload:{path:"dev/datasourceconnections"}},{id:"system_admin.devtools.EntityParameter",label:"ENTITY_PARAMETER_PLURAL",icon:"p",action:"NAVIGATION",actionPayload:{path:"dev/entityparameters"}},{id:"system_admin.devtools.DataQuery",label:"DATA_QUERY_PLURAL",icon:"file-code",action:"NAVIGATION",actionPayload:{path:"dev/dataqueries"}},{id:"system_admin.devtools.Report",label:"REPORT_PLURAL",icon:"file",action:"NAVIGATION",actionPayload:{path:"dev/reports"}},{id:"system_admin.devtools.MailConfig",label:"Mail Sender Config",icon:{iconName:"paper-plane",prefix:"fas"},action:"NAVIGATION",actionPayload:{path:"dev/mailsender/config"}},{id:"system_admin.devtools.MailTemplate",label:"MAIL_TEMPLATE_PLURAL",icon:"envelope",action:"NAVIGATION",actionPayload:{path:"dev/mailtemplates"}},{id:"system_admin.devtools.WorkflowDocument",label:"WORKFLOW_DOCUMENT_PLURAL",icon:"chart-diagram",action:"NAVIGATION",actionPayload:{path:"dev/workflowdocuments"}},{id:"system_admin.devtools.Widget",label:"WIDGET_PLURAL",icon:"chart-pie",action:"NAVIGATION",actionPayload:{path:"dev/widgets"}},{id:"system_admin.devtools.Dashboard",label:"DASHBOARD_PLURAL",icon:"square-poll-vertical",action:"NAVIGATION",actionPayload:{path:"dev/dashboards"}},{id:"system_admin.devtools.BluePrint",label:"BLUE_PRINT_PLURAL",icon:"fingerprint",action:"NAVIGATION",actionPayload:{path:"dev/blueprints"}},{id:"system_admin.devtools.Notification",label:"NOTIFICATION_PLURAL",icon:"bell",action:"NAVIGATION",actionPayload:{path:"dev/notifications"}}]},{id:"system_admin.followup",label:"SYSTEM_MONITORING",icon:"tv",children:[{id:"system_admin.WorkflowDocumentMailLog",label:"Action Mail Logs",icon:"envelopes-bulk",action:"NAVIGATION",actionPayload:{path:"dev/workflowdocumentmaillogs"}},{id:"system_admin.MailNotificationQueue",label:"Mail Notification Queue",icon:"envelope-open-text",action:"NAVIGATION",actionPayload:{path:"dev/mailnotificationqueues"}},{id:"system_admin.NotificationQueue",label:"NOTIFICATION_QUEUE_PLURAL",icon:"bell",action:"NAVIGATION",actionPayload:{path:"dev/notificationqueues"}}]}]}]];function mr(){return i(Pe,{sx:{width:6,height:6,borderRadius:"70%",bgcolor:"warning.main",display:"inline-block",verticalAlign:"middle",zIndex:1,mx:1}})}const _r=X(ui)((({theme:e})=>({color:e.palette.grey[400],position:"relative",[`& .${Ai.groupTransition}`]:{marginLeft:e.spacing(2.5)},...e.applyStyles("light",{color:e.palette.grey[800]})}))),Ar=X(Ei)((({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:J(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})}}))),Tr=pi(mi);function ur(e){const t=ci({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return i(Tr,{style:t,...e})}const Er=X(he)({color:"inherit",fontWeight:500});function fr({icon:t,expandable:o,children:r,...d}){const{t:l}=me(),n=a((e=>e.AppLayout));return e(Oi,{...d,sx:{display:"flex",alignItems:"center",padding:1},children:[i(ae,{style:{marginRight:"ltr"===n.appDirection?7:void 0,marginLeft:"rtl"===n.appDirection?7:void 0,fontSize:"1.2rem"},icon:t}),i(Er,{variant:"body2",sx:{fontSize:16},children:l(r)}),o&&i(mr,{})]})}const Ir=e=>Array.isArray(e)?e.length>0&&e.some(Ir):Boolean(e),Or=H.forwardRef((function(t,o){const{id:a,itemId:r,label:d,disabled:l,children:n,...s}=t,{getRootProps:p,getContentProps:c,getIconContainerProps:m,getCheckboxProps:_,getLabelProps:A,getGroupTransitionProps:T,getDragAndDropOverlayProps:u,status:E,publicAPI:f}=Ti({id:a,itemId:r,children:n,label:d,disabled:l,rootRef:o}),I=f.getItem(r),O=Ir(n);return i(yi,{itemId:r,children:e(_r,{...p(s),children:[e(Ar,{...c({className:ha("content",{"Mui-expanded":E.expanded,"Mui-selected":E.selected,"Mui-focused":E.focused,"Mui-disabled":E.disabled})}),children:[i(fi,{...m(),children:i(Ni,{status:E})}),i(Ii,{..._()}),i(fr,{...A({icon:I?.icon||"book",expandable:O&&E.expanded})}),i(Ri,{...u()})]}),n&&i(ur,{...T()})]})})}));function Nr(){const e=Fe(),t=a((e=>e.AppLayout)),r=a((e=>e.AppInfo.value));o();const d=gi(),{isUserAuthorized:l}=$i(),n=e=>e.filter((e=>void 0===e.authority||null==e.authority||l(e.authority))).map((e=>(e.children&&(e.children=n(e.children)),e))),s=[];r.enableAdministrationModule&&s.push(...cr),s.push(...r.businessNavigationItems);const p=n(s);return i(_i,{items:p,onItemClick:(i,t)=>{const o=pr(t,s);"NAVIGATION"!==o?.action||null==o?.actionPayload||void 0!==o.children&&null!==o.children&&0!=o.children.length||e(o?.actionPayload?.path||"")},sx:{height:"fit-content",flexGrow:1,maxWidth:Si,direction:t.appDirection,maxHeight:d?300:void 0,overflowY:"auto",overflowX:"auto"},slots:{item:Or}})}const yr=()=>{const t=a((e=>e.AppInfo.value)),{UserSession:r}=$i(),d=r.value.currentOrganization,l=W(),n=a((e=>e.AppLayout)),s=a((e=>e.SideBar)),p=o();return e(si,{sx:{width:Si,flexShrink:0,"& .MuiDrawer-paper":{width:Si,boxSizing:"border-box"}},variant:"persistent",anchor:"ltr"===n.appDirection?"left":"right",open:s.isOpened,children:[e(sr,{children:[e(E,{sx:{width:"100%"},children:[i(O,{color:"primary",sx:{width:"100%",textAlign:"center",fontSize:18,fontWeight:"bold"},children:"System Content"}),e(E,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1},children:[i(O,{sx:{fontSize:12},color:"textDisabled",children:`${t.appName} - ${"ltr"===n.appDirection?d?.organizationEnName:d?.organizationArName}`}),e(O,{sx:{fontSize:12},color:"textDisabled",children:["V.",t.appVersion]})]})]}),i(ni,{onClick:()=>{p(ar())},children:"ltr"===l.direction?i(ae,{icon:"angle-left"}):i(ae,{icon:"angle-right"})})]}),i(Oe,{}),i(Nr,{})]})},Rr=Pi({key:"muirtl",stylisPlugins:[hi,Li]}),Lr=Pi({key:"mui"}),hr=o=>{const[a,r]=Z(!0),[d,l]=Z([]),{handleGetRequest:n}=Gi();j((()=>{(async()=>{r(!0),await n({endPointURI:"api/v1/dev/query/result",showMask:!1,parameters:{queryId:o.dataQueryId,...o.parameterValues},successCallBkFn:e=>{r(!1),l(e.data)},failureCallBkFn:()=>{r(!1),l(null)}})})()}),[o.parameterValues]);let s=0;if(1==d.length&&(s=100),"CircularProgress"===o.widgetType||"LinearProgress"===o.widgetType)for(const e of d)s+=e[o.verticalAxisField];return e(t,{children:["LineChart"===o.widgetType||"PieChart"===o.widgetType||"ColumnChart"===o.widgetType?e(E,{children:[i(ae,{style:{marginRight:10,marginLeft:10},icon:o?.icon||"chart-pie"}),o?.title]}):i(t,{}),i(E,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",width:"100%"},children:a?e(t,{children:[i(ae,{icon:{prefix:"fas",iconName:"arrows-spin"},style:{marginRight:10,marginLeft:10},spin:!0,size:"2x"}),i("div",{children:"Loading"})]}):"ColumnChart"===o.widgetType?i(st,{data:d,widgetTitle:o.title,labelField:o.verticalAxisField,valueField:o.horizontalAxisField,valueLabel:o.horizontalAxisLabel,widgetType:"Line"}):"LineChart"===o.widgetType?i(mt,{data:d,widgetTitle:o.title,labelField:o.verticalAxisField,valueField:o.horizontalAxisField,valueLabel:o.horizontalAxisLabel,widgetType:"Line"}):"PieChart"===o.widgetType?i(Tt,{data:d,widgetTitle:o.title,labelField:o.horizontalAxisField,valueField:o.verticalAxisField,widgetType:"Line"}):e(L,{container:!0,sx:{width:"100%",alignItems:"flex-start",justifyContent:"flex-start"},spacing:2,size:{xs:12},children:[i(L,{size:{xs:12},sx:{textAlign:"center"},children:o.title}),d.map(((e,t)=>"Card"===o.widgetType?i(L,{size:{md:3,xs:12},children:i(pt,{widgetTitle:"",record:e,labelField:o.verticalAxisField,valueField:o.horizontalAxisField},t)}):"CircularProgress"===o.widgetType?i(L,{size:{md:3,xs:12},children:i(ct,{widgetTitle:"",record:e,labelField:o.horizontalAxisField,valueField:o.verticalAxisField,total:s},t)}):"LinearProgress"===o.widgetType?i(L,{size:{md:3,xs:12},children:i(At,{widgetTitle:"",record:e,labelField:o.horizontalAxisField,valueField:o.verticalAxisField,total:s},t)}):void 0))]})})]})},Pr=o=>{const[a,r]=Z({dashboardCode:"",dashboardName:"",dashboardTitle:"",dashboardParameters:[],widgets:[]}),[d,l]=Z(o?.parameters||{}),n=Fe(),{handleGetRequest:s,handlePostRequest:p}=Gi();return j((()=>{o.dashboardCode&&(async()=>{await s({endPointURI:"api/v1/dev/dashboard/metadata",showMask:!0,parameters:{dashboardCode:o.dashboardCode},successCallBkFn:e=>{r(e.data)},failureCallBkFn:()=>{r(null)}})})()}),[o.dashboardCode,o.parameters]),i(t,{children:a?e(t,{children:[e(E,{sx:{fontSize:20,fontWeight:"bold",display:"flex",alignItems:"center",justifyContent:"center"},children:[i(N,{onClick:()=>{n(-1,{replace:!0})},children:i(ae,{icon:"arrow-left"})}),i(E,{sx:{flex:1}}),i(ae,{style:{marginLeft:10,marginRight:10},icon:"square-poll-vertical"}),i(E,{children:a?.dashboardTitle}),i(E,{sx:{flex:1}})]}),i(L,{container:!0,spacing:1,sx:{flexGrow:1,overflowY:"auto",padding:1},children:a?.widgets.map(((e,t)=>i(L,{sx:{alignItems:"center",justifyContent:"center",padding:1,display:"flex",overflow:"auto",flexDirection:"Card"!=e.widgetType?"column":void 0,height:e?.height||300},size:{md:e?.width,sm:12},children:i(hr,{...e})},t)))})]}):i(E,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,fontWeight:"bold"},children:"No Dashboard Found"})})},Mr=e=>{const{t:t}=me(),{handleGetRequest:o}=Gi(),[a,r]=Z([]),d=at({findAll:"api/v1/admin/organizationapplicationmodule/all",deleteById:"api/v1/admin/organizationapplicationmodule",save:"api/v1/admin/organizationapplicationmodule",findById:"api/v1/admin/organizationapplicationmodule",setData:r}),[l,n]=Z([]);j((()=>{(async()=>{await o({endPointURI:"api/v1/admin/systemapplicationmodule/all",showMask:!0,successCallBkFn:e=>{n(e.data)}})})()}),[]);const s=[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_MODULE_SYSTEM_APPLICATION_MODULE_ID",fieldName:"systemApplicationModuleId",required:!1,fieldType:"combobox",options:l,optionDisplayField:"moduleName",optionValueField:"id"}},{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"ORGANIZATION_APPLICATION_MODULE_ORGANIZATION_ID",fieldName:"organizationId",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_MODULE_SUBSCRIPTION_DATE",fieldName:"subscriptionDate",required:!0,fieldType:"date"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_MODULE_EXPIRATION_DATE",fieldName:"expirationDate",required:!1,fieldType:"date"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_MODULE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}];return i(ir,{apiActions:d,data:a,gridLoadParametersValues:{organizationId:e?.selectedOrganization?.id},hideInfoBar:!0,setData:r,editMode:{editMode:"row"},formElements:s,keyColumnName:"id",gridTitle:"ORGANIZATION_APPLICATION_MODULE_PLURAL",girdIcon:"layer-group",editAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_MODULE_EDIT",preActionValidation:async i=>(i.organizationId=e?.selectedOrganization?.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_MODULE_DELETE"}})},Cr=e=>{const{t:t}=me(),[o,a]=Z([]),r=at({findAll:"api/v1/admin/organizationunittype/all",deleteById:"api/v1/admin/organizationunittype",save:"api/v1/admin/organizationunittype",findById:"api/v1/admin/organizationunittype",setData:a});return i(ir,{apiActions:r,data:o,hideInfoBar:!0,gridLoadParametersValues:{organizationId:e?.selectedOrganization?.id},setData:a,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_ORGANIZATION_ID",hidden:!0,gridProps:{hidden:!0},fieldName:"organizationId",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_ORGANIZATION_UNIT_TYPE_ORDER",fieldName:"organizationUnitTypeOrder",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_CODE",fieldName:"unitTypeCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_AR_NAME",fieldName:"unitTypeArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_EN_NAME",fieldName:"unitTypeEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_UNIT_TYPE_PLURAL",girdIcon:"tags",editAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_TYPE_EDIT",preActionValidation:async i=>(i.organizationId=e?.selectedOrganization?.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_TYPE_DELETE"}})},Dr=e=>{const{t:t}=me(),[o,a]=Z([]),r=at({findAll:"api/v1/admin/organizationunit/all",deleteById:"api/v1/admin/organizationunit",save:"api/v1/admin/organizationunit",findById:"api/v1/admin/organizationunit",setData:a}),[d,l]=Z([]),{handleGetRequest:n}=Gi();j((()=>{(async()=>{await n({endPointURI:"api/v1/admin/organizationunittype/all",showMask:!0,parameters:{organizationId:e.selectedOrganization.id},successCallBkFn:e=>{l(e.data)}})})()}),[]);const s=[{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_ID",fieldName:"organizationId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_TYPE_ID",fieldName:"organizationUnitTypeId",required:!0,fieldType:"combobox",options:d,optionValueField:"id",optionDisplayField:"unitTypeEnName"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME",fieldName:"organizationUnitArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME",fieldName:"organizationUnitEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID",fieldName:"organizationUnitParentId",required:!1,fieldType:"combobox",options:o,optionValueField:"id",optionDisplayField:"organizationUnitEnName"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return i(ir,{apiActions:r,data:o,hideInfoBar:!0,gridLoadParametersValues:{organizationId:e?.selectedOrganization?.id},setData:a,editMode:{editMode:"row"},formElements:s,keyColumnName:"id",gridTitle:"ORGANIZATION_UNIT_PLURAL",girdIcon:"folder-tree",editAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_EDIT",preActionValidation:async i=>(i.organizationId=e?.selectedOrganization?.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_DELETE"}})},br=e=>{const{t:t}=me(),[o,a]=Z([]),r=at({findAll:"api/v1/admin/organizationrank/all",deleteById:"api/v1/admin/organizationrank",save:"api/v1/admin/organizationrank",findById:"api/v1/admin/organizationrank",setData:a});return i(ir,{apiActions:r,data:o,hideInfoBar:!0,gridLoadParametersValues:{organizationId:e?.selectedOrganization?.id},setData:a,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"ORGANIZATION_RANK_ORGANIZATION_ID",fieldName:"organizationId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_ORDER",fieldName:"rankOrder",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_CODE",fieldName:"rankCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_AR_NAME",fieldName:"rankArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_EN_NAME",fieldName:"rankEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_RANK_PLURAL",girdIcon:"street-view",editAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_EDIT",preActionValidation:async i=>(i.organizationId=e?.selectedOrganization?.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_DELETE"}})},gr=o=>{const[a,r]=Z([]),[d,l]=Z([]),{handlePostRequest:n,handleGetRequest:s}=Gi();j((()=>{o.selectedRecord&&(async()=>{await s({endPointURI:"api/v1/admin/organization/member/roles",showMask:!0,parameters:{orgMemberId:o.selectedRecord.id,organizationId:o.selectedRecord.organizationId},successCallBkFn:e=>{r(e.data.currentRoles),l(e.data.availableRoles)}})})()}),[o.selectedRecord]);return e(t,{children:[i(nt,{displayField:"appRoleDisplay",options:d,valueField:"id",selectedOptions:a,setSelection:r}),e(E,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",width:"100%"},children:[i(T,{variant:"contained",onClick:async()=>{await n({endPointURI:"api/v1/admin/organization/member/roles",showMask:!0,parameters:{orgMemberId:o.selectedRecord.id},data:a,successCallBkFn:()=>{le.success("Your request has been proccesed successfully"),o.closeModalFn&&o.closeModalFn()}})},sx:{marginRight:1,marginLeft:1},children:"Save"}),i(T,{variant:"contained",color:"error",onClick:o.closeModalFn,children:"Cancel"})]})]})},Sr=o=>{const[r,d]=Z(null),{Window:l,setWindowState:n}=Xi({windowIcon:"tag",windowTitle:"Organization Member Roles",width:"50%"}),s=a((e=>e.commonStores.stores.SystemOrganizations.data)),p=a((e=>e.commonStores.stores.SystemOrganizationRanks.data)),c=a((e=>e.commonStores.stores.SystemOrganizationUnits.data)),{t:m}=me(),[_,A]=Z([]),T=at({findAll:"api/v1/admin/organizationmember/all",deleteById:"api/v1/admin/organizationmember",save:"api/v1/admin/organizationmember",findById:"api/v1/admin/organizationmember",setData:A}),u=[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_IS_DEFAULT",fieldName:"isDefault",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ORGANIZATION_ID",fieldName:"organizationId",required:!0,fieldType:"combobox",options:s,optionValueField:"id",optionDisplayField:"organizationEnName"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ORGANIZATION_RANK_ID",fieldName:"organizationRankId",required:!1,fieldType:"combobox",options:p,optionValueField:"id",optionDisplayField:"rankDisplay"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ORGANIZATION_UNIT_ID",fieldName:"organizationUnitId",required:!1,fieldType:"combobox",options:c,optionValueField:"id",optionDisplayField:"fullPath"}},{type:"field",mode:"props",props:{fieldLabel:"Membership number",fieldName:"organizationMembershipNumber",fieldType:"text"}},{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"ORGANIZATION_MEMBER_PERSON_ID",fieldName:"personId",required:!1,fieldType:"number"}}];return e(t,{children:[i(l,{children:i(gr,{selectedRecord:r,closeModalFn:()=>{n(!1)}})}),i(ir,{apiActions:T,hideInfoBar:!0,data:_,setData:A,editMode:{editMode:"row"},formElements:u,rowActions:[{icon:"tag",label:"Roles",actionFn:async e=>{d(e),n(!0)}}],gridLoadParametersValues:{personId:o.selectedPerson.id},keyColumnName:"id",gridTitle:"ORGANIZATION_MEMBER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_MEMBER_EDIT",preActionValidation:async e=>(e.personId=o.selectedPerson.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_MEMBER_DELETE"}})]})},Ur=e=>{const{t:t}=me(),[o,a]=Z([]),r=at({findAll:"api/v1/admin/systemapplicationmodule/application/all",deleteById:"api/v1/admin/systemapplicationmodule",save:"api/v1/admin/systemapplicationmodule",findById:"api/v1/admin/systemapplicationmodule",setData:a});return i(ir,{apiActions:r,data:o,gridLoadParametersValues:{applicationId:e?.selectedApplication?.id},setData:a,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_MODULE_MODULE_CODE",fieldName:"moduleCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_MODULE_MODULE_NAME",fieldName:"moduleName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_MODULE_MODULE_DESCRIPTION",fieldName:"moduleDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_MODULE_SYSTEM_APPLICATION_ID",fieldName:"systemApplicationId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"text"}}],keyColumnName:"id",hideInfoBar:!0,gridTitle:"SYSTEM_APPLICATION_MODULE_PLURAL",girdIcon:"layer-group",editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_MODULE_EDIT",preActionValidation:async i=>(i.systemApplicationId=e?.selectedApplication?.id,!0)},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_MODULE_DELETE"}})},vr=e=>{const{t:t}=me(),[o,a]=Z([]),r=at({findAll:"api/v1/admin/systemapplicationauthority/all",deleteById:"api/v1/admin/systemapplicationauthority",save:"api/v1/admin/systemapplicationauthority",findById:"api/v1/admin/systemapplicationauthority",setData:a}),[d,l]=Z([]),{handleGetRequest:n}=Gi();j((()=>{(async()=>{await n({endPointURI:"api/v1/admin/systemapplicationmodule/application/all",showMask:!0,parameters:{applicationId:e.selectedApplication.id},successCallBkFn:e=>{l(e.data)}})})()}),[]);const s=[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_SYSTEM_APPLICATION_ID",fieldName:"systemApplicationId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_SYSTEM_MODULE_ID",fieldName:"systemModuleId",required:!1,fieldType:"combobox",options:d,optionValueField:"id",optionDisplayField:"moduleName"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_NAME",fieldName:"authorityName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_CODE",fieldName:"authorityCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_DESCRIPTION",fieldName:"authorityDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}];return i(ir,{apiActions:r,data:o,hideInfoBar:!0,gridLoadParametersValues:{applicationId:e?.selectedApplication?.id},setData:a,editMode:{editMode:"row"},formElements:s,keyColumnName:"id",gridTitle:"SYSTEM_APPLICATION_AUTHORITY_PLURAL",girdIcon:"key",editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_AUTHORITY_EDIT",preActionValidation:async i=>(i.systemApplicationId=e?.selectedApplication?.id,!0)},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_AUTHORITY_DELETE"}})},wr=o=>{const[a,r]=Z([]),[d,l]=Z([]),{handlePostRequest:n,handleGetRequest:s}=Gi();j((()=>{o.roleId&&o.appId&&(async()=>{await s({endPointURI:"api/v1/admin/systemApplicationRoleAuthorities",showMask:!0,parameters:{appId:o.appId,roleId:o.roleId},successCallBkFn:e=>{r(e.data.selectedAuthorities),l(e.data.availableAuthorities)}})})()}),[o.roleId,o.appId]);return e(t,{children:[i(nt,{displayField:"authorityName",options:d,valueField:"id",selectedOptions:a,setSelection:r}),e(E,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",width:"100%"},children:[i(T,{variant:"contained",onClick:async()=>{await n({endPointURI:"api/v1/admin/systemApplicationRoleAuthorities",showMask:!0,parameters:{roleId:o.roleId},data:a,successCallBkFn:()=>{le.success("Your request has been proccesed successfully"),o.closeModalFn&&o.closeModalFn()}})},sx:{marginRight:1,marginLeft:1},children:"Save"}),i(T,{variant:"contained",color:"error",onClick:o.closeModalFn,children:"Cancel"})]})]})},Br=o=>{const{t:a}=me(),[r,d]=Z([]),[l,n]=Z(null),{Window:s,setWindowState:p}=Xi({windowTitle:"System Application Role Authorities",windowIcon:"key",width:"50%"}),c=at({findAll:"api/v1/admin/systemapplicationrole/all",deleteById:"api/v1/admin/systemapplicationrole",save:"api/v1/admin/systemapplicationrole",findById:"api/v1/admin/systemapplicationrole",setData:d});return e(t,{children:[i(s,{children:i(wr,{appId:o.selectedApplication.id,roleId:l?.id,closeModalFn:()=>{p(!1)}})}),i(ir,{apiActions:c,data:r,hideInfoBar:!0,gridLoadParametersValues:{applicationId:o?.selectedApplication?.id},setData:d,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_SYSTEM_APPLICATION_ID",fieldName:"systemApplicationId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_ROLE_NAME",fieldName:"roleName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_ROLE_DESCRIPTION",fieldName:"roleDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"SYSTEM_APPLICATION_ROLE_PLURAL",girdIcon:"tag",rowActions:[{icon:"key",actionFn:async e=>{n(e),p(!0)},label:"Authorities"}],editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_ROLE_EDIT",preActionValidation:async e=>(e.systemApplicationId=o?.selectedApplication?.id,!0)},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_ROLE_DELETE"}})]})},xr=e=>{const t=a((e=>e.commonStores.stores.SystemOrganizations.data)),{t:o}=me(),[r,d]=Z([]),l=at({findAll:"api/v1/dev/lookup/all",deleteById:"api/v1/dev/lookup",save:"api/v1/dev/lookup",findById:"api/v1/dev/lookup",setData:d}),n=[{type:"field",mode:"props",props:{fieldLabel:"Organization",fieldName:"organizationId",options:t,optionDisplayField:"organizationEnName",optionValueField:"id",required:!1,fieldType:"combobox"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_TYPE",fieldName:"lookupType",required:!1,fieldType:"text"}},{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_VALUE",fieldName:"lookupValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"System Application",fieldName:"systemApplicationId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"number"}}];return i(ir,{apiActions:l,data:r,setData:d,hideInfoBar:!0,gridLoadParametersValues:{systemApplicationId:e.selectedApplication.id},editMode:{editMode:"row"},formElements:n,keyColumnName:"id",gridTitle:o("LOOKUP_PLURAL"),girdIcon:"list-check",editAction:{isEnabled:!0,authority:"LOOKUP_EDIT",preActionValidation:i=>(i.systemApplicationId=e.selectedApplication.id,!0)},deleteAction:{isEnabled:!0,authority:"LOOKUP_DELETE"}})},Fr=e=>{const t=a((e=>e.commonStores.stores.SystemEntityParameters.data)),{t:o}=me(),[r,d]=Z([]),l=at({findAll:"api/v1/dev/dataqueryparameter/all",deleteById:"api/v1/dev/dataqueryparameter",save:"api/v1/dev/dataqueryparameter",findById:"api/v1/dev/dataqueryparameter",setData:d});return i(ir,{apiActions:l,data:r,setData:d,editMode:{editMode:"row"},hideInfoBar:!0,formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DATA_QUERY_ID",fieldName:"dataQueryId",required:!1,fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!0,fieldType:"combobox",options:t,optionValueField:"id",optionDisplayField:"parameterCode"}},{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_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",gridLoadParametersValues:{dataQueryId:e.selectedRecord.id},gridTitle:o("DATA_QUERY_PARAMETER_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_EDIT",preActionValidation:async i=>(i.dataQueryId=e.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_DELETE"}})},kr=e=>{const{t:t}=me(),o=a((e=>e.commonStores.stores.SystemEntityParameters.data)),[r,d]=Z([]),l=at({findAll:"api/v1/dev/reportparameter/all",deleteById:"api/v1/dev/reportparameter",save:"api/v1/dev/reportparameter",findById:"api/v1/dev/reportparameter",setData:d}),n=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!0,fieldType:"combobox",options:o,optionValueField:"id",optionDisplayField:"parameterCode"}},{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_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",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"number"}}];return i(ir,{apiActions:l,data:r,hideInfoBar:!0,setData:d,gridLoadParametersValues:{reportId:e.selectedRecord.id},editMode:{editMode:"row"},formElements:n,keyColumnName:"id",gridTitle:t("REPORT_PARAMETER_PLURAL"),girdIcon:"p",editAction:{isEnabled:!0,authority:"REPORT_PARAMETER_EDIT",preActionValidation:async i=>(i.reportId=e.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"REPORT_PARAMETER_DELETE"}})},Wr=e=>{if(0===e.length)return[];const i=[];for(const t of Object.keys(e[0])){const e={type:"field",mode:"props",props:{fieldLabel:t,fieldName:t,fieldType:"text"}};i.push(e)}return console.log("formElements",i),i},Gr=e=>(console.log("reportdata",e.reportData),i(ir,{data:e.reportData,disableDefaultAction:!0,setData:e.setReportData,formElements:Wr(e.reportData),gridLoadParameters:e.gridLoadParameters,gridLoadParametersValues:e.gridLoadParametersValues,setGridLoadParametersValues:e.setGridLoadParametersValues,editMode:{editMode:"none"},girdIcon:"file-excel",gridTitle:"Report",autoLoad:!0,hideInfoBar:!0,apiActions:{deleteRecordById:async()=>!0,loadRecordById:async()=>{},reloadData:async()=>{e.reloadReport()},saveRecord:async()=>{}}})),Vr=o=>{const[a,r]=Z(null),[d,l]=Z(null),[n,s]=Z([]),[p,c]=Z("WAITING_REPORT_CODE"),{handleGetRequest:m,handlePostRequest:_,HandleDownloadHTTPPostPDF:A}=Gi(),[T,u]=Z(null),[f,I]=Z({...o?.reportParametersValues}),[y,R]=Z([]),{t:L}=me(),h=e=>{const i=[];for(const t of e){const e={type:"field",mode:"props",props:{fieldLabel:t?.parameterLabel,fieldName:t?.parameterCode,fieldType:t?.parameterType,hidden:t?.hidden,formProps:{fieldSize:{lg:4,md:6,sm:12}},required:t?.mandatory,defaultValue:f[t?.parameterCode]||t?.defaultValue}};i.push(e)}return i},P=async(e,i)=>{c("WAITING_RESULT"),"Excel"===e?.reportType?await _({endPointURI:"api/v1/dev/report/run",showMask:!0,data:{reportCode:o.reportCode,parameters:i,resultMode:o.resultMode,jasperOutPutFileType:o.jasperOutPutFileType},successCallBkFn:e=>{c("SHOWING_RESULT"),s(e.data)}}):e?.reportType&&await A({endPointURI:"api/v1/dev/report/run",showMask:!0,data:{reportCode:o.reportCode,parameters:i,resultMode:o.resultMode,jasperOutPutFileType:o.jasperOutPutFileType},successCallBkFn:e=>{c("SHOWING_RESULT");const i=e.headers["content-disposition"];let t="downloaded_file";if(i&&-1!==i.indexOf("filename=")){const e=i.match(/filename="?([^"]+)"?/);e&&e[1]&&(t=e[1])}if(t.includes("pdf")){const i=new Blob([e.data],{type:"application/pdf"}),t=URL.createObjectURL(i);r(t)}else{const i=new Blob([e.data],{type:e.headers["content-type"]}),o=window.URL.createObjectURL(i),a=document.createElement("a");a.href=o,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(o)}console.log(e)},failureCallBkFn:e=>{l("Failed To run report ... contact your administrator"),c("ERROR")}})};return j((()=>{o?.reportCode&&(async()=>{c("LOADING_METADATA"),await m({endPointURI:"api/v1/dev/report/metadata",showMask:!0,parameters:{reportCode:o.reportCode},successCallBkFn:e=>{u(e.data),R(h(e.data.reportParameters)),!0===o?.byPassParameterEntry||0==e.data.reportParameters.length?(P(e.data,f),c("WAITING_RESULT")):c("WAITING_PARAMETER_INPUT")},failureCallBkFn:e=>{l("Failed loading report metadata ... contact your administrator"),c("ERROR")}})})()}),[o.reportCode,o.byPassParameterEntry,o.reportParametersValues,o.jasperOutPutFileType,o.resultMode]),e(t,{children:[e(E,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%"},children:[e(E,{sx:{flex:1,textAlign:"center",marginBottom:1},children:[i(ae,{icon:"Excel"===T?.reportType?"file-excel":"file-pdf",color:"Excel"===T?.reportType?"darkgreen":"darkred",style:{marginRight:10,marginLeft:10}}),T?.reportName]}),"Excel"!=T?.reportType&&"SHOWING_RESULT"===p?e(t,{children:[!0===o?.byPassParameterEntry?i(t,{}):y.length>0?i(N,{onClick:()=>{R(h(T.reportParameters)),c("WAITING_PARAMETER_INPUT")},children:i(ae,{icon:"filter"})}):i(t,{}),i(N,{children:i(ae,{icon:"refresh",onClick:()=>{P(T,f)}})})]}):i(t,{})]}),i(E,{sx:{flexGrow:1,width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"},children:"WAITING_PARAMETER_INPUT"===p&&"Excel"!=T?.reportType?e(B,{defaultExpanded:!0,sx:{width:"100%"},expanded:!0,children:[i(x,{children:e(E,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[i(ae,{style:{marginLeft:5,marginRight:5},icon:"search"}),i(O,{component:"span",children:"Filters"})]})}),i(F,{children:i(E,{children:i(qa,{saveButtonSpecs:{label:L("SHOW_REPORT_BTN_LABEL"),icon:"search",actionButtonVariant:"outlined",actionButtonColor:"success",hidden:!0},cancelButtonSpecs:{label:L("RESET_BTN_LABEL"),icon:"eraser",actionButtonVariant:"outlined",actionButtonColor:"error"},apiActions:{deleteRecordById:async()=>!0,saveRecord:async e=>{I(null!=e?e:{}),P(T,e)},reloadData:async()=>{},loadRecordById:async()=>{}},elements:y})})})]}):"SHOWING_RESULT"===p||("WAITING_PARAMETER_INPUT"===p||"WAITING_RESULT"===p)&&"Excel"===T?.reportType?"Excel"===T?.reportType?i(Gr,{reportData:n,setReportData:s,reloadReport:async()=>{P(T,f)},gridLoadParameters:y,gridLoadParametersValues:f,setGridLoadParametersValues:I}):i("iframe",{src:a,width:"100%",height:"100%",title:"PDF Preview",style:{border:"1px solid #ccc",marginTop:"20px"}}):"ERROR"===p?e(E,{sx:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:[i(ae,{icon:"circle-exclamation",color:"darkred",style:{marginRight:10,marginLeft:10}}),d]}):i(t,{})})]})},Yr={Blueprint:{useSysDatasource:{isMandatory:!1,isVisible:!1},datasourceConId:{isMandatory:!1,isVisible:!1},reportBluePrintId:{isMandatory:!0,isVisible:!0},reportExcelDataQueryId:{isMandatory:!1,isVisible:!1},reportJasperName:{isMandatory:!1,isVisible:!1},reportJasperPath:{isMandatory:!1,isVisible:!1}},Jasper:{useSysDatasource:{isMandatory:!1,isVisible:!0},datasourceConId:{isMandatory:!1,isVisible:!0},reportBluePrintId:{isMandatory:!1,isVisible:!1},reportExcelDataQueryId:{isMandatory:!1,isVisible:!1},reportJasperName:{isMandatory:!0,isVisible:!0},reportJasperPath:{isMandatory:!0,isVisible:!0}},Excel:{useSysDatasource:{isMandatory:!1,isVisible:!1},datasourceConId:{isMandatory:!1,isVisible:!1},reportBluePrintId:{isMandatory:!1,isVisible:!1},reportExcelDataQueryId:{isMandatory:!0,isVisible:!0},reportJasperName:{isMandatory:!1,isVisible:!1},reportJasperPath:{isMandatory:!1,isVisible:!1}}},qr=(e,i,t)=>{if(e&&Yr[e]){const o=Yr[e],a=Object.keys(o);for(const e of a){o[e].isVisible?i.showField(e):(i.hideField(e),t.setValue(e,null))}}else i.hideField("useSysDatasource"),i.hideField("datasourceConId"),i.hideField("reportBluePrintId"),i.hideField("reportExcelDataQueryId"),i.hideField("reportJasperName"),i.hideField("reportJasperPath"),t.setValue("useSysDatasource",null),t.setValue("datasourceConId",null),t.setValue("reportBluePrintId",null),t.setValue("reportExcelDataQueryId",null),t.setValue("reportJasperName",null),t.setValue("reportJasperPath",null)},Kr=e=>{const{t:t}=me(),[o,a]=Z([]),r=at({findAll:"api/v1/dev/mailrecipient/all",deleteById:"api/v1/dev/mailrecipient",save:"api/v1/dev/mailrecipient",findById:"api/v1/dev/mailrecipient",setData:a});return i(ir,{apiActions:r,data:o,hideInfoBar:!0,gridLoadParametersValues:{mailTemplateId:e.selectedRecord.id},setData:a,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_TYPE",fieldName:"recipientType",required:!0,fieldType:"combobox",options:[{value:"To"},{value:"CC"}],optionDisplayField:"value",optionValueField:"value"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_MAIL",fieldName:"recipientMail",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:t("MAIL_RECIPIENT_PLURAL"),girdIcon:"users",editAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_EDIT",preActionValidation:i=>i?.recipientMail&&!Sa(i.recipientMail)?(le.error("You must enter a valid email address"),!1):(i.mailTemplateId=e.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_DELETE"}})},zr=e=>{const{t:t}=me(),[o,r]=Z([]),d=a((e=>e.commonStores.stores.SystemDataQueries.data)),l=at({findAll:"api/v1/dev/mailbody/all",deleteById:"api/v1/dev/mailbody",save:"api/v1/dev/mailbody",findById:"api/v1/dev/mailbody",setData:r}),n=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_NAME",fieldName:"bodyName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_ORDER",fieldName:"bodyOrder",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT",fieldName:"bodyContent",required:!0,fieldType:"html"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID",fieldName:"bodyContentDataQueryId",required:!1,fieldType:"combobox",options:d,optionDisplayField:"queryName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_PRINT_FOR_EACH_RECORD",fieldName:"printForEachRecord",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_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}}];return i(ir,{apiActions:l,data:o,hideInfoBar:!0,gridLoadParametersValues:{mailTemplateId:e.selectedRecord.id},setData:r,editMode:{editMode:"modal",specs:{modalIcon:{prefix:"fas",iconName:"envelope-open-text"},modalTitle:"Mail Body",modalWidth:"50%"}},formElements:n,keyColumnName:"id",gridTitle:t("MAIL_BODY_PLURAL"),girdIcon:{prefix:"fas",iconName:"envelope-open-text"},editAction:{isEnabled:!0,authority:"MAIL_BODY_EDIT",preActionValidation:async i=>(i.mailTemplateId=e.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"MAIL_BODY_DELETE"}})},Hr=e=>{const t=a((e=>e.commonStores.stores.SystemReports.data)),{t:o}=me(),[r,d]=Z([]),l=at({findAll:"api/v1/dev/mailattachment/all",deleteById:"api/v1/dev/mailattachment",save:"api/v1/dev/mailattachment",findById:"api/v1/dev/mailattachment",setData:d}),n=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{options:t,optionValueField:"id",optionDisplayField:"reportName",fieldLabel:"REPORT_REPORT_NAME",fieldName:"reportId",required:!0,fieldType:"combobox"}},{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,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}}];return i(ir,{apiActions:l,data:r,hideInfoBar:!0,gridLoadParametersValues:{mailTemplateId:e.selectedRecord.id},setData:d,editMode:{editMode:"row"},formElements:n,keyColumnName:"id",gridTitle:o("MAIL_ATTACHMENT_PLURAL"),girdIcon:"paperclip",editAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_EDIT",preActionValidation:i=>(i.mailTemplateId=e.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_DELETE"}})},Qr={Gmail:{mailHost:{isMandatory:!0,isVisible:!0},mailPort:{isMandatory:!0,isVisible:!0},mailUsername:{isMandatory:!0,isVisible:!0},mailPassword:{isMandatory:!0,isVisible:!0},mailProtocol:{isMandatory:!0,isVisible:!0},isMailSmtpAuthEnabled:{isMandatory:!0,isVisible:!0},isMailStarttlsEnabled:{isMandatory:!0,isVisible:!0},isSmtpSSlEnabled:{isMandatory:!0,isVisible:!0},azureGraphApiClientId:{isMandatory:!1,isVisible:!1},azureGraphApiClientSecret:{isMandatory:!1,isVisible:!1},azureGraphApiTenantId:{isMandatory:!1,isVisible:!1},azureGraphApiScope:{isMandatory:!1,isVisible:!1},azureGraphApiEmailId:{isMandatory:!1,isVisible:!1}},Azure:{mailHost:{isMandatory:!1,isVisible:!1},mailPort:{isMandatory:!1,isVisible:!1},mailUsername:{isMandatory:!1,isVisible:!1},mailPassword:{isMandatory:!1,isVisible:!1},mailProtocol:{isMandatory:!1,isVisible:!1},isMailSmtpAuthEnabled:{isMandatory:!1,isVisible:!1},isMailStarttlsEnabled:{isMandatory:!1,isVisible:!1},isSmtpSSlEnabled:{isMandatory:!1,isVisible:!1},azureGraphApiClientId:{isMandatory:!0,isVisible:!0},azureGraphApiClientSecret:{isMandatory:!0,isVisible:!0},azureGraphApiTenantId:{isMandatory:!0,isVisible:!0},azureGraphApiScope:{isMandatory:!0,isVisible:!0},azureGraphApiEmailId:{isMandatory:!0,isVisible:!0}}},Zr=(e,i,t)=>{if(e&&Qr[e]){const o=Qr[e],a=Object.keys(o);for(const e of a){o[e].isVisible?i.showField(e):(i.hideField(e),t.setValue(e,null))}}else i.hideField("mailHost"),t.setValue("mailHost",null),i.hideField("mailPort"),t.setValue("mailPort",null),i.hideField("mailUsername"),t.setValue("mailUsername",null),i.hideField("mailPassword"),t.setValue("mailPassword",null),i.hideField("mailProtocol"),t.setValue("mailProtocol",null),i.hideField("isMailSmtpAuthEnabled"),t.setValue("isMailSmtpAuthEnabled",null),i.hideField("isMailStarttlsEnabled"),t.setValue("isMailStarttlsEnabled",null),i.hideField("isSmtpSSlEnabled"),t.setValue("isSmtpSSlEnabled",null),i.hideField("azureGraphApiClientId"),t.setValue("azureGraphApiClientId",null),i.hideField("azureGraphApiClientSecret"),t.setValue("azureGraphApiClientSecret",null),i.hideField("azureGraphApiTenantId"),t.setValue("azureGraphApiTenantId",null),i.hideField("azureGraphApiScope"),t.setValue("azureGraphApiScope",null),i.hideField("azureGraphApiEmailId"),t.setValue("azureGraphApiEmailId",null)},jr=e=>{const{t:t}=me(),[o,r]=Z([]),d=at({findAll:"api/v1/dev/workflowdocumentstatus/all",deleteById:"api/v1/dev/workflowdocumentstatus",save:"api/v1/dev/workflowdocumentstatus",findById:"api/v1/dev/workflowdocumentstatus",setData:r}),l=a((e=>e.commonStores.stores.SystemDataQueries.data)),n=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE",fieldName:"documentStatusCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Status Arabic Name",fieldName:"documentStatusArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Status English Name",fieldName:"documentStatusEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER",fieldName:"documentStatusOrder",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE",fieldName:"isZeroState",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"Next Actions Query (must return array of actions in table named workflow_document_action)",fieldName:"nextActionsQueryId",required:!1,fieldType:"combobox",options:l,optionValueField:"id",optionDisplayField:"queryName",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Next Action Takers Query (must return array of persons in table named person)",fieldName:"nextActionTakersQueryId",required:!1,fieldType:"combobox",options:l,optionValueField:"id",optionDisplayField:"queryName",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Next Action Takers Authority",fieldName:"nextActionTakersAuthority",fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return i(ir,{apiActions:d,data:o,setData:r,hideInfoBar:!0,gridLoadParametersValues:{workflowDocumentId:e.selectedRecord.id},editMode:{editMode:"modal",specs:{modalIcon:"tag",modalTitle:"Workflow Document Status",modalWidth:600}},formElements:n,keyColumnName:"id",gridTitle:t("WORKFLOW_DOCUMENT_STATUS_PLURAL"),girdIcon:"tags",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_EDIT",preActionValidation:i=>(i.workflowDocumentId=e.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_DELETE"}})},$r=e=>{const{t:t}=me(),[o,r]=Z([]),d=at({findAll:"api/v1/dev/workflowdocumentactionmail/all",deleteById:"api/v1/dev/workflowdocumentactionmail",save:"api/v1/dev/workflowdocumentactionmail",findById:"api/v1/dev/workflowdocumentactionmail",setData:r}),l=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID",fieldName:"documentActionId",required:!1,fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!0,fieldType:"combobox",options:a((e=>e.commonStores.stores.SystemMailTemplates.data)),optionDisplayField:"mailTemplateName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return i(ir,{apiActions:d,data:o,hideInfoBar:!0,gridLoadParametersValues:{actionId:e.selectedRecord.id},setData:r,editMode:{editMode:"row"},formElements:l,keyColumnName:"id",gridTitle:t("WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_EDIT",preActionValidation:i=>(i.documentActionId=e.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_DELETE"}})},Xr=o=>{const[a,r]=Z(null),{Window:d,setWindowState:l}=Xi({windowTitle:"Action Mail Notification",windowIcon:"envelope",width:"50%"}),{t:n}=me(),{handleGetRequest:s}=Gi(),[p,c]=Z([]);j((()=>{(async()=>{await s({endPointURI:"api/v1/dev/workflowdocumentstatus/all",showMask:!0,parameters:{workflowDocumentId:o.selectedRecord.id},successCallBkFn:e=>{c(e.data)}})})()}),[o.selectedRecord]);const[m,_]=Z([]),A=at({findAll:"api/v1/dev/workflowdocumentaction/all",deleteById:"api/v1/dev/workflowdocumentaction",save:"api/v1/dev/workflowdocumentaction",findById:"api/v1/dev/workflowdocumentaction",setData:_}),T=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE",fieldName:"documentActionCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Action Arabic Name",fieldName:"documentActionArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Action English Name",fieldName:"documentActionEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID",fieldName:"nextDocumentStatusId",required:!0,fieldType:"combobox",options:p,optionDisplayField:"documentStatusCode",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"Post Action Endpoint ( system will call it with post method and parameters refDocumentId , workflowActionId)",fieldName:"postActionEndpoint",required:!1,fieldType:"text",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Pre Action Endpoint ( system will call it with post method and parameters refDocumentId , workflowActionId)",fieldName:"preActionEndpoint",required:!1,fieldType:"text",gridProps:{hidden:!0}}},{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:"number",hidden:!0,gridProps:{hidden:!0}}}];return e(t,{children:[i(d,{children:i($r,{selectedRecord:a})}),i(ir,{apiActions:A,data:m,hideInfoBar:!0,gridLoadParametersValues:{workflowDocumentId:o.selectedRecord.id},setData:_,editMode:{editMode:"modal",specs:{modalIcon:"stamp",modalTitle:"Workflow Document Action",modalWidth:700}},rowActions:[{label:"Action Mail Notifications",icon:"envelope",actionFn:async e=>{r(e),l(!0)}}],formElements:T,keyColumnName:"id",gridTitle:n("WORKFLOW_DOCUMENT_ACTION_PLURAL"),girdIcon:"stamp",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_EDIT",preActionValidation:e=>(e.workflowDocumentId=o.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_DELETE"}})]})},Jr={LineChart:{height:{isMandatory:!0,isVisible:!0},width:{isMandatory:!0,isVisible:!0},horizontalAxisField:{isMandatory:!0,isVisible:!0},horizontalAxisLabel:{isMandatory:!0,isVisible:!0},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!0,isVisible:!0},verticalAxisLabel:{isMandatory:!0,isVisible:!0}},ColumnChart:{height:{isMandatory:!0,isVisible:!0},width:{isMandatory:!0,isVisible:!0},horizontalAxisField:{isMandatory:!0,isVisible:!0},horizontalAxisLabel:{isMandatory:!0,isVisible:!0},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!0,isVisible:!0},verticalAxisLabel:{isMandatory:!0,isVisible:!0}},PieChart:{height:{isMandatory:!0,isVisible:!0},width:{isMandatory:!0,isVisible:!0},horizontalAxisField:{isMandatory:!0,isVisible:!0},horizontalAxisLabel:{isMandatory:!1,isVisible:!1},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!0,isVisible:!0},verticalAxisLabel:{isMandatory:!1,isVisible:!1}},Card:{height:{isMandatory:!0,isVisible:!0},width:{isMandatory:!0,isVisible:!0},horizontalAxisField:{isMandatory:!0,isVisible:!0},horizontalAxisLabel:{isMandatory:!1,isVisible:!1},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!0,isVisible:!0},verticalAxisLabel:{isMandatory:!1,isVisible:!1}},CircularProgress:{height:{isMandatory:!1,isVisible:!1},width:{isMandatory:!1,isVisible:!1},horizontalAxisField:{isMandatory:!1,isVisible:!1},horizontalAxisLabel:{isMandatory:!1,isVisible:!1},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!1,isVisible:!1},verticalAxisLabel:{isMandatory:!1,isVisible:!1}},LinearProgress:{height:{isMandatory:!1,isVisible:!1},width:{isMandatory:!1,isVisible:!1},horizontalAxisField:{isMandatory:!1,isVisible:!1},horizontalAxisLabel:{isMandatory:!1,isVisible:!1},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!1,isVisible:!1},verticalAxisLabel:{isMandatory:!1,isVisible:!1}}},ed=(e,i,t)=>{if(e&&Jr[e]){const o=Jr[e],a=Object.keys(o);for(const e of a){o[e].isVisible?i.showField(e):(i.hideField(e),t.setValue(e,null))}}else i.hideField("height"),t.setValue("height",null),i.hideField("width"),t.setValue("width",null),i.hideField("horizontalAxisField"),t.setValue("horizontalAxisField",null),i.hideField("horizontalAxisLabel"),t.setValue("horizontalAxisLabel",null),i.hideField("seriesKeys"),t.setValue("seriesKeys",null),i.hideField("verticalAxisField"),t.setValue("verticalAxisField",null),i.hideField("verticalAxisLabel"),t.setValue("verticalAxisLabel",null)},id=e=>{const{t:t}=me(),[o,r]=Z([]),d=a((e=>e.commonStores.stores.SystemWidgets.data)),l=at({findAll:"api/v1/dev/dashboardwidget/all",deleteById:"api/v1/dev/dashboardwidget",save:"api/v1/dev/dashboardwidget",findById:"api/v1/dev/dashboardwidget",setData:r});return i(ir,{apiActions:l,data:o,setData:r,editMode:{editMode:"row"},hideInfoBar:!0,formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_DASHBOARD_ID",fieldName:"dashboardId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ID",fieldName:"widgetId",required:!0,fieldType:"combobox",options:d,optionValueField:"id",optionDisplayField:"widgetName"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ORDER",fieldName:"widgetOrder",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],gridLoadParametersValues:{dashboardId:e.selectedRecord.id},keyColumnName:"id",gridTitle:t("DASHBOARD_WIDGET_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_EDIT",preActionValidation:async i=>(i.dashboardId=e.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_DELETE"}})},td=[{path:"/",component:()=>i(Pr,{dashboardCode:"XX_TEMPLATE_DASHBOARD"})},...[...[{path:"admin/organizations",component:()=>{const{t:o}=me(),[a,r]=Z([]),d=at({findAll:"api/v1/admin/organization/all",deleteById:"api/v1/admin/organization",save:"api/v1/admin/organization",findById:"api/v1/admin/organization",setData:r}),{Window:l,setWindowState:n}=Xi({windowTitle:"Organization Subscriped Application Modules",windowIcon:"layer-group"}),{Window:s,setWindowState:p}=Xi({windowTitle:"Organization Unit Types",windowIcon:"tags"}),{Window:c,setWindowState:m}=Xi({windowTitle:"Organization Units",windowIcon:"folder-tree"}),{Window:_,setWindowState:A}=Xi({windowTitle:"Organization Ranks",windowIcon:"street-view"}),[T,u]=Z(null);return e(t,{children:[i(l,{children:i(Mr,{selectedOrganization:T})}),i(s,{children:i(Cr,{selectedOrganization:T})}),i(c,{children:i(Dr,{selectedOrganization:T})}),i(_,{children:i(br,{selectedOrganization:T})}),i(ir,{apiActions:d,data:a,setData:r,editMode:{editMode:"row"},rowActions:[{icon:"layer-group",actionFn:async e=>{u(e),n(!0)},label:"modules"},{icon:"tags",actionFn:async e=>{u(e),p(!0)},label:"Organization Unit Types"},{icon:"folder-tree",actionFn:async e=>{u(e),m(!0)},label:"Organization Units"},{icon:"street-view",actionFn:async e=>{u(e),A(!0)},label:"Organization Ranks"}],formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_CODE",fieldName:"organizationCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_AR_NAME",fieldName:"organizationArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_EN_NAME",fieldName:"organizationEnName",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:"Status",fieldName:"status",fieldType:"lookup",lookupType:"STATUS"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_PLURAL",girdIcon:"globe",editAction:{isEnabled:!0,authority:"ORGANIZATION_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_DELETE"}})]})},authority:"ORGANIZATION_VIEW"},{path:"admin/organizationmembers",component:Sr,authority:"ORGANIZATION_MEMBER_VIEW"},{path:"admin/organizationmemberroles",component:()=>{const{t:e}=me(),[t,o]=Z([]),a=at({findAll:"api/v1/admin/organizationmemberrole/all",deleteById:"api/v1/admin/organizationmemberrole",save:"api/v1/admin/organizationmemberrole",findById:"api/v1/admin/organizationmemberrole",setData:o});return i(ir,{apiActions:a,data:t,setData:o,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_END_DATE",fieldName:"endDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_ORGANIZATION_MEMBER_ID",fieldName:"organizationMemberId",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_START_DATE",fieldName:"startDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_SYSTEM_APPLICATION_ROLE_ID",fieldName:"systemApplicationRoleId",required:!0,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_MEMBER_ROLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_MEMBER_ROLE_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_MEMBER_ROLE_DELETE"}})},authority:"ORGANIZATION_MEMBER_ROLE_VIEW"},{path:"admin/organizationranks",component:br,authority:"ORGANIZATION_RANK_VIEW"},{path:"admin/organizationunits",component:Dr,authority:"ORGANIZATION_UNIT_VIEW"},{path:"admin/organizationunittypes",component:Cr,authority:"ORGANIZATION_UNIT_TYPE_VIEW"},{path:"admin/persons",component:()=>{const{t:o}=me(),[a,r]=Z(null),[d,l]=Z([]),n=at({findAll:"api/v1/admin/person/all",deleteById:"api/v1/admin/person",save:"api/v1/admin/person",findById:"api/v1/admin/person",setData:l}),{Window:s,setWindowState:p}=Xi({windowTitle:"Organizations Membership",windowIcon:"globe"});return e(t,{children:[i(s,{children:i(Sr,{selectedPerson:a})}),i(ir,{apiActions:n,data:d,setData:l,editMode:{editMode:"modal",specs:{modalIcon:"user",modalTitle:"Person Profile",modalWidth:300}},formElements:[{type:"field",mode:"props",props:{hidden:!0,fieldLabel:"Ref Source",fieldName:"refSource",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{hidden:!0,fieldLabel:"PERSON_EMPLOYEE_NUMBER",fieldName:"refSyncNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_EMPLOYEE_AR_NAME",fieldName:"employeeArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_EMPLOYEE_EN_NAME",fieldName:"employeeEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_EMAIL",fieldName:"email",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_MOBILE_NUMBER",fieldName:"mobileNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"PERSON_PASSWORD",fieldName:"password",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_USERNAME",fieldName:"username",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"PERSON_PLURAL",rowActions:[{icon:"globe",label:"User Organizations",actionFn:async e=>{r(e),p(!0)}}],girdIcon:"users",editAction:{isEnabled:!0,authority:"PERSON_EDIT",preActionValidation:e=>null==e.refSource||null==e.refSource||""==e.refSource||(le.error("This Person Was synced from other system therefore you can't modify this record"),!1)},deleteAction:{isEnabled:!0,authority:"PERSON_DELETE",preActionValidation:e=>null==e.refSource||null==e.refSource||""==e.refSource||(le.error("This Person Was synced from other system therefore you can't modify this record"),!1)}})]})},authority:"PERSON_VIEW"},{path:"admin/systemapplications",component:()=>{const{t:o}=me(),[a,r]=Z([]),d=at({findAll:"api/v1/admin/systemapplication/all",deleteById:"api/v1/admin/systemapplication",save:"api/v1/admin/systemapplication",findById:"api/v1/admin/systemapplication",setData:r}),{Window:l,setWindowState:n}=Xi({windowTitle:"System Application Modules",windowIcon:"layer-group"}),{Window:s,setWindowState:p}=Xi({windowTitle:"System Application Authorities",windowIcon:"key"}),{Window:c,setWindowState:m}=Xi({windowTitle:"System Application Roles",windowIcon:"tag"}),{Window:_,setWindowState:A}=Xi({windowTitle:"System Application Lookups",windowIcon:"list-check"}),[T,u]=Z(null);return e(t,{children:[i(l,{children:i(Ur,{selectedApplication:T})}),i(s,{children:i(vr,{selectedApplication:T})}),i(c,{children:i(Br,{selectedApplication:T})}),i(_,{children:i(xr,{selectedApplication:T})}),i(ir,{apiActions:d,rowActions:[{icon:"layer-group",actionFn:async e=>{u(e),n(!0)},label:"modules"},{icon:"key",actionFn:async e=>{u(e),p(!0)},label:"Authorities"},{icon:"tag",actionFn:async e=>{u(e),m(!0)},label:"Roles"},{icon:"list-check",actionFn:async e=>{u(e),A(!0)},label:"Lookups"}],data:a,setData:r,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_APPLICATION_CODE",fieldName:"applicationCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_APPLICATION_NAME",fieldName:"applicationName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_APPLICATION_DESCRIPTION",fieldName:"applicationDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"SYSTEM_APPLICATION_PLURAL",girdIcon:"window-restore",editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_EDIT"},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_DELETE"}})]})},authority:"SYSTEM_APPLICATION_VIEW"},{path:"admin/systemapplicationauthorities",component:vr,authority:"SYSTEM_APPLICATION_AUTHORITY_VIEW"},{path:"admin/systemapplicationmodules",component:Ur,authority:"SYSTEM_APPLICATION_MODULE_VIEW"},{path:"admin/systemapplicationroles",component:Br,authority:"SYSTEM_APPLICATION_ROLE_VIEW"},{path:"admin/systemapplicationroleauthorities",component:()=>{const{t:e}=me(),[t,o]=Z([]),a=at({findAll:"api/v1/admin/systemapplicationroleauthority/all",deleteById:"api/v1/admin/systemapplicationroleauthority",save:"api/v1/admin/systemapplicationroleauthority",findById:"api/v1/admin/systemapplicationroleauthority",setData:o});return i(ir,{apiActions:a,data:t,setData:o,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_AUTHORITY_ID",fieldName:"systemApplicationAuthorityId",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_ROLE_ID",fieldName:"systemApplicationRoleId",required:!0,fieldType:"text"}}],keyColumnName:"id",gridTitle:"SYSTEM_APPLICATION_ROLE_AUTHORITY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_ROLE_AUTHORITY_EDIT"},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_ROLE_AUTHORITY_DELETE"}})},authority:"SYSTEM_APPLICATION_ROLE_AUTHORITY_VIEW"}],...[{path:"dev/blueprints",component:()=>{const{t:e}=me(),t=a((e=>e.commonStores.stores.SystemDataQueries.data)),[o,r]=Z([]),d=at({commonStoreKey:"SystemBluePrints",deleteById:"api/v1/dev/blueprint",save:"api/v1/dev/blueprint",findById:"api/v1/dev/blueprint",setData:r});return i(ir,{apiActions:d,data:o,setData:r,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_BLUE_PRINT_CODE",fieldName:"bluePrintCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_QUERY_ID",fieldName:"queryId",required:!0,fieldType:"combobox",options:t,optionDisplayField:"queryName",optionValueField:"id"}}],keyColumnName:"id",gridTitle:e("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:"dev/dataqueries",component:()=>{const[o,r]=Z(null),{Window:d,setWindowState:l}=Xi({width:"50%",windowTitle:"Data query parameters",windowIcon:"p"}),n=a((e=>e.commonStores.stores.SystemDataSources.data)),{t:s}=me(),[p,c]=Z([]),m=at({commonStoreKey:"SystemDataQueries",deleteById:"api/v1/dev/dataquery",save:"api/v1/dev/dataquery",findById:"api/v1/dev/dataquery",setData:c}),_=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_NAME",fieldName:"queryName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_USE_SYS_CON",fieldName:"useSysCon",required:!1,fieldType:"checkbox",formProps:{onValueChangeCallBack(e,i,t,o){e?(t.hideField("datasourceConId"),i.setValue("datasourceConId",null)):t.showField("datasourceConId")}}}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_DATASOURCE_CON_ID",fieldName:"datasourceConId",required:!1,options:n,optionDisplayField:"connectionName",optionValueField:"id",fieldType:"combobox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_STR",fieldName:"queryStr",formProps:{fieldHeight:400},gridProps:{hidden:!0},muiTextFieldProps:{multiline:!0,rows:4},required:!1,fieldType:"text"}}];return e(t,{children:[i(d,{children:i(Fr,{selectedRecord:o})}),i(ir,{apiActions:m,rowActions:[{label:"Query Parameters",actionFn:async e=>{r(e),l(!0)},icon:"p"}],data:p,setData:c,editMode:{editMode:"modal",specs:{modalTitle:"System Query",modalWidth:600,modalIcon:"file-code"}},formElements:_,keyColumnName:"id",gridTitle:s("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:"dev/datasourceconnections",component:()=>{const{handleGetRequest:e}=Gi(),t=a((e=>e.commonStores.stores.SystemDataSourceType.data)),{t:o}=me(),[r,d]=Z([]),l=at({deleteById:"api/v1/dev/datasourceconnection",save:"api/v1/dev/datasourceconnection",findById:"api/v1/dev/datasourceconnection",setData:d,commonStoreKey:"SystemDataSources"});return i(ir,{apiActions:l,data:r,setData:d,editMode:{editMode:"modal",specs:{modalTitle:"Datasource Connection",modalIcon:"plug",modalWidth:300}},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ID",fieldName:"id",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_CONNECTION_NAME",fieldName:"connectionName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_TYPE",fieldName:"datasourceType",required:!0,fieldType:"combobox",options:t,optionValueField:"value",optionDisplayField:"value"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_URL",fieldName:"datasourceUrl",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_USERNAME",fieldName:"datasourceUsername",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_PASSWORD",fieldName:"datasourcePassword",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:o("DATASOURCE_CONNECTION_PLURAL"),girdIcon:"plug",rowActions:[{icon:"plug",label:"test connection",actionFn:async i=>{await e({endPointURI:"api/v1/dev/datasourceConnection/test",showMask:!0,parameters:{id:i.id},successCallBkFn:e=>{le.success(e.data)}})}}],editAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_EDIT"},deleteAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_DELETE"}})},authority:"DATASOURCE_CONNECTION_VIEW"},{path:"dev/entityparameters",component:()=>{const{t:e}=me(),t=a((e=>e.commonStores.stores.SystemParameterTypes.data)),[o,r]=Z([]),d=at({commonStoreKey:"SystemEntityParameters",deleteById:"api/v1/dev/entityparameter",save:"api/v1/dev/entityparameter",findById:"api/v1/dev/entityparameter",setData:r});return i(ir,{apiActions:d,data:o,setData:r,editMode:{editMode:"modal",specs:{modalTitle:"Entity Parameter",modalIcon:"p",modalWidth:300}},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_CODE",fieldName:"parameterCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_LABEL",fieldName:"parameterLabel",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_TYPE",fieldName:"parameterType",required:!0,fieldType:"combobox",options:t,optionDisplayField:"value",optionValueField:"value",formProps:{onValueChangeCallBack(e,i,t,o){"combobox"===e?(i.setValue("parameterValueFormat",null),t.showField("parameterDataQueryId"),t.showField("parameterDataset"),t.showField("parameterDisplayField"),t.showField("parameterValueField"),t.hideField("parameterValueFormat")):"date"===e||"datetime"===e?("date"===e?i.setValue("parameterValueFormat",ft):"datetime"===e&&i.setValue("parameterValueFormat",It),t.hideField("parameterDataQueryId"),t.hideField("parameterDataset"),t.hideField("parameterDisplayField"),t.hideField("parameterValueField"),t.showField("parameterValueFormat")):(i.setValue("parameterValueFormat",null),t.hideField("parameterDataQueryId"),t.hideField("parameterDataset"),t.hideField("parameterDisplayField"),t.hideField("parameterValueField"),t.hideField("parameterValueFormat"))}}}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID",fieldName:"parameterDataQueryId",hidden:!0,required:!1,fieldType:"text",formProps:{onValueChangeCallBack(e,i,t,o){null!=e&&""!=e?(i.setValue("parameterDataset",null),t.hideField("parameterDataset")):t.showField("parameterDataset")}}}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATASET",fieldName:"parameterDataset",hidden:!0,required:!1,fieldType:"text",formProps:{onValueChangeCallBack(e,i,t,o){null!=e&&""!=e?(i.setValue("parameterDataQueryId",null),t.hideField("parameterDataQueryId")):t.showField("parameterDataQueryId")}}}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD",fieldName:"parameterDisplayField",hidden:!0,required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FIELD",fieldName:"parameterValueField",hidden:!0,required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT",fieldName:"parameterValueFormat",required:!1,hidden:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:e("ENTITY_PARAMETER_PLURAL"),girdIcon:"p",editAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_DELETE"}})},authority:"ENTITY_PARAMETER_VIEW"},{path:"dev/lookups",component:xr,authority:"LOOKUP_VIEW"},{path:"dev/reports",component:()=>{const{t:o}=me(),[r,d]=Z(null),{Window:l,setWindowState:n}=Xi({windowTitle:"Report View",windowIcon:"eye",width:"80%"}),{Window:s,setWindowState:p}=Xi({windowTitle:"Report Parameters",windowIcon:"p",width:"80%"}),[c,m]=Z([]),_=a((e=>e.commonStores.stores.SystemDataSources.data)),A=a((e=>e.commonStores.stores.SystemDataQueries.data)),T=a((e=>e.commonStores.stores.SystemBluePrints.data)),u=at({findAll:"api/v1/dev/report/all",deleteById:"api/v1/dev/report",save:"api/v1/dev/report",findById:"api/v1/dev/report",setData:m}),E=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_TYPE",fieldName:"reportType",options:[{value:"Excel"},{value:"Jasper"},{value:"Blueprint"}],optionDisplayField:"value",optionValueField:"value",required:!0,fieldType:"combobox",formProps:{onValueChangeCallBack(e,i,t,o){qr(e,t,i)}}}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CODE",fieldName:"reportCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_NAME",fieldName:"reportName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CATEGORY",fieldName:"reportCategory",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Authority Code",fieldName:"reportAuthorityCode",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_USE_SYS_DATASOURCE",fieldName:"useSysDatasource",hidden:!0,gridProps:{hidden:!0},formProps:{onValueChangeCallBack(e,i,t,o){e?(t.hideField("datasourceConId"),i.setValue("datasourceConId",null)):t.showField("datasourceConId")}},required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_DATASOURCE_CON_ID",fieldName:"datasourceConId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"combobox",options:_,optionValueField:"id",optionDisplayField:"connectionName"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_BLUE_PRINT_ID",fieldName:"reportBluePrintId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"combobox",options:T,optionDisplayField:"bluePrintCode",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXCEL_DATA_QUERY_ID",fieldName:"reportExcelDataQueryId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"combobox",options:A,optionValueField:"id",optionDisplayField:"queryName"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_NAME",fieldName:"reportJasperName",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_PATH",fieldName:"reportJasperPath",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Active",fieldName:"isActive",fieldType:"checkbox"}}];return e(t,{children:[i(l,{children:i(Vr,{reportCode:r?.reportCode,resultMode:"App"})}),i(s,{children:i(kr,{selectedRecord:r})}),i(ir,{apiActions:u,data:c,setData:m,editMode:{editMode:"modal",specs:{modalTitle:"Report",modalIcon:"file",modalWidth:300}},rowActions:[{icon:"p",label:"Report Parameters",isActionVisibleForRecord:e=>"Jasper"===e.reportType,actionFn:async(e,i)=>{d(e),p(!0)}},{icon:"eye",label:"View Report",actionFn:async(e,i)=>{d(e),n(!0)}}],formLoadCallBk:(e,i,t)=>{qr(t.reportType,e,i),!0===t?.useSysDatasource&&e.hideField("datasourceConId")},formElements:E,keyColumnName:"id",gridTitle:o("REPORT_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"REPORT_EDIT",preActionValidation:e=>"Jasper"!==e?.reportType||!1!==e?.useSysDatasource||e?.datasourceConId?"Jasper"!==e?.reportType||e?.reportJasperName?"Jasper"!==e?.reportType||e?.reportJasperPath?"Blueprint"!==e?.reportType||e?.reportBluePrintId?!("Excel"===e?.reportType&&!e?.reportExcelDataQueryId)||(le.error("You must choose the report query"),!1):(le.error("You must choose the report blueprint"),!1):(le.error("You must enter the jasper report path"),!1):(le.error("You must enter the jasper report name"),!1):(le.error("You must choose the datasource"),!1)},deleteAction:{isEnabled:!0,authority:"REPORT_DELETE"}})]})},authority:"REPORT_VIEW"},{path:"dev/mailtemplates",component:()=>{const o=a((e=>e.commonStores.stores.SystemDataQueries.data)),[r,d]=Z(null),{Window:l,setWindowState:n}=Xi({windowTitle:"Mail Receipents",windowIcon:"users"}),{Window:s,setWindowState:p}=Xi({windowTitle:"Mail Bodies",windowIcon:{prefix:"fas",iconName:"envelope-open-text"}}),{Window:c,setWindowState:m}=Xi({windowTitle:"Mail Attachment",windowIcon:"paperclip",width:500}),{t:_}=me(),[A,T]=Z([]),u=at({commonStoreKey:"SystemMailTemplates",deleteById:"api/v1/dev/mailtemplate",save:"api/v1/dev/mailtemplate",findById:"api/v1/dev/mailtemplate",setData:T}),E=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_CODE",fieldName:"mailTemplateCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_NAME",fieldName:"mailTemplateName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"group",props:{label:"subject",icon:"users",style:{padding:1,border:"0.5px dashed black",margin:1},elements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_SUBJECT",fieldName:"mailSubject",required:!0,fieldType:"text",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID",fieldName:"subjectDataQueryId",required:!1,fieldType:"combobox",options:o,optionDisplayField:"queryName",optionValueField:"id",gridProps:{hidden:!0}}}]}},{type:"group",props:{label:"Recipients",icon:"users",style:{padding:1,border:"0.5px dashed black",margin:1},elements:[{type:"field",mode:"props",props:{fieldLabel:"To Recipient Query (must return list of objects with property email)",fieldName:"mailToDataQueryId",required:!1,fieldType:"combobox",options:o,optionDisplayField:"queryName",optionValueField:"id",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"CC Recipient Query (must return list of objects with property email)",fieldName:"mailCcDataQueryId",required:!1,fieldType:"combobox",options:o,optionDisplayField:"queryName",optionValueField:"id",gridProps:{hidden:!0}}}]}},{type:"group",props:{label:"Periodical Configuration",icon:"history",style:{padding:1,border:"0.5px dashed black",margin:1},elements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIODICAL",fieldName:"periodical",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_TYPE",fieldName:"periodType",options:[{value:"Year"},{value:"Month"},{value:"Day"},{value:"Hour"},{value:"Minute"},{value:"Second"}],optionDisplayField:"value",optionValueField:"value",required:!1,fieldType:"combobox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_VALUE",fieldName:"periodValue",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_START_SENDING_AT",fieldName:"startSendingAt",required:!1,fieldType:"datetime"}}]}}];return e(t,{children:[i(l,{children:i(Kr,{selectedRecord:r,callBkFn:()=>{n(!1)}})}),i(s,{children:i(zr,{selectedRecord:r,callBkFn:()=>{n(!1)}})}),i(c,{children:i(Hr,{selectedRecord:r,callBkFn:()=>{m(!1)}})}),i(ir,{apiActions:u,data:A,setData:T,editMode:{editMode:"modal",specs:{modalWidth:300,modalTitle:"Mail Template",modalIcon:"envelope"}},formElements:E,keyColumnName:"id",gridTitle:_("MAIL_TEMPLATE_PLURAL"),girdIcon:"envelope",rowActions:[{icon:"users",label:"Recipients",actionFn:async e=>{d(e),n(!0)}},{icon:{prefix:"fas",iconName:"envelope-open-text"},label:"Mail Body",actionFn:async e=>{d(e),p(!0)}},{icon:"paperclip",label:"Mail Attachments",actionFn:async e=>{d(e),m(!0)}}],editAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_EDIT",preActionValidation:e=>!0!==e?.periodical||e?.periodType?!0!==e?.periodical||e?.periodValue?!(!0===e?.periodical&&!e?.startSendingAt)||(le.error("You must specifiy the start sending time since this email is periodical"),!1):(le.error("You must specifiy the period value since this email is periodical"),!1):(le.error("You must specifiy the period type since this email is periodical"),!1)},deleteAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_DELETE"}})]})},authority:"MAILTEMPLATE_VIEW"},{path:"dev/mailsender/config",component:()=>{const{t:e}=me(),[t,o]=Z([]),a=at({findAll:"api/v1/dev/mailsenderconfig/all",deleteById:"api/v1/dev/mailsenderconfig",save:"api/v1/dev/mailsenderconfig",findById:"api/v1/dev/mailsenderconfig",setData:o});return i(ir,{apiActions:a,data:t,setData:o,editMode:{editMode:"modal",specs:{modalIcon:{iconName:"paper-plane",prefix:"fas"},modalTitle:"Mail Sender Configuration",modalWidth:300}},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Name",fieldName:"configName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Engine",fieldName:"mailEngine",required:!0,fieldType:"combobox",options:[{value:"Gmail"},{value:"Azure"}],optionDisplayField:"value",optionValueField:"value",formProps:{onValueChangeCallBack(e,i,t,o){Zr(e,t,i)}}}},{type:"field",mode:"props",props:{fieldLabel:"Hostname",fieldName:"mailHost",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"port",fieldName:"mailPort",required:!1,fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"username",fieldName:"mailUsername",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"password",fieldName:"mailPassword",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Workflow Approval Receive Email",fieldName:"workFlowApprovalReceiveEmail",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Protocol",fieldName:"mailProtocol",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Enable Smtp Auth",fieldName:"isMailSmtpAuthEnabled",required:!1,fieldType:"checkbox",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Enable Start TLS",fieldName:"isMailStarttlsEnabled",required:!1,fieldType:"checkbox",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Enable SSL",fieldName:"isSmtpSSlEnabled",required:!1,fieldType:"checkbox",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Client Id",fieldName:"azureGraphApiClientId",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Secret",fieldName:"azureGraphApiClientSecret",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Tenant Id",fieldName:"azureGraphApiTenantId",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Scope",fieldName:"azureGraphApiScope",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Email Id",fieldName:"azureGraphApiEmailId",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Default",fieldName:"isDefault",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"Active",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:e("Mail Sender Configuration"),girdIcon:{iconName:"paper-plane",prefix:"fas"},editAction:{isEnabled:!0,authority:"MAIL_SENDER_CONFIG_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_SENDER_CONFIG_DELETE"},formLoadCallBk:(e,i,t)=>{Zr(t.mailEngine,e,i)}})},authority:"MAILTEMPLATE_VIEW"},{path:"dev/workflowdocuments",component:()=>{const[o,r]=Z(null),{Window:d,setWindowState:l}=Xi({windowTitle:"Document Status",windowIcon:"tag"}),{Window:n,setWindowState:s}=Xi({windowTitle:"Document Action",windowIcon:"stamp"}),p=a((e=>e.commonStores.stores.SystemOrganizations.data)),c=a((e=>e.commonStores.stores.SystemReports.data)),m=a((e=>e.commonStores.stores.SystemDataSources.data)),{t:_}=me(),[A,T]=Z([]),u=at({findAll:"api/v1/dev/workflowdocument/all",deleteById:"api/v1/dev/workflowdocument",save:"api/v1/dev/workflowdocument",findById:"api/v1/dev/workflowdocument",setData:T}),E=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ORG_CODE",fieldName:"orgCode",required:!1,fieldType:"combobox",options:p,optionDisplayField:"organizationCode",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CODE",fieldName:"documentCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Workflow Document En Display Name",fieldName:"documentEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Workflow Document Ar Display Name",fieldName:"documentArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Report To be Attached For The Document ( will be passed a parameter called doc_id)",fieldName:"documentReportId",required:!1,fieldType:"combobox",options:c,optionDisplayField:"reportName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED",fieldName:"mailApprovalAllowed",required:!1,fieldType:"checkbox"}},{type:"group",props:{icon:"bell",style:{border:"1px dashed black",padding:1,marginBottom:1},label:"App Visual Notifications",elements:[{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:"group",props:{icon:"database",style:{border:"1px dashed black",padding:1,marginBottom:1},label:"Related Document Database",elements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_USE_SYSTEM_CON",fieldName:"useSystemCon",required:!1,fieldType:"checkbox",formProps:{onValueChangeCallBack(e,i,t,o){e?(t.hideField("documentConId"),i.setValue("documentConId",null)):t.showField("documentConId")}}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CON_ID",fieldName:"documentConId",required:!1,fieldType:"combobox",options:m,optionDisplayField:"connectionName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME",fieldName:"documentDatabaseName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE",fieldName:"documentDatabaseTable",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD",fieldName:"documentIdField",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD",fieldName:"documentStatusField",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD",fieldName:"documentNumberField",required:!0,fieldType:"text"}}]}}];return e(t,{children:[i(d,{children:i(jr,{selectedRecord:o})}),i(n,{children:i(Xr,{selectedRecord:o})}),i(ir,{apiActions:u,formLoadCallBk:(e,i,t)=>{!0===t.useSystemCon?e.hideField("documentConId"):e.showField("documentConId")},data:A,setData:T,rowActions:[{icon:"tag",label:"Document States",actionFn:async e=>{r(e),l(!0)}},{icon:"stamp",label:"Document Actions",actionFn:async e=>{r(e),s(!0)}}],editMode:{editMode:"modal",specs:{modalIcon:"chart-diagram",modalTitle:_("WORKFLOW_DOCUMENT_SINGULAR")}},formElements:E,keyColumnName:"id",gridTitle:_("WORKFLOW_DOCUMENT_PLURAL"),girdIcon:"chart-diagram",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_DELETE"}})]})},authority:"WORKFLOW_DOCUMENT_VIEW"},{path:"dev/widgets",component:()=>{const{t:e}=me(),t=a((e=>e.commonStores.stores.SystemDataQueries.data)),o=a((e=>e.commonStores.stores.SystemWidgetTypes.data)),[r,d]=Z([]),l=at({commonStoreKey:"SystemWidgets",deleteById:"api/v1/dev/widget",save:"api/v1/dev/widget",findById:"api/v1/dev/widget",setData:d});return i(ir,{apiActions:l,data:r,setData:d,editMode:{editMode:"modal",specs:{modalIcon:"chart-pie",modalTitle:"Widget"}},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_TYPE",fieldName:"widgetType",required:!0,fieldType:"combobox",options:o,optionDisplayField:"name",optionValueField:"name",formProps:{onValueChangeCallBack(e,i,t,o){ed(e,t,i)}}}},{type:"field",mode:"props",props:{fieldLabel:"Query",fieldName:"dataQueryId",required:!0,fieldType:"combobox",options:t,optionDisplayField:"queryName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_NAME",fieldName:"widgetName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ICON",fieldName:"icon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_TITLE",fieldName:"title",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_DESCRIPTION",fieldName:"widgetDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HEIGHT",fieldName:"height",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDTH",fieldName:"width",required:!1,fieldType:"combobox",options:[{value:1},{value:2},{value:3},{value:4},{value:5},{value:6},{value:7},{value:8},{value:9},{value:10},{value:11},{value:12}],optionDisplayField:"value",optionValueField:"value"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"group",props:{style:{padding:1,border:"1px solid black",width:"100%"},label:"Data Specs",elements:[{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_SERIES_KEYS",fieldName:"seriesKeys",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"}}]}}],keyColumnName:"id",gridTitle:e("WIDGET_PLURAL"),girdIcon:"chart-pie",editAction:{isEnabled:!0,authority:"WIDGET_EDIT"},deleteAction:{isEnabled:!0,authority:"WIDGET_DELETE"},formLoadCallBk:(e,i,t)=>{ed(t.widgetType,e,i)}})},authority:"WIDGET_VIEW"},{path:"dev/dashboards",component:()=>{const{t:o}=me(),[a,r]=Z(null),{Window:d,setWindowState:l}=Xi({windowTitle:"Dashboard Widgets",windowIcon:"chart-pie"}),[n,s]=Z([]),p=Fe(),c=at({findAll:"api/v1/dev/dashboard/all",deleteById:"api/v1/dev/dashboard",save:"api/v1/dev/dashboard",findById:"api/v1/dev/dashboard",setData:s});return e(t,{children:[i(d,{children:i(id,{selectedRecord:a})}),i(ir,{apiActions:c,data:n,setData:s,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_CODE",fieldName:"dashboardCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_NAME",fieldName:"dashboardName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_TITLE",fieldName:"dashboardTitle",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",rowActions:[{label:"Widgets",icon:"chart-pie",actionFn:async e=>{r(e),l(!0)}},{label:"View",icon:"eye",actionFn:async e=>{p("/dashboard/"+e.dashboardCode)}}],gridTitle:o("DASHBOARD_PLURAL"),girdIcon:"square-poll-vertical",editAction:{isEnabled:!0,authority:"DASHBOARD_EDIT"},deleteAction:{isEnabled:!0,authority:"DASHBOARD_DELETE"}})]})},authority:"DASHBOARD_VIEW"},{path:"dashboard/:dashboardCode",component:()=>{const{dashboardCode:e}=xe();return i(Pr,{dashboardCode:e})}},{path:"dev/workflowdocumentmaillogs",component:()=>{const{t:e}=me(),[t,o]=Z([]),a=at({findAll:"api/v1/dev/workflowdocumentmaillog/all",deleteById:"api/v1/dev/workflowdocumentmaillog",save:"api/v1/dev/workflowdocumentmaillog",findById:"api/v1/dev/workflowdocumentmaillog",setData:o});return i(ir,{apiActions:a,data:t,setData:o,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{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:"text"}},{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:"number"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_RECEIVE_TIME",fieldName:"mailReceiveTime",required:!1,fieldType:"datetime"}}],keyColumnName:"id",gridTitle:e("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"}})}},{path:"dev/mailnotificationqueues",component:()=>{const{t:e}=me(),[t,o]=Z([]),r=at({findAll:"api/v1/dev/mailnotificationqueue/all",deleteById:"api/v1/dev/mailnotificationqueue",save:"api/v1/dev/mailnotificationqueue",findById:"api/v1/dev/mailnotificationqueue",setData:o}),d=a((e=>e.commonStores.stores.SystemMailTemplates.data));return i(ir,{apiActions:r,disableDefaultAction:!0,data:t,setData:o,editMode:{editMode:"none"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"combobox",options:d,optionDisplayField:"mailTemplateName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID",fieldName:"customMailAttachedReportId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY",fieldName:"customMailBody",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT",fieldName:"customMailSubject",required:!1,hidden:!0,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_NOTIFICATION_TIME",fieldName:"notificationTime",required:!1,fieldType:"datetime"}},{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_MAIL_PARAMETERS",fieldName:"mailParameters",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:e("MAIL_NOTIFICATION_QUEUE_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_DELETE"}})}}]]],od=o=>{const{isUserAuthorized:a}=$i();return o?.authority&&!a(o.authority)?i(E,{sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:"red"},children:e("h2",{children:[i(ae,{style:{marginRight:10,marginLeft:10},icon:"cancel"}),"You aren't authorized to access this page"]})}):i(t,{children:o.children})},ad=()=>{const t=a((e=>e.AppLayout)),r=a((e=>e.AppInfo.value)),d=a((e=>e.AppInfo.value.businessRoutes)),l=o(),{show:n,hide:s}=Wi(),p=a((e=>e.commonStores)),[c,m]=Z(!1),{isUserAuthorized:_}=$i(),{handleGetRequest:A}=Gi();return j((()=>{p?.storeKeys&&(async()=>{n("Loading ... please wait");const e=p.stores,i=p.storeKeys;for(let t of i)void 0!==e[t]?.authority&&null!==e[t]?.authority&&!_(e[t]?.authority)||""==e[t]?.url||!0!==e[t].autoLoad||await A({endPointURI:e[t].url,showMask:!1,successCallBkFn:e=>{l(et({storeKey:t,data:e.data}))},failureCallBkFn:()=>{l(et({storeKey:t,data:[]}))}});s()})()}),[p.storeKeys]),i(K,{value:"ltr"===t.appDirection?Lr:Rr,children:i(E,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",flex:1,overflow:"hidden",padding:3},children:e(ke,{children:[r.enableAdministrationModule?td.map(((e,t)=>i(We,{path:e.path,element:i(od,{authority:e.authority,children:i(e.component,{})})},"adm"+t))):null,d.map(((e,t)=>i(We,{path:e.path,element:i(od,{authority:e.authority,children:i(e.component,{})})},"bs"+t)))]})})})},rd=X("div")((({theme:e})=>({width:30,height:6,margin:10,backgroundColor:Ci[300],borderRadius:3,top:8,...e.applyStyles("dark",{backgroundColor:Ci[900]})})));function dd(t){const{window:r}=t,d=a((e=>e.SideBar)),l=a((e=>e.AppInfo.value)),n=o(),s=e=>{n(rr(e))};return i(Di,{container:void 0!==r?()=>r().document.body:void 0,anchor:"bottom",open:d.isOpened,onClose:()=>{s(!1)},onOpen:()=>{s(!0)},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},children:e(E,{sx:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",overflow:"hidden"},children:[i(rd,{}),i(E,{sx:{flexGrow:1,display:"flex",justifyContent:"center",width:"99%",overflowY:"auto"},children:i(Nr,{})}),e(E,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1,width:"100%"},children:[i(O,{sx:{fontSize:12},color:"textDisabled",children:l.appName}),e(O,{sx:{fontSize:12},color:"textDisabled",children:["V.",l.appVersion]})]})]})})}const ld=()=>{const{t:t}=me(),o=a((e=>e.loadingMask.value)),r=a((e=>e.AppLayout));return e(G,{dir:r.appDirection,sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:o.isOpened,children:[i(V,{color:"inherit"}),i("div",{style:{marginRight:10,marginLeft:10},children:o?.message||t("DEFAULT_LOADING_MESSAGE")})]})},nd=()=>{const r=a((e=>e.AppInfo.value)),[d,l]=Z(""),[n,s]=Z(""),[p,c]=Z(!1),m=a((e=>e.UserSession.value)),_=o(),A=async()=>{if(null==d||""==d)return void le.error("username is required to proceed");if(null==n||""==n)return void le.error("password is required to proceed");c(!0);let e=null;try{if(e=await se.post(`${r.apiBaseUrl}/api/auth/login`,{username:d,password:n},{withCredentials:!0}),null!=e.data&&""!==e.data){c(!1);const i={...e.data,isAuthenticated:!0};_(Yi.setAuthenticated(i))}}catch(e){c(!1),le.error(e?.response?.data||"failed to authenticate, contact your administrator")}},u=a((e=>e.UserSession.value)),f=Y({components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${r.appTheme?.dark?.primaryColor||yt} #121212;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"dark",primary:{main:r.appTheme?.dark?.primaryColor||yt},secondary:{main:r.appTheme?.dark?.secondaryColor||Rt}}});return j((()=>{(async()=>{if(r?.apiBaseUrl&&null==u.isAuthenticated)try{let e=await se.get(`${r.apiBaseUrl}/api/auth/userInfo`,{withCredentials:!0});if(null!=e&&null!=e.data){const i={...e.data,isAuthenticated:!0};_(Yi.setAuthenticated(i))}else _(Yi.setUnAuthenticated())}catch(e){_(Yi.setUnAuthenticated())}})()}),[r]),i(z,{theme:f,children:i(y,{sx:{display:"flex",height:"100vh",width:"100%",borderRadius:0,alignItems:"center",justifyContent:"center"},children:0==m.isAuthenticated?e(E,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[i("img",{src:r?.appLogo,width:150,height:150}),i(O,{sx:{m:1},variant:"h4",color:"textSecondary",children:r?.appName}),e(O,{sx:{paddingRight:1,width:"100%",textAlign:"right",fontSize:10},variant:"caption",color:"textSecondary",children:["V.",r.appVersion]}),i(R,{label:"username",sx:{width:300,m:1},value:d,onChange:e=>{l(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&A()}}),i(R,{label:"password",sx:{width:300,m:1},value:n,type:"password",onChange:e=>{s(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&A()}}),i(T,{loading:p,onClick:A,variant:"contained",color:"primary",sx:{m:1},children:"login"})]}):e(t,{children:[i(V,{sx:{marginRight:1}}),i("div",{children:"You will be redirected shortly ... please wait"})]})})})},sd=X("main",{shouldForwardProp:e=>"open"!==e})((({theme:e,open:i})=>{const t=a((e=>e.AppLayout)),o=ee(),r=gi();return{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1,width:!r&&i?"calc(100% - 350px)":"100%",direction:t.appDirection,justifyContent:"flex-start",transition:!0===i?o.transitions.create(["margin","width"],{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.enteringScreen}):o.transitions.create(["margin","width"],{easing:o.transitions.easing.sharp,duration:o.transitions.duration.leavingScreen}),marginLeft:r||"ltr"!==t.appDirection||!0!==i?0:Si+"px",marginRight:r||"rtl"!==t.appDirection||!0!==i?0:Si+"px"}}));function pd(){const t=a((e=>e.SideBar)),o=gi(),r=a((e=>e.UserSession));return e(Ge,{children:[i(ne,{draggable:!0,position:"bottom-center"}),i(ld,{}),!0===r.value.isAuthenticated?e(sd,{open:t.isOpened,children:[i(ie,{}),i(nr,{}),o?null:i(yr,{}),o?i(dd,{}):null,i(sr,{}),i(ad,{})]}):i(nd,{})]})}const cd=re({name:"AppInfo",initialState:{value:{documentTitle:null,apiBaseUrl:null,appName:null,appVersion:null,appLogo:null,muiPremiumKey:null,enableAdministrationModule:!1,businessRoutes:[],businessNavigationItems:[],businessReduxReducers:{},businessCommonStoresMetaData:{},appTheme:{light:{primaryColor:"#37505C",secondaryColor:"#ff6d00"},dark:{primaryColor:"#ea690e",secondaryColor:"#74776B"}}}},reducers:{setAppInfo:(e,i)=>{e.value=i.payload}}}),md=cd.actions;var _d=cd.reducer;const Ad={SystemDataSourceType:{autoLoad:!1,data:[{value:"Mysql"},{value:"Oracle"},{value:"DB2"}],url:""},SystemParameterTypes:{autoLoad:!1,url:"",data:[{value:"text"},{value:"number"},{value:"date"},{value:"datetime"},{value:"combobox"},{value:"checkbox"},{value:"html"},{value:"lookup"}]},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"}]},SystemOrganizations:{autoLoad:!0,url:"api/v1/admin/organization/all",authority:"DEVELOPMENT_ADMIN",data:[]},SystemOrganizationRanks:{autoLoad:!0,url:"api/v1/admin/organization/ranks/all",authority:"DEVELOPMENT_ADMIN",data:[]},SystemOrganizationUnits:{autoLoad:!0,url:"api/v1/admin/organization/units/all",authority:"DEVELOPMENT_ADMIN",data:[]},SystemDataSources:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/datasourceconnection/all"},SystemDataQueries:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/dataquery/all"},SystemBluePrints:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/blueprint/all"},SystemReports:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/report/all"},SystemEntityParameters:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/entityparameter/all"},SystemMailTemplates:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/mailtemplate/all"},SystemWidgets:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/widget/all"}},Td=e=>{const t=o();bi.setLicenseKey(e.muiPremiumKey);const r={components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${e.appTheme?.light?.primaryColor||Ot} #ffffff;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"light",primary:{main:e.appTheme?.light?.primaryColor||Ot},secondary:{main:e.appTheme?.light?.secondaryColor||Nt},background:{default:"#f5f5f5",paper:"#f5f5f5"}}},d={components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${e.appTheme?.dark?.primaryColor||yt} #121212;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"dark",primary:{main:e.appTheme?.dark?.primaryColor||yt},secondary:{main:e.appTheme?.dark?.secondaryColor||Rt}}};let l={};e.enableAdministrationModule&&(l={...Ad}),e.businessCommonStoresMetaData&&(l={...l,...e.businessCommonStoresMetaData}),t(it(l));const n=a((e=>e.AppLayout));let s={...r};"dark"===n.themeMode&&(s={...d});const p=Y({direction:n.appDirection,...s});return j((()=>{document.title=e.documentTitle,t(md.setAppInfo(e))}),[]),i(z,{theme:p,children:i(pd,{})})};d.add(l),d.add(n),d.add(s);const ud=e=>{const t={AppLayout:wi,UserSession:qi,loadingMask:ki,commonStores:ot,SideBar:dr,AppInfo:_d,...e.businessReduxReducers},o=de({reducer:t});return i(r,{store:o,children:i(Td,{...e})})};export{ud as BaseApp,ut as CheckBox,Et as ComboBox,yt as DARK_THEME_INITIAL_MAIN_COLOR,Rt as DARK_THEME_INITIAL_SECANDARY_COLOR,ft as DATE_FORMAT,It as DATE_TIME_FORMAT,Lt as Datefield,ht as DatetimeField,Ot as LIGHT_THEME_INITIAL_MAIN_COLOR,Nt as LIGHT_THEME_INITIAL_SECANDARY_COLOR,st as TemplateBarChart,pt as TemplateDataCard,qa as TemplateForm,ct as TemplateGauge,ir as TemplateGrid,mt as TemplateLineChart,At as TemplateLineProgress,Tt as TemplatePieChart,rt as TemplateTextField,nt as TransferList,ga as capitalizeFirstLetter,Ca as hasDigitsOnly,Da as isNumber,ba as isNumeric,Sa as isValidEmail,at as useApiActions,Gi as useAxios,ji as useConfirmationWindow,gi as useIsMobile,Wi as useLoadingMask,$i as useSession,Xi as useWindow};
32
32
  //# sourceMappingURL=index.mjs.map