import{u as e,P as s,eX as t,f6 as a,b as r}from"./utils-lib.js?v=1761009159";import{j as o,s as i,r as u,g as l}from"./base-lib.js?v=1761009159";const n=o("NODE-STORE",()=>{const{getGlobalInfo:o,mainWidth:i}=e(),n=r(),d=u(),c=u(!1),g=u([]),m=u([]),N=u(0),b=u({}),h=u(!1),f=u(!1),p=u(""),v=u(!1);return{rowData:d,nodeCategory:g,isRefreshNodeList:c,searchWidth:l(()=>i.value>1530?320:i.value>1400?200:i.value>1200?180:140),nodeStatus:m,getNodeList:async()=>{const e=await s({request:t({p:"1",limit:"200"})});return e.status?e.data:(n.error(e.msg),[])},getAllNodeList:async(e="api")=>{const t=await s({request:a({node_type:e})});return t.status?t.data:(n.error(t.msg),[])},currentNodes:u({source:"",sourcePath:"/",target:"",targetPath:"/",localNodeId:""}),forcedFlushes:N,resetTab:()=>{p.value="",v.value=!1},settingTabActive:p,isJump:v,setNodeInfo:b,setNodeSSHisSet:h,sshTerminalVisible:f}}),d=()=>({...n(),...i(n())});export{n as N,d as u};
