@car-cutter/wc-webplayer 3.2.3 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +148 -138
- package/dist/index.umd.cjs +3 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Qt = "cc-webplayer", wn = "cc-webplayer-custom-media", yn = "cc-webplayer-icon", bo = "composition-loading", Co = "composition-loaded", Eo = "composition-load-error", Lo = "item-change", Mo = "extend-mode-on", ko = "extend-mode-off", Wn = "hotspots-on", Bn = "hotspots-off", Io = "gallery-open", To = "gallery-close";
|
|
2
2
|
const So = "quality";
|
|
3
3
|
const Po = "full_screen", No = "cc-webplayer:";
|
|
4
4
|
const xn = "ew-resize";
|
|
@@ -42,9 +42,9 @@ function Oo() {
|
|
|
42
42
|
return bn();
|
|
43
43
|
}
|
|
44
44
|
function Fo() {
|
|
45
|
-
return !!customElements.get(
|
|
45
|
+
return !!customElements.get(Qt) && !!customElements.get(wn) && !!customElements.get(yn);
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var zt, Ie, pr, yt, Vn, hr, mr, gr, Cn, un, dn, vr, At = {}, _r = [], Ho = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ot = Array.isArray;
|
|
48
48
|
function st(e, t) {
|
|
49
49
|
for (var n in t) e[n] = t[n];
|
|
50
50
|
return e;
|
|
@@ -55,10 +55,10 @@ function En(e) {
|
|
|
55
55
|
function ft(e, t, n) {
|
|
56
56
|
var o, i, s, u = {};
|
|
57
57
|
for (s in t) s == "key" ? o = t[s] : s == "ref" ? i = t[s] : u[s] = t[s];
|
|
58
|
-
if (arguments.length > 2 && (u.children = arguments.length > 3 ?
|
|
59
|
-
return
|
|
58
|
+
if (arguments.length > 2 && (u.children = arguments.length > 3 ? zt.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (s in e.defaultProps) u[s] === void 0 && (u[s] = e.defaultProps[s]);
|
|
59
|
+
return Rt(e, u, o, i, null);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Rt(e, t, n, o, i) {
|
|
62
62
|
var s = { type: e, props: t, key: n, ref: o, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: i ?? ++pr, __i: -1, __u: 0 };
|
|
63
63
|
return i == null && Ie.vnode != null && Ie.vnode(s), s;
|
|
64
64
|
}
|
|
@@ -87,20 +87,20 @@ function wr(e) {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
function fn(e) {
|
|
90
|
-
(!e.__d && (e.__d = !0) && yt.push(e) && !
|
|
90
|
+
(!e.__d && (e.__d = !0) && yt.push(e) && !Jt.__r++ || Vn != Ie.debounceRendering) && ((Vn = Ie.debounceRendering) || hr)(Jt);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Jt() {
|
|
93
93
|
for (var e, t, n, o, i, s, u, r = 1; yt.length; ) yt.length > r && yt.sort(mr), e = yt.shift(), r = yt.length, e.__d && (n = void 0, o = void 0, i = (o = (t = e).__v).__e, s = [], u = [], t.__P && ((n = st({}, o)).__v = o.__v + 1, Ie.vnode && Ie.vnode(n), Ln(t.__P, n, o, t.__n, t.__P.namespaceURI, 32 & o.__u ? [i] : null, s, i ?? Et(o), !!(32 & o.__u), u), n.__v = o.__v, n.__.__k[n.__i] = n, br(s, n, u), o.__e = o.__ = null, n.__e != i && wr(n)));
|
|
94
|
-
|
|
94
|
+
Jt.__r = 0;
|
|
95
95
|
}
|
|
96
96
|
function yr(e, t, n, o, i, s, u, r, v, m, L) {
|
|
97
97
|
var f, p, a, b, I, k, g, y = o && o.__k || _r, E = t.length;
|
|
98
|
-
for (v = Wo(n, t, y, v, E), f = 0; f < E; f++) (a = n.__k[f]) != null && (p = a.__i == -1 ?
|
|
98
|
+
for (v = Wo(n, t, y, v, E), f = 0; f < E; f++) (a = n.__k[f]) != null && (p = a.__i == -1 ? At : y[a.__i] || At, a.__i = f, k = Ln(e, a, p, i, s, u, r, v, m, L), b = a.__e, a.ref && p.ref != a.ref && (p.ref && Mn(p.ref, null, a), L.push(a.ref, a.__c || b, a)), I == null && b != null && (I = b), (g = !!(4 & a.__u)) || p.__k === a.__k ? v = xr(a, v, e, g) : typeof a.type == "function" && k !== void 0 ? v = k : b && (v = b.nextSibling), a.__u &= -7);
|
|
99
99
|
return n.__e = I, v;
|
|
100
100
|
}
|
|
101
101
|
function Wo(e, t, n, o, i) {
|
|
102
102
|
var s, u, r, v, m, L = n.length, f = L, p = 0;
|
|
103
|
-
for (e.__k = new Array(i), s = 0; s < i; s++) (u = t[s]) != null && typeof u != "boolean" && typeof u != "function" ? (typeof u == "string" || typeof u == "number" || typeof u == "bigint" || u.constructor == String ? u = e.__k[s] =
|
|
103
|
+
for (e.__k = new Array(i), s = 0; s < i; s++) (u = t[s]) != null && typeof u != "boolean" && typeof u != "function" ? (typeof u == "string" || typeof u == "number" || typeof u == "bigint" || u.constructor == String ? u = e.__k[s] = Rt(null, u, null, null, null) : Ot(u) ? u = e.__k[s] = Rt(Ke, { children: u }, null, null, null) : u.constructor === void 0 && u.__b > 0 ? u = e.__k[s] = Rt(u.type, u.props, u.key, u.ref ? u.ref : null, u.__v) : e.__k[s] = u, v = s + p, u.__ = e, u.__b = e.__b + 1, r = null, (m = u.__i = Bo(u, n, v, f)) != -1 && (f--, (r = n[m]) && (r.__u |= 2)), r == null || r.__v == null ? (m == -1 && (i > L ? p-- : i < L && p++), typeof u.type != "function" && (u.__u |= 4)) : m != v && (m == v - 1 ? p-- : m == v + 1 ? p++ : (m > v ? p-- : p++, u.__u |= 4))) : e.__k[s] = null;
|
|
104
104
|
if (f) for (s = 0; s < L; s++) (r = n[s]) != null && (2 & r.__u) == 0 && (r.__e == o && (o = Et(r)), Er(r, r));
|
|
105
105
|
return o;
|
|
106
106
|
}
|
|
@@ -117,7 +117,7 @@ function xr(e, t, n, o) {
|
|
|
117
117
|
return t;
|
|
118
118
|
}
|
|
119
119
|
function dt(e, t) {
|
|
120
|
-
return t = t || [], e == null || typeof e == "boolean" || (
|
|
120
|
+
return t = t || [], e == null || typeof e == "boolean" || (Ot(e) ? e.some(function(n) {
|
|
121
121
|
dt(n, t);
|
|
122
122
|
}) : t.push(e)), t;
|
|
123
123
|
}
|
|
@@ -132,7 +132,7 @@ function Bo(e, t, n, o) {
|
|
|
132
132
|
function Xn(e, t, n) {
|
|
133
133
|
t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || Ho.test(t) ? n : n + "px";
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Zt(e, t, n, o, i) {
|
|
136
136
|
var s, u;
|
|
137
137
|
e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
|
|
138
138
|
else {
|
|
@@ -184,7 +184,7 @@ function Ln(e, t, n, o, i, s, u, r, v, m) {
|
|
|
184
184
|
} else do
|
|
185
185
|
f.__d = !1, P && P(t), L = f.render(f.props, f.state, f.context), f.state = f.__s;
|
|
186
186
|
while (f.__d && ++j < 25);
|
|
187
|
-
f.state = f.__s, f.getChildContext != null && (o = st(st({}, o), f.getChildContext())), y && !p && f.getSnapshotBeforeUpdate != null && (I = f.getSnapshotBeforeUpdate(a, b)), H = L, L != null && L.type === Ke && L.key == null && (H = Cr(L.props.children)), r = yr(e,
|
|
187
|
+
f.state = f.__s, f.getChildContext != null && (o = st(st({}, o), f.getChildContext())), y && !p && f.getSnapshotBeforeUpdate != null && (I = f.getSnapshotBeforeUpdate(a, b)), H = L, L != null && L.type === Ke && L.key == null && (H = Cr(L.props.children)), r = yr(e, Ot(H) ? H : [H], t, n, o, i, s, u, r, v, m), f.base = t.__e, t.__u &= -161, f.__h.length && u.push(f), k && (f.__E = f.__ = null);
|
|
188
188
|
} catch (V) {
|
|
189
189
|
if (t.__v = null, v || s != null) if (V.then) {
|
|
190
190
|
for (t.__u |= v ? 160 : 128; r && r.nodeType == 8 && r.nextSibling; ) r = r.nextSibling;
|
|
@@ -215,10 +215,10 @@ function br(e, t, n) {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
function Cr(e) {
|
|
218
|
-
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e :
|
|
218
|
+
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ot(e) ? e.map(Cr) : st({}, e);
|
|
219
219
|
}
|
|
220
220
|
function Vo(e, t, n, o, i, s, u, r, v) {
|
|
221
|
-
var m, L, f, p, a, b, I, k = n.props ||
|
|
221
|
+
var m, L, f, p, a, b, I, k = n.props || At, g = t.props, y = t.type;
|
|
222
222
|
if (y == "svg" ? i = "http://www.w3.org/2000/svg" : y == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i || (i = "http://www.w3.org/1999/xhtml"), s != null) {
|
|
223
223
|
for (m = 0; m < s.length; m++) if ((a = s[m]) && "setAttribute" in a == !!y && (y ? a.localName == y : a.nodeType == 3)) {
|
|
224
224
|
e = a, s[m] = null;
|
|
@@ -231,18 +231,18 @@ function Vo(e, t, n, o, i, s, u, r, v) {
|
|
|
231
231
|
}
|
|
232
232
|
if (y == null) k === g || r && e.data == g || (e.data = g);
|
|
233
233
|
else {
|
|
234
|
-
if (s = s &&
|
|
234
|
+
if (s = s && zt.call(e.childNodes), !r && s != null) for (k = {}, m = 0; m < e.attributes.length; m++) k[(a = e.attributes[m]).name] = a.value;
|
|
235
235
|
for (m in k) if (a = k[m], m != "children") {
|
|
236
236
|
if (m == "dangerouslySetInnerHTML") f = a;
|
|
237
237
|
else if (!(m in g)) {
|
|
238
238
|
if (m == "value" && "defaultValue" in g || m == "checked" && "defaultChecked" in g) continue;
|
|
239
|
-
|
|
239
|
+
Zt(e, m, null, a, i);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
for (m in g) a = g[m], m == "children" ? p = a : m == "dangerouslySetInnerHTML" ? L = a : m == "value" ? b = a : m == "checked" ? I = a : r && typeof a != "function" || k[m] === a ||
|
|
242
|
+
for (m in g) a = g[m], m == "children" ? p = a : m == "dangerouslySetInnerHTML" ? L = a : m == "value" ? b = a : m == "checked" ? I = a : r && typeof a != "function" || k[m] === a || Zt(e, m, a, k[m], i);
|
|
243
243
|
if (L) r || f && (L.__html == f.__html || L.__html == e.innerHTML) || (e.innerHTML = L.__html), t.__k = [];
|
|
244
|
-
else if (f && (e.innerHTML = ""), yr(t.type == "template" ? e.content : e,
|
|
245
|
-
r || (m = "value", y == "progress" && b == null ? e.removeAttribute("value") : b != null && (b !== e[m] || y == "progress" && !b || y == "option" && b != k[m]) &&
|
|
244
|
+
else if (f && (e.innerHTML = ""), yr(t.type == "template" ? e.content : e, Ot(p) ? p : [p], t, n, o, y == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, s, u, s ? s[0] : n.__k && Et(n, 0), r, v), s != null) for (m = s.length; m--; ) En(s[m]);
|
|
245
|
+
r || (m = "value", y == "progress" && b == null ? e.removeAttribute("value") : b != null && (b !== e[m] || y == "progress" && !b || y == "option" && b != k[m]) && Zt(e, m, b, k[m], i), m = "checked", I != null && I != e[m] && Zt(e, m, I, k[m], i));
|
|
246
246
|
}
|
|
247
247
|
return e;
|
|
248
248
|
}
|
|
@@ -272,19 +272,19 @@ function Er(e, t, n) {
|
|
|
272
272
|
function Xo(e, t, n) {
|
|
273
273
|
return this.constructor(e, n);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function Dt(e, t, n) {
|
|
276
276
|
var o, i, s, u;
|
|
277
|
-
t == document && (t = document.documentElement), Ie.__ && Ie.__(e, t), i = (o = typeof n == "function") ? null : n && n.__k || t.__k, s = [], u = [], Ln(t, e = (!o && n || t).__k = ft(Ke, null, [e]), i ||
|
|
277
|
+
t == document && (t = document.documentElement), Ie.__ && Ie.__(e, t), i = (o = typeof n == "function") ? null : n && n.__k || t.__k, s = [], u = [], Ln(t, e = (!o && n || t).__k = ft(Ke, null, [e]), i || At, At, t.namespaceURI, !o && n ? [n] : i ? null : t.firstChild ? zt.call(t.childNodes) : null, s, !o && n ? n : i ? i.__e : t.firstChild, o, u), br(s, e, u);
|
|
278
278
|
}
|
|
279
279
|
function Lr(e, t) {
|
|
280
|
-
|
|
280
|
+
Dt(e, t, Lr);
|
|
281
281
|
}
|
|
282
282
|
function Zo(e, t, n) {
|
|
283
283
|
var o, i, s, u, r = st({}, e.props);
|
|
284
284
|
for (s in e.type && e.type.defaultProps && (u = e.type.defaultProps), t) s == "key" ? o = t[s] : s == "ref" ? i = t[s] : r[s] = t[s] === void 0 && u != null ? u[s] : t[s];
|
|
285
|
-
return arguments.length > 2 && (r.children = arguments.length > 3 ?
|
|
285
|
+
return arguments.length > 2 && (r.children = arguments.length > 3 ? zt.call(arguments, 2) : n), Rt(e.type, r, o || e.key, i || e.ref, null);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Ft(e) {
|
|
288
288
|
function t(n) {
|
|
289
289
|
var o, i;
|
|
290
290
|
return this.getChildContext || (o = /* @__PURE__ */ new Set(), (i = {})[t.__c] = this, this.getChildContext = function() {
|
|
@@ -307,7 +307,7 @@ function Ot(e) {
|
|
|
307
307
|
return n.children(o);
|
|
308
308
|
}).contextType = t, t;
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
zt = _r.slice, Ie = { __e: function(e, t, n, o) {
|
|
311
311
|
for (var i, s, u; t = t.__; ) if ((i = t.__c) && !i.__) try {
|
|
312
312
|
if ((s = i.constructor) && s.getDerivedStateFromError != null && (i.setState(s.getDerivedStateFromError(e)), u = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, o || {}), u = i.__d), u) return i.__E = i;
|
|
313
313
|
} catch (r) {
|
|
@@ -321,7 +321,7 @@ Dt = _r.slice, Ie = { __e: function(e, t, n, o) {
|
|
|
321
321
|
this.__v && (this.__e = !0, e && this.__h.push(e), fn(this));
|
|
322
322
|
}, lt.prototype.render = Ke, yt = [], hr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, mr = function(e, t) {
|
|
323
323
|
return e.__v.__b - t.__v.__b;
|
|
324
|
-
},
|
|
324
|
+
}, Jt.__r = 0, gr = /(PointerCapture)$|Capture$/i, Cn = 0, un = Zn(!1), dn = Zn(!0), vr = 0;
|
|
325
325
|
var Yo = 0;
|
|
326
326
|
function c(e, t, n, o, i, s) {
|
|
327
327
|
t || (t = {});
|
|
@@ -331,7 +331,7 @@ function c(e, t, n, o, i, s) {
|
|
|
331
331
|
if (typeof e == "function" && (u = e.defaultProps)) for (r in u) v[r] === void 0 && (v[r] = u[r]);
|
|
332
332
|
return Ie.vnode && Ie.vnode(m), m;
|
|
333
333
|
}
|
|
334
|
-
var mt, Ye,
|
|
334
|
+
var mt, Ye, sn, Yn, Lt = 0, Mr = [], je = Ie, Gn = je.__b, $n = je.__r, jn = je.diffed, qn = je.__c, Kn = je.unmount, Jn = je.__;
|
|
335
335
|
function Mt(e, t) {
|
|
336
336
|
je.__h && je.__h(Ye, e, Lt || t), Lt = 0;
|
|
337
337
|
var n = Ye.__H || (Ye.__H = { __: [], __h: [] });
|
|
@@ -378,7 +378,7 @@ function me(e, t) {
|
|
|
378
378
|
var n = Mt(mt++, 3);
|
|
379
379
|
!je.__s && In(n.__H, t) && (n.__ = e, n.u = t, Ye.__H.__h.push(n));
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function Ht(e, t) {
|
|
382
382
|
var n = Mt(mt++, 4);
|
|
383
383
|
!je.__s && In(n.__H, t) && (n.__ = e, n.u = t, Ye.__h.push(n));
|
|
384
384
|
}
|
|
@@ -388,7 +388,7 @@ function xe(e) {
|
|
|
388
388
|
}, []);
|
|
389
389
|
}
|
|
390
390
|
function kr(e, t, n) {
|
|
391
|
-
Lt = 6,
|
|
391
|
+
Lt = 6, Ht(function() {
|
|
392
392
|
if (typeof e == "function") {
|
|
393
393
|
var o = e(t());
|
|
394
394
|
return function() {
|
|
@@ -427,7 +427,7 @@ function Tr() {
|
|
|
427
427
|
}
|
|
428
428
|
function Go() {
|
|
429
429
|
for (var e; e = Mr.shift(); ) if (e.__P && e.__H) try {
|
|
430
|
-
e.__H.__h.forEach(
|
|
430
|
+
e.__H.__h.forEach(jt), e.__H.__h.forEach(hn), e.__H.__h = [];
|
|
431
431
|
} catch (t) {
|
|
432
432
|
e.__H.__h = [], je.__e(t, e.__v);
|
|
433
433
|
}
|
|
@@ -439,19 +439,19 @@ je.__b = function(e) {
|
|
|
439
439
|
}, je.__r = function(e) {
|
|
440
440
|
$n && $n(e), mt = 0;
|
|
441
441
|
var t = (Ye = e.__c).__H;
|
|
442
|
-
t && (
|
|
442
|
+
t && (sn === Ye ? (t.__h = [], Ye.__h = [], t.__.forEach(function(n) {
|
|
443
443
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
444
|
-
})) : (t.__h.forEach(
|
|
444
|
+
})) : (t.__h.forEach(jt), t.__h.forEach(hn), t.__h = [], mt = 0)), sn = Ye;
|
|
445
445
|
}, je.diffed = function(e) {
|
|
446
446
|
jn && jn(e);
|
|
447
447
|
var t = e.__c;
|
|
448
448
|
t && t.__H && (t.__H.__h.length && (Mr.push(t) !== 1 && Yn === je.requestAnimationFrame || ((Yn = je.requestAnimationFrame) || $o)(Go)), t.__H.__.forEach(function(n) {
|
|
449
449
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
450
|
-
})),
|
|
450
|
+
})), sn = Ye = null;
|
|
451
451
|
}, je.__c = function(e, t) {
|
|
452
452
|
t.some(function(n) {
|
|
453
453
|
try {
|
|
454
|
-
n.__h.forEach(
|
|
454
|
+
n.__h.forEach(jt), n.__h = n.__h.filter(function(o) {
|
|
455
455
|
return !o.__ || hn(o);
|
|
456
456
|
});
|
|
457
457
|
} catch (o) {
|
|
@@ -465,7 +465,7 @@ je.__b = function(e) {
|
|
|
465
465
|
var t, n = e.__c;
|
|
466
466
|
n && n.__H && (n.__H.__.forEach(function(o) {
|
|
467
467
|
try {
|
|
468
|
-
|
|
468
|
+
jt(o);
|
|
469
469
|
} catch (i) {
|
|
470
470
|
t = i;
|
|
471
471
|
}
|
|
@@ -478,7 +478,7 @@ function $o(e) {
|
|
|
478
478
|
}, o = setTimeout(n, 35);
|
|
479
479
|
Qn && (t = requestAnimationFrame(n));
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function jt(e) {
|
|
482
482
|
var t = Ye, n = e.__c;
|
|
483
483
|
typeof n == "function" && (e.__c = void 0, n()), Ye = t;
|
|
484
484
|
}
|
|
@@ -505,15 +505,15 @@ function mn(e, t) {
|
|
|
505
505
|
}
|
|
506
506
|
function Nr(e, t) {
|
|
507
507
|
var n = t(), o = Ce({ t: { __: n, u: t } }), i = o[0].t, s = o[1];
|
|
508
|
-
return
|
|
509
|
-
i.__ = n, i.u = t,
|
|
508
|
+
return Ht(function() {
|
|
509
|
+
i.__ = n, i.u = t, ln(i) && s({ t: i });
|
|
510
510
|
}, [e, n, t]), me(function() {
|
|
511
|
-
return
|
|
512
|
-
|
|
511
|
+
return ln(i) && s({ t: i }), e(function() {
|
|
512
|
+
ln(i) && s({ t: i });
|
|
513
513
|
});
|
|
514
514
|
}, [e]), n;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function ln(e) {
|
|
517
517
|
var t, n, o = e.u, i = e.__;
|
|
518
518
|
try {
|
|
519
519
|
var s = o();
|
|
@@ -531,7 +531,7 @@ function Ar(e) {
|
|
|
531
531
|
function Dr() {
|
|
532
532
|
return [!1, Rr];
|
|
533
533
|
}
|
|
534
|
-
var zr =
|
|
534
|
+
var zr = Ht;
|
|
535
535
|
function gn(e, t) {
|
|
536
536
|
this.props = e, this.context = t;
|
|
537
537
|
}
|
|
@@ -588,7 +588,7 @@ function Hr(e, t, n) {
|
|
|
588
588
|
return Hr(o, t, n);
|
|
589
589
|
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function qt() {
|
|
592
592
|
this.__u = 0, this.o = null, this.__b = null;
|
|
593
593
|
}
|
|
594
594
|
function Ur(e) {
|
|
@@ -609,13 +609,13 @@ function Qo(e) {
|
|
|
609
609
|
}
|
|
610
610
|
return s.displayName = "Lazy", s.__f = !0, s;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function Pt() {
|
|
613
613
|
this.i = null, this.l = null;
|
|
614
614
|
}
|
|
615
615
|
Ie.unmount = function(e) {
|
|
616
616
|
var t = e.__c;
|
|
617
617
|
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), nr && nr(e);
|
|
618
|
-
}, (
|
|
618
|
+
}, (qt.prototype = new lt()).__c = function(e, t) {
|
|
619
619
|
var n = t.__c, o = this;
|
|
620
620
|
o.o == null && (o.o = []), o.o.push(n);
|
|
621
621
|
var i = Ur(o.__v), s = !1, u = function() {
|
|
@@ -635,9 +635,9 @@ Ie.unmount = function(e) {
|
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
o.__u++ || 32 & t.__u || o.setState({ __a: o.__b = o.__v.__k[0] }), e.then(u, u);
|
|
638
|
-
},
|
|
638
|
+
}, qt.prototype.componentWillUnmount = function() {
|
|
639
639
|
this.o = [];
|
|
640
|
-
},
|
|
640
|
+
}, qt.prototype.render = function(e, t) {
|
|
641
641
|
if (this.__b) {
|
|
642
642
|
if (this.__v.__k) {
|
|
643
643
|
var n = document.createElement("div"), o = this.__v.__k[0].__c;
|
|
@@ -663,7 +663,7 @@ function ea(e) {
|
|
|
663
663
|
function ta(e) {
|
|
664
664
|
var t = this, n = e.h;
|
|
665
665
|
if (t.componentWillUnmount = function() {
|
|
666
|
-
|
|
666
|
+
Dt(null, t.v), t.v = null, t.h = null;
|
|
667
667
|
}, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
|
|
668
668
|
for (var o = t.__v; o !== null && !o.__m && o.__ !== null; ) o = o.__;
|
|
669
669
|
t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: o.__m }, contains: function() {
|
|
@@ -674,13 +674,13 @@ function ta(e) {
|
|
|
674
674
|
this.childNodes.splice(this.childNodes.indexOf(i) >>> 1, 1), t.h.removeChild(i);
|
|
675
675
|
} };
|
|
676
676
|
}
|
|
677
|
-
|
|
677
|
+
Dt(ft(ea, { context: t.context }, e.__v), t.v);
|
|
678
678
|
}
|
|
679
679
|
function na(e, t) {
|
|
680
680
|
var n = ft(ta, { __v: e, h: t });
|
|
681
681
|
return n.containerInfo = t, n;
|
|
682
682
|
}
|
|
683
|
-
(
|
|
683
|
+
(Pt.prototype = new lt()).__a = function(e) {
|
|
684
684
|
var t = this, n = Ur(t.__v), o = t.l.get(e);
|
|
685
685
|
return o[0]++, function(i) {
|
|
686
686
|
var s = function() {
|
|
@@ -688,13 +688,13 @@ function na(e, t) {
|
|
|
688
688
|
};
|
|
689
689
|
n ? n(s) : s();
|
|
690
690
|
};
|
|
691
|
-
},
|
|
691
|
+
}, Pt.prototype.render = function(e) {
|
|
692
692
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
693
693
|
var t = dt(e.children);
|
|
694
694
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
695
695
|
for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
|
|
696
696
|
return e.children;
|
|
697
|
-
},
|
|
697
|
+
}, Pt.prototype.componentDidUpdate = Pt.prototype.componentDidMount = function() {
|
|
698
698
|
var e = this;
|
|
699
699
|
this.l.forEach(function(t, n) {
|
|
700
700
|
rr(e, n, t);
|
|
@@ -704,7 +704,7 @@ var Wr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 601
|
|
|
704
704
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
705
705
|
};
|
|
706
706
|
function Br(e, t, n) {
|
|
707
|
-
return t.__k == null && (t.textContent = ""),
|
|
707
|
+
return t.__k == null && (t.textContent = ""), Dt(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
708
708
|
}
|
|
709
709
|
function la(e, t, n) {
|
|
710
710
|
return Lr(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
@@ -760,24 +760,24 @@ Ie.diffed = function(e) {
|
|
|
760
760
|
};
|
|
761
761
|
var pa = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
762
762
|
return Tn.__n[e.__c].props.value;
|
|
763
|
-
}, useCallback: Z, useContext: kt, useDebugValue: Ir, useDeferredValue: Ar, useEffect: me, useId: Tr, useImperativeHandle: kr, useInsertionEffect: zr, useLayoutEffect:
|
|
763
|
+
}, useCallback: Z, useContext: kt, useDebugValue: Ir, useDeferredValue: Ar, useEffect: me, useId: Tr, useImperativeHandle: kr, useInsertionEffect: zr, useLayoutEffect: Ht, useMemo: ze, useReducer: kn, useRef: xe, useState: Ce, useSyncExternalStore: Nr, useTransition: Dr } } };
|
|
764
764
|
function ha(e) {
|
|
765
765
|
return ft.bind(null, e);
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function en(e) {
|
|
768
768
|
return !!e && e.$$typeof === Wr;
|
|
769
769
|
}
|
|
770
770
|
function ma(e) {
|
|
771
|
-
return
|
|
771
|
+
return en(e) && e.type === Ke;
|
|
772
772
|
}
|
|
773
773
|
function ga(e) {
|
|
774
774
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
775
775
|
}
|
|
776
776
|
function va(e) {
|
|
777
|
-
return
|
|
777
|
+
return en(e) ? Zo.apply(null, arguments) : e;
|
|
778
778
|
}
|
|
779
779
|
function Vr(e) {
|
|
780
|
-
return !!e.__k && (
|
|
780
|
+
return !!e.__k && (Dt(null, e), !0);
|
|
781
781
|
}
|
|
782
782
|
function _a(e) {
|
|
783
783
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
@@ -786,20 +786,20 @@ var wa = function(e, t) {
|
|
|
786
786
|
return e(t);
|
|
787
787
|
}, ya = function(e, t) {
|
|
788
788
|
return e(t);
|
|
789
|
-
}, xa = Ke, ba =
|
|
789
|
+
}, xa = Ke, ba = en, Xr = { useState: Ce, useId: Tr, useReducer: kn, useEffect: me, useLayoutEffect: Ht, useInsertionEffect: zr, useTransition: Dr, useDeferredValue: Ar, useSyncExternalStore: Nr, startTransition: Rr, useRef: xe, useImperativeHandle: kr, useMemo: ze, useCallback: Z, useContext: kt, useDebugValue: Ir, version: "18.3.1", Children: Ko, render: Br, hydrate: la, unmountComponentAtNode: Vr, createPortal: na, createElement: ft, createContext: Ft, createFactory: ha, cloneElement: va, createRef: Uo, Fragment: Ke, isValidElement: en, isElement: ba, isFragment: ma, isMemo: ga, findDOMNode: _a, Component: lt, PureComponent: gn, memo: jo, forwardRef: Or, flushSync: ya, unstable_batchedUpdates: wa, StrictMode: xa, Suspense: qt, SuspenseList: Pt, lazy: Qo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: pa };
|
|
790
790
|
async function Ca(e) {
|
|
791
791
|
const t = await fetch(e);
|
|
792
792
|
if (!t.ok)
|
|
793
793
|
throw new Error(`Failed to fetch composition: ${t.statusText}`);
|
|
794
794
|
return await t.json();
|
|
795
795
|
}
|
|
796
|
-
const
|
|
796
|
+
const Tt = /* @__PURE__ */ new Map(), Ea = (e) => {
|
|
797
797
|
const [t, n] = Ce({
|
|
798
798
|
status: "pending",
|
|
799
799
|
isSuccess: !1
|
|
800
800
|
});
|
|
801
801
|
return me(() => {
|
|
802
|
-
const o = (s) => n({ status: "success", data: s, isSuccess: !0 }), i =
|
|
802
|
+
const o = (s) => n({ status: "success", data: s, isSuccess: !0 }), i = Tt.get(e);
|
|
803
803
|
if (i && !(i instanceof Promise)) {
|
|
804
804
|
o(i);
|
|
805
805
|
return;
|
|
@@ -811,10 +811,20 @@ const ln = /* @__PURE__ */ new Map(), Ea = (e) => {
|
|
|
811
811
|
try {
|
|
812
812
|
let s;
|
|
813
813
|
if (i)
|
|
814
|
-
|
|
814
|
+
try {
|
|
815
|
+
s = await i;
|
|
816
|
+
} catch (u) {
|
|
817
|
+
throw Tt.delete(e), u;
|
|
818
|
+
}
|
|
815
819
|
else {
|
|
816
820
|
const u = Ca(e);
|
|
817
|
-
|
|
821
|
+
Tt.set(e, u);
|
|
822
|
+
try {
|
|
823
|
+
s = await u;
|
|
824
|
+
} catch (r) {
|
|
825
|
+
throw Tt.delete(e), r;
|
|
826
|
+
}
|
|
827
|
+
Tt.set(e, s);
|
|
818
828
|
}
|
|
819
829
|
o(s);
|
|
820
830
|
} catch (s) {
|
|
@@ -826,14 +836,14 @@ const ln = /* @__PURE__ */ new Map(), Ea = (e) => {
|
|
|
826
836
|
}
|
|
827
837
|
})();
|
|
828
838
|
}, [e]), t;
|
|
829
|
-
}, Zr =
|
|
839
|
+
}, Zr = Ft(null), qe = () => {
|
|
830
840
|
const e = kt(Zr);
|
|
831
841
|
if (!e)
|
|
832
842
|
throw new Error(
|
|
833
843
|
"useGlobalContext must be used within a GlobalContextProvider"
|
|
834
844
|
);
|
|
835
845
|
return e;
|
|
836
|
-
}, La = ({ children: e, ...t }) => /* @__PURE__ */ c(Zr.Provider, { value: t, children: e }), Yr =
|
|
846
|
+
}, La = ({ children: e, ...t }) => /* @__PURE__ */ c(Zr.Provider, { value: t, children: e }), Yr = Ft(null), gt = () => {
|
|
837
847
|
const e = kt(Yr);
|
|
838
848
|
if (!e)
|
|
839
849
|
throw new Error(
|
|
@@ -894,7 +904,7 @@ const ln = /* @__PURE__ */ new Map(), Ea = (e) => {
|
|
|
894
904
|
function at(e, t, n) {
|
|
895
905
|
return Math.min(Math.max(e, t), n);
|
|
896
906
|
}
|
|
897
|
-
const
|
|
907
|
+
const Kt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
|
|
898
908
|
const u = at(e, t, n);
|
|
899
909
|
if (u === (s ? n : t)) return o;
|
|
900
910
|
if (u === (s ? t : n)) return 1;
|
|
@@ -909,7 +919,7 @@ const qt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
|
|
|
909
919
|
s < o && (o = s, n = t[i]);
|
|
910
920
|
}
|
|
911
921
|
return n;
|
|
912
|
-
}, jr =
|
|
922
|
+
}, jr = Ft(null), Sn = () => kt(jr), Ut = () => {
|
|
913
923
|
const e = Sn();
|
|
914
924
|
if (!e)
|
|
915
925
|
throw new Error(
|
|
@@ -919,7 +929,7 @@ const qt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
|
|
|
919
929
|
}, cr = "*:size-full", ur = "*:object-cover *:size-full", Ia = ({ children: e }) => {
|
|
920
930
|
const { compositionUrl: t } = qe(), n = Z(
|
|
921
931
|
() => document.querySelector(
|
|
922
|
-
`${
|
|
932
|
+
`${Qt}[composition-url="${t}"]`
|
|
923
933
|
),
|
|
924
934
|
[t]
|
|
925
935
|
), o = Z((b) => {
|
|
@@ -1055,7 +1065,7 @@ const qt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
|
|
|
1055
1065
|
children: e
|
|
1056
1066
|
}
|
|
1057
1067
|
);
|
|
1058
|
-
}, qr =
|
|
1068
|
+
}, qr = Ft(null), Qe = () => {
|
|
1059
1069
|
const e = kt(qr);
|
|
1060
1070
|
if (!e)
|
|
1061
1071
|
throw new Error(
|
|
@@ -1074,7 +1084,7 @@ const qt = (e, t, n) => e + (t - e) * n, lr = (e, t, n, o, i, s = !1) => {
|
|
|
1074
1084
|
isFullScreen: u,
|
|
1075
1085
|
requestFullscreen: r,
|
|
1076
1086
|
exitFullscreen: v
|
|
1077
|
-
} = qe(), { customMediaList: m } =
|
|
1087
|
+
} = qe(), { customMediaList: m } = Ut(), { categories: L, items: f } = gt(), p = ze(() => {
|
|
1078
1088
|
const F = new Array(
|
|
1079
1089
|
...f
|
|
1080
1090
|
), se = m.slice().sort((A, he) => A.index < 0 && he.index < 0 ? he.index - A.index : A.index < 0 ? 1 : he.index < 0 ? -1 : A.index - he.index);
|
|
@@ -1620,7 +1630,7 @@ const Je = ({
|
|
|
1620
1630
|
className: t,
|
|
1621
1631
|
children: n
|
|
1622
1632
|
}) => {
|
|
1623
|
-
const { getIconConfig: o } =
|
|
1633
|
+
const { getIconConfig: o } = Ut(), s = o(e)?.Icon;
|
|
1624
1634
|
return s ? t ? /* @__PURE__ */ c("div", { className: t, children: s }) : s : n;
|
|
1625
1635
|
}, Oa = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customizationKey: "UI_CLOSE", children: /* @__PURE__ */ c("svg", { className: e, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ c(
|
|
1626
1636
|
"path",
|
|
@@ -1679,19 +1689,19 @@ const Je = ({
|
|
|
1679
1689
|
errorImage: "https://cdn.car-cutter.com/libs/web-player/v3/assets/autonation-fallback.svg"
|
|
1680
1690
|
}, Za = {
|
|
1681
1691
|
autonation: Xa
|
|
1682
|
-
},
|
|
1692
|
+
}, Wt = (e) => {
|
|
1683
1693
|
if (e)
|
|
1684
1694
|
return Za[e];
|
|
1685
1695
|
}, Ya = () => {
|
|
1686
1696
|
let e = "https://cdn.car-cutter.com/libs/web-player/v3/assets/car_placeholder.png";
|
|
1687
|
-
const { themeConfig: t } = qe(), n = ze(() =>
|
|
1697
|
+
const { themeConfig: t } = qe(), n = ze(() => Wt(t), [t]);
|
|
1688
1698
|
n?.errorImage && (e = n.errorImage);
|
|
1689
1699
|
const o = {
|
|
1690
1700
|
className: n?.errorImage ? void 0 : "h-20 small:h-28",
|
|
1691
1701
|
style: n?.errorImage ? { height: "12rem", width: "auto" } : void 0
|
|
1692
1702
|
};
|
|
1693
1703
|
return /* @__PURE__ */ c("img", { ...o, alt: "", src: e });
|
|
1694
|
-
},
|
|
1704
|
+
}, tn = ({ text: e, className: t }) => /* @__PURE__ */ c(
|
|
1695
1705
|
"div",
|
|
1696
1706
|
{
|
|
1697
1707
|
className: ce(
|
|
@@ -1986,7 +1996,7 @@ const to = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customiza
|
|
|
1986
1996
|
fadeIn: !n
|
|
1987
1997
|
}
|
|
1988
1998
|
) : /* @__PURE__ */ c("img", { className: o, src: e });
|
|
1989
|
-
},
|
|
1999
|
+
}, Yt = ({
|
|
1990
2000
|
children: e
|
|
1991
2001
|
}) => {
|
|
1992
2002
|
const { extendMode: t } = Qe();
|
|
@@ -2029,16 +2039,16 @@ const to = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customiza
|
|
|
2029
2039
|
let u;
|
|
2030
2040
|
switch (n) {
|
|
2031
2041
|
case "360":
|
|
2032
|
-
u = /* @__PURE__ */ c(
|
|
2042
|
+
u = /* @__PURE__ */ c(Yt, { children: /* @__PURE__ */ c(Pn, { className: "size-full" }) });
|
|
2033
2043
|
break;
|
|
2034
2044
|
case "interior-360":
|
|
2035
|
-
u = /* @__PURE__ */ c(
|
|
2045
|
+
u = /* @__PURE__ */ c(Yt, { children: /* @__PURE__ */ c(no, { className: "size-full" }) });
|
|
2036
2046
|
break;
|
|
2037
2047
|
case "video":
|
|
2038
|
-
u = /* @__PURE__ */ c(
|
|
2048
|
+
u = /* @__PURE__ */ c(Yt, { children: /* @__PURE__ */ c(ro, { className: "size-full p-0.5 text-background" }) });
|
|
2039
2049
|
break;
|
|
2040
2050
|
case "custom":
|
|
2041
|
-
u = o ? null : /* @__PURE__ */ c(
|
|
2051
|
+
u = o ? null : /* @__PURE__ */ c(Yt, { children: /* @__PURE__ */ c(to, { className: "size-full p-0.5 text-background" }) });
|
|
2042
2052
|
break;
|
|
2043
2053
|
}
|
|
2044
2054
|
return /* @__PURE__ */ c("div", { className: "relative bg-foreground/30", style: t, children: [
|
|
@@ -2313,7 +2323,7 @@ const to = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customiza
|
|
|
2313
2323
|
R(), p.current = null;
|
|
2314
2324
|
return;
|
|
2315
2325
|
}
|
|
2316
|
-
const K = Math.min(D / w, 1), N = io(K), W =
|
|
2326
|
+
const K = Math.min(D / w, 1), N = io(K), W = Kt(M, T, N), ie = Kt(P, H, N), O = Kt(j, Y, N);
|
|
2317
2327
|
a({ x: W, y: ie, scale: O }), J();
|
|
2318
2328
|
};
|
|
2319
2329
|
p.current = requestAnimationFrame(de);
|
|
@@ -2567,7 +2577,7 @@ const to = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customiza
|
|
|
2567
2577
|
a("click");
|
|
2568
2578
|
}, [a]), I = Z(() => {
|
|
2569
2579
|
a("hover");
|
|
2570
|
-
}, [a]), { getIconConfig: k } =
|
|
2580
|
+
}, [a]), { getIconConfig: k } = Ut(), g = i ? k(i) : void 0, y = !!u?.src?.trim(), E = u?.type === "image" && y, w = u?.type === "link" && y, M = u?.type === "pdf" && y, P = E || w || M, j = !!s || P, T = !!o, H = xe(null), Y = xe(null), R = xe(null), [V, z] = Ce(!1), J = P ? r === "damage" ? /* @__PURE__ */ c(ei, { className: "size-4" }) : /* @__PURE__ */ c(to, { className: "size-4" }) : /* @__PURE__ */ c("div", { className: "size-1" }), de = () => {
|
|
2571
2581
|
j && (b(), !(w || M) && L({
|
|
2572
2582
|
src: E ? u.src : void 0,
|
|
2573
2583
|
title: o,
|
|
@@ -2750,7 +2760,7 @@ const to = ({ className: e }) => /* @__PURE__ */ c(Je, { className: e, customiza
|
|
|
2750
2760
|
]
|
|
2751
2761
|
}
|
|
2752
2762
|
) });
|
|
2753
|
-
}, ni = 100, Ct = 100,
|
|
2763
|
+
}, ni = 100, Ct = 100, Nt = 50, ri = 0, oi = 0, ai = (e) => {
|
|
2754
2764
|
const [t, n] = Ce(0), [o, i] = Ce(!1);
|
|
2755
2765
|
return me(() => {
|
|
2756
2766
|
const s = XMLHttpRequest.prototype.open, u = XMLHttpRequest.prototype.send;
|
|
@@ -3312,9 +3322,9 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
3312
3322
|
le.className = "pnlm-sprite pnlm-hot-spot-debug-indicator", O.appendChild(le), S.container = t.createElement("div"), S.container.className = "pnlm-panorama-info", S.title = t.createElement("div"), S.title.className = "pnlm-title-box", S.container.appendChild(S.title), S.author = t.createElement("div"), S.author.className = "pnlm-author-box", S.container.appendChild(S.author), O.appendChild(S.container), S.load = {}, S.load.box = t.createElement("div"), S.load.box.className = "pnlm-load-box", S.load.boxp = t.createElement("p"), S.load.box.appendChild(S.load.boxp), S.load.lbox = t.createElement("div"), S.load.lbox.className = "pnlm-lbox", S.load.lbox.innerHTML = '<div class="pnlm-loading"></div>', S.load.box.appendChild(S.load.lbox), S.load.lbar = t.createElement("div"), S.load.lbar.className = "pnlm-lbar", S.load.lbarFill = t.createElement("div"), S.load.lbarFill.className = "pnlm-lbar-fill", S.load.lbar.appendChild(S.load.lbarFill), S.load.box.appendChild(S.load.lbar), S.load.msg = t.createElement("p"), S.load.msg.className = "pnlm-lmsg", S.load.box.appendChild(S.load.msg), O.appendChild(S.load.box), S.errorMsg = t.createElement("div"), S.errorMsg.className = "pnlm-error-msg pnlm-info-box", O.appendChild(S.errorMsg);
|
|
3313
3323
|
var $ = {};
|
|
3314
3324
|
$.container = t.createElement("div"), $.container.className = "pnlm-controls-container", O.appendChild($.container), $.load = t.createElement("div"), $.load.className = "pnlm-load-button", $.load.addEventListener("click", function() {
|
|
3315
|
-
|
|
3316
|
-
}), O.appendChild($.load), $.zoom = t.createElement("div"), $.zoom.className = "pnlm-zoom-controls pnlm-controls", $.zoomIn = t.createElement("div"), $.zoomIn.className = "pnlm-zoom-in pnlm-sprite pnlm-control", $.zoomIn.addEventListener("click", wo), $.zoom.appendChild($.zoomIn), $.zoomOut = t.createElement("div"), $.zoomOut.className = "pnlm-zoom-out pnlm-sprite pnlm-control", $.zoomOut.addEventListener("click", yo), $.zoom.appendChild($.zoomOut), $.container.appendChild($.zoom), $.fullscreen = t.createElement("div"), $.fullscreen.addEventListener("click",
|
|
3317
|
-
Y ? It() :
|
|
3325
|
+
nn(), Hn();
|
|
3326
|
+
}), O.appendChild($.load), $.zoom = t.createElement("div"), $.zoom.className = "pnlm-zoom-controls pnlm-controls", $.zoomIn = t.createElement("div"), $.zoomIn.className = "pnlm-zoom-in pnlm-sprite pnlm-control", $.zoomIn.addEventListener("click", wo), $.zoom.appendChild($.zoomIn), $.zoomOut = t.createElement("div"), $.zoomOut.className = "pnlm-zoom-out pnlm-sprite pnlm-control", $.zoomOut.addEventListener("click", yo), $.zoom.appendChild($.zoomOut), $.container.appendChild($.zoom), $.fullscreen = t.createElement("div"), $.fullscreen.addEventListener("click", rn), $.fullscreen.className = "pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control", (t.fullscreenEnabled || t.mozFullScreenEnabled || t.webkitFullscreenEnabled || t.msFullscreenEnabled) && $.container.appendChild($.fullscreen), $.orientation = t.createElement("div"), $.orientation.addEventListener("click", function(l) {
|
|
3327
|
+
Y ? It() : Xt();
|
|
3318
3328
|
}), $.orientation.addEventListener("mousedown", function(l) {
|
|
3319
3329
|
l.stopPropagation();
|
|
3320
3330
|
}), $.orientation.addEventListener("touchstart", function(l) {
|
|
@@ -3324,11 +3334,11 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
3324
3334
|
}), $.orientation.className = "pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";
|
|
3325
3335
|
var Te, Ge = !1;
|
|
3326
3336
|
function Ze(l) {
|
|
3327
|
-
e.removeEventListener("deviceorientation", Ze), l && l.alpha !== null && l.beta !== null && l.gamma !== null ? ($.container.appendChild($.orientation), Te = !0, Ge &&
|
|
3337
|
+
e.removeEventListener("deviceorientation", Ze), l && l.alpha !== null && l.beta !== null && l.gamma !== null ? ($.container.appendChild($.orientation), Te = !0, Ge && Xt()) : Te = !1;
|
|
3328
3338
|
}
|
|
3329
3339
|
e.DeviceOrientationEvent ? e.addEventListener("deviceorientation", Ze) : Te = !1;
|
|
3330
3340
|
var ve = t.createElement("div");
|
|
3331
|
-
ve.className = "pnlm-compass pnlm-controls pnlm-control", O.appendChild(ve), s.firstScene ?
|
|
3341
|
+
ve.className = "pnlm-compass pnlm-controls pnlm-control", O.appendChild(ve), s.firstScene ? Bt(s.firstScene) : s.default && s.default.firstScene ? Bt(s.default.firstScene) : Bt(null), nn(!0);
|
|
3332
3342
|
function h() {
|
|
3333
3343
|
var l = t.createElement("div");
|
|
3334
3344
|
if (l.innerHTML = "<!--[if lte IE 9]><i></i><![endif]-->", l.getElementsByTagName("i").length == 1) {
|
|
@@ -3454,7 +3464,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
3454
3464
|
var x = $e(l);
|
|
3455
3465
|
console.log("Pitch: " + x[0] + ", Yaw: " + x[1] + ", Center Pitch: " + r.pitch + ", Center Yaw: " + r.yaw + ", HFOV: " + r.hfov);
|
|
3456
3466
|
}
|
|
3457
|
-
|
|
3467
|
+
Vt(), It(), r.roll = 0, T.hfov = 0, L = !0, f = Date.now(), p = d.x, a = d.y, I = r.yaw, k = r.pitch, O.classList.add("pnlm-grabbing"), O.classList.remove("pnlm-grab"), ut("mousedown", l), ke();
|
|
3458
3468
|
}
|
|
3459
3469
|
}
|
|
3460
3470
|
function fe(l) {
|
|
@@ -3483,7 +3493,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
3483
3493
|
}
|
|
3484
3494
|
function we(l) {
|
|
3485
3495
|
if (!(!E || !r.draggable)) {
|
|
3486
|
-
|
|
3496
|
+
Vt(), It(), r.roll = 0, T.hfov = 0;
|
|
3487
3497
|
var d = ne(l.targetTouches[0]);
|
|
3488
3498
|
if (p = d.x, a = d.y, l.targetTouches.length == 2) {
|
|
3489
3499
|
var x = ne(l.targetTouches[1]);
|
|
@@ -3531,12 +3541,12 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
3531
3541
|
}
|
|
3532
3542
|
}
|
|
3533
3543
|
function Ve(l) {
|
|
3534
|
-
!E || r.mouseZoom == "fullscreenonly" && !y || (l.preventDefault(),
|
|
3544
|
+
!E || r.mouseZoom == "fullscreenonly" && !y || (l.preventDefault(), Vt(), f = Date.now(), l.wheelDeltaY ? (rt(r.hfov - l.wheelDeltaY * 0.05), T.hfov = l.wheelDelta < 0 ? 1 : -1) : l.wheelDelta ? (rt(r.hfov - l.wheelDelta * 0.05), T.hfov = l.wheelDelta < 0 ? 1 : -1) : l.detail && (rt(r.hfov + l.detail * 1.5), T.hfov = l.detail > 0 ? 1 : -1), ke());
|
|
3535
3545
|
}
|
|
3536
3546
|
function Oe(l) {
|
|
3537
|
-
|
|
3547
|
+
Vt(), f = Date.now(), It(), r.roll = 0;
|
|
3538
3548
|
var d = l.which || l.keycode;
|
|
3539
|
-
r.capturedKeyNumbers.indexOf(d) < 0 || (l.preventDefault(), d == 27 ? y &&
|
|
3549
|
+
r.capturedKeyNumbers.indexOf(d) < 0 || (l.preventDefault(), d == 27 ? y && rn() : Re(d, !0));
|
|
3540
3550
|
}
|
|
3541
3551
|
function Xe() {
|
|
3542
3552
|
for (var l = 0; l < 10; l++)
|
|
@@ -3731,7 +3741,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
3731
3741
|
var be = t.createElement("img");
|
|
3732
3742
|
be.src = _t(X), be.style.width = l.width + "px", be.style.paddingTop = "5px", te.appendChild(d), B.appendChild(be), x.style.maxWidth = "initial";
|
|
3733
3743
|
} else l.URL ? (B = t.createElement("a"), B.href = _t(l.URL), B.target = "_blank", te.appendChild(B), d.className += " pnlm-pointer", x.className += " pnlm-pointer", B.appendChild(d)) : (l.sceneId && (d.onclick = d.ontouchend = function() {
|
|
3734
|
-
return d.clicked || (d.clicked = !0,
|
|
3744
|
+
return d.clicked || (d.clicked = !0, on(l.sceneId, l.targetPitch, l.targetYaw, l.targetHfov)), !1;
|
|
3735
3745
|
}, d.className += " pnlm-pointer", x.className += " pnlm-pointer"), te.appendChild(d));
|
|
3736
3746
|
l.createTooltipFunc ? l.createTooltipFunc(d, l.createTooltipArgs) : (l.text || l.video || l.image) && (d.classList.add("pnlm-tooltip"), d.appendChild(x), x.style.width = x.scrollWidth - 20 + "px", x.style.marginLeft = -(x.scrollWidth - d.offsetWidth) / 2 + "px", x.style.marginTop = -x.scrollHeight - 12 + "px"), l.clickHandlerFunc && (d.addEventListener("click", function(pe) {
|
|
3737
3747
|
l.clickHandlerFunc(pe, l.clickHandlerArgs);
|
|
@@ -3760,14 +3770,14 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
3760
3770
|
l.div.style.visibility = "visible";
|
|
3761
3771
|
var He = v.getCanvas(), Ae = He.clientWidth, tt = He.clientHeight, et = [-Ae / Le * pe * x / be / 2, -Ae / Le * (d * G - x * X * B) / be / 2], pt = Math.sin(r.roll * Math.PI / 180), Un = Math.cos(r.roll * Math.PI / 180);
|
|
3762
3772
|
et = [et[0] * Un - et[1] * pt, et[0] * pt + et[1] * Un], et[0] += (Ae - l.div.offsetWidth) / 2, et[1] += (tt - l.div.offsetHeight) / 2;
|
|
3763
|
-
var
|
|
3764
|
-
l.div.style.webkitTransform =
|
|
3773
|
+
var an = "translate(" + et[0] + "px, " + et[1] + "px) translateZ(9999px) rotate(" + r.roll + "deg)";
|
|
3774
|
+
l.div.style.webkitTransform = an, l.div.style.MozTransform = an, l.div.style.transform = an;
|
|
3765
3775
|
}
|
|
3766
3776
|
}
|
|
3767
3777
|
function On() {
|
|
3768
3778
|
r.hotSpots.forEach(zn);
|
|
3769
3779
|
}
|
|
3770
|
-
function
|
|
3780
|
+
function Bt(l) {
|
|
3771
3781
|
r = {};
|
|
3772
3782
|
var d, x, B = ["haov", "vaov", "vOffset", "northOffset", "horizonPitch", "horizonRoll"];
|
|
3773
3783
|
K = [];
|
|
@@ -3799,7 +3809,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
3799
3809
|
else
|
|
3800
3810
|
r[d] = s[d], B.indexOf(d) >= 0 && K.push(d);
|
|
3801
3811
|
}
|
|
3802
|
-
function
|
|
3812
|
+
function nn(l) {
|
|
3803
3813
|
if (l = l || !1, l && "preview" in r) {
|
|
3804
3814
|
var d = r.preview;
|
|
3805
3815
|
r.basePath && !_(d) && (d = r.basePath + d), m = t.createElement("div"), m.className = "pnlm-preview-img", m.style.backgroundImage = "url('" + xo(d) + "')", te.appendChild(m);
|
|
@@ -3840,12 +3850,12 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
3840
3850
|
r[G] || ($.orientation.style.display = "none", $.zoom.style.display = "none", $.fullscreen.style.display = "none");
|
|
3841
3851
|
break;
|
|
3842
3852
|
case "orientationOnByDefault":
|
|
3843
|
-
r[G] && (Te === n ? Ge = !0 : Te === !0 &&
|
|
3853
|
+
r[G] && (Te === n ? Ge = !0 : Te === !0 && Xt());
|
|
3844
3854
|
break;
|
|
3845
3855
|
}
|
|
3846
3856
|
l && (x ? r.title = x : delete r.title, B ? r.author = B : delete r.author);
|
|
3847
3857
|
}
|
|
3848
|
-
function
|
|
3858
|
+
function rn() {
|
|
3849
3859
|
if (E && !w)
|
|
3850
3860
|
if (y)
|
|
3851
3861
|
t.exitFullscreen ? t.exitFullscreen() : t.mozCancelFullScreen ? t.mozCancelFullScreen() : t.webkitCancelFullScreen ? t.webkitCancelFullScreen() : t.msExitFullscreen && t.msExitFullscreen();
|
|
@@ -3879,30 +3889,30 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
3879
3889
|
function rt(l) {
|
|
3880
3890
|
r.hfov = Fn(l);
|
|
3881
3891
|
}
|
|
3882
|
-
function
|
|
3892
|
+
function Vt() {
|
|
3883
3893
|
U = {}, z = r.autoRotate ? r.autoRotate : z, r.autoRotate = !1;
|
|
3884
3894
|
}
|
|
3885
3895
|
function Hn() {
|
|
3886
3896
|
C(), E = !1, $.load.style.display = "none", S.load.box.style.display = "inline", h();
|
|
3887
3897
|
}
|
|
3888
|
-
function
|
|
3898
|
+
function on(l, d, x, B, G) {
|
|
3889
3899
|
E = !1, U = {};
|
|
3890
3900
|
var X, be, pe, Le;
|
|
3891
3901
|
if (r.sceneFadeDuration && !G) {
|
|
3892
3902
|
var He = v.render(r.pitch * Math.PI / 180, r.yaw * Math.PI / 180, r.hfov * Math.PI / 180, { returnImage: !0 });
|
|
3893
3903
|
if (He !== n) {
|
|
3894
3904
|
X = new Image(), X.className = "pnlm-fade-img", X.style.transition = "opacity " + r.sceneFadeDuration / 1e3 + "s", X.style.width = "100%", X.style.height = "100%", X.onload = function() {
|
|
3895
|
-
|
|
3905
|
+
on(l, d, x, B, !0);
|
|
3896
3906
|
}, X.src = He, te.appendChild(X), v.fadeImg = X;
|
|
3897
3907
|
return;
|
|
3898
3908
|
}
|
|
3899
3909
|
}
|
|
3900
|
-
d === "same" ? be = r.pitch : be = d, x === "same" ? pe = r.yaw : x === "sameAzimuth" ? pe = r.yaw + (r.northOffset || 0) - (s.scenes[l].northOffset || 0) : pe = x, B === "same" ? Le = r.hfov : Le = B, _o(),
|
|
3910
|
+
d === "same" ? be = r.pitch : be = d, x === "same" ? pe = r.yaw : x === "sameAzimuth" ? pe = r.yaw + (r.northOffset || 0) - (s.scenes[l].northOffset || 0) : pe = x, B === "same" ? Le = r.hfov : Le = B, _o(), Bt(l), T.yaw = T.pitch = T.hfov = 0, nn(), be !== n && (r.pitch = be), pe !== n && (r.yaw = pe), Le !== n && (r.hfov = Le), ut("scenechange", l), Hn();
|
|
3901
3911
|
}
|
|
3902
3912
|
function It() {
|
|
3903
3913
|
e.removeEventListener("deviceorientation", An), $.orientation.classList.remove("pnlm-orientation-button-active"), Y = !1;
|
|
3904
3914
|
}
|
|
3905
|
-
function
|
|
3915
|
+
function Xt() {
|
|
3906
3916
|
Y = 1, e.addEventListener("deviceorientation", An), $.orientation.classList.add("pnlm-orientation-button-active");
|
|
3907
3917
|
}
|
|
3908
3918
|
function vt(l) {
|
|
@@ -3988,7 +3998,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
3988
3998
|
}, this.mouseEventToCoords = function(l) {
|
|
3989
3999
|
return $e(l);
|
|
3990
4000
|
}, this.loadScene = function(l, d, x, B) {
|
|
3991
|
-
return E !== !1 &&
|
|
4001
|
+
return E !== !1 && on(l, d, x, B), this;
|
|
3992
4002
|
}, this.getScene = function() {
|
|
3993
4003
|
return r.scene;
|
|
3994
4004
|
}, this.addScene = function(l, d) {
|
|
@@ -3996,7 +4006,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
3996
4006
|
}, this.removeScene = function(l) {
|
|
3997
4007
|
return r.scene === l || !s.scenes.hasOwnProperty(l) ? !1 : (delete s.scenes[l], !0);
|
|
3998
4008
|
}, this.toggleFullscreen = function() {
|
|
3999
|
-
return
|
|
4009
|
+
return rn(), this;
|
|
4000
4010
|
}, this.getConfig = function() {
|
|
4001
4011
|
return r;
|
|
4002
4012
|
}, this.getContainer = function() {
|
|
@@ -4039,7 +4049,7 @@ window.pannellum = /* @__PURE__ */ (function(e, t, n) {
|
|
|
4039
4049
|
}, this.stopOrientation = function() {
|
|
4040
4050
|
It();
|
|
4041
4051
|
}, this.startOrientation = function() {
|
|
4042
|
-
Te &&
|
|
4052
|
+
Te && Xt();
|
|
4043
4053
|
}, this.isOrientationActive = function() {
|
|
4044
4054
|
return !!Y;
|
|
4045
4055
|
}, this.on = function(l, d) {
|
|
@@ -4092,7 +4102,7 @@ function ii(e, t, n) {
|
|
|
4092
4102
|
yaw: oi,
|
|
4093
4103
|
hfov: ni,
|
|
4094
4104
|
maxHfov: Ct,
|
|
4095
|
-
minHfov:
|
|
4105
|
+
minHfov: Nt,
|
|
4096
4106
|
compass: !1,
|
|
4097
4107
|
showControls: !1,
|
|
4098
4108
|
keyboardZoom: !1,
|
|
@@ -4222,8 +4232,8 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
|
|
|
4222
4232
|
const P = M.current;
|
|
4223
4233
|
if (!P || !b) return;
|
|
4224
4234
|
const j = 1, T = at((m - j) / (ht - j), 0, 1), H = at(
|
|
4225
|
-
Ct - T * (Ct -
|
|
4226
|
-
|
|
4235
|
+
Ct - T * (Ct - Nt),
|
|
4236
|
+
Nt,
|
|
4227
4237
|
Ct
|
|
4228
4238
|
);
|
|
4229
4239
|
P.setHfov(H);
|
|
@@ -4237,7 +4247,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
|
|
|
4237
4247
|
if (!R) return;
|
|
4238
4248
|
const V = lr(
|
|
4239
4249
|
R.getHfov(),
|
|
4240
|
-
|
|
4250
|
+
Nt,
|
|
4241
4251
|
Ct,
|
|
4242
4252
|
ht,
|
|
4243
4253
|
xt
|
|
@@ -4249,7 +4259,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
|
|
|
4249
4259
|
if (!R) return;
|
|
4250
4260
|
const V = lr(
|
|
4251
4261
|
R.getHfov(),
|
|
4252
|
-
|
|
4262
|
+
Nt,
|
|
4253
4263
|
Ct,
|
|
4254
4264
|
ht,
|
|
4255
4265
|
xt,
|
|
@@ -4300,7 +4310,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
|
|
|
4300
4310
|
return me(() => {
|
|
4301
4311
|
o === null || o === "error" || n(t, o === "spin" ? "running" : "ready");
|
|
4302
4312
|
}, [t, n, o]), o === "error" ? /* @__PURE__ */ c(
|
|
4303
|
-
|
|
4313
|
+
tn,
|
|
4304
4314
|
{
|
|
4305
4315
|
className: "text-background",
|
|
4306
4316
|
text: "Interior Spin could not be loaded"
|
|
@@ -4326,7 +4336,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
|
|
|
4326
4336
|
children: /* @__PURE__ */ c("polygon", { points: "6 3 20 12 6 21 6 3" })
|
|
4327
4337
|
}
|
|
4328
4338
|
) }), fi = 750, pi = 1250, hi = 360, mi = 480, gi = (e, t, n) => ({ cursor: `url("${e}") ${t.x} ${t.y}, ${n}` }), vi = ({ images: e, itemIndex: t, onlyPreload: n }) => {
|
|
4329
|
-
const { demoSpin: o, reverse360: i, spinCursor: s, themeConfig: u } = qe(), { currentItemHotspotsVisible: r, isShowingDetails: v, isZooming: m } = Qe(), L = ze(() =>
|
|
4339
|
+
const { demoSpin: o, reverse360: i, spinCursor: s, themeConfig: u } = qe(), { currentItemHotspotsVisible: r, isShowingDetails: v, isZooming: m } = Qe(), L = ze(() => Wt(u), [u]), f = m || v, p = xe(null), a = xe(null), [b, I] = Ce(!1), [k, g] = Ce("default"), y = s === "grab" && b ? "grabbing" : s, E = L?.cursor ? (() => {
|
|
4330
4340
|
const te = k === "left" ? "leftSpin" : k === "right" ? "rightSpin" : "default", q = L.cursor[te];
|
|
4331
4341
|
return gi(q.url, q.hotspot, y);
|
|
4332
4342
|
})() : y === xn ? { cursor: `url("${co}") 45 28, ew-resize` } : { cursor: y }, w = xe(0), M = xe(null), [P, j] = Ce(0), T = xe(null), H = xe(null), Y = xe(null), R = xe(0), V = 16, z = xe({
|
|
@@ -4529,7 +4539,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
|
|
|
4529
4539
|
onSpinImagesLoaded: o,
|
|
4530
4540
|
onError: i
|
|
4531
4541
|
}) => {
|
|
4532
|
-
const { autoLoad360: s, emitAnalyticsEvent: u, themeConfig: r } = qe(), { displayedCategoryId: v, displayedCategoryName: m } = Qe(), L = ze(() =>
|
|
4542
|
+
const { autoLoad360: s, emitAnalyticsEvent: u, themeConfig: r } = qe(), { displayedCategoryId: v, displayedCategoryName: m } = Qe(), L = ze(() => Wt(r), [r]), f = ze(() => t.map(({ src: y }) => y), [t]), [p, a] = Ce(null), b = p ? [...p.values()].filter((y) => y).length / t.length * 100 : null, I = Z(
|
|
4533
4543
|
(y) => {
|
|
4534
4544
|
b === null && (a(new Map(f.map((E) => [E, !1]))), u({
|
|
4535
4545
|
type: "interaction",
|
|
@@ -4624,7 +4634,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
|
|
|
4624
4634
|
return me(() => {
|
|
4625
4635
|
o === null || o === "error" || n(t, o === "spin" ? "running" : "ready");
|
|
4626
4636
|
}, [t, n, o]), o === "error" ? /* @__PURE__ */ c(
|
|
4627
|
-
|
|
4637
|
+
tn,
|
|
4628
4638
|
{
|
|
4629
4639
|
className: "text-background",
|
|
4630
4640
|
text: "Spin could not be loaded"
|
|
@@ -4642,7 +4652,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
|
|
|
4642
4652
|
images: e,
|
|
4643
4653
|
onlyPreload: t
|
|
4644
4654
|
}) => {
|
|
4645
|
-
const { demoSpin: n, reverse360: o, spinCursor: i, themeConfig: s } = qe(), { isShowingDetails: u, isZooming: r } = Qe(), v = ze(() =>
|
|
4655
|
+
const { demoSpin: n, reverse360: o, spinCursor: i, themeConfig: s } = qe(), { isShowingDetails: u, isZooming: r } = Qe(), v = ze(() => Wt(s), [s]), m = r || u, L = xe(null), f = xe(null), [p, a] = Ce(!1), [b, I] = Ce("default"), k = i === "grab" && p ? "grabbing" : i, g = v?.cursor ? (() => {
|
|
4646
4656
|
const V = b === "left" ? "leftSpin" : b === "right" ? "rightSpin" : "default", z = v.cursor[V];
|
|
4647
4657
|
return Ei(z.url, z.hotspot, k);
|
|
4648
4658
|
})() : k === xn ? { cursor: `url("${co}") 45 28, ew-resize` } : { cursor: k }, y = xe(n), E = xe(null), w = Z(() => {
|
|
@@ -4795,7 +4805,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
|
|
|
4795
4805
|
onSpinImagesLoaded: o,
|
|
4796
4806
|
onError: i
|
|
4797
4807
|
}) => {
|
|
4798
|
-
const { autoLoad360: s, emitAnalyticsEvent: u, themeConfig: r } = qe(), { displayedCategoryId: v, displayedCategoryName: m } = Qe(), L = ze(() =>
|
|
4808
|
+
const { autoLoad360: s, emitAnalyticsEvent: u, themeConfig: r } = qe(), { displayedCategoryId: v, displayedCategoryName: m } = Qe(), L = ze(() => Wt(r), [r]), f = ze(() => t.map(({ src: y }) => y), [t]), [p, a] = Ce(null), b = p ? [...p.values()].filter((y) => y).length / t.length * 100 : null, I = Z(
|
|
4799
4809
|
(y) => {
|
|
4800
4810
|
b === null && (a(new Map(f.map((E) => [E, !1]))), u({
|
|
4801
4811
|
type: "interaction",
|
|
@@ -4888,7 +4898,7 @@ const li = ({ className: e }) => /* @__PURE__ */ c(
|
|
|
4888
4898
|
return me(() => {
|
|
4889
4899
|
o === null || o === "error" || n(t, o === "spin" ? "running" : "ready");
|
|
4890
4900
|
}, [t, n, o]), o === "error" ? /* @__PURE__ */ c(
|
|
4891
|
-
|
|
4901
|
+
tn,
|
|
4892
4902
|
{
|
|
4893
4903
|
className: "text-background",
|
|
4894
4904
|
text: "Spin could not be loaded"
|
|
@@ -5947,7 +5957,7 @@ const Oi = ({
|
|
|
5947
5957
|
Te();
|
|
5948
5958
|
return;
|
|
5949
5959
|
}
|
|
5950
|
-
const ee = Math.min(oe / Ze, 1), C = io(ee), ae =
|
|
5960
|
+
const ee = Math.min(oe / Ze, 1), C = io(ee), ae = Kt(q, re, C);
|
|
5951
5961
|
$(ae), h();
|
|
5952
5962
|
};
|
|
5953
5963
|
T.current = requestAnimationFrame(_);
|
|
@@ -6304,7 +6314,7 @@ const Oi = ({
|
|
|
6304
6314
|
s,
|
|
6305
6315
|
i
|
|
6306
6316
|
]), u ? /* @__PURE__ */ c(
|
|
6307
|
-
|
|
6317
|
+
tn,
|
|
6308
6318
|
{
|
|
6309
6319
|
className: "aspect-square text-foreground/70",
|
|
6310
6320
|
text: "Player could not be loaded"
|
|
@@ -6489,7 +6499,7 @@ const Oi = ({
|
|
|
6489
6499
|
const { fullscreenElement: le } = document;
|
|
6490
6500
|
U(
|
|
6491
6501
|
le === re || // NOTE: For custom element, the web browser is making the whole custom element full-screen and not only the wrapper
|
|
6492
|
-
le?.localName ===
|
|
6502
|
+
le?.localName === Qt
|
|
6493
6503
|
);
|
|
6494
6504
|
};
|
|
6495
6505
|
return document.addEventListener("fullscreenchange", S), () => {
|
|
@@ -6570,7 +6580,7 @@ const Oi = ({
|
|
|
6570
6580
|
}
|
|
6571
6581
|
);
|
|
6572
6582
|
}, u2 = ({ children: e, index: t, thumbnailSrc: n }) => {
|
|
6573
|
-
const { registerCustomMedia: o, unregisterCustomMedia: i } =
|
|
6583
|
+
const { registerCustomMedia: o, unregisterCustomMedia: i } = Ut();
|
|
6574
6584
|
return me(() => {
|
|
6575
6585
|
if (!e)
|
|
6576
6586
|
return;
|
|
@@ -6584,7 +6594,7 @@ const Oi = ({
|
|
|
6584
6594
|
};
|
|
6585
6595
|
}, [e, i, t, o, n]), null;
|
|
6586
6596
|
}, d2 = (e) => Sn() ? /* @__PURE__ */ c(u2, { ...e }) : /* @__PURE__ */ c("slot", {}), f2 = ({ name: e, children: t }) => {
|
|
6587
|
-
const { registerIconConfig: n, unregisterIconConfig: o } =
|
|
6597
|
+
const { registerIconConfig: n, unregisterIconConfig: o } = Ut();
|
|
6588
6598
|
return me(() => {
|
|
6589
6599
|
if (t)
|
|
6590
6600
|
return n(e, {
|
|
@@ -6625,7 +6635,7 @@ function v2(e) {
|
|
|
6625
6635
|
}
|
|
6626
6636
|
};
|
|
6627
6637
|
}
|
|
6628
|
-
var _2 = Object.defineProperty, w2 = (e, t, n) => t in e ? _2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
6638
|
+
var _2 = Object.defineProperty, w2 = (e, t, n) => t in e ? _2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Gt = (e, t, n) => w2(e, typeof t != "symbol" ? t + "" : t, n);
|
|
6629
6639
|
const y2 = {
|
|
6630
6640
|
stringify: (e) => e ? "true" : "false",
|
|
6631
6641
|
parse: (e) => /^[ty1-9]/i.test(e)
|
|
@@ -6676,7 +6686,7 @@ const E2 = {
|
|
|
6676
6686
|
function: x2,
|
|
6677
6687
|
method: E2,
|
|
6678
6688
|
json: b2
|
|
6679
|
-
},
|
|
6689
|
+
}, St = Symbol.for("r2wc.render"), $t = Symbol.for("r2wc.connected"), wt = Symbol.for("r2wc.context"), ot = Symbol.for("r2wc.props");
|
|
6680
6690
|
function k2(e, t, n) {
|
|
6681
6691
|
var o, i, s;
|
|
6682
6692
|
t.props || (t.props = e.propTypes ? Object.keys(e.propTypes) : []), t.events || (t.events = []);
|
|
@@ -6690,7 +6700,7 @@ function k2(e, t, n) {
|
|
|
6690
6700
|
m[a] = Array.isArray(t.events) ? {} : t.events[a];
|
|
6691
6701
|
class p extends HTMLElement {
|
|
6692
6702
|
constructor() {
|
|
6693
|
-
super(),
|
|
6703
|
+
super(), Gt(this, s, !0), Gt(this, i), Gt(this, o, {}), Gt(this, "container"), t.shadow ? this.container = this.attachShadow({
|
|
6694
6704
|
mode: t.shadow
|
|
6695
6705
|
}) : this.container = this, this[ot].container = this.container;
|
|
6696
6706
|
for (const b of u) {
|
|
@@ -6704,7 +6714,7 @@ function k2(e, t, n) {
|
|
|
6704
6714
|
return this[ot][E];
|
|
6705
6715
|
},
|
|
6706
6716
|
set(w) {
|
|
6707
|
-
this[ot][E] = w, this[
|
|
6717
|
+
this[ot][E] = w, this[St]();
|
|
6708
6718
|
}
|
|
6709
6719
|
}), this[ot][b] = y.parse(k, I, this);
|
|
6710
6720
|
}
|
|
@@ -6722,17 +6732,17 @@ function k2(e, t, n) {
|
|
|
6722
6732
|
return Object.keys(f);
|
|
6723
6733
|
}
|
|
6724
6734
|
connectedCallback() {
|
|
6725
|
-
this[
|
|
6735
|
+
this[$t] = !0, this[St]();
|
|
6726
6736
|
}
|
|
6727
6737
|
disconnectedCallback() {
|
|
6728
|
-
this[
|
|
6738
|
+
this[$t] = !1, this[wt] && n.unmount(this[wt]), delete this[wt];
|
|
6729
6739
|
}
|
|
6730
6740
|
attributeChangedCallback(b, I, k) {
|
|
6731
6741
|
const g = f[b], y = v[g], E = y ? cn[y] : null;
|
|
6732
|
-
g in v && E != null && E.parse && k && (this[ot][g] = E.parse(k, b, this), this[
|
|
6742
|
+
g in v && E != null && E.parse && k && (this[ot][g] = E.parse(k, b, this), this[St]());
|
|
6733
6743
|
}
|
|
6734
|
-
[(s =
|
|
6735
|
-
this[
|
|
6744
|
+
[(s = $t, i = wt, o = ot, St)]() {
|
|
6745
|
+
this[$t] && (this[wt] ? n.update(this[wt], this[ot]) : this[wt] = n.mount(
|
|
6736
6746
|
this.container,
|
|
6737
6747
|
e,
|
|
6738
6748
|
this[ot]
|
|
@@ -6754,7 +6764,7 @@ function k2(e, t, n) {
|
|
|
6754
6764
|
const y = g.stringify(k, b, this);
|
|
6755
6765
|
this.getAttribute(b) !== y && this.setAttribute(b, y);
|
|
6756
6766
|
} else
|
|
6757
|
-
this[
|
|
6767
|
+
this[St]();
|
|
6758
6768
|
}
|
|
6759
6769
|
});
|
|
6760
6770
|
}
|
|
@@ -6827,7 +6837,7 @@ const P2 = Rn(g2, {
|
|
|
6827
6837
|
}
|
|
6828
6838
|
});
|
|
6829
6839
|
function A2() {
|
|
6830
|
-
customElements.define(
|
|
6840
|
+
customElements.define(Qt, P2), customElements.define(
|
|
6831
6841
|
wn,
|
|
6832
6842
|
N2
|
|
6833
6843
|
), customElements.define(yn, R2);
|
|
@@ -6849,7 +6859,7 @@ export {
|
|
|
6849
6859
|
Lo as EVENT_ITEM_CHANGE,
|
|
6850
6860
|
wn as WEB_PLAYER_CUSTOM_MEDIA_WC_TAG,
|
|
6851
6861
|
yn as WEB_PLAYER_ICON_WC_TAG,
|
|
6852
|
-
|
|
6862
|
+
Qt as WEB_PLAYER_WC_TAG,
|
|
6853
6863
|
Fo as checkCustomElementsDefinition,
|
|
6854
6864
|
H2 as ensureCustomElementsDefinition,
|
|
6855
6865
|
D2 as generateCompositionUrl,
|