import{a as M,b as T,c as C}from"./chunk-GSUFMNH2.js";import{ad as I,bd as S}from"./chunk-CBXQYRPM.js";import{Ab as m,Bc as b,Ka as n,Kb as h,Mb as f,cb as i,da as l,ka as r,la as g,mb as u,nb as s,ob as p,vb as d,za as c}from"./chunk-LVXYIJUI.js";var v=(()=>{class t{constructor(){this.buttonLabel="",this.toggleAction=new c}onChange(){this.checked=!this.checked,this.toggleAction.emit(this.checked)}getStateIcon(){return this.checked?this.toggleStateIcon:this.defaultStateIcon}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=r({type:t,selectors:[["abs-button-toggle"]],inputs:{defaultStateIcon:"defaultStateIcon",toggleStateIcon:"toggleStateIcon",buttonLabel:"buttonLabel",disabled:"disabled",checked:"checked"},outputs:{toggleAction:"toggleAction"},decls:4,vars:5,consts:[["name","buttonToggle","aria-label","Button toggle",1,"toggle-group-wrapper-single",3,"hideSingleSelectionIndicator"],["disableRipple","",1,"abs-button-toggle",3,"change","disabled","checked"],["color","primary","aria-label","buttonToggleIcon",3,"svgIcon"]],template:function(e,o){e&1&&(u(0,"mat-button-toggle-group",0)(1,"mat-button-toggle",1),d("change",function(){return o.onChange()}),p(2,"mat-icon",2),h(3),s()()),e&2&&(i("hideSingleSelectionIndicator",!0),n(),i("disabled",o.disabled)("checked",o.checked),n(),m("svgIcon",o.getStateIcon()),n(),f(" ",o.buttonLabel," "))},dependencies:[M,T,I],encapsulation:2})}}return t})();var k=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=g({type:t})}static{this.\u0275inj=l({imports:[b,C,S]})}}return t})();export{v as a,k as b};
