import{a as b,b as S,c as M}from"./chunk-6B2URCYD.js";import{$ as g,Ja as i,Pf as f,Qf as I,Ta as s,Ua as u,V as r,Va as p,Zb as h,aa as l,ab as d,fb as m,la as c,ta as n}from"./chunk-PAINK2EC.js";var C=(()=>{class t{constructor(){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=g({type:t,selectors:[["abs-button-toggle"]],inputs:{defaultStateIcon:"defaultStateIcon",toggleStateIcon:"toggleStateIcon",disabled:"disabled",checked:"checked"},outputs:{toggleAction:"toggleAction"},decls:3,vars:4,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&&(s(0,"mat-button-toggle-group",0)(1,"mat-button-toggle",1),d("change",function(){return o.onChange()}),p(2,"mat-icon",2),u()()),e&2&&(i("hideSingleSelectionIndicator",!0),n(),i("disabled",o.disabled)("checked",o.checked),n(),m("svgIcon",o.getStateIcon()))},dependencies:[b,S,f],encapsulation:2})}}return t})();var B=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=l({type:t})}static{this.\u0275inj=r({imports:[h,M,I]})}}return t})();export{C as a,B as b};
