Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/monitoring/spa/_nuxt/NJoZQAuf.min.js

import{t as B,c as y,d as S,n as w,i as C,e as L,f as M}from"./BVcmU43W.js";import{E as A,r as E,g as x,W,l as _}from"./okq41Fdn.js";const g=L?window:void 0;function h(o){var n;const s=y(o);return(n=s==null?void 0:s.$el)!=null?n:s}function b(...o){let n,s,r,d;if(typeof o[0]=="string"||Array.isArray(o[0])?([s,r,d]=o,n=g):[n,s,r,d]=o,!n)return w;Array.isArray(s)||(s=[s]),Array.isArray(r)||(r=[r]);const f=[],l=()=>{f.forEach((a=>a())),f.length=0},c=(a,e,u,t)=>(a.addEventListener(e,u,t),()=>a.removeEventListener(e,u,t)),v=x((()=>[h(n),y(d)]),(([a,e])=>{if(l(),!a)return;const u=M(e)?{...e}:e;f.push(...s.flatMap((t=>r.map((i=>c(a,t,i,u))))))}),{immediate:!0,flush:"post"}),m=()=>{v(),l()};return S(m),m}let O=!1;function H(o,n,s={}){const{window:r=g,ignore:d=[],capture:f=!0,detectIframe:l=!1}=s;if(!r)return w;C&&!O&&(O=!0,Array.from(r.document.body.children).forEach((t=>t.addEventListener("click",w))),r.document.documentElement.addEventListener("click",w));let c=!0;const v=t=>y(d).some((i=>{if(typeof i=="string")return Array.from(r.document.querySelectorAll(i)).some((p=>p===t.target||t.composedPath().includes(p)));{const p=h(i);return p&&(t.target===p||t.composedPath().includes(p))}})),m=t=>{const i=h(o);if(!(!i||i===t.target||t.composedPath().includes(i))){if(t.detail===0&&(c=!v(t)),!c){c=!0;return}n(t)}};let a=!1;const e=[b(r,"click",(t=>{a||(a=!0,setTimeout((()=>{a=!1}),0),m(t))}),{passive:!0,capture:f}),b(r,"pointerdown",(t=>{const i=h(o);c=!v(t)&&!!(i&&!t.composedPath().includes(i))}),{passive:!0}),l&&b(r,"blur",(t=>{setTimeout((()=>{var i;const p=h(o);((i=r.document.activeElement)==null?void 0:i.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&n(t)}),0)}))].filter(Boolean);return()=>e.forEach((t=>t()))}function k(){const o=E(!1),n=_();return n&&W((()=>{o.value=!0}),n),o}function R(o){const n=k();return A((()=>(n.value,!!o())))}function I(o,n,s={}){const{window:r=g,...d}=s;let f;const l=R((()=>r&&"ResizeObserver"in r)),c=()=>{f&&(f.disconnect(),f=void 0)},v=A((()=>{const e=y(o);return Array.isArray(e)?e.map((u=>h(u))):[h(e)]})),m=x(v,(e=>{if(c(),l.value&&r){f=new ResizeObserver(n);for(const u of e)u&&f.observe(u,d)}}),{immediate:!0,flush:"post"}),a=()=>{c(),m()};return S(a),{isSupported:l,stop:a}}function N(o,n={width:0,height:0},s={}){const{window:r=g,box:d="content-box"}=s,f=A((()=>{var e,u;return(u=(e=h(o))==null?void 0:e.namespaceURI)==null?void 0:u.includes("svg")})),l=E(n.width),c=E(n.height),{stop:v}=I(o,(([e])=>{const u=d==="border-box"?e.borderBoxSize:d==="content-box"?e.contentBoxSize:e.devicePixelContentBoxSize;if(r&&f.value){const t=h(o);if(t){const i=t.getBoundingClientRect();l.value=i.width,c.value=i.height}}else if(u){const t=Array.isArray(u)?u:[u];l.value=t.reduce(((i,{inlineSize:p})=>i+p),0),c.value=t.reduce(((i,{blockSize:p})=>i+p),0)}else l.value=e.contentRect.width,c.value=e.contentRect.height}),s);B((()=>{const e=h(o);e&&(l.value="offsetWidth"in e?e.offsetWidth:n.width,c.value="offsetHeight"in e?e.offsetHeight:n.height)}));const m=x((()=>h(o)),(e=>{l.value=e?n.width:0,c.value=e?n.height:0}));function a(){v(),m()}return{width:l,height:c,stop:a}}function T(o={}){const{window:n=g}=o,s=n==null?void 0:n.navigator,r=R((()=>s&&"language"in s)),d=E(s==null?void 0:s.language);return b(n,"languagechange",(()=>{s&&(d.value=s.language)})),{isSupported:r,language:d}}export{T as a,H as o,N as u};
Back to Directory File Manager