File: /www/server/panel/BTPanel/static/js/useStore4.js
import{j as s,c as t}from"./utils-lib.js?v=1777008528";import{aI as a,aJ as r,g as o}from"./base-lib.js?v=1777008528";const i=r("DATABASE-STORE",{state:()=>({tabActive:o(()=>s.currentRoute.value.name),isRefreshTable:!1,isRefreshClassList:!1,isLoading:!1,isHaveServer:!0,isSearchClick:!1,safetyStatus:!1,envStatus:{setup:!1,status:!1,version:""},softData:{setup:!1,status:!1,version:""},mysqlSelectData:{selectedList:[],clearSelection:()=>{},config:{}}}),getters:{},actions:{refreshTableList(e=!0){this.isRefreshTable=!0,this.isLoading=e},resetRefresh(){this.isRefreshTable=!1,this.isLoading=!1},async getGlobalConfig(){const{getGlobalInfo:e}=t();await e()}},persist:[{storage:localStorage,paths:["tabActive"]}]}),n=()=>{const e=i();return{refs:a(e),...e}};export{n as g,i as u};