text: import{h as e,D as s,j as t,r as a,R as r,C as n,V as o,ad as l,ae as i,P as d,x as m}from"./vendor.300ed9b7.js";import{c,a as u}from"./index.e9d3fa6c.js";import"./index.650959c9.js";import"./index.09572d96.js";import"./index.esm.d1ca93b9.js";import"./useTitle.0be7584e.js";const p=()=>{const{t:p}=e(),g=s(),j=t(),[x,E]=a.exports.useState(""),b=()=>{c(x),u.get("login").then((e=>{const s=e.data;200===s.code?(j({title:p(s.message),status:"success",duration:3e3,isClosable:!0}),g.push("settings")):j({title:p(s.message),status:"error",duration:3e3,isClosable:!0})}))};return r.createElement(n,{p:"4",h:"full"},r.createElement(o,{w:{base:"full",md:"50%"}},r.createElement(l,{isRequired:!0},r.createElement(i,null,p("password")),r.createElement(d,{type:"password",value:x,onChange:e=>E(e.target.value),onKeyUp:e=>{"Enter"===e.key&&b()}})),r.createElement(m,{onClick:b},p("login"))))};export{p as default};
  