@jctrans-materials/comps-vue2 1.0.41-beta.6 → 1.0.41-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.esm.js +386 -384
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -34,4 +34,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
34
34
|
scrollbars=yes,
|
|
35
35
|
status=no,
|
|
36
36
|
location=no
|
|
37
|
-
`;if(console.log(`🍉 打开弹窗 [${B}]: ${K}`),m=window.open(K,"ThirdPartyLogin",Te),!m){console.error("浏览器已阻止弹窗"),e.value=!1;return}_=setInterval(()=>{if(m&&m.closed){if(v){console.log("🍉 [竞态] 检测到窗口关闭,但正在处理消息,忽略此次关闭检测"),W();return}console.log("🍉 检测到弹窗被手动关闭,执行重置"),k(),l.value=!0}},1e3)};return y.onMounted(()=>{x()}),y.onUnmounted(()=>{Nt()&&window.removeEventListener("message",P),k()}),{isLoading:e,isBindDialogVisible:s,isRegisterVisible:u,isUserClosed:l,bindList:p,loginResult:r,startLogin:J,resetState:k,handleBindThirdParty:B=>{p.value=B,s.value=!0,u.value=!1},resetBindRegisterState:()=>{s.value=!1,u.value=!1,p.value=[]}}}async function Ln(i,e,r,s=!0,u=!0){if(!e||e.trim()==="")return r(new Error(s?"Email address is required":"请输入您的邮箱"));if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e))return r(new Error(s?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/[一-龥]+/.test(e))return r(new Error(s?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/@(qq|vip.qq).com$/i.test(e))return r(new Error(s?"QQ email is not supported, please change other work email":"不支持QQ邮箱,请您更换其他工作邮箱"));if(u)try{const{data:l}=await E.validateAccountExistApi({target:e});if(console.log("🍉 ~ constant.ts:67 ~ validateUserEmail ~ data:",l),l.data)return r(new Error(s?"It's already occupied, please re-enter.":"已被占用,请重新输入"));r()}catch{r(new Error(s?"Validation failed, please re-enter.":"校验失败,请重新输入"))}else return r()}async function AC(i,e,r,s=!0,u){if(console.log("🍉 ~ constant.ts:106 ~ validateThirdPartyEmail ~ context:",u),e==null||e==="")r(new Error(s?"Please enter a valid business email address":"请输入正确的公司邮箱"));else if(/[一-龥]+/.test(e))r(new Error(s?"Please enter a valid business email address":"请输入正确的公司邮箱"));else try{const p=await E.findListByMobileEmailApi({email:e});console.log("🍉 ~ constant.ts:129 ~ validateThirdPartyEmail ~ res:",p),!p.data.data||p.data.data.records.length===0?(tc([]),u.thirdPartyEmailVerifyList=[],r()):(tc(p.data.data.records),u.thirdPartyEmailVerifyList=p.data.data.records,r(new Error(s?"This email has been registered":"邮箱已注册")))}catch{r(new Error(s?"This email has been registered":"邮箱已注册"))}}function bC(i,e,r,s=!0,u){e?/^[0-9]*$/.test(e)===!0?e.length<2?r(new Error(s?"please enter at least 2 characters.":"请输入至少2个字符")):E.findListByMobileEmailApi({mobile:e}).then(p=>{!p.data.data||p.data.data.records.length===0?(nc([]),u.thirdPartyMobileVerifyList=[],r()):(nc(p.data.data.records),u.thirdPartyMobileVerifyList=p.data.data.records,r(new Error(s?"This mobile number has been registered":"手机号已注册")))}).catch(()=>{r(new Error(s?"This mobile number has been registered":"手机号已注册"))}):r(new Error("请正确填写手机号")):r(new Error(s?"Please enter your cell phone number":"请输入手机号"))}function Nn(i,e,r,s=!0,u=!0){const p=/^[a-zA-Z一-龥\s.·•]+$/,l=/^[a-zA-Z\s.·•]+$/;if(!e){const m=u?s?"please enter your Chinese name":"请输入您的中文姓名":s?"Please enter your English name":"请输入您的英文姓名";return r(new Error(m))}if(u){if(e.length>50||!p.test(e))return r(new Error(s?"Only Chinese and English characters and symbols can be entered, with a maximum of 50 words.":"仅能输入中英文字符及符号,最多50个字"))}else if(e.length>50||!l.test(e))return r(new Error(s?"Only English characters and symbols can be entered, up to 50 words.":"仅能输入英文字符及符号,最多50个字"));r()}function pi(i,e,r,s=!0){const u={empty:s?"The password cannot be empty. Please enter it":"密码不能为空,请重新输入",length:s?"The password must be at 6-20 characters only":"密码为6-20位字符",invalidChars:s?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号",complexity:s?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号"};if(e==null||e==="")return r(new Error(u.empty));if(e.length<6||e.length>20)return r(new Error(u.length));if(!/^[a-zA-Z0-9+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&""''::?》《,^——_\s \n\r【】{}[\]|;~·]*$/.test(e))return r(new Error(u.invalidChars));const l=/^[a-zA-Z]*$/.test(e),m=/^[0-9]*$/.test(e),_=/^[+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&""''::?》《,^——_\s \n\r【】{}[\]|;~·]*$/.test(e);if(l||m||_)return r(new Error(u.complexity));r()}async function Mn(i,e,r,s=!0,u=!0){const p={empty:s?"Please enter your cell phone number":"请输入手机号",minLen:s?"please enter at least 2 characters.":"请输入至少 2 个字符.",invalid:s?"Invalid mobile address":"手机号格式错误",occupied:s?"It's already occupied, please re- enter.":"已被占用,请重新输入"};if(!e)return r(new Error(p.empty));if(!/^[0-9]*$/.test(e))return r(new Error(p.invalid));if(e.length<2)return r(new Error(p.minLen));if(u)try{const l=await E.validateAccountExistApi({target:e});if(console.log("🍉 ~ constant.ts:288 ~ validateUserMobilefive ~ res:",l),l&&l.data.data)return r(new Error(p.occupied));r()}catch{r(new Error(p.occupied))}else return r()}function wC(i){return i?i.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s{2,}/g," "):""}async function ss(i,e,r,s=!0,u){const p=wC(e);console.log("🍉 ~ constant.ts:274 ~ validateCompanyName ~ nameValue:",p);const l=u.countryId==1;if(!p)return l&&(u.appId==="DDC"||u.appId==="JHB")?r():r(new Error(s?"please enter the full company name":"请输入公司名称"));if(p.length<2)return r(new Error(s?"please enter at least 2 characters.":"请输入至少 2 个字符."));if(p.length>200)return r(new Error(s?"please enter less than 200 characters.":"请输入少于 200 个字符."));if(!l){if(/[一-龥]/.test(p))return r(new Error(s?"Do not include Chinese characters in company name":"注册公司名不能有中文"));if(!/^[a-zA-Z0-9+.()&\\\-=*/,#'":!?;%$`@^——_\s]*$/.test(p))return r(new Error(s?"Wrong format for company name":"注册公司名格式错误"))}if(u.countryId&&u.cityId)try{const m={countryId:u.countryId,cityId:u.cityId,[l?"compNameCn":"compNameEn"]:p},_=await E.validateCompanyApi(m);console.log("🍉 ~ constant.ts:347 ~ validateCompanyName ~ res:",_),_.data.data.result?u.appId==="JCPAY"?r(new Error(s?"The company already exists, please contact customer service":"公司名称已存在,请联系客服")):(l?u.companyResistCn=!0:u.companyResistEn=!0,u.resistCompanyInfo=_.data.data,r()):(l?u.companyResistCn=!1:u.companyResistEn=!1,r())}catch(m){const _=(m==null?void 0:m.toString().split(":")[1])||"API Error";r(new Error(_))}else r(new Error(s?"Please select a Country/Region":"请选择国家/地区"))}function rn(i,e,r,s=!0){if(!e)return r(new Error(s?"Please enter the verification code":"请输入验证码"));if(!/^\d{4}$/.test(e))return r(new Error(s?"Verification code must be 4 digits":"验证码必须为4位数字"));r()}function os(i="_blank"){const e=window.location.hostname.includes("jctrans.com"),r=window.location.hostname.includes("sit2"),s=window.location.hostname.includes("sit"),p=e?"https://passport.jctrans.com":r?"https://passport-sit2.jctrans.net.cn":s?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn",l=document.createElement("a");l.href=`${p}/privacyAgreement`,l.target=i;const m=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});l.dispatchEvent(m)}function ls(i="_blank"){const e=window.location.hostname.includes("jctrans.com"),r=window.location.hostname.includes("sit2"),s=window.location.hostname.includes("sit"),p=e?"https://passport.jctrans.com":r?"https://passport-sit2.jctrans.net.cn":s?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn",l=document.createElement("a");l.href=`${p}/privacyPolicy`,l.target=i;const m=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});l.dispatchEvent(m)}const Vt=(i,e=100)=>{typeof window!="undefined"&&i&&setTimeout(()=>{i.startsWith("http")?window.location.href=i:(window.location.href=window.location.origin+i,console.warn("内部路径跳转逻辑尚未定义:",i))},e)},EC=y.defineComponent({name:"ApplyJoinBtn",props:{isEn:{type:Boolean,default:!1}},emits:["apply-join"],setup(i,{emit:e}){const r=y.computed(()=>i.isEn?"The company already exists. Would you like to apply to ":"该公司已存在。您可申请加入。"),s=y.computed(()=>i.isEn?"join in >>":"点击申请加入 >>");return{register_already_tip:r,register_join_in:s,applyJoin:()=>{e("apply-join")}}}});var SC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"jc:text-xs jc:flex jc:mb-3 jc:-mt-3"},[r("p",{staticClass:"jc:text-xs",staticStyle:{color:"#f80"}},[r("i",{staticClass:"el-icon-warning"}),e._v(" "+e._s(e.register_already_tip)+" ")]),r("p",{staticStyle:{color:"#3264ff",cursor:"pointer"},on:{click:e.applyJoin}},[e._v(" "+e._s(e.register_join_in)+" ")])])},IC=[],xC=ve(EC,SC,IC,!1,null,"4b87a2f3");const bi=xC.exports,TC=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),RC={name:"RegisterForm",components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,JcFloatInput:qn,CodeInput:an,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Ht,ApplyJoinBtn:bi},props:{isEn:Boolean},emits:["to-login","register","need-complete","register-success"],computed:{isAgree(){return this.form.agree},countryId(){var i,e,r,s,u,p,l;return((r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id)||((l=(p=(u=(s=this.form)==null?void 0:s.city)==null?void 0:u.raw)==null?void 0:p.city)==null?void 0:l.countryId)},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){var e;const i=this.countryId||((e=this.resistCompanyInfo)==null?void 0:e.countryId);return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:null,cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(i,e,r)=>ss(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Mn(i,e,r,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>rn(i,e,r,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(i,e,r)=>pi(i,e,r,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(i,e,r)=>{e?r():r(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:os,getAuthSessionItems:E.getAuthSessionItems,go2Policy:ls,async inviteJoinGetComp(){const e=E.getAuthSessionItems().compKey;if(!e)return;const{data:r}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=r.data},findDict(){E.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))}).catch(i=>{})},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){var s,u,p;const e=(await E.getLocalIpDataApi()).data;e&&e.code===0&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:(s=e.data)==null?void 0:s.countryId},country:{id:(u=e.data)==null?void 0:u.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=(p=e.data)==null?void 0:p.countryId,this.handleSelectCity(this.form.city));const r=await E.findPAreaCodeApi();this.areaCodeData=r.data.data.records},handleClearCity(){this.companyResistEn=!1,this.companyResistCn=!1},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(i){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(i,e=>{(i==="email"||i==="phone")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.form.email||this.form.phone,uuid:i.uuid,code:i.code};e();let s=E.sendEmailCodeApi,u=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(s=E.sendMobileCodeApi,u=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),s(r).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(this.currentCountryIsChina?this.mobileUid=l:this.emailUid=l,U.Message.success(u))}).catch(p=>{console.error(p)})},handleRegister(){this.$refs.registerFormRef.validate(i=>{if(!i)return;if(!this.verifyData.uuid){U.Message.error(this.isEn?"Please get code first":"请先获取验证码");return}const e=this.getAuthSessionItems();let r={appId:this.appId,fromSys:this.appId,passwd:gt.MD5(this.form.password).toString(),clickSource:e.clickSource||"",activityCode:e.activityCode||"",referenceUserId:e.referenceUserId||"",inviterInfo:e.empNo||"",industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,uniqueCode:e.uniqueCode||"",prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")};this.currentCountryIsChina?Object.assign(r,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(s=>s.telCode===this.form.areaCode).id,account:E.Encrypt(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(r,{type:"EMAIL",account:E.Encrypt(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(r):this.handleNewCompanySubmit(r)})},async handleNewCompanySubmit(i){const e=this.getAuthSessionItems(),r={...this.form.kqInfo,...i,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?r.compNameCn=this.form.companyName:r.compNameEn=this.form.companyName,this.$emit("register",r),this.loading=!0;try{const u=await(e.uniqueCode?E.registerUserCompBindWechatApi:E.registerApi)(r);this.handlePostRegister(u)}catch{this.loading=!1}},async handleApplyJoinSubmit(i){const e=this.getAuthSessionItems(),r={...i,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(r.nameCn=this.form.nameCn),this.form.nameEn&&(r.nameEn=this.form.nameEn),["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(u=>delete r[u]),this.$emit("register",r),this.loading=!0;try{const p=await(e.uniqueCode?E.registerJoinCompanyBindWechatApi:E.registerJoinCompanyApi)(r);this.handlePostRegister(p)}catch{this.loading=!1}},normalizeDelayMs(i){if(i==null||i==="")return 0;if(typeof i=="string"){const r=i.trim().toLowerCase();if(!r)return 0;if(r.endsWith("ms")){const u=Number(r.slice(0,-2).trim());return Number.isFinite(u)&&u>=0?u:0}if(r.endsWith("s")){const u=Number(r.slice(0,-1).trim());return Number.isFinite(u)&&u>=0?u*1e3:0}const s=Number(r);return!Number.isFinite(s)||s<0?0:s>=10?s:s*1e3}const e=Number(i);return!Number.isFinite(e)||e<0?0:e>=10?e:e*1e3},executeRedirectWithDelay(i,e){const r=this.normalizeDelayMs(e);setTimeout(()=>{E.resetAuthSessionItems(),Vt(i)},r)},handlePostRegister(i){const e=this.getAuthSessionItems();if(i.data.code===0)if(i.data.data.redirect){if(E.setTokenAll(i.data.data.result),i.data.data.result&&i.data.data.result.improveComp){this.$emit("need-complete",i.data.data.result.improveComp);return}try{qt.set("tgc",i.data.data.tgc,{expires:30});const r=i.data.data.redirectPath||e.path||"/",s={isHandled:!1},u=l=>{s.isHandled=!0,this.executeRedirectWithDelay(r,l)},p=()=>{s.isHandled=!0};this.$emit("register-success",{user:i.data.data.result,redirectPath:r,preventDefault:p,redirect:u}),setTimeout(()=>{s.isHandled||this.executeRedirectWithDelay(r,0)},0)}catch(r){console.error("注册成功后的后续处理发生异常:",r)}}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,U.Message.error(i.data.msg)}}};var BC=function(){var s,u,p,l,m,_;var e=this,r=e._self._c;return r("div",{staticClass:"register-form-container"},[r("div",{staticClass:"register-title"},[r("p",[e._v(e._s(e.isEn?"New User Registration":"新用户注册"))])]),r("el-form",{ref:"registerFormRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(v){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn||e.resistCompanyInfo.compNameCn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Location(City)":"所在地(城市)"))])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(v){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",v)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{clear:e.handleClearCity,select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(v){e.$set(e.form,"city",v)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,"country-id":((p=(u=(s=e.form.city)==null?void 0:s.raw)==null?void 0:u.country)==null?void 0:p.id)||((_=(m=(l=e.form.city)==null?void 0:l.raw)==null?void 0:m.city)==null?void 0:_.countryId)||null,city:e.form.city},on:{"update:companyName":function(v){return e.$set(e.form,"companyName",v)},"update:company-name":function(v){return e.$set(e.form,"companyName",v)},"update:useKq":function(v){return e.$set(e.form,"useKq",v)},"update:use-kq":function(v){return e.$set(e.form,"useKq",v)},"update:kqCode":function(v){return e.$set(e.form,"kqCode",v)},"update:kq-code":function(v){return e.$set(e.form,"kqCode",v)},"update:kqInfo":function(v){return e.$set(e.form,"kqInfo",v)},"update:kq-info":function(v){return e.$set(e.form,"kqInfo",v)},change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{attrs:{"is-en":e.isEn},on:{"apply-join":e.handleApplyJoinClick}}):e._e()],e.currentCountryIsChina?r("el-form-item",{staticClass:"phone-form-item"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(v){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(v){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(v){e.$set(e.form,"areaCode",v)},expression:"form.areaCode"}},[e._l(e.areaCodeData,function(v){return r("el-option",{key:v.id,attrs:{label:v.telCode,value:v.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}],null,!1,2606172549),model:{value:e.form.phone,callback:function(v){e.$set(e.form,"phone",v)},expression:"form.phone"}})],1)],1):e._e(),e.currentCountryIsChina?e._e():r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(v){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(v){e.$set(e.form,"email",v)},expression:"form.email"}})],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":""},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}]),model:{value:e.form.code,callback:function(v){e.$set(e.form,"code",v)},expression:"form.code"}})],1),r("el-form-item",{staticClass:"password-form-item",attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}]),model:{value:e.form.password,callback:function(v){e.$set(e.form,"password",v)},expression:"form.password"}})],1),e.hasResistCompany?e._e():r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(e._s(e.isEn?"Industry Sector":"行业类型"))]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(v){return r("div",{key:v.value,staticClass:"sector-item",class:{active:e.form.sector===v.value},on:{click:function(I){e.form.sector=v.value}}},[e._v(" "+e._s(e.isEn?v.en:v.cn)+" "),e.form.sector===v.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)]),r("el-form-item",{staticClass:"agree-item",attrs:{prop:"agree"}},[r("el-checkbox",{model:{value:e.form.agree,callback:function(v){e.$set(e.form,"agree",v)},expression:"form.agree"}},[r("span",{staticClass:"agree-text"},[e._v(" "+e._s(e.isEn?"I agree":"我同意")+" "),r("span",{staticClass:"link-type",on:{click:function(v){return v.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),e._v(" "+e._s(e.isEn?"and":"和")+" "),r("span",{staticClass:"link-type",on:{click:function(v){return v.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])])],1),r("el-button",{staticClass:"submit-btn register-btn",class:["register-btn-is-active"],attrs:{disabled:e.loading,loading:e.loading},on:{click:e.handleRegister}},[e._v(" "+e._s(e.isEn?"Register and Log in":"注册并登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],2),r("div",{staticClass:"bottom-tip"},[e._v(" "+e._s(e.isEn?"Already have an account?":"已有账号?")+" "),r("span",{staticClass:"action-text",on:{click:function(v){return e.$emit("to-login")}}},[e._v(" "+e._s(e.isEn?"Click to log in":"去登录")+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"}})])])])],1)},FC=[],PC=ve(RC,BC,FC,!1,null,"0b64240f");const bc=PC.exports,DC=Object.freeze(Object.defineProperty({__proto__:null,default:bc},Symbol.toStringTag,{value:"Module"})),kC={name:"CompleteInfoForm",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,ElSelect:U.Select,ElOption:U.Option,JcFloatInput:qn,CodeInput:an,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Ht,JcVerifySlide:vn,ApplyJoinBtn:bi},props:{isEn:Boolean},emits:["success"],data(){return{isReady:!1,loading:!1,verifyVisible:!1,verifyData:{},codeReady:!1,mobileUid:"",emailUid:"",areaCodeData:[],hasResistCompany:!1,companyResistCn:!1,companyResistEn:!1,resistCompanyInfo:null,currentUserMobile:null,currentUserEmail:null,form:{city:"",cityId:"",countryId:"",companyName:"",nameCn:"",nameEn:"",sector:"Logistics",phone:"",areaCode:"+86",email:"",code:"",useKq:!1,kqCode:"",kqInfo:null},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(i,e,r)=>this.hasResistCompany?r():ss(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Mn(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>rn(i,e,r,this.isEn),trigger:"blur"}]}}},computed:{countryId(){var i,e,r,s;return((r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id)||((s=this.resistCompanyInfo)==null?void 0:s.countryId)},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){const i=this.countryId;return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},isShowMobileCode(){return this.isReady?this.currentCountryIsChina&&!this.currentUserMobile:!1},isShowEmailCode(){return this.isReady?!this.currentUserEmail:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.getUserPermsInfo()},methods:{getUserPermsInfo(){E.getUserInfoApi().then(i=>{var e,r;this.currentUserMobile=(e=i.data.data)==null?void 0:e.mobile,this.currentUserEmail=(r=i.data.data)==null?void 0:r.email}).catch(()=>{this.currentUserMobile=null,this.currentUserEmail=null}).finally(()=>{this.isReady=!0})},handleCompanyExistStatus(i){i&&(this.companyResistCn=i.cnExists,this.companyResistEn=i.enExists,this.resistCompanyInfo=i.companyInfo)},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.formRef.clearValidate("companyName")})},async getAreaCodeData(){const i=await E.findPAreaCodeApi();this.areaCodeData=i.data.data.records},findDict(){E.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))})},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{!this.hasResistCompany&&this.form.companyName&&this.$refs.formRef.validateField("companyName"),this.$refs.formRef.validateField("city")})},validateField(i){this.$refs.formRef.validateField(i,e=>{(i==="phone"||i==="email")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.isShowMobileCode?this.form.phone:this.form.email,uuid:i.uuid,code:i.code},s=this.isShowMobileCode?E.sendMobileCodeApi:E.sendEmailCodeApi;this.isShowMobileCode&&(r.areaCode=this.form.areaCode,r.areaCodeCountryId=this.areaCodeData.find(u=>u.telCode===this.form.areaCode).id),e(),s(r).then(u=>{var l;const p=((l=u.data.data)==null?void 0:l.verifyCode)||u.data.verifyCode;u.data.code===0&&p&&(this.isShowMobileCode?this.mobileUid=p:this.emailUid=p,U.Message.success(this.isEn?"Code Sent":"验证码已发送"))})},handleSubmit(){this.$refs.formRef.validate(i=>{i&&(this.hasResistCompany?this.handleJoinSubmit():this.handleNewSubmit())})},handleNewSubmit(){this.loading=!0;const i={cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector,nameCn:this.currentCountryIsChina?this.form.companyName:"",nameEn:this.currentCountryIsChina?"":this.form.companyName,mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:(window==null?void 0:window.location.pathname)||"/",...this.form.kqInfo};E.completeCompRedirectApi(i).then(e=>{e.data.code===0?(U.Message.success(this.isEn?"Success":"提交成功"),this.$emit("success",e.data.data)):U.Message.error(e.data.msg)}).finally(()=>{this.loading=!1})},handleJoinSubmit(){this.loading=!0;const i={compId:this.resistCompanyInfo.compId,nameCn:this.form.nameCn,nameEn:this.form.nameEn,industrySector:this.form.sector,areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:this.isShowMobileCode?this.form.phone:this.form.email,type:this.isShowMobileCode?"MOBILE":"EMAIL",mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:(window==null?void 0:window.location.pathname)||"/"};E.completeJoinCompanyRedirectApi(i).then(e=>{if(e.data.code===0){if(e.data.data.redirect)try{qt.set("tgc",e.data.data.tgc,{expires:30});const r=this.getAuthSessionItems(),s=e.data.data.redirectPath||r.path||"/";E.resetAuthSessionItems(),Vt(s)}catch{}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");this.$emit("success",e.data.data)}else U.Message.error(e.data.msg)}).finally(()=>{this.loading=!1})}}};var OC=function(){var e=this,r=e._self._c;return r("div",{staticClass:"complete-info-container"},[r("div",{staticClass:"complete-info-container_header"},[r("div",{staticClass:"complete-info-container_title"},[e._v(" "+e._s(e.isEn?"Complete Your Information":"完善企业信息")+" ")]),r("div",{staticClass:"complete-info-container_tip-box"},[r("img",{attrs:{src:"https://resources.jctrans.com/res/era/pc/img/icon_gantan.png",alt:""}}),r("span",[e._v(e._s(e.isEn?"To provide you with better service, please complete the following enterprise information":"为了给您提供更好的服务,请完善以下企业信息"))])])]),r("el-form",{ref:"formRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(s){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn||e.resistCompanyInfo.compNameCn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Location(City)":"所在地(城市)"))])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(s){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",s)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],lang:e.isEn?"en":"zh-CN",placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(s){e.$set(e.form,"city",s)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,lang:e.isEn?"en":"zh-CN","country-id":e.countryId||null,city:e.form.city},on:{"update:companyName":function(s){return e.$set(e.form,"companyName",s)},"update:company-name":function(s){return e.$set(e.form,"companyName",s)},"update:useKq":function(s){return e.$set(e.form,"useKq",s)},"update:use-kq":function(s){return e.$set(e.form,"useKq",s)},"update:kqCode":function(s){return e.$set(e.form,"kqCode",s)},"update:kq-code":function(s){return e.$set(e.form,"kqCode",s)},"update:kqInfo":function(s){return e.$set(e.form,"kqInfo",s)},"update:kq-info":function(s){return e.$set(e.form,"kqInfo",s)},"update:exist-status":e.handleCompanyExistStatus,change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{on:{"apply-join":e.handleApplyJoinClick}}):e._e(),r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(" "+e._s(e.isEn?"Industry Sector":"行业类型")+" ")]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(s){return r("div",{key:s.value,staticClass:"sector-item",class:{active:e.form.sector===s.value},on:{click:function(u){e.form.sector=s.value}}},[e._v(" "+e._s(e.isEn?s.en:s.cn)+" "),e.form.sector===s.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)])],e.isShowMobileCode?[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"phone-form-item"},[r("el-form-item",{ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15"},on:{blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号","popper-class":"jc-area-code-select-wrapper"},on:{change:function(s){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(s){e.$set(e.form,"areaCode",s)},expression:"form.areaCode"}},e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),1)],1)]},proxy:!0}],null,!1,1425799582),model:{value:e.form.phone,callback:function(s){e.$set(e.form,"phone",s)},expression:"form.phone"}})],1)],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":"","form-type-color":"4"},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}],null,!1,3883692614),model:{value:e.form.code,callback:function(s){e.$set(e.form,"code",s)},expression:"form.code"}})],1)]:e._e(),e.isShowEmailCode?[r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(s){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(s){e.$set(e.form,"email",s)},expression:"form.email"}})],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":"","form-type-color":"4"},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}],null,!1,3883692614),model:{value:e.form.code,callback:function(s){e.$set(e.form,"code",s)},expression:"form.code"}})],1)]:e._e(),r("el-button",{staticClass:"submit-btn register-btn register-btn-is-active",attrs:{loading:e.loading},on:{click:e.handleSubmit}},[e._v(" "+e._s(e.isEn?"Submit":"完成并进入")+" ")])],2)],1)},LC=[],NC=ve(kC,OC,LC,!1,null,"c6a09f38");const wc=NC.exports,MC=Object.freeze(Object.defineProperty({__proto__:null,default:wc},Symbol.toStringTag,{value:"Module"})),UC=y.defineComponent({name:"FooterBox",props:{label:{type:String,default:""},subLabel:{type:String,default:""}},emits:["handleClick"],setup(i,{emit:e}){return{handleClick:()=>{e("handleClick")}}}});var qC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"auth-footer-box"},[e._v(" "+e._s(e.label)+" "),r("span",{staticClass:"action-text",on:{click:function(s){return s.stopPropagation(),e.handleClick.apply(null,arguments)}}},[e._v(e._s(e.subLabel)+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"}})])])])},VC=[],WC=ve(UC,qC,VC,!1,null,"3fc7802c");const Ec=WC.exports,HC=Object.freeze(Object.defineProperty({__proto__:null,default:Ec},Symbol.toStringTag,{value:"Module"}));function GC(i){const e=y.ref(1),r=y.ref(!1),s=y.ref(!1),u=y.ref(),p=y.reactive({userName:""}),l=y.ref({}),m=y.ref(!1),_=y.ref("email"),v=y.reactive({email:!1,mobile:!1}),I=y.reactive({code:"",password:"",confirmPassword:""}),F=y.ref(""),R=y.ref(!1),S=y.reactive({mobile:!1,email:!1}),O=()=>{s.value=!0},W=J=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleVerifySuccess ~ captchaData:",J),s.value=!1,console.log("🍉 ~ useForgetPassword.ts:53 ~ handleVerifySuccess ~ ctiveStep.value:",e.value),e.value===1&&x(J)},k=({captchaData:J,startTimer:b})=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleSendCodeVerifySuccess ~ captchaData:",J),e.value===2&&P(J,b)},x=async J=>{var b;r.value=!0;try{const q=await E.checkAccountExistsFPApi({account:p.userName,...J});if((b=q.data.data)!=null&&b.exists){l.value=q.data.data;const B=!!l.value.email,w=!!l.value.mobile;!B&&!w?m.value=!0:(m.value=!1,e.value=2,B?(_.value="email",v.email=!1,v.mobile=!w):(_.value="mobile",v.mobile=!1,v.email=!0))}else U.Message.error(i.isEn?"Account does not exist":"账号不存在")}catch(q){console.error(q)}finally{r.value=!1}},P=async(J,b)=>{console.log("🍓🍓 ~ useForgetPassword.ts:120 ~ sendVerifyCode ~ captchaData:",J);try{u.value=J;const{data:q}=await E.getMEVCodeApi({account:l.value.account,target:_.value,...J});console.log("🍉 ~ useForgetPassword.ts:127 ~ sendVerifyCode ~ res:",q),q.code===0&&(U.Message.success(i.isEn?"Verification code sent":"验证码已发送"),F.value=q.data.verifyCode,b(),_.value==="mobile"?S.mobile=!0:S.email=!0)}catch(q){console.error(q)}};return{activeStep:e,activeTab:_,loading:r,verifyVisible:s,formA:p,formB:I,userData:l,disabledTabs:v,showCustomerService:m,codeCountdown:S,codeReady:R,handleTriggerVerify:O,handleVerifySuccess:W,handleSendCodeVerifySuccess:k,handleSubmitReset:async()=>{var J;if(!((J=u.value)!=null&&J.uuid)){U.Message.info(i.isEn?"Please get the verification code first":"请先获取验证码");return}r.value=!0;try{const b={id:l.value.id,account:l.value.account,codeId:F.value,codeValue:I.code,password:gt.MD5(I.password).toString(),...u.value},{data:q}=await E.resetPasswordApi(b);return q.code===0?(U.Message.success(i.isEn?"Password reset successfully":"密码重置成功"),!0):(U.Message.error(q.msg),!1)}catch(b){return console.error(b),!1}finally{r.value=!1}},restFormB:()=>{I.code="",I.password="",I.confirmPassword="",F.value="",R.value=!1,S.mobile=!1,S.email=!1}}}const JC=y.defineComponent({name:"ForgetPassword",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,GoogleInput:Ht,CodeInput:an,JcVerifySlide:vn,FooterBox:Ec,JcFloatInput:qn},props:{isEn:{type:Boolean,default:!1}},emits:["to-login"],setup(i,{emit:e}){const{activeStep:r,activeTab:s,loading:u,verifyVisible:p,formA:l,formB:m,userData:_,disabledTabs:v,showCustomerService:I,codeCountdown:F,handleTriggerVerify:R,handleVerifySuccess:S,handleSendCodeVerifySuccess:O,handleSubmitReset:W,restFormB:k}=GC({isEn:i.isEn}),x=y.ref(),P=y.ref(),H=(w,M,G)=>{M===""?G(new Error(i.isEn?"Please input the password again":"请再次输入密码")):M!==m.password?G(new Error(i.isEn?"Two inputs don't match!":"两次输入密码不一致!")):G()},z={userName:[{required:!0,message:i.isEn?"Please enter username":"请输入账号",trigger:"blur"}]};return{activeStep:r,activeTab:s,loading:u,verifyVisible:p,formA:l,formB:m,userData:_,disabledTabs:v,showCustomerService:I,codeCountdown:F,formARef:x,formBRef:P,rulesA:z,rulesB:{code:[{required:!0,validator:(w,M,G)=>rn(w,M,G,i.isEn),trigger:"blur"}],password:[{required:!0,validator:(w,M,G)=>pi(w,M,G,i.isEn),trigger:"blur"},{validator:H,trigger:"blur"}],confirmPassword:[{required:!0,validator:(w,M,G)=>pi(w,M,G,i.isEn),trigger:"blur"},{validator:H,trigger:"blur"}]},handleStep1Next:()=>{x.value.validate(w=>{w&&R()})},handleStep2Submit:async()=>{P.value&&await P.value.validate(async w=>{w&&await W()&&e("to-login")})},handleChangeTab:w=>{w&&v[w]||(s.value=w||s.value,k())},handleTriggerVerify:R,handleVerifySuccess:S,handleSendCodeVerifySuccess:O}}}),jC="data:image/webp;base64,UklGRsRFAABXRUJQVlA4WAoAAAAQAAAAfwIA3wEAQUxQSLkLAAABFMVt20a2sv/U6Wm0/4iYAH3QsQAZj5Skpeqc1H6r0r4PNiInDqR6gg0QUQ20fqiT2bwp+VTtHH8POAbt57zXh2N0nHFNdXEEirStD0qrtrdupA+CIBhCIQhCIASCGdQMGgaGkGEgCIFgCIagH83cZ9fyt5dExARQsrW3iiT5CFMiHfgYkyKFNaw19GO7PavTG613od8aRcQE0HX/P27kCLYFYzRrWGt4R5pflTvMnU7tXt46AesczhPoCawEaZmjVq6aVcqZbk+p3Ut9EM0DGHyCf6GDkpcDE6wiYgJkxbZdNxIPIbgMLgKFgBCkERiBQ0Am4EYgBBMCEYIgEIOL4PxOnXP75a+ICFz+v/x/+f/y/+X/y/+X0PNXU4yhvJW99lMuVfuOQy+R3mphztGE1rL3U4f9zCpnLUzxg3hvovYLj+us2xo0aGtnBEMOaWUNFcR7V/vtDmkbRQjiKsN+31ffcmjgXYb9/q++UUig0of9OWVfg0Hexf642jkM5Cr2h9bOAYCq2B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VFHAAKZaLq0f5A5fg8JvpZtrzxXb8DKhOO4tGeWRn/pdApG2RVIVdUmcwpqzlDEInDeEM1fdc6Kf0tlvlt85k8uSCJECa1NJbfThRmnkPdxNW73UqDZjTTjg1cc5/xAio3nrqea6y7nePIPbAD4xQiYRrRJOJf2TX5rVRRFi/auoEHDR8rSRFQGYsBDWjSFA+0anMpYYevDOVK/B0m27pI5W/B2Fh4kf50Yo5x8pu/Oc5pMH5gfHRGqPl1yECC0d/6Hcw3+LYJnc3NgqjlT/otdhdVZOgbE/MCv2kR9RHZU2zZ0fJCmsqeSKpGFNOlwtYf4MsTPazDC29KQaeaqjeWoJxOBVkwiLT6DY8uYm3EaZ9jUhSxFgNt+KLB9uwDpJ1NpOl5fx2X0+df/t4vPShoAQCGIY4Y9n+Wx39CEAAAACEn//+4e+kMk8wQRCCl4Sj1tWs4IV3VDIWkKhr20cMBeMCQv7DaL/6Q5/q5N1V/T1FqcBhJpYbsy3AWdy3C/vW0pBzMcoHH8IB9KhCDVVQopf5eE4DMA/HlaJmN6xKX7k6AAAAAAAAAAAAAA";var zC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"forget-password-container"},[r("div",{staticClass:"forget-box"},[r("div",{staticClass:"header-title"},[r("h1",[e._v(e._s(e.isEn?"Reset Password":"重置密码"))])]),e.showCustomerService?r("div",{staticClass:"kefu-wrapper"},[r("img",{staticClass:"kefu-img",attrs:{src:jC}}),r("p",{staticClass:"kefu-text"},[e._v(" "+e._s(e.isEn?"The current account does not have a phone number and email, and cannot be verified. Please contact customer service directly":"当前账号没有手机号和邮箱,无法验证,请直接联系客服。")+" ")]),r("div",[e._v(e._s(e.isEn?"Customer Service":"联系客服"))])]):r("div",{staticClass:"form-wrapper"},[e.activeStep===1?r("div",[r("el-form",{ref:"formARef",attrs:{model:e.formA,rules:e.rulesA}},[r("el-form-item",{staticClass:"jc:mb-5!",attrs:{prop:"userName"}},[r("GoogleInput",{attrs:{value:e.formA.userName,placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.formA.userName=s}}})],1),r("el-button",{staticClass:"submit-btn",attrs:{type:"primary",loading:e.loading},on:{click:e.handleStep1Next}},[e._v(" "+e._s(e.isEn?"Next":"下一步")+" ")])],1)],1):e._e(),e.activeStep===2?r("div",[r("div",{staticClass:"tab-switcher"},[r("div",{staticClass:"tab-item",class:{active:e.activeTab==="email",disabled:e.disabledTabs.email},on:{click:function(s){return e.handleChangeTab("email")}}},[r("svg",{staticClass:"icon-svg",attrs:{t:"1767855712095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9362","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"}},[r("path",{attrs:{fill:"currentColor",d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z","p-id":"9363"}})]),e._v(" "+e._s(e.isEn?"Email Verify":"邮箱验证")+" ")]),r("div",{staticClass:"tab-item",class:{active:e.activeTab==="mobile",disabled:e.disabledTabs.mobile},on:{click:function(s){return e.handleChangeTab("mobile")}}},[r("svg",{staticClass:"icon-svg",attrs:{t:"1767855760413",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9516","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"}},[r("path",{attrs:{fill:"currentcolor",d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z","p-id":"9517"}})]),e._v(" "+e._s(e.isEn?"Mobile Verify":"手机验证")+" ")])]),r("el-form",{ref:"formBRef",attrs:{model:e.formB,rules:e.rulesB}},[r("el-form-item",{staticClass:"info-item"},[r("p",{staticClass:"default-info"},[r("span",{staticClass:"title"},[e._v(" "+e._s(e.activeTab==="email"?e.isEn?"Email":"邮箱":e.isEn?"Mobile":"手机号"))]),r("span",{staticClass:"user-value"},[e._v(" "+e._s(e.activeTab==="email"?e.userData.email:e.userData.mobile))])])]),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{"show-icon":"",value:e.formB.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:!0,"is-en":e.isEn,"custom-countdown":e.activeTab==="email"?e.codeCountdown.email:e.codeCountdown.mobile},on:{input:function(s){e.formB.code=s},send:e.handleSendCodeVerifySuccess}})],1),r("el-form-item",{attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{value:e.formB.password,type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},on:{input:function(s){e.formB.password=s}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}],null,!1,2767601835)})],1),r("el-form-item",{attrs:{prop:"confirmPassword"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{value:e.formB.confirmPassword,type:"password","show-password":"",label:e.isEn?"Confirm Password":"确认密码",placeholder:e.isEn?"Enter password again":"请再次输入密码"},on:{input:function(s){e.formB.confirmPassword=s}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}],null,!1,2767601835)})],1),r("el-button",{staticClass:"submit-btn",attrs:{type:"primary",loading:e.loading},on:{click:e.handleStep2Submit}},[e._v(" "+e._s(e.isEn?"Confirm":"确认修改")+" ")])],1)],1):e._e()])]),r("FooterBox",{style:{margin:"12px -16px -16px"},attrs:{label:e.isEn?"Back to":"返回","sub-label":e.isEn?"log in":"登录"},on:{"handle-click":function(s){return e.$emit("to-login")}}}),r("JcVerifySlide",{attrs:{visible:e.verifyVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.verifyVisible=s},success:e.handleVerifySuccess}})],1)},QC=[],KC=ve(JC,zC,QC,!1,null,"a511aae1");const Sc=KC.exports,XC=Object.freeze(Object.defineProperty({__proto__:null,default:Sc},Symbol.toStringTag,{value:"Module"})),YC={name:"LoginTypeSwitcher",components:{ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton},props:{value:{type:String,default:"email"},showAccount:{type:Boolean,default:!1},showEmail:{type:Boolean,default:!0},showMobile:{type:Boolean,default:!0},isEn:{type:Boolean,default:!1}},emits:["input","change"],methods:{handleChange(i){this.$emit("input",i),this.$emit("change",i)}}};var $C=function(){var e=this,r=e._self._c;return r("el-radio-group",{staticClass:"login-type-switcher",attrs:{value:e.value},on:{input:e.handleChange}},[e.showAccount?r("el-radio-button",{attrs:{label:"account"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="account"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"}})]),r("span",[e._v(e._s(e.isEn?"Password":"账号密码"))])])]):e._e(),e.showEmail?r("el-radio-button",{attrs:{label:"email"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="email"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"}})]),r("span",[e._v(e._s(e.isEn?"Email":"邮箱"))])])]):e._e(),e.showMobile?r("el-radio-button",{attrs:{label:"mobile"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="mobile"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z"}})]),r("span",[e._v(e._s(e.isEn?"Cell Phone":"手机号"))])])]):e._e()],1)},ZC=[],e1=ve(YC,$C,ZC,!1,null,"3c937e8d");const wi=e1.exports,t1=Object.freeze(Object.defineProperty({__proto__:null,default:wi},Symbol.toStringTag,{value:"Module"})),n1=y.defineComponent({name:"ThirdBindLogin",components:{ElButton:U.Button,ElForm:U.Form,ElFormItem:U.FormItem,LoginTypeSwitcher:wi,GoogleInput:Ht,CodeInput:an,JcVerifySlide:vn},props:{isEn:{type:Boolean,default:!1},bindList:{type:Array,default:()=>[]}},setup(i,{emit:e}){const r=y.ref(!1),s=y.ref(null),u=y.computed(()=>s.value?s.value:i.bindList.length===1?i.bindList[0]:null),p=y.ref(),l=y.ref({type:"account",username:"",password:"",email:"",phone:"",areaCode:"+86",code:""}),m=y.ref([]),_=y.ref(!0),v=y.ref(!1),I=y.ref(""),F=y.ref(""),R=y.ref({});let S=null;y.watch(u,B=>{B&&(l.value.username=B.account||"",l.value.email=B.email||"",l.value.phone=B.mobile||"",B.account?l.value.type="account":B.email?l.value.type="email":l.value.type="mobile",B.mobile&&m.value.length===0&&E.findPAreaCodeApi().then(w=>m.value=w.data.data.records))},{immediate:!0});const O=y.computed(()=>{const B={username:[{required:!0,trigger:"blur",message:i.isEn?"Enter Username":"请输入账号"}],password:[{required:!0,trigger:"blur",message:i.isEn?"Enter Password":"请输入密码"}],email:[{required:!0,validator:(w,M,G)=>{Ln(w,M,G,i.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(w,M,G)=>{Mn(w,M,G,i.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(w,M,G)=>rn(w,M,G,i.isEn),trigger:"blur"}]};return l.value.type==="account"?{username:B.username,password:B.password}:{code:B.code,...l.value.type==="email"?{email:B.email}:{phone:B.phone}}}),W=B=>{s.value=B},k=B=>{l.value.type=B},x=async B=>{var w;if((w=p.value)==null||w.clearValidate(),B=="mobile"&&m.value.length===0){const M=await E.findPAreaCodeApi();m.value=M.data.data.records}},P=B=>{var w;(w=p.value)==null||w.validateField(B,M=>{_.value=M})},H=({captchaData:B,startTimer:w})=>{R.value=B,S=w,z(B)},z=B=>{const w=l.value.type==="mobile",M={target:w?l.value.phone:l.value.email,uuid:B.uuid,code:B.code};w&&(M.areaCode=l.value.areaCode);const G=w?E.sendMobileCodeApi:E.sendEmailCodeApi;S&&S(),G(M).then(Y=>{var de;const _e=((de=Y.data.data)==null?void 0:de.verifyCode)||Y.data.verifyCode;(Y.data.code===0||Y.data.code===200)&&(w?I.value=_e:F.value=_e,U.Message.success(i.isEn?"Code sent":"验证码已发送"))}).catch(console.error)},J=()=>{var B;(B=p.value)==null||B.validate(w=>{if(w)if(l.value.type==="account")v.value=!0;else{if(!I.value&&!F.value)return U.Message.error(i.isEn?"Please get code first":"请先获取验证码");q(R.value)}})},b=B=>{v.value=!1,q(B)},q=B=>{var _e;r.value=!0;const w=Ac(),M=E.getAuthSessionItems(),G={thirdPartyType:w==null?void 0:w.thirdPartyType,thirdPartyId:w==null?void 0:w.thirdPartyId,thirdPartyEmail:w==null?void 0:w.thirdPartyEmail,thirdPartyUserName:w==null?void 0:w.thirdPartyUserName,appId:"ERA",kick:!0,userId:((_e=u.value)==null?void 0:_e.userId)||"",activityCode:(M==null?void 0:M.activityCode)||"",referenceUserId:(M==null?void 0:M.referenceUserId)||"",prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")};let Y;if(l.value.type==="account")Y=E.bindThirdPartyByPwdApi({...G,account:l.value.username,password:gt.MD5(l.value.password).toString(),verificationCodeUuid:B.uuid,verificationCodeValue:B.code,...B});else{const de=l.value.type==="mobile";Y=E.bindThirdPartyByCodeApi({...G,type:de?"MOBILE":"EMAIL",account:de?l.value.phone:l.value.email,verificationCodeUuid:de?I.value:F.value,verificationCodeValue:l.value.code,...B})}Y.then(de=>{if(de.data.code!==0)return U.Message.error(de.data.msg||(i.isEn?"Login failed":"登录失败"));if(de.data.data){const xe=de.data.data;xe.tgc&&qt.set("tgc",xe.tgc,{expires:30}),xe.result&&E.setTokenAll(xe.result),xe.redirectPath&&Vt(xe.redirectPath);return}if(de.data.subCode==="USER_HAS_OTHER_BIND"){U.Message.error(i.isEn?"Bound to other user":"该账号已绑定其他用户");return}de.data.result&&E.setTokenAll(de.data.result),de.data.tgc&&qt.set("tgc",de.data.tgc,{expires:30}),de.data.redirectPath&&Vt(de.data.redirectPath)}).finally(()=>{r.value=!1})};return{submitting:r,selectedUser:s,currentUser:u,bindLoginFormRef:p,loginForm:l,areaCodeData:m,codeReady:_,captchaVisible:v,computedRules:O,handleSelectUser:W,handleTypeInput:k,handleChangeSubType:x,validateField:P,handleGetCode:H,handleSubmit:J,handleCaptchaSuccess:b}}}),r1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855712095'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9362'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20fill='currentcolor'%20d='M113.242353%20250.217412l356.352%20356.412235a60.235294%2060.235294%200%200%200%2080.655059%204.156235l4.577882-4.156235%20356.111059-356.171294c1.204706%204.397176%201.987765%208.914824%202.409412%2013.552941l0.240941%206.987294v481.882353c0%2042.345412-32.768%2077.101176-74.270118%2080.112941l-6.023529%200.240942H190.765176a80.293647%2080.293647%200%200%201-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824%200.421647-9.456941%201.204706-14.034823l1.505883-6.746353z%20m720.052706-59.512471c4.818824%200%209.637647%200.421647%2014.215529%201.204706l6.866824%201.566118-342.136471%20342.13647-342.256941-342.13647c4.397176-1.204706%209.035294-2.048%2013.673412-2.409412l7.107764-0.361412h642.529883z'%20p-id='9363'%3e%3c/path%3e%3c/svg%3e",i1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855760413'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9516'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M694.874353%20918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235%2064.271059-173.778824%20142.336-207.209412a59.030588%2059.030588%200%200%201%2058.006588%206.324706c64.210824%2046.863059%20108.604235%20117.639529%20146.672941%20173.357176%2017.227294%2025.178353%2013.071059%2059.512471-10.24%2079.75153L363.52%20439.717647a19.275294%2019.275294%200%200%200-5.722353%2024.696471c17.709176%2032.346353%2049.332706%2080.353882%2085.473882%20116.495058%2036.141176%2036.141176%2086.437647%2069.752471%20120.952471%2089.509648a19.395765%2019.395765%200%200%200%2025.840941-6.445177l50.959059-77.703529c19.516235-25.961412%2056.018824-31.623529%2082.582588-13.251765%2056.500706%2039.092706%20122.458353%2082.642824%20170.706824%20144.444235a59.030588%2059.030588%200%200%201%207.589647%2059.632941c-33.611294%2078.426353-118.663529%20145.167059-207.088941%20141.914353z'%20p-id='9517'%3e%3c/path%3e%3c/svg%3e",Ic="data:image/webp;base64,UklGRtgAAABXRUJQVlA4WAoAAAAQAAAAHwAAHwAAQUxQSG8AAAABcFXbVq2cCEQ4EYxABBtIhNvg0kAaEMEIJwoRiLB86/b5GxETYP9n6T1rGiyaBULjMJPEAvaaDOwkdgBWSRrAKH4rxsOTq3NzbfD0/Cr+eACzZk/XHl+Bluz5DlRTBnRTOuCSAmHSBlU0xlbzdwIAVlA4IEIAAABwAwCdASogACAAPjESjEYiENDKACADBLSAACWH58lev5ur/aAA/iw///2p6j//i/2//+H8FPIH///0cbN//9v7AAA=";var a1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"bind-container"},[r("div",{staticClass:"bind-title"},[r("div",[e._v(" "+e._s(e.currentUser?e.isEn?"Log in and link":"绑定并登录":e.isEn?"Select account to link":"请选择要关联的账号")+" ")]),e.currentUser&&e.bindList.length>1?r("div",{staticClass:"back-btn",on:{click:function(s){e.selectedUser=null}}},[e._v(" "+e._s(e.isEn?"< Back":"< 返回选择")+" ")]):e._e()]),e.currentUser?r("div",{staticClass:"bind-form-content"},[r("div",{staticClass:"current-bind-info"},[r("span",[e._v(e._s(e.isEn?"Binding Account:":"正在绑定账号:"))]),r("span",{staticClass:"highlight"},[e._v(e._s(e.currentUser.account||e.currentUser.email||e.currentUser.mobile))])]),r("el-form",{ref:"bindLoginFormRef",staticClass:"third-bind-login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[r("el-form-item",{staticClass:"form-type",attrs:{prop:"type"}},[r("LoginTypeSwitcher",{staticClass:"jc:max-w-full!",attrs:{value:e.loginForm.type,"is-en":e.isEn,"show-account":"","show-email":!!e.loginForm.email&&e.currentUser.emailValidFlag==="1","show-mobile":!!e.loginForm.phone&&e.currentUser.mobileValidFlag==="1"},on:{input:e.handleTypeInput,change:e.handleChangeSubType}})],1),e.loginForm.type==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{value:e.loginForm.username,disabled:"",placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.loginForm.username=s}}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{value:e.loginForm.password,type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},on:{input:function(s){e.loginForm.password=s}}})],1)]:e.loginForm.type==="email"?[r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{value:e.loginForm.email,disabled:"",placeholder:e.isEn?"Email Address":"邮箱地址"},on:{input:function(s){e.loginForm.email=s},blur:function(s){return e.validateField("email")}}})],1)]:[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"tel"},[r("el-form-item",{ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{value:e.loginForm.phone,placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",disabled:"",autocomplete:"off",maxlength:"15"},on:{input:function(s){e.loginForm.phone=s},blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("div",{staticClass:"tel-areacode"},[e._v(e._s(e.loginForm.areaCode))])]},proxy:!0}])})],1)],1)],e.loginForm.type==="email"||e.loginForm.type==="mobile"?r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{value:e.loginForm.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{input:function(s){e.loginForm.code=s},send:e.handleGetCode}})],1):e._e(),r("div",{staticClass:"register-bottom"},[r("el-button",{staticClass:"submit-btn",attrs:{loading:e.submitting},on:{click:e.handleSubmit}},[e._v(" "+e._s(e.isEn?"Login and Link":"登录并绑定")+" "),r("img",{staticStyle:{width:"16px",height:"16px","vertical-align":"middle","margin-left":"4px"},attrs:{src:Ic,alt:""}})])],1)],2)],1):r("div",{staticClass:"user-list"},e._l(e.bindList,function(s,u){return r("div",{key:u,staticClass:"bind-user-card",on:{click:function(p){return e.handleSelectUser(s)}}},[e._m(0,!0),r("div",{staticClass:"bind-user-card__right"},[r("div",{staticClass:"bind-user-card__right__title"},[e._v(" "+e._s(e.isEn?s.userNameEn||s.userNameCn:s.userNameCn||s.userNameEn)+" ")]),r("div",{staticClass:"bind-user-card__right__desc"},[e._v(" "+e._s(e.isEn?s.compNameEn||s.compNameCn:s.compNameEn||s.compNameEn)+" ")]),s.email?r("div",{staticClass:"bind-user-card__right__info"},[r("img",{attrs:{src:r1}}),e._v(" "+e._s(s.email)+" ")]):e._e(),s.mobile?r("div",{staticClass:"bind-user-card__right__info"},[r("img",{attrs:{src:i1}}),e._v(" "+e._s(s.mobile)+" ")]):e._e()]),r("div",{staticClass:"bind-user-card__btn"},[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(p){return p.stopPropagation(),e.handleSelectUser(s)}}},[e._v(" "+e._s(e.isEn?"Select":"选择")+" ")])],1)])}),0),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},s1=[function(){var i=this,e=i._self._c;return i._self._setupProxy,e("div",{staticClass:"bind-user-card__left"},[e("div",{staticClass:"account-icon"})])}],o1=ve(n1,a1,s1,!1,null,"d24ef5c3");const xc=o1.exports,l1=Object.freeze(Object.defineProperty({__proto__:null,default:xc},Symbol.toStringTag,{value:"Module"})),c1={name:"ThirdRegisterForm",components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,JcFloatInput:qn,CodeInput:an,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Ht,ApplyJoinBtn:bi},props:{isEn:Boolean},emits:["bind-third-party","register","register-success","need-complete"],computed:{isAgree(){return this.form.agree},countryId(){var i,e,r;return(r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){var e;const i=this.countryId||((e=this.resistCompanyInfo)==null?void 0:e.countryId);return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},showEmailBindBtn(){return!this.currentCountryIsChina&&this.thirdPartyEmailVerifyList.length>0},showMobileBindBtn(){return this.currentCountryIsChina&&this.thirdPartyMobileVerifyList.length>0}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:"",cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(i,e,r)=>ss(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>AC(i,e,r,this.isEn,this),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>bC(i,e,r,this.isEn,this),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>rn(i,e,r,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(i,e,r)=>pi(i,e,r,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(i,e,r)=>{e?r():r(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1,thirdPartyMobileVerifyList:[],thirdPartyEmailVerifyList:[]}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:os,getAuthSessionItems:E.getAuthSessionItems,go2Policy:ls,handleBindThirdParty(i){this.$emit("bind-third-party",i==="email"?this.thirdPartyEmailVerifyList:this.thirdPartyMobileVerifyList)},async inviteJoinGetComp(){const e=E.getAuthSessionItems().compKey;if(!e)return;const{data:r}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=r.data},findDict(){E.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))}).catch(i=>{console.log("findDict err:",i)})},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){var s,u,p;const e=(await E.getLocalIpDataApi()).data;e&&e.code===0&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:(s=e.data)==null?void 0:s.countryId},country:{id:(u=e.data)==null?void 0:u.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=(p=e.data)==null?void 0:p.countryId,this.handleSelectCity(this.form.city));const r=await E.findPAreaCodeApi();this.areaCodeData=r.data.data.records},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(i){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(i,e=>{(i==="email"||i==="phone")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.form.email||this.form.phone,uuid:i.uuid,code:i.code};let s=E.sendEmailCodeApi,u=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(s=E.sendMobileCodeApi,u=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),e(),s(r).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(this.currentCountryIsChina?this.mobileUid=l:this.emailUid=l,U.Message.success(u))}).catch(p=>{console.error(p)})},handleRegister(){this.$refs.registerFormRef.validate(i=>{var m;if(!i)return;const e=this.getAuthSessionItems(),{thirdPartyId:r,thirdPartyEmail:s,thirdPartyType:u,thirdPartyUserName:p}=Ac();let l={appId:this.appId,fromSys:this.appId,passwd:gt.MD5(this.form.password).toString(),industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,clickSource:e.clickSource||"",activityCode:e.activityCode||"",referenceUserId:e.referenceUserId||"",inviterEmpNo:e.empNo||"",registerType:e.registerType||"",registerEvent:e.registerEvent||"",thirdPartyId:r,thirdPartyEmail:s,thirdPartyType:u,thirdPartyUserName:p,prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")};this.currentCountryIsChina?Object.assign(l,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:(m=this.areaCodeData.find(_=>_.telCode===this.form.areaCode))==null?void 0:m.id,account:E.Encrypt(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(l,{type:"EMAIL",account:E.Encrypt(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(l):this.handleNewCompanySubmit(l)})},async handleNewCompanySubmit(i){const e={...this.form.kqInfo,...i,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?e.compNameCn=this.form.companyName:e.compNameEn=this.form.companyName,this.$emit("register",e),this.loading=!0;try{const r=await E.registerByThirdPartyApi(e);this.handlePostRegister(r)}catch{this.loading=!1}},async handleApplyJoinSubmit(i){const e={...i,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(e.nameCn=this.form.nameCn),this.form.nameEn&&(e.nameEn=this.form.nameEn),["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(s=>delete e[s]),this.$emit("register",e),this.loading=!0;try{const s=await E.registerJoinCompByThirdPartyApi(e);this.handlePostRegister(s)}catch{this.loading=!1}},handlePostRegister(i){const e=this.getAuthSessionItems();if(i.data.code===0)if(i.data.data.redirect)try{if(qt.set("tgc",i.data.data.tgc,{expires:30}),i.data.data.result&&E.setTokenAll(i.data.data.result),i.data.data.result&&i.data.data.result.improveComp){this.$emit("need-complete",i.data.data.result.improveComp);return}const r=i.data.data.redirectPath||e.path||"/",s={isHandled:!1},u=l=>{s.isHandled=!0;const m=Number(l)||0;setTimeout(()=>{E.resetAuthSessionItems(),Vt(r)},m)},p=()=>{s.isHandled=!0};this.$emit("register-success",{user:i.data.data.result,redirectPath:r,preventDefault:p,redirect:u}),setTimeout(()=>{s.isHandled||(E.resetAuthSessionItems(),Vt(r))},0)}catch(r){console.log("handlePostRegister error:",r)}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,U.Message.error(i.data.msg)}}};var u1=function(){var s,u,p;var e=this,r=e._self._c;return r("div",{staticClass:"third-register-form-container"},[r("el-form",{ref:"registerFormRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company Name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(l){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" Location(City)")])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(l){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",l)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(l){e.$set(e.form,"city",l)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,"country-id":((p=(u=(s=e.form.city)==null?void 0:s.raw)==null?void 0:u.country)==null?void 0:p.id)||null,city:e.form.city},on:{"update:companyName":function(l){return e.$set(e.form,"companyName",l)},"update:company-name":function(l){return e.$set(e.form,"companyName",l)},"update:useKq":function(l){return e.$set(e.form,"useKq",l)},"update:use-kq":function(l){return e.$set(e.form,"useKq",l)},"update:kqCode":function(l){return e.$set(e.form,"kqCode",l)},"update:kq-code":function(l){return e.$set(e.form,"kqCode",l)},"update:kqInfo":function(l){return e.$set(e.form,"kqInfo",l)},"update:kq-info":function(l){return e.$set(e.form,"kqInfo",l)},change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{on:{"apply-join":e.handleApplyJoinClick}}):e._e()],e.currentCountryIsChina?r("el-form-item",{ref:"areaCodeCountryId",staticClass:"phone-form-item"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(l){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(l){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(l){e.$set(e.form,"areaCode",l)},expression:"form.areaCode"}},[e._l(e.areaCodeData,function(l){return r("el-option",{key:l.id,attrs:{label:l.telCode,value:l.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}],null,!1,2606172549),model:{value:e.form.phone,callback:function(l){e.$set(e.form,"phone",l)},expression:"form.phone"}})],1)],1):e._e(),e.currentCountryIsChina?e._e():r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(l){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(l){e.$set(e.form,"email",l)},expression:"form.email"}})],1),e.showEmailBindBtn?[r("el-form-item",[r("div",{staticClass:"third-party-bind-btn",on:{click:function(l){return e.handleBindThirdParty("email")}}},[e._v(" "+e._s(e.isEn?"To bind":"去绑定")+" "),r("img",{style:{marginLeft:"2px",width:"8px",height:"12px"},attrs:{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png"}})])])]:e._e(),e.showMobileBindBtn?[r("el-form-item",[r("div",{staticClass:"third-party-bind-btn",on:{click:function(l){return e.handleBindThirdParty("mobile")}}},[e._v(" "+e._s(e.isEn?"To bind":"去绑定")+" "),r("img",{style:{marginLeft:"2px",width:"8px",height:"12px"},attrs:{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png"}})])])]:e._e(),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":""},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}]),model:{value:e.form.code,callback:function(l){e.$set(e.form,"code",l)},expression:"form.code"}})],1),r("el-form-item",{staticClass:"password-form-item",attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}]),model:{value:e.form.password,callback:function(l){e.$set(e.form,"password",l)},expression:"form.password"}})],1),e.hasResistCompany?e._e():r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(" "+e._s(e.isEn?"Industry Sector":"行业类型")+" ")]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(l){return r("div",{key:l.value,staticClass:"sector-item",class:{active:e.form.sector===l.value},on:{click:function(m){e.form.sector=l.value}}},[e._v(" "+e._s(e.isEn?l.en:l.cn)+" "),e.form.sector===l.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)]),r("el-form-item",{staticClass:"agree-item",attrs:{prop:"agree"}},[r("el-checkbox",{model:{value:e.form.agree,callback:function(l){e.$set(e.form,"agree",l)},expression:"form.agree"}},[r("span",{staticClass:"agree-text"},[e._v(" "+e._s(e.isEn?"I agree":"我同意")+" "),r("span",{staticClass:"link-type",on:{click:function(l){return l.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),e._v(" "+e._s(e.isEn?"and":"和")+" "),r("span",{staticClass:"link-type",on:{click:function(l){return l.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])])],1),r("el-button",{staticClass:"submit-btn register-btn",class:["register-btn-is-active"],attrs:{disabled:e.loading,loading:e.loading},on:{click:e.handleRegister}},[e._v(" "+e._s(e.isEn?"Register and Log in":"注册并登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],2)],1)},f1=[],d1=ve(c1,u1,f1,!1,null,"54b21d24");const Tc=d1.exports,p1=Object.freeze(Object.defineProperty({__proto__:null,default:Tc},Symbol.toStringTag,{value:"Module"}));function Rc(i={}){console.log("🍉 ~ useAuthLogin.ts:27 ~ useAuthLogin ~ options:",i);const{appId:e="ERA",isEn:r=!1}=i,s=y.ref(!1),u=y.ref(!1),p=y.ref(null),l=y.ref(!1),m=R=>{console.log("🍉 ~ useAuthLogin.ts:36 ~ executeRedirect ~ loginData:",R);const S=E.getAuthSessionItems()||{},O=R.redirectPath||S.path||"/";R.result&&E.setTokenAll(R.result),console.log("🍉 Redirecting to:",O),Vt(O)},_=async R=>{var B;const{loginType:S,loginForm:O={},captchaData:W={},isKick:k=!1,mobileUid:x,emailUid:P,areaCodeData:H=[],remember:z}=R;s.value=!0,k||(p.value=W);const J=E.getAuthSessionItems()||{},b={appId:e,fromSys:e,kick:k,inviterInfo:J.empNo||void 0,redirectPath:J.path||"/",...J,...W,prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")};let q=E.loginApi;if(S==="account")Object.assign(b,{type:"PASSWORD",username:O.username,password:gt.MD5(O.password).toString(),uniqueCode:""});else if(S==="wechat")Object.assign(b,{type:"WECHAT",uniqueCode:J.uniqueCode}),!J.uniqueCode&&!b.uniqueCode&&console.warn("WeChat login missing uniqueCode"),q=E.loginApi;else{const w=O.type==="mobile",M=w?x:P;if(Object.assign(b,{type:w?"MOBILE":"EMAIL",account:w?O.phone:O.email,verificationCodeValue:O.code,verificationCodeUuid:M}),w){const G=H.find(Y=>Y.telCode===O.areaCode);b.areaCode=O.areaCode,b.areaCodeCountryId=G==null?void 0:G.id}if(!b.verificationCodeUuid){s.value=!1,U.Message.error(r?"Please get the verification code first":"请先获取验证码");return}q=E.loginByEmailOrMobileCodeApi}try{const{data:w}=await q(b);if(console.log("🍉 ~ useAuthLogin.ts:144 ~ handleAuthSubmit ~ res:",w),w.code===0){const M=w.data||{};if(M.hasLogon===!0&&!M.tgc){v(R);return}if(M.tgc){if(M.result&&E.setTokenAll(M.result),z&&qt.set("tgc",M.tgc,{expires:30,domain:E.getFirstDomain()}),(B=M.result)==null?void 0:B.improveComp){l.value=!0,s.value=!1,i.onNeedComplete&&i.onNeedComplete(M);return}U.Message.success(r?"Login successful":"登录成功"),i.onSuccess?i.onSuccess(M):m(M)}else i.onSuccess&&i.onSuccess(M)}else U.Message.error(w.msg||(r?"Login failed":"登录失败"))}catch(w){console.error("Login Error:",w),U.Message.error(r?"Network Error":"网络请求异常")}finally{s.value=!1}},v=R=>{U.MessageBox.confirm(r?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",r?"Tips":"提示",{confirmButtonText:r?"Confirm":"确定",cancelButtonText:r?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{_({...R,isKick:!0})}).catch(()=>{s.value=!1})},I=async R=>{var B;const{loginType:S,loginForm:O,captchaData:W,uniqueCode:k,isKick:x=!0,mobileUid:P,emailUid:H,areaCodeData:z=[]}=R;console.log("🍉 ~ useAuthLogin.ts:261 ~ handleBindSubmit ~ params:",R),s.value=!0;const J=E.getAuthSessionItems()||{};let b,q={appId:e,uniqueCode:k,kick:x,code:W.code,uuid:W.uuid,redirectPath:J.path||"/",fromSys:e,prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")};if(console.log("🍉 ~ useAuthLogin.ts:279 ~ handleBindSubmit ~ payload:",q),S==="account")b=E.loginPwdBindWechatApi,Object.assign(q,{username:O.username,password:gt.MD5(O.password).toString(),rememberMe:O.remember||!1});else{b=E.loginCodeBindWechatApi;const w=O.type==="mobile",M=w?P:H;if(Object.assign(q,{type:w?"MOBILE":"EMAIL",account:w?O.phone:O.email,verificationCodeValue:O.code,verificationCodeUuid:M,rememberMe:O.remember||!1}),w){const G=z.find(Y=>Y.telCode===O.areaCode);Object.assign(q,{areaCode:O.areaCode,areaCodeCountryId:G==null?void 0:G.id})}if(!q.verificationCodeUuid){s.value=!1,U.Message.error(r?"Please get the verification code first":"请先获取验证码");return}}try{const{data:w}=await b(q);if(console.log("🍉 Bind Result:",w),w.code===0){const M=w.data||{};if(M.hasLogon===!0&&!M.tgc){F(R);return}if(M.tgc){if(M.result&&E.setTokenAll(M.result),qt.set("tgc",M.tgc,{expires:30,domain:E.getFirstDomain()}),(B=M.result)==null?void 0:B.improveComp){l.value=!0,s.value=!1,i.onNeedComplete&&i.onNeedComplete(M);return}U.Message.success(r?"Linked and logged in successfully":"绑定并登录成功"),i.onSuccess?i.onSuccess(M):m(M)}else i.onSuccess&&i.onSuccess(M)}else U.Message.error(w.msg||(r?"Binding failed":"绑定失败"))}catch(w){console.error("Bind Error:",w),U.Message.error(r?"Network Error":"网络请求异常")}finally{s.value=!1}},F=R=>{U.MessageBox.confirm(r?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",r?"Tips":"提示",{confirmButtonText:r?"Confirm":"确定",cancelButtonText:r?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{I({...R,isKick:!0})}).catch(()=>{s.value=!1})};return{loading:s,captchaVisible:u,handleAuthSubmit:_,executeRedirect:m,loginNeedComplete:l,handleBindSubmit:I}}const h1=y.defineComponent({name:"WechatBindLogin",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,ElSelect:U.Select,ElOption:U.Option,LoginTypeSwitcher:wi,GoogleInput:Ht,CodeInput:an,JcVerifySlide:vn},props:{isEn:{type:Boolean,default:!1}},emits:["needComplete"],setup(i,{emit:e}){const{loading:r,captchaVisible:s,handleBindSubmit:u}=Rc({appId:"ERA",isEn:i.isEn,onNeedComplete:b=>{console.log("需要完善信息,暂不关闭弹窗"),e("needComplete",b)}}),p=y.ref({type:"account",username:"",password:"",remember:!1,email:"",phone:"",areaCode:"",code:""}),l=y.ref([]),m=y.ref(),_=y.ref(!1),v=y.ref(!1),I=y.ref({}),F=y.ref(""),R=y.ref(""),S=y.computed(()=>p.value.type),O=y.computed(()=>{const b={username:[{required:!0,trigger:"blur",message:i.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:i.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(q,B,w)=>{Ln(q,B,w,i.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(q,B,w)=>{Mn(q,B,w,i.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(q,B,w)=>{rn(q,B,w,i.isEn)},trigger:"blur"}]};return S.value==="account"?{username:b.username,password:b.password}:S.value==="email"||S.value==="mobile"?{code:b.code,...p.value.type==="email"?{email:b.email}:{phone:b.phone}}:{}});function W(b){p.value.type=b}async function k(b){if(b=="mobile"&&l.value.length===0){const q=await E.findPAreaCodeApi();l.value=q.data.data.records}}function x(b){p.value.areaCode=b,P("areaCode")}function P(b){m.value.validateField(b,q=>{_.value=q})}function H(){m.value.validate(b=>{if(b)if(S.value==="account")s.value=!0;else{if(!I.value||!I.value.uuid)return U.Message.error(i.isEn?"Please get code first":"请先获取验证码");z(I.value)}})}function z(b){s.value=!1;const B=(E.getAuthSessionItems()||{}).uniqueCode||"";if(!B){console.error("Missing uniqueCode for binding");return}u({loginType:S.value==="account"?"account":"code",loginForm:p.value,captchaData:{...b},uniqueCode:B,mobileUid:F.value,emailUid:R.value,areaCodeData:l.value})}function J({captchaData:b,startTimer:q}){const B=p.value.type==="mobile";I.value=b;const w={target:p.value.email||p.value.phone,uuid:b.uuid,code:b.code};B&&(w.areaCode=p.value.areaCode);const M=B?E.sendMobileCodeApi:E.sendEmailCodeApi;q(),M(w).then(G=>{var _e;const Y=((_e=G.data.data)==null?void 0:_e.verifyCode)||G.data.verifyCode;G.data.code===0&&Y&&(B?F.value=Y:R.value=Y,U.Message.success(i.isEn?"Verification code sent":"验证码已发送"))}).catch(G=>{console.error(G)})}return{loginForm:p,areaCodeData:l,bindLoginFormRef:m,codeReady:_,isCounting:v,loadingBtn:r,captchaVisible:s,LoginType:S,computedRules:O,handleTypeInput:W,handleChangeSubType:k,handleAreaCodeChange:x,validateField:P,handleSubmit:H,handleCaptchaSuccess:z,handleGetCode:J}}}),m1="data:image/webp;base64,UklGRkYDAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSK0BAAABkJVtT55JrwQkRAISIqEOBgl1sDhoHVAHXQdIQEIkICH780ETOodzEBETgJ+MA3FKG8fvIaQiOm5lCy/j2vVx4RdxVdtKLwmH2pfwBmrqKbQeifr2bTUSdd/WIlH/HpcqOuxnyjJT9/0aqISFkg47AaCJGwDOgeaFZPQb/7dR/I9HSsuwjsuHapaXKRMaAZCOawBQJvoyMqN3PvqEypGrzsZFgvrLmShgXXYrjMDHLSLS6rGR3+ZUCVy7TtfklVz6Dq76XJIPe0gMh9oW8iAHIWpqLeSAbhdJ1L5Hh8ssB1HPTnZsJTjUV4IZxChFHUrartG5nf2TZju2EdQRAaifCgAe9GCG22QnHQoA7J8SAAw02wWxiPtIv4AgnyqAX6NmBxID1Am9S9ehlKqTwQ4kjxpkxj46gORJha6YPBCuR32FzQXxQYOswD7ng457heAj/8ndPmnYF6hwjaoqCUDglEspRAskn1Ml4WF1E/huCY/ZjZ1MT6eM9UNzufBGEocaXgFqZhdem412vJiqCb8JiJdM9f/OdwHg/a4i0soeQZeqvO4pi8bvBWD8PAwAVlA4IHIBAACQDQCdASpQAFAAPjESh0KiIQzPMmYQAYJYgDTVCv5F+Mf4gb4DJX+Sz7l/ANsR/t26P/QD/AegB1gH9L/gHoV9YB+tfoUf7T/efAf+sP68fAV+m//U1vlDvsJaoYWahGVgTNJjQto23T3wmPTWzB6ZzMk6AwAA/v7uqgr/9ZP//7blAnmnE6lioCaVp1+WnldB5HpBbYjxc1NG5XU54UvD9kf2w/pZ7/42ltzXYtGbK1//nqr8tjkze5eVKps78/9WExTMn4pKTe3c8mpsuj8YwNG+XmxN6qsxIT2EwKQHnE5z8J/+pe+1IL/r1o8YBWTv7H+OAb1dnyF/HIBfP7w3V0JsIK9k9luJE6Inls4/P8XLinjMj63/lB+fL9Mg/9VBqi1r084wLn/+c3RisrFoveLUv2I5xww1R/MwdnWNwJwQ8oKLyHlGl0b3UxrGhAtGoS5KzFv4B538wnEyq7d8a9J8x7Ua1ZythfCc5mNgAAAA";var g1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("div",{staticClass:"bind-wechat-title"},[r("div",{staticClass:"title"},[r("img",{staticClass:"icon-auth-wechat",attrs:{src:m1,alt:""}}),e._v(" "+e._s(e.isEn?"Log in and link with WeChat":"登录并绑定微信")+" ")]),r("div",{staticClass:"sub-title"},[e._v(" "+e._s(e.isEn?"After linking, you can log in via WeChat scan, which is convenient and quick":"绑定后,可通过微信扫码登录,方便快捷")+" ")])]),r("el-form",{ref:"bindLoginFormRef",staticClass:"wechat-bind-login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[r("el-form-item",{staticClass:"form-type",attrs:{prop:"type"}},[r("LoginTypeSwitcher",{staticClass:"jc:max-w-full!",attrs:{value:e.loginForm.type,"is-en":e.isEn,"show-account":""},on:{input:e.handleTypeInput,change:e.handleChangeSubType}})],1),e.LoginType==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{value:e.loginForm.username,placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.loginForm.username=s}}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{value:e.loginForm.password,type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},on:{input:function(s){e.loginForm.password=s}}})],1)]:e.LoginType==="email"?[r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{value:e.loginForm.email,placeholder:e.isEn?"Email Address":"邮箱地址"},on:{input:function(s){e.loginForm.email=s},blur:function(s){return e.validateField("email")}}})],1)]:[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"tel"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{value:e.loginForm.phone,placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{input:function(s){e.loginForm.phone=s},blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{value:e.loginForm.areaCode,placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:e.handleAreaCodeChange}},[e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}])})],1)],1)],e.LoginType==="email"||e.LoginType==="mobile"?r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{value:e.loginForm.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{input:function(s){e.loginForm.code=s},send:e.handleGetCode}})],1):e._e(),r("div",{staticClass:"register-bottom"},[r("el-button",{staticClass:"submit-btn",attrs:{loading:e.loadingBtn},on:{click:e.handleSubmit}},[e._v(e._s(e.isEn?"Login and Link":"登录并绑定")+" "),r("img",{staticStyle:{width:"16px",height:"16px","vertical-align":"middle"},attrs:{src:Ic,alt:""}})])],1)],2),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},v1=[],y1=ve(h1,g1,v1,!1,null,"a9f6eb3d");const Bc=y1.exports,C1=Object.freeze(Object.defineProperty({__proto__:null,default:Bc},Symbol.toStringTag,{value:"Module"})),_1="data:image/webp;base64,UklGRhgCAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSKIAAAABgFZbb9xIEATBUAyhEAqhDBIGNgOXQaEIgiAYwtfZtM3+LyImgP4d+1BAVqvCAx8OLsECo3CFAfMo0ODsecsz88SjeXD/vNQjedOzPgDCuqfl0bRNKsBiEa5APD+aTCWI2l0AnZ3ehTnKW+9dgIp/Kf146Aa2PM5egI8Ns66WwwOBq70JvmyE6jVsIPwIOpB4xuyMXU5jbhlnDF0lSm/03whWUDggUAEAAPALAJ0BKjAAMAA+LRKGQqGhDjduAAwBYlsAMgdwP4BoK/wA4aTvN+x2I4/APyq/oHuA/gHOJ7gD9XfMA6QDrYP0z9gD9APRQ/ZD4FP219gD9UARvMpbMuVN2542MibJh8RTb2jFdmX4AP7/8PzX//KRnpdaTTuezU2wfPVue6zvilNiLydYqgogCDf+z+cTn0sw++BUMUAXW/ykOXcyNB2xLlv/9baGU9jTlskvg+1Mv/puM3RR2VkkR8nzfym/nfxZ64t/3bWsauPme9EKHGYBBZv8u8jT/DUfv3hKs//3THxis4v6eWcTTUpo9W6e2PurHwS2B16ei/If+Ww23FLqmd3jWPwTwBTDBEJ3HBZfQftnPWpA9rY4f//0skE1+0YwOJB/my/FIk/GCZloGHd/7iN//8vNjd/zOhSoSRNP6Xtp1K0Qc6nr99ilYAAAAA==",A1="data:image/webp;base64,UklGRiQBAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSL8AAAABcFXbVtygAAdPSGKgDqIgMVAMgAIcxEdRAApQcJ0E3tD5LyLYuG0jSXKOaqvMPsL9Ha6xASWTFT5hMHmbKphYTJIwNRlAYFz0ZMB4PDiqHrB+XhpHMT4TIOtZOJhbp0OUOCcy1XDo75yrSk6UONkFJb71XIAWhxs/aFYm7qhkV5PvDmWYa1lGV2s4Wwd6OcM6RlE+dOaZZrpEXD5BoOr3d+sQWTfFkxAbhATAOF1DN6cKD1TD3cncipS2uz9DBwBWUDggPgAAAFADAJ0BKjAAMAA+JQ6FQqGHjAYAkS0gABSWHJn8435xRpEAAP7//k4XP//7dtNf5ihlI///6OQD//9v7AAA",b1=y.defineComponent({name:"WechatChooseType",components:{ElButton:U.Button},props:{isEn:{type:Boolean,default:!1}},emits:["toBind","toRegister"],setup(i,{emit:e}){return{handleLogin:()=>{e("toBind")},handleRegister:()=>{e("toRegister")}}}});var w1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"wechat-choose-type"},[r("div",[r("div",{staticClass:"choose-title"},[e._v(" "+e._s(e.isEn?"Please select whether you already have a JCtrans account":"请选择是否已有JCtrans账号")+" ")]),r("div",{staticClass:"choose-nav"},[e._v(" "+e._s(e.isEn?"If you already have a JCtrans account, you can directly link it with WeChat. If you do not have a JCtrans account, please register first":"若已有JCtrans账号,可直接与微信绑定;若没有JCtrans账号,请先注册")+" ")]),r("div",{staticClass:"btn-container"},[r("el-button",{staticClass:"choose-btn jc:mb-6 default-btn jc:outline-none!",on:{click:e.handleRegister}},[r("div",{staticClass:"btn-content"},[r("img",{staticClass:"icon-account",attrs:{src:_1,alt:"register"}}),e._v(" "+e._s(e.isEn?"Create New Account":"注册新账号")+" ")])]),r("el-button",{staticClass:"choose-btn submit-btn jc:outline-none!",attrs:{type:"primary"},on:{click:e.handleLogin}},[r("div",{staticClass:"btn-content"},[r("img",{staticClass:"icon-account",attrs:{src:A1,alt:"login"}}),e._v(" "+e._s(e.isEn?"Bind Existing Account":"绑定已有账号")+" ")])])],1)])])},E1=[],S1=ve(b1,w1,E1,!1,null,"2d5009d1");const Fc=S1.exports,I1=Object.freeze(Object.defineProperty({__proto__:null,default:Fc},Symbol.toStringTag,{value:"Module"})),x1=y.defineComponent({name:"WechatLogin",components:{ElButton:U.Button},props:{appId:{type:String,default:"ERA"},path:{type:String,default:""},isEn:{type:Boolean,default:!1}},emits:["success","need-register","need-complete"],setup(i,{emit:e}){const r=y.ref(null),s=y.ref(!0),u=y.ref(!1),p=y.ref("");let l=null;const m=async k=>{if(await y.nextTick(),!!r.value)try{await gv.toCanvas(r.value,k,{width:200,margin:1,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:"M"})}catch(x){console.error("QR Code render error:",x)}},_=async()=>{var k,x;s.value=!0,F();try{const{data:P}=await E.getLoginQrCode();if((P==null?void 0:P.code)===0){p.value=(k=P.data)==null?void 0:k.uniqueCode,u.value=!1;try{E.setAuthSessionItems({uniqueCode:p.value})}catch(H){console.log("setAuthSessionItems error:",H)}await m((x=P.data)==null?void 0:x.qrCodeUrl),v()}else u.value=!0}catch(P){console.error("Fetch WeChat QR fail:",P)}finally{s.value=!1}},v=()=>{var x;const k=((x=window.BASE_INFO)==null?void 0:x.WX_POLLING_TIME)||3e3;l=setInterval(async()=>{try{const{data:P}=await E.loginByQrCode({uniqueCode:p.value,appId:i.appId,redirectPath:i.path||"",kick:!1,prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")});P.code===0&&I(P)}catch(P){console.error("Polling error:",P),F()}},k)},I=k=>{switch(k.subcode){case"EXPIRED":u.value=!0,F();break;case"FOLLOWED_CANCEL":u.value=!0,F();break;case"FOLLOWED_NO_USER":e("need-register",p.value);break;case"FOLLOWED_LOGIN_SUCCESS":F(!1),S(k.data);break}},F=(k=!0)=>{k&&(p.value=""),E.setAuthSessionItems({uniqueCode:""}),l&&(clearInterval(l),l=null)},R=()=>{_()},S=async k=>{if(k.result&&E.setTokenAll(k.result),k.redirect===!0){const x=i.appId==="CPA"?"tgc-CPA":"tgc";qt.set(x,k.tgc,{expires:30})}if(k.hasLogon===!0)try{await U.MessageBox.confirm(i.isEn?"The account has already logged in elsewhere. Do you want to force login?":"该账号已在其他地方登录,是否强制登录?",i.isEn?"Tips":"提示",{confirmButtonText:i.isEn?"Confirm":"确定",cancelButtonText:i.isEn?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}),O()}catch{_()}else W(k.redirectPath)},O=async()=>{var k;s.value=!0;try{const{data:x}=await E.loginByQrCode({uniqueCode:p.value,appId:i.appId,redirectPath:i.path||"",kick:!0,prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")});if(x.code===0){if(E.setTokenAll(x.data.result),(k=x.data.result)!=null&&k.improveComp){e("need-complete",x.data.result.improveComp);return}W(x.data.redirectPath)}}catch{U.Message.error(i.isEn?"Login failed":"登录失败")}finally{s.value=!1}},W=k=>{localStorage.setItem("jc-qrCode-login","wx"),F(),k&&Vt(k),e("success")};return y.onMounted(()=>{_()}),y.onUnmounted(()=>{F()}),{qrCanvasRef:r,loadingCode:s,isShowMask:u,handleRefresh:R}}}),T1="data:image/webp;base64,UklGRs4CAABXRUJQVlA4WAoAAA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Hdz1zdzA5sDmTZ4EKeWJp2may+JdpEray5o7HRnnPYCzy2e43uvNSQvW5CfhcwDY1eKWK4CX3WgRAt0NzG7T6At8vGkUw3FXXX8YGLkf9c+8rLBeOI2gxyD51juA6+5ZuFjaej6YvL3vEsEhxb5nuOicA8KHHlECg1QHMzfnukeCszhGAgY6hBCT+RTuvkMWUWQz7XsGgPs2OUSdS9Uv2N0tWOIT/l4AVlA4IAIBAACwBwCdASoZABgAPjESh0KiIQ39VgAQAYJbACdM5JkB+meFg2gDaAN0l4AD9QPSA/wHuJ/sl6KYX31WXITTIqQjhEf+VVEAAP0cZ9TkuKczs9Y1za4WaelqmDJ+pg5xRI8RGqa0Xf/vA/xc/Jt7352wODrO+GBNH/+k0H/0IZkEP/+9kflw8xfZOvuJnYDve0V1+ez//9tEgIWxjEjRen4x7s8w+Gha3PQxumTkBwxFTp+YlQXvZzWdZW3wRP0nsu895denVK5N8FE8Zg23a9118GTARL99uq+SY4/E8PeGs/GKL4ufe2EdSmq0ixJ9pxRZOAX/4XkoyRtaDa35BrgAAAA=";var B1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"login-wx"},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingCode,expression:"loadingCode"}],staticClass:"login-wx-code"},[r("div",{staticClass:"qr-canvas-wrapper flex-center",class:{"qrcode-error-mask":e.isShowMask}},[r("canvas",{ref:"qrCanvasRef"})]),e.isShowMask?[r("div",{staticClass:"refresh-overlay flex-center",on:{click:e.handleRefresh}},[r("img",{staticClass:"refresh-icon",attrs:{src:T1,alt:"refresh"}}),r("div",{staticClass:"expired-text mt10 mb10"},[e._v(" "+e._s(e.isEn?"The QR code has expired":"二维码已过期")+" ")]),r("el-button",{staticClass:"jc:text-white",attrs:{type:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleRefresh.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Rescan QR code":"重新扫码")+" ")])],1)]:e._e(),r("div",{staticClass:"scan-tip"},[r("img",{attrs:{src:R1,alt:"wechat"}}),r("span",[e._v(e._s(e.isEn?"Scan to login/register":"微信扫码登录/注册JCtrans"))])])],2)])},F1=[],P1=ve(x1,B1,F1,!1,null,"66101abf");const Pc=P1.exports,D1=Object.freeze(Object.defineProperty({__proto__:null,default:Pc},Symbol.toStringTag,{value:"Module"})),k1={name:"JcLoginDialog",model:{prop:"visible",event:"update:visible"},components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,GoogleInput:Ht,CodeInput:an,RegisterForm:bc,LoginTypeSwitcher:wi,JcVerifySlide:vn,WechatLogin:Pc,WechatChooseType:Fc,WechatBindLogin:Bc,CompleteInfoForm:wc,ForgetPassword:Sc,ThirdBindLogin:xc,ThirdRegisterForm:Tc},props:{visible:{type:Boolean,default:!1},lang:{type:String,default:""},currentPath:{type:String,default:"/"},loginPath:{type:String,default:"http://localhost:8086"},showTestThirdBtn:{type:Boolean,default:!1},baseMode:{type:String,default:"login"}},provide(){return{loginPath:this.loginPath,lang:this.lang,isEn:this.isEn}},emit:["update:visible","update:baseMode","open","mode-change","auth-dialog-close","login-success","register-success"],mounted(){const i=E.getRememberAccount();i&&(this.loginForm.username=i.account||"",this.loginForm.password=i.password?E.Decrypt(i.password):"",this.loginForm.remember=!0)},setup(i){const{proxy:e}=y.getCurrentInstance(),r=y.ref(null),s=k=>{var z,J;const x=String(k||"").toLowerCase(),P=String(r.value||"").toLowerCase(),H=((z=E.getAuthSessionItems)==null?void 0:z.call(E))||{};return x==="facebook"||P==="facebook"?"FACEBOOK":x==="linkedin"||P==="linkedin"?"LINKEDIN":x==="wechat"||(J=e==null?void 0:e.formMode)!=null&&J.startsWith("wechat")||H!=null&&H.uniqueCode?"WECHAT":"PASSWORD"},u=y.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const k=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(k)}return!1}),{loading:p,handleAuthSubmit:l,executeRedirect:m}=Rc({appId:"ERA",isEn:u.value,onNeedComplete:k=>{const x=(e==null?void 0:e.loginType)==="code"?"register":"login";e.handleNeedComplete({mode:x,accountType:s(e==null?void 0:e.loginType),payload:k})},onSuccess:k=>{const x=s(e==null?void 0:e.loginType);e.$emit("login-success",{...k||{},accountType:x,mode:"login"}),e.loginForm.remember&&E.setRememberMe(e.loginForm.username,E.Encrypt(e.loginForm.password),!0),e.currentVisible=!1,m(k)}}),{isBindDialogVisible:_,isRegisterVisible:v,bindList:I,isUserClosed:F,startLogin:R,handleBindThirdParty:S,resetBindRegisterState:O}=_C({appId:"ERA",isEn:u.value,onSuccess:k=>{const x=s(r.value);e.$emit("login-success",{...k||{},accountType:x,mode:"login"}),e.currentVisible=!1,m(k)}});y.watch(F,k=>{k&&U.Message.error(u.value?"You have canceled the login.":"您取消了登录。")});const W=k=>{r.value=k;const x=k==="facebook"?"FACEBOOK":k==="linkedin"?"LINKEDIN":k;x&&R(x)};return y.watch(_,k=>{k&&(e.loginType=r.value)}),y.watch(v,k=>{k&&(e.loginType=r.value)}),{thirdBindDialogVisible:_,thirdRegisterVisible:v,bindList:I,authLoading:p,isEn:u,handleAuthSubmit:l,executeRedirect:m,handleThirdClick:W,handleBindThirdParty:S,resetBindRegisterState:O}},data(){return{currentVisible:this.visible,formMode:"login",loginType:"account",loginMethod:"email",areaCodeData:[],IpData:null,isCounting:!1,countdown:60,codeReady:!1,timer:null,loginForm:{type:"email",username:"",password:"",remember:!1,areaCode:"",phone:"",email:"",code:""},loginRules:{username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Mn(i,e,r,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>rn(i,e,r,this.isEn),trigger:"blur"}]},verifyData:{},captchaVisible:!1,mobileUid:"",emailUid:"",currentVerifyData:null,pendingCompleteEvent:null,_lastEmittedBaseMode:this.baseMode==="register"?"register":"login"}},computed:{currentDialogWidth(){let i="480px";return["register","need-complete","forget-password"].includes(this.formMode)&&(i="640px"),this.formMode==="login"&&(this.loginType==="linkedin"||this.loginType==="facebook"||this.loginType==="TEST")&&(i="640px"),i},computedRules(){const i={username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,r,s)=>Ln(e,r,s,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,r,s)=>Mn(e,r,s,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,r,s)=>rn(e,r,s,this.isEn),trigger:"blur"}]};return this.loginType==="account"?{username:i.username,password:i.password}:this.loginType==="code"?{code:i.code,...this.loginForm.type==="email"?{email:i.email}:{phone:i.phone}}:{}}},watch:{visible(i){this.currentVisible=i},baseMode(i){const e=i==="register"?"register":"login";this.currentVisible&&["login","register"].includes(this.formMode)&&(this.formMode=e)},currentVisible(i){this.$emit("update:visible",i)},formMode:{handler(i){const e=i==="register"?"register":"login";this._lastEmittedBaseMode!==e&&(this._lastEmittedBaseMode=e,this.$emit("update:baseMode",e),this.$emit("mode-change",{formMode:i,baseMode:e}))},immediate:!0}},methods:{go2Agreement:os,go2Policy:ls,handleOpen(){this.formMode=this.baseMode||"login",this._lastEmittedBaseMode=this.formMode==="register"?"register":"login",this.$emit("open")},handleClose(){this.$emit("auth-dialog-close",{loginType:this.loginType,formMode:this.formMode}),this.loginType="account",this.formMode=this.baseMode||"login",this.pendingCompleteEvent=null,E.resetAuthSessionItems(),E.resetGioSessionItems(),this.resetBindRegisterState()},handleTest(i){this.formMode=i},handleNeedComplete(i={}){const e=(i==null?void 0:i.mode)==="register"?"register":"login",r=(i==null?void 0:i.accountType)||this.resolveAccountTypeByContext();this.pendingCompleteEvent={eventName:e==="register"?"register-success":"login-success",accountType:r},this.formMode="need-complete"},handleRegisterNeedComplete(i){this.handleNeedComplete({mode:"register",payload:i})},handleWechatNeedComplete(i){this.handleNeedComplete({mode:"login",accountType:"WECHAT",payload:i})},resolveAccountTypeByContext(){var r;const i=String(this.loginType||"").toLowerCase(),e=((r=E.getAuthSessionItems)==null?void 0:r.call(E))||{};return i==="facebook"?"FACEBOOK":i==="linkedin"?"LINKEDIN":i==="wechat"||e!=null&&e.uniqueCode?"WECHAT":"PASSWORD"},handleRegisterSuccess(i){if(this.pendingCompleteEvent){console.warn("需要完善信息,跳过本次 emit,等待 CompleteInfoForm 处理");return}this.$emit("register-success",{...i||{},accountType:this.resolveAccountTypeByContext(),mode:"register"})},handleWechatSuccess(i){this.$emit("login-success",{...i||{},accountType:"WECHAT",mode:"login"})},handleCompleteSuccess(i){var e;if((e=this.pendingCompleteEvent)!=null&&e.eventName){const r=this.pendingCompleteEvent.eventName==="register-success"?"register":"login";this.$emit(this.pendingCompleteEvent.eventName,{...i||{},accountType:this.pendingCompleteEvent.accountType,mode:r}),this.pendingCompleteEvent=null}i.redirectPath?this.executeRedirect(i):this.currentVisible=!1},handleWechatNeedRegister(){this.formMode="wechat-need-register"},handleWechatLogin(){this.formMode="wechat-bind"},handleWechatRegister(){this.formMode="register"},switchLoginTab(i){this.loginType!==i&&(this.loginType=i,this.$nextTick(()=>{if(!this.$refs.loginFormRef)return;this.$refs.loginFormRef.clearValidate();const e={username:"",password:"",email:"",phone:"",code:"",areaCode:"",remember:this.loginForm.remember,type:this.loginForm.type};Object.assign(this.loginForm,e),this.codeReady=!1}))},validateField(i){this.$refs.loginFormRef.validateField(i,e=>{this.codeReady=e})},handleGetCode({captchaData:i,startTimer:e}){const r=this.loginForm.type==="mobile",s={target:this.loginForm.email||this.loginForm.phone,uuid:i.uuid,code:i.code};r&&(s.areaCode=this.loginForm.areaCode);const u=r?E.sendMobileCodeApi:E.sendEmailCodeApi;this.verifyData=i,e(),u(s).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(r?this.mobileUid=l:this.emailUid=l,U.Message.success(this.isEn?"Verification code sent":"验证码已发送"))}).catch(p=>{console.error(p)})},handleLogin(){this.$refs.loginFormRef.validate(i=>{if(i)if(this.loginType==="account")this.captchaVisible=!0;else{if(!this.verifyData||!this.verifyData.uuid)return U.Message.error(this.isEn?"Please get the verification code first":"请先获取验证码");this.handleCaptchaSuccess(this.verifyData)}})},async handleCaptchaSuccess(i){this.captchaVisible=!1,this.handleAuthSubmit({loginType:this.loginType,loginForm:this.loginForm,captchaData:i,mobileUid:this.mobileUid,emailUid:this.emailUid,areaCodeData:this.areaCodeData,isKick:!1,remember:this.loginForm.remember})},handleForget(){this.formMode="forget-password"},async handleChangeSubType(i){this.loginMethod=i,i=="mobile"&&this.areaCodeData.length===0&&(await this.getLocalIpData(),this.getAreaCodeData())},async getLocalIpData(){let e=(await E.getLocalIpDataApi()).data.data;process.env.NODE_ENV==="development"&&(e={countryId:57,cityId:4022,countryNameCn:"新加坡",countryNameEn:"Singapore",cityNameCn:"新加坡",cityNameEn:"Singapore"}),this.IpData=e},async getAreaCodeData(){var e,r;const i=await E.findPAreaCodeApi();this.areaCodeData=i.data.data.records,this.loginForm.areaCode=(r=(e=i.data.data.records)==null?void 0:e.find(s=>{var u;return s.id===((u=this.IpData)==null?void 0:u.countryId)}))==null?void 0:r.telCode,this.loginForm.areaCode||(this.areaCode="+86")},handleToLogin(){this.formMode="login",this.loginType="account",this.pendingCompleteEvent=null}}};var O1=function(){var e=this,r=e._self._c;return r("el-dialog",{staticClass:"jc-auth-dialog",attrs:{visible:e.currentVisible,"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":"",width:e.currentDialogWidth,"show-close":!0},on:{"update:visible":function(s){e.currentVisible=s},close:e.handleClose,open:e.handleOpen}},[e.formMode==="login"?r("div",{staticClass:"auth-container"},[r("div",{staticClass:"login-section"},[r("div",{staticClass:"login-title"},[e.thirdBindDialogVisible||e.thirdRegisterVisible?r("p",[e._v(" "+e._s(e.isEn?"New User Registration":"新用户注册")+" ")]):r("p",[e._v(" "+e._s(e.isEn?"Welcome Back to JCtrans":"欢迎回到JCtrans")+" ")])]),["account","code"].includes(e.loginType)?[r("div",{staticClass:"tab-header"},[r("span",{staticClass:"tab-header-title",class:{active:e.loginType==="account"},on:{click:function(s){return e.switchLoginTab("account")}}},[e._v(" "+e._s(e.isEn?"Password Login":"账号登录")+" ")]),r("span",{staticClass:"tab-header-title",class:{active:e.loginType==="code"},on:{click:function(s){return e.switchLoginTab("code")}}},[e._v(" "+e._s(e.isEn?"Verification Code Login":"验证码登录")+" ")])]),r("el-form",{ref:"loginFormRef",staticClass:"auth-form login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[e.loginType==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},model:{value:e.loginForm.username,callback:function(s){e.$set(e.loginForm,"username",s)},expression:"loginForm.username"}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},model:{value:e.loginForm.password,callback:function(s){e.$set(e.loginForm,"password",s)},expression:"loginForm.password"}})],1)]:e.loginType==="code"?[r("el-form-item",{attrs:{prop:"type"}},[r("LoginTypeSwitcher",{attrs:{"is-en":e.isEn},on:{change:e.handleChangeSubType},model:{value:e.loginForm.type,callback:function(s){e.$set(e.loginForm,"type",s)},expression:"loginForm.type"}})],1),e.loginForm.type==="email"?r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Email Address":"邮箱地址"},on:{blur:function(s){return e.validateField("email")}},model:{value:e.loginForm.email,callback:function(s){e.$set(e.loginForm,"email",s)},expression:"loginForm.email"}})],1):[r("div",{staticClass:"tel"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(s){return e.validateField("areaCode")}},model:{value:e.loginForm.areaCode,callback:function(s){e.$set(e.loginForm,"areaCode",s)},expression:"loginForm.areaCode"}},e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),1)],1)]},proxy:!0}],null,!1,1341634787),model:{value:e.loginForm.phone,callback:function(s){e.$set(e.loginForm,"phone",s)},expression:"loginForm.phone"}})],1)],1)],r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{send:e.handleGetCode},model:{value:e.loginForm.code,callback:function(s){e.$set(e.loginForm,"code",s)},expression:"loginForm.code"}})],1)]:e._e(),r("div",{staticClass:"login-passport"},[r("div",{staticClass:"login-remember"},[r("el-form-item",{staticClass:"remember-item",attrs:{prop:"remember"}},[r("el-checkbox",{staticClass:"remember-btn",model:{value:e.loginForm.remember,callback:function(s){e.$set(e.loginForm,"remember",s)},expression:"loginForm.remember"}},[e._v(e._s(e.isEn?"Remember Me":"30天自动登录"))])],1),e.loginType==="account"?r("span",{staticClass:"forget-pwd-btn",on:{click:e.handleForget}},[e._v(e._s(e.isEn?"Forgot your password?":"忘记密码"))]):e._e()],1),e.loginType==="code"?r("div",{staticClass:"login-agreement"},[r("div",{staticClass:"login-agreement-text"},[r("span",{staticClass:"login-agreement-text-item"},[e._v(e._s(e.isEn?"Automatically log in after verification if not registered. Registration means you agree":"未注册验证后自动登录,注册即代表同意"))]),r("span",{staticClass:"link-type",on:{click:function(s){return s.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),r("span",{staticClass:"login-agreement-text-item jc:mx-0.5"},[e._v(e._s(e.isEn?"and":""))]),r("span",{staticClass:"link-type",on:{click:function(s){return s.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])]):e._e(),r("el-button",{staticClass:"submit-btn",attrs:{loading:e.authLoading},on:{click:e.handleLogin}},[e._v(" "+e._s(e.loginType==="code"?e.isEn?"Register and log in":"登录/注册":e.isEn?"Sign In":"登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],1)],2)]:e._e(),e.loginType==="wechat"?r("div",[r("WechatLogin",{attrs:{"is-en":e.isEn},on:{success:e.handleWechatSuccess,"need-register":e.handleWechatNeedRegister,"need-complete":e.handleWechatNeedComplete}})],1):e._e(),["linkedin","facebook","TEST"].includes(e.loginType)?r("div",[e.thirdBindDialogVisible?r("ThirdBindLogin",{staticClass:"jc:mt-1",attrs:{"is-en":e.isEn,"bind-list":e.bindList}}):e._e(),e.thirdRegisterVisible?r("ThirdRegisterForm",{staticClass:"jc:mt-6",attrs:{"is-en":e.isEn},on:{"bind-third-party":e.handleBindThirdParty,"register-success":e.handleRegisterSuccess,"need-complete":e.handleRegisterNeedComplete}}):e._e()],1):e._e(),e.loginType!=="TEST"&&e.loginType!=="facebook"&&e.loginType!=="linkedin"?r("div",{staticClass:"third-party-sign-in"},[r("div",{staticClass:"third-party-sign-in-title"},[e._v(" "+e._s(e.isEn?"Sign in with":"其他登录方式")+" ")]),r("div",{staticClass:"third-party-sign-in-group"},[["wechat","linkedin","facebook"].includes(e.loginType)?r("div",{staticClass:"third-party-sign-in-btn",on:{click:()=>e.loginType="account"}},[r("i",{staticClass:"icon-account"}),r("span",[e._v(" "+e._s(e.isEn?"Account":"账户"))])]):["account","code"].includes(e.loginType)?r("div",{staticClass:"third-party-sign-in-btn",on:{click:()=>e.loginType="wechat"}},[r("i",{staticClass:"icon-auth-wechat"}),r("span",[e._v(e._s(e.isEn?"WeChat":"微信"))])]):e._e(),r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("linkedin")}}},[r("i",{staticClass:"icon-auth-linkedin"}),r("span",[e._v("LinkedIn")])]),r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("facebook")}}},[r("i",{staticClass:"icon-auth-facebook"}),r("span",[e._v("Facebook")])]),e.showTestThirdBtn?r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("TEST")}}},[r("i",{staticClass:"icon-auth-facebook"}),r("span",[e._v("TEST")])]):e._e()])]):e._e(),!e.thirdBindDialogVisible&&!e.thirdRegisterVisible?r("div",{staticClass:"bottom-tip"},[e._v(" "+e._s(e.isEn?"Don't have an account?":"没有账户?")+" "),r("span",{staticClass:"action-text",on:{click:function(s){e.formMode="register"}}},[e._v(e._s(e.isEn?"Sign Up":"立即注册")+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"}})])])]):e._e()],2)]):e.formMode==="wechat-need-register"?r("WechatChooseType",{attrs:{"is-en":e.isEn},on:{"to-bind":e.handleWechatLogin,"to-register":e.handleWechatRegister}}):e.formMode==="wechat-bind"?r("WechatBindLogin",{attrs:{"is-en":e.isEn},on:{"need-complete":e.handleWechatNeedComplete}}):e.formMode==="register"?r("div",{staticClass:"auth-container"},[r("div",{staticClass:"register-section"},[r("RegisterForm",{attrs:{"is-en":e.isEn},on:{"to-login":e.handleToLogin,"need-complete":e.handleRegisterNeedComplete,"register-success":e.handleRegisterSuccess}})],1)]):e.formMode==="need-complete"?r("CompleteInfoForm",{attrs:{"is-en":e.isEn},on:{success:e.handleCompleteSuccess}}):e.formMode==="forget-password"?r("ForgetPassword",{attrs:{"is-en":e.isEn},on:{"to-login":e.handleToLogin}}):e._e(),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},L1=[],N1=ve(k1,O1,L1,!1,null,"59e8d372");const M1=N1.exports,U1=Object.freeze(Object.defineProperty({__proto__:null,default:M1},Symbol.toStringTag,{value:"Module"}));function q1(i){const e=y.ref([]),r="_search_history_cache",s=typeof window!="undefined"&&typeof localStorage!="undefined",u=y.computed(()=>(i.value||"")+r),p=y.computed(()=>!!i.value&&i.value!==""),l=_=>{if(!_||!s)return;const v=e.value.filter(F=>F.id&&F.id!==_.id||F.display!==_.display);v.unshift(_);const I=v.slice(0,4);if(p.value){e.value=I;try{localStorage.setItem(u.value,JSON.stringify(I))}catch(F){console.warn("LocalStorage save failed:",F)}}},m=()=>{e.value=[],s&&localStorage.removeItem(u.value)};return y.onMounted(()=>{if(s&&p.value){const _=localStorage.getItem(u.value);if(_)try{e.value=JSON.parse(_)}catch{e.value=[]}}}),{searchHistory:e,saveToHistory:l,clearHistory:m,HasHistory:p}}async function V1(i,e=["Continent","Country","City","Seaport","Airport"],r={}){return E.locationSearchV2.searchByName({keyword:i,displayInfo:e,...r})}const W1=(i,e)=>E.locationSearchV2.searchByIdWithType(i,e);function H1(i,e){const r=y.ref([]),s=y.ref(!1),u=y.ref(!1),p=y.ref(!1),l=y.ref(1),m=20,_=y.ref(0),v=y.computed(()=>{const R=[...e.value];return R.includes("Country")&&!R.includes("Region")&&R.push("Region"),R}),I=R=>Array.isArray(R)?R.filter(S=>v.value.includes(S.type)):[];return{searchResults:r,loading:s,isFetchingMore:u,isFinished:p,fetchData:async(R=!1)=>{const S=i.value.trim();if(!S){r.value=[],_.value=0,p.value=!1;return}if(R){if(u.value||p.value)return;u.value=!0,l.value+=1}else{if(s.value)return;s.value=!0,l.value=1,p.value=!1}try{const O=await V1(S,e.value,{current:l.value,size:m}),W=I(O.records||[]);R?r.value.push(...W):r.value=W,_.value=O.total||0,(r.value.length>=_.value||W.length<m)&&(p.value=!0)}catch(O){console.error("Search request failed:",O),R&&(l.value-=1)}finally{s.value=!1,u.value=!1}}}}const Ya=i=>!!(i!=null&&i.id)&&!!(i!=null&&i.type)&&!(i!=null&&i.display);function G1(i){return{hydrateMultiple:async s=>{if(!Array.isArray(s)||s.length===0)return{updatedList:s,hasChanged:!1};const u=s.filter(v=>Ya(v));if(u.length===0)return{updatedList:s,hasChanged:!1};const p=u.reduce((v,I)=>{const F=I.type;return v[F]||(v[F]=[]),v[F].push(I.id),v},{}),l=new Map;for(const[v,I]of Object.entries(p)){if(I.length===0)continue;const F=await i(I,v);((F==null?void 0:F.records)||[]).forEach(S=>{!(S!=null&&S.id)||!(S!=null&&S.type)||l.set(`${S.type}::${S.id}`,S)})}let m=!1;return{updatedList:s.map(v=>{if(!Ya(v))return v;const I=`${v.type}::${v.id}`,F=l.get(I);return F?(m=!0,{...v,...F}):v}),hasChanged:m}},hydrateSingle:async s=>{if(!s||!Ya(s))return s;const u=await i(s.id,s.type),p=(u==null?void 0:u.records)||[],l=p.find(m=>(m==null?void 0:m.id)===s.id&&(m==null?void 0:m.type)===s.type)||p[0];return l?{...s,...l}:s}}}const J1=y.defineComponent({name:"JcMSearch",model:{prop:"value",event:"input"},props:{value:{type:null,default:void 0},multiple:{type:Boolean,default:!1},lang:{type:String,default:"zh-CN"},placeholder:{type:String,default:""},historyKey:{type:String,default:""},reportType:{type:String,default:"City"}},setup(i,{emit:e}){const r=y.ref(!1),s=y.ref(""),u=y.ref(null),p=y.ref(null);let l=null;const{searchHistory:m,saveToHistory:_,clearHistory:v}=q1(y.computed(()=>i.historyKey)),{searchResults:I,loading:F,isFetchingMore:R,isFinished:S,fetchData:O}=H1(s,y.ref(["City","Seaport","Airport"])),{hydrateMultiple:W,hydrateSingle:k}=G1(W1),x=y.computed(()=>{var K,te,re,ae,Pe,ge;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const Te=(K=useCookie("jc-language"))==null?void 0:K.value;if(Te)return/^en(-US)?$/.test(Te)}}catch{}if(typeof document!="undefined"){const Te=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(Te)}try{if(typeof useNuxtApp=="function"){const Te=useNuxtApp(),Je=((ge=(Pe=(ae=(re=(te=Te==null?void 0:Te.ssrContext)==null?void 0:te.event)==null?void 0:re.node)==null?void 0:ae.req)==null?void 0:Pe.headers)==null?void 0:ge.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(Je)}}catch{}return!1}),P=y.computed(()=>Array.isArray(i.value)?i.value:i.value?[i.value]:[]);y.watch(()=>i.value,async(K,te)=>{if(JSON.stringify(K)!==JSON.stringify(te)){if(i.multiple&&Array.isArray(K)){try{const{updatedList:re,hasChanged:ae}=await W(K);ae&&e("input",re)}catch(re){console.error("Batch fetch detail failed:",re)}return}if(!i.multiple&&(K!=null&&K.id)&&(K!=null&&K.type)&&!(K!=null&&K.display))try{const re=await k(K);re&&re!==K&&e("input",re)}catch(re){console.error("Single fetch detail failed:",re)}}},{immediate:!0,deep:!0});const H=y.computed(()=>!i.multiple&&!!i.value),z=y.computed(()=>H.value?_e(i.value):""),J=y.computed(()=>P.value.length>0),b=()=>{r.value=!0,y.nextTick(()=>{var K,te,re;s.value=x.value?((K=i.value)==null?void 0:K.nameEn)||"":((te=i.value)==null?void 0:te.nameCn)||"",(re=u.value)==null||re.focus(),s.value&&O(!1)})},q=()=>{r.value=!1,s.value=""},B=K=>{_(K),i.multiple?P.value.some(re=>re.id===K.id)||e("input",[...P.value,K]):(e("input",K),q()),e("select",K)},w=()=>{e("input",i.multiple?[]:null)},M=y.ref(!1),G=K=>{const te=K.target;if(!te)return;te.scrollTop+te.clientHeight>=te.scrollHeight-80&&s.value&&!F.value&&!R.value&&!S.value&&!M.value&&(M.value=!0,O(!0))};y.watch(R,K=>{K||(M.value=!1)});const Y=()=>{l&&clearTimeout(l),l=setTimeout(()=>{var K;M.value=!1,(K=p.value)==null||K.scrollTo({top:0}),O(!1)},300)};y.onBeforeUnmount(()=>{l&&(clearTimeout(l),l=null)});const _e=K=>x.value?K.displayEn||K.display:K.displayCn||K.display;return{SearchIcon:vc,ICON_MORE:Ci,isDropdownVisible:r,query:s,inputRef:u,scrollContainer:p,isEn:x,selectedItems:P,isSelected:H,selectedLabel:z,hasValue:J,searchHistory:m,searchResults:I,loading:F,isFetchingMore:R,isFinished:S,clearHistory:v,openSearch:b,closeSearch:q,selectItem:B,clearAll:w,handleScroll:G,onInput:Y,getItemLabel:_e,getItemType:K=>{const te={City:"城市",Seaport:"港口",Airport:"机场"};return x.value?K:te[K]||K},isItemActive:K=>P.value.some(te=>te.id===K.id),handleApplyData:async()=>{var te;const K=(te=s.value)==null?void 0:te.trim();if(K)try{await E.reportNewTypeDataApi({reportData:K,reportType:i.reportType})}catch(re){console.error("Report apply data failed:",re)}finally{e("apply",K)}}}}});var j1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"h5-search-container"},[r("div",{staticClass:"search-trigger",on:{click:e.openSearch}},[r("div",{staticClass:"trigger-content"},[r("img",{staticClass:"search-icon-m",attrs:{src:e.SearchIcon}}),r("div",{staticClass:"placeholder-text"},[e.multiple&&e.selectedItems.length>0?[r("div",{staticClass:"scroll-container"},[e._l(e.selectedItems,function(s){return r("div",{key:s.id,staticClass:"selected-tag"},[r("span",{staticClass:"tag-text"},[e._v(e._s(s.display))])])}),r("span",{staticClass:"selected-count-text"},[e._v(" "+e._s(e.isEn?"Selected":"已选")+" ("+e._s(e.selectedItems.length)+") ")])],2)]:!e.multiple&&e.isSelected?[r("span",{staticClass:"selected-val"},[e._v(e._s(e.selectedLabel))])]:[r("span",{staticClass:"placeholder-gray"},[e._v(" "+e._s(e.placeholder||(e.isEn?"Search":"搜索"))+" ")])]],2)]),e.hasValue?r("span",{staticClass:"clear-trigger",on:{click:function(s){return s.stopPropagation(),e.clearAll.apply(null,arguments)}}},[e._v(" ⓧ ")]):e._e()]),e.isDropdownVisible?r("div",{staticClass:"h5-modal-root"},[r("transition",{attrs:{name:"fade"}},[r("div",{staticClass:"h5-mask",on:{click:e.closeSearch}})]),r("transition",{attrs:{name:"slide-up"}},[r("div",{staticClass:"h5-drawer-card"},[r("div",{staticClass:"drawer-handle",on:{click:e.closeSearch}}),r("div",{staticClass:"h5-header"},[r("div",{staticClass:"h5-input-wrapper"},[r("img",{staticClass:"inner-icon",attrs:{src:e.SearchIcon}}),r("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"inputRef",attrs:{placeholder:e.isEn?"City/Port/Airport":"搜索城市/港口/机场"},domProps:{value:e.query},on:{input:[function(s){s.target.composing||(e.query=s.target.value)},e.onInput]}}),e.query?r("div",{staticClass:"h5-clear-btn",on:{click:function(s){e.query=""}}},[e._v(" ✕ ")]):e._e()]),r("div",{staticClass:"h5-cancel-btn",on:{click:e.closeSearch}},[e._v(" "+e._s(e.isEn?"Cancel":"取消")+" ")])]),r("div",{ref:"scrollContainer",staticClass:"h5-main-content",on:{scroll:e.handleScroll}},[e.loading&&!e.isFetchingMore?r("div",{staticClass:"h5-spinner-box"},[r("div",{staticClass:"h5-spinner"})]):e._e(),!e.query&&e.searchHistory.length>0?r("div",{staticClass:"h5-section"},[r("div",{staticClass:"h5-section-hd"},[r("span",[e._v(e._s(e.isEn?"Recent":"最近搜索"))]),r("span",{staticClass:"h5-clear-history",on:{click:e.clearHistory}},[e._v(" "+e._s(e.isEn?"Clear":"清空")+" ")])]),r("div",{staticClass:"h5-history-grid"},e._l(e.searchHistory,function(s,u){return r("div",{key:u,staticClass:"h5-history-tag",on:{click:function(p){return e.selectItem(s)}}},[e._v(" "+e._s(e.getItemLabel(s))+" ")])}),0)]):e._e(),e.searchResults.length>0?r("div",{staticClass:"h5-result-list"},[e._l(e.searchResults,function(s,u){return r("div",{key:u,staticClass:"h5-result-item",class:{"is-active":e.isItemActive(s)},on:{click:function(p){return e.selectItem(s)}}},[r("div",{staticClass:"item-type",class:s.type.toLowerCase()},[e._v(" "+e._s(e.getItemType(s.type))+" ")]),r("div",{staticClass:"item-info"},[r("div",{staticClass:"item-name"},[e._v(e._s(e.getItemLabel(s)))]),s.parentName?r("div",{staticClass:"item-sub"},[e._v(" "+e._s(s.parentName)+" ")]):e._e()])])}),r("div",{staticClass:"h5-load-status"},[e.isFetchingMore?[r("div",{staticClass:"mini-spinner"}),r("span",[e._v(e._s(e.isEn?"Loading...":"加载中..."))])]:e.isFinished&&e.query?r("span",{staticClass:"no-more"},[e._v(" "+e._s(e.isEn?"No more results":"没有更多结果了")+" ")]):e._e()],2)],2):e._e(),e.query&&!e.loading&&e.searchResults.length===0?r("div",{staticClass:"h5-load-status h5-empty"},[r("p",[e._v(" "+e._s(e.isEn?"No Results Found. ":"未找到相关结果,")+" ")]),r("div",{staticClass:"h5-empty-apply-wrap"},[r("span",{staticClass:"h5-empty-apply",on:{click:function(s){return s.stopPropagation(),e.handleApplyData.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据")+" ")]),r("img",{staticClass:"h5-empty-apply-icon",attrs:{src:e.ICON_MORE,alt:"more"},on:{click:function(s){return s.stopPropagation(),e.handleApplyData.apply(null,arguments)}}})])]):e._e()])])])],1):e._e()])},z1=[],Q1=ve(J1,j1,z1,!1,null,"82c8e578");const K1=Q1.exports,X1=Object.freeze(Object.defineProperty({__proto__:null,default:K1},Symbol.toStringTag,{value:"Module"})),Y1=U.Cascader,$1=y.defineComponent({name:"LineCascader",components:{"el-cascader":Y1},model:{prop:"value",event:"input"},props:{value:{type:Array,default:()=>[]},lineId:{type:Number,default:null},placeholder:{type:String,default:""},lang:{type:String,default:""},lineType:{type:String,default:"shipping"},multiple:{type:Boolean,default:!0}},emits:["input","update:lineId","change","apply"],setup(i,{emit:e}){const r=y.ref(),s=y.ref([]),u=y.ref(!1),p=y.ref(""),l=y.ref(i.value||[]),m=y.computed(()=>({multiple:i.multiple,expandTrigger:"click",emitPath:!1,checkStrictly:!1})),_=y.computed(()=>{var x,P,H,z,J,b;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const q=(x=useCookie("jc-language"))==null?void 0:x.value;if(q)return/^en(-US)?$/.test(q)}}catch{}if(typeof document!="undefined"){const q=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(q)}try{if(typeof useNuxtApp=="function"){const q=useNuxtApp(),B=((b=(J=(z=(H=(P=q==null?void 0:q.ssrContext)==null?void 0:P.event)==null?void 0:H.node)==null?void 0:z.req)==null?void 0:J.headers)==null?void 0:b.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(B)}}catch{}return!1}),v=y.computed(()=>s.value.map(x=>{var P;return{label:_.value?x.nameEn||x.nameCn:x.nameCn||x.nameEn,value:`line-${x.id}`,children:(((P=x.raw)==null?void 0:P.countryList)||[]).map(H=>({label:_.value?H.nameEn:H.nameCn,value:`${x.id}-${H.id}`,shortCode:H.shortCode}))}})),I=y.computed(()=>i.placeholder?i.placeholder:_.value?"Please select route":"涉及航线选择"),F=y.computed(()=>u.value?_.value?"Searching...":"正在搜索中...":_.value?"No results found":"暂无结果"),R=async x=>{u.value=!0,p.value=x;try{const P=await E.locationSearchV2.line.searchAllByCountry(i.lineType);s.value=Array.isArray(P)?P:(P==null?void 0:P.records)||[]}catch(P){console.error("Search failed:",P),s.value=[]}finally{u.value=!1}},S=(x,P)=>{e("input",x),e("update:lineId",P),e("change",{countryIds:x,lineId:P})},O=()=>{},W=x=>{if(!x||x.length===0){l.value=[],S([],null);return}const P=x[x.length-1];if(P.startsWith("line-")){const[b,q]=P.split("-"),B=x.filter(w=>w.endsWith(`${q}`));S([],q),e("change",B);return}const[H]=P.split("-"),z=x.filter(b=>b.startsWith(`${H}-`));l.value=z;const J=z.map(b=>b.split("-")[1]);S(J,H),e("change",z)},k=async()=>{if(p.value)try{await E.reportNewTypeDataApi({reportData:p.value,reportType:"Line"})}catch{}e("apply",p.value),r.value&&(r.value.dropDownVisible=!1)};return y.onMounted(()=>{R("")}),y.watch(()=>i.value,x=>{const P=i.lineId;P&&x&&x.length>0?l.value=x.map(H=>`${P}-${H}`):l.value=[`line-${i.lineId}`]},{deep:!0,immediate:!0}),{selectRef:r,selectedValues:l,options:s,loading:u,cascaderProps:m,transformedOptions:v,currentPlaceholder:I,noDataText:F,handleExpand:O,handleChange:W,handleApply:k,ICON_MORE:Ci}}});var Z1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"jc-line-cascader"},[r("el-cascader",{ref:"selectRef",staticStyle:{width:"100%"},attrs:{"popper-class":"jc-line-cascader-pop",options:e.transformedOptions,props:e.cascaderProps,placeholder:e.currentPlaceholder,loading:e.loading,"no-data-text":e.noDataText,filterable:"",clearable:""},on:{"expand-change":e.handleExpand,change:e.handleChange},model:{value:e.selectedValues,callback:function(s){e.selectedValues=s},expression:"selectedValues"}})],1)},e_=[],t_=ve($1,Z1,e_,!1,null,null);const n_=t_.exports,r_=Object.freeze(Object.defineProperty({__proto__:null,default:n_},Symbol.toStringTag,{value:"Module"})),i_={},Mt=(...i)=>{for(const e of i)if(typeof e=="string"){const r=e.trim();if(r)return r}return""},$a=(...i)=>{for(const e of i){if(typeof e=="boolean")return e;if(typeof e=="string"){const r=e.trim().toLowerCase();if(r==="true")return!0;if(r==="false")return!1}}},a_=i=>{if(typeof window=="undefined")return{};const e=window,r=e==null?void 0:e[i],s=e==null?void 0:e.__JCTRANS_GIO_CONFIG__,u=e==null?void 0:e.__GIO_CONFIG__,p=r||s||u;return p&&typeof p=="object"?p:{}},s_=i=>(Mt(i)||"gio-track").replace(/^v-/,""),o_=i=>{const e=i.value;if(typeof e=="string")return{eventName:e.trim(),trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1};if(!e||typeof e!="object")return{eventName:"",trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1};const r=e.attributes||e.attrs||{},s=Object.entries(r).reduce((u,[p,l])=>(l!=null&&(u[p]=l),u),{});return{eventName:Mt(e.event,e.name,i.arg),trigger:Mt(e.trigger)||"click",attrs:s,once:!!e.once,stop:!!e.stop,prevent:!!e.prevent,callback:typeof e.onTracked=="function"?e.onTracked:typeof e.callback=="function"?e.callback:void 0}},ns=i=>{const e=i.__jctransTrackHandler__;e&&(i.removeEventListener(e.trigger,e.handler),delete i.__jctransTrackHandler__)},rc=(i,e,r)=>{ns(i);const s=o_(e);if(!s.eventName)return;const u=p=>{if(s.prevent&&"preventDefault"in p&&p.preventDefault(),s.stop&&"stopPropagation"in p&&p.stopPropagation(),r.isInitialized()){const l=E.normalizeClickPageAttrs(s.eventName,s.attrs);r.track(s.eventName,l,()=>{var m;(m=s.callback)==null||m.call(s,{event:p,eventName:s.eventName,attrs:l,trigger:s.trigger})})}s.once&&ns(i)};i.addEventListener(s.trigger,u),i.__jctransTrackHandler__={eventName:s.eventName,trigger:s.trigger,handler:u}},l_=i=>(e,r)=>{const s=Mt(e);if(!s||!i.isInitialized())return;const u=E.normalizeClickPageAttrs(s,r);i.track(s,u)},c_=(i,e)=>{if(typeof window=="undefined"||!i)return;const r=window;r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__||(r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__=new Set);const s=r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__;if(s.has(e))return;const u=E.getOrCreateClientId();if(!u)return;const p=window.gdp;typeof p=="function"&&(s.add(e),p("identify",u))};function Dc(i){return{install(e){var k,x,P;const r=E.tracker,s=i_||{},u=i||{},p=Mt(u.globalVarName,"__JCTRANS_GIO_CONFIG__"),l=a_(p),m=$a(l.enabled,u.enabled,s.VITE_GIO_ENABLED),_={...u.initOptions||{},...l.initOptions||{}};if(!_.serverUrl){const H=Mt(l.serverUrl,u.serverUrl,s.VITE_GIO_SERVER_URL);H&&(_.serverUrl=H)}const v=Mt(l.accountId,u.accountId,s.VITE_GIO_ACCOUNT_ID),I=Mt(l.dataSourceId,u.dataSourceId,s.VITE_GIO_DATA_SOURCE_ID,s.VITE_GIO_DATASOURCE_ID),F=Mt(l.appId,u.appId,s.VITE_GIO_APP_ID),R=$a(l.autoInit,u.autoInit,s.VITE_GIO_AUTO_INIT),S=(P=$a((k=l.initOptions)==null?void 0:k.forceLogin,(x=u.initOptions)==null?void 0:x.forceLogin,_.forceLogin))!=null?P:!1,O=s_(l.directiveName||u.directiveName);(m==null||m)&&(R==null||R)&&v&&I&&!r.isInitialized()&&(F?r.init(v,I,F,_):r.init(v,I,_),c_(S,`jctrans-gio-identify-device:${v}:${I}`));const W=l_(r);e.prototype.$gio=r,e.prototype.$trackEvent=W,e.directive(O,{bind(H,z){rc(H,z,r)},update(H,z){rc(H,z,r)},unbind(H){ns(H)}})}}}let u_={open(){E.emitter.emit(E.MODAL_ACTION.Open)},close(){E.emitter.emit(E.MODAL_ACTION.Close)},onSubmit(i){E.emitter.on(E.MODAL_ACTION.Submit,i)}};function f_(){let i=!1;return{install(e){if(typeof window!="undefined"&&!i){const r=document.createElement("div");r.setAttribute("id","global-modal-root"),document.body.appendChild(r);const s=e.extend(_c);new s().$mount(r),i=!0}e.prototype.$globalModal=u_}}}const ic={},d_=Object.assign({"./components/ApplyDataDialog.vue":Iy,"./components/ChineseCompanySearch/index.vue":Oy,"./components/CodeInput.vue":R0,"./components/GlobalModal.vue":k0,"./components/GoogleInput.vue":d0,"./components/JcCarrierSearch/AirCarrierSearch.vue":Q0,"./components/JcCarrierSearch/AirLineSearch.vue":eC,"./components/JcCarrierSearch/SeaCarrierSearch.vue":sC,"./components/JcCarrierSearch/SeaLineSearch.vue":dC,"./components/JcCarrierSearch/index.vue":W0,"./components/JcFloatInput.vue":v0,"./components/JcFloatWrapper.vue":vC,"./components/JcLoginDialog/RegisterForm.vue":DC,"./components/JcLoginDialog/cmps/ApplyJoinBtn.vue":TC,"./components/JcLoginDialog/cmps/CompleteInfoForm.vue":MC,"./components/JcLoginDialog/cmps/FooterBox.vue":HC,"./components/JcLoginDialog/cmps/ForgetPassword.vue":XC,"./components/JcLoginDialog/cmps/LoginTypeSwitcher.vue":t1,"./components/JcLoginDialog/cmps/ThirdBindLogin.vue":l1,"./components/JcLoginDialog/cmps/ThirdRegisterForm.vue":p1,"./components/JcLoginDialog/cmps/WechatBindLogin.vue":C1,"./components/JcLoginDialog/cmps/WechatChooseType.vue":I1,"./components/JcLoginDialog/cmps/WechatLogin.vue":D1,"./components/JcLoginDialog/index.vue":U1,"./components/JcMSearch/index.vue":X1,"./components/JcSearch/index.vue":_y,"./components/JcVerifySlide/index.vue":E0,"./components/LineCascader/index.vue":r_}),hi={};Object.entries(d_).forEach(([i,e])=>{let r="";if(ic[i])r=ic[i];else{const u=i.replace("./components/","").replace(".vue","").split("/"),p=u.pop()||"";p==="index"&&u.length>0?r=u.pop()||"":r=p}r&&(hi[r]=e.default||e)});const{ApplyDataDialog:p_,ChineseCompanySearch:h_,JcSearch:m_,GlobalModal:g_,JcCarrierSearch:v_,AirCarrierSearch:y_,SeaCarrierSearch:C_,AirLineSearch:__,SeaLineSearch:A_,JcMSearch:b_,JcLoginDialog:w_}=hi;let ac=!1;const E_={install(i,e){ac||(ac=!0,e!=null&&e.sharedConfig&&E.initSharedConfig(e.sharedConfig),e!=null&&e.tracking&&i.use(Dc(e.tracking)),Object.keys(hi).forEach(r=>{i.component(r,hi[r]),console.log(`[JcUI Vue2] 自动注册组件: ${r}`)}))}};Object.defineProperty(exports,"MODAL_ACTION",{enumerable:!0,get:()=>E.MODAL_ACTION});Object.defineProperty(exports,"emitter",{enumerable:!0,get:()=>E.emitter});Object.defineProperty(exports,"initSharedConfig",{enumerable:!0,get:()=>E.initSharedConfig});exports.AirCarrierSearch=y_;exports.AirLineSearch=__;exports.ApplyDataDialog=p_;exports.ChineseCompanySearch=h_;exports.GlobalModal=g_;exports.JcCarrierSearch=v_;exports.JcLoginDialog=w_;exports.JcMSearch=b_;exports.JcSearch=m_;exports.SeaCarrierSearch=C_;exports.SeaLineSearch=A_;exports.createGioTrackingPlugin=Dc;exports.createGlobalModalPlugin=f_;exports.default=E_;
|
|
37
|
+
`;if(console.log(`🍉 打开弹窗 [${B}]: ${K}`),m=window.open(K,"ThirdPartyLogin",Te),!m){console.error("浏览器已阻止弹窗"),e.value=!1;return}_=setInterval(()=>{if(m&&m.closed){if(v){console.log("🍉 [竞态] 检测到窗口关闭,但正在处理消息,忽略此次关闭检测"),W();return}console.log("🍉 检测到弹窗被手动关闭,执行重置"),k(),l.value=!0}},1e3)};return y.onMounted(()=>{x()}),y.onUnmounted(()=>{Nt()&&window.removeEventListener("message",P),k()}),{isLoading:e,isBindDialogVisible:s,isRegisterVisible:u,isUserClosed:l,bindList:p,loginResult:r,startLogin:J,resetState:k,handleBindThirdParty:B=>{p.value=B,s.value=!0,u.value=!1},resetBindRegisterState:()=>{s.value=!1,u.value=!1,p.value=[]}}}async function Ln(i,e,r,s=!0,u=!0){if(!e||e.trim()==="")return r(new Error(s?"Email address is required":"请输入您的邮箱"));if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e))return r(new Error(s?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/[一-龥]+/.test(e))return r(new Error(s?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/@(qq|vip.qq).com$/i.test(e))return r(new Error(s?"QQ email is not supported, please change other work email":"不支持QQ邮箱,请您更换其他工作邮箱"));if(u)try{const{data:l}=await E.validateAccountExistApi({target:e});if(console.log("🍉 ~ constant.ts:67 ~ validateUserEmail ~ data:",l),l.data)return r(new Error(s?"It's already occupied, please re-enter.":"已被占用,请重新输入"));r()}catch{r(new Error(s?"Validation failed, please re-enter.":"校验失败,请重新输入"))}else return r()}async function AC(i,e,r,s=!0,u){if(console.log("🍉 ~ constant.ts:106 ~ validateThirdPartyEmail ~ context:",u),e==null||e==="")r(new Error(s?"Please enter a valid business email address":"请输入正确的公司邮箱"));else if(/[一-龥]+/.test(e))r(new Error(s?"Please enter a valid business email address":"请输入正确的公司邮箱"));else try{const p=await E.findListByMobileEmailApi({email:e});console.log("🍉 ~ constant.ts:129 ~ validateThirdPartyEmail ~ res:",p),!p.data.data||p.data.data.records.length===0?(tc([]),u.thirdPartyEmailVerifyList=[],r()):(tc(p.data.data.records),u.thirdPartyEmailVerifyList=p.data.data.records,r(new Error(s?"This email has been registered":"邮箱已注册")))}catch{r(new Error(s?"This email has been registered":"邮箱已注册"))}}function bC(i,e,r,s=!0,u){e?/^[0-9]*$/.test(e)===!0?e.length<2?r(new Error(s?"please enter at least 2 characters.":"请输入至少2个字符")):E.findListByMobileEmailApi({mobile:e}).then(p=>{!p.data.data||p.data.data.records.length===0?(nc([]),u.thirdPartyMobileVerifyList=[],r()):(nc(p.data.data.records),u.thirdPartyMobileVerifyList=p.data.data.records,r(new Error(s?"This mobile number has been registered":"手机号已注册")))}).catch(()=>{r(new Error(s?"This mobile number has been registered":"手机号已注册"))}):r(new Error("请正确填写手机号")):r(new Error(s?"Please enter your cell phone number":"请输入手机号"))}function Nn(i,e,r,s=!0,u=!0){const p=/^[a-zA-Z一-龥\s.·•]+$/,l=/^[a-zA-Z\s.·•]+$/;if(!e){const m=u?s?"please enter your Chinese name":"请输入您的中文姓名":s?"Please enter your English name":"请输入您的英文姓名";return r(new Error(m))}if(u){if(e.length>50||!p.test(e))return r(new Error(s?"Only Chinese and English characters and symbols can be entered, with a maximum of 50 words.":"仅能输入中英文字符及符号,最多50个字"))}else if(e.length>50||!l.test(e))return r(new Error(s?"Only English characters and symbols can be entered, up to 50 words.":"仅能输入英文字符及符号,最多50个字"));r()}function pi(i,e,r,s=!0){const u={empty:s?"The password cannot be empty. Please enter it":"密码不能为空,请重新输入",length:s?"The password must be at 6-20 characters only":"密码为6-20位字符",invalidChars:s?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号",complexity:s?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号"};if(e==null||e==="")return r(new Error(u.empty));if(e.length<6||e.length>20)return r(new Error(u.length));if(!/^[a-zA-Z0-9+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&""''::?》《,^——_\s \n\r【】{}[\]|;~·]*$/.test(e))return r(new Error(u.invalidChars));const l=/^[a-zA-Z]*$/.test(e),m=/^[0-9]*$/.test(e),_=/^[+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&""''::?》《,^——_\s \n\r【】{}[\]|;~·]*$/.test(e);if(l||m||_)return r(new Error(u.complexity));r()}async function Mn(i,e,r,s=!0,u=!0){const p={empty:s?"Please enter your cell phone number":"请输入手机号",minLen:s?"please enter at least 2 characters.":"请输入至少 2 个字符.",invalid:s?"Invalid mobile address":"手机号格式错误",occupied:s?"It's already occupied, please re- enter.":"已被占用,请重新输入"};if(!e)return r(new Error(p.empty));if(!/^[0-9]*$/.test(e))return r(new Error(p.invalid));if(e.length<2)return r(new Error(p.minLen));if(u)try{const l=await E.validateAccountExistApi({target:e});if(console.log("🍉 ~ constant.ts:288 ~ validateUserMobilefive ~ res:",l),l&&l.data.data)return r(new Error(p.occupied));r()}catch{r(new Error(p.occupied))}else return r()}function wC(i){return i?i.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s{2,}/g," "):""}async function ss(i,e,r,s=!0,u){const p=wC(e);console.log("🍉 ~ constant.ts:274 ~ validateCompanyName ~ nameValue:",p);const l=u.countryId==1;if(!p)return l&&(u.appId==="DDC"||u.appId==="JHB")?r():r(new Error(s?"please enter the full company name":"请输入公司名称"));if(p.length<2)return r(new Error(s?"please enter at least 2 characters.":"请输入至少 2 个字符."));if(p.length>200)return r(new Error(s?"please enter less than 200 characters.":"请输入少于 200 个字符."));if(!l){if(/[一-龥]/.test(p))return r(new Error(s?"Do not include Chinese characters in company name":"注册公司名不能有中文"));if(!/^[a-zA-Z0-9+.()&\\\-=*/,#'":!?;%$`@^——_\s]*$/.test(p))return r(new Error(s?"Wrong format for company name":"注册公司名格式错误"))}if(u.countryId&&u.cityId)try{const m={countryId:u.countryId,cityId:u.cityId,[l?"compNameCn":"compNameEn"]:p},_=await E.validateCompanyApi(m);console.log("🍉 ~ constant.ts:347 ~ validateCompanyName ~ res:",_),_.data.data.result?u.appId==="JCPAY"?r(new Error(s?"The company already exists, please contact customer service":"公司名称已存在,请联系客服")):(l?u.companyResistCn=!0:u.companyResistEn=!0,u.resistCompanyInfo=_.data.data,r()):(l?u.companyResistCn=!1:u.companyResistEn=!1,r())}catch(m){const _=(m==null?void 0:m.toString().split(":")[1])||"API Error";r(new Error(_))}else r(new Error(s?"Please select a Country/Region":"请选择国家/地区"))}function rn(i,e,r,s=!0){if(!e)return r(new Error(s?"Please enter the verification code":"请输入验证码"));if(!/^\d{4}$/.test(e))return r(new Error(s?"Verification code must be 4 digits":"验证码必须为4位数字"));r()}function os(i="_blank"){const e=window.location.hostname.includes("jctrans.com"),r=window.location.hostname.includes("sit2"),s=window.location.hostname.includes("sit"),p=e?"https://passport.jctrans.com":r?"https://passport-sit2.jctrans.net.cn":s?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn",l=document.createElement("a");l.href=`${p}/privacyAgreement`,l.target=i;const m=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});l.dispatchEvent(m)}function ls(i="_blank"){const e=window.location.hostname.includes("jctrans.com"),r=window.location.hostname.includes("sit2"),s=window.location.hostname.includes("sit"),p=e?"https://passport.jctrans.com":r?"https://passport-sit2.jctrans.net.cn":s?"https://passport-sit.jctrans.net.cn":"https://passport-sit.jctrans.net.cn",l=document.createElement("a");l.href=`${p}/privacyPolicy`,l.target=i;const m=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});l.dispatchEvent(m)}const Vt=(i,e=100)=>{typeof window!="undefined"&&i&&setTimeout(()=>{i.startsWith("http")?window.location.href=i:(window.location.href=window.location.origin+i,console.warn("内部路径跳转逻辑尚未定义:",i))},e)},EC=y.defineComponent({name:"ApplyJoinBtn",props:{isEn:{type:Boolean,default:!1}},emits:["apply-join"],setup(i,{emit:e}){const r=y.computed(()=>i.isEn?"The company already exists. Would you like to apply to ":"该公司已存在。您可申请加入。"),s=y.computed(()=>i.isEn?"join in >>":"点击申请加入 >>");return{register_already_tip:r,register_join_in:s,applyJoin:()=>{e("apply-join")}}}});var SC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"jc:text-xs jc:flex jc:mb-3 jc:-mt-3"},[r("p",{staticClass:"jc:text-xs",staticStyle:{color:"#f80"}},[r("i",{staticClass:"el-icon-warning"}),e._v(" "+e._s(e.register_already_tip)+" ")]),r("p",{staticStyle:{color:"#3264ff",cursor:"pointer"},on:{click:e.applyJoin}},[e._v(" "+e._s(e.register_join_in)+" ")])])},IC=[],xC=ve(EC,SC,IC,!1,null,"4b87a2f3");const bi=xC.exports,TC=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),RC={name:"RegisterForm",components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,JcFloatInput:qn,CodeInput:an,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Ht,ApplyJoinBtn:bi},props:{isEn:Boolean},emits:["to-login","register","need-complete","register-success"],computed:{isAgree(){return this.form.agree},countryId(){var i,e,r,s,u,p,l;return((r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id)||((l=(p=(u=(s=this.form)==null?void 0:s.city)==null?void 0:u.raw)==null?void 0:p.city)==null?void 0:l.countryId)},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){var e;const i=this.countryId||((e=this.resistCompanyInfo)==null?void 0:e.countryId);return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:null,cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(i,e,r)=>ss(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Mn(i,e,r,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>rn(i,e,r,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(i,e,r)=>pi(i,e,r,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(i,e,r)=>{e?r():r(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:os,getAuthSessionItems:E.getAuthSessionItems,go2Policy:ls,async inviteJoinGetComp(){const e=E.getAuthSessionItems().compKey;if(!e)return;const{data:r}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=r.data},findDict(){E.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))}).catch(i=>{})},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){var s,u,p;const e=(await E.getLocalIpDataApi()).data;e&&e.code===0&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:(s=e.data)==null?void 0:s.countryId},country:{id:(u=e.data)==null?void 0:u.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=(p=e.data)==null?void 0:p.countryId,this.handleSelectCity(this.form.city));const r=await E.findPAreaCodeApi();this.areaCodeData=r.data.data.records},handleClearCity(){this.companyResistEn=!1,this.companyResistCn=!1},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(i){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(i,e=>{(i==="email"||i==="phone")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.form.email||this.form.phone,uuid:i.uuid,code:i.code};e();let s=E.sendEmailCodeApi,u=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(s=E.sendMobileCodeApi,u=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),s(r).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(this.currentCountryIsChina?this.mobileUid=l:this.emailUid=l,U.Message.success(u))}).catch(p=>{console.error(p)})},handleRegister(){this.$refs.registerFormRef.validate(i=>{if(!i)return;if(!this.verifyData.uuid){U.Message.error(this.isEn?"Please get code first":"请先获取验证码");return}const e=this.getAuthSessionItems();let r={appId:this.appId,fromSys:this.appId,passwd:gt.MD5(this.form.password).toString(),clickSource:e.clickSource||"",activityCode:e.activityCode||"",referenceUserId:e.referenceUserId||"",inviterInfo:e.empNo||"",industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,uniqueCode:e.uniqueCode||"",prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")};this.currentCountryIsChina?Object.assign(r,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(s=>s.telCode===this.form.areaCode).id,account:E.Encrypt(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(r,{type:"EMAIL",account:E.Encrypt(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(r):this.handleNewCompanySubmit(r)})},async handleNewCompanySubmit(i){const e=this.getAuthSessionItems(),r={...this.form.kqInfo,...i,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?r.compNameCn=this.form.companyName:r.compNameEn=this.form.companyName,this.$emit("register",r),this.loading=!0;try{const u=await(e.uniqueCode?E.registerUserCompBindWechatApi:E.registerApi)(r);this.handlePostRegister(u)}catch{this.loading=!1}},async handleApplyJoinSubmit(i){const e=this.getAuthSessionItems(),r={...i,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(r.nameCn=this.form.nameCn),this.form.nameEn&&(r.nameEn=this.form.nameEn),["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(u=>delete r[u]),this.$emit("register",r),this.loading=!0;try{const p=await(e.uniqueCode?E.registerJoinCompanyBindWechatApi:E.registerJoinCompanyApi)(r);this.handlePostRegister(p)}catch{this.loading=!1}},normalizeDelayMs(i){if(i==null||i==="")return 0;if(typeof i=="string"){const r=i.trim().toLowerCase();if(!r)return 0;if(r.endsWith("ms")){const u=Number(r.slice(0,-2).trim());return Number.isFinite(u)&&u>=0?u:0}if(r.endsWith("s")){const u=Number(r.slice(0,-1).trim());return Number.isFinite(u)&&u>=0?u*1e3:0}const s=Number(r);return!Number.isFinite(s)||s<0?0:s>=10?s:s*1e3}const e=Number(i);return!Number.isFinite(e)||e<0?0:e>=10?e:e*1e3},executeRedirectWithDelay(i,e){const r=this.normalizeDelayMs(e);setTimeout(()=>{E.resetAuthSessionItems(),Vt(i)},r)},handlePostRegister(i){const e=this.getAuthSessionItems();if(i.data.code===0)if(i.data.data.redirect){if(E.setTokenAll(i.data.data.result),i.data.data.result&&i.data.data.result.improveComp){this.$emit("need-complete",i.data.data.result.improveComp);return}try{qt.set("tgc",i.data.data.tgc,{expires:30});const r=i.data.data.redirectPath||e.path||"/",s={isHandled:!1},u=l=>{s.isHandled=!0,this.executeRedirectWithDelay(r,l)},p=()=>{s.isHandled=!0};this.$emit("register-success",{user:i.data.data.result,redirectPath:r,preventDefault:p,redirect:u}),setTimeout(()=>{s.isHandled||this.executeRedirectWithDelay(r,0)},0)}catch(r){console.error("注册成功后的后续处理发生异常:",r)}}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,U.Message.error(i.data.msg)}}};var BC=function(){var s,u,p,l,m,_;var e=this,r=e._self._c;return r("div",{staticClass:"register-form-container"},[r("div",{staticClass:"register-title"},[r("p",[e._v(e._s(e.isEn?"New User Registration":"新用户注册"))])]),r("el-form",{ref:"registerFormRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(v){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn||e.resistCompanyInfo.compNameCn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Location(City)":"所在地(城市)"))])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(v){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",v)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{clear:e.handleClearCity,select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(v){e.$set(e.form,"city",v)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,"country-id":((p=(u=(s=e.form.city)==null?void 0:s.raw)==null?void 0:u.country)==null?void 0:p.id)||((_=(m=(l=e.form.city)==null?void 0:l.raw)==null?void 0:m.city)==null?void 0:_.countryId)||null,city:e.form.city},on:{"update:companyName":function(v){return e.$set(e.form,"companyName",v)},"update:company-name":function(v){return e.$set(e.form,"companyName",v)},"update:useKq":function(v){return e.$set(e.form,"useKq",v)},"update:use-kq":function(v){return e.$set(e.form,"useKq",v)},"update:kqCode":function(v){return e.$set(e.form,"kqCode",v)},"update:kq-code":function(v){return e.$set(e.form,"kqCode",v)},"update:kqInfo":function(v){return e.$set(e.form,"kqInfo",v)},"update:kq-info":function(v){return e.$set(e.form,"kqInfo",v)},change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{attrs:{"is-en":e.isEn},on:{"apply-join":e.handleApplyJoinClick}}):e._e()],e.currentCountryIsChina?r("el-form-item",{staticClass:"phone-form-item"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(v){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(v){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(v){e.$set(e.form,"areaCode",v)},expression:"form.areaCode"}},[e._l(e.areaCodeData,function(v){return r("el-option",{key:v.id,attrs:{label:v.telCode,value:v.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}],null,!1,2606172549),model:{value:e.form.phone,callback:function(v){e.$set(e.form,"phone",v)},expression:"form.phone"}})],1)],1):e._e(),e.currentCountryIsChina?e._e():r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(v){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(v){e.$set(e.form,"email",v)},expression:"form.email"}})],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":""},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}]),model:{value:e.form.code,callback:function(v){e.$set(e.form,"code",v)},expression:"form.code"}})],1),r("el-form-item",{staticClass:"password-form-item",attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}]),model:{value:e.form.password,callback:function(v){e.$set(e.form,"password",v)},expression:"form.password"}})],1),e.hasResistCompany?e._e():r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(e._s(e.isEn?"Industry Sector":"行业类型"))]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(v){return r("div",{key:v.value,staticClass:"sector-item",class:{active:e.form.sector===v.value},on:{click:function(I){e.form.sector=v.value}}},[e._v(" "+e._s(e.isEn?v.en:v.cn)+" "),e.form.sector===v.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)]),r("el-form-item",{staticClass:"agree-item",attrs:{prop:"agree"}},[r("el-checkbox",{model:{value:e.form.agree,callback:function(v){e.$set(e.form,"agree",v)},expression:"form.agree"}},[r("span",{staticClass:"agree-text"},[e._v(" "+e._s(e.isEn?"I agree":"我同意")+" "),r("span",{staticClass:"link-type",on:{click:function(v){return v.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),e._v(" "+e._s(e.isEn?"and":"和")+" "),r("span",{staticClass:"link-type",on:{click:function(v){return v.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])])],1),r("el-button",{staticClass:"submit-btn register-btn",class:["register-btn-is-active"],attrs:{disabled:e.loading,loading:e.loading},on:{click:e.handleRegister}},[e._v(" "+e._s(e.isEn?"Register and Log in":"注册并登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],2),r("div",{staticClass:"bottom-tip"},[e._v(" "+e._s(e.isEn?"Already have an account?":"已有账号?")+" "),r("span",{staticClass:"action-text",on:{click:function(v){return e.$emit("to-login")}}},[e._v(" "+e._s(e.isEn?"Click to log in":"去登录")+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"}})])])])],1)},FC=[],PC=ve(RC,BC,FC,!1,null,"0b64240f");const bc=PC.exports,DC=Object.freeze(Object.defineProperty({__proto__:null,default:bc},Symbol.toStringTag,{value:"Module"})),kC={name:"CompleteInfoForm",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,ElSelect:U.Select,ElOption:U.Option,JcFloatInput:qn,CodeInput:an,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Ht,JcVerifySlide:vn,ApplyJoinBtn:bi},props:{isEn:Boolean},emits:["success"],data(){return{isReady:!1,loading:!1,verifyVisible:!1,verifyData:{},codeReady:!1,mobileUid:"",emailUid:"",areaCodeData:[],hasResistCompany:!1,companyResistCn:!1,companyResistEn:!1,resistCompanyInfo:null,currentUserMobile:null,currentUserEmail:null,form:{city:"",cityId:"",countryId:"",companyName:"",nameCn:"",nameEn:"",sector:"Logistics",phone:"",areaCode:"+86",email:"",code:"",useKq:!1,kqCode:"",kqInfo:null},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(i,e,r)=>this.hasResistCompany?r():ss(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Mn(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>rn(i,e,r,this.isEn),trigger:"blur"}]}}},computed:{countryId(){var i,e,r,s;return((r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id)||((s=this.resistCompanyInfo)==null?void 0:s.countryId)},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){const i=this.countryId;return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},isShowMobileCode(){return this.isReady?this.currentCountryIsChina&&!this.currentUserMobile:!1},isShowEmailCode(){return this.isReady?!this.currentUserEmail:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.getUserPermsInfo()},methods:{getUserPermsInfo(){E.getUserInfoApi().then(i=>{var e,r;this.currentUserMobile=(e=i.data.data)==null?void 0:e.mobile,this.currentUserEmail=(r=i.data.data)==null?void 0:r.email}).catch(()=>{this.currentUserMobile=null,this.currentUserEmail=null}).finally(()=>{this.isReady=!0})},handleCompanyExistStatus(i){i&&(this.companyResistCn=i.cnExists,this.companyResistEn=i.enExists,this.resistCompanyInfo=i.companyInfo)},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.formRef.clearValidate("companyName")})},async getAreaCodeData(){const i=await E.findPAreaCodeApi();this.areaCodeData=i.data.data.records},findDict(){E.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))})},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{!this.hasResistCompany&&this.form.companyName&&this.$refs.formRef.validateField("companyName"),this.$refs.formRef.validateField("city")})},validateField(i){this.$refs.formRef.validateField(i,e=>{(i==="phone"||i==="email")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.isShowMobileCode?this.form.phone:this.form.email,uuid:i.uuid,code:i.code},s=this.isShowMobileCode?E.sendMobileCodeApi:E.sendEmailCodeApi;this.isShowMobileCode&&(r.areaCode=this.form.areaCode,r.areaCodeCountryId=this.areaCodeData.find(u=>u.telCode===this.form.areaCode).id),e(),s(r).then(u=>{var l;const p=((l=u.data.data)==null?void 0:l.verifyCode)||u.data.verifyCode;u.data.code===0&&p&&(this.isShowMobileCode?this.mobileUid=p:this.emailUid=p,U.Message.success(this.isEn?"Code Sent":"验证码已发送"))})},handleSubmit(){this.$refs.formRef.validate(i=>{i&&(this.hasResistCompany?this.handleJoinSubmit():this.handleNewSubmit())})},handleNewSubmit(){this.loading=!0;const i={cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector,nameCn:this.currentCountryIsChina?this.form.companyName:"",nameEn:this.currentCountryIsChina?"":this.form.companyName,mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:(window==null?void 0:window.location.pathname)||"/",...this.form.kqInfo};E.completeCompRedirectApi(i).then(e=>{e.data.code===0?(U.Message.success(this.isEn?"Success":"提交成功"),this.$emit("success",e.data.data)):U.Message.error(e.data.msg)}).finally(()=>{this.loading=!1})},handleJoinSubmit(){this.loading=!0;const i={compId:this.resistCompanyInfo.compId,nameCn:this.form.nameCn,nameEn:this.form.nameEn,industrySector:this.form.sector,areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:this.isShowMobileCode?this.form.phone:this.form.email,type:this.isShowMobileCode?"MOBILE":"EMAIL",mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:(window==null?void 0:window.location.pathname)||"/"};E.completeJoinCompanyRedirectApi(i).then(e=>{if(e.data.code===0){if(e.data.data.redirect)try{qt.set("tgc",e.data.data.tgc,{expires:30});const r=this.getAuthSessionItems(),s=e.data.data.redirectPath||r.path||"/";E.resetAuthSessionItems(),Vt(s)}catch{}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");this.$emit("success",e.data.data)}else U.Message.error(e.data.msg)}).finally(()=>{this.loading=!1})}}};var OC=function(){var e=this,r=e._self._c;return r("div",{staticClass:"complete-info-container"},[r("div",{staticClass:"complete-info-container_header"},[r("div",{staticClass:"complete-info-container_title"},[e._v(" "+e._s(e.isEn?"Complete Your Information":"完善企业信息")+" ")]),r("div",{staticClass:"complete-info-container_tip-box"},[r("img",{attrs:{src:"https://resources.jctrans.com/res/era/pc/img/icon_gantan.png",alt:""}}),r("span",[e._v(e._s(e.isEn?"To provide you with better service, please complete the following enterprise information":"为了给您提供更好的服务,请完善以下企业信息"))])])]),r("el-form",{ref:"formRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(s){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn||e.resistCompanyInfo.compNameCn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Location(City)":"所在地(城市)"))])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(s){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",s)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],lang:e.isEn?"en":"zh-CN",placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(s){e.$set(e.form,"city",s)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,lang:e.isEn?"en":"zh-CN","country-id":e.countryId||null,city:e.form.city},on:{"update:companyName":function(s){return e.$set(e.form,"companyName",s)},"update:company-name":function(s){return e.$set(e.form,"companyName",s)},"update:useKq":function(s){return e.$set(e.form,"useKq",s)},"update:use-kq":function(s){return e.$set(e.form,"useKq",s)},"update:kqCode":function(s){return e.$set(e.form,"kqCode",s)},"update:kq-code":function(s){return e.$set(e.form,"kqCode",s)},"update:kqInfo":function(s){return e.$set(e.form,"kqInfo",s)},"update:kq-info":function(s){return e.$set(e.form,"kqInfo",s)},"update:exist-status":e.handleCompanyExistStatus,change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{on:{"apply-join":e.handleApplyJoinClick}}):e._e(),r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(" "+e._s(e.isEn?"Industry Sector":"行业类型")+" ")]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(s){return r("div",{key:s.value,staticClass:"sector-item",class:{active:e.form.sector===s.value},on:{click:function(u){e.form.sector=s.value}}},[e._v(" "+e._s(e.isEn?s.en:s.cn)+" "),e.form.sector===s.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)])],e.isShowMobileCode?[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"phone-form-item"},[r("el-form-item",{ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15"},on:{blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号","popper-class":"jc-area-code-select-wrapper"},on:{change:function(s){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(s){e.$set(e.form,"areaCode",s)},expression:"form.areaCode"}},e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),1)],1)]},proxy:!0}],null,!1,1425799582),model:{value:e.form.phone,callback:function(s){e.$set(e.form,"phone",s)},expression:"form.phone"}})],1)],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":"","form-type-color":"4"},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}],null,!1,3883692614),model:{value:e.form.code,callback:function(s){e.$set(e.form,"code",s)},expression:"form.code"}})],1)]:e._e(),e.isShowEmailCode?[r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(s){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(s){e.$set(e.form,"email",s)},expression:"form.email"}})],1),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":"","form-type-color":"4"},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}],null,!1,3883692614),model:{value:e.form.code,callback:function(s){e.$set(e.form,"code",s)},expression:"form.code"}})],1)]:e._e(),r("el-button",{staticClass:"submit-btn register-btn register-btn-is-active",attrs:{loading:e.loading},on:{click:e.handleSubmit}},[e._v(" "+e._s(e.isEn?"Submit":"完成并进入")+" ")])],2)],1)},LC=[],NC=ve(kC,OC,LC,!1,null,"c6a09f38");const wc=NC.exports,MC=Object.freeze(Object.defineProperty({__proto__:null,default:wc},Symbol.toStringTag,{value:"Module"})),UC=y.defineComponent({name:"FooterBox",props:{label:{type:String,default:""},subLabel:{type:String,default:""}},emits:["handleClick"],setup(i,{emit:e}){return{handleClick:()=>{e("handleClick")}}}});var qC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"auth-footer-box"},[e._v(" "+e._s(e.label)+" "),r("span",{staticClass:"action-text",on:{click:function(s){return s.stopPropagation(),e.handleClick.apply(null,arguments)}}},[e._v(e._s(e.subLabel)+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"}})])])])},VC=[],WC=ve(UC,qC,VC,!1,null,"3fc7802c");const Ec=WC.exports,HC=Object.freeze(Object.defineProperty({__proto__:null,default:Ec},Symbol.toStringTag,{value:"Module"}));function GC(i){const e=y.ref(1),r=y.ref(!1),s=y.ref(!1),u=y.ref(),p=y.reactive({userName:""}),l=y.ref({}),m=y.ref(!1),_=y.ref("email"),v=y.reactive({email:!1,mobile:!1}),I=y.reactive({code:"",password:"",confirmPassword:""}),F=y.ref(""),R=y.ref(!1),S=y.reactive({mobile:!1,email:!1}),O=()=>{s.value=!0},W=J=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleVerifySuccess ~ captchaData:",J),s.value=!1,console.log("🍉 ~ useForgetPassword.ts:53 ~ handleVerifySuccess ~ ctiveStep.value:",e.value),e.value===1&&x(J)},k=({captchaData:J,startTimer:b})=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleSendCodeVerifySuccess ~ captchaData:",J),e.value===2&&P(J,b)},x=async J=>{var b;r.value=!0;try{const q=await E.checkAccountExistsFPApi({account:p.userName,...J});if((b=q.data.data)!=null&&b.exists){l.value=q.data.data;const B=!!l.value.email,w=!!l.value.mobile;!B&&!w?m.value=!0:(m.value=!1,e.value=2,B?(_.value="email",v.email=!1,v.mobile=!w):(_.value="mobile",v.mobile=!1,v.email=!0))}else U.Message.error(i.isEn?"Account does not exist":"账号不存在")}catch(q){console.error(q)}finally{r.value=!1}},P=async(J,b)=>{console.log("🍓🍓 ~ useForgetPassword.ts:120 ~ sendVerifyCode ~ captchaData:",J);try{u.value=J;const{data:q}=await E.getMEVCodeApi({account:l.value.account,target:_.value,...J});console.log("🍉 ~ useForgetPassword.ts:127 ~ sendVerifyCode ~ res:",q),q.code===0&&(U.Message.success(i.isEn?"Verification code sent":"验证码已发送"),F.value=q.data.verifyCode,b(),_.value==="mobile"?S.mobile=!0:S.email=!0)}catch(q){console.error(q)}};return{activeStep:e,activeTab:_,loading:r,verifyVisible:s,formA:p,formB:I,userData:l,disabledTabs:v,showCustomerService:m,codeCountdown:S,codeReady:R,handleTriggerVerify:O,handleVerifySuccess:W,handleSendCodeVerifySuccess:k,handleSubmitReset:async()=>{var J;if(!((J=u.value)!=null&&J.uuid)){U.Message.info(i.isEn?"Please get the verification code first":"请先获取验证码");return}r.value=!0;try{const b={id:l.value.id,account:l.value.account,codeId:F.value,codeValue:I.code,password:gt.MD5(I.password).toString(),...u.value},{data:q}=await E.resetPasswordApi(b);return q.code===0?(U.Message.success(i.isEn?"Password reset successfully":"密码重置成功"),!0):(U.Message.error(q.msg),!1)}catch(b){return console.error(b),!1}finally{r.value=!1}},restFormB:()=>{I.code="",I.password="",I.confirmPassword="",F.value="",R.value=!1,S.mobile=!1,S.email=!1}}}const JC=y.defineComponent({name:"ForgetPassword",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,GoogleInput:Ht,CodeInput:an,JcVerifySlide:vn,FooterBox:Ec,JcFloatInput:qn},props:{isEn:{type:Boolean,default:!1}},emits:["to-login"],setup(i,{emit:e}){const{activeStep:r,activeTab:s,loading:u,verifyVisible:p,formA:l,formB:m,userData:_,disabledTabs:v,showCustomerService:I,codeCountdown:F,handleTriggerVerify:R,handleVerifySuccess:S,handleSendCodeVerifySuccess:O,handleSubmitReset:W,restFormB:k}=GC({isEn:i.isEn}),x=y.ref(),P=y.ref(),H=(w,M,G)=>{M===""?G(new Error(i.isEn?"Please input the password again":"请再次输入密码")):M!==m.password?G(new Error(i.isEn?"Two inputs don't match!":"两次输入密码不一致!")):G()},z={userName:[{required:!0,message:i.isEn?"Please enter username":"请输入账号",trigger:"blur"}]};return{activeStep:r,activeTab:s,loading:u,verifyVisible:p,formA:l,formB:m,userData:_,disabledTabs:v,showCustomerService:I,codeCountdown:F,formARef:x,formBRef:P,rulesA:z,rulesB:{code:[{required:!0,validator:(w,M,G)=>rn(w,M,G,i.isEn),trigger:"blur"}],password:[{required:!0,validator:(w,M,G)=>pi(w,M,G,i.isEn),trigger:"blur"},{validator:H,trigger:"blur"}],confirmPassword:[{required:!0,validator:(w,M,G)=>pi(w,M,G,i.isEn),trigger:"blur"},{validator:H,trigger:"blur"}]},handleStep1Next:()=>{x.value.validate(w=>{w&&R()})},handleStep2Submit:async()=>{P.value&&await P.value.validate(async w=>{w&&await W()&&e("to-login")})},handleChangeTab:w=>{w&&v[w]||(s.value=w||s.value,k())},handleTriggerVerify:R,handleVerifySuccess:S,handleSendCodeVerifySuccess:O}}}),jC="data:image/webp;base64,UklGRsRFAABXRUJQVlA4WAoAAAAQAAAAfwIA3wEAQUxQSLkLAAABFMVt20a2sv/U6Wm0/4iYAH3QsQAZj5Skpeqc1H6r0r4PNiInDqR6gg0QUQ20fqiT2bwp+VTtHH8POAbt57zXh2N0nHFNdXEEirStD0qrtrdupA+CIBhCIQhCIASCGdQMGgaGkGEgCIFgCIagH83cZ9fyt5dExARQsrW3iiT5CFMiHfgYkyKFNaw19GO7PavTG613od8aRcQE0HX/P27kCLYFYzRrWGt4R5pflTvMnU7tXt46AesczhPoCawEaZmjVq6aVcqZbk+p3Ut9EM0DGHyCf6GDkpcDE6wiYgJkxbZdNxIPIbgMLgKFgBCkERiBQ0Am4EYgBBMCEYIgEIOL4PxOnXP75a+ICFz+v/x/+f/y/+X/y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YovWpUTwlOItbmGZC8GS00lHfcbdTaWhbTwC8UqFBWNZXsQkv3QFpQpU8JSUpQmu5qrZ9zKfM7ZJhH4PstsmmIUOOpmh/v4IzCB2E38hTPZcVNRe0yb4zH5FoIjyqOW9mnRBIF+c7ebGfwkxVqVFHAAKZaLq0f5A5fg8JvpZtrzxXb8DKhOO4tGeWRn/pdApG2RVIVdUmcwpqzlDEInDeEM1fdc6Kf0tlvlt85k8uSCJECa1NJbfThRmnkPdxNW73UqDZjTTjg1cc5/xAio3nrqea6y7nePIPbAD4xQiYRrRJOJf2TX5rVRRFi/auoEHDR8rSRFQGYsBDWjSFA+0anMpYYevDOVK/B0m27pI5W/B2Fh4kf50Yo5x8pu/Oc5pMH5gfHRGqPl1yECC0d/6Hcw3+LYJnc3NgqjlT/otdhdVZOgbE/MCv2kR9RHZU2zZ0fJCmsqeSKpGFNOlwtYf4MsTPazDC29KQaeaqjeWoJxOBVkwiLT6DY8uYm3EaZ9jUhSxFgNt+KLB9uwDpJ1NpOl5fx2X0+df/t4vPShoAQCGIY4Y9n+Wx39CEAAAACEn//+4e+kMk8wQRCCl4Sj1tWs4IV3VDIWkKhr20cMBeMCQv7DaL/6Q5/q5N1V/T1FqcBhJpYbsy3AWdy3C/vW0pBzMcoHH8IB9KhCDVVQopf5eE4DMA/HlaJmN6xKX7k6AAAAAAAAAAAAAA";var zC=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"forget-password-container"},[r("div",{staticClass:"forget-box"},[r("div",{staticClass:"header-title"},[r("h1",[e._v(e._s(e.isEn?"Reset Password":"重置密码"))])]),e.showCustomerService?r("div",{staticClass:"kefu-wrapper"},[r("img",{staticClass:"kefu-img",attrs:{src:jC}}),r("p",{staticClass:"kefu-text"},[e._v(" "+e._s(e.isEn?"The current account does not have a phone number and email, and cannot be verified. Please contact customer service directly":"当前账号没有手机号和邮箱,无法验证,请直接联系客服。")+" ")]),r("div",[e._v(e._s(e.isEn?"Customer Service":"联系客服"))])]):r("div",{staticClass:"form-wrapper"},[e.activeStep===1?r("div",[r("el-form",{ref:"formARef",attrs:{model:e.formA,rules:e.rulesA}},[r("el-form-item",{staticClass:"jc:mb-5!",attrs:{prop:"userName"}},[r("GoogleInput",{attrs:{value:e.formA.userName,placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.formA.userName=s}}})],1),r("el-button",{staticClass:"submit-btn",attrs:{type:"primary",loading:e.loading},on:{click:e.handleStep1Next}},[e._v(" "+e._s(e.isEn?"Next":"下一步")+" ")])],1)],1):e._e(),e.activeStep===2?r("div",[r("div",{staticClass:"tab-switcher"},[r("div",{staticClass:"tab-item",class:{active:e.activeTab==="email",disabled:e.disabledTabs.email},on:{click:function(s){return e.handleChangeTab("email")}}},[r("svg",{staticClass:"icon-svg",attrs:{t:"1767855712095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9362","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"}},[r("path",{attrs:{fill:"currentColor",d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z","p-id":"9363"}})]),e._v(" "+e._s(e.isEn?"Email Verify":"邮箱验证")+" ")]),r("div",{staticClass:"tab-item",class:{active:e.activeTab==="mobile",disabled:e.disabledTabs.mobile},on:{click:function(s){return e.handleChangeTab("mobile")}}},[r("svg",{staticClass:"icon-svg",attrs:{t:"1767855760413",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9516","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"}},[r("path",{attrs:{fill:"currentcolor",d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z","p-id":"9517"}})]),e._v(" "+e._s(e.isEn?"Mobile Verify":"手机验证")+" ")])]),r("el-form",{ref:"formBRef",attrs:{model:e.formB,rules:e.rulesB}},[r("el-form-item",{staticClass:"info-item"},[r("p",{staticClass:"default-info"},[r("span",{staticClass:"title"},[e._v(" "+e._s(e.activeTab==="email"?e.isEn?"Email":"邮箱":e.isEn?"Mobile":"手机号"))]),r("span",{staticClass:"user-value"},[e._v(" "+e._s(e.activeTab==="email"?e.userData.email:e.userData.mobile))])])]),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{"show-icon":"",value:e.formB.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:!0,"is-en":e.isEn,"custom-countdown":e.activeTab==="email"?e.codeCountdown.email:e.codeCountdown.mobile},on:{input:function(s){e.formB.code=s},send:e.handleSendCodeVerifySuccess}})],1),r("el-form-item",{attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{value:e.formB.password,type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},on:{input:function(s){e.formB.password=s}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}],null,!1,2767601835)})],1),r("el-form-item",{attrs:{prop:"confirmPassword"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{value:e.formB.confirmPassword,type:"password","show-password":"",label:e.isEn?"Confirm Password":"确认密码",placeholder:e.isEn?"Enter password again":"请再次输入密码"},on:{input:function(s){e.formB.confirmPassword=s}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}],null,!1,2767601835)})],1),r("el-button",{staticClass:"submit-btn",attrs:{type:"primary",loading:e.loading},on:{click:e.handleStep2Submit}},[e._v(" "+e._s(e.isEn?"Confirm":"确认修改")+" ")])],1)],1):e._e()])]),r("FooterBox",{style:{margin:"12px -16px -16px"},attrs:{label:e.isEn?"Back to":"返回","sub-label":e.isEn?"log in":"登录"},on:{"handle-click":function(s){return e.$emit("to-login")}}}),r("JcVerifySlide",{attrs:{visible:e.verifyVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.verifyVisible=s},success:e.handleVerifySuccess}})],1)},QC=[],KC=ve(JC,zC,QC,!1,null,"a511aae1");const Sc=KC.exports,XC=Object.freeze(Object.defineProperty({__proto__:null,default:Sc},Symbol.toStringTag,{value:"Module"})),YC={name:"LoginTypeSwitcher",components:{ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton},props:{value:{type:String,default:"email"},showAccount:{type:Boolean,default:!1},showEmail:{type:Boolean,default:!0},showMobile:{type:Boolean,default:!0},isEn:{type:Boolean,default:!1}},emits:["input","change"],methods:{handleChange(i){this.$emit("input",i),this.$emit("change",i)}}};var $C=function(){var e=this,r=e._self._c;return r("el-radio-group",{staticClass:"login-type-switcher",attrs:{value:e.value},on:{input:e.handleChange}},[e.showAccount?r("el-radio-button",{attrs:{label:"account"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="account"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"}})]),r("span",[e._v(e._s(e.isEn?"Password":"账号密码"))])])]):e._e(),e.showEmail?r("el-radio-button",{attrs:{label:"email"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="email"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"}})]),r("span",[e._v(e._s(e.isEn?"Email":"邮箱"))])])]):e._e(),e.showMobile?r("el-radio-button",{attrs:{label:"mobile"}},[r("div",{staticClass:"switcher-content"},[r("svg",{staticClass:"switcher-icon",class:{"is-active":e.value==="mobile"},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z"}})]),r("span",[e._v(e._s(e.isEn?"Cell Phone":"手机号"))])])]):e._e()],1)},ZC=[],e1=ve(YC,$C,ZC,!1,null,"3c937e8d");const wi=e1.exports,t1=Object.freeze(Object.defineProperty({__proto__:null,default:wi},Symbol.toStringTag,{value:"Module"})),n1=y.defineComponent({name:"ThirdBindLogin",components:{ElButton:U.Button,ElForm:U.Form,ElFormItem:U.FormItem,LoginTypeSwitcher:wi,GoogleInput:Ht,CodeInput:an,JcVerifySlide:vn},props:{isEn:{type:Boolean,default:!1},bindList:{type:Array,default:()=>[]}},setup(i,{emit:e}){const r=y.ref(!1),s=y.ref(null),u=y.computed(()=>s.value?s.value:i.bindList.length===1?i.bindList[0]:null),p=y.ref(),l=y.ref({type:"account",username:"",password:"",email:"",phone:"",areaCode:"+86",code:""}),m=y.ref([]),_=y.ref(!0),v=y.ref(!1),I=y.ref(""),F=y.ref(""),R=y.ref({});let S=null;y.watch(u,B=>{B&&(l.value.username=B.account||"",l.value.email=B.email||"",l.value.phone=B.mobile||"",B.account?l.value.type="account":B.email?l.value.type="email":l.value.type="mobile",B.mobile&&m.value.length===0&&E.findPAreaCodeApi().then(w=>m.value=w.data.data.records))},{immediate:!0});const O=y.computed(()=>{const B={username:[{required:!0,trigger:"blur",message:i.isEn?"Enter Username":"请输入账号"}],password:[{required:!0,trigger:"blur",message:i.isEn?"Enter Password":"请输入密码"}],email:[{required:!0,validator:(w,M,G)=>{Ln(w,M,G,i.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(w,M,G)=>{Mn(w,M,G,i.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(w,M,G)=>rn(w,M,G,i.isEn),trigger:"blur"}]};return l.value.type==="account"?{username:B.username,password:B.password}:{code:B.code,...l.value.type==="email"?{email:B.email}:{phone:B.phone}}}),W=B=>{s.value=B},k=B=>{l.value.type=B},x=async B=>{var w;if((w=p.value)==null||w.clearValidate(),B=="mobile"&&m.value.length===0){const M=await E.findPAreaCodeApi();m.value=M.data.data.records}},P=B=>{var w;(w=p.value)==null||w.validateField(B,M=>{_.value=M})},H=({captchaData:B,startTimer:w})=>{R.value=B,S=w,z(B)},z=B=>{const w=l.value.type==="mobile",M={target:w?l.value.phone:l.value.email,uuid:B.uuid,code:B.code};w&&(M.areaCode=l.value.areaCode);const G=w?E.sendMobileCodeApi:E.sendEmailCodeApi;S&&S(),G(M).then(Y=>{var de;const _e=((de=Y.data.data)==null?void 0:de.verifyCode)||Y.data.verifyCode;(Y.data.code===0||Y.data.code===200)&&(w?I.value=_e:F.value=_e,U.Message.success(i.isEn?"Code sent":"验证码已发送"))}).catch(console.error)},J=()=>{var B;(B=p.value)==null||B.validate(w=>{if(w)if(l.value.type==="account")v.value=!0;else{if(!I.value&&!F.value)return U.Message.error(i.isEn?"Please get code first":"请先获取验证码");q(R.value)}})},b=B=>{v.value=!1,q(B)},q=B=>{var _e;r.value=!0;const w=Ac(),M=E.getAuthSessionItems(),G={thirdPartyType:w==null?void 0:w.thirdPartyType,thirdPartyId:w==null?void 0:w.thirdPartyId,thirdPartyEmail:w==null?void 0:w.thirdPartyEmail,thirdPartyUserName:w==null?void 0:w.thirdPartyUserName,appId:"ERA",kick:!0,userId:((_e=u.value)==null?void 0:_e.userId)||"",activityCode:(M==null?void 0:M.activityCode)||"",referenceUserId:(M==null?void 0:M.referenceUserId)||"",prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")};let Y;if(l.value.type==="account")Y=E.bindThirdPartyByPwdApi({...G,account:l.value.username,password:gt.MD5(l.value.password).toString(),verificationCodeUuid:B.uuid,verificationCodeValue:B.code,...B});else{const de=l.value.type==="mobile";Y=E.bindThirdPartyByCodeApi({...G,type:de?"MOBILE":"EMAIL",account:de?l.value.phone:l.value.email,verificationCodeUuid:de?I.value:F.value,verificationCodeValue:l.value.code,...B})}Y.then(de=>{if(de.data.code!==0)return U.Message.error(de.data.msg||(i.isEn?"Login failed":"登录失败"));if(de.data.data){const xe=de.data.data;xe.tgc&&qt.set("tgc",xe.tgc,{expires:30}),xe.result&&E.setTokenAll(xe.result),xe.redirectPath&&Vt(xe.redirectPath);return}if(de.data.subCode==="USER_HAS_OTHER_BIND"){U.Message.error(i.isEn?"Bound to other user":"该账号已绑定其他用户");return}de.data.result&&E.setTokenAll(de.data.result),de.data.tgc&&qt.set("tgc",de.data.tgc,{expires:30}),de.data.redirectPath&&Vt(de.data.redirectPath)}).finally(()=>{r.value=!1})};return{submitting:r,selectedUser:s,currentUser:u,bindLoginFormRef:p,loginForm:l,areaCodeData:m,codeReady:_,captchaVisible:v,computedRules:O,handleSelectUser:W,handleTypeInput:k,handleChangeSubType:x,validateField:P,handleGetCode:H,handleSubmit:J,handleCaptchaSuccess:b}}}),r1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855712095'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9362'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20fill='currentcolor'%20d='M113.242353%20250.217412l356.352%20356.412235a60.235294%2060.235294%200%200%200%2080.655059%204.156235l4.577882-4.156235%20356.111059-356.171294c1.204706%204.397176%201.987765%208.914824%202.409412%2013.552941l0.240941%206.987294v481.882353c0%2042.345412-32.768%2077.101176-74.270118%2080.112941l-6.023529%200.240942H190.765176a80.293647%2080.293647%200%200%201-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824%200.421647-9.456941%201.204706-14.034823l1.505883-6.746353z%20m720.052706-59.512471c4.818824%200%209.637647%200.421647%2014.215529%201.204706l6.866824%201.566118-342.136471%20342.13647-342.256941-342.13647c4.397176-1.204706%209.035294-2.048%2013.673412-2.409412l7.107764-0.361412h642.529883z'%20p-id='9363'%3e%3c/path%3e%3c/svg%3e",i1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855760413'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9516'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M694.874353%20918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235%2064.271059-173.778824%20142.336-207.209412a59.030588%2059.030588%200%200%201%2058.006588%206.324706c64.210824%2046.863059%20108.604235%20117.639529%20146.672941%20173.357176%2017.227294%2025.178353%2013.071059%2059.512471-10.24%2079.75153L363.52%20439.717647a19.275294%2019.275294%200%200%200-5.722353%2024.696471c17.709176%2032.346353%2049.332706%2080.353882%2085.473882%20116.495058%2036.141176%2036.141176%2086.437647%2069.752471%20120.952471%2089.509648a19.395765%2019.395765%200%200%200%2025.840941-6.445177l50.959059-77.703529c19.516235-25.961412%2056.018824-31.623529%2082.582588-13.251765%2056.500706%2039.092706%20122.458353%2082.642824%20170.706824%20144.444235a59.030588%2059.030588%200%200%201%207.589647%2059.632941c-33.611294%2078.426353-118.663529%20145.167059-207.088941%20141.914353z'%20p-id='9517'%3e%3c/path%3e%3c/svg%3e",Ic="data:image/webp;base64,UklGRtgAAABXRUJQVlA4WAoAAAAQAAAAHwAAHwAAQUxQSG8AAAABcFXbVq2cCEQ4EYxABBtIhNvg0kAaEMEIJwoRiLB86/b5GxETYP9n6T1rGiyaBULjMJPEAvaaDOwkdgBWSRrAKH4rxsOTq3NzbfD0/Cr+eACzZk/XHl+Bluz5DlRTBnRTOuCSAmHSBlU0xlbzdwIAVlA4IEIAAABwAwCdASogACAAPjESjEYiENDKACADBLSAACWH58lev5ur/aAA/iw///2p6j//i/2//+H8FPIH///0cbN//9v7AAA=";var a1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"bind-container"},[r("div",{staticClass:"bind-title"},[r("div",[e._v(" "+e._s(e.currentUser?e.isEn?"Log in and link":"绑定并登录":e.isEn?"Select account to link":"请选择要关联的账号")+" ")]),e.currentUser&&e.bindList.length>1?r("div",{staticClass:"back-btn",on:{click:function(s){e.selectedUser=null}}},[e._v(" "+e._s(e.isEn?"< Back":"< 返回选择")+" ")]):e._e()]),e.currentUser?r("div",{staticClass:"bind-form-content"},[r("div",{staticClass:"current-bind-info"},[r("span",[e._v(e._s(e.isEn?"Binding Account:":"正在绑定账号:"))]),r("span",{staticClass:"highlight"},[e._v(e._s(e.currentUser.account||e.currentUser.email||e.currentUser.mobile))])]),r("el-form",{ref:"bindLoginFormRef",staticClass:"third-bind-login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[r("el-form-item",{staticClass:"form-type",attrs:{prop:"type"}},[r("LoginTypeSwitcher",{staticClass:"jc:max-w-full!",attrs:{value:e.loginForm.type,"is-en":e.isEn,"show-account":"","show-email":!!e.loginForm.email&&e.currentUser.emailValidFlag==="1","show-mobile":!!e.loginForm.phone&&e.currentUser.mobileValidFlag==="1"},on:{input:e.handleTypeInput,change:e.handleChangeSubType}})],1),e.loginForm.type==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{value:e.loginForm.username,disabled:"",placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.loginForm.username=s}}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{value:e.loginForm.password,type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},on:{input:function(s){e.loginForm.password=s}}})],1)]:e.loginForm.type==="email"?[r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{value:e.loginForm.email,disabled:"",placeholder:e.isEn?"Email Address":"邮箱地址"},on:{input:function(s){e.loginForm.email=s},blur:function(s){return e.validateField("email")}}})],1)]:[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"tel"},[r("el-form-item",{ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{value:e.loginForm.phone,placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",disabled:"",autocomplete:"off",maxlength:"15"},on:{input:function(s){e.loginForm.phone=s},blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("div",{staticClass:"tel-areacode"},[e._v(e._s(e.loginForm.areaCode))])]},proxy:!0}])})],1)],1)],e.loginForm.type==="email"||e.loginForm.type==="mobile"?r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{value:e.loginForm.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{input:function(s){e.loginForm.code=s},send:e.handleGetCode}})],1):e._e(),r("div",{staticClass:"register-bottom"},[r("el-button",{staticClass:"submit-btn",attrs:{loading:e.submitting},on:{click:e.handleSubmit}},[e._v(" "+e._s(e.isEn?"Login and Link":"登录并绑定")+" "),r("img",{staticStyle:{width:"16px",height:"16px","vertical-align":"middle","margin-left":"4px"},attrs:{src:Ic,alt:""}})])],1)],2)],1):r("div",{staticClass:"user-list"},e._l(e.bindList,function(s,u){return r("div",{key:u,staticClass:"bind-user-card",on:{click:function(p){return e.handleSelectUser(s)}}},[e._m(0,!0),r("div",{staticClass:"bind-user-card__right"},[r("div",{staticClass:"bind-user-card__right__title"},[e._v(" "+e._s(e.isEn?s.userNameEn||s.userNameCn:s.userNameCn||s.userNameEn)+" ")]),r("div",{staticClass:"bind-user-card__right__desc"},[e._v(" "+e._s(e.isEn?s.compNameEn||s.compNameCn:s.compNameEn||s.compNameEn)+" ")]),s.email?r("div",{staticClass:"bind-user-card__right__info"},[r("img",{attrs:{src:r1}}),e._v(" "+e._s(s.email)+" ")]):e._e(),s.mobile?r("div",{staticClass:"bind-user-card__right__info"},[r("img",{attrs:{src:i1}}),e._v(" "+e._s(s.mobile)+" ")]):e._e()]),r("div",{staticClass:"bind-user-card__btn"},[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(p){return p.stopPropagation(),e.handleSelectUser(s)}}},[e._v(" "+e._s(e.isEn?"Select":"选择")+" ")])],1)])}),0),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},s1=[function(){var i=this,e=i._self._c;return i._self._setupProxy,e("div",{staticClass:"bind-user-card__left"},[e("div",{staticClass:"account-icon"})])}],o1=ve(n1,a1,s1,!1,null,"d24ef5c3");const xc=o1.exports,l1=Object.freeze(Object.defineProperty({__proto__:null,default:xc},Symbol.toStringTag,{value:"Module"})),c1={name:"ThirdRegisterForm",components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,JcFloatInput:qn,CodeInput:an,JcFloatWrapper:Ai,JcSearch:hr,ChineseCompanySearch:_i,GoogleInput:Ht,ApplyJoinBtn:bi},props:{isEn:Boolean},emits:["bind-third-party","register","register-success","need-complete"],computed:{isAgree(){return this.form.agree},countryId(){var i,e,r;return(r=(e=(i=this.form.city)==null?void 0:i.raw)==null?void 0:e.country)==null?void 0:r.id},cityId(){var i;return(i=this.form.city)==null?void 0:i.id},currentCountryIsChina(){var e;const i=this.countryId||((e=this.resistCompanyInfo)==null?void 0:e.countryId);return[1].includes(Number(i))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},showEmailBindBtn(){return!this.currentCountryIsChina&&this.thirdPartyEmailVerifyList.length>0},showMobileBindBtn(){return this.currentCountryIsChina&&this.thirdPartyMobileVerifyList.length>0}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:"",cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(i,e,r)=>ss(i,e,r,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(i,e,r)=>Nn(i,e,r,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(i,e,r)=>AC(i,e,r,this.isEn,this),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>bC(i,e,r,this.isEn,this),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>rn(i,e,r,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(i,e,r)=>pi(i,e,r,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(i,e,r)=>{e?r():r(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1,thirdPartyMobileVerifyList:[],thirdPartyEmailVerifyList:[]}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:os,getAuthSessionItems:E.getAuthSessionItems,go2Policy:ls,handleBindThirdParty(i){this.$emit("bind-third-party",i==="email"?this.thirdPartyEmailVerifyList:this.thirdPartyMobileVerifyList)},async inviteJoinGetComp(){const e=E.getAuthSessionItems().compKey;if(!e)return;const{data:r}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=r.data},findDict(){E.findDictApi({dictType:"cmc_company_industry_sector"}).then(i=>{const e=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=i.data.data.records.map(r=>({...r,...e.find(s=>s.value===r.dictValue)}))}).catch(i=>{console.log("findDict err:",i)})},handleChangeCompany(i){this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){var s,u,p;const e=(await E.getLocalIpDataApi()).data;e&&e.code===0&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:(s=e.data)==null?void 0:s.countryId},country:{id:(u=e.data)==null?void 0:u.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=(p=e.data)==null?void 0:p.countryId,this.handleSelectCity(this.form.city));const r=await E.findPAreaCodeApi();this.areaCodeData=r.data.data.records},handleSelectCity(i){var e,r,s,u;this.form.cityId=i.id,this.form.countryId=((r=(e=i.raw)==null?void 0:e.country)==null?void 0:r.id)||((u=(s=i.raw)==null?void 0:s.city)==null?void 0:u.countryId)||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(i){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(i,e=>{(i==="email"||i==="phone")&&(this.codeReady=e)})},handleGetCode({captchaData:i,startTimer:e}){this.verifyData=i;const r={target:this.form.email||this.form.phone,uuid:i.uuid,code:i.code};let s=E.sendEmailCodeApi,u=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(s=E.sendMobileCodeApi,u=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),e(),s(r).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(this.currentCountryIsChina?this.mobileUid=l:this.emailUid=l,U.Message.success(u))}).catch(p=>{console.error(p)})},handleRegister(){this.$refs.registerFormRef.validate(i=>{var m;if(!i)return;const e=this.getAuthSessionItems(),{thirdPartyId:r,thirdPartyEmail:s,thirdPartyType:u,thirdPartyUserName:p}=Ac();let l={appId:this.appId,fromSys:this.appId,passwd:gt.MD5(this.form.password).toString(),industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,clickSource:e.clickSource||"",activityCode:e.activityCode||"",referenceUserId:e.referenceUserId||"",inviterEmpNo:e.empNo||"",registerType:e.registerType||"",registerEvent:e.registerEvent||"",thirdPartyId:r,thirdPartyEmail:s,thirdPartyType:u,thirdPartyUserName:p,prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")};this.currentCountryIsChina?Object.assign(l,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:(m=this.areaCodeData.find(_=>_.telCode===this.form.areaCode))==null?void 0:m.id,account:E.Encrypt(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(l,{type:"EMAIL",account:E.Encrypt(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(l):this.handleNewCompanySubmit(l)})},async handleNewCompanySubmit(i){const e={...this.form.kqInfo,...i,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?e.compNameCn=this.form.companyName:e.compNameEn=this.form.companyName,this.$emit("register",e),this.loading=!0;try{const r=await E.registerByThirdPartyApi(e);this.handlePostRegister(r)}catch{this.loading=!1}},async handleApplyJoinSubmit(i){const e={...i,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(e.nameCn=this.form.nameCn),this.form.nameEn&&(e.nameEn=this.form.nameEn),["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(s=>delete e[s]),this.$emit("register",e),this.loading=!0;try{const s=await E.registerJoinCompByThirdPartyApi(e);this.handlePostRegister(s)}catch{this.loading=!1}},handlePostRegister(i){const e=this.getAuthSessionItems();if(i.data.code===0)if(i.data.data.redirect)try{if(qt.set("tgc",i.data.data.tgc,{expires:30}),i.data.data.result&&E.setTokenAll(i.data.data.result),i.data.data.result&&i.data.data.result.improveComp){this.$emit("need-complete",i.data.data.result.improveComp);return}const r=i.data.data.redirectPath||e.path||"/",s={isHandled:!1},u=l=>{s.isHandled=!0;const m=Number(l)||0;setTimeout(()=>{E.resetAuthSessionItems(),Vt(r)},m)},p=()=>{s.isHandled=!0};this.$emit("register-success",{user:i.data.data.result,redirectPath:r,preventDefault:p,redirect:u}),setTimeout(()=>{s.isHandled||(E.resetAuthSessionItems(),Vt(r))},0)}catch(r){console.log("handlePostRegister error:",r)}else this.loading=!1,U.Message.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,U.Message.error(i.data.msg)}}};var u1=function(){var s,u,p;var e=this,r=e._self._c;return r("div",{staticClass:"third-register-form-container"},[r("el-form",{ref:"registerFormRef",staticClass:"auth-form",attrs:{model:e.form,rules:e.rules}},[e.hasResistCompany?[r("div",{staticClass:"resist-company-info-card"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" "+e._s(e.isEn?"Company Name":"公司名称"))])]),r("span",{staticClass:"change-link",on:{click:function(l){e.hasResistCompany=!1}}},[e._v(" "+e._s(e.isEn?"Change":"修改")+" ")])]),r("div",{staticClass:"company-content"},[r("h4",{staticClass:"company-name"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.compNameEn:e.resistCompanyInfo.compNameCn||e.resistCompanyInfo.compNameEn)+" ")])]),r("div",{staticClass:"card-header"},[r("div",{staticClass:"title-group"},[r("span",{staticClass:"tip-text"},[e._v(" Location(City)")])])]),r("div",{staticClass:"location-info"},[e._v(" "+e._s(e.isEn?e.resistCompanyInfo.countryNameEn:e.resistCompanyInfo.countryNameCn)+" / "+e._s(e.isEn?e.resistCompanyInfo.cityNameEn:e.resistCompanyInfo.cityNameCn)+" ")])]),r("el-form-item",{staticClass:"name-input-item",attrs:{prop:e.currentCountryIsChina?"nameCn":"nameEn"}},[r("JcFloatInput",{attrs:{label:e.currentCountryIsChina?e.isEn?"Your Full Name in Chinese":"您的中文名称":e.isEn?"Your Full Name in English":"您的名称",placeholder:e.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-user"})]},proxy:!0}]),model:{value:e.form[e.currentCountryIsChina?"nameCn":"nameEn"],callback:function(l){e.$set(e.form,e.currentCountryIsChina?"nameCn":"nameEn",l)},expression:"form[currentCountryIsChina ? 'nameCn' : 'nameEn']"}})],1)]:[r("el-form-item",{attrs:{prop:"city"}},[r("JcFloatWrapper",{attrs:{label:e.isEn?"Company Location (City)":"公司所在城市","has-value":!!(e.form.city&&e.form.city.id)}},[r("JcSearch",{staticClass:"jc:my-0! search-city-item",style:{"--original-text-main":"#232324"},attrs:{"show-search-icon":!1,"search-type-list":["City"],placeholder:e.isEn?"Location(City)":"请输入公司所在城市"},on:{select:e.handleSelectCity},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-location"})]},proxy:!0}],null,!1,465018025),model:{value:e.form.city,callback:function(l){e.$set(e.form,"city",l)},expression:"form.city"}})],1)],1),r("el-form-item",{attrs:{prop:"companyName"}},[r("JcFloatWrapper",{attrs:{label:e.currentCompanyLabel}},[r("ChineseCompanySearch",{staticClass:"jc:my-0! search-company-item",attrs:{"company-name":e.form.companyName,"use-kq":e.form.useKq,"kq-code":e.form.kqCode,"kq-info":e.form.kqInfo,"country-id":((p=(u=(s=e.form.city)==null?void 0:s.raw)==null?void 0:u.country)==null?void 0:p.id)||null,city:e.form.city},on:{"update:companyName":function(l){return e.$set(e.form,"companyName",l)},"update:company-name":function(l){return e.$set(e.form,"companyName",l)},"update:useKq":function(l){return e.$set(e.form,"useKq",l)},"update:use-kq":function(l){return e.$set(e.form,"useKq",l)},"update:kqCode":function(l){return e.$set(e.form,"kqCode",l)},"update:kq-code":function(l){return e.$set(e.form,"kqCode",l)},"update:kqInfo":function(l){return e.$set(e.form,"kqInfo",l)},"update:kq-info":function(l){return e.$set(e.form,"kqInfo",l)},change:e.handleChangeCompany},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-company"})]},proxy:!0}],null,!1,3014956371)})],1)],1),e.companyResistCn||e.companyResistEn?r("ApplyJoinBtn",{on:{"apply-join":e.handleApplyJoinClick}}):e._e()],e.currentCountryIsChina?r("el-form-item",{ref:"areaCodeCountryId",staticClass:"phone-form-item"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(l){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-phone"}),r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(l){return e.validateField("areaCode")}},model:{value:e.form.areaCode,callback:function(l){e.$set(e.form,"areaCode",l)},expression:"form.areaCode"}},[e._l(e.areaCodeData,function(l){return r("el-option",{key:l.id,attrs:{label:l.telCode,value:l.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}],null,!1,2606172549),model:{value:e.form.phone,callback:function(l){e.$set(e.form,"phone",l)},expression:"form.phone"}})],1)],1):e._e(),e.currentCountryIsChina?e._e():r("el-form-item",{staticClass:"email-form-item",attrs:{prop:"email"}},[r("JcFloatInput",{attrs:{label:e.isEn?"Business Email Address":"企业邮箱",placeholder:e.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱"},on:{blur:function(l){return e.validateField("email")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-email"})]},proxy:!0}],null,!1,678594200),model:{value:e.form.email,callback:function(l){e.$set(e.form,"email",l)},expression:"form.email"}})],1),e.showEmailBindBtn?[r("el-form-item",[r("div",{staticClass:"third-party-bind-btn",on:{click:function(l){return e.handleBindThirdParty("email")}}},[e._v(" "+e._s(e.isEn?"To bind":"去绑定")+" "),r("img",{style:{marginLeft:"2px",width:"8px",height:"12px"},attrs:{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png"}})])])]:e._e(),e.showMobileBindBtn?[r("el-form-item",[r("div",{staticClass:"third-party-bind-btn",on:{click:function(l){return e.handleBindThirdParty("mobile")}}},[e._v(" "+e._s(e.isEn?"To bind":"去绑定")+" "),r("img",{style:{marginLeft:"2px",width:"8px",height:"12px"},attrs:{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png"}})])])]:e._e(),r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn,"show-icon":""},on:{send:e.handleGetCode},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-verify"})]},proxy:!0}]),model:{value:e.form.code,callback:function(l){e.$set(e.form,"code",l)},expression:"form.code"}})],1),r("el-form-item",{staticClass:"password-form-item",attrs:{prop:"password"}},[r("JcFloatInput",{staticClass:"input-show-pass",attrs:{type:"password","show-password":"",label:e.isEn?"Password":"密码",placeholder:e.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("i",{staticClass:"icon-auth-password"})]},proxy:!0}]),model:{value:e.form.password,callback:function(l){e.$set(e.form,"password",l)},expression:"form.password"}})],1),e.hasResistCompany?e._e():r("div",{staticClass:"sector-section"},[r("p",{staticClass:"sector-label"},[e._v(" "+e._s(e.isEn?"Industry Sector":"行业类型")+" ")]),r("div",{staticClass:"sector-group"},e._l(e.sectors,function(l){return r("div",{key:l.value,staticClass:"sector-item",class:{active:e.form.sector===l.value},on:{click:function(m){e.form.sector=l.value}}},[e._v(" "+e._s(e.isEn?l.en:l.cn)+" "),e.form.sector===l.value?r("i",{staticClass:"icon-auth-checked"}):e._e()])}),0)]),r("el-form-item",{staticClass:"agree-item",attrs:{prop:"agree"}},[r("el-checkbox",{model:{value:e.form.agree,callback:function(l){e.$set(e.form,"agree",l)},expression:"form.agree"}},[r("span",{staticClass:"agree-text"},[e._v(" "+e._s(e.isEn?"I agree":"我同意")+" "),r("span",{staticClass:"link-type",on:{click:function(l){return l.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),e._v(" "+e._s(e.isEn?"and":"和")+" "),r("span",{staticClass:"link-type",on:{click:function(l){return l.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])])],1),r("el-button",{staticClass:"submit-btn register-btn",class:["register-btn-is-active"],attrs:{disabled:e.loading,loading:e.loading},on:{click:e.handleRegister}},[e._v(" "+e._s(e.isEn?"Register and Log in":"注册并登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],2)],1)},f1=[],d1=ve(c1,u1,f1,!1,null,"54b21d24");const Tc=d1.exports,p1=Object.freeze(Object.defineProperty({__proto__:null,default:Tc},Symbol.toStringTag,{value:"Module"}));function Rc(i={}){console.log("🍉 ~ useAuthLogin.ts:27 ~ useAuthLogin ~ options:",i);const{appId:e="ERA",isEn:r=!1}=i,s=y.ref(!1),u=y.ref(!1),p=y.ref(null),l=y.ref(!1),m=R=>{console.log("🍉 ~ useAuthLogin.ts:36 ~ executeRedirect ~ loginData:",R);const S=E.getAuthSessionItems()||{},O=R.redirectPath||S.path||"/";R.result&&E.setTokenAll(R.result),console.log("🍉 Redirecting to:",O),Vt(O)},_=async R=>{var B;const{loginType:S,loginForm:O={},captchaData:W={},isKick:k=!1,mobileUid:x,emailUid:P,areaCodeData:H=[],remember:z}=R;s.value=!0,k||(p.value=W);const J=E.getAuthSessionItems()||{},b={appId:e,fromSys:e,kick:k,inviterInfo:J.empNo||void 0,redirectPath:J.path||"/",...J,...W,prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")};let q=E.loginApi;if(S==="account")Object.assign(b,{type:"PASSWORD",username:O.username,password:gt.MD5(O.password).toString(),uniqueCode:""});else if(S==="wechat")Object.assign(b,{type:"WECHAT",uniqueCode:J.uniqueCode}),!J.uniqueCode&&!b.uniqueCode&&console.warn("WeChat login missing uniqueCode"),q=E.loginApi;else{const w=O.type==="mobile",M=w?x:P;if(Object.assign(b,{type:w?"MOBILE":"EMAIL",account:w?O.phone:O.email,verificationCodeValue:O.code,verificationCodeUuid:M}),w){const G=H.find(Y=>Y.telCode===O.areaCode);b.areaCode=O.areaCode,b.areaCodeCountryId=G==null?void 0:G.id}if(!b.verificationCodeUuid){s.value=!1,U.Message.error(r?"Please get the verification code first":"请先获取验证码");return}q=E.loginByEmailOrMobileCodeApi}try{const{data:w}=await q(b);if(console.log("🍉 ~ useAuthLogin.ts:144 ~ handleAuthSubmit ~ res:",w),w.code===0){const M=w.data||{};if(M.hasLogon===!0&&!M.tgc){v(R);return}if(M.tgc){if(M.result&&E.setTokenAll(M.result),z&&qt.set("tgc",M.tgc,{expires:30,domain:E.getFirstDomain()}),(B=M.result)==null?void 0:B.improveComp){l.value=!0,s.value=!1,i.onNeedComplete&&i.onNeedComplete(M);return}U.Message.success(r?"Login successful":"登录成功"),i.onSuccess?i.onSuccess(M):m(M)}else i.onSuccess&&i.onSuccess(M)}else U.Message.error(w.msg||(r?"Login failed":"登录失败"))}catch(w){console.error("Login Error:",w),U.Message.error(r?"Network Error":"网络请求异常")}finally{s.value=!1}},v=R=>{U.MessageBox.confirm(r?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",r?"Tips":"提示",{confirmButtonText:r?"Confirm":"确定",cancelButtonText:r?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{_({...R,isKick:!0})}).catch(()=>{s.value=!1})},I=async R=>{var B;const{loginType:S,loginForm:O,captchaData:W,uniqueCode:k,isKick:x=!0,mobileUid:P,emailUid:H,areaCodeData:z=[]}=R;console.log("🍉 ~ useAuthLogin.ts:261 ~ handleBindSubmit ~ params:",R),s.value=!0;const J=E.getAuthSessionItems()||{};let b,q={appId:e,uniqueCode:k,kick:x,code:W.code,uuid:W.uuid,redirectPath:J.path||"/",fromSys:e,prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")};if(console.log("🍉 ~ useAuthLogin.ts:279 ~ handleBindSubmit ~ payload:",q),S==="account")b=E.loginPwdBindWechatApi,Object.assign(q,{username:O.username,password:gt.MD5(O.password).toString(),rememberMe:O.remember||!1});else{b=E.loginCodeBindWechatApi;const w=O.type==="mobile",M=w?P:H;if(Object.assign(q,{type:w?"MOBILE":"EMAIL",account:w?O.phone:O.email,verificationCodeValue:O.code,verificationCodeUuid:M,rememberMe:O.remember||!1}),w){const G=z.find(Y=>Y.telCode===O.areaCode);Object.assign(q,{areaCode:O.areaCode,areaCodeCountryId:G==null?void 0:G.id})}if(!q.verificationCodeUuid){s.value=!1,U.Message.error(r?"Please get the verification code first":"请先获取验证码");return}}try{const{data:w}=await b(q);if(console.log("🍉 Bind Result:",w),w.code===0){const M=w.data||{};if(M.hasLogon===!0&&!M.tgc){F(R);return}if(M.tgc){if(M.result&&E.setTokenAll(M.result),qt.set("tgc",M.tgc,{expires:30,domain:E.getFirstDomain()}),(B=M.result)==null?void 0:B.improveComp){l.value=!0,s.value=!1,i.onNeedComplete&&i.onNeedComplete(M);return}U.Message.success(r?"Linked and logged in successfully":"绑定并登录成功"),i.onSuccess?i.onSuccess(M):m(M)}else i.onSuccess&&i.onSuccess(M)}else U.Message.error(w.msg||(r?"Binding failed":"绑定失败"))}catch(w){console.error("Bind Error:",w),U.Message.error(r?"Network Error":"网络请求异常")}finally{s.value=!1}},F=R=>{U.MessageBox.confirm(r?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",r?"Tips":"提示",{confirmButtonText:r?"Confirm":"确定",cancelButtonText:r?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{I({...R,isKick:!0})}).catch(()=>{s.value=!1})};return{loading:s,captchaVisible:u,handleAuthSubmit:_,executeRedirect:m,loginNeedComplete:l,handleBindSubmit:I}}const h1=y.defineComponent({name:"WechatBindLogin",components:{ElForm:U.Form,ElFormItem:U.FormItem,ElButton:U.Button,ElSelect:U.Select,ElOption:U.Option,LoginTypeSwitcher:wi,GoogleInput:Ht,CodeInput:an,JcVerifySlide:vn},props:{isEn:{type:Boolean,default:!1}},emits:["needComplete"],setup(i,{emit:e}){const{loading:r,captchaVisible:s,handleBindSubmit:u}=Rc({appId:"ERA",isEn:i.isEn,onNeedComplete:b=>{console.log("需要完善信息,暂不关闭弹窗"),e("needComplete",b)}}),p=y.ref({type:"account",username:"",password:"",remember:!1,email:"",phone:"",areaCode:"",code:""}),l=y.ref([]),m=y.ref(),_=y.ref(!1),v=y.ref(!1),I=y.ref({}),F=y.ref(""),R=y.ref(""),S=y.computed(()=>p.value.type),O=y.computed(()=>{const b={username:[{required:!0,trigger:"blur",message:i.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:i.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(q,B,w)=>{Ln(q,B,w,i.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(q,B,w)=>{Mn(q,B,w,i.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(q,B,w)=>{rn(q,B,w,i.isEn)},trigger:"blur"}]};return S.value==="account"?{username:b.username,password:b.password}:S.value==="email"||S.value==="mobile"?{code:b.code,...p.value.type==="email"?{email:b.email}:{phone:b.phone}}:{}});function W(b){p.value.type=b}async function k(b){if(b=="mobile"&&l.value.length===0){const q=await E.findPAreaCodeApi();l.value=q.data.data.records}}function x(b){p.value.areaCode=b,P("areaCode")}function P(b){m.value.validateField(b,q=>{_.value=q})}function H(){m.value.validate(b=>{if(b)if(S.value==="account")s.value=!0;else{if(!I.value||!I.value.uuid)return U.Message.error(i.isEn?"Please get code first":"请先获取验证码");z(I.value)}})}function z(b){s.value=!1;const B=(E.getAuthSessionItems()||{}).uniqueCode||"";if(!B){console.error("Missing uniqueCode for binding");return}u({loginType:S.value==="account"?"account":"code",loginForm:p.value,captchaData:{...b},uniqueCode:B,mobileUid:F.value,emailUid:R.value,areaCodeData:l.value})}function J({captchaData:b,startTimer:q}){const B=p.value.type==="mobile";I.value=b;const w={target:p.value.email||p.value.phone,uuid:b.uuid,code:b.code};B&&(w.areaCode=p.value.areaCode);const M=B?E.sendMobileCodeApi:E.sendEmailCodeApi;q(),M(w).then(G=>{var _e;const Y=((_e=G.data.data)==null?void 0:_e.verifyCode)||G.data.verifyCode;G.data.code===0&&Y&&(B?F.value=Y:R.value=Y,U.Message.success(i.isEn?"Verification code sent":"验证码已发送"))}).catch(G=>{console.error(G)})}return{loginForm:p,areaCodeData:l,bindLoginFormRef:m,codeReady:_,isCounting:v,loadingBtn:r,captchaVisible:s,LoginType:S,computedRules:O,handleTypeInput:W,handleChangeSubType:k,handleAreaCodeChange:x,validateField:P,handleSubmit:H,handleCaptchaSuccess:z,handleGetCode:J}}}),m1="data:image/webp;base64,UklGRkYDAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSK0BAAABkJVtT55JrwQkRAISIqEOBgl1sDhoHVAHXQdIQEIkICH780ETOodzEBETgJ+MA3FKG8fvIaQiOm5lCy/j2vVx4RdxVdtKLwmH2pfwBmrqKbQeifr2bTUSdd/WIlH/HpcqOuxnyjJT9/0aqISFkg47AaCJGwDOgeaFZPQb/7dR/I9HSsuwjsuHapaXKRMaAZCOawBQJvoyMqN3PvqEypGrzsZFgvrLmShgXXYrjMDHLSLS6rGR3+ZUCVy7TtfklVz6Dq76XJIPe0gMh9oW8iAHIWpqLeSAbhdJ1L5Hh8ssB1HPTnZsJTjUV4IZxChFHUrartG5nf2TZju2EdQRAaifCgAe9GCG22QnHQoA7J8SAAw02wWxiPtIv4AgnyqAX6NmBxID1Am9S9ehlKqTwQ4kjxpkxj46gORJha6YPBCuR32FzQXxQYOswD7ng457heAj/8ndPmnYF6hwjaoqCUDglEspRAskn1Ml4WF1E/huCY/ZjZ1MT6eM9UNzufBGEocaXgFqZhdem412vJiqCb8JiJdM9f/OdwHg/a4i0soeQZeqvO4pi8bvBWD8PAwAVlA4IHIBAACQDQCdASpQAFAAPjESh0KiIQzPMmYQAYJYgDTVCv5F+Mf4gb4DJX+Sz7l/ANsR/t26P/QD/AegB1gH9L/gHoV9YB+tfoUf7T/efAf+sP68fAV+m//U1vlDvsJaoYWahGVgTNJjQto23T3wmPTWzB6ZzMk6AwAA/v7uqgr/9ZP//7blAnmnE6lioCaVp1+WnldB5HpBbYjxc1NG5XU54UvD9kf2w/pZ7/42ltzXYtGbK1//nqr8tjkze5eVKps78/9WExTMn4pKTe3c8mpsuj8YwNG+XmxN6qsxIT2EwKQHnE5z8J/+pe+1IL/r1o8YBWTv7H+OAb1dnyF/HIBfP7w3V0JsIK9k9luJE6Inls4/P8XLinjMj63/lB+fL9Mg/9VBqi1r084wLn/+c3RisrFoveLUv2I5xww1R/MwdnWNwJwQ8oKLyHlGl0b3UxrGhAtGoS5KzFv4B538wnEyq7d8a9J8x7Ua1ZythfCc5mNgAAAA";var g1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("div",{staticClass:"bind-wechat-title"},[r("div",{staticClass:"title"},[r("img",{staticClass:"icon-auth-wechat",attrs:{src:m1,alt:""}}),e._v(" "+e._s(e.isEn?"Log in and link with WeChat":"登录并绑定微信")+" ")]),r("div",{staticClass:"sub-title"},[e._v(" "+e._s(e.isEn?"After linking, you can log in via WeChat scan, which is convenient and quick":"绑定后,可通过微信扫码登录,方便快捷")+" ")])]),r("el-form",{ref:"bindLoginFormRef",staticClass:"wechat-bind-login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[r("el-form-item",{staticClass:"form-type",attrs:{prop:"type"}},[r("LoginTypeSwitcher",{staticClass:"jc:max-w-full!",attrs:{value:e.loginForm.type,"is-en":e.isEn,"show-account":""},on:{input:e.handleTypeInput,change:e.handleChangeSubType}})],1),e.LoginType==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{value:e.loginForm.username,placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},on:{input:function(s){e.loginForm.username=s}}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{value:e.loginForm.password,type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},on:{input:function(s){e.loginForm.password=s}}})],1)]:e.LoginType==="email"?[r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{value:e.loginForm.email,placeholder:e.isEn?"Email Address":"邮箱地址"},on:{input:function(s){e.loginForm.email=s},blur:function(s){return e.validateField("email")}}})],1)]:[r("el-form-item",{ref:"areaCodeCountryId",staticClass:"tel"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("GoogleInput",{attrs:{value:e.loginForm.phone,placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{input:function(s){e.loginForm.phone=s},blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{value:e.loginForm.areaCode,placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:e.handleAreaCodeChange}},[e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),r("el-option",{attrs:{label:"+86",value:"+86"}})],2)],1)]},proxy:!0}])})],1)],1)],e.LoginType==="email"||e.LoginType==="mobile"?r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{value:e.loginForm.code,placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{input:function(s){e.loginForm.code=s},send:e.handleGetCode}})],1):e._e(),r("div",{staticClass:"register-bottom"},[r("el-button",{staticClass:"submit-btn",attrs:{loading:e.loadingBtn},on:{click:e.handleSubmit}},[e._v(e._s(e.isEn?"Login and Link":"登录并绑定")+" "),r("img",{staticStyle:{width:"16px",height:"16px","vertical-align":"middle"},attrs:{src:Ic,alt:""}})])],1)],2),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},v1=[],y1=ve(h1,g1,v1,!1,null,"a9f6eb3d");const Bc=y1.exports,C1=Object.freeze(Object.defineProperty({__proto__:null,default:Bc},Symbol.toStringTag,{value:"Module"})),_1="data:image/webp;base64,UklGRhgCAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSKIAAAABgFZbb9xIEATBUAyhEAqhDBIGNgOXQaEIgiAYwtfZtM3+LyImgP4d+1BAVqvCAx8OLsECo3CFAfMo0ODsecsz88SjeXD/vNQjedOzPgDCuqfl0bRNKsBiEa5APD+aTCWI2l0AnZ3ehTnKW+9dgIp/Kf146Aa2PM5egI8Ns66WwwOBq70JvmyE6jVsIPwIOpB4xuyMXU5jbhlnDF0lSm/03whWUDggUAEAAPALAJ0BKjAAMAA+LRKGQqGhDjduAAwBYlsAMgdwP4BoK/wA4aTvN+x2I4/APyq/oHuA/gHOJ7gD9XfMA6QDrYP0z9gD9APRQ/ZD4FP219gD9UARvMpbMuVN2542MibJh8RTb2jFdmX4AP7/8PzX//KRnpdaTTuezU2wfPVue6zvilNiLydYqgogCDf+z+cTn0sw++BUMUAXW/ykOXcyNB2xLlv/9baGU9jTlskvg+1Mv/puM3RR2VkkR8nzfym/nfxZ64t/3bWsauPme9EKHGYBBZv8u8jT/DUfv3hKs//3THxis4v6eWcTTUpo9W6e2PurHwS2B16ei/If+Ww23FLqmd3jWPwTwBTDBEJ3HBZfQftnPWpA9rY4f//0skE1+0YwOJB/my/FIk/GCZloGHd/7iN//8vNjd/zOhSoSRNP6Xtp1K0Qc6nr99ilYAAAAA==",A1="data:image/webp;base64,UklGRiQBAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSL8AAAABcFXbVtygAAdPSGKgDqIgMVAMgAIcxEdRAApQcJ0E3tD5LyLYuG0jSXKOaqvMPsL9Ha6xASWTFT5hMHmbKphYTJIwNRlAYFz0ZMB4PDiqHrB+XhpHMT4TIOtZOJhbp0OUOCcy1XDo75yrSk6UONkFJb71XIAWhxs/aFYm7qhkV5PvDmWYa1lGV2s4Wwd6OcM6RlE+dOaZZrpEXD5BoOr3d+sQWTfFkxAbhATAOF1DN6cKD1TD3cncipS2uz9DBwBWUDggPgAAAFADAJ0BKjAAMAA+JQ6FQqGHjAYAkS0gABSWHJn8435xRpEAAP7//k4XP//7dtNf5ihlI///6OQD//9v7AAA",b1=y.defineComponent({name:"WechatChooseType",components:{ElButton:U.Button},props:{isEn:{type:Boolean,default:!1}},emits:["toBind","toRegister"],setup(i,{emit:e}){return{handleLogin:()=>{e("toBind")},handleRegister:()=>{e("toRegister")}}}});var w1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"wechat-choose-type"},[r("div",[r("div",{staticClass:"choose-title"},[e._v(" "+e._s(e.isEn?"Please select whether you already have a JCtrans account":"请选择是否已有JCtrans账号")+" ")]),r("div",{staticClass:"choose-nav"},[e._v(" "+e._s(e.isEn?"If you already have a JCtrans account, you can directly link it with WeChat. If you do not have a JCtrans account, please register first":"若已有JCtrans账号,可直接与微信绑定;若没有JCtrans账号,请先注册")+" ")]),r("div",{staticClass:"btn-container"},[r("el-button",{staticClass:"choose-btn jc:mb-6 default-btn jc:outline-none!",on:{click:e.handleRegister}},[r("div",{staticClass:"btn-content"},[r("img",{staticClass:"icon-account",attrs:{src:_1,alt:"register"}}),e._v(" "+e._s(e.isEn?"Create New Account":"注册新账号")+" ")])]),r("el-button",{staticClass:"choose-btn submit-btn jc:outline-none!",attrs:{type:"primary"},on:{click:e.handleLogin}},[r("div",{staticClass:"btn-content"},[r("img",{staticClass:"icon-account",attrs:{src:A1,alt:"login"}}),e._v(" "+e._s(e.isEn?"Bind Existing Account":"绑定已有账号")+" ")])])],1)])])},E1=[],S1=ve(b1,w1,E1,!1,null,"2d5009d1");const Fc=S1.exports,I1=Object.freeze(Object.defineProperty({__proto__:null,default:Fc},Symbol.toStringTag,{value:"Module"})),x1=y.defineComponent({name:"WechatLogin",components:{ElButton:U.Button},props:{appId:{type:String,default:"ERA"},path:{type:String,default:""},isEn:{type:Boolean,default:!1}},emits:["success","need-register","need-complete"],setup(i,{emit:e}){const r=y.ref(null),s=y.ref(!0),u=y.ref(!1),p=y.ref("");let l=null;const m=async k=>{if(await y.nextTick(),!!r.value)try{await gv.toCanvas(r.value,k,{width:200,margin:1,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:"M"})}catch(x){console.error("QR Code render error:",x)}},_=async()=>{var k,x;s.value=!0,F();try{const{data:P}=await E.getLoginQrCode();if((P==null?void 0:P.code)===0){p.value=(k=P.data)==null?void 0:k.uniqueCode,u.value=!1;try{E.setAuthSessionItems({uniqueCode:p.value})}catch(H){console.log("setAuthSessionItems error:",H)}await m((x=P.data)==null?void 0:x.qrCodeUrl),v()}else u.value=!0}catch(P){console.error("Fetch WeChat QR fail:",P)}finally{s.value=!1}},v=()=>{var x;const k=((x=window.BASE_INFO)==null?void 0:x.WX_POLLING_TIME)||3e3;l=setInterval(async()=>{try{const{data:P}=await E.loginByQrCode({uniqueCode:p.value,appId:i.appId,redirectPath:i.path||"",kick:!1,prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")});P.code===0&&I(P)}catch(P){console.error("Polling error:",P),F()}},k)},I=k=>{switch(k.subcode){case"EXPIRED":u.value=!0,F();break;case"FOLLOWED_CANCEL":u.value=!0,F();break;case"FOLLOWED_NO_USER":e("need-register",p.value);break;case"FOLLOWED_LOGIN_SUCCESS":F(!1),S(k.data);break}},F=(k=!0)=>{k&&(p.value=""),E.setAuthSessionItems({uniqueCode:""}),l&&(clearInterval(l),l=null)},R=()=>{_()},S=async k=>{if(k.result&&E.setTokenAll(k.result),k.redirect===!0){const x=i.appId==="CPA"?"tgc-CPA":"tgc";qt.set(x,k.tgc,{expires:30})}if(k.hasLogon===!0)try{await U.MessageBox.confirm(i.isEn?"The account has already logged in elsewhere. Do you want to force login?":"该账号已在其他地方登录,是否强制登录?",i.isEn?"Tips":"提示",{confirmButtonText:i.isEn?"Confirm":"确定",cancelButtonText:i.isEn?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}),O()}catch{_()}else W(k.redirectPath)},O=async()=>{var k;s.value=!0;try{const{data:x}=await E.loginByQrCode({uniqueCode:p.value,appId:i.appId,redirectPath:i.path||"",kick:!0,prjId:E.getProjectId(),formEntry:E.getSessionHeaderValue("_GIO-registerEntry")});if(x.code===0){if(E.setTokenAll(x.data.result),(k=x.data.result)!=null&&k.improveComp){e("need-complete",x.data.result.improveComp);return}W(x.data.redirectPath)}}catch{U.Message.error(i.isEn?"Login failed":"登录失败")}finally{s.value=!1}},W=k=>{localStorage.setItem("jc-qrCode-login","wx"),F(),k&&Vt(k),e("success")};return y.onMounted(()=>{_()}),y.onUnmounted(()=>{F()}),{qrCanvasRef:r,loadingCode:s,isShowMask:u,handleRefresh:R}}}),T1="data:image/webp;base64,UklGRs4CAABXRUJQVlA4WAoAAAAQAAAAJwAAJwAAQUxQSFoBAAABN6KgbRtmp+3Gn/RDEBEEkzTVdowBQKcP3554FoBl23ba5llJyswNJ2VumGWofOY/p8qSit8R/Z8A+a8elYOpw8ta7XyzQK0aYSpXkxxr+l5TIvLMOMTaaw75atjrjVMg6apzYNuvnZH3q2Wxbl7NYR4Ddz6qB+/b4lxd8llHbmrIR018WxYu3QboXfHdMLae0xXZtvhGY+x52WHLcCHeNxRfOfR5Fu/tpdZaJ1mWZeOiA0zFL+w9j/I9NSffY5NUvmeVwTfp8PxNbrn9HRbs2zo8fU3Muq3K6EtK5JFtkzT6ilPmUrji+CvueSh64OULVMJJ0TamEq7JXBx7vAZTCVWXbcNlqBdm4nxFthPmGrPrJj2SvRBXUBdPNcTUvdQTXIu3eoP+gVt1hWlKyLaBQaNs275awvJIwlYeDaBH/f40BXQnkuCVq7HBmr5VI/naaP+iWj1bl98fVlA4IE4BAAAQBwCdASooACgAPi0ShkKhoQ42SgAMAWJZWxKQyHAkNc+PADbI89n6J94A3jAJQK0xA6Tk60mYtNspcySSE/tFIADM///yqf//Kgv//ywQt7g1bu7h+xw3tKfdFW3YSP2h0iF6VIn4CTXLv//vM//94Jv//ee+S0E0m6xnEgxdBDf7ewX/lL4BgZWe2EfgOrK0pMN4Qy5uWqWBS4KWWUfrCz0nMK/H/I4/+XhdD+65pGbyiKvih/6tn//ciDb/uimjajMDV4Q/Xe6/5j9xYKcn08xURQpu0wODf/+3SuKUFZLR0yHKFUmWQGuB/RhP/o3UFQW2JYdAdLNwvjre+S6H5X//i0Kc3jhiy9mLmUsuJ+4/5++fwdGZUbaTBUfk9QB9rjsVLVNwQW2lzccI98O08eePpfHRQKN1FzjT/cMehMc50hgx//o3l7EokAAA",R1="data:image/webp;base64,UklGRhACAABXRUJQVlA4WAoAAAAQAAAAGAAAFwAAQUxQSOcAAAABgINt27HlzZxs1+i945+yudmaXJMm27btmmzbtm094f2+L88RMQHoH0ivGDZ+dTufRGOhwhmw/QIfT5NlyDEEHdz1zdzA5sDmTZ4EKeWJp2may+JdpEray5o7HRnnPYCzy2e43uvNSQvW5CfhcwDY1eKWK4CX3WgRAt0NzG7T6At8vGkUw3FXXX8YGLkf9c+8rLBeOI2gxyD51juA6+5ZuFjaej6YvL3vEsEhxb5nuOicA8KHHlECg1QHMzfnukeCszhGAgY6hBCT+RTuvkMWUWQz7XsGgPs2OUSdS9Uv2N0tWOIT/l4AVlA4IAIBAACwBwCdASoZABgAPjESh0KiIQ39VgAQAYJbACdM5JkB+meFg2gDaAN0l4AD9QPSA/wHuJ/sl6KYX31WXITTIqQjhEf+VVEAAP0cZ9TkuKczs9Y1za4WaelqmDJ+pg5xRI8RGqa0Xf/vA/xc/Jt7352wODrO+GBNH/+k0H/0IZkEP/+9kflw8xfZOvuJnYDve0V1+ez//9tEgIWxjEjRen4x7s8w+Gha3PQxumTkBwxFTp+YlQXvZzWdZW3wRP0nsu895denVK5N8FE8Zg23a9118GTARL99uq+SY4/E8PeGs/GKL4ufe2EdSmq0ixJ9pxRZOAX/4XkoyRtaDa35BrgAAAA=";var B1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"login-wx"},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingCode,expression:"loadingCode"}],staticClass:"login-wx-code"},[r("div",{staticClass:"qr-canvas-wrapper flex-center",class:{"qrcode-error-mask":e.isShowMask}},[r("canvas",{ref:"qrCanvasRef"})]),e.isShowMask?[r("div",{staticClass:"refresh-overlay flex-center",on:{click:e.handleRefresh}},[r("img",{staticClass:"refresh-icon",attrs:{src:T1,alt:"refresh"}}),r("div",{staticClass:"expired-text mt10 mb10"},[e._v(" "+e._s(e.isEn?"The QR code has expired":"二维码已过期")+" ")]),r("el-button",{staticClass:"jc:text-white",attrs:{type:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleRefresh.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Rescan QR code":"重新扫码")+" ")])],1)]:e._e(),r("div",{staticClass:"scan-tip"},[r("img",{attrs:{src:R1,alt:"wechat"}}),r("span",[e._v(e._s(e.isEn?"Scan to login/register":"微信扫码登录/注册JCtrans"))])])],2)])},F1=[],P1=ve(x1,B1,F1,!1,null,"66101abf");const Pc=P1.exports,D1=Object.freeze(Object.defineProperty({__proto__:null,default:Pc},Symbol.toStringTag,{value:"Module"})),k1={name:"JcLoginDialog",model:{prop:"visible",event:"update:visible"},components:{ElDialog:U.Dialog,ElForm:U.Form,ElFormItem:U.FormItem,ElInput:U.Input,ElButton:U.Button,ElCheckbox:U.Checkbox,ElSelect:U.Select,ElOption:U.Option,ElRadioGroup:U.RadioGroup,ElRadioButton:U.RadioButton,GoogleInput:Ht,CodeInput:an,RegisterForm:bc,LoginTypeSwitcher:wi,JcVerifySlide:vn,WechatLogin:Pc,WechatChooseType:Fc,WechatBindLogin:Bc,CompleteInfoForm:wc,ForgetPassword:Sc,ThirdBindLogin:xc,ThirdRegisterForm:Tc},props:{visible:{type:Boolean,default:!1},lang:{type:String,default:""},currentPath:{type:String,default:"/"},loginPath:{type:String,default:"http://localhost:8086"},showTestThirdBtn:{type:Boolean,default:!1},baseMode:{type:String,default:"login"}},provide(){return{loginPath:this.loginPath,lang:this.lang,isEn:this.isEn}},emit:["update:visible","update:baseMode","open","mode-change","auth-dialog-close","login-success","register-success"],mounted(){const i=E.getRememberAccount();i&&(this.loginForm.username=i.account||"",this.loginForm.password=i.password?E.Decrypt(i.password):"",this.loginForm.remember=!0)},setup(i){const{proxy:e}=y.getCurrentInstance(),r=y.ref(null),s=k=>{var z,J;const x=String(k||"").toLowerCase(),P=String(r.value||"").toLowerCase(),H=((z=E.getAuthSessionItems)==null?void 0:z.call(E))||{};return x==="facebook"||P==="facebook"?"FACEBOOK":x==="linkedin"||P==="linkedin"?"LINKEDIN":x==="wechat"||(J=e==null?void 0:e.formMode)!=null&&J.startsWith("wechat")||H!=null&&H.uniqueCode?"WECHAT":"PASSWORD"},u=y.computed(()=>{if(i.lang)return i.lang==="en"||i.lang==="en-US";if(typeof document!="undefined"){const k=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(k)}return!1}),{loading:p,handleAuthSubmit:l,executeRedirect:m}=Rc({appId:"ERA",isEn:u.value,onNeedComplete:k=>{const x=(e==null?void 0:e.loginType)==="code"?"register":"login";e.handleNeedComplete({mode:x,accountType:s(e==null?void 0:e.loginType),payload:k})},onSuccess:k=>{const x=s(e==null?void 0:e.loginType);e.$emit("login-success",{...k||{},accountType:x,mode:"login"}),e.loginForm.remember&&E.setRememberMe(e.loginForm.username,E.Encrypt(e.loginForm.password),!0),e.currentVisible=!1,m(k)}}),{isBindDialogVisible:_,isRegisterVisible:v,bindList:I,isUserClosed:F,startLogin:R,handleBindThirdParty:S,resetBindRegisterState:O}=_C({appId:"ERA",isEn:u.value,onSuccess:k=>{const x=s(r.value);e.$emit("login-success",{...k||{},accountType:x,mode:"login"}),e.currentVisible=!1,m(k)}});y.watch(F,k=>{k&&U.Message.error(u.value?"You have canceled the login.":"您取消了登录。")});const W=k=>{r.value=k;const x=k==="facebook"?"FACEBOOK":k==="linkedin"?"LINKEDIN":k;x&&R(x)};return y.watch(_,k=>{k&&(e.loginType=r.value)}),y.watch(v,k=>{k&&(e.loginType=r.value)}),{thirdBindDialogVisible:_,thirdRegisterVisible:v,bindList:I,authLoading:p,isEn:u,handleAuthSubmit:l,executeRedirect:m,handleThirdClick:W,handleBindThirdParty:S,resetBindRegisterState:O}},data(){return{currentVisible:this.visible,formMode:"login",loginType:"account",loginMethod:"email",areaCodeData:[],IpData:null,isCounting:!1,countdown:60,codeReady:!1,timer:null,loginForm:{type:"email",username:"",password:"",remember:!1,areaCode:"",phone:"",email:"",code:""},loginRules:{username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(i,e,r)=>Ln(i,e,r,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(i,e,r)=>Mn(i,e,r,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(i,e,r)=>rn(i,e,r,this.isEn),trigger:"blur"}]},verifyData:{},captchaVisible:!1,mobileUid:"",emailUid:"",currentVerifyData:null,pendingCompleteEvent:null,_lastEmittedBaseMode:this.baseMode==="register"?"register":"login"}},computed:{currentDialogWidth(){let i="480px";return["register","need-complete","forget-password"].includes(this.formMode)&&(i="640px"),this.formMode==="login"&&(this.loginType==="linkedin"||this.loginType==="facebook"||this.loginType==="TEST")&&(i="640px"),i},computedRules(){const i={username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,r,s)=>Ln(e,r,s,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,r,s)=>Mn(e,r,s,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,r,s)=>rn(e,r,s,this.isEn),trigger:"blur"}]};return this.loginType==="account"?{username:i.username,password:i.password}:this.loginType==="code"?{code:i.code,...this.loginForm.type==="email"?{email:i.email}:{phone:i.phone}}:{}}},watch:{visible(i){this.currentVisible=i},baseMode(i){const e=i==="register"?"register":"login";this.currentVisible&&["login","register"].includes(this.formMode)&&(this.formMode=e)},currentVisible(i){this.$emit("update:visible",i)},formMode:{handler(i){const e=i==="register"?"register":"login";this._lastEmittedBaseMode!==e&&(this._lastEmittedBaseMode=e,this.$emit("update:baseMode",e),this.$emit("mode-change",{formMode:i,baseMode:e}))},immediate:!0}},methods:{go2Agreement:os,go2Policy:ls,handleOpen(){this.formMode=this.baseMode||"login",this._lastEmittedBaseMode=this.formMode==="register"?"register":"login",this.$emit("open")},handleClose(){this.$emit("auth-dialog-close",{loginType:this.loginType,formMode:this.formMode}),this.loginType="account",this.formMode=this.baseMode||"login",this.pendingCompleteEvent=null,E.resetAuthSessionItems(),E.resetGioSessionItems(),this.resetBindRegisterState()},handleTest(i){this.formMode=i},handleNeedComplete(i={}){const e=(i==null?void 0:i.mode)==="register"?"register":"login",r=(i==null?void 0:i.accountType)||this.resolveAccountTypeByContext();this.pendingCompleteEvent={eventName:e==="register"?"register-success":"login-success",accountType:r},this.formMode="need-complete"},handleRegisterNeedComplete(i){this.handleNeedComplete({mode:"register",payload:i})},handleWechatNeedComplete(i){this.handleNeedComplete({mode:"login",accountType:"WECHAT",payload:i})},resolveAccountTypeByContext(){var r;const i=String(this.loginType||"").toLowerCase(),e=((r=E.getAuthSessionItems)==null?void 0:r.call(E))||{};return i==="facebook"?"FACEBOOK":i==="linkedin"?"LINKEDIN":i==="wechat"||e!=null&&e.uniqueCode?"WECHAT":"PASSWORD"},handleRegisterSuccess(i){if(this.pendingCompleteEvent){console.warn("需要完善信息,跳过本次 emit,等待 CompleteInfoForm 处理");return}this.$emit("register-success",{...i||{},accountType:this.resolveAccountTypeByContext(),mode:"register"})},handleWechatSuccess(i){this.$emit("login-success",{...i||{},accountType:"WECHAT",mode:"login"})},handleCompleteSuccess(i){var e;if((e=this.pendingCompleteEvent)!=null&&e.eventName){const r=this.pendingCompleteEvent.eventName==="register-success"?"register":"login";this.$emit(this.pendingCompleteEvent.eventName,{...i||{},accountType:this.pendingCompleteEvent.accountType,mode:r}),this.pendingCompleteEvent=null}i.redirectPath?this.executeRedirect(i):this.currentVisible=!1},handleWechatNeedRegister(){this.formMode="wechat-need-register"},handleWechatLogin(){this.formMode="wechat-bind"},switchToRegister(){sessionStorage.removeItem("jc-auth-uniqueCode"),this.formMode="register"},handleWechatRegister(){this.formMode="register"},switchLoginTab(i){this.loginType!==i&&(this.loginType=i,this.$nextTick(()=>{if(!this.$refs.loginFormRef)return;this.$refs.loginFormRef.clearValidate();const e={username:"",password:"",email:"",phone:"",code:"",areaCode:"",remember:this.loginForm.remember,type:this.loginForm.type};Object.assign(this.loginForm,e),this.codeReady=!1}))},validateField(i){this.$refs.loginFormRef.validateField(i,e=>{this.codeReady=e})},handleGetCode({captchaData:i,startTimer:e}){const r=this.loginForm.type==="mobile",s={target:this.loginForm.email||this.loginForm.phone,uuid:i.uuid,code:i.code};r&&(s.areaCode=this.loginForm.areaCode);const u=r?E.sendMobileCodeApi:E.sendEmailCodeApi;this.verifyData=i,e(),u(s).then(p=>{var m;const l=((m=p.data.data)==null?void 0:m.verifyCode)||p.data.verifyCode;p.data.code===0&&l&&(r?this.mobileUid=l:this.emailUid=l,U.Message.success(this.isEn?"Verification code sent":"验证码已发送"))}).catch(p=>{console.error(p)})},handleLogin(){this.$refs.loginFormRef.validate(i=>{if(i)if(this.loginType==="account")this.captchaVisible=!0;else{if(!this.verifyData||!this.verifyData.uuid)return U.Message.error(this.isEn?"Please get the verification code first":"请先获取验证码");this.handleCaptchaSuccess(this.verifyData)}})},async handleCaptchaSuccess(i){this.captchaVisible=!1,this.handleAuthSubmit({loginType:this.loginType,loginForm:this.loginForm,captchaData:i,mobileUid:this.mobileUid,emailUid:this.emailUid,areaCodeData:this.areaCodeData,isKick:!1,remember:this.loginForm.remember})},handleForget(){this.formMode="forget-password"},async handleChangeSubType(i){this.loginMethod=i,i=="mobile"&&this.areaCodeData.length===0&&(await this.getLocalIpData(),this.getAreaCodeData())},async getLocalIpData(){let e=(await E.getLocalIpDataApi()).data.data;process.env.NODE_ENV==="development"&&(e={countryId:57,cityId:4022,countryNameCn:"新加坡",countryNameEn:"Singapore",cityNameCn:"新加坡",cityNameEn:"Singapore"}),this.IpData=e},async getAreaCodeData(){var e,r;const i=await E.findPAreaCodeApi();this.areaCodeData=i.data.data.records,this.loginForm.areaCode=(r=(e=i.data.data.records)==null?void 0:e.find(s=>{var u;return s.id===((u=this.IpData)==null?void 0:u.countryId)}))==null?void 0:r.telCode,this.loginForm.areaCode||(this.areaCode="+86")},handleToLogin(){this.formMode="login",this.loginType="account",this.pendingCompleteEvent=null}}};var O1=function(){var e=this,r=e._self._c;return r("el-dialog",{staticClass:"jc-auth-dialog",attrs:{visible:e.currentVisible,"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":"",width:e.currentDialogWidth,"show-close":!0},on:{"update:visible":function(s){e.currentVisible=s},close:e.handleClose,open:e.handleOpen}},[e.formMode==="login"?r("div",{staticClass:"auth-container"},[r("div",{staticClass:"login-section"},[r("div",{staticClass:"login-title"},[e.thirdBindDialogVisible||e.thirdRegisterVisible?r("p",[e._v(" "+e._s(e.isEn?"New User Registration":"新用户注册")+" ")]):r("p",[e._v(" "+e._s(e.isEn?"Welcome Back to JCtrans":"欢迎回到JCtrans")+" ")])]),["account","code"].includes(e.loginType)?[r("div",{staticClass:"tab-header"},[r("span",{staticClass:"tab-header-title",class:{active:e.loginType==="account"},on:{click:function(s){return e.switchLoginTab("account")}}},[e._v(" "+e._s(e.isEn?"Password Login":"账号登录")+" ")]),r("span",{staticClass:"tab-header-title",class:{active:e.loginType==="code"},on:{click:function(s){return e.switchLoginTab("code")}}},[e._v(" "+e._s(e.isEn?"Verification Code Login":"验证码登录")+" ")])]),r("el-form",{ref:"loginFormRef",staticClass:"auth-form login-form-content",attrs:{model:e.loginForm,rules:e.computedRules,"validate-on-rule-change":!1}},[e.loginType==="account"?[r("el-form-item",{staticClass:"form-user",attrs:{prop:"username"}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},model:{value:e.loginForm.username,callback:function(s){e.$set(e.loginForm,"username",s)},expression:"loginForm.username"}})],1),r("el-form-item",{staticClass:"password-item",attrs:{prop:"password"}},[r("GoogleInput",{staticClass:"input-show-pass",attrs:{type:"password",placeholder:e.isEn?"Password":"密码","show-password":""},model:{value:e.loginForm.password,callback:function(s){e.$set(e.loginForm,"password",s)},expression:"loginForm.password"}})],1)]:e.loginType==="code"?[r("el-form-item",{attrs:{prop:"type"}},[r("LoginTypeSwitcher",{attrs:{"is-en":e.isEn},on:{change:e.handleChangeSubType},model:{value:e.loginForm.type,callback:function(s){e.$set(e.loginForm,"type",s)},expression:"loginForm.type"}})],1),e.loginForm.type==="email"?r("el-form-item",{attrs:{prop:"email"}},[r("GoogleInput",{attrs:{placeholder:e.isEn?"Email Address":"邮箱地址"},on:{blur:function(s){return e.validateField("email")}},model:{value:e.loginForm.email,callback:function(s){e.$set(e.loginForm,"email",s)},expression:"loginForm.email"}})],1):[r("div",{staticClass:"tel"},[r("el-form-item",{key:8,ref:"phone",staticClass:"tel-mobile",attrs:{prop:"phone","inline-message":!0}},[r("google-input",{attrs:{placeholder:e.isEn?"Cell Phone Number":"手机号码",label:e.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",maxlength:"15",disabled:e.isCounting},on:{blur:function(s){return e.validateField("phone")}},scopedSlots:e._u([{key:"prefix",fn:function(){return[r("el-form-item",{staticClass:"tel-areacode",attrs:{prop:"areaCode","inline-message":!0}},[r("el-select",{attrs:{placeholder:e.isEn?"Code":"区号",disabled:e.isCounting,"popper-class":"jc-area-code-select-wrapper"},on:{change:function(s){return e.validateField("areaCode")}},model:{value:e.loginForm.areaCode,callback:function(s){e.$set(e.loginForm,"areaCode",s)},expression:"loginForm.areaCode"}},e._l(e.areaCodeData,function(s){return r("el-option",{key:s.id,attrs:{label:s.telCode,value:s.telCode}})}),1)],1)]},proxy:!0}],null,!1,1341634787),model:{value:e.loginForm.phone,callback:function(s){e.$set(e.loginForm,"phone",s)},expression:"loginForm.phone"}})],1)],1)],r("el-form-item",{attrs:{prop:"code"}},[r("CodeInput",{attrs:{placeholder:e.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:e.codeReady,"is-en":e.isEn},on:{send:e.handleGetCode},model:{value:e.loginForm.code,callback:function(s){e.$set(e.loginForm,"code",s)},expression:"loginForm.code"}})],1)]:e._e(),r("div",{staticClass:"login-passport"},[r("div",{staticClass:"login-remember"},[r("el-form-item",{staticClass:"remember-item",attrs:{prop:"remember"}},[r("el-checkbox",{staticClass:"remember-btn",model:{value:e.loginForm.remember,callback:function(s){e.$set(e.loginForm,"remember",s)},expression:"loginForm.remember"}},[e._v(e._s(e.isEn?"Remember Me":"30天自动登录"))])],1),e.loginType==="account"?r("span",{staticClass:"forget-pwd-btn",on:{click:e.handleForget}},[e._v(e._s(e.isEn?"Forgot your password?":"忘记密码"))]):e._e()],1),e.loginType==="code"?r("div",{staticClass:"login-agreement"},[r("div",{staticClass:"login-agreement-text"},[r("span",{staticClass:"login-agreement-text-item"},[e._v(e._s(e.isEn?"Automatically log in after verification if not registered. Registration means you agree":"未注册验证后自动登录,注册即代表同意"))]),r("span",{staticClass:"link-type",on:{click:function(s){return s.stopPropagation(),e.go2Agreement.apply(null,arguments)}}},[e._v(e._s(e.isEn?"User Agreement":"《用户条款和协议》"))]),r("span",{staticClass:"login-agreement-text-item jc:mx-0.5"},[e._v(e._s(e.isEn?"and":""))]),r("span",{staticClass:"link-type",on:{click:function(s){return s.stopPropagation(),e.go2Policy.apply(null,arguments)}}},[e._v(e._s(e.isEn?"Privacy Policy":"《隐私政策》"))])])]):e._e(),r("el-button",{staticClass:"submit-btn",attrs:{loading:e.authLoading},on:{click:e.handleLogin}},[e._v(" "+e._s(e.loginType==="code"?e.isEn?"Register and log in":"登录/注册":e.isEn?"Sign In":"登录")+" "),r("i",{staticClass:"el-icon-right",staticStyle:{"margin-left":"8px"}})])],1)],2)]:e._e(),e.loginType==="wechat"?r("div",[r("WechatLogin",{attrs:{"is-en":e.isEn},on:{success:e.handleWechatSuccess,"need-register":e.handleWechatNeedRegister,"need-complete":e.handleWechatNeedComplete}})],1):e._e(),["linkedin","facebook","TEST"].includes(e.loginType)?r("div",[e.thirdBindDialogVisible?r("ThirdBindLogin",{staticClass:"jc:mt-1",attrs:{"is-en":e.isEn,"bind-list":e.bindList}}):e._e(),e.thirdRegisterVisible?r("ThirdRegisterForm",{staticClass:"jc:mt-6",attrs:{"is-en":e.isEn},on:{"bind-third-party":e.handleBindThirdParty,"register-success":e.handleRegisterSuccess,"need-complete":e.handleRegisterNeedComplete}}):e._e()],1):e._e(),e.loginType!=="TEST"&&e.loginType!=="facebook"&&e.loginType!=="linkedin"?r("div",{staticClass:"third-party-sign-in"},[r("div",{staticClass:"third-party-sign-in-title"},[e._v(" "+e._s(e.isEn?"Sign in with":"其他登录方式")+" ")]),r("div",{staticClass:"third-party-sign-in-group"},[["wechat","linkedin","facebook"].includes(e.loginType)?r("div",{staticClass:"third-party-sign-in-btn",on:{click:()=>e.loginType="account"}},[r("i",{staticClass:"icon-account"}),r("span",[e._v(" "+e._s(e.isEn?"Account":"账户"))])]):["account","code"].includes(e.loginType)?r("div",{staticClass:"third-party-sign-in-btn",on:{click:()=>e.loginType="wechat"}},[r("i",{staticClass:"icon-auth-wechat"}),r("span",[e._v(e._s(e.isEn?"WeChat":"微信"))])]):e._e(),r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("linkedin")}}},[r("i",{staticClass:"icon-auth-linkedin"}),r("span",[e._v("LinkedIn")])]),r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("facebook")}}},[r("i",{staticClass:"icon-auth-facebook"}),r("span",[e._v("Facebook")])]),e.showTestThirdBtn?r("div",{staticClass:"third-party-sign-in-btn",on:{click:function(s){return e.handleThirdClick("TEST")}}},[r("i",{staticClass:"icon-auth-facebook"}),r("span",[e._v("TEST")])]):e._e()])]):e._e(),!e.thirdBindDialogVisible&&!e.thirdRegisterVisible?r("div",{staticClass:"bottom-tip"},[e._v(" "+e._s(e.isEn?"Don't have an account?":"没有账户?")+" "),r("span",{staticClass:"action-text",on:{click:e.switchToRegister}},[e._v(e._s(e.isEn?"Sign Up":"立即注册")+" "),r("svg",{staticClass:"icon-more",attrs:{t:"1767853448095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"}},[r("path",{attrs:{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"}})])])]):e._e()],2)]):e.formMode==="wechat-need-register"?r("WechatChooseType",{attrs:{"is-en":e.isEn},on:{"to-bind":e.handleWechatLogin,"to-register":e.handleWechatRegister}}):e.formMode==="wechat-bind"?r("WechatBindLogin",{attrs:{"is-en":e.isEn},on:{"need-complete":e.handleWechatNeedComplete}}):e.formMode==="register"?r("div",{staticClass:"auth-container"},[r("div",{staticClass:"register-section"},[r("RegisterForm",{attrs:{"is-en":e.isEn},on:{"to-login":e.handleToLogin,"need-complete":e.handleRegisterNeedComplete,"register-success":e.handleRegisterSuccess}})],1)]):e.formMode==="need-complete"?r("CompleteInfoForm",{attrs:{"is-en":e.isEn},on:{success:e.handleCompleteSuccess}}):e.formMode==="forget-password"?r("ForgetPassword",{attrs:{"is-en":e.isEn},on:{"to-login":e.handleToLogin}}):e._e(),r("JcVerifySlide",{attrs:{visible:e.captchaVisible,"is-en":e.isEn},on:{"update:visible":function(s){e.captchaVisible=s},success:e.handleCaptchaSuccess}})],1)},L1=[],N1=ve(k1,O1,L1,!1,null,"7fdb2fa8");const M1=N1.exports,U1=Object.freeze(Object.defineProperty({__proto__:null,default:M1},Symbol.toStringTag,{value:"Module"}));function q1(i){const e=y.ref([]),r="_search_history_cache",s=typeof window!="undefined"&&typeof localStorage!="undefined",u=y.computed(()=>(i.value||"")+r),p=y.computed(()=>!!i.value&&i.value!==""),l=_=>{if(!_||!s)return;const v=e.value.filter(F=>F.id&&F.id!==_.id||F.display!==_.display);v.unshift(_);const I=v.slice(0,4);if(p.value){e.value=I;try{localStorage.setItem(u.value,JSON.stringify(I))}catch(F){console.warn("LocalStorage save failed:",F)}}},m=()=>{e.value=[],s&&localStorage.removeItem(u.value)};return y.onMounted(()=>{if(s&&p.value){const _=localStorage.getItem(u.value);if(_)try{e.value=JSON.parse(_)}catch{e.value=[]}}}),{searchHistory:e,saveToHistory:l,clearHistory:m,HasHistory:p}}async function V1(i,e=["Continent","Country","City","Seaport","Airport"],r={}){return E.locationSearchV2.searchByName({keyword:i,displayInfo:e,...r})}const W1=(i,e)=>E.locationSearchV2.searchByIdWithType(i,e);function H1(i,e){const r=y.ref([]),s=y.ref(!1),u=y.ref(!1),p=y.ref(!1),l=y.ref(1),m=20,_=y.ref(0),v=y.computed(()=>{const R=[...e.value];return R.includes("Country")&&!R.includes("Region")&&R.push("Region"),R}),I=R=>Array.isArray(R)?R.filter(S=>v.value.includes(S.type)):[];return{searchResults:r,loading:s,isFetchingMore:u,isFinished:p,fetchData:async(R=!1)=>{const S=i.value.trim();if(!S){r.value=[],_.value=0,p.value=!1;return}if(R){if(u.value||p.value)return;u.value=!0,l.value+=1}else{if(s.value)return;s.value=!0,l.value=1,p.value=!1}try{const O=await V1(S,e.value,{current:l.value,size:m}),W=I(O.records||[]);R?r.value.push(...W):r.value=W,_.value=O.total||0,(r.value.length>=_.value||W.length<m)&&(p.value=!0)}catch(O){console.error("Search request failed:",O),R&&(l.value-=1)}finally{s.value=!1,u.value=!1}}}}const Ya=i=>!!(i!=null&&i.id)&&!!(i!=null&&i.type)&&!(i!=null&&i.display);function G1(i){return{hydrateMultiple:async s=>{if(!Array.isArray(s)||s.length===0)return{updatedList:s,hasChanged:!1};const u=s.filter(v=>Ya(v));if(u.length===0)return{updatedList:s,hasChanged:!1};const p=u.reduce((v,I)=>{const F=I.type;return v[F]||(v[F]=[]),v[F].push(I.id),v},{}),l=new Map;for(const[v,I]of Object.entries(p)){if(I.length===0)continue;const F=await i(I,v);((F==null?void 0:F.records)||[]).forEach(S=>{!(S!=null&&S.id)||!(S!=null&&S.type)||l.set(`${S.type}::${S.id}`,S)})}let m=!1;return{updatedList:s.map(v=>{if(!Ya(v))return v;const I=`${v.type}::${v.id}`,F=l.get(I);return F?(m=!0,{...v,...F}):v}),hasChanged:m}},hydrateSingle:async s=>{if(!s||!Ya(s))return s;const u=await i(s.id,s.type),p=(u==null?void 0:u.records)||[],l=p.find(m=>(m==null?void 0:m.id)===s.id&&(m==null?void 0:m.type)===s.type)||p[0];return l?{...s,...l}:s}}}const J1=y.defineComponent({name:"JcMSearch",model:{prop:"value",event:"input"},props:{value:{type:null,default:void 0},multiple:{type:Boolean,default:!1},lang:{type:String,default:"zh-CN"},placeholder:{type:String,default:""},historyKey:{type:String,default:""},reportType:{type:String,default:"City"}},setup(i,{emit:e}){const r=y.ref(!1),s=y.ref(""),u=y.ref(null),p=y.ref(null);let l=null;const{searchHistory:m,saveToHistory:_,clearHistory:v}=q1(y.computed(()=>i.historyKey)),{searchResults:I,loading:F,isFetchingMore:R,isFinished:S,fetchData:O}=H1(s,y.ref(["City","Seaport","Airport"])),{hydrateMultiple:W,hydrateSingle:k}=G1(W1),x=y.computed(()=>{var K,te,re,ae,Pe,ge;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const Te=(K=useCookie("jc-language"))==null?void 0:K.value;if(Te)return/^en(-US)?$/.test(Te)}}catch{}if(typeof document!="undefined"){const Te=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(Te)}try{if(typeof useNuxtApp=="function"){const Te=useNuxtApp(),Je=((ge=(Pe=(ae=(re=(te=Te==null?void 0:Te.ssrContext)==null?void 0:te.event)==null?void 0:re.node)==null?void 0:ae.req)==null?void 0:Pe.headers)==null?void 0:ge.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(Je)}}catch{}return!1}),P=y.computed(()=>Array.isArray(i.value)?i.value:i.value?[i.value]:[]);y.watch(()=>i.value,async(K,te)=>{if(JSON.stringify(K)!==JSON.stringify(te)){if(i.multiple&&Array.isArray(K)){try{const{updatedList:re,hasChanged:ae}=await W(K);ae&&e("input",re)}catch(re){console.error("Batch fetch detail failed:",re)}return}if(!i.multiple&&(K!=null&&K.id)&&(K!=null&&K.type)&&!(K!=null&&K.display))try{const re=await k(K);re&&re!==K&&e("input",re)}catch(re){console.error("Single fetch detail failed:",re)}}},{immediate:!0,deep:!0});const H=y.computed(()=>!i.multiple&&!!i.value),z=y.computed(()=>H.value?_e(i.value):""),J=y.computed(()=>P.value.length>0),b=()=>{r.value=!0,y.nextTick(()=>{var K,te,re;s.value=x.value?((K=i.value)==null?void 0:K.nameEn)||"":((te=i.value)==null?void 0:te.nameCn)||"",(re=u.value)==null||re.focus(),s.value&&O(!1)})},q=()=>{r.value=!1,s.value=""},B=K=>{_(K),i.multiple?P.value.some(re=>re.id===K.id)||e("input",[...P.value,K]):(e("input",K),q()),e("select",K)},w=()=>{e("input",i.multiple?[]:null)},M=y.ref(!1),G=K=>{const te=K.target;if(!te)return;te.scrollTop+te.clientHeight>=te.scrollHeight-80&&s.value&&!F.value&&!R.value&&!S.value&&!M.value&&(M.value=!0,O(!0))};y.watch(R,K=>{K||(M.value=!1)});const Y=()=>{l&&clearTimeout(l),l=setTimeout(()=>{var K;M.value=!1,(K=p.value)==null||K.scrollTo({top:0}),O(!1)},300)};y.onBeforeUnmount(()=>{l&&(clearTimeout(l),l=null)});const _e=K=>x.value?K.displayEn||K.display:K.displayCn||K.display;return{SearchIcon:vc,ICON_MORE:Ci,isDropdownVisible:r,query:s,inputRef:u,scrollContainer:p,isEn:x,selectedItems:P,isSelected:H,selectedLabel:z,hasValue:J,searchHistory:m,searchResults:I,loading:F,isFetchingMore:R,isFinished:S,clearHistory:v,openSearch:b,closeSearch:q,selectItem:B,clearAll:w,handleScroll:G,onInput:Y,getItemLabel:_e,getItemType:K=>{const te={City:"城市",Seaport:"港口",Airport:"机场"};return x.value?K:te[K]||K},isItemActive:K=>P.value.some(te=>te.id===K.id),handleApplyData:async()=>{var te;const K=(te=s.value)==null?void 0:te.trim();if(K)try{await E.reportNewTypeDataApi({reportData:K,reportType:i.reportType})}catch(re){console.error("Report apply data failed:",re)}finally{e("apply",K)}}}}});var j1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"h5-search-container"},[r("div",{staticClass:"search-trigger",on:{click:e.openSearch}},[r("div",{staticClass:"trigger-content"},[r("img",{staticClass:"search-icon-m",attrs:{src:e.SearchIcon}}),r("div",{staticClass:"placeholder-text"},[e.multiple&&e.selectedItems.length>0?[r("div",{staticClass:"scroll-container"},[e._l(e.selectedItems,function(s){return r("div",{key:s.id,staticClass:"selected-tag"},[r("span",{staticClass:"tag-text"},[e._v(e._s(s.display))])])}),r("span",{staticClass:"selected-count-text"},[e._v(" "+e._s(e.isEn?"Selected":"已选")+" ("+e._s(e.selectedItems.length)+") ")])],2)]:!e.multiple&&e.isSelected?[r("span",{staticClass:"selected-val"},[e._v(e._s(e.selectedLabel))])]:[r("span",{staticClass:"placeholder-gray"},[e._v(" "+e._s(e.placeholder||(e.isEn?"Search":"搜索"))+" ")])]],2)]),e.hasValue?r("span",{staticClass:"clear-trigger",on:{click:function(s){return s.stopPropagation(),e.clearAll.apply(null,arguments)}}},[e._v(" ⓧ ")]):e._e()]),e.isDropdownVisible?r("div",{staticClass:"h5-modal-root"},[r("transition",{attrs:{name:"fade"}},[r("div",{staticClass:"h5-mask",on:{click:e.closeSearch}})]),r("transition",{attrs:{name:"slide-up"}},[r("div",{staticClass:"h5-drawer-card"},[r("div",{staticClass:"drawer-handle",on:{click:e.closeSearch}}),r("div",{staticClass:"h5-header"},[r("div",{staticClass:"h5-input-wrapper"},[r("img",{staticClass:"inner-icon",attrs:{src:e.SearchIcon}}),r("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"inputRef",attrs:{placeholder:e.isEn?"City/Port/Airport":"搜索城市/港口/机场"},domProps:{value:e.query},on:{input:[function(s){s.target.composing||(e.query=s.target.value)},e.onInput]}}),e.query?r("div",{staticClass:"h5-clear-btn",on:{click:function(s){e.query=""}}},[e._v(" ✕ ")]):e._e()]),r("div",{staticClass:"h5-cancel-btn",on:{click:e.closeSearch}},[e._v(" "+e._s(e.isEn?"Cancel":"取消")+" ")])]),r("div",{ref:"scrollContainer",staticClass:"h5-main-content",on:{scroll:e.handleScroll}},[e.loading&&!e.isFetchingMore?r("div",{staticClass:"h5-spinner-box"},[r("div",{staticClass:"h5-spinner"})]):e._e(),!e.query&&e.searchHistory.length>0?r("div",{staticClass:"h5-section"},[r("div",{staticClass:"h5-section-hd"},[r("span",[e._v(e._s(e.isEn?"Recent":"最近搜索"))]),r("span",{staticClass:"h5-clear-history",on:{click:e.clearHistory}},[e._v(" "+e._s(e.isEn?"Clear":"清空")+" ")])]),r("div",{staticClass:"h5-history-grid"},e._l(e.searchHistory,function(s,u){return r("div",{key:u,staticClass:"h5-history-tag",on:{click:function(p){return e.selectItem(s)}}},[e._v(" "+e._s(e.getItemLabel(s))+" ")])}),0)]):e._e(),e.searchResults.length>0?r("div",{staticClass:"h5-result-list"},[e._l(e.searchResults,function(s,u){return r("div",{key:u,staticClass:"h5-result-item",class:{"is-active":e.isItemActive(s)},on:{click:function(p){return e.selectItem(s)}}},[r("div",{staticClass:"item-type",class:s.type.toLowerCase()},[e._v(" "+e._s(e.getItemType(s.type))+" ")]),r("div",{staticClass:"item-info"},[r("div",{staticClass:"item-name"},[e._v(e._s(e.getItemLabel(s)))]),s.parentName?r("div",{staticClass:"item-sub"},[e._v(" "+e._s(s.parentName)+" ")]):e._e()])])}),r("div",{staticClass:"h5-load-status"},[e.isFetchingMore?[r("div",{staticClass:"mini-spinner"}),r("span",[e._v(e._s(e.isEn?"Loading...":"加载中..."))])]:e.isFinished&&e.query?r("span",{staticClass:"no-more"},[e._v(" "+e._s(e.isEn?"No more results":"没有更多结果了")+" ")]):e._e()],2)],2):e._e(),e.query&&!e.loading&&e.searchResults.length===0?r("div",{staticClass:"h5-load-status h5-empty"},[r("p",[e._v(" "+e._s(e.isEn?"No Results Found. ":"未找到相关结果,")+" ")]),r("div",{staticClass:"h5-empty-apply-wrap"},[r("span",{staticClass:"h5-empty-apply",on:{click:function(s){return s.stopPropagation(),e.handleApplyData.apply(null,arguments)}}},[e._v(" "+e._s(e.isEn?"Apply for data addition":"申请补充数据")+" ")]),r("img",{staticClass:"h5-empty-apply-icon",attrs:{src:e.ICON_MORE,alt:"more"},on:{click:function(s){return s.stopPropagation(),e.handleApplyData.apply(null,arguments)}}})])]):e._e()])])])],1):e._e()])},z1=[],Q1=ve(J1,j1,z1,!1,null,"82c8e578");const K1=Q1.exports,X1=Object.freeze(Object.defineProperty({__proto__:null,default:K1},Symbol.toStringTag,{value:"Module"})),Y1=U.Cascader,$1=y.defineComponent({name:"LineCascader",components:{"el-cascader":Y1},model:{prop:"value",event:"input"},props:{value:{type:Array,default:()=>[]},lineId:{type:Number,default:null},placeholder:{type:String,default:""},lang:{type:String,default:""},lineType:{type:String,default:"shipping"},multiple:{type:Boolean,default:!0}},emits:["input","update:lineId","change","apply"],setup(i,{emit:e}){const r=y.ref(),s=y.ref([]),u=y.ref(!1),p=y.ref(""),l=y.ref(i.value||[]),m=y.computed(()=>({multiple:i.multiple,expandTrigger:"click",emitPath:!1,checkStrictly:!1})),_=y.computed(()=>{var x,P,H,z,J,b;if(i.lang)return i.lang==="en"||i.lang==="en-US";try{if(typeof useCookie=="function"){const q=(x=useCookie("jc-language"))==null?void 0:x.value;if(q)return/^en(-US)?$/.test(q)}}catch{}if(typeof document!="undefined"){const q=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(q)}try{if(typeof useNuxtApp=="function"){const q=useNuxtApp(),B=((b=(J=(z=(H=(P=q==null?void 0:q.ssrContext)==null?void 0:P.event)==null?void 0:H.node)==null?void 0:z.req)==null?void 0:J.headers)==null?void 0:b.cookie)||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(B)}}catch{}return!1}),v=y.computed(()=>s.value.map(x=>{var P;return{label:_.value?x.nameEn||x.nameCn:x.nameCn||x.nameEn,value:`line-${x.id}`,children:(((P=x.raw)==null?void 0:P.countryList)||[]).map(H=>({label:_.value?H.nameEn:H.nameCn,value:`${x.id}-${H.id}`,shortCode:H.shortCode}))}})),I=y.computed(()=>i.placeholder?i.placeholder:_.value?"Please select route":"涉及航线选择"),F=y.computed(()=>u.value?_.value?"Searching...":"正在搜索中...":_.value?"No results found":"暂无结果"),R=async x=>{u.value=!0,p.value=x;try{const P=await E.locationSearchV2.line.searchAllByCountry(i.lineType);s.value=Array.isArray(P)?P:(P==null?void 0:P.records)||[]}catch(P){console.error("Search failed:",P),s.value=[]}finally{u.value=!1}},S=(x,P)=>{e("input",x),e("update:lineId",P),e("change",{countryIds:x,lineId:P})},O=()=>{},W=x=>{if(!x||x.length===0){l.value=[],S([],null);return}const P=x[x.length-1];if(P.startsWith("line-")){const[b,q]=P.split("-"),B=x.filter(w=>w.endsWith(`${q}`));S([],q),e("change",B);return}const[H]=P.split("-"),z=x.filter(b=>b.startsWith(`${H}-`));l.value=z;const J=z.map(b=>b.split("-")[1]);S(J,H),e("change",z)},k=async()=>{if(p.value)try{await E.reportNewTypeDataApi({reportData:p.value,reportType:"Line"})}catch{}e("apply",p.value),r.value&&(r.value.dropDownVisible=!1)};return y.onMounted(()=>{R("")}),y.watch(()=>i.value,x=>{const P=i.lineId;P&&x&&x.length>0?l.value=x.map(H=>`${P}-${H}`):l.value=[`line-${i.lineId}`]},{deep:!0,immediate:!0}),{selectRef:r,selectedValues:l,options:s,loading:u,cascaderProps:m,transformedOptions:v,currentPlaceholder:I,noDataText:F,handleExpand:O,handleChange:W,handleApply:k,ICON_MORE:Ci}}});var Z1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"jc-line-cascader"},[r("el-cascader",{ref:"selectRef",staticStyle:{width:"100%"},attrs:{"popper-class":"jc-line-cascader-pop",options:e.transformedOptions,props:e.cascaderProps,placeholder:e.currentPlaceholder,loading:e.loading,"no-data-text":e.noDataText,filterable:"",clearable:""},on:{"expand-change":e.handleExpand,change:e.handleChange},model:{value:e.selectedValues,callback:function(s){e.selectedValues=s},expression:"selectedValues"}})],1)},e_=[],t_=ve($1,Z1,e_,!1,null,null);const n_=t_.exports,r_=Object.freeze(Object.defineProperty({__proto__:null,default:n_},Symbol.toStringTag,{value:"Module"})),i_={},Mt=(...i)=>{for(const e of i)if(typeof e=="string"){const r=e.trim();if(r)return r}return""},$a=(...i)=>{for(const e of i){if(typeof e=="boolean")return e;if(typeof e=="string"){const r=e.trim().toLowerCase();if(r==="true")return!0;if(r==="false")return!1}}},a_=i=>{if(typeof window=="undefined")return{};const e=window,r=e==null?void 0:e[i],s=e==null?void 0:e.__JCTRANS_GIO_CONFIG__,u=e==null?void 0:e.__GIO_CONFIG__,p=r||s||u;return p&&typeof p=="object"?p:{}},s_=i=>(Mt(i)||"gio-track").replace(/^v-/,""),o_=i=>{const e=i.value;if(typeof e=="string")return{eventName:e.trim(),trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1};if(!e||typeof e!="object")return{eventName:"",trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1};const r=e.attributes||e.attrs||{},s=Object.entries(r).reduce((u,[p,l])=>(l!=null&&(u[p]=l),u),{});return{eventName:Mt(e.event,e.name,i.arg),trigger:Mt(e.trigger)||"click",attrs:s,once:!!e.once,stop:!!e.stop,prevent:!!e.prevent,callback:typeof e.onTracked=="function"?e.onTracked:typeof e.callback=="function"?e.callback:void 0}},ns=i=>{const e=i.__jctransTrackHandler__;e&&(i.removeEventListener(e.trigger,e.handler),delete i.__jctransTrackHandler__)},rc=(i,e,r)=>{ns(i);const s=o_(e);if(!s.eventName)return;const u=p=>{if(s.prevent&&"preventDefault"in p&&p.preventDefault(),s.stop&&"stopPropagation"in p&&p.stopPropagation(),r.isInitialized()){const l=E.normalizeClickPageAttrs(s.eventName,s.attrs);r.track(s.eventName,l,()=>{var m;(m=s.callback)==null||m.call(s,{event:p,eventName:s.eventName,attrs:l,trigger:s.trigger})})}s.once&&ns(i)};i.addEventListener(s.trigger,u),i.__jctransTrackHandler__={eventName:s.eventName,trigger:s.trigger,handler:u}},l_=i=>(e,r)=>{const s=Mt(e);if(!s||!i.isInitialized())return;const u=E.normalizeClickPageAttrs(s,r);i.track(s,u)},c_=(i,e)=>{if(typeof window=="undefined"||!i)return;const r=window;r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__||(r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__=new Set);const s=r.__JCTRANS_GIO_IDENTIFIED_DEVICE_KEYS__;if(s.has(e))return;const u=E.getOrCreateClientId();if(!u)return;const p=window.gdp;typeof p=="function"&&(s.add(e),p("identify",u))};function Dc(i){return{install(e){var k,x,P;const r=E.tracker,s=i_||{},u=i||{},p=Mt(u.globalVarName,"__JCTRANS_GIO_CONFIG__"),l=a_(p),m=$a(l.enabled,u.enabled,s.VITE_GIO_ENABLED),_={...u.initOptions||{},...l.initOptions||{}};if(!_.serverUrl){const H=Mt(l.serverUrl,u.serverUrl,s.VITE_GIO_SERVER_URL);H&&(_.serverUrl=H)}const v=Mt(l.accountId,u.accountId,s.VITE_GIO_ACCOUNT_ID),I=Mt(l.dataSourceId,u.dataSourceId,s.VITE_GIO_DATA_SOURCE_ID,s.VITE_GIO_DATASOURCE_ID),F=Mt(l.appId,u.appId,s.VITE_GIO_APP_ID),R=$a(l.autoInit,u.autoInit,s.VITE_GIO_AUTO_INIT),S=(P=$a((k=l.initOptions)==null?void 0:k.forceLogin,(x=u.initOptions)==null?void 0:x.forceLogin,_.forceLogin))!=null?P:!1,O=s_(l.directiveName||u.directiveName);(m==null||m)&&(R==null||R)&&v&&I&&!r.isInitialized()&&(F?r.init(v,I,F,_):r.init(v,I,_),c_(S,`jctrans-gio-identify-device:${v}:${I}`));const W=l_(r);e.prototype.$gio=r,e.prototype.$trackEvent=W,e.directive(O,{bind(H,z){rc(H,z,r)},update(H,z){rc(H,z,r)},unbind(H){ns(H)}})}}}let u_={open(){E.emitter.emit(E.MODAL_ACTION.Open)},close(){E.emitter.emit(E.MODAL_ACTION.Close)},onSubmit(i){E.emitter.on(E.MODAL_ACTION.Submit,i)}};function f_(){let i=!1;return{install(e){if(typeof window!="undefined"&&!i){const r=document.createElement("div");r.setAttribute("id","global-modal-root"),document.body.appendChild(r);const s=e.extend(_c);new s().$mount(r),i=!0}e.prototype.$globalModal=u_}}}const ic={},d_=Object.assign({"./components/ApplyDataDialog.vue":Iy,"./components/ChineseCompanySearch/index.vue":Oy,"./components/CodeInput.vue":R0,"./components/GlobalModal.vue":k0,"./components/GoogleInput.vue":d0,"./components/JcCarrierSearch/AirCarrierSearch.vue":Q0,"./components/JcCarrierSearch/AirLineSearch.vue":eC,"./components/JcCarrierSearch/SeaCarrierSearch.vue":sC,"./components/JcCarrierSearch/SeaLineSearch.vue":dC,"./components/JcCarrierSearch/index.vue":W0,"./components/JcFloatInput.vue":v0,"./components/JcFloatWrapper.vue":vC,"./components/JcLoginDialog/RegisterForm.vue":DC,"./components/JcLoginDialog/cmps/ApplyJoinBtn.vue":TC,"./components/JcLoginDialog/cmps/CompleteInfoForm.vue":MC,"./components/JcLoginDialog/cmps/FooterBox.vue":HC,"./components/JcLoginDialog/cmps/ForgetPassword.vue":XC,"./components/JcLoginDialog/cmps/LoginTypeSwitcher.vue":t1,"./components/JcLoginDialog/cmps/ThirdBindLogin.vue":l1,"./components/JcLoginDialog/cmps/ThirdRegisterForm.vue":p1,"./components/JcLoginDialog/cmps/WechatBindLogin.vue":C1,"./components/JcLoginDialog/cmps/WechatChooseType.vue":I1,"./components/JcLoginDialog/cmps/WechatLogin.vue":D1,"./components/JcLoginDialog/index.vue":U1,"./components/JcMSearch/index.vue":X1,"./components/JcSearch/index.vue":_y,"./components/JcVerifySlide/index.vue":E0,"./components/LineCascader/index.vue":r_}),hi={};Object.entries(d_).forEach(([i,e])=>{let r="";if(ic[i])r=ic[i];else{const u=i.replace("./components/","").replace(".vue","").split("/"),p=u.pop()||"";p==="index"&&u.length>0?r=u.pop()||"":r=p}r&&(hi[r]=e.default||e)});const{ApplyDataDialog:p_,ChineseCompanySearch:h_,JcSearch:m_,GlobalModal:g_,JcCarrierSearch:v_,AirCarrierSearch:y_,SeaCarrierSearch:C_,AirLineSearch:__,SeaLineSearch:A_,JcMSearch:b_,JcLoginDialog:w_}=hi;let ac=!1;const E_={install(i,e){ac||(ac=!0,e!=null&&e.sharedConfig&&E.initSharedConfig(e.sharedConfig),e!=null&&e.tracking&&i.use(Dc(e.tracking)),Object.keys(hi).forEach(r=>{i.component(r,hi[r]),console.log(`[JcUI Vue2] 自动注册组件: ${r}`)}))}};Object.defineProperty(exports,"MODAL_ACTION",{enumerable:!0,get:()=>E.MODAL_ACTION});Object.defineProperty(exports,"emitter",{enumerable:!0,get:()=>E.emitter});Object.defineProperty(exports,"initSharedConfig",{enumerable:!0,get:()=>E.initSharedConfig});exports.AirCarrierSearch=y_;exports.AirLineSearch=__;exports.ApplyDataDialog=p_;exports.ChineseCompanySearch=h_;exports.GlobalModal=g_;exports.JcCarrierSearch=v_;exports.JcLoginDialog=w_;exports.JcMSearch=b_;exports.JcSearch=m_;exports.SeaCarrierSearch=C_;exports.SeaLineSearch=A_;exports.createGioTrackingPlugin=Dc;exports.createGlobalModalPlugin=f_;exports.default=E_;
|