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