vendor: 2,566 bytes, line 1
1import{m as y,q as R,bu as A,x as h,bv as L,r as F,z as D,b as V,bc as x,bw as w,b8 as k,a2 as B,bx as I,a5 as T,j as P,n as C,ai as E,a0 as p,$ as O,by as z}from"./C--HIF4D.js";const N=y({...R(),...A()},"VForm"),M=h()({name:"VForm",props:N(),emits:{"update:modelValue":t=>!0,submit:t=>!0},setup(t,g){let{slots:f,emit:i}=g;const o=L(t),m=F();function a(s){s.preventDefault(),o.reset()}function b(s){const c=s,e=o.validate();c.then=e.then.bind(e),c.catch=e.catch.bind(e),c.finally=e.finally.bind(e),i("submit",c),c.defaultPrevented||e.then(r=>{var n;let{valid:u}=r;u&&((n=m.value)==null||n.submit())}),c.preventDefault()}return D(()=>{var s;return V("form",{ref:m,class:["v-form",t.class],style:t.style,novalidate:!0,onReset:a,onSubmit:b},[(s=f.default)==null?void 0:s.call(f,o)])}),x(o,m)}}),j=y({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...w({origin:"center center",scrollStrategy:"block",transition:{component:k},zIndex:2400})},"VDialog"),U=h()({name:"VDialog",props:j(),emits:{"update:modelValue":t=>!0,afterLeave:()=>!0},setup(t,g){let{emit:f,slots:i}=g;const o=B(t,"modelValue"),{scopeId:m}=I(),a=F();function b(e){var n,d;const r=e.relatedTarget,u=e.target;if(r!==u&&((n=a.value)!=null&&n.contentEl)&&((d=a.value)!=null&&d.globalTop)&&![document,a.value.contentEl].includes(u)&&!a.value.contentEl.contains(u)){const l=z(a.value.contentEl);if(!l.length)return;const v=l[0],S=l[l.length-1];r===v?S.focus():v.focus()}}T&&P(()=>o.value&&t.retainFocus,e=>{e?document.addEventListener("focusin",b):document.removeEventListener("focusin",b)},{immediate:!0});function s(){var e;(e=a.value)!=null&&e.contentEl&&!a.value.contentEl.contains(document.activeElement)&&a.value.contentEl.focus({preventScroll:!0})}function c(){f("afterLeave")}return P(o,async e=>{var r;e||(await C(),(r=a.value.activatorEl)==null||r.focus({preventScroll:!0}))}),D(()=>{const e=E.filterProps(t),r=p({"aria-haspopup":"dialog","aria-expanded":String(o.value)},t.activatorProps),u=p({tabindex:-1},t.contentProps);return V(E,p({ref:a,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},e,{modelValue:o.value,"onUpdate:modelValue":n=>o.value=n,"aria-modal":"true",activatorProps:r,contentProps:u,role:"dialog",onAfterEnter:s,onAfterLeave:c},m),{activator:i.activator,default:function(){for(var n=arguments.length,d=new Array(n),l=0;l<n;l++)d[l]=arguments[l];return V(O,{root:"VDialog"},{default:()=>{var v;return[(v=i.default)==null?void 0:v.call(i,...d)]}})}})}),x({},a)}});export{M as V,U as a};
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.