import{c as createStore}from"./index-18f5a1bc.js";import{g as getSerializedState}from"./utils-f84b2118.js";const{user:user}=getSerializedState(),VERIFIED="verified",VERIFYING="verifying",CODE_SENT="code_sent",UNVERIFIED="unverified",CODE_EXPIRED="code_expired",{state:state,onChange:onChange,dispose:dispose}=createStore({loggedIn:!1,email:"",name:"",avatarUrl:"",verificationStatus:null,resendAvailableAt:null,...user}),resetUser=()=>{state.loggedIn=!1,state.email="",state.name="",state.avatarUrl="",state.verificationStatus=null,state.resendAvailableAt=null};export{CODE_SENT as C,UNVERIFIED as U,VERIFYING as V,CODE_EXPIRED as a,VERIFIED as b,onChange as o,resetUser as r,state as s};