@instructure/studio-player 0.3.7 → 0.3.8
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,9 +1,9 @@
|
|
|
1
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
|
-
var
|
|
3
|
+
var S = (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
|
-
import { createContext 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
|
|
5
|
+
import { createContext as re, useContext as le, useState as L, 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 f, isTrackCaptionKind as st, Track as at, Captions as ct, usePlaybackRateOptions as rt, useCaptionOptions as lt, 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
8
|
import { initReactI18next as Ct, useTranslation as C } from "react-i18next";
|
|
9
9
|
import bt from "i18next";
|
|
@@ -35,22 +35,22 @@ bt.use(Ct).use(
|
|
|
35
35
|
escapeValue: !1
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const Ae =
|
|
38
|
+
const Ae = re(null);
|
|
39
39
|
function yt({
|
|
40
40
|
children: e,
|
|
41
41
|
contextValue: n
|
|
42
42
|
}) {
|
|
43
43
|
return /* @__PURE__ */ t(Ae.Provider, { value: n, children: e });
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
const e =
|
|
45
|
+
function v() {
|
|
46
|
+
const e = le(Ae);
|
|
47
47
|
if (!e)
|
|
48
48
|
throw new Error(
|
|
49
49
|
"useStudioPlayerContext must be used within a StudioPlayerContextProvider"
|
|
50
50
|
);
|
|
51
51
|
return e;
|
|
52
52
|
}
|
|
53
|
-
const Be =
|
|
53
|
+
const Be = re(null);
|
|
54
54
|
function kt({
|
|
55
55
|
hideFullScreen: e,
|
|
56
56
|
comments: n,
|
|
@@ -58,49 +58,49 @@ function kt({
|
|
|
58
58
|
thumbnail: i,
|
|
59
59
|
annotations: s,
|
|
60
60
|
quizMarkers: a,
|
|
61
|
-
interactive:
|
|
62
|
-
onAnnotationClick:
|
|
61
|
+
interactive: r,
|
|
62
|
+
onAnnotationClick: l,
|
|
63
63
|
onQuizMarkerClick: u,
|
|
64
|
-
onInteractivePinClick:
|
|
65
|
-
interactiveMenuElements:
|
|
66
|
-
kebabMenuElements:
|
|
64
|
+
onInteractivePinClick: d,
|
|
65
|
+
interactiveMenuElements: b,
|
|
66
|
+
kebabMenuElements: w,
|
|
67
67
|
darkMode: k,
|
|
68
|
-
children:
|
|
68
|
+
children: y,
|
|
69
69
|
forceComments: N,
|
|
70
70
|
disableCaptionSettings: h,
|
|
71
|
-
disableStorage:
|
|
71
|
+
disableStorage: g,
|
|
72
72
|
captionOffsetOverride: P,
|
|
73
73
|
disableInteractivePinRanges: T,
|
|
74
74
|
onQuizMarkerShow: Z
|
|
75
75
|
}) {
|
|
76
|
-
const
|
|
76
|
+
const V = {
|
|
77
77
|
hideFullScreen: e,
|
|
78
78
|
comments: n,
|
|
79
79
|
captions: o,
|
|
80
80
|
thumbnail: i,
|
|
81
81
|
annotations: s,
|
|
82
82
|
quizMarkers: a,
|
|
83
|
-
interactive:
|
|
84
|
-
onAnnotationClick:
|
|
83
|
+
interactive: r,
|
|
84
|
+
onAnnotationClick: l,
|
|
85
85
|
onQuizMarkerClick: u,
|
|
86
|
-
onInteractivePinClick:
|
|
87
|
-
interactiveMenuElements:
|
|
88
|
-
kebabMenuElements:
|
|
86
|
+
onInteractivePinClick: d,
|
|
87
|
+
interactiveMenuElements: b,
|
|
88
|
+
kebabMenuElements: w,
|
|
89
89
|
darkMode: k,
|
|
90
90
|
hasComments: n.length > 0,
|
|
91
91
|
hasAnnotations: s.length > 0,
|
|
92
92
|
hasQuizmarkers: a.length > 0,
|
|
93
93
|
forceComments: N,
|
|
94
94
|
disableCaptionSettings: h,
|
|
95
|
-
disableStorage:
|
|
95
|
+
disableStorage: g,
|
|
96
96
|
captionOffsetOverride: P,
|
|
97
97
|
disableInteractivePinRanges: T,
|
|
98
98
|
onQuizMarkerShow: Z
|
|
99
99
|
};
|
|
100
|
-
return /* @__PURE__ */ t(Be.Provider, { value:
|
|
100
|
+
return /* @__PURE__ */ t(Be.Provider, { value: V, children: y });
|
|
101
101
|
}
|
|
102
102
|
function M() {
|
|
103
|
-
const e =
|
|
103
|
+
const e = le(Be);
|
|
104
104
|
if (!e)
|
|
105
105
|
throw new Error(
|
|
106
106
|
"useStudioPlayerPropsContext must be used within a StudioPlayerPropsContextProvider"
|
|
@@ -118,37 +118,37 @@ const Lt = "_annotation-overlay_1kxzn_1", xt = {
|
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
function Pt({ annotations: e }) {
|
|
121
|
-
const n = F(), o =
|
|
121
|
+
const n = F(), o = v(), i = M(), [s, a] = L(
|
|
122
122
|
null
|
|
123
|
-
),
|
|
123
|
+
), r = _(
|
|
124
124
|
(u) => {
|
|
125
125
|
n == null || n.pause(), i.interactive || o.disableInteractions(), a(u);
|
|
126
126
|
},
|
|
127
127
|
[n, o]
|
|
128
|
-
),
|
|
128
|
+
), l = () => {
|
|
129
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
|
|
137
|
-
n.addEventListener("time-update",
|
|
135
|
+
for (const d of e) {
|
|
136
|
+
const b = Mt(d, r);
|
|
137
|
+
n.addEventListener("time-update", b), u.push(b);
|
|
138
138
|
}
|
|
139
139
|
if (s) {
|
|
140
|
-
const
|
|
141
|
-
(
|
|
140
|
+
const d = e.find(
|
|
141
|
+
(b) => b.id === s.id
|
|
142
142
|
);
|
|
143
|
-
|
|
143
|
+
d ? a(d) : (a(null), o.enableInteractions());
|
|
144
144
|
}
|
|
145
145
|
return () => {
|
|
146
|
-
for (const
|
|
147
|
-
n.removeEventListener("time-update",
|
|
146
|
+
for (const d of u)
|
|
147
|
+
n.removeEventListener("time-update", d);
|
|
148
148
|
};
|
|
149
|
-
}, [n, e]), s ? /* @__PURE__ */ t("div", { className: xt.annotationOverlay, children: s.render(
|
|
149
|
+
}, [n, e]), s ? /* @__PURE__ */ t("div", { className: xt.annotationOverlay, children: s.render(l) }) : null;
|
|
150
150
|
}
|
|
151
|
-
const Nt = "_media-buffering-indicator_1fwjr_1", It = "_media-buffering-spinner_1fwjr_17", Ht = "_media-buffering-spin_1fwjr_17",
|
|
151
|
+
const Nt = "_media-buffering-indicator_1fwjr_1", It = "_media-buffering-spinner_1fwjr_17", Ht = "_media-buffering-spin_1fwjr_17", St = "_media-buffering-track_1fwjr_22", Vt = "_media-buffering-track-fill_1fwjr_27", ee = {
|
|
152
152
|
"media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
|
|
153
153
|
mediaBufferingIndicator: Nt,
|
|
154
154
|
"media-buffering-spinner": "_media-buffering-spinner_1fwjr_17",
|
|
@@ -156,9 +156,9 @@ const Nt = "_media-buffering-indicator_1fwjr_1", It = "_media-buffering-spinner_
|
|
|
156
156
|
"media-buffering-spin": "_media-buffering-spin_1fwjr_17",
|
|
157
157
|
mediaBufferingSpin: Ht,
|
|
158
158
|
"media-buffering-track": "_media-buffering-track_1fwjr_22",
|
|
159
|
-
mediaBufferingTrack:
|
|
159
|
+
mediaBufferingTrack: St,
|
|
160
160
|
"media-buffering-track-fill": "_media-buffering-track-fill_1fwjr_27",
|
|
161
|
-
mediaBufferingTrackFill:
|
|
161
|
+
mediaBufferingTrackFill: Vt
|
|
162
162
|
};
|
|
163
163
|
function Oe() {
|
|
164
164
|
return /* @__PURE__ */ t("div", { className: ee.mediaBufferingIndicator, children: /* @__PURE__ */ c(ce.Root, { className: ee.mediaBufferingSpinner, size: 96, children: [
|
|
@@ -180,9 +180,9 @@ 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 = f("textTrack"), o = f("hasCaptions"), i = n && st(n), s =
|
|
184
|
-
(
|
|
185
|
-
e.toggleCaptions(
|
|
183
|
+
const e = oe(), n = f("textTrack"), o = f("hasCaptions"), i = n && st(n), s = v(), a = _(
|
|
184
|
+
(r) => {
|
|
185
|
+
e.toggleCaptions(r.nativeEvent);
|
|
186
186
|
},
|
|
187
187
|
[e]
|
|
188
188
|
);
|
|
@@ -203,21 +203,21 @@ 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 =
|
|
206
|
+
const n = e.length > 0, o = v(), { captionOffsetOverride: i } = M(), s = o.state.captionPositionOnTop, a = At(
|
|
207
207
|
s,
|
|
208
208
|
i ?? {}
|
|
209
209
|
);
|
|
210
210
|
return /* @__PURE__ */ c(Q, { children: [
|
|
211
|
-
e.map((
|
|
211
|
+
e.map((r) => /* @__PURE__ */ t(
|
|
212
212
|
at,
|
|
213
213
|
{
|
|
214
214
|
kind: "subtitles",
|
|
215
|
-
type:
|
|
216
|
-
language:
|
|
217
|
-
label:
|
|
218
|
-
src:
|
|
215
|
+
type: r.type,
|
|
216
|
+
language: r.language,
|
|
217
|
+
label: r.label,
|
|
218
|
+
src: r.src
|
|
219
219
|
},
|
|
220
|
-
|
|
220
|
+
r.label
|
|
221
221
|
)),
|
|
222
222
|
n ? /* @__PURE__ */ t(
|
|
223
223
|
"div",
|
|
@@ -236,7 +236,7 @@ function ze({ captions: e }) {
|
|
|
236
236
|
] });
|
|
237
237
|
}
|
|
238
238
|
const K = [0.5, 0.75, 1, 1.25, 1.5, 2], Bt = [0.5, 1, 2, 3, 4], Ot = 5, Ft = (e) => {
|
|
239
|
-
const [, n] =
|
|
239
|
+
const [, n] = L({});
|
|
240
240
|
return E(() => {
|
|
241
241
|
let o = [];
|
|
242
242
|
return {
|
|
@@ -267,8 +267,8 @@ const K = [0.5, 0.75, 1, 1.25, 1.5, 2], Bt = [0.5, 1, 2, 3, 4], Ot = 5, Ft = (e)
|
|
|
267
267
|
return;
|
|
268
268
|
const s = [];
|
|
269
269
|
for (const a of e) {
|
|
270
|
-
const
|
|
271
|
-
s.push(
|
|
270
|
+
const r = Zt(a, Ot, i);
|
|
271
|
+
s.push(r), o.addEventListener("time-update", r);
|
|
272
272
|
}
|
|
273
273
|
return o.dispatchEvent(
|
|
274
274
|
new CustomEvent("time-update", {
|
|
@@ -312,7 +312,7 @@ function Qt({ comment: e }) {
|
|
|
312
312
|
}
|
|
313
313
|
const Wt = 5;
|
|
314
314
|
function jt({ comments: e }) {
|
|
315
|
-
const n =
|
|
315
|
+
const n = v(), 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
|
{
|
|
@@ -359,13 +359,13 @@ function on({
|
|
|
359
359
|
] })
|
|
360
360
|
] });
|
|
361
361
|
}
|
|
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",
|
|
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", rn = "_menu-button_k49ve_5", ln = "_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",
|
|
366
|
-
menuButton:
|
|
366
|
+
menuButton: rn,
|
|
367
367
|
"menu-label": "_menu-label_k49ve_37",
|
|
368
|
-
menuLabel:
|
|
368
|
+
menuLabel: ln,
|
|
369
369
|
"menu-icon": "_menu-icon_k49ve_42",
|
|
370
370
|
menuIcon: un
|
|
371
371
|
};
|
|
@@ -478,7 +478,7 @@ function be({
|
|
|
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 } = C(), n = M(), o =
|
|
481
|
+
const { t: e } = C(), n = M(), o = v();
|
|
482
482
|
return !n.forceComments && n.hasComments ? /* @__PURE__ */ t(
|
|
483
483
|
be,
|
|
484
484
|
{
|
|
@@ -509,7 +509,7 @@ function Nn(e) {
|
|
|
509
509
|
return Ke(n);
|
|
510
510
|
}
|
|
511
511
|
const H = () => {
|
|
512
|
-
const e =
|
|
512
|
+
const e = le(De);
|
|
513
513
|
if (!e)
|
|
514
514
|
throw new Error(
|
|
515
515
|
"useCustomSettingsMenuContext must be used within a CustomSettingsMenuContext.Provider"
|
|
@@ -524,10 +524,10 @@ function Hn(e, n) {
|
|
|
524
524
|
const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(n);
|
|
525
525
|
return o[i + 1] ?? null;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Sn(e) {
|
|
528
528
|
return e.querySelector("button");
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Vn(e) {
|
|
531
531
|
const n = Array.from(e.querySelectorAll("button"));
|
|
532
532
|
return n[n.length - 1] ?? null;
|
|
533
533
|
}
|
|
@@ -544,7 +544,7 @@ function D() {
|
|
|
544
544
|
);
|
|
545
545
|
s == null || s.focus();
|
|
546
546
|
} else if (n.current) {
|
|
547
|
-
const s =
|
|
547
|
+
const s = Vn(n.current);
|
|
548
548
|
s == null || s.focus();
|
|
549
549
|
}
|
|
550
550
|
},
|
|
@@ -557,7 +557,7 @@ function D() {
|
|
|
557
557
|
);
|
|
558
558
|
s == null || s.focus();
|
|
559
559
|
} else if (n.current) {
|
|
560
|
-
const s =
|
|
560
|
+
const s = Sn(n.current);
|
|
561
561
|
s == null || s.focus();
|
|
562
562
|
}
|
|
563
563
|
},
|
|
@@ -605,7 +605,7 @@ const ie = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0
|
|
|
605
605
|
menuBackButton: Fn
|
|
606
606
|
};
|
|
607
607
|
function Zn() {
|
|
608
|
-
const e = H(), n =
|
|
608
|
+
const e = H(), n = rt({
|
|
609
609
|
rates: K,
|
|
610
610
|
normalLabel: "1x"
|
|
611
611
|
}), { t: o } = C(), i = D();
|
|
@@ -633,14 +633,14 @@ function Zn() {
|
|
|
633
633
|
}
|
|
634
634
|
),
|
|
635
635
|
/* @__PURE__ */ t("strong", { className: p.menuHeading, children: o("PLAYBACK_SPEED") }),
|
|
636
|
-
n.map(({ value: s, label: a, select:
|
|
636
|
+
n.map(({ value: s, label: a, select: r, selected: l }) => /* @__PURE__ */ c(
|
|
637
637
|
"button",
|
|
638
638
|
{
|
|
639
639
|
type: "button",
|
|
640
640
|
role: "menuitemradio",
|
|
641
641
|
"aria-label": a,
|
|
642
|
-
"aria-checked":
|
|
643
|
-
onClick: () =>
|
|
642
|
+
"aria-checked": l,
|
|
643
|
+
onClick: () => r(),
|
|
644
644
|
tabIndex: -1,
|
|
645
645
|
className: p.menuItem,
|
|
646
646
|
children: [
|
|
@@ -655,7 +655,7 @@ function Zn() {
|
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
657
|
function zn() {
|
|
658
|
-
const e = H(), n = f("textTrack"), { t: o } = C(), { disableCaptionSettings: i } =
|
|
658
|
+
const e = H(), n = f("textTrack"), { t: o } = C(), { disableCaptionSettings: i } = v(), s = _(() => {
|
|
659
659
|
e.setPage("captionLanguage");
|
|
660
660
|
}, [e]);
|
|
661
661
|
return i ? null : /* @__PURE__ */ t(
|
|
@@ -668,7 +668,7 @@ function zn() {
|
|
|
668
668
|
);
|
|
669
669
|
}
|
|
670
670
|
function Kn() {
|
|
671
|
-
const { t: e } = C(), n =
|
|
671
|
+
const { t: e } = C(), n = v(), o = H(), i = _(() => {
|
|
672
672
|
o.setPage("captionFontSize");
|
|
673
673
|
}, [o]);
|
|
674
674
|
return /* @__PURE__ */ t(
|
|
@@ -681,7 +681,7 @@ function Kn() {
|
|
|
681
681
|
);
|
|
682
682
|
}
|
|
683
683
|
function Dn() {
|
|
684
|
-
const { t: e } = C(), n =
|
|
684
|
+
const { t: e } = C(), n = v();
|
|
685
685
|
return /* @__PURE__ */ t(
|
|
686
686
|
be,
|
|
687
687
|
{
|
|
@@ -692,7 +692,7 @@ function Dn() {
|
|
|
692
692
|
);
|
|
693
693
|
}
|
|
694
694
|
function $n() {
|
|
695
|
-
const { t: e } = C(), n =
|
|
695
|
+
const { t: e } = C(), n = v();
|
|
696
696
|
return /* @__PURE__ */ t(
|
|
697
697
|
be,
|
|
698
698
|
{
|
|
@@ -737,7 +737,7 @@ function Un() {
|
|
|
737
737
|
);
|
|
738
738
|
}
|
|
739
739
|
function qn() {
|
|
740
|
-
const e = H(), n =
|
|
740
|
+
const e = H(), n = lt(), { t: o } = C(), i = D();
|
|
741
741
|
return /* @__PURE__ */ c(
|
|
742
742
|
"div",
|
|
743
743
|
{
|
|
@@ -762,13 +762,13 @@ function qn() {
|
|
|
762
762
|
}
|
|
763
763
|
),
|
|
764
764
|
/* @__PURE__ */ t("strong", { className: p.menuHeading, children: o("CAPTIONS") }),
|
|
765
|
-
n.map(({ value: s, label: a, select:
|
|
765
|
+
n.map(({ value: s, label: a, select: r, selected: l }) => /* @__PURE__ */ c(
|
|
766
766
|
"button",
|
|
767
767
|
{
|
|
768
768
|
type: "button",
|
|
769
769
|
role: "menuitemradio",
|
|
770
|
-
"aria-checked":
|
|
771
|
-
onClick: () =>
|
|
770
|
+
"aria-checked": l,
|
|
771
|
+
onClick: () => r(),
|
|
772
772
|
tabIndex: -1,
|
|
773
773
|
className: p.menuItem,
|
|
774
774
|
children: [
|
|
@@ -783,7 +783,7 @@ function qn() {
|
|
|
783
783
|
);
|
|
784
784
|
}
|
|
785
785
|
function Gn() {
|
|
786
|
-
const e =
|
|
786
|
+
const e = v(), n = H(), { t: o } = C(), i = D();
|
|
787
787
|
return /* @__PURE__ */ c(
|
|
788
788
|
"div",
|
|
789
789
|
{
|
|
@@ -859,18 +859,18 @@ function Qn() {
|
|
|
859
859
|
}
|
|
860
860
|
),
|
|
861
861
|
/* @__PURE__ */ t("strong", { className: p.menuHeading, children: i("QUALITY") }),
|
|
862
|
-
n.map(({ value: a, label:
|
|
862
|
+
n.map(({ value: a, label: r, select: l, selected: u }) => /* @__PURE__ */ c(
|
|
863
863
|
"button",
|
|
864
864
|
{
|
|
865
865
|
type: "button",
|
|
866
866
|
role: "menuitemradio",
|
|
867
867
|
"aria-checked": a === "auto" && o || u && !o,
|
|
868
|
-
onClick: () =>
|
|
868
|
+
onClick: () => l(),
|
|
869
869
|
tabIndex: -1,
|
|
870
870
|
className: p.menuItem,
|
|
871
871
|
children: [
|
|
872
872
|
/* @__PURE__ */ t(ie, { className: p.checkIcon }),
|
|
873
|
-
/* @__PURE__ */ t("span", { className: p.menuItemLabel, children:
|
|
873
|
+
/* @__PURE__ */ t("span", { className: p.menuItemLabel, children: r })
|
|
874
874
|
]
|
|
875
875
|
},
|
|
876
876
|
a
|
|
@@ -879,7 +879,7 @@ function Qn() {
|
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
881
|
}
|
|
882
|
-
const De =
|
|
882
|
+
const De = re(null), Wn = {
|
|
883
883
|
main: Tn,
|
|
884
884
|
speed: Zn,
|
|
885
885
|
captions: Un,
|
|
@@ -888,13 +888,13 @@ const De = le(null), Wn = {
|
|
|
888
888
|
quality: Qn
|
|
889
889
|
};
|
|
890
890
|
function jn() {
|
|
891
|
-
const e =
|
|
891
|
+
const e = v(), [n, o] = L(["main"]), [i, s] = L(!1), a = _(() => {
|
|
892
892
|
s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
|
|
893
|
-
}, [i]),
|
|
893
|
+
}, [i]), r = _((P) => {
|
|
894
894
|
o((T) => T.concat(P));
|
|
895
|
-
}, []),
|
|
895
|
+
}, []), l = _(() => {
|
|
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]), d = G(null), { refs: b, floatingStyles: w, context: k } = ue({
|
|
898
898
|
open: i,
|
|
899
899
|
onOpenChange: a,
|
|
900
900
|
placement: "top-end",
|
|
@@ -902,19 +902,19 @@ function jn() {
|
|
|
902
902
|
middleware: [
|
|
903
903
|
me(),
|
|
904
904
|
he({
|
|
905
|
-
element:
|
|
905
|
+
element: d
|
|
906
906
|
})
|
|
907
907
|
]
|
|
908
|
-
}),
|
|
909
|
-
() => ({ setPage:
|
|
910
|
-
[
|
|
908
|
+
}), y = pe(k, { escapeKey: !1 }), { getReferenceProps: N, getFloatingProps: h } = _e([y]), g = E(
|
|
909
|
+
() => ({ setPage: r, back: l, toggle: a }),
|
|
910
|
+
[l, r, a]
|
|
911
911
|
);
|
|
912
912
|
return {
|
|
913
913
|
Page: u,
|
|
914
914
|
open: i,
|
|
915
|
-
arrowRef:
|
|
916
|
-
refs:
|
|
917
|
-
floatingStyles:
|
|
915
|
+
arrowRef: d,
|
|
916
|
+
refs: b,
|
|
917
|
+
floatingStyles: w,
|
|
918
918
|
context: k,
|
|
919
919
|
getReferenceProps() {
|
|
920
920
|
return {
|
|
@@ -923,7 +923,7 @@ function jn() {
|
|
|
923
923
|
};
|
|
924
924
|
},
|
|
925
925
|
getFloatingProps: h,
|
|
926
|
-
contextValue:
|
|
926
|
+
contextValue: g
|
|
927
927
|
};
|
|
928
928
|
}
|
|
929
929
|
const Yn = "_settings-menu_7d0td_1", Xn = "_arrow_7d0td_19", Pe = {
|
|
@@ -939,30 +939,30 @@ function Jn() {
|
|
|
939
939
|
floatingStyles: i,
|
|
940
940
|
getFloatingProps: s,
|
|
941
941
|
getReferenceProps: a,
|
|
942
|
-
open:
|
|
943
|
-
refs:
|
|
942
|
+
open: r,
|
|
943
|
+
refs: l,
|
|
944
944
|
contextValue: u
|
|
945
|
-
} = jn(), { t:
|
|
945
|
+
} = jn(), { t: d } = C();
|
|
946
946
|
return /* @__PURE__ */ c(Q, { children: [
|
|
947
947
|
/* @__PURE__ */ t(
|
|
948
948
|
"button",
|
|
949
949
|
{
|
|
950
|
-
ref:
|
|
950
|
+
ref: l.setReference,
|
|
951
951
|
type: "button",
|
|
952
952
|
className: "controls-button",
|
|
953
|
-
"aria-label":
|
|
953
|
+
"aria-label": d("SETTINGS"),
|
|
954
954
|
onClick: u.toggle,
|
|
955
|
-
"aria-expanded":
|
|
955
|
+
"aria-expanded": r,
|
|
956
956
|
...a(),
|
|
957
957
|
children: /* @__PURE__ */ t(sn, { className: "controls-button-icon icon-rotate" })
|
|
958
958
|
}
|
|
959
959
|
),
|
|
960
|
-
|
|
960
|
+
r && /* @__PURE__ */ t(fe, { context: o, restoreFocus: !0, modal: !1, children: /* @__PURE__ */ c(
|
|
961
961
|
"div",
|
|
962
962
|
{
|
|
963
963
|
"aria-labelledby": "submenu",
|
|
964
964
|
className: Pe.settingsMenu,
|
|
965
|
-
ref:
|
|
965
|
+
ref: l.setFloating,
|
|
966
966
|
style: i,
|
|
967
967
|
...s(),
|
|
968
968
|
children: [
|
|
@@ -982,15 +982,15 @@ function Jn() {
|
|
|
982
982
|
}
|
|
983
983
|
function $e(e, n = 1e3) {
|
|
984
984
|
return function() {
|
|
985
|
-
const i = f("lastKeyboardAction"), [s, a] =
|
|
985
|
+
const i = f("lastKeyboardAction"), [s, a] = L(!1), r = _(() => a(!1), []);
|
|
986
986
|
return O(() => {
|
|
987
987
|
a(!!i);
|
|
988
|
-
const
|
|
989
|
-
return () => clearTimeout(
|
|
988
|
+
const l = setTimeout(r, n);
|
|
989
|
+
return () => clearTimeout(l);
|
|
990
990
|
}, [i, n]), s ? /* @__PURE__ */ t(e, {}) : null;
|
|
991
991
|
};
|
|
992
992
|
}
|
|
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",
|
|
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", x = {
|
|
994
994
|
"feedback-overlay": "_feedback-overlay_v4lbu_1",
|
|
995
995
|
feedbackOverlay: n1,
|
|
996
996
|
"feedback-message": "_feedback-message_v4lbu_14",
|
|
@@ -1005,21 +1005,21 @@ function a1() {
|
|
|
1005
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:
|
|
1008
|
+
return /* @__PURE__ */ t("i", { className: x.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(ge, {}) : /* @__PURE__ */ t(ve, {}) });
|
|
1009
1009
|
case "toggleCaptions":
|
|
1010
1010
|
case "nextCaptionLanguage":
|
|
1011
1011
|
case "previousCaptionLanguage":
|
|
1012
|
-
return e.hasCaptions ? /* @__PURE__ */ t("i", { className:
|
|
1012
|
+
return e.hasCaptions ? /* @__PURE__ */ t("i", { className: x.feedbackIcon, children: /* @__PURE__ */ t(Ze, {}) }) : null;
|
|
1013
1013
|
case "volumeUp":
|
|
1014
1014
|
case "volumeDown":
|
|
1015
1015
|
case "toggleMuted":
|
|
1016
|
-
return /* @__PURE__ */ t("i", { className:
|
|
1016
|
+
return /* @__PURE__ */ t("i", { className: x.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(Ue, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(Ge, {}) : /* @__PURE__ */ t(qe, {}) });
|
|
1017
1017
|
case "seekForward":
|
|
1018
1018
|
case "seekForward10":
|
|
1019
|
-
return /* @__PURE__ */ t("i", { className:
|
|
1019
|
+
return /* @__PURE__ */ t("i", { className: x.feedbackIcon, children: /* @__PURE__ */ t(e1, { className: "right" }) });
|
|
1020
1020
|
case "seekBackward":
|
|
1021
1021
|
case "seekBackward10":
|
|
1022
|
-
return /* @__PURE__ */ t("i", { className:
|
|
1022
|
+
return /* @__PURE__ */ t("i", { className: x.feedbackIcon, children: /* @__PURE__ */ t(t1, { className: "left" }) });
|
|
1023
1023
|
default:
|
|
1024
1024
|
return null;
|
|
1025
1025
|
}
|
|
@@ -1031,32 +1031,32 @@ function c1() {
|
|
|
1031
1031
|
case "toggleCaptions":
|
|
1032
1032
|
case "nextCaptionLanguage":
|
|
1033
1033
|
case "previousCaptionLanguage":
|
|
1034
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1034
|
+
return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: n.textTrack ? e("CAPTION_LANGUAGE", { language: n.textTrack.label }) : `${e("CAPTIONS")}: ${e("OFF")}` });
|
|
1035
1035
|
case "volumeUp":
|
|
1036
1036
|
case "volumeDown":
|
|
1037
1037
|
case "toggleMuted":
|
|
1038
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1038
|
+
return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: n.muted || n.volume === 0 ? e("MUTED") : e("VOLUME_VALUE", { volume: (n.volume * 100).toFixed(0) }) });
|
|
1039
1039
|
case "increasePlaybackRate":
|
|
1040
1040
|
case "decreasePlaybackRate":
|
|
1041
1041
|
case "resetPlaybackRate":
|
|
1042
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1042
|
+
return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: e("PLAYBACK_SPEED_MESSAGE", { speed: n.playbackRate }) });
|
|
1043
1043
|
case "seekForward":
|
|
1044
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1044
|
+
return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 5 }) });
|
|
1045
1045
|
case "seekForward10":
|
|
1046
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1046
|
+
return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 10 }) });
|
|
1047
1047
|
case "seekBackward":
|
|
1048
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1048
|
+
return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 5 }) });
|
|
1049
1049
|
case "seekBackward10":
|
|
1050
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1050
|
+
return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 10 }) });
|
|
1051
1051
|
default:
|
|
1052
1052
|
return null;
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1055
|
+
const r1 = $e(a1, 500), l1 = $e(c1, 1e3);
|
|
1056
1056
|
function Qe() {
|
|
1057
|
-
return /* @__PURE__ */ c("div", { className:
|
|
1058
|
-
/* @__PURE__ */ t(
|
|
1059
|
-
/* @__PURE__ */ t(
|
|
1057
|
+
return /* @__PURE__ */ c("div", { className: x.feedbackOverlay, children: [
|
|
1058
|
+
/* @__PURE__ */ t(r1, {}),
|
|
1059
|
+
/* @__PURE__ */ t(l1, {})
|
|
1060
1060
|
] });
|
|
1061
1061
|
}
|
|
1062
1062
|
const u1 = (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.1383 0.999867V3.66268H18.4561L3.66281 18.4546V14.1382H1V23H9.86449V20.3372H5.54542L20.3387 5.54528V9.86303H23.0001V0.999867H14.1383Z", fill: "currentColor" }) }), d1 = (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: "M15.562 6.58944L22.1514 0L24.0005 1.84907L17.4111 8.43851H21.6506V11.0552H12.9453V2.34861H15.562V6.58944ZM2.34861 15.5615V12.9461H11.0539V21.6501H8.43982V17.4106L1.84907 24L0 22.1509L6.59075 15.5615H2.34861Z", fill: "currentColor" }) }), m1 = "_full-screen-button_1xm32_2", h1 = {
|
|
@@ -1064,7 +1064,7 @@ 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 = f("fullscreen"), n = F(), o =
|
|
1067
|
+
const e = f("fullscreen"), n = F(), o = v(), i = M(), { t: s } = C();
|
|
1068
1068
|
return i.hideFullScreen ? null : /* @__PURE__ */ t(
|
|
1069
1069
|
"button",
|
|
1070
1070
|
{
|
|
@@ -1228,18 +1228,18 @@ function N1({ onClose: e }) {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
);
|
|
1230
1230
|
}
|
|
1231
|
-
const I1 = (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.8 3.6C9.79288 3.6 10.6 2.79288 10.6 1.8C10.6 0.80712 9.79288 0 8.8 0C7.80712 0 7 0.80712 7 1.8C7 2.79288 7.80712 3.6 8.8 3.6ZM10.6 8.99999C10.6 9.99287 9.79288 10.8 8.8 10.8C7.80712 10.8 7 9.99287 7 8.99999C7 8.00711 7.80712 7.19999 8.8 7.19999C9.79288 7.19999 10.6 8.00711 10.6 8.99999ZM10.6 16.2C10.6 17.1929 9.79288 18 8.8 18C7.80712 18 7 17.1929 7 16.2C7 15.2071 7.80712 14.4 8.8 14.4C9.79288 14.4 10.6 15.2071 10.6 16.2Z", fill: "currentColor" }) }), H1 = (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: "M14.1074 16.8677C12.8638 16.8677 11.8524 15.8563 11.8524 14.6127C11.8524 14.4154 11.8862 14.2271 11.9336 14.0444C12.0317 13.6701 12.22 13.3318 12.4804 13.059C12.8908 12.6294 13.467 12.3576 14.1074 12.3576C15.3511 12.3576 16.3625 13.369 16.3625 14.6127C16.3625 15.8563 15.3511 16.8677 14.1074 16.8677ZM4.38257 11.2301C3.13891 11.2301 2.12752 10.2187 2.12752 8.97507C2.12752 7.73141 3.13891 6.72002 4.38257 6.72002C5.01623 6.72002 5.58676 6.98386 5.99718 7.40556C6.25989 7.67616 6.44819 8.01329 6.54966 8.38763C6.60153 8.57592 6.63761 8.76986 6.63761 8.97507C6.63761 9.2017 6.59364 9.41818 6.53049 9.62452C6.41887 9.99435 6.22155 10.327 5.94982 10.5908C5.54391 10.9843 4.99256 11.2301 4.38257 11.2301ZM11.8524 3.38257C11.8524 2.13891 12.8638 1.12753 14.1074 1.12753C15.3511 1.12753 16.3625 2.13891 16.3625 3.38257C16.3625 4.62622 15.3511 5.63761 14.1074 5.63761C13.4749 5.63761 12.9055 5.3749 12.4962 4.95546C12.2324 4.68485 12.0429 4.34773 11.9415 3.97339C11.8896 3.78397 11.8524 3.5889 11.8524 3.38257ZM14.1074 11.2301C13.0498 11.2301 12.1151 11.7273 11.495 12.4907L7.52722 10.1996C7.67605 9.81846 7.76513 9.40804 7.76513 8.97507C7.76513 8.56465 7.68056 8.17678 7.54639 7.8126L11.5108 5.5226C12.132 6.27466 13.0588 6.76513 14.1074 6.76513C15.9724 6.76513 17.49 5.24748 17.49 3.38256C17.49 1.51764 15.9724 0 14.1074 0C12.2425 0 10.7249 1.51764 10.7249 3.38256C10.7249 3.79411 10.8094 4.18423 10.9447 4.54842L6.9815 6.83729C6.36136 6.08411 5.43341 5.59251 4.38256 5.59251C2.51764 5.59251 1 7.11015 1 8.97507C1 10.84 2.51764 12.3576 4.38256 12.3576C5.40974 12.3576 6.32077 11.8875 6.94091 11.1625L10.9368 13.4694C10.8072 13.829 10.7249 14.2102 10.7249 14.6127C10.7249 16.4776 12.2425 17.9952 14.1074 17.9952C15.9724 17.9952 17.49 16.4776 17.49 14.6127C17.49 12.7478 15.9724 11.2301 14.1074 11.2301Z", fill: "currentColor" }) }),
|
|
1231
|
+
const I1 = (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.8 3.6C9.79288 3.6 10.6 2.79288 10.6 1.8C10.6 0.80712 9.79288 0 8.8 0C7.80712 0 7 0.80712 7 1.8C7 2.79288 7.80712 3.6 8.8 3.6ZM10.6 8.99999C10.6 9.99287 9.79288 10.8 8.8 10.8C7.80712 10.8 7 9.99287 7 8.99999C7 8.00711 7.80712 7.19999 8.8 7.19999C9.79288 7.19999 10.6 8.00711 10.6 8.99999ZM10.6 16.2C10.6 17.1929 9.79288 18 8.8 18C7.80712 18 7 17.1929 7 16.2C7 15.2071 7.80712 14.4 8.8 14.4C9.79288 14.4 10.6 15.2071 10.6 16.2Z", fill: "currentColor" }) }), H1 = (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: "M14.1074 16.8677C12.8638 16.8677 11.8524 15.8563 11.8524 14.6127C11.8524 14.4154 11.8862 14.2271 11.9336 14.0444C12.0317 13.6701 12.22 13.3318 12.4804 13.059C12.8908 12.6294 13.467 12.3576 14.1074 12.3576C15.3511 12.3576 16.3625 13.369 16.3625 14.6127C16.3625 15.8563 15.3511 16.8677 14.1074 16.8677ZM4.38257 11.2301C3.13891 11.2301 2.12752 10.2187 2.12752 8.97507C2.12752 7.73141 3.13891 6.72002 4.38257 6.72002C5.01623 6.72002 5.58676 6.98386 5.99718 7.40556C6.25989 7.67616 6.44819 8.01329 6.54966 8.38763C6.60153 8.57592 6.63761 8.76986 6.63761 8.97507C6.63761 9.2017 6.59364 9.41818 6.53049 9.62452C6.41887 9.99435 6.22155 10.327 5.94982 10.5908C5.54391 10.9843 4.99256 11.2301 4.38257 11.2301ZM11.8524 3.38257C11.8524 2.13891 12.8638 1.12753 14.1074 1.12753C15.3511 1.12753 16.3625 2.13891 16.3625 3.38257C16.3625 4.62622 15.3511 5.63761 14.1074 5.63761C13.4749 5.63761 12.9055 5.3749 12.4962 4.95546C12.2324 4.68485 12.0429 4.34773 11.9415 3.97339C11.8896 3.78397 11.8524 3.5889 11.8524 3.38257ZM14.1074 11.2301C13.0498 11.2301 12.1151 11.7273 11.495 12.4907L7.52722 10.1996C7.67605 9.81846 7.76513 9.40804 7.76513 8.97507C7.76513 8.56465 7.68056 8.17678 7.54639 7.8126L11.5108 5.5226C12.132 6.27466 13.0588 6.76513 14.1074 6.76513C15.9724 6.76513 17.49 5.24748 17.49 3.38256C17.49 1.51764 15.9724 0 14.1074 0C12.2425 0 10.7249 1.51764 10.7249 3.38256C10.7249 3.79411 10.8094 4.18423 10.9447 4.54842L6.9815 6.83729C6.36136 6.08411 5.43341 5.59251 4.38256 5.59251C2.51764 5.59251 1 7.11015 1 8.97507C1 10.84 2.51764 12.3576 4.38256 12.3576C5.40974 12.3576 6.32077 11.8875 6.94091 11.1625L10.9368 13.4694C10.8072 13.829 10.7249 14.2102 10.7249 14.6127C10.7249 16.4776 12.2425 17.9952 14.1074 17.9952C15.9724 17.9952 17.49 16.4776 17.49 14.6127C17.49 12.7478 15.9724 11.2301 14.1074 11.2301Z", fill: "currentColor" }) }), S1 = (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: "M14.7647 16.9412H2.05882V1.05883H10.5294V5.29412H14.7647V16.9412ZM11.5882 1.278L14.5455 4.2353H11.5882V1.278ZM15.3587 3.55129L12.2722 0.464824C11.9715 0.165176 11.5724 0 11.1488 0H1V18H15.8235V4.67471C15.8235 4.25118 15.6584 3.852 15.3587 3.55129ZM1 0H15.8235V18H1V0ZM1 18H15.8235V0H1V18ZM4.17649 5.29412H8.41178V4.23529H4.17649V5.29412ZM4.17649 9.52941H10.5294V8.47059H4.17649V9.52941ZM4.17649 13.7647H8.41178V12.7059H4.17649V13.7647ZM4.17649 7.41177H12.6471V6.35294H4.17649V7.41177ZM4.17649 11.6471H11.5883V10.5882H4.17649V11.6471Z", fill: "currentColor" }) }), V1 = (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.30365 10.9535V0H9.3637V10.9535L12.6986 7.61855L13.4491 8.368L8.83261 12.9824L4.21823 8.368L4.96875 7.61855L8.30365 10.9535ZM3.77376 16.94H13.9354L16.9607 13.9146L17.7091 14.6651L14.3742 18H3.3349L0 14.6651L0.749452 13.9146L3.77376 16.94Z", fill: "currentColor" }) }), T1 = (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: "M14.8234 16.4118C14.8234 16.7029 14.5852 16.9412 14.294 16.9412H3.70577C3.41459 16.9412 3.17636 16.7029 3.17636 16.4118V5.29412H2.11753V16.4118C2.11753 17.2874 2.83012 18 3.70577 18H14.294C15.1697 18 15.8822 17.2874 15.8822 16.4118V5.29412H14.8234V16.4118ZM6.35284 14.8235H7.41166V6.35294H6.35284V14.8235ZM10.5881 14.8235H11.6469V6.35294H10.5881V14.8235ZM12.5682 3.17647L11.4099 0H6.51176L5.35553 3.17647H0V4.23529H18V3.17647H12.5682ZM6.48105 3.17647L7.25293 1.05882H10.6698L11.4416 3.17647H6.48105Z", fill: "currentColor" }) }), E1 = {
|
|
1232
1232
|
share: /* @__PURE__ */ t(H1, {}),
|
|
1233
|
-
transcript: /* @__PURE__ */ t(
|
|
1234
|
-
media: /* @__PURE__ */ t(
|
|
1233
|
+
transcript: /* @__PURE__ */ t(S1, {}),
|
|
1234
|
+
media: /* @__PURE__ */ t(V1, {}),
|
|
1235
1235
|
delete: /* @__PURE__ */ t(T1, {})
|
|
1236
1236
|
}, R1 = (e) => typeof e != "string";
|
|
1237
1237
|
function A1() {
|
|
1238
|
-
const [e, n] =
|
|
1238
|
+
const [e, n] = L(!1), [o, i] = L(null), s = v(), a = M(), r = () => {
|
|
1239
1239
|
n(!e), s.setGlobalKeysDisabled(!e);
|
|
1240
|
-
},
|
|
1240
|
+
}, l = G(null), u = G([]), { refs: d, floatingStyles: b, context: w } = ue({
|
|
1241
1241
|
open: e,
|
|
1242
|
-
onOpenChange:
|
|
1242
|
+
onOpenChange: r,
|
|
1243
1243
|
whileElementsMounted: de,
|
|
1244
1244
|
placement: "top-end",
|
|
1245
1245
|
middleware: [
|
|
@@ -1247,15 +1247,15 @@ function A1() {
|
|
|
1247
1247
|
Re(10),
|
|
1248
1248
|
me(),
|
|
1249
1249
|
he({
|
|
1250
|
-
element:
|
|
1250
|
+
element: l
|
|
1251
1251
|
})
|
|
1252
1252
|
]
|
|
1253
|
-
}), k = vt(
|
|
1253
|
+
}), k = vt(w, {
|
|
1254
1254
|
listRef: u,
|
|
1255
1255
|
activeIndex: o,
|
|
1256
1256
|
onNavigate: i
|
|
1257
|
-
}),
|
|
1258
|
-
[
|
|
1257
|
+
}), y = pe(w), { getReferenceProps: N, getFloatingProps: h, getItemProps: g } = _e(
|
|
1258
|
+
[y, k]
|
|
1259
1259
|
), { t: P } = C();
|
|
1260
1260
|
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ c(Q, { children: [
|
|
1261
1261
|
/* @__PURE__ */ t(
|
|
@@ -1265,23 +1265,23 @@ function A1() {
|
|
|
1265
1265
|
type: "button",
|
|
1266
1266
|
className: `${I.controlsButton} ${I.kebabMenuButton}`,
|
|
1267
1267
|
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
1268
|
-
ref:
|
|
1268
|
+
ref: d.setReference,
|
|
1269
1269
|
...N({
|
|
1270
|
-
onClick: () =>
|
|
1270
|
+
onClick: () => r()
|
|
1271
1271
|
}),
|
|
1272
1272
|
children: /* @__PURE__ */ t(I1, {})
|
|
1273
1273
|
}
|
|
1274
1274
|
),
|
|
1275
|
-
e && /* @__PURE__ */ t(fe, { context:
|
|
1275
|
+
e && /* @__PURE__ */ t(fe, { context: w, modal: !1, children: /* @__PURE__ */ c(
|
|
1276
1276
|
"div",
|
|
1277
1277
|
{
|
|
1278
|
-
ref:
|
|
1279
|
-
style:
|
|
1278
|
+
ref: d.setFloating,
|
|
1279
|
+
style: b,
|
|
1280
1280
|
className: I.kebabMenu,
|
|
1281
1281
|
...h(),
|
|
1282
1282
|
children: [
|
|
1283
1283
|
a.kebabMenuElements.map(
|
|
1284
|
-
({ id: T, text: Z, icon:
|
|
1284
|
+
({ id: T, text: Z, icon: V, onClick: Y }, X) => /* @__PURE__ */ c(
|
|
1285
1285
|
"button",
|
|
1286
1286
|
{
|
|
1287
1287
|
tabIndex: o === X ? 0 : -1,
|
|
@@ -1290,13 +1290,13 @@ function A1() {
|
|
|
1290
1290
|
ref: (se) => {
|
|
1291
1291
|
u.current[X] = se;
|
|
1292
1292
|
},
|
|
1293
|
-
...
|
|
1293
|
+
...g({
|
|
1294
1294
|
onClick: () => {
|
|
1295
1295
|
Y(T), n(!1);
|
|
1296
1296
|
}
|
|
1297
1297
|
}),
|
|
1298
1298
|
children: [
|
|
1299
|
-
R1(
|
|
1299
|
+
R1(V) ? V : E1[V],
|
|
1300
1300
|
Z
|
|
1301
1301
|
]
|
|
1302
1302
|
},
|
|
@@ -1306,8 +1306,8 @@ function A1() {
|
|
|
1306
1306
|
/* @__PURE__ */ t(
|
|
1307
1307
|
Ce,
|
|
1308
1308
|
{
|
|
1309
|
-
ref:
|
|
1310
|
-
context:
|
|
1309
|
+
ref: l,
|
|
1310
|
+
context: w,
|
|
1311
1311
|
className: I.arrow
|
|
1312
1312
|
}
|
|
1313
1313
|
)
|
|
@@ -1318,24 +1318,24 @@ 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] =
|
|
1322
|
-
n(!0),
|
|
1323
|
-
}, [
|
|
1324
|
-
n(!1), i(!0),
|
|
1325
|
-
}, [s, u,
|
|
1326
|
-
(
|
|
1321
|
+
const [e, n] = L(!1), [o, i] = L(!1), [s, a] = L(!1), r = v(), l = f("playing"), u = oe(), { t: d } = C(), b = _(() => {
|
|
1322
|
+
n(!0), r.disableInteractions(), l && (a(!0), u.pause());
|
|
1323
|
+
}, [l, u, r]), w = _(() => {
|
|
1324
|
+
n(!1), i(!0), r.enableInteractions(), s && (a(!1), u.play());
|
|
1325
|
+
}, [s, u, r]), k = _(
|
|
1326
|
+
(y) => o && (y == null ? void 0 : y.focus()),
|
|
1327
1327
|
[o]
|
|
1328
1328
|
);
|
|
1329
|
-
return e ? /* @__PURE__ */ t(N1, { onClose:
|
|
1329
|
+
return e ? /* @__PURE__ */ t(N1, { onClose: w }) : /* @__PURE__ */ c("div", { className: I.controlsOverlay, children: [
|
|
1330
1330
|
/* @__PURE__ */ t(
|
|
1331
1331
|
"button",
|
|
1332
1332
|
{
|
|
1333
1333
|
ref: k,
|
|
1334
|
-
"aria-label":
|
|
1334
|
+
"aria-label": d("KEYBOARD_SHORTCUTS"),
|
|
1335
1335
|
type: "button",
|
|
1336
1336
|
className: `${I.controlsButton} ${I.keyboardShortcutsButton}`,
|
|
1337
|
-
onClick:
|
|
1338
|
-
tabIndex:
|
|
1337
|
+
onClick: b,
|
|
1338
|
+
tabIndex: r.state.interactionsDisabled ? -1 : 0,
|
|
1339
1339
|
children: /* @__PURE__ */ t(B1, {})
|
|
1340
1340
|
}
|
|
1341
1341
|
),
|
|
@@ -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 =
|
|
1350
|
+
const e = F(), n = v(), o = f("paused"), { t: i } = C();
|
|
1351
1351
|
return e ? /* @__PURE__ */ t(
|
|
1352
1352
|
"button",
|
|
1353
1353
|
{
|
|
@@ -1402,7 +1402,7 @@ function eo() {
|
|
|
1402
1402
|
/* @__PURE__ */ t(xe, { type: "duration" })
|
|
1403
1403
|
] });
|
|
1404
1404
|
}
|
|
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",
|
|
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", ro = "_progress_fno42_102", lo = "_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", m = {
|
|
1406
1406
|
"comment-markers": "_comment-markers_fno42_1",
|
|
1407
1407
|
commentMarkers: to,
|
|
1408
1408
|
"comment-marker": "_comment-marker_fno42_1",
|
|
@@ -1414,9 +1414,9 @@ const to = "_comment-markers_fno42_1", no = "_comment-marker_fno42_1", oo = "_ti
|
|
|
1414
1414
|
root: ao,
|
|
1415
1415
|
"track-inner": "_track-inner_fno42_96",
|
|
1416
1416
|
trackInner: co,
|
|
1417
|
-
progress:
|
|
1417
|
+
progress: ro,
|
|
1418
1418
|
"track-fill": "_track-fill_fno42_108",
|
|
1419
|
-
trackFill:
|
|
1419
|
+
trackFill: lo,
|
|
1420
1420
|
pins: uo,
|
|
1421
1421
|
"pin-button": "_pin-button_fno42_138",
|
|
1422
1422
|
pinButton: mo,
|
|
@@ -1446,8 +1446,8 @@ const to = "_comment-markers_fno42_1", no = "_comment-marker_fno42_1", oo = "_ti
|
|
|
1446
1446
|
interactivePinMenuItem: xo,
|
|
1447
1447
|
arrow: Mo
|
|
1448
1448
|
}, Po = {
|
|
1449
|
-
annotation:
|
|
1450
|
-
quiz:
|
|
1449
|
+
annotation: m.annotationPin,
|
|
1450
|
+
quiz: m.quizPin
|
|
1451
1451
|
};
|
|
1452
1452
|
function je({
|
|
1453
1453
|
type: e,
|
|
@@ -1455,13 +1455,13 @@ function je({
|
|
|
1455
1455
|
children: o,
|
|
1456
1456
|
onClick: i
|
|
1457
1457
|
}) {
|
|
1458
|
-
const s =
|
|
1458
|
+
const s = v();
|
|
1459
1459
|
return /* @__PURE__ */ t(
|
|
1460
1460
|
"button",
|
|
1461
1461
|
{
|
|
1462
1462
|
type: "button",
|
|
1463
1463
|
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
1464
|
-
className:
|
|
1464
|
+
className: m.pinButton,
|
|
1465
1465
|
style: { left: `${n}%` },
|
|
1466
1466
|
onClick: i,
|
|
1467
1467
|
children: /* @__PURE__ */ c(
|
|
@@ -1485,7 +1485,7 @@ function No(e) {
|
|
|
1485
1485
|
return /* @__PURE__ */ t(je, { type: "annotation", ...e, children: /* @__PURE__ */ t(
|
|
1486
1486
|
"path",
|
|
1487
1487
|
{
|
|
1488
|
-
className:
|
|
1488
|
+
className: m.annotationPinChild,
|
|
1489
1489
|
fillRule: "evenodd",
|
|
1490
1490
|
clipRule: "evenodd",
|
|
1491
1491
|
d: "M7 8V19.25H8.875V18.875C8.875 17.8415 9.7165 17 10.75 17H19V8H7ZM10 11.75H16V11H10V11.75ZM14.5 14H10V13.25H14.5V14Z",
|
|
@@ -1495,10 +1495,10 @@ function No(e) {
|
|
|
1495
1495
|
) });
|
|
1496
1496
|
}
|
|
1497
1497
|
function Io(e) {
|
|
1498
|
-
return /* @__PURE__ */ t(je, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ t("circle", { className:
|
|
1498
|
+
return /* @__PURE__ */ t(je, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ t("circle", { className: m.quizPinChild, cx: "13", cy: "13", r: "6" }) : /* @__PURE__ */ t(
|
|
1499
1499
|
"text",
|
|
1500
1500
|
{
|
|
1501
|
-
className:
|
|
1501
|
+
className: m.quizPinChild,
|
|
1502
1502
|
x: "50%",
|
|
1503
1503
|
y: "56%",
|
|
1504
1504
|
textAnchor: "middle",
|
|
@@ -1517,19 +1517,19 @@ function Ho(e, n) {
|
|
|
1517
1517
|
onClick: () => n(o)
|
|
1518
1518
|
}));
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function So(e, n) {
|
|
1521
1521
|
const o = /* @__PURE__ */ new Map();
|
|
1522
1522
|
e.forEach((a) => {
|
|
1523
|
-
var
|
|
1524
|
-
const
|
|
1525
|
-
o.has(
|
|
1523
|
+
var l;
|
|
1524
|
+
const r = a.time;
|
|
1525
|
+
o.has(r) || o.set(r, []), (l = o.get(r)) == null || l.push(a);
|
|
1526
1526
|
});
|
|
1527
1527
|
const i = [];
|
|
1528
1528
|
let s = 0;
|
|
1529
|
-
return o.forEach((a,
|
|
1529
|
+
return o.forEach((a, r) => {
|
|
1530
1530
|
i.push({
|
|
1531
|
-
id: a.map((
|
|
1532
|
-
time:
|
|
1531
|
+
id: a.map((l) => l.id).join("-"),
|
|
1532
|
+
time: r,
|
|
1533
1533
|
type: "quiz",
|
|
1534
1534
|
ordinal: s + 1,
|
|
1535
1535
|
onClick: () => n(a),
|
|
@@ -1537,7 +1537,7 @@ function Vo(e, n) {
|
|
|
1537
1537
|
}), s++;
|
|
1538
1538
|
}), i;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function Vo(e, n, o, i) {
|
|
1541
1541
|
switch (e.type) {
|
|
1542
1542
|
case "annotation": {
|
|
1543
1543
|
const s = () => i ? e.onClick() : o.seek(e.time);
|
|
@@ -1571,16 +1571,16 @@ function To() {
|
|
|
1571
1571
|
o.annotations,
|
|
1572
1572
|
o.onAnnotationClick
|
|
1573
1573
|
),
|
|
1574
|
-
...
|
|
1575
|
-
].sort((a,
|
|
1576
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1574
|
+
...So(o.quizMarkers, o.onQuizMarkerClick)
|
|
1575
|
+
].sort((a, r) => a.time - r.time).map((a) => Vo(a, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
|
|
1576
|
+
return /* @__PURE__ */ t("div", { className: m.pins, children: i });
|
|
1577
1577
|
}
|
|
1578
1578
|
function Eo() {
|
|
1579
|
-
const e = f("duration"), n = M(), o =
|
|
1580
|
-
return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className:
|
|
1579
|
+
const e = f("duration"), n = M(), o = v();
|
|
1580
|
+
return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: m.commentMarkers, children: n.comments.map((i) => /* @__PURE__ */ t(
|
|
1581
1581
|
"span",
|
|
1582
1582
|
{
|
|
1583
|
-
className:
|
|
1583
|
+
className: m.commentMarker,
|
|
1584
1584
|
style: {
|
|
1585
1585
|
left: `${i.timestamp / e * 100}%`
|
|
1586
1586
|
}
|
|
@@ -1589,11 +1589,11 @@ function Eo() {
|
|
|
1589
1589
|
)) }) : null;
|
|
1590
1590
|
}
|
|
1591
1591
|
function Ro({ currentTime: e, position: n }) {
|
|
1592
|
-
const [o, i] =
|
|
1592
|
+
const [o, i] = L(!1), s = M(), a = _(() => s.interactiveMenuElements.length > 0 ? i((y) => !y) : s.onInteractivePinClick(e), [
|
|
1593
1593
|
s.interactiveMenuElements,
|
|
1594
1594
|
s.onInteractivePinClick,
|
|
1595
1595
|
e
|
|
1596
|
-
]),
|
|
1596
|
+
]), r = G(null), { refs: l, floatingStyles: u, context: d } = ue({
|
|
1597
1597
|
open: o,
|
|
1598
1598
|
onOpenChange: i,
|
|
1599
1599
|
whileElementsMounted: de,
|
|
@@ -1603,24 +1603,24 @@ function Ro({ currentTime: e, position: n }) {
|
|
|
1603
1603
|
Re(6),
|
|
1604
1604
|
me(),
|
|
1605
1605
|
he({
|
|
1606
|
-
element:
|
|
1606
|
+
element: r
|
|
1607
1607
|
})
|
|
1608
1608
|
]
|
|
1609
|
-
}),
|
|
1609
|
+
}), b = pe(d), { getReferenceProps: w, getFloatingProps: k } = _e([b]);
|
|
1610
1610
|
return /* @__PURE__ */ c(Q, { children: [
|
|
1611
1611
|
/* @__PURE__ */ t(
|
|
1612
1612
|
"button",
|
|
1613
1613
|
{
|
|
1614
1614
|
type: "button",
|
|
1615
1615
|
onClick: a,
|
|
1616
|
-
className:
|
|
1617
|
-
ref:
|
|
1616
|
+
className: m.interactivePinButton,
|
|
1617
|
+
ref: l.setReference,
|
|
1618
1618
|
style: { left: `${n}%` },
|
|
1619
|
-
...
|
|
1619
|
+
...w(),
|
|
1620
1620
|
children: /* @__PURE__ */ c(
|
|
1621
1621
|
"svg",
|
|
1622
1622
|
{
|
|
1623
|
-
className:
|
|
1623
|
+
className: m.interactivePin,
|
|
1624
1624
|
width: "36",
|
|
1625
1625
|
height: "44",
|
|
1626
1626
|
fill: "none",
|
|
@@ -1630,21 +1630,21 @@ function Ro({ currentTime: e, position: n }) {
|
|
|
1630
1630
|
/* @__PURE__ */ t(
|
|
1631
1631
|
"path",
|
|
1632
1632
|
{
|
|
1633
|
-
className:
|
|
1633
|
+
className: m.bg,
|
|
1634
1634
|
d: "M 33.1703,27.499961 C 34.9615,24.721661 36,21.418761 36,17.874961 36,8.0028612 27.9411,-3.8819277e-5 18,-3.8819277e-5 8.0588999,-3.8819277e-5 -1.5e-7,8.0028612 -1.5e-7,17.874961 c 0,3.5438 1.03844995,6.8467 2.82964995,9.625 4.5447501,6.8094 10.1600502,10.1014 15.2487502,16.5 5.0364,-6.3985 10.5573,-9.7259 15.0919,-16.5 z"
|
|
1635
1635
|
}
|
|
1636
1636
|
),
|
|
1637
1637
|
/* @__PURE__ */ t(
|
|
1638
1638
|
"path",
|
|
1639
1639
|
{
|
|
1640
|
-
className:
|
|
1640
|
+
className: m.symbol,
|
|
1641
1641
|
d: "m 35.499961,17.877772 c 0,3.443549 -1.008198,6.652061 -2.747494,9.351891 -2.235095,3.338633 -4.71529,5.832631 -7.286584,8.306425 -0.277599,0.267143 -0.556499,0.534085 -0.836198,0.801928 -2.174595,2.082232 -4.40389,4.216673 -6.553385,6.870196 -2.158995,-2.636621 -4.40379,-4.754859 -6.591985,-6.819788 -0.2979,-0.281145 -0.594699,-0.561289 -0.890198,-0.841534 C 7.9918219,33.077896 5.4869279,30.584698 3.2477829,27.230063 1.5082968,24.530133 0.50003905,21.321521 0.50003905,17.877772 0.50003905,8.2835422 8.3317219,0.50000048 18,0.50000048 c 9.668278,0 17.499961,7.78354172 17.499961,17.37777152 z"
|
|
1642
1642
|
}
|
|
1643
1643
|
),
|
|
1644
1644
|
/* @__PURE__ */ t(
|
|
1645
1645
|
"path",
|
|
1646
1646
|
{
|
|
1647
|
-
className:
|
|
1647
|
+
className: m.interactivePinIcon,
|
|
1648
1648
|
"data-open": o,
|
|
1649
1649
|
fillRule: "evenodd",
|
|
1650
1650
|
clipRule: "evenodd",
|
|
@@ -1661,24 +1661,24 @@ function Ro({ currentTime: e, position: n }) {
|
|
|
1661
1661
|
fe,
|
|
1662
1662
|
{
|
|
1663
1663
|
order: ["floating", "content"],
|
|
1664
|
-
context:
|
|
1664
|
+
context: d,
|
|
1665
1665
|
modal: !0,
|
|
1666
1666
|
children: /* @__PURE__ */ c(
|
|
1667
1667
|
"div",
|
|
1668
1668
|
{
|
|
1669
|
-
ref:
|
|
1669
|
+
ref: l.setFloating,
|
|
1670
1670
|
style: u,
|
|
1671
|
-
className:
|
|
1671
|
+
className: m.interactivePinMenu,
|
|
1672
1672
|
...k(),
|
|
1673
1673
|
children: [
|
|
1674
1674
|
s.interactiveMenuElements.map(
|
|
1675
|
-
({ id:
|
|
1675
|
+
({ id: y, text: N, onClick: h }) => /* @__PURE__ */ c(
|
|
1676
1676
|
"button",
|
|
1677
1677
|
{
|
|
1678
1678
|
type: "button",
|
|
1679
|
-
className:
|
|
1679
|
+
className: m.interactivePinMenuItem,
|
|
1680
1680
|
onClick: () => {
|
|
1681
|
-
h(
|
|
1681
|
+
h(y, e), i(!1);
|
|
1682
1682
|
},
|
|
1683
1683
|
children: [
|
|
1684
1684
|
/* @__PURE__ */ t(
|
|
@@ -1703,15 +1703,15 @@ function Ro({ currentTime: e, position: n }) {
|
|
|
1703
1703
|
N
|
|
1704
1704
|
]
|
|
1705
1705
|
},
|
|
1706
|
-
|
|
1706
|
+
y
|
|
1707
1707
|
)
|
|
1708
1708
|
),
|
|
1709
1709
|
/* @__PURE__ */ t(
|
|
1710
1710
|
Ce,
|
|
1711
1711
|
{
|
|
1712
|
-
ref:
|
|
1713
|
-
context:
|
|
1714
|
-
className:
|
|
1712
|
+
ref: r,
|
|
1713
|
+
context: d,
|
|
1714
|
+
className: m.arrow
|
|
1715
1715
|
}
|
|
1716
1716
|
)
|
|
1717
1717
|
]
|
|
@@ -1724,16 +1724,16 @@ function Ro({ currentTime: e, position: n }) {
|
|
|
1724
1724
|
function Ao() {
|
|
1725
1725
|
const e = f("duration"), n = f("currentTime"), o = n / e * 100, { disableInteractivePinRanges: i } = M();
|
|
1726
1726
|
return i.some(
|
|
1727
|
-
([a,
|
|
1728
|
-
) ? null : /* @__PURE__ */ t("div", { className:
|
|
1727
|
+
([a, r]) => n >= a && n <= r
|
|
1728
|
+
) ? null : /* @__PURE__ */ t("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ t(Ro, { currentTime: n, position: o }) }) });
|
|
1729
1729
|
}
|
|
1730
1730
|
function Bo() {
|
|
1731
|
-
const e = f("paused"), n =
|
|
1731
|
+
const e = f("paused"), n = v();
|
|
1732
1732
|
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(Ao, {}) : null;
|
|
1733
1733
|
}
|
|
1734
|
-
const Oo = `${
|
|
1734
|
+
const Oo = `${m.progress} ${m.trackInner}`, Fo = `${m.trackFill} ${m.trackInner}`;
|
|
1735
1735
|
function Ie({ className: e }) {
|
|
1736
|
-
const n =
|
|
1736
|
+
const n = v(), { hasAnnotations: o, hasQuizmarkers: i, interactive: s } = M(), a = e ? `${m.timelineWrapper} ${e}` : m.timelineWrapper;
|
|
1737
1737
|
return /* @__PURE__ */ c("div", { className: a, children: [
|
|
1738
1738
|
s ? /* @__PURE__ */ t(Bo, {}) : null,
|
|
1739
1739
|
s || o || i ? /* @__PURE__ */ t(To, {}) : null,
|
|
@@ -1741,14 +1741,14 @@ function Ie({ className: e }) {
|
|
|
1741
1741
|
/* @__PURE__ */ c(
|
|
1742
1742
|
$.Root,
|
|
1743
1743
|
{
|
|
1744
|
-
className:
|
|
1744
|
+
className: m.root,
|
|
1745
1745
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
1746
1746
|
children: [
|
|
1747
|
-
/* @__PURE__ */ c($.Track, { className:
|
|
1747
|
+
/* @__PURE__ */ c($.Track, { className: m.track, children: [
|
|
1748
1748
|
/* @__PURE__ */ t($.Progress, { className: Oo }),
|
|
1749
1749
|
/* @__PURE__ */ t($.TrackFill, { className: Fo })
|
|
1750
1750
|
] }),
|
|
1751
|
-
/* @__PURE__ */ t($.Thumb, { className:
|
|
1751
|
+
/* @__PURE__ */ t($.Thumb, { className: m.thumb })
|
|
1752
1752
|
]
|
|
1753
1753
|
}
|
|
1754
1754
|
)
|
|
@@ -1763,7 +1763,7 @@ const Zo = "_wrapper_12cb0_1", zo = "_track_12cb0_6", Ko = "_thumb_12cb0_18", Do
|
|
|
1763
1763
|
root: $o
|
|
1764
1764
|
};
|
|
1765
1765
|
function Uo() {
|
|
1766
|
-
const e = F(), n = f("volume"), o = f("muted"), i =
|
|
1766
|
+
const e = F(), n = f("volume"), o = f("muted"), i = v(), s = o || n === 0, { t: a } = C();
|
|
1767
1767
|
return /* @__PURE__ */ c("div", { className: q.wrapper, children: [
|
|
1768
1768
|
/* @__PURE__ */ t(
|
|
1769
1769
|
"button",
|
|
@@ -1884,7 +1884,7 @@ const He = {
|
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
1886
|
};
|
|
1887
|
-
function
|
|
1887
|
+
function Se(e) {
|
|
1888
1888
|
return typeof e == "number" && !isNaN(e);
|
|
1889
1889
|
}
|
|
1890
1890
|
function qo(e, n = 1e3) {
|
|
@@ -1895,7 +1895,7 @@ function qo(e, n = 1e3) {
|
|
|
1895
1895
|
}, n));
|
|
1896
1896
|
};
|
|
1897
1897
|
}
|
|
1898
|
-
const
|
|
1898
|
+
const Ve = {
|
|
1899
1899
|
volume: 1,
|
|
1900
1900
|
muted: !1,
|
|
1901
1901
|
lang: null,
|
|
@@ -1908,21 +1908,21 @@ const Se = {
|
|
|
1908
1908
|
};
|
|
1909
1909
|
class Go {
|
|
1910
1910
|
constructor() {
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1911
|
+
S(this, "playerId", "studio-player");
|
|
1912
|
+
S(this, "mediaId", null);
|
|
1913
|
+
S(this, "data", Ve);
|
|
1914
|
+
S(this, "time", null);
|
|
1915
|
+
S(this, "overrideTime", null);
|
|
1916
|
+
S(this, "saveTime", () => {
|
|
1917
1917
|
if (!this.mediaId) return;
|
|
1918
1918
|
const n = (this.time ?? 0).toString();
|
|
1919
1919
|
localStorage.setItem(this.mediaId, n);
|
|
1920
1920
|
});
|
|
1921
|
-
|
|
1921
|
+
S(this, "saveTimeThrottled", qo(this.saveTime, 1e3));
|
|
1922
1922
|
// only used for useStudioPlayer hook's state initialization
|
|
1923
|
-
|
|
1923
|
+
S(this, "initializeState", (n) => {
|
|
1924
1924
|
const o = localStorage.getItem(this.playerId);
|
|
1925
|
-
if (
|
|
1925
|
+
if (Se(n) && n >= 0 && (this.overrideTime = n), o)
|
|
1926
1926
|
try {
|
|
1927
1927
|
this.data = JSON.parse(o);
|
|
1928
1928
|
} catch {
|
|
@@ -1937,7 +1937,7 @@ class Go {
|
|
|
1937
1937
|
disableCaptionSettings: !1
|
|
1938
1938
|
};
|
|
1939
1939
|
});
|
|
1940
|
-
|
|
1940
|
+
S(this, "saveData", (n, o) => {
|
|
1941
1941
|
this.data = {
|
|
1942
1942
|
...this.data,
|
|
1943
1943
|
[n]: o
|
|
@@ -1990,16 +1990,16 @@ class Go {
|
|
|
1990
1990
|
onChange(n, o, i = "studio-player") {
|
|
1991
1991
|
const s = i ? localStorage.getItem(i) : null, a = o ? localStorage.getItem(o) : null;
|
|
1992
1992
|
this.playerId = i, this.mediaId = o;
|
|
1993
|
-
let
|
|
1993
|
+
let r = {};
|
|
1994
1994
|
if (s)
|
|
1995
1995
|
try {
|
|
1996
|
-
|
|
1996
|
+
r = JSON.parse(s);
|
|
1997
1997
|
} catch {
|
|
1998
1998
|
}
|
|
1999
1999
|
this.data = {
|
|
2000
|
-
...
|
|
2001
|
-
...
|
|
2002
|
-
},
|
|
2000
|
+
...Ve,
|
|
2001
|
+
...r
|
|
2002
|
+
}, Se(this.overrideTime) && this.overrideTime >= 0 ? this.time = this.overrideTime : this.time = a ? +a : null;
|
|
2003
2003
|
}
|
|
2004
2004
|
save() {
|
|
2005
2005
|
if (!this.playerId) return;
|
|
@@ -2008,53 +2008,53 @@ class Go {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
}
|
|
2010
2010
|
function Qo(e, n, o, i) {
|
|
2011
|
-
const s = E(() => new Go(), []), [a,
|
|
2011
|
+
const s = E(() => new Go(), []), [a, r] = L(
|
|
2012
2012
|
s.initializeState(i)
|
|
2013
|
-
),
|
|
2013
|
+
), l = _(
|
|
2014
2014
|
(h) => {
|
|
2015
|
-
|
|
2016
|
-
...
|
|
2015
|
+
r((g) => (s.saveData("multiplier", h), {
|
|
2016
|
+
...g,
|
|
2017
2017
|
captionsFontSizeMultiplier: h
|
|
2018
2018
|
}));
|
|
2019
2019
|
},
|
|
2020
2020
|
[s]
|
|
2021
2021
|
), u = _(() => {
|
|
2022
|
-
|
|
2023
|
-
const
|
|
2024
|
-
return s.saveData("ontop",
|
|
2022
|
+
r((h) => {
|
|
2023
|
+
const g = !h.captionPositionOnTop;
|
|
2024
|
+
return s.saveData("ontop", g), {
|
|
2025
2025
|
...h,
|
|
2026
|
-
captionPositionOnTop:
|
|
2026
|
+
captionPositionOnTop: g
|
|
2027
2027
|
};
|
|
2028
2028
|
});
|
|
2029
|
-
}, [s]),
|
|
2030
|
-
|
|
2031
|
-
const
|
|
2032
|
-
return s.saveData("invert",
|
|
2029
|
+
}, [s]), d = _(() => {
|
|
2030
|
+
r((h) => {
|
|
2031
|
+
const g = !h.captionsInvertColors;
|
|
2032
|
+
return s.saveData("invert", g), {
|
|
2033
2033
|
...h,
|
|
2034
|
-
captionsInvertColors:
|
|
2034
|
+
captionsInvertColors: g
|
|
2035
2035
|
};
|
|
2036
2036
|
});
|
|
2037
|
-
}, [s]),
|
|
2038
|
-
|
|
2039
|
-
const
|
|
2040
|
-
return s.saveData("comments",
|
|
2037
|
+
}, [s]), b = _(() => {
|
|
2038
|
+
r((h) => {
|
|
2039
|
+
const g = !h.commentsEnabled;
|
|
2040
|
+
return s.saveData("comments", g), {
|
|
2041
2041
|
...h,
|
|
2042
|
-
commentsEnabled:
|
|
2042
|
+
commentsEnabled: g
|
|
2043
2043
|
};
|
|
2044
2044
|
});
|
|
2045
|
-
}, [s]),
|
|
2046
|
-
|
|
2045
|
+
}, [s]), w = _(() => {
|
|
2046
|
+
r((h) => ({
|
|
2047
2047
|
...h,
|
|
2048
2048
|
interactionsDisabled: !1
|
|
2049
2049
|
}));
|
|
2050
2050
|
}, []), k = _(() => {
|
|
2051
|
-
|
|
2051
|
+
r((h) => ({
|
|
2052
2052
|
...h,
|
|
2053
2053
|
interactionsDisabled: !0
|
|
2054
2054
|
}));
|
|
2055
|
-
}, []),
|
|
2056
|
-
|
|
2057
|
-
...
|
|
2055
|
+
}, []), y = _((h) => {
|
|
2056
|
+
r((g) => ({
|
|
2057
|
+
...g,
|
|
2058
2058
|
globalKeysDisabled: h
|
|
2059
2059
|
}));
|
|
2060
2060
|
}, []), N = E(() => e ? {
|
|
@@ -2067,13 +2067,13 @@ function Qo(e, n, o, i) {
|
|
|
2067
2067
|
...a,
|
|
2068
2068
|
commentsEnabled: n || a.commentsEnabled
|
|
2069
2069
|
},
|
|
2070
|
-
setCaptionsFontSizeMultiplier:
|
|
2070
|
+
setCaptionsFontSizeMultiplier: l,
|
|
2071
2071
|
toggleCaptionPositionOnTop: u,
|
|
2072
|
-
toggleCaptionsInvertColors:
|
|
2073
|
-
enableInteractions:
|
|
2072
|
+
toggleCaptionsInvertColors: d,
|
|
2073
|
+
enableInteractions: w,
|
|
2074
2074
|
disableInteractions: k,
|
|
2075
|
-
setGlobalKeysDisabled:
|
|
2076
|
-
toggleComments:
|
|
2075
|
+
setGlobalKeysDisabled: y,
|
|
2076
|
+
toggleComments: b,
|
|
2077
2077
|
disableCaptionSettings: o
|
|
2078
2078
|
},
|
|
2079
2079
|
shortcuts: N,
|
|
@@ -2110,28 +2110,41 @@ function Xo() {
|
|
|
2110
2110
|
/* @__PURE__ */ t(ze, { captions: e.captions })
|
|
2111
2111
|
] });
|
|
2112
2112
|
}
|
|
2113
|
-
function Jo(e, n, o) {
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
a >= e.time && !i && (i = !0, n(e, l)), a < e.time && i && (i = !1);
|
|
2113
|
+
function Jo(e, n, o, i, s) {
|
|
2114
|
+
return (a) => {
|
|
2115
|
+
const r = a.detail.currentTime, l = !o.paused;
|
|
2116
|
+
r >= e.time && !i[e.id] && (s({ ...i, [e.id]: !0 }), n(e, l));
|
|
2118
2117
|
};
|
|
2119
2118
|
}
|
|
2120
2119
|
function ei() {
|
|
2121
|
-
const e = F(), { quizMarkers: n, onQuizMarkerShow: o } = M()
|
|
2120
|
+
const e = F(), { quizMarkers: n, onQuizMarkerShow: o } = M(), [i, s] = L(
|
|
2121
|
+
n.reduce((a, r) => (a[r.id] = !1, a), {})
|
|
2122
|
+
);
|
|
2122
2123
|
O(() => {
|
|
2123
2124
|
if (!e)
|
|
2124
2125
|
return;
|
|
2125
|
-
const
|
|
2126
|
-
|
|
2127
|
-
const
|
|
2128
|
-
|
|
2126
|
+
const a = [], r = (l) => {
|
|
2127
|
+
var b;
|
|
2128
|
+
const u = (b = l == null ? void 0 : l.request) == null ? void 0 : b.detail, d = n.reduce((w, k) => (w[k.id] = k.time <= u, w), {});
|
|
2129
|
+
s({ ...i, ...d });
|
|
2130
|
+
};
|
|
2131
|
+
e.addEventListener("seeked", r);
|
|
2132
|
+
for (const l of n) {
|
|
2133
|
+
const u = Jo(
|
|
2134
|
+
l,
|
|
2135
|
+
o,
|
|
2136
|
+
e,
|
|
2137
|
+
i,
|
|
2138
|
+
s
|
|
2139
|
+
);
|
|
2140
|
+
e.addEventListener("time-update", u), a.push(u);
|
|
2129
2141
|
}
|
|
2130
2142
|
return () => {
|
|
2131
|
-
for (const
|
|
2132
|
-
e.removeEventListener("time-update",
|
|
2143
|
+
for (const l of a)
|
|
2144
|
+
e.removeEventListener("time-update", l);
|
|
2145
|
+
e.removeEventListener("seeked", r);
|
|
2133
2146
|
};
|
|
2134
|
-
}, [n, e]);
|
|
2147
|
+
}, [n, e, i]);
|
|
2135
2148
|
}
|
|
2136
2149
|
function ti() {
|
|
2137
2150
|
return ei(), null;
|
|
@@ -2145,21 +2158,21 @@ function ui({
|
|
|
2145
2158
|
captions: i = [],
|
|
2146
2159
|
thumbnail: s,
|
|
2147
2160
|
hideFullScreen: a = !1,
|
|
2148
|
-
comments:
|
|
2149
|
-
locale:
|
|
2161
|
+
comments: r = [],
|
|
2162
|
+
locale: l = "en",
|
|
2150
2163
|
annotations: u = [],
|
|
2151
|
-
quizMarkers:
|
|
2152
|
-
interactive:
|
|
2153
|
-
onAnnotationClick:
|
|
2164
|
+
quizMarkers: d = [],
|
|
2165
|
+
interactive: b = !1,
|
|
2166
|
+
onAnnotationClick: w = ne,
|
|
2154
2167
|
onQuizMarkerClick: k = ne,
|
|
2155
|
-
onQuizMarkerShow:
|
|
2168
|
+
onQuizMarkerShow: y = ne,
|
|
2156
2169
|
onInteractivePinClick: N = ne,
|
|
2157
2170
|
interactiveMenuElements: h = [],
|
|
2158
|
-
kebabMenuElements:
|
|
2171
|
+
kebabMenuElements: g = [],
|
|
2159
2172
|
darkMode: P = !1,
|
|
2160
2173
|
autoLoadCaptionSrc: T = "",
|
|
2161
2174
|
forceComments: Z = !1,
|
|
2162
|
-
disableCaptionSettings:
|
|
2175
|
+
disableCaptionSettings: V = !1,
|
|
2163
2176
|
disableStorage: Y = !1,
|
|
2164
2177
|
startAt: X,
|
|
2165
2178
|
crossOrigin: se,
|
|
@@ -2169,37 +2182,37 @@ function ui({
|
|
|
2169
2182
|
const { contextValue: ae, shortcuts: Je, storage: et } = Qo(
|
|
2170
2183
|
a,
|
|
2171
2184
|
Z,
|
|
2172
|
-
|
|
2185
|
+
V,
|
|
2173
2186
|
X
|
|
2174
2187
|
), { i18n: we } = C();
|
|
2175
2188
|
O(() => {
|
|
2176
|
-
we.changeLanguage(
|
|
2177
|
-
}, [we,
|
|
2178
|
-
const [ye, ke] =
|
|
2189
|
+
we.changeLanguage(l);
|
|
2190
|
+
}, [we, l]);
|
|
2191
|
+
const [ye, ke] = L("none"), tt = _((R) => {
|
|
2179
2192
|
ht(R) ? ke("audio") : pt(R) && ke("video");
|
|
2180
2193
|
}, []);
|
|
2181
2194
|
return /* @__PURE__ */ t(
|
|
2182
2195
|
kt,
|
|
2183
2196
|
{
|
|
2184
2197
|
hideFullScreen: a,
|
|
2185
|
-
comments:
|
|
2198
|
+
comments: r,
|
|
2186
2199
|
captions: i,
|
|
2187
2200
|
thumbnail: s,
|
|
2188
2201
|
annotations: u,
|
|
2189
|
-
quizMarkers:
|
|
2190
|
-
interactive:
|
|
2191
|
-
onAnnotationClick:
|
|
2202
|
+
quizMarkers: d,
|
|
2203
|
+
interactive: b,
|
|
2204
|
+
onAnnotationClick: w,
|
|
2192
2205
|
onQuizMarkerClick: k,
|
|
2193
2206
|
onInteractivePinClick: N,
|
|
2194
2207
|
interactiveMenuElements: h,
|
|
2195
|
-
kebabMenuElements:
|
|
2208
|
+
kebabMenuElements: g,
|
|
2196
2209
|
darkMode: P,
|
|
2197
2210
|
forceComments: Z,
|
|
2198
|
-
disableCaptionSettings:
|
|
2211
|
+
disableCaptionSettings: V,
|
|
2199
2212
|
disableStorage: Y,
|
|
2200
2213
|
captionOffsetOverride: Ye,
|
|
2201
2214
|
disableInteractivePinRanges: Xe,
|
|
2202
|
-
onQuizMarkerShow:
|
|
2215
|
+
onQuizMarkerShow: y,
|
|
2203
2216
|
children: /* @__PURE__ */ t(yt, { contextValue: ae, children: /* @__PURE__ */ c(
|
|
2204
2217
|
_t,
|
|
2205
2218
|
{
|
|
@@ -2228,11 +2241,11 @@ function ui({
|
|
|
2228
2241
|
{
|
|
2229
2242
|
darkMode: P,
|
|
2230
2243
|
playerRef: n,
|
|
2231
|
-
showCaptionsButton: !
|
|
2244
|
+
showCaptionsButton: !V
|
|
2232
2245
|
}
|
|
2233
2246
|
),
|
|
2234
2247
|
/* @__PURE__ */ t(Pt, { annotations: u }),
|
|
2235
|
-
!!
|
|
2248
|
+
!!d.length && /* @__PURE__ */ t(ti, {})
|
|
2236
2249
|
]
|
|
2237
2250
|
}
|
|
2238
2251
|
) })
|