import{a as r}from"./chunk-K3526JGK.js";import"./chunk-POEUDRE2.js";import"./chunk-3EED4T3B.js";import"./chunk-3AEGLQN3.js";import"./chunk-CVDKI2WT.js";import"./chunk-3NMADI5P.js";import"./chunk-AYRHJYMC.js";import"./chunk-ZRZJCY6I.js";import"./chunk-JRIQ2XQF.js";import"./chunk-POWTZQEB.js";import"./chunk-AZNUVYH2.js";import"./chunk-4SQIPONB.js";import"./chunk-OMYRNWA7.js";import"./chunk-DQZNL7BK.js";import"./chunk-BAEZMG5T.js";import"./chunk-C72E7DYO.js";import"./chunk-WIPHIZE3.js";import"./chunk-2SWLXQPF.js";import"./chunk-LXYD2H4H.js";import"./chunk-IEDTWYT7.js";import"./chunk-TMA5MVRB.js";import"./chunk-IU6KW22E.js";import"./chunk-NLZ5S4LR.js";import"./chunk-4N5DMUBB.js";import"./chunk-VRBUVT76.js";import"./chunk-JKGTJ7SW.js";import"./chunk-7L7QKXDE.js";import"./chunk-VUFRXBL5.js";import"./chunk-AG5UR6GS.js";import"./chunk-XXT62TCF.js";import"./chunk-YUC4NXDM.js";import"./chunk-6P3ZDNP3.js";import"./chunk-VP22RGQG.js";import"./chunk-3FDFNYAA.js";import"./chunk-3HDMTDNY.js";import"./chunk-YR6PJKN6.js";import"./chunk-HVO2LBIZ.js";import"./chunk-JU53QNJX.js";import"./chunk-EMJJQSXR.js";import"./chunk-2G4GCCRX.js";import"./chunk-KAJE4RE3.js";import"./chunk-H6QVTBMZ.js";import"./chunk-XNR6WIGX.js";import"./chunk-5KOP4ULD.js";import"./chunk-F2X3VGZZ.js";import"./chunk-RYV2RH4B.js";import"./chunk-CV2ZWZQE.js";import"./chunk-R2UR7BVM.js";import"./chunk-HKLJ6VPZ.js";import"./chunk-MQ46LYK7.js";import"./chunk-PQ5Q7HJL.js";import"./chunk-72CHOCZD.js";import{Gb as n,gb as s,tb as i}from"./chunk-56X5LYJH.js";import"./chunk-TSRGIXR5.js";var a=[{name:"shared.active",id:1},{name:"shared.inActive",id:0}];var l=class t{url="employees";floorsHeaders=["id","full_name","email","employee_code","department","facility","position","last_log","role[name]"];actions=[{type:"button",label:"show",action:"show",routerLink:"/home/userAndPermissions/show/",permission:"view employee"},{type:"button",label:"update",action:"update",routerLink:"/home/userAndPermissions/update/",permission:"update role"},{type:"button",action:"addChild",label:"Add permission",routerLink:"/home/userAndPermissions/add/",encryptInUrl:!0,permission:"create permission"},{label:"show user permissions",action:"show",type:"button",icon:"pi pi-shield",routerLink:"/home/userAndPermissions/userPermission/",permission:"view permission"},{type:"button",label:"delete",action:"delete",permission:"delete employee"},{type:"toggle",field:"is_active",label:"Active",apiUrl:"employees/changeStatus",paramName:"id",permission:"changeStatus employee"}];SearchFields=[{type:"select",title:"status",controlName:"active",options:a,class:"col",optional:!0,manualTranslateOption:!0},{type:"select",title:"departments",controlName:"departmentId",options:[],optionsUrl:"departments/list",class:"col",optional:!0,optionName:"name_ar"},{type:"select",title:"roles",controlName:"role_id",options:[],optionsUrl:"role",optionName:"name",class:"col",optional:!0}];static \u0275fac=function(e){return new(e||t)};static \u0275cmp=s({type:t,selectors:[["app-users-and-permissions"]],decls:1,vars:7,consts:[["translationPrefixx","userAndPermissions","titleOfPage","userAndPermission","titleOfButton","addNewUser","titleOfButton2","addNewManualPermission","routeOfButton","/home/userAndPermissions/add","routeOfButton2","/home/permissions/add","fileNameTranslated","shared","submitModalBtnTitle","add","deleteRowUrl","employees/destroy",3,"ShowButton","ShowButton2","ShowModal","url","headers","tableAction","filterSearchField"]],template:function(e,o){e&1&&n(0,"app-page-body",0),e&2&&i("ShowButton",!0)("ShowButton2",!0)("ShowModal",!1)("url",o.url)("headers",o.floorsHeaders)("tableAction",o.actions)("filterSearchField",o.SearchFields)},dependencies:[r],encapsulation:2})};export{l as UsersAndPermissionsComponent};
