-
Notifications
You must be signed in to change notification settings - Fork 0
/
8.937372364e331803fd31.js
1 lines (1 loc) · 28.3 KB
/
8.937372364e331803fd31.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{G6fN:function(l,n,u){"use strict";u.r(n);var t=u("CcnG"),e=function(){return function(){}}(),r=u("9AJC"),i=u("pMnS"),s=u("A7o+"),o=u("4GxJ"),a=u("Ip0R"),b=u("L7Xm"),c=u("OEal"),d=u("YTe2"),f=u("biaL"),m=u("VNr4"),p=u("67Y/"),g=u("jSB3"),h=function(){function l(l,n){this.http=l,this.awsService=n,this.BASE_API="https://jhyi23qkd9.execute-api.eu-west-1.amazonaws.com/v1"}return l.prototype.getUsers=function(){var l=this.awsService.getUsers(),n=this.http.get(this.BASE_API+"/api/admin/user");return Object(m.a)(l,n).pipe(Object(p.a)(function(l){var n=l[1];return l[0].map(function(l){return Object.assign(l,n.find(function(n){return n.username===l.username}))}).filter(function(l){return n.find(function(n){return n.username===l.username})})}))},l.prototype.createUser=function(l){var n=this.awsService.createUser(l),u=this.http.post(this.BASE_API+"/api/admin/user",l);return Object(m.a)(n,u).pipe(Object(p.a)(function(l){return l[1]}))},l.prototype.editUser=function(l){var n=this.awsService.editUser(l),u=this.http.put(this.BASE_API+"/api/admin/user/"+encodeURIComponent(l.username),l);return Object(m.a)(n,u).pipe(Object(p.a)(function(l){return l[1]}))},l.prototype.resendTemporaryPassword=function(l){return this.awsService.resendTemporaryPassword(l)},l}(),I=u("M1ve"),v=function(){function l(l,n){this.activeModal=l,this.referentialService=n}return l.prototype.ngOnInit=function(){var l=this;this.isEdit="EDIT"===this.action,this.referentialService.getProfiles().subscribe(function(n){return l.profiles=n})},l.prototype.close=function(){this.activeModal.close(this.formUser.value)},l}(),B=u("EC3B"),E=function(){function l(l,n,u,t){this.adminService=l,this.modalService=n,this.ngZone=u,this.formBuilder=t,this.users=[],this.loading=!1}return l.prototype.ngOnInit=function(){this.closeInfo(),this.closeAlert(),this.getUsers()},l.prototype.getUsers=function(){var l=this;this.loading=!0,this.adminService.getUsers().subscribe(function(n){l.ngZone.run(function(){l.users=n,l.loading=!1})},function(n){l.ngZone.run(function(){return l.errorUsersProcessor(n)})})},l.prototype.temporaryPasswordSend=function(){this.closeInfo(),this.infoDisplay=!0},l.prototype.errorUsersProcessor=function(l){this.loading=!1,this.closeAlert(),404===l.status||504===l.status?this.notFoundDisplay=!0:"UsernameExistsException"===l.code?this.usernameExistsExceptionDisplay=!0:400===l.status?this.integrityDisplay=!0:this.unknownError=!0,this.errDisplay=!0},l.prototype.createUser=function(l){var n=this;this.loading=!0,this.adminService.createUser(l).subscribe(function(){return n.getUsers()},function(l){n.ngZone.run(function(){return n.errorUsersProcessor(l)})})},l.prototype.editUser=function(l){var n=this;this.loading=!0,this.adminService.editUser(l).subscribe(function(){return n.getUsers()},function(l){n.ngZone.run(function(){return n.errorUsersProcessor(l)})})},l.prototype.resendTemporaryPassword=function(l){var n=this;this.closeInfo(),this.adminService.resendTemporaryPassword(l).subscribe(function(){n.ngZone.run(function(){return n.temporaryPasswordSend()})},function(l){n.ngZone.run(function(){return n.errorUsersProcessor(l)})})},l.prototype.closeAlert=function(){this.errDisplay=!1,this.notFoundDisplay=!1,this.usernameExistsExceptionDisplay=!1,this.integrityDisplay=!1},l.prototype.closeInfo=function(){this.infoDisplay=!1},l.prototype.add=function(){var l=this;this.closeAlert(),this.closeInfo();var n=this.formBuilder.group({username:"",name:"",firstname:"",email:"",roles:[[B.a]]}),u=this.modalService.open(v);u.componentInstance.formUser=n,u.componentInstance.action="CREATE",u.result.then(function(n){l.createUser(n)},function(){})},l.prototype.edit=function(l){var n=this;this.closeAlert();var u=this.formBuilder.group({username:l.username,name:l.name,firstname:l.firstname,email:l.email,roles:[l.roles]}),t=this.modalService.open(v);t.componentInstance.formUser=u,t.componentInstance.action="EDIT",t.result.then(function(l){n.editUser(l)},function(){})},l}(),y=u("gIcY"),D=t.pb({encapsulation:0,styles:[[""]],data:{}});function S(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,2,"span",[["id","404-message"]],null,null,null,null,null)),(l()(),t.Ib(1,null,["",""])),t.Db(131072,s.i,[s.j,t.h])],null,function(l,n){l(n,1,0,t.Jb(n,1,0,t.Bb(n,2).transform("API.404")))})}function q(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,2,"span",[["id","usernameExistsException-message"]],null,null,null,null,null)),(l()(),t.Ib(1,null,["",""])),t.Db(131072,s.i,[s.j,t.h])],null,function(l,n){l(n,1,0,t.Jb(n,1,0,t.Bb(n,2).transform("AWS.COGNITO.USER_ALREADY_EXISTS")))})}function U(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,2,"span",[["id","integrity-message"]],null,null,null,null,null)),(l()(),t.Ib(1,null,["",""])),t.Db(131072,s.i,[s.j,t.h])],null,function(l,n){l(n,1,0,t.Jb(n,1,0,t.Bb(n,2).transform("ADMIN.USER.ERROR.CREATION_INTEGRITY_ERROR")))})}function A(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,2,"span",[["id","unknownError-message"]],null,null,null,null,null)),(l()(),t.Ib(1,null,["",""])),t.Db(131072,s.i,[s.j,t.h])],null,function(l,n){l(n,1,0,t.Jb(n,1,0,t.Bb(n,2).transform("ADMIN.USER.ERROR.UNKNOWN_ERROR")))})}function C(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,9,"ngb-alert",[["class","alert"],["id","creation-edition-error-message"],["role","alert"],["type","danger"]],[[2,"alert-dismissible",null]],[[null,"close"]],function(l,n,u){var t=!0;return"close"===n&&(t=!1!==l.component.closeAlert()&&t),t},r.e,r.c)),t.qb(1,638976,null,0,o.e,[o.f,t.E,t.k],{dismissible:[0,"dismissible"],type:[1,"type"]},{close:"close"}),(l()(),t.hb(16777216,null,0,1,null,S)),t.qb(3,16384,null,0,a.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null),(l()(),t.hb(16777216,null,0,1,null,q)),t.qb(5,16384,null,0,a.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null),(l()(),t.hb(16777216,null,0,1,null,U)),t.qb(7,16384,null,0,a.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null),(l()(),t.hb(16777216,null,0,1,null,A)),t.qb(9,16384,null,0,a.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null)],function(l,n){var u=n.component;l(n,1,0,!0,"danger"),l(n,3,0,u.notFoundDisplay),l(n,5,0,u.usernameExistsExceptionDisplay),l(n,7,0,u.integrityDisplay),l(n,9,0,u.unknownError)},function(l,n){l(n,0,0,t.Bb(n,1).dismissible)})}function R(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,4,"ngb-alert",[["class","alert"],["id","creation-edition-info-message"],["role","alert"],["type","success"]],[[2,"alert-dismissible",null]],[[null,"close"]],function(l,n,u){var t=!0;return"close"===n&&(t=!1!==l.component.closeInfo()&&t),t},r.e,r.c)),t.qb(1,638976,null,0,o.e,[o.f,t.E,t.k],{dismissible:[0,"dismissible"],type:[1,"type"]},{close:"close"}),(l()(),t.rb(2,0,null,0,2,"span",[],null,null,null,null,null)),(l()(),t.Ib(3,null,["",""])),t.Db(131072,s.i,[s.j,t.h])],function(l,n){l(n,1,0,!0,"success")},function(l,n){l(n,0,0,t.Bb(n,1).dismissible),l(n,3,0,t.Jb(n,3,0,t.Bb(n,4).transform("AWS.COGNITO.TEMPORARY_PASSWORD_HAS_BEEN_RETURNED_TO_THE_USER")))})}function M(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,5,"div",[["class","container"],["id","loader"]],null,null,null,null,null)),(l()(),t.rb(1,0,null,null,4,"div",[["class","spinner-preloader position-relative"]],null,null,null,null,null)),(l()(),t.rb(2,0,null,null,2,"div",[["class","spinner-subtitle position-relative"],["id","loader-message"]],null,null,null,null,null)),(l()(),t.Ib(3,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(5,0,null,null,0,"div",[["class","spinner-loader position-relative mt-3"],["id","loader-icon"]],null,null,null,null,null))],null,function(l,n){l(n,3,0,t.Jb(n,3,0,t.Bb(n,4).transform("ADMIN.LOADING")))})}function k(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,0,"em",[["class","fa fa-check text-success"],["id","enabled"]],null,null,null,null,null))],null,null)}function N(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,0,"em",[["class","fa fa-times text-danger"],["id","disabled"]],null,null,null,null,null))],null,null)}function j(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,6,null,null,null,null,null,null,null)),(l()(),t.rb(1,0,null,null,4,"span",[],null,null,null,null,null)),t.Fb(512,null,a.y,a.z,[t.t,t.u,t.k,t.E]),t.qb(3,278528,null,0,a.i,[a.y],{ngClass:[0,"ngClass"]},null),(l()(),t.Ib(4,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(6,0,null,null,0,"br",[],null,null,null,null,null))],function(l,n){l(n,3,0,"ADMIN"===n.context.$implicit?"badge badge-danger":"badge badge-success")},function(l,n){l(n,4,0,t.Jb(n,4,0,t.Bb(n,5).transform("ADMIN.USER.ROLES."+n.context.$implicit)))})}function P(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,1,"button",[["class","btn btn-sm btn-outline-info"],["id","edit-user-button"]],null,[[null,"click"]],function(l,n,u){var t=!0;return"click"===n&&(t=!1!==l.component.resendTemporaryPassword(l.parent.context.$implicit.username)&&t),t},null,null)),(l()(),t.rb(1,0,null,null,0,"em",[["class","fa fa-key"]],null,null,null,null,null))],null,null)}function z(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,1,"button",[["class","btn btn-sm btn-outline-info"],["id","edit-user-button"]],null,[[null,"click"]],function(l,n,u){var t=!0;return"click"===n&&(t=!1!==l.component.edit(l.parent.context.$implicit)&&t),t},null,null)),(l()(),t.rb(1,0,null,null,0,"em",[["class","fa fa-edit"]],null,null,null,null,null))],null,null)}function x(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,23,"tr",[],null,null,null,null,null)),(l()(),t.rb(1,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Ib(2,null,["",""])),(l()(),t.rb(3,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Ib(4,null,[""," ",""])),(l()(),t.rb(5,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Ib(6,null,["",""])),(l()(),t.rb(7,0,null,null,4,"td",[["class","text-center"]],null,null,null,null,null)),(l()(),t.hb(16777216,null,null,1,null,k)),t.qb(9,16384,null,0,a.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null),(l()(),t.hb(16777216,null,null,1,null,N)),t.qb(11,16384,null,0,a.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null),(l()(),t.rb(12,0,null,null,2,"td",[],null,null,null,null,null)),(l()(),t.Ib(13,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(15,0,null,null,2,"td",[],null,null,null,null,null)),(l()(),t.hb(16777216,null,null,1,null,j)),t.qb(17,278528,null,0,a.j,[t.P,t.M,t.t],{ngForOf:[0,"ngForOf"]},null),(l()(),t.rb(18,0,null,null,2,"td",[["class","text-center"]],null,null,null,null,null)),(l()(),t.hb(16777216,null,null,1,null,P)),t.qb(20,16384,null,0,a.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null),(l()(),t.rb(21,0,null,null,2,"td",[["class","text-center"]],null,null,null,null,null)),(l()(),t.hb(16777216,null,null,1,null,z)),t.qb(23,16384,null,0,a.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null)],function(l,n){l(n,9,0,n.context.$implicit.enabled),l(n,11,0,!n.context.$implicit.enabled),l(n,17,0,n.context.$implicit.roles),l(n,20,0,"FORCE_CHANGE_PASSWORD"===n.context.$implicit.status);var u=!n.context.$implicit.roles.includes("IMPORTER");l(n,23,0,u)},function(l,n){l(n,2,0,n.context.$implicit.username),l(n,4,0,n.context.$implicit.name,n.context.$implicit.firstname),l(n,6,0,n.context.$implicit.email),l(n,13,0,t.Jb(n,13,0,t.Bb(n,14).transform("ADMIN.USER.STATUSES."+n.context.$implicit.status)))})}function T(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,29,"div",[],null,null,null,null,null)),(l()(),t.rb(1,0,null,null,28,"table",[["class","table table-hover"],["id","users-table"]],null,null,null,null,null)),(l()(),t.rb(2,0,null,null,24,"thead",[["class","thead-light"]],null,null,null,null,null)),(l()(),t.rb(3,0,null,null,23,"tr",[],null,null,null,null,null)),(l()(),t.rb(4,0,null,null,2,"th",[["scope","col"]],null,null,null,null,null)),(l()(),t.Ib(5,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(7,0,null,null,3,"th",[["scope","col"]],null,null,null,null,null)),(l()(),t.Ib(8,null,[""," / ",""])),t.Db(131072,s.i,[s.j,t.h]),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(11,0,null,null,2,"th",[["scope","col"]],null,null,null,null,null)),(l()(),t.Ib(12,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(14,0,null,null,2,"th",[["scope","col"]],null,null,null,null,null)),(l()(),t.Ib(15,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(17,0,null,null,2,"th",[["scope","col"]],null,null,null,null,null)),(l()(),t.Ib(18,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(20,0,null,null,2,"th",[["scope","col"]],null,null,null,null,null)),(l()(),t.Ib(21,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(23,0,null,null,0,"th",[["scope","col"]],null,null,null,null,null)),(l()(),t.rb(24,0,null,null,2,"th",[["class","text-center text-primary"],["scope","col"]],null,null,null,null,null)),(l()(),t.rb(25,0,null,null,1,"button",[["class","btn btn-sm btn-info"],["id","add-user-button"]],null,[[null,"click"]],function(l,n,u){var t=!0;return"click"===n&&(t=!1!==l.component.add()&&t),t},null,null)),(l()(),t.rb(26,0,null,null,0,"em",[["class","fa fa-user-plus"]],null,null,null,null,null)),(l()(),t.rb(27,0,null,null,2,"tbody",[],null,null,null,null,null)),(l()(),t.hb(16777216,null,null,1,null,x)),t.qb(29,278528,null,0,a.j,[t.P,t.M,t.t],{ngForOf:[0,"ngForOf"]},null)],function(l,n){l(n,29,0,n.component.users)},function(l,n){l(n,5,0,t.Jb(n,5,0,t.Bb(n,6).transform("ADMIN.USER.LOGIN"))),l(n,8,0,t.Jb(n,8,0,t.Bb(n,9).transform("ADMIN.USER.NAME")),t.Jb(n,8,1,t.Bb(n,10).transform("ADMIN.USER.FIRSTNAME"))),l(n,12,0,t.Jb(n,12,0,t.Bb(n,13).transform("ADMIN.USER.EMAIL"))),l(n,15,0,t.Jb(n,15,0,t.Bb(n,16).transform("ADMIN.USER.ENABLED"))),l(n,18,0,t.Jb(n,18,0,t.Bb(n,19).transform("ADMIN.USER.STATUS"))),l(n,21,0,t.Jb(n,21,0,t.Bb(n,22).transform("ADMIN.USER.ROLE")))})}function O(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,1,"app-menu",[],null,null,null,b.b,b.a)),t.qb(1,114688,null,0,c.a,[d.a,f.a],null,null),(l()(),t.rb(2,0,null,null,12,"div",[["class","bakery-container bg"],["id","administration-container"]],null,null,null,null,null)),(l()(),t.rb(3,0,null,null,11,"div",[["class","container bakery-sub-container"]],null,null,null,null,null)),(l()(),t.hb(16777216,null,null,1,null,C)),t.qb(5,16384,null,0,a.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null),(l()(),t.hb(16777216,null,null,1,null,R)),t.qb(7,16384,null,0,a.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null),(l()(),t.rb(8,0,null,null,2,"h3",[],null,null,null,null,null)),(l()(),t.Ib(9,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.hb(16777216,null,null,1,null,M)),t.qb(12,16384,null,0,a.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null),(l()(),t.hb(16777216,null,null,1,null,T)),t.qb(14,16384,null,0,a.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null)],function(l,n){var u=n.component;l(n,1,0),l(n,5,0,u.errDisplay),l(n,7,0,u.infoDisplay),l(n,12,0,u.loading),l(n,14,0,!u.loading)},function(l,n){l(n,9,0,t.Jb(n,9,0,t.Bb(n,10).transform("ADMIN.USER.TITLE")))})}function w(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,1,"app-admin",[],null,null,null,O,D)),t.qb(1,114688,null,0,E,[h,o.v,t.A,y.d],null,null)],function(l,n){l(n,1,0)},null)}var F=t.nb("app-admin",E,w,{},{},[]),_=t.pb({encapsulation:0,styles:[[""]],data:{}});function J(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,4,"option",[],null,null,null,null,null)),t.qb(1,147456,null,0,y.p,[t.k,t.E,[8,null]],{ngValue:[0,"ngValue"]},null),t.qb(2,147456,null,0,y.x,[t.k,t.E,[2,y.s]],{ngValue:[0,"ngValue"]},null),(l()(),t.Ib(3,null,["",""])),t.Db(131072,s.i,[s.j,t.h])],function(l,n){l(n,1,0,n.context.$implicit),l(n,2,0,n.context.$implicit)},function(l,n){l(n,3,0,t.Jb(n,3,0,t.Bb(n,4).transform("ADMIN.USER.ROLES."+n.context.$implicit)))})}function K(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,6,"div",[["class","modal-header"]],null,null,null,null,null)),(l()(),t.rb(1,0,null,null,2,"h4",[["class","modal-title"]],null,null,null,null,null)),(l()(),t.Ib(2,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(4,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(l,n,u){var t=!0;return"click"===n&&(t=!1!==l.component.activeModal.dismiss()&&t),t},null,null)),(l()(),t.rb(5,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(l()(),t.Ib(-1,null,["\xd7"])),(l()(),t.rb(7,0,null,null,85,"form",[["id","user-edition-form"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(l,n,u){var e=!0,r=l.component;return"submit"===n&&(e=!1!==t.Bb(l,9).onSubmit(u)&&e),"reset"===n&&(e=!1!==t.Bb(l,9).onReset()&&e),"ngSubmit"===n&&(e=!1!==r.close()&&e),e},null,null)),t.qb(8,16384,null,0,y.y,[],null,null),t.qb(9,540672,null,0,y.f,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),t.Fb(2048,null,y.b,null,[y.f]),t.qb(11,16384,null,0,y.m,[[4,y.b]],null,null),(l()(),t.rb(12,0,null,null,73,"div",[["class","modal-body"]],null,null,null,null,null)),(l()(),t.rb(13,0,null,null,72,"div",[["class","top user-content"]],null,null,null,null,null)),(l()(),t.rb(14,0,null,null,12,"div",[["class","form-group row"]],null,null,null,null,null)),(l()(),t.rb(15,0,null,null,2,"label",[["class","col-sm-3 col-form-label field"],["for","username-input"]],null,null,null,null,null)),(l()(),t.Ib(16,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(18,0,null,null,8,"div",[["class","col-sm-9"]],null,null,null,null,null)),(l()(),t.rb(19,0,null,null,7,"input",[["class","form-control"],["formControlName","username"],["id","username-input"],["required",""],["type","text"]],[[1,"disabled",0],[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(l,n,u){var e=!0;return"input"===n&&(e=!1!==t.Bb(l,20)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Bb(l,20).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Bb(l,20)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Bb(l,20)._compositionEnd(u.target.value)&&e),e},null,null)),t.qb(20,16384,null,0,y.c,[t.E,t.k,[2,y.a]],null,null),t.qb(21,16384,null,0,y.r,[],{required:[0,"required"]},null),t.Fb(1024,null,y.i,function(l){return[l]},[y.r]),t.Fb(1024,null,y.j,function(l){return[l]},[y.c]),t.qb(24,671744,null,0,y.e,[[3,y.b],[6,y.i],[8,null],[6,y.j],[2,y.w]],{name:[0,"name"]},null),t.Fb(2048,null,y.k,null,[y.e]),t.qb(26,16384,null,0,y.l,[[4,y.k]],null,null),(l()(),t.rb(27,0,null,null,12,"div",[["class","form-group row"]],null,null,null,null,null)),(l()(),t.rb(28,0,null,null,2,"label",[["class","col-sm-3 col-form-label field"],["for","name-input"]],null,null,null,null,null)),(l()(),t.Ib(29,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(31,0,null,null,8,"div",[["class","col-sm-9"]],null,null,null,null,null)),(l()(),t.rb(32,0,null,null,7,"input",[["class","form-control"],["formControlName","name"],["id","name-input"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(l,n,u){var e=!0;return"input"===n&&(e=!1!==t.Bb(l,33)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Bb(l,33).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Bb(l,33)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Bb(l,33)._compositionEnd(u.target.value)&&e),e},null,null)),t.qb(33,16384,null,0,y.c,[t.E,t.k,[2,y.a]],null,null),t.qb(34,16384,null,0,y.r,[],{required:[0,"required"]},null),t.Fb(1024,null,y.i,function(l){return[l]},[y.r]),t.Fb(1024,null,y.j,function(l){return[l]},[y.c]),t.qb(37,671744,null,0,y.e,[[3,y.b],[6,y.i],[8,null],[6,y.j],[2,y.w]],{name:[0,"name"]},null),t.Fb(2048,null,y.k,null,[y.e]),t.qb(39,16384,null,0,y.l,[[4,y.k]],null,null),(l()(),t.rb(40,0,null,null,12,"div",[["class","form-group row"]],null,null,null,null,null)),(l()(),t.rb(41,0,null,null,2,"label",[["class","col-sm-3 col-form-label field"],["for","firstname-input"]],null,null,null,null,null)),(l()(),t.Ib(42,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(44,0,null,null,8,"div",[["class","col-sm-9"]],null,null,null,null,null)),(l()(),t.rb(45,0,null,null,7,"input",[["class","form-control"],["formControlName","firstname"],["id","firstname-input"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(l,n,u){var e=!0;return"input"===n&&(e=!1!==t.Bb(l,46)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Bb(l,46).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Bb(l,46)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Bb(l,46)._compositionEnd(u.target.value)&&e),e},null,null)),t.qb(46,16384,null,0,y.c,[t.E,t.k,[2,y.a]],null,null),t.qb(47,16384,null,0,y.r,[],{required:[0,"required"]},null),t.Fb(1024,null,y.i,function(l){return[l]},[y.r]),t.Fb(1024,null,y.j,function(l){return[l]},[y.c]),t.qb(50,671744,null,0,y.e,[[3,y.b],[6,y.i],[8,null],[6,y.j],[2,y.w]],{name:[0,"name"]},null),t.Fb(2048,null,y.k,null,[y.e]),t.qb(52,16384,null,0,y.l,[[4,y.k]],null,null),(l()(),t.rb(53,0,null,null,16,"div",[["class","form-group row"]],null,null,null,null,null)),(l()(),t.rb(54,0,null,null,2,"label",[["class","col-sm-3 col-form-label field"],["for","email-input"]],null,null,null,null,null)),(l()(),t.Ib(55,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(57,0,null,null,12,"div",[["class","col-sm-9"]],null,null,null,null,null)),(l()(),t.rb(58,0,null,null,11,"div",[["class","input-group mb-2"]],null,null,null,null,null)),(l()(),t.rb(59,0,null,null,2,"div",[["class","input-group-prepend"]],null,null,null,null,null)),(l()(),t.rb(60,0,null,null,1,"div",[["class","input-group-text"]],null,null,null,null,null)),(l()(),t.Ib(-1,null,["@"])),(l()(),t.rb(62,0,null,null,7,"input",[["class","form-control"],["formControlName","email"],["id","email-input"],["required",""],["type","text"]],[[1,"disabled",0],[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(l,n,u){var e=!0;return"input"===n&&(e=!1!==t.Bb(l,63)._handleInput(u.target.value)&&e),"blur"===n&&(e=!1!==t.Bb(l,63).onTouched()&&e),"compositionstart"===n&&(e=!1!==t.Bb(l,63)._compositionStart()&&e),"compositionend"===n&&(e=!1!==t.Bb(l,63)._compositionEnd(u.target.value)&&e),e},null,null)),t.qb(63,16384,null,0,y.c,[t.E,t.k,[2,y.a]],null,null),t.qb(64,16384,null,0,y.r,[],{required:[0,"required"]},null),t.Fb(1024,null,y.i,function(l){return[l]},[y.r]),t.Fb(1024,null,y.j,function(l){return[l]},[y.c]),t.qb(67,671744,null,0,y.e,[[3,y.b],[6,y.i],[8,null],[6,y.j],[2,y.w]],{name:[0,"name"]},null),t.Fb(2048,null,y.k,null,[y.e]),t.qb(69,16384,null,0,y.l,[[4,y.k]],null,null),(l()(),t.rb(70,0,null,null,15,"div",[["class","form-group row"]],null,null,null,null,null)),(l()(),t.rb(71,0,null,null,2,"label",[["class","col-sm-3 col-form-label field"],["for","roles-select"]],null,null,null,null,null)),(l()(),t.Ib(72,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(74,0,null,null,11,"div",[["class","col-sm-9"]],null,null,null,null,null)),(l()(),t.rb(75,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(l()(),t.rb(76,0,null,null,9,"select",[["class","form-control"],["formControlName","roles"],["id","roles-select"],["multiple",""],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"change"],[null,"blur"]],function(l,n,u){var e=!0;return"change"===n&&(e=!1!==t.Bb(l,77).onChange(u.target)&&e),"blur"===n&&(e=!1!==t.Bb(l,77).onTouched()&&e),e},null,null)),t.qb(77,16384,null,0,y.s,[t.E,t.k],null,null),t.qb(78,16384,null,0,y.r,[],{required:[0,"required"]},null),t.Fb(1024,null,y.i,function(l){return[l]},[y.r]),t.Fb(1024,null,y.j,function(l){return[l]},[y.s]),t.qb(81,671744,null,0,y.e,[[3,y.b],[6,y.i],[8,null],[6,y.j],[2,y.w]],{name:[0,"name"]},null),t.Fb(2048,null,y.k,null,[y.e]),t.qb(83,16384,null,0,y.l,[[4,y.k]],null,null),(l()(),t.hb(16777216,null,null,1,null,J)),t.qb(85,278528,null,0,a.j,[t.P,t.M,t.t],{ngForOf:[0,"ngForOf"]},null),(l()(),t.rb(86,0,null,null,6,"div",[["class","modal-footer"]],null,null,null,null,null)),(l()(),t.rb(87,0,null,null,2,"button",[["class","btn btn-outline-primary"]],null,[[null,"click"]],function(l,n,u){var t=!0;return"click"===n&&(t=!1!==l.component.activeModal.dismiss()&&t),t},null,null)),(l()(),t.Ib(88,null,["",""])),t.Db(131072,s.i,[s.j,t.h]),(l()(),t.rb(90,0,null,null,2,"button",[["class","btn btn-primary"],["id","confirm-user-button"],["type","submit"]],[[8,"disabled",0]],null,null,null,null)),(l()(),t.Ib(91,null,["",""])),t.Db(131072,s.i,[s.j,t.h])],function(l,n){var u=n.component;l(n,9,0,u.formUser),l(n,21,0,""),l(n,24,0,"username"),l(n,34,0,""),l(n,37,0,"name"),l(n,47,0,""),l(n,50,0,"firstname"),l(n,64,0,""),l(n,67,0,"email"),l(n,78,0,""),l(n,81,0,"roles"),l(n,85,0,u.profiles)},function(l,n){var u=n.component;l(n,2,0,t.Jb(n,2,0,t.Bb(n,3).transform("ADMIN.USER.USER_FORM.TITLE"))),l(n,7,0,t.Bb(n,11).ngClassUntouched,t.Bb(n,11).ngClassTouched,t.Bb(n,11).ngClassPristine,t.Bb(n,11).ngClassDirty,t.Bb(n,11).ngClassValid,t.Bb(n,11).ngClassInvalid,t.Bb(n,11).ngClassPending),l(n,16,0,t.Jb(n,16,0,t.Bb(n,17).transform("ADMIN.USER.LOGIN"))),l(n,19,0,u.isEdit?"":null,t.Bb(n,21).required?"":null,t.Bb(n,26).ngClassUntouched,t.Bb(n,26).ngClassTouched,t.Bb(n,26).ngClassPristine,t.Bb(n,26).ngClassDirty,t.Bb(n,26).ngClassValid,t.Bb(n,26).ngClassInvalid,t.Bb(n,26).ngClassPending),l(n,29,0,t.Jb(n,29,0,t.Bb(n,30).transform("ADMIN.USER.NAME"))),l(n,32,0,t.Bb(n,34).required?"":null,t.Bb(n,39).ngClassUntouched,t.Bb(n,39).ngClassTouched,t.Bb(n,39).ngClassPristine,t.Bb(n,39).ngClassDirty,t.Bb(n,39).ngClassValid,t.Bb(n,39).ngClassInvalid,t.Bb(n,39).ngClassPending),l(n,42,0,t.Jb(n,42,0,t.Bb(n,43).transform("ADMIN.USER.FIRSTNAME"))),l(n,45,0,t.Bb(n,47).required?"":null,t.Bb(n,52).ngClassUntouched,t.Bb(n,52).ngClassTouched,t.Bb(n,52).ngClassPristine,t.Bb(n,52).ngClassDirty,t.Bb(n,52).ngClassValid,t.Bb(n,52).ngClassInvalid,t.Bb(n,52).ngClassPending),l(n,55,0,t.Jb(n,55,0,t.Bb(n,56).transform("ADMIN.USER.EMAIL"))),l(n,62,0,u.isEdit?"":null,t.Bb(n,64).required?"":null,t.Bb(n,69).ngClassUntouched,t.Bb(n,69).ngClassTouched,t.Bb(n,69).ngClassPristine,t.Bb(n,69).ngClassDirty,t.Bb(n,69).ngClassValid,t.Bb(n,69).ngClassInvalid,t.Bb(n,69).ngClassPending),l(n,72,0,t.Jb(n,72,0,t.Bb(n,73).transform("ADMIN.USER.ROLE"))),l(n,76,0,t.Bb(n,78).required?"":null,t.Bb(n,83).ngClassUntouched,t.Bb(n,83).ngClassTouched,t.Bb(n,83).ngClassPristine,t.Bb(n,83).ngClassDirty,t.Bb(n,83).ngClassValid,t.Bb(n,83).ngClassInvalid,t.Bb(n,83).ngClassPending),l(n,88,0,t.Jb(n,88,0,t.Bb(n,89).transform("ADMIN.USER.USER_FORM.CANCEL"))),l(n,90,0,u.formUser.invalid),l(n,91,0,t.Jb(n,91,0,t.Bb(n,92).transform("ADMIN.USER.USER_FORM."+u.action)))})}function $(l){return t.Kb(0,[(l()(),t.rb(0,0,null,null,1,"app-user-form",[],null,null,null,K,_)),t.qb(1,114688,null,0,v,[o.d,I.a],null,null)],function(l,n){l(n,1,0)},null)}var L=t.nb("app-user-form",v,$,{formUser:"formUser",action:"action"},{},[]),V=u("u93f"),G=u("ouEH"),Z=u("GrIV"),Y=u("t/Na"),W=u("ZYCi"),H=u("ZIhg"),X=u("2+jN"),Q=u("yj9e"),ll=u("6hn5"),nl=u("foBm"),ul=u("PCNd"),tl={expectedRole:"ADMIN"},el=function(){return function(){}}();u.d(n,"AdminModuleNgFactory",function(){return rl});var rl=t.ob(e,[],function(l){return t.yb([t.zb(512,t.j,t.cb,[[8,[r.a,r.b,r.j,r.k,r.g,r.h,r.i,i.a,F,L]],[3,t.j],t.y]),t.zb(4608,a.m,a.l,[t.v,[2,a.B]]),t.zb(4608,y.v,y.v,[]),t.zb(4608,o.v,o.v,[t.j,t.r,o.hb,o.w]),t.zb(4608,y.d,y.d,[]),t.zb(4608,g.a,g.a,[V.a,G.a]),t.zb(4608,d.a,d.a,[g.a]),t.zb(4608,Z.a,Z.a,[Y.c,W.k,d.a,g.a]),t.zb(4608,H.a,H.a,[t.A,W.k,Z.a,d.a]),t.zb(4608,f.a,f.a,[d.a]),t.zb(4608,X.a,X.a,[W.k,f.a]),t.zb(4608,Q.a,Q.a,[W.k,f.a]),t.zb(4608,I.a,I.a,[Y.c]),t.zb(4608,ll.a,ll.a,[]),t.zb(4608,o.n,o.o,[]),t.zb(4608,h,h,[Y.c,g.a]),t.zb(1073742336,s.g,s.g,[]),t.zb(1073742336,a.b,a.b,[]),t.zb(1073742336,y.u,y.u,[]),t.zb(1073742336,y.h,y.h,[]),t.zb(1073742336,o.c,o.c,[]),t.zb(1073742336,o.g,o.g,[]),t.zb(1073742336,o.h,o.h,[]),t.zb(1073742336,o.l,o.l,[]),t.zb(1073742336,o.m,o.m,[]),t.zb(1073742336,o.s,o.s,[]),t.zb(1073742336,o.t,o.t,[]),t.zb(1073742336,o.x,o.x,[]),t.zb(1073742336,o.B,o.B,[]),t.zb(1073742336,o.G,o.G,[]),t.zb(1073742336,o.J,o.J,[]),t.zb(1073742336,o.M,o.M,[]),t.zb(1073742336,o.P,o.P,[]),t.zb(1073742336,o.T,o.T,[]),t.zb(1073742336,o.U,o.U,[]),t.zb(1073742336,o.V,o.V,[]),t.zb(1073742336,o.y,o.y,[]),t.zb(1073742336,W.m,W.m,[[2,W.r],[2,W.k]]),t.zb(1073742336,nl.a,nl.a,[]),t.zb(1073742336,y.q,y.q,[]),t.zb(1073742336,ul.a,ul.a,[]),t.zb(1073742336,el,el,[]),t.zb(1073742336,e,e,[]),t.zb(1024,W.i,function(){return[[{path:"",component:E,canActivate:[H.a,X.a],data:tl},{path:"**",redirectTo:"/error/404"}]]},[])])})}}]);