import{r,h as e,H as s}from"./p-db677b4c.js";const a=":host{--progress-fill-color:var(--pine-color-primary-300);--height-progress-bar:8px;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}@-webkit-keyframes progressBar{0%{width:0}100%{width:100%}}@keyframes progressBar{0%{width:0}100%{width:100%}}.pds-progress{--background-progress-bar:var(--pine-color-neutral-grey-300);--border-radius:var(--pine-border-radius-xs);-ms-flex-align:center;align-items:center;background-color:var(--background-progress-bar);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:var(--height-progress-bar);position:relative;width:100%}:host(.is-animated) progress,:host(.is-animated) progress::-webkit-progress-bar{-webkit-animation:progressBar 3s ease;animation:progressBar 3s ease;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}progress,progress::-webkit-progress-bar{background-color:transparent;border:0;height:var(--height-progress-bar);width:100%}progress::-webkit-progress-value{--background-color:var(--pine-color-primary-300);--border-radius:var(--pine-border-radius-xs);background-color:var(--progress-fill-color, var(--background-color));border-radius:var(--border-radius)}progress::-moz-progress-bar{--background-color:var(--pine-color-primary-300);--border-radius:var(--pine-border-radius-xs);background-color:var(--progress-fill-color, var(--background-color));border-radius:var(--border-radius)}.pds-progress__label{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.pds-progress__percentage{--font-size:var(--pine-font-size-body-sm);--line-height:var(--pine-line-height-sm);--font-weight:var(--pine-font-weight-medium);--margin-inline-start:var(--pine-spacing-md);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);-webkit-margin-start:calc(var(--margin-inline-start) / 2);margin-inline-start:calc(var(--margin-inline-start) / 2)}";const i=a;const o=class{constructor(e){r(this,e);this.animated=false;this.componentId=undefined;this.fillColor=undefined;this.label=undefined;this.percent=0;this.showPercent=false}render(){return e(s,{key:"a20a576a6addcfe01e32b825142aaa18039ccfbb",class:this.animated?{"is-animated":this.animated}:""},e("div",{key:"2d0bb87d5567a4d8d9f8a689ff86fc97f3d94d4f",class:"pds-progress"},e("label",{key:"0d98454dccb11aa0063a70491acb24e7fd72720d",class:"pds-progress__label",htmlFor:this.componentId},this.label),e("progress",{key:"9f3b3c07fe1c5fcdf28a5e104e2c90a4e7d102b2",id:this.componentId,max:"100",style:this.fillColor?{"--progress-fill-color":this.fillColor}:{},value:this.percent})),this.showPercent&&e("div",{class:"pds-progress__percentage"},this.percent,"%"))}};o.style=i;export{o as pds_progress};
//# sourceMappingURL=p-462f2b14.entry.js.map