import{r,h as s,H as e}from"./p-1ea36ff3.js";const o={success:"uil-check-circle",error:"uil-exclamation-octagon"};let a=class{constructor(s){r(this,s),this.showPercent=!1,this.scale="medium",this.tint="primary"}render(){const r=((r="medium")=>{switch(r){case"large":return 18;case"small":return 14;case"medium":default:return 16}})(this.scale),a="error"===this.status?"danger":"success"===this.status?"secondary":this.tint,n={};let i;return this.strokeColor&&(n["--stroke-color"]=this.strokeColor),this.status&&(i=o[this.status]),s(e,{class:{[this.scale]:!0,"d-flex":!0,"align-items-center":!0}},s("progress",{style:n,class:{[a]:!this.strokeColor,"stroke-color":!!this.strokeColor},max:"100",value:"success"===this.status?100:this.percent}),this.showPercent&&!this.status&&s("span",null,this.percent," %"),this.status&&s("span",{class:{danger:"error"===this.status,secondary:"error"!==this.status}},s("dvn-icon",{iconName:i,class:"pr-2",size:r})))}};a.style="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}";export{a as dvn_linear_progress}