PageSourceSearch

https://loja.gwmmotors.com.br/brazil-official-commerce/_nuxt/Day87Ctl.js

js gwmmotors.com.br collected 2026-09-24 11:21:39 UTC 3,116 bytes, 1 lines download raw bytes

1import{_ as N}from"./CR3GHP8X.js";import{d as V,a as A,k as y,l as L,r as f,m as U,n as q,q as J,e as P,s as F,t as u,g as w,v as b,x as o,w as G,y as $,C as h,D as k,E as C,_ as j}from"./C38dwl4t.js";import{u as m}from"./BPMz_ISl.js";import{s as z}from"./x_rD_Ya3.js";import{g as H,b as K,w as Q}from"./C-4RljJn.js";import{R as x}from"./Cf4gqJ5G.js";import{E as I}from"./ChpJcsEU.js";import"./BD3qFiJn.js";import"./EQ787XZf.js";const W={class:"login_module"},X={class:"margin-bottom-48"},Y=V({__name:"otherLogin",emits:["changeview"],setup(Z,{emit:S}){const{t}=A(),i=y({account:!1,code:!1}),a=y({account:"",verifyCode:"",type:"",deviceId:"",code:""}),_=L(()=>{var e;return a.account&&I.test(a.account)&&((e=a.verifyCode)==null?void 0:e.length)===4}),p=f();function E(){const e={status:!0,message:""};a.account?I.test(a.account||"")||(e.message=t("ac_input_right_email"),e.status=!1):(e.message=t("ac_input_email_hint"),e.status=!1),i.account=e.status,p.value.setErrorMessage(e.message)}const T=S,v=e=>{T("changeview",{page:e})},l=f(!1),R=()=>{i.account&&(l.value=!0,B())},r=f(60);let s=null;const B=h(async function(){try{const{code:e}=await H({type:"20",email:a.account});e!=="000000"?e==="308024"&&(r.value=0,clearInterval(s),s=null,l.value=!1,m({content:t("verification_code_limit"),okText:t("ok")})):s||(s=z(()=>{r.value--,r.value===0&&s&&(clearInterval(s),s=null,l.value=!1,r.value=60)},1e3))}catch(e){console.error(e)}},2e3),g=h(async function(){if(_.value){let e=sessionStorage.getItem("tripartite")||"";a.type=JSON.parse(e).type,a.code=JSON.parse(e).accessToken;const{code:n,description:c}=await K(a);n!=="000000"?n==="307999"?m({content:t("account_not_exist"),okText:t("create"),cancelText:t("cancel"),onOk(){sessionStorage.setItem("loginPos",5),v(3)}}):n==="308032"?m({title:t("ac_cancellation"),content:t("ac_withdraw_cancellation"),okText:t("withdraw"),cancelText:t("cancel"),onOk(){M()}}):k(c):(v(1),C(c))}}),M=async()=>{const{code:e,description:n}=await Q({account:a.account,verifyCode:a.verifyCode});e==="000000"?C(t("ac_withdraw_cancellation_tips")):k(n)},O=()=>{document.onkeydown=function(e){var n,c;e.keyCode===13&&((c=(n=e==null?void 0:e.target)==null?void 0:n.baseURI)!=null&&c.includes("account/login"))&&g()}};return U(()=>{a.deviceId=q(),O()}),(e,n)=>{const c=N,D=J("a-button");return P(),F("div",null,[u(c),w("div",W,[w("h2",X,b(o(t)("ac_link_account")),1),u(x,{ref_key:"emailRef",ref:p,value:o(a).account,"onUpdate:value":n[0]||(n[0]=d=>o(a).account=d),verify:o(i).account,label:o(t)("ac_email"),maxlength:60,onOnBlur:E}
1,null,8,["value","verify","label"]),u(x,{class:"margin-bottom-48",value:o(a).verifyCode,"onUpdate:value":n[1]||(n[1]=d=>o(a).verifyCode=d),verify:o(i).code,label:o(t)("ve_verification_code_placeholder"),"show-send":!0,sendDisabled:o(l),codeSend:o(i).account,maxlength:4,"send-fn":R,type:"tel"},null,8,["value","verify","label","sendDisabled","codeSend"]),u(D,{class:"ant-btn-lg",type:"primary",disabled:!o(_),onClick:o(g)},{default:G(()=>[$(b(o(t)("confirm")),1)]),_:1},8,["disabled","onClick"])])])}}}),re=j(Y,[["__scopeId","data-v-42f59904"]]);export{re as default};

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