1import{I as e,L as t,M as n,N as r,U as i,_t as a,d as o,ht as s,k as c,nt as l,x as u}from"./BM5e_i68.js";import{M as d,P as f,V as p,Z as m,d as h,j as g,l as _,ot as v,r as y,t as b}from"./CUYAZmQ6.js";import{t as x}from"./DQQ9UH1b.js";import{i as S,n as C,t as w}from"./M6VEHxmg.js";import{t as T}from"./DTy2DhOk.js";import{a as E,i as D}from"./CRYMb7Qe.js";import{t as O}from"./DmY1maij.js";import{t as k}from"./DVyU53sF.js";var A=h({id:String,submenu:Boolean,...m(C({closeDelay:250,closeOnContentClick:!0,locationStrategy:`connected`,location:void 0,openDelay:300,scrim:!1,scrollStrategy:`reposition`,transition:{component:O}}),[`absolute`])},`VMenu`),j=y()({name:`VMenu`,props:A(),emits:{"update:modelValue":e=>!0},setup(m,h){let{slots:y}=h,C=E(m,`modelValue`),{scopeId:O}=T(),{isRtl:A}=D(),j=_(),M=o(()=>m.id||`v-menu-${j}`),N=s(),P=c(S,null),F=a(new Set);i(S,{register(){F.value.add(j)},unregister(){F.value.delete(j)},closeParents(e){setTimeout(()=>{!F.value.size&&!m.persistent&&(e==null||N.value?.contentEl&&!p(e,N.value.contentEl))&&(C.value=!1,P?.closeParents())},40)}}),e(()=>{P?.unregister(),document.removeEventListener(`focusin`,I)}),t(()=>C.value=!1);async function I(e){let t=e.relatedTarget,n=e.target;await r(),C.value&&t!==n&&N.value?.contentEl&&N.value?.globalTop&&![document,N.value.contentEl].includes(n)&&!N.value.contentEl.contains(n)&&d(N.value.contentEl)[0]?.focus()}l(C,e=>{e?(P?.register(),v&&document.addEventListener(`focusin`,I,{once:!0})):(P?.unregister(),v&&document.removeEventListener(`focusin`,I))},{immediate:!0});function L(e){P?.closeParents(e)}function R(e){if(!m.disabled){if(e.key===`Tab`||e.key===`Enter`&&!m.closeOnContentClick){if(e.key===`Enter`&&(e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLInputElement&&e.target.closest(`form`)))return;e.key===`Enter`&&e.preventDefault(),f(d(N.value?.contentEl,!1),e.shiftKey?`prev`:`next`,e=>e.tabIndex>=0)||(C.value=!1,N.value?.activatorEl?.focus())}else m.submenu&&e.key===(A.value?`ArrowRight`:`ArrowLeft`)&&(C.value=!1,N.value?.activatorEl?.focus())}}function z(e){if(m.disabled)return;let t=N.value?.contentEl;t&&C.value?e.key===`ArrowDown`?(e.preventDefault(),e.stopImmediatePropagation(),g(t,`next`)):e.key===`ArrowUp`?(e.preventDefault(),e.stopImmediatePropagation(),g(t,`prev`)):m.submenu&&(e.key===(A.value?`ArrowRight`:`ArrowLeft`)?C.value=!1:e.key===(A.value?`ArrowLeft`:`ArrowRight`)&&(e.preventDefault(),g(t,`first`))):(m.submenu?e.key===(A.value?`ArrowLeft`:`ArrowRight`):[`ArrowDown`,`ArrowUp`].includes(e.key))&&(C.value=!0,e.preventDefault(),setTimeout(()=>setTimeout(()=>z(e))))}let B=o(()=>n({"aria-haspopup":`menu`,"aria-expanded":String(C.value),"aria-controls":M.value,onKeydown:z},m.activatorProps));return b(()=>{let e=w.filterProps(m);return u(w,n({ref:N,id:M.value,class:[`v-menu`,m.class],style:m.style},e,{modelValue:C.value,"onUpdate:modelValue":e=>C.value=e,absolute:!0,activatorProps:B.value,location:m.location??(m.submenu?`end`:`bottom`),"onClick:outside":L,onKeydown:R},O),{activator:y.activator,default:function(){var e=[...arguments];return u(x,{root:`VMenu`},{default:()=>[y.default?.(...e)]})}})}),k({id:M,ΨopenChildren:F},N)}});export{j as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.