import{L as x,aH as h,D as b,ac as I,E as L,U as M,aF as p,I as O,ab as B,O as K,ai as U,N as F,b as N,ad as z,m as H,R as j,al as $,T as G,ae as q,a as J,af as Q}from"./index-CsRk2AqG.js";import{f as E,n as W,A as X,u as A,aO as Y,$ as Z,p as S,a5 as _,ak as k,aP as ee,h as ae,m as te,k as se}from"./vendor-vuetify-BaOIwHiz.js";import{E as oe,d as ne,A as le,G as re,o as ue,j as P,m as V,e as ie,t as ce,b as me,s as de,p as ve,N as fe,n as ye}from"./vendor-vue-wu2SJQxD.js";const ge=S({id:String,submenu:Boolean,..._(M({captureFocus:!0,closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:p}}),["absolute"])},"VMenu"),be=E()({name:"VMenu",props:ge(),emits:{"update:modelValue":a=>!0},setup(a,f){let{slots:u}=f;const o=W(a,"modelValue"),{scopeId:y}=x(),{isRtl:i}=X(),d=oe(),c=ce(()=>a.id||`v-menu-${d}`),n=me(),t=ne(h,null),m=de(new Set);ve(h,{register(){m.value.add(d)},unregister(){m.value.delete(d)},closeParents(e){setTimeout(()=>{var s;!m.value.size&&!a.persistent&&(e==null||(s=n.value)!=null&&s.contentEl&&!ee(e,n.value.contentEl))&&(o.value=!1,t==null||t.closeParents())},40)}}),le(()=>t==null?void 0:t.unregister()),re(()=>o.value=!1),ue(o,e=>{e?t==null||t.register():t==null||t.unregister()},{immediate:!0});function g(e){t==null||t.closeParents(e)}function D(e){var s,l,r,v,C;if(!a.disabled)if(e.key==="Tab"||e.key==="Enter"&&!a.closeOnContentClick){if(e.key==="Enter"&&(e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLInputElement&&e.target.closest("form")))return;e.key==="Enter"&&e.preventDefault(),!Y(Z((s=n.value)==null?void 0:s.contentEl,!1),e.shiftKey?"prev":"next",T=>T.tabIndex>=0)&&!a.retainFocus&&(o.value=!1,(r=(l=n.value)==null?void 0:l.activatorEl)==null||r.focus())}else a.submenu&&e.key===(i.value?"ArrowRight":"ArrowLeft")&&(o.value=!1,(C=(v=n.value)==null?void 0:v.activatorEl)==null||C.focus())}function w(e){var l;if(a.disabled)return;const s=(l=n.value)==null?void 0:l.contentEl;s&&o.value?e.key==="ArrowDown"?(e.preventDefault(),e.stopImmediatePropagation(),k(s,"next")):e.key==="ArrowUp"?(e.preventDefault(),e.stopImmediatePropagation(),k(s,"prev")):a.submenu&&(e.key===(i.value?"ArrowRight":"ArrowLeft")?o.value=!1:e.key===(i.value?"ArrowLeft":"ArrowRight")&&(e.preventDefault(),k(s,"first"))):(a.submenu?e.key===(i.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(e.key))&&(o.value=!0,e.preventDefault(),setTimeout(()=>setTimeout(()=>w(e))))}const R=ie(()=>V({"aria-haspopup":"menu","aria-expanded":String(o.value),"aria-controls":c.value,"aria-owns":c.value,onKeydown:w},a.activatorProps));return A(()=>{const e=b.filterProps(a);return P(b,V({ref:n,id:c.value,class:["v-menu",a.class],style:a.style},e,{modelValue:o.value,"onUpdate:modelValue":s=>o.value=s,absolute:!0,activatorProps:R.value,location:a.location??(a.submenu?"end":"bottom"),"onClick:outside":g,onKeydown:D},y),{activator:u.activator,default:function(){for(var s=arguments.length,l=new Array(s),r=0;r<s;r++)l[r]=arguments[r];return P(I,{root:"VMenu"},{default:()=>{var v;return[(v=u.default)==null?void 0:v.call(u,...l)]}})}})}),L({id:c,ΨopenChildren:m},n)}}),ke=S({color:String,...Q(),...se(),...J(),...q(),...G(),...$(),...j(),...H(),...te()},"VSheet"),Ve=E()({name:"VSheet",props:ke(),setup(a,f){let{slots:u}=f;const{themeClasses:o}=ae(a),{backgroundColorClasses:y,backgroundColorStyles:i}=O(()=>a.color),{borderClasses:d}=B(a),{dimensionStyles:c}=N(a),{elevationClasses:n}=z(a),{locationStyles:t}=K(a),{positionClasses:m}=U(a),{roundedClasses:g}=F(a);return A(()=>P(a.tag,{class:ye(["v-sheet",o.value,y.value,d.value,n.value,m.value,g.value,a.class]),style:fe([i.value,c.value,t.value,a.style])},u)),{}}});export{be as V,Ve as a,ke as m};
