import{$ as E,Fb as v,Ha as l,Ja as o,Pb as R,Pf as Q,Qf as O,Rb as A,Sb as D,Sf as j,Ta as s,Tb as F,Ua as m,V as w,Va as C,Wa as u,Xa as _,Za as f,Zb as L,aa as T,ab as x,cb as i,da as d,ea as g,fb as b,jb as M,jg as q,kb as V,kc as B,la as k,lb as N,lg as K,mg as U,ob as y,pb as p,qb as I,rb as S,ta as c}from"./chunk-PAINK2EC.js";var G=["button"];function H(t,r){if(t&1&&(s(0,"mat-icon",7),p(1),m()),t&2){let e=i(2);o("ngClass",e.disabled?"mat-icon-disabled":"mat-icon-enabled"),c(),I(e.customIcon)}}function J(t,r){if(t&1&&C(0,"mat-icon",9),t&2){let e=i(3);o("svgIcon",e.customSvg)("ngClass",e.disabled?"mat-icon-disabled":"mat-icon-enabled")}}function P(t,r){if(t&1&&l(0,J,1,2,"mat-icon",8),t&2){let e=i(2);o("ngIf",e.customSvg)}}function W(t,r){if(t&1){let e=f();u(0),s(1,"button",4,0),x("click",function(){d(e);let a=i();return g(a.onClick())}),l(3,H,2,2,"mat-icon",5)(4,P,1,1,"ng-template",null,1,v),s(6,"span",6),p(7),m()(),_()}if(t&2){let e=y(5),n=i();c(),b("color",n.color),o("disabled",n.disabled)("ngClass",n.customClass),c(2),o("ngIf",n.customIcon)("ngIfElse",e),c(4),S(" ",n.customLabel," ")}}function X(t,r){if(t&1&&(s(0,"mat-icon",7),p(1),m()),t&2){let e=i(2);o("ngClass",e.disabled?"mat-icon-disabled":"mat-icon-enabled"),c(),I(e.customIcon)}}function Y(t,r){if(t&1&&C(0,"mat-icon",9),t&2){let e=i(3);o("svgIcon",e.customSvg)("ngClass",e.disabled?"mat-icon-disabled":"mat-icon-enabled")}}function Z(t,r){if(t&1&&l(0,Y,1,2,"mat-icon",8),t&2){let e=i(2);o("ngIf",e.customSvg)}}function $(t,r){if(t&1){let e=f();u(0),s(1,"button",10,0),x("click",function(){d(e);let a=i();return g(a.onClick())}),l(3,X,2,2,"mat-icon",5)(4,Z,1,1,"ng-template",null,1,v),s(6,"span",6),p(7),m()(),_()}if(t&2){let e=y(5),n=i();c(),b("color",n.color),o("disabled",n.disabled)("ngClass",n.customClass),c(2),o("ngIf",n.customIcon)("ngIfElse",e),c(4),S(" ",n.customLabel," ")}}function tt(t,r){if(t&1&&(s(0,"mat-icon",7),p(1),m()),t&2){let e=i(2);o("ngClass",e.disabled?"mat-icon-disabled":"mat-icon-enabled"),c(),I(e.customIcon)}}function et(t,r){if(t&1&&C(0,"mat-icon",9),t&2){let e=i(3);o("svgIcon",e.customSvg)("ngClass",e.disabled?"mat-icon-disabled":"mat-icon-enabled")}}function nt(t,r){if(t&1&&l(0,et,1,2,"mat-icon",8),t&2){let e=i(2);o("ngIf",e.customSvg)}}function ot(t,r){if(t&1){let e=f();u(0),s(1,"button",11,0),x("click",function(){d(e);let a=i();return g(a.onClick())}),l(3,tt,2,2,"mat-icon",5)(4,nt,1,1,"ng-template",null,1,v),m(),_()}if(t&2){let e=y(5),n=i();c(),b("color",n.color),o("disabled",n.disabled)("ngClass",n.customClass),c(2),o("ngIf",n.customIcon)("ngIfElse",e)}}var it=(()=>{class t{constructor(){this.disabled=!1,this.color="primary",this.type=B.RAISED,this.clickAction=new k,this.buttonType=B}onClick(){this.clickAction.emit()}setFocus(){this.button.focus()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=E({type:t,selectors:[["abs-button"]],viewQuery:function(n,a){if(n&1&&M(G,5),n&2){let h;V(h=N())&&(a.button=h.first)}},inputs:{customIcon:"customIcon",customSvg:"customSvg",customLabel:"customLabel",customClass:"customClass",disabled:"disabled",color:"color",type:"type"},outputs:{clickAction:"clickAction"},decls:4,vars:4,consts:[["button",""],["displaySvg",""],[3,"ngSwitch"],[4,"ngSwitchCase"],["mat-raised-button","","type","button","data-cy","basicButton",3,"click","color","disabled","ngClass"],["class","abs-btn-icon",3,"ngClass",4,"ngIf","ngIfElse"],[1,"abs-button-label"],[1,"abs-btn-icon",3,"ngClass"],["class","abs-btn-icon",3,"svgIcon","ngClass",4,"ngIf"],[1,"abs-btn-icon",3,"svgIcon","ngClass"],["mat-stroked-button","","type","button",3,"click","color","disabled","ngClass"],["mat-icon-button","","type","button",3,"click","color","disabled","ngClass"]],template:function(n,a){n&1&&(u(0,2),l(1,W,8,6,"ng-container",3)(2,$,8,6,"ng-container",3)(3,ot,6,5,"ng-container",3),_()),n&2&&(o("ngSwitch",a.type),c(),o("ngSwitchCase",a.buttonType.RAISED),c(),o("ngSwitchCase",a.buttonType.STROKED),c(),o("ngSwitchCase",a.buttonType.ICON))},dependencies:[R,A,D,F,Q,q,K],encapsulation:2})}}return t})();var ct=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=T({type:t})}static{this.\u0275inj=w({imports:[L,O,U,j]})}}return t})();export{it as a,ct as b};
