PageSourceSearch

https://aant.online/chunk-w-7g0O9F.js

js aant.online collected 2026-10-09 03:36:49 UTC 3,518 bytes, 1 lines download raw bytes

1import {c as g,f as fe,aj as Ro,a6 as oo,U,Q as Qh,H as Hi,ak as L,a3 as oe,aa as s,a9 as n$1,ac as dt,a8 as As,F as FC,ae as Cl,s as su,h as tu,q as qh,al as zr,n as cn,o as ou,j as qr,r as Fh,A as vs,K as Kb,B as hl,D as Kg,Z as Tm,_ as eT,C as rm,i as iw,O as Qg,$ as bm}from'./main-ZKOU4EEX.js';var re=(()=>{class n{constructor(){this.dialog=g(fe),this.userService=g(Ro),this.currentUserService=g(oo),this.confirmDialog=g(U),this.users=[],this.usersColumns=[],this.actions=[],this.inviteForm=new Qh({}),this.inviteEmail="",this.emailValidator=[L.emailValidator(),Hi.required],this.currentUserService.get().subscribe(t=>{this.currentUser=t,this.usersColumns=[new oe("firstName","First Name"),new oe("lastName","Last Name"),new oe("email","Email")];let i=new s;this.actions=i.addAction(new n$1("delete","Delete",s=>this.deleteUser(s.userId)).showWhen(this.shouldShowDeleteButton.bind(this))).getActions();});}ngOnInit(){this.getUsers(),this.inviteForm=new Qh({});}getUsers(){this.userService.getLicenceSupportUsers().subscribe(e=>this.users=e);}createUser(){this.inviteForm.valid&&this.userService.inviteUser(this.inviteEmail,void 0,false,true).subscribe(e=>{this.showMessageDialog("User Invited",e),this.getUsers();},e=>this.showMessageDialog("An Error Occurred",e.error));}showMessageDialog(e,t){this.dialog.open(dt,{data:{title:e,message:t.message,confirmText:"Ok"}});}shouldShowDeleteButton(e){return e.userId!==this.currentUser.id}deleteUser(e){e!==this.currentUser.id&&this.userService.deleteUser(e).subscribe(t=>{this.showMessageDialog("User Deleted",t),this.getUsers();},t=>this.showYesNoDialog("Un-assign User?",t.error.message,e));}showYesNoDialog(e,t,i){this.confirmDialog.open({title:e,message:t,confirmText:"Yes",cancelText:"No"}),this.confirmDialog.confirmed().subscribe(s=>{s&&this.userService.getUser(i).subscribe(r=>this.userService.putRoles(r.id,r.roles.filter(G=>G!==As.LicenseSupport)).subscribe(()=>this.getUsers()));});}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=FC({type:n,selectors:[["app-license-support-users"]],decls:7,vars:7,consts:[[3,"columns","data","actions"],[1,"row","field-with-button"],["name","Email Address",1,"field",3,"valueChange","formGroup","validators","value"],["type","submit",3,"clicked","disabled"]],template:function(t,i){t&1&&(vs(0,"h2"),Kb(1,"License Support Users"),hl(),Kg(2,"app-table",0),vs(3,"form",1)(4,"app-text-field",2),Tm("valueChange",function(r){return eT(i.inviteEmail,r)||(i.inviteEmail=r),r}),hl(),vs(5,"app-button",3),rm("clicked",function(){return i.createUser()}),Kb(6,"Create User"),hl()()),t&2&&(iw(2),Qg("columns",i.usersColumns)("data",i.users)("actions",i.actions),iw(2),Qg("formGroup",i.inviteForm)("validators",i.emailValidator),bm("value",i.inviteEmail),iw(),Qg("disabled",!i.inviteForm.valid));},dependencies:[Cl,su,tu,qh,zr,cn,ou,qr,Fh],styles:["[_nghost-%COMP%]{padding:2em;display:block;position:relative}.field-with-button[_ngcontent-%COMP%]{display:flex;align-items:baseline}.field-with-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0 .5em;flex-basis:25%}.field-with-button[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{flex-grow:1;text-align:center}.field-with-button[_ngcontent-%COMP%]   .grey-box[_ngcontent-%COMP%]{background-color:var(--datebgcolour);padding:5px 16px}.field-with-button[_ngcontent-%COMP%]     label{text-align:end;padding-right:0}h2[_ngcontent-%COMP%]{font-size:26px;padding-bottom:16px}"],changeDetection:1});}}return n})();export{re as LicenseSupportUsersComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.