import{c as a,s,g as t,v as e,x as o,N as l,D as r,e as p,y as m,aY as i}from"./base-lib.js?v=1761009159";import{K as c}from"./utils-lib.js?v=1761009159";import{j as n}from"./form-item.js?v=1761009159";import{L as u}from"./useStore6.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";const v={class:"p-[20px] flex flex-col"},b=a({__name:"index",props:{compData:{}},setup(a,{expose:b}){const y=a,f=u(),{clearOptions:x,clearDataForm:j}=s(f),D=t(()=>"crontab"==y.compData.type?x.value.slice(0,x.value.length-1):x.value),{BtForm:d,submit:w}=c({data:j.value,options:a=>t(()=>["website"===y.compData.type?n("类型","type",[{label:"运行日志",value:"access"},{label:"异常日志",value:"error"}],{attrs:{class:"!w-[22rem]"}}):[],n("清理范围","day",D.value,{attrs:{class:"!w-[22rem]"}})]),submit:async({value:{day:a,type:s}})=>await y.compData.clearEvent(a,s)});return b({onConfirm:w}),(a,s)=>{const t=i;return e(),o("div",v,[a.compData.tips?(e(),l(t,{key:0,closable:!1,title:a.compData.tips,type:"warning","show-icon":""},null,8,["title"])):r("",!0),p(m(d),{class:"mt-[8px]"})])}}});export{b as default};
