import{_ as y,o as x,c as V,a as e,b as i,d as a,w as o,e as h,r,u as B,f as k,g as R,h as m}from"./index-BKsb6cIX.js";import{_ as A}from"./logo-CxXS7KxG.js";import{u as I}from"./auth-Ec_VJqgq.js";import"./index-DxOMYcp4.js";import"./index-B8_nURbH.js";const M={class:"internal-login"},N={class:"internal-login__panel"},S={__name:"LoginView",setup(q){const f=B(),_=I(),u=m(null),n=m(!1),s=R({username:"",password:""}),g={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]};async function d(){if(await u.value.validate().catch(()=>!1)){n.value=!0;try{await _.login(s.username,s.password),f.push("/")}finally{n.value=!1}}}return(b,l)=>{const p=r("el-input"),c=r("el-form-item"),v=r("el-button"),w=r("el-form");return x(),V("div",M,[l[7]||(l[7]=e("section",{class:"login-brand"},[e("div",{class:"login-brand__top"},[e("img",{src:A,class:"login-brand__logo",alt:"医梦AI"})]),e("div",{class:"login-brand__main"},[e("h1",null,"绩效运营工作台"),e("p",null,[i("目标对齐 · 进度可追溯"),e("br"),i("结果可解释 · 医疗级数据严谨")]),e("svg",{class:"medical-pulse",viewBox:"0 0 220 24","aria-hidden":"true",focusable:"false"},[e("path",{d:"M2 12h72l8-8 10 16 12-16 8 8h106"})])]),e("svg",{class:"molecule-mark",viewBox:"0 0 180 150","aria-hidden":"true",focusable:"false"},[e("path",{d:"M48 44 92 28 134 58 116 112 62 112 48 44Z"}),e("circle",{cx:"48",cy:"44",r:"7"}),e("circle",{cx:"92",cy:"28",r:"7"}),e("circle",{cx:"134",cy:"58",r:"7"}),e("circle",{cx:"116",cy:"112",r:"7"}),e("circle",{cx:"62",cy:"112",r:"7"})])],-1)),e("section",N,[l[5]||(l[5]=e("div",{class:"login-panel__header"},[e("span",{class:"login-panel__eyebrow"},"Internal Access"),e("h2",null,"账号登录")],-1)),a(w,{model:s,rules:g,ref_key:"formRef",ref:u,onSubmit:h(d,["prevent"]),class:"login-form"},{default:o(()=>[a(c,{prop:"username"},{default:o(()=>[l[2]||(l[2]=e("label",{class:"field-label"},"用户名",-1)),a(p,{modelValue:s.username,"onUpdate:modelValue":l[0]||(l[0]=t=>s.username=t),placeholder:"请输入用户名",class:"underline-input"},null,8,["modelValue"])]),_:1}),a(c,{prop:"password"},{default:o(()=>[l[3]||(l[3]=e("label",{class:"field-label"},"密码",-1)),a(p,{modelValue:s.password,"onUpdate:modelValue":l[1]||(l[1]=t=>s.password=t),type:"password","show-password":"",placeholder:"请输入密码",class:"underline-input",onKeyup:k(d,["enter"])},null,8,["modelValue"])]),_:1}),a(v,{class:"login-btn","native-type":"submit",loading:n.value},{default:o(()=>[...l[4]||(l[4]=[i(" 登 录 ",-1)])]),_:1},8,["loading"])]),_:1},8,["model"]),l[6]||(l[6]=e("div",{class:"login-panel__footer"},[e("span",{class:"login-help uppercase-label"},"账号由 HR 管理员创建")],-1))])])}}},H=y(S,[["__scopeId","data-v-dab2c18a"]]);export{H as default};
