import{a as T,b as M,c as B}from"./chunk-WO7JRFGE.js";import{Tc as I,Uc as S}from"./chunk-ATD4AEXQ.js";import{$a as c,Ka as n,Kc as h,Qb as s,Sb as f,Ta as g,Ua as r,Xb as b,da as l,nb as a,ob as d,pb as u,qb as p,zb as m}from"./chunk-BXH3QC5E.js";var k=(()=>{class t{defaultStateIcon;toggleStateIcon;buttonLabel="";disabled;checked;toggleAction=new c;onChange(){this.checked=!this.checked,this.toggleAction.emit(this.checked)}getStateIcon(){return this.checked?this.toggleStateIcon:this.defaultStateIcon}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=g({type:t,selectors:[["abs-button-toggle"]],inputs:{defaultStateIcon:"defaultStateIcon",toggleStateIcon:"toggleStateIcon",buttonLabel:"buttonLabel",disabled:"disabled",checked:"checked"},outputs:{toggleAction:"toggleAction"},standalone:!1,decls:4,vars:6,consts:[["name","buttonToggle","aria-label","Button toggle",1,"toggle-group-wrapper-single",3,"hideSingleSelectionIndicator"],["disableRipple","","data-cy","matButtonToggle",1,"abs-button-toggle",3,"change","disabled","checked"],["color","primary","aria-label","buttonToggleIcon",3,"svgIcon"]],template:function(e,o){e&1&&(d(0,"mat-button-toggle-group",0)(1,"mat-button-toggle",1),m("change",function(){return o.onChange()}),p(2,"mat-icon",2),s(3),u()()),e&2&&(a("hideSingleSelectionIndicator",!0),n(),a("disabled",o.disabled)("checked",o.checked),n(),a("svgIcon",b(o.getStateIcon())),n(),f(" ",o.buttonLabel," "))},dependencies:[T,M,I],encapsulation:2})}return t})();var v=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=r({type:t});static \u0275inj=l({imports:[h,B,S]})}return t})();export{k as a,v as b};
