import{k as s,r as e,c as t,o as r,b as p,R as a,S as i,U as o,V as u,a2 as l,X as n,a3 as _,F as m,O as c,a4 as d,l as j,v}from"./vue.js?v=1763625242172";import{e as x}from"./index87.js?v=1763625242172";import{c as y,m as g,T as f,hv as k,hw as b,p as h}from"./page_layout.js?v=1763625242172";import{dk as w,d9 as I}from"./naive.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./index132.js?v=1763625242172";import"./index.js?v=1763625242172";import"./common.js?v=1763625242172";import"./public.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang12.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang8.js?v=1763625242172";import"./index130.js?v=1763625242172";import"./php.js?v=1763625242172";import"./soft.js?v=1763625242172";import"./site.js?v=1763625242172";import"./site4.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang15.js?v=1763625242172";import"./index245.js?v=1763625242172";import"./index99.js?v=1763625242172";import"./index107.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang10.js?v=1763625242172";import"./index98.js?v=1763625242172";import"./index100.js?v=1763625242172";import"./theme-monokai.js?v=1763625242172";import"./file.js?v=1763625242172";import"./refersh.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang17.js?v=1763625242172";import"./index104.js?v=1763625242172";import"./ssl.js?v=1763625242172";import"./cert.js?v=1763625242172";import"./ssl-lets-progress.js?v=1763625242172";import"./utils3.js?v=1763625242172";import"./index217.js?v=1763625242172";import"./paypal-js.js?v=1763625242172";import"./upload.js?v=1763625242172";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 X=null;const q=async()=>{const{message:s}=await x({progress_type:h.params});y(s)&&(1===s.status?(X&&clearInterval(X),g.success("Task completed!"),O.value=!0):O.value=!1,delete s.status,H.value=Object.values(s))};return r((()=>{q(),X=window.setInterval((()=>{q()}),2e3)})),p((()=>{var s;null==(s=h.callback)||s.call(h),X&&clearInterval(X)})),(s,e)=>{const t=w,r=f,p=I,x=k,y=b;return a(),i("div",T,[o("div",z,[u(O)?(a(),l(t,{key:0,type:"success",title:"Task completed!"})):(a(),l(t,{key:1,type:"default",title:"In progress..."}))]),o("div",F,[n(y,{vertical:"",current:u(R),status:V(u(S)),size:"small"},{default:_((()=>[(a(!0),i(m,null,c(u(H),((s,e)=>(a(),l(x,{key:e,status:V(s.status),description:s.error||s.ps},{title:_((()=>[n(p,{class:"flex-nowrap! items-center!"},{default:_((()=>[o("span",null,d(s.title),1),j(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};
