import{V as G,W as H,l as J,S as O,k as D,g as y,f as _}from"./element-plus-yhtdTbPD.js";import{_ as F,u as Z,s as P,a as K,b as L,p as z,c as R}from"./index-D5k4QILW.js";/* empty css                    */import{aA as q,r as S,m as M,l as $,L as ee,P as e,M as c,O as u,u as o,V as U,_ as x,ap as b,Y as k,Z as m,ax as te,ay as ae,H as oe}from"./vue-vendor-C1ve1r-r.js";import{_ as se,a as le,b as N,c as ne}from"./account-Dw9nDNr7.js";import{_ as ce}from"./kefu-03_RqOWp.js";const re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAb9JREFUeAHt2IttwjAQBuCfqgN0BHeCthM0G8AGjMAIsAEj0G7QDUInoBuEDcoG1zvFadJKiLvYwUbyJ50iIeP4kfgcA0VRFDeJiCqOHUdDvYP/bYFcceMcR02XNVIWOeEGPXN8k56UfUYO/MhbGj/shENq9PdZt6qREjdgQeEqTOBOWW6OcEtMQNuBGC9ihQnMNIVk/hHBjCEy7QwkweO28e/PBiEobAXqHGA0/PO5MtoZ2CPcFyag7cA7wn0gJdLtf85pMILmEbJUdvWtRNQO+Aon2cxRv9pYbWBF7Uw0isprUo48BcBY/N85tR8vh0F9jf/t1VjXmsZZR8+MMQ1H+FwWzzoTa9x8B+61BXk2H/giH+tPHA79DtX9K3rkOPmQ7PspV34Cjrg2aTTHisKSWKfmWPqB0N7/F6yoXZvHJK5LGlKu39SvTmtokX6dj9ERh5jInmlDxTt2SdD4KJ2Y+cY7vsjRh0MaR44XXqlOMOrygLwkDuk4ji1GmPnRH7Vfn8CjNV/IDKyQD/PZkXSgQj7Mx/LyCMX52onEenYkM2B+83MiHdgjH2+wonbDtqM0Sawj996SYaNXFEWRhx9v6kw7vMkiegAAAABJRU5ErkJggg==",ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAeNJREFUeAHtmItxwjAMhn+YIN0gI7BB2QA2gE5AN6AbwAbQCegGsAHdwO0EZQNVvrjXxDjEsUweXL47HXe2UCRbfsjAwMBAFIhoyrJjUfTP2bTN0VXYuZTlSNUorYsuwQ5NWH7IH607QRcwI1/H+XwQKdqGirlelyPahB2Yk5wpIjBGGDPIWSACoQHEWIhTRGCEAPT8IwIjBkJCZ6AzhAbwBTmfiEBoACfIaTWAd8j5QJuQ3/2nDIW2ob5fJTTU58vcH2YmlIfzx86MvAt2bkZZ8XLOOa1M2zMGBh4MzuuEZcmyYTmYfFeOxavMupg5/v9GxfNE60W5Zt9yekX1D7G1Zadq59J9KWJiRivk4No5bCmP/2mdBFLIf58vcyK17C0tnTVlM6vl1e6DBKp/0tosHDbz58TK0b/O9YcX/xGcVyV28ySO/iSvUOXnuOQjKf8cWCQ5eKpS4Iry4tN2i7J6QOdeChmN3PevAjCjv4ScbzSAawZWiACnQqFkJLMNW21OLB29DjfwhYq7RDCWzS3JcW6pI0cA0d98KBt56aF0YZNPV9+xGyJ9zA7gbg9hrjVwQo9wBfDCsmeptR+3hfht0oemU6hXDAF4EmM9OW00FcAWcvZoE8pq59CnSFlhM3BHfgHD7aZ+IXzGNQAAAABJRU5ErkJggg==",r=v=>(te("data-v-1e168f4e"),v=v(),ae(),v),me={class:"pc-login-container"},ue=r(()=>e("img",{src:L,class:"top-left-logo",alt:"logo"},null,-1)),de={class:"lang-selector-wrapper"},pe=r(()=>e("div",{class:"bg-glow glow-top-right"},null,-1)),Ae=r(()=>e("div",{class:"bg-glow glow-bottom-left"},null,-1)),ge={class:"login-card"},_e=r(()=>e("div",{class:"mclaren-header"},[e("img",{src:se,class:"mclaren-img-logo",alt:"mclaren logo"}),e("div",{class:"main-title"},"迈凯伦"),e("div",{class:"sub-partner"},"官方合作伙伴")],-1)),we={class:"form-wrapper"},ve=r(()=>e("img",{src:le,class:"input-icon",alt:"icon"},null,-1)),fe=r(()=>e("img",{src:N,class:"input-icon",alt:"icon"},null,-1)),he={class:"form-wrapper"},be=r(()=>e("img",{src:ne,class:"input-icon",alt:"icon"},null,-1)),Ie=r(()=>e("img",{src:N,class:"input-icon",alt:"icon"},null,-1)),Se={class:"options-agreement-row"},ke={class:"agreement-content"},Be={class:"bottom-action-group"},Ce=r(()=>e("img",{src:re,class:"action-icon",alt:"register"},null,-1)),Ve=r(()=>e("img",{src:ie,class:"action-icon",alt:"guest"},null,-1)),Ee=r(()=>e("img",{src:ce,class:"action-icon",alt:"guest"},null,-1)),ye={__name:"index",setup(v){const p=q(),{t}=Z(),f=S(!1),A=S(!1),d=S("account"),l=M({account:"",password:""}),n=M({account:"",password:""});function Q(){localStorage.getItem("is_remember_pwd_email")==="true"&&(l.account=localStorage.getItem("saved_account_email")||"",l.password=localStorage.getItem("saved_password_email")||""),localStorage.getItem("is_remember_pwd_account")==="true"&&(n.account=localStorage.getItem("saved_account_account")||"",n.password=localStorage.getItem("saved_password_account")||""),B()}function B(){d.value==="email"?A.value=localStorage.getItem("is_remember_pwd_email")==="true":A.value=localStorage.getItem("is_remember_pwd_account")==="true"}function C(){y.alert(`<div style="line-height: 1.6; color: #333; text-align: left;">
      <h3 style="margin-bottom: 16px;">平台服务协议</h3>
      <p>1. 本平台提供相关的体育与彩票服务...</p>
      <p>2. 请确保您已达到法定年龄...</p>
    </div>`,t("产品服务协议"),{dangerouslyUseHTMLString:!0,confirmButtonText:t("确定"),customClass:"agreement-msgbox"})}function X(){return l.account?l.password?l.password.length<6||l.password.length>20?(_.warning(t("密码长度需在6-20个字符之间")),!1):!0:(_.warning(t("请输入登录密码")),!1):(_.warning(t("请输入登录邮箱")),!1)}function Y(){return n.account?n.password?n.password.length<6||n.password.length>20?(_.warning(t("密码长度需在6-20个字符之间")),!1):!0:(_.warning(t("请输入登录密码")),!1):(_.warning(t("请输入账号")),!1)}function V(i){if(!f.value){y.confirm(t("为了保障您的权益，请先阅读并同意")+"《"+t("产品服务协议")+"》",t("温馨提示"),{confirmButtonText:t("同意并继续"),cancelButtonText:t("取消"),type:"warning"}).then(()=>{f.value=!0,i()}).catch(()=>{});return}i()}function j(){V(()=>{p.push("/")})}function T(){localStorage.getItem("youke_token")?p.push({name:"CustomerService",query:{GuestMode:1}}):K().then(i=>{localStorage.setItem("youke_token",i.data.token),p.push({name:"CustomerService",query:{GuestMode:1}})})}function w(){V(async()=>{let i=!1,a={account:"",password:""};d.value==="email"?(i=X(),a.account=l.account,a.password=l.password):(i=Y(),a.account=n.account,a.password=n.password),i&&z(a).then(g=>{R.close(),d.value==="email"?A.value?(localStorage.setItem("is_remember_pwd_email","true"),localStorage.setItem("saved_account_email",a.account),localStorage.setItem("saved_password_email",a.password)):(localStorage.removeItem("is_remember_pwd_email"),localStorage.removeItem("saved_account_email"),localStorage.removeItem("saved_password_email")):A.value?(localStorage.setItem("is_remember_pwd_account","true"),localStorage.setItem("saved_account_account",a.account),localStorage.setItem("saved_password_account",a.password)):(localStorage.removeItem("is_remember_pwd_account"),localStorage.removeItem("saved_account_account"),localStorage.removeItem("saved_password_account")),localStorage.setItem("token",g.data.token),localStorage.setItem("has_payment_password",g.data.has_payment_password?1:0);let I=setTimeout(()=>{clearTimeout(I),R.connect(g.data.token)},2e3);setTimeout(()=>{window.history.state&&window.history.state.back?p.back():p.push("/")},1e3)})})}return $(()=>{Q()}),(i,a)=>{const g=G,I=H,h=J,E=O,W=D;return oe(),ee("div",me,[ue,e("div",de,[c(P)]),pe,Ae,e("div",ge,[_e,c(I,{modelValue:d.value,"onUpdate:modelValue":a[0]||(a[0]=s=>d.value=s),class:"custom-tabs",stretch:"",onTabChange:B},{default:u(()=>[c(g,{label:o(t)("账号登录"),name:"account"},null,8,["label"]),c(g,{label:o(t)("邮箱登录"),name:"email"},null,8,["label"])]),_:1},8,["modelValue"]),U(e("div",we,[c(h,{modelValue:n.account,"onUpdate:modelValue":a[1]||(a[1]=s=>n.account=s),placeholder:o(t)("请输入账号"),clearable:"",size:"large",class:"custom-input",onKeyup:b(w,["enter"])},{prefix:u(()=>[ve]),_:1},8,["modelValue","placeholder"]),c(h,{modelValue:n.password,"onUpdate:modelValue":a[2]||(a[2]=s=>n.password=s),placeholder:o(t)("请输入登录密码"),type:"password","show-password":"",clearable:"",size:"large",class:"custom-input",onKeyup:b(w,["enter"])},{prefix:u(()=>[fe]),_:1},8,["modelValue","placeholder"])],512),[[x,d.value==="account"]]),U(e("div",he,[c(h,{modelValue:l.account,"onUpdate:modelValue":a[3]||(a[3]=s=>l.account=s),placeholder:o(t)("请输入登录邮箱"),clearable:"",size:"large",class:"custom-input",onKeyup:b(w,["enter"])},{prefix:u(()=>[be]),_:1},8,["modelValue","placeholder"]),c(h,{modelValue:l.password,"onUpdate:modelValue":a[4]||(a[4]=s=>l.password=s),placeholder:o(t)("请输入登录密码"),type:"password","show-password":"",clearable:"",size:"large",class:"custom-input",onKeyup:b(w,["enter"])},{prefix:u(()=>[Ie]),_:1},8,["modelValue","placeholder"])],512),[[x,d.value==="email"]]),e("div",Se,[c(E,{modelValue:A.value,"onUpdate:modelValue":a[5]||(a[5]=s=>A.value=s),class:"custom-checkbox"},{default:u(()=>[k(m(o(t)("记住密码")),1)]),_:1},8,["modelValue"]),e("div",ke,[c(E,{modelValue:f.value,"onUpdate:modelValue":a[6]||(a[6]=s=>f.value=s),class:"custom-checkbox"},{default:u(()=>[k(m(o(t)("我已阅读并同意")),1)]),_:1},8,["modelValue"]),e("span",{class:"agreement-link",onClick:C},m(o(t)("相关条款")),1),e("span",null,m(o(t)("和")),1),e("span",{class:"agreement-link",onClick:C},m(o(t)("隐私政策")),1)])]),c(W,{type:"primary",class:"submit-btn",size:"large",onClick:w},{default:u(()=>[k(m(o(t)("登录")),1)]),_:1}),e("div",Be,[e("div",{class:"action-item",onClick:a[7]||(a[7]=s=>o(p).push("/register"))},[Ce,e("span",null,m(o(t)("注册")),1)]),e("div",{class:"action-item",onClick:j},[Ve,e("span",null,m(o(t)("游客模式")),1)]),e("div",{class:"action-item",onClick:T},[Ee,e("span",null,m(o(t)("在线客服")),1)])])])])}}},Xe=F(ye,[["__scopeId","data-v-1e168f4e"]]);export{Xe as default};
