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{Dr as e,Pn as t,Qt as n,b as r,dn as i,kt as a,or as o,sn as s,sr as c,tn as l,tr as u,v as d,vr as f,wt as p,x as m,y as h}from"./index-pvdeMyqI.js";var g=i({fullscreen:Boolean,scrollable:Boolean,...t(r({captureFocus:!0,origin:`center center`,scrollStrategy:`block`,transition:{component:a},zIndex:2400,retainFocus:!0}),[`disableInitialFocus`])},`VDialog`),_=s()({name:`VDialog`,props:g(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,{emit:r,slots:i}){let a=n(t,`modelValue`),{scopeId:s}=m(),g=e();function _(){r(`afterEnter`),(t.scrim||t.retainFocus)&&g.value?.contentEl&&!g.value.contentEl.contains(document.activeElement)&&g.value.contentEl.focus({preventScroll:!0})}function v(){r(`afterLeave`)}return f(a,async e=>{e||(await c(),g.value.activatorEl?.focus({preventScroll:!0}))}),l(()=>{let e=h.filterProps(t),n=o({"aria-haspopup":`dialog`},t.activatorProps),r=o({tabindex:-1},t.contentProps);return u(h,o({ref:g,class:[`v-dialog`,{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},e,{modelValue:a.value,"onUpdate:modelValue":e=>a.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},s),{activator:i.activator,default:(...e)=>u(p,{root:`VDialog`},{default:()=>[i.default?.(...e)]})})}),d({},g)}});export{_ as t}; |