1import{m as V,V as c}from"./D3FOcxFp.js";import{f as h}from"./DxtPjR5f.js";import{l as y,s as P,u as x,p as E,O as b,aF as D,_ as S}from"./Dy-DCQse.js";import{u as A}from"./Dr9Vv2Xu.js";import{V as F}from"./b7Pu6nUS.js";import{bo as w}from"./jwg_xgIW.js";import{o as L,y as l,q as s,h as k,L as I}from"./DpxhL5B5.js";const O=E({fullscreen:Boolean,scrollable:Boolean,...b(V({captureFocus:!0,location:"center center",origin:"center center",scrollStrategy:"block",transition:{component:F},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),C=y()({name:"VDialog",props:O(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,{emit:n,slots:i}){const a=P(e,"modelValue"),{scopeId:u}=A(),t=k();function f(){n("afterEnter"),(e.scrim||e.retainFocus)&&t.value?.contentEl&&!t.value.contentEl.contains(S())&&t.value.contentEl.focus({preventScroll:!0})}function d(){n("afterLeave")}return L(a,async o=>{o||(await I(),t.value.activatorEl?.focus({preventScroll:!0}))}),x(()=>{const o=c.filterProps(e),m=l({"aria-haspopup":"dialog"},e.activatorProps),v=l({tabindex:-1},e.contentProps),g=e.fullscreen?D:e.locationStrategy;return s(c,l({ref:t,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},o,{modelValue:a.value,"onUpdate:modelValue":r=>a.value=r,"aria-modal":"true",activatorProps:m,contentProps:v,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,locationStrategy:g,role:"dialog",onAfterEnter:f,onAfterLeave:d},u),{activator:i.activator,default:(...r)=>s(w,{root:"VDialog"},{default:()=>[i.default?.(...r)]})})}),h({},t)}});export{C as V,O as m};
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.