@halibegic/react-video-player 0.0.56 → 0.0.58
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.
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
1
|
+
var qn = Object.defineProperty, Yn = Object.defineProperties;
|
|
2
2
|
var Zn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Pe = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Tt = Object.prototype.hasOwnProperty, xt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var _t = (e, t, n) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, M = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Tt.call(t, n) && _t(e, n, t[n]);
|
|
8
8
|
if (Pe)
|
|
9
9
|
for (var n of Pe(t))
|
|
10
|
-
|
|
10
|
+
xt.call(t, n) && _t(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, he = (e, t) => Yn(e, Zn(t));
|
|
13
13
|
var re = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var r in e)
|
|
16
|
-
|
|
16
|
+
Tt.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
17
17
|
if (e != null && Pe)
|
|
18
18
|
for (var r of Pe(e))
|
|
19
|
-
t.indexOf(r) < 0 &&
|
|
19
|
+
t.indexOf(r) < 0 && xt.call(e, r) && (n[r] = e[r]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
import
|
|
23
|
-
import { useStore as
|
|
22
|
+
import Dt, { useLayoutEffect as Kn, useEffect as V, useRef as O, createContext as Nt, useContext as Mt, useState as G, useCallback as A, forwardRef as Ve } from "react";
|
|
23
|
+
import { useStore as Ft, create as Vt } from "zustand";
|
|
24
24
|
import Gn from "mitt";
|
|
25
25
|
import ee from "hls.js";
|
|
26
26
|
import * as Le from "@radix-ui/react-slider";
|
|
27
27
|
import * as xe from "@radix-ui/react-popover";
|
|
28
28
|
import * as je from "@radix-ui/react-scroll-area";
|
|
29
|
-
function
|
|
29
|
+
function At(e) {
|
|
30
30
|
var t = this.constructor;
|
|
31
31
|
return this.then(
|
|
32
32
|
function(n) {
|
|
@@ -41,7 +41,7 @@ function Ot(e) {
|
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ot(e) {
|
|
45
45
|
var t = this;
|
|
46
46
|
return new t(function(n, r) {
|
|
47
47
|
if (!(e && typeof e.length != "undefined"))
|
|
@@ -75,11 +75,11 @@ function Ht(e) {
|
|
|
75
75
|
u(i, a[i]);
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Ht(e, t) {
|
|
79
79
|
this.name = "AggregateError", this.errors = e, this.message = t || "";
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
function
|
|
81
|
+
Ht.prototype = Error.prototype;
|
|
82
|
+
function $t(e) {
|
|
83
83
|
var t = this;
|
|
84
84
|
return new t(function(n, r) {
|
|
85
85
|
if (!(e && typeof e.length != "undefined"))
|
|
@@ -90,7 +90,7 @@ function Ut(e) {
|
|
|
90
90
|
try {
|
|
91
91
|
t.resolve(a[u]).then(n).catch(function(i) {
|
|
92
92
|
c.push(i), c.length === a.length && r(
|
|
93
|
-
new
|
|
93
|
+
new Ht(
|
|
94
94
|
c,
|
|
95
95
|
"All promises were rejected"
|
|
96
96
|
)
|
|
@@ -102,7 +102,7 @@ function Ut(e) {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
var Xn = setTimeout;
|
|
105
|
-
function
|
|
105
|
+
function Ut(e) {
|
|
106
106
|
return !!(e && typeof e.length != "undefined");
|
|
107
107
|
}
|
|
108
108
|
function Jn() {
|
|
@@ -116,9 +116,9 @@ function $(e) {
|
|
|
116
116
|
if (!(this instanceof $))
|
|
117
117
|
throw new TypeError("Promises must be constructed via new");
|
|
118
118
|
if (typeof e != "function") throw new TypeError("not a function");
|
|
119
|
-
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [],
|
|
119
|
+
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], Wt(e, this);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Bt(e, t) {
|
|
122
122
|
for (; e._state === 3; )
|
|
123
123
|
e = e._value;
|
|
124
124
|
if (e._state === 0) {
|
|
@@ -151,7 +151,7 @@ function Ge(e, t) {
|
|
|
151
151
|
e._state = 3, e._value = t, Xe(e);
|
|
152
152
|
return;
|
|
153
153
|
} else if (typeof n == "function") {
|
|
154
|
-
|
|
154
|
+
Wt(Qn(n, t), e);
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
@@ -168,13 +168,13 @@ function Xe(e) {
|
|
|
168
168
|
e._handled || $._unhandledRejectionFn(e._value);
|
|
169
169
|
});
|
|
170
170
|
for (var t = 0, n = e._deferreds.length; t < n; t++)
|
|
171
|
-
|
|
171
|
+
Bt(e, e._deferreds[t]);
|
|
172
172
|
e._deferreds = null;
|
|
173
173
|
}
|
|
174
174
|
function er(e, t, n) {
|
|
175
175
|
this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.promise = n;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Wt(e, t) {
|
|
178
178
|
var n = !1;
|
|
179
179
|
try {
|
|
180
180
|
e(
|
|
@@ -195,12 +195,12 @@ $.prototype.catch = function(e) {
|
|
|
195
195
|
};
|
|
196
196
|
$.prototype.then = function(e, t) {
|
|
197
197
|
var n = new this.constructor(Jn);
|
|
198
|
-
return
|
|
198
|
+
return Bt(this, new er(e, t, n)), n;
|
|
199
199
|
};
|
|
200
|
-
$.prototype.finally =
|
|
200
|
+
$.prototype.finally = At;
|
|
201
201
|
$.all = function(e) {
|
|
202
202
|
return new $(function(t, n) {
|
|
203
|
-
if (!
|
|
203
|
+
if (!Ut(e))
|
|
204
204
|
return n(new TypeError("Promise.all accepts an array"));
|
|
205
205
|
var r = Array.prototype.slice.call(e);
|
|
206
206
|
if (r.length === 0) return t([]);
|
|
@@ -229,8 +229,8 @@ $.all = function(e) {
|
|
|
229
229
|
c(u, r[u]);
|
|
230
230
|
});
|
|
231
231
|
};
|
|
232
|
-
$.any =
|
|
233
|
-
$.allSettled =
|
|
232
|
+
$.any = $t;
|
|
233
|
+
$.allSettled = Ot;
|
|
234
234
|
$.resolve = function(e) {
|
|
235
235
|
return e && typeof e == "object" && e.constructor === $ ? e : new $(function(t) {
|
|
236
236
|
t(e);
|
|
@@ -243,7 +243,7 @@ $.reject = function(e) {
|
|
|
243
243
|
};
|
|
244
244
|
$.race = function(e) {
|
|
245
245
|
return new $(function(t, n) {
|
|
246
|
-
if (!
|
|
246
|
+
if (!Ut(e))
|
|
247
247
|
return n(new TypeError("Promise.race accepts an array"));
|
|
248
248
|
for (var r = 0, a = e.length; r < a; r++)
|
|
249
249
|
$.resolve(e[r]).then(t, n);
|
|
@@ -267,13 +267,13 @@ var le = (function() {
|
|
|
267
267
|
return global;
|
|
268
268
|
throw new Error("unable to locate global object");
|
|
269
269
|
})();
|
|
270
|
-
typeof le.Promise != "function" ? le.Promise = $ : (le.Promise.prototype.finally || (le.Promise.prototype.finally =
|
|
270
|
+
typeof le.Promise != "function" ? le.Promise = $ : (le.Promise.prototype.finally || (le.Promise.prototype.finally = At), le.Promise.allSettled || (le.Promise.allSettled = Ot), le.Promise.any || (le.Promise.any = $t));
|
|
271
271
|
var Ie = { exports: {} }, ge = {};
|
|
272
|
-
var
|
|
272
|
+
var Ct;
|
|
273
273
|
function tr() {
|
|
274
|
-
if (
|
|
275
|
-
|
|
276
|
-
var e =
|
|
274
|
+
if (Ct) return ge;
|
|
275
|
+
Ct = 1;
|
|
276
|
+
var e = Dt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
277
277
|
function u(i, l, d) {
|
|
278
278
|
var g, _ = {}, y = null, k = null;
|
|
279
279
|
d !== void 0 && (y = "" + d), l.key !== void 0 && (y = "" + l.key), l.ref !== void 0 && (k = l.ref);
|
|
@@ -284,10 +284,10 @@ function tr() {
|
|
|
284
284
|
return ge.Fragment = n, ge.jsx = u, ge.jsxs = u, ge;
|
|
285
285
|
}
|
|
286
286
|
var we = {};
|
|
287
|
-
var
|
|
287
|
+
var Et;
|
|
288
288
|
function nr() {
|
|
289
|
-
return
|
|
290
|
-
var e =
|
|
289
|
+
return Et || (Et = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
290
|
+
var e = Dt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), E = Symbol.iterator, x = "@@iterator";
|
|
291
291
|
function R(o) {
|
|
292
292
|
if (o === null || typeof o != "object")
|
|
293
293
|
return null;
|
|
@@ -376,18 +376,18 @@ function nr() {
|
|
|
376
376
|
}
|
|
377
377
|
return null;
|
|
378
378
|
}
|
|
379
|
-
var Z = Object.assign, oe = 0, ue, ne, K, pe, nt, rt
|
|
380
|
-
function
|
|
379
|
+
var Z = Object.assign, oe = 0, ue, ne, K, pe, tt, nt, rt;
|
|
380
|
+
function ot() {
|
|
381
381
|
}
|
|
382
|
-
|
|
382
|
+
ot.__reactDisabledLog = !0;
|
|
383
383
|
function wn() {
|
|
384
384
|
{
|
|
385
385
|
if (oe === 0) {
|
|
386
|
-
ue = console.log, ne = console.info, K = console.warn, pe = console.error,
|
|
386
|
+
ue = console.log, ne = console.info, K = console.warn, pe = console.error, tt = console.group, nt = console.groupCollapsed, rt = console.groupEnd;
|
|
387
387
|
var o = {
|
|
388
388
|
configurable: !0,
|
|
389
389
|
enumerable: !0,
|
|
390
|
-
value:
|
|
390
|
+
value: ot,
|
|
391
391
|
writable: !0
|
|
392
392
|
};
|
|
393
393
|
Object.defineProperties(console, {
|
|
@@ -425,13 +425,13 @@ function nr() {
|
|
|
425
425
|
value: pe
|
|
426
426
|
}),
|
|
427
427
|
group: Z({}, o, {
|
|
428
|
-
value:
|
|
428
|
+
value: tt
|
|
429
429
|
}),
|
|
430
430
|
groupCollapsed: Z({}, o, {
|
|
431
|
-
value:
|
|
431
|
+
value: nt
|
|
432
432
|
}),
|
|
433
433
|
groupEnd: Z({}, o, {
|
|
434
|
-
value:
|
|
434
|
+
value: rt
|
|
435
435
|
})
|
|
436
436
|
});
|
|
437
437
|
}
|
|
@@ -457,7 +457,7 @@ function nr() {
|
|
|
457
457
|
var Tn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
458
458
|
Re = new Tn();
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function it(o, h) {
|
|
461
461
|
if (!o || $e)
|
|
462
462
|
return "";
|
|
463
463
|
{
|
|
@@ -507,18 +507,18 @@ function nr() {
|
|
|
507
507
|
if (Q && T && typeof Q.stack == "string") {
|
|
508
508
|
for (var C = Q.stack.split(`
|
|
509
509
|
`), X = T.stack.split(`
|
|
510
|
-
`), W = C.length - 1,
|
|
511
|
-
|
|
512
|
-
for (; W >= 1 &&
|
|
513
|
-
if (C[W] !== X[
|
|
514
|
-
if (W !== 1 ||
|
|
510
|
+
`), W = C.length - 1, z = X.length - 1; W >= 1 && z >= 0 && C[W] !== X[z]; )
|
|
511
|
+
z--;
|
|
512
|
+
for (; W >= 1 && z >= 0; W--, z--)
|
|
513
|
+
if (C[W] !== X[z]) {
|
|
514
|
+
if (W !== 1 || z !== 1)
|
|
515
515
|
do
|
|
516
|
-
if (W--,
|
|
516
|
+
if (W--, z--, z < 0 || C[W] !== X[z]) {
|
|
517
517
|
var te = `
|
|
518
518
|
` + C[W].replace(" at new ", " at ");
|
|
519
519
|
return o.displayName && te.includes("<anonymous>") && (te = te.replace("<anonymous>", o.displayName)), typeof o == "function" && Re.set(o, te), te;
|
|
520
520
|
}
|
|
521
|
-
while (W >= 1 &&
|
|
521
|
+
while (W >= 1 && z >= 0);
|
|
522
522
|
break;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
@@ -529,7 +529,7 @@ function nr() {
|
|
|
529
529
|
return typeof o == "function" && Re.set(o, ce), ce;
|
|
530
530
|
}
|
|
531
531
|
function xn(o, h, p) {
|
|
532
|
-
return
|
|
532
|
+
return it(o, !1);
|
|
533
533
|
}
|
|
534
534
|
function Cn(o) {
|
|
535
535
|
var h = o.prototype;
|
|
@@ -539,7 +539,7 @@ function nr() {
|
|
|
539
539
|
if (o == null)
|
|
540
540
|
return "";
|
|
541
541
|
if (typeof o == "function")
|
|
542
|
-
return
|
|
542
|
+
return it(o, Cn(o));
|
|
543
543
|
if (typeof o == "string")
|
|
544
544
|
return Ee(o);
|
|
545
545
|
switch (o) {
|
|
@@ -564,13 +564,13 @@ function nr() {
|
|
|
564
564
|
}
|
|
565
565
|
return "";
|
|
566
566
|
}
|
|
567
|
-
var ye = Object.prototype.hasOwnProperty,
|
|
567
|
+
var ye = Object.prototype.hasOwnProperty, st = {}, at = w.ReactDebugCurrentFrame;
|
|
568
568
|
function be(o) {
|
|
569
569
|
if (o) {
|
|
570
570
|
var h = o._owner, p = Se(o.type, o._source, h ? h.type : null);
|
|
571
|
-
|
|
571
|
+
at.setExtraStackFrame(p);
|
|
572
572
|
} else
|
|
573
|
-
|
|
573
|
+
at.setExtraStackFrame(null);
|
|
574
574
|
}
|
|
575
575
|
function En(o, h, p, T, I) {
|
|
576
576
|
{
|
|
@@ -587,7 +587,7 @@ function nr() {
|
|
|
587
587
|
} catch (W) {
|
|
588
588
|
C = W;
|
|
589
589
|
}
|
|
590
|
-
C && !(C instanceof Error) && (be(I), L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", p, P, typeof C), be(null)), C instanceof Error && !(C.message in
|
|
590
|
+
C && !(C instanceof Error) && (be(I), L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", p, P, typeof C), be(null)), C instanceof Error && !(C.message in st) && (st[C.message] = !0, be(I), L("Failed %s type: %s", p, C.message), be(null));
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
}
|
|
@@ -603,24 +603,24 @@ function nr() {
|
|
|
603
603
|
}
|
|
604
604
|
function bn(o) {
|
|
605
605
|
try {
|
|
606
|
-
return
|
|
606
|
+
return lt(o), !1;
|
|
607
607
|
} catch (h) {
|
|
608
608
|
return !0;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function lt(o) {
|
|
612
612
|
return "" + o;
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function ct(o) {
|
|
615
615
|
if (bn(o))
|
|
616
|
-
return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Sn(o)),
|
|
616
|
+
return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Sn(o)), lt(o);
|
|
617
617
|
}
|
|
618
|
-
var
|
|
618
|
+
var ut = w.ReactCurrentOwner, Pn = {
|
|
619
619
|
key: !0,
|
|
620
620
|
ref: !0,
|
|
621
621
|
__self: !0,
|
|
622
622
|
__source: !0
|
|
623
|
-
},
|
|
623
|
+
}, dt, ft;
|
|
624
624
|
function Ln(o) {
|
|
625
625
|
if (ye.call(o, "ref")) {
|
|
626
626
|
var h = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
@@ -638,12 +638,12 @@ function nr() {
|
|
|
638
638
|
return o.key !== void 0;
|
|
639
639
|
}
|
|
640
640
|
function In(o, h) {
|
|
641
|
-
typeof o.ref == "string" &&
|
|
641
|
+
typeof o.ref == "string" && ut.current;
|
|
642
642
|
}
|
|
643
643
|
function kn(o, h) {
|
|
644
644
|
{
|
|
645
645
|
var p = function() {
|
|
646
|
-
|
|
646
|
+
dt || (dt = !0, L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
647
647
|
};
|
|
648
648
|
p.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
649
649
|
get: p,
|
|
@@ -654,7 +654,7 @@ function nr() {
|
|
|
654
654
|
function Dn(o, h) {
|
|
655
655
|
{
|
|
656
656
|
var p = function() {
|
|
657
|
-
|
|
657
|
+
ft || (ft = !0, L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
658
658
|
};
|
|
659
659
|
p.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
660
660
|
get: p,
|
|
@@ -694,7 +694,7 @@ function nr() {
|
|
|
694
694
|
function Mn(o, h, p, T, I) {
|
|
695
695
|
{
|
|
696
696
|
var N, P = {}, C = null, X = null;
|
|
697
|
-
p !== void 0 && (
|
|
697
|
+
p !== void 0 && (ct(p), C = "" + p), jn(h) && (ct(h.key), C = "" + h.key), Ln(h) && (X = h.ref, In(h, I));
|
|
698
698
|
for (N in h)
|
|
699
699
|
ye.call(h, N) && !Pn.hasOwnProperty(N) && (P[N] = h[N]);
|
|
700
700
|
if (o && o.defaultProps) {
|
|
@@ -703,26 +703,26 @@ function nr() {
|
|
|
703
703
|
P[N] === void 0 && (P[N] = W[N]);
|
|
704
704
|
}
|
|
705
705
|
if (C || X) {
|
|
706
|
-
var
|
|
707
|
-
C && kn(P,
|
|
706
|
+
var z = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
707
|
+
C && kn(P, z), X && Dn(P, z);
|
|
708
708
|
}
|
|
709
|
-
return Nn(o, C, X, I, T,
|
|
709
|
+
return Nn(o, C, X, I, T, ut.current, P);
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
var Be = w.ReactCurrentOwner,
|
|
712
|
+
var Be = w.ReactCurrentOwner, ht = w.ReactDebugCurrentFrame;
|
|
713
713
|
function de(o) {
|
|
714
714
|
if (o) {
|
|
715
715
|
var h = o._owner, p = Se(o.type, o._source, h ? h.type : null);
|
|
716
|
-
|
|
716
|
+
ht.setExtraStackFrame(p);
|
|
717
717
|
} else
|
|
718
|
-
|
|
718
|
+
ht.setExtraStackFrame(null);
|
|
719
719
|
}
|
|
720
720
|
var We;
|
|
721
721
|
We = !1;
|
|
722
|
-
function
|
|
722
|
+
function ze(o) {
|
|
723
723
|
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function mt() {
|
|
726
726
|
{
|
|
727
727
|
if (Be.current) {
|
|
728
728
|
var o = Y(Be.current.type);
|
|
@@ -737,10 +737,10 @@ Check the render method of \`` + o + "`.";
|
|
|
737
737
|
function Fn(o) {
|
|
738
738
|
return "";
|
|
739
739
|
}
|
|
740
|
-
var
|
|
740
|
+
var vt = {};
|
|
741
741
|
function Vn(o) {
|
|
742
742
|
{
|
|
743
|
-
var h =
|
|
743
|
+
var h = mt();
|
|
744
744
|
if (!h) {
|
|
745
745
|
var p = typeof o == "string" ? o : o.displayName || o.name;
|
|
746
746
|
p && (h = `
|
|
@@ -750,35 +750,35 @@ Check the top-level render call using <` + p + ">.");
|
|
|
750
750
|
return h;
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function pt(o, h) {
|
|
754
754
|
{
|
|
755
755
|
if (!o._store || o._store.validated || o.key != null)
|
|
756
756
|
return;
|
|
757
757
|
o._store.validated = !0;
|
|
758
758
|
var p = Vn(h);
|
|
759
|
-
if (
|
|
759
|
+
if (vt[p])
|
|
760
760
|
return;
|
|
761
|
-
|
|
761
|
+
vt[p] = !0;
|
|
762
762
|
var T = "";
|
|
763
763
|
o && o._owner && o._owner !== Be.current && (T = " It was passed a child from " + Y(o._owner.type) + "."), de(o), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, T), de(null);
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function yt(o, h) {
|
|
767
767
|
{
|
|
768
768
|
if (typeof o != "object")
|
|
769
769
|
return;
|
|
770
770
|
if (Ue(o))
|
|
771
771
|
for (var p = 0; p < o.length; p++) {
|
|
772
772
|
var T = o[p];
|
|
773
|
-
|
|
773
|
+
ze(T) && pt(T, h);
|
|
774
774
|
}
|
|
775
|
-
else if (
|
|
775
|
+
else if (ze(o))
|
|
776
776
|
o._store && (o._store.validated = !0);
|
|
777
777
|
else if (o) {
|
|
778
778
|
var I = R(o);
|
|
779
779
|
if (typeof I == "function" && I !== o.entries)
|
|
780
780
|
for (var N = I.call(o), P; !(P = N.next()).done; )
|
|
781
|
-
|
|
781
|
+
ze(P.value) && pt(P.value, h);
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
}
|
|
@@ -819,64 +819,64 @@ Check the top-level render call using <` + p + ">.");
|
|
|
819
819
|
o.ref !== null && (de(o), L("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
|
-
var
|
|
823
|
-
function
|
|
822
|
+
var gt = {};
|
|
823
|
+
function wt(o, h, p, T, I, N) {
|
|
824
824
|
{
|
|
825
825
|
var P = F(o);
|
|
826
826
|
if (!P) {
|
|
827
827
|
var C = "";
|
|
828
828
|
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
829
829
|
var X = Fn();
|
|
830
|
-
X ? C += X : C +=
|
|
830
|
+
X ? C += X : C += mt();
|
|
831
831
|
var W;
|
|
832
832
|
o === null ? W = "null" : Ue(o) ? W = "array" : o !== void 0 && o.$$typeof === t ? (W = "<" + (Y(o.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : W = typeof o, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, C);
|
|
833
833
|
}
|
|
834
|
-
var
|
|
835
|
-
if (
|
|
836
|
-
return
|
|
834
|
+
var z = Mn(o, h, p, I, N);
|
|
835
|
+
if (z == null)
|
|
836
|
+
return z;
|
|
837
837
|
if (P) {
|
|
838
838
|
var te = h.children;
|
|
839
839
|
if (te !== void 0)
|
|
840
840
|
if (T)
|
|
841
841
|
if (Ue(te)) {
|
|
842
842
|
for (var fe = 0; fe < te.length; fe++)
|
|
843
|
-
|
|
843
|
+
yt(te[fe], o);
|
|
844
844
|
Object.freeze && Object.freeze(te);
|
|
845
845
|
} else
|
|
846
846
|
L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
847
847
|
else
|
|
848
|
-
|
|
848
|
+
yt(te, o);
|
|
849
849
|
}
|
|
850
850
|
if (ye.call(h, "key")) {
|
|
851
|
-
var ce = Y(o), Q = Object.keys(h).filter(function(
|
|
852
|
-
return
|
|
853
|
-
}),
|
|
854
|
-
if (!
|
|
851
|
+
var ce = Y(o), Q = Object.keys(h).filter(function(zn) {
|
|
852
|
+
return zn !== "key";
|
|
853
|
+
}), qe = Q.length > 0 ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
854
|
+
if (!gt[ce + qe]) {
|
|
855
855
|
var Wn = Q.length > 0 ? "{" + Q.join(": ..., ") + ": ...}" : "{}";
|
|
856
856
|
L(`A props object containing a "key" prop is being spread into JSX:
|
|
857
857
|
let props = %s;
|
|
858
858
|
<%s {...props} />
|
|
859
859
|
React keys must be passed directly to JSX without using spread:
|
|
860
860
|
let props = %s;
|
|
861
|
-
<%s key={someKey} {...props} />`,
|
|
861
|
+
<%s key={someKey} {...props} />`, qe, ce, Wn, ce), gt[ce + qe] = !0;
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
return o === r ? On(
|
|
864
|
+
return o === r ? On(z) : An(z), z;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
function Hn(o, h, p) {
|
|
868
|
-
return
|
|
868
|
+
return wt(o, h, p, !0);
|
|
869
869
|
}
|
|
870
870
|
function $n(o, h, p) {
|
|
871
|
-
return
|
|
871
|
+
return wt(o, h, p, !1);
|
|
872
872
|
}
|
|
873
873
|
var Un = $n, Bn = Hn;
|
|
874
874
|
we.Fragment = r, we.jsx = Un, we.jsxs = Bn;
|
|
875
875
|
})()), we;
|
|
876
876
|
}
|
|
877
|
-
var
|
|
877
|
+
var Rt;
|
|
878
878
|
function rr() {
|
|
879
|
-
return
|
|
879
|
+
return Rt || (Rt = 1, process.env.NODE_ENV === "production" ? Ie.exports = tr() : Ie.exports = nr()), Ie.exports;
|
|
880
880
|
}
|
|
881
881
|
var s = rr();
|
|
882
882
|
const zt = typeof window != "undefined" ? Kn : V;
|
|
@@ -939,7 +939,7 @@ function or(e, t) {
|
|
|
939
939
|
), e;
|
|
940
940
|
}
|
|
941
941
|
function ir(e, t, n) {
|
|
942
|
-
return
|
|
942
|
+
return qt(
|
|
943
943
|
t.getTime() - e.getTime(),
|
|
944
944
|
n,
|
|
945
945
|
"milliseconds"
|
|
@@ -976,9 +976,9 @@ function ar() {
|
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
function lr(e) {
|
|
979
|
-
return
|
|
979
|
+
return qt(e, "milliseconds", "seconds");
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function qt(e, t, n) {
|
|
982
982
|
const r = {
|
|
983
983
|
days: 86400,
|
|
984
984
|
hours: 3600,
|
|
@@ -988,12 +988,12 @@ function Yt(e, t, n) {
|
|
|
988
988
|
};
|
|
989
989
|
return e * (r[t] / r[n]);
|
|
990
990
|
}
|
|
991
|
-
function
|
|
991
|
+
function Yt(e) {
|
|
992
992
|
var n;
|
|
993
993
|
const t = typeof window != "undefined" && ((n = window.navigator) == null ? void 0 : n.userAgent) || "";
|
|
994
994
|
return e.test(t);
|
|
995
995
|
}
|
|
996
|
-
const Zt =
|
|
996
|
+
const Zt = Yt(/iPhone|iPad|iPod/i), cr = Yt(/Tizen/i);
|
|
997
997
|
function ur() {
|
|
998
998
|
const e = document;
|
|
999
999
|
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
@@ -1221,20 +1221,20 @@ const mr = () => Gn(), vr = (e, t) => ({
|
|
|
1221
1221
|
setError: (t) => e({ error: t })
|
|
1222
1222
|
}), xr = () => ({
|
|
1223
1223
|
eventEmitter: mr()
|
|
1224
|
-
}), Cr = (e) => () => M({}, e), Er = (e, t) =>
|
|
1224
|
+
}), Cr = (e) => () => M({}, e), Er = (e, t) => Vt()((...n) => M(M(M(M(M(M(M(M(M({}, vr(...n)), pr(...n)), yr(...n)), gr(...n)), wr(...n)), _r(...n)), Tr(...n)), xr(...n)), Cr({
|
|
1225
1225
|
techRef: e,
|
|
1226
1226
|
containerRef: t
|
|
1227
|
-
})(...n))), Kt =
|
|
1227
|
+
})(...n))), Kt = Nt(null);
|
|
1228
1228
|
function Rr({ children: e }) {
|
|
1229
1229
|
const t = O(null), n = O(null), r = O(null);
|
|
1230
1230
|
return t.current || (t.current = Er(n, r)), /* @__PURE__ */ s.jsx(Kt.Provider, { value: t.current, children: e });
|
|
1231
1231
|
}
|
|
1232
1232
|
const f = (e) => {
|
|
1233
|
-
const t =
|
|
1233
|
+
const t = Mt(Kt);
|
|
1234
1234
|
if (!t)
|
|
1235
1235
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
1236
|
-
return
|
|
1237
|
-
}, Sr = "0.0.
|
|
1236
|
+
return Ft(t, e);
|
|
1237
|
+
}, Sr = "0.0.58", Je = {
|
|
1238
1238
|
version: Sr
|
|
1239
1239
|
}, Ye = 11e3, Ze = {
|
|
1240
1240
|
DEBUG: 2,
|
|
@@ -1268,7 +1268,7 @@ function Gt({
|
|
|
1268
1268
|
installation: k,
|
|
1269
1269
|
level_num: b,
|
|
1270
1270
|
log_source: "fitnessanny_player",
|
|
1271
|
-
capp_version:
|
|
1271
|
+
capp_version: Je.version,
|
|
1272
1272
|
message: L,
|
|
1273
1273
|
target_index: w === "client" ? "client_log" : "watching_activity_log"
|
|
1274
1274
|
};
|
|
@@ -1324,14 +1324,14 @@ function Gt({
|
|
|
1324
1324
|
};
|
|
1325
1325
|
}, [d, E, x, R]), null;
|
|
1326
1326
|
}
|
|
1327
|
-
const br = () =>
|
|
1327
|
+
const br = () => Vt((e) => ({
|
|
1328
1328
|
delay: 0,
|
|
1329
1329
|
startDate: null,
|
|
1330
1330
|
viewerCount: null,
|
|
1331
1331
|
setDelay: (t) => e({ delay: t }),
|
|
1332
1332
|
setStartDate: (t) => e({ startDate: t }),
|
|
1333
1333
|
setViewerCount: (t) => e({ viewerCount: t })
|
|
1334
|
-
})), Xt =
|
|
1334
|
+
})), Xt = Nt(
|
|
1335
1335
|
null
|
|
1336
1336
|
), Pr = ({ children: e }) => {
|
|
1337
1337
|
const t = O(
|
|
@@ -1339,12 +1339,12 @@ const br = () => At((e) => ({
|
|
|
1339
1339
|
);
|
|
1340
1340
|
return t.current || (t.current = br()), /* @__PURE__ */ s.jsx(Xt.Provider, { value: t.current, children: e });
|
|
1341
1341
|
}, U = (e) => {
|
|
1342
|
-
const t =
|
|
1342
|
+
const t = Mt(Xt);
|
|
1343
1343
|
if (!t)
|
|
1344
1344
|
throw new Error(
|
|
1345
1345
|
"useLivePlayerStore must be used within PlayerStoreProvider"
|
|
1346
1346
|
);
|
|
1347
|
-
return
|
|
1347
|
+
return Ft(t, e);
|
|
1348
1348
|
};
|
|
1349
1349
|
function Jt(e) {
|
|
1350
1350
|
try {
|
|
@@ -1526,7 +1526,7 @@ function Wr({
|
|
|
1526
1526
|
});
|
|
1527
1527
|
}), a;
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1529
|
+
function zr({ callback: e }) {
|
|
1530
1530
|
const t = U((c) => c.delay), n = U((c) => c.startDate), r = n ? n.getTime() : 0, a = f((c) => c.eventEmitter);
|
|
1531
1531
|
return V(() => {
|
|
1532
1532
|
const c = () => e("timeUpdate", {
|
|
@@ -1573,7 +1573,7 @@ function nn() {
|
|
|
1573
1573
|
document.removeEventListener("keydown", u);
|
|
1574
1574
|
}), [u]), null;
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function qr() {
|
|
1577
1577
|
const e = U((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), r = f((i) => i.getPauseTimeDiff), a = f((i) => i.play), c = U((i) => i.setDelay), u = A(
|
|
1578
1578
|
(i) => {
|
|
1579
1579
|
let l = !1;
|
|
@@ -1998,13 +1998,13 @@ function co() {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
);
|
|
2000
2000
|
}
|
|
2001
|
-
const uo = "_playerButton_izwqq_1", fo = "_playerButtonCircle_izwqq_42",
|
|
2001
|
+
const uo = "_playerButton_izwqq_1", fo = "_playerButtonCircle_izwqq_42", St = {
|
|
2002
2002
|
playerButton: uo,
|
|
2003
2003
|
playerButtonCircle: fo
|
|
2004
2004
|
}, ae = Ve(
|
|
2005
2005
|
(a, r) => {
|
|
2006
2006
|
var c = a, { shape: e = "circle", className: t } = c, n = re(c, ["shape", "className"]);
|
|
2007
|
-
const u = e === "circle" ?
|
|
2007
|
+
const u = e === "circle" ? St.playerButtonCircle : "", i = [St.playerButton, u, t].filter(Boolean).join(" ");
|
|
2008
2008
|
return /* @__PURE__ */ s.jsx("button", M({ ref: r, className: i }, n));
|
|
2009
2009
|
}
|
|
2010
2010
|
);
|
|
@@ -2103,18 +2103,18 @@ function Fe(e) {
|
|
|
2103
2103
|
height: t.height * 100
|
|
2104
2104
|
} : t;
|
|
2105
2105
|
}
|
|
2106
|
-
const
|
|
2106
|
+
const bt = "vod-player-progress-bar";
|
|
2107
2107
|
function bo() {
|
|
2108
2108
|
const e = O(null), t = O(null), [n, r] = G(0), [a, c] = G(0), [u, i] = G(!1), [l, d] = G(-1), [g, _] = G(-1), y = U((D) => D.delay), k = U((D) => D.startDate), E = k ? k.getTime() : 0, x = (/* @__PURE__ */ new Date()).getTime(), R = U((D) => D.setDelay), w = f((D) => D.isPlaying), L = f((D) => D.addIdleLock), b = f((D) => D.removeIdleLock), B = A(() => {
|
|
2109
2109
|
r(tn(E, y)), c(Ur(E, x));
|
|
2110
2110
|
}, [y, x, E]), H = parseFloat(
|
|
2111
2111
|
(a ? (g !== -1 ? g : n) / a * 100 : 0).toFixed(1)
|
|
2112
2112
|
), m = (D) => {
|
|
2113
|
-
_(a * (D[0] / 100)), L(
|
|
2113
|
+
_(a * (D[0] / 100)), L(bt);
|
|
2114
2114
|
}, v = () => {
|
|
2115
2115
|
if (g !== -1) {
|
|
2116
2116
|
const D = en(E, g);
|
|
2117
|
-
R(D), _(-1), b(
|
|
2117
|
+
R(D), _(-1), b(bt);
|
|
2118
2118
|
}
|
|
2119
2119
|
}, S = () => i(!0), j = () => i(!1), F = A(
|
|
2120
2120
|
(D) => {
|
|
@@ -2225,7 +2225,7 @@ function cn() {
|
|
|
2225
2225
|
}
|
|
2226
2226
|
);
|
|
2227
2227
|
}
|
|
2228
|
-
const Mo = "_playerContainer_146tx_1", Fo = "_controlsTop_146tx_12", Vo = "_controlsBottom_146tx_29", Ao = "_controlsContainer_146tx_45", Oo = "_controlsRow_146tx_61", Ho = "_controlsSection_146tx_68", $o = "_controlsSectionStart_146tx_78", Uo = "_controlsSectionEnd_146tx_82",
|
|
2228
|
+
const Mo = "_playerContainer_146tx_1", Fo = "_controlsTop_146tx_12", Vo = "_controlsBottom_146tx_29", Ao = "_controlsContainer_146tx_45", Oo = "_controlsRow_146tx_61", Ho = "_controlsSection_146tx_68", $o = "_controlsSectionStart_146tx_78", Uo = "_controlsSectionEnd_146tx_82", q = {
|
|
2229
2229
|
playerContainer: Mo,
|
|
2230
2230
|
controlsTop: Fo,
|
|
2231
2231
|
controlsBottom: Vo,
|
|
@@ -2274,9 +2274,9 @@ function un() {
|
|
|
2274
2274
|
c(!0);
|
|
2275
2275
|
}, [c]), /* @__PURE__ */ s.jsx(ae, { onClick: l, children: n ? /* @__PURE__ */ s.jsx(Wo, {}) : /* @__PURE__ */ s.jsx(Bo, {}) });
|
|
2276
2276
|
}
|
|
2277
|
-
const
|
|
2278
|
-
idleCheckContainer:
|
|
2279
|
-
idleCheckContainerIdle:
|
|
2277
|
+
const zo = "_idleCheckContainer_crh2s_1", qo = "_idleCheckContainerIdle_crh2s_5", Yo = "_idleCheckContainerActive_crh2s_11", Ke = {
|
|
2278
|
+
idleCheckContainer: zo,
|
|
2279
|
+
idleCheckContainerIdle: qo,
|
|
2280
2280
|
idleCheckContainerActive: Yo
|
|
2281
2281
|
}, Zo = 5 * 1e3;
|
|
2282
2282
|
function dn({ children: e }) {
|
|
@@ -2343,14 +2343,14 @@ function ti() {
|
|
|
2343
2343
|
}
|
|
2344
2344
|
);
|
|
2345
2345
|
}
|
|
2346
|
-
const ni = "
|
|
2346
|
+
const ni = "_dropdownMenuContent_zi433_1", ri = "_dropdownMenuItem_zi433_77", oi = "_scrollAreaRoot_zi433_120", ii = "_scrollAreaViewport_zi433_127", si = "_scrollAreaScrollbar_zi433_133", ai = "_scrollAreaThumb_zi433_160", ve = {
|
|
2347
2347
|
dropdownMenuContent: ni,
|
|
2348
2348
|
dropdownMenuItem: ri,
|
|
2349
2349
|
scrollAreaRoot: oi,
|
|
2350
2350
|
scrollAreaViewport: ii,
|
|
2351
2351
|
scrollAreaScrollbar: si,
|
|
2352
2352
|
scrollAreaThumb: ai
|
|
2353
|
-
}, mn = xe.Root, vn = xe.Trigger, pn = xe.Portal,
|
|
2353
|
+
}, mn = xe.Root, vn = xe.Trigger, pn = xe.Portal, Qe = Ve((c, a) => {
|
|
2354
2354
|
var u = c, { sideOffset: e = 4, className: t, children: n } = u, r = re(u, ["sideOffset", "className", "children"]);
|
|
2355
2355
|
return /* @__PURE__ */ s.jsx(
|
|
2356
2356
|
xe.Content,
|
|
@@ -2387,8 +2387,8 @@ const ni = "_dropdownMenuContent_lqxir_1", ri = "_dropdownMenuItem_lqxir_83", oi
|
|
|
2387
2387
|
})
|
|
2388
2388
|
);
|
|
2389
2389
|
});
|
|
2390
|
-
|
|
2391
|
-
const
|
|
2390
|
+
Qe.displayName = "PlayerMenuContent";
|
|
2391
|
+
const et = Ve((a, r) => {
|
|
2392
2392
|
var c = a, { className: e, onClick: t } = c, n = re(c, ["className", "onClick"]);
|
|
2393
2393
|
const u = (l) => {
|
|
2394
2394
|
t == null || t(l);
|
|
@@ -2407,19 +2407,19 @@ const tt = Ve((a, r) => {
|
|
|
2407
2407
|
}, n)
|
|
2408
2408
|
) });
|
|
2409
2409
|
});
|
|
2410
|
-
|
|
2411
|
-
const
|
|
2410
|
+
et.displayName = "PlayerMenuItem";
|
|
2411
|
+
const Pt = "quality";
|
|
2412
2412
|
function yn() {
|
|
2413
2413
|
const [e, t] = G(!1), n = f((l) => l.containerRef), r = f((l) => l.addIdleLock), a = f((l) => l.removeIdleLock), c = f((l) => l.levels), u = f((l) => l.setLevel), i = A(
|
|
2414
2414
|
(l) => {
|
|
2415
|
-
t(l), l ? r(
|
|
2415
|
+
t(l), l ? r(Pt) : a(Pt);
|
|
2416
2416
|
},
|
|
2417
2417
|
[r, a]
|
|
2418
2418
|
);
|
|
2419
2419
|
return !c || c.length === 0 ? null : /* @__PURE__ */ s.jsxs(mn, { open: e, onOpenChange: i, children: [
|
|
2420
2420
|
/* @__PURE__ */ s.jsx(vn, { asChild: !0, children: /* @__PURE__ */ s.jsx(ae, { children: /* @__PURE__ */ s.jsx(ti, {}) }) }),
|
|
2421
|
-
/* @__PURE__ */ s.jsx(pn, { container: n.current, children: /* @__PURE__ */ s.jsx(
|
|
2422
|
-
|
|
2421
|
+
/* @__PURE__ */ s.jsx(pn, { container: n.current, children: /* @__PURE__ */ s.jsx(Qe, { side: "top", align: "end", children: c.map((l) => /* @__PURE__ */ s.jsxs(
|
|
2422
|
+
et,
|
|
2423
2423
|
{
|
|
2424
2424
|
onClick: () => u(l.value),
|
|
2425
2425
|
children: [
|
|
@@ -2464,19 +2464,19 @@ function ui() {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
);
|
|
2466
2466
|
}
|
|
2467
|
-
const di = "_volumeContainer_4d6jg_1", fi = "_volumeSlider_4d6jg_8",
|
|
2467
|
+
const di = "_volumeContainer_4d6jg_1", fi = "_volumeSlider_4d6jg_8", Lt = {
|
|
2468
2468
|
volumeContainer: di,
|
|
2469
2469
|
volumeSlider: fi
|
|
2470
|
-
},
|
|
2470
|
+
}, jt = "volume";
|
|
2471
2471
|
function gn() {
|
|
2472
2472
|
const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), r = f((i) => i.removeIdleLock), a = (i) => {
|
|
2473
|
-
e(i[0]), n(
|
|
2473
|
+
e(i[0]), n(jt);
|
|
2474
2474
|
}, c = () => {
|
|
2475
|
-
r(
|
|
2475
|
+
r(jt);
|
|
2476
2476
|
}, u = () => e(t ? 0 : 100);
|
|
2477
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
2477
|
+
return /* @__PURE__ */ s.jsxs("div", { className: Lt.volumeContainer, children: [
|
|
2478
2478
|
/* @__PURE__ */ s.jsx(ae, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ s.jsx(li, {}) : /* @__PURE__ */ s.jsx(ci, {}) : /* @__PURE__ */ s.jsx(ui, {}) }),
|
|
2479
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2479
|
+
/* @__PURE__ */ s.jsx("div", { className: Lt.volumeSlider, children: /* @__PURE__ */ s.jsx(
|
|
2480
2480
|
Ae,
|
|
2481
2481
|
{
|
|
2482
2482
|
value: [t],
|
|
@@ -2497,12 +2497,12 @@ function hi({ url: e, messages: t = {}, onEvent: n }) {
|
|
|
2497
2497
|
unableToPlay: "Unable to play the live stream. Please try again later."
|
|
2498
2498
|
};
|
|
2499
2499
|
return V(() => {
|
|
2500
|
-
console.log(`[Player][Live] Version: ${
|
|
2500
|
+
console.log(`[Player][Live] Version: ${Je.version}`);
|
|
2501
2501
|
}, []), /* @__PURE__ */ s.jsxs(
|
|
2502
2502
|
"div",
|
|
2503
2503
|
{
|
|
2504
2504
|
ref: r,
|
|
2505
|
-
className:
|
|
2505
|
+
className: q.playerContainer,
|
|
2506
2506
|
children: [
|
|
2507
2507
|
/* @__PURE__ */ s.jsxs(
|
|
2508
2508
|
Or,
|
|
@@ -2527,14 +2527,14 @@ function hi({ url: e, messages: t = {}, onEvent: n }) {
|
|
|
2527
2527
|
/* @__PURE__ */ s.jsx(fn, {}),
|
|
2528
2528
|
/* @__PURE__ */ s.jsx(co, {}),
|
|
2529
2529
|
/* @__PURE__ */ s.jsxs(dn, { children: [
|
|
2530
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2531
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2530
|
+
/* @__PURE__ */ s.jsx("div", { className: q.controlsTop, children: /* @__PURE__ */ s.jsx("div", { className: q.controlsContainer, children: /* @__PURE__ */ s.jsx("div", { className: q.controlsRow, children: /* @__PURE__ */ s.jsx(No, {}) }) }) }),
|
|
2531
|
+
/* @__PURE__ */ s.jsx("div", { className: q.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: q.controlsContainer, children: [
|
|
2532
2532
|
/* @__PURE__ */ s.jsx(bo, {}),
|
|
2533
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
2533
|
+
/* @__PURE__ */ s.jsxs("div", { className: q.controlsRow, children: [
|
|
2534
2534
|
/* @__PURE__ */ s.jsxs(
|
|
2535
2535
|
"div",
|
|
2536
2536
|
{
|
|
2537
|
-
className: `${
|
|
2537
|
+
className: `${q.controlsSection} ${q.controlsSectionStart}`,
|
|
2538
2538
|
children: [
|
|
2539
2539
|
/* @__PURE__ */ s.jsx(yo, {}),
|
|
2540
2540
|
/* @__PURE__ */ s.jsx(Lo, {}),
|
|
@@ -2545,7 +2545,7 @@ function hi({ url: e, messages: t = {}, onEvent: n }) {
|
|
|
2545
2545
|
/* @__PURE__ */ s.jsxs(
|
|
2546
2546
|
"div",
|
|
2547
2547
|
{
|
|
2548
|
-
className: `${
|
|
2548
|
+
className: `${q.controlsSection} ${q.controlsSectionEnd}`,
|
|
2549
2549
|
children: [
|
|
2550
2550
|
/* @__PURE__ */ s.jsx(po, { message: t == null ? void 0 : t.live }),
|
|
2551
2551
|
/* @__PURE__ */ s.jsx(yn, {}),
|
|
@@ -2557,21 +2557,21 @@ function hi({ url: e, messages: t = {}, onEvent: n }) {
|
|
|
2557
2557
|
] }) })
|
|
2558
2558
|
] }),
|
|
2559
2559
|
/* @__PURE__ */ s.jsx(Lr, { url: e }),
|
|
2560
|
-
/* @__PURE__ */ s.jsx(
|
|
2560
|
+
/* @__PURE__ */ s.jsx(qr, {}),
|
|
2561
2561
|
/* @__PURE__ */ s.jsx(Jr, { url: e })
|
|
2562
2562
|
]
|
|
2563
2563
|
}
|
|
2564
2564
|
),
|
|
2565
|
-
n && /* @__PURE__ */ s.jsx(
|
|
2565
|
+
n && /* @__PURE__ */ s.jsx(zr, { callback: n })
|
|
2566
2566
|
]
|
|
2567
2567
|
}
|
|
2568
2568
|
);
|
|
2569
2569
|
}
|
|
2570
|
-
const mi = [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2],
|
|
2570
|
+
const mi = [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2], It = "playback-rate";
|
|
2571
2571
|
function vi() {
|
|
2572
2572
|
const [e, t] = G(!1), n = f((l) => l.containerRef), r = f((l) => l.addIdleLock), a = f((l) => l.removeIdleLock), c = f((l) => l.playbackRate), u = f((l) => l.setPlaybackRate), i = A(
|
|
2573
2573
|
(l) => {
|
|
2574
|
-
t(l), l ? r(
|
|
2574
|
+
t(l), l ? r(It) : a(It);
|
|
2575
2575
|
},
|
|
2576
2576
|
[r, a]
|
|
2577
2577
|
);
|
|
@@ -2580,8 +2580,8 @@ function vi() {
|
|
|
2580
2580
|
c,
|
|
2581
2581
|
"x"
|
|
2582
2582
|
] }) }),
|
|
2583
|
-
/* @__PURE__ */ s.jsx(pn, { container: n.current, children: /* @__PURE__ */ s.jsx(
|
|
2584
|
-
|
|
2583
|
+
/* @__PURE__ */ s.jsx(pn, { container: n.current, children: /* @__PURE__ */ s.jsx(Qe, { side: "top", align: "end", children: mi.map((l) => /* @__PURE__ */ s.jsxs(
|
|
2584
|
+
et,
|
|
2585
2585
|
{
|
|
2586
2586
|
onClick: () => u(l),
|
|
2587
2587
|
children: [
|
|
@@ -2621,14 +2621,14 @@ function yi() {
|
|
|
2621
2621
|
};
|
|
2622
2622
|
return /* @__PURE__ */ s.jsx(ae, { onClick: r, children: e ? /* @__PURE__ */ s.jsx(an, {}) : /* @__PURE__ */ s.jsx(ln, {}) });
|
|
2623
2623
|
}
|
|
2624
|
-
const
|
|
2624
|
+
const kt = "vod-player-progress-bar";
|
|
2625
2625
|
function gi() {
|
|
2626
2626
|
const e = O(null), t = O(null), [n, r] = G(!1), [a, c] = G(-1), [u, i] = G(-1), l = f((b) => b.currentTime), d = f((b) => b.duration), g = f((b) => b.seek), _ = f((b) => b.addIdleLock), y = f((b) => b.removeIdleLock), k = parseFloat(
|
|
2627
2627
|
(d ? (u !== -1 ? u : l) / d * 100 : 0).toFixed(1)
|
|
2628
2628
|
), E = (b) => {
|
|
2629
|
-
i(d * (b[0] / 100)), _(
|
|
2629
|
+
i(d * (b[0] / 100)), _(kt);
|
|
2630
2630
|
}, x = () => {
|
|
2631
|
-
u !== -1 && (g(u), i(-1), y(
|
|
2631
|
+
u !== -1 && (g(u), i(-1), y(kt));
|
|
2632
2632
|
}, R = () => r(!0), w = () => r(!1), L = A(
|
|
2633
2633
|
(b) => {
|
|
2634
2634
|
const B = e.current, H = t.current;
|
|
@@ -2728,12 +2728,12 @@ function Si({ url: e, messages: t, onEvent: n, startTime: r }) {
|
|
|
2728
2728
|
return V(() => {
|
|
2729
2729
|
r && a(r);
|
|
2730
2730
|
}, [r, a]), V(() => {
|
|
2731
|
-
console.log(`[Player][VOD] Version: ${
|
|
2731
|
+
console.log(`[Player][VOD] Version: ${Je.version}`);
|
|
2732
2732
|
}, []), /* @__PURE__ */ s.jsxs(
|
|
2733
2733
|
"div",
|
|
2734
2734
|
{
|
|
2735
2735
|
ref: c,
|
|
2736
|
-
className:
|
|
2736
|
+
className: q.playerContainer,
|
|
2737
2737
|
children: [
|
|
2738
2738
|
/* @__PURE__ */ s.jsx(
|
|
2739
2739
|
on,
|
|
@@ -2748,13 +2748,13 @@ function Si({ url: e, messages: t, onEvent: n, startTime: r }) {
|
|
|
2748
2748
|
/* @__PURE__ */ s.jsx(cn, {}),
|
|
2749
2749
|
/* @__PURE__ */ s.jsx(fn, {}),
|
|
2750
2750
|
/* @__PURE__ */ s.jsx(pi, {}),
|
|
2751
|
-
/* @__PURE__ */ s.jsx(dn, { children: /* @__PURE__ */ s.jsx("div", { className:
|
|
2751
|
+
/* @__PURE__ */ s.jsx(dn, { children: /* @__PURE__ */ s.jsx("div", { className: q.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: q.controlsContainer, children: [
|
|
2752
2752
|
/* @__PURE__ */ s.jsx(gi, {}),
|
|
2753
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
2753
|
+
/* @__PURE__ */ s.jsxs("div", { className: q.controlsRow, children: [
|
|
2754
2754
|
/* @__PURE__ */ s.jsxs(
|
|
2755
2755
|
"div",
|
|
2756
2756
|
{
|
|
2757
|
-
className: `${
|
|
2757
|
+
className: `${q.controlsSection} ${q.controlsSectionStart}`,
|
|
2758
2758
|
children: [
|
|
2759
2759
|
/* @__PURE__ */ s.jsx(yi, {}),
|
|
2760
2760
|
/* @__PURE__ */ s.jsx(gn, {}),
|
|
@@ -2765,7 +2765,7 @@ function Si({ url: e, messages: t, onEvent: n, startTime: r }) {
|
|
|
2765
2765
|
/* @__PURE__ */ s.jsxs(
|
|
2766
2766
|
"div",
|
|
2767
2767
|
{
|
|
2768
|
-
className: `${
|
|
2768
|
+
className: `${q.controlsSection} ${q.controlsSectionEnd}`,
|
|
2769
2769
|
children: [
|
|
2770
2770
|
/* @__PURE__ */ s.jsx(vi, {}),
|
|
2771
2771
|
/* @__PURE__ */ s.jsx(yn, {}),
|