text: !function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(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 r,n=a(e);if(t){var o=a(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return i(this,r)}}function i(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 a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{"S+wf":function(t,i,a){"use strict";a.r(i),a.d(i,"RolesModule",function(){return Q});var s,c=a("ofXK"),l=a("OEvp"),u=a("fXoL"),d=a("Jo2N"),f=a("yZrb"),m=a("3Pt+"),b=a("tyNb"),p=a("Ly1/"),h=a("zkoq"),g=a("kmnG"),v=a("m1+a"),x=a("qFsG"),_=((s=function(t){!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)}(a,t);var i=o(a);function a(t,r,n,o,s){var c;return e(this,a),(c=i.call(this,t,r,n,o)).helpers=t,c.api=r,c.formBuilder=n,c.route=o,c.router=s,c.pageSizeOptions=[5,10,25,100],c.module="roles",c}return r(a,[{key:"createForm",value:function(){this.filter=this.formBuilder.group({name:[null],guard:[null],alias:[null]})}}]),a}(l.a)).\u0275fac=function(e){return new(e||s)(u.Pb(d.a),u.Pb(f.a),u.Pb(m.e),u.Pb(b.a),u.Pb(b.c))},s.\u0275cmp=u.Jb({type:s,selectors:[["app-roles-index"]],features:[u.Ab],decls:18,vars:11,consts:[[3,"module","items","headers","columnsToDisplay","loading","showFilters","params","confirm","page","sort","update","filter","resetParams"],[3,"formGroup"],["cols","12","rowHeight","100px"],["colspan","4"],["appearance","outline",1,"full-width","mx-5"],["translate","roles.fields.name"],["matInput","","placeholder","Placeholder",3,"formControl"],["translate","roles.fields.alias"],["translate","Guard"]],template:function(e,t){1&e&&(u.Vb(0,"app-data-table",0),u.dc("confirm",function(e){return t.openConfirm(e)})("page",function(e){return t.changePage(e)})("sort",function(e){return t.sortData(e)})("update",function(){return t.loadData()})("filter",function(){return t.toggleFilters()})("resetParams",function(){return t.resetFilter()}),u.Vb(1,"form",1),u.Vb(2,"mat-grid-list",2),u.Vb(3,"mat-grid-tile",3),u.Vb(4,"mat-form-field",4),u.Vb(5,"mat-label",5),u.Ac(6," name"),u.Ub(),u.Qb(7,"input",6),u.Ub(),u.Ub(),u.Vb(8,"mat-grid-tile",3),u.Vb(9,"mat-form-field",4),u.Vb(10,"mat-label",7),u.Ac(11," alias"),u.Ub(),u.Qb(12,"input",6),u.Ub(),u.Ub(),u.Vb(13,"mat-grid-tile",3),u.Vb(14,"mat-form-field",4),u.Vb(15,"mat-label",8),u.Ac(16," guard"),u.Ub(),u.Qb(17,"input",6),u.Ub(),u.Ub(),u.Ub(),u.Ub(),u.Ub()),2&e&&(u.mc("module",t.module)("items",t.items)("headers",t.headers)("columnsToDisplay",t.columnsToDisplay)("loading",t.loading)("showFilters",t.showFilters)("params",t.params),u.Db(1),u.mc("formGroup",t.filter),u.Db(6),u.mc("formControl",t.filter.controls.name),u.Db(5),u.mc("formControl",t.filter.controls.alias),u.Db(5),u.mc("formControl",t.filter.controls.guard))},directives:[p.a,m.s,m.m,m.g,h.a,h.c,g.c,g.f,v.a,x.b,m.d,m.l,m.f],styles:["table[_ngcontent-%COMP%]{width:100%}.content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;padding:20px;color:var(--text)}icon[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{margin:15px 0;align-items:center;justify-content:space-between;font-size:20px}.actions[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%]{display:flex;width:100%}.filter[_ngcontent-%COMP%]{flex-direction:column;padding:10px 0;-webkit-animation:show 1s;animation:show 1s;transition:max-height 1s ease}.filter__content[_ngcontent-%COMP%]{width:100%}.filter__footer[_ngcontent-%COMP%]{margin-left:auto}.filter__footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{border-radius:3px!important}.filter__footer--buttons[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;margin:15px}.card[_ngcontent-%COMP%]{position:relative}@-webkit-keyframes show{0%{max-height:0;overflow:hidden}to{overflow:visible;max-height:600px}}@keyframes show{0%{max-height:0;overflow:hidden}to{overflow:visible;max-height:600px}}"]}),s),w=a("j1ZV"),y=a("6sSh"),P=a("FUS3"),k=a("mrSG"),V=a("Wp6s"),O=a("bTqV");function U(e,t){if(1&e&&(u.Vb(0,"mat-error"),u.Ac(1),u.Ub()),2&e){var r=u.hc();u.Db(1),u.Cc(" ",r.getErrorMessage("name")," ")}}function C(e,t){if(1&e&&(u.Vb(0,"mat-error"),u.Ac(1),u.ic(2,"json"),u.Ub()),2&e){var r=u.hc();u.Db(1),u.Cc(" ",u.jc(2,1,r.getErrorMessage("alias"))," ")}}function M(e,t){if(1&e&&(u.Vb(0,"mat-error"),u.Ac(1),u.ic(2,"json"),u.Ub()),2&e){var r=u.hc();u.Db(1),u.Cc(" ",u.jc(2,1,r.getErrorMessage("guard"))," ")}}var D,j,I=((D=function(){function t(r,n,o,i,a){e(this,t),this.api=r,this.helpers=n,this.formBuilder=o,this.router=i,this.el=a,this.loading=!1,this.errors={}}return r(t,[{key:"ngOnInit",value:function(){this.form=this.formBuilder.group({name:[null,[m.r.required,m.r.minLength(2),m.r.maxLength(100)]],guard:[null,[m.r.required,m.r.minLength(2),m.r.maxLength(100)]],alias:[null,[m.r.required,m.r.minLength(2),m.r.maxLength(100)]]})}},{key:"submit",value:function(){return Object(k.a)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.form.valid){e.next=15;break}return this.loading=!0,e.prev=2,e.next=5,this.api.roles().create(this.form.value);case 5:return this.helpers.alert().showSuccess("Successful created"),e.next=8,this.router.navigate(["".concat(this.helpers.localization().activeLanguage,"/roles")]);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),e.t0.error&&e.t0.error.hasOwnProperty("errors")&&(this.errors=e.t0.errors,setTimeout(function(){t.errors={}},5e3)),this.helpers.alert().showError(e.t0.message),this.loading=!1;case 13:e.next=16;break;case 15:this.form.markAllAsTouched();case 16:case"end":return e.stop()}},e,this,[[2,10]])}))}},{key:"changeStatus",value:function(){var e=this;this.form.markAllAsTouched(),document.getElementById("2").scrollIntoView(),setTimeout(function(){e.scrollToFirstInvalidControl()},2e3)}},{key:"scrollToFirstInvalidControl",value:function(){this.el.nativeElement.querySelector("form .ng-invalid").focus()}},{key:"t",value:function(e){return this.helpers.localization().translate(e)}},{key:"getErrorMessage",value:function(e){var t=this.form.controls[e];return this.errors[e]?this.errors[e]:t.hasError("required")?this.t("global_validation.required"):t.hasError("minlength")?"".concat(this.t("global_validation.minlength")," ").concat(t.errors.minlength.requiredLength," (").concat(t.errors.minlength.actualLength,")"):t.hasError("maxlength")?"".concat(this.t("global_validation.maxlength")," ").concat(t.errors.maxlength.requiredLength," (").concat(t.errors.maxlength.actualLength,"). "):t.hasError("email")?"Not a valid email":""}}]),t}()).\u0275fac=function(e){return new(e||D)(u.Pb(f.a),u.Pb(d.a),u.Pb(m.e),u.Pb(b.c),u.Pb(u.l))},D.\u0275cmp=u.Jb({type:D,selectors:[["app-create"]],decls:31,vars:7,consts:[[2,"padding","40px 100px 40px"],[1,"mt-20"],[3,"formGroup"],["cols","12","rowHeight","100px"],["colspan","4"],["appearance","outline",1,"full-width","mx-5"],["translate","roles.fields.name"],["matInput","","placeholder","Placeholder",3,"formControl"],[4,"ngIf"],["translate","roles.fields.alias"],["translate","Guard"],[1,"d-flex","align-center","justify-end","full-width","pb-20"],["mat-button","","routerLink","../"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(u.Vb(0,"div",0),u.Vb(1,"mat-card"),u.Vb(2,"mat-card-title"),u.Ac(3,"Create"),u.Ub(),u.Vb(4,"mat-card-content",1),u.Vb(5,"form",2),u.Vb(6,"mat-grid-list",3),u.Vb(7,"mat-grid-tile",4),u.Vb(8,"mat-form-field",5),u.Vb(9,"mat-label",6),u.Ac(10," name"),u.Ub(),u.Qb(11,"input",7),u.zc(12,U,2,1,"mat-error",8),u.Ub(),u.Ub(),u.Vb(13,"mat-grid-tile",4),u.Vb(14,"mat-form-field",5),u.Vb(15,"mat-label",9),u.Ac(16," alias"),u.Ub(),u.Qb(17,"input",7),u.zc(18,C,3,3,"mat-error",8),u.Ub(),u.Ub(),u.Vb(19,"mat-grid-tile",4),u.Vb(20,"mat-form-field",5),u.Vb(21,"mat-label",10),u.Ac(22," guard"),u.Ub(),u.Qb(23,"input",7),u.zc(24,M,3,3,"mat-error",8),u.Ub(),u.Ub(),u.Ub(),u.Ub(),u.Ub(),u.Vb(25,"mat-card-actions"),u.Vb(26,"div",11),u.Vb(27,"button",12),u.Ac(28,"cancel"),u.Ub(),u.Vb(29,"button",13),u.dc("click",function(){return t.submit()}),u.Ac(30," save "),u.Ub(),u.Ub(),u.Ub(),u.Ub(),u.Ub()),2&e&&(u.Db(5),u.mc("formGroup",t.form),u.Db(6),u.mc("formControl",t.form.controls.name),u.Db(1),u.mc("ngIf",t.getErrorMessage("name")),u.Db(5),u.mc("formControl",t.form.controls.alias),u.Db(1),u.mc("ngIf",t.getErrorMessage("alias")),u.Db(5),u.mc("formControl",t.form.controls.guard),u.Db(1),u.mc("ngIf",t.getErrorMessage("guard")))},directives:[V.a,V.f,V.c,m.s,m.m,m.g,h.a,h.c,g.c,g.f,v.a,x.b,m.d,m.l,m.f,c.l,V.b,O.a,b.d,g.b],pipes:[c.f],styles:["*[_ngcontent-%COMP%]{transition:all .5s ease-in-out}"]}),D),A=a("LRb0"),F=((j=function(){function t(r,n,o,i,a){e(this,t),this.formBuilder=r,this.api=n,this.helpers=o,this.route=i,this.router=a,this.loading=!1,this.errors={},this.roles=[],this.id=null}return r(t,[{key:"ngOnInit",value:function(){var e=this;this.createForm(),this.route.params.subscribe(function(t){(null==t?void 0:t.id)&&(e.id=t.id,e.getItem())})}},{key:"submit",value:function(){return Object(k.a)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.form.valid){e.next=14;break}return this.loading=!0,e.prev=2,e.next=5,this.api.roles().edit(this.id,this.form.value);case 5:return this.helpers.alert().showSuccess("Successful edited."),e.next=8,this.router.navigate(["ro/roles"]);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),e.t0.hasOwnProperty("error")&&(this.errors=e.t0.error,setTimeout(function(){t.errors={}},5e3)),this.helpers.alert().showError(e.t0.error.message);case 13:this.loading=!1;case 14:case"end":return e.stop()}},e,this,[[2,10]])}))}},{key:"getItem",value:function(){return Object(k.a)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.loading=!0;try{t=this.api.roles().getForEdit(this.id),r=this.helpers.setForm(t,this.form),this.form.setValue(Object.assign({},r))}catch(n){n.error.hasOwnProperty("errors")&&(this.errors=n.errors),this.helpers.alert().showError(n.error.message)}this.loading=!1;case 3:case"end":return e.stop()}},e,this)}))}},{key:"translate",value:function(e){return this.helpers.localization().translate(e)}},{key:"createForm",value:function(){this.form=this.formBuilder.group({name:[null,m.r.required],guard:[null,m.r.required],alias:[null,m.r.required]})}}]),t}()).\u0275fac=function(e){return new(e||j)(u.Pb(m.e),u.Pb(f.a),u.Pb(d.a),u.Pb(b.a),u.Pb(b.c))},j.\u0275cmp=u.Jb({type:j,selectors:[["app-edit"]],decls:17,vars:15,consts:[[1,"container"],[1,"card"],[1,"card__header"],["text","text","translate","roles.headers.edit",1,"card__header--title","ml-10"],[1,"card__content","mt-10"],[1,"form",3,"formGroup"],["cols","12",1,"form__item",3,"label","control","error","keyup.enter"],["cols","12",1,"form__item",3,"icon","type","label","control","error","keyup.enter"],[1,"card__footer"],["routerLink","../../","text","text",1,"card__footer--btn","card__footer--cancel"],[1,"card__footer--btn","card__footer--submit",3,"click"]],template:function(e,t){1&e&&(u.Vb(0,"div",0),u.Vb(1,"div",1),u.Vb(2,"div",2),u.Vb(3,"div",3),u.Ac(4,"Edit"),u.Ub(),u.Ub(),u.Vb(5,"div",4),u.Vb(6,"form",5),u.Vb(7,"form-input",6),u.dc("keyup.enter",function(){return t.submit()}),u.Ub(),u.Vb(8,"form-input",6),u.dc("keyup.enter",function(){return t.submit()}),u.Ub(),u.Vb(9,"form-input",6),u.dc("keyup.enter",function(){return t.submit()}),u.Ub(),u.Vb(10,"form-input",7),u.dc("keyup.enter",function(){return t.submit()}),u.Ub(),u.Ub(),u.Ub(),u.Vb(11,"div",8),u.Vb(12,"div"),u.Vb(13,"button",9),u.Ac(14," cancel "),u.Ub(),u.Vb(15,"button",10),u.dc("click",function(){return t.submit()}),u.Ac(16," submit "),u.Ub(),u.Ub(),u.Ub(),u.Ub(),u.Ub()),2&e&&(u.Db(6),u.mc("formGroup",t.form),u.Db(1),u.mc("label","Name")("control",t.form.controls.name)("error",t.errors.name),u.Db(1),u.mc("label","Alias")("control",t.form.controls.alias)("error",t.errors.alias),u.Db(1),u.mc("label","Guard")("control",t.form.controls.guard)("error",t.errors.guard),u.Db(1),u.mc("icon","flaticon-locked-padlock-outline")("type","password")("label","Password")("control",t.form.controls.password)("error",t.errors.password))},directives:[v.a,m.s,m.m,m.g,A.a,b.d],styles:[".container[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:50px;align-items:center}.card[_ngcontent-%COMP%]{width:1024px;box-shadow:2px 2px 10px rgba(0,0,0,.5)!important;padding:20px;border-radius:5px}.card__header[_ngcontent-%COMP%]{margin-bottom:10px}.card__header--title[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card__content[_ngcontent-%COMP%], .card__content--item[_ngcontent-%COMP%]{box-sizing:border-box}.card__content--item[_ngcontent-%COMP%]{width:50%}.card__footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:100%;margin-top:20px;padding-top:10px}.card__footer--btn[_ngcontent-%COMP%]{background:transparent;outline:none;cursor:pointer;border:none;padding:8px;border-radius:3px;min-width:100px}.card__footer--submit[_ngcontent-%COMP%]{background:var(--primary);margin-left:5px;color:var(--light)}.card__footer--submit[_ngcontent-%COMP%]:hover{background:rgba(var(--primary-hover),.8)}.card__footer--cancel[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.1)}.form[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%;box-sizing:border-box}"]}),j),E=a("WaCx");function z(e,t){if(1&e){var r=u.Wb();u.Vb(0,"div",11),u.dc("click",function(){u.tc(r);var e=t.$implicit;return u.hc().expand(e)}),u.Vb(1,"div",12),u.Vb(2,"span",7),u.Ac(3),u.Ub(),u.Ub(),u.Ub()}if(2&e){var n=t.$implicit,o=u.hc();u.Hb("selected",n.module===o.expandedItem.module),u.Db(3),u.Cc(" ",n.module," ")}}function R(e,t){if(1&e){var r=u.Wb();u.Vb(0,"option",21),u.dc("click",function(){u.tc(r);var e=t.$implicit,n=u.hc().index;return u.hc(2).selectFields(e,n)}),u.Ac(1),u.Ub()}if(2&e){var n=t.$implicit;u.mc("value",n),u.Db(1),u.Cc(" ",n," ")}}function L(e,t){if(1&e&&(u.Vb(0,"div",15),u.Vb(1,"div"),u.Vb(2,"label",16),u.Vb(3,"input",17),u.dc("ngModelChange",function(e){return t.$implicit.access=e}),u.Ub(),u.Vb(4,"span",18),u.Ac(5),u.Ub(),u.Ub(),u.Ub(),u.Vb(6,"div"),u.Vb(7,"select",19),u.dc("ngmodelChange",function(e){return t.$implicit.fields=e}),u.zc(8,R,2,2,"option",20),u.Ub(),u.Ub(),u.Ub()),2&e){var r=t.$implicit;u.Db(3),u.mc("ngModel",r.access),u.Db(2),u.Bc(r.action),u.Db(2),u.mc("ngmodel",r.fields),u.Db(1),u.mc("ngForOf",r.availableFields)}}function q(e,t){if(1&e&&(u.Vb(0,"div",13),u.zc(1,L,9,4,"div",14),u.Ub()),2&e){var r=u.hc();u.Db(1),u.mc("ngForOf",r.expandedItem.items)}}var S,T,G=((S=function(){function t(r,n,o){var i=this;e(this,t),this.api=r,this.helpers=n,this.permissions=[],this.loading=!1,this.alias=null,this.expandedItem={},o.params.subscribe(function(e){e.alias&&(i.alias=e.alias)})}return r(t,[{key:"ngOnInit",value:function(){return Object(k.a)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadData();case 2:case"end":return e.stop()}},e,this)}))}},{key:"loadData",value:function(){return Object(k.a)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.loading=!0,e.prev=1,e.next=4,this.api.roles().getPermissions(this.alias);case 4:this.permissions=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this.helpers.alert().showError(e.t0.error.message);case 10:this.loading=!1;case 11:case"end":return e.stop()}},e,this,[[1,7]])}))}},{key:"translate",value:function(e){return this.helpers.localization().translate(e)}},{key:"expand",value:function(e){this.expandedItem=e&&this.expandedItem&&e.module===this.expandedItem.module?null:e}},{key:"submit",value:function(){return Object(k.a)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.api.roles().updatePermissions(this.permissions);case 3:this.helpers.alert().showSuccess("Successful updated!"),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),this.helpers.alert().showSuccess(e.t0.message);case 9:case"end":return e.stop()}},e,this,[[0,6]])}))}},{key:"selectFields",value:function(e,t){this.expandedItem.items[t].fields.some(function(t){return t===e})?this.expandedItem.items[t].fields.splice(t,1):this.expandedItem.items[t].fields.push(e)}}]),t}()).\u0275fac=function(e){return new(e||S)(u.Pb(f.a),u.Pb(d.a),u.Pb(b.a))},S.\u0275cmp=u.Jb({type:S,selectors:[["app-edit-permissions"]],decls:19,vars:4,consts:[[1,"content"],[1,"card","full-width"],[1,"actions"],[1,"btn",3,"title","click"],[1,"d-flex"],["class","elevation-1 my-5 pa-8 cursor-pointer d-flex",3,"selected","click",4,"ngFor","ngForOf"],["size","32",1,"ml-10"],["text","text"],["class","transition-all d-flex flex-wrap flex-stretch",4,"ngIf"],[1,"d-flex","full-width","align-end","justify-end"],[1,"card__footer--btn","card__footer--submit",3,"click"],[1,"elevation-1","my-5","pa-8","cursor-pointer","d-flex",3,"click"],[1,"ma-0"],[1,"transition-all","d-flex","flex-wrap","flex-stretch"],["class","pa-20 ma-10 elevation-1",4,"ngFor","ngForOf"],[1,"pa-20","ma-10","elevation-1"],["size","24","text","text",1,"d-flex","align-center","justify-center"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"ml-8"],["multiple","",3,"ngmodel","ngmodelChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"]],template:function(e,t){1&e&&(u.Vb(0,"div",0),u.Vb(1,"div",1),u.Vb(2,"div",2),u.Qb(3,"div"),u.Vb(4,"div"),u.Vb(5,"button",3),u.dc("click",function(){return t.loadData()}),u.Vb(6,"icon"),u.Ac(7,"refresh"),u.Ub(),u.Ub(),u.Ub(),u.Ub(),u.Vb(8,"div",4),u.Vb(9,"div"),u.zc(10,z,4,3,"div",5),u.Ub(),u.Vb(11,"div"),u.Vb(12,"div",6),u.Vb(13,"span",7),u.Ac(14),u.Ub(),u.Ub(),u.zc(15,q,2,1,"div",8),u.Ub(),u.Ub(),u.Vb(16,"div",9),u.Vb(17,"button",10),u.dc("click",function(){return t.submit()}),u.Ac(18," submit "),u.Ub(),u.Ub(),u.Ub(),u.Ub()),2&e&&(u.Db(5),u.mc("title",t.translate("roles.buttons.load_data")),u.Db(5),u.mc("ngForOf",t.permissions),u.Db(4),u.Bc(t.expandedItem&&t.expandedItem.module),u.Db(1),u.mc("ngIf",t.expandedItem))},directives:[E.a,c.k,c.l,m.a,m.l,m.o,m.p,m.t],styles:["table[_ngcontent-%COMP%]{width:100%}.content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;padding:20px}icon[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{margin:15px 0;align-items:center;justify-content:space-between;font-size:20px}.actions[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%]{display:flex;width:100%}.filter[_ngcontent-%COMP%]{flex-direction:column;padding:10px 0;-webkit-animation:show 1s;animation:show 1s;transition:max-height 1s ease}.filter__content[_ngcontent-%COMP%]{width:100%}.filter__footer[_ngcontent-%COMP%]{margin-left:auto}.filter__footer[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{border-radius:3px!important}.filter__footer--buttons[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;margin:15px}.card[_ngcontent-%COMP%]{position:relative}.selected[_ngcontent-%COMP%]{background:var(--primary);color:var(--light)}@-webkit-keyframes show{0%{max-height:0;overflow:hidden}to{overflow:visible;max-height:600px}}@keyframes show{0%{max-height:0;overflow:hidden}to{overflow:visible;max-height:600px}}"]}),S),B=a("NGJ7"),J=[{path:"create",component:I},{path:"edit/:id",component:F},{path:"edit-permissions/:alias",component:G},{path:"page/:page",component:_},{path:"",redirectTo:"page/1",pathMatch:"full"},{path:":page",redirectTo:"page/1",pathMatch:"full"}],Q=((T=function t(){e(this,t)}).\u0275fac=function(e){return new(e||T)},T.\u0275mod=u.Nb({type:T}),T.\u0275inj=u.Mb({imports:[[c.c,m.h,m.q,w.a,y.a,b.g.forChild(J),P.a,B.a]]}),T)}}])}();