@instructure/studio-player 0.5.1 → 0.5.6
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/README.md +27 -1
- package/dist/StudioPlayer/StudioPlayer.types.d.ts +2 -1
- package/dist/StudioPlayer/hooks/useStartAtWithDisabledLS.d.ts +2 -0
- package/dist/StudioPlayer/storyUtils.d.ts +4 -0
- package/dist/StudioPlayer/utils/getQualityLabel.d.ts +4 -0
- package/dist/StudioPlayer/utils/getQualityLabel.test.d.ts +1 -0
- package/dist/StudioPlayer/utils/index.d.ts +1 -0
- package/dist/ar-VCVxJm7K.js +117 -0
- package/dist/ca-BEBt24QP.js +117 -0
- package/dist/cy-YaAJqNQl.js +117 -0
- package/dist/da-BZWhI2Xn.js +117 -0
- package/dist/da-x-k12-lQy2NFaK.js +117 -0
- package/dist/de-BUvRwMD6.js +117 -0
- package/dist/en-AU-x-unimelb-CMl3c1a0.js +117 -0
- package/dist/en-DwAikWk3.js +133 -0
- package/dist/en-GB-x-ukhe-oT9RNDTK.js +117 -0
- package/dist/en_AU-CvZ7peTk.js +117 -0
- package/dist/{en-D6AICPim.js → en_CY-BG8Pm72U.js} +17 -17
- package/dist/en_GB-CA_2B3N6.js +117 -0
- package/dist/errors-DCJKAXTz.js +70 -0
- package/dist/es-CsXsddFr.js +117 -0
- package/dist/es_ES-D71hU2MM.js +117 -0
- package/dist/fi-D2HqteTW.js +117 -0
- package/dist/fr-BAEJ5gcO.js +117 -0
- package/dist/fr_CA-BKv7vpJe.js +117 -0
- package/dist/ga-COMvYqPH.js +117 -0
- package/dist/hi-BejTYLRj.js +117 -0
- package/dist/ht-BeM6QStZ.js +117 -0
- package/dist/id-NJzBnSib.js +117 -0
- package/dist/index-Bp7bsIbA.css +1 -0
- package/dist/is-Cv47H4ey.js +117 -0
- package/dist/it-B6LzBKYz.js +117 -0
- package/dist/ja-BV_3G5Hd.js +117 -0
- package/dist/{kl-BeSfwm2D.js → kl-CBFEKDWH.js} +17 -17
- package/dist/mi-BRHT5aP1.js +117 -0
- package/dist/ms-D7bYcHUm.js +117 -0
- package/dist/nb-DyTI7Ts1.js +117 -0
- package/dist/nb-x-k12-8GMfCmMo.js +117 -0
- package/dist/nl-DBSxFMy9.js +117 -0
- package/dist/pl-DUdYRh1Y.js +117 -0
- package/dist/prod-DTLJXtPo.js +994 -0
- package/dist/pt-DkTHNOHF.js +117 -0
- package/dist/pt_BR-DZZGbQIg.js +117 -0
- package/dist/ru-Bxl9NL5w.js +117 -0
- package/dist/sl-D2hOGCNb.js +117 -0
- package/dist/srt-parser-CWqahKwO.js +27 -0
- package/dist/ssa-parser-BqjjKy4M.js +209 -0
- package/dist/studio-player.es.js +1060 -907
- package/dist/sv-Bic7JSI_.js +117 -0
- package/dist/sv-x-k12-B7c2_4ik.js +117 -0
- package/dist/th-hFDNyurj.js +117 -0
- package/dist/types.d.ts +1 -0
- package/dist/vi-Dz6NuOdc.js +117 -0
- package/dist/vidstack-CRo1u9eU.js +32951 -0
- package/dist/zh-C7jcyKYp.js +117 -0
- package/dist/zh-Hans-DKg6WKbe.js +117 -0
- package/dist/zh-Hant-ZHDw_Y-L.js +117 -0
- package/dist/zh_HK-C2PlZhAG.js +117 -0
- package/package.json +9 -3
- package/dist/ar-B8l4Fn4I.js +0 -111
- package/dist/ca-D-9XXbq2.js +0 -111
- package/dist/cy-7BijMmgd.js +0 -111
- package/dist/da-DAY_l_21.js +0 -111
- package/dist/da-x-k12-CJ2niKwf.js +0 -111
- package/dist/de-ya8bO5Ja.js +0 -111
- package/dist/en-AU-x-unimelb-irzsO2mb.js +0 -111
- package/dist/en-GB-x-ukhe-G4m87b7j.js +0 -111
- package/dist/en_AU-DB3OHfTc.js +0 -111
- package/dist/en_CY-DhDZF-tZ.js +0 -111
- package/dist/en_GB-BK_q7w5s.js +0 -111
- package/dist/es-DZ5Y82Uj.js +0 -111
- package/dist/es_ES-CQMBItY2.js +0 -111
- package/dist/fi-B4Pz1t-t.js +0 -111
- package/dist/fr-BteehQcx.js +0 -111
- package/dist/fr_CA-BHaXh8MX.js +0 -111
- package/dist/ga-Bx3a9UKG.js +0 -111
- package/dist/hi-DHG0_yeQ.js +0 -111
- package/dist/ht-C2IdMP2u.js +0 -111
- package/dist/id-uk30JX2p.js +0 -111
- package/dist/index-Dn2U025w.css +0 -1
- package/dist/is-yOmqk5qU.js +0 -111
- package/dist/it-BM3Um8gU.js +0 -111
- package/dist/ja-BdL71P8g.js +0 -111
- package/dist/mi-D2uHHivq.js +0 -111
- package/dist/ms--AuIVHSL.js +0 -111
- package/dist/nb-CXLIMCwW.js +0 -111
- package/dist/nb-x-k12-CxOnhM4J.js +0 -111
- package/dist/nl-CsVJ-oQV.js +0 -111
- package/dist/pl-BT0sRFhU.js +0 -111
- package/dist/pt-Anx8EAjZ.js +0 -111
- package/dist/pt_BR-Be3UULFe.js +0 -111
- package/dist/ru-DPUYT2zh.js +0 -111
- package/dist/sl-QnHcT_i1.js +0 -111
- package/dist/sv-D_WuG6Ug.js +0 -111
- package/dist/sv-x-k12-DLoiJ1OB.js +0 -111
- package/dist/th-CcE5hCow.js +0 -111
- package/dist/vi-De-Nfy-i.js +0 -111
- package/dist/zh-ClimEyGq.js +0 -111
- package/dist/zh-Hans-CU7SSIXE.js +0 -111
- package/dist/zh-Hant-BMd136-f.js +0 -111
- package/dist/zh_HK-Culy5KI5.js +0 -111
package/dist/studio-player.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import './index-
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
import './index-Bp7bsIbA.css';var ht = Object.defineProperty;
|
|
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 R = (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
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { initReactI18next as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useFloating as
|
|
12
|
-
const
|
|
5
|
+
import { createContext as we, useContext as ye, useState as k, useCallback as f, useEffect as Z, useMemo as D, useRef as z, forwardRef as ft } from "react";
|
|
6
|
+
import { u as S, s as ge, a as g, 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
|
+
import { n as Zi } from "./vidstack-CRo1u9eU.js";
|
|
8
|
+
import { initReactI18next as Et, useTranslation as h } from "react-i18next";
|
|
9
|
+
import Tt from "i18next";
|
|
10
|
+
import At 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 St } from "@floating-ui/react";
|
|
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) => {
|
|
15
15
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -22,9 +22,9 @@ const St = (e, t, o) => {
|
|
|
22
22
|
);
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(e) =>
|
|
25
|
+
Tt.use(Et).use(
|
|
26
|
+
At(
|
|
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({
|
|
30
30
|
fallbackLng: "en",
|
|
@@ -35,96 +35,100 @@ Mt.use(Lt).use(
|
|
|
35
35
|
escapeValue: !1
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const
|
|
39
|
-
function
|
|
38
|
+
const Ue = we(null);
|
|
39
|
+
function Rt({
|
|
40
40
|
children: e,
|
|
41
41
|
contextValue: t
|
|
42
42
|
}) {
|
|
43
|
-
return /* @__PURE__ */ n(
|
|
43
|
+
return /* @__PURE__ */ n(Ue.Provider, { value: t, children: e });
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
const e =
|
|
45
|
+
function v() {
|
|
46
|
+
const e = ye(Ue);
|
|
47
47
|
if (!e)
|
|
48
48
|
throw new Error(
|
|
49
49
|
"useStudioPlayerContext must be used within a StudioPlayerContextProvider"
|
|
50
50
|
);
|
|
51
51
|
return e;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
53
|
+
const qe = we(null);
|
|
54
|
+
function Ht({
|
|
55
|
+
title: e,
|
|
56
|
+
hideFullScreen: t,
|
|
57
|
+
comments: o,
|
|
58
|
+
captions: i,
|
|
59
|
+
thumbnail: s,
|
|
60
|
+
annotations: a,
|
|
61
|
+
quizMarkers: l,
|
|
62
|
+
interactive: c,
|
|
63
|
+
onAnnotationClick: u,
|
|
64
|
+
onQuizMarkerClick: d,
|
|
65
|
+
onInteractivePinClick: _,
|
|
66
|
+
interactiveMenuElements: b,
|
|
67
|
+
kebabMenuElements: w,
|
|
68
|
+
darkMode: y,
|
|
69
|
+
children: x,
|
|
70
|
+
forceComments: p,
|
|
71
|
+
disableCaptionSettings: C,
|
|
72
|
+
disableStorage: H,
|
|
73
|
+
captionOffsetOverride: E,
|
|
74
|
+
disableInteractivePinRanges: P,
|
|
75
|
+
onQuizMarkerShow: I,
|
|
75
76
|
onCaptionsDelete: B,
|
|
76
|
-
controlsLayout:
|
|
77
|
+
controlsLayout: V,
|
|
78
|
+
startAt: O
|
|
77
79
|
}) {
|
|
78
80
|
const j = {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
81
|
+
title: e,
|
|
82
|
+
hideFullScreen: t,
|
|
83
|
+
comments: o,
|
|
84
|
+
captions: i,
|
|
85
|
+
thumbnail: s,
|
|
86
|
+
annotations: a,
|
|
87
|
+
quizMarkers: l,
|
|
88
|
+
interactive: c,
|
|
89
|
+
onAnnotationClick: u,
|
|
90
|
+
onQuizMarkerClick: d,
|
|
91
|
+
onInteractivePinClick: _,
|
|
92
|
+
interactiveMenuElements: b,
|
|
93
|
+
kebabMenuElements: w,
|
|
94
|
+
darkMode: y,
|
|
95
|
+
hasComments: o.length > 0,
|
|
96
|
+
hasAnnotations: a.length > 0,
|
|
97
|
+
hasQuizmarkers: l.length > 0,
|
|
98
|
+
forceComments: p,
|
|
99
|
+
disableCaptionSettings: C,
|
|
100
|
+
disableStorage: H,
|
|
101
|
+
captionOffsetOverride: E,
|
|
102
|
+
disableInteractivePinRanges: P,
|
|
103
|
+
onQuizMarkerShow: I,
|
|
101
104
|
onCaptionsDelete: B,
|
|
102
|
-
controlsLayout:
|
|
105
|
+
controlsLayout: V,
|
|
106
|
+
startAt: O
|
|
103
107
|
};
|
|
104
|
-
return /* @__PURE__ */ n(
|
|
108
|
+
return /* @__PURE__ */ n(qe.Provider, { value: j, children: x });
|
|
105
109
|
}
|
|
106
110
|
function L() {
|
|
107
|
-
const e =
|
|
111
|
+
const e = ye(qe);
|
|
108
112
|
if (!e)
|
|
109
113
|
throw new Error(
|
|
110
114
|
"useStudioPlayerPropsContext must be used within a StudioPlayerPropsContextProvider"
|
|
111
115
|
);
|
|
112
116
|
return e;
|
|
113
117
|
}
|
|
114
|
-
const
|
|
118
|
+
const Bt = "_annotation-overlay_1kxzn_1", Ot = {
|
|
115
119
|
"annotation-overlay": "_annotation-overlay_1kxzn_1",
|
|
116
|
-
annotationOverlay:
|
|
117
|
-
},
|
|
120
|
+
annotationOverlay: Bt
|
|
121
|
+
}, He = 0.25, Ft = (e, t) => {
|
|
118
122
|
let o = !1;
|
|
119
123
|
return (i) => {
|
|
120
124
|
const s = i.detail.currentTime;
|
|
121
|
-
s >= e.time && s < e.time +
|
|
125
|
+
s >= e.time && s < e.time + He && !o && (o = !0, t(e)), (s < e.time || s >= e.time + He) && o && (o = !1);
|
|
122
126
|
};
|
|
123
127
|
};
|
|
124
|
-
function
|
|
125
|
-
const t =
|
|
128
|
+
function Dt({ annotations: e }) {
|
|
129
|
+
const t = S(), o = v(), i = L(), [s, a] = k(
|
|
126
130
|
null
|
|
127
|
-
), l =
|
|
131
|
+
), l = f(
|
|
128
132
|
(u) => {
|
|
129
133
|
t == null || t.pause(), i.interactive || o.disableInteractions(), a(u);
|
|
130
134
|
},
|
|
@@ -132,17 +136,17 @@ function Rt({ annotations: e }) {
|
|
|
132
136
|
), c = () => {
|
|
133
137
|
i.interactive || (t == null || t.play(), o.enableInteractions()), a(null);
|
|
134
138
|
};
|
|
135
|
-
return
|
|
139
|
+
return Z(() => {
|
|
136
140
|
if (!t)
|
|
137
141
|
return;
|
|
138
142
|
const u = [];
|
|
139
143
|
for (const d of e) {
|
|
140
|
-
const
|
|
141
|
-
t.addEventListener("time-update",
|
|
144
|
+
const _ = Ft(d, l);
|
|
145
|
+
t.addEventListener("time-update", _), u.push(_);
|
|
142
146
|
}
|
|
143
147
|
if (s) {
|
|
144
148
|
const d = e.find(
|
|
145
|
-
(
|
|
149
|
+
(_) => _.id === s.id
|
|
146
150
|
);
|
|
147
151
|
d ? a(d) : (a(null), o.enableInteractions());
|
|
148
152
|
}
|
|
@@ -150,35 +154,41 @@ function Rt({ annotations: e }) {
|
|
|
150
154
|
for (const d of u)
|
|
151
155
|
t.removeEventListener("time-update", d);
|
|
152
156
|
};
|
|
153
|
-
}, [t, e]), s ? /* @__PURE__ */ n("div", { className:
|
|
157
|
+
}, [t, e]), s ? /* @__PURE__ */ n("div", { className: Ot.annotationOverlay, children: s.render(c) }) : null;
|
|
154
158
|
}
|
|
155
|
-
const
|
|
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 = {
|
|
156
160
|
"media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
|
|
157
|
-
mediaBufferingIndicator:
|
|
161
|
+
mediaBufferingIndicator: Zt,
|
|
158
162
|
"media-buffering-spinner": "_media-buffering-spinner_1fwjr_17",
|
|
159
|
-
mediaBufferingSpinner:
|
|
163
|
+
mediaBufferingSpinner: jt,
|
|
160
164
|
"media-buffering-spin": "_media-buffering-spin_1fwjr_17",
|
|
161
|
-
mediaBufferingSpin:
|
|
165
|
+
mediaBufferingSpin: Kt,
|
|
162
166
|
"media-buffering-track": "_media-buffering-track_1fwjr_22",
|
|
163
|
-
mediaBufferingTrack:
|
|
167
|
+
mediaBufferingTrack: zt,
|
|
164
168
|
"media-buffering-track-fill": "_media-buffering-track-fill_1fwjr_27",
|
|
165
|
-
mediaBufferingTrackFill:
|
|
169
|
+
mediaBufferingTrackFill: $t
|
|
166
170
|
};
|
|
167
|
-
function
|
|
168
|
-
return /* @__PURE__ */ n("div", { className:
|
|
169
|
-
/* @__PURE__ */ n(
|
|
171
|
+
function Ge() {
|
|
172
|
+
return /* @__PURE__ */ n("div", { className: ae.mediaBufferingIndicator, children: /* @__PURE__ */ r(ge.Root, { className: ae.mediaBufferingSpinner, size: 96, children: [
|
|
173
|
+
/* @__PURE__ */ n(ge.Track, { className: ae.mediaBufferingTrack, width: 8 }),
|
|
170
174
|
/* @__PURE__ */ n(
|
|
171
|
-
|
|
175
|
+
ge.TrackFill,
|
|
172
176
|
{
|
|
173
|
-
className:
|
|
177
|
+
className: ae.mediaBufferingTrackFill,
|
|
174
178
|
width: 8
|
|
175
179
|
}
|
|
176
180
|
)
|
|
177
181
|
] }) });
|
|
178
182
|
}
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
|
|
183
|
+
const Ut = [
|
|
184
|
+
"ArrowUp",
|
|
185
|
+
"ArrowDown",
|
|
186
|
+
"ArrowLeft",
|
|
187
|
+
"ArrowRight",
|
|
188
|
+
"Escape"
|
|
189
|
+
];
|
|
190
|
+
function Ee(e, t = !1) {
|
|
191
|
+
Z(() => {
|
|
182
192
|
const o = new AbortController();
|
|
183
193
|
return document.addEventListener(
|
|
184
194
|
"keydown",
|
|
@@ -193,7 +203,7 @@ function fe(e, t = !1) {
|
|
|
193
203
|
), t && window.addEventListener(
|
|
194
204
|
"keydown",
|
|
195
205
|
(i) => {
|
|
196
|
-
|
|
206
|
+
Ut.includes(i.code) && i.preventDefault();
|
|
197
207
|
},
|
|
198
208
|
{ signal: o.signal }
|
|
199
209
|
), () => {
|
|
@@ -201,41 +211,41 @@ function fe(e, t = !1) {
|
|
|
201
211
|
};
|
|
202
212
|
}, [e]);
|
|
203
213
|
}
|
|
204
|
-
function
|
|
205
|
-
const t =
|
|
206
|
-
return
|
|
207
|
-
}
|
|
208
|
-
const
|
|
209
|
-
"controls-overlay": "_controls-
|
|
210
|
-
controlsOverlay:
|
|
211
|
-
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-
|
|
212
|
-
keyboardShortcutsOverlay:
|
|
213
|
-
"screen-reader-content": "_screen-reader-
|
|
214
|
-
screenReaderContent:
|
|
215
|
-
"controls-button": "_controls-
|
|
216
|
-
controlsButton:
|
|
217
|
-
"keyboard-shortcuts-button": "_keyboard-shortcuts-
|
|
218
|
-
keyboardShortcutsButton:
|
|
219
|
-
"kebab-menu-button": "_kebab-menu-
|
|
220
|
-
kebabMenuButton:
|
|
221
|
-
"kebab-menu": "_kebab-
|
|
222
|
-
kebabMenu:
|
|
223
|
-
"kebab-menu-item": "_kebab-menu-
|
|
224
|
-
kebabMenuItem:
|
|
225
|
-
"close-button": "_close-
|
|
226
|
-
closeButton:
|
|
227
|
-
arrow:
|
|
214
|
+
function qt(e) {
|
|
215
|
+
const t = D(() => ({ Escape: e }), [e]);
|
|
216
|
+
return Ee(t);
|
|
217
|
+
}
|
|
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
|
+
"controls-overlay": "_controls-overlay_151j5_1",
|
|
220
|
+
controlsOverlay: Gt,
|
|
221
|
+
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_151j5_11",
|
|
222
|
+
keyboardShortcutsOverlay: Qt,
|
|
223
|
+
"screen-reader-content": "_screen-reader-content_151j5_76",
|
|
224
|
+
screenReaderContent: Wt,
|
|
225
|
+
"controls-button": "_controls-button_151j5_90",
|
|
226
|
+
controlsButton: Yt,
|
|
227
|
+
"keyboard-shortcuts-button": "_keyboard-shortcuts-button_151j5_106",
|
|
228
|
+
keyboardShortcutsButton: Xt,
|
|
229
|
+
"kebab-menu-button": "_kebab-menu-button_151j5_116",
|
|
230
|
+
kebabMenuButton: Jt,
|
|
231
|
+
"kebab-menu": "_kebab-menu_151j5_116",
|
|
232
|
+
kebabMenu: en,
|
|
233
|
+
"kebab-menu-item": "_kebab-menu-item_151j5_145",
|
|
234
|
+
kebabMenuItem: tn,
|
|
235
|
+
"close-button": "_close-button_151j5_184",
|
|
236
|
+
closeButton: nn,
|
|
237
|
+
arrow: on
|
|
228
238
|
};
|
|
229
|
-
function
|
|
230
|
-
const { t } =
|
|
231
|
-
|
|
239
|
+
function sn({ onClose: e }) {
|
|
240
|
+
const { t } = h();
|
|
241
|
+
qt(e);
|
|
232
242
|
const o = (i) => {
|
|
233
243
|
i && i.focus();
|
|
234
244
|
};
|
|
235
245
|
return /* @__PURE__ */ r(
|
|
236
246
|
"div",
|
|
237
247
|
{
|
|
238
|
-
className:
|
|
248
|
+
className: A.keyboardShortcutsOverlay,
|
|
239
249
|
tabIndex: 0,
|
|
240
250
|
ref: o,
|
|
241
251
|
role: "dialog",
|
|
@@ -247,15 +257,15 @@ function en({ onClose: e }) {
|
|
|
247
257
|
"button",
|
|
248
258
|
{
|
|
249
259
|
type: "button",
|
|
250
|
-
className:
|
|
260
|
+
className: A.closeButton,
|
|
251
261
|
onClick: e,
|
|
252
262
|
"aria-label": t("CLOSE"),
|
|
253
|
-
children: /* @__PURE__ */ n(
|
|
263
|
+
children: /* @__PURE__ */ n(Qe, {})
|
|
254
264
|
}
|
|
255
265
|
)
|
|
256
266
|
] }),
|
|
257
267
|
/* @__PURE__ */ r("table", { children: [
|
|
258
|
-
/* @__PURE__ */ n("caption", { className:
|
|
268
|
+
/* @__PURE__ */ n("caption", { className: A.screenReaderContent, children: t("KEYBOARD_SHORTCUTS") }),
|
|
259
269
|
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ r("tr", { children: [
|
|
260
270
|
/* @__PURE__ */ n("th", { children: t("ACTION") }),
|
|
261
271
|
/* @__PURE__ */ n("th", { children: t("SHORTCUT") })
|
|
@@ -342,87 +352,94 @@ function en({ onClose: e }) {
|
|
|
342
352
|
}
|
|
343
353
|
);
|
|
344
354
|
}
|
|
345
|
-
const
|
|
346
|
-
share: /* @__PURE__ */ n(
|
|
347
|
-
transcript: /* @__PURE__ */ n(
|
|
348
|
-
media: /* @__PURE__ */ n(
|
|
349
|
-
delete: /* @__PURE__ */ n(
|
|
350
|
-
},
|
|
351
|
-
function
|
|
352
|
-
const [e, t] =
|
|
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" }) }), 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.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" }) }), 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.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 = {
|
|
356
|
+
share: /* @__PURE__ */ n(ln, {}),
|
|
357
|
+
transcript: /* @__PURE__ */ n(rn, {}),
|
|
358
|
+
media: /* @__PURE__ */ n(cn, {}),
|
|
359
|
+
delete: /* @__PURE__ */ n(We, {})
|
|
360
|
+
}, dn = (e) => typeof e != "string";
|
|
361
|
+
function mn() {
|
|
362
|
+
const [e, t] = k(!1), [o, i] = k(null), s = v(), a = L(), l = () => {
|
|
353
363
|
t(!e), s.setGlobalKeysDisabled(!e);
|
|
354
|
-
}, c =
|
|
364
|
+
}, c = z(null), u = z([]), { refs: d, floatingStyles: _, context: b } = me({
|
|
355
365
|
open: e,
|
|
356
366
|
onOpenChange: l,
|
|
357
|
-
whileElementsMounted:
|
|
367
|
+
whileElementsMounted: he,
|
|
358
368
|
placement: "bottom-end",
|
|
359
369
|
middleware: [
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
370
|
+
ke(),
|
|
371
|
+
Le(10),
|
|
372
|
+
xe({
|
|
363
373
|
element: c
|
|
364
374
|
})
|
|
365
375
|
]
|
|
366
|
-
}), w =
|
|
376
|
+
}), w = ze(b, {
|
|
367
377
|
listRef: u,
|
|
368
378
|
activeIndex: o,
|
|
369
|
-
onNavigate: i
|
|
370
|
-
|
|
379
|
+
onNavigate: i,
|
|
380
|
+
loop: !0
|
|
381
|
+
}), y = Me(b), { getReferenceProps: x, getFloatingProps: p, getItemProps: C } = Pe(
|
|
371
382
|
[y, w]
|
|
372
|
-
), { t:
|
|
383
|
+
), { t: H } = h();
|
|
373
384
|
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ r(X, { children: [
|
|
374
385
|
/* @__PURE__ */ n(
|
|
375
386
|
"button",
|
|
376
387
|
{
|
|
388
|
+
id: "kebab-menu-button",
|
|
377
389
|
type: "button",
|
|
378
|
-
"aria-label":
|
|
390
|
+
"aria-label": H("KEBAB_MENU", { title: a.title }),
|
|
379
391
|
"aria-haspopup": "true",
|
|
380
|
-
|
|
381
|
-
|
|
392
|
+
"aria-expanded": e,
|
|
393
|
+
className: `${A.controlsButton} ${A.kebabMenuButton}`,
|
|
394
|
+
tabIndex: s.state.interactionsDisabled || e ? -1 : 0,
|
|
382
395
|
ref: d.setReference,
|
|
383
|
-
...
|
|
396
|
+
...x({
|
|
384
397
|
onClick: () => l()
|
|
385
398
|
}),
|
|
386
|
-
children: /* @__PURE__ */ n(
|
|
399
|
+
children: /* @__PURE__ */ n(an, {})
|
|
387
400
|
}
|
|
388
401
|
),
|
|
389
|
-
e && /* @__PURE__ */ n(
|
|
402
|
+
e && /* @__PURE__ */ n(Ne, { context: b, guards: !1, children: /* @__PURE__ */ r(
|
|
390
403
|
"div",
|
|
391
404
|
{
|
|
405
|
+
id: "kebab-menu",
|
|
392
406
|
ref: d.setFloating,
|
|
393
|
-
style:
|
|
394
|
-
className:
|
|
395
|
-
|
|
407
|
+
style: _,
|
|
408
|
+
className: A.kebabMenu,
|
|
409
|
+
role: "menu",
|
|
410
|
+
"aria-labelledby": "kebab-menu-button",
|
|
411
|
+
...p(),
|
|
396
412
|
children: [
|
|
397
413
|
a.kebabMenuElements.map(
|
|
398
|
-
({ id:
|
|
414
|
+
({ id: E, text: P, icon: I, onClick: B }, V) => /* @__PURE__ */ r(
|
|
399
415
|
"button",
|
|
400
416
|
{
|
|
401
|
-
tabIndex: o ===
|
|
417
|
+
tabIndex: o === V ? 0 : -1,
|
|
402
418
|
type: "button",
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
419
|
+
role: "menuitem",
|
|
420
|
+
className: A.kebabMenuItem,
|
|
421
|
+
ref: (O) => {
|
|
422
|
+
u.current[V] = O;
|
|
406
423
|
},
|
|
407
424
|
...C({
|
|
408
425
|
onClick: () => {
|
|
409
|
-
|
|
426
|
+
B(E), t(!1);
|
|
410
427
|
}
|
|
411
428
|
}),
|
|
412
429
|
children: [
|
|
413
|
-
|
|
414
|
-
|
|
430
|
+
dn(I) ? I : un[I],
|
|
431
|
+
P
|
|
415
432
|
]
|
|
416
433
|
},
|
|
417
|
-
|
|
434
|
+
E
|
|
418
435
|
)
|
|
419
436
|
),
|
|
420
437
|
/* @__PURE__ */ n(
|
|
421
|
-
|
|
438
|
+
Ie,
|
|
422
439
|
{
|
|
423
440
|
ref: c,
|
|
424
|
-
context:
|
|
425
|
-
className:
|
|
441
|
+
context: b,
|
|
442
|
+
className: A.arrow
|
|
426
443
|
}
|
|
427
444
|
)
|
|
428
445
|
]
|
|
@@ -430,43 +447,43 @@ function rn() {
|
|
|
430
447
|
) })
|
|
431
448
|
] }) : null;
|
|
432
449
|
}
|
|
433
|
-
const
|
|
434
|
-
function
|
|
435
|
-
const [e, t] =
|
|
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
|
+
function pn() {
|
|
452
|
+
const [e, t] = k(!1), [o, i] = k(!1), [s, a] = k(!1), l = v(), c = g("playing"), u = de(), { t: d } = h(), _ = f(() => {
|
|
436
453
|
t(!0), l.disableInteractions(), c && (a(!0), u.pause());
|
|
437
|
-
}, [c, u, l]),
|
|
454
|
+
}, [c, u, l]), b = f(() => {
|
|
438
455
|
t(!1), i(!0), l.enableInteractions(), s && (a(!1), u.play());
|
|
439
|
-
}, [s, u, l]), w =
|
|
456
|
+
}, [s, u, l]), w = f(
|
|
440
457
|
(y) => o && (y == null ? void 0 : y.focus()),
|
|
441
458
|
[o]
|
|
442
459
|
);
|
|
443
|
-
return e ? /* @__PURE__ */ n(
|
|
460
|
+
return e ? /* @__PURE__ */ n(sn, { onClose: b }) : /* @__PURE__ */ r("div", { className: A.controlsOverlay, children: [
|
|
444
461
|
/* @__PURE__ */ n(
|
|
445
462
|
"button",
|
|
446
463
|
{
|
|
447
464
|
ref: w,
|
|
448
465
|
"aria-label": d("KEYBOARD_SHORTCUTS"),
|
|
449
466
|
type: "button",
|
|
450
|
-
className: `${
|
|
451
|
-
onClick:
|
|
467
|
+
className: `${A.controlsButton} ${A.keyboardShortcutsButton}`,
|
|
468
|
+
onClick: _,
|
|
452
469
|
tabIndex: l.state.interactionsDisabled ? -1 : 0,
|
|
453
|
-
children: /* @__PURE__ */ n(
|
|
470
|
+
children: /* @__PURE__ */ n(hn, {})
|
|
454
471
|
}
|
|
455
472
|
),
|
|
456
|
-
/* @__PURE__ */ n(
|
|
473
|
+
/* @__PURE__ */ n(mn, {})
|
|
457
474
|
] });
|
|
458
475
|
}
|
|
459
|
-
const
|
|
476
|
+
const Ye = (e) => /* @__PURE__ */ r("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
460
477
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_149_104418", children: /* @__PURE__ */ n("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
461
478
|
/* @__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" }) })
|
|
462
|
-
] }),
|
|
479
|
+
] }), Xe = (e) => /* @__PURE__ */ r("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
463
480
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ n("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
464
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" }) })
|
|
465
482
|
] });
|
|
466
|
-
function
|
|
467
|
-
const e =
|
|
468
|
-
(
|
|
469
|
-
e.toggleCaptions(
|
|
483
|
+
function fn() {
|
|
484
|
+
const e = de(), t = g("textTrack"), o = g("hasCaptions"), i = t && _t(t), s = v(), { t: a } = h(), l = f(
|
|
485
|
+
(c) => {
|
|
486
|
+
e.toggleCaptions(c.nativeEvent);
|
|
470
487
|
},
|
|
471
488
|
[e]
|
|
472
489
|
);
|
|
@@ -475,25 +492,25 @@ function dn() {
|
|
|
475
492
|
{
|
|
476
493
|
type: "button",
|
|
477
494
|
className: "controls-button",
|
|
478
|
-
onClick:
|
|
479
|
-
"aria-label": "
|
|
495
|
+
onClick: l,
|
|
496
|
+
"aria-label": a(i ? "CAPTIONS_DISABLE" : "CAPTIONS_ENABLE"),
|
|
480
497
|
"aria-pressed": i ? "true" : "false",
|
|
481
498
|
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
482
|
-
children: i ? /* @__PURE__ */ n(
|
|
499
|
+
children: i ? /* @__PURE__ */ n(Xe, { className: "controls-button-icon" }) : /* @__PURE__ */ n(Ye, { className: "controls-button-icon" })
|
|
483
500
|
}
|
|
484
501
|
) : null;
|
|
485
502
|
}
|
|
486
|
-
const
|
|
487
|
-
captions:
|
|
488
|
-
},
|
|
489
|
-
function
|
|
490
|
-
const t = e.length > 0, o =
|
|
503
|
+
const _n = "_captions_1cu0g_1", Cn = {
|
|
504
|
+
captions: _n
|
|
505
|
+
}, gn = (e, t) => e ? t.top : t.bottom;
|
|
506
|
+
function Je({ captions: e }) {
|
|
507
|
+
const t = e.length > 0, o = v(), { captionOffsetOverride: i } = L(), s = o.state.captionPositionOnTop, a = gn(
|
|
491
508
|
s,
|
|
492
509
|
i ?? {}
|
|
493
510
|
);
|
|
494
511
|
return /* @__PURE__ */ r(X, { children: [
|
|
495
512
|
e.map((l) => /* @__PURE__ */ n(
|
|
496
|
-
|
|
513
|
+
Ct,
|
|
497
514
|
{
|
|
498
515
|
kind: "subtitles",
|
|
499
516
|
type: l.type,
|
|
@@ -514,27 +531,27 @@ function Ue({ captions: e }) {
|
|
|
514
531
|
"--captions-color": o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
|
|
515
532
|
"--captions-background-color": o.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
|
|
516
533
|
},
|
|
517
|
-
children: /* @__PURE__ */ n(
|
|
534
|
+
children: /* @__PURE__ */ n(gt, { className: Cn.captions })
|
|
518
535
|
}
|
|
519
536
|
) : null
|
|
520
537
|
] });
|
|
521
538
|
}
|
|
522
|
-
function
|
|
539
|
+
function et(e) {
|
|
523
540
|
var t, o, i = "";
|
|
524
541
|
if (typeof e == "string" || typeof e == "number") i += e;
|
|
525
542
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
526
543
|
var s = e.length;
|
|
527
|
-
for (t = 0; t < s; t++) e[t] && (o =
|
|
544
|
+
for (t = 0; t < s; t++) e[t] && (o = et(e[t])) && (i && (i += " "), i += o);
|
|
528
545
|
} else for (o in e) e[o] && (i && (i += " "), i += o);
|
|
529
546
|
return i;
|
|
530
547
|
}
|
|
531
|
-
function
|
|
532
|
-
for (var e, t, o = 0, i = "", s = arguments.length; o < s; o++) (e = arguments[o]) && (t =
|
|
548
|
+
function ue() {
|
|
549
|
+
for (var e, t, o = 0, i = "", s = arguments.length; o < s; o++) (e = arguments[o]) && (t = et(e)) && (i && (i += " "), i += t);
|
|
533
550
|
return i;
|
|
534
551
|
}
|
|
535
|
-
const
|
|
536
|
-
const [, t] =
|
|
537
|
-
return
|
|
552
|
+
const Y = [0.5, 0.75, 1, 1.25, 1.5, 2], bn = [0.5, 1, 2, 3, 4], vn = 5, wn = (e) => {
|
|
553
|
+
const [, t] = k({});
|
|
554
|
+
return D(() => {
|
|
538
555
|
let o = [];
|
|
539
556
|
return {
|
|
540
557
|
add(i) {
|
|
@@ -551,20 +568,20 @@ const $ = [0.5, 0.75, 1, 1.25, 1.5, 2], _n = [0.5, 1, 2, 3, 4], fn = 5, Cn = (e)
|
|
|
551
568
|
}
|
|
552
569
|
};
|
|
553
570
|
}, []);
|
|
554
|
-
},
|
|
571
|
+
}, yn = (e, t, o) => {
|
|
555
572
|
let i = !1;
|
|
556
573
|
return (s) => {
|
|
557
574
|
const a = s.detail.currentTime;
|
|
558
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);
|
|
559
576
|
};
|
|
560
|
-
},
|
|
561
|
-
const o =
|
|
562
|
-
return
|
|
577
|
+
}, kn = (e, t = 5) => {
|
|
578
|
+
const o = S(), i = wn(t);
|
|
579
|
+
return Z(() => {
|
|
563
580
|
if (!o)
|
|
564
581
|
return;
|
|
565
582
|
const s = [];
|
|
566
583
|
for (const a of e) {
|
|
567
|
-
const l =
|
|
584
|
+
const l = yn(a, vn, i);
|
|
568
585
|
s.push(l), o.addEventListener("time-update", l);
|
|
569
586
|
}
|
|
570
587
|
return o.dispatchEvent(
|
|
@@ -577,55 +594,55 @@ const $ = [0.5, 0.75, 1, 1.25, 1.5, 2], _n = [0.5, 1, 2, 3, 4], fn = 5, Cn = (e)
|
|
|
577
594
|
i.clear();
|
|
578
595
|
};
|
|
579
596
|
}, [o, i, e]), i;
|
|
580
|
-
},
|
|
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", En = "_comment-author-name_bymws_95", K = {
|
|
581
598
|
"comments-overlay": "_comments-overlay_bymws_1",
|
|
582
|
-
commentsOverlay:
|
|
599
|
+
commentsOverlay: Ln,
|
|
583
600
|
"comments-container": "_comments-container_bymws_10",
|
|
584
|
-
commentsContainer:
|
|
585
|
-
kebab:
|
|
586
|
-
comment:
|
|
601
|
+
commentsContainer: xn,
|
|
602
|
+
kebab: Mn,
|
|
603
|
+
comment: Pn,
|
|
587
604
|
"comment-text": "_comment-text_bymws_51",
|
|
588
|
-
commentText:
|
|
605
|
+
commentText: Nn,
|
|
589
606
|
"comment-author-avatar": "_comment-author-avatar_bymws_71",
|
|
590
|
-
commentAuthorAvatar:
|
|
607
|
+
commentAuthorAvatar: In,
|
|
591
608
|
"comment-author-name": "_comment-author-name_bymws_95",
|
|
592
|
-
commentAuthorName:
|
|
609
|
+
commentAuthorName: En
|
|
593
610
|
};
|
|
594
|
-
function
|
|
595
|
-
return e.render ? e.render(e,
|
|
611
|
+
function Tn({ comment: e }) {
|
|
612
|
+
return e.render ? e.render(e, K) : /* @__PURE__ */ r("div", { className: K.comment, onClick: () => {
|
|
596
613
|
var t;
|
|
597
614
|
return (t = e.onClick) == null ? void 0 : t.call(e, e);
|
|
598
615
|
}, children: [
|
|
599
616
|
/* @__PURE__ */ n(
|
|
600
617
|
"img",
|
|
601
618
|
{
|
|
602
|
-
className:
|
|
619
|
+
className: K.commentAuthorAvatar,
|
|
603
620
|
src: e.user.avatar,
|
|
604
621
|
alt: e.user.name
|
|
605
622
|
}
|
|
606
623
|
),
|
|
607
|
-
/* @__PURE__ */ n("span", { className:
|
|
608
|
-
/* @__PURE__ */ n("span", { className:
|
|
624
|
+
/* @__PURE__ */ n("span", { className: K.commentText, children: e.text }),
|
|
625
|
+
/* @__PURE__ */ n("span", { className: K.commentAuthorName, children: e.user.name })
|
|
609
626
|
] });
|
|
610
627
|
}
|
|
611
|
-
const
|
|
612
|
-
function
|
|
628
|
+
const An = 4;
|
|
629
|
+
function Sn({
|
|
613
630
|
comments: e,
|
|
614
631
|
isKebabMenuVisible: t
|
|
615
632
|
}) {
|
|
616
|
-
const o =
|
|
633
|
+
const o = v(), i = kn(e, An), s = !!g("textTrack"), a = i.map((l) => /* @__PURE__ */ n(Tn, { comment: l }, l.id));
|
|
617
634
|
return e.length > 0 && o.state.commentsEnabled ? /* @__PURE__ */ n(
|
|
618
635
|
"div",
|
|
619
636
|
{
|
|
620
|
-
className:
|
|
637
|
+
className: K.commentsOverlay,
|
|
621
638
|
style: {
|
|
622
639
|
flexDirection: o.state.captionPositionOnTop && s ? "column-reverse" : "column"
|
|
623
640
|
},
|
|
624
641
|
children: /* @__PURE__ */ n(
|
|
625
642
|
"div",
|
|
626
643
|
{
|
|
627
|
-
className:
|
|
628
|
-
[
|
|
644
|
+
className: ue(K.commentsContainer, {
|
|
645
|
+
[K.kebab]: t
|
|
629
646
|
}),
|
|
630
647
|
children: s ? a.slice(-3) : a
|
|
631
648
|
}
|
|
@@ -633,74 +650,71 @@ function In({
|
|
|
633
650
|
}
|
|
634
651
|
) : null;
|
|
635
652
|
}
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
"
|
|
642
|
-
|
|
643
|
-
"menu-heading": "_menu-
|
|
644
|
-
menuHeading:
|
|
645
|
-
"check-icon": "_check-
|
|
646
|
-
checkIcon:
|
|
647
|
-
"trash-icon": "_trash-
|
|
648
|
-
trashIcon:
|
|
649
|
-
"menu-item-label": "_menu-item-
|
|
650
|
-
menuItemLabel:
|
|
651
|
-
"menu-item": "_menu-
|
|
652
|
-
menuItem:
|
|
653
|
-
"menu-back-button": "_menu-back-
|
|
654
|
-
menuBackButton:
|
|
655
|
-
arrow:
|
|
653
|
+
function Vn({ renderOverlay: e }) {
|
|
654
|
+
const t = v();
|
|
655
|
+
return e(t);
|
|
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" }) }), Bn = "_settings-menu_1gbpr_1", On = "_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
|
+
"settings-menu": "_settings-menu_1gbpr_1",
|
|
659
|
+
settingsMenu: Bn,
|
|
660
|
+
"menu-heading": "_menu-heading_1gbpr_37",
|
|
661
|
+
menuHeading: On,
|
|
662
|
+
"check-icon": "_check-icon_1gbpr_48",
|
|
663
|
+
checkIcon: Fn,
|
|
664
|
+
"trash-icon": "_trash-icon_1gbpr_49",
|
|
665
|
+
trashIcon: Dn,
|
|
666
|
+
"menu-item-label": "_menu-item-label_1gbpr_62",
|
|
667
|
+
menuItemLabel: Zn,
|
|
668
|
+
"menu-item": "_menu-item_1gbpr_62",
|
|
669
|
+
menuItem: jn,
|
|
670
|
+
"menu-back-button": "_menu-back-button_1gbpr_99",
|
|
671
|
+
menuBackButton: Kn,
|
|
672
|
+
arrow: zn
|
|
656
673
|
};
|
|
657
|
-
function
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
children: i
|
|
674
|
+
function q({
|
|
675
|
+
noBackButton: e,
|
|
676
|
+
heading: t,
|
|
677
|
+
children: o
|
|
662
678
|
}) {
|
|
663
|
-
const
|
|
664
|
-
return /* @__PURE__ */ r(
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
{
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
}
|
|
691
|
-
);
|
|
679
|
+
const i = $(), { t: s } = h();
|
|
680
|
+
return /* @__PURE__ */ r(X, { children: [
|
|
681
|
+
!e && /* @__PURE__ */ r(
|
|
682
|
+
"button",
|
|
683
|
+
{
|
|
684
|
+
type: "button",
|
|
685
|
+
role: "menuitem",
|
|
686
|
+
tabIndex: -1,
|
|
687
|
+
className: F.menuBackButton,
|
|
688
|
+
onClick: i.back,
|
|
689
|
+
children: [
|
|
690
|
+
/* @__PURE__ */ n(Hn, {}),
|
|
691
|
+
/* @__PURE__ */ n("span", { children: s("BACK") })
|
|
692
|
+
]
|
|
693
|
+
}
|
|
694
|
+
),
|
|
695
|
+
t && /* @__PURE__ */ n(
|
|
696
|
+
"strong",
|
|
697
|
+
{
|
|
698
|
+
role: "presentation",
|
|
699
|
+
id: "menu-heading",
|
|
700
|
+
className: F.menuHeading,
|
|
701
|
+
children: t
|
|
702
|
+
}
|
|
703
|
+
),
|
|
704
|
+
o
|
|
705
|
+
] });
|
|
692
706
|
}
|
|
693
|
-
const
|
|
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", le = {
|
|
694
708
|
"menu-hint": "_menu-hint_1wiu5_1",
|
|
695
|
-
menuHint:
|
|
709
|
+
menuHint: Un,
|
|
696
710
|
"menu-button": "_menu-button_1wiu5_5",
|
|
697
|
-
menuButton:
|
|
711
|
+
menuButton: qn,
|
|
698
712
|
"menu-label": "_menu-label_1wiu5_37",
|
|
699
|
-
menuLabel:
|
|
713
|
+
menuLabel: Gn,
|
|
700
714
|
"menu-icon": "_menu-icon_1wiu5_42",
|
|
701
|
-
menuIcon:
|
|
715
|
+
menuIcon: Qn
|
|
702
716
|
};
|
|
703
|
-
function
|
|
717
|
+
function J({ label: e, hint: t, onClick: o, Icon: i }) {
|
|
704
718
|
return /* @__PURE__ */ r(
|
|
705
719
|
"button",
|
|
706
720
|
{
|
|
@@ -709,32 +723,32 @@ function G({ label: e, hint: t, onClick: o, Icon: i }) {
|
|
|
709
723
|
"aria-haspopup": "true",
|
|
710
724
|
tabIndex: -1,
|
|
711
725
|
onClick: o,
|
|
712
|
-
className:
|
|
726
|
+
className: le.menuButton,
|
|
713
727
|
children: [
|
|
714
|
-
i && /* @__PURE__ */ n(i, { className:
|
|
715
|
-
/* @__PURE__ */ n("span", { className:
|
|
716
|
-
t && /* @__PURE__ */ n("span", { className:
|
|
717
|
-
/* @__PURE__ */ n(
|
|
728
|
+
i && /* @__PURE__ */ n(i, { className: le.menuIcon }),
|
|
729
|
+
/* @__PURE__ */ n("span", { className: le.menuLabel, children: e }),
|
|
730
|
+
t && /* @__PURE__ */ n("span", { className: le.menuHint, children: t }),
|
|
731
|
+
/* @__PURE__ */ n($n, {})
|
|
718
732
|
]
|
|
719
733
|
}
|
|
720
734
|
);
|
|
721
735
|
}
|
|
722
|
-
const
|
|
723
|
-
function
|
|
724
|
-
const e =
|
|
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
|
+
function Yn() {
|
|
738
|
+
const e = $(), t = g("playbackRate"), { t: o } = h(), i = f(() => {
|
|
725
739
|
e.setPage("speed");
|
|
726
740
|
}, [e]);
|
|
727
741
|
return /* @__PURE__ */ n(
|
|
728
|
-
|
|
742
|
+
J,
|
|
729
743
|
{
|
|
730
744
|
label: o("PLAYBACK_SPEED"),
|
|
731
745
|
hint: `${t}x`,
|
|
732
746
|
onClick: i,
|
|
733
|
-
Icon:
|
|
747
|
+
Icon: Wn
|
|
734
748
|
}
|
|
735
749
|
);
|
|
736
750
|
}
|
|
737
|
-
const
|
|
751
|
+
const Xn = (e) => /* @__PURE__ */ r("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
738
752
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ n("rect", { width: 18, height: 18, fill: "white" }) }) }),
|
|
739
753
|
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_412_23039)", children: [
|
|
740
754
|
/* @__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" }),
|
|
@@ -742,49 +756,59 @@ const Wn = (e) => /* @__PURE__ */ r("svg", { width: 18, height: 18, viewBox: "0
|
|
|
742
756
|
/* @__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" })
|
|
743
757
|
] })
|
|
744
758
|
] });
|
|
745
|
-
function
|
|
746
|
-
const
|
|
759
|
+
function tt(e) {
|
|
760
|
+
const { width: t, height: o } = e;
|
|
761
|
+
if (t >= 3800 || o >= 2100)
|
|
762
|
+
return "2160p";
|
|
763
|
+
const i = o > t, s = i ? t : o, a = i ? o : t;
|
|
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
|
+
}
|
|
766
|
+
function Jn() {
|
|
767
|
+
const e = $(), t = g("autoQuality"), o = g("quality"), { t: i } = h(), s = f(() => {
|
|
747
768
|
e.setPage("quality");
|
|
748
769
|
}, [e]);
|
|
749
|
-
|
|
750
|
-
|
|
770
|
+
if (!o)
|
|
771
|
+
return null;
|
|
772
|
+
const a = tt(o);
|
|
773
|
+
return /* @__PURE__ */ n(
|
|
774
|
+
J,
|
|
751
775
|
{
|
|
752
776
|
label: i("QUALITY"),
|
|
753
|
-
hint: t ? i("AUTO", { quality:
|
|
777
|
+
hint: t ? i("AUTO", { quality: a }) : a,
|
|
754
778
|
onClick: s,
|
|
755
|
-
Icon:
|
|
779
|
+
Icon: Xn
|
|
756
780
|
}
|
|
757
|
-
)
|
|
781
|
+
);
|
|
758
782
|
}
|
|
759
|
-
function
|
|
760
|
-
const e =
|
|
783
|
+
function eo() {
|
|
784
|
+
const e = $(), t = g("hasCaptions"), o = g("textTrack"), { t: i } = h(), s = f(() => {
|
|
761
785
|
e.setPage("captions");
|
|
762
786
|
}, [e]);
|
|
763
787
|
return t ? /* @__PURE__ */ n(
|
|
764
|
-
|
|
788
|
+
J,
|
|
765
789
|
{
|
|
766
790
|
label: i("CAPTIONS"),
|
|
767
791
|
hint: (o == null ? void 0 : o.label) ?? i("OFF"),
|
|
768
792
|
onClick: s,
|
|
769
|
-
Icon:
|
|
793
|
+
Icon: Ye
|
|
770
794
|
}
|
|
771
795
|
) : null;
|
|
772
796
|
}
|
|
773
|
-
const
|
|
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", lo = "_switch-label_7nhpo_78", ro = "_menu-icon_7nhpo_82", U = {
|
|
774
798
|
"switch-track": "_switch-track_7nhpo_1",
|
|
775
|
-
switchTrack:
|
|
799
|
+
switchTrack: oo,
|
|
776
800
|
"switch-thumb": "_switch-thumb_7nhpo_17",
|
|
777
|
-
switchThumb:
|
|
801
|
+
switchThumb: io,
|
|
778
802
|
"switch-icon": "_switch-icon_7nhpo_31",
|
|
779
|
-
switchIcon:
|
|
803
|
+
switchIcon: so,
|
|
780
804
|
"switch-body": "_switch-body_7nhpo_37",
|
|
781
|
-
switchBody:
|
|
805
|
+
switchBody: ao,
|
|
782
806
|
"switch-label": "_switch-label_7nhpo_78",
|
|
783
|
-
switchLabel:
|
|
807
|
+
switchLabel: lo,
|
|
784
808
|
"menu-icon": "_menu-icon_7nhpo_82",
|
|
785
|
-
menuIcon:
|
|
809
|
+
menuIcon: ro
|
|
786
810
|
};
|
|
787
|
-
function
|
|
811
|
+
function Te({
|
|
788
812
|
label: e,
|
|
789
813
|
checked: t = !1,
|
|
790
814
|
onClick: o,
|
|
@@ -793,44 +817,43 @@ function Ce({
|
|
|
793
817
|
return /* @__PURE__ */ r(
|
|
794
818
|
"button",
|
|
795
819
|
{
|
|
796
|
-
className:
|
|
797
|
-
role: "
|
|
820
|
+
className: U.switchBody,
|
|
821
|
+
role: "menuitemcheckbox",
|
|
798
822
|
"aria-label": e,
|
|
799
823
|
"aria-checked": t,
|
|
800
824
|
onClick: o,
|
|
801
825
|
tabIndex: -1,
|
|
802
826
|
children: [
|
|
803
|
-
i && /* @__PURE__ */ n(i, { className:
|
|
804
|
-
/* @__PURE__ */ n("span", { className:
|
|
805
|
-
/* @__PURE__ */ n("div", { className:
|
|
827
|
+
i && /* @__PURE__ */ n(i, { className: U.menuIcon }),
|
|
828
|
+
/* @__PURE__ */ n("span", { className: U.switchLabel, children: e }),
|
|
829
|
+
/* @__PURE__ */ n("div", { className: U.switchTrack, children: /* @__PURE__ */ n("div", { className: U.switchThumb, children: t ? /* @__PURE__ */ n(to, { className: U.switchIcon }) : /* @__PURE__ */ n(no, { className: U.switchIcon }) }) })
|
|
806
830
|
]
|
|
807
831
|
}
|
|
808
832
|
);
|
|
809
833
|
}
|
|
810
|
-
const
|
|
811
|
-
function
|
|
812
|
-
const { t: e } =
|
|
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
|
+
function uo() {
|
|
836
|
+
const { t: e } = h(), t = L(), o = v();
|
|
813
837
|
return !t.forceComments && t.hasComments ? /* @__PURE__ */ n(
|
|
814
|
-
|
|
838
|
+
Te,
|
|
815
839
|
{
|
|
816
|
-
Icon:
|
|
840
|
+
Icon: co,
|
|
817
841
|
label: e("COMMENTS"),
|
|
818
842
|
onClick: o.toggleComments,
|
|
819
843
|
checked: o.state.commentsEnabled
|
|
820
844
|
}
|
|
821
845
|
) : null;
|
|
822
846
|
}
|
|
823
|
-
function
|
|
824
|
-
|
|
825
|
-
return /* @__PURE__ */ r(z, { label: e("MAIN_MENU"), noBackButton: !0, children: [
|
|
826
|
-
/* @__PURE__ */ n(Gn, {}),
|
|
847
|
+
function mo() {
|
|
848
|
+
return /* @__PURE__ */ r(q, { noBackButton: !0, children: [
|
|
827
849
|
/* @__PURE__ */ n(Yn, {}),
|
|
828
|
-
/* @__PURE__ */ n(
|
|
829
|
-
/* @__PURE__ */ n(
|
|
850
|
+
/* @__PURE__ */ n(eo, {}),
|
|
851
|
+
/* @__PURE__ */ n(uo, {}),
|
|
852
|
+
/* @__PURE__ */ n(Jn, {})
|
|
830
853
|
] });
|
|
831
854
|
}
|
|
832
|
-
const
|
|
833
|
-
function
|
|
855
|
+
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
|
+
function pe({ selected: e, label: t, onClick: o }) {
|
|
834
857
|
return /* @__PURE__ */ r(
|
|
835
858
|
"button",
|
|
836
859
|
{
|
|
@@ -839,21 +862,21 @@ function se({ selected: e, label: t, onClick: o }) {
|
|
|
839
862
|
"aria-checked": e,
|
|
840
863
|
onClick: o,
|
|
841
864
|
tabIndex: -1,
|
|
842
|
-
className:
|
|
865
|
+
className: F.menuItem,
|
|
843
866
|
children: [
|
|
844
|
-
/* @__PURE__ */ n(
|
|
845
|
-
/* @__PURE__ */ n("span", { className:
|
|
867
|
+
/* @__PURE__ */ n(ho, { className: F.checkIcon }),
|
|
868
|
+
/* @__PURE__ */ n("span", { className: F.menuItemLabel, children: t })
|
|
846
869
|
]
|
|
847
870
|
}
|
|
848
871
|
);
|
|
849
872
|
}
|
|
850
|
-
function
|
|
851
|
-
const e =
|
|
852
|
-
rates:
|
|
873
|
+
function po() {
|
|
874
|
+
const e = bt({
|
|
875
|
+
rates: Y,
|
|
853
876
|
normalLabel: "1x"
|
|
854
|
-
}), { t } =
|
|
855
|
-
return /* @__PURE__ */ n(
|
|
856
|
-
|
|
877
|
+
}), { t } = h();
|
|
878
|
+
return /* @__PURE__ */ n(q, { heading: t("PLAYBACK_SPEED"), children: e.map(({ value: o, label: i, select: s, selected: a }) => /* @__PURE__ */ n(
|
|
879
|
+
pe,
|
|
857
880
|
{
|
|
858
881
|
selected: a,
|
|
859
882
|
onClick: () => s(),
|
|
@@ -862,18 +885,18 @@ function uo() {
|
|
|
862
885
|
o
|
|
863
886
|
)) });
|
|
864
887
|
}
|
|
865
|
-
function
|
|
866
|
-
const e =
|
|
888
|
+
function fo() {
|
|
889
|
+
const e = $(), { t } = h(), o = f(() => {
|
|
867
890
|
e.setPage("captionManage");
|
|
868
891
|
}, [e]);
|
|
869
|
-
return /* @__PURE__ */ n(
|
|
892
|
+
return /* @__PURE__ */ n(J, { label: t("CAPTIONS_MANAGE"), onClick: o });
|
|
870
893
|
}
|
|
871
|
-
function
|
|
872
|
-
const { t: e } =
|
|
894
|
+
function _o() {
|
|
895
|
+
const { t: e } = h(), t = v(), o = $(), i = f(() => {
|
|
873
896
|
o.setPage("captionFontSize");
|
|
874
897
|
}, [o]);
|
|
875
898
|
return /* @__PURE__ */ n(
|
|
876
|
-
|
|
899
|
+
J,
|
|
877
900
|
{
|
|
878
901
|
label: e("CAPTION_FONT_SIZE"),
|
|
879
902
|
hint: `${t.state.captionsFontSizeMultiplier * 100}%`,
|
|
@@ -881,12 +904,12 @@ function ho() {
|
|
|
881
904
|
}
|
|
882
905
|
);
|
|
883
906
|
}
|
|
884
|
-
function
|
|
885
|
-
const e =
|
|
907
|
+
function Co() {
|
|
908
|
+
const e = $(), t = g("textTrack"), { t: o } = h(), { disableCaptionSettings: i } = v(), s = f(() => {
|
|
886
909
|
e.setPage("captionLanguage");
|
|
887
910
|
}, [e]);
|
|
888
911
|
return i ? null : /* @__PURE__ */ n(
|
|
889
|
-
|
|
912
|
+
J,
|
|
890
913
|
{
|
|
891
914
|
label: o("LANGUAGE"),
|
|
892
915
|
hint: (t == null ? void 0 : t.label) ?? o("OFF"),
|
|
@@ -894,10 +917,10 @@ function po() {
|
|
|
894
917
|
}
|
|
895
918
|
);
|
|
896
919
|
}
|
|
897
|
-
function
|
|
898
|
-
const { t: e } =
|
|
920
|
+
function go() {
|
|
921
|
+
const { t: e } = h(), t = v();
|
|
899
922
|
return /* @__PURE__ */ n(
|
|
900
|
-
|
|
923
|
+
Te,
|
|
901
924
|
{
|
|
902
925
|
label: e("ON_TOP"),
|
|
903
926
|
onClick: t.toggleCaptionPositionOnTop,
|
|
@@ -905,10 +928,10 @@ function _o() {
|
|
|
905
928
|
}
|
|
906
929
|
);
|
|
907
930
|
}
|
|
908
|
-
function
|
|
909
|
-
const { t: e } =
|
|
931
|
+
function bo() {
|
|
932
|
+
const { t: e } = h(), t = v();
|
|
910
933
|
return /* @__PURE__ */ n(
|
|
911
|
-
|
|
934
|
+
Te,
|
|
912
935
|
{
|
|
913
936
|
label: e("INVERT_COLORS"),
|
|
914
937
|
onClick: t.toggleCaptionsInvertColors,
|
|
@@ -916,20 +939,20 @@ function fo() {
|
|
|
916
939
|
}
|
|
917
940
|
);
|
|
918
941
|
}
|
|
919
|
-
function
|
|
920
|
-
const e = L(), { t } =
|
|
921
|
-
return /* @__PURE__ */ r(
|
|
922
|
-
/* @__PURE__ */ n(
|
|
923
|
-
/* @__PURE__ */ n(ho, {}),
|
|
942
|
+
function vo() {
|
|
943
|
+
const e = L(), { t } = h();
|
|
944
|
+
return /* @__PURE__ */ r(q, { heading: t("CAPTIONS"), children: [
|
|
945
|
+
/* @__PURE__ */ n(Co, {}),
|
|
924
946
|
/* @__PURE__ */ n(_o, {}),
|
|
925
|
-
/* @__PURE__ */ n(
|
|
926
|
-
|
|
947
|
+
/* @__PURE__ */ n(go, {}),
|
|
948
|
+
/* @__PURE__ */ n(bo, {}),
|
|
949
|
+
e.onCaptionsDelete && /* @__PURE__ */ n(fo, {})
|
|
927
950
|
] });
|
|
928
951
|
}
|
|
929
|
-
function
|
|
930
|
-
const e =
|
|
931
|
-
return /* @__PURE__ */ n(
|
|
932
|
-
|
|
952
|
+
function wo() {
|
|
953
|
+
const e = vt(), { t } = h();
|
|
954
|
+
return /* @__PURE__ */ n(q, { heading: t("CAPTIONS_LANGUAGE"), children: e.map(({ value: o, label: i, select: s, selected: a }) => /* @__PURE__ */ n(
|
|
955
|
+
pe,
|
|
933
956
|
{
|
|
934
957
|
selected: a,
|
|
935
958
|
onClick: () => s(),
|
|
@@ -938,10 +961,10 @@ function bo() {
|
|
|
938
961
|
o
|
|
939
962
|
)) });
|
|
940
963
|
}
|
|
941
|
-
function
|
|
942
|
-
const e =
|
|
943
|
-
return /* @__PURE__ */ n(
|
|
944
|
-
|
|
964
|
+
function yo() {
|
|
965
|
+
const e = v(), { t } = h();
|
|
966
|
+
return /* @__PURE__ */ n(q, { heading: t("CAPTION_FONT_SIZE"), children: bn.map((o) => /* @__PURE__ */ n(
|
|
967
|
+
pe,
|
|
945
968
|
{
|
|
946
969
|
selected: o === e.state.captionsFontSizeMultiplier,
|
|
947
970
|
onClick: () => {
|
|
@@ -952,19 +975,19 @@ function go() {
|
|
|
952
975
|
o
|
|
953
976
|
)) });
|
|
954
977
|
}
|
|
955
|
-
const
|
|
956
|
-
const e =
|
|
978
|
+
const $ = () => {
|
|
979
|
+
const e = ye(nt);
|
|
957
980
|
if (!e)
|
|
958
981
|
throw new Error(
|
|
959
982
|
"useCustomSettingsMenuContext must be used within a CustomSettingsMenuContext.Provider"
|
|
960
983
|
);
|
|
961
984
|
return e;
|
|
962
985
|
};
|
|
963
|
-
function
|
|
964
|
-
const e =
|
|
965
|
-
return
|
|
986
|
+
function ko() {
|
|
987
|
+
const e = $(), t = L(), { t: o } = h();
|
|
988
|
+
return Z(() => {
|
|
966
989
|
t.captions.length === 0 && e.backToMain();
|
|
967
|
-
}, [t.captions]), /* @__PURE__ */ n(
|
|
990
|
+
}, [t.captions]), /* @__PURE__ */ n(q, { heading: o("CAPTIONS_MANAGE"), children: t.captions.map((i) => /* @__PURE__ */ r(
|
|
968
991
|
"button",
|
|
969
992
|
{
|
|
970
993
|
type: "button",
|
|
@@ -974,122 +997,79 @@ function vo() {
|
|
|
974
997
|
(s = t.onCaptionsDelete) == null || s.call(t, i);
|
|
975
998
|
},
|
|
976
999
|
tabIndex: -1,
|
|
977
|
-
className:
|
|
1000
|
+
className: F.menuItem,
|
|
978
1001
|
children: [
|
|
979
|
-
/* @__PURE__ */ n(
|
|
980
|
-
/* @__PURE__ */ n("span", { className:
|
|
1002
|
+
/* @__PURE__ */ n(We, { className: F.trashIcon }),
|
|
1003
|
+
/* @__PURE__ */ n("span", { className: F.menuItemLabel, children: o("CAPTION_DELETE", { language: i.label }) })
|
|
981
1004
|
]
|
|
982
1005
|
},
|
|
983
1006
|
i.language
|
|
984
1007
|
)) });
|
|
985
1008
|
}
|
|
986
|
-
function
|
|
987
|
-
const e =
|
|
988
|
-
return /* @__PURE__ */ n(
|
|
989
|
-
|
|
1009
|
+
function Lo() {
|
|
1010
|
+
const e = g("autoQuality"), t = wt({ sort: "descending" }), { t: o } = h();
|
|
1011
|
+
return /* @__PURE__ */ n(q, { heading: o("QUALITY"), children: t.map(({ value: i, select: s, selected: a, label: l, quality: c }) => /* @__PURE__ */ n(
|
|
1012
|
+
pe,
|
|
990
1013
|
{
|
|
991
|
-
selected: i === "auto" &&
|
|
992
|
-
onClick: () =>
|
|
993
|
-
label:
|
|
1014
|
+
selected: i === "auto" && e || a && !e,
|
|
1015
|
+
onClick: () => s(),
|
|
1016
|
+
label: c ? tt(c) : l
|
|
994
1017
|
},
|
|
995
1018
|
i
|
|
996
1019
|
)) });
|
|
997
1020
|
}
|
|
998
|
-
|
|
999
|
-
main: ro,
|
|
1000
|
-
speed: uo,
|
|
1001
|
-
captions: Co,
|
|
1002
|
-
captionLanguage: bo,
|
|
1003
|
-
captionFontSize: go,
|
|
1004
|
-
captionManage: vo,
|
|
1005
|
-
quality: wo
|
|
1006
|
-
}, yo = {
|
|
1007
|
-
name: "middleware",
|
|
1008
|
-
async fn(e) {
|
|
1009
|
-
const t = await Nt(e);
|
|
1010
|
-
return {
|
|
1011
|
-
x: e.x - t.right - 4,
|
|
1012
|
-
y: e.y - 4
|
|
1013
|
-
};
|
|
1014
|
-
}
|
|
1015
|
-
};
|
|
1016
|
-
function Lo() {
|
|
1017
|
-
const e = g(), [t, o] = x(["main"]), [i, s] = x(!1), a = p(() => {
|
|
1018
|
-
s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
|
|
1019
|
-
}, [i]), l = p((k) => {
|
|
1020
|
-
o((I) => I.concat(k));
|
|
1021
|
-
}, []), c = p(() => {
|
|
1022
|
-
o((k) => k.length > 1 ? k.slice(0, -1) : k);
|
|
1023
|
-
}, []), u = p(() => {
|
|
1024
|
-
o(["main"]);
|
|
1025
|
-
}, []), d = A(() => ko[t[t.length - 1]], [t]), { refs: f, floatingStyles: v, context: w } = de({
|
|
1026
|
-
open: i,
|
|
1027
|
-
onOpenChange: a,
|
|
1028
|
-
placement: "top-end",
|
|
1029
|
-
whileElementsMounted: me,
|
|
1030
|
-
middleware: [yo]
|
|
1031
|
-
}), y = he(w, { escapeKey: !1 }), { getReferenceProps: N, getFloatingProps: h } = pe([y]), C = A(
|
|
1032
|
-
() => ({ setPage: l, back: c, backToMain: u, toggle: a }),
|
|
1033
|
-
[l, c, u, a]
|
|
1034
|
-
);
|
|
1035
|
-
return {
|
|
1036
|
-
Page: d,
|
|
1037
|
-
open: i,
|
|
1038
|
-
refs: f,
|
|
1039
|
-
floatingStyles: v,
|
|
1040
|
-
context: w,
|
|
1041
|
-
getReferenceProps() {
|
|
1042
|
-
return {
|
|
1043
|
-
...N(),
|
|
1044
|
-
tabIndex: e.state.interactionsDisabled ? -1 : 0
|
|
1045
|
-
};
|
|
1046
|
-
},
|
|
1047
|
-
getFloatingProps: h,
|
|
1048
|
-
contextValue: C
|
|
1049
|
-
};
|
|
1050
|
-
}
|
|
1051
|
-
function Mo(e, t) {
|
|
1021
|
+
function xo(e, t) {
|
|
1052
1022
|
const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(t);
|
|
1053
1023
|
return o[i - 1] ?? null;
|
|
1054
1024
|
}
|
|
1055
|
-
function
|
|
1025
|
+
function Mo(e, t) {
|
|
1056
1026
|
const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(t);
|
|
1057
1027
|
return o[i + 1] ?? null;
|
|
1058
1028
|
}
|
|
1059
|
-
function
|
|
1029
|
+
function Be(e) {
|
|
1060
1030
|
return e.querySelector("button");
|
|
1061
1031
|
}
|
|
1062
|
-
function
|
|
1032
|
+
function Oe(e) {
|
|
1063
1033
|
const t = Array.from(e.querySelectorAll("button"));
|
|
1064
1034
|
return t[t.length - 1] ?? null;
|
|
1065
1035
|
}
|
|
1066
|
-
function
|
|
1067
|
-
const
|
|
1036
|
+
function Po(e) {
|
|
1037
|
+
const t = z(null), o = D(
|
|
1068
1038
|
() => ({
|
|
1069
1039
|
Escape: e.toggle,
|
|
1070
1040
|
ArrowUp: () => {
|
|
1071
1041
|
const i = document.activeElement;
|
|
1072
1042
|
if (i && t.current && t.current.contains(i)) {
|
|
1073
|
-
const s =
|
|
1043
|
+
const s = xo(
|
|
1074
1044
|
t.current,
|
|
1075
1045
|
i
|
|
1076
1046
|
);
|
|
1077
|
-
|
|
1047
|
+
if (s)
|
|
1048
|
+
s.focus();
|
|
1049
|
+
else {
|
|
1050
|
+
const a = Oe(t.current);
|
|
1051
|
+
a == null || a.focus();
|
|
1052
|
+
}
|
|
1078
1053
|
} else if (t.current) {
|
|
1079
|
-
const s =
|
|
1054
|
+
const s = Oe(t.current);
|
|
1080
1055
|
s == null || s.focus();
|
|
1081
1056
|
}
|
|
1082
1057
|
},
|
|
1083
1058
|
ArrowDown: () => {
|
|
1084
1059
|
const i = document.activeElement;
|
|
1085
1060
|
if (i && t.current && t.current.contains(i)) {
|
|
1086
|
-
const s =
|
|
1061
|
+
const s = Mo(
|
|
1087
1062
|
t.current,
|
|
1088
1063
|
i
|
|
1089
1064
|
);
|
|
1090
|
-
|
|
1065
|
+
if (s)
|
|
1066
|
+
s.focus();
|
|
1067
|
+
else {
|
|
1068
|
+
const a = Be(t.current);
|
|
1069
|
+
a == null || a.focus();
|
|
1070
|
+
}
|
|
1091
1071
|
} else if (t.current) {
|
|
1092
|
-
const s =
|
|
1072
|
+
const s = Be(t.current);
|
|
1093
1073
|
s == null || s.focus();
|
|
1094
1074
|
}
|
|
1095
1075
|
},
|
|
@@ -1101,9 +1081,63 @@ function Io() {
|
|
|
1101
1081
|
}),
|
|
1102
1082
|
[e]
|
|
1103
1083
|
);
|
|
1104
|
-
return
|
|
1084
|
+
return Ee(o, !0), t;
|
|
1085
|
+
}
|
|
1086
|
+
const nt = we(null), No = {
|
|
1087
|
+
main: mo,
|
|
1088
|
+
speed: po,
|
|
1089
|
+
captions: vo,
|
|
1090
|
+
captionLanguage: wo,
|
|
1091
|
+
captionFontSize: yo,
|
|
1092
|
+
captionManage: ko,
|
|
1093
|
+
quality: Lo
|
|
1094
|
+
}, Io = {
|
|
1095
|
+
name: "middleware",
|
|
1096
|
+
async fn(e) {
|
|
1097
|
+
const t = await St(e);
|
|
1098
|
+
return {
|
|
1099
|
+
x: e.x - t.right - 4,
|
|
1100
|
+
y: e.y - 4
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
};
|
|
1104
|
+
function Eo() {
|
|
1105
|
+
const e = v(), [t, o] = k(["main"]), [i, s] = k(!1), a = f(() => {
|
|
1106
|
+
s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
|
|
1107
|
+
}, [i]), l = f((P) => {
|
|
1108
|
+
o((I) => I.concat(P));
|
|
1109
|
+
}, []), c = f(() => {
|
|
1110
|
+
o((P) => P.length > 1 ? P.slice(0, -1) : P);
|
|
1111
|
+
}, []), u = f(() => {
|
|
1112
|
+
o(["main"]);
|
|
1113
|
+
}, []), d = D(() => No[t[t.length - 1]], [t]), { refs: _, floatingStyles: b, context: w } = me({
|
|
1114
|
+
open: i,
|
|
1115
|
+
onOpenChange: a,
|
|
1116
|
+
placement: "top-end",
|
|
1117
|
+
whileElementsMounted: he,
|
|
1118
|
+
middleware: [Io]
|
|
1119
|
+
}), y = Me(w, { escapeKey: !1 }), { getReferenceProps: x, getFloatingProps: p } = Pe([y]), C = D(
|
|
1120
|
+
() => ({ setPage: l, back: c, backToMain: u, toggle: a }),
|
|
1121
|
+
[l, c, u, a]
|
|
1122
|
+
), H = Po(C), E = $e([_.setFloating, H]);
|
|
1123
|
+
return {
|
|
1124
|
+
Page: d,
|
|
1125
|
+
open: i,
|
|
1126
|
+
floatingRef: E,
|
|
1127
|
+
referenceRef: _.setReference,
|
|
1128
|
+
floatingStyles: b,
|
|
1129
|
+
context: w,
|
|
1130
|
+
getReferenceProps() {
|
|
1131
|
+
return {
|
|
1132
|
+
...x(),
|
|
1133
|
+
tabIndex: e.state.interactionsDisabled ? -1 : 0
|
|
1134
|
+
};
|
|
1135
|
+
},
|
|
1136
|
+
getFloatingProps: p,
|
|
1137
|
+
contextValue: C
|
|
1138
|
+
};
|
|
1105
1139
|
}
|
|
1106
|
-
function
|
|
1140
|
+
function To() {
|
|
1107
1141
|
const {
|
|
1108
1142
|
Page: e,
|
|
1109
1143
|
context: t,
|
|
@@ -1111,40 +1145,53 @@ function So() {
|
|
|
1111
1145
|
getFloatingProps: i,
|
|
1112
1146
|
getReferenceProps: s,
|
|
1113
1147
|
open: a,
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1148
|
+
floatingRef: l,
|
|
1149
|
+
referenceRef: c,
|
|
1150
|
+
contextValue: u
|
|
1151
|
+
} = Eo(), { t: d } = h();
|
|
1117
1152
|
return /* @__PURE__ */ r(X, { children: [
|
|
1118
1153
|
/* @__PURE__ */ n(
|
|
1119
1154
|
"button",
|
|
1120
1155
|
{
|
|
1121
|
-
ref:
|
|
1156
|
+
ref: c,
|
|
1122
1157
|
type: "button",
|
|
1123
1158
|
className: "controls-button",
|
|
1124
|
-
"aria-label":
|
|
1125
|
-
onClick:
|
|
1159
|
+
"aria-label": d("SETTINGS"),
|
|
1160
|
+
onClick: u.toggle,
|
|
1126
1161
|
"aria-expanded": a,
|
|
1162
|
+
"aria-haspopup": "true",
|
|
1127
1163
|
...s(),
|
|
1128
|
-
children: /* @__PURE__ */ n(
|
|
1164
|
+
children: /* @__PURE__ */ n(Rn, { className: "controls-button-icon icon-rotate" })
|
|
1129
1165
|
}
|
|
1130
1166
|
),
|
|
1131
|
-
a && /* @__PURE__ */ n(
|
|
1132
|
-
|
|
1167
|
+
a && /* @__PURE__ */ n(
|
|
1168
|
+
Ne,
|
|
1133
1169
|
{
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1170
|
+
context: t,
|
|
1171
|
+
restoreFocus: !0,
|
|
1172
|
+
guards: !1,
|
|
1173
|
+
initialFocus: -1,
|
|
1174
|
+
children: /* @__PURE__ */ n(
|
|
1175
|
+
"div",
|
|
1176
|
+
{
|
|
1177
|
+
role: "menu",
|
|
1178
|
+
"aria-label": d("VIDEO_SETTINGS"),
|
|
1179
|
+
"aria-labelledby": "menu-heading",
|
|
1180
|
+
className: F.settingsMenu,
|
|
1181
|
+
ref: l,
|
|
1182
|
+
style: o,
|
|
1183
|
+
...i(),
|
|
1184
|
+
children: /* @__PURE__ */ n(nt.Provider, { value: u, children: /* @__PURE__ */ n(e, {}) })
|
|
1185
|
+
}
|
|
1186
|
+
)
|
|
1140
1187
|
}
|
|
1141
|
-
)
|
|
1188
|
+
)
|
|
1142
1189
|
] });
|
|
1143
1190
|
}
|
|
1144
|
-
function
|
|
1191
|
+
function ot(e, t = 1e3) {
|
|
1145
1192
|
return function() {
|
|
1146
|
-
const i =
|
|
1147
|
-
return
|
|
1193
|
+
const i = S(), [s, a] = k(null), l = f(() => a(null), []);
|
|
1194
|
+
return Z(() => {
|
|
1148
1195
|
if (!i)
|
|
1149
1196
|
return () => {
|
|
1150
1197
|
};
|
|
@@ -1154,8 +1201,8 @@ function Ge(e, t = 1e3) {
|
|
|
1154
1201
|
"keyboardAction",
|
|
1155
1202
|
(d) => {
|
|
1156
1203
|
clearTimeout(u);
|
|
1157
|
-
const
|
|
1158
|
-
a(/* @__PURE__ */ n(e, { action:
|
|
1204
|
+
const _ = d.detail;
|
|
1205
|
+
a(/* @__PURE__ */ n(e, { action: _ })), u = setTimeout(l, t);
|
|
1159
1206
|
},
|
|
1160
1207
|
{ signal: c.signal }
|
|
1161
1208
|
), () => {
|
|
@@ -1164,75 +1211,75 @@ function Ge(e, t = 1e3) {
|
|
|
1164
1211
|
}, [t]), s;
|
|
1165
1212
|
};
|
|
1166
1213
|
}
|
|
1167
|
-
const
|
|
1214
|
+
const 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 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), Se = (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" }) }), 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: "M10.691 3.99987V10.5281L0 4.00655V20.2596L10.691 13.7367V20.2663L23.9987 12.1331L10.691 3.99987Z", fill: "currentColor" }) }), So = (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", Bo = "_feedback-icon-animation_3kkqe_1", N = {
|
|
1168
1215
|
"feedback-overlay": "_feedback-overlay_3kkqe_1",
|
|
1169
|
-
feedbackOverlay:
|
|
1216
|
+
feedbackOverlay: Vo,
|
|
1170
1217
|
"feedback-message": "_feedback-message_3kkqe_14",
|
|
1171
|
-
feedbackMessage:
|
|
1218
|
+
feedbackMessage: Ro,
|
|
1172
1219
|
"feedback-icon": "_feedback-icon_3kkqe_30",
|
|
1173
|
-
feedbackIcon:
|
|
1220
|
+
feedbackIcon: Ho,
|
|
1174
1221
|
"feedback-icon-animation": "_feedback-icon-animation_3kkqe_1",
|
|
1175
|
-
feedbackIconAnimation:
|
|
1222
|
+
feedbackIconAnimation: Bo
|
|
1176
1223
|
};
|
|
1177
|
-
function
|
|
1178
|
-
const t =
|
|
1224
|
+
function Oo({ action: e }) {
|
|
1225
|
+
const t = S();
|
|
1179
1226
|
if (!t)
|
|
1180
1227
|
return null;
|
|
1181
1228
|
switch (e) {
|
|
1182
1229
|
case "togglePaused":
|
|
1183
|
-
return /* @__PURE__ */ n("i", { className:
|
|
1230
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: t.paused ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n(Se, {}) });
|
|
1184
1231
|
case "seekForward":
|
|
1185
1232
|
case "seekForward10":
|
|
1186
|
-
return /* @__PURE__ */ n("i", { className:
|
|
1233
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(Ao, { className: "right" }) });
|
|
1187
1234
|
case "seekBackward":
|
|
1188
1235
|
case "seekBackward10":
|
|
1189
|
-
return /* @__PURE__ */ n("i", { className:
|
|
1236
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(So, { className: "left" }) });
|
|
1190
1237
|
case "captionsChange":
|
|
1191
|
-
return /* @__PURE__ */ n("i", { className:
|
|
1238
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(Xe, {}) });
|
|
1192
1239
|
case "volumeChange":
|
|
1193
|
-
return /* @__PURE__ */ n("i", { className:
|
|
1240
|
+
return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: t.muted || t.volume === 0 ? /* @__PURE__ */ n(it, {}) : t.volume >= 0.5 ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(st, {}) });
|
|
1194
1241
|
default:
|
|
1195
1242
|
return null;
|
|
1196
1243
|
}
|
|
1197
1244
|
}
|
|
1198
|
-
function
|
|
1199
|
-
const { t } =
|
|
1245
|
+
function Fo({ action: e }) {
|
|
1246
|
+
const { t } = h(), o = S();
|
|
1200
1247
|
if (!o)
|
|
1201
1248
|
return null;
|
|
1202
1249
|
switch (e) {
|
|
1203
1250
|
case "captionsChange":
|
|
1204
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1251
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: o.textTracks.selected ? t("CAPTION_LANGUAGE", {
|
|
1205
1252
|
language: o.textTracks.selected.label
|
|
1206
1253
|
}) : `${t("CAPTIONS")}: ${t("OFF")}` });
|
|
1207
1254
|
case "volumeChange":
|
|
1208
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1255
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: o.muted || o.volume === 0 ? t("MUTED") : t("VOLUME_VALUE", { volume: (o.volume * 100).toFixed(0) }) });
|
|
1209
1256
|
case "playbackRateChange":
|
|
1210
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1257
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("PLAYBACK_SPEED_MESSAGE", { speed: o.playbackRate }) });
|
|
1211
1258
|
case "seekForward":
|
|
1212
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1259
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("SEEK_FORWARD", { seconds: 5 }) });
|
|
1213
1260
|
case "seekForward10":
|
|
1214
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1261
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("SEEK_FORWARD", { seconds: 10 }) });
|
|
1215
1262
|
case "seekBackward":
|
|
1216
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1263
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("SEEK_BACKWARD", { seconds: 5 }) });
|
|
1217
1264
|
case "seekBackward10":
|
|
1218
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1265
|
+
return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("SEEK_BACKWARD", { seconds: 10 }) });
|
|
1219
1266
|
default:
|
|
1220
1267
|
return null;
|
|
1221
1268
|
}
|
|
1222
1269
|
}
|
|
1223
|
-
const
|
|
1224
|
-
function
|
|
1225
|
-
return /* @__PURE__ */ r("div", { className:
|
|
1226
|
-
/* @__PURE__ */ n(
|
|
1270
|
+
const Do = ot(Oo, 300), Zo = ot(Fo, 1e3);
|
|
1271
|
+
function lt() {
|
|
1272
|
+
return /* @__PURE__ */ r("div", { className: N.feedbackOverlay, children: [
|
|
1273
|
+
/* @__PURE__ */ n(Do, {}),
|
|
1227
1274
|
/* @__PURE__ */ n(Zo, {})
|
|
1228
1275
|
] });
|
|
1229
1276
|
}
|
|
1230
|
-
const
|
|
1277
|
+
const jo = (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.1383 0.999867V3.66268H18.4561L3.66281 18.4546V14.1382H1V23H9.86449V20.3372H5.54542L20.3387 5.54528V9.86303H23.0001V0.999867H14.1383Z", fill: "currentColor" }) }), Ko = (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: "M15.562 6.58944L22.1514 0L24.0005 1.84907L17.4111 8.43851H21.6506V11.0552H12.9453V2.34861H15.562V6.58944ZM2.34861 15.5615V12.9461H11.0539V21.6501H8.43982V17.4106L1.84907 24L0 22.1509L6.59075 15.5615H2.34861Z", fill: "currentColor" }) }), zo = "_full-screen-button_1xm32_2", $o = {
|
|
1231
1278
|
"full-screen-button": "_full-screen-button_1xm32_2",
|
|
1232
|
-
fullScreenButton:
|
|
1279
|
+
fullScreenButton: zo
|
|
1233
1280
|
};
|
|
1234
1281
|
function Uo() {
|
|
1235
|
-
const e =
|
|
1282
|
+
const e = g("fullscreen"), t = S(), o = v(), i = L(), { t: s } = h();
|
|
1236
1283
|
return i.hideFullScreen ? null : /* @__PURE__ */ n(
|
|
1237
1284
|
"button",
|
|
1238
1285
|
{
|
|
@@ -1240,133 +1287,156 @@ function Uo() {
|
|
|
1240
1287
|
type: "button",
|
|
1241
1288
|
"aria-label": s(e ? "EXIT_FULLSCREEN" : "ENTER_FULLSCREEN"),
|
|
1242
1289
|
tabIndex: o.state.interactionsDisabled ? -1 : 0,
|
|
1243
|
-
className: `controls-button ${
|
|
1290
|
+
className: `controls-button ${$o.fullScreenButton}`,
|
|
1244
1291
|
onClick: () => {
|
|
1245
1292
|
e ? t == null || t.exitFullscreen() : t == null || t.enterFullscreen();
|
|
1246
1293
|
},
|
|
1247
|
-
children: e ? /* @__PURE__ */ n(
|
|
1294
|
+
children: e ? /* @__PURE__ */ n(Ko, { className: "controls-button-icon" }) : /* @__PURE__ */ n(jo, { className: "controls-button-icon" })
|
|
1248
1295
|
}
|
|
1249
1296
|
);
|
|
1250
1297
|
}
|
|
1251
|
-
const
|
|
1298
|
+
const qo = "_gestures-container_1fn3b_1", Go = "_gesture_1fn3b_1", Fe = {
|
|
1252
1299
|
"gestures-container": "_gestures-container_1fn3b_1",
|
|
1253
|
-
gesturesContainer:
|
|
1254
|
-
gesture:
|
|
1300
|
+
gesturesContainer: qo,
|
|
1301
|
+
gesture: Go
|
|
1255
1302
|
};
|
|
1256
|
-
function
|
|
1257
|
-
const e =
|
|
1303
|
+
function Qo() {
|
|
1304
|
+
const e = de(), t = () => {
|
|
1258
1305
|
e.togglePaused();
|
|
1259
1306
|
};
|
|
1260
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1307
|
+
return /* @__PURE__ */ n("div", { className: Fe.gesturesContainer, children: /* @__PURE__ */ n("div", { "aria-hidden": !0, className: Fe.gesture, onClick: t }) });
|
|
1261
1308
|
}
|
|
1262
|
-
const Wo = "_play-pause-button_1834v_1",
|
|
1309
|
+
const Wo = (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: "M12 0V2.66667C17.1453 2.66667 21.3333 6.85333 21.3333 12C21.3333 17.1467 17.1453 21.3333 12 21.3333C6.85467 21.3333 2.66667 17.1467 2.66667 12C2.66667 9.53733 3.64667 7.21867 5.33333 5.49067V8.66667H8V1.33333H0.666667V4H3.05467C1.108 6.176 0 9.012 0 12C0 18.616 5.38267 24 12 24C18.6173 24 24 18.616 24 12C24 5.384 18.6173 0 12 0Z", fill: "currentColor" }) }), Yo = "_play-pause-button_1834v_1", Xo = {
|
|
1263
1310
|
"play-pause-button": "_play-pause-button_1834v_1",
|
|
1264
|
-
playPauseButton:
|
|
1311
|
+
playPauseButton: Yo
|
|
1265
1312
|
};
|
|
1266
|
-
function
|
|
1267
|
-
|
|
1313
|
+
function Jo(e, t) {
|
|
1314
|
+
return t ? Wo : e ? Se : Ae;
|
|
1315
|
+
}
|
|
1316
|
+
function e1(e, t) {
|
|
1317
|
+
return t ? "REPLAY" : e ? "PLAY" : "PAUSE";
|
|
1318
|
+
}
|
|
1319
|
+
function t1() {
|
|
1320
|
+
const e = S(), t = v(), o = g("paused"), i = g("ended"), { t: s } = h(), a = Jo(o, i);
|
|
1268
1321
|
return e ? /* @__PURE__ */ n(
|
|
1269
1322
|
"button",
|
|
1270
1323
|
{
|
|
1271
1324
|
role: "button",
|
|
1272
1325
|
type: "button",
|
|
1273
|
-
className: `controls-button ${
|
|
1274
|
-
"aria-label":
|
|
1326
|
+
className: `controls-button ${Xo.playPauseButton}`,
|
|
1327
|
+
"aria-label": s(e1(o, i)),
|
|
1275
1328
|
tabIndex: t.state.interactionsDisabled ? -1 : 0,
|
|
1276
1329
|
onClick: () => {
|
|
1277
1330
|
e.paused ? e.remoteControl.play() : e.remoteControl.pause();
|
|
1278
1331
|
},
|
|
1279
|
-
children:
|
|
1332
|
+
children: /* @__PURE__ */ n(a, { className: "controls-button-icon" })
|
|
1280
1333
|
}
|
|
1281
1334
|
) : null;
|
|
1282
1335
|
}
|
|
1283
|
-
const
|
|
1284
|
-
poster:
|
|
1336
|
+
const n1 = "_poster_195hi_1", o1 = {
|
|
1337
|
+
poster: n1
|
|
1285
1338
|
};
|
|
1286
|
-
function
|
|
1287
|
-
const
|
|
1288
|
-
return
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1339
|
+
function i1({ src: e, title: t }) {
|
|
1340
|
+
const o = g("source"), { t: i } = h();
|
|
1341
|
+
return o.type === "video/youtube" || o.type === "video/vimeo" ? null : /* @__PURE__ */ n(
|
|
1342
|
+
yt,
|
|
1343
|
+
{
|
|
1344
|
+
src: e,
|
|
1345
|
+
className: o1.poster,
|
|
1346
|
+
alt: i("POSTER_ALT", { title: t })
|
|
1347
|
+
}
|
|
1348
|
+
);
|
|
1349
|
+
}
|
|
1350
|
+
const s1 = "_small-layout-overlay_4hkng_1", a1 = "_small-layout-button_4hkng_14", l1 = "_small-layout-icon-play_4hkng_24", r1 = "_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
|
+
"small-layout-overlay": "_small-layout-overlay_4hkng_1",
|
|
1352
|
+
smallLayoutOverlay: s1,
|
|
1353
|
+
"small-layout-button": "_small-layout-button_4hkng_14",
|
|
1354
|
+
smallLayoutButton: a1,
|
|
1355
|
+
"small-layout-icon-play": "_small-layout-icon-play_4hkng_24",
|
|
1356
|
+
smallLayoutIconPlay: l1,
|
|
1357
|
+
"small-layout-icon-pause": "_small-layout-icon-pause_4hkng_30",
|
|
1358
|
+
smallLayoutIconPause: r1,
|
|
1359
|
+
"small-layout-timestamp": "_small-layout-timestamp_4hkng_36",
|
|
1360
|
+
smallLayoutTimestamp: c1,
|
|
1361
|
+
"full-screen-close-icon": "_full-screen-close-icon_4hkng_49",
|
|
1362
|
+
fullScreenCloseIcon: u1,
|
|
1363
|
+
"fade-out": "_fade-out_4hkng_1",
|
|
1364
|
+
fadeOut: d1
|
|
1303
1365
|
};
|
|
1304
|
-
function
|
|
1305
|
-
const e =
|
|
1366
|
+
function m1() {
|
|
1367
|
+
const e = g("paused");
|
|
1306
1368
|
return /* @__PURE__ */ r("div", { className: Q.smallLayoutOverlay, children: [
|
|
1307
|
-
/* @__PURE__ */ n(
|
|
1308
|
-
/* @__PURE__ */ n("i", { className: Q.smallLayoutButton, children: e ? /* @__PURE__ */ n(
|
|
1369
|
+
/* @__PURE__ */ n(kt, { className: Q.fullScreenCloseIcon, children: /* @__PURE__ */ n(Qe, {}) }),
|
|
1370
|
+
/* @__PURE__ */ n("i", { className: Q.smallLayoutButton, children: e ? /* @__PURE__ */ n(Se, { className: Q.smallLayoutIconPlay }) : /* @__PURE__ */ n(Ae, { className: Q.smallLayoutIconPause }) }),
|
|
1371
|
+
/* @__PURE__ */ r("div", { className: Q.smallLayoutTimestamp, children: [
|
|
1372
|
+
/* @__PURE__ */ n(ce, { type: "current" }),
|
|
1373
|
+
"/",
|
|
1374
|
+
/* @__PURE__ */ n(ce, { type: "duration" })
|
|
1375
|
+
] })
|
|
1309
1376
|
] });
|
|
1310
1377
|
}
|
|
1311
|
-
const
|
|
1378
|
+
const h1 = "_time-indicator_1uygf_1", p1 = {
|
|
1312
1379
|
"time-indicator": "_time-indicator_1uygf_1",
|
|
1313
|
-
timeIndicator:
|
|
1380
|
+
timeIndicator: h1
|
|
1314
1381
|
};
|
|
1315
|
-
function
|
|
1316
|
-
return /* @__PURE__ */ r("div", { className:
|
|
1317
|
-
/* @__PURE__ */ n(
|
|
1382
|
+
function f1() {
|
|
1383
|
+
return /* @__PURE__ */ r("div", { className: p1.timeIndicator, children: [
|
|
1384
|
+
/* @__PURE__ */ n(ce, { type: "current" }),
|
|
1318
1385
|
"/",
|
|
1319
|
-
/* @__PURE__ */ n(
|
|
1386
|
+
/* @__PURE__ */ n(ce, { type: "duration" })
|
|
1320
1387
|
] });
|
|
1321
1388
|
}
|
|
1322
|
-
const
|
|
1323
|
-
"comment-markers": "_comment-
|
|
1324
|
-
commentMarkers:
|
|
1325
|
-
"comment-marker": "_comment-
|
|
1326
|
-
commentMarker:
|
|
1327
|
-
"timeline-wrapper": "_timeline-
|
|
1328
|
-
timelineWrapper:
|
|
1329
|
-
"timeline-wrapper-compact": "_timeline-wrapper-
|
|
1330
|
-
timelineWrapperCompact:
|
|
1331
|
-
track:
|
|
1332
|
-
thumb:
|
|
1333
|
-
root:
|
|
1334
|
-
"track-inner": "_track-
|
|
1335
|
-
trackInner:
|
|
1336
|
-
progress:
|
|
1337
|
-
"track-fill": "_track-
|
|
1338
|
-
trackFill:
|
|
1339
|
-
pins:
|
|
1340
|
-
"pin-button": "_pin-
|
|
1341
|
-
pinButton:
|
|
1342
|
-
"annotation-pin": "_annotation-
|
|
1343
|
-
annotationPin:
|
|
1344
|
-
"quiz-pin": "_quiz-
|
|
1345
|
-
quizPin:
|
|
1346
|
-
"annotation-pin-child": "_annotation-pin-
|
|
1347
|
-
annotationPinChild:
|
|
1348
|
-
"quiz-pin-child": "_quiz-pin-
|
|
1349
|
-
quizPinChild:
|
|
1350
|
-
"interactive-pin-container": "_interactive-pin-
|
|
1351
|
-
interactivePinContainer:
|
|
1352
|
-
"interactive-pin-wrapper": "_interactive-pin-
|
|
1353
|
-
interactivePinWrapper:
|
|
1354
|
-
"interactive-pin-icon": "_interactive-pin-
|
|
1355
|
-
interactivePinIcon:
|
|
1356
|
-
"interactive-pin": "_interactive-
|
|
1357
|
-
interactivePin:
|
|
1358
|
-
bg:
|
|
1359
|
-
symbol:
|
|
1360
|
-
"interactive-pin-button": "_interactive-pin-
|
|
1361
|
-
interactivePinButton:
|
|
1362
|
-
"interactive-pin-menu": "_interactive-pin-
|
|
1363
|
-
interactivePinMenu:
|
|
1364
|
-
"interactive-pin-menu-item": "_interactive-pin-menu-
|
|
1365
|
-
interactivePinMenuItem:
|
|
1366
|
-
arrow:
|
|
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", E1 = "_annotation-pin-child_u7l2l_164", T1 = "_quiz-pin-child_u7l2l_168", A1 = "_interactive-pin-container_u7l2l_173", S1 = "_interactive-pin-wrapper_u7l2l_180", V1 = "_interactive-pin-icon_u7l2l_186", R1 = "_interactive-pin_u7l2l_173", H1 = "_bg_u7l2l_200", B1 = "_symbol_u7l2l_204", O1 = "_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
|
+
"comment-markers": "_comment-markers_u7l2l_1",
|
|
1391
|
+
commentMarkers: _1,
|
|
1392
|
+
"comment-marker": "_comment-marker_u7l2l_1",
|
|
1393
|
+
commentMarker: C1,
|
|
1394
|
+
"timeline-wrapper": "_timeline-wrapper_u7l2l_23",
|
|
1395
|
+
timelineWrapper: g1,
|
|
1396
|
+
"timeline-wrapper-compact": "_timeline-wrapper-compact_u7l2l_24",
|
|
1397
|
+
timelineWrapperCompact: b1,
|
|
1398
|
+
track: v1,
|
|
1399
|
+
thumb: w1,
|
|
1400
|
+
root: y1,
|
|
1401
|
+
"track-inner": "_track-inner_u7l2l_88",
|
|
1402
|
+
trackInner: k1,
|
|
1403
|
+
progress: L1,
|
|
1404
|
+
"track-fill": "_track-fill_u7l2l_100",
|
|
1405
|
+
trackFill: x1,
|
|
1406
|
+
pins: M1,
|
|
1407
|
+
"pin-button": "_pin-button_u7l2l_126",
|
|
1408
|
+
pinButton: P1,
|
|
1409
|
+
"annotation-pin": "_annotation-pin_u7l2l_146",
|
|
1410
|
+
annotationPin: N1,
|
|
1411
|
+
"quiz-pin": "_quiz-pin_u7l2l_155",
|
|
1412
|
+
quizPin: I1,
|
|
1413
|
+
"annotation-pin-child": "_annotation-pin-child_u7l2l_164",
|
|
1414
|
+
annotationPinChild: E1,
|
|
1415
|
+
"quiz-pin-child": "_quiz-pin-child_u7l2l_168",
|
|
1416
|
+
quizPinChild: T1,
|
|
1417
|
+
"interactive-pin-container": "_interactive-pin-container_u7l2l_173",
|
|
1418
|
+
interactivePinContainer: A1,
|
|
1419
|
+
"interactive-pin-wrapper": "_interactive-pin-wrapper_u7l2l_180",
|
|
1420
|
+
interactivePinWrapper: S1,
|
|
1421
|
+
"interactive-pin-icon": "_interactive-pin-icon_u7l2l_186",
|
|
1422
|
+
interactivePinIcon: V1,
|
|
1423
|
+
"interactive-pin": "_interactive-pin_u7l2l_173",
|
|
1424
|
+
interactivePin: R1,
|
|
1425
|
+
bg: H1,
|
|
1426
|
+
symbol: B1,
|
|
1427
|
+
"interactive-pin-button": "_interactive-pin-button_u7l2l_209",
|
|
1428
|
+
interactivePinButton: O1,
|
|
1429
|
+
"interactive-pin-menu": "_interactive-pin-menu_u7l2l_230",
|
|
1430
|
+
interactivePinMenu: F1,
|
|
1431
|
+
"interactive-pin-menu-item": "_interactive-pin-menu-item_u7l2l_248",
|
|
1432
|
+
interactivePinMenuItem: D1,
|
|
1433
|
+
arrow: Z1,
|
|
1434
|
+
tooltip: j1,
|
|
1435
|
+
"tooltip-arrow": "_tooltip-arrow_u7l2l_282",
|
|
1436
|
+
tooltipArrow: K1
|
|
1367
1437
|
};
|
|
1368
|
-
function
|
|
1369
|
-
const e =
|
|
1438
|
+
function De() {
|
|
1439
|
+
const e = g("duration"), t = L(), o = v();
|
|
1370
1440
|
return e > 0 && t.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ n("div", { className: m.commentMarkers, children: t.comments.map((i) => /* @__PURE__ */ n(
|
|
1371
1441
|
"span",
|
|
1372
1442
|
{
|
|
@@ -1378,37 +1448,48 @@ function Ie() {
|
|
|
1378
1448
|
i.id
|
|
1379
1449
|
)) }) : null;
|
|
1380
1450
|
}
|
|
1381
|
-
const
|
|
1382
|
-
const [s, a] =
|
|
1383
|
-
|
|
1451
|
+
const z1 = ft(function({ currentTime: t, position: o }, i) {
|
|
1452
|
+
const [s, a] = k(!1), [l, c] = k(null), u = L(), d = v(), _ = f(() => {
|
|
1453
|
+
u.interactiveMenuElements.length > 0 ? (a((j) => !j), d.setGlobalKeysDisabled(!0)) : u.onInteractivePinClick(t);
|
|
1384
1454
|
}, [
|
|
1385
|
-
|
|
1386
|
-
|
|
1455
|
+
u.interactiveMenuElements,
|
|
1456
|
+
u.onInteractivePinClick,
|
|
1387
1457
|
t
|
|
1388
|
-
]),
|
|
1458
|
+
]), b = z(null), { refs: w, floatingStyles: y, context: x } = me({
|
|
1389
1459
|
open: s,
|
|
1390
|
-
onOpenChange:
|
|
1391
|
-
whileElementsMounted:
|
|
1460
|
+
onOpenChange: _,
|
|
1461
|
+
whileElementsMounted: he,
|
|
1392
1462
|
placement: "top",
|
|
1393
1463
|
middleware: [
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
element:
|
|
1464
|
+
ke(),
|
|
1465
|
+
Le(6),
|
|
1466
|
+
xe({
|
|
1467
|
+
element: b
|
|
1398
1468
|
})
|
|
1399
1469
|
]
|
|
1400
|
-
}),
|
|
1470
|
+
}), p = z([]), C = Me(x), H = ze(x, {
|
|
1471
|
+
listRef: p,
|
|
1472
|
+
activeIndex: l,
|
|
1473
|
+
onNavigate: c,
|
|
1474
|
+
loop: !0,
|
|
1475
|
+
openOnArrowKeyDown: !1
|
|
1476
|
+
}), { getReferenceProps: E, getFloatingProps: P, getItemProps: I } = Pe(
|
|
1477
|
+
[C, H]
|
|
1478
|
+
), B = $e([w.setReference, i]), { t: V } = h(), O = be(t);
|
|
1401
1479
|
return /* @__PURE__ */ r(X, { children: [
|
|
1402
1480
|
/* @__PURE__ */ n(
|
|
1403
1481
|
"button",
|
|
1404
1482
|
{
|
|
1483
|
+
id: "interactive-pin",
|
|
1405
1484
|
type: "button",
|
|
1406
|
-
"aria-
|
|
1407
|
-
|
|
1485
|
+
"aria-label": u.interactiveMenuElements.length > 0 ? V("ADD_QUIZ_AT", { time: O }) : V("ADD_ANNOTATION_AT", { time: O }),
|
|
1486
|
+
"aria-haspopup": u.interactiveMenuElements.length > 0 ? "true" : void 0,
|
|
1408
1487
|
className: m.interactivePinButton,
|
|
1409
|
-
ref:
|
|
1488
|
+
ref: B,
|
|
1410
1489
|
style: { left: `${o}%` },
|
|
1411
|
-
...
|
|
1490
|
+
...E({
|
|
1491
|
+
onClick: _
|
|
1492
|
+
}),
|
|
1412
1493
|
children: /* @__PURE__ */ r(
|
|
1413
1494
|
"svg",
|
|
1414
1495
|
{
|
|
@@ -1449,71 +1530,70 @@ const B1 = ct(function({ currentTime: t, position: o }, i) {
|
|
|
1449
1530
|
)
|
|
1450
1531
|
}
|
|
1451
1532
|
),
|
|
1452
|
-
s && /* @__PURE__ */ n(
|
|
1453
|
-
|
|
1533
|
+
s && /* @__PURE__ */ n(Ne, { context: x, initialFocus: -1, modal: !0, children: /* @__PURE__ */ r(
|
|
1534
|
+
"div",
|
|
1454
1535
|
{
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1536
|
+
ref: w.setFloating,
|
|
1537
|
+
style: y,
|
|
1538
|
+
className: m.interactivePinMenu,
|
|
1539
|
+
"aria-labelledby": "interactive-pin",
|
|
1540
|
+
...P(),
|
|
1541
|
+
children: [
|
|
1542
|
+
u.interactiveMenuElements.map(
|
|
1543
|
+
({ id: j, text: fe, onClick: _e }, ee) => /* @__PURE__ */ r(
|
|
1544
|
+
"button",
|
|
1545
|
+
{
|
|
1546
|
+
type: "button",
|
|
1547
|
+
className: m.interactivePinMenuItem,
|
|
1548
|
+
ref: (ne) => {
|
|
1549
|
+
p.current[ee] = ne;
|
|
1550
|
+
},
|
|
1551
|
+
tabIndex: l === ee ? 0 : -1,
|
|
1552
|
+
...I({
|
|
1553
|
+
onClick: () => {
|
|
1554
|
+
_e(j, t), a(!1), d.setGlobalKeysDisabled(!1);
|
|
1555
|
+
}
|
|
1556
|
+
}),
|
|
1557
|
+
children: [
|
|
1558
|
+
/* @__PURE__ */ n(
|
|
1559
|
+
"svg",
|
|
1560
|
+
{
|
|
1561
|
+
width: "16",
|
|
1562
|
+
height: "16",
|
|
1563
|
+
viewBox: "0 0 16 16",
|
|
1564
|
+
fill: "none",
|
|
1565
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1566
|
+
children: /* @__PURE__ */ n(
|
|
1567
|
+
"path",
|
|
1478
1568
|
{
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
fill: "
|
|
1483
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1484
|
-
children: /* @__PURE__ */ n(
|
|
1485
|
-
"path",
|
|
1486
|
-
{
|
|
1487
|
-
fillRule: "evenodd",
|
|
1488
|
-
clipRule: "evenodd",
|
|
1489
|
-
d: "M7.33339 7.33339H1.77783V8.66672H7.33339V14.2223H8.66672V8.66672H14.2223V7.33339H8.66672V1.77783H7.33339V7.33339Z",
|
|
1490
|
-
fill: "#273540"
|
|
1491
|
-
}
|
|
1492
|
-
)
|
|
1569
|
+
fillRule: "evenodd",
|
|
1570
|
+
clipRule: "evenodd",
|
|
1571
|
+
d: "M7.33339 7.33339H1.77783V8.66672H7.33339V14.2223H8.66672V8.66672H14.2223V7.33339H8.66672V1.77783H7.33339V7.33339Z",
|
|
1572
|
+
fill: "#273540"
|
|
1493
1573
|
}
|
|
1494
|
-
)
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1574
|
+
)
|
|
1575
|
+
}
|
|
1576
|
+
),
|
|
1577
|
+
fe
|
|
1578
|
+
]
|
|
1579
|
+
},
|
|
1580
|
+
j
|
|
1581
|
+
)
|
|
1582
|
+
),
|
|
1583
|
+
/* @__PURE__ */ n(
|
|
1584
|
+
Ie,
|
|
1585
|
+
{
|
|
1586
|
+
ref: b,
|
|
1587
|
+
context: x,
|
|
1588
|
+
className: m.arrow
|
|
1589
|
+
}
|
|
1590
|
+
)
|
|
1591
|
+
]
|
|
1512
1592
|
}
|
|
1513
|
-
)
|
|
1593
|
+
) })
|
|
1514
1594
|
] });
|
|
1515
|
-
}),
|
|
1516
|
-
const e =
|
|
1595
|
+
}), $1 = () => {
|
|
1596
|
+
const e = z(!1), t = z(!1), o = D(() => ({
|
|
1517
1597
|
ArrowLeft: () => {
|
|
1518
1598
|
t.current = !0;
|
|
1519
1599
|
},
|
|
@@ -1524,7 +1604,7 @@ const B1 = ct(function({ currentTime: t, position: o }, i) {
|
|
|
1524
1604
|
t.current = !1;
|
|
1525
1605
|
}
|
|
1526
1606
|
}), []);
|
|
1527
|
-
return
|
|
1607
|
+
return Ee(o), { focusCallback: f((s) => {
|
|
1528
1608
|
s && (s.addEventListener("focus", () => {
|
|
1529
1609
|
e.current = !0;
|
|
1530
1610
|
}), s.addEventListener("blur", () => {
|
|
@@ -1532,13 +1612,13 @@ const B1 = ct(function({ currentTime: t, position: o }, i) {
|
|
|
1532
1612
|
}), e.current && s.focus());
|
|
1533
1613
|
}, []), wasPinFocused: e.current };
|
|
1534
1614
|
};
|
|
1535
|
-
function
|
|
1615
|
+
function U1() {
|
|
1536
1616
|
var c;
|
|
1537
|
-
const e =
|
|
1617
|
+
const e = g("duration"), t = g("currentTime"), o = t / e * 100, { disableInteractivePinRanges: i } = L(), s = !i.some(
|
|
1538
1618
|
([u, d]) => t >= u && t <= d
|
|
1539
|
-
), { wasPinFocused: a, focusCallback: l } =
|
|
1619
|
+
), { wasPinFocused: a, focusCallback: l } = $1();
|
|
1540
1620
|
return s ? /* @__PURE__ */ n("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ n("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ n(
|
|
1541
|
-
|
|
1621
|
+
z1,
|
|
1542
1622
|
{
|
|
1543
1623
|
ref: l,
|
|
1544
1624
|
currentTime: t,
|
|
@@ -1546,35 +1626,40 @@ function F1() {
|
|
|
1546
1626
|
}
|
|
1547
1627
|
) }) }) : (a && ((c = document.querySelector("[data-media-time-slider]")) == null || c.focus()), null);
|
|
1548
1628
|
}
|
|
1549
|
-
function
|
|
1550
|
-
const e =
|
|
1551
|
-
return e && !t.state.interactionsDisabled ? /* @__PURE__ */ n(
|
|
1629
|
+
function q1() {
|
|
1630
|
+
const e = g("paused"), t = v();
|
|
1631
|
+
return e && !t.state.interactionsDisabled ? /* @__PURE__ */ n(U1, {}) : null;
|
|
1552
1632
|
}
|
|
1553
|
-
const
|
|
1633
|
+
const G1 = {
|
|
1554
1634
|
annotation: m.annotationPin,
|
|
1555
1635
|
quiz: m.quizPin
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1636
|
+
}, 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
|
+
time: be(o)
|
|
1638
|
+
}) : "";
|
|
1639
|
+
function rt({
|
|
1558
1640
|
type: e,
|
|
1559
1641
|
position: t,
|
|
1560
1642
|
children: o,
|
|
1561
1643
|
onClick: i,
|
|
1562
|
-
id: s
|
|
1644
|
+
id: s,
|
|
1645
|
+
time: a,
|
|
1646
|
+
completed: l
|
|
1563
1647
|
}) {
|
|
1564
|
-
const
|
|
1648
|
+
const c = v(), { t: u } = h();
|
|
1565
1649
|
return /* @__PURE__ */ n(
|
|
1566
1650
|
"button",
|
|
1567
1651
|
{
|
|
1568
1652
|
type: "button",
|
|
1569
|
-
tabIndex:
|
|
1653
|
+
tabIndex: c.state.interactionsDisabled ? -1 : 0,
|
|
1570
1654
|
className: m.pinButton,
|
|
1571
1655
|
style: { left: `${t}%` },
|
|
1572
1656
|
onClick: i,
|
|
1573
1657
|
"data-marker-id": s,
|
|
1658
|
+
"aria-label": Q1(u, e, a, l),
|
|
1574
1659
|
children: /* @__PURE__ */ r(
|
|
1575
1660
|
"svg",
|
|
1576
1661
|
{
|
|
1577
|
-
className:
|
|
1662
|
+
className: G1[e],
|
|
1578
1663
|
width: "26",
|
|
1579
1664
|
height: "32",
|
|
1580
1665
|
viewBox: "0 0 26 32",
|
|
@@ -1588,8 +1673,8 @@ function Je({
|
|
|
1588
1673
|
}
|
|
1589
1674
|
);
|
|
1590
1675
|
}
|
|
1591
|
-
function
|
|
1592
|
-
return /* @__PURE__ */ n(
|
|
1676
|
+
function W1(e) {
|
|
1677
|
+
return /* @__PURE__ */ n(rt, { type: "annotation", ...e, children: /* @__PURE__ */ n(
|
|
1593
1678
|
"path",
|
|
1594
1679
|
{
|
|
1595
1680
|
className: m.annotationPinChild,
|
|
@@ -1601,7 +1686,7 @@ function j1(e) {
|
|
|
1601
1686
|
}
|
|
1602
1687
|
) });
|
|
1603
1688
|
}
|
|
1604
|
-
function
|
|
1689
|
+
function Y1(e) {
|
|
1605
1690
|
const t = e.completed ? /* @__PURE__ */ n(
|
|
1606
1691
|
"path",
|
|
1607
1692
|
{
|
|
@@ -1610,7 +1695,8 @@ function K1(e) {
|
|
|
1610
1695
|
fillRule: "evenodd",
|
|
1611
1696
|
clipRule: "evenodd",
|
|
1612
1697
|
d: "M12.7156 2.33212L5.18253 9.86522L1.28337 5.96607L0 7.24944L5.18253 12.4329L13.9999 3.6164L12.7156 2.33212Z",
|
|
1613
|
-
fill: "currentColor"
|
|
1698
|
+
fill: "currentColor",
|
|
1699
|
+
"data-completed": "true"
|
|
1614
1700
|
}
|
|
1615
1701
|
) : /* @__PURE__ */ n(
|
|
1616
1702
|
"text",
|
|
@@ -1624,9 +1710,9 @@ function K1(e) {
|
|
|
1624
1710
|
children: e.ordinal
|
|
1625
1711
|
}
|
|
1626
1712
|
);
|
|
1627
|
-
return /* @__PURE__ */ n(
|
|
1713
|
+
return /* @__PURE__ */ n(rt, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ n("circle", { className: m.quizPinChild, cx: "13", cy: "13", r: "6" }) : t });
|
|
1628
1714
|
}
|
|
1629
|
-
function
|
|
1715
|
+
function X1(e, t) {
|
|
1630
1716
|
return e.map((o, i) => ({
|
|
1631
1717
|
id: o.id,
|
|
1632
1718
|
time: o.time,
|
|
@@ -1635,7 +1721,7 @@ function z1(e, t) {
|
|
|
1635
1721
|
onClick: () => t(o)
|
|
1636
1722
|
}));
|
|
1637
1723
|
}
|
|
1638
|
-
function
|
|
1724
|
+
function J1(e, t) {
|
|
1639
1725
|
const o = /* @__PURE__ */ new Map();
|
|
1640
1726
|
e.forEach((a) => {
|
|
1641
1727
|
var c;
|
|
@@ -1656,30 +1742,32 @@ function U1(e, t) {
|
|
|
1656
1742
|
}), s++;
|
|
1657
1743
|
}), i;
|
|
1658
1744
|
}
|
|
1659
|
-
function
|
|
1745
|
+
function ei(e, t, o, i) {
|
|
1660
1746
|
switch (e.type) {
|
|
1661
1747
|
case "annotation": {
|
|
1662
1748
|
const s = () => i ? e.onClick() : o.seek(e.time);
|
|
1663
1749
|
return /* @__PURE__ */ n(
|
|
1664
|
-
|
|
1750
|
+
W1,
|
|
1665
1751
|
{
|
|
1666
1752
|
id: e.id,
|
|
1667
1753
|
position: e.time / t * 100,
|
|
1668
|
-
onClick: s
|
|
1754
|
+
onClick: s,
|
|
1755
|
+
time: e.time
|
|
1669
1756
|
},
|
|
1670
1757
|
e.id
|
|
1671
1758
|
);
|
|
1672
1759
|
}
|
|
1673
1760
|
case "quiz":
|
|
1674
1761
|
return /* @__PURE__ */ n(
|
|
1675
|
-
|
|
1762
|
+
Y1,
|
|
1676
1763
|
{
|
|
1677
1764
|
id: e.id,
|
|
1678
1765
|
position: e.time / t * 100,
|
|
1679
1766
|
ordinal: e.ordinal,
|
|
1680
1767
|
multiple: e.multiple,
|
|
1681
1768
|
onClick: e.onClick,
|
|
1682
|
-
completed: e.completed
|
|
1769
|
+
completed: e.completed,
|
|
1770
|
+
time: e.time
|
|
1683
1771
|
},
|
|
1684
1772
|
e.id
|
|
1685
1773
|
);
|
|
@@ -1687,64 +1775,103 @@ function $1(e, t, o, i) {
|
|
|
1687
1775
|
return null;
|
|
1688
1776
|
}
|
|
1689
1777
|
}
|
|
1690
|
-
function
|
|
1691
|
-
const e =
|
|
1692
|
-
...
|
|
1778
|
+
function ti() {
|
|
1779
|
+
const e = de(), t = g("duration"), o = L(), i = D(() => [
|
|
1780
|
+
...X1(
|
|
1693
1781
|
o.annotations,
|
|
1694
1782
|
o.onAnnotationClick
|
|
1695
1783
|
),
|
|
1696
|
-
...
|
|
1697
|
-
].sort((a, l) => a.time - l.time).map((a) =>
|
|
1784
|
+
...J1(o.quizMarkers, o.onQuizMarkerClick)
|
|
1785
|
+
].sort((a, l) => a.time - l.time).map((a) => ei(a, t, e, o.interactive)), [o.annotations, o.quizMarkers, t, e]);
|
|
1698
1786
|
return /* @__PURE__ */ n("div", { className: m.pins, children: i });
|
|
1699
1787
|
}
|
|
1700
|
-
const
|
|
1788
|
+
const ni = {
|
|
1701
1789
|
normal: m.timelineWrapper,
|
|
1702
1790
|
compact: m.timelineWrapperCompact
|
|
1703
1791
|
};
|
|
1704
|
-
function
|
|
1792
|
+
function Ze({
|
|
1705
1793
|
layout: e,
|
|
1706
1794
|
interactionsDisabled: t,
|
|
1707
1795
|
children: o
|
|
1708
1796
|
}) {
|
|
1709
|
-
|
|
1797
|
+
const [i, s] = k(!1), a = f(() => s(!0), []), l = f(() => s(!1), []), c = z(null), { refs: u, floatingStyles: d, context: _ } = me({
|
|
1798
|
+
open: i,
|
|
1799
|
+
onOpenChange: s,
|
|
1800
|
+
whileElementsMounted: (b, w, y) => he(b, w, y, {
|
|
1801
|
+
animationFrame: !0
|
|
1802
|
+
}),
|
|
1803
|
+
placement: "top",
|
|
1804
|
+
middleware: [
|
|
1805
|
+
ke(),
|
|
1806
|
+
Le(18),
|
|
1807
|
+
xe({
|
|
1808
|
+
element: c
|
|
1809
|
+
})
|
|
1810
|
+
]
|
|
1811
|
+
});
|
|
1812
|
+
return /* @__PURE__ */ r("div", { className: ni[e], children: [
|
|
1710
1813
|
o,
|
|
1711
1814
|
/* @__PURE__ */ r(
|
|
1712
|
-
|
|
1815
|
+
G.Root,
|
|
1713
1816
|
{
|
|
1714
|
-
className: m.root,
|
|
1715
1817
|
tabIndex: t ? -1 : 0,
|
|
1818
|
+
className: m.root,
|
|
1819
|
+
onDragStart: a,
|
|
1820
|
+
onDragEnd: l,
|
|
1716
1821
|
children: [
|
|
1717
|
-
/* @__PURE__ */ r(
|
|
1822
|
+
/* @__PURE__ */ r(G.Track, { className: m.track, children: [
|
|
1718
1823
|
/* @__PURE__ */ n(
|
|
1719
|
-
|
|
1824
|
+
G.Progress,
|
|
1720
1825
|
{
|
|
1721
|
-
className:
|
|
1826
|
+
className: ue(m.progress, m.trackInner)
|
|
1722
1827
|
}
|
|
1723
1828
|
),
|
|
1724
1829
|
/* @__PURE__ */ n(
|
|
1725
|
-
|
|
1830
|
+
G.TrackFill,
|
|
1726
1831
|
{
|
|
1727
|
-
className:
|
|
1832
|
+
className: ue(m.trackFill, m.trackInner)
|
|
1728
1833
|
}
|
|
1729
1834
|
)
|
|
1730
1835
|
] }),
|
|
1731
|
-
/* @__PURE__ */ n(
|
|
1836
|
+
/* @__PURE__ */ n(G.Thumb, { className: m.thumb, ref: u.setReference }),
|
|
1837
|
+
i ? /* @__PURE__ */ r(
|
|
1838
|
+
"div",
|
|
1839
|
+
{
|
|
1840
|
+
role: "tooltip",
|
|
1841
|
+
ref: u.setFloating,
|
|
1842
|
+
style: d,
|
|
1843
|
+
className: m.tooltip,
|
|
1844
|
+
children: [
|
|
1845
|
+
/* @__PURE__ */ n(G.Value, {}),
|
|
1846
|
+
/* @__PURE__ */ n(
|
|
1847
|
+
Ie,
|
|
1848
|
+
{
|
|
1849
|
+
ref: c,
|
|
1850
|
+
context: _,
|
|
1851
|
+
className: m.tooltipArrow,
|
|
1852
|
+
width: 20,
|
|
1853
|
+
height: 10
|
|
1854
|
+
}
|
|
1855
|
+
)
|
|
1856
|
+
]
|
|
1857
|
+
}
|
|
1858
|
+
) : null
|
|
1732
1859
|
]
|
|
1733
1860
|
}
|
|
1734
1861
|
)
|
|
1735
1862
|
] });
|
|
1736
1863
|
}
|
|
1737
|
-
const
|
|
1738
|
-
wrapper:
|
|
1739
|
-
track:
|
|
1740
|
-
thumb:
|
|
1741
|
-
"track-fill": "_track-
|
|
1742
|
-
trackFill:
|
|
1743
|
-
root:
|
|
1864
|
+
const oi = "_wrapper_1ijfr_1", ii = "_track_1ijfr_6", si = "_thumb_1ijfr_16", ai = "_track-fill_1ijfr_30", li = "_root_1ijfr_49", te = {
|
|
1865
|
+
wrapper: oi,
|
|
1866
|
+
track: ii,
|
|
1867
|
+
thumb: si,
|
|
1868
|
+
"track-fill": "_track-fill_1ijfr_30",
|
|
1869
|
+
trackFill: ai,
|
|
1870
|
+
root: li
|
|
1744
1871
|
};
|
|
1745
|
-
function
|
|
1746
|
-
const e =
|
|
1747
|
-
return /* @__PURE__ */ r("div", { className:
|
|
1872
|
+
function ri() {
|
|
1873
|
+
const e = S(), t = g("volume"), o = g("muted"), i = v(), s = o || t === 0, { t: a } = h();
|
|
1874
|
+
return /* @__PURE__ */ r("div", { className: te.wrapper, children: [
|
|
1748
1875
|
/* @__PURE__ */ n(
|
|
1749
1876
|
"button",
|
|
1750
1877
|
{
|
|
@@ -1756,17 +1883,17 @@ function ei() {
|
|
|
1756
1883
|
onClick: () => {
|
|
1757
1884
|
s ? e == null || e.remoteControl.unmute() : e == null || e.remoteControl.mute();
|
|
1758
1885
|
},
|
|
1759
|
-
children: s ? /* @__PURE__ */ n(
|
|
1886
|
+
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" })
|
|
1760
1887
|
}
|
|
1761
1888
|
),
|
|
1762
1889
|
/* @__PURE__ */ r(
|
|
1763
|
-
|
|
1890
|
+
se.Root,
|
|
1764
1891
|
{
|
|
1765
|
-
className:
|
|
1892
|
+
className: te.root,
|
|
1766
1893
|
tabIndex: i.state.interactionsDisabled ? -1 : 0,
|
|
1767
1894
|
children: [
|
|
1768
|
-
/* @__PURE__ */ n(
|
|
1769
|
-
/* @__PURE__ */ n(
|
|
1895
|
+
/* @__PURE__ */ n(se.Track, { className: te.track, children: /* @__PURE__ */ n(se.TrackFill, { className: te.trackFill }) }),
|
|
1896
|
+
/* @__PURE__ */ n(se.Thumb, { className: te.thumb })
|
|
1770
1897
|
]
|
|
1771
1898
|
}
|
|
1772
1899
|
)
|
|
@@ -1779,7 +1906,7 @@ function M(e, t) {
|
|
|
1779
1906
|
})
|
|
1780
1907
|
);
|
|
1781
1908
|
}
|
|
1782
|
-
const
|
|
1909
|
+
const je = {
|
|
1783
1910
|
togglePaused: {
|
|
1784
1911
|
keys: ["Space", "Enter", "k"],
|
|
1785
1912
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
@@ -1849,15 +1976,15 @@ const Ee = {
|
|
|
1849
1976
|
decreasePlaybackRate: {
|
|
1850
1977
|
keys: ["a"],
|
|
1851
1978
|
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1852
|
-
const s =
|
|
1853
|
-
s >= 0 && (o.changePlaybackRate(
|
|
1979
|
+
const s = Y.indexOf(t.playbackRate) - 1;
|
|
1980
|
+
s >= 0 && (o.changePlaybackRate(Y[s], e), M(t, "playbackRateChange"));
|
|
1854
1981
|
}
|
|
1855
1982
|
},
|
|
1856
1983
|
increasePlaybackRate: {
|
|
1857
1984
|
keys: ["d"],
|
|
1858
1985
|
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1859
|
-
const s =
|
|
1860
|
-
s <
|
|
1986
|
+
const s = Y.indexOf(t.playbackRate) + 1;
|
|
1987
|
+
s < Y.length && (o.changePlaybackRate(Y[s], e), M(t, "playbackRateChange"));
|
|
1861
1988
|
}
|
|
1862
1989
|
},
|
|
1863
1990
|
resetPlaybackRate: {
|
|
@@ -1879,10 +2006,16 @@ const Ee = {
|
|
|
1879
2006
|
}
|
|
1880
2007
|
}
|
|
1881
2008
|
};
|
|
1882
|
-
function
|
|
2009
|
+
function ci(e) {
|
|
2010
|
+
return Array.isArray(e) && typeof e[0] == "object";
|
|
2011
|
+
}
|
|
2012
|
+
function ui(e) {
|
|
2013
|
+
return ci(e) && e.length === 1 ? e[0].src : e;
|
|
2014
|
+
}
|
|
2015
|
+
function ve(e) {
|
|
1883
2016
|
return typeof e == "number" && !isNaN(e);
|
|
1884
2017
|
}
|
|
1885
|
-
function
|
|
2018
|
+
function di(e, t = 1e3) {
|
|
1886
2019
|
let o = !1;
|
|
1887
2020
|
return () => {
|
|
1888
2021
|
o || (e(), o = !0, setTimeout(() => {
|
|
@@ -1890,7 +2023,7 @@ function ti(e, t = 1e3) {
|
|
|
1890
2023
|
}, t));
|
|
1891
2024
|
};
|
|
1892
2025
|
}
|
|
1893
|
-
const
|
|
2026
|
+
const Ke = {
|
|
1894
2027
|
volume: 1,
|
|
1895
2028
|
muted: !1,
|
|
1896
2029
|
lang: null,
|
|
@@ -1901,23 +2034,23 @@ const Te = {
|
|
|
1901
2034
|
invert: !1,
|
|
1902
2035
|
comments: !1
|
|
1903
2036
|
};
|
|
1904
|
-
class
|
|
2037
|
+
class mi {
|
|
1905
2038
|
constructor() {
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
2039
|
+
R(this, "playerId", "studio-player");
|
|
2040
|
+
R(this, "mediaId", null);
|
|
2041
|
+
R(this, "data", Ke);
|
|
2042
|
+
R(this, "time", null);
|
|
2043
|
+
R(this, "overrideTime", null);
|
|
2044
|
+
R(this, "saveTime", () => {
|
|
1912
2045
|
if (!this.mediaId) return;
|
|
1913
2046
|
const t = (this.time ?? 0).toString();
|
|
1914
2047
|
localStorage.setItem(this.mediaId, t);
|
|
1915
2048
|
});
|
|
1916
|
-
|
|
2049
|
+
R(this, "saveTimeThrottled", di(this.saveTime, 1e3));
|
|
1917
2050
|
// only used for useStudioPlayer hook's state initialization
|
|
1918
|
-
|
|
2051
|
+
R(this, "initializeState", (t) => {
|
|
1919
2052
|
const o = localStorage.getItem(this.playerId);
|
|
1920
|
-
if (
|
|
2053
|
+
if (ve(t) && t >= 0 && (this.overrideTime = t), o)
|
|
1921
2054
|
try {
|
|
1922
2055
|
this.data = JSON.parse(o);
|
|
1923
2056
|
} catch {
|
|
@@ -1932,7 +2065,7 @@ class ni {
|
|
|
1932
2065
|
disableCaptionSettings: !1
|
|
1933
2066
|
};
|
|
1934
2067
|
});
|
|
1935
|
-
|
|
2068
|
+
R(this, "saveData", (t, o) => {
|
|
1936
2069
|
this.data = {
|
|
1937
2070
|
...this.data,
|
|
1938
2071
|
[t]: o
|
|
@@ -1992,9 +2125,9 @@ class ni {
|
|
|
1992
2125
|
} catch {
|
|
1993
2126
|
}
|
|
1994
2127
|
this.data = {
|
|
1995
|
-
...
|
|
2128
|
+
...Ke,
|
|
1996
2129
|
...l
|
|
1997
|
-
},
|
|
2130
|
+
}, ve(this.overrideTime) && this.overrideTime >= 0 ? this.time = this.overrideTime : this.time = a ? +a : null;
|
|
1998
2131
|
}
|
|
1999
2132
|
save() {
|
|
2000
2133
|
if (!this.playerId) return;
|
|
@@ -2002,60 +2135,60 @@ class ni {
|
|
|
2002
2135
|
localStorage.setItem(this.playerId, t);
|
|
2003
2136
|
}
|
|
2004
2137
|
}
|
|
2005
|
-
function
|
|
2006
|
-
const s =
|
|
2138
|
+
function hi(e, t, o, i) {
|
|
2139
|
+
const s = D(() => new mi(), []), [a, l] = k(
|
|
2007
2140
|
s.initializeState(i)
|
|
2008
|
-
), c =
|
|
2009
|
-
(
|
|
2010
|
-
l((C) => (s.saveData("multiplier",
|
|
2141
|
+
), c = f(
|
|
2142
|
+
(p) => {
|
|
2143
|
+
l((C) => (s.saveData("multiplier", p), {
|
|
2011
2144
|
...C,
|
|
2012
|
-
captionsFontSizeMultiplier:
|
|
2145
|
+
captionsFontSizeMultiplier: p
|
|
2013
2146
|
}));
|
|
2014
2147
|
},
|
|
2015
2148
|
[s]
|
|
2016
|
-
), u =
|
|
2017
|
-
l((
|
|
2018
|
-
const C = !
|
|
2149
|
+
), u = f(() => {
|
|
2150
|
+
l((p) => {
|
|
2151
|
+
const C = !p.captionPositionOnTop;
|
|
2019
2152
|
return s.saveData("ontop", C), {
|
|
2020
|
-
...
|
|
2153
|
+
...p,
|
|
2021
2154
|
captionPositionOnTop: C
|
|
2022
2155
|
};
|
|
2023
2156
|
});
|
|
2024
|
-
}, [s]), d =
|
|
2025
|
-
l((
|
|
2026
|
-
const C = !
|
|
2157
|
+
}, [s]), d = f(() => {
|
|
2158
|
+
l((p) => {
|
|
2159
|
+
const C = !p.captionsInvertColors;
|
|
2027
2160
|
return s.saveData("invert", C), {
|
|
2028
|
-
...
|
|
2161
|
+
...p,
|
|
2029
2162
|
captionsInvertColors: C
|
|
2030
2163
|
};
|
|
2031
2164
|
});
|
|
2032
|
-
}, [s]),
|
|
2033
|
-
l((
|
|
2034
|
-
const C = !
|
|
2165
|
+
}, [s]), _ = f(() => {
|
|
2166
|
+
l((p) => {
|
|
2167
|
+
const C = !p.commentsEnabled;
|
|
2035
2168
|
return s.saveData("comments", C), {
|
|
2036
|
-
...
|
|
2169
|
+
...p,
|
|
2037
2170
|
commentsEnabled: C
|
|
2038
2171
|
};
|
|
2039
2172
|
});
|
|
2040
|
-
}, [s]),
|
|
2041
|
-
l((
|
|
2042
|
-
...
|
|
2173
|
+
}, [s]), b = f(() => {
|
|
2174
|
+
l((p) => ({
|
|
2175
|
+
...p,
|
|
2043
2176
|
interactionsDisabled: !1
|
|
2044
2177
|
}));
|
|
2045
|
-
}, []), w =
|
|
2046
|
-
l((
|
|
2047
|
-
...
|
|
2178
|
+
}, []), w = f(() => {
|
|
2179
|
+
l((p) => ({
|
|
2180
|
+
...p,
|
|
2048
2181
|
interactionsDisabled: !0
|
|
2049
2182
|
}));
|
|
2050
|
-
}, []), y =
|
|
2183
|
+
}, []), y = f((p) => {
|
|
2051
2184
|
l((C) => ({
|
|
2052
2185
|
...C,
|
|
2053
|
-
globalKeysDisabled:
|
|
2186
|
+
globalKeysDisabled: p
|
|
2054
2187
|
}));
|
|
2055
|
-
}, []),
|
|
2056
|
-
...
|
|
2188
|
+
}, []), x = D(() => e ? {
|
|
2189
|
+
...je,
|
|
2057
2190
|
toggleFullscreen: []
|
|
2058
|
-
} :
|
|
2191
|
+
} : je, [e]);
|
|
2059
2192
|
return {
|
|
2060
2193
|
contextValue: {
|
|
2061
2194
|
state: {
|
|
@@ -2065,17 +2198,17 @@ function oi(e, t, o, i) {
|
|
|
2065
2198
|
setCaptionsFontSizeMultiplier: c,
|
|
2066
2199
|
toggleCaptionPositionOnTop: u,
|
|
2067
2200
|
toggleCaptionsInvertColors: d,
|
|
2068
|
-
enableInteractions:
|
|
2201
|
+
enableInteractions: b,
|
|
2069
2202
|
disableInteractions: w,
|
|
2070
2203
|
setGlobalKeysDisabled: y,
|
|
2071
|
-
toggleComments:
|
|
2204
|
+
toggleComments: _,
|
|
2072
2205
|
disableCaptionSettings: o
|
|
2073
2206
|
},
|
|
2074
|
-
shortcuts:
|
|
2207
|
+
shortcuts: x,
|
|
2075
2208
|
storage: s
|
|
2076
2209
|
};
|
|
2077
2210
|
}
|
|
2078
|
-
const
|
|
2211
|
+
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__ */ r("g", { id: "audio", children: [
|
|
2079
2212
|
/* @__PURE__ */ r("g", { id: "icon-file-base-2", children: [
|
|
2080
2213
|
/* @__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" }),
|
|
2081
2214
|
/* @__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" }),
|
|
@@ -2083,26 +2216,32 @@ const ii = (e) => /* @__PURE__ */ n("svg", { width: 56, height: 72, viewBox: "0
|
|
|
2083
2216
|
] }),
|
|
2084
2217
|
/* @__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" })
|
|
2085
2218
|
] }) }) });
|
|
2086
|
-
function
|
|
2219
|
+
function fi() {
|
|
2087
2220
|
const e = L();
|
|
2088
2221
|
return /* @__PURE__ */ r("div", { className: "audio-layout-wrapper", children: [
|
|
2089
|
-
/* @__PURE__ */ n(
|
|
2090
|
-
/* @__PURE__ */ n(
|
|
2091
|
-
/* @__PURE__ */ n(
|
|
2092
|
-
/* @__PURE__ */ n(
|
|
2222
|
+
/* @__PURE__ */ n(pi, {}),
|
|
2223
|
+
/* @__PURE__ */ n(lt, {}),
|
|
2224
|
+
/* @__PURE__ */ n(Ge, {}),
|
|
2225
|
+
/* @__PURE__ */ n(Je, { captions: e.captions })
|
|
2093
2226
|
] });
|
|
2094
2227
|
}
|
|
2095
|
-
function
|
|
2228
|
+
function _i() {
|
|
2096
2229
|
const e = L(), t = e.kebabMenuElements.length > 0;
|
|
2097
2230
|
return /* @__PURE__ */ r(X, { children: [
|
|
2098
|
-
/* @__PURE__ */ n(e1, { src: e.thumbnail }),
|
|
2099
|
-
/* @__PURE__ */ n(Xe, {}),
|
|
2100
|
-
/* @__PURE__ */ n(Ze, {}),
|
|
2101
|
-
/* @__PURE__ */ n(Ue, { captions: e.captions }),
|
|
2102
|
-
/* @__PURE__ */ n(l1, {}),
|
|
2103
|
-
/* @__PURE__ */ n(Go, {}),
|
|
2104
2231
|
/* @__PURE__ */ n(
|
|
2105
|
-
|
|
2232
|
+
i1,
|
|
2233
|
+
{
|
|
2234
|
+
src: e.thumbnail,
|
|
2235
|
+
title: e.title
|
|
2236
|
+
}
|
|
2237
|
+
),
|
|
2238
|
+
/* @__PURE__ */ n(lt, {}),
|
|
2239
|
+
/* @__PURE__ */ n(Ge, {}),
|
|
2240
|
+
/* @__PURE__ */ n(Je, { captions: e.captions }),
|
|
2241
|
+
/* @__PURE__ */ n(m1, {}),
|
|
2242
|
+
/* @__PURE__ */ n(Qo, {}),
|
|
2243
|
+
/* @__PURE__ */ n(
|
|
2244
|
+
Sn,
|
|
2106
2245
|
{
|
|
2107
2246
|
comments: e.comments,
|
|
2108
2247
|
isKebabMenuVisible: t
|
|
@@ -2110,93 +2249,105 @@ function ai() {
|
|
|
2110
2249
|
)
|
|
2111
2250
|
] });
|
|
2112
2251
|
}
|
|
2113
|
-
const
|
|
2114
|
-
root:
|
|
2115
|
-
normal:
|
|
2116
|
-
compact:
|
|
2252
|
+
const Ci = "_root_5cfhx_1", gi = "_normal_5cfhx_14", bi = "_compact_5cfhx_21", vi = "_left-controls_5cfhx_36", wi = "_right-controls_5cfhx_42", yi = "_indicators_5cfhx_48", W = {
|
|
2253
|
+
root: Ci,
|
|
2254
|
+
normal: gi,
|
|
2255
|
+
compact: bi,
|
|
2117
2256
|
"left-controls": "_left-controls_5cfhx_36",
|
|
2118
|
-
leftControls:
|
|
2257
|
+
leftControls: vi,
|
|
2119
2258
|
"right-controls": "_right-controls_5cfhx_42",
|
|
2120
|
-
rightControls:
|
|
2121
|
-
indicators:
|
|
2259
|
+
rightControls: wi,
|
|
2260
|
+
indicators: yi
|
|
2122
2261
|
};
|
|
2123
|
-
function
|
|
2262
|
+
function ki() {
|
|
2263
|
+
const e = S(), t = L();
|
|
2264
|
+
Z(() => {
|
|
2265
|
+
const o = () => {
|
|
2266
|
+
const i = t.startAt;
|
|
2267
|
+
e && t.disableStorage && ve(i) && e.remoteControl.seek(i);
|
|
2268
|
+
};
|
|
2269
|
+
return e == null || e.addEventListener("loaded-metadata", o), () => {
|
|
2270
|
+
e == null || e.removeEventListener("loaded-metadata", o);
|
|
2271
|
+
};
|
|
2272
|
+
}, [e]);
|
|
2273
|
+
}
|
|
2274
|
+
function Li({
|
|
2124
2275
|
darkMode: e,
|
|
2125
2276
|
playerRef: t,
|
|
2126
2277
|
controlsLayout: o,
|
|
2127
2278
|
showCaptionsButton: i
|
|
2128
2279
|
}) {
|
|
2129
|
-
const s =
|
|
2130
|
-
return
|
|
2280
|
+
const s = S(), a = v(), { hasAnnotations: l, hasQuizmarkers: c, interactive: u } = L();
|
|
2281
|
+
return ki(), Z(() => {
|
|
2131
2282
|
s && (s.remoteControl.pauseControls(), t && (typeof t == "function" ? t(s) : t.current = s));
|
|
2132
2283
|
}, [s, t]), /* @__PURE__ */ r(
|
|
2133
2284
|
"div",
|
|
2134
2285
|
{
|
|
2135
2286
|
"data-darkmode": e,
|
|
2136
|
-
className:
|
|
2137
|
-
[
|
|
2138
|
-
[
|
|
2287
|
+
className: ue(W.root, {
|
|
2288
|
+
[W.normal]: o === "normal",
|
|
2289
|
+
[W.compact]: o === "compact"
|
|
2139
2290
|
}),
|
|
2140
2291
|
children: [
|
|
2141
2292
|
o === "normal" ? /* @__PURE__ */ r(
|
|
2142
|
-
|
|
2293
|
+
Ze,
|
|
2143
2294
|
{
|
|
2144
2295
|
layout: "normal",
|
|
2145
2296
|
interactionsDisabled: a.state.interactionsDisabled,
|
|
2146
2297
|
children: [
|
|
2147
|
-
u ? /* @__PURE__ */ n(
|
|
2148
|
-
u
|
|
2149
|
-
/* @__PURE__ */ n(
|
|
2298
|
+
u || l || c ? /* @__PURE__ */ n(ti, {}) : null,
|
|
2299
|
+
u ? /* @__PURE__ */ n(q1, {}) : null,
|
|
2300
|
+
/* @__PURE__ */ n(De, {})
|
|
2150
2301
|
]
|
|
2151
2302
|
}
|
|
2152
2303
|
) : null,
|
|
2153
|
-
/* @__PURE__ */ r("div", { className:
|
|
2154
|
-
/* @__PURE__ */ n(
|
|
2155
|
-
/* @__PURE__ */ n(
|
|
2304
|
+
/* @__PURE__ */ r("div", { className: W.leftControls, children: [
|
|
2305
|
+
/* @__PURE__ */ n(t1, {}),
|
|
2306
|
+
/* @__PURE__ */ n(ri, {})
|
|
2156
2307
|
] }),
|
|
2157
|
-
/* @__PURE__ */ n("div", { className:
|
|
2308
|
+
/* @__PURE__ */ n("div", { className: W.indicators, children: /* @__PURE__ */ n(f1, {}) }),
|
|
2158
2309
|
o === "compact" ? /* @__PURE__ */ n(
|
|
2159
|
-
|
|
2310
|
+
Ze,
|
|
2160
2311
|
{
|
|
2161
2312
|
layout: "compact",
|
|
2162
2313
|
interactionsDisabled: a.state.interactionsDisabled,
|
|
2163
|
-
children: /* @__PURE__ */ n(
|
|
2314
|
+
children: /* @__PURE__ */ n(De, {})
|
|
2164
2315
|
}
|
|
2165
2316
|
) : null,
|
|
2166
|
-
/* @__PURE__ */ r("div", { className:
|
|
2167
|
-
i && /* @__PURE__ */ n(
|
|
2168
|
-
/* @__PURE__ */ n(
|
|
2317
|
+
/* @__PURE__ */ r("div", { className: W.rightControls, children: [
|
|
2318
|
+
i && /* @__PURE__ */ n(fn, {}),
|
|
2319
|
+
/* @__PURE__ */ n(To, {}),
|
|
2169
2320
|
/* @__PURE__ */ n(Uo, {})
|
|
2170
2321
|
] })
|
|
2171
2322
|
]
|
|
2172
2323
|
}
|
|
2173
2324
|
);
|
|
2174
2325
|
}
|
|
2175
|
-
function
|
|
2326
|
+
function xi(e, t) {
|
|
2176
2327
|
return e.reduce((o, i) => (Object.keys(t).includes(i.id) || (o[i.id] = !0), o), t);
|
|
2177
2328
|
}
|
|
2178
|
-
function
|
|
2329
|
+
function Mi(e, t, o, i, s) {
|
|
2179
2330
|
return (a) => {
|
|
2180
2331
|
const l = a.detail.currentTime, c = !o.paused, u = Math.min(o.duration * 0.05, 2);
|
|
2181
2332
|
l >= e.time && l < e.time + u && !i[e.id] && (s({ ...i, [e.id]: !0 }), t(e, c));
|
|
2182
2333
|
};
|
|
2183
2334
|
}
|
|
2184
|
-
function
|
|
2185
|
-
const e =
|
|
2335
|
+
function Pi() {
|
|
2336
|
+
const e = S(), { quizMarkers: t, onQuizMarkerShow: o } = L(), [i, s] = k(
|
|
2186
2337
|
t.reduce((a, l) => (a[l.id] = !1, a), {})
|
|
2187
2338
|
);
|
|
2188
|
-
|
|
2339
|
+
Z(() => {
|
|
2189
2340
|
if (!e)
|
|
2190
2341
|
return;
|
|
2191
|
-
t.length > Object.keys(i).length && s(
|
|
2342
|
+
t.length > Object.keys(i).length && s(xi(t, i));
|
|
2192
2343
|
const a = [], l = (c) => {
|
|
2193
|
-
var
|
|
2194
|
-
const u = (
|
|
2344
|
+
var _;
|
|
2345
|
+
const u = (_ = c == null ? void 0 : c.request) == null ? void 0 : _.detail, d = t.reduce((b, w) => (b[w.id] = w.time <= u, b), {});
|
|
2195
2346
|
s({ ...i, ...d });
|
|
2196
2347
|
};
|
|
2197
2348
|
e.addEventListener("seeked", l);
|
|
2198
2349
|
for (const c of t) {
|
|
2199
|
-
const u =
|
|
2350
|
+
const u = Mi(
|
|
2200
2351
|
c,
|
|
2201
2352
|
o,
|
|
2202
2353
|
e,
|
|
@@ -2212,18 +2363,12 @@ function fi() {
|
|
|
2212
2363
|
};
|
|
2213
2364
|
}, [t, e, i]);
|
|
2214
2365
|
}
|
|
2215
|
-
function
|
|
2216
|
-
return
|
|
2217
|
-
}
|
|
2218
|
-
function bi(e) {
|
|
2219
|
-
return Array.isArray(e) && typeof e[0] == "object";
|
|
2220
|
-
}
|
|
2221
|
-
function gi(e) {
|
|
2222
|
-
return bi(e) && e.length === 1 ? e[0].src : e;
|
|
2366
|
+
function Ni() {
|
|
2367
|
+
return Pi(), null;
|
|
2223
2368
|
}
|
|
2224
|
-
const
|
|
2369
|
+
const Ii = {}, re = () => {
|
|
2225
2370
|
};
|
|
2226
|
-
function
|
|
2371
|
+
function Oi({
|
|
2227
2372
|
title: e,
|
|
2228
2373
|
playerRef: t,
|
|
2229
2374
|
src: o,
|
|
@@ -2234,98 +2379,106 @@ function Ii({
|
|
|
2234
2379
|
locale: c = "en",
|
|
2235
2380
|
annotations: u = [],
|
|
2236
2381
|
quizMarkers: d = [],
|
|
2237
|
-
interactive:
|
|
2238
|
-
onAnnotationClick:
|
|
2239
|
-
onQuizMarkerClick: w =
|
|
2240
|
-
onQuizMarkerShow: y =
|
|
2241
|
-
onInteractivePinClick:
|
|
2242
|
-
onCaptionsDelete:
|
|
2382
|
+
interactive: _ = !1,
|
|
2383
|
+
onAnnotationClick: b = re,
|
|
2384
|
+
onQuizMarkerClick: w = re,
|
|
2385
|
+
onQuizMarkerShow: y = re,
|
|
2386
|
+
onInteractivePinClick: x = re,
|
|
2387
|
+
onCaptionsDelete: p,
|
|
2243
2388
|
interactiveMenuElements: C = [],
|
|
2244
|
-
kebabMenuElements:
|
|
2245
|
-
darkMode:
|
|
2246
|
-
autoLoadCaptionSrc:
|
|
2247
|
-
forceComments:
|
|
2248
|
-
disableCaptionSettings:
|
|
2249
|
-
disableStorage:
|
|
2250
|
-
startAt:
|
|
2251
|
-
crossOrigin:
|
|
2252
|
-
captionOffsetOverride:
|
|
2253
|
-
disableInteractivePinRanges:
|
|
2254
|
-
customOverlay:
|
|
2255
|
-
controlsLayout:
|
|
2389
|
+
kebabMenuElements: H = [],
|
|
2390
|
+
darkMode: E = !1,
|
|
2391
|
+
autoLoadCaptionSrc: P = "",
|
|
2392
|
+
forceComments: I = !1,
|
|
2393
|
+
disableCaptionSettings: B = !1,
|
|
2394
|
+
disableStorage: V = !1,
|
|
2395
|
+
startAt: O,
|
|
2396
|
+
crossOrigin: j,
|
|
2397
|
+
captionOffsetOverride: fe,
|
|
2398
|
+
disableInteractivePinRanges: _e = [],
|
|
2399
|
+
customOverlay: ee,
|
|
2400
|
+
controlsLayout: ne = "compact"
|
|
2256
2401
|
}) {
|
|
2257
|
-
const { contextValue:
|
|
2402
|
+
const { contextValue: Ce, shortcuts: ct, storage: ut } = hi(
|
|
2258
2403
|
a,
|
|
2404
|
+
I,
|
|
2259
2405
|
B,
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
)
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
bt(H) ? Le("audio") : (gt(H) || vt(H) || wt(H)) && Le("video");
|
|
2406
|
+
O
|
|
2407
|
+
), { i18n: Ve } = h();
|
|
2408
|
+
Z(() => {
|
|
2409
|
+
Ve.changeLanguage(c);
|
|
2410
|
+
}, [Ve, c]);
|
|
2411
|
+
const [oe, ie] = k("none"), dt = f((T) => {
|
|
2412
|
+
Lt(T) ? ie("audio") : (xt(T) || Mt(T) || Pt(T)) && ie("video");
|
|
2268
2413
|
}, []);
|
|
2269
2414
|
return /* @__PURE__ */ n(
|
|
2270
|
-
|
|
2415
|
+
Ht,
|
|
2271
2416
|
{
|
|
2417
|
+
title: e,
|
|
2272
2418
|
hideFullScreen: a,
|
|
2273
2419
|
comments: l,
|
|
2274
2420
|
captions: i,
|
|
2275
2421
|
thumbnail: s,
|
|
2276
2422
|
annotations: u,
|
|
2277
2423
|
quizMarkers: d,
|
|
2278
|
-
interactive:
|
|
2279
|
-
onAnnotationClick:
|
|
2424
|
+
interactive: _,
|
|
2425
|
+
onAnnotationClick: b,
|
|
2280
2426
|
onQuizMarkerClick: w,
|
|
2281
|
-
onInteractivePinClick:
|
|
2427
|
+
onInteractivePinClick: x,
|
|
2282
2428
|
interactiveMenuElements: C,
|
|
2283
|
-
kebabMenuElements:
|
|
2284
|
-
darkMode:
|
|
2285
|
-
forceComments:
|
|
2286
|
-
disableCaptionSettings:
|
|
2287
|
-
disableStorage:
|
|
2288
|
-
captionOffsetOverride:
|
|
2289
|
-
disableInteractivePinRanges:
|
|
2429
|
+
kebabMenuElements: H,
|
|
2430
|
+
darkMode: E,
|
|
2431
|
+
forceComments: I,
|
|
2432
|
+
disableCaptionSettings: B,
|
|
2433
|
+
disableStorage: V,
|
|
2434
|
+
captionOffsetOverride: fe,
|
|
2435
|
+
disableInteractivePinRanges: _e,
|
|
2290
2436
|
onQuizMarkerShow: y,
|
|
2291
|
-
onCaptionsDelete:
|
|
2292
|
-
controlsLayout:
|
|
2293
|
-
|
|
2294
|
-
|
|
2437
|
+
onCaptionsDelete: p,
|
|
2438
|
+
controlsLayout: ne,
|
|
2439
|
+
startAt: O,
|
|
2440
|
+
children: /* @__PURE__ */ n(Rt, { contextValue: Ce, children: /* @__PURE__ */ r(
|
|
2441
|
+
Nt,
|
|
2295
2442
|
{
|
|
2296
|
-
"data-version": "0.5.
|
|
2297
|
-
crossOrigin:
|
|
2298
|
-
storage:
|
|
2443
|
+
"data-version": "0.5.6",
|
|
2444
|
+
crossOrigin: j,
|
|
2445
|
+
storage: V ? null : ut,
|
|
2299
2446
|
title: e,
|
|
2300
|
-
src:
|
|
2301
|
-
keyShortcuts:
|
|
2447
|
+
src: ui(o),
|
|
2448
|
+
keyShortcuts: ct,
|
|
2302
2449
|
playsInline: !0,
|
|
2303
|
-
keyDisabled:
|
|
2304
|
-
onTextTracksChange: (
|
|
2305
|
-
const
|
|
2306
|
-
(
|
|
2450
|
+
keyDisabled: Ce.state.interactionsDisabled || Ce.state.globalKeysDisabled,
|
|
2451
|
+
onTextTracksChange: (T) => {
|
|
2452
|
+
const Re = T == null ? void 0 : T.findIndex(
|
|
2453
|
+
(mt) => mt.src === P
|
|
2307
2454
|
);
|
|
2308
|
-
|
|
2455
|
+
Re > -1 && (T[Re].mode = "showing");
|
|
2456
|
+
},
|
|
2457
|
+
onProviderSetup: dt,
|
|
2458
|
+
onQualitiesChange: (T) => {
|
|
2459
|
+
T.length > 0 && oe === "none" && ie("video");
|
|
2460
|
+
},
|
|
2461
|
+
onLoadedData: () => {
|
|
2462
|
+
oe === "none" && ie("audio");
|
|
2309
2463
|
},
|
|
2310
|
-
onProviderSetup: st,
|
|
2311
2464
|
children: [
|
|
2312
|
-
/* @__PURE__ */ r(
|
|
2313
|
-
|
|
2314
|
-
|
|
2465
|
+
/* @__PURE__ */ r(It, { className: Ii.mediaProvider, children: [
|
|
2466
|
+
oe === "audio" && /* @__PURE__ */ n(fi, {}),
|
|
2467
|
+
oe === "video" && /* @__PURE__ */ n(_i, {})
|
|
2315
2468
|
] }),
|
|
2316
|
-
/* @__PURE__ */ n(
|
|
2317
|
-
|
|
2469
|
+
/* @__PURE__ */ n(pn, {}),
|
|
2470
|
+
ee && /* @__PURE__ */ n(Vn, { renderOverlay: ee }),
|
|
2318
2471
|
/* @__PURE__ */ n(
|
|
2319
|
-
|
|
2472
|
+
Li,
|
|
2320
2473
|
{
|
|
2321
|
-
darkMode:
|
|
2474
|
+
darkMode: E,
|
|
2322
2475
|
playerRef: t,
|
|
2323
|
-
showCaptionsButton: !
|
|
2324
|
-
controlsLayout:
|
|
2476
|
+
showCaptionsButton: !B,
|
|
2477
|
+
controlsLayout: ne
|
|
2325
2478
|
}
|
|
2326
2479
|
),
|
|
2327
|
-
/* @__PURE__ */ n(
|
|
2328
|
-
!!d.length && /* @__PURE__ */ n(
|
|
2480
|
+
/* @__PURE__ */ n(Dt, { annotations: u }),
|
|
2481
|
+
!!d.length && /* @__PURE__ */ n(Ni, {})
|
|
2329
2482
|
]
|
|
2330
2483
|
}
|
|
2331
2484
|
) })
|
|
@@ -2333,10 +2486,10 @@ function Ii({
|
|
|
2333
2486
|
);
|
|
2334
2487
|
}
|
|
2335
2488
|
export {
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2489
|
+
bn as CAPTION_FONT_SIZE_MULTIPLIERS,
|
|
2490
|
+
vn as COMMENT_DURATION,
|
|
2491
|
+
Y as PLAYBACK_RATES,
|
|
2492
|
+
Oi as StudioPlayer,
|
|
2493
|
+
g as useMediaState,
|
|
2494
|
+
Zi as useMediaStore
|
|
2342
2495
|
};
|