PageSourceSearch

https://dcs.vn/9819.c9738ee3fe69df14.js

js dcs.vn collected 2026-09-24 21:35:50 UTC 17,407 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmyapp=self.webpackChunkmyapp||[]).push([[9819],{19819:(D,d,a)=>{a.r(d),a.d(d,{LoginVneidCallbackComponent:()=>w});var _=a(98231),n=a(23135),f=a(545),C=a(86570),h=a(62794),b=a(37606),m=a(51628),s=a(15385),u=a(21874),P=a(24034),M=a(51996),O=a(62252),g=a(52317),v=a(89261);function y(l,E){if(1&l&&n.nrm(0,"img",3),2&l){const o=n.XpG();n.Y8G("src",o.loginLogoUrl||"assets/template/images/logo-vptwd.png",n.B4B)}}function k(l,E){1&l&&(n.nrm(0,"vts-spin",11),n.j41(1,"p",12),n.EFF(2,"\u0110ang x\xe1c th\u1ef1c VNeID..."),n.k0s())}let w=(()=>{class l{constructor(o){this.ccudApp=o,this.ccudAuthService=(0,n.WQX)(P.T),this.ccudApplicationService=(0,n.WQX)(M.Bn),this.toast=(0,n.WQX)(h.Mo),this.router=(0,n.WQX)(f.Ix),this.route=(0,n.WQX)(f.nX),this.translate=(0,n.WQX)(m.c$),this.notifyService=(0,n.WQX)(s.JEu),this.userStatusChangeService=(0,n.WQX)(s.$CI),this.serverUrl=(0,n.WQX)(s.UBk),this.ssoConfig=(0,n.WQX)(s.H8t),this.loginConfig=null,this.contactConfig=v.c.contactConfig,this.footerConfig=null,this.isSubmitting=!0,this.destroy$=new O.B}ngOnInit(){this.loadDisplayConfiguration();const o=this.ccudAuthService.consumeVneidPendingApp();this.route.queryParams.pipe((0,g.Q)(this.destroy$)).subscribe(r=>{const t=r.app_url??o.appUrl??void 0,e=r.app_code??o.appCode??void 0,c=this.extractRawQueryParam("code"),i=this.extractRawQueryParam("encrypt_key");if(!c)return void this.handleErrorNavigation();let p=window.location.origin+window.location.pathname;t&&e?(p+="?app_url="+t+"&app_code="+e,this.ccudApplicationService.getOnlyRedirect(e).pipe((0,g.Q)(this.destroy$)).subscribe({next:x=>{x?window.location.href=this.serverUrl.auth+"/v1.0/be/api/public/forward?code="+c+"&encryptKey="+i+"&appUrl="+t+"&clientId="+e:this.handleVNeIDCallback(c,encodeURIComponent(p),i,t,e)},error:x=>{this.handleVNeIDCallback(c,encodeURIComponent(p),i,t,e)}})):this.handleVNeIDCallback(c,encodeURIComponent(p),i,t,e)})}extractRawQueryParam(o){const r=window.location.search,t=r.startsWith("?")?r.slice(1):r,e=`${o}=`,c=t.split("&").find(i=>i.startsWith(e));return c?c.slice(e.length).replace(/%20/g,"+").replace(/%2B/gi,"+").replace(/%2F/gi,"/").replace(/%3D/gi,"="):null}loadDisplayConfiguration(){this.ccudApplicationService.getPublicDisplayConfiguration(this.ccudApp.appCode).pipe((0,g.Q)(this.destroy$)).subscribe({next:o=>{this.loginConfig=this.ccudApplicationService.mergeDisplayConfiguration(s.nig,o?.loginConfig||{}),this.footerConfig={...o?.footerConfig}},error:o=>{console.error("Error loading display configuration:",o)}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}showError(o,r=""){this.toast.error(r,o,{vtsPlacement:"topRight"})}handleVNeIDCallback(o,r,t,e,c){this.ssoConfig?.vneid?.viaGatewayToVneid?this.ccudAuthService.exchangeVNeIDTokenViaGateway(o,t).pipe((0,g.Q)(this.destroy$)).subscribe({next:i=>{i&&i.token?this.handleVNeIDLoginSuccess(i.token,e,c):this.handleErrorNavigation()},error:i=>{console.error("VNeID token exchange error:",i),"invalid.account"==i?.error?.message?this.router.navigate(["/error/unknown"],{queryParams:{title:"B\u1ea0N KH\xd4NG C\xd3 QUY\u1ec0N TRUY C\u1eacP H\u1ec6 TH\u1ed0NG. VUI L\xd2NG LI\xcaN H\u1ec6 QU\u1ea2N TR\u1eca VI\xcaN \u0110\u1ec2 \u0110\u01af\u1ee2C H\u1ed6 TR\u1ee2."}}):this.handleErrorNavigation()}}):this.ccudAuthService.exchangeVNeIDToken(o,r,t).pipe((0,g.Q)(this.destroy$)).subscribe({next:i=>{i&&i.id_token?this.handleVNeIDLoginSuccess(i.id_token,e,c):this.handleErrorNavigation()},error:i=>{console.error("VNeID token exchange error:",i),"invalid.account"==i?.error?.message?this.router.navigate(["/error/unknown"],{queryParams:{title:"B\u1ea0N KH\xd4NG C\xd3 QUY\u1ec0N TRUY C\u1eacP H\u1ec6 TH\u1ed0NG. VUI L\xd2NG LI\xcaN H\u1ec6 QU\u1ea2N TR\u1eca VI\xcaN \u0110\u1ec2 \u0110\u01af\u1ee2C H\u1ed6 TR\u1ee2."}}):this.handleErrorNavigation()}})}handleErrorNavigation(){this.showError(this.translate.instant("authentication.message.ssoLoginFailed")),setTimeout(()=>{this.router.navigate(["/auth/login"],{replaceUrl:!0})},1500)}handleVNeIDLoginSuccess(o,r,t){const e={};if(e.accessToken=o,e.avatar="",e.position="",e.email="",e.fullName="",e.loginName="",e.phoneNumber="",e.loginTime=Date.now(),e.remindChangePassWord=!1,e.userInfo={username:"",userName:"",fullName:"",email:"",ph
1oneNumber:"",imageUrl:"",avatar:"",position:"",roles:[],org:null,orgId:null},s.VGQ.setUserToken(e),this.notifyService&&(this.notifyService.setUserAuth(),this.userStatusChangeService.setUserAuth()),r&&t){const c=e.userInfo?.id?.toString()||"";this.ccudApplicationService.launchApp(t,r,c,"self")}else this.router.navigate(["/"],{replaceUrl:!0})}get loginLogoUrl(){return s.HgN.buildImageUrl(this.loginConfig?.loginLogo,this.serverUrl.file)}static{this.\u0275fac=function(r){return new(r||l)(n.rXU(s.lUk))}}static{this.\u0275cmp=n.VBU({type:l,selectors:[["app-login-vneid-callback"]],features:[n.Jv_([h.Mo])],decls:23,vars:11,consts:[[1,"login-container"],[1,"header"],[1,"flag-placeholder"],["alt","Vietnam Flag",1,"flag",3,"src"],["vts-typo","","vtsType","h1",1,"title"],["vts-typo","","vtsType","subtitle",1,"subtitle"],[1,"login-box"],[1,"card-container",2,"display","flex","flex-direction","column","align-items","center","justify-content","center","padding","48px 24px"],[1,"footer-img"],["aria-label","Th\xf4ng tin h\u1ed7 tr\u1ee3",1,"login-support-info"],["target","_blank",1,"support-guide",3,"href"],["vtsSimple","",2,"margin-bottom","24px"],[1,"login-title",2,"margin-bottom","0"]],template:function(r,t){1&r&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2),n.DNE(3,y,1,1,"img",3),n.k0s(),n.j41(4,"h1",4),n.EFF(5),n.k0s(),n.j41(6,"p",5),n.EFF(7),n.k0s()(),n.j41(8,"div",6)(9,"div",7),n.DNE(10,k,3,0),n.k0s()(),n.j41(11,"div",8)(12,"div",9)(13,"div")(14,"span"),n.EFF(15,"CSKH:"),n.k0s(),n.EFF(16),n.k0s(),n.j41(17,"div")(18,"span"),n.EFF(19,"Email:"),n.k0s(),n.EFF(20),n.k0s(),n.j41(21,"a",10),n.EFF(22," H\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng "),n.k0s()()()()),2&r&&(n.xc7("--background-image",null!=t.loginConfig&&t.loginConfig.loginBackground?"url("+(null==t.loginConfig?null:t.loginConfig.loginBackground)+")":"assets/template/images/banner-login-type9.png"),n.R7$(),n.AVh("is-loading",!t.loginConfig),n.R7$(2),n.vxM(t.loginConfig?3:-1),n.R7$(2),n.JRh((null==t.loginConfig?null:t.loginConfig.loginTitle)||" "),n.R7$(2),n.JRh((null==t.loginConfig?null:t.loginConfig.loginDescription)||" "),n.R7$(3),n.vxM(t.isSubmitting?10:-1),n.R7$(6),n.SpI(" ",t.contactConfig.hotline,""),n.R7$(4),n.SpI(" ",(null==t.footerConfig?null:t.footerConfig.footerEmail)||t.contactConfig.supportEmail,""),n.R7$(),n.Y8G("href",(null==t.footerConfig?null:t.footerConfig.footerLinks[0])||t.contactConfig.usageLink,n.B4B))},dependencies:[_.MD,m.h,C.dA,b.a,u.m,u.z],styles:['@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap";@charset "UTF-8";.login-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:16px;justify-content:center;min-height:100vh;height:100vh;font-family:Inter,sans-serif;color:#333;padding:20px;position:relative;background-image:var(--background-image, url(banner-login-type9.6580cd12c49932d6.png));background-repeat:no-repeat;background-size:cover;background-position:center center;background-color:#fff}.login-container[_ngcontent-%COMP%]   .footer-img[_ngcontent-%COMP%]{background:url(back_gr_1.a394e25ee3aa6b0e.png) center bottom/cover no-repeat;position:fixed;bottom:0;left:0;right:0;height:46vh;z-index:0;display:flex;align-items:flex-end}.login-container[_ngcontent-%COMP%]   .footer-img[_ngcontent-%COMP%]   .login-support-info[_ngcontent-%COMP%]{position:sticky;bottom:5rem;left:5rem;z-index:11;padding:18px 24px;color:#fff;font-size:16px;line-height:1.6;font-weight:500;text-align:left}.login-container[_ngcontent-%COMP%]   .footer-img[_ngcontent-%COMP%]   .login-support-info[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700}.login-container[_ngcontent-%COMP%]   .footer-img[_ngcontent-%COMP%]   .login-support-info[_ngcontent-%COMP%]   .support-guide[_ngcontent-%COMP%]{display:inline-block;margin-top:4px;color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}.login-container[_ngcontent-%COMP%]   .footer-img[_ngcontent-%COMP%]   .login-support-info[_ngcontent-%COMP%]   .support-guide[_ngcontent-%COMP%]:hover{color:#fff;text-decoration-thickness:2px}.vts-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.vts-form-item[_ngcontent-%COMP%], .vts-form-item[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{transition:none!important;animation:none!important}.header[_ngcontent-%COMP%]{text-align:center;margin-bottom:0}.header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#b70100;font-size:28px;font-weight:600;letter-spacing:1px;margin-bottom:0!important;min-height:34px}.header[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{color:#6b7280;min-height:21px;
1display:inline-block}.header[_ngcontent-%COMP%]   .flag-placeholder[_ngcontent-%COMP%]{width:auto;height:82.5px;margin:0 auto 10px;display:flex;align-items:center;justify-content:center}.header[_ngcontent-%COMP%]   .flag-placeholder[_ngcontent-%COMP%]   .flag[_ngcontent-%COMP%]{margin:0}.header.is-loading[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .header.is-loading[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{visibility:hidden}.flag[_ngcontent-%COMP%]{width:auto;height:120px;display:block;margin:0 auto}.login-box[_ngcontent-%COMP%]{width:550px;z-index:10;gap:24px;border-radius:16px;background-color:#fff;box-shadow:0 4px 10px #0000001a}.login-box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:24px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.2;letter-spacing:.5px;text-align:center;color:#111827}.login-box[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{max-width:331px;margin:8px auto 21px;font-family:Inter;font-size:14px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:#06c}.card-container[_ngcontent-%COMP%]{background-color:#fff;padding:1.5rem;border-radius:1rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.card-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.login-title[_ngcontent-%COMP%]{text-align:center;margin-bottom:.5rem;font-size:24px;letter-spacing:.5px;font-weight:600;margin-top:8px}.login-subtitle[_ngcontent-%COMP%]{text-align:center;font-size:clamp(12px,2vw,14px);color:#06c;font-weight:500;line-height:1.5;margin:0}.cards-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.5rem;margin-bottom:16px}.login-card[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;outline:none!important}.login-card[_ngcontent-%COMP%]:focus{outline:2px solid #1677ff;outline-offset:2px}.login-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px)}.login-card[_ngcontent-%COMP%]:hover   .card-content[_ngcontent-%COMP%]{box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.card-content[_ngcontent-%COMP%]{background-color:#fff;border:1px solid var(--border, #e5e7eb);border-radius:.75rem;display:flex;flex-direction:column;gap:.75rem;padding:1.25rem;align-items:center;transition:all .3s ease;height:100%}.card-icon-wrapper[_ngcontent-%COMP%]{width:3.5rem;height:3.5rem;border-radius:.75rem;display:flex;align-items:center;justify-content:center}.card-icon[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain}.card-text[_ngcontent-%COMP%]{text-align:center;font-size:16px;color:#6b7280;font-weight:500;line-height:1.5;margin:0}.terms-text[_ngcontent-%COMP%]{text-align:center;font-size:16px;color:#000;margin:0;line-height:1.6;display:flex;flex-direction:column}.terms-links[_ngcontent-%COMP%]{display:block}.terms-link[_ngcontent-%COMP%]{color:#1677ff;text-decoration:none}.terms-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.back-button-container[_ngcontent-%COMP%]{margin-top:16px}.back-home-button[_ngcontent-%COMP%], .back-button[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center;padding:.625rem 1rem;background-color:#fff;color:#dc2626;border:1px solid #dc2626;border-radius:.375rem;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.back-home-button[_ngcontent-%COMP%]:hover, .back-button[_ngcontent-%COMP%]:hover{background-color:#fef2f2;border-color:#b91c1c;color:#b91c1c}.back-icon[_ngcontent-%COMP%]{width:1rem;height:1rem;flex-shrink:0}.sso-login-wrapper[_ngcontent-%COMP%]{width:100%;padding:1.5rem}  .vts-typo-type-h1{font-family:sans-serif!important;font-size:30px!important}  .vts-typo-type-h2{font-family:sans-serif!important;font-size:36px!important}  vts-form-label{font-size:17px!important;font-family:sans-serif!important}  .errorMessageDiv{display:flex;justify-content:flex-start!important;align-items:flex-start!important}  .vts-checkbox-wrapper{font-size:14px}  .vts-checkbox-wrapper span{color:#333}  .vts-checkbox-checked .vts-checkbox-inner{background-color:var(--secondary-color-1);border-color:var(--primary-color)}  button[vts-button][disabled]{opacity:.6;cursor:not-allowed}  button[vts-button] .vts-btn-loading-icon{margin-right:8px}.wrap-input100[_ngcontent-%COMP%]{position:relative}.wrap-input100[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:22px;height:22px;
1cursor:pointer}.password-options[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.forgot-password[_ngcontent-%COMP%]{display:inline-block;text-align:right;font-size:13px;color:#1677ff;text-decoration:none;margin:0}.forgot-password[_ngcontent-%COMP%]:hover{text-decoration:underline}.support-text[_ngcontent-%COMP%]{margin-top:20px;font-size:14px;color:#333}.support-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#1677ff;text-decoration:none;font-weight:600}.support-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.contact-info[_ngcontent-%COMP%]{margin-top:15px;font-size:13px;color:#666;display:flex;flex-direction:column;gap:5px;text-align:center}.contact-info[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px}.login-button-item[_ngcontent-%COMP%]{margin-top:20px!important}.additional-content[_ngcontent-%COMP%]{position:absolute;bottom:.5rem;right:.5rem;z-index:10}.qr-widget[_ngcontent-%COMP%]{background:#fff;backdrop-filter:blur(10px);border-radius:.75rem;padding:.5rem;box-shadow:0 4px 16px #0000001a;border:1px solid rgba(255,255,255,.2);text-align:center;
1min-width:200px}.qr-title[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600;color:#1f2937;margin:0 0 1rem}.qr-code[_ngcontent-%COMP%]{width:120px;height:120px;margin:0 auto 1rem;display:flex;align-items:center;justify-content:center}.qr-placeholder[_ngcontent-%COMP%]{width:100%;height:100%;background:#f3f4f6;border:2px solid #d1d5db;border-radius:.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;padding:.5rem;font-size:.75rem;color:#6b7280}.qr-hint[_ngcontent-%COMP%]{font-size:.625rem;color:#9ca3af}.qr-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain;border-radius:.5rem}.qr-description[_ngcontent-%COMP%]{font-size:.75rem;color:#6b7280;margin:0;line-height:1.5}.button-widget[_ngcontent-%COMP%]{background:#fff;backdrop-filter:blur(10px);border-radius:.75rem;padding:.5rem;box-shadow:0 4px 16px #0000001a;text-align:center}.button-link[_ngcontent-%COMP%]{display:inline-block;padding:.75rem 1.5rem;background-color:#1677ff;color:#fff;text-decoration:none;border-radius:.5rem;font-weight:500;font-size:14px;transition:background-color .2s}.button-link[_ngcontent-%COMP%]:hover{background-color:#0958d9}.text-widget[_ngcontent-%COMP%]{background:#fff;backdrop-filter:blur(10px);border-radius:.75rem;padding:.5rem;text-align:center;box-shadow:0 4px 16px #0000001a;max-width:300px}.text-title[_ngcontent-%COMP%]{font-size:1rem;font-weight:600;color:#1f2937;margin:0 0 .75rem}.text-content[_ngcontent-%COMP%]{font-size:.875rem;color:#4b5563;line-height:1.6;margin:0}.image-widget[_ngcontent-%COMP%]{background:#fff;backdrop-filter:blur(10px);border-radius:.75rem;padding:.5rem;box-shadow:0 4px 16px #0000001a;text-align:center}.image-link[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem}.content-image[_ngcontent-%COMP%]{max-width:150px;max-height:150px;object-fit:contain;border-radius:.5rem}.image-title[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#1f2937;margin:0}.html-widget[_ngcontent-%COMP%]{background:#fff;backdrop-filter:blur(10px);box-shadow:0 4px 16px #0000001a;max-width:400px;max-height:300px;overflow:auto}.html-widget[_ngcontent-%COMP%]     *{max-width:100%}.sso-loading-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#fff;z-index:9999;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px}.sso-spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #1677ff;border-radius:50%;animation:_ngcontent-%COMP%_sso-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_sso-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 768px){.login-support-info[_ngcontent-%COMP%]{left:20px;right:20px;bottom:20px;min-width:0;padding:12px 16px;font-size:13px;text-align:center}}']})}}return l})()}}]);

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