import{H as d,_ as l}from"./app-QjDgb7aF.js";import{M as m}from"./MkMenu-Dn2NfCb3.js";import{b as u,j as c,g as f,i as p,k as w,u as r,x as g,a as h}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const k=u({__name:"MkPopupMenu",props:{items:{},align:{},width:{},viaKeyboard:{type:Boolean},src:{},noReturnFocus:{}},emits:["closed"],setup(t,{emit:a}){const n=a;let o=h();return(M,e)=>(c(),f(d,{ref_key:"modal",ref:o,"z-priority":"high",src:t.src,"transparent-bg":!0,onClick:e[1]||(e[1]=s=>r(o)?.close()),onClosed:e[2]||(e[2]=s=>n("closed")),tabindex:"-1"},{default:p(({type:s,maxHeight:i})=>[w(m,{items:t.items,align:t.align,width:t.width,"max-height":i,"as-drawer":s==="drawer",class:g(["sfhdhdhq",{drawer:s==="drawer"}]),"no-return-focus":t.noReturnFocus,onClose:e[0]||(e[0]=x=>r(o)?.close())},null,8,["items","align","width","max-height","as-drawer","class","no-return-focus"])]),_:1},8,["src"]))}}),$=l(k,[["__scopeId","data-v-5dcbf384"]]);export{$ as default};
//# sourceMappingURL=MkPopupMenu-BTZcoFI3.js.map
