import{G as F}from"./chunk-C4Z4PZTH.js";import{Da as r,Db as C,Gc as m,La as d,Oc as P,Qb as _,Sb as c,Tb as p,Zc as O,_a as u,ab as v,bb as b,gb as f,gc as h,hb as i,ib as s,ic as x,jb as M,xc as o}from"./chunk-DWEAL4OJ.js";import{i as l}from"./chunk-YM6OINSR.js";var w=(e,t,g)=>({red:e,green:t,small:g}),D=e=>({width:e});function N(e,t){if(e&1&&(i(0,"span",3),c(1),s()),e&2){let g=C();r(),p(g.maxFormatted())}}var I=(()=>{let t=class t{value=o.required({transform:m});label=o.required();valueFormatted=o.required();maxFormatted=o(void 0);size=o("normal");max=o(100,{transform:m});min=o(0,{transform:m});theme=o("main");percentage(){return this.value()*100/this.max()}};l(t,"\u0275fac",function(a){return new(a||t)}),l(t,"\u0275cmp",d({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"],[1,"max"]],template:function(a,n){a&1&&(i(0,"div",0),M(1,"div",1),i(2,"span",2),c(3),s(),v(4,N,2,1,"span",3),s()),a&2&&(f("ngbTooltip",n.label())("ngClass",x(9,w,n.theme()==="red",n.theme()==="green",n.size()==="small")),u("aria-valuenow",n.value())("aria-valuemax",n.max())("aria-label",n.label()),r(),_(h(13,D,n.percentage()+"%")),r(2),p(n.valueFormatted()),r(),b(n.maxFormatted()?4:-1))},dependencies:[O,P,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-DRFNHFWW.css.map */`]}));let e=t;return e})();export{I as a};
/**i18n:5a85df092a135682c90bae008e37ec28160e04e5f445e29af2927333ba91ffa1*/
//# sourceMappingURL=chunk-3SS442VG.js.map
