import{b as B}from"./chunk-SPNVV2KO.js";import{cb as I,db as S}from"./chunk-JIDGXFMJ.js";import{j as w}from"./chunk-YJYOGSOO.js";import{Ab as T,Bc as E,Gb as m,Hb as d,Ic as r,Jc as l,Ob as h,Sb as b,Tb as u,Ub as C,Yb as _,ic as f,jc as p,mc as y,ob as x,qa as g,va as c,wa as s}from"./chunk-FWZCAEAJ.js";function k(t,e){if(t&1){let i=_();b(0,"button",1),f("click",function(n){c(i);let o=p();return o.selectedChange.next(o.entityId),s(n.stopPropagation())}),r(1,"tr"),r(2,"tr"),C(3,"bi",2),u()}if(t&2){let i=p();y("ngbTooltip",l(2,5,"SELECT")),d("placement",i.placement),m("aria-label",l(1,3,"SELECT"))}}function A(t,e){if(t&1){let i=_();b(0,"button",3),f("click",function(n){return c(i),p().selectedChange.next(void 0),s(n.stopPropagation())}),r(1,"tr"),r(2,"tr"),C(3,"bi",4),u()}if(t&2){let i=p();y("ngbTooltip",l(2,5,"CLEAR_SELECTION")),d("placement",i.placement),m("aria-label",l(1,3,"CLEAR_SELECTION"))}}var q=(()=>{let e=class e{constructor(){this.selectedChange=new x,this.placement="right"}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=g({type:e,selectors:[["selectable-button"]],inputs:{entityId:"entityId",selectedId:"selectedId",placement:"placement"},outputs:{selectedChange:"selectedChange"},standalone:!0,features:[E],decls:2,vars:1,consts:[["type","button","class","btn btn-sm btn-outline-primary text-body-emphasis","container","body",3,"ngbTooltip","placement"],["type","button","container","body",1,"btn","btn-sm","btn-outline-primary","text-body-emphasis",3,"ngbTooltip","placement","click"],["name","check2-square"],["type","button","container","body",1,"btn","btn-sm","btn-primary",3,"ngbTooltip","placement","click"],["name","x-circle-fill"]],template:function(n,o){n&1&&T(0,k,4,7,"button",0)(1,A,4,7),n&2&&h(0,o.selectedId!==o.entityId?0:1)},dependencies:[w,B,S,I],encapsulation:2,changeDetection:0});let t=e;return t})();export{q as a};
