1import{S as V,aZ as P,dj as h,a7 as y,Y as b,dk as i,aR as n,dl as x,b as s,$ as E,bI as S,cj as D,aa as A,a1 as k,b6 as w,dm as F,cq as I,R as L}from"./index-Dvevn98Y.js";const R=k({fullscreen:Boolean,scrollable:Boolean,...w(F({captureFocus:!0,location:"center center",origin:"center center",scrollStrategy:"block",transition:{component:I},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),B=V()({name:"VDialog",props:R(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,{emit:r,slots:c}){const t=P(e,"modelValue"),{scopeId:u}=h(),a=A();function d(){r("afterEnter"),(e.scrim||e.retainFocus)&&a.value?.contentEl&&!a.value.contentEl.contains(D())&&a.value.contentEl.focus({preventScroll:!0})}function f(){r("afterLeave")}return y(t,async o=>{o||(await L(),a.value?.activatorEl?.focus({preventScroll:!0}))}),b(()=>{const o=i.filterProps(e),v=n({"aria-haspopup":"dialog"},e.activatorProps),g=n({tabindex:-1},e.contentProps),m=e.fullscreen?x:e.locationStrategy;return s(i,n({ref:a,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},o,{modelValue:t.value,"onUpdate:modelValue":l=>t.value=l,"aria-modal":"true",activatorProps:v,contentProps:g,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:m,role:"dialog",onAfterEnter:d,onAfterLeave:f},u),{activator:c.activator,default:(...l)=>s(E,{root:"VDialog"},{default:()=>[c.default?.(...l)]})})}),S({},a)}});export{B 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.