1"use strict";(self.webpackChunkmyapp=self.webpackChunkmyapp||[]).push([[6581],{46581:(mt,q,g)=>{g.r(q),g.d(q,{FileModel:()=>V.FileModel,ROUTES:()=>$,SysAccountComponent:()=>M,SysAuthenCaptchaComponent:()=>ft,SysAuthenLoginComponent:()=>C.T,SysAuthenLogoutComponent:()=>X,SysAuthenRegisterComponent:()=>A,SysAuthenticationComponent:()=>tt.SysAuthenticationComponent,SysConfigFeatureModule:()=>k,SysEmailComponent:()=>Y.h,SysEnvComponent:()=>B.SysEnvComponent,SysLoginComponent:()=>V.SysLoginComponent,SysPasswordComponent:()=>N.E});var F=g(98231),e=g(33153);const $=[{path:"",loadComponent:()=>Promise.resolve().then(g.bind(g,28323)).then(p=>p.SysLoginComponent),data:{breadcrumb:"C\u1ea5u h\xecnh hi\u1ec3n th\u1ecb trang \u0111\u0103ng nh\u1eadp",loginPageDisabled:!0}},{path:"sys-env",loadComponent:()=>Promise.resolve().then(g.bind(g,10227)).then(p=>p.SysEnvComponent),data:{breadcrumb:"C\u1ea5u h\xecnh m\xf4i tr\u01b0\u1eddng"}},{path:"sys-authentication",loadComponent:()=>Promise.resolve().then(g.bind(g,24337)).then(p=>p.SysAuthenticationComponent),data:{breadcrumb:"C\u1ea5u h\xecnh x\xe1c th\u1ef1c"}},{path:"",redirectTo:"sys-login",pathMatch:"full"}],y=$;var U=g(27720),K=g(62794),z=g(8179),j=g(86570),O=g(43959),D=g(46128),n=g(23135);let k=(()=>{class p{static{this.\u0275fac=function(l){return new(l||p)}}static{this.\u0275mod=n.$C({type:p})}static{this.\u0275inj=n.G2t({providers:[K.Mo,z.FQ],imports:[F.MD,e.iI.forChild(y),U.RU,j.dA.forChild([D.Xn5,D.IdF,D.lMJ,D.glU,D.QDu,D.XTI,D.S5m,D.tXn,D.nkM,D.U97,O.$i0,O.Zmy,O.aYp,O.SJn,O.eNq,O.z7U,O.cSP,O.VeP,O.O9N,O.LBb,O.hl9,O.XEL,O.zt9,O.T0I,O.VRC,O.dxK,O.lr0,O.Hcp,O.xjr,O.Qhf])]})}}return p})();var V=g(28323),B=g(10227),Y=g(95603),tt=g(24337),b=g(90695),s=g(51628),r=g(44025),o=g(70159),t=g(44752),W=g(15799),H=g(28113),w=g(44267),Q=g(65197),st=g(98259),J=g(15385),ot=g(12119),et=g(34226),it=g(65661),nt=g(2765);function at(p,T){if(1&p){const a=n.RV6();n.j41(0,"span",26),n.bIt("click",function(){n.eBV(a);const i=n.XpG(2);return n.Njj(i.clearValue("minLength"))}),n.k0s()}}function I(p,T){if(1&p&&n.DNE(0,at,1,0,"span",25),2&p){const a=n.XpG();n.Y8G("ngIf",a.formGroup.value.minLength&&""!=a.formGroup.value.minLength)}}function Z(p,T){if(1&p){const a=n.RV6();n.j41(0,"span",26),n.bIt("click",function(){n.eBV(a);const i=n.XpG(2);return n.Njj(i.clearValue("maxLength"))}),n.k0s()}}function P(p,T){if(1&p&&n.DNE(0,Z,1,0,"span",25),2&p){const a=n.XpG();n.Y8G("ngIf",a.formGroup.value.maxLength&&""!=a.formGroup.value.maxLength)}}function x(p,T){if(1&p){const a=n.RV6();n.qex(0),n.j41(1,"button",27),n.bIt("click",function(){n.eBV(a);const i=n.XpG();return n.Njj(i.onSave())}),n.nrm(2,"i",28),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.bVm()}if(2&p){const a=n.XpG();n.R7$(),n.Y8G("disabled",!a.formGroup.valid||a.isSubmitting),n.R7$(2),n.SpI(" ",n.bMT(4,2,"sysconfig.sysEnv.sysAuthen.actions.save")," ")}}let M=(()=>{class p{constructor(a,l,i,m,c){this._translate=a,this._utils=l,this._sysAuthenService=i,this._toastService=m,this._authShareService=c,this.loading=!1,this.fieldSize="md",this.DEFAULT_CONFIG={minLength:6,maxLength:30,upperLetter:!1,lowerLetter:!1,number:!1,symbol:!1},this.currentConfig=this.DEFAULT_CONFIG,this.formGroup=new b.gE({minLength:new b.MJ(this.DEFAULT_CONFIG.minLength,[b.k0.required,J.Bm6.maxLength(10),this.compareMinLength(),b.k0.min(1)]),maxLength:new b.MJ(this.DEFAULT_CONFIG.maxLength,[b.k0.required,J.Bm6.maxLength(10),this.compareMaxLength(),b.k0.min(1)]),atLeastOneLowerCase:new b.hs(!1),atLeastOneUpperCase:new b.hs(!1),atLeastOneNumber:new b.hs(!1),atLeastOneSpecialCharacter:new b.hs(!1)}),this.showUpdateAccount=!1,this.trim=this._utils.trimOnBlur}ngOnInit(){this.getCurrentConfig()}get f(){return this.formGroup.controls}clearValue(a){this.formGroup.get(a)?.setValue(null),this.formGroup.get(a)?.markAsDirty(),this.formGroup.get(a)?.markAsTouched(),this.formGroup.get(a)?.updateValueAndValidity()}checkValidate(){return this._utils.checkValidate(this.formGroup,this.inputs)}setFormValues(){this.formGroup.get("minLength").setValue(this.currentConfig.minLength?this.currentConfig.minLength:this.DEFAULT_CONFIG.minLength),this.formGroup.get("maxLength").setValue(this.currentConfig.maxLength?this.currentConfig.maxLength:this.DEFAULT_CONFIG.maxLength),this.formGroup.get("atLeastOneLowerCase").setValue(!!this.currentConfig.lowerLetter&&this.currentConfig.lowerLetter),this.formGroup.get("atLeastOneUpperCase").setValue(!!this.currentConfig.upperLetter&&this.currentConfig.upperLetter),this.formGroup.get("atLeastOneNumber").setValue(!!this.currentConfig.number&&this.currentConfig.number),this.formGroup.get("atLeastOneSpecialCharacter").setValue(!!this.currentConfig.symbol&&this.currentConfig.symbol)}getCurrentConfig(){this._sysAuthenService.getSysAccountConfig().subscribe(a=>{let l=a.data;l&&l.length>0&&(this.currentConfig=l[0],this._authShareService.sysAuthenUsernameSharer$.next(l[0]),this.setFormValues())})}onSave(){if(this.checkValidate()){let a={id:this.currentConfig.id,tenantId:this.currentConfig.tenantId,minLength:+this.formGroup.get("minLength").value,maxLength:+this.formGroup.get("maxLength").value,lowerLetter:this.formGroup.get("atLeastOneLowerCase").value,upperLetter:this.formGroup.get("atLeastOneUpperCase").value,
1number:this.formGroup.get("atLeastOneNumber").value,symbol:this.formGroup.get("atLeastOneSpecialCharacter").value};this._sysAuthenService.updateSysAccountConfig(a).subscribe(l=>{l&&l.detail&&(this._toastService.success("",this._translate.instant("sysconfig.sysEnv.sysAuthen.message.updatedSysAuthen")),this.currentConfig=l.detail,this.setFormValues())})}}onResetToDefault(){this.currentConfig={id:this.currentConfig.id,tenantId:this.currentConfig.tenantId,minLength:this.DEFAULT_CONFIG.minLength,maxLength:this.DEFAULT_CONFIG.maxLength,lowerLetter:this.DEFAULT_CONFIG.lowerLetter,upperLetter:this.DEFAULT_CONFIG.upperLetter,number:this.DEFAULT_CONFIG.number,symbol:this.DEFAULT_CONFIG.symbol},this.setFormValues(),this.onSave()}compareMinLength(){return a=>{const l=a.parent;return l?isNaN(parseInt(l.get("minLength")?.value))?{required:!0}:parseInt(l.get("minLength")?.value)>parseInt(l.get("maxLength")?.value)?{invalidMinLength:!0}:(l.get("maxLength")?.setErrors(null),l.updateValueAndValidity(),null):null}}compareMaxLength(){return a=>{const l=a.parent;return l?isNaN(parseInt(l.get("maxLength")?.value))?{required:!0}:parseInt(l.get("maxLength")?.value)<parseInt(l.get("minLength")?.value)?{invalidMaxLength:!0}:(l.get("minLength")?.setErrors(null),l.updateValueAndValidity(),null):null}}static{this.\u0275fac=function(l){return new(l||p)(n.rXU(s.c$),n.rXU(J.$Db),n.rXU(J.NIB),n.rXU(K.Mo),n.rXU(J.uRZ))}}static{this.\u0275cmp=n.VBU({type:p,selectors:[["lib-sys-account"]],viewQuery:function(l,i){if(1&l&&n.GBs(w.fZ,5),2&l){let m;n.mGM(m=n.lsd())&&(i.inputs=m)}},inputs:{showUpdateAccount:"showUpdateAccount"},decls:55,vars:36,consts:[["clearableMinLength",""],["clearableMaxLength",""],["vts-form","","vtsLayout","vertical",3,"formGroup"],["vts-row","",2,"margin","0 10px"],["vts-col","",2,"padding-right","20px",3,"vtsSpan"],[1,"mb-8"],["vtsRequired","",1,"pd-0","mb-0"],[1,"pd-0"],[1,"input-box",3,"vtsSize","vtsSuffix"],["vts-input","","type","text","numbersOnly","","formControlName","minLength","maxlength","10",3,"control"],[3,"control"],[1,"mb-0"],[1,"pd-0","h-24",2,"margin-top","-8px"],["formControlName","atLeastOneLowerCase","vts-checkbox",""],[1,"pd-0","h-24"],["formControlName","atLeastOneUpperCase","vts-checkbox",""],["formControlName","atLeastOneNumber","vts-checkbox",""],["formControlName","atLeastOneSpecialCharacter","vts-checkbox",""],["vts-col","",3,"vtsSpan"],["vts-input","","type","text","numbersOnly","","formControlName","maxLength","maxlength","10",3,"control"],[1,"footer-main"],["vtsJustify","end","vtsDirection","horizontal","vts-row","","vtsSpan","24",1,"footer-btns"],["vtsSize","sm","vts-button","","type","button",1,"reset-btn",3,"click"],["vts-icon","","vtsType","SettingsBackupRestoreOutline:vts",2,"padding-top","2px"],[4,"ngIf"],["vts-icon","","vtsTheme","fill","class","vts-input-clear-icon","vtsType","ClearDoutone:vts",3,"click",4,"ngIf"],["vts-icon","","vtsTheme","fill","vtsType","ClearDoutone:vts",1,"vts-input-clear-icon",3,"click"],["vtsType","primary","vtsSize","sm","vts-button","","type","button",1,"save-btn",3,"click","disabled"],["vts-icon","","vtsType","SaveOutline:vts"]],template:function(l,i){if(1&l){const m=n.RV6();n.j41(0,"form",2)(1,"div",3)(2,"div",4)(3,"vts-form-item",5)(4,"vts-form-label",6),n.EFF(5),n.nI1(6,"translate"),n.k0s(),n.j41(7,"vts-form-control",7)(8,"vts-input-group",8),n.nrm(9,"input",9),n.k0s(),n.DNE(10,I,1,1,"ng-template",null,0,n.C5r),n.nrm(12,"authentication-ui-control-messages",10),n.k0s()(),n.j41(13,"vts-form-item",11)(14,"vts-form-label",7),n.EFF(15),n.nI1(16,"translate"),n.k0s(),n.j41(17,"vts-form-control",12)(18,"vts-checkbox-wrapper")(19,"label",13),n.EFF(20),n.nI1(21,"translate"),n.k0s()()(),n.j41(22,"vts-form-control",14)(23,"vts-checkbox-wrapper")(24,"label",15),n.EFF(25),n.nI1(26,"translate"),n.k0s()()(),n.j41(27,"vts-form-control",14)(28,"vts-checkbox-wrapper")(29,"label",16),n.EFF(30),n.nI1(31,"translate"),n.k0s()()(),n.j41(32,"vts-form-control",14)(33,"vts-checkbox-wrapper")(34,"label",17),n.EFF(35),n.nI1(36,"translate"),n.k0s()()()()(),n.j41(37,"div",18)(38,"vts-form-item",5)(39,"vts-form-label",6),n.EFF(40),n.nI1(41,"translate"),n.k0s(),n.j41(42,"vts-form-control",7)(43,"vts-input-group",8),n.nrm(44,"input",19),n.k0s(),n.DNE(45,P,1,1,"ng-template",null,1,n.C5r),n.nrm(47,"authentication-ui-control-messages",10),n.k0s()()()(),n.j41(48,"div",20)(49,"div",21)(50,"button",22),n.bIt("click",function(){return n.eBV(m),n.Njj(i.onResetToDefault())}),n.nrm(51,"i",23),n.EFF(52),n.nI1(53,"translate"),n.k0s(),n.DNE(54,x,5,4,"ng-container",24),n.k0s()()()}if(2&l){const m=n.sdS(11),c=n.sdS(46);n.Y8G("formGroup",i.formGroup),n.R7$(2),n.Y8G("vtsSpan",12),n.R7$(3),n.JRh(n.bMT(6,20,"sysconfig.sysEnv.sysAuthen.labels.minLength")),n.R7$(3),n.Y8G("vtsSize",i.fieldSize)("vtsSuffix",m),n.R7$(),n.Y8G("control",i.f.minLength),n.R7$(3),n.Y8G("control",i.f.minLength),n.R7$(3),n.JRh(n.bMT(16,22,"sysconfig.sysEnv.sysAuthen.labels.accountComps")),n.R7$(5),n.SpI(" ",n.bMT(21,24,"sysconfig.sysEnv.sysAuthen.labels.atLeastOneLowerCase")," "),n.R7$(5),n.SpI(" ",n.bMT(26,26,"sysconfig.sysEnv.sysAuthen.labels.atLeastOneUpperCase")," "),n.R7$(5),n.SpI(" ",n.bMT(31,28,"sysconfig.sysEnv.sysAuthen.labels.atLeastOneNumber")," "),n.R7$(5),n.SpI(" ",n.bMT(36,30,"sysconfig.sysEnv.sysAuthen.labels.atLeastOneSpecialCharacter")," "),n.R7$(2),n.Y8G("vtsSpan",12),n.R7$(3),n.JRh(n.bMT(41,32,"sysconfig.sysEnv.sysAuthen.labels.maxLength")),n.R7$(3),n.Y8G("vtsSize",i.fieldSize)("vtsSuffix",c),n.R7$(),n.Y8G("control",i.f.maxLength),n.R7$(3),n.Y8G("control",i.f.maxLength),n.R7$(5),n.SpI(" ",n.bMT(53,34,"sysconfig.sysEnv.sysAuthen.actions.reset")," "),n.R7$(2),n.Y8G("ngIf",i.showUpdateAccount)}},dependencies:[F.MD,F.bT,j.dA,j.qb,s.h,s.D9,b.YN,b.qT,b.me,b.BC,b.cb,b.tU,o.Cn,W.SX,H.tH,H.BE,W.dF,W.Qp,W.rA,W.Yc,t.L,w.iO,w.fZ,w.eH,w.Ms,b.X1,b.j4,b.JD,H.mi,Q.mn,r.G,r.R$,nt.T,st.fX,ot.v,et.VW,et.Ex,et.x$,it.Jq],styles:[".reset-btn[_ngcontent-%COMP%]{border-radius:6px;border-color:#737373;color:#737373}.save-btn[_ngcontent-%COMP%]{border-radius:6px}.pdl-8[_ngcontent-%COMP%]{padding-left:8px}.title-expand-config[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:10px 10px 10px 12px;background-color:#efe7e7;font-weight:700} lib-sys-authentication .vts-form-item-label>label:has(span){display:flex;justify-content:space-between}.d-flex[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin:0}.gap-10[_ngcontent-%COMP%]{gap:10px}.gap-8[_ngcontent-%COMP%]{gap:8px}.gap-14[_ngcontent-%COMP%]{gap:14px}[_nghost-%COMP%] .vts-card-body{padding:0}[_nghost-%COMP%] .vts-tabs-nav{padding-left:12px}.footer-main[_ngcontent-%COMP%]{padding:12px 10px}.pl-16[_ngcontent-%COMP%]{padding-left:16px!important}.pl-12[_ngcontent-%COMP%]{padding-left:12px!important}.pl-10[_ngcontent-%COMP%]{padding-left:10px!important}.pl-5[_ngcontent-%COMP%]{padding-left:5px!important}.pr-16[_ngcontent-%COMP%]{padding-right:16px!important}.pr-12[_ngcontent-%COMP%]{padding-right:12px!important}.pr-10[_ngcontent-%COMP%]{padding-right:10px!important}.pr-5[_ngcontent-%COMP%]{padding-right:5px!important}.pd-0[_ngcontent-%COMP%]{padding:0!important}.mb-8[_ngcontent-%COMP%]{margin-bottom:8px!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.box-tabset[_ngcontent-%COMP%] vts-tabs-nav{margin-bottom:8px}.h-24[_ngcontent-%COMP%]{height:24px}.pt-8[_ngcontent-%COMP%]{padding-top:8px} vts-input-group span{color:#737373}.footer-btns[_ngcontent-%COMP%]{gap:8px}"]})}}return p})();var N=g(23796),C=g(19180),G=g(15941),d=g(52702);const h=()=>({standalone:!0});function v(p,T){if(1&p){const a=n.RV6();n.j41(0,"span",19),n.bIt("click",function(){n.eBV(a);const i=n.XpG(2);return n.Njj(i.clearValue("activeTime"))}),n.k0s()}}function f(p,T){if(1&p&&n.DNE(0,v,1,0,"span",18),2&p){const a=n.XpG();n.Y8G("ngIf",a.formGroup.value.activeTime&&""!=a.formGroup.value.activeTime)}}function S(p,T){if(1&p&&n.nrm(0,"vts-option",20),2&p){const a=T.$implicit,l=n.XpG();n.Y8G("vtsValue",a.value)("vtsLabel","vi"==l.currentLanguage?a.labelVi:a.labelEn)}}function _(p,T){if(1&p){const a=n.RV6();n.j41(0,"button",21),n.bIt("click",function(){n.eBV(a);const i=n.XpG();return n.Njj(i.onResetToDefault())}),n.nrm(1,"i",22),n.EFF(2),n.nI1(3,"translate"),n.k0s()}2&p&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"sysconfig.sysEnv.sysAuthen.actions.reset")," "))}function L(p,T){if(1&p){const a=n.RV6();n.j41(0,"button",23),n.bIt("click",function(){n.eBV(a);const i=n.XpG();return n.Njj(i.onSave())}),n.nrm(1,"i",24),n.EFF(2),n.nI1(3,"translate"),n.k0s()}2&p&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"sysconfig.sysEnv.sysAuthen.actions.save")," "))}let A=(()=>{class p{constructor(a,l,i,m){this._translate=a,this._utils=l,this._sysAuthenService=i,this._toastService=m,this.loading=!1,this.fieldSize="md",this.currentLanguage="vi",this.listTimeUnit=[{value:0,labelVi:"Gi\xe2y",labelEn:"Second(s)"},{value:1,labelVi:"Ph\xfat",labelEn:"Minute(s)"},{value:2,labelVi:"Gi\u1edd",labelEn:"Hour(s)"}],this.DEFAULT_CONFIG={status:!1,recaptcha:!1,approve:!1,phoneStatus:!1,emailStatus:!1,activeTime:0,activeTimeUnit:0},this.currentConfig=this.DEFAULT_CONFIG,this.formGroup=new b.gE({activeTime:new b.MJ(5,[b.k0.required,J.Bm6.maxLength(10)]),activeTimeUnit:new b.MJ(1)}),this.trim=this._utils.trimOnBlur,this.currentLanguage=localStorage.getItem("lang")||"vi"}ngOnInit(){this.getCurrentConfig()}get f(){return this.formGroup.controls}clearValue(a){this.formGroup.get(a)?.setValue(null),this.formGroup.get(a)?.markAsDirty(),this.formGroup.get(a)?.markAsTouched(),this.formGroup.get(a)?.updateValueAndValidity()}checkValidate(){return this._utils.checkValidate(this.formGroup,this.inputs)}setFormValues(){this.formGroup.get("activeTime").setValue(this.currentConfig.activeTime?this.currentConfig.activeTime:5),this.formGroup.get("activeTimeUnit").setValue(this.currentConfig.activeTimeUnit?this.currentConfig.activeTimeUnit:1)}getCurrentConfig(){this._sysAuthenService.getSysRegistryConfig().subscribe(a=>{let l=a.data;l&&l.length>0&&(this.currentConfig=l[0],this.setFormValues())})}onSave(){if(this.checkValidate()){let a={id:this.currentConfig.id,tenantId:this.currentConfig.tenantId,status:this.currentConfig.status,recaptcha:this.currentConfig.recaptcha,approve:this.currentConfig.approve,phoneStatus:this.currentConfig.phoneStatus,emailStatus:this.currentConfig.emailStatus,activeTime:+this.formGroup.get("activeTime").value,activeTimeUnit:+this.formGroup.get("activeTimeUnit").value};this._sysAuthenService.updateSysRegistryConfig(a).subscribe(l=>{this._toastService.success("",this._translate.instant("sysconfig.sysEnv.sysAuthen.message.updatedSysAuthen")),this.currentConfig=l,this.setFormValues()},l=>{})}}onResetToDefault(){this.currentConfig={id:this.currentConfig.id,tenantId:this.currentConfig.tenantId,...this.DEFAULT_CONFIG},this.setFormValues(),this.onSave()}static{this.\u0275fac=function(l){return new(l||p)(n.rXU(s.c$),n.rXU(J.$Db),n.rXU(J.NIB),n.rXU(K.Mo))}}static{this.\u0275cmp=n.VBU({type:p,selectors:[["lib-sys-authen-register"]],viewQuery:function(l,i){if(1&l&&n.GBs(w.fZ,5),2&l){let m;n.mGM(m=n.lsd())&&(i.inputs=m)}},decls:56,vars:46,consts:[["clearableactiveTime",""],["vts-form","","vtsLayout","vertical",3,"formGroup"],["vts-row","",3,"vtsGutter"],["vts-col","",3,"vtsSpan"],[1,"drawer-format","label-edit"],[1,"pdl-8"],[3,"ngModelChange","ngModel","ngModelOptions"],["vtsRequired",""],[1,"input-box",3,"vtsSize","vtsSuffix"],["vts-input","","placeholder","","numbersOnly","","formControlName","activeTime","maxlength","10",3,"control"],[3,"control"],["formControlName","activeTimeUnit","vtsShowSearch","","vtsAllowClear",""],[3,"vtsValue","vtsLabel",4,"ngFor","ngForOf"],["vts-row","",1,"footer-main"],["vts-space","","vtsJustify","end","vtsDirection","horizontal","vts-col","","vtsSpan","24"],["vtsWrap","",3,"vtsPreset"],["class","reset-btn","vtsSize","sm","vts-button","",3,"click",4,"vtsSpaceItem"],["class","save-btn","vtsType","primary","vtsSize","sm","vts-button","",3,"click",4,"vtsSpaceItem"],["vts-icon","","vtsTheme","fill","class","vts-input-clear-icon","vtsType","ClearDoutone
1:vts",3,"click",4,"ngIf"],["vts-icon","","vtsTheme","fill","vtsType","ClearDoutone:vts",1,"vts-input-clear-icon",3,"click"],[3,"vtsValue","vtsLabel"],["vtsSize","sm","vts-button","",1,"reset-btn",3,"click"],["vts-icon","","vtsType","SettingsBackupRestoreOutline:vts",2,"padding-top","2px"],["vtsType","primary","vtsSize","sm","vts-button","",1,"save-btn",3,"click"],["vts-icon","","vtsType","AddCircle"]],template:function(l,i){if(1&l){const m=n.RV6();n.j41(0,"form",1)(1,"div",2)(2,"div",3)(3,"vts-form-item")(4,"vts-form-label")(5,"span",4),n.EFF(6),n.nI1(7,"translate"),n.k0s(),n.j41(8,"span",5)(9,"vts-switch",6),n.mxI("ngModelChange",function(u){return n.eBV(m),n.DH7(i.currentConfig.status,u)||(i.currentConfig.status=u),n.Njj(u)}),n.k0s()()(),n.j41(10,"vts-form-label")(11,"span",4),n.EFF(12),n.nI1(13,"translate"),n.k0s(),n.j41(14,"span",5)(15,"vts-switch",6),n.mxI("ngModelChange",function(u){return n.eBV(m),n.DH7(i.currentConfig.recaptcha,u)||(i.currentConfig.recaptcha=u),n.Njj(u)}),n.k0s()()(),n.j41(16,"vts-form-label")(17,"span",4),n.EFF(18),n.nI1(19,"translate"),n.k0s(),n.j41(20,"span",5)(21,"vts-switch",6),n.mxI("ngModelChange",function(u){return n.eBV(m),n.DH7(i.currentConfig.approve,u)||(i.currentConfig.approve=u),n.Njj(u)}),n.k0s()()()()(),n.j41(22,"div",3)(23,"vts-form-item")(24,"vts-form-label")(25,"span",4),n.EFF(26),n.nI1(27,"translate"),n.k0s(),n.j41(28,"span",5)(29,"vts-switch",6),n.mxI("ngModelChange",function(u){return n.eBV(m),n.DH7(i.currentConfig.phoneStatus,u)||(i.currentConfig.phoneStatus=u),n.Njj(u)}),n.k0s()()(),n.j41(30,"vts-form-label")(31,"span",4),n.EFF(32),n.nI1(33,"translate"),n.k0s(),n.j41(34,"span",5)(35,"vts-switch",6),n.mxI("ngModelChange",function(u){return n.eBV(m),n.DH7(i.currentConfig.emailStatus,u)||(i.currentConfig.emailStatus=u),n.Njj(u)}),n.k0s()()(),n.j41(36,"vts-form-control")(37,"vts-form-label",7)(38,"span",4),n.EFF(39),n.nI1(40,"translate"),n.k0s()(),n.j41(41,"span",2)(42,"span",3)(43,"vts-input-group",8),n.nrm(44,"input",9),n.k0s(),n.DNE(45,f,1,1,"ng-template",null,0,n.C5r),n.nrm(47,"authentication-ui-control-messages",10),n.k0s(),n.j41(48,"span",3)(49,"vts-select",11),n.DNE(50,S,1,2,"vts-option",12),n.k0s()()()()()()(),n.j41(51,"div",13)(52,"div",14)(53,"vts-space",15),n.DNE(54,_,4,3,"button",16)(55,L,4,3,"button",17),n.k0s()()()()}if(2&l){const m=n.sdS(46);n.Y8G("formGroup",i.formGroup),n.R7$(),n.Y8G("vtsGutter",24),n.R7$(),n.Y8G("vtsSpan",12),n.R7$(4),n.JRh(n.bMT(7,29,"sysconfig.sysEnv.sysAuthen.labels.allowUserSignUpThemself")),n.R7$(3),n.R50("ngModel",i.currentConfig.status),n.Y8G("ngModelOptions",n.lJ4(41,h)),n.R7$(3),n.JRh(n.bMT(13,31,"sysconfig.sysEnv.sysAuthen.labels.displayRecaptcha")),n.R7$(3),n.R50("ngModel",i.currentConfig.recaptcha),n.Y8G("ngModelOptions",n.lJ4(42,h)),n.R7$(3),n.JRh(n.bMT(19,33,"sysconfig.sysEnv.sysAuthen.labels.manualAprrovalNewAccount")),n.R7$(3),n.R50("ngModel",i.currentConfig.approve),n.Y8G("ngModelOptions",n.lJ4(43,h)),n.R7$(),n.Y8G("vtsSpan",12),n.R7$(4),n.JRh(n.bMT(27,35,"sysconfig.sysEnv.sysAuthen.labels.authenLoginByPhoneNumber")),n.R7$(3),n.R50("ngModel",i.currentConfig.phoneStatus),n.Y8G("ngModelOptions",n.lJ4(44,h)),n.R7$(3),n.JRh(n.bMT(33,37,"sysconfig.sysEnv.sysAuthen.labels.authenLoginByEmail")),n.R7$(3),n.R50("ngModel",i.currentConfig.emailStatus),n.Y8G("ngModelOptions",n.lJ4(45,h)),n.R7$(4),n.SpI(" ",n.bMT(40,39,"sysconfig.sysEnv.sysAuthen.labels.validOtpTime"),""),n.R7$(2),n.Y8G("vtsGutter",2),n.R7$(),n.Y8G("vtsSpan",19),n.R7$(),n.Y8G("vtsSize",i.fieldSize)("vtsSuffix",m),n.R7$(),n.Y8G("control",i.f.activeTime),n.R7$(3),n.Y8G("control",i.f.activeTime),n.R7$(),n.Y8G("vtsSpan",5),n.R7$(2),n.Y8G("ngForOf",i.listTimeUnit),n.R7$(3),n.Y8G("vtsPreset",2)}},dependencies:[F.MD,F.Sq,F.bT,j.dA,j.qb,s.h,s.D9,b.YN,b.qT,b.me,b.BC,b.cb,b.tU,b.vS,o.Cn,W.SX,H.tH,H.BE,W.dF,W.Qp,W.rA,W.Yc,t.L,w.iO,w.fZ,w.eH,w.Ms,b.X1,b.j4,b.JD,H.mi,Q.mn,Q.Zi,Q.Uk,r.G,r.R$,nt.T,st.fX,ot.v,et.VW,d.u,d.n,G.u,G.mw,G.B1],styles:[".reset-btn[_ngcontent-%COMP%]{border-radius:6px;border-color:#737373;color:#737373}.save-btn[_ngcontent-%COMP%]{border-radius:6px}.pdl-8[_ngcontent-%COMP%]{padding-left:8px}.title-expand-config[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:10px 10px 10px 12px;background-color:#efe7e7;font-weight:700} lib-sys-authentication .vts-form-item-label>label:has(span){display:flex;justify-content:space-between}.d-flex[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin:0}.gap-10[_ngcontent-%COMP%]{gap:10px}.gap-8[_ngcontent-%COMP%]{gap:8px}.gap-14[_ngcontent-%COMP%]{gap:14px}[_nghost-%COMP%] .vts-card-body{padding:0}[_nghost-%COMP%] .vts-tabs-nav{padding-left:12px}.footer-main[_ngcontent-%COMP%]{padding:12px 10px}.pl-16[_ngcontent-%COMP%]{padding-left:16px!important}.pl-12[_ngcontent-%COMP%]{padding-left:12px!important}.pl-10[_ngcontent-%COMP%]{padding-left:10px!important}.pl-5[_ngcontent-%COMP%]{padding-left:5px!important}.pr-16[_ngcontent-%COMP%]{padding-right:16px!important}.pr-12[_ngcontent-%COMP%]{padding-right:12px!important}.pr-10[_ngcontent-%COMP%]{padding-right:10px!important}.pr-5[_ngcontent-%COMP%]{padding-right:5px!important}.pd-0[_ngcontent-%COMP%]{padding:0!important}.mb-8[_ngcontent-%COMP%]{margin-bottom:8px!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.box-tabset[_ngcontent-%COMP%] vts-tabs-nav{margin-bottom:8px}.h-24[_ngcontent-%COMP%]{height:24px}.pt-8[_ngcontent-%COMP%]{padding-top:8px} vts-input-group span{color:#737373}.box-config-title[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background:#efe7e7}"]}
1)}}return p})(),X=(()=>{class p{constructor(){}ngOnInit(){}static{this.\u0275fac=function(l){return new(l||p)}}static{this.\u0275cmp=n.VBU({type:p,selectors:[["lib-sys-authen-logout"]],decls:2,vars:0,template:function(l,i){1&l&&(n.j41(0,"p"),n.EFF(1,"sys-authen-logout works!"),n.k0s())},dependencies:[F.MD],encapsulation:2})}}return p})();const rt=()=>({standalone:!0});function lt(p,T){if(1&p){const a=n.RV6();n.j41(0,"span",19),n.bIt("click",function(){n.eBV(a);const i=n.XpG(2);return n.Njj(i.clearValue("siteKey"))}),n.k0s()}}function ct(p,T){if(1&p&&n.DNE(0,lt,1,0,"span",18),2&p){const a=n.XpG();n.Y8G("ngIf",a.formGroup.value.siteKey&&""!=a.formGroup.value.siteKey)}}function ut(p,T){if(1&p){const a=n.RV6();n.j41(0,"span",19),n.bIt("click",function(){n.eBV(a);const i=n.XpG(2);return n.Njj(i.clearValue("secretKey"))}),n.k0s()}}function gt(p,T){if(1&p&&n.DNE(0,ut,1,0,"span",18),2&p){const a=n.XpG();n.Y8G("ngIf",a.formGroup.value.secretKey&&""!=a.formGroup.value.secretKey)}}function pt(p,T){if(1&p){const a=n.RV6();n.j41(0,"button",20),n.bIt("click",function(){n.eBV(a);const i=n.XpG();return n.Njj(i.onResetToDefault())}),n.nrm(1,"i",21),n.EFF(2),n.nI1(3,"translate"),n.k0s()}2&p&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"sysconfig.sysEnv.sysAuthen.actions.reset")," "))}function ht(p,T){if(1&p){const a=n.RV6();n.j41(0,"button",22),n.bIt("click",function(){n.eBV(a);const i=n.XpG();return n.Njj(i.onSave())}),n.nrm(1,"i",23),n.EFF(2),n.nI1(3,"translate"),n.k0s()}2&p&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"sysconfig.sysEnv.sysAuthen.actions.save")," "))}let ft=(()=>{class p{constructor(a,l,i,m){this._translate=a,this._utils=l,this._sysAuthenService=i,this._toastService=m,this.loading=!1,this.fieldSize="md",this.DEFAULT_CONFIG={status:!0,siteKey:"",secretKey:""},this.currentConfig=this.DEFAULT_CONFIG,this.formGroup=new b.gE({status:new b.hs(!1),siteKey:new b.MJ("",[b.k0.required,J.Bm6.maxLength(20)]),secretKey:new b.MJ("",[b.k0.required,J.Bm6.maxLength(20)])}),this.trim=this._utils.trimOnBlur}ngOnInit(){this.getCurrentConfig()}get f(){return this.formGroup.controls}clearValue(a){this.formGroup.get(a)?.setValue(null),this.formGroup.get(a)?.markAsDirty(),this.formGroup.get(a)?.markAsTouched(),this.formGroup.get(a)?.updateValueAndValidity()}checkValidate(){return this._utils.checkValidate(this.formGroup,this.inputs)}setFormValues(){this.formGroup.get("status").setValue(!!this.currentConfig.status&&this.currentConfig.status),this.formGroup.get("siteKey").setValue(this.currentConfig.siteKey?this.currentConfig.siteKey:""),this.formGroup.get("secretKey").setValue(this.currentConfig.secretKey?this.currentConfig.secretKey:"")}getCurrentConfig(){this._sysAuthenService.getSysRecaptchaConfig().subscribe(a=>{let l=a.data;l&&l.length>0&&(this.currentConfig=l[0],this.setFormValues())})}onSave(){this.checkValidate()&&(this.currentConfig.status=this.formGroup.get("status").value,this.currentConfig.siteKey=this.formGroup.get("siteKey").value,this.currentConfig.secretKey=this.formGroup.get("secretKey").value,this._sysAuthenService.updateSysRecaptchaConfig(this.currentConfig).subscribe(a=>{this._toastService.success("",this._translate.instant("sysconfig.sysEnv.sysAuthen.message.updatedSysAuthen"))},a=>{this._toastService.error("",this._translate.instant("sysconfig.sysEnv.sysAuthen.message.failedSysAuthen"))}))}onResetToDefault(){this.currentConfig=this.DEFAULT_CONFIG,this.setFormValues(),this.onSave()}static{this.\u0275fac=function(l){return new(l||p)(n.rXU(s.c$),n.rXU(J.$Db),n.rXU(J.NIB),n.rXU(K.Mo))}}static{this.\u0275cmp=n.VBU({type:p,selectors:[["lib-sys-authen-captcha"]],viewQuery:function(l,i){if(1&l&&n.GBs(w.fZ,5),2&l){let m;n.mGM(m=n.lsd())&&(i.inputs=m)}},decls:37,vars:24,consts:[["clearableSiteKey",""],["clearableSecretKey",""],["vts-form","","vtsLayout","vertical",3,"formGroup"],["vts-row","",3,"vtsGutter"],[1,"drawer-format","label-edit"],[1,"pdl-8"],[3,"ngModel","ngModelOptions"],["vts-col","",3,"vtsSpan"],["vtsRequired",""],[1,"input-box",3,"vtsSize","vtsSuffix"],["vts-input","","placeholder","","formControlName","siteKey","maxlength","100",3,"blur"],[3,"control"],["vts-input","","placeholder","","formControlName","secretKey",3,"blur"],["vts-row","",1,"footer-main"],["vts-space","","vtsJustify","end","vtsDirection","horizontal","vts-col","","vtsSpan","24"],["vtsWrap","",3,"vtsPreset"],["class","reset-btn","vtsSize","sm","vts-button","",3,"click",4,"vtsSpaceItem"],["class","save-btn","vtsType","primary","vtsSize","sm","vts-button","",3,"click",4,"vtsSpaceItem"],["vts-icon","","vtsTheme","fill","class","vts-input-clear-icon","vtsType","ClearDoutone
1:vts",3,"click",4,"ngIf"],["vts-icon","","vtsTheme","fill","vtsType","ClearDoutone:vts",1,"vts-input-clear-icon",3,"click"],["vtsSize","sm","vts-button","",1,"reset-btn",3,"click"],["vts-icon","","vtsType","SettingsBackupRestoreOutline:vts",2,"padding-top","2px"],["vtsType","primary","vtsSize","sm","vts-button","",1,"save-btn",3,"click"],["vts-icon","","vtsType","AddCircle"]],template:function(l,i){if(1&l){const m=n.RV6();n.j41(0,"form",2)(1,"div",3)(2,"vts-form-label")(3,"span",4),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.j41(6,"span",5),n.nrm(7,"vts-switch",6),n.k0s()()(),n.j41(8,"div",3)(9,"div",7)(10,"vts-form-item")(11,"vts-form-label",8)(12,"span",4),n.EFF(13),n.nI1(14,"translate"),n.k0s()(),n.j41(15,"vts-form-control")(16,"vts-input-group",9)(17,"input",10),n.bIt("blur",function(){return n.eBV(m),n.Njj(i.trim(i.formGroup,"siteKey"))}),n.k0s()(),n.DNE(18,ct,1,1,"ng-template",null,0,n.C5r),n.nrm(20,"authentication-ui-control-messages",11),n.k0s()()(),n.j41(21,"div",7)(22,"vts-form-item")(23,"vts-form-label",8),n.EFF(24),n.nI1(25,"translate"),n.k0s(),n.j41(26,"vts-form-control")(27,"vts-input-group",9)(28,"input",12),n.bIt("blur",function(){return n.eBV(m),n.Njj(i.trim(i.formGroup,"secretKey"))}),n.k0s()(),n.DNE(29,gt,1,1,"ng-template",null,1,n.C5r),n.nrm(31,"authentication-ui-control-messages",11),n.k0s()()()(),n.j41(32,"div",13)(33,"div",14)(34,"vts-space",15),n.DNE(35,pt,4,3,"button",16)(36,ht,4,3,"button",17),n.k0s()()()()}if(2&l){const m=n.sdS(19),c=n.sdS(30);n.Y8G("formGroup",i.formGroup),n.R7$(),n.Y8G("vtsGutter",24),n.R7$(3),n.SpI(" ",n.bMT(5,17,"S\u1eed d\u1ee5ng reCAPTCHA \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o thao t\xe1c c\u1ee7a ng\u01b0\u1eddi th\u1ef1c, kh\xf4ng ph\u1ea3i c\u1ee7a bot")," "),n.R7$(3),n.Y8G("ngModel",i.currentConfig.status)("ngModelOptions",n.lJ4(23,rt)),n.R7$(),n.Y8G("vtsGutter",24),n.R7$(),n.Y8G("vtsSpan",12),n.R7$(4),n.JRh(n.bMT(14,19,"Site key")),n.R7$(3),n.Y8G("vtsSize",i.fieldSize)("vtsSuffix",m),n.R7$(4),n.Y8G("control",i.f.siteKey),n.R7$(),n.Y8G("vtsSpan",12),n.R7$(3),n.JRh(n.bMT(25,21,"Secret key")),n.R7$(3),n.Y8G("vtsSize",i.fieldSize)("vtsSuffix",c),n.R7$(4),n.Y8G("control",i.f.secretKey),n.R7$(3),n.Y8G("vtsPreset",2)}},dependencies:[F.MD,F.bT,j.dA,j.qb,s.h,s.D9,b.YN,b.qT,b.me,b.BC,b.cb,b.tU,b.vS,o.Cn,W.SX,H.tH,H.BE,W.dF,W.Qp,W.rA,W.Yc,t.L,w.iO,w.fZ,w.eH,w.Ms,b.X1,b.j4,b.JD,H.mi,Q.mn,Q.Zi,Q.Uk,r.G,r.R$,nt.T,st.fX,d.u,d.n],styles:[".reset-btn[_ngcontent-%COMP%]{border-radius:6px;border-color:#737373;color:#737373}.save-btn[_ngcontent-%COMP%]{border-radius:6px}.pdl-8[_ngcontent-%COMP%]{padding-left:8px}.title-expand-config[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:10px 10px 10px 12px;background-color:#efe7e7;font-weight:700} lib-sys-authentication .vts-form-item-label>label:has(span){display:flex;justify-content:space-between}.d-flex[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin:0}.gap-10[_ngcontent-%COMP%]{gap:10px}.gap-8[_ngcontent-%COMP%]{gap:8px}.gap-14[_ngcontent-%COMP%]{gap:14px}[_nghost-%COMP%] .vts-card-body{padding:0}[_nghost-%COMP%] .vts-tabs-nav{padding-left:12px}.footer-main[_ngcontent-%COMP%]{padding:12px 10px}.pl-16[_ngcontent-%COMP%]{padding-left:16px!important}.pl-12[_ngcontent-%COMP%]{padding-left:12px!important}.pl-10[_ngcontent-%COMP%]{padding-left:10px!important}.pl-5[_ngcontent-%COMP%]{padding-left:5px!important}.pr-16[_ngcontent-%COMP%]{padding-right:16px!important}.pr-12[_ngcontent-%COMP%]{padding-right:12px!important}.pr-10[_ngcontent-%COMP%]{padding-right:10px!important}.pr-5[_ngcontent-%COMP%]{padding-right:5px!important}.pd-0[_ngcontent-%COMP%]{padding:0!important}.mb-8[_ngcontent-%COMP%]{margin-bottom:8px!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.box-tabset[_ngcontent-%COMP%] vts-tabs-nav{margin-bottom:8px}.h-24[_ngcontent-%COMP%]{height:24px}.pt-8[_ngcontent-%COMP%]{padding-top:8px} vts-input-group span{color:#737373}"]})}}return p})()},19180:(mt,q,g)=>{g.d(q,{T:()=>N});var F=g(98231),e=g(90695),$=g(51628),y=g(44025),U=g(70159),K=g(34226),z=g(44752),j=g(15799),O=g(28113),D=g(86570),n=g(44267),k=g(65197),V=g(15385),B=g(12119),Y=g(98259),tt=g
1(52702),b=g(15941),s=g(23135),r=g(62794),o=g(2765);const t=()=>({standalone:!0});function W(C,G){if(1&C){const d=s.RV6();s.j41(0,"span",35),s.bIt("click",function(){s.eBV(d);const v=s.XpG(2);return s.Njj(v.clearValue("loginTimeOut"))}),s.k0s()}}function H(C,G){if(1&C&&s.DNE(0,W,1,0,"span",34),2&C){const d=s.XpG();s.Y8G("ngIf",d.formGroup.value.loginTimeOut&&""!=d.formGroup.value.loginTimeOut)}}function w(C,G){if(1&C&&s.nrm(0,"vts-option",36),2&C){const d=G.$implicit,h=s.XpG();s.Y8G("vtsValue",d.value)("vtsLabel","vi"==h.currentLanguage?d.labelVi:d.labelEn)}}function Q(C,G){1&C&&s.nrm(0,"i",37)}function st(C,G){1&C&&s.nrm(0,"i",38)}function J(C,G){if(1&C&&(s.qex(0),s.j41(1,"label",52),s.EFF(2),s.nI1(3,"translate"),s.k0s(),s.bVm()),2&C){const d=s.XpG(2);s.R7$(),s.Y8G("ngModel",d.formGroup.get("sendViaWhenForgetPassword").value.includes("1"))("ngModelOptions",s.lJ4(5,t)),s.R7$(),s.SpI(" ",s.bMT(3,3,"sysconfig.sysEnv.sysAuthen.labels.viaEmail")," ")}}function ot(C,G){if(1&C){const d=s.RV6();s.j41(0,"span",35),s.bIt("click",function(){s.eBV(d);const v=s.XpG(3);return s.Njj(v.clearValue("rememberLoginTimeOut"))}),s.k0s()}}function et(C,G){if(1&C&&s.DNE(0,ot,1,0,"span",34),2&C){const d=s.XpG(2);s.Y8G("ngIf",d.formGroup.value.rememberLoginTimeOut&&""!=d.formGroup.value.rememberLoginTimeOut)}}function it(C,G){if(1&C&&s.nrm(0,"vts-option",36),2&C){const d=G.$implicit,h=s.XpG(2);s.Y8G("vtsValue",d.value)("vtsLabel","vi"==h.currentLanguage?d.labelVi:d.labelEn)}}function nt(C,G){if(1&C){const d=s.RV6();s.j41(0,"div",39)(1,"vts-form-item",5)(2,"vts-form-label",6),s.EFF(3),s.nI1(4,"translate"),s.k0s(),s.j41(5,"vts-form-control")(6,"span",40)(7,"vts-checkbox-wrapper",8),s.bIt("vtsOnChange",function(v){s.eBV(d);const f=s.XpG();return s.Njj(f.onSelectUsernameType(v,"3"))}),s.j41(8,"label",41),s.EFF(9),s.nI1(10,"translate"),s.k0s()()(),s.nrm(11,"authentication-ui-control-messages",13),s.k0s()(),s.j41(12,"vts-form-item",5)(13,"vts-form-label",6),s.EFF(14),s.nI1(15,"translate"),s.k0s(),s.j41(16,"span",42)(17,"vts-form-control")(18,"vts-checkbox-wrapper",43),s.bIt("vtsOnChange",function(v){s.eBV(d);const f=s.XpG();return s.Njj(f.onChangeMethodWhenForgot(v))}),s.j41(19,"div",44),s.DNE(20,J,4,6,"ng-container",33),s.j41(21,"label",45),s.EFF(22),s.nI1(23,"translate"),s.k0s()()(),s.nrm(24,"authentication-ui-control-messages",13),s.k0s()()(),s.j41(25,"vts-form-item",46)(26,"vts-form-label")(27,"span",15),s.EFF(28),s.nI1(29,"translate"),s.k0s(),s.j41(30,"span",47)(31,"vts-switch",48),s.mxI("ngModelChange",function(v){s.eBV(d);const f=s.XpG();return s.DH7(f.currentConfig.rmbPass,v)||(f.currentConfig.rmbPass=v),s.Njj(v)}),s.bIt("ngModelChange",function(v){s.eBV(d);const f=s.XpG();return s.Njj(f.onChangeRmbPass(v))}),s.k0s()()()(),s.j41(32,"vts-form-item",5)(33,"vts-form-control")(34,"vts-form-label",49)(35,"span",15),s.EFF(36),s.nI1(37,"translate"),s.k0s()(),s.j41(38,"span",16)(39,"span",17)(40,"vts-input-group",18)(41,"input",50),s.bIt("ngModelChange",function(v){s.eBV(d);const f=s.XpG();return s.Njj(f.onChangeLoginTimeOut(v,"rememberLoginTimeOut"))}),s.k0s()(),s.DNE(42,et,1,1,"ng-template",null,1,s.C5r),s.nrm(44,"authentication-ui-control-messages",13),s.k0s(),s.j41(45,"span",17)(46,"vts-select",51),s.bIt("ngModelChange",function(v){s.eBV(d);const f=s.XpG();return s.Njj(f.onChangeLoginTimeOut(v,"rememberLoginTimeOut"))}),s.DNE(47,it,1,2,"vts-option",21),s.k0s()()()()()()}if(2&C){const d=s.sdS(43),h=s.XpG();s.R7$(3),s.JRh(s.bMT(4,25,"sysconfig.sysEnv.sysAuthen.labels.allowUsername")),s.R7$(3),s.Y8G("ngClass",h.isEmailActivated?"d-flex row justify-between":"d-flex row"),s.R7$(2),s.Y8G("ngModel",h.selectedUsernameTypes.includes("3"))("ngModelOptions",s.lJ4(37,t)),s.R7$(),s.SpI(" ",s.bMT(10,27,"sysconfig.sysEnv.sysAuthen.labels.phoneNumber")," "),s.R7$(2),s.Y8G("control",h.f.signType),s.R7$(3),s.JRh(s.bMT(15,29,"sysconfig.sysEnv.sysAuthen.labels.methodProvidePasswordWhenForgot")),s.R7$(6),s.Y8G("ngIf",h.isEmailActivated),s.R7$(),s.Y8G("ngModel",h.formGroup.get("sendViaWhenForgetPassword").value.includes("2"))("ngModelOptions",s.lJ4(38,t)),s.R7$(),s.SpI(" ",s.bMT(23,31,"sysconfig.sysEnv.sysAuthen.labels.viaSms")," "),s.R7$(2),s.Y8G("control",h.f.sendViaWhenForgetPassword),s.R7$(4),s.JRh(s.bMT(29,33,"sysconfig.sysEnv.sysAuthen.labels.displayRememberPassword")),s.R7$(3),s.R50("ngModel",h.currentConfig.rmbPass),s.Y8G("ngModelOptions",s.lJ4(39,t)),s.R7$(3),s.Y8G("vtsRequired",h.currentConfig.rmbPass),s.R7$(2),s.SpI(" ",s.bMT(37,35,"sysconfig.sysEnv.sysAuthen.labels.validRememberPasswordTime"),""),s.R7$(2),s.Y8G("vtsGutter",8),s.R7$(),s.Y8G("vtsSpan",19),s.R7$(),s.Y8G("vtsSize",h.fieldSize)("vtsSuffix",d),s.R7$(),s.Y8G("control",h.f.rememberLoginTimeOut),s.R7$(3),s.Y8G("control",h.f.rememberLoginTimeOut),s.R7$(),s.Y8G("vtsSpan",5),s.R7$(2),s.Y8G("ngForOf",h.listTimeUnit)}}function at(C,G){1&C&&s.nrm(0,"i",37)}function I(C,G){1&C&&s.nrm(0,"i",38)}function Z(C,G){if(1&C){const d=s.RV6();s.j41(0,"vts-checkbox-wrapper",8),s.bIt("vtsOnChange",function(v){s.eBV(d);const f=s.XpG(2);return s.Njj(f.onSelectThirdPartyType(v,"1"))}),s.j41(1,"label",10),s.EFF(2,"Google"),s.k0s()()}if(2&C){const d=s.XpG(2);s.R7$(),s.Y8G("ngModel",d.selectedThirdPartyTypes.includes("1"))("ngModelOptions",s.lJ4(2,t))}}function P(C,G){if(1&C){const d=s.RV6();s.j41(0,"vts-checkbox-wrapper",8),s.bIt("vtsOnChange",function(v){s.eBV(d);const f=s.XpG(2);return s.Njj(f.onSelectThirdPartyType(v,"2"))}),s.j41(1,"label",56),s.EFF(2,"Facebook"),s.k0s()()}if(2&C){const d=s.XpG(2);s.R7$(),s.Y8G("ngModel",d.selectedThirdPartyTypes.includes("2"))("ngModelOptions",s.lJ4(2,t))}}function x(C,G){if(1&C&&(s.j41(0,"div",53)(1,"vts-form-item",5)(2,"vts-form-label",6),s.EFF(3),s.nI1(4,"translate"),s.k0s(),s.j41(5,"vts-form-control")(6,"span",54),s.DNE(7,Z,3,3,"vts-checkbox-wrapper",55)(8,P,3,3,"vts-checkbox-wrapper",55),s.k0s(),s.nrm(9,"authentication-ui-control-messages",13),s.k0s()()()),2&C){const d=s.XpG();s.R7$(3),s.JRh(s.bMT(4,4,"sysconfig.sysEnv.sysAuthen.labels.allowThirdParty")),s.R7$(4),s.Y8G("ngIf",d.authenticationConfig.loginThirdParties.google),s.R7$(),s.Y8G("ngIf",d.authenticationConfig.loginThirdParties.facebook),s.R7$(),s.Y8G("control",d.f.thirdPartyType)}}function M(C,G){if(1&C){const d=s.RV6();s.qex(0),s.j41(1,"button",57),s.bIt("click",function(){s.eBV(d);const v=s.XpG();return s.Njj(v.onSave())}),s.nrm(2,"i",58),s.EFF(3),s.nI1(4,"translate"),s.k0s(),s.bVm()}if(2&C){const d=s.XpG();s.R7$(),s.Y8G("disabled",!d.formGroup.valid||d.isSubmitting),s.R7$(2),s.SpI(" ",s.bMT(4,2,"sysconfig.sysEnv.sysAuthen.actions.save")," ")}}let N=(()=>{class C{constructor(d,h,v,f,S,_,L){this._translate=d,this._utils=h,this._sysAuthenService=v,this.serviceSys=f,this._toastService=S,this._authShareService=_,this.authenticationConfig=L,this.loading=!1,this.fieldSize="md",this.currentLanguage="vi",this.listTimeUnit=[{value:0,labelVi:"Gi\xe2y",labelEn:"Second(s)"},{value:1,labelVi:"Ph\xfat",labelEn:"Minute(s)"},{value:2,labelVi:"Gi\u1edd",labelEn:"Hour(s)"}],this.DEFAULT_CONFIG={loginMethods:"1",signType:"1",rmbPass:!0,recaptcha:!1,passPhoneStatus:!1,passEmailStatus:!1,activeTime:10,activeTimeUnit:2,loginTimeOut:10,loginTimeOutUnit:2,rememberLoginTimeOut:720,rememberLoginTimeOutUnit:2,sendViaWhenForgetPassword:"1",usbTokenStatus:!1,passStatus:!0,phoneStatus:!0,thirdStatus:!0,ggStatus:!0},this.currentConfig=this.DEFAULT_CONFIG,this.formGroup=new e.gE({loginMethods:new e.hs("",[e.k0.required,this.checkLoginMethods()]),thirdPartyType:new e.hs("",e.k0.required),signType:new e.MJ("",[e.k0.required]),loginTimeOut:new e.MJ(0,[e.k0.required,V.Bm6.maxLength(10)]),loginTimeOutUnit:new e.MJ(1),rememberLoginTimeOut:new e.MJ(0,[V.Bm6.maxLength(10),e.k0.min(1)]),rememberLoginTimeOutUnit:new e.MJ(1),sendViaWhenForgetPassword:new e.MJ("",[e.k0.required])}),this.showUpdateLogin=!1,this.trim=this._utils.trimOnBlur,this.selectedUsernameTypes=[],this.selectedThirdPartyTypes=[],this.showSignInConfig=!0,this.showSignInConfigThirdParty=!0,this.isEmailActivated=!1,this.currentLanguage=localStorage.getItem("lang")||"vi"}ngOnInit(){this.getCurrentConfig()}get f(){return this.formGroup.controls}clearValue(d){this.formGroup.get(d)?.setValue(null),this.formGroup.get(d)?.markAsDirty(),this.formGroup.get(d)?.markAsTouched(),this.formGroup.get(d)?.updateValueAndValidity()}checkValidate(){return this._utils.checkValidate(this.formGroup,this.inputs)}setFormValues(){const d=[];this.currentConfig.passStatus&&d.push(1),this.currentConfig.phoneStatus&&d.push(2),this.currentConfig.thirdStatus&&d.push(3),this.formGroup.get("loginMethods").setValue(d.toString());const h=[];this.currentConfig.ggStatus&&h.push(1),this.currentConfig.fbStatus&&h.push(2),this.formGroup.get("thirdPartyType").setValue(h.toString()),this.selectedThirdPartyTypes=this.formGroup.get("thirdPartyType").value.split(",").filter(v=>""!=v),this.formGroup.get("loginTimeOut").setValue(this.currentConfig.loginTimeOut),this.formGroup.get("loginTimeOutUnit").setValue(this.currentConfig.loginTimeOutUnit),this.formGroup.get("rememberLoginTimeOut").setValue(this.currentConfig.rememberLoginTimeOut),this.formGroup.get("rememberLoginTimeOutUnit").setValue(this.currentConfig.rememberLoginTimeOutUnit),this.formGroup.get("signType").setValue(this.currentConfig&&this.currentConfig.signType?this.currentConfig.signType:""),this.selectedUsernameTypes=["3"],this.formGroup.get("sendViaWhenForgetPassword").setValue(this.currentConfig&&this.currentConfig.sendViaWhenForgetPassword?this.currentConfig.sendViaWhenForgetPassword:"")}getCurrentConfig(){this._sysAuthenService.getSysLoginConfig().subscribe(d=>{const h=d.data;h&&h.length>0&&(this.currentConfig=h[0],this.setFormValues())})}onSave(){if(this.checkValidate()){const d={id:this.currentConfig.id,tenantId:this.currentConfig.tenantId,passStatus:this.formGroup.get("loginMethods").value.includes("1"),usbTokenStatus:this.currentConfig.usbTokenStatus,phoneStatus:this.formGroup.get("loginMethods").value.includes("2"),thirdStatus:this.formGroup.get("thirdPartyType").value.length>0,ggStatus:this.formGroup.get("thirdPartyType").value.includes("1"),fbStatus:this.formGroup.get("thirdPartyType").value.includes("2"),signType:this.formGroup.get("signType").value,rmbPass:this.currentConfig.rmbPass,passEmailStatus:this.currentConfig.passPhoneStatus,loginTimeOut:+this.formGroup.get("loginTimeOut").value,loginTimeOutUnit:+this.formGroup.get("loginTimeOutUnit").value,rememberLoginTimeOut:+this.formGroup.get("rememberLoginTimeOut").value,rememberLoginTimeOutUnit:+this.formGroup.get("rememberLoginTimeOutUnit").value,sendViaWhenForgetPassword:this.formGroup.get("sendViaWhenForgetPassword").value};this._sysAuthenService.updateSysLoginConfig(d).subscribe(h=>{h&&h.detail&&(this._toastService.success("",this._translate.instant("sysconfig.sysEnv.sysAuthen.message.updatedSysAuthen")),this.currentConfig=h.detail,this._authShareService.sysAuthenLoginSharer$.next(this.currentConfig),this.setFormValues())},h=>{})}}onResetToDefault(){this.currentConfig={id:this.currentConfig.id,tenantId:this.currentConfig.tenantId,...this.DEFAULT_CONFIG},this.setFormValues(),this.onSave()}onSelectUsernameType(d,h){d.length>0&&!this.selectedUsernameTypes.includes(h)?this.selectedUsernameTypes.push(h):this.selectedUsernameTypes.includes(h)&&
1(this.selectedUsernameTypes=this.selectedUsernameTypes.filter(v=>v!=h)),this.formGroup.get("signType").setValue(this.selectedUsernameTypes.length>0?this.selectedUsernameTypes.join(","):"")}onSelectThirdPartyType(d,h){d.length>0&&!this.selectedThirdPartyTypes.includes(h)?this.selectedThirdPartyTypes.push(h):this.selectedThirdPartyTypes.includes(h)&&(this.selectedThirdPartyTypes=this.selectedThirdPartyTypes.filter(v=>v!=h)),this.formGroup.get("thirdPartyType").setValue(this.selectedThirdPartyTypes.length>0?this.selectedThirdPartyTypes.join(","):"")}onChangeRmbPass(d){d?this.formGroup.get("rememberLoginTimeOut").setValidators([V.Bm6.required,V.Bm6.maxLength(10),e.k0.min(1)]):this.formGroup.get("rememberLoginTimeOut").setValidators([V.Bm6.maxLength(10),e.k0.min(1)])}onChangeMethodWhenForgot(d){this.formGroup.get("sendViaWhenForgetPassword").setValue(d.toString())}onChangeLoginMethod(d){this.formGroup.get("loginMethods").setValue(d.toString()),d.includes("3")?this.formGroup.get("thirdPartyType").setValidators([e.k0.required]):(this.selectedThirdPartyTypes=[],this.formGroup.get("thirdPartyType").removeValidators([e.k0.required]),this.formGroup.get("thirdPartyType").setValue(""))}checkLoginTimeOut(d){const h=this._translate.instant("sysconfig.sysEnv.sysAuthen.labels.validRememberPasswordTime"),v=this._translate.instant("sysconfig.sysEnv.sysAuthen.labels.validLoginTime");return f=>{const S=f.parent;if(!S)return null;let _=S.get("loginTimeOut").value||0,L=S.get("rememberLoginTimeOut").value||0;const A=S.get("loginTimeOutUnit").value||0,X=S.get("rememberLoginTimeOutUnit").value||0;return _*=Math.pow(60,A),L*=Math.pow(60,X),_>=L?"loginTimeOut"==d?{smallerThanValue:{min:v,max:h}}:{greaterThanValue:{min:v,max:h}}:null}}onChangeLoginTimeOut(d,h){let v=this.formGroup.get("loginTimeOut").value||0,f=this.formGroup.get("rememberLoginTimeOut").value||0;const S=this.formGroup.get("loginTimeOutUnit").value||0,_=this.formGroup.get("rememberLoginTimeOutUnit").value||0;v*=Math.pow(60,S),f*=Math.pow(60,_),v>=f&&0!==v&&0!==f?this.formGroup.get(h).addValidators(this.checkLoginTimeOut(h)):(this.formGroup.get("loginTimeOut").setValidators([e.k0.required,V.Bm6.maxLength(10)]),this.formGroup.get("rememberLoginTimeOut").setValidators([V.Bm6.maxLength(10),e.k0.min(1)]),this.currentConfig.rmbPass&&this.formGroup.get("rememberLoginTimeOut").addValidators(e.k0.required)),this.formGroup.get("loginTimeOut").updateValueAndValidity(),this.formGroup.get("rememberLoginTimeOut").updateValueAndValidity()}checkLoginMethods(){return d=>{const h=d.parent;return h?h.get("loginMethods").value.includes("1")||h.get("loginMethods").value.includes("2")?(h.get("loginMethods").setErrors(null),h.updateValueAndValidity(),null):{invalidLoginMethod:!0}:null}}static{this.\u0275fac=function(h){return new(h||C)(s.rXU($.c$),s.rXU(V.$Db),s.rXU(V.NIB),s.rXU(V.yhK),s.rXU(r.Mo),s.rXU(V.uRZ),s.rXU(V._0Y))}}static{this.\u0275cmp=s.VBU({type:C,selectors:[["lib-sys-authen-login"]],viewQuery:function(h,v){if(1&h&&s.GBs(n.fZ,5),2&h){let f;s.mGM(f=s.lsd())&&(v.inputs=f)}},inputs:{showUpdateLogin:"showUpdateLogin",isEmailActivated:"isEmailActivated"},decls:61,vars:56,consts:[["clearableLoginTimeOut",""],["clearableRememberLoginTimeOut",""],["vts-form","","vtsLayout","vertical",3,"formGroup"],["vts-row",""],["vts-col","",1,"pl-12","pr-10",3,"vtsSpan"],[1,"pd-0","mb-0"],["vtsRequired","",1,"label-form-page"],[2,"font-style","italic","font-size","14px","color","#73777A","margin-bottom","4px"],[3,"vtsOnChange"],[1,"login-methods","gap-8"],["vtsValue","1","vts-checkbox","",3,"ngModel","ngModelOptions"],["vtsValue","2","vts-checkbox","",2,"margin-left","0px",3,"ngModel","ngModelOptions"],["vtsValue","3","vts-checkbox","",2,"margin-left","0px",3,"ngModel","ngModelOptions"],[3,"control"],[1,"pl-12","pd-0","mb-0"],[1,"drawer-format","label-edit"],["vts-row","",3,"vtsGutter"],["vts-col","",3,"vtsSpan"],[1,"input-box",3,"vtsSize","vtsSuffix"],["vts-input","","placeholder","","numbersOnly","","formControlName","loginTimeOut","maxlength","10",3,"ngModelChange","control"],["formControlName","loginTimeOutUnit","vtsShowSearch","",3,"ngModelChange"],[3,"vtsValue","vtsLabel",4,"ngFor","ngForOf"],["vts-row","","vts-col","",1,"pr-10",3,"vtsSpan"],[1,"title-expand-config","mg-b-12","mg-t-12",3,"click"],["vts-icon","","vtsType","ArrowDownOutline:vts",4,"ngIf"],["vts-icon","","vtsType","ArrowUpOutline:vts",4,"ngIf"],["vts-row","","style","flex-direction: column;","class","pl-12",4,"ngIf"],[1,"title-expand-config","mg-b-12","mg-t-12","pl-12",3,"click"],["vts-row","","class","pr-10 pl-12",4,"ngIf"],[1,"footer-main","pr-12"],["vtsJustify","end","vtsDirection","horizontal","vts-row","","vtsSpan","24",1,"footer-btns"],["vtsSize","sm","vts-button","","type","button",1,"reset-btn",3,"click"],["vts-icon","","vtsType","SettingsBackupRestoreOutline:vts",2,"padding-top","2px"],[4,"ngIf"],["vts-icon","","vtsTheme","fill","class","vts-input-clear-icon","vtsType","ClearDoutone
1:vts",3,"click",4,"ngIf"],["vts-icon","","vtsTheme","fill","vtsType","ClearDoutone:vts",1,"vts-input-clear-icon",3,"click"],[3,"vtsValue","vtsLabel"],["vts-icon","","vtsType","ArrowDownOutline:vts"],["vts-icon","","vtsType","ArrowUpOutline:vts"],["vts-row","",1,"pl-12",2,"flex-direction","column"],[1,"mg-b-8",3,"ngClass"],["vtsValue","3","vts-checkbox","",3,"ngModel","ngModelOptions"],[2,"display","flex","flex-direction","rowumn"],[1,"mg-b-12",3,"vtsOnChange"],[1,"d-flex","column","gap-8"],["vts-checkbox","","vtsValue","2",3,"ngModel","ngModelOptions"],[1,"mb-8"],[1,"pdl-8"],[3,"ngModelChange","ngModel","ngModelOptions"],[1,"label-form-page",3,"vtsRequired"],["vts-input","","placeholder","","numbersOnly","","formControlName","rememberLoginTimeOut","maxlength","10",3,"ngModelChange","control"],["formControlName","rememberLoginTimeOutUnit","vtsShowSearch","",3,"ngModelChange"],["vts-checkbox","","vtsValue","1",3,"ngModel","ngModelOptions"],["vts-row","",1,"pr-10","pl-12"],[1,"mg-b-8","d-flex",2,"flex-direction","column"],[3,"vtsOnChange",4,"ngIf"],["vtsValue","2","vts-checkbox","",3,"ngModel","ngModelOptions"],["vtsSize","sm","vtsType","primary","vts-button","","type","button",1,"save-btn",3,"click","disabled"],["vts-icon","","vtsType","SaveOutline:vts"]],template:function(h,v){if(1&h){const f=s.RV6();s.j41(0,"form",2)(1,"div",3)(2,"div",4)(3,"vts-form-item",5)(4,"vts-form-label",6),s.EFF(5),s.nI1(6,"translate"),s.k0s(),s.j41(7,"small",7),s.EFF(8),s.nI1(9,"translate"),s.k0s(),s.j41(10,"vts-form-control")(11,"vts-checkbox-wrapper",8),s.bIt("vtsOnChange",function(_){return s.eBV(f),s.Njj(v.onChangeLoginMethod(_))}),s.j41(12,"span",9)(13,"label",10),s.EFF(14),s.nI1(15,"translate"),s.k0s(),s.j41(16,"label",11),s.EFF(17),s.nI1(18,"translate"),s.k0s(),s.j41(19,"label",12),s.EFF(20),s.nI1(21,"translate"),s.k0s()()(),s.nrm(22,"authentication-ui-control-messages",13),s.k0s()(),s.j41(23,"vts-form-item",14)(24,"vts-form-control")(25,"vts-form-label",6)(26,"span",15),s.EFF(27),s.nI1(28,"translate"),s.k0s()(),s.j41(29,"span",16)(30,"span",17)(31,"vts-input-group",18)(32,"input",19),s.bIt("ngModelChange",function(_){return s.eBV(f),s.Njj(v.onChangeLoginTimeOut(_,"loginTimeOut"))}),s.k0s()(),s.DNE(33,H,1,1,"ng-template",null,0,s.C5r),s.nrm(35,"authentication-ui-control-messages",13),s.k0s(),s.j41(36,"span",17)(37,"vts-select",20),s.bIt("ngModelChange",function(_){return s.eBV(f),s.Njj(v.onChangeLoginTimeOut(_,"loginTimeOut"))}),s.DNE(38,w,1,2,"vts-option",21),s.k0s()()()()()()(),s.j41(39,"div",3)(40,"div",22)(41,"span",23),s.bIt("click",function(){return s.eBV(f),s.Njj(v.showSignInConfig=!v.showSignInConfig)}),s.EFF(42),s.nI1(43,"translate"),s.DNE(44,Q,1,0,"i",24)(45,st,1,0,"i",25),s.k0s(),s.DNE(46,nt,48,40,"div",26),s.k0s(),s.j41(47,"div",17)(48,"span",27),s.bIt("click",function(){return s.eBV(f),s.Njj(v.showSignInConfigThirdParty=!v.showSignInConfigThirdParty)}),s.EFF(49),s.nI1(50,"translate"),s.DNE(51,at,1,0,"i",24)(52,I,1,0,"i",25),s.k0s(),s.DNE(53,x,10,6,"div",28),s.k0s()(),s.j41(54,"div",29)(55,"div",30)(56,"button",31),s.bIt("click",function(){return s.eBV(f),s.Njj(v.onResetToDefault())}),s.nrm(57,"i",32),s.EFF(58),s.nI1(59,"translate"),s.k0s(),s.DNE(60,M,5,4,"ng-container",33),s.k0s()()()}if(2&h){const f=s.sdS(34);s.Y8G("formGroup",v.formGroup),s.R7$(2),s.Y8G("vtsSpan",12),s.R7$(3),s.JRh(s.bMT(6,35,"sysconfig.sysEnv.sysAuthen.labels.loginMethod")),s.R7$(3),s.JRh(s.bMT(9,37,"sysconfig.sysEnv.sysAuthen.labels.loginMethodsConditions")),s.R7$(5),s.Y8G("ngModel",v.formGroup.get("loginMethods").value.includes("1"))("ngModelOptions",s.lJ4(53,t)),s.R7$(),s.SpI(" ",s.bMT(15,39,"sysconfig.sysEnv.sysAuthen.labels.loginByUsernamePassword")," "),s.R7$(2),s.Y8G("ngModel",v.formGroup.get("loginMethods").value.includes("2"))("ngModelOptions",s.lJ4(54,t)),s.R7$(),s.SpI(" ",s.bMT(18,41,"sysconfig.sysEnv.sysAuthen.labels.loginByOtpSentPhoneNumber")," "),s.R7$(2),s.Y8G("ngModel",v.formGroup.get("loginMethods").value.includes("3"))("ngModelOptions",s.lJ4(55,t)),s.R7$(),s.SpI(" ",s.bMT(21,43,"sysconfig.sysEnv.sysAuthen.labels.loginByThirdParty")," "),s.R7$(2),s.Y8G("control",v.f.loginMethods),s.R7$(5),s.SpI(" ",s.bMT(28,45,"sysconfig.sysEnv.sysAuthen.labels.validLoginTime"),""),s.R7$(2),s.Y8G("vtsGutter",8),s.R7$(),s.Y8G("vtsSpan",19),s.R7$(),s.Y8G("vtsSize",v.fieldSize)("vtsSuffix",f),s.R7$(),s.Y8G("control",v.f.loginTimeOut),s.R7$(3),s.Y8G("control",v.f.loginTimeOut),s.R7$(),s.Y8G("vtsSpan",5),s.R7$(2),s.Y8G("ngForOf",v.listTimeUnit),s.R7$(2),s.Y8G("vtsSpan",12),s.R7$(2),s.SpI(" ",s.bMT(43,47,"sysconfig.sysEnv.sysAuthen.labels.loginConfig")," "),s.R7$(2),s.Y8G("ngIf",!v.showSignInConfig),s.R7$(),s.Y8G("ngIf",v.showSignInConfig),s.R7$(),s.Y8G("ngIf",v.showSignInConfig),s.R7$(),s.Y8G("vtsSpan",12),s.R7$(2),s.SpI(" ",s.bMT(50,49,"sysconfig.sysEnv.sysAuthen.labels.loginThirdPartyConfig")," "),s.R7$(2),s.Y8G("ngIf",!v.showSignInConfigThirdParty),s.R7$(),s.Y8G("ngIf",v.showSignInConfigThirdParty),s.R7$(),s.Y8G("ngIf",v.showSignInConfigThirdParty),s.R7$(5),s.SpI(" ",s.bMT(59,51,"sysconfig.sysEnv.sysAuthen.actions.reset")," "),s.R7$(2),s.Y8G("ngIf",v.showUpdateLogin)}},dependencies:[F.MD,F.YU,F.Sq,F.bT,D.dA,D.qb,$.h,$.D9,e.YN,e.qT,e.me,e.BC,e.cb,e.tU,e.vS,U.Cn,j.SX,O.tH,O.BE,j.dF,j.Qp,j.rA,j.Yc,z.L,n.iO,n.fZ,n.eH,n.Ms,e.X1,e.j4,e.JD,O.mi,k.mn,y.G,y.R$,o.T,Y.fX,B.v,K.VW,K.Ex,K.x$,tt.u,tt.n,b.u,b.mw,b.B1],styles:[".reset-btn[_ngcontent-%COMP%]{border-radius:6px;border-color:#737373;color:#737373}.save-btn[_ngcontent-%COMP%]{border-radius:6px}.pdl-8[_ngcontent-%COMP%]{padding-left:8px}.title-expand-config[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:10px 10px 10px 12px;background-color:#efe7e7;font-weight:700} lib-sys-authentication .vts-form-item-label>label:has(span){display:flex;justify-content:space-between}.d-flex[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin:0}.gap-10[_ngcontent-%COMP%]{gap:10px}.gap-8[_ngcontent-%COMP%]{gap:8px}.gap-14[_ngcontent-%COMP%]{gap:14px}[_nghost-%COMP%] .vts-card-body{padding:0}[_nghost-%COMP%] .vts-tabs-nav{padding-left:12px}.footer-main[_ngcontent-%COMP%]{padding:12px 10px}.pl-16[_ngcontent-%COMP%]{padding-left:16px!important}.pl-12[_ngcontent-%COMP%]{padding-left:12px!important}.pl-10[_ngcontent-%COMP%]{padding-left:10px!important}.pl-5[_ngcontent-%COMP%]{padding-left:5px!important}.pr-16[_ngcontent-%COMP%]{padding-right:16px!important}.pr-12[_ngcontent-%COMP%]{padding-right:12px!important}.pr-10[_ngcontent-%COMP%]{padding-right:10px!important}.pr-5[_ngcontent-%COMP%]{padding-right:5px!important}.pd-0[_ngcontent-%COMP%]{padding:0!important}.mb-8[_ngcontent-%COMP%]{margin-bottom:8px!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.box-tabset[_ngcontent-%COMP%] vts-tabs-nav{margin-bottom:8px}.h-24[_ngcontent-%COMP%]{height:24px}.pt-8[_ngcontent-%COMP%]{padding-top:8px} vts-input-group span{color:#737373}.box-config-title[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background:#efe7e7}span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:8px}span.login-methods[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding-bottom:10px}.mg-t-12[_ngcontent-%COMP%]{margin-top:12px}.footer-btns[_ngcontent-%COMP%]{gap:8px}"]})}}return C})()},24337:(mt,q,g)=>{g.r(q),g.d(q,{SysAuthenticationComponent:()=>D});var F=g(98231),e=g(51628),$=g(90695),y=g(70159),U=g(1578),K=g(23796),z=g(19180),j=g(15385),O=g(23135);let D=(()=>{class n{constructor(V,B){this.serviceSys=V,this._checkPermissionService=B,this.showUpdateAccount=!1,this.showUpdatePass=!1,this.showUpdateLogin=!1,this.permissionActionKey=[],this.isEmailActivated=!1}ngOnInit(){this.checkActionPermission(),this.getConfigEmail()}ngAfterViewInit(){}checkActionPermission(){this._checkPermissionService.checkPermissionForAction(["UPDATE","UPDATE","UPDATE"],[j.qiI.API_USERNAME_CONFIG,j.qiI.API_PASSWORD_CONFIG,j.qiI.API_LOGIN_CONFIG]).subscribe(Y=>{this.showUpdateAccount=Y[0],this.showUpdatePass=Y[1],this.showUpdateLogin=Y[2]})}getConfigEmail(){this.serviceSys.getEmailConfig(0,5).subscribe(V=>{this.isEmailActivated=V.body.data[0].active})}static{this.\u0275fac=function(B){return new(B||n)(O.rXU(j.yhK),O.rXU(j.X4S))}}static{this.\u0275cmp=O.VBU({type:n,selectors:[["lib-sys-authentication"]],decls:8,vars:10,consts:[["vtsAnimated","false",1,"box-tabset"],[3,"vtsTitle"],[3,"showUpdatePass","isEmailActivated"],[3,"showUpdateLogin","isEmailActivated"]],template:function(B,Y){1&B&&(O.j41(0,"vts-card")(1,"vts-tabset",0)(2,"vts-tab",1),O.nI1(3,"translate"),O.nrm(4,"lib-sys-password",2),O.k0s(),O.j41(5,"vts-tab",1),O.nI1(6,"translate"),O.nrm(7,"lib-sys-authen-login",3),O.k0s()()()),2&B&&(O.R7$(2),O.FS9("vtsTitle",O.bMT(3,6,"sysconfig.sysEnv.sysAuthen.password")),O.R7$(2),O.Y8G("showUpdatePass",Y.showUpdatePass)("isEmailActivated",Y.isEmailActivated),O.R7$(),O.FS9("vtsTitle",O.bMT(6,8,"sysconfig.sysEnv.sysAuthen.login")),O.R7$(2),O.Y8G("showUpdateLogin",Y.showUpdateLogin)("isEmailActivated",Y.isEmailActivated))},dependencies:[F.MD,e.h,e.D9,$.YN,y.Cn,y.F_,U.SE,U.WI,U.Wt,K.E,z.T],styles:[".reset-btn[_ngcontent-%COMP%]{border-radius:6px;border-color:#737373;color:#737373}.save-btn[_ngcontent-%COMP%]{border-radius:6px}.pdl-8[_ngcontent-%COMP%]{padding-left:8px}.title-expand-config[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:10px 10px 10px 12px;background-color:#efe7e7;font-weight:700} lib-sys-authentication .vts-form-item-label>label:has(span){display:flex;justify-content:space-between}.d-flex[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin:0}.gap-10[_ngcontent-%COMP%]{gap:10px}.gap-8[_ngcontent-%COMP%]{gap:8px}.gap-14[_ngcontent-%COMP%]{gap:14px}[_nghost-%COMP%] .vts-card-body{padding:0}[_nghost-%COMP%] .vts-tabs-nav{padding-left:12px}.footer-main[_ngcontent-%COMP%]{padding:12px 10px}.pl-16[_ngcontent-%COMP%]{padding-left:16px!important}.pl-12[_ngcontent-%COMP%]{padding-left:12px!important}.pl-10[_ngcontent-%COMP%]{padding-left:10px!important}.pl-5[_ngcontent-%COMP%]{padding-left:5px!important}.pr-16[_ngcontent-%COMP%]{padding-right:16px!important}.pr-12[_ngcontent-%COMP%]{padding-right:12px!important}.pr-10[_ngcontent-%COMP%]{padding-right:10px!important}.pr-5[_ngcontent-%COMP%]{padding-right:5px!important}.pd-0[_ngcontent-%COMP%]{padding:0!important}.mb-8[_ngcontent-%COMP%]{margin-bottom:8px!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.box-tabset[_ngcontent-%COMP%] vts-tabs-nav{margin-bottom:8px}.h-24[_ngcontent-%COMP%]{height:24px}.pt-8[_ngcontent-%COMP%]{padding-top:8px} vts-input-group span{color:#737373}"]})}}return n})()},23796:(mt,q,g)=>{g.d(q,{E:()=>ft});var F=g(98231),e=g(90695),$=g(51628),y=g(44025),U=g(70159),K=g(44752),z=g(15799),j=g(28113),O=g(86570),D=g(44267),n=g(65197),k=g(98259),V=g(15385),B=g(12119),Y=g(34226),tt=g(52702),b=g(15941),s=g(48377),r=g(56286),t=g(23135),W=g(62794),H=g(2765);const w=()=>({standalone:!0});function Q(p,T){if(1&p){const a=t.RV6();t.j41(0,"span",46),t.bIt("click",function(){t.eBV(a);const i=t.XpG(2);return t.Njj(i.clearValue("minLength"))}),t.k0s()}}function st(p,T){if(1&p&&t.DNE(0,Q,1,0,"span",45),2&p){const a=t.XpG();t.Y8G("ngIf",a.formGroup.value.minLength&&""!=a.formGroup.value.minLength)}}function J(p,T){if(1&p){const a=t.RV6();t.j41(0,"span",46),t.bIt("click",function(){t.eBV(a);const i=t.XpG(2);return t.Njj(i.clearValue("maxLength"))}),t.k0s()}}function ot(p,T){if(1&p&&t.DNE(0,J,1,0,"span",45),2&p){const a=t.XpG();t.Y8G("ngIf",a.formGroup.value.maxLength&&""!=a.formGroup.value.maxLength)}}function et(p,T){if(1&p&&(t.qex(0),t.j41(1,"label",47),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.bVm()),2&p){const a=t.XpG();t.R7$(),t.Y8G("ngModel",a.formGroup.get("methodSendPassUserManagement").value.includes("1"))("ngModelOptions",t.lJ4(5,w)),t.R7$(),t.SpI(" ",t.bMT(3,3,"sysconfig.sysEnv.sysAuthen.labels.sendEmail")," ")}}function it(p,T){1&p&&t.nrm(0,"i",48)}function nt(p,T){1&p&&t.nrm(0,"i",49)}function at(p,T){if(1&p){const a=t.RV6();t.j41(0,"span",46),t.bIt("click",function(){t.eBV(a);const i=t.XpG(3);return t.Njj(i.clearValue("expPassTime"))}),t.k0s()}}function I(p,T){if(1&p&&t.DNE(0,at,1,0,"span",45),2&p){const a=t.XpG(2);t.Y8G("ngIf",a.formGroup.value.expPassTime&&""!=a.formGroup.value.expPassTime)}}function Z(p,T){if(1&p){const a=t.RV6();t.j41(0,"span",46),t.bIt("click",function(){t.eBV(a);const i=t.XpG(3);return t.Njj(i.clearValue("timeRequireChange"))}),t.k0s()}}function P(p,T){if(1&p&&t.DNE(0,Z,1,0,"span",45),2&p){const a=t.XpG(2);t.Y8G("ngIf",a.formGroup.value.timeRequireChange&&""!=a.formGroup.value.timeRequireChange)}}function x(p,T){if(1&p){const a=t.RV6();t.j41(0,"span",46),t.bIt("click",function(){t.eBV(a);const i=t.XpG(3);return t.Njj(i.clearValue("fredSend"))}),t.k0s()}}function M(p,T){if(1&p&&t.DNE(0,x,1,0,"span",45),2&p){const a=t.XpG(2);t.Y8G("ngIf",a.formGroup.value.fredSend&&""!=a.formGroup.value.fredSend)}}function N(p,T){if(1&p&&(t.qex(0),t.j41(1,"label",59),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.bVm()),2&p){const a=t.XpG(2);t.R7$(),t.Y8G("ngModel",a.formGroup.get("sendVia").value.includes("1"))("ngModelOptions",t.lJ4(6,w))("vtsDisabled",!a.currentConfig.expPassStatus),t.R7$(),t.SpI(" ",t.bMT(3,4,"sysconfig.sysEnv.sysAuthen.labels.email")," ")}}function C(p,T){if(1&p){const a=t.RV6();t.qex(0),t.j41(1,"div",50)(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"vts-switch",51),t.mxI("ngModelChange",function(i){t.eBV(a);const m=t.XpG();return t.DH7(m.currentConfig.expPassStatus,i)||(m.currentConfig.expPassStatus=i),t.Njj(i)}),t.bIt("ngModelChange",function(i){t.eBV(a);const m=t.XpG();return t.Njj(m.toggleEnablePasswordExpiredConfig(i))}),t.k0s()(),t.j41(6,"vts-form-item",52)(7,"vts-form-label",14),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"vts-form-control")(11,"vts-input-group",15),t.nrm(12,"input",53),t.k0s(),t.DNE(13,I,1,1,"ng-template",null,2,t.C5r),t.nrm(15,"authentication-ui-control-messages",17),t.k0s()(),t.j41(16,"vts-form-item",52)(17,"vts-form-label",14),t.EFF(18),t.nI1(19,"translate"),t.k0s(),t.j41(20,"vts-form-control")(21,"vts-input-group",15),t.nrm(22,"input",54),t.k0s(),t.DNE(23,P,1,1,"ng-template",null,3,t.C5r),t.nrm(25,"authentication-ui-control-messages",17),t.k0s()(),t.j41(26,"vts-form-item",52)(27,"vts-form-label",14),t.EFF(28),t.nI1(29,"translate"),t.k0s(),t.j41(30,"vts-form-control")(31,"vts-input-group",15),t.nrm(32,"input",55),t.k0s(),t.DNE(33,M,1,1,"ng-template",null,4,t.C5r),t.nrm(35,"authentication-ui-control-messages",17),t.k0s()(),t.j41(36,"vts-form-item",52)(37,"vts-form-label",14),t.EFF(38),t.nI1(39,"translate"),t.k0s(),t.j41(40,"vts-form-control"),t.nrm(41,"vts-time-picker",56),t.nI1(42,"translate"),t.nrm(43,"authentication-ui-control-messages",17),t.k0s()(),t.j41(44,"vts-form-item",57)(45,"vts-form-label",14),t.EFF(46),t.nI1(47,"translate"),t.k0s(),t.j41(48,"span")(49,"vts-form-control")(50,"vts-checkbox-wrapper",31),t.bIt("vtsOnChange",function(i){t.eBV(a);const m=t.XpG();return t.Njj(m.onChangeMethodSendPasswordNotifyToUser(i))}),t.j41(51,"div",32),t.DNE(52,N,4,7,"ng-container",33),t.j41(53,"label",58),t.EFF(54),t.nI1(55,"translate"),t.k0s()()(),t.nrm(56,"authentication-ui-control-messages",17),t.k0s()()(),t.bVm()}if(2&p){const a=t.sdS(14),l=t.sdS(24),i=t.sdS(34),m=t.XpG();t.R7$(3),t.JRh(t.bMT(4,29,"sysconfig.sysEnv.sysAuthen.labels.passwordExpirationConfig.switcher")),t.R7$(2),t.R50("ngModel",m.currentConfig.expPassStatus),t.Y8G("ngModelOptions",t.lJ4(45,w)),t.R7$(3),t.JRh(t.bMT(9,31,"sysconfig.sysEnv.sysAuthen.labels.timePasswordExpired")),t.R7$(3),t.Y8G("vtsSize",m.fieldSize)("vtsSuffix",a),t.R7$(),t.Y8G("control",m.f.expPassTime),t.R7$(3),t.Y8G("control",m.f.expPassTime),t.R7$(3),t.JRh(t.bMT(19,33,"sysconfig.sysEnv.sysAuthen.labels.timeRequireChangePassword")),t.R7$(3),t.Y8G("vtsSize",m.fieldSize)("vtsSuffix",l),t.R7$(),t.Y8G("control",m.f.timeRequireChange),t.R7$(3),t.Y8G("control",m.f.timeRequireChange),t.R7$(3),t.JRh(t.bMT(29,35,"sysconfig.sysEnv.sysAuthen.labels.passwordExpirationConfig.remindChangePasswordFrequency")),t.R7$(3),t.Y8G("vtsSize",m.fieldSize)("vtsSuffix",i),t.R7$(),t.Y8G("control",m.f.fredSend),t.R7$(3),t.Y8G("control",m.f.fredSend),t.R7$(3),t.JRh(t.bMT(39,37,"sysconfig.sysEnv.sysAuthen.labels.passwordExpirationConfig.firstRemind")),t.R7$(3),t.Y8G("vtsSize","lg")("vtsNowText",t.bMT(42,39,"comm
1on.form.now")),t.R7$(2),t.Y8G("control",m.f.firstRemindTime),t.R7$(3),t.JRh(t.bMT(47,41,"sysconfig.sysEnv.sysAuthen.labels.methodPasswordNoti")),t.R7$(6),t.Y8G("ngIf",m.isEmailActivated),t.R7$(),t.Y8G("ngModel",m.formGroup.get("sendVia").value.includes("2"))("ngModelOptions",t.lJ4(46,w))("vtsDisabled",!m.currentConfig.expPassStatus),t.R7$(),t.SpI(" ",t.bMT(55,43,"sysconfig.sysEnv.sysAuthen.labels.sms")," "),t.R7$(2),t.Y8G("control",m.f.sendVia)}}function G(p,T){1&p&&t.nrm(0,"i",48)}function d(p,T){1&p&&t.nrm(0,"i",49)}function h(p,T){if(1&p){const a=t.RV6();t.j41(0,"span",46),t.bIt("click",function(){t.eBV(a);const i=t.XpG(3);return t.Njj(i.clearValue("lockWrongPassCount"))}),t.k0s()}}function v(p,T){if(1&p&&t.DNE(0,h,1,0,"span",45),2&p){const a=t.XpG(2);t.Y8G("ngIf",a.formGroup.value.lockWrongPassCount&&""!=a.formGroup.value.lockWrongPassCount)}}function f(p,T){if(1&p){const a=t.RV6();t.j41(0,"span",46),t.bIt("click",function(){t.eBV(a);const i=t.XpG(3);return t.Njj(i.clearValue("wrongPassTime"))}),t.k0s()}}function S(p,T){if(1&p&&t.DNE(0,f,1,0,"span",45),2&p){const a=t.XpG(2);t.Y8G("ngIf",a.formGroup.value.wrongPassTime&&""!=a.formGroup.value.wrongPassTime)}}function _(p,T){if(1&p){const a=t.RV6();t.j41(0,"span",46),t.bIt("click",function(){t.eBV(a);const i=t.XpG(3);return t.Njj(i.clearValue("timeLock"))}),t.k0s()}}function L(p,T){if(1&p&&t.DNE(0,_,1,0,"span",45),2&p){const a=t.XpG(2);t.Y8G("ngIf",a.formGroup.value.timeLock&&""!=a.formGroup.value.timeLock)}}function A(p,T){if(1&p&&t.nrm(0,"vts-option",74),2&p){const a=T.$implicit,l=t.XpG(2);t.Y8G("vtsValue",a.value)("vtsLabel","vi"==l.currentLanguage?a.labelVi:a.labelEn)}}function X(p,T){if(1&p&&(t.qex(0),t.j41(1,"label",59),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.bVm()),2&p){const a=t.XpG(2);t.R7$(),t.Y8G("ngModel",a.formGroup.get("sendViaWhenLocked").value.includes("1"))("ngModelOptions",t.lJ4(6,w))("vtsDisabled",!a.currentConfig.wrongPassStatus),t.R7$(),t.SpI(" ",t.bMT(3,4,"sysconfig.sysEnv.sysAuthen.labels.email")," ")}}function rt(p,T){if(1&p&&(t.qex(0),t.j41(1,"label",59),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.bVm()),2&p){const a=t.XpG(2);t.R7$(),t.Y8G("ngModel",a.formGroup.get("sendAdminVia").value.includes("1"))("ngModelOptions",t.lJ4(6,w))("vtsDisabled",!a.currentConfig.wrongPassStatus),t.R7$(),t.SpI(" ",t.bMT(3,4,"sysconfig.sysEnv.sysAuthen.labels.email")," ")}}function lt(p,T){if(1&p){const a=t.RV6();t.j41(0,"span",46),t.bIt("click",function(){t.eBV(a);const i=t.XpG(3);return t.Njj(i.clearValue("alertWrongPassCount"))}),t.k0s()}}function ct(p,T){if(1&p&&t.DNE(0,lt,1,0,"span",45),2&p){const a=t.XpG(2);t.Y8G("ngIf",a.formGroup.value.alertWrongPassCount&&""!=a.formGroup.value.alertWrongPassCount)}}function ut(p,T){if(1&p){const a=t.RV6();t.j41(0,"span",46),t.bIt("click",function(){t.eBV(a);const i=t.XpG(3);return t.Njj(i.clearValue("captchaWrongPassCount"))}),t.k0s()}}function gt(p,T){if(1&p&&t.DNE(0,ut,1,0,"span",45),2&p){const a=t.XpG(2);t.Y8G("ngIf",a.formGroup.value.captchaWrongPassCount&&""!=a.formGroup.value.captchaWrongPassCount)}}function pt(p,T){if(1&p){const a=t.RV6();t.j41(0,"div",60)(1,"div",61)(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"vts-switch",51),t.mxI("ngModelChange",function(i){t.eBV(a);const m=t.XpG();return t.DH7(m.currentConfig.wrongPassStatus,i)||(m.currentConfig.wrongPassStatus=i),t.Njj(i)}),t.bIt("ngModelChange",function(i){t.eBV(a);const m=t.XpG();return t.Njj(m.toggleEnableWrongPasswordConfig(i))}),t.k0s()(),t.j41(6,"vts-form-item",62)(7,"vts-form-label",14),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"vts-form-control")(11,"vts-input-group",15),t.nrm(12,"input",63),t.k0s(),t.DNE(13,v,1,1,"ng-template",null,5,t.C5r),t.nrm(15,"authentication-ui-control-messages",17),t.k0s()(),t.j41(16,"vts-form-item",62)(17,"vts-form-label",14),t.EFF(18),t.nI1(19,"translate"),t.k0s(),t.j41(20,"vts-form-control")(21,"vts-input-group",15),t.nrm(22,"input",64),t.k0s(),t.DNE(23,S,1,1,"ng-template",null,6,t.C5r),t.nrm(25,"authentication-ui-control-messages",17),t.k0s()(),t.j41(26,"vts-form-item",62)(27,"vts-form-label",14),t.EFF(28),t.nI1(29,"translate"),t.k0s(),t.j41(30,"vts-form-control")(31,"span",65)(32,"span",24)(33,"vts-input-group",15),t.nrm(34,"input",66),t.k0s(),t.DNE(35,L,1,1,"ng-template",null,7,t.C5r),t.nrm(37,"authentication-ui-control-messages",17),t.k0s(),t.j41(38,"span",24)(39,"vts-select",67),t.DNE(40,A,1,2,"vts-option",68),t.k0s()()()()(),t.j41(41,"vts-form-item",69)(42,"vts-form-label",22),t.EFF(43),t.nI1(44,"translate"),t.k0s(),t.j41(45,"span")(46,"vts-form-control")(47,"vts-checkbox-wrapper",31),t.bIt("vtsOnChange",function(i){t.eBV(a);const m=t.XpG();return t.Njj(m.onChangeMethodSendViaWhenLocked(i))}),t.j41(48,"div",32),t.DNE(49,X,4,7,"ng-container",33),t.j41(50,"label",58),t.EFF(51),t.nI1(52,"translate"),t.k0s()()(),t.nrm(53,"authentication-ui-control-messages",17),t.k0s()()(),t.j41(54,"vts-form-item",69)(55,"vts-form-label",22),t.EFF(56),t.nI1(57,"translate"),t.k0s(),t.j41(58,"span")(59,"vts-form-control")(60,"vts-checkbox-wrapper",31),t.bIt("vtsOnChange",function(i){t.eBV(a);const m=t.XpG();return t.Njj(m.onChangeMethodSendAdminVia(i))}),t.j41(61,"div",32),t.DNE(62,rt,4,7,"ng-container",33),t.j41(63,"label",58),t.EFF(64),t.nI1(65,"translate"),t.k0s()()(),t.nrm(66,"authentication-ui-control-messages",17),t.k0s()()(),t.j41(67,"vts-form-item",62)(68,"vts-form-label",22),t.EFF(69),t.nI1(70,"translate"),t.j41(71,"span",70)(72,"vts-switch",51),t.mxI("ngModelChange",function(i){t.eBV(a);const m=t.XpG();return t.DH7(m.currentConfig.sendAdminStatus,i)||(m.currentConfig.sendAdminStatus=i),t.Njj(i)}),t.bIt("ngModelChange",function(i){t.eBV(a);const m=t.XpG();return t.Njj(m.toggleEnableSendAdminConfig(i))}),t.k0s()()(),t.j41(73,"vts-form-control")(74,"vts-input-group",15),t.nrm(75,"input",71),t.k0s(),t.DNE(76,ct,1,1,"ng-template",null,8,t.C5r),t.nrm(78,"authentication-ui-control-messages",17),t.k0s()(),t.j41(79,"vts-form-item",69)(80,"vts-form-label",22)(81,"span"),t.EFF(82),t.nI1(83,"translate"),t.j41(84,"span",72),t.EFF(85,"*"),t.k0s()(),t.j41(86,"span",70)(87,"vts-switch",51),t.mxI("ngModelChange",function(i){t.eBV(a);const m=t.XpG();return t.DH7(m.currentConfig.captchaWrongPassStatus,i)||(m.currentConfig.captchaWrongPassStatus=i),t.Njj(i)}),t.bIt("ngModelChange",function(i){t.eBV(a);const m=t.XpG();return t.Njj(m.toggleEnableWrongCaptchaConfig(i))}),t.k0s()()(),t.j41(88,"vts-form-control")(89,"vts-input-group",15),t.nrm(90,"input",73),t.k0s(),t.DNE(91,gt,1,1,"ng-template",null,9,t.C5r),t.nrm(93,"authentication-ui-control-messages",17),t.k0s()()()}if(2&p){const a=t.sdS(14),l=t.sdS(24),i=t.sdS(36),m=t.sdS(77),c=t.sdS(92),u=t.XpG();t.R7$(3),t.JRh(t.bMT(4,51,"sysconfig.sysEnv.sysAuthen.labels.passwordWrongConfig.switcher")),t.R7$(2),t.R50("ngModel",u.currentConfig.wrongPassStatus),t.Y8G("ngModelOptions",t.lJ4(71,w)),t.R7$(3),t.JRh(t.bMT(9,53,"sysconfig.sysEnv.sysAuthen.labels.noAllowWrongPassword")),t.R7$(3),t.Y8G("vtsSize",u.fieldSize)("vtsSuffix",a),t.R7$(),t.Y8G("control",u.f.lockWrongPassCount),t.R7$(3),t.Y8G("control",u.f.lockWrongPassCount),t.R7$(3),t.JRh(t.bMT(19,55,"sysconfig.sysEnv.sysAuthen.labels.wrongPassTime")),t.R7$(3),t.Y8G("vtsSize",u.fieldSize)("vtsSuffix",l),t.R7$(),t.Y8G("control",u.f.wrongPassTime),t.R7$(3),t.Y8G("control",u.f.wrongPassTime),t.R7$(3),t.JRh(t.bMT(29,57,"sysconfig.sysEnv.sysAuthen.labels.timeLockAccountOverWrongPassword")),t.R7$(3),t.Y8G("vtsGutter",8),t.R7$(),t.Y8G("vtsSpan",19),t.R7$(),t.Y8G("vtsSize",u.fieldSize)("vtsSuffix",i),t.R7$(),t.Y8G("control",u.f.timeLock),t.R7$(3),t.Y8G("control",u.f.timeLock),t.R7$(),t.Y8G("vtsSpan",5),t.R7$(),t.Y8G("vtsAllowClear",!1),t.R7$(),t.Y8G("ngForOf",u.listTimeUnit),t.R7$(3),t.JRh(t.bMT(44,59,"sysconfig.sysEnv.sysAuthen.labels.passwordWrongConfig.methodSendNotiWhenLocked")),t.R7$(6),t.Y8G("ngIf",u.isEmailActivated),t.R7$(),t.Y8G("ngModel",u.formGroup.get("sendViaWhenLocked").value.includes("2"))("ngModelOptions",t.lJ4(72,w))("vtsDisabled",!u.currentConfig.wrongPassStatus),t.R7$(),t.SpI(" ",t.bMT(52,61,"sysconfig.sysEnv.sysAuthen.labels.sms")," "),t.R7$(2),t.Y8G("control",u.f.sendViaWhenLocked),t.R7$(3),t.JRh(t.bMT(57,63,"sysconfig.sysEnv.sysAuthen.labels.passwordWrongConfig.methodSendNotiToAdm
1in")),t.R7$(6),t.Y8G("ngIf",u.isEmailActivated),t.R7$(),t.Y8G("ngModel",u.formGroup.get("sendAdminVia").value.includes("2"))("ngModelOptions",t.lJ4(73,w))("vtsDisabled",!u.currentConfig.wrongPassStatus),t.R7$(),t.SpI(" ",t.bMT(65,65,"sysconfig.sysEnv.sysAuthen.labels.sms")," "),t.R7$(2),t.Y8G("control",u.f.sendAdminVia),t.R7$(3),t.SpI("",t.bMT(70,67,"sysconfig.sysEnv.sysAuthen.labels.noSendNotiToAdminWrongPassword")," "),t.R7$(3),t.R50("ngModel",u.currentConfig.sendAdminStatus),t.Y8G("ngModelOptions",t.lJ4(74,w)),t.R7$(2),t.Y8G("vtsSize",u.fieldSize)("vtsSuffix",m),t.R7$(),t.Y8G("control",u.f.alertWrongPassCount),t.R7$(3),t.Y8G("control",u.f.alertWrongPassCount),t.R7$(4),t.JRh(t.bMT(83,69,"sysconfig.sysEnv.sysAuthen.labels.noCaptchaWrongPassword")),t.R7$(5),t.R50("ngModel",u.currentConfig.captchaWrongPassStatus),t.Y8G("ngModelOptions",t.lJ4(75,w)),t.R7$(2),t.Y8G("vtsSize",u.fieldSize)("vtsSuffix",c),t.R7$(),t.Y8G("control",u.f.captchaWrongPassCount),t.R7$(3),t.Y8G("control",u.f.captchaWrongPassCount)}}function ht(p,T){if(1&p){const a=t.RV6();t.qex(0),t.j41(1,"button",75),t.bIt("click",function(){t.eBV(a);const i=t.XpG();return t.Njj(i.onSave())}),t.nrm(2,"i",76),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.bVm()}if(2&p){const a=t.XpG();t.R7$(),t.Y8G("disabled",!a.formGroup.valid||a.isSubmitting),t.R7$(2),t.SpI(" ",t.bMT(4,2,"sysconfig.sysEnv.sysAuthen.actions.save")," ")}}let ft=(()=>{class p{constructor(a,l,i,m,c,u){this._translate=a,this._utils=l,this._sysAuthenService=i,this._toastService=m,this.serviceSys=c,this._authShareService=u,this.loading=!1,this.fieldSize="md",this.listOfNotiMethods=[{value:"1",label:"Email"},{value:"2",label:"S\u1ed1 \u0111i\u1ec7n tho\u1ea1i"}],this.currentLanguage="vi",this.listTimeUnit=[{value:0,labelVi:"Gi\xe2y",labelEn:"Second(s)"},{value:1,labelVi:"Ph\xfat",labelEn:"Minute(s)"},{value:2,labelVi:"Gi\u1edd",labelEn:"Hour(s)"}],this.toggleExpandPasswordExpired=!0,this.toggleExpandWrongPassword=!0,this.DEFAULT_CONFIG={minLength:6,maxLength:30,expPassStatus:!1,expPassTime:365,timeRequireChange:10,sendVia:"1",fredSend:3,wrongPassStatus:!1,lockWrongPassCount:5,timeLock:8,timeLockUnit:2,captchaWrongPassStatus:!1,captchaWrongPassCount:3,alertWrongPassCount:6,wrongPassTime:10,upperLetter:!1,lowerLetter:!1,number:!1,symbol:!1,firstRemindTime:(new Date).setHours(8,0,0),sendViaWhenLocked:"1",sendAdminVia:"1",sendAdminStatus:!1,methodSendPassUserManagement:"1"},this.currentConfig=this.DEFAULT_CONFIG,this.formGroup=new e.gE({minLength:new e.MJ(6,[e.k0.required,this.checkMinLength(),e.k0.min(1)]),maxLength:new e.MJ(30,[e.k0.required,this.checkMaxLength(),e.k0.min(1)]),expPassTime:new e.MJ(365,[this.checkExpiredPasswordTime(),e.k0.min(1),e.k0.required]),timeRequireChange:new e.MJ(10,[e.k0.required,this.checkTimeRequireChangePassword(),this.checkTimeRequireChangeCombination(),this.checkTimeRequireChangeCombinationFredSend(),e.k0.min(1)]),sendVia:new e.hs([],[e.k0.required]),fredSend:new e.MJ(0,[e.k0.required,e.k0.min(1),this.checkFredSendCombination()]),lockWrongPassCount:new e.MJ(365,[e.k0.required,this.checkLockWrongPassCount(),this.checkTotalWrongPassSentNotiToAdmin(),e.k0.min(1)]),captchaWrongPassCount:new e.MJ(0,[e.k0.required,this.checkLockWrongPassCount(),e.k0.min(1)]),alertWrongPassCount:new e.MJ(0,[this.checkTotalWrongPassSentNotiToAdmin(),e.k0.min(1)]),timeLock:new e.MJ(0,[e.k0.required,e.k0.min(1)]),timeLockUnit:new e.MJ(0),wrongPassTime:new e.MJ(20,[e.k0.required,e.k0.min(1)]),atLeastOneLowerCase:new e.hs(!1),atLeastOneUpperCase:new e.hs(!1),atLeastOneNumber:new e.hs(!1),atLeastOneSpecialCharacter:new e.hs(!1),firstRemindTime:new e.MJ((new Date).setHours(8,0,0),[e.k0.required]),sendViaWhenLocked:new e.hs([]),sendAdminVia:new e.hs([]),methodSendPassUserManagement:new e.hs([],e.k0.required)}),this.showUpdatePass=!1,this.trim=this._utils.trimOnBlur,this.isEmailActivated=!1,this.currentLanguage=localStorage.getItem("lang")||"vi"}ngOnInit(){this.getCurrentConfig()}ngOnChanges(a){a.isEmailActivated&&!a.isEmailActivated.isFirstChange()&&this.handleEmailConfig()}toggleEnablePasswordExpiredConfig(a){!1===a?(this.formGroup.get("expPassTime").disable(),this.formGroup.get("timeRequireChange").disable(),this.formGroup.get("sendVia").disable(),this.formGroup.get("fredSend").disable(),this.formGroup.get("firstRemindTime").disable()):(this.formGroup.get("expPassTime").enable(),this.formGroup.get("timeRequireChange").enable(),this.formGroup.get("sendVia").enable(),this.formGroup.get("fredSend").enable(),this.formGroup.get("firstRemindTime").enable())}toggleEnableWrongPasswordConfig(a){!1===a?(this.formGroup.get("lockWrongPassCount").disable(),this.formGroup.get("wrongPassTime").disable(),this.formGroup.get("timeLock").disable(),this.formGroup.get("timeLockUnit").disable(),this.formGroup.get("alertWrongPassCount").clearValidators(),this.formGroup.get("captchaWrongPassCount").clearValidators()):(this.formGroup.get("lockWrongPassCount").enable(),this.formGroup.get("wrongPassTime").enable(),this.formGroup.get("timeLock").enable(),this.formGroup.get("timeLockUnit").enable(),this.formGroup.get("alertWrongPassCount").setValidators([this.checkTotalWrongPassSentNotiToAdm
1in(),e.k0.min(1)]),this.formGroup.get("captchaWrongPassCount").setValidators([e.k0.required,this.checkCaptchaWrongPassCount(),e.k0.min(1)])),this.formGroup.get("alertWrongPassCount").updateValueAndValidity(),this.formGroup.get("captchaWrongPassCount").updateValueAndValidity()}toggleEnableWrongCaptchaConfig(a){!1===a?(this.formGroup.get("captchaWrongPassCount").disable(),this.formGroup.get("lockWrongPassCount").clearValidators(),this.currentConfig.sendAdminStatus&&this.formGroup.get("lockWrongPassCount").setValidators([e.k0.required,this.checkTotalWrongPassSentNotiToAdmin(),e.k0.min(1)])):(this.formGroup.get("captchaWrongPassCount").enable(),this.formGroup.get("lockWrongPassCount").setValidators([e.k0.required,this.checkLockWrongPassCount(),this.checkTotalWrongPassSentNotiToAdmin(),e.k0.min(1)])),this.formGroup.get("lockWrongPassCount").updateValueAndValidity()}toggleEnableSendAdminConfig(a){!1===a?(this.formGroup.get("alertWrongPassCount").disable(),this.formGroup.get("lockWrongPassCount").clearValidators(),this.currentConfig.captchaWrongPassStatus&&this.formGroup.get("lockWrongPassCount").setValidators([e.k0.required,this.checkLockWrongPassCount(),e.k0.min(1)])):(this.formGroup.get("alertWrongPassCount").enable(),this.formGroup.get("lockWrongPassCount").setValidators([e.k0.required,this.checkLockWrongPassCount(),this.checkTotalWrongPassSentNotiToAdmin(),e.k0.min(1)])),this.formGroup.get("lockWrongPassCount").updateValueAndValidity()}setFormValues(){this.formGroup.get("minLength").setValue(this.currentConfig.minLength),this.formGroup.get("maxLength").setValue(this.currentConfig.maxLength),this.formGroup.get("fredSend").setValue(this.currentConfig.fredSend),this.formGroup.get("timeRequireChange").setValue(this.currentConfig.timeRequireChange),this.formGroup.get("expPassTime").setValue(this.currentConfig.expPassTime),this.formGroup.get("sendVia").setValue(this.currentConfig.sendVia&&""!=this.currentConfig.sendVia?this.currentConfig.sendVia.split(","):[]),this.formGroup.get("captchaWrongPassCount").setValue(this.currentConfig.captchaWrongPassCount),this.formGroup.get("lockWrongPassCount").setValue(this.currentConfig.lockWrongPassCount),this.formGroup.get("alertWrongPassCount").setValue(this.currentConfig.alertWrongPassCount),this.formGroup.get("timeLock").setValue(this.currentConfig.timeLock),this.formGroup.get("timeLockUnit").setValue(this.currentConfig.timeLockUnit),this.formGroup.get("wrongPassTime").setValue(this.currentConfig.wrongPassTime),this.formGroup.get("atLeastOneLowerCase").setValue(this.currentConfig.lowerLetter),this.formGroup.get("atLeastOneUpperCase").setValue(this.currentConfig.upperLetter),this.formGroup.get("atLeastOneNumber").setValue(this.currentConfig.number),this.formGroup.get("atLeastOneSpecialCharacter").setValue(this.currentConfig.symbol),this.formGroup.get("firstRemindTime").setValue(this.convertFormattedTimeToTime(this.currentConfig.firstRemindTime)),this.formGroup.get("sendViaWhenLocked").setValue(this.currentConfig.sendViaWhenLocked&&""!=this.currentConfig.sendViaWhenLocked?this.currentConfig.sendViaWhenLocked.split(","):[]),this.formGroup.get("sendAdminVia").setValue(this.currentConfig.sendAdminVia&&""!=this.currentConfig.sendAdminVia?this.currentConfig.sendAdminVia.split(","):[]),this.formGroup.get("methodSendPassUserManagement").setValue(this.currentConfig.methodSendPassUserManagement&&""!=this.currentConfig.methodSendPassUserManagement?this.currentConfig.methodSendPassUserManagement.split(","):[])}handleEmailConfig(){this.currentConfig.methodSendPassUserManagement&&""!=this.currentConfig.methodSendPassUserManagement&&(this.isEmailActivated||(this.currentConfig.methodSendPassUserManagement=this.currentConfig.methodSendPassUserManagement.replace("1",""))),this.formGroup.get("methodSendPassUserManagement").setValue(this.currentConfig.methodSendPassUserManagement&&""!=this.currentConfig.methodSendPassUserManagement?this.currentConfig.methodSendPassUserManagement.split(","):[])}get f(){return this.formGroup.controls}clearValue(a){this.formGroup.get(a)?.setValue(null),this.formGroup.get(a)?.markAsDirty(),this.formGroup.get(a)?.markAsTouched(),this.formGroup.get(a)?.updateValueAndValidity()}checkValidate(){return this._utils.checkValidate(this.formGroup,this.inputs)}getCurrentConfig(){this._sysAuthenService.getSysPasswordConfig().subscribe(a=>{let l=a.data;l&&l.length>
10&&(this.currentConfig=l[0],this.refreshCheckToggle(),this.setFormValues())})}onSave(){if(this.checkValidate()){let a={id:this.currentConfig.id,tenantId:this.currentConfig.tenantId,minLength:+this.formGroup.get("minLength").value,maxLength:+this.formGroup.get("maxLength").value,expPassStatus:!!this.currentConfig.expPassStatus,expPassTime:+this.formGroup.get("expPassTime").value,timeRequireChange:+this.formGroup.get("timeRequireChange").value,sendVia:Array.from(this.formGroup.get("sendVia").value).join(","),fredSend:+this.formGroup.get("fredSend").value,wrongPassStatus:!!this.currentConfig.wrongPassStatus,lockWrongPassCount:+this.formGroup.get("lockWrongPassCount").value,captchaWrongPassCount:+this.formGroup.get("captchaWrongPassCount").value,captchaWrongPassStatus:!!this.currentConfig.captchaWrongPassStatus,alertWrongPassCount:+this.formGroup.get("alertWrongPassCount").value,timeLock:+this.formGroup.get("timeLock").value,timeLockUnit:+this.formGroup.get("timeLockUnit").value,wrongPassTime:+this.formGroup.get("wrongPassTime").value,lowerLetter:this.formGroup.get("atLeastOneLowerCase").value,upperLetter:this.formGroup.get("atLeastOneUpperCase").value,number:this.formGroup.get("atLeastOneNumber").value,symbol:this.formGroup.get("atLeastOneSpecialCharacter").value,firstRemindTime:this.convertTime(this.formGroup.get("firstRemindTime").value),sendViaWhenLocked:Array.from(this.formGroup.get("sendViaWhenLocked").value).join(","),sendAdminVia:Array.from(this.formGroup.get("sendAdminVia").value).join(","),methodSendPassUserManagement:Array.from(this.formGroup.get("methodSendPassUserManagement").value).join(","),sendAdminStatus:!!this.currentConfig.sendAdminStatus};this._sysAuthenService.updateSysPasswordConfig(a).subscribe(l=>{l&&l.detail&&(this._toastService.success("",this._translate.instant("sysconfig.sysEnv.sysAuthen.message.updatedSysAuthen")),this.currentConfig=l.detail,this.setFormValues(),this._authShareService.sysAuthenPasswordSharer$.next(this.currentConfig))},l=>{})}}onResetToDefault(){this.currentConfig={id:this.currentConfig.id,tenantId:this.currentConfig.tenantId,...this.DEFAULT_CONFIG},this.refreshCheckToggle(),this.setFormValues(),this.onSave()}refreshCheckToggle(){this.toggleEnableWrongPasswordConfig(this.currentConfig.wrongPassStatus),this.toggleEnableWrongCaptchaConfig(this.currentConfig.captchaWrongPassStatus),this.toggleEnablePasswordExpiredConfig(this.currentConfig.expPassStatus),this.toggleEnableSendAdminConfig(this.currentConfig.sendAdminStatus)}checkMinLength(){return a=>{const l=a.parent;return l?+l.get("minLength")?.value>+l.get("maxLength")?.value?{invalidMinLength:!0}:(l.get("maxLength")?.setErrors(null),l.updateValueAndValidity(),null):null}}checkMaxLength(){return a=>{const l=a.parent;return l?+l.get("maxLength")?.value<=+l.get("minLength")?.value?{invalidMaxLength:!0}:(l.get("minLength")?.setErrors(null),l.updateValueAndValidity(),null):null}}checkExpiredPasswordTime(){return a=>{const l=a.parent;return l&&+l.get("expPassTime")?.value<+l.get("timeRequireChange")?.value?{invalidExpPassTime:!0}:null}}checkTimeRequireChangePassword(){return a=>{const l=a.parent;return l&&+l.get("timeRequireChange")?.value<=+l.get("fredSend")?.value?{invalidTimeRequireChangePassword:!0}:null}}checkTimeRequireChangeCombination(){return a=>{const l=a.parent;return l?+l.get("timeRequireChange")?.value>+l.get("expPassTime")?.value?{invalidTimeRequireChangeCombine:!0}:(l.get("expPassTime")?.setErrors(null),l.updateValueAndValidity(),null):null}}checkTimeRequireChangeCombinationFredSend(){return a=>{const l=a.parent;return l?+l.get("timeRequireChange")?.value<=+l.get("fredSend")?.value?{invalidTimeRequireChangeCombineFredSend:!0}:(l.get("fredSend")?.setErrors(null),l.updateValueAndValidity(),null):null}}checkFredSendCombination(){return a=>{const l=a.parent;return l?+l.get("fredSend")?.value>=+l.get("timeRequireChange")?.value?{invalidFredSendCombine:!0}:(l.get("timeRequireChange")?.setErrors(null),l.updateValueAndValidity(),null):null}}checkLockWrongPassCount(){return a=>{const l=a.parent;
1return l?+l.get("lockWrongPassCount")?.value<=+l.get("captchaWrongPassCount")?.value?{invalidLockWrongPassCount:!0}:(l.get("captchaWrongPassCount")?.setErrors(null),l.updateValueAndValidity(),null):null}}checkCaptchaWrongPassCount(){return a=>{const l=a.parent;return l?+l.get("lockWrongPassCount")?.value<=+l.get("captchaWrongPassCount")?.value?{invalidCaptchaWrongPassCount:!0}:(l.get("lockWrongPassCount")?.setErrors(null),l.updateValueAndValidity(),null):null}}checkTotalWrongPassSentNotiToAdmin(){return a=>{const l=a.parent;return l?+l.get("alertWrongPassCount")?.value<=+l.get("lockWrongPassCount")?.value?{invalidAlertWrongPassCount:!0}:(l.get("lockWrongPassCount")?.setErrors(null),l.updateValueAndValidity(),null):null}}convertTime(a){if(!a)return"8:0:0";let l=r(a).format("HH:mm:ss").split(":");return l=l.map(i=>parseInt(i).toString()),l.join(":")}convertFormattedTimeToTime(a){(!a||!a.toString().includes(":"))&&(a="08:00:00");let l=a.split(":");return(new Date).setHours(parseInt(l[0]),parseInt(l[1]),parseInt(l[2]))}onChangeMethodSendPasswordNotifyToUser(a){this.formGroup.get("sendVia").setValue(a)}onChangeMethodSendViaWhenLocked(a){this.formGroup.get("sendViaWhenLocked").setValue(a)}onChangeMethodSendAdminVia(a){this.formGroup.get("sendAdminVia").setValue(a)}onChangeMethodsPasswordProvide(a){this.formGroup.get("methodSendPassUserManagement").setValue(a)}static{this.\u0275fac=function(l){return new(l||p)(t.rXU($.c$),t.rXU(V.$Db),t.rXU(V.NIB),t.rXU(W.Mo),t.rXU(V.yhK),t.rXU(V.uRZ))}}static{this.\u0275cmp=t.VBU({type:p,selectors:[["lib-sys-password"]],viewQuery:function(l,i){if(1&l&&t.GBs(D.fZ,5),2&l){let m;t.mGM(m=t.lsd())&&(i.inputs=m)}},inputs:{showUpdatePass:"showUpdatePass",isEmailActivated:"isEmailActivated"},features:[t.OA$],decls:87,vars:64,consts:[["clearableMinLength",""],["clearableMaxLength",""],["clearableTimePasswordExpired",""],["timeRequireChangePasswordRef",""],["fredSendPasswordRef",""],["clearableNoAllowWrongPassword",""],["clearableWrongPassTime",""],["clearabletimeAllowWrongPassword",""],["clearableNoSendNotiToAdminWrongPassword",""],["clearablenoAllowWrongPassword",""],["vts-form","","vtsLayout","vertical",3,"formGroup"],["vts-row",""],["vts-col","",1,"pl-12","pr-10","form-item-gap",3,"vtsSpan"],[1,"pd-0","mb-8"],["vtsRequired","",1,"label-form-page"],[1,"input-box",3,"vtsSize","vtsSuffix"],["vts-input","","type","text","numbersOnly","","formControlName","minLength","maxlength","10",3,"control"],[3,"control"],["vts-col","",1,"pr-12","pl-10","form-item-gap",3,"vtsSpan"],["vts-input","","type","text","numbersOnly","","formControlName","maxLength","maxlength","10",3,"control"],["vts-col","",1,"pr-10","pl-12","form-item-gap",3,"vtsSpan"],[1,"pd-0","mb-0"],[1,"label-form-page"],[2,"margin-top","-6px"],["vts-col","",3,"vtsSpan"],[1,"pd-0","h-24"],["formControlName","atLeastOneLowerCase","vts-checkbox",""],["formControlName","atLeastOneUpperCase","vts-checkbox",""],["formControlName","atLeastOneNumber","vts-checkbox",""],["formControlName","atLeastOneSpecialCharacter","vts-checkbox",""],["vts-col","",1,"pr-10","pl-12","pt-8",3,"vtsSpan"],[1,"mg-b-12",3,"vtsOnChange"],[1,"d-flex","column","gap-8"],[4,"ngIf"],["vts-checkbox","","vtsValue","2",3,"ngModel","ngModelOptions"],["vts-col","",1,"pr-10",3,"vtsSpan"],[1,"title-expand-config","mb-8",3,"click"],["vts-icon","","vtsType","ArrowDownOutline:vts",4,"ngIf"],["vts-icon","","vtsType","ArrowUpOutline:vts",4,"ngIf"],[1,"title-expand-config","pl-10",2,"padding-right","28px",3,"click"],["class","pl-10",4,"ngIf"],[1,"footer-main","pr-12"],["vtsJustify","end","vtsDirection","horizontal","vts-row","","vtsSpan","24",1,"footer-btns"],["vtsSize","sm","vts-button","","type","button",1,"reset-btn",3,"click"],["vts-icon","","vtsType","SettingsBackupRestoreOutline:vts",2,"padding-top","2px"],["vts-icon","","vtsTheme","fill","class","vts-input-clear-icon","vtsType","ClearDoutone:vts",3,"click",4,"ngIf"],["vts-icon","","vtsTheme","fill","vtsType","ClearDoutone:vts",1,"vts-input-clear-icon",3,"click"],["vts-checkbox","","vtsValue","1",3,"ngModel","ngModelOptions"],["vts-icon","","vtsType","ArrowDownOutline:vts"],["vts-icon","","vtsType","ArrowUpOutline:vts"],[1,"switch-cfg","pl-12"],[3,"ngModelChange","ngModel","ngModelOptions"],[1,"pl-12","form-item-gap"],["vts-input","","type","text","numbersOnly","","formControlName","expPassTime","maxlength","10",3,"control"],["vts-input","","type","text","numbersOnly","","formControlName","timeRequireChange","maxlength","10",3,"control"],["vts-input","","type","text","numbersOnly","","formControlName","fredSend","maxlength","10",3,"control"],["vtsPlaceHolder","hh:mm:ss","name","firstRemindTime","formControlName","firstRemindTime",3,"vtsSize","vtsNowText"],[1,"pl-12","mb-0"],["vts-checkbox","","vtsValue","2",3,"ngModel","ngModelOptions","vtsDisabled"],["vts-checkbox","","vtsValue","1",3,"ngModel","ngModelOptions","vtsDisabled"],[1,"pl-10"],[1,"switch-cfg","pr-12"],[1,"pr-12","form-item-gap"],["vts-input","","type","text","numbersOnly","","formControlName","lockWrongPassCount","maxlength","10",3,"control"],["vts-input","","type","text","numbersOnly","","formControlName","wrongPassTime","maxlength","10",3,"control"],["vts-row","",3,"vtsGutter"],["vts-input","","type","text","numbersOnly","","formControlName","timeLock","maxlength","10",3,"control"],["formControlName","timeLockUnit","vtsShowSearch","",3,"vtsAllowClear"],[3,"vtsValue","vtsLabel",4,"ngFor","ngForOf"],[1,"pr-12","mb-0"],[1,"pdl-8"],["vts-input","","type","text","numbersOnly","","formControlName","alertWrongPassCount","maxlength","10",3,"control"],[2,"color","red"],["vts-input","","type","text","numbersOnly","","formControlName","captchaWrongPassCount","maxlength","10",3,"control"],[3,"vtsValue","vtsLabel"],["vtsType","primary","vtsSize","sm","vts-button","","type","button",1,"save-btn",3,"click","disabled"],["vts-icon","","vtsType","SaveOutline:vts"]],template:function(l,i){if(1&l){const m=t.RV6();t.j41(0,"form",10)(1,"div",11)(2,"div",12)(3,"vts-form-item",13)(4,"vts-form-label",14),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"vts-form-control")(8,"vts-input-group",15),t.nrm(9,"input",16),t.k0s(),t.DNE(10,st,1,1,"ng-template",null,0,t.C5r),t.nrm(12,"authentication-ui-control-messages",17),t.k0s()()(),t.j41(13,"div",18)(14,"vts-form-item",13)(15,"vts-form-label",14),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"vts-form-control")(19,"vts-input-group",15),t.nrm(20,"input",19),t.k0s(),t.DNE(21,ot,1,1,"ng-template",null,1,t.C5r),t.nrm(23,"authentication-ui-control-messages",17),t.k0s()()(),t.j41(24,"div",20)(25,"vts-form-item",21)(26,"vts-form-label",22),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.j41(29,"span",23)(30,"div",11)(31,"div",24)(32,"vts-form-control",25)(33,"vts-checkbox-wrapper")(34,"label",26),t.EFF(35),t.nI1(36,"translate"),t.k0s()()(),t.j41(37,"vts-form-control",25)(38,"vts-checkbox-wrapper")(39,"label",27),t.EFF(40),t.nI1(41,"translate"),t.k0s()()(),t.j41(42,"vts-form-control",25)(43,"vts-checkbox-wrapper")(44,"label",28),t.EFF(45),t.nI1(46,"translate"),t.k0s()()(),t.j41(47,"vts-form-control",25)(48,"vts-checkbox-wrapper")(49,"label",29),t.EFF(50),t.nI1(51,"translate"),t.k0s()()()()()()()(),t.j41(52,"div",30)(53,"vts-form-item",21)(54,"vts-form-label",14),t.EFF(55),t.nI1(56,"translate"),t.k0s(),t.j41(57,"span")(58,"vts-form-control")(59,"vts-checkbox-wrapper",31),t.bIt("vtsOnChange",function(u){return t.eBV(m),t.Njj(i.onChangeMethodsPasswordProvide(u))}),t.j41(60,"div",32),t.DNE(61,et,4,6,"ng-container",33),t.j41(62,"label",34),t.EFF(63),t.nI1(64,"translate"),t.k0s()()(),t.nrm(65,"authentication-ui-control-messages",17),t.k0s()()()(),t.j41(66,"div",35)(67,"span",36),t.bIt("click",function(){return t.eBV(m),t.Njj(i.toggleExpandPasswordExpired=!i.toggleExpandPasswordExpired)}),t.EFF(68),t.nI1(69,"translate"),t.DNE(70,it,1,0,"i",37)(71,nt,1,0,"i",38),t.k0s(),t.DNE(72,C,57,47,"ng-container",33),t.k0s(),t.j41(73,"div",24)(74,"span",39),t.bIt("click",function(){return t.eBV(m),t.Njj(i.toggleExpandWrongPassword=!i.toggleExpandWrongPassword)}),t.EFF(75),t.nI1(76,"translate"),t.DNE(77,G,1,0,"i",37)(78,d,1,0,"i",38),t.k0s(),t.DNE(79,pt,94,76,"div",40),t.k0s()(),t.j41(80,"div",41)(81,"div",42)(82,"button",43),t.bIt("click",function(){return t.eBV(m),t.Njj(i.onResetToDefault())}),t.nrm(83,"i",44),t.EFF(84),t.nI1(85,"translate"),t.k0s(),t.DNE(86,ht,5,4,"ng-container",33),t.k0s()()()}if(2&l){const m=t.sdS(11),c=t.sdS(22);t.Y8G("formGroup",i.formGroup),t.R7$(2),t.Y8G("vtsSpan",12),t.R7$(3),t.JRh(t.bMT(6,39,"sysconfig.sysEnv.sysAuthen.labels.minLength")),t.R7$(3),t.Y8G("vtsSize",i.fieldSize)("vtsSuffix",m),t.R7$(),t.Y8G("control",i.f.minLength),t.R7$(3),t.Y8G("control",i.f.minLength),t.R7$(),t.Y8G("vtsSpan",12),t.R7$(3),t.JRh(t.bMT(17,41,"sysconfig.sysEnv.sysAuthen.labels.maxLength")),t.R7$(3),t.Y8G("vtsSize",i.fieldSize)("vtsSuffix",c),t.R7$(),t.Y8G("control",i.f.maxLength),t.R7$(3),t.Y8G("control",i.f.maxLength),t.R7$(),t.Y8G("vtsSpan",24),t.R7$(3),t.JRh(t.bMT(28,43,"sysconfig.sysEnv.sysAuthen.labels.passwordComps")),t.R7$(4),t.Y8G("vtsSpan",12),t.R7$(4),t.SpI(" ",t.bMT(36,45,"sysconfig.sysEnv.sysAuthen.labels.atLeastOneLowerCase")," "),t.R7$(5),t.SpI(" ",t.bMT(41,47,"sysconfig.sysEnv.sysAuthen.labels.atLeastOneUpperCase")," "),t.R7$(5),t.SpI(" ",t.bMT(46,49,"sysconfig.sysEnv.sysAuthen.labels.atLeastOneNumber")," "),t.R7$(5),t.SpI(" ",t.bMT(51,51,"sysconfig.sysEnv.sysAuthen.labels.atLeastOneSpecialCharacter")," "),t.R7$(2),t.Y8G("vtsSpan",24),t.R7$(3),t.JRh(t.bMT(56,53,"sysconfig.sysEnv.sysAuthen.labels.passwordSupplyMethods")),t.R7$(6),t.Y8G("ngIf",i.isEmailActivated),t.R7$(),t.Y8G("ngModel",i.formGroup.get("methodSendPassUserManagement").value.includes("2"))("ngModelOptions",t.lJ4(63,w)),t.R7$(),t.SpI(" ",t.bMT(64,55,"sysconfig.sysEnv.sysAuthen.labels.sendSms")," "),t.R7$(2),t.Y8G("control",i.f.methodSendPassUserManagement),t.R7$(),t.Y8G("vtsSpan",12),t.R7$(2),t.SpI(" ",t.bMT(69,57,"sysconfig.sysEnv.sysAuthen.labels.passwordExpirationConfig.title")," "),t.R7$(2),t.Y8G("ngIf",i.toggleExpandPasswordExpired),t.R7$(),t.Y8G("ngIf",!i.toggleExpandPasswordExpired),t.R7$(),t.Y8G("ngIf",i.toggleExpandPasswordExpired),t.R7$(),t.Y8G("vtsSpan",12),t.R7$(2),t.SpI(" ",t.bMT(76,59,"sysconfig.sysEnv.sysAuthen.labels.passwordWrongConfig.title")," "),t.R7$(2),t.Y8G("ngIf",i.toggleExpandWrongPassword),t.R7$(),t.Y8G("ngIf",!i.toggleExpandWrongPassword),t.R7$(),t.Y8G("ngIf",i.toggleExpandWrongPassword),t.R7$(5),t.SpI(" ",t.bMT(85,61,"sysconfig.sysEnv.sysAuthen.actions.reset")," "),t.R7$(2),t.Y8G("ngIf",i.showUpdatePass)}},dependencies:[F.MD,F.Sq,F.bT,O.dA,O.qb,$.h,$.D9,e.YN,e.qT,e.me,e.BC,e.cb,e.tU,e.vS,U.Cn,z.SX,j.tH,j.BE,z.dF,z.Qp,z.rA,z.Yc,K.L,D.iO,D.fZ,D.eH,D.Ms,e.X1,e.j4,e.JD,j.mi,n.mn,y.G,y.R$,H.T,k.fX,B.v,Y.VW,Y.Ex,Y.x$,tt.u,tt.n,b.u,b.mw,b.B1,s.tb,s.eB],styles:[".reset-btn[_ngcontent-%COMP%]{border-radius:6px;border-color:#737373;color:#737373}.save-btn[_ngcontent-%COMP%]{border-radius:6px}.pdl-8[_ngcontent-%COMP%]{padding-left:8px}.title-expand-config[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:10px 10px 10px 12px;background-color:#efe7e7;font-weight:700} lib-sys-authentication .vts-form-item-label>label:has(span){display:flex;justify-content:space-between}.d-flex[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin:0}.gap-10[_ngcontent-%COMP%]{gap:10px}.gap-8[_ngcontent-%COMP%]{gap:8px}.gap-14[_ngcontent-%COMP%]{gap:14px}[_nghost-%COMP%] .vts-card-body{padding:0}[_nghost-%COMP%] .vts-tabs-nav{padding-left:12px}.footer-main[_ngcontent-%COMP%]{padding:12px 10px}.pl-16[_ngcontent-%COMP%]{padding-left:16px!important}.pl-12[_ngcontent-%COMP%]{padding-left:12px!important}.pl-10[_ngcontent-%COMP%]{padding-left:10px!important}.pl-5[_ngcontent-%COMP%]{padding-left:5px!important}.pr-16[_ngcontent-%COMP%]{padding-right:16px!important}.pr-12[_ngcontent-%COMP%]{padding-right:12px!important}.pr-10[_ngcontent-%COMP%]{padding-right:10px!important}.pr-5[_ngcontent-%COMP%]{padding-right:5px!important}.pd-0[_ngcontent-%COMP%]{padding:0!important}.mb-8[_ngcontent-%COMP%]{margin-bottom:8px!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.box-tabset[_ngcontent-%COMP%] vts-tabs-nav{margin-bottom:8px}.h-24[_ngcontent-%COMP%]{height:24px}.pt-8[_ngcontent-%COMP%]{padding-top:8px} vts-input-group span{color:#737373}[_nghost-%COMP%] vts-select-search.vts-select-selection-search{width:unset}.switch-cfg[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin:12px 0}vts-time-picker[_ngcontent-%COMP%]{border:1px solid #8F9294;border-radius:6px;height:37px}.mb-4[_ngcontent-%COMP%]{margin-bottom:4px!important}.footer-btns[_ngcontent-%COMP%]{gap:8px}"]})}}return p})()},95603:(mt,q,g)=>{g.d(q,{h:()=>at});var F=g(98231),e=g(86570),$=g(51628),y=g(90695),U=g(15799),K=g(44752),z=g(70159),j=g(44267),O=g(28113),D=g(15385),n=g(65197),k=g(44025),V=g(98259),B=g(2
11026),Y=g(8179),tt=g(15941),b=g(52702),s=g(62252),r=g(23135),o=g(62794),t=g(2765);const W=()=>({standalone:!0});function H(I,Z){if(1&I){const P=r.RV6();r.j41(0,"span",26),r.bIt("click",function(){r.eBV(P);const M=r.XpG(2);return r.Njj(M.clearValue("smtpUserName"))}),r.k0s()}}function w(I,Z){if(1&I&&r.DNE(0,H,1,0,"span",25),2&I){const P=r.XpG();r.Y8G("ngIf",P.formGroup.value.smtpUserName&&""!=P.formGroup.value.smtpUserName)}}function Q(I,Z){if(1&I){const P=r.RV6();r.j41(0,"span",27),r.bIt("click",function(){r.eBV(P);const M=r.XpG();return r.Njj(M.hidePassword=!M.hidePassword)}),r.k0s()}if(2&I){const P=r.XpG();r.Y8G("vtsType",P.hidePassword?"Eye:vts":"EyeOff:vts")}}function st(I,Z){if(1&I){const P=r.RV6();r.j41(0,"span",26),r.bIt("click",function(){r.eBV(P);const M=r.XpG(2);return r.Njj(M.clearValue("smtpServer"))}),r.k0s()}}function J(I,Z){if(1&I&&r.DNE(0,st,1,0,"span",25),2&I){const P=r.XpG();r.Y8G("ngIf",P.formGroup.value.smtpServer&&""!=P.formGroup.value.smtpServer)}}function ot(I,Z){if(1&I){const P=r.RV6();r.j41(0,"span",26),r.bIt("click",function(){r.eBV(P);const M=r.XpG(2);return r.Njj(M.clearValue("smtpPort"))}),r.k0s()}}function et(I,Z){if(1&I&&r.DNE(0,ot,1,0,"span",25),2&I){const P=r.XpG();r.Y8G("ngIf",P.formGroup.value.smtpPort&&""!=P.formGroup.value.smtpPort)}}function it(I,Z){if(1&I){const P=r.RV6();r.j41(0,"button",28),r.bIt("click",function(){r.eBV(P);const M=r.XpG();return r.Njj(M.resetToDefault())}),r.nrm(1,"i",29),r.EFF(2),r.nI1(3,"translate"),r.k0s()}2&I&&(r.R7$(2),r.JRh(r.bMT(3,1,"sysconfig.sysEnv.sysAuthen.actions.reset")))}function nt(I,Z){if(1&I){const P=r.RV6();r.j41(0,"button",30),r.bIt("click",function(){r.eBV(P);const M=r.XpG();return r.Njj(M.onSave("update"))}),r.nrm(1,"i",31),r.EFF(2),r.nI1(3,"translate"),r.k0s()}if(2&I){const P=r.XpG();r.BMQ("disabled",P.isSubmitting?"":null),r.R7$(2),r.JRh(r.bMT(3,2,"common.action.save"))}}let at=(()=>{class I{constructor(P,x,M,N,C){this._translate=P,this._utils=x,this.serviceSys=M,this.serviceDialog=N,this.toastService=C,this.fieldSize="md",this.loading=!1,this.inputValue="",this.sysEmailConfig=new D.Ydk,this.defaultValue={smtpUserName:"[email protected]",smtpServer:"10.60.158.136",smtpPassword:"Hanoi@123",smtpPort:"465"},this.formGroup=new y.gE({smtpUserName:new y.MJ("",[y.k0.required,y.k0.maxLength(100)]),smtpPassword:new y.MJ("",[y.k0.required,y.k0.maxLength(100)]),smtpServer:new y.MJ("",[y.k0.required,y.k0.maxLength(255)]),smtpPort:new y.MJ("",[y.k0.required,y.k0.maxLength(10)])}),this.hidePassword=!0,this.isActive=!0,this.isSubmitting=!1,this.pristineConfig={},this.trim=this._utils.trimOnBlur,this.destroy$=new s.B,this.currentLanguage="vi",this.listTimeUnit=[{value:0,labelVi:"Gi\xe2y",labelEn:"Second(s)"},{value:1,labelVi:"Ph\xfat",labelEn:"Minute(s)"},{value:2,labelVi:"Gi\u1edd",labelEn:"Hour(s)"}],this.currentLanguage=localStorage.getItem("lang")||"vi"}get f(){return this.formGroup.controls}clearValue(P){this.formGroup.get(P)?.setValue(null),this.formGroup.get(P)?.markAsDirty(),this.formGroup.get(P)?.markAsTouched(),this.formGroup.get(P)?.updateValueAndValidity(),"username"===P&&this.formGroup.get("mailfrom")?.setValue(null)}ngOnInit(){this.getConfigEmail()}ngAfterViewInit(){setTimeout(()=>{this._utils.focusFirstField(this.formGroup,this.inputs)},500)}getConfigEmail(){this.serviceSys.getEmailConfig(0,5).subscribe(P=>{this.formGroup.patchValue(P.body.data[0]);let x=P.body.data[0];this.sysEmailConfig={active:this.isActive,id:this.idEmailConfig,smtpPassword:x.smtpPassword,smtpPort:x.smtpPort,smtpServer:x.smtpServer,smtpUserName:x.smtpUserName,tenantId:x.tenantId},this.pristineConfig={active:this.isActive,smtpPassword:x.smtpPassword||"",smtpPort:x.smtpPort||"",smtpServer:x.smtpServer||"",smtpUserName:x.smtpUserName||""},P.body.data[0].smtpPassword||(this.formGroup.get("smtpPassword").clearValidators(),this.formGroup.get("smtpPassword").updateValueAndValidity()),this.isActive=P.body.data[0].active,this.refreshCheckToggle(),this.idEmailConfig=P.body.data[0].id})}checkValidate(){return this.formGroup.get("smtpPassword").value||this.formGroup.get("smtpPassword").setValue(""),this._utils.checkValidate(this.formGroup,this.inputs)}onSave(P){(this.checkValidate()||"reset"===P)&&(this.isSubmitting=!0,this.serviceDialog.confirmMessage("sysconfig.sysEnv.action."+P+"ConfigEmail",void 0,void 0,{},"common.confirm-info.sys-email.reset",{text:"common.action.save",icon:"SaveOutline:vts"}).afterClose.subscribe(M=>{M==D.h87.RESULT_CLOSE_DIALOG.CONFIRM&&("reset"===P&&(this.formGroup.patchValue(this.defaultValue),this.isActive=!0,this.toggleActiveEmail(!0)),this.sysEmailConfig.active=this.isActive,this.sysEmailConfig.id=this.idEmailConfig,this.sysEmailConfig.smtpPassword=this.formGroup.value.smtpPassword,this.sysEmailConfig.smtpUserName=this.formGroup.value.smtpUserName,this.sysEmailConfig.smtpServer=this.formGroup.value.smtpServer,this.sysEmailConfig.smtpPort=this.formGroup.value.smtpPort,this.serviceSys.updatEmailConfig(this.sysEmailConfig).subscribe(N=>{this.toastService.success("",this._translate.instant("sysconfig.syslogin.message.updateSucess")),this.getConfigEmail(),this.isSubmitting=!1},N=>{this.isSubmitting=!1,this.toastService.error("",this._translate.instant("sysconfig.syslogin.message.updateError"))}))}))}resetToDefault(){this.onSave("reset")}onInputChange(P){this.formGroup.get("mailfrom")?.setValue(P.target.value)}toggleActiveEmail(P){!1===P?this.formGroup.disable():this.formGroup.enable()}onClickLabelSwitch(){this.isActive=!this.isActive,this.toggleActiveEmail(this.isActive)}
1refreshCheckToggle(){this.toggleActiveEmail(this.isActive)}changePassword(P){this.formGroup.get("smtpPassword").setValidators([y.k0.required,y.k0.maxLength(255)])}checkFormChanges(){const P=this.getFormVal();let x=!1,M=Object.keys(P);const N=["smtpPassword"];for(let C=0;C<M.length;C++)if(!N.includes(M[C])&&D.QX3.isOneOrBothNotEmpty(this.pristineConfig[M[C]],P[M[C]])&&this.pristineConfig[M[C]]!=P[M[C]]){x=!0;break}return x}getFormVal(){return{id:this.idEmailConfig,tenantId:this.sysEmailConfig.tenantId,smtpServer:this.formGroup.value.smtpServer,smtpPort:this.formGroup.value.smtpPort,smtpUserName:this.formGroup.value.smtpUserName,smtpPassword:this.formGroup.value.smtpPassword,active:this.isActive}}static{this.\u0275fac=function(x){return new(x||I)(r.rXU($.c$),r.rXU(D.$Db),r.rXU(D.yhK),r.rXU(Y.o3),r.rXU(o.Mo))}}static{this.\u0275cmp=r.VBU({type:I,selectors:[["sys-env-feature-sys-email"]],viewQuery:function(x,M){if(1&x&&r.GBs(j.fZ,5),2&x){let N;r.mGM(N=r.lsd())&&(M.inputs=N)}},decls:56,vars:38,consts:[["clearableSmtpTpl",""],["clearablePwdTpl",""],["clearableServerTpl",""],["clearablePortTpl",""],["vts-form","","vtsLayout","vertical",3,"formGroup"],["vts-row","",1,"switch-cfg"],["vts-col","",1,"switch-cfg-box",3,"vtsSpan"],[3,"click"],[3,"ngModelChange","ngModel","ngModelOptions"],["vts-row","",3,"vtsGutter"],["vts-col","",3,"vtsSpan"],[1,"mg-b-12"],["vtsRequired","",1,"label-form-page"],[1,"drawer-format","label-edit"],[1,"input-box",3,"vtsSize","vtsSuffix"],["vts-input","","placeholder","","formControlName","smtpUserName","maxlength","100",3,"ngModelChange","blur","input","ngModel"],[3,"control"],["vts-input","","placeholder","","formControlName","smtpPassword","maxlength","100",3,"ngModelChange","blur","type"],["vts-input","","placeholder","","formControlName","smtpServer","maxlength","255",3,"blur"],["vts-input","","placeholder","","formControlName","smtpPort","maxlength","10",3,"blur"],["vts-row","",1,"footer-main"],["vts-space","","vtsJustify","end","vtsDirection","horizontal","vts-col","","vtsSpan","24"],["vtsWrap","",3,"vtsPreset"],["class","reset-btn","vtsSize","sm","vts-button","",3,"click",4,"vtsSpaceItem"],["vtsType","primary","vtsSize","sm","vts-button","",3,"click",4,"vtsSpaceItem"],["vts-icon","","vtsTheme","fill","class","vts-input-clear-icon","vtsType","ClearDoutone:vts",3,"click",4,"ngIf"],["vts-icon","","vtsTheme","fill","vtsType","ClearDoutone:vts",1,"vts-input-clear-icon",3,"click"],["vts-icon","",1,"hidden-btn",3,"click","vtsType"],["vtsSize","sm","vts-button","",1,"reset-btn",3,"click"],["vts-icon","","vtsType","SettingsBackupRestoreOutline:vts",2,"padding-top","2px"],["vtsType","primary","vtsSize","sm","vts-button","",3,"click"],["vts-icon","","vtsType","SaveOutline:vts"]],template:function(x,M){if(1&x){const N=r.RV6();r.j41(0,"form",4)(1,"div",5)(2,"div",6)(3,"span",7),r.bIt("click",function(){return r.eBV(N),r.Njj(M.onClickLabelSwitch())}),r.EFF(4),r.nI1(5,"translate"),r.k0s(),r.j41(6,"vts-switch",8),r.mxI("ngModelChange",function(G){return r.eBV(N),r.DH7(M.isActive,G)||(M.isActive=G),r.Njj(G)}),r.bIt("ngModelChange",function(G){return r.eBV(N),r.Njj(M.toggleActiveEmail(G))}),r.k0s()()(),r.j41(7,"div",9)(8,"div",10)(9,"vts-form-item",11)(10,"vts-form-label",12)(11,"span",13),r.EFF(12),r.nI1(13,"translate"),r.k0s()(),r.j41(14,"vts-form-control")(15,"vts-input-group",14)(16,"input",15),r.mxI("ngModelChange",function(G){return r.eBV(N),r.DH7(M.inputValue,G)||(M.inputValue=G),r.Njj(G)}),r.bIt("blur",function(){return r.eBV(N),r.Njj(M.trim(M.formGroup,"smtpUserName"))})("input",function(G){return r.eBV(N),r.Njj(M.onInputChange(G))}),r.k0s()(),r.DNE(17,w,1,1,"ng-template",null,0,r.C5r),r.nrm(19,"authentication-ui-control-messages",16),r.k0s()(),r.j41(20,"vts-form-item",11)(21,"vts-form-label",12),r.EFF(22),r.nI1(23,"translate"),r.k0s(),r.j41(24,"vts-form-control")(25,"vts-input-group",14)(26,"input",17),r.bIt("ngModelChange",function(G){return r.eBV(N),r.Njj(M.changePassword(G))})("blur",function(){return r.eBV(N),r.Njj(M.trim(M.formGroup,"smtpPassword"))}),r.k0s()(),r.DNE(27,Q,1,1,"ng-template",null,1,r.C5r),r.nrm(29,"authentication-ui-control-messages",16),r.k0s()()(),r.j41(30,"div",10)(31,"vts-form-item",11)(32,"vts-form-label",12),r.EFF(33),r.nI1(34,"translate"),r.k0s(),r.j41(35,"vts-form-control")(36,"vts-input-group",14)(37,"input",18),r.bIt("blur",function(){return r.eBV(N),r.Njj(M.trim(M.formGroup,"smtpServer"))}),r.k0s()(),r.DNE(38,J,1,1,"ng-template",null,2,r.C5r),r.nrm(40,"authentication-ui-control-messages",16),r.k0s()(),r.j41(41,"vts-form-item",11)(42,"vts-form-label",12),r.EFF(43),r.nI1(44,"translate"),r.k0s(),r.j41(45,"vts-form-control")(46,"vts-input-group",14)(47,"input",19),r.bIt("blur",function(){return r.eBV(N),r.Njj(M.trim(M.formGroup,"smtpPort"))}),r.k0s()(),r.DNE(48,et,1,1,"ng-template",null,3,r.C5r),r.nrm(50,"authentication-ui-control-messages",16),r.k0s()()()(),r.j41(51,"div",20)(52,"div",21)(53,"vts-space",22),r.DNE(54,it,4,3,"button",23)(55,nt,4,4,"button",24),r.k0s()()()()}if(2&x){const N=r.sdS(18),C=r.sdS(28),G=r.sdS(39),d=r.sdS(49);r.Y8G("formGroup",M.formGroup),r.R7$(2),r.Y8G("vtsSpan",12),r.R7$(2),r.JRh(r.bMT(5,27,"sysconfig.sysEnv.sysEmail.email")),r.R7$(2),r.R50("ngModel",M.isActive),r.Y8G("ngModelOptions",r.lJ4(37,W)),r.R7$(),r.Y8G("vtsGutter",24),r.R7$(),r.Y8G("vtsSpan",12),r.R7$(4),r.JRh(r.bMT(13,29,"
1sysconfig.sysEnv.sysEmail.smtpUserName")),r.R7$(3),r.Y8G("vtsSize",M.fieldSize)("vtsSuffix",N),r.R7$(),r.R50("ngModel",M.inputValue),r.R7$(3),r.Y8G("control",M.f.smtpUserName),r.R7$(3),r.JRh(r.bMT(23,31,"sysconfig.sysEnv.sysEmail.smtpPassword")),r.R7$(3),r.Y8G("vtsSize",M.fieldSize)("vtsSuffix",C),r.R7$(),r.Y8G("type",M.hidePassword?"password":"text"),r.R7$(3),r.Y8G("control",M.f.smtpPassword),r.R7$(),r.Y8G("vtsSpan",12),r.R7$(3),r.JRh(r.bMT(34,33,"sysconfig.sysEnv.sysEmail.smtpServer")),r.R7$(3),r.Y8G("vtsSize",M.fieldSize)("vtsSuffix",G),r.R7$(4),r.Y8G("control",M.f.smtpServer),r.R7$(3),r.JRh(r.bMT(44,35,"sysconfig.sysEnv.sysEmail.smtpPort")),r.R7$(3),r.Y8G("vtsSize",M.fieldSize)("vtsSuffix",d),r.R7$(4),r.Y8G("control",M.f.smtpPort),r.R7$(3),r.Y8G("vtsPreset",2)}},dependencies:[F.MD,F.bT,e.dA,e.qb,$.h,$.D9,y.YN,y.qT,y.me,y.BC,y.cb,y.tU,y.vS,z.Cn,U.SX,O.tH,O.BE,U.dF,U.Qp,U.rA,U.Yc,K.L,j.iO,j.fZ,j.eH,j.Ms,y.X1,y.j4,y.JD,O.mi,n.mn,n.Zi,n.Uk,k.G,k.R$,t.T,V.fX,B.MT,tt.u,b.u,b.n],styles:[".switch-cfg[_ngcontent-%COMP%] .switch-cfg-box[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-right:12px;padding-bottom:8px}.switch-cfg[_ngcontent-%COMP%] .switch-cfg-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{cursor:pointer}[_nghost-%COMP%] .footer-main[_ngcontent-%COMP%] div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:6px}.reset-btn[_ngcontent-%COMP%]{border-radius:6px;border-color:#737373;color:#737373}.hidden-btn[_ngcontent-%COMP%]{color:#8f9294}.hidden-btn[_ngcontent-%COMP%]:hover{cursor:pointer;color:#737373}"]})}}return I})()},10227:(mt,q,g)=>{g.r(q),g.d(q,{SysEnvComponent:()=>d});var F=g(98231),e=g(86570),$=g(51628),y=g(90695),U=g(15799),K=g(44752),z=g(70159),j=g(1578),O=g(95603),D=g(44267),n=g(28113),k=g(65197),V=g(44025),B=g(15385),Y=g(98259),tt=g(8179),b=g(15941),s=g(52702),r=g(62252),o=g(23135),t=g(62794),W=g(2765);const H=()=>({standalone:!0});function w(h,v){if(1&h){const f=o.RV6();o.j41(0,"span",32),o.bIt("click",function(){o.eBV(f);const _=o.XpG(2);return o.Njj(_.clearValue("smsUserName"))}),o.k0s()}}function Q(h,v){if(1&h&&o.DNE(0,w,1,0,"span",31),2&h){const f=o.XpG();o.Y8G("ngIf",f.formGroup.value.smsUserName&&""!=f.formGroup.value.smsUserName)}}function st(h,v){if(1&h){const f=o.RV6();o.j41(0,"span",33),o.bIt("click",function(){o.eBV(f);const _=o.XpG();return o.Njj(_.hidePassword=!_.hidePassword)}),o.k0s()}if(2&h){const f=o.XpG();o.Y8G("vtsType",f.hidePassword?"Eye:vts":"EyeOff:vts")}}function J(h,v){if(1&h){const f=o.RV6();o.j41(0,"span",32),o.bIt("click",function(){o.eBV(f);const _=o.XpG(2);return o.Njj(_.clearValue("endpoint"))}),o.k0s()}}function ot(h,v){if(1&h&&o.DNE(0,J,1,0,"span",31),2&h){const f=o.XpG();o.Y8G("ngIf",f.formGroup.value.endpoint&&""!=f.formGroup.value.endpoint)}}function et(h,v){if(1&h){const f=o.RV6();o.j41(0,"span",32),o.bIt("click",function(){o.eBV(f);const _=o.XpG(2);return o.Njj(_.clearValue("cpCode"))}),o.k0s()}}function it(h,v){if(1&h&&o.DNE(0,et,1,0,"span",31),2&h){const f=o.XpG();o.Y8G("ngIf",f.formGroup.value.cpCode&&""!=f.formGroup.value.cpCode)}}function nt(h,v){if(1&h){const f=o.RV6();o.j41(0,"span",32),o.bIt("click",function(){o.eBV(f);const _=o.XpG(2);return o.Njj(_.clearValue("serviceId"))}),o.k0s()}}function at(h,v){if(1&h&&o.DNE(0,nt,1,0,"span",31),2&h){const f=o.XpG();o.Y8G("ngIf",f.formGroup.value.serviceId&&""!=f.formGroup.value.serviceId)}}function I(h,v){if(1&h){const f=o.RV6();o.j41(0,"span",32),o.bIt("click",function(){o.eBV(f);const _=o.XpG(2);return o.Njj(_.clearValue("commandCode"))}),o.k0s()}}function Z(h,v){if(1&h&&o.DNE(0,I,1,0,"span",31),2&h){const f=o.XpG();o.Y8G("ngIf",f.formGroup.value.commandCode&&""!=f.formGroup.value.commandCode)}}function P(h,v){if(1&h){const f=o.RV6();o.j41(0,"button",34),o.bIt("click",function(){o.eBV(f);const _=o.XpG();return o.Njj(_.resetToDefault())}),o.nrm(1,"i",35),o.EFF(2),o.nI1(3,"translate"),o.k0s()}2&h&&(o.R7$(2),o.JRh(o.bMT(3,1,"sysconfig.sysEnv.sysAuthen.actions.reset")))}function x(h,v){if(1&h){const f=o.RV6();o.j41(0,"button",36),o.bIt("click",function(){o.eBV(f);const _=o.XpG();return o.Njj(_.onSave("update"))}),o.nrm(1,"i",37),o.EFF(2),o.nI1(3,"translate"),o.k0s()}if(2&h){const f=o.XpG();o.BMQ("disabled",f.isSubmitting?"":null),o.R7$(2),o.JRh(o.bMT(3,2,"common.action.save"))}}let M=(()=>{class h{constructor(f,S,_,L,A){this._utils=f,this.serviceSys=S,this.serviceDialog=_,this.toastService=L,this._translate=A,this.fieldSize="md",this.sysSmsConfig=new B.LJr,this.defaultValue={smsUser
1Name:"gpcp_vt",smsPassword:"123456aA@",cpCode:"gpcp_vt",serviceId:1,endpoint:"1",commandCode:"Viettel!@#2023",active:!0,requestId:null},this.hidePassword=!0,this.isActive=!0,this.formGroup=new y.gE({smsUserName:new y.MJ("",[y.k0.required,y.k0.maxLength(255)]),smsPassword:new y.MJ("",[y.k0.required,y.k0.maxLength(255)]),cpCode:new y.MJ("",[y.k0.required,y.k0.maxLength(500)]),serviceId:new y.MJ("",[y.k0.required,y.k0.maxLength(500)]),endpoint:new y.MJ("",[y.k0.required,y.k0.maxLength(500)]),commandCode:new y.MJ("",[y.k0.maxLength(500)])}),this.isSubmitting=!1,this.pristineConfig={},this.currentLanguage="vi",this.listTimeUnit=[{value:0,labelVi:"Gi\xe2y",labelEn:"Second(s)"},{value:1,labelVi:"Ph\xfat",labelEn:"Minute(s)"},{value:2,labelVi:"Gi\u1edd",labelEn:"Hour(s)"}],this.destroy$=new r.B,this.trim=this._utils.trimOnBlur,this.currentLanguage=localStorage.getItem("lang")||"vi"}ngOnInit(){this.getConfigSms()}ngAfterViewInit(){setTimeout(()=>{this._utils.focusFirstField(this.formGroup,this.inputs)},500)}getConfigSms(){this.serviceSys.getSmsConfig(0,5).subscribe(f=>{if(f.body&&f.body.data[0]){this.formGroup.patchValue(f.body.data[0]),f.body.data[0].smsPassword||(this.formGroup.get("smsPassword")?.clearValidators(),this.formGroup.get("smsPassword")?.updateValueAndValidity()),this.idSmsConfig=f.body.data[0].id,this.isActive=f.body.data[0].active;const S=f.body.data[0];this.sysSmsConfig={id:this.idSmsConfig,active:this.isActive,endpoint:S.endpoint,smsUserName:S.smsUserName,smsPassword:S.smsPassword,cpCode:S.cpCode,serviceId:S.serviceId,commandCode:S.commandCode,tenantId:S.tenantId,requestId:S.requestId},this.pristineConfig={active:this.isActive,endpoint:S.endpoint||"",smsUserName:S.smsUserName||"",smsPassword:S.smsPassword||"",cpCode:S.cpCode||"",serviceId:S.serviceId||"",commandCode:S.commandCode||""},this.refreshCheckToggle()}})}get f(){return this.formGroup.controls}clearValue(f){this.formGroup.get(f)?.setValue(null),this.formGroup.get(f)?.markAsDirty(),this.formGroup.get(f)?.markAsTouched(),this.formGroup.get(f)?.updateValueAndValidity()}checkValidate(){return this.formGroup.get("smsPassword")?.value||this.formGroup.get("smsPassword")?.setValue(""),this._utils.checkValidate(this.formGroup,this.inputs)}onSave(f){(this.checkValidate()||"reset"===f)&&this.serviceDialog.confirmMessage("sysconfig.sysEnv.action."+f+"ConfigSms",void 0,void 0,{},"common.confirm-info.sys-sms.reset",{text:"common.action.save",icon:"SaveOutline:vts"}).afterClose.subscribe(_=>{_==B.h87.RESULT_CLOSE_DIALOG.CONFIRM&&(this.isSubmitting=!0,"reset"===f&&(this.formGroup.patchValue(this.defaultValue),this.isActive=!0,this.toggleActiveSms(!0)),this.sysSmsConfig.id=this.idSmsConfig,this.sysSmsConfig.active=this.isActive,this.sysSmsConfig.endpoint=this.formGroup.value.endpoint,this.sysSmsConfig.smsUserName=this.formGroup.value.smsUserName,this.sysSmsConfig.smsPassword=this.formGroup.value.smsPassword,this.sysSmsConfig.cpCode=this.formGroup.value.cpCode,this.sysSmsConfig.serviceId=this.formGroup.value.serviceId,this.sysSmsConfig.commandCode=this.formGroup.value.commandCode,this.sysSmsConfig.tenantId=1,this.sysSmsConfig.requestId=1,this.serviceSys.updateSmsConfig(this.sysSmsConfig).subscribe(L=>{this.toastService.success("",this._translate.instant("sysconfig.syslogin.message.updateSucess")),this.getConfigSms(),this.isSubmitting=!1},L=>{this.isSubmitting=!1,(!L.error||!L.error.detailErrorMessage)&&this.toastService.error("",this._translate.instant("sysconfig.syslogin.message.updateError"))}))})}resetToDefault(){this.formGroup.patchValue(this.defaultValue),this.onSave("reset")}changePassword(f){this.formGroup.get("smsPassword")?.setValidators([y.k0.required,y.k0.maxLength(255)])}refreshCheckToggle(){this.toggleActiveSms(this.isActive)}toggleActiveSms(f){!1===f?this.formGroup.disable():this.formGroup.enable()}onClickLabelSwitch(){this.isActive=!this.isActive,this.toggleActiveSms(this.isActive)}checkFormChanges(){const f=this.getFormVal();let S=!1;const _=Object.keys(f),L=["smsPassword"];for(let A=0;A<_.length;A++)if(!L.includes(_[A])&&B.QX3.isOneOrBothNotEmpty(this.pristineConfig[_[A]],f[_[A]])&&this.pristineConfig[_[A]]!=f[_[A]]){S=!0;break}return S}getFormVal(){return{id:this.idSmsConfig,tenantId:this.sysSmsConfig.tenantId,endpoint:this.formGroup.value.endpoint,smsUser
1Name:this.formGroup.value.smsUserName,smsPassword:this.formGroup.value.smsPassword,cpCode:this.formGroup.value.cpCode,serviceId:this.formGroup.value.serviceId,commandCode:this.formGroup.value.commandCode,active:this.isActive,requestId:this.sysSmsConfig.requestId||null}}static{this.\u0275fac=function(S){return new(S||h)(o.rXU(B.$Db),o.rXU(B.yhK),o.rXU(tt.o3),o.rXU(t.Mo),o.rXU($.c$))}}static{this.\u0275cmp=o.VBU({type:h,selectors:[["sys-env-feature-sys-sms"]],viewQuery:function(S,_){if(1&S&&o.GBs(D.fZ,5),2&S){let L;o.mGM(L=o.lsd())&&(_.inputs=L)}},decls:76,vars:49,consts:[["clearableUsernameTpl",""],["clearablePasswordTpl",""],["clearableUrlTpl",""],["clearableCpCodeTpl",""],["clearableIdServiceTpl",""],["clearableCmdCodeTpl",""],["vts-form","","vtsLayout","vertical",3,"formGroup"],[1,"switch-cfg"],["vts-col","",1,"switch-cfg-box",3,"vtsSpan"],[3,"click"],[3,"ngModelChange","ngModel","ngModelOptions"],["vts-row","",3,"vtsGutter"],["vts-col","",3,"vtsSpan"],[1,"mg-b-12"],["vtsRequired","",1,"label-form-page"],[1,"drawer-format","label-edit"],[1,""],[1,"input-box",3,"vtsSize","vtsSuffix"],["vts-input","","placeholder","","formControlName","smsUserName","maxlength","100",3,"blur"],[3,"control"],["vts-input","","placeholder","","formControlName","smsPassword","maxlength","100",3,"ngModelChange","blur","type"],["vts-input","","placeholder","","formControlName","endpoint","maxlength","100",3,"blur"],["vts-input","","placeholder","","formControlName","cpCode","maxlength","100",3,"blur"],["vts-input","","placeholder","","formControlName","serviceId","maxlength","100",3,"blur"],[1,"label-form-page","pd-0"],["vts-input","","placeholder","","formControlName","commandCode","maxlength","100",3,"blur"],["vts-row","",1,"footer-main"],["vts-space","","vtsJustify","end","vtsDirection","horizontal","vts-col","","vtsSpan","24"],["vtsWrap","",3,"vtsPreset"],["class","reset-btn","vtsSize","sm","vts-button","",3,"click",4,"vtsSpaceItem"],["vtsType","primary","vtsSize","sm","vts-button","",3,"click",4,"vtsSpaceItem"],["vts-icon","","vtsTheme","fill","class","vts-input-clear-icon","vtsType","ClearDoutone:vts",3,"click",4,"ngIf"],["vts-icon","","vtsTheme","fill","vtsType","ClearDoutone:vts",1,"vts-input-clear-icon",3,"click"],["vts-icon","",1,"hidden-btn",3,"click","vtsType"],["vtsSize","sm","vts-button","",1,"reset-btn",3,"click"],["vts-icon","","vtsType","SettingsBackupRestoreOutline:vts",2,"padding-top","2px"],["vtsType","primary","vtsSize","sm","vts-button","",3,"click"],["vts-icon","","vtsType","SaveOutline:vts"]],template:function(S,_){if(1&S){const L=o.RV6();o.j41(0,"form",6)(1,"div",7)(2,"div",8)(3,"span",9),o.bIt("click",function(){return o.eBV(L),o.Njj(_.onClickLabelSwitch())}),o.EFF(4),o.nI1(5,"translate"),o.k0s(),o.j41(6,"vts-switch",10),o.mxI("ngModelChange",function(X){return o.eBV(L),o.DH7(_.isActive,X)||(_.isActive=X),o.Njj(X)}),o.bIt("ngModelChange",function(X){return o.eBV(L),o.Njj(_.toggleActiveSms(X))}),o.k0s()()(),o.j41(7,"div",11)(8,"div",12)(9,"vts-form-item",13)(10,"vts-form-label",14)(11,"span",15),o.EFF(12),o.nI1(13,"translate"),o.k0s()(),o.j41(14,"vts-form-control",16)(15,"vts-input-group",17)(16,"input",18),o.bIt("blur",function(){return o.eBV(L),o.Njj(_.trim(_.formGroup,"smsUserName"))}),o.k0s()(),o.DNE(17,Q,1,1,"ng-template",null,0,o.C5r),o.nrm(19,"authentication-ui-control-messages",19),o.k0s()(),o.j41(20,"vts-form-item",13)(21,"vts-form-label",14),o.EFF(22),o.nI1(23,"translate"),o.k0s(),o.j41(24,"vts-form-control")(25,"vts-input-group",17)(26,"input",20),o.bIt("ngModelChange",function(X){return o.eBV(L),o.Njj(_.changePassword(X))})("blur",function(){return o.eBV(L),o.Njj(_.trim(_.formGroup,"smsPassword"))}),o.k0s()(),o.DNE(27,st,1,1,"ng-template",null,1,o.C5r),o.nrm(29,"authentication-ui-control-messages",19),o.k0s()(),o.j41(30,"vts-form-item",13)(31,"vts-form-label",14),o.EFF(32),o.nI1(33,"translate"),o.k0s(),o.j41(34,"vts-form-control")(35,"vts-input-group",17)(36,"input",21),o.bIt("blur",function(){return o.eBV(L),o.Njj(_.trim(_.formGroup,"endpoint"))}),o.k0s()(),o.DNE(37,ot,1,1,"ng-template",null,2,o.C5r),o.nrm(39,"authentication-ui-control-messages",19),o.k0s()()(),o.j41(40,"div",12)(41,"vts-form-item",13)(42,"vts-form-label",14),o.EFF(43),o.nI1(44,"translate"),o.k0s(),o.j41(45,"vts-form-control")(46,"vts-input-group",17)(47,"input",22),o.bIt("blur",function(){return o.eBV(L),o.Njj(_.trim(_.formGroup,"cpCode"))}),o.k0s()(),o.DNE(48,it,1,1,"ng-template",null,3,o.C5r),o.nrm(50,"authentication-ui-control-messages",19),o.k0s()(),o.j41(51,"vts-form-item",13)(52,"vts-form-label",14),o.EFF(53),o.nI1(54,"translate"),o.k0s(),o.j41(55,"vts-form-control")(56,"vts-input-group",17)(57,"input",23),o.bIt("blur",function(){return o.eBV(L),o.Njj(_.trim(_.formGroup,"serviceId"))}),o.k0s()(),o.DNE(58,at,1,1,"ng-template",null,4,o.C5r),o.nrm(60,"authentication-ui-control-messages",19),o.k0s()(),o.j41(61,"vts-form-item",13)(62,"vts-form-label",24),o.EFF(63),o.nI1(64,"translate"),o.k0s(),o.j41(65,"vts-form-control")(66,"vts-input-group",17)(67,"input",25),o.bIt("blur",function(){return o.eBV(L),o.Njj(_.trim(_.formGroup,"commandCode"))}),o.k0s()(),o.DNE(68,Z,1,1,"ng-template",null,5,o.C5r),o.nrm(70,"authentication-ui-control-messages",19),o.k0s()()()(),o.j41(71,"div",26)(72,"div",27)(73,"vts-space",28),o.DNE(74,P,4,3,"button",29)(75,x,4,4,"button",30),o.k0s()()()()}if(2&S){const L=o.sdS(18),A=o.sdS(28),X=o.sdS(38),rt=o.sdS(49),lt=o.sdS(59),ct=o.sdS(69);o.Y8G("formGroup",_.formGroup),o.R7$(2),o.Y8G("vtsSpan",12),o.R7$(2),o.JRh(o.bMT(5,34,"sysconfig.sysEnv.sysSms.sms")),o.R7$(2),o.R50("ngModel",_.isActive),o.Y8G("ngModelOptions",o.lJ4(48,H)),o.R7$(),o.Y8G("vtsGutter",24),o.R7$(),o.Y8G("vtsSpan",12),o.R7$(4),o.JRh(o.bMT(13,36,"sysconfig.sysEnv.sysSms.smsUserName")),o.R7$(3),o.Y8G("vtsSize",_.fieldSize)("vtsSuffix",L),o.R7$(4),o.Y8G("control",_.f.smsUser
1Name),o.R7$(3),o.JRh(o.bMT(23,38,"sysconfig.sysEnv.sysSms.smsPassword")),o.R7$(3),o.Y8G("vtsSize",_.fieldSize)("vtsSuffix",A),o.R7$(),o.Y8G("type",_.hidePassword?"password":"text"),o.R7$(3),o.Y8G("control",_.f.smsPassword),o.R7$(3),o.JRh(o.bMT(33,40,"sysconfig.sysEnv.sysSms.endpoint")),o.R7$(3),o.Y8G("vtsSize",_.fieldSize)("vtsSuffix",X),o.R7$(4),o.Y8G("control",_.f.endpoint),o.R7$(),o.Y8G("vtsSpan",12),o.R7$(3),o.JRh(o.bMT(44,42,"sysconfig.sysEnv.sysSms.cpCode")),o.R7$(3),o.Y8G("vtsSize",_.fieldSize)("vtsSuffix",rt),o.R7$(4),o.Y8G("control",_.f.cpCode),o.R7$(3),o.JRh(o.bMT(54,44,"sysconfig.sysEnv.sysSms.serviceId")),o.R7$(3),o.Y8G("vtsSize",_.fieldSize)("vtsSuffix",lt),o.R7$(4),o.Y8G("control",_.f.serviceId),o.R7$(3),o.JRh(o.bMT(64,46,"sysconfig.sysEnv.sysSms.commandCode")),o.R7$(3),o.Y8G("vtsSize",_.fieldSize)("vtsSuffix",ct),o.R7$(4),o.Y8G("control",_.f.commandCode),o.R7$(3),o.Y8G("vtsPreset",2)}},dependencies:[F.MD,F.bT,e.dA,e.qb,$.h,$.D9,y.YN,y.qT,y.me,y.BC,y.cb,y.tU,y.vS,z.Cn,U.SX,n.tH,n.BE,U.dF,U.Qp,U.rA,U.Yc,K.L,D.iO,D.fZ,D.eH,D.Ms,y.X1,y.j4,y.JD,n.mi,k.mn,k.Zi,k.Uk,V.G,V.R$,W.T,Y.fX,b.u,s.u,s.n],styles:[".switch-cfg[_ngcontent-%COMP%] .switch-cfg-box[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-right:12px;padding-bottom:8px}.switch-cfg[_ngcontent-%COMP%] .switch-cfg-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{cursor:pointer}[_nghost-%COMP%] .footer-main[_ngcontent-%COMP%] div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:6px}.reset-btn[_ngcontent-%COMP%]{border-radius:6px;border-color:#737373;color:#737373}.hidden-btn[_ngcontent-%COMP%]{color:#8f9294}.hidden-btn[_ngcontent-%COMP%]:hover{cursor:pointer;color:#737373}"]})}}return h})(),N=(()=>{class h{constructor(){this.tabChange$=new r.B,this.shouldParentTabIndChange$=new r.B}static{this.\u0275fac=function(S){return new(S||h)}}static{this.\u0275prov=o.jDH({token:h,factory:h.\u0275fac})}}return h})();const C=["sysEmailRef"],G=["sysSmsRef"];let d=(()=>{class h{constructor(f,S){this._utils=f,this._serviceDialog=S,this.destroy$=new r.B,this.selectedTabInd=0,this.canDeactivate=(_,L)=>{if(_==L)return!1;switch(_){case 0:{let A={active:this.sysEmailRef.isActive,smtpPassword:this.sysEmailRef.formGroup.get("smtpPassword").value||"",smtpPort:this.sysEmailRef.formGroup.get("smtpPort").value||"",smtpServer:this.sysEmailRef.formGroup.get("smtpServer").value||"",smtpUserName:this.sysEmailRef.formGroup.get("smtpUserName").value||""};return this._utils.isSameObjectData(this.sysEmailRef.pristineConfig,A)||this._serviceDialog.confirmMessage("B\u1ea1n ch\u01b0a l\u01b0u thay \u0111\u1ed5i. B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn r\u1eddi trang?",void 0,void 0,{},"common.confirm-info.leave-page-title",{text:"common.confirm-info.leave-page-title",icon:"LeavePage:external"}).afterClose.subscribe(rt=>rt==B.h87.RESULT_CLOSE_DIALOG.CONFIRM&&(this.sysEmailRef.formGroup.patchValue(this.sysEmailRef.pristineConfig),this.selectedTabInd=L,!0)),this._utils.isSameObjectData(this.sysEmailRef.pristineConfig,A)}case 1:{let A={active:this.sysSmsRef.isActive,smsUserName:this.sysSmsRef.formGroup.get("smsUserName").value||"",smsPassword:this.sysSmsRef.formGroup.get("smsPassword").value||"",cpCode:this.sysSmsRef.formGroup.get("cpCode").value||"",serviceId:this.sysSmsRef.formGroup.get("serviceId").value||"",endpoint:this.sysSmsRef.formGroup.get("endpoint").value||"",commandCode:this.sysSmsRef.formGroup.get("commandCode").value||""};return this._utils.isSameObjectData(this.sysSmsRef.pristineConfig,A)||this._serviceDialog.confirmMessage("B\u1ea1n ch\u01b0a l\u01b0u thay \u0111\u1ed5i. B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn r\u1eddi trang?",void 0,void 0,{},"common.confirm-info.leave-page-title",{text:"common.confirm-info.leave-page-title",icon:"LeavePage:external"}).afterClose.subscribe(rt=>rt==B.h87.RESULT_CLOSE_DIALOG.CONFIRM&&(this.sysSmsRef.formGroup.patchValue(this.sysSmsRef.pristineConfig),this.selectedTabInd=L,!0)),this._utils.isSameObjectData(this.sysSmsRef.pristineConfig,A)}default:return!1}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(S){return new(S||h)(o.rXU(B.$Db),o.rXU(tt.o3))}}static{this.\u0275cmp=o.VBU({type:h,selectors:[["sys-config-feature-sys-env"]],viewQuery:function(S,_){if(1&S&&(o.GBs(C,5),o.GBs(G,5)),2&S){let L;o.mGM(L=o.lsd())&&(_.sysEmailRef=L.first),o.mGM(L=o.lsd())&&(_.sysSmsRef=L.first)}},features:[o.Jv_([N,tt.o3])],decls:10,vars:8,consts:[["sysEmailRef",""],["sysSms
1Ref",""],[1,"card-container"],["vtsAnimated","false",3,"vtsSelectedIndexChange","vtsSelectedIndex","vtsCanDeactivate"],[3,"vtsTitle"]],template:function(S,_){if(1&S){const L=o.RV6();o.j41(0,"vts-card",2)(1,"vts-tabset",3),o.mxI("vtsSelectedIndexChange",function(X){return o.eBV(L),o.DH7(_.selectedTabInd,X)||(_.selectedTabInd=X),o.Njj(X)}),o.j41(2,"vts-tab",4),o.nI1(3,"translate"),o.nrm(4,"sys-env-feature-sys-email",null,0),o.k0s(),o.j41(6,"vts-tab",4),o.nI1(7,"translate"),o.nrm(8,"sys-env-feature-sys-sms",null,1),o.k0s()()()}2&S&&(o.R7$(),o.R50("vtsSelectedIndex",_.selectedTabInd),o.Y8G("vtsCanDeactivate",_.canDeactivate),o.R7$(),o.FS9("vtsTitle",o.bMT(3,4,"sysconfig.sysEnv.configEmail")),o.R7$(4),o.FS9("vtsTitle",o.bMT(7,6,"sysconfig.sysEnv.configSms")))},dependencies:[F.MD,e.dA,$.h,$.D9,y.YN,z.Cn,z.F_,j.SE,j.WI,j.Wt,O.h,U.SX,K.L,M],encapsulation:2})}}return h})()},28323:(mt,q,g)=>{g.r(q),g.d(q,{FileModel:()=>p,SysLoginComponent:()=>T});var F=g(98231),e=g(23135),$=g(28113),y=g(51628),U=g(15799),K=g(54504),z=g(52702),j=g(28114),O=g(44025),D=g(37606),n=g(44267),k=g(90695),V=g(62252),B=g(89558),Y=g(52317),tt=g(4233),b=g(70159),s=g(34226),r=g(15385),o=g(86570),t=g(65197),W=g(62794),H=g(8179),w=g(98259),Q=g(15941),st=g(53856),J=g(1578),ot=g(91943),et=g(8077),it=g(54931),nt=g(48682),at=g(2765);
1const I=["previewContainer"],Z=["inputFileSystemBackground"],P=["inputFileSystemLogo"],x=["inputFileSystemLogoNav"];function M(a,l){1&a&&(e.j41(0,"p"),e.nrm(1,"i",54),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&a&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"sysconfig.syslogin.noteMode"),""))}function N(a,l){if(1&a&&e.nrm(0,"vts-option",55),2&a){const i=l.$implicit;e.Y8G("vtsValue",i.langCode)("vtsLabel",i.langName)}}function C(a,l){if(1&a&&e.nrm(0,"vts-option",55),2&a){const i=l.$implicit;e.Y8G("vtsValue",i.langCode)("vtsLabel",i.langName)}}function G(a,l){if(1&a&&(e.j41(0,"vts-form-item",10)(1,"vts-form-label",11),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"vts-form-control")(5,"vts-select",56),e.DNE(6,C,1,2,"vts-option",17),e.k0s()(),e.nrm(7,"authentication-ui-control-messages",13),e.k0s()),2&a){const i=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,"sysconfig.syslogin.defaultLanguage")),e.R7$(4),e.Y8G("ngForOf",i.languageSysTenant),e.R7$(),e.Y8G("control",i.f.defaultLanguageSys)}}function d(a,l){if(1&a){const i=e.RV6();e.j41(0,"i",63),e.bIt("click",function(){e.eBV(i);const c=e.XpG().$implicit,u=e.XpG();return e.Njj(u.editFile(c.fileId,"fileBg"))}),e.k0s()}}function h(a,l){if(1&a){const i=e.RV6();e.j41(0,"i",64),e.bIt("click",function(){e.eBV(i);const c=e.XpG(),u=c.$implicit,R=c.index,E=e.XpG();return e.Njj(E.delFile(R,u.fileId,"fileBg"))}),e.k0s()}}function v(a,l){if(1&a&&(e.j41(0,"div",57),e.nrm(1,"img",58),e.j41(2,"vts-space",59),e.DNE(3,d,1,0,"i",60)(4,h,1,0,"i",61),e.k0s(),e.nrm(5,"div",62),e.k0s()),2&a){const i=l.$implicit;e.R7$(),e.Y8G("src",i.src,e.B4B)}}function f(a,l){if(1&a){const i=e.RV6();e.j41(0,"div",65)(1,"div",66)(2,"input",67,2),e.bIt("change",function(c){e.eBV(i);const u=e.XpG();return e.Njj(u.fileChange(c,"fileBg"))}),e.k0s(),e.j41(4,"label",68),e.nrm(5,"i",69),e.j41(6,"span",70),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()()}2&a&&(e.R7$(7),e.JRh(e.bMT(8,1,"common.upload.browseFiles")))}function S(a,l){if(1&a){const i=e.RV6();e.j41(0,"i",63),e.bIt("click",function(){e.eBV(i);const c=e.XpG().$implicit,u=e.XpG();return e.Njj(u.editFile(c.fileId,"fileLogo"))}),e.k0s()}}function _(a,l){if(1&a){const i=e.RV6();e.j41(0,"i",64),e.bIt("click",function(){e.eBV(i);const c=e.XpG(),u=c.$implicit,R=c.index,E=e.XpG();return e.Njj(E.delFile(R,u.fileId,"fileLogo"))}),e.k0s()}}function L(a,l){if(1&a&&(e.j41(0,"div",71),e.nrm(1,"img",58),e.j41(2,"vts-space",59),e.DNE(3,S,1,0,"i",60)(4,_,1,0,"i",61),e.k0s(),e.nrm(5,"div",62),e.k0s()),2&a){const i=l.$implicit;e.R7$(),e.Y8G("src",i.src,e.B4B)}}function A(a,l){if(1&a){const i=e.RV6();e.j41(0,"div",65)(1,"div",66)(2,"input",72,3),e.bIt("change",function(c){e.eBV(i);const u=e.XpG();return e.Njj(u.fileChange(c,"fileLogo"))}),e.k0s(),e.j41(4,"label",73),e.nrm(5,"i",69),e.j41(6,"span",70),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()()}2&a&&(e.R7$(7),e.JRh(e.bMT(8,1,"common.upload.browseFiles")))}function X(a,l){if(1&a){const i=e.RV6();e.j41(0,"i",63),e.bIt("click",function(){e.eBV(i);const c=e.XpG().$implicit,u=e.XpG();return e.Njj(u.editFile(c.fileId,"fileLogoNav"))}),e.k0s()}}function rt(a,l){if(1&a){const i=e.RV6();e.j41(0,"i",64),e.bIt("click",function(){e.eBV(i);const c=e.XpG(),u=c.$implicit,R=c.index,E=e.XpG();return e.Njj(E.delFile(R,u.fileId,"fileLogoNav"))}),e.k0s()}}function lt(a,l){if(1&a&&(e.j41(0,"div",74),e.nrm(1,"img",75),e.j41(2,"vts-space",59),e.DNE(3,X,1,0,"i",60)(4,rt,1,0,"i",61),e.k0s(),e.nrm(5,"div",62),e.k0s()),2&a){const i=l.$implicit;e.R7$(),e.Y8G("src",i.src,e.B4B)}}function ct(a,l){if(1&a){const i=e.RV6();e.j41(0,"div",65)(1,"div",66)(2,"input",76,4),e.bIt("change",function(c){e.eBV(i);const u=e.XpG();return e.Njj(u.fileChange(c,"fileLogoNav"))}),e.k0s(),e.j41(4,"label",77),e.nrm(5,"i",69),e.j41(6,"span",70),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()()}2&a&&(e.R7$(7),e.JRh(e.bMT(8,1,"common.upload.browseFiles")))}function ut(a,l){if(1&a){const i=e.RV6();e.qex(0),e.j41(1,"button",78),e.bIt("click",function(){e.eBV(i);const c=e.XpG();return e.Njj(c.processSaveOrUpdate())}),e.nrm(2,"i",79),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.bVm()}2&a&&(e.R7$(3),e.JRh(e.bMT(4,1,"common.action.save")))}class p{constructor(l,i,m,c=null,u=null){this.src=l,this.name=i,this.ext=m,this.fileId=c,this.url=u}}let T=(()=>{class a{constructor(){this.size="sm",this.sysLogin=new r.v2M,this.tempSysLogin={},this.fileBg=[],this.fileBgRaw=[],this.fileLogo=[],this.fileLogoRaw=[],this.fileLogoNav=[],this.fileLogoNavRaw=[],this.fileDel=[],this.imageUrl="/assets/template/images/background_its.png",this.logoUrl="",this.listOfOptionLangs=[],this.listLangCur=[],this.languageSysTenant=[],this.loading=!1,this.inputSize="sm",this.authLayoutStyle={transform:"scale(0.72)"},this.previewSurfaceWidth=1152,this.previewSurfaceHeight=648,this.defaultValue={},this.destroy$=new V.B,this.preventInteractionCls="preview-content-prevent",this.toastService=(0,e.WQX)(W.Mo),this.formBuilder=(0,e.WQX)(k.ok),this.serviceDialog=(0,e.WQX)(H.o3),this.serviceSys=(0,e.WQX)(r.yhK),this._translate=(0,e.WQX)(y.c$),this.helperService=(0,e.WQX)(r.wTq),this.formUtils=(0,e.WQX)(r.QX3),this._utils=(0,e.WQX)(r.$Db),this._checkPermissionService=(0,e.WQX)(r.X4S),this.serverUrl=(0,e.WQX)(r.UBk),this.defaultSysLogin=(0,e.WQX)(r.Igw),this.mediaBucket=(0,e.WQX)(r.ssn),this.showUpdateLoginConfig=!1,this.hideLabel=this._translate.instant("common.action.hide"),this.unhideLabel=this._translate.instant("common.action.unhide"),this.changeSizeSelect=this.formUtils.changeSizeSelect,this.buildForm()}ngOnInit(){this.loading=!0,this.checkActionPermission(),this.getListLanguageSys(),this.getInforSysLogin(),this.getValueTyping()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkActionPermission(){this._checkPermissionService.checkPermissionForAction(["UPDATE"],[r.qiI.API_LOGIN_CONFIG]).subscribe(c=>{this.showUpdateLoginConfig=c[0]})}ngAfterViewInit(){this.preventInteraction(),setTimeout(()=>this.resizePreview()),setTimeout(()=>{this._utils.focusFirstField(this.formSysLogin,this.inputs)},700)}getValueTyping(){this.formSysLogin.valueChanges.pipe((0,B.T)(({name:i,description:m,logoName:c,copyright:u})=>({name:i,description:m,logoName:c,copyright:u})),(0,Y.Q)(this.destroy$)).subscribe(i=>{this.name=i.name,this.logoName=i.logoName,this.description=i.description,this.copyright=i.copyright})}get f(){return this.formSysLogin.controls}resizePreview(i){this.updatePreviewScale(i?.[0]?.contentRect.width||this.previewContainer?.nativeElement.clientWidth||0)}updatePreviewScale(i){const m=Math.max(i,1),c=Math.max(.83*window.innerHeight-20,1),u=Math.min(m/1600,c/900,1);this.authLayoutStyle={transform:`scale(${u})`},this.previewSurfaceWidth=1600*u,this.previewSurfaceHeight=900*u}getInforSysLogin(){this.serviceSys.getSysLogin().subscribe(i=>{this.formDataInit(i),this.loading=!1},i=>{this.loading=!1})}getListLanguageSys(){this.serviceSys.getListLanguageSys().subscribe(i=>{this.listOfOptionLangs=i})}generateListLanguage(i){this.languageSysTenant=this.createListLanguage(i),this.languageSysTenant.find(m=>m.defaultLang)||this.formSysLogin.get("defaultLanguageSys")?.setValue(null)}createListLanguage(i){return i.map(c=>{const u=this.listOfOptionLangs.find(R=>R.langCode==c);return u?{defaultLang:this.formSysLogin.value.defaultLanguageSys==c?1:0,id:u.id,langCode:u.langCode,langName:u.langName}:{}})}formDataInit(i){this.dataConfig=JSON.parse(JSON.parse(i.configLogin)),setTimeout(()=>this.languageSysTenant=i.languageSysTenant);const m=i.languageSysTenant.map(c=>c.langCode);
1if(this.listLangCur=m,this.formSysLogin.patchValue({name:i.name,description:i.description,copyright:i.copyright,copyrightFooter:this.dataConfig.copyrightFooter,linkSupport:this.dataConfig.linkSupport,logoName:this.dataConfig.logoName||"",isSupport:this.dataConfig.isSupport,linkPolicy:this.dataConfig.linkPolicy,isPolicy:this.dataConfig.isPolicy,linkTermsOfUse:this.dataConfig.linkTermsOfUse,isTermsOfUse:this.dataConfig.isTermsOfUse,linkIntroduce:this.dataConfig.linkIntroduce,isIntroduce:this.dataConfig.isIntroduce,isDownloadGooglePlay:this.dataConfig.isDownloadGooglePlay,isDownloadIOS:this.dataConfig.isDownloadIOS,linkDownloadIOS:this.dataConfig.linkDownloadIOS,linkDownloadAndroid:this.dataConfig.linkDownloadAndroid,listLanguageSysChoose:this.listLangCur,isPhoneSupport:!(!i||!i.phoneSupportStatus),phoneSupport:i&&i.phoneSupport?i.phoneSupport:"",isEmailSupport:!(!i||!i.emailSupportStatus),emailSupport:i&&i.emailSupport?i.emailSupport:""}),this.formSysLogin.get("defaultLanguageSys").setValue(i.languageSysTenant.filter(c=>1==c.defaultLang)[0].langCode),this.urlIntroduce=this.dataConfig.linkIntroduce?this.dataConfig.linkIntroduce:"",this.urlPolicy=this.dataConfig.linkPolicy?this.dataConfig.linkPolicy:"",this.urlTermsOfUse=this.dataConfig.linkTermsOfUse?this.dataConfig.linkTermsOfUse:"",this.urlSupport=this.dataConfig.linkSupport?this.dataConfig.linkSupport:"",this.idSysLogin=i.id,this.defaultConfig=this.dataConfig.defaultConfig,this.sysLogin=i,i.image&&i.image.startsWith(`${this.mediaBucket}/`)&&0==this.defaultConfig){this.imageUrl=this.serverUrl.file+"/"+i.image;const c=new p(this.serverUrl.file+"/"+i.image,"","","","");this.fileBg=[],this.fileBg.push(c)}else{this.imageUrl=this.defaultSysLogin.dataConfig.imageBg;const c=new p(this.defaultSysLogin.dataConfig.imageBg,"","","","");this.fileBg=[],this.fileBg.push(c)}if(i.imageLogo&&i.imageLogo.startsWith(`${this.mediaBucket}/`)&&0==this.defaultConfig){this.logoUrl=this.serverUrl.file+"/"+i.imageLogo;const c=new p(this.serverUrl.file+"/"+i.imageLogo,"","","","");this.fileLogo=[],this.fileLogo.push(c)}else{this.logoUrl=this.defaultSysLogin.dataConfig.imageLgIcon;const c=new p(this.defaultSysLogin.dataConfig.imageLgIcon,"","","","");this.fileLogo=[],this.fileLogo.push(c)}if(i.imageLogoNav&&i.imageLogoNav.startsWith(`${this.mediaBucket}/`)&&0==this.defaultConfig){const c=new p(this.serverUrl.file+"/"+i.imageLogoNav,"","","","");this.fileLogoNav=[],this.fileLogoNav.push(c)}else{const c=new p(this.defaultSysLogin.dataConfig.imageLg,"","","","");this.fileLogoNav=[],this.fileLogoNav.push(c)}}buildForm(){this.formSysLogin=this.formBuilder.group({name:["",[k.k0.required,k.k0.maxLength(255),r.Bm6.contentSafeHtml]],logoName:["",[k.k0.required,k.k0.maxLength(500),r.Bm6.contentSafeHtml]],description:["",[k.k0.required,k.k0.maxLength(500)]],listLanguageSysChoose:[[],[k.k0.required]],copyright:["",[k.k0.required,k.k0.maxLength(255)]],copyrightFooter:["",[k.k0.required,k.k0.maxLength(255)]],isSupport:[],isPolicy:[],isTermsOfUse:[],isIntroduce:[],linkSupport:["",[k.k0.maxLength(255),r.Bm6.validateLUrl]],linkPolicy:["",[k.k0.maxLength(255),r.Bm6.validateLUrl]],linkTermsOfUse:["",[k.k0.maxLength(255),r.Bm6.validateLUrl]],linkIntroduce:["",[k.k0.maxLength(255),r.Bm6.validateLUrl]],linkDownloadIOS:["",[k.k0.maxLength(255),r.Bm6.validateLUrl]],linkDownloadAndroid:["",[k.k0.maxLength(255),r.Bm6.validateLUrl]],isDownloadGooglePlay:["",[k.k0.maxLength(255)]],isDownloadIOS:[""],defaultLanguageSys:["",[k.k0.required]],isPhoneSupport:[],isEmailSupport:[],phoneSupport:["",[r.Bm6.mobileNumber,k.k0.maxLength(12)]],emailSupport:["",[r.Bm6.emailWithIPFormat,k.k0.maxLength(50)]]}),this.formSysLogin.valueChanges.pipe((0,Y.Q)(this.destroy$)).subscribe(i=>{const c=JSON.stringify(JSON.stringify({defaultConfig:0,linkSupport:i.linkSupport||"",isSupport:i.isSupport,linkPolicy:i.linkPolicy||"",isPolicy:i.isPolicy,linkTermsOfUse:i.linkTermsOfUse||"",isTermsOfUse:i.isTermsOfUse,linkIntroduce:i.linkIntroduce||"",isIntroduce:i.isIntroduce,isDownloadGooglePlay:i.isDownloadGooglePlay,isDownloadIOS:i.isDownloadIOS,linkDownloadIOS:i.linkDownloadIOS||"",linkDownloadAndroid:i.linkDownloadAndroid||"",copyrightFoote:i.copyrightFooter||"",logoName:i.logoName}));this.tempSysLogin={...this.tempSysLogin,configLogin:c,name:i.name,description:i.description,copyright:i.copyright,phoneSupportStatus:i.isPhoneSupport?1:0,phoneSupport:i.phoneSupport,emailSupportStatus:i.isEmailSupport?1:0,emailSupport:i.emailSupport,id:this.idSysLogin,languageSysTenant:this.createListLanguage(i.listLanguageSysChoose),image:this.fileBgRaw.length?this.imageUrl:this.sysLogin.image,imageLogo:this.fileLogoRaw.length?this.logoUrl:this.sysLogin.imageLogo,imageLogoNav:this.sysLogin.imageLogoNav}})}fileChange(i,m){const c=i.target;if(!(i.target&&c.files&&c.files.length))return;const u=c.files[0];if(this.checkValidFile(u))return void this.toastService.warning("","Vui l\xf2ng ch\u1ecdn \u1ea3nh c\xf3 \u0111\u1ecbnh d\u1ea1ng P
1NG, JPG, JPEG");if(this.checkIsImgFile(u)&&!this.checkValidCapacity(u,5))return void this.toastService.warning("",this._translate.instant("sysconfig.syslogin.message.limitSizeImg",{size:"5MB"}));const R=new FileReader;R.onload=E=>{this[m].push(new p(E.target?.result,u.name,u.type.substring(12,u.type.length))),this[m+"Raw"]=[...this[m+"Raw"],u],"fileBg"===m?this.imageUrl=this[m][0].src:"fileLogo"===m&&(this.logoUrl=this[m][0].src),this.tempSysLogin={...this.tempSysLogin,image:this.imageUrl.startsWith(this.serverUrl.file+"/")?this.imageUrl.split(this.serverUrl.file+"/")[1]:this.imageUrl,imageLogo:this.logoUrl.startsWith(this.serverUrl.file+"/")?this.logoUrl.split(this.serverUrl.file+"/")[1]:this.logoUrl}},R.readAsDataURL(u),c.value=""}checkValidCapacity(i,m){const c=i.size/1024/1024;return!(!c||c>m)}checkValidFile(i){for(let m=0;m<r.ri3.length;m++)if(i.type.includes(r.ri3[m]))return!1;return!0}checkIsImgFile(i){for(let m=0;m<r.ri3.length;m++)if(i.type.includes(r.ri3[m]))return!0;return!1}processSaveOrUpdate(){if(0===this.fileBg.length||0===this.fileLogo.length||0==this.fileLogoNav.length)return void this.toastService.warning("",this._translate.instant("sysconfig.syslogin.message.invali
1dImg"));const i=new FormData;r.$Db.isValidForm(this.formSysLogin)&&this.serviceDialog.confirmMessage("common.confirm-info.sys-login.update-login-page-confirm",void 0,void 0,{},"common.confirm-info.sys-login.update-login-page",{text:"common.action.update-confirm",icon:"UpdateOutline:vts"}).afterClose.subscribe(c=>{if(c==r.h87.RESULT_CLOSE_DIALOG.CONFIRM){this.dataConfig.defaultConfig=0,this.dataConfig.linkSupport=this.formSysLogin.value.linkSupport||"",this.dataConfig.isSupport=this.formSysLogin.value.isSupport,this.dataConfig.linkPolicy=this.formSysLogin.value.linkPolicy||"",this.dataConfig.isPolicy=this.formSysLogin.value.isPolicy,this.dataConfig.linkTermsOfUse=this.formSysLogin.value.linkTermsOfUse||"",this.dataConfig.isTermsOfUse=this.formSysLogin.value.isTermsOfUse,this.dataConfig.linkIntroduce=this.formSysLogin.value.linkIntroduce||"",this.dataConfig.isIntroduce=this.formSysLogin.value.isIntroduce,this.dataConfig.isDownloadGooglePlay=this.formSysLogin.value.isDownloadGooglePlay,this.dataConfig.isDownloadIOS=this.formSysLogin.value.isDownloadIOS,this.dataConfig.linkDownloadIOS=this.formSysLogin.value.linkDownloadIOS||"",this.dataConfig.linkDownloadAndroid=this.formSysLogin.value.linkDownloadAndroid||"",this.dataConfig.copyrightFooter=this.formSysLogin.value.copyrightFooter||"",this.dataConfig.logoName=this.formSysLogin.value.logoName;const u=JSON.stringify(JSON.stringify(this.dataConfig));this.sysLogin={...this.sysLogin,configLogin:u,name:this.formSysLogin.value.name,description:this.formSysLogin.value.description,copyright:this.formSysLogin.value.copyright,phoneSupportStatus:this.formSysLogin.value.isPhoneSupport?1:0,phoneSupport:this.formSysLogin.value.phoneSupport,emailSupportStatus:this.formSysLogin.value.isEmailSupport?1:0,emailSupport:this.formSysLogin.value.emailSupport,id:this.idSysLogin,languageSysTenant:this.createListLanguage(this.formSysLogin.get("listLanguageSysChoose").value)},this.fileBgRaw.forEach(R=>{i.append("file",R)}),this.fileLogoRaw&&i.append("fileLogo",this.fileLogoRaw[0]),this.fileLogoNavRaw&&i.append("fileLogoNav",this.fileLogoNavRaw[0]),i.append("dataString",JSON.stringify(this.sysLogin)),i.append("serviceName","auth"),this.serviceSys.updateSysLoginNew(i).subscribe(R=>{this.toastService.success("",this._translate.instant("sysconfig.syslogin.message.updateSucess")),this.getInforSysLogin(),this.tempSysLogin={...this.sysLogin},(this.fileLogoNav.length>0||this.formSysLogin.value.copyrightFooter)&&(this.updateLogoAndAppStorage({copyrightFooter:this.formSysLogin.value.copyrightFooter,imageLogoNav:JSON.parse(R.detail).imageLogoNav}),this.helperService.setShareTitleAndLogo({copyrightFooter:this.formSysLogin.value.copyrightFooter,imageLogoNav:JSON.parse(R.detail).imageLogoNav}))})}})}updateLogoAndAppStorage(i){r.VGQ.setTextFooterAndLogo(i)}delFile(i,m,c){"fileBg"===c?this.imageUrl="":"fileLogo"===c&&(this.logoUrl=""),this[c].splice(i,1),this[c+"Raw"].splice(i,1),m&&this.fileDel.push(m)}editFile(i,m){"fileBg"===m?(this.imageUrl="",this.delFile(0,this.fileBg[0].fileId,"fileBg"),setTimeout(()=>
1{this.inputFileSystemBackgroundEle&&this.inputFileSystemBackgroundEle.nativeElement.click()})):"fileLogo"===m?(this.logoUrl="",this.delFile(0,this.fileLogo[0].fileId,"fileLogo"),setTimeout(()=>{this.inputFileSystemLogoEle&&this.inputFileSystemLogoEle.nativeElement.click()})):"fileLogoNav"===m&&(this.delFile(0,this.fileLogoNav[0].fileId,"fileLogoNav"),setTimeout(()=>{this.inputFileSystemLogoNavEle&&this.inputFileSystemLogoNavEle.nativeElement.click()})),this[m].splice(0,1),this[m+"Raw"].splice(0,1),i&&this.fileDel.push(i)}resetToDefault(){this.serviceDialog.confirmMessage("B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n thi\u1ebft l\u1eadp c\xe0i \u0111\u1eb7t c\u1ea5u h\xecnh hi\u1ec3n th\u1ecb v\u1ec1 gi\xe1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh c\u1ee7a h\u1ec7 th\u1ed1ng ?",void 0,void 0,{},"common.confirm-info.sys-login.reset-login-page",{text:"common.action.save",icon:"SaveOutline:vts"}).afterClose.subscribe(m=>{if(m==r.h87.RESULT_CLOSE_DIALOG.CONFIRM){this.dataConfig.linkSupport=this.defaultSysLogin.dataConfig.linkSupport,this.dataConfig.isSupport=this.defaultSysLogin.dataConfig.isSupport,this.dataConfig.linkPolicy=this.defaultSysLogin.dataConfig.linkPolicy,this.dataConfig.isPolicy=this.defaultSysLogin.dataConfig.isPolicy,this.dataConfig.linkTermsOfUse=this.defaultSysLogin.dataConfig.linkTermsOfUse,this.dataConfig.isTermsOfUse=this.defaultSysLogin.dataConfig.isTermsOfUse,this.dataConfig.linkIntroduce=this.defaultSysLogin.dataConfig.linkIntroduce,this.dataConfig.isIntroduce=this.defaultSysLogin.dataConfig.isIntroduce,this.dataConfig.isDownloadGooglePlay=this.defaultSysLogin.dataConfig.isDownloadGooglePlay,this.dataConfig.isDownloadIOS=this.defaultSysLogin.dataConfig.isDownloadIOS,this.dataConfig.linkDownloadIOS=this.defaultSysLogin.dataConfig.linkDownloadIOS,this.dataConfig.linkDownloadAndroid=this.defaultSysLogin.dataConfig.linkDownloadAndroid,this.dataConfig.imageBg=this.defaultSysLogin.dataConfig.imageBg,this.dataConfig.imageLg=this.defaultSysLogin.dataConfig.imageLg,this.dataConfig.imageLgIcon=this.defaultSysLogin.dataConfig.imageLgIcon,this.dataConfig.defaultConfig=this.defaultSysLogin.dataConfig.defaultConfig,this.dataConfig.copyrightFooter=this.defaultSysLogin.dataConfig.copyrightFooter,this.dataConfig.logoName=this.defaultSysLogin.dataConfig.logoName;const c=JSON.stringify(JSON.stringify(this.dataConfig)),u={...this.sysLogin};u.configLogin=c,u.name=this.defaultSysLogin.dataConfig.name,u.description=this.defaultSysLogin.dataConfig.description,u.copyright=this.defaultSysLogin.dataConfig.copyright,u.id=this.defaultSysLogin.id,u.status=this.defaultSysLogin.status,u.languageSysTenant=this.defaultSysLogin.languageSysTenant,u.phoneSupportStatus=this.defaultSysLogin.phoneSupportStatus,u.phoneSupport=this.defaultSysLogin.phoneSupport,u.emailSupportStatus=this.defaultSysLogin.emailSupportStatus,u.emailSupport=this.defaultSysLogin.emailSupport,this.sysLogin={...u},this.tempSysLogin={...u};const R=new FormData;this.fileBgRaw.forEach(E=>{R.append("file",E)}),this.fileLogoRaw&&R.append("fileLogo",this.fileLogoRaw[0]),this.fileLogoNavRaw&&R.append("fileLogoNav",this.fileLogoNavRaw[0]),R.append("dataString",JSON.stringify(this.sysLogin)),R.append("serviceName","auth"),this.serviceSys.updateSysLoginNew(R).subscribe(E=>{this.toastService.success("",this._translate.instant("sysconfig.syslogin.message.updateSucess")),this.getInforSysLogin(),(this.fileLogoNav.length>0||this.formSysLogin.value.copyrightFooter)&&(this.updateLogoAndAppStorage({copyrightFooter:this.formSysLogin.value.copyrightFooter,imageLogoNav:r.yTI}),this.helperService.setShareTitleAndLogo({copyrightFooter:this.formSysLogin.value.copyrightFooter,imageLogoNav:r.yTI}))},E=>{this.toastService.error("",this._translate.instant("sysconfig.syslogin.message.updateError"))})}})}onClickLabelWithSwitch(i){const m=this.formSysLogin.get(i).value;this.formSysLogin.get(i).setValue(!m)}preventInteraction(){(0,tt.Y)(1e3).pipe((0,Y.Q)(this.destroy$)).subscribe(()=>{if(!document.querySelector(`.${this.preventInteractionCls}`)){const m=document.querySelector(".preview-surface"),c=document.createElement("div");c.classList.add(this.preventInteractionCls),m&&m.appendChild(c)}})}static{this.\u0275fac=function(m){return new(m||a)}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["sys-config-feature-sys-login"]],viewQuery:function(m,c){if
1(1&m&&(e.GBs(I,5),e.GBs(Z,5),e.GBs(P,5),e.GBs(x,5),e.GBs(n.fZ,5)),2&m){let u;e.mGM(u=e.lsd())&&(c.previewContainer=u.first),e.mGM(u=e.lsd())&&(c.inputFileSystemBackgroundEle=u.first),e.mGM(u=e.lsd())&&(c.inputFileSystemLogoEle=u.first),e.mGM(u=e.lsd())&&(c.inputFileSystemLogoNavEle=u.first),e.mGM(u=e.lsd())&&(c.inputs=u)}},decls:182,vars:120,consts:[["langSelect",""],["previewContainer",""],["inputFileSystemBackground",""],["inputFileSystemLogo",""],["inputFileSystemLogoNav",""],["vts-row",""],["vts-col","","vtsSpan","7"],["cdkScrollable","",1,"left-form"],[4,"ngIf"],["vts-form","",3,"vtsLayout","formGroup"],[1,"mg-b-12"],["vtsRequired","",1,"label-form-page"],["formControlName","name",3,"maxlength"],[3,"control"],["formControlName","description",3,"maxlength"],["formControlName","logoName",3,"maxlength"],["formControlName","listLanguageSysChoose","nzResizeObserver","","vtsMode","multiple","vtsSize","md","vtsShowSearch","","vtsAllowClear","",3,"ngModelChange","nzResizeObserve","vtsMaxTagCount"],[3,"vtsValue","vtsLabel",4,"ngFor","ngForOf"],["class","mg-b-12",4,"ngIf"],["formControlName","copyright","maxlength","255"],["formControlName","copyrightFooter","maxlength","255"],[1,"note-upload","small-title-ui"],[1,"row"],["class","el-upload--picture-card",4,"ngFor","ngForOf"],["class","input-file",4,"ngIf"],["class","el-upload--picture-card","style","position: relative;",4,"ngFor","ngForOf"],["class","el-upload--picture-card-logo","style","position: relative;",4,"ngFor","ngForOf"],["vts-col","","vtsFlex","12"],[1,"label-form-page","label-header-action",3,"click"],["vts-col","","vtsFlex","1",1,"switch-container"],["vtsSize","sm","formControlName","isPhoneSupport","vts","",3,"ngModelChange","ngModel","vts-tooltip"],["formControlName","phoneSupport","maxlength","12"],["vtsSize","sm","formControlName","isEmailSupport","vts","",3,"ngModelChange","ngModel","vts-tooltip"],["formControlName","emailSupport","maxlength","50"],["vtsSize","sm","formControlName","isSupport","vts","",3,"ngModelChange","ngModel","vts-tooltip"],["formControlName","linkSupport","maxlength","255"],["vtsSize","sm","formControlName","isPolicy",3,"ngModelChange","ngModel","vts-tooltip"],["formControlName","linkPolicy","maxlength","255"],["vtsSize","sm","formControlName","isTermsOfUse",3,"ngModelChange","ngModel","vts-tooltip"],["formControlName","linkTermsOfUse","maxlength","255"],["vtsSize","sm","formControlName","isIntroduce",3,"ngModelChange","ngModel","vts-tooltip"],["formControlName","linkIntroduce","maxlength","255"],["vtsSize","sm","formControlName","isDownloadIOS",3,"ngModelChange","ngModel","vts-tooltip"],["formControlName","linkDownloadIOS","maxlength","255"],["vtsSize","sm","formControlName","isDownloadGooglePlay",3,"ngModelChange","ngModel","vts-tooltip"],["formControlName","linkDownloadAndroid","maxlength","255"],[1,"sys-login-footer","panel-footer","vt-area-button"],["vtsJustify","end","vtsDirection","horizontal","vts-row","","vtsSpan","24",1,"footer-btns"],["vtsSize","sm","vts-button","",1,"reset-btn",3,"click"],["vts-icon","","vtsType","SettingsBackupRestoreOutline:vts",2,"padding-top","2px"],["vts-col","","vtsSpan","17","nzResizeObserver","",1,"preview-container",3,"nzResizeObserve"],[1,"preview-surface"],[3,"renderContent","styleFromSysLogin","fixedWidthPreviewSyslogin","dataRes"],[3,"noRedirectHomPage"],["vts-icon","","vtsType","Info:flatColor"],[3,"vtsValue","vtsLabel"],["formControlName","defaultLanguageSys","vtsShowSearch",""],[1,"el-upload--picture-card"],[1,"el-upload--picture-card",3,"src"],["vtsSize","8",1,"actions-upload"],["vts-icon","","vtsType","Edit","class","cursor-pointer",3,"click",4,"vtsSpaceItem"],["vts-icon","","vtsType","Delete","class","cursor-pointer",3,"click",4,"vtsSpaceItem"],[1,"backdrop"],["vts-icon","","vtsType","Edit",1,"cursor-pointer",3,"click"],["vts-icon","","vtsType","Delete",1,"cursor-pointer",3,"click"],[1,"input-file"],["draggable","true"],["type","file","name","fileImage","accept",".png, .jpg, .jpeg","id","fileImage",2,"display","none",3,"change"],["for","fileImage","id","assetImage",1,"input-label"],["vts-icon","","vtsType","CloudUploadOutline:vts",1,"icon-upload"],[1,"attach-text"],[1,"el-upload--picture-card",2,"position","relative"],["type","file","name","fileLogo","accept",".png, .jpg, .jpeg","id","fileLogo",2,"display","none",3,"change"],["for","fileLogo","id","assetImage",1,"input-label"],[1,"el-upload--picture-card-logo",2,"position","relative"],[1,"el-upload--picture-card-logo",3,"src"],["type","file","name","fileLogoNav","accept",".png, .jpg, .jpeg","id","fileLogoNav",2,"display","none",3,"change"],["for","fileLogoNav","id","assetImage",1,"input-label"],["vtsType","primary","vtsSize","sm","vts-button","",3,"click"],["vts-icon","","vtsType","SaveOutline:vts"]],template:function(m,c){if
1(1&m){const u=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"vts-card",7),e.DNE(3,M,4,3,"p",8),e.j41(4,"form",9)(5,"vts-form-item",10)(6,"vts-form-label",11),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"vts-form-control"),e.nrm(10,"authentication-ui-app-input",12),e.k0s(),e.nrm(11,"authentication-ui-control-messages",13),e.k0s(),e.j41(12,"vts-form-item",10)(13,"vts-form-label",11),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"vts-form-control"),e.nrm(17,"authentication-ui-app-input",14),e.k0s(),e.nrm(18,"authentication-ui-control-messages",13),e.k0s(),e.j41(19,"vts-form-item",10)(20,"vts-form-label",11),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.j41(23,"vts-form-control"),e.nrm(24,"authentication-ui-app-input",15),e.k0s(),e.nrm(25,"authentication-ui-control-messages",13),e.k0s(),e.j41(26,"vts-form-item",10)(27,"vts-form-label",11),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"vts-form-control")(31,"vts-select",16,0),e.bIt("ngModelChange",function(E){return e.eBV(u),e.Njj(c.generateListLanguage(E))})("nzResizeObserve",function(){e.eBV(u);const E=e.sdS(32);return e.Njj(c.changeSizeSelect(E))}),e.DNE(33,N,1,2,"vts-option",17),e.k0s()(),e.nrm(34,"authentication-ui-control-messages",13),e.k0s(),e.DNE(35,G,8,5,"vts-form-item",18),e.j41(36,"vts-form-item",10)(37,"vts-form-label",11),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.j41(40,"vts-form-control"),e.nrm(41,"authentication-ui-app-input",19),e.k0s(),e.nrm(42,"authentication-ui-control-messages",13),e.k0s(),e.j41(43,"vts-form-item",10)(44,"vts-form-label",11),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.j41(47,"vts-form-control"),e.nrm(48,"authentication-ui-app-input",20),e.k0s(),e.nrm(49,"authentication-ui-control-messages",13),e.k0s(),e.j41(50,"vts-form-item",10)(51,"vts-form-label",11),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.j41(54,"vts-form-label",21),e.EFF(55),e.nI1(56,"translate"),e.k0s(),e.j41(57,"div",22),e.DNE(58,v,6,1,"div",23),e.k0s(),e.DNE(59,f,9,3,"div",24),e.k0s(),e.j41(60,"vts-form-item",10)(61,"vts-form-label",11),e.EFF(62),e.nI1(63,"translate"),e.k0s(),e.j41(64,"vts-form-label",21),e.EFF(65),e.nI1(66,"translate"),e.k0s(),e.j41(67,"div",22),e.DNE(68,L,6,1,"div",25),e.k0s(),e.DNE(69,A,9,3,"div",24),e.k0s(),e.j41(70,"vts-form-item",10)(71,"vts-form-label",11),e.EFF(72),e.nI1(73,"translate"),e.k0s(),e.j41(74,"vts-form-label",21),e.EFF(75),e.nI1(76,"translate"),e.k0s(),e.j41(77,"div",22),e.DNE(78,lt,6,1,"div",26),e.k0s(),e.DNE(79,ct,9,3,"div",24),e.k0s(),e.j41(80,"vts-form-item",10)(81,"div",5)(82,"div",27)(83,"vts-form-label",28),e.bIt("click",function(){return e.eBV(u),e.Njj(c.onClickLabelWithSwitch("isPhoneSupport"))}),e.EFF(84),e.nI1(85,"translate"),e.k0s()(),e.j41(86,"div",29)(87,"vts-switch",30),e.mxI("ngModelChange",function(E){return e.eBV(u),e.DH7(c.isPhoneSupport,E)||(c.isPhoneSupport=E),e.Njj(E)}),e.k0s()()(),e.j41(88,"vts-form-control"),e.nrm(89,"authentication-ui-app-input",31)(90,"authentication-ui-control-messages",13),e.k0s()(),e.j41(91,"vts-form-item",10)(92,"div",5)(93,"div",27)(94,"vts-form-label",28),e.bIt("click",function(){return e.eBV(u),e.Njj(c.onClickLabelWithSwitch("isEmailSupport"))}),e.EFF(95),e.nI1(96,"translate"),e.k0s()(),e.j41(97,"div",29)(98,"vts-switch",32),e.mxI("ngModelChange",function(E){return e.eBV(u),e.DH7(c.isEmailSupport,E)||(c.isEmailSupport=E),e.Njj(E)}),e.k0s()()(),e.j41(99,"vts-form-control"),e.nrm(100,"authentication-ui-app-input",33)(101,"authentication-ui-control-messages",13),e.k0s()(),e.j41(102,"vts-form-item",10)(103,"div",5)(104,"div",27)(105,"vts-form-label",28),e.bIt("click",function(){return e.eBV(u),e.Njj(c.onClickLabelWithSwitch("isSupport"))}),e.EFF(106),e.nI1(107,"translate"),e.k0s()(),e.j41(108,"div",29)(109,"vts-switch",34),e.mxI("ngModelChange",function(E){return e.eBV(u),e.DH7(c.isSupport,E)||(c.isSupport=E),e.Njj(E)}),e.k0s()()(),e.j41(110,"vts-form-control"),e.nrm(111,"authentication-ui-app-input",35)(112,"authentication-ui-control-messages",13),e.k0s()(),e.j41(113,"vts-form-item",10)(114,"div",5)(115,"div",27)(116,"vts-form-label",28),e.bIt("click",function(){return e.eBV(u),e.Njj(c.onClickLabelWithSwitch("isPolicy"))}),e.EFF(117),e.nI1(118,"translate"),e.k0s()(),e.j41(119,"div",29)(120,"vts-switch",36),e.mxI("ngModelChange",function(E){return e.eBV(u),e.DH7(c.isPolicy,E)||
1(c.isPolicy=E),e.Njj(E)}),e.k0s()()(),e.j41(121,"vts-form-control"),e.nrm(122,"authentication-ui-app-input",37)(123,"authentication-ui-control-messages",13),e.k0s()(),e.j41(124,"vts-form-item",10)(125,"div",5)(126,"div",27)(127,"vts-form-label",28),e.bIt("click",function(){return e.eBV(u),e.Njj(c.onClickLabelWithSwitch("isTermsOfUse"))}),e.EFF(128),e.nI1(129,"translate"),e.k0s()(),e.j41(130,"div",29)(131,"vts-switch",38),e.mxI("ngModelChange",function(E){return e.eBV(u),e.DH7(c.isTermsOfUse,E)||(c.isTermsOfUse=E),e.Njj(E)}),e.k0s()()(),e.j41(132,"vts-form-control"),e.nrm(133,"authentication-ui-app-input",39)(134,"authentication-ui-control-messages",13),e.k0s()(),e.j41(135,"vts-form-item",10)(136,"div",5)(137,"div",27)(138,"vts-form-label",28),e.bIt("click",function(){return e.eBV(u),e.Njj(c.onClickLabelWithSwitch("isIntroduce"))}),e.EFF(139),e.nI1(140,"translate"),e.k0s()(),e.j41(141,"div",29)(142,"vts-switch",40),e.mxI("ngModelChange",function(E){return e.eBV(u),e.DH7(c.isIntroduce,E)||(c.isIntroduce=E),e.Njj(E)}),e.k0s()()(),e.j41(143,"vts-form-control"),e.nrm(144,"authentication-ui-app-input",41)(145,"authentication-ui-control-messages",13),e.k0s()(),e.j41(146,"vts-form-item",10)(147,"div",5)(148,"div",27)(149,"vts-form-label",28),e.bIt("click",function(){return e.eBV(u),e.Njj(c.onClickLabelWithSwitch("isDownloadIOS"))}),e.EFF(150),e.nI1(151,"translate"),e.k0s()(),e.j41(152,"div",29)(153,"vts-switch",42),e.mxI("ngModelChange",function(E){return e.eBV(u),e.DH7(c.isDownloadIOS,E)||(c.isDownloadIOS=E),e.Njj(E)}),e.k0s()()(),e.j41(154,"vts-form-control"),e.nrm(155,"authentication-ui-app-input",43)(156,"authentication-ui-control-messages",13),e.k0s()(),e.j41(157,"vts-form-item",10)(158,"div",5)(159,"div",27)(160,"vts-form-label",28),e.bIt("click",function(){return e.eBV(u),e.Njj(c.onClickLabelWithSwitch("isDownloadGooglePlay"))}),e.EFF(161),e.nI1(162,"translate"),e.k0s()(),e.j41(163,"div",29)(164,"vts-switch",44),e.mxI("ngModelChange",function(E){return e.eBV(u),e.DH7(c.isDownloadGooglePlay,E)||(c.isDownloadGooglePlay=E),e.Njj(E)}),e.k0s()()(),e.j41(165,"vts-form-control"),e.nrm(166,"authentication-ui-app-input",45)(167,"authentication-ui-control-messages",13),e.k0s()()()(),e.j41(168,"div",46)(169,"vts-form-control")(170,"div",47)(171,"button",48),e.bIt("click",function(){return e.eBV(u),e.Njj(c.resetToDefault())}),e.nrm(172,"i",49),e.EFF(173),e.nI1(174,"translate"),e.k0s(),e.DNE(175,ut,5,3,"ng-container",8),e.k0s()()()(),e.j41(176,"div",50,1),e.bIt("nzResizeObserve",function(E){return e.eBV(u),e.Njj(c.resizePreview(E))}),e.j41(178,"div",51)(179,"layout-feature-authentication-layout",52),e.nrm(180,"authentication-feature-login",53),e.k0s(),e.nrm(181,"div"),e.k0s()()()}if(2&m){let u;e.R7$(3),e.Y8G("ngIf",1==c.defaultConfig),e.R7$(),e.Y8G("vtsLayout","vertical")("formGroup",c.formSysLogin),e.R7$(3),e.JRh(e.bMT(8,78,"sysconfig.syslogin.nameSystem")),e.R7$(3),e.Y8G("maxlength",255),e.R7$(),e.Y8G("control",c.f.name),e.R7$(3),e.JRh(e.bMT(15,80,"sysconfig.syslogin.descSystem")),e.R7$(3),e.Y8G("maxlength",500),e.R7$(),e.Y8G("control",c.f.description),e.R7$(3),e.JRh(e.bMT(22,82,"sysconfig.syslogin.logoSystemName")),e.R7$(3),e.Y8G("maxlength",500),e.R7$(),e.Y8G("control",c.f.logoName),e.R7$(3),e.JRh(e.bMT(29,84,"sysconfig.syslogin.systemLanguage")),e.R7$(3),e.Y8G("vtsMaxTagCount",4),e.R7$(2),e.Y8G("ngForOf",c.listOfOptionLangs),e.R7$(),e.Y8G("control",c.f.listLanguageSysChoose),e.R7$(),e.Y8G("ngIf",(null==(u=c.formSysLogin.get("listLanguageSysChoose"))?null:u.value)&&(null==(u=c.formSysLogin.get("listLanguageSysChoose"))?null:u.value.length)),e.R7$(3),e.JRh(e.bMT(39,86,"sysconfig.syslogin.copyrightSys")),e.R7$(4),e.Y8G("control",c.f.copyright),e.R7$(3),e.JRh(e.bMT(46,88,"sysconfig.syslogin.copyrightFooter")),e.R7$(4),e.Y8G("control",c.f.copyrightFooter),e.R7$(3),e.JRh(e.bMT(53,90,"sysconfig.syslogin.backgroundSys")),e.R7$(3),e.JRh(e.bMT(56,92,"sysconfig.syslogin.uploadNote")),e.R7$(3),e.Y8G("ngForOf",c.fileBg),e.R7$(),e.Y8G("ngIf",c.fileBg.length<1),e.R7$(3),e.JRh(e.bMT(63,94,"sysconfig.syslogin.logoSys")),e.R7$(3),e.JRh(e.bMT(66,96,"sysconfig.syslogin.uploadNote")),e.R7$(3),e.Y8G("ngForOf",c.fileLogo),e.R7$(),e.Y8G("ngIf",c.fileLogo.length<1),e.R7$(3),e.JRh(e.bMT(73,98,"sysconfig.syslogin.logoSysNavMenu")),e.R7$(3),e.JRh(e.bMT(76,100,"sysconfig.syslogin.uploadNote")),e.R7$(3),e.Y8G("ngForOf",c.fileLogoNav),e.R7$(),e.Y8G("ngIf",c.fileLogoNav.length<1),e.R7$(5),e.JRh(e.bMT(85,102,"sysconfig.syslogin.phoneSupport")),e.R7$(3),e.R50("ngModel",c.isPhoneSupport),e.Y8G("vts-tooltip",c.isPhoneSupport?c.hideLabel:c.unhideLabel),e.R7$(3),e.Y8G("control",c.f.phoneSupport),e.R7$(5),e.JRh(e.bMT(96,104,"sysconfig.syslogin.emailSupport")),e.R7$(3),e.R50("ngModel",c.isEmailSupport),e.Y8G("vts-tooltip",c.isEmailSupport?c.hideLabel:c.unhideLabel),e.R7$(3),e.Y8G("control",c.f.emailSupport),e.R7$(5),e.JRh(e.bMT(107,106,"sysconfig.syslogin.linkSupport")),e.R7$(3),e.R50("ngModel",c.isSupport),e.Y8G("vts-tooltip",c.isSupport?c.hideLabel:c.unhideLabel),e.R7$(3),e.Y8G("control",c.f.linkSupport),e.R7$(5),e.JRh(e.bMT(118,108,"sysconfig.syslogin.linkPolicy")),e.R7$(3),e.R50("ngModel",c.isPolicy),e.Y8G("vts-tooltip",c.isPolicy?c.hideLabel:c.unhideLabel),e.R7$(3),e.Y8G("control",c.f.linkPolicy),e.R7$(5),e.JRh(e.bMT(129,110,"sysconfig.syslogin.linkTermsOfUse")),e.R7$(3),e.R50("ngModel",c.isTermsOfUse),e.Y8G("vts-tooltip",c.isTermsOfUse?c.hideLabel:c.unhideLabel),e.R7$(3),e.Y8G("control",c.f.linkTermsOfUse),e.R7$(5),e.JRh(e.bMT(140,112,"sysconfig.syslogin.linkIntroduce")),e.R7$(3),e.R50("ngModel",c.isIntroduce),e.Y8G("vts-tooltip",c.isIntroduce?c.hideLabel:c.unhideLabel),e.R7$(3),e.Y8G("control",c.f.linkIntroduce),e.R7$(5),e.JRh(e.bMT(151,114,"sysconfig.syslogin.linkDownloadIOS")),e.R7$(3),e.R50("ngModel",c.isDownloadIOS),e.Y8G("vts-tooltip",c.isDownloadIOS?c.hideLabel:c.unhideLabel),e.R7$(3),e.Y8G("control",c.f.linkDownloadIOS),e.R7$(5),e.JRh(e.bMT(162,116,"sysconfig.syslogin.linkDownloadAndroid")),e.R7$(3),e.R50("ngModel",c.isDownloadGooglePlay),e.Y8G("vts-tooltip",c.isDownloadGooglePlay?c.hideLabel:c.unhideLabel),e.R7$(3),e.Y8G("control",c.f.linkDownloadAndroid),e.R7$(6),e.JRh(e.bMT(174,118,"sysconfig.sysEnv.sysAuthen.actions.resetDefault")),e.R7$(2),e.Y8G("ngIf",c.showUpdateLoginConfig),e.R7$(3),e.xc7("width",c.previewSurfaceWidth,"px")("height",c.previewSurfaceHeight,"px"),e.R7$(),e.Y8G("renderContent",!0)("styleFromSysLogin",c.authLayoutStyle)("fixedWidthPreviewSyslogin",!0)("dataRes",c.tempSysLogin),e.R7$(),e.Y8G("noRedirectHomPage",!0),e.R7$(),e.HbH(c.preventInteractionCls)}},dependencies:[F.MD,F.Sq,F.bT,$.mi,$.tH,$.BE,y.h,y.D9,U.SX,U.dF,U.Qp,U.rA,U.Yc,z.u,z.n,j.rZ,K.X6,O.G,O.R$,at.T,D.N,n.iO,b.Cn,b.F_,k.X1,k.qT,k.BC,k.cb,k.tU,k.j4,k.JD,s.VW,w.fX,o.dA,o.qb,t.mn,t.Zi,t.Uk,Q.u,Q.mw,Q.B1,k.YN,st.XI,J.SE,ot.E9,ot.uv,et.BL,et.uC,it.ib,it.ru,nt.AuthenticationLayoutComponent,nt.LoginComponent],styles:['.login-container[_ngcontent-%COMP%]{background:url(/assets/template/images/background_dats.png);background-repeat:no-repeat;background-size:cover;width:100%;aspect-ratio:16/9}.reset-btn[_ngcontent-%COMP%]{border-radius:6px;border-color:#737373;color:#737373}.footer-btns[_ngcontent-%COMP%]{gap:8px}.logo-container[_ngcontent-%COMP%]{display:flex;color:#cb002b;align-items:center;margin-top:25px;margin-left:25px}.logo-container[_ngcontent-%COMP%] .logo-img[_ngcontent-%COMP%]{width:60px;height:60px}.logo-container[_ngcontent-%COMP%] .logo-title[_ngcontent-%COMP%]{font-size:16px}.authentication-layout[_ngcontent-%COMP%]{width:100%;transition:all .3 ease-out;overflow:auto;padding:0 6% 24px;min-height:calc(100% - 156px)}.authentication-layout-panel[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:336px;margin:auto;height:100%}.authentication-layout-panel-introduction[_ngcontent-%COMP%]{position:relative;display:flex;flex:0 0 auto;flex-direction:column;padding:24px}.authentication-layout-panel-introduction[_ngcontent-%COMP%]:after{content:"";position:absolute;right:0;top:24px;bottom:24px;width:1px;background:#e9e9e9}.authentication-layout-panel-introduction[_ngcontent-%COMP%] .site-name[_ng
1content-%COMP%]{margin-bottom:1em}.authentication-layout-panel-introduction[_ngcontent-%COMP%] .illustration[_ngcontent-%COMP%]{background:url(/assets/template/images/illustration.png);background-repeat:no-repeat;height:180px;width:auto}.authentication-layout-panel-introduction[_ngcontent-%COMP%] .copyright[_ngcontent-%COMP%]{margin-top:auto;text-align:center}.authentication-layout-panel-outlet[_ngcontent-%COMP%]{flex:1 1 auto;padding:36px;box-shadow:8px 12px 6px #00000026;border-radius:9px;background:#fff;display:flex;min-width:330px;max-height:300px;height:100%}.authentication-layout[_ngcontent-%COMP%] .title-login[_ngcontent-%COMP%]{padding:6% 15px}.authentication-layout[_ngcontent-%COMP%] .title-login[_ngcontent-%COMP%] .text-login[_ngcontent-%COMP%]{font-size:48px;color:#cb002b;font-weight:300;margin-bottom:15.6px;line-height:66px}.authentication-layout[_ngcontent-%COMP%] .title-login-main[_ngcontent-%COMP%]{width:75%;height:fit-content}.authentication-layout[_ngcontent-%COMP%] .title-login-main[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:19.2px;color:#737373}.authentication-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.authentication-form-title[_ngcontent-%COMP%]{display:flex}
1.authentication-form-title[_ngcontent-%COMP%] .site-name[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:14.4px}.authentication-form-title[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-left:auto;margin-top:4.2px}.authentication-form-title[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .vi[_ngcontent-%COMP%], .authentication-form-title[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .en[_ngcontent-%COMP%]{display:flex;height:21.6px;align-items:center;cursor:pointer}.authentication-form-title[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .vi[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], .authentication-form-title[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .en[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{line-height:1;padding:1px}.authentication-form-title[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .vi[_ngcontent-%COMP%]:hover > svg[_ngcontent-%COMP%], .authentication-form-title[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .vi.active[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%], .authentication-form-title[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .en[_ngcontent-%COMP%]:hover > svg[_ngcontent-%COMP%], .authentication-form-title[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .en.active[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{border-radius:50%;border:1px solid #ee0033;background:#ffd8e0}.authentication-form[_ngcontent-%COMP%] .authentication-form-content[_ngcontent-%COMP%]{margin-top:9.6px}.authentication-form.content-margin[_ngcontent-%COMP%] .authentication-form-content[_ngcontent-%COMP%]{margin-top:43.2px}.authentication-form-footer[_ngcontent-%COMP%]{margin-top:auto;color:#73777a;text-align:center;padding-top:15px}.authentication-form-footer[_ngcontent-%COMP%] .authentication-form-panel-footer[_ngcontent-%COMP%]{border-top:1px solid #d1d1d1;padding-top:10px;color:#44494d;display:flex;justify-content:center;flex-direction:column;gap:4px}.authentication-form-footer[_ngcontent-%COMP%] .authentication-form-panel-footer[_ngcontent-%COMP%] .info-support-label[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;font-size:9.6px;font-weight:500}.authentication-form-footer[_ngcontent-%COMP%] .authentication-form-panel-footer[_ngcontent-%COMP%] .box-panel-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;font-size:9.6px}.authentication-form-footer[_ngcontent-%COMP%] .authentication-form-panel-footer[_ngcontent-%COMP%] .box-panel-footer[_ngcontent-%COMP%] .footer-label-support[_ngcontent-%COMP%]{padding-left:2px}.authentication-form-footer[_ngcontent-%COMP%] .authentication-form-panel-footer[_ngcontent-%COMP%] .box-panel-footer-combine[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:12px}.authentication-form-footer[_ngcontent-%COMP%] .authentication-form-panel-footer[_ngcontent-%COMP%] .box-panel-footer-combine-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.authentication-form-footer[_ngcontent-%COMP%] .authentication-form-panel-footer[_ngcontent-%COMP%] .box-panel-footer-combine-item[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{scale:.6}.authentication-form-footer[_ngcontent-%COMP%] .authentication-form-panel-footer[_ngcontent-%COMP%] .footer-label-support[_ngcontent-%COMP%]{color:#e03;font-size:9.6px}div.login_com[_ngcontent-%COMP%]{display:block;width:100%}div.login_com[_ngcontent-%COMP%] .vts-form-item[_ngcontent-%COMP%]{margin-bottom:19.2px}div.login_com[_ngcontent-%COMP%] .vts-form-item-control[_ngcontent-%COMP%], div.login_com[_ngcontent-%COMP%] .app-input[_ngcontent-%COMP%]{height:21.6px}div.login_com[_ngcontent-%COMP%] .vts-form-md[_ngcontent-%COMP%] .vts-form-item[_ngcontent-%COMP%], div.login_com[_ngcontent-%COMP%] .vts-typo-type-link[_ngcontent-%COMP%], div.login_com[_ngcontent-%COMP%] .vts-typo-type-sub2[_ngcontent-%COMP%], div.login_com[_ngcontent-%COMP%] .vts-checkbox-wrapper[_ngcontent-%COMP%], div.login_com[_ngcontent-%COMP%] .vts-btn-sm[_ngcontent-%COMP%], div.login_com[_ngcontent-%COMP%] .vts-btn-sm[_ngcontent-%COMP%] .vtsicon[_ngcontent-%COMP%], div.login_com[_ngcontent-%COMP%] .vts-form-item-label[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{font-size:9.6px}div.login_com[_ngcontent-%COMP%] .vts-input-affix-wrapper, div.login_com[_ngcontent-%COMP%] .vts-input{font-size:9.6px}div.login_com[_ngcontent-%COMP%] .vts-btn-sm[_ngcontent-%COMP%]{height:21.6px}div.login_com[_ngcontent-%COMP%] .btn_action[_ngcontent-%COMP%]{margin-bottom:0;margin-top:10px}div.login_com[_ngcontent-%COMP%] .vts-form-vertical.vts-form-md[_ngcontent-%COMP%] .vts-form-item-label[_ngcontent-%COMP%]{padding-bottom:1.4px}div.login_com[_ngcontent-%COMP%] .rememberPassword span.vts-checkbox-inner{height:9.6px;width:9.6px}div.login_com[_ngcontent-%COMP%] .rememberPassword span.vts-checkbox-inner:after{top:50%;left:13%;width:5px;height:7px}div.login_com[_ngcontent-%COMP%] .vts-form-md .vts-form-item-control-input{min-height:21.6px}div.login_com[_ngcontent-%COMP%] .vts-form-md .vts-input-affix-wrapper{top:3px;height:21.6px;padding:3px 11px}div.login_com[_ngcontent-%COMP%] .app-input, div.login_com[_ngcontent-%COMP%] .vts-btn-sm[_ngcontent-%COMP%]{border-radius:3.6px!important}.register[_ngcontent-%COMP%]{text-align:center;margin-top:30px}.attach-text[_ngcontent-%COMP%]{color:#ad0025;text-align:left;font-size:14px;line-height:20px;font-weight:600;margin-left:.5rem}.input-label[_ngcontent-%COMP%]{border-radius:3px;border:1px solid #ad0025;display:flex;align-items:center;justify-content:center;padding:.5rem 1rem;max-width:fit-content;z-index:2;cursor:pointer}.el-upload--picture-card[_ngcontent-%COMP%]{border-radius:8px;box-sizing:border-box;width:148px;height:148px;line-height:146px;vertical-align:top;position:relative}.el-upload--picture-card[_ngcontent-%COMP%] .actions-upload[_ngcontent-%COMP%]{font-size:20px;opacity:0;transition:all .3s;position:absolute;top:50%;left:50%;z-index:10;white-space:nowrap;transform:translate(-50%,-50%)}.el-upload--picture-card[_ngcontent-%COMP%]:hover .actions-upload[_ngcontent-%COMP%]{opacity:1}.el-upload--picture-card[_ngcontent-%COMP%]:hover .actions-upload[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff}.el-upload--picture-card[_ngcontent-%COMP%]:hover .actions-upload[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.el-upload--picture-card[_ngcontent-%COMP%]:hover .backdrop[_ngcontent-%COMP%]{opacity:1}.el-upload--picture-card[_ngcontent-%COMP%] .backdrop[_ngcontent-%COMP%]{position:absolute;z-index:1;background-color:#00000080;opacity:0;transition:all .3s;width:100%;height:100%;inset:0 5px 5px 0}.el-upload--picture-card-logo[_ngcontent-%COMP%]{border:1px dashed #c0ccda;border-radius:8px;box-sizing:border-box;width:313px;height:120px;line-height:146px;vertical-align:top;position:relative}.el-upload--picture-card-logo[_ngcontent-%COMP%] .actions-upload[_ngcontent-%COMP%]{font-size:20px;opacity:0;transition:all .3s;position:absolute;top:50%;left:50%;z-index:10;white-space:nowrap;transform:translate(-50%,-50%)}.el-upload--picture-card-logo[_ngcontent-%COMP%]:hover .actions-upload[_ngcontent-%COMP%]{opacity:1}.el-upload--picture-card-logo[_ngcontent-%COMP%]:hover .actions-upload[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff}.el-upload--picture-card-logo[_ngcontent-%COMP%]:hover .actions-upload[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.el-upload--picture-card-logo[_ngcontent-%COMP%]:hover .backdrop[_ngcontent-%COMP%]{opacity:1}.el-upload--picture-card-logo[_ngcontent-%COMP%] .backdrop[_ngcontent-%COMP%]{position:absolute;z-index:1;background-color:#00000080;opacity:0;transition:all .3s;width:100%;height:100%;inset:0 5px 5px 0}.input-file[_ngcontent-%COMP%] .icon-upload[_ngcontent-%COMP%]{color:#ad0025;font-size:1.5rem;pointer-events:none}.upper-up[_ngcontent-%COMP%]{position:absolute;
1left:50%;top:50%;transform:translate(-50%,-50%);cursor:pointer;color:#fff;font-size:30px;z-index:100}[_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:5px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#a8a7a7}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#555}.left-form[_ngcontent-%COMP%]{overflow-y:auto;max-height:83vh}.left-form[_ngcontent-%COMP%] vts-card-body{padding-bottom:70px;padding-left:12px;padding-right:12px}.left-form[_ngcontent-%COMP%] .switch-container[_ngcontent-%COMP%]{text-align:end}.preview-container[_ngcontent-%COMP%]{background-color:#000;padding:10px;box-sizing:border-box;max-height:83vh;overflow:hidden;position:relative;display:flex;justify-content:center;align-items:flex-start}.preview-container[_ngcontent-%COMP%] .preview-surface[_ngcontent-%COMP%]{position:relative;overflow:hidden;flex:0 0 auto}.preview-container[_ngcontent-%COMP%] .preview-surface[_ngcontent-%COMP%] layout-feature-authentication-layout[_ngcontent-%COMP%]{display:block;width:1600px;height:900px}.preview-container[_ngcontent-%COMP%] .preview-content-prevent[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;top:0;left:0;z-index:1}.copyright[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{font-size:12px}.sys-login-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;border-bottom-left-radius:8px;border-bottom-right-radius:8px;border-top:1px solid rgba(0,0,0,.1)}button[_ngcontent-%COMP%]{border-radius:6px}.guide[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;font-size:18px;text-align:center;gap:30px}.guide[_ngcontent-%COMP%] .download[_ngcontent-%COMP%]{margin:0 30px}.guide[_ngcontent-%COMP%] .document[_ngcontent-%COMP%]{margin-bottom:30px}.vts-tabs-nav-list[_ngcontent-%COMP%] .vts-tabs-tab{font-size:12px}.copyright[_ngcontent-%COMP%]{display:flex;padding-left:5%}.copyright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin:5px;padding:5px}.copyright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] .vts-typo-type-link[_ngcontent-%COMP%]{color:#000!important}.copyright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] .vts-typo-type-link[_ngcontent-%COMP%]:hover{text-decoration:none}.note-upload[_ngcontent-%COMP%]{font-size:14px;color:#73777a} .label-header-action label:hover{cursor:pointer}']})}}return a})()}}]);
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.