PageSourceSearch

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

js cathay-ins.com.vn collected 2026-10-08 10:42:50 UTC 10,041 bytes, 1 lines download raw bytes

1import{e as M}from"./chunk-SLRWEHLR.js";import{p as T}from"./chunk-VZS4INY2.js";import{a as k,b as D,d as A,e as E}from"./chunk-ISTCOMRU.js";import{a as s}from"./chunk-R5CO7CGQ.js";import{a as r}from"./chunk-BOE7F6ZT.js";import{d as _}from"./chunk-BX3HVBV7.js";import{e as v,f as w}from"./chunk-CXEGNT5A.js";import{Cb as I,D as d,ea as f,f as u,fa as g,ha as y,ma as S,ra as a}from"./chunk-LJFKHX2G.js";import{h as o}from"./chunk-YAH3INPE.js";var te=(()=>{class c{constructor(e,t,i,m,n,l,p,b,h){this.api=e,this.cds=t,this.alert=i,this.http=m,this.timerSubSer=n,this.ngZone=l,this.store=p,this.commonService=b,this.storageService=h,this.stop$=new u,this.FLang=this.cds.gLang}MemberReg(e){return this.api.post("mobileweb/api/member/reg",e)}MemberSetPW(e){return this.api.post("mobileweb/api/member/setpw",e,{mask:!0,alert:!1})}MemberCathayLogin(e){return o(this,null,function*(){let t=yield this.api.post("mobileweb/api/member/cathaylogin",e,{mask:!0,alert:!1});if(t.status===200&&t.data){this.cds.gMobileToken=t.access_token,this.cds.userInfo=t.data,this.storageService.setItem(r.mobileToken,t.access_token);let i=s.ObjEncryption(t.data);this.commonService.SaveUsertoSession(i),this.cds.eDoctorRegistry&&this.seteDocterRegistry(t.data.seq_no?.toString(),t.data.mobile?.toString()),this.setIPAddress(),window.dataLayer.push({user_id:"MBW"+t.data?.ga_analysis_key_001}),this.timeoutSec=Number(this.cds.timeoutSec),this.logoutSec=Number(this.cds.logoutSec),this.initializeTimer()}return this.MembergetParam(),t})}seteDocterRegistry(e,t){return o(this,null,function*(){this.cds.eDoctorRegistry.memberId=e,this.cds.eDoctorRegistry.mobile=t;let i={memberid:this.cds.eDoctorRegistry.memberId,mobile:this.cds.eDoctorRegistry.mobile,serviceid:this.cds.eDoctorRegistry.serviceId,transid:this.cds.eDoctorRegistry.transId};yield this.eDoctorRegistry(i),this.cds.eDoctorRegistry=null})}eDoctorRegistry(e){return o(this,null,function*(){let t=yield this.api.post("mobileweb/api/member-binding/updatebinding",e,{mask:!0,alert:!1});if(t.status===200&&t.success===!0){this.cds.userInfo.edr="Y";let i=s.ObjEncryption(this.cds.userInfo);this.commonService.SaveUsertoSession(i)}})}MembergetParam(){return o(this,null,function*(){let e=["cp1","cp2","cp3","cp4","cp5","cp6"],t=yield this.api.post("mobileweb/api/param/getValue",e,{mask:!1,alert:!1});t.status===200&&(this.cds.pay_account=s.AESDecrypt(t.data.cp1),this.cds.websitId=s.AESDecrypt(t.data.cp2),this.cds.pay_pwd=s.AESDecrypt(t.data.cp3),this.cds.VNPay_Url=s.AESDecrypt(t.data.cp4),this.cds.cathaylifebaseurl=t.data.cp5,this.cds.cathaylifesso=t.data.cp6,this.storageService.setItem(r.cp5,btoa(this.cds.cathaylifebaseurl)),this.storageService.setItem(r.cp6,btoa(this.cds.cathaylifesso)))})}MemberIsPopup(e){return this.api.post("mobileweb/api/member/eventlog",e,{mask:!0,alert:!1})}MemberVerifyID(e){return this.api.post("mobileweb/api/member/verifyid",e,{mask:!0,alert:!0})}MemberVerifyID2(e){return this.api.post("mobileweb/api/member/verifyid",e,{mask:!0,alert:!1})}MemberVerifyIDNoAlert(e){return this.api.post("mobileweb/api/member/verifyid",e,{mask:!0,alert:!1})}VerifyMember(e){return this.api.post("mobileweb/api/member/verifyMember",e,{mask:!0,alert:!1})}MemberVerifyEmail(e){return this.api.post("mobileweb/api/member/verifyemail",e,{mask:!0,alert:!1})}MemberVerifyOTP(e){return this.api.post("mobileweb/api/member/verifyotp",e,{mask:!0,alert:!1})}MemberSendOTP(e){return this.api.post("mobileweb/api/member/sendotp",e,{mask:!1,alert:!1})}MemberCantLogin(e){return this.api.post("mobileweb/api/member/cantlogin",e,{mask:!0,alert:!1})}MemberOAUTH(e){return o(this,null,function*(){let t=yield this.api.post("mobileweb/api/member/oauth",e,{mask:!0,alert:!1});if(t.status===200&&t.data){this.cds.gMobileToken=t.access_token,this.cds.userInfo=t.data,this.storageService.setItem(r.mobileToken,t.access_token);let i=s.ObjEncryption(t.data);this.commonService.SaveUsertoSession(i),this.cds.eDoctorRegistry&&this.seteDocterRegistry(t.data.seq_no?.toString(),t.data.mobile?.toString()),this.setIPAddress()}return t})}MemberIsBind(e){return this.api.post("mobileweb/api/member/isbind",e,{mask:!0,alert:!1})}MemberBind(e){return this.api.post("mobileweb/api/member/bind",e,{mask:!0,alert:!0})}bindingEdoctor(e){return this.api.post("mobileweb/api/member-binding/edrbinding",e)}isMemberBindingEdoctor(e){return this.api.post("mobileweb/api/member-binding/ismemberbindingedr",e)}
1GetPolicyCNT(e){return this.api.post("Policy/Compulsory/GetPolicyCNT",e,{mask:!0,alert:!1})}OpenCarPolicy(e){return this.api.post("mobileweb/api/member/OpenCarPolicy",e,{mask:!0,alert:!1})}providesso(e){return this.api.post("mobileweb/api/member/providesso",e)}checksso(e){return o(this,null,function*(){let t=yield this.api.post("mobileweb/api/member/checksso",e);if(t.status===200&&t.data){let i=s.ObjEncryption(t.data);this.commonService.SaveUsertoSession(i),this.storageService.setItem(r.mobileToken,t.access_token),this.cds.gMobileToken=t.access_token,this.cds.userInfo=t.data,this.cds.gIsSSO=!0}return t})}getsso(e){return this.api.post("mobileweb/api/member/getsso",e)}changesso(e){return this.api.getsso("ZSWeb/api/getssomember",e)}upload(e){let t=new FormData;return e.image&&t.append("file",e.image),this.api.postWithFormData("mobileweb/api/member/uploadfiletos3 ",t)}MemberRegID(e){return this.api.post("mobileweb/api/member/regid ",e)}NoticeList(e){return this.api.post("Policy/Compulsory/NoticeList",e,{mask:!0,alert:!1})}uploadFile(e){return this.api.post("storage/upload",e,{mask:!0,alert:!1})}reflashUserInfo(e){if(typeof e=="string"&&e==="reset"){let t=s.ObjEncryption(this.cds.userInfo);this.commonService.SaveUsertoSession(t)}else{let{email:t,email_bk:i,mobile:m,county:n,province:l,addr:p,google_account:b,google_title:h,fb_account:L,fb_title:R,is_validate_policy:j,is_link_sns:P,is_link_id:C,rgst_list:N,is_viewed_popup:U,client_ip:F,nation_id:O}=e;this.cds.userInfo.email=t,this.cds.userInfo.email_bk=i,this.cds.userInfo.mobile=m,this.cds.userInfo.province=l,this.cds.userInfo.county=n,this.cds.userInfo.addr=p,this.cds.userInfo.google_account=b,this.cds.userInfo.google_title=h,this.cds.userInfo.fb_account=L,this.cds.userInfo.fb_title=R,this.cds.userInfo.is_validate_policy=j,this.cds.userInfo.is_link_sns=P,this.cds.userInfo.is_link_id=C,this.cds.userInfo.rgst_list=N,this.cds.userInfo.is_viewed_popup=U,this.cds.userInfo.client_ip=F,this.cds.userInfo.nation_id=O;let B=s.ObjEncryption(this.cds.userInfo);this.commonService.SaveUsertoSession(B)}}setIPAddress(){this.cds.userInfo.client_ip||this.http.get(k.ipAddressUrl,{responseType:"text"}).subscribe(e=>{this.cds.userInfo.client_ip=e||"127.0.0.1"})}reflashSession(){let e=s.ObjEncryption(this.cds.userInfo);this.commonService.SaveUsertoSession(e)}authThirdLogin(e){return o(this,null,function*(){if(e){let t=yield this.MemberIsBind(e);if(t.status===200){let{facebook:i,google:m}=t.data,n="";return i==="Y"&&m==="Y"&&(n="both"),i==="Y"&&m==="N"&&(n="facebook"),i==="N"&&m==="Y"&&(n="google"),n}else return""}else return""})}InsuranceQueryApi(e){return this.api.post("Policy/Compulsory/PoliceCheckPolicy",e,{mask:!0,alert:!1})}verifyClerkMobile(e){return this.api.post("mobileweb/api/member/verifyClerkMobile",e,{mask:!0,alert:!1})}verifyMobileUniqueness(e){return this.api.post("mobileweb/api/member/verifyMobileUniqueness",e,{mask:!0,alert:!1})}ensureTimeoutConfig(){return o(this,null,function*(){if(this.cds.timeoutSec&&this.cds.logoutSec)return;let e=yield this.api.post("Insurance/Common/SyncData/timeoutData",{},{mask:!1,alert:!1});e.status===200&&e.data&&(this.cds.timeoutSec=e.data.timeoutSec,this.cds.logoutSec=e.data.logoutSec)})}initializeTimer(){return o(this,null,function*(){yield this.ensureTimeoutConfig(),this.timerSubSer.reset$.pipe(y(()=>{this.startDate=new Date,this.timeoutDate=new Date(this.startDate.getTime()+Number(this.cds.timeoutSec)*1e3),this.logoutDate=new Date(this.startDate.getTime()+Number(this.cds.logoutSec)*1e3)}),f(()=>d(0,1e3)),g(this.stop$)).subscribe(e=>{let t=new Date;e++,t.getTime()>=this.timeoutDate.getTime()&&this.continue(),t.getTime()>=this.logoutDate.getTime()&&(this.stop$.next(!0),this.storageService.removeItem(r.memberinfo),this.storageService.removeItem(r.mobileToken),this.storageService.removeItem(r.c_user),this.timeoutAlert())})})}continue(){this.alert.open({type:"warning",title:this.FLang.ALERT.AL011,content:this.FLang.ALERT.AL005,submitTitle:this.FLang.ALERT.AL006,callback:()=>{this.timerSubSer.startTimer();let e={seqNo:this.cds.userInfo.seq_no,customerName:this.cds.userInfo.customer_name};this.refreshMemberToken(e)},extButtonTitle:this.FLang.ALERT.AL007,doExtButton:()=>{this.logout(!0)}})}timeoutAlert(){this.alert.open({type:"warning",title:this.FLang.ALERT.AL012,content:this.FLang.ALERT.AL008,submitTitle:this.FLang.ALERT.AL009,callback:()=>{this.logout(!1)},extButtonTitle:this.FLang.ALERT.AL010,doExtButton:()=>{this.logout(!0)}})}logout(e){this.removeMemberInfo(),e?document.location.replace("/"):document.location.replace("/login")}refreshMemberToken(e){return o(this,null,function*(){let t=yield this.api.post("customerToken",e,{mask:!1,alert:!1});t.status===200&&t?(this.cds.gMobileToken=t.access_token,this.storageService.setItem(r.mobileToken,t.access_token)):this.logout(!1)})}bindingID12Check(e){return this.api.post("mobileweb/api/member/binding-ID12-check",e,{mask:!0,alert:!1})}bindingID12Historical(e){return this.api.post("mobileweb/api/member/binding-ID12-historical",e,{mask:!0,alert:!1})}removeMemberInfo(){this.store.dispatch(M()),this.storageService.removeItem(r.memberinfo),this.storageService.removeItem(r.mobileToken),this.storageService.removeItem(r.c_user)}memberPorofile(e){return this.api.post("mobileweb/api/member/profile",e,{mask:!0,alert:!1})}bindingID12Apply(e){return this.api.post("mobileweb/api/member/binding-ID12-apply",e,{mask:!0,alert:!1})}static{this.\u0275fac=function(t){return new(t||c)(a(E),a(w),a(D),a(_),a(A),a(I),a(T),a(s),a(v))}}static{this.\u0275prov=S({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();export{te 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.