import{r as registerInstance,h,H as Host}from"./index-102043e0.js";var dvnLinearProgressCss="dvn-linear-progress{}dvn-linear-progress progress{border-radius:50vh}dvn-linear-progress progress::-webkit-progress-bar{background-color:var(--color-disabled);border-radius:50vh}dvn-linear-progress span{margin-left:var(--spacing-unit);font-Weight:100;color:var(--color-text-secondary)}dvn-linear-progress.large{font-size:var(--font-size-large)}dvn-linear-progress.medium{font-size:var(--font-size-medium)}dvn-linear-progress.small{font-size:var(--font-size-small)}dvn-linear-progress .neutral::-webkit-progress-value{background-color:var(--color-neutral);border-radius:50vh}dvn-linear-progress .primary::-webkit-progress-value{background-color:var(--color-primary);border-radius:50vh}dvn-linear-progress .secondary{color:var(--color-secondary)}dvn-linear-progress .secondary::-webkit-progress-value{background-color:var(--color-secondary);border-radius:50vh}dvn-linear-progress .warning::-webkit-progress-value{background-color:var(--color-warning);border-radius:50vh}dvn-linear-progress .danger{color:var(--color-danger)}dvn-linear-progress .danger::-webkit-progress-value{background-color:var(--color-danger);border-radius:50vh}dvn-linear-progress .stroke-color::-webkit-progress-value{background-color:var(--stroke-color);border-radius:50vh}";var tintsToIcons={success:"uil-check-circle",error:"uil-exclamation-octagon"};var getIconSize=function(r){if(r===void 0){r="medium"}switch(r){case"large":return 18;case"small":return 14;case"medium":default:return 16}};var LinearProgress=function(){function r(r){registerInstance(this,r);this.showPercent=false;this.scale="medium";this.tint="primary"}r.prototype.render=function(){var r,s;var e=getIconSize(this.scale);var o=this.status==="error"?"danger":this.status==="success"?"secondary":this.tint;var a={};var n;if(this.strokeColor){a["--stroke-color"]=this.strokeColor}if(this.status){n=tintsToIcons[this.status]}return h(Host,{class:(r={},r[this.scale]=true,r["d-flex"]=true,r["align-items-center"]=true,r)},h("progress",{style:a,class:(s={},s[o]=!this.strokeColor,s["stroke-color"]=!!this.strokeColor,s),max:"100",value:this.status==="success"?100:this.percent}),this.showPercent&&!this.status&&h("span",null,this.percent," %"),this.status&&h("span",{class:{danger:this.status==="error",secondary:this.status!=="error"}},h("dvn-icon",{iconName:n,class:"pr-2",size:e})))};return r}();LinearProgress.style=dvnLinearProgressCss;export{LinearProgress as dvn_linear_progress};