import{D as F}from"./chunk-CKNOD7HV.js";import{Cb as g,Da as o,Db as p,Fc as y,Lb as _,Na as u,Nb as P,Oa as f,Pb as x,Va as v,Wa as m,Za as b,ba as d,db as i,eb as s,fb as C,fc as l,sb as M,sc as h,uc as O}from"./chunk-QXV2GR6R.js";import{i as e}from"./chunk-JJ4RDTEF.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 B=(()=>{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",x(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(P(13,z,t.percentage()+"%")),o(2),p(t.valueFormatted),o(),m("ngIf",t.maxFormatted))},dependencies:[y,h,O,F],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-PPNV546E.css.map */`]}));let n=r;return n})();export{B as a};
/**i18n:224bcada6943fe8b17ea60808c2d370cec9507c3bd670ebe71692d099a3befa1*/
//# sourceMappingURL=chunk-SFESX65L.js.map
