File: /www/server/panel/BTPanel/static/js/scan-details.js
import{_ as g}from"./index206.js?v=1777008528";import{am as v}from"./firewall.js?v=1777008528";import{a1 as w,M as u,w as h,k as x}from"./utils-lib.js?v=1777008528";import{c as C,aC as k,r as i,w as D,o as S,aH as y,j as B,k as F,e as M,p as T}from"./base-lib.js?v=1777008528";import"./index3.js?v=1777008528";import"./index119.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index116.js?v=1777008528";const b={class:"flex-wrap h-full"},V=C({__name:"scan-details",props:{compData:{default:()=>({})}},setup(m,{expose:p}){const f=k("popupSetFooter"),s=m,n=i("获取中..."),a=i(!0),c=i(),{path_info:d}=s.compData,r=async()=>{var t,l;try{n.value="获取中...";const e=await w({num:20,filename:d});if(n.value=e.msg||"扫描中...",((t=e.msg)==null?void 0:t.indexOf("扫描结束"))!==-1){a.value=!1,u.success("扫描已结束"),f(!1),o();return}((l=e.msg)==null?void 0:l.indexOf("扫描结束"))===-1&&a.value&&(c.value=setTimeout(function(){r()},1500)),e.status||(u.request(e),a.value=!1)}catch(e){o()}},o=()=>{c.value&&clearTimeout(c.value)},_=async t=>{await h({icon:"warning-filled",title:"停止检测网站",width:"40rem",content:"当前正在进行检测网站,确定停止检测网站吗?"}),await x({loading:"正在停止检测,请稍后...",request:v({id:s.compData.id}),message:!0}),a.value=!1,o(),t()};return D(()=>s.compData,t=>{a.value=!0,r()}),S(()=>r()),y(()=>o()),p({onConfirm:_,onCancel:o}),(t,l)=>{const e=g;return B(),F("div",b,[M(e,{class:"h-full",title:"全屏查看",content:T(n)},null,8,["content"])])}}});export{V as default};