import{M as g,S as l,N as u,Q as p,l as m,f as s,am as h,X as f}from"./index-BV0H45HW.js";const[k,i]=p("progress"),P={color:String,inactive:Boolean,pivotText:String,textColor:String,showPivot:u,pivotColor:String,trackColor:String,strokeWidth:l,percentage:{type:l,default:0,validator:t=>+t>=0&&+t<=100}};var S=g({name:k,props:P,setup(t){const c=m(()=>t.inactive?void 0:t.color),d=()=>{const{textColor:n,pivotText:e,pivotColor:a,percentage:o}=t,r=e??`${o}%`;if(t.showPivot&&r){const v={color:n,left:`${+o}%`,transform:`translate(-${+o}%,-50%)`,background:a||c.value};return s("span",{style:v,class:i("pivot",{inactive:t.inactive})},[r])}};return()=>{const{trackColor:n,percentage:e,strokeWidth:a}=t,o={background:n,height:h(a)},r={width:`${e}%`,background:c.value};return s("div",{class:i(),style:o},[s("span",{class:i("portion",{inactive:t.inactive}),style:r},null),d()])}}});const C=f(S);export{C as P};
