@halibegic/react-video-player 0.0.8 → 0.0.9
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/components/icons/start-over-icon.d.ts +2 -0
- package/dist/components/{player/live-player → live-player}/live-player-go-live.d.ts +1 -1
- package/dist/components/live-player/live-player-start-over.d.ts +2 -0
- package/dist/react-video-player.es.js +409 -393
- package/dist/react-video-player.es.js.map +1 -1
- package/dist/react-video-player.umd.js +51 -47
- package/dist/react-video-player.umd.js.map +1 -1
- package/dist/stores/player-store.d.ts +1 -8
- package/dist/utils/player.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/components/{player/ui/icons → icons}/arrow-right-icon.d.ts +0 -0
- /package/dist/components/{player/ui/icons → icons}/check-icon.d.ts +0 -0
- /package/dist/components/{player/ui/icons → icons}/fullscreen-enter-icon.d.ts +0 -0
- /package/dist/components/{player/ui/icons → icons}/fullscreen-exit-icon.d.ts +0 -0
- /package/dist/components/{player/ui/icons → icons}/hd-icon.d.ts +0 -0
- /package/dist/components/{player/ui/icons → icons}/pause-icon.d.ts +0 -0
- /package/dist/components/{player/ui/icons → icons}/play-icon.d.ts +0 -0
- /package/dist/components/{player/ui/icons → icons}/volume-max-icon.d.ts +0 -0
- /package/dist/components/{player/ui/icons → icons}/volume-min-icon.d.ts +0 -0
- /package/dist/components/{player/ui/icons → icons}/volume-mute-icon.d.ts +0 -0
- /package/dist/components/{player/live-player → live-player}/live-player-event-check.d.ts +0 -0
- /package/dist/components/{player/live-player → live-player}/live-player-playback-indicator.d.ts +0 -0
- /package/dist/components/{player/live-player → live-player}/live-player-playback.d.ts +0 -0
- /package/dist/components/{player/live-player → live-player}/live-player-progress.d.ts +0 -0
- /package/dist/components/{player/live-player → live-player}/live-player-provider.d.ts +0 -0
- /package/dist/components/{player/live-player → live-player}/live-player-remaining-time.d.ts +0 -0
- /package/dist/components/{player/live-player → live-player}/live-player-tech.d.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import st, { useLayoutEffect as
|
|
1
|
+
import st, { useLayoutEffect as xn, useEffect as A, useRef as V, useState as M, createContext as at, useContext as lt, forwardRef as ge, useCallback as k } from "react";
|
|
2
2
|
import { create as ct, useStore as ut } from "zustand";
|
|
3
|
-
import b, { css as Ge, keyframes as
|
|
3
|
+
import b, { css as Ge, keyframes as wn } from "styled-components";
|
|
4
4
|
import * as ye from "@radix-ui/react-slider";
|
|
5
|
-
import
|
|
5
|
+
import ee from "hls.js";
|
|
6
6
|
import * as ce from "@radix-ui/react-dropdown-menu";
|
|
7
7
|
var pe = { exports: {} }, ae = {};
|
|
8
8
|
/**
|
|
@@ -15,16 +15,16 @@ var pe = { exports: {} }, ae = {};
|
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
17
|
var Qe;
|
|
18
|
-
function
|
|
18
|
+
function bn() {
|
|
19
19
|
if (Qe) return ae;
|
|
20
20
|
Qe = 1;
|
|
21
21
|
var e = st, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
22
|
function m(f, a, d) {
|
|
23
|
-
var p, y = {}, E = null,
|
|
24
|
-
d !== void 0 && (E = "" + d), a.key !== void 0 && (E = "" + a.key), a.ref !== void 0 && (
|
|
23
|
+
var p, y = {}, E = null, j = null;
|
|
24
|
+
d !== void 0 && (E = "" + d), a.key !== void 0 && (E = "" + a.key), a.ref !== void 0 && (j = a.ref);
|
|
25
25
|
for (p in a) i.call(a, p) && !h.hasOwnProperty(p) && (y[p] = a[p]);
|
|
26
26
|
if (f && f.defaultProps) for (p in a = f.defaultProps, a) y[p] === void 0 && (y[p] = a[p]);
|
|
27
|
-
return { $$typeof: n, type: f, key: E, ref:
|
|
27
|
+
return { $$typeof: n, type: f, key: E, ref: j, props: y, _owner: l.current };
|
|
28
28
|
}
|
|
29
29
|
return ae.Fragment = r, ae.jsx = m, ae.jsxs = m, ae;
|
|
30
30
|
}
|
|
@@ -39,16 +39,16 @@ var le = {};
|
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
41
|
var et;
|
|
42
|
-
function
|
|
42
|
+
function Tn() {
|
|
43
43
|
return et || (et = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
44
|
-
var e = st, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), f = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), E = Symbol.for("react.lazy"),
|
|
45
|
-
function
|
|
44
|
+
var e = st, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), f = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), H = Symbol.iterator, F = "@@iterator";
|
|
45
|
+
function B(t) {
|
|
46
46
|
if (t === null || typeof t != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var s =
|
|
48
|
+
var s = H && t[H] || t[F];
|
|
49
49
|
return typeof s == "function" ? s : null;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var I = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
52
|
function S(t) {
|
|
53
53
|
{
|
|
54
54
|
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), g = 1; g < s; g++)
|
|
@@ -58,31 +58,31 @@ function bn() {
|
|
|
58
58
|
}
|
|
59
59
|
function v(t, s, u) {
|
|
60
60
|
{
|
|
61
|
-
var g =
|
|
62
|
-
|
|
61
|
+
var g = I.ReactDebugCurrentFrame, C = g.getStackAddendum();
|
|
62
|
+
C !== "" && (s += "%s", u = u.concat([C]));
|
|
63
63
|
var P = u.map(function(w) {
|
|
64
64
|
return String(w);
|
|
65
65
|
});
|
|
66
66
|
P.unshift("Warning: " + s), Function.prototype.apply.call(console[t], console, P);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var z = !1,
|
|
70
|
-
|
|
69
|
+
var z = !1, Z = !1, J = !1, te = !1, X = !1, K;
|
|
70
|
+
K = Symbol.for("react.module.reference");
|
|
71
71
|
function T(t) {
|
|
72
|
-
return !!(typeof t == "string" || typeof t == "function" || t === i || t === h ||
|
|
72
|
+
return !!(typeof t == "string" || typeof t == "function" || t === i || t === h || X || t === l || t === d || t === p || te || t === j || z || Z || J || typeof t == "object" && t !== null && (t.$$typeof === E || t.$$typeof === y || t.$$typeof === m || t.$$typeof === f || t.$$typeof === a || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
t.$$typeof ===
|
|
76
|
+
t.$$typeof === K || t.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
78
|
function ue(t, s, u) {
|
|
79
79
|
var g = t.displayName;
|
|
80
80
|
if (g)
|
|
81
81
|
return g;
|
|
82
|
-
var
|
|
83
|
-
return
|
|
82
|
+
var C = s.displayName || s.name || "";
|
|
83
|
+
return C !== "" ? u + "(" + C + ")" : u;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function G(t) {
|
|
86
86
|
return t.displayName || "Context";
|
|
87
87
|
}
|
|
88
88
|
function $(t) {
|
|
@@ -110,17 +110,17 @@ function bn() {
|
|
|
110
110
|
switch (t.$$typeof) {
|
|
111
111
|
case f:
|
|
112
112
|
var s = t;
|
|
113
|
-
return
|
|
113
|
+
return G(s) + ".Consumer";
|
|
114
114
|
case m:
|
|
115
115
|
var u = t;
|
|
116
|
-
return
|
|
116
|
+
return G(u._context) + ".Provider";
|
|
117
117
|
case a:
|
|
118
118
|
return ue(t, t.render, "ForwardRef");
|
|
119
119
|
case y:
|
|
120
120
|
var g = t.displayName || null;
|
|
121
121
|
return g !== null ? g : $(t.type) || "Memo";
|
|
122
122
|
case E: {
|
|
123
|
-
var
|
|
123
|
+
var C = t, P = C._payload, w = C._init;
|
|
124
124
|
try {
|
|
125
125
|
return $(w(P));
|
|
126
126
|
} catch {
|
|
@@ -130,13 +130,13 @@ function bn() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var N = Object.assign, Y = 0, ie, W, Fe, _e, Ie, De, Me;
|
|
134
134
|
function Ve() {
|
|
135
135
|
}
|
|
136
136
|
Ve.__reactDisabledLog = !0;
|
|
137
|
-
function
|
|
137
|
+
function zt() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
139
|
+
if (Y === 0) {
|
|
140
140
|
ie = console.log, W = console.info, Fe = console.warn, _e = console.error, Ie = console.group, De = console.groupCollapsed, Me = console.groupEnd;
|
|
141
141
|
var t = {
|
|
142
142
|
configurable: !0,
|
|
@@ -154,65 +154,65 @@ function bn() {
|
|
|
154
154
|
groupEnd: t
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
Y++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Zt() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
162
|
+
if (Y--, Y === 0) {
|
|
163
163
|
var t = {
|
|
164
164
|
configurable: !0,
|
|
165
165
|
enumerable: !0,
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
169
|
+
log: N({}, t, {
|
|
170
170
|
value: ie
|
|
171
171
|
}),
|
|
172
|
-
info:
|
|
172
|
+
info: N({}, t, {
|
|
173
173
|
value: W
|
|
174
174
|
}),
|
|
175
|
-
warn:
|
|
175
|
+
warn: N({}, t, {
|
|
176
176
|
value: Fe
|
|
177
177
|
}),
|
|
178
|
-
error:
|
|
178
|
+
error: N({}, t, {
|
|
179
179
|
value: _e
|
|
180
180
|
}),
|
|
181
|
-
group:
|
|
181
|
+
group: N({}, t, {
|
|
182
182
|
value: Ie
|
|
183
183
|
}),
|
|
184
|
-
groupCollapsed:
|
|
184
|
+
groupCollapsed: N({}, t, {
|
|
185
185
|
value: De
|
|
186
186
|
}),
|
|
187
|
-
groupEnd:
|
|
187
|
+
groupEnd: N({}, t, {
|
|
188
188
|
value: Me
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
Y < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var be =
|
|
195
|
+
var be = I.ReactCurrentDispatcher, Te;
|
|
196
196
|
function de(t, s, u) {
|
|
197
197
|
{
|
|
198
198
|
if (Te === void 0)
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var g =
|
|
201
|
+
} catch (C) {
|
|
202
|
+
var g = C.stack.trim().match(/\n( *(at )?)/);
|
|
203
203
|
Te = g && g[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
206
|
` + Te + t;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var Ce = !1, fe;
|
|
210
210
|
{
|
|
211
211
|
var Yt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
212
|
fe = new Yt();
|
|
213
213
|
}
|
|
214
214
|
function He(t, s) {
|
|
215
|
-
if (!t ||
|
|
215
|
+
if (!t || Ce)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
218
|
var u = fe.get(t);
|
|
@@ -220,11 +220,11 @@ function bn() {
|
|
|
220
220
|
return u;
|
|
221
221
|
}
|
|
222
222
|
var g;
|
|
223
|
-
|
|
224
|
-
var
|
|
223
|
+
Ce = !0;
|
|
224
|
+
var C = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
226
|
var P;
|
|
227
|
-
P = be.current, be.current = null,
|
|
227
|
+
P = be.current, be.current = null, zt();
|
|
228
228
|
try {
|
|
229
229
|
if (s) {
|
|
230
230
|
var w = function() {
|
|
@@ -237,55 +237,55 @@ function bn() {
|
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
239
|
Reflect.construct(w, []);
|
|
240
|
-
} catch (
|
|
241
|
-
g =
|
|
240
|
+
} catch (O) {
|
|
241
|
+
g = O;
|
|
242
242
|
}
|
|
243
243
|
Reflect.construct(t, [], w);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
246
|
w.call();
|
|
247
|
-
} catch (
|
|
248
|
-
g =
|
|
247
|
+
} catch (O) {
|
|
248
|
+
g = O;
|
|
249
249
|
}
|
|
250
250
|
t.call(w.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
g =
|
|
255
|
+
} catch (O) {
|
|
256
|
+
g = O;
|
|
257
257
|
}
|
|
258
258
|
t();
|
|
259
259
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var x =
|
|
263
|
-
`),
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (x[
|
|
268
|
-
if (
|
|
260
|
+
} catch (O) {
|
|
261
|
+
if (O && g && typeof O.stack == "string") {
|
|
262
|
+
for (var x = O.stack.split(`
|
|
263
|
+
`), D = g.stack.split(`
|
|
264
|
+
`), L = x.length - 1, R = D.length - 1; L >= 1 && R >= 0 && x[L] !== D[R]; )
|
|
265
|
+
R--;
|
|
266
|
+
for (; L >= 1 && R >= 0; L--, R--)
|
|
267
|
+
if (x[L] !== D[R]) {
|
|
268
|
+
if (L !== 1 || R !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
270
|
+
if (L--, R--, R < 0 || x[L] !== D[R]) {
|
|
271
271
|
var U = `
|
|
272
|
-
` + x[
|
|
272
|
+
` + x[L].replace(" at new ", " at ");
|
|
273
273
|
return t.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", t.displayName)), typeof t == "function" && fe.set(t, U), U;
|
|
274
274
|
}
|
|
275
|
-
while (
|
|
275
|
+
while (L >= 1 && R >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
Ce = !1, be.current = P, Zt(), Error.prepareStackTrace = C;
|
|
281
281
|
}
|
|
282
|
-
var re = t ? t.displayName || t.name : "",
|
|
283
|
-
return typeof t == "function" && fe.set(t,
|
|
282
|
+
var re = t ? t.displayName || t.name : "", Q = re ? de(re) : "";
|
|
283
|
+
return typeof t == "function" && fe.set(t, Q), Q;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function qt(t, s, u) {
|
|
286
286
|
return He(t, !1);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Jt(t) {
|
|
289
289
|
var s = t.prototype;
|
|
290
290
|
return !!(s && s.isReactComponent);
|
|
291
291
|
}
|
|
@@ -293,7 +293,7 @@ function bn() {
|
|
|
293
293
|
if (t == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof t == "function")
|
|
296
|
-
return He(t,
|
|
296
|
+
return He(t, Jt(t));
|
|
297
297
|
if (typeof t == "string")
|
|
298
298
|
return de(t);
|
|
299
299
|
switch (t) {
|
|
@@ -305,20 +305,20 @@ function bn() {
|
|
|
305
305
|
if (typeof t == "object")
|
|
306
306
|
switch (t.$$typeof) {
|
|
307
307
|
case a:
|
|
308
|
-
return
|
|
308
|
+
return qt(t.render);
|
|
309
309
|
case y:
|
|
310
310
|
return he(t.type, s, u);
|
|
311
311
|
case E: {
|
|
312
|
-
var g = t,
|
|
312
|
+
var g = t, C = g._payload, P = g._init;
|
|
313
313
|
try {
|
|
314
|
-
return he(P(
|
|
314
|
+
return he(P(C), s, u);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var se = Object.prototype.hasOwnProperty, Oe = {}, Ae =
|
|
321
|
+
var se = Object.prototype.hasOwnProperty, Oe = {}, Ae = I.ReactDebugCurrentFrame;
|
|
322
322
|
function me(t) {
|
|
323
323
|
if (t) {
|
|
324
324
|
var s = t._owner, u = he(t.type, t._source, s ? s.type : null);
|
|
@@ -326,7 +326,7 @@ function bn() {
|
|
|
326
326
|
} else
|
|
327
327
|
Ae.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Xt(t, s, u, g, C) {
|
|
330
330
|
{
|
|
331
331
|
var P = Function.call.bind(se);
|
|
332
332
|
for (var w in t)
|
|
@@ -334,28 +334,28 @@ function bn() {
|
|
|
334
334
|
var x = void 0;
|
|
335
335
|
try {
|
|
336
336
|
if (typeof t[w] != "function") {
|
|
337
|
-
var
|
|
338
|
-
throw
|
|
337
|
+
var D = Error((g || "React class") + ": " + u + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
+
throw D.name = "Invariant Violation", D;
|
|
339
339
|
}
|
|
340
340
|
x = t[w](s, w, g, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
-
} catch (
|
|
342
|
-
x =
|
|
341
|
+
} catch (L) {
|
|
342
|
+
x = L;
|
|
343
343
|
}
|
|
344
|
-
x && !(x instanceof Error) && (me(
|
|
344
|
+
x && !(x instanceof Error) && (me(C), S("%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).", g || "React class", u, w, typeof x), me(null)), x instanceof Error && !(x.message in Oe) && (Oe[x.message] = !0, me(C), S("Failed %s type: %s", u, x.message), me(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
var
|
|
349
|
-
function
|
|
350
|
-
return
|
|
348
|
+
var Kt = Array.isArray;
|
|
349
|
+
function je(t) {
|
|
350
|
+
return Kt(t);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Gt(t) {
|
|
353
353
|
{
|
|
354
354
|
var s = typeof Symbol == "function" && Symbol.toStringTag, u = s && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
355
355
|
return u;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Qt(t) {
|
|
359
359
|
try {
|
|
360
360
|
return $e(t), !1;
|
|
361
361
|
} catch {
|
|
@@ -366,16 +366,16 @@ function bn() {
|
|
|
366
366
|
return "" + t;
|
|
367
367
|
}
|
|
368
368
|
function Ue(t) {
|
|
369
|
-
if (
|
|
370
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
369
|
+
if (Qt(t))
|
|
370
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Gt(t)), $e(t);
|
|
371
371
|
}
|
|
372
|
-
var
|
|
372
|
+
var Be = I.ReactCurrentOwner, en = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
|
-
},
|
|
378
|
-
function
|
|
377
|
+
}, Ne, We;
|
|
378
|
+
function tn(t) {
|
|
379
379
|
if (se.call(t, "ref")) {
|
|
380
380
|
var s = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
381
381
|
if (s && s.isReactWarning)
|
|
@@ -383,7 +383,7 @@ function bn() {
|
|
|
383
383
|
}
|
|
384
384
|
return t.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function nn(t) {
|
|
387
387
|
if (se.call(t, "key")) {
|
|
388
388
|
var s = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
389
389
|
if (s && s.isReactWarning)
|
|
@@ -391,13 +391,13 @@ function bn() {
|
|
|
391
391
|
}
|
|
392
392
|
return t.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function nn(t, s) {
|
|
395
|
-
typeof t.ref == "string" && Ne.current;
|
|
396
|
-
}
|
|
397
394
|
function rn(t, s) {
|
|
395
|
+
typeof t.ref == "string" && Be.current;
|
|
396
|
+
}
|
|
397
|
+
function on(t, s) {
|
|
398
398
|
{
|
|
399
399
|
var u = function() {
|
|
400
|
-
|
|
400
|
+
Ne || (Ne = !0, S("%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)", s));
|
|
401
401
|
};
|
|
402
402
|
u.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
403
403
|
get: u,
|
|
@@ -405,7 +405,7 @@ function bn() {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function sn(t, s) {
|
|
409
409
|
{
|
|
410
410
|
var u = function() {
|
|
411
411
|
We || (We = !0, S("%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)", s));
|
|
@@ -416,7 +416,7 @@ function bn() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var
|
|
419
|
+
var an = function(t, s, u, g, C, P, w) {
|
|
420
420
|
var x = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: n,
|
|
@@ -442,28 +442,28 @@ function bn() {
|
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
|
-
value:
|
|
445
|
+
value: C
|
|
446
446
|
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
447
447
|
};
|
|
448
|
-
function
|
|
448
|
+
function ln(t, s, u, g, C) {
|
|
449
449
|
{
|
|
450
|
-
var P, w = {}, x = null,
|
|
451
|
-
u !== void 0 && (Ue(u), x = "" + u),
|
|
450
|
+
var P, w = {}, x = null, D = null;
|
|
451
|
+
u !== void 0 && (Ue(u), x = "" + u), nn(s) && (Ue(s.key), x = "" + s.key), tn(s) && (D = s.ref, rn(s, C));
|
|
452
452
|
for (P in s)
|
|
453
|
-
se.call(s, P) && !
|
|
453
|
+
se.call(s, P) && !en.hasOwnProperty(P) && (w[P] = s[P]);
|
|
454
454
|
if (t && t.defaultProps) {
|
|
455
|
-
var
|
|
456
|
-
for (P in
|
|
457
|
-
w[P] === void 0 && (w[P] =
|
|
455
|
+
var L = t.defaultProps;
|
|
456
|
+
for (P in L)
|
|
457
|
+
w[P] === void 0 && (w[P] = L[P]);
|
|
458
458
|
}
|
|
459
|
-
if (x ||
|
|
460
|
-
var
|
|
461
|
-
x &&
|
|
459
|
+
if (x || D) {
|
|
460
|
+
var R = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
461
|
+
x && on(w, R), D && sn(w, R);
|
|
462
462
|
}
|
|
463
|
-
return
|
|
463
|
+
return an(t, x, D, C, g, Be.current, w);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var Pe =
|
|
466
|
+
var Pe = I.ReactCurrentOwner, ze = I.ReactDebugCurrentFrame;
|
|
467
467
|
function ne(t) {
|
|
468
468
|
if (t) {
|
|
469
469
|
var s = t._owner, u = he(t.type, t._source, s ? s.type : null);
|
|
@@ -473,10 +473,10 @@ function bn() {
|
|
|
473
473
|
}
|
|
474
474
|
var Se;
|
|
475
475
|
Se = !1;
|
|
476
|
-
function
|
|
476
|
+
function Le(t) {
|
|
477
477
|
return typeof t == "object" && t !== null && t.$$typeof === n;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Ze() {
|
|
480
480
|
{
|
|
481
481
|
if (Pe.current) {
|
|
482
482
|
var t = $(Pe.current.type);
|
|
@@ -488,13 +488,13 @@ Check the render method of \`` + t + "`.";
|
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function cn(t) {
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
|
-
var
|
|
495
|
-
function
|
|
494
|
+
var Ye = {};
|
|
495
|
+
function un(t) {
|
|
496
496
|
{
|
|
497
|
-
var s =
|
|
497
|
+
var s = Ze();
|
|
498
498
|
if (!s) {
|
|
499
499
|
var u = typeof t == "string" ? t : t.displayName || t.name;
|
|
500
500
|
u && (s = `
|
|
@@ -509,10 +509,10 @@ Check the top-level render call using <` + u + ">.");
|
|
|
509
509
|
if (!t._store || t._store.validated || t.key != null)
|
|
510
510
|
return;
|
|
511
511
|
t._store.validated = !0;
|
|
512
|
-
var u =
|
|
513
|
-
if (
|
|
512
|
+
var u = un(s);
|
|
513
|
+
if (Ye[u])
|
|
514
514
|
return;
|
|
515
|
-
|
|
515
|
+
Ye[u] = !0;
|
|
516
516
|
var g = "";
|
|
517
517
|
t && t._owner && t._owner !== Pe.current && (g = " It was passed a child from " + $(t._owner.type) + "."), ne(t), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, g), ne(null);
|
|
518
518
|
}
|
|
@@ -521,22 +521,22 @@ Check the top-level render call using <` + u + ">.");
|
|
|
521
521
|
{
|
|
522
522
|
if (typeof t != "object")
|
|
523
523
|
return;
|
|
524
|
-
if (
|
|
524
|
+
if (je(t))
|
|
525
525
|
for (var u = 0; u < t.length; u++) {
|
|
526
526
|
var g = t[u];
|
|
527
|
-
|
|
527
|
+
Le(g) && qe(g, s);
|
|
528
528
|
}
|
|
529
|
-
else if (
|
|
529
|
+
else if (Le(t))
|
|
530
530
|
t._store && (t._store.validated = !0);
|
|
531
531
|
else if (t) {
|
|
532
|
-
var
|
|
533
|
-
if (typeof
|
|
534
|
-
for (var P =
|
|
535
|
-
|
|
532
|
+
var C = B(t);
|
|
533
|
+
if (typeof C == "function" && C !== t.entries)
|
|
534
|
+
for (var P = C.call(t), w; !(w = P.next()).done; )
|
|
535
|
+
Le(w.value) && qe(w.value, s);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function dn(t) {
|
|
540
540
|
{
|
|
541
541
|
var s = t.type;
|
|
542
542
|
if (s == null || typeof s == "string")
|
|
@@ -552,16 +552,16 @@ Check the top-level render call using <` + u + ">.");
|
|
|
552
552
|
return;
|
|
553
553
|
if (u) {
|
|
554
554
|
var g = $(s);
|
|
555
|
-
|
|
555
|
+
Xt(u, t.props, "prop", g, t);
|
|
556
556
|
} else if (s.PropTypes !== void 0 && !Se) {
|
|
557
557
|
Se = !0;
|
|
558
|
-
var
|
|
559
|
-
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
558
|
+
var C = $(s);
|
|
559
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "Unknown");
|
|
560
560
|
}
|
|
561
561
|
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function fn(t) {
|
|
565
565
|
{
|
|
566
566
|
for (var s = Object.keys(t.props), u = 0; u < s.length; u++) {
|
|
567
567
|
var g = s[u];
|
|
@@ -574,25 +574,25 @@ Check the top-level render call using <` + u + ">.");
|
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
var Xe = {};
|
|
577
|
-
function Ke(t, s, u, g,
|
|
577
|
+
function Ke(t, s, u, g, C, P) {
|
|
578
578
|
{
|
|
579
579
|
var w = T(t);
|
|
580
580
|
if (!w) {
|
|
581
581
|
var x = "";
|
|
582
582
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
-
var
|
|
584
|
-
|
|
585
|
-
var
|
|
586
|
-
t === null ?
|
|
583
|
+
var D = cn();
|
|
584
|
+
D ? x += D : x += Ze();
|
|
585
|
+
var L;
|
|
586
|
+
t === null ? L = "null" : je(t) ? L = "array" : t !== void 0 && t.$$typeof === n ? (L = "<" + ($(t.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : L = typeof t, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, x);
|
|
587
587
|
}
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
588
|
+
var R = ln(t, s, u, C, P);
|
|
589
|
+
if (R == null)
|
|
590
|
+
return R;
|
|
591
591
|
if (w) {
|
|
592
592
|
var U = s.children;
|
|
593
593
|
if (U !== void 0)
|
|
594
594
|
if (g)
|
|
595
|
-
if (
|
|
595
|
+
if (je(U)) {
|
|
596
596
|
for (var re = 0; re < U.length; re++)
|
|
597
597
|
Je(U[re], t);
|
|
598
598
|
Object.freeze && Object.freeze(U);
|
|
@@ -602,40 +602,40 @@ Check the top-level render call using <` + u + ">.");
|
|
|
602
602
|
Je(U, t);
|
|
603
603
|
}
|
|
604
604
|
if (se.call(s, "key")) {
|
|
605
|
-
var
|
|
606
|
-
return
|
|
607
|
-
}),
|
|
608
|
-
if (!Xe[
|
|
609
|
-
var
|
|
605
|
+
var Q = $(t), O = Object.keys(s).filter(function(yn) {
|
|
606
|
+
return yn !== "key";
|
|
607
|
+
}), Re = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!Xe[Q + Re]) {
|
|
609
|
+
var gn = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
|
|
610
610
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
611
611
|
let props = %s;
|
|
612
612
|
<%s {...props} />
|
|
613
613
|
React keys must be passed directly to JSX without using spread:
|
|
614
614
|
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`,
|
|
615
|
+
<%s key={someKey} {...props} />`, Re, Q, gn, Q), Xe[Q + Re] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return t === i ?
|
|
618
|
+
return t === i ? fn(R) : dn(R), R;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function hn(t, s, u) {
|
|
622
622
|
return Ke(t, s, u, !0);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function mn(t, s, u) {
|
|
625
625
|
return Ke(t, s, u, !1);
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
le.Fragment = i, le.jsx =
|
|
627
|
+
var pn = mn, vn = hn;
|
|
628
|
+
le.Fragment = i, le.jsx = pn, le.jsxs = vn;
|
|
629
629
|
})()), le;
|
|
630
630
|
}
|
|
631
631
|
var tt;
|
|
632
|
-
function
|
|
633
|
-
return tt || (tt = 1, process.env.NODE_ENV === "production" ? pe.exports =
|
|
632
|
+
function Cn() {
|
|
633
|
+
return tt || (tt = 1, process.env.NODE_ENV === "production" ? pe.exports = bn() : pe.exports = Tn()), pe.exports;
|
|
634
634
|
}
|
|
635
|
-
var o =
|
|
636
|
-
const jn = typeof window < "u" ?
|
|
635
|
+
var o = Cn();
|
|
636
|
+
const jn = typeof window < "u" ? xn : A;
|
|
637
637
|
function xe(e, n) {
|
|
638
|
-
const r =
|
|
638
|
+
const r = V(e);
|
|
639
639
|
jn(() => {
|
|
640
640
|
r.current = e;
|
|
641
641
|
}, [e]), A(() => {
|
|
@@ -649,11 +649,11 @@ function xe(e, n) {
|
|
|
649
649
|
};
|
|
650
650
|
}, [n]);
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
const [, n] =
|
|
652
|
+
function Pn(e) {
|
|
653
|
+
const [, n] = M(0);
|
|
654
654
|
xe(() => n((r) => r + 1), e);
|
|
655
655
|
}
|
|
656
|
-
const
|
|
656
|
+
const Sn = (e, n) => ct((r) => ({
|
|
657
657
|
delay: 0,
|
|
658
658
|
startDate: e,
|
|
659
659
|
endDate: n,
|
|
@@ -664,16 +664,16 @@ const Pn = (e, n) => ct((r) => ({
|
|
|
664
664
|
setEndDate: (i) => r({ endDate: i })
|
|
665
665
|
})), dt = at(
|
|
666
666
|
null
|
|
667
|
-
),
|
|
667
|
+
), Ln = ({
|
|
668
668
|
children: e,
|
|
669
669
|
startDate: n,
|
|
670
670
|
endDate: r
|
|
671
671
|
}) => {
|
|
672
|
-
const i =
|
|
672
|
+
const i = V(
|
|
673
673
|
null
|
|
674
674
|
);
|
|
675
|
-
return i.current || (i.current =
|
|
676
|
-
},
|
|
675
|
+
return i.current || (i.current = Sn(n, r)), /* @__PURE__ */ o.jsx(dt.Provider, { value: i.current, children: e });
|
|
676
|
+
}, _ = (e) => {
|
|
677
677
|
const n = lt(dt);
|
|
678
678
|
if (!n)
|
|
679
679
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
@@ -685,30 +685,30 @@ function Rn({
|
|
|
685
685
|
eventNotStartedMessage: r,
|
|
686
686
|
eventStartingSoonMessage: i
|
|
687
687
|
}) {
|
|
688
|
-
const l =
|
|
689
|
-
return
|
|
690
|
-
|
|
688
|
+
const l = _((d) => d.startDate), h = _((d) => d.endDate), m = Date.now(), f = m < l.getTime(), a = m > h.getTime();
|
|
689
|
+
return Pn(5e3), f ? /* @__PURE__ */ o.jsx(
|
|
690
|
+
En,
|
|
691
691
|
{
|
|
692
692
|
startDate: l,
|
|
693
693
|
title: r || "Event has not started yet.",
|
|
694
694
|
message: i || "Starting in few seconds..."
|
|
695
695
|
}
|
|
696
|
-
) : a ? /* @__PURE__ */ o.jsx(
|
|
696
|
+
) : a ? /* @__PURE__ */ o.jsx(kn, { title: n || "Event has finished." }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: e });
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function En({ startDate: e, title: n, message: r }) {
|
|
699
699
|
const i = e.getTime() - Date.now(), l = Math.floor(i / (1e3 * 60 * 60)), h = Math.floor(
|
|
700
700
|
i % (1e3 * 60 * 60) / (1e3 * 60)
|
|
701
701
|
);
|
|
702
702
|
return l || h ? /* @__PURE__ */ o.jsxs(Ee, { children: [
|
|
703
703
|
/* @__PURE__ */ o.jsx(ke, { children: n }),
|
|
704
|
-
/* @__PURE__ */ o.jsxs(
|
|
704
|
+
/* @__PURE__ */ o.jsxs(Fn, { children: [
|
|
705
705
|
"(",
|
|
706
706
|
l > 0 ? `${l}h ${h}m` : `${h}m`,
|
|
707
707
|
")"
|
|
708
708
|
] })
|
|
709
709
|
] }) : /* @__PURE__ */ o.jsx(Ee, { children: /* @__PURE__ */ o.jsx(ke, { children: r }) });
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function kn({ title: e }) {
|
|
712
712
|
return /* @__PURE__ */ o.jsx(Ee, { children: /* @__PURE__ */ o.jsx(ke, { children: e }) });
|
|
713
713
|
}
|
|
714
714
|
const Ee = b.div`
|
|
@@ -731,7 +731,7 @@ const Ee = b.div`
|
|
|
731
731
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
732
732
|
"Helvetica Neue", Arial, sans-serif;
|
|
733
733
|
font-weight: 500;
|
|
734
|
-
`,
|
|
734
|
+
`, Fn = b.p`
|
|
735
735
|
margin: 0;
|
|
736
736
|
height: 1.25rem;
|
|
737
737
|
font-size: 1rem;
|
|
@@ -739,7 +739,7 @@ const Ee = b.div`
|
|
|
739
739
|
"Helvetica Neue", Arial, sans-serif;
|
|
740
740
|
font-weight: 500;
|
|
741
741
|
`;
|
|
742
|
-
function
|
|
742
|
+
function _n() {
|
|
743
743
|
return /* @__PURE__ */ o.jsx(
|
|
744
744
|
"svg",
|
|
745
745
|
{
|
|
@@ -750,11 +750,11 @@ function Fn() {
|
|
|
750
750
|
}
|
|
751
751
|
);
|
|
752
752
|
}
|
|
753
|
-
const
|
|
754
|
-
({ shape: e = "circle", ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
753
|
+
const q = ge(
|
|
754
|
+
({ shape: e = "circle", ...n }, r) => /* @__PURE__ */ o.jsx(In, { ref: r, $shape: e, ...n })
|
|
755
755
|
);
|
|
756
|
-
|
|
757
|
-
const
|
|
756
|
+
q.displayName = "PlayerButton";
|
|
757
|
+
const In = b.button`
|
|
758
758
|
margin: 0;
|
|
759
759
|
display: flex;
|
|
760
760
|
align-items: center;
|
|
@@ -802,11 +802,11 @@ const _n = b.button`
|
|
|
802
802
|
padding: 0.25rem 0.5rem;
|
|
803
803
|
`}
|
|
804
804
|
`;
|
|
805
|
-
function
|
|
806
|
-
const r =
|
|
807
|
-
return r ? /* @__PURE__ */ o.jsxs(
|
|
805
|
+
function Dn({ message: e, ...n }) {
|
|
806
|
+
const r = _((h) => h.delay), i = _((h) => h.setDelay), l = () => i(0);
|
|
807
|
+
return r ? /* @__PURE__ */ o.jsxs(q, { onClick: l, shape: "square", ...n, children: [
|
|
808
808
|
/* @__PURE__ */ o.jsx("span", { children: e || "Live" }),
|
|
809
|
-
/* @__PURE__ */ o.jsx(
|
|
809
|
+
/* @__PURE__ */ o.jsx(_n, {})
|
|
810
810
|
] }) : null;
|
|
811
811
|
}
|
|
812
812
|
function ft() {
|
|
@@ -831,7 +831,7 @@ function ht() {
|
|
|
831
831
|
}
|
|
832
832
|
);
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Mn(e, n, r) {
|
|
835
835
|
const i = {
|
|
836
836
|
days: 86400,
|
|
837
837
|
hours: 3600,
|
|
@@ -841,34 +841,34 @@ function Dn(e, n, r) {
|
|
|
841
841
|
};
|
|
842
842
|
return e * (i[n] / i[r]);
|
|
843
843
|
}
|
|
844
|
-
function
|
|
845
|
-
return
|
|
844
|
+
function Vn(e) {
|
|
845
|
+
return Mn(e, "milliseconds", "seconds");
|
|
846
846
|
}
|
|
847
847
|
const oe = (e) => {
|
|
848
848
|
const n = Math.floor(e / 60), r = Math.floor(e % 60);
|
|
849
849
|
return `${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}`;
|
|
850
850
|
};
|
|
851
|
-
function
|
|
851
|
+
function Hn(e) {
|
|
852
852
|
const n = typeof window < "u" && window.navigator?.userAgent || "";
|
|
853
853
|
return e.test(n);
|
|
854
854
|
}
|
|
855
|
-
const mt =
|
|
856
|
-
function
|
|
855
|
+
const mt = Hn(/iPhone|iPad|iPod/i);
|
|
856
|
+
function On() {
|
|
857
857
|
const e = document;
|
|
858
858
|
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function An(e) {
|
|
861
861
|
e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function $n(e) {
|
|
864
864
|
e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function Un(e, n) {
|
|
867
867
|
return e.addEventListener("fullscreenchange", n), e.addEventListener("webkitfullscreenchange", n), e.addEventListener("mozfullscreenchange", n), e.addEventListener("MSFullscreenChange", n), () => {
|
|
868
868
|
e.removeEventListener("fullscreenchange", n), e.removeEventListener("webkitfullscreenchange", n), e.removeEventListener("mozfullscreenchange", n), e.removeEventListener("MSFullscreenChange", n);
|
|
869
869
|
};
|
|
870
870
|
}
|
|
871
|
-
const
|
|
871
|
+
const Bn = (e, n) => ({
|
|
872
872
|
currentTime: 0,
|
|
873
873
|
duration: 0,
|
|
874
874
|
isEnded: !1,
|
|
@@ -949,7 +949,7 @@ const Un = (e, n) => ({
|
|
|
949
949
|
pauseTime: Date.now()
|
|
950
950
|
}));
|
|
951
951
|
},
|
|
952
|
-
pauseTimeDiff: () =>
|
|
952
|
+
pauseTimeDiff: () => Vn(Date.now() - n().pauseTime),
|
|
953
953
|
play: () => {
|
|
954
954
|
const r = n().techRef.current;
|
|
955
955
|
r && (r.play(), e({
|
|
@@ -994,41 +994,37 @@ const Un = (e, n) => ({
|
|
|
994
994
|
const i = new Set(r.idleLocks);
|
|
995
995
|
return i.delete(n), { idleLocks: i };
|
|
996
996
|
})
|
|
997
|
-
}),
|
|
997
|
+
}), Wn = (e) => ({
|
|
998
998
|
level: null,
|
|
999
999
|
levels: null,
|
|
1000
1000
|
setLevels: (n) => e({ levels: n }),
|
|
1001
1001
|
setLevel: (n) => e({ level: n })
|
|
1002
|
-
}),
|
|
1002
|
+
}), zn = (e, n) => ({
|
|
1003
1003
|
isFullscreen: !1,
|
|
1004
1004
|
isFullscreenReady: !1,
|
|
1005
1005
|
exitFullscreen: () => {
|
|
1006
|
-
|
|
1006
|
+
$n(document), e({ isFullscreen: !1 });
|
|
1007
1007
|
},
|
|
1008
1008
|
requestFullscreen: () => {
|
|
1009
1009
|
const r = n().techRef.current, i = n().containerRef.current;
|
|
1010
1010
|
if (!r || !i) return;
|
|
1011
1011
|
const l = mt ? r : i;
|
|
1012
|
-
l &&
|
|
1012
|
+
l && An(l), e({ isFullscreen: !0 });
|
|
1013
1013
|
},
|
|
1014
1014
|
setIsFullscreen: (r) => e({ isFullscreen: r }),
|
|
1015
1015
|
setIsFullscreenReady: (r) => e({ isFullscreenReady: r })
|
|
1016
|
-
}),
|
|
1017
|
-
url: "",
|
|
1018
|
-
setURL: (n) => e({ url: n })
|
|
1019
|
-
}), Yn = (e) => () => ({
|
|
1016
|
+
}), Zn = (e) => () => ({
|
|
1020
1017
|
...e
|
|
1021
|
-
}),
|
|
1022
|
-
...Un(...r),
|
|
1023
|
-
...Nn(...r),
|
|
1024
|
-
...Wn(...r),
|
|
1018
|
+
}), Yn = (e, n) => ct()((...r) => ({
|
|
1025
1019
|
...Bn(...r),
|
|
1020
|
+
...Nn(...r),
|
|
1026
1021
|
...zn(...r),
|
|
1027
|
-
...
|
|
1022
|
+
...Wn(...r),
|
|
1023
|
+
...Zn({ techRef: e, containerRef: n })(...r)
|
|
1028
1024
|
})), pt = at(null);
|
|
1029
1025
|
function qn({ children: e }) {
|
|
1030
|
-
const n =
|
|
1031
|
-
return n.current || (n.current =
|
|
1026
|
+
const n = V(null), r = V(null), i = V(null);
|
|
1027
|
+
return n.current || (n.current = Yn(r, i)), /* @__PURE__ */ o.jsx(pt.Provider, { value: n.current, children: e });
|
|
1032
1028
|
}
|
|
1033
1029
|
const c = (e) => {
|
|
1034
1030
|
const n = lt(pt);
|
|
@@ -1037,17 +1033,17 @@ const c = (e) => {
|
|
|
1037
1033
|
return ut(n, e);
|
|
1038
1034
|
};
|
|
1039
1035
|
function Jn() {
|
|
1040
|
-
const e = c((a) => a.isPlaying), n = c((a) => a.pause), r = c((a) => a.pauseTime), i = c((a) => a.pauseTimeDiff), l = c((a) => a.play), h =
|
|
1036
|
+
const e = c((a) => a.isPlaying), n = c((a) => a.pause), r = c((a) => a.pauseTime), i = c((a) => a.pauseTimeDiff), l = c((a) => a.play), h = _((a) => a.delay), m = _((a) => a.setDelay), f = () => {
|
|
1041
1037
|
e ? n() : (r && m(h + i()), l());
|
|
1042
1038
|
};
|
|
1043
|
-
return /* @__PURE__ */ o.jsx(
|
|
1039
|
+
return /* @__PURE__ */ o.jsx(q, { onClick: f, children: e ? /* @__PURE__ */ o.jsx(ft, {}) : /* @__PURE__ */ o.jsx(ht, {}) });
|
|
1044
1040
|
}
|
|
1045
1041
|
function vt({
|
|
1046
1042
|
className: e,
|
|
1047
1043
|
onClick: n,
|
|
1048
1044
|
...r
|
|
1049
1045
|
}) {
|
|
1050
|
-
const i =
|
|
1046
|
+
const i = V(null), l = c((y) => y.exitFullscreen), h = c((y) => y.isFullscreen), m = c((y) => y.requestFullscreen), f = (y) => {
|
|
1051
1047
|
p() ? (d(), h ? l() : m()) : a(y);
|
|
1052
1048
|
}, a = (y) => {
|
|
1053
1049
|
i.current = window.setTimeout(() => {
|
|
@@ -1202,13 +1198,13 @@ function ve(e) {
|
|
|
1202
1198
|
height: n.height * 100
|
|
1203
1199
|
} : n;
|
|
1204
1200
|
}
|
|
1205
|
-
const
|
|
1201
|
+
const wt = (e, n = 0) => parseInt(
|
|
1206
1202
|
Math.max(0, (Date.now() - (e + n * 1e3)) / 1e3).toFixed(0)
|
|
1207
|
-
),
|
|
1203
|
+
), bt = (e, n) => Math.max(0, (Date.now() - e - n * 1e3) / 1e3), Tt = (e, n) => Math.max(0, (n - e) / 1e3), nr = (e, n = 0) => {
|
|
1208
1204
|
const i = n < 0 ? 0 : n, l = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], h = Math.floor(Math.log(e) / Math.log(1024));
|
|
1209
1205
|
return `${parseFloat((e / Math.pow(1024, h)).toFixed(i))}${l[h]}`;
|
|
1210
1206
|
};
|
|
1211
|
-
function
|
|
1207
|
+
function rr({
|
|
1212
1208
|
isAuto: e,
|
|
1213
1209
|
level: n,
|
|
1214
1210
|
levels: r
|
|
@@ -1226,39 +1222,39 @@ function or({
|
|
|
1226
1222
|
const { bitrate: m, height: f, index: a } = h;
|
|
1227
1223
|
l.push({
|
|
1228
1224
|
sid: `quality-level-${a}`,
|
|
1229
|
-
label: f ? `${f}p` :
|
|
1225
|
+
label: f ? `${f}p` : nr(m),
|
|
1230
1226
|
value: a,
|
|
1231
1227
|
selected: i === 1 || !e && a === n
|
|
1232
1228
|
});
|
|
1233
1229
|
}), l;
|
|
1234
1230
|
}
|
|
1235
1231
|
const nt = "vod-player-progress-bar";
|
|
1236
|
-
function
|
|
1237
|
-
const e =
|
|
1238
|
-
i(
|
|
1239
|
-
}, [E,
|
|
1232
|
+
function or() {
|
|
1233
|
+
const e = V(null), n = V(null), [r, i] = M(0), [l, h] = M(0), [m, f] = M(!1), [a, d] = M(-1), [p, y] = M(-1), E = _((T) => T.delay), j = _((T) => T.startTime), H = _((T) => T.endTime), F = _((T) => T.setDelay), B = c((T) => T.isPlaying), I = c((T) => T.addIdleLock), S = c((T) => T.removeIdleLock), v = k(() => {
|
|
1234
|
+
i(bt(j, E)), h(Tt(j, H));
|
|
1235
|
+
}, [E, H, j]), z = parseFloat(
|
|
1240
1236
|
(l ? (p !== -1 ? p : r) / l * 100 : 0).toFixed(1)
|
|
1241
|
-
),
|
|
1242
|
-
y(l * (T[0] / 100)),
|
|
1243
|
-
},
|
|
1237
|
+
), Z = (T) => {
|
|
1238
|
+
y(l * (T[0] / 100)), I(nt);
|
|
1239
|
+
}, J = () => {
|
|
1244
1240
|
if (p !== -1) {
|
|
1245
|
-
const T =
|
|
1241
|
+
const T = wt(j, p);
|
|
1246
1242
|
F(T), y(-1), S(nt);
|
|
1247
1243
|
}
|
|
1248
|
-
}, te = () => f(!0),
|
|
1244
|
+
}, te = () => f(!0), X = () => f(!1), K = k(
|
|
1249
1245
|
(T) => {
|
|
1250
|
-
const ue = e.current,
|
|
1251
|
-
if (ue &&
|
|
1252
|
-
const $ = ve(ue),
|
|
1246
|
+
const ue = e.current, G = n.current;
|
|
1247
|
+
if (ue && G) {
|
|
1248
|
+
const $ = ve(ue), N = ve(G), Y = (T.pageX || T.clientX) - $.left, ie = Y / $.width;
|
|
1253
1249
|
if (ie < 0) return;
|
|
1254
|
-
let W =
|
|
1255
|
-
W < 0 && (W = 0), W > $.width -
|
|
1250
|
+
let W = Y - N.width / 2;
|
|
1251
|
+
W < 0 && (W = 0), W > $.width - N.width && (W = -1), G.style.left = W > -1 ? `${W}px` : "auto", G.style.right = W > -1 ? "auto" : "0px", d(ie * l);
|
|
1256
1252
|
}
|
|
1257
1253
|
te();
|
|
1258
1254
|
},
|
|
1259
1255
|
[l]
|
|
1260
1256
|
);
|
|
1261
|
-
return xe(() => v(),
|
|
1257
|
+
return xe(() => v(), B ? 1e3 : null), A(() => {
|
|
1262
1258
|
v();
|
|
1263
1259
|
}, [v]), /* @__PURE__ */ o.jsxs(gt, { children: [
|
|
1264
1260
|
/* @__PURE__ */ o.jsx(
|
|
@@ -1266,31 +1262,31 @@ function ir() {
|
|
|
1266
1262
|
{
|
|
1267
1263
|
ref: e,
|
|
1268
1264
|
value: [z],
|
|
1269
|
-
onPointerLeave:
|
|
1270
|
-
onPointerDown:
|
|
1271
|
-
onPointerMove:
|
|
1272
|
-
onValueChange:
|
|
1273
|
-
onValueCommit:
|
|
1265
|
+
onPointerLeave: X,
|
|
1266
|
+
onPointerDown: X,
|
|
1267
|
+
onPointerMove: K,
|
|
1268
|
+
onValueChange: Z,
|
|
1269
|
+
onValueCommit: J,
|
|
1274
1270
|
step: 0.1
|
|
1275
1271
|
}
|
|
1276
1272
|
),
|
|
1277
1273
|
/* @__PURE__ */ o.jsx(yt, { ref: n, $isVisible: m, children: /* @__PURE__ */ o.jsx(xt, { children: oe(a) }) })
|
|
1278
1274
|
] });
|
|
1279
1275
|
}
|
|
1280
|
-
function
|
|
1276
|
+
function Ct({ children: e }) {
|
|
1281
1277
|
return /* @__PURE__ */ o.jsx(qn, { children: e });
|
|
1282
1278
|
}
|
|
1283
|
-
function
|
|
1279
|
+
function ir({
|
|
1284
1280
|
children: e,
|
|
1285
1281
|
startDate: n,
|
|
1286
1282
|
endDate: r
|
|
1287
1283
|
}) {
|
|
1288
|
-
return /* @__PURE__ */ o.jsx(
|
|
1284
|
+
return /* @__PURE__ */ o.jsx(Ln, { startDate: n, endDate: r, children: /* @__PURE__ */ o.jsx(Ct, { children: e }) });
|
|
1289
1285
|
}
|
|
1290
1286
|
const jt = b.div`
|
|
1291
1287
|
display: flex;
|
|
1292
1288
|
align-items: center;
|
|
1293
|
-
`,
|
|
1289
|
+
`, Pt = b.p`
|
|
1294
1290
|
margin: 0;
|
|
1295
1291
|
padding: 0;
|
|
1296
1292
|
font-variant-numeric: tabular-nums;
|
|
@@ -1298,9 +1294,9 @@ const jt = b.div`
|
|
|
1298
1294
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
1299
1295
|
"Helvetica Neue", Arial, sans-serif;
|
|
1300
1296
|
font-weight: 500;
|
|
1301
|
-
`,
|
|
1297
|
+
`, St = b(Pt)`
|
|
1302
1298
|
margin-right: 0.5rem;
|
|
1303
|
-
`,
|
|
1299
|
+
`, Lt = b(Pt)`
|
|
1304
1300
|
margin-left: 0.5rem;
|
|
1305
1301
|
`, Rt = b.p`
|
|
1306
1302
|
margin: 0;
|
|
@@ -1314,27 +1310,42 @@ const jt = b.div`
|
|
|
1314
1310
|
content: "/";
|
|
1315
1311
|
}
|
|
1316
1312
|
`;
|
|
1317
|
-
function
|
|
1318
|
-
const [e, n] =
|
|
1319
|
-
n(
|
|
1313
|
+
function sr() {
|
|
1314
|
+
const [e, n] = M(0), [r, i] = M(0), l = c((d) => d.isPlaying), h = _((d) => d.delay), m = _((d) => d.startTime), f = _((d) => d.endTime), a = k(() => {
|
|
1315
|
+
n(bt(m, h)), i(Tt(m, f));
|
|
1320
1316
|
}, [h, f, m]);
|
|
1321
1317
|
return xe(() => a(), l ? 1e3 : null), A(() => {
|
|
1322
1318
|
a();
|
|
1323
1319
|
}, [a]), h ? /* @__PURE__ */ o.jsxs(jt, { children: [
|
|
1324
|
-
/* @__PURE__ */ o.jsx(
|
|
1320
|
+
/* @__PURE__ */ o.jsx(St, { children: oe(e) }),
|
|
1325
1321
|
/* @__PURE__ */ o.jsx(Rt, {}),
|
|
1326
|
-
/* @__PURE__ */ o.jsx(
|
|
1322
|
+
/* @__PURE__ */ o.jsx(Lt, { children: oe(r) })
|
|
1327
1323
|
] }) : null;
|
|
1328
1324
|
}
|
|
1329
|
-
function
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1325
|
+
function ar() {
|
|
1326
|
+
return /* @__PURE__ */ o.jsx(
|
|
1327
|
+
"svg",
|
|
1328
|
+
{
|
|
1329
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1330
|
+
viewBox: "0 0 24 24",
|
|
1331
|
+
fill: "currentColor",
|
|
1332
|
+
children: /* @__PURE__ */ o.jsx("path", { d: "M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z" })
|
|
1333
|
+
}
|
|
1334
|
+
);
|
|
1335
|
+
}
|
|
1336
|
+
function lr() {
|
|
1337
|
+
const e = _((i) => i.startTime), n = _((i) => i.setDelay), r = () => n(wt(e));
|
|
1338
|
+
return /* @__PURE__ */ o.jsx(q, { onClick: r, children: /* @__PURE__ */ o.jsx(ar, {}) });
|
|
1339
|
+
}
|
|
1340
|
+
function cr({ url: e, isLive: n }) {
|
|
1341
|
+
const r = V(null), i = c((j) => j.level), l = c((j) => j.levels), h = c((j) => j.setLevel), m = c((j) => j.setLevels), f = c((j) => j.techRef), a = k(
|
|
1342
|
+
(j) => {
|
|
1343
|
+
if (r.current && (r.current.nextLevel = j, h(null), l)) {
|
|
1344
|
+
const H = l.map((F) => ({
|
|
1334
1345
|
...F,
|
|
1335
|
-
selected: F.value ===
|
|
1346
|
+
selected: F.value === j
|
|
1336
1347
|
}));
|
|
1337
|
-
m(
|
|
1348
|
+
m(H);
|
|
1338
1349
|
}
|
|
1339
1350
|
},
|
|
1340
1351
|
[l, h, m, r]
|
|
@@ -1343,19 +1354,19 @@ function lr({ url: e, isLive: n }) {
|
|
|
1343
1354
|
}, [e]), p = k(() => {
|
|
1344
1355
|
if (!r.current) return;
|
|
1345
1356
|
console.log("[Player][Event]", "MANIFEST_LOADED");
|
|
1346
|
-
const
|
|
1357
|
+
const j = r.current.levels, H = r.current.currentLevel, F = r.current.autoLevelEnabled;
|
|
1347
1358
|
m(
|
|
1348
|
-
|
|
1349
|
-
levels:
|
|
1350
|
-
const { bitrate: S, height: v, width: z } =
|
|
1359
|
+
rr({
|
|
1360
|
+
levels: j.map((B, I) => {
|
|
1361
|
+
const { bitrate: S, height: v, width: z } = B;
|
|
1351
1362
|
return {
|
|
1352
1363
|
bitrate: S,
|
|
1353
1364
|
height: v,
|
|
1354
|
-
index:
|
|
1365
|
+
index: I,
|
|
1355
1366
|
width: z
|
|
1356
1367
|
};
|
|
1357
1368
|
}),
|
|
1358
|
-
level:
|
|
1369
|
+
level: H,
|
|
1359
1370
|
isAuto: F
|
|
1360
1371
|
})
|
|
1361
1372
|
);
|
|
@@ -1369,32 +1380,32 @@ function lr({ url: e, isLive: n }) {
|
|
|
1369
1380
|
startLevel: -1
|
|
1370
1381
|
};
|
|
1371
1382
|
try {
|
|
1372
|
-
console.log("[Player] URL", e), console.log("[Player] Config", JSON.stringify(F)), console.log("[Player] Version",
|
|
1373
|
-
} catch (
|
|
1374
|
-
throw new Error(`Error initializing Hls: ${
|
|
1383
|
+
console.log("[Player] URL", e), console.log("[Player] Config", JSON.stringify(F)), console.log("[Player] Version", ee.version), r.current = new ee(F), r.current.attachMedia(f.current), r.current.on(ee.Events.MEDIA_ATTACHED, d), r.current.on(ee.Events.MANIFEST_LOADED, p);
|
|
1384
|
+
} catch (B) {
|
|
1385
|
+
throw new Error(`Error initializing Hls: ${B}`);
|
|
1375
1386
|
}
|
|
1376
1387
|
}, [p, d, n, f, e]), E = k(() => {
|
|
1377
|
-
r.current && (r.current.off(
|
|
1388
|
+
r.current && (r.current.off(ee.Events.MEDIA_ATTACHED, d), r.current.off(ee.Events.MANIFEST_LOADED, p), r.current.destroy(), r.current = null);
|
|
1378
1389
|
}, [p, d]);
|
|
1379
1390
|
return A(() => {
|
|
1380
1391
|
i !== null && a(i);
|
|
1381
|
-
}, [i, a]), A(() => (
|
|
1392
|
+
}, [i, a]), A(() => (ee.isSupported() && y(), E), [E, y]), null;
|
|
1382
1393
|
}
|
|
1383
|
-
function
|
|
1384
|
-
const i = c((v) => v.handleDurationChange), l = c((v) => v.handleEnd), h = c((v) => v.handleLoadedMetadata), m = c((v) => v.handleLoadStart), f = c((v) => v.handlePause), a = c((v) => v.handlePlay), d = c((v) => v.handlePlaying), p = c((v) => v.handleSeeked), y = c((v) => v.handleSeeking), E = c((v) => v.handleTimeUpdate),
|
|
1394
|
+
function Et({ url: e, isLive: n, isMuted: r = !1 }) {
|
|
1395
|
+
const i = c((v) => v.handleDurationChange), l = c((v) => v.handleEnd), h = c((v) => v.handleLoadedMetadata), m = c((v) => v.handleLoadStart), f = c((v) => v.handlePause), a = c((v) => v.handlePlay), d = c((v) => v.handlePlaying), p = c((v) => v.handleSeeked), y = c((v) => v.handleSeeking), E = c((v) => v.handleTimeUpdate), j = c((v) => v.handleWaiting), H = c((v) => v.techRef), F = V(null), B = () => n ? {} : {
|
|
1385
1396
|
onDurationChange: i,
|
|
1386
1397
|
onSeeked: p,
|
|
1387
1398
|
onSeeking: y,
|
|
1388
|
-
onTimeUpdate:
|
|
1389
|
-
},
|
|
1399
|
+
onTimeUpdate: I
|
|
1400
|
+
}, I = () => {
|
|
1390
1401
|
(!F.current || Date.now() - F.current >= 1e3) && (E(), F.current = Date.now());
|
|
1391
|
-
}, S =
|
|
1402
|
+
}, S = B();
|
|
1392
1403
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1393
|
-
/* @__PURE__ */ o.jsx(
|
|
1404
|
+
/* @__PURE__ */ o.jsx(cr, { isLive: n, url: e }),
|
|
1394
1405
|
/* @__PURE__ */ o.jsx(
|
|
1395
|
-
|
|
1406
|
+
ur,
|
|
1396
1407
|
{
|
|
1397
|
-
ref:
|
|
1408
|
+
ref: H,
|
|
1398
1409
|
playsInline: !0,
|
|
1399
1410
|
autoPlay: !0,
|
|
1400
1411
|
controls: !1,
|
|
@@ -1407,14 +1418,14 @@ function Lt({ url: e, isLive: n, isMuted: r = !1 }) {
|
|
|
1407
1418
|
onPause: f,
|
|
1408
1419
|
onPlay: a,
|
|
1409
1420
|
onPlaying: d,
|
|
1410
|
-
onWaiting:
|
|
1421
|
+
onWaiting: j,
|
|
1411
1422
|
tabIndex: -1,
|
|
1412
1423
|
...S
|
|
1413
1424
|
}
|
|
1414
1425
|
)
|
|
1415
1426
|
] });
|
|
1416
1427
|
}
|
|
1417
|
-
const
|
|
1428
|
+
const ur = b.video`
|
|
1418
1429
|
position: relative;
|
|
1419
1430
|
width: 100%;
|
|
1420
1431
|
height: 100%;
|
|
@@ -1423,8 +1434,8 @@ const cr = b.video`
|
|
|
1423
1434
|
pointer-events: none;
|
|
1424
1435
|
}
|
|
1425
1436
|
`;
|
|
1426
|
-
function
|
|
1427
|
-
const [n, r] =
|
|
1437
|
+
function dr({ url: e }) {
|
|
1438
|
+
const [n, r] = M(null), i = _((h) => h.delay), l = k(async () => {
|
|
1428
1439
|
r(
|
|
1429
1440
|
i ? e.replace(
|
|
1430
1441
|
"playlist.m3u8",
|
|
@@ -1434,9 +1445,9 @@ function ur({ url: e }) {
|
|
|
1434
1445
|
}, [i, e]);
|
|
1435
1446
|
return A(() => {
|
|
1436
1447
|
l();
|
|
1437
|
-
}, [l]), n ? /* @__PURE__ */ o.jsx(
|
|
1448
|
+
}, [l]), n ? /* @__PURE__ */ o.jsx(Et, { url: n, isLive: !0 }) : null;
|
|
1438
1449
|
}
|
|
1439
|
-
const
|
|
1450
|
+
const kt = b.div`
|
|
1440
1451
|
position: absolute;
|
|
1441
1452
|
top: 0;
|
|
1442
1453
|
left: 0;
|
|
@@ -1445,7 +1456,7 @@ const Et = b.div`
|
|
|
1445
1456
|
color: white;
|
|
1446
1457
|
background: black;
|
|
1447
1458
|
overflow: hidden;
|
|
1448
|
-
`,
|
|
1459
|
+
`, Ft = b.div`
|
|
1449
1460
|
position: absolute;
|
|
1450
1461
|
left: 0;
|
|
1451
1462
|
width: 100%;
|
|
@@ -1457,7 +1468,7 @@ const Et = b.div`
|
|
|
1457
1468
|
@media (min-width: 768px) {
|
|
1458
1469
|
padding-top: 2rem;
|
|
1459
1470
|
}
|
|
1460
|
-
`,
|
|
1471
|
+
`, _t = b.div`
|
|
1461
1472
|
display: flex;
|
|
1462
1473
|
flex-direction: column;
|
|
1463
1474
|
padding-left: 0.5rem;
|
|
@@ -1469,22 +1480,22 @@ const Et = b.div`
|
|
|
1469
1480
|
padding-left: 1rem;
|
|
1470
1481
|
padding-right: 1rem;
|
|
1471
1482
|
}
|
|
1472
|
-
`,
|
|
1483
|
+
`, It = b.div`
|
|
1473
1484
|
display: flex;
|
|
1474
1485
|
padding: 0.5rem 0;
|
|
1475
1486
|
width: 100%;
|
|
1476
1487
|
align-items: center;
|
|
1477
|
-
`,
|
|
1488
|
+
`, Dt = b.div`
|
|
1478
1489
|
display: flex;
|
|
1479
1490
|
flex: 1;
|
|
1480
1491
|
align-items: center;
|
|
1481
1492
|
gap: 0.5rem;
|
|
1482
|
-
`,
|
|
1493
|
+
`, Mt = b(Dt)`
|
|
1483
1494
|
justify-content: flex-start;
|
|
1484
|
-
`,
|
|
1495
|
+
`, Vt = b(Dt)`
|
|
1485
1496
|
justify-content: flex-end;
|
|
1486
1497
|
`;
|
|
1487
|
-
function
|
|
1498
|
+
function fr() {
|
|
1488
1499
|
return /* @__PURE__ */ o.jsx(
|
|
1489
1500
|
"svg",
|
|
1490
1501
|
{
|
|
@@ -1495,7 +1506,7 @@ function dr() {
|
|
|
1495
1506
|
}
|
|
1496
1507
|
);
|
|
1497
1508
|
}
|
|
1498
|
-
function
|
|
1509
|
+
function hr() {
|
|
1499
1510
|
return /* @__PURE__ */ o.jsx(
|
|
1500
1511
|
"svg",
|
|
1501
1512
|
{
|
|
@@ -1506,10 +1517,10 @@ function fr() {
|
|
|
1506
1517
|
}
|
|
1507
1518
|
);
|
|
1508
1519
|
}
|
|
1509
|
-
function
|
|
1520
|
+
function Ht() {
|
|
1510
1521
|
const e = c((d) => d.containerRef), n = c((d) => d.exitFullscreen), r = c((d) => d.isFullscreen), i = c((d) => d.requestFullscreen), l = c((d) => d.setIsFullscreen), h = c((d) => d.setIsFullscreenReady), m = c((d) => d.techRef), f = k(
|
|
1511
1522
|
(d) => {
|
|
1512
|
-
d.stopPropagation(), l(
|
|
1523
|
+
d.stopPropagation(), l(On());
|
|
1513
1524
|
},
|
|
1514
1525
|
[l]
|
|
1515
1526
|
), a = () => {
|
|
@@ -1518,17 +1529,17 @@ function Vt() {
|
|
|
1518
1529
|
return A(() => {
|
|
1519
1530
|
const d = mt ? m.current : e.current;
|
|
1520
1531
|
if (d)
|
|
1521
|
-
return
|
|
1532
|
+
return Un(d, f);
|
|
1522
1533
|
}, [e, f, m]), A(() => {
|
|
1523
1534
|
h(!0);
|
|
1524
|
-
}, [h]), /* @__PURE__ */ o.jsx(
|
|
1535
|
+
}, [h]), /* @__PURE__ */ o.jsx(q, { onClick: a, children: r ? /* @__PURE__ */ o.jsx(hr, {}) : /* @__PURE__ */ o.jsx(fr, {}) });
|
|
1525
1536
|
}
|
|
1526
|
-
const
|
|
1527
|
-
function
|
|
1528
|
-
const n =
|
|
1537
|
+
const mr = 5 * 1e3;
|
|
1538
|
+
function Ot({ children: e }) {
|
|
1539
|
+
const n = V(null), [r, i] = M(!1), l = V(null), m = c((d) => d.idleLocks).size, f = k(() => {
|
|
1529
1540
|
l.current !== null && (window.clearTimeout(l.current), l.current = null);
|
|
1530
1541
|
}, []), a = k(() => {
|
|
1531
|
-
f(), l.current = window.setTimeout(() => i(!0),
|
|
1542
|
+
f(), l.current = window.setTimeout(() => i(!0), mr);
|
|
1532
1543
|
}, [f]);
|
|
1533
1544
|
return A(() => (i(!1), a(), () => {
|
|
1534
1545
|
f();
|
|
@@ -1543,9 +1554,9 @@ function Ht({ children: e }) {
|
|
|
1543
1554
|
return d.addEventListener("click", p), d.addEventListener("mousemove", y), () => {
|
|
1544
1555
|
d.removeEventListener("click", p), d.removeEventListener("mousemove", y);
|
|
1545
1556
|
};
|
|
1546
|
-
}, [n, r, i, a]), /* @__PURE__ */ o.jsx(
|
|
1557
|
+
}, [n, r, i, a]), /* @__PURE__ */ o.jsx(pr, { ref: n, $isIdle: r && !m, children: e });
|
|
1547
1558
|
}
|
|
1548
|
-
const
|
|
1559
|
+
const pr = b.div`
|
|
1549
1560
|
position: absolute;
|
|
1550
1561
|
top: 0;
|
|
1551
1562
|
left: 0;
|
|
@@ -1555,26 +1566,26 @@ const mr = b.div`
|
|
|
1555
1566
|
cursor: ${({ $isIdle: e }) => e ? "none" : "auto"};
|
|
1556
1567
|
opacity: ${({ $isIdle: e }) => e ? 0 : 1};
|
|
1557
1568
|
`;
|
|
1558
|
-
function
|
|
1559
|
-
return /* @__PURE__ */ o.jsx(
|
|
1569
|
+
function vr(e) {
|
|
1570
|
+
return /* @__PURE__ */ o.jsx(yr, { ...e });
|
|
1560
1571
|
}
|
|
1561
|
-
const
|
|
1572
|
+
const gr = wn`
|
|
1562
1573
|
from {
|
|
1563
1574
|
transform: rotate(0deg);
|
|
1564
1575
|
}
|
|
1565
1576
|
to {
|
|
1566
1577
|
transform: rotate(360deg);
|
|
1567
1578
|
}
|
|
1568
|
-
`,
|
|
1579
|
+
`, yr = b.div`
|
|
1569
1580
|
width: 1.5rem;
|
|
1570
1581
|
height: 1.5rem;
|
|
1571
1582
|
border: 2px solid white;
|
|
1572
1583
|
border-bottom-color: transparent;
|
|
1573
1584
|
border-radius: 50%;
|
|
1574
|
-
animation: ${
|
|
1585
|
+
animation: ${gr} 1s linear infinite;
|
|
1575
1586
|
`;
|
|
1576
|
-
function
|
|
1577
|
-
const [r, i] =
|
|
1587
|
+
function xr(e, n = 500) {
|
|
1588
|
+
const [r, i] = M(e);
|
|
1578
1589
|
return A(() => {
|
|
1579
1590
|
const l = window.setTimeout(() => i(e), n);
|
|
1580
1591
|
return () => {
|
|
@@ -1582,11 +1593,11 @@ function yr(e, n = 500) {
|
|
|
1582
1593
|
};
|
|
1583
1594
|
}, [e, n]), r;
|
|
1584
1595
|
}
|
|
1585
|
-
function
|
|
1596
|
+
function At({ style: e, ...n }) {
|
|
1586
1597
|
const r = c((l) => l.isLoading);
|
|
1587
|
-
return
|
|
1598
|
+
return xr(r, 100) ? /* @__PURE__ */ o.jsx(wr, { style: e, ...n, children: /* @__PURE__ */ o.jsx(vr, {}) }) : null;
|
|
1588
1599
|
}
|
|
1589
|
-
const
|
|
1600
|
+
const wr = b.div`
|
|
1590
1601
|
pointer-events: none;
|
|
1591
1602
|
position: absolute;
|
|
1592
1603
|
top: 0;
|
|
@@ -1599,7 +1610,7 @@ const xr = b.div`
|
|
|
1599
1610
|
align-items: center;
|
|
1600
1611
|
justify-content: center;
|
|
1601
1612
|
`;
|
|
1602
|
-
function
|
|
1613
|
+
function br() {
|
|
1603
1614
|
return /* @__PURE__ */ o.jsx(
|
|
1604
1615
|
"svg",
|
|
1605
1616
|
{
|
|
@@ -1610,7 +1621,7 @@ function wr() {
|
|
|
1610
1621
|
}
|
|
1611
1622
|
);
|
|
1612
1623
|
}
|
|
1613
|
-
function
|
|
1624
|
+
function Tr() {
|
|
1614
1625
|
return /* @__PURE__ */ o.jsx(
|
|
1615
1626
|
"svg",
|
|
1616
1627
|
{
|
|
@@ -1621,8 +1632,8 @@ function br() {
|
|
|
1621
1632
|
}
|
|
1622
1633
|
);
|
|
1623
1634
|
}
|
|
1624
|
-
const
|
|
1625
|
-
|
|
1635
|
+
const Cr = ce.Root, jr = ce.Trigger, Pr = ce.Portal, $t = ge(({ sideOffset: e = 4, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1636
|
+
Sr,
|
|
1626
1637
|
{
|
|
1627
1638
|
ref: r,
|
|
1628
1639
|
sideOffset: e,
|
|
@@ -1632,15 +1643,15 @@ const Tr = ce.Root, jr = ce.Trigger, Cr = ce.Portal, At = ge(({ sideOffset: e =
|
|
|
1632
1643
|
...n
|
|
1633
1644
|
}
|
|
1634
1645
|
));
|
|
1635
|
-
|
|
1636
|
-
const
|
|
1637
|
-
|
|
1638
|
-
const
|
|
1646
|
+
$t.displayName = "PlayerDropdownMenuContent";
|
|
1647
|
+
const Ut = ge((e, n) => /* @__PURE__ */ o.jsx(Lr, { ref: n, ...e }));
|
|
1648
|
+
Ut.displayName = "PlayerDropdownMenuItem";
|
|
1649
|
+
const Sr = b(ce.Content).withConfig({
|
|
1639
1650
|
shouldForwardProp: (e) => e !== "ref"
|
|
1640
1651
|
})`
|
|
1641
1652
|
padding: 0.25rem;
|
|
1642
1653
|
min-width: 8rem;
|
|
1643
|
-
max-height:
|
|
1654
|
+
max-height: 8rem;
|
|
1644
1655
|
overflow-y: auto;
|
|
1645
1656
|
border-radius: 0.75rem;
|
|
1646
1657
|
background: rgba(0, 0, 0, 0.8);
|
|
@@ -1649,6 +1660,10 @@ const Pr = b(ce.Content).withConfig({
|
|
|
1649
1660
|
will-change: transform, opacity;
|
|
1650
1661
|
z-index: 1000;
|
|
1651
1662
|
|
|
1663
|
+
@media (min-width: 768px) {
|
|
1664
|
+
max-height: 12rem;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1652
1667
|
&[data-state="open"][data-side="top"] {
|
|
1653
1668
|
animation-name: slideDownAndFade;
|
|
1654
1669
|
}
|
|
@@ -1708,7 +1723,7 @@ const Pr = b(ce.Content).withConfig({
|
|
|
1708
1723
|
transform: translateX(0);
|
|
1709
1724
|
}
|
|
1710
1725
|
}
|
|
1711
|
-
`,
|
|
1726
|
+
`, Lr = b(ce.Item)`
|
|
1712
1727
|
position: relative;
|
|
1713
1728
|
display: flex;
|
|
1714
1729
|
align-items: center;
|
|
@@ -1746,22 +1761,22 @@ const Pr = b(ce.Content).withConfig({
|
|
|
1746
1761
|
pointer-events: none;
|
|
1747
1762
|
}
|
|
1748
1763
|
`, rt = "settings";
|
|
1749
|
-
function
|
|
1750
|
-
const [e, n] =
|
|
1764
|
+
function Bt() {
|
|
1765
|
+
const [e, n] = M(!1), r = c((a) => a.containerRef), i = c((a) => a.addIdleLock), l = c((a) => a.removeIdleLock), h = c((a) => a.levels), m = c((a) => a.setLevel), f = k(
|
|
1751
1766
|
(a) => {
|
|
1752
1767
|
n(a), a ? i(rt) : l(rt);
|
|
1753
1768
|
},
|
|
1754
1769
|
[i, l]
|
|
1755
1770
|
);
|
|
1756
|
-
return /* @__PURE__ */ o.jsxs(
|
|
1757
|
-
/* @__PURE__ */ o.jsx(jr, { asChild: !0, children: /* @__PURE__ */ o.jsx(
|
|
1758
|
-
/* @__PURE__ */ o.jsx(
|
|
1759
|
-
|
|
1771
|
+
return /* @__PURE__ */ o.jsxs(Cr, { open: e, onOpenChange: f, children: [
|
|
1772
|
+
/* @__PURE__ */ o.jsx(jr, { asChild: !0, children: /* @__PURE__ */ o.jsx(q, { children: /* @__PURE__ */ o.jsx(Tr, {}) }) }),
|
|
1773
|
+
/* @__PURE__ */ o.jsx(Pr, { container: r.current, children: /* @__PURE__ */ o.jsx($t, { side: "top", align: "end", children: h?.map((a) => /* @__PURE__ */ o.jsxs(
|
|
1774
|
+
Ut,
|
|
1760
1775
|
{
|
|
1761
1776
|
onClick: () => m(a.value),
|
|
1762
1777
|
children: [
|
|
1763
1778
|
a.label,
|
|
1764
|
-
a.selected && /* @__PURE__ */ o.jsx(
|
|
1779
|
+
a.selected && /* @__PURE__ */ o.jsx(br, {})
|
|
1765
1780
|
]
|
|
1766
1781
|
},
|
|
1767
1782
|
a.sid
|
|
@@ -1779,7 +1794,7 @@ function Rr() {
|
|
|
1779
1794
|
}
|
|
1780
1795
|
);
|
|
1781
1796
|
}
|
|
1782
|
-
function
|
|
1797
|
+
function Er() {
|
|
1783
1798
|
return /* @__PURE__ */ o.jsx(
|
|
1784
1799
|
"svg",
|
|
1785
1800
|
{
|
|
@@ -1790,7 +1805,7 @@ function Lr() {
|
|
|
1790
1805
|
}
|
|
1791
1806
|
);
|
|
1792
1807
|
}
|
|
1793
|
-
function
|
|
1808
|
+
function kr() {
|
|
1794
1809
|
return /* @__PURE__ */ o.jsx(
|
|
1795
1810
|
"svg",
|
|
1796
1811
|
{
|
|
@@ -1809,9 +1824,9 @@ function Nt() {
|
|
|
1809
1824
|
}, h = () => {
|
|
1810
1825
|
i(ot);
|
|
1811
1826
|
}, m = () => e(n ? 0 : 100);
|
|
1812
|
-
return /* @__PURE__ */ o.jsxs(
|
|
1813
|
-
/* @__PURE__ */ o.jsx(
|
|
1814
|
-
/* @__PURE__ */ o.jsx(
|
|
1827
|
+
return /* @__PURE__ */ o.jsxs(Fr, { children: [
|
|
1828
|
+
/* @__PURE__ */ o.jsx(q, { onClick: m, className: "shrink-0", children: n ? n > 50 ? /* @__PURE__ */ o.jsx(Rr, {}) : /* @__PURE__ */ o.jsx(Er, {}) : /* @__PURE__ */ o.jsx(kr, {}) }),
|
|
1829
|
+
/* @__PURE__ */ o.jsx(Wt, { children: /* @__PURE__ */ o.jsx(
|
|
1815
1830
|
we,
|
|
1816
1831
|
{
|
|
1817
1832
|
value: [n],
|
|
@@ -1821,11 +1836,11 @@ function Nt() {
|
|
|
1821
1836
|
) })
|
|
1822
1837
|
] });
|
|
1823
1838
|
}
|
|
1824
|
-
const
|
|
1839
|
+
const Wt = b.div`
|
|
1825
1840
|
width: 0;
|
|
1826
1841
|
opacity: 0;
|
|
1827
1842
|
transition: all 0.2s ease-in-out;
|
|
1828
|
-
`,
|
|
1843
|
+
`, Fr = b.div`
|
|
1829
1844
|
display: flex;
|
|
1830
1845
|
align-items: center;
|
|
1831
1846
|
gap: 0.25rem;
|
|
@@ -1836,48 +1851,49 @@ const Bt = b.div`
|
|
|
1836
1851
|
&:hover {
|
|
1837
1852
|
width: 6rem;
|
|
1838
1853
|
|
|
1839
|
-
${
|
|
1854
|
+
${Wt} {
|
|
1840
1855
|
width: 100%;
|
|
1841
1856
|
opacity: 1;
|
|
1842
1857
|
}
|
|
1843
1858
|
}
|
|
1844
1859
|
}
|
|
1845
1860
|
`;
|
|
1846
|
-
function
|
|
1861
|
+
function zr({ url: e, startDate: n, endDate: r, messages: i }) {
|
|
1847
1862
|
return /* @__PURE__ */ o.jsx(
|
|
1848
|
-
|
|
1863
|
+
ir,
|
|
1849
1864
|
{
|
|
1850
1865
|
startDate: new Date(n),
|
|
1851
1866
|
endDate: new Date(r),
|
|
1852
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1867
|
+
children: /* @__PURE__ */ o.jsx(_r, { url: e, messages: i })
|
|
1853
1868
|
}
|
|
1854
1869
|
);
|
|
1855
1870
|
}
|
|
1856
|
-
function
|
|
1871
|
+
function _r({ url: e, messages: n }) {
|
|
1857
1872
|
const r = c((i) => i.containerRef);
|
|
1858
|
-
return /* @__PURE__ */ o.jsx(
|
|
1873
|
+
return /* @__PURE__ */ o.jsx(kt, { ref: r, children: /* @__PURE__ */ o.jsxs(
|
|
1859
1874
|
Rn,
|
|
1860
1875
|
{
|
|
1861
1876
|
eventFinishedMessage: n?.eventFinished,
|
|
1862
1877
|
eventNotStartedMessage: n?.eventNotStarted,
|
|
1863
1878
|
eventStartingSoonMessage: n?.eventStartingSoon,
|
|
1864
1879
|
children: [
|
|
1865
|
-
/* @__PURE__ */ o.jsx(
|
|
1866
|
-
/* @__PURE__ */ o.jsx(
|
|
1867
|
-
/* @__PURE__ */ o.jsxs(
|
|
1880
|
+
/* @__PURE__ */ o.jsx(dr, { url: e }),
|
|
1881
|
+
/* @__PURE__ */ o.jsx(At, {}),
|
|
1882
|
+
/* @__PURE__ */ o.jsxs(Ot, { children: [
|
|
1868
1883
|
/* @__PURE__ */ o.jsx(Kn, {}),
|
|
1869
|
-
/* @__PURE__ */ o.jsx(
|
|
1870
|
-
/* @__PURE__ */ o.jsx(
|
|
1871
|
-
/* @__PURE__ */ o.jsxs(
|
|
1872
|
-
/* @__PURE__ */ o.jsxs(
|
|
1884
|
+
/* @__PURE__ */ o.jsx(Ft, { children: /* @__PURE__ */ o.jsxs(_t, { children: [
|
|
1885
|
+
/* @__PURE__ */ o.jsx(or, {}),
|
|
1886
|
+
/* @__PURE__ */ o.jsxs(It, { children: [
|
|
1887
|
+
/* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
1873
1888
|
/* @__PURE__ */ o.jsx(Jn, {}),
|
|
1889
|
+
/* @__PURE__ */ o.jsx(lr, {}),
|
|
1874
1890
|
/* @__PURE__ */ o.jsx(Nt, {}),
|
|
1875
|
-
/* @__PURE__ */ o.jsx(
|
|
1891
|
+
/* @__PURE__ */ o.jsx(sr, {})
|
|
1876
1892
|
] }),
|
|
1877
|
-
/* @__PURE__ */ o.jsxs(
|
|
1878
|
-
/* @__PURE__ */ o.jsx(
|
|
1879
|
-
/* @__PURE__ */ o.jsx(
|
|
1880
|
-
/* @__PURE__ */ o.jsx(
|
|
1893
|
+
/* @__PURE__ */ o.jsxs(Vt, { children: [
|
|
1894
|
+
/* @__PURE__ */ o.jsx(Dn, { message: n?.live }),
|
|
1895
|
+
/* @__PURE__ */ o.jsx(Bt, {}),
|
|
1896
|
+
/* @__PURE__ */ o.jsx(Ht, {})
|
|
1881
1897
|
] })
|
|
1882
1898
|
] })
|
|
1883
1899
|
] }) })
|
|
@@ -1886,36 +1902,36 @@ function Fr({ url: e, messages: n }) {
|
|
|
1886
1902
|
}
|
|
1887
1903
|
) });
|
|
1888
1904
|
}
|
|
1889
|
-
function
|
|
1905
|
+
function Ir() {
|
|
1890
1906
|
const e = c((l) => l.isPlaying), n = c((l) => l.pause), r = c((l) => l.play), i = () => {
|
|
1891
1907
|
e ? n() : r();
|
|
1892
1908
|
};
|
|
1893
|
-
return /* @__PURE__ */ o.jsx(
|
|
1909
|
+
return /* @__PURE__ */ o.jsx(q, { onClick: i, children: e ? /* @__PURE__ */ o.jsx(ft, {}) : /* @__PURE__ */ o.jsx(ht, {}) });
|
|
1894
1910
|
}
|
|
1895
|
-
function
|
|
1911
|
+
function Dr() {
|
|
1896
1912
|
const e = c((l) => l.isPlaying), n = c((l) => l.pause), r = c((l) => l.play), i = () => {
|
|
1897
1913
|
e ? n() : r();
|
|
1898
1914
|
};
|
|
1899
1915
|
return /* @__PURE__ */ o.jsx(vt, { onClick: i });
|
|
1900
1916
|
}
|
|
1901
1917
|
const it = "vod-player-progress-bar";
|
|
1902
|
-
function
|
|
1903
|
-
const e =
|
|
1918
|
+
function Mr() {
|
|
1919
|
+
const e = V(null), n = V(null), [r, i] = M(!1), [l, h] = M(-1), [m, f] = M(-1), a = c((v) => v.currentTime), d = c((v) => v.duration), p = c((v) => v.seek), y = c((v) => v.addIdleLock), E = c((v) => v.removeIdleLock), j = parseFloat(
|
|
1904
1920
|
(d ? (m !== -1 ? m : a) / d * 100 : 0).toFixed(1)
|
|
1905
|
-
),
|
|
1921
|
+
), H = (v) => {
|
|
1906
1922
|
f(d * (v[0] / 100)), y(it);
|
|
1907
1923
|
}, F = () => {
|
|
1908
1924
|
m !== -1 && (p(m), f(-1), E(it));
|
|
1909
|
-
},
|
|
1925
|
+
}, B = () => i(!0), I = () => i(!1), S = k(
|
|
1910
1926
|
(v) => {
|
|
1911
|
-
const z = e.current,
|
|
1912
|
-
if (z &&
|
|
1913
|
-
const
|
|
1914
|
-
if (
|
|
1915
|
-
let T =
|
|
1916
|
-
T < 0 && (T = 0), T >
|
|
1927
|
+
const z = e.current, Z = n.current;
|
|
1928
|
+
if (z && Z) {
|
|
1929
|
+
const J = ve(z), te = ve(Z), X = (v.pageX || v.clientX) - J.left, K = X / J.width;
|
|
1930
|
+
if (K < 0) return;
|
|
1931
|
+
let T = X - te.width / 2;
|
|
1932
|
+
T < 0 && (T = 0), T > J.width - te.width && (T = -1), Z.style.left = T > -1 ? `${T}px` : "auto", Z.style.right = T > -1 ? "auto" : "0px", h(K * d);
|
|
1917
1933
|
}
|
|
1918
|
-
|
|
1934
|
+
B();
|
|
1919
1935
|
},
|
|
1920
1936
|
[d]
|
|
1921
1937
|
);
|
|
@@ -1924,11 +1940,11 @@ function Dr() {
|
|
|
1924
1940
|
we,
|
|
1925
1941
|
{
|
|
1926
1942
|
ref: e,
|
|
1927
|
-
value: [
|
|
1928
|
-
onPointerLeave:
|
|
1929
|
-
onPointerDown:
|
|
1943
|
+
value: [j],
|
|
1944
|
+
onPointerLeave: I,
|
|
1945
|
+
onPointerDown: I,
|
|
1930
1946
|
onPointerMove: S,
|
|
1931
|
-
onValueChange:
|
|
1947
|
+
onValueChange: H,
|
|
1932
1948
|
onValueCommit: F,
|
|
1933
1949
|
step: 0.1
|
|
1934
1950
|
}
|
|
@@ -1936,17 +1952,17 @@ function Dr() {
|
|
|
1936
1952
|
/* @__PURE__ */ o.jsx(yt, { ref: n, $isVisible: r, children: /* @__PURE__ */ o.jsx(xt, { children: oe(l) }) })
|
|
1937
1953
|
] });
|
|
1938
1954
|
}
|
|
1939
|
-
function
|
|
1955
|
+
function Vr() {
|
|
1940
1956
|
const e = c((r) => r.currentTime), n = c((r) => r.duration);
|
|
1941
1957
|
return /* @__PURE__ */ o.jsxs(jt, { children: [
|
|
1942
|
-
/* @__PURE__ */ o.jsx(
|
|
1958
|
+
/* @__PURE__ */ o.jsx(St, { children: oe(e) }),
|
|
1943
1959
|
/* @__PURE__ */ o.jsx(Rt, {}),
|
|
1944
|
-
/* @__PURE__ */ o.jsx(
|
|
1960
|
+
/* @__PURE__ */ o.jsx(Lt, { children: oe(n) })
|
|
1945
1961
|
] });
|
|
1946
1962
|
}
|
|
1947
|
-
const
|
|
1948
|
-
function
|
|
1949
|
-
const n = c((p) => p.currentTime), r = c((p) => p.duration), i = c((p) => p.isPlaying), l = c((p) => p.setStartTime), h =
|
|
1963
|
+
const Hr = 60, Or = 95;
|
|
1964
|
+
function Ar({ storageKey: e }) {
|
|
1965
|
+
const n = c((p) => p.currentTime), r = c((p) => p.duration), i = c((p) => p.isPlaying), l = c((p) => p.setStartTime), h = V(!1), m = k(() => {
|
|
1950
1966
|
window.localStorage.setItem(
|
|
1951
1967
|
e,
|
|
1952
1968
|
JSON.stringify({
|
|
@@ -1965,40 +1981,40 @@ function Or({ storageKey: e }) {
|
|
|
1965
1981
|
}
|
|
1966
1982
|
return { startTime: null, progress: null };
|
|
1967
1983
|
}, [e]), a = k(() => {
|
|
1968
|
-
n <
|
|
1984
|
+
n < Hr || m();
|
|
1969
1985
|
}, [n, m]), d = k(() => {
|
|
1970
1986
|
if (h.current) return;
|
|
1971
1987
|
const { progress: p, startTime: y } = f();
|
|
1972
|
-
y && p && p <
|
|
1988
|
+
y && p && p < Or && (l(y), h.current = !0);
|
|
1973
1989
|
}, [f, l]);
|
|
1974
1990
|
return xe(() => a(), i ? 1e3 : null), A(() => {
|
|
1975
1991
|
d();
|
|
1976
1992
|
}, [d]), null;
|
|
1977
1993
|
}
|
|
1978
|
-
function
|
|
1979
|
-
return /* @__PURE__ */ o.jsxs(
|
|
1980
|
-
/* @__PURE__ */ o.jsx(
|
|
1981
|
-
n?.enabled && /* @__PURE__ */ o.jsx(
|
|
1994
|
+
function Zr({ url: e, watchHistory: n }) {
|
|
1995
|
+
return /* @__PURE__ */ o.jsxs(Ct, { children: [
|
|
1996
|
+
/* @__PURE__ */ o.jsx($r, { url: e }),
|
|
1997
|
+
n?.enabled && /* @__PURE__ */ o.jsx(Ar, { storageKey: n.storageKey })
|
|
1982
1998
|
] });
|
|
1983
1999
|
}
|
|
1984
|
-
function
|
|
2000
|
+
function $r({ url: e }) {
|
|
1985
2001
|
const n = c((r) => r.containerRef);
|
|
1986
|
-
return /* @__PURE__ */ o.jsxs(
|
|
1987
|
-
/* @__PURE__ */ o.jsx(
|
|
1988
|
-
/* @__PURE__ */ o.jsx(
|
|
1989
|
-
/* @__PURE__ */ o.jsxs(
|
|
1990
|
-
/* @__PURE__ */ o.jsx(
|
|
1991
|
-
/* @__PURE__ */ o.jsx(
|
|
1992
|
-
/* @__PURE__ */ o.jsx(
|
|
1993
|
-
/* @__PURE__ */ o.jsxs(
|
|
1994
|
-
/* @__PURE__ */ o.jsxs(
|
|
1995
|
-
/* @__PURE__ */ o.jsx(
|
|
2002
|
+
return /* @__PURE__ */ o.jsxs(kt, { ref: n, children: [
|
|
2003
|
+
/* @__PURE__ */ o.jsx(Et, { url: e, isLive: !1 }),
|
|
2004
|
+
/* @__PURE__ */ o.jsx(At, {}),
|
|
2005
|
+
/* @__PURE__ */ o.jsxs(Ot, { children: [
|
|
2006
|
+
/* @__PURE__ */ o.jsx(Dr, {}),
|
|
2007
|
+
/* @__PURE__ */ o.jsx(Ft, { children: /* @__PURE__ */ o.jsxs(_t, { children: [
|
|
2008
|
+
/* @__PURE__ */ o.jsx(Mr, {}),
|
|
2009
|
+
/* @__PURE__ */ o.jsxs(It, { children: [
|
|
2010
|
+
/* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
2011
|
+
/* @__PURE__ */ o.jsx(Ir, {}),
|
|
1996
2012
|
/* @__PURE__ */ o.jsx(Nt, {}),
|
|
1997
|
-
/* @__PURE__ */ o.jsx(
|
|
2013
|
+
/* @__PURE__ */ o.jsx(Vr, {})
|
|
1998
2014
|
] }),
|
|
1999
|
-
/* @__PURE__ */ o.jsxs(
|
|
2000
|
-
/* @__PURE__ */ o.jsx(
|
|
2001
|
-
/* @__PURE__ */ o.jsx(
|
|
2015
|
+
/* @__PURE__ */ o.jsxs(Vt, { children: [
|
|
2016
|
+
/* @__PURE__ */ o.jsx(Bt, {}),
|
|
2017
|
+
/* @__PURE__ */ o.jsx(Ht, {})
|
|
2002
2018
|
] })
|
|
2003
2019
|
] })
|
|
2004
2020
|
] }) })
|
|
@@ -2006,7 +2022,7 @@ function Ar({ url: e }) {
|
|
|
2006
2022
|
] });
|
|
2007
2023
|
}
|
|
2008
2024
|
export {
|
|
2009
|
-
|
|
2010
|
-
|
|
2025
|
+
zr as LivePlayer,
|
|
2026
|
+
Zr as VodPlayer
|
|
2011
2027
|
};
|
|
2012
2028
|
//# sourceMappingURL=react-video-player.es.js.map
|