index-legacy.c5d0ca8d.js 1000 B

1
  1. System.register(["./index-legacy.eb062188.js"],(function(t){"use strict";var e,o,r,n,i,s,a,c;return{setters:[function(t){e=t.t,o=t.v,r=t.z,n=t.d,i=t.y,s=t.U,a=t.c,c=t.D}],execute:function(){const[l,v]=e("progress"),u={color:String,inactive:Boolean,pivotText:String,textColor:String,showPivot:o,pivotColor:String,trackColor:String,strokeWidth:r,percentage:{type:r,default:0,validator:t=>+t>=0&&+t<=100}};var p=n({name:l,props:u,setup(t){const e=i((()=>t.inactive?void 0:t.color)),o=()=>{const{textColor:o,pivotText:r,pivotColor:n,percentage:i}=t,s=null!=r?r:`${i}%`;if(t.showPivot&&s){const r={color:o,left:+i+"%",transform:`translate(-${+i}%,-50%)`,background:n||e.value};return a("span",{style:r,class:v("pivot",{inactive:t.inactive})},[s])}};return()=>{const{trackColor:r,percentage:n,strokeWidth:i}=t,c={background:r,height:s(i)},l={width:`${n}%`,background:e.value};return a("div",{class:v(),style:c},[a("span",{class:v("portion",{inactive:t.inactive}),style:l},null),o()])}}});t("P",c(p))}}}));