import{Aa as r,Ba as d,Te as O,ab as m,bb as f,dd as h,ha as p,mg as g,ya as a}from"./chunk-SKPDQO4E.js";var _=`<div class="col-12 mb-2">\r
    <label *ngIf="title && title!=''" class="report-form-label">{{title | translate}}</label>\r
    <select [ngModel]="selectedOption" (ngModelChange)="changedSelectedOption($event)"\r
        class="form-select form-select-sm">\r
        <option *ngFor="let option of options" [ngValue]="option">{{option.i18nName | translate}}</option>\r
    </select>\r
</div>`;var u="";var v=function(n,e,o,l){var i=arguments.length,t=i<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,o):l,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,o,l);else for(var c=n.length-1;c>=0;c--)(s=n[c])&&(t=(i<3?s(t):i>3?s(e,o,t):s(e,o))||t);return i>3&&t&&Object.defineProperty(e,o,t),t},C=class{title="";options=[];selectedIndex=0;filterChanged=new p;optionList;selectedOption;constructor(){}ngOnInit(){this.selectedOption=this.options[this.selectedIndex]}ngOnDestroy(){}ngOnChanges(e){e.selectedIndex&&(this.selectedOption=this.options[this.selectedIndex])}changedSelectedOption(e){this.selectedOption=e,this.filterChanged.emit(this.selectedOption)}static ctorParameters=()=>[];static propDecorators={title:[{type:r}],options:[{type:r}],selectedIndex:[{type:r}],filterChanged:[{type:d}]}};C=v([a({selector:"armon-pacs-filter-select",template:_,standalone:!0,imports:[f,O,g,m,h],styles:[u]})],C);export{C as a};
