import{b as $}from"./chunk-SJEV5DBH.js";import{k as V}from"./chunk-MZUDVVMT.js";import{s as P}from"./chunk-OHFY4SW6.js";import{y as k,z as E}from"./chunk-GTIDDZQJ.js";import{H as y,Ha as T,Ua as F,Va as h,Wa as R,Xa as S,e as I,p as b,s as x}from"./chunk-MLI5PH7P.js";import{Bb as l,Dc as _,Ec as D,Pc as M,Rc 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-42LKD4JQ.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};
