import{p as e,H as s,h as t,t as a}from"./p-CHfEnK-2.js";import{i as r,d as i,t as o}from"./p-94ZtGp9D.js";const l=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}get el(){return this}value=0;size;showLabel=!1;internalValue;valueChanged(e,s){e!==s&&(this.internalValue=e)}componentWillLoad(){this.internalValue=this.value}async componentDidLoad(){if(!r(this.el)){const e=i();o("ifx-progress-bar",await e)}}render(){return t("div",{key:"9a40780198f767960056699c6e4fe860ae6494db",role:"progressbar","aria-valuenow":this.internalValue,"aria-valuemin":"0","aria-valuemax":"100","aria-label":`Progress: ${this.internalValue}%`,class:`progress-bar ${this.size}`},t("div",{key:"9c908c8e8c9283baa9bf556778ff90e1ccc15e90",class:"progress",style:{width:`${this.internalValue}%`}},this.showLabel&&"s"!==this.size&&0!==this.internalValue&&t("span",{key:"005c41e94f986643e1a7f594bb87423a5edb3006",class:"label"},`${this.internalValue}%`)))}static get watchers(){return{value:[{valueChanged:0}]}}static get style(){return":host{display:flex;width:100%}.progress-bar{height:16px;bottom:0;right:0;top:0;left:0;display:flex;height:20px;border-radius:1px;width:100%;overflow:hidden;background-color:#EEEDED;font-family:var(--ifx-font-family)}.progress-bar.s{height:4px}.progress-bar .label{font-style:normal;font-size:0.875rem;font-weight:400;line-height:1.25rem;color:#FFFFFF}.progress-bar .progress{display:flex;align-items:center;justify-content:center;min-width:fit-content;height:100%;background-color:#0A8276;transition:width 0.2s ease}"}},[513,"ifx-progress-bar",{value:[2],size:[1],showLabel:[4,"show-label"],internalValue:[32]},void 0,{value:[{valueChanged:0}]}]);function n(){"undefined"!=typeof customElements&&["ifx-progress-bar"].forEach((e=>{"ifx-progress-bar"===e&&(customElements.get(a(e))||customElements.define(a(e),l))}))}export{l as P,n as d}