vue-files-preview-inno
Version:
A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.
68 lines (67 loc) • 2.54 kB
JavaScript
import { getDefaultExportFromCjs as P } from "../../_virtual/_commonjsHelpers.mjs";
import { __module as b } from "../../_virtual/index4.mjs";
import { d as y } from "../d/index.mjs";
import { v as k } from "../es5-ext/object/valid-callable.mjs";
(function(w, g) {
var s = y, c = k, f = Function.prototype.apply, _ = Function.prototype.call, v = Object.create, x = Object.defineProperty, O = Object.defineProperties, u = Object.prototype.hasOwnProperty, h = { configurable: !0, enumerable: !1, writable: !0 }, o, m, l, p, j, d, E;
o = function(r, e) {
var t;
return c(e), u.call(this, "__ee__") ? t = this.__ee__ : (t = h.value = v(null), x(this, "__ee__", h), h.value = null), t[r] ? typeof t[r] == "object" ? t[r].push(e) : t[r] = [t[r], e] : t[r] = e, this;
}, m = function(r, e) {
var t, a;
return c(e), a = this, o.call(this, r, t = function() {
l.call(a, r, t), f.call(e, this, arguments);
}), t.__eeOnceListener__ = e, this;
}, l = function(r, e) {
var t, a, i, n;
if (c(e), !u.call(this, "__ee__")) return this;
if (t = this.__ee__, !t[r]) return this;
if (a = t[r], typeof a == "object")
for (n = 0; i = a[n]; ++n)
(i === e || i.__eeOnceListener__ === e) && (a.length === 2 ? t[r] = a[n ? 0 : 1] : a.splice(n, 1));
else
(a === e || a.__eeOnceListener__ === e) && delete t[r];
return this;
}, p = function(r) {
var e, t, a, i, n;
if (u.call(this, "__ee__") && (i = this.__ee__[r], !!i))
if (typeof i == "object") {
for (t = arguments.length, n = new Array(t - 1), e = 1; e < t; ++e) n[e - 1] = arguments[e];
for (i = i.slice(), e = 0; a = i[e]; ++e)
f.call(a, this, n);
} else
switch (arguments.length) {
case 1:
_.call(i, this);
break;
case 2:
_.call(i, this, arguments[1]);
break;
case 3:
_.call(i, this, arguments[1], arguments[2]);
break;
default:
for (t = arguments.length, n = new Array(t - 1), e = 1; e < t; ++e)
n[e - 1] = arguments[e];
f.call(i, this, n);
}
}, j = {
on: o,
once: m,
off: l,
emit: p
}, d = {
on: s(o),
once: s(m),
off: s(l),
emit: s(p)
}, E = O({}, d), w.exports = g = function(r) {
return r == null ? v(E) : O(Object(r), d);
}, g.methods = j;
})(b, b.exports);
var F = b.exports;
const q = /* @__PURE__ */ P(F);
export {
q as default
};
//# sourceMappingURL=index.mjs.map