import{Tc as h,Uc as A,Xc as D,b as v,ld as F,nd as L,pd as N}from"./chunk-ATD4AEXQ.js";import{$a as k,Bb as e,Ec as E,Fb as T,Gb as M,Hb as w,Ka as c,Kc as V,Qb as u,Rb as d,Ta as I,Ua as S,Xb as y,da as B,hb as p,ib as C,ja as b,ka as _,nb as a,ob as s,pb as r,qb as x,xb as f,zb as g}from"./chunk-BXH3QC5E.js";var R=["button"];function O(o,l){if(o&1&&(s(0,"mat-icon",5),u(1),r()),o&2){let t=e(2);a("ngClass",t.disabled?"mat-icon-disabled":"mat-icon-enabled"),c(),d(t.customIcon)}}function j(o,l){if(o&1&&x(0,"mat-icon",6),o&2){let t=e(2);a("svgIcon",t.customSvg)("ngClass",t.disabled?"mat-icon-disabled":"mat-icon-enabled")}}function q(o,l){if(o&1){let t=f();s(0,"button",4,0),g("click",function(){b(t);let i=e();return _(i.onClick())}),p(2,O,2,2,"mat-icon",5)(3,j,1,2,"mat-icon",6),s(4,"span",7),u(5),r()()}if(o&2){let t=e();a("color",y(t.color))("disabled",t.disabled)("ngClass",t.customClass),c(2),C(t.customIcon?2:t.customSvg?3:-1),c(3),d(t.customLabel)}}function K(o,l){if(o&1&&(s(0,"mat-icon",5),u(1),r()),o&2){let t=e(2);a("ngClass",t.disabled?"mat-icon-disabled":"mat-icon-enabled"),c(),d(t.customIcon)}}function U(o,l){if(o&1&&x(0,"mat-icon",6),o&2){let t=e(2);a("svgIcon",t.customSvg)("ngClass",t.disabled?"mat-icon-disabled":"mat-icon-enabled")}}function z(o,l){if(o&1){let t=f();s(0,"button",8,0),g("click",function(){b(t);let i=e();return _(i.onClick())}),p(2,K,2,2,"mat-icon",5)(3,U,1,2,"mat-icon",6),s(4,"span",7),u(5),r()()}if(o&2){let t=e();a("color",y(t.color))("disabled",t.disabled)("ngClass",t.customClass),c(2),C(t.customIcon?2:t.customSvg?3:-1),c(3),d(t.customLabel)}}function G(o,l){if(o&1&&(s(0,"mat-icon",5),u(1),r()),o&2){let t=e(2);a("ngClass",t.disabled?"mat-icon-disabled":"mat-icon-enabled"),c(),d(t.customIcon)}}function H(o,l){if(o&1&&x(0,"mat-icon",6),o&2){let t=e(2);a("svgIcon",t.customSvg)("ngClass",t.disabled?"mat-icon-disabled":"mat-icon-enabled")}}function J(o,l){if(o&1){let t=f();s(0,"button",9,0),g("click",function(){b(t);let i=e();return _(i.onClick())}),p(2,G,2,2,"mat-icon",5)(3,H,1,2,"mat-icon",6),r()}if(o&2){let t=e();a("color",y(t.color))("disabled",t.disabled)("ngClass",t.customClass),c(2),C(t.customIcon?2:t.customSvg?3:-1)}}var P=(()=>{class o{customIcon;customSvg;customLabel;customClass;disabled=!1;color="primary";type=v.RAISED;clickAction=new k;button;buttonType=v;onClick(){this.clickAction.emit()}setFocus(){this.button.focus()}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=I({type:o,selectors:[["abs-button"]],viewQuery:function(n,i){if(n&1&&T(R,5),n&2){let m;M(m=w())&&(i.button=m.first)}},inputs:{customIcon:"customIcon",customSvg:"customSvg",customLabel:"customLabel",customClass:"customClass",disabled:"disabled",color:"color",type:"type"},outputs:{clickAction:"clickAction"},standalone:!1,decls:3,vars:1,consts:[["button",""],["mat-raised-button","","type","button","data-cy","basicButton",3,"color","disabled","ngClass"],["mat-stroked-button","","type","button",3,"color","disabled","ngClass"],["mat-icon-button","","type","button",3,"color","disabled","ngClass"],["mat-raised-button","","type","button","data-cy","basicButton",3,"click","color","disabled","ngClass"],[1,"abs-btn-icon",3,"ngClass"],[1,"abs-btn-icon",3,"svgIcon","ngClass"],[1,"abs-button-label"],["mat-stroked-button","","type","button",3,"click","color","disabled","ngClass"],["mat-icon-button","","type","button",3,"click","color","disabled","ngClass"]],template:function(n,i){if(n&1&&p(0,q,6,6,"button",1)(1,z,6,6,"button",2)(2,J,4,5,"button",3),n&2){let m;C((m=i.type)===i.buttonType.RAISED?0:m===i.buttonType.STROKED?1:m===i.buttonType.ICON?2:-1)}},dependencies:[E,h,L,F],encapsulation:2})}return o})();var W=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275mod=S({type:o});static \u0275inj=B({imports:[V,A,N,D]})}return o})();export{P as a,W as b};
