import{i as f,r as n,d as E,F,j as p}from"./react.6693569e.js";import{s as i,a as h}from"./index.b5b1089a.js";import{S as C}from"./Form.e3c93add.js";import{N as B}from"./NoteModal.27594ba5.js";import{S as e,R as u}from"./uno.aa306f28.js";import{LOGIN_LOCATION_SEARCH as g,LOGIN_PANEL_KEY as c}from"./Login.6ce9f2f5.js";import{m as l}from"./antd.ef9542dc.js";/* empty css               *//* empty css              *//* empty css              */import"./App.b28509be.js";import"./Cover.fc91526c.js";import"./antd.5e666edb.js";/* empty css               */import"./regular.2d81b23f.js";import"./index.c566a457.js";/* empty css               */import"./RSA.0dbe6c53.js";import"./index.0a6cc9fb.js";/* empty css               */import"./index.fe0a161e.js";import"./index.7550ae32.js";/* empty css              */import"./size.d81ce6e6.js";const U=()=>{const a=f(),[S,I]=n.exports.useState(!0);return n.exports.useEffect(()=>{const{uuid:t,type:s}=JSON.parse(e.getItem(u)||"{}");t&&s&&l.error("\u8BE5\u7528\u6237\u5728\u7CFB\u7EDF\u5185\u4E0D\u5B58\u5728\uFF0C\u8BF7\u5207\u6362\u767B\u9646\u65B9\u5F0F\u6216\u8FDB\u884C\u65B0\u7528\u6237\u6CE8\u518C")},[]),E(F,{children:[i.settingsStore.signup.note.enabled&&p(B,{visible:S,form:i.settingsStore.signup.note.params,onVisibleChange:t=>I(t)}),p(C,{onSignup:async t=>{const s=await h.authApi.signUp(t);e.removeItem(u),i.authStore.setSession(s),l.success("\u6CE8\u518C\u6210\u529F"),setTimeout(()=>{const o=e.getItem(g),m=e.getItem(c);let r=m?`/login/${m}`:"/login";r=o?`${r}?${o}`:r,a.replace(r)},1e3)},goBack:()=>{e.removeItem(u);const t=e.getItem(g),s=e.getItem(c);let o=s?`/login/${s}`:"/login";o=t?`${o}?${t}`:o,a.push(o)}})]})};export{U as default};
