import{_ as s}from"./index132.js?v=1763625242172";import{o as a,e as t}from"./index87.js?v=1763625242172";import{c as e}from"./page_layout.js?v=1763625242172";import{aC as r}from"./naive.js?v=1763625242172";import{k as o,r as p,R as i,a2 as n,a3 as l,U as m,X as u,j as c,q as _,V as f}from"./vue.js?v=1763625242172";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 i(),n(p,{install:!f(y)},{desc:l((()=>[e[2]||(e[2]=m("span",{class:"mr-10px"},"There are currently tasks in progress.",-1)),u(o,{onClick:e[0]||(e[0]=s=>{a(g.title,g.params,j)})},{default:l((()=>e[1]||(e[1]=[c("View")]))),_:1,__:[1]})])),default:l((()=>[_(t.$slots,"default")])),_:3},8,["install"])}}});export{d as _};
