@aplus-frontend/ui
Version:
2 lines (1 loc) • 1.76 kB
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@vueuse/core"),d=require("lodash-unified"),s=require("vue"),a=require("./is.js");function f(e){return e?.parentNode??document.body}function p(e){const t={};return Object.keys(e).map(n=>{t[n]=s.unref(e[n])}),t}function y(e,t=[],n){const o=Object.assign({},e),i=Object.keys(o);for(let c=0;c<i.length;c+=1){const r=i[c];(t.includes(r)||n?.(r,o[r]))&&delete o[r]}return o}function w(e){return/^[A-Z][A-Za-z]*$/.test(e)}function u(e){if(Array.isArray(e))return e.map(t=>u(t));if(typeof e=="object"&&e!==null){const t={};for(const n in e)t[n]=u(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(!l.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}const R="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function C(e=16,t=R){let n="",o=e;const i=t.length;for(;o--;)n+=t[Math.random()*i|0];return n}exports.isDef=a.isDef;exports.convertReactiveToRaw=u;exports.getDynamicProps=p;exports.getPopupContainer=f;exports.getRouteType=m;exports.getScrollbarSize=v;exports.getTopWindow=b;exports.isPascalCase=w;exports.omitUndefined=g;exports.omitWhen=y;exports.randomStr=C;exports.runFunction=h;