import{k as s,r as e,c as t,o as r,b as p,R as a,V as i,S as o,a2 as u,U as l,W as n,a3 as _,F as m,O as c,l as d,a4 as j,v}from"./vue.js?v=1764830988434";import{e as x}from"./index85.js?v=1764830988434";import{hp as y,T as g,hq as f,d as k,m as b,p as h}from"./page_layout.js?v=1764830988434";import{dk as I,da as w}from"./naive.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";import"./index133.js?v=1764830988434";import"./index.js?v=1764830988434";import"./common.js?v=1764830988434";import"./public.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang9.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang8.js?v=1764830988434";import"./index131.js?v=1764830988434";import"./php.js?v=1764830988434";import"./soft.js?v=1764830988434";import"./site.js?v=1764830988434";import"./site4.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang13.js?v=1764830988434";import"./index246.js?v=1764830988434";import"./index97.js?v=1764830988434";import"./index107.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang10.js?v=1764830988434";import"./index96.js?v=1764830988434";import"./index98.js?v=1764830988434";import"./theme-monokai.js?v=1764830988434";import"./file.js?v=1764830988434";import"./refersh.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang16.js?v=1764830988434";import"./index102.js?v=1764830988434";import"./ssl.js?v=1764830988434";import"./cert.js?v=1764830988434";import"./ssl-lets-progress.js?v=1764830988434";import"./utils3.js?v=1764830988434";import"./index218.js?v=1764830988434";import"./paypal-js.js?v=1764830988434";import"./upload.js?v=1764830988434";const T={class:"p-16px"},z={class:"mb-16px"},F={class:"propress-box p-10px rounded-8px"},O=h(s({__name:"progress",props:{params:{},callback:{type:Function}},setup(s){const h=s,O=e(!1),q=e([]),H=t(()=>q.value.findIndex(s=>0===s.status)+1),R=t(()=>{var s;return null==(s=q.value[H.value])?void 0:s.status}),S={0:"process",1:"finish","-1":"error",2:"wait"},U=s=>S[s];let V=null;const W=async()=>{const{message:s}=await x({progress_type:h.params});k(s)&&(1===s.status?(V&&clearInterval(V),b.success("Task completed!"),O.value=!0):O.value=!1,delete s.status,q.value=Object.values(s))};return r(()=>{W(),V=window.setInterval(()=>{W()},2e3)}),p(()=>{var s;null==(s=h.callback)||s.call(h),V&&clearInterval(V)}),(s,e)=>{const t=I,r=g,p=w,x=y,k=f;return i(),a("div",T,[o("div",z,[l(O)?(i(),u(t,{key:0,type:"success",title:"Task completed!"})):(i(),u(t,{key:1,type:"default",title:"In progress..."}))]),o("div",F,[n(k,{vertical:"",current:l(H),status:U(l(R)),size:"small"},{default:_(()=>[(i(!0),a(m,null,c(l(q),(s,e)=>(i(),u(x,{key:e,status:U(s.status),description:s.error||s.ps},{title:_(()=>[n(p,{class:"flex-nowrap! items-center!"},{default:_(()=>[o("span",null,j(s.title),1),d(n(r,{size:"small"},null,512),[[v,0===s.status]])]),_:2},1024)]),_:2},1032,["status","description"]))),128))]),_:1},8,["current","status"])])])}}}),[["__scopeId","data-v-939603d7"]]);export{O as default};
