import{l as e}from"./index.f608f11e.js";import{d as a,U as s,L as l,u as o,r,c as n,F as t,I as d,B as u,b as p}from"./vendor.98dba853.js";/* empty css              */const i=a({name:"app",components:{UserOutlined:s,LockOutlined:l},setup(){const a=o(),i=r({username:"",password:"",password2:""}),m=e=>{console.log(e,i)},c=e=>{console.log(e)},f=async()=>{(await e(i)).isHandleSuccess&&a.replace("/home")};return()=>n("div",{class:"login"},[n(t,{layout:"vertical",model:i,onFinish:m,onFinishFailed:c},{default:()=>[n(t.Item,null,{default:()=>[n(d,{value:i.username,"onUpdate:value":e=>i.username=e,placeholder:"Username"},{prefix:()=>n(s,{style:"color: rgba(0, 0, 0, 0.25)"},null)})]}),n(t.Item,null,{default:()=>[n(d,{value:i.password,"onUpdate:value":e=>i.password=e,type:"password",placeholder:"Password"},{prefix:()=>n(l,{style:"color: rgba(0, 0, 0, 0.25)"},null)})]}),n(t.Item,null,{default:()=>[n(u,{type:"primary","html-type":"submit",disabled:""===i.username||""===i.password,onClick:f},{default:()=>[p("Log in")]})]})]})])}});export{i as default};
