import{Tc as k,Uc as F,nd as L,pd as T}from"./chunk-ATD4AEXQ.js";import{$a as S,$c as h,Ec as w,Fb as y,Gb as E,Hb as _,Ka as i,Kc as x,Qb as m,Sb as f,Ta as v,Ua as I,Xb as b,bd as V,da as C,fc as B,gc as M,ja as r,ka as l,nb as u,ob as a,pb as c,qb as d,xb as g,zb as p}from"./chunk-BXH3QC5E.js";var j=["firstButton"],D=(()=>{class n{buttonsLabels;buttonsIcons;disabled=!1;buttonSelected=new S;firstButton;currentSelectedButtonIndex=0;onButtonSelect(e){this.buttonSelected.emit(e),this.currentSelectedButtonIndex=e}isButtonSelected(e){return this.currentSelectedButtonIndex===e}getButtonClass(e){return!this.disabled&&this.isButtonSelected(e)?"abs-button-selected":"abs-button-unselected"}setFocus(){this.firstButton.focus()}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=v({type:n,selectors:[["abs-mutual-exclusion-buttons"]],viewQuery:function(o,t){if(o&1&&y(j,5),o&2){let s;E(s=_())&&(t.firstButton=s.first)}},inputs:{buttonsLabels:"buttonsLabels",buttonsIcons:"buttonsIcons",disabled:"disabled"},outputs:{buttonSelected:"buttonSelected"},standalone:!1,decls:10,vars:14,consts:[["firstButton",""],[1,"mutual-exclusion-buttons-wrapper"],["mat-flat-button","","color","primary",3,"click","disabled","ngClass"],[3,"svgIcon"]],template:function(o,t){if(o&1){let s=g();a(0,"div",1)(1,"button",2,0),p("click",function(){return r(s),l(t.onButtonSelect(0))}),d(3,"mat-icon",3),m(4),B(5,"translate"),c(),a(6,"button",2),p("click",function(){return r(s),l(t.onButtonSelect(1))}),d(7,"mat-icon",3),m(8),B(9,"translate"),c()()}o&2&&(i(),u("disabled",t.disabled)("ngClass",t.getButtonClass(0)),i(2),u("svgIcon",b(t.buttonsIcons[0])),i(),f(" ",M(5,10,t.buttonsLabels[0])," "),i(2),u("disabled",t.disabled)("ngClass",t.getButtonClass(1)),i(),u("svgIcon",b(t.buttonsIcons[1])),i(),f(" ",M(9,12,t.buttonsLabels[1])," "))},dependencies:[w,k,L,h],encapsulation:2})}return n})();var q=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=I({type:n});static \u0275inj=C({imports:[x,F,T,V]})}return n})();export{D as a,q as b};
