PageSourceSearch

https://cathay-ins.com.vn/chunk-MPCTT4Q7.js

js cathay-ins.com.vn collected 2026-10-08 10:41:55 UTC 4,542 bytes, 1 lines download raw bytes

1import{a as g}from"./chunk-ODMLTMA6.js";import{d as _}from"./chunk-MHZTQOH5.js";import{a as d}from"./chunk-UWM2BDBG.js";import{b as p}from"./chunk-ISTCOMRU.js";import{a}from"./chunk-R5CO7CGQ.js";import{a as m}from"./chunk-BOE7F6ZT.js";import{x as f}from"./chunk-BX3HVBV7.js";import{e as h,f as u}from"./chunk-CXEGNT5A.js";import{ma as l,ra as o}from"./chunk-LJFKHX2G.js";import{h as c}from"./chunk-YAH3INPE.js";var U=(()=>{class r{constructor(e,i,t,s,n,b,I,T){this.alert=e,this.router=i,this.auth=t,this.apiMember=s,this.cds=n,this.onlineInsuranceService=b,this.storageService=I,this.commonService=T,this.FLang=this.cds.gLang}nextStep(e,i,t,s){switch(this.policyNumber=i,this.prodPolCode=t,this.flightNo=s,this.userInfoTemp=this.cds.userInfoTemp,e){case"register":this.doRegister();break;case"bind":this.doBind();break;case"find":this.doFind();break;default:this.router.navigate(["login"]);break}}doRegister(){this.cds.userInfo.is_set_pw=!1,this.policyNumber?this.prodPolCode&&this.flightNo?this.router.navigate(["login/change-password"],{queryParams:{xtype:"register",pol_no:this.policyNumber,prod_pol_code:this.prodPolCode,flight_no:this.flightNo}}):this.router.navigate(["login/change-password"],{queryParams:{xtype:"register",pol_no:this.policyNumber}}):this.router.navigate(["login/change-password"],{queryParams:{xtype:"register"}})}doBind(){return c(this,null,function*(){let e;if(e={seq_no:0,customer_name:this.userInfoTemp.customer_name.trim().toLocaleUpperCase(),nation_id:this.userInfoTemp.nation_id,certificate_type:this.userInfoTemp.certificate_type,certificate_number_9:this.userInfoTemp.certificate_number_9||"",certificate_number_12:this.userInfoTemp.certificate_number_12||"",birthday:this.userInfoTemp.birthday,email:this.userInfoTemp.email,email_bk:"",mobile:this.userInfoTemp.mobile,sex:this.userInfoTemp.sex,county:this.userInfoTemp.county,province:this.userInfoTemp.province,addr:this.userInfoTemp.addr,is_link_id:"N",fb_account:this.userInfoTemp.fb_account,fb_title:this.userInfoTemp.fb_title,google_account:this.userInfoTemp.google_account,google_title:this.userInfoTemp.google_title,is_link_sns:"Y",is_set_pw:"N",kor:"",is_validate_policy:"N",optional:"0",cus_acc_term:null},this.onlineInsuranceService.isOnlineInsurance()?this.cds.gTCalc_to_save?.saveorder?.recommend_code&&(e.recommend_code=this.cds.gTCalc_to_save.saveorder.recommend_code):this.userInfoTemp.recommend_code&&(e.recommend_code=this.userInfoTemp.recommend_code),(yield this.apiMember.MemberReg(e)).status===200){let t={};if(this.userInfoTemp.google_account||this.userInfoTemp.fb_account){let n={fb_account:this.userInfoTemp.fb_account?this.userInfoTemp.fb_account:"",google_account:this.userInfoTemp.google_account?this.userInfoTemp.google_account:"",name:this.userInfoTemp.google_account?this.userInfoTemp.google_title:this.userInfoTemp.fb_title||""};t=yield this.apiMember.MemberOAUTH(n)}if(yield this.onlineProject_flow(e))return;this.doUserDataClear(),this.doBindDataClear(),this.alert.open({type:"success",title:this.FLang.B055.content.B0011,content:this.FLang.B055.content.B0012,callback:()=>{t.status===200?(this.cds.userInfo=t.data,this.cds.gMobileToken=t.access_token,this.cds?.gPre_url&&this.cds.gPre_url==="/"?this.router.navigate([this.cds.gPre_url],{}):this.router.navigateByUrl("member")):this.router.navigateByUrl("login")}})}else this.router.navigate(["login"])})}onlineProject_flow(e){return c(this,null,function*(){if(this.cds.gTCalc_to_save&&this.cds.gTCalc_to_save.saveorder){let i={};this.userInfoTemp.google_account?i.google_account=this.userInfoTemp.google_account:i.fb_account=this.userInfoTemp.fb_account;let t=yield this.apiMember.MemberOAUTH(i);if(t.status===200){this.cds.gMobileToken=t.access_token,this.cds.userInfo=t.data,this.storageService.setItem(m.mobileToken,t.access_token);let s=a.ObjEncryption(t.data);return this.commonService.SaveUsertoSession(s),this.cds.gTCalc_to_save.userinfo=t.data,this.router.navigate([`/online-insurance/project-trial-${this.cds.gTCalc_to_save.type}/payment`],{queryParams:{action:"pay"}}),this.doUserDataClear(),!0}}})}
1doUserDataClear(){Object.keys(this.cds.userInfoTemp).forEach(e=>{this.cds.userInfoTemp[e]=null})}doBindDataClear(){Object.keys(this.auth.user).forEach(e=>{this.auth.user[e]=null})}doFind(){this.cds.userInfo.is_set_pw=!1,this.router.navigate(["login/change-password"])}static{this.\u0275fac=function(i){return new(i||r)(o(p),o(f),o(_),o(d),o(u),o(g),o(h),o(a))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{U as 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.