import{a as g}from"./chunk-EA3HR36B.js";import{v as f}from"./chunk-POWTZQEB.js";import"./chunk-AZNUVYH2.js";import{b as u}from"./chunk-4SQIPONB.js";import"./chunk-OMYRNWA7.js";import"./chunk-DQZNL7BK.js";import{a as P}from"./chunk-BAEZMG5T.js";import"./chunk-C72E7DYO.js";import"./chunk-WIPHIZE3.js";import"./chunk-LXYD2H4H.js";import"./chunk-IEDTWYT7.js";import"./chunk-TMA5MVRB.js";import"./chunk-VRBUVT76.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{t as c}from"./chunk-HKLJ6VPZ.js";import"./chunk-MQ46LYK7.js";import"./chunk-PQ5Q7HJL.js";import"./chunk-72CHOCZD.js";import{Eb as p,Fb as l,G as t,Gb as d,Ua as r,Y as a,gb as m,tb as i}from"./chunk-56X5LYJH.js";import"./chunk-TSRGIXR5.js";var h=class n{readOnly=!0;permissionFormService=a(g);addPermissionsFields=[];loading=!0;buildFormFields(){this.loadPermissions()}loadPermissions(){this.loading=!1,this.permissionFormService.loadPermissionsAsAccordion(!0).pipe(t(()=>this.loading=!0)).subscribe(o=>{this.addPermissionsFields=[...this.addPermissionsFields,...o]})}ngOnInit(){this.buildFormFields()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=m({type:n,selectors:[["app-permissions"]],decls:4,vars:8,consts:[["appShowLoaderUntilPageLoaded","",3,"isReady"],["titleOfPage","Manualpermissions","translationPrefix","manualPermissions","routeAfterSuccess","/home/permissions/all","fileNameTranslated","shared",3,"titleImgSrc","readOnly","fields","url","ApplyTranslationprefix","useMethodPut"],["pageTitleContent",""],["prefixTranslateBtn","manualPermissions","title","addNewPermission","icon","pi pi-plus-circle","routerLink","/home/permissions/add",3,"showIcon"]],template:function(e,s){e&1&&(p(0,"div",0)(1,"app-main-form",1)(2,"div",2),d(3,"app-button",3),l()()()),e&2&&(i("isReady",s.loading),r(),i("titleImgSrc","assets/images/entry.png")("readOnly",s.readOnly)("fields",s.addPermissionsFields)("url","role")("ApplyTranslationprefix",!0)("useMethodPut",!0),r(2),i("showIcon",!0))},dependencies:[f,P,u,c],encapsulation:2})};export{h as PermissionsComponent};
