import{Cs as q5,Eo as kb,Gr as Va,Ia as f$,Pa as eh,Q as EV,Qi as bV,Za as gx,Zo as n5,_s as ph,as as oA,c as A$,ec as th,ho as j$,is as o5,it as FB,p as Au,pr as S3,vc as wp}from"./chunk-B_pj7Jpm.js";import{u as Jp}from"./chunk-CR0lnyBO.js";var O=(n,a,r)=>({red:n,green:a,small:r});var N=n=>({width:n});function F(n,a){if(n&1&&(wp(0,`span`,3),j$(1),kb()),n&2){let r=f$();FB(),oA(r.maxFormatted())}}var x=class n{value=ph.required({transform:q5});label=ph.required();valueFormatted=ph.required();maxFormatted=ph(void 0);size=ph(`normal`);max=ph(100,{transform:q5});min=ph(0,{transform:q5});theme=ph(`main`);percentage(){return this.value()*100/this.max()}static ɵfac=function(r){return new(r||n)};static ɵcmp=Va({type:n,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(r,e){r&1&&(wp(0,`div`,0),th(1,`div`,1),wp(2,`span`,2),j$(3),kb(),EV(4,F,2,1,`span`,3),kb()),r&2&&(gx(`ngbTooltip`,e.label())(`ngClass`,o5(9,O,e.theme()===`red`,e.theme()===`green`,e.size()===`small`)),eh(`aria-valuenow`,e.value())(`aria-valuemax`,e.max())(`aria-label`,e.label()),FB(),A$(n5(13,N,e.percentage()+`%`)),FB(2),oA(e.valueFormatted()),FB(),bV(e.maxFormatted()?4:-1))},dependencies:[Au,S3,Jp],styles:[`.progress-container[_ngcontent-%COMP%]{background-color:var(--%NS%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(--%NS%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(--%NS%bg);background-color:var(--%NS%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(--%NS%primary-100)}`],changeDetection:1})};export{x as t};
//# debugId=cb25f2d2-a864-5e17-b0b8-1b8cc9d7197c
//# sourceMappingURL=chunk-CmVGojCQ.js.map