import{_ as o,o as r,c as n,a as e,t as a,p as c,l as d,q as u,F as _,x as m}from"./D6ipka4G.js";const v={props:{totalItems:{type:Number,required:!0},currentItem:{type:Number,required:!0},passed:{type:Array},failed:{type:Array}},computed:{completionPercent(){return Math.round(100*this.currentItem/this.totalItems)}}},y={key:0,class:"admin-progress-bar"},f={class:"status"},b={class:"percent-bar-container"},h={class:"percent-bar-box"},I={class:"stats"},p={class:"stat"},g={class:"processed"},x={key:0,class:"stat"},P={class:"passed"},k={key:1,class:"stat"},N={class:"failed"};function q(B,s,t,F,V,l){return t.totalItems>0?(r(),n("div",y,[e("div",f,[e("strong",null,a(t.currentItem===0?"Preparing...":t.currentItem<t.totalItems?"Processing...":"Complete"),1)]),e("div",b,[e("div",h,[e("div",{class:"percent-bar-colored",style:c({width:`${Math.round(l.completionPercent/10)*10}%`})},null,4),s[0]||(s[0]=e("div",{class:"percent-bar"},null,-1))])]),e("div",I,[e("div",p,[s[1]||(s[1]=e("div",{class:"label"}," Processed: ",-1)),e("div",g,a(t.currentItem)+" / "+a(t.totalItems)+" ("+a(l.completionPercent)+"%) ",1)]),t.passed!==void 0?(r(),n("div",x,[s[2]||(s[2]=e("div",{class:"label"}," Passed: ",-1)),e("div",P,a(t.passed.length),1)])):d("",!0),t.failed!==void 0?(r(),n("div",k,[s[3]||(s[3]=e("div",{class:"label"}," Failed: ",-1)),e("div",N,[u(a(t.failed.length)+" ",1),(r(!0),n(_,null,m(t.failed,i=>(r(),n("div",{key:i,class:"failure"},a(i),1))),128))])])):d("",!0)])])):d("",!0)}const C=o(v,[["render",q]]);export{C as _};