import{D as y}from"./chunk-XYUXA3LT.js";import{Bb as g,Ca as o,Cb as p,Ec as F,Kb as _,Ma as u,Mb as x,Na as f,Ob as h,Ua as v,Va as m,Ya as b,ba as d,cb as i,db as s,eb as C,ec as l,rb as M,rc as O,tc as P}from"./chunk-X3RCWQ3R.js";import{i as e}from"./chunk-SR6RTMQI.js";var I=(n,r,c)=>({red:n,green:r,small:c}),z=n=>({width:n});function T(n,r){if(n&1&&(i(0,"span",4),g(1),s()),n&2){let c=M();o(),p(c.maxFormatted)}}var A=(()=>{let r=class r{constructor(){e(this,"value");e(this,"label");e(this,"valueFormatted");e(this,"maxFormatted");e(this,"size","normal");e(this,"max",100);e(this,"min",0);e(this,"theme","main")}percentage(){return this.value*100/this.max}};e(r,"\u0275fac",function(a){return new(a||r)}),e(r,"\u0275cmp",d({type:r,selectors:[["my-progress-bar"]],inputs:{value:[2,"value","value",l],label:"label",valueFormatted:"valueFormatted",maxFormatted:"maxFormatted",size:"size",max:[2,"max","max",l],min:[2,"min","min",l],theme:"theme"},standalone:!0,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(a,t){a&1&&(i(0,"div",0),C(1,"div",1),i(2,"span",2),g(3),s(),f(4,T,2,1,"span",3),s()),a&2&&(m("ngbTooltip",t.label)("ngClass",h(9,I,t.theme==="red",t.theme==="green",t.size==="small")),v("aria-valuenow",t.value)("aria-valuemax",t.max)("aria-label",t.label),o(),b(x(13,z,t.percentage()+"%")),o(2),p(t.valueFormatted),o(),m("ngIf",t.maxFormatted))},dependencies:[F,O,P,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-6FE6LDOJ.css.map */`]}));let n=r;return n})();export{A as a};
/**i18n:3d16453f213eb5db982e7e7dd90631843ac5d3f860726a614777c3e9e3f9b57e*/
//# sourceMappingURL=chunk-BPJDMAWK.js.map
