import{M as f}from"./MkMenu-Dn2NfCb3.js";import{b as p,c as u,n as h,j as g,p as k,k as _,a as x}from"./vue-Cm77DuTi.js";import{_ as M}from"./app-QjDgb7aF.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const v="left",C=p({__name:"MkMenu.child",props:{items:{},targetElement:{},rootElement:{},width:{},viaKeyboard:{type:Boolean}},emits:["closed","actioned"],setup(o,{expose:c,emit:l}){const n=o,s=l,t=x();function a(){const e=n.rootElement.getBoundingClientRect(),i=n.targetElement.getBoundingClientRect(),d=n.targetElement.offsetWidth,m=i.top-e.top-8;t.value.style.left=d+"px",t.value.style.top=m+"px"}function r(e){s(e?"actioned":"closed")}return u(()=>{a(),h(()=>{a()})}),c({checkHit:e=>e.target===t.value||t.value.contains(e.target)}),(e,i)=>(g(),k("div",{ref_key:"el",ref:t,class:"sfhdhdhr",tabindex:"-1"},[_(f,{ref:"menu",items:o.items,align:v,width:o.width,"as-drawer":!1,onClose:r},null,8,["items","width"])],512))}}),R=M(C,[["__scopeId","data-v-bc599ef7"]]);export{R as default};
//# sourceMappingURL=MkMenu.child-Coa7mEAK.js.map
