@asaleh37/ui-base 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -28,5 +28,5 @@ object-assign
28
28
  * This source code is licensed under the MIT license found in the
29
29
  * LICENSE file in the root directory of this source tree.
30
30
  */
31
- function(e,t){const i=st(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const o=`"${e}"`;return 0===t.length?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),i(...t)}:i}("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(cr),d=z.forwardRef((function(t,d){const l=function(e=ur){return Ir(e)}(o),{className:s,component:p="div",..._}=mr(t);return e(n,{as:p,ref:d,className:kt(s,a?a(r):r),theme:i&&l[i]||l,..._})}));return d}({defaultClassName:function(e,t,i="Mui"){const o={};return t.forEach((t=>{o[t]=function(e,t,i="Mui"){const o=Rr[t];return o?`${i}-${o}`:`${Nr.generate(e)}-${t}`}(e,t,i)})),o}("MuiBox",["root"]).root,generateClassName:Nr.generate});"production"!==process.env.NODE_ENV&&(Lr.propTypes={children:eo.node,component:eo.elementType,sx:eo.oneOfType([eo.arrayOf(eo.oneOfType([eo.func,eo.object,eo.bool])),eo.func,eo.object])});const yr=t=>e(C,{...t,slotProps:{inputLabel:{shrink:!0}}}),Dr=t=>{if(t?.fieldInfo){const o=t.fieldInfo,r=t?.formManager||null,a=t?.formActions||null,n=t?.formValues||null,d=t?.fieldInfo?.fieldName||null,l=t?.fieldInfo?.fieldType||null;return o&&r&&n&&d&&l?void 0!==o?.hidden&&o?.hidden||t.hiddenFields.includes(d)?e(i,{}):e(B,{size:o?.formProps?.fieldSize||{lg:12,md:12,sm:12},sx:{padding:1,width:"100%"},children:"text"===l||"number"===l?e(yr,{fullWidth:!0,type:l,disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),hidden:o?.hidden||!1,label:o?.fieldLabel,value:n[d],onChange:e=>{let t=null;var i;""!=e.target.value&&(t="number"!==l||("string"!=typeof(i=e.target.value)||""===i.trim()||isNaN(Number(i)))?e.target.value:Number(e.target.value)),r.setValue(d,t),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(t,r,a)},sx:o?.formProps?.style,error:null!=r.formState.errors[d],helperText:r?.formState?.errors[d]?.message?.toString()}):"date"===o?.fieldType?e(li,{format:o?.dateFormat||ni,sx:o?.formProps?.style||{width:"100%"},disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),label:o?.fieldLabel,onChangeCallBack:e=>{r.setValue(d,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,r,a)},value:n[d],error:null!=r.formState.errors[d],errorMessage:r?.formState?.errors[d]?.message?.toString()}):"datetime"===o?.fieldType?e(si,{format:o?.dateFormat||di,sx:o?.formProps?.style||{width:"100%"},disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),label:o?.fieldLabel,onChangeCallBack:e=>{r.setValue(d,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,r,a)},value:n[d],error:null!=r.formState.errors[d],errorMessage:r?.formState?.errors[d]?.message?.toString()}):"checkbox"===o?.fieldType?e(_i,{label:o?.fieldLabel,onChangeCallBack:e=>{r.setValue(d,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,r,a)},value:n[d],checkedValue:o?.checkedValue||"true",unCheckedValue:o?.unCheckedValue||"false",disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),sx:o?.formProps?.style}):"combobox"===o?.fieldType?e(pi,{sx:o?.formProps?.style||{width:"100%"},label:o?.fieldLabel,disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),onChangeCallBack:(e,t)=>{let i=null;e&&(i=e+""),r.setValue(d,i),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(i,r,a,t)},options:o?.options||[],displayField:o?.optionDisplayField||"",valueField:o?.optionValueField||"",value:n[d],errorMessage:r?.formState?.errors[d]?.message?.toString()}):e(i,{children:"Unknown field type"})}):e(i,{})}return e(i,{})},Cr=o=>{const r=Yt(),{ConfirmationWindow:a,setOpen:n}=ri({body:o?.confirmationMessage||"",title:"Confirmation",onConfirmationCallBk:()=>{o?.actionFn(o?.record)}});return null==o?.authority||r.isUserAuthorized(o.authority)?t(i,{children:[e(a,{}),t(y,{variant:o?.formActionProps?.actionButtonVariant,color:o?.formActionProps?.actionButtonColor,onClick:()=>{if(o?.actionFn){if(o?.preActionValidation&&!o.preActionValidation(o.record))return;!0===o?.isConfirmationRequired?n(!0):o?.actionFn(o.record)}},children:[o?.icon?e(ae,{icon:o.icon,style:{marginRight:5,marginLeft:5}}):e(i,{}),e("div",{children:o?.label})]})]}):e(i,{})},Ur=o=>e(i,{children:t(B,{container:!0,sx:o?.style,alignItems:"flex-start",children:[o?.label?e(B,{size:12,sx:{padding:1,fontWeight:"bold",display:"flex"},children:o?.icon?t(i,{children:[e(ae,{icon:o.icon,style:{marginRight:5,marginLeft:5}}),e("div",{children:o.label})]}):e(i,{children:o.label})}):e(i,{}),o?.elements?o.elements.map((t=>"group"===t.type?e(Ur,{...t.props,formManager:o.formManager,formValues:o.formValues,formActions:o.formActions,hiddenFields:o.hiddenFields,disabledFields:o.disabledFields}):"field"===t.type&&"props"===t.mode?e(Dr,{fieldInfo:t.props,formManager:o.formManager,formValues:o.formValues,formActions:o.formActions,hiddenFields:o.hiddenFields,disabledFields:o.disabledFields}):"field"===t.type&&"node"===t.mode?e(B,{size:t?.props?.formProps?.fieldSize||{lg:3,md:6,sm:12},sx:{padding:1,width:"100%"},children:e(t.node,{formManager:o.formManager,formValues:o.formValues,formActions:o.formActions})}):void 0)):null,o?.actions?e(B,{size:{sm:12},sx:{padding:1},children:o.actions.map((t=>e(Cr,{...t,record:o.formValues})))}):e(i,{})]})}),Mr=o=>{const r=Oi(o.elements),[a,n]=j([]),[d,l]=j([]),s=at.object(Ii(r)),p=dt({resolver:lt(s)}),_=p.watch(),E=be(),T=o?.formRouteRecordIdParamName,A={setFieldValue:(e,t)=>{p.setValue(e,t)},hideField:e=>{n((t=>[...t,e]))},showField:e=>{n((t=>t.filter((t=>t!==e))))},disableField:e=>{l((t=>[...t,e]))},enableField:e=>{l((t=>t.filter((t=>t!==e))))}};return X((()=>{(async()=>{let e=null;if(o?.recordIdToEdit?e=o.recordIdToEdit:T&&E[T]&&(e=E[T]),e){const t=await o.apiActions.loadRecordById(e);t&&p.reset({...t})}})()}),[o?.recordIdToEdit]),t(i,{children:[e(Lr,{sx:{display:"flex",flex:1,width:"100%",height:"fit-content",flexDirection:"column",alignItems:"center",overflow:"auto"},children:e(B,{sx:{width:"100%"},container:!0,children:o.elements.map((t=>"group"===t.type?e(Ur,{...t.props,formManager:p,formValues:_,formActions:A,hiddenFields:a,disabledFields:d}):"field"===t.type&&"props"===t.mode?e(Dr,{fieldInfo:t.props,formManager:p,formValues:_,formActions:A,hiddenFields:a,disabledFields:d}):"field"===t.type&&"node"===t.mode?e(B,{size:t?.props?.formProps?.fieldSize||{lg:3,md:6,xs:12},sx:{padding:1,width:"100%"},children:e(t.node,{formManager:p,formValues:_})}):void 0))})}),t(Lr,{sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"flex-start"},children:[o?.actions?o.actions.map((t=>!0===t?.formActionProps?.enabled?e(Cr,{...t,record:_}):e(i,{}))):e(i,{}),e("div",{style:{flex:1}}),e(y,{variant:o?.saveButtonSpecs?.actionButtonVariant?o.saveButtonSpecs.actionButtonVariant:"contained",sx:{m:1},startIcon:o?.saveButtonSpecs?.icon?e(ae,{icon:o.saveButtonSpecs.icon}):null,color:o?.saveButtonSpecs?.actionButtonColor?o.saveButtonSpecs.actionButtonColor:"primary",onClick:p.handleSubmit((e=>{console.log("form values",e),(async e=>{if((!o?.preSaveValidation||o.preSaveValidation(e))&&e){const t=await o.apiActions.saveRecord(e);t&&(p.reset({...t}),o?.formSavedSuccessfullyCallBk&&o.formSavedSuccessfullyCallBk(t),o?.formCloseCallBk&&o.formCloseCallBk())}})(e)}),(e=>{ne.error("Form Data is not valid, make sure you have all field with valid data"),console.log("form validation error",e)})),children:o?.saveButtonSpecs?.label||"save"}),e(y,{variant:o?.cancelButtonSpecs?.actionButtonVariant?o.cancelButtonSpecs.actionButtonVariant:"contained",startIcon:o?.cancelButtonSpecs?.icon?e(ae,{icon:o.cancelButtonSpecs.icon}):null,color:o?.cancelButtonSpecs?.actionButtonColor?o.cancelButtonSpecs.actionButtonColor:"error",sx:{m:1},onClick:()=>{o?.formCloseCallBk&&o.formCloseCallBk(),p.reset({})},children:o?.cancelButtonSpecs?.label||"cancel"})]})]})};let hr=-1;const Pr=e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):{}}catch(e){return console.error("Failed to load grid state",e),{}}},Sr=(e,t)=>{const i=Pr(e);localStorage.setItem(e,JSON.stringify({...i,...t}))},br=["__check__","actions"],gr=o=>{const{t:a}=_e(),n=Oi(o.formElements),d=[],l=$.useMemo((()=>o?.gridStateKey?Pr(o.gridStateKey):{}),[]);for(const e of n)!0===e?.gridProps?.hidden&&d.push(e.fieldName);let s={};if(l?.columnVisibilityModel){s=l.columnVisibilityModel;const e=Object.keys(s);for(const t of d)e.includes(t)||(s[t]=!1)}else for(const e of d)s[e]=!1;const p=r((e=>e.AppLayout.appDirection)),[_,E]=$.useState(s),[T,c]=$.useState(l.columnOrder||[]),[I,m]=$.useState(l.columnWidths||{}),[f,N]=j(l.columnGroupingModel||[]);let R=l?.pinnedColumns?.left||[];R=R.filter((e=>!br.includes(e)));let L=l?.pinnedColumns?.right||[]||[];L=L.filter((e=>!br.includes(e)));const[y,D]=j({left:[..."ltr"===p?br:[],...R],right:[..."rtl"===p?br:[],...L]}),C=Yt(),U=Se(),[M,h]=j(null),[S,g]=j(null),[v,B]=j({}),[q,K]=j({ids:new Set,type:"include"});let V="id";o?.keyColumnName&&(V=o?.keyColumnName);const H=o.setData,Q=nt.object(Ii(n)),Z=((t,i,o)=>{const r=[];for(const n of t)if("text"===n?.fieldType||"number"===n?.fieldType){const e={...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,type:"number"==n?.fieldType?"number":"string",field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,flex:1,minWidth:200};r.push(e)}else if("date"===n?.fieldType){const t=(a={...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,flex:1,minWidth:200},{...a,type:"string",renderEditCell:t=>e(li,{sx:{width:"100%"},label:"",value:t.value,onChangeCallBack:e=>{t.api.setEditCellValue({id:t.id,field:t.field,value:e})}}),valueParser:(e,t,i)=>{let o=null;return null!==e&&(o=et(e).format(ni)),o},valueFormatter:(e,t,i)=>t[i.field]});r.push(t)}else if("datetime"===n?.fieldType){const e=Ei({...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,flex:1,minWidth:200});r.push(e)}else if("checkbox"===n?.fieldType){const e=Ai({...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,checkedValue:n?.checkedValue,unCheckedValue:n?.unCheckedValue,width:150});r.push(e)}else if("combobox"===n?.fieldType){const e=Ti({...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,valueField:n?.optionValueField||"value",displayField:n?.optionDisplayField||"display",options:n?.options||[],flex:1,minWidth:200});r.push(e)}var a;return r})(n,"row"===o?.editMode?.editMode||!1,a);let z=!0;o?.editAction?.authority&&(z=C.isUserAuthorized(o.editAction.authority));let J=!0;o?.deleteAction?.authority&&(J=C.isUserAuthorized(o.deleteAction.authority));const{ConfirmationWindow:ee,setOpen:te}=ri({title:"Confirmation",body:"Are you sure you want to delete this record ?",onConfirmationCallBk:async()=>{let e=!0;M&&!0===M?.isNew||(e=await o.apiActions.deleteRecordById(M[V])),e&&(o?.deleteAction?.postActionCallBack&&await o.deleteAction.postActionCallBack(M),H((e=>e.filter((e=>e[V]!=M[V])))))}});let ie,oe,re,de,le,se;"modal"===o?.editMode?.editMode&&(ie=o?.editMode?.specs?.modalHeight||"fit-content",oe=o?.editMode?.specs?.modalWidth||"300",re=o?.editMode?.specs?.modalMinHeight,de=o?.editMode?.specs?.modalMinWidth,le=o?.editMode?.specs?.modalIcon||"window",se=o?.editMode?.specs?.modalTitle||"Record Form");const{Window:pe,setWindowState:Ee}=(i=>{const[o,r]=j(!1);return{windowState:o,setWindowState:r,Window:a=>e(x,{open:o,sx:{zIndex:e=>e.zIndex.drawer},onClose:()=>{!o&&i?.onCloseCallBack&&i.onCloseCallBack()},children:t(u,{sx:{position:"absolute",top:"50%",left:"50%",maxHeight:"90%",transform:"translate(-50%, -50%)",height:i?.height||"80%",width:i?.width||"90%",minWidth:i.minWidth||400,minHeight:i.minHeight||200,overflow:"hidden",bgcolor:"modalBackground.main",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"},children:[e(W,{position:"static",children:t(w,{variant:"dense",children:[e(ae,{icon:i?.windowIcon||"window-maximize",style:{marginRight:5}}),e(O,{variant:"h6",color:"inherit",component:"div",children:i?.windowTitle||"window"}),e("div",{style:{flexGrow:1}}),e(A,{onClick:()=>{r(!1),null!=i.onCloseCallBack&&null!=i.onCloseCallBack&&i.onCloseCallBack()},color:"secondary",children:e(ae,{icon:"xmark-square"})})]})}),e(F,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%",padding:1,overflow:"hidden"},children:a?.children})]})})}})({height:ie,minHeight:re,minWidth:de,onCloseCallBack:()=>{o.apiActions.reloadData(o?.gridLoadParametersValues)},width:oe,windowIcon:le,windowTitle:se}),Te={type:"actions",field:"actions",headerName:"",headerAlign:"center",width:(o?.rowActions?30*o.rowActions.length:0)+(o?.editAction&&o?.editAction?.isEnabled?30:0)+(o?.deleteAction&&o?.deleteAction?.isEnabled?30:0),getActions:t=>{const i=t.row,r=[];if("none"!=o?.editMode?.editMode&&(void 0===o?.disableDefaultAction||!o.disableDefaultAction)){const t=v[i[V]]?.mode===Je.Edit;if("row"===o.editMode.editMode&&t)z&&(r.push(e($e,{icon:e(ae,{icon:"save"}),label:a("SAVE_BTN_LABEL"),onClick:()=>{(e=>{const t=e[V];B({...v,[t]:{mode:Je.View}})})(i)}})),r.push(e($e,{icon:e(ae,{icon:"cancel"}),label:a("CANCEL_BTN_LABEL"),onClick:()=>{(e=>{const t=e[V];t&&Ri(t)&&t<0?(B({...v,[t]:{mode:Je.View,ignoreModifications:!0}}),H((e=>{const i=e.filter((e=>e[V]!=t));return i}))):B({...v,[t]:{mode:Je.View,ignoreModifications:!0}})})(i)},color:"inherit"})));else{if(o?.editAction&&!0===o?.editAction?.isEnabled){let t=!0;o?.editAction?.isActionVisibleForRecord&&(t=o?.editAction?.isActionVisibleForRecord(i));let n=!1;o?.editAction?.isActionDisabledForRecord&&(n=o?.editAction?.isActionDisabledForRecord(i)),z&&t&&r.push(e($e,{disabled:n,icon:e(P,{title:a("EDIT_BTN_LABEL"),children:e(ae,{icon:"edit",style:{color:n?"gray":void 0}})}),showInMenu:o?.editAction?.gridActionProps?.showInMenu||!1,label:a("EDIT_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{z&&!n&&(async e=>{if(e)if(g(e),"form"===o.editMode.editMode)U(o.editMode.specs.formRoute+"/"+e[V]);else if("modal"===o.editMode.editMode)Ee(!0);else if("row"===o?.editMode?.editMode){const t=e[V];B({...v,[t]:{mode:Je.Edit}})}})(i)}}))}if(o?.deleteAction&&!0===o?.deleteAction?.isEnabled){let t=!0;o?.deleteAction?.isActionVisibleForRecord&&(t=o?.deleteAction?.isActionVisibleForRecord(i));let n=!1;o?.deleteAction?.isActionDisabledForRecord&&(n=o?.deleteAction?.isActionDisabledForRecord(i)),J&&t&&r.push(e($e,{disabled:n,icon:e(P,{title:a("DELETE_BTN_LABEL"),children:e(ae,{icon:"trash",style:{color:n?"gray":void 0}})}),showInMenu:o?.deleteAction?.gridActionProps?.showInMenu||!1,label:a("DELETE_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{if(J&&!n){if(o?.deleteAction?.preActionValidation&&!o.deleteAction.preActionValidation(i))return;h(i),te(!0)}}}))}}}if(o?.rowActions)for(const t of o.rowActions)t?.gridActionProps?.multiRecord&&!0===t?.gridActionProps?.multiRecord||r.push(e(Li,{...t,record:i,reloadData:async()=>{o.apiActions.reloadData(o?.gridLoadParametersValues)}}));return r}};let Ae=[];(void 0===o?.disableDefaultAction||!o.disableDefaultAction||o?.rowActions&&o?.rowActions.length>0)&&Ae.push(Te),Ae=[...Ae,...Z];X((()=>{void 0!==o?.autoLoad&&!0!==o.autoLoad||o.apiActions.reloadData(o?.gridLoadParametersValues)}),[]);const ce=$.useMemo((()=>{const e=Ae.map((e=>({...e,width:I[e.field]||e.width})));if(T.length){const t=new Map(e.map((e=>[e.field,e])));return T.map((e=>t.get(e))).filter(Boolean)}return e}),[T,I,Ae]);return t(i,{children:[e(ee,{}),"modal"===o?.editMode?.editMode?e(pe,{children:o?.editMode?.specs?.formComponent?e(o.editMode.specs.formComponent,{recordIdToEdit:S?S[V]:void 0,formCloseCallBk:()=>{Ee(!1),o.apiActions.reloadData(o?.gridLoadParametersValues)}}):e(Mr,{recordIdToEdit:S?S[V]:void 0,formCloseCallBk:()=>{Ee(!1),o.apiActions.reloadData(o?.gridLoadParametersValues)},elements:o.formElements,apiActions:o.apiActions,editAuthorityKey:o?.editAction?.authority,formSavedSuccessfullyCallBk:o?.editAction?.postActionCallBack,preSaveValidation:o?.editAction?.preActionValidation,actions:o?.rowActions})}):e(i,{}),void 0!==o?.hideInfoBar||o?.hideInfoBar?e(i,{}):t(u,{sx:{display:"flex"},children:[void 0!==o?.hideBackButton||o?.hideBackButton?e(i,{}):e(A,{onClick:()=>{U("-1",{replace:!0})},children:e(ae,{icon:"arrow-left"})}),t(u,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:[o?.girdIcon?e(ae,{icon:o.girdIcon,style:{marginRight:5,marginLeft:5}}):e(i,{}),e(O,{variant:"h5",children:o?.gridTitle?(Oe=a(o?.gridTitle),Oe?Oe.charAt(0).toUpperCase()+Oe.slice(1):""):""})]})]}),o?.gridLoadParameters&&o?.gridLoadParametersValues&&o?.setGridLoadParametersValues?t(G,{defaultExpanded:!0,children:[e(k,{expandIcon:e(je,{}),children:t(u,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[e(ae,{style:{marginLeft:5,marginRight:5},icon:"search"}),e(O,{component:"span",children:"Filters"})]})}),e(Y,{children:e(u,{children:e(Mr,{saveButtonSpecs:{label:a("SEARCH_BTN_LABEL"),icon:"search",actionButtonVariant:"outlined",actionButtonColor:"success"},cancelButtonSpecs:{label:a("RESET_BTN_LABEL"),icon:"eraser",actionButtonVariant:"outlined",actionButtonColor:"error"},apiActions:{deleteRecordById:async()=>!0,saveRecord:async e=>{null!=e?o.setGridLoadParametersValues(e):o.setGridLoadParametersValues({}),o.apiActions.reloadData(e)},reloadData:async()=>{},loadRecordById:async()=>{}},elements:o.gridLoadParameters})})})]}):e(i,{}),e(Xe,{...o?.muiProps,slots:{toolbar:Ni},slotProps:{toolbar:{templateProps:{...o,rowSelectionModel:q,data:o?.data},handleCreateNewRecord:()=>{if("form"===o?.editMode?.editMode)U(o.editMode.specs.formRoute);else if("modal"===o?.editMode?.editMode)Ee(!0);else if("row"===o?.editMode?.editMode){hr-=1;const e={};e[V]=hr,e.isNew=!0;for(const t of Z)"actions"!=t?.type&&t?.field!=V&&t?.field&&(e[t.field]=null);H((t=>[e,...t])),B((e=>({...e,[hr]:{mode:Je.Edit}})))}},clearGridState:()=>{o?.gridStateKey&&localStorage.removeItem(o.gridStateKey),E({}),c([]),m({}),N([]),D({left:[..."ltr"===p?br:[]],right:[..."rtl"===p?br:[]]})}}},getRowId:e=>e[V],showToolbar:!0,rows:o?.data,columns:ce,checkboxSelection:!0,editMode:"row",rowModesModel:"row"==o.editMode.editMode?v:void 0,onRowModesModelChange:"row"==o.editMode.editMode?e=>{B(e)}:void 0,rowGroupingColumnMode:"multiple",processRowUpdate:async r=>{if("row"===o.editMode.editMode){let a=null;const n=(e=>{try{Q.parse(e)}catch(e){console.log("validateRecord err",e);let t=null;return t=e instanceof nt.ZodError?e.errors.map((e=>"Error in field ("+e.path+") : "+e.message)).join(","):"invalid record data",t}})(r);if(n){const o=n.split(",");throw ne.error(e("div",{style:{},children:o.map((o=>t(i,{children:[e("div",{children:o}),e(b,{})]})))})),new Error(n)}if(o?.editAction?.preActionValidation&&!o.editAction.preActionValidation(r))throw new Error("error on the configured presave validation");const d={...r};if(r[V]&&Ri(r[V])&&Number(r[V])<0&&(d[V]=null),a=await o.apiActions.saveRecord(d),null==a)throw new Error("Failed to process your request, contact your administrator");return o?.editAction?.postActionCallBack&&await o.editAction.postActionCallBack(r),!0===r?.isNew&&H((e=>{const t=e.filter((e=>e[V]!==r[V]));return[a,...t]})),!0===o?.editMode?.reloadAfterSave&&o?.apiActions?.reloadData&&o?.apiActions?.reloadData(o?.gridLoadParametersValues),a}},rowSelectionModel:q,onRowSelectionModelChange:e=>{K(e)},columnVisibilityModel:_,onColumnVisibilityModelChange:e=>{E(e),o?.gridStateKey&&Sr(o.gridStateKey,{columnVisibilityModel:e})},onColumnOrderChange:e=>{const{column:t,targetIndex:i}=e;c((e=>{const r=e.length?[...e]:Ae.map((e=>e.field)),a=r.indexOf(t.field);return-1===a||(r.splice(a,1),r.splice(i,0,t.field),o?.gridStateKey&&Sr(o.gridStateKey,{columnOrder:r})),r}))},onColumnWidthChange:e=>{const t={...I,[e.colDef.field]:e.width};m(t),o?.gridStateKey&&Sr(o.gridStateKey,{columnWidths:t})},rowGroupingModel:f,onRowGroupingModelChange:e=>{(e=>{N(e),o?.gridStateKey&&Sr(o.gridStateKey,{columnGroupingModel:e})})(e)},pinnedColumns:y,onPinnedColumnsChange:e=>{let t=e?.left||[];t=t.filter((e=>!br.includes(e)));let i=e?.right||[];i=i.filter((e=>!br.includes(e)));const r={left:[..."ltr"===p?br:[],...t],right:[..."rtl"===p?br:[],...i]};D(r),o?.gridStateKey&&Sr(o.gridStateKey,{pinnedColumns:r})}})]});var Oe},vr=e=>{const t=r((e=>e.commonStores)),i=o(),a=Yt(),{handleGetRequest:n,handlePostRequest:d,handleDeleteRequest:l}=gt();return{reloadData:async o=>{if(e?.commonStoreKey){const o=Object.keys(t);for(const r of o)if(r===e.commonStoreKey&&(void 0===t[r]?.authority||null===t[r]?.authority||a.isUserAuthorized(t[r]?.authority))&&""!=t[r]?.url){await n({endPointURI:t[r].url,showMask:!1,successCallBkFn:t=>{i(yt({storeKey:r,data:t.data})),e.setData(t.data)},failureCallBkFn:()=>{i(yt({storeKey:r,data:[]})),e.setData([])}});break}}else e?.findAll&&await n({endPointURI:e.findAll,showMask:!0,parameters:o||{},successCallBkFn:t=>{e.setData(t.data)}})},loadRecordById:async t=>{let i=null;if(e?.findById){const o={};o[e?.findByIdParamName||"id"]=t,await n({endPointURI:e.findById,showMask:!0,parameters:o,successCallBkFn:e=>{i=e.data}})}return i},saveRecord:async t=>{let i=null;return e?.save&&await d({endPointURI:e.save,data:t,showMask:!0,successCallBkFn:e=>{i=e.data}}),i},deleteRecordById:async t=>{let i=!0;if(e?.deleteById){const o={};o[e?.deleteByIdParamName||"id"]=t,await l({endPointURI:e.deleteById,showMask:!0,parameters:o,successCallBkFn:()=>{i=!0},failureCallBkFn:()=>{i=!1}})}return i}}},Br=[{path:"/",component:()=>t(u,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,fontSize:24,fontWeight:"bold"},children:[e("img",{src:"logo.png",style:{margin:5}}),e("div",{children:"Welcome to Ezzsteel Flat Product Management System"}),t("div",{style:{fontSize:16},children:["Use side menu [",e(ae,{icon:"bars",style:{marginLeft:10,marginRight:10}}),"] to navigate to your authorized system modules"]})]})},...[...[{path:"admin/attachments",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/attachment/all",deleteById:"api/v1/admin/attachment",save:"api/v1/admin/attachment",findById:"api/v1/admin/attachment",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_ATTACHMENT_NUMBER",fieldName:"attachmentNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_ATTACHMENT_SIZE",fieldName:"attachmentSize",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_ATTACHMENT_TYPE",fieldName:"attachmentType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_CATEGORY",fieldName:"category",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_DOC_TYPE",fieldName:"docType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_FILE_NAME",fieldName:"fileName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_REF_KEY",fieldName:"refKey",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_REMARK",fieldName:"remark",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ATTACHMENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ATTACHMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"ATTACHMENT_DELETE"}})},authority:"ATTACHMENT_VIEW"},{path:"admin/authorities",component:()=>{const[t,i]=j([]),o=vr({commonStoreKey:"SystemAuthorities",deleteById:"api/v1/admin/authority",save:"api/v1/admin/authority",findById:"api/v1/admin/authority",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_AUTHORITY_CODE",fieldName:"authorityCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_AUTHORITY_DESCRIPTION",fieldName:"authorityDescription",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_AUTHORITY_NAME",fieldName:"authorityName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_ORGANIZATION_APPLICATION_ID",fieldName:"organizationApplicationId",required:!1,fieldType:"text",gridProps:{hidden:!0}}}],keyColumnName:"id",gridTitle:"AUTHORITY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"AUTHORITY_EDIT"},deleteAction:{isEnabled:!0,authority:"AUTHORITY_DELETE"}})},authority:"AUTHORITY_VIEW"},{path:"admin/blueprints",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/blueprint/all",deleteById:"api/v1/admin/blueprint",save:"api/v1/admin/blueprint",findById:"api/v1/admin/blueprint",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_BLUE_PRINT_CODE",fieldName:"bluePrintCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_QUERY_ID",fieldName:"queryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"BLUE_PRINT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_DELETE"}})},authority:"BLUE_PRINT_VIEW"},{path:"admin/blueprintpages",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/blueprintpage/all",deleteById:"api/v1/admin/blueprintpage",save:"api/v1/admin/blueprintpage",findById:"api/v1/admin/blueprintpage",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_BLUE_PRINT_ID",fieldName:"bluePrintId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_PAGE_NAME",fieldName:"pageName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_PAGE_ORDER",fieldName:"pageOrder",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_QUERY_ID",fieldName:"queryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"BLUE_PRINT_PAGE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_PAGE_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_PAGE_DELETE"}})},authority:"BLUE_PRINT_PAGE_VIEW"},{path:"admin/blueprintpoints",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/blueprintpoint/all",deleteById:"api/v1/admin/blueprintpoint",save:"api/v1/admin/blueprintpoint",findById:"api/v1/admin/blueprintpoint",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_BLUE_PRINT_PAGE_ID",fieldName:"bluePrintPageId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_FONT_SIZE",fieldName:"fontSize",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_POINT_CODE",fieldName:"pointCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_X",fieldName:"x",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_Y",fieldName:"y",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"BLUE_PRINT_POINT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_POINT_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_POINT_DELETE"}})},authority:"BLUE_PRINT_POINT_VIEW"},{path:"admin/dashboards",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/dashboard/all",deleteById:"api/v1/admin/dashboard",save:"api/v1/admin/dashboard",findById:"api/v1/admin/dashboard",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_CODE",fieldName:"dashboardCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_NAME",fieldName:"dashboardName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_TITLE",fieldName:"dashboardTitle",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_LOAD_WIDGETS_INDIVIDUALLY",fieldName:"loadWidgetsIndividually",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_NUMBER_OF_COLUMNS",fieldName:"numberOfColumns",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"DASHBOARD_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DASHBOARD_EDIT"},deleteAction:{isEnabled:!0,authority:"DASHBOARD_DELETE"}})},authority:"DASHBOARD_VIEW"},{path:"admin/dashboardwidgets",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/dashboardwidget/all",deleteById:"api/v1/admin/dashboardwidget",save:"api/v1/admin/dashboardwidget",findById:"api/v1/admin/dashboardwidget",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_DASHBOARD_ID",fieldName:"dashboardId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ID",fieldName:"widgetId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ORDER",fieldName:"widgetOrder",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"DASHBOARD_WIDGET_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_EDIT"},deleteAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_DELETE"}})},authority:"DASHBOARD_WIDGET_VIEW"},{path:"admin/dataqueries",component:()=>{const[t,i]=j([]),o=vr({commonStoreKey:"SystemDataQueries",deleteById:"api/v1/admin/dataquery",save:"api/v1/admin/dataquery",findById:"api/v1/admin/dataquery",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_DATASOURCE_CON_ID",fieldName:"datasourceConId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_NAME",fieldName:"queryName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_STR",fieldName:"queryStr",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_USE_SYS_CON",fieldName:"useSysCon",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"DATA_QUERY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_EDIT"},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_DELETE"}})},authority:"DATA_QUERY_VIEW"},{path:"admin/dataqueryparameters",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/dataqueryparameter/all",deleteById:"api/v1/admin/dataqueryparameter",save:"api/v1/admin/dataqueryparameter",findById:"api/v1/admin/dataqueryparameter",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DATA_QUERY_ID",fieldName:"dataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DEFAULT_VALUE",fieldName:"defaultValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_HIDDEN",fieldName:"hidden",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_MANDATORY",fieldName:"mandatory",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"DATA_QUERY_PARAMETER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_DELETE"}})},authority:"DATA_QUERY_PARAMETER_VIEW"},{path:"admin/datasourceconnections",component:()=>{const[t,i]=j([]),o=vr({commonStoreKey:"SystemDataSources",deleteById:"api/v1/admin/datasourceconnection",save:"api/v1/admin/datasourceconnection",findById:"api/v1/admin/datasourceconnection",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_CONNECTION_NAME",fieldName:"connectionName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_PASSWORD",fieldName:"datasourcePassword",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_TYPE",fieldName:"datasourceType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_URL",fieldName:"datasourceUrl",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_USERNAME",fieldName:"datasourceUsername",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"DATASOURCE_CONNECTION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_EDIT"},deleteAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_DELETE"}})},authority:"DATASOURCE_CONNECTION_VIEW"},{path:"admin/employees",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/employee/all",deleteById:"api/v1/admin/employee",save:"api/v1/admin/employee",findById:"api/v1/admin/employee",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_EMAIL",fieldName:"email",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_EMPLOYEE_NAME",fieldName:"employeeName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_EMPLOYEE_NUMBER",fieldName:"employeeNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_MOBILE_NUMBER",fieldName:"mobileNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_ORGANIZATION_RANK_ID",fieldName:"organizationRankId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_ORGANIZATION_UNIT_ID",fieldName:"organizationUnitId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_USER_ACCOUNT_ID",fieldName:"userAccountId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"EMPLOYEE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"EMPLOYEE_EDIT"},deleteAction:{isEnabled:!0,authority:"EMPLOYEE_DELETE"}})},authority:"EMPLOYEE_VIEW"},{path:"admin/entityparameters",component:()=>{const[t,i]=j([]),o=vr({commonStoreKey:"SystemEntityParameters",deleteById:"api/v1/admin/entityparameter",save:"api/v1/admin/entityparameter",findById:"api/v1/admin/entityparameter",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_CODE",fieldName:"parameterCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID",fieldName:"parameterDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATASET",fieldName:"parameterDataset",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD",fieldName:"parameterDisplayField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_LABEL",fieldName:"parameterLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_TYPE",fieldName:"parameterType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FIELD",fieldName:"parameterValueField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT",fieldName:"parameterValueFormat",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ENTITY_PARAMETER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_DELETE"}})},authority:"ENTITY_PARAMETER_VIEW"},{path:"admin/exceluploaderdetails",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/exceluploaderdetail/all",deleteById:"api/v1/admin/exceluploaderdetail",save:"api/v1/admin/exceluploaderdetail",findById:"api/v1/admin/exceluploaderdetail",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_COLUMN_INDEX",fieldName:"columnIndex",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID",fieldName:"excelUploaderHeaderId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID",fieldName:"lookupQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_TABLE_FIELD",fieldName:"tableField",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"EXCEL_UPLOADER_DETAIL_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_DETAIL_EDIT"},deleteAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_DETAIL_DELETE"}})},authority:"EXCEL_UPLOADER_DETAIL_VIEW"},{path:"admin/exceluploaderheaders",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/exceluploaderheader/all",deleteById:"api/v1/admin/exceluploaderheader",save:"api/v1/admin/exceluploaderheader",findById:"api/v1/admin/exceluploaderheader",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID",fieldName:"uploaderConnectionId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME",fieldName:"uploaderDatabaseName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_NAME",fieldName:"uploaderName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME",fieldName:"uploaderTableName",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"EXCEL_UPLOADER_HEADER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_HEADER_EDIT"},deleteAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_HEADER_DELETE"}})},authority:"EXCEL_UPLOADER_HEADER_VIEW"},{path:"admin/lookups",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/lookup/all",deleteById:"api/v1/admin/lookup",save:"api/v1/admin/lookup",findById:"api/v1/admin/lookup",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_AR_DISPLAY",fieldName:"lookupArDisplay",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_EN_DISPLAY",fieldName:"lookupEnDisplay",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_TYPE",fieldName:"lookupType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_VALUE",fieldName:"lookupValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_ORG_CODE",fieldName:"orgCode",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"LOOKUP_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"LOOKUP_EDIT"},deleteAction:{isEnabled:!0,authority:"LOOKUP_DELETE"}})},authority:"LOOKUP_VIEW"},{path:"admin/mailattachments",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/mailattachment/all",deleteById:"api/v1/admin/mailattachment",save:"api/v1/admin/mailattachment",findById:"api/v1/admin/mailattachment",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_REPORT_ID",fieldName:"reportId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"MAIL_ATTACHMENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_DELETE"}})},authority:"MAIL_ATTACHMENT_VIEW"},{path:"admin/mailbodies",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/mailbody/all",deleteById:"api/v1/admin/mailbody",save:"api/v1/admin/mailbody",findById:"api/v1/admin/mailbody",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT",fieldName:"bodyContent",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID",fieldName:"bodyContentDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_ORDER",fieldName:"bodyOrder",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_IS_MAIN",fieldName:"isMain",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_PRINT_FOR_EACH_RECORD",fieldName:"printForEachRecord",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"MAIL_BODY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_BODY_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_BODY_DELETE"}})},authority:"MAIL_BODY_VIEW"},{path:"admin/mailnotificationqueues",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/mailnotificationqueue/all",deleteById:"api/v1/admin/mailnotificationqueue",save:"api/v1/admin/mailnotificationqueue",findById:"api/v1/admin/mailnotificationqueue",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID",fieldName:"customMailAttachedReportId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY",fieldName:"customMailBody",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT",fieldName:"customMailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS",fieldName:"customRecipients",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS",fieldName:"mailParameters",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE",fieldName:"notificationMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME",fieldName:"notificationTime",required:!1,fieldType:"datetime"}}],keyColumnName:"id",gridTitle:"MAIL_NOTIFICATION_QUEUE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_DELETE"}})},authority:"MAIL_NOTIFICATION_QUEUE_VIEW"},{path:"admin/mailrecipients",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/mailrecipient/all",deleteById:"api/v1/admin/mailrecipient",save:"api/v1/admin/mailrecipient",findById:"api/v1/admin/mailrecipient",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_MAIL",fieldName:"recipientMail",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_TYPE",fieldName:"recipientType",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"MAIL_RECIPIENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_DELETE"}})},authority:"MAIL_RECIPIENT_VIEW"},{path:"admin/mailtemplates",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/mailtemplate/all",deleteById:"api/v1/admin/mailtemplate",save:"api/v1/admin/mailtemplate",findById:"api/v1/admin/mailtemplate",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID",fieldName:"mailCcDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_SUBJECT",fieldName:"mailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_CODE",fieldName:"mailTemplateCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_NAME",fieldName:"mailTemplateName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID",fieldName:"mailToDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_TYPE",fieldName:"periodType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_VALUE",fieldName:"periodValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIODICAL",fieldName:"periodical",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_START_SENDING_AT",fieldName:"startSendingAt",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID",fieldName:"subjectDataQueryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"MAIL_TEMPLATE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_DELETE"}})},authority:"MAIL_TEMPLATE_VIEW"},{path:"admin/newtables",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/newtable/all",deleteById:"api/v1/admin/newtable",save:"api/v1/admin/newtable",findById:"api/v1/admin/newtable",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"NEW_TABLE_TEST_DATE",fieldName:"testDate",required:!1,fieldType:"date"}},{type:"field",mode:"props",props:{fieldLabel:"NEW_TABLE_TEST_LONG",fieldName:"testLong",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"NEW_TABLE_TEST_DECIMAL",fieldName:"testDecimal",required:!1,fieldType:"number"}}],keyColumnName:"id",gridTitle:"NEW_TABLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"NEW_TABLE_EDIT"},deleteAction:{isEnabled:!0,authority:"NEW_TABLE_DELETE"}})},authority:"NEW_TABLE_VIEW"},{path:"admin/notifications",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/notification/all",deleteById:"api/v1/admin/notification",save:"api/v1/admin/notification",findById:"api/v1/admin/notification",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_ACTION_KEY",fieldName:"notificationActionKey",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD",fieldName:"notificationActionPayload",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_CODE",fieldName:"notificationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_ICON",fieldName:"notificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_QUERY_ID",fieldName:"notificationQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_TEXT",fieldName:"notificationText",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID",fieldName:"usersToNotifyQueryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"NOTIFICATION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"NOTIFICATION_EDIT"},deleteAction:{isEnabled:!0,authority:"NOTIFICATION_DELETE"}})},authority:"NOTIFICATION_VIEW"},{path:"admin/notificationqueues",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/notificationqueue/all",deleteById:"api/v1/admin/notificationqueue",save:"api/v1/admin/notificationqueue",findById:"api/v1/admin/notificationqueue",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY",fieldName:"customNotificationActionKey",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD",fieldName:"customNotificationActionPayload",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON",fieldName:"customNotificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT",fieldName:"customNotificationText",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_NOTIFICATION_CODE",fieldName:"notificationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_NOTIFICATION_PARAMS",fieldName:"notificationParams",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_NOTIFIED_TIME",fieldName:"notifiedTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"NOTIFICATION_QUEUE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"NOTIFICATION_QUEUE_EDIT"},deleteAction:{isEnabled:!0,authority:"NOTIFICATION_QUEUE_DELETE"}})},authority:"NOTIFICATION_QUEUE_VIEW"},{path:"admin/organizations",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/organization/all",deleteById:"api/v1/admin/organization",save:"api/v1/admin/organization",findById:"api/v1/admin/organization",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_CODE",fieldName:"organizationCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_NAME",fieldName:"organizationName",required:!1,fieldType:"text"}}],keyColumnName:"organizationCode",gridTitle:"ORGANIZATION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_DELETE"}})},authority:"ORGANIZATION_VIEW"},{path:"admin/organizationapplications",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/organizationapplication/all",deleteById:"api/v1/admin/organizationapplication",save:"api/v1/admin/organizationapplication",findById:"api/v1/admin/organizationapplication",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_APPLICATION_CODE",fieldName:"applicationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_APPLICATION_DESCRIPTION",fieldName:"applicationDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_APPLICATION_NAME",fieldName:"applicationName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_APPLICATION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_DELETE"}})},authority:"ORGANIZATION_APPLICATION_VIEW"},{path:"admin/organizationranks",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/organizationrank/all",deleteById:"api/v1/admin/organizationrank",save:"api/v1/admin/organizationrank",findById:"api/v1/admin/organizationrank",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_CODE",fieldName:"rankCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_NAME",fieldName:"rankName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_ORDER",fieldName:"rankOrder",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_RANK_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_DELETE"}})},authority:"ORGANIZATION_RANK_VIEW"},{path:"admin/organizationunits",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/organizationunit/all",deleteById:"api/v1/admin/organizationunit",save:"api/v1/admin/organizationunit",findById:"api/v1/admin/organizationunit",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME",fieldName:"organizationUnitArName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME",fieldName:"organizationUnitEnName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID",fieldName:"organizationUnitParentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_UNIT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_DELETE"}})},authority:"ORGANIZATION_UNIT_VIEW"},{path:"admin/organizationusers",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/organizationuser/all",deleteById:"api/v1/admin/organizationuser",save:"api/v1/admin/organizationuser",findById:"api/v1/admin/organizationuser",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_IS_DEFAULT",fieldName:"isDefault",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_USER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_USER_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_USER_DELETE"}})},authority:"ORGANIZATION_USER_VIEW"},{path:"admin/organizationuserroles",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/organizationuserrole/all",deleteById:"api/v1/admin/organizationuserrole",save:"api/v1/admin/organizationuserrole",findById:"api/v1/admin/organizationuserrole",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_END_DATE",fieldName:"endDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_ROLE_ID",fieldName:"roleId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_START_DATE",fieldName:"startDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_USER_ROLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_USER_ROLE_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_USER_ROLE_DELETE"}})},authority:"ORGANIZATION_USER_ROLE_VIEW"},{path:"admin/reports",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/report/all",deleteById:"api/v1/admin/report",save:"api/v1/admin/report",findById:"api/v1/admin/report",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"REPORT_DATASOURCE_CON_ID",fieldName:"datasourceConId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_BLUE_PRINT_ID",fieldName:"reportBluePrintId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CATEGORY",fieldName:"reportCategory",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CODE",fieldName:"reportCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXCEL_DATA_QUERY_ID",fieldName:"reportExcelDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXPORT_NAME",fieldName:"reportExportName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_NAME",fieldName:"reportJasperName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_PATH",fieldName:"reportJasperPath",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_MENU_CODE",fieldName:"reportMenuCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_NAME",fieldName:"reportName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_TYPE",fieldName:"reportType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_USE_SYS_DATASOURCE",fieldName:"useSysDatasource",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"REPORT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"REPORT_EDIT"},deleteAction:{isEnabled:!0,authority:"REPORT_DELETE"}})},authority:"REPORT_VIEW"},{path:"admin/reportparameters",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/reportparameter/all",deleteById:"api/v1/admin/reportparameter",save:"api/v1/admin/reportparameter",findById:"api/v1/admin/reportparameter",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_DEFAULT_VALUE",fieldName:"defaultValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_HIDDEN",fieldName:"hidden",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_MANDATORY",fieldName:"mandatory",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_REPORT_ID",fieldName:"reportId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"REPORT_PARAMETER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"REPORT_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"REPORT_PARAMETER_DELETE"}})},authority:"REPORT_PARAMETER_VIEW"},{path:"admin/roles",component:()=>{const[t,i]=j([]),o=vr({commonStoreKey:"SystemRoles",deleteById:"api/v1/admin/role",save:"api/v1/admin/role",findById:"api/v1/admin/role",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ROLE_ROLE_NAME",fieldName:"roleName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_DESCRIPTION",fieldName:"description",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_ORGANIZATION_APPLICATION_ID",fieldName:"organizationApplicationId",required:!1,fieldType:"text",gridProps:{hidden:!0}}}],keyColumnName:"id",gridTitle:"ROLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ROLE_EDIT"},deleteAction:{isEnabled:!0,authority:"ROLE_DELETE"}})},authority:"ROLE_VIEW"},{path:"admin/roleauthorities",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/roleauthority/all",deleteById:"api/v1/admin/roleauthority",save:"api/v1/admin/roleauthority",findById:"api/v1/admin/roleauthority",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ROLE_AUTHORITY_AUTHORITY_ID",fieldName:"authorityId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_AUTHORITY_ROLE_ID",fieldName:"roleId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ROLE_AUTHORITY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ROLE_AUTHORITY_EDIT"},deleteAction:{isEnabled:!0,authority:"ROLE_AUTHORITY_DELETE"}})},authority:"ROLE_AUTHORITY_VIEW"},{path:"admin/useraccounts",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/useraccount/all",deleteById:"api/v1/admin/useraccount",save:"api/v1/admin/useraccount",findById:"api/v1/admin/useraccount",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"USER_ACCOUNT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"USER_ACCOUNT_PASSWORD",fieldName:"password",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_ACCOUNT_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"USER_ACCOUNT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"USER_ACCOUNT_EDIT"},deleteAction:{isEnabled:!0,authority:"USER_ACCOUNT_DELETE"}})},authority:"USER_ACCOUNT_VIEW"},{path:"admin/userrequests",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/userrequest/all",deleteById:"api/v1/admin/userrequest",save:"api/v1/admin/userrequest",findById:"api/v1/admin/userrequest",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_MAILS_TO_NOTIFY",fieldName:"mailsToNotify",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFICATION_MESSAGE",fieldName:"notificationMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFICATION_TIME",fieldName:"notificationTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFICATION_TYPE",fieldName:"notificationType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFY_USER",fieldName:"notifyUser",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_REPORT_CODE",fieldName:"reportCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_REPORT_PARAMETERS",fieldName:"reportParameters",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_REQUEST_TYPE",fieldName:"requestType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_STATUS",fieldName:"status",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_STATUS_MESSAGE",fieldName:"statusMessage",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"USER_REQUEST_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"USER_REQUEST_EDIT"},deleteAction:{isEnabled:!0,authority:"USER_REQUEST_DELETE"}})},authority:"USER_REQUEST_VIEW"},{path:"admin/widgets",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/widget/all",deleteById:"api/v1/admin/widget",save:"api/v1/admin/widget",findById:"api/v1/admin/widget",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WIDGET_DATA_QUERY_ID",fieldName:"dataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HEIGHT",fieldName:"height",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HORIZONTAL_AXIS_FIELD",fieldName:"horizontalAxisField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HORIZONTAL_AXIS_LABEL",fieldName:"horizontalAxisLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ICON",fieldName:"icon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_SERIES_KEYS",fieldName:"seriesKeys",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_TITLE",fieldName:"title",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_VERTICAL_AXIS_FIELD",fieldName:"verticalAxisField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_VERTICAL_AXIS_LABEL",fieldName:"verticalAxisLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_DESCRIPTION",fieldName:"widgetDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_NAME",fieldName:"widgetName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_TYPE",fieldName:"widgetType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDTH",fieldName:"width",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WIDGET_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WIDGET_EDIT"},deleteAction:{isEnabled:!0,authority:"WIDGET_DELETE"}})},authority:"WIDGET_VIEW"},{path:"admin/workflowdocuments",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/workflowdocument/all",deleteById:"api/v1/admin/workflowdocument",save:"api/v1/admin/workflowdocument",findById:"api/v1/admin/workflowdocument",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON",fieldName:"appNotificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE",fieldName:"appNotificationStyle",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_VIEW_ROUTE",fieldName:"appViewRoute",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CODE",fieldName:"documentCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CON_ID",fieldName:"documentConId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME",fieldName:"documentDatabaseName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE",fieldName:"documentDatabaseTable",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD",fieldName:"documentIdField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_NAME",fieldName:"documentName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD",fieldName:"documentNumberField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_REPORT_ID",fieldName:"documentReportId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD",fieldName:"documentStatusField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED",fieldName:"mailApprovalAllowed",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ORG_CODE",fieldName:"orgCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_USE_SYSTEM_CON",fieldName:"useSystemCon",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_DELETE"}})},authority:"WORKFLOW_DOCUMENT_VIEW"},{path:"admin/workflowdocumentactions",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/workflowdocumentaction/all",deleteById:"api/v1/admin/workflowdocumentaction",save:"api/v1/admin/workflowdocumentaction",findById:"api/v1/admin/workflowdocumentaction",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE",fieldName:"documentActionCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_NAME",fieldName:"documentActionName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID",fieldName:"nextDocumentStatusId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_POST_ACTION_ENDPOINT",fieldName:"postActionEndpoint",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_PRE_ACTION_ENDPOINT",fieldName:"preActionEndpoint",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT",fieldName:"requireComment",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_ACTION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_DELETE"}})},authority:"WORKFLOW_DOCUMENT_ACTION_VIEW"},{path:"admin/workflowdocumentactionhistories",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/workflowdocumentactionhistory/all",deleteById:"api/v1/admin/workflowdocumentactionhistory",save:"api/v1/admin/workflowdocumentactionhistory",findById:"api/v1/admin/workflowdocumentactionhistory",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_BY",fieldName:"actionBy",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_COMMENT",fieldName:"actionComment",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_METHOD",fieldName:"actionMethod",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_TIME",fieldName:"actionTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_ACTION_ID",fieldName:"documentActionId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_REF_ID",fieldName:"documentRefId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_ACTION_HISTORY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_HISTORY_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_HISTORY_DELETE"}})},authority:"WORKFLOW_DOCUMENT_ACTION_HISTORY_VIEW"},{path:"admin/workflowdocumentactionmails",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/workflowdocumentactionmail/all",deleteById:"api/v1/admin/workflowdocumentactionmail",save:"api/v1/admin/workflowdocumentactionmail",findById:"api/v1/admin/workflowdocumentactionmail",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID",fieldName:"documentActionId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_DELETE"}})},authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_VIEW"},{path:"admin/workflowdocumentmaillogs",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/workflowdocumentmaillog/all",deleteById:"api/v1/admin/workflowdocumentmaillog",save:"api/v1/admin/workflowdocumentmaillog",findById:"api/v1/admin/workflowdocumentmaillog",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID",fieldName:"graphApiMsgId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED",fieldName:"isProcessed",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE",fieldName:"mailActionCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT",fieldName:"mailBodyContent",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM",fieldName:"mailFrom",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT",fieldName:"mailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE",fieldName:"processMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME",fieldName:"processTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID",fieldName:"refDocId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_MAIL_LOG_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_MAIL_LOG_DELETE"}})},authority:"WORKFLOW_DOCUMENT_MAIL_LOG_VIEW"},{path:"admin/workflowdocumentstatuses",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/workflowdocumentstatus/all",deleteById:"api/v1/admin/workflowdocumentstatus",save:"api/v1/admin/workflowdocumentstatus",findById:"api/v1/admin/workflowdocumentstatus",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE",fieldName:"documentStatusCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_NAME",fieldName:"documentStatusName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER",fieldName:"documentStatusOrder",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE",fieldName:"isZeroState",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_NEXT_ACTION_TAKERS_QUERY_ID",fieldName:"nextActionTakersQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_NEXT_ACTIONS_QUERY_ID",fieldName:"nextActionsQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_STATUS_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_DELETE"}})},authority:"WORKFLOW_DOCUMENT_STATUS_VIEW"}]]],xr=()=>{const t=r((e=>e.AppLayout));return e(Q,{value:"ltr"===t.appDirection?oi:ii,children:e(u,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",flex:1,overflow:"hidden",padding:3},children:e(ge,{children:Br.map(((t,i)=>e(ve,{path:t.path,Component:t.component},i)))})})})},Wr=J("div")((({theme:e})=>({width:30,height:6,margin:10,backgroundColor:pt[300],borderRadius:3,top:8,...e.applyStyles("dark",{backgroundColor:pt[900]})})));function wr(i){const{window:a}=i,n=r((e=>e.AppLayout)),d=r((e=>e.AppInfo)),l=o(),s=e=>{l(At.setSideBarState(e))};return e(_t,{container:void 0!==a?()=>a().document.body:void 0,anchor:"bottom",open:n.sideBarOpened,onClose:()=>{s(!1)},onOpen:()=>{s(!0)},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},children:t(u,{sx:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",overflow:"hidden"},children:[e(Wr,{}),e(u,{sx:{flexGrow:1,display:"flex",justifyContent:"center",width:"99%",overflowY:"auto"},children:e(ei,{})}),t(u,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1,width:"100%"},children:[e(O,{sx:{fontSize:12},color:"textDisabled",children:d.appName}),t(O,{sx:{fontSize:12},color:"textDisabled",children:["V.",d.appVersion]})]})]})})}const Fr=()=>{const t=r((e=>e.loadingMask.value));return e(q,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:t.isOpened,children:e(K,{color:"inherit"})})},Gr=()=>{const a=r((e=>e.AppInfo)),[n,d]=j(""),[l,s]=j(""),[p,_]=j(!1),E=r((e=>e.UserSession.value)),T=o(),A=async()=>{if(null==n||""==n)return void ne.error("username is required to proceed");if(null==l||""==l)return void ne.error("password is required to proceed");_(!0);let e=null;try{if(e=await le.post(`${a.apiBaseUrl}/api/auth/login`,{username:n,password:l},{withCredentials:!0}),null!=e.data&&""!==e.data){_(!1);const t={isAuthenticated:!0,authorities:e.data.authorities,userProfile:e.data};T(It.setAuthenticated(t))}}catch(e){_(!1),ne.error(e?.response?.data||"failed to authenticate, contact your administrator")}},c=r((e=>e.UserSession.value)),I=V(Pt);return X((()=>{(async()=>{if(null==c.isAuthenticated)try{let e=await le.get(`${a.apiBaseUrl}/api/auth/userInfo`,{withCredentials:!0});if(null!=e&&null!=e.data){const t={isAuthenticated:!0,authorities:e.data.authorities,userProfile:e.data};T(It.setAuthenticated(t))}else T(It.setUnAuthenticated())}catch(e){T(It.setUnAuthenticated())}})()}),[]),e(Z,{theme:I,children:e(F,{sx:{display:"flex",height:"100vh",width:"100%",borderRadius:0,alignItems:"center",justifyContent:"center"},children:0==E.isAuthenticated?t(u,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[e("img",{src:a?.appLogo,width:150,height:150}),e(O,{sx:{m:1},variant:"h4",color:"textSecondary",children:a?.appName}),t(O,{sx:{paddingRight:1,width:"100%",textAlign:"right",fontSize:10},variant:"caption",color:"textSecondary",children:["V.",a.appVersion]}),e(C,{label:"username",sx:{width:300,m:1},value:n,onChange:e=>{d(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&A()}}),e(C,{label:"password",sx:{width:300,m:1},value:l,type:"password",onChange:e=>{s(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&A()}}),e(y,{loading:p,onClick:A,variant:"contained",color:"primary",sx:{m:1},children:"login"})]}):t(i,{children:[e(K,{sx:{marginRight:1}}),e("div",{children:"You will be redirected shortly ... please wait"})]})})})},kr=J("main",{shouldForwardProp:e=>"open"!==e})((({theme:e,open:t})=>{const i=r((e=>e.AppLayout)),a=o(),{show:n,hide:d}=bt(),l=r((e=>e.commonStores)),s=te(),p=St(),{isUserAuthorized:_}=Yt(),{handleGetRequest:E}=gt();return X((()=>{(async()=>{n("Loading ... please wait");let e=Object.keys(l);for(let t of e)void 0!==l[t]?.authority&&null!==l[t]?.authority&&!_(l[t]?.authority)||""==l[t]?.url||!0!==l[t].autoLoad||await E({endPointURI:l[t].url,showMask:!1,successCallBkFn:e=>{a(yt({storeKey:t,data:e.data}))},failureCallBkFn:()=>{a(yt({storeKey:t,data:[]}))}});d()})()}),[]),{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1,width:!p&&t?"calc(100% - 350px)":"100%",direction:i.appDirection,justifyContent:"flex-start",transition:!0===t?s.transitions.create(["margin","width"],{easing:s.transitions.easing.easeOut,duration:s.transitions.duration.enteringScreen}):s.transitions.create(["margin","width"],{easing:s.transitions.easing.sharp,duration:s.transitions.duration.leavingScreen}),marginLeft:p||"ltr"!==i.appDirection||!0!==t?0:Et+"px",marginRight:p||"rtl"!==i.appDirection||!0!==t?0:Et+"px"}}));function Yr(){const i=r((e=>e.AppLayout)),o=St(),a=r((e=>e.UserSession));return t(Be,{children:[e(de,{draggable:!0,position:"bottom-center"}),e(Fr,{}),!0===a.value.isAuthenticated?t(kr,{open:i.sideBarOpened,children:[e(ie,{}),e(wt,{}),o?null:e(ti,{}),o?e(wr,{}):null,e(Ft,{}),e(xr,{})]}):e(Gr,{})]})}const qr=t=>{const i=o(),a=r((e=>e.AppLayout));let n={...ht};"dark"===a.themeMode&&(n={...Pt});const d=V({direction:a.appDirection,...n});return X((()=>{document.title=t.documentTitle}),[]),X((()=>{i(Ut.setAppInfo(t))}),[t]),e(Z,{theme:d,children:e(Yr,{})})};E.setLicenseKey("c2bd611fa642666253500ab9c8e4f78fTz0xMTE4MjEsRT0xNzc2OTg4Nzk5MDAwLFM9cHJlbWl1bSxMTT1zdWJzY3JpcHRpb24sUFY9aW5pdGlhbCxLVj0y"),l.add(s),l.add(p),l.add(_);const Kr=t=>e(a,{store:Mt,children:e(qr,{...t})});export{Kr as BaseApp};
31
+ function(e,t){const i=st(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const o=`"${e}"`;return 0===t.length?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),i(...t)}:i}("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(cr),d=z.forwardRef((function(t,d){const l=function(e=ur){return Ir(e)}(o),{className:s,component:p="div",..._}=mr(t);return e(n,{as:p,ref:d,className:kt(s,a?a(r):r),theme:i&&l[i]||l,..._})}));return d}({defaultClassName:function(e,t,i="Mui"){const o={};return t.forEach((t=>{o[t]=function(e,t,i="Mui"){const o=Rr[t];return o?`${i}-${o}`:`${Nr.generate(e)}-${t}`}(e,t,i)})),o}("MuiBox",["root"]).root,generateClassName:Nr.generate});"production"!==process.env.NODE_ENV&&(Lr.propTypes={children:eo.node,component:eo.elementType,sx:eo.oneOfType([eo.arrayOf(eo.oneOfType([eo.func,eo.object,eo.bool])),eo.func,eo.object])});const yr=t=>e(C,{...t,slotProps:{inputLabel:{shrink:!0}}}),Dr=t=>{if(t?.fieldInfo){const o=t.fieldInfo,r=t?.formManager||null,a=t?.formActions||null,n=t?.formValues||null,d=t?.fieldInfo?.fieldName||null,l=t?.fieldInfo?.fieldType||null;return o&&r&&n&&d&&l?void 0!==o?.hidden&&o?.hidden||t.hiddenFields.includes(d)?e(i,{}):e(B,{size:o?.formProps?.fieldSize||{lg:12,md:12,sm:12},sx:{padding:1,width:"100%"},children:"text"===l||"number"===l?e(yr,{fullWidth:!0,type:l,disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),hidden:o?.hidden||!1,label:o?.fieldLabel,value:n[d],onChange:e=>{let t=null;var i;""!=e.target.value&&(t="number"!==l||("string"!=typeof(i=e.target.value)||""===i.trim()||isNaN(Number(i)))?e.target.value:Number(e.target.value)),r.setValue(d,t),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(t,r,a)},sx:o?.formProps?.style,error:null!=r.formState.errors[d],helperText:r?.formState?.errors[d]?.message?.toString()}):"date"===o?.fieldType?e(li,{format:o?.dateFormat||ni,sx:o?.formProps?.style||{width:"100%"},disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),label:o?.fieldLabel,onChangeCallBack:e=>{r.setValue(d,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,r,a)},value:n[d],error:null!=r.formState.errors[d],errorMessage:r?.formState?.errors[d]?.message?.toString()}):"datetime"===o?.fieldType?e(si,{format:o?.dateFormat||di,sx:o?.formProps?.style||{width:"100%"},disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),label:o?.fieldLabel,onChangeCallBack:e=>{r.setValue(d,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,r,a)},value:n[d],error:null!=r.formState.errors[d],errorMessage:r?.formState?.errors[d]?.message?.toString()}):"checkbox"===o?.fieldType?e(_i,{label:o?.fieldLabel,onChangeCallBack:e=>{r.setValue(d,e),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(e,r,a)},value:n[d],checkedValue:o?.checkedValue||"true",unCheckedValue:o?.unCheckedValue||"false",disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),sx:o?.formProps?.style}):"combobox"===o?.fieldType?e(pi,{sx:o?.formProps?.style||{width:"100%"},label:o?.fieldLabel,disabled:!(!o?.disabled&&!t.disabledFields.includes(d)),onChangeCallBack:(e,t)=>{let i=null;e&&(i=e+""),r.setValue(d,i),o?.formProps?.onValueChangeCallBack&&o?.formProps?.onValueChangeCallBack(i,r,a,t)},options:o?.options||[],displayField:o?.optionDisplayField||"",valueField:o?.optionValueField||"",value:n[d],errorMessage:r?.formState?.errors[d]?.message?.toString()}):e(i,{children:"Unknown field type"})}):e(i,{})}return e(i,{})},Cr=o=>{const r=Yt(),{ConfirmationWindow:a,setOpen:n}=ri({body:o?.confirmationMessage||"",title:"Confirmation",onConfirmationCallBk:()=>{o?.actionFn(o?.record)}});return null==o?.authority||r.isUserAuthorized(o.authority)?t(i,{children:[e(a,{}),t(y,{variant:o?.formActionProps?.actionButtonVariant,color:o?.formActionProps?.actionButtonColor,onClick:()=>{if(o?.actionFn){if(o?.preActionValidation&&!o.preActionValidation(o.record))return;!0===o?.isConfirmationRequired?n(!0):o?.actionFn(o.record)}},children:[o?.icon?e(ae,{icon:o.icon,style:{marginRight:5,marginLeft:5}}):e(i,{}),e("div",{children:o?.label})]})]}):e(i,{})},Ur=o=>e(i,{children:t(B,{container:!0,sx:o?.style,alignItems:"flex-start",children:[o?.label?e(B,{size:12,sx:{padding:1,fontWeight:"bold",display:"flex"},children:o?.icon?t(i,{children:[e(ae,{icon:o.icon,style:{marginRight:5,marginLeft:5}}),e("div",{children:o.label})]}):e(i,{children:o.label})}):e(i,{}),o?.elements?o.elements.map((t=>"group"===t.type?e(Ur,{...t.props,formManager:o.formManager,formValues:o.formValues,formActions:o.formActions,hiddenFields:o.hiddenFields,disabledFields:o.disabledFields}):"field"===t.type&&"props"===t.mode?e(Dr,{fieldInfo:t.props,formManager:o.formManager,formValues:o.formValues,formActions:o.formActions,hiddenFields:o.hiddenFields,disabledFields:o.disabledFields}):"field"===t.type&&"node"===t.mode?e(B,{size:t?.props?.formProps?.fieldSize||{lg:3,md:6,sm:12},sx:{padding:1,width:"100%"},children:e(t.node,{formManager:o.formManager,formValues:o.formValues,formActions:o.formActions})}):void 0)):null,o?.actions?e(B,{size:{sm:12},sx:{padding:1},children:o.actions.map((t=>e(Cr,{...t,record:o.formValues})))}):e(i,{})]})}),Mr=o=>{const r=Oi(o.elements),[a,n]=j([]),[d,l]=j([]),s=at.object(Ii(r)),p=dt({resolver:lt(s)}),_=p.watch(),E=be(),T=o?.formRouteRecordIdParamName,A={setFieldValue:(e,t)=>{p.setValue(e,t)},hideField:e=>{n((t=>[...t,e]))},showField:e=>{n((t=>t.filter((t=>t!==e))))},disableField:e=>{l((t=>[...t,e]))},enableField:e=>{l((t=>t.filter((t=>t!==e))))}};return X((()=>{(async()=>{let e=null;if(o?.recordIdToEdit?e=o.recordIdToEdit:T&&E[T]&&(e=E[T]),e){const t=await o.apiActions.loadRecordById(e);t&&p.reset({...t})}})()}),[o?.recordIdToEdit]),t(i,{children:[e(Lr,{sx:{display:"flex",flex:1,width:"100%",height:"fit-content",flexDirection:"column",alignItems:"center",overflow:"auto"},children:e(B,{sx:{width:"100%"},container:!0,children:o.elements.map((t=>"group"===t.type?e(Ur,{...t.props,formManager:p,formValues:_,formActions:A,hiddenFields:a,disabledFields:d}):"field"===t.type&&"props"===t.mode?e(Dr,{fieldInfo:t.props,formManager:p,formValues:_,formActions:A,hiddenFields:a,disabledFields:d}):"field"===t.type&&"node"===t.mode?e(B,{size:t?.props?.formProps?.fieldSize||{lg:3,md:6,xs:12},sx:{padding:1,width:"100%"},children:e(t.node,{formManager:p,formValues:_})}):void 0))})}),t(Lr,{sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"flex-start"},children:[o?.actions?o.actions.map((t=>!0===t?.formActionProps?.enabled?e(Cr,{...t,record:_}):e(i,{}))):e(i,{}),e("div",{style:{flex:1}}),e(y,{variant:o?.saveButtonSpecs?.actionButtonVariant?o.saveButtonSpecs.actionButtonVariant:"contained",sx:{m:1},startIcon:o?.saveButtonSpecs?.icon?e(ae,{icon:o.saveButtonSpecs.icon}):null,color:o?.saveButtonSpecs?.actionButtonColor?o.saveButtonSpecs.actionButtonColor:"primary",onClick:p.handleSubmit((e=>{console.log("form values",e),(async e=>{if((!o?.preSaveValidation||o.preSaveValidation(e))&&e){const t=await o.apiActions.saveRecord(e);t&&(p.reset({...t}),o?.formSavedSuccessfullyCallBk&&o.formSavedSuccessfullyCallBk(t),o?.formCloseCallBk&&o.formCloseCallBk())}})(e)}),(e=>{ne.error("Form Data is not valid, make sure you have all field with valid data"),console.log("form validation error",e)})),children:o?.saveButtonSpecs?.label||"save"}),e(y,{variant:o?.cancelButtonSpecs?.actionButtonVariant?o.cancelButtonSpecs.actionButtonVariant:"contained",startIcon:o?.cancelButtonSpecs?.icon?e(ae,{icon:o.cancelButtonSpecs.icon}):null,color:o?.cancelButtonSpecs?.actionButtonColor?o.cancelButtonSpecs.actionButtonColor:"error",sx:{m:1},onClick:()=>{o?.formCloseCallBk&&o.formCloseCallBk(),p.reset({})},children:o?.cancelButtonSpecs?.label||"cancel"})]})]})};let hr=-1;const Pr=e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):{}}catch(e){return console.error("Failed to load grid state",e),{}}},Sr=(e,t)=>{const i=Pr(e);localStorage.setItem(e,JSON.stringify({...i,...t}))},br=["__check__","actions"],gr=o=>{const{t:a}=_e(),n=Oi(o.formElements),d=[],l=$.useMemo((()=>o?.gridStateKey?Pr(o.gridStateKey):{}),[]);for(const e of n)!0===e?.gridProps?.hidden&&d.push(e.fieldName);let s={};if(l?.columnVisibilityModel){s=l.columnVisibilityModel;const e=Object.keys(s);for(const t of d)e.includes(t)||(s[t]=!1)}else for(const e of d)s[e]=!1;const p=r((e=>e.AppLayout.appDirection)),[_,E]=$.useState(s),[T,c]=$.useState(l.columnOrder||[]),[I,m]=$.useState(l.columnWidths||{}),[f,N]=j(l.columnGroupingModel||[]);let R=l?.pinnedColumns?.left||[];R=R.filter((e=>!br.includes(e)));let L=l?.pinnedColumns?.right||[]||[];L=L.filter((e=>!br.includes(e)));const[y,D]=j({left:[..."ltr"===p?br:[],...R],right:[..."rtl"===p?br:[],...L]}),C=Yt(),U=Se(),[M,h]=j(null),[S,g]=j(null),[v,B]=j({}),[q,K]=j({ids:new Set,type:"include"});let V="id";o?.keyColumnName&&(V=o?.keyColumnName);const H=o.setData,Q=nt.object(Ii(n)),Z=((t,i,o)=>{const r=[];for(const n of t)if("text"===n?.fieldType||"number"===n?.fieldType){const e={...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,type:"number"==n?.fieldType?"number":"string",field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,flex:1,minWidth:200};r.push(e)}else if("date"===n?.fieldType){const t=(a={...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,flex:1,minWidth:200},{...a,type:"string",renderEditCell:t=>e(li,{sx:{width:"100%"},label:"",value:t.value,onChangeCallBack:e=>{t.api.setEditCellValue({id:t.id,field:t.field,value:e})}}),valueParser:(e,t,i)=>{let o=null;return null!==e&&(o=et(e).format(ni)),o},valueFormatter:(e,t,i)=>t[i.field]});r.push(t)}else if("datetime"===n?.fieldType){const e=Ei({...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,flex:1,minWidth:200});r.push(e)}else if("checkbox"===n?.fieldType){const e=Ai({...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,checkedValue:n?.checkedValue,unCheckedValue:n?.unCheckedValue,width:150});r.push(e)}else if("combobox"===n?.fieldType){const e=Ti({...n?.gridProps?.muiProps,editable:n?.gridProps?.muiProps?.editable||i,field:n?.fieldName,headerName:o(n?.fieldLabel||n?.fieldName),headerAlign:"center",align:"center",hidden:n?.hidden,searchable:n?.gridProps?.searchable,valueField:n?.optionValueField||"value",displayField:n?.optionDisplayField||"display",options:n?.options||[],flex:1,minWidth:200});r.push(e)}var a;return r})(n,"row"===o?.editMode?.editMode||!1,a);let z=!0;o?.editAction?.authority&&(z=C.isUserAuthorized(o.editAction.authority));let J=!0;o?.deleteAction?.authority&&(J=C.isUserAuthorized(o.deleteAction.authority));const{ConfirmationWindow:ee,setOpen:te}=ri({title:"Confirmation",body:"Are you sure you want to delete this record ?",onConfirmationCallBk:async()=>{let e=!0;M&&!0===M?.isNew||(e=await o.apiActions.deleteRecordById(M[V])),e&&(o?.deleteAction?.postActionCallBack&&await o.deleteAction.postActionCallBack(M),H((e=>e.filter((e=>e[V]!=M[V])))))}});let ie,oe,re,de,le,se;"modal"===o?.editMode?.editMode&&(ie=o?.editMode?.specs?.modalHeight||"fit-content",oe=o?.editMode?.specs?.modalWidth||"300",re=o?.editMode?.specs?.modalMinHeight,de=o?.editMode?.specs?.modalMinWidth,le=o?.editMode?.specs?.modalIcon||"window",se=o?.editMode?.specs?.modalTitle||"Record Form");const{Window:pe,setWindowState:Ee}=(i=>{const[o,r]=j(!1);return{windowState:o,setWindowState:r,Window:a=>e(x,{open:o,sx:{zIndex:e=>e.zIndex.drawer},onClose:()=>{!o&&i?.onCloseCallBack&&i.onCloseCallBack()},children:t(u,{sx:{position:"absolute",top:"50%",left:"50%",maxHeight:"90%",transform:"translate(-50%, -50%)",height:i?.height||"80%",width:i?.width||"90%",minWidth:i.minWidth||400,minHeight:i.minHeight||200,overflow:"hidden",bgcolor:"modalBackground.main",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"},children:[e(W,{position:"static",children:t(w,{variant:"dense",children:[e(ae,{icon:i?.windowIcon||"window-maximize",style:{marginRight:5}}),e(O,{variant:"h6",color:"inherit",component:"div",children:i?.windowTitle||"window"}),e("div",{style:{flexGrow:1}}),e(A,{onClick:()=>{r(!1),null!=i.onCloseCallBack&&null!=i.onCloseCallBack&&i.onCloseCallBack()},color:"secondary",children:e(ae,{icon:"xmark-square"})})]})}),e(F,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%",padding:1,overflow:"hidden"},children:a?.children})]})})}})({height:ie,minHeight:re,minWidth:de,onCloseCallBack:()=>{o.apiActions.reloadData(o?.gridLoadParametersValues)},width:oe,windowIcon:le,windowTitle:se}),Te={type:"actions",field:"actions",headerName:"",headerAlign:"center",width:(o?.rowActions?30*o.rowActions.length:0)+(o?.editAction&&o?.editAction?.isEnabled?30:0)+(o?.deleteAction&&o?.deleteAction?.isEnabled?30:0),getActions:t=>{const i=t.row,r=[];if("none"!=o?.editMode?.editMode&&(void 0===o?.disableDefaultAction||!o.disableDefaultAction)){const t=v[i[V]]?.mode===Je.Edit;if("row"===o.editMode.editMode&&t)z&&(r.push(e($e,{icon:e(ae,{icon:"save"}),label:a("SAVE_BTN_LABEL"),onClick:()=>{(e=>{const t=e[V];B({...v,[t]:{mode:Je.View}})})(i)}})),r.push(e($e,{icon:e(ae,{icon:"cancel"}),label:a("CANCEL_BTN_LABEL"),onClick:()=>{(e=>{const t=e[V];t&&Ri(t)&&t<0?(B({...v,[t]:{mode:Je.View,ignoreModifications:!0}}),H((e=>{const i=e.filter((e=>e[V]!=t));return i}))):B({...v,[t]:{mode:Je.View,ignoreModifications:!0}})})(i)},color:"inherit"})));else{if(o?.editAction&&!0===o?.editAction?.isEnabled){let t=!0;o?.editAction?.isActionVisibleForRecord&&(t=o?.editAction?.isActionVisibleForRecord(i));let n=!1;o?.editAction?.isActionDisabledForRecord&&(n=o?.editAction?.isActionDisabledForRecord(i)),z&&t&&r.push(e($e,{disabled:n,icon:e(P,{title:a("EDIT_BTN_LABEL"),children:e(ae,{icon:"edit",style:{color:n?"gray":void 0}})}),showInMenu:o?.editAction?.gridActionProps?.showInMenu||!1,label:a("EDIT_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{z&&!n&&(async e=>{if(e)if(g(e),"form"===o.editMode.editMode)U(o.editMode.specs.formRoute+"/"+e[V]);else if("modal"===o.editMode.editMode)Ee(!0);else if("row"===o?.editMode?.editMode){const t=e[V];B({...v,[t]:{mode:Je.Edit}})}})(i)}}))}if(o?.deleteAction&&!0===o?.deleteAction?.isEnabled){let t=!0;o?.deleteAction?.isActionVisibleForRecord&&(t=o?.deleteAction?.isActionVisibleForRecord(i));let n=!1;o?.deleteAction?.isActionDisabledForRecord&&(n=o?.deleteAction?.isActionDisabledForRecord(i)),J&&t&&r.push(e($e,{disabled:n,icon:e(P,{title:a("DELETE_BTN_LABEL"),children:e(ae,{icon:"trash",style:{color:n?"gray":void 0}})}),showInMenu:o?.deleteAction?.gridActionProps?.showInMenu||!1,label:a("DELETE_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{if(J&&!n){if(o?.deleteAction?.preActionValidation&&!o.deleteAction.preActionValidation(i))return;h(i),te(!0)}}}))}}}if(o?.rowActions)for(const t of o.rowActions)t?.gridActionProps?.multiRecord&&!0===t?.gridActionProps?.multiRecord||r.push(e(Li,{...t,record:i,reloadData:async()=>{o.apiActions.reloadData(o?.gridLoadParametersValues)}}));return r}};let Ae=[];(void 0===o?.disableDefaultAction||!o.disableDefaultAction||o?.rowActions&&o?.rowActions.length>0)&&Ae.push(Te),Ae=[...Ae,...Z];X((()=>{void 0!==o?.autoLoad&&!0!==o.autoLoad||o.apiActions.reloadData(o?.gridLoadParametersValues)}),[]);const ce=$.useMemo((()=>{const e=Ae.map((e=>({...e,width:I[e.field]||e.width})));if(T.length){const t=new Map(e.map((e=>[e.field,e])));return T.map((e=>t.get(e))).filter(Boolean)}return e}),[T,I,Ae]);return t(i,{children:[e(ee,{}),"modal"===o?.editMode?.editMode?e(pe,{children:o?.editMode?.specs?.formComponent?e(o.editMode.specs.formComponent,{recordIdToEdit:S?S[V]:void 0,formCloseCallBk:()=>{Ee(!1),o.apiActions.reloadData(o?.gridLoadParametersValues)}}):e(Mr,{recordIdToEdit:S?S[V]:void 0,formCloseCallBk:()=>{Ee(!1),o.apiActions.reloadData(o?.gridLoadParametersValues)},elements:o.formElements,apiActions:o.apiActions,editAuthorityKey:o?.editAction?.authority,formSavedSuccessfullyCallBk:o?.editAction?.postActionCallBack,preSaveValidation:o?.editAction?.preActionValidation,actions:o?.rowActions})}):e(i,{}),void 0!==o?.hideInfoBar||o?.hideInfoBar?e(i,{}):t(u,{sx:{display:"flex"},children:[void 0!==o?.hideBackButton||o?.hideBackButton?e(i,{}):e(A,{onClick:()=>{U("-1",{replace:!0})},children:e(ae,{icon:"arrow-left"})}),t(u,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:[o?.girdIcon?e(ae,{icon:o.girdIcon,style:{marginRight:5,marginLeft:5}}):e(i,{}),e(O,{variant:"h5",children:o?.gridTitle?(Oe=a(o?.gridTitle),Oe?Oe.charAt(0).toUpperCase()+Oe.slice(1):""):""})]})]}),o?.gridLoadParameters&&o?.gridLoadParametersValues&&o?.setGridLoadParametersValues?t(G,{defaultExpanded:!0,children:[e(k,{expandIcon:e(je,{}),children:t(u,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[e(ae,{style:{marginLeft:5,marginRight:5},icon:"search"}),e(O,{component:"span",children:"Filters"})]})}),e(Y,{children:e(u,{children:e(Mr,{saveButtonSpecs:{label:a("SEARCH_BTN_LABEL"),icon:"search",actionButtonVariant:"outlined",actionButtonColor:"success"},cancelButtonSpecs:{label:a("RESET_BTN_LABEL"),icon:"eraser",actionButtonVariant:"outlined",actionButtonColor:"error"},apiActions:{deleteRecordById:async()=>!0,saveRecord:async e=>{null!=e?o.setGridLoadParametersValues(e):o.setGridLoadParametersValues({}),o.apiActions.reloadData(e)},reloadData:async()=>{},loadRecordById:async()=>{}},elements:o.gridLoadParameters})})})]}):e(i,{}),e(Xe,{...o?.muiProps,slots:{toolbar:Ni},slotProps:{toolbar:{templateProps:{...o,rowSelectionModel:q,data:o?.data},handleCreateNewRecord:()=>{if("form"===o?.editMode?.editMode)U(o.editMode.specs.formRoute);else if("modal"===o?.editMode?.editMode)Ee(!0);else if("row"===o?.editMode?.editMode){hr-=1;const e={};e[V]=hr,e.isNew=!0;for(const t of Z)"actions"!=t?.type&&t?.field!=V&&t?.field&&(e[t.field]=null);H((t=>[e,...t])),B((e=>({...e,[hr]:{mode:Je.Edit}})))}},clearGridState:()=>{o?.gridStateKey&&localStorage.removeItem(o.gridStateKey),E({}),c([]),m({}),N([]),D({left:[..."ltr"===p?br:[]],right:[..."rtl"===p?br:[]]})}}},getRowId:e=>e[V],showToolbar:!0,rows:o?.data,columns:ce,checkboxSelection:!0,editMode:"row",rowModesModel:"row"==o.editMode.editMode?v:void 0,onRowModesModelChange:"row"==o.editMode.editMode?e=>{B(e)}:void 0,rowGroupingColumnMode:"multiple",processRowUpdate:async r=>{if("row"===o.editMode.editMode){let a=null;const n=(e=>{try{Q.parse(e)}catch(e){console.log("validateRecord err",e);let t=null;return t=e instanceof nt.ZodError?e.errors.map((e=>"Error in field ("+e.path+") : "+e.message)).join(","):"invalid record data",t}})(r);if(n){const o=n.split(",");throw ne.error(e("div",{style:{},children:o.map((o=>t(i,{children:[e("div",{children:o}),e(b,{})]})))})),new Error(n)}if(o?.editAction?.preActionValidation&&!o.editAction.preActionValidation(r))throw new Error("error on the configured presave validation");const d={...r};if(r[V]&&Ri(r[V])&&Number(r[V])<0&&(d[V]=null),a=await o.apiActions.saveRecord(d),null==a)throw new Error("Failed to process your request, contact your administrator");return o?.editAction?.postActionCallBack&&await o.editAction.postActionCallBack(r),!0===r?.isNew&&H((e=>{const t=e.filter((e=>e[V]!==r[V]));return[a,...t]})),!0===o?.editMode?.reloadAfterSave&&o?.apiActions?.reloadData&&o?.apiActions?.reloadData(o?.gridLoadParametersValues),a}},rowSelectionModel:q,onRowSelectionModelChange:e=>{K(e)},columnVisibilityModel:_,onColumnVisibilityModelChange:e=>{E(e),o?.gridStateKey&&Sr(o.gridStateKey,{columnVisibilityModel:e})},onColumnOrderChange:e=>{const{column:t,targetIndex:i}=e;c((e=>{const r=e.length?[...e]:Ae.map((e=>e.field)),a=r.indexOf(t.field);return-1===a||(r.splice(a,1),r.splice(i,0,t.field),o?.gridStateKey&&Sr(o.gridStateKey,{columnOrder:r})),r}))},onColumnWidthChange:e=>{const t={...I,[e.colDef.field]:e.width};m(t),o?.gridStateKey&&Sr(o.gridStateKey,{columnWidths:t})},rowGroupingModel:f,onRowGroupingModelChange:e=>{(e=>{N(e),o?.gridStateKey&&Sr(o.gridStateKey,{columnGroupingModel:e})})(e)},pinnedColumns:y,onPinnedColumnsChange:e=>{let t=e?.left||[];t=t.filter((e=>!br.includes(e)));let i=e?.right||[];i=i.filter((e=>!br.includes(e)));const r={left:[..."ltr"===p?br:[],...t],right:[..."rtl"===p?br:[],...i]};D(r),o?.gridStateKey&&Sr(o.gridStateKey,{pinnedColumns:r})}})]});var Oe},vr=e=>{const t=r((e=>e.commonStores)),i=o(),a=Yt(),{handleGetRequest:n,handlePostRequest:d,handleDeleteRequest:l}=gt();return{reloadData:async o=>{if(e?.commonStoreKey){const o=Object.keys(t);for(const r of o)if(r===e.commonStoreKey&&(void 0===t[r]?.authority||null===t[r]?.authority||a.isUserAuthorized(t[r]?.authority))&&""!=t[r]?.url){await n({endPointURI:t[r].url,showMask:!1,successCallBkFn:t=>{i(yt({storeKey:r,data:t.data})),e.setData(t.data)},failureCallBkFn:()=>{i(yt({storeKey:r,data:[]})),e.setData([])}});break}}else e?.findAll&&await n({endPointURI:e.findAll,showMask:!0,parameters:o||{},successCallBkFn:t=>{e.setData(t.data)}})},loadRecordById:async t=>{let i=null;if(e?.findById){const o={};o[e?.findByIdParamName||"id"]=t,await n({endPointURI:e.findById,showMask:!0,parameters:o,successCallBkFn:e=>{i=e.data}})}return i},saveRecord:async t=>{let i=null;return e?.save&&await d({endPointURI:e.save,data:t,showMask:!0,successCallBkFn:e=>{i=e.data}}),i},deleteRecordById:async t=>{let i=!0;if(e?.deleteById){const o={};o[e?.deleteByIdParamName||"id"]=t,await l({endPointURI:e.deleteById,showMask:!0,parameters:o,successCallBkFn:()=>{i=!0},failureCallBkFn:()=>{i=!1}})}return i}}},Br=[{path:"/",component:()=>t(u,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,fontSize:24,fontWeight:"bold"},children:[e("img",{src:"logo.png",style:{margin:5}}),e("div",{children:"Welcome to Ezzsteel Flat Product Management System"}),t("div",{style:{fontSize:16},children:["Use side menu [",e(ae,{icon:"bars",style:{marginLeft:10,marginRight:10}}),"] to navigate to your authorized system modules"]})]})},...[...[{path:"admin/attachments",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/attachment/all",deleteById:"api/v1/admin/attachment",save:"api/v1/admin/attachment",findById:"api/v1/admin/attachment",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_ATTACHMENT_NUMBER",fieldName:"attachmentNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_ATTACHMENT_SIZE",fieldName:"attachmentSize",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_ATTACHMENT_TYPE",fieldName:"attachmentType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_CATEGORY",fieldName:"category",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_DOC_TYPE",fieldName:"docType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_FILE_NAME",fieldName:"fileName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_REF_KEY",fieldName:"refKey",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ATTACHMENT_REMARK",fieldName:"remark",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ATTACHMENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ATTACHMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"ATTACHMENT_DELETE"}})},authority:"ATTACHMENT_VIEW"},{path:"admin/authorities",component:()=>{const[t,i]=j([]),o=vr({commonStoreKey:"SystemAuthorities",deleteById:"api/v1/admin/authority",save:"api/v1/admin/authority",findById:"api/v1/admin/authority",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_AUTHORITY_CODE",fieldName:"authorityCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_AUTHORITY_DESCRIPTION",fieldName:"authorityDescription",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_AUTHORITY_NAME",fieldName:"authorityName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"AUTHORITY_ORGANIZATION_APPLICATION_ID",fieldName:"organizationApplicationId",required:!1,fieldType:"text",gridProps:{hidden:!0}}}],keyColumnName:"id",gridTitle:"AUTHORITY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"AUTHORITY_EDIT"},deleteAction:{isEnabled:!0,authority:"AUTHORITY_DELETE"}})},authority:"AUTHORITY_VIEW"},{path:"admin/blueprints",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/blueprint/all",deleteById:"api/v1/admin/blueprint",save:"api/v1/admin/blueprint",findById:"api/v1/admin/blueprint",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_BLUE_PRINT_CODE",fieldName:"bluePrintCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_QUERY_ID",fieldName:"queryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"BLUE_PRINT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_DELETE"}})},authority:"BLUE_PRINT_VIEW"},{path:"admin/blueprintpages",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/blueprintpage/all",deleteById:"api/v1/admin/blueprintpage",save:"api/v1/admin/blueprintpage",findById:"api/v1/admin/blueprintpage",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_BLUE_PRINT_ID",fieldName:"bluePrintId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_PAGE_NAME",fieldName:"pageName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_PAGE_ORDER",fieldName:"pageOrder",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_PAGE_QUERY_ID",fieldName:"queryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"BLUE_PRINT_PAGE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_PAGE_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_PAGE_DELETE"}})},authority:"BLUE_PRINT_PAGE_VIEW"},{path:"admin/blueprintpoints",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/blueprintpoint/all",deleteById:"api/v1/admin/blueprintpoint",save:"api/v1/admin/blueprintpoint",findById:"api/v1/admin/blueprintpoint",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_BLUE_PRINT_PAGE_ID",fieldName:"bluePrintPageId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_FONT_SIZE",fieldName:"fontSize",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_POINT_CODE",fieldName:"pointCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_X",fieldName:"x",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_POINT_Y",fieldName:"y",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"BLUE_PRINT_POINT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_POINT_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_POINT_DELETE"}})},authority:"BLUE_PRINT_POINT_VIEW"},{path:"admin/dashboards",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/dashboard/all",deleteById:"api/v1/admin/dashboard",save:"api/v1/admin/dashboard",findById:"api/v1/admin/dashboard",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_CODE",fieldName:"dashboardCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_NAME",fieldName:"dashboardName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_TITLE",fieldName:"dashboardTitle",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_LOAD_WIDGETS_INDIVIDUALLY",fieldName:"loadWidgetsIndividually",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_NUMBER_OF_COLUMNS",fieldName:"numberOfColumns",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"DASHBOARD_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DASHBOARD_EDIT"},deleteAction:{isEnabled:!0,authority:"DASHBOARD_DELETE"}})},authority:"DASHBOARD_VIEW"},{path:"admin/dashboardwidgets",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/dashboardwidget/all",deleteById:"api/v1/admin/dashboardwidget",save:"api/v1/admin/dashboardwidget",findById:"api/v1/admin/dashboardwidget",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_DASHBOARD_ID",fieldName:"dashboardId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ID",fieldName:"widgetId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ORDER",fieldName:"widgetOrder",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"DASHBOARD_WIDGET_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_EDIT"},deleteAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_DELETE"}})},authority:"DASHBOARD_WIDGET_VIEW"},{path:"admin/dataqueries",component:()=>{const[t,i]=j([]),o=vr({commonStoreKey:"SystemDataQueries",deleteById:"api/v1/admin/dataquery",save:"api/v1/admin/dataquery",findById:"api/v1/admin/dataquery",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_DATASOURCE_CON_ID",fieldName:"datasourceConId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_NAME",fieldName:"queryName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_STR",fieldName:"queryStr",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_USE_SYS_CON",fieldName:"useSysCon",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"DATA_QUERY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_EDIT"},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_DELETE"}})},authority:"DATA_QUERY_VIEW"},{path:"admin/dataqueryparameters",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/dataqueryparameter/all",deleteById:"api/v1/admin/dataqueryparameter",save:"api/v1/admin/dataqueryparameter",findById:"api/v1/admin/dataqueryparameter",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DATA_QUERY_ID",fieldName:"dataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DEFAULT_VALUE",fieldName:"defaultValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_HIDDEN",fieldName:"hidden",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_MANDATORY",fieldName:"mandatory",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"DATA_QUERY_PARAMETER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_DELETE"}})},authority:"DATA_QUERY_PARAMETER_VIEW"},{path:"admin/datasourceconnections",component:()=>{const[t,i]=j([]),o=vr({commonStoreKey:"SystemDataSources",deleteById:"api/v1/admin/datasourceconnection",save:"api/v1/admin/datasourceconnection",findById:"api/v1/admin/datasourceconnection",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_CONNECTION_NAME",fieldName:"connectionName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_PASSWORD",fieldName:"datasourcePassword",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_TYPE",fieldName:"datasourceType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_URL",fieldName:"datasourceUrl",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_USERNAME",fieldName:"datasourceUsername",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"DATASOURCE_CONNECTION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_EDIT"},deleteAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_DELETE"}})},authority:"DATASOURCE_CONNECTION_VIEW"},{path:"admin/employees",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/employee/all",deleteById:"api/v1/admin/employee",save:"api/v1/admin/employee",findById:"api/v1/admin/employee",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_EMAIL",fieldName:"email",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_EMPLOYEE_NAME",fieldName:"employeeName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_EMPLOYEE_NUMBER",fieldName:"employeeNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_MOBILE_NUMBER",fieldName:"mobileNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_ORGANIZATION_RANK_ID",fieldName:"organizationRankId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_ORGANIZATION_UNIT_ID",fieldName:"organizationUnitId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EMPLOYEE_USER_ACCOUNT_ID",fieldName:"userAccountId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"EMPLOYEE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"EMPLOYEE_EDIT"},deleteAction:{isEnabled:!0,authority:"EMPLOYEE_DELETE"}})},authority:"EMPLOYEE_VIEW"},{path:"admin/entityparameters",component:()=>{const[t,i]=j([]),o=vr({commonStoreKey:"SystemEntityParameters",deleteById:"api/v1/admin/entityparameter",save:"api/v1/admin/entityparameter",findById:"api/v1/admin/entityparameter",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_CODE",fieldName:"parameterCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID",fieldName:"parameterDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATASET",fieldName:"parameterDataset",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD",fieldName:"parameterDisplayField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_LABEL",fieldName:"parameterLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_TYPE",fieldName:"parameterType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FIELD",fieldName:"parameterValueField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT",fieldName:"parameterValueFormat",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ENTITY_PARAMETER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_DELETE"}})},authority:"ENTITY_PARAMETER_VIEW"},{path:"admin/exceluploaderdetails",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/exceluploaderdetail/all",deleteById:"api/v1/admin/exceluploaderdetail",save:"api/v1/admin/exceluploaderdetail",findById:"api/v1/admin/exceluploaderdetail",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_COLUMN_INDEX",fieldName:"columnIndex",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID",fieldName:"excelUploaderHeaderId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID",fieldName:"lookupQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_DETAIL_TABLE_FIELD",fieldName:"tableField",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"EXCEL_UPLOADER_DETAIL_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_DETAIL_EDIT"},deleteAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_DETAIL_DELETE"}})},authority:"EXCEL_UPLOADER_DETAIL_VIEW"},{path:"admin/exceluploaderheaders",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/exceluploaderheader/all",deleteById:"api/v1/admin/exceluploaderheader",save:"api/v1/admin/exceluploaderheader",findById:"api/v1/admin/exceluploaderheader",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID",fieldName:"uploaderConnectionId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME",fieldName:"uploaderDatabaseName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_NAME",fieldName:"uploaderName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME",fieldName:"uploaderTableName",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"EXCEL_UPLOADER_HEADER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_HEADER_EDIT"},deleteAction:{isEnabled:!0,authority:"EXCEL_UPLOADER_HEADER_DELETE"}})},authority:"EXCEL_UPLOADER_HEADER_VIEW"},{path:"admin/lookups",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/lookup/all",deleteById:"api/v1/admin/lookup",save:"api/v1/admin/lookup",findById:"api/v1/admin/lookup",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_AR_DISPLAY",fieldName:"lookupArDisplay",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_EN_DISPLAY",fieldName:"lookupEnDisplay",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_TYPE",fieldName:"lookupType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_VALUE",fieldName:"lookupValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_ORG_CODE",fieldName:"orgCode",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"LOOKUP_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"LOOKUP_EDIT"},deleteAction:{isEnabled:!0,authority:"LOOKUP_DELETE"}})},authority:"LOOKUP_VIEW"},{path:"admin/mailattachments",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/mailattachment/all",deleteById:"api/v1/admin/mailattachment",save:"api/v1/admin/mailattachment",findById:"api/v1/admin/mailattachment",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_REPORT_ID",fieldName:"reportId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"MAIL_ATTACHMENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_DELETE"}})},authority:"MAIL_ATTACHMENT_VIEW"},{path:"admin/mailbodies",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/mailbody/all",deleteById:"api/v1/admin/mailbody",save:"api/v1/admin/mailbody",findById:"api/v1/admin/mailbody",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT",fieldName:"bodyContent",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID",fieldName:"bodyContentDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_ORDER",fieldName:"bodyOrder",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_IS_MAIN",fieldName:"isMain",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_PRINT_FOR_EACH_RECORD",fieldName:"printForEachRecord",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"MAIL_BODY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_BODY_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_BODY_DELETE"}})},authority:"MAIL_BODY_VIEW"},{path:"admin/mailnotificationqueues",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/mailnotificationqueue/all",deleteById:"api/v1/admin/mailnotificationqueue",save:"api/v1/admin/mailnotificationqueue",findById:"api/v1/admin/mailnotificationqueue",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID",fieldName:"customMailAttachedReportId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY",fieldName:"customMailBody",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT",fieldName:"customMailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS",fieldName:"customRecipients",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS",fieldName:"mailParameters",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE",fieldName:"notificationMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME",fieldName:"notificationTime",required:!1,fieldType:"datetime"}}],keyColumnName:"id",gridTitle:"MAIL_NOTIFICATION_QUEUE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_DELETE"}})},authority:"MAIL_NOTIFICATION_QUEUE_VIEW"},{path:"admin/mailrecipients",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/mailrecipient/all",deleteById:"api/v1/admin/mailrecipient",save:"api/v1/admin/mailrecipient",findById:"api/v1/admin/mailrecipient",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_MAIL",fieldName:"recipientMail",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_TYPE",fieldName:"recipientType",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"MAIL_RECIPIENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_DELETE"}})},authority:"MAIL_RECIPIENT_VIEW"},{path:"admin/mailtemplates",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/mailtemplate/all",deleteById:"api/v1/admin/mailtemplate",save:"api/v1/admin/mailtemplate",findById:"api/v1/admin/mailtemplate",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID",fieldName:"mailCcDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_SUBJECT",fieldName:"mailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_CODE",fieldName:"mailTemplateCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_NAME",fieldName:"mailTemplateName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID",fieldName:"mailToDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_TYPE",fieldName:"periodType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_VALUE",fieldName:"periodValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIODICAL",fieldName:"periodical",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_START_SENDING_AT",fieldName:"startSendingAt",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID",fieldName:"subjectDataQueryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"MAIL_TEMPLATE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_DELETE"}})},authority:"MAIL_TEMPLATE_VIEW"},{path:"admin/newtables",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/newtable/all",deleteById:"api/v1/admin/newtable",save:"api/v1/admin/newtable",findById:"api/v1/admin/newtable",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"NEW_TABLE_TEST_DATE",fieldName:"testDate",required:!1,fieldType:"date"}},{type:"field",mode:"props",props:{fieldLabel:"NEW_TABLE_TEST_LONG",fieldName:"testLong",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"NEW_TABLE_TEST_DECIMAL",fieldName:"testDecimal",required:!1,fieldType:"number"}}],keyColumnName:"id",gridTitle:"NEW_TABLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"NEW_TABLE_EDIT"},deleteAction:{isEnabled:!0,authority:"NEW_TABLE_DELETE"}})},authority:"NEW_TABLE_VIEW"},{path:"admin/notifications",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/notification/all",deleteById:"api/v1/admin/notification",save:"api/v1/admin/notification",findById:"api/v1/admin/notification",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_ACTION_KEY",fieldName:"notificationActionKey",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD",fieldName:"notificationActionPayload",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_CODE",fieldName:"notificationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_ICON",fieldName:"notificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_QUERY_ID",fieldName:"notificationQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_NOTIFICATION_TEXT",fieldName:"notificationText",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID",fieldName:"usersToNotifyQueryId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"NOTIFICATION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"NOTIFICATION_EDIT"},deleteAction:{isEnabled:!0,authority:"NOTIFICATION_DELETE"}})},authority:"NOTIFICATION_VIEW"},{path:"admin/notificationqueues",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/notificationqueue/all",deleteById:"api/v1/admin/notificationqueue",save:"api/v1/admin/notificationqueue",findById:"api/v1/admin/notificationqueue",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY",fieldName:"customNotificationActionKey",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD",fieldName:"customNotificationActionPayload",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON",fieldName:"customNotificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT",fieldName:"customNotificationText",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_NOTIFICATION_CODE",fieldName:"notificationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_NOTIFICATION_PARAMS",fieldName:"notificationParams",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_NOTIFIED_TIME",fieldName:"notifiedTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"NOTIFICATION_QUEUE_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"NOTIFICATION_QUEUE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"NOTIFICATION_QUEUE_EDIT"},deleteAction:{isEnabled:!0,authority:"NOTIFICATION_QUEUE_DELETE"}})},authority:"NOTIFICATION_QUEUE_VIEW"},{path:"admin/organizations",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/organization/all",deleteById:"api/v1/admin/organization",save:"api/v1/admin/organization",findById:"api/v1/admin/organization",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_CODE",fieldName:"organizationCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_NAME",fieldName:"organizationName",required:!1,fieldType:"text"}}],keyColumnName:"organizationCode",gridTitle:"ORGANIZATION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_DELETE"}})},authority:"ORGANIZATION_VIEW"},{path:"admin/organizationapplications",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/organizationapplication/all",deleteById:"api/v1/admin/organizationapplication",save:"api/v1/admin/organizationapplication",findById:"api/v1/admin/organizationapplication",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_APPLICATION_CODE",fieldName:"applicationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_APPLICATION_DESCRIPTION",fieldName:"applicationDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_APPLICATION_NAME",fieldName:"applicationName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_APPLICATION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_DELETE"}})},authority:"ORGANIZATION_APPLICATION_VIEW"},{path:"admin/organizationranks",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/organizationrank/all",deleteById:"api/v1/admin/organizationrank",save:"api/v1/admin/organizationrank",findById:"api/v1/admin/organizationrank",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_CODE",fieldName:"rankCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_NAME",fieldName:"rankName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_ORDER",fieldName:"rankOrder",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_RANK_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_DELETE"}})},authority:"ORGANIZATION_RANK_VIEW"},{path:"admin/organizationunits",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/organizationunit/all",deleteById:"api/v1/admin/organizationunit",save:"api/v1/admin/organizationunit",findById:"api/v1/admin/organizationunit",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME",fieldName:"organizationUnitArName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME",fieldName:"organizationUnitEnName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID",fieldName:"organizationUnitParentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_UNIT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_DELETE"}})},authority:"ORGANIZATION_UNIT_VIEW"},{path:"admin/organizationusers",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/organizationuser/all",deleteById:"api/v1/admin/organizationuser",save:"api/v1/admin/organizationuser",findById:"api/v1/admin/organizationuser",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_IS_DEFAULT",fieldName:"isDefault",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_USER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_USER_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_USER_DELETE"}})},authority:"ORGANIZATION_USER_VIEW"},{path:"admin/organizationuserroles",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/organizationuserrole/all",deleteById:"api/v1/admin/organizationuserrole",save:"api/v1/admin/organizationuserrole",findById:"api/v1/admin/organizationuserrole",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_END_DATE",fieldName:"endDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_ORGANIZATION_CODE",fieldName:"organizationCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_ROLE_ID",fieldName:"roleId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_START_DATE",fieldName:"startDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_USER_ROLE_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_USER_ROLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_USER_ROLE_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_USER_ROLE_DELETE"}})},authority:"ORGANIZATION_USER_ROLE_VIEW"},{path:"admin/reports",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/report/all",deleteById:"api/v1/admin/report",save:"api/v1/admin/report",findById:"api/v1/admin/report",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"REPORT_DATASOURCE_CON_ID",fieldName:"datasourceConId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_BLUE_PRINT_ID",fieldName:"reportBluePrintId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CATEGORY",fieldName:"reportCategory",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CODE",fieldName:"reportCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXCEL_DATA_QUERY_ID",fieldName:"reportExcelDataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXPORT_NAME",fieldName:"reportExportName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_NAME",fieldName:"reportJasperName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_PATH",fieldName:"reportJasperPath",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_MENU_CODE",fieldName:"reportMenuCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_NAME",fieldName:"reportName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_TYPE",fieldName:"reportType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_USE_SYS_DATASOURCE",fieldName:"useSysDatasource",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"REPORT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"REPORT_EDIT"},deleteAction:{isEnabled:!0,authority:"REPORT_DELETE"}})},authority:"REPORT_VIEW"},{path:"admin/reportparameters",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/reportparameter/all",deleteById:"api/v1/admin/reportparameter",save:"api/v1/admin/reportparameter",findById:"api/v1/admin/reportparameter",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_DEFAULT_VALUE",fieldName:"defaultValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_HIDDEN",fieldName:"hidden",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_MANDATORY",fieldName:"mandatory",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_REPORT_ID",fieldName:"reportId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"REPORT_PARAMETER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"REPORT_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"REPORT_PARAMETER_DELETE"}})},authority:"REPORT_PARAMETER_VIEW"},{path:"admin/roles",component:()=>{const[t,i]=j([]),o=vr({commonStoreKey:"SystemRoles",deleteById:"api/v1/admin/role",save:"api/v1/admin/role",findById:"api/v1/admin/role",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ROLE_ROLE_NAME",fieldName:"roleName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_DESCRIPTION",fieldName:"description",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_ORGANIZATION_APPLICATION_ID",fieldName:"organizationApplicationId",required:!1,fieldType:"text",gridProps:{hidden:!0}}}],keyColumnName:"id",gridTitle:"ROLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ROLE_EDIT"},deleteAction:{isEnabled:!0,authority:"ROLE_DELETE"}})},authority:"ROLE_VIEW"},{path:"admin/roleauthorities",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/roleauthority/all",deleteById:"api/v1/admin/roleauthority",save:"api/v1/admin/roleauthority",findById:"api/v1/admin/roleauthority",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ROLE_AUTHORITY_AUTHORITY_ID",fieldName:"authorityId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ROLE_AUTHORITY_ROLE_ID",fieldName:"roleId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ROLE_AUTHORITY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ROLE_AUTHORITY_EDIT"},deleteAction:{isEnabled:!0,authority:"ROLE_AUTHORITY_DELETE"}})},authority:"ROLE_AUTHORITY_VIEW"},{path:"admin/useraccounts",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/useraccount/all",deleteById:"api/v1/admin/useraccount",save:"api/v1/admin/useraccount",findById:"api/v1/admin/useraccount",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"USER_ACCOUNT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"USER_ACCOUNT_PASSWORD",fieldName:"password",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_ACCOUNT_USERNAME",fieldName:"username",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"USER_ACCOUNT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"USER_ACCOUNT_EDIT"},deleteAction:{isEnabled:!0,authority:"USER_ACCOUNT_DELETE"}})},authority:"USER_ACCOUNT_VIEW"},{path:"admin/userrequests",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/userrequest/all",deleteById:"api/v1/admin/userrequest",save:"api/v1/admin/userrequest",findById:"api/v1/admin/userrequest",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_MAILS_TO_NOTIFY",fieldName:"mailsToNotify",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFICATION_MESSAGE",fieldName:"notificationMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFICATION_TIME",fieldName:"notificationTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFICATION_TYPE",fieldName:"notificationType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_NOTIFY_USER",fieldName:"notifyUser",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_REPORT_CODE",fieldName:"reportCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_REPORT_PARAMETERS",fieldName:"reportParameters",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_REQUEST_TYPE",fieldName:"requestType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_STATUS",fieldName:"status",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"USER_REQUEST_STATUS_MESSAGE",fieldName:"statusMessage",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"USER_REQUEST_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"USER_REQUEST_EDIT"},deleteAction:{isEnabled:!0,authority:"USER_REQUEST_DELETE"}})},authority:"USER_REQUEST_VIEW"},{path:"admin/widgets",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/widget/all",deleteById:"api/v1/admin/widget",save:"api/v1/admin/widget",findById:"api/v1/admin/widget",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WIDGET_DATA_QUERY_ID",fieldName:"dataQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HEIGHT",fieldName:"height",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HORIZONTAL_AXIS_FIELD",fieldName:"horizontalAxisField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HORIZONTAL_AXIS_LABEL",fieldName:"horizontalAxisLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ICON",fieldName:"icon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_SERIES_KEYS",fieldName:"seriesKeys",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_TITLE",fieldName:"title",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_VERTICAL_AXIS_FIELD",fieldName:"verticalAxisField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_VERTICAL_AXIS_LABEL",fieldName:"verticalAxisLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_DESCRIPTION",fieldName:"widgetDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_NAME",fieldName:"widgetName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_TYPE",fieldName:"widgetType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDTH",fieldName:"width",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WIDGET_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WIDGET_EDIT"},deleteAction:{isEnabled:!0,authority:"WIDGET_DELETE"}})},authority:"WIDGET_VIEW"},{path:"admin/workflowdocuments",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/workflowdocument/all",deleteById:"api/v1/admin/workflowdocument",save:"api/v1/admin/workflowdocument",findById:"api/v1/admin/workflowdocument",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON",fieldName:"appNotificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE",fieldName:"appNotificationStyle",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_VIEW_ROUTE",fieldName:"appViewRoute",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CODE",fieldName:"documentCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CON_ID",fieldName:"documentConId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME",fieldName:"documentDatabaseName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE",fieldName:"documentDatabaseTable",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD",fieldName:"documentIdField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_NAME",fieldName:"documentName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD",fieldName:"documentNumberField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_REPORT_ID",fieldName:"documentReportId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD",fieldName:"documentStatusField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED",fieldName:"mailApprovalAllowed",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ORG_CODE",fieldName:"orgCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_USE_SYSTEM_CON",fieldName:"useSystemCon",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_DELETE"}})},authority:"WORKFLOW_DOCUMENT_VIEW"},{path:"admin/workflowdocumentactions",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/workflowdocumentaction/all",deleteById:"api/v1/admin/workflowdocumentaction",save:"api/v1/admin/workflowdocumentaction",findById:"api/v1/admin/workflowdocumentaction",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE",fieldName:"documentActionCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_NAME",fieldName:"documentActionName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID",fieldName:"nextDocumentStatusId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_POST_ACTION_ENDPOINT",fieldName:"postActionEndpoint",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_PRE_ACTION_ENDPOINT",fieldName:"preActionEndpoint",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT",fieldName:"requireComment",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_ACTION_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_DELETE"}})},authority:"WORKFLOW_DOCUMENT_ACTION_VIEW"},{path:"admin/workflowdocumentactionhistories",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/workflowdocumentactionhistory/all",deleteById:"api/v1/admin/workflowdocumentactionhistory",save:"api/v1/admin/workflowdocumentactionhistory",findById:"api/v1/admin/workflowdocumentactionhistory",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_BY",fieldName:"actionBy",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_COMMENT",fieldName:"actionComment",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_METHOD",fieldName:"actionMethod",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_TIME",fieldName:"actionTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_ACTION_ID",fieldName:"documentActionId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_REF_ID",fieldName:"documentRefId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_HISTORY_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_ACTION_HISTORY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_HISTORY_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_HISTORY_DELETE"}})},authority:"WORKFLOW_DOCUMENT_ACTION_HISTORY_VIEW"},{path:"admin/workflowdocumentactionmails",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/workflowdocumentactionmail/all",deleteById:"api/v1/admin/workflowdocumentactionmail",save:"api/v1/admin/workflowdocumentactionmail",findById:"api/v1/admin/workflowdocumentactionmail",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID",fieldName:"documentActionId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_DELETE"}})},authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_VIEW"},{path:"admin/workflowdocumentmaillogs",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/workflowdocumentmaillog/all",deleteById:"api/v1/admin/workflowdocumentmaillog",save:"api/v1/admin/workflowdocumentmaillog",findById:"api/v1/admin/workflowdocumentmaillog",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID",fieldName:"graphApiMsgId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED",fieldName:"isProcessed",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE",fieldName:"mailActionCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT",fieldName:"mailBodyContent",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM",fieldName:"mailFrom",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT",fieldName:"mailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE",fieldName:"processMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME",fieldName:"processTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID",fieldName:"refDocId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_MAIL_LOG_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_MAIL_LOG_DELETE"}})},authority:"WORKFLOW_DOCUMENT_MAIL_LOG_VIEW"},{path:"admin/workflowdocumentstatuses",component:()=>{const[t,i]=j([]),o=vr({findAll:"api/v1/admin/workflowdocumentstatus/all",deleteById:"api/v1/admin/workflowdocumentstatus",save:"api/v1/admin/workflowdocumentstatus",findById:"api/v1/admin/workflowdocumentstatus",setData:i});return e(gr,{apiActions:o,data:t,setData:i,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE",fieldName:"documentStatusCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_NAME",fieldName:"documentStatusName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER",fieldName:"documentStatusOrder",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE",fieldName:"isZeroState",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_NEXT_ACTION_TAKERS_QUERY_ID",fieldName:"nextActionTakersQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_NEXT_ACTIONS_QUERY_ID",fieldName:"nextActionsQueryId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"text"}}],keyColumnName:"id",gridTitle:"WORKFLOW_DOCUMENT_STATUS_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_DELETE"}})},authority:"WORKFLOW_DOCUMENT_STATUS_VIEW"}]]],xr=()=>{const t=r((e=>e.AppLayout));return e(Q,{value:"ltr"===t.appDirection?oi:ii,children:e(u,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",flex:1,overflow:"hidden",padding:3},children:e(ge,{children:Br.map(((t,i)=>e(ve,{path:t.path,Component:t.component},i)))})})})},Wr=J("div")((({theme:e})=>({width:30,height:6,margin:10,backgroundColor:pt[300],borderRadius:3,top:8,...e.applyStyles("dark",{backgroundColor:pt[900]})})));function wr(i){const{window:a}=i,n=r((e=>e.AppLayout)),d=r((e=>e.AppInfo)),l=o(),s=e=>{l(At.setSideBarState(e))};return e(_t,{container:void 0!==a?()=>a().document.body:void 0,anchor:"bottom",open:n.sideBarOpened,onClose:()=>{s(!1)},onOpen:()=>{s(!0)},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},children:t(u,{sx:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",overflow:"hidden"},children:[e(Wr,{}),e(u,{sx:{flexGrow:1,display:"flex",justifyContent:"center",width:"99%",overflowY:"auto"},children:e(ei,{})}),t(u,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1,width:"100%"},children:[e(O,{sx:{fontSize:12},color:"textDisabled",children:d.appName}),t(O,{sx:{fontSize:12},color:"textDisabled",children:["V.",d.appVersion]})]})]})})}const Fr=()=>{const t=r((e=>e.loadingMask.value));return e(q,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:t.isOpened,children:e(K,{color:"inherit"})})},Gr=()=>{const a=r((e=>e.AppInfo)),[n,d]=j(""),[l,s]=j(""),[p,_]=j(!1),E=r((e=>e.UserSession.value)),T=o(),A=async()=>{if(null==n||""==n)return void ne.error("username is required to proceed");if(null==l||""==l)return void ne.error("password is required to proceed");_(!0);let e=null;try{if(e=await le.post(`${a.apiBaseUrl}/api/auth/login`,{username:n,password:l},{withCredentials:!0}),null!=e.data&&""!==e.data){_(!1);const t={isAuthenticated:!0,authorities:e.data.authorities,userProfile:e.data};T(It.setAuthenticated(t))}}catch(e){_(!1),ne.error(e?.response?.data||"failed to authenticate, contact your administrator")}},c=r((e=>e.UserSession.value)),I=V(Pt);return X((()=>{(async()=>{if(null==c.isAuthenticated)try{let e=await le.get(`${a.apiBaseUrl}/api/auth/userInfo`,{withCredentials:!0});if(null!=e&&null!=e.data){const t={isAuthenticated:!0,authorities:e.data.authorities,userProfile:e.data};T(It.setAuthenticated(t))}else T(It.setUnAuthenticated())}catch(e){T(It.setUnAuthenticated())}})()}),[]),e(Z,{theme:I,children:e(F,{sx:{display:"flex",height:"100vh",width:"100%",borderRadius:0,alignItems:"center",justifyContent:"center"},children:0==E.isAuthenticated?t(u,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[e("img",{src:a?.appLogo,width:150,height:150}),e(O,{sx:{m:1},variant:"h4",color:"textSecondary",children:a?.appName}),t(O,{sx:{paddingRight:1,width:"100%",textAlign:"right",fontSize:10},variant:"caption",color:"textSecondary",children:["V.",a.appVersion]}),e(C,{label:"username",sx:{width:300,m:1},value:n,onChange:e=>{d(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&A()}}),e(C,{label:"password",sx:{width:300,m:1},value:l,type:"password",onChange:e=>{s(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&A()}}),e(y,{loading:p,onClick:A,variant:"contained",color:"primary",sx:{m:1},children:"login"})]}):t(i,{children:[e(K,{sx:{marginRight:1}}),e("div",{children:"You will be redirected shortly ... please wait"})]})})})},kr=J("main",{shouldForwardProp:e=>"open"!==e})((({theme:e,open:t})=>{const i=r((e=>e.AppLayout)),a=o(),{show:n,hide:d}=bt(),l=r((e=>e.commonStores)),s=te(),p=St(),{isUserAuthorized:_}=Yt(),{handleGetRequest:E}=gt();return X((()=>{(async()=>{n("Loading ... please wait");let e=Object.keys(l);for(let t of e)void 0!==l[t]?.authority&&null!==l[t]?.authority&&!_(l[t]?.authority)||""==l[t]?.url||!0!==l[t].autoLoad||await E({endPointURI:l[t].url,showMask:!1,successCallBkFn:e=>{a(yt({storeKey:t,data:e.data}))},failureCallBkFn:()=>{a(yt({storeKey:t,data:[]}))}});d()})()}),[]),{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1,width:!p&&t?"calc(100% - 350px)":"100%",direction:i.appDirection,justifyContent:"flex-start",transition:!0===t?s.transitions.create(["margin","width"],{easing:s.transitions.easing.easeOut,duration:s.transitions.duration.enteringScreen}):s.transitions.create(["margin","width"],{easing:s.transitions.easing.sharp,duration:s.transitions.duration.leavingScreen}),marginLeft:p||"ltr"!==i.appDirection||!0!==t?0:Et+"px",marginRight:p||"rtl"!==i.appDirection||!0!==t?0:Et+"px"}}));function Yr(){const i=r((e=>e.AppLayout)),o=St(),a=r((e=>e.UserSession));return t(Be,{children:[e(de,{draggable:!0,position:"bottom-center"}),e(Fr,{}),!0===a.value.isAuthenticated?t(kr,{open:i.sideBarOpened,children:[e(ie,{}),e(wt,{}),o?null:e(ti,{}),o?e(wr,{}):null,e(Ft,{}),e(xr,{})]}):e(Gr,{})]})}const qr=t=>{const i=o();console.log("App Info",t),i(Ut.setAppInfo(t));const a=r((e=>e.AppLayout));let n={...ht};"dark"===a.themeMode&&(n={...Pt});const d=V({direction:a.appDirection,...n});return X((()=>{document.title=t.documentTitle}),[]),e(Z,{theme:d,children:e(Yr,{})})};E.setLicenseKey("c2bd611fa642666253500ab9c8e4f78fTz0xMTE4MjEsRT0xNzc2OTg4Nzk5MDAwLFM9cHJlbWl1bSxMTT1zdWJzY3JpcHRpb24sUFY9aW5pdGlhbCxLVj0y"),l.add(s),l.add(p),l.add(_);const Kr=t=>e(a,{store:Mt,children:e(qr,{...t})});export{Kr as BaseApp};
32
32
  //# sourceMappingURL=index.mjs.map