import{c as e,r as a,q as l,v as s,x as t,e as o,B as m,y as u,z as n,Q as r,C as i,U as d}from"./base-lib.js?v=1761009159";import{P as c,fF as p,b as v,bI as f,l as x,$ as V,j as h}from"./utils-lib.js?v=1761009159";import{B as j}from"./index115.js?v=1761009159";import{_ as b}from"./index105.js?v=1761009159";import{d as g,u as _}from"./column.js?v=1761009159";import{bf as y,bg as q}from"./firewall.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./ace.js?v=1761009159";import"./index106.js?v=1761009159";const w={class:"p-[2rem]"},C={class:"p-[2rem]"},U={class:"flex items-center p-[2rem] text-base"},k={class:"flex flex-col ml-[1.2rem]"},F={class:"flex items-center mt-[1.2rem]"},B=e({__name:"index",setup(e){const B=v(),z=a([]),A=a(""),D=a(!1),H=a({}),I=a(!1),J=a(!1),L=a([{label:"隔离时间",prop:"time"},g({label:"文件",prop:"path"}),_([{title:"样本文件",width:60,onClick:async e=>{H.value=e;const a=await c({request:p({path:e.path})});a.data.msg?B.request(a):(A.value=a.data.data,D.value=!0)}},{title:"删除",onClick:async e=>{I.value=!0,H.value=e}}])]),N=async()=>{c({request:y(),data:[Array,z]})},O=async()=>{c({request:f({path:H.value.path,data:A.value,encoding:"utf-8"}),message:!0})},P=async()=>{c({request:q({data:JSON.stringify({md5:H.value.md5,path:H.value.path,type:J.value?"delete":""})}),message:!0,success:()=>{N(),J.value=!1,I.value=!1}})};return l(()=>{N()}),(e,a)=>{const l=x,c=b,p=V,v=j,f=h,g=d;return s(),t("div",w,[o(c,null,{content:m(()=>[o(l,{column:u(L),data:u(z)},null,8,["column","data"])]),_:1}),o(p,{options:[{content:"样本文件：查杀时的文件内容被记录形成的样本文件"}],class:"ml-[2rem] mt-[1.2rem]"}),o(f,{title:"在线编辑",showFooter:"",modelValue:u(D),"onUpdate:modelValue":a[1]||(a[1]=e=>r(D)?D.value=e:null),area:70,onConfirm:O},{default:m(()=>[n("div",C,[o(v,{modelValue:u(A),"onUpdate:modelValue":a[0]||(a[0]=e=>r(A)?A.value=e:null),class:"!h-[40rem]"},null,8,["modelValue"])])]),_:1},8,["modelValue"]),o(f,{title:"删除文件",showFooter:"",area:40,modelValue:u(I),"onUpdate:modelValue":a[3]||(a[3]=e=>r(I)?I.value=e:null),onConfirm:P},{default:m(()=>[n("div",U,[a[6]||(a[6]=n("i",{class:"svgtofont-el-question text-warningDark text-titleLarge"},null,-1)),n("div",k,[a[5]||(a[5]=n("span",{class:"leading-8"},"是否要删除关联的源文件？",-1)),n("div",F,[o(g,{modelValue:u(J),"onUpdate:modelValue":a[2]||(a[2]=e=>r(J)?J.value=e:null),class:"!mr-[.4rem]"},null,8,["modelValue"]),a[4]||(a[4]=i(" 源文件 ",-1))])])])]),_:1},8,["modelValue"])])}}});export{B as default};
