import{_}from"./index-COOnaZWq.js?v=1773287522785";import{g as f}from"./index-oaByoBTF.js?v=1773287522785";import{ew as u,i as c}from"./index-BTglIPU2.js?v=1773287522785";import{B as g}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as d,r as k,$ as y,a8 as w,S as x,a9 as a,q as B,_ as C,a0 as T,j as P}from"./vue-core-DJjvd5ZC.js?v=1773287522785";const j=d({__name:"task-view",props:{title:{type:String,default:"Copy Progress"},params:{type:String,default:"wp_copy"}},setup(n,{expose:p}){const t=n,r=k(!1),i=()=>{u(t.title,t.params,o)},o=async()=>{const{message:e}=await f({progress_type:t.params});c(e)&&(r.value=e.status===0)};return o(),p({getTask:o}),(e,s)=>{const l=g,m=_;return y(),w(m,{install:!x(r)},{desc:a(()=>[s[2]||(s[2]=C("span",{class:"mr-10px"},"There are currently tasks in progress.",-1)),T(l,{onClick:s[0]||(s[0]=S=>i())},{default:a(()=>s[1]||(s[1]=[P("View")])),_:1,__:[1]})]),default:a(()=>[B(e.$slots,"default")]),_:3},8,["install"])}}});export{j as _};
