import{C as e}from"./index-ZGOE7TRg.js";async function l(){const{data:t}=await e.get("/server/info");return t}async function d(){const{data:t}=await e.get("/docker_stats");return t}async function p(){const{data:t}=await e.get("/task/stats");return t}async function f(){const{data:t}=await e.get("/task/running");return t}async function g(t){const{data:a}=await e.get("/task/logs",{params:t});return a}async function h(t){const{data:a}=await e.post("/task/logs/clear",{days:t});return a}function r(t){return String(t||"").trim()}function c(t){return!t.startsWith("user_scheduled")||!t.includes(":")?"":t.split(":",2)[1]||""}function m(t){const a=r(t);if(!a||a==="manual")return{group:"manual",label:"手动",type:"success",tooltip:""};if(a==="scheduled")return{group:"scheduled",label:"定时任务",type:"primary",tooltip:"系统定时"};if(a.startsWith("user_scheduled")){const n=c(a),s=String(n||"").replace(/^batch_/,"");return{group:"scheduled",label:"定时任务",type:"primary",tooltip:s?`用户定时批次:${s}`:"用户定时"}}return{group:"manual",label:"手动",type:"success",tooltip:{batch:"手动批量",manual_screenshot:"手动截图",immediate:"立即执行",resumed:"断点恢复"}[a]||a}}export{d as a,p as b,f as c,g as d,h as e,l as f,m as g};