System.register(["./vue-legacy.js?v=1763625242172","./index-legacy87.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./index-legacy132.js?v=1763625242172","./index-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy12.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy8.js?v=1763625242172","./index-legacy130.js?v=1763625242172","./php-legacy.js?v=1763625242172","./soft-legacy.js?v=1763625242172","./site-legacy.js?v=1763625242172","./site-legacy4.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1763625242172","./index-legacy245.js?v=1763625242172","./index-legacy99.js?v=1763625242172","./index-legacy107.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy10.js?v=1763625242172","./index-legacy98.js?v=1763625242172","./index-legacy100.js?v=1763625242172","./theme-monokai-legacy.js?v=1763625242172","./file-legacy.js?v=1763625242172","./refersh-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy17.js?v=1763625242172","./index-legacy104.js?v=1763625242172","./ssl-legacy.js?v=1763625242172","./cert-legacy.js?v=1763625242172","./ssl-lets-progress-legacy.js?v=1763625242172","./utils-legacy3.js?v=1763625242172","./index-legacy217.js?v=1763625242172","./paypal-js-legacy.js?v=1763625242172","./upload-legacy.js?v=1763625242172"],(function(e,l){"use strict";var s,t,a,u,n,c,r,p,_,i,y,g,d,o,j,v,x,m,f,k,b,h,w,I,T,z;return{setters:[e=>{s=e.k,t=e.r,a=e.c,u=e.o,n=e.b,c=e.R,r=e.S,p=e.U,_=e.V,i=e.a2,y=e.X,g=e.a3,d=e.F,o=e.O,j=e.a4,v=e.l,x=e.v},e=>{m=e.e},e=>{f=e.c,k=e.m,b=e.T,h=e.hv,w=e.hw,I=e.p},e=>{T=e.dk,z=e.d9},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var l=document.createElement("style");l.textContent=".propress-box[data-v-939603d7]{border:1px solid var(--site-task-progress-border)}\n",document.head.appendChild(l);const C={class:"p-16px"},F={class:"mb-16px"},O={class:"propress-box p-10px rounded-8px"};e("default",I(s({__name:"progress",props:{params:{},callback:{type:Function}},setup(e){const l=e,s=t(!1),I=t([]),S=a((()=>I.value.findIndex((e=>0===e.status))+1)),E=a((()=>I.value[S.value]?.status)),H={0:"process",1:"finish","-1":"error",2:"wait"},R=e=>H[e];let U=null;const V=async()=>{const{message:e}=await m({progress_type:l.params});f(e)&&(1===e.status?(U&&clearInterval(U),k.success("Task completed!"),s.value=!0):s.value=!1,delete e.status,I.value=Object.values(e))};return u((()=>{V(),U=window.setInterval((()=>{V()}),2e3)})),n((()=>{l.callback?.(),U&&clearInterval(U)})),(e,l)=>{const t=T,a=b,u=z,n=h,m=w;return c(),r("div",C,[p("div",F,[_(s)?(c(),i(t,{key:0,type:"success",title:"Task completed!"})):(c(),i(t,{key:1,type:"default",title:"In progress..."}))]),p("div",O,[y(m,{vertical:"",current:_(S),status:R(_(E)),size:"small"},{default:g((()=>[(c(!0),r(d,null,o(_(I),((e,l)=>(c(),i(n,{key:l,status:R(e.status),description:e.error||e.ps},{title:g((()=>[y(u,{class:"flex-nowrap! items-center!"},{default:g((()=>[p("span",null,j(e.title),1),v(y(a,{size:"small"},null,512),[[x,0===e.status]])])),_:2},1024)])),_:2},1032,["status","description"])))),128))])),_:1},8,["current","status"])])])}}}),[["__scopeId","data-v-939603d7"]]))}}}));
