!function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}function o(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(self.webpackChunksphere_web=self.webpackChunksphere_web||[]).push([[3837],{3837:function(o,c,i){i.r(c),i.d(c,{LaborProtectionRightsModule:function(){return J}});var u=i(38583),a=i(88452),s=i(65939),l=i(11436),f=i(99692),p=i(11494),h=i(7539),g=i(59375),d=i(64916),y=i(37716),b=i(49730);function m(e,t){1&e&&(y.TgZ(0,"mat-tab-group",3),y._UZ(1,"mat-tab",4),y.qZA())}var v,O,P=((O=function(o){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}(s,o);var c,i,u,a=r(s);function s(){var t;return e(this,s),(t=a.apply(this,arguments)).roles=[],t.selectedRole=null,t.rolesLoading=!0,t.selectedTab=0,t.getKeyFn=function(e){return e.uid},t.getParentKeyFn=function(e){return e.catUid},t.getNameFn=function(e){return e.name},t.getHasParentFn=function(e){return!!e.catUid&&"00000000-0000-0000-0000-000000000000"!=e.catUid},t}return c=s,(i=[{key:"ngOnInit",value:function(){this.requestRoles()}},{key:"onRefresh",value:function(){this.requestRoles()}},{key:"requestRoles",value:function(){var e=this;return this.rolesLoading=!0,this._dataService.rolesService.getAllRoles().then(function(t){e.roles=t,e.rolesLoading=!1,e.success("\u0420\u043e\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b",t)},function(t){e.rolesLoading=!1,e.error("\u0420\u043e\u043b\u0438 \u041d\u0415 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b",t)})}}])&&t(c.prototype,i),u&&t(c,u),s}(d.V)).\u0275fac=function(e){return(v||(v=y.n5z(O)))(e||O)},O.\u0275cmp=y.Xpm({type:O,selectors:[["ng-component"]],features:[y.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&&(y.TgZ(0,"div",0),y.TgZ(1,"s-tree",1),y.NdJ("selectionChange",function(e){return t.selectedRole=e}),y.qZA(),y.YNc(2,m,2,0,"mat-tab-group",2),y.qZA()),2&e&&(y.xp6(1),y.Q6J("data",t.roles)("keyFn",t.getKeyFn)("parentKeyFn",t.getParentKeyFn)("labelFn",t.getNameFn)("hasParentFn",t.getHasParentFn),y.xp6(1),y.Q6J("ngIf",t.selectedRole))},directives:[b.B,u.O5,s.SP,s.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%}"]}),O),_=i(68770),w=i(66176),F=i(91471),R=i(91276),C=i(42724),j=i(90625),x=i(3679),k=i(75913),q=function(){var t=function t(){e(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y.oAB({type:t}),t.\u0275inj=y.cJS({imports:[[u.ez,x.u5,k.G],k.G]}),t}(),A=[{path:"",component:P}],J=function(){var t=function t(){e(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y.oAB({type:t}),t.\u0275inj=y.cJS({imports:[[u.ez,a.Bz.forChild(A),s.Nh,l.AV,p.JX,f.TU,h.p9,j.U8,g.J,w.w_,_.Y,F.b,R._,C.x,q]]}),t}()}}])}();