import{aR as s,dn as e,L as a,_ as l}from"./utils-lib.js?v=1761009159";import{l as n}from"./validator.js?v=1761009159";import{c as t,r as o,v as i,x as r,z as u,e as d,y as c,Q as m,B as p,C as _}from"./base-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const g={class:"disk-warning"},v={class:"warning-message"},f={class:"action-buttons"},k=l(t({__name:"index",emits:["close"],setup(l,{expose:t,emit:k}){const h=o([]),x=o([{label:"已知晓风险，忽略本次风险警告",value:1}]),C=k,b=()=>{n({pluginName:"disk_analysis",source:120,type:"ltd"}),s("diskPath","/"),s("taskStatus","true"),C("close"),h.value.length>0&&sessionStorage.setItem("diskWarn","true")},j=()=>{C("close"),h.value.length>0&&sessionStorage.setItem("diskWarn","true")};return t({onCancel:j}),(s,l)=>{const n=e,t=a;return i(),r("div",g,[l[5]||(l[5]=u("div",{class:"warning-icon"},[u("i",{class:"svgtofont-el-warning-filled"}),u("span",{class:"text-medium text-red-500"},"警告，磁盘空间不足")],-1)),u("div",v,[l[3]||(l[3]=u("p",null,"当前磁盘存储可用空间小于 500MB，将会导致以下风险，请及时处理：",-1)),l[4]||(l[4]=u("ul",null,[u("li",null,"1. 网站相关服务无法运行和访问"),u("li",null,"2. 面板相关服务将无法正常运或启动"),u("li",null,"2. 插件相关服务将无法安装或运行"),u("li",null,"3. 服务器出现瘫痪和宕机风险")],-1)),d(n,{modelValue:c(h),"onUpdate:modelValue":l[0]||(l[0]=s=>m(h)?h.value=s:null),options:c(x),onChange:s.handleCheckboxChange},null,8,["modelValue","options","onChange"]),u("div",f,[d(t,{type:"primary",onClick:b},{default:p(()=>l[1]||(l[1]=[_("立即处理",-1)])),_:1,__:[1]}),d(t,{onClick:j},{default:p(()=>l[2]||(l[2]=[_("暂不处理",-1)])),_:1,__:[2]})])])])}}}),[["__scopeId","data-v-b4cf19ce"]]);export{k as default};
