import{g as a,a5 as s}from"./index-4cb6f38c.js";const t=a("chat",{state:()=>({messages:[],isLoading:!1,UserCount:0,chartData:[],kLineData:[],dbqbClickRecord:{},searchRecord:!1,currentUserIndex:null,inputUserIndex:null,announcementMsg:null,aiChatCall:!1,aiEmotionCall:!1,chatInput:!1,emotionInput:!1,firstAPICall:!1,dbqbScrollToTop:!0}),actions:{async getUserCount(){const a=await s({token:localStorage.getItem("localToken"),source:"1"});this.UserCount=a.data},setLoading(a){this.isLoading=a},isLoadingT(){this.isLoading=!0},isLoadingF(){this.isLoading=!1},addKLineData(a){this.kLineData.push(a)}},persist:{key:"chat_messages",storage:sessionStorage,paths:["messages","kLineData"]}});export{t as u};