import{b as $}from"./chunk-IPB5AAYY.js";import{k as V}from"./chunk-7NZWIHPJ.js";import{t as P}from"./chunk-DMFWYPJR.js";import{A as k,B as E}from"./chunk-EMGAXJ6U.js";import{H as y,Ja as T,Xa as F,Ya as h,Za as R,_a as S,e as I,p as b,s as x}from"./chunk-N445P7BV.js";import{Db as l,Fc as _,Gc as D,Sc as M,Uc as g,Vb as n,dc as d,ec as u,fc as r,gc as m,hc as f,lc as w,nb as i,qc as v,rc as C,ua as c,va as s}from"./chunk-DZ62WUBN.js";var N=e=>({disabled:e}),O=(e,a)=>a.name;function A(e,a){if(e&1){let t=w();r(0,"li",4)(1,"a",5),v("click",function(){let p=c(t).$implicit,B=C();return s(p.action(B.rowItem.userNameEncoded))}),_(2),m()()}if(e&2){let t=a.$implicit;n("ngClass",g(3,N,t.disabled)),i(),n("disabled",t.disabled),i(),D(t.name)}}var X=(()=>{class e{constructor(){this.menuItems=[],this.rowItem={}}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=l({type:e,selectors:[["app-row-menu"]],inputs:{menuItems:"menuItems",rowItem:"rowItem"},features:[M([b,V,$])],decls:6,vars:1,consts:[["alignment","end","variant","btn-group"],["cButton","","cDropdownToggle","","color","primary","aria-label","Open dropdown",2,"border-radius","20px",3,"caret"],[1,"fa","fa-ellipsis-v","fa-1x"],["cDropdownMenu",""],[3,"ngClass"],["cDropdownItem","",2,"cursor","pointer",3,"click","disabled"]],template:function(o,p){o&1&&(r(0,"c-dropdown",0)(1,"button",1),f(2,"i",2),m(),r(3,"ul",3),d(4,A,3,5,"li",4,O),m()()),o&2&&(i(),n("caret",!1),i(3),u(p.menuItems))},dependencies:[T,E,P,y,x,I,k,R,h,S,F],styles:[".disabled[_ngcontent-%COMP%]{opacity:.5!important;cursor:not-allowed!important}"]})}}return e})();export{X as a};
