import{_ as s}from"./index133.js?v=1764830988434";import{o as a,e as t}from"./index85.js?v=1764830988434";import{d as e}from"./page_layout.js?v=1764830988434";import{aC as r}from"./naive.js?v=1764830988434";import{k as o,r as p,a2 as i,V as n,U as l,a3 as m,q as u,S as _,W as c,j as f}from"./vue.js?v=1764830988434";const d=o({__name:"task-view",props:{title:{type:String,default:"Copy Progress"},params:{type:String,default:"wp_copy"}},setup(o,{expose:d}){const g=o,y=p(!1),j=async()=>{const{message:s}=await t({progress_type:g.params});e(s)&&(y.value=0===s.status)};return j(),d({getTask:j}),(t,e)=>{const o=r,p=s;return n(),i(p,{install:!l(y)},{desc:m(()=>[e[2]||(e[2]=_("span",{class:"mr-10px"},"There are currently tasks in progress.",-1)),c(o,{onClick:e[0]||(e[0]=s=>{a(g.title,g.params,j)})},{default:m(()=>e[1]||(e[1]=[f("View",-1)])),_:1,__:[1]})]),default:m(()=>[u(t.$slots,"default")]),_:3},8,["install"])}}});export{d as _};
