import{d as v,i as y,r as x,o as d,b as g,j as M,e as t,k as N,l as u,v as m,m as k,n as S,p as q,a as l,q as B,s as A,x as T,y as V,z as f,A as $,f as I,w as D,c as L,C as P,h as U,T as E,D as K}from"./index-BhlVWTSX.js";const O={class:"fullscreen-container"},R={class:"right-panel"},j={class:"login-wrapper"},z={class:"input-group"},F={class:"input-group"},H={class:"password-wrapper"},W=v({name:"PwdLogin",__name:"pwd-login",setup(r){const i=y(),o=x({userName:"",password:""});async function n(){await i.login(o.userName,o.password)}return(c,e)=>(d(),g("div",O,[e[6]||(e[6]=M('<div class="left-panel" data-v-ecbc0fb5><div class="left-content" data-v-ecbc0fb5><div class="brand-icon" data-v-ecbc0fb5>◈</div><div class="left-title" data-v-ecbc0fb5>您的AI创造平台</div><div class="left-desc" data-v-ecbc0fb5> 托管您的vibe coding产品。<br data-v-ecbc0fb5>每一次进入，都是创意的开始。 </div><div class="left-quote" data-v-ecbc0fb5> “低代码开发，配置即服务。” </div></div></div>',1)),t("div",R,[t("div",j,[e[4]||(e[4]=t("div",{class:"login-header"},[t("h2",null,"登录账户"),t("p",null,"欢迎回来，请继续您的旅程")],-1)),t("form",{class:"login-form",id:"loginForm",autocomplete:"off",onKeyup:N(n,["enter"])},[t("div",z,[e[2]||(e[2]=t("span",{class:"input-label"},"账号",-1)),u(t("input",{type:"text",id:"username",class:"input-field",placeholder:"用户名",autocomplete:"username",inputmode:"text",required:"","onUpdate:modelValue":e[0]||(e[0]=a=>o.userName=a)},null,512),[[m,o.userName]])]),t("div",F,[e[3]||(e[3]=t("span",{class:"input-label"},"密码",-1)),t("div",H,[u(t("input",{type:"password",id:"password",class:"input-field",placeholder:"••••••••",autocomplete:"current-password",inputmode:"text",required:"","onUpdate:modelValue":e[1]||(e[1]=a=>o.password=a)},null,512),[[m,o.password]])])])],32),t("button",{type:"submit",class:"login-btn",id:"loginButton",onClick:n},"登 录"),e[5]||(e[5]=t("div",{class:"footer-note"},[t("span",null,"安全连接 · 简约体验")],-1))])])]))}}),G=k(W,[["__scopeId","data-v-ecbc0fb5"]]),Q=v({name:"login",__name:"index",props:{module:{}},setup(r){const i=r;S();const o=q(),n={"pwd-login":{label:B["pwd-login"],component:G}},c=l(()=>n[i.module||"pwd-login"]);l(()=>o.darkMode?A(o.themeColor,600):o.themeColor),l(()=>{const s="#ffffff",p=(o.darkMode,.9);return T(s,o.themeColor,p)});const{protocol:e,hostname:a,port:b}=V(),w=`${e}://${a}:${b}`,_=f("AI开发平台"),h=f("塔邦云科技");async function C(){try{const s=await K({url:`${w}/api/system/queryConfig`,method:"get",params:{}});s.data.config&&s.data.config.title&&(_.value=s.data.config.title),s.data.config&&s.data.config.footer&&(h.value=s.data.config.footer)}catch{}}return $(()=>{C()}),(s,p)=>(d(),g("div",null,[I(E,{name:U(o).page.animateMode,mode:"out-in",appear:""},{default:D(()=>[(d(),L(P(c.value.component)))]),_:1},8,["name"])]))}});export{Q as default};
