import{b as M,d as E,j as L,t as T}from"./chunk-HKLJ6VPZ.js";import{$b as y,Eb as l,Fb as r,Gb as p,Kb as C,Pb as g,Qb as i,Ua as o,ac as x,bc as B,cc as I,ea as _,fa as d,gb as k,mb as c,na as b,tb as s,xb as f,yc as w,zb as v}from"./chunk-56X5LYJH.js";function P(e,n){if(e&1&&p(0,"i"),e&2){let t=i(2);f(t.iconClass)}}function O(e,n){if(e&1){let t=C();l(0,"a",2),g("click",function(a){_(t);let u=i();return d(u.handleClick(a))}),c(1,P,1,2,"i",3),l(2,"span"),x(3),r()()}if(e&2){let t=i();s("routerLink",t.routerLink)("ngClass",t.class),o(),s("ngIf",t.iconClass),o(2),B(t.title)}}function V(e,n){if(e&1&&p(0,"i"),e&2){let t=i(2);f(t.iconClass)}}function N(e,n){e&1&&p(0,"div",5)}function S(e,n){if(e&1&&(l(0,"span"),x(1),r()),e&2){let t=i(2);o(),I(" ",t.title,"")}}function D(e,n){if(e&1){let t=C();l(0,"button",4),g("click",function(a){_(t);let u=i();return d(u.handleClick(a))}),c(1,V,1,2,"i",3)(2,N,1,0,"div",5)(3,S,2,1,"span"),r()}if(e&2){let t=i();s("ngClass",t.class)("type",t.submit?"submit":"button")("disabled",t.disabled),o(),s("ngIf",t.iconClass),o(),v(t.loading?2:3)}}var h=class e{title="";iconClass;class="";disabled=!1;submit=!1;loading=!1;routerLink;clicked=new b;handleClick(n){n.stopPropagation(),this.clicked.emit()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=k({type:e,selectors:[["app-button"]],inputs:{title:"title",iconClass:"iconClass",class:"class",disabled:"disabled",submit:"submit",loading:"loading",routerLink:"routerLink"},outputs:{clicked:"clicked"},decls:3,vars:2,consts:[["normalButton",""],["class","btn d-flex align-items-center gap-2",3,"routerLink","ngClass","click",4,"ngIf","ngIfElse"],[1,"btn","d-flex","align-items-center","gap-2",3,"click","routerLink","ngClass"],[3,"class",4,"ngIf"],[1,"btn","d-flex","align-items-center","gap-2","justify-content-center",3,"click","ngClass","type","disabled"],["role","status",1,"spinner-border","text-white","fs-14"]],template:function(t,m){if(t&1&&c(0,O,4,4,"a",1)(1,D,4,5,"ng-template",null,0,w),t&2){let a=y(2);s("ngIf",m.routerLink)("ngIfElse",a)}},dependencies:[L,M,E,T],styles:['button[_ngcontent-%COMP%], .bi[_ngcontent-%COMP%]:before, [class^=bi-][_ngcontent-%COMP%]:before, [class*=" bi-"][_ngcontent-%COMP%]:before{font-weight:700!important}a[_ngcontent-%COMP%]{border-radius:8px}']})};export{h as a};
