import{b as $}from"./chunk-ZYFKUKWP.js";import{k as V}from"./chunk-5Z3QBZPS.js";import{t as P}from"./chunk-YAWZK65A.js";import{y as k,z as E}from"./chunk-NBWAUNUZ.js";import{H as y,Ia as T,Va as F,Wa as h,Xa as R,Ya as S,e as I,p as b,s as x}from"./chunk-OGMMZFJL.js";import{Eb as l,Gc as _,Hc as D,Sc as M,Uc as g,Wb as n,ec as d,fc as u,gc as r,hc as m,ic as f,mc as w,ob as i,rc as v,sc as C,va as c,wa as s}from"./chunk-QVZULMP5.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};
