File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/monitoring/spa/_nuxt/BQV2YfOE.js
Back
import{e as B,l as w,ae as q,R as O,au as N,av as T,aw as j,ax as E,a4 as A,N as L,ay as U,az as H,ai as D,q as F,aA as P,aB as I,aC as V,v as y,aD as _,aE as z,aF as M,aG as G,aH as W,y as $}from"./Bb0d5mhF.js";const Q=(...t)=>t.find(o=>o!==void 0);function J(t){const o=t.componentName||"NuxtLink";function f(e){return!1}function R(e,l,v){const a=v??t.trailingSlash;if(!e||a!=="append"&&a!=="remove")return e;if(typeof e=="string")return k(e,a);const i="path"in e&&e.path!==void 0?e.path:l(e).path;return{...e,name:void 0,path:k(i,a)}}function C(e){const l=w(),v=$(),a=y(()=>!!e.target&&e.target!=="_self"),i=y(()=>{const u=e.to||e.href||"";return typeof u=="string"&&_(u,{acceptRelative:!0})}),b=L("RouterLink"),h=b&&typeof b!="string"?b.useLink:void 0,c=y(()=>{if(e.external)return!0;const u=e.to||e.href||"";return typeof u=="object"?!1:u===""||i.value}),n=y(()=>{const u=e.to||e.href||"";return c.value?u:R(u,l.resolve,e.trailingSlash)}),g=c.value?void 0:h?.({...e,to:n}),m=y(()=>{const u=e.trailingSlash??t.trailingSlash;if(!n.value||i.value||f(n.value))return n.value;if(c.value){const p=typeof n.value=="object"&&"path"in n.value?P(n.value):n.value,x=typeof p=="object"?l.resolve(p).href:p;return k(x,u)}return typeof n.value=="object"?l.resolve(n.value)?.href??null:k(z(v.app.baseURL,n.value),u)});return{to:n,hasTarget:a,isAbsoluteUrl:i,isExternal:c,href:m,isActive:g?.isActive??y(()=>n.value===l.currentRoute.value.path),isExactActive:g?.isExactActive??y(()=>n.value===l.currentRoute.value.path),route:g?.route??y(()=>l.resolve(n.value)),async navigate(u){await V(m.value,{replace:e.replace,external:c.value||a.value})}}}return B({name:o,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:C,setup(e,{slots:l}){const v=w(),{to:a,href:i,navigate:b,isExternal:h,hasTarget:c,isAbsoluteUrl:n}=C(e),g=D(!1),m=F(null),u=s=>{m.value=e.custom?s?.$el?.nextElementSibling:s?.$el};function p(s){return!g.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===s:e.prefetchOn?.[s]??t.prefetchOn?.[s])&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!Y()}async function x(s=q()){if(g.value)return;g.value=!0;const d=typeof a.value=="string"?a.value:h.value?P(a.value):v.resolve(a.value).fullPath,r=h.value?new URL(d,window.location.href).href:d;await Promise.all([s.hooks.callHook("link:prefetch",r).catch(()=>{}),!h.value&&!c.value&&I(a.value,v).catch(()=>{})])}if(p("visibility")){const s=q();let d,r=null;O(()=>{const S=K();N(()=>{d=T(()=>{m?.value?.tagName&&(r=S.observe(m.value,async()=>{r?.(),r=null,await x(s)}))})})}),j(()=>{d&&E(d),r?.(),r=null})}return()=>{if(!h.value&&!c.value&&!f(a.value)){const r={ref:u,to:a.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(p("interaction")&&(r.onPointerenter=x.bind(null,void 0),r.onFocus=x.bind(null,void 0)),g.value&&(r.class=e.prefetchedClass||t.prefetchedClass),r.rel=e.rel||void 0),A(L("RouterLink"),r,l.default)}const s=e.target||null,d=Q(e.noRel?"":e.rel,t.externalRelAttribute,n.value||c.value?"noopener noreferrer":"")||null;return e.custom?l.default?l.default({href:i.value,navigate:b,prefetch:x,get route(){if(!i.value)return;const r=new URL(i.value,window.location.href);return{path:r.pathname,fullPath:r.pathname,get query(){return U(r.search)},hash:r.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:i.value}},rel:d,target:s,isExternal:h.value||c.value,isActive:!1,isExactActive:!1}):null:A("a",{ref:m,href:i.value||null,rel:d,target:s,onClick:async r=>{if(!(h.value||c.value)){r.preventDefault();try{const S=H(i.value);return await(e.replace?v.replace(S):v.push(S))}finally{f(a.value)}}}},l.default?.())}}})}const ee=J(M);function k(t,o){const f=o==="append"?G:W;return _(t)&&!t.startsWith("http")?t:f(t,!0)}function K(){const t=q();if(t._observer)return t._observer;let o=null;const f=new Map,R=(e,l)=>(o||=new IntersectionObserver(v=>{for(const a of v){const i=f.get(a.target);(a.isIntersecting||a.intersectionRatio>0)&&i&&i()}}),f.set(e,l),o.observe(e),()=>{f.delete(e),o?.unobserve(e),f.size===0&&(o?.disconnect(),o=null)});return t._observer={observe:R}}const X=/2g/;function Y(){const t=navigator.connection;return!!(t&&(t.saveData||X.test(t.effectiveType)))}export{ee as _};
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings