import{H as l,n as d}from"./app-JmgyQoR0.js";import{M as u}from"./MkMenu-6Et8UIBq.js";import{b as m,a as p,h as f,i as c,j as h,l as w,x as M}from"./vue-y3KLWBaS.js";const g=m({__name:"MkPopupMenu",props:{items:{},align:{},width:{},viaKeyboard:{type:Boolean},src:{},noReturnFocus:{type:Function}},emits:["closed"],setup(k,{emit:n}){const i=n;let a=p();return(s,e)=>(f(),c(l,{ref_key:"modal",ref:a,"z-priority":"high",src:s.src,"transparent-bg":!0,onClick:e[1]||(e[1]=o=>{var r;return(r=a.value)==null?void 0:r.close()}),onClosed:e[2]||(e[2]=o=>i("closed")),tabindex:"-1"},{default:h(({type:o,maxHeight:r})=>[w(u,{items:s.items,align:s.align,width:s.width,"max-height":r,"as-drawer":o==="drawer",class:M(["sfhdhdhq",{drawer:o==="drawer"}]),"no-return-focus":s.noReturnFocus,onClose:e[0]||(e[0]=v=>{var t;return(t=a.value)==null?void 0:t.close()})},null,8,["items","align","width","max-height","as-drawer","class","no-return-focus"])]),_:1},8,["src"]))}}),x=d(g,[["__scopeId","data-v-92417f2a"]]);export{x as default};
