import{createStore}from"@stencil/store";import{getSerializedState}from"../utils";const{user:user}=getSerializedState();export const VERIFIED="verified";export const VERIFYING="verifying";export const CODE_SENT="code_sent";export const UNVERIFIED="unverified";export const CODE_EXPIRED="code_expired";const{state:state,onChange:onChange,dispose:dispose}=createStore({loggedIn:!1,email:"",name:"",avatarUrl:"",verificationStatus:null,resendAvailableAt:null,...user});export const resetUser=()=>{state.loggedIn=!1,state.email="",state.name="",state.avatarUrl="",state.verificationStatus=null,state.resendAvailableAt=null};export default state;export{state,onChange,dispose};