UNPKG

@aplus-frontend/ui

Version:

2 lines (1 loc) 1.58 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),d=require("lodash-unified"),f=require("@vueuse/core");function l(e){return e?.parentNode??document.body}function a(e){return typeof e<"u"}function y(e){const t={};return Object.keys(e).map(n=>{t[n]=s.unref(e[n])}),t}function p(e,t=[],n){const o=Object.assign({},e),u=Object.keys(o);for(let r=0;r<u.length;r+=1){const i=u[r];(t.includes(i)||n?.(i,o[i]))&&delete o[i]}return o}function w(e){return/^[A-Z][A-Za-z]*$/.test(e)}function c(e){if(Array.isArray(e))return e.map(t=>c(t));if(typeof e=="object"&&e!==null){const t={};for(const n in e)t[n]=c(e[n]);return s.markRaw(t)}return e}function g(e){const t={...e};for(const n of Object.keys(t))d.isUndefined(t[n])&&delete t[n];return t}function h(e,...t){return typeof e=="function"?e(...t):e}function m(){const e="history";return typeof window>"u"?e:window.location.href.includes("#/")?"hash":e}function v(){if(!f.isClient)return 15;const e=document.createElement("div");e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);const t=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),t}function b(){return(window.top!==window?window.top:window)??window}exports.convertReactiveToRaw=c;exports.getDynamicProps=y;exports.getPopupContainer=l;exports.getRouteType=m;exports.getScrollbarSize=v;exports.getTopWindow=b;exports.isDef=a;exports.isPascalCase=w;exports.omitUndefined=g;exports.omitWhen=p;exports.runFunction=h;