@instructure/studio-player 0.5.6 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/studio-player.es.js +280 -273
- package/package.json +1 -1
package/dist/studio-player.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './index-Bp7bsIbA.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
|
-
var
|
|
3
|
+
var H = (e, t, o) => pt(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
4
|
import { jsx as n, jsxs as r, Fragment as X } from "react/jsx-runtime";
|
|
5
|
-
import { createContext as we, useContext as ye, useState as k, useCallback as
|
|
6
|
-
import { u as
|
|
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
|
+
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";
|
|
8
|
-
import { initReactI18next as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useFloating as me, autoUpdate as he, shift as ke, offset as Le, arrow as xe, useListNavigation as ze, useDismiss as Me, useInteractions as Pe, FloatingFocusManager as Ne, FloatingArrow as Ie, useMergeRefs as $e, detectOverflow as
|
|
8
|
+
import { initReactI18next as St, useTranslation as f } from "react-i18next";
|
|
9
|
+
import Et from "i18next";
|
|
10
|
+
import Tt from "i18next-resources-to-backend";
|
|
11
|
+
import { useFloating as me, autoUpdate as he, shift as ke, offset as Le, arrow as xe, useListNavigation as ze, useDismiss as Me, useInteractions as Pe, FloatingFocusManager as Ne, FloatingArrow as Ie, useMergeRefs as $e, detectOverflow as At } from "@floating-ui/react";
|
|
12
12
|
const Vt = (e, t, o) => {
|
|
13
13
|
const i = e[t];
|
|
14
14
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((s, a) => {
|
|
@@ -22,8 +22,8 @@ const Vt = (e, t, o) => {
|
|
|
22
22
|
);
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
Et.use(St).use(
|
|
26
|
+
Tt(
|
|
27
27
|
(e) => Vt(/* @__PURE__ */ Object.assign({ "./locales/ar.json": () => import("./ar-VCVxJm7K.js"), "./locales/ca.json": () => import("./ca-BEBt24QP.js"), "./locales/cy.json": () => import("./cy-YaAJqNQl.js"), "./locales/da-x-k12.json": () => import("./da-x-k12-lQy2NFaK.js"), "./locales/da.json": () => import("./da-BZWhI2Xn.js"), "./locales/de.json": () => import("./de-BUvRwMD6.js"), "./locales/en-AU-x-unimelb.json": () => import("./en-AU-x-unimelb-CMl3c1a0.js"), "./locales/en-GB-x-ukhe.json": () => import("./en-GB-x-ukhe-oT9RNDTK.js"), "./locales/en.json": () => import("./en-DwAikWk3.js"), "./locales/en_AU.json": () => import("./en_AU-CvZ7peTk.js"), "./locales/en_CY.json": () => import("./en_CY-BG8Pm72U.js"), "./locales/en_GB.json": () => import("./en_GB-CA_2B3N6.js"), "./locales/es.json": () => import("./es-CsXsddFr.js"), "./locales/es_ES.json": () => import("./es_ES-D71hU2MM.js"), "./locales/fi.json": () => import("./fi-D2HqteTW.js"), "./locales/fr.json": () => import("./fr-BAEJ5gcO.js"), "./locales/fr_CA.json": () => import("./fr_CA-BKv7vpJe.js"), "./locales/ga.json": () => import("./ga-COMvYqPH.js"), "./locales/hi.json": () => import("./hi-BejTYLRj.js"), "./locales/ht.json": () => import("./ht-BeM6QStZ.js"), "./locales/id.json": () => import("./id-NJzBnSib.js"), "./locales/is.json": () => import("./is-Cv47H4ey.js"), "./locales/it.json": () => import("./it-B6LzBKYz.js"), "./locales/ja.json": () => import("./ja-BV_3G5Hd.js"), "./locales/kl.json": () => import("./kl-CBFEKDWH.js"), "./locales/mi.json": () => import("./mi-BRHT5aP1.js"), "./locales/ms.json": () => import("./ms-D7bYcHUm.js"), "./locales/nb-x-k12.json": () => import("./nb-x-k12-8GMfCmMo.js"), "./locales/nb.json": () => import("./nb-DyTI7Ts1.js"), "./locales/nl.json": () => import("./nl-DBSxFMy9.js"), "./locales/pl.json": () => import("./pl-DUdYRh1Y.js"), "./locales/pt.json": () => import("./pt-DkTHNOHF.js"), "./locales/pt_BR.json": () => import("./pt_BR-DZZGbQIg.js"), "./locales/ru.json": () => import("./ru-Bxl9NL5w.js"), "./locales/sl.json": () => import("./sl-D2hOGCNb.js"), "./locales/sv-x-k12.json": () => import("./sv-x-k12-B7c2_4ik.js"), "./locales/sv.json": () => import("./sv-Bic7JSI_.js"), "./locales/th.json": () => import("./th-hFDNyurj.js"), "./locales/vi.json": () => import("./vi-Dz6NuOdc.js"), "./locales/zh-Hans.json": () => import("./zh-Hans-DKg6WKbe.js"), "./locales/zh-Hant.json": () => import("./zh-Hant-ZHDw_Y-L.js"), "./locales/zh.json": () => import("./zh-C7jcyKYp.js"), "./locales/zh_HK.json": () => import("./zh_HK-C2PlZhAG.js") }), `./locales/${e}.json`, 3)
|
|
28
28
|
)
|
|
29
29
|
).init({
|
|
@@ -63,19 +63,19 @@ function Ht({
|
|
|
63
63
|
onAnnotationClick: u,
|
|
64
64
|
onQuizMarkerClick: d,
|
|
65
65
|
onInteractivePinClick: _,
|
|
66
|
-
interactiveMenuElements:
|
|
66
|
+
interactiveMenuElements: C,
|
|
67
67
|
kebabMenuElements: w,
|
|
68
|
-
darkMode:
|
|
69
|
-
children:
|
|
70
|
-
forceComments:
|
|
71
|
-
disableCaptionSettings:
|
|
72
|
-
disableStorage:
|
|
68
|
+
darkMode: M,
|
|
69
|
+
children: L,
|
|
70
|
+
forceComments: I,
|
|
71
|
+
disableCaptionSettings: h,
|
|
72
|
+
disableStorage: g,
|
|
73
73
|
captionOffsetOverride: E,
|
|
74
74
|
disableInteractivePinRanges: P,
|
|
75
|
-
onQuizMarkerShow:
|
|
76
|
-
onCaptionsDelete:
|
|
77
|
-
controlsLayout:
|
|
78
|
-
startAt:
|
|
75
|
+
onQuizMarkerShow: S,
|
|
76
|
+
onCaptionsDelete: O,
|
|
77
|
+
controlsLayout: R,
|
|
78
|
+
startAt: B
|
|
79
79
|
}) {
|
|
80
80
|
const j = {
|
|
81
81
|
title: e,
|
|
@@ -89,25 +89,25 @@ function Ht({
|
|
|
89
89
|
onAnnotationClick: u,
|
|
90
90
|
onQuizMarkerClick: d,
|
|
91
91
|
onInteractivePinClick: _,
|
|
92
|
-
interactiveMenuElements:
|
|
92
|
+
interactiveMenuElements: C,
|
|
93
93
|
kebabMenuElements: w,
|
|
94
|
-
darkMode:
|
|
94
|
+
darkMode: M,
|
|
95
95
|
hasComments: o.length > 0,
|
|
96
96
|
hasAnnotations: a.length > 0,
|
|
97
97
|
hasQuizmarkers: l.length > 0,
|
|
98
|
-
forceComments:
|
|
99
|
-
disableCaptionSettings:
|
|
100
|
-
disableStorage:
|
|
98
|
+
forceComments: I,
|
|
99
|
+
disableCaptionSettings: h,
|
|
100
|
+
disableStorage: g,
|
|
101
101
|
captionOffsetOverride: E,
|
|
102
102
|
disableInteractivePinRanges: P,
|
|
103
|
-
onQuizMarkerShow:
|
|
104
|
-
onCaptionsDelete:
|
|
105
|
-
controlsLayout:
|
|
106
|
-
startAt:
|
|
103
|
+
onQuizMarkerShow: S,
|
|
104
|
+
onCaptionsDelete: O,
|
|
105
|
+
controlsLayout: R,
|
|
106
|
+
startAt: B
|
|
107
107
|
};
|
|
108
|
-
return /* @__PURE__ */ n(qe.Provider, { value: j, children:
|
|
108
|
+
return /* @__PURE__ */ n(qe.Provider, { value: j, children: L });
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function y() {
|
|
111
111
|
const e = ye(qe);
|
|
112
112
|
if (!e)
|
|
113
113
|
throw new Error(
|
|
@@ -115,9 +115,9 @@ function L() {
|
|
|
115
115
|
);
|
|
116
116
|
return e;
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const Ot = "_annotation-overlay_1kxzn_1", Bt = {
|
|
119
119
|
"annotation-overlay": "_annotation-overlay_1kxzn_1",
|
|
120
|
-
annotationOverlay:
|
|
120
|
+
annotationOverlay: Ot
|
|
121
121
|
}, He = 0.25, Ft = (e, t) => {
|
|
122
122
|
let o = !1;
|
|
123
123
|
return (i) => {
|
|
@@ -126,9 +126,9 @@ const Bt = "_annotation-overlay_1kxzn_1", Ot = {
|
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
128
|
function Dt({ annotations: e }) {
|
|
129
|
-
const t =
|
|
129
|
+
const t = V(), o = v(), i = y(), [s, a] = k(
|
|
130
130
|
null
|
|
131
|
-
), l =
|
|
131
|
+
), l = p(
|
|
132
132
|
(u) => {
|
|
133
133
|
t == null || t.pause(), i.interactive || o.disableInteractions(), a(u);
|
|
134
134
|
},
|
|
@@ -154,7 +154,7 @@ function Dt({ annotations: e }) {
|
|
|
154
154
|
for (const d of u)
|
|
155
155
|
t.removeEventListener("time-update", d);
|
|
156
156
|
};
|
|
157
|
-
}, [t, e]), s ? /* @__PURE__ */ n("div", { className:
|
|
157
|
+
}, [t, e]), s ? /* @__PURE__ */ n("div", { className: Bt.annotationOverlay, children: s.render(c) }) : null;
|
|
158
158
|
}
|
|
159
159
|
const Zt = "_media-buffering-indicator_1fwjr_1", jt = "_media-buffering-spinner_1fwjr_17", Kt = "_media-buffering-spin_1fwjr_17", zt = "_media-buffering-track_1fwjr_22", $t = "_media-buffering-track-fill_1fwjr_27", ae = {
|
|
160
160
|
"media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
|
|
@@ -187,7 +187,7 @@ const Ut = [
|
|
|
187
187
|
"ArrowRight",
|
|
188
188
|
"Escape"
|
|
189
189
|
];
|
|
190
|
-
function
|
|
190
|
+
function Se(e, t = !1) {
|
|
191
191
|
Z(() => {
|
|
192
192
|
const o = new AbortController();
|
|
193
193
|
return document.addEventListener(
|
|
@@ -213,7 +213,7 @@ function Ee(e, t = !1) {
|
|
|
213
213
|
}
|
|
214
214
|
function qt(e) {
|
|
215
215
|
const t = D(() => ({ Escape: e }), [e]);
|
|
216
|
-
return
|
|
216
|
+
return Se(t);
|
|
217
217
|
}
|
|
218
218
|
const Qe = (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.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }), Gt = "_controls-overlay_151j5_1", Qt = "_keyboard-shortcuts-overlay_151j5_11", Wt = "_screen-reader-content_151j5_76", Yt = "_controls-button_151j5_90", Xt = "_keyboard-shortcuts-button_151j5_106", Jt = "_kebab-menu-button_151j5_116", en = "_kebab-menu_151j5_116", tn = "_kebab-menu-item_151j5_145", nn = "_close-button_151j5_184", on = "_arrow_151j5_198", A = {
|
|
219
219
|
"controls-overlay": "_controls-overlay_151j5_1",
|
|
@@ -237,7 +237,7 @@ const Qe = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0
|
|
|
237
237
|
arrow: on
|
|
238
238
|
};
|
|
239
239
|
function sn({ onClose: e }) {
|
|
240
|
-
const { t } =
|
|
240
|
+
const { t } = f();
|
|
241
241
|
qt(e);
|
|
242
242
|
const o = (i) => {
|
|
243
243
|
i && i.focus();
|
|
@@ -359,9 +359,9 @@ const an = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0
|
|
|
359
359
|
delete: /* @__PURE__ */ n(We, {})
|
|
360
360
|
}, dn = (e) => typeof e != "string";
|
|
361
361
|
function mn() {
|
|
362
|
-
const [e, t] = k(!1), [o, i] = k(null), s = v(), a =
|
|
362
|
+
const [e, t] = k(!1), [o, i] = k(null), s = v(), a = y(), l = () => {
|
|
363
363
|
t(!e), s.setGlobalKeysDisabled(!e);
|
|
364
|
-
}, c = z(null), u = z([]), { refs: d, floatingStyles: _, context:
|
|
364
|
+
}, c = z(null), u = z([]), { refs: d, floatingStyles: _, context: C } = me({
|
|
365
365
|
open: e,
|
|
366
366
|
onOpenChange: l,
|
|
367
367
|
whileElementsMounted: he,
|
|
@@ -373,33 +373,33 @@ function mn() {
|
|
|
373
373
|
element: c
|
|
374
374
|
})
|
|
375
375
|
]
|
|
376
|
-
}), w = ze(
|
|
376
|
+
}), w = ze(C, {
|
|
377
377
|
listRef: u,
|
|
378
378
|
activeIndex: o,
|
|
379
379
|
onNavigate: i,
|
|
380
380
|
loop: !0
|
|
381
|
-
}),
|
|
382
|
-
[
|
|
383
|
-
), { t:
|
|
381
|
+
}), M = Me(C), { getReferenceProps: L, getFloatingProps: I, getItemProps: h } = Pe(
|
|
382
|
+
[M, w]
|
|
383
|
+
), { t: g } = f();
|
|
384
384
|
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ r(X, { children: [
|
|
385
385
|
/* @__PURE__ */ n(
|
|
386
386
|
"button",
|
|
387
387
|
{
|
|
388
388
|
id: "kebab-menu-button",
|
|
389
389
|
type: "button",
|
|
390
|
-
"aria-label":
|
|
390
|
+
"aria-label": g("KEBAB_MENU", { title: a.title }),
|
|
391
391
|
"aria-haspopup": "true",
|
|
392
392
|
"aria-expanded": e,
|
|
393
393
|
className: `${A.controlsButton} ${A.kebabMenuButton}`,
|
|
394
394
|
tabIndex: s.state.interactionsDisabled || e ? -1 : 0,
|
|
395
395
|
ref: d.setReference,
|
|
396
|
-
...
|
|
396
|
+
...L({
|
|
397
397
|
onClick: () => l()
|
|
398
398
|
}),
|
|
399
399
|
children: /* @__PURE__ */ n(an, {})
|
|
400
400
|
}
|
|
401
401
|
),
|
|
402
|
-
e && /* @__PURE__ */ n(Ne, { context:
|
|
402
|
+
e && /* @__PURE__ */ n(Ne, { context: C, guards: !1, children: /* @__PURE__ */ r(
|
|
403
403
|
"div",
|
|
404
404
|
{
|
|
405
405
|
id: "kebab-menu",
|
|
@@ -408,26 +408,26 @@ function mn() {
|
|
|
408
408
|
className: A.kebabMenu,
|
|
409
409
|
role: "menu",
|
|
410
410
|
"aria-labelledby": "kebab-menu-button",
|
|
411
|
-
...
|
|
411
|
+
...I(),
|
|
412
412
|
children: [
|
|
413
413
|
a.kebabMenuElements.map(
|
|
414
|
-
({ id: E, text: P, icon:
|
|
414
|
+
({ id: E, text: P, icon: S, onClick: O }, R) => /* @__PURE__ */ r(
|
|
415
415
|
"button",
|
|
416
416
|
{
|
|
417
|
-
tabIndex: o ===
|
|
417
|
+
tabIndex: o === R ? 0 : -1,
|
|
418
418
|
type: "button",
|
|
419
419
|
role: "menuitem",
|
|
420
420
|
className: A.kebabMenuItem,
|
|
421
|
-
ref: (
|
|
422
|
-
u.current[
|
|
421
|
+
ref: (B) => {
|
|
422
|
+
u.current[R] = B;
|
|
423
423
|
},
|
|
424
|
-
...
|
|
424
|
+
...h({
|
|
425
425
|
onClick: () => {
|
|
426
|
-
|
|
426
|
+
O(E), t(!1);
|
|
427
427
|
}
|
|
428
428
|
}),
|
|
429
429
|
children: [
|
|
430
|
-
dn(
|
|
430
|
+
dn(S) ? S : un[S],
|
|
431
431
|
P
|
|
432
432
|
]
|
|
433
433
|
},
|
|
@@ -438,7 +438,7 @@ function mn() {
|
|
|
438
438
|
Ie,
|
|
439
439
|
{
|
|
440
440
|
ref: c,
|
|
441
|
-
context:
|
|
441
|
+
context: C,
|
|
442
442
|
className: A.arrow
|
|
443
443
|
}
|
|
444
444
|
)
|
|
@@ -449,24 +449,24 @@ function mn() {
|
|
|
449
449
|
}
|
|
450
450
|
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
451
|
function pn() {
|
|
452
|
-
const [e, t] = k(!1), [o, i] = k(!1),
|
|
453
|
-
|
|
454
|
-
}, [
|
|
455
|
-
|
|
456
|
-
}, [
|
|
457
|
-
(
|
|
458
|
-
[
|
|
452
|
+
const [e, t] = k(!1), [o, i] = k(!1), s = v(), a = b("playing"), l = de(), { t: c } = f(), u = p(() => {
|
|
453
|
+
s.setKeyboardShortcutsOpen(!0), s.disableInteractions(), a && (i(!0), l.pause());
|
|
454
|
+
}, [a, l, s]), d = p(() => {
|
|
455
|
+
s.setKeyboardShortcutsOpen(!1), t(!0), s.enableInteractions(), o && (i(!1), l.play());
|
|
456
|
+
}, [o, l, s]), _ = p(
|
|
457
|
+
(C) => e && (C == null ? void 0 : C.focus()),
|
|
458
|
+
[e]
|
|
459
459
|
);
|
|
460
|
-
return
|
|
460
|
+
return s.state.isKeyboardShortcutsOpen ? /* @__PURE__ */ n(sn, { onClose: d }) : /* @__PURE__ */ r("div", { className: A.controlsOverlay, children: [
|
|
461
461
|
/* @__PURE__ */ n(
|
|
462
462
|
"button",
|
|
463
463
|
{
|
|
464
|
-
ref:
|
|
465
|
-
"aria-label":
|
|
464
|
+
ref: _,
|
|
465
|
+
"aria-label": c("KEYBOARD_SHORTCUTS"),
|
|
466
466
|
type: "button",
|
|
467
467
|
className: `${A.controlsButton} ${A.keyboardShortcutsButton}`,
|
|
468
|
-
onClick:
|
|
469
|
-
tabIndex:
|
|
468
|
+
onClick: u,
|
|
469
|
+
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
470
470
|
children: /* @__PURE__ */ n(hn, {})
|
|
471
471
|
}
|
|
472
472
|
),
|
|
@@ -481,7 +481,7 @@ const Ye = (e) => /* @__PURE__ */ r("svg", { width: 24, height: 24, viewBox: "0
|
|
|
481
481
|
/* @__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
482
|
] });
|
|
483
483
|
function fn() {
|
|
484
|
-
const e = de(), t =
|
|
484
|
+
const e = de(), t = b("textTrack"), o = b("hasCaptions"), i = t && _t(t), s = v(), { t: a } = f(), l = p(
|
|
485
485
|
(c) => {
|
|
486
486
|
e.toggleCaptions(c.nativeEvent);
|
|
487
487
|
},
|
|
@@ -504,7 +504,7 @@ const _n = "_captions_1cu0g_1", Cn = {
|
|
|
504
504
|
captions: _n
|
|
505
505
|
}, gn = (e, t) => e ? t.top : t.bottom;
|
|
506
506
|
function Je({ captions: e }) {
|
|
507
|
-
const t = e.length > 0, o = v(), { captionOffsetOverride: i } =
|
|
507
|
+
const t = e.length > 0, o = v(), { captionOffsetOverride: i } = y(), s = o.state.captionPositionOnTop, a = gn(
|
|
508
508
|
s,
|
|
509
509
|
i ?? {}
|
|
510
510
|
);
|
|
@@ -575,7 +575,7 @@ const Y = [0.5, 0.75, 1, 1.25, 1.5, 2], bn = [0.5, 1, 2, 3, 4], vn = 5, wn = (e)
|
|
|
575
575
|
a >= e.timestamp && a < e.timestamp + t && !i && (o.add(e), i = !0), (a < e.timestamp || a >= e.timestamp + t) && i && (o.remove(e), i = !1);
|
|
576
576
|
};
|
|
577
577
|
}, kn = (e, t = 5) => {
|
|
578
|
-
const o =
|
|
578
|
+
const o = V(), i = wn(t);
|
|
579
579
|
return Z(() => {
|
|
580
580
|
if (!o)
|
|
581
581
|
return;
|
|
@@ -594,7 +594,7 @@ const Y = [0.5, 0.75, 1, 1.25, 1.5, 2], bn = [0.5, 1, 2, 3, 4], vn = 5, wn = (e)
|
|
|
594
594
|
i.clear();
|
|
595
595
|
};
|
|
596
596
|
}, [o, i, e]), i;
|
|
597
|
-
}, Ln = "_comments-overlay_bymws_1", xn = "_comments-container_bymws_10", Mn = "_kebab_bymws_20", Pn = "_comment_bymws_1", Nn = "_comment-text_bymws_51", In = "_comment-author-avatar_bymws_71",
|
|
597
|
+
}, Ln = "_comments-overlay_bymws_1", xn = "_comments-container_bymws_10", Mn = "_kebab_bymws_20", Pn = "_comment_bymws_1", Nn = "_comment-text_bymws_51", In = "_comment-author-avatar_bymws_71", Sn = "_comment-author-name_bymws_95", K = {
|
|
598
598
|
"comments-overlay": "_comments-overlay_bymws_1",
|
|
599
599
|
commentsOverlay: Ln,
|
|
600
600
|
"comments-container": "_comments-container_bymws_10",
|
|
@@ -606,9 +606,9 @@ const Y = [0.5, 0.75, 1, 1.25, 1.5, 2], bn = [0.5, 1, 2, 3, 4], vn = 5, wn = (e)
|
|
|
606
606
|
"comment-author-avatar": "_comment-author-avatar_bymws_71",
|
|
607
607
|
commentAuthorAvatar: In,
|
|
608
608
|
"comment-author-name": "_comment-author-name_bymws_95",
|
|
609
|
-
commentAuthorName:
|
|
609
|
+
commentAuthorName: Sn
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function En({ comment: e }) {
|
|
612
612
|
return e.render ? e.render(e, K) : /* @__PURE__ */ r("div", { className: K.comment, onClick: () => {
|
|
613
613
|
var t;
|
|
614
614
|
return (t = e.onClick) == null ? void 0 : t.call(e, e);
|
|
@@ -625,12 +625,12 @@ function Tn({ comment: e }) {
|
|
|
625
625
|
/* @__PURE__ */ n("span", { className: K.commentAuthorName, children: e.user.name })
|
|
626
626
|
] });
|
|
627
627
|
}
|
|
628
|
-
const
|
|
629
|
-
function
|
|
628
|
+
const Tn = 4;
|
|
629
|
+
function An({
|
|
630
630
|
comments: e,
|
|
631
631
|
isKebabMenuVisible: t
|
|
632
632
|
}) {
|
|
633
|
-
const o = v(), i = kn(e,
|
|
633
|
+
const o = v(), i = kn(e, Tn), s = !!b("textTrack"), a = i.map((l) => /* @__PURE__ */ n(En, { comment: l }, l.id));
|
|
634
634
|
return e.length > 0 && o.state.commentsEnabled ? /* @__PURE__ */ n(
|
|
635
635
|
"div",
|
|
636
636
|
{
|
|
@@ -654,11 +654,11 @@ function Vn({ renderOverlay: e }) {
|
|
|
654
654
|
const t = v();
|
|
655
655
|
return e(t);
|
|
656
656
|
}
|
|
657
|
-
const Rn = (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", { 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" }) }), 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: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }),
|
|
657
|
+
const Rn = (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", { 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" }) }), 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: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), On = "_settings-menu_1gbpr_1", Bn = "_menu-heading_1gbpr_37", Fn = "_check-icon_1gbpr_48", Dn = "_trash-icon_1gbpr_49", Zn = "_menu-item-label_1gbpr_62", jn = "_menu-item_1gbpr_62", Kn = "_menu-back-button_1gbpr_99", zn = "_arrow_1gbpr_125", F = {
|
|
658
658
|
"settings-menu": "_settings-menu_1gbpr_1",
|
|
659
|
-
settingsMenu:
|
|
659
|
+
settingsMenu: On,
|
|
660
660
|
"menu-heading": "_menu-heading_1gbpr_37",
|
|
661
|
-
menuHeading:
|
|
661
|
+
menuHeading: Bn,
|
|
662
662
|
"check-icon": "_check-icon_1gbpr_48",
|
|
663
663
|
checkIcon: Fn,
|
|
664
664
|
"trash-icon": "_trash-icon_1gbpr_49",
|
|
@@ -676,7 +676,7 @@ function q({
|
|
|
676
676
|
heading: t,
|
|
677
677
|
children: o
|
|
678
678
|
}) {
|
|
679
|
-
const i = $(), { t: s } =
|
|
679
|
+
const i = $(), { t: s } = f();
|
|
680
680
|
return /* @__PURE__ */ r(X, { children: [
|
|
681
681
|
!e && /* @__PURE__ */ r(
|
|
682
682
|
"button",
|
|
@@ -735,7 +735,7 @@ function J({ label: e, hint: t, onClick: o, Icon: i }) {
|
|
|
735
735
|
}
|
|
736
736
|
const Wn = (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: "M3.42229 2.82911C4.71149 1.83006 6.23876 1.19768 7.8383 1L7.96797 2.05432C6.55867 2.22862 5.21101 2.7866 4.07273 3.66874L3.42229 2.82911ZM5.44493 6.71393L9.49745 10.7665L17.0924 3.1705L17.8438 3.92297L9.49745 12.2693L4.69352 7.46534L5.44493 6.71393ZM17.932 8.83829C17.8618 8.27074 17.7364 7.70745 17.5589 7.16222L16.5482 7.49276C16.7055 7.97209 16.816 8.46843 16.8766 8.96689C16.917 9.29742 16.9372 9.6269 16.9372 9.96594C16.9372 10.305 16.917 10.6344 16.8777 10.9639C16.7033 12.3732 16.1454 13.7209 15.2632 14.8592L16.1029 15.5096C17.1019 14.2204 17.7343 12.6931 17.932 11.0925C17.9766 10.7205 18 10.3486 18 9.96594C18 9.58332 17.9766 9.21134 17.932 8.83829ZM1.05432 8.96795L0 8.83829C0.197684 7.23874 0.830061 5.71147 1.82911 4.42228L2.66874 5.07272C1.7866 6.211 1.22862 7.55865 1.05432 8.96795ZM0 11.0936C0.197684 12.6931 0.830061 14.2204 1.82911 15.5096L2.66874 14.8591C1.7866 13.7209 1.22862 12.3732 1.05432 10.9639L0 11.0936ZM10.0939 1.00011C11.6935 1.19673 13.2207 1.83017 14.5099 2.82922L13.8595 3.66884C12.7202 2.7867 11.3736 2.22872 9.96426 2.05442L10.0939 1.00011Z", fill: "currentColor" }) });
|
|
737
737
|
function Yn() {
|
|
738
|
-
const e = $(), t =
|
|
738
|
+
const e = $(), t = b("playbackRate"), { t: o } = f(), i = p(() => {
|
|
739
739
|
e.setPage("speed");
|
|
740
740
|
}, [e]);
|
|
741
741
|
return /* @__PURE__ */ n(
|
|
@@ -764,7 +764,7 @@ function tt(e) {
|
|
|
764
764
|
return s >= 1400 || a >= 2500 ? "1440p" : s >= 1e3 || a >= 1800 ? "1080p" : s >= 700 || a >= 1200 ? "720p" : s >= 460 || a >= 800 ? "480p" : s >= 300 || a >= 540 ? "360p" : s >= 200 || a >= 360 ? "240p" : "144p";
|
|
765
765
|
}
|
|
766
766
|
function Jn() {
|
|
767
|
-
const e = $(), t =
|
|
767
|
+
const e = $(), t = b("autoQuality"), o = b("quality"), { t: i } = f(), s = p(() => {
|
|
768
768
|
e.setPage("quality");
|
|
769
769
|
}, [e]);
|
|
770
770
|
if (!o)
|
|
@@ -781,7 +781,7 @@ function Jn() {
|
|
|
781
781
|
);
|
|
782
782
|
}
|
|
783
783
|
function eo() {
|
|
784
|
-
const e = $(), t =
|
|
784
|
+
const e = $(), t = b("hasCaptions"), o = b("textTrack"), { t: i } = f(), s = p(() => {
|
|
785
785
|
e.setPage("captions");
|
|
786
786
|
}, [e]);
|
|
787
787
|
return t ? /* @__PURE__ */ n(
|
|
@@ -808,7 +808,7 @@ const to = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0
|
|
|
808
808
|
"menu-icon": "_menu-icon_7nhpo_82",
|
|
809
809
|
menuIcon: ro
|
|
810
810
|
};
|
|
811
|
-
function
|
|
811
|
+
function Ee({
|
|
812
812
|
label: e,
|
|
813
813
|
checked: t = !1,
|
|
814
814
|
onClick: o,
|
|
@@ -833,9 +833,9 @@ function Te({
|
|
|
833
833
|
}
|
|
834
834
|
const co = (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: "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" }) });
|
|
835
835
|
function uo() {
|
|
836
|
-
const { t: e } =
|
|
836
|
+
const { t: e } = f(), t = y(), o = v();
|
|
837
837
|
return !t.forceComments && t.hasComments ? /* @__PURE__ */ n(
|
|
838
|
-
|
|
838
|
+
Ee,
|
|
839
839
|
{
|
|
840
840
|
Icon: co,
|
|
841
841
|
label: e("COMMENTS"),
|
|
@@ -874,7 +874,7 @@ function po() {
|
|
|
874
874
|
const e = bt({
|
|
875
875
|
rates: Y,
|
|
876
876
|
normalLabel: "1x"
|
|
877
|
-
}), { t } =
|
|
877
|
+
}), { t } = f();
|
|
878
878
|
return /* @__PURE__ */ n(q, { heading: t("PLAYBACK_SPEED"), children: e.map(({ value: o, label: i, select: s, selected: a }) => /* @__PURE__ */ n(
|
|
879
879
|
pe,
|
|
880
880
|
{
|
|
@@ -886,13 +886,13 @@ function po() {
|
|
|
886
886
|
)) });
|
|
887
887
|
}
|
|
888
888
|
function fo() {
|
|
889
|
-
const e = $(), { t } =
|
|
889
|
+
const e = $(), { t } = f(), o = p(() => {
|
|
890
890
|
e.setPage("captionManage");
|
|
891
891
|
}, [e]);
|
|
892
892
|
return /* @__PURE__ */ n(J, { label: t("CAPTIONS_MANAGE"), onClick: o });
|
|
893
893
|
}
|
|
894
894
|
function _o() {
|
|
895
|
-
const { t: e } =
|
|
895
|
+
const { t: e } = f(), t = v(), o = $(), i = p(() => {
|
|
896
896
|
o.setPage("captionFontSize");
|
|
897
897
|
}, [o]);
|
|
898
898
|
return /* @__PURE__ */ n(
|
|
@@ -905,7 +905,7 @@ function _o() {
|
|
|
905
905
|
);
|
|
906
906
|
}
|
|
907
907
|
function Co() {
|
|
908
|
-
const e = $(), t =
|
|
908
|
+
const e = $(), t = b("textTrack"), { t: o } = f(), { disableCaptionSettings: i } = v(), s = p(() => {
|
|
909
909
|
e.setPage("captionLanguage");
|
|
910
910
|
}, [e]);
|
|
911
911
|
return i ? null : /* @__PURE__ */ n(
|
|
@@ -918,9 +918,9 @@ function Co() {
|
|
|
918
918
|
);
|
|
919
919
|
}
|
|
920
920
|
function go() {
|
|
921
|
-
const { t: e } =
|
|
921
|
+
const { t: e } = f(), t = v();
|
|
922
922
|
return /* @__PURE__ */ n(
|
|
923
|
-
|
|
923
|
+
Ee,
|
|
924
924
|
{
|
|
925
925
|
label: e("ON_TOP"),
|
|
926
926
|
onClick: t.toggleCaptionPositionOnTop,
|
|
@@ -929,9 +929,9 @@ function go() {
|
|
|
929
929
|
);
|
|
930
930
|
}
|
|
931
931
|
function bo() {
|
|
932
|
-
const { t: e } =
|
|
932
|
+
const { t: e } = f(), t = v();
|
|
933
933
|
return /* @__PURE__ */ n(
|
|
934
|
-
|
|
934
|
+
Ee,
|
|
935
935
|
{
|
|
936
936
|
label: e("INVERT_COLORS"),
|
|
937
937
|
onClick: t.toggleCaptionsInvertColors,
|
|
@@ -940,7 +940,7 @@ function bo() {
|
|
|
940
940
|
);
|
|
941
941
|
}
|
|
942
942
|
function vo() {
|
|
943
|
-
const e =
|
|
943
|
+
const e = y(), { t } = f();
|
|
944
944
|
return /* @__PURE__ */ r(q, { heading: t("CAPTIONS"), children: [
|
|
945
945
|
/* @__PURE__ */ n(Co, {}),
|
|
946
946
|
/* @__PURE__ */ n(_o, {}),
|
|
@@ -950,7 +950,7 @@ function vo() {
|
|
|
950
950
|
] });
|
|
951
951
|
}
|
|
952
952
|
function wo() {
|
|
953
|
-
const e = vt(), { t } =
|
|
953
|
+
const e = vt(), { t } = f();
|
|
954
954
|
return /* @__PURE__ */ n(q, { heading: t("CAPTIONS_LANGUAGE"), children: e.map(({ value: o, label: i, select: s, selected: a }) => /* @__PURE__ */ n(
|
|
955
955
|
pe,
|
|
956
956
|
{
|
|
@@ -962,7 +962,7 @@ function wo() {
|
|
|
962
962
|
)) });
|
|
963
963
|
}
|
|
964
964
|
function yo() {
|
|
965
|
-
const e = v(), { t } =
|
|
965
|
+
const e = v(), { t } = f();
|
|
966
966
|
return /* @__PURE__ */ n(q, { heading: t("CAPTION_FONT_SIZE"), children: bn.map((o) => /* @__PURE__ */ n(
|
|
967
967
|
pe,
|
|
968
968
|
{
|
|
@@ -984,7 +984,7 @@ const $ = () => {
|
|
|
984
984
|
return e;
|
|
985
985
|
};
|
|
986
986
|
function ko() {
|
|
987
|
-
const e = $(), t =
|
|
987
|
+
const e = $(), t = y(), { t: o } = f();
|
|
988
988
|
return Z(() => {
|
|
989
989
|
t.captions.length === 0 && e.backToMain();
|
|
990
990
|
}, [t.captions]), /* @__PURE__ */ n(q, { heading: o("CAPTIONS_MANAGE"), children: t.captions.map((i) => /* @__PURE__ */ r(
|
|
@@ -1007,7 +1007,7 @@ function ko() {
|
|
|
1007
1007
|
)) });
|
|
1008
1008
|
}
|
|
1009
1009
|
function Lo() {
|
|
1010
|
-
const e =
|
|
1010
|
+
const e = b("autoQuality"), t = wt({ sort: "descending" }), { t: o } = f();
|
|
1011
1011
|
return /* @__PURE__ */ n(q, { heading: o("QUALITY"), children: t.map(({ value: i, select: s, selected: a, label: l, quality: c }) => /* @__PURE__ */ n(
|
|
1012
1012
|
pe,
|
|
1013
1013
|
{
|
|
@@ -1026,10 +1026,10 @@ function Mo(e, t) {
|
|
|
1026
1026
|
const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(t);
|
|
1027
1027
|
return o[i + 1] ?? null;
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function Oe(e) {
|
|
1030
1030
|
return e.querySelector("button");
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function Be(e) {
|
|
1033
1033
|
const t = Array.from(e.querySelectorAll("button"));
|
|
1034
1034
|
return t[t.length - 1] ?? null;
|
|
1035
1035
|
}
|
|
@@ -1047,11 +1047,11 @@ function Po(e) {
|
|
|
1047
1047
|
if (s)
|
|
1048
1048
|
s.focus();
|
|
1049
1049
|
else {
|
|
1050
|
-
const a =
|
|
1050
|
+
const a = Be(t.current);
|
|
1051
1051
|
a == null || a.focus();
|
|
1052
1052
|
}
|
|
1053
1053
|
} else if (t.current) {
|
|
1054
|
-
const s =
|
|
1054
|
+
const s = Be(t.current);
|
|
1055
1055
|
s == null || s.focus();
|
|
1056
1056
|
}
|
|
1057
1057
|
},
|
|
@@ -1065,11 +1065,11 @@ function Po(e) {
|
|
|
1065
1065
|
if (s)
|
|
1066
1066
|
s.focus();
|
|
1067
1067
|
else {
|
|
1068
|
-
const a =
|
|
1068
|
+
const a = Oe(t.current);
|
|
1069
1069
|
a == null || a.focus();
|
|
1070
1070
|
}
|
|
1071
1071
|
} else if (t.current) {
|
|
1072
|
-
const s =
|
|
1072
|
+
const s = Oe(t.current);
|
|
1073
1073
|
s == null || s.focus();
|
|
1074
1074
|
}
|
|
1075
1075
|
},
|
|
@@ -1081,7 +1081,7 @@ function Po(e) {
|
|
|
1081
1081
|
}),
|
|
1082
1082
|
[e]
|
|
1083
1083
|
);
|
|
1084
|
-
return
|
|
1084
|
+
return Se(o, !0), t;
|
|
1085
1085
|
}
|
|
1086
1086
|
const nt = we(null), No = {
|
|
1087
1087
|
main: mo,
|
|
@@ -1094,50 +1094,50 @@ const nt = we(null), No = {
|
|
|
1094
1094
|
}, Io = {
|
|
1095
1095
|
name: "middleware",
|
|
1096
1096
|
async fn(e) {
|
|
1097
|
-
const t = await
|
|
1097
|
+
const t = await At(e);
|
|
1098
1098
|
return {
|
|
1099
1099
|
x: e.x - t.right - 4,
|
|
1100
1100
|
y: e.y - 4
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
1103
1103
|
};
|
|
1104
|
-
function
|
|
1105
|
-
const e = v(), [t, o] = k(["main"]), [i, s] = k(!1), a =
|
|
1104
|
+
function So() {
|
|
1105
|
+
const e = v(), [t, o] = k(["main"]), [i, s] = k(!1), a = p(() => {
|
|
1106
1106
|
s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
|
|
1107
|
-
}, [i]), l =
|
|
1108
|
-
o((
|
|
1109
|
-
}, []), c =
|
|
1107
|
+
}, [i]), l = p((P) => {
|
|
1108
|
+
o((S) => S.concat(P));
|
|
1109
|
+
}, []), c = p(() => {
|
|
1110
1110
|
o((P) => P.length > 1 ? P.slice(0, -1) : P);
|
|
1111
|
-
}, []), u =
|
|
1111
|
+
}, []), u = p(() => {
|
|
1112
1112
|
o(["main"]);
|
|
1113
|
-
}, []), d = D(() => No[t[t.length - 1]], [t]), { refs: _, floatingStyles:
|
|
1113
|
+
}, []), d = D(() => No[t[t.length - 1]], [t]), { refs: _, floatingStyles: C, context: w } = me({
|
|
1114
1114
|
open: i,
|
|
1115
1115
|
onOpenChange: a,
|
|
1116
1116
|
placement: "top-end",
|
|
1117
1117
|
whileElementsMounted: he,
|
|
1118
1118
|
middleware: [Io]
|
|
1119
|
-
}),
|
|
1119
|
+
}), M = Me(w, { escapeKey: !1 }), { getReferenceProps: L, getFloatingProps: I } = Pe([M]), h = D(
|
|
1120
1120
|
() => ({ setPage: l, back: c, backToMain: u, toggle: a }),
|
|
1121
1121
|
[l, c, u, a]
|
|
1122
|
-
),
|
|
1122
|
+
), g = Po(h), E = $e([_.setFloating, g]);
|
|
1123
1123
|
return {
|
|
1124
1124
|
Page: d,
|
|
1125
1125
|
open: i,
|
|
1126
1126
|
floatingRef: E,
|
|
1127
1127
|
referenceRef: _.setReference,
|
|
1128
|
-
floatingStyles:
|
|
1128
|
+
floatingStyles: C,
|
|
1129
1129
|
context: w,
|
|
1130
1130
|
getReferenceProps() {
|
|
1131
1131
|
return {
|
|
1132
|
-
...
|
|
1132
|
+
...L(),
|
|
1133
1133
|
tabIndex: e.state.interactionsDisabled ? -1 : 0
|
|
1134
1134
|
};
|
|
1135
1135
|
},
|
|
1136
|
-
getFloatingProps:
|
|
1137
|
-
contextValue:
|
|
1136
|
+
getFloatingProps: I,
|
|
1137
|
+
contextValue: h
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Eo() {
|
|
1141
1141
|
const {
|
|
1142
1142
|
Page: e,
|
|
1143
1143
|
context: t,
|
|
@@ -1148,7 +1148,7 @@ function To() {
|
|
|
1148
1148
|
floatingRef: l,
|
|
1149
1149
|
referenceRef: c,
|
|
1150
1150
|
contextValue: u
|
|
1151
|
-
} =
|
|
1151
|
+
} = So(), { t: d } = f();
|
|
1152
1152
|
return /* @__PURE__ */ r(X, { children: [
|
|
1153
1153
|
/* @__PURE__ */ n(
|
|
1154
1154
|
"button",
|
|
@@ -1190,7 +1190,7 @@ function To() {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
function ot(e, t = 1e3) {
|
|
1192
1192
|
return function() {
|
|
1193
|
-
const i =
|
|
1193
|
+
const i = V(), [s, a] = k(null), l = p(() => a(null), []);
|
|
1194
1194
|
return Z(() => {
|
|
1195
1195
|
if (!i)
|
|
1196
1196
|
return () => {
|
|
@@ -1211,7 +1211,7 @@ function ot(e, t = 1e3) {
|
|
|
1211
1211
|
}, [t]), s;
|
|
1212
1212
|
};
|
|
1213
1213
|
}
|
|
1214
|
-
const
|
|
1214
|
+
const Te = (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 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), Ae = (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 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), 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", { 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" }) }), Ao = (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", { 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" }) }), it = (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", { 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" }) }), st = (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", { 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" }) }), at = (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", { 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" }) }), Vo = "_feedback-overlay_3kkqe_1", Ro = "_feedback-message_3kkqe_14", Ho = "_feedback-icon_3kkqe_30", Oo = "_feedback-icon-animation_3kkqe_1", N = {
|
|
1215
1215
|
"feedback-overlay": "_feedback-overlay_3kkqe_1",
|
|
1216
1216
|
feedbackOverlay: Vo,
|
|
1217
1217
|
"feedback-message": "_feedback-message_3kkqe_14",
|
|
@@ -1219,21 +1219,21 @@ const Ae = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0
|
|
|
1219
1219
|
"feedback-icon": "_feedback-icon_3kkqe_30",
|
|
1220
1220
|
feedbackIcon: Ho,
|
|
1221
1221
|
"feedback-icon-animation": "_feedback-icon-animation_3kkqe_1",
|
|
1222
|
-
feedbackIconAnimation:
|
|
1222
|
+
feedbackIconAnimation: Oo
|
|
1223
1223
|
};
|
|
1224
|
-
function
|
|
1225
|
-
const t =
|
|
1224
|
+
function Bo({ action: e }) {
|
|
1225
|
+
const t = V();
|
|
1226
1226
|
if (!t)
|
|
1227
1227
|
return null;
|
|
1228
1228
|
switch (e) {
|
|
1229
1229
|
case "togglePaused":
|
|
1230
|
-
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: t.paused ? /* @__PURE__ */ n(
|
|
1230
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: t.paused ? /* @__PURE__ */ n(Te, {}) : /* @__PURE__ */ n(Ae, {}) });
|
|
1231
1231
|
case "seekForward":
|
|
1232
1232
|
case "seekForward10":
|
|
1233
|
-
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(
|
|
1233
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(To, { className: "right" }) });
|
|
1234
1234
|
case "seekBackward":
|
|
1235
1235
|
case "seekBackward10":
|
|
1236
|
-
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(
|
|
1236
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(Ao, { className: "left" }) });
|
|
1237
1237
|
case "captionsChange":
|
|
1238
1238
|
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(Xe, {}) });
|
|
1239
1239
|
case "volumeChange":
|
|
@@ -1243,7 +1243,7 @@ function Oo({ action: e }) {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
function Fo({ action: e }) {
|
|
1246
|
-
const { t } =
|
|
1246
|
+
const { t } = f(), o = V();
|
|
1247
1247
|
if (!o)
|
|
1248
1248
|
return null;
|
|
1249
1249
|
switch (e) {
|
|
@@ -1267,7 +1267,7 @@ function Fo({ action: e }) {
|
|
|
1267
1267
|
return null;
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
|
-
const Do = ot(
|
|
1270
|
+
const Do = ot(Bo, 300), Zo = ot(Fo, 1e3);
|
|
1271
1271
|
function lt() {
|
|
1272
1272
|
return /* @__PURE__ */ r("div", { className: N.feedbackOverlay, children: [
|
|
1273
1273
|
/* @__PURE__ */ n(Do, {}),
|
|
@@ -1279,7 +1279,7 @@ const jo = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0
|
|
|
1279
1279
|
fullScreenButton: zo
|
|
1280
1280
|
};
|
|
1281
1281
|
function Uo() {
|
|
1282
|
-
const e =
|
|
1282
|
+
const e = b("fullscreen"), t = V(), o = v(), i = y(), { t: s } = f();
|
|
1283
1283
|
return i.hideFullScreen ? null : /* @__PURE__ */ n(
|
|
1284
1284
|
"button",
|
|
1285
1285
|
{
|
|
@@ -1311,13 +1311,13 @@ const Wo = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0
|
|
|
1311
1311
|
playPauseButton: Yo
|
|
1312
1312
|
};
|
|
1313
1313
|
function Jo(e, t) {
|
|
1314
|
-
return t ? Wo : e ?
|
|
1314
|
+
return t ? Wo : e ? Ae : Te;
|
|
1315
1315
|
}
|
|
1316
1316
|
function e1(e, t) {
|
|
1317
1317
|
return t ? "REPLAY" : e ? "PLAY" : "PAUSE";
|
|
1318
1318
|
}
|
|
1319
1319
|
function t1() {
|
|
1320
|
-
const e =
|
|
1320
|
+
const e = V(), t = v(), o = b("paused"), i = b("ended"), { t: s } = f(), a = Jo(o, i);
|
|
1321
1321
|
return e ? /* @__PURE__ */ n(
|
|
1322
1322
|
"button",
|
|
1323
1323
|
{
|
|
@@ -1337,7 +1337,7 @@ const n1 = "_poster_195hi_1", o1 = {
|
|
|
1337
1337
|
poster: n1
|
|
1338
1338
|
};
|
|
1339
1339
|
function i1({ src: e, title: t }) {
|
|
1340
|
-
const o =
|
|
1340
|
+
const o = b("source"), { t: i } = f();
|
|
1341
1341
|
return o.type === "video/youtube" || o.type === "video/vimeo" ? null : /* @__PURE__ */ n(
|
|
1342
1342
|
yt,
|
|
1343
1343
|
{
|
|
@@ -1364,10 +1364,10 @@ const s1 = "_small-layout-overlay_4hkng_1", a1 = "_small-layout-button_4hkng_14"
|
|
|
1364
1364
|
fadeOut: d1
|
|
1365
1365
|
};
|
|
1366
1366
|
function m1() {
|
|
1367
|
-
const e =
|
|
1367
|
+
const e = b("paused");
|
|
1368
1368
|
return /* @__PURE__ */ r("div", { className: Q.smallLayoutOverlay, children: [
|
|
1369
1369
|
/* @__PURE__ */ n(kt, { className: Q.fullScreenCloseIcon, children: /* @__PURE__ */ n(Qe, {}) }),
|
|
1370
|
-
/* @__PURE__ */ n("i", { className: Q.smallLayoutButton, children: e ? /* @__PURE__ */ n(
|
|
1370
|
+
/* @__PURE__ */ n("i", { className: Q.smallLayoutButton, children: e ? /* @__PURE__ */ n(Ae, { className: Q.smallLayoutIconPlay }) : /* @__PURE__ */ n(Te, { className: Q.smallLayoutIconPause }) }),
|
|
1371
1371
|
/* @__PURE__ */ r("div", { className: Q.smallLayoutTimestamp, children: [
|
|
1372
1372
|
/* @__PURE__ */ n(ce, { type: "current" }),
|
|
1373
1373
|
"/",
|
|
@@ -1386,7 +1386,7 @@ function f1() {
|
|
|
1386
1386
|
/* @__PURE__ */ n(ce, { type: "duration" })
|
|
1387
1387
|
] });
|
|
1388
1388
|
}
|
|
1389
|
-
const _1 = "_comment-markers_u7l2l_1", C1 = "_comment-marker_u7l2l_1", g1 = "_timeline-wrapper_u7l2l_23", b1 = "_timeline-wrapper-compact_u7l2l_24", v1 = "_track_u7l2l_33", w1 = "_thumb_u7l2l_44", y1 = "_root_u7l2l_58", k1 = "_track-inner_u7l2l_88", L1 = "_progress_u7l2l_94", x1 = "_track-fill_u7l2l_100", M1 = "_pins_u7l2l_117", P1 = "_pin-button_u7l2l_126", N1 = "_annotation-pin_u7l2l_146", I1 = "_quiz-pin_u7l2l_155",
|
|
1389
|
+
const _1 = "_comment-markers_u7l2l_1", C1 = "_comment-marker_u7l2l_1", g1 = "_timeline-wrapper_u7l2l_23", b1 = "_timeline-wrapper-compact_u7l2l_24", v1 = "_track_u7l2l_33", w1 = "_thumb_u7l2l_44", y1 = "_root_u7l2l_58", k1 = "_track-inner_u7l2l_88", L1 = "_progress_u7l2l_94", x1 = "_track-fill_u7l2l_100", M1 = "_pins_u7l2l_117", P1 = "_pin-button_u7l2l_126", N1 = "_annotation-pin_u7l2l_146", I1 = "_quiz-pin_u7l2l_155", S1 = "_annotation-pin-child_u7l2l_164", E1 = "_quiz-pin-child_u7l2l_168", T1 = "_interactive-pin-container_u7l2l_173", A1 = "_interactive-pin-wrapper_u7l2l_180", V1 = "_interactive-pin-icon_u7l2l_186", R1 = "_interactive-pin_u7l2l_173", H1 = "_bg_u7l2l_200", O1 = "_symbol_u7l2l_204", B1 = "_interactive-pin-button_u7l2l_209", F1 = "_interactive-pin-menu_u7l2l_230", D1 = "_interactive-pin-menu-item_u7l2l_248", Z1 = "_arrow_u7l2l_269", j1 = "_tooltip_u7l2l_273", K1 = "_tooltip-arrow_u7l2l_282", m = {
|
|
1390
1390
|
"comment-markers": "_comment-markers_u7l2l_1",
|
|
1391
1391
|
commentMarkers: _1,
|
|
1392
1392
|
"comment-marker": "_comment-marker_u7l2l_1",
|
|
@@ -1411,21 +1411,21 @@ const _1 = "_comment-markers_u7l2l_1", C1 = "_comment-marker_u7l2l_1", g1 = "_ti
|
|
|
1411
1411
|
"quiz-pin": "_quiz-pin_u7l2l_155",
|
|
1412
1412
|
quizPin: I1,
|
|
1413
1413
|
"annotation-pin-child": "_annotation-pin-child_u7l2l_164",
|
|
1414
|
-
annotationPinChild:
|
|
1414
|
+
annotationPinChild: S1,
|
|
1415
1415
|
"quiz-pin-child": "_quiz-pin-child_u7l2l_168",
|
|
1416
|
-
quizPinChild:
|
|
1416
|
+
quizPinChild: E1,
|
|
1417
1417
|
"interactive-pin-container": "_interactive-pin-container_u7l2l_173",
|
|
1418
|
-
interactivePinContainer:
|
|
1418
|
+
interactivePinContainer: T1,
|
|
1419
1419
|
"interactive-pin-wrapper": "_interactive-pin-wrapper_u7l2l_180",
|
|
1420
|
-
interactivePinWrapper:
|
|
1420
|
+
interactivePinWrapper: A1,
|
|
1421
1421
|
"interactive-pin-icon": "_interactive-pin-icon_u7l2l_186",
|
|
1422
1422
|
interactivePinIcon: V1,
|
|
1423
1423
|
"interactive-pin": "_interactive-pin_u7l2l_173",
|
|
1424
1424
|
interactivePin: R1,
|
|
1425
1425
|
bg: H1,
|
|
1426
|
-
symbol:
|
|
1426
|
+
symbol: O1,
|
|
1427
1427
|
"interactive-pin-button": "_interactive-pin-button_u7l2l_209",
|
|
1428
|
-
interactivePinButton:
|
|
1428
|
+
interactivePinButton: B1,
|
|
1429
1429
|
"interactive-pin-menu": "_interactive-pin-menu_u7l2l_230",
|
|
1430
1430
|
interactivePinMenu: F1,
|
|
1431
1431
|
"interactive-pin-menu-item": "_interactive-pin-menu-item_u7l2l_248",
|
|
@@ -1436,7 +1436,7 @@ const _1 = "_comment-markers_u7l2l_1", C1 = "_comment-marker_u7l2l_1", g1 = "_ti
|
|
|
1436
1436
|
tooltipArrow: K1
|
|
1437
1437
|
};
|
|
1438
1438
|
function De() {
|
|
1439
|
-
const e =
|
|
1439
|
+
const e = b("duration"), t = y(), o = v();
|
|
1440
1440
|
return e > 0 && t.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ n("div", { className: m.commentMarkers, children: t.comments.map((i) => /* @__PURE__ */ n(
|
|
1441
1441
|
"span",
|
|
1442
1442
|
{
|
|
@@ -1449,13 +1449,13 @@ function De() {
|
|
|
1449
1449
|
)) }) : null;
|
|
1450
1450
|
}
|
|
1451
1451
|
const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
1452
|
-
const [s, a] = k(!1), [l, c] = k(null), u =
|
|
1452
|
+
const [s, a] = k(!1), [l, c] = k(null), u = y(), d = v(), _ = p(() => {
|
|
1453
1453
|
u.interactiveMenuElements.length > 0 ? (a((j) => !j), d.setGlobalKeysDisabled(!0)) : u.onInteractivePinClick(t);
|
|
1454
1454
|
}, [
|
|
1455
1455
|
u.interactiveMenuElements,
|
|
1456
1456
|
u.onInteractivePinClick,
|
|
1457
1457
|
t
|
|
1458
|
-
]),
|
|
1458
|
+
]), C = z(null), { refs: w, floatingStyles: M, context: L } = me({
|
|
1459
1459
|
open: s,
|
|
1460
1460
|
onOpenChange: _,
|
|
1461
1461
|
whileElementsMounted: he,
|
|
@@ -1464,28 +1464,28 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
|
1464
1464
|
ke(),
|
|
1465
1465
|
Le(6),
|
|
1466
1466
|
xe({
|
|
1467
|
-
element:
|
|
1467
|
+
element: C
|
|
1468
1468
|
})
|
|
1469
1469
|
]
|
|
1470
|
-
}),
|
|
1471
|
-
listRef:
|
|
1470
|
+
}), I = z([]), h = Me(L), g = ze(L, {
|
|
1471
|
+
listRef: I,
|
|
1472
1472
|
activeIndex: l,
|
|
1473
1473
|
onNavigate: c,
|
|
1474
1474
|
loop: !0,
|
|
1475
1475
|
openOnArrowKeyDown: !1
|
|
1476
|
-
}), { getReferenceProps: E, getFloatingProps: P, getItemProps:
|
|
1477
|
-
[
|
|
1478
|
-
),
|
|
1476
|
+
}), { getReferenceProps: E, getFloatingProps: P, getItemProps: S } = Pe(
|
|
1477
|
+
[h, g]
|
|
1478
|
+
), O = $e([w.setReference, i]), { t: R } = f(), B = be(t);
|
|
1479
1479
|
return /* @__PURE__ */ r(X, { children: [
|
|
1480
1480
|
/* @__PURE__ */ n(
|
|
1481
1481
|
"button",
|
|
1482
1482
|
{
|
|
1483
1483
|
id: "interactive-pin",
|
|
1484
1484
|
type: "button",
|
|
1485
|
-
"aria-label": u.interactiveMenuElements.length > 0 ?
|
|
1485
|
+
"aria-label": u.interactiveMenuElements.length > 0 ? R("ADD_QUIZ_AT", { time: B }) : R("ADD_ANNOTATION_AT", { time: B }),
|
|
1486
1486
|
"aria-haspopup": u.interactiveMenuElements.length > 0 ? "true" : void 0,
|
|
1487
1487
|
className: m.interactivePinButton,
|
|
1488
|
-
ref:
|
|
1488
|
+
ref: O,
|
|
1489
1489
|
style: { left: `${o}%` },
|
|
1490
1490
|
...E({
|
|
1491
1491
|
onClick: _
|
|
@@ -1530,11 +1530,11 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
|
1530
1530
|
)
|
|
1531
1531
|
}
|
|
1532
1532
|
),
|
|
1533
|
-
s && /* @__PURE__ */ n(Ne, { context:
|
|
1533
|
+
s && /* @__PURE__ */ n(Ne, { context: L, initialFocus: -1, modal: !0, children: /* @__PURE__ */ r(
|
|
1534
1534
|
"div",
|
|
1535
1535
|
{
|
|
1536
1536
|
ref: w.setFloating,
|
|
1537
|
-
style:
|
|
1537
|
+
style: M,
|
|
1538
1538
|
className: m.interactivePinMenu,
|
|
1539
1539
|
"aria-labelledby": "interactive-pin",
|
|
1540
1540
|
...P(),
|
|
@@ -1546,10 +1546,10 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
|
1546
1546
|
type: "button",
|
|
1547
1547
|
className: m.interactivePinMenuItem,
|
|
1548
1548
|
ref: (ne) => {
|
|
1549
|
-
|
|
1549
|
+
I.current[ee] = ne;
|
|
1550
1550
|
},
|
|
1551
1551
|
tabIndex: l === ee ? 0 : -1,
|
|
1552
|
-
...
|
|
1552
|
+
...S({
|
|
1553
1553
|
onClick: () => {
|
|
1554
1554
|
_e(j, t), a(!1), d.setGlobalKeysDisabled(!1);
|
|
1555
1555
|
}
|
|
@@ -1583,8 +1583,8 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
|
1583
1583
|
/* @__PURE__ */ n(
|
|
1584
1584
|
Ie,
|
|
1585
1585
|
{
|
|
1586
|
-
ref:
|
|
1587
|
-
context:
|
|
1586
|
+
ref: C,
|
|
1587
|
+
context: L,
|
|
1588
1588
|
className: m.arrow
|
|
1589
1589
|
}
|
|
1590
1590
|
)
|
|
@@ -1604,7 +1604,7 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
|
1604
1604
|
t.current = !1;
|
|
1605
1605
|
}
|
|
1606
1606
|
}), []);
|
|
1607
|
-
return
|
|
1607
|
+
return Se(o), { focusCallback: p((s) => {
|
|
1608
1608
|
s && (s.addEventListener("focus", () => {
|
|
1609
1609
|
e.current = !0;
|
|
1610
1610
|
}), s.addEventListener("blur", () => {
|
|
@@ -1614,7 +1614,7 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
|
1614
1614
|
};
|
|
1615
1615
|
function U1() {
|
|
1616
1616
|
var c;
|
|
1617
|
-
const e =
|
|
1617
|
+
const e = b("duration"), t = b("currentTime"), o = t / e * 100, { disableInteractivePinRanges: i } = y(), s = !i.some(
|
|
1618
1618
|
([u, d]) => t >= u && t <= d
|
|
1619
1619
|
), { wasPinFocused: a, focusCallback: l } = $1();
|
|
1620
1620
|
return s ? /* @__PURE__ */ n("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ n("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ n(
|
|
@@ -1627,7 +1627,7 @@ function U1() {
|
|
|
1627
1627
|
) }) }) : (a && ((c = document.querySelector("[data-media-time-slider]")) == null || c.focus()), null);
|
|
1628
1628
|
}
|
|
1629
1629
|
function q1() {
|
|
1630
|
-
const e =
|
|
1630
|
+
const e = b("paused"), t = v();
|
|
1631
1631
|
return e && !t.state.interactionsDisabled ? /* @__PURE__ */ n(U1, {}) : null;
|
|
1632
1632
|
}
|
|
1633
1633
|
const G1 = {
|
|
@@ -1645,7 +1645,7 @@ function rt({
|
|
|
1645
1645
|
time: a,
|
|
1646
1646
|
completed: l
|
|
1647
1647
|
}) {
|
|
1648
|
-
const c = v(), { t: u } =
|
|
1648
|
+
const c = v(), { t: u } = f();
|
|
1649
1649
|
return /* @__PURE__ */ n(
|
|
1650
1650
|
"button",
|
|
1651
1651
|
{
|
|
@@ -1776,7 +1776,7 @@ function ei(e, t, o, i) {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
1778
|
function ti() {
|
|
1779
|
-
const e = de(), t =
|
|
1779
|
+
const e = de(), t = b("duration"), o = y(), i = D(() => [
|
|
1780
1780
|
...X1(
|
|
1781
1781
|
o.annotations,
|
|
1782
1782
|
o.onAnnotationClick
|
|
@@ -1794,10 +1794,10 @@ function Ze({
|
|
|
1794
1794
|
interactionsDisabled: t,
|
|
1795
1795
|
children: o
|
|
1796
1796
|
}) {
|
|
1797
|
-
const [i, s] = k(!1), a =
|
|
1797
|
+
const [i, s] = k(!1), a = p(() => s(!0), []), l = p(() => s(!1), []), c = z(null), { refs: u, floatingStyles: d, context: _ } = me({
|
|
1798
1798
|
open: i,
|
|
1799
1799
|
onOpenChange: s,
|
|
1800
|
-
whileElementsMounted: (
|
|
1800
|
+
whileElementsMounted: (C, w, M) => he(C, w, M, {
|
|
1801
1801
|
animationFrame: !0
|
|
1802
1802
|
}),
|
|
1803
1803
|
placement: "top",
|
|
@@ -1870,7 +1870,7 @@ const oi = "_wrapper_1ijfr_1", ii = "_track_1ijfr_6", si = "_thumb_1ijfr_16", ai
|
|
|
1870
1870
|
root: li
|
|
1871
1871
|
};
|
|
1872
1872
|
function ri() {
|
|
1873
|
-
const e =
|
|
1873
|
+
const e = V(), t = b("volume"), o = b("muted"), i = v(), s = o || t === 0, { t: a } = f();
|
|
1874
1874
|
return /* @__PURE__ */ r("div", { className: te.wrapper, children: [
|
|
1875
1875
|
/* @__PURE__ */ n(
|
|
1876
1876
|
"button",
|
|
@@ -1899,7 +1899,7 @@ function ri() {
|
|
|
1899
1899
|
)
|
|
1900
1900
|
] });
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function x(e, t) {
|
|
1903
1903
|
e.dispatchEvent(
|
|
1904
1904
|
new CustomEvent("keyboardAction", {
|
|
1905
1905
|
detail: t
|
|
@@ -1911,44 +1911,44 @@ const je = {
|
|
|
1911
1911
|
keys: ["Space", "Enter", "k"],
|
|
1912
1912
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1913
1913
|
var i;
|
|
1914
|
-
(i = document.activeElement) != null && i.hasAttribute("data-media-player") && (t.togglePaused(o),
|
|
1914
|
+
(i = document.activeElement) != null && i.hasAttribute("data-media-player") && (t.togglePaused(o), x(e, "togglePaused"));
|
|
1915
1915
|
}
|
|
1916
1916
|
},
|
|
1917
1917
|
seekForward: {
|
|
1918
1918
|
keys: ["ArrowRight"],
|
|
1919
1919
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1920
|
-
t.seek(e.currentTime + 5, o),
|
|
1920
|
+
t.seek(e.currentTime + 5, o), x(e, "seekForward");
|
|
1921
1921
|
}
|
|
1922
1922
|
},
|
|
1923
1923
|
seekBackward: {
|
|
1924
1924
|
keys: ["ArrowLeft"],
|
|
1925
1925
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1926
|
-
t.seek(e.currentTime - 5, o),
|
|
1926
|
+
t.seek(e.currentTime - 5, o), x(e, "seekBackward");
|
|
1927
1927
|
}
|
|
1928
1928
|
},
|
|
1929
1929
|
volumeUp: {
|
|
1930
1930
|
keys: ["ArrowUp"],
|
|
1931
1931
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1932
|
-
t.changeVolume(e.volume + 0.05, o),
|
|
1932
|
+
t.changeVolume(e.volume + 0.05, o), x(e, "volumeChange");
|
|
1933
1933
|
}
|
|
1934
1934
|
},
|
|
1935
1935
|
volumeDown: {
|
|
1936
1936
|
keys: ["ArrowDown"],
|
|
1937
1937
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1938
|
-
t.changeVolume(e.volume - 0.05, o),
|
|
1938
|
+
t.changeVolume(e.volume - 0.05, o), x(e, "volumeChange");
|
|
1939
1939
|
}
|
|
1940
1940
|
},
|
|
1941
1941
|
toggleFullscreen: ["f"],
|
|
1942
1942
|
toggleMuted: {
|
|
1943
1943
|
keys: ["m"],
|
|
1944
1944
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1945
|
-
t.toggleMuted(o),
|
|
1945
|
+
t.toggleMuted(o), x(e, "volumeChange");
|
|
1946
1946
|
}
|
|
1947
1947
|
},
|
|
1948
1948
|
toggleCaptions: {
|
|
1949
1949
|
keys: ["c"],
|
|
1950
1950
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1951
|
-
t.toggleCaptions(o),
|
|
1951
|
+
t.toggleCaptions(o), x(e, "captionsChange");
|
|
1952
1952
|
}
|
|
1953
1953
|
},
|
|
1954
1954
|
nextCaptionLanguage: {
|
|
@@ -1959,7 +1959,7 @@ const je = {
|
|
|
1959
1959
|
s >= t.textTracks.length ? 0 : s,
|
|
1960
1960
|
"showing",
|
|
1961
1961
|
e
|
|
1962
|
-
),
|
|
1962
|
+
), x(t, "captionsChange");
|
|
1963
1963
|
}
|
|
1964
1964
|
},
|
|
1965
1965
|
previousCaptionLanguage: {
|
|
@@ -1970,39 +1970,39 @@ const je = {
|
|
|
1970
1970
|
s < 0 ? t.textTracks.length - 1 : s,
|
|
1971
1971
|
"showing",
|
|
1972
1972
|
e
|
|
1973
|
-
),
|
|
1973
|
+
), x(t, "captionsChange");
|
|
1974
1974
|
}
|
|
1975
1975
|
},
|
|
1976
1976
|
decreasePlaybackRate: {
|
|
1977
1977
|
keys: ["a"],
|
|
1978
1978
|
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1979
1979
|
const s = Y.indexOf(t.playbackRate) - 1;
|
|
1980
|
-
s >= 0 && (o.changePlaybackRate(Y[s], e),
|
|
1980
|
+
s >= 0 && (o.changePlaybackRate(Y[s], e), x(t, "playbackRateChange"));
|
|
1981
1981
|
}
|
|
1982
1982
|
},
|
|
1983
1983
|
increasePlaybackRate: {
|
|
1984
1984
|
keys: ["d"],
|
|
1985
1985
|
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1986
1986
|
const s = Y.indexOf(t.playbackRate) + 1;
|
|
1987
|
-
s < Y.length && (o.changePlaybackRate(Y[s], e),
|
|
1987
|
+
s < Y.length && (o.changePlaybackRate(Y[s], e), x(t, "playbackRateChange"));
|
|
1988
1988
|
}
|
|
1989
1989
|
},
|
|
1990
1990
|
resetPlaybackRate: {
|
|
1991
1991
|
keys: ["s"],
|
|
1992
1992
|
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1993
|
-
o.changePlaybackRate(1, e),
|
|
1993
|
+
o.changePlaybackRate(1, e), x(t, "playbackRateChange");
|
|
1994
1994
|
}
|
|
1995
1995
|
},
|
|
1996
1996
|
seekForward10Seconds: {
|
|
1997
1997
|
keys: ["l"],
|
|
1998
1998
|
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1999
|
-
o.seek(t.currentTime + 10, e),
|
|
1999
|
+
o.seek(t.currentTime + 10, e), x(t, "seekForward10");
|
|
2000
2000
|
}
|
|
2001
2001
|
},
|
|
2002
2002
|
seekBackward10Seconds: {
|
|
2003
2003
|
keys: ["j"],
|
|
2004
2004
|
onKeyDown({ event: e, player: t, remote: o }) {
|
|
2005
|
-
o.seek(t.currentTime - 10, e),
|
|
2005
|
+
o.seek(t.currentTime - 10, e), x(t, "seekBackward10");
|
|
2006
2006
|
}
|
|
2007
2007
|
}
|
|
2008
2008
|
};
|
|
@@ -2036,19 +2036,19 @@ const Ke = {
|
|
|
2036
2036
|
};
|
|
2037
2037
|
class mi {
|
|
2038
2038
|
constructor() {
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2039
|
+
H(this, "playerId", "studio-player");
|
|
2040
|
+
H(this, "mediaId", null);
|
|
2041
|
+
H(this, "data", Ke);
|
|
2042
|
+
H(this, "time", null);
|
|
2043
|
+
H(this, "overrideTime", null);
|
|
2044
|
+
H(this, "saveTime", () => {
|
|
2045
2045
|
if (!this.mediaId) return;
|
|
2046
2046
|
const t = (this.time ?? 0).toString();
|
|
2047
2047
|
localStorage.setItem(this.mediaId, t);
|
|
2048
2048
|
});
|
|
2049
|
-
|
|
2049
|
+
H(this, "saveTimeThrottled", di(this.saveTime, 1e3));
|
|
2050
2050
|
// only used for useStudioPlayer hook's state initialization
|
|
2051
|
-
|
|
2051
|
+
H(this, "initializeState", (t) => {
|
|
2052
2052
|
const o = localStorage.getItem(this.playerId);
|
|
2053
2053
|
if (ve(t) && t >= 0 && (this.overrideTime = t), o)
|
|
2054
2054
|
try {
|
|
@@ -2062,10 +2062,11 @@ class mi {
|
|
|
2062
2062
|
commentsEnabled: this.data.comments,
|
|
2063
2063
|
interactionsDisabled: !1,
|
|
2064
2064
|
globalKeysDisabled: !1,
|
|
2065
|
-
disableCaptionSettings: !1
|
|
2065
|
+
disableCaptionSettings: !1,
|
|
2066
|
+
isKeyboardShortcutsOpen: !1
|
|
2066
2067
|
};
|
|
2067
2068
|
});
|
|
2068
|
-
|
|
2069
|
+
H(this, "saveData", (t, o) => {
|
|
2069
2070
|
this.data = {
|
|
2070
2071
|
...this.data,
|
|
2071
2072
|
[t]: o
|
|
@@ -2138,54 +2139,59 @@ class mi {
|
|
|
2138
2139
|
function hi(e, t, o, i) {
|
|
2139
2140
|
const s = D(() => new mi(), []), [a, l] = k(
|
|
2140
2141
|
s.initializeState(i)
|
|
2141
|
-
), c =
|
|
2142
|
-
(
|
|
2143
|
-
l((
|
|
2144
|
-
...
|
|
2145
|
-
captionsFontSizeMultiplier:
|
|
2142
|
+
), c = p(
|
|
2143
|
+
(h) => {
|
|
2144
|
+
l((g) => (s.saveData("multiplier", h), {
|
|
2145
|
+
...g,
|
|
2146
|
+
captionsFontSizeMultiplier: h
|
|
2146
2147
|
}));
|
|
2147
2148
|
},
|
|
2148
2149
|
[s]
|
|
2149
|
-
), u =
|
|
2150
|
-
l((
|
|
2151
|
-
const
|
|
2152
|
-
return s.saveData("ontop",
|
|
2153
|
-
...
|
|
2154
|
-
captionPositionOnTop:
|
|
2150
|
+
), u = p(() => {
|
|
2151
|
+
l((h) => {
|
|
2152
|
+
const g = !h.captionPositionOnTop;
|
|
2153
|
+
return s.saveData("ontop", g), {
|
|
2154
|
+
...h,
|
|
2155
|
+
captionPositionOnTop: g
|
|
2155
2156
|
};
|
|
2156
2157
|
});
|
|
2157
|
-
}, [s]), d =
|
|
2158
|
-
l((
|
|
2159
|
-
const
|
|
2160
|
-
return s.saveData("invert",
|
|
2161
|
-
...
|
|
2162
|
-
captionsInvertColors:
|
|
2158
|
+
}, [s]), d = p(() => {
|
|
2159
|
+
l((h) => {
|
|
2160
|
+
const g = !h.captionsInvertColors;
|
|
2161
|
+
return s.saveData("invert", g), {
|
|
2162
|
+
...h,
|
|
2163
|
+
captionsInvertColors: g
|
|
2163
2164
|
};
|
|
2164
2165
|
});
|
|
2165
|
-
}, [s]), _ =
|
|
2166
|
-
l((
|
|
2167
|
-
const
|
|
2168
|
-
return s.saveData("comments",
|
|
2169
|
-
...
|
|
2170
|
-
commentsEnabled:
|
|
2166
|
+
}, [s]), _ = p(() => {
|
|
2167
|
+
l((h) => {
|
|
2168
|
+
const g = !h.commentsEnabled;
|
|
2169
|
+
return s.saveData("comments", g), {
|
|
2170
|
+
...h,
|
|
2171
|
+
commentsEnabled: g
|
|
2171
2172
|
};
|
|
2172
2173
|
});
|
|
2173
|
-
}, [s]),
|
|
2174
|
-
l((
|
|
2175
|
-
...
|
|
2174
|
+
}, [s]), C = p(() => {
|
|
2175
|
+
l((h) => ({
|
|
2176
|
+
...h,
|
|
2176
2177
|
interactionsDisabled: !1
|
|
2177
2178
|
}));
|
|
2178
|
-
}, []), w =
|
|
2179
|
-
l((
|
|
2180
|
-
...
|
|
2179
|
+
}, []), w = p(() => {
|
|
2180
|
+
l((h) => ({
|
|
2181
|
+
...h,
|
|
2181
2182
|
interactionsDisabled: !0
|
|
2182
2183
|
}));
|
|
2183
|
-
}, []),
|
|
2184
|
-
l((
|
|
2185
|
-
...
|
|
2186
|
-
globalKeysDisabled:
|
|
2184
|
+
}, []), M = p((h) => {
|
|
2185
|
+
l((g) => ({
|
|
2186
|
+
...g,
|
|
2187
|
+
globalKeysDisabled: h
|
|
2188
|
+
}));
|
|
2189
|
+
}, []), L = p((h) => {
|
|
2190
|
+
l((g) => ({
|
|
2191
|
+
...g,
|
|
2192
|
+
isKeyboardShortcutsOpen: h
|
|
2187
2193
|
}));
|
|
2188
|
-
}, []),
|
|
2194
|
+
}, []), I = D(() => e ? {
|
|
2189
2195
|
...je,
|
|
2190
2196
|
toggleFullscreen: []
|
|
2191
2197
|
} : je, [e]);
|
|
@@ -2198,13 +2204,14 @@ function hi(e, t, o, i) {
|
|
|
2198
2204
|
setCaptionsFontSizeMultiplier: c,
|
|
2199
2205
|
toggleCaptionPositionOnTop: u,
|
|
2200
2206
|
toggleCaptionsInvertColors: d,
|
|
2201
|
-
enableInteractions:
|
|
2207
|
+
enableInteractions: C,
|
|
2202
2208
|
disableInteractions: w,
|
|
2203
|
-
setGlobalKeysDisabled:
|
|
2209
|
+
setGlobalKeysDisabled: M,
|
|
2204
2210
|
toggleComments: _,
|
|
2205
|
-
disableCaptionSettings: o
|
|
2211
|
+
disableCaptionSettings: o,
|
|
2212
|
+
setKeyboardShortcutsOpen: L
|
|
2206
2213
|
},
|
|
2207
|
-
shortcuts:
|
|
2214
|
+
shortcuts: I,
|
|
2208
2215
|
storage: s
|
|
2209
2216
|
};
|
|
2210
2217
|
}
|
|
@@ -2217,7 +2224,7 @@ const pi = (e) => /* @__PURE__ */ n("svg", { width: 56, height: 72, viewBox: "0
|
|
|
2217
2224
|
/* @__PURE__ */ n("path", { d: "M14.7142857,14.2824 L14.7142857,13 L13.2857143,13.2548 L13.2857143,23.0912 C12.8642857,22.9106 12.3785714,22.8 11.8571429,22.8 C10.2771429,22.8 9,23.7408 9,24.9 C9,26.0592 10.2771429,27 11.8571429,27 C12.3785714,27 12.8642857,26.8894 13.2857143,26.7088 C14.1371429,26.3448 14.7142857,25.6756 14.7142857,24.9 L14.7142857,17.0824 C17.5714286,17.0824 19,20 19,21.4 C19,15.8 16.1428571,14.2824 14.7142857,14.2824", id: "Fill-776", fill: "#384A58" })
|
|
2218
2225
|
] }) }) });
|
|
2219
2226
|
function fi() {
|
|
2220
|
-
const e =
|
|
2227
|
+
const e = y();
|
|
2221
2228
|
return /* @__PURE__ */ r("div", { className: "audio-layout-wrapper", children: [
|
|
2222
2229
|
/* @__PURE__ */ n(pi, {}),
|
|
2223
2230
|
/* @__PURE__ */ n(lt, {}),
|
|
@@ -2226,7 +2233,7 @@ function fi() {
|
|
|
2226
2233
|
] });
|
|
2227
2234
|
}
|
|
2228
2235
|
function _i() {
|
|
2229
|
-
const e =
|
|
2236
|
+
const e = y(), t = e.kebabMenuElements.length > 0;
|
|
2230
2237
|
return /* @__PURE__ */ r(X, { children: [
|
|
2231
2238
|
/* @__PURE__ */ n(
|
|
2232
2239
|
i1,
|
|
@@ -2241,7 +2248,7 @@ function _i() {
|
|
|
2241
2248
|
/* @__PURE__ */ n(m1, {}),
|
|
2242
2249
|
/* @__PURE__ */ n(Qo, {}),
|
|
2243
2250
|
/* @__PURE__ */ n(
|
|
2244
|
-
|
|
2251
|
+
An,
|
|
2245
2252
|
{
|
|
2246
2253
|
comments: e.comments,
|
|
2247
2254
|
isKebabMenuVisible: t
|
|
@@ -2260,7 +2267,7 @@ const Ci = "_root_5cfhx_1", gi = "_normal_5cfhx_14", bi = "_compact_5cfhx_21", v
|
|
|
2260
2267
|
indicators: yi
|
|
2261
2268
|
};
|
|
2262
2269
|
function ki() {
|
|
2263
|
-
const e =
|
|
2270
|
+
const e = V(), t = y();
|
|
2264
2271
|
Z(() => {
|
|
2265
2272
|
const o = () => {
|
|
2266
2273
|
const i = t.startAt;
|
|
@@ -2277,7 +2284,7 @@ function Li({
|
|
|
2277
2284
|
controlsLayout: o,
|
|
2278
2285
|
showCaptionsButton: i
|
|
2279
2286
|
}) {
|
|
2280
|
-
const s =
|
|
2287
|
+
const s = V(), a = v(), { hasAnnotations: l, hasQuizmarkers: c, interactive: u } = y();
|
|
2281
2288
|
return ki(), Z(() => {
|
|
2282
2289
|
s && (s.remoteControl.pauseControls(), t && (typeof t == "function" ? t(s) : t.current = s));
|
|
2283
2290
|
}, [s, t]), /* @__PURE__ */ r(
|
|
@@ -2316,7 +2323,7 @@ function Li({
|
|
|
2316
2323
|
) : null,
|
|
2317
2324
|
/* @__PURE__ */ r("div", { className: W.rightControls, children: [
|
|
2318
2325
|
i && /* @__PURE__ */ n(fn, {}),
|
|
2319
|
-
/* @__PURE__ */ n(
|
|
2326
|
+
/* @__PURE__ */ n(Eo, {}),
|
|
2320
2327
|
/* @__PURE__ */ n(Uo, {})
|
|
2321
2328
|
] })
|
|
2322
2329
|
]
|
|
@@ -2333,7 +2340,7 @@ function Mi(e, t, o, i, s) {
|
|
|
2333
2340
|
};
|
|
2334
2341
|
}
|
|
2335
2342
|
function Pi() {
|
|
2336
|
-
const e =
|
|
2343
|
+
const e = V(), { quizMarkers: t, onQuizMarkerShow: o } = y(), [i, s] = k(
|
|
2337
2344
|
t.reduce((a, l) => (a[l.id] = !1, a), {})
|
|
2338
2345
|
);
|
|
2339
2346
|
Z(() => {
|
|
@@ -2342,7 +2349,7 @@ function Pi() {
|
|
|
2342
2349
|
t.length > Object.keys(i).length && s(xi(t, i));
|
|
2343
2350
|
const a = [], l = (c) => {
|
|
2344
2351
|
var _;
|
|
2345
|
-
const u = (_ = c == null ? void 0 : c.request) == null ? void 0 : _.detail, d = t.reduce((
|
|
2352
|
+
const u = (_ = c == null ? void 0 : c.request) == null ? void 0 : _.detail, d = t.reduce((C, w) => (C[w.id] = w.time <= u, C), {});
|
|
2346
2353
|
s({ ...i, ...d });
|
|
2347
2354
|
};
|
|
2348
2355
|
e.addEventListener("seeked", l);
|
|
@@ -2368,7 +2375,7 @@ function Ni() {
|
|
|
2368
2375
|
}
|
|
2369
2376
|
const Ii = {}, re = () => {
|
|
2370
2377
|
};
|
|
2371
|
-
function
|
|
2378
|
+
function Bi({
|
|
2372
2379
|
title: e,
|
|
2373
2380
|
playerRef: t,
|
|
2374
2381
|
src: o,
|
|
@@ -2380,19 +2387,19 @@ function Oi({
|
|
|
2380
2387
|
annotations: u = [],
|
|
2381
2388
|
quizMarkers: d = [],
|
|
2382
2389
|
interactive: _ = !1,
|
|
2383
|
-
onAnnotationClick:
|
|
2390
|
+
onAnnotationClick: C = re,
|
|
2384
2391
|
onQuizMarkerClick: w = re,
|
|
2385
|
-
onQuizMarkerShow:
|
|
2386
|
-
onInteractivePinClick:
|
|
2387
|
-
onCaptionsDelete:
|
|
2388
|
-
interactiveMenuElements:
|
|
2389
|
-
kebabMenuElements:
|
|
2392
|
+
onQuizMarkerShow: M = re,
|
|
2393
|
+
onInteractivePinClick: L = re,
|
|
2394
|
+
onCaptionsDelete: I,
|
|
2395
|
+
interactiveMenuElements: h = [],
|
|
2396
|
+
kebabMenuElements: g = [],
|
|
2390
2397
|
darkMode: E = !1,
|
|
2391
2398
|
autoLoadCaptionSrc: P = "",
|
|
2392
|
-
forceComments:
|
|
2393
|
-
disableCaptionSettings:
|
|
2394
|
-
disableStorage:
|
|
2395
|
-
startAt:
|
|
2399
|
+
forceComments: S = !1,
|
|
2400
|
+
disableCaptionSettings: O = !1,
|
|
2401
|
+
disableStorage: R = !1,
|
|
2402
|
+
startAt: B,
|
|
2396
2403
|
crossOrigin: j,
|
|
2397
2404
|
captionOffsetOverride: fe,
|
|
2398
2405
|
disableInteractivePinRanges: _e = [],
|
|
@@ -2401,14 +2408,14 @@ function Oi({
|
|
|
2401
2408
|
}) {
|
|
2402
2409
|
const { contextValue: Ce, shortcuts: ct, storage: ut } = hi(
|
|
2403
2410
|
a,
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
), { i18n: Ve } =
|
|
2411
|
+
S,
|
|
2412
|
+
O,
|
|
2413
|
+
B
|
|
2414
|
+
), { i18n: Ve } = f();
|
|
2408
2415
|
Z(() => {
|
|
2409
2416
|
Ve.changeLanguage(c);
|
|
2410
2417
|
}, [Ve, c]);
|
|
2411
|
-
const [oe, ie] = k("none"), dt =
|
|
2418
|
+
const [oe, ie] = k("none"), dt = p((T) => {
|
|
2412
2419
|
Lt(T) ? ie("audio") : (xt(T) || Mt(T) || Pt(T)) && ie("video");
|
|
2413
2420
|
}, []);
|
|
2414
2421
|
return /* @__PURE__ */ n(
|
|
@@ -2422,27 +2429,27 @@ function Oi({
|
|
|
2422
2429
|
annotations: u,
|
|
2423
2430
|
quizMarkers: d,
|
|
2424
2431
|
interactive: _,
|
|
2425
|
-
onAnnotationClick:
|
|
2432
|
+
onAnnotationClick: C,
|
|
2426
2433
|
onQuizMarkerClick: w,
|
|
2427
|
-
onInteractivePinClick:
|
|
2428
|
-
interactiveMenuElements:
|
|
2429
|
-
kebabMenuElements:
|
|
2434
|
+
onInteractivePinClick: L,
|
|
2435
|
+
interactiveMenuElements: h,
|
|
2436
|
+
kebabMenuElements: g,
|
|
2430
2437
|
darkMode: E,
|
|
2431
|
-
forceComments:
|
|
2432
|
-
disableCaptionSettings:
|
|
2433
|
-
disableStorage:
|
|
2438
|
+
forceComments: S,
|
|
2439
|
+
disableCaptionSettings: O,
|
|
2440
|
+
disableStorage: R,
|
|
2434
2441
|
captionOffsetOverride: fe,
|
|
2435
2442
|
disableInteractivePinRanges: _e,
|
|
2436
|
-
onQuizMarkerShow:
|
|
2437
|
-
onCaptionsDelete:
|
|
2443
|
+
onQuizMarkerShow: M,
|
|
2444
|
+
onCaptionsDelete: I,
|
|
2438
2445
|
controlsLayout: ne,
|
|
2439
|
-
startAt:
|
|
2446
|
+
startAt: B,
|
|
2440
2447
|
children: /* @__PURE__ */ n(Rt, { contextValue: Ce, children: /* @__PURE__ */ r(
|
|
2441
2448
|
Nt,
|
|
2442
2449
|
{
|
|
2443
|
-
"data-version": "0.5.
|
|
2450
|
+
"data-version": "0.5.7",
|
|
2444
2451
|
crossOrigin: j,
|
|
2445
|
-
storage:
|
|
2452
|
+
storage: R ? null : ut,
|
|
2446
2453
|
title: e,
|
|
2447
2454
|
src: ui(o),
|
|
2448
2455
|
keyShortcuts: ct,
|
|
@@ -2473,7 +2480,7 @@ function Oi({
|
|
|
2473
2480
|
{
|
|
2474
2481
|
darkMode: E,
|
|
2475
2482
|
playerRef: t,
|
|
2476
|
-
showCaptionsButton: !
|
|
2483
|
+
showCaptionsButton: !O,
|
|
2477
2484
|
controlsLayout: ne
|
|
2478
2485
|
}
|
|
2479
2486
|
),
|
|
@@ -2489,7 +2496,7 @@ export {
|
|
|
2489
2496
|
bn as CAPTION_FONT_SIZE_MULTIPLIERS,
|
|
2490
2497
|
vn as COMMENT_DURATION,
|
|
2491
2498
|
Y as PLAYBACK_RATES,
|
|
2492
|
-
|
|
2493
|
-
|
|
2499
|
+
Bi as StudioPlayer,
|
|
2500
|
+
b as useMediaState,
|
|
2494
2501
|
Zi as useMediaStore
|
|
2495
2502
|
};
|