import{Aa as l,ab as s,fb as p,ya as d}from"./chunk-SKPDQO4E.js";var m=`<div class="main-container">
    <ng-container *ngFor="let item of data.items">
        <div [ngStyle]="{'width': item.percentage+'%', 'background-color': item.color, 'height': styleHeight}"></div>
    </ng-container>
</div>`;var f=`.justify-content-center{-webkit-box-pack:center;-moz-box-pack:center;-webkit-flex-pack:center;-ms-flex-pack:center;-moz-justify-content:center;-webkit-justify-content:center;justify-content:center}.justify-content-flex-end{-webkit-box-pack:end;-moz-box-pack:end;-webkit-flex-pack:end;-ms-flex-pack:end;-moz-justify-content:flex-end;-webkit-justify-content:flex-end;justify-content:flex-end}.card-footer{padding:.28rem .7rem}.alert{font-size:.756rem}@media screen and (min-width: 992px){.modal-xxl{max-width:1640px}}@media screen and (min-width: 1200px){.modal-xxxl{max-width:1860px}}.modal-fs{max-width:none;position:absolute;margin:auto;inset:16px;height:100vh;display:flex}.btn-link{text-decoration:none}.btn-link:hover{text-decoration:underline}.invalid-feedback{margin-top:0!important;font-size:.672rem!important}.main-container{display:-webkit-box;display:-moz-box;display:-webkit-flexbox;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-moz-box-orient:horizontal;-webkit-flex-direction:row;-moz-flex-direction:row;-ms-flex-direction:row;flex-direction:row}
`;var g=function(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},x=class{data;styleHeight="6px";constructor(){}ngOnInit(){this.render()}ngOnChanges(e){e.data.isFirstChange()||this.render()}render(){let e=0;this.data.items.forEach(t=>{e+=t.value}),this.data.items.forEach(t=>{t.percentage||(t.percentage=100*t.value/e)})}ngOnDestroy(){}static ctorParameters=()=>[];static propDecorators={data:[{type:l}],styleHeight:[{type:l}]}};x=g([d({selector:"armon-percentage-graph",template:m,standalone:!0,imports:[s,p],styles:[f]})],x);export{x as a};
