@instructure/studio-player 0.5.7 → 1.0.1
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,7 +1,7 @@
|
|
|
1
|
-
import './index-
|
|
1
|
+
import './index-DpG3-qD1.css';var ht = Object.defineProperty;
|
|
2
2
|
var pt = (e, t, o) => t in e ? ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
3
|
var H = (e, t, o) => pt(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
-
import { jsx as n, jsxs as
|
|
4
|
+
import { jsx as n, jsxs as l, Fragment as X } from "react/jsx-runtime";
|
|
5
5
|
import { createContext as we, useContext as ye, useState as k, useCallback as p, useEffect as Z, useMemo as D, useRef as z, forwardRef as ft } from "react";
|
|
6
6
|
import { u as V, s as ge, a as b, b as de, i as _t, T as Ct, C as gt, c as bt, d as vt, e as wt, P as yt, F as kt, f as ce, g as be, t as G, v as se, h as Lt, j as xt, k as Mt, l as Pt, M as Nt, m as It } from "./vidstack-CRo1u9eU.js";
|
|
7
7
|
import { n as Zi } from "./vidstack-CRo1u9eU.js";
|
|
@@ -58,7 +58,7 @@ function Ht({
|
|
|
58
58
|
captions: i,
|
|
59
59
|
thumbnail: s,
|
|
60
60
|
annotations: a,
|
|
61
|
-
quizMarkers:
|
|
61
|
+
quizMarkers: r,
|
|
62
62
|
interactive: c,
|
|
63
63
|
onAnnotationClick: u,
|
|
64
64
|
onQuizMarkerClick: d,
|
|
@@ -84,7 +84,7 @@ function Ht({
|
|
|
84
84
|
captions: i,
|
|
85
85
|
thumbnail: s,
|
|
86
86
|
annotations: a,
|
|
87
|
-
quizMarkers:
|
|
87
|
+
quizMarkers: r,
|
|
88
88
|
interactive: c,
|
|
89
89
|
onAnnotationClick: u,
|
|
90
90
|
onQuizMarkerClick: d,
|
|
@@ -94,7 +94,7 @@ function Ht({
|
|
|
94
94
|
darkMode: M,
|
|
95
95
|
hasComments: o.length > 0,
|
|
96
96
|
hasAnnotations: a.length > 0,
|
|
97
|
-
hasQuizmarkers:
|
|
97
|
+
hasQuizmarkers: r.length > 0,
|
|
98
98
|
forceComments: I,
|
|
99
99
|
disableCaptionSettings: h,
|
|
100
100
|
disableStorage: g,
|
|
@@ -128,7 +128,7 @@ const Ot = "_annotation-overlay_1kxzn_1", Bt = {
|
|
|
128
128
|
function Dt({ annotations: e }) {
|
|
129
129
|
const t = V(), o = v(), i = y(), [s, a] = k(
|
|
130
130
|
null
|
|
131
|
-
),
|
|
131
|
+
), r = p(
|
|
132
132
|
(u) => {
|
|
133
133
|
t == null || t.pause(), i.interactive || o.disableInteractions(), a(u);
|
|
134
134
|
},
|
|
@@ -141,7 +141,7 @@ function Dt({ annotations: e }) {
|
|
|
141
141
|
return;
|
|
142
142
|
const u = [];
|
|
143
143
|
for (const d of e) {
|
|
144
|
-
const _ = Ft(d,
|
|
144
|
+
const _ = Ft(d, r);
|
|
145
145
|
t.addEventListener("time-update", _), u.push(_);
|
|
146
146
|
}
|
|
147
147
|
if (s) {
|
|
@@ -169,7 +169,7 @@ const Zt = "_media-buffering-indicator_1fwjr_1", jt = "_media-buffering-spinner_
|
|
|
169
169
|
mediaBufferingTrackFill: $t
|
|
170
170
|
};
|
|
171
171
|
function Ge() {
|
|
172
|
-
return /* @__PURE__ */ n("div", { className: ae.mediaBufferingIndicator, children: /* @__PURE__ */
|
|
172
|
+
return /* @__PURE__ */ n("div", { className: ae.mediaBufferingIndicator, children: /* @__PURE__ */ l(ge.Root, { className: ae.mediaBufferingSpinner, size: 96, children: [
|
|
173
173
|
/* @__PURE__ */ n(ge.Track, { className: ae.mediaBufferingTrack, width: 8 }),
|
|
174
174
|
/* @__PURE__ */ n(
|
|
175
175
|
ge.TrackFill,
|
|
@@ -187,29 +187,31 @@ const Ut = [
|
|
|
187
187
|
"ArrowRight",
|
|
188
188
|
"Escape"
|
|
189
189
|
];
|
|
190
|
-
function Se(e, t = !1) {
|
|
190
|
+
function Se(e, t = !1, o = !0) {
|
|
191
191
|
Z(() => {
|
|
192
|
-
|
|
192
|
+
if (!o)
|
|
193
|
+
return;
|
|
194
|
+
const i = new AbortController();
|
|
193
195
|
return document.addEventListener(
|
|
194
196
|
"keydown",
|
|
195
|
-
(
|
|
196
|
-
var
|
|
197
|
-
return (
|
|
197
|
+
(s) => {
|
|
198
|
+
var a;
|
|
199
|
+
return (a = e[s.key]) == null ? void 0 : a.call(e, s);
|
|
198
200
|
},
|
|
199
201
|
{
|
|
200
202
|
passive: !0,
|
|
201
|
-
signal:
|
|
203
|
+
signal: i.signal
|
|
202
204
|
}
|
|
203
205
|
), t && window.addEventListener(
|
|
204
206
|
"keydown",
|
|
205
|
-
(
|
|
206
|
-
Ut.includes(
|
|
207
|
+
(s) => {
|
|
208
|
+
Ut.includes(s.code) && s.preventDefault();
|
|
207
209
|
},
|
|
208
|
-
{ signal:
|
|
210
|
+
{ signal: i.signal }
|
|
209
211
|
), () => {
|
|
210
|
-
|
|
212
|
+
i.abort();
|
|
211
213
|
};
|
|
212
|
-
}, [e]);
|
|
214
|
+
}, [e, t, o]);
|
|
213
215
|
}
|
|
214
216
|
function qt(e) {
|
|
215
217
|
const t = D(() => ({ Escape: e }), [e]);
|
|
@@ -242,7 +244,7 @@ function sn({ onClose: e }) {
|
|
|
242
244
|
const o = (i) => {
|
|
243
245
|
i && i.focus();
|
|
244
246
|
};
|
|
245
|
-
return /* @__PURE__ */
|
|
247
|
+
return /* @__PURE__ */ l(
|
|
246
248
|
"div",
|
|
247
249
|
{
|
|
248
250
|
className: A.keyboardShortcutsOverlay,
|
|
@@ -251,7 +253,7 @@ function sn({ onClose: e }) {
|
|
|
251
253
|
role: "dialog",
|
|
252
254
|
"aria-label": t("KEYBOARD_SHORTCUTS"),
|
|
253
255
|
children: [
|
|
254
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ l("header", { children: [
|
|
255
257
|
/* @__PURE__ */ n("h2", { children: t("KEYBOARD_SHORTCUTS") }),
|
|
256
258
|
/* @__PURE__ */ n(
|
|
257
259
|
"button",
|
|
@@ -264,85 +266,85 @@ function sn({ onClose: e }) {
|
|
|
264
266
|
}
|
|
265
267
|
)
|
|
266
268
|
] }),
|
|
267
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ l("table", { children: [
|
|
268
270
|
/* @__PURE__ */ n("caption", { className: A.screenReaderContent, children: t("KEYBOARD_SHORTCUTS") }),
|
|
269
|
-
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ l("tr", { children: [
|
|
270
272
|
/* @__PURE__ */ n("th", { children: t("ACTION") }),
|
|
271
273
|
/* @__PURE__ */ n("th", { children: t("SHORTCUT") })
|
|
272
274
|
] }) }),
|
|
273
|
-
/* @__PURE__ */
|
|
274
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ l("tbody", { children: [
|
|
276
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
275
277
|
/* @__PURE__ */ n("td", { children: t("SEEK_BACKWARD", { seconds: 5 }) }),
|
|
276
278
|
/* @__PURE__ */ n("td", { children: t("LEFT_ARROW") })
|
|
277
279
|
] }),
|
|
278
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
279
281
|
/* @__PURE__ */ n("td", { children: t("SEEK_FORWARD", { seconds: 5 }) }),
|
|
280
282
|
/* @__PURE__ */ n("td", { children: t("RIGHT_ARROW") })
|
|
281
283
|
] }),
|
|
282
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
283
285
|
/* @__PURE__ */ n("td", { children: t("SEEK_BACKWARD", { seconds: 10 }) }),
|
|
284
286
|
/* @__PURE__ */ n("td", { children: "J" })
|
|
285
287
|
] }),
|
|
286
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
287
289
|
/* @__PURE__ */ n("td", { children: t("SEEK_FORWARD", { seconds: 10 }) }),
|
|
288
290
|
/* @__PURE__ */ n("td", { children: "L" })
|
|
289
291
|
] }),
|
|
290
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
291
293
|
/* @__PURE__ */ n("td", { children: t("INCREASE_VOLUME", { percent: 5 }) }),
|
|
292
294
|
/* @__PURE__ */ n("td", { children: t("UP_ARROW") })
|
|
293
295
|
] }),
|
|
294
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
295
297
|
/* @__PURE__ */ n("td", { children: t("DECREASE_VOLUME", { percent: 5 }) }),
|
|
296
298
|
/* @__PURE__ */ n("td", { children: t("DOWN_ARROW") })
|
|
297
299
|
] }),
|
|
298
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
299
301
|
/* @__PURE__ */ n("td", { children: t("TOGGLE_MUTED") }),
|
|
300
302
|
/* @__PURE__ */ n("td", { children: "M" })
|
|
301
303
|
] }),
|
|
302
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
303
305
|
/* @__PURE__ */ n("td", { children: t("TOGGLE_PLAY_PAUSE") }),
|
|
304
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ l("td", { children: [
|
|
305
307
|
t("SPACE"),
|
|
306
308
|
", K"
|
|
307
309
|
] })
|
|
308
310
|
] }),
|
|
309
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
310
312
|
/* @__PURE__ */ n("td", { children: t("ENTER_FULLSCREEN") }),
|
|
311
313
|
/* @__PURE__ */ n("td", { children: "F" })
|
|
312
314
|
] }),
|
|
313
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
314
316
|
/* @__PURE__ */ n("td", { children: t("EXIT_FULLSCREEN") }),
|
|
315
317
|
/* @__PURE__ */ n("td", { children: "Esc, F" })
|
|
316
318
|
] }),
|
|
317
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
318
320
|
/* @__PURE__ */ n("td", { children: t("TOGGLE_CAPTIONS") }),
|
|
319
321
|
/* @__PURE__ */ n("td", { children: "C" })
|
|
320
322
|
] }),
|
|
321
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
322
324
|
/* @__PURE__ */ n("td", { children: t("NEXT_CAPTION_LANGUAGE") }),
|
|
323
325
|
/* @__PURE__ */ n("td", { children: "V" })
|
|
324
326
|
] }),
|
|
325
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
326
328
|
/* @__PURE__ */ n("td", { children: t("PREVIOUS_CAPTION_LANGUAGE") }),
|
|
327
329
|
/* @__PURE__ */ n("td", { children: "X" })
|
|
328
330
|
] }),
|
|
329
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
330
332
|
/* @__PURE__ */ n("td", { children: t("DECREASE_PLAYBACK_SPEED") }),
|
|
331
333
|
/* @__PURE__ */ n("td", { children: "A" })
|
|
332
334
|
] }),
|
|
333
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
334
336
|
/* @__PURE__ */ n("td", { children: t("RESET_PLAYBACK_SPEED") }),
|
|
335
337
|
/* @__PURE__ */ n("td", { children: "S" })
|
|
336
338
|
] }),
|
|
337
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
338
340
|
/* @__PURE__ */ n("td", { children: t("INCREASE_PLAYBACK_SPEED") }),
|
|
339
341
|
/* @__PURE__ */ n("td", { children: "D" })
|
|
340
342
|
] }),
|
|
341
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
342
344
|
/* @__PURE__ */ n("td", { children: t("JUMP_TO_START") }),
|
|
343
345
|
/* @__PURE__ */ n("td", { children: "0" })
|
|
344
346
|
] }),
|
|
345
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ l("tr", { children: [
|
|
346
348
|
/* @__PURE__ */ n("td", { children: t("JUMP_TO_PERCENTAGE") }),
|
|
347
349
|
/* @__PURE__ */ n("td", { children: "1-9" })
|
|
348
350
|
] })
|
|
@@ -352,18 +354,18 @@ function sn({ onClose: e }) {
|
|
|
352
354
|
}
|
|
353
355
|
);
|
|
354
356
|
}
|
|
355
|
-
const an = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }),
|
|
356
|
-
share: /* @__PURE__ */ n(
|
|
357
|
-
transcript: /* @__PURE__ */ n(
|
|
357
|
+
const an = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), rn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), ln = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), cn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), We = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), un = {
|
|
358
|
+
share: /* @__PURE__ */ n(rn, {}),
|
|
359
|
+
transcript: /* @__PURE__ */ n(ln, {}),
|
|
358
360
|
media: /* @__PURE__ */ n(cn, {}),
|
|
359
361
|
delete: /* @__PURE__ */ n(We, {})
|
|
360
362
|
}, dn = (e) => typeof e != "string";
|
|
361
363
|
function mn() {
|
|
362
|
-
const [e, t] = k(!1), [o, i] = k(null), s = v(), a = y(),
|
|
364
|
+
const [e, t] = k(!1), [o, i] = k(null), s = v(), a = y(), r = () => {
|
|
363
365
|
t(!e), s.setGlobalKeysDisabled(!e);
|
|
364
366
|
}, c = z(null), u = z([]), { refs: d, floatingStyles: _, context: C } = me({
|
|
365
367
|
open: e,
|
|
366
|
-
onOpenChange:
|
|
368
|
+
onOpenChange: r,
|
|
367
369
|
whileElementsMounted: he,
|
|
368
370
|
placement: "bottom-end",
|
|
369
371
|
middleware: [
|
|
@@ -381,7 +383,7 @@ function mn() {
|
|
|
381
383
|
}), M = Me(C), { getReferenceProps: L, getFloatingProps: I, getItemProps: h } = Pe(
|
|
382
384
|
[M, w]
|
|
383
385
|
), { t: g } = f();
|
|
384
|
-
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */
|
|
386
|
+
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ l(X, { children: [
|
|
385
387
|
/* @__PURE__ */ n(
|
|
386
388
|
"button",
|
|
387
389
|
{
|
|
@@ -394,12 +396,12 @@ function mn() {
|
|
|
394
396
|
tabIndex: s.state.interactionsDisabled || e ? -1 : 0,
|
|
395
397
|
ref: d.setReference,
|
|
396
398
|
...L({
|
|
397
|
-
onClick: () =>
|
|
399
|
+
onClick: () => r()
|
|
398
400
|
}),
|
|
399
401
|
children: /* @__PURE__ */ n(an, {})
|
|
400
402
|
}
|
|
401
403
|
),
|
|
402
|
-
e && /* @__PURE__ */ n(Ne, { context: C, guards: !1, children: /* @__PURE__ */
|
|
404
|
+
e && /* @__PURE__ */ n(Ne, { context: C, guards: !1, children: /* @__PURE__ */ l(
|
|
403
405
|
"div",
|
|
404
406
|
{
|
|
405
407
|
id: "kebab-menu",
|
|
@@ -411,7 +413,7 @@ function mn() {
|
|
|
411
413
|
...I(),
|
|
412
414
|
children: [
|
|
413
415
|
a.kebabMenuElements.map(
|
|
414
|
-
({ id: E, text: P, icon: S, onClick: O }, R) => /* @__PURE__ */
|
|
416
|
+
({ id: E, text: P, icon: S, onClick: O }, R) => /* @__PURE__ */ l(
|
|
415
417
|
"button",
|
|
416
418
|
{
|
|
417
419
|
tabIndex: o === R ? 0 : -1,
|
|
@@ -449,15 +451,15 @@ function mn() {
|
|
|
449
451
|
}
|
|
450
452
|
const hn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) });
|
|
451
453
|
function pn() {
|
|
452
|
-
const [e, t] = k(!1), [o, i] = k(!1), s = v(), a = b("playing"),
|
|
453
|
-
s.setKeyboardShortcutsOpen(!0), s.disableInteractions(), a && (i(!0),
|
|
454
|
-
}, [a,
|
|
455
|
-
s.setKeyboardShortcutsOpen(!1), t(!0), s.enableInteractions(), o && (i(!1),
|
|
456
|
-
}, [o,
|
|
454
|
+
const [e, t] = k(!1), [o, i] = k(!1), s = v(), a = b("playing"), r = de(), { t: c } = f(), u = p(() => {
|
|
455
|
+
s.setKeyboardShortcutsOpen(!0), s.disableInteractions(), a && (i(!0), r.pause());
|
|
456
|
+
}, [a, r, s]), d = p(() => {
|
|
457
|
+
s.setKeyboardShortcutsOpen(!1), t(!0), s.enableInteractions(), o && (i(!1), r.play());
|
|
458
|
+
}, [o, r, s]), _ = p(
|
|
457
459
|
(C) => e && (C == null ? void 0 : C.focus()),
|
|
458
460
|
[e]
|
|
459
461
|
);
|
|
460
|
-
return s.state.isKeyboardShortcutsOpen ? /* @__PURE__ */ n(sn, { onClose: d }) : /* @__PURE__ */
|
|
462
|
+
return s.state.isKeyboardShortcutsOpen ? /* @__PURE__ */ n(sn, { onClose: d }) : /* @__PURE__ */ l("div", { className: A.controlsOverlay, children: [
|
|
461
463
|
/* @__PURE__ */ n(
|
|
462
464
|
"button",
|
|
463
465
|
{
|
|
@@ -466,22 +468,22 @@ function pn() {
|
|
|
466
468
|
type: "button",
|
|
467
469
|
className: `${A.controlsButton} ${A.keyboardShortcutsButton}`,
|
|
468
470
|
onClick: u,
|
|
469
|
-
|
|
471
|
+
inert: s.state.interactionsDisabled ? "true" : void 0,
|
|
470
472
|
children: /* @__PURE__ */ n(hn, {})
|
|
471
473
|
}
|
|
472
474
|
),
|
|
473
475
|
/* @__PURE__ */ n(mn, {})
|
|
474
476
|
] });
|
|
475
477
|
}
|
|
476
|
-
const Ye = (e) => /* @__PURE__ */
|
|
478
|
+
const Ye = (e) => /* @__PURE__ */ l("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
477
479
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_149_104418", children: /* @__PURE__ */ n("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
478
480
|
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_149_104418)", children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M22.5 21.8125V2.3125C22.5 1.9 22.1625 1.5625 21.75 1.5625H2.25C1.8375 1.5625 1.5 1.9 1.5 2.3125V21.8125C1.5 22.225 1.8375 22.5625 2.25 22.5625H21.75C22.1625 22.5625 22.5 22.225 22.5 21.8125ZM21.75 0.0625C22.9905 0.0625 24 1.072 24 2.3125V21.8125C24 23.053 22.9905 24.0625 21.75 24.0625H2.25C1.0095 24.0625 0 23.053 0 21.8125V2.3125C0 1.072 1.0095 0.0625 2.25 0.0625H21.75ZM10.744 10.6709H8.74403V10.0042H6.07736V14.0042H8.74403V13.3375H10.744V14.6709C10.744 15.4042 10.144 16.0042 9.41069 16.0042H5.41069C4.67736 16.0042 4.07736 15.4042 4.07736 14.6709V9.33753C4.07736 8.6042 4.67736 8.0042 5.41069 8.0042H9.41069C10.144 8.0042 10.744 8.6042 10.744 9.33753V10.6709ZM19.8065 10.6709H17.8065V10.0042H15.1399V14.0042H17.8065V13.3375H19.8065V14.6709C19.8065 15.4042 19.2065 16.0042 18.4732 16.0042H14.4732C13.7399 16.0042 13.1399 15.4042 13.1399 14.6709V9.33753C13.1399 8.6042 13.7399 8.0042 14.4732 8.0042H18.4732C19.2065 8.0042 19.8065 8.6042 19.8065 9.33753V10.6709Z", fill: "currentColor" }) })
|
|
479
|
-
] }), Xe = (e) => /* @__PURE__ */
|
|
481
|
+
] }), Xe = (e) => /* @__PURE__ */ l("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
480
482
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ n("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
481
483
|
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ n("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" }) })
|
|
482
484
|
] });
|
|
483
485
|
function fn() {
|
|
484
|
-
const e = de(), t = b("textTrack"), o = b("hasCaptions"), i = t && _t(t), s = v(), { t: a } = f(),
|
|
486
|
+
const e = de(), t = b("textTrack"), o = b("hasCaptions"), i = t && _t(t), s = v(), { t: a } = f(), r = p(
|
|
485
487
|
(c) => {
|
|
486
488
|
e.toggleCaptions(c.nativeEvent);
|
|
487
489
|
},
|
|
@@ -492,7 +494,7 @@ function fn() {
|
|
|
492
494
|
{
|
|
493
495
|
type: "button",
|
|
494
496
|
className: "controls-button",
|
|
495
|
-
onClick:
|
|
497
|
+
onClick: r,
|
|
496
498
|
"aria-label": a(i ? "CAPTIONS_DISABLE" : "CAPTIONS_ENABLE"),
|
|
497
499
|
"aria-pressed": i ? "true" : "false",
|
|
498
500
|
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
@@ -508,17 +510,17 @@ function Je({ captions: e }) {
|
|
|
508
510
|
s,
|
|
509
511
|
i ?? {}
|
|
510
512
|
);
|
|
511
|
-
return /* @__PURE__ */
|
|
512
|
-
e.map((
|
|
513
|
+
return /* @__PURE__ */ l(X, { children: [
|
|
514
|
+
e.map((r) => /* @__PURE__ */ n(
|
|
513
515
|
Ct,
|
|
514
516
|
{
|
|
515
517
|
kind: "subtitles",
|
|
516
|
-
type:
|
|
517
|
-
language:
|
|
518
|
-
label:
|
|
519
|
-
src:
|
|
518
|
+
type: r.type,
|
|
519
|
+
language: r.language,
|
|
520
|
+
label: r.label,
|
|
521
|
+
src: r.src
|
|
520
522
|
},
|
|
521
|
-
|
|
523
|
+
r.label
|
|
522
524
|
)),
|
|
523
525
|
t ? /* @__PURE__ */ n(
|
|
524
526
|
"div",
|
|
@@ -581,8 +583,8 @@ const Y = [0.5, 0.75, 1, 1.25, 1.5, 2], bn = [0.5, 1, 2, 3, 4], vn = 5, wn = (e)
|
|
|
581
583
|
return;
|
|
582
584
|
const s = [];
|
|
583
585
|
for (const a of e) {
|
|
584
|
-
const
|
|
585
|
-
s.push(
|
|
586
|
+
const r = yn(a, vn, i);
|
|
587
|
+
s.push(r), o.addEventListener("time-update", r);
|
|
586
588
|
}
|
|
587
589
|
return o.dispatchEvent(
|
|
588
590
|
new CustomEvent("time-update", {
|
|
@@ -609,7 +611,7 @@ const Y = [0.5, 0.75, 1, 1.25, 1.5, 2], bn = [0.5, 1, 2, 3, 4], vn = 5, wn = (e)
|
|
|
609
611
|
commentAuthorName: Sn
|
|
610
612
|
};
|
|
611
613
|
function En({ comment: e }) {
|
|
612
|
-
return e.render ? e.render(e, K) : /* @__PURE__ */
|
|
614
|
+
return e.render ? e.render(e, K) : /* @__PURE__ */ l("div", { className: K.comment, onClick: () => {
|
|
613
615
|
var t;
|
|
614
616
|
return (t = e.onClick) == null ? void 0 : t.call(e, e);
|
|
615
617
|
}, children: [
|
|
@@ -630,7 +632,7 @@ function An({
|
|
|
630
632
|
comments: e,
|
|
631
633
|
isKebabMenuVisible: t
|
|
632
634
|
}) {
|
|
633
|
-
const o = v(), i = kn(e, Tn), s = !!b("textTrack"), a = i.map((
|
|
635
|
+
const o = v(), i = kn(e, Tn), s = !!b("textTrack"), a = i.map((r) => /* @__PURE__ */ n(En, { comment: r }, r.id));
|
|
634
636
|
return e.length > 0 && o.state.commentsEnabled ? /* @__PURE__ */ n(
|
|
635
637
|
"div",
|
|
636
638
|
{
|
|
@@ -677,8 +679,8 @@ function q({
|
|
|
677
679
|
children: o
|
|
678
680
|
}) {
|
|
679
681
|
const i = $(), { t: s } = f();
|
|
680
|
-
return /* @__PURE__ */
|
|
681
|
-
!e && /* @__PURE__ */
|
|
682
|
+
return /* @__PURE__ */ l(X, { children: [
|
|
683
|
+
!e && /* @__PURE__ */ l(
|
|
682
684
|
"button",
|
|
683
685
|
{
|
|
684
686
|
type: "button",
|
|
@@ -704,7 +706,7 @@ function q({
|
|
|
704
706
|
o
|
|
705
707
|
] });
|
|
706
708
|
}
|
|
707
|
-
const $n = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), Un = "_menu-hint_1wiu5_1", qn = "_menu-button_1wiu5_5", Gn = "_menu-label_1wiu5_37", Qn = "_menu-icon_1wiu5_42",
|
|
709
|
+
const $n = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), Un = "_menu-hint_1wiu5_1", qn = "_menu-button_1wiu5_5", Gn = "_menu-label_1wiu5_37", Qn = "_menu-icon_1wiu5_42", re = {
|
|
708
710
|
"menu-hint": "_menu-hint_1wiu5_1",
|
|
709
711
|
menuHint: Un,
|
|
710
712
|
"menu-button": "_menu-button_1wiu5_5",
|
|
@@ -715,7 +717,7 @@ const $n = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0
|
|
|
715
717
|
menuIcon: Qn
|
|
716
718
|
};
|
|
717
719
|
function J({ label: e, hint: t, onClick: o, Icon: i }) {
|
|
718
|
-
return /* @__PURE__ */
|
|
720
|
+
return /* @__PURE__ */ l(
|
|
719
721
|
"button",
|
|
720
722
|
{
|
|
721
723
|
type: "button",
|
|
@@ -723,11 +725,11 @@ function J({ label: e, hint: t, onClick: o, Icon: i }) {
|
|
|
723
725
|
"aria-haspopup": "true",
|
|
724
726
|
tabIndex: -1,
|
|
725
727
|
onClick: o,
|
|
726
|
-
className:
|
|
728
|
+
className: re.menuButton,
|
|
727
729
|
children: [
|
|
728
|
-
i && /* @__PURE__ */ n(i, { className:
|
|
729
|
-
/* @__PURE__ */ n("span", { className:
|
|
730
|
-
t && /* @__PURE__ */ n("span", { className:
|
|
730
|
+
i && /* @__PURE__ */ n(i, { className: re.menuIcon }),
|
|
731
|
+
/* @__PURE__ */ n("span", { className: re.menuLabel, children: e }),
|
|
732
|
+
t && /* @__PURE__ */ n("span", { className: re.menuHint, children: t }),
|
|
731
733
|
/* @__PURE__ */ n($n, {})
|
|
732
734
|
]
|
|
733
735
|
}
|
|
@@ -748,9 +750,9 @@ function Yn() {
|
|
|
748
750
|
}
|
|
749
751
|
);
|
|
750
752
|
}
|
|
751
|
-
const Xn = (e) => /* @__PURE__ */
|
|
753
|
+
const Xn = (e) => /* @__PURE__ */ l("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
752
754
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ n("rect", { width: 18, height: 18, fill: "white" }) }) }),
|
|
753
|
-
/* @__PURE__ */
|
|
755
|
+
/* @__PURE__ */ l("g", { clipPath: "url(#clip0_412_23039)", children: [
|
|
754
756
|
/* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.46326 3.85039H0V2.65039H2.46326C2.7388 1.36449 3.88181 0.400391 5.24999 0.400391C6.61818 0.400391 7.76119 1.36449 8.03673 2.65039H18V3.85039H8.03673C7.76119 5.13629 6.61818 6.10039 5.24999 6.10039C3.88181 6.10039 2.7388 5.13629 2.46326 3.85039ZM3.59999 3.25039C3.59999 2.33912 4.33872 1.60039 5.24999 1.60039C6.16126 1.60039 6.89999 2.33912 6.89999 3.25039C6.89999 4.16166 6.16126 4.90039 5.24999 4.90039C4.33872 4.90039 3.59999 4.16166 3.59999 3.25039Z", fill: "currentColor" }),
|
|
755
757
|
/* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 8.40039H9.46326C9.7388 7.11449 10.8818 6.15039 12.25 6.15039C13.6182 6.15039 14.7612 7.11449 15.0367 8.40039H18V9.60039H15.0367C14.7612 10.8863 13.6182 11.8504 12.25 11.8504C10.8818 11.8504 9.7388 10.8863 9.46326 9.60039H0V8.40039ZM12.25 7.35039C11.3387 7.35039 10.6 8.08912 10.6 9.00039C10.6 9.91166 11.3387 10.6504 12.25 10.6504C13.1613 10.6504 13.9 9.91166 13.9 9.00039C13.9 8.08912 13.1613 7.35039 12.25 7.35039Z", fill: "currentColor" }),
|
|
756
758
|
/* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.24999 17.6004C6.61818 17.6004 7.76119 16.6363 8.03673 15.3504H18V14.1504H8.03673C7.76119 12.8645 6.61818 11.9004 5.24999 11.9004C3.88181 11.9004 2.7388 12.8645 2.46326 14.1504H0V15.3504H2.46326C2.7388 16.6363 3.88181 17.6004 5.24999 17.6004ZM5.24999 13.1004C4.33872 13.1004 3.59999 13.8391 3.59999 14.7504C3.59999 15.6617 4.33872 16.4004 5.24999 16.4004C6.16126 16.4004 6.89999 15.6617 6.89999 14.7504C6.89999 13.8391 6.16126 13.1004 5.24999 13.1004Z", fill: "currentColor" })
|
|
@@ -794,7 +796,7 @@ function eo() {
|
|
|
794
796
|
}
|
|
795
797
|
) : null;
|
|
796
798
|
}
|
|
797
|
-
const to = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), no = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), oo = "_switch-track_7nhpo_1", io = "_switch-thumb_7nhpo_17", so = "_switch-icon_7nhpo_31", ao = "_switch-body_7nhpo_37",
|
|
799
|
+
const to = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), no = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), oo = "_switch-track_7nhpo_1", io = "_switch-thumb_7nhpo_17", so = "_switch-icon_7nhpo_31", ao = "_switch-body_7nhpo_37", ro = "_switch-label_7nhpo_78", lo = "_menu-icon_7nhpo_82", U = {
|
|
798
800
|
"switch-track": "_switch-track_7nhpo_1",
|
|
799
801
|
switchTrack: oo,
|
|
800
802
|
"switch-thumb": "_switch-thumb_7nhpo_17",
|
|
@@ -804,9 +806,9 @@ const to = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0
|
|
|
804
806
|
"switch-body": "_switch-body_7nhpo_37",
|
|
805
807
|
switchBody: ao,
|
|
806
808
|
"switch-label": "_switch-label_7nhpo_78",
|
|
807
|
-
switchLabel:
|
|
809
|
+
switchLabel: ro,
|
|
808
810
|
"menu-icon": "_menu-icon_7nhpo_82",
|
|
809
|
-
menuIcon:
|
|
811
|
+
menuIcon: lo
|
|
810
812
|
};
|
|
811
813
|
function Ee({
|
|
812
814
|
label: e,
|
|
@@ -814,7 +816,7 @@ function Ee({
|
|
|
814
816
|
onClick: o,
|
|
815
817
|
Icon: i
|
|
816
818
|
}) {
|
|
817
|
-
return /* @__PURE__ */
|
|
819
|
+
return /* @__PURE__ */ l(
|
|
818
820
|
"button",
|
|
819
821
|
{
|
|
820
822
|
className: U.switchBody,
|
|
@@ -845,7 +847,7 @@ function uo() {
|
|
|
845
847
|
) : null;
|
|
846
848
|
}
|
|
847
849
|
function mo() {
|
|
848
|
-
return /* @__PURE__ */
|
|
850
|
+
return /* @__PURE__ */ l(q, { noBackButton: !0, children: [
|
|
849
851
|
/* @__PURE__ */ n(Yn, {}),
|
|
850
852
|
/* @__PURE__ */ n(eo, {}),
|
|
851
853
|
/* @__PURE__ */ n(uo, {}),
|
|
@@ -854,7 +856,7 @@ function mo() {
|
|
|
854
856
|
}
|
|
855
857
|
const ho = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) });
|
|
856
858
|
function pe({ selected: e, label: t, onClick: o }) {
|
|
857
|
-
return /* @__PURE__ */
|
|
859
|
+
return /* @__PURE__ */ l(
|
|
858
860
|
"button",
|
|
859
861
|
{
|
|
860
862
|
type: "button",
|
|
@@ -941,7 +943,7 @@ function bo() {
|
|
|
941
943
|
}
|
|
942
944
|
function vo() {
|
|
943
945
|
const e = y(), { t } = f();
|
|
944
|
-
return /* @__PURE__ */
|
|
946
|
+
return /* @__PURE__ */ l(q, { heading: t("CAPTIONS"), children: [
|
|
945
947
|
/* @__PURE__ */ n(Co, {}),
|
|
946
948
|
/* @__PURE__ */ n(_o, {}),
|
|
947
949
|
/* @__PURE__ */ n(go, {}),
|
|
@@ -987,7 +989,7 @@ function ko() {
|
|
|
987
989
|
const e = $(), t = y(), { t: o } = f();
|
|
988
990
|
return Z(() => {
|
|
989
991
|
t.captions.length === 0 && e.backToMain();
|
|
990
|
-
}, [t.captions]), /* @__PURE__ */ n(q, { heading: o("CAPTIONS_MANAGE"), children: t.captions.map((i) => /* @__PURE__ */
|
|
992
|
+
}, [t.captions]), /* @__PURE__ */ n(q, { heading: o("CAPTIONS_MANAGE"), children: t.captions.map((i) => /* @__PURE__ */ l(
|
|
991
993
|
"button",
|
|
992
994
|
{
|
|
993
995
|
type: "button",
|
|
@@ -1008,12 +1010,12 @@ function ko() {
|
|
|
1008
1010
|
}
|
|
1009
1011
|
function Lo() {
|
|
1010
1012
|
const e = b("autoQuality"), t = wt({ sort: "descending" }), { t: o } = f();
|
|
1011
|
-
return /* @__PURE__ */ n(q, { heading: o("QUALITY"), children: t.map(({ value: i, select: s, selected: a, label:
|
|
1013
|
+
return /* @__PURE__ */ n(q, { heading: o("QUALITY"), children: t.map(({ value: i, select: s, selected: a, label: r, quality: c }) => /* @__PURE__ */ n(
|
|
1012
1014
|
pe,
|
|
1013
1015
|
{
|
|
1014
1016
|
selected: i === "auto" && e || a && !e,
|
|
1015
1017
|
onClick: () => s(),
|
|
1016
|
-
label: c ? tt(c) :
|
|
1018
|
+
label: c ? tt(c) : r
|
|
1017
1019
|
},
|
|
1018
1020
|
i
|
|
1019
1021
|
)) });
|
|
@@ -1033,55 +1035,55 @@ function Be(e) {
|
|
|
1033
1035
|
const t = Array.from(e.querySelectorAll("button"));
|
|
1034
1036
|
return t[t.length - 1] ?? null;
|
|
1035
1037
|
}
|
|
1036
|
-
function Po(e) {
|
|
1037
|
-
const
|
|
1038
|
+
function Po(e, t) {
|
|
1039
|
+
const o = z(null), i = D(
|
|
1038
1040
|
() => ({
|
|
1039
1041
|
Escape: e.toggle,
|
|
1040
1042
|
ArrowUp: () => {
|
|
1041
|
-
const
|
|
1042
|
-
if (
|
|
1043
|
-
const
|
|
1044
|
-
|
|
1045
|
-
|
|
1043
|
+
const s = document.activeElement;
|
|
1044
|
+
if (s && o.current && o.current.contains(s)) {
|
|
1045
|
+
const a = xo(
|
|
1046
|
+
o.current,
|
|
1047
|
+
s
|
|
1046
1048
|
);
|
|
1047
|
-
if (
|
|
1048
|
-
|
|
1049
|
+
if (a)
|
|
1050
|
+
a.focus();
|
|
1049
1051
|
else {
|
|
1050
|
-
const
|
|
1051
|
-
|
|
1052
|
+
const r = Be(o.current);
|
|
1053
|
+
r == null || r.focus();
|
|
1052
1054
|
}
|
|
1053
|
-
} else if (
|
|
1054
|
-
const
|
|
1055
|
-
|
|
1055
|
+
} else if (o.current) {
|
|
1056
|
+
const a = Be(o.current);
|
|
1057
|
+
a == null || a.focus();
|
|
1056
1058
|
}
|
|
1057
1059
|
},
|
|
1058
1060
|
ArrowDown: () => {
|
|
1059
|
-
const
|
|
1060
|
-
if (
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1063
|
-
|
|
1061
|
+
const s = document.activeElement;
|
|
1062
|
+
if (s && o.current && o.current.contains(s)) {
|
|
1063
|
+
const a = Mo(
|
|
1064
|
+
o.current,
|
|
1065
|
+
s
|
|
1064
1066
|
);
|
|
1065
|
-
if (
|
|
1066
|
-
|
|
1067
|
+
if (a)
|
|
1068
|
+
a.focus();
|
|
1067
1069
|
else {
|
|
1068
|
-
const
|
|
1069
|
-
|
|
1070
|
+
const r = Oe(o.current);
|
|
1071
|
+
r == null || r.focus();
|
|
1070
1072
|
}
|
|
1071
|
-
} else if (
|
|
1072
|
-
const
|
|
1073
|
-
|
|
1073
|
+
} else if (o.current) {
|
|
1074
|
+
const a = Oe(o.current);
|
|
1075
|
+
a == null || a.focus();
|
|
1074
1076
|
}
|
|
1075
1077
|
},
|
|
1076
1078
|
ArrowRight: () => {
|
|
1077
|
-
const
|
|
1078
|
-
|
|
1079
|
+
const s = document.activeElement;
|
|
1080
|
+
s && s.getAttribute("aria-haspopup") === "true" && o.current && o.current.contains(s) && s.click();
|
|
1079
1081
|
},
|
|
1080
1082
|
ArrowLeft: e.back
|
|
1081
1083
|
}),
|
|
1082
1084
|
[e]
|
|
1083
1085
|
);
|
|
1084
|
-
return Se(
|
|
1086
|
+
return Se(i, !0, t), o;
|
|
1085
1087
|
}
|
|
1086
1088
|
const nt = we(null), No = {
|
|
1087
1089
|
main: mo,
|
|
@@ -1104,7 +1106,7 @@ const nt = we(null), No = {
|
|
|
1104
1106
|
function So() {
|
|
1105
1107
|
const e = v(), [t, o] = k(["main"]), [i, s] = k(!1), a = p(() => {
|
|
1106
1108
|
s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
|
|
1107
|
-
}, [i]),
|
|
1109
|
+
}, [i]), r = p((P) => {
|
|
1108
1110
|
o((S) => S.concat(P));
|
|
1109
1111
|
}, []), c = p(() => {
|
|
1110
1112
|
o((P) => P.length > 1 ? P.slice(0, -1) : P);
|
|
@@ -1117,9 +1119,9 @@ function So() {
|
|
|
1117
1119
|
whileElementsMounted: he,
|
|
1118
1120
|
middleware: [Io]
|
|
1119
1121
|
}), M = Me(w, { escapeKey: !1 }), { getReferenceProps: L, getFloatingProps: I } = Pe([M]), h = D(
|
|
1120
|
-
() => ({ setPage:
|
|
1121
|
-
[
|
|
1122
|
-
), g = Po(h), E = $e([_.setFloating, g]);
|
|
1122
|
+
() => ({ setPage: r, back: c, backToMain: u, toggle: a }),
|
|
1123
|
+
[r, c, u, a]
|
|
1124
|
+
), g = Po(h, i), E = $e([_.setFloating, g]);
|
|
1123
1125
|
return {
|
|
1124
1126
|
Page: d,
|
|
1125
1127
|
open: i,
|
|
@@ -1145,11 +1147,11 @@ function Eo() {
|
|
|
1145
1147
|
getFloatingProps: i,
|
|
1146
1148
|
getReferenceProps: s,
|
|
1147
1149
|
open: a,
|
|
1148
|
-
floatingRef:
|
|
1150
|
+
floatingRef: r,
|
|
1149
1151
|
referenceRef: c,
|
|
1150
1152
|
contextValue: u
|
|
1151
1153
|
} = So(), { t: d } = f();
|
|
1152
|
-
return /* @__PURE__ */
|
|
1154
|
+
return /* @__PURE__ */ l(X, { children: [
|
|
1153
1155
|
/* @__PURE__ */ n(
|
|
1154
1156
|
"button",
|
|
1155
1157
|
{
|
|
@@ -1178,7 +1180,7 @@ function Eo() {
|
|
|
1178
1180
|
"aria-label": d("VIDEO_SETTINGS"),
|
|
1179
1181
|
"aria-labelledby": "menu-heading",
|
|
1180
1182
|
className: F.settingsMenu,
|
|
1181
|
-
ref:
|
|
1183
|
+
ref: r,
|
|
1182
1184
|
style: o,
|
|
1183
1185
|
...i(),
|
|
1184
1186
|
children: /* @__PURE__ */ n(nt.Provider, { value: u, children: /* @__PURE__ */ n(e, {}) })
|
|
@@ -1190,7 +1192,7 @@ function Eo() {
|
|
|
1190
1192
|
}
|
|
1191
1193
|
function ot(e, t = 1e3) {
|
|
1192
1194
|
return function() {
|
|
1193
|
-
const i = V(), [s, a] = k(null),
|
|
1195
|
+
const i = V(), [s, a] = k(null), r = p(() => a(null), []);
|
|
1194
1196
|
return Z(() => {
|
|
1195
1197
|
if (!i)
|
|
1196
1198
|
return () => {
|
|
@@ -1202,7 +1204,7 @@ function ot(e, t = 1e3) {
|
|
|
1202
1204
|
(d) => {
|
|
1203
1205
|
clearTimeout(u);
|
|
1204
1206
|
const _ = d.detail;
|
|
1205
|
-
a(/* @__PURE__ */ n(e, { action: _ })), u = setTimeout(
|
|
1207
|
+
a(/* @__PURE__ */ n(e, { action: _ })), u = setTimeout(r, t);
|
|
1206
1208
|
},
|
|
1207
1209
|
{ signal: c.signal }
|
|
1208
1210
|
), () => {
|
|
@@ -1268,8 +1270,8 @@ function Fo({ action: e }) {
|
|
|
1268
1270
|
}
|
|
1269
1271
|
}
|
|
1270
1272
|
const Do = ot(Bo, 300), Zo = ot(Fo, 1e3);
|
|
1271
|
-
function
|
|
1272
|
-
return /* @__PURE__ */
|
|
1273
|
+
function rt() {
|
|
1274
|
+
return /* @__PURE__ */ l("div", { className: N.feedbackOverlay, children: [
|
|
1273
1275
|
/* @__PURE__ */ n(Do, {}),
|
|
1274
1276
|
/* @__PURE__ */ n(Zo, {})
|
|
1275
1277
|
] });
|
|
@@ -1347,15 +1349,15 @@ function i1({ src: e, title: t }) {
|
|
|
1347
1349
|
}
|
|
1348
1350
|
);
|
|
1349
1351
|
}
|
|
1350
|
-
const s1 = "_small-layout-overlay_4hkng_1", a1 = "_small-layout-button_4hkng_14",
|
|
1352
|
+
const s1 = "_small-layout-overlay_4hkng_1", a1 = "_small-layout-button_4hkng_14", r1 = "_small-layout-icon-play_4hkng_24", l1 = "_small-layout-icon-pause_4hkng_30", c1 = "_small-layout-timestamp_4hkng_36", u1 = "_full-screen-close-icon_4hkng_49", d1 = "_fade-out_4hkng_1", Q = {
|
|
1351
1353
|
"small-layout-overlay": "_small-layout-overlay_4hkng_1",
|
|
1352
1354
|
smallLayoutOverlay: s1,
|
|
1353
1355
|
"small-layout-button": "_small-layout-button_4hkng_14",
|
|
1354
1356
|
smallLayoutButton: a1,
|
|
1355
1357
|
"small-layout-icon-play": "_small-layout-icon-play_4hkng_24",
|
|
1356
|
-
smallLayoutIconPlay:
|
|
1358
|
+
smallLayoutIconPlay: r1,
|
|
1357
1359
|
"small-layout-icon-pause": "_small-layout-icon-pause_4hkng_30",
|
|
1358
|
-
smallLayoutIconPause:
|
|
1360
|
+
smallLayoutIconPause: l1,
|
|
1359
1361
|
"small-layout-timestamp": "_small-layout-timestamp_4hkng_36",
|
|
1360
1362
|
smallLayoutTimestamp: c1,
|
|
1361
1363
|
"full-screen-close-icon": "_full-screen-close-icon_4hkng_49",
|
|
@@ -1365,10 +1367,10 @@ const s1 = "_small-layout-overlay_4hkng_1", a1 = "_small-layout-button_4hkng_14"
|
|
|
1365
1367
|
};
|
|
1366
1368
|
function m1() {
|
|
1367
1369
|
const e = b("paused");
|
|
1368
|
-
return /* @__PURE__ */
|
|
1370
|
+
return /* @__PURE__ */ l("div", { className: Q.smallLayoutOverlay, children: [
|
|
1369
1371
|
/* @__PURE__ */ n(kt, { className: Q.fullScreenCloseIcon, children: /* @__PURE__ */ n(Qe, {}) }),
|
|
1370
1372
|
/* @__PURE__ */ n("i", { className: Q.smallLayoutButton, children: e ? /* @__PURE__ */ n(Ae, { className: Q.smallLayoutIconPlay }) : /* @__PURE__ */ n(Te, { className: Q.smallLayoutIconPause }) }),
|
|
1371
|
-
/* @__PURE__ */
|
|
1373
|
+
/* @__PURE__ */ l("div", { className: Q.smallLayoutTimestamp, children: [
|
|
1372
1374
|
/* @__PURE__ */ n(ce, { type: "current" }),
|
|
1373
1375
|
"/",
|
|
1374
1376
|
/* @__PURE__ */ n(ce, { type: "duration" })
|
|
@@ -1380,59 +1382,59 @@ const h1 = "_time-indicator_1uygf_1", p1 = {
|
|
|
1380
1382
|
timeIndicator: h1
|
|
1381
1383
|
};
|
|
1382
1384
|
function f1() {
|
|
1383
|
-
return /* @__PURE__ */
|
|
1385
|
+
return /* @__PURE__ */ l("div", { className: p1.timeIndicator, children: [
|
|
1384
1386
|
/* @__PURE__ */ n(ce, { type: "current" }),
|
|
1385
1387
|
"/",
|
|
1386
1388
|
/* @__PURE__ */ n(ce, { type: "duration" })
|
|
1387
1389
|
] });
|
|
1388
1390
|
}
|
|
1389
|
-
const _1 = "_comment-
|
|
1390
|
-
"comment-markers": "_comment-
|
|
1391
|
+
const _1 = "_comment-markers_1i9t2_1", C1 = "_comment-marker_1i9t2_1", g1 = "_timeline-wrapper_1i9t2_23", b1 = "_timeline-wrapper-compact_1i9t2_24", v1 = "_track_1i9t2_33", w1 = "_thumb_1i9t2_46", y1 = "_root_1i9t2_60", k1 = "_track-inner_1i9t2_90", L1 = "_progress_1i9t2_96", x1 = "_track-fill_1i9t2_102", M1 = "_pins_1i9t2_119", P1 = "_pin-button_1i9t2_128", N1 = "_annotation-pin_1i9t2_153", I1 = "_quiz-pin_1i9t2_162", S1 = "_annotation-pin-child_1i9t2_171", E1 = "_quiz-pin-child_1i9t2_175", T1 = "_interactive-pin-container_1i9t2_180", A1 = "_interactive-pin-wrapper_1i9t2_187", V1 = "_interactive-pin-icon_1i9t2_193", R1 = "_interactive-pin_1i9t2_180", H1 = "_bg_1i9t2_207", O1 = "_symbol_1i9t2_211", B1 = "_interactive-pin-button_1i9t2_216", F1 = "_interactive-pin-menu_1i9t2_242", D1 = "_interactive-pin-menu-item_1i9t2_262", Z1 = "_arrow_1i9t2_283", j1 = "_tooltip_1i9t2_287", K1 = "_tooltip-arrow_1i9t2_296", m = {
|
|
1392
|
+
"comment-markers": "_comment-markers_1i9t2_1",
|
|
1391
1393
|
commentMarkers: _1,
|
|
1392
|
-
"comment-marker": "_comment-
|
|
1394
|
+
"comment-marker": "_comment-marker_1i9t2_1",
|
|
1393
1395
|
commentMarker: C1,
|
|
1394
|
-
"timeline-wrapper": "_timeline-
|
|
1396
|
+
"timeline-wrapper": "_timeline-wrapper_1i9t2_23",
|
|
1395
1397
|
timelineWrapper: g1,
|
|
1396
|
-
"timeline-wrapper-compact": "_timeline-wrapper-
|
|
1398
|
+
"timeline-wrapper-compact": "_timeline-wrapper-compact_1i9t2_24",
|
|
1397
1399
|
timelineWrapperCompact: b1,
|
|
1398
1400
|
track: v1,
|
|
1399
1401
|
thumb: w1,
|
|
1400
1402
|
root: y1,
|
|
1401
|
-
"track-inner": "_track-
|
|
1403
|
+
"track-inner": "_track-inner_1i9t2_90",
|
|
1402
1404
|
trackInner: k1,
|
|
1403
1405
|
progress: L1,
|
|
1404
|
-
"track-fill": "_track-
|
|
1406
|
+
"track-fill": "_track-fill_1i9t2_102",
|
|
1405
1407
|
trackFill: x1,
|
|
1406
1408
|
pins: M1,
|
|
1407
|
-
"pin-button": "_pin-
|
|
1409
|
+
"pin-button": "_pin-button_1i9t2_128",
|
|
1408
1410
|
pinButton: P1,
|
|
1409
|
-
"annotation-pin": "_annotation-
|
|
1411
|
+
"annotation-pin": "_annotation-pin_1i9t2_153",
|
|
1410
1412
|
annotationPin: N1,
|
|
1411
|
-
"quiz-pin": "_quiz-
|
|
1413
|
+
"quiz-pin": "_quiz-pin_1i9t2_162",
|
|
1412
1414
|
quizPin: I1,
|
|
1413
|
-
"annotation-pin-child": "_annotation-pin-
|
|
1415
|
+
"annotation-pin-child": "_annotation-pin-child_1i9t2_171",
|
|
1414
1416
|
annotationPinChild: S1,
|
|
1415
|
-
"quiz-pin-child": "_quiz-pin-
|
|
1417
|
+
"quiz-pin-child": "_quiz-pin-child_1i9t2_175",
|
|
1416
1418
|
quizPinChild: E1,
|
|
1417
|
-
"interactive-pin-container": "_interactive-pin-
|
|
1419
|
+
"interactive-pin-container": "_interactive-pin-container_1i9t2_180",
|
|
1418
1420
|
interactivePinContainer: T1,
|
|
1419
|
-
"interactive-pin-wrapper": "_interactive-pin-
|
|
1421
|
+
"interactive-pin-wrapper": "_interactive-pin-wrapper_1i9t2_187",
|
|
1420
1422
|
interactivePinWrapper: A1,
|
|
1421
|
-
"interactive-pin-icon": "_interactive-pin-
|
|
1423
|
+
"interactive-pin-icon": "_interactive-pin-icon_1i9t2_193",
|
|
1422
1424
|
interactivePinIcon: V1,
|
|
1423
|
-
"interactive-pin": "_interactive-
|
|
1425
|
+
"interactive-pin": "_interactive-pin_1i9t2_180",
|
|
1424
1426
|
interactivePin: R1,
|
|
1425
1427
|
bg: H1,
|
|
1426
1428
|
symbol: O1,
|
|
1427
|
-
"interactive-pin-button": "_interactive-pin-
|
|
1429
|
+
"interactive-pin-button": "_interactive-pin-button_1i9t2_216",
|
|
1428
1430
|
interactivePinButton: B1,
|
|
1429
|
-
"interactive-pin-menu": "_interactive-pin-
|
|
1431
|
+
"interactive-pin-menu": "_interactive-pin-menu_1i9t2_242",
|
|
1430
1432
|
interactivePinMenu: F1,
|
|
1431
|
-
"interactive-pin-menu-item": "_interactive-pin-menu-
|
|
1433
|
+
"interactive-pin-menu-item": "_interactive-pin-menu-item_1i9t2_262",
|
|
1432
1434
|
interactivePinMenuItem: D1,
|
|
1433
1435
|
arrow: Z1,
|
|
1434
1436
|
tooltip: j1,
|
|
1435
|
-
"tooltip-arrow": "_tooltip-
|
|
1437
|
+
"tooltip-arrow": "_tooltip-arrow_1i9t2_296",
|
|
1436
1438
|
tooltipArrow: K1
|
|
1437
1439
|
};
|
|
1438
1440
|
function De() {
|
|
@@ -1449,7 +1451,7 @@ function De() {
|
|
|
1449
1451
|
)) }) : null;
|
|
1450
1452
|
}
|
|
1451
1453
|
const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
1452
|
-
const [s, a] = k(!1), [
|
|
1454
|
+
const [s, a] = k(!1), [r, c] = k(null), u = y(), d = v(), _ = p(() => {
|
|
1453
1455
|
u.interactiveMenuElements.length > 0 ? (a((j) => !j), d.setGlobalKeysDisabled(!0)) : u.onInteractivePinClick(t);
|
|
1454
1456
|
}, [
|
|
1455
1457
|
u.interactiveMenuElements,
|
|
@@ -1469,18 +1471,19 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
|
1469
1471
|
]
|
|
1470
1472
|
}), I = z([]), h = Me(L), g = ze(L, {
|
|
1471
1473
|
listRef: I,
|
|
1472
|
-
activeIndex:
|
|
1474
|
+
activeIndex: r,
|
|
1473
1475
|
onNavigate: c,
|
|
1474
1476
|
loop: !0,
|
|
1475
1477
|
openOnArrowKeyDown: !1
|
|
1476
1478
|
}), { getReferenceProps: E, getFloatingProps: P, getItemProps: S } = Pe(
|
|
1477
1479
|
[h, g]
|
|
1478
1480
|
), O = $e([w.setReference, i]), { t: R } = f(), B = be(t);
|
|
1479
|
-
return /* @__PURE__ */
|
|
1481
|
+
return /* @__PURE__ */ l(X, { children: [
|
|
1480
1482
|
/* @__PURE__ */ n(
|
|
1481
1483
|
"button",
|
|
1482
1484
|
{
|
|
1483
1485
|
id: "interactive-pin",
|
|
1486
|
+
tabIndex: d.state.interactionsDisabled ? -1 : 0,
|
|
1484
1487
|
type: "button",
|
|
1485
1488
|
"aria-label": u.interactiveMenuElements.length > 0 ? R("ADD_QUIZ_AT", { time: B }) : R("ADD_ANNOTATION_AT", { time: B }),
|
|
1486
1489
|
"aria-haspopup": u.interactiveMenuElements.length > 0 ? "true" : void 0,
|
|
@@ -1490,7 +1493,7 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
|
1490
1493
|
...E({
|
|
1491
1494
|
onClick: _
|
|
1492
1495
|
}),
|
|
1493
|
-
children: /* @__PURE__ */
|
|
1496
|
+
children: /* @__PURE__ */ l(
|
|
1494
1497
|
"svg",
|
|
1495
1498
|
{
|
|
1496
1499
|
className: m.interactivePin,
|
|
@@ -1530,7 +1533,7 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
|
1530
1533
|
)
|
|
1531
1534
|
}
|
|
1532
1535
|
),
|
|
1533
|
-
s && /* @__PURE__ */ n(Ne, { context: L, initialFocus: -1, modal: !0, children: /* @__PURE__ */
|
|
1536
|
+
s && /* @__PURE__ */ n(Ne, { context: L, initialFocus: -1, modal: !0, children: /* @__PURE__ */ l(
|
|
1534
1537
|
"div",
|
|
1535
1538
|
{
|
|
1536
1539
|
ref: w.setFloating,
|
|
@@ -1540,7 +1543,7 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
|
1540
1543
|
...P(),
|
|
1541
1544
|
children: [
|
|
1542
1545
|
u.interactiveMenuElements.map(
|
|
1543
|
-
({ id: j, text: fe, onClick: _e }, ee) => /* @__PURE__ */
|
|
1546
|
+
({ id: j, text: fe, onClick: _e }, ee) => /* @__PURE__ */ l(
|
|
1544
1547
|
"button",
|
|
1545
1548
|
{
|
|
1546
1549
|
type: "button",
|
|
@@ -1548,7 +1551,7 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
|
1548
1551
|
ref: (ne) => {
|
|
1549
1552
|
I.current[ee] = ne;
|
|
1550
1553
|
},
|
|
1551
|
-
tabIndex:
|
|
1554
|
+
tabIndex: r === ee ? 0 : -1,
|
|
1552
1555
|
...S({
|
|
1553
1556
|
onClick: () => {
|
|
1554
1557
|
_e(j, t), a(!1), d.setGlobalKeysDisabled(!1);
|
|
@@ -1616,11 +1619,11 @@ function U1() {
|
|
|
1616
1619
|
var c;
|
|
1617
1620
|
const e = b("duration"), t = b("currentTime"), o = t / e * 100, { disableInteractivePinRanges: i } = y(), s = !i.some(
|
|
1618
1621
|
([u, d]) => t >= u && t <= d
|
|
1619
|
-
), { wasPinFocused: a, focusCallback:
|
|
1622
|
+
), { wasPinFocused: a, focusCallback: r } = $1();
|
|
1620
1623
|
return s ? /* @__PURE__ */ n("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ n("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ n(
|
|
1621
1624
|
z1,
|
|
1622
1625
|
{
|
|
1623
|
-
ref:
|
|
1626
|
+
ref: r,
|
|
1624
1627
|
currentTime: t,
|
|
1625
1628
|
position: o
|
|
1626
1629
|
}
|
|
@@ -1636,14 +1639,14 @@ const G1 = {
|
|
|
1636
1639
|
}, Q1 = (e, t, o, i = !1) => t === "annotation" ? e("OPEN_ANNOTATION_AT", { time: be(o) }) : t === "quiz" ? e(i ? "OPEN_COMPLETED_QUIZ_AT" : "OPEN_QUIZ_AT", {
|
|
1637
1640
|
time: be(o)
|
|
1638
1641
|
}) : "";
|
|
1639
|
-
function
|
|
1642
|
+
function lt({
|
|
1640
1643
|
type: e,
|
|
1641
1644
|
position: t,
|
|
1642
1645
|
children: o,
|
|
1643
1646
|
onClick: i,
|
|
1644
1647
|
id: s,
|
|
1645
1648
|
time: a,
|
|
1646
|
-
completed:
|
|
1649
|
+
completed: r
|
|
1647
1650
|
}) {
|
|
1648
1651
|
const c = v(), { t: u } = f();
|
|
1649
1652
|
return /* @__PURE__ */ n(
|
|
@@ -1655,8 +1658,8 @@ function rt({
|
|
|
1655
1658
|
style: { left: `${t}%` },
|
|
1656
1659
|
onClick: i,
|
|
1657
1660
|
"data-marker-id": s,
|
|
1658
|
-
"aria-label": Q1(u, e, a,
|
|
1659
|
-
children: /* @__PURE__ */
|
|
1661
|
+
"aria-label": Q1(u, e, a, r),
|
|
1662
|
+
children: /* @__PURE__ */ l(
|
|
1660
1663
|
"svg",
|
|
1661
1664
|
{
|
|
1662
1665
|
className: G1[e],
|
|
@@ -1674,7 +1677,7 @@ function rt({
|
|
|
1674
1677
|
);
|
|
1675
1678
|
}
|
|
1676
1679
|
function W1(e) {
|
|
1677
|
-
return /* @__PURE__ */ n(
|
|
1680
|
+
return /* @__PURE__ */ n(lt, { type: "annotation", ...e, children: /* @__PURE__ */ n(
|
|
1678
1681
|
"path",
|
|
1679
1682
|
{
|
|
1680
1683
|
className: m.annotationPinChild,
|
|
@@ -1710,7 +1713,7 @@ function Y1(e) {
|
|
|
1710
1713
|
children: e.ordinal
|
|
1711
1714
|
}
|
|
1712
1715
|
);
|
|
1713
|
-
return /* @__PURE__ */ n(
|
|
1716
|
+
return /* @__PURE__ */ n(lt, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ n("circle", { className: m.quizPinChild, cx: "13", cy: "13", r: "6" }) : t });
|
|
1714
1717
|
}
|
|
1715
1718
|
function X1(e, t) {
|
|
1716
1719
|
return e.map((o, i) => ({
|
|
@@ -1725,15 +1728,15 @@ function J1(e, t) {
|
|
|
1725
1728
|
const o = /* @__PURE__ */ new Map();
|
|
1726
1729
|
e.forEach((a) => {
|
|
1727
1730
|
var c;
|
|
1728
|
-
const
|
|
1729
|
-
o.has(
|
|
1731
|
+
const r = a.time;
|
|
1732
|
+
o.has(r) || o.set(r, []), (c = o.get(r)) == null || c.push(a);
|
|
1730
1733
|
});
|
|
1731
1734
|
const i = [];
|
|
1732
1735
|
let s = 0;
|
|
1733
|
-
return o.forEach((a,
|
|
1736
|
+
return o.forEach((a, r) => {
|
|
1734
1737
|
i.push({
|
|
1735
1738
|
id: a.map((c) => c.id).join("-"),
|
|
1736
|
-
time:
|
|
1739
|
+
time: r,
|
|
1737
1740
|
type: "quiz",
|
|
1738
1741
|
ordinal: s + 1,
|
|
1739
1742
|
onClick: () => t(a),
|
|
@@ -1782,7 +1785,7 @@ function ti() {
|
|
|
1782
1785
|
o.onAnnotationClick
|
|
1783
1786
|
),
|
|
1784
1787
|
...J1(o.quizMarkers, o.onQuizMarkerClick)
|
|
1785
|
-
].sort((a,
|
|
1788
|
+
].sort((a, r) => a.time - r.time).map((a) => ei(a, t, e, o.interactive)), [o.annotations, o.quizMarkers, t, e]);
|
|
1786
1789
|
return /* @__PURE__ */ n("div", { className: m.pins, children: i });
|
|
1787
1790
|
}
|
|
1788
1791
|
const ni = {
|
|
@@ -1794,7 +1797,7 @@ function Ze({
|
|
|
1794
1797
|
interactionsDisabled: t,
|
|
1795
1798
|
children: o
|
|
1796
1799
|
}) {
|
|
1797
|
-
const [i, s] = k(!1), a = p(() => s(!0), []),
|
|
1800
|
+
const [i, s] = k(!1), a = p(() => s(!0), []), r = p(() => s(!1), []), c = z(null), { refs: u, floatingStyles: d, context: _ } = me({
|
|
1798
1801
|
open: i,
|
|
1799
1802
|
onOpenChange: s,
|
|
1800
1803
|
whileElementsMounted: (C, w, M) => he(C, w, M, {
|
|
@@ -1809,17 +1812,17 @@ function Ze({
|
|
|
1809
1812
|
})
|
|
1810
1813
|
]
|
|
1811
1814
|
});
|
|
1812
|
-
return /* @__PURE__ */
|
|
1815
|
+
return /* @__PURE__ */ l("div", { className: ni[e], children: [
|
|
1813
1816
|
o,
|
|
1814
|
-
/* @__PURE__ */
|
|
1817
|
+
/* @__PURE__ */ l(
|
|
1815
1818
|
G.Root,
|
|
1816
1819
|
{
|
|
1817
1820
|
tabIndex: t ? -1 : 0,
|
|
1818
1821
|
className: m.root,
|
|
1819
1822
|
onDragStart: a,
|
|
1820
|
-
onDragEnd:
|
|
1823
|
+
onDragEnd: r,
|
|
1821
1824
|
children: [
|
|
1822
|
-
/* @__PURE__ */
|
|
1825
|
+
/* @__PURE__ */ l(G.Track, { className: m.track, children: [
|
|
1823
1826
|
/* @__PURE__ */ n(
|
|
1824
1827
|
G.Progress,
|
|
1825
1828
|
{
|
|
@@ -1834,7 +1837,7 @@ function Ze({
|
|
|
1834
1837
|
)
|
|
1835
1838
|
] }),
|
|
1836
1839
|
/* @__PURE__ */ n(G.Thumb, { className: m.thumb, ref: u.setReference }),
|
|
1837
|
-
i ? /* @__PURE__ */
|
|
1840
|
+
i ? /* @__PURE__ */ l(
|
|
1838
1841
|
"div",
|
|
1839
1842
|
{
|
|
1840
1843
|
role: "tooltip",
|
|
@@ -1861,17 +1864,17 @@ function Ze({
|
|
|
1861
1864
|
)
|
|
1862
1865
|
] });
|
|
1863
1866
|
}
|
|
1864
|
-
const oi = "_wrapper_1ijfr_1", ii = "_track_1ijfr_6", si = "_thumb_1ijfr_16", ai = "_track-fill_1ijfr_30",
|
|
1867
|
+
const oi = "_wrapper_1ijfr_1", ii = "_track_1ijfr_6", si = "_thumb_1ijfr_16", ai = "_track-fill_1ijfr_30", ri = "_root_1ijfr_49", te = {
|
|
1865
1868
|
wrapper: oi,
|
|
1866
1869
|
track: ii,
|
|
1867
1870
|
thumb: si,
|
|
1868
1871
|
"track-fill": "_track-fill_1ijfr_30",
|
|
1869
1872
|
trackFill: ai,
|
|
1870
|
-
root:
|
|
1873
|
+
root: ri
|
|
1871
1874
|
};
|
|
1872
|
-
function
|
|
1875
|
+
function li() {
|
|
1873
1876
|
const e = V(), t = b("volume"), o = b("muted"), i = v(), s = o || t === 0, { t: a } = f();
|
|
1874
|
-
return /* @__PURE__ */
|
|
1877
|
+
return /* @__PURE__ */ l("div", { className: te.wrapper, children: [
|
|
1875
1878
|
/* @__PURE__ */ n(
|
|
1876
1879
|
"button",
|
|
1877
1880
|
{
|
|
@@ -1886,7 +1889,7 @@ function ri() {
|
|
|
1886
1889
|
children: s ? /* @__PURE__ */ n(it, { className: "controls-button-icon" }) : t < 0.5 ? /* @__PURE__ */ n(st, { className: "controls-button-icon" }) : /* @__PURE__ */ n(at, { className: "controls-button-icon" })
|
|
1887
1890
|
}
|
|
1888
1891
|
),
|
|
1889
|
-
/* @__PURE__ */
|
|
1892
|
+
/* @__PURE__ */ l(
|
|
1890
1893
|
se.Root,
|
|
1891
1894
|
{
|
|
1892
1895
|
className: te.root,
|
|
@@ -1911,7 +1914,7 @@ const je = {
|
|
|
1911
1914
|
keys: ["Space", "Enter", "k"],
|
|
1912
1915
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1913
1916
|
var i;
|
|
1914
|
-
(i = document.activeElement) != null && i.hasAttribute("data-media-player") && (t.togglePaused(o), x(e, "togglePaused"));
|
|
1917
|
+
(i = document.activeElement) != null && i.hasAttribute("data-media-player") && (o.preventDefault(), t.togglePaused(o), x(e, "togglePaused"));
|
|
1915
1918
|
}
|
|
1916
1919
|
},
|
|
1917
1920
|
seekForward: {
|
|
@@ -2119,15 +2122,15 @@ class mi {
|
|
|
2119
2122
|
onChange(t, o, i = "studio-player") {
|
|
2120
2123
|
const s = i ? localStorage.getItem(i) : null, a = o ? localStorage.getItem(o) : null;
|
|
2121
2124
|
this.playerId = i, this.mediaId = o;
|
|
2122
|
-
let
|
|
2125
|
+
let r = {};
|
|
2123
2126
|
if (s)
|
|
2124
2127
|
try {
|
|
2125
|
-
|
|
2128
|
+
r = JSON.parse(s);
|
|
2126
2129
|
} catch {
|
|
2127
2130
|
}
|
|
2128
2131
|
this.data = {
|
|
2129
2132
|
...Ke,
|
|
2130
|
-
...
|
|
2133
|
+
...r
|
|
2131
2134
|
}, ve(this.overrideTime) && this.overrideTime >= 0 ? this.time = this.overrideTime : this.time = a ? +a : null;
|
|
2132
2135
|
}
|
|
2133
2136
|
save() {
|
|
@@ -2137,18 +2140,18 @@ class mi {
|
|
|
2137
2140
|
}
|
|
2138
2141
|
}
|
|
2139
2142
|
function hi(e, t, o, i) {
|
|
2140
|
-
const s = D(() => new mi(), []), [a,
|
|
2143
|
+
const s = D(() => new mi(), []), [a, r] = k(
|
|
2141
2144
|
s.initializeState(i)
|
|
2142
2145
|
), c = p(
|
|
2143
2146
|
(h) => {
|
|
2144
|
-
|
|
2147
|
+
r((g) => (s.saveData("multiplier", h), {
|
|
2145
2148
|
...g,
|
|
2146
2149
|
captionsFontSizeMultiplier: h
|
|
2147
2150
|
}));
|
|
2148
2151
|
},
|
|
2149
2152
|
[s]
|
|
2150
2153
|
), u = p(() => {
|
|
2151
|
-
|
|
2154
|
+
r((h) => {
|
|
2152
2155
|
const g = !h.captionPositionOnTop;
|
|
2153
2156
|
return s.saveData("ontop", g), {
|
|
2154
2157
|
...h,
|
|
@@ -2156,7 +2159,7 @@ function hi(e, t, o, i) {
|
|
|
2156
2159
|
};
|
|
2157
2160
|
});
|
|
2158
2161
|
}, [s]), d = p(() => {
|
|
2159
|
-
|
|
2162
|
+
r((h) => {
|
|
2160
2163
|
const g = !h.captionsInvertColors;
|
|
2161
2164
|
return s.saveData("invert", g), {
|
|
2162
2165
|
...h,
|
|
@@ -2164,7 +2167,7 @@ function hi(e, t, o, i) {
|
|
|
2164
2167
|
};
|
|
2165
2168
|
});
|
|
2166
2169
|
}, [s]), _ = p(() => {
|
|
2167
|
-
|
|
2170
|
+
r((h) => {
|
|
2168
2171
|
const g = !h.commentsEnabled;
|
|
2169
2172
|
return s.saveData("comments", g), {
|
|
2170
2173
|
...h,
|
|
@@ -2172,22 +2175,22 @@ function hi(e, t, o, i) {
|
|
|
2172
2175
|
};
|
|
2173
2176
|
});
|
|
2174
2177
|
}, [s]), C = p(() => {
|
|
2175
|
-
|
|
2178
|
+
r((h) => ({
|
|
2176
2179
|
...h,
|
|
2177
2180
|
interactionsDisabled: !1
|
|
2178
2181
|
}));
|
|
2179
2182
|
}, []), w = p(() => {
|
|
2180
|
-
|
|
2183
|
+
r((h) => ({
|
|
2181
2184
|
...h,
|
|
2182
2185
|
interactionsDisabled: !0
|
|
2183
2186
|
}));
|
|
2184
2187
|
}, []), M = p((h) => {
|
|
2185
|
-
|
|
2188
|
+
r((g) => ({
|
|
2186
2189
|
...g,
|
|
2187
2190
|
globalKeysDisabled: h
|
|
2188
2191
|
}));
|
|
2189
2192
|
}, []), L = p((h) => {
|
|
2190
|
-
|
|
2193
|
+
r((g) => ({
|
|
2191
2194
|
...g,
|
|
2192
2195
|
isKeyboardShortcutsOpen: h
|
|
2193
2196
|
}));
|
|
@@ -2215,8 +2218,8 @@ function hi(e, t, o, i) {
|
|
|
2215
2218
|
storage: s
|
|
2216
2219
|
};
|
|
2217
2220
|
}
|
|
2218
|
-
const pi = (e) => /* @__PURE__ */ n("svg", { width: 56, height: 72, viewBox: "0 0 28 36", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("g", { id: "Icons", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd", children: /* @__PURE__ */
|
|
2219
|
-
/* @__PURE__ */
|
|
2221
|
+
const pi = (e) => /* @__PURE__ */ n("svg", { width: 56, height: 72, viewBox: "0 0 28 36", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("g", { id: "Icons", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ l("g", { id: "audio", children: [
|
|
2222
|
+
/* @__PURE__ */ l("g", { id: "icon-file-base-2", children: [
|
|
2220
2223
|
/* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z", fill: "#FFFFFF" }),
|
|
2221
2224
|
/* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z M1.993,35 C1.445,35 1,34.552 1,34 L1,2 C1,1.448 1.445,1 1.993,1 L16.5,1 L16.5,9 C16.5,10.379 17.621,11.5 18.999,11.5 L27,11.5 L27,34 C27,34.552 26.554,35 26.006,35 L1.993,35 Z M27,10.5 L18.999,10.5 C18.173,10.5 17.5,9.827 17.5,9 L17.5,1 L17.585,1 L27,10.414 L27,10.5 L27,10.5 Z", id: "icon-file-base", fill: "#FFFFFF" }),
|
|
2222
2225
|
/* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z M1.993,35 C1.445,35 1,34.552 1,34 L1,2 C1,1.448 1.445,1 1.993,1 L16.5,1 L16.5,9 C16.5,10.379 17.621,11.5 18.999,11.5 L27,11.5 L27,34 C27,34.552 26.554,35 26.006,35 L1.993,35 Z M27,10.5 L18.999,10.5 C18.173,10.5 17.5,9.827 17.5,9 L17.5,1 L17.585,1 L27,10.414 L27,10.5 L27,10.5 Z", fill: "#384A58" })
|
|
@@ -2225,16 +2228,16 @@ const pi = (e) => /* @__PURE__ */ n("svg", { width: 56, height: 72, viewBox: "0
|
|
|
2225
2228
|
] }) }) });
|
|
2226
2229
|
function fi() {
|
|
2227
2230
|
const e = y();
|
|
2228
|
-
return /* @__PURE__ */
|
|
2231
|
+
return /* @__PURE__ */ l("div", { className: "audio-layout-wrapper", children: [
|
|
2229
2232
|
/* @__PURE__ */ n(pi, {}),
|
|
2230
|
-
/* @__PURE__ */ n(
|
|
2233
|
+
/* @__PURE__ */ n(rt, {}),
|
|
2231
2234
|
/* @__PURE__ */ n(Ge, {}),
|
|
2232
2235
|
/* @__PURE__ */ n(Je, { captions: e.captions })
|
|
2233
2236
|
] });
|
|
2234
2237
|
}
|
|
2235
2238
|
function _i() {
|
|
2236
2239
|
const e = y(), t = e.kebabMenuElements.length > 0;
|
|
2237
|
-
return /* @__PURE__ */
|
|
2240
|
+
return /* @__PURE__ */ l(X, { children: [
|
|
2238
2241
|
/* @__PURE__ */ n(
|
|
2239
2242
|
i1,
|
|
2240
2243
|
{
|
|
@@ -2242,7 +2245,7 @@ function _i() {
|
|
|
2242
2245
|
title: e.title
|
|
2243
2246
|
}
|
|
2244
2247
|
),
|
|
2245
|
-
/* @__PURE__ */ n(
|
|
2248
|
+
/* @__PURE__ */ n(rt, {}),
|
|
2246
2249
|
/* @__PURE__ */ n(Ge, {}),
|
|
2247
2250
|
/* @__PURE__ */ n(Je, { captions: e.captions }),
|
|
2248
2251
|
/* @__PURE__ */ n(m1, {}),
|
|
@@ -2284,10 +2287,10 @@ function Li({
|
|
|
2284
2287
|
controlsLayout: o,
|
|
2285
2288
|
showCaptionsButton: i
|
|
2286
2289
|
}) {
|
|
2287
|
-
const s = V(), a = v(), { hasAnnotations:
|
|
2290
|
+
const s = V(), a = v(), { hasAnnotations: r, hasQuizmarkers: c, interactive: u } = y(), d = a.state.interactionsDisabled || a.state.isKeyboardShortcutsOpen;
|
|
2288
2291
|
return ki(), Z(() => {
|
|
2289
2292
|
s && (s.remoteControl.pauseControls(), t && (typeof t == "function" ? t(s) : t.current = s));
|
|
2290
|
-
}, [s, t]), /* @__PURE__ */
|
|
2293
|
+
}, [s, t]), /* @__PURE__ */ l(
|
|
2291
2294
|
"div",
|
|
2292
2295
|
{
|
|
2293
2296
|
"data-darkmode": e,
|
|
@@ -2295,22 +2298,23 @@ function Li({
|
|
|
2295
2298
|
[W.normal]: o === "normal",
|
|
2296
2299
|
[W.compact]: o === "compact"
|
|
2297
2300
|
}),
|
|
2301
|
+
inert: d ? "true" : void 0,
|
|
2298
2302
|
children: [
|
|
2299
|
-
o === "normal" ? /* @__PURE__ */
|
|
2303
|
+
o === "normal" ? /* @__PURE__ */ l(
|
|
2300
2304
|
Ze,
|
|
2301
2305
|
{
|
|
2302
2306
|
layout: "normal",
|
|
2303
2307
|
interactionsDisabled: a.state.interactionsDisabled,
|
|
2304
2308
|
children: [
|
|
2305
|
-
u ||
|
|
2309
|
+
u || r || c ? /* @__PURE__ */ n(ti, {}) : null,
|
|
2306
2310
|
u ? /* @__PURE__ */ n(q1, {}) : null,
|
|
2307
2311
|
/* @__PURE__ */ n(De, {})
|
|
2308
2312
|
]
|
|
2309
2313
|
}
|
|
2310
2314
|
) : null,
|
|
2311
|
-
/* @__PURE__ */
|
|
2315
|
+
/* @__PURE__ */ l("div", { className: W.leftControls, children: [
|
|
2312
2316
|
/* @__PURE__ */ n(t1, {}),
|
|
2313
|
-
/* @__PURE__ */ n(
|
|
2317
|
+
/* @__PURE__ */ n(li, {})
|
|
2314
2318
|
] }),
|
|
2315
2319
|
/* @__PURE__ */ n("div", { className: W.indicators, children: /* @__PURE__ */ n(f1, {}) }),
|
|
2316
2320
|
o === "compact" ? /* @__PURE__ */ n(
|
|
@@ -2321,7 +2325,7 @@ function Li({
|
|
|
2321
2325
|
children: /* @__PURE__ */ n(De, {})
|
|
2322
2326
|
}
|
|
2323
2327
|
) : null,
|
|
2324
|
-
/* @__PURE__ */
|
|
2328
|
+
/* @__PURE__ */ l("div", { className: W.rightControls, children: [
|
|
2325
2329
|
i && /* @__PURE__ */ n(fn, {}),
|
|
2326
2330
|
/* @__PURE__ */ n(Eo, {}),
|
|
2327
2331
|
/* @__PURE__ */ n(Uo, {})
|
|
@@ -2335,24 +2339,24 @@ function xi(e, t) {
|
|
|
2335
2339
|
}
|
|
2336
2340
|
function Mi(e, t, o, i, s) {
|
|
2337
2341
|
return (a) => {
|
|
2338
|
-
const
|
|
2339
|
-
|
|
2342
|
+
const r = a.detail.currentTime, c = !o.paused, u = Math.min(o.duration * 0.05, 2);
|
|
2343
|
+
r >= e.time && r < e.time + u && !i[e.id] && (s({ ...i, [e.id]: !0 }), t(e, c));
|
|
2340
2344
|
};
|
|
2341
2345
|
}
|
|
2342
2346
|
function Pi() {
|
|
2343
2347
|
const e = V(), { quizMarkers: t, onQuizMarkerShow: o } = y(), [i, s] = k(
|
|
2344
|
-
t.reduce((a,
|
|
2348
|
+
t.reduce((a, r) => (a[r.id] = !1, a), {})
|
|
2345
2349
|
);
|
|
2346
2350
|
Z(() => {
|
|
2347
2351
|
if (!e)
|
|
2348
2352
|
return;
|
|
2349
2353
|
t.length > Object.keys(i).length && s(xi(t, i));
|
|
2350
|
-
const a = [],
|
|
2354
|
+
const a = [], r = (c) => {
|
|
2351
2355
|
var _;
|
|
2352
2356
|
const u = (_ = c == null ? void 0 : c.request) == null ? void 0 : _.detail, d = t.reduce((C, w) => (C[w.id] = w.time <= u, C), {});
|
|
2353
2357
|
s({ ...i, ...d });
|
|
2354
2358
|
};
|
|
2355
|
-
e.addEventListener("seeked",
|
|
2359
|
+
e.addEventListener("seeked", r);
|
|
2356
2360
|
for (const c of t) {
|
|
2357
2361
|
const u = Mi(
|
|
2358
2362
|
c,
|
|
@@ -2366,14 +2370,14 @@ function Pi() {
|
|
|
2366
2370
|
return () => {
|
|
2367
2371
|
for (const c of a)
|
|
2368
2372
|
e.removeEventListener("time-update", c);
|
|
2369
|
-
e.removeEventListener("seeked",
|
|
2373
|
+
e.removeEventListener("seeked", r);
|
|
2370
2374
|
};
|
|
2371
2375
|
}, [t, e, i]);
|
|
2372
2376
|
}
|
|
2373
2377
|
function Ni() {
|
|
2374
2378
|
return Pi(), null;
|
|
2375
2379
|
}
|
|
2376
|
-
const Ii = {},
|
|
2380
|
+
const Ii = {}, le = () => {
|
|
2377
2381
|
};
|
|
2378
2382
|
function Bi({
|
|
2379
2383
|
title: e,
|
|
@@ -2382,15 +2386,15 @@ function Bi({
|
|
|
2382
2386
|
captions: i = [],
|
|
2383
2387
|
thumbnail: s,
|
|
2384
2388
|
hideFullScreen: a = !1,
|
|
2385
|
-
comments:
|
|
2389
|
+
comments: r = [],
|
|
2386
2390
|
locale: c = "en",
|
|
2387
2391
|
annotations: u = [],
|
|
2388
2392
|
quizMarkers: d = [],
|
|
2389
2393
|
interactive: _ = !1,
|
|
2390
|
-
onAnnotationClick: C =
|
|
2391
|
-
onQuizMarkerClick: w =
|
|
2392
|
-
onQuizMarkerShow: M =
|
|
2393
|
-
onInteractivePinClick: L =
|
|
2394
|
+
onAnnotationClick: C = le,
|
|
2395
|
+
onQuizMarkerClick: w = le,
|
|
2396
|
+
onQuizMarkerShow: M = le,
|
|
2397
|
+
onInteractivePinClick: L = le,
|
|
2394
2398
|
onCaptionsDelete: I,
|
|
2395
2399
|
interactiveMenuElements: h = [],
|
|
2396
2400
|
kebabMenuElements: g = [],
|
|
@@ -2423,7 +2427,7 @@ function Bi({
|
|
|
2423
2427
|
{
|
|
2424
2428
|
title: e,
|
|
2425
2429
|
hideFullScreen: a,
|
|
2426
|
-
comments:
|
|
2430
|
+
comments: r,
|
|
2427
2431
|
captions: i,
|
|
2428
2432
|
thumbnail: s,
|
|
2429
2433
|
annotations: u,
|
|
@@ -2444,10 +2448,10 @@ function Bi({
|
|
|
2444
2448
|
onCaptionsDelete: I,
|
|
2445
2449
|
controlsLayout: ne,
|
|
2446
2450
|
startAt: B,
|
|
2447
|
-
children: /* @__PURE__ */ n(Rt, { contextValue: Ce, children: /* @__PURE__ */
|
|
2451
|
+
children: /* @__PURE__ */ n(Rt, { contextValue: Ce, children: /* @__PURE__ */ l(
|
|
2448
2452
|
Nt,
|
|
2449
2453
|
{
|
|
2450
|
-
"data-version": "0.
|
|
2454
|
+
"data-version": "1.0.1",
|
|
2451
2455
|
crossOrigin: j,
|
|
2452
2456
|
storage: R ? null : ut,
|
|
2453
2457
|
title: e,
|
|
@@ -2469,7 +2473,7 @@ function Bi({
|
|
|
2469
2473
|
oe === "none" && ie("audio");
|
|
2470
2474
|
},
|
|
2471
2475
|
children: [
|
|
2472
|
-
/* @__PURE__ */
|
|
2476
|
+
/* @__PURE__ */ l(It, { className: Ii.mediaProvider, children: [
|
|
2473
2477
|
oe === "audio" && /* @__PURE__ */ n(fi, {}),
|
|
2474
2478
|
oe === "video" && /* @__PURE__ */ n(_i, {})
|
|
2475
2479
|
] }),
|