UNPKG

images-viewer-vue3

Version:
35 lines (34 loc) 715 B
import { getCurrentScope as o, onScopeDispose as r, onMounted as i, nextTick as c, getCurrentInstance as s, watch as a } from "vue"; function l(e) { return o() ? (r(e), !0) : !1; } const y = typeof window < "u" && typeof document < "u"; typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope; const u = Object.prototype.toString, b = (e) => u.call(e) === "[object Object]"; function g(e) { return Array.isArray(e) ? e : [e]; } function f(e) { return s(); } function m(e, t = !0, n) { f() ? i(e, n) : t ? e() : c(e); } function S(e, t, n) { return a( e, t, { ...n, immediate: !0 } ); } export { l as a, g as b, b as c, y as i, m as t, S as w };