import{B as f}from"./Button-0d671d73.js";import{z as i,n as c,a1 as _,a2 as B,c as a,e as p,L as $,h as I,w as m,Q as l,ac as d,j as w,E as L}from"./index-1fa25223.js";import{_ as M}from"./_plugin-vue_export-helper-c27b6911.js";import{V as k}from"./VListItem-53d44b85.js";const y={components:{MAButton:f},props:{showMenuBtn:{type:Boolean,default:!1}},setup(t,e){const o=i(()=>({}));return{listItemProps:i(()=>({...o.value,...e.attrs}))}}};function C(t,e,o,n,h,P){const u=c("MAButton"),v=_("hold");return B((a(),p(k,L(n.listItemProps,{class:"list-item-main",onInput:e[1]||(e[1]=s=>t.$emit("input",s)),onContextmenu:e[2]||(e[2]=d(s=>t.$emit("menu",s),["right","prevent"]))}),$({_:2},[I(t.$slots,(s,r)=>({name:r,fn:m(()=>[l(t.$slots,r,{},void 0,!0)])})),t.$slots.append?{name:"append",fn:m(()=>[l(t.$slots,"append",{},void 0,!0),o.showMenuBtn?(a(),p(u,{key:0,variant:"list",icon:"mdi-dots-vertical",onClick:e[0]||(e[0]=d(s=>t.$emit("menu",s),["stop"]))})):w("",!0)]),key:"0"}:void 0]),1040)),[[v,s=>t.$emit("menu",s)]])}const b=M(y,[["render",C],["__scopeId","data-v-761bd63d"]]);export{b as L};
