1import{u as P,a as u,m as x}from"./bt2eh2tm.js";import{f as E}from"./D_qxKlPu.js";import{I as b,J as y,b as D,L as l,f,r as w,N as A,K as F,W as I}from"./4Fk0q85l.js";import{u as L}from"./BpXis9F7.js";import{V as S}from"./BhfuIfg7.js";import{V as W}from"./DKIJxfj7.js";const B=A({fullscreen:Boolean,scrollable:Boolean,...F(x({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:W},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),p=b()({name:"VDialog",props:B(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,d){let{emit:i,slots:s}=d;const r=y(e,"modelValue"),{scopeId:m}=P(),t=w();function v(){i("afterEnter"),(e.scrim||e.retainFocus)&&t.value?.contentEl&&!t.value.contentEl.contains(document.activeElement)&&t.value.contentEl.focus({preventScroll:!0})}function g(){i("afterLeave")}return D(r,async n=>{n||(await I(),t.value.activatorEl?.focus({preventScroll:!0}))}),L(()=>{const n=u.filterProps(e),V=l({"aria-haspopup":"dialog"},e.activatorProps),h=l({tabindex:-1},e.contentProps);return f(u,l({ref:t,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},n,{modelValue:r.value,"onUpdate:modelValue":a=>r.value=a,"aria-modal":"true",activatorProps:V,contentProps:h,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:v,onAfterLeave:g},m),{activator:s.activator,default:function(){for(var a=arguments.length,c=new Array(a),o=0;o<a;o++)c[o]=arguments[o];return f(S,{root:"VDialog"},{default:()=>[s.default?.(...c)]})}})}),E({},t)}});export{p as V};
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.