import{Ab as l,Ac as C,Qc as f,Tb as b,Ub as g,Vb as d,Wb as a,Xb as u,cd as y,gc as m,hd as x,ic as v,jb as r,kc as c,va as p,wa as s,yc as _,zd as M}from"./chunk-UNHECMG2.js";var O=(t,o,e)=>({"btn-primary":t,"btn-outline-primary":o,active:e}),P=(t,o)=>o.key;function k(t,o){if(t&1){let e=m();a(0,"button",2),v("click",function(){let i=p(e).$implicit,h=c();return s(h.value.set(i.key))}),_(1),u()}if(t&2){let e=o.$implicit,n=c();d("ngClass",f(2,O,e.key===n.value(),e.key!==n.value(),e.key===n.value())),r(),C(" ",e.label," ")}}var T=(()=>{class t{constructor(){this.options=y.required(),this.value=x(null)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=l({type:t,selectors:[["bkd-button-group"]],inputs:{options:[1,"options"],value:[1,"value"]},outputs:{value:"valueChange"},decls:3,vars:0,consts:[["role","group",1,"button-group"],["type","button",1,"btn","btn-primary",3,"ngClass"],["type","button",1,"btn","btn-primary",3,"click","ngClass"]],template:function(n,i){n&1&&(a(0,"div",0),b(1,k,2,6,"button",1,P),u()),n&2&&(r(),g(i.options()))},dependencies:[M],styles:[".button-group[_ngcontent-%COMP%]{display:flex}button[_ngcontent-%COMP%]{position:relative;z-index:99}button.active[_ngcontent-%COMP%]{z-index:100}button[_ngcontent-%COMP%] + button.active[_ngcontent-%COMP%]{margin-left:-15px}button.active[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{margin-left:-15px}button[_ngcontent-%COMP%]:not(.active) + button[_ngcontent-%COMP%]:not(.active){padding-left:15px}button[_ngcontent-%COMP%]:not(.active):has(+button:not(.active)){padding-right:15px}button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]:not(.active){border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}button[_ngcontent-%COMP%]:not(.active):has(+button){border-top-right-radius:0;border-bottom-right-radius:0;border-right:0}"],changeDetection:0})}}return t})();export{T as a};
