51948469c2
- Stop ignoring web/app/index.html and web/app/assets/ - Bundle index-DBKIQT7H.js from current vite build (~101MB assets) Co-authored-by: Cursor <cursoragent@cursor.com>
1 line
1.5 KiB
JavaScript
1 line
1.5 KiB
JavaScript
import{$t as e,At as t,Rn as n,Sr as r,Tt as i,ar as a,b as o,cn as s,dr as c,fn as l,jr as u,nn as d,ur as f,v as p,x as m,y as h}from"./index-BMSEPayF.js";var g=l({fullscreen:Boolean,scrollable:Boolean,...n(o({captureFocus:!0,origin:`center center`,scrollStrategy:`block`,transition:{component:t},zIndex:2400,retainFocus:!0}),[`disableInitialFocus`])},`VDialog`),_=s()({name:`VDialog`,props:g(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,{emit:n,slots:o}){let s=e(t,`modelValue`),{scopeId:l}=m(),g=u();function _(){n(`afterEnter`),(t.scrim||t.retainFocus)&&g.value?.contentEl&&!g.value.contentEl.contains(document.activeElement)&&g.value.contentEl.focus({preventScroll:!0})}function v(){n(`afterLeave`)}return r(s,async e=>{e||(await c(),g.value.activatorEl?.focus({preventScroll:!0}))}),d(()=>{let e=h.filterProps(t),n=f({"aria-haspopup":`dialog`},t.activatorProps),r=f({tabindex:-1},t.contentProps);return a(h,f({ref:g,class:[`v-dialog`,{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},e,{modelValue:s.value,"onUpdate:modelValue":e=>s.value=e,"aria-modal":`true`,activatorProps:n,contentProps:r,height:t.fullscreen?void 0:t.height,width:t.fullscreen?void 0:t.width,maxHeight:t.fullscreen?void 0:t.maxHeight,maxWidth:t.fullscreen?void 0:t.maxWidth,role:`dialog`,onAfterEnter:_,onAfterLeave:v},l),{activator:o.activator,default:(...e)=>a(i,{root:`VDialog`},{default:()=>[o.default?.(...e)]})})}),p({},g)}});export{_ as t}; |