import{$ as v,Ag as L,Db as b,Eb as M,Ja as l,Qb as E,Qf as w,Rf as V,Ta as a,Ua as c,V as C,Va as p,Za as S,_b as _,aa as I,ab as m,bg as k,cg as F,da as u,ea as r,fb as d,jb as g,kb as y,la as h,lb as x,pb as f,rb as B,ta as i,xg as T}from"./chunk-O6GKIPTD.js";var j=["firstButton"],D=(()=>{class n{constructor(){this.buttonSelected=new h,this.currentSelectedButtonIndex=0}onButtonSelect(t){this.buttonSelected.emit(t),this.currentSelectedButtonIndex=t}isButtonSelected(t){return this.currentSelectedButtonIndex===t}getButtonClass(t){return this.isButtonSelected(t)?"abs-button-selected":"abs-button-unselected"}setFocus(){this.firstButton.focus()}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275cmp=v({type:n,selectors:[["abs-mutual-exclusion-buttons"]],viewQuery:function(o,e){if(o&1&&g(j,5),o&2){let s;y(s=x())&&(e.firstButton=s.first)}},inputs:{buttonsLabels:"buttonsLabels",buttonsIcons:"buttonsIcons"},outputs:{buttonSelected:"buttonSelected"},decls:10,vars:10,consts:[["firstButton",""],[1,"mutual-exclusion-buttons-wrapper"],["mat-flat-button","","color","primary",3,"click","ngClass"],[3,"svgIcon"]],template:function(o,e){if(o&1){let s=S();a(0,"div",1)(1,"button",2,0),m("click",function(){return u(s),r(e.onButtonSelect(0))}),p(3,"mat-icon",3),f(4),b(5,"translate"),c(),a(6,"button",2),m("click",function(){return u(s),r(e.onButtonSelect(1))}),p(7,"mat-icon",3),f(8),b(9,"translate"),c()()}o&2&&(i(),l("ngClass",e.getButtonClass(0)),i(2),d("svgIcon",e.buttonsIcons[0]),i(),B(" ",M(5,6,e.buttonsLabels[0])," "),i(2),l("ngClass",e.getButtonClass(1)),i(),d("svgIcon",e.buttonsIcons[1]),i(),B(" ",M(9,8,e.buttonsLabels[1])," "))},dependencies:[E,k,T,w],encapsulation:2})}}return n})();var q=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=I({type:n})}static{this.\u0275inj=C({imports:[_,F,L,V]})}}return n})();export{D as a,q as b};
