"use strict";(self.webpackChunksphere_web=self.webpackChunksphere_web||[]).push([[3837],{3837:function(e,t,n){n.r(t),n.d(t,{LaborProtectionRightsModule:function(){return R}});var s=n(38583),r=n(88452),o=n(65939),a=n(11436),i=n(99692),c=n(11494),l=n(7539),h=n(59375),g=n(64916),u=n(37716),d=n(49730);function p(e,t){1&e&&(u.TgZ(0,"mat-tab-group",3),u._UZ(1,"mat-tab",4),u.qZA())}let m=(()=>{class e extends g.V{constructor(){super(...arguments),this.roles=[],this.selectedRole=null,this.rolesLoading=!0,this.selectedTab=0,this.getKeyFn=e=>e.uid,this.getParentKeyFn=e=>e.catUid,this.getNameFn=e=>e.name,this.getHasParentFn=e=>!!e.catUid&&"00000000-0000-0000-0000-000000000000"!=e.catUid}ngOnInit(){this.requestRoles()}onRefresh(){this.requestRoles()}requestRoles(){return this.rolesLoading=!0,this._dataService.rolesService.getAllRoles().then(e=>{this.roles=e,this.rolesLoading=!1,this.success("\u0420\u043e\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b",e)},e=>{this.rolesLoading=!1,this.error("\u0420\u043e\u043b\u0438 \u041d\u0415 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b",e)})}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=u.n5z(e)))(n||e)}}(),e.\u0275cmp=u.Xpm({type:e,selectors:[["ng-component"]],features:[u.qOj],decls:3,vars:6,consts:[[1,"container"],[1,"grid-column",3,"data","keyFn","parentKeyFn","labelFn","hasParentFn","selectionChange"],["class","grid-column",4,"ngIf"],[1,"grid-column"],["label","\u0421\u041e\u0423\u0422"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0),u.TgZ(1,"s-tree",1),u.NdJ("selectionChange",function(e){return t.selectedRole=e}),u.qZA(),u.YNc(2,p,2,0,"mat-tab-group",2),u.qZA()),2&e&&(u.xp6(1),u.Q6J("data",t.roles)("keyFn",t.getKeyFn)("parentKeyFn",t.getParentKeyFn)("labelFn",t.getNameFn)("hasParentFn",t.getHasParentFn),u.xp6(1),u.Q6J("ngIf",t.selectedRole))},directives:[d.B,s.O5,o.SP,o.uX],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:300px 1fr;grid-template-rows:100%;height:100%;width:100%}.grid-column[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px;height:100%}[_nghost-%COMP%]  .mat-tab-body-wrapper, [_nghost-%COMP%]  .mat-tab-body, [_nghost-%COMP%]  .mat-tab-body-content{display:flex;flex:1 1;justify-content:stretch;height:100%}.tab-content[_ngcontent-%COMP%]{flex:1 1;width:100%}"]}),e})();var f=n(68770),b=n(66176),y=n(91471),F=n(91276),P=n(42724),_=n(90625),w=n(3679),C=n(75913);let x=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({imports:[[s.ez,w.u5,C.G],C.G]}),e})();const O=[{path:"",component:m}];let R=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({imports:[[s.ez,r.Bz.forChild(O),o.Nh,a.AV,c.JX,i.TU,l.p9,_.U8,h.J,b.w_,f.Y,y.b,F._,P.x,x]]}),e})()}}]);