@instructure/studio-player 0.3.6 → 0.3.7
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/studio-player.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import './index-
|
|
1
|
+
import './index-B3keTGCo.css';var ot = Object.defineProperty;
|
|
2
2
|
var it = (e, n, o) => n in e ? ot(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
|
|
3
3
|
var V = (e, n, o) => it(e, typeof n != "symbol" ? n + "" : n, o);
|
|
4
4
|
import { jsx as t, jsxs as c, Fragment as Q } from "react/jsx-runtime";
|
|
5
5
|
import { createContext as le, useContext as re, useState as x, useCallback as _, useEffect as O, useMemo as E, useRef as G } from "react";
|
|
6
|
-
import { useMediaPlayer as F, Spinner as ce, useMediaRemote as oe, useMediaState as
|
|
6
|
+
import { useMediaPlayer as F, Spinner as ce, useMediaRemote as oe, useMediaState as f, isTrackCaptionKind as st, Track as at, Captions as ct, usePlaybackRateOptions as lt, useCaptionOptions as rt, useVideoQualityOptions as ut, useMediaStore as Te, Poster as dt, FullscreenButton as mt, Time as xe, TimeSlider as $, VolumeSlider as J, isAudioProvider as ht, isVideoProvider as pt, MediaPlayer as _t, MediaProvider as ft } from "@vidstack/react";
|
|
7
7
|
import { useMediaState as hi, useMediaStore as pi } from "@vidstack/react";
|
|
8
|
-
import { initReactI18next as
|
|
8
|
+
import { initReactI18next as Ct, useTranslation as C } from "react-i18next";
|
|
9
9
|
import bt from "i18next";
|
|
10
10
|
import gt from "i18next-resources-to-backend";
|
|
11
|
-
import { useFloating as ue, autoUpdate as de, flip as me, arrow as he, useDismiss as pe, useInteractions as _e, FloatingFocusManager as
|
|
11
|
+
import { useFloating as ue, autoUpdate as de, flip as me, arrow as he, useDismiss as pe, useInteractions as _e, FloatingFocusManager as fe, FloatingArrow as Ce, shift as Ee, offset as Re, useListNavigation as vt } from "@floating-ui/react";
|
|
12
12
|
const wt = (e, n, o) => {
|
|
13
13
|
const i = e[n];
|
|
14
|
-
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((
|
|
14
|
+
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((s, a) => {
|
|
15
15
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
16
|
-
|
|
16
|
+
a.bind(
|
|
17
17
|
null,
|
|
18
18
|
new Error(
|
|
19
19
|
"Unknown variable dynamic import: " + n + (n.split("/").length !== o ? ". Note that variables only represent file names one level deep." : "")
|
|
@@ -22,7 +22,7 @@ const wt = (e, n, o) => {
|
|
|
22
22
|
);
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
bt.use(
|
|
25
|
+
bt.use(Ct).use(
|
|
26
26
|
gt(
|
|
27
27
|
(e) => wt(/* @__PURE__ */ Object.assign({ "./locales/en.json": () => import("./en-p8Xpb7Qg.js"), "./locales/kl.json": () => import("./kl-Drx4juMa.js") }), `./locales/${e}.json`, 3)
|
|
28
28
|
)
|
|
@@ -56,18 +56,18 @@ function kt({
|
|
|
56
56
|
comments: n,
|
|
57
57
|
captions: o,
|
|
58
58
|
thumbnail: i,
|
|
59
|
-
annotations:
|
|
60
|
-
quizMarkers:
|
|
59
|
+
annotations: s,
|
|
60
|
+
quizMarkers: a,
|
|
61
61
|
interactive: l,
|
|
62
62
|
onAnnotationClick: r,
|
|
63
63
|
onQuizMarkerClick: u,
|
|
64
|
-
onInteractivePinClick:
|
|
64
|
+
onInteractivePinClick: m,
|
|
65
65
|
interactiveMenuElements: v,
|
|
66
66
|
kebabMenuElements: y,
|
|
67
67
|
darkMode: k,
|
|
68
68
|
children: w,
|
|
69
69
|
forceComments: N,
|
|
70
|
-
disableCaptionSettings:
|
|
70
|
+
disableCaptionSettings: h,
|
|
71
71
|
disableStorage: b,
|
|
72
72
|
captionOffsetOverride: P,
|
|
73
73
|
disableInteractivePinRanges: T,
|
|
@@ -78,20 +78,20 @@ function kt({
|
|
|
78
78
|
comments: n,
|
|
79
79
|
captions: o,
|
|
80
80
|
thumbnail: i,
|
|
81
|
-
annotations:
|
|
82
|
-
quizMarkers:
|
|
81
|
+
annotations: s,
|
|
82
|
+
quizMarkers: a,
|
|
83
83
|
interactive: l,
|
|
84
84
|
onAnnotationClick: r,
|
|
85
85
|
onQuizMarkerClick: u,
|
|
86
|
-
onInteractivePinClick:
|
|
86
|
+
onInteractivePinClick: m,
|
|
87
87
|
interactiveMenuElements: v,
|
|
88
88
|
kebabMenuElements: y,
|
|
89
89
|
darkMode: k,
|
|
90
90
|
hasComments: n.length > 0,
|
|
91
|
-
hasAnnotations:
|
|
92
|
-
hasQuizmarkers:
|
|
91
|
+
hasAnnotations: s.length > 0,
|
|
92
|
+
hasQuizmarkers: a.length > 0,
|
|
93
93
|
forceComments: N,
|
|
94
|
-
disableCaptionSettings:
|
|
94
|
+
disableCaptionSettings: h,
|
|
95
95
|
disableStorage: b,
|
|
96
96
|
captionOffsetOverride: P,
|
|
97
97
|
disableInteractivePinRanges: T,
|
|
@@ -110,43 +110,43 @@ function M() {
|
|
|
110
110
|
const Lt = "_annotation-overlay_1kxzn_1", xt = {
|
|
111
111
|
"annotation-overlay": "_annotation-overlay_1kxzn_1",
|
|
112
112
|
annotationOverlay: Lt
|
|
113
|
-
},
|
|
113
|
+
}, Me = 0.25, Mt = (e, n) => {
|
|
114
114
|
let o = !1;
|
|
115
115
|
return (i) => {
|
|
116
|
-
const
|
|
117
|
-
|
|
116
|
+
const s = i.detail.currentTime;
|
|
117
|
+
s >= e.time && s < e.time + Me && !o && (o = !0, n(e)), (s < e.time || s >= e.time + Me) && o && (o = !1);
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
function Pt({ annotations: e }) {
|
|
121
|
-
const n = F(), o = g(), i = M(), [
|
|
121
|
+
const n = F(), o = g(), i = M(), [s, a] = x(
|
|
122
122
|
null
|
|
123
123
|
), l = _(
|
|
124
124
|
(u) => {
|
|
125
|
-
n == null || n.pause(), i.interactive || o.disableInteractions(),
|
|
125
|
+
n == null || n.pause(), i.interactive || o.disableInteractions(), a(u);
|
|
126
126
|
},
|
|
127
127
|
[n, o]
|
|
128
128
|
), r = () => {
|
|
129
|
-
i.interactive || (n == null || n.play(), o.enableInteractions()),
|
|
129
|
+
i.interactive || (n == null || n.play(), o.enableInteractions()), a(null);
|
|
130
130
|
};
|
|
131
131
|
return O(() => {
|
|
132
132
|
if (!n)
|
|
133
133
|
return;
|
|
134
134
|
const u = [];
|
|
135
|
-
for (const
|
|
136
|
-
const v = Mt(
|
|
135
|
+
for (const m of e) {
|
|
136
|
+
const v = Mt(m, l);
|
|
137
137
|
n.addEventListener("time-update", v), u.push(v);
|
|
138
138
|
}
|
|
139
|
-
if (
|
|
140
|
-
const
|
|
141
|
-
(v) => v.id ===
|
|
139
|
+
if (s) {
|
|
140
|
+
const m = e.find(
|
|
141
|
+
(v) => v.id === s.id
|
|
142
142
|
);
|
|
143
|
-
|
|
143
|
+
m ? a(m) : (a(null), o.enableInteractions());
|
|
144
144
|
}
|
|
145
145
|
return () => {
|
|
146
|
-
for (const
|
|
147
|
-
n.removeEventListener("time-update",
|
|
146
|
+
for (const m of u)
|
|
147
|
+
n.removeEventListener("time-update", m);
|
|
148
148
|
};
|
|
149
|
-
}, [n, e]),
|
|
149
|
+
}, [n, e]), s ? /* @__PURE__ */ t("div", { className: xt.annotationOverlay, children: s.render(r) }) : null;
|
|
150
150
|
}
|
|
151
151
|
const Nt = "_media-buffering-indicator_1fwjr_1", It = "_media-buffering-spinner_1fwjr_17", Ht = "_media-buffering-spin_1fwjr_17", Vt = "_media-buffering-track_1fwjr_22", St = "_media-buffering-track-fill_1fwjr_27", ee = {
|
|
152
152
|
"media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
|
|
@@ -180,7 +180,7 @@ const Fe = (e) => /* @__PURE__ */ c("svg", { width: 24, height: 24, viewBox: "0
|
|
|
180
180
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ t("path", { d: "M21.3333 0H2.66666C1.18666 0 0 1.35 0 3V21C0 22.65 1.18666 24 2.66666 24H21.3333C22.8 24 24 22.65 24 21V3C24 1.35 22.8 0 21.3333 0ZM10.6667 10.6667H8.66666V10H6V14H8.66666V13.3333H10.6667V14.6667C10.6667 15.4 10.0667 16 9.33334 16H5.33334C4.6 16 4 15.4 4 14.6667V9.33334C4 8.6 4.6 8 5.33334 8H9.33334C10.0667 8 10.6667 8.6 10.6667 9.33334V10.6667ZM20.0042 10.6667H18.0042V10H15.3375V14H18.0042V13.3333H20.0042V14.6667C20.0042 15.4 19.4042 16 18.6708 16H14.6708C13.9375 16 13.3375 15.4 13.3375 14.6667V9.33334C13.3375 8.6 13.9375 8 14.6708 8H18.6708C19.4042 8 20.0042 8.6 20.0042 9.33334V10.6667Z", fill: "currentColor" }) })
|
|
181
181
|
] });
|
|
182
182
|
function Tt() {
|
|
183
|
-
const e = oe(), n =
|
|
183
|
+
const e = oe(), n = f("textTrack"), o = f("hasCaptions"), i = n && st(n), s = g(), a = _(
|
|
184
184
|
(l) => {
|
|
185
185
|
e.toggleCaptions(l.nativeEvent);
|
|
186
186
|
},
|
|
@@ -191,10 +191,10 @@ function Tt() {
|
|
|
191
191
|
{
|
|
192
192
|
type: "button",
|
|
193
193
|
className: "controls-button",
|
|
194
|
-
onClick:
|
|
194
|
+
onClick: a,
|
|
195
195
|
"aria-label": "Captions",
|
|
196
196
|
"aria-pressed": i ? "true" : "false",
|
|
197
|
-
tabIndex:
|
|
197
|
+
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
198
198
|
children: i ? /* @__PURE__ */ t(Ze, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Fe, { className: "controls-button-icon" })
|
|
199
199
|
}
|
|
200
200
|
) : null;
|
|
@@ -203,13 +203,13 @@ const Et = "_captions_1cu0g_1", Rt = {
|
|
|
203
203
|
captions: Et
|
|
204
204
|
}, At = (e, n) => e ? n.top : n.bottom;
|
|
205
205
|
function ze({ captions: e }) {
|
|
206
|
-
const n = e.length > 0, o = g(), { captionOffsetOverride: i } = M(),
|
|
207
|
-
|
|
206
|
+
const n = e.length > 0, o = g(), { captionOffsetOverride: i } = M(), s = o.state.captionPositionOnTop, a = At(
|
|
207
|
+
s,
|
|
208
208
|
i ?? {}
|
|
209
209
|
);
|
|
210
210
|
return /* @__PURE__ */ c(Q, { children: [
|
|
211
211
|
e.map((l) => /* @__PURE__ */ t(
|
|
212
|
-
|
|
212
|
+
at,
|
|
213
213
|
{
|
|
214
214
|
kind: "subtitles",
|
|
215
215
|
type: l.type,
|
|
@@ -224,7 +224,7 @@ function ze({ captions: e }) {
|
|
|
224
224
|
{
|
|
225
225
|
style: {
|
|
226
226
|
display: "contents",
|
|
227
|
-
...
|
|
227
|
+
...a ? { "--caption-offset": a } : {},
|
|
228
228
|
"--captions-font-size-multiplier": o.state.captionsFontSizeMultiplier ?? 1,
|
|
229
229
|
"--captions-flex-direction": o.state.captionPositionOnTop ? "column" : "column-reverse",
|
|
230
230
|
"--captions-color": o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
|
|
@@ -244,7 +244,7 @@ const K = [0.5, 0.75, 1, 1.25, 1.5, 2], Bt = [0.5, 1, 2, 3, 4], Ot = 5, Ft = (e)
|
|
|
244
244
|
o.length >= e && o.shift(), o.push(i), n({});
|
|
245
245
|
},
|
|
246
246
|
remove(i) {
|
|
247
|
-
o = o.filter((
|
|
247
|
+
o = o.filter((s) => s !== i), n({});
|
|
248
248
|
},
|
|
249
249
|
clear() {
|
|
250
250
|
o = [], n({});
|
|
@@ -256,27 +256,27 @@ const K = [0.5, 0.75, 1, 1.25, 1.5, 2], Bt = [0.5, 1, 2, 3, 4], Ot = 5, Ft = (e)
|
|
|
256
256
|
}, []);
|
|
257
257
|
}, Zt = (e, n, o) => {
|
|
258
258
|
let i = !1;
|
|
259
|
-
return (
|
|
260
|
-
const
|
|
261
|
-
|
|
259
|
+
return (s) => {
|
|
260
|
+
const a = s.detail.currentTime;
|
|
261
|
+
a >= e.timestamp && a < e.timestamp + n && !i && (o.add(e), i = !0), (a < e.timestamp || a >= e.timestamp + n) && i && (o.remove(e), i = !1);
|
|
262
262
|
};
|
|
263
263
|
}, zt = (e, n = 5) => {
|
|
264
264
|
const o = F(), i = Ft(n);
|
|
265
265
|
return O(() => {
|
|
266
266
|
if (!o)
|
|
267
267
|
return;
|
|
268
|
-
const
|
|
269
|
-
for (const
|
|
270
|
-
const l = Zt(
|
|
271
|
-
|
|
268
|
+
const s = [];
|
|
269
|
+
for (const a of e) {
|
|
270
|
+
const l = Zt(a, Ot, i);
|
|
271
|
+
s.push(l), o.addEventListener("time-update", l);
|
|
272
272
|
}
|
|
273
273
|
return o.dispatchEvent(
|
|
274
274
|
new CustomEvent("time-update", {
|
|
275
275
|
detail: { currentTime: o.currentTime }
|
|
276
276
|
})
|
|
277
277
|
), () => {
|
|
278
|
-
for (const
|
|
279
|
-
o.removeEventListener("time-update",
|
|
278
|
+
for (const a of s)
|
|
279
|
+
o.removeEventListener("time-update", a);
|
|
280
280
|
i.clear();
|
|
281
281
|
};
|
|
282
282
|
}, [o, i, e]), i;
|
|
@@ -312,7 +312,7 @@ function Qt({ comment: e }) {
|
|
|
312
312
|
}
|
|
313
313
|
const Wt = 5;
|
|
314
314
|
function jt({ comments: e }) {
|
|
315
|
-
const n = g(), o = zt(e, Wt), i = !!
|
|
315
|
+
const n = g(), o = zt(e, Wt), i = !!f("textTrack"), s = o.map((a) => /* @__PURE__ */ t(Qt, { comment: a }, a.id));
|
|
316
316
|
return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
|
|
317
317
|
"div",
|
|
318
318
|
{
|
|
@@ -320,7 +320,7 @@ function jt({ comments: e }) {
|
|
|
320
320
|
style: {
|
|
321
321
|
flexDirection: n.state.captionPositionOnTop && i ? "column-reverse" : "column"
|
|
322
322
|
},
|
|
323
|
-
children: /* @__PURE__ */ t("div", { className: B.commentsContainer, children: i ?
|
|
323
|
+
children: /* @__PURE__ */ t("div", { className: B.commentsContainer, children: i ? s.slice(-4) : s })
|
|
324
324
|
}
|
|
325
325
|
) : null;
|
|
326
326
|
}
|
|
@@ -345,13 +345,13 @@ function on({
|
|
|
345
345
|
return O(() => {
|
|
346
346
|
i && (i.remoteControl.pauseControls(), n && (n.current = i));
|
|
347
347
|
}, [i, n]), /* @__PURE__ */ c("div", { "data-darkmode": e, className: z.root, children: [
|
|
348
|
-
/* @__PURE__ */ t(
|
|
348
|
+
/* @__PURE__ */ t(Ie, { className: z.normalTimeline }),
|
|
349
349
|
/* @__PURE__ */ c("div", { className: z.leftControls, children: [
|
|
350
350
|
/* @__PURE__ */ t(z1, {}),
|
|
351
351
|
/* @__PURE__ */ t(Uo, {})
|
|
352
352
|
] }),
|
|
353
353
|
/* @__PURE__ */ t("div", { className: z.indicators, children: /* @__PURE__ */ t(eo, {}) }),
|
|
354
|
-
/* @__PURE__ */ t(
|
|
354
|
+
/* @__PURE__ */ t(Ie, { className: z.compactTimeline }),
|
|
355
355
|
/* @__PURE__ */ c("div", { className: z.rightControls, children: [
|
|
356
356
|
o && /* @__PURE__ */ t(Tt, {}),
|
|
357
357
|
/* @__PURE__ */ t(Jn, {}),
|
|
@@ -359,7 +359,7 @@ function on({
|
|
|
359
359
|
] })
|
|
360
360
|
] });
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const sn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.0692 12C21.0692 11.4776 21.0212 10.944 20.9238 10.4104L23.5511 8.13318L21.0579 3.87247L17.7431 4.97788C16.9059 4.28329 15.9515 3.73553 14.9449 3.37271L14.2616 0H9.28941L8.60612 3.37129C7.58823 3.73553 6.65082 4.27482 5.80659 4.97647L2.49318 3.87247L0 8.13318L2.62729 10.4104C2.52988 10.944 2.48188 11.4776 2.48188 12C2.48188 12.5224 2.52988 13.056 2.62729 13.5896L0 15.8668L2.49318 20.1275L5.808 19.0221C6.64518 19.7167 7.59953 20.2645 8.60612 20.6273L9.28941 24H14.2616L14.9449 20.6287C15.9614 20.2645 16.9002 19.7252 17.7445 19.0235L21.0579 20.1289L23.5511 15.8682L20.9238 13.5911C21.0212 13.056 21.0692 12.5224 21.0692 12ZM11.7755 16.9412C9.05082 16.9412 6.83435 14.7247 6.83435 12C6.83435 9.2753 9.05082 7.05883 11.7755 7.05883C14.5002 7.05883 16.7167 9.2753 16.7167 12C16.7167 14.7247 14.5002 16.9412 11.7755 16.9412Z", fill: "currentColor" }) }), an = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), cn = "_menu-hint_k49ve_1", ln = "_menu-button_k49ve_5", rn = "_menu-label_k49ve_37", un = "_menu-icon_k49ve_42", te = {
|
|
363
363
|
"menu-hint": "_menu-hint_k49ve_1",
|
|
364
364
|
menuHint: cn,
|
|
365
365
|
"menu-button": "_menu-button_k49ve_5",
|
|
@@ -383,14 +383,14 @@ function W({ label: e, hint: n, onClick: o, Icon: i }) {
|
|
|
383
383
|
i && /* @__PURE__ */ t(i, { className: te.menuIcon }),
|
|
384
384
|
/* @__PURE__ */ t("span", { className: te.menuLabel, children: e }),
|
|
385
385
|
/* @__PURE__ */ t("span", { className: te.menuHint, children: n }),
|
|
386
|
-
/* @__PURE__ */ t(
|
|
386
|
+
/* @__PURE__ */ t(an, {})
|
|
387
387
|
]
|
|
388
388
|
}
|
|
389
389
|
);
|
|
390
390
|
}
|
|
391
391
|
const dn = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.42229 2.82911C4.71149 1.83006 6.23876 1.19768 7.8383 1L7.96797 2.05432C6.55867 2.22862 5.21101 2.7866 4.07273 3.66874L3.42229 2.82911ZM5.44493 6.71393L9.49745 10.7665L17.0924 3.1705L17.8438 3.92297L9.49745 12.2693L4.69352 7.46534L5.44493 6.71393ZM17.932 8.83829C17.8618 8.27074 17.7364 7.70745 17.5589 7.16222L16.5482 7.49276C16.7055 7.97209 16.816 8.46843 16.8766 8.96689C16.917 9.29742 16.9372 9.6269 16.9372 9.96594C16.9372 10.305 16.917 10.6344 16.8777 10.9639C16.7033 12.3732 16.1454 13.7209 15.2632 14.8592L16.1029 15.5096C17.1019 14.2204 17.7343 12.6931 17.932 11.0925C17.9766 10.7205 18 10.3486 18 9.96594C18 9.58332 17.9766 9.21134 17.932 8.83829ZM1.05432 8.96795L0 8.83829C0.197684 7.23874 0.830061 5.71147 1.82911 4.42228L2.66874 5.07272C1.7866 6.211 1.22862 7.55865 1.05432 8.96795ZM0 11.0936C0.197684 12.6931 0.830061 14.2204 1.82911 15.5096L2.66874 14.8591C1.7866 13.7209 1.22862 12.3732 1.05432 10.9639L0 11.0936ZM10.0939 1.00011C11.6935 1.19673 13.2207 1.83017 14.5099 2.82922L13.8595 3.66884C12.7202 2.7867 11.3736 2.22872 9.96426 2.05442L10.0939 1.00011Z", fill: "currentColor" }) });
|
|
392
392
|
function mn() {
|
|
393
|
-
const e = H(), n =
|
|
393
|
+
const e = H(), n = f("playbackRate"), { t: o } = C(), i = _(() => {
|
|
394
394
|
e.setPage("speed");
|
|
395
395
|
}, [e]);
|
|
396
396
|
return /* @__PURE__ */ t(
|
|
@@ -404,7 +404,7 @@ function mn() {
|
|
|
404
404
|
);
|
|
405
405
|
}
|
|
406
406
|
function hn() {
|
|
407
|
-
const e = H(), n =
|
|
407
|
+
const e = H(), n = f("hasCaptions"), o = f("textTrack"), { t: i } = C(), s = _(() => {
|
|
408
408
|
e.setPage("captions");
|
|
409
409
|
}, [e]);
|
|
410
410
|
return n ? /* @__PURE__ */ t(
|
|
@@ -412,7 +412,7 @@ function hn() {
|
|
|
412
412
|
{
|
|
413
413
|
label: i("CAPTIONS"),
|
|
414
414
|
hint: (o == null ? void 0 : o.label) ?? i("OFF"),
|
|
415
|
-
onClick:
|
|
415
|
+
onClick: s,
|
|
416
416
|
Icon: Fe
|
|
417
417
|
}
|
|
418
418
|
) : null;
|
|
@@ -426,7 +426,7 @@ const pn = (e) => /* @__PURE__ */ c("svg", { width: 18, height: 18, viewBox: "0
|
|
|
426
426
|
] })
|
|
427
427
|
] });
|
|
428
428
|
function _n() {
|
|
429
|
-
const e = H(), n =
|
|
429
|
+
const e = H(), n = f("autoQuality"), o = f("quality"), { t: i } = C(), s = _(() => {
|
|
430
430
|
e.setPage("quality");
|
|
431
431
|
}, [e]);
|
|
432
432
|
return o ? /* @__PURE__ */ t(
|
|
@@ -434,12 +434,12 @@ function _n() {
|
|
|
434
434
|
{
|
|
435
435
|
label: i("QUALITY"),
|
|
436
436
|
hint: n ? i("AUTO", { quality: o.height }) : `${o.height}p`,
|
|
437
|
-
onClick:
|
|
437
|
+
onClick: s,
|
|
438
438
|
Icon: pn
|
|
439
439
|
}
|
|
440
440
|
) : null;
|
|
441
441
|
}
|
|
442
|
-
const
|
|
442
|
+
const fn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 21.798373,3.342155 8.8843977,16.256145 2.2000774,9.571825 0,11.771895 8.8843977,20.657845 24,5.543795 Z", fill: "currentColor" }) }), Cn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 9.64706,12 4,17.64706 6.35293,20 12,14.35293 17.64706,20 20,17.64706 14.35293,12 20,6.35293 17.64706,4 12,9.64706 6.35293,4 4,6.35293 Z", fill: "currentColor" }) }), bn = "_switch-track_1d65g_1", gn = "_switch-thumb_1d65g_12", vn = "_switch-icon_1d65g_26", wn = "_switch-body_1d65g_32", yn = "_switch-label_1d65g_73", kn = "_menu-icon_1d65g_77", A = {
|
|
443
443
|
"switch-track": "_switch-track_1d65g_1",
|
|
444
444
|
switchTrack: bn,
|
|
445
445
|
"switch-thumb": "_switch-thumb_1d65g_12",
|
|
@@ -453,7 +453,7 @@ const Cn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0
|
|
|
453
453
|
"menu-icon": "_menu-icon_1d65g_77",
|
|
454
454
|
menuIcon: kn
|
|
455
455
|
};
|
|
456
|
-
function
|
|
456
|
+
function be({
|
|
457
457
|
label: e,
|
|
458
458
|
checked: n = !1,
|
|
459
459
|
onClick: o,
|
|
@@ -471,16 +471,16 @@ function fe({
|
|
|
471
471
|
children: [
|
|
472
472
|
i && /* @__PURE__ */ t(i, { className: A.menuIcon }),
|
|
473
473
|
/* @__PURE__ */ t("span", { className: A.switchLabel, children: e }),
|
|
474
|
-
/* @__PURE__ */ t("div", { className: A.switchTrack, children: /* @__PURE__ */ t("div", { className: A.switchThumb, children: n ? /* @__PURE__ */ t(
|
|
474
|
+
/* @__PURE__ */ t("div", { className: A.switchTrack, children: /* @__PURE__ */ t("div", { className: A.switchThumb, children: n ? /* @__PURE__ */ t(fn, { className: A.switchIcon }) : /* @__PURE__ */ t(Cn, { className: A.switchIcon }) }) })
|
|
475
475
|
]
|
|
476
476
|
}
|
|
477
477
|
);
|
|
478
478
|
}
|
|
479
479
|
const Ln = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 0V12.7489H5.44V18L10.5007 12.7489H16.582V0H1ZM2 1H15.58V11.7339H9.98655L6.52667 15.25V11.7339H2V1ZM5.24963 5.35011H12.3323V4.24835H5.24963V5.35011ZM5.24963 8.18462H9.50067V7.08285H5.24963V8.18462Z", fill: "currentColor" }) });
|
|
480
480
|
function xn() {
|
|
481
|
-
const { t: e } =
|
|
481
|
+
const { t: e } = C(), n = M(), o = g();
|
|
482
482
|
return !n.forceComments && n.hasComments ? /* @__PURE__ */ t(
|
|
483
|
-
|
|
483
|
+
be,
|
|
484
484
|
{
|
|
485
485
|
Icon: Ln,
|
|
486
486
|
label: e("COMMENTS"),
|
|
@@ -538,27 +538,27 @@ function D() {
|
|
|
538
538
|
ArrowUp: () => {
|
|
539
539
|
const i = document.activeElement;
|
|
540
540
|
if (i && n.current && n.current.contains(i)) {
|
|
541
|
-
const
|
|
541
|
+
const s = In(
|
|
542
542
|
n.current,
|
|
543
543
|
i
|
|
544
544
|
);
|
|
545
|
-
|
|
545
|
+
s == null || s.focus();
|
|
546
546
|
} else if (n.current) {
|
|
547
|
-
const
|
|
548
|
-
|
|
547
|
+
const s = Sn(n.current);
|
|
548
|
+
s == null || s.focus();
|
|
549
549
|
}
|
|
550
550
|
},
|
|
551
551
|
ArrowDown: () => {
|
|
552
552
|
const i = document.activeElement;
|
|
553
553
|
if (i && n.current && n.current.contains(i)) {
|
|
554
|
-
const
|
|
554
|
+
const s = Hn(
|
|
555
555
|
n.current,
|
|
556
556
|
i
|
|
557
557
|
);
|
|
558
|
-
|
|
558
|
+
s == null || s.focus();
|
|
559
559
|
} else if (n.current) {
|
|
560
|
-
const
|
|
561
|
-
|
|
560
|
+
const s = Vn(n.current);
|
|
561
|
+
s == null || s.focus();
|
|
562
562
|
}
|
|
563
563
|
},
|
|
564
564
|
ArrowRight: () => {
|
|
@@ -572,7 +572,7 @@ function D() {
|
|
|
572
572
|
return Ke(o), n;
|
|
573
573
|
}
|
|
574
574
|
function Tn() {
|
|
575
|
-
const e = D(), { t: n } =
|
|
575
|
+
const e = D(), { t: n } = C();
|
|
576
576
|
return /* @__PURE__ */ c(
|
|
577
577
|
"div",
|
|
578
578
|
{
|
|
@@ -590,7 +590,7 @@ function Tn() {
|
|
|
590
590
|
}
|
|
591
591
|
);
|
|
592
592
|
}
|
|
593
|
-
const ie = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) }), j = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), En = "_menu-container_1lrzf_1", Rn = "_menu-heading_1lrzf_6", An = "_check-icon_1lrzf_22", Bn = "_menu-item-label_1lrzf_28", On = "_menu-item_1lrzf_28", Fn = "_menu-back-button_1lrzf_61",
|
|
593
|
+
const ie = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) }), j = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), En = "_menu-container_1lrzf_1", Rn = "_menu-heading_1lrzf_6", An = "_check-icon_1lrzf_22", Bn = "_menu-item-label_1lrzf_28", On = "_menu-item_1lrzf_28", Fn = "_menu-back-button_1lrzf_61", p = {
|
|
594
594
|
"menu-container": "_menu-container_1lrzf_1",
|
|
595
595
|
menuContainer: En,
|
|
596
596
|
"menu-heading": "_menu-heading_1lrzf_6",
|
|
@@ -608,7 +608,7 @@ function Zn() {
|
|
|
608
608
|
const e = H(), n = lt({
|
|
609
609
|
rates: K,
|
|
610
610
|
normalLabel: "1x"
|
|
611
|
-
}), { t: o } =
|
|
611
|
+
}), { t: o } = C(), i = D();
|
|
612
612
|
return /* @__PURE__ */ c(
|
|
613
613
|
"div",
|
|
614
614
|
{
|
|
@@ -616,7 +616,7 @@ function Zn() {
|
|
|
616
616
|
id: "submenu",
|
|
617
617
|
"aria-label": o("SPEED_MENU"),
|
|
618
618
|
role: "menu",
|
|
619
|
-
className:
|
|
619
|
+
className: p.menuContainer,
|
|
620
620
|
children: [
|
|
621
621
|
/* @__PURE__ */ c(
|
|
622
622
|
"button",
|
|
@@ -624,7 +624,7 @@ function Zn() {
|
|
|
624
624
|
type: "button",
|
|
625
625
|
role: "menuitem",
|
|
626
626
|
tabIndex: -1,
|
|
627
|
-
className:
|
|
627
|
+
className: p.menuBackButton,
|
|
628
628
|
onClick: e.back,
|
|
629
629
|
children: [
|
|
630
630
|
/* @__PURE__ */ t(j, {}),
|
|
@@ -632,30 +632,30 @@ function Zn() {
|
|
|
632
632
|
]
|
|
633
633
|
}
|
|
634
634
|
),
|
|
635
|
-
/* @__PURE__ */ t("strong", { className:
|
|
636
|
-
n.map(({ value:
|
|
635
|
+
/* @__PURE__ */ t("strong", { className: p.menuHeading, children: o("PLAYBACK_SPEED") }),
|
|
636
|
+
n.map(({ value: s, label: a, select: l, selected: r }) => /* @__PURE__ */ c(
|
|
637
637
|
"button",
|
|
638
638
|
{
|
|
639
639
|
type: "button",
|
|
640
640
|
role: "menuitemradio",
|
|
641
|
-
"aria-label":
|
|
641
|
+
"aria-label": a,
|
|
642
642
|
"aria-checked": r,
|
|
643
643
|
onClick: () => l(),
|
|
644
644
|
tabIndex: -1,
|
|
645
|
-
className:
|
|
645
|
+
className: p.menuItem,
|
|
646
646
|
children: [
|
|
647
|
-
/* @__PURE__ */ t(ie, { className:
|
|
648
|
-
/* @__PURE__ */ t("span", { className:
|
|
647
|
+
/* @__PURE__ */ t(ie, { className: p.checkIcon }),
|
|
648
|
+
/* @__PURE__ */ t("span", { className: p.menuItemLabel, children: a })
|
|
649
649
|
]
|
|
650
650
|
},
|
|
651
|
-
|
|
651
|
+
s
|
|
652
652
|
))
|
|
653
653
|
]
|
|
654
654
|
}
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
657
|
function zn() {
|
|
658
|
-
const e = H(), n =
|
|
658
|
+
const e = H(), n = f("textTrack"), { t: o } = C(), { disableCaptionSettings: i } = g(), s = _(() => {
|
|
659
659
|
e.setPage("captionLanguage");
|
|
660
660
|
}, [e]);
|
|
661
661
|
return i ? null : /* @__PURE__ */ t(
|
|
@@ -663,12 +663,12 @@ function zn() {
|
|
|
663
663
|
{
|
|
664
664
|
label: o("LANGUAGE"),
|
|
665
665
|
hint: (n == null ? void 0 : n.label) ?? o("OFF"),
|
|
666
|
-
onClick:
|
|
666
|
+
onClick: s
|
|
667
667
|
}
|
|
668
668
|
);
|
|
669
669
|
}
|
|
670
670
|
function Kn() {
|
|
671
|
-
const { t: e } =
|
|
671
|
+
const { t: e } = C(), n = g(), o = H(), i = _(() => {
|
|
672
672
|
o.setPage("captionFontSize");
|
|
673
673
|
}, [o]);
|
|
674
674
|
return /* @__PURE__ */ t(
|
|
@@ -681,9 +681,9 @@ function Kn() {
|
|
|
681
681
|
);
|
|
682
682
|
}
|
|
683
683
|
function Dn() {
|
|
684
|
-
const { t: e } =
|
|
684
|
+
const { t: e } = C(), n = g();
|
|
685
685
|
return /* @__PURE__ */ t(
|
|
686
|
-
|
|
686
|
+
be,
|
|
687
687
|
{
|
|
688
688
|
label: e("ON_TOP"),
|
|
689
689
|
onClick: n.toggleCaptionPositionOnTop,
|
|
@@ -692,9 +692,9 @@ function Dn() {
|
|
|
692
692
|
);
|
|
693
693
|
}
|
|
694
694
|
function $n() {
|
|
695
|
-
const { t: e } =
|
|
695
|
+
const { t: e } = C(), n = g();
|
|
696
696
|
return /* @__PURE__ */ t(
|
|
697
|
-
|
|
697
|
+
be,
|
|
698
698
|
{
|
|
699
699
|
label: e("INVERT_COLORS"),
|
|
700
700
|
onClick: n.toggleCaptionsInvertColors,
|
|
@@ -703,7 +703,7 @@ function $n() {
|
|
|
703
703
|
);
|
|
704
704
|
}
|
|
705
705
|
function Un() {
|
|
706
|
-
const e = H(), { t: n } =
|
|
706
|
+
const e = H(), { t: n } = C(), o = D();
|
|
707
707
|
return /* @__PURE__ */ c(
|
|
708
708
|
"div",
|
|
709
709
|
{
|
|
@@ -711,7 +711,7 @@ function Un() {
|
|
|
711
711
|
id: "submenu",
|
|
712
712
|
"aria-label": n("CAPTIONS_MENU"),
|
|
713
713
|
role: "menu",
|
|
714
|
-
className:
|
|
714
|
+
className: p.menuContainer,
|
|
715
715
|
children: [
|
|
716
716
|
/* @__PURE__ */ c(
|
|
717
717
|
"button",
|
|
@@ -719,7 +719,7 @@ function Un() {
|
|
|
719
719
|
type: "button",
|
|
720
720
|
role: "menuitem",
|
|
721
721
|
tabIndex: -1,
|
|
722
|
-
className:
|
|
722
|
+
className: p.menuBackButton,
|
|
723
723
|
onClick: e.back,
|
|
724
724
|
children: [
|
|
725
725
|
/* @__PURE__ */ t(j, {}),
|
|
@@ -727,7 +727,7 @@ function Un() {
|
|
|
727
727
|
]
|
|
728
728
|
}
|
|
729
729
|
),
|
|
730
|
-
/* @__PURE__ */ t("strong", { className:
|
|
730
|
+
/* @__PURE__ */ t("strong", { className: p.menuHeading, children: n("CAPTIONS") }),
|
|
731
731
|
/* @__PURE__ */ t(zn, {}),
|
|
732
732
|
/* @__PURE__ */ t(Kn, {}),
|
|
733
733
|
/* @__PURE__ */ t(Dn, {}),
|
|
@@ -737,7 +737,7 @@ function Un() {
|
|
|
737
737
|
);
|
|
738
738
|
}
|
|
739
739
|
function qn() {
|
|
740
|
-
const e = H(), n = rt(), { t: o } =
|
|
740
|
+
const e = H(), n = rt(), { t: o } = C(), i = D();
|
|
741
741
|
return /* @__PURE__ */ c(
|
|
742
742
|
"div",
|
|
743
743
|
{
|
|
@@ -745,7 +745,7 @@ function qn() {
|
|
|
745
745
|
id: "submenu",
|
|
746
746
|
"aria-label": o("CAPTIONS_LANGUAGE_MENU"),
|
|
747
747
|
role: "menu",
|
|
748
|
-
className:
|
|
748
|
+
className: p.menuContainer,
|
|
749
749
|
children: [
|
|
750
750
|
/* @__PURE__ */ c(
|
|
751
751
|
"button",
|
|
@@ -753,7 +753,7 @@ function qn() {
|
|
|
753
753
|
type: "button",
|
|
754
754
|
role: "menuitem",
|
|
755
755
|
tabIndex: -1,
|
|
756
|
-
className:
|
|
756
|
+
className: p.menuBackButton,
|
|
757
757
|
onClick: e.back,
|
|
758
758
|
children: [
|
|
759
759
|
/* @__PURE__ */ t(j, {}),
|
|
@@ -761,8 +761,8 @@ function qn() {
|
|
|
761
761
|
]
|
|
762
762
|
}
|
|
763
763
|
),
|
|
764
|
-
/* @__PURE__ */ t("strong", { className:
|
|
765
|
-
n.map(({ value:
|
|
764
|
+
/* @__PURE__ */ t("strong", { className: p.menuHeading, children: o("CAPTIONS") }),
|
|
765
|
+
n.map(({ value: s, label: a, select: l, selected: r }) => /* @__PURE__ */ c(
|
|
766
766
|
"button",
|
|
767
767
|
{
|
|
768
768
|
type: "button",
|
|
@@ -770,20 +770,20 @@ function qn() {
|
|
|
770
770
|
"aria-checked": r,
|
|
771
771
|
onClick: () => l(),
|
|
772
772
|
tabIndex: -1,
|
|
773
|
-
className:
|
|
773
|
+
className: p.menuItem,
|
|
774
774
|
children: [
|
|
775
|
-
/* @__PURE__ */ t(ie, { className:
|
|
776
|
-
/* @__PURE__ */ t("span", { className:
|
|
775
|
+
/* @__PURE__ */ t(ie, { className: p.checkIcon }),
|
|
776
|
+
/* @__PURE__ */ t("span", { className: p.menuItemLabel, children: a })
|
|
777
777
|
]
|
|
778
778
|
},
|
|
779
|
-
|
|
779
|
+
s
|
|
780
780
|
))
|
|
781
781
|
]
|
|
782
782
|
}
|
|
783
783
|
);
|
|
784
784
|
}
|
|
785
785
|
function Gn() {
|
|
786
|
-
const e = g(), n = H(), { t: o } =
|
|
786
|
+
const e = g(), n = H(), { t: o } = C(), i = D();
|
|
787
787
|
return /* @__PURE__ */ c(
|
|
788
788
|
"div",
|
|
789
789
|
{
|
|
@@ -791,7 +791,7 @@ function Gn() {
|
|
|
791
791
|
id: "submenu",
|
|
792
792
|
"aria-label": o("CAPTIONS_FONT_SIZE_MENU"),
|
|
793
793
|
role: "menu",
|
|
794
|
-
className:
|
|
794
|
+
className: p.menuContainer,
|
|
795
795
|
children: [
|
|
796
796
|
/* @__PURE__ */ c(
|
|
797
797
|
"button",
|
|
@@ -799,7 +799,7 @@ function Gn() {
|
|
|
799
799
|
type: "button",
|
|
800
800
|
role: "menuitem",
|
|
801
801
|
tabIndex: -1,
|
|
802
|
-
className:
|
|
802
|
+
className: p.menuBackButton,
|
|
803
803
|
onClick: n.back,
|
|
804
804
|
children: [
|
|
805
805
|
/* @__PURE__ */ t(j, {}),
|
|
@@ -807,42 +807,42 @@ function Gn() {
|
|
|
807
807
|
]
|
|
808
808
|
}
|
|
809
809
|
),
|
|
810
|
-
/* @__PURE__ */ t("strong", { className:
|
|
811
|
-
Bt.map((
|
|
810
|
+
/* @__PURE__ */ t("strong", { className: p.menuHeading, children: o("CAPTIONS") }),
|
|
811
|
+
Bt.map((s) => /* @__PURE__ */ c(
|
|
812
812
|
"button",
|
|
813
813
|
{
|
|
814
814
|
type: "button",
|
|
815
815
|
role: "menuitemradio",
|
|
816
|
-
"aria-checked":
|
|
816
|
+
"aria-checked": s === e.state.captionsFontSizeMultiplier,
|
|
817
817
|
onClick: () => {
|
|
818
|
-
e.setCaptionsFontSizeMultiplier(
|
|
818
|
+
e.setCaptionsFontSizeMultiplier(s);
|
|
819
819
|
},
|
|
820
820
|
tabIndex: -1,
|
|
821
|
-
className:
|
|
821
|
+
className: p.menuItem,
|
|
822
822
|
children: [
|
|
823
|
-
/* @__PURE__ */ t(ie, { className:
|
|
824
|
-
/* @__PURE__ */ c("span", { className:
|
|
825
|
-
|
|
823
|
+
/* @__PURE__ */ t(ie, { className: p.checkIcon }),
|
|
824
|
+
/* @__PURE__ */ c("span", { className: p.menuItemLabel, children: [
|
|
825
|
+
s * 100,
|
|
826
826
|
"%"
|
|
827
827
|
] })
|
|
828
828
|
]
|
|
829
829
|
},
|
|
830
|
-
|
|
830
|
+
s
|
|
831
831
|
))
|
|
832
832
|
]
|
|
833
833
|
}
|
|
834
834
|
);
|
|
835
835
|
}
|
|
836
836
|
function Qn() {
|
|
837
|
-
const e = H(), n = ut({ sort: "descending" }), o =
|
|
837
|
+
const e = H(), n = ut({ sort: "descending" }), o = f("autoQuality"), { t: i } = C(), s = D();
|
|
838
838
|
return /* @__PURE__ */ c(
|
|
839
839
|
"div",
|
|
840
840
|
{
|
|
841
|
-
ref:
|
|
841
|
+
ref: s,
|
|
842
842
|
id: "submenu",
|
|
843
843
|
"aria-label": i("QUALITY_MENU"),
|
|
844
844
|
role: "menu",
|
|
845
|
-
className:
|
|
845
|
+
className: p.menuContainer,
|
|
846
846
|
children: [
|
|
847
847
|
/* @__PURE__ */ c(
|
|
848
848
|
"button",
|
|
@@ -850,7 +850,7 @@ function Qn() {
|
|
|
850
850
|
type: "button",
|
|
851
851
|
role: "menuitem",
|
|
852
852
|
tabIndex: -1,
|
|
853
|
-
className:
|
|
853
|
+
className: p.menuBackButton,
|
|
854
854
|
onClick: e.back,
|
|
855
855
|
children: [
|
|
856
856
|
/* @__PURE__ */ t(j, {}),
|
|
@@ -858,22 +858,22 @@ function Qn() {
|
|
|
858
858
|
]
|
|
859
859
|
}
|
|
860
860
|
),
|
|
861
|
-
/* @__PURE__ */ t("strong", { className:
|
|
862
|
-
n.map(({ value:
|
|
861
|
+
/* @__PURE__ */ t("strong", { className: p.menuHeading, children: i("QUALITY") }),
|
|
862
|
+
n.map(({ value: a, label: l, select: r, selected: u }) => /* @__PURE__ */ c(
|
|
863
863
|
"button",
|
|
864
864
|
{
|
|
865
865
|
type: "button",
|
|
866
866
|
role: "menuitemradio",
|
|
867
|
-
"aria-checked":
|
|
867
|
+
"aria-checked": a === "auto" && o || u && !o,
|
|
868
868
|
onClick: () => r(),
|
|
869
869
|
tabIndex: -1,
|
|
870
|
-
className:
|
|
870
|
+
className: p.menuItem,
|
|
871
871
|
children: [
|
|
872
|
-
/* @__PURE__ */ t(ie, { className:
|
|
873
|
-
/* @__PURE__ */ t("span", { className:
|
|
872
|
+
/* @__PURE__ */ t(ie, { className: p.checkIcon }),
|
|
873
|
+
/* @__PURE__ */ t("span", { className: p.menuItemLabel, children: l })
|
|
874
874
|
]
|
|
875
875
|
},
|
|
876
|
-
|
|
876
|
+
a
|
|
877
877
|
))
|
|
878
878
|
]
|
|
879
879
|
}
|
|
@@ -888,31 +888,31 @@ const De = le(null), Wn = {
|
|
|
888
888
|
quality: Qn
|
|
889
889
|
};
|
|
890
890
|
function jn() {
|
|
891
|
-
const e = g(), [n, o] = x(["main"]), [i,
|
|
892
|
-
|
|
891
|
+
const e = g(), [n, o] = x(["main"]), [i, s] = x(!1), a = _(() => {
|
|
892
|
+
s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
|
|
893
893
|
}, [i]), l = _((P) => {
|
|
894
894
|
o((T) => T.concat(P));
|
|
895
895
|
}, []), r = _(() => {
|
|
896
896
|
o((P) => P.length > 1 ? P.slice(0, -1) : P);
|
|
897
|
-
}, []), u = E(() => Wn[n[n.length - 1]], [n]),
|
|
897
|
+
}, []), u = E(() => Wn[n[n.length - 1]], [n]), m = G(null), { refs: v, floatingStyles: y, context: k } = ue({
|
|
898
898
|
open: i,
|
|
899
|
-
onOpenChange:
|
|
899
|
+
onOpenChange: a,
|
|
900
900
|
placement: "top-end",
|
|
901
901
|
whileElementsMounted: de,
|
|
902
902
|
middleware: [
|
|
903
903
|
me(),
|
|
904
904
|
he({
|
|
905
|
-
element:
|
|
905
|
+
element: m
|
|
906
906
|
})
|
|
907
907
|
]
|
|
908
|
-
}), w = pe(k, { escapeKey: !1 }), { getReferenceProps: N, getFloatingProps:
|
|
909
|
-
() => ({ setPage: l, back: r, toggle:
|
|
910
|
-
[r, l,
|
|
908
|
+
}), w = pe(k, { escapeKey: !1 }), { getReferenceProps: N, getFloatingProps: h } = _e([w]), b = E(
|
|
909
|
+
() => ({ setPage: l, back: r, toggle: a }),
|
|
910
|
+
[r, l, a]
|
|
911
911
|
);
|
|
912
912
|
return {
|
|
913
913
|
Page: u,
|
|
914
914
|
open: i,
|
|
915
|
-
arrowRef:
|
|
915
|
+
arrowRef: m,
|
|
916
916
|
refs: v,
|
|
917
917
|
floatingStyles: y,
|
|
918
918
|
context: k,
|
|
@@ -922,11 +922,11 @@ function jn() {
|
|
|
922
922
|
tabIndex: e.state.interactionsDisabled ? -1 : 0
|
|
923
923
|
};
|
|
924
924
|
},
|
|
925
|
-
getFloatingProps:
|
|
925
|
+
getFloatingProps: h,
|
|
926
926
|
contextValue: b
|
|
927
927
|
};
|
|
928
928
|
}
|
|
929
|
-
const Yn = "_settings-menu_7d0td_1", Xn = "_arrow_7d0td_19",
|
|
929
|
+
const Yn = "_settings-menu_7d0td_1", Xn = "_arrow_7d0td_19", Pe = {
|
|
930
930
|
"settings-menu": "_settings-menu_7d0td_1",
|
|
931
931
|
settingsMenu: Yn,
|
|
932
932
|
arrow: Xn
|
|
@@ -937,12 +937,12 @@ function Jn() {
|
|
|
937
937
|
arrowRef: n,
|
|
938
938
|
context: o,
|
|
939
939
|
floatingStyles: i,
|
|
940
|
-
getFloatingProps:
|
|
941
|
-
getReferenceProps:
|
|
940
|
+
getFloatingProps: s,
|
|
941
|
+
getReferenceProps: a,
|
|
942
942
|
open: l,
|
|
943
943
|
refs: r,
|
|
944
944
|
contextValue: u
|
|
945
|
-
} = jn(), { t:
|
|
945
|
+
} = jn(), { t: m } = C();
|
|
946
946
|
return /* @__PURE__ */ c(Q, { children: [
|
|
947
947
|
/* @__PURE__ */ t(
|
|
948
948
|
"button",
|
|
@@ -950,21 +950,21 @@ function Jn() {
|
|
|
950
950
|
ref: r.setReference,
|
|
951
951
|
type: "button",
|
|
952
952
|
className: "controls-button",
|
|
953
|
-
"aria-label":
|
|
953
|
+
"aria-label": m("SETTINGS"),
|
|
954
954
|
onClick: u.toggle,
|
|
955
955
|
"aria-expanded": l,
|
|
956
|
-
...
|
|
957
|
-
children: /* @__PURE__ */ t(
|
|
956
|
+
...a(),
|
|
957
|
+
children: /* @__PURE__ */ t(sn, { className: "controls-button-icon icon-rotate" })
|
|
958
958
|
}
|
|
959
959
|
),
|
|
960
|
-
l && /* @__PURE__ */ t(
|
|
960
|
+
l && /* @__PURE__ */ t(fe, { context: o, restoreFocus: !0, modal: !1, children: /* @__PURE__ */ c(
|
|
961
961
|
"div",
|
|
962
962
|
{
|
|
963
963
|
"aria-labelledby": "submenu",
|
|
964
|
-
className:
|
|
964
|
+
className: Pe.settingsMenu,
|
|
965
965
|
ref: r.setFloating,
|
|
966
966
|
style: i,
|
|
967
|
-
...
|
|
967
|
+
...s(),
|
|
968
968
|
children: [
|
|
969
969
|
/* @__PURE__ */ t(De.Provider, { value: u, children: /* @__PURE__ */ t(e, {}) }),
|
|
970
970
|
/* @__PURE__ */ t(
|
|
@@ -972,7 +972,7 @@ function Jn() {
|
|
|
972
972
|
{
|
|
973
973
|
ref: n,
|
|
974
974
|
context: o,
|
|
975
|
-
className:
|
|
975
|
+
className: Pe.arrow
|
|
976
976
|
}
|
|
977
977
|
)
|
|
978
978
|
]
|
|
@@ -982,15 +982,15 @@ function Jn() {
|
|
|
982
982
|
}
|
|
983
983
|
function $e(e, n = 1e3) {
|
|
984
984
|
return function() {
|
|
985
|
-
const i =
|
|
985
|
+
const i = f("lastKeyboardAction"), [s, a] = x(!1), l = _(() => a(!1), []);
|
|
986
986
|
return O(() => {
|
|
987
|
-
|
|
987
|
+
a(!!i);
|
|
988
988
|
const r = setTimeout(l, n);
|
|
989
989
|
return () => clearTimeout(r);
|
|
990
|
-
}, [i, n]),
|
|
990
|
+
}, [i, n]), s ? /* @__PURE__ */ t(e, {}) : null;
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
|
-
const
|
|
993
|
+
const ge = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), ve = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Ue = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1179 1.41211V22.589H11.2943L5.64717 16.9418V7.05928L11.2943 1.41211H14.1179ZM4.23537 7.05928V16.9418H2.11769C0.957618 16.9418 0.0189406 16.0147 0.00028305 14.8592L0 14.8241V9.17696C0 8.01689 0.927077 7.07822 2.0826 7.05956L2.11769 7.05928H4.23537ZM22.3744 7.93711L24 9.56119L21.5623 11.9988L24 14.4365L22.3744 16.0621L19.9383 13.6245L17.5006 16.0621L15.875 14.4365L18.3127 11.9988L15.875 9.56119L17.5006 7.93711L19.9383 10.3748L22.3744 7.93711Z", fill: "currentColor" }) }), qe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }), Ge = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 16.8627V6.98017L11.2943 1.33301H14.1179V22.5099H11.2943L5.64714 16.8627ZM0 14.745V9.09785C0 7.92607 0.945899 6.98017 2.11768 6.98017H4.23537V16.8627H2.11768C0.945899 16.8627 0 15.9168 0 14.745ZM16.9056 8.4209C17.8388 9.36962 18.3527 10.6134 18.3527 11.9207C18.3527 13.2295 17.8388 14.4732 16.9056 15.422L17.9094 16.4116C19.1066 15.1989 19.7645 13.6036 19.7645 11.9207C19.7645 10.2393 19.1066 8.64396 17.9094 7.43123L16.9056 8.4209ZM19.9016 5.43185L20.8997 4.43372C22.9002 6.43422 24 9.09403 24 11.9219C24 14.7497 22.9002 17.4081 20.8997 19.4086L19.9016 18.4104C21.6353 16.6782 22.5882 14.3727 22.5882 11.9219C22.5882 9.46957 21.6353 7.16553 19.9016 5.43185Z", fill: "currentColor" }) }), e1 = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.691 3.99987V10.5281L0 4.00655V20.2596L10.691 13.7367V20.2663L23.9987 12.1331L10.691 3.99987Z", fill: "currentColor" }) }), t1 = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), n1 = "_feedback-overlay_v4lbu_1", o1 = "_feedback-message_v4lbu_14", i1 = "_feedback-icon_v4lbu_30", s1 = "_feedback-icon-animation_v4lbu_1", L = {
|
|
994
994
|
"feedback-overlay": "_feedback-overlay_v4lbu_1",
|
|
995
995
|
feedbackOverlay: n1,
|
|
996
996
|
"feedback-message": "_feedback-message_v4lbu_14",
|
|
@@ -998,14 +998,14 @@ const be = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0
|
|
|
998
998
|
"feedback-icon": "_feedback-icon_v4lbu_30",
|
|
999
999
|
feedbackIcon: i1,
|
|
1000
1000
|
"feedback-icon-animation": "_feedback-icon-animation_v4lbu_1",
|
|
1001
|
-
feedbackIconAnimation:
|
|
1001
|
+
feedbackIconAnimation: s1
|
|
1002
1002
|
};
|
|
1003
|
-
function
|
|
1003
|
+
function a1() {
|
|
1004
1004
|
var o;
|
|
1005
|
-
const e =
|
|
1005
|
+
const e = Te();
|
|
1006
1006
|
switch ((o = e.lastKeyboardAction) == null ? void 0 : o.action) {
|
|
1007
1007
|
case "togglePaused":
|
|
1008
|
-
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(
|
|
1008
|
+
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(ge, {}) : /* @__PURE__ */ t(ve, {}) });
|
|
1009
1009
|
case "toggleCaptions":
|
|
1010
1010
|
case "nextCaptionLanguage":
|
|
1011
1011
|
case "previousCaptionLanguage":
|
|
@@ -1026,7 +1026,7 @@ function s1() {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
function c1() {
|
|
1028
1028
|
var i;
|
|
1029
|
-
const { t: e } =
|
|
1029
|
+
const { t: e } = C(), n = Te();
|
|
1030
1030
|
switch ((i = n.lastKeyboardAction) == null ? void 0 : i.action) {
|
|
1031
1031
|
case "toggleCaptions":
|
|
1032
1032
|
case "nextCaptionLanguage":
|
|
@@ -1052,7 +1052,7 @@ function c1() {
|
|
|
1052
1052
|
return null;
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
|
-
const l1 = $e(
|
|
1055
|
+
const l1 = $e(a1, 500), r1 = $e(c1, 1e3);
|
|
1056
1056
|
function Qe() {
|
|
1057
1057
|
return /* @__PURE__ */ c("div", { className: L.feedbackOverlay, children: [
|
|
1058
1058
|
/* @__PURE__ */ t(l1, {}),
|
|
@@ -1064,13 +1064,13 @@ const u1 = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0
|
|
|
1064
1064
|
fullScreenButton: m1
|
|
1065
1065
|
};
|
|
1066
1066
|
function p1() {
|
|
1067
|
-
const e =
|
|
1067
|
+
const e = f("fullscreen"), n = F(), o = g(), i = M(), { t: s } = C();
|
|
1068
1068
|
return i.hideFullScreen ? null : /* @__PURE__ */ t(
|
|
1069
1069
|
"button",
|
|
1070
1070
|
{
|
|
1071
1071
|
role: "button",
|
|
1072
1072
|
type: "button",
|
|
1073
|
-
"aria-label":
|
|
1073
|
+
"aria-label": s(e ? "EXIT_FULLSCREEN" : "ENTER_FULLSCREEN"),
|
|
1074
1074
|
tabIndex: o.state.interactionsDisabled ? -1 : 0,
|
|
1075
1075
|
className: `controls-button ${h1.fullScreenButton}`,
|
|
1076
1076
|
onClick: () => {
|
|
@@ -1080,16 +1080,16 @@ function p1() {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
);
|
|
1082
1082
|
}
|
|
1083
|
-
const _1 = "_gestures-container_1fn3b_1",
|
|
1083
|
+
const _1 = "_gestures-container_1fn3b_1", f1 = "_gesture_1fn3b_1", Ne = {
|
|
1084
1084
|
"gestures-container": "_gestures-container_1fn3b_1",
|
|
1085
1085
|
gesturesContainer: _1,
|
|
1086
|
-
gesture:
|
|
1086
|
+
gesture: f1
|
|
1087
1087
|
};
|
|
1088
|
-
function
|
|
1088
|
+
function C1() {
|
|
1089
1089
|
const e = oe(), n = () => {
|
|
1090
1090
|
e.togglePaused();
|
|
1091
1091
|
};
|
|
1092
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1092
|
+
return /* @__PURE__ */ t("div", { className: Ne.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: Ne.gesture, onClick: n }) });
|
|
1093
1093
|
}
|
|
1094
1094
|
const We = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }), b1 = "_controls-overlay_poi8b_1", g1 = "_keyboard-shortcuts-overlay_poi8b_11", v1 = "_screen-reader-content_poi8b_75", w1 = "_controls-button_poi8b_89", y1 = "_keyboard-shortcuts-button_poi8b_101", k1 = "_kebab-menu-button_poi8b_110", L1 = "_kebab-menu_poi8b_110", x1 = "_kebab-menu-item_poi8b_139", M1 = "_close-button_poi8b_178", P1 = "_arrow_poi8b_192", I = {
|
|
1095
1095
|
"controls-overlay": "_controls-overlay_poi8b_1",
|
|
@@ -1113,7 +1113,7 @@ const We = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0
|
|
|
1113
1113
|
arrow: P1
|
|
1114
1114
|
};
|
|
1115
1115
|
function N1({ onClose: e }) {
|
|
1116
|
-
const { t: n } =
|
|
1116
|
+
const { t: n } = C();
|
|
1117
1117
|
Nn(e);
|
|
1118
1118
|
const o = (i) => {
|
|
1119
1119
|
i && i.focus();
|
|
@@ -1235,9 +1235,9 @@ const I1 = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0
|
|
|
1235
1235
|
delete: /* @__PURE__ */ t(T1, {})
|
|
1236
1236
|
}, R1 = (e) => typeof e != "string";
|
|
1237
1237
|
function A1() {
|
|
1238
|
-
const [e, n] = x(!1), [o, i] = x(null),
|
|
1239
|
-
n(!e),
|
|
1240
|
-
}, r = G(null), u = G([]), { refs:
|
|
1238
|
+
const [e, n] = x(!1), [o, i] = x(null), s = g(), a = M(), l = () => {
|
|
1239
|
+
n(!e), s.setGlobalKeysDisabled(!e);
|
|
1240
|
+
}, r = G(null), u = G([]), { refs: m, floatingStyles: v, context: y } = ue({
|
|
1241
1241
|
open: e,
|
|
1242
1242
|
onOpenChange: l,
|
|
1243
1243
|
whileElementsMounted: de,
|
|
@@ -1254,41 +1254,41 @@ function A1() {
|
|
|
1254
1254
|
listRef: u,
|
|
1255
1255
|
activeIndex: o,
|
|
1256
1256
|
onNavigate: i
|
|
1257
|
-
}), w = pe(y), { getReferenceProps: N, getFloatingProps:
|
|
1257
|
+
}), w = pe(y), { getReferenceProps: N, getFloatingProps: h, getItemProps: b } = _e(
|
|
1258
1258
|
[w, k]
|
|
1259
|
-
), { t: P } =
|
|
1260
|
-
return
|
|
1259
|
+
), { t: P } = C();
|
|
1260
|
+
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ c(Q, { children: [
|
|
1261
1261
|
/* @__PURE__ */ t(
|
|
1262
1262
|
"button",
|
|
1263
1263
|
{
|
|
1264
1264
|
"aria-label": P("KEBAB_MENU"),
|
|
1265
1265
|
type: "button",
|
|
1266
1266
|
className: `${I.controlsButton} ${I.kebabMenuButton}`,
|
|
1267
|
-
tabIndex:
|
|
1268
|
-
ref:
|
|
1267
|
+
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
1268
|
+
ref: m.setReference,
|
|
1269
1269
|
...N({
|
|
1270
1270
|
onClick: () => l()
|
|
1271
1271
|
}),
|
|
1272
1272
|
children: /* @__PURE__ */ t(I1, {})
|
|
1273
1273
|
}
|
|
1274
1274
|
),
|
|
1275
|
-
e && /* @__PURE__ */ t(
|
|
1275
|
+
e && /* @__PURE__ */ t(fe, { context: y, modal: !1, children: /* @__PURE__ */ c(
|
|
1276
1276
|
"div",
|
|
1277
1277
|
{
|
|
1278
|
-
ref:
|
|
1278
|
+
ref: m.setFloating,
|
|
1279
1279
|
style: v,
|
|
1280
1280
|
className: I.kebabMenu,
|
|
1281
|
-
...
|
|
1281
|
+
...h(),
|
|
1282
1282
|
children: [
|
|
1283
|
-
|
|
1283
|
+
a.kebabMenuElements.map(
|
|
1284
1284
|
({ id: T, text: Z, icon: S, onClick: Y }, X) => /* @__PURE__ */ c(
|
|
1285
1285
|
"button",
|
|
1286
1286
|
{
|
|
1287
1287
|
tabIndex: o === X ? 0 : -1,
|
|
1288
1288
|
type: "button",
|
|
1289
1289
|
className: I.kebabMenuItem,
|
|
1290
|
-
ref: (
|
|
1291
|
-
u.current[X] =
|
|
1290
|
+
ref: (se) => {
|
|
1291
|
+
u.current[X] = se;
|
|
1292
1292
|
},
|
|
1293
1293
|
...b({
|
|
1294
1294
|
onClick: () => {
|
|
@@ -1318,11 +1318,11 @@ function A1() {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
const B1 = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.76472 10.5294C5.05696 10.5294 5.29413 10.2922 5.29413 9.99999V8.94117C5.29413 8.64893 5.05696 8.41175 4.76472 8.41175H3.7059C3.41366 8.41175 3.17649 8.64893 3.17649 8.94117V9.99999C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472ZM11.1177 10.5294C11.4099 10.5294 11.6471 10.2922 11.6471 9.99999V8.94117C11.6471 8.64893 11.4099 8.41175 11.1177 8.41175H10.0588C9.76661 8.41175 9.52944 8.64893 9.52944 8.94117V9.99999C9.52944 10.2922 9.76661 10.5294 10.0588 10.5294H11.1177ZM14.8235 9.99999C14.8235 10.2922 14.5864 10.5294 14.2941 10.5294H13.2353C12.9431 10.5294 12.7059 10.2922 12.7059 9.99999V8.94117C12.7059 8.64893 12.9431 8.41175 13.2353 8.41175H14.2941C14.5864 8.41175 14.8235 8.64893 14.8235 8.94117V9.99999ZM14.8235 13.1765C14.8235 13.4687 14.5864 13.7059 14.2941 13.7059H13.2353C12.9431 13.7059 12.7059 13.4687 12.7059 13.1765V12.1176C12.7059 11.8254 12.9431 11.5882 13.2353 11.5882H14.2941C14.5864 11.5882 14.8235 11.8254 14.8235 12.1176V13.1765ZM11.6471 13.1765C11.6471 13.4687 11.4099 13.7059 11.1177 13.7059H6.88239C6.59015 13.7059 6.35297 13.4687 6.35297 13.1765V12.1176C6.35297 11.8254 6.59015 11.5882 6.88239 11.5882H11.1177C11.4099 11.5882 11.6471 11.8254 11.6471 12.1176V13.1765ZM5.29413 13.1765C5.29413 13.4687 5.05696 13.7059 4.76472 13.7059H3.7059C3.41366 13.7059 3.17649 13.4687 3.17649 13.1765V12.1176C3.17649 11.8254 3.41366 11.5882 3.7059 11.5882H4.76472C5.05696 11.5882 5.29413 11.8254 5.29413 12.1176V13.1765ZM6.88238 8.41175C6.59015 8.41175 6.35297 8.64893 6.35297 8.94117V9.99999C6.35297 10.2922 6.59015 10.5294 6.88238 10.5294H7.94121C8.23344 10.5294 8.47062 10.2922 8.47062 9.99999V8.94117C8.47062 8.64893 8.23344 8.41175 7.94121 8.41175H6.88238ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529Z", fill: "currentColor" }) });
|
|
1320
1320
|
function O1() {
|
|
1321
|
-
const [e, n] = x(!1), [o, i] = x(!1), [
|
|
1322
|
-
n(!0), l.disableInteractions(), r && (
|
|
1321
|
+
const [e, n] = x(!1), [o, i] = x(!1), [s, a] = x(!1), l = g(), r = f("playing"), u = oe(), { t: m } = C(), v = _(() => {
|
|
1322
|
+
n(!0), l.disableInteractions(), r && (a(!0), u.pause());
|
|
1323
1323
|
}, [r, u, l]), y = _(() => {
|
|
1324
|
-
n(!1), i(!0), l.enableInteractions(),
|
|
1325
|
-
}, [
|
|
1324
|
+
n(!1), i(!0), l.enableInteractions(), s && (a(!1), u.play());
|
|
1325
|
+
}, [s, u, l]), k = _(
|
|
1326
1326
|
(w) => o && (w == null ? void 0 : w.focus()),
|
|
1327
1327
|
[o]
|
|
1328
1328
|
);
|
|
@@ -1331,7 +1331,7 @@ function O1() {
|
|
|
1331
1331
|
"button",
|
|
1332
1332
|
{
|
|
1333
1333
|
ref: k,
|
|
1334
|
-
"aria-label":
|
|
1334
|
+
"aria-label": m("KEYBOARD_SHORTCUTS"),
|
|
1335
1335
|
type: "button",
|
|
1336
1336
|
className: `${I.controlsButton} ${I.keyboardShortcutsButton}`,
|
|
1337
1337
|
onClick: v,
|
|
@@ -1347,7 +1347,7 @@ const F1 = "_play-pause-button_1834v_1", Z1 = {
|
|
|
1347
1347
|
playPauseButton: F1
|
|
1348
1348
|
};
|
|
1349
1349
|
function z1() {
|
|
1350
|
-
const e = F(), n = g(), o =
|
|
1350
|
+
const e = F(), n = g(), o = f("paused"), { t: i } = C();
|
|
1351
1351
|
return e ? /* @__PURE__ */ t(
|
|
1352
1352
|
"button",
|
|
1353
1353
|
{
|
|
@@ -1359,7 +1359,7 @@ function z1() {
|
|
|
1359
1359
|
onClick: () => {
|
|
1360
1360
|
e.paused ? e.remoteControl.play() : e.remoteControl.pause();
|
|
1361
1361
|
},
|
|
1362
|
-
children: o ? /* @__PURE__ */ t(
|
|
1362
|
+
children: o ? /* @__PURE__ */ t(ve, { className: "controls-button-icon" }) : /* @__PURE__ */ t(ge, { className: "controls-button-icon" })
|
|
1363
1363
|
}
|
|
1364
1364
|
) : null;
|
|
1365
1365
|
}
|
|
@@ -1367,7 +1367,7 @@ const K1 = "_poster_195hi_1", D1 = {
|
|
|
1367
1367
|
poster: K1
|
|
1368
1368
|
};
|
|
1369
1369
|
function $1({ src: e }) {
|
|
1370
|
-
const n =
|
|
1370
|
+
const n = f("source");
|
|
1371
1371
|
return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(dt, { src: e, className: D1.poster });
|
|
1372
1372
|
}
|
|
1373
1373
|
const U1 = "_small-layout-overlay_1pd49_1", q1 = "_small-layout-button_1pd49_14", G1 = "_small-layout-icon-play_1pd49_24", Q1 = "_small-layout-icon-pause_1pd49_30", W1 = "_full-screen-close-icon_1pd49_36", j1 = "_fade-out_1pd49_1", U = {
|
|
@@ -1385,10 +1385,10 @@ const U1 = "_small-layout-overlay_1pd49_1", q1 = "_small-layout-button_1pd49_14"
|
|
|
1385
1385
|
fadeOut: j1
|
|
1386
1386
|
};
|
|
1387
1387
|
function Y1() {
|
|
1388
|
-
const e =
|
|
1388
|
+
const e = f("paused");
|
|
1389
1389
|
return /* @__PURE__ */ c("div", { className: U.smallLayoutOverlay, children: [
|
|
1390
1390
|
/* @__PURE__ */ t(mt, { className: U.fullScreenCloseIcon, children: /* @__PURE__ */ t(We, {}) }),
|
|
1391
|
-
/* @__PURE__ */ t("i", { className: U.smallLayoutButton, children: e ? /* @__PURE__ */ t(
|
|
1391
|
+
/* @__PURE__ */ t("i", { className: U.smallLayoutButton, children: e ? /* @__PURE__ */ t(ve, { className: U.smallLayoutIconPlay }) : /* @__PURE__ */ t(ge, { className: U.smallLayoutIconPause }) })
|
|
1392
1392
|
] });
|
|
1393
1393
|
}
|
|
1394
1394
|
const X1 = "_time-indicator_1rlpb_1", J1 = {
|
|
@@ -1397,52 +1397,52 @@ const X1 = "_time-indicator_1rlpb_1", J1 = {
|
|
|
1397
1397
|
};
|
|
1398
1398
|
function eo() {
|
|
1399
1399
|
return /* @__PURE__ */ c("div", { className: J1.timeIndicator, children: [
|
|
1400
|
-
/* @__PURE__ */ t(
|
|
1400
|
+
/* @__PURE__ */ t(xe, { type: "current" }),
|
|
1401
1401
|
"/",
|
|
1402
|
-
/* @__PURE__ */ t(
|
|
1402
|
+
/* @__PURE__ */ t(xe, { type: "duration" })
|
|
1403
1403
|
] });
|
|
1404
1404
|
}
|
|
1405
|
-
const to = "_comment-
|
|
1406
|
-
"comment-markers": "_comment-
|
|
1405
|
+
const to = "_comment-markers_fno42_1", no = "_comment-marker_fno42_1", oo = "_timeline-wrapper_fno42_27", io = "_track_fno42_41", so = "_thumb_fno42_52", ao = "_root_fno42_66", co = "_track-inner_fno42_96", lo = "_progress_fno42_102", ro = "_track-fill_fno42_108", uo = "_pins_fno42_125", mo = "_pin-button_fno42_138", ho = "_annotation-pin_fno42_158", po = "_quiz-pin_fno42_163", _o = "_annotation-pin-child_fno42_168", fo = "_quiz-pin-child_fno42_172", Co = "_interactive-pin-container_fno42_177", bo = "_interactive-pin-wrapper_fno42_187", go = "_interactive-pin-icon_fno42_193", vo = "_interactive-pin_fno42_177", wo = "_bg_fno42_207", yo = "_symbol_fno42_211", ko = "_interactive-pin-button_fno42_216", Lo = "_interactive-pin-menu_fno42_236", xo = "_interactive-pin-menu-item_fno42_250", Mo = "_arrow_fno42_271", d = {
|
|
1406
|
+
"comment-markers": "_comment-markers_fno42_1",
|
|
1407
1407
|
commentMarkers: to,
|
|
1408
|
-
"comment-marker": "_comment-
|
|
1408
|
+
"comment-marker": "_comment-marker_fno42_1",
|
|
1409
1409
|
commentMarker: no,
|
|
1410
|
-
"timeline-wrapper": "_timeline-
|
|
1410
|
+
"timeline-wrapper": "_timeline-wrapper_fno42_27",
|
|
1411
1411
|
timelineWrapper: oo,
|
|
1412
1412
|
track: io,
|
|
1413
|
-
thumb:
|
|
1414
|
-
root:
|
|
1415
|
-
"track-inner": "_track-
|
|
1413
|
+
thumb: so,
|
|
1414
|
+
root: ao,
|
|
1415
|
+
"track-inner": "_track-inner_fno42_96",
|
|
1416
1416
|
trackInner: co,
|
|
1417
1417
|
progress: lo,
|
|
1418
|
-
"track-fill": "_track-
|
|
1418
|
+
"track-fill": "_track-fill_fno42_108",
|
|
1419
1419
|
trackFill: ro,
|
|
1420
1420
|
pins: uo,
|
|
1421
|
-
"pin-button": "_pin-
|
|
1421
|
+
"pin-button": "_pin-button_fno42_138",
|
|
1422
1422
|
pinButton: mo,
|
|
1423
|
-
"annotation-pin": "_annotation-
|
|
1423
|
+
"annotation-pin": "_annotation-pin_fno42_158",
|
|
1424
1424
|
annotationPin: ho,
|
|
1425
|
-
"quiz-pin": "_quiz-
|
|
1425
|
+
"quiz-pin": "_quiz-pin_fno42_163",
|
|
1426
1426
|
quizPin: po,
|
|
1427
|
-
"annotation-pin-child": "_annotation-pin-
|
|
1427
|
+
"annotation-pin-child": "_annotation-pin-child_fno42_168",
|
|
1428
1428
|
annotationPinChild: _o,
|
|
1429
|
-
"quiz-pin-child": "_quiz-pin-
|
|
1430
|
-
quizPinChild:
|
|
1431
|
-
"interactive-pin-container": "_interactive-pin-
|
|
1432
|
-
interactivePinContainer:
|
|
1433
|
-
"interactive-pin-wrapper": "_interactive-pin-
|
|
1429
|
+
"quiz-pin-child": "_quiz-pin-child_fno42_172",
|
|
1430
|
+
quizPinChild: fo,
|
|
1431
|
+
"interactive-pin-container": "_interactive-pin-container_fno42_177",
|
|
1432
|
+
interactivePinContainer: Co,
|
|
1433
|
+
"interactive-pin-wrapper": "_interactive-pin-wrapper_fno42_187",
|
|
1434
1434
|
interactivePinWrapper: bo,
|
|
1435
|
-
"interactive-pin-icon": "_interactive-pin-
|
|
1435
|
+
"interactive-pin-icon": "_interactive-pin-icon_fno42_193",
|
|
1436
1436
|
interactivePinIcon: go,
|
|
1437
|
-
"interactive-pin": "_interactive-
|
|
1437
|
+
"interactive-pin": "_interactive-pin_fno42_177",
|
|
1438
1438
|
interactivePin: vo,
|
|
1439
1439
|
bg: wo,
|
|
1440
1440
|
symbol: yo,
|
|
1441
|
-
"interactive-pin-button": "_interactive-pin-
|
|
1441
|
+
"interactive-pin-button": "_interactive-pin-button_fno42_216",
|
|
1442
1442
|
interactivePinButton: ko,
|
|
1443
|
-
"interactive-pin-menu": "_interactive-pin-
|
|
1443
|
+
"interactive-pin-menu": "_interactive-pin-menu_fno42_236",
|
|
1444
1444
|
interactivePinMenu: Lo,
|
|
1445
|
-
"interactive-pin-menu-item": "_interactive-pin-menu-
|
|
1445
|
+
"interactive-pin-menu-item": "_interactive-pin-menu-item_fno42_250",
|
|
1446
1446
|
interactivePinMenuItem: xo,
|
|
1447
1447
|
arrow: Mo
|
|
1448
1448
|
}, Po = {
|
|
@@ -1455,12 +1455,12 @@ function je({
|
|
|
1455
1455
|
children: o,
|
|
1456
1456
|
onClick: i
|
|
1457
1457
|
}) {
|
|
1458
|
-
const
|
|
1458
|
+
const s = g();
|
|
1459
1459
|
return /* @__PURE__ */ t(
|
|
1460
1460
|
"button",
|
|
1461
1461
|
{
|
|
1462
1462
|
type: "button",
|
|
1463
|
-
tabIndex:
|
|
1463
|
+
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
1464
1464
|
className: d.pinButton,
|
|
1465
1465
|
style: { left: `${n}%` },
|
|
1466
1466
|
onClick: i,
|
|
@@ -1519,33 +1519,33 @@ function Ho(e, n) {
|
|
|
1519
1519
|
}
|
|
1520
1520
|
function Vo(e, n) {
|
|
1521
1521
|
const o = /* @__PURE__ */ new Map();
|
|
1522
|
-
e.forEach((
|
|
1522
|
+
e.forEach((a) => {
|
|
1523
1523
|
var r;
|
|
1524
|
-
const l =
|
|
1525
|
-
o.has(l) || o.set(l, []), (r = o.get(l)) == null || r.push(
|
|
1524
|
+
const l = a.time;
|
|
1525
|
+
o.has(l) || o.set(l, []), (r = o.get(l)) == null || r.push(a);
|
|
1526
1526
|
});
|
|
1527
1527
|
const i = [];
|
|
1528
|
-
let
|
|
1529
|
-
return o.forEach((
|
|
1528
|
+
let s = 0;
|
|
1529
|
+
return o.forEach((a, l) => {
|
|
1530
1530
|
i.push({
|
|
1531
|
-
id:
|
|
1531
|
+
id: a.map((r) => r.id).join("-"),
|
|
1532
1532
|
time: l,
|
|
1533
1533
|
type: "quiz",
|
|
1534
|
-
ordinal:
|
|
1535
|
-
onClick: () => n(
|
|
1536
|
-
multiple:
|
|
1537
|
-
}),
|
|
1534
|
+
ordinal: s + 1,
|
|
1535
|
+
onClick: () => n(a),
|
|
1536
|
+
multiple: a.length > 1
|
|
1537
|
+
}), s++;
|
|
1538
1538
|
}), i;
|
|
1539
1539
|
}
|
|
1540
1540
|
function So(e, n, o, i) {
|
|
1541
1541
|
switch (e.type) {
|
|
1542
1542
|
case "annotation": {
|
|
1543
|
-
const
|
|
1543
|
+
const s = () => i ? e.onClick() : o.seek(e.time);
|
|
1544
1544
|
return /* @__PURE__ */ t(
|
|
1545
1545
|
No,
|
|
1546
1546
|
{
|
|
1547
1547
|
position: e.time / n * 100,
|
|
1548
|
-
onClick:
|
|
1548
|
+
onClick: s
|
|
1549
1549
|
},
|
|
1550
1550
|
e.id
|
|
1551
1551
|
);
|
|
@@ -1566,17 +1566,17 @@ function So(e, n, o, i) {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
1568
|
function To() {
|
|
1569
|
-
const e = oe(), n =
|
|
1569
|
+
const e = oe(), n = f("duration"), o = M(), i = E(() => [
|
|
1570
1570
|
...Ho(
|
|
1571
1571
|
o.annotations,
|
|
1572
1572
|
o.onAnnotationClick
|
|
1573
1573
|
),
|
|
1574
1574
|
...Vo(o.quizMarkers, o.onQuizMarkerClick)
|
|
1575
|
-
].sort((
|
|
1575
|
+
].sort((a, l) => a.time - l.time).map((a) => So(a, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
|
|
1576
1576
|
return /* @__PURE__ */ t("div", { className: d.pins, children: i });
|
|
1577
1577
|
}
|
|
1578
1578
|
function Eo() {
|
|
1579
|
-
const e =
|
|
1579
|
+
const e = f("duration"), n = M(), o = g();
|
|
1580
1580
|
return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: d.commentMarkers, children: n.comments.map((i) => /* @__PURE__ */ t(
|
|
1581
1581
|
"span",
|
|
1582
1582
|
{
|
|
@@ -1589,11 +1589,11 @@ function Eo() {
|
|
|
1589
1589
|
)) }) : null;
|
|
1590
1590
|
}
|
|
1591
1591
|
function Ro({ currentTime: e, position: n }) {
|
|
1592
|
-
const [o, i] = x(!1),
|
|
1593
|
-
|
|
1594
|
-
|
|
1592
|
+
const [o, i] = x(!1), s = M(), a = _(() => s.interactiveMenuElements.length > 0 ? i((w) => !w) : s.onInteractivePinClick(e), [
|
|
1593
|
+
s.interactiveMenuElements,
|
|
1594
|
+
s.onInteractivePinClick,
|
|
1595
1595
|
e
|
|
1596
|
-
]), l = G(null), { refs: r, floatingStyles: u, context:
|
|
1596
|
+
]), l = G(null), { refs: r, floatingStyles: u, context: m } = ue({
|
|
1597
1597
|
open: o,
|
|
1598
1598
|
onOpenChange: i,
|
|
1599
1599
|
whileElementsMounted: de,
|
|
@@ -1606,13 +1606,13 @@ function Ro({ currentTime: e, position: n }) {
|
|
|
1606
1606
|
element: l
|
|
1607
1607
|
})
|
|
1608
1608
|
]
|
|
1609
|
-
}), v = pe(
|
|
1609
|
+
}), v = pe(m), { getReferenceProps: y, getFloatingProps: k } = _e([v]);
|
|
1610
1610
|
return /* @__PURE__ */ c(Q, { children: [
|
|
1611
1611
|
/* @__PURE__ */ t(
|
|
1612
1612
|
"button",
|
|
1613
1613
|
{
|
|
1614
1614
|
type: "button",
|
|
1615
|
-
onClick:
|
|
1615
|
+
onClick: a,
|
|
1616
1616
|
className: d.interactivePinButton,
|
|
1617
1617
|
ref: r.setReference,
|
|
1618
1618
|
style: { left: `${n}%` },
|
|
@@ -1657,76 +1657,86 @@ function Ro({ currentTime: e, position: n }) {
|
|
|
1657
1657
|
)
|
|
1658
1658
|
}
|
|
1659
1659
|
),
|
|
1660
|
-
o && /* @__PURE__ */
|
|
1661
|
-
|
|
1660
|
+
o && /* @__PURE__ */ t(
|
|
1661
|
+
fe,
|
|
1662
1662
|
{
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
/* @__PURE__ */ t(
|
|
1678
|
-
"svg",
|
|
1663
|
+
order: ["floating", "content"],
|
|
1664
|
+
context: m,
|
|
1665
|
+
modal: !0,
|
|
1666
|
+
children: /* @__PURE__ */ c(
|
|
1667
|
+
"div",
|
|
1668
|
+
{
|
|
1669
|
+
ref: r.setFloating,
|
|
1670
|
+
style: u,
|
|
1671
|
+
className: d.interactivePinMenu,
|
|
1672
|
+
...k(),
|
|
1673
|
+
children: [
|
|
1674
|
+
s.interactiveMenuElements.map(
|
|
1675
|
+
({ id: w, text: N, onClick: h }) => /* @__PURE__ */ c(
|
|
1676
|
+
"button",
|
|
1679
1677
|
{
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
children:
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1678
|
+
type: "button",
|
|
1679
|
+
className: d.interactivePinMenuItem,
|
|
1680
|
+
onClick: () => {
|
|
1681
|
+
h(w, e), i(!1);
|
|
1682
|
+
},
|
|
1683
|
+
children: [
|
|
1684
|
+
/* @__PURE__ */ t(
|
|
1685
|
+
"svg",
|
|
1686
|
+
{
|
|
1687
|
+
width: "16",
|
|
1688
|
+
height: "16",
|
|
1689
|
+
viewBox: "0 0 16 16",
|
|
1690
|
+
fill: "none",
|
|
1691
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1692
|
+
children: /* @__PURE__ */ t(
|
|
1693
|
+
"path",
|
|
1694
|
+
{
|
|
1695
|
+
fillRule: "evenodd",
|
|
1696
|
+
clipRule: "evenodd",
|
|
1697
|
+
d: "M7.33339 7.33339H1.77783V8.66672H7.33339V14.2223H8.66672V8.66672H14.2223V7.33339H8.66672V1.77783H7.33339V7.33339Z",
|
|
1698
|
+
fill: "#273540"
|
|
1699
|
+
}
|
|
1700
|
+
)
|
|
1701
|
+
}
|
|
1702
|
+
),
|
|
1703
|
+
N
|
|
1704
|
+
]
|
|
1705
|
+
},
|
|
1706
|
+
w
|
|
1707
|
+
)
|
|
1708
|
+
),
|
|
1709
|
+
/* @__PURE__ */ t(
|
|
1710
|
+
Ce,
|
|
1711
|
+
{
|
|
1712
|
+
ref: l,
|
|
1713
|
+
context: m,
|
|
1714
|
+
className: d.arrow
|
|
1715
|
+
}
|
|
1716
|
+
)
|
|
1717
|
+
]
|
|
1718
|
+
}
|
|
1719
|
+
)
|
|
1710
1720
|
}
|
|
1711
1721
|
)
|
|
1712
1722
|
] });
|
|
1713
1723
|
}
|
|
1714
1724
|
function Ao() {
|
|
1715
|
-
const e =
|
|
1725
|
+
const e = f("duration"), n = f("currentTime"), o = n / e * 100, { disableInteractivePinRanges: i } = M();
|
|
1716
1726
|
return i.some(
|
|
1717
|
-
([
|
|
1727
|
+
([a, l]) => n >= a && n <= l
|
|
1718
1728
|
) ? null : /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(Ro, { currentTime: n, position: o }) }) });
|
|
1719
1729
|
}
|
|
1720
1730
|
function Bo() {
|
|
1721
|
-
const e =
|
|
1731
|
+
const e = f("paused"), n = g();
|
|
1722
1732
|
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(Ao, {}) : null;
|
|
1723
1733
|
}
|
|
1724
1734
|
const Oo = `${d.progress} ${d.trackInner}`, Fo = `${d.trackFill} ${d.trackInner}`;
|
|
1725
|
-
function
|
|
1726
|
-
const n = g(), { hasAnnotations: o, hasQuizmarkers: i, interactive:
|
|
1727
|
-
return /* @__PURE__ */ c("div", { className:
|
|
1728
|
-
|
|
1729
|
-
|
|
1735
|
+
function Ie({ className: e }) {
|
|
1736
|
+
const n = g(), { hasAnnotations: o, hasQuizmarkers: i, interactive: s } = M(), a = e ? `${d.timelineWrapper} ${e}` : d.timelineWrapper;
|
|
1737
|
+
return /* @__PURE__ */ c("div", { className: a, children: [
|
|
1738
|
+
s ? /* @__PURE__ */ t(Bo, {}) : null,
|
|
1739
|
+
s || o || i ? /* @__PURE__ */ t(To, {}) : null,
|
|
1730
1740
|
/* @__PURE__ */ t(Eo, {}),
|
|
1731
1741
|
/* @__PURE__ */ c(
|
|
1732
1742
|
$.Root,
|
|
@@ -1753,7 +1763,7 @@ const Zo = "_wrapper_12cb0_1", zo = "_track_12cb0_6", Ko = "_thumb_12cb0_18", Do
|
|
|
1753
1763
|
root: $o
|
|
1754
1764
|
};
|
|
1755
1765
|
function Uo() {
|
|
1756
|
-
const e = F(), n =
|
|
1766
|
+
const e = F(), n = f("volume"), o = f("muted"), i = g(), s = o || n === 0, { t: a } = C();
|
|
1757
1767
|
return /* @__PURE__ */ c("div", { className: q.wrapper, children: [
|
|
1758
1768
|
/* @__PURE__ */ t(
|
|
1759
1769
|
"button",
|
|
@@ -1762,11 +1772,11 @@ function Uo() {
|
|
|
1762
1772
|
type: "button",
|
|
1763
1773
|
tabIndex: i.state.interactionsDisabled ? -1 : 0,
|
|
1764
1774
|
className: "controls-button",
|
|
1765
|
-
"aria-label": s
|
|
1775
|
+
"aria-label": a(s ? "VOLUME" : "MUTE"),
|
|
1766
1776
|
onClick: () => {
|
|
1767
|
-
|
|
1777
|
+
s ? e == null || e.remoteControl.unmute() : e == null || e.remoteControl.mute();
|
|
1768
1778
|
},
|
|
1769
|
-
children:
|
|
1779
|
+
children: s ? /* @__PURE__ */ t(Ue, { className: "controls-button-icon" }) : n < 0.5 ? /* @__PURE__ */ t(qe, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Ge, { className: "controls-button-icon" })
|
|
1770
1780
|
}
|
|
1771
1781
|
),
|
|
1772
1782
|
/* @__PURE__ */ c(
|
|
@@ -1782,7 +1792,7 @@ function Uo() {
|
|
|
1782
1792
|
)
|
|
1783
1793
|
] });
|
|
1784
1794
|
}
|
|
1785
|
-
const
|
|
1795
|
+
const He = {
|
|
1786
1796
|
togglePaused: {
|
|
1787
1797
|
keys: ["Space", "Enter", "k"],
|
|
1788
1798
|
onKeyUp({ event: e, player: n, remote: o }) {
|
|
@@ -1803,9 +1813,9 @@ const Ie = {
|
|
|
1803
1813
|
nextCaptionLanguage: {
|
|
1804
1814
|
keys: ["v"],
|
|
1805
1815
|
onKeyUp({ event: e, player: n, remote: o }) {
|
|
1806
|
-
const i = n.textTracks.selectedIndex,
|
|
1816
|
+
const i = n.textTracks.selectedIndex, s = i + 1;
|
|
1807
1817
|
o.changeTextTrackMode(i, "hidden"), o.changeTextTrackMode(
|
|
1808
|
-
|
|
1818
|
+
s >= n.textTracks.length ? 0 : s,
|
|
1809
1819
|
"showing"
|
|
1810
1820
|
), n.$state.lastKeyboardAction.set({
|
|
1811
1821
|
action: "nextCaptionLanguage",
|
|
@@ -1816,9 +1826,9 @@ const Ie = {
|
|
|
1816
1826
|
previousCaptionLanguage: {
|
|
1817
1827
|
keys: ["x"],
|
|
1818
1828
|
onKeyUp({ event: e, player: n, remote: o }) {
|
|
1819
|
-
const i = n.textTracks.selectedIndex,
|
|
1829
|
+
const i = n.textTracks.selectedIndex, s = i - 1;
|
|
1820
1830
|
o.changeTextTrackMode(i, "hidden"), o.changeTextTrackMode(
|
|
1821
|
-
|
|
1831
|
+
s < 0 ? n.textTracks.length - 1 : s,
|
|
1822
1832
|
"showing"
|
|
1823
1833
|
), n.$state.lastKeyboardAction.set({
|
|
1824
1834
|
action: "previousCaptionLanguage",
|
|
@@ -1829,8 +1839,8 @@ const Ie = {
|
|
|
1829
1839
|
decreasePlaybackRate: {
|
|
1830
1840
|
keys: ["a"],
|
|
1831
1841
|
onKeyUp({ event: e, player: n, remote: o }) {
|
|
1832
|
-
const
|
|
1833
|
-
|
|
1842
|
+
const s = K.indexOf(n.playbackRate) - 1;
|
|
1843
|
+
s >= 0 && (o.changePlaybackRate(K[s]), n.$state.lastKeyboardAction.set({
|
|
1834
1844
|
action: "decreasePlaybackRate",
|
|
1835
1845
|
event: e
|
|
1836
1846
|
}));
|
|
@@ -1839,8 +1849,8 @@ const Ie = {
|
|
|
1839
1849
|
increasePlaybackRate: {
|
|
1840
1850
|
keys: ["d"],
|
|
1841
1851
|
onKeyUp({ event: e, player: n, remote: o }) {
|
|
1842
|
-
const
|
|
1843
|
-
|
|
1852
|
+
const s = K.indexOf(n.playbackRate) + 1;
|
|
1853
|
+
s < K.length && (o.changePlaybackRate(K[s]), n.$state.lastKeyboardAction.set({
|
|
1844
1854
|
action: "increasePlaybackRate",
|
|
1845
1855
|
event: e
|
|
1846
1856
|
}));
|
|
@@ -1874,7 +1884,7 @@ const Ie = {
|
|
|
1874
1884
|
}
|
|
1875
1885
|
}
|
|
1876
1886
|
};
|
|
1877
|
-
function
|
|
1887
|
+
function Ve(e) {
|
|
1878
1888
|
return typeof e == "number" && !isNaN(e);
|
|
1879
1889
|
}
|
|
1880
1890
|
function qo(e, n = 1e3) {
|
|
@@ -1885,7 +1895,7 @@ function qo(e, n = 1e3) {
|
|
|
1885
1895
|
}, n));
|
|
1886
1896
|
};
|
|
1887
1897
|
}
|
|
1888
|
-
const
|
|
1898
|
+
const Se = {
|
|
1889
1899
|
volume: 1,
|
|
1890
1900
|
muted: !1,
|
|
1891
1901
|
lang: null,
|
|
@@ -1900,7 +1910,7 @@ class Go {
|
|
|
1900
1910
|
constructor() {
|
|
1901
1911
|
V(this, "playerId", "studio-player");
|
|
1902
1912
|
V(this, "mediaId", null);
|
|
1903
|
-
V(this, "data",
|
|
1913
|
+
V(this, "data", Se);
|
|
1904
1914
|
V(this, "time", null);
|
|
1905
1915
|
V(this, "overrideTime", null);
|
|
1906
1916
|
V(this, "saveTime", () => {
|
|
@@ -1912,7 +1922,7 @@ class Go {
|
|
|
1912
1922
|
// only used for useStudioPlayer hook's state initialization
|
|
1913
1923
|
V(this, "initializeState", (n) => {
|
|
1914
1924
|
const o = localStorage.getItem(this.playerId);
|
|
1915
|
-
if (
|
|
1925
|
+
if (Ve(n) && n >= 0 && (this.overrideTime = n), o)
|
|
1916
1926
|
try {
|
|
1917
1927
|
this.data = JSON.parse(o);
|
|
1918
1928
|
} catch {
|
|
@@ -1978,18 +1988,18 @@ class Go {
|
|
|
1978
1988
|
this.data.rate = n, this.save();
|
|
1979
1989
|
}
|
|
1980
1990
|
onChange(n, o, i = "studio-player") {
|
|
1981
|
-
const
|
|
1991
|
+
const s = i ? localStorage.getItem(i) : null, a = o ? localStorage.getItem(o) : null;
|
|
1982
1992
|
this.playerId = i, this.mediaId = o;
|
|
1983
1993
|
let l = {};
|
|
1984
|
-
if (
|
|
1994
|
+
if (s)
|
|
1985
1995
|
try {
|
|
1986
|
-
l = JSON.parse(
|
|
1996
|
+
l = JSON.parse(s);
|
|
1987
1997
|
} catch {
|
|
1988
1998
|
}
|
|
1989
1999
|
this.data = {
|
|
1990
|
-
...
|
|
2000
|
+
...Se,
|
|
1991
2001
|
...l
|
|
1992
|
-
},
|
|
2002
|
+
}, Ve(this.overrideTime) && this.overrideTime >= 0 ? this.time = this.overrideTime : this.time = a ? +a : null;
|
|
1993
2003
|
}
|
|
1994
2004
|
save() {
|
|
1995
2005
|
if (!this.playerId) return;
|
|
@@ -1998,68 +2008,68 @@ class Go {
|
|
|
1998
2008
|
}
|
|
1999
2009
|
}
|
|
2000
2010
|
function Qo(e, n, o, i) {
|
|
2001
|
-
const
|
|
2002
|
-
|
|
2011
|
+
const s = E(() => new Go(), []), [a, l] = x(
|
|
2012
|
+
s.initializeState(i)
|
|
2003
2013
|
), r = _(
|
|
2004
|
-
(
|
|
2005
|
-
l((b) => (
|
|
2014
|
+
(h) => {
|
|
2015
|
+
l((b) => (s.saveData("multiplier", h), {
|
|
2006
2016
|
...b,
|
|
2007
|
-
captionsFontSizeMultiplier:
|
|
2017
|
+
captionsFontSizeMultiplier: h
|
|
2008
2018
|
}));
|
|
2009
2019
|
},
|
|
2010
|
-
[
|
|
2020
|
+
[s]
|
|
2011
2021
|
), u = _(() => {
|
|
2012
|
-
l((
|
|
2013
|
-
const b = !
|
|
2014
|
-
return
|
|
2015
|
-
...
|
|
2022
|
+
l((h) => {
|
|
2023
|
+
const b = !h.captionPositionOnTop;
|
|
2024
|
+
return s.saveData("ontop", b), {
|
|
2025
|
+
...h,
|
|
2016
2026
|
captionPositionOnTop: b
|
|
2017
2027
|
};
|
|
2018
2028
|
});
|
|
2019
|
-
}, [
|
|
2020
|
-
l((
|
|
2021
|
-
const b = !
|
|
2022
|
-
return
|
|
2023
|
-
...
|
|
2029
|
+
}, [s]), m = _(() => {
|
|
2030
|
+
l((h) => {
|
|
2031
|
+
const b = !h.captionsInvertColors;
|
|
2032
|
+
return s.saveData("invert", b), {
|
|
2033
|
+
...h,
|
|
2024
2034
|
captionsInvertColors: b
|
|
2025
2035
|
};
|
|
2026
2036
|
});
|
|
2027
|
-
}, [
|
|
2028
|
-
l((
|
|
2029
|
-
const b = !
|
|
2030
|
-
return
|
|
2031
|
-
...
|
|
2037
|
+
}, [s]), v = _(() => {
|
|
2038
|
+
l((h) => {
|
|
2039
|
+
const b = !h.commentsEnabled;
|
|
2040
|
+
return s.saveData("comments", b), {
|
|
2041
|
+
...h,
|
|
2032
2042
|
commentsEnabled: b
|
|
2033
2043
|
};
|
|
2034
2044
|
});
|
|
2035
|
-
}, [
|
|
2036
|
-
l((
|
|
2037
|
-
...
|
|
2045
|
+
}, [s]), y = _(() => {
|
|
2046
|
+
l((h) => ({
|
|
2047
|
+
...h,
|
|
2038
2048
|
interactionsDisabled: !1
|
|
2039
2049
|
}));
|
|
2040
2050
|
}, []), k = _(() => {
|
|
2041
|
-
l((
|
|
2042
|
-
...
|
|
2051
|
+
l((h) => ({
|
|
2052
|
+
...h,
|
|
2043
2053
|
interactionsDisabled: !0
|
|
2044
2054
|
}));
|
|
2045
|
-
}, []), w = _((
|
|
2055
|
+
}, []), w = _((h) => {
|
|
2046
2056
|
l((b) => ({
|
|
2047
2057
|
...b,
|
|
2048
|
-
globalKeysDisabled:
|
|
2058
|
+
globalKeysDisabled: h
|
|
2049
2059
|
}));
|
|
2050
2060
|
}, []), N = E(() => e ? {
|
|
2051
|
-
...
|
|
2061
|
+
...He,
|
|
2052
2062
|
toggleFullscreen: []
|
|
2053
|
-
} :
|
|
2063
|
+
} : He, [e]);
|
|
2054
2064
|
return {
|
|
2055
2065
|
contextValue: {
|
|
2056
2066
|
state: {
|
|
2057
|
-
...
|
|
2058
|
-
commentsEnabled: n ||
|
|
2067
|
+
...a,
|
|
2068
|
+
commentsEnabled: n || a.commentsEnabled
|
|
2059
2069
|
},
|
|
2060
2070
|
setCaptionsFontSizeMultiplier: r,
|
|
2061
2071
|
toggleCaptionPositionOnTop: u,
|
|
2062
|
-
toggleCaptionsInvertColors:
|
|
2072
|
+
toggleCaptionsInvertColors: m,
|
|
2063
2073
|
enableInteractions: y,
|
|
2064
2074
|
disableInteractions: k,
|
|
2065
2075
|
setGlobalKeysDisabled: w,
|
|
@@ -2067,7 +2077,7 @@ function Qo(e, n, o, i) {
|
|
|
2067
2077
|
disableCaptionSettings: o
|
|
2068
2078
|
},
|
|
2069
2079
|
shortcuts: N,
|
|
2070
|
-
storage:
|
|
2080
|
+
storage: s
|
|
2071
2081
|
};
|
|
2072
2082
|
}
|
|
2073
2083
|
const Wo = {};
|
|
@@ -2079,7 +2089,7 @@ function jo() {
|
|
|
2079
2089
|
/* @__PURE__ */ t(Oe, {}),
|
|
2080
2090
|
/* @__PURE__ */ t(ze, { captions: e.captions }),
|
|
2081
2091
|
/* @__PURE__ */ t(Y1, {}),
|
|
2082
|
-
/* @__PURE__ */ t(
|
|
2092
|
+
/* @__PURE__ */ t(C1, {}),
|
|
2083
2093
|
/* @__PURE__ */ t(jt, { comments: e.comments })
|
|
2084
2094
|
] });
|
|
2085
2095
|
}
|
|
@@ -2100,11 +2110,11 @@ function Xo() {
|
|
|
2100
2110
|
/* @__PURE__ */ t(ze, { captions: e.captions })
|
|
2101
2111
|
] });
|
|
2102
2112
|
}
|
|
2103
|
-
function Jo(e, n, o
|
|
2104
|
-
let
|
|
2113
|
+
function Jo(e, n, o) {
|
|
2114
|
+
let i = !1;
|
|
2105
2115
|
return (s) => {
|
|
2106
|
-
const
|
|
2107
|
-
|
|
2116
|
+
const a = s.detail.currentTime, l = !o.paused;
|
|
2117
|
+
a >= e.time && !i && (i = !0, n(e, l)), a < e.time && i && (i = !1);
|
|
2108
2118
|
};
|
|
2109
2119
|
}
|
|
2110
2120
|
function ei() {
|
|
@@ -2113,13 +2123,13 @@ function ei() {
|
|
|
2113
2123
|
if (!e)
|
|
2114
2124
|
return;
|
|
2115
2125
|
const i = [];
|
|
2116
|
-
for (const
|
|
2117
|
-
const
|
|
2118
|
-
e.addEventListener("time-update",
|
|
2126
|
+
for (const s of n) {
|
|
2127
|
+
const a = Jo(s, o, e);
|
|
2128
|
+
e.addEventListener("time-update", a), i.push(a);
|
|
2119
2129
|
}
|
|
2120
2130
|
return () => {
|
|
2121
|
-
for (const
|
|
2122
|
-
e.removeEventListener("time-update",
|
|
2131
|
+
for (const s of i)
|
|
2132
|
+
e.removeEventListener("time-update", s);
|
|
2123
2133
|
};
|
|
2124
2134
|
}, [n, e]);
|
|
2125
2135
|
}
|
|
@@ -2133,18 +2143,18 @@ function ui({
|
|
|
2133
2143
|
playerRef: n,
|
|
2134
2144
|
src: o,
|
|
2135
2145
|
captions: i = [],
|
|
2136
|
-
thumbnail:
|
|
2137
|
-
hideFullScreen:
|
|
2146
|
+
thumbnail: s,
|
|
2147
|
+
hideFullScreen: a = !1,
|
|
2138
2148
|
comments: l = [],
|
|
2139
2149
|
locale: r = "en",
|
|
2140
2150
|
annotations: u = [],
|
|
2141
|
-
quizMarkers:
|
|
2151
|
+
quizMarkers: m = [],
|
|
2142
2152
|
interactive: v = !1,
|
|
2143
2153
|
onAnnotationClick: y = ne,
|
|
2144
2154
|
onQuizMarkerClick: k = ne,
|
|
2145
2155
|
onQuizMarkerShow: w = ne,
|
|
2146
2156
|
onInteractivePinClick: N = ne,
|
|
2147
|
-
interactiveMenuElements:
|
|
2157
|
+
interactiveMenuElements: h = [],
|
|
2148
2158
|
kebabMenuElements: b = [],
|
|
2149
2159
|
darkMode: P = !1,
|
|
2150
2160
|
autoLoadCaptionSrc: T = "",
|
|
@@ -2152,36 +2162,36 @@ function ui({
|
|
|
2152
2162
|
disableCaptionSettings: S = !1,
|
|
2153
2163
|
disableStorage: Y = !1,
|
|
2154
2164
|
startAt: X,
|
|
2155
|
-
crossOrigin:
|
|
2165
|
+
crossOrigin: se,
|
|
2156
2166
|
captionOffsetOverride: Ye,
|
|
2157
2167
|
disableInteractivePinRanges: Xe = []
|
|
2158
2168
|
}) {
|
|
2159
|
-
const { contextValue:
|
|
2160
|
-
|
|
2169
|
+
const { contextValue: ae, shortcuts: Je, storage: et } = Qo(
|
|
2170
|
+
a,
|
|
2161
2171
|
Z,
|
|
2162
2172
|
S,
|
|
2163
2173
|
X
|
|
2164
|
-
), { i18n:
|
|
2174
|
+
), { i18n: we } = C();
|
|
2165
2175
|
O(() => {
|
|
2166
|
-
|
|
2167
|
-
}, [
|
|
2168
|
-
const [
|
|
2169
|
-
ht(R) ?
|
|
2176
|
+
we.changeLanguage(r);
|
|
2177
|
+
}, [we, r]);
|
|
2178
|
+
const [ye, ke] = x("none"), tt = _((R) => {
|
|
2179
|
+
ht(R) ? ke("audio") : pt(R) && ke("video");
|
|
2170
2180
|
}, []);
|
|
2171
2181
|
return /* @__PURE__ */ t(
|
|
2172
2182
|
kt,
|
|
2173
2183
|
{
|
|
2174
|
-
hideFullScreen:
|
|
2184
|
+
hideFullScreen: a,
|
|
2175
2185
|
comments: l,
|
|
2176
2186
|
captions: i,
|
|
2177
|
-
thumbnail:
|
|
2187
|
+
thumbnail: s,
|
|
2178
2188
|
annotations: u,
|
|
2179
|
-
quizMarkers:
|
|
2189
|
+
quizMarkers: m,
|
|
2180
2190
|
interactive: v,
|
|
2181
2191
|
onAnnotationClick: y,
|
|
2182
2192
|
onQuizMarkerClick: k,
|
|
2183
2193
|
onInteractivePinClick: N,
|
|
2184
|
-
interactiveMenuElements:
|
|
2194
|
+
interactiveMenuElements: h,
|
|
2185
2195
|
kebabMenuElements: b,
|
|
2186
2196
|
darkMode: P,
|
|
2187
2197
|
forceComments: Z,
|
|
@@ -2190,27 +2200,27 @@ function ui({
|
|
|
2190
2200
|
captionOffsetOverride: Ye,
|
|
2191
2201
|
disableInteractivePinRanges: Xe,
|
|
2192
2202
|
onQuizMarkerShow: w,
|
|
2193
|
-
children: /* @__PURE__ */ t(yt, { contextValue:
|
|
2203
|
+
children: /* @__PURE__ */ t(yt, { contextValue: ae, children: /* @__PURE__ */ c(
|
|
2194
2204
|
_t,
|
|
2195
2205
|
{
|
|
2196
|
-
crossOrigin:
|
|
2206
|
+
crossOrigin: se,
|
|
2197
2207
|
storage: Y ? null : et,
|
|
2198
2208
|
title: e,
|
|
2199
2209
|
src: o,
|
|
2200
2210
|
keyShortcuts: Je,
|
|
2201
2211
|
playsInline: !0,
|
|
2202
|
-
keyDisabled:
|
|
2212
|
+
keyDisabled: ae.state.interactionsDisabled || ae.state.globalKeysDisabled,
|
|
2203
2213
|
onTextTracksChange: (R) => {
|
|
2204
|
-
const
|
|
2214
|
+
const Le = R == null ? void 0 : R.findIndex(
|
|
2205
2215
|
(nt) => nt.src === T
|
|
2206
2216
|
);
|
|
2207
|
-
|
|
2217
|
+
Le > -1 && (R[Le].mode = "showing");
|
|
2208
2218
|
},
|
|
2209
2219
|
onProviderSetup: tt,
|
|
2210
2220
|
children: [
|
|
2211
|
-
/* @__PURE__ */ c(
|
|
2212
|
-
|
|
2213
|
-
|
|
2221
|
+
/* @__PURE__ */ c(ft, { className: Wo.mediaProvider, children: [
|
|
2222
|
+
ye === "audio" && /* @__PURE__ */ t(Xo, {}),
|
|
2223
|
+
ye === "video" && /* @__PURE__ */ t(jo, {})
|
|
2214
2224
|
] }),
|
|
2215
2225
|
/* @__PURE__ */ t(O1, {}),
|
|
2216
2226
|
/* @__PURE__ */ t(
|
|
@@ -2222,7 +2232,7 @@ function ui({
|
|
|
2222
2232
|
}
|
|
2223
2233
|
),
|
|
2224
2234
|
/* @__PURE__ */ t(Pt, { annotations: u }),
|
|
2225
|
-
!!
|
|
2235
|
+
!!m.length && /* @__PURE__ */ t(ti, {})
|
|
2226
2236
|
]
|
|
2227
2237
|
}
|
|
2228
2238
|
) })
|