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=1764233927359";import{e as x}from"./index87.js?v=1764233927359";import{hx as y,T as g,hy as f,d as k,m as b,p as h}from"./page_layout.js?v=1764233927359";import{dk as I,da as w}from"./naive.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";import"./index132.js?v=1764233927359";import"./index.js?v=1764233927359";import"./common.js?v=1764233927359";import"./public.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang12.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang8.js?v=1764233927359";import"./index130.js?v=1764233927359";import"./php.js?v=1764233927359";import"./soft.js?v=1764233927359";import"./site.js?v=1764233927359";import"./site4.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang15.js?v=1764233927359";import"./index245.js?v=1764233927359";import"./index99.js?v=1764233927359";import"./index107.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang10.js?v=1764233927359";import"./index98.js?v=1764233927359";import"./index100.js?v=1764233927359";import"./theme-monokai.js?v=1764233927359";import"./file.js?v=1764233927359";import"./refersh.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang17.js?v=1764233927359";import"./index104.js?v=1764233927359";import"./ssl.js?v=1764233927359";import"./cert.js?v=1764233927359";import"./ssl-lets-progress.js?v=1764233927359";import"./utils3.js?v=1764233927359";import"./index217.js?v=1764233927359";import"./paypal-js.js?v=1764233927359";import"./upload.js?v=1764233927359";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),H=e([]),R=t(()=>H.value.findIndex(s=>0===s.status)+1),S=t(()=>{var s;return null==(s=H.value[R.value])?void 0:s.status}),U={0:"process",1:"finish","-1":"error",2:"wait"},V=s=>U[s];let W=null;const q=async()=>{const{message:s}=await x({progress_type:h.params});k(s)&&(1===s.status?(W&&clearInterval(W),b.success("Task completed!"),O.value=!0):O.value=!1,delete s.status,H.value=Object.values(s))};return r(()=>{q(),W=window.setInterval(()=>{q()},2e3)}),p(()=>{var s;null==(s=h.callback)||s.call(h),W&&clearInterval(W)}),(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(R),status:V(l(S)),size:"small"},{default:_(()=>[(i(!0),a(m,null,c(l(H),(s,e)=>(i(),u(x,{key:e,status:V(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};
