import {L as qp,O as J$,b as Pa,U as cl,V as w3,ch as tf,s as sp,e as Pp,a6 as KV,u as ub,m as _2,a3 as B0,fg as f$,cs as Lp,z as zB,fh as FV,a4 as l$,ak as wx,A as w2,o as bV}from'./main-BiUBeaMj.js';var y=(e,c,o)=>({red:e,green:c,small:o}),F=e=>({width:e});function D(e,c){if(e&1&&(sp(0,"span",3),KV(1),ub()),e&2){let o=bV();zB(),wx(o.maxFormatted());}}var B=(()=>{class e{value=qp.required({transform:J$});label=qp.required();valueFormatted=qp.required();maxFormatted=qp(void 0);size=qp("normal");max=qp(100,{transform:J$});min=qp(0,{transform:J$});theme=qp("main");percentage(){return this.value()*100/this.max()}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=Pa({type:e,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&&(sp(0,"div",0),Pp(1,"div",1),sp(2,"span",2),KV(3),ub(),_2(4,D,2,1,"span",3),ub()),a&2&&(B0("ngbTooltip",n.label())("ngClass",f$(9,y,n.theme()==="red",n.theme()==="green",n.size()==="small")),Lp("aria-valuenow",n.value())("aria-valuemax",n.max())("aria-label",n.label()),zB(),FV(l$(13,F,n.percentage()+"%")),zB(2),wx(n.valueFormatted()),zB(),w2(n.maxFormatted()?4:-1));},dependencies:[cl,w3,tf],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)}"],changeDetection:1})}return e})();/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{B};//# sourceMappingURL=chunk-C05w3Nns.js.map
