import{D as y}from"./chunk-YLQIMX27.js";import{$a as m,Fa as r,Gc as O,Hb as g,Ib as p,La as d,Ra as u,Rb as _,Sa as f,Tb as x,_a as v,cb as b,gc as s,ib as a,jb as i,kb as C,tc as P,vc as h,xb as M}from"./chunk-4JM6MIZ5.js";import{i as c}from"./chunk-QJQRWPYR.js";var w=(e,t,l)=>({red:e,green:t,small:l}),I=e=>({width:e});function T(e,t){if(e&1&&(a(0,"span",4),g(1),i()),e&2){let l=M();r(),p(l.maxFormatted)}}var A=(()=>{let t=class t{value;label;valueFormatted;maxFormatted;size="normal";max=100;min=0;theme="main";percentage(){return this.value*100/this.max}};c(t,"\u0275fac",function(o){return new(o||t)}),c(t,"\u0275cmp",d({type:t,selectors:[["my-progress-bar"]],inputs:{value:[2,"value","value",s],label:"label",valueFormatted:"valueFormatted",maxFormatted:"maxFormatted",size:"size",max:[2,"max","max",s],min:[2,"min","min",s],theme:"theme"},features:[u],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(o,n){o&1&&(a(0,"div",0),C(1,"div",1),a(2,"span",2),g(3),i(),f(4,T,2,1,"span",3),i()),o&2&&(m("ngbTooltip",n.label)("ngClass",x(9,w,n.theme==="red",n.theme==="green",n.size==="small")),v("aria-valuenow",n.value)("aria-valuemax",n.max)("aria-label",n.label),r(),b(_(13,I,n.percentage()+"%")),r(2),p(n.valueFormatted),r(),m("ngIf",n.maxFormatted))},dependencies:[O,P,h,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{A as a};
/**i18n:68865f44f2a527c44cf5136a17c76a0ff8308c2bae5c7c8d50070a5fb9847c44*/
//# sourceMappingURL=chunk-FQ5HIUWR.js.map
