import{r,h as o,H as e}from"./p-a6030c6e.js";const i=":host{display:block}.progress_bar{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;border-radius:32px;border:1px solid var(--color-content-disable, #636363);margin-bottom:4px}.progress_bar.size_small{height:8px}.progress_bar.size_small .bar_behind .progress{border-radius:1px}.progress_bar.size_default{height:16px}.progress_bar.size_default .bar_behind .progress{border-radius:2px}.progress_bar .bar_behind{position:absolute;inset:0.5px 1px 1px 0.5px;border-radius:16px;overflow:hidden}.progress_bar .bar_behind .progress{position:absolute;height:100%;-webkit-transition:all 0.3s;transition:all 0.3s;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-delay:0s;transition-delay:0s;overflow:hidden}.progress_bar .bar_behind .progress.color_default{background-color:#1968F0}.progress_bar .bar_behind .progress.color_positive{background-color:#35DE90}.progress_bar .bar_behind .progress.color_information{background-color:#FBCF23}.progress_bar .bar_behind .progress.color_warning{background-color:#E60F0F}.progress_bar .bar_behind .progress .loading{position:absolute;left:-16px;width:calc(100% + 16px);height:100%;background:rgb(255, 255, 255);background:-webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), color-stop(75%, rgba(255, 255, 255, 0)), color-stop(75%, rgba(0, 0, 0, 0.26)));background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 75%, rgba(0, 0, 0, 0.26) 75%);background-size:4px;-webkit-transform:skewX(-15deg);transform:skewX(-15deg);-webkit-animation-name:load;animation-name:load;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.typo_progress{color:var(--color-content-default, #454545)}@-webkit-keyframes load{from{left:-16px}to{left:0}}@keyframes load{from{left:-16px}to{left:0}}";const a=i;const t=class{constructor(o){r(this,o);this.percent=0;this.size="default";this.color="default";this.text="";this.dataTest=null}render(){const r={width:`${this.percent?this.percent>100?100:this.percent:0}%`};return o(e,{key:"97e32c53449517cf33a2ac4134da3478d15e7882"},o("div",{key:"e20cfca1eaae406395c5ffe8b507762f34e749c8",class:{progress_bar:true,[`size_${this.size}`]:true},"data-test":this.dataTest},o("div",{key:"b4846c6ce07c31799c6fa817f2a405199689ca9a",class:{bar_behind:true}},o("div",{key:"3630c05d04334985a30aab0026c946778ec908ef",class:{progress:true,[`color_${this.color}`]:true},style:r}))),this.text&&o("div",{key:"443f3a87bdedbc306d9e40527f5fce4082fcee87",class:{typo_progress:true}},o("bds-typo",{key:"d8a50930f0b19fda1974d4e032a0202af2a8a018",variant:"fs-14"},this.text)))}};t.style=a;export{t as bds_progress_bar};
//# sourceMappingURL=p-973b3085.entry.js.map