import{C as Au,Fn as MV,Gn as NV,Na as eh,X as D$,Xa as g5,Zi as aA,Zs as th,_s as ph,eo as h5,gt as Ex,k as Bb,lo as i3,n as $B,nn as J$,nr as O3,s as $a,vo as j$,yc as wp}from"./chunk-b0nJCs5_.js";import{u as Jp}from"./chunk-DcB590Yc.js";var O=(n,a,r)=>({red:n,green:a,small:r});var N=n=>({width:n});function F(n,a){if(n&1&&(wp(0,`span`,3),J$(1),Bb()),n&2){let r=D$();$B(),aA(r.maxFormatted())}}var x=class n{value=ph.required({transform:i3});label=ph.required();valueFormatted=ph.required();maxFormatted=ph(void 0);size=ph(`normal`);max=ph(100,{transform:i3});min=ph(0,{transform:i3});theme=ph(`main`);percentage(){return this.value()*100/this.max()}static ɵfac=function(r){return new(r||n)};static ɵcmp=$a({type:n,selectors:[[`my-progress-bar`]],inputs:{value:[1,`value`],label:[1,`label`],valueFormatted:[1,`valueFormatted`],maxFormatted:[1,`maxFormatted`],size:[1,`size`],max:[1,`max`],min:[1,`min`],theme:[1,`theme`]},decls:5,vars:15,consts:[[`role`,`progressbar`,`tabindex`,`0`,`aria-valuemin`,`0`,1,`progress-container`,3,`ngbTooltip`,`ngClass`],[1,`progress-bar`],[1,`value`],[1,`max`]],template:function(r,e){r&1&&(wp(0,`div`,0),th(1,`div`,1),wp(2,`span`,2),J$(3),Bb(),NV(4,F,2,1,`span`,3),Bb()),r&2&&(Ex(`ngbTooltip`,e.label())(`ngClass`,g5(9,O,e.theme()===`red`,e.theme()===`green`,e.size()===`small`)),eh(`aria-valuenow`,e.value())(`aria-valuemax`,e.max())(`aria-label`,e.label()),$B(),j$(h5(13,N,e.percentage()+`%`)),$B(2),aA(e.valueFormatted()),$B(),MV(e.maxFormatted()?4:-1))},dependencies:[Au,O3,Jp],styles:[`.progress-container[_ngcontent-%COMP%]{background-color:var(--%NS%bg-secondary-500);display:flex;overflow:hidden;height:36px;font-size:.85rem;font-weight:600;border-radius:.25rem;position:relative}.progress-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:absolute;color:var(--%NS%fg-400);line-height:36px;margin:0 12px}.progress-container[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{left:0}.progress-container[_ngcontent-%COMP%]   .max[_ngcontent-%COMP%]{right:0}.progress-container[_ngcontent-%COMP%]   .progress-bar[_ngcontent-%COMP%]{font-weight:600;color:var(--%NS%bg);background-color:var(--%NS%primary);display:flex;flex-direction:column;justify-content:center;text-align:center;white-space:nowrap;transition:width .6s ease}.progress-container.red[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .progress-container.green[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff}.progress-container.red[_ngcontent-%COMP%]   .progress-bar[_ngcontent-%COMP%]{background-color:#dc3545}.progress-container.green[_ngcontent-%COMP%]   .progress-bar[_ngcontent-%COMP%]{background-color:#198754}.progress-container.small[_ngcontent-%COMP%]{height:1rem;font-weight:400;font-size:.75rem}.progress-container.small[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin:0 5px;line-height:normal}.progress-container[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none!important}.progress-container[_ngcontent-%COMP%]:focus, .progress-container[_ngcontent-%COMP%]:focus-visible{box-shadow:0 0 0 .2rem var(--%NS%primary-100)}`],changeDetection:1})};export{x as t};
//# debugId=45ec72b2-9d4d-5830-800c-79c856dbbaed
//# sourceMappingURL=chunk-x3pAkggI2.js.map