Файловый менеджер - Редактировать - /var/www/vhosts/aviointeriors.dev1.mndrn.cloud/admin/assets/VOverlay-rnnZ80oO.js
Назад
import{ag as Le,aO as Fe,g as Be,i as R,j as W,T as le,p as j,r as D,ab as q,d as de,w as L,aF as V,aP as ze,c as k,E as ee,l as N,a as he,k as ve,aQ as Me,aR as Ye,an as me,ao as Re,aS as we,ae as Xe,s as z,A as Ue,o as Ge,aT as Ne,am as Qe,aH as Ze,aU as Ke,n as Je,x as et,u as tt,z as nt,y as ot,t as at,b as rt,h as it,aV as st,aC as lt,aE as ct,aD as ut,F as ft}from"./index-R81h7aa8.js";import{a as G,d as dt,s as ce,b as vt,g as He,n as _e,B as oe,c as be}from"./forwardRefs-g5bhJaRn.js";import{U as Ee,W as ae,X as re,Y as xe,Z as Se,D as mt,s as yt,c as gt,H as ht,f as wt,Q as bt,$ as Et}from"./index-y7HJVFmx.js";const Q=new WeakMap;function xt(e,n){Object.keys(n).forEach(t=>{if(Le(t)){const o=Fe(t),a=Q.get(e);if(n[t]==null)a==null||a.forEach(r=>{const[s,i]=r;s===o&&(e.removeEventListener(o,i),a.delete(r))});else if(!a||![...a].some(r=>r[0]===o&&r[1]===n[t])){e.addEventListener(o,n[t]);const r=a||new Set;r.add([o,n[t]]),Q.has(e)||Q.set(e,r)}}else n[t]==null?e.removeAttribute(t):e.setAttribute(t,n[t])})}function St(e,n){Object.keys(n).forEach(t=>{if(Le(t)){const o=Fe(t),a=Q.get(e);a==null||a.forEach(r=>{const[s,i]=r;s===o&&(e.removeEventListener(o,i),a.delete(r))})}else e.removeAttribute(t)})}function De(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const n=e.getRootNode();return n!==document&&n.getRootNode({composed:!0})!==document?null:n}function pt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(n?Ot(e):ye(e))return e;e=e.parentElement}return document.scrollingElement}function K(e,n){const t=[];if(n&&e&&!n.contains(e))return t;for(;e&&(ye(e)&&t.push(e),e!==n);)e=e.parentElement;return t}function ye(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(e);return n.overflowY==="scroll"||n.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function Ot(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(e);return["scroll","auto"].includes(n.overflowY)}function kt(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}const Pt=j({target:[Object,Array]},"v-dialog-transition"),rn=Be()({name:"VDialogTransition",props:Pt(),setup(e,n){let{slots:t}=n;const o={onBeforeEnter(a){a.style.pointerEvents="none",a.style.visibility="hidden"},async onEnter(a,r){var h;await new Promise(y=>requestAnimationFrame(y)),await new Promise(y=>requestAnimationFrame(y)),a.style.visibility="";const{x:s,y:i,sx:u,sy:c,speed:f}=Oe(e.target,a),g=G(a,[{transform:`translate(${s}px, ${i}px) scale(${u}, ${c})`,opacity:0},{}],{duration:225*f,easing:dt});(h=pe(a))==null||h.forEach(y=>{G(y,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*f,easing:ce})}),g.finished.then(()=>r())},onAfterEnter(a){a.style.removeProperty("pointer-events")},onBeforeLeave(a){a.style.pointerEvents="none"},async onLeave(a,r){var h;await new Promise(y=>requestAnimationFrame(y));const{x:s,y:i,sx:u,sy:c,speed:f}=Oe(e.target,a);G(a,[{},{transform:`translate(${s}px, ${i}px) scale(${u}, ${c})`,opacity:0}],{duration:125*f,easing:vt}).finished.then(()=>r()),(h=pe(a))==null||h.forEach(y=>{G(y,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*f,easing:ce})})},onAfterLeave(a){a.style.removeProperty("pointer-events")}};return()=>e.target?R(le,W({name:"dialog-transition"},o,{css:!1}),t):R(le,{name:"dialog-transition"},t)}});function pe(e){var t;const n=(t=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:t.children;return n&&[...n]}function Oe(e,n){const t=He(e),o=_e(n),[a,r]=getComputedStyle(n).transformOrigin.split(" ").map(C=>parseFloat(C)),[s,i]=getComputedStyle(n).getPropertyValue("--v-overlay-anchor-origin").split(" ");let u=t.left+t.width/2;s==="left"||i==="left"?u-=t.width/2:(s==="right"||i==="right")&&(u+=t.width/2);let c=t.top+t.height/2;s==="top"||i==="top"?c-=t.height/2:(s==="bottom"||i==="bottom")&&(c+=t.height/2);const f=t.width/o.width,g=t.height/o.height,h=Math.max(1,f,g),y=f/h||0,v=g/h||0,d=o.width*o.height/(window.innerWidth*window.innerHeight),P=d>.12?Math.min(1.5,(d-.12)*10+1):1;return{x:u-(a+o.left),y:c-(r+o.top),sx:y,sy:v,speed:P}}function ie(e,n){return{x:e.x+n.x,y:e.y+n.y}}function Ct(e,n){return{x:e.x-n.x,y:e.y-n.y}}function ke(e,n){if(e.side==="top"||e.side==="bottom"){const{side:t,align:o}=e,a=o==="left"?0:o==="center"?n.width/2:o==="right"?n.width:o,r=t==="top"?0:t==="bottom"?n.height:t;return ie({x:a,y:r},n)}else if(e.side==="left"||e.side==="right"){const{side:t,align:o}=e,a=t==="left"?0:t==="right"?n.width:t,r=o==="top"?0:o==="center"?n.height/2:o==="bottom"?n.height:o;return ie({x:a,y:r},n)}return ie({x:n.width/2,y:n.height/2},n)}const Ve={static:Lt,connected:Bt},At=j({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in Ve},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Tt(e,n){const t=D({}),o=D();q&&de(()=>!!(n.isActive.value&&e.locationStrategy),r=>{var s,i;L(()=>e.locationStrategy,r),V(()=>{window.removeEventListener("resize",a),o.value=void 0}),window.addEventListener("resize",a,{passive:!0}),typeof e.locationStrategy=="function"?o.value=(s=e.locationStrategy(n,e,t))==null?void 0:s.updateLocation:o.value=(i=Ve[e.locationStrategy](n,e,t))==null?void 0:i.updateLocation});function a(r){var s;(s=o.value)==null||s.call(o,r)}return{contentStyles:t,updateLocation:o}}function Lt(){}function Ft(e,n){n?e.style.removeProperty("left"):e.style.removeProperty("right");const t=_e(e);return n?t.x+=parseFloat(e.style.right||0):t.x-=parseFloat(e.style.left||0),t.y-=parseFloat(e.style.top||0),t}function Bt(e,n,t){(Array.isArray(e.target.value)||kt(e.target.value))&&Object.assign(t.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:a,preferredOrigin:r}=ze(()=>{const v=Ee(n.location,e.isRtl.value),d=n.origin==="overlap"?v:n.origin==="auto"?ae(v):Ee(n.origin,e.isRtl.value);return v.side===d.side&&v.align===re(d).align?{preferredAnchor:xe(v),preferredOrigin:xe(d)}:{preferredAnchor:v,preferredOrigin:d}}),[s,i,u,c]=["minWidth","minHeight","maxWidth","maxHeight"].map(v=>k(()=>{const d=parseFloat(n[v]);return isNaN(d)?1/0:d})),f=k(()=>{if(Array.isArray(n.offset))return n.offset;if(typeof n.offset=="string"){const v=n.offset.split(" ").map(parseFloat);return v.length<2&&v.push(0),v}return typeof n.offset=="number"?[n.offset,0]:[0,0]});let g=!1;const h=new ResizeObserver(()=>{g&&y()});L([e.target,e.contentEl],(v,d)=>{let[P,C]=v,[x,b]=d;x&&!Array.isArray(x)&&h.unobserve(x),P&&!Array.isArray(P)&&h.observe(P),b&&h.unobserve(b),C&&h.observe(C)},{immediate:!0}),V(()=>{h.disconnect()});function y(){if(g=!1,requestAnimationFrame(()=>g=!0),!e.target.value||!e.contentEl.value)return;const v=He(e.target.value),d=Ft(e.contentEl.value,e.isRtl.value),P=K(e.contentEl.value),C=12;P.length||(P.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(d.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),d.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const x=P.reduce((p,E)=>{const m=E.getBoundingClientRect(),w=new oe({x:E===document.documentElement?0:m.x,y:E===document.documentElement?0:m.y,width:E.clientWidth,height:E.clientHeight});return p?new oe({x:Math.max(p.left,w.left),y:Math.max(p.top,w.top),width:Math.min(p.right,w.right)-Math.max(p.left,w.left),height:Math.min(p.bottom,w.bottom)-Math.max(p.top,w.top)}):w},void 0);x.x+=C,x.y+=C,x.width-=C*2,x.height-=C*2;let b={anchor:a.value,origin:r.value};function I(p){const E=new oe(d),m=ke(p.anchor,v),w=ke(p.origin,E);let{x:F,y:M}=Ct(m,w);switch(p.anchor.side){case"top":M-=f.value[0];break;case"bottom":M+=f.value[0];break;case"left":F-=f.value[0];break;case"right":F+=f.value[0];break}switch(p.anchor.align){case"top":M-=f.value[1];break;case"bottom":M+=f.value[1];break;case"left":F-=f.value[1];break;case"right":F+=f.value[1];break}return E.x+=F,E.y+=M,E.width=Math.min(E.width,u.value),E.height=Math.min(E.height,c.value),{overflows:be(E,x),x:F,y:M}}let B=0,A=0;const l={x:0,y:0},T={x:!1,y:!1};let te=-1;for(;!(te++>10);){const{x:p,y:E,overflows:m}=I(b);B+=p,A+=E,d.x+=p,d.y+=E;{const w=Se(b.anchor),F=m.x.before||m.x.after,M=m.y.before||m.y.after;let Y=!1;if(["x","y"].forEach(O=>{if(O==="x"&&F&&!T.x||O==="y"&&M&&!T.y){const $={anchor:{...b.anchor},origin:{...b.origin}},X=O==="x"?w==="y"?re:ae:w==="y"?ae:re;$.anchor=X($.anchor),$.origin=X($.origin);const{overflows:H}=I($);(H[O].before<=m[O].before&&H[O].after<=m[O].after||H[O].before+H[O].after<(m[O].before+m[O].after)/2)&&(b=$,Y=T[O]=!0)}}),Y)continue}m.x.before&&(B+=m.x.before,d.x+=m.x.before),m.x.after&&(B-=m.x.after,d.x-=m.x.after),m.y.before&&(A+=m.y.before,d.y+=m.y.before),m.y.after&&(A-=m.y.after,d.y-=m.y.after);{const w=be(d,x);l.x=x.width-w.x.before-w.x.after,l.y=x.height-w.y.before-w.y.after,B+=w.x.before,d.x+=w.x.before,A+=w.y.before,d.y+=w.y.before}break}const ne=Se(b.anchor);return Object.assign(t.value,{"--v-overlay-anchor-origin":`${b.anchor.side} ${b.anchor.align}`,transformOrigin:`${b.origin.side} ${b.origin.align}`,top:N(se(A)),left:e.isRtl.value?void 0:N(se(B)),right:e.isRtl.value?N(se(-B)):void 0,minWidth:N(ne==="y"?Math.min(s.value,v.width):s.value),maxWidth:N(Pe(he(l.x,s.value===1/0?0:s.value,u.value))),maxHeight:N(Pe(he(l.y,i.value===1/0?0:i.value,c.value)))}),{available:l,contentBox:d}}return L(()=>[a.value,r.value,n.offset,n.minWidth,n.minHeight,n.maxWidth,n.maxHeight],()=>y()),ee(()=>{const v=y();if(!v)return;const{available:d,contentBox:P}=v;P.height>d.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function se(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Pe(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let ue=!0;const J=[];function Mt(e){!ue||J.length?(J.push(e),fe()):(ue=!1,e(),fe())}let Ce=-1;function fe(){cancelAnimationFrame(Ce),Ce=requestAnimationFrame(()=>{const e=J.shift();e&&e(),J.length?fe():ue=!0})}const Z={none:null,close:Ht,block:_t,reposition:Dt},Rt=j({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Z}},"VOverlay-scroll-strategies");function Nt(e,n){if(!q)return;let t;ve(async()=>{t==null||t.stop(),n.isActive.value&&e.scrollStrategy&&(t=Me(),await ee(),t.active&&t.run(()=>{var o;typeof e.scrollStrategy=="function"?e.scrollStrategy(n,e,t):(o=Z[e.scrollStrategy])==null||o.call(Z,n,e,t)}))}),V(()=>{t==null||t.stop()})}function Ht(e){function n(t){e.isActive.value=!1}Ie(e.targetEl.value??e.contentEl.value,n)}function _t(e,n){var s;const t=(s=e.root.value)==null?void 0:s.offsetParent,o=[...new Set([...K(e.targetEl.value,n.contained?t:void 0),...K(e.contentEl.value,n.contained?t:void 0)])].filter(i=>!i.classList.contains("v-overlay-scroll-blocked")),a=window.innerWidth-document.documentElement.offsetWidth,r=(i=>ye(i)&&i)(t||document.documentElement);r&&e.root.value.classList.add("v-overlay--scroll-blocked"),o.forEach((i,u)=>{i.style.setProperty("--v-body-scroll-x",N(-i.scrollLeft)),i.style.setProperty("--v-body-scroll-y",N(-i.scrollTop)),i!==document.documentElement&&i.style.setProperty("--v-scrollbar-offset",N(a)),i.classList.add("v-overlay-scroll-blocked")}),V(()=>{o.forEach((i,u)=>{const c=parseFloat(i.style.getPropertyValue("--v-body-scroll-x")),f=parseFloat(i.style.getPropertyValue("--v-body-scroll-y"));i.style.removeProperty("--v-body-scroll-x"),i.style.removeProperty("--v-body-scroll-y"),i.style.removeProperty("--v-scrollbar-offset"),i.classList.remove("v-overlay-scroll-blocked"),i.scrollLeft=-c,i.scrollTop=-f}),r&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function Dt(e,n,t){let o=!1,a=-1,r=-1;function s(i){Mt(()=>{var f,g;const u=performance.now();(g=(f=e.updateLocation).value)==null||g.call(f,i),o=(performance.now()-u)/(1e3/60)>2})}r=(typeof requestIdleCallback>"u"?i=>i():requestIdleCallback)(()=>{t.run(()=>{Ie(e.targetEl.value??e.contentEl.value,i=>{o?(cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{s(i)})})):s(i)})})}),V(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(r),cancelAnimationFrame(a)})}function Ie(e,n){const t=[document,...K(e)];t.forEach(o=>{o.addEventListener("scroll",n,{passive:!0})}),V(()=>{t.forEach(o=>{o.removeEventListener("scroll",n)})})}const Vt=Symbol.for("vuetify:v-menu"),It=j({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function $t(e,n){let t=()=>{};function o(s){t==null||t();const i=Number(s?e.openDelay:e.closeDelay);return new Promise(u=>{t=Ye(i,()=>{n==null||n(s),u(s)})})}function a(){return o(!0)}function r(){return o(!1)}return{clearDelay:t,runOpenDelay:a,runCloseDelay:r}}const Wt=j({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...It()},"VOverlay-activator");function qt(e,n){let{isActive:t,isTop:o}=n;const a=me("useActivator"),r=D();let s=!1,i=!1,u=!0;const c=k(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),f=k(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:g,runCloseDelay:h}=$t(e,l=>{l===(e.openOnHover&&s||c.value&&i)&&!(e.openOnHover&&t.value&&!o.value)&&(t.value!==l&&(u=!0),t.value=l)}),y=D(),v={onClick:l=>{l.stopPropagation(),r.value=l.currentTarget||l.target,t.value||(y.value=[l.clientX,l.clientY]),t.value=!t.value},onMouseenter:l=>{var T;(T=l.sourceCapabilities)!=null&&T.firesTouchEvents||(s=!0,r.value=l.currentTarget||l.target,g())},onMouseleave:l=>{s=!1,h()},onFocus:l=>{Xe(l.target,":focus-visible")!==!1&&(i=!0,l.stopPropagation(),r.value=l.currentTarget||l.target,g())},onBlur:l=>{i=!1,l.stopPropagation(),h()}},d=k(()=>{const l={};return f.value&&(l.onClick=v.onClick),e.openOnHover&&(l.onMouseenter=v.onMouseenter,l.onMouseleave=v.onMouseleave),c.value&&(l.onFocus=v.onFocus,l.onBlur=v.onBlur),l}),P=k(()=>{const l={};if(e.openOnHover&&(l.onMouseenter=()=>{s=!0,g()},l.onMouseleave=()=>{s=!1,h()}),c.value&&(l.onFocusin=()=>{i=!0,g()},l.onFocusout=()=>{i=!1,h()}),e.closeOnContentClick){const T=Re(Vt,null);l.onClick=()=>{t.value=!1,T==null||T.closeParents()}}return l}),C=k(()=>{const l={};return e.openOnHover&&(l.onMouseenter=()=>{u&&(s=!0,u=!1,g())},l.onMouseleave=()=>{s=!1,h()}),l});L(o,l=>{l&&(e.openOnHover&&!s&&(!c.value||!i)||c.value&&!i&&(!e.openOnHover||!s))&&(t.value=!1)}),L(t,l=>{l||setTimeout(()=>{y.value=void 0})},{flush:"post"});const x=D();ve(()=>{x.value&&ee(()=>{r.value=we(x.value)})});const b=D(),I=k(()=>e.target==="cursor"&&y.value?y.value:b.value?we(b.value):$e(e.target,a)||r.value),B=k(()=>Array.isArray(I.value)?void 0:I.value);let A;return L(()=>!!e.activator,l=>{l&&q?(A=Me(),A.run(()=>{jt(e,a,{activatorEl:r,activatorEvents:d})})):A&&A.stop()},{flush:"post",immediate:!0}),V(()=>{A==null||A.stop()}),{activatorEl:r,activatorRef:x,target:I,targetEl:B,targetRef:b,activatorEvents:d,contentEvents:P,scrimEvents:C}}function jt(e,n,t){let{activatorEl:o,activatorEvents:a}=t;L(()=>e.activator,(u,c)=>{if(c&&u!==c){const f=i(c);f&&s(f)}u&&ee(()=>r())},{immediate:!0}),L(()=>e.activatorProps,()=>{r()}),V(()=>{s()});function r(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i(),c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;u&&xt(u,W(a.value,c))}function s(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i(),c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;u&&St(u,W(a.value,c))}function i(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const c=$e(u,n);return o.value=(c==null?void 0:c.nodeType)===Node.ELEMENT_NODE?c:void 0,o.value}}function $e(e,n){var o,a;if(!e)return;let t;if(e==="parent"){let r=(a=(o=n==null?void 0:n.proxy)==null?void 0:o.$el)==null?void 0:a.parentNode;for(;r!=null&&r.hasAttribute("data-no-activator");)r=r.parentNode;t=r}else typeof e=="string"?t=document.querySelector(e):"$el"in e?t=e.$el:t=e;return t}function zt(){if(!q)return z(!1);const{ssr:e}=Ue();if(e){const n=z(!1);return Ge(()=>{n.value=!0}),n}else return z(!0)}const Yt=j({eager:Boolean},"lazy");function Xt(e,n){const t=z(!1),o=k(()=>t.value||e.eager||n.value);L(n,()=>t.value=!0);function a(){e.eager||(t.value=!1)}return{isBooted:t,hasContent:o,onAfterLeave:a}}function Ut(){const n=me("useScopeId").vnode.scopeId;return{scopeId:n?{[n]:""}:void 0}}const Ae=Symbol.for("vuetify:stack"),U=Ne([]);function Gt(e,n,t){const o=me("useStack"),a=!t,r=Re(Ae,void 0),s=Ne({activeChildren:new Set});Qe(Ae,s);const i=z(+n.value);de(e,()=>{var g;const f=(g=U.at(-1))==null?void 0:g[1];i.value=f?f+10:+n.value,a&&U.push([o.uid,i.value]),r==null||r.activeChildren.add(o.uid),V(()=>{if(a){const h=Ze(U).findIndex(y=>y[0]===o.uid);U.splice(h,1)}r==null||r.activeChildren.delete(o.uid)})});const u=z(!0);a&&ve(()=>{var g;const f=((g=U.at(-1))==null?void 0:g[0])===o.uid;setTimeout(()=>u.value=f)});const c=k(()=>!s.activeChildren.size);return{globalTop:Ke(u),localTop:c,stackStyles:k(()=>({zIndex:i.value}))}}function Qt(e){return{teleportTarget:k(()=>{const t=e.value;if(t===!0||!q)return;const o=t===!1?document.body:typeof t=="string"?document.querySelector(t):t;if(o==null)return;let a=o.querySelector(":scope > .v-overlay-container");return a||(a=document.createElement("div"),a.className="v-overlay-container",o.appendChild(a)),a})}}function Zt(){return!0}function We(e,n,t){if(!e||qe(e,t)===!1)return!1;const o=De(n);if(typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&o.host===e.target)return!1;const a=(typeof t.value=="object"&&t.value.include||(()=>[]))();return a.push(n),!a.some(r=>r==null?void 0:r.contains(e.target))}function qe(e,n){return(typeof n.value=="object"&&n.value.closeConditional||Zt)(e)}function Kt(e,n,t){const o=typeof t.value=="function"?t.value:t.value.handler;n._clickOutside.lastMousedownWasOutside&&We(e,n,t)&&setTimeout(()=>{qe(e,t)&&o&&o(e)},0)}function Te(e,n){const t=De(e);n(document),typeof ShadowRoot<"u"&&t instanceof ShadowRoot&&n(t)}const Jt={mounted(e,n){const t=a=>Kt(a,e,n),o=a=>{e._clickOutside.lastMousedownWasOutside=We(a,e,n)};Te(e,a=>{a.addEventListener("click",t,!0),a.addEventListener("mousedown",o,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[n.instance.$.uid]={onClick:t,onMousedown:o}},unmounted(e,n){e._clickOutside&&(Te(e,t=>{var r;if(!t||!((r=e._clickOutside)!=null&&r[n.instance.$.uid]))return;const{onClick:o,onMousedown:a}=e._clickOutside[n.instance.$.uid];t.removeEventListener("click",o,!0),t.removeEventListener("mousedown",a,!0)}),delete e._clickOutside[n.instance.$.uid])}};function en(e){const{modelValue:n,color:t,...o}=e;return R(le,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&R("div",W({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},o),null)]})}const tn=j({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...Wt(),...Je(),...mt(),...Yt(),...At(),...Rt(),...et(),...yt()},"VOverlay"),sn=Be()({name:"VOverlay",directives:{ClickOutside:Jt},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...tn()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterLeave:()=>!0},setup(e,n){let{slots:t,attrs:o,emit:a}=n;const r=tt(e,"modelValue"),s=k({get:()=>r.value,set:S=>{S&&e.disabled||(r.value=S)}}),{teleportTarget:i}=Qt(k(()=>e.attach||e.contained)),{themeClasses:u}=nt(e),{rtlClasses:c,isRtl:f}=ot(),{hasContent:g,onAfterLeave:h}=Xt(e,s),y=gt(k(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:v,localTop:d,stackStyles:P}=Gt(s,at(e,"zIndex"),e._disableGlobalStack),{activatorEl:C,activatorRef:x,target:b,targetEl:I,targetRef:B,activatorEvents:A,contentEvents:l,scrimEvents:T}=qt(e,{isActive:s,isTop:d}),{dimensionStyles:te}=ht(e),ne=zt(),{scopeId:p}=Ut();L(()=>e.disabled,S=>{S&&(s.value=!1)});const E=D(),m=D(),{contentStyles:w,updateLocation:F}=Tt(e,{isRtl:f,contentEl:m,target:b,isActive:s});Nt(e,{root:E,contentEl:m,targetEl:I,isActive:s,updateLocation:F});function M(S){a("click:outside",S),e.persistent?H():s.value=!1}function Y(){return s.value&&v.value}q&&L(s,S=>{S?window.addEventListener("keydown",O):window.removeEventListener("keydown",O)},{immediate:!0}),rt(()=>{q&&window.removeEventListener("keydown",O)});function O(S){var _,ge;S.key==="Escape"&&v.value&&(e.persistent?H():(s.value=!1,(_=m.value)!=null&&_.contains(document.activeElement)&&((ge=C.value)==null||ge.focus())))}const $=wt();de(()=>e.closeOnBack,()=>{Et($,S=>{v.value&&s.value?(S(!1),e.persistent?H():s.value=!1):S()})});const X=D();L(()=>s.value&&(e.absolute||e.contained)&&i.value==null,S=>{if(S){const _=pt(E.value);_&&_!==document.scrollingElement&&(X.value=_.scrollTop)}});function H(){e.noClickAnimation||m.value&&G(m.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:ce})}function je(){h(),a("afterLeave")}return it(()=>{var S;return R(ft,null,[(S=t.activator)==null?void 0:S.call(t,{isActive:s.value,props:W({ref:x,targetRef:B},A.value,e.activatorProps)}),!e.disabled&&ne.value&&g.value&&R(st,{disabled:!i.value,to:i.value},{default:()=>[R("div",W({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":s.value,"v-overlay--contained":e.contained},u.value,c.value,e.class],style:[P.value,{top:N(X.value)},e.style],ref:E},p,o),[R(en,W({color:y,modelValue:!!e.scrim&&s.value},T.value),null),R(bt,{appear:!0,persisted:!0,transition:e.transition,target:b.value,onAfterLeave:je},{default:()=>{var _;return[lt(R("div",W({ref:m,class:["v-overlay__content",e.contentClass],style:[te.value,w.value]},l.value,e.contentProps),[(_=t.default)==null?void 0:_.call(t,{isActive:s})]),[[ct,s.value],[ut("click-outside"),{handler:M,closeConditional:Y,include:()=>[C.value]}]])]}})])]})])}),{activatorEl:C,target:b,animateClick:H,contentEl:m,globalTop:v,localTop:d,updateLocation:F}}});export{rn as V,Vt as a,sn as b,pt as g,tn as m,Ut as u};
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка