import{D as y}from"./chunk-UE3TNESI.js";import{$b as _,Dc as h,Eb as M,Fc as x,Ha as o,Qc as O,Rb as p,Sa as u,Sb as d,Za as f,bc as P,fb as v,gb as g,jb as b,pb as i,qb as s,qc as l,rb as C,ta as r}from"./chunk-XD25PYOU.js";import{i as m}from"./chunk-FPVLB6PA.js";var w=(e,t,c)=>({red:e,green:t,small:c}),T=e=>({width:e});function z(e,t){if(e&1&&(i(0,"span",4),p(1),s()),e&2){let c=M();o(),d(c.maxFormatted())}}var S=(()=>{let t=class t{value=r.required({transform:l});label=r.required();valueFormatted=r.required();maxFormatted=r(void 0);size=r("normal");max=r(100,{transform:l});min=r(0,{transform:l});theme=r("main");percentage(){return this.value()*100/this.max()}};m(t,"\u0275fac",function(a){return new(a||t)}),m(t,"\u0275cmp",u({type:t,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"],["class","max",4,"ngIf"],[1,"max"]],template:function(a,n){a&1&&(i(0,"div",0),C(1,"div",1),i(2,"span",2),p(3),s(),f(4,z,2,1,"span",3),s()),a&2&&(g("ngbTooltip",n.label())("ngClass",P(9,w,n.theme()==="red",n.theme()==="green",n.size()==="small")),v("aria-valuenow",n.value())("aria-valuemax",n.max())("aria-label",n.label()),o(),b(_(13,T,n.percentage()+"%")),o(2),d(n.valueFormatted()),o(),g("ngIf",n.maxFormatted()))},dependencies:[O,h,x,y],styles:[`.progress-container[_ngcontent-%COMP%]{background-color:var(--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(--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(--bg);background-color:var(--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(--primary-100)}
/*# sourceMappingURL=progress-bar.component-GTMTDP3I.css.map */`]}));let e=t;return e})();export{S as a};
/**i18n:fc817608a00477e18624cf8be5badc6c9afae12f0946c7c1548c95cf79bd0e7b*/
//# sourceMappingURL=chunk-LNGVVYAD.js.map
