@shopware-ag/meteor-component-library
Version:
The meteor component library is a Vue component library developed by Shopware. It is based on the [Meteor Design System](https://shopware.design/).
1,060 lines (1,059 loc) • 45.3 kB
JavaScript
;
const vue = require("vue");
const _commonjsHelpers = require("../_commonjsHelpers-2cbbddc8.js");
const _pluginVue_exportHelper = require("../_plugin-vue_export-helper-9c783a34.js");
var vueSmoothReflow_min = { exports: {} };
(function(module2, exports2) {
!function(t, e) {
module2.exports = e();
}("undefined" != typeof self ? self : _commonjsHelpers.commonjsGlobal, function() {
return function(t) {
var e = {};
function n(r) {
if (e[r])
return e[r].exports;
var o = e[r] = { i: r, l: false, exports: {} };
return t[r].call(o.exports, o, o.exports, n), o.l = true, o.exports;
}
return n.m = t, n.c = e, n.d = function(t2, e2, r) {
n.o(t2, e2) || Object.defineProperty(t2, e2, { enumerable: true, get: r });
}, n.r = function(t2) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
}, n.t = function(t2, e2) {
if (1 & e2 && (t2 = n(t2)), 8 & e2)
return t2;
if (4 & e2 && "object" == typeof t2 && t2 && t2.__esModule)
return t2;
var r = /* @__PURE__ */ Object.create(null);
if (n.r(r), Object.defineProperty(r, "default", { enumerable: true, value: t2 }), 2 & e2 && "string" != typeof t2)
for (var o in t2)
n.d(r, o, (function(e3) {
return t2[e3];
}).bind(null, o));
return r;
}, n.n = function(t2) {
var e2 = t2 && t2.__esModule ? function() {
return t2.default;
} : function() {
return t2;
};
return n.d(e2, "a", e2), e2;
}, n.o = function(t2, e2) {
return Object.prototype.hasOwnProperty.call(t2, e2);
}, n.p = "", n(n.s = 44);
}([function(t, e, n) {
var r = n(28)("wks"), o = n(14), i = n(1).Symbol, u = "function" == typeof i;
(t.exports = function(t2) {
return r[t2] || (r[t2] = u && i[t2] || (u ? i : o)("Symbol." + t2));
}).store = r;
}, function(t, e) {
var n = t.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")();
"number" == typeof __g && (__g = n);
}, function(t, e, n) {
var r = n(1), o = n(7), i = n(3), u = n(19), s = n(24), f = function(t2, e2, n2) {
var a, c, l, p, v = t2 & f.F, h = t2 & f.G, y = t2 & f.S, d = t2 & f.P, m = t2 & f.B, g = h ? r : y ? r[e2] || (r[e2] = {}) : (r[e2] || {}).prototype, b = h ? o : o[e2] || (o[e2] = {}), S = b.prototype || (b.prototype = {});
for (a in h && (n2 = e2), n2)
l = ((c = !v && g && void 0 !== g[a]) ? g : n2)[a], p = m && c ? s(l, r) : d && "function" == typeof l ? s(Function.call, l) : l, g && u(g, a, l, t2 & f.U), b[a] != l && i(b, a, p), d && S[a] != l && (S[a] = l);
};
r.core = o, f.F = 1, f.G = 2, f.S = 4, f.P = 8, f.B = 16, f.W = 32, f.U = 64, f.R = 128, t.exports = f;
}, function(t, e, n) {
var r = n(4), o = n(13);
t.exports = n(8) ? function(t2, e2, n2) {
return r.f(t2, e2, o(1, n2));
} : function(t2, e2, n2) {
return t2[e2] = n2, t2;
};
}, function(t, e, n) {
var r = n(12), o = n(34), i = n(23), u = Object.defineProperty;
e.f = n(8) ? Object.defineProperty : function(t2, e2, n2) {
if (r(t2), e2 = i(e2, true), r(n2), o)
try {
return u(t2, e2, n2);
} catch (t3) {
}
if ("get" in n2 || "set" in n2)
throw TypeError("Accessors not supported!");
return "value" in n2 && (t2[e2] = n2.value), t2;
};
}, function(t, e) {
t.exports = function(t2) {
return "object" == typeof t2 ? null !== t2 : "function" == typeof t2;
};
}, function(t, e) {
var n = {}.hasOwnProperty;
t.exports = function(t2, e2) {
return n.call(t2, e2);
};
}, function(t, e) {
var n = t.exports = { version: "2.5.7" };
"number" == typeof __e && (__e = n);
}, function(t, e, n) {
t.exports = !n(9)(function() {
return 7 != Object.defineProperty({}, "a", { get: function() {
return 7;
} }).a;
});
}, function(t, e) {
t.exports = function(t2) {
try {
return !!t2();
} catch (t3) {
return true;
}
};
}, function(t, e, n) {
var r = n(37), o = n(29);
t.exports = Object.keys || function(t2) {
return r(t2, o);
};
}, function(t, e, n) {
var r = n(25), o = n(17);
t.exports = function(t2) {
return r(o(t2));
};
}, function(t, e, n) {
var r = n(5);
t.exports = function(t2) {
if (!r(t2))
throw TypeError(t2 + " is not an object!");
return t2;
};
}, function(t, e) {
t.exports = function(t2, e2) {
return { enumerable: !(1 & t2), configurable: !(2 & t2), writable: !(4 & t2), value: e2 };
};
}, function(t, e) {
var n = 0, r = Math.random();
t.exports = function(t2) {
return "Symbol(".concat(void 0 === t2 ? "" : t2, ")_", (++n + r).toString(36));
};
}, function(t, e) {
t.exports = {};
}, function(t, e, n) {
var r = n(17);
t.exports = function(t2) {
return Object(r(t2));
};
}, function(t, e) {
t.exports = function(t2) {
if (void 0 == t2)
throw TypeError("Can't call method on " + t2);
return t2;
};
}, function(t, e) {
t.exports = false;
}, function(t, e, n) {
var r = n(1), o = n(3), i = n(6), u = n(14)("src"), s = Function.toString, f = ("" + s).split("toString");
n(7).inspectSource = function(t2) {
return s.call(t2);
}, (t.exports = function(t2, e2, n2, s2) {
var a = "function" == typeof n2;
a && (i(n2, "name") || o(n2, "name", e2)), t2[e2] !== n2 && (a && (i(n2, u) || o(n2, u, t2[e2] ? "" + t2[e2] : f.join(String(e2)))), t2 === r ? t2[e2] = n2 : s2 ? t2[e2] ? t2[e2] = n2 : o(t2, e2, n2) : (delete t2[e2], o(t2, e2, n2)));
})(Function.prototype, "toString", function() {
return "function" == typeof this && this[u] || s.call(this);
});
}, function(t, e) {
var n = {}.toString;
t.exports = function(t2) {
return n.call(t2).slice(8, -1);
};
}, function(t, e) {
e.f = {}.propertyIsEnumerable;
}, function(t, e) {
var n = Math.ceil, r = Math.floor;
t.exports = function(t2) {
return isNaN(t2 = +t2) ? 0 : (t2 > 0 ? r : n)(t2);
};
}, function(t, e, n) {
var r = n(5);
t.exports = function(t2, e2) {
if (!r(t2))
return t2;
var n2, o;
if (e2 && "function" == typeof (n2 = t2.toString) && !r(o = n2.call(t2)))
return o;
if ("function" == typeof (n2 = t2.valueOf) && !r(o = n2.call(t2)))
return o;
if (!e2 && "function" == typeof (n2 = t2.toString) && !r(o = n2.call(t2)))
return o;
throw TypeError("Can't convert object to primitive value");
};
}, function(t, e, n) {
var r = n(47);
t.exports = function(t2, e2, n2) {
if (r(t2), void 0 === e2)
return t2;
switch (n2) {
case 1:
return function(n3) {
return t2.call(e2, n3);
};
case 2:
return function(n3, r2) {
return t2.call(e2, n3, r2);
};
case 3:
return function(n3, r2, o) {
return t2.call(e2, n3, r2, o);
};
}
return function() {
return t2.apply(e2, arguments);
};
};
}, function(t, e, n) {
var r = n(20);
t.exports = Object("z").propertyIsEnumerable(0) ? Object : function(t2) {
return "String" == r(t2) ? t2.split("") : Object(t2);
};
}, function(t, e, n) {
var r = n(22), o = Math.min;
t.exports = function(t2) {
return t2 > 0 ? o(r(t2), 9007199254740991) : 0;
};
}, function(t, e, n) {
var r = n(28)("keys"), o = n(14);
t.exports = function(t2) {
return r[t2] || (r[t2] = o(t2));
};
}, function(t, e, n) {
var r = n(7), o = n(1), i = o["__core-js_shared__"] || (o["__core-js_shared__"] = {});
(t.exports = function(t2, e2) {
return i[t2] || (i[t2] = void 0 !== e2 ? e2 : {});
})("versions", []).push({ version: r.version, mode: n(18) ? "pure" : "global", copyright: "© 2018 Denis Pushkarev (zloirock.ru)" });
}, function(t, e) {
t.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
}, function(t, e, n) {
var r = n(4).f, o = n(6), i = n(0)("toStringTag");
t.exports = function(t2, e2, n2) {
t2 && !o(t2 = n2 ? t2 : t2.prototype, i) && r(t2, i, { configurable: true, value: e2 });
};
}, function(t, e, n) {
var r = n(0)("unscopables"), o = Array.prototype;
void 0 == o[r] && n(3)(o, r, {}), t.exports = function(t2) {
o[r][t2] = true;
};
}, function(t, e) {
e.f = Object.getOwnPropertySymbols;
}, function(t, e, n) {
var r = n(18), o = n(2), i = n(19), u = n(3), s = n(15), f = n(48), a = n(30), c = n(52), l = n(0)("iterator"), p = !([].keys && "next" in [].keys()), v = function() {
return this;
};
t.exports = function(t2, e2, n2, h, y, d, m) {
f(n2, e2, h);
var g, b, S, x = function(t3) {
if (!p && t3 in j)
return j[t3];
switch (t3) {
case "keys":
case "values":
return function() {
return new n2(this, t3);
};
}
return function() {
return new n2(this, t3);
};
}, w = e2 + " Iterator", E = "values" == y, O = false, j = t2.prototype, _ = j[l] || j["@@iterator"] || y && j[y], T = _ || x(y), A = y ? E ? x("entries") : T : void 0, P = "Array" == e2 && j.entries || _;
if (P && (S = c(P.call(new t2()))) !== Object.prototype && S.next && (a(S, w, true), r || "function" == typeof S[l] || u(S, l, v)), E && _ && "values" !== _.name && (O = true, T = function() {
return _.call(this);
}), r && !m || !p && !O && j[l] || u(j, l, T), s[e2] = T, s[w] = v, y)
if (g = { values: E ? T : x("values"), keys: d ? T : x("keys"), entries: A }, m)
for (b in g)
b in j || i(j, b, g[b]);
else
o(o.P + o.F * (p || O), e2, g);
return g;
};
}, function(t, e, n) {
t.exports = !n(8) && !n(9)(function() {
return 7 != Object.defineProperty(n(35)("div"), "a", { get: function() {
return 7;
} }).a;
});
}, function(t, e, n) {
var r = n(5), o = n(1).document, i = r(o) && r(o.createElement);
t.exports = function(t2) {
return i ? o.createElement(t2) : {};
};
}, function(t, e, n) {
var r = n(12), o = n(49), i = n(29), u = n(27)("IE_PROTO"), s = function() {
}, f = function() {
var t2, e2 = n(35)("iframe"), r2 = i.length;
for (e2.style.display = "none", n(51).appendChild(e2), e2.src = "javascript:", (t2 = e2.contentWindow.document).open(), t2.write("<script>document.F=Object<\/script>"), t2.close(), f = t2.F; r2--; )
delete f.prototype[i[r2]];
return f();
};
t.exports = Object.create || function(t2, e2) {
var n2;
return null !== t2 ? (s.prototype = r(t2), n2 = new s(), s.prototype = null, n2[u] = t2) : n2 = f(), void 0 === e2 ? n2 : o(n2, e2);
};
}, function(t, e, n) {
var r = n(6), o = n(11), i = n(38)(false), u = n(27)("IE_PROTO");
t.exports = function(t2, e2) {
var n2, s = o(t2), f = 0, a = [];
for (n2 in s)
n2 != u && r(s, n2) && a.push(n2);
for (; e2.length > f; )
r(s, n2 = e2[f++]) && (~i(a, n2) || a.push(n2));
return a;
};
}, function(t, e, n) {
var r = n(11), o = n(26), i = n(50);
t.exports = function(t2) {
return function(e2, n2, u) {
var s, f = r(e2), a = o(f.length), c = i(u, a);
if (t2 && n2 != n2) {
for (; a > c; )
if ((s = f[c++]) != s)
return true;
} else
for (; a > c; c++)
if ((t2 || c in f) && f[c] === n2)
return t2 || c || 0;
return !t2 && -1;
};
};
}, function(t, e, n) {
var r = n(31), o = n(65), i = n(15), u = n(11);
t.exports = n(33)(Array, "Array", function(t2, e2) {
this._t = u(t2), this._i = 0, this._k = e2;
}, function() {
var t2 = this._t, e2 = this._k, n2 = this._i++;
return !t2 || n2 >= t2.length ? (this._t = void 0, o(1)) : o(0, "keys" == e2 ? n2 : "values" == e2 ? t2[n2] : [n2, t2[n2]]);
}, "values"), i.Arguments = i.Array, r("keys"), r("values"), r("entries");
}, function(t, e, n) {
var r = n(20);
t.exports = Array.isArray || function(t2) {
return "Array" == r(t2);
};
}, function(t, e, n) {
var r = n(1), o = n(7), i = n(18), u = n(42), s = n(4).f;
t.exports = function(t2) {
var e2 = o.Symbol || (o.Symbol = i ? {} : r.Symbol || {});
"_" == t2.charAt(0) || t2 in e2 || s(e2, t2, { value: u.f(t2) });
};
}, function(t, e, n) {
e.f = n(0);
}, function(t, e, n) {
var r = n(37), o = n(29).concat("length", "prototype");
e.f = Object.getOwnPropertyNames || function(t2) {
return r(t2, o);
};
}, function(t, e, n) {
n.r(e);
n(45), n(53), n(60), n(61), n(39), n(66), n(68), n(70), n(74), n(75), n(80);
function r(t2, e2) {
for (var n2 = 0; n2 < e2.length; n2++) {
var r2 = e2[n2];
r2.enumerable = r2.enumerable || false, r2.configurable = true, "value" in r2 && (r2.writable = true), Object.defineProperty(t2, r2.key, r2);
}
}
var o = { methods: { $smoothReflow: function(t2) {
var e2 = (function() {
var t3 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
this._smoothElements.push(new a(t3));
}).bind(this);
Array.isArray(t2) ? t2.forEach(e2) : e2(t2);
}, $unsmoothReflow: function(t2) {
var e2 = (function() {
var t3 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : f(), e3 = this.$el, n2 = this._smoothElements.findIndex(function(n3) {
return u(e3, n3.options.el) === u(e3, t3.el);
});
if (-1 === n2)
return void console.error("VSR_ERROR: $unsmoothReflow failed due to invalid el option");
this._smoothElements[n2].scheduleRemoval();
}).bind(this);
Array.isArray(t2) ? t2.forEach(e2) : e2(t2);
} }, beforeMount: function() {
var t2 = this;
this._smoothElements = [], this._endListener = function(e2) {
var n2 = true, r2 = false, o2 = void 0;
try {
for (var i2, u2 = t2._smoothElements[Symbol.iterator](); !(n2 = (i2 = u2.next()).done); n2 = true) {
i2.value.endListener(e2);
}
} catch (t3) {
r2 = true, o2 = t3;
} finally {
try {
n2 || null == u2.return || u2.return();
} finally {
if (r2)
throw o2;
}
}
};
}, mounted: function() {
this.$el.addEventListener("transitionend", this._endListener, { passive: true });
}, destroyed: function() {
this.$el.removeEventListener("transitionend", this._endListener, { passive: true });
}, beforeUpdate: function() {
this.$el.addEventListener("transitionend", this._endListener, { passive: true }), i(this);
var t2 = true, e2 = false, n2 = void 0;
try {
for (var r2, o2 = this._smoothElements[Symbol.iterator](); !(t2 = (r2 = o2.next()).done); t2 = true) {
var s2 = r2.value, f2 = u(this.$el, s2.options.el);
s2.setSmoothElement(f2), s2.setBeforeValues();
}
} catch (t3) {
e2 = true, n2 = t3;
} finally {
try {
t2 || null == o2.return || o2.return();
} finally {
if (e2)
throw n2;
}
}
}, updated: function() {
var t2 = this;
this.$nextTick(function() {
var e2 = true, n2 = false, r2 = void 0;
try {
for (var o2, s2 = t2._smoothElements[Symbol.iterator](); !(e2 = (o2 = s2.next()).done); e2 = true) {
var f2 = o2.value, a2 = u(t2.$el, f2.options.el);
f2.setSmoothElement(a2), f2.doSmoothReflow();
}
} catch (t3) {
n2 = true, r2 = t3;
} finally {
try {
e2 || null == s2.return || s2.return();
} finally {
if (n2)
throw r2;
}
}
i(t2);
});
} };
function i(t2) {
for (var e2 = t2._smoothElements.length; e2--; ) {
var n2 = t2._smoothElements[e2];
n2.isRemoved && (n2.stopTransition(), t2._smoothElements.splice(e2, 1));
}
}
function u(t2, e2) {
return !t2 || t2 instanceof Node && t2.nodeType === Node.COMMENT_NODE ? null : null === e2 ? t2 : function(t3, e3) {
return "string" == typeof e3 ? t3.matches(e3) ? t3 : t3.querySelector(e3) : e3;
}(t2, e2);
}
var s = { INACTIVE: "INACTIVE", ACTIVE: "ACTIVE" }, f = function() {
return { el: null, property: "height", transitionEvent: null, hideOverflow: true, debug: false };
}, a = function() {
function t2(e2) {
!function(t3, e3) {
if (!(t3 instanceof e3))
throw new TypeError("Cannot call a class as a function");
}(this, t2);
var n2 = f();
Object.assign(n2, e2);
var r2 = this.parsePropertyOption(n2.property);
n2.transition || (n2.transition = r2.map(function(t3) {
return "".concat(t3, " .5s");
}).join(","));
var o2 = { $smoothEl: null, properties: r2, beforeRect: {}, state: s.INACTIVE, isRemoved: false };
Object.assign(this, { options: n2 }, o2), this.endListener = this.endListener.bind(this), this.debug = this.debug.bind(this);
}
return function(t3, e2, n2) {
e2 && r(t3.prototype, e2), n2 && r(t3, n2);
}(t2, [{ key: "setSmoothElement", value: function(t3) {
this.$smoothEl = t3;
} }, { key: "transitionTo", value: function(t3) {
this.state = t3;
} }, { key: "parsePropertyOption", value: function(t3) {
return "string" == typeof t3 ? [t3] : Array.isArray(t3) ? t3 : [];
} }, { key: "setBeforeValues", value: function() {
var t3 = this.$smoothEl;
if (this.beforeRect = {}, t3) {
var e2 = window.getComputedStyle(t3) || {}, n2 = e2.transition, r2 = e2.overflowX, o2 = e2.overflowY;
this.computedTransition = n2, this.overflowX = r2, this.overflowY = o2, this.beforeRect = c(t3), this.state === s.ACTIVE && (this.stopTransition(), this.debug("Transition was interrupted."));
}
} }, { key: "didValuesChange", value: function(t3, e2) {
var n2 = t3, r2 = e2;
if (0 === Object.keys(t3).length)
return false;
var o2 = true, i2 = false, u2 = void 0;
try {
for (var s2, f2 = this.properties[Symbol.iterator](); !(o2 = (s2 = f2.next()).done); o2 = true) {
var a2 = s2.value;
if ("transform" === a2 && (n2.top !== r2.top || n2.left !== r2.left))
return true;
if (n2[a2] !== r2[a2])
return true;
}
} catch (t4) {
i2 = true, u2 = t4;
} finally {
try {
o2 || null == f2.return || f2.return();
} finally {
if (i2)
throw u2;
}
}
return false;
} }, { key: "doSmoothReflow", value: function() {
var t3 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "data update", e2 = this.$smoothEl;
if (!e2)
return this.debug("Could not find registered el to perform doSmoothReflow."), void this.transitionTo(s.INACTIVE);
if (this.state !== s.ACTIVE) {
var n2 = this.beforeRect, r2 = this.properties, o2 = this.options, i2 = this.overflowX, u2 = this.overflowY, f2 = this.debug;
this.transitionTo(s.ACTIVE), f2("doSmoothReflow triggered by:", "string" == typeof t3 ? t3 : t3.target);
var a2 = c(e2);
if (!this.didValuesChange(n2, a2))
return f2("Property values did not change."), void this.transitionTo(s.INACTIVE);
f2("beforeRect", n2), f2("afterRect", a2), this.saveOverflowValues(e2, i2, u2);
var l = true, p = false, v = void 0;
try {
for (var h, y = r2[Symbol.iterator](); !(l = (h = y.next()).done); l = true) {
var d = h.value;
if ("transform" === d) {
var m = n2.left - a2.left, g = n2.top - a2.top;
e2.style.transform = "translate(".concat(m, "px, ").concat(g, "px)");
} else
e2.style[d] = n2[d] + "px";
}
} catch (t4) {
p = true, v = t4;
} finally {
try {
l || null == y.return || y.return();
} finally {
if (p)
throw v;
}
}
e2.offsetHeight, e2.style.transition = [this.computedTransition, o2.transition].filter(function(t4) {
return t4;
}).join(",");
var b = true, S = false, x = void 0;
try {
for (var w, E = r2[Symbol.iterator](); !(b = (w = E.next()).done); b = true) {
var O = w.value;
"transform" === O ? e2.style.transform = "" : e2.style[O] = a2[O] + "px";
}
} catch (t4) {
S = true, x = t4;
} finally {
try {
b || null == E.return || E.return();
} finally {
if (S)
throw x;
}
}
}
} }, { key: "endListener", value: function(t3) {
var e2 = this.$smoothEl, n2 = this.properties;
e2 === t3.target ? n2.includes(t3.propertyName) && (this.stopTransition(), this.hasRegisteredEventEmitter() && this.setBeforeValues()) : this.isRegisteredEventEmitter(e2, t3) && this.doSmoothReflow(t3);
} }, { key: "hasRegisteredEventEmitter", value: function() {
var t3 = this.options.transitionEvent;
return null !== t3 && Object.keys(t3).length > 0;
} }, { key: "isRegisteredEventEmitter", value: function(t3, e2) {
if (!this.hasRegisteredEventEmitter())
return false;
var n2 = e2.target, r2 = this.options.transitionEvent, o2 = r2.selector, i2 = r2.propertyName;
if (null != i2 && i2 !== e2.propertyName)
return false;
if (null != o2 && !n2.matches(o2))
return false;
if (-1 === this.properties.indexOf("transform")) {
var u2 = false, s2 = e2.composedPath ? e2.composedPath() : [], f2 = true, a2 = false, c2 = void 0;
try {
for (var l, p = s2[Symbol.iterator](); !(f2 = (l = p.next()).done); f2 = true) {
if (t3 === l.value) {
u2 = true;
break;
}
}
} catch (t4) {
a2 = true, c2 = t4;
} finally {
try {
f2 || null == p.return || p.return();
} finally {
if (a2)
throw c2;
}
}
if (!u2)
return false;
}
return true;
} }, { key: "saveOverflowValues", value: function(t3, e2, n2) {
this.options.hideOverflow && (this.overflowX = e2, this.overflowY = n2, t3.style.overflowX = "hidden", t3.style.overflowY = "hidden");
} }, { key: "restoreOverflowValues", value: function(t3) {
var e2 = this.options, n2 = this.overflowX, r2 = this.overflowY;
e2.hideOverflow && (t3.style.overflowX = n2, t3.style.overflowY = r2);
} }, { key: "stopTransition", value: function() {
var t3 = this.$smoothEl, e2 = this.properties, n2 = true, r2 = false, o2 = void 0;
try {
for (var i2, u2 = e2[Symbol.iterator](); !(n2 = (i2 = u2.next()).done); n2 = true) {
var f2 = i2.value;
t3.style[f2] = null;
}
} catch (t4) {
r2 = true, o2 = t4;
} finally {
try {
n2 || null == u2.return || u2.return();
} finally {
if (r2)
throw o2;
}
}
this.restoreOverflowValues(t3), t3.style.transition = null, this.transitionTo(s.INACTIVE);
} }, { key: "scheduleRemoval", value: function() {
this.isRemoved = true;
} }, { key: "debug", value: function() {
if (this.options.debug) {
var t3 = ["VSR_DEBUG:"].concat(Array.from(arguments));
console.log.apply(null, t3);
}
} }]), t2;
}(), c = function(t2) {
t2.style.overflow = "hidden";
var e2 = t2.getBoundingClientRect(), n2 = e2.top, r2 = e2.right, o2 = e2.bottom, i2 = e2.left, u2 = e2.width, s2 = e2.height, f2 = e2.x, a2 = e2.y;
return t2.style.overflow = null, { top: n2, right: r2, bottom: o2, left: i2, width: u2, height: s2, x: f2, y: a2 };
};
"undefined" != typeof Element && Element.prototype && !Element.prototype.matches && (Element.prototype.matches = Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector || function(t2) {
for (var e2 = (this.document || this.ownerDocument).querySelectorAll(t2), n2 = e2.length; --n2 >= 0 && e2.item(n2) !== this; )
;
return n2 > -1;
}), e.default = o;
}, function(t, e, n) {
var r = n(46)(true);
n(33)(String, "String", function(t2) {
this._t = String(t2), this._i = 0;
}, function() {
var t2, e2 = this._t, n2 = this._i;
return n2 >= e2.length ? { value: void 0, done: true } : (t2 = r(e2, n2), this._i += t2.length, { value: t2, done: false });
});
}, function(t, e, n) {
var r = n(22), o = n(17);
t.exports = function(t2) {
return function(e2, n2) {
var i, u, s = String(o(e2)), f = r(n2), a = s.length;
return f < 0 || f >= a ? t2 ? "" : void 0 : (i = s.charCodeAt(f)) < 55296 || i > 56319 || f + 1 === a || (u = s.charCodeAt(f + 1)) < 56320 || u > 57343 ? t2 ? s.charAt(f) : i : t2 ? s.slice(f, f + 2) : u - 56320 + (i - 55296 << 10) + 65536;
};
};
}, function(t, e) {
t.exports = function(t2) {
if ("function" != typeof t2)
throw TypeError(t2 + " is not a function!");
return t2;
};
}, function(t, e, n) {
var r = n(36), o = n(13), i = n(30), u = {};
n(3)(u, n(0)("iterator"), function() {
return this;
}), t.exports = function(t2, e2, n2) {
t2.prototype = r(u, { next: o(1, n2) }), i(t2, e2 + " Iterator");
};
}, function(t, e, n) {
var r = n(4), o = n(12), i = n(10);
t.exports = n(8) ? Object.defineProperties : function(t2, e2) {
o(t2);
for (var n2, u = i(e2), s = u.length, f = 0; s > f; )
r.f(t2, n2 = u[f++], e2[n2]);
return t2;
};
}, function(t, e, n) {
var r = n(22), o = Math.max, i = Math.min;
t.exports = function(t2, e2) {
return (t2 = r(t2)) < 0 ? o(t2 + e2, 0) : i(t2, e2);
};
}, function(t, e, n) {
var r = n(1).document;
t.exports = r && r.documentElement;
}, function(t, e, n) {
var r = n(6), o = n(16), i = n(27)("IE_PROTO"), u = Object.prototype;
t.exports = Object.getPrototypeOf || function(t2) {
return t2 = o(t2), r(t2, i) ? t2[i] : "function" == typeof t2.constructor && t2 instanceof t2.constructor ? t2.constructor.prototype : t2 instanceof Object ? u : null;
};
}, function(t, e, n) {
var r = n(24), o = n(2), i = n(16), u = n(54), s = n(55), f = n(26), a = n(56), c = n(57);
o(o.S + o.F * !n(59)(function(t2) {
Array.from(t2);
}), "Array", { from: function(t2) {
var e2, n2, o2, l, p = i(t2), v = "function" == typeof this ? this : Array, h = arguments.length, y = h > 1 ? arguments[1] : void 0, d = void 0 !== y, m = 0, g = c(p);
if (d && (y = r(y, h > 2 ? arguments[2] : void 0, 2)), void 0 == g || v == Array && s(g))
for (n2 = new v(e2 = f(p.length)); e2 > m; m++)
a(n2, m, d ? y(p[m], m) : p[m]);
else
for (l = g.call(p), n2 = new v(); !(o2 = l.next()).done; m++)
a(n2, m, d ? u(l, y, [o2.value, m], true) : o2.value);
return n2.length = m, n2;
} });
}, function(t, e, n) {
var r = n(12);
t.exports = function(t2, e2, n2, o) {
try {
return o ? e2(r(n2)[0], n2[1]) : e2(n2);
} catch (e3) {
var i = t2.return;
throw void 0 !== i && r(i.call(t2)), e3;
}
};
}, function(t, e, n) {
var r = n(15), o = n(0)("iterator"), i = Array.prototype;
t.exports = function(t2) {
return void 0 !== t2 && (r.Array === t2 || i[o] === t2);
};
}, function(t, e, n) {
var r = n(4), o = n(13);
t.exports = function(t2, e2, n2) {
e2 in t2 ? r.f(t2, e2, o(0, n2)) : t2[e2] = n2;
};
}, function(t, e, n) {
var r = n(58), o = n(0)("iterator"), i = n(15);
t.exports = n(7).getIteratorMethod = function(t2) {
if (void 0 != t2)
return t2[o] || t2["@@iterator"] || i[r(t2)];
};
}, function(t, e, n) {
var r = n(20), o = n(0)("toStringTag"), i = "Arguments" == r(function() {
return arguments;
}());
t.exports = function(t2) {
var e2, n2, u;
return void 0 === t2 ? "Undefined" : null === t2 ? "Null" : "string" == typeof (n2 = function(t3, e3) {
try {
return t3[e3];
} catch (t4) {
}
}(e2 = Object(t2), o)) ? n2 : i ? r(e2) : "Object" == (u = r(e2)) && "function" == typeof e2.callee ? "Arguments" : u;
};
}, function(t, e, n) {
var r = n(0)("iterator"), o = false;
try {
var i = [7][r]();
i.return = function() {
o = true;
}, Array.from(i, function() {
throw 2;
});
} catch (t2) {
}
t.exports = function(t2, e2) {
if (!e2 && !o)
return false;
var n2 = false;
try {
var i2 = [7], u = i2[r]();
u.next = function() {
return { done: n2 = true };
}, i2[r] = function() {
return u;
}, t2(i2);
} catch (t3) {
}
return n2;
};
}, function(t, e, n) {
var r = n(2), o = n(38)(true);
r(r.P, "Array", { includes: function(t2) {
return o(this, t2, arguments.length > 1 ? arguments[1] : void 0);
} }), n(31)("includes");
}, function(t, e, n) {
var r = n(2), o = n(62);
r(r.P + r.F * n(64)("includes"), "String", { includes: function(t2) {
return !!~o(this, t2, "includes").indexOf(t2, arguments.length > 1 ? arguments[1] : void 0);
} });
}, function(t, e, n) {
var r = n(63), o = n(17);
t.exports = function(t2, e2, n2) {
if (r(e2))
throw TypeError("String#" + n2 + " doesn't accept regex!");
return String(o(t2));
};
}, function(t, e, n) {
var r = n(5), o = n(20), i = n(0)("match");
t.exports = function(t2) {
var e2;
return r(t2) && (void 0 !== (e2 = t2[i]) ? !!e2 : "RegExp" == o(t2));
};
}, function(t, e, n) {
var r = n(0)("match");
t.exports = function(t2) {
var e2 = /./;
try {
"/./"[t2](e2);
} catch (n2) {
try {
return e2[r] = false, !"/./"[t2](e2);
} catch (t3) {
}
}
return true;
};
}, function(t, e) {
t.exports = function(t2, e2) {
return { value: e2, done: !!t2 };
};
}, function(t, e, n) {
var r = n(16), o = n(10);
n(67)("keys", function() {
return function(t2) {
return o(r(t2));
};
});
}, function(t, e, n) {
var r = n(2), o = n(7), i = n(9);
t.exports = function(t2, e2) {
var n2 = (o.Object || {})[t2] || Object[t2], u = {};
u[t2] = e2(n2), r(r.S + r.F * i(function() {
n2(1);
}), "Object", u);
};
}, function(t, e, n) {
var r = n(2);
r(r.S + r.F, "Object", { assign: n(69) });
}, function(t, e, n) {
var r = n(10), o = n(32), i = n(21), u = n(16), s = n(25), f = Object.assign;
t.exports = !f || n(9)(function() {
var t2 = {}, e2 = {}, n2 = Symbol(), r2 = "abcdefghijklmnopqrst";
return t2[n2] = 7, r2.split("").forEach(function(t3) {
e2[t3] = t3;
}), 7 != f({}, t2)[n2] || Object.keys(f({}, e2)).join("") != r2;
}) ? function(t2, e2) {
for (var n2 = u(t2), f2 = arguments.length, a = 1, c = o.f, l = i.f; f2 > a; )
for (var p, v = s(arguments[a++]), h = c ? r(v).concat(c(v)) : r(v), y = h.length, d = 0; y > d; )
l.call(v, p = h[d++]) && (n2[p] = v[p]);
return n2;
} : f;
}, function(t, e, n) {
var r = n(2), o = n(71)(6), i = "findIndex", u = true;
i in [] && Array(1)[i](function() {
u = false;
}), r(r.P + r.F * u, "Array", { findIndex: function(t2) {
return o(this, t2, arguments.length > 1 ? arguments[1] : void 0);
} }), n(31)(i);
}, function(t, e, n) {
var r = n(24), o = n(25), i = n(16), u = n(26), s = n(72);
t.exports = function(t2, e2) {
var n2 = 1 == t2, f = 2 == t2, a = 3 == t2, c = 4 == t2, l = 6 == t2, p = 5 == t2 || l, v = e2 || s;
return function(e3, s2, h) {
for (var y, d, m = i(e3), g = o(m), b = r(s2, h, 3), S = u(g.length), x = 0, w = n2 ? v(e3, S) : f ? v(e3, 0) : void 0; S > x; x++)
if ((p || x in g) && (d = b(y = g[x], x, m), t2)) {
if (n2)
w[x] = d;
else if (d)
switch (t2) {
case 3:
return true;
case 5:
return y;
case 6:
return x;
case 2:
w.push(y);
}
else if (c)
return false;
}
return l ? -1 : a || c ? c : w;
};
};
}, function(t, e, n) {
var r = n(73);
t.exports = function(t2, e2) {
return new (r(t2))(e2);
};
}, function(t, e, n) {
var r = n(5), o = n(40), i = n(0)("species");
t.exports = function(t2) {
var e2;
return o(t2) && ("function" != typeof (e2 = t2.constructor) || e2 !== Array && !o(e2.prototype) || (e2 = void 0), r(e2) && null === (e2 = e2[i]) && (e2 = void 0)), void 0 === e2 ? Array : e2;
};
}, function(t, e, n) {
n(41)("asyncIterator");
}, function(t, e, n) {
var r = n(1), o = n(6), i = n(8), u = n(2), s = n(19), f = n(76).KEY, a = n(9), c = n(28), l = n(30), p = n(14), v = n(0), h = n(42), y = n(41), d = n(77), m = n(40), g = n(12), b = n(5), S = n(11), x = n(23), w = n(13), E = n(36), O = n(78), j = n(79), _ = n(4), T = n(10), A = j.f, P = _.f, k = O.f, R = r.Symbol, L = r.JSON, I = L && L.stringify, M = v("_hidden"), C = v("toPrimitive"), N = {}.propertyIsEnumerable, V = c("symbol-registry"), F = c("symbols"), $ = c("op-symbols"), D = Object.prototype, G = "function" == typeof R, Y = r.QObject, B = !Y || !Y.prototype || !Y.prototype.findChild, X = i && a(function() {
return 7 != E(P({}, "a", { get: function() {
return P(this, "a", { value: 7 }).a;
} })).a;
}) ? function(t2, e2, n2) {
var r2 = A(D, e2);
r2 && delete D[e2], P(t2, e2, n2), r2 && t2 !== D && P(D, e2, r2);
} : P, H = function(t2) {
var e2 = F[t2] = E(R.prototype);
return e2._k = t2, e2;
}, U = G && "symbol" == typeof R.iterator ? function(t2) {
return "symbol" == typeof t2;
} : function(t2) {
return t2 instanceof R;
}, W = function(t2, e2, n2) {
return t2 === D && W($, e2, n2), g(t2), e2 = x(e2, true), g(n2), o(F, e2) ? (n2.enumerable ? (o(t2, M) && t2[M][e2] && (t2[M][e2] = false), n2 = E(n2, { enumerable: w(0, false) })) : (o(t2, M) || P(t2, M, w(1, {})), t2[M][e2] = true), X(t2, e2, n2)) : P(t2, e2, n2);
}, q = function(t2, e2) {
g(t2);
for (var n2, r2 = d(e2 = S(e2)), o2 = 0, i2 = r2.length; i2 > o2; )
W(t2, n2 = r2[o2++], e2[n2]);
return t2;
}, z = function(t2) {
var e2 = N.call(this, t2 = x(t2, true));
return !(this === D && o(F, t2) && !o($, t2)) && (!(e2 || !o(this, t2) || !o(F, t2) || o(this, M) && this[M][t2]) || e2);
}, J = function(t2, e2) {
if (t2 = S(t2), e2 = x(e2, true), t2 !== D || !o(F, e2) || o($, e2)) {
var n2 = A(t2, e2);
return !n2 || !o(F, e2) || o(t2, M) && t2[M][e2] || (n2.enumerable = true), n2;
}
}, K = function(t2) {
for (var e2, n2 = k(S(t2)), r2 = [], i2 = 0; n2.length > i2; )
o(F, e2 = n2[i2++]) || e2 == M || e2 == f || r2.push(e2);
return r2;
}, Q = function(t2) {
for (var e2, n2 = t2 === D, r2 = k(n2 ? $ : S(t2)), i2 = [], u2 = 0; r2.length > u2; )
!o(F, e2 = r2[u2++]) || n2 && !o(D, e2) || i2.push(F[e2]);
return i2;
};
G || (s((R = function() {
if (this instanceof R)
throw TypeError("Symbol is not a constructor!");
var t2 = p(arguments.length > 0 ? arguments[0] : void 0), e2 = function(n2) {
this === D && e2.call($, n2), o(this, M) && o(this[M], t2) && (this[M][t2] = false), X(this, t2, w(1, n2));
};
return i && B && X(D, t2, { configurable: true, set: e2 }), H(t2);
}).prototype, "toString", function() {
return this._k;
}), j.f = J, _.f = W, n(43).f = O.f = K, n(21).f = z, n(32).f = Q, i && !n(18) && s(D, "propertyIsEnumerable", z, true), h.f = function(t2) {
return H(v(t2));
}), u(u.G + u.W + u.F * !G, { Symbol: R });
for (var Z = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), tt = 0; Z.length > tt; )
v(Z[tt++]);
for (var et = T(v.store), nt = 0; et.length > nt; )
y(et[nt++]);
u(u.S + u.F * !G, "Symbol", { for: function(t2) {
return o(V, t2 += "") ? V[t2] : V[t2] = R(t2);
}, keyFor: function(t2) {
if (!U(t2))
throw TypeError(t2 + " is not a symbol!");
for (var e2 in V)
if (V[e2] === t2)
return e2;
}, useSetter: function() {
B = true;
}, useSimple: function() {
B = false;
} }), u(u.S + u.F * !G, "Object", { create: function(t2, e2) {
return void 0 === e2 ? E(t2) : q(E(t2), e2);
}, defineProperty: W, defineProperties: q, getOwnPropertyDescriptor: J, getOwnPropertyNames: K, getOwnPropertySymbols: Q }), L && u(u.S + u.F * (!G || a(function() {
var t2 = R();
return "[null]" != I([t2]) || "{}" != I({ a: t2 }) || "{}" != I(Object(t2));
})), "JSON", { stringify: function(t2) {
for (var e2, n2, r2 = [t2], o2 = 1; arguments.length > o2; )
r2.push(arguments[o2++]);
if (n2 = e2 = r2[1], (b(e2) || void 0 !== t2) && !U(t2))
return m(e2) || (e2 = function(t3, e3) {
if ("function" == typeof n2 && (e3 = n2.call(this, t3, e3)), !U(e3))
return e3;
}), r2[1] = e2, I.apply(L, r2);
} }), R.prototype[C] || n(3)(R.prototype, C, R.prototype.valueOf), l(R, "Symbol"), l(Math, "Math", true), l(r.JSON, "JSON", true);
}, function(t, e, n) {
var r = n(14)("meta"), o = n(5), i = n(6), u = n(4).f, s = 0, f = Object.isExtensible || function() {
return true;
}, a = !n(9)(function() {
return f(Object.preventExtensions({}));
}), c = function(t2) {
u(t2, r, { value: { i: "O" + ++s, w: {} } });
}, l = t.exports = { KEY: r, NEED: false, fastKey: function(t2, e2) {
if (!o(t2))
return "symbol" == typeof t2 ? t2 : ("string" == typeof t2 ? "S" : "P") + t2;
if (!i(t2, r)) {
if (!f(t2))
return "F";
if (!e2)
return "E";
c(t2);
}
return t2[r].i;
}, getWeak: function(t2, e2) {
if (!i(t2, r)) {
if (!f(t2))
return true;
if (!e2)
return false;
c(t2);
}
return t2[r].w;
}, onFreeze: function(t2) {
return a && l.NEED && f(t2) && !i(t2, r) && c(t2), t2;
} };
}, function(t, e, n) {
var r = n(10), o = n(32), i = n(21);
t.exports = function(t2) {
var e2 = r(t2), n2 = o.f;
if (n2)
for (var u, s = n2(t2), f = i.f, a = 0; s.length > a; )
f.call(t2, u = s[a++]) && e2.push(u);
return e2;
};
}, function(t, e, n) {
var r = n(11), o = n(43).f, i = {}.toString, u = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
t.exports.f = function(t2) {
return u && "[object Window]" == i.call(t2) ? function(t3) {
try {
return o(t3);
} catch (t4) {
return u.slice();
}
}(t2) : o(r(t2));
};
}, function(t, e, n) {
var r = n(21), o = n(13), i = n(11), u = n(23), s = n(6), f = n(34), a = Object.getOwnPropertyDescriptor;
e.f = n(8) ? a : function(t2, e2) {
if (t2 = i(t2), e2 = u(e2, true), f)
try {
return a(t2, e2);
} catch (t3) {
}
if (s(t2, e2))
return o(!r.f.call(t2, e2), t2[e2]);
};
}, function(t, e, n) {
for (var r = n(39), o = n(10), i = n(19), u = n(1), s = n(3), f = n(15), a = n(0), c = a("iterator"), l = a("toStringTag"), p = f.Array, v = { CSSRuleList: true, CSSStyleDeclaration: false, CSSValueList: false, ClientRectList: false, DOMRectList: false, DOMStringList: false, DOMTokenList: true, DataTransferItemList: false, FileList: false, HTMLAllCollection: false, HTMLCollection: false, HTMLFormElement: false, HTMLSelectElement: false, MediaList: true, MimeTypeArray: false, NamedNodeMap: false, NodeList: true, PaintRequestList: false, Plugin: false, PluginArray: false, SVGLengthList: false, SVGNumberList: false, SVGPathSegList: false, SVGPointList: false, SVGStringList: false, SVGTransformList: false, SourceBufferList: false, StyleSheetList: true, TextTrackCueList: false, TextTrackList: false, TouchList: false }, h = o(v), y = 0; y < h.length; y++) {
var d, m = h[y], g = v[m], b = u[m], S = b && b.prototype;
if (S && (S[c] || s(S, c, p), S[l] || s(S, l, m), f[m] = p, g))
for (d in r)
S[d] || i(S, d, r[d], true);
}
}]).default;
});
})(vueSmoothReflow_min);
var vueSmoothReflow_minExports = vueSmoothReflow_min.exports;
const smoothReflow = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(vueSmoothReflow_minExports);
const _sfc_main = vue.defineComponent({
name: "SmoothReflow",
mixins: [smoothReflow],
props: {
tag: {
type: String,
required: false,
default: "div"
},
options: {
type: Object,
required: false,
default: () => ({
property: ["height", "width", "transform"],
transition: "height .2s, width .2s, transform .2s"
})
}
},
mounted() {
this.$smoothReflow(this.options);
}
});
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), null, {
default: vue.withCtx(() => [
vue.renderSlot(_ctx.$slots, "default")
]),
_: 3
});
}
const MtSmoothReflow = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render]]);
module.exports = MtSmoothReflow;
//# sourceMappingURL=MtSmoothReflow.js.map