File: /www/server/panel/BTPanel/static/js/useStore12.js
import{c as b,k as c,c9 as T,cl as v,f as L}from"./utils-lib.js?v=1777008528";import{aJ as y,aI as A,r as e,g as D}from"./base-lib.js?v=1777008528";const u=y("NODE-STORE",()=>{const{getGlobalInfo:E,mainWidth:s}=b(),a=L(),i=e(),l=e(!1),d=e([]),f=e([]),g=e(0),N=e({}),m=e(!1),S=e(!1),r=e(""),n=e(!1),h=D(()=>s.value>1530?320:s.value>1400?200:s.value>1200?180:140),p=e({source:"",sourcePath:"/",target:"",targetPath:"/",localNodeId:""});return{rowData:i,nodeCategory:d,isRefreshNodeList:l,searchWidth:h,nodeStatus:f,getNodeList:async()=>{const t=await c({request:T({p:"1",limit:"200"})});return t.status?t.data:(a.error(t.msg),[])},getAllNodeList:async(t="api")=>{const o=await c({request:v({node_type:t})});return o.status?o.data:(a.error(o.msg),[])},currentNodes:p,forcedFlushes:g,resetTab:()=>{r.value="",n.value=!1},settingTabActive:r,isJump:n,setNodeInfo:N,setNodeSSHisSet:m,sshTerminalVisible:S}}),C=()=>({...u(),...A(u())});export{u as N,C as u};