import{b as $}from"./chunk-NI4GN2IE.js";import{j as V}from"./chunk-37RFF4OK.js";import{s as P}from"./chunk-DPK5ARAN.js";import{y as k,z as E}from"./chunk-YI6NKOYD.js";import{C as x,F as y,Ha as T,Ua as F,Va as h,Wa as R,Xa as S,n as I,r as b}from"./chunk-IOUPS7SC.js";import{Bb as l,Dc as _,Ec as D,Oc as M,Qc as g,Tb as n,bc as d,cc as u,dc as r,ec as m,fc as f,jc as w,lb as i,oc as v,pc as C,sa as c,ta as s}from"./chunk-2BMUMDG3.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([x,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,I,y,b,k,R,h,S,F],styles:[".disabled[_ngcontent-%COMP%]{opacity:.5!important;cursor:not-allowed!important}"]})}}return e})();export{X as a};
