PageSourceSearch

https://www.msp360.com/_nuxt/chunk-vue-final-modal-C2MJ5Gxt.js

js msp360.com collected 2026-09-24 08:47:24 UTC 35,453 bytes, 11 lines download raw bytes

1import{a as ht,Q as mt,J as C,p as W,c as B,w as yt,j as G,l as Be,g as Pe,k as tt,R as gt,o as nt,v as Te,S as Ce,T as _e,D as De,I as oe,U as Oe,B as ie,V as wt,W as Ge,X as pe,Y as We,Z as He,L as $e,F as Tt,_ as Et,r as ze,s as he,$ as St,C as Q,a0 as Nt,G as kt,E as Ye,a1 as Ft,a2 as Ct,H as me,b as Dt}from"./chunk-vendor-runtime-B9_QDvFA.js";function Me(t){return ht()?(mt(t),!0):!1}function Ve(t){return typeof t=="function"?t():C(t)}const Ot=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const At=Object.prototype.toString,Lt=t=>At.call(t)==="[object Object]",It=()=>{};function at(t){var e;const n=Ve(t);return(e=n==null?void 0:n.$el)!=null?e:n}const rt=Ot?window:void 0;function Y(...t){let e,n,a,o;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,a,o]=t,e=rt):[e,n,a,o]=t,!e)return It;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const l=[],r=()=>{l.forEach(h=>h()),l.length=0},u=(h,v,D,N)=>(h.addEventListener(v,D,N),()=>h.removeEventListener(v,D,N)),c=W(()=>[at(e),Ve(o)],([h,v])=>{if(r(),!h)return;const D=Lt(v)?{...v}:v;l.push(...n.flatMap(N=>a.map(O=>u(h,N,O,D))))},{immediate:!0,flush:"post"}),d=()=>{c(),r()};return Me(d),d}function Rt(){const t=B(!1),e=Pe();return e&&Be(()=>{t.value=!0},e),t}function xt(t){const e=Rt();return G(()=>(e.value,!!t()))}function _n(t,e={}){const{window:n=rt}=e,a=xt(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const l=B(!1),r=d=>{l.value=d.matches},u=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",r):o.removeListener(r))},c=yt(()=>{a.value&&(u(),o=n.matchMedia(Ve(t)),"addEventListener"in o?o.addEventListener("change",r):o.addListener(r),l.value=o.matches)});return Me(()=>{c(),u(),o=void 0}),l}/*!
2* tabbable 6.2.0
3* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4*/var ot=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ee=ot.join(","),it=typeof Element>"u",ee=it?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Se=!it&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Ne=function t(e,n){var a;n===void 0&&(n=!0);var o=e==null||(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"inert"),l=o===""||o==="true",r=l||n&&e&&t(e.parentNode);return r},Bt=function(e){var n,a=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return a===""||a==="true"},lt=function(e,n,a){if(Ne(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Ee));return n&&ee.call(e,Ee)&&o.unshift(e),o=o.filter(a),o},ut=function t(e,n,a){for(var o=[],l=Array.from(e);l.length;){var r=l.shift();if(!Ne(r,!1))if(r.tagName==="SLOT"){var u=r.assignedElements(),c=u.length?u:r.children,d=t(c,!0,a);a.flatten?o.push.apply(o,d):o.push({scopeParent:r,candidates:d})}else{var h=ee.call(r,Ee);h&&a.filter(r)&&(n||!e.includes(r))&&o.push(r);var v=r.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(r),D=!Ne(v,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(r));if(v&&D){var N=t(v===!0?r.children:v.children,!0,a);a.flatten?o.push.apply(o,N):o.push({scopeParent:r,candidates:N})}else l.unshift.apply(l,r.children)}}return o},st=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},J=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Bt(e))&&!st(e)?0:e.tabIndex},Pt=function(e,n){var a=J(e);return a<0&&n&&!st(e)?0:a},Mt=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},ct=function(e){return e.tagName==="INPUT"},Vt=function(e){return ct(e)&&e.type==="hidden"},jt=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return n},Kt=function(e,n){for(var a=0;a<e.length;a++)if(e[a].checked&&e[a].form===n)return e[a]},_t=function(e){if(!e.name)return!0;var n=e.form||Se(e),a=function(u){return n.querySelectorAll('input[type="radio"][name="'+u+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=a(window.CSS.escape(e.name));else try{o=a(e.name)}catch{return!1}var l=Kt(o,e.form);return!l||l===e},Gt=function(e){return ct(e)&&e.type==="radio"},Wt=function(e){return Gt(e)&&!_t(e)},Ht=function(e){var n,a=e&&Se(e),o=(n=a)===null||n===void 0?void 0:n.host,l=!1;if(a&&a!==e){var r,u,c;for(l=!!((r=o)!==null&&r!==void 0&&(u=r.ownerDocument)!==null&&u!==void 0&&u.contains(o)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!l&&o;){var d,h,v;a=Se(o),o=(d=a)===null||d===void 0?void 0:d.host,l=!!((h=o)!==null&&h!==void 0&&(v=h.ownerDocument)!==null&&v!==void 0&&v.contains(o))}}return l},Xe=function(e){var n=e.getBoundingClientRect(),a=n.width,o=n.height;return a===0&&o===0}
vendor: 6,188 bytes, lines 4-8
4,$t=function(e,n){var a=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var l=ee.call(e,"details>summary:first-of-type"),r=l?e.parentElement:e;if(ee.call(r,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof o=="function"){for(var u=e;e;){var c=e.parentElement,d=Se(e);if(c&&!c.shadowRoot&&o(c)===!0)return Xe(e);e.assignedSlot?e=e.assignedSlot:!c&&d!==e.ownerDocument?e=d.host:e=c}e=u}if(Ht(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return Xe(e);return!1},zt=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var a=0;a<n.children.length;a++){var o=n.children.item(a);if(o.tagName==="LEGEND")return ee.call(n,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}n=n.parentElement}return!1},ke=function(e,n){return!(n.disabled||Ne(n)||Vt(n)||$t(n,e)||jt(n)||zt(n))},Re=function(e,n){return!(Wt(n)||J(n)<0||!ke(e,n))},Yt=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Xt=function t(e){var n=[],a=[];return e.forEach(function(o,l){var r=!!o.scopeParent,u=r?o.scopeParent:o,c=Pt(u,r),d=r?t(o.candidates):u;c===0?r?n.push.apply(n,d):n.push(u):a.push({documentOrder:l,tabIndex:c,item:o,isScope:r,content:d})}),a.sort(Mt).reduce(function(o,l){return l.isScope?o.push.apply(o,l.content):o.push(l.content),o},[]).concat(n)},qt=function(e,n){n=n||{};var a;return n.getShadowRoot?a=ut([e],n.includeContainer,{filter:Re.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Yt}):a=lt(e,n.includeContainer,Re.bind(null,n)),Xt(a)},Zt=function(e,n){n=n||{};var a;return n.getShadowRoot?a=ut([e],n.includeContainer,{filter:ke.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):a=lt(e,n.includeContainer,ke.bind(null,n)),a},te=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return ee.call(e,Ee)===!1?!1:Re(n,e)},Ut=ot.concat("iframe").join(","),Ae=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return ee.call(e,Ut)===!1?!1:ke(n,e)};/*!
5* focus-trap 7.6.4
6* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
7*/function xe(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function Qt(t){if(Array.isArray(t))return xe(t)}function Jt(t,e,n){return(e=rn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function en(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function Ze(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qe(Object(n),!0).forEach(function(a){Jt(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function nn(t){return Qt(t)||en(t)||on(t)||tn()}function an(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rn(t){var e=an(t,"string");return typeof e=="symbol"?e:e+""}function on(t,e){if(t){if(typeof t=="string")return xe(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(t,e):void 0}}var Ue={activateTrap:function(e,n){if(e.length>0){var a=e[e.length-1];a!==n&&a._setPausedState(!0)}var o=e.indexOf(n);o===-1||e.splice(o,1),e.push(n)},deactivateTrap:function(e,n){var a=e.indexOf(n);a!==-1&&e.splice(a,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},ln=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},un=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ce=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},sn=function(e){return ce(e)&&!e.shiftKey},cn=function(e){return ce(e)&&e.shiftKey},Qe=function(e){return setTimeout(e,0)},le=function(e){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return typeof e=="function"?e.apply(void 0,a):e},ye=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},dn=[],fn=function(e,n){var a=(n==null?void 0:n.document)||document,o=(n==null?void 0:n.trapStack)||dn,l=Ze({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:sn,isKeyBackward:cn},n),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},u,c=function(i,s,b){return i&&i[s]!==void 0?i[s]:l[b||s]},d=function(i,s){var b=typeof(s==null?void 0:s.composedPath)=="function"?s.composedPath():void 0;return r.containerGroups.findIndex(function(y){var w=y.container,k=y.tabbableNodes;return w.contains(i)||(b==null?void 0:b.includes(w))||k.find(function(m){return m===i})})},h=function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=s.hasFallback,y=b===void 0?!1:b,w=s.params,k=w===void 0?[]:w,m=l[i];if(typeof m=="function"&&(m=m.apply(void 0,nn(k))),m===!0&&(m=void 0),!m){if(m===void 0||m===!1)return m;throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var A=m;if(typeof m=="string"){try{A=a.querySelector(m)}catch(R){throw new Error("`".concat(i,'` appears to be an invali
8d selector; error="').concat(R.message,'"'))}if(!A&&!y)throw new Error("`".concat(i,"` as selector refers to no known node"))}return A},v=function(){var i=h("initialFocus",{hasFallback:!0});if(i===!1)return!1;if(i===void 0||i&&!Ae(i,l.tabbableOptions))if(d(a.activeElement)>=0)i=a.activeElement;else{var s=r.tabbableGroups[0],b=s&&s.firstTabbableNode;i=b||h("fallbackFocus")}else i===null&&(i=h("fallbackFocus"));if(!i)throw new Error("Your focus-trap needs to have at least one focusable element");return i},D=function(){if(r.containerGroups=r.containers.map(function(i){var s=qt(i,l.tabbableOptions),b=Zt(i,l.tabbableOptions),y=s.length>0?s[0]:void 0,w=s.length>0?s[s.length-1]:void 0,k=b.find(function(R){return te(R)}),m=b.slice().reverse().find(function(R){return te(R)}),A=!!s.find(function(R){return J(R)>0});return{container:i,tabbableNodes:s,focusableNodes:b,posTabIndexesFound:A,firstTabbableNode:y,lastTabbableNode:w,firstDomTabbableNode:k,lastDomTabbableNode:m,nextTabbableNode:function(z){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_=s.indexOf(z);return _<0?Z?b.slice(b.indexOf(z)+1).find(function(U){return te(U)}):b.slice(0,b.indexOf(z)).reverse().find(function(U){return te(U)}):s[_+(Z?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(i){return i.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(i){return i.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},N=function(i){var s=i.activeElement;if(s)return s.shadowRoot&&s.shadowRoot.activeElement!==null?N(s.shadowRoot):s},O=function(i){if(i!==!1&&i!==N(document)){if(!i||!i.focus){O(v());return}i.focus({preventScroll:!!l.preventScroll}),r.mostRecentlyFocusedNode=i,ln(i)&&i.select()}},V=function(i){var s=h("setReturnFocus",{params:[i]});return s||(s===!1?!1:i)},P=function(i){var s=i.target,b=i.event,y=i.isBackward,w=y===void 0?!1:y;s=s||ye(b),D();var k=null;if(r.tabbableGroups.length>0){var m=d(s,b),A=m>=0?r.containerGroups[m]:void 0;if(m<0)w?k=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:k=r.tabbableGroups[0].firstTabbableNode;else if(w){var R=r.tabbableGroups.findIndex(function(ae){var re=ae.firstTabbableNode;return s===re});if(R<0&&(A.container===s||Ae(s,l.tabbableOptions)&&!te(s,l.tabbableOptions)&&!A.nextTabbableNode(s,!1))&&(R=m),R>=0){var z=R===0?r.tabbableGroups.length-1:R-1,Z=r.tabbableGroups[z];k=J(s)>=0?Z.lastTabbableNode:Z.lastDomTabbableNode}else ce(b)||(k=A.nextTabbableNode(s,!1))}else{var _=r.tabbableGroups.findIndex(function(ae){var re=ae.lastTabbableNode;return s===re});if(_<0&&(A.container===s||Ae(s,l.tabbableOptions)&&!te(s,l.tabbableOptions)&&!A.nextTabbableNode(s))&&(_=m),_>=0){var U=_===r.tabbableGroups.length-1?0:_+1,ne=r.tabbableGroups[U];k=J(s)>=0?ne.firstTabbableNode:ne.firstDomTabbableNode}else ce(b)||(k=A.nextTabbableNode(s))}}else k=h("fallbackFocus");return k},E=function(i){var s=ye(i);if(!(d(s,i)>=0)){if(le(l.clickOutsideDeactivates,i)){u.deactivate({returnFocus:l.returnFocusOnDeactivate});return}le(l.allowOutsideClick,i)||i.preventDefault()}},j=function(i){var s=ye(i),b=d(s,i)>=0;if(b||s instanceof Document)b&&(r.mostRecentlyFocusedNode=s);else{i.stopImmediatePropagation();var y,w=!0;if(r.mostRecentlyFocusedNode)if(J(r.mostRecentlyFocusedNode)>0){var k=d(r.mostRecentlyFocusedNode),m=r.containerGroups[k].tabbableNodes;if(m.length>0){var A=m.findIndex(function(R){return R===r.mostRecentlyFocusedNode});A>=0&&(l.isKeyForward(r.recentNavEvent)?A+1<m.length&&(y=m[A+1],w=!1):A-1>=0&&(y=m[A-1],w=!1))}}else r.containerGroups.some(function(R){return R.tabbableNodes.some(function(z){return J(z)>0})})||(w=!1);else w=!1;w&&(y=P({target:r.mostRecentlyFocusedNode,isBackward:l.isKeyBackward(r.recentNavEvent)})),O(y||r.mostRecentlyFocusedNode||v())}r.recentNavEvent=void 0},M=function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=i;var b=P({event:i,isBackward:s});b&&(ce(i)&&i.preventDefault(),O(b))},K=function(i){(l.isKeyForward(i)||l.isKeyBackward(i))&&M(i,l.isKeyBackward(i))},f=function(i){un(i)&&le(l.escapeDeactivates,i)!==!1&&(i.preventDefault(),u.deactivate())},S=function(i){var s=ye(i);d(s,i)>=0||le(l.clickOutsideDeactivates,i)||le(l.allowOutsideClick,i)||(i.preventDefault(),i.stopImmediatePropagation())},g=function(){if(r.active)return Ue.activateTrap(o,u),r.delayInitialFocusTimer=l.delayInitialFocus?Qe(function(){O(v())}):O(v()),a.addEventListener("focusin",j,!0),a.addEventListener("mousedown",E,{capture:!0,passive:!1}),a.addEventListener("touchstart",E,{capture:!0,passive:!1}),a.addEventListener("click",S,{capture:!0,passive:!1}),a.addEventListener("keydown",K,{capture:!0,passive:!1}),a.addEventListener("keydown",f),u},I=function(){if(r.active)return a.removeEventListener("focusin",j,!0),a.removeEventListener("mousedown",E,!0),a.removeEventListener("touchstart",E,!0),a.removeEventListener("click",S,!0),a.removeEventListener("keydown",K,!0),a.removeEventListener("keydown",f),u},L=function(i){var s=i.some(function(b){var y=Array.from(b.removedNodes
8);return y.some(function(w){return w===r.mostRecentlyFocusedNode})});s&&O(v())},q=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(L):void 0,H=function(){q&&(q.disconnect(),r.active&&!r.paused&&r.containers.map(function(i){q.observe(i,{subtree:!0,childList:!0})}))};return u={get active(){return r.active},get paused(){return r.paused},activate:function(i){if(r.active)return this;var s=c(i,"onActivate"),b=c(i,"onPostActivate"),y=c(i,"checkCanFocusTrap");y||D(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=a.activeElement,s==null||s();var w=function(){y&&D(),g(),H(),b==null||b()};return y?(y(r.containers.concat()).then(w,w),this):(w(),this)},deactivate:function(i){if(!r.active)return this;var s=Ze({onDeactivate:l.onDeactivate,onPostDeactivate:l.onPostDeactivate,checkCanReturnFocus:l.checkCanReturnFocus},i);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,I(),r.active=!1,r.paused=!1,H(),Ue.deactivateTrap(o,u);var b=c(s,"onDeactivate"),y=c(s,"onPostDeactivate"),w=c(s,"checkCanReturnFocus"),k=c(s,"returnFocus","returnFocusOnDeactivate");b==null||b();var m=function(){Qe(function(){k&&O(V(r.nodeFocusedBeforeActivation)),y==null||y()})};return k&&w?(w(V(r.nodeFocusedBeforeActivation)).then(m,m),this):(m(),this)},pause:function(i){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,i)):this},unpause:function(i){return r.active?(r.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,i)):this},updateContainerElements:function(i){var s=[].concat(i).filter(Boolean);return r.containers=s.map(function(b){return typeof b=="string"?a.querySelector(b):b}),r.active&&D(),H(),this}},Object.defineProperties(u,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(i,s){if(r.paused===i)return this;if(r.paused=i,i){var b=c(s,"onPause"),y=c(s,"onPostPause");b==null||b(),I(),H(),y==null||y()}else{var w=c(s,"onUnpause"),k=c(s,"onPostUnpause");w==null||w(),D(),g(),H(),k==null||k()}return this}}}),u.updateContainerElements(e),u};function vn(t,e={}){let n;const{immediate:a,...o}=e,l=B(!1),r=B(!1),u=v=>n&&n.activate(v),c=v=>n&&n.deactivate(v),d=()=>{n&&(n.pause(),r.value=!0)},h=()=>{n&&(n.unpause(),r.value=!1)};return W(()=>at(t),v=>{v&&(n=fn(v,{...o,onActivate(){l.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){l.value=!1,e.onDeactivate&&e.onDeactivate()}}),a&&u())},{flush:"post"}),Me(()=>c()),{hasFocus:l,isPaused:r,activate:u,deactivate:c,pause:d,unpause:h}}const bn=t=>(...e)=>{t&&(t==null||t(...e),t=null)},be=()=>{};function ge(t,e,n){return t>n?n:t<e?e:t}function Le(t,e){var n;const a=((n=se(t,e))==null?void 0:n[0])||e;t.push(a)}function se(t,e){const n=t.indexOf(e);if(n!==-1)return t.splice(n,1)}const pn={teleportTo:{type:[String,null,Boolean,Object],default:"body"},modalId:{type:[String,Number,Symbol],default:void 0},modelValue:{type:Boolean,default:void 0},displayDirective:{type:String,default:"if",validator:t=>["if","show","visible"].includes(t)},hideOverlay:{type:Boolean,default:void 0},overlayBehavior:{type:String,default:"auto",validator:t=>["auto","persist"].includes(t)},overlayTransition:{type:[String,Object],default:void 0},contentTransition:{type:[String,Object],default:void 0},overlayClass:{type:void 0,default:void 0},contentClass:{type:void 0,default:void 0},overlayStyle:{type:[String,Object,Array],default:void 0},contentStyle:{type:[String,Object,Array],default:void 0},clickToClose:{type:Boolean,default:!0},escToClose:{type:Boolean,default:!0},background:{type:String,default:"non-interactive",validator:t=>["interactive","non-interactive"].includes(t)},focusTrap:{type:[Boolean,Object],default:()=>({allowOutsideClick:!0})},lockScroll:{type:Boolean,default:!0},reserveScrollBarGap:{type:Boolean,default:!0},zIndexFn:{type:Function,default:({index:t})=>1e3+2*t},swipeToClose:{type:String,default:"none",validator:t=>["none","up","right","down","left"].includes(t)},threshold:{type:Number,default:0},showSwipeBanner:{type:Boolean,default:void 0},preventNavigationGestures:{type:Boolean,default:void 0}};function Je(t=!1){const e=B(t),n=B(e.value?0:void 0);return[e,n,{beforeEnter(){n.value=1},afterEnter(){n.value=0},beforeLeave(){n.value=3},afterLeave(){n.value=2}}]}function hn(t,e){const{modelValueLocal:n,onEntering:a,onEnter:o,onLeaving:l,onLeave:r}=e,u=B(n.value),[c,d,h]=Je(u.value),[v,D,N]=Je(u.value),O=G(()=>
8typeof t.contentTransition=="string"?{name:t.contentTransition,appear:!0}:{appear:!0,...t.contentTransition}),V=G(()=>typeof t.overlayTransition=="string"?{name:t.overlayTransition,appear:!0}:{appear:!0,...t.overlayTransition}),P=G(()=>(t.hideOverlay||D.value===2)&&d.value===2);W(P,M=>{M&&(u.value=!1)}),W(d,M=>{if(M===1){if(!u.value)return;a==null||a()}else if(M===0){if(!u.value)return;o==null||o()}else M===3?l==null||l():M===2&&(r==null||r())});async function E(){u.value=!0,await Te(),c.value=!0,v.value=!0}function j(){c.value=!1,v.value=!1}return{visible:u,contentVisible:c,contentListeners:h,contentTransition:O,overlayVisible:v,overlayListeners:N,overlayTransition:V,enterTransition:E,leaveTransition:j}}function mn(t,e,n){const{vfmRootEl:a,vfmContentEl:o,visible:l,modelValueLocal:r}=n,u=B();function c(){l.value&&t.escToClose&&(r.value=!1)}function d(v){u.value=v==null?void 0:v.target}function h(){var v;u.value===a.value&&(t.clickToClose?r.value=!1:((v=o.value)==null||v.focus(),e("clickOutside")))}return{onEsc:c,onMouseupRoot:h,onMousedown:d}}function yn(t,e,n){let a=!1;const{open:o,close:l}=n,r=B(!1),u={get value(){return r.value},set value(d){c(d)}};function c(d){(d?o():l())?(r.value=d,d!==t.modelValue&&e("update:modelValue",d)):(a=!0,e("update:modelValue",!d),Te(()=>{a=!1}))}return W(()=>t.modelValue,d=>{a||(u.value=!!d)}),{modelValueLocal:u}}function gn(t,e){if(t.focusTrap===!1)return{focus(){},blur(){}};const{focusEl:n}=e,{hasFocus:a,activate:o,deactivate:l}=vn(n,t.focusTrap);function r(){requestAnimationFrame(()=>{o()})}function u(){a.value&&l()}return{focus:r,blur:u}}let je=!1;if(typeof window<"u"){const t={get passive(){je=!0}};window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}const dt=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1);let X=[],Fe=!1,we=0,ft=-1,de,fe;const wn=t=>{if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["auto","scroll"].includes(e.overflowY)&&t.scrollHeight>t.clientHeight},Tn=(t,e)=>!(t.scrollTop===0&&e<0||t.scrollTop+t.clientHeight+e>=t.scrollHeight&&e>0),En=t=>{const e=[];for(;t;){if(e.push(t),t.classList.contains("vfm"))return e;t=t.parentElement}return e},Sn=(t,e)=>{let n=!1;return En(t).forEach(a=>{wn(a)&&Tn(a,e)&&(n=!0)}),n},vt=t=>X.some(()=>Sn(t,-we)),Ke=t=>{const e=t||window.event;return vt(e.target)||e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)},Nn=t=>{if(fe===void 0){const e=!!t&&t.reserveScrollBarGap===!0,n=window.innerWidth-document.documentElement.clientWidth;if(e&&n>0){const a=parseInt(getComputedStyle(document.body).getPropertyValue("padding-right"),10);fe=document.body.style.paddingRight,document.body.style.paddingRight=`${a+n}px`}}de===void 0&&(de=document.body.style.overflow,document.body.style.overflow="hidden")},kn=()=>{fe!==void 0&&(document.body.style.paddingRight=fe,fe=void 0),de!==void 0&&(document.body.style.overflow=de,de=void 0)},Fn=t=>t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1,Cn=(t,e)=>(we=t.targetTouches[0].clientY-ft,vt(t.target)?!1:e&&e.scrollTop===0&&we>0||Fn(e)&&we<0?Ke(t):(t.stopPropagation(),!0)),Dn=(t,e)=>{if(!t||X.some(a=>a.targetElement===t))return;const n={targetElement:t,options:e||{}};X=[...X,n],dt?(t.ontouchstart=a=>{a.targetTouches.length===1&&(ft=a.targetTouches[0].clientY)},t.ontouchmove=a=>{a.targetTouches.length===1&&Cn(a,t)},Fe||(document.addEventListener("touchmove",Ke,je?{passive:!1}:void 0),Fe=!0)):Nn(e)},On=t=>{t&&(X=X.filter(e=>e.targetElement!==t),dt?(t.ontouchstart=null,t.ontouchmove=null,Fe&&X.length===0&&(document.removeEventListener("touchmove",Ke,je?{passive:!1}:void 0),Fe=!1)):X.length||kn())};function An(t,e){const{lockScrollEl:n,modelValueLocal:a}=e;let o;W(n,u=>{u&&(o=u)},{immediate:!0}),W(()=>t.lockScroll,u=>{u?r():l()}),nt(()=>{l()});function l(){o&&On(o)}function r(){a.value&&t.lockScroll&&o&&Dn(o,{reserveScrollBarGap:t.reserveScrollBarGap,allowTouchMove:u=>{for(;u&&u!==document.body;){if(u.getAttribute("vfm-scroll-lock-ignore")!==null)return!0;u=u.parentElement}return!1}})}return{enableBodyScroll:l,disableBodyScroll:r}}function Ln(t){const e=B();function n(o){var l;e.value=(l=t.zIndexFn)==null?void 0:l.call(t,{index:o<=-1?0:o})}function a(){e.value=void 0}return{zIndex:e,refreshZIndex:n,resetZIndex:a}}const Ie={beforeMount(t,{value:e},{transition:n}){t._vov=t.style.visibility==="hidden"?"":t.style.visibility,n&&e?n.beforeEnter(t):ue(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:a}){!e!=!n&&(a?e?(a.beforeEnter(t),ue(t,!0),a.enter(t)):a.leave(t,()=>{ue(t,!1)}):ue(t,e))},beforeUnmount(t,{value:e}){ue(t,e)}};function ue(t,e){t.style.visibility=e?t._vov:"hidden"}const et=t=>
8{if(t instanceof MouseEvent){const{clientX:e,clientY:n}=t;return{x:e,y:n}}else{const{clientX:e,clientY:n}=t.targetTouches[0];return{x:e,y:n}}};function In(t){if(!t)return!1;let e=!1;const n={get passive(){return e=!0,!1}};return t.addEventListener("x",be,n),t.removeEventListener("x",be),e}function Rn(t,{threshold:e=0,onSwipeStart:n,onSwipe:a,onSwipeEnd:o,passive:l=!0}){const r=ze({x:0,y:0}),u=ze({x:0,y:0}),c=G(()=>r.x-u.x),d=G(()=>r.y-u.y),{max:h,abs:v}=Math,D=G(()=>h(v(c.value),v(d.value))>=e),N=B(!1),O=G(()=>D.value?v(c.value)>v(d.value)?c.value>0?"left":"right":d.value>0?"up":"down":"none"),V=(g,I)=>{r.x=g,r.y=I},P=(g,I)=>{u.x=g,u.y=I};let E,j;function M(g){E.capture&&!E.passive&&g.preventDefault();const{x:I,y:L}=et(g);V(I,L),P(I,L),n==null||n(g),j=[Y(t,"mousemove",K,E),Y(t,"touchmove",K,E),Y(t,"mouseup",f,E),Y(t,"touchend",f,E),Y(t,"touchcancel",f,E)]}function K(g){const{x:I,y:L}=et(g);P(I,L),!N.value&&D.value&&(N.value=!0),N.value&&(a==null||a(g))}function f(g){N.value&&(o==null||o(g,O.value)),N.value=!1,j.forEach(I=>I())}let S=[];return Be(()=>{const g=In(window==null?void 0:window.document);l?E=g?{passive:!0}:{capture:!1}:E=g?{passive:!1,capture:!0}:{capture:!0},S=[Y(t,"mousedown",M,E),Y(t,"touchstart",M,E)]}),{isSwiping:N,direction:O,coordsStart:r,coordsEnd:u,lengthX:c,lengthY:d,stop:()=>{S.forEach(g=>g()),j.forEach(g=>g())}}}function xn(t,e){const{vfmContentEl:n,modelValueLocal:a}=e,o=.1,l=300,r=B(),u=G(()=>{if(!(t.swipeToClose===void 0||t.swipeToClose==="none"))return t.showSwipeBanner?r.value:n.value}),c=B(0),d=B(!0);let h=be,v=!0,D,N=!1;const{lengthX:O,lengthY:V,direction:P,isSwiping:E}=Rn(u,{threshold:t.threshold,onSwipeStart(f){h=Y(document,"selectionchange",()=>{var S;d.value=(S=window.getSelection())==null?void 0:S.isCollapsed}),D=new Date().getTime(),N=K(f==null?void 0:f.target)},onSwipe(){var f,S,g,I;if(N&&d.value&&P.value===t.swipeToClose){if(P.value==="up"){const L=ge(Math.abs(V.value||0),0,((f=u.value)==null?void 0:f.offsetHeight)||0)-(t.threshold||0);c.value=L}else if(P.value==="down"){const L=ge(Math.abs(V.value||0),0,((S=u.value)==null?void 0:S.offsetHeight)||0)-(t.threshold||0);c.value=-L}else if(P.value==="right"){const L=ge(Math.abs(O.value||0),0,((g=u.value)==null?void 0:g.offsetWidth)||0)-(t.threshold||0);c.value=-L}else if(P.value==="left"){const L=ge(Math.abs(O.value||0),0,((I=u.value)==null?void 0:I.offsetWidth)||0)-(t.threshold||0);c.value=L}}},onSwipeEnd(f,S){if(h(),!d.value){d.value=!0;return}const g=new Date().getTime(),I=S===t.swipeToClose,L=(()=>{var H,T;if(S==="up"||S==="down")return Math.abs((V==null?void 0:V.value)||0)>o*(((H=u.value)==null?void 0:H.offsetHeight)||0);if(S==="left"||S==="right")return Math.abs((O==null?void 0:O.value)||0)>o*(((T=u.value)==null?void 0:T.offsetWidth)||0)})(),q=g-D<=l;if(v&&N&&I&&(L||q)){a.value=!1;return}c.value=0}}),j=G(()=>{if(t.swipeToClose==="none")return;const f=(()=>{switch(t.swipeToClose){case"up":case"down":return"translateY";case"left":case"right":return"translateX"}})();return{class:{"vfm-bounce-back":!E.value},style:{transform:`${f}(${-c.value}px)`}}});W(()=>d.value,f=>{f||(c.value=0)}),W(()=>a.value,f=>{f&&(c.value=0)}),W(()=>c.value,(f,S)=>{switch(t.swipeToClose){case"down":case"right":v=f<S;break;case"up":case"left":v=f>S;break}});function M(f){t.preventNavigationGestures&&f.preventDefault()}function K(f){const S=f==null?void 0:f.tagName;if(!S||["INPUT","TEXTAREA"].includes(S))return!1;const g=(()=>{switch(t.swipeToClose){case"up":return(f==null?void 0:f.scrollTop)+(f==null?void 0:f.clientHeight)===(f==null?void 0:f.scrollHeight);case"left":return(f==null?void 0:f.scrollLeft)+(f==null?void 0:f.clientWidth)===(f==null?void 0:f.scrollWidth);case"down":return(f==null?void 0:f.scrollTop)===0;case"right":return(f==null?void 0:f.scrollLeft)===0;default:return!1}})();return f===u.value?g:g&&K(f==null?void 0:f.parentElement)}return{vfmContentEl:n,swipeBannerEl:r,bindSwipe:j,onTouchStartSwipeBanner:M}}const bt=Symbol("vfm");let pt;const Bn=t=>pt=t,Pn={install:be,modals:[],openedModals:[],openedModalOverlays:[],dynamicModals:[],modalsContainers:B([]),get:()=>{},toggle:()=>{},open:()=>{},close:()=>{},closeAll:()=>Promise.allSettled([])},Mn=()=>Pe()&&Dt(bt,Pn)||pt;function Gn(){const t=he([]),e=he([]),n=he([]),a=he([]),o=B([]),l=St({install(r){r.provide(bt,l),r.config.globalProperties.$vfm=l},modals:t,openedModals:e,openedModalOverlays:n,dynamicModals:a,modalsContainers:o,get(r){return t.find(u=>{var c,d;return((d=(c=ve(u))==null?void 0:c.value.modalId)==null?void 0:d.value)===r})},toggle(r,u){var c;const d=l.get(r);return(c=ve(d))==null?void 0:c.value.toggle(u)},open(r){return l.toggle(r,!0)},close(r){return l.toggle(r,!1)},closeAll(){return Promise.allSettled(e.reduce((r,u)=>{const c=ve(u),d=c==null?void 0:c.value.toggle(!1);return d&&r.push(d),r},[]))}});return Bn(l),l}function ve(t){var e;return(e=t==null?void 0:t.exposed)==null?void 0:e.modalExposed}const Vn=tt({inheritAttrs:!1}),Wn=tt({...Vn,__name:"VueFinalModal",props:pn,emits:["update:modelValue","beforeOpen","opened","beforeClose","closed","clickOutside"],setup(t,{expose:e,emit:n}
8){const a=t,o=n,l=gt(),r=Pe(),{modals:u,openedModals:c,openedModalOverlays:d}=jn(),h=B(),v=B(),{focus:D,blur:N}=gn(a,{focusEl:h}),{zIndex:O,refreshZIndex:V,resetZIndex:P}=Ln(a),{modelValueLocal:E}=yn(a,o,{open:R,close:z}),{enableBodyScroll:j,disableBodyScroll:M}=An(a,{lockScrollEl:h,modelValueLocal:E});let K=be;const{visible:f,contentVisible:S,contentListeners:g,contentTransition:I,overlayVisible:L,overlayListeners:q,overlayTransition:H,enterTransition:T,leaveTransition:i}=hn(a,{modelValueLocal:E,onEntering(){Te(()=>{M(),D()})},onEnter(){o("opened"),K("opened")},onLeave(){se(c,r),P(),j(),o("closed"),K("closed")}}),{onEsc:s,onMouseupRoot:b,onMousedown:y}=mn(a,o,{vfmRootEl:h,vfmContentEl:v,visible:f,modelValueLocal:E}),{swipeBannerEl:w,bindSwipe:k,onTouchStartSwipeBanner:m}=xn(a,{vfmContentEl:v,modelValueLocal:E}),A=G(()=>r?c.indexOf(r):-1);W([()=>a.zIndexFn,A],()=>{f.value&&V(A.value)}),Be(()=>{Le(u,r)}),a.modelValue&&(E.value=!0);function R(){let p=!1;return o("beforeOpen",{stop:()=>p=!0}),p?!1:(Le(c,r),Le(d,r),_(),T(),!0)}function z(){let p=!1;return o("beforeClose",{stop:()=>p=!0}),p?!1:(se(d,r),_(),N(),i(),!0)}function Z(){E.value=!1}nt(()=>{j(),se(u,r),se(c,r),N(),_()});async function _(){await Te();const p=d.filter(F=>{var x;const $=ve(F);return($==null?void 0:$.value.overlayBehavior.value)==="auto"&&!((x=$==null?void 0:$.value.hideOverlay)!=null&&x.value)});p.forEach((F,x)=>{const $=ve(F);$!=null&&$.value&&($.value.overlayVisible.value=x===p.length-1)})}const U=Ce(()=>a.modalId),ne=Ce(()=>a.hideOverlay),ae=Ce(()=>a.overlayBehavior),re=G(()=>({modalId:U,hideOverlay:ne,overlayBehavior:ae,overlayVisible:L,toggle(p){return new Promise(F=>{K=bn($=>F($));const x=typeof p=="boolean"?p:!E.value;E.value=x})}}));return e({modalExposed:re}),(p,F)=>(Q(),_e(Et,{to:p.teleportTo?p.teleportTo:void 0,disabled:!p.teleportTo},[p.displayDirective!=="if"||C(f)?De((Q(),ie("div",pe({key:0},C(l),{ref_key:"vfmRootEl",ref:h,class:["vfm vfm--fixed vfm--inset",{"vfm--prevent-none":p.background==="interactive"}],style:{zIndex:C(O)},role:"dialog","aria-modal":"true",onKeydown:F[7]||(F[7]=Tt(()=>C(s)(),["esc"])),onMouseup:F[8]||(F[8]=$e(()=>C(b)(),["self"])),onMousedown:F[9]||(F[9]=$e(x=>C(y)(x),["self"]))}),[ne.value?oe("",!0):(Q(),_e(Ge,pe({key:0},C(H),We(C(q))),{default:He(()=>[p.displayDirective!=="if"||C(L)?De((Q(),ie("div",{key:0,class:kt(["vfm__overlay vfm--overlay vfm--absolute vfm--inset vfm--prevent-none",p.overlayClass]),style:Nt(p.overlayStyle),"aria-hidden":"true"},null,6)),[[Oe,p.displayDirective!=="show"||C(L)],[C(Ie),p.displayDirective!=="visible"||C(L)]]):oe("",!0)]),_:1},16)),wt(Ge,pe(C(I),We(C(g))),{default:He(()=>[p.displayDirective!=="if"||C(S)?De((Q(),ie("div",pe({key:0,ref_key:"vfmContentEl",ref:v,class:["vfm__content vfm--outline-none",[p.contentClass,{"vfm--prevent-auto":p.background==="interactive"}]],style:p.contentStyle,tabindex:"0"},C(k),{onMousedown:F[6]||(F[6]=()=>C(y)())}),[Ye(p.$slots,"default",Ft(Ct({close:Z}))),p.showSwipeBanner?(Q(),ie("div",{key:0,ref_key:"swipeBannerEl",ref:w,class:"vfm-swipe-banner-container",onTouchstart:F[2]||(F[2]=x=>C(m)(x))},[Ye(p.$slots,"swipe-banner",{},()=>[me("div",{class:"vfm-swipe-banner-back",onTouchstart:F[0]||(F[0]=x=>p.swipeToClose==="left"&&x.preventDefault())},null,32),me("div",{class:"vfm-swipe-banner-forward",onTouchstart:F[1]||(F[1]=x=>p.swipeToClose==="right"&&x.preventDefault())},null,32)])],544)):!p.showSwipeBanner&&p.preventNavigationGestures?(Q(),ie("div",{key:1,class:"vfm-swipe-banner-container",onTouchstart:F[5]||(F[5]=x=>C(m)(x))},[me("div",{class:"vfm-swipe-banner-back",onTouchstart:F[3]||(F[3]=x=>p.swipeToClose==="left"&&x.preventDefault())},null,32),me("div",{class:"vfm-swipe-banner-forward",onTouchstart:F[4]||(F[4]=x=>p.swipeToClose==="right"&&x.preventDefault())},null,32)],32)):oe("",!0)],16)),[[Oe,p.displayDirective!=="show"||C(S)],[C(Ie),p.displayDirective!=="visible"||C(S)]]):oe("",!0)]),_:3},16)],16)),[[Oe,p.displayDirective!=="show"||C(f)],[C(Ie),p.displayDirective!=="visible"||C(f)]]):oe("",!0)],8,["to","disabled"]))}});function jn(){const t=Mn();if(!t)throw new Error(`[Vue Final Modal]: getActiveVfm was called with no active Vfm. Did you forget to install vfm?
9	const vfm = createVfm()
10	app.use(vfm)
11This will fail in production.`);return t}export{jn as K,Wn as R,_n as u,Gn as z};

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.