PageSourceSearch

https://piikmall.com/7938.39b944779ba5da46.js

js piikmall.com collected 2026-10-08 20:38:23 UTC 26,411 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkharbor_portal=self.webpackChunkharbor_portal||[]).push([[7938],{7938:(D,E,o)=>{o.r(E),o.d(E,{UserModule:()=>ee});var d=o(7659),P=o(7468),T=o(7673),e=o(7705),R=o(1877),m=o(3351),I=o(6838),_=o(3008),w=o(3064),l=o(925),C=o(3955);let h=(()=>{class i{constructor(n,r,t){this.session=n,this.userService=r,this.msgHandler=t,this.opened=!1,this.onGoing=!1,this.formValueChanged=!1,this.addNew=new e.bkB}getNewUser(){return this.newUserForm.getData()}get inProgress(){return this.onGoing}get isValid(){return this.newUserForm.isValid&&null==this.error}formValueChange(n){null!=this.error&&(this.error=null),this.formValueChanged=!0,this.inlineAlert.close()}open(){this.newUserForm.reset(),this.formValueChanged=!1,this.onGoing=!1,this.error=null,this.inlineAlert.close(),this.opened=!0}close(){this.formValueChanged?this.newUserForm.isEmpty()?this.opened=!1:this.inlineAlert.showInlineConfirmation({message:"ALERT.FORM_CHANGE_CONFIRMATION"}):this.opened=!1}confirmCancel(n){this.opened=!1}create(){if(!this.isValid)return;let n=this.getNewUser();if(!n)return;let r=this.session.getCurrentUser();!r||!r.has_admin_role||(this.onGoing=!0,this.userService.addUser(n).subscribe(()=>{this.onGoing=!1,this.addNew.emit(n),this.opened=!1,this.msgHandler.showSuccess("USER.SAVE_SUCCESS")},t=>{this.onGoing=!1,this.error=t,this.msgHandler.isAppLevel(t)?(this.msgHandler.handleError(t),this.opened=!1):this.inlineAlert.showInlineError(t)}))}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(I.Q),e.rXU(_.D),e.rXU(w.l))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["new-user-modal"]],viewQuery:function(r,t){if(1&r&&(e.GBs(R.h,7),e.GBs(m.r,5)),2&r){let s;e.mGM(s=e.lsd())&&(t.newUserForm=s.first),e.mGM(s=e.lsd())&&(t.inlineAlert=s.first)}},outputs:{addNew:"addNew"},decls:15,vars:14,consts:[[3,"clrModalOpen","clrModalStaticBackdrop","clrModalClosable","clrModalOpenChange"],[1,"modal-title"],[1,"modal-title",3,"confirmEvt"],[1,"modal-body","body-format"],[3,"valueChange"],[1,"modal-footer"],[1,"spinner","spinner-inline","loading-top",3,"hidden"],["type","button",1,"btn","btn-outline",3,"click"],["type","button","id","save-button",1,"btn","btn-primary",3,"disabled","click"]],template:function(r,t){1&r&&(e.j41(0,"clr-modal",0),e.bIt("clrModalOpenChange",function(a){return t.opened=a}),e.j41(1,"h3",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"inline-alert",2),e.bIt("confirmEvt",function(a){return t.confirmCancel(a)}),e.k0s(),e.j41(5,"div",3)(6,"new-user-form",4),e.bIt("valueChange",function(a){return t.formValueChange(a)}),e.k0s()(),e.j41(7,"div",5),e.nrm(8,"span",6),e.j41(9,"button",7),e.bIt("click",function(){return t.close()}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"button",8),e.bIt("click",function(){return t.create()}),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()),2&r&&(e.Y8G("clrModalOpen",t.opened)("clrModalStaticBackdrop",!0)("clrModalClosable",!1),e.R7$(2),e.JRh(e.bMT(3,8,"USER.ADD_USER_TITLE")),e.R7$(6),e.Y8G("hidden",!1===t.inProgress),e.R7$(2),e.SpI(" ",e.bMT(11,10,"BUTTON.CANCEL")," "),e.R7$(2),e.Y8G("disabled",!t.isValid||t.inProgress),e.R7$(1),e.SpI(" ",e.bMT(14,12,"BUTTON.OK")," "))},dependencies:[l.bZN,l.zN1,m.r,R.h,C.D9],styles:[".form-group-override[_ngcontent-%COMP%]{padding-left:170px!important}.form-group-label-override[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.sub-label-for-input[_ngcontent-%COMP%]{position:absolute;top:26px;font-size:10px;font-weight:400;line-height:12px;left:170px}.body-format[_ngcontent-%COMP%]{overflow-y:hidden}.loading-top[_ngcontent-%COMP%]{top:8px}",".modal-title{padding-bottom:0}  .modal-header .modal-title{padding:0}"]})}}return i})();var p=o(3817),c=o(9417),u=o(177);const S=["resetPwdForm"];function F(i,g){if(1&i){const n=e.RV6();e.j41(0,"clr-icon",23),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.showNewPwd=!t.showNewPwd)}),e.k0s()}}function A(i,g){if(1&i){const n=e.RV6();e.j41(0,"clr-icon",24),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.showNewPwd=!t.showNewPwd)}),e.k0s()}}function y(i,g){1&i&&(e.j41(0,"clr-control-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i&&(e.R7$(1),e.SpI(" ",e.bMT(2,1,"TOOLTIP.PASSWORD")," "))}function k(i,g){if(1&i){const n=e.RV6();e.j41(0,"clr-icon",23),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.showConfirmPwd=!t.showConfirmPwd)}),e.k0s()}}function G(i,g){if(1&i){const n=e.RV6();e.j41(0,"clr-icon",24),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.showConfirmPwd=!t.showConfirmPwd)}),e.k0s()}}function j(i,g){1&i&&(e.j41(0,"clr-control-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i&&(e.R7$(1),e.SpI(" ",e.bMT(2,1,"TOOLTIP.CONFIRM_PWD")," "))}let v=(()=>{class i{constructor(n,r,t,s){this.userService=n,this.msgHandler=r,this.translateService=t,this.ref=s,this.showNewPwd=!1,this.showConfirmPwd=!1,this.opened=!1,this.onGoing=!1,this.password="",this.validationState={newPassword:!0,reNewPassword:!0},this.confirmPwd=""}get showProgress(){return this.onGoing}get isValid(){return this.resetPwdForm&&this.resetPwdForm.valid&&this.samePassword()}getValidationState(n){return this.validationState&&this.validationState[n]}confirmCancel(n){this.opened=!1}open(n){this.showConfirmPwd=!1,this.showNewPwd=!1,this.onGoing=!1,this.validationState={newPassword:!0,reNewPassword:!0},this.resetPwdForm.resetForm(),this.inlineAlert.close(),this.userId=n,this.opened=!0}close(){this.password||this.confirmPwd?this.inlineAlert.showInlineConfirmation({message:"ALERT.FORM_CHANGE_CONFIRMATION"}):this.opened=!1}
1send(){!this.password||!this.confirmPwd||this.isValid&&(this.onGoing=!0,this.userService.changePassword(this.userId,this.password,this.confirmPwd).subscribe(()=>{this.onGoing=!1,this.opened=!1,this.msgHandler.showSuccess("USER.RESET_OK");let n=setInterval(()=>this.ref.markForCheck(),100);setTimeout(()=>clearInterval(n),2e3)},n=>{this.onGoing=!1,400===n.status?this.translateService.get("USER.EXISTING_PASSWORD").subscribe(t=>{this.inlineAlert.showInlineError(t)}):this.inlineAlert.showInlineError(n);let r=setInterval(()=>this.ref.markForCheck(),100);setTimeout(()=>clearInterval(r),2e3)}))}handleValidation(n,r){r?(this.validationState[n]=this.getControlValidationState(n),this.validationState[n]&&(this.validationState.reNewPassword=this.samePassword())):this.validationState[n]=!0}getControlValidationState(n){if(this.resetPwdForm){let r=this.resetPwdForm.controls[n];if(r)return r.valid}return!1}samePassword(){if(this.resetPwdForm){let n=this.resetPwdForm.controls.newPassword,r=this.resetPwdForm.controls.reNewPassword;if(n&&r)return n.value===r.value}return!1}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(_.D),e.rXU(w.l),e.rXU(C.c$),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["change-password"]],viewQuery:function(r,t){if(1&r&&(e.GBs(S,5),e.GBs(m.r,5)),2&r){let s;e.mGM(s=e.lsd())&&(t.resetPwdForm=s.first),e.mGM(s=e.lsd())&&(t.inlineAlert=s.first)}},decls:42,vars:40,consts:[[3,"clrModalOpen","clrModalStaticBackdrop","clrModalClosable","clrModalOpenChange"],[1,"modal-title"],[1,"modal-title",3,"confirmEvt"],[1,"modal-body","body-format"],[1,"clr-form","clr-form-horizontal"],["resetPwdForm","ngForm"],[1,"clr-form-control"],["for","newPassword",1,"clr-control-label","required"],[1,"clr-control-container"],[1,"clr-input-wrapper"],["id","newPassword","required","","pattern","^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,128}$","name","newPassword","size","25",1,"clr-input","pwd-input",3,"type","placeholder","ngModel","ngModelChange","input","blur"],["newPassInput","ngModel"],["shape","eye","class","pw-eye",3,"click",4,"ngIf"],["shape","eye-hide","class","pw-eye",3,"click",4,"ngIf"],["shape","exclamation-circle",1,"clr-validate-icon"],[4,"ngIf"],["for","reNewPassword",1,"clr-control-label","required"],["id","reNewPassword","required","","pattern","^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,128}$","name","reNewPassword","size","25",1,"clr-input","pwd-input",3,"type","placeholder","ngModel","ngModelChange","input","blur"],["reNewPassInput",""],[1,"modal-footer"],[1,"spinner","spinner-inline","loading-top",3,"hidden"],["type","button",1,"btn","btn-outline",3,"click"],["type","button",1,"btn","btn-primary",3,"disabled","click"],["shape","eye",1,"pw-eye",3,"click"],["shape","eye-hide",1,"pw-eye",3,"click"]],template:function(r,t){1&r&&(e.j41(0,"clr-modal",0),e.bIt("clrModalOpenChange",function(a){return t.opened=a}),e.j41(1,"h3",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"inline-alert",2),e.bIt("confirmEvt",function(a){return t.confirmCancel(a)}),e.k0s(),e.j41(5,"div",3)(6,"form",4,5)(8,"div",6)(9,"label",7),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"div",8)(13,"div",9)(14,"input",10,11),e.bIt("ngModelChange",function(a){return t.password=a})("input",function(){return t.handleValidation("newPassword",!1)})("blur",function(){return t.handleValidation("newPassword",!0)}),e.nI1(16,"translate"),e.k0s(),e.DNE(17,F,1,0,"clr-icon",12),e.DNE(18,A,1,0,"clr-icon",13),e.nrm(19,"clr-icon",14),e.k0s(),e.DNE(20,y,3,3,"clr-control-error",15),e.k0s()(),e.j41(21,"div",6)(22,"label",16),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.j41(25,"div",8)(26,"div",9)(27,"input",17,18),e.bIt("ngModelChange",function(a){return t.confirmPwd=a})("input",function(){return t.handleValidation("reNewPassword",!1)})("blur",function(){return t.handleValidation("reNewPassword",!0)}),e.nI1(29,"translate"),e.k0s(),e.DNE(30,k,1,0,"clr-icon",12),e.DNE(31,G,1,0,"clr-icon",13),e.nrm(32,"clr-icon",14),e.k0s(),e.DNE(33,j,3,3,"clr-control-error",15),e.k0s()()()(),e.j41(34,"div",19),e.nrm(35,"span",20),e.j41(36,"button",21),e.bIt("click",function(){return t.close()}),e.EFF(37),e.nI1(38,"translate"),e.k0s(),e.j41(39,"button",22),e.bIt("click",function(){return t.send()}),e.EFF(40),e.nI1(41,"translate"),e.k0s()()()),2&r&&(e.Y8G("clrModalOpen",t.opened)("clrModalStaticBackdrop",!0)("clrModalClosable",!1),e.R7$(2),e.JRh(e.bMT(3,26,"RESET_PWD.TITLE")),e.R7$(8),e.JRh(e.bMT(11,28,"CHANGE_PWD.NEW_PWD")),e.R7$(2),e.AVh("clr-error",!t.getValidationState("newPassword")),e.R7$(2),e.FS9("placeholder",e.bMT(16,30,"PLACEHOLDER.NEW_PWD")),e.Y8G("type",t.showNewPwd?"text":"password")("ngModel",t.password),e.R7$(3),e.Y8G("ngIf",!t.showNewPwd),e.R7$(1),e.Y8G("ngIf",t.showNewPwd),e.R7$(2),e.Y8G("ngIf",!t.getValidationState("newPassword")),e.R7$(3),e.JRh(e.bMT(24,32,"CHANGE_PWD.CONFIRM_PWD")),e.R7$(2),e.AVh("clr-error",!t.getValidationState("reNewPassword")),e.R7$(2),e.FS9("placeholder",e.bMT(29,34,"PLACEHOLDER.CONFIRM_PWD")),e.Y8G("type",t.showConfirmPwd?"text":"password")("ngModel",t.confirmPwd),e.R7$(3),e.Y8G("ngIf",!t.showConfirmPwd),e.R7$(1),e.Y8G("ngIf",t.showConfirmPwd),e.R7$(2),e.Y8G("ngIf",!t.getValidationState("reNewPassword")),e.R7$(2),e.Y8G("hidden",!1===t.showProgress),e.R7$(2),e.SpI(" ",e.bMT(38,36,"BUTTON.CANCEL")," "),e.R7$(2),e.Y8G("disabled",!t.isValid||t.showProgress),e.R7$(1),e.SpI(" ",e.bMT(41,38,"BUTTON.OK")," "))},dependencies:[c.qT,c.me,c.BC,c.cb,c.YS,c.R_,c.vS,c.cV,l.U4n,l.bZN,l.zN1,l.aZZ,l.Hpg,u.bT,m.r,C.D9],styles:[".form[_ngcontent-%COMP%]   .form-block[_ngcontent-%COMP%], form[_ngcontent-%COMP%]   .form-block[_ngcontent-%COMP%]{margin:.5rem 0 2rem}.pw-eye[_ngcontent-%COMP%]{margin-left:-20px;margin-right:8px;
1cursor:pointer}.pwd-input[_ngcontent-%COMP%]{padding-right:26px}",".form-group-override[_ngcontent-%COMP%]{padding-left:170px!important}.form-group-label-override[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.sub-label-for-input[_ngcontent-%COMP%]{position:absolute;top:26px;font-size:10px;font-weight:400;line-height:12px;left:170px}.body-format[_ngcontent-%COMP%]{overflow-y:hidden}.loading-top[_ngcontent-%COMP%]{top:8px}"]})}}return i})();var U=o(6354),$=o(9437),f=o(8553),N=o(3366),O=o(4290),B=o(3154),L=o(1626),M=o(727),V=o(8599),z=o(9371),Y=o(7233),H=o(2247),X=o(2316);function W(i,g){if(1&i){const n=e.RV6();e.j41(0,"clr-dropdown-menu")(1,"clr-dropdown")(2,"button",25),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.openChangePwdModal())}),e.nrm(3,"clr-icon",26),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"div",27),e.j41(7,"button",28),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.deleteUsers(t.selectedRow))}),e.nrm(8,"clr-icon",29),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()}if(2&i){const n=e.XpG();e.R7$(2),e.Y8G("disabled",1!==n.selectedRow.length||!n.canCreateUser),e.R7$(2),e.SpI("\xa0",e.bMT(5,4,"RESET_PWD.TITLE")," "),e.R7$(3),e.Y8G("disabled",!n.selectedRow.length||n.onlySelf),e.R7$(2),e.SpI("\xa0",e.bMT(10,6,"USER.DEL_ACTION")," ")}}function x(i,g){1&i&&(e.j41(0,"clr-tooltip-content",30)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&i&&(e.R7$(2),e.JRh(e.bMT(3,1,"USER.UNKNOWN_TIP")))}function J(i,g){if(1&i&&(e.j41(0,"clr-dg-row",31)(1,"clr-dg-cell"),e.EFF(2),e.k0s(),e.j41(3,"clr-dg-cell"),e.EFF(4),e.k0s(),e.j41(5,"clr-dg-cell"),e.EFF(6),e.k0s(),e.j41(7,"clr-dg-cell"),e.EFF(8),e.nI1(9,"harborDatetime"),e.k0s()()),2&i){const n=g.$implicit,r=e.XpG();e.Y8G("clrDgItem",n),e.R7$(2),e.JRh(n.username),e.R7$(2),e.JRh(r.isSystemAdmin(n)),e.R7$(2),e.JRh(n.email),e.R7$(2),e.JRh(e.i5U(9,5,n.creation_time,"short"))}}function K(i,g){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i){e.XpG();const n=e.sdS(47);e.R7$(1),e.E5c("",n.firstItem+1," - ",n.lastItem+1," ",e.bMT(2,3,"USER.OF"),"")}}let Q=(()=>{class i{constructor(n,r,t,s,a,te,ne){this.userService=n,this.translate=r,this.deletionDialogService=t,this.msgHandler=s,this.session=a,this.appConfigService=te,this.operationService=ne,this.clrPageSizeOptions=N.xp,this.users=[],this.selectedRow=[],this.ISADMINISTRATOR="USER.ENABLE_ADMIN_ACTION",this.totalCount=0,this.currentPage=1,this.pageSize=(0,M.xM)(M.tZ.SYSTEM_USER_COMPONENT),this.onGoing=!0,this.adminMenuText="",this.adminColumn="",this.deletionSubscription=t.confirmationConfirm$.subscribe(b=>{b&&3===b.source&&1===b.state&&this.delUser(b.data)})}isMySelf(n){let r=this.session.getCurrentUser();return!(!r||r.user_id!==n)}get onlySelf(){return 1===this.selectedRow.length&&this.isMySelf(this.selectedRow[0].user_id)}get canCreateUser(){let n=this.appConfigService.getConfig();return!n||!("ldap_auth"===n.auth_mode||"uaa_auth"===n.auth_mode||"oidc_auth"===n.auth_mode)}get ifSameRole(){let n=[];return this.selectedRow.forEach(r=>{if(0===r.user_id||this.isMySelf(r.user_id))return!1;n.push(r.sysadmin_flag?1:0)}),n.length&&n.every(r=>0===r)?(this.ISADMINISTRATOR="USER.ENABLE_ADMIN_ACTION",!0):!(!n.length||!n.every(r=>1===r)||(this.ISADMINISTRATOR="USER.DISABLE_ADMIN_ACTION",0))}isSystemAdmin(n){if(!n)return"{{MISS}}";let r=n.sysadmin_flag?"USER.IS_ADMIN":"USER.IS_NOT_ADMIN";const t=this.appConfigService.getConfig();return t&&t.auth_mode!==N.CW.DB_AUTH&&!n.sysadmin_flag&&(r="USER.UNKNOWN"),this.translate.get(r).subscribe(s=>this.adminColumn=s),this.adminColumn}adminActions(n){return n?(this.translate.get(n.sysadmin_flag?"USER.DISABLE_ADMIN_ACTION":"USER.ENABLE_ADMIN_ACTION").subscribe(t=>this.adminMenuText=t),this.adminMenuText):"{{MISS}}"}get inProgress(){return this.onGoing}ngOnDestroy(){this.deletionSubscription&&this.deletionSubscription.unsubscribe(),this.timerHandler&&(clearInterval(this.timerHandler),this.timerHandler=null)}openChangePwdModal(){1===this.selectedRow.length&&this.changePwdDialog.open(this.selectedRow[0].user_id)}doFilter(n){this.selectedRow=[],this.currentTerm=n.trim(),this.currentPage=1,this.onGoing=!0,this.getUserListByPaging(
1)}changeAdminRole(){let n=[];if(this.selectedRow.length){if("USER.ENABLE_ADMIN_ACTION"===this.ISADMINISTRATOR)for(let r=0;r<this.selectedRow.length;r++){if(0===this.selectedRow[r].user_id||this.isMySelf(this.selectedRow[r].user_id))continue;let t=new p.K;t.user_id=this.selectedRow[r].user_id,t.sysadmin_flag=!0,n.push(this.userService.updateUserRole(t))}if("USER.DISABLE_ADMIN_ACTION"===this.ISADMINISTRATOR)for(let r=0;r<this.selectedRow.length;r++){if(0===this.selectedRow[r].user_id||this.isMySelf(this.selectedRow[r].user_id))continue;let t=new p.K;t.user_id=this.selectedRow[r].user_id,t.sysadmin_flag=!1,n.push(this.userService.updateUserRole(t))}(0,P.p)(...n).subscribe(()=>{this.selectedRow=[],this.refresh()},r=>{this.selectedRow=[],this.msgHandler.handleError(r)})}}deleteUsers(n){let r=[];if(this.onlySelf)return;n&&n.length&&n.forEach(s=>{r.push(s.username)});let t=new B.F("USER.DELETION_TITLE","USER.DELETION_SUMMARY",r.join(","),n,3,2);this.deletionDialogService.openComfirmDialog(t)}delUser(n){let r=[];n&&n.length&&(n.forEach(t=>{r.push(this.delOperate(t))}),(0,P.p)(...r).subscribe(t=>{let s;t&&t.length&&t.forEach(a=>{a instanceof L.yz&&(s=(0,O.r_)(a))}),s?this.msgHandler.handleError(s):this.translate.get("BATCH.DELETED_SUCCESS").subscribe(a=>{this.msgHandler.showSuccess(a)}),this.selectedRow=[],this.currentTerm="",this.refresh()}))}delOperate(n){let r=new f.B5;return r.name="OPERATION.DELETE_USER",r.data.id=n.user_id,r.state=f.bO.progressing,r.data.name=n.username,this.operationService.publishInfo(r),this.isMySelf(n.user_id)?this.translate.get("BATCH.DELETED_FAILURE").pipe((0,U.T)(t=>{(0,f.CA)(r,f.bO.failure,t)})):this.userService.deleteUser(n.user_id).pipe((0,U.T)(()=>{this.translate.get("BATCH.DELETED_SUCCESS").subscribe(t=>{(0,f.CA)(r,f.bO.success)})}),(0,$.W)(t=>{const s=(0,O.r_)(t);return this.translate.get(s).subscribe(a=>(0,f.CA)(r,f.bO.failure,a)),(0,T.of)(t)}))}refreshUser(){this.selectedRow=[],this.currentTerm="",this.onGoing=!0,this.getUserListByPaging()}addNewUser(){this.canCreateUser&&this.newUserDialog.open()}addUserToList(n){this.refresh()}load(n){n&&n.page&&(this.pageSize=n.page.size,(0,M.qq)(M.tZ.SYSTEM_USER_COMPONENT,this.pageSize)),this.selectedRow=[],this.onGoing=!0,this.getUserListByPaging()}refresh(){this.currentPage=1,this.refreshUser()}getUserListByPaging(){this.userService.getUserListByPaging(this.currentPage,this.pageSize,this.currentTerm).subscribe(n=>{if(n.headers){let r=n.headers.get("X-Total-Count");r&&(this.totalCount=parseInt(r,0))}this.users=n.body,this.onGoing=!1},n=>{this.msgHandler.handleError(n),this.onGoing=!1})}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(_.D),e.rXU(C.c$),e.rXU(V.N),e.rXU(w.l),e.rXU(I.Q),e.rXU(z.R),e.rXU(Y.np))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["harbor-user"]],viewQuery:function(r,t){if(1&r&&(e.GBs(h,7),e.GBs(v,7)),2&r){let s;e.mGM(s=e.lsd())&&(t.newUserDialog=s.first),e.mGM(s=e.lsd())&&(t.changePwdDialog=s.first)}},features:[e.Jv_([_.D])],decls:56,vars:49,consts:[[1,"row","relative"],[1,"col-lg-12","col-md-12","col-sm-12","col-xs-12"],[1,"custom-h2"],[1,"action-panel-pos","rightPos"],[1,"filter-pos",3,"withDivider","filterPlaceholder","currentValue","filterEvt"],[1,"refresh-btn"],["shape","refresh","ng-disabled","inProgress",3,"hidden","click"],[1,"spinner","spinner-inline",3,"hidden"],[3,"clrDgLoading","clrDgSelected","clrDgRefresh","clrDgSelectedChange"],["type","button","id","add-new-user",1,"btn","btn-secondary",3,"disabled","click"],["shape","plus","size","16"],["type","button","id","set-admin",1,"btn","btn-secondary",3,"disabled","click"],["shape","wrench","size","16"],["clrDropdownTrigger","",1,"btn","btn-link",3,"clrCloseMenuOnItemClick"],["id","member-action"],["shape","caret down"],[4,"clrIfOpen"],["clrTooltipTrigger","","shape","info-circle","size","24"],["clrPosition","top-right","clrSize","lg",4,"clrIfOpen"],[3,"clrDgItem",4,"ngFor","ngForOf"],[3,"clrDgPageSize","clrDgPage","clrDgTotalItems","clrDgPageChange"],["pagination",""],[3,"clrPageSizeOptions"],[4,"ngIf"],[3,"addNew"],["type","button","id","changePwd",1,"btn","btn-secondary",3,"disabled","click"],["shape","edit","size","16"],[1,"dropdown-divider"],["id","deleteUser","type","button",1,"btn","btn-secondary",3,"disabled","click"],["shape","times","size","16"],["clrPosition","top-right","clrSize","lg"],[3,"clrDgItem"]],template:function(r,t){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"h2",2),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",3)(6,"hbr-filter",4),e.bIt("filterEvt",function(a){return t.doFilter(a)}),e.nI1(7,"translate"),e.k0s(),e.j41(8,"span",5)(9,"clr-icon",6),e.bIt("click",function(){return t.refresh()}),e.k0s(),e.nrm(10,"span",7),e.k0s()(),e.j41(11,"div")(12,"clr-datagrid",8),e.bIt("clrDgRefresh",function(a){return t.load(a)})("clrDgSelectedChange",function(a){return t.selectedRow=a}),e.j41(13,"clr-dg-action-bar")(14,"button",9),e.bIt("click",function(){return t.addNewUser()}),e.nrm(15,"clr-icon",10),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"button",11),e.bIt("click",function(){return t.changeAdminRole()}),e.nrm(19,"clr-icon",12),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"clr-dropdown",13)(23,"span",14),e.EFF(24),e.nI1(25,"translate"),e.nrm(26,"clr-icon",15),e.k0s(),e.DNE(27,W,11,8,"clr-dropdown-menu",16),e.k0s()(),e.j41(28,"clr-dg-column"),e.EFF(29),e.nI1(30,"translate"),e.k0s(),e.j41(31,"clr-dg-column")(32,"span"),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.j41(35,"clr-tooltip"),e.nrm(36,"clr-icon",17),e.DNE(37,x,4,3,"clr-tooltip-content",18),e.k0s()(),e.j41(38,"clr-dg-column"),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.j41(41,"clr-dg-column"),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.DNE(44,J,10,8,"clr-dg-row",19),e.j41(45,"clr-dg-footer")(46,"clr-dg-pagination",20,21),e.bIt("clrDgPageChange",function(a){return t.currentPage=a}),e.j41(48,"clr-dg-page-size",22),e.EFF(49),e.nI1(50,"translate"),e.k0s(),e.DNE(51,K,3,5,"span",23),e.EFF(52),e.nI1(53,"translate"),e.k0s()()()(),e.j41(54,"
1new-user-modal",24),e.bIt("addNew",function(a){return t.addUserToList(a)}),e.k0s(),e.nrm(55,"change-password"),e.k0s()()),2&r&&(e.R7$(3),e.JRh(e.bMT(4,27,"SIDE_NAV.SYSTEM_MGMT.USER")),e.R7$(3),e.FS9("filterPlaceholder",e.bMT(7,29,"USER.FILTER_PLACEHOLDER")),e.Y8G("withDivider",!0)("currentValue",t.currentTerm),e.R7$(3),e.Y8G("hidden",t.inProgress),e.R7$(1),e.Y8G("hidden",!1===t.inProgress),e.R7$(2),e.Y8G("clrDgLoading",t.inProgress)("clrDgSelected",t.selectedRow),e.R7$(2),e.Y8G("disabled",!t.canCreateUser),e.R7$(2),e.SpI("\xa0",e.bMT(17,31,"USER.ADD_ACTION")," "),e.R7$(2),e.Y8G("disabled",!t.ifSameRole),e.R7$(2),e.SpI("\xa0",e.bMT(21,33,t.ISADMINISTRATOR)," "),e.R7$(2),e.Y8G("clrCloseMenuOnItemClick",!1),e.R7$(2),e.JRh(e.bMT(25,35,"BUTTON.ACTIONS")),e.R7$(5),e.JRh(e.bMT(30,37,"USER.COLUMN_NAME")),e.R7$(4),e.JRh(e.bMT(34,39,"USER.COLUMN_ADMIN")),e.R7$(6),e.JRh(e.bMT(40,41,"USER.COLUMN_EMAIL")),e.R7$(3),e.JRh(e.bMT(43,43,"USER.COLUMN_REG_NAME")),e.R7$(2),e.Y8G("ngForOf",t.users),e.R7$(2),e.Y8G("clrDgPageSize",t.pageSize)("clrDgPage",t.currentPage)("clrDgTotalItems",t.totalCount),e.R7$(2),e.Y8G("clrPageSizeOptions",t.clrPageSizeOptions),e.R7$(1),e.JRh(e.bMT(50,45,"PAGINATION.PAGE_SIZE")),e.R7$(2),e.Y8G("ngIf",t.totalCount>0),e.R7$(1),e.Lme(" ",t.totalCount," ",e.bMT(53,47,"USER.ITEMS")," "))},dependencies:[l.ghA,l.fQA,l.slD,l.scM,l.Lwm,l.oip,l.o3y,l.E1i,l.NTI,l.cIg,l.qDI,l.v0q,l.Aup,l.rpC,l.mCo,l.U4n,l.vEc,l.TZW,l.e3J,l.jWx,l.BT6,l.bX_,l.iMP,u.Sq,u.bT,H.i,v,h,C.D9,X.E],styles:[".custom-add-button[_ngcontent-%COMP%]{font-size:12px;margin-left:-12px}.filter-icon[_ngcontent-%COMP%]{position:relative;right:-12px}.filter-pos[_ngcontent-%COMP%]{float:right;margin-right:24px;position:relative;top:10px}.action-panel-pos[_ngcontent-%COMP%]{position:relative;padding-left:12px;margin-top:12px}.refresh-btn[_ngcontent-%COMP%]{position:absolute;right:6px;top:17px;cursor:pointer}.refresh-btn[_ngcontent-%COMP%]:hover{color:#007cbb}.hide-create[_ngcontent-%COMP%]{visibility:hidden!important}.rightPos[_ngcontent-%COMP%]{position:absolute;right:20px;height:32px;z-index:100}.relative[_ngcontent-%COMP%]{position:relative}"]})}}return i})();var Z=o(4710);const q=[{path:"",component:Q}];let ee=(()=>{class i{static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=e.G2t({imports:[d.G,Z.iI.forChild(q)]})}}return i})()},2247:(D,E,o)=>{o.d(E,{i:()=>w});var d=o(7705),P=o(1413),T=o(152),e=o(9417),R=o(177),m=o(925);const I=["inputElement"];function _(l,C){1&l&&d.nrm(0,"span",4)}let w=(()=>{class l{set filterPlaceholder(h){this.placeHolder=h}constructor(h){this.cd=h,this.placeHolder="",this.filterTerms=new P.B,this.isExpanded=!1,this.filterEvt=new d.bkB,this.openFlag=new d.bkB,this.readonly=null,this.expandMode=!1,this.withDivider=!1}ngOnInit(){this.filterTerms.pipe((0,T.B)(500)).subscribe(h=>{this.filterEvt.emit(h)})}valueChange(){this.filterTerms.next(this.currentValue&&this.currentValue.trim())}inputFocus(){this.openFlag.emit(this.isExpanded)}onClick(){this.expandMode||(this.isExpanded=!this.isExpanded,this.isExpanded&&(this.cd.detectChanges(),this.inputElement.nativeElement.focus()),this.openFlag.emit(this.isExpanded))}get isShowSearchBox(){return this.expandMode||!this.expandMode&&this.isExpanded}static{this.\u0275fac=function(p){return new(p||l)(d.rXU(d.gRc))}}static{this.\u0275cmp=d.VBU({type:l,selectors:[["hbr-filter"]],viewQuery:function(p,c){if(1&p&&d.GBs(I,5),2&p){let u;d.mGM(u=d.lsd())&&(c.inputElement=u.first)}},inputs:{readonly:"readonly",currentValue:"currentValue",filterPlaceholder:"filterPlaceholder",expandMode:"expandMode",withDivider:"withDivider",width:"width"},outputs:{filterEvt:"filterEvt",openFlag:"openFlag"},decls:5,vars:9,consts:[["shape","search","size","20",1,"search-btn",3,"click"],["type","text","autofocus","",1,"filter-input","clr-input",3,"hidden","placeholder","ngModel","keyup","focus","ngModelChange"],["inputElement",""],["class","filter-divider",4,"ngIf"],[1,"filter-divider"]],template:function(p,c){1&p&&(d.j41(0,"span")(1,"clr-icon",0),d.bIt("click",function(){return c.onClick()}),d.k0s(),d.j41(2,"input",1,2),d.bIt("keyup",function(){return c.valueChange()})("focus",function(){return c.inputFocus()})("ngModelChange",function(S){return c.currentValue=S}),d.k0s(),d.DNE(4,_,1,0,"span",3),d.k0s()),2&p&&(d.R7$(1),d.AVh("filter-icon",c.isShowSearchBox
1),d.R7$(1),d.xc7("width",c.width,"px"),d.FS9("placeholder",c.placeHolder),d.Y8G("hidden",!c.isShowSearchBox)("ngModel",c.currentValue),d.BMQ("readOnly",c.readonly),d.R7$(2),d.Y8G("ngIf",c.withDivider))},dependencies:[e.me,e.BC,e.vS,R.bT,m.U4n],styles:[".filter-icon[_ngcontent-%COMP%]{position:relative;right:-20px}.filter-divider[_ngcontent-%COMP%]{display:inline-block;height:16px;width:1px;padding-top:12px;padding-bottom:12px;position:relative;top:9px;margin-right:6px;margin-left:6px}.search-btn[_ngcontent-%COMP%]{cursor:pointer}.search-btn[_ngcontent-%COMP%]:hover{color:#007cbb}.filter-input[_ngcontent-%COMP%]{padding-left:24px}"]})}}return l})()}}]);

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.