@instructure/studio-player 0.4.5 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/StudioPlayer/StudioPlayer.d.ts +2 -42
- package/dist/StudioPlayer/hooks/useCallbackOnKey.d.ts +1 -1
- package/dist/StudioPlayer/layouts/controls/ControlsLayout.d.ts +8 -0
- package/dist/StudioPlayer/layouts/index.d.ts +3 -0
- package/dist/StudioPlayer/storyUtils.d.ts +12 -0
- package/dist/index-Dn2U025w.css +1 -0
- package/dist/studio-player.es.js +1410 -1439
- package/package.json +10 -10
- package/dist/index-BhO_pnkp.css +0 -1
- /package/dist/StudioPlayer/layouts/{AudioLayout.d.ts → media/AudioLayout.d.ts} +0 -0
- /package/dist/StudioPlayer/layouts/{VideoLayout.d.ts → media/VideoLayout.d.ts} +0 -0
package/dist/studio-player.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import './index-
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as n, jsxs as
|
|
5
|
-
import { createContext as
|
|
6
|
-
import { useMediaPlayer as T, Spinner as
|
|
7
|
-
import { useMediaState as
|
|
8
|
-
import { initReactI18next as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useFloating as de, autoUpdate as me,
|
|
12
|
-
const
|
|
1
|
+
import './index-Dn2U025w.css';var lt = Object.defineProperty;
|
|
2
|
+
var rt = (e, t, o) => t in e ? lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
+
var V = (e, t, o) => rt(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import { jsx as n, jsxs as r, Fragment as X } from "react/jsx-runtime";
|
|
5
|
+
import { createContext as ce, useContext as ue, useState as x, useCallback as p, useEffect as F, useMemo as A, useRef as q, forwardRef as ct } from "react";
|
|
6
|
+
import { useMediaPlayer as T, Spinner as re, useMediaState as b, useMediaRemote as ie, isTrackCaptionKind as ut, Track as dt, Captions as mt, usePlaybackRateOptions as ht, useCaptionOptions as pt, useVideoQualityOptions as _t, Poster as ft, FullscreenButton as Ct, Time as xe, TimeSlider as W, VolumeSlider as J, isAudioProvider as bt, isVideoProvider as gt, isYouTubeProvider as vt, isVimeoProvider as wt, MediaPlayer as kt, MediaProvider as yt } from "@vidstack/react";
|
|
7
|
+
import { useMediaState as Vi, useMediaStore as Ti } from "@vidstack/react";
|
|
8
|
+
import { initReactI18next as Lt, useTranslation as _ } from "react-i18next";
|
|
9
|
+
import Mt from "i18next";
|
|
10
|
+
import xt from "i18next-resources-to-backend";
|
|
11
|
+
import { useFloating as de, autoUpdate as me, shift as He, offset as Ae, arrow as Re, useListNavigation as Pt, useDismiss as he, useInteractions as pe, FloatingFocusManager as _e, FloatingArrow as Be, detectOverflow as Nt, useMergeRefs as It } from "@floating-ui/react";
|
|
12
|
+
const St = (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 xt = (e, t, o) => {
|
|
|
22
22
|
);
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(e) =>
|
|
25
|
+
Mt.use(Lt).use(
|
|
26
|
+
xt(
|
|
27
|
+
(e) => St(/* @__PURE__ */ Object.assign({ "./locales/ar.json": () => import("./ar-B8l4Fn4I.js"), "./locales/ca.json": () => import("./ca-D-9XXbq2.js"), "./locales/cy.json": () => import("./cy-7BijMmgd.js"), "./locales/da-x-k12.json": () => import("./da-x-k12-CJ2niKwf.js"), "./locales/da.json": () => import("./da-DAY_l_21.js"), "./locales/de.json": () => import("./de-ya8bO5Ja.js"), "./locales/en-AU-x-unimelb.json": () => import("./en-AU-x-unimelb-irzsO2mb.js"), "./locales/en-GB-x-ukhe.json": () => import("./en-GB-x-ukhe-G4m87b7j.js"), "./locales/en.json": () => import("./en-D6AICPim.js"), "./locales/en_AU.json": () => import("./en_AU-DB3OHfTc.js"), "./locales/en_CY.json": () => import("./en_CY-DhDZF-tZ.js"), "./locales/en_GB.json": () => import("./en_GB-BK_q7w5s.js"), "./locales/es.json": () => import("./es-DZ5Y82Uj.js"), "./locales/es_ES.json": () => import("./es_ES-CQMBItY2.js"), "./locales/fi.json": () => import("./fi-B4Pz1t-t.js"), "./locales/fr.json": () => import("./fr-BteehQcx.js"), "./locales/fr_CA.json": () => import("./fr_CA-BHaXh8MX.js"), "./locales/ga.json": () => import("./ga-Bx3a9UKG.js"), "./locales/hi.json": () => import("./hi-DHG0_yeQ.js"), "./locales/ht.json": () => import("./ht-C2IdMP2u.js"), "./locales/id.json": () => import("./id-uk30JX2p.js"), "./locales/is.json": () => import("./is-yOmqk5qU.js"), "./locales/it.json": () => import("./it-BM3Um8gU.js"), "./locales/ja.json": () => import("./ja-BdL71P8g.js"), "./locales/kl.json": () => import("./kl-BeSfwm2D.js"), "./locales/mi.json": () => import("./mi-D2uHHivq.js"), "./locales/ms.json": () => import("./ms--AuIVHSL.js"), "./locales/nb-x-k12.json": () => import("./nb-x-k12-CxOnhM4J.js"), "./locales/nb.json": () => import("./nb-CXLIMCwW.js"), "./locales/nl.json": () => import("./nl-CsVJ-oQV.js"), "./locales/pl.json": () => import("./pl-BT0sRFhU.js"), "./locales/pt.json": () => import("./pt-Anx8EAjZ.js"), "./locales/pt_BR.json": () => import("./pt_BR-Be3UULFe.js"), "./locales/ru.json": () => import("./ru-DPUYT2zh.js"), "./locales/sl.json": () => import("./sl-QnHcT_i1.js"), "./locales/sv-x-k12.json": () => import("./sv-x-k12-DLoiJ1OB.js"), "./locales/sv.json": () => import("./sv-D_WuG6Ug.js"), "./locales/th.json": () => import("./th-CcE5hCow.js"), "./locales/vi.json": () => import("./vi-De-Nfy-i.js"), "./locales/zh-Hans.json": () => import("./zh-Hans-CU7SSIXE.js"), "./locales/zh-Hant.json": () => import("./zh-Hant-BMd136-f.js"), "./locales/zh.json": () => import("./zh-ClimEyGq.js"), "./locales/zh_HK.json": () => import("./zh_HK-Culy5KI5.js") }), `./locales/${e}.json`, 3)
|
|
28
28
|
)
|
|
29
29
|
).init({
|
|
30
30
|
fallbackLng: "en",
|
|
@@ -35,138 +35,140 @@ wt.use(vt).use(
|
|
|
35
35
|
escapeValue: !1
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const
|
|
39
|
-
function
|
|
38
|
+
const Oe = ce(null);
|
|
39
|
+
function Et({
|
|
40
40
|
children: e,
|
|
41
41
|
contextValue: t
|
|
42
42
|
}) {
|
|
43
|
-
return /* @__PURE__ */ n(
|
|
43
|
+
return /* @__PURE__ */ n(Oe.Provider, { value: t, children: e });
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
const e = ue(
|
|
45
|
+
function g() {
|
|
46
|
+
const e = ue(Oe);
|
|
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
|
|
53
|
+
const Fe = ce(null);
|
|
54
|
+
function Vt({
|
|
55
55
|
hideFullScreen: e,
|
|
56
56
|
comments: t,
|
|
57
57
|
captions: o,
|
|
58
58
|
thumbnail: i,
|
|
59
59
|
annotations: s,
|
|
60
60
|
quizMarkers: a,
|
|
61
|
-
interactive:
|
|
62
|
-
onAnnotationClick:
|
|
63
|
-
onQuizMarkerClick:
|
|
64
|
-
onInteractivePinClick:
|
|
65
|
-
interactiveMenuElements:
|
|
61
|
+
interactive: l,
|
|
62
|
+
onAnnotationClick: c,
|
|
63
|
+
onQuizMarkerClick: u,
|
|
64
|
+
onInteractivePinClick: d,
|
|
65
|
+
interactiveMenuElements: f,
|
|
66
66
|
kebabMenuElements: v,
|
|
67
|
-
darkMode:
|
|
67
|
+
darkMode: w,
|
|
68
68
|
children: y,
|
|
69
|
-
forceComments:
|
|
70
|
-
disableCaptionSettings:
|
|
69
|
+
forceComments: N,
|
|
70
|
+
disableCaptionSettings: h,
|
|
71
71
|
disableStorage: C,
|
|
72
|
-
captionOffsetOverride:
|
|
73
|
-
disableInteractivePinRanges:
|
|
74
|
-
onQuizMarkerShow:
|
|
75
|
-
onCaptionsDelete:
|
|
72
|
+
captionOffsetOverride: k,
|
|
73
|
+
disableInteractivePinRanges: I,
|
|
74
|
+
onQuizMarkerShow: Z,
|
|
75
|
+
onCaptionsDelete: B,
|
|
76
|
+
controlsLayout: D
|
|
76
77
|
}) {
|
|
77
|
-
const
|
|
78
|
+
const j = {
|
|
78
79
|
hideFullScreen: e,
|
|
79
80
|
comments: t,
|
|
80
81
|
captions: o,
|
|
81
82
|
thumbnail: i,
|
|
82
83
|
annotations: s,
|
|
83
84
|
quizMarkers: a,
|
|
84
|
-
interactive:
|
|
85
|
-
onAnnotationClick:
|
|
86
|
-
onQuizMarkerClick:
|
|
87
|
-
onInteractivePinClick:
|
|
88
|
-
interactiveMenuElements:
|
|
85
|
+
interactive: l,
|
|
86
|
+
onAnnotationClick: c,
|
|
87
|
+
onQuizMarkerClick: u,
|
|
88
|
+
onInteractivePinClick: d,
|
|
89
|
+
interactiveMenuElements: f,
|
|
89
90
|
kebabMenuElements: v,
|
|
90
|
-
darkMode:
|
|
91
|
+
darkMode: w,
|
|
91
92
|
hasComments: t.length > 0,
|
|
92
93
|
hasAnnotations: s.length > 0,
|
|
93
94
|
hasQuizmarkers: a.length > 0,
|
|
94
|
-
forceComments:
|
|
95
|
-
disableCaptionSettings:
|
|
95
|
+
forceComments: N,
|
|
96
|
+
disableCaptionSettings: h,
|
|
96
97
|
disableStorage: C,
|
|
97
|
-
captionOffsetOverride:
|
|
98
|
-
disableInteractivePinRanges:
|
|
99
|
-
onQuizMarkerShow:
|
|
100
|
-
onCaptionsDelete:
|
|
98
|
+
captionOffsetOverride: k,
|
|
99
|
+
disableInteractivePinRanges: I,
|
|
100
|
+
onQuizMarkerShow: Z,
|
|
101
|
+
onCaptionsDelete: B,
|
|
102
|
+
controlsLayout: D
|
|
101
103
|
};
|
|
102
|
-
return /* @__PURE__ */ n(
|
|
104
|
+
return /* @__PURE__ */ n(Fe.Provider, { value: j, children: y });
|
|
103
105
|
}
|
|
104
106
|
function L() {
|
|
105
|
-
const e = ue(
|
|
107
|
+
const e = ue(Fe);
|
|
106
108
|
if (!e)
|
|
107
109
|
throw new Error(
|
|
108
110
|
"useStudioPlayerPropsContext must be used within a StudioPlayerPropsContextProvider"
|
|
109
111
|
);
|
|
110
112
|
return e;
|
|
111
113
|
}
|
|
112
|
-
const
|
|
114
|
+
const Tt = "_annotation-overlay_1kxzn_1", Ht = {
|
|
113
115
|
"annotation-overlay": "_annotation-overlay_1kxzn_1",
|
|
114
|
-
annotationOverlay:
|
|
115
|
-
},
|
|
116
|
+
annotationOverlay: Tt
|
|
117
|
+
}, Pe = 0.25, At = (e, t) => {
|
|
116
118
|
let o = !1;
|
|
117
119
|
return (i) => {
|
|
118
120
|
const s = i.detail.currentTime;
|
|
119
|
-
s >= e.time && s < e.time +
|
|
121
|
+
s >= e.time && s < e.time + Pe && !o && (o = !0, t(e)), (s < e.time || s >= e.time + Pe) && o && (o = !1);
|
|
120
122
|
};
|
|
121
123
|
};
|
|
122
|
-
function
|
|
123
|
-
const t = T(), o =
|
|
124
|
+
function Rt({ annotations: e }) {
|
|
125
|
+
const t = T(), o = g(), i = L(), [s, a] = x(
|
|
124
126
|
null
|
|
125
|
-
),
|
|
126
|
-
(
|
|
127
|
-
t == null || t.pause(), i.interactive || o.disableInteractions(), a(
|
|
127
|
+
), l = p(
|
|
128
|
+
(u) => {
|
|
129
|
+
t == null || t.pause(), i.interactive || o.disableInteractions(), a(u);
|
|
128
130
|
},
|
|
129
131
|
[t, o]
|
|
130
|
-
),
|
|
132
|
+
), c = () => {
|
|
131
133
|
i.interactive || (t == null || t.play(), o.enableInteractions()), a(null);
|
|
132
134
|
};
|
|
133
|
-
return
|
|
135
|
+
return F(() => {
|
|
134
136
|
if (!t)
|
|
135
137
|
return;
|
|
136
|
-
const
|
|
137
|
-
for (const
|
|
138
|
-
const
|
|
139
|
-
t.addEventListener("time-update",
|
|
138
|
+
const u = [];
|
|
139
|
+
for (const d of e) {
|
|
140
|
+
const f = At(d, l);
|
|
141
|
+
t.addEventListener("time-update", f), u.push(f);
|
|
140
142
|
}
|
|
141
143
|
if (s) {
|
|
142
|
-
const
|
|
143
|
-
(
|
|
144
|
+
const d = e.find(
|
|
145
|
+
(f) => f.id === s.id
|
|
144
146
|
);
|
|
145
|
-
|
|
147
|
+
d ? a(d) : (a(null), o.enableInteractions());
|
|
146
148
|
}
|
|
147
149
|
return () => {
|
|
148
|
-
for (const
|
|
149
|
-
t.removeEventListener("time-update",
|
|
150
|
+
for (const d of u)
|
|
151
|
+
t.removeEventListener("time-update", d);
|
|
150
152
|
};
|
|
151
|
-
}, [t, e]), s ? /* @__PURE__ */ n("div", { className:
|
|
153
|
+
}, [t, e]), s ? /* @__PURE__ */ n("div", { className: Ht.annotationOverlay, children: s.render(c) }) : null;
|
|
152
154
|
}
|
|
153
|
-
const
|
|
155
|
+
const Bt = "_media-buffering-indicator_1fwjr_1", Ot = "_media-buffering-spinner_1fwjr_17", Ft = "_media-buffering-spin_1fwjr_17", Zt = "_media-buffering-track_1fwjr_22", Dt = "_media-buffering-track-fill_1fwjr_27", ee = {
|
|
154
156
|
"media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
|
|
155
|
-
mediaBufferingIndicator:
|
|
157
|
+
mediaBufferingIndicator: Bt,
|
|
156
158
|
"media-buffering-spinner": "_media-buffering-spinner_1fwjr_17",
|
|
157
|
-
mediaBufferingSpinner:
|
|
159
|
+
mediaBufferingSpinner: Ot,
|
|
158
160
|
"media-buffering-spin": "_media-buffering-spin_1fwjr_17",
|
|
159
|
-
mediaBufferingSpin:
|
|
161
|
+
mediaBufferingSpin: Ft,
|
|
160
162
|
"media-buffering-track": "_media-buffering-track_1fwjr_22",
|
|
161
|
-
mediaBufferingTrack:
|
|
163
|
+
mediaBufferingTrack: Zt,
|
|
162
164
|
"media-buffering-track-fill": "_media-buffering-track-fill_1fwjr_27",
|
|
163
|
-
mediaBufferingTrackFill:
|
|
165
|
+
mediaBufferingTrackFill: Dt
|
|
164
166
|
};
|
|
165
|
-
function
|
|
166
|
-
return /* @__PURE__ */ n("div", { className: ee.mediaBufferingIndicator, children: /* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */ n(
|
|
167
|
+
function Ze() {
|
|
168
|
+
return /* @__PURE__ */ n("div", { className: ee.mediaBufferingIndicator, children: /* @__PURE__ */ r(re.Root, { className: ee.mediaBufferingSpinner, size: 96, children: [
|
|
169
|
+
/* @__PURE__ */ n(re.Track, { className: ee.mediaBufferingTrack, width: 8 }),
|
|
168
170
|
/* @__PURE__ */ n(
|
|
169
|
-
|
|
171
|
+
re.TrackFill,
|
|
170
172
|
{
|
|
171
173
|
className: ee.mediaBufferingTrackFill,
|
|
172
174
|
width: 8
|
|
@@ -174,17 +176,297 @@ function Re() {
|
|
|
174
176
|
)
|
|
175
177
|
] }) });
|
|
176
178
|
}
|
|
177
|
-
const
|
|
179
|
+
const jt = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
|
|
180
|
+
function fe(e, t = !1) {
|
|
181
|
+
F(() => {
|
|
182
|
+
const o = new AbortController();
|
|
183
|
+
return document.addEventListener(
|
|
184
|
+
"keydown",
|
|
185
|
+
(i) => {
|
|
186
|
+
var s;
|
|
187
|
+
return (s = e[i.key]) == null ? void 0 : s.call(e, i);
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
passive: !0,
|
|
191
|
+
signal: o.signal
|
|
192
|
+
}
|
|
193
|
+
), t && window.addEventListener(
|
|
194
|
+
"keydown",
|
|
195
|
+
(i) => {
|
|
196
|
+
jt.includes(i.code) && i.preventDefault();
|
|
197
|
+
},
|
|
198
|
+
{ signal: o.signal }
|
|
199
|
+
), () => {
|
|
200
|
+
o.abort();
|
|
201
|
+
};
|
|
202
|
+
}, [e]);
|
|
203
|
+
}
|
|
204
|
+
function Kt(e) {
|
|
205
|
+
const t = A(() => ({ Escape: e }), [e]);
|
|
206
|
+
return fe(t);
|
|
207
|
+
}
|
|
208
|
+
const De = (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" }) }), zt = "_controls-overlay_poi8b_1", Ut = "_keyboard-shortcuts-overlay_poi8b_11", $t = "_screen-reader-content_poi8b_75", qt = "_controls-button_poi8b_89", Gt = "_keyboard-shortcuts-button_poi8b_101", Wt = "_kebab-menu-button_poi8b_110", Qt = "_kebab-menu_poi8b_110", Yt = "_kebab-menu-item_poi8b_139", Xt = "_close-button_poi8b_178", Jt = "_arrow_poi8b_192", S = {
|
|
209
|
+
"controls-overlay": "_controls-overlay_poi8b_1",
|
|
210
|
+
controlsOverlay: zt,
|
|
211
|
+
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_poi8b_11",
|
|
212
|
+
keyboardShortcutsOverlay: Ut,
|
|
213
|
+
"screen-reader-content": "_screen-reader-content_poi8b_75",
|
|
214
|
+
screenReaderContent: $t,
|
|
215
|
+
"controls-button": "_controls-button_poi8b_89",
|
|
216
|
+
controlsButton: qt,
|
|
217
|
+
"keyboard-shortcuts-button": "_keyboard-shortcuts-button_poi8b_101",
|
|
218
|
+
keyboardShortcutsButton: Gt,
|
|
219
|
+
"kebab-menu-button": "_kebab-menu-button_poi8b_110",
|
|
220
|
+
kebabMenuButton: Wt,
|
|
221
|
+
"kebab-menu": "_kebab-menu_poi8b_110",
|
|
222
|
+
kebabMenu: Qt,
|
|
223
|
+
"kebab-menu-item": "_kebab-menu-item_poi8b_139",
|
|
224
|
+
kebabMenuItem: Yt,
|
|
225
|
+
"close-button": "_close-button_poi8b_178",
|
|
226
|
+
closeButton: Xt,
|
|
227
|
+
arrow: Jt
|
|
228
|
+
};
|
|
229
|
+
function en({ onClose: e }) {
|
|
230
|
+
const { t } = _();
|
|
231
|
+
Kt(e);
|
|
232
|
+
const o = (i) => {
|
|
233
|
+
i && i.focus();
|
|
234
|
+
};
|
|
235
|
+
return /* @__PURE__ */ r(
|
|
236
|
+
"div",
|
|
237
|
+
{
|
|
238
|
+
className: S.keyboardShortcutsOverlay,
|
|
239
|
+
tabIndex: 0,
|
|
240
|
+
ref: o,
|
|
241
|
+
role: "dialog",
|
|
242
|
+
"aria-label": t("KEYBOARD_SHORTCUTS"),
|
|
243
|
+
children: [
|
|
244
|
+
/* @__PURE__ */ r("header", { children: [
|
|
245
|
+
/* @__PURE__ */ n("h2", { children: t("KEYBOARD_SHORTCUTS") }),
|
|
246
|
+
/* @__PURE__ */ n(
|
|
247
|
+
"button",
|
|
248
|
+
{
|
|
249
|
+
type: "button",
|
|
250
|
+
className: S.closeButton,
|
|
251
|
+
onClick: e,
|
|
252
|
+
"aria-label": t("CLOSE"),
|
|
253
|
+
children: /* @__PURE__ */ n(De, {})
|
|
254
|
+
}
|
|
255
|
+
)
|
|
256
|
+
] }),
|
|
257
|
+
/* @__PURE__ */ r("table", { children: [
|
|
258
|
+
/* @__PURE__ */ n("caption", { className: S.screenReaderContent, children: t("KEYBOARD_SHORTCUTS") }),
|
|
259
|
+
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ r("tr", { children: [
|
|
260
|
+
/* @__PURE__ */ n("th", { children: t("ACTION") }),
|
|
261
|
+
/* @__PURE__ */ n("th", { children: t("SHORTCUT") })
|
|
262
|
+
] }) }),
|
|
263
|
+
/* @__PURE__ */ r("tbody", { children: [
|
|
264
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
265
|
+
/* @__PURE__ */ n("td", { children: t("SEEK_BACKWARD", { seconds: 5 }) }),
|
|
266
|
+
/* @__PURE__ */ n("td", { children: t("LEFT_ARROW") })
|
|
267
|
+
] }),
|
|
268
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
269
|
+
/* @__PURE__ */ n("td", { children: t("SEEK_FORWARD", { seconds: 5 }) }),
|
|
270
|
+
/* @__PURE__ */ n("td", { children: t("RIGHT_ARROW") })
|
|
271
|
+
] }),
|
|
272
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
273
|
+
/* @__PURE__ */ n("td", { children: t("SEEK_BACKWARD", { seconds: 10 }) }),
|
|
274
|
+
/* @__PURE__ */ n("td", { children: "J" })
|
|
275
|
+
] }),
|
|
276
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
277
|
+
/* @__PURE__ */ n("td", { children: t("SEEK_FORWARD", { seconds: 10 }) }),
|
|
278
|
+
/* @__PURE__ */ n("td", { children: "L" })
|
|
279
|
+
] }),
|
|
280
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
281
|
+
/* @__PURE__ */ n("td", { children: t("INCREASE_VOLUME", { percent: 5 }) }),
|
|
282
|
+
/* @__PURE__ */ n("td", { children: t("UP_ARROW") })
|
|
283
|
+
] }),
|
|
284
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
285
|
+
/* @__PURE__ */ n("td", { children: t("DECREASE_VOLUME", { percent: 5 }) }),
|
|
286
|
+
/* @__PURE__ */ n("td", { children: t("DOWN_ARROW") })
|
|
287
|
+
] }),
|
|
288
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
289
|
+
/* @__PURE__ */ n("td", { children: t("TOGGLE_MUTED") }),
|
|
290
|
+
/* @__PURE__ */ n("td", { children: "M" })
|
|
291
|
+
] }),
|
|
292
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
293
|
+
/* @__PURE__ */ n("td", { children: t("TOGGLE_PLAY_PAUSE") }),
|
|
294
|
+
/* @__PURE__ */ r("td", { children: [
|
|
295
|
+
t("SPACE"),
|
|
296
|
+
", K"
|
|
297
|
+
] })
|
|
298
|
+
] }),
|
|
299
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
300
|
+
/* @__PURE__ */ n("td", { children: t("ENTER_FULLSCREEN") }),
|
|
301
|
+
/* @__PURE__ */ n("td", { children: "F" })
|
|
302
|
+
] }),
|
|
303
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
304
|
+
/* @__PURE__ */ n("td", { children: t("EXIT_FULLSCREEN") }),
|
|
305
|
+
/* @__PURE__ */ n("td", { children: "Esc, F" })
|
|
306
|
+
] }),
|
|
307
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
308
|
+
/* @__PURE__ */ n("td", { children: t("TOGGLE_CAPTIONS") }),
|
|
309
|
+
/* @__PURE__ */ n("td", { children: "C" })
|
|
310
|
+
] }),
|
|
311
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
312
|
+
/* @__PURE__ */ n("td", { children: t("NEXT_CAPTION_LANGUAGE") }),
|
|
313
|
+
/* @__PURE__ */ n("td", { children: "V" })
|
|
314
|
+
] }),
|
|
315
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
316
|
+
/* @__PURE__ */ n("td", { children: t("PREVIOUS_CAPTION_LANGUAGE") }),
|
|
317
|
+
/* @__PURE__ */ n("td", { children: "X" })
|
|
318
|
+
] }),
|
|
319
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
320
|
+
/* @__PURE__ */ n("td", { children: t("DECREASE_PLAYBACK_SPEED") }),
|
|
321
|
+
/* @__PURE__ */ n("td", { children: "A" })
|
|
322
|
+
] }),
|
|
323
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
324
|
+
/* @__PURE__ */ n("td", { children: t("RESET_PLAYBACK_SPEED") }),
|
|
325
|
+
/* @__PURE__ */ n("td", { children: "S" })
|
|
326
|
+
] }),
|
|
327
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
328
|
+
/* @__PURE__ */ n("td", { children: t("INCREASE_PLAYBACK_SPEED") }),
|
|
329
|
+
/* @__PURE__ */ n("td", { children: "D" })
|
|
330
|
+
] }),
|
|
331
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
332
|
+
/* @__PURE__ */ n("td", { children: t("JUMP_TO_START") }),
|
|
333
|
+
/* @__PURE__ */ n("td", { children: "0" })
|
|
334
|
+
] }),
|
|
335
|
+
/* @__PURE__ */ r("tr", { children: [
|
|
336
|
+
/* @__PURE__ */ n("td", { children: t("JUMP_TO_PERCENTAGE") }),
|
|
337
|
+
/* @__PURE__ */ n("td", { children: "1-9" })
|
|
338
|
+
] })
|
|
339
|
+
] })
|
|
340
|
+
] })
|
|
341
|
+
]
|
|
342
|
+
}
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
const tn = (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" }) }), nn = (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" }) }), on = (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" }) }), sn = (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" }) }), je = (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" }) }), an = {
|
|
346
|
+
share: /* @__PURE__ */ n(nn, {}),
|
|
347
|
+
transcript: /* @__PURE__ */ n(on, {}),
|
|
348
|
+
media: /* @__PURE__ */ n(sn, {}),
|
|
349
|
+
delete: /* @__PURE__ */ n(je, {})
|
|
350
|
+
}, ln = (e) => typeof e != "string";
|
|
351
|
+
function rn() {
|
|
352
|
+
const [e, t] = x(!1), [o, i] = x(null), s = g(), a = L(), l = () => {
|
|
353
|
+
t(!e), s.setGlobalKeysDisabled(!e);
|
|
354
|
+
}, c = q(null), u = q([]), { refs: d, floatingStyles: f, context: v } = de({
|
|
355
|
+
open: e,
|
|
356
|
+
onOpenChange: l,
|
|
357
|
+
whileElementsMounted: me,
|
|
358
|
+
placement: "bottom-end",
|
|
359
|
+
middleware: [
|
|
360
|
+
He(),
|
|
361
|
+
Ae(10),
|
|
362
|
+
Re({
|
|
363
|
+
element: c
|
|
364
|
+
})
|
|
365
|
+
]
|
|
366
|
+
}), w = Pt(v, {
|
|
367
|
+
listRef: u,
|
|
368
|
+
activeIndex: o,
|
|
369
|
+
onNavigate: i
|
|
370
|
+
}), y = he(v), { getReferenceProps: N, getFloatingProps: h, getItemProps: C } = pe(
|
|
371
|
+
[y, w]
|
|
372
|
+
), { t: k } = _();
|
|
373
|
+
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ r(X, { children: [
|
|
374
|
+
/* @__PURE__ */ n(
|
|
375
|
+
"button",
|
|
376
|
+
{
|
|
377
|
+
type: "button",
|
|
378
|
+
"aria-label": k("KEBAB_MENU"),
|
|
379
|
+
"aria-haspopup": "true",
|
|
380
|
+
className: `${S.controlsButton} ${S.kebabMenuButton}`,
|
|
381
|
+
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
382
|
+
ref: d.setReference,
|
|
383
|
+
...N({
|
|
384
|
+
onClick: () => l()
|
|
385
|
+
}),
|
|
386
|
+
children: /* @__PURE__ */ n(tn, {})
|
|
387
|
+
}
|
|
388
|
+
),
|
|
389
|
+
e && /* @__PURE__ */ n(_e, { context: v, modal: !1, children: /* @__PURE__ */ r(
|
|
390
|
+
"div",
|
|
391
|
+
{
|
|
392
|
+
ref: d.setFloating,
|
|
393
|
+
style: f,
|
|
394
|
+
className: S.kebabMenu,
|
|
395
|
+
...h(),
|
|
396
|
+
children: [
|
|
397
|
+
a.kebabMenuElements.map(
|
|
398
|
+
({ id: I, text: Z, icon: B, onClick: D }, j) => /* @__PURE__ */ r(
|
|
399
|
+
"button",
|
|
400
|
+
{
|
|
401
|
+
tabIndex: o === j ? 0 : -1,
|
|
402
|
+
type: "button",
|
|
403
|
+
className: S.kebabMenuItem,
|
|
404
|
+
ref: (ae) => {
|
|
405
|
+
u.current[j] = ae;
|
|
406
|
+
},
|
|
407
|
+
...C({
|
|
408
|
+
onClick: () => {
|
|
409
|
+
D(I), t(!1);
|
|
410
|
+
}
|
|
411
|
+
}),
|
|
412
|
+
children: [
|
|
413
|
+
ln(B) ? B : an[B],
|
|
414
|
+
Z
|
|
415
|
+
]
|
|
416
|
+
},
|
|
417
|
+
I
|
|
418
|
+
)
|
|
419
|
+
),
|
|
420
|
+
/* @__PURE__ */ n(
|
|
421
|
+
Be,
|
|
422
|
+
{
|
|
423
|
+
ref: c,
|
|
424
|
+
context: v,
|
|
425
|
+
className: S.arrow
|
|
426
|
+
}
|
|
427
|
+
)
|
|
428
|
+
]
|
|
429
|
+
}
|
|
430
|
+
) })
|
|
431
|
+
] }) : null;
|
|
432
|
+
}
|
|
433
|
+
const 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: "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" }) });
|
|
434
|
+
function un() {
|
|
435
|
+
const [e, t] = x(!1), [o, i] = x(!1), [s, a] = x(!1), l = g(), c = b("playing"), u = ie(), { t: d } = _(), f = p(() => {
|
|
436
|
+
t(!0), l.disableInteractions(), c && (a(!0), u.pause());
|
|
437
|
+
}, [c, u, l]), v = p(() => {
|
|
438
|
+
t(!1), i(!0), l.enableInteractions(), s && (a(!1), u.play());
|
|
439
|
+
}, [s, u, l]), w = p(
|
|
440
|
+
(y) => o && (y == null ? void 0 : y.focus()),
|
|
441
|
+
[o]
|
|
442
|
+
);
|
|
443
|
+
return e ? /* @__PURE__ */ n(en, { onClose: v }) : /* @__PURE__ */ r("div", { className: S.controlsOverlay, children: [
|
|
444
|
+
/* @__PURE__ */ n(
|
|
445
|
+
"button",
|
|
446
|
+
{
|
|
447
|
+
ref: w,
|
|
448
|
+
"aria-label": d("KEYBOARD_SHORTCUTS"),
|
|
449
|
+
type: "button",
|
|
450
|
+
className: `${S.controlsButton} ${S.keyboardShortcutsButton}`,
|
|
451
|
+
onClick: f,
|
|
452
|
+
tabIndex: l.state.interactionsDisabled ? -1 : 0,
|
|
453
|
+
children: /* @__PURE__ */ n(cn, {})
|
|
454
|
+
}
|
|
455
|
+
),
|
|
456
|
+
/* @__PURE__ */ n(rn, {})
|
|
457
|
+
] });
|
|
458
|
+
}
|
|
459
|
+
const Ke = (e) => /* @__PURE__ */ r("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
178
460
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_149_104418", children: /* @__PURE__ */ n("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
179
461
|
/* @__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" }) })
|
|
180
|
-
] }),
|
|
462
|
+
] }), ze = (e) => /* @__PURE__ */ r("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
181
463
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ n("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
182
464
|
/* @__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" }) })
|
|
183
465
|
] });
|
|
184
|
-
function
|
|
185
|
-
const e = ie(), t =
|
|
186
|
-
(
|
|
187
|
-
e.toggleCaptions(
|
|
466
|
+
function dn() {
|
|
467
|
+
const e = ie(), t = b("textTrack"), o = b("hasCaptions"), i = t && ut(t), s = g(), a = p(
|
|
468
|
+
(l) => {
|
|
469
|
+
e.toggleCaptions(l.nativeEvent);
|
|
188
470
|
},
|
|
189
471
|
[e]
|
|
190
472
|
);
|
|
@@ -197,29 +479,29 @@ function Rt() {
|
|
|
197
479
|
"aria-label": "Captions",
|
|
198
480
|
"aria-pressed": i ? "true" : "false",
|
|
199
481
|
tabIndex: s.state.interactionsDisabled ? -1 : 0,
|
|
200
|
-
children: i ? /* @__PURE__ */ n(
|
|
482
|
+
children: i ? /* @__PURE__ */ n(ze, { className: "controls-button-icon" }) : /* @__PURE__ */ n(Ke, { className: "controls-button-icon" })
|
|
201
483
|
}
|
|
202
484
|
) : null;
|
|
203
485
|
}
|
|
204
|
-
const
|
|
205
|
-
captions:
|
|
206
|
-
},
|
|
207
|
-
function
|
|
208
|
-
const t = e.length > 0, o =
|
|
486
|
+
const mn = "_captions_1cu0g_1", hn = {
|
|
487
|
+
captions: mn
|
|
488
|
+
}, pn = (e, t) => e ? t.top : t.bottom;
|
|
489
|
+
function Ue({ captions: e }) {
|
|
490
|
+
const t = e.length > 0, o = g(), { captionOffsetOverride: i } = L(), s = o.state.captionPositionOnTop, a = pn(
|
|
209
491
|
s,
|
|
210
492
|
i ?? {}
|
|
211
493
|
);
|
|
212
|
-
return /* @__PURE__ */
|
|
213
|
-
e.map((
|
|
214
|
-
|
|
494
|
+
return /* @__PURE__ */ r(X, { children: [
|
|
495
|
+
e.map((l) => /* @__PURE__ */ n(
|
|
496
|
+
dt,
|
|
215
497
|
{
|
|
216
498
|
kind: "subtitles",
|
|
217
|
-
type:
|
|
218
|
-
language:
|
|
219
|
-
label:
|
|
220
|
-
src:
|
|
499
|
+
type: l.type,
|
|
500
|
+
language: l.language,
|
|
501
|
+
label: l.label,
|
|
502
|
+
src: l.src
|
|
221
503
|
},
|
|
222
|
-
|
|
504
|
+
l.label
|
|
223
505
|
)),
|
|
224
506
|
t ? /* @__PURE__ */ n(
|
|
225
507
|
"div",
|
|
@@ -232,14 +514,27 @@ function Ze({ captions: e }) {
|
|
|
232
514
|
"--captions-color": o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
|
|
233
515
|
"--captions-background-color": o.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
|
|
234
516
|
},
|
|
235
|
-
children: /* @__PURE__ */ n(
|
|
517
|
+
children: /* @__PURE__ */ n(mt, { className: hn.captions })
|
|
236
518
|
}
|
|
237
519
|
) : null
|
|
238
520
|
] });
|
|
239
521
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
522
|
+
function $e(e) {
|
|
523
|
+
var t, o, i = "";
|
|
524
|
+
if (typeof e == "string" || typeof e == "number") i += e;
|
|
525
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
526
|
+
var s = e.length;
|
|
527
|
+
for (t = 0; t < s; t++) e[t] && (o = $e(e[t])) && (i && (i += " "), i += o);
|
|
528
|
+
} else for (o in e) e[o] && (i && (i += " "), i += o);
|
|
529
|
+
return i;
|
|
530
|
+
}
|
|
531
|
+
function oe() {
|
|
532
|
+
for (var e, t, o = 0, i = "", s = arguments.length; o < s; o++) (e = arguments[o]) && (t = $e(e)) && (i && (i += " "), i += t);
|
|
533
|
+
return i;
|
|
534
|
+
}
|
|
535
|
+
const $ = [0.5, 0.75, 1, 1.25, 1.5, 2], _n = [0.5, 1, 2, 3, 4], fn = 5, Cn = (e) => {
|
|
536
|
+
const [, t] = x({});
|
|
537
|
+
return A(() => {
|
|
243
538
|
let o = [];
|
|
244
539
|
return {
|
|
245
540
|
add(i) {
|
|
@@ -256,21 +551,21 @@ const K = [0.5, 0.75, 1, 1.25, 1.5, 2], Dt = [0.5, 1, 2, 3, 4], zt = 5, jt = (e)
|
|
|
256
551
|
}
|
|
257
552
|
};
|
|
258
553
|
}, []);
|
|
259
|
-
},
|
|
554
|
+
}, bn = (e, t, o) => {
|
|
260
555
|
let i = !1;
|
|
261
556
|
return (s) => {
|
|
262
557
|
const a = s.detail.currentTime;
|
|
263
558
|
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);
|
|
264
559
|
};
|
|
265
|
-
},
|
|
266
|
-
const o = T(), i =
|
|
267
|
-
return
|
|
560
|
+
}, gn = (e, t = 5) => {
|
|
561
|
+
const o = T(), i = Cn(t);
|
|
562
|
+
return F(() => {
|
|
268
563
|
if (!o)
|
|
269
564
|
return;
|
|
270
565
|
const s = [];
|
|
271
566
|
for (const a of e) {
|
|
272
|
-
const
|
|
273
|
-
s.push(
|
|
567
|
+
const l = bn(a, fn, i);
|
|
568
|
+
s.push(l), o.addEventListener("time-update", l);
|
|
274
569
|
}
|
|
275
570
|
return o.dispatchEvent(
|
|
276
571
|
new CustomEvent("time-update", {
|
|
@@ -282,102 +577,136 @@ const K = [0.5, 0.75, 1, 1.25, 1.5, 2], Dt = [0.5, 1, 2, 3, 4], zt = 5, jt = (e)
|
|
|
282
577
|
i.clear();
|
|
283
578
|
};
|
|
284
579
|
}, [o, i, e]), i;
|
|
285
|
-
},
|
|
286
|
-
"comments-overlay": "_comments-
|
|
287
|
-
commentsOverlay:
|
|
288
|
-
"comments-container": "_comments-
|
|
289
|
-
commentsContainer:
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
580
|
+
}, vn = "_comments-overlay_bymws_1", wn = "_comments-container_bymws_10", kn = "_kebab_bymws_20", yn = "_comment_bymws_1", Ln = "_comment-text_bymws_51", Mn = "_comment-author-avatar_bymws_71", xn = "_comment-author-name_bymws_95", O = {
|
|
581
|
+
"comments-overlay": "_comments-overlay_bymws_1",
|
|
582
|
+
commentsOverlay: vn,
|
|
583
|
+
"comments-container": "_comments-container_bymws_10",
|
|
584
|
+
commentsContainer: wn,
|
|
585
|
+
kebab: kn,
|
|
586
|
+
comment: yn,
|
|
587
|
+
"comment-text": "_comment-text_bymws_51",
|
|
588
|
+
commentText: Ln,
|
|
589
|
+
"comment-author-avatar": "_comment-author-avatar_bymws_71",
|
|
590
|
+
commentAuthorAvatar: Mn,
|
|
591
|
+
"comment-author-name": "_comment-author-name_bymws_95",
|
|
592
|
+
commentAuthorName: xn
|
|
297
593
|
};
|
|
298
|
-
function
|
|
299
|
-
return e.render ? e.render(e,
|
|
594
|
+
function Pn({ comment: e }) {
|
|
595
|
+
return e.render ? e.render(e, O) : /* @__PURE__ */ r("div", { className: O.comment, onClick: () => {
|
|
300
596
|
var t;
|
|
301
597
|
return (t = e.onClick) == null ? void 0 : t.call(e, e);
|
|
302
598
|
}, children: [
|
|
303
599
|
/* @__PURE__ */ n(
|
|
304
600
|
"img",
|
|
305
601
|
{
|
|
306
|
-
className:
|
|
602
|
+
className: O.commentAuthorAvatar,
|
|
307
603
|
src: e.user.avatar,
|
|
308
604
|
alt: e.user.name
|
|
309
605
|
}
|
|
310
606
|
),
|
|
311
|
-
/* @__PURE__ */ n("span", { className:
|
|
312
|
-
/* @__PURE__ */ n("span", { className:
|
|
607
|
+
/* @__PURE__ */ n("span", { className: O.commentText, children: e.text }),
|
|
608
|
+
/* @__PURE__ */ n("span", { className: O.commentAuthorName, children: e.user.name })
|
|
313
609
|
] });
|
|
314
610
|
}
|
|
315
|
-
const
|
|
316
|
-
function
|
|
317
|
-
|
|
318
|
-
|
|
611
|
+
const Nn = 4;
|
|
612
|
+
function In({
|
|
613
|
+
comments: e,
|
|
614
|
+
isKebabMenuVisible: t
|
|
615
|
+
}) {
|
|
616
|
+
const o = g(), i = gn(e, Nn), s = !!b("textTrack"), a = i.map((l) => /* @__PURE__ */ n(Pn, { comment: l }, l.id));
|
|
617
|
+
return e.length > 0 && o.state.commentsEnabled ? /* @__PURE__ */ n(
|
|
319
618
|
"div",
|
|
320
619
|
{
|
|
321
|
-
className:
|
|
620
|
+
className: O.commentsOverlay,
|
|
322
621
|
style: {
|
|
323
|
-
flexDirection:
|
|
622
|
+
flexDirection: o.state.captionPositionOnTop && s ? "column-reverse" : "column"
|
|
324
623
|
},
|
|
325
|
-
children: /* @__PURE__ */ n(
|
|
624
|
+
children: /* @__PURE__ */ n(
|
|
625
|
+
"div",
|
|
626
|
+
{
|
|
627
|
+
className: oe(O.commentsContainer, {
|
|
628
|
+
[O.kebab]: t
|
|
629
|
+
}),
|
|
630
|
+
children: s ? a.slice(-3) : a
|
|
631
|
+
}
|
|
632
|
+
)
|
|
326
633
|
}
|
|
327
634
|
) : null;
|
|
328
635
|
}
|
|
329
|
-
const
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
"
|
|
337
|
-
|
|
338
|
-
"
|
|
339
|
-
|
|
636
|
+
const Sn = (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" }) }), En = (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" }) }), Vn = "_settings-menu_gl385_1", Tn = "_menu-container_gl385_37", Hn = "_scrollable-buttons_gl385_38", An = "_menu-heading_gl385_45", Rn = "_check-icon_gl385_56", Bn = "_trash-icon_gl385_57", On = "_menu-item-label_gl385_70", Fn = "_menu-item_gl385_70", Zn = "_menu-back-button_gl385_107", Dn = "_arrow_gl385_133", E = {
|
|
637
|
+
"settings-menu": "_settings-menu_gl385_1",
|
|
638
|
+
settingsMenu: Vn,
|
|
639
|
+
"menu-container": "_menu-container_gl385_37",
|
|
640
|
+
menuContainer: Tn,
|
|
641
|
+
"scrollable-buttons": "_scrollable-buttons_gl385_38",
|
|
642
|
+
scrollableButtons: Hn,
|
|
643
|
+
"menu-heading": "_menu-heading_gl385_45",
|
|
644
|
+
menuHeading: An,
|
|
645
|
+
"check-icon": "_check-icon_gl385_56",
|
|
646
|
+
checkIcon: Rn,
|
|
647
|
+
"trash-icon": "_trash-icon_gl385_57",
|
|
648
|
+
trashIcon: Bn,
|
|
649
|
+
"menu-item-label": "_menu-item-label_gl385_70",
|
|
650
|
+
menuItemLabel: On,
|
|
651
|
+
"menu-item": "_menu-item_gl385_70",
|
|
652
|
+
menuItem: Fn,
|
|
653
|
+
"menu-back-button": "_menu-back-button_gl385_107",
|
|
654
|
+
menuBackButton: Zn,
|
|
655
|
+
arrow: Dn
|
|
340
656
|
};
|
|
341
|
-
function
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
657
|
+
function z({
|
|
658
|
+
label: e,
|
|
659
|
+
noBackButton: t,
|
|
660
|
+
heading: o,
|
|
661
|
+
children: i
|
|
345
662
|
}) {
|
|
346
|
-
const
|
|
347
|
-
return
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
663
|
+
const s = R(), a = Io(), { t: l } = _();
|
|
664
|
+
return /* @__PURE__ */ r(
|
|
665
|
+
"div",
|
|
666
|
+
{
|
|
667
|
+
ref: a,
|
|
668
|
+
id: "submenu",
|
|
669
|
+
"aria-label": e,
|
|
670
|
+
role: "menu",
|
|
671
|
+
className: E.menuContainer,
|
|
672
|
+
children: [
|
|
673
|
+
!t && /* @__PURE__ */ r(
|
|
674
|
+
"button",
|
|
675
|
+
{
|
|
676
|
+
type: "button",
|
|
677
|
+
role: "menuitem",
|
|
678
|
+
tabIndex: -1,
|
|
679
|
+
className: E.menuBackButton,
|
|
680
|
+
onClick: s.back,
|
|
681
|
+
children: [
|
|
682
|
+
/* @__PURE__ */ n(En, {}),
|
|
683
|
+
/* @__PURE__ */ n("span", { children: l("BACK") })
|
|
684
|
+
]
|
|
685
|
+
}
|
|
686
|
+
),
|
|
687
|
+
o && /* @__PURE__ */ n("strong", { role: "presentation", className: E.menuHeading, children: o }),
|
|
688
|
+
/* @__PURE__ */ n("div", { role: "presentation", className: E.scrollableButtons, children: i })
|
|
689
|
+
]
|
|
690
|
+
}
|
|
691
|
+
);
|
|
363
692
|
}
|
|
364
|
-
const
|
|
693
|
+
const jn = (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" }) }), Kn = "_menu-hint_1wiu5_1", zn = "_menu-button_1wiu5_5", Un = "_menu-label_1wiu5_37", $n = "_menu-icon_1wiu5_42", te = {
|
|
365
694
|
"menu-hint": "_menu-hint_1wiu5_1",
|
|
366
|
-
menuHint:
|
|
695
|
+
menuHint: Kn,
|
|
367
696
|
"menu-button": "_menu-button_1wiu5_5",
|
|
368
|
-
menuButton:
|
|
697
|
+
menuButton: zn,
|
|
369
698
|
"menu-label": "_menu-label_1wiu5_37",
|
|
370
|
-
menuLabel:
|
|
699
|
+
menuLabel: Un,
|
|
371
700
|
"menu-icon": "_menu-icon_1wiu5_42",
|
|
372
|
-
menuIcon:
|
|
701
|
+
menuIcon: $n
|
|
373
702
|
};
|
|
374
|
-
function
|
|
375
|
-
return /* @__PURE__ */
|
|
703
|
+
function G({ label: e, hint: t, onClick: o, Icon: i }) {
|
|
704
|
+
return /* @__PURE__ */ r(
|
|
376
705
|
"button",
|
|
377
706
|
{
|
|
378
707
|
type: "button",
|
|
379
708
|
role: "menuitem",
|
|
380
|
-
"aria-
|
|
709
|
+
"aria-haspopup": "true",
|
|
381
710
|
tabIndex: -1,
|
|
382
711
|
onClick: o,
|
|
383
712
|
className: te.menuButton,
|
|
@@ -385,75 +714,75 @@ function $({ label: e, hint: t, onClick: o, Icon: i }) {
|
|
|
385
714
|
i && /* @__PURE__ */ n(i, { className: te.menuIcon }),
|
|
386
715
|
/* @__PURE__ */ n("span", { className: te.menuLabel, children: e }),
|
|
387
716
|
t && /* @__PURE__ */ n("span", { className: te.menuHint, children: t }),
|
|
388
|
-
/* @__PURE__ */ n(
|
|
717
|
+
/* @__PURE__ */ n(jn, {})
|
|
389
718
|
]
|
|
390
719
|
}
|
|
391
720
|
);
|
|
392
721
|
}
|
|
393
|
-
const
|
|
394
|
-
function
|
|
395
|
-
const e =
|
|
722
|
+
const qn = (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" }) });
|
|
723
|
+
function Gn() {
|
|
724
|
+
const e = R(), t = b("playbackRate"), { t: o } = _(), i = p(() => {
|
|
396
725
|
e.setPage("speed");
|
|
397
726
|
}, [e]);
|
|
398
727
|
return /* @__PURE__ */ n(
|
|
399
|
-
|
|
728
|
+
G,
|
|
400
729
|
{
|
|
401
730
|
label: o("PLAYBACK_SPEED"),
|
|
402
731
|
hint: `${t}x`,
|
|
403
732
|
onClick: i,
|
|
404
|
-
Icon:
|
|
733
|
+
Icon: qn
|
|
405
734
|
}
|
|
406
735
|
);
|
|
407
736
|
}
|
|
408
|
-
|
|
409
|
-
const e = P(), t = g("hasCaptions"), o = g("textTrack"), { t: i } = _(), s = f(() => {
|
|
410
|
-
e.setPage("captions");
|
|
411
|
-
}, [e]);
|
|
412
|
-
return t ? /* @__PURE__ */ n(
|
|
413
|
-
$,
|
|
414
|
-
{
|
|
415
|
-
label: i("CAPTIONS"),
|
|
416
|
-
hint: (o == null ? void 0 : o.label) ?? i("OFF"),
|
|
417
|
-
onClick: s,
|
|
418
|
-
Icon: Oe
|
|
419
|
-
}
|
|
420
|
-
) : null;
|
|
421
|
-
}
|
|
422
|
-
const bn = (e) => /* @__PURE__ */ l("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
737
|
+
const Wn = (e) => /* @__PURE__ */ r("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
423
738
|
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ n("rect", { width: 18, height: 18, fill: "white" }) }) }),
|
|
424
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_412_23039)", children: [
|
|
425
740
|
/* @__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" }),
|
|
426
741
|
/* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 8.40039H9.46326C9.7388 7.11449 10.8818 6.15039 12.25 6.15039C13.6182 6.15039 14.7612 7.11449 15.0367 8.40039H18V9.60039H15.0367C14.7612 10.8863 13.6182 11.8504 12.25 11.8504C10.8818 11.8504 9.7388 10.8863 9.46326 9.60039H0V8.40039ZM12.25 7.35039C11.3387 7.35039 10.6 8.08912 10.6 9.00039C10.6 9.91166 11.3387 10.6504 12.25 10.6504C13.1613 10.6504 13.9 9.91166 13.9 9.00039C13.9 8.08912 13.1613 7.35039 12.25 7.35039Z", fill: "currentColor" }),
|
|
427
742
|
/* @__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" })
|
|
428
743
|
] })
|
|
429
744
|
] });
|
|
430
|
-
function
|
|
431
|
-
const e =
|
|
745
|
+
function Qn() {
|
|
746
|
+
const e = R(), t = b("autoQuality"), o = b("quality"), { t: i } = _(), s = p(() => {
|
|
432
747
|
e.setPage("quality");
|
|
433
748
|
}, [e]);
|
|
434
749
|
return o ? /* @__PURE__ */ n(
|
|
435
|
-
|
|
750
|
+
G,
|
|
436
751
|
{
|
|
437
752
|
label: i("QUALITY"),
|
|
438
753
|
hint: t ? i("AUTO", { quality: o.height }) : `${o.height}p`,
|
|
439
754
|
onClick: s,
|
|
440
|
-
Icon:
|
|
755
|
+
Icon: Wn
|
|
756
|
+
}
|
|
757
|
+
) : null;
|
|
758
|
+
}
|
|
759
|
+
function Yn() {
|
|
760
|
+
const e = R(), t = b("hasCaptions"), o = b("textTrack"), { t: i } = _(), s = p(() => {
|
|
761
|
+
e.setPage("captions");
|
|
762
|
+
}, [e]);
|
|
763
|
+
return t ? /* @__PURE__ */ n(
|
|
764
|
+
G,
|
|
765
|
+
{
|
|
766
|
+
label: i("CAPTIONS"),
|
|
767
|
+
hint: (o == null ? void 0 : o.label) ?? i("OFF"),
|
|
768
|
+
onClick: s,
|
|
769
|
+
Icon: Ke
|
|
441
770
|
}
|
|
442
771
|
) : null;
|
|
443
772
|
}
|
|
444
|
-
const
|
|
773
|
+
const Xn = (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" }) }), Jn = (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" }) }), eo = "_switch-track_7nhpo_1", to = "_switch-thumb_7nhpo_17", no = "_switch-icon_7nhpo_31", oo = "_switch-body_7nhpo_37", io = "_switch-label_7nhpo_78", so = "_menu-icon_7nhpo_82", K = {
|
|
445
774
|
"switch-track": "_switch-track_7nhpo_1",
|
|
446
|
-
switchTrack:
|
|
775
|
+
switchTrack: eo,
|
|
447
776
|
"switch-thumb": "_switch-thumb_7nhpo_17",
|
|
448
|
-
switchThumb:
|
|
777
|
+
switchThumb: to,
|
|
449
778
|
"switch-icon": "_switch-icon_7nhpo_31",
|
|
450
|
-
switchIcon:
|
|
779
|
+
switchIcon: no,
|
|
451
780
|
"switch-body": "_switch-body_7nhpo_37",
|
|
452
|
-
switchBody:
|
|
781
|
+
switchBody: oo,
|
|
453
782
|
"switch-label": "_switch-label_7nhpo_78",
|
|
454
|
-
switchLabel:
|
|
783
|
+
switchLabel: io,
|
|
455
784
|
"menu-icon": "_menu-icon_7nhpo_82",
|
|
456
|
-
menuIcon:
|
|
785
|
+
menuIcon: so
|
|
457
786
|
};
|
|
458
787
|
function Ce({
|
|
459
788
|
label: e,
|
|
@@ -461,211 +790,103 @@ function Ce({
|
|
|
461
790
|
onClick: o,
|
|
462
791
|
Icon: i
|
|
463
792
|
}) {
|
|
464
|
-
return /* @__PURE__ */
|
|
793
|
+
return /* @__PURE__ */ r(
|
|
465
794
|
"button",
|
|
466
795
|
{
|
|
467
|
-
className:
|
|
796
|
+
className: K.switchBody,
|
|
468
797
|
role: "checkbox",
|
|
469
798
|
"aria-label": e,
|
|
470
799
|
"aria-checked": t,
|
|
471
800
|
onClick: o,
|
|
472
801
|
tabIndex: -1,
|
|
473
802
|
children: [
|
|
474
|
-
i && /* @__PURE__ */ n(i, { className:
|
|
475
|
-
/* @__PURE__ */ n("span", { className:
|
|
476
|
-
/* @__PURE__ */ n("div", { className:
|
|
803
|
+
i && /* @__PURE__ */ n(i, { className: K.menuIcon }),
|
|
804
|
+
/* @__PURE__ */ n("span", { className: K.switchLabel, children: e }),
|
|
805
|
+
/* @__PURE__ */ n("div", { className: K.switchTrack, children: /* @__PURE__ */ n("div", { className: K.switchThumb, children: t ? /* @__PURE__ */ n(Xn, { className: K.switchIcon }) : /* @__PURE__ */ n(Jn, { className: K.switchIcon }) }) })
|
|
477
806
|
]
|
|
478
807
|
}
|
|
479
808
|
);
|
|
480
809
|
}
|
|
481
|
-
const
|
|
482
|
-
function
|
|
483
|
-
const { t: e } = _(), t = L(), o =
|
|
810
|
+
const ao = (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" }) });
|
|
811
|
+
function lo() {
|
|
812
|
+
const { t: e } = _(), t = L(), o = g();
|
|
484
813
|
return !t.forceComments && t.hasComments ? /* @__PURE__ */ n(
|
|
485
814
|
Ce,
|
|
486
815
|
{
|
|
487
|
-
Icon:
|
|
816
|
+
Icon: ao,
|
|
488
817
|
label: e("COMMENTS"),
|
|
489
818
|
onClick: o.toggleComments,
|
|
490
819
|
checked: o.state.commentsEnabled
|
|
491
820
|
}
|
|
492
821
|
) : null;
|
|
493
822
|
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
(i = e[o.key]) == null || i.call(e, o);
|
|
503
|
-
};
|
|
504
|
-
return document.addEventListener("keydown", t, { passive: !0 }), () => {
|
|
505
|
-
document.removeEventListener("keydown", t);
|
|
506
|
-
};
|
|
507
|
-
}, [e]);
|
|
508
|
-
}
|
|
509
|
-
function Tn(e) {
|
|
510
|
-
const t = B(() => ({ Escape: e }), [e]);
|
|
511
|
-
return De(t);
|
|
823
|
+
function ro() {
|
|
824
|
+
const { t: e } = _();
|
|
825
|
+
return /* @__PURE__ */ r(z, { label: e("MAIN_MENU"), noBackButton: !0, children: [
|
|
826
|
+
/* @__PURE__ */ n(Gn, {}),
|
|
827
|
+
/* @__PURE__ */ n(Yn, {}),
|
|
828
|
+
/* @__PURE__ */ n(lo, {}),
|
|
829
|
+
/* @__PURE__ */ n(Qn, {})
|
|
830
|
+
] });
|
|
512
831
|
}
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
832
|
+
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: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) });
|
|
833
|
+
function se({ selected: e, label: t, onClick: o }) {
|
|
834
|
+
return /* @__PURE__ */ r(
|
|
835
|
+
"button",
|
|
836
|
+
{
|
|
837
|
+
type: "button",
|
|
838
|
+
role: "menuitemradio",
|
|
839
|
+
"aria-checked": e,
|
|
840
|
+
onClick: o,
|
|
841
|
+
tabIndex: -1,
|
|
842
|
+
className: E.menuItem,
|
|
843
|
+
children: [
|
|
844
|
+
/* @__PURE__ */ n(co, { className: E.checkIcon }),
|
|
845
|
+
/* @__PURE__ */ n("span", { className: E.menuItemLabel, children: t })
|
|
846
|
+
]
|
|
847
|
+
}
|
|
848
|
+
);
|
|
524
849
|
}
|
|
525
|
-
function
|
|
526
|
-
const
|
|
527
|
-
|
|
850
|
+
function uo() {
|
|
851
|
+
const e = ht({
|
|
852
|
+
rates: $,
|
|
853
|
+
normalLabel: "1x"
|
|
854
|
+
}), { t } = _();
|
|
855
|
+
return /* @__PURE__ */ n(z, { label: t("SPEED_MENU"), heading: t("PLAYBACK_SPEED"), children: e.map(({ value: o, label: i, select: s, selected: a }) => /* @__PURE__ */ n(
|
|
856
|
+
se,
|
|
857
|
+
{
|
|
858
|
+
selected: a,
|
|
859
|
+
onClick: () => s(),
|
|
860
|
+
label: i
|
|
861
|
+
},
|
|
862
|
+
o
|
|
863
|
+
)) });
|
|
528
864
|
}
|
|
529
|
-
function
|
|
530
|
-
|
|
865
|
+
function mo() {
|
|
866
|
+
const e = R(), { t } = _(), o = p(() => {
|
|
867
|
+
e.setPage("captionManage");
|
|
868
|
+
}, [e]);
|
|
869
|
+
return /* @__PURE__ */ n(G, { label: t("CAPTIONS_MANAGE"), onClick: o });
|
|
531
870
|
}
|
|
532
|
-
function
|
|
533
|
-
const t =
|
|
534
|
-
|
|
871
|
+
function ho() {
|
|
872
|
+
const { t: e } = _(), t = g(), o = R(), i = p(() => {
|
|
873
|
+
o.setPage("captionFontSize");
|
|
874
|
+
}, [o]);
|
|
875
|
+
return /* @__PURE__ */ n(
|
|
876
|
+
G,
|
|
877
|
+
{
|
|
878
|
+
label: e("CAPTION_FONT_SIZE"),
|
|
879
|
+
hint: `${t.state.captionsFontSizeMultiplier * 100}%`,
|
|
880
|
+
onClick: i
|
|
881
|
+
}
|
|
882
|
+
);
|
|
535
883
|
}
|
|
536
|
-
function
|
|
537
|
-
const e =
|
|
538
|
-
() => ({
|
|
539
|
-
Escape: e.toggle,
|
|
540
|
-
ArrowUp: () => {
|
|
541
|
-
const i = document.activeElement;
|
|
542
|
-
if (i && t.current && t.current.contains(i)) {
|
|
543
|
-
const s = En(
|
|
544
|
-
t.current,
|
|
545
|
-
i
|
|
546
|
-
);
|
|
547
|
-
s == null || s.focus();
|
|
548
|
-
} else if (t.current) {
|
|
549
|
-
const s = An(t.current);
|
|
550
|
-
s == null || s.focus();
|
|
551
|
-
}
|
|
552
|
-
},
|
|
553
|
-
ArrowDown: () => {
|
|
554
|
-
const i = document.activeElement;
|
|
555
|
-
if (i && t.current && t.current.contains(i)) {
|
|
556
|
-
const s = Vn(
|
|
557
|
-
t.current,
|
|
558
|
-
i
|
|
559
|
-
);
|
|
560
|
-
s == null || s.focus();
|
|
561
|
-
} else if (t.current) {
|
|
562
|
-
const s = Bn(t.current);
|
|
563
|
-
s == null || s.focus();
|
|
564
|
-
}
|
|
565
|
-
},
|
|
566
|
-
ArrowRight: () => {
|
|
567
|
-
const i = document.activeElement;
|
|
568
|
-
i && t.current && t.current.contains(i) && i.click();
|
|
569
|
-
},
|
|
570
|
-
ArrowLeft: e.back
|
|
571
|
-
}),
|
|
572
|
-
[e]
|
|
573
|
-
);
|
|
574
|
-
return De(o), t;
|
|
575
|
-
}
|
|
576
|
-
function Rn() {
|
|
577
|
-
const e = z(), { t } = _();
|
|
578
|
-
return /* @__PURE__ */ l(
|
|
579
|
-
"div",
|
|
580
|
-
{
|
|
581
|
-
ref: e,
|
|
582
|
-
id: "submenu",
|
|
583
|
-
"aria-label": t("MAIN_MENU"),
|
|
584
|
-
role: "menu",
|
|
585
|
-
className: Sn.mainMenu,
|
|
586
|
-
children: [
|
|
587
|
-
/* @__PURE__ */ n(Cn, {}),
|
|
588
|
-
/* @__PURE__ */ n(fn, {}),
|
|
589
|
-
/* @__PURE__ */ n(In, {}),
|
|
590
|
-
/* @__PURE__ */ n(gn, {})
|
|
591
|
-
]
|
|
592
|
-
}
|
|
593
|
-
);
|
|
594
|
-
}
|
|
595
|
-
const se = (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" }) }), U = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), On = "_menu-container_18cio_1", Fn = "_scrollable-buttons_18cio_2", Zn = "_menu-heading_18cio_9", Dn = "_check-icon_18cio_20", zn = "_trash-icon_18cio_21", jn = "_menu-item-label_18cio_34", Kn = "_menu-item_18cio_34", $n = "_menu-back-button_18cio_71", u = {
|
|
596
|
-
"menu-container": "_menu-container_18cio_1",
|
|
597
|
-
menuContainer: On,
|
|
598
|
-
"scrollable-buttons": "_scrollable-buttons_18cio_2",
|
|
599
|
-
scrollableButtons: Fn,
|
|
600
|
-
"menu-heading": "_menu-heading_18cio_9",
|
|
601
|
-
menuHeading: Zn,
|
|
602
|
-
"check-icon": "_check-icon_18cio_20",
|
|
603
|
-
checkIcon: Dn,
|
|
604
|
-
"trash-icon": "_trash-icon_18cio_21",
|
|
605
|
-
trashIcon: zn,
|
|
606
|
-
"menu-item-label": "_menu-item-label_18cio_34",
|
|
607
|
-
menuItemLabel: jn,
|
|
608
|
-
"menu-item": "_menu-item_18cio_34",
|
|
609
|
-
menuItem: Kn,
|
|
610
|
-
"menu-back-button": "_menu-back-button_18cio_71",
|
|
611
|
-
menuBackButton: $n
|
|
612
|
-
};
|
|
613
|
-
function Un() {
|
|
614
|
-
const e = P(), t = rt({
|
|
615
|
-
rates: K,
|
|
616
|
-
normalLabel: "1x"
|
|
617
|
-
}), { t: o } = _(), i = z();
|
|
618
|
-
return /* @__PURE__ */ l(
|
|
619
|
-
"div",
|
|
620
|
-
{
|
|
621
|
-
ref: i,
|
|
622
|
-
id: "submenu",
|
|
623
|
-
"aria-label": o("SPEED_MENU"),
|
|
624
|
-
role: "menu",
|
|
625
|
-
className: u.menuContainer,
|
|
626
|
-
children: [
|
|
627
|
-
/* @__PURE__ */ l(
|
|
628
|
-
"button",
|
|
629
|
-
{
|
|
630
|
-
type: "button",
|
|
631
|
-
role: "menuitem",
|
|
632
|
-
tabIndex: -1,
|
|
633
|
-
className: u.menuBackButton,
|
|
634
|
-
onClick: e.back,
|
|
635
|
-
children: [
|
|
636
|
-
/* @__PURE__ */ n(U, {}),
|
|
637
|
-
/* @__PURE__ */ n("span", { children: o("BACK") })
|
|
638
|
-
]
|
|
639
|
-
}
|
|
640
|
-
),
|
|
641
|
-
/* @__PURE__ */ n("strong", { className: u.menuHeading, children: o("PLAYBACK_SPEED") }),
|
|
642
|
-
/* @__PURE__ */ n("div", { className: u.scrollableButtons, children: t.map(({ value: s, label: a, select: c, selected: r }) => /* @__PURE__ */ l(
|
|
643
|
-
"button",
|
|
644
|
-
{
|
|
645
|
-
type: "button",
|
|
646
|
-
role: "menuitemradio",
|
|
647
|
-
"aria-label": a,
|
|
648
|
-
"aria-checked": r,
|
|
649
|
-
onClick: () => c(),
|
|
650
|
-
tabIndex: -1,
|
|
651
|
-
className: u.menuItem,
|
|
652
|
-
children: [
|
|
653
|
-
/* @__PURE__ */ n(se, { className: u.checkIcon }),
|
|
654
|
-
/* @__PURE__ */ n("span", { className: u.menuItemLabel, children: a })
|
|
655
|
-
]
|
|
656
|
-
},
|
|
657
|
-
s
|
|
658
|
-
)) })
|
|
659
|
-
]
|
|
660
|
-
}
|
|
661
|
-
);
|
|
662
|
-
}
|
|
663
|
-
function qn() {
|
|
664
|
-
const e = P(), t = g("textTrack"), { t: o } = _(), { disableCaptionSettings: i } = w(), s = f(() => {
|
|
884
|
+
function po() {
|
|
885
|
+
const e = R(), t = b("textTrack"), { t: o } = _(), { disableCaptionSettings: i } = g(), s = p(() => {
|
|
665
886
|
e.setPage("captionLanguage");
|
|
666
887
|
}, [e]);
|
|
667
888
|
return i ? null : /* @__PURE__ */ n(
|
|
668
|
-
|
|
889
|
+
G,
|
|
669
890
|
{
|
|
670
891
|
label: o("LANGUAGE"),
|
|
671
892
|
hint: (t == null ? void 0 : t.label) ?? o("OFF"),
|
|
@@ -673,21 +894,8 @@ function qn() {
|
|
|
673
894
|
}
|
|
674
895
|
);
|
|
675
896
|
}
|
|
676
|
-
function
|
|
677
|
-
const { t: e } = _(), t =
|
|
678
|
-
o.setPage("captionFontSize");
|
|
679
|
-
}, [o]);
|
|
680
|
-
return /* @__PURE__ */ n(
|
|
681
|
-
$,
|
|
682
|
-
{
|
|
683
|
-
label: e("CAPTION_FONT_SIZE"),
|
|
684
|
-
hint: `${t.state.captionsFontSizeMultiplier * 100}%`,
|
|
685
|
-
onClick: i
|
|
686
|
-
}
|
|
687
|
-
);
|
|
688
|
-
}
|
|
689
|
-
function Qn() {
|
|
690
|
-
const { t: e } = _(), t = w();
|
|
897
|
+
function _o() {
|
|
898
|
+
const { t: e } = _(), t = g();
|
|
691
899
|
return /* @__PURE__ */ n(
|
|
692
900
|
Ce,
|
|
693
901
|
{
|
|
@@ -697,8 +905,8 @@ function Qn() {
|
|
|
697
905
|
}
|
|
698
906
|
);
|
|
699
907
|
}
|
|
700
|
-
function
|
|
701
|
-
const { t: e } = _(), t =
|
|
908
|
+
function fo() {
|
|
909
|
+
const { t: e } = _(), t = g();
|
|
702
910
|
return /* @__PURE__ */ n(
|
|
703
911
|
Ce,
|
|
704
912
|
{
|
|
@@ -708,298 +916,194 @@ function Wn() {
|
|
|
708
916
|
}
|
|
709
917
|
);
|
|
710
918
|
}
|
|
711
|
-
function
|
|
712
|
-
const e =
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
"div",
|
|
721
|
-
{
|
|
722
|
-
ref: i,
|
|
723
|
-
id: "submenu",
|
|
724
|
-
"aria-label": o("CAPTIONS_MENU"),
|
|
725
|
-
role: "menu",
|
|
726
|
-
className: u.menuContainer,
|
|
727
|
-
children: [
|
|
728
|
-
/* @__PURE__ */ l(
|
|
729
|
-
"button",
|
|
730
|
-
{
|
|
731
|
-
type: "button",
|
|
732
|
-
role: "menuitem",
|
|
733
|
-
tabIndex: -1,
|
|
734
|
-
className: u.menuBackButton,
|
|
735
|
-
onClick: e.back,
|
|
736
|
-
children: [
|
|
737
|
-
/* @__PURE__ */ n(U, {}),
|
|
738
|
-
/* @__PURE__ */ n("span", { children: o("BACK") })
|
|
739
|
-
]
|
|
740
|
-
}
|
|
741
|
-
),
|
|
742
|
-
/* @__PURE__ */ n("strong", { className: u.menuHeading, children: o("CAPTIONS") }),
|
|
743
|
-
/* @__PURE__ */ l("div", { className: u.scrollableButtons, children: [
|
|
744
|
-
/* @__PURE__ */ n(qn, {}),
|
|
745
|
-
/* @__PURE__ */ n(Gn, {}),
|
|
746
|
-
/* @__PURE__ */ n(Qn, {}),
|
|
747
|
-
/* @__PURE__ */ n(Wn, {}),
|
|
748
|
-
t.onCaptionsDelete && /* @__PURE__ */ n(Yn, {})
|
|
749
|
-
] })
|
|
750
|
-
]
|
|
751
|
-
}
|
|
752
|
-
);
|
|
919
|
+
function Co() {
|
|
920
|
+
const e = L(), { t } = _();
|
|
921
|
+
return /* @__PURE__ */ r(z, { label: t("CAPTIONS_MENU"), heading: t("CAPTIONS"), children: [
|
|
922
|
+
/* @__PURE__ */ n(po, {}),
|
|
923
|
+
/* @__PURE__ */ n(ho, {}),
|
|
924
|
+
/* @__PURE__ */ n(_o, {}),
|
|
925
|
+
/* @__PURE__ */ n(fo, {}),
|
|
926
|
+
e.onCaptionsDelete && /* @__PURE__ */ n(mo, {})
|
|
927
|
+
] });
|
|
753
928
|
}
|
|
754
|
-
function
|
|
755
|
-
const e =
|
|
756
|
-
return /* @__PURE__ */
|
|
757
|
-
|
|
929
|
+
function bo() {
|
|
930
|
+
const e = pt(), { t } = _();
|
|
931
|
+
return /* @__PURE__ */ n(z, { label: t("CAPTIONS_LANGUAGE_MENU"), heading: t("CAPTIONS"), children: e.map(({ value: o, label: i, select: s, selected: a }) => /* @__PURE__ */ n(
|
|
932
|
+
se,
|
|
758
933
|
{
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
/* @__PURE__ */ l(
|
|
766
|
-
"button",
|
|
767
|
-
{
|
|
768
|
-
type: "button",
|
|
769
|
-
role: "menuitem",
|
|
770
|
-
tabIndex: -1,
|
|
771
|
-
className: u.menuBackButton,
|
|
772
|
-
onClick: e.back,
|
|
773
|
-
children: [
|
|
774
|
-
/* @__PURE__ */ n(U, {}),
|
|
775
|
-
/* @__PURE__ */ n("span", { children: o("BACK") })
|
|
776
|
-
]
|
|
777
|
-
}
|
|
778
|
-
),
|
|
779
|
-
/* @__PURE__ */ n("strong", { className: u.menuHeading, children: o("CAPTIONS") }),
|
|
780
|
-
/* @__PURE__ */ n("div", { className: u.scrollableButtons, children: t.map(({ value: s, label: a, select: c, selected: r }) => /* @__PURE__ */ l(
|
|
781
|
-
"button",
|
|
782
|
-
{
|
|
783
|
-
type: "button",
|
|
784
|
-
role: "menuitemradio",
|
|
785
|
-
"aria-checked": r,
|
|
786
|
-
onClick: () => c(),
|
|
787
|
-
tabIndex: -1,
|
|
788
|
-
className: u.menuItem,
|
|
789
|
-
children: [
|
|
790
|
-
/* @__PURE__ */ n(se, { className: u.checkIcon }),
|
|
791
|
-
/* @__PURE__ */ n("span", { className: u.menuItemLabel, children: a })
|
|
792
|
-
]
|
|
793
|
-
},
|
|
794
|
-
s
|
|
795
|
-
)) })
|
|
796
|
-
]
|
|
797
|
-
}
|
|
798
|
-
);
|
|
934
|
+
selected: a,
|
|
935
|
+
onClick: () => s(),
|
|
936
|
+
label: i
|
|
937
|
+
},
|
|
938
|
+
o
|
|
939
|
+
)) });
|
|
799
940
|
}
|
|
800
|
-
function
|
|
801
|
-
const e =
|
|
802
|
-
return /* @__PURE__ */
|
|
803
|
-
|
|
941
|
+
function go() {
|
|
942
|
+
const e = g(), { t } = _();
|
|
943
|
+
return /* @__PURE__ */ n(z, { label: t("CAPTIONS_FONT_SIZE_MENU"), heading: t("CAPTIONS"), children: _n.map((o) => /* @__PURE__ */ n(
|
|
944
|
+
se,
|
|
804
945
|
{
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
{
|
|
814
|
-
type: "button",
|
|
815
|
-
role: "menuitem",
|
|
816
|
-
tabIndex: -1,
|
|
817
|
-
className: u.menuBackButton,
|
|
818
|
-
onClick: t.back,
|
|
819
|
-
children: [
|
|
820
|
-
/* @__PURE__ */ n(U, {}),
|
|
821
|
-
/* @__PURE__ */ n("span", { children: o("BACK") })
|
|
822
|
-
]
|
|
823
|
-
}
|
|
824
|
-
),
|
|
825
|
-
/* @__PURE__ */ n("strong", { className: u.menuHeading, children: o("CAPTIONS") }),
|
|
826
|
-
/* @__PURE__ */ n("div", { className: u.scrollableButtons, children: Dt.map((s) => /* @__PURE__ */ l(
|
|
827
|
-
"button",
|
|
828
|
-
{
|
|
829
|
-
type: "button",
|
|
830
|
-
role: "menuitemradio",
|
|
831
|
-
"aria-checked": s === e.state.captionsFontSizeMultiplier,
|
|
832
|
-
onClick: () => {
|
|
833
|
-
e.setCaptionsFontSizeMultiplier(s);
|
|
834
|
-
},
|
|
835
|
-
tabIndex: -1,
|
|
836
|
-
className: u.menuItem,
|
|
837
|
-
children: [
|
|
838
|
-
/* @__PURE__ */ n(se, { className: u.checkIcon }),
|
|
839
|
-
/* @__PURE__ */ l("span", { className: u.menuItemLabel, children: [
|
|
840
|
-
s * 100,
|
|
841
|
-
"%"
|
|
842
|
-
] })
|
|
843
|
-
]
|
|
844
|
-
},
|
|
845
|
-
s
|
|
846
|
-
)) })
|
|
847
|
-
]
|
|
848
|
-
}
|
|
849
|
-
);
|
|
946
|
+
selected: o === e.state.captionsFontSizeMultiplier,
|
|
947
|
+
onClick: () => {
|
|
948
|
+
e.setCaptionsFontSizeMultiplier(o);
|
|
949
|
+
},
|
|
950
|
+
label: `${o * 100}%`
|
|
951
|
+
},
|
|
952
|
+
o
|
|
953
|
+
)) });
|
|
850
954
|
}
|
|
851
|
-
const
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
955
|
+
const R = () => {
|
|
956
|
+
const e = ue(qe);
|
|
957
|
+
if (!e)
|
|
958
|
+
throw new Error(
|
|
959
|
+
"useCustomSettingsMenuContext must be used within a CustomSettingsMenuContext.Provider"
|
|
960
|
+
);
|
|
961
|
+
return e;
|
|
962
|
+
};
|
|
963
|
+
function vo() {
|
|
964
|
+
const e = R(), t = L(), { t: o } = _();
|
|
965
|
+
return F(() => {
|
|
966
|
+
t.captions.length === 0 && e.backToMain();
|
|
967
|
+
}, [t.captions]), /* @__PURE__ */ n(z, { label: o("CAPTIONS_MANAGE_MENU"), heading: o("CAPTIONS_MANAGE"), children: t.captions.map((i) => /* @__PURE__ */ r(
|
|
968
|
+
"button",
|
|
856
969
|
{
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
970
|
+
type: "button",
|
|
971
|
+
role: "menuitem",
|
|
972
|
+
onClick: () => {
|
|
973
|
+
var s;
|
|
974
|
+
(s = t.onCaptionsDelete) == null || s.call(t, i);
|
|
975
|
+
},
|
|
976
|
+
tabIndex: -1,
|
|
977
|
+
className: E.menuItem,
|
|
862
978
|
children: [
|
|
863
|
-
/* @__PURE__ */
|
|
864
|
-
|
|
865
|
-
{
|
|
866
|
-
type: "button",
|
|
867
|
-
role: "menuitem",
|
|
868
|
-
tabIndex: -1,
|
|
869
|
-
className: u.menuBackButton,
|
|
870
|
-
onClick: e.back,
|
|
871
|
-
children: [
|
|
872
|
-
/* @__PURE__ */ n(U, {}),
|
|
873
|
-
/* @__PURE__ */ n("span", { children: o("BACK") })
|
|
874
|
-
]
|
|
875
|
-
}
|
|
876
|
-
),
|
|
877
|
-
/* @__PURE__ */ n("strong", { className: u.menuHeading, children: o("CAPTIONS_MANAGE") }),
|
|
878
|
-
/* @__PURE__ */ n("div", { className: u.scrollableButtons, children: t.captions.map((s) => /* @__PURE__ */ l(
|
|
879
|
-
"button",
|
|
880
|
-
{
|
|
881
|
-
type: "button",
|
|
882
|
-
role: "menuitem",
|
|
883
|
-
onClick: () => {
|
|
884
|
-
var a;
|
|
885
|
-
(a = t.onCaptionsDelete) == null || a.call(t, s);
|
|
886
|
-
},
|
|
887
|
-
tabIndex: -1,
|
|
888
|
-
className: u.menuItem,
|
|
889
|
-
children: [
|
|
890
|
-
/* @__PURE__ */ n(ze, { className: u.trashIcon }),
|
|
891
|
-
/* @__PURE__ */ n("span", { className: u.menuItemLabel, children: o("CAPTION_DELETE", { language: s.label }) })
|
|
892
|
-
]
|
|
893
|
-
},
|
|
894
|
-
s.language
|
|
895
|
-
)) })
|
|
979
|
+
/* @__PURE__ */ n(je, { className: E.trashIcon }),
|
|
980
|
+
/* @__PURE__ */ n("span", { className: E.menuItemLabel, children: o("CAPTION_DELETE", { language: i.label }) })
|
|
896
981
|
]
|
|
897
|
-
}
|
|
898
|
-
|
|
982
|
+
},
|
|
983
|
+
i.language
|
|
984
|
+
)) });
|
|
899
985
|
}
|
|
900
|
-
function
|
|
901
|
-
const e =
|
|
902
|
-
return /* @__PURE__ */ l(
|
|
903
|
-
|
|
986
|
+
function wo() {
|
|
987
|
+
const e = _t({ sort: "descending" }), t = b("autoQuality"), { t: o } = _();
|
|
988
|
+
return /* @__PURE__ */ n(z, { label: o("QUALITY_MENU"), heading: o("QUALITY"), children: e.map(({ value: i, label: s, select: a, selected: l }) => /* @__PURE__ */ n(
|
|
989
|
+
se,
|
|
904
990
|
{
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
/* @__PURE__ */ n("span", { children: i("BACK") })
|
|
922
|
-
]
|
|
923
|
-
}
|
|
924
|
-
),
|
|
925
|
-
/* @__PURE__ */ n("strong", { className: u.menuHeading, children: i("QUALITY") }),
|
|
926
|
-
/* @__PURE__ */ n("div", { className: u.scrollableButtons, children: t.map(({ value: a, label: c, select: r, selected: d }) => /* @__PURE__ */ l(
|
|
927
|
-
"button",
|
|
928
|
-
{
|
|
929
|
-
type: "button",
|
|
930
|
-
role: "menuitemradio",
|
|
931
|
-
"aria-checked": a === "auto" && o || d && !o,
|
|
932
|
-
onClick: () => r(),
|
|
933
|
-
tabIndex: -1,
|
|
934
|
-
className: u.menuItem,
|
|
935
|
-
children: [
|
|
936
|
-
/* @__PURE__ */ n(se, { className: u.checkIcon }),
|
|
937
|
-
/* @__PURE__ */ n("span", { className: u.menuItemLabel, children: c })
|
|
938
|
-
]
|
|
939
|
-
},
|
|
940
|
-
a
|
|
941
|
-
)) })
|
|
942
|
-
]
|
|
943
|
-
}
|
|
944
|
-
);
|
|
945
|
-
}
|
|
946
|
-
const je = re(null), oo = {
|
|
947
|
-
main: Rn,
|
|
948
|
-
speed: Un,
|
|
949
|
-
captions: Xn,
|
|
950
|
-
captionLanguage: Jn,
|
|
951
|
-
captionFontSize: eo,
|
|
952
|
-
captionManage: to,
|
|
953
|
-
quality: no
|
|
954
|
-
}, io = {
|
|
991
|
+
selected: i === "auto" && t || l && !t,
|
|
992
|
+
onClick: () => a(),
|
|
993
|
+
label: s
|
|
994
|
+
},
|
|
995
|
+
i
|
|
996
|
+
)) });
|
|
997
|
+
}
|
|
998
|
+
const qe = ce(null), ko = {
|
|
999
|
+
main: ro,
|
|
1000
|
+
speed: uo,
|
|
1001
|
+
captions: Co,
|
|
1002
|
+
captionLanguage: bo,
|
|
1003
|
+
captionFontSize: go,
|
|
1004
|
+
captionManage: vo,
|
|
1005
|
+
quality: wo
|
|
1006
|
+
}, yo = {
|
|
955
1007
|
name: "middleware",
|
|
956
1008
|
async fn(e) {
|
|
957
|
-
const t = await
|
|
1009
|
+
const t = await Nt(e);
|
|
958
1010
|
return {
|
|
959
1011
|
x: e.x - t.right - 4,
|
|
960
1012
|
y: e.y - 4
|
|
961
1013
|
};
|
|
962
1014
|
}
|
|
963
1015
|
};
|
|
964
|
-
function
|
|
965
|
-
const e =
|
|
1016
|
+
function Lo() {
|
|
1017
|
+
const e = g(), [t, o] = x(["main"]), [i, s] = x(!1), a = p(() => {
|
|
966
1018
|
s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
|
|
967
|
-
}, [i]),
|
|
968
|
-
o((
|
|
969
|
-
}, []),
|
|
970
|
-
o((
|
|
971
|
-
}, []),
|
|
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({
|
|
972
1026
|
open: i,
|
|
973
1027
|
onOpenChange: a,
|
|
974
1028
|
placement: "top-end",
|
|
975
1029
|
whileElementsMounted: me,
|
|
976
|
-
middleware: [
|
|
977
|
-
}),
|
|
978
|
-
() => ({ setPage:
|
|
979
|
-
[
|
|
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]
|
|
980
1034
|
);
|
|
981
1035
|
return {
|
|
982
1036
|
Page: d,
|
|
983
1037
|
open: i,
|
|
984
|
-
refs:
|
|
985
|
-
floatingStyles:
|
|
986
|
-
context:
|
|
1038
|
+
refs: f,
|
|
1039
|
+
floatingStyles: v,
|
|
1040
|
+
context: w,
|
|
987
1041
|
getReferenceProps() {
|
|
988
1042
|
return {
|
|
989
|
-
...
|
|
1043
|
+
...N(),
|
|
990
1044
|
tabIndex: e.state.interactionsDisabled ? -1 : 0
|
|
991
1045
|
};
|
|
992
1046
|
},
|
|
993
|
-
getFloatingProps:
|
|
994
|
-
contextValue:
|
|
1047
|
+
getFloatingProps: h,
|
|
1048
|
+
contextValue: C
|
|
995
1049
|
};
|
|
996
1050
|
}
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1051
|
+
function Mo(e, t) {
|
|
1052
|
+
const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(t);
|
|
1053
|
+
return o[i - 1] ?? null;
|
|
1054
|
+
}
|
|
1055
|
+
function xo(e, t) {
|
|
1056
|
+
const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(t);
|
|
1057
|
+
return o[i + 1] ?? null;
|
|
1058
|
+
}
|
|
1059
|
+
function Po(e) {
|
|
1060
|
+
return e.querySelector("button");
|
|
1061
|
+
}
|
|
1062
|
+
function No(e) {
|
|
1063
|
+
const t = Array.from(e.querySelectorAll("button"));
|
|
1064
|
+
return t[t.length - 1] ?? null;
|
|
1065
|
+
}
|
|
1066
|
+
function Io() {
|
|
1067
|
+
const e = R(), t = q(null), o = A(
|
|
1068
|
+
() => ({
|
|
1069
|
+
Escape: e.toggle,
|
|
1070
|
+
ArrowUp: () => {
|
|
1071
|
+
const i = document.activeElement;
|
|
1072
|
+
if (i && t.current && t.current.contains(i)) {
|
|
1073
|
+
const s = Mo(
|
|
1074
|
+
t.current,
|
|
1075
|
+
i
|
|
1076
|
+
);
|
|
1077
|
+
s == null || s.focus();
|
|
1078
|
+
} else if (t.current) {
|
|
1079
|
+
const s = No(t.current);
|
|
1080
|
+
s == null || s.focus();
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
ArrowDown: () => {
|
|
1084
|
+
const i = document.activeElement;
|
|
1085
|
+
if (i && t.current && t.current.contains(i)) {
|
|
1086
|
+
const s = xo(
|
|
1087
|
+
t.current,
|
|
1088
|
+
i
|
|
1089
|
+
);
|
|
1090
|
+
s == null || s.focus();
|
|
1091
|
+
} else if (t.current) {
|
|
1092
|
+
const s = Po(t.current);
|
|
1093
|
+
s == null || s.focus();
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
ArrowRight: () => {
|
|
1097
|
+
const i = document.activeElement;
|
|
1098
|
+
i && i.getAttribute("aria-haspopup") === "true" && t.current && t.current.contains(i) && i.click();
|
|
1099
|
+
},
|
|
1100
|
+
ArrowLeft: e.back
|
|
1101
|
+
}),
|
|
1102
|
+
[e]
|
|
1103
|
+
);
|
|
1104
|
+
return fe(o, !0), t;
|
|
1105
|
+
}
|
|
1106
|
+
function So() {
|
|
1003
1107
|
const {
|
|
1004
1108
|
Page: e,
|
|
1005
1109
|
context: t,
|
|
@@ -1007,128 +1111,128 @@ function ro() {
|
|
|
1007
1111
|
getFloatingProps: i,
|
|
1008
1112
|
getReferenceProps: s,
|
|
1009
1113
|
open: a,
|
|
1010
|
-
refs:
|
|
1011
|
-
contextValue:
|
|
1012
|
-
} =
|
|
1013
|
-
return /* @__PURE__ */
|
|
1114
|
+
refs: l,
|
|
1115
|
+
contextValue: c
|
|
1116
|
+
} = Lo(), { t: u } = _();
|
|
1117
|
+
return /* @__PURE__ */ r(X, { children: [
|
|
1014
1118
|
/* @__PURE__ */ n(
|
|
1015
1119
|
"button",
|
|
1016
1120
|
{
|
|
1017
|
-
ref:
|
|
1121
|
+
ref: l.setReference,
|
|
1018
1122
|
type: "button",
|
|
1019
1123
|
className: "controls-button",
|
|
1020
|
-
"aria-label":
|
|
1021
|
-
onClick:
|
|
1124
|
+
"aria-label": u("SETTINGS"),
|
|
1125
|
+
onClick: c.toggle,
|
|
1022
1126
|
"aria-expanded": a,
|
|
1023
1127
|
...s(),
|
|
1024
|
-
children: /* @__PURE__ */ n(
|
|
1128
|
+
children: /* @__PURE__ */ n(Sn, { className: "controls-button-icon icon-rotate" })
|
|
1025
1129
|
}
|
|
1026
1130
|
),
|
|
1027
1131
|
a && /* @__PURE__ */ n(_e, { context: t, restoreFocus: !0, modal: !1, children: /* @__PURE__ */ n(
|
|
1028
1132
|
"div",
|
|
1029
1133
|
{
|
|
1030
1134
|
"aria-labelledby": "submenu",
|
|
1031
|
-
className:
|
|
1032
|
-
ref:
|
|
1135
|
+
className: E.settingsMenu,
|
|
1136
|
+
ref: l.setFloating,
|
|
1033
1137
|
style: o,
|
|
1034
1138
|
...i(),
|
|
1035
|
-
children: /* @__PURE__ */ n(
|
|
1139
|
+
children: /* @__PURE__ */ n(qe.Provider, { value: c, children: /* @__PURE__ */ n(e, {}) })
|
|
1036
1140
|
}
|
|
1037
1141
|
) })
|
|
1038
1142
|
] });
|
|
1039
1143
|
}
|
|
1040
|
-
function
|
|
1144
|
+
function Ge(e, t = 1e3) {
|
|
1041
1145
|
return function() {
|
|
1042
|
-
const i = T(), [s, a] =
|
|
1043
|
-
return
|
|
1146
|
+
const i = T(), [s, a] = x(null), l = p(() => a(null), []);
|
|
1147
|
+
return F(() => {
|
|
1044
1148
|
if (!i)
|
|
1045
1149
|
return () => {
|
|
1046
1150
|
};
|
|
1047
|
-
const
|
|
1048
|
-
let
|
|
1151
|
+
const c = new AbortController();
|
|
1152
|
+
let u;
|
|
1049
1153
|
return i.addEventListener(
|
|
1050
1154
|
"keyboardAction",
|
|
1051
|
-
(
|
|
1052
|
-
clearTimeout(
|
|
1053
|
-
const
|
|
1054
|
-
a(/* @__PURE__ */ n(e, { action:
|
|
1155
|
+
(d) => {
|
|
1156
|
+
clearTimeout(u);
|
|
1157
|
+
const f = d.detail;
|
|
1158
|
+
a(/* @__PURE__ */ n(e, { action: f })), u = setTimeout(l, t);
|
|
1055
1159
|
},
|
|
1056
|
-
{ signal:
|
|
1160
|
+
{ signal: c.signal }
|
|
1057
1161
|
), () => {
|
|
1058
|
-
clearTimeout(
|
|
1162
|
+
clearTimeout(u), c.abort();
|
|
1059
1163
|
};
|
|
1060
1164
|
}, [t]), s;
|
|
1061
1165
|
};
|
|
1062
1166
|
}
|
|
1063
|
-
const
|
|
1167
|
+
const be = (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" }) }), ge = (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" }) }), Eo = (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" }) }), Vo = (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" }) }), We = (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" }) }), Qe = (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" }) }), Ye = (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" }) }), To = "_feedback-overlay_3kkqe_1", Ho = "_feedback-message_3kkqe_14", Ao = "_feedback-icon_3kkqe_30", Ro = "_feedback-icon-animation_3kkqe_1", P = {
|
|
1064
1168
|
"feedback-overlay": "_feedback-overlay_3kkqe_1",
|
|
1065
|
-
feedbackOverlay:
|
|
1169
|
+
feedbackOverlay: To,
|
|
1066
1170
|
"feedback-message": "_feedback-message_3kkqe_14",
|
|
1067
|
-
feedbackMessage:
|
|
1171
|
+
feedbackMessage: Ho,
|
|
1068
1172
|
"feedback-icon": "_feedback-icon_3kkqe_30",
|
|
1069
|
-
feedbackIcon:
|
|
1173
|
+
feedbackIcon: Ao,
|
|
1070
1174
|
"feedback-icon-animation": "_feedback-icon-animation_3kkqe_1",
|
|
1071
|
-
feedbackIconAnimation:
|
|
1175
|
+
feedbackIconAnimation: Ro
|
|
1072
1176
|
};
|
|
1073
|
-
function
|
|
1177
|
+
function Bo({ action: e }) {
|
|
1074
1178
|
const t = T();
|
|
1075
1179
|
if (!t)
|
|
1076
1180
|
return null;
|
|
1077
1181
|
switch (e) {
|
|
1078
1182
|
case "togglePaused":
|
|
1079
|
-
return /* @__PURE__ */ n("i", { className:
|
|
1183
|
+
return /* @__PURE__ */ n("i", { className: P.feedbackIcon, children: t.paused ? /* @__PURE__ */ n(be, {}) : /* @__PURE__ */ n(ge, {}) });
|
|
1080
1184
|
case "seekForward":
|
|
1081
1185
|
case "seekForward10":
|
|
1082
|
-
return /* @__PURE__ */ n("i", { className:
|
|
1186
|
+
return /* @__PURE__ */ n("i", { className: P.feedbackIcon, children: /* @__PURE__ */ n(Eo, { className: "right" }) });
|
|
1083
1187
|
case "seekBackward":
|
|
1084
1188
|
case "seekBackward10":
|
|
1085
|
-
return /* @__PURE__ */ n("i", { className:
|
|
1189
|
+
return /* @__PURE__ */ n("i", { className: P.feedbackIcon, children: /* @__PURE__ */ n(Vo, { className: "left" }) });
|
|
1086
1190
|
case "captionsChange":
|
|
1087
|
-
return /* @__PURE__ */ n("i", { className:
|
|
1191
|
+
return /* @__PURE__ */ n("i", { className: P.feedbackIcon, children: /* @__PURE__ */ n(ze, {}) });
|
|
1088
1192
|
case "volumeChange":
|
|
1089
|
-
return /* @__PURE__ */ n("i", { className:
|
|
1193
|
+
return /* @__PURE__ */ n("i", { className: P.feedbackIcon, children: t.muted || t.volume === 0 ? /* @__PURE__ */ n(We, {}) : t.volume >= 0.5 ? /* @__PURE__ */ n(Ye, {}) : /* @__PURE__ */ n(Qe, {}) });
|
|
1090
1194
|
default:
|
|
1091
1195
|
return null;
|
|
1092
1196
|
}
|
|
1093
1197
|
}
|
|
1094
|
-
function
|
|
1198
|
+
function Oo({ action: e }) {
|
|
1095
1199
|
const { t } = _(), o = T();
|
|
1096
1200
|
if (!o)
|
|
1097
1201
|
return null;
|
|
1098
1202
|
switch (e) {
|
|
1099
1203
|
case "captionsChange":
|
|
1100
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1204
|
+
return /* @__PURE__ */ n("div", { className: P.feedbackMessage, children: o.textTracks.selected ? t("CAPTION_LANGUAGE", {
|
|
1101
1205
|
language: o.textTracks.selected.label
|
|
1102
1206
|
}) : `${t("CAPTIONS")}: ${t("OFF")}` });
|
|
1103
1207
|
case "volumeChange":
|
|
1104
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1208
|
+
return /* @__PURE__ */ n("div", { className: P.feedbackMessage, children: o.muted || o.volume === 0 ? t("MUTED") : t("VOLUME_VALUE", { volume: (o.volume * 100).toFixed(0) }) });
|
|
1105
1209
|
case "playbackRateChange":
|
|
1106
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1210
|
+
return /* @__PURE__ */ n("div", { className: P.feedbackMessage, children: t("PLAYBACK_SPEED_MESSAGE", { speed: o.playbackRate }) });
|
|
1107
1211
|
case "seekForward":
|
|
1108
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1212
|
+
return /* @__PURE__ */ n("div", { className: P.feedbackMessage, children: t("SEEK_FORWARD", { seconds: 5 }) });
|
|
1109
1213
|
case "seekForward10":
|
|
1110
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1214
|
+
return /* @__PURE__ */ n("div", { className: P.feedbackMessage, children: t("SEEK_FORWARD", { seconds: 10 }) });
|
|
1111
1215
|
case "seekBackward":
|
|
1112
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1216
|
+
return /* @__PURE__ */ n("div", { className: P.feedbackMessage, children: t("SEEK_BACKWARD", { seconds: 5 }) });
|
|
1113
1217
|
case "seekBackward10":
|
|
1114
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1218
|
+
return /* @__PURE__ */ n("div", { className: P.feedbackMessage, children: t("SEEK_BACKWARD", { seconds: 10 }) });
|
|
1115
1219
|
default:
|
|
1116
1220
|
return null;
|
|
1117
1221
|
}
|
|
1118
1222
|
}
|
|
1119
|
-
const
|
|
1120
|
-
function
|
|
1121
|
-
return /* @__PURE__ */
|
|
1122
|
-
/* @__PURE__ */ n(
|
|
1123
|
-
/* @__PURE__ */ n(
|
|
1223
|
+
const Fo = Ge(Bo, 300), Zo = Ge(Oo, 1e3);
|
|
1224
|
+
function Xe() {
|
|
1225
|
+
return /* @__PURE__ */ r("div", { className: P.feedbackOverlay, children: [
|
|
1226
|
+
/* @__PURE__ */ n(Fo, {}),
|
|
1227
|
+
/* @__PURE__ */ n(Zo, {})
|
|
1124
1228
|
] });
|
|
1125
1229
|
}
|
|
1126
|
-
const
|
|
1230
|
+
const Do = (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" }) }), 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: "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" }) }), Ko = "_full-screen-button_1xm32_2", zo = {
|
|
1127
1231
|
"full-screen-button": "_full-screen-button_1xm32_2",
|
|
1128
|
-
fullScreenButton:
|
|
1232
|
+
fullScreenButton: Ko
|
|
1129
1233
|
};
|
|
1130
|
-
function
|
|
1131
|
-
const e =
|
|
1234
|
+
function Uo() {
|
|
1235
|
+
const e = b("fullscreen"), t = T(), o = g(), i = L(), { t: s } = _();
|
|
1132
1236
|
return i.hideFullScreen ? null : /* @__PURE__ */ n(
|
|
1133
1237
|
"button",
|
|
1134
1238
|
{
|
|
@@ -1136,390 +1240,328 @@ function xo() {
|
|
|
1136
1240
|
type: "button",
|
|
1137
1241
|
"aria-label": s(e ? "EXIT_FULLSCREEN" : "ENTER_FULLSCREEN"),
|
|
1138
1242
|
tabIndex: o.state.interactionsDisabled ? -1 : 0,
|
|
1139
|
-
className: `controls-button ${
|
|
1243
|
+
className: `controls-button ${zo.fullScreenButton}`,
|
|
1140
1244
|
onClick: () => {
|
|
1141
1245
|
e ? t == null || t.exitFullscreen() : t == null || t.enterFullscreen();
|
|
1142
1246
|
},
|
|
1143
|
-
children: e ? /* @__PURE__ */ n(
|
|
1247
|
+
children: e ? /* @__PURE__ */ n(jo, { className: "controls-button-icon" }) : /* @__PURE__ */ n(Do, { className: "controls-button-icon" })
|
|
1144
1248
|
}
|
|
1145
1249
|
);
|
|
1146
1250
|
}
|
|
1147
|
-
const
|
|
1251
|
+
const $o = "_gestures-container_1fn3b_1", qo = "_gesture_1fn3b_1", Ne = {
|
|
1148
1252
|
"gestures-container": "_gestures-container_1fn3b_1",
|
|
1149
|
-
gesturesContainer:
|
|
1150
|
-
gesture:
|
|
1253
|
+
gesturesContainer: $o,
|
|
1254
|
+
gesture: qo
|
|
1151
1255
|
};
|
|
1152
|
-
function
|
|
1256
|
+
function Go() {
|
|
1153
1257
|
const e = ie(), t = () => {
|
|
1154
1258
|
e.togglePaused();
|
|
1155
1259
|
};
|
|
1156
|
-
return /* @__PURE__ */ n("div", { className:
|
|
1260
|
+
return /* @__PURE__ */ n("div", { className: Ne.gesturesContainer, children: /* @__PURE__ */ n("div", { "aria-hidden": !0, className: Ne.gesture, onClick: t }) });
|
|
1157
1261
|
}
|
|
1158
|
-
const
|
|
1159
|
-
"
|
|
1160
|
-
|
|
1161
|
-
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_poi8b_11",
|
|
1162
|
-
keyboardShortcutsOverlay: Ho,
|
|
1163
|
-
"screen-reader-content": "_screen-reader-content_poi8b_75",
|
|
1164
|
-
screenReaderContent: So,
|
|
1165
|
-
"controls-button": "_controls-button_poi8b_89",
|
|
1166
|
-
controlsButton: To,
|
|
1167
|
-
"keyboard-shortcuts-button": "_keyboard-shortcuts-button_poi8b_101",
|
|
1168
|
-
keyboardShortcutsButton: Eo,
|
|
1169
|
-
"kebab-menu-button": "_kebab-menu-button_poi8b_110",
|
|
1170
|
-
kebabMenuButton: Vo,
|
|
1171
|
-
"kebab-menu": "_kebab-menu_poi8b_110",
|
|
1172
|
-
kebabMenu: Bo,
|
|
1173
|
-
"kebab-menu-item": "_kebab-menu-item_poi8b_139",
|
|
1174
|
-
kebabMenuItem: Ao,
|
|
1175
|
-
"close-button": "_close-button_poi8b_178",
|
|
1176
|
-
closeButton: Ro,
|
|
1177
|
-
arrow: Oo
|
|
1262
|
+
const Wo = "_play-pause-button_1834v_1", Qo = {
|
|
1263
|
+
"play-pause-button": "_play-pause-button_1834v_1",
|
|
1264
|
+
playPauseButton: Wo
|
|
1178
1265
|
};
|
|
1179
|
-
function
|
|
1180
|
-
const { t } = _();
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
i && i.focus();
|
|
1184
|
-
};
|
|
1185
|
-
return /* @__PURE__ */ l(
|
|
1186
|
-
"div",
|
|
1266
|
+
function Yo() {
|
|
1267
|
+
const e = T(), t = g(), o = b("paused"), { t: i } = _();
|
|
1268
|
+
return e ? /* @__PURE__ */ n(
|
|
1269
|
+
"button",
|
|
1187
1270
|
{
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
"button",
|
|
1198
|
-
{
|
|
1199
|
-
type: "button",
|
|
1200
|
-
className: H.closeButton,
|
|
1201
|
-
onClick: e,
|
|
1202
|
-
"aria-label": t("CLOSE"),
|
|
1203
|
-
children: /* @__PURE__ */ n(Qe, {})
|
|
1204
|
-
}
|
|
1205
|
-
)
|
|
1206
|
-
] }),
|
|
1207
|
-
/* @__PURE__ */ l("table", { children: [
|
|
1208
|
-
/* @__PURE__ */ n("caption", { className: H.screenReaderContent, children: t("KEYBOARD_SHORTCUTS") }),
|
|
1209
|
-
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ l("tr", { children: [
|
|
1210
|
-
/* @__PURE__ */ n("th", { children: t("ACTION") }),
|
|
1211
|
-
/* @__PURE__ */ n("th", { children: t("SHORTCUT") })
|
|
1212
|
-
] }) }),
|
|
1213
|
-
/* @__PURE__ */ l("tbody", { children: [
|
|
1214
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1215
|
-
/* @__PURE__ */ n("td", { children: t("SEEK_BACKWARD", { seconds: 5 }) }),
|
|
1216
|
-
/* @__PURE__ */ n("td", { children: t("LEFT_ARROW") })
|
|
1217
|
-
] }),
|
|
1218
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1219
|
-
/* @__PURE__ */ n("td", { children: t("SEEK_FORWARD", { seconds: 5 }) }),
|
|
1220
|
-
/* @__PURE__ */ n("td", { children: t("RIGHT_ARROW") })
|
|
1221
|
-
] }),
|
|
1222
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1223
|
-
/* @__PURE__ */ n("td", { children: t("SEEK_BACKWARD", { seconds: 10 }) }),
|
|
1224
|
-
/* @__PURE__ */ n("td", { children: "J" })
|
|
1225
|
-
] }),
|
|
1226
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1227
|
-
/* @__PURE__ */ n("td", { children: t("SEEK_FORWARD", { seconds: 10 }) }),
|
|
1228
|
-
/* @__PURE__ */ n("td", { children: "L" })
|
|
1229
|
-
] }),
|
|
1230
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1231
|
-
/* @__PURE__ */ n("td", { children: t("INCREASE_VOLUME", { percent: 5 }) }),
|
|
1232
|
-
/* @__PURE__ */ n("td", { children: t("UP_ARROW") })
|
|
1233
|
-
] }),
|
|
1234
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1235
|
-
/* @__PURE__ */ n("td", { children: t("DECREASE_VOLUME", { percent: 5 }) }),
|
|
1236
|
-
/* @__PURE__ */ n("td", { children: t("DOWN_ARROW") })
|
|
1237
|
-
] }),
|
|
1238
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1239
|
-
/* @__PURE__ */ n("td", { children: t("TOGGLE_MUTED") }),
|
|
1240
|
-
/* @__PURE__ */ n("td", { children: "M" })
|
|
1241
|
-
] }),
|
|
1242
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1243
|
-
/* @__PURE__ */ n("td", { children: t("TOGGLE_PLAY_PAUSE") }),
|
|
1244
|
-
/* @__PURE__ */ l("td", { children: [
|
|
1245
|
-
t("SPACE"),
|
|
1246
|
-
", K"
|
|
1247
|
-
] })
|
|
1248
|
-
] }),
|
|
1249
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1250
|
-
/* @__PURE__ */ n("td", { children: t("ENTER_FULLSCREEN") }),
|
|
1251
|
-
/* @__PURE__ */ n("td", { children: "F" })
|
|
1252
|
-
] }),
|
|
1253
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1254
|
-
/* @__PURE__ */ n("td", { children: t("EXIT_FULLSCREEN") }),
|
|
1255
|
-
/* @__PURE__ */ n("td", { children: "Esc, F" })
|
|
1256
|
-
] }),
|
|
1257
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1258
|
-
/* @__PURE__ */ n("td", { children: t("TOGGLE_CAPTIONS") }),
|
|
1259
|
-
/* @__PURE__ */ n("td", { children: "C" })
|
|
1260
|
-
] }),
|
|
1261
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1262
|
-
/* @__PURE__ */ n("td", { children: t("NEXT_CAPTION_LANGUAGE") }),
|
|
1263
|
-
/* @__PURE__ */ n("td", { children: "V" })
|
|
1264
|
-
] }),
|
|
1265
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1266
|
-
/* @__PURE__ */ n("td", { children: t("PREVIOUS_CAPTION_LANGUAGE") }),
|
|
1267
|
-
/* @__PURE__ */ n("td", { children: "X" })
|
|
1268
|
-
] }),
|
|
1269
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1270
|
-
/* @__PURE__ */ n("td", { children: t("DECREASE_PLAYBACK_SPEED") }),
|
|
1271
|
-
/* @__PURE__ */ n("td", { children: "A" })
|
|
1272
|
-
] }),
|
|
1273
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1274
|
-
/* @__PURE__ */ n("td", { children: t("RESET_PLAYBACK_SPEED") }),
|
|
1275
|
-
/* @__PURE__ */ n("td", { children: "S" })
|
|
1276
|
-
] }),
|
|
1277
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1278
|
-
/* @__PURE__ */ n("td", { children: t("INCREASE_PLAYBACK_SPEED") }),
|
|
1279
|
-
/* @__PURE__ */ n("td", { children: "D" })
|
|
1280
|
-
] }),
|
|
1281
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1282
|
-
/* @__PURE__ */ n("td", { children: t("JUMP_TO_START") }),
|
|
1283
|
-
/* @__PURE__ */ n("td", { children: "0" })
|
|
1284
|
-
] }),
|
|
1285
|
-
/* @__PURE__ */ l("tr", { children: [
|
|
1286
|
-
/* @__PURE__ */ n("td", { children: t("JUMP_TO_PERCENTAGE") }),
|
|
1287
|
-
/* @__PURE__ */ n("td", { children: "1-9" })
|
|
1288
|
-
] })
|
|
1289
|
-
] })
|
|
1290
|
-
] })
|
|
1291
|
-
]
|
|
1271
|
+
role: "button",
|
|
1272
|
+
type: "button",
|
|
1273
|
+
className: `controls-button ${Qo.playPauseButton}`,
|
|
1274
|
+
"aria-label": i(o ? "PLAY" : "PAUSE"),
|
|
1275
|
+
tabIndex: t.state.interactionsDisabled ? -1 : 0,
|
|
1276
|
+
onClick: () => {
|
|
1277
|
+
e.paused ? e.remoteControl.play() : e.remoteControl.pause();
|
|
1278
|
+
},
|
|
1279
|
+
children: o ? /* @__PURE__ */ n(ge, { className: "controls-button-icon" }) : /* @__PURE__ */ n(be, { className: "controls-button-icon" })
|
|
1292
1280
|
}
|
|
1293
|
-
);
|
|
1281
|
+
) : null;
|
|
1294
1282
|
}
|
|
1295
|
-
const
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1283
|
+
const Xo = "_poster_195hi_1", Jo = {
|
|
1284
|
+
poster: Xo
|
|
1285
|
+
};
|
|
1286
|
+
function e1({ src: e }) {
|
|
1287
|
+
const t = b("source");
|
|
1288
|
+
return t.type === "video/youtube" || t.type === "video/vimeo" ? null : /* @__PURE__ */ n(ft, { src: e, className: Jo.poster });
|
|
1289
|
+
}
|
|
1290
|
+
const t1 = "_small-layout-overlay_80lyi_1", n1 = "_small-layout-button_80lyi_14", o1 = "_small-layout-icon-play_80lyi_24", i1 = "_small-layout-icon-pause_80lyi_30", s1 = "_full-screen-close-icon_80lyi_36", a1 = "_fade-out_80lyi_1", Q = {
|
|
1291
|
+
"small-layout-overlay": "_small-layout-overlay_80lyi_1",
|
|
1292
|
+
smallLayoutOverlay: t1,
|
|
1293
|
+
"small-layout-button": "_small-layout-button_80lyi_14",
|
|
1294
|
+
smallLayoutButton: n1,
|
|
1295
|
+
"small-layout-icon-play": "_small-layout-icon-play_80lyi_24",
|
|
1296
|
+
smallLayoutIconPlay: o1,
|
|
1297
|
+
"small-layout-icon-pause": "_small-layout-icon-pause_80lyi_30",
|
|
1298
|
+
smallLayoutIconPause: i1,
|
|
1299
|
+
"full-screen-close-icon": "_full-screen-close-icon_80lyi_36",
|
|
1300
|
+
fullScreenCloseIcon: s1,
|
|
1301
|
+
"fade-out": "_fade-out_80lyi_1",
|
|
1302
|
+
fadeOut: a1
|
|
1303
|
+
};
|
|
1304
|
+
function l1() {
|
|
1305
|
+
const e = b("paused");
|
|
1306
|
+
return /* @__PURE__ */ r("div", { className: Q.smallLayoutOverlay, children: [
|
|
1307
|
+
/* @__PURE__ */ n(Ct, { className: Q.fullScreenCloseIcon, children: /* @__PURE__ */ n(De, {}) }),
|
|
1308
|
+
/* @__PURE__ */ n("i", { className: Q.smallLayoutButton, children: e ? /* @__PURE__ */ n(ge, { className: Q.smallLayoutIconPlay }) : /* @__PURE__ */ n(be, { className: Q.smallLayoutIconPause }) })
|
|
1309
|
+
] });
|
|
1310
|
+
}
|
|
1311
|
+
const r1 = "_time-indicator_1uygf_1", c1 = {
|
|
1312
|
+
"time-indicator": "_time-indicator_1uygf_1",
|
|
1313
|
+
timeIndicator: r1
|
|
1314
|
+
};
|
|
1315
|
+
function u1() {
|
|
1316
|
+
return /* @__PURE__ */ r("div", { className: c1.timeIndicator, children: [
|
|
1317
|
+
/* @__PURE__ */ n(xe, { type: "current" }),
|
|
1318
|
+
"/",
|
|
1319
|
+
/* @__PURE__ */ n(xe, { type: "duration" })
|
|
1320
|
+
] });
|
|
1321
|
+
}
|
|
1322
|
+
const d1 = "_comment-markers_1eebk_1", m1 = "_comment-marker_1eebk_1", h1 = "_timeline-wrapper_1eebk_23", p1 = "_timeline-wrapper-compact_1eebk_24", _1 = "_track_1eebk_33", f1 = "_thumb_1eebk_46", C1 = "_root_1eebk_60", b1 = "_track-inner_1eebk_90", g1 = "_progress_1eebk_96", v1 = "_track-fill_1eebk_102", w1 = "_pins_1eebk_119", k1 = "_pin-button_1eebk_128", y1 = "_annotation-pin_1eebk_148", L1 = "_quiz-pin_1eebk_153", M1 = "_annotation-pin-child_1eebk_158", x1 = "_quiz-pin-child_1eebk_162", P1 = "_interactive-pin-container_1eebk_167", N1 = "_interactive-pin-wrapper_1eebk_173", I1 = "_interactive-pin-icon_1eebk_179", S1 = "_interactive-pin_1eebk_167", E1 = "_bg_1eebk_193", V1 = "_symbol_1eebk_197", T1 = "_interactive-pin-button_1eebk_202", H1 = "_interactive-pin-menu_1eebk_222", A1 = "_interactive-pin-menu-item_1eebk_236", R1 = "_arrow_1eebk_257", m = {
|
|
1323
|
+
"comment-markers": "_comment-markers_1eebk_1",
|
|
1324
|
+
commentMarkers: d1,
|
|
1325
|
+
"comment-marker": "_comment-marker_1eebk_1",
|
|
1326
|
+
commentMarker: m1,
|
|
1327
|
+
"timeline-wrapper": "_timeline-wrapper_1eebk_23",
|
|
1328
|
+
timelineWrapper: h1,
|
|
1329
|
+
"timeline-wrapper-compact": "_timeline-wrapper-compact_1eebk_24",
|
|
1330
|
+
timelineWrapperCompact: p1,
|
|
1331
|
+
track: _1,
|
|
1332
|
+
thumb: f1,
|
|
1333
|
+
root: C1,
|
|
1334
|
+
"track-inner": "_track-inner_1eebk_90",
|
|
1335
|
+
trackInner: b1,
|
|
1336
|
+
progress: g1,
|
|
1337
|
+
"track-fill": "_track-fill_1eebk_102",
|
|
1338
|
+
trackFill: v1,
|
|
1339
|
+
pins: w1,
|
|
1340
|
+
"pin-button": "_pin-button_1eebk_128",
|
|
1341
|
+
pinButton: k1,
|
|
1342
|
+
"annotation-pin": "_annotation-pin_1eebk_148",
|
|
1343
|
+
annotationPin: y1,
|
|
1344
|
+
"quiz-pin": "_quiz-pin_1eebk_153",
|
|
1345
|
+
quizPin: L1,
|
|
1346
|
+
"annotation-pin-child": "_annotation-pin-child_1eebk_158",
|
|
1347
|
+
annotationPinChild: M1,
|
|
1348
|
+
"quiz-pin-child": "_quiz-pin-child_1eebk_162",
|
|
1349
|
+
quizPinChild: x1,
|
|
1350
|
+
"interactive-pin-container": "_interactive-pin-container_1eebk_167",
|
|
1351
|
+
interactivePinContainer: P1,
|
|
1352
|
+
"interactive-pin-wrapper": "_interactive-pin-wrapper_1eebk_173",
|
|
1353
|
+
interactivePinWrapper: N1,
|
|
1354
|
+
"interactive-pin-icon": "_interactive-pin-icon_1eebk_179",
|
|
1355
|
+
interactivePinIcon: I1,
|
|
1356
|
+
"interactive-pin": "_interactive-pin_1eebk_167",
|
|
1357
|
+
interactivePin: S1,
|
|
1358
|
+
bg: E1,
|
|
1359
|
+
symbol: V1,
|
|
1360
|
+
"interactive-pin-button": "_interactive-pin-button_1eebk_202",
|
|
1361
|
+
interactivePinButton: T1,
|
|
1362
|
+
"interactive-pin-menu": "_interactive-pin-menu_1eebk_222",
|
|
1363
|
+
interactivePinMenu: H1,
|
|
1364
|
+
"interactive-pin-menu-item": "_interactive-pin-menu-item_1eebk_236",
|
|
1365
|
+
interactivePinMenuItem: A1,
|
|
1366
|
+
arrow: R1
|
|
1367
|
+
};
|
|
1368
|
+
function Ie() {
|
|
1369
|
+
const e = b("duration"), t = L(), o = g();
|
|
1370
|
+
return e > 0 && t.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ n("div", { className: m.commentMarkers, children: t.comments.map((i) => /* @__PURE__ */ n(
|
|
1371
|
+
"span",
|
|
1372
|
+
{
|
|
1373
|
+
className: m.commentMarker,
|
|
1374
|
+
style: {
|
|
1375
|
+
left: `${i.timestamp / e * 100}%`
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1378
|
+
i.id
|
|
1379
|
+
)) }) : null;
|
|
1380
|
+
}
|
|
1381
|
+
const B1 = ct(function({ currentTime: t, position: o }, i) {
|
|
1382
|
+
const [s, a] = x(!1), l = L(), c = g(), u = p(() => {
|
|
1383
|
+
l.interactiveMenuElements.length > 0 ? (a((k) => !k), c.setGlobalKeysDisabled(!0)) : l.onInteractivePinClick(t);
|
|
1384
|
+
}, [
|
|
1385
|
+
l.interactiveMenuElements,
|
|
1386
|
+
l.onInteractivePinClick,
|
|
1387
|
+
t
|
|
1388
|
+
]), d = q(null), { refs: f, floatingStyles: v, context: w } = de({
|
|
1389
|
+
open: s,
|
|
1390
|
+
onOpenChange: a,
|
|
1307
1391
|
whileElementsMounted: me,
|
|
1308
|
-
placement: "
|
|
1392
|
+
placement: "top",
|
|
1309
1393
|
middleware: [
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
element:
|
|
1394
|
+
He(),
|
|
1395
|
+
Ae(6),
|
|
1396
|
+
Re({
|
|
1397
|
+
element: d
|
|
1314
1398
|
})
|
|
1315
1399
|
]
|
|
1316
|
-
}),
|
|
1317
|
-
|
|
1318
|
-
activeIndex: o,
|
|
1319
|
-
onNavigate: i
|
|
1320
|
-
}), y = he(v), { getReferenceProps: I, getFloatingProps: p, getItemProps: C } = pe(
|
|
1321
|
-
[y, k]
|
|
1322
|
-
), { t: A } = _();
|
|
1323
|
-
return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ l(X, { children: [
|
|
1400
|
+
}), y = he(w), { getReferenceProps: N, getFloatingProps: h } = pe([y]), C = It([f.setReference, i]);
|
|
1401
|
+
return /* @__PURE__ */ r(X, { children: [
|
|
1324
1402
|
/* @__PURE__ */ n(
|
|
1325
1403
|
"button",
|
|
1326
1404
|
{
|
|
1327
|
-
"aria-label": A("KEBAB_MENU"),
|
|
1328
1405
|
type: "button",
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
children: /* @__PURE__ */
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
context: v,
|
|
1374
|
-
className: H.arrow
|
|
1375
|
-
}
|
|
1376
|
-
)
|
|
1377
|
-
]
|
|
1378
|
-
}
|
|
1379
|
-
) })
|
|
1380
|
-
] }) : null;
|
|
1381
|
-
}
|
|
1382
|
-
const qo = (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" }) });
|
|
1383
|
-
function Go() {
|
|
1384
|
-
const [e, t] = M(!1), [o, i] = M(!1), [s, a] = M(!1), c = w(), r = g("playing"), d = ie(), { t: h } = _(), b = f(() => {
|
|
1385
|
-
t(!0), c.disableInteractions(), r && (a(!0), d.pause());
|
|
1386
|
-
}, [r, d, c]), v = f(() => {
|
|
1387
|
-
t(!1), i(!0), c.enableInteractions(), s && (a(!1), d.play());
|
|
1388
|
-
}, [s, d, c]), k = f(
|
|
1389
|
-
(y) => o && (y == null ? void 0 : y.focus()),
|
|
1390
|
-
[o]
|
|
1391
|
-
);
|
|
1392
|
-
return e ? /* @__PURE__ */ n(Fo, { onClose: v }) : /* @__PURE__ */ l("div", { className: H.controlsOverlay, children: [
|
|
1393
|
-
/* @__PURE__ */ n(
|
|
1394
|
-
"button",
|
|
1395
|
-
{
|
|
1396
|
-
ref: k,
|
|
1397
|
-
"aria-label": h("KEYBOARD_SHORTCUTS"),
|
|
1398
|
-
type: "button",
|
|
1399
|
-
className: `${H.controlsButton} ${H.keyboardShortcutsButton}`,
|
|
1400
|
-
onClick: b,
|
|
1401
|
-
tabIndex: c.state.interactionsDisabled ? -1 : 0,
|
|
1402
|
-
children: /* @__PURE__ */ n(qo, {})
|
|
1406
|
+
"aria-haspopup": l.interactiveMenuElements.length > 0 ? "true" : void 0,
|
|
1407
|
+
onClick: u,
|
|
1408
|
+
className: m.interactivePinButton,
|
|
1409
|
+
ref: C,
|
|
1410
|
+
style: { left: `${o}%` },
|
|
1411
|
+
...N(),
|
|
1412
|
+
children: /* @__PURE__ */ r(
|
|
1413
|
+
"svg",
|
|
1414
|
+
{
|
|
1415
|
+
className: m.interactivePin,
|
|
1416
|
+
width: "36",
|
|
1417
|
+
height: "44",
|
|
1418
|
+
fill: "none",
|
|
1419
|
+
viewBox: "0 0 36 44",
|
|
1420
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1421
|
+
children: [
|
|
1422
|
+
/* @__PURE__ */ n(
|
|
1423
|
+
"path",
|
|
1424
|
+
{
|
|
1425
|
+
className: m.bg,
|
|
1426
|
+
d: "M 33.1703,27.499961 C 34.9615,24.721661 36,21.418761 36,17.874961 36,8.0028612 27.9411,-3.8819277e-5 18,-3.8819277e-5 8.0588999,-3.8819277e-5 -1.5e-7,8.0028612 -1.5e-7,17.874961 c 0,3.5438 1.03844995,6.8467 2.82964995,9.625 4.5447501,6.8094 10.1600502,10.1014 15.2487502,16.5 5.0364,-6.3985 10.5573,-9.7259 15.0919,-16.5 z"
|
|
1427
|
+
}
|
|
1428
|
+
),
|
|
1429
|
+
/* @__PURE__ */ n(
|
|
1430
|
+
"path",
|
|
1431
|
+
{
|
|
1432
|
+
className: m.symbol,
|
|
1433
|
+
d: "m 35.499961,17.877772 c 0,3.443549 -1.008198,6.652061 -2.747494,9.351891 -2.235095,3.338633 -4.71529,5.832631 -7.286584,8.306425 -0.277599,0.267143 -0.556499,0.534085 -0.836198,0.801928 -2.174595,2.082232 -4.40389,4.216673 -6.553385,6.870196 -2.158995,-2.636621 -4.40379,-4.754859 -6.591985,-6.819788 -0.2979,-0.281145 -0.594699,-0.561289 -0.890198,-0.841534 C 7.9918219,33.077896 5.4869279,30.584698 3.2477829,27.230063 1.5082968,24.530133 0.50003905,21.321521 0.50003905,17.877772 0.50003905,8.2835422 8.3317219,0.50000048 18,0.50000048 c 9.668278,0 17.499961,7.78354172 17.499961,17.37777152 z"
|
|
1434
|
+
}
|
|
1435
|
+
),
|
|
1436
|
+
/* @__PURE__ */ n(
|
|
1437
|
+
"path",
|
|
1438
|
+
{
|
|
1439
|
+
className: m.interactivePinIcon,
|
|
1440
|
+
"data-open": s,
|
|
1441
|
+
fillRule: "evenodd",
|
|
1442
|
+
clipRule: "evenodd",
|
|
1443
|
+
d: "m 18.75,17.388467 v -6.25 h -1.5 v 6.25 H 11 v 1.5 h 6.25 v 6.25 h 1.5 v -6.25 H 25 v -1.5 z",
|
|
1444
|
+
fill: "white"
|
|
1445
|
+
}
|
|
1446
|
+
)
|
|
1447
|
+
]
|
|
1448
|
+
}
|
|
1449
|
+
)
|
|
1403
1450
|
}
|
|
1404
1451
|
),
|
|
1405
|
-
/* @__PURE__ */ n(
|
|
1452
|
+
s && /* @__PURE__ */ n(
|
|
1453
|
+
_e,
|
|
1454
|
+
{
|
|
1455
|
+
order: ["floating", "content"],
|
|
1456
|
+
context: w,
|
|
1457
|
+
modal: !0,
|
|
1458
|
+
children: /* @__PURE__ */ r(
|
|
1459
|
+
"div",
|
|
1460
|
+
{
|
|
1461
|
+
ref: f.setFloating,
|
|
1462
|
+
style: v,
|
|
1463
|
+
className: m.interactivePinMenu,
|
|
1464
|
+
...h(),
|
|
1465
|
+
children: [
|
|
1466
|
+
l.interactiveMenuElements.map(
|
|
1467
|
+
({ id: k, text: I, onClick: Z }) => /* @__PURE__ */ r(
|
|
1468
|
+
"button",
|
|
1469
|
+
{
|
|
1470
|
+
type: "button",
|
|
1471
|
+
className: m.interactivePinMenuItem,
|
|
1472
|
+
onClick: () => {
|
|
1473
|
+
Z(k, t), a(!1), c.setGlobalKeysDisabled(!1);
|
|
1474
|
+
},
|
|
1475
|
+
children: [
|
|
1476
|
+
/* @__PURE__ */ n(
|
|
1477
|
+
"svg",
|
|
1478
|
+
{
|
|
1479
|
+
width: "16",
|
|
1480
|
+
height: "16",
|
|
1481
|
+
viewBox: "0 0 16 16",
|
|
1482
|
+
fill: "none",
|
|
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
|
+
)
|
|
1493
|
+
}
|
|
1494
|
+
),
|
|
1495
|
+
I
|
|
1496
|
+
]
|
|
1497
|
+
},
|
|
1498
|
+
k
|
|
1499
|
+
)
|
|
1500
|
+
),
|
|
1501
|
+
/* @__PURE__ */ n(
|
|
1502
|
+
Be,
|
|
1503
|
+
{
|
|
1504
|
+
ref: d,
|
|
1505
|
+
context: w,
|
|
1506
|
+
className: m.arrow
|
|
1507
|
+
}
|
|
1508
|
+
)
|
|
1509
|
+
]
|
|
1510
|
+
}
|
|
1511
|
+
)
|
|
1512
|
+
}
|
|
1513
|
+
)
|
|
1406
1514
|
] });
|
|
1407
|
-
}
|
|
1408
|
-
const
|
|
1409
|
-
|
|
1410
|
-
|
|
1515
|
+
}), O1 = () => {
|
|
1516
|
+
const e = q(!1), t = q(!1), o = A(() => ({
|
|
1517
|
+
ArrowLeft: () => {
|
|
1518
|
+
t.current = !0;
|
|
1519
|
+
},
|
|
1520
|
+
ArrowRight: () => {
|
|
1521
|
+
t.current = !0;
|
|
1522
|
+
},
|
|
1523
|
+
Tab: () => {
|
|
1524
|
+
t.current = !1;
|
|
1525
|
+
}
|
|
1526
|
+
}), []);
|
|
1527
|
+
return fe(o), { focusCallback: p((s) => {
|
|
1528
|
+
s && (s.addEventListener("focus", () => {
|
|
1529
|
+
e.current = !0;
|
|
1530
|
+
}), s.addEventListener("blur", () => {
|
|
1531
|
+
t.current || (e.current = !1);
|
|
1532
|
+
}), e.current && s.focus());
|
|
1533
|
+
}, []), wasPinFocused: e.current };
|
|
1411
1534
|
};
|
|
1412
|
-
function
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1535
|
+
function F1() {
|
|
1536
|
+
var c;
|
|
1537
|
+
const e = b("duration"), t = b("currentTime"), o = t / e * 100, { disableInteractivePinRanges: i } = L(), s = !i.some(
|
|
1538
|
+
([u, d]) => t >= u && t <= d
|
|
1539
|
+
), { wasPinFocused: a, focusCallback: l } = O1();
|
|
1540
|
+
return s ? /* @__PURE__ */ n("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ n("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ n(
|
|
1541
|
+
B1,
|
|
1416
1542
|
{
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
"aria-label": i(o ? "PLAY" : "PAUSE"),
|
|
1421
|
-
tabIndex: t.state.interactionsDisabled ? -1 : 0,
|
|
1422
|
-
onClick: () => {
|
|
1423
|
-
e.paused ? e.remoteControl.play() : e.remoteControl.pause();
|
|
1424
|
-
},
|
|
1425
|
-
children: o ? /* @__PURE__ */ n(be, { className: "controls-button-icon" }) : /* @__PURE__ */ n(fe, { className: "controls-button-icon" })
|
|
1543
|
+
ref: l,
|
|
1544
|
+
currentTime: t,
|
|
1545
|
+
position: o
|
|
1426
1546
|
}
|
|
1427
|
-
) : null;
|
|
1428
|
-
}
|
|
1429
|
-
const Xo = "_poster_195hi_1", Jo = {
|
|
1430
|
-
poster: Xo
|
|
1431
|
-
};
|
|
1432
|
-
function e1({ src: e }) {
|
|
1433
|
-
const t = g("source");
|
|
1434
|
-
return t.type === "video/youtube" || t.type === "video/vimeo" ? null : /* @__PURE__ */ n(mt, { src: e, className: Jo.poster });
|
|
1435
|
-
}
|
|
1436
|
-
const t1 = "_small-layout-overlay_80lyi_1", n1 = "_small-layout-button_80lyi_14", o1 = "_small-layout-icon-play_80lyi_24", i1 = "_small-layout-icon-pause_80lyi_30", s1 = "_full-screen-close-icon_80lyi_36", a1 = "_fade-out_80lyi_1", W = {
|
|
1437
|
-
"small-layout-overlay": "_small-layout-overlay_80lyi_1",
|
|
1438
|
-
smallLayoutOverlay: t1,
|
|
1439
|
-
"small-layout-button": "_small-layout-button_80lyi_14",
|
|
1440
|
-
smallLayoutButton: n1,
|
|
1441
|
-
"small-layout-icon-play": "_small-layout-icon-play_80lyi_24",
|
|
1442
|
-
smallLayoutIconPlay: o1,
|
|
1443
|
-
"small-layout-icon-pause": "_small-layout-icon-pause_80lyi_30",
|
|
1444
|
-
smallLayoutIconPause: i1,
|
|
1445
|
-
"full-screen-close-icon": "_full-screen-close-icon_80lyi_36",
|
|
1446
|
-
fullScreenCloseIcon: s1,
|
|
1447
|
-
"fade-out": "_fade-out_80lyi_1",
|
|
1448
|
-
fadeOut: a1
|
|
1449
|
-
};
|
|
1450
|
-
function l1() {
|
|
1451
|
-
const e = g("paused");
|
|
1452
|
-
return /* @__PURE__ */ l("div", { className: W.smallLayoutOverlay, children: [
|
|
1453
|
-
/* @__PURE__ */ n(ht, { className: W.fullScreenCloseIcon, children: /* @__PURE__ */ n(Qe, {}) }),
|
|
1454
|
-
/* @__PURE__ */ n("i", { className: W.smallLayoutButton, children: e ? /* @__PURE__ */ n(be, { className: W.smallLayoutIconPlay }) : /* @__PURE__ */ n(fe, { className: W.smallLayoutIconPause }) })
|
|
1455
|
-
] });
|
|
1547
|
+
) }) }) : (a && ((c = document.querySelector("[data-media-time-slider]")) == null || c.focus()), null);
|
|
1456
1548
|
}
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
};
|
|
1461
|
-
function u1() {
|
|
1462
|
-
return /* @__PURE__ */ l("div", { className: r1.timeIndicator, children: [
|
|
1463
|
-
/* @__PURE__ */ n(Le, { type: "current" }),
|
|
1464
|
-
"/",
|
|
1465
|
-
/* @__PURE__ */ n(Le, { type: "duration" })
|
|
1466
|
-
] });
|
|
1549
|
+
function Z1() {
|
|
1550
|
+
const e = b("paused"), t = g();
|
|
1551
|
+
return e && !t.state.interactionsDisabled ? /* @__PURE__ */ n(F1, {}) : null;
|
|
1467
1552
|
}
|
|
1468
|
-
const
|
|
1469
|
-
"comment-markers": "_comment-markers_1rxwh_1",
|
|
1470
|
-
commentMarkers: d1,
|
|
1471
|
-
"comment-marker": "_comment-marker_1rxwh_1",
|
|
1472
|
-
commentMarker: m1,
|
|
1473
|
-
"timeline-wrapper": "_timeline-wrapper_1rxwh_27",
|
|
1474
|
-
timelineWrapper: h1,
|
|
1475
|
-
track: p1,
|
|
1476
|
-
thumb: _1,
|
|
1477
|
-
root: C1,
|
|
1478
|
-
"track-inner": "_track-inner_1rxwh_96",
|
|
1479
|
-
trackInner: f1,
|
|
1480
|
-
progress: b1,
|
|
1481
|
-
"track-fill": "_track-fill_1rxwh_108",
|
|
1482
|
-
trackFill: g1,
|
|
1483
|
-
pins: v1,
|
|
1484
|
-
"pin-button": "_pin-button_1rxwh_138",
|
|
1485
|
-
pinButton: w1,
|
|
1486
|
-
"annotation-pin": "_annotation-pin_1rxwh_158",
|
|
1487
|
-
annotationPin: y1,
|
|
1488
|
-
"quiz-pin": "_quiz-pin_1rxwh_163",
|
|
1489
|
-
quizPin: k1,
|
|
1490
|
-
"annotation-pin-child": "_annotation-pin-child_1rxwh_168",
|
|
1491
|
-
annotationPinChild: L1,
|
|
1492
|
-
"quiz-pin-child": "_quiz-pin-child_1rxwh_172",
|
|
1493
|
-
quizPinChild: x1,
|
|
1494
|
-
"interactive-pin-container": "_interactive-pin-container_1rxwh_177",
|
|
1495
|
-
interactivePinContainer: M1,
|
|
1496
|
-
"interactive-pin-wrapper": "_interactive-pin-wrapper_1rxwh_187",
|
|
1497
|
-
interactivePinWrapper: N1,
|
|
1498
|
-
"interactive-pin-icon": "_interactive-pin-icon_1rxwh_193",
|
|
1499
|
-
interactivePinIcon: P1,
|
|
1500
|
-
"interactive-pin": "_interactive-pin_1rxwh_177",
|
|
1501
|
-
interactivePin: I1,
|
|
1502
|
-
bg: H1,
|
|
1503
|
-
symbol: S1,
|
|
1504
|
-
"interactive-pin-button": "_interactive-pin-button_1rxwh_216",
|
|
1505
|
-
interactivePinButton: T1,
|
|
1506
|
-
"interactive-pin-menu": "_interactive-pin-menu_1rxwh_236",
|
|
1507
|
-
interactivePinMenu: E1,
|
|
1508
|
-
"interactive-pin-menu-item": "_interactive-pin-menu-item_1rxwh_250",
|
|
1509
|
-
interactivePinMenuItem: V1,
|
|
1510
|
-
arrow: B1
|
|
1511
|
-
}, A1 = {
|
|
1553
|
+
const D1 = {
|
|
1512
1554
|
annotation: m.annotationPin,
|
|
1513
1555
|
quiz: m.quizPin
|
|
1514
1556
|
};
|
|
1515
|
-
function
|
|
1557
|
+
function Je({
|
|
1516
1558
|
type: e,
|
|
1517
1559
|
position: t,
|
|
1518
1560
|
children: o,
|
|
1519
1561
|
onClick: i,
|
|
1520
1562
|
id: s
|
|
1521
1563
|
}) {
|
|
1522
|
-
const a =
|
|
1564
|
+
const a = g();
|
|
1523
1565
|
return /* @__PURE__ */ n(
|
|
1524
1566
|
"button",
|
|
1525
1567
|
{
|
|
@@ -1529,10 +1571,10 @@ function We({
|
|
|
1529
1571
|
style: { left: `${t}%` },
|
|
1530
1572
|
onClick: i,
|
|
1531
1573
|
"data-marker-id": s,
|
|
1532
|
-
children: /* @__PURE__ */
|
|
1574
|
+
children: /* @__PURE__ */ r(
|
|
1533
1575
|
"svg",
|
|
1534
1576
|
{
|
|
1535
|
-
className:
|
|
1577
|
+
className: D1[e],
|
|
1536
1578
|
width: "26",
|
|
1537
1579
|
height: "32",
|
|
1538
1580
|
viewBox: "0 0 26 32",
|
|
@@ -1546,8 +1588,8 @@ function We({
|
|
|
1546
1588
|
}
|
|
1547
1589
|
);
|
|
1548
1590
|
}
|
|
1549
|
-
function
|
|
1550
|
-
return /* @__PURE__ */ n(
|
|
1591
|
+
function j1(e) {
|
|
1592
|
+
return /* @__PURE__ */ n(Je, { type: "annotation", ...e, children: /* @__PURE__ */ n(
|
|
1551
1593
|
"path",
|
|
1552
1594
|
{
|
|
1553
1595
|
className: m.annotationPinChild,
|
|
@@ -1559,7 +1601,7 @@ function R1(e) {
|
|
|
1559
1601
|
}
|
|
1560
1602
|
) });
|
|
1561
1603
|
}
|
|
1562
|
-
function
|
|
1604
|
+
function K1(e) {
|
|
1563
1605
|
const t = e.completed ? /* @__PURE__ */ n(
|
|
1564
1606
|
"path",
|
|
1565
1607
|
{
|
|
@@ -1582,9 +1624,9 @@ function O1(e) {
|
|
|
1582
1624
|
children: e.ordinal
|
|
1583
1625
|
}
|
|
1584
1626
|
);
|
|
1585
|
-
return /* @__PURE__ */ n(
|
|
1627
|
+
return /* @__PURE__ */ n(Je, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ n("circle", { className: m.quizPinChild, cx: "13", cy: "13", r: "6" }) : t });
|
|
1586
1628
|
}
|
|
1587
|
-
function
|
|
1629
|
+
function z1(e, t) {
|
|
1588
1630
|
return e.map((o, i) => ({
|
|
1589
1631
|
id: o.id,
|
|
1590
1632
|
time: o.time,
|
|
@@ -1593,33 +1635,33 @@ function F1(e, t) {
|
|
|
1593
1635
|
onClick: () => t(o)
|
|
1594
1636
|
}));
|
|
1595
1637
|
}
|
|
1596
|
-
function
|
|
1638
|
+
function U1(e, t) {
|
|
1597
1639
|
const o = /* @__PURE__ */ new Map();
|
|
1598
1640
|
e.forEach((a) => {
|
|
1599
|
-
var
|
|
1600
|
-
const
|
|
1601
|
-
o.has(
|
|
1641
|
+
var c;
|
|
1642
|
+
const l = a.time;
|
|
1643
|
+
o.has(l) || o.set(l, []), (c = o.get(l)) == null || c.push(a);
|
|
1602
1644
|
});
|
|
1603
1645
|
const i = [];
|
|
1604
1646
|
let s = 0;
|
|
1605
|
-
return o.forEach((a,
|
|
1647
|
+
return o.forEach((a, l) => {
|
|
1606
1648
|
i.push({
|
|
1607
|
-
id: a.map((
|
|
1608
|
-
time:
|
|
1649
|
+
id: a.map((c) => c.id).join("-"),
|
|
1650
|
+
time: l,
|
|
1609
1651
|
type: "quiz",
|
|
1610
1652
|
ordinal: s + 1,
|
|
1611
1653
|
onClick: () => t(a),
|
|
1612
1654
|
multiple: a.length > 1,
|
|
1613
|
-
completed: a.every((
|
|
1655
|
+
completed: a.every((c) => c.completed)
|
|
1614
1656
|
}), s++;
|
|
1615
1657
|
}), i;
|
|
1616
1658
|
}
|
|
1617
|
-
function
|
|
1659
|
+
function $1(e, t, o, i) {
|
|
1618
1660
|
switch (e.type) {
|
|
1619
1661
|
case "annotation": {
|
|
1620
1662
|
const s = () => i ? e.onClick() : o.seek(e.time);
|
|
1621
1663
|
return /* @__PURE__ */ n(
|
|
1622
|
-
|
|
1664
|
+
j1,
|
|
1623
1665
|
{
|
|
1624
1666
|
id: e.id,
|
|
1625
1667
|
position: e.time / t * 100,
|
|
@@ -1630,7 +1672,7 @@ function D1(e, t, o, i) {
|
|
|
1630
1672
|
}
|
|
1631
1673
|
case "quiz":
|
|
1632
1674
|
return /* @__PURE__ */ n(
|
|
1633
|
-
|
|
1675
|
+
K1,
|
|
1634
1676
|
{
|
|
1635
1677
|
id: e.id,
|
|
1636
1678
|
position: e.time / t * 100,
|
|
@@ -1645,205 +1687,64 @@ function D1(e, t, o, i) {
|
|
|
1645
1687
|
return null;
|
|
1646
1688
|
}
|
|
1647
1689
|
}
|
|
1648
|
-
function
|
|
1649
|
-
const e = ie(), t =
|
|
1650
|
-
...
|
|
1690
|
+
function q1() {
|
|
1691
|
+
const e = ie(), t = b("duration"), o = L(), i = A(() => [
|
|
1692
|
+
...z1(
|
|
1651
1693
|
o.annotations,
|
|
1652
1694
|
o.onAnnotationClick
|
|
1653
1695
|
),
|
|
1654
|
-
...
|
|
1655
|
-
].sort((a,
|
|
1696
|
+
...U1(o.quizMarkers, o.onQuizMarkerClick)
|
|
1697
|
+
].sort((a, l) => a.time - l.time).map((a) => $1(a, t, e, o.interactive)), [o.annotations, o.quizMarkers, t, e]);
|
|
1656
1698
|
return /* @__PURE__ */ n("div", { className: m.pins, children: i });
|
|
1657
1699
|
}
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
function K1({ currentTime: e, position: t }) {
|
|
1672
|
-
const [o, i] = M(!1), s = L(), a = f(() => s.interactiveMenuElements.length > 0 ? i((y) => !y) : s.onInteractivePinClick(e), [
|
|
1673
|
-
s.interactiveMenuElements,
|
|
1674
|
-
s.onInteractivePinClick,
|
|
1675
|
-
e
|
|
1676
|
-
]), c = oe(null), { refs: r, floatingStyles: d, context: h } = de({
|
|
1677
|
-
open: o,
|
|
1678
|
-
onOpenChange: i,
|
|
1679
|
-
whileElementsMounted: me,
|
|
1680
|
-
placement: "top",
|
|
1681
|
-
middleware: [
|
|
1682
|
-
Se(),
|
|
1683
|
-
Te(6),
|
|
1684
|
-
Ee({
|
|
1685
|
-
element: c
|
|
1686
|
-
})
|
|
1687
|
-
]
|
|
1688
|
-
}), b = he(h), { getReferenceProps: v, getFloatingProps: k } = pe([b]);
|
|
1689
|
-
return /* @__PURE__ */ l(X, { children: [
|
|
1690
|
-
/* @__PURE__ */ n(
|
|
1691
|
-
"button",
|
|
1692
|
-
{
|
|
1693
|
-
type: "button",
|
|
1694
|
-
onClick: a,
|
|
1695
|
-
className: m.interactivePinButton,
|
|
1696
|
-
ref: r.setReference,
|
|
1697
|
-
style: { left: `${t}%` },
|
|
1698
|
-
...v(),
|
|
1699
|
-
children: /* @__PURE__ */ l(
|
|
1700
|
-
"svg",
|
|
1701
|
-
{
|
|
1702
|
-
className: m.interactivePin,
|
|
1703
|
-
width: "36",
|
|
1704
|
-
height: "44",
|
|
1705
|
-
fill: "none",
|
|
1706
|
-
viewBox: "0 0 36 44",
|
|
1707
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1708
|
-
children: [
|
|
1709
|
-
/* @__PURE__ */ n(
|
|
1710
|
-
"path",
|
|
1711
|
-
{
|
|
1712
|
-
className: m.bg,
|
|
1713
|
-
d: "M 33.1703,27.499961 C 34.9615,24.721661 36,21.418761 36,17.874961 36,8.0028612 27.9411,-3.8819277e-5 18,-3.8819277e-5 8.0588999,-3.8819277e-5 -1.5e-7,8.0028612 -1.5e-7,17.874961 c 0,3.5438 1.03844995,6.8467 2.82964995,9.625 4.5447501,6.8094 10.1600502,10.1014 15.2487502,16.5 5.0364,-6.3985 10.5573,-9.7259 15.0919,-16.5 z"
|
|
1714
|
-
}
|
|
1715
|
-
),
|
|
1716
|
-
/* @__PURE__ */ n(
|
|
1717
|
-
"path",
|
|
1718
|
-
{
|
|
1719
|
-
className: m.symbol,
|
|
1720
|
-
d: "m 35.499961,17.877772 c 0,3.443549 -1.008198,6.652061 -2.747494,9.351891 -2.235095,3.338633 -4.71529,5.832631 -7.286584,8.306425 -0.277599,0.267143 -0.556499,0.534085 -0.836198,0.801928 -2.174595,2.082232 -4.40389,4.216673 -6.553385,6.870196 -2.158995,-2.636621 -4.40379,-4.754859 -6.591985,-6.819788 -0.2979,-0.281145 -0.594699,-0.561289 -0.890198,-0.841534 C 7.9918219,33.077896 5.4869279,30.584698 3.2477829,27.230063 1.5082968,24.530133 0.50003905,21.321521 0.50003905,17.877772 0.50003905,8.2835422 8.3317219,0.50000048 18,0.50000048 c 9.668278,0 17.499961,7.78354172 17.499961,17.37777152 z"
|
|
1721
|
-
}
|
|
1722
|
-
),
|
|
1723
|
-
/* @__PURE__ */ n(
|
|
1724
|
-
"path",
|
|
1725
|
-
{
|
|
1726
|
-
className: m.interactivePinIcon,
|
|
1727
|
-
"data-open": o,
|
|
1728
|
-
fillRule: "evenodd",
|
|
1729
|
-
clipRule: "evenodd",
|
|
1730
|
-
d: "m 18.75,17.388467 v -6.25 h -1.5 v 6.25 H 11 v 1.5 h 6.25 v 6.25 h 1.5 v -6.25 H 25 v -1.5 z",
|
|
1731
|
-
fill: "white"
|
|
1732
|
-
}
|
|
1733
|
-
)
|
|
1734
|
-
]
|
|
1735
|
-
}
|
|
1736
|
-
)
|
|
1737
|
-
}
|
|
1738
|
-
),
|
|
1739
|
-
o && /* @__PURE__ */ n(
|
|
1740
|
-
_e,
|
|
1741
|
-
{
|
|
1742
|
-
order: ["floating", "content"],
|
|
1743
|
-
context: h,
|
|
1744
|
-
modal: !0,
|
|
1745
|
-
children: /* @__PURE__ */ l(
|
|
1746
|
-
"div",
|
|
1747
|
-
{
|
|
1748
|
-
ref: r.setFloating,
|
|
1749
|
-
style: d,
|
|
1750
|
-
className: m.interactivePinMenu,
|
|
1751
|
-
...k(),
|
|
1752
|
-
children: [
|
|
1753
|
-
s.interactiveMenuElements.map(
|
|
1754
|
-
({ id: y, text: I, onClick: p }) => /* @__PURE__ */ l(
|
|
1755
|
-
"button",
|
|
1756
|
-
{
|
|
1757
|
-
type: "button",
|
|
1758
|
-
className: m.interactivePinMenuItem,
|
|
1759
|
-
onClick: () => {
|
|
1760
|
-
p(y, e), i(!1);
|
|
1761
|
-
},
|
|
1762
|
-
children: [
|
|
1763
|
-
/* @__PURE__ */ n(
|
|
1764
|
-
"svg",
|
|
1765
|
-
{
|
|
1766
|
-
width: "16",
|
|
1767
|
-
height: "16",
|
|
1768
|
-
viewBox: "0 0 16 16",
|
|
1769
|
-
fill: "none",
|
|
1770
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1771
|
-
children: /* @__PURE__ */ n(
|
|
1772
|
-
"path",
|
|
1773
|
-
{
|
|
1774
|
-
fillRule: "evenodd",
|
|
1775
|
-
clipRule: "evenodd",
|
|
1776
|
-
d: "M7.33339 7.33339H1.77783V8.66672H7.33339V14.2223H8.66672V8.66672H14.2223V7.33339H8.66672V1.77783H7.33339V7.33339Z",
|
|
1777
|
-
fill: "#273540"
|
|
1778
|
-
}
|
|
1779
|
-
)
|
|
1780
|
-
}
|
|
1781
|
-
),
|
|
1782
|
-
I
|
|
1783
|
-
]
|
|
1784
|
-
},
|
|
1785
|
-
y
|
|
1786
|
-
)
|
|
1787
|
-
),
|
|
1788
|
-
/* @__PURE__ */ n(
|
|
1789
|
-
Ve,
|
|
1790
|
-
{
|
|
1791
|
-
ref: c,
|
|
1792
|
-
context: h,
|
|
1793
|
-
className: m.arrow
|
|
1794
|
-
}
|
|
1795
|
-
)
|
|
1796
|
-
]
|
|
1797
|
-
}
|
|
1798
|
-
)
|
|
1799
|
-
}
|
|
1800
|
-
)
|
|
1801
|
-
] });
|
|
1802
|
-
}
|
|
1803
|
-
function $1() {
|
|
1804
|
-
const e = g("duration"), t = g("currentTime"), o = t / e * 100, { disableInteractivePinRanges: i } = L();
|
|
1805
|
-
return i.some(
|
|
1806
|
-
([a, c]) => t >= a && t <= c
|
|
1807
|
-
) ? null : /* @__PURE__ */ n("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ n("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ n(K1, { currentTime: t, position: o }) }) });
|
|
1808
|
-
}
|
|
1809
|
-
function U1() {
|
|
1810
|
-
const e = g("paused"), t = w();
|
|
1811
|
-
return e && !t.state.interactionsDisabled ? /* @__PURE__ */ n($1, {}) : null;
|
|
1812
|
-
}
|
|
1813
|
-
const q1 = `${m.progress} ${m.trackInner}`, G1 = `${m.trackFill} ${m.trackInner}`;
|
|
1814
|
-
function Ne({ className: e }) {
|
|
1815
|
-
const t = w(), { hasAnnotations: o, hasQuizmarkers: i, interactive: s } = L(), a = e ? `${m.timelineWrapper} ${e}` : m.timelineWrapper;
|
|
1816
|
-
return /* @__PURE__ */ l("div", { className: a, children: [
|
|
1817
|
-
s ? /* @__PURE__ */ n(U1, {}) : null,
|
|
1818
|
-
s || o || i ? /* @__PURE__ */ n(z1, {}) : null,
|
|
1819
|
-
/* @__PURE__ */ n(j1, {}),
|
|
1820
|
-
/* @__PURE__ */ l(
|
|
1821
|
-
Q.Root,
|
|
1700
|
+
const G1 = {
|
|
1701
|
+
normal: m.timelineWrapper,
|
|
1702
|
+
compact: m.timelineWrapperCompact
|
|
1703
|
+
};
|
|
1704
|
+
function Se({
|
|
1705
|
+
layout: e,
|
|
1706
|
+
interactionsDisabled: t,
|
|
1707
|
+
children: o
|
|
1708
|
+
}) {
|
|
1709
|
+
return /* @__PURE__ */ r("div", { className: G1[e], children: [
|
|
1710
|
+
o,
|
|
1711
|
+
/* @__PURE__ */ r(
|
|
1712
|
+
W.Root,
|
|
1822
1713
|
{
|
|
1823
1714
|
className: m.root,
|
|
1824
|
-
tabIndex: t
|
|
1715
|
+
tabIndex: t ? -1 : 0,
|
|
1825
1716
|
children: [
|
|
1826
|
-
/* @__PURE__ */
|
|
1827
|
-
/* @__PURE__ */ n(
|
|
1828
|
-
|
|
1717
|
+
/* @__PURE__ */ r(W.Track, { className: m.track, children: [
|
|
1718
|
+
/* @__PURE__ */ n(
|
|
1719
|
+
W.Progress,
|
|
1720
|
+
{
|
|
1721
|
+
className: oe(m.progress, m.trackInner)
|
|
1722
|
+
}
|
|
1723
|
+
),
|
|
1724
|
+
/* @__PURE__ */ n(
|
|
1725
|
+
W.TrackFill,
|
|
1726
|
+
{
|
|
1727
|
+
className: oe(m.trackFill, m.trackInner)
|
|
1728
|
+
}
|
|
1729
|
+
)
|
|
1829
1730
|
] }),
|
|
1830
|
-
/* @__PURE__ */ n(
|
|
1731
|
+
/* @__PURE__ */ n(W.Thumb, { className: m.thumb })
|
|
1831
1732
|
]
|
|
1832
1733
|
}
|
|
1833
1734
|
)
|
|
1834
1735
|
] });
|
|
1835
1736
|
}
|
|
1836
|
-
const
|
|
1837
|
-
wrapper:
|
|
1838
|
-
track:
|
|
1737
|
+
const W1 = "_wrapper_12cb0_1", Q1 = "_track_12cb0_6", Y1 = "_thumb_12cb0_18", X1 = "_track-fill_12cb0_32", J1 = "_root_12cb0_51", Y = {
|
|
1738
|
+
wrapper: W1,
|
|
1739
|
+
track: Q1,
|
|
1839
1740
|
thumb: Y1,
|
|
1840
1741
|
"track-fill": "_track-fill_12cb0_32",
|
|
1841
1742
|
trackFill: X1,
|
|
1842
1743
|
root: J1
|
|
1843
1744
|
};
|
|
1844
1745
|
function ei() {
|
|
1845
|
-
const e = T(), t =
|
|
1846
|
-
return /* @__PURE__ */
|
|
1746
|
+
const e = T(), t = b("volume"), o = b("muted"), i = g(), s = o || t === 0, { t: a } = _();
|
|
1747
|
+
return /* @__PURE__ */ r("div", { className: Y.wrapper, children: [
|
|
1847
1748
|
/* @__PURE__ */ n(
|
|
1848
1749
|
"button",
|
|
1849
1750
|
{
|
|
@@ -1855,10 +1756,10 @@ function ei() {
|
|
|
1855
1756
|
onClick: () => {
|
|
1856
1757
|
s ? e == null || e.remoteControl.unmute() : e == null || e.remoteControl.mute();
|
|
1857
1758
|
},
|
|
1858
|
-
children: s ? /* @__PURE__ */ n(
|
|
1759
|
+
children: s ? /* @__PURE__ */ n(We, { className: "controls-button-icon" }) : t < 0.5 ? /* @__PURE__ */ n(Qe, { className: "controls-button-icon" }) : /* @__PURE__ */ n(Ye, { className: "controls-button-icon" })
|
|
1859
1760
|
}
|
|
1860
1761
|
),
|
|
1861
|
-
/* @__PURE__ */
|
|
1762
|
+
/* @__PURE__ */ r(
|
|
1862
1763
|
J.Root,
|
|
1863
1764
|
{
|
|
1864
1765
|
className: Y.root,
|
|
@@ -1871,56 +1772,56 @@ function ei() {
|
|
|
1871
1772
|
)
|
|
1872
1773
|
] });
|
|
1873
1774
|
}
|
|
1874
|
-
function
|
|
1775
|
+
function M(e, t) {
|
|
1875
1776
|
e.dispatchEvent(
|
|
1876
1777
|
new CustomEvent("keyboardAction", {
|
|
1877
1778
|
detail: t
|
|
1878
1779
|
})
|
|
1879
1780
|
);
|
|
1880
1781
|
}
|
|
1881
|
-
const
|
|
1782
|
+
const Ee = {
|
|
1882
1783
|
togglePaused: {
|
|
1883
1784
|
keys: ["Space", "Enter", "k"],
|
|
1884
1785
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1885
1786
|
var i;
|
|
1886
|
-
(i = document.activeElement) != null && i.hasAttribute("data-media-player") && (t.togglePaused(o),
|
|
1787
|
+
(i = document.activeElement) != null && i.hasAttribute("data-media-player") && (t.togglePaused(o), M(e, "togglePaused"));
|
|
1887
1788
|
}
|
|
1888
1789
|
},
|
|
1889
1790
|
seekForward: {
|
|
1890
1791
|
keys: ["ArrowRight"],
|
|
1891
1792
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1892
|
-
t.seek(e.currentTime + 5, o),
|
|
1793
|
+
t.seek(e.currentTime + 5, o), M(e, "seekForward");
|
|
1893
1794
|
}
|
|
1894
1795
|
},
|
|
1895
1796
|
seekBackward: {
|
|
1896
1797
|
keys: ["ArrowLeft"],
|
|
1897
1798
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1898
|
-
t.seek(e.currentTime - 5, o),
|
|
1799
|
+
t.seek(e.currentTime - 5, o), M(e, "seekBackward");
|
|
1899
1800
|
}
|
|
1900
1801
|
},
|
|
1901
1802
|
volumeUp: {
|
|
1902
1803
|
keys: ["ArrowUp"],
|
|
1903
1804
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1904
|
-
t.changeVolume(e.volume + 0.05, o),
|
|
1805
|
+
t.changeVolume(e.volume + 0.05, o), M(e, "volumeChange");
|
|
1905
1806
|
}
|
|
1906
1807
|
},
|
|
1907
1808
|
volumeDown: {
|
|
1908
1809
|
keys: ["ArrowDown"],
|
|
1909
1810
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1910
|
-
t.changeVolume(e.volume - 0.05, o),
|
|
1811
|
+
t.changeVolume(e.volume - 0.05, o), M(e, "volumeChange");
|
|
1911
1812
|
}
|
|
1912
1813
|
},
|
|
1913
1814
|
toggleFullscreen: ["f"],
|
|
1914
1815
|
toggleMuted: {
|
|
1915
1816
|
keys: ["m"],
|
|
1916
1817
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1917
|
-
t.toggleMuted(o),
|
|
1818
|
+
t.toggleMuted(o), M(e, "volumeChange");
|
|
1918
1819
|
}
|
|
1919
1820
|
},
|
|
1920
1821
|
toggleCaptions: {
|
|
1921
1822
|
keys: ["c"],
|
|
1922
1823
|
onKeyDown({ player: e, remote: t, event: o }) {
|
|
1923
|
-
t.toggleCaptions(o),
|
|
1824
|
+
t.toggleCaptions(o), M(e, "captionsChange");
|
|
1924
1825
|
}
|
|
1925
1826
|
},
|
|
1926
1827
|
nextCaptionLanguage: {
|
|
@@ -1931,7 +1832,7 @@ const Pe = {
|
|
|
1931
1832
|
s >= t.textTracks.length ? 0 : s,
|
|
1932
1833
|
"showing",
|
|
1933
1834
|
e
|
|
1934
|
-
),
|
|
1835
|
+
), M(t, "captionsChange");
|
|
1935
1836
|
}
|
|
1936
1837
|
},
|
|
1937
1838
|
previousCaptionLanguage: {
|
|
@@ -1942,43 +1843,43 @@ const Pe = {
|
|
|
1942
1843
|
s < 0 ? t.textTracks.length - 1 : s,
|
|
1943
1844
|
"showing",
|
|
1944
1845
|
e
|
|
1945
|
-
),
|
|
1846
|
+
), M(t, "captionsChange");
|
|
1946
1847
|
}
|
|
1947
1848
|
},
|
|
1948
1849
|
decreasePlaybackRate: {
|
|
1949
1850
|
keys: ["a"],
|
|
1950
1851
|
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1951
|
-
const s =
|
|
1952
|
-
s >= 0 && (o.changePlaybackRate(
|
|
1852
|
+
const s = $.indexOf(t.playbackRate) - 1;
|
|
1853
|
+
s >= 0 && (o.changePlaybackRate($[s], e), M(t, "playbackRateChange"));
|
|
1953
1854
|
}
|
|
1954
1855
|
},
|
|
1955
1856
|
increasePlaybackRate: {
|
|
1956
1857
|
keys: ["d"],
|
|
1957
1858
|
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1958
|
-
const s =
|
|
1959
|
-
s <
|
|
1859
|
+
const s = $.indexOf(t.playbackRate) + 1;
|
|
1860
|
+
s < $.length && (o.changePlaybackRate($[s], e), M(t, "playbackRateChange"));
|
|
1960
1861
|
}
|
|
1961
1862
|
},
|
|
1962
1863
|
resetPlaybackRate: {
|
|
1963
1864
|
keys: ["s"],
|
|
1964
1865
|
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1965
|
-
o.changePlaybackRate(1, e),
|
|
1866
|
+
o.changePlaybackRate(1, e), M(t, "playbackRateChange");
|
|
1966
1867
|
}
|
|
1967
1868
|
},
|
|
1968
1869
|
seekForward10Seconds: {
|
|
1969
1870
|
keys: ["l"],
|
|
1970
1871
|
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1971
|
-
o.seek(t.currentTime + 10, e),
|
|
1872
|
+
o.seek(t.currentTime + 10, e), M(t, "seekForward10");
|
|
1972
1873
|
}
|
|
1973
1874
|
},
|
|
1974
1875
|
seekBackward10Seconds: {
|
|
1975
1876
|
keys: ["j"],
|
|
1976
1877
|
onKeyDown({ event: e, player: t, remote: o }) {
|
|
1977
|
-
o.seek(t.currentTime - 10, e),
|
|
1878
|
+
o.seek(t.currentTime - 10, e), M(t, "seekBackward10");
|
|
1978
1879
|
}
|
|
1979
1880
|
}
|
|
1980
1881
|
};
|
|
1981
|
-
function
|
|
1882
|
+
function Ve(e) {
|
|
1982
1883
|
return typeof e == "number" && !isNaN(e);
|
|
1983
1884
|
}
|
|
1984
1885
|
function ti(e, t = 1e3) {
|
|
@@ -1989,7 +1890,7 @@ function ti(e, t = 1e3) {
|
|
|
1989
1890
|
}, t));
|
|
1990
1891
|
};
|
|
1991
1892
|
}
|
|
1992
|
-
const
|
|
1893
|
+
const Te = {
|
|
1993
1894
|
volume: 1,
|
|
1994
1895
|
muted: !1,
|
|
1995
1896
|
lang: null,
|
|
@@ -2002,21 +1903,21 @@ const He = {
|
|
|
2002
1903
|
};
|
|
2003
1904
|
class ni {
|
|
2004
1905
|
constructor() {
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
1906
|
+
V(this, "playerId", "studio-player");
|
|
1907
|
+
V(this, "mediaId", null);
|
|
1908
|
+
V(this, "data", Te);
|
|
1909
|
+
V(this, "time", null);
|
|
1910
|
+
V(this, "overrideTime", null);
|
|
1911
|
+
V(this, "saveTime", () => {
|
|
2011
1912
|
if (!this.mediaId) return;
|
|
2012
1913
|
const t = (this.time ?? 0).toString();
|
|
2013
1914
|
localStorage.setItem(this.mediaId, t);
|
|
2014
1915
|
});
|
|
2015
|
-
|
|
1916
|
+
V(this, "saveTimeThrottled", ti(this.saveTime, 1e3));
|
|
2016
1917
|
// only used for useStudioPlayer hook's state initialization
|
|
2017
|
-
|
|
1918
|
+
V(this, "initializeState", (t) => {
|
|
2018
1919
|
const o = localStorage.getItem(this.playerId);
|
|
2019
|
-
if (
|
|
1920
|
+
if (Ve(t) && t >= 0 && (this.overrideTime = t), o)
|
|
2020
1921
|
try {
|
|
2021
1922
|
this.data = JSON.parse(o);
|
|
2022
1923
|
} catch {
|
|
@@ -2031,7 +1932,7 @@ class ni {
|
|
|
2031
1932
|
disableCaptionSettings: !1
|
|
2032
1933
|
};
|
|
2033
1934
|
});
|
|
2034
|
-
|
|
1935
|
+
V(this, "saveData", (t, o) => {
|
|
2035
1936
|
this.data = {
|
|
2036
1937
|
...this.data,
|
|
2037
1938
|
[t]: o
|
|
@@ -2084,16 +1985,16 @@ class ni {
|
|
|
2084
1985
|
onChange(t, o, i = "studio-player") {
|
|
2085
1986
|
const s = i ? localStorage.getItem(i) : null, a = o ? localStorage.getItem(o) : null;
|
|
2086
1987
|
this.playerId = i, this.mediaId = o;
|
|
2087
|
-
let
|
|
1988
|
+
let l = {};
|
|
2088
1989
|
if (s)
|
|
2089
1990
|
try {
|
|
2090
|
-
|
|
1991
|
+
l = JSON.parse(s);
|
|
2091
1992
|
} catch {
|
|
2092
1993
|
}
|
|
2093
1994
|
this.data = {
|
|
2094
|
-
...
|
|
2095
|
-
...
|
|
2096
|
-
},
|
|
1995
|
+
...Te,
|
|
1996
|
+
...l
|
|
1997
|
+
}, Ve(this.overrideTime) && this.overrideTime >= 0 ? this.time = this.overrideTime : this.time = a ? +a : null;
|
|
2097
1998
|
}
|
|
2098
1999
|
save() {
|
|
2099
2000
|
if (!this.playerId) return;
|
|
@@ -2102,259 +2003,329 @@ class ni {
|
|
|
2102
2003
|
}
|
|
2103
2004
|
}
|
|
2104
2005
|
function oi(e, t, o, i) {
|
|
2105
|
-
const s =
|
|
2006
|
+
const s = A(() => new ni(), []), [a, l] = x(
|
|
2106
2007
|
s.initializeState(i)
|
|
2107
|
-
),
|
|
2108
|
-
(
|
|
2109
|
-
|
|
2008
|
+
), c = p(
|
|
2009
|
+
(h) => {
|
|
2010
|
+
l((C) => (s.saveData("multiplier", h), {
|
|
2110
2011
|
...C,
|
|
2111
|
-
captionsFontSizeMultiplier:
|
|
2012
|
+
captionsFontSizeMultiplier: h
|
|
2112
2013
|
}));
|
|
2113
2014
|
},
|
|
2114
2015
|
[s]
|
|
2115
|
-
),
|
|
2116
|
-
|
|
2117
|
-
const C = !
|
|
2016
|
+
), u = p(() => {
|
|
2017
|
+
l((h) => {
|
|
2018
|
+
const C = !h.captionPositionOnTop;
|
|
2118
2019
|
return s.saveData("ontop", C), {
|
|
2119
|
-
...
|
|
2020
|
+
...h,
|
|
2120
2021
|
captionPositionOnTop: C
|
|
2121
2022
|
};
|
|
2122
2023
|
});
|
|
2123
|
-
}, [s]),
|
|
2124
|
-
|
|
2125
|
-
const C = !
|
|
2024
|
+
}, [s]), d = p(() => {
|
|
2025
|
+
l((h) => {
|
|
2026
|
+
const C = !h.captionsInvertColors;
|
|
2126
2027
|
return s.saveData("invert", C), {
|
|
2127
|
-
...
|
|
2028
|
+
...h,
|
|
2128
2029
|
captionsInvertColors: C
|
|
2129
2030
|
};
|
|
2130
2031
|
});
|
|
2131
|
-
}, [s]),
|
|
2132
|
-
|
|
2133
|
-
const C = !
|
|
2032
|
+
}, [s]), f = p(() => {
|
|
2033
|
+
l((h) => {
|
|
2034
|
+
const C = !h.commentsEnabled;
|
|
2134
2035
|
return s.saveData("comments", C), {
|
|
2135
|
-
...
|
|
2036
|
+
...h,
|
|
2136
2037
|
commentsEnabled: C
|
|
2137
2038
|
};
|
|
2138
2039
|
});
|
|
2139
|
-
}, [s]), v =
|
|
2140
|
-
|
|
2141
|
-
...
|
|
2040
|
+
}, [s]), v = p(() => {
|
|
2041
|
+
l((h) => ({
|
|
2042
|
+
...h,
|
|
2142
2043
|
interactionsDisabled: !1
|
|
2143
2044
|
}));
|
|
2144
|
-
}, []),
|
|
2145
|
-
|
|
2146
|
-
...
|
|
2045
|
+
}, []), w = p(() => {
|
|
2046
|
+
l((h) => ({
|
|
2047
|
+
...h,
|
|
2147
2048
|
interactionsDisabled: !0
|
|
2148
2049
|
}));
|
|
2149
|
-
}, []), y =
|
|
2150
|
-
|
|
2050
|
+
}, []), y = p((h) => {
|
|
2051
|
+
l((C) => ({
|
|
2151
2052
|
...C,
|
|
2152
|
-
globalKeysDisabled:
|
|
2053
|
+
globalKeysDisabled: h
|
|
2153
2054
|
}));
|
|
2154
|
-
}, []),
|
|
2155
|
-
...
|
|
2055
|
+
}, []), N = A(() => e ? {
|
|
2056
|
+
...Ee,
|
|
2156
2057
|
toggleFullscreen: []
|
|
2157
|
-
} :
|
|
2058
|
+
} : Ee, [e]);
|
|
2158
2059
|
return {
|
|
2159
2060
|
contextValue: {
|
|
2160
2061
|
state: {
|
|
2161
2062
|
...a,
|
|
2162
2063
|
commentsEnabled: t || a.commentsEnabled
|
|
2163
2064
|
},
|
|
2164
|
-
setCaptionsFontSizeMultiplier:
|
|
2165
|
-
toggleCaptionPositionOnTop:
|
|
2166
|
-
toggleCaptionsInvertColors:
|
|
2065
|
+
setCaptionsFontSizeMultiplier: c,
|
|
2066
|
+
toggleCaptionPositionOnTop: u,
|
|
2067
|
+
toggleCaptionsInvertColors: d,
|
|
2167
2068
|
enableInteractions: v,
|
|
2168
|
-
disableInteractions:
|
|
2069
|
+
disableInteractions: w,
|
|
2169
2070
|
setGlobalKeysDisabled: y,
|
|
2170
|
-
toggleComments:
|
|
2071
|
+
toggleComments: f,
|
|
2171
2072
|
disableCaptionSettings: o
|
|
2172
2073
|
},
|
|
2173
|
-
shortcuts:
|
|
2074
|
+
shortcuts: N,
|
|
2174
2075
|
storage: s
|
|
2175
2076
|
};
|
|
2176
2077
|
}
|
|
2177
|
-
const ii = {
|
|
2178
|
-
|
|
2179
|
-
const e = L();
|
|
2180
|
-
return /* @__PURE__ */ l(X, { children: [
|
|
2181
|
-
/* @__PURE__ */ n(e1, { src: e.thumbnail }),
|
|
2182
|
-
/* @__PURE__ */ n(Ge, {}),
|
|
2183
|
-
/* @__PURE__ */ n(Re, {}),
|
|
2184
|
-
/* @__PURE__ */ n(Ze, { captions: e.captions }),
|
|
2185
|
-
/* @__PURE__ */ n(l1, {}),
|
|
2186
|
-
/* @__PURE__ */ n(Po, {}),
|
|
2187
|
-
/* @__PURE__ */ n(en, { comments: e.comments })
|
|
2188
|
-
] });
|
|
2189
|
-
}
|
|
2190
|
-
const ai = (e) => /* @__PURE__ */ n("svg", { width: 56, height: 72, viewBox: "0 0 28 36", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("g", { id: "Icons", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ l("g", { id: "audio", children: [
|
|
2191
|
-
/* @__PURE__ */ l("g", { id: "icon-file-base-2", children: [
|
|
2078
|
+
const ii = (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
|
+
/* @__PURE__ */ r("g", { id: "icon-file-base-2", children: [
|
|
2192
2080
|
/* @__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" }),
|
|
2193
2081
|
/* @__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" }),
|
|
2194
2082
|
/* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z M1.993,35 C1.445,35 1,34.552 1,34 L1,2 C1,1.448 1.445,1 1.993,1 L16.5,1 L16.5,9 C16.5,10.379 17.621,11.5 18.999,11.5 L27,11.5 L27,34 C27,34.552 26.554,35 26.006,35 L1.993,35 Z M27,10.5 L18.999,10.5 C18.173,10.5 17.5,9.827 17.5,9 L17.5,1 L17.585,1 L27,10.414 L27,10.5 L27,10.5 Z", fill: "#384A58" })
|
|
2195
2083
|
] }),
|
|
2196
2084
|
/* @__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" })
|
|
2197
2085
|
] }) }) });
|
|
2198
|
-
function
|
|
2086
|
+
function si() {
|
|
2199
2087
|
const e = L();
|
|
2200
|
-
return /* @__PURE__ */
|
|
2201
|
-
/* @__PURE__ */ n(
|
|
2202
|
-
/* @__PURE__ */ n(
|
|
2203
|
-
/* @__PURE__ */ n(
|
|
2204
|
-
/* @__PURE__ */ n(
|
|
2088
|
+
return /* @__PURE__ */ r("div", { className: "audio-layout-wrapper", children: [
|
|
2089
|
+
/* @__PURE__ */ n(ii, {}),
|
|
2090
|
+
/* @__PURE__ */ n(Xe, {}),
|
|
2091
|
+
/* @__PURE__ */ n(Ze, {}),
|
|
2092
|
+
/* @__PURE__ */ n(Ue, { captions: e.captions })
|
|
2093
|
+
] });
|
|
2094
|
+
}
|
|
2095
|
+
function ai() {
|
|
2096
|
+
const e = L(), t = e.kebabMenuElements.length > 0;
|
|
2097
|
+
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
|
+
/* @__PURE__ */ n(
|
|
2105
|
+
In,
|
|
2106
|
+
{
|
|
2107
|
+
comments: e.comments,
|
|
2108
|
+
isKebabMenuVisible: t
|
|
2109
|
+
}
|
|
2110
|
+
)
|
|
2205
2111
|
] });
|
|
2206
2112
|
}
|
|
2207
|
-
|
|
2113
|
+
const li = "_root_5cfhx_1", ri = "_normal_5cfhx_14", ci = "_compact_5cfhx_21", ui = "_left-controls_5cfhx_36", di = "_right-controls_5cfhx_42", mi = "_indicators_5cfhx_48", U = {
|
|
2114
|
+
root: li,
|
|
2115
|
+
normal: ri,
|
|
2116
|
+
compact: ci,
|
|
2117
|
+
"left-controls": "_left-controls_5cfhx_36",
|
|
2118
|
+
leftControls: ui,
|
|
2119
|
+
"right-controls": "_right-controls_5cfhx_42",
|
|
2120
|
+
rightControls: di,
|
|
2121
|
+
indicators: mi
|
|
2122
|
+
};
|
|
2123
|
+
function hi({
|
|
2124
|
+
darkMode: e,
|
|
2125
|
+
playerRef: t,
|
|
2126
|
+
controlsLayout: o,
|
|
2127
|
+
showCaptionsButton: i
|
|
2128
|
+
}) {
|
|
2129
|
+
const s = T(), a = g(), { hasAnnotations: l, hasQuizmarkers: c, interactive: u } = L();
|
|
2130
|
+
return F(() => {
|
|
2131
|
+
s && (s.remoteControl.pauseControls(), t && (typeof t == "function" ? t(s) : t.current = s));
|
|
2132
|
+
}, [s, t]), /* @__PURE__ */ r(
|
|
2133
|
+
"div",
|
|
2134
|
+
{
|
|
2135
|
+
"data-darkmode": e,
|
|
2136
|
+
className: oe(U.root, {
|
|
2137
|
+
[U.normal]: o === "normal",
|
|
2138
|
+
[U.compact]: o === "compact"
|
|
2139
|
+
}),
|
|
2140
|
+
children: [
|
|
2141
|
+
o === "normal" ? /* @__PURE__ */ r(
|
|
2142
|
+
Se,
|
|
2143
|
+
{
|
|
2144
|
+
layout: "normal",
|
|
2145
|
+
interactionsDisabled: a.state.interactionsDisabled,
|
|
2146
|
+
children: [
|
|
2147
|
+
u ? /* @__PURE__ */ n(Z1, {}) : null,
|
|
2148
|
+
u || l || c ? /* @__PURE__ */ n(q1, {}) : null,
|
|
2149
|
+
/* @__PURE__ */ n(Ie, {})
|
|
2150
|
+
]
|
|
2151
|
+
}
|
|
2152
|
+
) : null,
|
|
2153
|
+
/* @__PURE__ */ r("div", { className: U.leftControls, children: [
|
|
2154
|
+
/* @__PURE__ */ n(Yo, {}),
|
|
2155
|
+
/* @__PURE__ */ n(ei, {})
|
|
2156
|
+
] }),
|
|
2157
|
+
/* @__PURE__ */ n("div", { className: U.indicators, children: /* @__PURE__ */ n(u1, {}) }),
|
|
2158
|
+
o === "compact" ? /* @__PURE__ */ n(
|
|
2159
|
+
Se,
|
|
2160
|
+
{
|
|
2161
|
+
layout: "compact",
|
|
2162
|
+
interactionsDisabled: a.state.interactionsDisabled,
|
|
2163
|
+
children: /* @__PURE__ */ n(Ie, {})
|
|
2164
|
+
}
|
|
2165
|
+
) : null,
|
|
2166
|
+
/* @__PURE__ */ r("div", { className: U.rightControls, children: [
|
|
2167
|
+
i && /* @__PURE__ */ n(dn, {}),
|
|
2168
|
+
/* @__PURE__ */ n(So, {}),
|
|
2169
|
+
/* @__PURE__ */ n(Uo, {})
|
|
2170
|
+
] })
|
|
2171
|
+
]
|
|
2172
|
+
}
|
|
2173
|
+
);
|
|
2174
|
+
}
|
|
2175
|
+
function pi(e, t) {
|
|
2208
2176
|
return e.reduce((o, i) => (Object.keys(t).includes(i.id) || (o[i.id] = !0), o), t);
|
|
2209
2177
|
}
|
|
2210
|
-
function
|
|
2178
|
+
function _i(e, t, o, i, s) {
|
|
2211
2179
|
return (a) => {
|
|
2212
|
-
const
|
|
2213
|
-
|
|
2180
|
+
const l = a.detail.currentTime, c = !o.paused, u = Math.min(o.duration * 0.05, 2);
|
|
2181
|
+
l >= e.time && l < e.time + u && !i[e.id] && (s({ ...i, [e.id]: !0 }), t(e, c));
|
|
2214
2182
|
};
|
|
2215
2183
|
}
|
|
2216
|
-
function
|
|
2217
|
-
const e = T(), { quizMarkers: t, onQuizMarkerShow: o } = L(), [i, s] =
|
|
2218
|
-
t.reduce((a,
|
|
2184
|
+
function fi() {
|
|
2185
|
+
const e = T(), { quizMarkers: t, onQuizMarkerShow: o } = L(), [i, s] = x(
|
|
2186
|
+
t.reduce((a, l) => (a[l.id] = !1, a), {})
|
|
2219
2187
|
);
|
|
2220
|
-
|
|
2188
|
+
F(() => {
|
|
2221
2189
|
if (!e)
|
|
2222
2190
|
return;
|
|
2223
|
-
t.length > Object.keys(i).length && s(
|
|
2224
|
-
const a = [],
|
|
2225
|
-
var
|
|
2226
|
-
const
|
|
2227
|
-
s({ ...i, ...
|
|
2191
|
+
t.length > Object.keys(i).length && s(pi(t, i));
|
|
2192
|
+
const a = [], l = (c) => {
|
|
2193
|
+
var f;
|
|
2194
|
+
const u = (f = c == null ? void 0 : c.request) == null ? void 0 : f.detail, d = t.reduce((v, w) => (v[w.id] = w.time <= u, v), {});
|
|
2195
|
+
s({ ...i, ...d });
|
|
2228
2196
|
};
|
|
2229
|
-
e.addEventListener("seeked",
|
|
2230
|
-
for (const
|
|
2231
|
-
const
|
|
2232
|
-
|
|
2197
|
+
e.addEventListener("seeked", l);
|
|
2198
|
+
for (const c of t) {
|
|
2199
|
+
const u = _i(
|
|
2200
|
+
c,
|
|
2233
2201
|
o,
|
|
2234
2202
|
e,
|
|
2235
2203
|
i,
|
|
2236
2204
|
s
|
|
2237
2205
|
);
|
|
2238
|
-
e.addEventListener("time-update",
|
|
2206
|
+
e.addEventListener("time-update", u), a.push(u);
|
|
2239
2207
|
}
|
|
2240
2208
|
return () => {
|
|
2241
|
-
for (const
|
|
2242
|
-
e.removeEventListener("time-update",
|
|
2243
|
-
e.removeEventListener("seeked",
|
|
2209
|
+
for (const c of a)
|
|
2210
|
+
e.removeEventListener("time-update", c);
|
|
2211
|
+
e.removeEventListener("seeked", l);
|
|
2244
2212
|
};
|
|
2245
2213
|
}, [t, e, i]);
|
|
2246
2214
|
}
|
|
2247
|
-
function
|
|
2248
|
-
return
|
|
2215
|
+
function Ci() {
|
|
2216
|
+
return fi(), null;
|
|
2249
2217
|
}
|
|
2250
|
-
function
|
|
2218
|
+
function bi(e) {
|
|
2251
2219
|
return Array.isArray(e) && typeof e[0] == "object";
|
|
2252
2220
|
}
|
|
2253
|
-
function
|
|
2254
|
-
return
|
|
2221
|
+
function gi(e) {
|
|
2222
|
+
return bi(e) && e.length === 1 ? e[0].src : e;
|
|
2255
2223
|
}
|
|
2256
|
-
const ne = () => {
|
|
2224
|
+
const vi = {}, ne = () => {
|
|
2257
2225
|
};
|
|
2258
|
-
function
|
|
2226
|
+
function Ii({
|
|
2259
2227
|
title: e,
|
|
2260
2228
|
playerRef: t,
|
|
2261
2229
|
src: o,
|
|
2262
2230
|
captions: i = [],
|
|
2263
2231
|
thumbnail: s,
|
|
2264
2232
|
hideFullScreen: a = !1,
|
|
2265
|
-
comments:
|
|
2266
|
-
locale:
|
|
2267
|
-
annotations:
|
|
2268
|
-
quizMarkers:
|
|
2269
|
-
interactive:
|
|
2233
|
+
comments: l = [],
|
|
2234
|
+
locale: c = "en",
|
|
2235
|
+
annotations: u = [],
|
|
2236
|
+
quizMarkers: d = [],
|
|
2237
|
+
interactive: f = !1,
|
|
2270
2238
|
onAnnotationClick: v = ne,
|
|
2271
|
-
onQuizMarkerClick:
|
|
2239
|
+
onQuizMarkerClick: w = ne,
|
|
2272
2240
|
onQuizMarkerShow: y = ne,
|
|
2273
|
-
onInteractivePinClick:
|
|
2274
|
-
onCaptionsDelete:
|
|
2241
|
+
onInteractivePinClick: N = ne,
|
|
2242
|
+
onCaptionsDelete: h,
|
|
2275
2243
|
interactiveMenuElements: C = [],
|
|
2276
|
-
kebabMenuElements:
|
|
2277
|
-
darkMode:
|
|
2278
|
-
autoLoadCaptionSrc:
|
|
2279
|
-
forceComments:
|
|
2280
|
-
disableCaptionSettings:
|
|
2281
|
-
disableStorage:
|
|
2244
|
+
kebabMenuElements: k = [],
|
|
2245
|
+
darkMode: I = !1,
|
|
2246
|
+
autoLoadCaptionSrc: Z = "",
|
|
2247
|
+
forceComments: B = !1,
|
|
2248
|
+
disableCaptionSettings: D = !1,
|
|
2249
|
+
disableStorage: j = !1,
|
|
2282
2250
|
startAt: ae,
|
|
2283
|
-
crossOrigin:
|
|
2284
|
-
captionOffsetOverride:
|
|
2285
|
-
disableInteractivePinRanges:
|
|
2286
|
-
customOverlay:
|
|
2251
|
+
crossOrigin: et,
|
|
2252
|
+
captionOffsetOverride: tt,
|
|
2253
|
+
disableInteractivePinRanges: nt = [],
|
|
2254
|
+
customOverlay: ve,
|
|
2255
|
+
controlsLayout: we = "compact"
|
|
2287
2256
|
}) {
|
|
2288
|
-
const { contextValue: le, shortcuts:
|
|
2257
|
+
const { contextValue: le, shortcuts: ot, storage: it } = oi(
|
|
2289
2258
|
a,
|
|
2290
|
-
|
|
2291
|
-
|
|
2259
|
+
B,
|
|
2260
|
+
D,
|
|
2292
2261
|
ae
|
|
2293
|
-
), { i18n:
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
}, [
|
|
2297
|
-
const [
|
|
2298
|
-
|
|
2262
|
+
), { i18n: ke } = _();
|
|
2263
|
+
F(() => {
|
|
2264
|
+
ke.changeLanguage(c);
|
|
2265
|
+
}, [ke, c]);
|
|
2266
|
+
const [ye, Le] = x("none"), st = p((H) => {
|
|
2267
|
+
bt(H) ? Le("audio") : (gt(H) || vt(H) || wt(H)) && Le("video");
|
|
2299
2268
|
}, []);
|
|
2300
2269
|
return /* @__PURE__ */ n(
|
|
2301
|
-
|
|
2270
|
+
Vt,
|
|
2302
2271
|
{
|
|
2303
2272
|
hideFullScreen: a,
|
|
2304
|
-
comments:
|
|
2273
|
+
comments: l,
|
|
2305
2274
|
captions: i,
|
|
2306
2275
|
thumbnail: s,
|
|
2307
|
-
annotations:
|
|
2308
|
-
quizMarkers:
|
|
2309
|
-
interactive:
|
|
2276
|
+
annotations: u,
|
|
2277
|
+
quizMarkers: d,
|
|
2278
|
+
interactive: f,
|
|
2310
2279
|
onAnnotationClick: v,
|
|
2311
|
-
onQuizMarkerClick:
|
|
2312
|
-
onInteractivePinClick:
|
|
2280
|
+
onQuizMarkerClick: w,
|
|
2281
|
+
onInteractivePinClick: N,
|
|
2313
2282
|
interactiveMenuElements: C,
|
|
2314
|
-
kebabMenuElements:
|
|
2315
|
-
darkMode:
|
|
2316
|
-
forceComments:
|
|
2317
|
-
disableCaptionSettings:
|
|
2318
|
-
disableStorage:
|
|
2319
|
-
captionOffsetOverride:
|
|
2320
|
-
disableInteractivePinRanges:
|
|
2283
|
+
kebabMenuElements: k,
|
|
2284
|
+
darkMode: I,
|
|
2285
|
+
forceComments: B,
|
|
2286
|
+
disableCaptionSettings: D,
|
|
2287
|
+
disableStorage: j,
|
|
2288
|
+
captionOffsetOverride: tt,
|
|
2289
|
+
disableInteractivePinRanges: nt,
|
|
2321
2290
|
onQuizMarkerShow: y,
|
|
2322
|
-
onCaptionsDelete:
|
|
2323
|
-
|
|
2324
|
-
|
|
2291
|
+
onCaptionsDelete: h,
|
|
2292
|
+
controlsLayout: we,
|
|
2293
|
+
children: /* @__PURE__ */ n(Et, { contextValue: le, children: /* @__PURE__ */ r(
|
|
2294
|
+
kt,
|
|
2325
2295
|
{
|
|
2326
|
-
"data-version": "0.
|
|
2327
|
-
crossOrigin:
|
|
2328
|
-
storage:
|
|
2296
|
+
"data-version": "0.5.0",
|
|
2297
|
+
crossOrigin: et,
|
|
2298
|
+
storage: j ? null : it,
|
|
2329
2299
|
title: e,
|
|
2330
|
-
src:
|
|
2331
|
-
keyShortcuts:
|
|
2300
|
+
src: gi(o),
|
|
2301
|
+
keyShortcuts: ot,
|
|
2332
2302
|
playsInline: !0,
|
|
2333
2303
|
keyDisabled: le.state.interactionsDisabled || le.state.globalKeysDisabled,
|
|
2334
|
-
onTextTracksChange: (
|
|
2335
|
-
const
|
|
2336
|
-
(
|
|
2304
|
+
onTextTracksChange: (H) => {
|
|
2305
|
+
const Me = H == null ? void 0 : H.findIndex(
|
|
2306
|
+
(at) => at.src === Z
|
|
2337
2307
|
);
|
|
2338
|
-
|
|
2308
|
+
Me > -1 && (H[Me].mode = "showing");
|
|
2339
2309
|
},
|
|
2340
|
-
onProviderSetup:
|
|
2310
|
+
onProviderSetup: st,
|
|
2341
2311
|
children: [
|
|
2342
|
-
/* @__PURE__ */
|
|
2343
|
-
|
|
2344
|
-
|
|
2312
|
+
/* @__PURE__ */ r(yt, { className: vi.mediaProvider, children: [
|
|
2313
|
+
ye === "audio" && /* @__PURE__ */ n(si, {}),
|
|
2314
|
+
ye === "video" && /* @__PURE__ */ n(ai, {})
|
|
2345
2315
|
] }),
|
|
2346
|
-
/* @__PURE__ */ n(
|
|
2347
|
-
|
|
2316
|
+
/* @__PURE__ */ n(un, {}),
|
|
2317
|
+
ve && ve(),
|
|
2348
2318
|
/* @__PURE__ */ n(
|
|
2349
|
-
|
|
2319
|
+
hi,
|
|
2350
2320
|
{
|
|
2351
|
-
darkMode:
|
|
2321
|
+
darkMode: I,
|
|
2352
2322
|
playerRef: t,
|
|
2353
|
-
showCaptionsButton: !
|
|
2323
|
+
showCaptionsButton: !D,
|
|
2324
|
+
controlsLayout: we
|
|
2354
2325
|
}
|
|
2355
2326
|
),
|
|
2356
|
-
/* @__PURE__ */ n(
|
|
2357
|
-
!!
|
|
2327
|
+
/* @__PURE__ */ n(Rt, { annotations: u }),
|
|
2328
|
+
!!d.length && /* @__PURE__ */ n(Ci, {})
|
|
2358
2329
|
]
|
|
2359
2330
|
}
|
|
2360
2331
|
) })
|
|
@@ -2362,10 +2333,10 @@ function yi({
|
|
|
2362
2333
|
);
|
|
2363
2334
|
}
|
|
2364
2335
|
export {
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2336
|
+
_n as CAPTION_FONT_SIZE_MULTIPLIERS,
|
|
2337
|
+
fn as COMMENT_DURATION,
|
|
2338
|
+
$ as PLAYBACK_RATES,
|
|
2339
|
+
Ii as StudioPlayer,
|
|
2340
|
+
Vi as useMediaState,
|
|
2341
|
+
Ti as useMediaStore
|
|
2371
2342
|
};
|